@stlite/desktop 0.90.14 → 0.90.16
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.
- package/CHANGELOG.md +14 -0
- package/README.md +1 -1
- package/build/assets/{ErrorOutline.esm-BnBxotPi.js → ErrorOutline.esm-CSbmRBTs.js} +1 -1
- package/build/assets/{FileDownload.esm-RGPPDhk8.js → FileDownload.esm-Chli17S8.js} +1 -1
- package/build/assets/{FileHelper-tNTMbDMm.js → FileHelper-BmOs-7p9.js} +1 -1
- package/build/assets/{FormClearHelper-DGQP9oxJ.js → FormClearHelper-DzT4m6x-.js} +1 -1
- package/build/assets/{Hooks-Bo61ucn1.js → Hooks-CWxcUAjO.js} +1 -1
- package/build/assets/{InputInstructions-Ck_istEY.js → InputInstructions-DXkJDo-d.js} +1 -1
- package/build/assets/{Particles-BlxXqWnI.js → Particles-DBUzeOij.js} +1 -1
- package/build/assets/{ProgressBar-C-iICo4w.js → ProgressBar-C3YNhB2j.js} +1 -1
- package/build/assets/{Toolbar-ByIPpsVy.js → Toolbar-B9tKdtfU.js} +1 -1
- package/build/assets/{base-input-DRJDHdAL.js → base-input-iLbK-zKR.js} +1 -1
- package/build/assets/{checkbox-2-JpNSRW.js → checkbox-DeJjjX3E.js} +1 -1
- package/build/assets/{createSuper-vJD5mbw5.js → createSuper-CwBHRG8y.js} +1 -1
- package/build/assets/{data-grid-overlay-editor-BIgAXG8E.js → data-grid-overlay-editor-DUraHWw3.js} +1 -1
- package/build/assets/{downloader-JpXWtQ-P.js → downloader-BaaVgY1J.js} +1 -1
- package/build/assets/{es6-Lsq1Gov6.js → es6-nNn5dvCp.js} +2 -2
- package/build/assets/{iframeResizer.contentWindow-Guiwg0xE.js → iframeResizer.contentWindow-CdPHQImI.js} +1 -1
- package/build/assets/{index-mytcrsu7.js → index-B3I5fK3b.js} +1 -1
- package/build/assets/{index-B-7gUeK8.js → index-B44FC7jH.js} +1 -1
- package/build/assets/{index-B9RImrnB.js → index-B6gNZ4bX.js} +1 -1
- package/build/assets/{index-CFCb7WWw.js → index-B8qYwdp8.js} +1 -1
- package/build/assets/{index-CoAdDGfF.js → index-BAHHLDfa.js} +1 -1
- package/build/assets/{index-DIjJwKUC.js → index-BJFM3-2Z.js} +1 -1
- package/build/assets/{index-BhoSXjxz.js → index-BLv0ASbw.js} +1 -1
- package/build/assets/{index-D4BdQDBD.js → index-BMYYY1ow.js} +1 -1
- package/build/assets/{index-DImx2D5B.js → index-BQMFy65W.js} +1 -1
- package/build/assets/{index-lw_DueTS.js → index-BesF0m-H.js} +1 -1
- package/build/assets/{index-BYmSaStp.js → index-Bkyb8y7c.js} +1 -1
- package/build/assets/{index-DkqUDAbB.js → index-BpdahSmb.js} +1 -1
- package/build/assets/{index-CRiFLKI5.js → index-BpkmIL-b.js} +1 -1
- package/build/assets/{index-CE3r0KWL.js → index-BzHXNIh0.js} +1 -1
- package/build/assets/{index-C0jxm_PH.js → index-C4GjZT3v.js} +1 -1
- package/build/assets/{index-DqH3HG1G.js → index-C55LbTPs.js} +1 -1
- package/build/assets/{index-Bb6UZSFO.js → index-C73-Ejlm.js} +1 -1
- package/build/assets/{index-C9n8vq5U.js → index-C8YVD3tE.js} +1 -1
- package/build/assets/{index-C636A-W7.js → index-CKkdmaf5.js} +1 -1
- package/build/assets/{index-CO2Aw19y.js → index-CM9UKsWI.js} +1 -1
- package/build/assets/{index-m7vCKamN.js → index-CfKvjJq7.js} +1 -1
- package/build/assets/{index-B5XMuJqP.js → index-ChDnLbTu.js} +1 -1
- package/build/assets/{index-DV5icRRG.js → index-CtSzYaeu.js} +1 -1
- package/build/assets/{index-Dtvm0G3c.js → index-D8gnxsH2.js} +1 -1
- package/build/assets/{index-BhFJX5Vn.js → index-DJKUgCVw.js} +1 -1
- package/build/assets/{index-pOokbnGQ.js → index-DPfkKD9E.js} +1 -1
- package/build/assets/{index-Q623jih7.js → index-DZGDXXq2.js} +1 -1
- package/build/assets/{index-DgEYnWf9.js → index-DicWkuji.js} +1 -1
- package/build/assets/{index-a4tM28AE.js → index-DmG-Yrnj.js} +1 -1
- package/build/assets/{index-Zd5xxmFR.js → index-EPlPorpI.js} +1 -1
- package/build/assets/{index-CRtbPdb-.js → index-JmbIn5LC.js} +5 -5
- package/build/assets/{index-BwsrXI9O.js → index-TcDrXcNe.js} +217 -212
- package/build/assets/{index-BZmLxv-D.js → index-V3ySK6f2.js} +1 -1
- package/build/assets/{index-B7T6_RXn.js → index-ZWSe7q8u.js} +1 -1
- package/build/assets/{index-D94FJ5GB.js → index-fIgYGVDY.js} +1 -1
- package/build/assets/{index-0HifpjrJ.js → index-qAmeZqQd.js} +1 -1
- package/build/assets/{index-CRhYEwNP.js → index-xw-9-jMZ.js} +1 -1
- package/build/assets/{inherits-DgEBZpYa.js → inherits-CarKs31i.js} +1 -1
- package/build/assets/{input-BRw1nRj1.js → input-DcFtOzfb.js} +1 -1
- package/build/assets/{memory-Do9YV2fF.js → memory-DdaoK7yz.js} +1 -1
- package/build/assets/{number-overlay-editor-CBg6iMqb.js → number-overlay-editor-DkLM--gB.js} +1 -1
- package/build/assets/{sandbox-DO_nuL9g.js → sandbox-CyGfUjJC.js} +1 -1
- package/build/assets/{slicedToArray-CCKNURYu.js → slicedToArray-CgYaBkVH.js} +1 -1
- package/build/assets/{timepicker-CBaJIVEG.js → timepicker-B6A12HlE.js} +1 -1
- package/build/assets/{uniqueId-7HN9pV-Z.js → uniqueId-Ca7uQu7S.js} +1 -1
- package/build/assets/{useBasicWidgetState-CQoPeUHV.js → useBasicWidgetState-DoAL3G-D.js} +1 -1
- package/build/assets/{useTextInputAutoExpand-CJ0SgjFi.js → useTextInputAutoExpand-DuBV-baK.js} +1 -1
- package/build/assets/{useUpdateUiValue-CakBWvqR.js → useUpdateUiValue-6gLwFH0m.js} +1 -1
- package/build/assets/{withFullScreenWrapper-6omMDHWT.js → withFullScreenWrapper-B0RGgIoE.js} +1 -1
- package/build/index.html +2 -2
- package/package.json +3 -2
- package/wheels/stlite_lib-0.1.0-py3-none-any.whl +0 -0
- package/wheels/streamlit-1.50.0-cp313-none-any.whl +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,E as J,_ as W,u as G,aN as F,aO as X,k as R,aP as $,aQ as Q,aR as j,aS as L,aT as Y,aU as Z,n as I,aV as M,x as P,aW as K,aX as q,aY as ee,J as te,a4 as ne,av as se,aZ as re,j as T,a_ as ae,a$ as oe,b0 as ce}from"./index-
|
|
1
|
+
import{r as a,E as J,_ as W,u as G,aN as F,aO as X,k as R,aP as $,aQ as Q,aR as j,aS as L,aT as Y,aU as Z,n as I,aV as M,x as P,aW as K,aX as q,aY as ee,J as te,a4 as ne,av as se,aZ as re,j as T,a_ as ae,a$ as oe,b0 as ce}from"./index-TcDrXcNe.js";import{w as ie,E as le}from"./withFullScreenWrapper-B0RGgIoE.js";import{a as H,S as _,T as ue}from"./Toolbar-B9tKdtfU.js";import{R as fe}from"./index-JmbIn5LC.js";import{u as de}from"./FormClearHelper-DzT4m6x-.js";import"./sprintf-DpPCfzXw.js";import"./checkbox-DeJjjX3E.js";import"./createDownloadLinkElement-ZaXNnPK4.js";import"./slicedToArray-CgYaBkVH.js";import"./inherits-CarKs31i.js";import"./createSuper-CwBHRG8y.js";import"./FileDownload.esm-Chli17S8.js";var U=a.forwardRef(function(n,t){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(J,W({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:t}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z"}))});U.displayName="InsertChart";var B=a.forwardRef(function(n,t){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return a.createElement(J,W({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},n,{ref:t}),a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),a.createElement("path",{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"}))});B.displayName="TableChart";const me=20;function he(n){"params"in n&&"encoding"in n&&n.params.forEach(t=>{"select"in t&&(["interval","point"].includes(t.select)&&(t.select={type:t.select}),"type"in t.select&&t.select.type==="point"&&!("encodings"in t.select)&&R(t.select.encodings)&&(t.select.encodings=Object.keys(n.encoding)))})}const pe=(n,t,r,s,u,i,l,p)=>{const e=JSON.parse(n);if(s==="streamlit"?e.config=F(e.config,i):e.usermeta?.embedOptions?.theme==="streamlit"?(e.config=F(e.config,i),e.usermeta.embedOptions.theme=void 0):e.config=X(e.config,i),e.title&&(typeof e.title=="string"&&(e.title={text:e.title}),e.title.limit=e.title.limit??Math.max(l-40,0)),r&&(e.height=p),t&&(e.width=l,"vconcat"in e&&e.vconcat.forEach(d=>{d.width=l})),e.padding||(e.padding={}),R(e.padding.bottom)&&(e.padding.bottom=me),e.datasets)throw new Error("Datasets should not be passed as part of the spec");return u.length>0&&he(e),e},ge=(n,t,r,s,u)=>{const i=G(),{id:l,formId:p,spec:e,data:d,datasets:o,vegaLiteTheme:f,selectionMode:c}=n,g=a.useMemo(()=>c,[JSON.stringify(c)]),w=a.useMemo(()=>pe(e,s,u,f,g,i,t,r),[e,s,u,f,g,i,t,r]);return{id:l,formId:p,vegaLiteTheme:f,spec:w,selectionMode:g,data:d,datasets:o,useContainerWidth:s}},Se={DATAFRAME_INDEX:"(index)"};function ye(n){return!n||n.dimensions.numDataRows===0?null:A(n)}function we(n){const t=D(n);if(R(t))return null;const r={};for(const[s,u]of Object.entries(t))r[s]=A(u);return r}function D(n){if(n?.length===0)return null;const t={};return n.forEach(r=>{if(!r)return;const s=r.hasName?r.name:null;t[s]=r.data}),t}function A(n,t=0){if(n.dimensions.numDataRows===0)return[];const r=[],{numDataRows:s,numDataColumns:u,numIndexColumns:i}=n.dimensions,l=n.columnTypes[0]??void 0,p=l&&l.type===$.INDEX&&(Q(l)||j(l)||L(l));for(let e=t;e<s;e++){const d={};if(p){const{content:o}=n.getCell(e,0);d[Se.DATAFRAME_INDEX]=typeof o=="bigint"?Number(o):o}for(let o=0;o<u;o++){const f=o+i,{content:c,contentType:g}=n.getCell(e,f);if((c instanceof Date||typeof c=="number"&&Number.isFinite(c))&&(j(g)||L(g))&&!Y(g)){const w=new Date(c).getTimezoneOffset()*60*1e3;d[n.columnNames[0][f]]=c.valueOf()+w}else d[n.columnNames[0][f]]=typeof c=="bigint"?Number(c):c}r.push(d)}return r}const be=150,Ce=P.getLogger("useVegaLiteSelections"),Ee=(n,t,r)=>{const{id:s,formId:u,selectionMode:i}=n,l=a.useCallback(e=>{i.forEach(o=>{e.addSignalListener(o,Z(be,(f,c)=>{const g=e.getState({data:(S,y)=>i.some(E=>`${E}_store`===S),recurse:!1});I(g)&&t.setElementState(s,"viewState",g);let w=c;"vlPoint"in c&&"or"in c.vlPoint&&(w=c.vlPoint.or);const O={id:s,formId:u},h=JSON.parse(t.getStringValue(O)||"{}"),m={selection:{...h?.selection||{},[f]:w||{}}};M(h,m)||t.setStringValue(O,JSON.stringify(m),{fromUi:!0},r)}))});const d=t.getElementState(s,"viewState");if(I(d))try{return e.setState(d)}catch(o){Ce.warn("Failed to restore view state",o)}return e},[s,i,t,u,r]),p=a.useCallback(()=>{const e={selection:{}};i.forEach(c=>{e.selection[c]={}});const d={id:s,formId:u},o=t.getStringValue(d),f=o?JSON.parse(o):e;M(f,e)||t.setStringValue(d,JSON.stringify(e),{fromUi:!0},r)},[s,u,r,i,t]);return{maybeConfigureSelections:l,onFormCleared:p}},k="source",Ve=P.getLogger("useVegaEmbed");function ve(n,t,r){const s=a.useRef(null),u=a.useRef(null),i=a.useRef(k),l=a.useRef(null),p=a.useRef([]),{maybeConfigureSelections:e,onFormCleared:d}=Ee(n,t,r);de({widgetMgr:t,element:n,onFormCleared:d});const{data:o,datasets:f}=n;a.useEffect(()=>{s.current===null&&(l.current=o,p.current=f)},[o,f]);const c=a.useCallback(()=>{u.current&&u.current(),u.current=null,s.current=null},[]),g=a.useCallback(async(h,m)=>{if(h.current===null)throw new Error("Element missing.");c();const S={ast:!0,expr:q,tooltip:{disableDefaultStyle:!0},defaultStyle:!1,forceActionsMenu:!0},{vgSpec:y,view:E,finalize:x}=await K(h.current,m,S);s.current=e(E),u.current=x;const b=we(p.current),V=b?Object.keys(b):[];if(V.length===1){const[C]=V;i.current=C}else V.length===0&&y.data&&(i.current=k);const v=ye(l.current);if(v&&s.current.insert(i.current,v),b)for(const[C,N]of Object.entries(b))s.current.insert(C,N);return await s.current.runAsync(),await s.current.resize().runAsync(),s.current},[c,e]),w=a.useCallback((h,m,S,y)=>{if(!y||y.dimensions.numDataRows===0){try{h.remove(m,ee)}finally{}return}if(!S||S.dimensions.numDataRows===0){h.insert(m,A(y));return}y.hash!==S.hash&&(h.data(m,A(y)),Ve.info(`Had to clear the ${m} dataset before inserting data through Vega view.`))},[]),O=a.useCallback(async(h,m)=>{if(s.current===null)return null;const S=l.current,y=p.current;(S||h)&&w(s.current,i.current,S,h);const E=D(y)??{},x=D(m)??{};for(const[b,V]of Object.entries(x)){const v=b||i.current,C=E[v];w(s.current,v,C,V)}for(const b of Object.keys(E))!Object.hasOwn(x,b)&&b!==i.current&&w(s.current,b,null,null);return await s.current?.resize().runAsync(),l.current=h,p.current=m,s.current},[w]);return{createView:g,updateView:O,finalizeView:c}}function xe(n){try{const t=typeof n=="string"?JSON.parse(n):n;return!!(t.facet||t.encoding?.row||t.encoding?.column||t.encoding?.facet)}catch{return!1}}const Ne=({disableFullscreenMode:n,element:t,fragmentId:r,widgetMgr:s,widthConfig:u,heightConfig:i})=>{const[l,p]=a.useState(!1),[e,d]=a.useState(!1),{expanded:o,height:f,width:c,expand:g,collapse:w}=te(le),{width:O,height:h,elementRef:m}=ne([l],0),S=se(u)||t.useContainerWidth,y=re(i),E=xe(t.spec),x=ge(t,E?c??0:O,(o?f:h)??0,o?!0:S,o?!0:y),{createView:b,updateView:V,finalizeView:v}=ve(x,s,r),{data:C,datasets:N,spec:z}=x;return a.useLayoutEffect(()=>(m.current!==null&&b(m,z),v),[b,v,z,c,f,l,m]),a.useEffect(()=>{V(C,N)},[C,N,V]),a.useEffect(()=>{C||N?.[0]?.data?d(!0):d(!1)},[C,N]),l?T.jsx(fe,{data:C??N[0]?.data,height:f??h??void 0,customToolbarActions:[T.jsx(H,{label:"Show chart",icon:U,onClick:()=>{p(!1)}},"show-chart")]}):T.jsxs(_,{height:y?o?f:"100%":f,useContainerWidth:o?!0:S,children:[T.jsx(ue,{target:_,isFullScreen:o,onExpand:g,onCollapse:w,disableFullscreenMode:n,children:e&&T.jsx(H,{label:"Show data",icon:B,onClick:()=>{p(!0)}})}),T.jsx(ae,{styles:oe}),T.jsx(ce,{"data-testid":"stVegaLiteChart",className:"stVegaLiteChart",useContainerWidth:S,useContainerHeight:y,ref:m})]})},Te=ie(Ne),ke=a.memo(Te);export{oe as StyledVegaLiteChartTooltips,F as applyStreamlitTheme,ke as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as m,$ as l,r as i,j as o,aq as p}from"./index-
|
|
1
|
+
import{s as m,$ as l,r as i,j as o,aq as p}from"./index-TcDrXcNe.js";import{R as d,P as f}from"./Particles-DBUzeOij.js";const g="/assets/flake-0.DgWaVvm5.png",x="/assets/flake-1.B2r5AHMK.png",E="/assets/flake-2.BnWSExPC.png",e=150,r=150,S=10,_=90,u=4e3,a=(t,n=0)=>Math.random()*(t-n)+n,A=()=>l`
|
|
2
2
|
from {
|
|
3
3
|
transform:
|
|
4
4
|
translateY(0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{be as lE,r as Dt,bO as Br,c2 as vt,a3 as dh,c3 as IN,aB as Uu,_ as Z4,c4 as PN,j as Jl,s as Y4,h as K4,c5 as MN,c6 as RN,J as Q4,c7 as mb,c8 as cE,aV as BN,L as ON,u as DN,bp as LN,c9 as uE}from"./index-
|
|
1
|
+
import{be as lE,r as Dt,bO as Br,c2 as vt,a3 as dh,c3 as IN,aB as Uu,_ as Z4,c4 as PN,j as Jl,s as Y4,h as K4,c5 as MN,c6 as RN,J as Q4,c7 as mb,c8 as cE,aV as BN,L as ON,u as DN,bp as LN,c9 as uE}from"./index-TcDrXcNe.js";import{_ as gs,C as kN}from"./slicedToArray-CgYaBkVH.js";import{d as Ju,c as ef,b as X2,_ as gp,a as Z2}from"./inherits-CarKs31i.js";import{E as J4,w as FN}from"./withFullScreenWrapper-B0RGgIoE.js";import{T as NN,a as UN}from"./Toolbar-B9tKdtfU.js";import{a as zN}from"./useBasicWidgetState-DoAL3G-D.js";import"./FormClearHelper-DzT4m6x-.js";function VN(r,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in r)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}async function g0(r,e,t,n){return n._parse(r,e,t,n)}function _i(r,e){if(!r)throw new Error(e||"loader assertion failed.")}const M_=!!(typeof process!="object"||String(process)!=="[object process]"||process.browser),fE=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);fE&&parseFloat(fE[1]);const hE=globalThis,dE=globalThis.process||{},jN=globalThis.navigator||{};function eB(r){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 ph(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||eB()}function HN(r){return ph()?eB()?"Electron":(jN.userAgent||"").indexOf("Edge")>-1?"Edge":globalThis.chrome?"Chrome":globalThis.safari?"Safari":globalThis.mozInnerScreenX?"Firefox":"Unknown":"Node"}const tB="4.1.0";function GN(r){try{const e=window[r],t="__storage_test__";return e.setItem(t,t),e.removeItem(t),e}catch{return null}}class WN{constructor(e,t,n="sessionStorage"){this.storage=GN(n),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 $N(r){let e;return r<10?e=`${r.toFixed(2)}ms`:r<100?e=`${r.toFixed(1)}ms`:r<1e3?e=`${r.toFixed(0)}ms`:e=`${(r/1e3).toFixed(2)}s`,e}function qN(r,e=8){const t=Math.max(e-r.length,0);return`${" ".repeat(t)}${r}`}var Vm;(function(r){r[r.BLACK=30]="BLACK",r[r.RED=31]="RED",r[r.GREEN=32]="GREEN",r[r.YELLOW=33]="YELLOW",r[r.BLUE=34]="BLUE",r[r.MAGENTA=35]="MAGENTA",r[r.CYAN=36]="CYAN",r[r.WHITE=37]="WHITE",r[r.BRIGHT_BLACK=90]="BRIGHT_BLACK",r[r.BRIGHT_RED=91]="BRIGHT_RED",r[r.BRIGHT_GREEN=92]="BRIGHT_GREEN",r[r.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",r[r.BRIGHT_BLUE=94]="BRIGHT_BLUE",r[r.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",r[r.BRIGHT_CYAN=96]="BRIGHT_CYAN",r[r.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(Vm||(Vm={}));const XN=10;function pE(r){return typeof r!="string"?r:(r=r.toUpperCase(),Vm[r]||Vm.WHITE)}function ZN(r,e,t){return!ph&&typeof r=="string"&&(e&&(r=`\x1B[${pE(e)}m${r}\x1B[39m`),t&&(r=`\x1B[${pE(t)+XN}m${r}\x1B[49m`)),r}function YN(r,e=["constructor"]){const t=Object.getPrototypeOf(r),n=Object.getOwnPropertyNames(t),i=r;for(const s of n){const o=i[s];typeof o=="function"&&(e.find(l=>s===l)||(i[s]=o.bind(r)))}}function Y2(r,e){if(!r)throw new Error("Assertion failed")}function gd(){let r;if(ph()&&hE.performance)r=hE?.performance?.now?.();else if("hrtime"in dE){const e=dE?.hrtime?.();r=e[0]*1e3+e[1]/1e6}else r=Date.now();return r}const md={debug:ph()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},KN={enabled:!0,level:0};function _d(){}const AE={},gE={once:!0};class Rp{constructor({id:e}={id:""}){this.VERSION=tB,this._startTs=gd(),this._deltaTs=gd(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new WN(`__probe-${this.id}__`,KN),this.timeStamp(`${this.id} started`),YN(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((gd()-this._startTs).toPrecision(10))}getDelta(){return Number((gd()-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,md.warn,arguments,gE)}error(e){return this._getLogFunction(0,e,md.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,md.log,arguments,{time:!0,once:!0})}log(e,t){return this._getLogFunction(e,t,md.debug,arguments)}info(e,t){return this._getLogFunction(e,t,console.info,arguments)}once(e,t){return this._getLogFunction(e,t,md.debug||md.info,arguments,gE)}table(e,t,n){return t?this._getLogFunction(e,t,console.table||_d,n&&[n],{tag:JN(t)}):_d}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||_d)}group(e,t,n={collapsed:!1}){const i=mE({logLevel:e,message:t,opts:n}),{collapsed:s}=n;return i.method=(s?console.groupCollapsed:console.group)||console.info,this._getLogFunction(i)}groupCollapsed(e,t,n={}){return this.group(e,t,Object.assign({},n,{collapsed:!0}))}groupEnd(e){return this._getLogFunction(e,"",console.groupEnd||_d)}withGroup(e,t,n){this.group(e,t)();try{n()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&this.getLevel()>=rB(e)}_getLogFunction(e,t,n,i,s){if(this._shouldLog(e)){s=mE({logLevel:e,message:t,args:i,opts:s}),n=n||s.method,Y2(n),s.total=this.getTotal(),s.delta=this.getDelta(),this._deltaTs=gd();const o=s.tag||s.message;if(s.once&&o)if(!AE[o])AE[o]=gd();else return _d;return t=QN(this.id,s.message,s),n.bind(console,t,...s.args)}return _d}}Rp.VERSION=tB;function rB(r){if(!r)return 0;let e;switch(typeof r){case"number":e=r;break;case"object":e=r.logLevel||r.priority||0;break;default:return 0}return Y2(Number.isFinite(e)&&e>=0),e}function mE(r){const{logLevel:e,message:t}=r;r.logLevel=rB(e);const n=r.args?Array.from(r.args):[];for(;n.length&&n.shift()!==t;);switch(typeof e){case"string":case"function":t!==void 0&&n.unshift(t),r.message=e;break;case"object":Object.assign(r,e);break}typeof r.message=="function"&&(r.message=r.message());const i=typeof r.message;return Y2(i==="string"||i==="object"),Object.assign(r,{args:n},r.opts)}function QN(r,e,t){if(typeof e=="string"){const n=t.time?qN($N(t.total)):"";e=t.time?`${r}: ${n} ${e}`:`${r}: ${e}`,e=ZN(e,t.color,t.background)}return e}function JN(r){for(const e in r)for(const t in r[e])return t||"untitled";return"empty"}globalThis.probe={};const nB=new Rp({id:"@probe.gl/log"}),cv="4.3.3",e5=cv[0]>="0"&&cv[0]<="9"?`v${cv}`:"";function t5(){const r=new Rp({id:"loaders.gl"});return globalThis.loaders=globalThis.loaders||{},globalThis.loaders.log=r,globalThis.loaders.version=e5,globalThis.probe=globalThis.probe||{},globalThis.probe.loaders=r,r}const r5=t5();function iB(r,e){return sB(r||{},e)}function sB(r,e,t=0){if(t>3)return e;const n={...r};for(const[i,s]of Object.entries(e))s&&typeof s=="object"&&!Array.isArray(s)?n[i]=sB(n[i]||{},e[i],t+1):n[i]=e[i];return n}function n5(r){globalThis.loaders||={},globalThis.loaders.modules||={},Object.assign(globalThis.loaders.modules,r)}function i5(r){return globalThis.loaders?.modules?.[r]||null}const s5="latest";function o5(){return globalThis._loadersgl_?.version||(globalThis._loadersgl_=globalThis._loadersgl_||{},globalThis._loadersgl_.version="4.3.3"),globalThis._loadersgl_.version}const oB=o5();function Yc(r,e){if(!r)throw new Error(e||"loaders.gl assertion failed.")}const ka=typeof process!="object"||String(process)!=="[object process]"||process.browser,K2=typeof importScripts=="function",a5=typeof window<"u"&&typeof window.orientation<"u",_E=typeof process<"u"&&process.version&&/v([0-9]*)/.exec(process.version);_E&&parseFloat(_E[1]);class l5{name;workerThread;isRunning=!0;result;_resolve=()=>{};_reject=()=>{};constructor(e,t){this.name=e,this.workerThread=t,this.result=new Promise((n,i)=>{this._resolve=n,this._reject=i})}postMessage(e,t){this.workerThread.postMessage({source:"loaders.gl",type:e,payload:t})}done(e){Yc(this.isRunning),this.isRunning=!1,this._resolve(e)}error(e){Yc(this.isRunning),this.isRunning=!1,this._reject(e)}}class uv{terminate(){}}const fv=new Map;function c5(r){Yc(r.source&&!r.url||!r.source&&r.url);let e=fv.get(r.source||r.url);return e||(r.url&&(e=u5(r.url),fv.set(r.url,e)),r.source&&(e=aB(r.source),fv.set(r.source,e))),Yc(e),e}function u5(r){if(!r.startsWith("http"))return r;const e=f5(r);return aB(e)}function aB(r){const e=new Blob([r],{type:"application/javascript"});return URL.createObjectURL(e)}function f5(r){return`try {
|
|
2
2
|
importScripts('${r}');
|
|
3
3
|
} catch (error) {
|
|
4
4
|
console.error(error);
|