@stlite/desktop 0.87.0 → 0.88.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/build/assets/{ErrorOutline.esm-C8z2dN3x.js → ErrorOutline.esm-D5Ifiwqa.js} +1 -1
  2. package/build/assets/{FileDownload.esm-kSzyJagP.js → FileDownload.esm-DOHSKnrq.js} +1 -1
  3. package/build/assets/{FileHelper-BbrZYz8x.js → FileHelper-BTXiVf4-.js} +1 -1
  4. package/build/assets/{FormClearHelper-fvwQICEk.js → FormClearHelper-BC4K9Zmh.js} +1 -1
  5. package/build/assets/{Hooks-CCS44jMc.js → Hooks-GYU3aDYH.js} +1 -1
  6. package/build/assets/{InputInstructions-BgxdtQsQ.js → InputInstructions-CqSmotDL.js} +1 -1
  7. package/build/assets/{Particles-C6lCS8Mc.js → Particles-DKyXwmGK.js} +1 -1
  8. package/build/assets/{ProgressBar-CXipOcU9.js → ProgressBar-B7cXo5Zk.js} +1 -1
  9. package/build/assets/{Toolbar-DiWCQxr5.js → Toolbar-CF99-ktZ.js} +1 -1
  10. package/build/assets/{base-input-D2OIsCyG.js → base-input-Bu7lYJya.js} +1 -1
  11. package/build/assets/{checkbox-BNaalk8J.js → checkbox-vy_88iMk.js} +1 -1
  12. package/build/assets/{createSuper-CQM18OGw.js → createSuper-BZDCsfCp.js} +1 -1
  13. package/build/assets/{data-grid-overlay-editor-CK8RiHSC.js → data-grid-overlay-editor-P0wPqvRS.js} +1 -1
  14. package/build/assets/{downloader-CE817MUq.js → downloader-E6SH6tis.js} +1 -1
  15. package/build/assets/{es6-D9GNxEuI.js → es6-lWl2HAKQ.js} +2 -2
  16. package/build/assets/{iframeResizer.contentWindow-CNYkPhE6.js → iframeResizer.contentWindow-BblXhc8K.js} +1 -1
  17. package/build/assets/{index-cAlcGRT2.js → index-3q7VEUlu.js} +1 -1
  18. package/build/assets/{index-B-7mLFMQ.js → index-9Wb22-Zl.js} +1 -1
  19. package/build/assets/{index-DCNLpqIv.js → index-B2QqSXxG.js} +4 -4
  20. package/build/assets/{index-C1VFEx3W.js → index-BAt37HPV.js} +1 -1
  21. package/build/assets/{index-DFlTnZFo.js → index-BHD6dN1i.js} +1 -1
  22. package/build/assets/{index-CDtHDDVr.js → index-BHYA8KUU.js} +1 -1
  23. package/build/assets/{index-B5zkrGKq.js → index-Ba8Fd3Iw.js} +1 -1
  24. package/build/assets/{index-CjHv4qYi.js → index-Bl3t7YE9.js} +1 -1
  25. package/build/assets/{index-BGbl-ncy.js → index-C0rU7wjo.js} +1 -1
  26. package/build/assets/{index-mlKr_pQQ.js → index-C8408c32.js} +1 -1
  27. package/build/assets/{index--SdlqSfi.js → index-C9dv_cRO.js} +1 -1
  28. package/build/assets/{index-CnRs0MgX.js → index-CBgaSeZa.js} +1 -1
  29. package/build/assets/{index-BI9UgvCi.js → index-CESihKoP.js} +1 -1
  30. package/build/assets/{index-X9E9p-kg.js → index-CHcwRuRz.js} +1 -1
  31. package/build/assets/{index-C6fUDD3N.js → index-CO2uSAB4.js} +1 -1
  32. package/build/assets/{index-DFWekVRf.js → index-COVY3it_.js} +1 -1
  33. package/build/assets/{index-DDiZtaVk.js → index-C_XWYeXZ.js} +1 -1
  34. package/build/assets/{index-Wzix0Ssr.js → index-CcNoZyGq.js} +1 -1
  35. package/build/assets/{index-7qt3HHfl.js → index-CeooaFxj.js} +1 -1
  36. package/build/assets/{index-B3wu97uA.js → index-Ck8oqwxV.js} +1 -1
  37. package/build/assets/{index-CGMUJ4kd.js → index-D1lT9gPf.js} +1 -1
  38. package/build/assets/{index-DhqQeff3.js → index-D7qhlvAL.js} +5 -5
  39. package/build/assets/{index-DqnX_TF4.js → index-DDHABoz7.js} +1 -1
  40. package/build/assets/{index-DhxOxSgZ.js → index-DKJBdNcR.js} +1 -1
  41. package/build/assets/{index-CT5_r023.js → index-DLKkPsKG.js} +1 -1
  42. package/build/assets/{index-CI7_FxNG.js → index-DPhgZ6z8.js} +1 -1
  43. package/build/assets/{index---v6J_Xe.js → index-DodBZ077.js} +1 -1
  44. package/build/assets/{index-DXGgezsh.js → index-E1lgIpin.js} +1 -1
  45. package/build/assets/{index-D0YDqQsn.js → index-IjmnJRcJ.js} +1 -1
  46. package/build/assets/{index-Vs85zs5K.js → index-J69gSkQ7.js} +1 -1
  47. package/build/assets/{index-Bnvb95fQ.js → index-LjAoKxoo.js} +1 -1
  48. package/build/assets/{index-Dc2c4xJB.js → index-NFS9SZBh.js} +1 -1
  49. package/build/assets/{index-XLeMBlQJ.js → index-UG5gS873.js} +1 -1
  50. package/build/assets/{index-CxsEqDQL.js → index-oUxYecyl.js} +1 -1
  51. package/build/assets/{index-BDOZpIxN.js → index-rGN93mnX.js} +1 -1
  52. package/build/assets/{index-CKEBU2Tu.js → index-sNwZkMcg.js} +1 -1
  53. package/build/assets/{index-DyVqVg90.js → index-tGudOCY7.js} +1 -1
  54. package/build/assets/{inherits-BWX75f6B.js → inherits-CxdXuG_P.js} +1 -1
  55. package/build/assets/{input-DTfsWA-x.js → input-CK3Z1ctS.js} +1 -1
  56. package/build/assets/{memory-DS2CpVMo.js → memory-F_WtxrTu.js} +1 -1
  57. package/build/assets/{mergeWith-fWFIuGgc.js → mergeWith-DB-_2-Rw.js} +1 -1
  58. package/build/assets/{number-overlay-editor-DDQgeQYn.js → number-overlay-editor-B9-dA9Oc.js} +1 -1
  59. package/build/assets/{sandbox-VD4WfD0W.js → sandbox-OL9X-HVr.js} +1 -1
  60. package/build/assets/{slicedToArray-CgI3PJi3.js → slicedToArray-Dcf1iVtV.js} +1 -1
  61. package/build/assets/{timepicker-qd0SiRjC.js → timepicker-CNx-qwHe.js} +1 -1
  62. package/build/assets/{uniqueId-Dgo2nsPZ.js → uniqueId-B67KB2Sb.js} +1 -1
  63. package/build/assets/{useBasicWidgetState-9vtYd9vP.js → useBasicWidgetState-DVIC6bdr.js} +1 -1
  64. package/build/assets/{useTextInputAutoExpand-BFx1z0yW.js → useTextInputAutoExpand-D9ObUIEt.js} +1 -1
  65. package/build/assets/{useUpdateUiValue-BF7Ryinr.js → useUpdateUiValue-BpA660Wd.js} +1 -1
  66. package/build/assets/{withFullScreenWrapper-C3PKUCi4.js → withFullScreenWrapper-CQbXKdaQ.js} +1 -1
  67. package/build/assets/worker-Cet_Vg8m.js +105 -0
  68. package/build/electron/worker.js +9 -9
  69. package/build/index.html +1 -1
  70. package/package.json +5 -5
  71. package/wheels/streamlit-1.48.0-cp312-none-any.whl +0 -0
  72. package/build/assets/worker-B7Gzidb7.js +0 -105
