@arcgis/core 6.0.0-next.4 → 6.0.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/analysis/AreaMeasurementAnalysis.d.ts +11 -1
  2. package/analysis/DirectLineMeasurementAnalysis.d.ts +11 -1
  3. package/analysis/DistanceMeasurementAnalysis.d.ts +8 -0
  4. package/arcade/geometry/unitConversion.js +1 -1
  5. package/arcgisGlobal.d.ts +5 -5
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/{1ede8666d804c553803e.js → 0b6941781e35ce0f7274.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0ccab50877b24f862d6e.js +1 -0
  9. package/assets/esri/core/workers/chunks/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{ff3a53c3f00335552317.js → 250d3be6d3849d71fed8.js} +1 -1
  12. package/assets/esri/core/workers/chunks/257910cca66dc5df465e.js +1 -0
  13. package/assets/esri/core/workers/chunks/27da9ece2afaeec39f59.js +1 -0
  14. package/assets/esri/core/workers/chunks/2c90f7a6432cd716db8b.js +1 -0
  15. package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
  16. package/assets/esri/core/workers/chunks/{b612de42ee86c0d95247.js → 3d9d7d3a40b51eb7ee3d.js} +1 -1
  17. package/assets/esri/core/workers/chunks/4d3f97a48046021713a6.js +1 -0
  18. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
  19. package/assets/esri/core/workers/chunks/557671c897ca5563be6c.js +1 -0
  20. package/assets/esri/core/workers/chunks/56851011276de0b3e318.js +1 -0
  21. package/assets/esri/core/workers/chunks/56a24061589f4a968818.js +1 -0
  22. package/assets/esri/core/workers/chunks/{9232f57623e1fa3ccabc.js → 67e4b5651fd7ff7d8cf0.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{e521bb9ee2030245c3ce.js → 6f358116f79021ff9687.js} +1 -1
  24. package/assets/esri/core/workers/chunks/76196c414e48834f7b92.js +1 -0
  25. package/assets/esri/core/workers/chunks/{5078b66ba31b770b689f.js → 85908e6e9c50749cee60.js} +1 -1
  26. package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
  27. package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
  28. package/assets/esri/core/workers/chunks/ae40eac1eadd1a537bf4.js +1 -0
  29. package/assets/esri/core/workers/chunks/bbf993dba74850bbf9d7.js +1 -0
  30. package/assets/esri/core/workers/chunks/bfd85e8d54062a590f0e.js +1 -0
  31. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +1 -0
  32. package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
  33. package/assets/esri/core/workers/chunks/f43a50d4bd9636e68ae5.js +1118 -0
  34. package/assets/esri/core/workers/chunks/f46a0d7cf588ba1b4157.js +1 -0
  35. package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
  36. package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
  37. package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
  38. package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
  39. package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
  40. package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
  41. package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
  42. package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
  43. package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
  44. package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
  45. package/{basemaps → basemapGallery}/types.d.ts +2 -2
  46. package/config.js +1 -1
  47. package/core/units.js +1 -1
  48. package/geometry/support/wkt.js +2 -0
  49. package/kernel.js +1 -1
  50. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  51. package/layers/graphics/transferFeatures.js +1 -1
  52. package/package.json +2 -2
  53. package/symbols/cim/cimAnalyzer.js +1 -1
  54. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -4
  55. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -4
  56. package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
  57. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  58. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
  59. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
  60. package/views/3d/layers/support/FeatureMemory.js +1 -1
  61. package/views/3d/layers/support/FeatureTile.js +1 -1
  62. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  63. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  64. package/views/3d/support/PBFDecoder.js +1 -1
  65. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
  66. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  67. package/views/SceneView.d.ts +4 -10
  68. package/views/View.d.ts +4 -12
  69. package/views/interactive/options/SnappingOptions.d.ts +28 -12
  70. package/views/interactive/options/TooltipOptions.d.ts +8 -1
  71. package/views/interactive/options/ValueOptions.d.ts +9 -2
  72. package/views/interactive/options/ViewOptions.d.ts +81 -6
  73. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
  74. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  75. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
  76. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
  77. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
  78. package/widgets/BasemapGallery/types.d.ts +3 -3
  79. package/widgets/BatchAttributeForm.js +1 -1
  80. package/widgets/Editor/EditorViewModel.d.ts +13 -8
  81. package/widgets/Editor.d.ts +9 -9
  82. package/widgets/Sketch/SketchViewModel.d.ts +13 -8
  83. package/widgets/Sketch.d.ts +9 -9
  84. package/arcade/geometry/wkt.js +0 -2
  85. package/assets/esri/core/workers/chunks/05d865b2736f452ad2aa.js +0 -1
  86. package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
  87. package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
  88. package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
  89. package/assets/esri/core/workers/chunks/33956f12505e72e60293.js +0 -1
  90. package/assets/esri/core/workers/chunks/512628db534605a2a93e.js +0 -1742
  91. package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
  92. package/assets/esri/core/workers/chunks/5e184fd47e76eb976fa9.js +0 -1
  93. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
  94. package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
  95. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +0 -1
  96. package/assets/esri/core/workers/chunks/71103472c45928bd730c.js +0 -1
  97. package/assets/esri/core/workers/chunks/73a87fb270818aa75fc5.js +0 -1
  98. package/assets/esri/core/workers/chunks/776565dd9741ba2ba151.js +0 -1
  99. package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
  100. package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
  101. package/assets/esri/core/workers/chunks/aa5b42e44d2959fdacd3.js +0 -1
  102. package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
  103. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
  104. package/assets/esri/core/workers/chunks/d89fe41c71c9621c41ae.js +0 -1
  105. package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
  106. package/assets/esri/core/workers/chunks/edf3be87a997f4f05b96.js +0 -1
  107. package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
  108. /package/{basemaps → basemapGallery}/support/basemapCompatibilityUtils.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9358],{69622(e,t,r){r.d(t,{A:()=>z});var i=r(51447),n=r(71511),s=r(53966),o=r(97768),a=r(56454),l=r(16649),u=r(85537),c=r(96156),h=(r(44208),r(4718)),f=r(93687),d=r(11406),p=r(62788),y=r(47328),g=r(67867);const _=new WeakMap;class v extends d.T{get trackingTarget(){return this._trackingTarget??=new g.R(this)}constructor(e,t){super(),this.propertyName=e,this.metadata=t,this.flags=function(e){let t=_.get(e);if(null!=t)return t;let r=y.i.Dirty|(e.nonNullable?y.i.NonNullable:0)|(e.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===e.get?y.i.DepTrackingInitialized:0)|(void 0===e.dependsOn?y.i.AutoTracked:0);return _.set(e,r),r}(t)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this._trackingTarget?.destroy()}getComputed(e,t){e.mutable&&(0,p.gc)(this);let r=e.store,i=this.propertyName,n=this.flags,s=r.get(i);if(n&y.i.Computing||!(n&y.i.Dirty)&&r.has(i))return s;this.flags|=y.i.Computing;let o,{host:a}=e;n&y.i.AutoTracked?o=(0,p.a)(this.trackingTarget,t,a):((0,p.Xr)(a,this),o=t.call(a)),this.flags|=y.i.DepTrackingInitialized,r.set(i,o,1);let l=r.get(i);return l===s?this.flags&=~y.i.Dirty:(0,p.F_)(this.commit,this),this.flags&=~y.i.Computing,l}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);let e=this._observers;if(e&&e.length>0)for(let t of e)t.onInvalidated()}onCommitted(){let e=this._observers;if(e&&e.length>0){let t=e.slice();for(let e of t)e.onCommitted()}}}var m=r(35666);class w{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new w;return this._values.forEach((r,i)=>{(!e||!e.has(i))&&t.set(i,(0,h.o8)(r))}),t}get(e){return this._values.get(e)}originOf(){return 7}keys(){return[...this._values.keys()]}set(e,t){this._values.set(e,t)}delete(e){this._values.delete(e)}has(e){return this._values.has(e)}isAtOrigin(e,t){return this.has(e)}isBelowOrigin(e,t){return!this.has(e)}forEach(e){this._values.forEach(e)}}function b(e,t,r){return void 0!==e}function A(e,t,r,i){return!(void 0===e||null==r&&e.flags&y.i.NonNullable&&(i.lifecycle,u.v.INITIALIZING,1))}class O{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=u.v.INITIALIZING,this.store=new w,this.mutable=!0,this._origin=7;let t=this.host.constructor.__accessorMetadata__;for(let e in t){let r=new v(e,t[e]);this.propertiesByName.set(e,r)}this.metadata=t}initialize(){this.lifecycle=u.v.CONSTRUCTING}constructed(){this.lifecycle=u.v.CONSTRUCTED}destroy(){this.lifecycle=u.v.DESTROYED,this.propertiesByName.forEach(e=>e.destroy())}get initialized(){return this.lifecycle!==u.v.INITIALIZING}get(e){let t=this.propertiesByName.get(e);if(!b(t))return;let r=t.metadata.get;if(r)return t.getComputed(this,r);this.mutable&&(0,p.gc)(t);let i=this.store;return i.has(e)?i.get(e):t.metadata.value}originOf(e){let t=this.store.originOf(e);if(void 0===t){let t=this.propertiesByName.get(e);if(void 0!==t&&t.flags&y.i.HasDefaultValue)return"defaults"}return(0,m.OL)(t)}has(e){return this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){let t=this.propertiesByName.get(e);if(b(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){let r=this.propertiesByName.get(e);b(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){let i=this.propertiesByName.get(t);if(!b(i))return"";let n=new g.R,s=(0,p.a)(n,()=>i.metadata.get?.call(e)),o=`${r}${e.declaredClass.split(".").pop()}.${t}: ${s}\n`,a=n.accessed??new Set;if(0===a.size)return o;r+=" ";for(let e of a)e instanceof v&&(o+=`${r}${e.propertyName}: undefined\n`);return o}setAtOrigin(e,t,r){let i=this.propertiesByName.get(e);if(b(i))return this._setAtOrigin(i,t,r)}isOverridden(e){let t=this.propertiesByName.get(e);return void 0!==t&&!!(t.flags&y.i.Overridden)}clearOrigin(e,t){let r=this.store,i=this.propertiesByName.get(e);if(!b(i))return;let n=r.isAtOrigin(e,t)&&!(i.flags&y.i.Overridden);r.delete(e,t),n&&i.notifyChange()}clearOverride(e){let t=this.propertiesByName.get(e);t&&t.flags&y.i.Overridden&&(t.flags&=~y.i.Overridden,t.notifyChange())}override(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}r.flags|=y.i.Overridden,this._internalSet(r,t)}set(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}let n=r.metadata.set;n?n.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,m.aB)(e)}getDefaultOrigin(){return(0,m.OL)(this._origin)}notifyChange(e){this.propertiesByName.get(e)?.notifyChange()}invalidate(e){this.propertiesByName.get(e)?.invalidate()}commit(e){this.propertiesByName.get(e)?.commit()}_internalSet(e,t){let r=this.lifecycle===u.v.INITIALIZING?0:this._origin;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){let i=this.store,n=e.propertyName,s=i.isAtOrigin(n,r);if(s&&~e.flags&y.i.Overridden&&(0,h.aI)(t,i.get(n)))return;let o=i.isBelowOrigin(n,r)||s;o&&e.invalidate(),i.set(n,t,r),o&&e.commit(),(0,p.fE)(this.host,e)}_cast(e,t){let r=k.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}class N{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}}const k=new f.A(()=>new N);var S=r(47821);var j,T,C=r(14012),D=r(10107),E=r(64108);function $(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const M=Symbol("Accessor-Handles"),I=Symbol("Accessor-Initialized");class z{static{j=M,T=I}static createSubclass(e={}){if(Array.isArray(e))throw Error("Multi-inheritance unsupported since 4.16");let{properties:t,declaredClass:r,constructor:i}=e;delete e.declaredClass,delete e.properties,delete e.constructor;let n=this;class s extends n{constructor(...e){super(...e),this.inherited=null,i&&i.apply(this,e)}}(0,c.tD)(s.prototype);for(let t in e){let r=e[t];s.prototype[t]="function"==typeof r?function(...e){let i,s=this.inherited;this.inherited=function(...e){if(n.prototype[t])return n.prototype[t].apply(this,e)};try{i=r.apply(this,e)}catch(e){throw this.inherited=s,e}return this.inherited=s,i}:e[t]}for(let e in t){let r=$(t[e]);(0,D.MZ)(r)(s.prototype,e)}return(0,E.$)(r)(s)}static freeze(e){return e instanceof z?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof z?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[j]=null,this[T]=!1,this.constructor===z)throw Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let t=new O(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0])}postscript(){let e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[I]=!0}initialize(){}[a.G](){this[M]=(0,o.pR)(this[M])}destroy(){this.destroyed||((0,C.iS)(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[I]}get destroyed(){return this.__accessor__?.lifecycle===u.v.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===u.v.DESTROYING||!1}commitProperty(e){(0,l.Jt)(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return(0,S.h)(this,e,t),this}watch(e,t,r){return(0,i.eO)(s.A.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://arcg.is/1vaqf42#watch",warnOnce:!0}),(0,C.wB)(this,e,t,r)}addHandles(e,t){if(this.destroyed){let t=Array.isArray(e)?e:[e];for(let e of t)e.remove()}else(this[M]??=new n.A).add(e,t)}removeHandles(e){this[M]?.remove(e)}removeAllHandles(){this[M]?.removeAll()}removeHandlesReference(e){this[M]?.removeReference(e)}hasHandles(e){return!0===this[M]?.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}},98291(e,t,r){r.d(t,{A:()=>s});var i=r(93687);function n(e){e.length=0}class s{constructor(e=50,t=50){this._pool=new i.A(()=>[],void 0,n,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return o.acquire()}static release(e){return o.release(e)}static prune(){o.prune()}}const o=new s(100)},71511(e,t,r){r.d(t,{A:()=>n});var i=r(5479);class n{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach(t=>{e+=t.length}),e}add(e,t){if((0,i.xZ)(e)){let r=this._getOrCreateGroup(t);for(let t of e)a(t)&&r.push(t)}else a(e)&&this._getOrCreateGroup(t).push(e);return this}forEach(e,t){if("function"==typeof e)this._groups.forEach(t=>t.forEach(e));else{let r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(s(e))}remove(e){if("string"!=typeof e&&(0,i.xZ)(e)){for(let t of e)this.remove(t);return this}return this.has(e)&&(o(this._getGroup(e)),this._groups.delete(s(e))),this}removeAll(){return this._groups.forEach(o),this._groups.clear(),this}removeReference(e){return this._groups.delete(e),this}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);let t=[];return this._groups.set(s(e),t),t}_getGroup(e){return this._groups.get(s(e))}}function s(e){return e||"_default_"}function o(e){for(let t of e)t instanceof n?t.removeAll():t.remove()}function a(e){return null!=e&&(!!e.remove||e instanceof n)}},25482(e,t,r){r.d(t,{o:()=>y,T:()=>d});var i=r(32198),n=r(69622),s=r(4718);class o{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new o;return this._values.forEach((r,i)=>{(!e||!e.has(i))&&t.set(i,(0,s.o8)(r.value),r.origin)}),t}get(e,t){t=this._normalizeOrigin(t);let r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??7}keys(e){e=this._normalizeOrigin(e);let t=[...this._values.keys()];return null==e?t:t.filter(t=>this._values.get(t)?.origin===e)}set(e,t,r){if(0===(r=this._normalizeOrigin(r))){let t=this._values.get(e);if(null!=t?.origin&&t.origin>r)return}this._values.set(e,new a(t,r))}delete(e,t){(null==(t=this._normalizeOrigin(t))||this._values.get(e)?.origin===t)&&this._values.delete(e)}has(e,t){return null==(t=this._normalizeOrigin(t))?this._values.has(e):this._values.get(e)?.origin===t}isAtOrigin(e,t){return t=this._normalizeOrigin(t),this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return t=this._normalizeOrigin(t),!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(({value:t},r)=>e(t,r))}_normalizeOrigin(e){if(null!=e)return 0===e?e:7}}class a{constructor(e,t){this.value=e,this.origin=t}}var l=r(76953),u=r(45917),c=r(88620),h=r(49422),f=r(64108);const d=e=>{let t=e,r=class extends t{constructor(...e){super(...e);let t=(0,c.oY)(this),r=t.store,i=new o;t.store=i,(0,l.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}write(e,t){return(0,h.M)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return p.call(this,e,t)}};return r=(0,i.Cg)([(0,f.$)("esri.core.JSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function p(e,t){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}const y=d(n.A)},93687(e,t,r){r.d(t,{A:()=>i});class i{constructor(e,t,r,i=1,n=0){this._creator=e,this._acquireFunction=t,this._releaseFunction=r,this.allocationSize=i,this._pool=Array(n),this._initialSize=n;for(let e=0;e<n;e++)this._pool[e]=this._creator();this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...e){if(0===this._pool.length){let e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=this._creator()}let t=this._pool.pop();return this._acquireFunction?this._acquireFunction(t,...e):function(e){return e?.acquire&&"function"==typeof e.acquire}(t)&&t.acquire(...e),t}release(e){var t;e&&(this._releaseFunction?this._releaseFunction(e):(t=e,t?.release&&"function"==typeof t.release&&e.release()),this._pool.push(e))}prune(e=this._initialSize){if(!(e>=this._pool.length)){for(let t=e;t<this._pool.length;++t){let e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&"function"==typeof e.dispose&&e.dispose()}}},15142(e,t,r){r.d(t,{A:()=>u});var i=r(4576),n=r(21818);const s=(e,t,r,i)=>{let n=t,s=t,o=r>>>1,a=e[n-1];for(;s<=o;){s=n<<1,s<r&&i(e[s-1],e[s])<0&&++s;let t=e[s-1];if(i(t,a)<=0)break;e[n-1]=t,n=s}e[n-1]=a},o=(e,t)=>e<t?-1:+(e>t);function a(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i);let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i)}}function*l(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i),yield;let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i),yield}}class u{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new i.vW,e&&(e.initialSize&&(this.data=Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),void 0!==e.deallocator&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){let t=[];for(let r=0;r<this._length;r++){let i=this.data[r];e(i)&&t.push(i)}return t}at(e){if((e=Math.trunc(e)||0)<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,t){let r=this.data.indexOf(e,t);return-1!==r&&r<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let t=e;t<this._length;++t)this.data[t]=this._deallocator(this.data[t]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,t=e.length){for(let r=0;r<t;r++)this.data[this._length++]=e[r]}pushAll(e){for(let t of e)this.data[this._length++]=t}fill(e,t){for(let r=0;r<t;r++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,c(this)}pop(){if(0===this.length)return;let e=this.data[this.length-1];return--this.length,this._shrink(),e}remove(e){let t=(0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint);if(-1!==t)return this.data.splice(t,1),--this.length,e}removeUnordered(e){return this.removeUnorderedIndex((0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,t=e.length,r){this.length=(0,i.mW)(this.data,e,this.length,t,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(e,t){if(e>=this.length||t>=this.length||e===t)return;let r=this.data[e];this.data[e]=this.data[t],this.data[t]=r}sort(e){a(this.data,0,this.length,e)}iterableSort(e){return l(this.data,0,this.length,e)}some(e,t){for(let r=0;r<this.length;++r)if(e.call(t,this.data[r],r,this.data))return!0;return!1}find(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)if(e.call(t,r[n]))return r[n]}filterInPlace(e,t){let r=0;for(let i=0;i<this._length;++i){let n=this.data[i];e.call(t,n,i,this.data)&&(this.data[i]=this.data[r],this.data[r]=n,r++)}if(this._deallocator)for(let e=r;e<this._length;e++)this.data[e]=this._deallocator(this.data[e]);return this._length=r,this._shrink(),this}forAll(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)e.call(t,r[n],n,r)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){let r=Array(this.length);for(let i=0;i<this.length;++i)r[i]=e.call(t,this.data[i],i,this.data);return r}reduce(e,t){let r=t;for(let t=0;t<this.length;++t)r=e(r,this.data[t],t,this.data);return r}has(e){let t=this.length,r=this.data;for(let i=0;i<t;++i)if(r[i]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;++e)yield this.data[e]}}function c(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(1.1*e.length))}},67076(e,t,r){r.d(t,{A:()=>n});var i=r(799);class n{constructor(e,t,r){this.name=e,this.details=r,this.type="warning",this.message=t?(0,i.V2)(t,r):""}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}}},85537(e,t,r){r.d(t,["v",0,{INITIALIZING:0,CONSTRUCTING:1,CONSTRUCTED:2,DESTROYING:3,DESTROYED:4}])},11406(e,t,r){r.d(t,{T:()=>s});var i=r(36563);class n{constructor(e,t){this._observers=e,this._observer=t}remove(){let{_observers:e,_observer:t}=this;if(e[e.length-1]===t)return void e.pop();let r=e.indexOf(this._observer);-1!==r&&e.splice(r,1)}}class s{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return o;this._observers??=[];let t=this._observers,r=!1,i=!1;for(let n of t)if(n.destroyed)i=!0;else if(n===e){r=!0;break}return r||(t.push(e),i&&this._removeDestroyedObservers()),new n(t,e)}_removeDestroyedObservers(){let e=this._observers;if(!e)return;let t=e.length;if(0===t)return;let r=0;for(let i=0;i<t;++i){for(;i+r<t&&e[i+r].destroyed;)++r;if(r>0){if(!(i+r<t))break;e[i]=e[i+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;let e=this._observers;if(null!=e){for(let t of e)t.onCommitted();this._observers=null}}}const o=(0,i.hA)()},35666(e,t,r){function i(e){switch(e){case"defaults":return 0;case"service":return 2;case"portal-item":return 3;case"web-scene":return 4;case"web-map":return 5;case"link-chart":return 6;case"user":return 7;default:return null}}function n(e){switch(e){case 0:return"defaults";case 2:return"service";case 3:return"portal-item";case 4:return"web-scene";case 5:return"web-map";case 6:return"link-chart";case 7:return"user"}}function s(e){return n(e)}r.d(t,{OL:()=>n,aB:()=>i,in:()=>s})},56454(e,t,r){const i=Symbol("Accessor-beforeDestroy");r.d(t,["G",0,i])},91429(e,t,r){r.d(t,{wg:()=>l,MZ:()=>o,$K:()=>a});var i=r(10107),n=r(79901),s=r(64108);r(93223),r(36005),r(43937);const o=i.MZ,a=s.$;function l(...e){return(0,n.w)(...e)}},79901(e,t,r){r.d(t,{w:()=>l});var i=r(78888),n=r(96156);const s=Object.prototype.toString;function o(e){let t="__accessorMetadata__"in e?(0,i.dp)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,i){(0,n.z4)(e,t).cast=i}function l(...e){if(3!==e.length||"string"!=typeof e[1]){if(1===e.length&&"[object Function]"===s.call(e[0]))return o(e[0]);if(1===e.length&&"string"==typeof e[0])return function(e){return(t,r)=>{(0,n.z4)(t,e).cast=t[r]}}(e[0])}}},93223(e,t,r){r.d(t,{e:()=>s});var i=r(66552),n=r(10107);function s(e,t={}){let r=e instanceof i.J?e:new i.J(e,t),{alwaysWriteDefaults:s,default:o,ignoreUnknown:a=!0,name:l,nonNullable:u,readOnly:c=!1}=t;return(0,n.MZ)({type:a?r.apiValues:String,json:{type:r.jsonValues,default:o,name:l,read:!c&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:s}},nonNullable:u,readOnly:c})}},10107(e,t,r){r.d(t,{MZ:()=>l,rM:()=>u});var i=r(53966),n=r(78888),s=r(16649),o=r(96156),a=r(47821);function l(e={}){return(t,r)=>{if(t===Function.prototype)throw Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let l=Object.getOwnPropertyDescriptor(t,r),u=(0,o.z4)(t,r);l&&(l.get||l.set?(u.get=l.get||u.get,u.set=l.set||u.set):"value"in l&&("value"in e&&i.A.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),u.value=e.value=l.value)),null!=e.readOnly&&(u.readOnly=e.readOnly);let c=e.aliasOf;if(c){let e,t="string"==typeof c?c:c.source,i="string"==typeof c?null:!0===c.overridable;u.dependsOn=[t],u.get=function(){let r=(0,s.Jt)(this,t);if("function"==typeof r){e||=t.split(".").slice(0,-1).join(".");let i=(0,s.Jt)(this,e);i&&(r=r.bind(i))}return r},u.readOnly||(u.set=i?function(e){this._override(r,e)}:function(e){(0,a.h)(this,t,e)})}let h=e.type,f=e.types;if(!u.cast){let t;h&&!1!==e.useTypeForAutocast?t=function(e){let t=0,r=e;if((0,n.Zu)(e))return(0,n.Nd)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;let i=r;if((0,n.EK)(i))return 0===t?(0,n.MB)(i):(0,n._e)((0,n.MB)(i),t);if(1===t)return(0,n.eC)(i);if(t>1)return(0,n.e6)(i,t);let s=e;return s.from?s.from:(0,n.dp)(s)}(h):f&&(t=Array.isArray(f)?(0,n.wB)((0,n.aq)(f[0])):(0,n.aq)(f)),e.cast=function(e,t){if(e||t)return e?t?(r,i)=>t(e(r,i),i):e:t}(e.cast,t)}(0,o.CX)(u,e),e.range&&(u.cast=(0,n.Qp)(u.cast,e.range))}}function u(e,t,r){let i=(0,o.z4)(e,r);i.json||={};let n=i.json;return void 0!==t&&(n.origins||(n.origins={}),n.origins[t]||(n.origins[t]={}),n=n.origins[t]),n}},36005(e,t,r){r.d(t,{w:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t||Array.isArray(t)?(s=e,r=t,n=[void 0]):(s=t,n=Array.isArray(e)?e:[e]),(e,t)=>{let o=e.constructor.prototype;n.forEach(n=>{let a=(0,i.rM)(e,n,s);(!a.read||"object"!=typeof a.read)&&(a.read={}),a.read.reader=o[t],r&&(a.read.source=(a.read.source||[]).concat(r))})}}},64108(e,t,r){r.d(t,{$:()=>w}),r(44208);var i=r(53966),n=r(56454),s=r(85537),o=r(96156),a=r(62788),l=r(78888),u=r(90360);function c(e){e.name&&(e.read&&"object"==typeof e.read?void 0===e.read.source&&(e.read.source=e.name):e.read={source:e.name},e.write&&"object"==typeof e.write?void 0===e.write.target&&(e.write.target=e.name):e.write={target:e.name})}function h(e){"boolean"==typeof e.read?e.read={enabled:e.read}:"function"==typeof e.read?e.read={enabled:!0,reader:e.read}:e.read&&"object"==typeof e.read&&void 0===e.read.enabled&&(e.read.enabled=!0)}function f(e){"boolean"==typeof e.write?e.write={enabled:e.write}:"function"==typeof e.write?e.write={enabled:!0,writer:e.write}:e.write&&"object"==typeof e.write&&void 0===e.write.enabled&&(e.write.enabled=!0)}var d=r(67124);function p(e){return e.type?y(e):g(e)}function y(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!(0,l.EK)(r);)r=r[0],t++;return{type:r,ndimArray:t}}function g(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function _(e){(function(e){if(e.json||={},h(e.json),f(e.json),c(e.json),e.json.origins)for(let t in e.json.origins)h(e.json.origins[t]),f(e.json.origins[t]),c(e.json.origins[t]);return!0})(e)&&(function(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let e in r)if(t[e]){let i=t[e];r[e].forEach(e=>{t[e]=i}),delete t[e]}}}(e),function(e){let t=function(e){return e.json.types?g(e.json):e.type?y(e):g(e)}(e);if(e.json.origins)for(let r in e.json.origins){let i=e.json.origins[r],n=i.types?p(i):t;(0,u.v)(n,i,!1),i.types&&!i.write&&e.json.write?.enabled&&(i.write={...e.json.write}),(0,d.v)(n,i)}(0,u.v)(t,e.json,!0),(0,d.v)(t,e.json)}(e))}const v=new Set,m=new Set;function w(e){return t=>{e??="esri.core.Accessor",t.prototype.declaredClass=e,N(t);let r=[],i=[],a=t.prototype;for(;a;)a.hasOwnProperty("initialize")&&!v.has(a.initialize)&&(v.add(a.initialize),r.push(a.initialize)),a.hasOwnProperty("destroy")&&!m.has(a.destroy)&&(m.add(a.destroy),i.push(a.destroy)),a=Object.getPrototypeOf(a);v.clear(),m.clear();let l=class extends t{constructor(...e){if(super(...e),this.constructor===l&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=r.length-1;e>=0;e--)r[e].call(this)}}),i.length){let e=!1,t=this[n.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){this.__accessor__.lifecycle=s.v.DESTROYING,e=!0,t.call(this);for(let e=0;e<i.length;e++)i[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};l.__accessorMetadata__=(0,o.tD)(t.prototype),l.prototype.declaredClass=e;let u=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(l.prototype,Symbol.toStringTag,{value:u,configurable:!0,writable:!0,enumerable:!1}),l}}function b(e,{get:t,value:r}){return null==t?function(){let t=this.__accessor__,i=t.propertiesByName.get(e);if(void 0===i)return;t.mutable&&(0,a.gc)(i);let n=t.store;return n.has(e)?n.get(e):r}:function(){let r=this.__accessor__;return r.propertiesByName.get(e)?.getComputed(r,t)}}function A(e,t,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r})}function O(e,t){return t.readOnly&&t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:t.readOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);i.set(e,r)}}else A(this,e,r)}:t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:function(t){let r=this.__accessor__;r?r.mutable&&r.set(e,t):A(this,e,t)}}function N(e){let t=e.prototype,r=(0,o.tD)(t),i={};for(let e of Object.getOwnPropertyNames(r)){let t=r[e];_(t),i[e]={enumerable:!0,configurable:!0,get:b(e,t),set:O(e,t)}}Object.defineProperties(e.prototype,i)}const k=(e,t)=>{i.A.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}},43937(e,t,r){r.d(t,{K:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t?(s=e,n=[void 0]):"string"==typeof t?(s=t,n=Array.isArray(e)?e:[e]):(s=e,n=[void 0],r=t),(e,t)=>{let o=e.constructor.prototype;for(let a of n){let n=(0,i.rM)(e,a,s);(!n.write||"object"!=typeof n.write)&&(n.write={}),r&&(n.write.target=r),n.write.writer=o[t]}}}},76953(e,t,r){function i(e,t,r){t.keys().forEach(e=>{r.set(e,t.get(e),0)});let i=e.metadata;Object.keys(i).forEach(t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),0)})}r.d(t,{k:()=>i})},78888(e,t,r){r.d(t,{EK:()=>C,GB:()=>u,GX:()=>l,MB:()=>D,Nd:()=>z,PZ:()=>v,Qp:()=>f,Uv:()=>M,Vr:()=>c,Zu:()=>I,_e:()=>j,aq:()=>E,dp:()=>A,e6:()=>T,eC:()=>k,jz:()=>$,qf:()=>O,wB:()=>N});var i=r(53966),n=r(91869);const s=()=>i.A.getLogger("esri.core.accessorSupport.ensureTypes");function o(e){if(null==e)return e;let t=new Date(e);return isNaN(t.getTime())?(s().error("Accessor#set",`Invalid date value: '${e}', falling back to current date`),new Date):t}function a(e){return null==e?e:!!e}function l(e){return null==e?e:e.toString()}function u(e,t=0){return null==e?e:(e=parseFloat(e),isNaN(e)?t:e)}function c(e){return null==e?e:Math.round(parseFloat(e))}function h(e){return null}function f(e,t){return r=>{let i=e(r);return null!=t.step&&(i=Math.round(i/t.step)*t.step),null!=t.min&&(i=Math.max(t.min,i)),null!=t.max&&(i=Math.min(t.max,i)),i}}function d(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function p(e,t){return null!=t&&e&&!(t instanceof e)}function y(e){return e&&"isCollection"in e}function g(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function _(e,t){return!!d(t)&&(s().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+m(e)+"'"),!0)}function v(e,t){return null==t?t:y(e)?function(e,t){if(!t?.constructor||!y(t.constructor))return _(e,t)?t:new e(t);let r=g(e.prototype.itemType),i=g(t.constructor.prototype.itemType);return r?i?r===i?t:r.prototype.isPrototypeOf(i.prototype)?new e(t):(_(e,t),t):new e(t):t}(e,t):p(e,t)?_(e,t)?t:new e(t):t}function m(e){return e?.prototype?.declaredClass||"unknown"}const w=new WeakMap;function b(e){switch(e){case Number:return e=>u(e);case $:return c;case Boolean:return a;case String:return l;case Date:return o;case M:return h;default:return(0,n.tE)(w,e,()=>v.bind(null,e))}}function A(e,t){let r=b(e);return 1===arguments.length?r:r(t)}function O(e){let t=b(e);return e=>t(e)}function N(e,t,r){return 1===arguments.length?N.bind(null,e):t&&(Array.isArray(t)?t.map(t=>e(t,r)):[e(t,r)])}function k(e,t){return 1===arguments.length?N(t=>A(e,t)):N(t=>A(e,t),t)}function S(e,t,r){return 0!==t&&Array.isArray(r)?r.map(r=>S(e,t-1,r)):e(r)}function j(e,t,r){if(2===arguments.length)return r=>j(e,t,r);if(!r)return r;r=S(e,t,r);let i=t,n=r;for(;i>0&&Array.isArray(n);)i--,n=n[0];if(void 0!==n)for(let e=0;e<i;e++)r=[r];return r}function T(e,t,r){return 2===arguments.length?j(t=>A(e,t),t):j(t=>A(e,t),t,r)}function C(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!("string"===r||"number"===r||"function"===r&&e.length>1)})}function D(e,t){if(2===arguments.length)return D(e).call(null,t);let r=new Set,i=e.filter(e=>"function"!=typeof e),n=e.filter(e=>"function"==typeof e);for(let t of e)("string"==typeof t||"number"==typeof t)&&r.add(t);let o=null,a=null;return(e,t)=>{if(null==e)return e;let l=typeof e,u="string"===l||"number"===l;return u&&(r.has(e)||n.some(e=>"string"===l&&e===String||"number"===l&&e===Number))||"object"===l&&n.some(t=>!p(t,e))?e:(u&&i.length?(o||=i.map(e=>"string"==typeof e?`'${e}'`:`${e}`).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${o}`)):"object"==typeof e&&n.length?(a||=n.map(e=>m(e)).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${a}`)):s().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function E(e,t){if(2===arguments.length)return E(e).call(null,t);let r={},i=[],n=[];for(let t in e.typeMap){let s=e.typeMap[t];r[t]=A(s),i.push(m(s)),n.push(t)}let o=()=>`'${i.join("', '")}'`,a=()=>`'${n.join("', '")}'`,l="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!p(e.base,t)||null==t)return t;let i=l(t)||e.defaultKeyValue,n=r[i];if(!n)return s().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!p(e.typeMap[i],t))return t;if("string"==typeof e.key&&!d(t)){let r={};for(let i in t)i!==e.key&&(r[i]=t[i]);return n(r)}return n(t)}}class ${}class M{}function I(e){if(!e||"object"!=typeof e&&"function"!=typeof e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function z(e){switch(e.type){case"native":return A(e.value);case"array":return N(z(e.value));case"one-of":return function(e){let t=null;return(r,i)=>q(r,e)?r:(t??=P(e),s().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),i&&(i.valid=!1),null)}(e);default:return null}}function P(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case $:return"integer";case Date:return"date";case M:return"null";default:return m(e.value)}case"array":return`array of ${P(e.value)}`;case"one-of":{let t=e.values.map(e=>P(e));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function q(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case $:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e;case M:return null===e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(e=>!q(e,t.value));case"one-of":return t.values.some(t=>q(e,t))}}r.d(t,["gK",0,{native:e=>({type:"native",value:e}),array:e=>({type:"array",value:e}),oneOf:e=>({type:"one-of",values:e})}])},90360(e,t,r){r.d(t,{C:()=>h,v:()=>c});var i=r(53966),n=r(93637),s=r(96156),o=r(15903),a=r(7142),l=r(59923);const u=()=>i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function c(e,t,r){e&&(!r&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?_(e.types):g(e.type)}(e)&&(0,n.sM)("read.reader",h(e),t))}function h(e){let t=e.ndimArray??0;if(t>1)return function(e){let t=f(e),r=d.bind(null,t),i=e.ndimArray??0;return(e,t,n)=>{if(null==e)return e;e=r(e,n,i);let s=i,o=e;for(;s>0&&Array.isArray(o);)s--,o=o[0];if(void 0!==o)for(let t=0;t<s;t++)e=[e];return e}}(e);if(1===t)return p(e);if("type"in e&&y(e.type)){let t=e.type.prototype?.itemType?.Type,r=p("function"==typeof t?{type:t}:{types:t});return(t,i,n)=>{let s=r(t,i,n);return s&&new e.type(s)}}return f(e)}function f(e){return"type"in e?function(e){return e.prototype.read?(t,r,i)=>{if(null==t)return t;let n=typeof t;if("object"!==n)return void u().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${n}'`);let s=new e;return s.read(t,i),s}:e.fromJSON}(e.type):function(e){let t=null,r=e.errorContext??"type",i=e.validate;return(n,o,c)=>{if(null==n)return n;let h=typeof n;if("object"!==h)return void u().error(`Expected JSON value of type 'object' to deserialize, but got '${h}'`);t||=function(e){let t={};for(let r in e.typeMap){let i=e.typeMap[r],n=(0,s.tD)(i.prototype);if("function"==typeof e.key)continue;let o=n[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]){t[o.json.type[0]]=i;continue}let a=o.json?.write;if(!a?.writer){t[r]=i;continue}let l=a.target,u="string"==typeof l?l:e.key,c={};a.writer(r,c,u),c[u]&&(t[c[u]]=i)}return t}(e);let f=e.key;if("string"!=typeof f)return;let d=n[function(e,t,r){let i=Object.values(t)[0],n=(0,s.tD)(i.prototype)[e],o=(0,a.N5)(n,r)?.read?.source;return o&&"string"==typeof o?o:e}(f,t,c)],p=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!p){let e=`Type '${d||"unknown"}' is not supported`;return c?.messages&&n&&(0,l.Yc)(c,"warning",r,e,{definition:n,context:c}),void u().error(e)}let y=new p;return y.read(n,c),i?i(y):y}}(e.types)}function d(e,t,r,i){return 0!==i&&Array.isArray(t)?t.map(t=>d(e,t,r,i-1)):e(t,void 0,r)}function p(e){let t=f(e);return(e,r,i)=>{if(null==e)return e;if(Array.isArray(e)){let r=[];for(let n of e){let e=t(n,void 0,i);void 0!==e&&r.push(e)}return r}let n=t(e,void 0,i);return void 0===n?void 0:[n]}}function y(e){if(!(0,o.P)(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?g(t.Type):_(t.Type))}function g(e){return!Array.isArray(e)&&!!e&&("object"==typeof e||"function"==typeof e)&&e.prototype&&("read"in e.prototype||"fromJSON"in e||y(e))}function _(e){for(let t in e.typeMap)if(!g(e.typeMap[t]))return!1;return!0}},15903(e,t,r){function i(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(t,{P:()=>i})},7142(e,t,r){function i(e,t){return o(e,"any",t?.origin)}function n(e,t){return o(e,"read",t?.origin)}function s(e,t){return o(e,"write",t?.origin)}function o(e,t,r){let i=e?.json;if(i?.origins&&r){let e;e="link-chart"===r?i.origins[r]&&("any"===t||t in i.origins[r])?i.origins[r]:i.origins["web-map"]:i.origins[r],e&&("any"===t||t in e)&&(i=e)}return i}r.d(t,{N5:()=>n,k4:()=>s,xF:()=>i})},67124(e,t,r){r.d(t,{B:()=>h,v:()=>a});var i=r(53966),n=r(93637),s=r(15903),o=r(59923);function a(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(1===r||"type"in e&&(0,s.P)(e.type))?t.write.writer=f:r>1?t.write.writer=function(e){return(t,r,i,s)=>{let o;if(null===t)o=null;else{o=d(t,s,e);let r=e,i=o;for(;r>0&&Array.isArray(i);)r--,i=i[0];if(void 0!==i)for(let e=0;e<r;e++)o=[o]}(0,n.sM)(i,o,r)}}(r):t.types?Array.isArray(t.types)?t.write.writer=function(e){return(t,r,i,n)=>u(t&&Array.isArray(t)?t.filter(t=>l(t,e,n)):t,r,i,n)}(t.types[0]):t.write.writer=function(e){return(t,r,i,n)=>{if(!t||l(t,e,n))return u(t,r,i,n)}}(t.types):t.write.writer=u}function l(e,t,r){for(let r in t.typeMap)if(e instanceof t.typeMap[r])return!0;if(r?.messages){let n=t.errorContext??"type",s=`Values of type '${("function"==typeof t.key?e.declaredClass:e[t.key])??"Unknown"}' cannot be written`;r&&r.messages&&e&&(0,o.Yc)(r,"error",n,s,{definition:e,context:r}),i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(s)}return!1}function u(e,t,r,i){(0,n.sM)(r,c(e,i),t)}function c(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?h(e):e}function h(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function f(e,t,r,i){let s;null===e?s=null:e&&"function"==typeof e.map?(s=e.map(e=>c(e,i)),"function"==typeof s.toArray&&(s=s.toArray())):s=[c(e,i)],(0,n.sM)(r,s,t)}function d(e,t,r){return 0!==r&&Array.isArray(e)?e.map(e=>d(e,t,r-1)):c(e,t)}},16649(e,t,r){r.d(t,{Jt:()=>a,RP:()=>o,t2:()=>l});var i=r(88620);function n(e,t){let r=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){let e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}let n=(0,i.oY)(t);return(0,i.yh)(n,r)?n.get(r):t[r]}function s(e,t,r){if(null==e)return e;let i=n(t[r],e);return!i&&r<t.length-1?void 0:r===t.length-1?i:s(i,t,r+1)}function o(e,t,r=0){return"string"!=typeof t||t.includes(".")?s(e,(0,i.AH)(t),r):n(t,e)}function a(e,t){return o(e,t)}function l(e,t){return void 0!==o(t,e)}},96156(e,t,r){r.d(t,{CX:()=>a,tD:()=>s,z4:()=>o});var i=r(4718),n=r(88620);function s(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let e in t)t[e]=(0,i.o8)(t[e]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function o(e,t){let r=s(e),i=r[t];return i||=r[t]={},i}function a(e,t){return(0,n.h1)(e,t,u)}const l=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function u(e){return l.test(e)?"replace":"merge"}},45917(e,t,r){r.d(t,{L:()=>c,t:()=>h});var i=r(16649),n=r(88620),s=r(7142);function o(e,t,r){if(!e?.read||!1===e.read.enabled||!e.read.source)return!1;let n=e.read.source;if("string"==typeof n){if(n===t||n.includes(".")&&n.startsWith(t)&&(0,i.t2)(n,r))return!0}else for(let e of n)if(e===t||e.includes(".")&&e.startsWith(t)&&(0,i.t2)(e,r))return!0;return!1}function a(e,t,r,i,n){let a=(0,s.N5)(t[r],n);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(let l of Object.getOwnPropertyNames(t))a=(0,s.N5)(t[l],n),o(a,r,i)&&(e[l]=!0)}function l(e,t,r,i){let n=r.metadata,o=(0,s.xF)(n[t],i)?.default;if(void 0===o)return;let a="function"==typeof o?o.call(e,t,i):o;void 0!==a&&r.set(t,a)}const u={origin:"service"};function c(e,t,r=u){if(!t||"object"!=typeof t)return;let o=(0,n.oY)(e),c=o.metadata,h={};for(let e of Object.getOwnPropertyNames(t))a(h,c,e,t,r);o.setDefaultOrigin(r.origin);for(let n of Object.getOwnPropertyNames(h)){let a,l=(0,s.N5)(c[n],r).read,u=l?.source;a=u&&"string"==typeof u?(0,i.RP)(t,u):t[n],l?.reader&&(a=l.reader.call(e,a,t,r)),void 0!==a&&o.set(n,a)}if(!r||!r.ignoreDefaults){o.setDefaultOrigin("defaults");for(let t of Object.getOwnPropertyNames(c))h[t]||l(e,t,o,r)}o.setDefaultOrigin("user")}function h(e,t,r,i=u){let n={...i,messages:[]};r(n),n.messages?.forEach(t=>{"warning"!==t.type||e.loaded?i?.messages&&i.messages.push(t):e.loadWarnings.push(t)})}},47821(e,t,r){r.d(t,{h:()=>o});var i=r(49186),n=r(44208),s=(r(53966),r(16649));function o(e,t,r){if(e&&t)if("object"==typeof t)for(let r of Object.getOwnPropertyNames(t))o(e,r,t[r]);else{if(t.includes(".")){let i=t.split("."),n=i.splice(-1,1)[0];return void o((0,s.Jt)(e,i),n,r)}let a=e.__accessor__;null!=a&&function(e,t){if((0,n.A)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,t))throw new i.A("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,t))}(t,a),e[t]=r}}},62788(e,t,r){r.d(t,{F_:()=>d,Xr:()=>v,a:()=>f,fE:()=>g,gc:()=>u}),r(44208);var i=r(53966),n=r(88620),s=r(47328);const o=new(r(67867).R),a=[];let l=o;function u(e){l.onAccessed(e)}let c=!1,h=!1;function f(e,t,r){if(c)return p(e,t,r);let n;if(h){l=e,a.push(e);try{n=t.call(r)}catch(e){throw i.A.getLogger("esri.core.accessorSupport.tracking").error(e),e}finally{y()}}else{l=e,a.push(e);try{n=t.call(r)}finally{y()}}return n}function d(e,t){return f(o,e,t)}function p(e,t,r){let n,s=c;c=!0,l=e,a.push(e);try{n=t.call(r)}catch(e){h&&i.A.getLogger("esri.core.accessorSupport.tracking").error(e)}return y(),c=s,n}function y(){let e=a.length;if(e>1){let t=a.pop();l=a[e-2],t.onTrackingEnd()}else if(1===e){let e=a.pop();l=o,e.onTrackingEnd()}else l=o}function g(e,t){if(t.flags&s.i.DepTrackingInitialized)return;t.flags|=s.i.DepTrackingInitialized;let r=h;h=!1,t.flags&s.i.AutoTracked?p(t.trackingTarget,t.metadata.get,e):v(e,t),h=r}const _=[];function v(e,t){t.flags&s.i.ExplicitlyTracking||(t.flags|=s.i.ExplicitlyTracking,p(t.trackingTarget,()=>{let r=t.metadata.dependsOn||_;for(let t of r)if("string"!=typeof t||t.includes(".")){let r=(0,n.AH)(t);for(let t=0,i=e;t<r.length&&"object"==typeof i&&i;++t)i=m(i,r[t],t!==r.length-1)}else m(e,t,!1)}),t.flags&=~s.i.ExplicitlyTracking)}function m(e,t,r){let i=t.endsWith("?")?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){let t=parseInt(i,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}let s=(0,n.oY)(e);if(s){let t=s.propertiesByName.get(i);t&&(u(t),g(e,t))}return r?e[i]:void 0}},47328(e,t,r){r.d(t,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},71429(e,t,r){r.d(t,{r:()=>n});var i=r(67867);class n extends i.R{constructor(e){super(new s(e)),this._observer&&o.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&o.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}}class s{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let e=this._invalidCount;1===e?(this._invalidCount=0,this._notify()):this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=a}}const o=new FinalizationRegistry(e=>{e.deref()?.destroy()});function a(){}},67867(e,t,r){r.d(t,{R:()=>i});class i{constructor(e){this.accessed=void 0,this._handles=void 0,this._observer=e}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(e){null!=this._observer&&e!==this._observer&&(this.accessed??=new Set,this.accessed.add(e))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(e=>{this._handles.push(e.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},80559(e,t,r){r.d(t,{Df:()=>u,fm:()=>c,mJ:()=>l});var i=r(36563),n=r(62788),s=r(71429);let o=!1;const a=[];function l(e,t){let r=new s.r(function i(){if(!r||l)return;if(o)return void h(i);let s=a;r.clear(),o=!0,l=!0,a=(0,n.a)(r,e),l=!1,o=!1,t(a,s),f()}),a=null,l=!1;return l=!0,a=(0,n.a)(r,e),l=!1,(0,i.hA)(function(){r&&(r.destroy(),r=null,a=null)})}function u(e,t){let r=new s.r(function(){t(o,a)}),o=null;function a(){return r?(r.clear(),o=(0,n.a)(r,e),o):null}return a(),(0,i.hA)(function(){r&&=(r.destroy(),null),o=null})}function c(e,t){let r=!1,a=!1,l=!!t?.sync,u=new s.r(()=>{!r&&!a&&(a=!0,l?c():queueMicrotask(c))});function c(){a=!1,u&&!r&&(o?h(c):(u.clear(),o=!0,r=!0,(0,n.a)(u,e),r=!1,o=!1,f()))}return r=!0,(0,n.a)(u,e),r=!1,(0,i.hA)(function(){u&&=(u.destroy(),null)})}function h(e){a.includes(e)||a.unshift(e)}function f(){for(;a.length;)a.pop()()}},88620(e,t,r){r.d(t,{AH:()=>u,h1:()=>a,oY:()=>s,qg:()=>h,yh:()=>o});var i=r(36563),n=r(4718);function s(e){return e.__accessor__??null}function o(e,t){return null!=e?.metadata?.[t]}function a(e,t,r){return l(e,t,r?{policy:r,path:""}:null)}function l(e,t,r){return t?Object.keys(t).reduce((e,i)=>{let s=i;if("__proto__"===s)return e;let o=null,a="merge";if(r&&(o=r.path?`${r.path}.${i}`:i,a=r.policy(o)),"replace"===a||"replace-arrays"===a&&Array.isArray(e[s]))return e[s]=t[s],e;if(void 0===e[s])return e[s]=(0,n.o8)(t[s]),e;let u=e[s],c=t[s];if(u===c)return e;if(Array.isArray(c)||Array.isArray(e))u=e[s]=u?Array.isArray(u)?u.slice():[u]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(e=>{u.includes(e)||u.push(e)}));else if(c&&"object"==typeof c)if(r){let t=r.path;r.path=o,e[s]=l(u,c,r),r.path=t}else e[s]=l(u,c,null);else(!e.hasOwnProperty(i)||t.hasOwnProperty(i))&&(e[s]=c);return e},e||{}):e}function u(e){return Array.isArray(e)?e:e.split(".")}function c(e){return e.includes(",")?e.split(",").map(e=>e.trim()):[e.trim()]}function h(e,t,r,n){let s=function(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...c(r));return t}return c(e)}(t);if(1!==s.length){let t=s.map(t=>n(e,t,r));return(0,i.vE)(t)}return n(e,s[0],r)}},14012(e,t,r){r.d(t,{iS:()=>w,wB:()=>N,Cn:()=>k});var i=r(98291),n=r(36563),s=r(4718),o=r(93687);class a extends o.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){let t=super.acquire(...e);return this._set.delete(t),t}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}var l=r(76030),u=r(24326),c=r(16649),h=r(85537),f=r(80559),d=r(88620);class p{constructor(){this.uid=(0,u.c)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static{this.pool=new a(()=>new p)}static acquireUntracked(e,t,r,i,n){return this.pool.acquire(0,e,t,r,i,n,s.aI)}static acquireTracked(e,t,r,i){return this.pool.acquire(1,e,t,r,null,null,i)}notify(e,t){0===this.type?this.callback.call(this.target,e,t,this.path,this.target):this.callback.call(null,e,t,void 0,void 0)}acquire(e,t,r,i,n,s,o){this.uid=(0,u.c)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=i,this.target=n,this.path=s,this.equals=o}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,u.c)(),this.removed=!0}}const y=new i.A,g=new Set;let _;function v(e){g.delete(e),g.add(e),_||=(0,l._)(b)}function m(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function w(e){for(let t of g.values())t.target===e&&(t.removed=!0)}function b(){let e=10;for(;_&&e--;){_=null;let e=A(),t=y.acquire();for(let r of e){let e=r.uid;m(r),e===r.uid&&r.removed&&t.push(r)}for(let e of g)e.removed&&(t.push(e),g.delete(e));for(let e of t)p.pool.release(e);y.release(t),y.release(e),O.forEach(e=>e())}}function A(){let e=y.acquire();e.length=g.size;let t=0;for(let r of g)e[t]=r,++t;return g.clear(),e}const O=new Set;function N(e,t,r,i=!1){return e.__accessor__&&e.__accessor__.lifecycle!==h.v.DESTROYED?i?function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let n=!1;return(0,f.mJ)(()=>(0,c.RP)(e,t),(o,a)=>{e.__accessor__.lifecycle===h.v.DESTROYED?i.remove():n||=(n=!0,(0,s.aI)(a,o)||r.call(e,o,a,t,e),!1)})});return i}(e,t,r):function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let s,o,a=(0,f.Df)(()=>(0,c.RP)(e,t),(n,a)=>{e.__accessor__?.lifecycle===h.v.DESTROYED||s&&s.uid!==o?i.remove():(s||(s=p.acquireUntracked(n,r,a,e,t),o=s.uid),v(s))});return(0,n.hA)(()=>{a.remove(),s&&=(s.uid===o&&!s.removed&&(s.removed=!0,v(s)),null),i=a=null})});return i}(e,t,r):(0,n.hA)()}function k(e,t,r=!1,i=s.gh){return r?function(e,t,r){let i=!1;return(0,f.mJ)(e,(e,n)=>{i||=(i=!0,r(n,e)||t(e,n),!1)})}(e,t,i):function(e,t,r){let i,s,o=(0,f.Df)(e,(e,n)=>{i&&i.uid!==s?o.remove():(i||(i=p.acquireTracked(e,t,n,r),s=i.uid),v(i))});return(0,n.hA)(()=>{o.remove(),i&&=(i.uid===s&&!i.removed&&(i.removed=!0,v(i)),null),o=null})}(e,t,i)}},49422(e,t,r){r.d(t,{M:()=>d,R:()=>f});var i=r(4576),n=r(49186),s=r(53966),o=r(16649),a=r(35666),l=r(88620),u=r(7142);function c(e,t,r,i,n){let s={};return t.write?.writer?.call(e,i,s,r,n),s}function h(e,t,r,l,u,c){if(!l?.write)return!1;let h=(0,o.Jt)(e,r);if(!u&&l.write.overridePolicy){let t=l.write.overridePolicy.call(e,h,r,c??void 0);void 0!==t&&(u=t)}if(u||=l.write,!u||!1===u.enabled||u.layerContainerTypes&&c?.layerContainerType&&!u.layerContainerTypes.includes(c.layerContainerType))return!1;if((null===h&&!u.allowNull&&!u.writerEnsuresNonNull||void 0===h)&&u.isRequired){let t=new n.A("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&c?.messages?c.messages.push(t):t&&!c&&s.A.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===h||null===h&&!u.allowNull&&!u.writerEnsuresNonNull||!u.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||0===t.store.originOf(r))&&function(e,t,r,n,s){let o=n.default;if(void 0===o)return!1;if(null!=n.defaultEquals)return n.defaultEquals(s);if("function"==typeof o){if(Array.isArray(s)){let n=o.call(e,t,r??void 0);return(0,i.aI)(n,s)}return!1}return o===s}(e,r,c,l,h)||!u.ignoreOrigin&&c?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,a.aB)(c.origin))}function f(e,t,r,i){let n=(0,l.oY)(e),s=n.metadata,o=(0,u.k4)(s[t],i);return!!o&&h(e,n,t,o,r,i)}function d(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,l.h1)(t,e.toJSON(r));let i=(0,l.oY)(e),n=i.metadata;for(let s in n){let f=(0,u.k4)(n[s],r);if(!h(e,i,s,f,void 0,r))continue;let d=(0,o.Jt)(e,s),p=c(e,f,f.write&&"string"==typeof f.write.target?f.write.target:s,d,r);Object.keys(p).length>0&&(t=(0,l.h1)(t,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>(0,l.h1)(t,p,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:s,oldOrigin:(0,a.in)(i.store.originOf(s)),newOrigin:r.origin}))}return t}},5479(e,t,r){function i(e){let t=[];return function*(){yield*t;let r,i=t.length;for(;!(r=e.next()).done;)for(t.push(r.value),yield r.value;++i<t.length;)yield t[i]}}r.d(t,{I6:()=>o,N5:()=>s,PP:()=>i,xZ:()=>l,zN:()=>a});const n=Object.freeze({done:!0,value:void 0});function s(e){let t=[],r=null,i=null,s=!1;async function o(){if(s)return n;if(null!=i)return i;i=e.next();try{let e=await i;return i=null,e.done?(s=!0,n):(t.push(e.value),e)}catch(e){throw s=!0,i=null,r=e,e}}return async function*(){yield*t;let e,i=t.length;for(;!(e=await o()).done;)for(yield e.value;++i<t.length;)yield t[i];if(null!=r)throw r}}function o(e,t){for(let r of e)if(null!=r&&t(r))return r}function a(e,t){for(let r of e)if(t(r))return!0;return!1}function l(e){return null!=e&&"function"==typeof e[Symbol.iterator]}},66552(e,t,r){r.d(t,{J:()=>n,O:()=>o});var i=r(93637);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){let t={};for(let r in e)t[e[r]]=r;return t}(e),this.apiValues=s(this._apiToJSON),this.jsonValues=s(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{let n=this.toJSON(e);void 0!==n&&(0,i.sM)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){let t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?null:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function s(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function o(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},26390(e,t,r){r.d(t,{d:()=>n});const i=[];function n(e){i.push(e),1===i.length&&queueMicrotask(()=>{let e=i.slice();i.length=0;for(let t of e)t()})}},76030(e,t,r){r.d(t,{_:()=>m,$m:()=>j,gh:()=>S,md:()=>k});var i=r(26390);function n(e,t,r,i,n){console.timeStamp(e,t,r,n,i)}class s{constructor(e,t=30){this.name=e,this._counter=0,this._samples=Array(t)}push(e){null!=e&&(this._samples[++this._counter%this._samples.length]=e)}set(e){null!=e&&(this._samples[this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort((e,t)=>e-t)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((e,t)=>e+t,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var o=r(15142),a=r(17676),l=r(78659);class u{constructor(e){this.phases=e,this.paused=!1,this.ticks=-1,this.removed=!1}}class c{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let h=0;const f={time:(0,l.l5)(0),deltaTime:(0,l.l5)(0),elapsedFrameTime:(0,l.l5)(0),frameDuration:(0,l.l5)(0)},d=["prepare","preRender","render","postRender","update","finish"],p=[],y=new o.A;class g{constructor(e){this._task=e}remove(){this._task.removed=!0}pause(){this._task.paused=!0}resume(){this._task.paused=!1,_()}}function _(){w??=(h=performance.now(),requestAnimationFrame(b))}const v={frameTasks:y,willDispatch:!1,clearFrameTasks:function(e=!1){y.forAll(e=>{e.removed=!0}),e&&O()},dispatch:N,executeFrameTasks:function(e){let t=(0,l.l5)(e-h);h=e;let r=1e3/60,i=Math.max(0,t-r);f.time=e,f.frameDuration=(0,l.l5)(r-i);for(let r=0;r<d.length;r++){let i=performance.now(),s=d[r];y.forAll(i=>{i.paused||i.removed||(0===r&&i.ticks++,!i.phases[s])||(f.elapsedFrameTime=(0,l.l5)(performance.now()-e),f.deltaTime=0===i.ticks?(0,l.l5)(0):t,i.phases[s]?.call(i,f))});let o=performance.now();T[r].push(o-i),n(s,i,o,"Maps SDK","Scheduling")}O();let s=performance.now();C.push(s-e),n("Animation Frame",e,s,"Maps SDK","Scheduling")},reschedule:function(){null!=w&&(cancelAnimationFrame(w),w=requestAnimationFrame(b))}};function m(e){let t=new c(e);return p.push(t),v.willDispatch||(v.willDispatch=!0,(0,i.d)(N)),t}let w=null;function b(){let e=performance.now();w=null,w=y.some(e=>!e.paused&&!e.removed)?requestAnimationFrame(b):null,v.executeFrameTasks(e)}const A=new o.A;function O(){y.forAll(e=>{e.removed&&A.push(e)}),y.removeUnorderedMany(A.data,A.length),A.clear()}function N(){for(;p.length;){let e=p.shift();e.isActive&&e.callback()}v.willDispatch=!1}function k(e=1,t){let r=Promise.withResolvers(),n=()=>{(0,a.G4)(t)?r.reject((0,a.NK)()):0===e?r.resolve():(--e,(0,i.d)(()=>n()))};return n(),r.promise}function S(){let e=Promise.withResolvers(),t=function(e){let t=new u(e);return y.push(t),_(),new g(t)}({postRender:()=>{t.remove(),m(()=>e.resolve())}});return e.promise}async function j(e){await function(e){return k(1,e)}(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}const T=d.map(e=>new s(e)),C=new s("total")},78659(e,t,r){function i(e){return e}function n(e){return 1e3*e}function s(e){return e}r.d(t,{Kp:()=>s,gr:()=>n,l5:()=>i})},24326(e,t,r){r.d(t,{c:()=>n});let i=0;function n(){return++i}},59923(e,t,r){r.d(t,{GL:()=>h,U4:()=>a,Yc:()=>c,bA:()=>u,qt:()=>l});var i=r(49186),n=r(67076);const s=["layer","property","renderer","symbol","symbol-layer","url","visual-variable","type","elevation-profile-line","field-configuration-field-format"].map(e=>`${e}:unsupported`),o=new Set(s);function a(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("layer",`Layer (${t.title}, ${t.id}) of type '${t.declaredClass}' is not supported in the context of '${i}'${r?`: ${r}`:""}`,{layer:t}))}function l(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("property",`Property '${t}' is not supported in the context of '${i}'${r?`: ${r}`:""}`))}function u(e,t,r,i){if(!e)return;let n=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("symbol",`Symbol '${t.declaredClass}' is not supported in the context of '${n}'${r?`: ${r}`:""}`,i))}function c(e,t,r,s,o){e&&e?.messages?.push(f("warning"===t?n.A:i.A,r,s,o))}function h(e,t,r){return f(i.A,e,t,r)}function f(e,t,r,i){return new e(`${t}:unsupported`,r,i)}r.d(t,["MG",0,o])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9358],{69622(e,t,r){r.d(t,{A:()=>z});var i=r(51447),n=r(71511),s=r(53966),o=r(97768),a=r(56454),l=r(16649),u=r(85537),c=r(96156),h=(r(44208),r(4718)),f=r(93687),d=r(11406),p=r(62788),y=r(47328),g=r(67867);const _=new WeakMap;class v extends d.T{get trackingTarget(){return this._trackingTarget??=new g.R(this)}constructor(e,t){super(),this.propertyName=e,this.metadata=t,this.flags=function(e){let t=_.get(e);if(null!=t)return t;let r=y.i.Dirty|(e.nonNullable?y.i.NonNullable:0)|(e.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===e.get?y.i.DepTrackingInitialized:0)|(void 0===e.dependsOn?y.i.AutoTracked:0);return _.set(e,r),r}(t)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this._trackingTarget?.destroy()}getComputed(e,t){e.mutable&&(0,p.gc)(this);let r=e.store,i=this.propertyName,n=this.flags,s=r.get(i);if(n&y.i.Computing||!(n&y.i.Dirty)&&r.has(i))return s;this.flags|=y.i.Computing;let o,{host:a}=e;n&y.i.AutoTracked?o=(0,p.a)(this.trackingTarget,t,a):((0,p.Xr)(a,this),o=t.call(a)),this.flags|=y.i.DepTrackingInitialized,r.set(i,o,1);let l=r.get(i);return l===s?this.flags&=~y.i.Dirty:(0,p.F_)(this.commit,this),this.flags&=~y.i.Computing,l}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);let e=this._observers;if(e&&e.length>0)for(let t of e)t.onInvalidated()}onCommitted(){let e=this._observers;if(e&&e.length>0){let t=e.slice();for(let e of t)e.onCommitted()}}}var m=r(35666);class w{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new w;return this._values.forEach((r,i)=>{(!e||!e.has(i))&&t.set(i,(0,h.o8)(r))}),t}get(e){return this._values.get(e)}originOf(){return 7}keys(){return[...this._values.keys()]}set(e,t){this._values.set(e,t)}delete(e){this._values.delete(e)}has(e){return this._values.has(e)}isAtOrigin(e,t){return this.has(e)}isBelowOrigin(e,t){return!this.has(e)}forEach(e){this._values.forEach(e)}}function b(e,t,r){return void 0!==e}function A(e,t,r,i){return!(void 0===e||null==r&&e.flags&y.i.NonNullable&&(i.lifecycle,u.v.INITIALIZING,1))}class O{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=u.v.INITIALIZING,this.store=new w,this.mutable=!0,this._origin=7;let t=this.host.constructor.__accessorMetadata__;for(let e in t){let r=new v(e,t[e]);this.propertiesByName.set(e,r)}this.metadata=t}initialize(){this.lifecycle=u.v.CONSTRUCTING}constructed(){this.lifecycle=u.v.CONSTRUCTED}destroy(){this.lifecycle=u.v.DESTROYED,this.propertiesByName.forEach(e=>e.destroy())}get initialized(){return this.lifecycle!==u.v.INITIALIZING}get(e){let t=this.propertiesByName.get(e);if(!b(t))return;let r=t.metadata.get;if(r)return t.getComputed(this,r);this.mutable&&(0,p.gc)(t);let i=this.store;return i.has(e)?i.get(e):t.metadata.value}originOf(e){let t=this.store.originOf(e);if(void 0===t){let t=this.propertiesByName.get(e);if(void 0!==t&&t.flags&y.i.HasDefaultValue)return"defaults"}return(0,m.OL)(t)}has(e){return this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){let t=this.propertiesByName.get(e);if(b(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){let r=this.propertiesByName.get(e);b(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){let i=this.propertiesByName.get(t);if(!b(i))return"";let n=new g.R,s=(0,p.a)(n,()=>i.metadata.get?.call(e)),o=`${r}${e.declaredClass.split(".").pop()}.${t}: ${s}\n`,a=n.accessed??new Set;if(0===a.size)return o;r+=" ";for(let e of a)e instanceof v&&(o+=`${r}${e.propertyName}: undefined\n`);return o}setAtOrigin(e,t,r){let i=this.propertiesByName.get(e);if(b(i))return this._setAtOrigin(i,t,r)}isOverridden(e){let t=this.propertiesByName.get(e);return void 0!==t&&!!(t.flags&y.i.Overridden)}clearOrigin(e,t){let r=this.store,i=this.propertiesByName.get(e);if(!b(i))return;let n=r.isAtOrigin(e,t)&&!(i.flags&y.i.Overridden);r.delete(e,t),n&&i.notifyChange()}clearOverride(e){let t=this.propertiesByName.get(e);t&&t.flags&y.i.Overridden&&(t.flags&=~y.i.Overridden,t.notifyChange())}override(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}r.flags|=y.i.Overridden,this._internalSet(r,t)}set(e,t){let r=this.propertiesByName.get(e);if(!A(r,0,t,this))return;let i=r.metadata.cast;if(i){let e=this._cast(i,t),{valid:r,value:n}=e;if(k.release(e),!r)return;t=n}let n=r.metadata.set;n?n.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,m.aB)(e)}getDefaultOrigin(){return(0,m.OL)(this._origin)}notifyChange(e){this.propertiesByName.get(e)?.notifyChange()}invalidate(e){this.propertiesByName.get(e)?.invalidate()}commit(e){this.propertiesByName.get(e)?.commit()}_internalSet(e,t){let r=this.lifecycle===u.v.INITIALIZING?0:this._origin;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){let i=this.store,n=e.propertyName,s=i.isAtOrigin(n,r);if(s&&~e.flags&y.i.Overridden&&(0,h.aI)(t,i.get(n)))return;let o=i.isBelowOrigin(n,r)||s;o&&e.invalidate(),i.set(n,t,r),o&&e.commit(),(0,p.fE)(this.host,e)}_cast(e,t){let r=k.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}class N{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}}const k=new f.A(()=>new N);var S=r(47821);var j,T,C=r(14012),D=r(10107),E=r(64108);function $(e){if(null==e)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}const M=Symbol("Accessor-Handles"),I=Symbol("Accessor-Initialized");class z{static{j=M,T=I}static createSubclass(e={}){if(Array.isArray(e))throw Error("Multi-inheritance unsupported since 4.16");let{properties:t,declaredClass:r,constructor:i}=e;delete e.declaredClass,delete e.properties,delete e.constructor;let n=this;class s extends n{constructor(...e){super(...e),this.inherited=null,i&&i.apply(this,e)}}(0,c.tD)(s.prototype);for(let t in e){let r=e[t];s.prototype[t]="function"==typeof r?function(...e){let i,s=this.inherited;this.inherited=function(...e){if(n.prototype[t])return n.prototype[t].apply(this,e)};try{i=r.apply(this,e)}catch(e){throw this.inherited=s,e}return this.inherited=s,i}:e[t]}for(let e in t){let r=$(t[e]);(0,D.MZ)(r)(s.prototype,e)}return(0,E.$)(r)(s)}static freeze(e){return e instanceof z?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof z?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[j]=null,this[T]=!1,this.constructor===z)throw Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let t=new O(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&(t.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0])}postscript(){let e=this.__accessor__,t=e.ctorArgs;e.initialize(),t&&(this.set(t),e.ctorArgs=null),e.constructed(),this.initialize(),this[I]=!0}initialize(){}[a.G](){this[M]=(0,o.pR)(this[M])}destroy(){this.destroyed||((0,C.iS)(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[I]}get destroyed(){return this.__accessor__?.lifecycle===u.v.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===u.v.DESTROYING||!1}commitProperty(e){(0,l.Jt)(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,t){return(0,S.h)(this,e,t),this}watch(e,t,r){return(0,i.eO)(s.A.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://arcg.is/1vaqf42#watch",warnOnce:!0}),(0,C.wB)(this,e,t,r)}addHandles(e,t){if(this.destroyed){let t=Array.isArray(e)?e:[e];for(let e of t)e.remove()}else(this[M]??=new n.A).add(e,t)}removeHandles(e){this[M]?.remove(e)}removeAllHandles(){this[M]?.removeAll()}removeHandlesReference(e){this[M]?.removeReference(e)}hasHandles(e){return!0===this[M]?.has(e)}_override(e,t){void 0===t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,t){null==t?this.__accessor__.clearOverride(e):this.__accessor__.override(e,t)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,t){return this.__accessor__.internalSet(e,t),this}}},98291(e,t,r){r.d(t,{A:()=>s});var i=r(93687);function n(e){e.length=0}class s{constructor(e=50,t=50){this._pool=new i.A(()=>[],void 0,n,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return o.acquire()}static release(e){return o.release(e)}static prune(){o.prune()}}const o=new s(100)},71511(e,t,r){r.d(t,{A:()=>n});var i=r(5479);class n{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach(t=>{e+=t.length}),e}add(e,t){if((0,i.xZ)(e)){let r=this._getOrCreateGroup(t);for(let t of e)a(t)&&r.push(t)}else a(e)&&this._getOrCreateGroup(t).push(e);return this}forEach(e,t){if("function"==typeof e)this._groups.forEach(t=>t.forEach(e));else{let r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(s(e))}remove(e){if("string"!=typeof e&&(0,i.xZ)(e)){for(let t of e)this.remove(t);return this}return this.has(e)&&(o(this._getGroup(e)),this._groups.delete(s(e))),this}removeAll(){return this._groups.forEach(o),this._groups.clear(),this}removeReference(e){return this._groups.delete(e),this}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);let t=[];return this._groups.set(s(e),t),t}_getGroup(e){return this._groups.get(s(e))}}function s(e){return e||"_default_"}function o(e){for(let t of e)t instanceof n?t.removeAll():t.remove()}function a(e){return null!=e&&(!!e.remove||e instanceof n)}},25482(e,t,r){r.d(t,{o:()=>y,T:()=>d});var i=r(32198),n=r(69622),s=r(4718);class o{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let t=new o;return this._values.forEach((r,i)=>{(!e||!e.has(i))&&t.set(i,(0,s.o8)(r.value),r.origin)}),t}get(e,t){t=this._normalizeOrigin(t);let r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??7}keys(e){e=this._normalizeOrigin(e);let t=[...this._values.keys()];return null==e?t:t.filter(t=>this._values.get(t)?.origin===e)}set(e,t,r){if(0===(r=this._normalizeOrigin(r))){let t=this._values.get(e);if(null!=t?.origin&&t.origin>r)return}this._values.set(e,new a(t,r))}delete(e,t){(null==(t=this._normalizeOrigin(t))||this._values.get(e)?.origin===t)&&this._values.delete(e)}has(e,t){return null==(t=this._normalizeOrigin(t))?this._values.has(e):this._values.get(e)?.origin===t}isAtOrigin(e,t){return t=this._normalizeOrigin(t),this.has(e,t)&&this.originOf(e)===t}isBelowOrigin(e,t){return t=this._normalizeOrigin(t),!this.has(e)||this.originOf(e)<t}forEach(e){this._values.forEach(({value:t},r)=>e(t,r))}_normalizeOrigin(e){if(null!=e)return 0===e?e:7}}class a{constructor(e,t){this.value=e,this.origin=t}}var l=r(76953),u=r(45917),c=r(88620),h=r(49422),f=r(64108);const d=e=>{let t=e,r=class extends t{constructor(...e){super(...e);let t=(0,c.oY)(this),r=t.store,i=new o;t.store=i,(0,l.k)(t,r,i)}read(e,t){(0,u.L)(this,e,t)}write(e,t){return(0,h.M)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return p.call(this,e,t)}};return r=(0,i.Cg)([(0,f.$)("esri.core.JSONSupport")],r),r.prototype.toJSON.isDefaultToJSON=!0,r};function p(e,t){if(!e)return null;if(e.declaredClass)throw Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}const y=d(n.A)},93687(e,t,r){r.d(t,{A:()=>i});class i{constructor(e,t,r,i=1,n=0){this._creator=e,this._acquireFunction=t,this._releaseFunction=r,this.allocationSize=i,this._pool=Array(n),this._initialSize=n;for(let e=0;e<n;e++)this._pool[e]=this._creator();this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...e){if(0===this._pool.length){let e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=this._creator()}let t=this._pool.pop();return this._acquireFunction?this._acquireFunction(t,...e):function(e){return e?.acquire&&"function"==typeof e.acquire}(t)&&t.acquire(...e),t}release(e){var t;e&&(this._releaseFunction?this._releaseFunction(e):(t=e,t?.release&&"function"==typeof t.release&&e.release()),this._pool.push(e))}prune(e=this._initialSize){if(!(e>=this._pool.length)){for(let t=e;t<this._pool.length;++t){let e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&"function"==typeof e.dispose&&e.dispose()}}},15142(e,t,r){r.d(t,{A:()=>u});var i=r(4576),n=r(21818);const s=(e,t,r,i)=>{let n=t,s=t,o=r>>>1,a=e[n-1];for(;s<=o;){s=n<<1,s<r&&i(e[s-1],e[s])<0&&++s;let t=e[s-1];if(i(t,a)<=0)break;e[n-1]=t,n=s}e[n-1]=a},o=(e,t)=>e<t?-1:+(e>t);function a(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i);let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i)}}function*l(e,t,r,i){void 0===t&&(t=0),void 0===r&&(r=e.length),void 0===i&&(i=o);for(let n=r>>>1;n>t;n--)s(e,n,r,i),yield;let n=t+1;for(let o=r-1;o>t;o--){let r=e[t];e[t]=e[o],e[o]=r,s(e,n,o,i),yield}}class u{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new i.vW,e&&(e.initialSize&&(this.data=Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),void 0!==e.deallocator&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>c(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){let t=[];for(let r=0;r<this._length;r++){let i=this.data[r];e(i)&&t.push(i)}return t}at(e){if((e=Math.trunc(e)||0)<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,t){let r=this.data.indexOf(e,t);return-1!==r&&r<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let t=e;t<this._length;++t)this.data[t]=this._deallocator(this.data[t]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,t=e.length){for(let r=0;r<t;r++)this.data[this._length++]=e[r]}pushAll(e){for(let t of e)this.data[this._length++]=t}fill(e,t){for(let r=0;r<t;r++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,c(this)}pop(){if(0===this.length)return;let e=this.data[this.length-1];return--this.length,this._shrink(),e}remove(e){let t=(0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint);if(-1!==t)return this.data.splice(t,1),--this.length,e}removeUnordered(e){return this.removeUnorderedIndex((0,i.qh)(this.data,(0,n.z)(e),this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,t=e.length,r){this.length=(0,i.mW)(this.data,e,this.length,t,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(e,t){if(e>=this.length||t>=this.length||e===t)return;let r=this.data[e];this.data[e]=this.data[t],this.data[t]=r}sort(e){a(this.data,0,this.length,e)}iterableSort(e){return l(this.data,0,this.length,e)}some(e,t){for(let r=0;r<this.length;++r)if(e.call(t,this.data[r],r,this.data))return!0;return!1}find(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)if(e.call(t,r[n]))return r[n]}filterInPlace(e,t){let r=0;for(let i=0;i<this._length;++i){let n=this.data[i];e.call(t,n,i,this.data)&&(this.data[i]=this.data[r],this.data[r]=n,r++)}if(this._deallocator)for(let e=r;e<this._length;e++)this.data[e]=this._deallocator(this.data[e]);return this._length=r,this._shrink(),this}forAll(e,t){let{data:r,length:i}=this;for(let n=0;n<i;++n)e.call(t,r[n],n,r)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){let r=Array(this.length);for(let i=0;i<this.length;++i)r[i]=e.call(t,this.data[i],i,this.data);return r}reduce(e,t){let r=t;for(let t=0;t<this.length;++t)r=e(r,this.data[t],t,this.data);return r}has(e){let t=this.length,r=this.data;for(let i=0;i<t;++i)if(r[i]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;++e)yield this.data[e]}}function c(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(1.1*e.length))}},67076(e,t,r){r.d(t,{A:()=>n});var i=r(799);class n{constructor(e,t,r){this.name=e,this.details=r,this.type="warning",this.message=t?(0,i.V2)(t,r):""}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}}},85537(e,t,r){r.d(t,["v",0,{INITIALIZING:0,CONSTRUCTING:1,CONSTRUCTED:2,DESTROYING:3,DESTROYED:4}])},11406(e,t,r){r.d(t,{T:()=>s});var i=r(36563);class n{constructor(e,t){this._observers=e,this._observer=t}remove(){let{_observers:e,_observer:t}=this;if(e[e.length-1]===t)return void e.pop();let r=e.indexOf(this._observer);-1!==r&&e.splice(r,1)}}class s{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return o;this._observers??=[];let t=this._observers,r=!1,i=!1;for(let n of t)if(n.destroyed)i=!0;else if(n===e){r=!0;break}return r||(t.push(e),i&&this._removeDestroyedObservers()),new n(t,e)}_removeDestroyedObservers(){let e=this._observers;if(!e)return;let t=e.length;if(0===t)return;let r=0;for(let i=0;i<t;++i){for(;i+r<t&&e[i+r].destroyed;)++r;if(r>0){if(!(i+r<t))break;e[i]=e[i+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;let e=this._observers;if(null!=e){for(let t of e)t.onCommitted();this._observers=null}}}const o=(0,i.hA)()},35666(e,t,r){function i(e){switch(e){case"defaults":return 0;case"service":return 2;case"portal-item":return 3;case"web-scene":return 4;case"web-map":return 5;case"link-chart":return 6;case"user":return 7;default:return null}}function n(e){switch(e){case 0:return"defaults";case 2:return"service";case 3:return"portal-item";case 4:return"web-scene";case 5:return"web-map";case 6:return"link-chart";case 7:return"user"}}function s(e){return n(e)}r.d(t,{OL:()=>n,aB:()=>i,in:()=>s})},56454(e,t,r){const i=Symbol("Accessor-beforeDestroy");r.d(t,["G",0,i])},91429(e,t,r){r.d(t,{wg:()=>l,MZ:()=>o,$K:()=>a});var i=r(10107),n=r(79901),s=r(64108);r(93223),r(36005),r(43937);const o=i.MZ,a=s.$;function l(...e){return(0,n.w)(...e)}},79901(e,t,r){r.d(t,{w:()=>l});var i=r(78888),n=r(96156);const s=Object.prototype.toString;function o(e){let t="__accessorMetadata__"in e?(0,i.dp)(e):e;return function(...e){if(e.push(t),"number"==typeof e[2])throw Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,e)}}function a(e,t,r,i){(0,n.z4)(e,t).cast=i}function l(...e){if(3!==e.length||"string"!=typeof e[1]){if(1===e.length&&"[object Function]"===s.call(e[0]))return o(e[0]);if(1===e.length&&"string"==typeof e[0])return function(e){return(t,r)=>{(0,n.z4)(t,e).cast=t[r]}}(e[0])}}},93223(e,t,r){r.d(t,{e:()=>s});var i=r(66552),n=r(10107);function s(e,t={}){let r=e instanceof i.J?e:new i.J(e,t),{alwaysWriteDefaults:s,default:o,ignoreUnknown:a=!0,name:l,nonNullable:u,readOnly:c=!1}=t;return(0,n.MZ)({type:a?r.apiValues:String,json:{type:r.jsonValues,default:o,name:l,read:!c&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:s}},nonNullable:u,readOnly:c})}},10107(e,t,r){r.d(t,{MZ:()=>l,rM:()=>u});var i=r(53966),n=r(78888),s=r(16649),o=r(96156),a=r(47821);function l(e={}){return(t,r)=>{if(t===Function.prototype)throw Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let l=Object.getOwnPropertyDescriptor(t,r),u=(0,o.z4)(t,r);l&&(l.get||l.set?(u.get=l.get||u.get,u.set=l.set||u.set):"value"in l&&("value"in e&&i.A.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),u.value=e.value=l.value)),null!=e.readOnly&&(u.readOnly=e.readOnly);let c=e.aliasOf;if(c){let e,t="string"==typeof c?c:c.source,i="string"==typeof c?null:!0===c.overridable;u.dependsOn=[t],u.get=function(){let r=(0,s.Jt)(this,t);if("function"==typeof r){e||=t.split(".").slice(0,-1).join(".");let i=(0,s.Jt)(this,e);i&&(r=r.bind(i))}return r},u.readOnly||(u.set=i?function(e){this._override(r,e)}:function(e){(0,a.h)(this,t,e)})}let h=e.type,f=e.types;if(!u.cast){let t;h&&!1!==e.useTypeForAutocast?t=function(e){let t=0,r=e;if((0,n.Zu)(e))return(0,n.Nd)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;let i=r;if((0,n.EK)(i))return 0===t?(0,n.MB)(i):(0,n._e)((0,n.MB)(i),t);if(1===t)return(0,n.eC)(i);if(t>1)return(0,n.e6)(i,t);let s=e;return s.from?s.from:(0,n.dp)(s)}(h):f&&(t=Array.isArray(f)?(0,n.wB)((0,n.aq)(f[0])):(0,n.aq)(f)),e.cast=function(e,t){if(e||t)return e?t?(r,i)=>t(e(r,i),i):e:t}(e.cast,t)}(0,o.CX)(u,e),e.range&&(u.cast=(0,n.Qp)(u.cast,e.range))}}function u(e,t,r){let i=(0,o.z4)(e,r);i.json||={};let n=i.json;return void 0!==t&&(n.origins||(n.origins={}),n.origins[t]||(n.origins[t]={}),n=n.origins[t]),n}},36005(e,t,r){r.d(t,{w:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t||Array.isArray(t)?(s=e,r=t,n=[void 0]):(s=t,n=Array.isArray(e)?e:[e]),(e,t)=>{let o=e.constructor.prototype;n.forEach(n=>{let a=(0,i.rM)(e,n,s);(!a.read||"object"!=typeof a.read)&&(a.read={}),a.read.reader=o[t],r&&(a.read.source=(a.read.source||[]).concat(r))})}}},64108(e,t,r){r.d(t,{$:()=>w}),r(44208);var i=r(53966),n=r(56454),s=r(85537),o=r(96156),a=r(62788),l=r(78888),u=r(90360);function c(e){e.name&&(e.read&&"object"==typeof e.read?void 0===e.read.source&&(e.read.source=e.name):e.read={source:e.name},e.write&&"object"==typeof e.write?void 0===e.write.target&&(e.write.target=e.name):e.write={target:e.name})}function h(e){"boolean"==typeof e.read?e.read={enabled:e.read}:"function"==typeof e.read?e.read={enabled:!0,reader:e.read}:e.read&&"object"==typeof e.read&&void 0===e.read.enabled&&(e.read.enabled=!0)}function f(e){"boolean"==typeof e.write?e.write={enabled:e.write}:"function"==typeof e.write?e.write={enabled:!0,writer:e.write}:e.write&&"object"==typeof e.write&&void 0===e.write.enabled&&(e.write.enabled=!0)}var d=r(67124);function p(e){return e.type?y(e):g(e)}function y(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!(0,l.EK)(r);)r=r[0],t++;return{type:r,ndimArray:t}}function g(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function _(e){(function(e){if(e.json||={},h(e.json),f(e.json),c(e.json),e.json.origins)for(let t in e.json.origins)h(e.json.origins[t]),f(e.json.origins[t]),c(e.json.origins[t]);return!0})(e)&&(function(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let e in r)if(t[e]){let i=t[e];r[e].forEach(e=>{t[e]=i}),delete t[e]}}}(e),function(e){let t=function(e){return e.json.types?g(e.json):e.type?y(e):g(e)}(e);if(e.json.origins)for(let r in e.json.origins){let i=e.json.origins[r],n=i.types?p(i):t;(0,u.v)(n,i,!1),i.types&&!i.write&&e.json.write?.enabled&&(i.write={...e.json.write}),(0,d.v)(n,i)}(0,u.v)(t,e.json,!0),(0,d.v)(t,e.json)}(e))}const v=new Set,m=new Set;function w(e){return t=>{e??="esri.core.Accessor",t.prototype.declaredClass=e,N(t);let r=[],i=[],a=t.prototype;for(;a;)a.hasOwnProperty("initialize")&&!v.has(a.initialize)&&(v.add(a.initialize),r.push(a.initialize)),a.hasOwnProperty("destroy")&&!m.has(a.destroy)&&(m.add(a.destroy),i.push(a.destroy)),a=Object.getPrototypeOf(a);v.clear(),m.clear();let l=class extends t{constructor(...e){if(super(...e),this.constructor===l&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=r.length-1;e>=0;e--)r[e].call(this)}}),i.length){let e=!1,t=this[n.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){this.__accessor__.lifecycle=s.v.DESTROYING,e=!0,t.call(this);for(let e=0;e<i.length;e++)i[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};l.__accessorMetadata__=(0,o.tD)(t.prototype),l.prototype.declaredClass=e;let u=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(l.prototype,Symbol.toStringTag,{value:u,configurable:!0,writable:!0,enumerable:!1}),l}}function b(e,{get:t,value:r}){return null==t?function(){let t=this.__accessor__,i=t.propertiesByName.get(e);if(void 0===i)return;t.mutable&&(0,a.gc)(i);let n=t.store;return n.has(e)?n.get(e):r}:function(){let r=this.__accessor__;return r.propertiesByName.get(e)?.getComputed(r,t)}}function A(e,t,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r})}function O(e,t){return t.readOnly&&t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:t.readOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.initialized&&t.readOnly)return k("read-only",e);i.set(e,r)}}else A(this,e,r)}:t.constructOnly?function(r){let i=this.__accessor__;if(i){if(i.mutable){if(i.lifecycle===s.v.CONSTRUCTED&&t.constructOnly)return k("construct-only",e);i.set(e,r)}}else A(this,e,r)}:function(t){let r=this.__accessor__;r?r.mutable&&r.set(e,t):A(this,e,t)}}function N(e){let t=e.prototype,r=(0,o.tD)(t),i={};for(let e of Object.getOwnPropertyNames(r)){let t=r[e];_(t),i[e]={enumerable:!0,configurable:!0,get:b(e,t),set:O(e,t)}}Object.defineProperties(e.prototype,i)}const k=(e,t)=>{i.A.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}},43937(e,t,r){r.d(t,{K:()=>n});var i=r(10107);function n(e,t,r){let n,s;return void 0===t?(s=e,n=[void 0]):"string"==typeof t?(s=t,n=Array.isArray(e)?e:[e]):(s=e,n=[void 0],r=t),(e,t)=>{let o=e.constructor.prototype;for(let a of n){let n=(0,i.rM)(e,a,s);(!n.write||"object"!=typeof n.write)&&(n.write={}),r&&(n.write.target=r),n.write.writer=o[t]}}}},76953(e,t,r){function i(e,t,r){t.keys().forEach(e=>{r.set(e,t.get(e),0)});let i=e.metadata;Object.keys(i).forEach(t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),0)})}r.d(t,{k:()=>i})},78888(e,t,r){r.d(t,{EK:()=>C,GB:()=>u,GX:()=>l,MB:()=>D,Nd:()=>z,PZ:()=>v,Qp:()=>f,Uv:()=>M,Vr:()=>c,Zu:()=>I,_e:()=>j,aq:()=>E,dp:()=>A,e6:()=>T,eC:()=>k,jz:()=>$,qf:()=>O,wB:()=>N});var i=r(53966),n=r(91869);const s=()=>i.A.getLogger("esri.core.accessorSupport.ensureTypes");function o(e){if(null==e)return e;let t=new Date(e);return isNaN(t.getTime())?(s().error("Accessor#set",`Invalid date value: '${e}', falling back to current date`),new Date):t}function a(e){return null==e?e:!!e}function l(e){return null==e?e:e.toString()}function u(e,t=0){return null==e?e:(e=parseFloat(e),isNaN(e)?t:e)}function c(e){return null==e?e:Math.round(parseFloat(e))}function h(e){return null}function f(e,t){return r=>{let i=e(r);return null!=t.step&&(i=Math.round(i/t.step)*t.step),null!=t.min&&(i=Math.max(t.min,i)),null!=t.max&&(i=Math.min(t.max,i)),i}}function d(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function p(e,t){return null!=t&&e&&!(t instanceof e)}function y(e){return e&&"isCollection"in e}function g(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function _(e,t){return!!d(t)&&(s().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+m(e)+"'"),!0)}function v(e,t){return null==t?t:y(e)?function(e,t){if(!t?.constructor||!y(t.constructor))return _(e,t)?t:new e(t);let r=g(e.prototype.itemType),i=g(t.constructor.prototype.itemType);return r?i?r===i?t:r.prototype.isPrototypeOf(i.prototype)?new e(t):(_(e,t),t):new e(t):t}(e,t):p(e,t)?_(e,t)?t:new e(t):t}function m(e){return e?.prototype?.declaredClass||"unknown"}const w=new WeakMap;function b(e){switch(e){case Number:return e=>u(e);case $:return c;case Boolean:return a;case String:return l;case Date:return o;case M:return h;default:return(0,n.tE)(w,e,()=>v.bind(null,e))}}function A(e,t){let r=b(e);return 1===arguments.length?r:r(t)}function O(e){let t=b(e);return e=>t(e)}function N(e,t,r){return 1===arguments.length?N.bind(null,e):t&&(Array.isArray(t)?t.map(t=>e(t,r)):[e(t,r)])}function k(e,t){return 1===arguments.length?N(t=>A(e,t)):N(t=>A(e,t),t)}function S(e,t,r){return 0!==t&&Array.isArray(r)?r.map(r=>S(e,t-1,r)):e(r)}function j(e,t,r){if(2===arguments.length)return r=>j(e,t,r);if(!r)return r;r=S(e,t,r);let i=t,n=r;for(;i>0&&Array.isArray(n);)i--,n=n[0];if(void 0!==n)for(let e=0;e<i;e++)r=[r];return r}function T(e,t,r){return 2===arguments.length?j(t=>A(e,t),t):j(t=>A(e,t),t,r)}function C(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!("string"===r||"number"===r||"function"===r&&e.length>1)})}function D(e,t){if(2===arguments.length)return D(e).call(null,t);let r=new Set,i=e.filter(e=>"function"!=typeof e),n=e.filter(e=>"function"==typeof e);for(let t of e)("string"==typeof t||"number"==typeof t)&&r.add(t);let o=null,a=null;return(e,t)=>{if(null==e)return e;let l=typeof e,u="string"===l||"number"===l;return u&&(r.has(e)||n.some(e=>"string"===l&&e===String||"number"===l&&e===Number))||"object"===l&&n.some(t=>!p(t,e))?e:(u&&i.length?(o||=i.map(e=>"string"==typeof e?`'${e}'`:`${e}`).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${o}`)):"object"==typeof e&&n.length?(a||=n.map(e=>m(e)).join(", "),s().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${a}`)):s().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function E(e,t){if(2===arguments.length)return E(e).call(null,t);let r={},i=[],n=[];for(let t in e.typeMap){let s=e.typeMap[t];r[t]=A(s),i.push(m(s)),n.push(t)}let o=()=>`'${i.join("', '")}'`,a=()=>`'${n.join("', '")}'`,l="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!p(e.base,t)||null==t)return t;let i=l(t)||e.defaultKeyValue,n=r[i];if(!n)return s().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!p(e.typeMap[i],t))return t;if("string"==typeof e.key&&!d(t)){let r={};for(let i in t)i!==e.key&&(r[i]=t[i]);return n(r)}return n(t)}}class ${}class M{}function I(e){if(!e||"object"!=typeof e&&"function"!=typeof e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function z(e){switch(e.type){case"native":return A(e.value);case"array":return N(z(e.value));case"one-of":return function(e){let t=null;return(r,i)=>q(r,e)?r:(t??=P(e),s().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),i&&(i.valid=!1),null)}(e);default:return null}}function P(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case $:return"integer";case Date:return"date";case M:return"null";default:return m(e.value)}case"array":return`array of ${P(e.value)}`;case"one-of":{let t=e.values.map(e=>P(e));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function q(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case $:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e;case M:return null===e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(e=>!q(e,t.value));case"one-of":return t.values.some(t=>q(e,t))}}r.d(t,["gK",0,{native:e=>({type:"native",value:e}),array:e=>({type:"array",value:e}),oneOf:e=>({type:"one-of",values:e})}])},90360(e,t,r){r.d(t,{C:()=>h,v:()=>c});var i=r(53966),n=r(93637),s=r(96156),o=r(15903),a=r(7142),l=r(59923);const u=()=>i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function c(e,t,r){e&&(!r&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?_(e.types):g(e.type)}(e)&&(0,n.sM)("read.reader",h(e),t))}function h(e){let t=e.ndimArray??0;if(t>1)return function(e){let t=f(e),r=d.bind(null,t),i=e.ndimArray??0;return(e,t,n)=>{if(null==e)return e;e=r(e,n,i);let s=i,o=e;for(;s>0&&Array.isArray(o);)s--,o=o[0];if(void 0!==o)for(let t=0;t<s;t++)e=[e];return e}}(e);if(1===t)return p(e);if("type"in e&&y(e.type)){let t=e.type.prototype?.itemType?.Type,r=p("function"==typeof t?{type:t}:{types:t});return(t,i,n)=>{let s=r(t,i,n);return s&&new e.type(s)}}return f(e)}function f(e){return"type"in e?function(e){return e.prototype.read?(t,r,i)=>{if(null==t)return t;let n=typeof t;if("object"!==n)return void u().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${n}'`);let s=new e;return s.read(t,i),s}:e.fromJSON}(e.type):function(e){let t=null,r=e.errorContext??"type",i=e.validate;return(n,o,c)=>{if(null==n)return n;let h=typeof n;if("object"!==h)return void u().error(`Expected JSON value of type 'object' to deserialize, but got '${h}'`);t||=function(e){let t={};for(let r in e.typeMap){let i=e.typeMap[r],n=(0,s.tD)(i.prototype);if("function"==typeof e.key)continue;let o=n[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]){t[o.json.type[0]]=i;continue}let a=o.json?.write;if(!a?.writer){t[r]=i;continue}let l=a.target,u="string"==typeof l?l:e.key,c={};a.writer(r,c,u),c[u]&&(t[c[u]]=i)}return t}(e);let f=e.key;if("string"!=typeof f)return;let d=n[function(e,t,r){let i=Object.values(t)[0],n=(0,s.tD)(i.prototype)[e],o=(0,a.N5)(n,r)?.read?.source;return o&&"string"==typeof o?o:e}(f,t,c)],p=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!p){let e=`Type '${d||"unknown"}' is not supported`;return c?.messages&&n&&(0,l.Yc)(c,"warning",r,e,{definition:n,context:c}),void u().error(e)}let y=new p;return y.read(n,c),i?i(y):y}}(e.types)}function d(e,t,r,i){return 0!==i&&Array.isArray(t)?t.map(t=>d(e,t,r,i-1)):e(t,void 0,r)}function p(e){let t=f(e);return(e,r,i)=>{if(null==e)return e;if(Array.isArray(e)){let r=[];for(let n of e){let e=t(n,void 0,i);void 0!==e&&r.push(e)}return r}let n=t(e,void 0,i);return void 0===n?void 0:[n]}}function y(e){if(!(0,o.P)(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?g(t.Type):_(t.Type))}function g(e){return!Array.isArray(e)&&!!e&&("object"==typeof e||"function"==typeof e)&&e.prototype&&("read"in e.prototype||"fromJSON"in e||y(e))}function _(e){for(let t in e.typeMap)if(!g(e.typeMap[t]))return!1;return!0}},15903(e,t,r){function i(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(t,{P:()=>i})},7142(e,t,r){function i(e,t){return o(e,"any",t?.origin)}function n(e,t){return o(e,"read",t?.origin)}function s(e,t){return o(e,"write",t?.origin)}function o(e,t,r){let i=e?.json;if(i?.origins&&r){let e;e="link-chart"===r?i.origins[r]&&("any"===t||t in i.origins[r])?i.origins[r]:i.origins["web-map"]:i.origins[r],e&&("any"===t||t in e)&&(i=e)}return i}r.d(t,{N5:()=>n,k4:()=>s,xF:()=>i})},67124(e,t,r){r.d(t,{B:()=>h,v:()=>a});var i=r(53966),n=r(93637),s=r(15903),o=r(59923);function a(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(1===r||"type"in e&&(0,s.P)(e.type))?t.write.writer=f:r>1?t.write.writer=function(e){return(t,r,i,s)=>{let o;if(null===t)o=null;else{o=d(t,s,e);let r=e,i=o;for(;r>0&&Array.isArray(i);)r--,i=i[0];if(void 0!==i)for(let e=0;e<r;e++)o=[o]}(0,n.sM)(i,o,r)}}(r):t.types?Array.isArray(t.types)?t.write.writer=function(e){return(t,r,i,n)=>u(t&&Array.isArray(t)?t.filter(t=>l(t,e,n)):t,r,i,n)}(t.types[0]):t.write.writer=function(e){return(t,r,i,n)=>{if(!t||l(t,e,n))return u(t,r,i,n)}}(t.types):t.write.writer=u}function l(e,t,r){for(let r in t.typeMap)if(e instanceof t.typeMap[r])return!0;if(r?.messages){let n=t.errorContext??"type",s=`Values of type '${("function"==typeof t.key?e.declaredClass:e[t.key])??"Unknown"}' cannot be written`;r&&r.messages&&e&&(0,o.Yc)(r,"error",n,s,{definition:e,context:r}),i.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(s)}return!1}function u(e,t,r,i){(0,n.sM)(r,c(e,i),t)}function c(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?h(e):e}function h(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function f(e,t,r,i){let s;null===e?s=null:e&&"function"==typeof e.map?(s=e.map(e=>c(e,i)),"function"==typeof s.toArray&&(s=s.toArray())):s=[c(e,i)],(0,n.sM)(r,s,t)}function d(e,t,r){return 0!==r&&Array.isArray(e)?e.map(e=>d(e,t,r-1)):c(e,t)}},16649(e,t,r){r.d(t,{Jt:()=>a,RP:()=>o,t2:()=>l});var i=r(88620);function n(e,t){let r=e.endsWith("?")?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){let e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}let n=(0,i.oY)(t);return(0,i.yh)(n,r)?n.get(r):t[r]}function s(e,t,r){if(null==e)return e;let i=n(t[r],e);return!i&&r<t.length-1?void 0:r===t.length-1?i:s(i,t,r+1)}function o(e,t,r=0){return"string"!=typeof t||t.includes(".")?s(e,(0,i.AH)(t),r):n(t,e)}function a(e,t){return o(e,t)}function l(e,t){return void 0!==o(t,e)}},96156(e,t,r){r.d(t,{CX:()=>a,tD:()=>s,z4:()=>o});var i=r(4718),n=r(88620);function s(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let e in t)t[e]=(0,i.o8)(t[e]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function o(e,t){let r=s(e),i=r[t];return i||=r[t]={},i}function a(e,t){return(0,n.h1)(e,t,u)}const l=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function u(e){return l.test(e)?"replace":"merge"}},45917(e,t,r){r.d(t,{L:()=>c,t:()=>h});var i=r(16649),n=r(88620),s=r(7142);function o(e,t,r){if(!e?.read||!1===e.read.enabled||!e.read.source)return!1;let n=e.read.source;if("string"==typeof n){if(n===t||n.includes(".")&&n.startsWith(t)&&(0,i.t2)(n,r))return!0}else for(let e of n)if(e===t||e.includes(".")&&e.startsWith(t)&&(0,i.t2)(e,r))return!0;return!1}function a(e,t,r,i,n){let a=(0,s.N5)(t[r],n);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(let l of Object.getOwnPropertyNames(t))a=(0,s.N5)(t[l],n),o(a,r,i)&&(e[l]=!0)}function l(e,t,r,i){let n=r.metadata,o=(0,s.xF)(n[t],i)?.default;if(void 0===o)return;let a="function"==typeof o?o.call(e,t,i):o;void 0!==a&&r.set(t,a)}const u={origin:"service"};function c(e,t,r=u){if(!t||"object"!=typeof t)return;let o=(0,n.oY)(e),c=o.metadata,h={};for(let e of Object.getOwnPropertyNames(t))a(h,c,e,t,r);o.setDefaultOrigin(r.origin);for(let n of Object.getOwnPropertyNames(h)){let a,l=(0,s.N5)(c[n],r).read,u=l?.source;a=u&&"string"==typeof u?(0,i.RP)(t,u):t[n],l?.reader&&(a=l.reader.call(e,a,t,r)),void 0!==a&&o.set(n,a)}if(!r||!r.ignoreDefaults){o.setDefaultOrigin("defaults");for(let t of Object.getOwnPropertyNames(c))h[t]||l(e,t,o,r)}o.setDefaultOrigin("user")}function h(e,t,r,i=u){let n={...i,messages:[]};r(n),n.messages?.forEach(t=>{"warning"!==t.type||e.loaded?i?.messages&&i.messages.push(t):e.loadWarnings.push(t)})}},47821(e,t,r){r.d(t,{h:()=>o});var i=r(49186),n=r(44208),s=(r(53966),r(16649));function o(e,t,r){if(e&&t)if("object"==typeof t)for(let r of Object.getOwnPropertyNames(t))o(e,r,t[r]);else{if(t.includes(".")){let i=t.split("."),n=i.splice(-1,1)[0];return void o((0,s.Jt)(e,i),n,r)}let a=e.__accessor__;null!=a&&function(e,t){if((0,n.A)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,t))throw new i.A("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,t))}(t,a),e[t]=r}}},62788(e,t,r){r.d(t,{F_:()=>d,Xr:()=>v,a:()=>f,fE:()=>g,gc:()=>u}),r(44208);var i=r(53966),n=r(88620),s=r(47328);const o=new(r(67867).R),a=[];let l=o;function u(e){l.onAccessed(e)}let c=!1,h=!1;function f(e,t,r){if(c)return p(e,t,r);let n;if(h){l=e,a.push(e);try{n=t.call(r)}catch(e){throw i.A.getLogger("esri.core.accessorSupport.tracking").error(e),e}finally{y()}}else{l=e,a.push(e);try{n=t.call(r)}finally{y()}}return n}function d(e,t){return f(o,e,t)}function p(e,t,r){let n,s=c;c=!0,l=e,a.push(e);try{n=t.call(r)}catch(e){h&&i.A.getLogger("esri.core.accessorSupport.tracking").error(e)}return y(),c=s,n}function y(){let e=a.length;if(e>1){let t=a.pop();l=a[e-2],t.onTrackingEnd()}else if(1===e){let e=a.pop();l=o,e.onTrackingEnd()}else l=o}function g(e,t){if(t.flags&s.i.DepTrackingInitialized)return;t.flags|=s.i.DepTrackingInitialized;let r=h;h=!1,t.flags&s.i.AutoTracked?p(t.trackingTarget,t.metadata.get,e):v(e,t),h=r}const _=[];function v(e,t){t.flags&s.i.ExplicitlyTracking||(t.flags|=s.i.ExplicitlyTracking,p(t.trackingTarget,()=>{let r=t.metadata.dependsOn||_;for(let t of r)if("string"!=typeof t||t.includes(".")){let r=(0,n.AH)(t);for(let t=0,i=e;t<r.length&&"object"==typeof i&&i;++t)i=m(i,r[t],t!==r.length-1)}else m(e,t,!1)}),t.flags&=~s.i.ExplicitlyTracking)}function m(e,t,r){let i=t.endsWith("?")?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){let t=parseInt(i,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}let s=(0,n.oY)(e);if(s){let t=s.propertiesByName.get(i);t&&(u(t),g(e,t))}return r?e[i]:void 0}},47328(e,t,r){r.d(t,["i",0,{Dirty:1,Overridden:2,Computing:4,NonNullable:8,HasDefaultValue:16,DepTrackingInitialized:32,AutoTracked:64,ExplicitlyTracking:128}])},71429(e,t,r){r.d(t,{r:()=>n});var i=r(67867);class n extends i.R{constructor(e){super(new s(e)),this._observer&&o.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&o.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}}class s{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let e=this._invalidCount;1===e?(this._invalidCount=0,this._notify()):this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=a}}const o=new FinalizationRegistry(e=>{e.deref()?.destroy()});function a(){}},67867(e,t,r){r.d(t,{R:()=>i});class i{constructor(e){this.accessed=void 0,this._handles=void 0,this._observer=e}destroy(){this.clear(),this.accessed=void 0,this._observer=void 0}onAccessed(e){null!=this._observer&&e!==this._observer&&(this.accessed??=new Set,this.accessed.add(e))}onTrackingEnd(){null!=this._observer&&(this.clear(),null!=this.accessed&&(this._handles??=[],this.accessed.forEach(e=>{this._handles.push(e.observe(this._observer))}),this.accessed.clear()))}clear(){if(null!=this._handles)for(;this._handles.length;)this._handles.pop().remove()}}},80559(e,t,r){r.d(t,{Df:()=>u,fm:()=>c,mJ:()=>l});var i=r(36563),n=r(62788),s=r(71429);let o=!1;const a=[];function l(e,t){let r=new s.r(function i(){if(!r||l)return;if(o)return void h(i);let s=a;r.clear(),o=!0,l=!0,a=(0,n.a)(r,e),l=!1,o=!1,t(a,s),f()}),a=null,l=!1;return l=!0,a=(0,n.a)(r,e),l=!1,(0,i.hA)(function(){r&&(r.destroy(),r=null,a=null)})}function u(e,t){let r=new s.r(function(){t(o,a)}),o=null;function a(){return r?(r.clear(),o=(0,n.a)(r,e),o):null}return a(),(0,i.hA)(function(){r&&=(r.destroy(),null),o=null})}function c(e,t){let r=!1,a=!1,l=!!t?.sync,u=new s.r(()=>{!r&&!a&&(a=!0,l?c():queueMicrotask(c))});function c(){a=!1,u&&!r&&(o?h(c):(u.clear(),o=!0,r=!0,(0,n.a)(u,e),r=!1,o=!1,f()))}return r=!0,(0,n.a)(u,e),r=!1,(0,i.hA)(function(){u&&=(u.destroy(),null)})}function h(e){a.includes(e)||a.unshift(e)}function f(){for(;a.length;)a.pop()()}},88620(e,t,r){r.d(t,{AH:()=>u,h1:()=>a,oY:()=>s,qg:()=>h,yh:()=>o});var i=r(36563),n=r(4718);function s(e){return e.__accessor__??null}function o(e,t){return null!=e?.metadata?.[t]}function a(e,t,r){return l(e,t,r?{policy:r,path:""}:null)}function l(e,t,r){return t?Object.keys(t).reduce((e,i)=>{let s=i;if("__proto__"===s)return e;let o=null,a="merge";if(r&&(o=r.path?`${r.path}.${i}`:i,a=r.policy(o)),"replace"===a||"replace-arrays"===a&&Array.isArray(e[s]))return e[s]=t[s],e;if(void 0===e[s])return e[s]=(0,n.o8)(t[s]),e;let u=e[s],c=t[s];if(u===c)return e;if(Array.isArray(c)||Array.isArray(e))u=e[s]=u?Array.isArray(u)?u.slice():[u]:[],c&&(Array.isArray(c)||(c=[c]),c.forEach(e=>{u.includes(e)||u.push(e)}));else if(c&&"object"==typeof c)if(r){let t=r.path;r.path=o,e[s]=l(u,c,r),r.path=t}else e[s]=l(u,c,null);else(!e.hasOwnProperty(i)||t.hasOwnProperty(i))&&(e[s]=c);return e},e||{}):e}function u(e){return Array.isArray(e)?e:e.split(".")}function c(e){return e.includes(",")?e.split(",").map(e=>e.trim()):[e.trim()]}function h(e,t,r,n){let s=function(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...c(r));return t}return c(e)}(t);if(1!==s.length){let t=s.map(t=>n(e,t,r));return(0,i.vE)(t)}return n(e,s[0],r)}},14012(e,t,r){r.d(t,{iS:()=>w,wB:()=>N,Cn:()=>k});var i=r(98291),n=r(36563),s=r(4718),o=r(93687);class a extends o.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){let t=super.acquire(...e);return this._set.delete(t),t}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}var l=r(76030),u=r(24326),c=r(16649),h=r(85537),f=r(80559),d=r(88620);class p{constructor(){this.uid=(0,u.c)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static{this.pool=new a(()=>new p)}static acquireUntracked(e,t,r,i,n){return this.pool.acquire(0,e,t,r,i,n,s.aI)}static acquireTracked(e,t,r,i){return this.pool.acquire(1,e,t,r,null,null,i)}notify(e,t){0===this.type?this.callback.call(this.target,e,t,this.path,this.target):this.callback.call(null,e,t,void 0,void 0)}acquire(e,t,r,i,n,s,o){this.uid=(0,u.c)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=i,this.target=n,this.path=s,this.equals=o}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,u.c)(),this.removed=!0}}const y=new i.A,g=new Set;let _;function v(e){g.delete(e),g.add(e),_||=(0,l._)(b)}function m(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function w(e){for(let t of g.values())t.target===e&&(t.removed=!0)}function b(){let e=10;for(;_&&e--;){_=null;let e=A(),t=y.acquire();for(let r of e){let e=r.uid;m(r),e===r.uid&&r.removed&&t.push(r)}for(let e of g)e.removed&&(t.push(e),g.delete(e));for(let e of t)p.pool.release(e);y.release(t),y.release(e),O.forEach(e=>e())}}function A(){let e=y.acquire();e.length=g.size;let t=0;for(let r of g)e[t]=r,++t;return g.clear(),e}const O=new Set;function N(e,t,r,i=!1){return e.__accessor__&&e.__accessor__.lifecycle!==h.v.DESTROYED?i?function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let n=!1;return(0,f.mJ)(()=>(0,c.RP)(e,t),(o,a)=>{e.__accessor__.lifecycle===h.v.DESTROYED?i.remove():n||=(n=!0,(0,s.aI)(a,o)||r.call(e,o,a,t,e),!1)})});return i}(e,t,r):function(e,t,r){let i=(0,d.qg)(e,t,r,(e,t,r)=>{let s,o,a=(0,f.Df)(()=>(0,c.RP)(e,t),(n,a)=>{e.__accessor__?.lifecycle===h.v.DESTROYED||s&&s.uid!==o?i.remove():(s||(s=p.acquireUntracked(n,r,a,e,t),o=s.uid),v(s))});return(0,n.hA)(()=>{a.remove(),s&&=(s.uid===o&&!s.removed&&(s.removed=!0,v(s)),null),i=a=null})});return i}(e,t,r):(0,n.hA)()}function k(e,t,r=!1,i=s.gh){return r?function(e,t,r){let i=!1;return(0,f.mJ)(e,(e,n)=>{i||=(i=!0,r(n,e)||t(e,n),!1)})}(e,t,i):function(e,t,r){let i,s,o=(0,f.Df)(e,(e,n)=>{i&&i.uid!==s?o.remove():(i||(i=p.acquireTracked(e,t,n,r),s=i.uid),v(i))});return(0,n.hA)(()=>{o.remove(),i&&=(i.uid===s&&!i.removed&&(i.removed=!0,v(i)),null),o=null})}(e,t,i)}},49422(e,t,r){r.d(t,{M:()=>d,R:()=>f});var i=r(4576),n=r(49186),s=r(53966),o=r(16649),a=r(35666),l=r(88620),u=r(7142);function c(e,t,r,i,n){let s={};return t.write?.writer?.call(e,i,s,r,n),s}function h(e,t,r,l,u,c){if(!l?.write)return!1;let h=(0,o.Jt)(e,r);if(!u&&l.write.overridePolicy){let t=l.write.overridePolicy.call(e,h,r,c??void 0);void 0!==t&&(u=t)}if(u||=l.write,!u||!1===u.enabled||u.layerContainerTypes&&c?.layerContainerType&&!u.layerContainerTypes.includes(c.layerContainerType))return!1;if((null===h&&!u.allowNull&&!u.writerEnsuresNonNull||void 0===h)&&u.isRequired){let t=new n.A("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&c?.messages?c.messages.push(t):t&&!c&&s.A.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===h||null===h&&!u.allowNull&&!u.writerEnsuresNonNull||!u.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||0===t.store.originOf(r))&&function(e,t,r,n,s){let o=n.default;if(void 0===o)return!1;if(null!=n.defaultEquals)return n.defaultEquals(s);if("function"==typeof o){if(Array.isArray(s)){let n=o.call(e,t,r??void 0);return(0,i.aI)(n,s)}return!1}return o===s}(e,r,c,l,h)||!u.ignoreOrigin&&c?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,a.aB)(c.origin))}function f(e,t,r,i){let n=(0,l.oY)(e),s=n.metadata,o=(0,u.k4)(s[t],i);return!!o&&h(e,n,t,o,r,i)}function d(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,l.h1)(t,e.toJSON(r));let i=(0,l.oY)(e),n=i.metadata;for(let s in n){let f=(0,u.k4)(n[s],r);if(!h(e,i,s,f,void 0,r))continue;let d=(0,o.Jt)(e,s),p=c(e,f,f.write&&"string"==typeof f.write.target?f.write.target:s,d,r);Object.keys(p).length>0&&(t=(0,l.h1)(t,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>(0,l.h1)(t,p,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:s,oldOrigin:(0,a.in)(i.store.originOf(s)),newOrigin:r.origin}))}return t}},5479(e,t,r){function i(e){let t=[];return function*(){yield*t;let r,i=t.length;for(;!(r=e.next()).done;)for(t.push(r.value),yield r.value;++i<t.length;)yield t[i]}}r.d(t,{I6:()=>o,N5:()=>s,PP:()=>i,xZ:()=>l,zN:()=>a});const n=Object.freeze({done:!0,value:void 0});function s(e){let t=[],r=null,i=null,s=!1;async function o(){if(s)return n;if(null!=i)return i;i=e.next();try{let e=await i;return i=null,e.done?(s=!0,n):(t.push(e.value),e)}catch(e){throw s=!0,i=null,r=e,e}}return async function*(){yield*t;let e,i=t.length;for(;!(e=await o()).done;)for(yield e.value;++i<t.length;)yield t[i];if(null!=r)throw r}}function o(e,t){for(let r of e)if(null!=r&&t(r))return r}function a(e,t){for(let r of e)if(t(r))return!0;return!1}function l(e){return null!=e&&"function"==typeof e[Symbol.iterator]}},66552(e,t,r){r.d(t,{J:()=>n,O:()=>o});var i=r(93637);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){let t={};for(let r in e)t[e[r]]=r;return t}(e),this.apiValues=s(this._apiToJSON),this.jsonValues=s(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{let n=this.toJSON(e);void 0!==n&&(0,i.sM)(r,n,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){let t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?null:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function s(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function o(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},26390(e,t,r){r.d(t,{d:()=>n});const i=[];function n(e){i.push(e),1===i.length&&queueMicrotask(()=>{let e=i.slice();i.length=0;for(let t of e)t()})}},76030(e,t,r){r.d(t,{_:()=>g,$m:()=>O,md:()=>A});var i=r(26390);function n(e,t,r,i,n){console.timeStamp(e,t,r,n,i)}class s{constructor(e,t=30){this.name=e,this._counter=0,this._samples=Array(t)}push(e){null!=e&&(this._samples[++this._counter%this._samples.length]=e)}set(e){null!=e&&(this._samples[this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort((e,t)=>e-t)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((e,t)=>e+t,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}var o=r(15142),a=r(17676),l=r(78659);class u{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let c=0;const h={time:(0,l.l5)(0),deltaTime:(0,l.l5)(0),elapsedFrameTime:(0,l.l5)(0),frameDuration:(0,l.l5)(0)},f=["prepare","preRender","render","postRender","update","finish"],d=[],p=new o.A,y={frameTasks:p,willDispatch:!1,clearFrameTasks:function(e=!1){p.forAll(e=>{e.removed=!0}),e&&w()},dispatch:b,executeFrameTasks:function(e){let t=(0,l.l5)(e-c);c=e;let r=1e3/60,i=Math.max(0,t-r);h.time=e,h.frameDuration=(0,l.l5)(r-i);for(let r=0;r<f.length;r++){let i=performance.now(),s=f[r];p.forAll(i=>{i.paused||i.removed||(0===r&&i.ticks++,!i.phases[s])||(h.elapsedFrameTime=(0,l.l5)(performance.now()-e),h.deltaTime=0===i.ticks?(0,l.l5)(0):t,i.phases[s]?.call(i,h))});let o=performance.now();N[r].push(o-i),n(s,i,o,"Maps SDK","Scheduling")}w();let s=performance.now();k.push(s-e),n("Animation Frame",e,s,"Maps SDK","Scheduling")},reschedule:function(){null!=_&&(cancelAnimationFrame(_),_=requestAnimationFrame(v))}};function g(e){let t=new u(e);return d.push(t),y.willDispatch||(y.willDispatch=!0,(0,i.d)(b)),t}let _=null;function v(){let e=performance.now();_=null,_=p.some(e=>!e.paused&&!e.removed)?requestAnimationFrame(v):null,y.executeFrameTasks(e)}const m=new o.A;function w(){p.forAll(e=>{e.removed&&m.push(e)}),p.removeUnorderedMany(m.data,m.length),m.clear()}function b(){for(;d.length;){let e=d.shift();e.isActive&&e.callback()}y.willDispatch=!1}function A(e=1,t){let r=Promise.withResolvers(),n=()=>{(0,a.G4)(t)?r.reject((0,a.NK)()):0===e?r.resolve():(--e,(0,i.d)(()=>n()))};return n(),r.promise}async function O(e){await function(e){return A(1,e)}(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}const N=f.map(e=>new s(e)),k=new s("total")},78659(e,t,r){function i(e){return e}function n(e){return 1e3*e}function s(e){return e}r.d(t,{Kp:()=>s,gr:()=>n,l5:()=>i})},24326(e,t,r){r.d(t,{c:()=>n});let i=0;function n(){return++i}},59923(e,t,r){r.d(t,{GL:()=>h,U4:()=>a,Yc:()=>c,bA:()=>u,qt:()=>l});var i=r(49186),n=r(67076);const s=["layer","property","renderer","symbol","symbol-layer","url","visual-variable","type","elevation-profile-line","field-configuration-field-format"].map(e=>`${e}:unsupported`),o=new Set(s);function a(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("layer",`Layer (${t.title}, ${t.id}) of type '${t.declaredClass}' is not supported in the context of '${i}'${r?`: ${r}`:""}`,{layer:t}))}function l(e,t,r){if(!e)return;let i=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("property",`Property '${t}' is not supported in the context of '${i}'${r?`: ${r}`:""}`))}function u(e,t,r,i){if(!e)return;let n=`${e.origin}/${e.layerContainerType||"operational-layers"}`;e?.messages?.push(h("symbol",`Symbol '${t.declaredClass}' is not supported in the context of '${n}'${r?`: ${r}`:""}`,i))}function c(e,t,r,s,o){e&&e?.messages?.push(f("warning"===t?n.A:i.A,r,s,o))}function h(e,t,r){return f(i.A,e,t,r)}function f(e,t,r,i){return new e(`${t}:unsupported`,r,i)}r.d(t,["MG",0,o])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4548,8846],{73354(t,e,r){r.d(e,{a:()=>c,b:()=>l,c:()=>o,d:()=>u,e:()=>g,f:()=>s,l:()=>f,n:()=>p,t:()=>i}),r(44208);var n=r(72727);function o(t,e,r){i(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function i(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=r[0],s=r[1],c=r[2],g=r[4],p=r[5],d=r[6],y=r[8],h=r[9],m=r[10],v=r[12],b=r[13],M=r[14],w=0,A=0;for(let r=0;r<a;r++){let r=e[w],n=e[w+1],u=e[w+2];t[A]=f*r+g*n+y*u+v,t[A+1]=s*r+p*n+h*u+b,t[A+2]=c*r+d*n+m*u+M,w+=i,A+=o}return t}function u(t,e,r){l(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function l(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=r[0],s=r[1],c=r[2],g=r[3],p=r[4],d=r[5],y=r[6],h=r[7],m=r[8],v=0,b=0;for(let r=0;r<a;r++){let r=e[v],n=e[v+1],u=e[v+2];t[b]=f*r+g*n+y*u,t[b+1]=s*r+p*n+h*u,t[b+2]=c*r+d*n+m*u,v+=i,b+=o}}function a(t,e,r,n=3,o=n){let i=Math.min(t.length/n,e.length/o),u=0,l=0;for(let a=0;a<i;a++)t[l]=r*e[u],t[l+1]=r*e[u+1],t[l+2]=r*e[u+2],u+=o,l+=n;return t}function f(t,e,r,n){s(t.typedBuffer,e.typedBuffer,r,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,r,n,o=3,i=o){let u=Math.min(t.length/o,e.length/i),l=0,a=0,f=1/2.2;for(let s=0;s<u;s++)t[a]=n*(r*e[l])**f,t[a+1]=n*(r*e[l+1])**f,t[a+2]=n*(r*e[l+2])**f,l+=i,a+=o}function c(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=0,s=0;for(let n=0;n<a;n++)t[s]=e[f]+r[0],t[s+1]=e[f+1]+r[1],t[s+2]=e[f+2]+r[2],f+=i,s+=o;return t}function g(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,r=3,n=r){let o=Math.min(t.length/r,e.length/n),i=0,u=0;for(let l=0;l<o;l++){let o=e[i],l=e[i+1],a=e[i+2],f=o*o+l*l+a*a;if(f>0){let e=1/Math.sqrt(f);t[u]=e*o,t[u+1]=e*l,t[u+2]=e*a}i+=n,u+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:s,linearToSRGBView:f,normalize:p,normalizeView:g,scale:a,scaleView:function(t,e,r){a(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,r){let n=Math.min(t.count,e.count),o=t.typedBuffer,i=t.typedBufferStride,u=e.typedBuffer,l=e.typedBufferStride,a=0,f=0;for(let t=0;t<n;t++)o[f]=u[a]>>r,o[f+1]=u[a+1]>>r,o[f+2]=u[a+2]>>r,a+=l,f+=i},transformMat3:l,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:c},Symbol.toStringTag,{value:"Module"}))},48163(t,e,r){function n(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function l(){return i(-1,-1)}function a(){return i(1,0)}function f(){return i(0,1)}r.d(e,{fA:()=>i,o8:()=>o,vt:()=>n});const s=u(),c=l(),g=a(),p=f();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:s,UNIT_X:g,UNIT_Y:p,ZEROS:[0,0],clone:o,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,negativeOnes:l,ones:u,unitX:a,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["IA",0,c,"Un",0,s])},91829(t,e,r){function n(){return[0,0,0,0]}function o(t,e,r,n){return[t,e,r,n]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function l(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}r.d(e,{_Y:()=>f,fA:()=>o,vt:()=>n});const s=[0,0,0,0],c=i(),g=u(),p=l(),d=a(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:y,UNIT_X:g,UNIT_Y:p,UNIT_Z:d,ZEROS:s,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]){let r=Math.min(4,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:o,ones:i,unitW:f,unitX:u,unitY:l,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,c,"uY",0,s])},48353(t,e,r){r.d(e,{l:()=>f});var n=r(34727),o=r(58083),i=r(51850);function u(t,e,r){let n=Math.sin(t),o=Math.cos(t),i=Math.sin(e),u=Math.cos(e),l=r;return l[0]=-n,l[4]=-i*o,l[8]=u*o,l[12]=0,l[1]=o,l[5]=-i*n,l[9]=u*n,l[13]=0,l[2]=0,l[6]=u,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=r(49208),a=r(21325);function f(t,e,r,n){let i=(0,l.Tp)(t,n);if(null==i)return!1;let f=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(f===d&&!s(d)&&(0!==f||(0,a.aI)(t,n)))return(0,o.kN)(r,e),!0;if(s(d)){let t=l.w5[f][10],n=l.w5[10][d];return null!=t&&null!=n&&(t(e,0,g,0),n(g,0,p,0),u(c*g[0],c*g[1],r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}let y=s(f);if((3===d||11===d||2===d||5===d)&&(2===f||y||3===f||5===f)){let t=l.w5[f][10],n=l.w5[10][d];return null!=t&&null!=n&&(t(e,0,g,0),n(g,0,p,0),y?function(t,e,r){u(t,e,r),(0,o.mg)(r,r)}(c*g[0],c*g[1],r):(0,o.D_)(r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}return!1}function s(t){return 1===t||6===t||8===t||4===t}const c=(0,n.kU)(1),g=(0,i.vt)(),p=(0,i.vt)()},65806(t,e,r){r.d(e,{g:()=>u});var n=r(51850),o=r(99917),i=r(9762);function u(t,e,r,n){if((0,o.canProjectWithoutEngine)(t.spatialReference,r))return l[0]=t.x,l[1]=t.y,l[2]=t.z??0,(0,i.projectBuffer)(l,t.spatialReference,0,e,r,0);let u=(0,o.tryProject)(t,r,n);return!!u&&(e[0]=u.x,e[1]=u.y,e[2]=u.z??0,!0)}const l=(0,n.vt)()},1193(t,e,r){r.r(e),r.d(e,{default:()=>c});var n,o=r(32198),i=r(69540),u=r(25482),l=r(4718),a=r(53966),f=r(91429),s=r(31199);let c=n=class extends((0,i.OU)(u.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,s.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,s.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){let t={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new n(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"color",void 0),(0,o.Cg)([(0,f.wg)("color")],c.prototype,"castColor",null),(0,o.Cg)([(0,f.MZ)({nonNullable:!0,json:{write:s.B}})],c.prototype,"position",void 0),(0,o.Cg)([(0,f.wg)("position")],c.prototype,"castPosition",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"uv",void 0),(0,o.Cg)([(0,f.wg)("uv")],c.prototype,"castUv",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"normal",void 0),(0,o.Cg)([(0,f.wg)("normal")],c.prototype,"castNormal",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"tangent",void 0),(0,o.Cg)([(0,f.wg)("tangent")],c.prototype,"castTangent",null),c=n=(0,o.Cg)([(0,f.$K)("esri.geometry.support.MeshVertexAttributes")],c)},72727(t,e,r){function n(t,e,r){if(e<=0)return 0;let n=t-r;return n<0?0:Math.floor(n/e)+1}r.d(e,{k:()=>n}),r(53966)},31199(t,e,r){function n(t,e,r,n){let{loggerTag:o,stride:i}=e;return t.length%i===0?t:(n.error(o,`Invalid array length, expected a multiple of ${i}`),new r([]))}function o(t,e,r,o,i){if(!t)return t;if(t instanceof e)return n(t,o,e,i);for(let u of r)if(t instanceof u)return n(new e(t),o,e,i);if(Array.isArray(t))return n(new e(t),o,e,i);{let n=r.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${n}, but got ${t.constructor.name}`),new e([])}}function i(t,e,r){e[r]=function(t){let e=Array(t.length);for(let r=0;r<t.length;r++)e[r]=t[r];return e}(t)}r.d(e,{B:()=>i,b:()=>o})},28846(t,e,r){r.d(e,{convertMeshVertexSpace:()=>f});var n=r(49186),o=r(4718),i=r(17676),u=r(1193),l=r(66895),a=r(72258);async function f(t,e,r){await Promise.resolve(),(0,i.Te)(r);let f=(0,a.UR)(t,e,{useEllipsoid:r?.useEllipsoid});if(!f)throw new n.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,l.Lz)(void 0,{vertexAttributes:new u.default({...f,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),vertexSpace:e,transform:null}))}},66895(t,e,r){r.d(e,{$N:()=>s,Lz:()=>i,QN:()=>c,WO:()=>a,hz:()=>l,o2:()=>o});const n=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&n in t?t[n]:void 0}function i(t,e){let r=o(t);return{...t,[n]:{...r,...e}}}const u=Symbol("meshMaterialContext");function l(t){return t&&"object"==typeof t&&u in t?t[u]:void 0}function a(t){if(l(t)?.materialMap)return t;let e={materialMap:new Map};return{...t,[u]:e}}const f=Symbol("meshTextureContext");function s(t){return t&&"object"==typeof t&&f in t?t[f]:void 0}function c(t){if(s(t)?.textureMap)return t;let e={textureMap:new Map};return{...t,[f]:e}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1843],{48163(e,t,r){function s(){return[0,0]}function i(e){return[e[0],e[1]]}function n(e,t){return[e,t]}function u(){return n(1,1)}function f(){return n(-1,-1)}function h(){return n(1,0)}function c(){return n(0,1)}r.d(t,{fA:()=>n,o8:()=>i,vt:()=>s});const l=u(),d=f(),o=h(),a=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:d,ONES:l,UNIT_X:o,UNIT_Y:a,ZEROS:[0,0],clone:i,create:s,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let r=Math.min(2,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:n,negativeOnes:f,ones:u,unitX:h,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,d,"Un",0,l])},91829(e,t,r){function s(){return[0,0,0,0]}function i(e,t,r,s){return[e,t,r,s]}function n(){return i(1,1,1,1)}function u(){return i(1,0,0,0)}function f(){return i(0,1,0,0)}function h(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}r.d(t,{_Y:()=>c,fA:()=>i,vt:()=>s});const l=[0,0,0,0],d=n(),o=u(),a=f(),p=h(),y=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_W:y,UNIT_X:o,UNIT_Y:a,UNIT_Z:p,ZEROS:l,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,freeze:function(e,t,r,s){return[e,t,r,s]},fromArray:function(e,t=[0,0,0,0]){let r=Math.min(4,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:i,ones:n,unitW:c,unitX:u,unitY:f,unitZ:h,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,d,"uY",0,l])},78955(e,t,r){r.d(t,{Bw:()=>E,C:()=>i,Cc:()=>S,LI:()=>o,Om:()=>_,S8:()=>T,T9:()=>d,WQ:()=>u,Z0:()=>m,aI:()=>R,hG:()=>y,hZ:()=>n,hs:()=>a,jk:()=>l,m3:()=>B,t2:()=>A});var s=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function n(e,t,r,s,i){return e[0]=t,e[1]=r,e[2]=s,e[3]=i,e}function u(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function f(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function h(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function l(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function d(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function o(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function a(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function p(e,t){let r=t[0]-e[0],s=t[1]-e[1],i=t[2]-e[2],n=t[3]-e[3];return Math.sqrt(r*r+s*s+i*i+n*n)}function y(e,t){let r=t[0]-e[0],s=t[1]-e[1],i=t[2]-e[2],n=t[3]-e[3];return r*r+s*s+i*i+n*n}function E(e){let t=e[0],r=e[1],s=e[2],i=e[3];return Math.sqrt(t*t+r*r+s*s+i*i)}function B(e){let t=e[0],r=e[1],s=e[2],i=e[3];return t*t+r*r+s*s+i*i}function T(e,t){let r=t[0],s=t[1],i=t[2],n=t[3],u=r*r+s*s+i*i+n*n;return u>0&&(u=1/Math.sqrt(u),e[0]=r*u,e[1]=s*u,e[2]=i*u,e[3]=n*u),e}function _(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function S(e,t,r,s){let i=t[0],n=t[1],u=t[2],f=t[3];return e[0]=i+s*(r[0]-i),e[1]=n+s*(r[1]-n),e[2]=u+s*(r[2]-u),e[3]=f+s*(r[3]-f),e}function m(e,t,r){let s=t[0],i=t[1],n=t[2],u=t[3];return e[0]=r[0]*s+r[4]*i+r[8]*n+r[12]*u,e[1]=r[1]*s+r[5]*i+r[9]*n+r[13]*u,e[2]=r[2]*s+r[6]*i+r[10]*n+r[14]*u,e[3]=r[3]*s+r[7]*i+r[11]*n+r[15]*u,e}function A(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function R(e,t){let r=e[0],i=e[1],n=e[2],u=e[3],f=t[0],h=t[1],c=t[2],l=t[3],d=(0,s.FD)();return Math.abs(r-f)<=d*Math.max(1,Math.abs(r),Math.abs(f))&&Math.abs(i-h)<=d*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(n-c)<=d*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(u-l)<=d*Math.max(1,Math.abs(u),Math.abs(l))}const M=f,N=h,I=c,b=p,C=y,F=E,O=B;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:b,distance:p,div:I,divide:c,dot:_,equals:R,exactEquals:A,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:F,length:E,lerp:S,max:d,min:l,mul:N,multiply:h,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:T,random:function(e,t=1){let r,i,n,u,f,h,c=s.Ov;do{r=2*c()-1,i=2*c()-1,f=r*r+i*i}while(f>=1);do{n=2*c()-1,u=2*c()-1,h=n*n+u*u}while(h>=1);let l=Math.sqrt((1-f)/h);return e[0]=t*r,e[1]=t*i,e[2]=t*n*l,e[3]=t*u*l,e},round:o,scale:a,scaleAndAdd:function(e,t,r,s){return e[0]=t[0]+r[0]*s,e[1]=t[1]+r[1]*s,e[2]=t[2]+r[2]*s,e[3]=t[3]+r[3]*s,e},set:n,sqrDist:C,sqrLen:O,squaredDistance:y,squaredLength:B,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:M,subtract:f,transformMat4:m,transformQuat:function(e,t,r){let s=t[0],i=t[1],n=t[2],u=r[0],f=r[1],h=r[2],c=r[3],l=c*s+f*n-h*i,d=c*i+h*s-u*n,o=c*n+u*i-f*s,a=-u*s-f*i-h*n;return e[0]=l*c+a*-u+d*-h-o*-f,e[1]=d*c+a*-f+o*-u-l*-h,e[2]=o*c+a*-h+l*-f-d*-u,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},13030(e,t,r){r.d(t,{Y$:()=>E,XW:()=>y,qB:()=>b,Qt:()=>Z,My:()=>J,bf:()=>X,jZ:()=>R,j0:()=>M,Sx:()=>N,E$:()=>I,Qy:()=>se,h:()=>x,P:()=>w,SL:()=>G,dy:()=>te,ES:()=>ie,gH:()=>T,ZD:()=>B,si:()=>C,mJ:()=>$,UL:()=>Q,D6:()=>j,Yi:()=>P,An:()=>Y,LC:()=>g,xs:()=>S,EC:()=>_,Xm:()=>F,Vp:()=>k,zD:()=>K,m8:()=>q,nS:()=>D,H$:()=>H,eI:()=>L,td:()=>re,Eq:()=>A,jz:()=>m,Aj:()=>O,E7:()=>W,Y4:()=>ee,TX:()=>z,Uz:()=>v,ml:()=>V,XP:()=>U});var s=r(34727),i=r(37585),n=r(48163),u=r(78955),f=r(91829);class h{static{this.ElementCount=9}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=9;let n=this.TypedArrayConstructor;void 0===s&&(s=9*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<9;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;for(let e=0;e<9;++e)s[n++]=i[u++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=16}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=16;let n=this.TypedArrayConstructor;void 0===s&&(s=16*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)t[e]=this.typedBuffer[r++];return t}setMat(e,t){let r=e*this.typedBufferStride;for(let e=0;e<16;e++)this.typedBuffer[r++]=t[e]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}copyFrom(e,t,r){this.copyFromTypedBuffer(e,t.typedBuffer,r*t.typedBufferStride)}copyFromTypedBuffer(e,t,r){let s=this.typedBuffer,i=e*this.typedBufferStride;for(let e=0;e<16;++e)s[i++]=t[r++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=1}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=1;let n=this.TypedArrayConstructor;void 0===s&&(s=n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.stride=s,this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}get(e){return this.typedBuffer[e*this.typedBufferStride]}set(e,t){this.typedBuffer[e*this.typedBufferStride]=t}get buffer(){return this.typedBuffer.buffer}}class d{static{this.ElementCount=2}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.start=r,this.elementCount=2;let n=this.TypedArrayConstructor;void 0===s&&(s=2*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,i.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e]=t[1]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e]=r}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}var o=r(35522);class a{static{this.ElementCount=3}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.elementCount=3;let n=this.TypedArrayConstructor;void 0===s&&(s=3*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,o.hZ)(t,this.typedBuffer[e],this.typedBuffer[e+1],this.typedBuffer[e+2])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e]=t[2]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,s){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e]=s}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}class p{static{this.ElementCount=4}constructor(e,t,r=0,s,i){this.TypedArrayConstructor=e,this.start=r,this.elementCount=4;let n=this.TypedArrayConstructor;void 0===s&&(s=4*n.BYTES_PER_ELEMENT);let u=0===t.byteLength?0:r;this.typedBuffer=null==i?new n(t,u):new n(t,u,(i-r)/n.BYTES_PER_ELEMENT),this.typedBufferStride=s/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(e,t,r=this.count-t){let s=this.typedBuffer.byteOffset+t*this.stride;return new e(this.buffer,s,this.stride,s+r*this.stride)}getVec(e,t){return e*=this.typedBufferStride,(0,u.hZ)(t,this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e++],this.typedBuffer[e])}setVec(e,t){e*=this.typedBufferStride,this.typedBuffer[e++]=t[0],this.typedBuffer[e++]=t[1],this.typedBuffer[e++]=t[2],this.typedBuffer[e]=t[3]}get(e,t){return this.typedBuffer[e*this.typedBufferStride+t]}set(e,t,r){this.typedBuffer[e*this.typedBufferStride+t]=r}setValues(e,t,r,s,i){e*=this.typedBufferStride,this.typedBuffer[e++]=t,this.typedBuffer[e++]=r,this.typedBuffer[e++]=s,this.typedBuffer[e]=i}copyFrom(e,t,r){let s=this.typedBuffer,i=t.typedBuffer,n=e*this.typedBufferStride,u=r*t.typedBufferStride;s[n++]=i[u++],s[n++]=i[u++],s[n++]=i[u++],s[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}class y extends l{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}static{this.ElementType="f16"}}class E extends l{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}static{this.ElementType="f32"}}class B extends d{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(B,e,t)}static{this.ElementType="f16"}}class T extends d{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(T,e,t)}static{this.ElementType="f32"}}class _ extends a{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(_,e,t)}static{this.ElementType="f16"}}class S extends a{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(S,e,t)}static fromTypedArray(e,t){return new S(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f32"}}class m extends p{constructor(e,t=0,r,s){super(Float16Array,e,t,r,s),this.elementType="f16"}slice(e,t){return this.sliceBuffer(m,e,t)}static{this.ElementType="f16"}}class A extends p{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(A,e,t)}static{this.ElementType="f32"}}class R extends h{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(R,e,t)}static{this.ElementType="f32"}}class M extends h{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(M,e,t)}static{this.ElementType="f64"}}class N extends c{constructor(e,t=0,r,s){super(Float32Array,e,t,r,s),this.elementType="f32"}slice(e,t){return this.sliceBuffer(N,e,t)}static{this.ElementType="f32"}}class I extends c{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(I,e,t)}static{this.ElementType="f64"}}class b extends l{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(b,e,t)}static{this.ElementType="f64"}}class C extends d{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(C,e,t)}static{this.ElementType="f64"}}class F extends a{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(F,e,t)}static fromTypedArray(e,t){return new F(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="f64"}}class O extends p{constructor(e,t=0,r,s){super(Float64Array,e,t,r,s),this.elementType="f64"}slice(e,t){return this.sliceBuffer(O,e,t)}static{this.ElementType="f64"}}class G extends l{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(G,e,t)}static{this.ElementType="u8"}}class g extends d{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(g,e,t)}static{this.ElementType="u8"}}class L extends a{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(L,e,t)}static fromTypedArray(e,t){return new L(e.buffer,e.byteOffset,t,e.byteOffset+e.byteLength)}static{this.ElementType="u8"}}class U extends p{constructor(e,t=0,r,s){super(Uint8Array,e,t,r,s),this.elementType="u8"}slice(e,t){return this.sliceBuffer(U,e,t)}static{this.ElementType="u8"}}class x extends l{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(x,e,t)}static{this.ElementType="u16"}}class P extends d{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(P,e,t)}static{this.ElementType="u16"}}class D extends a{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(D,e,t)}static{this.ElementType="u16"}}class v extends p{constructor(e,t=0,r,s){super(Uint16Array,e,t,r,s),this.elementType="u16"}slice(e,t){return this.sliceBuffer(v,e,t)}static{this.ElementType="u16"}}class w extends l{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(w,e,t)}static{this.ElementType="u32"}}class Y extends d{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(Y,e,t)}static{this.ElementType="u32"}}class H extends a{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(H,e,t)}static{this.ElementType="u32"}}class V extends p{constructor(e,t=0,r,s){super(Uint32Array,e,t,r,s),this.elementType="u32"}slice(e,t){return this.sliceBuffer(V,e,t)}static{this.ElementType="u32"}}class X extends l{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(X,e,t)}static{this.ElementType="i8"}}class j extends d{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(j,e,t)}static{this.ElementType="i8"}}class q extends a{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(q,e,t)}static{this.ElementType="i8"}}class z extends p{constructor(e,t=0,r,s){super(Int8Array,e,t,r,s),this.elementType="i8"}slice(e,t){return this.sliceBuffer(z,e,t)}static{this.ElementType="i8"}}class Z extends l{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(Z,e,t)}static{this.ElementType="i16"}}class $ extends d{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer($,e,t)}static{this.ElementType="i16"}}class k extends a{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(k,e,t)}static{this.ElementType="i16"}}class W extends p{constructor(e,t=0,r,s){super(Int16Array,e,t,r,s),this.elementType="i16"}slice(e,t){return this.sliceBuffer(W,e,t)}static{this.ElementType="i16"}}class J extends l{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(J,e,t)}static{this.ElementType="i32"}}class Q extends d{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(Q,e,t)}static{this.ElementType="i32"}}class K extends a{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(K,e,t)}static{this.ElementType="i32"}}class ee extends p{constructor(e,t=0,r,s){super(Int32Array,e,t,r,s),this.elementType="i32"}slice(e,t){return this.sliceBuffer(ee,e,t)}static{this.ElementType="i32"}}class te extends G{constructor(e,t=0,r,s){super(e,t,r,s)}get(e){return this.typedBuffer[e*this.typedBufferStride]/255}set(e,t){this.typedBuffer[e*this.typedBufferStride]=Math.round(255*(0,s.qE)(t,0,1))}slice(e,t){return this.sliceBuffer(te,e,t)}}class re extends U{constructor(e,t=0,r,s){super(e,t,r,s)}getVec(e,t){return(0,u.hs)(t,super.getVec(e,t),1/255)}setVec(e,t){(0,u.jk)(ue,(0,u.T9)(ue,t,f.uY),f.Un),(0,u.hs)(ue,ue,255),(0,u.LI)(ue,ue),super.setVec(e,ue)}get(e,t){return super.get(e,t)/255}set(e,t,r){super.set(e,t,Math.round(255*(0,s.qE)(r,0,1)))}setValues(e,t,r,s,i){(0,u.hZ)(ue,t,r,s,i),this.setVec(e,ue)}slice(e,t){return this.sliceBuffer(re,e,t)}}class se extends Z{constructor(e,t=0,r,s){super(e,t,r,s)}get(e){return Math.max(super.get(e)/32767,-1)}set(e,t){super.set(e,Math.round(32767*(0,s.qE)(t,-1,1)))}slice(e,t){return this.sliceBuffer(se,e,t)}}class ie extends ${constructor(e,t=0,r,s){super(e,t,r,s)}getVec(e,t){return(0,i.hZ)(ne,-1,-1),(0,i.T9)(t,(0,i.hs)(t,super.getVec(e,t),1/32767),ne)}setVec(e,t){(0,i.qE)(ne,t,n.IA,n.Un),(0,i.hs)(ne,ne,32767),(0,i.LI)(ne,ne),super.setVec(e,ne)}get(e,t){return Math.max(super.get(e,t)/32767,-1)}set(e,t,r){super.set(e,t,Math.round(32767*(0,s.qE)(r,-1,1)))}setValues(e,t,r){(0,i.hZ)(ne,t,r),this.setVec(e,ne)}slice(e,t){return this.sliceBuffer(ie,e,t)}}const ne=(0,n.vt)(),ue=(0,f.vt)()},90239(e,t,r){function s(e){switch(e){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(t,{GJ:()=>s})},1843(e,t,r){r.d(t,{BP:()=>l,l5:()=>d});var s=r(13030),i=r(90239),n=r(4431),u=r(620),f=r(85079);class h{constructor(e,t,r=0){this.layout=e,this.byteOffset=r,this.buffer="number"==typeof t?new ArrayBuffer(t*e.stride):t;for(let t of e.fields.keys()){let s=e.fields.get(t);this[t]=new s.constructor(this.buffer,r+s.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(e,t){let r=this[e];return r&&r.elementCount===t.ElementCount&&r.elementType===t.ElementType?r:null}slice(e,t){return new h(this.layout,this.buffer.slice(e*this.stride,t*this.stride))}copyFrom(e,t=0,r=0,s=e.count){let i=this.stride,n=e.byteOffset+t*i,u=this.byteOffset+r*i,f=s*i;if(i%4==0&&n%4==0&&u%4==0){let t=new Uint32Array(e.buffer,n,f/4);new Uint32Array(this.buffer,u,f/4).set(t)}else{let t=new Uint8Array(e.buffer,n,f);new Uint8Array(this.buffer,u,f).set(t)}return this}get usedMemory(){return this.byteLength}dispose(){}}class c{constructor(e){this._stride=0,this._fields=new Map,e&&(this._stride=e.stride,e.fields.forEach(e=>this._fields.set(e[0],{...e[1],constructor:p(e[1].constructor)})))}freeze(){return this}get locations(){return(0,f.Xk)((0,n.U)(this))}vec2f16(e,t){return this._appendField(e,s.ZD,t),this}vec2f(e,t){return this._appendField(e,s.gH,t),this}vec2f64(e,t){return this._appendField(e,s.si,t),this}vec3f16(e,t){return this._appendField(e,s.EC,t),this}vec3f(e,t){return this._appendField(e,s.xs,t),this}vec3f64(e,t){return this._appendField(e,s.Xm,t),this}vec4f16(e,t){return this._appendField(e,s.jz,t),this}vec4f(e,t){return this._appendField(e,s.Eq,t),this}vec4f64(e,t){return this._appendField(e,s.Aj,t),this}mat3f(e,t){return this._appendField(e,s.jZ,t),this}mat3f64(e,t){return this._appendField(e,s.j0,t),this}mat4f(e,t){return this._appendField(e,s.Sx,t),this}mat4f64(e,t){return this._appendField(e,s.E$,t),this}vec4u8(e,t){return this._appendField(e,s.XP,t),this}f16(e,t){return this._appendField(e,s.XW,t),this}f32(e,t){return this._appendField(e,s.Y$,t),this}f64(e,t){return this._appendField(e,s.qB,t),this}u8(e,t){return this._appendField(e,s.SL,t),this}u16(e,t){return this._appendField(e,s.h,t),this}i8(e,t){return this._appendField(e,s.bf,t),this}vec2i8(e,t){return this._appendField(e,s.D6,t),this}vec2i16(e,t){return this._appendField(e,s.mJ,t),this}vec2u8(e,t){return this._appendField(e,s.LC,t),this}vec2u16(e,t){return this._appendField(e,s.Yi,t),this}vec4u16(e,t){return this._appendField(e,s.Uz,t),this}vec4i16(e,t){return this._appendField(e,s.E7,t),this}u32(e,t){return this._appendField(e,s.P,t),this}_appendField(e,t,r){this._fields.has(e)&&(0,u.vA)(!1,`${e} already added to vertex buffer layout`);let s=t.ElementCount*(0,i.GJ)(t.ElementType),n=this._stride;this._fields.set(e,{constructor:t,size:s,offset:n,optional:r}),this._alignFields()}_alignFields(){let e=0,t=1;this._fields.forEach(r=>{let s=(0,i.GJ)(r.constructor.ElementType);e=Math.floor((e+s-1)/s)*s,r.offset=e,e+=r.size,t=Math.max(t,s)}),e=Math.floor((e+t-1)/t)*t,this._stride=e}createBuffer(e){return new h(this,e)}createView(e,t){return new h(this,e,t)}clone(){let e=new c;return e._stride=this._stride,e._fields=new Map,this._fields.forEach((t,r)=>e._fields.set(r,t)),e}get stride(){return this._stride}get fields(){return this._fields}}function l(){return new c}class d{constructor(e){this.fields=[],e.fields.forEach((e,t)=>{let r={...e,constructor:a(e.constructor)};this.fields.push([t,r])}),this.stride=e.stride}}const o=[s.Y$,s.gH,s.xs,s.Eq,s.jZ,s.Sx,s.qB,s.si,s.Xm,s.Aj,s.j0,s.E$,s.SL,s.LC,s.eI,s.XP,s.h,s.Yi,s.nS,s.Uz,s.P,s.An,s.H$,s.ml,s.bf,s.D6,s.m8,s.TX,s.Qt,s.mJ,s.Vp,s.E7,s.My,s.UL,s.zD,s.Y4];function a(e){return`${e.ElementType}_${e.ElementCount}`}function p(e){return y.get(e)}const y=new Map;o.forEach(e=>y.set(a(e),e))},4431(e,t,r){r.d(t,{U:()=>n});var s=r(63907),i=r(74038);function n(e,t=0){let r=e.stride;return e.fields.entries().map(([e,n])=>{let u=n.constructor.ElementCount,f=function(e){switch(e){case"u8":return s.pe.UNSIGNED_BYTE;case"u16":return s.pe.UNSIGNED_SHORT;case"u32":return s.pe.UNSIGNED_INT;case"i8":return s.pe.BYTE;case"i16":return s.pe.SHORT;case"i32":return s.pe.INT;case"f16":return s.pe.HALF_FLOAT;case"f32":return s.pe.FLOAT;default:throw Error("BufferType not supported in WebGL")}}(n.constructor.ElementType),h=n.offset,c=n.optional?.glNormalized??!1,l=n.optional?.integer??!1;return new i._(e,u,f,h,r,c,t,l)}).toArray()}},620(e,t,r){r.d(t,{O_:()=>n,vA:()=>i}),r(48163),r(78955),(0,r(91829).vt)();class s{constructor(e){this.message=e}toString(){return`AssertException: ${this.message}`}}function i(e,t="Assertion"){if(!e){let e=Error(t).stack;throw new s(`${t} at ${e}`)}}function n(e,t,r,s){let i,n=(r[0]-e[0])/t[0],u=(s[0]-e[0])/t[0];n>u&&(i=n,n=u,u=i);let f=(r[1]-e[1])/t[1],h=(s[1]-e[1])/t[1];if(f>h&&(i=f,f=h,h=i),n>h||f>u)return!1;f>n&&(n=f),h<u&&(u=h);let c=(r[2]-e[2])/t[2],l=(s[2]-e[2])/t[2];return c>l&&(i=c,c=l,l=i),!(n>l||c>u||(l<u&&(u=l),u<0))}},85079(e,t,r){r.d(t,{Sk:()=>u,Xk:()=>i,_u:()=>n});var s=r(21818);function i(e){let t=0;return(0,s.z)(new Map(e.map(({name:e,count:r})=>{let s=[e,t];return 16===r?t+=4:9===r?t+=3:++t,s})))}function n(e){let t=new Map,r=0;return e.forEach(e=>e.forEach(({name:e,count:s})=>{t.set(e,r),16===s?r+=4:9===s?r+=3:++r})),t}function u(e){return n(Array.from(e.values()).map(({layout:e})=>e))}},74038(e,t,r){r.d(t,{_:()=>s});class s{constructor(e,t,r,s,i,n=!1,u=0,f=!1){this.name=e,this.count=t,this.type=r,this.offset=s,this.stride=i,this.normalized=n,this.divisor=u,this.integer=f}}},63907(e,t,r){const s={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},i={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},n=Object.values(i),u={FLOAT:s.FLOAT,UNSIGNED_BYTE:s.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:s.BYTE,UNSIGNED_SHORT:s.UNSIGNED_SHORT,SHORT:s.SHORT,UNSIGNED_INT:s.UNSIGNED_INT,INT:s.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(t,["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,i,"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,n,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,u,"pe",0,s,"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([[8020],{59534(e,r,t){t.d(r,{B:()=>n,b:()=>s});var a=t(85935);function n(e){return e.toLowerCase().replaceAll(/[\s-]+/g,"")}class s{constructor(e,r){let t=new Map;for(let r of e){let e=n(r);if(t.has(e))throw Error(`${r} already added as ${t.get(e)}`);t.set(e,r)}if(null!=r)for(let[e,a]of r){let r=n(e);if(t.has(r))throw Error(`${e} already associated with ${t.get(r)}`);t.set(r,a)}this._enumMap=t}lookup(e){return this._enumMap.get(n(e))}get(e){let r=this.lookup(e);if(null==r)throw new a.D$("InvalidParameter",null);return r}}},85935(e,r,t){t.d(r,{D$:()=>o,O$:()=>l,i2:()=>d,mT:()=>u,ps:()=>p});var a=t(799);const n={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function s(e){return"object"==typeof e&&"line"in e&&"column"in e&&"number"==typeof e.line&&"number"==typeof e.column}class c extends Error{constructor(e,r){super(i(r)+("object"==typeof e&&e&&"message"in e?e.message:""),{cause:e}),this.loc=r?.loc??null}}class o extends Error{constructor(e,r,t){super("Execution error - "+i(r)+(0,a.HC)(n[e],t)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=r?.loc??null}}function i(e){return null==e?.loc?"":`Line ${e.loc.start.line}:${e.loc.start.column}: `}class u extends Error{constructor(e,r,t){super("Compilation error - "+i(r)+(0,a.HC)(n[e],t)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=r?.loc??null}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function d(e,r){return!function(e){if(e instanceof Error&&"loc"in e){let r=e.loc;return null==r||"object"==typeof r&&"start"in r&&null!=r.start&&s(r.start)&&(!("end"in r)||null==r.end||s(r.end))}return!1}(e)||null==e.loc&&null!=r?.loc?new c(e,r):e}const m={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class p extends Error{constructor(e,r){super((0,a.HC)(m[e],r)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},71409(e,r,t){const a=new Map([[1025,109452],[1033,109451],[9001,109404],[9002,109405],[9003,109406],[9005,109407],[9014,109408],[9030,109409],[9031,109410],[9033,109411],[9034,109412],[9035,109413],[9036,109414],[9037,109415],[9038,109416],[9039,109417],[9040,109418],[9041,109419],[9042,109420],[9043,109421],[9050,109422],[9051,109423],[9052,109424],[9053,109425],[9060,109426],[9061,109427],[9062,109428],[9063,109429],[9070,109430],[9080,109431],[9081,109432],[9082,109433],[9083,109434],[9084,109435],[9085,109436],[9086,109437],[9087,109438],[9093,109439],[9094,109440],[9095,109441],[9096,109442],[9097,109444],[9098,109445],[9099,109446],[9300,109447],[9301,109448],[9302,109449],[109001,109442],[109002,109443],[109003,109444],[109004,109445],[109005,109450],[109006,109451],[109007,109452],[109008,109453],[109009,109454],[109010,109455],[109011,109456],[109012,109457],[109013,109458],[109014,109459],[109015,109462],[109016,109464],[109017,109465],[109018,109466],[109030,109460],[109031,109461]]);function n(e){return(r,t)=>[r,{type:e,wkid:r,factor:t}]}const s=n("angular"),c=new Map([s(1031,4.84813681109536e-9),s(9101,1),s(9102,.017453292519943295),s(9103,.0002908882086657216),s(9104,484813681109536e-20),s(9105,.015707963267948967),s(9106,.015707963267948967),s(9109,1e-6),s(9112,.00015707963267948965),s(9113,15707963267948967e-22),s(9114,.0009817477042468104)]),o=n("linear"),i=new Map([o(1025,.001),o(1033,.01),o(9001,1),o(9002,.3048),o(9003,.30480060960121924),o(9005,.3047972654),o(9014,1.8288),o(9030,1852),o(9031,1.0000135965),o(9033,20.11684023368047),o(9034,.2011684023368047),o(9035,1609.3472186944375),o(9036,1e3),o(9037,.9143917962),o(9038,20.1166195164),o(9039,.201166195164),o(9040,.9143984146160287),o(9041,.3047994715386762),o(9042,20.116765121552632),o(9043,.2011676512155263),o(9050,.9143992),o(9051,.3047997333333333),o(9052,20.1167824),o(9053,.201167824),o(9060,.9143992042898124),o(9061,.30479973476327077),o(9062,20.116782494375872),o(9063,.2011678249437587),o(9070,.30480083333333335),o(9080,.30479951024814694),o(9081,.30479841),o(9082,.3047996),o(9083,.3047995),o(9084,.9143985307444408),o(9085,.91439523),o(9086,.9143988),o(9087,.9143985),o(9093,1609.344),o(9094,.3047997101815088),o(9095,.3048007491),o(9096,.9144),o(9097,20.1168),o(9098,.201168),o(9099,.914398),o(9300,.30479933333333337),o(9301,20.116756),o(9302,.20116756),o(109001,.9144),o(109002,.9144018288036576),o(109003,20.1168),o(109004,.201168),o(109005,.1),o(109006,.01),o(109007,.001),o(109008,.0254),o(109009,.025400050800101603),o(109010,5.0292),o(109011,5.029210058420118),o(109012,1853.248),o(109013,1853.184),o(109014,1.7018),o(109015,.8466683600033867),o(109016,.00035277777777777776),o(109017,1e-6),o(109018,1e-9),o(109030,5e4),o(109031,15e4)]),u=i.get(9001),l=n("area"),d=new Map([l(109401,1e4),l(109402,4046.8564224),l(109403,4046.872609874252),l(109404,1),l(109405,.09290304),l(109406,.09290341161327487),l(109407,.09290137299531805),l(109408,3.34450944),l(109409,3429904),l(109410,1.000027193184865),l(109411,404.6872609874253),l(109412,.04046872609874252),l(109413,2589998.470319522),l(109414,1e6),l(109415,.8361123569578626),l(109416,404.6783807676053),l(109417,.04046783807676053),l(109418,.8361244606523066),l(109419,.09290271785025629),l(109420,404.6842389557165),l(109421,.04046842389557164),l(109422,.83612589696064),l(109423,.0929028774400711),l(109424,404.6849341289498),l(109425,.04046849341289498),l(109426,.836125904805842),l(109427,.09290287831176021),l(109428,404.6849379260275),l(109429,.04046849379260275),l(109430,.09290354800069446),l(109431,.09290274144751023),l(109432,.09290207073852812),l(109433,.09290279616016),l(109434,.09290273520025),l(109435,.836124673027592),l(109436,.8361186366467529),l(109437,.8361251654414399),l(109438,.83612461680225),l(109439,2589988.110336),l(109440,.09290286332673177),l(109441,.09290349665192114),l(109442,.83612736),l(109443,.8361307045194736),l(109444,404.68564224),l(109445,.040468564224),l(109446,.836123702404),l(109447,.09290263360044447),l(109448,404.683871963536),l(109449,.0404683871963536),l(109450,.01),l(109451,1e-4),l(109452,1e-6),l(109453,64516e-8),l(109454,.0006451625806477421),l(109455,25.29285264),l(109456,25.29295381171408),l(109457,3434528.149504),l(109458,3434290.937856),l(109459,2.89612324),l(109460,25e8),l(109461,225e8),l(109462,.7168473118308245),l(109463,100),l(109464,1.244521604938271e-7),l(109465,1e-12),l(109466,1e-18)]),m=d.get(109404);t.d(r,["A7",0,m,"L2",0,u,"SQ",0,a,"s9",0,i,"y6",0,d,"zD",0,c])},88020(e,r,t){t.d(r,{a:()=>l,convert:()=>h,convertFromSpatialReferenceUnit:()=>y,convertToSpatialReferenceUnit:()=>g,meters:()=>s.L2,squareMeters:()=>s.A7,toAreaUnit:()=>m,toLengthUnit:()=>p});var a=t(59534),n=t(85935),s=t(71409),c=t(86211),o=t(22530),i=t(31865);function u(e,r){let t;switch(e){case"linear":t=s.s9;break;case"angular":t=s.zD;break;case"area":t=s.y6;break;default:return null}return t.get(r)}function l(e){let r=e.wkid;if(null!=r){let e=o.A.units[o.A[r]];if(null!=e)switch(e){case"Meter":return u("linear",9001);case"Foot":return u("linear",9002);case"Foot_US":return u("linear",9003);case"Foot_Clarke":return u("linear",9005);case"Yard_Clarke":return u("linear",9037);case"Link_Clarke":return u("linear",9039);case"Yard_Sears":return u("linear",9040);case"Foot_Sears":return u("linear",9041);case"Chain_Sears":return u("linear",9042);case"Chain_Benoit_1895_B":return u("linear",9062);case"Yard_Indian":return u("linear",9084);case"Yard_Indian_1937":return u("linear",9085);case"Foot_Gold_Coast":return u("linear",9094);case"Chain":return u("linear",9097);case"Chain_Sears_1922_Truncated":return u("linear",9301);case"50_Kilometers":return u("linear",109030);case"150_Kilometers":return u("linear",109031);default:throw Error(`Unknown unit name: ${e}`)}return c.yD.has(r)?u("angular",9105):u("angular",9102)}let t=e.wkt2||e.wkt;if(null!=t){let e=(0,i.B)(t);if(null!=e){if(null!=e.wkid){let r=u(e.type,e.wkid);if(null!=r)return r}return{type:e.type,wkid:-1,factor:e.factor}}}return null}function d(e){if("linear"!==e.type)return null;if(-1===e.wkid)return{type:"area",wkid:-1,factor:e.factor**2};let r=s.SQ.get(e.wkid);return null==r?null:u("area",r)}function m(e){if(null!=e){if("number"==typeof e)return s.y6.get(e)??s.s9.get(e)??s.zD.get(e);if("string"!=typeof e)throw new n.D$("InvalidParameter",null);switch((0,a.B)(e)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return s.y6.get(109404);case"miles":case"mile":case"squaremile":case"squaremiles":return s.y6.get(109439);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return s.y6.get(109414);case"acres":case"acre":case"ac":return s.y6.get(109402);case"hectares":case"hectare":case"ha":return s.y6.get(109401);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return s.y6.get(109442);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return s.y6.get(109405);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return s.y6.get(109409);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return s.y6.get(109452);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return s.y6.get(109451);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return s.y6.get(109450);case"inch":case"inches":case"squareinch":case"squareinches":return s.y6.get(109453);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return s.y6.get(109406);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return s.y6.get(109413)}}}function p(e){if(null!=e){if("number"==typeof e)return s.s9.get(e)??s.zD.get(e)??s.y6.get(e);if("string"!=typeof e)throw new n.D$("InvalidParameter",null);switch((0,a.B)(e)){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":case"hectares":case"hectare":case"ha":return s.s9.get(9001);case"miles":case"mile":case"squaremile":case"squaremiles":return s.s9.get(9093);case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return s.s9.get(9036);case"yard":case"yd":case"yards":case"squareyards":case"squareyard":case"acres":case"acre":case"ac":return s.s9.get(9096);case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return s.s9.get(9002);case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return s.s9.get(9030);case"millimeter":case"millimeters":case"squaremillimeter":case"squaremillimeters":return s.s9.get(109007);case"centimeter":case"centimeters":case"squarecentimeter":case"squarecentimeters":return s.s9.get(109006);case"decimeter":case"decimeters":case"squaredecimeter":case"squaredecimeters":return s.s9.get(109005);case"inch":case"inches":case"squareinch":case"squareinches":return s.s9.get(109008);case"usfoot":case"usfeet":case"squareusfoot":case"squareusfeet":return s.s9.get(9003);case"usmile":case"usmiles":case"squareusmile":case"squareusmiles":return s.s9.get(9035)}}}function f(e,r,t){if(e.type!==r.type)throw Error(`Incompatible unit types. src=${e.type} dest=${r.type}`);return t*(e.factor/r.factor)}function y(e,r,t){if(null==e||null==r)return t;let a=l(e);if(null==a)throw Error("Unknown spatial reference unit.");let n="area"===r.type&&"linear"===a.type?d(a):a;if(null==n)throw Error(`Unknown spatial reference ${r.type} unit.`);return f(n,r,t)}function g(e,r,t){if(null==e||null==r)return t;let a=l(r);if(null==a)throw Error("Unknown spatial reference unit.");let n="area"===e.type&&"linear"===a.type?d(a):a;if(null==n)throw Error(`Unknown spatial reference ${e.type} unit.`);return f(e,n,t)}function h(e,r,t){return null==e||null==r?t:f(e,r,t)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1948,4809,7992],{32198(e,t,r){function n(e,t,r,n){var s,o=arguments.length,i=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,s;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(s=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");s&&(n=function(){try{s.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}r.d(t,{Cg:()=>n,hk:()=>i,mS:()=>s}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function i(e){function t(t){e.error=e.hasError?new o(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function s(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(s);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(s,function(e){return t(e),s()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}},1123(e,t,r){r.r(t),r.d(t,{invokeGeometryOp:()=>i});var n=r(83299);function s(e,t){let r;return{loaded:!1,load:()=>r??=t().then(t=>{o[e]={loaded:!0,execute:t}})}}const o={disjoint:s("disjoint",async()=>{let{OperatorDisjoint:e}=await r.e(7029).then(()=>r(97029)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),intersects:s("intersects",async()=>{let{OperatorIntersects:e}=await r.e(31).then(()=>r(70031)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),touches:s("touches",async()=>{let{OperatorTouches:e}=await r.e(6810).then(()=>r(46810)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),crosses:s("crosses",async()=>{let{OperatorCrosses:e}=await r.e(9821).then(()=>r(29821)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),within:s("within",async()=>{let{OperatorWithin:e}=await r.e(2802).then(()=>r(22802)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),contains:s("contains",async()=>{let{OperatorContains:e}=await r.e(892).then(()=>r(70892)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),overlaps:s("overlaps",async()=>{let{OperatorOverlaps:e}=await r.e(5181).then(()=>r(85181)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),equals:s("equals",async()=>{let{OperatorEquals:e}=await r.e(468).then(()=>r(70468)),t=new e;return(e,r,s)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),null)}),relate:s("relate",async()=>{let{OperatorRelate:e}=await r.e(9672).then(()=>r(39672)),t=new e;return(e,r,s,o)=>t.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s),o,null)}),intersection:s("intersection",async()=>{let{execute:e}=await r.e(1327).then(()=>r(33708));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),union:s("union",async()=>{let{executeMany:e}=await r.e(8298).then(()=>r(28298));return(t,r)=>(0,n.toGeometry)(e(t.map(e=>(0,n.fromGeometryToGXGeometry)(e)),(0,n.fromSpatialReference)(r)),null)}),difference:s("difference",async()=>{let{execute:e}=await r.e(9074).then(()=>r(49074));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),symmetricDifference:s("symmetricDifference",async()=>{let{execute:e}=await r.e(994).then(()=>r(68613));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)),null)}),clip:s("clip",async()=>{let{execute:e}=await r.e(6027).then(()=>r(96027));return(t,r,s)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r).asEnvelope2D(),(0,n.fromSpatialReference)(s)),null)}),cut:s("cut",async()=>{let{execute:e}=await r.e(756).then(()=>r(90756));return(t,r,s)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(s)).map(e=>(0,n.toGeometry)(e,null)).filter(e=>null!=e)}),area:s("area",async()=>{let{convertFromSpatialReferenceUnit:e,toAreaUnit:t}=await r.e(8020).then(()=>r(88020));return(r,s,o)=>{let i=(0,n.fromGeometryToGXGeometry)(r).calculateArea2D();return e(s,t(o),i)}}),geodeticArea:s("geodeticArea",async()=>{let{load:e,execute:t}=await r.e(6742).then(()=>r(86742)),{convert:s,squareMeters:o,toAreaUnit:i}=await r.e(8020).then(()=>r(88020));return await e(),(e,r,a,l)=>{let u=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),l);return s(o,i(a),u)}}),length:s("length",async()=>{let{convertFromSpatialReferenceUnit:e,toLengthUnit:t}=await r.e(8020).then(()=>r(88020));return(r,s,o)=>{let i=(0,n.fromGeometryToGXGeometry)(r).calculateLength2D();return e(s,t(o),i)}}),geodeticLength:s("geodeticLength",async()=>{let{load:e,execute:t}=await r.e(5223).then(()=>r(35223)),{convert:s,meters:o,toLengthUnit:i}=await r.e(8020).then(()=>r(88020));return await e(),(e,r,a,l)=>{let u=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),l);return s(o,i(a),u)}}),distance:s("distance",async()=>{let{OperatorDistance:e}=await r.e(2994).then(()=>r(22994)),{convertFromSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(8020).then(()=>r(88020)),o=new e;return(e,r,i,a)=>{let l=o.execute((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),null);return t(i,s(a),l)}}),geodeticDistance:s("geodeticDistance",async()=>{let{load:e,execute:t}=await r.e(9716).then(()=>r(29716)),{convert:s,meters:o,toLengthUnit:i}=await r.e(8020).then(()=>r(88020));return await e(),(e,r,a,l,u)=>{let m=t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(a),u);return s(o,i(l),m)}}),densify:s("densify",async()=>{let{execute:e}=await r.e(1735).then(()=>r(91735)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(8020).then(()=>r(88020));return(r,o,i,a)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),i,0,0),null))}),geodeticDensify:s("geodeticDensify",async()=>{let{load:e,execute:t}=await r.e(7085).then(()=>r(77085)),{convert:s,meters:o,toLengthUnit:i}=await r.e(8020).then(()=>r(88020));return await e(),(e,r,a,l,u)=>(a=s(i(l),o,a),(0,n.toGeometry)(t((0,n.fromGeometryToGXGeometry)(e),a,(0,n.fromSpatialReference)(r),u),null))}),generalize:s("generalize",async()=>{let{execute:e}=await r.e(787).then(()=>r(70787)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(8020).then(()=>r(88020));return(r,o,i,a,l)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),i,l),null))}),buffer:s("buffer",async()=>{let{execute:e}=await Promise.all([r.e(6870),r.e(5227)]).then(()=>r(15227)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(8020).then(()=>r(88020));return(r,o,i,a)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(o),i),null))}),geodesicBuffer:s("geodesicBuffer",async()=>{let{load:e,execute:t}=await r.e(4988).then(()=>r(24988)),{convert:s,meters:o,toLengthUnit:i}=await r.e(8020).then(()=>r(88020));return await e(),(e,r,a,l,u)=>(a=s(i(l),o,a),(0,n.toGeometry)(t((0,n.fromGeometryToGXGeometry)(e),(0,n.fromSpatialReference)(r),u,a,NaN),null))}),offset:s("offset",async()=>{let{execute:e}=await Promise.all([r.e(6870),r.e(6070)]).then(()=>r(66070)),{convertToSpatialReferenceUnit:t,toLengthUnit:s}=await r.e(8020).then(()=>r(88020));return(r,o,i,a,l,u,m)=>(i=t(s(a),o,i),(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(r),(0,n.fromSpatialReference)(o),i,l,u,m),null))}),rotate:s("rotate",async()=>{let{executeRotate:e}=await r.e(4791).then(()=>r(64791));return(t,r,s,o)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),r,s,o),null)}),centroid:s("centroid",async()=>{let{OperatorCentroid2D:e}=await r.e(9447).then(()=>r(9447)),t=new e;return e=>{let r=t.execute((0,n.fromGeometryToGXGeometry)(e),null);return r.isNAN()?null:{x:r.x,y:r.y}}}),labelPoint:s("labelPoint",async()=>{let{execute:e}=await r.e(4945).then(()=>r(54945));return t=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t)),null)}),multiPartToSinglePart:s("multiPartToSinglePart",async()=>{let{executeMany:e}=await r.e(3193).then(()=>r(33193));return(t,r)=>e([(0,n.fromGeometryToGXGeometry)(t)],(0,n.fromSpatialReference)(r)).map(e=>(0,n.toGeometry)(e,null)).filter(e=>null!=e)}),isSelfIntersecting:s("isSelfIntersecting",async()=>{let{executeIsSelfIntersecting:e}=await r.e(3755).then(()=>r(83755));return(t,r)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r))}),isSimple:s("isSimple",async()=>{let{isSimpleAsFeature:e}=await r.e(1150).then(()=>r(81150));return(t,r)=>e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r),!1)}),simplify:s("simplify",async()=>{let{execute:e}=await r.e(1150).then(()=>r(81150));return(t,r)=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromSpatialReference)(r),!1),null)}),convexHull:s("convexHull",async()=>{let{execute:e}=await r.e(1577).then(()=>r(91577));return t=>(0,n.toGeometry)(e((0,n.fromGeometryToGXGeometry)(t)),null)}),getNearestCoordinate:s("getNearestCoordinate",async()=>{let{executeNearestCoordinate:e}=await r.e(6556).then(()=>r(6556));return(t,r)=>{let s=e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r));return null==s?null:{...s,coordinate:(0,n.toGeometry)(s.coordinate,null)}}}),getNearestVertex:s("getNearestVertex",async()=>{let{executeNearestVertex:e}=await r.e(4064).then(()=>r(64064));return(t,r)=>{let s=e((0,n.fromGeometryToGXGeometry)(t),(0,n.fromGeometryToGXGeometry)(r));return null==s?null:{...s,coordinate:(0,n.toGeometry)(s.coordinate,null)}}})};function i(e,t){let r=o[e];return r.loaded?r.execute.apply(void 0,t):r.load().then(()=>i(e,t))}},61691(e,t,r){r.d(t,{G:()=>n});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}},76061(e,t,r){r.d(t,{S:()=>s});var n=r(61691);class s extends n.G{m_aGeoms;m_iGeom=-1;constructor(e){super(),this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){let e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},34304(e,t,r){r.d(t,{DF:()=>l,FD:()=>s,ct:()=>u});let n=1e-6;function s(){return n}const o=Math.random,i=Math.PI/180,a=180/Math.PI;function l(e){return e*i}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(e,t){return Math.abs(e-t)<=n*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:s,setEpsilon:function(e){n=e},toDegree:u,toRadian:l},Symbol.toStringTag,{value:"Module"})),r.d(t,["Ov",0,o])},69397(e,t,r){r.d(t,{Qf:()=>a,Qh:()=>o,lM:()=>s});var n=r(34275);function s(e){if(!e)return 0;let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=i(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=m;for(let n=0;n<t;n++)r+=i(e[n]);return r}(e);let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=i(e[r]));return t}function i(e,t=!0){switch(typeof e){case"object":return t?o(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+h:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return m+e.length*t}const u=32,m=16,h=145},87992(e,t,r){r.d(t,{JR:()=>T,ME:()=>w,MY:()=>R,NO:()=>v,Nh:()=>M,V2:()=>P,_s:()=>A,e6:()=>F,gh:()=>S,jm:()=>C,tr:()=>I,uX:()=>g});var n=r(32198),s=r(16930),o=r(19419),i=r(60408),a=r(21325),l=r(513),u=r(50954),m=r(79567),h=r(52006),f=r(49663),c=r(46068),y=r(92722);class g{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:n,vertexZ:s,vertexM:o,partCount:i,partOffsets:a,partFlags:l,segmentFlags:u,segmentIndices:m,segmentParams:h,segmentCountArc:f,segmentCountBezier:c}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=n,this.vertexZ=s,this.vertexM=o,this.partCount=i,this.partOffsets=a,this.partFlags=l,this.segmentFlags=u,this.segmentIndices=m,this.segmentParams=h,this.segmentCountArc=f,this.segmentCountBezier=c}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:n,hasM:s,segmentCountArc:o,segmentCountBezier:i}=this,a=P(e,t,r,n,s,this.hasCurves(),o,i);a.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:u,vertexM:m}=this;if(a.vertexXY.set(l.subarray(0,2*t),0),a.vertexZ?.set(u.subarray(0,t),0),a.vertexM?.set(m.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;a.partFlags.set(t.subarray(0,r+1)),a.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:n,segmentParamCount:s}=this;a.segmentFlags.set(e.subarray(0,t),0),a.segmentIndices.set(r.subarray(0,t),0),a.segmentParams.set(n.subarray(0,s),0)}return a}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,a.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new p(this):[][Symbol.iterator]()}}class p{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=O(e),this._segments=new x(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class x{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new G(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class G{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=O(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],n=t[r++],s=t[r++],o=t[r++];return{b:[this.end,[e,n],[s,o]]}}let n=t[r++],s=t[r++],o=t[r++],i=t[r++],a=t[r++],l=t[r++];r++,r++;let u=t[r++],m=t[r++];if(!(4&n)&&1===o)return{c:[this.end,[u,m]]};let h=2&n?0:1,f=1&n?0:1;return{a:[this.end,[a,l],h,f,i,s,o]}}}function v(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,o.Ie)(),(0,n.mS)(r,new X(e,["vertexZ","vertexM","spatialReference"]),!1),(0,o.bx)(t,function(e){let t,{vertexCount:r,vertexXY:s,vertexZ:i,vertexM:a}=e,l=E(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,new X(e,["vertexZ","vertexM"]),!1);let s=(0,o.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,m.e)(s,e,r),e=(0,h.yP)(r)}let[i,a,u,f]=s;t={xmin:i,ymin:a,xmax:u,ymax:f,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}else{let e,n,o,i;e=n=1/0,o=i=-1/0;for(let t=0;t<r;++t){let r=s[2*t],a=s[2*t+1];e=Math.min(e,r),o=Math.max(o,r),n=Math.min(n,a),i=Math.max(i,a)}t={xmin:e,ymin:n,xmax:o,ymax:i,spatialReference:l}}if(i){let e=1/0,r=-1/0;for(let t of i)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(a){let e=1/0,r=-1/0;for(let t of a)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}function w(e){let t,r,n;if((0,i.fT)(e)){n="point";let{x:s,y:o,z:i,m:a}=e,l=[s,o];null!=i&&l.push(i),null!=a&&l.push(a),r=[[l]],t=1}else(0,i.U9)(e)?(n="multipoint",r=[e.points],t=e.points.length):(0,i.Rg)(e)?(n="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(n="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,b(t[0],(0,h.yP)(t.at(-1)))&&--e),e),0));let s=P(n,t,n.includes("point")?0:r.length,(0,i.Pv)(e),(0,i.W0)(e),(0,h.Ed)(e)),{hasZ:o,hasM:a,vertexXY:l,vertexZ:u,vertexM:m}=s;function f(e){l[2*y]=e[0],l[2*y+1]=e[1],o&&(u[y]=e[2]),a&&(m[y]=e[c]),++y}s.spatialReference=e.spatialReference??void 0;let c=s.hasZ?3:2,y=0;if(!s.isMultipart()){if(!o&&!a){for(let[e,t]of r[0])l[2*y]=e,l[2*y+1]=t,++y;return s}for(let e of r[0])f(e);return s}let g="polygon"===n,{partOffsets:p}=s,d=0;if(!(0,h.Ed)(e)){for(let e of r){if(p[d++]=y,0===e.length)continue;let t=e.length;if(g&&b(e[0],e.at(-1))&&--t,o||a)for(let r=0;r<t;++r)f(e[r]);else for(let r=0;r<t;++r){let[t,n]=e[r];l[2*y]=t,l[2*y+1]=n,++y}}return p[d]=y,s}function x(e){let t=G+e;if(t<=(s.segmentParams?.length??0))return;let r=t*V;r=20*Math.ceil(r/20);let n=s.segmentParams;s.segmentParams=new Float64Array(r),null!=n&&s.segmentParams.set(n)}let G=0;for(let e of r){if(s.partOffsets[d++]=y,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let n=e[t];f(r);let o=y-1;(0,h.wY)(n)?(x(10),++s.segmentCountArc,G=A(r,n,s,o,G),r=n.a[0]):(0,h.DA)(n)?(x(10),++s.segmentCountArc,G=_(r,n,s,o,G),r=n.a[0]):(0,h.aO)(n)?(x(10),++s.segmentCountArc,G=F(r,n,s,o,G),r=n.c[0]):(0,h.n1)(n)?(x(4),++s.segmentCountBezier,G=I(0,n,s,o,G),r=n.b[0]):r=n}g&&b(t,r)||f(r)}return s.partOffsets[d]=y,s}function S(e){let t=O(e),{vertexCount:r,partCount:n,hasZ:s,hasM:o}=e,i=E(e),a=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:i}}let n=[];for(;a<r;)n.push(t(a++));return{points:n,spatialReference:i,hasZ:s,hasM:o}}if(!e.hasCurves()){let r=[];for(let s=0;s<n;++s){let n=!!(1&e.partFlags[s]),o=e.partOffsets[s+1],i=[];for(;a<o;)i.push(t(a++));n&&i.length>0&&i.push([...i[0]]),r.push(i)}return"polygon"===e.type?{rings:r,hasZ:s,hasM:o,spatialReference:i}:{paths:r,hasZ:s,hasM:o,spatialReference:i}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:s,hasM:o,spatialReference:i}:{paths:[],curvePaths:l,hasZ:s,hasM:o,spatialReference:i}}function M(e,{lengths:t,coords:r,hasZ:n,hasM:s},o){let i=e.includes("point")?0:t.length,a="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(a?i:0);n??=!1,s??=!1;let u=P(e,l,i,n,s,!1,0,0);if(u.spatialReference=o??void 0,!u.isMultipart()){for(let e=0,t=0;e<l;++e)u.vertexXY[2*e]=r[t++],u.vertexXY[2*e+1]=r[t++],n&&(u.vertexZ[e]=r[t++]),s&&(u.vertexM[e]=r[t++]);return u}let m=2+Number(n)+Number(s),h=0,f=0;u.partOffsets[0]=0;for(let e of t){let t=u.partOffsets[f],o=t+e-Number(a);u.partOffsets[++f]=o;for(let e=t;e<o;++e)u.vertexXY[2*e]=r[h++],u.vertexXY[2*e+1]=r[h++],n&&(u.vertexZ[e]=r[h++]),s&&(u.vertexM[e]=r[h++]);a&&(h+=m)}return u}function T({type:e,vertexCount:t,vertexXY:r,vertexZ:n,vertexM:s,partCount:o,partOffsets:i,partFlags:a,hasZ:l,hasM:u}){let m=new y.A([],[],l,u);o=Math.max(o,1);let h=0;for(let e=0;e<o;++e){let o=i?.[e+1]??t,f=m.coords.length;for(let e=h;e<o;++e)m.coords.push(r[2*e],r[2*e+1]),l&&m.coords.push(n[e]),u&&m.coords.push(s[e]);if(a&&1&a[e]){let e=h;m.coords.push(r[2*e],r[2*e+1]),l&&m.coords.push(n[e]),u&&m.coords.push(s[e])}m.lengths.push((m.coords.length-f)/m.stride),h=o}return"point"===e&&(m.lengths.length=0),m}function C(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function R(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let n=e.getLatestID();(n<=0||n===r)&&(n=void 0);let s=e.getVCS();if(null==s)return{wkid:r,latestWkid:n,wkt:t};let o=s.isCustomWkid()?0:s.getOldID();if(o<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===o)&&(i=void 0),{wkid:r,wkt:t,latestWkid:n,vcsWkid:o,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new g({...e.toFlatGeometry(),spatialReference:t})}class X{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function E({spatialReference:e}){return e instanceof s.A?e.toJSON():e}function O({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?n=>[e[2*n],e[2*n+1],t[n],r[n]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function b(e,t){return e.every((e,r)=>e===t[r])}function P(e,t,r,n,s,o,i,a){i??=0,a??=0;let l=new g({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:a}),u=2*Float64Array.BYTES_PER_ELEMENT*t;n&&(u+=Float64Array.BYTES_PER_ELEMENT*t),s&&(u+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(u+=(r+1)*Int32Array.BYTES_PER_ELEMENT,u+=(r+1)*Int8Array.BYTES_PER_ELEMENT),o&&(u+=t*Int8Array.BYTES_PER_ELEMENT,u+=t*Int32Array.BYTES_PER_ELEMENT,u+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let m=new ArrayBuffer(u),h=0;return l.vertexXY=new Float64Array(m,h,2*t),h+=l.vertexXY.byteLength,n&&(l.vertexZ=new Float64Array(m,h,t),h+=l.vertexZ.byteLength),s&&(l.vertexM=new Float64Array(m,h,t),h+=l.vertexM.byteLength),o&&(l.segmentParams=new Float64Array(m,h,l.segmentParamCount),h+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(m,h,t),l.segmentIndices.fill(Y),h+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(m,h,r+1),h+=l.partOffsets.byteLength,l.partFlags=new Int8Array(m,h,r+1),h+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),o&&(l.segmentFlags=new Int8Array(m,h,t),l.segmentFlags.fill(1),h+=l.segmentFlags.byteLength),l}function A(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){r[o]=4,n[o]=i;let[a,[l,u],m,h,f,y,g]=t.a,p=4;h||(p|=1),m||(p|=2);let d=(0,c.SW)(e,t),[x,G]=(0,c.Uk)(d,.5);return s[i++]=p,s[i++]=y,s[i++]=g,s[i++]=f,s[i++]=l,s[i++]=u,s[i++]=d.u2-d.u1,s[i++]=d.u1,s[i++]=x,s[i++]=G,i}function _(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){r[o]=4,n[o]=i;let a=(0,f.io)(e,t);return Z(a,4,...(0,l.mq)(a,.5),s,i)}function F(e,t,{segmentFlags:r,segmentIndices:n,segmentParams:s},o,i){return r[o]=4,n[o]=i,Z((0,u.pM)(e,t),0,...t.c[1],s,i)}function Z(e,t,r,n,s,o){let{cx:i,cy:a,thetaStart:l,thetaEnd:u,radius:m}=e;return l>u||(t|=1),Math.abs(u-l)<=Math.PI||(t|=2),s[o++]=t,s[o++]=m,s[o++]=1,s[o++]=0,s[o++]=i,s[o++]=a,s[o++]=u-l,s[o++]=l,s[o++]=r,s[o++]=n,o}function I(e,{b:[t,[r,n],[s,o]]},{segmentFlags:i,segmentIndices:a,segmentParams:l},u,m){return i[u]=2,a[u]=m,l[m++]=r,l[m++]=n,l[m++]=s,l[m++]=o,m}const V=1.61803,Y=-1},52006(e,t,r){function n(e){return"curveRings"in e&&!!e.curveRings?.length||"curvePaths"in e&&!!e.curvePaths?.length}function s(e){return"curveRings"in e?e.curveRings:e.curvePaths}function o(e){return"b"in e}function i(e){return"c"in e}function a(e){return Array.isArray(e)}function l(e){return"a"in e}function u(e){return"a"in e&&4===e.a.length}function m(e){return"a"in e&&7===e.a.length}function h(e,t){return s(e).flat().some(e=>function(e,t){return!(a(e)||(o(e)?t.has("cubic-bezier"):i(e)?t.has("circular-arc"):!u(e)&&!m(e)||t.has("elliptic-arc")))}(e,t))}function f(e){return a(e)?e:o(e)?e.b[0]:i(e)?e.c[0]:e.a[0]}function c(e){if(o(e)){let[t,r,n]=e.b;return{b:[[...t],[...r],[...n]]}}if(i(e)){let[t,r]=e.c;return{c:[[...t],[...r]]}}if(a(e))return[...e];if(u(e)){let[t,r,n,s]=e.a;return{a:[[...t],[...r],n,s]}}if(m(e)){let[t,r,n,s,o,i,a]=e.a;return{a:[[...t],[...r],n,s,o,i,a]}}return e}r.d(t,{DA:()=>u,Ed:()=>n,FD:()=>s,FG:()=>l,V8:()=>h,Xq:()=>a,aO:()=>i,n1:()=>o,tk:()=>c,wY:()=>m,yP:()=>f}),r(4576)},60408(e,t,r){function n(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function s(e){return void 0!==e.points}function o(e){return void 0!==e.x&&void 0!==e.y}function i(e){return void 0!==e.paths||void 0!==e.curvePaths}function a(e){return void 0!==e.rings||void 0!==e.curveRings}function l(e){return"object"==typeof e&&"vertexAttributes"in e}function u(e){return e?o(e)?"esriGeometryPoint":i(e)?"esriGeometryPolyline":a(e)?"esriGeometryPolygon":n(e)?"esriGeometryEnvelope":s(e)?"esriGeometryMultipoint":null:null}function m(e){return null!=e&&("hasZ"in e&&e.hasZ||"z"in e&&null!=e.z)}function h(e){return null!=e&&("hasM"in e&&e.hasM||"m"in e&&null!=e.m)}r.d(t,{$B:()=>u,Bi:()=>a,Pv:()=>m,Rg:()=>i,U9:()=>s,W0:()=>h,ZC:()=>n,fT:()=>o,uW:()=>l})},92722(e,t,r){r.d(t,{A:()=>s});var n=r(69397);class s{constructor(e=[],t=[],r=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:n}){return new s(e,t,r||!1,n||!1)}static fromRect([e,t,r,n]){let o=r-e,i=n-t;return new s([5],[e,t,o,0,0,i,-o,0,0,-i])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let r of this.lengths){if(r<3)continue;let{stride:n}=this,s=this.coords[n*t],o=this.coords[n*t+1];for(let i=1;i<r;i+=1){let r=n*(t+i),a=this.coords[r],l=this.coords[r+1];e+=-.5*(a-s)*(l+o),s=a,o=l}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:r}=this;for(let n of this.lengths){for(let s=0;s<n;s++){let n=r*(t+s);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,n=0,{stride:s}=this;for(let e of r){for(let r=1;r<e;r++){let e=s*(n+r);t[e]+=t[e-s],t[e+1]+=t[e+1-s]}n+=e}return e}clone(e){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:n}=this,o=this.coords.slice(0,n*r);return e?(e.set(o),new s(t,e,this.hasZ,this.hasM)):new s(t,Array.from(o),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let r=Array(t*e);for(let t=0,n=0;t<r.length;t+=e)r[n++]=this.coords[t],r[n++]=this.coords[t+1];return new s(this.lengths,r,!1,!1)}}}}]);