@arcgis/core 5.1.0-next.81 → 5.1.0-next.82
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/analysis/ShadowCast/DiscreteOptions.d.ts +12 -0
- package/analysis/ShadowCast/TotalDurationOptions.d.ts +12 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/040884cec4b84dd1bb17.js +1 -0
- package/assets/esri/core/workers/chunks/05c5f68e117fc58ae801.js +1 -0
- package/assets/esri/core/workers/chunks/074f5e6aaeafca13bf72.js +1 -0
- package/assets/esri/core/workers/chunks/{7bd1d624f4f4a11a31e8.js → 086d7cdfa92a649c9f7b.js} +1 -1
- package/assets/esri/core/workers/chunks/{0eed2b1b06355ab89013.js → 0c074c46d106ca4d3bad.js} +1 -1
- package/assets/esri/core/workers/chunks/{c758e16b57c96ce88294.js → 1768f1a7e3caa6074d91.js} +1 -1
- package/assets/esri/core/workers/chunks/{85d3475667c503ec4fc6.js → 186bfde8c552e3b42302.js} +1 -1
- package/assets/esri/core/workers/chunks/1a35121a0c2595a41fdb.js +1 -0
- package/assets/esri/core/workers/chunks/1ab66600579fa4232d7b.js +1 -0
- package/assets/esri/core/workers/chunks/1e3fe89970c57a883fe5.js +1 -0
- package/assets/esri/core/workers/chunks/{824051af00e7a1f05ed0.js → 230e0e43f8e771950397.js} +1 -1
- package/assets/esri/core/workers/chunks/26f804c92077c11c626d.js +1 -0
- package/assets/esri/core/workers/chunks/28a45bd26eb5c9b3ec7c.js +1 -0
- package/assets/esri/core/workers/chunks/38f1a86b8dd9ee684ee5.js +596 -0
- package/assets/esri/core/workers/chunks/{71fe127734f33d020a44.js → 475394218caaa4cd3e86.js} +1 -1
- package/assets/esri/core/workers/chunks/475409026288f0981ce2.js +1 -0
- package/assets/esri/core/workers/chunks/4e206957b28253ddc1a3.js +1 -0
- package/assets/esri/core/workers/chunks/5cc38ac051d3d0557920.js +1 -0
- package/assets/esri/core/workers/chunks/{992cd87ba0ab6346f692.js → 64e268ebac0b62076f81.js} +1 -1
- package/assets/esri/core/workers/chunks/{003fd7745966fe03510c.js → 65ac73de5bb133c6bf89.js} +1 -1
- package/assets/esri/core/workers/chunks/6675d56f49d07a97dc40.js +1 -0
- package/assets/esri/core/workers/chunks/{484d6c1b0fe1633515b7.js → 72f8f4cfa0842d325fb0.js} +1 -1
- package/assets/esri/core/workers/chunks/{283d39dfb1625b5a74db.js → 747e258f57f0543c836e.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd4f431511edd975a53b.js → 7acf82763aeba44049d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d8e944b192aad4cf986.js → 7b505112c7e6d9b7a239.js} +1 -1
- package/assets/esri/core/workers/chunks/7b8466f892a38a53c600.js +1 -0
- package/assets/esri/core/workers/chunks/{77dd719516138afb1a2a.js → 8af9a78cf316581ea482.js} +1 -1
- package/assets/esri/core/workers/chunks/988e91cc6cf88c34c2de.js +1 -0
- package/assets/esri/core/workers/chunks/9c402657f63a4d5668d0.js +1 -0
- package/assets/esri/core/workers/chunks/9ea23cd4b2664c08b670.js +1 -0
- package/assets/esri/core/workers/chunks/9f51a69b8f1937a8794a.js +1 -0
- package/assets/esri/core/workers/chunks/a28124bba6b43efd74cc.js +1 -0
- package/assets/esri/core/workers/chunks/af762422a65c551dcd54.js +1 -0
- package/assets/esri/core/workers/chunks/{056fd7847caaff2c9514.js → af8bc56cf1404afc3028.js} +1 -1
- package/assets/esri/core/workers/chunks/b9e163f4a898e50cc854.js +1 -0
- package/assets/esri/core/workers/chunks/{444f0f51b3ee0b9845a5.js → bb2f6b0fcdfb8b158e26.js} +1 -1
- package/assets/esri/core/workers/chunks/{4af39fa53bc0b79101ed.js → bc8a74da48b08309875f.js} +1 -1
- package/assets/esri/core/workers/chunks/{026d3fa331caec1ea3d2.js → bf4dd8e50704e4040966.js} +1 -1
- package/assets/esri/core/workers/chunks/c19e3f6027b6526de359.js +1 -0
- package/assets/esri/core/workers/chunks/ce4dfc3a470230ddc9e4.js +1 -0
- package/assets/esri/core/workers/chunks/{8ea4584e07ccc85caabd.js → d11de13537b623739e14.js} +1 -1
- package/assets/esri/core/workers/chunks/d897412b99b9fba44bb4.js +1 -0
- package/assets/esri/core/workers/chunks/{035dbb0217f83108fa89.js → db86a1119e4e58ecfbda.js} +1 -1
- package/assets/esri/core/workers/chunks/dcb7a3ff59677b1cf0f1.js +1 -0
- package/assets/esri/core/workers/chunks/{5fe97253f80c797fad7f.js → df8a3d3cac454d42e14d.js} +1 -1
- package/assets/esri/core/workers/chunks/dfe1139124fda0d6c059.js +1 -0
- package/assets/esri/core/workers/chunks/{8b8f391f27774aec6db9.js → e0b27bceb397482bd0e8.js} +1 -1
- package/assets/esri/core/workers/chunks/{84821dff3bcc51161802.js → e89dc473f46a5584d2ef.js} +32 -32
- package/assets/esri/core/workers/chunks/{01ee18782a50279f907e.js → f4220b6eab0865318033.js} +1 -1
- package/assets/esri/core/workers/chunks/{42336e0d1ef88737b078.js → f468c6ea2818a1f97e19.js} +1 -1
- package/assets/esri/core/workers/chunks/fce2306a1b31c6680f90.js +1 -0
- package/assets/esri/core/workers/chunks/fcf51697c361e0075cc2.js +1 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
- package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +15 -0
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_en.json +1 -1
- package/chunks/ShadowCastVisualize.glsl.js +33 -15
- package/chunks/arcgis-knowledge-client-core-simd.js +1 -1
- package/chunks/arcgis-knowledge-client-core.js +1 -1
- package/config.js +1 -1
- package/core/workers/registry.js +1 -1
- package/form/elements/inputs/MultipleChoiceInput.d.ts +6 -6
- package/form/elements/inputs/MultipleChoiceInput.js +1 -1
- package/kernel.js +1 -1
- package/layers/BaseDynamicLayer.js +1 -1
- package/layers/BaseTileLayer.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/MapImageLayer.js +1 -1
- package/layers/TileLayer.js +1 -1
- package/layers/WMSLayer.js +1 -1
- package/layers/WMTSLayer.js +1 -1
- package/layers/WebTileLayer.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/TiledImagery.js +1 -1
- package/layers/support/imageBitmapUtils.js +1 -1
- package/package.json +1 -1
- package/request/process.js +1 -1
- package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +37 -0
- package/rest/knowledgeGraph/CreateReplicaResponse.js +2 -0
- package/rest/knowledgeGraph/ReplicaDefinition.d.ts +91 -0
- package/rest/knowledgeGraph/ReplicaDefinition.js +2 -0
- package/rest/knowledgeGraph/ReplicasInformationResponse.d.ts +24 -0
- package/rest/knowledgeGraph/ReplicasInformationResponse.js +2 -0
- package/rest/knowledgeGraph/UnregisterReplicaResponse.d.ts +44 -0
- package/rest/knowledgeGraph/UnregisterReplicaResponse.js +2 -0
- package/rest/knowledgeGraph/wasmInterface/replicaToWasmEncodedFactories.js +2 -0
- package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +2 -0
- package/rest/knowledgeGraphService.d.ts +50 -1
- package/rest/knowledgeGraphService.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/BaseDynamicLayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/VectorTileLayerView2D.js +1 -1
- package/views/2d/layers/WMSLayerView2D.js +1 -1
- package/views/2d/layers/WMTSLayerView2D.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/layers/ElevationLayerView3D.js +1 -1
- package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerWorker.js +2 -0
- package/views/3d/layers/IntegratedMesh3DTilesLayerWorkerHandle.js +2 -0
- package/views/3d/layers/TileLayerView3D.js +1 -1
- package/views/3d/layers/WMTSLayerView3D.js +1 -1
- package/views/3d/layers/graphics/tessellationUtils.js +1 -1
- package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +2 -0
- package/views/3d/layers/support/makeScheduleFunction.js +1 -1
- package/views/3d/support/renderInfoUtils/polygon.js +1 -1
- package/views/3d/terrain/TerrainData.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/VisualVariablePassParameters.js +1 -1
- package/views/3d/webgl-engine/shaders/ShadowCastVisualize.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/colorRampParameters.js +2 -0
- package/views/support/TextureCompressionWorker.js +1 -1
- package/views/support/TextureCompressionWorkerHandle.js +1 -1
- package/views/webgl/Texture.js +1 -1
- package/widgets/BatchAttributeForm/templates/support/hashElementTemplate.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/css.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/05c3146d87d917606193.js +0 -1
- package/assets/esri/core/workers/chunks/0b77c124b743067e4155.js +0 -1
- package/assets/esri/core/workers/chunks/11241781baaed346af52.js +0 -1
- package/assets/esri/core/workers/chunks/1d9560eb8b21b9e76616.js +0 -1
- package/assets/esri/core/workers/chunks/2bd69a7734d170e190ed.js +0 -1
- package/assets/esri/core/workers/chunks/2c87c3112a43db8624f6.js +0 -1
- package/assets/esri/core/workers/chunks/3a58708217a9c11836ab.js +0 -1
- package/assets/esri/core/workers/chunks/3bbf684ee2484eb44c9f.js +0 -1
- package/assets/esri/core/workers/chunks/49fb9c47070641bce9a9.js +0 -1
- package/assets/esri/core/workers/chunks/5417308eba30e668b1ee.js +0 -1
- package/assets/esri/core/workers/chunks/62b3e933f548ce354b99.js +0 -1
- package/assets/esri/core/workers/chunks/6e70e922331704b92a08.js +0 -1
- package/assets/esri/core/workers/chunks/7c7c11c0fde8b63e330b.js +0 -1
- package/assets/esri/core/workers/chunks/7cee7ffaf941a4fe23b0.js +0 -596
- package/assets/esri/core/workers/chunks/7f55eef696e9ed717bfc.js +0 -1
- package/assets/esri/core/workers/chunks/89dbea6f436d45a3b185.js +0 -1
- package/assets/esri/core/workers/chunks/9d216e30d04ea21fc8a2.js +0 -1
- package/assets/esri/core/workers/chunks/a5d8d6f3c0c8de474efd.js +0 -1
- package/assets/esri/core/workers/chunks/a809b811121099a87a98.js +0 -1
- package/assets/esri/core/workers/chunks/c02ba921c0a32d2021e3.js +0 -1
- package/assets/esri/core/workers/chunks/c3c19b62d948d53118a8.js +0 -1
- package/assets/esri/core/workers/chunks/c46a4adea39636a96d03.js +0 -1
- package/assets/esri/core/workers/chunks/c5507480344176fad241.js +0 -1
- package/assets/esri/core/workers/chunks/c6030271bd6d39b6e1db.js +0 -1
- package/assets/esri/core/workers/chunks/d1a7d13e1d48abcd7bf1.js +0 -1
- package/assets/esri/core/workers/chunks/dcbc4072c18278c2b67d.js +0 -1
- package/assets/esri/core/workers/chunks/e610d24539a675fb054b.js +0 -1
- package/assets/esri/core/workers/chunks/ecb7ede6a8e6c05e4c6c.js +0 -1
- package/assets/esri/core/workers/chunks/f227b34cce6843df0fb6.js +0 -1
- package/request/ImageWithType.js +0 -2
- package/views/3d/layers/support/fetchTile.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3090],{66344(e,t,i){i.d(t,{q:()=>a});const r=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(e=10485760,t=.3){this._maxSize=e,this._maxClientSizeRatio=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(e){this._clients.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._clients.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(e,t){const i=this._db.get(e.id+t);return i?.size??0}put(e,t,i,s,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==i&&this._notifyRemove(t,a.entry,a.size,0)),s>this._maxSize)return void this._notifyRemove(t,i,s,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return r||console.warn(`Refusing to cache entry with size ${s} for key ${t}`),void this._notifyRemove(t,i,0,0);const l=1+Math.max(o,-4)- -3;this._db.set(t,new n(i,s,l)),this._size+=s,e.size+=s,this._checkSize()}updateSize(e,t){t=e.id+t;const i=this._db.get(t);if(!i)return;this._size-=i.size,e.size-=i.size;let r=i.entry.usedMemory;for(;r>this._maxSize;){const e=this._notifyRemove(t,i.entry,r,1);if(!(null!=e&&e>0))return void this._db.delete(t);r=e}i.size=r,this._size+=r,e.size+=r,this._checkSize()}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach((e,r)=>{const s=e.lifetime;i[s]=(i[s]||0)+e.size,this._clients.forEach(i=>{const{id:s,name:n}=i;if(r.startsWith(s)){const i=t[n]||0;t[n]=i+e.size}})});const r={};this._clients.forEach(e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[i]||0;t[i]=s,r[i]=Math.round(100*e.hitRate)+"%"}else r[i]="0%"});const s=Object.keys(t);s.sort((e,i)=>t[i]-t[e]),s.forEach(i=>e[i]=Math.round(t[i]/2**20)+"MB / "+r[i]);for(let t=i.length-1;t>=0;--t){const r=i[t];r&&(e["Priority "+(t+-3-1)]=Math.round(r/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._clients.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._clients.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,i]of this._db)t.startsWith(e.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i,r){const s=this._clients.get(e.split(o)[0])?.removeFunc,n=s?.(t,r,i);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._clients.forEach(e=>this._checkSizeLimits(this._maxClientSize,e)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const i=t??this;if(i.size<=e)return;const r=t?.id;let s=!0;for(;s;){s=!1;for(const[n,a]of this._db)if(0===a.lifetime&&(!r||n.startsWith(r))){const r=t??this._clients.get(n.split(o)[0]);if(this._purgeItem(n,a,r),i.size<=.9*e)return;s||=this._db.has(n)}}for(const[s,n]of this._db)if(!r||s.startsWith(r)){const r=t??this._clients.get(s.split(o)[0]);if(this._purgeItem(s,n,r),i.size<=.9*e)return}}_purgeItem(e,t,i){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const r=this._notifyRemove(e,t.entry,t.size,1);null!=r&&r>0&&(this._size+=r,i&&(i.size+=r),t.lives=t.lifetime,t.size=r,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}new s(0);class n{constructor(e,t,i){this.entry=e,this.size=t,this.lifetime=i,this.lives=i}}const o=":";class a{constructor(e,t){this.removeFunc=t,this.id="",this.name="",this.size=0,this._storage=new s(e,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},60999(e,t,i){i.d(t,{DZ:()=>f,Ke:()=>p,Tj:()=>c,UT:()=>g,aD:()=>m,jJ:()=>u});var r=i(5482),s=i(69622),n=i(97768),o=i(17676),a=i(10107),l=i(64108);function u(e,t,i){return(0,o.Lx)(e.map((e,r)=>t.apply(i,[e,r])))}async function c(e,t,i){return(await(0,o.Lx)(e.map((e,r)=>t.apply(i,[e,r])))).map(e=>e.value)}function h(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function p(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return d(e)}}async function f(e){try{return h(await e)}catch(e){return(0,o.QP)(e),d(e)}}function g(e,t){return new y(e,t)}let y=class extends s.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,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:i}=this._abortController;this.promise=e(i),this.promise.then(e=>{this._result=h(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,n.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,a.MZ)()],y.prototype,"value",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"error",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"finished",null),(0,r.Cg)([(0,a.MZ)()],y.prototype,"promise",void 0),(0,r.Cg)([(0,a.MZ)()],y.prototype,"_result",void 0),y=(0,r.Cg)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],y);class m{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,r.mS)(t,await this.acquire(),!1),await e()}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}}},83027(e,t,i){i.d(t,{h:()=>r});const r=i(29953).ho},35982(e,t,i){i.d(t,{B:()=>c});var r=i(4576),s=i(71511),n=i(36563),o=i(53966),a=i(97768),l=i(17676),u=i(83027);class c{constructor(e,t,i,r,s={}){this._mainMethod=t,this._transferLists=i,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,u.h)(e,{...s,schedule:r}).then(e=>{null!=this._thread||this._destroyed?e.close():(this._thread=e,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(e=>{s.hasInitialize&&e.invoke("initialize",{});for(const t of this._listeners)this._connectListenerToClient(t,e);this._onClientConnected(e)}))}),this._promise.catch(t=>o.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const i=new h(e,t);return this._listeners.push(i),this._connectListener(i),(0,n.hA)(()=>{(0,r.TF)(this._listeners,i),i.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const e of this._listeners)e.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(e,t,i){return this.invokeMethod(this._mainMethod,e,t,i)}invokeMethod(e,t,i,r){if(this._thread){const s=this._transferLists[e],n=s?s(t):[];return this._thread.invoke(e,t,{transferList:n,signal:i,jobPriority:r})}return this._promise?this._promise.then(()=>((0,l.Te)(i),this.invokeMethod(e,t,i))):Promise.reject((0,l.NK)())}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(d):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject((0,l.NK)())}get promise(){return this._promise}_onClientConnected(e){}_connectListener(e){this._thread&&e.add(this._thread.on(e.eventName,e.callback))}_connectListenerToClient(e,t){e.add(t.on(e.eventName,e.callback))}}class h{constructor(e,t){this.eventName=e,this.callback=t,this._handles=new s.A}add(e){this._handles.add(e)}destroy(){this._handles.destroy()}}function d(){}},54239(e,t,i){i.d(t,{A:()=>y});var r,s=i(5482),n=i(4576),o=i(66552),a=i(25482),l=i(86211),u=i(67076),c=i(91429),h=i(43937),d=i(36005);const p=(0,o.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),f=p.jsonValues.slice();(0,n.Xy)(f,"orthometric");const g=(0,o.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let y=r=class extends a.o{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,i){return p.write(e,t,i)}readHeightModel(e,t,i){return p.read(e)||(i?.messages&&i.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:i})),null)}readHeightUnit(e,t,i){return g.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readHeightUnitService(e,t,i){return(0,l.LA)(e)||g.read(e)||(i?.messages&&i.messages.push(m(e,{context:i})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new r({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const i=(0,l.k1)(t);return new r({heightModel:e.heightModel,heightUnit:i??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new r;return t.read(e,{origin:"web-scene"}),t}};function m(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s.Cg)([(0,c.MZ)({type:p.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f,default:"ellipsoidal",write:{isRequired:!0}}}}})],y.prototype,"heightModel",void 0),(0,s.Cg)([(0,h.K)("web-scene","heightModel")],y.prototype,"writeHeightModel",null),(0,s.Cg)([(0,d.w)(["web-scene","service"],"heightModel")],y.prototype,"readHeightModel",null),(0,s.Cg)([(0,c.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:{writer:g.write,isRequired:!0}}}}})],y.prototype,"heightUnit",void 0),(0,s.Cg)([(0,d.w)("web-scene","heightUnit")],y.prototype,"readHeightUnit",null),(0,s.Cg)([(0,d.w)("service","heightUnit")],y.prototype,"readHeightUnitService",null),(0,s.Cg)([(0,c.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],y.prototype,"vertCRS",void 0),(0,s.Cg)([(0,d.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],y.prototype,"readVertCRS",null),y=r=(0,s.Cg)([(0,c.$K)("esri.geometry.HeightModelInfo")],y)},159(e,t,i){i.d(t,{A:()=>u});var r,s=i(5482),n=i(69540),o=i(25482),a=i(91429),l=i(99157);let u=r=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.steps=[]}getInverse(){const e=new r;for(let t=this.steps.length-1;t>=0;t--){const i=this.steps[t];e.steps.push(i.getInverse())}return e}};(0,s.Cg)([(0,a.MZ)({type:[l.A],nonNullable:!0,json:{name:"geoTransforms"}})],u.prototype,"steps",void 0),u=r=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],u)},99157(e,t,i){i.d(t,{A:()=>l});var r,s=i(5482),n=i(69540),o=i(25482),a=i(91429);let l=r=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,a.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,t,i)=>{t[i]=!e}}})],l.prototype,"isInverse",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkt",void 0),(0,s.Cg)([(0,a.MZ)({json:{write:!0}})],l.prototype,"wkid",void 0),l=r=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],l)},9762(e,t,i){i.r(t),i.d(t,{projectBuffer:()=>s});var r=i(49208);function s(e,t,i,s,n,o,a=Math.floor(e.length/3)){const l=(0,r.jd)(t,n);if(null==l)return!1;if(l===r.pO){if(e===s&&i===o)return!0;const t=i+3*a;for(let r=i,n=o;r<t;r++,n++)s[n]=e[r]??0;return!0}const u=i+3*a;for(let t=i,r=o;t<u;t+=3,r+=3)l(e,t,s,r);return!0}},49208(e,t,i){i.d(t,{Tp:()=>h,jd:()=>c,pO:()=>p,w5:()=>u});var r=i(34727),s=i(86211),n=i(73941),o=i(79258),a=i(34403),l=i(21325);const u={2:{5:p,7:null,9:null,10:p,1:M,6:null,8:null,0:null,3:g,11:y,2:p,4:I},5:{5:p,7:null,9:null,10:p,1:M,6:null,8:null,0:null,3:g,11:y,2:p,4:I},7:{5:null,7:p,9:null,10:p,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:f,7:null,9:null,10:f,1:function(e,t,i,r){const s=e[t]/E,n=x-2*Math.atan(Math.exp(-e[t+1]/E)),o=E+(e[t+2]??0),a=Math.cos(n)*o;i[r]=Math.cos(s)*a,i[r+1]=Math.sin(s)*a,i[r+2]=Math.sin(n)*o},6:null,8:null,0:null,3:p,11:function(e,t,i,r){f(e,t,i,r),y(i,r,i,r)},2:f,4:function(e,t,i,r){f(e,t,i,r),I(i,r,i,r)}},4:{5:z,7:null,9:null,10:z,1:function(e,t,i,r){z(e,t,i,r),M(i,r,i,r)},6:null,8:null,0:null,3:function(e,t,i,r){z(e,t,i,r),g(i,r,i,r)},11:function(e,t,i,r){z(e,t,i,r),y(i,r,i,r)},2:z,4:p},1:{5:R,7:null,9:null,10:R,1:p,6:null,8:null,0:null,3:function(e,t,i,r){R(e,t,i,r),g(i,r,i,r)},11:function(e,t,i,r){R(e,t,i,r),y(i,r,i,r)},2:R,4:function(e,t,i,r){R(e,t,i,r),I(i,r,i,r)}},6:{5:null,7:C,9:null,10:C,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:b,10:b,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:M,6:w,8:v,0:null,3:g,11:y,2:p,4:I},11:{5:m,7:null,9:null,10:m,1:function(e,t,i,r){m(e,t,i,r),M(i,r,i,r)},6:null,8:null,0:null,3:function(e,t,i,r){m(e,t,i,r),g(i,r,i,r)},11:p,2:m,4:function(e,t,i,r){m(e,t,i,r),I(i,r,i,r)}}};function c(e,t){return h(e,t)?.projector}function h(e,t){if(null==e||null==t)return null;if(A.source.spatialReference===e&&A.dest.spatialReference===t)return A;const i=d(e,A.source),r=d(t,A.dest);return 0===i&&0===r?(0,l.aI)(e,t)?A.projector=p:A.projector=null:A.projector=u[i][r],A}function d(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.GA)(e,1)),(0,n.jA)(e)?t.spatialReferenceId=1:(0,l.oT)(e)?t.spatialReferenceId=2:(0,l.K8)(e)?t.spatialReferenceId=3:(0,l.r1)(e)?t.spatialReferenceId=11:e.wkt===n.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===n.FY.wkt?t.spatialReferenceId=6:e.wkt===n.LJ.wkt?t.spatialReferenceId=8:(0,n.q8)(e)?t.spatialReferenceId=7:(0,n.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function p(e,t,i,r){e!==i&&(i[r++]=e[t++],i[r++]=e[t++],i[r]=e[t]??0)}function f(e,t,i,r){i[r]=k*(e[t]/E),i[r+1]=k*(x-2*Math.atan(Math.exp(-e[t+1]/E))),i[r+2]=e[t+2]??0}function g(e,t,i,s){!function(e,t,i,s,n){const o=.4999999*Math.PI,a=(0,r.qE)(P*e[t+1],-o,o),l=Math.sin(a);i[s++]=P*e[t]*n.radius,i[s++]=n.halfSemiMajorAxis*Math.log((1+l)/(1-l)),i[s]=e[t+2]??0}(e,t,i,s,o.$O)}function y(e,t,i,r){i[r]=e[t]*T,i[r+1]=e[t+1]*T,i[r+2]=e[t+2]??0}function m(e,t,i,r){i[r]=e[t]*L,i[r+1]=e[t+1]*L,i[r+2]=e[t+2]??0}function _(e,t,i,r,s){const n=s+(e[t+2]??0),o=P*e[t],a=P*e[t+1],l=Math.cos(a)*n;i[r]=Math.cos(o)*l,i[r+1]=Math.sin(o)*l,i[r+2]=Math.sin(a)*n}function v(e,t,i,r){_(e,t,i,r,o.Sw.radius)}function w(e,t,i,r){_(e,t,i,r,o.sH.radius)}function M(e,t,i,r){_(e,t,i,r,o.$O.radius)}function S(e,t,i,s,n){const o=e[t],a=e[t+1],l=e[t+2]??0,u=Math.sqrt(o*o+a*a+l*l),c=(0,r.YN)(l/(0===u?1:u)),h=Math.atan2(a,o);i[s++]=k*h,i[s++]=k*c,i[s]=u-n}function b(e,t,i,r){S(e,t,i,r,o.Sw.radius)}function C(e,t,i,r){S(e,t,i,r,o.sH.radius)}function R(e,t,i,r){S(e,t,i,r,o.$O.radius)}function I(e,t,i,r){!function(e,t,i,r,s){const n=P*e[t],o=P*e[t+1],a=e[t+2]??0,l=Math.sin(o),u=Math.cos(o),c=s.radius/Math.sqrt(1-s.eccentricitySquared*l*l);i[r++]=(c+a)*u*Math.cos(n),i[r++]=(c+a)*u*Math.sin(n),i[r++]=(c*(1-s.eccentricitySquared)+a)*l}(e,t,i,r,o.$O)}function z(e,t,i,r){const s=a.TP,n=e[t],l=e[t+1],u=e[t+2]??0;let c,h,d,p,f,g,y,m,_,v,w,M,S,b,C,R,I,z,A,P,x;c=Math.abs(u),h=n*n+l*l,d=Math.sqrt(h),p=h+u*u,f=Math.sqrt(p),P=Math.atan2(l,n),g=u*u/p,y=h/p,b=s.a2/f,C=s.a3-s.a4/f,y>.3?(m=c/f*(1+y*(s.a1+b+g*C)/f),A=Math.asin(m),v=m*m,_=Math.sqrt(1-v)):(_=d/f*(1-g*(s.a5-b-y*C)/f),A=Math.acos(_),v=1-_*_,m=Math.sqrt(v)),w=1-o.$O.eccentricitySquared*v,M=o.$O.radius/Math.sqrt(w),S=s.a6*M,b=d-M*_,C=c-S*m,I=_*b+m*C,R=_*C-m*b,z=R/(S/w+I),A+=z,x=I+R*z/2,u<0&&(A=-A),i[r++]=k*P,i[r++]=k*A,i[r]=x}const A={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},P=(0,r.kU)(1),k=(0,r.KJ)(1),x=.5*Math.PI,E=o.$O.radius,T=E*Math.PI/180,L=180/(E*Math.PI)},91218(e,t,i){i.r(t),i.d(t,{canProjectWithoutEngine:()=>B,initializeProjection:()=>F,isEqualBaseGCS:()=>K,isLoaded:()=>E,isLoadedOrLoad:()=>T,isLoadedOrLoadFor:()=>L,load:()=>U,project:()=>j,projectAsync:()=>N,projectExtent:()=>se,projectMany:()=>H,projectMultipoint:()=>Q,projectOrLoad:()=>D,projectOrLoadMany:()=>V,projectPoint:()=>Y,projectPolygon:()=>ie,projectPolyline:()=>ee,projectWithoutEngine:()=>W,requiresLoad:()=>O,test:()=>G,tryProject:()=>Z,unload:()=>q});var r=i(49186),s=i(17676),n=i(62788),o=i(95488),a=i(51850),l=i(21276),u=i(73941),c=i(5443),h=i(91075),d=i(48526),p=i(86738),f=i(39829),g=i(82799),y=i(16930),m=i(98764),_=i(159),v=i(9762),w=i(49208);function M(e,t,i,r,s,n){return S[0]=e,S[1]=t,S[2]=i,(0,v.projectBuffer)(S,r,0,s,n,0)}const S=(0,a.vt)();var b=i(60408),C=i(21325),R=i(52006);let I=null,z=null,A=null,P=null,k={};const x=new o.I;function E(){return!!(z?.isLoaded()&&A?.isLoaded()&&P?.isLoaded())}function T(){return!!E()||((0,n.gc)(x),U(),!1)}function L(e,t){return!e||!t||B(e,t)||T()}function O(e,t){return!B(e,t)&&!E()}async function U(e){null==I&&(I=Promise.all([i.e(3276).then(i.bind(i,83276)).then(e=>(z=e,z.load())),i.e(8377).then(i.bind(i,8377)).then(e=>(A=e,A.load())),i.e(2158).then(i.bind(i,12158)).then(e=>(P=e,P.load()))])),await I,(0,s.Te)(e),x.notify()}function j(e,t,i){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),H(e,e[0].spatialReference,t,i)):((0,l.f)(e),H([e],e.spatialReference,t,i)[0])}function H(e,t,i,r){if(null==t||null==i)return e;if(B(t,i,r))return e.map(e=>W(e,t,i));if(null==r?.geographicTransformation&&(0,u.jA)(t))return H(e.map(e=>W(e,t,y.A.WGS84)),y.A.WGS84,i,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,u.jA)(i))return H(e,t,y.A.WGS84).map(e=>W(e,y.A.WGS84,i));if(!E())throw new $;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:P.getTransformation(t,i,r.areaOfInterestExtent)||new _.A};else if(!r?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,i);let s=k[e];s||(s=P.getTransformation(t,i)||new _.A,k[e]=s),r={geographicTransformation:s,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof h.A?z.executeMany(e,i,r):A.executeMany(e,i,r)}function Z(e,t,i){try{return j(e,t,i)}catch(e){return null}}function D(e,t){const i=V([e],t);return null!=i.pending?{pending:i.pending,geometry:null}:null!=i.geometries?{pending:null,geometry:i.geometries[0]}:{pending:null,geometry:null}}function V(e,t,i){if(!E())for(const i of e)if(null!=i&&!(0,C.aI)(i.spatialReference,t)&&(0,C.fn)(i.spatialReference)&&(0,C.fn)(t)&&!B(i.spatialReference,t))return(0,n.gc)(x),{pending:U(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,C.aI)(e.spatialReference,t)?e:(0,C.fn)(e.spatialReference)&&(0,C.fn)(t)?j(e,t,i):null)}}class $ extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function q(){I=null,z=null,A=null,P=null,k={}}const G={get loadPromise(){return I}};async function N(e,t,i){if((0,s.Te)(i),!e)return e;const r=V(Array.isArray(e)?e:[e],t,i);if(r.pending)return await r.pending,(0,s.Te)(i),N(e,t,i);const n=r.geometries??[];return Array.isArray(e)?n:n[0]}function B(e,t,i){return!(i?.areaOfInterestExtent||i?.extendedParams||i?.geographicTransformation)&&(!!(0,C.aI)(e,t)||(0,C.fn)(e)&&(0,C.fn)(t)&&!!(0,w.jd)(e,t))}function K(e,t){if((0,C.aI)(e,t))return!0;if(!(0,C.fn)(e)||!(0,C.fn)(t))return!1;const i=(0,C.oT)(e)||(0,C.K8)(e)||(0,C.x1)(e),r=(0,C.oT)(t)||(0,C.K8)(t)||(0,C.x1)(t);return i&&r}async function F(e,t,i,r){if(E())return(0,s.NO)(r);if(Array.isArray(e)){for(const{source:t,dest:i,options:s}of e)if(t&&i&&!B(t,i,s))return U(r)}else if(e&&t&&!B(e,t,i))return U(r);return(0,s.NO)(r)}function W(e,t,i){return e?(0,b.fT)(e)?J(e,t,new p.A,i,0):(0,b.ZC)(e)?ne(e,t,new c.A,i,0):(0,b.Bi)(e)?re(e,t,new f.A,i,0):(0,b.Rg)(e)?te(e,t,new g.A,i,0):(0,b.U9)(e)?X(e,t,new d.A,i,0):null:null}function Y(e,t,i=t.spatialReference,r=0){return null!=i&&null!=e.spatialReference&&null!=J(e,e.spatialReference,t,i,r)}function J(e,t,i,r,s){ue[0]=e.x,ue[1]=e.y;const n=e.z;return ue[2]=void 0!==n?n:s,(0,v.projectBuffer)(ue,t,0,ue,r,0)?(i.x=ue[0],i.y=ue[1],i.spatialReference=r,void 0!==n||(0,u.xP)(r)?(i.z=ue[2],i.hasZ=!0):(i.z=void 0,i.hasZ=!1),void 0===e.m?(i.m=void 0,i.hasM=!1):(i.m=e.m,i.hasM=!0),i):null}function Q(e,t,i=t.spatialReference,r=0){return null!=e.spatialReference&&null!=i&&null!=X(e,e.spatialReference,t,i,r)}function X(e,t,i,r,s){const{points:n,hasZ:o,hasM:a}=e,l=[],u=n.length,c=[];for(const e of n)c.push(e[0],e[1],o?e[2]:s);if(!(0,v.projectBuffer)(c,t,0,c,r,0,u))return null;const h=le(o,r);for(let e=0;e<u;++e){const t=3*e,i=c[t],r=c[t+1];h&&a?l.push([i,r,c[t+2],n[e][3]]):h?l.push([i,r,c[t+2]]):a?l.push([i,r,n[e][2]]):l.push([i,r])}return i.points=l,i.spatialReference=r,i.hasZ=o,i.hasM=a,i}function ee(e,t,i=t.spatialReference,r=0){return null!=e.spatialReference&&null!=i&&null!=te(e,e.spatialReference,t,i,r)}function te(e,t,i,r,s){const{curvePaths:n,paths:o,hasZ:a,hasM:l}=e;if(!(n?ae(n,a??!1,l??!1,t,i.curvePaths=[],r,s):oe(o,a??!1,l??!1,t,i.paths,r,s)))return null;const u=le(a,r);return i.spatialReference=r,i.hasZ=u,i.hasM=l,i}function ie(e,t,i=t.spatialReference,r=0){return null!=e.spatialReference&&null!=i&&null!=re(e,e.spatialReference,t,i,r)}function re(e,t,i,r,s){const{curveRings:n,rings:o,hasZ:a,hasM:l}=e;return(n?ae(n,a??!1,l??!1,t,i.curveRings=[],r,s):oe(o,a??!1,l??!1,t,i.rings,r,s))?(i.spatialReference=r,i.hasZ=le(a,r),i.hasM=l,i):null}function se(e,t,i=t.spatialReference,r=0){return null!=e.spatialReference&&null!=i&&null!=ne(e,e.spatialReference,t,i,r)}function ne(e,t,i,r,s){const{xmin:n,ymin:o,xmax:a,ymax:l,hasZ:u,hasM:c}=e;if(!M(n,o,u?e.zmin:s,t,ue,r))return null;const h=le(u,r);return i.xmin=ue[0],i.ymin=ue[1],h&&(i.zmin=ue[2]),M(a,l,u?e.zmax:s,t,ue,r)?(i.xmax=ue[0],i.ymax=ue[1],h&&(i.zmax=ue[2]),c&&(i.mmin=e.mmin,i.mmax=e.mmax),i.spatialReference=r,i):null}function oe(e,t,i,r,s,n,o=0){const a=new Array;for(const i of e)for(const e of i)a.push(e[0],e[1],t?e[2]:o);if(!(0,v.projectBuffer)(a,r,0,a,n,0))return!1;let l=0;s.length=0;const u=t?3:2,c=le(t,n);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);c||t.pop(),i&&t.push(r[u]),e.push(t)}s.push(e)}return!0}function ae(e,t,i,r,s,n,o=0){const a=new Array;for(const i of e)for(const e of i){if((0,R.FG)(e))return!1;if((0,R.aO)(e)){const[i,r]=e.c;a.push(i[0],i[1],t?i[2]:o,r[0],r[1],o);continue}if((0,R.n1)(e)){const[i,r,s]=e.b;a.push(i[0],i[1],t?i[2]:o,r[0],r[1],o,s[0],s[1],o);continue}const i=e;a.push(i[0],i[1],t?i[2]:o)}if(!(0,v.projectBuffer)(a,r,0,a,n,0))return!1;let l=0;s.length=0;const u=t?3:2,c=le(t,n);for(const t of e){const e=new Array;for(const r of t){const t=a.slice(l,l+=3);if(c||t.pop(),i&&t.push((0,R.yP)(r)[u]),(0,R.FG)(r))return!1;if((0,R.aO)(r)){const i=a[l++],r=a[l++];++l,e.push({c:[t,[i,r]]});continue}if((0,R.n1)(r)){const i=a[l++],r=a[l++];++l;const s=a[l++],n=a[l++];++l,e.push({b:[t,[i,r],[s,n]]});continue}e.push(t)}s.push(e)}return!0}function le(e,t){return e||(0,u.xP)(t)||(0,C.aI)(t,m.Y0)}const ue=(0,a.vt)()},98764(e,t,i){i.d(t,{GD:()=>o,Y0:()=>u,lO:()=>c});var r=i(73941),s=i(16930),n=i(21325);const o=new s.A(r.fv),a=new s.A(r.FY),l=new s.A(r.LJ),u=new s.A(r.Ro);function c(e){const t=h.get(e);if(t)return t;let i=o;if(e)if(e===a)i=a;else if(e===l)i=l;else{const t=e.wkid,r=e.latestWkid;if(null!=t||null!=r)(0,n.tl)(t)||(0,n.tl)(r)?i=a:((0,n.ZL)(t)||(0,n.ZL)(r))&&(i=l);else{const t=e.wkt2??e.wkt;if(t){const e=t.toUpperCase();e===d?i=a:e===p&&(i=l)}}}return h.set(e,i),i}const h=new Map,d=a.wkt.toUpperCase(),p=l.wkt.toUpperCase()},34403(e,t,i){i.d(t,{TP:()=>o});var r=i(79258);Math.PI;const s=r.$O.radius,n=r.$O.eccentricitySquared,o={a1:s*n,a2:s*n*s*n,a3:s*n*n/2,a4:s*n*s*n*2.5,a5:s*n+s*n*n/2,a6:1-n};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius},38732(e,t,i){i.r(t),i.d(t,{default:()=>R});var r=i(5482),s=i(11254),n=i(49186),o=i(97768),a=i(25728),l=i(17676),u=i(84952),c=i(91429),h=i(54239),d=i(4146),p=i(89186),f=i(18768),g=i(34287),y=i(8303),m=i(10873),_=i(87378),v=i(35982);class w extends v.B{constructor(e=null){super("LercWorker","_decode",{_decode:e=>[e.buffer]},e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,i){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},i):Promise.resolve(null)}release(){--this.ref<=0&&(M.forEach((e,t)=>{e===this&&M.delete(t)}),this.destroy())}}const M=new Map;var S=i(36005);let b=class extends((0,p.f)((0,f.b)((0,g.q)((0,y.A)((0,a.M)(d.A)))))){constructor(...e){super(...e),this.capabilities={operations:{supportsTileMap:!1}},this.copyright=null,this.heightModelInfo=null,this.path=null,this.minScale=void 0,this.maxScale=void 0,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=M.get(e);return t||(null!=e?(t=new w(t=>e.immediate.schedule(t)),M.set(e,t)):(t=new w,M.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,o.Gz)(this._lercDecoder)}readCapabilities(e,t){const i=t.capabilities&&t.capabilities.split(",").map(e=>e.toLowerCase().trim());return i?{operations:{supportsTileMap:i.includes("tilemap")}}:{operations:{supportsTileMap:!1}}}readVersion(e,t){let i=t.currentVersion;return i||(i=9.3),i}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{if(e.typeKeywords)for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.A("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(l.QP).then(()=>this._fetchImageService(t))),Promise.resolve(this)}async fetchTile(e,t,i,r){const o=r?.signal,a={responseType:"array-buffer",signal:o,useQueue:r?.useQueue,priority:r?.priority},l={noDataValue:r?.noDataValue,returnFileInfo:!0};await this.load(),await this._fetchTileAvailability(e,t,i,r);const u=await(0,s.A)(this.getTileUrl(e,t,i),a),c=await this._lercDecoder.decode(u.data,l,o);if(!c)throw new n.A("elevation-layer:tile-decode-failed","Failed to decode elevation tile data.");return new _.A({values:c.pixelData,width:c.width,height:c.height,noDataValue:c.noDataValue})}getTileUrl(e,t,i){const r=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,s=(0,u.x0)({...this.parsedUrl.query,blankTile:!r&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${i}${s?"?"+s:""}`}async queryElevation(e,t){const{query:r}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),r(this,e,t)}async createElevationSampler(e,t){const{createSampler:r}=await i.e(91).then(i.bind(i,90091));return(0,l.Te)(t),r(this,e,t)}_fetchTileAvailability(e,t,i,r){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,i,r):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},i=await(0,s.A)(this.parsedUrl.path,t);i.ssl&&(this.url=this.url?.replace(/^http:/i,"https:")),this.sourceJSON=i.data,this.read(i.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile[C]}};(0,r.Cg)([(0,c.MZ)({readOnly:!0})],b.prototype,"capabilities",void 0),(0,r.Cg)([(0,S.w)("service","capabilities",["capabilities"])],b.prototype,"readCapabilities",null),(0,r.Cg)([(0,c.MZ)({json:{read:{source:"copyrightText"}}})],b.prototype,"copyright",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0,type:h.A})],b.prototype,"heightModelInfo",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],b.prototype,"path",void 0),(0,r.Cg)([(0,c.MZ)({type:["show","hide"]})],b.prototype,"listMode",void 0),(0,r.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],b.prototype,"minScale",void 0),(0,r.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}},readOnly:!0})],b.prototype,"maxScale",void 0),(0,r.Cg)([(0,c.MZ)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],b.prototype,"opacity",void 0),(0,r.Cg)([(0,c.MZ)({type:["ArcGISTiledElevationServiceLayer"]})],b.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,c.MZ)()],b.prototype,"sourceJSON",void 0),(0,r.Cg)([(0,c.MZ)({json:{read:!1},value:"elevation",readOnly:!0})],b.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)(m.OZ)],b.prototype,"url",void 0),(0,r.Cg)([(0,c.MZ)()],b.prototype,"version",void 0),(0,r.Cg)([(0,S.w)("version",["currentVersion"])],b.prototype,"readVersion",null),b=(0,r.Cg)([(0,c.$K)("esri.layers.ElevationLayer")],b);const C=Symbol("default-fetch-tile");b.prototype.fetchTile[C]=!0;const R=b},18768(e,t,i){i.d(t,{b:()=>a});var r=i(5482),s=i(53966),n=i(91429),o=i(60694);const a=e=>{const t=e;let i=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,o.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,o.Jf)(e,s.A.getLogger(this)))}};return(0,r.Cg)([(0,n.MZ)()],i.prototype,"title",null),(0,r.Cg)([(0,n.MZ)({type:String})],i.prototype,"url",null),i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.ArcGISService")],i),i}},8303(e,t,i){i.d(t,{A:()=>M});var r=i(5482),s=i(92602),n=i(70333),o=i(11254),a=i(60999),l=i(49186),u=i(53966),c=i(97768),h=i(17676),d=i(84952),p=i(91429),f=i(77548),g=i(20655),y=i(80812),m=i(41318),_=i(10407),v=i(36005),w=i(43937);const M=e=>{const t=e;let M=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,i){if(t.itemId)return new y.default({id:t.itemId,portal:i?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await i.e(1204).then(i.bind(i,41204));return(0,h.Te)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,h.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,h.QP)(e),!0)))}async setUserPrivileges(e,t){if(!s.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:i,fullEdit:r},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",i),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,h.QP)(e)}}async _fetchUserPrivileges(e,t){let i=this.portalItem;if(!e||!i||!i.loaded||i.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=!n.id?.findCredential(this.url),s=e===i.id;if(s&&i.portal.user)return this._getUserPrivileges(i,r);let o,a;if(s)o=i.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,h.QP)(e)}if(!o||!(0,d.b8)(o,i.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.QP)(e)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(s?await i.reload():(i=new y.default({id:e,portal:{url:o}}),await i.load(t)),i.portal.user)return this._getUserPrivileges(i,r)}catch(e){(0,h.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(e,t){const i=(0,_.It)(e);return t&&(i.features.edit=!0),i}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const i=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=i,null==i?.privileges||i.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const i=n.id?.findServerInfo(this.url??"");if(!i?.owningSystemUrl)return null;const r=`${i.owningSystemUrl}/sharing/rest`,s=g.A.getDefault();if(s&&s.loaded&&(0,d.S8)(s.restUrl)===(0,d.S8)(r))return s.user;const l=`${r}/community/self`,u=null!=e?e.signal:null,c=await(0,a.Ke)((0,o.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?m.A.fromJSON(c.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const i=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||g.A.getDefault());return i&&r&&!(0,d.ut)(r.restUrl,i.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r.Cg)([(0,p.MZ)({type:y.default})],M.prototype,"portalItem",null),(0,r.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],M.prototype,"readPortalItem",null),(0,r.Cg)([(0,w.K)("web-document","portalItem",{itemId:{type:String}})],M.prototype,"writePortalItem",null),(0,r.Cg)([(0,p.MZ)({clonable:!1})],M.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],M.prototype,"userHasUpdateItemPrivileges",void 0),M=(0,r.Cg)([(0,p.$K)("esri.layers.mixins.PortalLayer")],M),M},S={credential:null,user:null}},87378(e,t,i){i.d(t,{A:()=>a});var r,s=i(34275),n=i(56507);const o=Symbol("ElevationTileDataClass");class a{static{r=o}constructor({values:e,width:t,height:i,noDataValue:n}){this[r]=!0,this._hasNoDataValues=null,this._minValue=null,this._maxValue=null,this.values=(0,s.vZ)(e)?e:new Float32Array(e),this.width=t,this.height=i,this.noDataValue=n}get hasNoDataValues(){if(null==this._hasNoDataValues){const e=this.noDataValue;this._hasNoDataValues=this.values.includes(e)}return this._hasNoDataValues}get minValue(){return this._ensureBounds(),this._minValue}get maxValue(){return this._ensureBounds(),this._maxValue}get usedMemory(){return this.values.byteLength+256}_ensureBounds(){if(null!=this._minValue)return;const{noDataValue:e,values:t}=this;let i=1/0,r=-1/0,s=!0;for(const n of t)n===e?this._hasNoDataValues=!0:(i=n<i?n:i,r=n>r?n:r,s=!1);s?(this._minValue=0,this._maxValue=0):(this._minValue=i,this._maxValue=r>-3e38?r:0)}static{this.from=(0,n.qf)(a)}}},10407(e,t,i){i.d(t,{It:()=>p,LG:()=>o,OM:()=>u,Sm:()=>c,Y:()=>a,bK:()=>l,mm:()=>d,sQ:()=>h});var r=i(91218),s=i(16930),n=i(28735);function o(e,t){if(!a(e,t)){const i=e.typeKeywords;i?i.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const i=e.typeKeywords;if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}function c(e,t,i){i?o(e,t):u(e,t)}async function h(e){const t=e.clone().normalize();let i;if(t.length>1)for(const e of t)i?e.width>i.width&&(i=e):i=e;else i=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,n.ci)(e);const i=s.A.WGS84;return await(0,r.initializeProjection)(t,i),(0,r.project)(e,i)}(i)}const d={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function p(e){const{portal:t,isOrgItem:i,itemControl:r}=e,s=t.user?.privileges;let n=!s||s.includes("features:user:edit"),o=!!i&&!!s?.includes("features:user:fullEdit");const a="update"===r||"admin"===r;return a?o=n=!0:o&&(n=!0),{features:{edit:n,fullEdit:o},content:{updateItem:a}}}},78553(e,t,i){i.d(t,{D:()=>n,p:()=>s});var r=i(56507);function s(e){const t=(0,r.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4066],{29242(t,n,e){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,a,i,u,s){return[t,n,e,r,o,a,i,u,s]}e.d(n,{fA:()=>o,vt:()=>r,zK:()=>a});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"}))},82534(t,n,e){function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>o,vt:()=>r,zK:()=>a});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,n){return[t,n]}function i(){return a(1,1)}function u(){return a(1,0)}function s(){return a(0,1)}e.d(n,{Un:()=>c,fA:()=>a,o8:()=>o,vt:()=>r});const c=i(),f=u(),l=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:f,UNIT_Y:l,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:a,ones:i,unitX:u,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},51850(t,n,e){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,n,e){return[t,n,e]}function i(t,n,e){return[t,n,e]}function u(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function s(){return[0,0,0]}function c(){return a(1,1,1)}function f(){return a(1,0,0)}function l(){return a(0,1,0)}function h(){return a(0,0,1)}e.d(n,{CN:()=>i,Cb:()=>p,Cw:()=>d,JP:()=>b,S:()=>c,Ul:()=>s,Un:()=>m,ci:()=>u,fA:()=>a,o8:()=>o,uY:()=>M,vt:()=>r});const M=[0,0,0],m=c(),d=f(),b=l(),p=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:d,UNIT_Y:b,UNIT_Z:p,ZEROS:M,clone:o,create:r,freeze:i,fromArray:u,fromValues:a,ones:c,unitX:f,unitY:l,unitZ:h,zeros:s},Symbol.toStringTag,{value:"Module"}))},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function a(t,n,e,r){return[t,n,e,r]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function s(){return o(0,1,0,0)}function c(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}e.d(n,{CN:()=>a,Un:()=>h,fA:()=>o,uY:()=>l,vt:()=>r});const l=[0,0,0,0],h=i(),M=u(),m=s(),d=c(),b=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:b,UNIT_X:M,UNIT_Y:m,UNIT_Z:d,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:a,fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitW:f,unitX:u,unitY:s,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},34304(t,n,e){e.d(n,{DF:()=>s,FD:()=>o,Ov:()=>a,ct:()=>c});let r=1e-6;function o(){return r}const a=Math.random,i=Math.PI/180,u=180/Math.PI;function s(t){return t*i}function c(t){return t*u}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:s},Symbol.toStringTag,{value:"Module"}))},77690(t,n,e){e.d(n,{B8:()=>u,Ge:()=>M,I0:()=>h,KC:()=>s,a4:()=>c,hZ:()=>a,hs:()=>l,lw:()=>f,mg:()=>i,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,i,u,s,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=i,t[6]=u,t[7]=s,t[8]=c,t}function i(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function u(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],u=n[5],s=n[6],c=n[7],f=n[8],l=f*i-u*c,h=-f*a+u*s,M=c*a-i*s;let m=e*l+r*h+o*M;return m?(m=1/m,t[0]=l*m,t[1]=(-f*r+o*c)*m,t[2]=(u*r-o*i)*m,t[3]=h*m,t[4]=(f*e-o*s)*m,t[5]=(-u*e+o*a)*m,t[6]=M*m,t[7]=(-c*e+r*s)*m,t[8]=(i*e-r*a)*m,t):null}function s(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],u=n[5],s=n[6],c=n[7],f=n[8];return t[0]=i*f-u*c,t[1]=o*c-r*f,t[2]=r*u-o*i,t[3]=u*s-a*f,t[4]=e*f-o*s,t[5]=o*a-e*u,t[6]=a*c-i*s,t[7]=r*s-e*c,t[8]=e*i-r*a,t}function c(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],i=t[5],u=t[6],s=t[7],c=t[8];return n*(c*a-i*s)+e*(-c*o+i*u)+r*(s*o-a*u)}function f(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],u=n[4],s=n[5],c=n[6],f=n[7],l=n[8],h=e[0],M=e[1],m=e[2],d=e[3],b=e[4],p=e[5],v=e[6],y=e[7],x=e[8];return t[0]=h*r+M*i+m*c,t[1]=h*o+M*u+m*f,t[2]=h*a+M*s+m*l,t[3]=d*r+b*i+p*c,t[4]=d*o+b*u+p*f,t[5]=d*a+b*s+p*l,t[6]=v*r+y*i+x*c,t[7]=v*o+y*u+x*f,t[8]=v*a+y*s+x*l,t}function l(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function h(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=e+e,u=r+r,s=o+o,c=e*i,f=r*i,l=r*u,h=o*i,M=o*u,m=o*s,d=a*i,b=a*u,p=a*s;return t[0]=1-l-m,t[3]=f-p,t[6]=h+b,t[1]=f+p,t[4]=1-c-m,t[7]=M-d,t[2]=h-b,t[5]=M+d,t[8]=1-c-l,t}function M(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],u=n[5],s=n[6],c=n[7],f=n[8],l=n[9],h=n[10],M=n[11],m=n[12],d=n[13],b=n[14],p=n[15],v=e*u-r*i,y=e*s-o*i,x=e*c-a*i,g=r*s-o*u,E=r*c-a*u,w=o*c-a*s,A=f*d-l*m,S=f*b-h*m,N=f*p-M*m,O=l*b-h*d,_=l*p-M*d,q=h*p-M*b;let C=v*q-y*_+x*O+g*N-E*S+w*A;return C?(C=1/C,t[0]=(u*q-s*_+c*O)*C,t[1]=(s*N-i*q-c*S)*C,t[2]=(i*_-u*N+c*A)*C,t[3]=(o*_-r*q-a*O)*C,t[4]=(e*q-o*N+a*S)*C,t[5]=(r*N-e*_-a*A)*C,t[6]=(d*w-b*E+p*g)*C,t[7]=(b*x-m*w-p*y)*C,t[8]=(m*E-d*x+p*v)*C,t):null}function m(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const d=f,b=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:s,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const e=t[0],o=t[1],a=t[2],i=t[3],u=t[4],s=t[5],c=t[6],f=t[7],l=t[8],h=n[0],M=n[1],m=n[2],d=n[3],b=n[4],p=n[5],v=n[6],y=n[7],x=n[8],g=(0,r.FD)();return Math.abs(e-h)<=g*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-M)<=g*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-m)<=g*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(i-d)<=g*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(u-b)<=g*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(s-p)<=g*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(c-v)<=g*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(f-y)<=g*Math.max(1,Math.abs(f),Math.abs(y))&&Math.abs(l-x)<=g*Math.max(1,Math.abs(l),Math.abs(x))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:u,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],a=t[2],i=t[3],u=t[4],s=t[5],c=t[6],f=t[7],l=t[8];return Math.abs(1-(e*e+i*i+c*c))<=n&&Math.abs(1-(o*o+u*u+f*f))<=n&&Math.abs(1-(a*a+s*s+l*l))<=n},mul:d,multiply:f,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],i=n[5],u=n[6],s=n[8],c=n[9],f=n[10],l=f*i-u*c,h=-f*a+u*s,M=c*a-i*s,m=e*l+r*h+o*M;if(!m)return null;const d=1/m;return t[0]=l*d,t[1]=(-f*r+o*c)*d,t[2]=(u*r-o*i)*d,t[3]=h*d,t[4]=(f*e-o*s)*d,t[5]=(-u*e+o*a)*d,t[6]=M*d,t[7]=(-c*e+r*s)*d,t[8]=(i*e-r*a)*d,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],u=n[4],s=n[5],c=n[6],f=n[7],l=n[8],h=Math.sin(e),M=Math.cos(e);return t[0]=M*r+h*i,t[1]=M*o+h*u,t[2]=M*a+h*s,t[3]=M*i-h*r,t[4]=M*u-h*o,t[5]=M*s-h*a,t[6]=c,t[7]=f,t[8]=l,t},scale:l,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:m,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],u=n[4],s=n[5],c=n[6],f=n[7],l=n[8],h=e[0],M=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=i,t[4]=u,t[5]=s,t[6]=h*r+M*i+c,t[7]=h*o+M*u+f,t[8]=h*a+M*s+l,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},37585(t,n,e){e.d(n,{C:()=>o,Cc:()=>v,Io:()=>l,Om:()=>p,Re:()=>u,S8:()=>b,WQ:()=>i,aI:()=>E,e$:()=>x,hG:()=>h,hZ:()=>a,hs:()=>f,jb:()=>A,l0:()=>y,t2:()=>g,ze:()=>d});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t}function a(t,n,e){return t[0]=n,t[1]=e,t}function i(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function s(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function f(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function h(t,n){const e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function M(t){const n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function m(t){const n=t[0],e=t[1];return n*n+e*e}function d(t,n){return t[0]=-n[0],t[1]=-n[1],t}function b(t,n){const e=n[0],r=n[1];let o=e*e+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o),t}function p(t,n){return t[0]*n[0]+t[1]*n[1]}function v(t,n,e,r){const o=n[0],a=n[1];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t}function y(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[2]*o+e[4],t[1]=e[1]*r+e[3]*o+e[5],t}function x(t,n,e,r){const o=n[0]-e[0],a=n[1]-e[1],i=Math.sin(r),u=Math.cos(r);return t[0]=o*u-a*i+e[0],t[1]=o*i+a*u+e[1],t}function g(t,n){return t[0]===n[0]&&t[1]===n[1]}function E(t,n){const e=t[0],o=t[1],a=n[0],i=n[1],u=(0,r.FD)();return Math.abs(e-a)<=u*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(o-i)<=u*Math.max(1,Math.abs(o),Math.abs(i))}const w=M,A=u,S=s,N=c,O=l,_=h,q=m;Object.freeze(Object.defineProperty({__proto__:null,add:i,angle:function(t,n){const e=t[0],r=t[1],o=n[0],a=n[1];let i=e*e+r*r;i>0&&(i=1/Math.sqrt(i));let u=o*o+a*a;u>0&&(u=1/Math.sqrt(u));const s=(e*o+r*a)*i*u;return s>1?0:s<-1?Math.PI:Math.acos(s)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},copy:o,cross:function(t,n,e){const r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},dist:O,distance:l,div:N,divide:c,dot:p,equals:E,exactEquals:g,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:w,length:M,lerp:v,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},mul:S,multiply:s,negate:d,normalize:b,projectAndScale:function(t,n,e,r,o){let a=n[0]-e[0],i=n[1]-e[1];const u=(r[0]*a+r[1]*i)*(o-1);return a=r[0]*u,i=r[1]*u,t[0]=n[0]+a,t[1]=n[1]+i,t},random:function(t,n=1){const e=2*(0,r.Ov)()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},rotate:x,round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t},scale:f,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t},set:a,sqrDist:_,sqrLen:q,squaredDistance:h,squaredLength:m,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:A,subtract:u,transformMat2:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[2]*o,t[1]=e[1]*r+e[3]*o,t},transformMat2d:y,transformMat3:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[3]*o+e[6],t[1]=e[1]*r+e[4]*o+e[7],t},transformMat4:function(t,n,e){const r=n[0],o=n[1];return t[0]=e[0]*r+e[4]*o+e[12],t[1]=e[1]*r+e[5]*o+e[13],t}},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>S,Bw:()=>a,C:()=>i,Cc:()=>N,DI:()=>E,Il:()=>L,Io:()=>v,Ln:()=>p,Om:()=>A,Qr:()=>l,Re:()=>c,S8:()=>w,T9:()=>d,WQ:()=>s,Z0:()=>O,_S:()=>M,aI:()=>U,ei:()=>_,fw:()=>C,g7:()=>I,gL:()=>q,hG:()=>y,hZ:()=>u,hs:()=>b,jb:()=>F,jk:()=>m,lo:()=>P,lw:()=>f,m3:()=>x,oW:()=>D,t2:()=>z,tn:()=>h,uE:()=>Y,xg:()=>j,ze:()=>g});var r=e(51850),o=e(34304);function a(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function u(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function s(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function f(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function d(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function b(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function p(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function v(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function x(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function g(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function E(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function w(t,n){const e=n[0],r=n[1],o=n[2];let a=e*e+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function A(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,e){const r=n[0],o=n[1],a=n[2],i=e[0],u=e[1],s=e[2];return t[0]=o*s-a*u,t[1]=a*i-r*s,t[2]=r*u-o*i,t}function N(t,n,e,r){const o=n[0],a=n[1],i=n[2];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=i+r*(e[2]-i),t}function O(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12],t[1]=e[1]*r+e[5]*o+e[9]*a+e[13],t[2]=e[2]*r+e[6]*o+e[10]*a+e[14],t}function _(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=r*e[0]+o*e[3]+a*e[6],t[1]=r*e[1]+o*e[4]+a*e[7],t[2]=r*e[2]+o*e[5]+a*e[8],t}function q(t,n,e){return C(t,n,e[0],e[1],e[2],e[3])}function C(t,n,e,r,o,a){const i=n[0],u=n[1],s=n[2],c=r*s-o*u,f=o*i-e*s,l=e*u-r*i,h=r*l-o*f,M=o*c-e*l,m=e*f-r*c,d=2*a;return t[0]=i+c*d+2*h,t[1]=u+f*d+2*M,t[2]=s+l*d+2*m,t}function I(t,n){w(T,t),w(V,n);const e=A(T,V);return e>1?0:e<-1?Math.PI:Math.acos(e)}const T=(0,r.vt)(),V=(0,r.vt)();function z(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function U(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],i=n[0],u=n[1],s=n[2],c=(0,o.FD)();return Math.abs(e-i)<=c*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(a-s)<=c*Math.max(1,Math.abs(a),Math.abs(s))}function D(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],a=e[2]-n[2];let i=r*r+o*o+a*a;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=o*i,t[2]=a*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const F=c,R=f,B=l,j=v,P=y,L=a,Y=x;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:I,bezier:function(t,n,e,r,o,a){const i=1-a,u=i*i,s=a*a,c=u*i,f=3*a*u,l=3*s*i,h=s*a;return t[0]=n[0]*c+e[0]*f+r[0]*l+o[0]*h,t[1]=n[1]*c+e[1]*f+r[1]*l+o[1]*h,t[2]=n[2]*c+e[2]*f+r[2]*l+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:i,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=e[0],u=e[1],s=e[2],c=o*s-a*u,f=a*i-r*s,l=r*u-o*i,h=Math.sqrt(c*c+f*f+l*l);return t[0]=c/h,t[1]=f/h,t[2]=l/h,t},direction:D,dist:j,distance:v,div:B,divide:l,dot:A,equals:U,exactEquals:z,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,a){const i=a*a,u=i*(2*a-3)+1,s=i*(a-2)+a,c=i*(a-1),f=i*(3-2*a);return t[0]=n[0]*u+e[0]*s+r[0]*c+o[0]*f,t[1]=n[1]*u+e[1]*s+r[1]*c+o[1]*f,t[2]=n[2]*u+e[2]*s+r[2]*c+o[2]*f,t},inverse:E,len:L,length:a,lerp:N,max:d,min:m,mul:R,multiply:f,negate:g,normalize:w,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,a=2*e()-1,i=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=a*n,t},rotateX:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:b,scaleAndAdd:p,set:u,sign:M,sqrDist:P,sqrLen:Y,squaredDistance:y,squaredLength:x,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:F,subtract:c,transformMat3:_,transformMat4:O,transformQuat:q,transformQuatValues:C},Symbol.toStringTag,{value:"Module"}))},78955(t,n,e){e.d(n,{Bw:()=>b,C:()=>o,Cc:()=>x,LI:()=>h,Om:()=>y,S8:()=>v,T9:()=>l,WQ:()=>i,Z0:()=>g,aI:()=>w,hG:()=>d,hZ:()=>a,hs:()=>M,jk:()=>f,m3:()=>p,t2:()=>E});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function a(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t}function i(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function u(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function s(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function f(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function l(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function h(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function M(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function m(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+a*a)}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return e*e+r*r+o*o+a*a}function b(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function p(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function v(t,n){const e=n[0],r=n[1],o=n[2],a=n[3];let i=e*e+r*r+o*o+a*a;return i>0&&(i=1/Math.sqrt(i),t[0]=e*i,t[1]=r*i,t[2]=o*i,t[3]=a*i),t}function y(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function x(t,n,e,r){const o=n[0],a=n[1],i=n[2],u=n[3];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=i+r*(e[2]-i),t[3]=u+r*(e[3]-u),t}function g(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12]*i,t[1]=e[1]*r+e[5]*o+e[9]*a+e[13]*i,t[2]=e[2]*r+e[6]*o+e[10]*a+e[14]*i,t[3]=e[3]*r+e[7]*o+e[11]*a+e[15]*i,t}function E(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function w(t,n){const e=t[0],o=t[1],a=t[2],i=t[3],u=n[0],s=n[1],c=n[2],f=n[3],l=(0,r.FD)();return Math.abs(e-u)<=l*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(o-s)<=l*Math.max(1,Math.abs(o),Math.abs(s))&&Math.abs(a-c)<=l*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(i-f)<=l*Math.max(1,Math.abs(i),Math.abs(f))}const A=u,S=s,N=c,O=m,_=d,q=b,C=p;Object.freeze(Object.defineProperty({__proto__:null,add:i,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:O,distance:m,div:N,divide:c,dot:y,equals:w,exactEquals:E,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:q,length:b,lerp:x,max:l,min:f,mul:S,multiply:s,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:v,random:function(t,n=1){const e=r.Ov;let o,a,i,u,s,c;do{o=2*e()-1,a=2*e()-1,s=o*o+a*a}while(s>=1);do{i=2*e()-1,u=2*e()-1,c=i*i+u*u}while(c>=1);const f=Math.sqrt((1-s)/c);return t[0]=n*o,t[1]=n*a,t[2]=n*i*f,t[3]=n*u*f,t},round:h,scale:M,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:a,sqrDist:_,sqrLen:C,squaredDistance:d,squaredLength:p,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:u,transformMat4:g,transformQuat:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=e[0],u=e[1],s=e[2],c=e[3],f=c*r+u*a-s*o,l=c*o+s*r-i*a,h=c*a+i*o-u*r,M=-i*r-u*o-s*a;return t[0]=f*c+M*-i+l*-s-h*-u,t[1]=l*c+M*-u+h*-i-f*-s,t[2]=h*c+M*-s+f*-u-l*-i,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,n,e){e.d(n,{$8:()=>A,Cc:()=>u,Hx:()=>b,Io:()=>E,KJ:()=>f,OS:()=>O,Sp:()=>M,XM:()=>l,YN:()=>h,ZH:()=>d,b6:()=>w,cU:()=>o,gg:()=>m,hs:()=>s,kU:()=>c,mP:()=>i,or:()=>N,pF:()=>q,pq:()=>_,qE:()=>a});const r=new Float32Array(1);function o(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function a(t,n,e){return Math.min(Math.max(t,n),e)}function i(t,n){return 0===n?0:Math.ceil(t/n)*n}function u(t,n,e){return t+(n-t)*e}function s(t,n,e,r,o){return u(r,o,(t-n)/(e-n))}function c(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function l(t){return Math.acos(a(t,-1,1))}function h(t){return Math.asin(a(t,-1,1))}function M(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}function m(t,n,e=1e-6){return!M(t,n,e)&&t>n}function d(t,n,e=1e-6){return!M(t,n,e)&&t<n}function b(t,n,e=1e-6){return M(t,n,e)||t>n}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function v(t){return p.setFloat64(0,t),p.getBigInt64(0)}const y=1000000n,x=g(1);function g(t){const n=v(t=Math.abs(t)),e=function(t){return p.setBigInt64(0,t),p.getFloat64(0)}(n<=y?y:n-y);return Math.abs(t-e)}function E(t,n,e=x){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;if(null!=e&&g(Math.min(Math.abs(t),Math.abs(n)))<e)return Math.abs(t-n)<=e;const r=v(t),o=v(n);return r<0==o<0&&!((r<o?o-r:r-o)>y)}function w(t,n,e=1e-6){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;const r=Math.abs(t-n),o=Math.abs(t),a=Math.abs(n);if(0===t||0===n||o<1e-12&&a<1e-12){if(r>.01*e)return!1}else if(r/(o+a)>e)return!1;return!0}function A(t){return S(Math.max(-_,Math.min(t,_)))}function S(t){return r[0]=t,r[0]}function N(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(M(n,1)&&M(e,1)&&M(r,1))}function O(t,n){return(t%n+n)%n}const _=S(34028234663852886e22);function q(t,n,e){if(void 0===e||0===+e)return Math[t](n);if(n=+n,e=+e,isNaN(n)||"number"!=typeof e||e%1!=0)return NaN;let r=n.toString().split("e");return r=(n=Math[t](+(r[0]+"e"+(r[1]?+r[1]-e:-e)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+e:e))}},77214(t,n,e){e.r(n),e.d(n,{destroyContext:()=>E,initialize:()=>y,processVertices:()=>g});var r=e(82534),o=e(51850),a=e(13030),i=e(77690),u=e(29242),s=e(35522),c=e(89606);class f{constructor(t=1/0,n=-1/0){this.minElevation=t,this.maxElevation=n}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(t){return this.minElevation<=t.minElevation&&this.maxElevation>=t.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(t){const n=Math.min(this.minElevation,t.minElevation),e=Math.max(this.maxElevation,t.maxElevation),r=n!==this.minElevation||e!==this.maxElevation;return this.minElevation=n,this.maxElevation=e,r}expandElevationRangeValues(t,n){const e=Math.min(this.minElevation,t),r=Math.max(this.maxElevation,n),o=e!==this.minElevation||r!==this.maxElevation;return this.minElevation=e,this.maxElevation=r,o}setElevationRange(t){this.minElevation=t.minElevation,this.maxElevation=t.maxElevation}setElevationRangeValues(t,n){this.minElevation=t,this.maxElevation=n}equals(t){return this.minElevation===t.minElevation&&this.maxElevation===t.maxElevation}}var l=e(1843),h=e(65786);h.Y;class M extends h.Y{constructor(t,n,e){super(),this.hasVertexColors=t,this.hasNormals=n,this.textureCoordinateType=e}}function m(t){const n=(0,l.BP)().vec3f("position");return t.hasNormals&&n.vec2i16("normalCompressed",{glNormalized:!0}),1===t.textureCoordinateType?n.vec2f("uv0"):2===t.textureCoordinateType&&(n.vec2f("uv0"),n.vec4u16("uvRegion",{glNormalized:!0})),t.hasVertexColors&&n.vec4u8("color",{glNormalized:!0}),n.freeze()}function d(t,n,e,r,a,i,u){const s=new Array,l=(0,o.fA)(0,0,0),h=new f,d={origin:n,ellipsoidRadius:e,isGlobal:r,ecefRotation:a};for(const n of t){const{componentIndex:t,positionView:e,indicesView:r,texCoord0Data:o,colorView:a,normalsData:f}=n,p=e.count,v=o?1:0,y=new M(null!=a,null!=f||u,v),x=u&&null==f?(0,c.GN)(r.typedBuffer,e.typedBuffer,e.typedBufferStride):null,g=x?.outputVertexCount??p,E=m(y),w=E.createBuffer(g),A=x?E.fields.get("normalCompressed"):null;if(null!=x&&null==A)throw new Error("computeNormals requires a reserved NORMALCOMPRESSED attribute in layout");let S;if(b(d,{texCoord0Data:o,colorView:a,packedNormalsSource:x?x.packedNormals:f??null},w,{positionView:e,tileObb:i,obbHalfSizeAccumulator:l,elevationRange:h}),null!=x){const t=E.stride/4,n=A.offset/4,e=p,r=new Uint32Array(w.buffer);(0,c.yf)(r,t,n,r,t,e,g,x.appendedVertexToOriginal,x.packedNormals),S=x.indices}else S=r.typedBuffer;s.push({componentIndex:t,positionView:e,indicesView:r,layout:E,textureCoordinateType:v,interleavedVertexData:w.buffer,indices:S})}return{vertexProcessingOutputs:s,obbHalfSizeAccumulator:l,elevationRange:h}}function b(t,n,e,r){const{origin:o,ellipsoidRadius:c,isGlobal:f,ecefRotation:l}=t,{texCoord0Data:h,colorView:M,packedNormalsSource:m}=n,{positionView:d,tileObb:b,obbHalfSizeAccumulator:y,elevationRange:x}=r,g=e.getField("position",a.xs),E=g.typedBuffer,w=g.typedBufferStride,A=null!=h?e.getField("uv0",a.gH):null,S=A?.typedBuffer,N=A?.typedBufferStride??0,O=M?.typedBuffer,_=M?.elementCount??0,q=null!=M?e.getField("color",a.XP):null,C=q?.typedBuffer,I=q?.typedBufferStride??0,T=null!=m?e.getField("normalCompressed",a.mJ):null,V=null!=T?new Uint32Array(T.typedBuffer.buffer,T.typedBuffer.byteOffset,T.typedBuffer.length/2):null,z=null!=T?T.typedBufferStride/2:0,U=(0,i.I0)(v,b.quaternionConjugate),D=(0,s.ei)(p,b.center,U),F=U[0],R=U[1],B=U[2],j=U[3],P=U[4],L=U[5],Y=U[6],k=U[7],Z=U[8],G=D[0],X=D[1],H=D[2],Q=l[0],W=l[1],K=l[2],J=l[3],$=l[4],tt=l[5],nt=l[6],et=l[7],rt=l[8],ot=l!==u.zK,at=o[0],it=o[1],ut=o[2],st=d.count,ct=d.typedBufferStride,ft=d.typedBuffer,lt=null!=S&&null!=h,ht=null!=C&&null!=O&&(3===_||4===_),Mt=4===_,mt=null!=V&&null!=m;let dt=y[0],bt=y[1],pt=y[2];for(let t=0;t<st;++t){const n=t*ct,e=ft[n],r=ft[n+1],o=ft[n+2],a=e+at,i=r+it,u=o+ut,s=f?Math.sqrt(a*a+i*i+u*u)-c:u;x.expandElevationRangeValues(s,s);const l=Math.abs(a*F+i*j+u*Y-G),M=Math.abs(a*R+i*P+u*k-X),d=Math.abs(a*B+i*L+u*Z-H);dt=Math.max(dt,l),bt=Math.max(bt,M),pt=Math.max(pt,d);const b=t*w;if(ot){const t=e*Q+r*J+o*nt,a=e*W+r*$+o*et,i=e*K+r*tt+o*rt;ft[n]=t,ft[n+1]=a,ft[n+2]=i,E[b]=t,E[b+1]=a,E[b+2]=i}else E[b]=e,E[b+1]=r,E[b+2]=o;if(lt){const n=2*t,e=t*N;S[e]=h[n],S[e+1]=h[n+1]}if(ht){const n=t*I;if(Mt){const e=4*t;C[n]=O[e],C[n+1]=O[e+1],C[n+2]=O[e+2],C[n+3]=O[e+3]}else{const e=3*t;C[n]=O[e],C[n+1]=O[e+1],C[n+2]=O[e+2],C[n+3]=255}}mt&&(V[t*z]=m[t])}y[0]=dt,y[1]=bt,y[2]=pt}const p=(0,o.vt)(),v=(0,u.vt)();function y(){}function x(t){const{colorData:n,colorElementCount:e}=t;if(null==n||0===e)return;const r=n.byteOffset,o=r+n.byteLength;return 3===e?n instanceof Float32Array?new a.xs(n.buffer,r,void 0,o):n instanceof Uint8Array?new a.eI(n.buffer,r,void 0,o):new a.nS(n.buffer,r,void 0,o):n instanceof Float32Array?new a.Eq(n.buffer,r,void 0,o):n instanceof Uint8Array?new a.XP(n.buffer,r,void 0,o):new a.Uz(n.buffer,r,void 0,o)}async function g(t){const n={center:(0,o.o8)(t.tileObbCenter),quaternionConjugate:(0,r.o8)(t.tileObbQuaternionConjugate)},{vertexProcessingOutputs:e,obbHalfSizeAccumulator:i,elevationRange:u}=d(t.inputs.map((t,n)=>{const{indicesData:e}=t,r=t.positionData.byteOffset,o=r+t.positionData.byteLength,i=t.positionStride*Float32Array.BYTES_PER_ELEMENT,u=e.byteOffset,s=u+e.byteLength;return{componentIndex:n,positionView:new a.xs(t.positionData.buffer,r,i,o),indicesView:e instanceof Uint16Array?new a.h(e.buffer,u,void 0,s):new a.P(e.buffer,u,void 0,s),texCoord0Data:t.texCoord0Data??void 0,colorView:x(t),normalsData:t.normalsData??void 0}}),t.origin,t.ellipsoidRadius,t.isGlobal,t.ecefRotation,n,t.imVertexNormals),s=(f=e,l=t.isGlobal,f.map(t=>({positionData:l?t.positionView.typedBuffer:null,interleavedVertexData:t.interleavedVertexData,renderIndices:t.indices===t.indicesView.typedBuffer?null:t.indices}))),c=function(t){const n=[];for(const e of t)null!=e.positionData&&n.push(e.positionData.buffer),n.push(e.interleavedVertexData),null!=e.renderIndices&&n.push(e.renderIndices.buffer);return n}(s);var f,l;return{result:{outputs:s,obbHalfSizeAccumulator:(0,o.o8)(i),minElevation:u.minElevation,maxElevation:u.maxElevation},transferList:c}}function E(t){}},89606(t,n,e){e.d(n,{GN:()=>l,MU:()=>f,yf:()=>M});var r=e(35522),o=e(51850),a=e(10614),i=e(63907),u=e(74038);class s{constructor(t,n){this.data=t,this.indices=n}}class c{constructor(t,n,e,r,o){this.indices=t,this.packedNormals=n,this.appendedVertexToOriginal=e,this.outputVertexCount=r,this.appendedVertexCount=o}}function f(t,n,e,c,f){return!c||e.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,n,e,i){const u=new s(t.slice().buffer,n);if(!i)return u;const c=e[0].stride,f=u.data.byteLength/c;for(const t of e)if("normalCompressed"===t.name){const{offset:n}=t,e=new Int16Array(u.data),s=(0,o.vt)();for(let t=0;t<f;++t)(0,a.Tz)(s,e,t,c/2,n/2),(0,r.ei)(s,s,i),(0,a.aT)(e,t,s[0],s[1],s[2],c/2,n/2)}else if("normal"===t.name){const{offset:n}=t,e=new Float32Array(u.data),a=(0,o.vt)();for(let t=0;t<f;++t){const o=(t*c+n)/4;a[0]=e[o],a[1]=e[o+1],a[2]=e[o+2],(0,r.ei)(a,a,i),e[o]=a[0],e[o+1]=a[1],e[o+2]=a[2]}}return u}(t,n,e,f):function(t,n,e,r){const o=e[0].stride,a=o/4,s=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),c=t.byteLength/o,f=o+4;e.forEach(t=>t.stride=f),e.push(new u._("normalCompressed",2,i.pe.SHORT,o,f,!0));const M=l(n,s,a,r);return h(s,c,o,f,M)}(t,n,e,f)}function l(t,n,e,r){const o=t.length/3,a=n.length/e,{faceNormals:i,faceAreas:u,faceEdges:s,edgeFaces:c,vertexFaces:f,vertexFaceCountAndOffset:l}=function(t,n,e,r,o,a){const i=new Float32Array(3*o),u=new Float32Array(o),s=new Uint32Array(3*o),c=new Int32Array(3*o*2),f=3*o,l=new Uint32Array(f),h=new Uint32Array(2*e);for(let t=0;t<o;++t){const n=3*t;for(let t=0;t<3;++t)++h[2*r[n+t]]}{let t=0;for(let n=0;n<e;++n){const e=2*n;h[e+1]=t,t+=h[e]}for(let t=0;t<o;++t){const n=3*t;for(let e=0;e<3;++e)l[h[2*r[n+e]+1]++]=t}for(let t=0;t<e;++t)h[2*t+1]-=h[2*t]}let M=0;const m=new Uint32Array(2*f*2),d=new Uint32Array(2*e);for(let t=0;t<e;++t){const n=2*t,e=4*h[n+1];d[n]=e,d[n+1]=e}function b(t,n,e){const r=Math.min(t,n),o=Math.max(t,n),a=t<n?0:1,i=2*r,u=d[i],s=d[i+1];let f=-1;for(let t=u;t<s;t+=2)if(m[t]===o){f=m[t+1];break}return-1===f&&(f=M++,m[s]=o,m[s+1]=f,d[i+1]=s+2,c[2*f+(1-a)]=-1),c[2*f+a]=e,f}for(let e=0;e<r.length;e+=3){const o=r[e],c=o*n,f=t[c],l=t[c+1],h=t[c+2],M=r[e+1],m=M*n,d=t[m],p=t[m+1],v=t[m+2],y=r[e+2],x=y*n,g=f-d,E=l-p,w=h-v,A=f-t[x],S=l-t[x+1],N=h-t[x+2],O=E*N-w*S,_=w*A-g*N,q=g*S-E*A,C=Math.sqrt(O*O+_*_+q*q)||1,I=e/3;u[I]=.5*C;const T=1/C;if(a){const t=a[0]*O+a[3]*_+a[6]*q,n=a[1]*O+a[4]*_+a[7]*q,e=a[2]*O+a[5]*_+a[8]*q;i[3*I]=t*T,i[3*I+1]=n*T,i[3*I+2]=e*T}else i[3*I]=O*T,i[3*I+1]=_*T,i[3*I+2]=q*T;const V=b(o,M,I),z=b(M,y,I),U=b(y,o,I);s[3*I]=V,s[3*I+1]=z,s[3*I+2]=U}return{faceNormals:i,faceAreas:u,faceEdges:s,vertexFaces:l,vertexFaceCountAndOffset:h,edgeFaces:c}}(n,e,a,t,o,r);return function(t,n,e,r,o,a){const i=new Uint8Array(n),u=new Uint32Array(n),s=new Uint32Array(3*n);let c=0;const f=new Uint32Array(n);let l=0;for(let n=0;n<t.length;n+=3){const t=n/3;if(1===i[t])continue;i[t]=1;const h=e[3*t],M=e[3*t+1],m=e[3*t+2];for(l=0,f[l++]=t,s[0]=o[3*t],s[1]=o[3*t+1],s[2]=o[3*t+2],c=3,u[t]=t+1;c>0;){const n=s[--c];for(let r=0;r<2;++r){const b=a[2*n+r];if(-1===b||u[b]===t+1)continue;u[b]=t+1;const p=e[3*b],v=e[3*b+1],y=e[3*b+2];if(Math.abs(1-(h*p+M*v+m*y))<d){f[l++]=b,i[b]=1;for(let t=0;t<3;++t){const e=o[3*b+t];e!==n&&(s[c++]=e)}}}}if(l>1){let t=0,n=0,o=0,a=0;for(let i=0;i<l;++i){const u=f[i],s=r[u];t+=s,n+=e[3*u]*s,o+=e[3*u+1]*s,a+=e[3*u+2]*s}const i=Math.sqrt(n*n+o*o+a*a)||1;n/=i,o/=i,a/=i;for(let i=0;i<l;++i){const u=f[i];e[3*u]=n,e[3*u+1]=o,e[3*u+2]=a,r[u]=t}}}}(t,o,i,u,s,c),m(o,a,t,i,u,f,l)}function h(t,n,e,r,o){const a=e/4,i=r/4,u=o.outputVertexCount,c=new Float32Array(u*i),f=new Uint32Array(c.buffer),l=a,h=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,n,e,r,o,a,i){for(let u=0;u<a;++u){const a=u*o,s=u*n;for(let n=0;n<o;++n)t[s+n]=r[a+n];t[s+e]=i[u]}}(f,i,l,h,a,n,o.packedNormals),M(f,i,l,h,a,n,u,o.appendedVertexToOriginal,o.packedNormals),new s(c.buffer,o.indices)}function M(t,n,e,r,o,a,i,u,s){for(let c=a;c<i;++c){const i=u[c-a]*o,f=c*n;for(let n=0;n<o;++n)t[f+n]=r[i+n];t[f+e]=s[c]}}function m(t,n,e,r,o,a,i){const u=3*t,s=new(u<256?Uint8Array:u<65536?Uint16Array:Uint32Array)(e);let f=n;const l=new(n<256?Uint8Array:n<65536?Uint16Array:Uint32Array)(u-n),h=new ArrayBuffer(4*u),M=new Int16Array(h),m=new Uint32Array(h);let d=0,p=0;const v=new Uint32Array(t);let y=0;const x=1-b;for(let t=0;t<n;++t){d=i[2*t+1],p=d+i[2*t];let e=t;for(;d<p;){{const t=a[--p],n=3*t,i=r[n],u=r[n+1],s=r[n+2];y=0,v[y++]=t;let c=d;for(;c<p;){const t=a[c],n=3*t;if(i*r[n]+u*r[n+1]+s*r[n+2]>x){v[y++]=t;const n=--p;if(c<n){a[c]=a[n];continue}}++c}let f=0,l=0,h=0;if(1===y)f=i,l=u,h=s;else{for(let t=0;t<y;++t){const n=v[t],e=o[n],a=3*n;f+=r[a]*e,l+=r[a+1]*e,h+=r[a+2]*e}const t=Math.sqrt(f*f+l*l+h*h)||1;f/=t,l/=t,h/=t}{const t=1/(Math.abs(f)+Math.abs(l)+Math.abs(h)),n=f*t,r=l*t;let o=n,a=r;h<=0&&(o=(n>=0?1:-1)*(1-Math.abs(r)),a=(r>=0?1:-1)*(1-Math.abs(n)));const i=2*e,u=Math.round(32767*o),s=Math.round(32767*a);M[i]=u<-32767?-32767:u>32767?32767:u,M[i+1]=s<-32767?-32767:s>32767?32767:s}}if(e!==t)for(let n=0;n<y;++n){const r=3*v[n];s[r]===t&&(s[r]=e),s[r+1]===t&&(s[r+1]=e),s[r+2]===t&&(s[r+2]=e)}if(d>=p)break;e=f++,l[e-n]=t}}return new c(s,m,l,f,f-n)}const d=.04,b=.8},10614(t,n,e){e.d(n,{Tz:()=>i,aT:()=>a});var r=e(34727),o=e(35522);function a(t,n,e,r,o,a=2,i=0){const s=1/(Math.abs(e)+Math.abs(r)+Math.abs(o)),c=e*s,f=r*s,l=o<=0?(c>=0?1:-1)*(1-Math.abs(f)):c,h=o<=0?(f>=0?1:-1)*(1-Math.abs(c)):f,M=n*a+i;t[M]=u(l),t[M+1]=u(h)}function i(t,n,e,r=2,a=0){const i=e*r+a,u=s(n[i]),c=s(n[i+1]),f=1-Math.abs(u)-Math.abs(c);return t[2]=f,f<0?(t[0]=(u>=0?1:-1)*(1-Math.abs(c)),t[1]=(c>=0?1:-1)*(1-Math.abs(u))):(t[0]=u,t[1]=c),(0,o.S8)(t,t)}function u(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function s(t){return(0,r.qE)(t/32767,-1,1)}e(51850)},65786(t,n,e){e.d(n,{Y:()=>r});const r=class{};new r}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5404],{95404(e,r,t){t.d(r,{computeObjectLayerResourceSize:()=>c}),t(11254);var i=t(49186),n=t(66344),o=t(51850),s=t(70328),l=t(8887);let u=new n.q(50);async function c(e,r=null){if(!e.isPrimitive){const r=e.resource?.href;if(!r)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=u.get(r);if(null!=n)return n;const{fetch:l}=await Promise.all([t.e(
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5404],{95404(e,r,t){t.d(r,{computeObjectLayerResourceSize:()=>c}),t(11254);var i=t(49186),n=t(66344),o=t(51850),s=t(70328),l=t(8887);let u=new n.q(50);async function c(e,r=null){if(!e.isPrimitive){const r=e.resource?.href;if(!r)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=u.get(r);if(null!=n)return n;const{fetch:l}=await Promise.all([t.e(1843),t.e(7005),t.e(5408),t.e(5647)]).then(t.bind(t,5644)),c=await l(r,{disableTextures:!0,spherical:!0}),a=(0,s.Ej)(c.referenceBoundingBox,(0,o.vt)());return u.put(r,a),a}if(!e.resource?.primitive)throw new i.A("symbol:invalid-resource","The symbol does not have a valid resource");const n=(0,s.vt)((0,l.Fq)(e.resource.primitive));if(null!=r)for(let e=0;e<n.length;e++)n[e]*=r;return(0,s.Ej)(n,(0,o.vt)())}}}]);
|