@@ -1,4 +1,4 @@
1
- import{r as Te,as as Ci,bt as Ae,g as zh,bu as aU,bv as Ou,_ as AB,b0 as cU,j as Yc,c as gB,b8 as mB,bd as yB,K as G_,bw as vB,b4 as lU,L as uU,ap as hU,bx as fU,by as _B}from"./index-DCNLpqIv.js";import{_ as ho,C as dU}from"./slicedToArray-CgI3PJi3.js";import{a as Lu,b as Fu,_ as j_,c as gd,d as V_}from"./inherits-BWX75f6B.js";import{E as bB,w as pU}from"./withFullScreenWrapper-C3PKUCi4.js";import{T as AU,a as gU}from"./Toolbar-DiWCQxr5.js";import{u as mU}from"./useBasicWidgetState-9vtYd9vP.js";import{u as yU,s as vU}from"./threshold-CqET7LYC.js";import"./FormClearHelper-fvwQICEk.js";import"./value-CgPGBV_l.js";function _U(e,t){for(var i=0;i<t.length;i++){const n=t[i];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in e)){const s=Object.getOwnPropertyDescriptor(n,r);s&&Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>n[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Um(e,t){if(!e)throw new Error(t||"loader assertion failed.")}const H_=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),xB=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);xB&&parseFloat(xB[1]);const wB=globalThis,CB=globalThis.process||{};function bU(e){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&process.versions?.electron)return!0;const t=typeof navigator<"u"&&navigator.userAgent;return!!(t&&t.indexOf("Electron")>=0)}function W_(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||bU()}const EB="4.0.7";function xU(e){try{const t=window[e],i="__storage_test__";return t.setItem(i,i),t.removeItem(i),t}catch{return null}}let wU=class{constructor(e,t,i="sessionStorage"){this.storage=xU(i),this.id=e,this.config=t,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){const t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let e={};if(this.storage){const t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}};function CU(e){let t;return e<10?t=`${e.toFixed(2)}ms`:e<100?t=`${e.toFixed(1)}ms`:e<1e3?t=`${e.toFixed(0)}ms`:t=`${(e/1e3).toFixed(2)}s`,t}function EU(e,t=8){const i=Math.max(t-e.length,0);return`${" ".repeat(i)}${e}`}var zm;(function(e){e[e.BLACK=30]="BLACK",e[e.RED=31]="RED",e[e.GREEN=32]="GREEN",e[e.YELLOW=33]="YELLOW",e[e.BLUE=34]="BLUE",e[e.MAGENTA=35]="MAGENTA",e[e.CYAN=36]="CYAN",e[e.WHITE=37]="WHITE",e[e.BRIGHT_BLACK=90]="BRIGHT_BLACK",e[e.BRIGHT_RED=91]="BRIGHT_RED",e[e.BRIGHT_GREEN=92]="BRIGHT_GREEN",e[e.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",e[e.BRIGHT_BLUE=94]="BRIGHT_BLUE",e[e.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",e[e.BRIGHT_CYAN=96]="BRIGHT_CYAN",e[e.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(zm||(zm={}));const BU=10;function BB(e){return typeof e!="string"?e:(e=e.toUpperCase(),zm[e]||zm.WHITE)}function TU(e,t,i){return!W_&&typeof e=="string"&&(t&&(e=`\x1B[${BB(t)}m${e}\x1B[39m`),i&&(e=`\x1B[${BB(i)+BU}m${e}\x1B[49m`)),e}function SU(e,t=["constructor"]){const i=Object.getPrototypeOf(e),n=Object.getOwnPropertyNames(i),r=e;for(const s of n){const o=r[s];typeof o=="function"&&(t.find(c=>s===c)||(r[s]=o.bind(e)))}}function J_(e,t){if(!e)throw new Error("Assertion failed")}function md(){let e;if(W_()&&wB.performance)e=wB?.performance?.now?.();else if("hrtime"in CB){const t=CB?.hrtime?.();e=t[0]*1e3+t[1]/1e6}else e=Date.now();return e}const yd={debug:W_()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},IU={enabled:!0,level:0};function vd(){}const TB={},SB={once:!0};let IB=class{constructor({id:e}={id:""}){this.VERSION=EB,this._startTs=md(),this._deltaTs=md(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new wU(`__probe-${this.id}__`,IU),this.timeStamp(`${this.id} started`),SU(this),Object.seal(this)}set level(e){this.setLevel(e)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((md()-this._startTs).toPrecision(10))}getDelta(){return Number((md()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._storage.setConfiguration({enabled:e}),this}setLevel(e){return this._storage.setConfiguration({level:e}),this}get(e){return this._storage.config[e]}set(e,t){this._storage.setConfiguration({[e]:t})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,t){if(!e)throw new Error(t||"Assertion failed")}warn(e){return this._getLogFunction(0,e,yd.warn,arguments,SB)}error(e){return this._getLogFunction(0,e,yd.error,arguments)}deprecated(e,t){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${t}\` instead`)}removed(e,t){return this.error(`\`${e}\` has been removed. Use \`${t}\` instead`)}probe(e,t){return this._getLogFunction(e,t,yd.log,arguments,{time:!0,once:!0})}log(e,t){return this._getLogFunction(e,t,yd.debug,arguments)}info(e,t){return this._getLogFunction(e,t,console.info,arguments)}once(e,t){return this._getLogFunction(e,t,yd.debug||yd.info,arguments,SB)}table(e,t,i){return t?this._getLogFunction(e,t,console.table||vd,i&&[i],{tag:PU(t)}):vd}time(e,t){return this._getLogFunction(e,t,console.time?console.time:console.info)}timeEnd(e,t){return this._getLogFunction(e,t,console.timeEnd?console.timeEnd:console.info)}timeStamp(e,t){return this._getLogFunction(e,t,console.timeStamp||vd)}group(e,t,i={collapsed:!1}){const n=PB({logLevel:e,message:t,opts:i}),{collapsed:r}=i;return n.method=(r?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}groupCollapsed(e,t,i={}){return this.group(e,t,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._getLogFunction(e,"",console.groupEnd||vd)}withGroup(e,t,i){this.group(e,t)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&this.getLevel()>=MB(e)}_getLogFunction(e,t,i,n,r){if(this._shouldLog(e)){r=PB({logLevel:e,message:t,args:n,opts:r}),i=i||r.method,J_(i),r.total=this.getTotal(),r.delta=this.getDelta(),this._deltaTs=md();const s=r.tag||r.message;if(r.once&&s)if(!TB[s])TB[s]=md();else return vd;return t=MU(this.id,r.message,r),i.bind(console,t,...r.args)}return vd}};IB.VERSION=EB;function MB(e){if(!e)return 0;let t;switch(typeof e){case"number":t=e;break;case"object":t=e.logLevel||e.priority||0;break;default:return 0}return J_(Number.isFinite(t)&&t>=0),t}function PB(e){const{logLevel:t,message:i}=e;e.logLevel=MB(t);const n=e.args?Array.from(e.args):[];for(;n.length&&n.shift()!==i;);switch(typeof t){case"string":case"function":i!==void 0&&n.unshift(i),e.message=t;break;case"object":Object.assign(e,t);break}typeof e.message=="function"&&(e.message=e.message());const r=typeof e.message;return J_(r==="string"||r==="object"),Object.assign(e,{args:n},e.opts)}function MU(e,t,i){if(typeof t=="string"){const n=i.time?EU(CU(i.total)):"";t=i.time?`${e}: ${n} ${t}`:`${e}: ${t}`,t=TU(t,i.color,i.background)}return t}function PU(e){for(const t in e)for(const i in e[t])return i||"untitled";return"empty"}const X_="4.3.1",RU=X_[0]>="0"&&X_[0]<="9"?`v${X_}`:"";function DU(){const e=new IB({id:"loaders.gl"});return globalThis.loaders=globalThis.loaders||{},globalThis.loaders.log=e,globalThis.loaders.version=RU,globalThis.probe=globalThis.probe||{},globalThis.probe.loaders=e,e}const OU=DU();function LU(e,t){return RB(e||{},t)}function RB(e,t,i=0){if(i>3)return t;const n={...e};for(const[r,s]of Object.entries(t))s&&typeof s=="object"&&!Array.isArray(s)?n[r]=RB(n[r]||{},t[r],i+1):n[r]=t[r];return n}const FU="latest";function kU(){return globalThis._loadersgl_?.version||(globalThis._loadersgl_=globalThis._loadersgl_||{},globalThis._loadersgl_.version="4.3.1"),globalThis._loadersgl_.version}const NU=kU();function ku(e,t){if(!e)throw new Error(t||"loaders.gl assertion failed.")}const Gh=typeof process!="object"||String(process)!=="[object process]"||process.browser,UU=typeof window<"u"&&typeof window.orientation<"u",DB=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);DB&&parseFloat(DB[1]);let zU=class{name;workerThread;isRunning=!0;result;_resolve=()=>{};_reject=()=>{};constructor(e,t){this.name=e,this.workerThread=t,this.result=new Promise((i,n)=>{this._resolve=i,this._reject=n})}postMessage(e,t){this.workerThread.postMessage({source:"loaders.gl",type:e,payload:t})}done(e){ku(this.isRunning),this.isRunning=!1,this._resolve(e)}error(e){ku(this.isRunning),this.isRunning=!1,this._reject(e)}},Q_=class{terminate(){}};const K_=new Map;function GU(e){ku(e.source&&!e.url||!e.source&&e.url);let t=K_.get(e.source||e.url);return t||(e.url&&(t=jU(e.url),K_.set(e.url,t)),e.source&&(t=OB(e.source),K_.set(e.source,t))),ku(t),t}function jU(e){if(!e.startsWith("http"))return e;const t=VU(e);return OB(t)}function OB(e){const t=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(t)}function VU(e){return`try {
1
+ import{r as Te,as as Ci,bt as Ae,g as zh,bu as aU,bv as Ou,_ as AB,b0 as cU,j as Yc,c as gB,b8 as mB,bd as yB,K as G_,bw as vB,b4 as lU,L as uU,ap as hU,bx as fU,by as _B}from"./index-B2QqSXxG.js";import{_ as ho,C as dU}from"./slicedToArray-Dcf1iVtV.js";import{a as Lu,b as Fu,_ as j_,c as gd,d as V_}from"./inherits-CxdXuG_P.js";import{E as bB,w as pU}from"./withFullScreenWrapper-CQbXKdaQ.js";import{T as AU,a as gU}from"./Toolbar-CF99-ktZ.js";import{u as mU}from"./useBasicWidgetState-DVIC6bdr.js";import{u as yU,s as vU}from"./threshold-CqET7LYC.js";import"./FormClearHelper-BC4K9Zmh.js";import"./value-CgPGBV_l.js";function _U(e,t){for(var i=0;i<t.length;i++){const n=t[i];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in e)){const s=Object.getOwnPropertyDescriptor(n,r);s&&Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>n[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Um(e,t){if(!e)throw new Error(t||"loader assertion failed.")}const H_=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),xB=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);xB&&parseFloat(xB[1]);const wB=globalThis,CB=globalThis.process||{};function bU(e){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&process.versions?.electron)return!0;const t=typeof navigator<"u"&&navigator.userAgent;return!!(t&&t.indexOf("Electron")>=0)}function W_(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||bU()}const EB="4.0.7";function xU(e){try{const t=window[e],i="__storage_test__";return t.setItem(i,i),t.removeItem(i),t}catch{return null}}let wU=class{constructor(e,t,i="sessionStorage"){this.storage=xU(i),this.id=e,this.config=t,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){const t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let e={};if(this.storage){const t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}};function CU(e){let t;return e<10?t=`${e.toFixed(2)}ms`:e<100?t=`${e.toFixed(1)}ms`:e<1e3?t=`${e.toFixed(0)}ms`:t=`${(e/1e3).toFixed(2)}s`,t}function EU(e,t=8){const i=Math.max(t-e.length,0);return`${" ".repeat(i)}${e}`}var zm;(function(e){e[e.BLACK=30]="BLACK",e[e.RED=31]="RED",e[e.GREEN=32]="GREEN",e[e.YELLOW=33]="YELLOW",e[e.BLUE=34]="BLUE",e[e.MAGENTA=35]="MAGENTA",e[e.CYAN=36]="CYAN",e[e.WHITE=37]="WHITE",e[e.BRIGHT_BLACK=90]="BRIGHT_BLACK",e[e.BRIGHT_RED=91]="BRIGHT_RED",e[e.BRIGHT_GREEN=92]="BRIGHT_GREEN",e[e.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",e[e.BRIGHT_BLUE=94]="BRIGHT_BLUE",e[e.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",e[e.BRIGHT_CYAN=96]="BRIGHT_CYAN",e[e.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(zm||(zm={}));const BU=10;function BB(e){return typeof e!="string"?e:(e=e.toUpperCase(),zm[e]||zm.WHITE)}function TU(e,t,i){return!W_&&typeof e=="string"&&(t&&(e=`\x1B[${BB(t)}m${e}\x1B[39m`),i&&(e=`\x1B[${BB(i)+BU}m${e}\x1B[49m`)),e}function SU(e,t=["constructor"]){const i=Object.getPrototypeOf(e),n=Object.getOwnPropertyNames(i),r=e;for(const s of n){const o=r[s];typeof o=="function"&&(t.find(c=>s===c)||(r[s]=o.bind(e)))}}function J_(e,t){if(!e)throw new Error("Assertion failed")}function md(){let e;if(W_()&&wB.performance)e=wB?.performance?.now?.();else if("hrtime"in CB){const t=CB?.hrtime?.();e=t[0]*1e3+t[1]/1e6}else e=Date.now();return e}const yd={debug:W_()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},IU={enabled:!0,level:0};function vd(){}const TB={},SB={once:!0};let IB=class{constructor({id:e}={id:""}){this.VERSION=EB,this._startTs=md(),this._deltaTs=md(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new wU(`__probe-${this.id}__`,IU),this.timeStamp(`${this.id} started`),SU(this),Object.seal(this)}set level(e){this.setLevel(e)}get level(){return this.getLevel()}isEnabled(){return this._storage.config.enabled}getLevel(){return this._storage.config.level}getTotal(){return Number((md()-this._startTs).toPrecision(10))}getDelta(){return Number((md()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._storage.setConfiguration({enabled:e}),this}setLevel(e){return this._storage.setConfiguration({level:e}),this}get(e){return this._storage.config[e]}set(e,t){this._storage.setConfiguration({[e]:t})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,t){if(!e)throw new Error(t||"Assertion failed")}warn(e){return this._getLogFunction(0,e,yd.warn,arguments,SB)}error(e){return this._getLogFunction(0,e,yd.error,arguments)}deprecated(e,t){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${t}\` instead`)}removed(e,t){return this.error(`\`${e}\` has been removed. Use \`${t}\` instead`)}probe(e,t){return this._getLogFunction(e,t,yd.log,arguments,{time:!0,once:!0})}log(e,t){return this._getLogFunction(e,t,yd.debug,arguments)}info(e,t){return this._getLogFunction(e,t,console.info,arguments)}once(e,t){return this._getLogFunction(e,t,yd.debug||yd.info,arguments,SB)}table(e,t,i){return t?this._getLogFunction(e,t,console.table||vd,i&&[i],{tag:PU(t)}):vd}time(e,t){return this._getLogFunction(e,t,console.time?console.time:console.info)}timeEnd(e,t){return this._getLogFunction(e,t,console.timeEnd?console.timeEnd:console.info)}timeStamp(e,t){return this._getLogFunction(e,t,console.timeStamp||vd)}group(e,t,i={collapsed:!1}){const n=PB({logLevel:e,message:t,opts:i}),{collapsed:r}=i;return n.method=(r?console.groupCollapsed:console.group)||console.info,this._getLogFunction(n)}groupCollapsed(e,t,i={}){return this.group(e,t,Object.assign({},i,{collapsed:!0}))}groupEnd(e){return this._getLogFunction(e,"",console.groupEnd||vd)}withGroup(e,t,i){this.group(e,t)();try{i()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&this.getLevel()>=MB(e)}_getLogFunction(e,t,i,n,r){if(this._shouldLog(e)){r=PB({logLevel:e,message:t,args:n,opts:r}),i=i||r.method,J_(i),r.total=this.getTotal(),r.delta=this.getDelta(),this._deltaTs=md();const s=r.tag||r.message;if(r.once&&s)if(!TB[s])TB[s]=md();else return vd;return t=MU(this.id,r.message,r),i.bind(console,t,...r.args)}return vd}};IB.VERSION=EB;function MB(e){if(!e)return 0;let t;switch(typeof e){case"number":t=e;break;case"object":t=e.logLevel||e.priority||0;break;default:return 0}return J_(Number.isFinite(t)&&t>=0),t}function PB(e){const{logLevel:t,message:i}=e;e.logLevel=MB(t);const n=e.args?Array.from(e.args):[];for(;n.length&&n.shift()!==i;);switch(typeof t){case"string":case"function":i!==void 0&&n.unshift(i),e.message=t;break;case"object":Object.assign(e,t);break}typeof e.message=="function"&&(e.message=e.message());const r=typeof e.message;return J_(r==="string"||r==="object"),Object.assign(e,{args:n},e.opts)}function MU(e,t,i){if(typeof t=="string"){const n=i.time?EU(CU(i.total)):"";t=i.time?`${e}: ${n} ${t}`:`${e}: ${t}`,t=TU(t,i.color,i.background)}return t}function PU(e){for(const t in e)for(const i in e[t])return i||"untitled";return"empty"}const X_="4.3.1",RU=X_[0]>="0"&&X_[0]<="9"?`v${X_}`:"";function DU(){const e=new IB({id:"loaders.gl"});return globalThis.loaders=globalThis.loaders||{},globalThis.loaders.log=e,globalThis.loaders.version=RU,globalThis.probe=globalThis.probe||{},globalThis.probe.loaders=e,e}const OU=DU();function LU(e,t){return RB(e||{},t)}function RB(e,t,i=0){if(i>3)return t;const n={...e};for(const[r,s]of Object.entries(t))s&&typeof s=="object"&&!Array.isArray(s)?n[r]=RB(n[r]||{},t[r],i+1):n[r]=t[r];return n}const FU="latest";function kU(){return globalThis._loadersgl_?.version||(globalThis._loadersgl_=globalThis._loadersgl_||{},globalThis._loadersgl_.version="4.3.1"),globalThis._loadersgl_.version}const NU=kU();function ku(e,t){if(!e)throw new Error(t||"loaders.gl assertion failed.")}const Gh=typeof process!="object"||String(process)!=="[object process]"||process.browser,UU=typeof window<"u"&&typeof window.orientation<"u",DB=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);DB&&parseFloat(DB[1]);let zU=class{name;workerThread;isRunning=!0;result;_resolve=()=>{};_reject=()=>{};constructor(e,t){this.name=e,this.workerThread=t,this.result=new Promise((i,n)=>{this._resolve=i,this._reject=n})}postMessage(e,t){this.workerThread.postMessage({source:"loaders.gl",type:e,payload:t})}done(e){ku(this.isRunning),this.isRunning=!1,this._resolve(e)}error(e){ku(this.isRunning),this.isRunning=!1,this._reject(e)}},Q_=class{terminate(){}};const K_=new Map;function GU(e){ku(e.source&&!e.url||!e.source&&e.url);let t=K_.get(e.source||e.url);return t||(e.url&&(t=jU(e.url),K_.set(e.url,t)),e.source&&(t=OB(e.source),K_.set(e.source,t))),ku(t),t}function jU(e){if(!e.startsWith("http"))return e;const t=VU(e);return OB(t)}function OB(e){const t=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(t)}function VU(e){return`try {
2
2
  importScripts('${e}');
3
3
  } catch (error) {
4
4
  console.error(error);