molstar-partial-charges
Version:
Molstar plugin for partial charges
18 lines • 3.99 MB
JavaScript
(function(Nr,Jr){typeof exports=="object"&&typeof module!="undefined"?module.exports=Jr():typeof define=="function"&&define.amd?define(Jr):(Nr=typeof globalThis!="undefined"?globalThis:Nr||self,Nr.MolstarPartialCharges=Jr())})(this,function(){"use strict";var r3e=Object.defineProperty,n3e=Object.defineProperties;var i3e=Object.getOwnPropertyDescriptors;var KD=Object.getOwnPropertySymbols;var nde=Object.prototype.hasOwnProperty,ide=Object.prototype.propertyIsEnumerable;var ZD=Math.pow,RL=(Nr,Jr,Pn)=>Jr in Nr?r3e(Nr,Jr,{enumerable:!0,configurable:!0,writable:!0,value:Pn}):Nr[Jr]=Pn,ae=(Nr,Jr)=>{for(var Pn in Jr||(Jr={}))nde.call(Jr,Pn)&&RL(Nr,Pn,Jr[Pn]);if(KD)for(var Pn of KD(Jr))ide.call(Jr,Pn)&&RL(Nr,Pn,Jr[Pn]);return Nr},Ve=(Nr,Jr)=>n3e(Nr,i3e(Jr));var ode=(Nr,Jr)=>{var Pn={};for(var Vi in Nr)nde.call(Nr,Vi)&&Jr.indexOf(Vi)<0&&(Pn[Vi]=Nr[Vi]);if(Nr!=null&&KD)for(var Vi of KD(Nr))Jr.indexOf(Vi)<0&&ide.call(Nr,Vi)&&(Pn[Vi]=Nr[Vi]);return Pn};var ma=(Nr,Jr,Pn)=>RL(Nr,typeof Jr!="symbol"?Jr+"":Jr,Pn);var we=(Nr,Jr,Pn)=>new Promise((Vi,Um)=>{var Tr=_s=>{try{Pg(Pn.next(_s))}catch(Gr){Um(Gr)}},ST=_s=>{try{Pg(Pn.throw(_s))}catch(Gr){Um(Gr)}},Pg=_s=>_s.done?Vi(_s.value):Promise.resolve(_s.value).then(Tr,ST);Pg((Pn=Pn.apply(Nr,Jr)).next())});var Nr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pn(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var Vi={},Um={exports:{}},Tr={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ST;function Pg(){if(ST)return Tr;ST=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),y=Symbol.iterator;function m(L){return L===null||typeof L!="object"?null:(L=y&&L[y]||L["@@iterator"],typeof L=="function"?L:null)}var o={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,d={};function v(L,G,U){this.props=L,this.context=G,this.refs=d,this.updater=U||o}v.prototype.isReactComponent={},v.prototype.setState=function(L,G){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,G,"setState")},v.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function h(){}h.prototype=v.prototype;function g(L,G,U){this.props=L,this.context=G,this.refs=d,this.updater=U||o}var b=g.prototype=new h;b.constructor=g,f(b,v.prototype),b.isPureReactComponent=!0;var P=Array.isArray,S=Object.prototype.hasOwnProperty,_={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function x(L,G,U){var j,N={},F=null,z=null;if(G!=null)for(j in G.ref!==void 0&&(z=G.ref),G.key!==void 0&&(F=""+G.key),G)S.call(G,j)&&!C.hasOwnProperty(j)&&(N[j]=G[j]);var H=arguments.length-2;if(H===1)N.children=U;else if(1<H){for(var W=Array(H),Q=0;Q<H;Q++)W[Q]=arguments[Q+2];N.children=W}if(L&&L.defaultProps)for(j in H=L.defaultProps,H)N[j]===void 0&&(N[j]=H[j]);return{$$typeof:e,type:L,key:F,ref:z,props:N,_owner:_.current}}function A(L,G){return{$$typeof:e,type:L.type,key:G,ref:L.ref,props:L.props,_owner:L._owner}}function T(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function M(L){var G={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(U){return G[U]})}var D=/\/+/g;function I(L,G){return typeof L=="object"&&L!==null&&L.key!=null?M(""+L.key):G.toString(36)}function w(L,G,U,j,N){var F=typeof L;(F==="undefined"||F==="boolean")&&(L=null);var z=!1;if(L===null)z=!0;else switch(F){case"string":case"number":z=!0;break;case"object":switch(L.$$typeof){case e:case t:z=!0}}if(z)return z=L,N=N(z),L=j===""?"."+I(z,0):j,P(N)?(U="",L!=null&&(U=L.replace(D,"$&/")+"/"),w(N,G,U,"",function(Q){return Q})):N!=null&&(T(N)&&(N=A(N,U+(!N.key||z&&z.key===N.key?"":(""+N.key).replace(D,"$&/")+"/")+L)),G.push(N)),1;if(z=0,j=j===""?".":j+":",P(L))for(var H=0;H<L.length;H++){F=L[H];var W=j+I(F,H);z+=w(F,G,U,W,N)}else if(W=m(L),typeof W=="function")for(L=W.call(L),H=0;!(F=L.next()).done;)F=F.value,W=j+I(F,H++),z+=w(F,G,U,W,N);else if(F==="object")throw G=String(L),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.");return z}function E(L,G,U){if(L==null)return L;var j=[],N=0;return w(L,j,"","",function(F){return G.call(U,F,N++)}),j}function R(L){if(L._status===-1){var G=L._result;G=G(),G.then(function(U){(L._status===0||L._status===-1)&&(L._status=1,L._result=U)},function(U){(L._status===0||L._status===-1)&&(L._status=2,L._result=U)}),L._status===-1&&(L._status=0,L._result=G)}if(L._status===1)return L._result.default;throw L._result}var V={current:null},B={transition:null},k={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:B,ReactCurrentOwner:_};return Tr.Children={map:E,forEach:function(L,G,U){E(L,function(){G.apply(this,arguments)},U)},count:function(L){var G=0;return E(L,function(){G++}),G},toArray:function(L){return E(L,function(G){return G})||[]},only:function(L){if(!T(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},Tr.Component=v,Tr.Fragment=r,Tr.Profiler=i,Tr.PureComponent=g,Tr.StrictMode=n,Tr.Suspense=p,Tr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,Tr.cloneElement=function(L,G,U){if(L==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+L+".");var j=f({},L.props),N=L.key,F=L.ref,z=L._owner;if(G!=null){if(G.ref!==void 0&&(F=G.ref,z=_.current),G.key!==void 0&&(N=""+G.key),L.type&&L.type.defaultProps)var H=L.type.defaultProps;for(W in G)S.call(G,W)&&!C.hasOwnProperty(W)&&(j[W]=G[W]===void 0&&H!==void 0?H[W]:G[W])}var W=arguments.length-2;if(W===1)j.children=U;else if(1<W){H=Array(W);for(var Q=0;Q<W;Q++)H[Q]=arguments[Q+2];j.children=H}return{$$typeof:e,type:L.type,key:N,ref:F,props:j,_owner:z}},Tr.createContext=function(L){return L={$$typeof:a,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},L.Provider={$$typeof:s,_context:L},L.Consumer=L},Tr.createElement=x,Tr.createFactory=function(L){var G=x.bind(null,L);return G.type=L,G},Tr.createRef=function(){return{current:null}},Tr.forwardRef=function(L){return{$$typeof:c,render:L}},Tr.isValidElement=T,Tr.lazy=function(L){return{$$typeof:l,_payload:{_status:-1,_result:L},_init:R}},Tr.memo=function(L,G){return{$$typeof:u,type:L,compare:G===void 0?null:G}},Tr.startTransition=function(L){var G=B.transition;B.transition={};try{L()}finally{B.transition=G}},Tr.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Tr.useCallback=function(L,G){return V.current.useCallback(L,G)},Tr.useContext=function(L){return V.current.useContext(L)},Tr.useDebugValue=function(){},Tr.useDeferredValue=function(L){return V.current.useDeferredValue(L)},Tr.useEffect=function(L,G){return V.current.useEffect(L,G)},Tr.useId=function(){return V.current.useId()},Tr.useImperativeHandle=function(L,G,U){return V.current.useImperativeHandle(L,G,U)},Tr.useInsertionEffect=function(L,G){return V.current.useInsertionEffect(L,G)},Tr.useLayoutEffect=function(L,G){return V.current.useLayoutEffect(L,G)},Tr.useMemo=function(L,G){return V.current.useMemo(L,G)},Tr.useReducer=function(L,G,U){return V.current.useReducer(L,G,U)},Tr.useRef=function(L){return V.current.useRef(L)},Tr.useState=function(L){return V.current.useState(L)},Tr.useSyncExternalStore=function(L,G,U){return V.current.useSyncExternalStore(L,G,U)},Tr.useTransition=function(){return V.current.useTransition()},Tr.version="18.2.0",Tr}var _s;function Gr(){return _s||(_s=1,Um.exports=Pg()),Um.exports}var pa={},JD=function(e,t){return JD=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},JD(e,t)};function BL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");JD(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var CT=function(){return CT=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},CT.apply(this,arguments)};function OL(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function kL(e,t,r,n){var i=arguments.length,s=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(s=(i<3?a(s):i>3?a(t,r,s):a(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s}function LL(e,t){return function(r,n){t(r,n,e)}}function FL(e,t,r,n,i,s){function a(h){if(h!==void 0&&typeof h!="function")throw new TypeError("Function expected");return h}for(var c=n.kind,p=c==="getter"?"get":c==="setter"?"set":"value",u=!t&&e?n.static?e:e.prototype:null,l=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),y,m=!1,o=r.length-1;o>=0;o--){var f={};for(var d in n)f[d]=d==="access"?{}:n[d];for(var d in n.access)f.access[d]=n.access[d];f.addInitializer=function(h){if(m)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(h||null))};var v=(0,r[o])(c==="accessor"?{get:l.get,set:l.set}:l[p],f);if(c==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(y=a(v.get))&&(l.get=y),(y=a(v.set))&&(l.set=y),(y=a(v.init))&&i.unshift(y)}else(y=a(v))&&(c==="field"?i.unshift(y):l[p]=y)}u&&Object.defineProperty(u,n.name,l),m=!0}function jL(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function NL(e){return typeof e=="symbol"?e:"".concat(e)}function UL(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function qL(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function zL(e,t,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function c(l){try{u(n.next(l))}catch(y){a(y)}}function p(l){try{u(n.throw(l))}catch(y){a(y)}}function u(l){l.done?s(l.value):i(l.value).then(c,p)}u((n=n.apply(e,t||[])).next())})}function GL(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(u){return function(l){return p([u,l])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(r=0)),r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){r.label=u[1];break}if(u[0]===6&&r.label<s[1]){r.label=s[1],s=u;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(u);break}s[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(l){u=[6,l],i=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var PT=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function HL(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&PT(t,e,r)}function xT(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ew(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(c){a={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return s}function WL(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ew(arguments[t]));return e}function $L(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var s=arguments[t],a=0,c=s.length;a<c;a++,i++)n[i]=s[a];return n}function XL(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}function qm(e){return this instanceof qm?(this.v=e,this):new qm(e)}function QL(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(o){return function(f){return Promise.resolve(f).then(o,y)}}function c(o,f){n[o]&&(i[o]=function(d){return new Promise(function(v,h){s.push([o,d,v,h])>1||p(o,d)})},f&&(i[o]=f(i[o])))}function p(o,f){try{u(n[o](f))}catch(d){m(s[0][3],d)}}function u(o){o.value instanceof qm?Promise.resolve(o.value.v).then(l,y):m(s[0][2],o)}function l(o){p("next",o)}function y(o){p("throw",o)}function m(o,f){o(f),s.shift(),s.length&&p(s[0][0],s[0][1])}}function YL(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,s){t[i]=e[i]?function(a){return(r=!r)?{value:qm(e[i](a)),done:!1}:s?s(a):a}:s}}function KL(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof xT=="function"?xT(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=e[s]&&function(a){return new Promise(function(c,p){a=e[s](a),i(c,p,a.done,a.value)})}}function i(s,a,c,p){Promise.resolve(p).then(function(u){s({value:u,done:c})},a)}}function ZL(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var ade=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},tw=function(e){return tw=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},tw(e)};function JL(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=tw(e),n=0;n<r.length;n++)r[n]!=="default"&&PT(t,e,r[n]);return ade(t,e),t}function eF(e){return e&&e.__esModule?e:{default:e}}function tF(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function rF(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function nF(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function iF(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(s){return Promise.reject(s)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var sde=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function oF(e){function t(s){e.error=e.hasError?new sde(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(s).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function aF(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,s,a){return n?t?".jsx":".js":i&&(!s||!a)?r:i+s+"."+a.toLowerCase()+"js"}):e}const Ot=Pn(Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:iF,get __assign(){return CT},__asyncDelegator:YL,__asyncGenerator:QL,__asyncValues:KL,__await:qm,__awaiter:zL,__classPrivateFieldGet:tF,__classPrivateFieldIn:nF,__classPrivateFieldSet:rF,__createBinding:PT,__decorate:kL,__disposeResources:oF,__esDecorate:FL,__exportStar:HL,__extends:BL,__generator:GL,__importDefault:eF,__importStar:JL,__makeTemplateObject:ZL,__metadata:qL,__param:LL,__propKey:NL,__read:ew,__rest:OL,__rewriteRelativeImportExtension:aF,__runInitializers:jL,__setFunctionName:UL,__spread:WL,__spreadArray:XL,__spreadArrays:$L,__values:xT,default:{__extends:BL,__assign:CT,__rest:OL,__decorate:kL,__param:LL,__esDecorate:FL,__runInitializers:jL,__propKey:NL,__setFunctionName:UL,__metadata:qL,__awaiter:zL,__generator:GL,__createBinding:PT,__exportStar:HL,__values:xT,__read:ew,__spread:WL,__spreadArrays:$L,__spreadArray:XL,__await:qm,__asyncGenerator:QL,__asyncDelegator:YL,__asyncValues:KL,__makeTemplateObject:ZL,__importStar:JL,__importDefault:eF,__classPrivateFieldGet:tF,__classPrivateFieldSet:rF,__classPrivateFieldIn:nF,__addDisposableResource:iF,__disposeResources:oF,__rewriteRelativeImportExtension:aF}},Symbol.toStringTag,{value:"Module"})));var rw={exports:{}},xg={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var sF;function ude(){if(sF)return xg;sF=1;var e=Gr(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(c,p,u){var l,y={},m=null,o=null;u!==void 0&&(m=""+u),p.key!==void 0&&(m=""+p.key),p.ref!==void 0&&(o=p.ref);for(l in p)n.call(p,l)&&!s.hasOwnProperty(l)&&(y[l]=p[l]);if(c&&c.defaultProps)for(l in p=c.defaultProps,p)y[l]===void 0&&(y[l]=p[l]);return{$$typeof:t,type:c,key:m,ref:o,props:y,_owner:i.current}}return xg.Fragment=r,xg.jsx=a,xg.jsxs=a,xg}var uF;function hr(){return uF||(uF=1,rw.exports=ude()),rw.exports}var nw={},Tg={},lF;function TT(){if(lF)return Tg;lF=1,Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.BitFlags=void 0;var e;return function(t){function r(s){return s}t.create=r;function n(s,a){return(s&a)!==0}t.has=n;function i(s,a){return!!a&&(s&a)===a}t.hasAll=i}(e||(Tg.BitFlags=e={})),Tg}var Ag={},cF;function dF(){if(cF)return Ag;cF=1,Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.StringBuilder=void 0;var e;return function(t){function r(S=512){return{current:[],offset:0,capacity:S,chunks:[]}}t.create=r;function n(S){return S.chunks.length?(S.offset>0&&(S.chunks[S.chunks.length]=S.current.length===S.offset?S.current.join(""):S.current.slice(0,S.offset).join("")),S.chunks.join("")):S.current.length===S.offset?S.current.join(""):S.current.splice(0,S.offset).join("")}t.getString=n;function i(S){let _=0;for(const C of S.chunks)_+=C.length;for(let C=0;C<S.offset;C++)_+=S.current[C].length;return _}t.getSize=i;function s(S){return S.offset>0&&(S.current.length===S.offset?S.chunks[S.chunks.length]=S.current.join(""):S.chunks[S.chunks.length]=S.current.slice(0,S.offset).join(""),S.offset=0),S.chunks}t.getChunks=s;const a=[];(function(){let S="";for(let _=0;_<512;_++)a[_]=S,S=S+" "})();function c(S){y(S,`
`)}t.newline=c;function p(S,_){_>0&&y(S,a[_])}t.whitespace=p;function u(S){y(S," ")}t.whitespace1=u;function l(S,_){_&&(S.offset===S.capacity&&(S.chunks[S.chunks.length]=S.current.join(""),S.offset=0),S.current[S.offset++]=_)}t.write=l;function y(S,_){S.offset===S.capacity&&(S.chunks[S.chunks.length]=S.current.join(""),S.offset=0),S.current[S.offset++]=_}t.writeSafe=y;function m(S,_,C){if(!_){p(S,C);return}const x=C-_.length;p(S,x),y(S,_)}t.writePadLeft=m;function o(S,_,C){if(!_){p(S,C);return}const x=C-_.length;y(S,_),p(S,x)}t.writePadRight=o;function f(S,_){y(S,""+_)}t.writeInteger=f;function d(S,_){y(S,""+_+" ")}t.writeIntegerAndSpace=d;function v(S,_,C){const x=""+_,A=C-x.length;p(S,A),y(S,x)}t.writeIntegerPadLeft=v;function h(S,_,C){const x=""+_,A=C-x.length;y(S,x),p(S,A)}t.writeIntegerPadRight=h;function g(S,_,C){y(S,""+Math.round(C*_)/C)}t.writeFloat=g;function b(S,_,C,x){const A=""+Math.round(C*_)/C,T=x-A.length;p(S,T),y(S,A)}t.writeFloatPadLeft=b;function P(S,_,C,x){const A=""+Math.round(C*_)/C,T=x-A.length;y(S,A),p(S,T)}t.writeFloatPadRight=P}(e||(Ag.StringBuilder=e={})),Ag}var Mg={},zm={},fF;function No(){if(fF)return zm;fF=1,Object.defineProperty(zm,"__esModule",{value:!0}),zm.now=void 0,zm.formatTimespan=t;const e=function(){if(typeof window!="undefined"&&window.performance){const r=window.performance;return()=>r.now()}else return typeof process!="undefined"&&process.hrtime!=="undefined"&&typeof process.hrtime=="function"?()=>{const r=process.hrtime();return r[0]*1e3+r[1]/1e6}:Date.now?()=>Date.now():()=>+new Date}();zm.now=e;function t(r,n=!0){if(isNaN(r))return"n/a";const i=Math.floor(r/(60*60*1e3)),s=Math.floor(r/(60*1e3)%60),a=Math.floor(r/1e3%60);let c=Math.floor(r%1e3).toString();for(;c.length<3;)c="0"+c;for(;!n&&c.length>1&&c[c.length-1]==="0";)c=c.substr(0,c.length-1);return i>0?`${i}h${s}m${a}.${c}s`:s>0?`${s}m${a}.${c}s`:a>0?`${a}.${c}s`:`${r.toFixed(0)}ms`}return zm}var mF;function Dg(){if(mF)return Mg;mF=1,Object.defineProperty(Mg,"__esModule",{value:!0}),Mg.UUID=void 0;const e=No();var t;return function(r){const n=typeof btoa!="undefined"?btoa:p=>Buffer.from(p).toString("base64"),i=[];function s(){let p=+new Date+(0,e.now)();for(let u=0;u<16;u++)i[u]=String.fromCharCode((p+Math.random()*255)%255|0),p=Math.floor(p/255);return n(i.join("")).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22)}r.create22=s;function a(){let p=+new Date+(0,e.now)();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(l){const y=(p+Math.random()*16)%16|0;return p=Math.floor(p/16),(l==="x"?y:y&3|8).toString(16)})}r.createv4=a;function c(p){return typeof p=="string"}r.is=c}(t||(Mg.UUID=t={})),Mg}var Gm={},pF;function lde(){if(pF)return Gm;pF=1,Object.defineProperty(Gm,"__esModule",{value:!0}),Gm.Mask=void 0,Gm.sortAsc=t;function e(n,i){return n-i}function t(n){return Array.prototype.sort.call(n,e),n}var r;return function(n){class i{has(h){return!1}forEach(h,g){return g}constructor(){this.size=0}}class s{has(h){return h===this.idx}forEach(h,g){return h(this.idx,g),g}constructor(h){this.idx=h,this.size=1}}class a{has(h){return h<this.length&&!!this.mask[h]}_forEach(h,g){for(let b=0;b<this.length;b++)this.mask[b]&&h(b,g)}forEach(h,g){return this._forEach(h,g),g}constructor(h,g){this.mask=h,this.size=g,this.length=h.length}}class c{has(h){return!0}_forEach(h,g){for(let b=0;b<this.size;b++)h(b,g)}forEach(h,g){return this._forEach(h,g),g}constructor(h){this.size=h}}class p{has(h){return this.set.has(h)}_forEach(h,g){for(const b of this.flatten())h(b,g)}flatten(){if(this._flat)return this._flat;const h=new Int32Array(this.size);let g=0;return this.set.forEach(b=>h[g++]=b),t(h),this._flat=h,this._flat}forEach(h,g){return this._forEach(h,g),g}constructor(h){this.set=h,this._flat=void 0,this.size=h.size}}function u(v){return new c(v)}n.always=u,n.never=new i;function l(v){return new p(v)}n.ofSet=l;function y(v){return new s(v)}n.singleton=y;function m(v){const h=v.length;if(h===0)return new i;if(h===1)return new s(v[0]);let g=0;for(const S of v)S>g&&(g=S);if(h===g)return new c(h);if(h/g<1/12){const S=new Set;for(const _ of v)S.add(_);return new p(S)}const P=new Int8Array(g+1);for(const S of v)P[S]=1;return new a(P,v.length)}n.ofUniqueIndices=m;function o(v,h){return new a(v,h)}n.ofMask=o;function f(v,h){for(const g of h)if(v.has(g))return!0;return!1}n.hasAny=f;function d(v,h){let g=0,b=0;if(h.forEach(P=>{v.has(P)||(g++,P>b&&(b=P))}),g/b<1/12){const P=new Set;return h.forEach(S=>{v.has(S)||P.add(S)}),l(P)}else{const P=new Uint8Array(b+1);return h.forEach(S=>{v.has(S)||(P[S]=1)}),o(P,g)}}n.complement=d}(r||(Gm.Mask=r={})),Gm}var mu={},AT={},hF;function ro(){if(hF)return AT;hF=1,Object.defineProperty(AT,"__esModule",{value:!0}),AT.idFactory=e;function e(t=0,r=Number.MAX_SAFE_INTEGER){let n=t;return()=>{const i=n;return n=(n+1)%r,i}}return AT}var gF;function Co(){if(gF)return mu;gF=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.ValueCell=mu.ValueBox=mu.ValueRef=void 0;const e=ro();var t;(function(s){function a(p){return{ref:p}}s.create=a;function c(p,u){return p.ref=u,p}s.set=c})(t||(mu.ValueRef=t={}));const r=(0,e.idFactory)(0,2147483647);var n;(function(s){function a(p,u){return{id:r(),version:0,value:p,metadata:u}}s.create=a;function c(p,u){return{id:p.id,version:p.version+1,value:u,metadata:p.metadata}}s.withValue=c})(n||(mu.ValueBox=n={}));var i;return function(s){function a(l,y){return t.create(n.create(l,y))}s.create=a;function c(l,y){return t.set(l,n.withValue(l.ref,y))}s.update=c;function p(l,y){return t.set(l,y)}s.set=p;function u(l,y){return l.ref.value!==y?c(l,y):l}s.updateIfChanged=u}(i||(mu.ValueCell=i={})),mu}var yF;function vt(){return yF||(yF=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.merge=e.assign=e.noop=e.Mask=e.UUID=e.StringBuilder=e.BitFlags=void 0,e.round=c,e.arrayEqual=p,e.deepEqual=l,e.shallowEqual=y,e.shallowEqualObjects=m,e.shallowEqualArrays=o,e.defaults=f,e.extend=d,e.shallowClone=v,e.formatTime=S,e.formatProgress=_,e.formatBytes=C;const t=Ot,r=TT();Object.defineProperty(e,"BitFlags",{enumerable:!0,get:function(){return r.BitFlags}});const n=dF();Object.defineProperty(e,"StringBuilder",{enumerable:!0,get:function(){return n.StringBuilder}});const i=Dg();Object.defineProperty(e,"UUID",{enumerable:!0,get:function(){return i.UUID}});const s=lde();Object.defineProperty(e,"Mask",{enumerable:!0,get:function(){return s.Mask}}),t.__exportStar(Co(),e);const a=function(){};e.noop=a;function c(x,A){const T=Math.pow(10,A);return Math.round(T*x)/T}function p(x,A){const T=x.length;if(T!==A.length)return!1;for(let M=0;M<T;M++)if(x[M]!==A[M])return!1;return!0}const u=Object.prototype.hasOwnProperty;function l(x,A){if(x===A)return!0;const T=Array.isArray(x),M=Array.isArray(A);if(T&&M){if(x.length!==A.length)return!1;for(let D=0;D<x.length;D++)if(!l(x[D],A[D]))return!1;return!0}if(T!==M)return!1;if(x&&A&&typeof x=="object"&&typeof A=="object"){const D=Object.keys(x);if(D.length!==Object.keys(A).length)return!1;const I=x instanceof Date,w=A instanceof Date;if(I&&w)return x.getTime()===A.getTime();if(I!==w)return!1;const E=x instanceof RegExp,R=A instanceof RegExp;if(E&&R)return x.toString()===A.toString();if(E!==R)return!1;for(let V=0;V<D.length;V++)if(!u.call(A,D[V]))return!1;for(let V=0;V<D.length;V++)if(!l(x[D[V]],A[D[V]]))return!1;return!0}return!1}function y(x,A){if(x===A)return!0;const T=Array.isArray(x),M=Array.isArray(A);return T&&M?o(x,A):T!==M?!1:x&&A&&typeof x=="object"&&typeof A=="object"?m(x,A):!1}function m(x,A){if(x===A)return!0;if(!x||!A)return!1;const T=Object.keys(x);if(Object.keys(A).length!==T.length)return!1;for(const M of T)if(!u.call(x,M)||x[M]!==A[M])return!1;return!0}function o(x,A){if(x===A)return!0;if(!x||!A||x.length!==A.length)return!1;for(let T=0,M=x.length;T<M;++T)if(x[T]!==A[T])return!1;return!0}function f(x,A){return x!==void 0?x:A}function d(x,A,T){let M;const D=A,I=x,w=T;for(const E of Object.keys(A))M=D[E],M!==void 0?I[E]=M:T&&(I[E]=w[E]);if(T)for(const E of Object.keys(T))M=I[E],M===void 0&&(I[E]=w[E]);return x}function v(x){return d({},x)}function h(x){for(let A=1;A<arguments.length;A++){const T=arguments[A];for(const M of Object.keys(T))u.call(T,M)&&(x[M]=T[M])}return x}e.assign=Object.assign||h;function g(x,A){let T=!1;for(const M of Object.keys(A))if(u.call(A,M)&&A[M]!==x[M]){T=!0;break}return T?(0,e.assign)(v(x),A):x}function b(x){let A=x;for(let T=1;T<arguments.length;T++)if(arguments[T]&&(A=g(x,arguments[T]),A!==x)){for(let M=T+1;M<arguments.length;M++)A=(0,e.assign)(A,arguments[M]);break}return A}e.merge=b;function P(x){return(x<10?"0":"")+x}function S(x){const A=x.getHours(),T=x.getMinutes(),M=x.getSeconds();return`${A}:${P(T)}:${P(M)}`}function _(x){const A=x.root.progress;if(A.isIndeterminate)return A.message;const T=(100*A.current/A.max).toFixed(2);return`${A.message} ${T}%`}function C(x){const A=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],T=Math.floor(Math.log(x)/Math.log(1024));return`${(x/Math.pow(1024,T)).toFixed(2)} ${A[T]}`}}(nw)),nw}var iw={},Ti={},ow={},Ss={},wg={},aw={},vF;function rn(){return vF||(vF=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PiDiv180=e.halfPI=void 0,e.degToRad=t,e.radToDeg=r,e.isPowerOfTwo=n,e.absMax=i,e.arcLength=s,e.spiral2d=a,e.halfPI=Math.PI/2,e.PiDiv180=Math.PI/180;function t(c){return c*e.PiDiv180}function r(c){return c/e.PiDiv180}function n(c){return c!==0&&(c&c-1)===0}function i(...c){let p=0,u=0;for(let l=0,y=c.length;l<y;++l){const m=c[l],o=Math.abs(m);o>u&&(p=m,u=o)}return p}function s(c,p){return c*p}function a(c){let p=0,u=0,l=0,y=-1;const m=c*2+1,o=m/2,f=[];for(let d=Math.pow(m,2);d>0;--d){if(-o<p&&p<=o&&-o<u&&u<=o&&f.push([p,u]),p===u||p<0&&p===-u||p>0&&p===1-u){const v=l;l=-y,y=v}p+=l,u+=y}return f}}(aw)),aw}var Ig={},no={},bF;function en(){if(bF)return no;bF=1,Object.defineProperty(no,"__esModule",{value:!0}),no.normalize=e,no.clamp=t,no.pclamp=r,no.saturate=n,no.damp=i,no.lerp=s,no.spline=a,no.quadraticBezier=c,no.smoothstep=p,no.smootherstep=u,no.smootheststep=l,no.almostIdentity=y;function e(m,o,f){return(m-o)/(f-o)}function t(m,o,f){return Math.max(o,Math.min(f,m))}function r(m){return t(m,0,100)}function n(m){return t(m,0,1)}function i(m,o){const f=m*o;return Math.abs(f)<.1?0:f}function s(m,o,f){return m+(o-m)*f}function a(m,o,f,d,v,h){const g=(f-m)*h,b=(d-o)*h,P=v*v,S=v*P;return(2*o-2*f+g+b)*S+(-3*o+3*f-2*g-b)*P+g*v+o}function c(m,o,f,d){const v=1-d;return v*v*m+2*v*d*o+d*d*f}function p(m,o,f){return f=n(e(f,m,o)),f*f*(3-2*f)}function u(m,o,f){return f=n(e(f,m,o)),f*f*f*(f*(f*6-15)+10)}function l(m,o,f){return f=n(e(f,m,o)),-20*Math.pow(f,7)+70*Math.pow(f,6)-84*Math.pow(f,5)+35*Math.pow(f,4)}function y(m,o,f){if(m>o)return m;const d=2*f-o,v=2*o-3*f,h=m/o;return(d*h+v)*h*h+f}return no}var _F;function sw(){if(_F)return Ig;_F=1,Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.Lab=i;const e=Po(),t=uw(),r=rn(),n=en();function i(){return i.zero()}return function(s){function a(){const V=[.1,0,0];return V[0]=0,V}s.zero=a;function c(V,B,k){const L=a();return L[0]=V,L[1]=B,L[2]=k,L}s.create=c;function p(V,B,k,L){return V[0]=B,V[1]=k,V[2]=L,V}s.set=p;function u(V,B){const k=B[0]-V[0],L=B[1]-V[1],G=B[2]-V[2];return Math.sqrt(k*k+L*L+G*G)}s.distance=u;function l(V,B){const[k,L,G]=e.Color.toRgb(B),[U,j,N]=R(k,L,G),F=116*j-16;return V[0]=F<0?0:F,V[1]=500*(U-j),V[2]=200*(j-N),V}s.fromColor=l;function y(V,B){return t.Hcl.toLab(V,B)}s.fromHcl=y;function m(V){let B=(V[0]+16)/116,k=isNaN(V[1])?B:B+V[1]/500,L=isNaN(V[2])?B:B-V[2]/200;B=_*I(B),k=S*I(k),L=C*I(L);const G=D(3.2404542*k-1.5371385*B-.4985314*L),U=D(-.969266*k+1.8760108*B+.041556*L),j=D(.0556434*k-.2040259*B+1.0572252*L);return e.Color.fromRgb(Math.round((0,n.clamp)(G,0,255)),Math.round((0,n.clamp)(U,0,255)),Math.round((0,n.clamp)(j,0,255)))}s.toColor=m;function o(V,B){const[k,L,G]=B,U=Math.sqrt(L*L+G*G);let j=((0,r.radToDeg)(Math.atan2(G,L))+360)%360;return Math.round(U*1e4)===0&&(j=Number.NaN),V[0]=j,V[1]=U,V[2]=k,V}s.toHcl=o;function f(V,B){return V[0]=B[0],V[1]=B[1],V[2]=B[2],V}s.copy=f;function d(V,B,k){return V[0]=B[0]-P*k,V[1]=B[1],V[2]=B[2],V}s.darken=d;function v(V,B,k){return d(V,B,-k)}s.lighten=v;const h=[0,0,0];function g(V,B,k){return o(h,B),t.Hcl.toLab(V,t.Hcl.saturate(h,h,k))}s.saturate=g;function b(V,B,k){return g(V,B,-k)}s.desaturate=b;const P=18,S=.95047,_=1,C=1.08883,x=.137931034,A=.206896552,T=.12841855,M=.008856452;function D(V){return 255*(V<=.00304?12.92*V:1.055*Math.pow(V,1/2.4)-.055)}function I(V){return V>A?V*V*V:T*(V-x)}function w(V){return(V/=255)<=.04045?V/12.92:Math.pow((V+.055)/1.055,2.4)}function E(V){return V>M?Math.pow(V,1/3):V/T+x}function R(V,B,k){V=w(V),B=w(B),k=w(k);const L=E((.4124564*V+.3575761*B+.1804375*k)/S),G=E((.2126729*V+.7151522*B+.072175*k)/_),U=E((.0193339*V+.119192*B+.9503041*k)/C);return[L,G,U]}}(i||(Ig.Lab=i={})),Ig}var SF;function uw(){if(SF)return wg;SF=1,Object.defineProperty(wg,"__esModule",{value:!0}),wg.Hcl=r;const e=rn(),t=sw();function r(){return r.zero()}return function(n){function i(){const S=[.1,0,0];return S[0]=0,S}n.zero=i;function s(S,_,C){const x=i();return x[0]=S,x[1]=_,x[2]=C,x}n.create=s;function a(S,_,C,x){return S[0]=_,S[1]=C,S[2]=x,S}n.set=a;function c(S){return!isNaN(S[0])}n.hasHue=c;const p=[0,0,0];function u(S,_){return t.Lab.toHcl(S,t.Lab.fromColor(p,_))}n.fromColor=u;function l(S,_){return t.Lab.toHcl(S,_)}n.fromLab=l;const y=[0,0,0];function m(S){return t.Lab.toColor(o(y,S))}n.toColor=m;function o(S,_){let[C,x,A]=_;return isNaN(C)&&(C=0),C=(0,e.degToRad)(C),S[0]=A,S[1]=Math.cos(C)*x,S[2]=Math.sin(C)*x,S}n.toLab=o;function f(S,_){return S[0]=_[0],S[1]=_[1],S[2]=_[2],S}n.copy=f;function d(S,_,C){return S[0]=_[0],S[1]=Math.max(0,_[1]+P*C),S[2]=_[2],S}n.saturate=d;function v(S,_,C){return d(S,_,-C)}n.desaturate=v;const h=[0,0,0];function g(S,_,C){return o(h,_),t.Lab.toHcl(S,t.Lab.darken(h,h,C))}n.darken=g;function b(S,_,C){return g(S,_,-C)}n.lighten=b;const P=18}(r||(wg.Hcl=r={})),wg}var CF;function Po(){if(CF)return Ss;CF=1,Object.defineProperty(Ss,"__esModule",{value:!0}),Ss.Color=r,Ss.ColorList=n,Ss.ColorTable=i,Ss.ColorMap=s,Ss.getAdjustedColorMap=a,Ss.ColorSwatch=c;const e=uw(),t=sw();function r(p){return p}(function(p){function u(N){return`rgb(${N>>16&255}, ${N>>8&255}, ${N&255})`}p.toStyle=u;function l(N){return"#"+("000000"+N.toString(16)).slice(-6)}p.toHexStyle=l;function y(N){return"0x"+("000000"+N.toString(16)).slice(-6)}p.toHexString=y;function m(N){return`RGB: ${p.toRgb(N).join(", ")}`}p.toRgbString=m;function o(N){return[N>>16&255,N>>8&255,N&255]}p.toRgb=o;function f(N){return[(N>>16&255)/255,(N>>8&255)/255,(N&255)/255]}p.toRgbNormalized=f;function d(N){return parseInt(N.replace("#","0x"))}p.fromHexStyle=d;function v(N){return parseInt(N)}p.fromHexString=v;function h(N,F,z){return N<<16|F<<8|z}p.fromRgb=h;function g(N,F,z){return N*255<<16|F*255<<8|z*255}p.fromNormalizedRgb=g;function b(N,F){return h(N[F],N[F+1],N[F+2])}p.fromArray=b;function P(N,F){return g(N[F],N[F+1],N[F+2])}p.fromNormalizedArray=P;function S(N,F,z){return F[z]=N>>16&255,F[z+1]=N>>8&255,F[z+2]=N&255,F}p.toArray=S;function _(N,F,z){return F[z]=(N>>16&255)/255,F[z+1]=(N>>8&255)/255,F[z+2]=(N&255)/255,F}p.toArrayNormalized=_;function C(N,F){return N[0]=F>>16&255,N[1]=F>>8&255,N[2]=F&255,N}p.toVec3=C;function x(N,F){return N[0]=(F>>16&255)/255,N[1]=(F>>8&255)/255,N[2]=(F&255)/255,N}p.toVec3Normalized=x;function A(N,F,z){const H=N>>16&255,W=N>>8&255,Q=N&255,$=F>>16&255,X=F>>8&255,Y=F&255,te=H+($-H)*z,K=W+(X-W)*z,ee=Q+(Y-Q)*z;return te<<16|K<<8|ee}p.interpolate=A;function T(N){const F=N>>16&255,z=N>>8&255,H=N&255;return F!==z||F!==H}p.hasHue=T;const M=[0,0,0];function D(N,F){return T(N)?(e.Hcl.fromColor(M,N),e.Hcl.toColor(e.Hcl.saturate(M,M,F))):N}p.saturate=D;function I(N,F){return D(N,-F)}p.desaturate=I;const w=[0,0,0];function E(N,F){return t.Lab.fromColor(w,N),t.Lab.toColor(t.Lab.darken(w,w,F))}p.darken=E;function R(N,F){return E(N,-F)}p.lighten=R;function V(N){return N<=.03928?N/12.92:Math.pow((N+.055)/1.055,2.4)}function B(N){const F=V((N>>16&255)/255),z=V((N>>8&255)/255),H=V((N&255)/255);return .2126*F+.7152*z+.0722*H}p.luminance=B;function k(N,F){const z=B(N),H=B(F);return z>H?(z+.05)/(H+.05):(H+.05)/(z+.05)}p.contrast=k;function L(N){return N<.04045?N*.0773993808:Math.pow(N*.9478672986+.0521327014,2.4)}function G(N){return g(L((N>>16&255)/255),L((N>>8&255)/255),L((N&255)/255))}p.sRGBToLinear=G;function U(N){return N<.0031308?N*12.92:1.055*Math.pow(N,.41666)-.055}function j(N){return g(U((N>>16&255)/255),U((N>>8&255)/255),U((N&255)/255))}p.linearToSRGB=j})(r||(Ss.Color=r={}));function n(p,u,l,y){return{label:p,description:l,list:y,type:u}}function i(p){return p}function s(p){return p}function a(p,u,l){const y={};for(const m in p){let o=p[m];o=r.saturate(o,u),o=r.darken(o,-l),y[m]=o}return y}function c(p){return p}return Ss}var lw={},cw={},dw={},PF;function pi(){return PF||(PF=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.upperCase=e.lowerCase=void 0,e.indentString=r,e.splitCamelCase=n,e.camelCaseToWords=i,e.upperCaseAny=c,e.capitalize=p,e.splitSnakeCase=u,e.snakeCaseToWords=l,e.splitKebabCase=y,e.kebabCaseToWords=m,e.stringToWords=o,e.substringStartsWith=f,e.interpolate=d,e.trimChar=v,e.trimCharStart=h,e.trimCharEnd=g,e.stripTags=b,e.escapeRegExp=P;const t=/^/mg;function r(S,_,C){return _===0?S:S.replace(t,C.repeat(_))}function n(S,_=" "){return S.replace(/([a-z\xE0-\xFF])([A-Z\xC0\xDF])/g,`$1${_}$2`)}function i(S){return p(n(S))}const s=S=>S.toLowerCase();e.lowerCase=s;const a=S=>S.toUpperCase();e.upperCase=a;function c(S){return S?typeof S=="string"?S.toUpperCase():`${S}`.toUpperCase():""}function p(S){return S.toLowerCase().replace(/^\w|\s\w/g,e.upperCase)}function u(S){return S.replace(/_/g," ")}function l(S){return p(u(S))}function y(S){return S.replace(/-/g," ")}function m(S){return p(y(S))}function o(S){return p(n(u(y(S))))}function f(S,_,C,x){const A=x.length;if(A>C-_)return!1;for(let T=0;T<A;T++)if(S.charCodeAt(_+T)!==x.charCodeAt(T))return!1;return!0}function d(S,_){const C=Object.keys(_),x=Object.values(_);return new Function(...C,`return \`${S}\`;`)(...x)}function v(S,_){let C=0,x=S.length;for(;C<x&&S[C]===_;)++C;for(;x>C&&S[x-1]===_;)--x;return C>0||x<S.length?S.substring(C,x):S}function h(S,_){let C=0;const x=S.length;for(;C<x&&S[C]===_;)++C;return C>0?S.substring(C,x):S}function g(S,_){let C=S.length;for(;C>0&&S[C-1]===_;)--C;return C<S.length?S.substring(0,C):S}function b(S){return S.replace(/<\/?[^>]+>/g,"")}function P(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}(dw)),dw}var xF;function Cs(){return xF||(xF=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorListOptionsSet=e.ColorListOptionsScale=e.ColorListOptions=e.ColorListNames=e.ColorLists=void 0,e.getColorListFromName=n;const t=Po(),r=pi();e.ColorLists={"orange-red":(0,t.ColorList)("Orange-Red","sequential","Orange-Red, sequential color scheme from ColorBrewer 2.0",[16775148,16705736,16635038,16628612,16551257,15689032,14102559,11730944,8323072]),"purple-blue":(0,t.ColorList)("Purple-Blue","sequential","Purple-Blue, sequential color scheme from ColorBrewer 2.0",[16775163,15525874,13685222,10927579,7645647,3576e3,356528,285325,145496]),"blue-purple":(0,t.ColorList)("Blue-Purple","sequential","Blue-Purple, sequential color scheme from ColorBrewer 2.0",[16252157,14740724,12571622,10403034,9213638,9202609,8929693,8458108,5046347]),oranges:(0,t.ColorList)("Oranges","sequential","",[16774635,16705230,16634018,16625259,16616764,15821075,14239745,10892803,8333060]),"blue-green":(0,t.ColorList)("Blue-Green","sequential","",[16252157,15070713,13429990,10082505,6734500,4304502,2329413,27948,17435]),"yellow-orange-brown":(0,t.ColorList)("Yellow-Orange-Brown","sequential","",[16777189,16775100,16704401,16696399,16685353,15495188,13388802,10040324,6694150]),"yellow-green":(0,t.ColorList)("Yellow-Green","sequential","",[16777189,16252089,14282915,11394446,7915129,4303709,2327619,26679,17705]),reds:(0,t.ColorList)("Reds","sequential","",[16774640,16703698,16563105,16552562,16476746,15678252,13309981,10817301,6750221]),"red-purple":(0,t.ColorList)("Red-Purple","sequential","",[16775155,16638173,16565696,16424885,16214177,14496919,11403646,7995767,4784234]),greens:(0,t.ColorList)("Greens","sequential","",[16252149,15070688,13101504,10607003,7652470,4303709,2329413,27948,17435]),"yellow-green-blue":(0,t.ColorList)("Yellow-Green-Blue","sequential","",[16777177,15595697,13101492,8375739,4306628,1937856,2252456,2438292,531800]),purples:(0,t.ColorList)("Purples","sequential","",[16579581,15724021,14342891,12369372,10394312,8420794,6967715,5515151,4128893]),"green-blue":(0,t.ColorList)("Green-Blue","sequential","",[16252144,14742491,13429701,11066805,8113348,5157843,2854078,551084,540801]),greys:(0,t.ColorList)("Greys","sequential","",[16777215,15790320,14277081,12434877,9868950,7566195,5395026,2434341,0]),"yellow-orange-red":(0,t.ColorList)("Yellow-Orange-Red","sequential","",[16777164,16772512,16701814,16691788,16616764,16535082,14883356,12386342,8388646]),"purple-red":(0,t.ColorList)("Purple-Red","sequential","",[16250105,15196655,13941210,13210823,14640560,15149450,13505110,9961539,6750239]),blues:(0,t.ColorList)("Blues","sequential","",[16251903,14609399,13032431,10406625,7057110,4362950,2191797,545180,536683]),"purple-blue-green":(0,t.ColorList)("Purple-Blue-Green","sequential","",[16775163,15524592,13685222,10927579,6793679,3576e3,164234,93273,83510]),spectral:(0,t.ColorList)("Spectral","diverging","",[10355010,13975119,16018755,16625249,16703627,16777151,15136152,11263396,6734501,3311805,6180770]),"red-yellow-green":(0,t.ColorList)("Red-Yellow-Green","diverging","",[10813478,14102567,16018755,16625249,16703627,16777151,14282635,10934634,6733155,1742928,26679]),"red-blue":(0,t.ColorList)("Red-Blue","diverging","",[6750239,11671595,14049357,16033154,16636871,16250871,13755888,9618910,4428739,2188972,340065]),"pink-yellow-green":(0,t.ColorList)("Pink-Yellow-Green","diverging","",[9306450,12917629,14579630,15840986,16638191,16250871,15136208,12116358,8371265,5083681,2581529]),"purple-green":(0,t.ColorList)("Purple-Green","diverging","",[4194379,7744131,10055851,12756431,15193320,16250871,14282963,10935200,5942881,1800247,17435]),"red-yellow-blue":(0,t.ColorList)("Red-Yellow-Blue","diverging","Red-Yellow-Blue, diverging color scheme from ColorBrewer 2.0",[10813478,14102567,16018755,16625249,16703632,16777151,14742520,11262441,7646673,4552116,3225237]),"brown-white-green":(0,t.ColorList)("Brown-White-Green","diverging","",[5517317,9195786,12550445,14664317,16181443,16119285,13101797,8441281,3512207,91742,15408]),"red-grey":(0,t.ColorList)("Red-Grey","diverging","",[6750239,11671595,14049357,16033154,16636871,16777215,14737632,12237498,8882055,5066061,1710618]),"orange-purple":(0,t.ColorList)("Orange-Purple","diverging","",[8338184,11753478,14713364,16627811,16703670,16250871,14211819,11709394,8418220,5515144,2949195]),"set-2":(0,t.ColorList)("Set-2","qualitative","",[6734501,16551266,9281739,15174339,10934356,16767279,15058068,11776947]),accent:(0,t.ColorList)("Accent","qualitative","",[8374655,12496596,16629894,16777113,3697840,15729279,12540695,6710886]),"set-1":(0,t.ColorList)("Set-1","qualitative","",[14948892,3636920,5091146,9981603,16744192,16777011,10901032,16220607,10066329]),"set-3":(0,t.ColorList)("Set-3","qualitative","",[9294791,16777139,12499674,16482418,8434131,16626786,11787881,16567781,14277081,12353725,13429701,16772463]),"dark-2":(0,t.ColorList)("Dark-2","qualitative","",[1810039,14245634,7696563,15149450,6727198,15117058,10909213,6710886]),paired:(0,t.ColorList)("Paired","qualitative","",[10931939,2062516,11722634,3383340,16489113,14883356,16629615,16744192,13284054,6962586,16777113,11622696]),"pastel-2":(0,t.ColorList)("Pastel-2","qualitative","",[11789005,16633260,13358568,16042724,15136201,16773806,15852236,13421772]),"pastel-1":(0,t.ColorList)("Pastel-1","qualitative","",[16495790,11783651,13429701,14601188,16701862,16777164,15063229,16636652,15921906]),"many-distinct":(0,t.ColorList)("Many-Distinct","qualitative","",[1810039,14245634,7696563,15149450,6727198,15117058,10909213,6710886,14948892,3636920,5091146,9981603,16744192,16777011,10901032,16220607,10066329,6734501,16551266,9281739,15174339,10934356,16767279,15058068,11776947]),magma:(0,t.ColorList)("Magma","sequential","Perceptually uniform shades of black-red-white",[4329332,4853881,5378684,5903742,6363263,6888576,7413633,7938689,8463745,8988801,9513600,10038655,10563454,11088508,11613562,12138360,12728949,13254258,13714030,14239338,14699366,15094114,15489119,15753309,16017499,16216411,16350045,16483424,16551523,16619368,16621934,16689780,16692091,16694402,16696969,16633746,16636058,16638371,16575148,16577461,16514239]),inferno:(0,t.ColorList)("Inferno","sequential","Perceptually uniform shades of black-red-yellow",[4721514,5246316,5771373,6296430,6821486,7346542,7871597,8396651,8921450,9446504,9971557,10496610,10956127,11481435,12006486,12466258,12926285,13386056,13780802,14241085,14570295,14965297,15229227,15558693,15757342,15956248,16154897,16288267,16421638,16489734,16492043,16494612,16496926,16368426,16305463,16111429,15982678,15853928,15856253,16119953,16580260]),plasma:(0,t.ColorList)("Plasma","sequential","Perceptually uniform shades of blue-red-yellow",[1771148,2426257,3081365,3671193,4195228,4784799,5308834,5833124,6357158,6815911,7340200,7864744,8324007,8783782,9309348,9769377,10164126,10624154,11018902,11413393,11808141,12137352,12466307,12795519,13124730,13453685,13717361,14046573,14309992,14573668,14837344,15035483,15299159,15497299,15695438,15893834,16091974,16224833,16357693,16425017,16557877,16625457,16627245,16629289,16631334,16567845,16438820,16310052,16115494,15921190,15726625]),viridis:(0,t.ColorList)("Viridis","sequential","Perceptually uniform shades of blue-green-yellow",[4524123,4656994,4658793,4726127,4727668,4663929,4599933,4535937,4406404,4276870,4081800,3952010,3822475,3627148,3497356,3302029,3172237,3042446,2912654,2782862,2652814,2523022,2393229,2328973,2198924,2069132,2004874,2005897,2007175,2139525,2337154,2666111,3060348,3520376,4045684,4570991,5227369,5883748,6605661,7392854,8180303,8967495,9819967,10672695,11525166,12443174,13295646,14148121,15000344,15852828,16639780]),cividis:(0,t.ColorList)("Cividis","sequential","Perceptually uniform shades of blue-green-yellow, should look effectively identical to colorblind and non-colorblind users",[11367,12400,537456,1455727,2046574,2571629,3031404,3425388,3754092,4148075,4476779,4805227,5133932,5396844,5725549,5988462,6317166,6580079,6843249,7171698,7434867,7697781,7960951,8289656,8618104,8881272,9209976,9538679,9867127,10195830,10524533,10853235,11181938,11510640,11839343,12168045,12497002,12891240,13219941,13548642,13943134,14271834,14666326,14995025,15389516,15718470,16112703,16507190,16639799]),twilight:(0,t.ColorList)("Twilight","sequential","Perceptually uniform shades of white-blue-black-red-white, cyclic",[14670305,14211037,13554648,12766675,11847630,10993866,10139847,9351365,8628419,8036290,7509952,7048895,6718653,6519739,6386105,6252470,6184114,6181293,6112935,6044831,5976470,5777291,5447293,5052270,4592479,4067665,3674181,3281211,3150646,3543352,4067644,4657728,5379141,6166345,6953549,7741007,8463184,9120336,9777743,10304079,10830671,11291984,11687762,12083541,12348505,12613471,12878439,13077872,13211771,13411209,13545111,13809830,14074293,14338756,14537169,14735067,14801121]),turbo:(0,t.ColorList)("Turbo","sequential","Improved (smooth) rainbow colormap for visualization",[4866485,4872413,4354034,3770361,3120629,2667241,2475736,2611140,3073454,3928216,5109892,6487408,8126047,9829201,11531332,13167162,14605618,15780908,16693543,16753699,16748