@arcgis/core 5.2.0-next.93 → 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/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/functions/portal.js +2 -0
- package/arcade/treeAnalysis.js +1 -1
- 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/0be98adfef79fc5036f0.js +1 -0
- 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/{5d9c92c4e60a4696fdad.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/5168bd8ab6233dc9c32a.js +1 -0
- package/assets/esri/core/workers/chunks/{cd02a6078443b8f63927.js → 5b8591486f33627f5389.js} +1 -1
- package/assets/esri/core/workers/chunks/5d6733dcee9c2ef00072.js +1 -0
- 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/{aed7b80145b22c246098.js → 6cbc30b31f0bb39c73ca.js} +1 -1
- package/assets/esri/core/workers/chunks/6cc03ef97d7731153b9a.js +1 -0
- 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/7ddb5800777fbecee3a8.js +1 -0
- package/assets/esri/core/workers/chunks/7eae9053065d3d38e54e.js +1 -0
- 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/909ee7d2a0eec773037a.js +1 -0
- 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/a0eb882a5a81d25b9153.js +1 -0
- 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/{6fd0d9431b141f2a3252.js → cefb70d633c220cbedf9.js} +1 -1
- package/assets/esri/core/workers/chunks/{69c9a12c97ead8963817.js → d1304d414b1fa725168a.js} +1 -1
- package/assets/esri/core/workers/chunks/d453627894e6e5b02023.js +1 -0
- package/assets/esri/core/workers/chunks/e4380706b629729f2212.js +1 -0
- 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/ea1877ce00da3b585a30.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/assets/esri/core/workers/chunks/f5867d8ba73c67ac27d2.js +1 -0
- package/assets/esri/core/workers/chunks/{b7ed5f130661e9ca00b9.js → f5a058a0ce006bce2a2a.js} +1 -1
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/chunks/{GlowBlur.glsl.js → BlurEmission.glsl.js} +3 -3
- package/chunks/EmissionComposite.glsl.js +3 -3
- package/chunks/Fog.glsl.js +8 -6
- package/chunks/RibbonLine.glsl.js +52 -52
- package/chunks/bundle.js +1 -1
- package/chunks/portal.js +2 -0
- 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/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/support/AnnotationFeatureSublayer.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/package.json +3 -3
- package/rest/imageService/fetchRasterInfo.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/types.d.ts +2 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
- package/views/2d/layers/AnnotationFeatureLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/2d/layers/graphics/GraphicContainer.js +1 -1
- package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
- package/views/3d/environment/CloudyWeather.js +1 -1
- package/views/3d/environment/SunnyWeather.js +1 -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/GaussianSplatSortWorker.js +1 -1
- package/views/3d/support/buffer/InterleavedLayout.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/terrain/TileCompositor.js +1 -1
- package/views/3d/webgl/RenderCamera.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -5
- package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- 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/effects/shadowAccumulation/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
- 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/MainFramebuffer.js +1 -1
- package/views/3d/webgl-engine/lib/RenderContext.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/RenderingContext.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/views/popupAdapter.js +1 -1
- package/assets/esri/core/workers/chunks/0846855843f85661e974.js +0 -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/30376f00cda1165a2504.js +0 -1
- package/assets/esri/core/workers/chunks/349b0c7febc46267441d.js +0 -1684
- package/assets/esri/core/workers/chunks/423c2692df662b3dddd4.js +0 -1
- package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +0 -1
- package/assets/esri/core/workers/chunks/4bf7c0c874d30b1c0760.js +0 -1
- package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +0 -1
- package/assets/esri/core/workers/chunks/7253a439c98200e3e748.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/848a9f0e5373bbf289a5.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/b2e2234fdf8e05bc3312.js +0 -1
- package/assets/esri/core/workers/chunks/bb23e670736bcace8b6f.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/ec69dd546c312ba97110.js +0 -1
- package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +0 -1
- package/assets/esri/core/workers/chunks/f4d351b4cd9d1aa10632.js +0 -1
- package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +0 -1
- package/chunks/GlowComposite.glsl.js +0 -37
- 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/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 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2733],{88930(e,t,r){r.d(t,{S1:()=>o,lL:()=>u,mi:()=>l,rb:()=>d,t:()=>p});var n=r(97770),i=(r(98623),r(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,r,s="system"){if("unknown"===r)return e;const a=new i.oh((0,n.wj)(s)),o=i.c9.fromJSDate(e,{zone:a}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),i=p(t,r,"milliseconds");return new Date(n+i)}function u(e,t,r="system"){const{unit:s}=t,a=Math.max(1,Math.trunc(t.value)),o=new i.oh((0,n.wj)(r)),l=i.c9.fromJSDate(e,{zone:o}),u=e=>e-e%a;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function d(e){const t=s.exec(e);if(!t)return null;const{hh:r,mm:n,ss:i,ms:o}=t.groups;return Number(r)*a.hours+Number(n)*a.minutes+Number(i||0)*a.seconds+Number(o||0)}function p(e,t,r){return 0===e?0:e*a[t]/a[r]}},4146(e,t,r){r.d(t,{A:()=>v});var n=r(32198),i=r(11254),s=r(49186),a=r(65529),o=r(4902),l=r(92474),u=r(53966),d=r(17676),p=r(84952),c=r(91429),y=r(5443),m=r(16930),h=r(92602),f=r(79677);let g=0,v=class extends((0,a.Zt)((0,o.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([r.e(9917),r.e(812),r.e(8559)]).then(r.bind(r,45613));try{return await n(t)}catch(e){const r=t?.portalItem,n=r?.id||"unset",i=r?.portal?.url||h.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,d.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,c.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,n.Cg)([(0,c.MZ)({type:y.A})],v.prototype,"fullExtent",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n.Cg)([(0,c.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n.Cg)([(0,c.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,c.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,c.MZ)({type:String})],v.prototype,"title",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)()],v.prototype,"url",void 0),(0,n.Cg)([(0,c.MZ)({type:f.A})],v.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n.Cg)([(0,c.$K)("esri.layers.Layer")],v)},7656(e,t,r){r.r(t),r.d(t,{default:()=>q});var n=r(32198),i=r(11254),s=r(7762),a=r(49186),o=r(81583),l=r(34727),u=r(25728),d=r(17676),p=r(91429),c=r(56507),y=r(35666),m=r(5443),h=r(83960),f=r(21325),g=r(4146),v=r(52136),b=r(98534),w=r(18768),S=r(63074),C=r(69208),M=r(34287),x=r(8303),I=r(54310),T=r(25036),A=r(91921),Z=r(82935),O=r(10873),E=r(69622),D=r(39516);function L(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var j=r(63389);const N={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let P=class extends E.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=L(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,j.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(N[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=L(this.floors,t),n=(0,D.mA)(r,t.definitionExpression);return null!=n&&(e[t.id]=n),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,n=t=>{t.visible&&(0===r||(0,h.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(n):e.unshift(t))};t?.forEach(n);const i=this._get("visibleSublayers");return!i||i.length!==e.length||i.some((t,r)=>e[r]!==t)?e:i}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"dynamicLayers",null),(0,n.Cg)([(0,p.MZ)()],P.prototype,"floors",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"hasDynamicLayers",null),(0,n.Cg)([(0,p.MZ)()],P.prototype,"layer",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"layers",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"layerDefs",null),(0,n.Cg)([(0,p.MZ)({type:Number})],P.prototype,"scale",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"version",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"visibleSublayers",null),P=(0,n.Cg)([(0,p.$K)("esri.layers.support.ExportImageParameters")],P);var F=r(33446),k=r(15775),U=r(91908),J=r(88625),_=r(79677),R=r(56400),V=r(36005),$=r(43937);let B=class extends((0,S.dM)((0,Z.e)((0,T.j)((0,A.I)((0,b.V)((0,w.b)((0,M.q)((0,x.A)((0,u.M)((0,I.J)((0,v.p)((0,C.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new P({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new J.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,n)=>{const{save:i,saveAs:s}=await r.e(390).then(r.bind(r,10390));switch(e){case 0:return i(this,t);case 1:return s(this,n,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,n){if(!this.loaded||!e)return;const i=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const a=(0,y.aB)(n.origin);let o;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===a){const e=this.createSublayersForOrigin("service").sublayers;s=(0,j.Zx)(i,e,2)}else if(a>3){const e=this.createSublayersForOrigin("portal-item");s=(0,j.Zx)(i,e.sublayers,(0,y.aB)(e.origin)),o=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...n,minimumWritableOrigin:o};let d=s||this.hasVisibleLayersForOrigin(a);i.forEach(e=>{const t=e.write({},u);l.push(t),d=d||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),d&&(t.visibleLayers=i.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,n){const i=n?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=n?.floors??null,this._exportImageParameters.scale=n?.scale??(0,h.X_)({extent:e,width:t})*i;const s=this._exportImageParameters.toJSON(),a=!n?.rotation||this.version<10.3?{}:{rotation:-n.rotation},o=e?.spatialReference,u=(0,f.YX)(o);let d=this._exportImageParameters.scale/(0,h.X_)({extent:e,width:t});d=(0,l.Sp)(d,i)?i:d,s.dpi*=d;const p={};if(n?.timeExtent){const{start:e,end:t}=n.timeExtent.toJSON();p.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(p.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:u,imageSR:u,size:t+","+r,mapScale:this._exportImageParameters.scale,...s,...a,...p}}async fetchImage(e,t,r,n){const{data:i}=await this._fetchImage("image",e,t,r,n);return i}async fetchImageBitmap(e,t,r,n){const{data:i,url:s}=await this._fetchImage("blob",e,t,r,n);return(0,F.mn)(i,s,n)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,i.A)(this.url,t),{extent:n,fullExtent:s,timeExtent:a}=r,o=n||s;return{fullExtent:o&&m.A.fromJSON(o),timeExtent:a&&_.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,o.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,U.D)(this,e)}async _fetchImage(e,t,r,n,s){const o={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,n,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=o.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:o.query});try{const{data:e}=await(0,i.A)(l,o);return{data:e,url:l}}catch(e){if((0,d.zf)(e))throw e;throw new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,i.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,n.Cg)([(0,p.MZ)((0,R.P6)("dateFieldsTimeReference"))],B.prototype,"dateFieldsTimeZone",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],B.prototype,"datesInUnknownTimezone",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"dpi",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"gdbVersion",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"imageFormat",void 0),(0,n.Cg)([(0,V.w)("imageFormat",["supportedImageFormatTypes"])],B.prototype,"readImageFormat",null),(0,n.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],B.prototype,"imageMaxHeight",void 0),(0,n.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],B.prototype,"imageMaxWidth",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"imageTransparency",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],B.prototype,"isReference",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],B.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,p.MZ)({type:["ArcGISMapServiceLayer"]})],B.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],B.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)((0,R.P6)("preferredTimeReference"))],B.prototype,"preferredTimeZone",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,p.MZ)({type:s.A.ofType(k.A),json:{write:{ignoreOrigin:!0}}})],B.prototype,"sublayers",void 0),(0,n.Cg)([(0,$.K)("sublayers",{layers:{type:[k.A]},visibleLayers:{type:[c.jz]}})],B.prototype,"writeSublayers",null),(0,n.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],B.prototype,"listMode",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],B.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)(O.OZ)],B.prototype,"url",void 0),B=(0,n.Cg)([(0,p.$K)("esri.layers.MapImageLayer")],B);const q=B},82935(e,t,r){var n=r(32198),i=r(91429),s=r(89317),a=r(30524),o=r(96184),l=r(73133),u=r(79677),d=r(10184),p=r(36005);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}};r.d(t,["B",0,c,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=l.j.fromJSON(r.timeOffsetUnits);return n&&i?new d.A({value:n,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,n.Cg)([(0,i.MZ)({type:d.A})],r.prototype,"timeOffset",void 0),(0,n.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,n.Cg)([(0,i.MZ)({value:null,type:o.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,n.Cg)([(0,i.MZ)(c)],r.prototype,"useViewTime",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},96184(e,t,r){r.d(t,{A:()=>y});var n=r(32198),i=r(69540),s=r(25482),a=r(91429),o=r(79677),l=r(10184),u=r(56400),d=r(36005),p=r(43937);function c(e,t){return l.A.fromJSON({value:e,unit:t})}let y=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?o.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?c(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?c(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,n.Cg)([(0,a.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,d.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,p.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,a.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,n.Cg)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,n.Cg)([(0,p.K)("interval")],y.prototype,"writeInterval",null),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,n.Cg)([(0,a.MZ)((0,u.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,n.Cg)([(0,a.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,n.Cg)([(0,a.$K)("esri.layers.support.TimeInfo")],y)},77548(e,t,r){r.d(t,{Gh:()=>D,tk:()=>T,BR:()=>I,p2:()=>M,qd:()=>A,wI:()=>x,G$:()=>O,$x:()=>Z,Ov:()=>b,cM:()=>c,UC:()=>y,Qz:()=>m,OP:()=>E,TU:()=>v,F2:()=>h,XX:()=>g,Qi:()=>w,jy:()=>S});var n=r(70333),i=r(11254),s=r(7762),a=(r(84952),r(36563)),o=r(36708),l=r(4146);const u=new WeakMap;function d(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,o.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||d(t))},t=>u.set(e,t),o.pc),(0,a.hA)(()=>u.delete(e))]),u.get(e))}function p(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function c(e){return p(e,"knowledge-graph")&&"layers"in e}function y(e){return p(e,"knowledge-graph-sublayer")}function m(e){return p(e,"link-chart")&&"layers"in e}function h(e){return p(e,"subtype-group")&&"sublayers"in e}function f(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function b(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function S(e){return function(e){return p(e,"catalog-footprint")}(e)||function(e){return p(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return p(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!S(e))return;const r=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&n?C(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?C(n)?n:null:e}async function x(e,t){const r=n.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const a=`${e.slice(0,s)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,i.A)(a,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function I(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function T(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function A(e){const t=new s.A;for(const r of e.allLayers.concat(e.allTables))d(r)||f(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function O(e){return null}function E(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function D(e,t){if(!t||!E(e))return;const r=(e.url,null);r&&(e.url=r)}},91908(e,t,r){r.d(t,{D:()=>s});var n=r(60694);const i=[];function s(e,t){if((0,n.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of i){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}i.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),i.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),i.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),i.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),i.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},16215(e,t,r){r.d(t,{S:()=>i});const n=Symbol("BasemapInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}r.d(t,["Y",0,n])},79677(e,t,r){r.d(t,{A:()=>p});var n,i=r(32198),s=r(25482),a=r(88930),o=r(91429),l=(r(98623),r(10184)),u=r(36005),d=r(43937);let p=class extends s.o{static{n=this}static get allTime(){return c}static get empty(){return y}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,a.lL)(r,new l.A({value:1,unit:e}),t));let i=this.end;if(i){const r=(0,a.lL)(i,new l.A({value:1,unit:e}),t);i=i.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?n.empty:new n({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const i=new n,{start:s,end:o}=this;return null!=s&&(i.start=(0,a.S1)(s,e,t,r)),null!=o&&(i.end=(0,a.S1)(o,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return c.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i.Cg)([(0,u.w)("end")],p.prototype,"readEnd",null),(0,i.Cg)([(0,d.K)("end")],p.prototype,"writeEnd",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i.Cg)([(0,u.w)("start")],p.prototype,"readStart",null),(0,i.Cg)([(0,d.K)("start")],p.prototype,"writeStart",null),p=n=(0,i.Cg)([(0,o.$K)("esri.time.TimeExtent")],p);const c=new p,y=new p({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>d});var n=r(32198),i=r(69540),s=r(25482),a=r(88930),o=r(91429),l=r(73133),u=r(93223);let d=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,u.e)(l.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,n.Cg)([(0,o.$K)("esri.time.TimeInterval")],d)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2733],{88930(e,t,r){r.d(t,{S1:()=>o,VW:()=>l,lL:()=>u,rb:()=>d,t:()=>p});var n=r(97770),i=(r(98623),r(34747));const s=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,a={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function o(e,t,r,s="system"){if("unknown"===r)return e;const a=new i.oh((0,n.wj)(s)),o=i.c9.fromJSDate(e,{zone:a}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),o.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){const n=e.getTime(),i=p(t,r,"milliseconds");return new Date(n+i)}function u(e,t,r="system"){const{unit:s}=t,a=Math.max(1,Math.trunc(t.value)),o=new i.oh((0,n.wj)(r)),l=i.c9.fromJSDate(e,{zone:o}),u=e=>e-e%a;switch(s){case"milliseconds":return l.startOf("second").plus({millisecond:u(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:u(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:u(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:u(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:u(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:u(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:u(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===s?10:"centuries"===s?100:1)*a,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function d(e){const t=s.exec(e);if(!t)return null;const{hh:r,mm:n,ss:i,ms:o}=t.groups;return Number(r)*a.hours+Number(n)*a.minutes+Number(i||0)*a.seconds+Number(o||0)}function p(e,t,r){return 0===e?0:e*a[t]/a[r]}},4146(e,t,r){r.d(t,{A:()=>v});var n=r(32198),i=r(11254),s=r(49186),a=r(65529),o=r(4902),l=r(92474),u=r(53966),d=r(17676),p=r(84952),c=r(91429),y=r(5443),m=r(16930),h=r(92602),f=r(79677);let g=0,v=class extends((0,a.Zt)((0,o.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:n}=await Promise.all([r.e(9917),r.e(812),r.e(8559)]).then(r.bind(r,45613));try{return await n(t)}catch(e){const r=t?.portalItem,n=r?.id||"unset",i=r?.portal?.url||h.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+n+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,d.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,p.An)(this.url)}createLayerView(e,t){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,n.Cg)([(0,c.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,n.Cg)([(0,c.MZ)({type:y.A})],v.prototype,"fullExtent",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,n.Cg)([(0,c.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,n.Cg)([(0,c.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,n.Cg)([(0,c.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,n.Cg)([(0,c.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,n.Cg)([(0,c.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,c.MZ)({type:String})],v.prototype,"title",void 0),(0,n.Cg)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,n.Cg)([(0,c.MZ)()],v.prototype,"url",void 0),(0,n.Cg)([(0,c.MZ)({type:f.A})],v.prototype,"visibilityTimeExtent",void 0),(0,n.Cg)([(0,c.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,n.Cg)([(0,c.$K)("esri.layers.Layer")],v)},7656(e,t,r){r.r(t),r.d(t,{default:()=>q});var n=r(32198),i=r(11254),s=r(7762),a=r(49186),o=r(81583),l=r(34727),u=r(25728),d=r(17676),p=r(91429),c=r(56507),y=r(35666),m=r(5443),h=r(83960),f=r(21325),g=r(4146),v=r(52136),b=r(98534),w=r(18768),S=r(63074),C=r(69208),M=r(34287),x=r(8303),I=r(54310),T=r(25036),A=r(91921),Z=r(82935),O=r(10873),E=r(69622),D=r(39516);function L(e,t){return"floorInfo"in t&&t.floorInfo?.floorField?function(e,t){if(!e?.length)return null;const r=e.filter(e=>""!==e).map(e=>`'${e}'`);return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}(e,t.floorInfo.floorField):null}var j=r(63389);const N={visible:"visibleSublayers",definitionExpression:"layerDefs",labelingInfo:"hasDynamicLayers",labelsVisible:"hasDynamicLayers",opacity:"hasDynamicLayers",minScale:"visibleSublayers",maxScale:"visibleSublayers",renderer:"hasDynamicLayers",source:"hasDynamicLayers"};let P=class extends E.A{constructor(e){super(e),this.floors=null,this.scale=0}destroy(){this.layer=null}get dynamicLayers(){if(!this.hasDynamicLayers)return null;const e=this.visibleSublayers.map(e=>{const t=L(this.floors,e);return e.toExportImageJSON(t)});return e.length?JSON.stringify(e):null}get hasDynamicLayers(){return this.layer&&(0,j.Sk)(this.visibleSublayers,this.layer.serviceSublayers,this.layer.gdbVersion)}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.allSublayers.on("change",()=>this.notifyChange("visibleSublayers")),e.on("sublayer-update",e=>this.notifyChange(N[e.propertyName]))],"layer"))}get layers(){const e=this.visibleSublayers;return e?e.length?"show:"+e.map(e=>e.id).join(","):"show:-1":null}get layerDefs(){const e=!!this.floors?.length,t=this.visibleSublayers.filter(t=>null!=t.definitionExpression||e&&null!=t.floorInfo);return t.length?JSON.stringify(t.reduce((e,t)=>{const r=L(this.floors,t),n=(0,D.mA)(r,t.definitionExpression);return null!=n&&(e[t.id]=n),e},{})):null}get version(){this.commitProperty("layers"),this.commitProperty("layerDefs"),this.commitProperty("dynamicLayers");const e=this.layer;return e&&(e.commitProperty("dpi"),e.commitProperty("imageFormat"),e.commitProperty("imageTransparency"),e.commitProperty("gdbVersion")),(this._get("version")||0)+1}get visibleSublayers(){const e=[];if(!this.layer)return e;const t=this.layer.sublayers,r=this.scale,n=t=>{t.visible&&(0===r||(0,h.zx)(r,t.minScale,t.maxScale))&&(t.sublayers?t.sublayers.forEach(n):e.unshift(t))};t?.forEach(n);const i=this._get("visibleSublayers");return!i||i.length!==e.length||i.some((t,r)=>e[r]!==t)?e:i}toJSON(){const e=this.layer;let t={dpi:e.dpi,format:e.imageFormat,transparent:e.imageTransparency,gdbVersion:e.gdbVersion||null};return this.hasDynamicLayers&&this.dynamicLayers?t.dynamicLayers=this.dynamicLayers:t={...t,layers:this.layers,layerDefs:this.layerDefs},t}};(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"dynamicLayers",null),(0,n.Cg)([(0,p.MZ)()],P.prototype,"floors",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"hasDynamicLayers",null),(0,n.Cg)([(0,p.MZ)()],P.prototype,"layer",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"layers",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"layerDefs",null),(0,n.Cg)([(0,p.MZ)({type:Number})],P.prototype,"scale",void 0),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"version",null),(0,n.Cg)([(0,p.MZ)({readOnly:!0})],P.prototype,"visibleSublayers",null),P=(0,n.Cg)([(0,p.$K)("esri.layers.support.ExportImageParameters")],P);var F=r(33446),k=r(15775),U=r(91908),J=r(88625),_=r(79677),R=r(56400),V=r(36005),$=r(43937);let B=class extends((0,S.dM)((0,Z.e)((0,T.j)((0,A.I)((0,b.V)((0,w.b)((0,M.q)((0,x.A)((0,u.M)((0,I.J)((0,v.p)((0,C.d)(g.A))))))))))))){constructor(...e){super(...e),this._exportImageParameters=new P({layer:this}),this.dateFieldsTimeZone=null,this.datesInUnknownTimezone=!1,this.dpi=96,this.elevationInfo=new J.A({mode:"on-the-ground"}),this.gdbVersion=null,this.imageFormat="png24",this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.isReference=null,this.labelsVisible=!1,this.operationalLayerType="ArcGISMapServiceLayer",this.preferredTimeZone=null,this.sourceJSON=null,this.sublayers=null,this.type="map-image",this.url=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,n)=>{const{save:i,saveAs:s}=await r.e(390).then(r.bind(r,10390));switch(e){case 0:return i(this,t);case 1:return s(this,n,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}destroy(){this._exportImageParameters.destroy()}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("PNG32")?"png32":"png24"}get loaded(){return super.loaded}get portalItem(){return super.portalItem}set portalItem(e){super.portalItem=e}writeSublayers(e,t,r,n){if(!this.loaded||!e)return;const i=e.slice().reverse().flatten(({sublayers:e})=>e&&e.toArray().reverse()).toArray();let s=!1;const a=(0,y.aB)(n.origin);let o;if(this.capabilities?.operations.supportsExportMap&&this.capabilities?.exportMap?.supportsDynamicLayers)if(3===a){const e=this.createSublayersForOrigin("service").sublayers;s=(0,j.Zx)(i,e,2)}else if(a>3){const e=this.createSublayersForOrigin("portal-item");s=(0,j.Zx)(i,e.sublayers,(0,y.aB)(e.origin)),o=e.originWithPartialOverrides}const l=[],u={writeSublayerStructure:s,...n,minimumWritableOrigin:o};let d=s||this.hasVisibleLayersForOrigin(a);i.forEach(e=>{const t=e.write({},u);l.push(t),d=d||"user"===e.originOf("visible")}),l.some(e=>Object.keys(e).length>1)&&(t.layers=l),d&&(t.visibleLayers=i.filter(e=>e.visible).map(e=>e.id))}createExportImageParameters(e,t,r,n){const i=n?.pixelRatio??1;e&&this.version>=10&&(e=e.clone().shiftCentralMeridian()),this._exportImageParameters.floors=n?.floors??null,this._exportImageParameters.scale=n?.scale??(0,h.X_)({extent:e,width:t})*i;const s=this._exportImageParameters.toJSON(),a=!n?.rotation||this.version<10.3?{}:{rotation:-n.rotation},o=e?.spatialReference,u=(0,f.YX)(o);let d=this._exportImageParameters.scale/(0,h.X_)({extent:e,width:t});d=(0,l.Sp)(d,i)?i:d,s.dpi*=d;const p={};if(n?.timeExtent){const{start:e,end:t}=n.timeExtent.toJSON();p.time=e&&t&&e===t?""+e:`${e??"null"},${t??"null"}`}else this.timeInfo&&!this.timeInfo.hasLiveData&&(p.time="null,null");return{bbox:e?e.xmin+","+e.ymin+","+e.xmax+","+e.ymax:void 0,bboxSR:u,imageSR:u,size:t+","+r,mapScale:this._exportImageParameters.scale,...s,...a,...p}}async fetchImage(e,t,r,n){const{data:i}=await this._fetchImage("image",e,t,r,n);return i}async fetchImageBitmap(e,t,r,n){const{data:i,url:s}=await this._fetchImage("blob",e,t,r,n);return(0,F.mn)(i,s,n)}async fetchRecomputedExtents(e={}){const t={...e,query:{returnUpdates:!0,f:"json",...this.customParameters,token:this.apiKey}},{data:r}=await(0,i.A)(this.url,t),{extent:n,fullExtent:s,timeExtent:a}=r,o=n||s;return{fullExtent:o&&m.A.fromJSON(o),timeExtent:a&&_.A.fromJSON({start:a[0],end:a[1]})}}loadAll(){return(0,o.g)(this,e=>{e(this.allSublayers),e(this.subtables)})}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return(0,U.D)(this,e)}async _fetchImage(e,t,r,n,s){const o={responseType:e,signal:s?.signal??null,query:{...this.parsedUrl.query,...this.createExportImageParameters(t,r,n,s),f:"image",...this.refreshParameters,...this.customParameters,token:this.apiKey}},l=this.parsedUrl.path+"/export";if(null!=o.query?.dynamicLayers&&!this.capabilities?.exportMap?.supportsDynamicLayers)throw new a.A("mapimagelayer:dynamiclayer-not-supported",`service ${this.url} doesn't support dynamic layers, which is required to be able to change the sublayer's order, rendering, labeling or source.`,{query:o.query});try{const{data:e}=await(0,i.A)(l,o);return{data:e,url:l}}catch(e){if((0,d.zf)(e))throw e;throw new a.A("mapimagelayer:image-fetch-error",`Unable to load image: ${l}`,{error:e})}}async _fetchService(e){if(this.sourceJSON)return void this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl});const{data:t,ssl:r}=await(0,i.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},signal:e});r&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=t,this.read(t,{origin:"service",url:this.parsedUrl})}hasVisibleLayersForOrigin(e){return!(null==e||!this.sublayersSourceJSON[e]?.visibleLayers)}};(0,n.Cg)([(0,p.MZ)((0,R.P6)("dateFieldsTimeReference"))],B.prototype,"dateFieldsTimeZone",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean})],B.prototype,"datesInUnknownTimezone",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"dpi",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"gdbVersion",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"imageFormat",void 0),(0,n.Cg)([(0,V.w)("imageFormat",["supportedImageFormatTypes"])],B.prototype,"readImageFormat",null),(0,n.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageHeight"}}}}})],B.prototype,"imageMaxHeight",void 0),(0,n.Cg)([(0,p.MZ)({json:{origins:{service:{read:{source:"maxImageWidth"}}}}})],B.prototype,"imageMaxWidth",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"imageTransparency",void 0),(0,n.Cg)([(0,p.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],B.prototype,"isReference",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],B.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,p.MZ)({type:["ArcGISMapServiceLayer"]})],B.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1,write:!1}})],B.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,p.MZ)((0,R.P6)("preferredTimeReference"))],B.prototype,"preferredTimeZone",void 0),(0,n.Cg)([(0,p.MZ)()],B.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,p.MZ)({type:s.A.ofType(k.A),json:{write:{ignoreOrigin:!0}}})],B.prototype,"sublayers",void 0),(0,n.Cg)([(0,$.K)("sublayers",{layers:{type:[k.A]},visibleLayers:{type:[c.jz]}})],B.prototype,"writeSublayers",null),(0,n.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],B.prototype,"listMode",void 0),(0,n.Cg)([(0,p.MZ)({json:{read:!1},readOnly:!0,value:"map-image"})],B.prototype,"type",void 0),(0,n.Cg)([(0,p.MZ)(O.OZ)],B.prototype,"url",void 0),B=(0,n.Cg)([(0,p.$K)("esri.layers.MapImageLayer")],B);const q=B},82935(e,t,r){var n=r(32198),i=r(91429),s=r(89317),a=r(30524),o=r(96184),l=r(73133),u=r(79677),d=r(10184),p=r(36005);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:s.K}}};r.d(t,["B",0,c,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const n=r.timeOffset,i=l.j.fromJSON(r.timeOffsetUnits);return n&&i?new d.A({value:n,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,a.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,n.Cg)([(0,i.MZ)({type:d.A})],r.prototype,"timeOffset",void 0),(0,n.Cg)([(0,p.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,n.Cg)([(0,i.MZ)({value:null,type:o.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,n.Cg)([(0,i.MZ)(c)],r.prototype,"useViewTime",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},96184(e,t,r){r.d(t,{A:()=>y});var n=r(32198),i=r(69540),s=r(25482),a=r(91429),o=r(79677),l=r(10184),u=r(56400),d=r(36005),p=r(43937);function c(e,t){return l.A.fromJSON({value:e,unit:t})}let y=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?o.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?c(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?c(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,n.Cg)([(0,a.MZ)({type:o.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,d.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,p.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,a.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,n.Cg)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,n.Cg)([(0,p.K)("interval")],y.prototype,"writeInterval",null),(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,n.Cg)([(0,a.MZ)((0,u.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,n.Cg)([(0,a.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,n.Cg)([(0,a.$K)("esri.layers.support.TimeInfo")],y)},77548(e,t,r){r.d(t,{Gh:()=>D,tk:()=>T,BR:()=>I,p2:()=>M,qd:()=>A,wI:()=>x,G$:()=>O,$x:()=>Z,Ov:()=>b,cM:()=>c,UC:()=>y,Qz:()=>m,OP:()=>E,TU:()=>v,F2:()=>h,XX:()=>g,Qi:()=>w,jy:()=>S});var n=r(70333),i=r(11254),s=r(7762),a=(r(84952),r(36563)),o=r(36708),l=r(4146);const u=new WeakMap;function d(e){return!e.destroyed&&(u.has(e)||e.addHandles([(0,o.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||d(t))},t=>u.set(e,t),o.pc),(0,a.hA)(()=>u.delete(e))]),u.get(e))}function p(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function c(e){return p(e,"knowledge-graph")&&"layers"in e}function y(e){return p(e,"knowledge-graph-sublayer")}function m(e){return p(e,"link-chart")&&"layers"in e}function h(e){return p(e,"subtype-group")&&"sublayers"in e}function f(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const g={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function v(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function b(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function S(e){return function(e){return p(e,"catalog-footprint")}(e)||function(e){return p(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return p(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function C(e){const t=e?.type;return"binning"===t||"cluster"===t}function M(e,t){if(!S(e))return;const r=t?.graphic,n="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&n?C(n)?n:null:void 0}return e}return t?.checkFeatureReduction&&n?C(n)?n:null:e}async function x(e,t){const r=n.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const s=e.toLowerCase().indexOf("/rest/services");if(-1===s)return null;const a=`${e.slice(0,s)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,i.A)(a,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function I(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function T(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function A(e){const t=new s.A;for(const r of e.allLayers.concat(e.allTables))d(r)||f(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function Z(e,t){return null}function O(e){return null}function E(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function D(e,t){if(!t||!E(e))return;const r=(e.url,null);r&&(e.url=r)}},91908(e,t,r){r.d(t,{D:()=>s});var n=r(60694);const i=[];function s(e,t){if((0,n.Wo)(e.url??""))return!0;const{wkid:r}=t;for(const t of i){if((e.version??0)>=t[0])return!0;if("function"==typeof t[1]&&(t[1]=t[1]()),t[1].has(r))return!1}return!0}i.push([10.91,()=>{const e=new Set([9709,9716,9741,9761,9766]);for(let t=9712;t<=9713;t++)e.add(t);for(let t=9748;t<=9749;t++)e.add(t);for(let t=20904;t<=20932;t++)e.add(t);for(let t=21004;t<=21032;t++)e.add(t);for(let t=21207;t<=21264;t++)e.add(t);for(let t=21307;t<=21364;t++)e.add(t);for(let t=23301;t<=23333;t++)e.add(t);for(let t=102759;t<=102760;t++)e.add(t);for(let t=102934;t<=102955;t++)e.add(t);return e}]),i.push([10.9,()=>{const e=new Set([9300,9354,9364,9367,9373,9377,9387,9456,9473,9498,9678,9680,29874,103599,103872,104028]);for(let t=9356;t<=9360;t++)e.add(t);for(let t=9404;t<=9407;t++)e.add(t);for(let t=9476;t<=9482;t++)e.add(t);for(let t=9487;t<=9494;t++)e.add(t);for(let t=9697;t<=9699;t++)e.add(t);return e}]),i.push([10.81,()=>{const e=new Set([9265,9333,103598,103699]);for(let t=9248;t<=9254;t++)e.add(t);for(let t=9271;t<=9273;t++)e.add(t);for(let t=9284;t<=9285;t++)e.add(t);for(let t=21453;t<=21463;t++)e.add(t);return e}]),i.push([10.8,()=>{const e=new Set([8088,8395,8428,8433,8531,8687,8692,8694,8699,8900,9003,9006,9009,9012,9017,9191]);for(let t=8035;t<=8036;t++)e.add(t);for(let t=8455;t<=8456;t++)e.add(t);for(let t=8518;t<=8529;t++)e.add(t);for(let t=8533;t<=8536;t++)e.add(t);for(let t=8538;t<=8540;t++)e.add(t);for(let t=8677;t<=8679;t++)e.add(t);for(let t=8902;t<=8903;t++)e.add(t);for(let t=8907;t<=8910;t++)e.add(t);for(let t=8949;t<=8951;t++)e.add(t);for(let t=8972;t<=8987;t++)e.add(t);for(let t=9039;t<=9040;t++)e.add(t);for(let t=9068;t<=9069;t++)e.add(t);for(let t=9140;t<=9141;t++)e.add(t);for(let t=9148;t<=9150;t++)e.add(t);for(let t=9153;t<=9159;t++)e.add(t);for(let t=9205;t<=9218;t++)e.add(t);for(let t=9221;t<=9222;t++)e.add(t);for(let t=54098;t<=54101;t++)e.add(t);return e}]),i.push([10.71,()=>{const e=new Set([6316]);for(let t=8351;t<=8353;t++)e.add(t);for(let t=9294;t<=9297;t++)e.add(t);for(let t=22619;t<=22621;t++)e.add(t);for(let t=103586;t<=103594;t++)e.add(t);return e}])},16215(e,t,r){r.d(t,{S:()=>i});const n=Symbol("BasemapInstance");function i(e){return null!=e&&"object"==typeof e&&n in e}r.d(t,["Y",0,n])},79677(e,t,r){r.d(t,{A:()=>p});var n,i=r(32198),s=r(25482),a=r(88930),o=r(91429),l=(r(98623),r(10184)),u=r(36005),d=r(43937);let p=class extends s.o{static{n=this}static get allTime(){return c}static get empty(){return y}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,a.lL)(r,new l.A({value:1,unit:e}),t));let i=this.end;if(i){const r=(0,a.lL)(i,new l.A({value:1,unit:e}),t);i=i.getTime()===r.getTime()?r:(0,a.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let a,o;return i>=t&&i<=r?a=i:t>=i&&t<=s&&(a=t),r>=i&&r<=s?o=r:s>=t&&s<=r&&(o=s),null==a||null==o||isNaN(a)||isNaN(o)?n.empty:new n({start:a===-1/0?null:new Date(a),end:o===1/0?null:new Date(o)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const i=new n,{start:s,end:o}=this;return null!=s&&(i.start=(0,a.S1)(s,e,t,r)),null!=o&&(i.end=(0,a.S1)(o,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return c.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i.Cg)([(0,u.w)("end")],p.prototype,"readEnd",null),(0,i.Cg)([(0,d.K)("end")],p.prototype,"writeEnd",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i.Cg)([(0,o.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i.Cg)([(0,u.w)("start")],p.prototype,"readStart",null),(0,i.Cg)([(0,d.K)("start")],p.prototype,"writeStart",null),p=n=(0,i.Cg)([(0,o.$K)("esri.time.TimeExtent")],p);const c=new p,y=new p({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>d});var n=r(32198),i=r(69540),s=r(25482),a=r(88930),o=r(91429),l=r(73133),u=r(93223);let d=class extends((0,i.OU)(s.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,n.Cg)([(0,u.e)(l.j,{nonNullable:!0})],d.prototype,"unit",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],d.prototype,"value",void 0),d=(0,n.Cg)([(0,o.$K)("esri.time.TimeInterval")],d)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3116],{83116(e,t,r){r.d(t,{default:()=>k});var s=r(32198),n=r(92602),i=r(11254),o=r(7762),a=r(62885),l=r(25482),h=r(4718),c=r(92474),u=r(81583),d=r(53966),g=r(97768),m=r(17676),y=r(84952),p=r(91429),f=r(16930),b=r(20655),v=r(80812),w=r(43281),_=r(69622),L=r(73444),C=r(10838);let A=class extends _.A{constructor(e){super(e),this.apiKey=null,this.id=null,this.language=null,this.places=null,this.serviceUrl="https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2",this.worldview=null}get languageParameter(){const e=this.language;let t="local"===e||"global"===e?e:(0,C.xO)(e??(0,L.JK)())??"global";return t="no"===t?"nb":t,t}};(0,s.Cg)([(0,p.MZ)()],A.prototype,"apiKey",void 0),(0,s.Cg)([(0,p.MZ)()],A.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)()],A.prototype,"language",void 0),(0,s.Cg)([(0,p.MZ)()],A.prototype,"places",void 0),(0,s.Cg)([(0,p.MZ)()],A.prototype,"serviceUrl",void 0),(0,s.Cg)([(0,p.MZ)()],A.prototype,"worldview",void 0),A=(0,s.Cg)([(0,p.$K)("esri.support.BasemapStyle")],A);const M=A;var S,T,I=r(16215),D=r(751),x=r(43937);let E=class extends((0,l.T)(c.x_)){static{S=I.Y}static{T=this}constructor(e){super(e),this[S]=!0,this.id=null,this.portalItem=null,this.spatialReference=null,this.style=null,this.thumbnailUrl=null,this.title="Basemap",this.type="Basemap",this.id=Date.now().toString(16)+"-basemap-"+T.idCounter++,this.baseLayers=new o.A,this.referenceLayers=new o.A,this.groundLayers=new o.A;const t=e=>{const{parent:t}=e;t&&t!==this&&"remove"in t&&t.remove?.(e),e.parent=this,"elevation"!==e.type&&"integrated-mesh-3dtiles"!==e.type||d.A.getLogger(this).error(`Layer '${e.title}, id:${e.id}' of type '${e.type}' is not supported as a basemap layer and will therefore be ignored.`)},r=e=>{const{parent:t}=e;t&&t!==this&&"remove"in t&&t.remove?.(e),e.parent=this},s=e=>{e.parent=null},n=e=>{e.parent===this&&(e.parent=null)};this.addHandles([this.baseLayers.on("after-add",e=>t(e.item)),this.baseLayers.on("after-remove",e=>s(e.item)),this.referenceLayers.on("after-add",e=>t(e.item)),this.referenceLayers.on("after-remove",e=>s(e.item)),this.groundLayers.on("before-add",e=>{const t=e.item;return t.parent===this?(d.A.getLogger(this).error(`Layer '${t.title}, id:${t.id}' of type '${t.type}' already a ground layer, second add will be ignored.`),void e.preventDefault()):"integrated-mesh-3dtiles"!==t.type?(d.A.getLogger(this).error(`Layer '${t.title}, id:${t.id}' of type '${t.type}' is not supported as a ground layer and will therefore be ignored.`),void e.preventDefault()):void 0}),this.groundLayers.on("after-add",e=>r(e.item)),this.groundLayers.on("after-remove",e=>n(e.item))])}static{this.idCounter=0}initialize(){this.when().catch(e=>{d.A.getLogger(this).error("#load()",`Failed to load basemap (title: '${this.title}', id: '${this.id}')`,e)}),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){const e=this.baseLayers.toArray();for(const t of e)t.destroyed||t.destroy();const t=this.groundLayers.toArray();for(const e of t)e.destroyed||e.destroy();const r=this.referenceLayers.toArray();for(const e of r)e.destroyed||e.destroy();this.baseLayers.destroy(),this.groundLayers.destroy(),this.referenceLayers.destroy(),this.portalItem=(0,g.pR)(this.portalItem)}removeChildLayer(e){for(const t of[this.baseLayers,this.referenceLayers,this.groundLayers])t.remove(e)}normalizeCtorArgs(e){return e&&"resourceInfo"in e&&(this._set("resourceInfo",e.resourceInfo),delete(e={...e}).resourceInfo),e}get baseLayers(){return this._get("baseLayers")}set baseLayers(e){this._set("baseLayers",(0,a.V)(e,this._get("baseLayers")))}_writeBaseLayers(e,t,r){const s=[];e?(r={...r,layerContainerType:"basemap-base-layers"},this.baseLayers.forEach(e=>{const t=(0,D.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&s.push(t)}),this.referenceLayers.forEach(e=>{const t=(0,D.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&("scene"!==e.type&&(t.isReference=!0),s.push(t))}),t.baseMapLayers=s):t.baseMapLayers=s}set groundLayers(e){this._set("groundLayers",(0,a.V)(e,this._get("groundLayers")))}_writeGroundLayers(e,t,r){const s=[];e&&(r={...r,layerContainerType:"basemap-ground-layers"},this.groundLayers.forEach(e=>{const t=(0,D.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&s.push(t)}),s.length>0&&(t.groundLayers=s))}get loaded(){return super.loaded}get referenceLayers(){return this._get("referenceLayers")}set referenceLayers(e){this._set("referenceLayers",(0,a.V)(e,this._get("referenceLayers")))}writeTitle(e,t){t.title=e||"Basemap"}load(e){return this.addResolvingPromise(this._loadFromSource(e)),Promise.resolve(this)}loadAll(){return(0,u.g)(this,e=>{e(this.baseLayers,this.groundLayers,this.referenceLayers)})}clone(){const e={id:this.id,title:this.title,portalItem:this.portalItem,baseLayers:this.baseLayers.map(e=>(0,h.Nb)(e)?e.clone():e),groundLayers:this.groundLayers.map(e=>(0,h.Nb)(e)?e.clone():e),referenceLayers:this.referenceLayers.map(e=>(0,h.Nb)(e)?e.clone():e)};return this.loaded&&(e.loadStatus="loaded"),new T({resourceInfo:this.resourceInfo}).set(e)}read(e,t){this.resourceInfo||this._set("resourceInfo",{data:e,context:t}),super.read(e,t)}write(e,t){return e=e||{},t?.origin||(t={origin:"web-map",...t}),super.write(e,t),!this.loaded&&this.resourceInfo?.data.baseMapLayers&&(e.baseMapLayers=this.resourceInfo.data.baseMapLayers.map(e=>{const t=(0,h.o8)(e);return t.url&&(0,y.BQ)(t.url)&&(t.url=`https:${t.url}`),t.templateUrl&&(0,y.BQ)(t.templateUrl)&&(t.templateUrl=`https:${t.templateUrl}`),t})),e}async _loadFromSource(e){const{resourceInfo:t,portalItem:r,style:s}=this;(0,m.Te)(e);const n=[];if(t){const r=t.context?t.context.url:null;if(n.push(this._loadLayersFromJSON(t.data,r,e)),t.data.id&&!t.data.title){const e=t.data.id;n.push((0,w.q)(e).then(e=>{e&&this.read({title:e},t.context)}))}}else r?n.push(this._loadFromItem(r,e)):s&&n.push(this._loadFromStylesService(s,e));await Promise.all(n)}async _loadLayersFromJSON(e,t,s){const n=this.resourceInfo?.context,i=this.portalItem?.portal||n?.portal||null,o=Z[n?.origin||""]??"web-map",{populateOperationalLayers:a}=await Promise.all([r.e(9917),r.e(9866),r.e(3013)]).then(r.bind(r,75356)),l=[];if((0,m.Te)(s),e.baseMapLayers&&Array.isArray(e.baseMapLayers)){const r={context:{...n,origin:o,url:t,portal:i,layerContainerType:"basemap-base-layers"},defaultLayerType:"DefaultTileLayer"},s=e=>"web-scene"===o&&"ArcGISSceneServiceLayer"===e.layerType||e.isReference,h=a(this.baseLayers,e.baseMapLayers.filter(e=>!s(e)),r);l.push(h);const c=a(this.referenceLayers,e.baseMapLayers.filter(s),r);l.push(c)}if(e.groundLayers&&Array.isArray(e.groundLayers)){const r={context:{...n,origin:o,url:t,portal:i,layerContainerType:"basemap-ground-layers"},defaultLayerType:"IntegratedMesh3DTilesLayer"},s=a(this.groundLayers,e.groundLayers,r);l.push(s)}await Promise.allSettled(l)}async _loadFromItem(e,t){const r=await e.load(t),s=await r.fetchData("json",t),n=(0,y.An)(e.itemUrl??"");return this._set("resourceInfo",{data:s.baseMap??{},context:{origin:O[e.type||""]??"web-map",portal:e.portal||b.A.getDefault(),url:n}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:s.spatialReference},this.resourceInfo.context),this.read({title:e.title,thumbnailUrl:e.thumbnailUrl},{origin:"portal-item",portal:e.portal||b.A.getDefault(),url:n}),this._loadLayersFromJSON(this.resourceInfo.data,n,t)}async _loadFromStylesService(e,t){const r=e.serviceUrl.endsWith("/webmaps")?e.serviceUrl.slice(0,-8):e.serviceUrl,s=`${r}/styles/${e.id}/self`,o=`${r}/webmaps/${e.id}`,a=e.apiKey??(n.A.sessions?.basemap?.enabled?void 0:n.A.apiKeys.basemapStyles),[l,h]=await Promise.all([(await(0,i.A)(s,{query:{token:a},signal:t?.signal})).data,(await(0,i.A)(o,{query:{language:e.languageParameter,places:e.places,worldview:e.worldview,token:a},signal:t?.signal})).data]);this.thumbnailUrl??=l.thumbnailUrl;const c=(0,y.An)(o);if(this._set("resourceInfo",{data:h.baseMap??{},context:{origin:"web-map",url:c}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:h.spatialReference},this.resourceInfo.context),await this._loadLayersFromJSON(this.resourceInfo.data,c,t),a)for(const e of[...this.baseLayers,...this.groundLayers,...this.referenceLayers])"apiKey"in e&&(e.apiKey=a)}static fromId(e){const t=w.H[e];return t?t.itemId?new T({portalItem:{id:t.itemId,portal:{url:"https://www.arcgis.com"}}}):T.fromJSON(t,t.is3d?{origin:"web-scene",portal:new b.A({url:"https://www.arcgis.com"})}:{origin:"web-map"}):null}};(0,s.Cg)([(0,p.MZ)({json:{read:!1,write:{ignoreOrigin:!0,target:"baseMapLayers",writer(e,t,r,s){this._writeBaseLayers(e,t,s)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{baseMapLayers:{type:o.A}},writer(e,t,r,s){this._writeBaseLayers(e,t,s)}}}}}})],E.prototype,"baseLayers",null),(0,s.Cg)([(0,p.MZ)({json:{read:!1,write:{ignoreOrigin:!0,target:"groundLayers",writer(e,t,r,s){this._writeGroundLayers(e,t,s)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{groundLayers:{type:o.A}},writer(e,t,r,s){this._writeGroundLayers(e,t,s)}}}}}})],E.prototype,"groundLayers",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{origins:{"web-scene":{write:!0}}}})],E.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({type:v.default})],E.prototype,"portalItem",void 0),(0,s.Cg)([(0,p.MZ)()],E.prototype,"referenceLayers",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],E.prototype,"resourceInfo",void 0),(0,s.Cg)([(0,p.MZ)({type:f.A})],E.prototype,"spatialReference",void 0),(0,s.Cg)([(0,p.MZ)({type:M})],E.prototype,"style",void 0),(0,s.Cg)([(0,p.MZ)()],E.prototype,"thumbnailUrl",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{origins:{"web-scene":{write:{isRequired:!0}}}}})],E.prototype,"title",void 0),(0,s.Cg)([(0,x.K)("title")],E.prototype,"writeTitle",null),E=T=(0,s.Cg)([(0,p.$K)("esri.Basemap")],E);const O={"Web Scene":"web-scene","Web Map":"web-map","Link Chart":"link-chart"},Z={"web-scene":"web-scene","web-map":"web-map","link-chart":"link-chart"},k=E},69540(e,t,r){var s=r(32198),n=r(69622),i=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(88620),l=r(64108);const h=Symbol("ClonableMixin"),c=e=>{var t;const r=e;let n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=h}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,s=t.store,n={},l=new Map;for(const t in r){const o=r[t],a=s?.originOf(t),h=o.clonable;if(o.readOnly||!1===h||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let u=null;if("function"==typeof h)u=h(c,e);else if("reference"===h)u=c;else if(u=(0,i.TU)(c,e),null!=c&&null==u)continue;0===a?l.set(t,u):n[t]=u}const h=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,a.oY)(h)?.store;if(e)for(const[t,r]of l)e.set(t,r,0)}return h}};return n=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],n),n},u=c(n.A);r.d(t,["OU",0,c,"Pw",0,u])},7762(e,t,r){var s,n=r(32198),i=r(98291),o=r(4576),a=r(65529),l=r(36563),h=r(4718),c=r(53966),u=r(93687),d=r(76030),g=r(56507),m=r(62788),y=r(10107),p=r(7695),f=r(64108),b=r(95488),v=r(12195);class w{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class _{constructor(e,t,r,s,n){this.target=e,this.added=t,this.removed=r,this.start=s,this.deleteCount=n}}const L=new u.A(()=>new w,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function C(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function A(e){return e?e instanceof Z?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function M(e){if(e?.length)return e[0]}function S(e,t,r,s){const n=Math.min(e.length-r,t.length-s);let i=0;for(;i<n&&e[r+i]===t[s+i];)i++;return i}function T(e,t,r,s){t&&t.forEach((t,n,i)=>{e.push(t),T(e,r.call(s,t,n,i),r,s)})}const I=new Set,D=new Set,x=new Set,E=new Map;let O=0,Z=s=class extends a.nJ{static ofType(e){if(!e)return s;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends s{};return(0,n.Cg)([(0,p.u)({Type:e,ensureType:"function"==typeof e?(0,g.dp)(e):(0,g.aq)(e)})],r.prototype,"itemType",void 0),r=(0,n.Cg)([(0,f.$)(`esri.core.Collection<${t}>`)],r),E.set(e,r),r}static isCollection(e){return null!=e&&e instanceof s}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new b.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:O++})}normalizeCtorArgs(e){return e?(0,o.yc)(e)||e instanceof s?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?c.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,m.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,A(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){const r="deref"in t?()=>t.deref():()=>t,s=this.on(e,e=>{r()?.call(null,e),s.remove()});return s}add(e,t){if((0,m.gc)(this._observable),this._emitBeforeChanges(1))return this;const r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,m.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const r=this.getNextIndex(t);return this._splice(r,0,A(e)),this._emitAfterChanges(1),this}at(e){if((0,m.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...e){(0,m.gc)(this._observable);const t=e.map(A);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const r=this._splice(0,this.length),s=r.length;for(let n=0;n<s;n++)e.call(t,r[n],n,r);this._emitAfterChanges(2)}destroyAll(){this.drain(C)}destroyMany(e){const t=this.removeMany(e);return t.forEach(C),t}every(e,t){return(0,m.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,m.gc)(this._observable);const r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,m.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,m.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,m.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,m.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,m.gc)(this._observable);const r=[];return T(r,this,e,t),new s(r)}forEach(e,t){return(0,m.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,m.gc)(this._observable),this._items[e]}getNextIndex(e){(0,m.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,m.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,m.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,m.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,m.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,m.gc)(this._observable);const r=this._items.map(e,t);return new s({items:r})}reorder(e,t=this.length-1){(0,m.gc)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=M(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,m.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,m.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,m.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,m.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,m.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=M(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,m.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof s?e.toArray():e,r=this._items,n=[],i=t.length;for(let e=0;e<i;e++){const s=t[e],i=r.indexOf(s);if(i>-1){const s=1+S(t,r,e+1,i+1),o=this._splice(i,s);o&&o.length>0&&n.push.apply(n,o),e+=s-1}}return this._emitAfterChanges(2),n}reverse(){if((0,m.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=M(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,m.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,m.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const s=(t?2:0)|(r.length?1:0);if(this._emitBeforeChanges(s))return[];const n=this._splice(e,t,r)||[];return this._emitAfterChanges(s),n}toArray(){return(0,m.gc)(this._observable),this._items.slice()}toJSON(e){return(0,m.gc)(this._observable),this.toArray().map(t=>(0,v.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,m.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,m.gc)(this._observable),this._items.toString()}unshift(...e){return(0,m.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const s=this._items,n=this.itemType;let i,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(o=s.splice(e,t),this.hasEventListener("before-remove")){const t=L.acquire();t.target=this,t.cancellable=!0;for(let r=0,n=o.length;r<n;r++)i=o[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(r,1),s.splice(e,0,i),e+=1,r-=1,n-=1);L.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=L.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let r=0;r<t;r++)e.reset(o[r]),this.emit("after-remove",e);L.release(e)}}if(r?.length){if(n){const e=[];for(const t of r){const r=n.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),o=e===this.length;if(t||i){const n=L.acquire();n.target=this,n.cancellable=!0;const a=L.acquire();a.target=this,a.cancellable=!1;for(const l of r)t?(n.reset(l),this.emit("before-add",n),n.defaultPrevented||(o?s.push(l):s.splice(e++,0,l),this._length=s.length,i&&(a.reset(l),this.emit("after-add",a)))):(o?s.push(l):s.splice(e++,0,l),this._length=s.length,a.reset(l),this.emit("after-add",a));L.release(a),L.release(n)}else{if(o)for(const e of r)s.push(e);else s.splice(e,0,...r);this._length=s.length}}if((r?.length||o?.length)&&this._notifyChangeEvent(r,o),this.hasEventListener("after-splice")){const s=new _(this,r,o,e,t);this.emit("after-splice",s)}return o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=L.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,L.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=L.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),L.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;I.clear(),D.clear(),x.clear();for(const{added:t,removed:r}of e){if(t)if(0===x.size&&0===D.size)for(const e of t)I.add(e);else for(const e of t)D.has(e)?(x.add(e),D.delete(e)):x.has(e)||I.add(e);if(r)if(0===x.size&&0===I.size)for(const e of r)D.add(e);else for(const e of r)I.has(e)?I.delete(e):(x.delete(e),D.add(e))}const r=i.A.acquire();I.forEach(e=>{r.push(e)});const s=i.A.acquire();D.forEach(e=>{s.push(e)});const n=this._items,o=t.items,a=i.A.acquire();if(x.forEach(e=>{o.indexOf(e)!==n.indexOf(e)&&a.push(e)}),t.listeners&&(r.length||s.length||a.length)){const e={target:this,added:r,removed:s,moved:a},n=t.listeners.length;for(let r=0;r<n;r++){const s=t.listeners[r];s.removed||s.callback.call(this,e)}}i.A.release(r),i.A.release(s),i.A.release(a)}I.clear(),D.clear(),x.clear()}};(0,n.Cg)([(0,y.MZ)()],Z.prototype,"_updating",void 0),(0,n.Cg)([(0,y.MZ)()],Z.prototype,"_length",void 0),(0,n.Cg)([(0,y.MZ)()],Z.prototype,"length",null),(0,n.Cg)([(0,y.MZ)()],Z.prototype,"items",null),(0,n.Cg)([(0,y.MZ)({readOnly:!0})],Z.prototype,"updating",null),Z=s=(0,n.Cg)([(0,f.$)("esri.core.Collection")],Z);const k=Z;r.d(t,["A",0,k])},4902(e,t,r){var s=r(32198),n=r(64108);let i=0;const o=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return r=(0,s.Cg)([(0,n.$)("esri.core.Identifiable")],r),r};o(class{}),r.d(t,["s",0,o])},7695(e,t,r){function s(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>s})},60999(e,t,r){r.d(t,{DZ:()=>m,Ke:()=>g,Tj:()=>c,UT:()=>y,aD:()=>f,jJ:()=>h});var s=r(32198),n=r(69622),i=r(97768),o=r(17676),a=r(10107),l=r(64108);function h(e,t,r){return(0,o.Lx)(e.map((e,s)=>t.apply(r,[e,s])))}async function c(e,t,r){return(await(0,o.Lx)(e.map((e,s)=>t.apply(r,[e,s])))).map(e=>e.value)}function u(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function g(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return u(await e)}catch(e){return d(e)}}async function m(e){try{return u(await e)}catch(e){return(0,o.QP)(e),d(e)}}function y(e,t){return new p(e,t)}let p=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=u(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,a.MZ)()],p.prototype,"value",null),(0,s.Cg)([(0,a.MZ)()],p.prototype,"error",null),(0,s.Cg)([(0,a.MZ)()],p.prototype,"finished",null),(0,s.Cg)([(0,a.MZ)()],p.prototype,"promise",void 0),(0,s.Cg)([(0,a.MZ)()],p.prototype,"_result",void 0),p=(0,s.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],p);class f{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,s.hk)(t)}}}},62885(e,t,r){r.d(t,{H:()=>i,V:()=>n});var s=r(7762);function n(e,t,r=s.A){return t||(t=new r),t===e||t.destroyed||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function i(e){return e}},81583(e,t,r){r.d(t,{L:()=>a,g:()=>o});var s=r(60999),n=r(7762),i=r(92474);async function o(e,t){return await e.load(),a(e,t)}async function a(e,t){const r=[],o=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?o(...t):n.A.isCollection(t)?t.forEach(e=>o(e)):(0,i.Zm)(t)&&r.push(t))};t(o);let a=null;if(await(0,s.Tj)(r,async e=>{const t=await(0,s.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||a||(a=t)}),a)throw a.error;return e}},36708(e,t,r){r.d(t,{C_:()=>d,on:()=>u,wB:()=>l,z7:()=>h});var s=r(37955),n=r(36563),i=r(97768),o=r(17676),a=r(14012);function l(e,t,r={}){return c(e,t,r,g)}function h(e,t,r={}){return c(e,t,r,m)}function c(e,t,r={},s){let n=null;const o=r.once?(e,r)=>{s(e)&&((0,i.xt)(n),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(n=(0,a.Cn)(e,o,r.sync,r.equals),r.initial){const t=e();o(t,t)}return n}function u(e,t,r,o={}){let a=null,h=null,c=null;function u(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function d(e){o.once&&o.once&&(0,i.xt)(c),r(e)}const g=l(e,(e,r)=>{u(),(0,s.wb)(e)&&(a=e,h=(0,s.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return c=(0,n.hA)(()=>{g.remove(),u()}),c}function d(e,t){return function(e,t,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,i.xt)(a)}return new Promise((s,i)=>{a=(0,n.vE)([(0,o.u7)(r,()=>{l(),i((0,o.NK)())}),c(e,e=>{l(),s(e)},{sync:!1,once:!0},t??g)])})}(e,m,t)}function g(e){return!0}function m(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,r){r.d(t,{S1:()=>a,lL:()=>h,mi:()=>l,rb:()=>c,t:()=>u});var s=r(97770),n=(r(98623),r(34747));const i=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,r,i="system"){if("unknown"===r)return e;const o=new n.oh((0,s.wj)(i)),a=n.c9.fromJSDate(e,{zone:o}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){const s=e.getTime(),n=u(t,r,"milliseconds");return new Date(s+n)}function h(e,t,r="system"){const{unit:i}=t,o=Math.max(1,Math.trunc(t.value)),a=new n.oh((0,s.wj)(r)),l=n.c9.fromJSDate(e,{zone:a}),h=e=>e-e%o;switch(i){case"milliseconds":return l.startOf("second").plus({millisecond:h(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:h(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:h(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:h(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:h(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:h(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:h(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===i?10:"centuries"===i?100:1)*o,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function c(e){const t=i.exec(e);if(!t)return null;const{hh:r,mm:s,ss:n,ms:a}=t.groups;return Number(r)*o.hours+Number(s)*o.minutes+Number(n||0)*o.seconds+Number(a||0)}function u(e,t,r){return 0===e?0:e*o[t]/o[r]}},97770(e,t,r){r.d(t,{Ey:()=>O,F8:()=>E,J2:()=>T,Yq:()=>D,_m:()=>I,iS:()=>x,wj:()=>Z});var s=r(66552),n=r(73444),i=r(98623),o=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"},u={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},g={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},y={...m,second:"numeric"},p={hourCycle:"h23"},f={...m,...p},b={...y,...p},v={"short-date":c,"short-date-short-time":{...c,...m},"short-date-short-time-24":{...c,...f},"short-date-long-time":{...c,...y},"short-date-long-time-24":{...c,...b},"short-date-le":c,"short-date-le-short-time":{...c,...m},"short-date-le-short-time-24":{...c,...f},"short-date-le-long-time":{...c,...y},"short-date-le-long-time-24":{...c,...b},"long-month-day-year":u,"long-month-day-year-short-time":{...u,...m},"long-month-day-year-short-time-24":{...u,...f},"long-month-day-year-long-time":{...u,...y},"long-month-day-year-long-time-24":{...u,...b},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...f},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,...b},"long-date":g,"long-date-short-time":{...g,...m},"long-date-short-time-24":{...g,...f},"long-date-long-time":{...g,...y},"long-date-long-time-24":{...g,...b},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":y},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"}),_={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},L=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),C=L.find(({type:e})=>"month"===e)?.value.toLowerCase();function A(){const e=(0,n.lR)();return(e&&_[e])??(0,n.QC)()}"mart"!==C&&(_.bs="sr-Latn-CS");let M=new WeakMap;const S=v["short-date-short-time"];function T(e){return v[e]}function I(e){const{dateStyle:t,timeStyle:r,hour12:s,year:n,month:i}=e,o={};return t?o.dateStyle=t:n&&(o.year=n,o.month=i||void 0),r&&!o.year&&(o.timeStyle=r,o.hour12="auto"===s?void 0:"always"===s),o}function D(e,t=S){return function(e){let t=M.get(e);if(!t){const r=A(),s=Z(e.timeZone??"system"),n={...e,timeZone:s};t=new Intl.DateTimeFormat(r,n),M.set(e,t)}return t}(t).format(e)}function x(e,t=S){return D(new Date(e),{...t,...h,...l})}function E(e,t=S){return D(new Date(`1970-01-01T${e}Z`),{...t,...h,...a})}function O(e,t=S){const r=o.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return D(r.toJSDate(),t);const s=0===r.offset?"UTC":t.timeZone,n={...t,timeZone:s};return r.toLocaleString(n,{locale:A()})}function Z(e){switch(e){case"system":return i.N;case i.L:return"UTC";default:return e}}(0,n.Ml)(()=>{M=new WeakMap}),r.d(t,["_v",0,w])},4146(e,t,r){r.d(t,{A:()=>b});var s=r(32198),n=r(11254),i=r(49186),o=r(65529),a=r(4902),l=r(92474),h=r(53966),c=r(17676),u=r(84952),d=r(91429),g=r(5443),m=r(16930),y=r(92602),p=r(79677);let f=0,b=class extends((0,o.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:s}=await Promise.all([r.e(9917),r.e(812),r.e(8559)]).then(r.bind(r,45613));try{return await s(t)}catch(e){const r=t?.portalItem,s=r?.id||"unset",n=r?.portal?.url||y.A.portalUrl;throw h.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+s+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||h.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,u.An)(this.url)}createLayerView(e,t){return Promise.reject(new i.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new i.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,s.Cg)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,s.Cg)([(0,d.MZ)({type:g.A})],b.prototype,"fullExtent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,s.Cg)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,s.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,s.Cg)([(0,d.MZ)({type:m.A})],b.prototype,"spatialReference",void 0),(0,s.Cg)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,s.Cg)([(0,d.MZ)()],b.prototype,"url",void 0),(0,s.Cg)([(0,d.MZ)({type:p.A})],b.prototype,"visibilityTimeExtent",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,s.Cg)([(0,d.$K)("esri.layers.Layer")],b)},77548(e,t,r){r.d(t,{Gh:()=>E,tk:()=>S,BR:()=>M,p2:()=>C,qd:()=>T,wI:()=>A,G$:()=>D,$x:()=>I,Ov:()=>v,cM:()=>d,UC:()=>g,Qz:()=>m,OP:()=>x,TU:()=>b,F2:()=>y,XX:()=>f,Qi:()=>w,jy:()=>_});var s=r(70333),n=r(11254),i=r(7762),o=(r(84952),r(36563)),a=r(36708),l=r(4146);const h=new WeakMap;function c(e){return!e.destroyed&&(h.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||c(t))},t=>h.set(e,t),a.pc),(0,o.hA)(()=>h.delete(e))]),h.get(e))}function u(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function d(e){return u(e,"knowledge-graph")&&"layers"in e}function g(e){return u(e,"knowledge-graph-sublayer")}function m(e){return u(e,"link-chart")&&"layers"in e}function y(e){return u(e,"subtype-group")&&"sublayers"in e}function p(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const f={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function _(e){return function(e){return u(e,"catalog-footprint")}(e)||function(e){return u(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return u(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function L(e){const t=e?.type;return"binning"===t||"cluster"===t}function C(e,t){if(!_(e))return;const r=t?.graphic,s="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&s?L(s)?s:null:void 0}return e}return t?.checkFeatureReduction&&s?L(s)?s:null:e}async function A(e,t){const r=s.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;const o=`${e.slice(0,i)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,n.A)(o,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function M(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function S(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function T(e){const t=new i.A;for(const r of e.allLayers.concat(e.allTables))c(r)||p(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function I(e,t){return null}function D(e){return null}function x(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!x(e))return;const r=(e.url,null);r&&(e.url=r)}},73133(e,t,r){const s=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});r.d(t,["j",0,s])},16215(e,t,r){r.d(t,{S:()=>n});const s=Symbol("BasemapInstance");function n(e){return null!=e&&"object"==typeof e&&s in e}r.d(t,["Y",0,s])},79677(e,t,r){r.d(t,{A:()=>u});var s,n=r(32198),i=r(25482),o=r(88930),a=r(91429),l=(r(98623),r(10184)),h=r(36005),c=r(43937);let u=class extends i.o{static{s=this}static get allTime(){return d}static get empty(){return g}static fromArray(e){return new s({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new s({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,s=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===s&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,new l.A({value:1,unit:e}),t));let n=this.end;if(n){const r=(0,o.lL)(n,new l.A({value:1,unit:e}),t);n=n.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new s({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return s.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let o,a;return n>=t&&n<=r?o=n:t>=n&&t<=i&&(o=t),r>=n&&r<=i?a=r:i>=t&&i<=r&&(a=i),null==o||null==a||isNaN(o)||isNaN(a)?s.empty:new s({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const n=new s,{start:i,end:a}=this;return null!=i&&(n.start=(0,o.S1)(i,e,t,r)),null!=a&&(n.end=(0,o.S1)(a,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new s({start:t,end:r})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],u.prototype,"end",void 0),(0,n.Cg)([(0,h.w)("end")],u.prototype,"readEnd",null),(0,n.Cg)([(0,c.K)("end")],u.prototype,"writeEnd",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],u.prototype,"isAllTime",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],u.prototype,"isEmpty",null),(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],u.prototype,"start",void 0),(0,n.Cg)([(0,h.w)("start")],u.prototype,"readStart",null),(0,n.Cg)([(0,c.K)("start")],u.prototype,"writeStart",null),u=s=(0,n.Cg)([(0,a.$K)("esri.time.TimeExtent")],u);const d=new u,g=new u({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>c});var s=r(32198),n=r(69540),i=r(25482),o=r(88930),a=r(91429),l=r(73133),h=r(93223);let c=class extends((0,n.OU)(i.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,s.Cg)([(0,h.e)(l.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,s.Cg)([(0,a.$K)("esri.time.TimeInterval")],c)},751(e,t,r){r.d(t,{CJ:()=>m});var s=r(4718),n=r(93637),i=r(67124),o=r(77548),a=r(59923);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wcs","wms","wmts"]),h=new Set(["integrated-mesh-3dtiles"]),c=new Set(["annotation-feature","catalog","csv","dimension-feature","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","knowledge-graph","map-image","map-notes","media","ogc-feature","oriented-imagery","parquet","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","video","web-tile","wcs","wfs","wms","wmts"]),u=new Set([...c,"link-chart"]);function d(e,t){if(t.restrictedWebMapWriting){const r=function(e){switch(e.layerContainerType){case"basemap-base-layers":return l;case"basemap-ground-layers":return h;case"operational-layers":return"link-chart"===e.origin?u:c;default:return null}}(t);return null==r||r.has(e.type)&&!(0,o.Ov)(e)}return!0}function g(e,t){"maxScale"in e&&(t.maxScale=(0,i.B)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,i.B)(e.minScale)??void 0)}function m(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return(0,a.U4)(r,e),null;if((0,o.Ov)(e)&&!e.isTable)t=e.resourceInfo;else if(d(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,o.Ov)(e)){const r=(0,n.wc)("featureCollection.layers",t),s=r?.[0]?.layerDefinition;s&&g(e,s)}else"group"!==e.type&&g(e,t)}(e,t),t&&(t.id=e.id,"blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,i.B)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,o.Ov)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,s.o8)(t)),t}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3116],{83116(e,t,r){r.d(t,{default:()=>k});var s=r(32198),n=r(92602),i=r(11254),o=r(7762),a=r(62885),l=r(25482),h=r(4718),c=r(92474),u=r(81583),d=r(53966),g=r(97768),m=r(17676),y=r(84952),p=r(91429),f=r(16930),b=r(20655),v=r(80812),w=r(43281),_=r(69622),L=r(73444),C=r(10838);let A=class extends _.A{constructor(e){super(e),this.apiKey=null,this.id=null,this.language=null,this.places=null,this.serviceUrl="https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2",this.worldview=null}get languageParameter(){const e=this.language;let t="local"===e||"global"===e?e:(0,C.xO)(e??(0,L.JK)())??"global";return t="no"===t?"nb":t,t}};(0,s.Cg)([(0,p.MZ)()],A.prototype,"apiKey",void 0),(0,s.Cg)([(0,p.MZ)()],A.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)()],A.prototype,"language",void 0),(0,s.Cg)([(0,p.MZ)()],A.prototype,"places",void 0),(0,s.Cg)([(0,p.MZ)()],A.prototype,"serviceUrl",void 0),(0,s.Cg)([(0,p.MZ)()],A.prototype,"worldview",void 0),A=(0,s.Cg)([(0,p.$K)("esri.support.BasemapStyle")],A);const M=A;var S,T,I=r(16215),D=r(751),x=r(43937);let E=class extends((0,l.T)(c.x_)){static{S=I.Y}static{T=this}constructor(e){super(e),this[S]=!0,this.id=null,this.portalItem=null,this.spatialReference=null,this.style=null,this.thumbnailUrl=null,this.title="Basemap",this.type="Basemap",this.id=Date.now().toString(16)+"-basemap-"+T.idCounter++,this.baseLayers=new o.A,this.referenceLayers=new o.A,this.groundLayers=new o.A;const t=e=>{const{parent:t}=e;t&&t!==this&&"remove"in t&&t.remove?.(e),e.parent=this,"elevation"!==e.type&&"integrated-mesh-3dtiles"!==e.type||d.A.getLogger(this).error(`Layer '${e.title}, id:${e.id}' of type '${e.type}' is not supported as a basemap layer and will therefore be ignored.`)},r=e=>{const{parent:t}=e;t&&t!==this&&"remove"in t&&t.remove?.(e),e.parent=this},s=e=>{e.parent=null},n=e=>{e.parent===this&&(e.parent=null)};this.addHandles([this.baseLayers.on("after-add",e=>t(e.item)),this.baseLayers.on("after-remove",e=>s(e.item)),this.referenceLayers.on("after-add",e=>t(e.item)),this.referenceLayers.on("after-remove",e=>s(e.item)),this.groundLayers.on("before-add",e=>{const t=e.item;return t.parent===this?(d.A.getLogger(this).error(`Layer '${t.title}, id:${t.id}' of type '${t.type}' already a ground layer, second add will be ignored.`),void e.preventDefault()):"integrated-mesh-3dtiles"!==t.type?(d.A.getLogger(this).error(`Layer '${t.title}, id:${t.id}' of type '${t.type}' is not supported as a ground layer and will therefore be ignored.`),void e.preventDefault()):void 0}),this.groundLayers.on("after-add",e=>r(e.item)),this.groundLayers.on("after-remove",e=>n(e.item))])}static{this.idCounter=0}initialize(){this.when().catch(e=>{d.A.getLogger(this).error("#load()",`Failed to load basemap (title: '${this.title}', id: '${this.id}')`,e)}),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){const e=this.baseLayers.toArray();for(const t of e)t.destroyed||t.destroy();const t=this.groundLayers.toArray();for(const e of t)e.destroyed||e.destroy();const r=this.referenceLayers.toArray();for(const e of r)e.destroyed||e.destroy();this.baseLayers.destroy(),this.groundLayers.destroy(),this.referenceLayers.destroy(),this.portalItem=(0,g.pR)(this.portalItem)}removeChildLayer(e){for(const t of[this.baseLayers,this.referenceLayers,this.groundLayers])t.remove(e)}normalizeCtorArgs(e){return e&&"resourceInfo"in e&&(this._set("resourceInfo",e.resourceInfo),delete(e={...e}).resourceInfo),e}get baseLayers(){return this._get("baseLayers")}set baseLayers(e){this._set("baseLayers",(0,a.V)(e,this._get("baseLayers")))}_writeBaseLayers(e,t,r){const s=[];e?(r={...r,layerContainerType:"basemap-base-layers"},this.baseLayers.forEach(e=>{const t=(0,D.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&s.push(t)}),this.referenceLayers.forEach(e=>{const t=(0,D.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&("scene"!==e.type&&(t.isReference=!0),s.push(t))}),t.baseMapLayers=s):t.baseMapLayers=s}set groundLayers(e){this._set("groundLayers",(0,a.V)(e,this._get("groundLayers")))}_writeGroundLayers(e,t,r){const s=[];e&&(r={...r,layerContainerType:"basemap-ground-layers"},this.groundLayers.forEach(e=>{const t=(0,D.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&s.push(t)}),s.length>0&&(t.groundLayers=s))}get loaded(){return super.loaded}get referenceLayers(){return this._get("referenceLayers")}set referenceLayers(e){this._set("referenceLayers",(0,a.V)(e,this._get("referenceLayers")))}writeTitle(e,t){t.title=e||"Basemap"}load(e){return this.addResolvingPromise(this._loadFromSource(e)),Promise.resolve(this)}loadAll(){return(0,u.g)(this,e=>{e(this.baseLayers,this.groundLayers,this.referenceLayers)})}clone(){const e={id:this.id,title:this.title,portalItem:this.portalItem,baseLayers:this.baseLayers.map(e=>(0,h.Nb)(e)?e.clone():e),groundLayers:this.groundLayers.map(e=>(0,h.Nb)(e)?e.clone():e),referenceLayers:this.referenceLayers.map(e=>(0,h.Nb)(e)?e.clone():e)};return this.loaded&&(e.loadStatus="loaded"),new T({resourceInfo:this.resourceInfo}).set(e)}read(e,t){this.resourceInfo||this._set("resourceInfo",{data:e,context:t}),super.read(e,t)}write(e,t){return e=e||{},t?.origin||(t={origin:"web-map",...t}),super.write(e,t),!this.loaded&&this.resourceInfo?.data.baseMapLayers&&(e.baseMapLayers=this.resourceInfo.data.baseMapLayers.map(e=>{const t=(0,h.o8)(e);return t.url&&(0,y.BQ)(t.url)&&(t.url=`https:${t.url}`),t.templateUrl&&(0,y.BQ)(t.templateUrl)&&(t.templateUrl=`https:${t.templateUrl}`),t})),e}async _loadFromSource(e){const{resourceInfo:t,portalItem:r,style:s}=this;(0,m.Te)(e);const n=[];if(t){const r=t.context?t.context.url:null;if(n.push(this._loadLayersFromJSON(t.data,r,e)),t.data.id&&!t.data.title){const e=t.data.id;n.push((0,w.q)(e).then(e=>{e&&this.read({title:e},t.context)}))}}else r?n.push(this._loadFromItem(r,e)):s&&n.push(this._loadFromStylesService(s,e));await Promise.all(n)}async _loadLayersFromJSON(e,t,s){const n=this.resourceInfo?.context,i=this.portalItem?.portal||n?.portal||null,o=Z[n?.origin||""]??"web-map",{populateOperationalLayers:a}=await Promise.all([r.e(9917),r.e(9866),r.e(3013)]).then(r.bind(r,75356)),l=[];if((0,m.Te)(s),e.baseMapLayers&&Array.isArray(e.baseMapLayers)){const r={context:{...n,origin:o,url:t,portal:i,layerContainerType:"basemap-base-layers"},defaultLayerType:"DefaultTileLayer"},s=e=>"web-scene"===o&&"ArcGISSceneServiceLayer"===e.layerType||e.isReference,h=a(this.baseLayers,e.baseMapLayers.filter(e=>!s(e)),r);l.push(h);const c=a(this.referenceLayers,e.baseMapLayers.filter(s),r);l.push(c)}if(e.groundLayers&&Array.isArray(e.groundLayers)){const r={context:{...n,origin:o,url:t,portal:i,layerContainerType:"basemap-ground-layers"},defaultLayerType:"IntegratedMesh3DTilesLayer"},s=a(this.groundLayers,e.groundLayers,r);l.push(s)}await Promise.allSettled(l)}async _loadFromItem(e,t){const r=await e.load(t),s=await r.fetchData("json",t),n=(0,y.An)(e.itemUrl??"");return this._set("resourceInfo",{data:s.baseMap??{},context:{origin:O[e.type||""]??"web-map",portal:e.portal||b.A.getDefault(),url:n}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:s.spatialReference},this.resourceInfo.context),this.read({title:e.title,thumbnailUrl:e.thumbnailUrl},{origin:"portal-item",portal:e.portal||b.A.getDefault(),url:n}),this._loadLayersFromJSON(this.resourceInfo.data,n,t)}async _loadFromStylesService(e,t){const r=e.serviceUrl.endsWith("/webmaps")?e.serviceUrl.slice(0,-8):e.serviceUrl,s=`${r}/styles/${e.id}/self`,o=`${r}/webmaps/${e.id}`,a=e.apiKey??(n.A.sessions?.basemap?.enabled?void 0:n.A.apiKeys.basemapStyles),[l,h]=await Promise.all([(await(0,i.A)(s,{query:{token:a},signal:t?.signal})).data,(await(0,i.A)(o,{query:{language:e.languageParameter,places:e.places,worldview:e.worldview,token:a},signal:t?.signal})).data]);this.thumbnailUrl??=l.thumbnailUrl;const c=(0,y.An)(o);if(this._set("resourceInfo",{data:h.baseMap??{},context:{origin:"web-map",url:c}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:h.spatialReference},this.resourceInfo.context),await this._loadLayersFromJSON(this.resourceInfo.data,c,t),a)for(const e of[...this.baseLayers,...this.groundLayers,...this.referenceLayers])"apiKey"in e&&(e.apiKey=a)}static fromId(e){const t=w.H[e];return t?t.itemId?new T({portalItem:{id:t.itemId,portal:{url:"https://www.arcgis.com"}}}):T.fromJSON(t,t.is3d?{origin:"web-scene",portal:new b.A({url:"https://www.arcgis.com"})}:{origin:"web-map"}):null}};(0,s.Cg)([(0,p.MZ)({json:{read:!1,write:{ignoreOrigin:!0,target:"baseMapLayers",writer(e,t,r,s){this._writeBaseLayers(e,t,s)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{baseMapLayers:{type:o.A}},writer(e,t,r,s){this._writeBaseLayers(e,t,s)}}}}}})],E.prototype,"baseLayers",null),(0,s.Cg)([(0,p.MZ)({json:{read:!1,write:{ignoreOrigin:!0,target:"groundLayers",writer(e,t,r,s){this._writeGroundLayers(e,t,s)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{groundLayers:{type:o.A}},writer(e,t,r,s){this._writeGroundLayers(e,t,s)}}}}}})],E.prototype,"groundLayers",null),(0,s.Cg)([(0,p.MZ)({type:String,json:{origins:{"web-scene":{write:!0}}}})],E.prototype,"id",void 0),(0,s.Cg)([(0,p.MZ)({type:v.default})],E.prototype,"portalItem",void 0),(0,s.Cg)([(0,p.MZ)()],E.prototype,"referenceLayers",null),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],E.prototype,"resourceInfo",void 0),(0,s.Cg)([(0,p.MZ)({type:f.A})],E.prototype,"spatialReference",void 0),(0,s.Cg)([(0,p.MZ)({type:M})],E.prototype,"style",void 0),(0,s.Cg)([(0,p.MZ)()],E.prototype,"thumbnailUrl",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{origins:{"web-scene":{write:{isRequired:!0}}}}})],E.prototype,"title",void 0),(0,s.Cg)([(0,x.K)("title")],E.prototype,"writeTitle",null),E=T=(0,s.Cg)([(0,p.$K)("esri.Basemap")],E);const O={"Web Scene":"web-scene","Web Map":"web-map","Link Chart":"link-chart"},Z={"web-scene":"web-scene","web-map":"web-map","link-chart":"link-chart"},k=E},69540(e,t,r){var s=r(32198),n=r(69622),i=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(88620),l=r(64108);const h=Symbol("ClonableMixin"),c=e=>{var t;const r=e;let n=class extends r{constructor(){super(...arguments),this[t]=!0}static{t=h}clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,s=t.store,n={},l=new Map;for(const t in r){const o=r[t],a=s?.originOf(t),h=o.clonable;if(o.readOnly||!1===h||7!==a&&0!==a&&5!==a&&4!==a)continue;const c=this[t];let u=null;if("function"==typeof h)u=h(c,e);else if("reference"===h)u=c;else if(u=(0,i.TU)(c,e),null!=c&&null==u)continue;0===a?l.set(t,u):n[t]=u}const h=new(0,Object.getPrototypeOf(this).constructor)(n);if(l.size){const e=(0,a.oY)(h)?.store;if(e)for(const[t,r]of l)e.set(t,r,0)}return h}};return n=(0,s.Cg)([(0,l.$)("esri.core.Clonable")],n),n},u=c(n.A);r.d(t,["OU",0,c,"Pw",0,u])},7762(e,t,r){var s,n=r(32198),i=r(98291),o=r(4576),a=r(65529),l=r(36563),h=r(4718),c=r(53966),u=r(93687),d=r(76030),g=r(56507),m=r(62788),y=r(10107),p=r(7695),f=r(64108),b=r(95488),v=r(12195);class w{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}}class _{constructor(e,t,r,s,n){this.target=e,this.added=t,this.removed=r,this.start=s,this.deleteCount=n}}const L=new u.A(()=>new w,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});function C(e){e&&"object"==typeof e&&"destroy"in e&&"function"==typeof e.destroy&&e.destroy()}function A(e){return e?e instanceof Z?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function M(e){if(e?.length)return e[0]}function S(e,t,r,s){const n=Math.min(e.length-r,t.length-s);let i=0;for(;i<n&&e[r+i]===t[s+i];)i++;return i}function T(e,t,r,s){t&&t.forEach((t,n,i)=>{e.push(t),T(e,r.call(s,t,n,i),r,s)})}const I=new Set,D=new Set,x=new Set,E=new Map;let O=0,Z=s=class extends a.nJ{static ofType(e){if(!e)return s;if(E.has(e))return E.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const r in e.typeMap){const s=e.typeMap[r].prototype.declaredClass;t?t+=` | ${s}`:t=s}let r=class extends s{};return(0,n.Cg)([(0,p.u)({Type:e,ensureType:"function"==typeof e?(0,g.dp)(e):(0,g.aq)(e)})],r.prototype,"itemType",void 0),r=(0,n.Cg)([(0,f.$)(`esri.core.Collection<${t}>`)],r),E.set(e,r),r}static isCollection(e){return null!=e&&e instanceof s}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new b.I,this._length=0,this._items=[],Object.defineProperty(this,"uid",{value:O++})}normalizeCtorArgs(e){return e?(0,o.yc)(e)||e instanceof s?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),super.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get length(){return this._length}set length(e){e>this._length?c.A.getLogger(this).error("#length=","Cannot increase the length of the collection by assigning to the length property."):this.splice(e,Math.max(0,this._length-e))}get items(){return(0,m.gc)(this._observable),this._items}set items(e){this._emitBeforeChanges(1)||(this._splice(0,this.length,A(e)),this._emitAfterChanges(1))}hasEventListener(e){return!this.destroyed&&("change"===e?this._chgListeners.length>0:super.hasEventListener(e))}on(e,t){if(this.destroyed)return(0,l.hA)();if("change"===e){const e=this._chgListeners,r={removed:!1,callback:t};return e.push(r),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),(0,l.hA)(()=>{r.removed=!0,e.splice(e.indexOf(r),1)})}return super.on(e,t)}once(e,t){const r="deref"in t?()=>t.deref():()=>t,s=this.on(e,e=>{r()?.call(null,e),s.remove()});return s}add(e,t){if((0,m.gc)(this._observable),this._emitBeforeChanges(1))return this;const r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(1),this}addMany(e,t=this._items.length){if((0,m.gc)(this._observable),!e?.length)return this;if(this._emitBeforeChanges(1))return this;const r=this.getNextIndex(t);return this._splice(r,0,A(e)),this._emitAfterChanges(1),this}at(e){if((0,m.gc)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return[];const e=this._removeAllRaw();return this._emitAfterChanges(2),e}_removeAllRaw(){return 0===this.length?[]:this._splice(0,this.length)||[]}clone(){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.map(h.o8)})}concat(...e){(0,m.gc)(this._observable);const t=e.map(A);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const r=this._splice(0,this.length),s=r.length;for(let n=0;n<s;n++)e.call(t,r[n],n,r);this._emitAfterChanges(2)}destroyAll(){this.drain(C)}destroyMany(e){const t=this.removeMany(e);return t.forEach(C),t}every(e,t){return(0,m.gc)(this._observable),this._items.every(e,t)}filter(e,t){(0,m.gc)(this._observable);const r=2===arguments.length?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return(0,m.gc)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,m.gc)(this._observable),this._items.findIndex(e,t)}findLast(e,t){return(0,m.gc)(this._observable),this._items.findLast(e,t)}findLastIndex(e,t){return(0,m.gc)(this._observable),this._items.findLastIndex(e,t)}flatten(e,t){(0,m.gc)(this._observable);const r=[];return T(r,this,e,t),new s(r)}forEach(e,t){return(0,m.gc)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,m.gc)(this._observable),this._items[e]}getNextIndex(e){(0,m.gc)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,m.gc)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,m.gc)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,m.gc)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,m.gc)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,m.gc)(this._observable);const r=this._items.map(e,t);return new s({items:r})}reorder(e,t=this.length-1){(0,m.gc)(this._observable);const r=this.indexOf(e);if(-1!==r){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(4))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(4)}return e}}pop(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=M(this._splice(this.length-1,1));return this._emitAfterChanges(2),e}push(...e){return(0,m.gc)(this._observable),this._emitBeforeChanges(1)||(this._splice(this.length,0,e),this._emitAfterChanges(1)),this.length}reduce(e,t){(0,m.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){(0,m.gc)(this._observable);const r=this._items;return 2===arguments.length?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return(0,m.gc)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,m.gc)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(2))return;const t=M(this._splice(e,1));return this._emitAfterChanges(2),t}removeMany(e){if((0,m.gc)(this._observable),!e?.length||this._emitBeforeChanges(2))return[];const t=e instanceof s?e.toArray():e,r=this._items,n=[],i=t.length;for(let e=0;e<i;e++){const s=t[e],i=r.indexOf(s);if(i>-1){const s=1+S(t,r,e+1,i+1),o=this._splice(i,s);o&&o.length>0&&n.push.apply(n,o),e+=s-1}}return this._emitAfterChanges(2),n}reverse(){if((0,m.gc)(this._observable),this._emitBeforeChanges(4))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(4),this}shift(){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(2))return;const e=M(this._splice(0,1));return this._emitAfterChanges(2),e}slice(e=0,t=this.length){return(0,m.gc)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,m.gc)(this._observable),this._items.some(e,t)}sort(e){if((0,m.gc)(this._observable),!this.length||this._emitBeforeChanges(4)||!this._requiresSort(e))return this;const t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(4),this}_requiresSort(e=(e,t)=>e===t?0:e<t?-1:1){const t=this.length-1;for(let r=0;r<t;r++)if(e(this.items[r],this.items[r+1])>0)return!0;return!1}splice(e,t,...r){(0,m.gc)(this._observable),1===arguments.length&&(t=this.length),t??=0;const s=(t?2:0)|(r.length?1:0);if(this._emitBeforeChanges(s))return[];const n=this._splice(e,t,r)||[];return this._emitAfterChanges(s),n}toArray(){return(0,m.gc)(this._observable),this._items.slice()}toJSON(e){return(0,m.gc)(this._observable),this.toArray().map(t=>(0,v.W)(t)?t.toJSON(e):t)}toLocaleString(){return(0,m.gc)(this._observable),this._items.toLocaleString()}toString(){return(0,m.gc)(this._observable),this._items.toString()}unshift(...e){return(0,m.gc)(this._observable),!e.length||this._emitBeforeChanges(1)||(this._splice(0,0,e),this._emitAfterChanges(1)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){const s=this._items,n=this.itemType;let i,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=(0,d._)(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(o=s.splice(e,t),this.hasEventListener("before-remove")){const t=L.acquire();t.target=this,t.cancellable=!0;for(let r=0,n=o.length;r<n;r++)i=o[r],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(o.splice(r,1),s.splice(e,0,i),e+=1,r-=1,n-=1);L.release(t)}if(this._length=this._items.length,this.hasEventListener("after-remove")){const e=L.acquire();e.target=this,e.cancellable=!1;const t=o.length;for(let r=0;r<t;r++)e.reset(o[r]),this.emit("after-remove",e);L.release(e)}}if(r?.length){if(n){const e=[];for(const t of r){const r=n.ensureType(t);null==r&&null!=t||e.push(r)}r=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),o=e===this.length;if(t||i){const n=L.acquire();n.target=this,n.cancellable=!0;const a=L.acquire();a.target=this,a.cancellable=!1;for(const l of r)t?(n.reset(l),this.emit("before-add",n),n.defaultPrevented||(o?s.push(l):s.splice(e++,0,l),this._length=s.length,i&&(a.reset(l),this.emit("after-add",a)))):(o?s.push(l):s.splice(e++,0,l),this._length=s.length,a.reset(l),this.emit("after-add",a));L.release(a),L.release(n)}else{if(o)for(const e of r)s.push(e);else s.splice(e,0,...r);this._length=s.length}}if((r?.length||o?.length)&&this._notifyChangeEvent(r,o),this.hasEventListener("after-splice")){const s=new _(this,r,o,e,t);this.emit("after-splice",s)}return o}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const r=L.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,L.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=L.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),L.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;I.clear(),D.clear(),x.clear();for(const{added:t,removed:r}of e){if(t)if(0===x.size&&0===D.size)for(const e of t)I.add(e);else for(const e of t)D.has(e)?(x.add(e),D.delete(e)):x.has(e)||I.add(e);if(r)if(0===x.size&&0===I.size)for(const e of r)D.add(e);else for(const e of r)I.has(e)?I.delete(e):(x.delete(e),D.add(e))}const r=i.A.acquire();I.forEach(e=>{r.push(e)});const s=i.A.acquire();D.forEach(e=>{s.push(e)});const n=this._items,o=t.items,a=i.A.acquire();if(x.forEach(e=>{o.indexOf(e)!==n.indexOf(e)&&a.push(e)}),t.listeners&&(r.length||s.length||a.length)){const e={target:this,added:r,removed:s,moved:a},n=t.listeners.length;for(let r=0;r<n;r++){const s=t.listeners[r];s.removed||s.callback.call(this,e)}}i.A.release(r),i.A.release(s),i.A.release(a)}I.clear(),D.clear(),x.clear()}};(0,n.Cg)([(0,y.MZ)()],Z.prototype,"_updating",void 0),(0,n.Cg)([(0,y.MZ)()],Z.prototype,"_length",void 0),(0,n.Cg)([(0,y.MZ)()],Z.prototype,"length",null),(0,n.Cg)([(0,y.MZ)()],Z.prototype,"items",null),(0,n.Cg)([(0,y.MZ)({readOnly:!0})],Z.prototype,"updating",null),Z=s=(0,n.Cg)([(0,f.$)("esri.core.Collection")],Z);const k=Z;r.d(t,["A",0,k])},4902(e,t,r){var s=r(32198),n=r(64108);let i=0;const o=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return r=(0,s.Cg)([(0,n.$)("esri.core.Identifiable")],r),r};o(class{}),r.d(t,["s",0,o])},7695(e,t,r){function s(e){return(t,r)=>{t[r]=e}}r.d(t,{u:()=>s})},60999(e,t,r){r.d(t,{DZ:()=>m,Ke:()=>g,Tj:()=>c,UT:()=>y,aD:()=>f,jJ:()=>h});var s=r(32198),n=r(69622),i=r(97768),o=r(17676),a=r(10107),l=r(64108);function h(e,t,r){return(0,o.Lx)(e.map((e,s)=>t.apply(r,[e,s])))}async function c(e,t,r){return(await(0,o.Lx)(e.map((e,s)=>t.apply(r,[e,s])))).map(e=>e.value)}function u(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function g(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return u(await e)}catch(e){return d(e)}}async function m(e){try{return u(await e)}catch(e){return(0,o.QP)(e),d(e)}}function y(e,t){return new p(e,t)}let p=class extends n.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then(e=>{this._result=u(e),this._cleanup()},e=>{this._result=d(e),this._cleanup()}),this._abortHandle=(0,o.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.xt)(this._abortHandle),this._abortController=null}};(0,s.Cg)([(0,a.MZ)()],p.prototype,"value",null),(0,s.Cg)([(0,a.MZ)()],p.prototype,"error",null),(0,s.Cg)([(0,a.MZ)()],p.prototype,"finished",null),(0,s.Cg)([(0,a.MZ)()],p.prototype,"promise",void 0),(0,s.Cg)([(0,a.MZ)()],p.prototype,"_result",void 0),p=(0,s.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],p);class f{constructor(){this._sequence=Promise.resolve()}async acquire(){let e;this._sequence=new Promise(t=>{e=this._sequence.then(()=>t,()=>t)});const t=await e;return{[Symbol.dispose]:t}}async run(e){const t={stack:[],error:void 0,hasError:!1};try{return(0,s.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,s.hk)(t)}}}},62885(e,t,r){r.d(t,{H:()=>i,V:()=>n});var s=r(7762);function n(e,t,r=s.A){return t||(t=new r),t===e||t.destroyed||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function i(e){return e}},81583(e,t,r){r.d(t,{L:()=>a,g:()=>o});var s=r(60999),n=r(7762),i=r(92474);async function o(e,t){return await e.load(),a(e,t)}async function a(e,t){const r=[],o=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?o(...t):n.A.isCollection(t)?t.forEach(e=>o(e)):(0,i.Zm)(t)&&r.push(t))};t(o);let a=null;if(await(0,s.Tj)(r,async e=>{const t=await(0,s.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||a||(a=t)}),a)throw a.error;return e}},36708(e,t,r){r.d(t,{C_:()=>d,on:()=>u,wB:()=>l,z7:()=>h});var s=r(37955),n=r(36563),i=r(97768),o=r(17676),a=r(14012);function l(e,t,r={}){return c(e,t,r,g)}function h(e,t,r={}){return c(e,t,r,m)}function c(e,t,r={},s){let n=null;const o=r.once?(e,r)=>{s(e)&&((0,i.xt)(n),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(n=(0,a.Cn)(e,o,r.sync,r.equals),r.initial){const t=e();o(t,t)}return n}function u(e,t,r,o={}){let a=null,h=null,c=null;function u(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function d(e){o.once&&o.once&&(0,i.xt)(c),r(e)}const g=l(e,(e,r)=>{u(),(0,s.wb)(e)&&(a=e,h=(0,s.on)(e,t,d),o.onListenerAdd?.(e))},{sync:o.sync,initial:!0});return c=(0,n.hA)(()=>{g.remove(),u()}),c}function d(e,t){return function(e,t,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,i.xt)(a)}return new Promise((s,i)=>{a=(0,n.vE)([(0,o.u7)(r,()=>{l(),i((0,o.NK)())}),c(e,e=>{l(),s(e)},{sync:!1,once:!0},t??g)])})}(e,m,t)}function g(e){return!0}function m(e){return!!e}r(80559),r.d(t,["OH",0,{sync:!0},"Vh",0,{initial:!0},"pc",0,{sync:!0,initial:!0}])},88930(e,t,r){r.d(t,{S1:()=>a,VW:()=>l,lL:()=>h,rb:()=>c,t:()=>u});var s=r(97770),n=(r(98623),r(34747));const i=/^(?<hh>([01][0-9])|(2[0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?(\.(?<ms>\d+))?$/,o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8,unknown:NaN};function a(e,t,r,i="system"){if("unknown"===r)return e;const o=new n.oh((0,s.wj)(i)),a=n.c9.fromJSDate(e,{zone:o}),l="decades"===r||"centuries"===r?"year":function(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),a.plus({[l]:t}).toJSDate()}function l(e,t,r="milliseconds"){const s=e.getTime(),n=u(t,r,"milliseconds");return new Date(s+n)}function h(e,t,r="system"){const{unit:i}=t,o=Math.max(1,Math.trunc(t.value)),a=new n.oh((0,s.wj)(r)),l=n.c9.fromJSDate(e,{zone:a}),h=e=>e-e%o;switch(i){case"milliseconds":return l.startOf("second").plus({millisecond:h(l.millisecond)}).toJSDate();case"seconds":return l.startOf("minute").plus({second:h(l.second)}).toJSDate();case"minutes":return l.startOf("hour").plus({minute:h(l.minute)}).toJSDate();case"hours":return l.startOf("day").plus({hour:h(l.hour)}).toJSDate();case"days":return l.startOf("month").plus({day:h(l.day-1)}).toJSDate();case"weeks":{const e=l.startOf("year").startOf("week"),t=Math.floor(l.diff(e,"weeks").weeks);return e.plus({week:h(t)}).toJSDate()}case"months":return l.startOf("year").plus({month:h(l.month-1)}).toJSDate();case"years":case"decades":case"centuries":{const e=l.startOf("year"),t=("decades"===i?10:"centuries"===i?100:1)*o,r=e.year-e.year%t;return e.set({year:r}).toJSDate()}case"unknown":return e}}function c(e){const t=i.exec(e);if(!t)return null;const{hh:r,mm:s,ss:n,ms:a}=t.groups;return Number(r)*o.hours+Number(s)*o.minutes+Number(n||0)*o.seconds+Number(a||0)}function u(e,t,r){return 0===e?0:e*o[t]/o[r]}},97770(e,t,r){r.d(t,{Ey:()=>O,F8:()=>E,J2:()=>T,Yq:()=>D,_m:()=>I,iS:()=>x,wj:()=>Z});var s=r(66552),n=r(73444),i=r(98623),o=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"},u={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},g={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},y={...m,second:"numeric"},p={hourCycle:"h23"},f={...m,...p},b={...y,...p},v={"short-date":c,"short-date-short-time":{...c,...m},"short-date-short-time-24":{...c,...f},"short-date-long-time":{...c,...y},"short-date-long-time-24":{...c,...b},"short-date-le":c,"short-date-le-short-time":{...c,...m},"short-date-le-short-time-24":{...c,...f},"short-date-le-long-time":{...c,...y},"short-date-le-long-time-24":{...c,...b},"long-month-day-year":u,"long-month-day-year-short-time":{...u,...m},"long-month-day-year-short-time-24":{...u,...f},"long-month-day-year-long-time":{...u,...y},"long-month-day-year-long-time-24":{...u,...b},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...f},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,...b},"long-date":g,"long-date-short-time":{...g,...m},"long-date-short-time-24":{...g,...f},"long-date-long-time":{...g,...y},"long-date-long-time-24":{...g,...b},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":y},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"}),_={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},L=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),C=L.find(({type:e})=>"month"===e)?.value.toLowerCase();function A(){const e=(0,n.lR)();return(e&&_[e])??(0,n.QC)()}"mart"!==C&&(_.bs="sr-Latn-CS");let M=new WeakMap;const S=v["short-date-short-time"];function T(e){return v[e]}function I(e){const{dateStyle:t,timeStyle:r,hour12:s,year:n,month:i}=e,o={};return t?o.dateStyle=t:n&&(o.year=n,o.month=i||void 0),r&&!o.year&&(o.timeStyle=r,o.hour12="auto"===s?void 0:"always"===s),o}function D(e,t=S){return function(e){let t=M.get(e);if(!t){const r=A(),s=Z(e.timeZone??"system"),n={...e,timeZone:s};t=new Intl.DateTimeFormat(r,n),M.set(e,t)}return t}(t).format(e)}function x(e,t=S){return D(new Date(e),{...t,...h,...l})}function E(e,t=S){return D(new Date(`1970-01-01T${e}Z`),{...t,...h,...a})}function O(e,t=S){const r=o.c9.fromISO(e,{setZone:!0});if(!r.isValid)return e;if(t.timeZone)return D(r.toJSDate(),t);const s=0===r.offset?"UTC":t.timeZone,n={...t,timeZone:s};return r.toLocaleString(n,{locale:A()})}function Z(e){switch(e){case"system":return i.N;case i.L:return"UTC";default:return e}}(0,n.Ml)(()=>{M=new WeakMap}),r.d(t,["_v",0,w])},4146(e,t,r){r.d(t,{A:()=>b});var s=r(32198),n=r(11254),i=r(49186),o=r(65529),a=r(4902),l=r(92474),h=r(53966),c=r(17676),u=r(84952),d=r(91429),g=r(5443),m=r(16930),y=r(92602),p=r(79677);let f=0,b=class extends((0,o.Zt)((0,a.s)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:s}=await Promise.all([r.e(9917),r.e(812),r.e(8559)]).then(r.bind(r,45613));try{return await s(t)}catch(e){const r=t?.portalItem,s=r?.id||"unset",n=r?.portal?.url||y.A.portalUrl;throw h.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+s+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,c.zf)(e)||h.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,u.An)(this.url)}createLayerView(e,t){return Promise.reject(new i.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new i.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,s.Cg)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,s.Cg)([(0,d.MZ)({type:g.A})],b.prototype,"fullExtent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,s.Cg)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,s.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,s.Cg)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,s.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,s.Cg)([(0,d.MZ)({type:m.A})],b.prototype,"spatialReference",void 0),(0,s.Cg)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,s.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,s.Cg)([(0,d.MZ)()],b.prototype,"url",void 0),(0,s.Cg)([(0,d.MZ)({type:p.A})],b.prototype,"visibilityTimeExtent",void 0),(0,s.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,s.Cg)([(0,d.$K)("esri.layers.Layer")],b)},77548(e,t,r){r.d(t,{Gh:()=>E,tk:()=>S,BR:()=>M,p2:()=>C,qd:()=>T,wI:()=>A,G$:()=>D,$x:()=>I,Ov:()=>v,cM:()=>d,UC:()=>g,Qz:()=>m,OP:()=>x,TU:()=>b,F2:()=>y,XX:()=>f,Qi:()=>w,jy:()=>_});var s=r(70333),n=r(11254),i=r(7762),o=(r(84952),r(36563)),a=r(36708),l=r(4146);const h=new WeakMap;function c(e){return!e.destroyed&&(h.has(e)||e.addHandles([(0,a.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof l.A)&&("catalog-dynamic-group"===t.type||c(t))},t=>h.set(e,t),a.pc),(0,o.hA)(()=>h.delete(e))]),h.get(e))}function u(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function d(e){return u(e,"knowledge-graph")&&"layers"in e}function g(e){return u(e,"knowledge-graph-sublayer")}function m(e){return u(e,"link-chart")&&"layers"in e}function y(e){return u(e,"subtype-group")&&"sublayers"in e}function p(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const f={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function _(e){return function(e){return u(e,"catalog-footprint")}(e)||function(e){return u(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return u(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function L(e){const t=e?.type;return"binning"===t||"cluster"===t}function C(e,t){if(!_(e))return;const r=t?.graphic,s="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&s?L(s)?s:null:void 0}return e}return t?.checkFeatureReduction&&s?L(s)?s:null:e}async function A(e,t){const r=s.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;const o=`${e.slice(0,i)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,n.A)(o,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function M(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function S(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function T(e){const t=new i.A;for(const r of e.allLayers.concat(e.allTables))c(r)||p(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function I(e,t){return null}function D(e){return null}function x(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function E(e,t){if(!t||!x(e))return;const r=(e.url,null);r&&(e.url=r)}},73133(e,t,r){const s=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:"unknown"});r.d(t,["j",0,s])},16215(e,t,r){r.d(t,{S:()=>n});const s=Symbol("BasemapInstance");function n(e){return null!=e&&"object"==typeof e&&s in e}r.d(t,["Y",0,s])},79677(e,t,r){r.d(t,{A:()=>u});var s,n=r(32198),i=r(25482),o=r(88930),a=r(91429),l=(r(98623),r(10184)),h=r(36005),c=r(43937);let u=class extends i.o{static{s=this}static get allTime(){return d}static get empty(){return g}static fromArray(e){return new s({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new s({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,s=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===s&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime||"unknown"===e)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,new l.A({value:1,unit:e}),t));let n=this.end;if(n){const r=(0,o.lL)(n,new l.A({value:1,unit:e}),t);n=n.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new s({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return s.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let o,a;return n>=t&&n<=r?o=n:t>=n&&t<=i&&(o=t),r>=n&&r<=i?a=r:i>=t&&i<=r&&(a=i),null==o||null==a||isNaN(o)||isNaN(a)?s.empty:new s({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime||"unknown"===t)return this.clone();const n=new s,{start:i,end:a}=this;return null!=i&&(n.start=(0,o.S1)(i,e,t,r)),null!=a&&(n.end=(0,o.S1)(a,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new s({start:t,end:r})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],u.prototype,"end",void 0),(0,n.Cg)([(0,h.w)("end")],u.prototype,"readEnd",null),(0,n.Cg)([(0,c.K)("end")],u.prototype,"writeEnd",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],u.prototype,"isAllTime",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],u.prototype,"isEmpty",null),(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],u.prototype,"start",void 0),(0,n.Cg)([(0,h.w)("start")],u.prototype,"readStart",null),(0,n.Cg)([(0,c.K)("start")],u.prototype,"writeStart",null),u=s=(0,n.Cg)([(0,a.$K)("esri.time.TimeExtent")],u);const d=new u,g=new u({start:void 0,end:void 0})},10184(e,t,r){r.d(t,{A:()=>c});var s=r(32198),n=r(69540),i=r(25482),o=r(88930),a=r(91429),l=r(73133),h=r(93223);let c=class extends((0,n.OU)(i.o)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,s.Cg)([(0,h.e)(l.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,s.Cg)([(0,a.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,s.Cg)([(0,a.$K)("esri.time.TimeInterval")],c)},751(e,t,r){r.d(t,{CJ:()=>m});var s=r(4718),n=r(93637),i=r(67124),o=r(77548),a=r(59923);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wcs","wms","wmts"]),h=new Set(["integrated-mesh-3dtiles"]),c=new Set(["annotation-feature","catalog","csv","dimension-feature","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","knowledge-graph","map-image","map-notes","media","ogc-feature","oriented-imagery","parquet","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","video","web-tile","wcs","wfs","wms","wmts"]),u=new Set([...c,"link-chart"]);function d(e,t){if(t.restrictedWebMapWriting){const r=function(e){switch(e.layerContainerType){case"basemap-base-layers":return l;case"basemap-ground-layers":return h;case"operational-layers":return"link-chart"===e.origin?u:c;default:return null}}(t);return null==r||r.has(e.type)&&!(0,o.Ov)(e)}return!0}function g(e,t){"maxScale"in e&&(t.maxScale=(0,i.B)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,i.B)(e.minScale)??void 0)}function m(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return(0,a.U4)(r,e),null;if((0,o.Ov)(e)&&!e.isTable)t=e.resourceInfo;else if(d(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,o.Ov)(e)){const r=(0,n.wc)("featureCollection.layers",t),s=r?.[0]?.layerDefinition;s&&g(e,s)}else"group"!==e.type&&g(e,t)}(e,t),t&&(t.id=e.id,"blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,i.B)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,o.Ov)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,s.o8)(t)),t}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4801],{48163(t,e,r){function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function o(){return i(-1,-1)}function c(){return i(1,0)}function f(){return i(0,1)}r.d(e,{fA:()=>i,o8:()=>s,vt:()=>n});const a=u(),h=o(),l=c(),d=f();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:a,UNIT_X:l,UNIT_Y:d,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,negativeOnes:o,ones:u,unitX:c,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["IA",0,h,"Un",0,a])},51850(t,e,r){function n(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function u(t,e,r){return[t,e,r]}function o(t,e=[0,0,0]){const r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function c(){return i(1,1,1)}function f(){return i(1,0,0)}function a(){return i(0,1,0)}function h(){return i(0,0,1)}r.d(e,{CN:()=>u,ci:()=>o,fA:()=>i,o8:()=>s,vt:()=>n});const l=[0,0,0],d=c(),p=f(),y=a(),m=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:y,UNIT_Z:m,ZEROS:l,clone:s,create:n,freeze:u,fromArray:o,fromValues:i,ones:c,unitX:f,unitY:a,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Cb",0,m,"Cw",0,p,"JP",0,y,"Un",0,d,"uY",0,l])},91829(t,e,r){function n(){return[0,0,0,0]}function s(t,e,r,n){return[t,e,r,n]}function i(){return s(1,1,1,1)}function u(){return s(1,0,0,0)}function o(){return s(0,1,0,0)}function c(){return s(0,0,1,0)}function f(){return s(0,0,0,1)}r.d(e,{_Y:()=>f,fA:()=>s,vt:()=>n});const a=[0,0,0,0],h=i(),l=u(),d=o(),p=c(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:y,UNIT_X:l,UNIT_Y:d,UNIT_Z:p,ZEROS:a,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,freeze:function(t,e,r,n){return[t,e,r,n]},fromArray:function(t,e=[0,0,0,0]){const r=Math.min(4,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:s,ones:i,unitW:f,unitX:u,unitY:o,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,h,"uY",0,a,"v7",0,y])},34304(t,e,r){r.d(e,{DF:()=>c,FD:()=>s,ct:()=>f});let n=1e-6;function s(){return n}const i=Math.random,u=Math.PI/180,o=180/Math.PI;function c(t){return t*u}function f(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:s,setEpsilon:function(t){n=t},toDegree:f,toRadian:c},Symbol.toStringTag,{value:"Module"})),r.d(e,["Ov",0,i])},37585(t,e,r){r.d(e,{C:()=>i,Cc:()=>S,Io:()=>m,LI:()=>d,Ln:()=>y,Om:()=>M,Re:()=>c,S8:()=>T,T9:()=>h,WQ:()=>o,aI:()=>I,e$:()=>A,hG:()=>E,hZ:()=>u,hs:()=>p,l0:()=>g,qE:()=>l,t2:()=>b});var n=r(34727),s=r(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t}function u(t,e,r){return t[0]=e,t[1]=r,t}function o(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function c(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function f(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function a(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function h(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}function l(t,e,r,s){return t[0]=(0,n.qE)(e[0],r[0],s[0]),t[1]=(0,n.qE)(e[1],r[1],s[1]),t}function d(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function p(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function y(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function m(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function E(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function _(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function B(t){const e=t[0],r=t[1];return e*e+r*r}function T(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t}function M(t,e){return t[0]*e[0]+t[1]*e[1]}function S(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function g(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function A(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],u=Math.sin(n),o=Math.cos(n);return t[0]=s*o-i*u+r[0],t[1]=s*u+i*o+r[1],t}function b(t,e){return t[0]===e[0]&&t[1]===e[1]}function I(t,e){const r=t[0],n=t[1],i=e[0],u=e[1],o=(0,s.FD)();return Math.abs(r-i)<=o*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-u)<=o*Math.max(1,Math.abs(n),Math.abs(u))}const R=_,w=c,N=f,x=a,v=m,C=E,O=B;Object.freeze(Object.defineProperty({__proto__:null,add:o,angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let u=r*r+n*n;u>0&&(u=1/Math.sqrt(u));let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));const c=(r*s+n*i)*u*o;return c>1?0:c<-1?Math.PI:Math.acos(c)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},clamp:l,copy:i,cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:v,distance:m,div:x,divide:a,dot:M,equals:I,exactEquals:b,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:R,length:_,lerp:S,max:h,min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:N,multiply:f,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:T,projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],u=e[1]-r[1];const o=(n[0]*i+n[1]*u)*(s-1);return i=n[0]*o,u=n[1]*o,t[0]=e[0]+i,t[1]=e[1]+u,t},random:function(t,e=1){const r=2*(0,s.Ov)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:A,round:d,scale:p,scaleAndAdd:y,set:u,sqrDist:C,sqrLen:O,squaredDistance:E,squaredLength:B,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:w,subtract:c,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:g,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,R,"jb",0,w,"xg",0,v])},35522(t,e,r){r.d(e,{$A:()=>b,Bw:()=>i,C:()=>u,Cc:()=>I,DI:()=>S,Io:()=>_,Ln:()=>E,Om:()=>A,Qr:()=>h,Re:()=>f,S8:()=>g,T9:()=>y,WQ:()=>c,Z0:()=>R,_S:()=>d,aI:()=>U,ei:()=>w,fw:()=>x,gL:()=>N,hG:()=>B,hZ:()=>o,hs:()=>m,jk:()=>p,lw:()=>a,m3:()=>T,oW:()=>F,t2:()=>O,tn:()=>l,ze:()=>M});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function c(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function f(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function a(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function h(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function l(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function E(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function _(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function B(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function T(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function g(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function b(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],c=r[2];return t[0]=s*c-i*o,t[1]=i*u-n*c,t[2]=n*o-s*u,t}function I(t,e,r,n){const s=e[0],i=e[1],u=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t}function R(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function w(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function N(t,e,r){return x(t,e,r[0],r[1],r[2],r[3])}function x(t,e,r,n,s,i){const u=e[0],o=e[1],c=e[2],f=n*c-s*o,a=s*u-r*c,h=r*o-n*u,l=n*h-s*a,d=s*f-r*h,p=r*a-n*f,y=2*i;return t[0]=u+f*y+2*l,t[1]=o+a*y+2*d,t[2]=c+h*y+2*p,t}const v=(0,n.vt)(),C=(0,n.vt)();function O(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function U(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],u=e[0],o=e[1],c=e[2],f=(0,s.FD)();return Math.abs(r-u)<=f*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-o)<=f*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-c)<=f*Math.max(1,Math.abs(i),Math.abs(c))}function F(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let u=n*n+s*s+i*i;return u>0?(u=1/Math.sqrt(u),t[0]=n*u,t[1]=s*u,t[2]=i*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const L=f,G=a,P=h,D=_,q=B,Y=i,V=T;Object.freeze(Object.defineProperty({__proto__:null,abs:l,add:c,angle:function(t,e){g(v,t),g(C,e);const r=A(v,C);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,s,i){const u=1-i,o=u*u,c=i*i,f=o*u,a=3*i*o,h=3*c*u,l=c*i;return t[0]=e[0]*f+r[0]*a+n[0]*h+s[0]*l,t[1]=e[1]*f+r[1]*a+n[1]*h+s[1]*l,t[2]=e[2]*f+r[2]*a+n[2]*h+s[2]*l,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:u,cross:b,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],c=r[2],f=s*c-i*o,a=i*u-n*c,h=n*o-s*u,l=Math.sqrt(f*f+a*a+h*h);return t[0]=f/l,t[1]=a/l,t[2]=h/l,t},direction:F,dist:D,distance:_,div:P,divide:h,dot:A,equals:U,exactEquals:O,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,s,i){const u=i*i,o=u*(2*i-3)+1,c=u*(i-2)+i,f=u*(i-1),a=u*(3-2*i);return t[0]=e[0]*o+r[0]*c+n[0]*f+s[0]*a,t[1]=e[1]*o+r[1]*c+n[1]*f+s[1]*a,t[2]=e[2]*o+r[2]*c+n[2]*f+s[2]*a,t},inverse:S,len:Y,length:i,lerp:I,max:y,min:p,mul:G,multiply:a,negate:M,normalize:g,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*u,t[1]=Math.sin(n)*u,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:E,scaleTo:function(t,e){return m(t,t,e/Y(t))},set:o,sign:d,sqrDist:q,sqrLen:V,squaredDistance:B,squaredLength:T,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:L,subtract:f,transformMat3:w,transformMat4:R,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:N,transformQuatValues:x},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,Y,"jb",0,L,"lo",0,q,"uE",0,V])},78955(t,e,r){r.d(e,{Bw:()=>m,C:()=>s,Cc:()=>T,LI:()=>l,Om:()=>B,S8:()=>_,T9:()=>h,WQ:()=>u,Z0:()=>M,aI:()=>g,hG:()=>y,hZ:()=>i,hs:()=>d,jk:()=>a,m3:()=>E,t2:()=>S});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t}function u(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function a(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}function h(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}function l(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function d(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function p(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(r*r+n*n+s*s+i*i)}function y(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return r*r+n*n+s*s+i*i}function m(t){const e=t[0],r=t[1],n=t[2],s=t[3];return Math.sqrt(e*e+r*r+n*n+s*s)}function E(t){const e=t[0],r=t[1],n=t[2],s=t[3];return e*e+r*r+n*n+s*s}function _(t,e){const r=e[0],n=e[1],s=e[2],i=e[3];let u=r*r+n*n+s*s+i*i;return u>0&&(u=1/Math.sqrt(u),t[0]=r*u,t[1]=n*u,t[2]=s*u,t[3]=i*u),t}function B(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function T(t,e,r,n){const s=e[0],i=e[1],u=e[2],o=e[3];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t[3]=o+n*(r[3]-o),t}function M(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12]*u,t[1]=r[1]*n+r[5]*s+r[9]*i+r[13]*u,t[2]=r[2]*n+r[6]*s+r[10]*i+r[14]*u,t[3]=r[3]*n+r[7]*s+r[11]*i+r[15]*u,t}function S(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function g(t,e){const r=t[0],s=t[1],i=t[2],u=t[3],o=e[0],c=e[1],f=e[2],a=e[3],h=(0,n.FD)();return Math.abs(r-o)<=h*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-c)<=h*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(i-f)<=h*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(u-a)<=h*Math.max(1,Math.abs(u),Math.abs(a))}const A=o,b=c,I=f,R=p,w=y,N=m,x=E;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:s,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:R,distance:p,div:I,divide:f,dot:B,equals:g,exactEquals:S,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:N,length:m,lerp:T,max:h,min:a,mul:b,multiply:c,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:_,random:function(t,e=1){const r=n.Ov;let s,i,u,o,c,f;do{s=2*r()-1,i=2*r()-1,c=s*s+i*i}while(c>=1);do{u=2*r()-1,o=2*r()-1,f=u*u+o*o}while(f>=1);const a=Math.sqrt((1-c)/f);return t[0]=e*s,t[1]=e*i,t[2]=e*u*a,t[3]=e*o*a,t},round:l,scale:d,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t},set:i,sqrDist:w,sqrLen:x,squaredDistance:y,squaredLength:E,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:o,transformMat4:M,transformQuat:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],c=r[2],f=r[3],a=f*n+o*i-c*s,h=f*s+c*n-u*i,l=f*i+u*s-o*n,d=-u*n-o*s-c*i;return t[0]=a*f+d*-u+h*-c-l*-o,t[1]=h*f+d*-o+l*-u-a*-c,t[2]=l*f+d*-c+a*-o-h*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},97146(t,e,r){r.d(e,{Dg:()=>i,lC:()=>o,my:()=>u,tM:()=>h,uW:()=>s});var n=r(34275);function s(t){return i(t,!0)}function i(t,e){if(Array.isArray(t)){if(t.length<1024)return t}else if(t.length<1024)return Array.from(t);let r=!0,s=!0;return t.some((t,e)=>(r=r&&0===t,s=s&&t===e,!r&&!s)),r?function(t){if(1===t)return f;if(t<1024)return new Array(t).fill(0);if(t>d.length){const e=Math.max(2*d.length,t);d=new Uint8Array(e)}return new Uint8Array(d.buffer,0,t)}(t.length):s?h(t.length):(0,n.iu)(t)&&t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:function(t,e){for(const r of t){if(r>=65536)return(0,n.iu)(t)?t:new Uint32Array(t);r>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}(t,!e)}function u(t,e=t){return t<=1024?new Array(t):e<=65536?new Uint16Array(t):new Uint32Array(t)}function o(t,e,r){if(0===e.length)return t.slice();if(0===t.length)return e.slice();const n=u(t.length+e.length,r);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}let c=l(131072);const f=[0],a=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function h(t){return 1===t?f:t<1024?Array.from(new Uint16Array(a.buffer,0,t)):t<a.length?new Uint16Array(a.buffer,0,t):(t>c.length&&(c=l(Math.max(2*c.length,t))),new Uint32Array(c.buffer,0,t))}function l(t){const e=new Uint32Array(t);for(let t=0;t<e.length;t++)e[t]=t;return e}let d=new Uint8Array(65536)},13030(t,e,r){r.d(e,{Y$:()=>m,XW:()=>y,qB:()=>R,Qt:()=>Z,My:()=>Q,bf:()=>z,jZ:()=>g,j0:()=>A,Sx:()=>b,E$:()=>I,Qy:()=>nt,h:()=>F,P:()=>D,SL:()=>v,dy:()=>et,ES:()=>st,gH:()=>_,ZD:()=>E,si:()=>w,mJ:()=>W,UL:()=>J,D6:()=>H,Yi:()=>L,An:()=>q,LC:()=>C,xs:()=>T,EC:()=>B,Xm:()=>N,Vp:()=>$,zD:()=>K,m8:()=>j,nS:()=>G,H$:()=>Y,eI:()=>O,td:()=>rt,Eq:()=>S,jz:()=>M,Aj:()=>x,E7:()=>k,Y4:()=>tt,TX:()=>X,Uz:()=>P,ml:()=>V,XP:()=>U});var n=r(34727),s=r(37585),i=r(48163),u=r(78955),o=r(91829);class c{static{this.ElementCount=9}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[u++]}get buffer(){return this.typedBuffer.buffer}}class f{static{this.ElementCount=16}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class a{static{this.ElementCount=1}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}class h{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,s.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var l=r(35522);class d{static{this.ElementCount=3}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,l.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=4}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,u.hZ)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}class y extends a{constructor(t,e=0,r,n){super(Float16Array,t,e,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class m extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class E extends h{constructor(t,e=0,r,n){super(Float16Array,t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class _ extends h{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f32"}}class B extends d{constructor(t,e=0,r,n){super(Float16Array,t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class T extends d{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(T,t,e)}static fromTypedArray(t,e){return new T(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class M extends p{constructor(t,e=0,r,n){super(Float16Array,t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f16"}}class S extends p{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f32"}}class g extends c{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f32"}}class A extends c{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f64"}}class b extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f32"}}class I extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="f64"}}class R extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f64"}}class w extends h{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="f64"}}class N extends d{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(N,t,e)}static fromTypedArray(t,e){return new N(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class x extends p{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f64"}}class v extends a{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="u8"}}class C extends h{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="u8"}}class O extends d{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(O,t,e)}static fromTypedArray(t,e){return new O(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class U extends p{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="u8"}}class F extends a{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u16"}}class L extends h{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u16"}}class G extends d{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="u16"}}class P extends p{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="u16"}}class D extends a{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="u32"}}class q extends h{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="u32"}}class Y extends d{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u32"}}class V extends p{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="u32"}}class z extends a{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="i8"}}class H extends h{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i8"}}class j extends d{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="i8"}}class X extends p{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="i8"}}class Z extends a{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i16"}}class W extends h{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i16"}}class $ extends d{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i16"}}class k extends p{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="i16"}}class Q extends a{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i32"}}class J extends h{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i32"}}class K extends d{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i32"}}class tt extends p{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(tt,t,e)}static{this.ElementType="i32"}}class et extends v{constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return this.typedBuffer[t*this.typedBufferStride]/255}set(t,e){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*(0,n.qE)(e,0,1))}slice(t,e){return this.sliceBuffer(et,t,e)}}class rt extends U{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,u.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,u.jk)(ut,(0,u.T9)(ut,e,o.uY),o.Un),(0,u.hs)(ut,ut,255),(0,u.LI)(ut,ut),super.setVec(t,ut)}get(t,e){return super.get(t,e)/255}set(t,e,r){super.set(t,e,Math.round(255*(0,n.qE)(r,0,1)))}setValues(t,e,r,n,s){(0,u.hZ)(ut,e,r,n,s),this.setVec(t,ut)}slice(t,e){return this.sliceBuffer(rt,t,e)}}class nt extends Z{constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return Math.max(super.get(t)/32767,-1)}set(t,e){super.set(t,Math.round(32767*(0,n.qE)(e,-1,1)))}slice(t,e){return this.sliceBuffer(nt,t,e)}}class st extends W{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,s.hZ)(it,-1,-1),(0,s.T9)(e,(0,s.hs)(e,super.getVec(t,e),1/32767),it)}setVec(t,e){(0,s.qE)(it,e,i.IA,i.Un),(0,s.hs)(it,it,32767),(0,s.LI)(it,it),super.setVec(t,it)}get(t,e){return Math.max(super.get(t,e)/32767,-1)}set(t,e,r){super.set(t,e,Math.round(32767*(0,n.qE)(r,-1,1)))}setValues(t,e,r){(0,s.hZ)(it,e,r),this.setVec(t,it)}slice(t,e){return this.sliceBuffer(st,t,e)}}const it=(0,i.vt)(),ut=(0,o.vt)()},90239(t,e,r){function n(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>n})},1843(t,e,r){r.d(e,{BP:()=>a,l5:()=>h});var n=r(13030),s=r(90239),i=r(4431),u=r(620),o=r(85079);class c{constructor(t,e,r=0){this.layout=t,this.byteOffset=r,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const n=t.fields.get(e);this[e]=new n.constructor(this.buffer,r+n.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new c(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const s=this.stride;if(s%4==0){const i=new Uint32Array(t.buffer,e*s,n*s/4);new Uint32Array(this.buffer,r*s,n*s/4).set(i)}else{const i=new Uint8Array(t.buffer,e*s,n*s);new Uint8Array(this.buffer,r*s,n*s).set(i)}return this}get usedMemory(){return this.byteLength}dispose(){}}class f{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:p(t[1].constructor)})))}freeze(){return this}get locations(){return(0,o.Xk)((0,i.U)(this))}vec2f16(t,e){return this._appendField(t,n.ZD,e),this}vec2f(t,e){return this._appendField(t,n.gH,e),this}vec2f64(t,e){return this._appendField(t,n.si,e),this}vec3f16(t,e){return this._appendField(t,n.EC,e),this}vec3f(t,e){return this._appendField(t,n.xs,e),this}vec3f64(t,e){return this._appendField(t,n.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.jz,e),this}vec4f(t,e){return this._appendField(t,n.Eq,e),this}vec4f64(t,e){return this._appendField(t,n.Aj,e),this}mat3f(t,e){return this._appendField(t,n.jZ,e),this}mat3f64(t,e){return this._appendField(t,n.j0,e),this}mat4f(t,e){return this._appendField(t,n.Sx,e),this}mat4f64(t,e){return this._appendField(t,n.E$,e),this}vec4u8(t,e){return this._appendField(t,n.XP,e),this}f16(t,e){return this._appendField(t,n.XW,e),this}f32(t,e){return this._appendField(t,n.Y$,e),this}f64(t,e){return this._appendField(t,n.qB,e),this}u8(t,e){return this._appendField(t,n.SL,e),this}u16(t,e){return this._appendField(t,n.h,e),this}i8(t,e){return this._appendField(t,n.bf,e),this}vec2i8(t,e){return this._appendField(t,n.D6,e),this}vec2i16(t,e){return this._appendField(t,n.mJ,e),this}vec2u8(t,e){return this._appendField(t,n.LC,e),this}vec2u16(t,e){return this._appendField(t,n.Yi,e),this}vec4u16(t,e){return this._appendField(t,n.Uz,e),this}vec4i16(t,e){return this._appendField(t,n.E7,e),this}u32(t,e){return this._appendField(t,n.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,u.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,s.GJ)(e.ElementType),i=this._stride;this._fields.set(t,{constructor:e,size:n,offset:i,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,s.GJ)(r.constructor.ElementType);t=Math.floor((t+n-1)/n)*n,r.offset=t,t+=r.size,e=Math.max(e,n)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new c(this,t)}createView(t,e){return new c(this,t,e)}clone(){const t=new f;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t}get stride(){return this._stride}get fields(){return this._fields}}function a(){return new f}class h{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:d(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const l=[n.Y$,n.gH,n.xs,n.Eq,n.jZ,n.Sx,n.qB,n.si,n.Xm,n.Aj,n.j0,n.E$,n.SL,n.LC,n.eI,n.XP,n.h,n.Yi,n.nS,n.Uz,n.P,n.An,n.H$,n.ml,n.bf,n.D6,n.m8,n.TX,n.Qt,n.mJ,n.Vp,n.E7,n.My,n.UL,n.zD,n.Y4];function d(t){return`${t.ElementType}_${t.ElementCount}`}function p(t){return y.get(t)}const y=new Map;l.forEach(t=>y.set(d(t),t))},4431(t,e,r){r.d(e,{U:()=>i});var n=r(63907),s=r(74038);function i(t,e=0){const r=t.stride;return t.fields.entries().map(([t,i])=>{const u=i.constructor.ElementCount,o=function(t){switch(t){case"u8":return n.pe.UNSIGNED_BYTE;case"u16":return n.pe.UNSIGNED_SHORT;case"u32":return n.pe.UNSIGNED_INT;case"i8":return n.pe.BYTE;case"i16":return n.pe.SHORT;case"i32":return n.pe.INT;case"f16":return n.pe.HALF_FLOAT;case"f32":return n.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(i.constructor.ElementType),c=i.offset,f=i.optional?.glNormalized??!1,a=i.optional?.integer??!1;return new s._(t,u,o,c,r,f,e,a)}).toArray()}},10614(t,e,r){r.d(e,{Tz:()=>u,aT:()=>i});var n=r(34727),s=r(35522);function i(t,e,r,n,s,i=2,u=0){const c=1/(Math.abs(r)+Math.abs(n)+Math.abs(s)),f=r*c,a=n*c,h=s<=0?(f>=0?1:-1)*(1-Math.abs(a)):f,l=s<=0?(a>=0?1:-1)*(1-Math.abs(f)):a,d=e*i+u;t[d]=o(h),t[d+1]=o(l)}function u(t,e,r,n=2,i=0){const u=r*n+i,o=c(e[u]),f=c(e[u+1]),a=1-Math.abs(o)-Math.abs(f);return t[2]=a,a<0?(t[0]=(o>=0?1:-1)*(1-Math.abs(f)),t[1]=(f>=0?1:-1)*(1-Math.abs(o))):(t[0]=o,t[1]=f),(0,s.S8)(t,t)}function o(t){return(0,n.qE)(Math.round(32767*t),-32767,32767)}function c(t){return(0,n.qE)(t/32767,-1,1)}r(51850)},620(t,e,r){r.d(e,{O_:()=>i,vA:()=>s}),r(48163),r(78955),(0,r(91829).vt)();class n{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function s(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new n(`${e} at ${t}`)}}function i(t,e,r,n){let s,i=(r[0]-t[0])/e[0],u=(n[0]-t[0])/e[0];i>u&&(s=i,i=u,u=s);let o=(r[1]-t[1])/e[1],c=(n[1]-t[1])/e[1];if(o>c&&(s=o,o=c,c=s),i>c||o>u)return!1;o>i&&(i=o),c<u&&(u=c);let f=(r[2]-t[2])/e[2],a=(n[2]-t[2])/e[2];return f>a&&(s=f,f=a,a=s),!(i>a||f>u||(a<u&&(u=a),u<0))}},99058(t,e,r){r.d(e,{I$:()=>E,gr:()=>T,In:()=>M});var n=r(4431),s=r(1843),i=r(63907);class u{constructor(t){this.internalFormat=t,this.channelByteStride=4,this.dataType=i.ld.UNSIGNED_INT,this.elementArrayConstructor=Uint32Array,this.pixelFormat=c[t],this.channels=o[this.pixelFormat],this.byteStride=this.channelByteStride*this.channels}}const o={36244:1,33320:2,36249:4},c={[i.H0.R32UI]:36244,[i.H0.RG32UI]:33320,[i.H0.RGBA32UI]:36249},f=[new u(i.H0.RGBA32UI),new u(i.H0.RG32UI),new u(i.H0.R32UI)];function a(t){let e=1/0,r=null;for(const n of f){const s=n.byteStride,i=(s-t%s)%s;i<e&&(e=i,r=n)}return r??f[2]}var h=r(13030),l=r(90239);class d{constructor(t,e,r){this.elementCount=t,this.elementType=e,this.bufferViewConstructor=r,this.byteSize=function(t){return(0,l.GJ)(t.ElementType)*t.ElementCount}(r)}}const p={u8:new d(1,"uint",h.SL),u32:new d(1,"uint",h.P),vec4u32:new d(4,"uint",h.ml),vec4u8:new d(4,"uint",h.XP),unorm8:new d(1,"float",h.dy),vec4unorm8:new d(4,"float",h.td),snorm16:new d(1,"float",h.Qy),vec2snorm16:new d(2,"float",h.ES),f16:new d(1,"float",h.XW),vec4f16:new d(4,"float",h.jz),f32:new d(1,"float",h.Y$),vec2f32:new d(2,"float",h.gH),vec3f32:new d(3,"float",h.xs),vec4f32:new d(4,"float",h.Eq),mat3f32:new d(9,"float",h.jZ)};class y{constructor(t,e,r,n){this._declaration=t,this._byteOffset=e,this._creationInfo=n,this._startTexel=Math.floor(e/r);const s=n.byteSize;this._numTexels=Math.ceil((e+s)/r)-this._startTexel,this._texelByteStride=r}get name(){return this._declaration.name}get fieldType(){return this._declaration.type}get byteOffset(){return this._byteOffset}get startTexel(){return this._startTexel}get numTexels(){return this._numTexels}get texelByteStride(){return this._texelByteStride}get elementType(){return this._creationInfo.elementType}get elementCount(){return this._creationInfo.elementCount}get byteSize(){return this._creationInfo.byteSize}get bufferViewConstructor(){return this._creationInfo.bufferViewConstructor}}class m{constructor(t,e,r,n=0){this.layout=t,this.byteOffset=n,this._bufferViews=new Map,this.buffer="number"==typeof e?new ArrayBuffer(e*t.byteStride):e,this.texelElementBuffer=new r(this.buffer,n);const s=this._bufferViews;for(const[t,e]of this.layout.fields)s.set(t,new e.bufferViewConstructor(this.buffer,n+e.byteOffset,this.layout.byteStride))}get stride(){return this.layout.byteStride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this._bufferViews.get(t);return null!=r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}copyItem(t,e){const{buffer:r,layout:n,byteOffset:s}=this,i=new Uint8Array(r),u=n.byteStride,o=s+t*u,c=s+e*u;i.copyWithin(c,o,o+u)}get usedMemory(){return this.byteLength}}const E=(0,s.BP)().vec3f("position").u16("componentIndex",{integer:!0}).freeze(),_=(0,s.BP)().vec2u8("sideness").freeze(),B=(0,n.U)(_),T=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),M=(0,s.BP)().vec3f("position0").vec3f("position1").vec2i16("normalCompressed").vec2i16("normal2Compressed").u16("componentIndex",{integer:!0}).u8("variantOffset",{glNormalized:!0}).u8("variantStroke").u8("variantExtension",{glNormalized:!0}).freeze(),S=(0,n.U)(T,1),g=(0,n.U)(M,1);B.concat(S),B.concat(g),new class{constructor(t){this._fields=new Map;let e=0;const r=[];for(let n=0;n<t.length;++n){const s=t[n],{type:i}=s,u=p[i];r.push({declaration:s,byteOffset:e,creationInfo:u}),e+=u.byteSize}this.texelFormatInfo=a(e);const{texelByteStride:n}=this;e=Math.ceil(e/n)*n;const s=e,i=this._fields;for(const{declaration:t,byteOffset:e,creationInfo:s}of r)i.set(t.name,new y(t,e,n,s));this.byteStride=s,this.texelStride=Math.ceil(s/n)}get texelByteStride(){return this.texelFormatInfo.byteStride}get texelElementArrayConstructor(){return this.texelFormatInfo.elementArrayConstructor}get stride(){return this.byteStride}get fields(){return this._fields}createBuffer(t){return new m(this,t,this.texelElementArrayConstructor)}createView(t,e){return new m(this,t,this.texelElementArrayConstructor,e)}}([{name:"color",type:"vec4unorm8"},{name:"lineWidth",type:"u8"},{name:"extensionLength",type:"u8"},{name:"materialType",type:"u8"},{name:"opacity",type:"unorm8"},{name:"elevationOffset",type:"f32"}])},93406(t,e,r){r.d(e,{K:()=>o});var n=r(34727),s=r(15142),i=r(35522),u=r(51850);function o(t,e,r){const n=t.vertices.position,s=t.vertices.componentIndex,u=p.position0,o=p.position1,a=p.faceNormal0,l=p.faceNormal1,{edges:d,normals:y}=f(t),m=d.length/4,E=e.allocate(m);let _=0;const B=m,S=r?.allocate(B);let A=0,b=0,I=0;h.length=0;for(let t=0;t<m;++t){const e=4*t;n.getVec(d.data[e],u),n.getVec(d.data[e+1],o);const r=h.pushNew();r.index=4*t,r.length=(0,i.Io)(u,o)}h.sort((t,e)=>e.length-t.length);const R=new Array,w=new Array;h.forAll(({length:t,index:f})=>{const h=d.data[f],m=d.data[f+1],B=d.data[f+2],N=d.data[f+3],x=-1===N;if(n.getVec(h,u),n.getVec(m,o),x){const t=3*B;(0,i.hZ)(a,y.data[t],y.data[t+1],y.data[t+2]),(0,i.C)(l,a),p.componentIndex=s.get(h),p.cosAngle=(0,i.Om)(a,l)}else{let t=3*B;if((0,i.hZ)(a,y.data[t],y.data[t+1],y.data[t+2]),t=3*N,(0,i.hZ)(l,y.data[t],y.data[t+1],y.data[t+2]),p.componentIndex=s.get(h),p.cosAngle=(0,i.Om)(a,l),function(t,e){return t.cosAngle>e}(p,M))return;p.cosAngle<-.9999&&(0,i.C)(l,a)}b+=t,I++,x||function(t,e){return t.cosAngle<e}(p,g)?(e.write(E,_++,p),R.push(t)):c(p,T)&&(S&&r&&r.write(S,A++,p),w.push(t))});const N=new Float32Array(R.reverse()),x=new Float32Array(w.reverse()),v=S&&r?{instancesData:S.slice(0,A),lodInfo:{lengths:x}}:void 0;return{regular:{instancesData:E.slice(0,_),lodInfo:{lengths:N}},silhouette:v,averageEdgeLength:b/I}}function c(t,e){const r=(0,n.XM)(t.cosAngle);return(0,i.oW)(m,t.position1,t.position0),r*((0,i.Om)((0,i.$A)(y,t.faceNormal0,t.faceNormal1),m)>0?-1:1)>e}function f(t){const e=t.faces.length/3,r=t.faces,n=t.neighbors,s=t.vertices.position;l.length=d.length=0;for(let t=0;t<e;t++){const e=3*t,u=n[e],o=n[e+1],c=n[e+2],f=r[e],a=r[e+1],h=r[e+2];s.getVec(f,E),s.getVec(a,_),s.getVec(h,B),(0,i.Re)(_,_,E),(0,i.Re)(B,B,E),(0,i.$A)(E,_,B),(0,i.S8)(E,E),d.pushArray(E),(-1===u||f<a)&&(l.push(f),l.push(a),l.push(t),l.push(u)),(-1===o||a<h)&&(l.push(a),l.push(h),l.push(t),l.push(o)),(-1===c||h<f)&&(l.push(h),l.push(f),l.push(t),l.push(c))}return{edges:l,normals:d}}class a{constructor(){this.index=0,this.length=0}}const h=new s.A({allocator:t=>t||new a,deallocator:null}),l=new s.A({deallocator:null}),d=new s.A({deallocator:null}),p=new class{constructor(){this.position0=(0,u.vt)(),this.position1=(0,u.vt)(),this.faceNormal0=(0,u.vt)(),this.faceNormal1=(0,u.vt)(),this.componentIndex=0,this.cosAngle=0}},y=(0,u.vt)(),m=(0,u.vt)(),E=(0,u.vt)(),_=(0,u.vt)(),B=(0,u.vt)(),T=(0,n.kU)(4),M=Math.cos(T),S=(0,n.kU)(35),g=Math.cos(S)},44801(t,e,r){r.d(e,{o6:()=>R,HY:()=>O,hx:()=>w,Jb:()=>C});var n=r(34727),s=r(97146);function i(t,e,r){const i=Array.isArray(t),a=i?t.length/e:t.byteLength/(4*e),h=i?t:new Uint32Array(t,0,a*e),l=r?.minReduction??0,d=r?.originalIndices||null,p=d?d.length:0,y=r?.componentOffsets||null;let m=0;if(y)for(let t=0;t<y.length-1;t++){const e=y[t+1]-y[t];e>m&&(m=e)}else m=a;const E=Math.floor(1.1*m)+1;(null==f||f.length<2*E)&&(f=new Uint32Array((0,n.cU)(2*E)));for(let t=0;t<2*E;t++)f[t]=0;let _=0;const B=!!y&&!!d,T=B?p:a;let M=(0,s.my)(a);const S=new Uint32Array(p),g=1.96;let A=0!==l?Math.ceil(4*g*g/(l*l)*l*(1-l)):T,b=1,I=y?y[1]:T;for(let t=0;t<T;t++){if(t===A){const e=1-_/t;if(e+g*Math.sqrt(e*(1-e)/t)<l)return null;A*=2}if(t===I){for(let t=0;t<2*E;t++)f[t]=0;if(d)for(let t=y[b-1];t<y[b];t++)S[t]=M[d[t]];I=y[++b]}const r=B?d[t]:t,n=r*e,s=c(h,n,e);let i=s%E,o=_;for(;0!==f[2*i+1];){if(f[2*i]===s){const t=f[2*i+1]-1;if(u(h,n,t*e,e)){o=M[t];break}}i++,i>=E&&(i-=E)}o===_&&(f[2*i]=s,f[2*i+1]=r+1,_++),M[r]=o}if(0!==l&&1-_/a<l)return null;if(B){for(let t=y[b-1];t<S.length;t++)S[t]=M[d[t]];M=(0,s.uW)(S)}const R=i?new Array(_):new Uint32Array(_*e);_=0;for(let t=0;t<T;t++)M[t]===_&&(o(h,(B?d[t]:t)*e,R,_*e,e),_++);if(d&&!B){const t=new Uint32Array(p);for(let e=0;e<t.length;e++)t[e]=M[d[e]];M=(0,s.uW)(t)}return{buffer:Array.isArray(R)?R:R.buffer,indices:M,uniqueCount:_}}function u(t,e,r,n){for(let s=0;s<n;s++)if(t[e+s]!==t[r+s])return!1;return!0}function o(t,e,r,n,s){for(let i=0;i<s;i++)r[n+i]=t[e+i]}function c(t,e,r){let n=0;for(let s=0;s<r;s++)n=t[e+s]+n|0,n=n+(n<<11)+(n>>>2)|0;return n>>>0}let f=null;function a(t,e,r){const n=e/3,s=new Uint32Array(r+1),i=new Uint32Array(r+1),u=(t,e)=>{t<e?s[t+1]++:i[e+1]++};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];u(r,n),u(n,s),u(s,r)}let o=0,c=0;for(let t=0;t<r;t++){const e=s[t+1],r=i[t+1];s[t+1]=o,i[t+1]=c,o+=e,c+=r}const f=new Uint32Array(6*n),a=s[r],h=(t,e,r)=>{if(t<e){const n=s[t+1]++;f[2*n]=e,f[2*n+1]=r}else{const n=i[e+1]++;f[2*a+2*n]=t,f[2*a+2*n+1]=r}};for(let e=0;e<n;e++){const r=t[3*e],n=t[3*e+1],s=t[3*e+2];h(r,n,e),h(n,s,e),h(s,r,e)}const l=(t,e)=>{const r=2*t,n=e-t;for(let t=1;t<n;t++){const e=f[r+2*t],n=f[r+2*t+1];let s=t-1;for(;s>=0&&f[r+2*s]>e;s--)f[r+2*s+2]=f[r+2*s],f[r+2*s+3]=f[r+2*s+1];f[r+2*s+2]=e,f[r+2*s+3]=n}};for(let t=0;t<r;t++)l(s[t],s[t+1]),l(a+i[t],a+i[t+1]);const d=new Int32Array(3*n),p=(e,r)=>e===t[3*r]?0:e===t[3*r+1]?1:e===t[3*r+2]?2:-1,y=(t,e)=>{const r=p(t,e);d[3*e+r]=-1},m=(t,e,r,n)=>{const s=p(t,e);d[3*e+s]=n;const i=p(r,n);d[3*n+i]=e};for(let t=0;t<r;t++){let e=s[t];const r=s[t+1];let n=i[t];const u=i[t+1];for(;e<r&&n<u;){const r=f[2*e],s=f[2*a+2*n];r===s?(m(t,f[2*e+1],s,f[2*a+2*n+1]),e++,n++):r<s?(y(t,f[2*e+1]),e++):(y(s,f[2*a+2*n+1]),n++)}for(;e<r;)y(t,f[2*e+1]),e++;for(;n<u;)y(f[2*a+2*n],f[2*a+2*n+1]),n++}return d}var h=r(1843),l=r(99058),d=r(87811),p=r(35522),y=r(51850),m=r(10614);class E{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?S:M}write(t,e,r){b.seed=this._edgeHashFunction(r);const n=b.getIntRange(0,255),s=b.getIntRange(0,this.settings.variants-1),i=b.getFloat(),u=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(e,r.position0),t.position1.setVec(e,r.position1),t.componentIndex.set(e,r.componentIndex),t.variantOffset.set(e,n),t.variantStroke.set(e,s),t.variantExtension.set(e,u)}}const _=new Float32Array(6),B=new Uint32Array(_.buffer),T=new Uint32Array(1);function M(t){return _[0]=t.position0[0],_[1]=t.position0[1],_[2]=t.position0[2],_[3]=t.position1[0],_[4]=t.position1[1],_[5]=t.position1[2],T[0]=31*(31*(31*(31*(31*(166811+B[0])+B[1])+B[2])+B[3])+B[4])+B[5],T[0]}function S(t){const e=_;e[0]=g(t.position0[0]),e[1]=g(t.position0[1]),e[2]=g(t.position0[2]),e[3]=g(t.position1[0]),e[4]=g(t.position1[1]),e[5]=g(t.position1[2]),T[0]=5381;for(let t=0;t<B.length;t++)T[0]=31*T[0]+B[t];return T[0]}function g(t){return Math.round(1e4*t)/1e4}const A=(0,y.vt)(),b=new d.A;var I=r(93406);function R(t){const e=w(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return x.updateSettings(t.writerSettings),v.updateSettings(t.writerSettings),(0,I.K)(e,x,v)}function w(t,e,r,n){if(e){const e=a(r,n,t.count);return new N(r,n,e,t)}const s=i(t.buffer,t.stride/4,{originalIndices:r}),u=a(s.indices,n,s.uniqueCount);return{faces:s.indices,facesLength:s.indices.length,neighbors:u,vertices:l.I$.createView(s.buffer)}}class N{constructor(t,e,r,n){this.faces=t,this.facesLength=e,this.neighbors=r,this.vertices=n}}const x=new class{constructor(){this._commonWriter=new E}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return l.gr.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r),(0,p.WQ)(A,r.faceNormal0,r.faceNormal1),(0,p.S8)(A,A);const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;(0,m.aT)(n,e,A[0],A[1],A[2],s)}},v=new class{constructor(){this._commonWriter=new E}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return l.In.createBuffer(t)}write(t,e,r){this._commonWriter.write(t,e,r);{const{typedBuffer:n,typedBufferStride:s}=t.normalCompressed;(0,m.aT)(n,e,r.faceNormal0[0],r.faceNormal0[1],r.faceNormal0[2],s)}{const{typedBuffer:n,typedBufferStride:s}=t.normal2Compressed;(0,m.aT)(n,e,r.faceNormal1[0],r.faceNormal1[1],r.faceNormal1[2],s)}}},C=(0,h.BP)().vec3f("position0").vec3f("position1"),O=(0,h.BP)().vec3f("position0").vec3f("position1").u16("componentIndex",{integer:!0})},85079(t,e,r){r.d(e,{Sk:()=>u,Xk:()=>s,_u:()=>i});var n=r(21818);function s(t){let e=0;return(0,n.z)(new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n})))}function i(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}function u(t){return i(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>n});class n{constructor(t,e,r,n,s,i=!1,u=0,o=!1){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=s,this.normalized=i,this.divisor=u,this.integer=o}}},63907(t,e,r){const n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},i=Object.values(s),u={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};r.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,s,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,i,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,u,"pe",0,n,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5856,9397],{69397(t,e,r){r.d(e,{Qf:()=>l,Qh:()=>i,lM:()=>s});var n=r(34275);function s(t){if(!t)return 0;let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r],!1));return e}function i(t){if(!t)return 0;if("number"==typeof t[0])return l(t);if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return a(t,8);let r=c;for(let n=0;n<e;n++)r+=o(t[n]);return r}(t);let e=u;for(const r in t)t.hasOwnProperty(r)&&(e+=o(t[r]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?i(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?a(e,16):0:0),0)}function a(t,e){return c+t.length*e}const u=32,c=16,f=145},35856(t,e,r){r.r(e),r.d(e,{SplatSortWorkerInput:()=>s,SplatSortWorkerOutput:()=>i,clear:()=>k,destroy:()=>M,sort:()=>b});var n=r(69397);class s{constructor(t,e,r,n,s,i,o,l,a=!1){this.addedTiles=t,this.removedTileHandles=e,this.visibleTileHandles=r,this.sortedAtlasIndices=n,this.numGaussians=s,this.directionX=i,this.directionY=o,this.directionZ=l,this.preciseSort=a}}class i{constructor(t,e){this.sortedAtlasIndices=t,this.usedMemory=e}}let o=null,l=0,a=null,u=0,c=null,f=0;const d=new Map;function h(){let t=(0,n.Qf)(o,a,c);for(const e of d.values())t+=(0,n.Qh)(e);return t}function g(t,e){let r=Math.max(1,t);for(;r<e;)r=Math.ceil(1.5*r);return r}function w(t){t>l&&(l=g(l,t),o=new Uint32Array(l)),o.fill(0,0,t)}function p(t){t<=u||(u=g(u,t),a=new Float64Array(u))}function m(t){return t>f&&(f=g(f,t),c=new Uint32Array(f)),c}function y(t,e,r,n,s){const i=t.length,l=Math.max(10,Math.min(20,Math.round(Math.log2(i/.25)))),a=1+(1<<l);w(a);const u=o,c=s-n,f=c>=1e-6,h=f?(1<<l)/c:0;if(f)for(let e=0;e<i;e++)u[(t[e]-n)*h>>>0]++;else u[0]=i;let g=u[0];for(let t=1;t<a;t++)g+=u[t],u[t]=g;let p=0;for(let s=0;s<e.length;s++){const i=d.get(e[s]);if(null==i)throw new Error("Gaussian splat sort worker is missing resident tile data");const o=p+i.gaussianCount;for(let e=0;e<i.pageIds.length&&p<o;e++){const s=1024*i.pageIds[e],l=Math.min(o-p,1024);for(let e=0;e<l;e++,p++)r[--u[f?(t[p]-n)*h>>>0:0]]=s+e}}if(p!==i)throw new Error("Gaussian splat sort worker received inconsistent resident tile data")}async function b(t){const{addedTiles:e,removedTileHandles:r,visibleTileHandles:n,sortedAtlasIndices:s,numGaussians:o,directionX:l,directionY:u,directionZ:c,preciseSort:f}=t;for(let t=0;t<r.length;t++)d.delete(r[t]);for(let t=0;t<e.length;t++){const r=e[t];d.set(r.handle,r)}if(0===o)return{result:new i(s,h()),transferList:[s.buffer]};p(o);const g=a.subarray(0,o),w=s.subarray(0,o);let b=0,M=1/0,k=-1/0;for(let t=0;t<n.length;t++){const e=d.get(n[t]);if(null==e)throw new Error("Gaussian splat sort worker is missing resident tile data");const{relativePositions:r,gaussianCount:s,originX:i,originY:o,originZ:a}=e,f=b+s,h=l*i+u*o+c*a;for(let t=0;b<f;b++,t+=3){const e=r[t]*l+r[t+1]*u+r[t+2]*c+h;g[b]=e,M=Math.min(M,e),k=Math.max(k,e)}}if(b!==o)throw new Error("Gaussian splat sort worker received inconsistent resident tile data");if(f){const t=m(o).subarray(0,o);!function(t,e){let r=0;for(let n=0;n<t.length;n++){const s=d.get(t[n]);if(null==s)throw new Error("Gaussian splat sort worker is missing resident tile data");const i=r+s.gaussianCount;for(let t=0;t<s.pageIds.length&&r<i;t++){const n=1024*s.pageIds[t],o=Math.min(i-r,1024);for(let t=0;t<o;t++,r++)e[r]=n+t}}if(r!==e.length)throw new Error("Gaussian splat sort worker received inconsistent resident tile data")}(n,t);const e=new Array(o);for(let t=0;t<o;t++)e[t]=t;e.sort((t,e)=>g[t]-g[e]||t-e);for(let r=0;r<o;r++)w[r]=t[e[r]]}else o>0&&y(g,n,w,M,k);return{result:new i(s,h()),transferList:[s.buffer]}}function M(){k()}function k(){d.clear(),a=null,u=0,c=null,f=0,o=null,l=0}}}]);
|