@arcgis/core 5.2.0-next.94 → 5.2.0-next.95
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{c4a0d3149947a1d2c484.js → 05662a663f761dd3dea5.js} +1 -1
- package/assets/esri/core/workers/chunks/0df9864ecebe6a2b973f.js +1 -0
- package/assets/esri/core/workers/chunks/10c13c36c42c5ac41d12.js +1 -0
- package/assets/esri/core/workers/chunks/{e50adcfb392adfb3f79c.js → 1b311ff39dede07865df.js} +1 -1
- package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js → 1c803eef9a8fdabc61e3.js} +2 -2
- package/assets/esri/core/workers/chunks/1d7f633f158062eb3f64.js +1 -0
- package/assets/esri/core/workers/chunks/1f047dd747e7c1916dc7.js +1684 -0
- package/assets/esri/core/workers/chunks/2524e2385f61a6898411.js +1 -0
- package/assets/esri/core/workers/chunks/26737d061c7cfbbab95c.js +1 -0
- package/assets/esri/core/workers/chunks/{91de343844ac578e7c93.js → 2b6d261fe79fe186fb22.js} +1 -1
- package/assets/esri/core/workers/chunks/{8a87e1a89a0d8c6203a7.js → 2e51764c8aa31096cb2a.js} +1 -1
- package/assets/esri/core/workers/chunks/{da8a314800944706511b.js → 36e35a8067b18f59cc05.js} +1 -1
- package/assets/esri/core/workers/chunks/{d270b49c037085503016.js → 3a9435569ba460ff7e3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{e488e5c62cb375c87a39.js → 471027e4280bd51167b0.js} +1 -1
- package/assets/esri/core/workers/chunks/4c088c26d5d546c95c90.js +1 -0
- package/assets/esri/core/workers/chunks/{e594b6db9caee1f7b9fc.js → 4d700cb028f6306b163e.js} +1 -1
- package/assets/esri/core/workers/chunks/{87e9f7e85221bc7e6709.js → 5168bd8ab6233dc9c32a.js} +1 -1
- package/assets/esri/core/workers/chunks/{cd02a6078443b8f63927.js → 5b8591486f33627f5389.js} +1 -1
- package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js → 5edf77618ca51819d7c4.js} +2 -2
- package/assets/esri/core/workers/chunks/6057a79c68c33ee4a193.js +1 -0
- package/assets/esri/core/workers/chunks/{48726010778d6004e347.js → 63127e3b22e7eac6003d.js} +2 -2
- package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js → 678585509706755c0434.js} +2 -2
- package/assets/esri/core/workers/chunks/{2754ba5cc094028a7a3c.js → 691e9cc541cfaebe1776.js} +1 -1
- package/assets/esri/core/workers/chunks/{32f11b4aeae1ef00e466.js → 6baae3e856d904fef9b1.js} +1 -1
- package/assets/esri/core/workers/chunks/{d44338bf5edafa3ca926.js → 6f01bd01b13662eb3bd7.js} +1 -1
- package/assets/esri/core/workers/chunks/{76e7d3cde2da4bdd7820.js → 74cd9df85c4560bb8e52.js} +1 -1
- package/assets/esri/core/workers/chunks/{97e41500fc2d24a88938.js → 7b70d6fdfa7a19ffffb0.js} +1 -1
- package/assets/esri/core/workers/chunks/7bb3411a86cdd736d555.js +1 -0
- package/assets/esri/core/workers/chunks/{ec77222776f755dc372c.js → 7ddb5800777fbecee3a8.js} +1 -1
- package/assets/esri/core/workers/chunks/7efc51324cfc8e08c756.js +1 -0
- package/assets/esri/core/workers/chunks/{e90076ac1cf88a83a7f9.js → 80f38ab2b7ae61e6f301.js} +1 -1
- package/assets/esri/core/workers/chunks/{5aa23b0f4521ba9a07ad.js → 854f42f16fdb40000aae.js} +1 -1
- package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js → 87094044458b0ea5cb0f.js} +2 -2
- package/assets/esri/core/workers/chunks/92a6559a6999b26362d7.js +1 -0
- package/assets/esri/core/workers/chunks/{3a65693964e3976d8035.js → 9df38cadebf8e6fd746c.js} +1 -1
- package/assets/esri/core/workers/chunks/{20f6e681ccd8bf884b77.js → a72983c3621810d4b1af.js} +1 -1
- package/assets/esri/core/workers/chunks/{9226205850e35b7fc610.js → a8aa8cb60b30f0983e7e.js} +1 -1
- package/assets/esri/core/workers/chunks/a8e9aa5461c71c88e2e5.js +1 -0
- package/assets/esri/core/workers/chunks/{1ab8307ba9981124f669.js → af6b9fd77b1792fbb66e.js} +1 -1
- package/assets/esri/core/workers/chunks/{19e93d4d37018e3ee849.js → b102ae764c14d8b32ace.js} +1 -1
- package/assets/esri/core/workers/chunks/{1554feab934e8e1bcd28.js → b333de4dea14c5db0a4d.js} +1 -1
- package/assets/esri/core/workers/chunks/{d7d5275d8b3c9430de1f.js → b7c0da9d255d5e48320d.js} +1 -1
- package/assets/esri/core/workers/chunks/{6b9dbf43c0659e55c539.js → be0417df35a7d99af675.js} +1 -1
- package/assets/esri/core/workers/chunks/{a46ac0be9aabc4cfedc7.js → cc3186dcbbf5edff8b9e.js} +1 -1
- package/assets/esri/core/workers/chunks/e5b6fa57cc4028fbd401.js +1 -0
- package/assets/esri/core/workers/chunks/e7fdad0c07beb3614b60.js +1 -0
- package/assets/esri/core/workers/chunks/{0336f4f8498a22347720.js → ea5ee1b12b43594592a0.js} +1 -1
- package/assets/esri/core/workers/chunks/{c4fef90cf08bbe4f0bb5.js → eafc591e1a98000d54ef.js} +1 -1
- package/assets/esri/core/workers/chunks/f331c24247d132589859.js +1 -0
- package/chunks/{GlowBlur.glsl.js → BlurEmission.glsl.js} +1 -1
- package/chunks/EmissionComposite.glsl.js +3 -3
- package/chunks/Fog.glsl.js +5 -3
- package/chunks/RibbonLine.glsl.js +52 -52
- package/config.js +1 -1
- package/core/timeUtils.d.ts +62 -0
- package/core/timeUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/AnnotationFeatureLayer.d.ts +0 -1
- package/package.json +2 -2
- package/rest/imageService/fetchRasterInfo.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/types.d.ts +2 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/support/buffer/InterleavedLayout.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -5
- package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
- package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
- package/views/3d/webgl-engine/effects/glow/{GlowBlur.glsl.js → BlurEmission.glsl.js} +1 -1
- package/views/3d/webgl-engine/effects/glow/BlurEmission.js +2 -0
- package/views/3d/webgl-engine/effects/glow/BlurEmissionTechnique.js +2 -0
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +37 -0
- package/views/3d/webgl-engine/lib/BufferGeometry.js +2 -0
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/GeometryBaseInstance.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/rendererUtils.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/Instance.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/shaders/EmissiveTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
- package/views/SceneView.d.ts +1 -0
- package/views/SceneView.js +1 -1
- package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +0 -1
- package/assets/esri/core/workers/chunks/19ab024f6f732fd6c69b.js +0 -1
- package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +0 -1
- package/assets/esri/core/workers/chunks/2ec44ebc48beeba11201.js +0 -1
- package/assets/esri/core/workers/chunks/349b0c7febc46267441d.js +0 -1684
- package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +0 -1
- package/assets/esri/core/workers/chunks/75b90fb05e4a2d32b7bb.js +0 -1
- package/assets/esri/core/workers/chunks/7e41cee4a0ae75e1490d.js +0 -1
- package/assets/esri/core/workers/chunks/95a3f09751bff63f4fab.js +0 -1
- package/assets/esri/core/workers/chunks/98d614d6fc9de8ebaf94.js +0 -1
- package/assets/esri/core/workers/chunks/bdfffa5f88b559a4b42d.js +0 -1
- package/assets/esri/core/workers/chunks/c352696478b48a2090d5.js +0 -1
- package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +0 -1
- package/assets/esri/core/workers/chunks/d58d6b55b2749a535eb3.js +0 -1
- package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +0 -1
- package/chunks/GlowComposite.glsl.js +0 -2
- package/views/3d/webgl-engine/effects/glow/Glow.js +0 -2
- package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +0 -2
- package/views/3d/webgl-engine/effects/glow/GlowComposite.glsl.js +0 -2
- package/views/3d/webgl-engine/effects/glow/GlowCompositeTechnique.js +0 -2
- package/views/3d/webgl-engine/effects/glow/blurEmission.glsl.js +0 -38
- /package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js.LICENSE.txt → 1c803eef9a8fdabc61e3.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js.LICENSE.txt → 5edf77618ca51819d7c4.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{48726010778d6004e347.js.LICENSE.txt → 63127e3b22e7eac6003d.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js.LICENSE.txt → 678585509706755c0434.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js.LICENSE.txt → 87094044458b0ea5cb0f.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9530],{40523(e,t,r){r.d(t,{h:()=>h});const s=Symbol.for("controller");let o;const n=e=>o;let i,a=[];const l=e=>{const t=n().manager.X(e);if(void 0!==t)return t;if((e=>"object"==typeof e&&null!==e&&(s in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e))(e))return e;const r=(()=>{const e=i;return i=void 0,e})();return void 0!==r?r:void 0};let h=!1;r.d(t,["a",0,e=>{if(void 0===e)return void(a=[]);const t=a.indexOf(e);a=-1===t?[...a,e]:a.slice(0,t+1),queueMicrotask(()=>a=[])},"b",0,()=>a,"c",0,e=>{h=!0;try{return e()}finally{h=!1}},"d",0,s,"f",0,e=>{i!==e&&(i=e,queueMicrotask(()=>i===e?i=void 0:0))},"i",0,e=>"function"==typeof e?.then,"j",0,async e=>{const t=l(e);return await t.ready,t},"k",0,l,"r",0,n,"s",0,e=>{o!==e&&(o=e,queueMicrotask(()=>o===e?o=void 0:0))},"u",0,async(e,t)=>{const r=l(e);if(void 0===r)return e;if(await r.ready,"function"==typeof t){const e=r.watchExports(r=>t(r,e))}return r.exports}])},90824(e,t,r){r.d(t,{C:()=>f});var s=r(71785),o=r(40523),n=r(58933),i=r(53666),a=r(44613);let l;const h=()=>{l?.forEach(({callbacks:e},t)=>{const r=Object.keys(t);e.forEach(e=>e(r))}),l=void 0},c=(e,t,r)=>{const o=e.manager;return o.V!==n.s6&&o.V!==r&&o.S(void 0,void 0),0===o.T.length&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=r,o.T.push((e,o)=>(0,s.UF)(t,void 0,r===o?e:void 0)),r},d=(e=[(0,o.r)(),...(0,o.b)()],t,r)=>{const n=Array.isArray(e)?e:[e];let i=n.length+1;const a=e=>{i-=1,void 0!==e&&(i=Math.min(i,0)),0===i&&t(e)};n.forEach(e=>((e,t,r)=>{const o=Object.keys(e),n=o.length;void 0===l&&queueMicrotask(h),l??=new Map;let i=l.get(e);return void 0===i&&(i={callbacks:[],keyCount:n},l.set(e,i)),i.keyCount!==n&&(i.callbacks.forEach(e=>e(o)),i.callbacks=[],i.keyCount=n),i.callbacks.push(o=>{const i=e=>(0,s.UF)(t,null,e),a=o[n];void 0===a?i(void 0):e[a]===r?i(a):i(void 0)}),r})(e,t=>a(void 0===t?void 0:{key:t,host:e,isReactive:!1}),r));for(const e of n)if("manager"in e&&e.manager.component===e){c(e,t=>a(void 0===t?void 0:{key:t,host:e,isReactive:!0}),r);break}return r},u=((e="",t={},r=(0,o.r)())=>{const s={emit:s=>{""===e&&h();const o=new CustomEvent(e,{detail:s,cancelable:!0,bubbles:!0,composed:!0,...t});return r.el.dispatchEvent(o),o}};return""===e&&d(void 0,t=>e=t.key,s),s}).bind(null,"");var p;p=o.d;class f{constructor(e){this.#e=[],this.#t=[],this.#r=[],this.#s=[],this.#o=[],this.#n=[],this.#i=[],this.#a=[],this.#l=[],this.#h=!1,this.P=new i.cY,this.connectedCalled=!1,this.loadedCalled=!1,this[p]=!0,this.#c=[];const t=this,r=e??(0,o.r)(new.target.name);t.#d=r,t.ready=t.P.promise,t.#u=m(t),t.component=r,t.#d.addController(t),void 0===t.#d.manager||((0,o.a)(t),queueMicrotask(()=>t.catchUpLifecycle()))}#e;#t;#r;#s;#o;#n;#i;#a;#l;#h;#d;catchUpLifecycle(){const{manager:e}=this.#d;!e.connectedCalled||this.connectedCalled||this.triggerConnected(),!e.#h||this.triggerLoad().then(()=>e.loadedCalled&&this.triggerLoaded()).catch((0,a.G3)(this.#d))}#u;get exports(){return this.#u}set exports(e){const t=this.#u;t!==e&&(this.#u=e,this.#c.forEach(s.UF),this.connectedCalled&&!1!==this.O&&this.#d.requestUpdate(this.O,t)),this.P.resolve(e)}setProvisionalExports(e,t=!0){this.#u=t?m(e):e,this.#c.forEach(s.UF)}#c;watchExports(e){const t=()=>e(this.#u);return this.#c.push(t),()=>{this.#c.splice(this.#c.indexOf(t),1)}}get use(){return(0,o.s)(this.#d),o.u}get useRef(){return(0,o.s)(this.#d),o.j}get useRefSync(){return(0,o.s)(this.#d),o.k}controllerRemoved(){this.#d.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this.#e.push(e)}onDisconnected(e){this.#t.push(e)}onLoad(e){this.#r.push(e)}onLoaded(e){this.#s.push(e)}onUpdate(e){this.#o.push(e)}onUpdated(e){this.#n.push(e)}onDestroy(e){this.#i.push(e)}onLifecycle(e){this.#a.push(e),this.connectedCalled&&this.#d.el.isConnected&&this.#p(e)}triggerConnected(){const e=this;e.hostConnected&&(0,s.UF)(e.hostConnected,e),e.#e.forEach(s.UF),e.triggerLifecycle(),e.connectedCalled=!0}triggerDisconnected(){const e=this;e.hostDisconnected&&(0,s.UF)(e.hostDisconnected,e),e.#t.forEach(s.UF),e.#l.forEach(s.UF),e.#l=[]}async triggerLoad(){if(this.#h)return;this.#h=!0;const e=this;e.hostLoad&&await(0,s.ao)(e.hostLoad,e),this.#r.length>0&&await Promise.allSettled(this.#r.map(s.ao)),this.P.resolve(this.#u)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&(0,s.UF)(this.hostLoaded,this),this.#s.forEach(s.UF),this.loadedCalled=!0)}triggerUpdate(e){this.hostUpdate&&(0,s.UF)(this.hostUpdate,this,e),this.#o.forEach(g,e)}triggerUpdated(e){this.hostUpdated&&(0,s.UF)(this.hostUpdated,this,e),this.#n.forEach(g,e)}triggerDestroy(){this.hostDestroy&&(0,s.UF)(this.hostDestroy,this),this.#i.forEach(s.UF)}triggerLifecycle(){this.hostLifecycle&&this.#p(()=>this.hostLifecycle()),this.#a.forEach(this.#p,this)}#p(e){(0,o.s)(this.#d);const t=(0,s.UF)(e);(Array.isArray(t)?t:[t]).forEach(e=>{"function"==typeof e?this.#l.push(e):"object"==typeof e&&"function"==typeof e.remove&&this.#l.push(e.remove)})}}function g(e){(0,s.UF)(e,void 0,this)}const m=e=>{if("object"!=typeof e&&"function"!=typeof e||null===e)return e;const t=new Proxy(e,{get(e,r,s){if("exports"!==r&&"_exports"!==r||!(r in e)||e[r]!==t)return r in e||r in Promise.prototype||"symbol"==typeof r?"function"==typeof e?e[r]:Reflect.get(e,r,s):void 0}});return t},v=f;r.d(t,["G",0,v,"a",0,d,"b",0,u,"p",0,h])},47061(e,t,r){r.d(t,{WF:()=>b,le:()=>U,s6:()=>P,CP:()=>C,zl:()=>T,Bq:()=>R,pf:()=>O});var s=r(90824),o=(r(25856),r(66047),r(53666));const n=e=>{let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){const r=t;return r.manager?.loadedCalled||(r.J??r._offspring).push(e),(r.I??r._postLoad).promise}return!1},i={};function a(){}function l(e){for(const t of["Associated","Disabled","Reset","StateRestore"]){const r=`orm${t}Callback`;e.prototype["f"+r]=async function(...e){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${r}`,{detail:e}))}}}const h=Object.defineProperty,c=globalThis.HTMLElement??a;class d extends c{constructor(){super(),this.#f={},this.#g=[],this.I=new o.cY,this.H=new o.cY,this.J=[];const e=this,t=e.constructor;e._offspring=e.J,e._postLoad=e.I,t.C?.forEach(t=>{Object.hasOwn(e,t)&&(e.#f[t]=e[t],delete e[t])}),t.A?e.#m({a:t.A}):t.B.then(async r=>{await t.K.p,e.#m(await(r.default?.then(e=>"function"==typeof e?{a:e}:e)??r))}).catch(t=>{e.H.reject(t),setTimeout(()=>{throw t})})}static{this.lumina=!0}static F(){for(const e of this.C??[])h(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this.#f[e]},set(t){this.#f[e]=t}});for(const e of this.E??[])h(this.prototype,e,{async value(...t){this.#v||await this.H.promise;const r=this.#v;return await r[e](...t)},configurable:!0});for(const e of this.D??[])h(this.prototype,e,{value(...t){return this.#v[e](...t)},configurable:!0})}static{l(this)}#v;#f;#g;get manager(){return this.#v?.manager}attributeChangedCallback(e,t,r){this.#v?.attributeChangedCallback(e,t,r),this.#v||this.#g.push(e)}connectedCallback(){this.#v?this.#v.connectedCallback?.():queueMicrotask(()=>this.G=n(this))}disconnectedCallback(){this.#v?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#m(e){const t=this.constructor,r=t.L,s=this.#f,o=Object.values(e).find(e=>e.L===r),n=`${r}--lazy`;let i=o;for(;i&&!Object.hasOwn(i,"lumina");)i=Object.getPrototypeOf(i);p(i),!t.A&&(t.A=o,customElements.define(n,o)),o.N=this;const a=document.createElement(n);o.N=void 0,this.#v=a,this.#f=a,this.#g.forEach(e=>a.attributeChangedCallback(e,null,this.getAttribute(e))),Object.entries(s).forEach(u,a);const l=this.isConnected;(l||this.G)&&(a.connectedCallback?.(),l||a.disconnectedCallback())}addController(){}requestUpdate(){this.#v?.requestUpdate()}}function u([e,t]){this[e]=t}const p=e=>{const t=e.prototype,r=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(e,t){r.setAttribute.call(this.el,e,t)},t.removeAttribute=function(e){r.removeAttribute.call(this.el,e)},t.hasAttribute=function(e){return r.hasAttribute.call(this.el,e)},h(t,"isConnected",{get(){return Reflect.get(r,"isConnected",this.el)}}))};var f=r(71785),g=r(60026),m=r(58933),v=r(40523);class y extends s.G{constructor(e){super(e),this.destroyed=!1,this.R=!1,this.V=m.s6,this.T=[],this.#y=new WeakMap,this.#d=e,this.exports=void 0,this.hasDestroy=w in e&&"function"==typeof e.destroy,m.WF.prototype.addController.call(e,{hostConnected:()=>{if(this.destroyed){const t=e.el.localName;throw e.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${w} prop.`)}void 0!==this.#_&&clearTimeout(this.#_),(0,s.p)();for(const t of e.M)"triggerConnected"in t?t.triggerConnected():(0,f.UF)(t.hostConnected,t)},hostDisconnected:()=>{for(const t of e.M)"triggerDisconnected"in t?t.triggerDisconnected():(0,f.UF)(t.hostDisconnected,t);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(const t of e.M)"triggerUpdate"in t?t.triggerUpdate(this.Q):(0,f.UF)(t.hostUpdate,t,this.Q)},hostUpdated:()=>{for(const t of e.M)"triggerUpdated"in t?t.triggerUpdated(this.Q):(0,f.UF)(t.hostUpdated,t,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),(0,v.s)(e)}#_;#d;async destroy(){if(!this.destroyed){this.#d.el.isConnected&&(this.hasDestroy=!1,this.#d.el.remove()),this.#_=void 0,this.destroyed=!0;for(const e of this.#d.M)"triggerDestroy"in e?e.triggerDestroy():(0,f.UF)(e.hostDestroy,e);this.#d.M.splice(0)}}U(){if(void 0!==this.#_&&clearTimeout(this.#_),!this.#d.el.isConnected&&!this.#d.autoDestroyDisabled){const e=()=>{this.#d.destroy()};this.#_=(0,o.oK)(e,_)}}S(e,t){const r=this.T;this.V=m.s6,this.T=[],r.forEach(r=>r(e,t))}#y;W(e,t){("object"==typeof t&&null!==t||"function"==typeof t)&&this.#y.set(t,e)}X(e){return"object"==typeof e&&null!==e||"function"==typeof e?this.#y.get(e):void 0}}let _=1e3;const w="autoDestroyDisabled";var S=r(10845),k=r(84),A=r(66567),I=(r(98171),r(83435));class b extends m.WF{constructor(){super(),this.M=[],this.manager=new y(this);const e=this,t=e.constructor,r=t.N,s=t.K.o,n=b.prototype.shouldUpdate;e.#w=r?.H??new o.cY,e.I=r?.I??new o.cY,e.J=r?.J??[],e._offspring=e.J,e._postLoad=e.I,e.el=r??e,e.#S=e.enableUpdating,e.enableUpdating=a,e.shouldUpdate!==n&&(e.#k=e.shouldUpdate,e.shouldUpdate=n),s&&(e.#A=new Map,t.elementProperties.forEach((t,r)=>e.#A.set(r,s()))),m.S$&&e.el.setAttribute(t.K.hydratedAttribute,"")}static finalizeStyles(e){const t=super.finalizeStyles(e),r=this.shadowRootOptions===i;return void 0===this.K?.commonStyles||r?t:[this.K.commonStyles,...t]}static createProperty(e,t){const r="number"==typeof t?t:Array.isArray(t)?t[0]:0,s=Array.isArray(t)?t[1]:void 0,o=s?.hasChanged??m.Ec,n={attribute:!!(1&r&&"string"==typeof e)&&(0,g.j1)(e),reflect:!!(2&r),type:4&r?Boolean:8&r?Number:void 0,state:!!(16&r),readOnly:!!(32&r),noAccessor:!!(64&r),useDefault:!!(128&r),c:!1,...s,hasChanged(e,t){const r=o(e,t);return n.c=r,r}};super.createProperty(e,n)}static getPropertyDescriptor(e,t,r){const o=this.K,n=super.getPropertyDescriptor(e,t,r);return r.d=n,{...n,get(){return o.t?.(this.#A.get(e)),n.get?.call(this)},set(t){const o=this.manager;if(r.readOnly&&!v.h&&(o.R||o.connectedCalled))throw Error(`Cannot assign to read-only property "${e}" of ${this.el.localName}. Trying to assign "${t}"`);n.set.call(this,t??void 0),r.c&&this.#A?.get(e)?.notify(),o.T.length>0&&((0,s.p)(),o?.S(e,t))}}}static{this.lumina=!0}static{l(this)}#A;#k;#S;#w;#I;#b;get elementInternals(){return this.#b??=this.el.attachInternals(),this.#b}connectedCallback(){this.hasAttribute("defer-hydration")||this.#U(!0)}#U(e){const t=this.constructor.K.c?.(()=>this.requestUpdate());this.#I=t;const r=!this.manager.connectedCalled;e&&super.connectedCallback(),r?queueMicrotask(()=>this.#C().catch(e=>{this.#w.reject(e),setTimeout(()=>{throw e})})):t&&this.requestUpdate()}#T(e){try{this.#I.clear(),this.constructor.K.r(this.#I,()=>super.update(e))}catch(e){throw this.#I.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#I?.destroy(),this.#I=void 0}createRenderRoot(){const e=this.el.shadowRoot,t=this.constructor,r=t.shadowRootOptions,s=e??(r===i?this.el:this.el.attachShadow(r));if(e)return this.manager.connectedCalled||this.#U(!1),m.WF.prototype.createRenderRoot.call(this),e;if(this.isConnected){const e=s.getRootNode();e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t.elementStyles.map(e=>"styleSheet"in e?e.styleSheet:e)]}return s}async#C(){const e=this.el.G??n(this.el);e&&await e;const t=[];for(const e of this.M)"triggerLoad"in e?t.push(e.triggerLoad()):t.push((0,f.ao)(e.hostLoad,e));await Promise.all(t),await(this.load?.()),this.manager.hasDestroy&&this.manager.onUpdate(e=>e.has(w)&&this.manager.U()),this.#S(!0),this.performUpdate(),this.I.resolve(),await 0;const r=this.J.filter(e=>!e.manager?.loadedCalled);r.length&&await Promise.allSettled(r.map(async e=>await e.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(const e of this.M)"triggerLoaded"in e?e.triggerLoaded():(0,f.UF)(e.hostLoaded,e);this.loaded?.(),this.#w.resolve()}shouldUpdate(e){return this.manager.Q=e,this.#k?.(e)??!0}update(e){this.#I?this.#T(e):super.update(e)}listen(e,t,r){const s=t?.bind(this)??t;this.manager.onLifecycle(()=>(this.el.addEventListener(e,s,r),()=>this.el.removeEventListener(e,s,r)))}listenOn(e,t,r,s){const o=r?.bind(this)??r;this.manager.onLifecycle(()=>(e.addEventListener(t,o,s),()=>e.removeEventListener(t,o,s)))}async componentOnReady(){return await this.#w.promise,this}addController(e){this.M.push(e),!(v.d in e)&&this.renderRoot&&this.el.isConnected&&e.hostConnected?.()}removeController(e){this.M.splice(this.M.indexOf(e),1),e.controllerRemoved?.()}}const U=e=>{let t;const r=e=>{t=new URL(e,globalThis.location?.href||void 0).href},s={...e,getAssetPath(e){const r=new URL(e,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:r,customElement(e,t){t.K=s,t.L=e,m.S$?function(){try{customElements.define(e,t)}catch{}}():customElements.get(e)||customElements.define(e,t)}};return r(e.defaultAssetPath),s},C=e=>"object"==typeof e&&null!=e?(0,S.H)(e):e,T=e=>"object"==typeof e&&null!=e?(0,k.W)(e):e;class x extends A.WL{#x;#P;constructor(e){super(e);const t=this;this.#P=function(e){return t.#x.call(this,e)}}render(e){return"function"==typeof e?(this.#x=e,(0,I.K)(this.#P)):(0,I.K)(e)}}(0,A.u$)(x);const P=m.s6;function R(e,t,r){null==r?e.removeAttribute(t):e.setAttribute(t,r)}const O={toAttribute:e=>!0===e?"":!1===e?null:e}},39061(e,t,r){r.d(t,{u:()=>n});const s={},o=(e,t)=>{let r=e;for(;r;){const e=r.closest?.(t);if(e)return e;const s=r.getRootNode?.();if(s===globalThis.document)return;r=s?.host}};function n(e){const t=o(e,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return t?.classList.contains("calcite-mode-dark")||t?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}r.d(t,["g",0,(e,t,r)=>{const s=o(e,`[${t}]`);return s?.getAttribute(t)??r},"o",0,(e,t,r)=>(0,(e=>{const t=e.join(","),r=s[t];if(void 0!==r)return r;const o=new Set,n=new MutationObserver(e=>o.forEach(t=>t(e)));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});const i={subscribe:e=>(o.add(e),()=>{o.delete(e),0===o.size&&(n.disconnect(),s[t]=void 0)})};return s[t]=i,i})(t).subscribe)(t=>{const s=t.some(t=>((e,t)=>{let r=e;for(;r;){if(r===t)return!0;if(!r.parentNode)return!1;r=r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}return!1})(e,t.target));s&&r()})])},71785(e,t,r){r.d(t,["UF",0,(e,t,...r)=>{try{return e?.call(t,...r)}catch(t){console.error(t,e)}},"ao",0,async(e,t,...r)=>{try{const s=e?.call(t,...r);return await s}catch(t){console.error(t,e)}}])},44613(e,t,r){const s=new Set;const o=e=>"string"==typeof e?e:"el"in e?e.el.localName:"localName"in e?e.localName:e.declaredClass;r.d(t,["G3",0,e=>{const t=`[${o(e)}] `;return e=>{const r=e instanceof Error&&e.message?e:new Error(String(e));r.message=`${t}${r.message}`,setTimeout(()=>{throw e})}},"Rm",0,(e,t,r,n)=>{const i=o(t);if(n?.once){const t=`${e}${i}${r}`;if(s.has(t))return;s.add(t)}let a;if(n?.detail){a={};for(const[e,t]of Object.entries(n.detail))if("object"!=typeof t&&"function"!=typeof t||null===t)a[e]=t;else{const r=new WeakRef(t);Object.defineProperty(a,e,{enumerable:!0,get:()=>r.deref()})}console[e](`[${i}]: ${r}`,a)}else console[e](`[${i}]: ${r}`)}])},53666(e,t,r){r.d(t,{cY:()=>s});class s{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}r.d(t,["oK",0,(e,t)=>{const r=t>4e3?2e3:t/4;let s=0;const o=setInterval(()=>{s+=r,s>=t&&(clearInterval(o),e())},r);return o}])},60026(e,t,r){const s=/[A-Z]+(?![a-z])|[A-Z]/gu,o=e=>e.charAt(0).toUpperCase()+e.slice(1);crypto,r.d(t,["TK",0,e=>e.split("-").map(o).join(""),"YF",0,e=>e.charAt(0).toLowerCase()+e.slice(1),"j1",0,e=>e.replace(s,(e,t)=>`${0===t?"":"-"}${e.toLowerCase()}`)])},36708(e,t,r){r.d(t,{C_:()=>u,on:()=>d,wB:()=>l,z7:()=>h});var s=r(37955),o=r(36563),n=r(97768),i=r(17676),a=r(14012);function l(e,t,r={}){return c(e,t,r,p)}function h(e,t,r={}){return c(e,t,r,f)}function c(e,t,r={},s){let o=null;const i=r.once?(e,r)=>{s(e)&&((0,n.xt)(o),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(o=(0,a.Cn)(e,i,r.sync,r.equals),r.initial){const t=e();i(t,t)}return o}function d(e,t,r,i={}){let a=null,h=null,c=null;function d(){a&&h&&(h.remove(),i.onListenerRemove?.(a),a=null,h=null)}function u(e){i.once&&i.once&&(0,n.xt)(c),r(e)}const p=l(e,(e,r)=>{d(),(0,s.wb)(e)&&(a=e,h=(0,s.on)(e,t,u),i.onListenerAdd?.(e))},{sync:i.sync,initial:!0});return c=(0,o.hA)(()=>{p.remove(),d()}),c}function u(e,t){return function(e,t,r){if((0,i.G4)(r))return Promise.reject((0,i.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,n.xt)(a)}return new Promise((s,n)=>{a=(0,o.vE)([(0,i.u7)(r,()=>{l(),n((0,i.NK)())}),c(e,e=>{l(),s(e)},{sync:!1,once:!0},t??p)])})}(e,f,t)}function p(e){return!0}function f(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},16494(e,t,r){var s=r(75620);const o=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((e,t)=>(e[t]=[],e),{}),n=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],i=new s.I({whiteList:o,onTagAttr:(e,t,r)=>{const s=`${t}="${r}"`;if(n.includes(t))return s},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0),a=new s.I({whiteList:{br:[]},stripIgnoreTag:!0,escapeHtml:e=>e},!1);r.d(t,["Nd",0,a,"W5",0,i])},13069(e,t,r){r.d(t,{AG:()=>a,lk:()=>o,vD:()=>i,yS:()=>n});const s="randomUUID"in crypto;function o(){if(s)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${o().toUpperCase()}}`}function i(){return`{${o()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},50148(e,t,r){r.r(t),r.d(t,{default:()=>ht});var s=r(70333),o=r(92602),n=r(11254),i=r(49186),a=r(65529),l=r(37955),h=r(4718),c=r(93637),d=r(17676),u=r(84952),p=r(32198),f=r(91429),g=r(64108);let m=class extends a.nJ{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e?._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],null==this.creationTime&&(this.creationTime=Date.now())}refreshToken(){return s.id.refreshToken(this)}refreshServerTokens(){return s.id.refreshServerTokens(this)}emitTokenChange(e){clearTimeout(this._refreshTimer);const t=s.id,r=this.server?t.findServerInfo(this.server):null,o=r?.owningSystemUrl,n=o?t.findServerInfo(o):null;!1===e||o&&"portal"!==this.scope&&(!n?.webTierAuth||t.normalizeWebTierAuth)||null==this.expires&&null==this.validity||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);const e=s.id,t=e.credentials.indexOf(this);t>-1&&e.credentials.splice(t,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){const e=(0,h.oy)({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);const e=6e4*this.tokenRefreshBuffer,t=2**31-1;let r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r)}};(0,p.Cg)([(0,f.MZ)()],m.prototype,"creationTime",void 0),(0,p.Cg)([(0,f.MZ)()],m.prototype,"expires",void 0),(0,p.Cg)([(0,f.MZ)()],m.prototype,"isAdmin",void 0),(0,p.Cg)([(0,f.MZ)()],m.prototype,"oAuthState",void 0),(0,p.Cg)([(0,f.MZ)()],m.prototype,"resources",void 0),(0,p.Cg)([(0,f.MZ)()],m.prototype,"scope",void 0),(0,p.Cg)([(0,f.MZ)()],m.prototype,"server",void 0),(0,p.Cg)([(0,f.MZ)()],m.prototype,"ssl",void 0),(0,p.Cg)([(0,f.MZ)()],m.prototype,"token",void 0),(0,p.Cg)([(0,f.MZ)()],m.prototype,"tokenRefreshBuffer",void 0),(0,p.Cg)([(0,f.MZ)()],m.prototype,"userId",void 0),(0,p.Cg)([(0,f.MZ)()],m.prototype,"validity",void 0),m=(0,p.Cg)([(0,g.$)("esri.identity.Credential")],m);const v=m;var y=r(79783),_=r(39061);function w(e){return function(){const e=getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\W/g,"").toLowerCase();return"dark"===e||"light"===e?e:void 0}()??(0,_.u)(e??document.body)}function S(e){return function(e){return`calcite-mode-${e}`}(w(e))}r(44208);var k=r(53966),A=r(97768),I=r(61893),b=r(36708),U=r(13069),C=r(62788),T=r(71429),x=r(16494);const P="http://www.w3.org/",R=`${P}2000/svg`,O=`${P}1999/xlink`;let D=[],L=(e,t)=>{let r={};return Object.keys(e).forEach(t=>{r[t]=e[t]}),t&&Object.keys(t).forEach(e=>{r[e]=t[e]}),r},M=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),E=e=>{if("string"!=typeof e)throw new Error("Style values must be strings")},N=(e,t,r)=>{if(""!==t.vnodeSelector)for(let s=r;s<e.length;s++)if(M(e[s],t))return s;return-1},j=(e,t,r,s)=>{let o=e[t];if(""===o.vnodeSelector)return;let n=o.properties;if(!(n?void 0===n.key?n.bind:n.key:void 0))for(let n=0;n<e.length;n++)if(n!==t){let t=e[n];if(M(t,o))throw new Error(`${r.vnodeSelector} had a ${o.vnodeSelector} child ${"added"===s?s:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}},$=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},F=[],q=!1,Z=e=>{(e.children||[]).forEach(Z),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},V=()=>{q=!1,F.forEach(Z),F.length=0},z=e=>{F.push(e),q||(q=!0,"undefined"!=typeof window&&"requestIdleCallback"in window?window.requestIdleCallback(V,{timeout:16}):setTimeout(V,16))},B=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r){t.style.pointerEvents="none";let s=()=>{t.parentNode&&(t.parentNode.removeChild(t),z(e))};return void r(t,s,e.properties)}}t.parentNode&&(t.parentNode.removeChild(t),z(e))},H=(e,t,r)=>{if(!t)return;let s=r.eventHandlerInterceptor,o=Object.keys(t),n=o.length;for(let i=0;i<n;i++){let n=o[i],a=t[n];if("className"===n)throw new Error('Property "className" is not supported, use "class".');if("class"===n)Y(e,a,!0);else if("classes"===n){let t=Object.keys(a),r=t.length;for(let s=0;s<r;s++){let r=t[s];a[r]&&e.classList.add(r)}}else if("styles"===n){let t=Object.keys(a),s=t.length;for(let o=0;o<s;o++){let s=t[o],n=a[s];n&&(E(n),r.styleApplyer(e,s,n))}}else if("key"!==n&&null!=a){let o=typeof a;"function"===o?(0===n.lastIndexOf("on",0)&&(s&&(a=s(n,a,e,t)),"oninput"===n&&function(){let e=a;a=function(t){e.apply(this,[t]),t.target["oninput-value"]=t.target.value}}()),e[n]=a):r.namespace===R?"href"===n?e.setAttributeNS(O,n,a):e.setAttribute(n,a):"string"===o&&"value"!==n?"innerHTML"===n?e[n]=x.W5.sanitize(a):W(e)&&n in e?e[n]=a:e.setAttribute(n,a):e[n]=a}}};function W(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;const t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}let J,G=(e,t,r)=>{((e,t,r)=>{if(t)for(let s of t)K(s,e,void 0,r)})(e,t.children,r),t.text&&(e.textContent=t.text),H(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},K=(e,t,r,s)=>{let o,n=0,i=e.vnodeSelector,a=t.ownerDocument;if(""===i)o=e.domNode=a.createTextNode(e.text),void 0!==r?t.insertBefore(o,r):t.appendChild(o);else{for(let l=0;l<=i.length;++l){let h=i.charAt(l);if(l===i.length||"."===h||"#"===h){let h=i.charAt(n-1),c=i.slice(n,l);"."===h?o.classList.add(c):"#"===h?o.id=c:("svg"===c&&(s=L(s,{namespace:R})),void 0!==s.namespace?o=e.domNode=a.createElementNS(s.namespace,c):(o=e.domNode=e.domNode||a.createElement(c),"input"===c&&e.properties&&void 0!==e.properties.type&&o.setAttribute("type",e.properties.type)),void 0!==r?t.insertBefore(o,r):o.parentNode!==t&&t.appendChild(o)),n=l+1}}G(o,e,s)}},Y=(e,t,r)=>{t&&t.split(" ").forEach(t=>{t&&e.classList.toggle(t,r)})},Q=(e,t,r,s,o)=>{if(r===s)return!1;s=s||D;let n,i=(r=r||D).length,a=s.length,l=0,h=0,c=!1;for(;h<a;){let a=l<i?r[l]:void 0,d=s[h];if(void 0!==a&&M(a,d))c=J(a,d,o)||c,l++;else{let a=N(r,d,l+1);if(a>=0){for(n=l;n<a;n++)B(r[n]),j(r,n,e,"removed");c=J(r[a],d,o)||c,l=a+1}else K(d,t,l<i?r[l].domNode:void 0,o),$(d),j(s,h,e,"added")}h++}if(i>l)for(n=l;n<i;n++)B(r[n]),j(r,n,e,"removed");return c};J=(e,t,r)=>{let s=e.domNode,o=!1;if(e===t)return!1;let n=!1;if(""===t.vnodeSelector){if(t.text!==e.text){let e=s.ownerDocument.createTextNode(t.text);return s.parentNode.replaceChild(e,s),t.domNode=e,o=!0,o}t.domNode=s}else 0===t.vnodeSelector.lastIndexOf("svg",0)&&(r=L(r,{namespace:R})),e.text!==t.text&&(n=!0,void 0===t.text?s.removeChild(s.firstChild):s.textContent=t.text),t.domNode=s,n=Q(t,s,e.children,t.children,r)||n,n=((e,t,r,s)=>{if(!r)return;let o=!1,n=Object.keys(r),i=n.length;for(let a=0;a<i;a++){let i=n[a],l=r[i],h=t[i];if("class"===i)h!==l&&(Y(e,h,!1),Y(e,l,!0));else if("classes"===i){let t=e.classList,r=Object.keys(l),s=r.length;for(let e=0;e<s;e++){let s=r[e],n=!!l[s];n!==!!h[s]&&(o=!0,n?t.add(s):t.remove(s))}}else if("styles"===i){let t=Object.keys(l),r=t.length;for(let n=0;n<r;n++){let r=t[n],i=l[r];i!==h[r]&&(o=!0,i?(E(i),s.styleApplyer(e,r,i)):s.styleApplyer(e,r,""))}}else if(l||"string"!=typeof h||(l=""),"value"!==i||W(e)){if(l!==h){let t=typeof l;"function"===t&&s.eventHandlerInterceptor||(s.namespace===R?"href"===i?e.setAttributeNS(O,i,l):e.setAttribute(i,l):"string"===t?"innerHTML"===i?e[i]=x.W5.sanitize(l):"role"===i&&""===l?e.removeAttribute(i):W(e)&&i in e?e[i]=l:e.setAttribute(i,l):e[i]!==l&&(e[i]=l),o=!0)}}else{let t=e[i];t!==l&&(e["oninput-value"]?t===e["oninput-value"]:l!==h)&&(e[i]=l,e["oninput-value"]=void 0),l!==h&&(o=!0)}}return o})(s,e.properties,t.properties,r)||n,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[s,r,t.vnodeSelector,t.properties,t.children]);return n&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(s,t.properties,e.properties),o};let X=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let s=e;e=r,J(s,r,t)},domNode:e.domNode});const ee={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{"-"===t.charAt(0)?e.style.setProperty(t,r):e.style[t]=r}};let te,re=e=>L(ee,e),se=(e,t,r)=>(r=re(r),K(t,e,void 0,r),X(t,r)),oe=(e,t,r)=>(r=re(r),K(t,e.parentNode,e,r),X(t,r)),ne=(e,t,r)=>(r=re(r),t.domNode=e,G(e,t,r),X(t,r)),ie=(e,t,r)=>(r=re(r),K(t,e.parentNode,e,r),e.parentNode.removeChild(e),X(t,r));te=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0];const ae={handleInterceptedEvent:(e,t,r,s)=>(e.scheduleRender(),t.properties[`on${s.type}`].apply(t.properties.bind||r,[s]))},le={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.startsWith("-")?e.style.setProperty(t,r):e.style[t]=r}},he=(e,t,r=!1)=>{let s=e;return t.forEach((e,o)=>{const n=s?.children?((e,t)=>e.find(t))(s.children,t=>t.domNode===e):void 0;r&&!n&&o!==t.length-1||(s=n)}),s};var ce=r(84210),de=r(2741);let ue;ue="components/assets";var pe=r(36563);const fe=Symbol("widget"),ge=Symbol("widget-test-data"),me=[],ve={},ye=new Map;function _e(e,t){const r=t.vnodeSelector;if(Ae(r)){const s=t.properties||ve,o=s.key||r,n=t.children?.length?t.children:me,i={key:o,afterCreate:we,afterUpdate:Se,afterRemoved:ke,parentWidget:e,widgetConstructor:r,widgetProperties:{...s,key:o,children:n}};return{vnodeSelector:r.vnodeSelector,properties:i,children:void 0,text:void 0,domNode:null}}const s=t.children;if(s?.length)for(let t=0;t<s.length;++t)s[t]=_e(e,s[t]);return t}function we(e,t,r,{parentWidget:s,widgetConstructor:o,widgetProperties:n}){const i=new o(n);i.container=e,ye.set(e,i),i.afterCreate?.(i,e),s.addHandles((0,pe.hA)(()=>ke(e))),queueMicrotask(()=>{i[ge].projector?.renderNow()})}function Se(e,t,r,{widgetProperties:s}){const o=ye.get(e);o&&(o.set(s),o.afterUpdate?.(o,e))}function ke(e){const t=ye.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),ye.delete(e))}function Ae(e){return"function"==typeof e&&e[fe]}const Ie=new Set;new Map;const be=new Map;function Ue(){be.clear()}function Ce(e){be.delete(e)}var Te=r(98291),xe=r(76030);function Pe(e){return e.matches(":focus-within")||document.activeElement===e}(()=>{const e=new Map;new ResizeObserver(t=>{Ue();for(const r of t)e.get(r.target)?.(r)})})();var Re=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},Oe=function(e,t){for(var r=0,s=e.length;r<s;r++){var o=e[r];Array.isArray(o)?Oe(o,t):null!=o&&!1!==o&&(o.hasOwnProperty("vnodeSelector")||(o=Re(o)),t.push(o))}};const De=function(...e){const t=Te.A.acquire();for(let r=0;r<e.length;r++){const s=e[r],o=typeof s;if("string"===o)t.push(s);else if(Array.isArray(s))t.push.apply(t,s);else if("object"===o)for(const e in s)s[e]&&t.push(e)}const r=t.join(" ");return Te.A.release(t),r},Le=function(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}};function Me(e,t,...r){return"function"!=typeof e||Ae(e)?function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(1===r.length&&"string"==typeof r[0])return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var o=[];return Oe(r,o),{vnodeSelector:e,properties:t||void 0,children:o,text:void 0,domNode:null}}(e,t??null,...r):e(t,...r)}var Ee,Ne;let je=0;function $e(e,t){const r=Object.prototype.hasOwnProperty;for(const s in t)r.call(t,s)&&r.call(e,s)&&(null!=e[s]&&null!=t[s]&&"object"==typeof e[s]&&"object"==typeof t[s]?$e(e[s],t[s]):e[s]=t[s]);return e}const Fe=(e=>{let t;const r={...ae,...e},s=(n=r,{...le,...n}),o=s.performanceLogger;var n;let i,a=!0,l=!1;const h=[],c=[],d=(e,n,i)=>{let a;s.eventHandlerInterceptor=(e,s,n,i)=>function(e){let s;o("domEvent",e);const n=((e,t)=>{const r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r})(e.currentTarget,a.domNode),i=n.some(e=>customElements.get(e?.tagName?.toLowerCase()));if(e.eventPhase!==Event.CAPTURING_PHASE&&i){const t=e.composedPath(),r=t.slice(t.indexOf(e.currentTarget),t.indexOf(a.domNode)).reverse();s=he(a.getLastRender(),r,!0)}else n.reverse(),s=he(a.getLastRender(),n);let l;return s&&(l=r.handleInterceptedEvent(t,s,this,e)),o("domEventProcessed",e),l},r.postProcessProjectionOptions?.(s);const l=i();a=e(n,l,s),s.eventHandlerInterceptor=void 0,h.push(a),c.push(i),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(a,l)};let u=()=>{if(i=void 0,a){a=!1,o("renderStart",void 0);for(let e=0;e<h.length;e++){const t=c[e]();o("rendered",void 0);try{h[e].update(t)}catch(e){console.error(e)}o("patched",void 0)}o("renderDone",void 0),a=!0}};return r.modifyDoRenderImplementation&&(u=r.modifyDoRenderImplementation(u,h,c)),t={renderNow:u,scheduleRender:()=>{i||l||(i=requestAnimationFrame(u))},stop:()=>{i&&(cancelAnimationFrame(i),i=void 0),l=!0},resume:()=>{l=!1,a=!0,t.scheduleRender()},append:(e,t)=>{d(se,e,t)},insertBefore:(e,t)=>{d(oe,e,t)},merge:(e,t)=>{d(ne,e,t)},replace:(e,t)=>{d(ie,e,t)},detach:e=>{for(let t=0;t<c.length;t++)if(c[t]===e)return c.splice(t,1),h.splice(t,1)[0];throw new Error("renderFunction was not found")}},t})({postProcessProjectionOptions(e){const t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(e,s,o,n)=>{const i=t?.(e,s,o,n),a=r.test(e);if(!((e=e.replace(r,"")).toLowerCase()in o)||a){const t=e[2].toLowerCase()+e.slice(3),r=e=>i?.call(o,e);o.addEventListener(t,r,a);const s=()=>o.removeEventListener(t,r,a),l=n.afterRemoved;n.afterRemoved=e=>{l?.(e),s()}}return i}},handleInterceptedEvent(e,t,r,s){const{eventPhase:o,type:n}=s,i=o===Event.CAPTURING_PHASE;let a=`on${n}${i?"capture":""}`;const l=t.properties;(l&&a in l||(a=`on${n[0].toUpperCase()}${n.slice(1)}${i?"Capture":""}`,l&&a in l))&&(Ue(),e.scheduleRender(),l[a].call(l.bind||r,s))}});let qe=!1,Ze=class extends((0,I.g)(a.nJ)){static{this[Ee]=!0}constructor(e,t){super(e,t),this[Ne]=!0,this._attached=!1,this._projector=Fe,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this.topLayerDisabled=!1,this._loadLocale=(0,d.sg)(async()=>{if(this._messageBundleProps?.length){const e=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:e,propertyName:t})=>{if(this.destroyed)return;let r=await(0,y.ud)(e);this.destroyed||(this.uiStrings&&Object.keys(this.uiStrings)&&(r=$e((0,h.o8)(r),this.uiStrings)),this[t]=r)}));if(this.destroyed)return;for(const t of e)"rejected"===t.status&&k.A.getLogger(this).error("widget-intl:locale-error",this.declaredClass,t.reason)}await this.loadLocale()}),this.addHandles((0,pe.hA)()),ce.qu||(0,ce.Qu)((0,u.s2)((0,de.s)("components/assets")));const r="esri-widget-uid-"+(0,U.lk)(),s=this.render.bind(this);this._trackingTarget=new T.r(()=>{this.autoRenderingEnabled&&this.scheduleRender()});const o=()=>{if(!this._readyForTrueRender||this.destroyed)return null;const e=s()??{vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0},t=e.properties??={};t.key??=r,Ae(e.vnodeSelector)?t.visible=this.visible&&!1!==t.visible:(this.visible?t.styles||(t.styles={}):(t.class="",t.styles={display:"none"}),t.styles.display??="");let o=0;return e.children?.forEach(e=>{Ae(e.vnodeSelector)||(e.properties??={},e.properties.key??=`${this.id}--${o++}`)}),_e(this,e)};this.render=()=>{if(qe)return o();let e=(t=this,be.get(t)??null);var t;if(e)return e;this._trackingTarget.clear(),qe=!0;try{e=(0,C.a)(this._trackingTarget,o)}catch(t){throw k.A.getLogger(this).error(t),t}finally{qe=!1}return e&&function(e,t){be.set(e,t)}(this,e),e};const n=this.beforeFirstRender();n?this._resourcesFetch=n.then(()=>{this.destroyed||(this._readyForTrueRender=!0,this._postInitialize())}):(this._resourcesFetch=Promise.resolve().then(()=>{this.destroyed||this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),function(e){Ie.add(e),e.finally(()=>Ie.delete(e)).catch(()=>{})}(this._resourcesFetch)}normalizeCtorArgs(e,t){const r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){const e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then(()=>{}).catch(d.jH):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||((0,A.pR)(this._trackingTarget),this.viewModel?.destroyed||this.viewModel?.destroying||(0,A.pR)(this.viewModel),this._detach(this.container),this._set("container",null),this.render=()=>null,this._projector=null,Ce(this))}get container(){return this._get("container")}set container(e){this._get("container")||this._set("container",function(e){return"string"==typeof e?document.getElementById(e):e??null}(e))}get destroyed(){return super.destroyed}get domNode(){return this.container}set domNode(e){this.container=e}get icon(){return null}set icon(e){this._overrideIfSome("icon",e)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+je++}set id(e){e&&this._set("id",e)}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e)}get[(Ee=fe,Ne=fe,ge)](){return{projector:this._projector}}static{this.vnodeSelector="div"}render(){throw new Error("not implemented")}removeContainer(){this._set("container",null)}scheduleRender(){this.destroyed||(Ce(this),this._projector.scheduleRender())}classes(...e){return De.apply(this,e)}renderNow(){this.destroyed||(Ce(this),this._projector.renderNow())}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles((0,b.wB)(()=>this.viewModel,(e,t)=>{t&&this.removeHandles("delegated-events"),e&&(0,l.wb)(e)&&this.addHandles(this._delegatedEventNames.map(t=>(0,l.on)(e,t,e=>{this.emit(t,e)})),"delegated-events")},b.pc)),this.postInitialize();const e=async()=>{await this._loadLocale().catch(d.jH),this.scheduleRender()};this.addHandles([(0,y.oQ)(e),(0,b.wB)(()=>this.uiStrings,e)]),this.addHandles((0,b.z7)(()=>this.container,e=>{this.destroyed||(e.closest("[arcgis-widget-wrapped]")||(this.topLayerDisabled=!0,this.announceDeprecation?.()),this._attach(e))},{initial:!0,once:!0}))}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){this._attached&&(this._projector.detach(this.render),this._attached=!1),e?.parentNode?.removeChild(e)}};(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"_readyForTrueRender",void 0),(0,p.Cg)([(0,f.MZ)({value:null})],Ze.prototype,"container",null),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"icon",null),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"id",null),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"label",null),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"renderable",null),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"uiStrings",void 0),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"viewModel",void 0),(0,p.Cg)([(0,f.MZ)({value:!0})],Ze.prototype,"visible",null),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"key",void 0),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"children",void 0),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"afterCreate",void 0),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"afterUpdate",void 0),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"afterRemoved",void 0),(0,p.Cg)([(0,f.MZ)()],Ze.prototype,"topLayerDisabled",void 0),Ze=(0,p.Cg)([(0,f.$K)("esri.widgets.Widget")],Ze);const Ve=Ze,ze="esri-identity-modal",Be={base:ze,info:`${ze}__info`,notice:`${ze}__notice`};let He=class extends Ve{constructor(e,t){super(e,t),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container)}loadDependencies(){return function(e){const t=[];for(const r of Object.keys(e))customElements.get(`calcite-${r}`)||t.push(e[r]?.());return t.length>0?Promise.all(t):null}({button:()=>Promise.all([r.e(1257),r.e(4348),r.e(6641)]).then(r.bind(r,46641)),dialog:()=>Promise.all([r.e(1257),r.e(4348),r.e(9538),r.e(7843)]).then(r.bind(r,79538)),input:()=>Promise.all([r.e(1257),r.e(4348),r.e(9932),r.e(224)]).then(r.bind(r,29932)),label:()=>Promise.all([r.e(1257),r.e(8955)]).then(r.bind(r,68955)),notice:()=>Promise.all([r.e(1257),r.e(4348),r.e(6405)]).then(r.bind(r,1723))})}get title(){return this.commonMessages?.auth.signIn}render(){const{open:e,title:t,messages:r,signingIn:s,oAuthPrompt:o,server:n,resource:i,error:a}=this,{info:l,oAuthInfo:h,lblItem:c,invalidUser:d,noAuthService:u,lblUser:p,lblPwd:f,lblCancel:g,lblSigning:m,lblOk:v}=r;return Me("div",{class:this.classes(Be.base,S(this.container))},Me("form",{bind:this,onsubmit:this._submit},Me("calcite-dialog",{bind:this,heading:t,modal:!0,open:e,outsideCloseDisabled:!0,scale:"s",width:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},Me("div",{class:Be.info},(0,y.V2)(o?h:l,{server:n&&/\.arcgis\.com/i.test(n)?"ArcGIS Online":n,resource:`(${i||c})`})),a?Me("calcite-notice",{class:Be.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},Me("div",{slot:"message"},a.details?.httpStatus?d:u)):null,o?null:[Me("calcite-label",null,p,Me("calcite-input",{afterCreate:e=>this._usernameInputNode=e,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),Me("calcite-label",null,f,Me("calcite-input",{afterCreate:e=>this._passwordInputNode=e,bind:this,name:"password",required:!0,type:"password",value:""}))],Me("calcite-button",{appearance:"outline",bind:this,slot:"footer-end",type:"button",onclick:this._cancel},g),Me("calcite-button",{loading:!!s,slot:"footer-end",type:"submit"},s?m:v))))}_focusUsernameInput(){return async function(e,t){const r=(0,d.YL)(t,1e4),s=(0,d.Mq)(r);await(0,xe.$m)(s);const o=e();if(!o)return;const n=async()=>{"setFocus"in o&&"function"==typeof o.setFocus?await o.setFocus():o instanceof HTMLElement&&o.focus()};for(true;!Pe(o)&&!(0,d.G4)(r);)await(0,xe.$m)(s),await n()}(()=>this._usernameInputNode)}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);const t=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",t)}};(0,p.Cg)([(0,f.MZ)({readOnly:!0})],He.prototype,"container",void 0),(0,p.Cg)([(0,f.MZ)(),Le("esri/t9n/common")],He.prototype,"commonMessages",void 0),(0,p.Cg)([(0,f.MZ)()],He.prototype,"error",void 0),(0,p.Cg)([(0,f.MZ)(),Le("esri/identity/t9n/identity")],He.prototype,"messages",void 0),(0,p.Cg)([(0,f.MZ)()],He.prototype,"oAuthPrompt",void 0),(0,p.Cg)([(0,f.MZ)()],He.prototype,"open",void 0),(0,p.Cg)([(0,f.MZ)()],He.prototype,"signingIn",void 0),(0,p.Cg)([(0,f.MZ)()],He.prototype,"server",void 0),(0,p.Cg)([(0,f.MZ)({readOnly:!0})],He.prototype,"title",null),(0,p.Cg)([(0,f.MZ)()],He.prototype,"resource",void 0),He=(0,p.Cg)([(0,f.$K)("esri.identity.IdentityModal")],He);const We=He,Je="esriJSAPIOAuth";class Ge{constructor(e,t){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=t,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token))if(null==this.expires&&this.refreshToken)e=!0;else if(this.expires){const t=Date.now();this.expires>t&&(this.expires-t)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}return e}save(){if(!this.storage)return!1;const e=this._load(),t=this.oAuthInfo;if(t?.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r||(r=e[t.authNamespace]={}),this.appId||(this.appId=t.appId),r[t.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(Je,JSON.stringify(e))}catch(e){return console.warn(e),!1}return!0}return!1}destroy(){const e=this._load(),t=this.oAuthInfo;if(t?.appId&&t?.portalUrl&&(null==this.expires||this.expires>Date.now())&&(this.refreshToken||this.token)){const e=t.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken";(0,n.A)(e,{authMode:"anonymous",keepAlive:!0,method:"post",query:{f:"json",auth_token:this.refreshToken||this.token,client_id:t.appId,token_type_hint:this.refreshToken?"refresh_token":"access_token"}}).catch(()=>{})}if(t?.authNamespace&&t.portalUrl&&this.storage){const r=e[t.authNamespace];if(r){delete r[t.portalUrl];try{this.storage.setItem(Je,JSON.stringify(e))}catch(e){console.log(e)}}}t&&(t._oAuthCred=null,this.oAuthInfo=null)}_init(){const e=this._load(),t=this.oAuthInfo;if(t?.authNamespace&&t.portalUrl){let r=e[t.authNamespace];r&&(r=r[t.portalUrl],r&&(this.appId=r.appId,this.codeVerifier=r.codeVerifier,this.expires=r.expires,this.refreshToken=r.refreshToken,this.ssl=r.ssl,this.stateUID=r.stateUID,this.token=r.token,this.userId=r.userId))}}_load(){let e={};if(this.storage){const t=this.storage.getItem(Je);if(t)try{e=JSON.parse(t)}catch(e){console.warn(e)}}return e}}Ge.prototype.declaredClass="esri.identity.OAuthCredential";var Ke,Ye=r(25482);let Qe=class extends Ye.o{static{Ke=this}constructor(e){super(e),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return Ke.fromJSON(this.toJSON())}};(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"appId",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"authNamespace",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"expiration",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"flowType",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"forceLogin",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"forceUserId",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"locale",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"minTimeUntilExpiration",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"popup",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"popupCallbackUrl",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"popupWindowFeatures",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"portalUrl",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"preserveUrlHash",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],Qe.prototype,"userId",void 0),Qe=Ke=(0,p.Cg)([(0,f.$K)("esri.identity.OAuthInfo")],Qe);const Xe=Qe;let et=class extends Ye.o{constructor(e){super(e),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],et.prototype,"adminTokenServiceUrl",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],et.prototype,"currentVersion",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],et.prototype,"hasPortal",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],et.prototype,"hasServer",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],et.prototype,"owningSystemUrl",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],et.prototype,"owningTenant",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],et.prototype,"server",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],et.prototype,"shortLivedTokenValidity",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],et.prototype,"tokenServiceUrl",void 0),(0,p.Cg)([(0,f.MZ)({json:{write:!0}})],et.prototype,"webTierAuth",void 0),et=(0,p.Cg)([(0,f.$K)("esri.identity.ServerInfo")],et);const tt=et;var rt=r(39131);const st={},ot=e=>{const t=new u.s0(e.owningSystemUrl).host,r=new u.s0(e.server).host,s=/.+\.arcgis\.com$/i;return s.test(t)&&s.test(r)},nt=(e,t)=>!!(ot(e)&&t&&t.some(t=>t.test(e.server)));let it=null,at=null;try{it=window.localStorage,at=window.sessionStorage}catch{}class lt extends a.a${constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin="null"!==window.origin?window.origin:window.location.origin,this._appUrlObj=(0,u.An)(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^/]+\/[^/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer|3DTilesServer)).*/gi,this._gwUser=/http.+\/users\/([^/]+).*/i,this._gwItem=/http.+\/items\/([^/]+).*/i,this._gwGroup=/http.+\/groups\/([^/]+).*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getPlatformSelfError=null,this._getOAuthLocationParams(),window.addEventListener("pageshow",e=>{this._pageShowHandler(e)})}registerServers(e){const t=this.serverInfos;t?(e=e.filter(e=>!this.findServerInfo(e.server)),this.serverInfos=t.concat(e)):this.serverInfos=e,e.forEach(e=>{e.owningSystemUrl&&this._portals.push(e.owningSystemUrl),e.hasPortal&&this._portals.push(e.server)})}registerOAuthInfos(e){const t=this.oAuthInfos;if(t){for(const r of e){const e=this.findOAuthInfo(r.portalUrl);e&&t.splice(t.indexOf(e),1)}this.oAuthInfos=t.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};const t=this._sanitizeUrl(e.server),r=this._isServerRsrc(t);let s,o=this.findServerInfo(t),n=!0;o||(o=new tt,o.server=this._getServerInstanceRoot(t),r?o.hasServer=!0:(o.tokenServiceUrl=this._getTokenSvcUrl(t),o.hasPortal=!0),this.registerServers([o])),s=this._findCredential(t),s?(delete e.server,Object.assign(s,e),n=!1):(s=new v({userId:e.userId,server:o.server??void 0,token:e.token,expires:e.expires,ssl:e.ssl,scope:r?"server":"portal"}),s.resources=[t],this.credentials.push(s)),s.emitTokenChange(!1),n||s.refreshServerTokens()}toJSON(){return(0,h.oy)({serverInfos:this.serverInfos.map(e=>e.toJSON()),oAuthInfos:this.oAuthInfos.map(e=>e.toJSON()),credentials:this.credentials.map(e=>e.toJSON())})}initialize(e){if(!e)return;"string"==typeof e&&(e=JSON.parse(e));const t=e.serverInfos,r=e.oAuthInfos,s=e.credentials;if(t){const e=[];t.forEach(t=>{t.server&&t.tokenServiceUrl&&e.push(t.declaredClass?t:new tt(t))}),e.length&&this.registerServers(e)}if(r){const e=[];r.forEach(t=>{t.appId&&e.push(t.declaredClass?t:new Xe(t))}),e.length&&this.registerOAuthInfos(e)}s&&s.forEach(e=>{e.server&&e.token&&e.expires&&e.expires>Date.now()&&((e=e.declaredClass?e:new v(e)).emitTokenChange(),this.credentials.push(e))})}findServerInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.serverInfos)if(this._hasSameServerInstance(r.server,e)){t=r;break}return t}findOAuthInfo(e){let t;e=this._sanitizeUrl(e);for(const r of this.oAuthInfos)if(this._hasSameServerInstance(r.portalUrl,e)){t=r;break}return t}findCredential(e,t){if(!e)return;let r;e=this._sanitizeUrl(e);const s=this._isServerRsrc(e)?"server":"portal";if(t){for(const o of this.credentials)if(this._hasSameServerInstance(o.server,e)&&t===o.userId&&o.scope===s){r=o;break}}else for(const t of this.credentials)if(this._hasSameServerInstance(t.server,e)&&-1!==this._getIdenticalSvcIdx(e,t)&&t.scope===s){r=t;break}return r}getCredential(e,t){let r,s=!1,o=!0;t&&(s=!(!t.token&&!t.credential),r=t.error,o=!1!==t.prompt),t={...t},e=this._sanitizeUrl(e);const n=new AbortController,a=Promise.withResolvers();if(t.signal&&(0,d.u7)(t.signal,()=>{n.abort()}),(0,d.u7)(n,()=>{a.reject(new i.A("identity-manager:user-aborted","ABORTED"))}),(0,d.G4)(n))return a.promise;t.signal=n.signal;const l=this._isAdminResource(e),h=s?this.findCredential(e):null;let c;if(h&&498===r?.details?.httpStatus)h.destroy();else if(h)return c=new i.A("identity-manager:not-authorized","You are currently signed in as: '"+h.userId+"'. You do not have access to this resource: "+e,{error:r}),a.reject(c),a.promise;const p=this._findCredential(e,t);if(p)return a.resolve(p),a.promise;let f=this.findServerInfo(e);if(f)!f.hasPortal&&f.server&&f.owningSystemUrl&&this._hasSameServerInstance(f.server,f.owningSystemUrl)&&(f.hasPortal=!0),!f.hasServer&&this._isServerRsrc(e)&&(f._restInfoPms=this._getTokenSvcUrl(e),f.hasServer=!0);else{const t=this._getTokenSvcUrl(e);if(!t)return c=new i.A("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),a.reject(c),a.promise;f=new tt,f.server=this._getServerInstanceRoot(e),"string"==typeof t?(f.tokenServiceUrl=t,f.hasPortal=!0):(f._restInfoPms=t,f.hasServer=!0),this.registerServers([f])}return f.hasPortal&&void 0===f._selfReq&&(o||(0,u.FX)(f.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(e=>e.tokenServiceUrl===f.tokenServiceUrl))&&(f._selfReq={owningTenant:t?.owningTenant,selfDfd:this._getPortalSelf(f.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,f,t,a,l)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,t,r){const s=this._rePortalTokenSvc.test(e.tokenServiceUrl),o=new u.s0(this._appOrigin),a=e.shortLivedTokenValidity;let l,h,c,d,p,f,g,m;t&&(m=this.tokenValidity||a||this._defaultTokenValidity,m>a&&a>0&&(m=a)),r&&(l=r.isAdmin,h=r.serverUrl,c=r.token,f=r.signal,g=r.ssl,e.customParameters=r.customParameters),l?d=e.adminTokenServiceUrl:(d=e.tokenServiceUrl,p=new u.s0(d.toLowerCase()),e.webTierAuth&&r?.serverUrl&&!g&&"http"===o.scheme&&((0,u.FX)(o.uri,d,!0)||"https"===p.scheme&&o.host===p.host&&"7080"===o.port&&"7443"===p.port)&&(d=d.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));const v={query:{request:"getToken",username:t?.username,password:t?.password,serverUrl:h,token:c,expiration:m,referer:l||s?this._appOrigin:null,client:l?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,r),signal:f};return s||(v.withCredentials=!1),(0,n.A)(d,v).then(r=>{const s=r.data;if(!s?.token)return new i.A("identity-manager:authentication-failed","Unable to generate token");const o=e.server;return st[o]||(st[o]={}),t&&(st[o][t.username]=t.password),s.validity=m,s})}isBusy(){return!!this._busy}async checkSignInStatus(e){return(await this.checkAppAccess(e,"")).credential}checkAppAccess(e,t,r){let s=!1;return this.getCredential(e,{prompt:!1}).then(o=>{let a;const l={f:"json"};if("portal"===o.scope)if(t&&(this._doPortalSignIn(e)||r?.force))a=o.server+"/sharing/rest/oauth2/validateAppAccess",l.client_id=t;else{if(!o.token)return{credential:o};a=o.server+"/sharing/rest"}else{if(!o.token)return{credential:o};a=o.server+"/rest/services"}return o.token&&(l.token=o.token),(0,n.A)(a,{query:l,authMode:"anonymous"}).then(e=>{if(!1===e.data.valid)throw new i.A("identity-manager:not-authorized",`You are currently signed in as: '${o.userId}'.`,e.data);return s=!!e.data.viewOnlyUserTypeApp,{credential:o}}).catch(e=>{if("identity-manager:not-authorized"===e.name)throw e;const t=e.details?.httpStatus;if(498===t)throw o.destroy(),new i.A("identity-manager:not-authenticated","User is not signed in.");if(400===t)throw new i.A("identity-manager:invalid-request","Bad request");return{credential:o}})}).then(e=>({credential:e.credential,viewOnly:s}))}setOAuthResponseHash(e){e&&(e.startsWith("#")&&(e=e.slice(1)),this._processOAuthPopupParams((0,u.zf)(e)))}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,t,r={}){const s=Promise.withResolvers(),o=()=>{l?.remove(),h?.remove(),this.dialog?.destroy(),this.dialog=l=h=null},n=()=>{o(),this._oAuthDfd=null,s.reject(new i.A("identity-manager:user-aborted","ABORTED"))};r.signal&&(0,d.u7)(r.signal,()=>{n()});const a=new We({open:!0,resource:this.getResourceName(e),server:t.server});this.dialog=a,this.emit("dialog-create");let l=a.on("cancel",n),h=a.on("submit",e=>{this.generateToken(t,e,{isAdmin:r.isAdmin,signal:r.signal}).then(n=>{o();const i=new v({userId:e.username,server:t.server??void 0,token:n.token,expires:null!=n.expires?Number(n.expires):null,ssl:!!n.ssl,isAdmin:r.isAdmin,validity:n.validity});s.resolve(i)}).catch(e=>{a.error=e,a.signingIn=!1})});return s.promise}oAuthSignIn(e,t,r,s){this._oAuthDfd=Promise.withResolvers();const o=this._oAuthDfd;let n;s?.signal&&(0,d.u7)(s.signal,()=>{const e=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;e&&!e.closed?e.close():this.dialog&&c()}),o.resUrl_=e,o.sinfo_=t,o.oinfo_=r;const a=r._oAuthCred;if(a.storage&&("authorization-code"===r.flowType||"auto"===r.flowType&&t.currentVersion>=8.4)){let e=crypto.getRandomValues(new Uint8Array(32));n=(0,u.$1)(e),a.codeVerifier=n,e=crypto.getRandomValues(new Uint8Array(32)),a.stateUID=(0,u.$1)(e),a.save()||(a.codeVerifier=n=null)}else a.codeVerifier=null;let l,h;this._getCodeChallenge(n).then(o=>{const n=!s||!1!==s.oAuthPopupConfirmation;if(!r.popup||!n)return void this._doOAuthSignIn(e,t,r,o);const i=new We({oAuthPrompt:!0,server:t.server,open:!0});this.dialog=i,this.emit("dialog-create"),l=i.on("cancel",c),h=i.on("submit",()=>{p(),this._doOAuthSignIn(e,t,r,o)})});const c=()=>{p(),this._oAuthDfd=null,o.reject(new i.A("identity-manager:user-aborted","ABORTED"))},p=()=>{l?.remove(),h?.remove(),this.dialog?.destroy(),this.dialog=null};return o.promise}async refreshToken(e){const t=this.findServerInfo(e.server),r=t?.owningSystemUrl,s=!!r&&"server"===e.scope,o=s&&nt(t,this._legacyFed),n=t.webTierAuth,i=n&&this.normalizeWebTierAuth,a=st[e.server],l=a?.[e.userId];let h,c=e.resources&&e.resources[0],d=s?this.findServerInfo(r):null,u={username:e.userId,password:l};if(n&&!i)return;s&&!d&&this.serverInfos.some(e=>(this._isIdProvider(r,e.server)&&(d=e),!!d));const p=d?this.findCredential(d.server,e.userId):null;if(!s||p){if(!o){if(s)h={serverUrl:c,token:p?.token,ssl:p?.ssl};else if(i)u=null,h={ssl:e.ssl};else{if(!l){let r;return c&&(c=this._sanitizeUrl(c),e._enqueued=1,r=this._enqueue(c,t,null,null,e.isAdmin,e),r.then(()=>{e._enqueued=0,e.refreshServerTokens()}).catch(()=>{e._enqueued=0})),r}e.isAdmin&&(h={isAdmin:!0})}return this.generateToken(s?d:t,s?null:u,h).then(t=>{e.token=t.token,e.expires=null!=t.expires?Number(t.expires):null,e.creationTime=Date.now(),e.validity=t.validity,e.emitTokenChange(),e.refreshServerTokens()}).catch(()=>{})}p?.refreshToken()}}refreshServerTokens(e){"portal"===e.scope&&this.credentials.forEach(t=>{const r=this.findServerInfo(t.server),s=r?.owningSystemUrl;t!==e&&t.userId===e.userId&&s&&"server"===t.scope&&(this._hasSameServerInstance(e.server,s)||this._isIdProvider(s,e.server))&&(nt(r,this._legacyFed)?(t.token=e.token,t.expires=e.expires,t.creationTime=e.creationTime,t.validity=e.validity,t.emitTokenChange()):t.refreshToken())})}destroyCredentials(){this.credentials&&this.credentials.slice().forEach(e=>{e.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=(0,l.on)(window,"message",t=>{if((t.origin===this._appOrigin||t.origin.endsWith(".arcgis.com"))&&"arcgis:auth:requestCredential"===t.data?.type){const r=t.source;this.getCredential(e).then(e=>{r.postMessage({type:"arcgis:auth:credential",credential:{expires:e.expires,server:e.server,ssl:e.ssl,token:e.token,userId:e.userId}},t.origin)}).catch(e=>{r.postMessage({type:"arcgis:auth:error",error:{name:e.name,message:e.message}},t.origin)})}})}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let e=window.location.hash;if(e){e.startsWith("#")&&(e=e.slice(1));const t=(0,u.zf)(e);let r=!1;if(t.access_token&&t.expires_in&&t.state&&t.hasOwnProperty("username"))try{t.state=JSON.parse(t.state),t.state.portalUrl&&(this._oAuthLocationParams=t,r=!0)}catch{}else if(t.error&&t.error_description&&(console.log("IdentityManager OAuth Error: ",t.error," - ",t.error_description),"access_denied"===t.error&&(r=!0,t.state)))try{t.state=JSON.parse(t.state)}catch{}r&&(window.location.hash=t.state?.hash||"")}let t=window.location.search;if(t){t.startsWith("?")&&(t=t.slice(1));const e=(0,u.zf)(t);let r=!1;if(e.code&&e.state)try{e.state=JSON.parse(e.state),e.state.portalUrl&&e.state.uid&&(this._oAuthLocationParams=e,r=!0)}catch{}else if(e.error&&e.error_description&&(console.log("IdentityManager OAuth Error: ",e.error," - ",e.error_description),"access_denied"===e.error&&(r=!0,e.state)))try{e.state=JSON.parse(e.state)}catch{}if(r){const t={...e};["code","error","error_description","message_code","persist","state"].forEach(e=>{delete t[e]});const r=(0,u.x0)(t),s=window.location.pathname+(r?`?${r}`:"")+(e.state?.hash||"");window.history.replaceState(window.history.state,"",s)}}}_getOAuthToken(e,t,r,s,o){return e=e.replace(/^http:/i,"https:"),(0,n.A)(`${e}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:s&&o?{grant_type:"authorization_code",code:t,redirect_uri:s,client_id:r,code_verifier:o}:{grant_type:"refresh_token",refresh_token:t,client_id:r}}).then(e=>e.data)}async _getCodeChallenge(e){if(e&&globalThis.isSecureContext){const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-256",t);return(0,u.$1)(new Uint8Array(r))}return null}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){const e=new i.A("identity-manager:user-aborted","ABORTED");this._errbackFunc(e)}}_findCredential(e,t){let r,s,o,n,i=-1;const a=t?.token,l=t?.resource,h=this._isServerRsrc(e)?"server":"portal",c=this.credentials.filter(t=>this._hasSameServerInstance(t.server,e)&&t.scope===h);if(e=l||e,c.length)if(1===c.length){if(r=c[0],o=this.findServerInfo(r.server),s=o?.owningSystemUrl,n=s?this.findCredential(s,r.userId):void 0,i=this._getIdenticalSvcIdx(e,r),!a)return-1===i&&r.resources.push(e),this._addResource(e,n),r;-1!==i&&(r.resources.splice(i,1),this._removeResource(e,n))}else{let t,r;if(c.some(a=>(r=this._getIdenticalSvcIdx(e,a),-1!==r&&(t=a,o=this.findServerInfo(t.server),s=o?.owningSystemUrl,n=s?this.findCredential(s,t.userId):void 0,i=r,!0))),a)t&&(t.resources.splice(i,1),this._removeResource(e,n));else if(t)return this._addResource(e,n),t}}_findOAuthInfo(e){let t=this.findOAuthInfo(e);if(!t)for(const r of this.oAuthInfos)if(this._isIdProvider(r.portalUrl,e)){t=r;break}return t}_addResource(e,t){t&&-1===this._getIdenticalSvcIdx(e,t)&&t.resources.push(e)}_removeResource(e,t){let r=-1;t&&(r=this._getIdenticalSvcIdx(e,t),r>-1&&t.resources.splice(r,1))}_useProxy(e,t){return t?.isAdmin&&!(0,u.FX)(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&"10.1"===String(e.currentVersion)&&!(0,u.FX)(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){const t=new u.s0(e);return t.scheme+"://"+t.host+(null!=t.port?":"+t.port:"")}_getServerInstanceRoot(e){const t=e.toLowerCase();let r=t.indexOf(this._agsRest);return-1===r&&this._isAdminResource(e)&&(r=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),-1!==r||(0,rt.$E)(t)||(r=t.indexOf("/sharing")),-1===r&&t.endsWith("/")&&(r=t.length-1),r>-1?e.slice(0,r):e}_hasSameServerInstance(e,t){return e.endsWith("/")&&(e=e.slice(0,-1)),e=e.toLowerCase(),t=this._getServerInstanceRoot(t).toLowerCase(),e=(0,rt.qG)(e),t=(0,rt.qG)(t),(e=e.slice(Math.max(0,e.indexOf(":"))))===t.slice(Math.max(0,t.indexOf(":")))}_sanitizeUrl(e){const t=(o.A.request.proxyUrl||"").toLowerCase(),r=t?e.toLowerCase().indexOf(t+"?"):-1;return-1!==r&&(e=e.slice(r+t.length+1)),e=(0,u.S8)(e),(0,u.An)(e).path}_isRESTService(e){return e.includes(this._agsRest)}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,t){let r=!1;if(this._isRESTService(e)&&this._isRESTService(t)){const s=this._getSuffix(e).toLowerCase(),o=this._getSuffix(t).toLowerCase();if(r=s===o,!r){const e=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;r=s.replaceAll(e,"$1")===o.replaceAll(e,"$1")}}else this._isAdminResource(e)&&this._isAdminResource(t)?r=!0:this._isServerRsrc(e)||this._isServerRsrc(t)||!this._isPortalDomain(e)||(r=!0);return r}_isPortalDomain(e){const t=new u.s0(e.toLowerCase()),r=this._portalConfig;let s=this._gwDomains.some(e=>e.regex.test(t.uri));return!s&&r&&(s=this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t.uri)),s||o.A.portalUrl&&(s=(0,u.FX)(t,o.A.portalUrl,!0)),s||(s=this._portals.some(e=>this._hasSameServerInstance(e,t.uri))),s=s||this._agsPortal.test(t.path),s}_isIdProvider(e,t){let r=-1,s=-1;this._gwDomains.forEach((o,n)=>{-1===r&&o.regex.test(e)&&(r=n),-1===s&&o.regex.test(t)&&(s=n)});let o=!1;if(r>-1&&s>-1&&(0===r||4===r?0!==s&&4!==s||(o=!0):1===r?1!==s&&2!==s||(o=!0):2===r?2===s&&(o=!0):3===r&&3===s&&(o=!0)),!o){const r=this.findServerInfo(t),s=r?.owningSystemUrl;s&&ot(r)&&this._isPortalDomain(s)&&this._isIdProvider(e,s)&&(o=!0)}return o}_getIdenticalSvcIdx(e,t){let r=-1;for(let s=0;s<t.resources.length;s++){const o=t.resources[s];if(this._isIdenticalService(e,o)){r=s;break}}return r}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let t,r,s;if(this._isRESTService(e)||this._isAdminResource(e)){const s=this._getServerInstanceRoot(e);return t=s+"/admin/generateToken",r=(0,n.A)(e=s+"/rest/info",{query:{f:"json"}}).then(e=>e.data),{adminUrl:t,promise:r}}if(this._isPortalDomain(e)){let t="";if(this._gwDomains.some(r=>(r.regex.test(e)&&(t=r.tokenServiceUrl),!!t)),t||this._portals.some(r=>(this._hasSameServerInstance(r,e)&&(t=r+this._gwTokenUrl),!!t)),t||(s=e.toLowerCase().indexOf("/sharing"),-1!==s&&(t=e.slice(0,s)+this._gwTokenUrl)),t||(t=this._getOrigin(e)+this._gwTokenUrl),t){const r=new u.s0(e).port;/^http:\/\//i.test(e)&&"7080"===r&&(t=t.replace(/:7080/i,":7443")),t=t.replace(/http:/i,"https:")}return t}}_processOAuthResponseParams(e,t,r){const s=t._oAuthCred;if(e.code){const o=s.codeVerifier;return s.codeVerifier=null,s.stateUID=null,s.save(),this._getOAuthToken(r.server,e.code,t.appId,this._getRedirectURI(t,!0),o).then(o=>{const n=new v({userId:o.username,server:r.server??void 0,token:o.access_token,expires:Date.now()+1e3*o.expires_in,ssl:o.ssl,oAuthState:e.state,_oAuthCred:s});return t.userId=n.userId,s.storage=o.persist?it:at,s.refreshToken=o.refresh_token,s.token=null,s.expires=o.refresh_token_expires_in?Date.now()+1e3*o.refresh_token_expires_in:null,s.userId=n.userId,s.ssl=n.ssl,s.save(),n})}const o=new v({userId:e.username,server:r.server??void 0,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:"true"===e.ssl,oAuthState:e.state,_oAuthCred:s});return t.userId=o.userId,s.storage=e.persist?it:at,s.refreshToken=null,s.token=o.token,s.expires=o.expires,s.userId=o.userId,s.ssl=o.ssl,s.save(),Promise.resolve(o)}_processOAuthPopupParams(e){const t=this._oAuthDfd;if(this._oAuthDfd=null,t)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),e.error){const r="access_denied"===e.error,s=new i.A(r?"identity-manager:user-aborted":"identity-manager:authentication-failed",r?"ABORTED":"OAuth: "+e.error+" - "+e.error_description);t.reject(s)}else this._processOAuthResponseParams(e,t.oinfo_,t.sinfo_).then(e=>{t.resolve(e)}).catch(e=>{t.reject(e)})}_setOAuthResponseQueryString(e){e&&(e.startsWith("?")&&(e=e.slice(1)),this._processOAuthPopupParams((0,u.zf)(e)))}async _exchangeToken(e,t,r){return(await(0,n.A)(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:t,token:r}})).data.token}async _getPlatformSelf(e,t){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];e=e.replace(/^http:/i,"https:");try{const r=await(0,n.A)(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":t,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0});return this._getPlatformSelfError=null,r.data}catch(e){throw"OAUTH_0066"===e.details?.messageCode&&(this._getPlatformSelfError=[e,Date.now()]),e}}_getPortalSelf(e,t){let r;return this._gwDomains.some(t=>(t.regex.test(e)&&(r=t.customBaseUrl),!!r)),r?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:r,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(t)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),(0,n.A)(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(e=>e.data))}_doPortalSignIn(e){const t=this._portalConfig,r=window.location.href,s=this.findServerInfo(e);return!(!t&&!this._isPortalDomain(r)||!(s?s.hasPortal||s.owningSystemUrl&&this._isPortalDomain(s.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(r,e)||t&&(this._hasSameServerInstance(this._getServerInstanceRoot(t.restBaseUrl),e)||this._isIdProvider(t.restBaseUrl,e))||(0,u.FX)(r,e,!0)))}_checkProtocol(e,t,r,s){let o=!0;const n=s?t.adminTokenServiceUrl:t.tokenServiceUrl;return n.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&(0,u.zs)(n)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:t}),!o)&&r(new i.A("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),o}_enqueue(e,t,r,s,o,n){return s||(s=Promise.withResolvers()),s.resUrl_=e,s.sinfo_=t,s.options_=r,s.admin_=o,s.refresh_=n,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(s)):this._xoReqs.push(s):this._doSignIn(s),s.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;const t=t=>{const r=e.options_?.resource,s=e.resUrl_,o=e.refresh_;let n=!1;this.credentials.includes(t)||(o&&this.credentials.includes(o)?(o.userId=t.userId,o.token=t.token,o.expires=t.expires,o.validity=t.validity,o.ssl=t.ssl,o.creationTime=t.creationTime,n=!0,t=o):this.credentials.push(t)),t.resources||(t.resources=[]),t.resources.includes(r||s)||t.resources.push(r||s),t.scope=this._isServerRsrc(s)?"server":"portal",t.emitTokenChange();const i=this._soReqs,a={};this._soReqs=[],i.forEach(e=>{if(!this._isIdenticalService(s,e.resUrl_)){const r=this._getSuffix(e.resUrl_);a[r]||(a[r]=!0,t.resources.push(e.resUrl_))}}),e.resolve(t),i.forEach(e=>{this._hasSameServerInstance(this._getServerInstanceRoot(s),e.resUrl_)?e.resolve(t):this._soReqs.push(e)}),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,n||this.emit("credential-create",{credential:t}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},r=t=>{e.reject(t),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},s=(o,n,a,h)=>{const c=e.sinfo_,p=!e.options_||!1!==e.options_.prompt,f=c.hasPortal&&this._findOAuthInfo(e.resUrl_);let g,m;if(o)t(new v({userId:o,server:c.server??void 0,token:a??void 0,expires:null!=h?Number(h):null,ssl:!!n}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);const s=(0,l.on)(window,"message",e=>{e.source===window.parent&&e.data&&("arcgis:auth:credential"===e.data.type?(s.remove(),e.data.credential.expires<Date.now()?r(new i.A("identity-manager:credential-request-failed","Parent application's token has expired.")):t(new v(e.data.credential))):"arcgis:auth:error"===e.data.type&&(s.remove(),"tokenExpiredError"===e.data.error.name?r(new i.A("identity-manager:credential-request-failed","Parent application's token has expired.")):r(i.A.fromJSON(e.data.error))))});(0,d.u7)(e.options_?.signal,()=>{s.remove()})}else if(f){let o=f._oAuthCred;if(!o){const e=new Ge(f,it),t=new Ge(f,at);e.isValid()&&t.isValid()?e.expires>t.expires?(o=e,t.destroy()):(o=t,e.destroy()):o=e.isValid()?e:t,f._oAuthCred=o}if(o.isValid()){g=new v({userId:o.userId??void 0,server:c.server??void 0,token:o.token??void 0,expires:o.expires,ssl:o.ssl??void 0,_oAuthCred:o});const n=f.appId!==o.appId&&this._doPortalSignIn(e.resUrl_);n||o.refreshToken?(e._pendingDfd=o.refreshToken?this._getOAuthToken(c.server,o.refreshToken,o.appId).then(e=>(g.expires=Date.now()+1e3*e.expires_in,g.token=e.access_token,g)):Promise.resolve(g),e._pendingDfd.then(e=>n?this._exchangeToken(e.server,f.appId,e.token).then(t=>(e.token=t,e)).catch(()=>e):e).then(e=>{t(e)}).catch(e=>{const t=e.details?.httpStatus;t>0&&404!==t?(o.destroy(),s()):r(e)})):t(g)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(f.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===o.stateUID&&o.codeVerifier)){const s=this._oAuthLocationParams;this._oAuthLocationParams=null,e._pendingDfd=this._processOAuthResponseParams(s,f,c).then(e=>{t(e)}).catch(r)}else{const s=()=>{p?e._pendingDfd=this.oAuthSignIn(e.resUrl_,c,f,e.options_).then(t,r):(m=new i.A("identity-manager:not-authenticated","User is not signed in."),r(m))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(c.server,f.appId).then(e=>{(0,u.FX)(e.portalUrl,this._appOrigin,!0)?(g=new v({userId:e.username,server:c.server??void 0,expires:Date.now()+1e3*e.expires_in,token:e.token}),t(g)):s()}).catch(s):s()}}else if(p){if(this._checkProtocol(e.resUrl_,c,r,e.admin_)){let s=e.options_;e.admin_&&(s=s||{},s.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,c,s).then(t,r)}}else m=new i.A("identity-manager:not-authenticated","User is not signed in."),r(m)},o=()=>{const s=e.sinfo_,o=s.owningSystemUrl,n=e.options_;let i,a,l;if(n&&(i=n.token,a=n.prompt),l=this._findCredential(o,{resource:e.resUrl_}),!l)for(const e of this.credentials)if(this._isIdProvider(o,e.server)){l=e;break}if(l){const o=this.findCredential(e.resUrl_,l.userId);if(o)t(o);else if(nt(s,this._legacyFed)){const e=l.toJSON();e.server=s.server,e.resources=null,t(new v(e))}else(e._pendingDfd=this.generateToken(this.findServerInfo(l.server),null,{serverUrl:e.resUrl_,token:l.token,signal:e.options_.signal,ssl:l.ssl})).then(r=>{t(new v({userId:l?.userId,server:s.server??void 0,token:r.token,expires:null!=r.expires?Number(r.expires):null,ssl:!!r.ssl,isAdmin:e.admin_,validity:r.validity}))},r)}else this._busy=null,i&&(e.options_.token=null),(e._pendingDfd=this.getCredential(o.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:s.owningTenant,signal:e.options_.signal,prompt:a})).then(()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)},t=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject(t)})};this._errbackFunc=r;const n=e.sinfo_.owningSystemUrl,a=this._isServerRsrc(e.resUrl_),h=e.sinfo_._restInfoPms;h?h.promise.then(t=>{const r=e.sinfo_;if(r._restInfoPms){r.adminTokenServiceUrl=r._restInfoPms.adminUrl,r._restInfoPms=null,r.tokenServiceUrl=((0,c.wc)("authInfo.tokenServicesUrl",t)||(0,c.wc)("authInfo.tokenServiceUrl",t)||(0,c.wc)("tokenServiceUrl",t))??null,r.shortLivedTokenValidity=(0,c.wc)("authInfo.shortLivedTokenValidity",t)??null,r.currentVersion=t.currentVersion,r.owningTenant=t.owningTenant;const e=r.owningSystemUrl=t.owningSystemUrl;e&&this._portals.push(e)}a&&r.owningSystemUrl?o():s()},()=>{e.sinfo_._restInfoPms=null;const t=new i.A("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");r(t)}):a&&n?o():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then(t=>{const r={};let s,o,n,i;return t&&(s=t.user?.username,r.username=s,r.allSSL=t.allSSL,o=t.supportsOAuth,i=parseFloat(t.currentVersion),"multitenant"===t.portalMode&&(n=t.customBaseUrl),e.sinfo_.currentVersion=i),e.sinfo_.webTierAuth=!!s,s&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:r.allSSL}).catch(()=>null).then(e=>(r.portalToken=e?.token,r.tokenExpiration=e?.expires,r)):!s&&o&&i>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:n,owningTenant:e.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>r):r}).catch(()=>null).then(t=>{e.sinfo_._selfReq=null,t?s(t.username,t.allSSL,t.portalToken,t.tokenExpiration):s()}):s()}_generateOAuthInfo(e){let t,r=null,s=e.portalUrl;const o=e.customBaseUrl,i=e.owningTenant,a=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(a){r=this._appUrlObj.path;const e=r.search(/\/(apps|home)\//);r=e>-1?r.slice(0,e):null}return a&&r?(this._hasTestedIfAppIsOnPortal=!0,t=(0,n.A)(r+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new Xe({appId:"arcgisonline",popupCallbackUrl:r+"/home/oauth-callback.html"})})):t=Promise.resolve(),t.then(()=>{if(this._defaultOAuthInfo)return s=s.replace(/^http:/i,"https:"),(0,n.A)(s+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:i,client_id:this._defaultOAuthInfo.appId,redirect_uri:(0,u.s2)(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(e=>{if(e.data.valid){const t=this._defaultOAuthInfo.clone();e.data.urlKey&&o?t.portalUrl="https://"+e.data.urlKey.toLowerCase()+"."+o:t.portalUrl=s,t.popup=window!==window.top||!((0,u.FX)(s,this._appOrigin)||this._gwDomains.some(e=>e.regex.test(s)&&e.regex.test(this._appOrigin))),this.oAuthInfos.push(t)}})})}_doOAuthSignIn(e,t,r,s){const o=r._oAuthCred,n={portalUrl:r.portalUrl};!r.popup&&r.preserveUrlHash&&window.location.hash&&(n.hash=window.location.hash),o.stateUID&&(n.uid=o.stateUID);const a={client_id:r.appId,response_type:o.codeVerifier?"code":"token",state:JSON.stringify(n),expiration:r.expiration,locale:r.locale,redirect_uri:this._getRedirectURI(r,!!o.codeVerifier)};r.forceLogin&&(a.force_login=!0),r.forceUserId&&r.userId&&(a.prepopulatedusername=r.userId),!r.popup&&this._doPortalSignIn(e)&&(a.redirectToUserOrgUrl=!0),o.codeVerifier&&(a.code_challenge=s||o.codeVerifier,a.code_challenge_method=s?"S256":"plain");const h=this._getAuthorizeUrl(r.portalUrl),c=h+"?"+(0,u.x0)(a);if(r.popup){const e=window.open(c,"esriJSAPIOAuth",r.popupWindowFeatures);if(e)e.focus(),this._oAuthDfd.oAuthWin_=e,this._oAuthIntervalId=setInterval(()=>{if(e.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();const e=this._oAuthDfd;if(e){const t=new i.A("identity-manager:user-aborted","ABORTED");e.reject(t)}}},500),this._oAuthOnPopupHandle=(0,l.on)(window,["arcgis:auth:hash","arcgis:auth:location:search"],e=>{"arcgis:auth:hash"===e.type?this.setOAuthResponseHash(e.detail):this._setOAuthResponseQueryString(e.detail)});else{const e=new i.A("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(e)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:a,authorizeUrl:h,resourceUrl:e,serverInfo:t,oAuthInfo:r}):window.location.href=c}_getAuthorizeUrl(e){let t=e.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize";const r=(0,rt.py)(t);if(r?.portalHostname){const{customBaseUrl:e,portalHostname:t,urlKey:s}=r}return t}_getRedirectURI(e,t){const r=window.location.href.replace(/#.*$/,"");if(e.popup)return(0,u.s2)(e.popupCallbackUrl);if(t){const e=(0,u.An)(r);return e.query&&["code","error","error_description","message_code","persist","state"].forEach(t=>{delete e.query[t]}),(0,u.a6)(e.path,e.query)}return r}}lt.prototype.declaredClass="esri.identity.IdentityManagerBase";const ht=new lt;(0,s.Aq)(ht)},79783(e,t,r){r.d(t,{ud:()=>S,JK:()=>k,oQ:()=>A,V2:()=>b});var s=r(2741),o=r(97770),n=r(73444),i=r(10838),a=r(18047),l=r(53966),h=r(93637),c=r(799);const d=()=>l.A.getLogger("esri.intl.substitute");function u(e,t){switch(t.type){case"date":return(0,o.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return d().warn("missing format descriptor for key {key}"),f(e)}}function p(e,t){switch(t.toLowerCase()){case"dateformat":return(0,o.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return d().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,o.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):f(e)}}function f(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,o.Yq)(e):""}}var g=r(11254),m=r(49186);const v={"esri/t9n/basemaps":"esri/support/basemaps/t9n/basemaps","esri/t9n/common":"esri/common/t9n/common","esri/widgets/support/t9n/ColorPicker":"esri/widgets/support/ColorPicker/t9n/ColorPicker","esri/widgets/support/t9n/timezone":"esri/widgets/support/TimezonePicker/t9n/timezone","esri/widgets/support/t9n/uriUtils":"esri/widgets/support/uriUtils/t9n/uriUtils"};async function y(e){if(null!=w.fetchBundleAsset)return w.fetchBundleAsset(e);const t=await(0,g.A)(e,{responseType:"text"});return JSON.parse(t.data)}class _{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){const o=v[r]??r,n=t.exec(o);if(!n)throw new m.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const a=n[1]?`${n[1]}/`:"",l=n[2],h=(0,i.xO)(s),c=o.startsWith("esri/"),d=`${a}${l}.json`,u=h?`${a}${l}_${h}.json`:d,p=c?`${a}messages.en.json`:d,f=c?`${a}messages.${h??"en"}.json`:u,g=[...new Set(c?[f,u,p,d]:[f,p])];for(const[t,s]of g.entries())try{return await y(e(s))}catch(e){if(t===g.length-1)throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`)}(this.getAssetUrl,this.matcher,e,t)}}const w={},S=i.ud,k=n.JK,A=n.oQ,I=i.ao,b=function(e,t,r={}){const{format:s={}}=r;return(0,c.HC)(e,e=>function(e,t,r){let s,o;const n=e.indexOf(":");if(-1===n?s=e.trim():(s=e.slice(0,n).trim(),o=e.slice(n+1).trim()),!s)return"";const i=(0,h.wc)(s,t);if(null==i)return"";const a=(o?r?.[o]:null)??r?.[s];return a?u(i,a):o?p(i,o):f(i)}(e,t,s))};var U;I((U={pattern:"esri/",location:s.s},new _(U)))},97770(e,t,r){r.d(t,{Ey:()=>O,F8:()=>R,J2:()=>C,Yq:()=>x,_m:()=>T,iS:()=>P,wj:()=>D});var s=r(66552),o=r(73444),n=r(98623),i=r(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},l={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},h={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},d={year:"numeric",month:"long",day:"numeric"},u={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},f={hour:"numeric",minute:"numeric"},g={...f,second:"numeric"},m={hourCycle:"h23"},v={...f,...m},y={...g,...m},_={"short-date":c,"short-date-short-time":{...c,...f},"short-date-short-time-24":{...c,...v},"short-date-long-time":{...c,...g},"short-date-long-time-24":{...c,...y},"short-date-le":c,"short-date-le-short-time":{...c,...f},"short-date-le-short-time-24":{...c,...v},"short-date-le-long-time":{...c,...g},"short-date-le-long-time-24":{...c,...y},"long-month-day-year":d,"long-month-day-year-short-time":{...d,...f},"long-month-day-year-short-time-24":{...d,...v},"long-month-day-year-long-time":{...d,...g},"long-month-day-year-long-time-24":{...d,...y},"day-short-month-year":u,"day-short-month-year-short-time":{...u,...f},"day-short-month-year-short-time-24":{...u,...v},"day-short-month-year-long-time":{...u,...g},"day-short-month-year-long-time-24":{...u,...y},"long-date":p,"long-date-short-time":{...p,...f},"long-date-short-time-24":{...p,...v},"long-date-long-time":{...p,...g},"long-date-long-time-24":{...p,...y},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":f,"long-time":g},w=(0,s.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),S={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},k=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),A=k.find(({type:e})=>"month"===e)?.value.toLowerCase();function I(){const e=(0,o.lR)();return(e&&S[e])??(0,o.QC)()}"mart"!==A&&(S.bs="sr-Latn-CS");let b=new WeakMap;const U=_["short-date-short-time"];function C(e){return _[e]}function T(e){const{dateStyle:t,timeStyle:r,hour12:s,year:o,month:n}=e,i={};return t?i.dateStyle=t:o&&(i.year=o,i.month=n||void 0),r&&!i.year&&(i.timeStyle=r,i.hour12="auto"===s?void 0:"always"===s),i}function x(e,t=U){return function(e){let t=b.get(e);if(!t){const r=I(),s=D(e.timeZone??"system"),o={...e,timeZone:s};t=new Intl.DateTimeFormat(r,o),b.set(e,t)}return t}(t).format(e)}function P(e,t=U){return x(new Date(e),{...t,...h,...l})}function R(e,t=U){return x(new Date(`1970-01-01T${e}Z`),{...t,...h,...a})}function O(e,t=U){const r=i.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return x(r.toJSDate(),t);const s=0===r.offset?"UTC":t.timeZone,o={...t,timeZone:s};return r.toLocaleString(o,{locale:I()})}function D(e){switch(e){case"system":return n.N;case n.L:return"UTC";default:return e}}(0,o.Ml)(()=>{b=new WeakMap}),r.d(t,["_v",0,w])},10838(e,t,r){r.d(t,{ao:()=>d,ud:()=>u,xO:()=>p});var s=r(49186),o=r(36563),n=r(73444);const i={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function a(e){if(function(e){return e in i}(e)){const t=i[e];return!0===t?e:t}return null}const l=[],h=new Map;function c(e){for(const t of h.keys())f(e.pattern,t)&&h.delete(t)}function d(e){return l.includes(e)||(c(e),l.unshift(e)),(0,o.hA)(()=>{const t=l.indexOf(e);t>-1&&(l.splice(t,1),c(e))})}async function u(e){const t=(0,n.JK)();h.has(e)||h.set(e,async function(e,t){const r=[];for(const s of l)if(f(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new s.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new s.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=h.get(e);return r&&await g.add(r),r}function p(e){const t=(0,n.lR)(e);return t?a(e)??a(t):null}function f(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,n.Ml)(()=>{h.clear()});const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=Promise.withResolvers())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18047(e,t,r){r.d(t,{Up:()=>l,ZV:()=>h,yx:()=>a});var s=r(73444);const o={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let n=new WeakMap,i={};function a(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e){const{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:s}=e;return{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:"auto"===s?"auto":"always"===s}}function h(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||i;if(!n.has(t)){const r=(0,s.lR)(),i=r&&o[r]||(0,s.QC)();n.set(t,new Intl.NumberFormat(i,e))}return n.get(t)}(t).format(e)}(0,s.Ml)(()=>{n=new WeakMap,i={}}),new Map}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4520],{32198(t,n,e){function r(t,n,e,r){var o,i=arguments.length,a=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(n,e,a):o(n,e))||a);return i>3&&a&&Object.defineProperty(n,e,a),a}function o(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,o;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>a,mS:()=>o}),Object.create,Object.create;var i="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function a(t){function n(n){t.error=t.hasError?new i(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function o(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(o);if(e.dispose){var i=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(i).then(o,function(t){return n(t),o()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},11006(t,n,e){function r(t,n,e,r,i){o(t,n,e||0,r||t.length-1,i||a)}function o(t,n,e,r,a){for(;r>e;){if(r-e>600){var s=r-e+1,u=n-e+1,c=Math.log(s),l=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*l*(s-l)/s)*(u-s/2<0?-1:1);o(t,n,Math.max(e,Math.floor(n-u*l/s+h)),Math.min(r,Math.floor(n+(s-u)*l/s+h)),a)}var f=t[n],p=e,m=r;for(i(t,e,n),a(t[r],f)>0&&i(t,e,r);p<m;){for(i(t,p,m),p++,m--;a(t[p],f)<0;)p++;for(;a(t[m],f)>0;)m--}0===a(t[e],f)?i(t,e,m):i(t,++m,r),m<=n&&(e=m+1),n<=m&&(r=m-1)}}function i(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function a(t,n){return t<n?-1:t>n?1:0}e.d(n,{q:()=>r})},73354(t,n,e){e.d(n,{a:()=>h,b:()=>s,c:()=>o,d:()=>a,e:()=>f,f:()=>l,l:()=>c,n:()=>p,t:()=>i}),e(44208);var r=e(72727);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,o=3,i=o){const a=(0,r.k)(t.length,o,3),s=(0,r.k)(n.length,i,3),u=Math.min(a,s),c=e[0],l=e[1],h=e[2],f=e[4],p=e[5],m=e[6],d=e[8],M=e[9],g=e[10],y=e[12],x=e[13],b=e[14];let v=0,_=0;for(let e=0;e<u;e++){const e=n[v],r=n[v+1],a=n[v+2];t[_]=c*e+f*r+d*a+y,t[_+1]=l*e+p*r+M*a+x,t[_+2]=h*e+m*r+g*a+b,v+=i,_+=o}return t}function a(t,n,e){s(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,o=3,i=o){const a=(0,r.k)(t.length,o,3),s=(0,r.k)(n.length,i,3),u=Math.min(a,s),c=e[0],l=e[1],h=e[2],f=e[3],p=e[4],m=e[5],d=e[6],M=e[7],g=e[8];let y=0,x=0;for(let e=0;e<u;e++){const e=n[y],r=n[y+1],a=n[y+2];t[x]=c*e+f*r+d*a,t[x+1]=l*e+p*r+M*a,t[x+2]=h*e+m*r+g*a,y+=i,x+=o}}function u(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let a=0,s=0;for(let u=0;u<i;u++)t[s]=e*n[a],t[s+1]=e*n[a+1],t[s+2]=e*n[a+2],a+=o,s+=r;return t}function c(t,n,e,r){l(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,r,o=3,i=o){const a=Math.min(t.length/o,n.length/i);let s=0,u=0;const c=1/2.2;for(let l=0;l<a;l++)t[u]=r*(e*n[s])**c,t[u+1]=r*(e*n[s+1])**c,t[u+2]=r*(e*n[s+2])**c,s+=i,u+=o}function h(t,n,e,o=3,i=o){const a=(0,r.k)(t.length,o,3),s=(0,r.k)(n.length,i,3),u=Math.min(a,s);let c=0,l=0;for(let r=0;r<u;r++)t[l]=n[c]+e[0],t[l+1]=n[c+1]+e[1],t[l+2]=n[c+2]+e[2],c+=i,l+=o;return t}function f(t,n){p(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function p(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,a=0;for(let s=0;s<o;s++){const o=n[i],s=n[i+1],u=n[i+2],c=o*o+s*s+u*u;if(c>0){const n=1/Math.sqrt(c);t[a]=n*o,t[a+1]=n*s,t[a+2]=n*u}i+=r,a+=e}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:l,linearToSRGBView:c,normalize:p,normalizeView:f,scale:u,scaleView:function(t,n,e){u(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,a=n.typedBuffer,s=n.typedBufferStride;let u=0,c=0;for(let t=0;t<r;t++)o[c]=a[u]>>e,o[c+1]=a[u+1]>>e,o[c+2]=a[u+2]>>e,u+=s,c+=i},transformMat3:s,transformMat3View:a,transformMat4:i,transformMat4View:o,translate:h},Symbol.toStringTag,{value:"Module"}))},69540(t,n,e){var r=e(32198),o=e(69622),i=(e(44208),e(4718)),a=(e(53966),e(97768)),s=e(88620),u=e(64108);const c=Symbol("ClonableMixin"),l=t=>{var n;const e=t;let o=class extends e{constructor(){super(...arguments),this[n]=!0}static{n=c}clone(t){const n=(0,s.oY)(this);(0,a.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,o={},u=new Map;for(const n in e){const a=e[n],s=r?.originOf(n),c=a.clonable;if(a.readOnly||!1===c||7!==s&&0!==s&&5!==s&&4!==s)continue;const l=this[n];let h=null;if("function"==typeof c)h=c(l,t);else if("reference"===c)h=l;else if(h=(0,i.TU)(l,t),null!=l&&null==h)continue;0===s?u.set(n,h):o[n]=h}const c=new(0,Object.getPrototypeOf(this).constructor)(o);if(u.size){const t=(0,s.oY)(c)?.store;if(t)for(const[n,e]of u)t.set(n,e,0)}return c}};return o=(0,r.Cg)([(0,u.$)("esri.core.Clonable")],o),o},h=l(o.A);e.d(n,["OU",0,l,"Pw",0,h])},95488(t,n,e){e.d(n,{I:()=>o});var r=e(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const n=t.slice();for(const t of n)t.onInvalidated(),t.onCommitted()}}}},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>o,vt:()=>r});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,n,e,r,o,i,a,s,u,c,l,h,f,p,m,d){return[t,n,e,r,o,i,a,s,u,c,l,h,f,p,m,d]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,i])},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function a(){return i(1,1)}function s(){return i(-1,-1)}function u(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const l=a(),h=s(),f=u(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:l,UNIT_X:f,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:s,ones:a,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,h,"Un",0,l])},51850(t,n,e){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function i(t,n,e){return[t,n,e]}function a(t,n,e){return[t,n,e]}function s(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function u(){return i(1,1,1)}function c(){return i(1,0,0)}function l(){return i(0,1,0)}function h(){return i(0,0,1)}e.d(n,{CN:()=>a,ci:()=>s,fA:()=>i,o8:()=>o,vt:()=>r});const f=[0,0,0],p=u(),m=c(),d=l(),M=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:m,UNIT_Y:d,UNIT_Z:M,ZEROS:f,clone:o,create:r,freeze:a,fromArray:s,fromValues:i,ones:u,unitX:c,unitY:l,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Cb",0,M,"Cw",0,m,"JP",0,d,"Un",0,p,"uY",0,f])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(){return o(1,1,1,1)}function a(){return o(1,0,0,0)}function s(){return o(0,1,0,0)}function u(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const l=[0,0,0,0],h=i(),f=a(),p=s(),m=u(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:d,UNIT_X:f,UNIT_Y:p,UNIT_Z:m,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitW:c,unitX:a,unitY:s,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,h,"uY",0,l])},58083(t,n,e){e.d(n,{$0:()=>g,$h:()=>R,B8:()=>l,C:()=>i,D_:()=>s,N9:()=>x,O7:()=>B,Qw:()=>c,Tl:()=>f,X_:()=>w,e$:()=>m,eL:()=>d,hM:()=>y,hZ:()=>a,hs:()=>p,kN:()=>M,l:()=>A,lw:()=>h,mg:()=>u,o1:()=>S,sC:()=>_,t2:()=>T,t5:()=>P,tZ:()=>C,ut:()=>X});var r=e(51850),o=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function a(t,n,e,r,o,i,a,s,u,c,l,h,f,p,m,d,M){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t[9]=l,t[10]=h,t[11]=f,t[12]=p,t[13]=m,t[14]=d,t[15]=M,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,n){if(t===n){const e=n[1],r=n[2],o=n[3],i=n[6],a=n[7],s=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=i,t[11]=n[14],t[12]=o,t[13]=a,t[14]=s}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){return l(t,n)||s(t),t}function l(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],s=n[5],u=n[6],c=n[7],l=n[8],h=n[9],f=n[10],p=n[11],m=n[12],d=n[13],M=n[14],g=n[15],y=e*s-r*a,x=e*u-o*a,b=e*c-i*a,v=r*u-o*s,_=r*c-i*s,w=o*c-i*u,A=l*d-h*m,S=l*M-f*m,B=l*g-p*m,R=h*M-f*d,P=h*g-p*d,O=f*g-p*M;let T=y*O-x*P+b*R+v*B-_*S+w*A;return T?(T=1/T,t[0]=(s*O-u*P+c*R)*T,t[1]=(o*P-r*O-i*R)*T,t[2]=(d*w-M*_+g*v)*T,t[3]=(f*_-h*w-p*v)*T,t[4]=(u*B-a*O-c*S)*T,t[5]=(e*O-o*B+i*S)*T,t[6]=(M*b-m*w-g*x)*T,t[7]=(l*w-f*b+p*x)*T,t[8]=(a*P-s*B+c*A)*T,t[9]=(r*B-e*P-i*A)*T,t[10]=(m*_-d*b+g*y)*T,t[11]=(h*b-l*_-p*y)*T,t[12]=(s*S-a*R-u*A)*T,t[13]=(e*R-r*S+o*A)*T,t[14]=(d*x-m*v-M*y)*T,t[15]=(l*v-h*x+f*y)*T,t):null}function h(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],u=n[5],c=n[6],l=n[7],h=n[8],f=n[9],p=n[10],m=n[11],d=n[12],M=n[13],g=n[14],y=n[15];let x=e[0],b=e[1],v=e[2],_=e[3];return t[0]=x*r+b*s+v*h+_*d,t[1]=x*o+b*u+v*f+_*M,t[2]=x*i+b*c+v*p+_*g,t[3]=x*a+b*l+v*m+_*y,x=e[4],b=e[5],v=e[6],_=e[7],t[4]=x*r+b*s+v*h+_*d,t[5]=x*o+b*u+v*f+_*M,t[6]=x*i+b*c+v*p+_*g,t[7]=x*a+b*l+v*m+_*y,x=e[8],b=e[9],v=e[10],_=e[11],t[8]=x*r+b*s+v*h+_*d,t[9]=x*o+b*u+v*f+_*M,t[10]=x*i+b*c+v*p+_*g,t[11]=x*a+b*l+v*m+_*y,x=e[12],b=e[13],v=e[14],_=e[15],t[12]=x*r+b*s+v*h+_*d,t[13]=x*o+b*u+v*f+_*M,t[14]=x*i+b*c+v*p+_*g,t[15]=x*a+b*l+v*m+_*y,t}function f(t,n,e){const r=e[0],o=e[1],i=e[2];if(n===t)t[12]=n[0]*r+n[4]*o+n[8]*i+n[12],t[13]=n[1]*r+n[5]*o+n[9]*i+n[13],t[14]=n[2]*r+n[6]*o+n[10]*i+n[14],t[15]=n[3]*r+n[7]*o+n[11]*i+n[15];else{const e=n[0],a=n[1],s=n[2],u=n[3],c=n[4],l=n[5],h=n[6],f=n[7],p=n[8],m=n[9],d=n[10],M=n[11];t[0]=e,t[1]=a,t[2]=s,t[3]=u,t[4]=c,t[5]=l,t[6]=h,t[7]=f,t[8]=p,t[9]=m,t[10]=d,t[11]=M,t[12]=e*r+c*o+p*i+n[12],t[13]=a*r+l*o+m*i+n[13],t[14]=s*r+h*o+d*i+n[14],t[15]=u*r+f*o+M*i+n[15]}return t}function p(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*i,t[9]=n[9]*i,t[10]=n[10]*i,t[11]=n[11]*i,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function m(t,n,e,r){let a=r[0],s=r[1],u=r[2],c=Math.sqrt(a*a+s*s+u*u);if(c<=(0,o.FD)())return void i(t,n);c=1/c,a*=c,s*=c,u*=c;const l=Math.sin(e),h=Math.cos(e),f=1-h,p=n[0],m=n[1],d=n[2],M=n[3],g=n[4],y=n[5],x=n[6],b=n[7],v=n[8],_=n[9],w=n[10],A=n[11],S=a*a*f+h,B=s*a*f+u*l,R=u*a*f-s*l,P=a*s*f-u*l,O=s*s*f+h,T=u*s*f+a*l,X=a*u*f+s*l,C=s*u*f-a*l,Y=u*u*f+h;t[0]=p*S+g*B+v*R,t[1]=m*S+y*B+_*R,t[2]=d*S+x*B+w*R,t[3]=M*S+b*B+A*R,t[4]=p*P+g*O+v*T,t[5]=m*P+y*O+_*T,t[6]=d*P+x*O+w*T,t[7]=M*P+b*O+A*T,t[8]=p*X+g*C+v*Y,t[9]=m*X+y*C+_*Y,t[10]=d*X+x*C+w*Y,t[11]=M*X+b*C+A*Y,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function d(t,n,e){const r=Math.sin(e),o=Math.cos(e),i=n[4],a=n[5],s=n[6],u=n[7],c=n[8],l=n[9],h=n[10],f=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=i*o+c*r,t[5]=a*o+l*r,t[6]=s*o+h*r,t[7]=u*o+f*r,t[8]=c*o-i*r,t[9]=l*o-a*r,t[10]=h*o-s*r,t[11]=f*o-u*r,t}function M(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function g(t,n,e){if(0===n)return s(t);let r=e[0],i=e[1],a=e[2],u=Math.sqrt(r*r+i*i+a*a);if(u<=(0,o.FD)())return null;u=1/u,r*=u,i*=u,a*=u;const c=Math.sin(n),l=Math.cos(n),h=1-l;return t[0]=r*r*h+l,t[1]=i*r*h+a*c,t[2]=a*r*h-i*c,t[3]=0,t[4]=r*i*h-a*c,t[5]=i*i*h+l,t[6]=a*i*h+r*c,t[7]=0,t[8]=r*a*h+i*c,t[9]=i*a*h-r*c,t[10]=a*a*h+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function x(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],s=r+r,u=o+o,c=i+i,l=r*s,h=r*u,f=r*c,p=o*u,m=o*c,d=i*c,M=a*s,g=a*u,y=a*c;return t[0]=1-(p+d),t[1]=h+y,t[2]=f-g,t[3]=0,t[4]=h-y,t[5]=1-(l+d),t[6]=m+M,t[7]=0,t[8]=f+g,t[9]=m-M,t[10]=1-(l+p),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const v=(0,r.vt)();function _(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function w(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],s=n[6],u=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(e*e+r*r+o*o),t[1]=Math.sqrt(i*i+a*a+s*s),t[2]=Math.sqrt(u*u+c*c+l*l),t}function A(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function S(t,n,e,r){const o=n[0],i=n[1],a=n[2],s=n[3],u=o+o,c=i+i,l=a+a,h=o*u,f=o*c,p=o*l,m=i*c,d=i*l,M=a*l,g=s*u,y=s*c,x=s*l,b=r[0],v=r[1],_=r[2];return t[0]=(1-(m+M))*b,t[1]=(f+x)*b,t[2]=(p-y)*b,t[3]=0,t[4]=(f-x)*v,t[5]=(1-(h+M))*v,t[6]=(d+g)*v,t[7]=0,t[8]=(p+y)*_,t[9]=(d-g)*_,t[10]=(1-(h+m))*_,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function B(t,n,e,r,o){const i=n[0],a=n[1],s=n[2],u=n[3],c=i+i,l=a+a,h=s+s,f=i*c,p=i*l,m=i*h,d=a*l,M=a*h,g=s*h,y=u*c,x=u*l,b=u*h,v=r[0],_=r[1],w=r[2],A=o[0],S=o[1],B=o[2],R=(1-(d+g))*v,P=(p+b)*v,O=(m-x)*v,T=(p-b)*_,X=(1-(f+g))*_,C=(M+y)*_,Y=(m+x)*w,q=(M-y)*w,N=(1-(f+d))*w;return t[0]=R,t[1]=P,t[2]=O,t[3]=0,t[4]=T,t[5]=X,t[6]=C,t[7]=0,t[8]=Y,t[9]=q,t[10]=N,t[11]=0,t[12]=e[0]+A-(R*A+T*S+Y*B),t[13]=e[1]+S-(P*A+X*S+q*B),t[14]=e[2]+B-(O*A+C*S+N*B),t[15]=1,t}function R(t,n,e,r,o,i,a){const s=1/(e-n),u=1/(o-r),c=1/(i-a);return t[0]=2*i*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*u,t[6]=0,t[7]=0,t[8]=(e+n)*s,t[9]=(o+r)*u,t[10]=(a+i)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*i*2*c,t[15]=0,t}function P(t,n,e,r){const i=n[0],a=n[1],u=n[2];let c=i-e[0],l=a-e[1],h=u-e[2];const f=(0,o.FD)();if(Math.abs(c)<f&&Math.abs(l)<f&&Math.abs(h)<f)return void s(t);let p=1/Math.sqrt(c*c+l*l+h*h);c*=p,l*=p,h*=p;const m=r[0],d=r[1],M=r[2];let g=d*h-M*l,y=M*c-m*h,x=m*l-d*c;p=Math.sqrt(g*g+y*y+x*x),p?(p=1/p,g*=p,y*=p,x*=p):(g=0,y=0,x=0);let b=l*x-h*y,v=h*g-c*x,_=c*y-l*g;p=Math.sqrt(b*b+v*v+_*_),p?(p=1/p,b*=p,v*=p,_*=p):(b=0,v=0,_=0),t[0]=g,t[1]=b,t[2]=c,t[3]=0,t[4]=y,t[5]=v,t[6]=l,t[7]=0,t[8]=x,t[9]=_,t[10]=h,t[11]=0,t[12]=-(g*i+y*a+x*u),t[13]=-(b*i+v*a+_*u),t[14]=-(c*i+l*a+h*u),t[15]=1}function O(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function T(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function X(t){const n=(0,o.FD)(),e=t[0],r=t[1],i=t[2],a=t[4],s=t[5],u=t[6],c=t[8],l=t[9],h=t[10];return Math.abs(1-(e*e+a*a+c*c))<=n&&Math.abs(1-(r*r+s*s+l*l))<=n&&Math.abs(1-(i*i+u*u+h*h))<=n}function C(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const Y=h,q=O;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],s=n[5],u=n[6],c=n[7],l=n[8],h=n[9],f=n[10],p=n[11],m=n[12],d=n[13],M=n[14],g=n[15];return t[0]=s*(f*g-p*M)-h*(u*g-c*M)+d*(u*p-c*f),t[1]=-(r*(f*g-p*M)-h*(o*g-i*M)+d*(o*p-i*f)),t[2]=r*(u*g-c*M)-s*(o*g-i*M)+d*(o*c-i*u),t[3]=-(r*(u*p-c*f)-s*(o*p-i*f)+h*(o*c-i*u)),t[4]=-(a*(f*g-p*M)-l*(u*g-c*M)+m*(u*p-c*f)),t[5]=e*(f*g-p*M)-l*(o*g-i*M)+m*(o*p-i*f),t[6]=-(e*(u*g-c*M)-a*(o*g-i*M)+m*(o*c-i*u)),t[7]=e*(u*p-c*f)-a*(o*p-i*f)+l*(o*c-i*u),t[8]=a*(h*g-p*d)-l*(s*g-c*d)+m*(s*p-c*h),t[9]=-(e*(h*g-p*d)-l*(r*g-i*d)+m*(r*p-i*h)),t[10]=e*(s*g-c*d)-a*(r*g-i*d)+m*(r*c-i*s),t[11]=-(e*(s*p-c*h)-a*(r*p-i*h)+l*(r*c-i*s)),t[12]=-(a*(h*M-f*d)-l*(s*M-u*d)+m*(s*f-u*h)),t[13]=e*(h*M-f*d)-l*(r*M-o*d)+m*(r*f-o*h),t[14]=-(e*(s*M-u*d)-a*(r*M-o*d)+m*(r*u-o*s)),t[15]=e*(s*f-u*h)-a*(r*f-o*h)+l*(r*u-o*s),t},copy:i,determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],s=t[6],u=t[7],c=t[8],l=t[9],h=t[10],f=t[11],p=t[12],m=t[13],d=t[14],M=t[15];return(n*a-e*i)*(h*M-f*d)-(n*s-r*i)*(l*M-f*m)+(n*u-o*i)*(l*d-h*m)+(e*s-r*a)*(c*M-f*p)-(e*u-o*a)*(c*d-h*p)+(r*u-o*s)*(c*m-l*p)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],h=t[8],f=t[9],p=t[10],m=t[11],d=t[12],M=t[13],g=t[14],y=t[15],x=n[0],b=n[1],v=n[2],_=n[3],w=n[4],A=n[5],S=n[6],B=n[7],R=n[8],P=n[9],O=n[10],T=n[11],X=n[12],C=n[13],Y=n[14],q=n[15],N=(0,o.FD)();return Math.abs(e-x)<=N*Math.max(1,Math.abs(e),Math.abs(x))&&Math.abs(r-b)<=N*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-v)<=N*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(a-_)<=N*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(s-w)<=N*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(u-A)<=N*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(c-S)<=N*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(l-B)<=N*Math.max(1,Math.abs(l),Math.abs(B))&&Math.abs(h-R)<=N*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(f-P)<=N*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(p-O)<=N*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(m-T)<=N*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(d-X)<=N*Math.max(1,Math.abs(d),Math.abs(X))&&Math.abs(M-C)<=N*Math.max(1,Math.abs(M),Math.abs(C))&&Math.abs(g-Y)<=N*Math.max(1,Math.abs(g),Math.abs(Y))&&Math.abs(y-q)<=N*Math.max(1,Math.abs(y),Math.abs(q))},exactEquals:T,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,s=r+r,u=o+o,c=e*a,l=r*a,h=r*s,f=o*a,p=o*s,m=o*u,d=i*a,M=i*s,g=i*u;return t[0]=1-h-m,t[1]=l+g,t[2]=f-M,t[3]=0,t[4]=l-g,t[5]=1-c-m,t[6]=p+d,t[7]=0,t[8]=f+M,t[9]=p-d,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=v,r=-n[0],o=-n[1],i=-n[2],a=n[3],s=n[4],u=n[5],c=n[6],l=n[7],h=r*r+o*o+i*i+a*a;return h>0?(e[0]=2*(s*a+l*r+u*i-c*o)/h,e[1]=2*(u*a+l*o+c*r-s*i)/h,e[2]=2*(c*a+l*i+s*o-u*r)/h):(e[0]=2*(s*a+l*r+u*i-c*o),e[1]=2*(u*a+l*o+c*r-s*i),e[2]=2*(c*a+l*i+s*o-u*r)),b(t,n,e),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:B,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:M,fromXRotation:y,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:x,frustum:R,getRotation:A,getScale:w,getTranslation:_,hasIdentityRotation:C,identity:s,invert:l,invertOrIdentity:c,isOrthoNormal:X,lookAt:P,mul:Y,multiply:h,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:function(t,n,e,r,o,i,a){const s=1/(n-e),u=1/(r-o),c=1/(i-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*s,t[13]=(o+r)*u,t[14]=(a+i)*c,t[15]=1,t},perspective:function(t,n,e,r,o){const i=1/Math.tan(n/2);let a;return t[0]=i/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(a=1/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const o=Math.tan(n.upDegrees*Math.PI/180),i=Math.tan(n.downDegrees*Math.PI/180),a=Math.tan(n.leftDegrees*Math.PI/180),s=Math.tan(n.rightDegrees*Math.PI/180),u=2/(a+s),c=2/(o+i);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(o-i)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:m,rotateX:d,rotateY:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),i=n[0],a=n[1],s=n[2],u=n[3],c=n[8],l=n[9],h=n[10],f=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*o-c*r,t[1]=a*o-l*r,t[2]=s*o-h*r,t[3]=u*o-f*r,t[8]=i*r+c*o,t[9]=a*r+l*o,t[10]=s*r+h*o,t[11]=u*r+f*o,t},rotateZ:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),i=n[0],a=n[1],s=n[2],u=n[3],c=n[4],l=n[5],h=n[6],f=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*o+c*r,t[1]=a*o+l*r,t[2]=s*o+h*r,t[3]=u*o+f*r,t[4]=c*o-i*r,t[5]=l*o-a*r,t[6]=h*o-s*r,t[7]=f*o-u*r,t},scale:p,set:a,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:q,subtract:O,targetTo:function(t,n,e,r){const o=n[0],i=n[1],a=n[2],s=r[0],u=r[1],c=r[2];let l=o-e[0],h=i-e[1],f=a-e[2],p=l*l+h*h+f*f;p>0&&(p=1/Math.sqrt(p),l*=p,h*=p,f*=p);let m=u*f-c*h,d=c*l-s*f,M=s*h-u*l;return p=m*m+d*d+M*M,p>0&&(p=1/Math.sqrt(p),m*=p,d*=p,M*=p),t[0]=m,t[1]=d,t[2]=M,t[3]=0,t[4]=h*M-f*d,t[5]=f*m-l*M,t[6]=l*d-h*m,t[7]=0,t[8]=l,t[9]=h,t[10]=f,t[11]=0,t[12]=o,t[13]=i,t[14]=a,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>S,Bw:()=>i,C:()=>a,Cc:()=>B,DI:()=>_,Io:()=>y,Ln:()=>g,Om:()=>A,Qr:()=>h,Re:()=>c,S8:()=>w,T9:()=>d,WQ:()=>u,Z0:()=>R,_S:()=>p,aI:()=>q,ei:()=>P,fw:()=>T,gL:()=>O,hG:()=>x,hZ:()=>s,hs:()=>M,jk:()=>m,lw:()=>l,m3:()=>b,oW:()=>N,t2:()=>Y,tn:()=>f,ze:()=>v});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function l(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function h(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function p(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function d(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function M(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function g(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function x(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function b(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function _(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function w(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function A(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2];return t[0]=o*u-i*s,t[1]=i*a-r*u,t[2]=r*s-o*a,t}function B(t,n,e,r){const o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function R(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function P(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function O(t,n,e){return T(t,n,e[0],e[1],e[2],e[3])}function T(t,n,e,r,o,i){const a=n[0],s=n[1],u=n[2],c=r*u-o*s,l=o*a-e*u,h=e*s-r*a,f=r*h-o*l,p=o*c-e*h,m=e*l-r*c,d=2*i;return t[0]=a+c*d+2*f,t[1]=s+l*d+2*p,t[2]=u+h*d+2*m,t}const X=(0,r.vt)(),C=(0,r.vt)();function Y(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function q(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=n[0],s=n[1],u=n[2],c=(0,o.FD)();return Math.abs(e-a)<=c*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-u)<=c*Math.max(1,Math.abs(i),Math.abs(u))}function N(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const I=c,j=l,E=h,Z=y,z=x,k=i,F=b;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,n){w(X,t),w(C,n);const e=A(X,C);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,i){const a=1-i,s=a*a,u=i*i,c=s*a,l=3*i*s,h=3*u*a,f=u*i;return t[0]=n[0]*c+e[0]*l+r[0]*h+o[0]*f,t[1]=n[1]*c+e[1]*l+r[1]*h+o[1]*f,t[2]=n[2]*c+e[2]*l+r[2]*h+o[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2],c=o*u-i*s,l=i*a-r*u,h=r*s-o*a,f=Math.sqrt(c*c+l*l+h*h);return t[0]=c/f,t[1]=l/f,t[2]=h/f,t},direction:N,dist:Z,distance:y,div:E,divide:h,dot:A,equals:q,exactEquals:Y,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,i){const a=i*i,s=a*(2*i-3)+1,u=a*(i-2)+i,c=a*(i-1),l=a*(3-2*i);return t[0]=n[0]*s+e[0]*u+r[0]*c+o[0]*l,t[1]=n[1]*s+e[1]*u+r[1]*c+o[1]*l,t[2]=n[2]*s+e[2]*u+r[2]*c+o[2]*l,t},inverse:_,len:k,length:i,lerp:B,max:d,min:m,mul:j,multiply:l,negate:v,normalize:w,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,a=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:M,scaleAndAdd:g,scaleTo:function(t,n){return M(t,t,n/k(t))},set:s,sign:p,sqrDist:z,sqrLen:F,squaredDistance:x,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:I,subtract:c,transformMat3:P,transformMat4:R,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:O,transformQuatValues:T},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,k,"jb",0,I,"lo",0,z,"uE",0,F])},78955(t,n,e){e.d(n,{Bw:()=>M,C:()=>o,Cc:()=>b,LI:()=>f,Om:()=>x,S8:()=>y,T9:()=>h,WQ:()=>a,Z0:()=>v,aI:()=>w,hG:()=>d,hZ:()=>i,hs:()=>p,jk:()=>l,m3:()=>g,t2:()=>_});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function u(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function l(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function h(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function f(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function m(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+i*i)}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+o*o+i*i}function M(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function g(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function y(t,n){const e=n[0],r=n[1],o=n[2],i=n[3];let a=e*e+r*r+o*o+i*i;return a>0&&(a=1/Math.sqrt(a),t[0]=e*a,t[1]=r*a,t[2]=o*a,t[3]=i*a),t}function x(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function b(t,n,e,r){const o=n[0],i=n[1],a=n[2],s=n[3];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t[3]=s+r*(e[3]-s),t}function v(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*o+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*o+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*o+e[11]*i+e[15]*a,t}function _(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function w(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],s=n[0],u=n[1],c=n[2],l=n[3],h=(0,r.FD)();return Math.abs(e-s)<=h*Math.max(1,Math.abs(e),Math.abs(s))&&Math.abs(o-u)<=h*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(i-c)<=h*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-l)<=h*Math.max(1,Math.abs(a),Math.abs(l))}const A=s,S=u,B=c,R=m,P=d,O=M,T=g;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:R,distance:m,div:B,divide:c,dot:x,equals:w,exactEquals:_,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:O,length:M,lerp:b,max:h,min:l,mul:S,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:y,random:function(t,n=1){const e=r.Ov;let o,i,a,s,u,c;do{o=2*e()-1,i=2*e()-1,u=o*o+i*i}while(u>=1);do{a=2*e()-1,s=2*e()-1,c=a*a+s*s}while(c>=1);const l=Math.sqrt((1-u)/c);return t[0]=n*o,t[1]=n*i,t[2]=n*a*l,t[3]=n*s*l,t},round:f,scale:p,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:i,sqrDist:P,sqrLen:T,squaredDistance:d,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:s,transformMat4:v,transformQuat:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],u=e[2],c=e[3],l=c*r+s*i-u*o,h=c*o+u*r-a*i,f=c*i+a*o-s*r,p=-a*r-s*o-u*i;return t[0]=l*c+p*-a+h*-u-f*-s,t[1]=h*c+p*-s+f*-a-l*-u,t[2]=f*c+p*-u+l*-s-h*-a,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},75503(t,n,e){e.d(n,{wq:()=>s});var r=e(4576),o=e(21818),i=(e(44208),e(15142)),a=e(11006);class s{constructor(t=9,n){this._compareMinX=f,this._compareMinY=p,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),v.prune(),_.prune(),w.prune(),A.prune()}all(t){u(this._data,t)}search(t,n){let e=this._data;const r=this._toBBox;if(x(t,e))for(v.clear();e;){for(let o=0,i=e.children.length;o<i;o++){const i=e.children[o],a=e.leaf?r(i):i;x(t,a)&&(e.leaf?n(i):y(t,a)?u(i,n):v.push(i))}e=v.pop()}}collides(t){let n=this._data;const e=this._toBBox;if(!x(t,n))return!1;for(v.clear();n;){for(let r=0,o=n.children.length;r<o;r++){const o=n.children[r],i=n.leaf?e(o):o;if(x(t,i)){if(n.leaf||y(t,i))return!0;v.push(o)}}n=v.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let n=0,e=t.length;n<e;n++)this.insert(t[n]);return this}let n=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===n.height)this._splitRoot(this._data,n);else{if(this._data.height<n.height){const t=this._data;this._data=n,n=t}this._insert(n,this._data.height-n.height-1,!0)}else this._data=n;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new R([]),this}remove(t){if(!t)return this;let n,e=this._data,i=null,a=0,s=!1;const u=this._toBBox(t);for(w.clear(),A.clear();e||w.length>0;){if(e||(e=w.pop(),i=w.data[w.length-1],a=A.pop()??0,s=!0),e.leaf&&(n=(0,r.qh)(e.children,(0,o.z)(t),e.children.length,e.indexHint),-1!==n))return e.children.splice(n,1),w.push(e),this._condense(w),this;s||e.leaf||!y(e,u)?i?(a++,e=i.children[a],s=!1):e=null:(w.push(e),A.push(a),a=0,i=e,e=e.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,n,e,r){const o=e-n+1;let i=this._maxEntries;if(o<=i){const r=new R(t.slice(n,e+1));return c(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const a=new P([]);a.height=r;const s=Math.ceil(o/i),u=s*Math.ceil(Math.sqrt(i));b(t,n,e,u,this._compareMinX);for(let o=n;o<=e;o+=u){const n=Math.min(o+u-1,e);b(t,o,n,s,this._compareMinY);for(let e=o;e<=n;e+=s){const o=Math.min(e+s-1,n);a.children.push(this._build(t,e,o,r-1))}}return c(a,this._toBBox),a}_insert(t,n,e){const r=this._toBBox,o=e?t:r(t);w.clear();const i=function(t,n,e,r){for(;r.push(n),!0!==n.leaf&&r.length-1!==e;){let e,r=1/0,o=1/0;for(let i=0,a=n.children.length;i<a;i++){const a=n.children[i],s=m(a),u=M(t,a)-s;u<o?(o=u,r=s<r?s:r,e=a):u===o&&s<r&&(r=s,e=a)}n=e||n.children[0]}return n}(o,this._data,n,w);for(i.children.push(t),h(i,o);n>=0&&w.data[n].children.length>this._maxEntries;)this._split(w,n),n--;!function(t,n,e){for(let r=e;r>=0;r--)h(n.data[r],t)}(o,w,n)}_split(t,n){const e=t.data[n],r=e.children.length,o=this._minEntries;this._chooseSplitAxis(e,o,r);const i=this._chooseSplitIndex(e,o,r);if(!i)return;const a=e.children.splice(i,e.children.length-i),s=e.leaf?new R(a):new P(a);s.height=e.height,c(e,this._toBBox),c(s,this._toBBox),n?t.data[n-1].children.push(s):this._splitRoot(e,s)}_splitRoot(t,n){this._data=new P([t,n]),this._data.height=t.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(t,n,e){let r,o,i;r=o=1/0;for(let a=n;a<=e-n;a++){const n=l(t,0,a,this._toBBox),s=l(t,a,e,this._toBBox),u=g(n,s),c=m(n)+m(s);u<r?(r=u,i=a,o=c<o?c:o):u===r&&c<o&&(o=c,i=a)}return i}_chooseSplitAxis(t,n,e){const r=t.leaf?this._compareMinX:f,o=t.leaf?this._compareMinY:p;this._allDistMargin(t,n,e,r)<this._allDistMargin(t,n,e,o)&&t.children.sort(r)}_allDistMargin(t,n,e,r){t.children.sort(r);const o=this._toBBox,i=l(t,0,n,o),a=l(t,e-n,e,o);let s=d(i)+d(a);for(let r=n;r<e-n;r++){const n=t.children[r];h(i,t.leaf?o(n):n),s+=d(i)}for(let r=e-n-1;r>=n;r--){const n=t.children[r];h(a,t.leaf?o(n):n),s+=d(a)}return s}_condense(t){for(let n=t.length-1;n>=0;n--){const e=t.data[n];if(0===e.children.length)if(n>0){const o=t.data[n-1],i=o.children;i.splice((0,r.qh)(i,e,i.length,o.indexHint),1)}else this.clear();else c(e,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function u(t,n){let e=t;for(_.clear();e;){if(!0===e.leaf)for(const t of e.children)n((0,o.z)(t));else _.pushArray(e.children);e=_.pop()??null}}function c(t,n){l(t,0,t.children.length,n,t)}function l(t,n,e,r,o){o||(o=new R([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,a=n;a<e;a++)i=t.children[a],h(o,t.leaf?r(i):i);return o}function h(t,n){t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY)}function f(t,n){return t.minX-n.minX}function p(t,n){return t.minY-n.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function M(t,n){return(Math.max(n.maxX,t.maxX)-Math.min(n.minX,t.minX))*(Math.max(n.maxY,t.maxY)-Math.min(n.minY,t.minY))}function g(t,n){const e=Math.max(t.minX,n.minX),r=Math.max(t.minY,n.minY),o=Math.min(t.maxX,n.maxX),i=Math.min(t.maxY,n.maxY);return Math.max(0,o-e)*Math.max(0,i-r)}function y(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function x(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function b(t,n,e,r,o){const i=[n,e];for(;i.length;){const n=i.pop(),e=i.pop();if(n-e<=r)continue;const s=e+Math.ceil((n-e)/r/2)*r;(0,a.q)(t,s,e,n,o),i.push(e,s,s,n)}}const v=new i.A,_=new i.A,w=new i.A,A=new i.A({deallocator:void 0});class S{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends S{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class R extends B{constructor(t){super(),this.children=t,this.leaf=!0}}class P extends B{constructor(t){super(),this.children=t,this.leaf=!1}}},48526(t,n,e){e.d(n,{A:()=>M});var r,o=e(32198),i=e(4576),a=e(4718),s=e(91429),u=e(5443),c=e(91075),l=e(86738),h=e(16930),f=e(90634),p=e(47610),m=e(56993),d=e(43937);let M=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:n,hasM:e,hasZ:r,spatialReference:o}=t;switch(n??=[],n?.at(0)?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return o??=h.A.WGS84,{...t,hasM:e,hasZ:r,points:n,spatialReference:o}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new u.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,n){n.points=(0,a.o8)(this.points)}clone(){const{points:t,spatialReference:n,hasM:e,hasZ:o}=this;return new r({points:(0,a.o8)(t),spatialReference:n.clone(),hasM:e,hasZ:o})}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;return null!=n==(null!=e)&&!(null!=n&&null!=e&&!n.equals(e))&&(0,i.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,m.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(e.z=n[2],r=3),this.hasM&&(e.m=n[r]),new l.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new l.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,m.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,o.Cg)([(0,s.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,o.Cg)([(0,s.MZ)({readOnly:!0})],M.prototype,"extent",null),(0,o.Cg)([(0,s.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],M.prototype,"points",void 0),(0,o.Cg)([(0,d.K)("points")],M.prototype,"writePoints",null),M=r=(0,o.Cg)([(0,s.$K)("esri.geometry.Multipoint")],M),M.prototype.toJSON.isDefaultToJSON=!0},82799(t,n,e){e.d(n,{A:()=>m});var r,o=e(32198),i=e(4718),a=e(91429),s=e(5443),u=e(91075),c=e(86738),l=e(16930),h=e(90634),f=e(56993),p=e(43937);let m=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:r,spatialReference:o}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return o??=l.A.WGS84,{...t,hasM:e,hasZ:r,paths:n,spatialReference:o}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,n){n.curvePaths=(0,i.o8)(t)}get extent(){const t=(0,h.Z3)(this),{spatialReference:n}=this;return t?new s.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,i.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,i.o8)(this.paths),t.curvePaths=(0,i.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],r=this.hasZ,o=this.hasM;return r&&!o?new c.A(e[0],e[1],e[2],void 0,this.spatialReference):o&&!r?new c.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&o?new c.A(e[0],e[1],e[2],e[3],this.spatialReference):new c.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new c.A(t,e));return this.notifyChange("paths"),r}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const r=this.paths[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,o.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,o.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,o.Cg)([(0,p.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,o.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,o.Cg)([(0,p.K)("paths")],m.prototype,"writePaths",null),m=r=(0,o.Cg)([(0,a.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},48353(t,n,e){e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function a(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),a=Math.cos(n),s=e;return s[0]=-r,s[4]=-i*o,s[8]=a*o,s[12]=0,s[1]=o,s[5]=-i*r,s[9]=a*r,s[13]=0,s[2]=0,s[6]=a,s[10]=i,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=e(49208),u=e(21325);function c(t,n,e,r){const i=(0,s.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,m=i.dest.spatialReferenceId;if(c===m&&!l(m)&&(0!==c||(0,u.aI)(t,r)))return(0,o.kN)(e,n),!0;if(l(m)){const t=s.w5[c][10],r=s.w5[10][m];return null!=t&&null!=r&&(t(n,0,f,0),r(f,0,p,0),a(h*f[0],h*f[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const d=l(c);if((3===m||11===m||2===m||5===m)&&(2===c||d||3===c||5===c)){const t=s.w5[c][10],r=s.w5[10][m];return null!=t&&null!=r&&(t(n,0,f,0),r(f,0,p,0),d?function(t,n,e){a(t,n,e),(0,o.mg)(e,e)}(h*f[0],h*f[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function l(t){return 1===t||6===t||8===t||4===t}const h=(0,r.kU)(1),f=(0,i.vt)(),p=(0,i.vt)()},65806(t,n,e){e.d(n,{g:()=>a});var r=e(51850),o=e(99917),i=e(9762);function a(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e))return s[0]=t.x,s[1]=t.y,s[2]=t.z??0,(0,i.projectBuffer)(s,t.spatialReference,0,n,e,0);const a=(0,o.tryProject)(t,e,r);return!!a&&(n[0]=a.x,n[1]=a.y,n[2]=a.z??0,!0)}const s=(0,r.vt)()},95696(t,n,e){e.d(n,{A:()=>c});var r,o=e(32198),i=e(69540),a=e(25482),s=e(91429),u=e(93223);let c=class extends((0,i.OU)(a.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o.Cg)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o.Cg)([(0,s.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,n,e){e.d(n,{A:()=>c});var r=e(32198),o=e(69540),i=e(25482),a=e(91429),s=e(51850),u=e(93223);let c=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.type="local",this.origin=(0,s.vt)()}};(0,r.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,a.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},72727(t,n,e){function r(t,n,e){if(n<=0)return 0;const r=t-e;return r<0?0:Math.floor(r/n)+1}e.d(n,{k:()=>r}),e(53966)},60408(t,n,e){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function o(t){return void 0!==t.points}function i(t){return void 0!==t.x&&void 0!==t.y}function a(t){return void 0!==t.paths||void 0!==t.curvePaths}function s(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?i(t)?"esriGeometryPoint":a(t)?"esriGeometryPolyline":s(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":o(t)?"esriGeometryMultipoint":null:null}function l(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function h(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}e.d(n,{$B:()=>c,Bi:()=>s,Pv:()=>l,Rg:()=>a,U9:()=>o,W0:()=>h,ZC:()=>r,fT:()=>i,uW:()=>u})},38419(t,n,e){e.r(n),e.d(n,{default:()=>s});var r=e(44208),o=e(75503),i=e(95696),a=e(72258);class s{async createIndex(t,n){const e=new Array;if(!t.vertexAttributes?.position)return new o.wq;const r=function(t){const{vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o}=t,s=(0,a.UR)({vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o},i.A.absolute,{allowBufferReuse:!0})?.position;return s?!t.components||t.components.some(t=>!t.faces)?{position:s.buffer}:{position:s.buffer,components:t.components.map(t=>t.faces)}:null}(t),s=null!=n?await n.invoke("createIndexThread",r,{transferList:e}):this.createIndexThread(r).result;return u().fromJSON(s)}createIndexThread(t){const n=u();if(!t)return{result:n.toJSON()};const e=new Float64Array(t.position);return t.components?function(t,n,e){let r=0;for(const t of e)r+=t.length/3;const o=new Array(r);let i=0;for(const t of e)for(let e=0;e<t.length;e+=3)o[i++]=c(n,3*t[e],3*t[e+1],3*t[e+2]);return t.load(o),{result:t.toJSON()}}(n,e,t.components.map(t=>new Uint32Array(t))):function(t,n){const e=new Array(n.length/9);let r=0;for(let t=0;t<n.length;t+=9)e[r++]=c(n,t,t+3,t+6);return t.load(e),{result:t.toJSON()}}(n,e)}}function u(){return new o.wq(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function c(t,n,e,r){return{minX:Math.min(t[n],t[e],t[r]),maxX:Math.max(t[n],t[e],t[r]),minY:Math.min(t[n+1],t[e+1],t[r+1]),maxY:Math.max(t[n+1],t[e+1],t[r+1]),p0:[t[n],t[n+1],t[n+2]],p1:[t[e],t[e+1],t[e+2]],p2:[t[r],t[r+1],t[r+2]]}}},22141(t,n,e){e.d(n,{$5:()=>_,CN:()=>y,KM:()=>A,Mv:()=>B,X4:()=>x,gr:()=>v,qs:()=>w,si:()=>b,xA:()=>S});var r=e(34727),o=e(77690),i=e(29242),a=e(58083),s=e(9093),u=e(35522),c=e(51850),l=e(73941),h=e(48353),f=e(9762),p=(e(79258),e(21325)),m=e(28735),d=e(13030),M=e(73354),g=e(50867);function y(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function x(t,n,e,r,o,i){return P(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function b(t,n,e,r,o,i){return P(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function v(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function _(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function w(t,n,e){return(0,o.Ge)(C,e),(0,M.b)(n,t,C),(0,r.or)(C)&&(0,M.n)(n,n),n}function A(t,n,e){return(0,o.z0)(C,e),(0,g.t)(n,t,C),(0,r.or)(C)&&(0,M.n)(n,n,4),n}function S(t,n,e,r,o,i){if(!P(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function B(t,n,e,r,o,i){if(!P(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function R(t,n,e,r,i){switch((0,h.l)(r,e,X,r),1===t&&(0,a.B8)(X,X),n){case 0:return(0,o.Ge)(i,X);case 1:return(0,o.z0)(i,X)}}function P(t,n,e,r,o,i,a,s){if(!n)return;const c=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,l.q8)(t)||(0,l.KQ)(t)}(o))for(let r=0;r<c;r++)i.getVec(r,O),n.getVec(r,T),(0,u.ei)(T,T,R(t,e,O,a,C)),s.setVec(r,T);else for(let o=0;o<c;o++){i.getVec(o,O),n.getVec(o,T);const c=(0,m.jg)(r.get(o,1));let l=Math.cos(c);1===e!=(0===t)&&(l=1/l),R(t,e,O,a,C),0===t?(C[0]*=l,C[1]*=l,C[2]*=l,C[3]*=l,C[4]*=l,C[5]*=l):(C[0]*=l,C[3]*=l,C[6]*=l,C[1]*=l,C[4]*=l,C[7]*=l),(0,u.ei)(T,T,C),(0,u.S8)(T,T),s.setVec(o,T)}return s}const O=(0,c.vt)(),T=(0,c.vt)(),X=(0,s.vt)(),C=(0,i.vt)();e.d(n,["JP",0,"Projection may be possible after calling projection.load()."])},72258(t,n,e){e.d(n,{UR:()=>v,p5:()=>b,xK:()=>R});var r=e(53966),o=e(34727),i=e(86211),a=e(77690),s=e(29242),u=e(58083),c=e(9093),l=e(35522),h=e(51850),f=e(73941),p=e(98764),m=e(48353),d=e(65806),M=e(27615),g=e(73354),y=e(22141);const x=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function b(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,l.Re)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:a}=e,s=C;if(!(0,m.l)(r,a,s,o))return!1;const c=(0,u.B8)(C,s);return null!=c&&((0,l.Z0)(t,i,c),!0)}function v(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,s=(0,M.Hq)(r)?o:null,h=S(t.spatialReference,e,3);if((0,M.yJ)(r,n)&&(!s||(0,u.t2)(s.localMatrix,c.zK))&&B(h)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=_(n,i);if(!(0,m.l)(n,r,P,a))return(0,y.CN)(x(),n,a),null;if(e&&(0,u.lw)(P,P,e.localMatrix),!(0,m.l)(n,o,O,a))return(0,y.CN)(x(),a,n),null;(0,u.B8)(O,O);const s=(0,u.lw)(P,O,P);return A(s,n,i,3),w(t,s)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const a=_(t,i);if(!(0,m.l)(t,r,P,a))return(0,y.CN)(x(),t,a),null;e&&(0,u.lw)(P,P,e.localMatrix),A(P,t,i,1);const s=new Float64Array(n.position.length),c=function(t,n,e,r,o){(0,g.t)(r,t,n);const i=new Float64Array(t.length);return(0,y.$5)(r,o,i,e)?i:((0,y.CN)(x(),o,e),null)}(n.position,P,t,s,a);if(!c)return null;const h=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,y.qs)(o,a,i),(0,y.si)(a,t,n,e,r,a)?a:((0,y.CN)(x(),r,n),null)}(c,t,s,a,n.normal,P);if(n.normal&&!h)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,y.KM)(o,a,i),(0,y.Mv)(a,t,n,e,r,a)?a:((0,y.CN)(x(),r,n),null)}(c,t,s,a,n.tangent,P);if(n.tangent&&!f)return null;if(o){const t=(0,l.ze)(X,o);(0,g.a)(c,c,t)}return{position:c,normal:h,tangent:f}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const s=_(n,i);if(!(0,m.l)(n,o,P,s))return(0,y.CN)(x(),n,s),null;const c=1/S(n,i,2);(0,u.hs)(P,P,[c,c,c]);const l=(0,u.B8)(O,P),{position:h,normal:f,tangent:p}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,g.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=w(t,e.localMatrix);return(0,g.a)(r.position,r.position,n),r}(t,r,e),d=new Float64Array(h.length),M=function(t,n,e,r,o){const i=(0,y.gr)(t,n,r,o);if(!i)return(0,y.CN)(x(),n,o),null;const a=new Float64Array(i.length);return(0,g.t)(a,i,e),a}(h,n,l,d,s);if(!M)return null;const b=(0,a.Ge)(T,l),v=function(t,n,e,r,o,i,a){if(null==t)return null;const s=a??new Float32Array(t.length);return(0,y.X4)(t,n,e,r,o,s)?((0,g.b)(s,s,i),s):((0,y.CN)(x(),e,o),null)}(f,h,n,d,s,b,f!==t.normal?f:void 0);if(!v&&f)return null;const A=function(t,n,e,r,o,i,a){if(null==t)return null;const s=a??new Float32Array(t.length);return(0,y.xA)(t,n,e,r,o,s)?((0,g.b)(s,s,i,4),s):((0,y.CN)(x(),e,o),null)}(p,h,n,d,s,b,p!==t.tangent?p:void 0);return!A&&p?null:{position:M,normal:v,tangent:A}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const a=S(e,i,3),s=r||!B(a)?(0,u.C)(P,n?.localMatrix??c.zK):null;s&&A(s,e,i,3);const{position:h,normal:f,tangent:p}=s?w(t,s):t,m=i?.allowBufferReuse,d=m?h:new Float64Array(h.length);let M=h;if(r&&(M=(0,g.a)(d,M,r)),o){const t=(0,l.ze)(X,o);M=(0,g.a)(d,M,t)}return{position:M!==t.position||m?M:M.slice(),normal:f!==t.normal||m?f:f?.slice(),tangent:p!==t.tangent||m?p:p?.slice()}}(t,t.vertexSpace,n.origin,e)}}function _(t,n){return n?.useEllipsoid&&(0,f.B3)(t)?p.Y0:(0,p.lO)(t)}function w(t,n){const e=new Float64Array(t.position.length);(0,g.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,y.qs)(t.normal,r,n),o&&t.tangent&&(0,y.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function A(t,n,e,r){const o=S(n,e,r);B(o)||(0,u.hs)(t,t,[o,o,o])}function S(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,a=n?.targetUnit;if(!i&&!a)return 1;let s=R(i,t);r||!i||B(s)||(x().warn("source unit conversion not supported"),s=1);let u=1/R(a,t);return o||!a||B(u)||(x().warn("target unit conversion not supported"),u=1),s*u}function B(t){return(0,o.Io)(t,1)}function R(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const P=(0,c.vt)(),O=(0,c.vt)(),T=(0,s.vt)(),X=(0,h.vt)(),C=(0,c.vt)()},27615(t,n,e){e.d(n,{CK:()=>u,Hq:()=>s,MW:()=>c,TE:()=>l,yJ:()=>h});var r=e(35522),o=e(86738),i=e(95696),a=e(18251);function s(t){return null!=t.origin}function u(t){return s(t.vertexSpace)}function c(t,n){if(!s(t))return null;const[e,r,i]=t.origin;return new o.A({x:e,y:r,z:i,spatialReference:n})}function l(t,n){const{x:e,y:r,z:o,spatialReference:s}=t,u=[e,r,o??0];return"local"===(n?.vertexSpace??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(s))?new a.A({origin:u}):new i.A({origin:u})}function h(t,n){return t.type===n.type&&(t.origin===n.origin||null!=t.origin&&null!=n.origin&&(0,r.t2)(t.origin,n.origin))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4508,8846],{73354(t,n,e){e.d(n,{a:()=>f,b:()=>l,c:()=>o,d:()=>u,e:()=>g,f:()=>s,l:()=>c,n:()=>p,t:()=>i}),e(44208);var r=e(72727);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[4],p=e[5],y=e[6],d=e[8],m=e[9],h=e[10],v=e[12],A=e[13],w=e[14];let M=0,x=0;for(let e=0;e<a;e++){const e=n[M],r=n[M+1],u=n[M+2];t[x]=c*e+g*r+d*u+v,t[x+1]=s*e+p*r+m*u+A,t[x+2]=f*e+y*r+h*u+w,M+=i,x+=o}return t}function u(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l),c=e[0],s=e[1],f=e[2],g=e[3],p=e[4],y=e[5],d=e[6],m=e[7],h=e[8];let v=0,A=0;for(let e=0;e<a;e++){const e=n[v],r=n[v+1],u=n[v+2];t[A]=c*e+g*r+d*u,t[A+1]=s*e+p*r+m*u,t[A+2]=f*e+y*r+h*u,v+=i,A+=o}}function a(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let u=0,l=0;for(let a=0;a<i;a++)t[l]=e*n[u],t[l+1]=e*n[u+1],t[l+2]=e*n[u+2],u+=o,l+=r;return t}function c(t,n,e,r){s(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,r,o=3,i=o){const u=Math.min(t.length/o,n.length/i);let l=0,a=0;const c=1/2.2;for(let s=0;s<u;s++)t[a]=r*(e*n[l])**c,t[a+1]=r*(e*n[l+1])**c,t[a+2]=r*(e*n[l+2])**c,l+=i,a+=o}function f(t,n,e,o=3,i=o){const u=(0,r.k)(t.length,o,3),l=(0,r.k)(n.length,i,3),a=Math.min(u,l);let c=0,s=0;for(let r=0;r<a;r++)t[s]=n[c]+e[0],t[s+1]=n[c+1]+e[1],t[s+2]=n[c+2]+e[2],c+=i,s+=o;return t}function g(t,n){p(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function p(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,u=0;for(let l=0;l<o;l++){const o=n[i],l=n[i+1],a=n[i+2],c=o*o+l*l+a*a;if(c>0){const n=1/Math.sqrt(c);t[u]=n*o,t[u+1]=n*l,t[u+2]=n*a}i+=r,u+=e}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:s,linearToSRGBView:c,normalize:p,normalizeView:g,scale:a,scaleView:function(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,u=n.typedBuffer,l=n.typedBufferStride;let a=0,c=0;for(let t=0;t<r;t++)o[c]=u[a]>>e,o[c+1]=u[a+1]>>e,o[c+2]=u[a+2]>>e,a+=l,c+=i},transformMat3:l,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function u(){return i(1,1)}function l(){return i(-1,-1)}function a(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const s=u(),f=l(),g=a(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,UNIT_X:g,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:l,ones:u,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,f,"Un",0,s])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function l(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=i(),g=u(),p=l(),y=a(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:d,UNIT_X:g,UNIT_Y:p,UNIT_Z:y,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitW:c,unitX:u,unitY:l,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,f,"uY",0,s])},48353(t,n,e){e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function u(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),u=Math.cos(n),l=e;return l[0]=-r,l[4]=-i*o,l[8]=u*o,l[12]=0,l[1]=o,l[5]=-i*r,l[9]=u*r,l[13]=0,l[2]=0,l[6]=u,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=e(49208),a=e(21325);function c(t,n,e,r){const i=(0,l.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,y=i.dest.spatialReferenceId;if(c===y&&!s(y)&&(0!==c||(0,a.aI)(t,r)))return(0,o.kN)(e,n),!0;if(s(y)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),u(f*g[0],f*g[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const d=s(c);if((3===y||11===y||2===y||5===y)&&(2===c||d||3===c||5===c)){const t=l.w5[c][10],r=l.w5[10][y];return null!=t&&null!=r&&(t(n,0,g,0),r(g,0,p,0),d?function(t,n,e){u(t,n,e),(0,o.mg)(e,e)}(f*g[0],f*g[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function s(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),g=(0,i.vt)(),p=(0,i.vt)()},65806(t,n,e){e.d(n,{g:()=>u});var r=e(51850),o=e(99917),i=e(9762);function u(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e))return l[0]=t.x,l[1]=t.y,l[2]=t.z??0,(0,i.projectBuffer)(l,t.spatialReference,0,n,e,0);const u=(0,o.tryProject)(t,e,r);return!!u&&(n[0]=u.x,n[1]=u.y,n[2]=u.z??0,!0)}const l=(0,r.vt)()},1193(t,n,e){e.r(n),e.d(n,{default:()=>f});var r,o=e(32198),i=e(69540),u=e(25482),l=e(4718),a=e(53966),c=e(91429),s=e(31199);let f=r=class extends((0,i.OU)(u.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,s.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,s.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){const t={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"color",void 0),(0,o.Cg)([(0,c.wg)("color")],f.prototype,"castColor",null),(0,o.Cg)([(0,c.MZ)({nonNullable:!0,json:{write:s.B}})],f.prototype,"position",void 0),(0,o.Cg)([(0,c.wg)("position")],f.prototype,"castPosition",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"uv",void 0),(0,o.Cg)([(0,c.wg)("uv")],f.prototype,"castUv",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"normal",void 0),(0,o.Cg)([(0,c.wg)("normal")],f.prototype,"castNormal",null),(0,o.Cg)([(0,c.MZ)({json:{write:s.B}})],f.prototype,"tangent",void 0),(0,o.Cg)([(0,c.wg)("tangent")],f.prototype,"castTangent",null),f=r=(0,o.Cg)([(0,c.$K)("esri.geometry.support.MeshVertexAttributes")],f)},72727(t,n,e){function r(t,n,e){if(n<=0)return 0;const r=t-e;return r<0?0:Math.floor(r/n)+1}e.d(n,{k:()=>r}),e(53966)},31199(t,n,e){function r(t,n,e,r){const{loggerTag:o,stride:i}=n;return t.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new e([])):t}function o(t,n,e,o,i){if(!t)return t;if(t instanceof n)return r(t,o,n,i);for(const u of e)if(t instanceof u)return r(new n(t),o,n,i);if(Array.isArray(t))return r(new n(t),o,n,i);{const r=e.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new n([])}}function i(t,n,e){n[e]=function(t){const n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e];return n}(t)}e.d(n,{B:()=>i,b:()=>o})},28846(t,n,e){e.d(n,{convertMeshVertexSpace:()=>c});var r=e(49186),o=e(4718),i=e(17676),u=e(1193),l=e(66895),a=e(72258);async function c(t,n,e){await Promise.resolve(),(0,i.Te)(e);const c=(0,a.UR)(t,n,{useEllipsoid:e?.useEllipsoid});if(!c)throw new r.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,l.Lz)(void 0,{vertexAttributes:new u.default({...c,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),vertexSpace:n,transform:null}))}},66895(t,n,e){e.d(n,{$N:()=>s,Lz:()=>i,QN:()=>f,WO:()=>a,hz:()=>l,o2:()=>o});const r=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&r in t?t[r]:void 0}function i(t,n){const e=o(t);return{...t,[r]:{...e,...n}}}const u=Symbol("meshMaterialContext");function l(t){return t&&"object"==typeof t&&u in t?t[u]:void 0}function a(t){const n=l(t);if(n?.materialMap)return t;const e={materialMap:new Map};return{...t,[u]:e}}const c=Symbol("meshTextureContext");function s(t){return t&&"object"==typeof t&&c in t?t[c]:void 0}function f(t){const n=s(t);if(n?.textureMap)return t;const e={textureMap:new Map};return{...t,[c]:e}}},22141(t,n,e){e.d(n,{$5:()=>x,CN:()=>v,KM:()=>B,Mv:()=>T,X4:()=>A,gr:()=>M,qs:()=>b,si:()=>w,xA:()=>S});var r=e(34727),o=e(77690),i=e(29242),u=e(58083),l=e(9093),a=e(35522),c=e(51850),s=e(73941),f=e(48353),g=e(9762),p=(e(79258),e(21325)),y=e(28735),d=e(13030),m=e(73354),h=e(50867);function v(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function A(t,n,e,r,o,i){return F(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function w(t,n,e,r,o,i){return F(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function M(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function x(t,n,e,r){return(0,g.projectBuffer)(t,n,0,e,r,0)?e:null}function b(t,n,e){return(0,o.Ge)(R,e),(0,m.b)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n),n}function B(t,n,e){return(0,o.z0)(R,e),(0,h.t)(n,t,R),(0,r.or)(R)&&(0,m.n)(n,n,4),n}function S(t,n,e,r,o,i){if(!F(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function T(t,n,e,r,o,i){if(!F(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function C(t,n,e,r,i){switch((0,f.l)(r,e,j,r),1===t&&(0,u.B8)(j,j),n){case 0:return(0,o.Ge)(i,j);case 1:return(0,o.z0)(i,j)}}function F(t,n,e,r,o,i,u,l){if(!n)return;const c=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,s.q8)(t)||(0,s.KQ)(t)}(o))for(let r=0;r<c;r++)i.getVec(r,N),n.getVec(r,_),(0,a.ei)(_,_,C(t,e,N,u,R)),l.setVec(r,_);else for(let o=0;o<c;o++){i.getVec(o,N),n.getVec(o,_);const c=(0,y.jg)(r.get(o,1));let s=Math.cos(c);1===e!=(0===t)&&(s=1/s),C(t,e,N,u,R),0===t?(R[0]*=s,R[1]*=s,R[2]*=s,R[3]*=s,R[4]*=s,R[5]*=s):(R[0]*=s,R[3]*=s,R[6]*=s,R[1]*=s,R[4]*=s,R[7]*=s),(0,a.ei)(_,_,R),(0,a.S8)(_,_),l.setVec(o,_)}return l}const N=(0,c.vt)(),_=(0,c.vt)(),j=(0,l.vt)(),R=(0,i.vt)();e.d(n,["JP",0,"Projection may be possible after calling projection.load()."])},72258(t,n,e){e.d(n,{UR:()=>M,p5:()=>w,xK:()=>C});var r=e(53966),o=e(34727),i=e(86211),u=e(77690),l=e(29242),a=e(58083),c=e(9093),s=e(35522),f=e(51850),g=e(73941),p=e(98764),y=e(48353),d=e(65806),m=e(27615),h=e(73354),v=e(22141);const A=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function w(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,s.Re)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:u}=e,l=R;if(!(0,y.l)(r,u,l,o))return!1;const c=(0,a.B8)(R,l);return null!=c&&((0,s.Z0)(t,i,c),!0)}function M(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,l=(0,m.Hq)(r)?o:null,f=S(t.spatialReference,e,3);if((0,m.yJ)(r,n)&&(!l||(0,a.t2)(l.localMatrix,c.zK))&&T(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const u=x(n,i);if(!(0,y.l)(n,r,F,u))return(0,v.CN)(A(),n,u),null;if(e&&(0,a.lw)(F,F,e.localMatrix),!(0,y.l)(n,o,N,u))return(0,v.CN)(A(),u,n),null;(0,a.B8)(N,N);const l=(0,a.lw)(F,N,F);return B(l,n,i,3),b(t,l)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const u=x(t,i);if(!(0,y.l)(t,r,F,u))return(0,v.CN)(A(),t,u),null;e&&(0,a.lw)(F,F,e.localMatrix),B(F,t,i,1);const l=new Float64Array(n.position.length),c=function(t,n,e,r,o){(0,h.t)(r,t,n);const i=new Float64Array(t.length);return(0,v.$5)(r,o,i,e)?i:((0,v.CN)(A(),o,e),null)}(n.position,F,t,l,u);if(!c)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.qs)(o,u,i),(0,v.si)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.normal,F);if(n.normal&&!f)return null;const g=function(t,n,e,r,o,i){if(null==o)return null;const u=new Float32Array(o.length);return(0,v.KM)(o,u,i),(0,v.Mv)(u,t,n,e,r,u)?u:((0,v.CN)(A(),r,n),null)}(c,t,l,u,n.tangent,F);if(n.tangent&&!g)return null;if(o){const t=(0,s.ze)(j,o);(0,h.a)(c,c,t)}return{position:c,normal:f,tangent:g}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const l=x(n,i);if(!(0,y.l)(n,o,F,l))return(0,v.CN)(A(),n,l),null;const c=1/S(n,i,2);(0,a.hs)(F,F,[c,c,c]);const s=(0,a.B8)(N,F),{position:f,normal:g,tangent:p}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,h.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=b(t,e.localMatrix);return(0,h.a)(r.position,r.position,n),r}(t,r,e),d=new Float64Array(f.length),m=function(t,n,e,r,o){const i=(0,v.gr)(t,n,r,o);if(!i)return(0,v.CN)(A(),n,o),null;const u=new Float64Array(i.length);return(0,h.t)(u,i,e),u}(f,n,s,d,l);if(!m)return null;const w=(0,u.Ge)(_,s),M=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.X4)(t,n,e,r,o,l)?((0,h.b)(l,l,i),l):((0,v.CN)(A(),e,o),null)}(g,f,n,d,l,w,g!==t.normal?g:void 0);if(!M&&g)return null;const B=function(t,n,e,r,o,i,u){if(null==t)return null;const l=u??new Float32Array(t.length);return(0,v.xA)(t,n,e,r,o,l)?((0,h.b)(l,l,i,4),l):((0,v.CN)(A(),e,o),null)}(p,f,n,d,l,w,p!==t.tangent?p:void 0);return!B&&p?null:{position:m,normal:M,tangent:B}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const u=S(e,i,3),l=r||!T(u)?(0,a.C)(F,n?.localMatrix??c.zK):null;l&&B(l,e,i,3);const{position:f,normal:g,tangent:p}=l?b(t,l):t,y=i?.allowBufferReuse,d=y?f:new Float64Array(f.length);let m=f;if(r&&(m=(0,h.a)(d,m,r)),o){const t=(0,s.ze)(j,o);m=(0,h.a)(d,m,t)}return{position:m!==t.position||y?m:m.slice(),normal:g!==t.normal||y?g:g?.slice(),tangent:p!==t.tangent||y?p:p?.slice()}}(t,t.vertexSpace,n.origin,e)}}function x(t,n){return n?.useEllipsoid&&(0,g.B3)(t)?p.Y0:(0,p.lO)(t)}function b(t,n){const e=new Float64Array(t.position.length);(0,h.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,v.qs)(t.normal,r,n),o&&t.tangent&&(0,v.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function B(t,n,e,r){const o=S(n,e,r);T(o)||(0,a.hs)(t,t,[o,o,o])}function S(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,u=n?.targetUnit;if(!i&&!u)return 1;let l=C(i,t);r||!i||T(l)||(A().warn("source unit conversion not supported"),l=1);let a=1/C(u,t);return o||!u||T(a)||(A().warn("target unit conversion not supported"),a=1),l*a}function T(t){return(0,o.Io)(t,1)}function C(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const F=(0,c.vt)(),N=(0,c.vt)(),_=(0,l.vt)(),j=(0,f.vt)(),R=(0,c.vt)()}}]);
|