@arcgis/core 4.30.0-next.20240308 → 4.30.0-next.20240309

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.
@@ -1 +1 @@
1
- var RemoteClient;(()=>{var e={2131:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},90237:(e,t,r)=>{"use strict";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){return function(r,n){t(r,n,e)}}r.d(t,{_:()=>n,a:()=>s}),"function"==typeof SuppressedError&&SuppressedError},92602:(e,t,r)=>{"use strict";r.d(t,{A:()=>o}),r(44208);var n=r(93637),s=r(18357);const o={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(o,globalThis.esriConfig,!0),delete o.has),!o.assetsPath){{const e="4.30.0";o.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.$}/assets`}o.defaultAssetsPath=o.assetsPath}},69622:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(51447),s=r(71511),o=r(53966),i=r(97768),a=r(56454),c=r(16649),l=r(45873),u=r(96156),f=(r(44208),r(4718)),d=r(93687),h=r(11406),p=r(35666),g=r(62788),y=r(47328);class b extends h.T{constructor(e,t){super(),this.propertyName=e,this.metadata=t,this._accessed=null,this._handles=null,this.flags=0,this.flags=y.i.Dirty|(t.nonNullable?y.i.NonNullable:0)|(t.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===t.get?y.i.DepTrackingInitialized:0)|(void 0===t.dependsOn?y.i.AutoTracked:0)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this._accessed=null,this._clearObservationHandles()}getComputed(e){(0,g.gc)(this);const t=e.store,r=this.propertyName,n=this.flags,s=t.get(r);if(n&y.i.Computing)return s;if(~n&y.i.Dirty&&t.has(r))return s;this.flags|=y.i.Computing;const o=e.host;let i;n&y.i.AutoTracked?i=(0,g.a)(this,this.metadata.get,o):((0,g.Xr)(o,this),i=this.metadata.get.call(o)),t.set(r,i,p.Gr.COMPUTED);const a=t.get(r);return a===s?this.flags&=~y.i.Dirty:(0,g.F_)(this.commit,this),this.flags&=~y.i.Computing,a}onObservableAccessed(e){if(e===this)return;let t=this._accessed;if(null==t)t=[],this._accessed=t;else if(t.includes(e))return;t.push(e)}onTrackingEnd(){this._clearObservationHandles(),this.flags|=y.i.DepTrackingInitialized;const e=this._accessed;if(null==e||0===e.length)return;let t=this._handles;null==t&&(t=[],this._handles=t);for(let r=0;r<e.length;++r)t.push(e[r].observe(this));e.length=0}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}_clearObservationHandles(){const e=this._handles;if(null!==e){for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);const e=this._observers;if(e&&e.length>0)for(const t of e)t.onInvalidated()}onCommitted(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onCommitted()}}}class m{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new m;return this._values.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,f.o8)(r))})),t}get(e){return this._values.get(e)}originOf(){return p.Gr.USER}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)}forEach(e){this._values.forEach(e)}}function _(e,t,r){return void 0!==e}function v(e,t,r,n){return!(void 0===e||null==r&&e.flags&y.i.NonNullable&&(n.lifecycle,l.v.INITIALIZING,1))}class w{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=l.v.INITIALIZING,this.store=new m,this._origin=p.Gr.USER;const t=this.host.constructor.__accessorMetadata__;for(const e in t){const r=new b(e,t[e]);this.propertiesByName.set(e,r)}this.metadata=t}initialize(){this.lifecycle=l.v.CONSTRUCTING}constructed(){this.lifecycle=l.v.CONSTRUCTED}destroy(){this.lifecycle=l.v.DESTROYED,this.propertiesByName.forEach((e=>e.destroy()))}get initialized(){return this.lifecycle!==l.v.INITIALIZING}get(e){const t=this.propertiesByName.get(e);if(t.metadata.get)return t.getComputed(this);(0,g.gc)(t);const r=this.store;return r.has(e)?r.get(e):t.metadata.value}originOf(e){const t=this.store.originOf(e);if(void 0===t){const t=this.propertiesByName.get(e);if(void 0!==t&&t.flags&y.i.HasDefaultValue)return"defaults"}return(0,p.OL)(t)}has(e){return this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){const t=this.propertiesByName.get(e);if(_(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){const r=this.propertiesByName.get(e);_(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){const n=this.propertiesByName.get(t);if(!_(n))return"";const s=new Set,o=(0,g.a)({onObservableAccessed:e=>s.add(e),onTrackingEnd:()=>{}},(()=>n.metadata.get?.call(e)));let i=`${r}${e.declaredClass.split(".").pop()}.${t}: ${o}\n`;if(0===s.size)return i;r+=" ";for(const e of s)e instanceof b&&(i+=`${r}${e.propertyName}: undefined\n`);return i}setAtOrigin(e,t,r){const n=this.propertiesByName.get(e);if(_(n))return this._setAtOrigin(n,t,r)}isOverridden(e){const t=this.propertiesByName.get(e);return void 0!==t&&!!(t.flags&y.i.Overridden)}clearOverride(e){const t=this.propertiesByName.get(e);t&&t.flags&y.i.Overridden&&(t.flags&=~y.i.Overridden,t.notifyChange())}override(e,t){const r=this.propertiesByName.get(e);if(!v(r,0,t,this))return;const n=r.metadata.cast;if(n){const e=this._cast(n,t),{valid:r,value:s}=e;if(A.release(e),!r)return;t=s}r.flags|=y.i.Overridden,this._internalSet(r,t)}set(e,t){const r=this.propertiesByName.get(e);if(!v(r,0,t,this))return;const n=r.metadata.cast;if(n){const e=this._cast(n,t),{valid:r,value:s}=e;if(A.release(e),!r)return;t=s}const s=r.metadata.set;s?s.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,p.aB)(e)}getDefaultOrigin(){return(0,p.OL)(this._origin)}notifyChange(e){const t=this.propertiesByName.get(e);void 0!==t&&t.notifyChange()}invalidate(e){const t=this.propertiesByName.get(e);void 0!==t&&t.invalidate()}commit(e){const t=this.propertiesByName.get(e);void 0!==t&&t.commit()}_internalSet(e,t){const r=this.lifecycle!==l.v.INITIALIZING?this._origin:p.Gr.DEFAULTS;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){const n=this.store,s=e.propertyName;n.has(s,r)&&(0,f.aI)(t,n.get(s))&&~e.flags&y.i.Overridden&&r===n.originOf(s)||(e.invalidate(),n.set(s,t,r),e.commit(),(0,g.fE)(this.host,e))}_cast(e,t){const r=A.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}const A=new d.A(class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}});var O=r(47821);var k;!function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"}(k||(k={}));var S,E,T=r(14012),N=r(10107),j=r(40608);function C(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 P=Symbol("Accessor-Handles"),I=Symbol("Accessor-Initialized");class M{static createSubclass(e={}){if(Array.isArray(e))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:t,declaredClass:r,constructor:n}=e;delete e.declaredClass,delete e.properties,delete e.constructor;const s=this;class o extends s{constructor(...e){super(...e),this.inherited=null,n&&n.apply(this,e)}}(0,u.tD)(o.prototype);for(const t in e){const r=e[t];o.prototype[t]="function"==typeof r?function(...e){const n=this.inherited;let o;this.inherited=function(...e){if(s.prototype[t])return s.prototype[t].apply(this,e)};try{o=r.apply(this,e)}catch(e){throw this.inherited=n,e}return this.inherited=n,o}:e[t]}for(const e in t){const r=C(t[e]);(0,N.MZ)(r)(o.prototype,e)}return(0,j.$)(r)(o)}constructor(...e){if(this[S]=null,this[E]=!1,this.constructor===M)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const t=new w(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&this.normalizeCtorArgs&&(t.ctorArgs=this.normalizeCtorArgs.apply(this,e))}postscript(e){const t=this.__accessor__,r=t.ctorArgs||e;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[I]=!0}initialize(){}[a.G](){this[P]=(0,i.pR)(this[P])}destroy(){this.destroyed||((0,T.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===l.v.DESTROYED||!1}commitProperty(e){(0,c.Jt)(this,e)}get(e){return(0,n.eO)(o.A.getLogger(this),"`Accessor.get` is deprecated in favor of using optional chaining",{version:"4.28",see:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining"}),(0,c.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,O.h)(this,e,t),this}watch(e,t,r){return(0,T.wB)(this,e,t,r)}addHandles(e,t){if(this.destroyed){const t=Array.isArray(e)?e:[e];for(const e of t)e.remove();return}let r=this[P];null==r&&(r=this[P]=new s.A),r.add(e,t)}removeHandles(e){const t=this[P];null!=t&&t.remove(e)}removeAllHandles(){const e=this[P];null!=e&&e.removeAll()}hasHandles(e){const t=this[P];return null!=t&&t.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}}S=P,E=I},98291:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(93687);function s(e){e.length=0}class o{constructor(e=50,t=50){this._pool=new n.A(Array,void 0,s,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return i.acquire()}static release(e){return i.release(e)}static prune(){i.prune()}}const i=new o(100)},49186:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(4718),s=r(53966),o=r(79907);class i extends o.A{constructor(e,t,r){super(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}})))}}catch(e){throw s.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},71511:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(5479);class s{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,n.xZ)(e)){const r=this._getOrCreateGroup(t);for(const 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{const r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(o(e))}remove(e){if("string"!=typeof e&&(0,n.xZ)(e)){for(const t of e)this.remove(t);return this}return this.has(e)?(i(this._getGroup(e)),this._groups.delete(o(e)),this):this}removeAll(){return this._groups.forEach(i),this._groups.clear(),this}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(o(e),t),t}_getGroup(e){return this._groups.get(o(e))}}function o(e){return e||"_default_"}function i(e){for(const t of e)t instanceof s?t.removeAll():t.remove()}function a(e){return null!=e&&(!!e.remove||e instanceof s)}},25482:(e,t,r)=>{"use strict";r.d(t,{oY:()=>b,Te:()=>p,Wj:()=>y});var n=r(90237),s=r(69622),o=r(4718),i=r(35666);class a{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new a;return this._values.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,o.o8)(r.value),r.origin)})),t}get(e,t){t=this._normalizeOrigin(t);const r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??i.Gr.USER}keys(e){e=this._normalizeOrigin(e);const t=[...this._values.keys()];return null==e?t:t.filter((t=>this._values.get(t)?.origin===e))}set(e,t,r){if((r=this._normalizeOrigin(r))===i.Gr.DEFAULTS){const t=this._values.get(e);if(null!=t?.origin&&t.origin>r)return}this._values.set(e,new c(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.get(e)?.origin===t:this._values.has(e)}forEach(e){this._values.forEach((({value:t},r)=>e(t,r)))}_normalizeOrigin(e){if(null!=e)return e===i.Gr.DEFAULTS?e:i.Gr.USER}}class c{constructor(e,t){this.value=e,this.origin=t}}var l=r(76953),u=r(45917),f=r(88620),d=r(49422),h=r(40608);const p=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,f.oY)(this),r=t.store,n=new a;t.store=n,(0,l.k)(t,r,n)}read(e,t){(0,u.L)(this,e,t)}write(e,t){return(0,d.M)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return g.call(this,e,t)}};return t=(0,n._)([(0,h.$)("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function g(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const r=new this;return r.read(e,t),r}function y(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}let b=class extends(p(s.A)){};b=(0,n._)([(0,h.$)("esri.core.JSONSupport")],b)},53966:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(92602),s=(r(44208),r(799));const o={info:0,warn:1,error:2,none:3};class i{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,i._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get test(){return{resetLoggers(e=new Map){const t=i._loggers;return i._loggers=e,t},set throttlingDisabled(e){i._throttlingDisabled=e}}}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,i._loggers.get(e)||new i({module:e})}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!i._throttlingDisabled){const n=function(...e){return(0,s.Wm)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",a)}_matchLevel(e){const t=n.A.log.level||"warn";return o[this._parentWithMember("level",t)]<=o[e]}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then((()=>{i._tickCounter++,i._tickCounterScheduled=!1})))}}function a(e,t,...r){console[e](`[${t}]`,...r)}i._loggers=new Map,i._tickCounter=0,i._tickCounterScheduled=!1,i._throttlingDisabled=!1},91869:(e,t,r)=>{"use strict";function n(e,t,r){const n=e.get(t);if(void 0!==n)return n;const s=r();return e.set(t,s),s}function s(e){const t=new Map;return r=>(t.has(r)||t.set(r,e(r)),t.get(r))}r.d(t,{Bj:()=>s,tE:()=>n})},79907:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(93637);class s{constructor(e,t,r){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString()))}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},93687:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e,t,r,n=1,s=0){if(this._ctor=e,this._acquireFunction=t,this._releaseFunction=r,this.allocationSize=n,this._pool=new Array(s),this._initialSize=s,this._ctor)for(let e=0;e<s;e++)this._pool[e]=new this._ctor;this.allocationSize=Math.max(n,1)}destroy(){this.prune(0)}acquire(...e){let t;if(n.test.disabled)t=new this._ctor;else{if(0===this._pool.length){const e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=new this._ctor}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&&!n.test.disabled&&(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){const e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&"function"==typeof e.dispose&&e.dispose()}}n.test={disabled:!1}},61604:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e,t=30){this.name=e,this._counter=0,this._samples=new Array(t)}record(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]}}},3694:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n,s=r(4576);!function(e){const t=(e,t,r,n)=>{let s=t,o=t;const i=r>>>1,a=e[s-1];for(;o<=i;){o=s<<1,o<r&&n(e[o-1],e[o])<0&&++o;const t=e[o-1];if(n(t,a)<=0)break;e[s-1]=t,s=o}e[s-1]=a},r=(e,t)=>e<t?-1:e>t?1:0;e.sort=function(e,n,s,o){void 0===n&&(n=0),void 0===s&&(s=e.length),void 0===o&&(o=r);for(let r=s>>>1;r>n;r--)t(e,r,s,o);const i=n+1;for(let r=s-1;r>n;r--){const s=e[n];e[n]=e[r],e[r]=s,t(e,i,r,o)}},e.iterableSort=function*(e,n,s,o){void 0===n&&(n=0),void 0===s&&(s=e.length),void 0===o&&(o=r);for(let r=s>>>1;r>n;r--)t(e,r,s,o),yield;const i=n+1;for(let r=s-1;r>n;r--){const s=e[n];e[n]=e[r],e[r]=s,t(e,i,r,o),yield}}}(n||(n={}));const o=n;class i{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new s.vW,e&&(e.initialSize&&(this.data=new Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),void 0!==e.deallocator&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>a(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){const t=new Array;for(let r=0;r<this._length;r++){const n=this.data[r];e(n)&&t.push(n)}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){const 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]}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]));const e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,a(this)}pop(){if(0===this.length)return;const e=this.data[this.length-1];return this.length=this.length-1,this._shrink(),e}remove(e){const t=(0,s.qh)(this.data,e,this.length,this._hint);if(-1!==t)return this.data.splice(t,1),this.length=this.length-1,e}removeUnordered(e){return this.removeUnorderedIndex((0,s.qh)(this.data,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,s.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;const r=this.data[e];this.data[e]=this.data[t],this.data[t]=r}sort(e){o.sort(this.data,0,this.length,e)}iterableSort(e){return o.iterableSort(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){for(let r=0;r<this.length;++r){const n=this.data[r];if(e.call(t,n,r))return n}}filterInPlace(e,t){let r=0;for(let n=0;n<this._length;++n){const s=this.data[n];e.call(t,s,n,this.data)&&(this.data[n]=this.data[r],this.data[r]=s,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){const{data:r,length:n}=this;for(let s=0;s<n;++s)e.call(t,r[s],s,r)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){const r=new Array(this.length);for(let n=0;n<this.length;++n)r[n]=e.call(t,this.data[n],n,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){const t=this.length,r=this.data;for(let n=0;n<t;++n)if(r[n]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;e++)yield this.data[e]}}function a(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(1.1*e.length))}},87811:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67076:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(79907);class s extends n.A{constructor(e,t,r){super(e,t,r)}}s.prototype.type="warning"},11406:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(36563),s=r(4576);class o{constructor(e,t){this._observers=e,this._observer=t}remove(){(0,s.TF)(this._observers,this._observer)}}class i{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return a;null==this._observers&&(this._observers=[]);const t=this._observers;let r=!1,n=!1;const s=t.length;for(let o=0;o<s;++o){const s=t[o];if(s.destroyed)n=!0;else if(s===e){r=!0;break}}return r||(t.push(e),n&&this._removeDestroyedObservers()),new o(t,e)}_removeDestroyedObservers(){const e=this._observers;if(!e||0===e.length)return;const t=e.length;let r=0;for(let n=0;n<t;++n){for(;n+r<t&&e[n+r].destroyed;)++r;if(r>0){if(!(n+r<t))break;e[n]=e[n+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this._observers;if(null!=e){for(const t of e)t.onCommitted();this._observers=null}}}const a=(0,n.hA)()},35666:(e,t,r)=>{"use strict";var n;r.d(t,{AU:()=>s,Gr:()=>n,OL:()=>i,aB:()=>o,in:()=>a}),function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"}(n||(n={}));const s=n.USER+1;function o(e){switch(e){case"defaults":return n.DEFAULTS;case"service":return n.SERVICE;case"portal-item":return n.PORTAL_ITEM;case"web-scene":return n.WEB_SCENE;case"web-map":return n.WEB_MAP;case"link-chart":return n.LINK_CHART;case"user":return n.USER;default:return null}}function i(e){switch(e){case n.DEFAULTS:return"defaults";case n.SERVICE:return"service";case n.PORTAL_ITEM:return"portal-item";case n.WEB_SCENE:return"web-scene";case n.WEB_MAP:return"web-map";case n.LINK_CHART:return"link-chart";case n.USER:return"user"}}function a(e){return i(e)}},56454:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});const n=Symbol("Accessor-beforeDestroy")},10107:(e,t,r)=>{"use strict";r.d(t,{MZ:()=>c,Qp:()=>u,rM:()=>l});var n=r(53966),s=r(56507),o=r(16649),i=r(96156),a=r(47821);function c(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);const c=Object.getOwnPropertyDescriptor(t,r),l=(0,i.z4)(t,r);c&&(c.get||c.set?(l.get=c.get||l.get,l.set=c.set||l.set):"value"in c&&("value"in e&&n.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),l.value=e.value=c.value)),null!=e.readOnly&&(l.readOnly=e.readOnly);const f=e.aliasOf;if(f){const e="string"==typeof f?f:f.source,t="string"==typeof f?null:!0===f.overridable;let n;l.dependsOn=[e],l.get=function(){let t=(0,o.Jt)(this,e);if("function"==typeof t){n||(n=e.split(".").slice(0,-1).join("."));const r=(0,o.Jt)(this,n);r&&(t=t.bind(r))}return t},l.readOnly||(l.set=t?function(e){this._override(r,e)}:function(t){(0,a.h)(this,e,t)})}const d=e.type,h=e.types;l.cast||(d?l.cast=function(e){let t=0,r=e;if((0,s.Zu)(e))return(0,s.Nd)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;const n=r;if((0,s.EK)(n))return 0===t?(0,s.MB)(n):(0,s._e)((0,s.MB)(n),t);if(1===t)return(0,s.eC)(n);if(t>1)return(0,s.e6)(n,t);const o=e;return o.from?o.from:(0,s.dp)(o)}(d):h&&(Array.isArray(h)?l.cast=(0,s.wB)((0,s.aq)(h[0])):l.cast=(0,s.aq)(h))),(0,i.CX)(l,e),e.range&&(l.cast=u(l.cast,e.range))}}function l(e,t,r){const n=(0,i.z4)(e,r);n.json||(n.json={});let s=n.json;return void 0!==t&&(s.origins||(s.origins={}),s.origins[t]||(s.origins[t]={}),s=s.origins[t]),s}function u(e,t){return r=>{let n=+e(r);return null!=t.step&&(n=Math.round(n/t.step)*t.step),null!=t.min&&(n=Math.max(t.min,n)),null!=t.max&&(n=Math.min(t.max,n)),n}}},40608:(e,t,r)=>{"use strict";r.d(t,{$:()=>f}),r(44208);var n=r(53966),s=r(56454),o=r(45873),i=r(96156),a=r(62788),c=r(51822);const l=new Set,u=new Set;function f(e){return t=>{e??="esri.core.Accessor",t.prototype.declaredClass=e,h(t);const r=[],n=[];let o=t.prototype;for(;o;)o.hasOwnProperty("initialize")&&!l.has(o.initialize)&&(l.add(o.initialize),r.push(o.initialize)),o.hasOwnProperty("destroy")&&!u.has(o.destroy)&&(u.add(o.destroy),n.push(o.destroy)),o=Object.getPrototypeOf(o);l.clear(),u.clear();const a=class extends t{constructor(...e){if(super(...e),this.constructor===a&&"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)}}),n.length){let e=!1;const t=this[s.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){e=!0,t.call(this);for(let e=0;e<n.length;e++)n[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript(...e)}}};a.__accessorMetadata__=(0,i.tD)(t.prototype),a.prototype.declaredClass=e;const c=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(a,"name",{value:c,configurable:!0}),a}}function d(e,t){return null==t.get?function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0===r)return;(0,a.gc)(r);const n=t.store;return n.has(e)?n.get(e):r.metadata.value}:function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0!==r)return r.getComputed(t)}}function h(e){const t=e.prototype,r=(0,i.tD)(t),n={};for(const e of Object.getOwnPropertyNames(r)){const t=r[e];(0,c.qk)(t),n[e]={enumerable:!0,configurable:!0,get:d(e,t),set(r){const n=this.__accessor__;if(void 0!==n){if(!Object.isFrozen(this))return n.initialized&&t.readOnly?p("read-only",e):n.lifecycle===o.v.CONSTRUCTED&&t.constructOnly?p("construct-only",e):void n.set(e,r)}else Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:r})}}}Object.defineProperties(e.prototype,n)}const p=(e,t)=>{n.A.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}},76953:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var n=r(35666);function s(e,t,r){t.keys().forEach((e=>{r.set(e,t.get(e),n.Gr.DEFAULTS)}));const s=e.metadata;Object.keys(s).forEach((t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),n.Gr.DEFAULTS)}))}},56507:(e,t,r)=>{"use strict";r.d(t,{EK:()=>S,GB:()=>l,GX:()=>c,MB:()=>E,Nd:()=>P,PZ:()=>y,Vr:()=>u,Zu:()=>C,_e:()=>O,aq:()=>T,dp:()=>_,e6:()=>k,eC:()=>w,gK:()=>j,jz:()=>N,wB:()=>v}),r(44208);var n=r(53966),s=r(91869);const o=()=>n.A.getLogger("esri.core.accessorSupport.ensureTypes");function i(e){return null==e?e:new Date(e)}function a(e){return null==e?e:!!e}function c(e){return null==e?e:e.toString()}function l(e){return null==e?e:(e=parseFloat(e),isNaN(e)?0:e)}function u(e){return null==e?e:Math.round(parseFloat(e))}function f(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function d(e,t){return null!=t&&e&&!(t instanceof e)}function h(e){return e&&"isCollection"in e}function p(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function g(e,t){return!!f(t)&&(o().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+b(e)+"'"),!0)}function y(e,t){return null==t?t:h(e)?function(e,t){if(!t?.constructor||!h(t.constructor))return g(e,t)?t:new e(t);const r=p(e.prototype.itemType),n=p(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(g(e,t),t):new e(t):t}(e,t):d(e,t)?g(e,t)?t:new e(t):t}function b(e){return e?.prototype?.declaredClass||"unknown"}const m=new WeakMap;function _(e,t){const r=function(e){switch(e){case Number:return l;case N:return u;case Boolean:return a;case String:return c;case Date:return i;default:return(0,s.tE)(m,e,(()=>y.bind(null,e)))}}(e);return 1===arguments.length?r:r(t)}function v(e,t,r){return 1===arguments.length?v.bind(null,e):t?Array.isArray(t)?t.map((t=>e(t,r))):[e(t,r)]:t}function w(e,t){return 1===arguments.length?v((t=>_(e,t))):v((t=>_(e,t)),t)}function A(e,t,r){return 0!==t&&Array.isArray(r)?r.map((r=>A(e,t-1,r))):e(r)}function O(e,t,r){if(2===arguments.length)return r=>O(e,t,r);if(!r)return r;r=A(e,t,r);let n=t,s=r;for(;n>0&&Array.isArray(s);)n--,s=s[0];if(void 0!==s)for(let e=0;e<n;e++)r=[r];return r}function k(e,t,r){return 2===arguments.length?O((t=>_(e,t)),t):O((t=>_(e,t)),t,r)}function S(e){return!!Array.isArray(e)&&!e.some((t=>{const r=typeof t;return!("string"===r||"number"===r||"function"===r&&e.length>1)}))}function E(e,t){if(2===arguments.length)return E(e).call(null,t);const r=new Set,n=e.filter((e=>"function"!=typeof e)),s=e.filter((e=>"function"==typeof e));for(const t of e)"string"!=typeof t&&"number"!=typeof t||r.add(t);let i=null,a=null;return(e,t)=>{if(null==e)return e;const c=typeof e,l="string"===c||"number"===c;return l&&(r.has(e)||s.some((e=>"string"===c&&e===String||"number"===c&&e===Number)))||"object"===c&&s.some((t=>!d(e,t)))?e:(l&&n.length?(i||(i=n.map((e=>"string"==typeof e?`'${e}'`:`${e}`)).join(", ")),o().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${i}`)):"object"==typeof e&&s.length?(a||(a=s.map((e=>b(e))).join(", ")),o().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${a}`)):o().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function T(e,t){if(2===arguments.length)return T(e).call(null,t);const r={},n=[],s=[];for(const t in e.typeMap){const o=e.typeMap[t];r[t]=_(o),n.push(b(o)),s.push(t)}const i=()=>`'${n.join("', '")}'`,a=()=>`'${s.join("', '")}'`,c="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!d(e.base,t))return t;if(null==t)return t;const n=c(t)||e.defaultKeyValue,s=r[n];if(!s)return o().error("Accessor#set",`Invalid property value, value needs to be one of ${i()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!d(e.typeMap[n],t))return t;if("string"==typeof e.key&&!f(t)){const r={};for(const n in t)n!==e.key&&(r[n]=t[n]);return s(r)}return s(t)}}class N{}const j={native:e=>({type:"native",value:e}),array:e=>({type:"array",value:e}),oneOf:e=>({type:"one-of",values:e})};function C(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function P(e){switch(e.type){case"native":return _(e.value);case"array":return v(P(e.value));case"one-of":return function(e){let t=null;return(r,n)=>M(r,e)?r:(null==t&&(t=I(e)),o().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}(e);default:return null}}function I(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case N:return"integer";case Date:return"date";default:return b(e.value)}case"array":return`array of ${I(e.value)}`;case"one-of":{const t=e.values.map((e=>I(e)));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function M(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case N:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some((e=>!M(e,t.value)));case"one-of":return t.values.some((t=>M(e,t)))}}},51822:(e,t,r)=>{"use strict";r.d(t,{xF:()=>u,N5:()=>f,k4:()=>d,qk:()=>b});var n=r(56507),s=r(90360);function o(e){if(e.json||(e.json={}),a(e.json),c(e.json),i(e.json),e.json.origins)for(const t in e.json.origins)a(e.json.origins[t]),c(e.json.origins[t]),i(e.json.origins[t]);return!0}function i(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 a(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 c(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 l=r(67124);function u(e,t){return h(e,"any",t?.origin)}function f(e,t){return h(e,"read",t?.origin)}function d(e,t){return h(e,"write",t?.origin)}function h(e,t,r){let n=e?.json;if(n?.origins&&r){let e;e="link-chart"===r?n.origins[r]&&("any"===t||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],e&&("any"===t||t in e)&&(n=e)}return n}function p(e){return e.type?g(e):y(e)}function g(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!(0,n.EK)(r);)r=r[0],t++;return{type:r,ndimArray:t}}function y(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 b(e){o(e)&&(function(e){if(e.json&&e.json.origins){const t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(const e in r)if(t[e]){const n=t[e];r[e].forEach((e=>{t[e]=n})),delete t[e]}}}(e),function(e){const t=function(e){return e.json.types?y(e.json):e.type?g(e):y(e)}(e);if(e.json.origins)for(const r in e.json.origins){const n=e.json.origins[r],o=n.types?p(n):t;(0,s.v)(o,n,!1),n.types&&!n.write&&e.json.write&&e.json.write.enabled&&(n.write={...e.json.write}),(0,l.v)(o,n)}(0,s.v)(t,e.json,!0),(0,l.v)(t,e.json)}(e))}},90360:(e,t,r)=>{"use strict";r.d(t,{C:()=>u,v:()=>l});var n=r(53966),s=r(93637),o=r(67076),i=r(96156),a=r(15903);const c=()=>n.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function l(e,t,r){e&&(!r&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?y(e.types):g(e.type)}(e)&&(0,s.sM)("read.reader",u(e),t))}function u(e){const t=e.ndimArray??0;if(t>1)return function(e){const t=f(e),r=d.bind(null,t),n=e.ndimArray??0;return(e,t,s)=>{if(null==e)return e;e=r(e,s,n);let o=n,i=e;for(;o>0&&Array.isArray(i);)o--,i=i[0];if(void 0!==i)for(let t=0;t<o;t++)e=[e];return e}}(e);if(1===t)return h(e);if("type"in e&&p(e.type)){const t=e.type.prototype?.itemType?.Type,r=h("function"==typeof t?{type:t}:{types:t});return(t,n,s)=>{const o=r(t,n,s);return o?new e.type(o):o}}return f(e)}function f(e){return"type"in e?function(e){return e.prototype.read?(t,r,n)=>{if(null==t)return t;const s=typeof t;if("object"!==s)return void c().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${s}'`);const o=new e;return o.read(t,n),o}:e.fromJSON}(e.type):function(e){let t=null;const r=e.errorContext??"type",n=e.validate;return(s,a,l)=>{if(null==s)return s;const u=typeof s;if("object"!==u)return void c().error(`Expected JSON value of type 'object' to deserialize, but got '${u}'`);t||(t=function(e){const t={};for(const r in e.typeMap){const n=e.typeMap[r],s=(0,i.tD)(n.prototype);if("function"==typeof e.key)continue;const o=s[e.key];if(!o)continue;o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]&&(t[o.json.type[0]]=n);const a=o.json?.write;if(!a?.writer){t[r]=n;continue}const c=a.target,l="string"==typeof c?c:e.key,u={};a.writer(r,u,l),u[l]&&(t[u[l]]=n)}return t}(e));const f=e.key;if("string"!=typeof f)return;const d=s[f],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){const e=`Type '${d||"unknown"}' is not supported`;return l?.messages&&s&&l.messages.push(new o.A(`${r}:unsupported`,e,{definition:s,context:l})),void c().error(e)}const p=new h;return p.read(s,l),n?n(p):p}}(e.types)}function d(e,t,r,n){return 0!==n&&Array.isArray(t)?t.map((t=>d(e,t,r,n-1))):e(t,void 0,r)}function h(e){const t=f(e);return(e,r,n)=>{if(null==e)return e;if(Array.isArray(e)){const r=[];for(const s of e){const e=t(s,void 0,n);void 0!==e&&r.push(e)}return r}const s=t(e,void 0,n);return void 0!==s?[s]:void 0}}function p(e){if(!(0,a.P)(e))return!1;const t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?g(t.Type):y(t.Type))}function g(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||p(e))}function y(e){for(const t in e.typeMap)if(!g(e.typeMap[t]))return!1;return!0}},15903:(e,t,r)=>{"use strict";function n(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(t,{P:()=>n})},67124:(e,t,r)=>{"use strict";r.d(t,{B:()=>f,v:()=>a});var n=r(49186),s=r(53966),o=r(93637),i=r(15903);function a(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;const r=e?.ndimArray??0;e&&(1===r||"type"in e&&(0,i.P)(e.type))?t.write.writer=d:r>1?t.write.writer=function(e){return(t,r,n,s)=>{let i;if(null===t)i=null;else{i=h(t,s,e);let r=e,n=i;for(;r>0&&Array.isArray(n);)r--,n=n[0];if(void 0!==n)for(let e=0;e<r;e++)i=[i]}(0,o.sM)(n,i,r)}}(r):t.types?Array.isArray(t.types)?t.write.writer=function(e){return(t,r,n,s)=>t&&Array.isArray(t)?l(t.filter((t=>c(t,e,s))),r,n,s):l(t,r,n,s)}(t.types[0]):t.write.writer=function(e){return(t,r,n,s)=>t?c(t,e,s)?l(t,r,n,s):void 0:l(t,r,n,s)}(t.types):t.write.writer=l}function c(e,t,r){for(const r in t.typeMap)if(e instanceof t.typeMap[r])return!0;if(r?.messages){const o=t.errorContext??"type",i=`Values of type '${("function"!=typeof t.key?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new n.A(`${o}:unsupported`,i,{definition:e,context:r})),s.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function l(e,t,r,n){(0,o.sM)(r,u(e,n),t)}function u(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?f(e):e}function f(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function d(e,t,r,n){let s;null===e?s=null:e&&"function"==typeof e.map?(s=e.map((e=>u(e,n))),"function"==typeof s.toArray&&(s=s.toArray())):s=[u(e,n)],(0,o.sM)(r,s,t)}function h(e,t,r){return 0!==r&&Array.isArray(e)?e.map((e=>h(e,t,r-1))):u(e,t)}},16649:(e,t,r)=>{"use strict";r.d(t,{Jt:()=>a,RP:()=>i,t2:()=>c});var n=r(88620);function s(e,t){const r="?"===e[e.length-1]?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const s=(0,n.oY)(t);return(0,n.yh)(s,r)?s.get(r):t[r]}function o(e,t,r){if(null==e)return e;const n=s(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:o(n,t,r+1)}function i(e,t,r=0){return"string"!=typeof t||t.includes(".")?o(e,(0,n.AH)(t),r):s(t,e)}function a(e,t){return i(e,t)}function c(e,t){return void 0!==i(t,e)}},45873:(e,t,r)=>{"use strict";var n;r.d(t,{v:()=>n}),function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"}(n||(n={}))},96156:(e,t,r)=>{"use strict";r.d(t,{CX:()=>a,tD:()=>o,z4:()=>i});var n=r(4718),s=r(88620);function o(e){let t=e.constructor.__accessorMetadata__;const r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(const e in t)t[e]=(0,n.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 i(e,t){const r=o(e);let n=r[t];return n||(n=r[t]={}),n}function a(e,t){return(0,s.h1)(e,t,l)}const c=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function l(e){return c.test(e)?"replace":"merge"}},45917:(e,t,r)=>{"use strict";r.d(t,{L:()=>u,t:()=>f});var n=r(16649),s=r(88620),o=r(51822);function i(e,t,r){if(!e?.read||!1===e.read.enabled||!e.read.source)return!1;const s=e.read.source;if("string"==typeof s){if(s===t)return!0;if(s.includes(".")&&0===s.indexOf(t)&&(0,n.t2)(s,r))return!0}else for(const e of s){if(e===t)return!0;if(e.includes(".")&&0===e.indexOf(t)&&(0,n.t2)(e,r))return!0}return!1}function a(e,t,r,n,s){let a=(0,o.N5)(t[r],s);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(const c of Object.getOwnPropertyNames(t))a=(0,o.N5)(t[c],s),i(a,r,n)&&(e[c]=!0)}function c(e,t,r,n){const s=r.metadata,i=(0,o.xF)(s[t],n),a=i?.default;if(void 0===a)return;const c="function"==typeof a?a.call(e,t,n):a;void 0!==c&&r.set(t,c)}const l={origin:"service"};function u(e,t,r=l){if(!t||"object"!=typeof t)return;const i=(0,s.oY)(e),u=i.metadata,f={};for(const e of Object.getOwnPropertyNames(t))a(f,u,e,t,r);i.setDefaultOrigin(r.origin);for(const s of Object.getOwnPropertyNames(f)){const a=(0,o.N5)(u[s],r).read,c=a?.source;let l;l=c&&"string"==typeof c?(0,n.RP)(t,c):t[s],a?.reader&&(l=a.reader.call(e,l,t,r)),void 0!==l&&i.set(s,l)}if(!r||!r.ignoreDefaults){i.setDefaultOrigin("defaults");for(const t of Object.getOwnPropertyNames(u))f[t]||c(e,t,i,r)}i.setDefaultOrigin("user")}function f(e,t,r,n=l){const s={...n,messages:[]};r(s),s.messages?.forEach((t=>{"warning"!==t.type||e.loaded?n?.messages&&n.messages.push(t):e.loadWarnings.push(t)}))}},47821:(e,t,r)=>{"use strict";r.d(t,{h:()=>i});var n=r(49186),s=r(44208),o=(r(53966),r(16649));function i(e,t,r){if(e&&t)if("object"==typeof t)for(const r of Object.getOwnPropertyNames(t))i(e,r,t[r]);else{if(t.includes(".")){const n=t.split("."),s=n.splice(-1,1)[0];return void i((0,o.Jt)(e,n),s,r)}const a=e.__accessor__;null!=a&&function(e,t){if((0,s.A)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,t))throw new n.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)=>{"use strict";r.d(t,{F_:()=>h,Xr:()=>_,a:()=>d,fE:()=>b,gc:()=>l}),r(44208);var n=r(53966),s=r(88620),o=r(47328);const i={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},a=[];let c=i;function l(e){c.onObservableAccessed(e)}let u=!1,f=!1;function d(e,t,r){if(u)return p(e,t,r);g(e);const n=t.call(r);return y(),n}function h(e,t){return d(i,e,t)}function p(e,t,r){const s=u;u=!0,g(e);let o=null;try{o=t.call(r)}catch(e){f&&n.A.getLogger("esri.core.accessorSupport.tracking").error(e)}return y(),u=s,o}function g(e){c=e,a.push(e)}function y(){const e=a.length;if(e>1){const t=a.pop();c=a[e-2],t.onTrackingEnd()}else if(1===e){const e=a.pop();c=i,e.onTrackingEnd()}else c=i}function b(e,t){if(t.flags&o.i.DepTrackingInitialized)return;const r=f;f=!1,t.flags&o.i.AutoTracked?p(t,t.metadata.get,e):_(e,t),f=r}const m=[];function _(e,t){t.flags&o.i.ExplicitlyTracking||(t.flags|=o.i.ExplicitlyTracking,p(t,(()=>{const r=t.metadata.dependsOn||m;for(const t of r)if("string"!=typeof t||t.includes(".")){const r=(0,s.AH)(t);for(let t=0,n=e;t<r.length&&null!=n&&"object"==typeof n;++t)n=v(n,r[t],t!==r.length-1)}else v(e,t,!1)})),t.flags&=~o.i.ExplicitlyTracking)}function v(e,t,r){const n="?"===t[t.length-1]?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){const t=parseInt(n,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}const o=(0,s.oY)(e);if(o){const t=o.propertiesByName.get(n);t&&(l(t),b(e,t))}return r?e[n]:void 0}},47328:(e,t,r)=>{"use strict";var n;r.d(t,{i:()=>n}),function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"}(n||(n={}))},71429:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});class n{constructor(e){this._accessed=[],this._handles=[],this._observerObject=new s(e),o.register(this,new WeakRef(this._observerObject),this)}destroy(){o.unregister(this._observerObject),this._accessed.length=0,this._observerObject?.destroy(),this.clear()}onObservableAccessed(e){const t=this._accessed;t.includes(e)||t.push(e)}onTrackingEnd(){const e=this._handles,t=this._accessed,r=this._observerObject;for(let n=0;n<t.length;++n)e.push(t[n].observe(r));t.length=0}clear(){const e=this._handles;for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}class s{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;const e=this._invalidCount;if(1===e)return this._invalidCount=0,void this._notify();this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=i}}const o=new FinalizationRegistry((e=>{e.deref()?.destroy()}));function i(){}},80559:(e,t,r)=>{"use strict";r.d(t,{Df:()=>l,fm:()=>u,mJ:()=>c});var n=r(36563),s=r(62788),o=r(71429);let i=!1;const a=[];function c(e,t){let r=new o.r((function n(){if(!r||c)return;if(i)return void f(n);const o=a;r.clear(),i=!0,c=!0,a=(0,s.a)(r,e),c=!1,i=!1,t(a,o),d()})),a=null,c=!1;return c=!0,a=(0,s.a)(r,e),c=!1,(0,n.hA)((function(){r&&(r.destroy(),r=null,a=null)}))}function l(e,t){let r=new o.r((function(){t(i,a)})),i=null;function a(){return r?(r.clear(),i=(0,s.a)(r,e),i):null}return a(),(0,n.hA)((function(){r&&(r.destroy(),r=null),i=null}))}function u(e){let t=new o.r((function n(){t&&!r&&(i?f(n):(t.clear(),i=!0,r=!0,(0,s.a)(t,e),r=!1,i=!1,d()))})),r=!1;return r=!0,(0,s.a)(t,e),r=!1,(0,n.hA)((function(){t&&(t.destroy(),t=null)}))}function f(e){a.includes(e)||a.unshift(e)}function d(){for(;a.length;)a.pop()()}},88620:(e,t,r)=>{"use strict";r.d(t,{AH:()=>l,h1:()=>a,oY:()=>o,qg:()=>f,yh:()=>i});var n=r(36563),s=r(4718);function o(e){return e.__accessor__??null}function i(e,t){return null!=e?.metadata?.[t]}function a(e,t,r){return c(e,t,r?{policy:r,path:""}:null)}function c(e,t,r){return t?Object.keys(t).reduce(((e,n)=>{const o=n;let i=null,a="merge";if(r&&(i=r.path?`${r.path}.${n}`:n,a=r.policy(i)),"replace"===a)return e[o]=t[o],e;if("replace-arrays"===a&&Array.isArray(e[o]))return e[o]=t[o],e;if(void 0===e[o])return e[o]=(0,s.o8)(t[o]),e;let l=e[o],u=t[o];if(l===u)return e;if(Array.isArray(u)||Array.isArray(e))l=l?Array.isArray(l)?e[o]=l.concat():e[o]=[l]:e[o]=[],u&&(Array.isArray(u)||(u=[u]),u.forEach((e=>{l.includes(e)||l.push(e)})));else if(u&&"object"==typeof u)if(r){const t=r.path;r.path=i,e[o]=c(l,u,r),r.path=t}else e[o]=c(l,u,null);else e.hasOwnProperty(n)&&!t.hasOwnProperty(n)||(e[o]=u);return e}),e||{}):e}function l(e){return Array.isArray(e)?e:e.split(".")}function u(e){return e.includes(",")?e.split(",").map((e=>e.trim())):[e.trim()]}function f(e,t,r,s){const o=function(e){if(Array.isArray(e)){const t=[];for(const r of e)t.push(...u(r));return t}return u(e)}(t);if(1!==o.length){const t=o.map((t=>s(e,t,r)));return(0,n.vE)(t)}return s(e,o[0],r)}},14012:(e,t,r)=>{"use strict";r.d(t,{iS:()=>A,wB:()=>E,Cn:()=>T});var n=r(98291),s=r(36563),o=r(4718),i=r(93687);class a extends i.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){const 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 c,l,u=r(11932),f=r(24326),d=r(16649),h=r(45873),p=r(80559),g=r(88620);(l=c||(c={}))[l.Untracked=0]="Untracked",l[l.Tracked=1]="Tracked";class y{constructor(){this.uid=(0,f.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 acquireUntracked(e,t,r,n,s){return this.pool.acquire(c.Untracked,e,t,r,n,s,o.aI)}static acquireTracked(e,t,r,n){return this.pool.acquire(c.Tracked,e,t,r,null,null,n)}notify(e,t){this.type===c.Untracked?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,n,s,o,i){this.uid=(0,f.c)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=n,this.target=s,this.path=o,this.equals=i}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,f.c)(),this.removed=!0}}y.pool=new a(y);const b=new n.A,m=new Set;let _;function v(e){m.delete(e),m.add(e),_||(_=(0,u._)(O))}function w(e){if(e.removed)return;const t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function A(e){for(const t of m.values())t.target===e&&(t.removed=!0)}function O(){let e=10;for(;_&&e--;){_=null;const e=k(),t=b.acquire();for(const r of e){const e=r.uid;w(r),e===r.uid&&r.removed&&t.push(r)}for(const e of m)e.removed&&(t.push(e),m.delete(e));for(const e of t)y.pool.release(e);b.release(t),b.release(e),S.forEach((e=>e()))}}function k(){const e=b.acquire();e.length=m.size;let t=0;for(const r of m)e[t]=r,++t;return m.clear(),e}const S=new Set;function E(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==h.v.DESTROYED?n?function(e,t,r){const n=(0,g.qg)(e,t,r,((e,t,r)=>{let s=!1;return(0,p.mJ)((()=>(0,d.RP)(e,t)),((i,a)=>{e.__accessor__.lifecycle!==h.v.DESTROYED?s||(s=!0,(0,o.aI)(a,i)||r.call(e,i,a,t,e),s=!1):n.remove()}))}));return n}(e,t,r):function(e,t,r){let n=(0,g.qg)(e,t,r,((e,t,r)=>{let o,i,a=(0,p.Df)((()=>(0,d.RP)(e,t)),((s,a)=>{e.__accessor__?.lifecycle===h.v.DESTROYED||o&&o.uid!==i?n.remove():(o||(o=y.acquireUntracked(s,r,a,e,t),i=o.uid),v(o))}));return(0,s.hA)((()=>{a.remove(),o&&(o.uid!==i||o.removed||(o.removed=!0,v(o)),o=null),n=a=null}))}));return n}(e,t,r):(0,s.hA)()}function T(e,t,r=!1,n=o.gh){return r?function(e,t,r){let n=!1;return(0,p.mJ)(e,((e,s)=>{n||(n=!0,r(s,e)||t(e,s),n=!1)}))}(e,t,n):function(e,t,r){let n,o,i=(0,p.Df)(e,((e,s)=>{n&&n.uid!==o?i.remove():(n||(n=y.acquireTracked(e,t,s,r),o=n.uid),v(n))}));return(0,s.hA)((()=>{i.remove(),n&&(n.uid!==o||n.removed||(n.removed=!0,v(n)),n=null),i=null}))}(e,t,n)}},49422:(e,t,r)=>{"use strict";r.d(t,{M:()=>h,R:()=>d});var n=r(4576),s=r(49186),o=r(53966),i=r(16649),a=r(35666),c=r(88620),l=r(51822);function u(e,t,r,n,s){const o={};return t.write?.writer?.call(e,n,o,r,s),o}function f(e,t,r,c,l,u){if(!c?.write)return!1;const f=(0,i.Jt)(e,r);if(!l&&c.write.overridePolicy){const t=c.write.overridePolicy.call(e,f,r,u??void 0);void 0!==t&&(l=t)}if(l||(l=c.write),!l||!1===l.enabled)return!1;if(l.layerContainerTypes&&u?.layerContainerType&&!l.layerContainerTypes.includes(u.layerContainerType))return!1;if((null===f&&!l.allowNull&&!l.writerEnsuresNonNull||void 0===f)&&l.isRequired){const t=new s.A("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&u?.messages?u.messages.push(t):t&&!u&&o.A.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===f||null===f&&!l.allowNull&&!l.writerEnsuresNonNull||!(l.alwaysWriteDefaults||t.store.multipleOriginsSupported&&t.store.originOf(r)!==a.Gr.DEFAULTS)&&function(e,t,r,s,o){const i=s.default;if(void 0===i)return!1;if(null!=s.defaultEquals)return s.defaultEquals(o);if("function"==typeof i){if(Array.isArray(o)){const s=i.call(e,t,r??void 0);return(0,n.aI)(s,o)}return!1}return i===o}(e,r,u,c,f)||!l.ignoreOrigin&&u?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,a.aB)(u.origin))}function d(e,t,r,n){const s=(0,c.oY)(e),o=s.metadata,i=(0,l.k4)(o[t],n);return!!i&&f(e,s,t,i,r,n)}function h(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,c.h1)(t,e.toJSON(r));const n=(0,c.oY)(e),s=n.metadata;for(const o in s){const d=(0,l.k4)(s[o],r);if(!f(e,n,o,d,void 0,r))continue;const h=(0,i.Jt)(e,o),p=u(e,d,d.write&&"string"==typeof d.write.target?d.write.target:o,h,r);Object.keys(p).length>0&&(t=(0,c.h1)(t,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then((()=>(0,c.h1)(t,p,(()=>"replace-arrays"))))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:(0,a.in)(n.store.originOf(o)),newOrigin:r.origin}))}return t}},4576:(e,t,r)=>{"use strict";r.d(t,{Ru:()=>m,TF:()=>b,Uk:()=>s,Xj:()=>c,Xy:()=>p,aI:()=>o,dY:()=>u,iv:()=>a,mW:()=>y,qh:()=>h,vW:()=>f,yo:()=>i});var n=r(87811);function s(e,t){for(let r=e.length-1;r>=0;r--){const n=e[r];if(t(n))return n}}function o(e,t,r){if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function i(e,t){let r=e.length!==t.length;r&&(e.length=t.length);for(let n=0;n<t.length;++n)e[n]!==t[n]&&(e[n]=t[n],r=!0);return r}function a(e,t,r){let n,s;return r?(n=t.filter((t=>!e.some((e=>r(e,t))))),s=e.filter((e=>!t.some((t=>r(t,e)))))):(n=t.filter((t=>!e.includes(t))),s=e.filter((e=>!t.includes(e)))),{added:n,removed:s}}function c(e){return e&&"number"==typeof e.length}const l=!!Array.prototype.fill;function u(e,t){if(l)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}class f{constructor(){this.last=0}}const d=new f;function h(e,t,r,n){n=n||d;const s=Math.max(0,n.last-10);for(let o=s;o<r;++o)if(e[o]===t)return n.last=o,o;const o=Math.min(s,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function p(e,t,r,n){const s=r??e.length,o=h(e,t,s,n);if(-1!==o)return e[o]=e[s-1],null==r&&e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,s,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);s=s||d;const i=Math.max(0,s.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function b(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function m(e,t){return null!=e}new n.A},86805:(e,t,r)=>{"use strict";function n(e){return 32+e.length}function s(){return 16}function o(e){if(!e)return 0;let t=l;for(const r in e)if(e.hasOwnProperty(r)){const s=e[r];switch(typeof s){case"string":t+=n(s);break;case"number":t+=16;break;case"boolean":t+=4}}return t}function i(e){if(!e)return 0;if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return 32+8*t;let r=u;for(let n=0;n<t;n++)r+=a(e[n]);return r}(e);let t=l;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e){switch(typeof e){case"object":return i(e);case"string":return n(e);case"number":return 16;case"boolean":return 4;default:return 8}}function c(e,t){return u+e.length*t}r.d(t,{eY:()=>o,f3:()=>s,iL:()=>i,zd:()=>c});const l=32,u=16},51447:(e,t,r)=>{"use strict";r.d(t,{Lx:()=>a,eO:()=>i,io:()=>c});var n=r(44208);const s=new WeakMap;function o(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=s.get(e);o||(o=new Set,s.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;c(e,"Function: "+(n?n+"::":"")+t+"()",r)}}function a(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;c(e,"Property: "+(n?n+"::":"")+t,r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:s,see:i,warnOnce:a}=r;let c=t;n&&(c+=`\n\t🛠️ Replacement: ${n}`),s&&(c+=`\n\t⚙️ Version: ${s}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),o(e,c,a)}}},37955:(e,t,r)=>{"use strict";r.d(t,{Oo:()=>a,on:()=>i,wb:()=>s});var n=r(36563);function s(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,s){if(Array.isArray(t)){const o=t.slice();for(const t of o)e.addEventListener(t,r,s);return(0,n.hA)((()=>{for(const t of o)e.removeEventListener(t,r,s)}))}return e.addEventListener(t,r,s),(0,n.hA)((()=>e.removeEventListener(t,r,s)))}(e,t,r):e.on(t,r)}function a(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=i(e,t,(t=>{n.remove(),r.call(e,t)}));return n}},36563:(e,t,r)=>{"use strict";r.d(t,{hA:()=>s,vE:()=>o});const n={remove:()=>{}};function s(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function o(e){return s((()=>function(e){e.forEach((e=>e?.remove()))}(e)))}},44208:(e,t,r)=>{"use strict";let n;function s(e){return"function"==typeof n[e]?n[e]=n[e](globalThis):n[e]}r.d(t,{A:()=>s}),n=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},s.add=(e,t,r,o)=>((o||void 0===n[e])&&(n[e]=t),r&&s(e)),s.cache=n,s.add("big-integer-warning-enabled",!0),s.add("esri-deprecation-warnings",!0),s.add("esri-tests-disable-screenshots",!1),s.add("esri-tests-use-full-window",!1),s.add("esri-tests-post-to-influx",!0),(()=>{s.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(s.add("host-browser",e),s.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),s.add("dom",e),s("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(s.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),s.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),s.add("khtml",r.includes("Konqueror")?n:void 0),s.add("edge",parseFloat(t.split("Edge/")[1])||void 0),s.add("opr",parseFloat(t.split("OPR/")[1])||void 0),s.add("webkit",!s("wp")&&!s("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),s.add("chrome",!s("edge")&&!s("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),s.add("android",!s("wp")&&parseFloat(t.split("Android ")[1])||void 0),s.add("safari",!r.includes("Safari")||s("wp")||s("chrome")||s("android")||s("edge")||s("opr")?void 0:parseFloat(r.split("Version/")[1])),s.add("mac",r.includes("Macintosh")),!s("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));s.add(e,n),s.add("ios",n)}s("webkit")||(!t.includes("Gecko")||s("wp")||s("khtml")||s("edge")||s.add("mozilla",n),s("mozilla")&&s.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&s.add("esri-mobile",t),r&&s.add("esri-iPhone",r),s.add("esri-geolocation",!!navigator.geolocation)}s.add("esri-wasm","WebAssembly"in globalThis),s.add("esri-performance-mode-frames-between-render",20),s.add("esri-force-performance-mode",!1),s.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),s.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),s.add("esri-atomics","Atomics"in globalThis),s.add("esri-workers","Worker"in globalThis),s.add("web-feat:cache","caches"in globalThis),s.add("esri-workers-arraybuffer-transfer",!s("safari")||Number(s("safari"))>=12),s.add("workers-pool-size",8),s.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),s.add("featurelayer-simplify-payload-size-factors",[1,1,4]),s.add("featurelayer-fast-triangulation-enabled",!0),s.add("featurelayer-animation-enabled",!0),s.add("featurelayer-snapshot-enabled",!0),s.add("featurelayer-snapshot-point-min-threshold",8e4),s.add("featurelayer-snapshot-point-max-threshold",4e5),s.add("featurelayer-snapshot-point-coverage",.1),s.add("featurelayer-query-max-depth",4),s.add("featurelayer-query-pausing-enabled",!1),s.add("hittest-2d-mobile-tolerance",3),s.add("hittest-2d-desktop-tolerance",1),s.add("hittest-2d-small-symbol-tolerance",3),s.add("hittest-2d-small-symbol-tolerance-threshold",3),s.add("featurelayer-advanced-symbols",!1),s.add("featurelayer-pbf",!0),s.add("featurelayer-pbf-statistics",!1),s.add("feature-layers-workers",!0),s.add("feature-polyline-generalization-factor",1),s.add("mapview-transitions-duration",200),s.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),s.add("mapserver-pbf-version-support",10.81),s.add("mapservice-popup-identify-max-tolerance",20),s("host-webworker")||s("host-browser")&&(s.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),s.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{s.add("esri-image-decode",!0,!0,!0)})).catch((()=>{s.add("esri-image-decode",!1,!0,!0)}))}return!1})),s.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},5479:(e,t,r)=>{"use strict";function n(e){const t=[];return function*(){yield*t;for(const r of e)t.push(r),yield r}}function s(e,t){for(const r of e)if(null!=r&&t(r))return r}function o(e){return null!=e&&"function"==typeof e[Symbol.iterator]}r.d(t,{I6:()=>s,PP:()=>n,xZ:()=>o})},4718:(e,t,r)=>{"use strict";r.d(t,{Nb:()=>c,TU:()=>a,aI:()=>h,gh:()=>p,o8:()=>i,oy:()=>o});var n=r(4576),s=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=d(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(u(e))return e.clone();const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function a(e){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const t=d(e);if(null!=t)return t;if(l(e)){let t=!0;const r=e.map((e=>{const r=a(e);return null!=e&&null==r&&(t=!1),r}));return t?r:null}if(c(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(!u(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const r of Object.getOwnPropertyNames(e)){const n=e[r],s=a(n);if(null!=n&&null==s)return null;t[r]=s}return t}return null}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function u(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function f(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){if((0,s.dz)(e)||(0,s.mg)(e)||(0,s.UR)(e)||(0,s.IY)(e)||(0,s.jq)(e)||(0,s._G)(e)||(0,s.XJ)(e)||(0,s.vZ)(e)||(0,s.aI)(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(i(r));return t}return null}function h(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function p(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!f(e)&&f(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768:(e,t,r)=>{"use strict";function n(e,t){if(null==e)throw new Error(t??"value is None")}function s(e){return e?.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function a(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function u(e,t){let r;return e.some(((e,n)=>(r=t(e,n),null!=r))),r??void 0}r.d(t,{CM:()=>l,DC:()=>a,Gz:()=>c,Lw:()=>n,Pb:()=>u,WD:()=>o,pR:()=>s,xt:()=>i})},26390:(e,t,r)=>{"use strict";r.d(t,{d:()=>s});const n=[];function s(e){n.push(e),1===n.length&&queueMicrotask((()=>{const e=n.slice();n.length=0;for(const t of e)t()}))}},93637:(e,t,r)=>{"use strict";r.d(t,{$N:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function s(e,t,r=!1){return c(e,t,r)}function o(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),s=n.pop(),o=a(n,!0,r);o&&s&&(o[s]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){return t?Object.keys(t).reduce(((e,s)=>{let o=e[s],i=t[s];return o===i?e:void 0===o?(e[s]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=o?Array.isArray(o)?e[s]=o.concat():e[s]=[o]:e[s]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{o.includes(e)||o.push(e)})):e[s]=i.concat())):i&&"object"==typeof i?e[s]=c(o,i,r):e.hasOwnProperty(s)&&!t.hasOwnProperty(s)||(e[s]=i),e)}),e||{}):e}},74887:(e,t,r)=>{"use strict";r.d(t,{Pl:()=>O,Ol:()=>A,nA:()=>w,NK:()=>l,Tw:()=>T,sg:()=>E,Lx:()=>v,QZ:()=>_,zf:()=>m,G4:()=>d,$X:()=>k,u7:()=>g,NY:()=>y,Mq:()=>f,QP:()=>h,Te:()=>u,jH:()=>p,NO:()=>N,z7:()=>S,qr:()=>b});var n=r(36563);const s=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return(0,n.hA)((()=>o.clearTimeout(r)))}});var o,i=r(49186),a=r(37955),c=(r(53966),r(97768));function l(e="Aborted"){return new i.A("AbortError",e)}function u(e,t="Aborted"){if(d(e))throw l(t)}function f(e){return e instanceof AbortSignal?e:e?.signal}function d(e){const t=f(e);return null!=t&&t.aborted}function h(e){if(m(e))throw e}function p(e){if(!m(e))throw e}function g(e,t){const r=f(e);if(null!=r){if(!r.aborted)return(0,a.Oo)(r,"abort",(()=>t()));t()}}function y(e,t){const r=f(e);if(null!=r)return u(r),(0,a.Oo)(r,"abort",(()=>t(l())))}function b(e,t){return null==f(t)?e:new Promise(((r,n)=>{let s=g(t,(()=>n(l())));const o=()=>{s=(0,c.xt)(s)};e.then(o,o),e.then(r,n)}))}function m(e){return"AbortError"===e?.name}async function _(e){try{return await e}catch(e){if(!m(e))throw e;return}}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map((t=>e[t])),n=await v(r),s={};return t.map(((e,t)=>s[e]=n[t])),s}const t=e;return Promise.allSettled(t).then((e=>Array.from(t,((t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))))}async function w(e){return(await Promise.allSettled(e)).filter((e=>"fulfilled"===e.status)).map((e=>e.value))}async function A(e){return(await Promise.allSettled(e)).filter((e=>"rejected"===e.status)).map((e=>e.reason))}function O(e,t=void 0,r){const n=new AbortController;return g(r,(()=>n.abort())),new Promise(((r,s)=>{let o=setTimeout((()=>{o=0,r(t)}),e);g(n,(()=>{o&&(clearTimeout(o),s(l()))}))}))}function k(e){return e&&"function"==typeof e.then}function S(e){return k(e)?e:Promise.resolve(e)}function E(e,t=-1){let r,n,s,o,i=null;const a=(...c)=>{if(r){n=c,o&&o.reject(l()),o=T();const e=o.promise;if(i){const e=i;i=null,e.abort()}return e}if(s=o||T(),o=null,t>0){const n=new AbortController;r=S(e(...c,n.signal));const s=r;O(t).then((()=>{r===s&&(o?n.abort():i=n)}))}else r=1,r=S(e(...c));const u=()=>{const e=n;n=s=r=i=null,null!=e&&a(...e)},f=r,d=s;return f.then(u,u),f.then(d.resolve,d.reject),d.promise};return a}function T(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>s.setTimeout((()=>n.reject(t)),e),n.promise=r,n}async function N(e){await Promise.resolve(),u(e)}},11932:(e,t,r)=>{"use strict";r.d(t,{_:()=>g,md:()=>w});var n=r(26390),s=r(61604),o=r(3694),i=r(74887),a=r(78659);class c{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let l=0;const u={time:(0,a.l5)(0),deltaTime:(0,a.l5)(0),elapsedFrameTime:(0,a.l5)(0),frameDuration:(0,a.l5)(0)},f=["prepare","preRender","render","postRender","update","finish"],d=[],h=new o.A,p={frameTasks:h,willDispatch:!1,clearFrameTasks:function(e=!1){h.forAll((e=>{e.removed=!0})),e&&_()},dispatch:v,executeFrameTasks:function(e){const t=(0,a.l5)(e-l);l=e;const r=1e3/60,n=Math.max(0,t-r);u.time=e,u.frameDuration=(0,a.l5)(r-n);for(let r=0;r<f.length;r++){const n=performance.now(),s=f[r];h.forAll((n=>{n.paused||n.removed||(0===r&&n.ticks++,n.phases[s]&&(u.elapsedFrameTime=(0,a.l5)(performance.now()-e),u.deltaTime=0===n.ticks?(0,a.l5)(0):t,n.phases[s]?.call(n,u)))})),A[r].record(performance.now()-n)}_(),O.record(performance.now()-e)},reschedule:function(){null!=y&&(cancelAnimationFrame(y),y=requestAnimationFrame(b))}};function g(e){const t=new c(e);return d.push(t),p.willDispatch||(p.willDispatch=!0,(0,n.d)(v)),t}let y=null;function b(){const e=performance.now();y=null,y=h.length>0?requestAnimationFrame(b):null,p.executeFrameTasks(e)}const m=new o.A;function _(){h.forAll((e=>{e.removed&&m.push(e)})),h.removeUnorderedMany(m.data,m.length),m.clear()}function v(){for(;d.length;){const e=d.shift();e.isActive&&e.callback()}p.willDispatch=!1}function w(e=1,t){const r=(0,i.Tw)(),s=()=>{(0,i.G4)(t)?r.reject((0,i.NK)()):0===e?r():(--e,(0,n.d)((()=>s())))};return s(),r.promise}const A=f.map((e=>new s.A(e))),O=new s.A("total")},799:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>a,HC:()=>i,Wm:()=>c,_e:()=>l});var n=r(93637);const s=/\{([^\}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(s,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function a(e,t){return e.replaceAll(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},78659:(e,t,r)=>{"use strict";function n(e){return e}function s(e){return 1e3*e}function o(e){return e}r.d(t,{Kp:()=>o,gr:()=>s,l5:()=>n})},34275:(e,t,r)=>{"use strict";r.d(t,{Ek:()=>g,IY:()=>c,JI:()=>m,UR:()=>a,XJ:()=>f,_G:()=>u,a3:()=>v,aI:()=>h,cy:()=>p,dk:()=>_,dz:()=>o,jq:()=>l,mg:()=>i,mw:()=>s,vZ:()=>d,y9:()=>b});var n=r(86805);function s(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function i(e){return"Uint8Array"===e?.constructor?.name}function a(e){return"Uint8ClampedArray"===e?.constructor?.name}function c(e){return"Int16Array"===e?.constructor?.name}function l(e){return"Uint16Array"===e?.constructor?.name}function u(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float32Array"===e?.constructor?.name}function h(e){return"Float64Array"===e?.constructor?.name}function p(e){return!("buffer"in e)}function g(...e){return e.reduce(((e,t)=>e+(t?p(t)?(0,n.zd)(t,(0,n.f3)()):t.byteLength+y:0)),0)}r(44208);const y=145,b=1024;function m(e){return h(e)||d(e)||u(e)||c(e)||o(e)}function _(e){return h(e)||d(e)}function v(e){return h(e)?179769e303:d(e)?3402823e32:f(e)?4294967295:l(e)?65535:i(e)||a(e)?255:u(e)?2147483647:c(e)?32767:o(e)?127:256}},24326:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});let n=0;function s(){return++n}},84952:(e,t,r)=>{"use strict";r.d(t,{$1:()=>Q,$z:()=>V,An:()=>T,BQ:()=>ie,DB:()=>Z,FL:()=>z,FX:()=>B,Hg:()=>re,IZ:()=>oe,Il:()=>pe,N9:()=>se,S8:()=>G,T1:()=>ye,UC:()=>ge,V1:()=>F,Xq:()=>S,Zo:()=>we,_0:()=>Oe,a6:()=>ve,b8:()=>D,e7:()=>he,fj:()=>H,gd:()=>E,lJ:()=>X,lM:()=>le,m3:()=>ce,nM:()=>de,oP:()=>K,oy:()=>$,r$:()=>te,rs:()=>_e,s0:()=>w,s2:()=>W,sC:()=>q,s_:()=>C,tk:()=>ne,ut:()=>U,w8:()=>Y,x0:()=>j,xw:()=>Ae,yM:()=>P,zf:()=>N,zi:()=>me,zs:()=>R});var n=r(92602),s=r(4576),o=r(49186),i=r(25482),a=r(53966),c=r(39131),l=r(26306);const u=()=>a.A.getLogger("esri.core.urlUtils"),f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",h=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,p=/^\s*http:/i,g=/^\s*https:/i,y=/^\s*file:/i,b=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,_=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),v=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class w{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(_);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(v),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const A={};let O=new w(n.A.applicationUrl);let k=function(){const e=O.path,t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${O.scheme}://${O.host}${null!=O.port?`:${O.port}`:""}${t}`}();const S=()=>O,E=()=>k;function T(e){if(!e)return null;const t={path:null,query:null},r=new w(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=N(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function N(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,s;t<0?(n=decodeURIComponent(e),s=""):(n=decodeURIComponent(e.slice(0,t)),s=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(s):r[n]=s}return r}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const s=encodeURIComponent(r)+"=",o=t?.[r];return o?s+encodeURIComponent(o(n)):Array.isArray(n)?n.map((e=>(0,i.Wj)(e)?s+encodeURIComponent(JSON.stringify(e)):s+encodeURIComponent(e))).join("&"):(0,i.Wj)(n)?s+encodeURIComponent(JSON.stringify(n)):s+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function C(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ce(e);const n=R(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw u().warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ue()&&(r=le(r)),T(r)}function P(e){const t=R(e);let r,n;if(t){const e=M(t.proxyUrl);r=e.path,n=e.query?N(e.query):null}if(r){const t=T(e);e=r+"?"+t.path;const s=j({...n,...t.query});s&&(e=`${e}?${s}`)}return e}const I={path:"",query:""};function M(e){const t=e.indexOf("?");return-1!==t?(I.path=e.slice(0,t),I.query=e.slice(t+1)):(I.path=e,I.query=null),I}function x(e){return(e=fe(e=pe(e=M(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:x(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix;let s=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;s=e;break}0===t.indexOf(n)&&(s=e+1)}return r.splice(s,0,t),s}function R(e){const t=f.proxyRules,r=x(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function D(e,t){if(!e||!t)return!1;e=L(e),t=L(t);const r=(0,c.p)(e),n=(0,c.p)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&B(e,t,!0)}function U(e,t){return e=L(e),t=L(t),fe(e)===fe(t)}function L(e){const t=(e=G(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function q(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=f.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function B(e,t,r=!1){if(!e||!t)return!1;const n=be(e),s=be(t);return!(!r&&n.scheme!==s.scheme)&&null!=n.host&&null!=s.host&&n.host.toLowerCase()===s.host.toLowerCase()&&n.port===s.port}function z(e){if("string"==typeof e){if(!K(e))return!0;e=be(e)}if(B(e,O))return!0;const t=f.trustedServers||[];for(let r=0;r<t.length;r++){const n=J(t[r]);for(let t=0;t<n.length;t++)if(B(e,n[t]))return!0}return!1}function J(e){return A[e]||(ae(e)||ie(e)?A[e]=[new w(W(e))]:A[e]=[new w(`http://${e}`),new w(`https://${e}`)]),A[e]}function W(e,t=k,r){return ie(e)?r&&r.preserveProtocolRelative?e:"http"===O.scheme&&O.authority===V(e).slice(2)?`http:${e}`:`https:${e}`:ae(e)?e:H("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=k,r){if(null==e||!K(e))return e;const n=G(e),s=n.toLowerCase(),o=G(t).toLowerCase().replace(/\/+$/,""),i=r?G(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==o.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(s,"/",s.indexOf("//")+2),l=-1;for(;s.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==s.length);)c=a(s,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function G(e){return function(e){const t=f.httpsDomains;if(!function(e){return null!=e&&p.test(e)||"http"===O.scheme&&ie(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),b.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===O.scheme&&n===O.authority&&!m.test(e)||(ue()&&n===O.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||ue()&&!R(e))&&(e=le(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=M(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=W(e=e.trim()))))}function H(...e){const t=e.filter(s.Ru);if(!t?.length)return;const r=[];if(K(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&y.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function V(e,t=!1){if(null==e||Y(e)||Z(e))return null;let r=e.indexOf("://");if(-1===r&&ie(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=fe(e,!0)),e}function K(e){return ie(e)||ae(e)}function Y(e){return null!=e&&"blob:"===e.slice(0,5)}function Z(e){return null!=e&&"data:"===e.slice(0,5)}function X(e){const t=te(e);return t&&t.isBase64?(0,l.M)(t.data):null}function Q(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,s]=t;return{mediaType:r,isBase64:!!n,data:s}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ne(e){return(await fetch(e)).blob()}function se(e){const t=X(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function oe(e,t){!function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}(e,t)}function ie(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ae(e){return null!=e&&h.test(e)}function ce(e){return null!=e&&g.test(e)||"https"===O.scheme&&ie(e)}function le(e){return ie(e)?`https:${e}`:e.replace(p,"https:")}function ue(){return"https"===O.scheme}function fe(e,t=!1){return ie(e)?e.slice(2):(e=e.replace(h,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function de(e){let t=0;if(K(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function he(e,t){if(!e)return"";const r=T(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(!t?.length)return n;const s=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(s,"")}function pe(e){return e.endsWith("/")?e:`${e}/`}function ge(e){return e.replace(/\/+$/,"")}function ye(e,t,r){if(!(t&&r&&e&&K(e)))return e;const n=e.indexOf("//"),s=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(s<0?e.length:s,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function be(e){return"string"==typeof e?new w(W(e)):(e.scheme||(e.scheme=O.scheme),e)}function me(e,t){const r=T(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function _e(e,t,r){const n=T(e),s=n.query||{};return s[t]=String(r),`${n.path}?${j(s)}`}function ve(e,t){if(!t)return e;const r=T(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const s=j(n);return s?`${r.path}?${s}`:r.path}function we(e){if(null==e)return null;const t=e.match(ke);return t?t[2]:null}function Ae(e){if(null==e)return null;const t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function Oe(e){return"string"==typeof e?te(e)??{data:e}:new Promise(((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)}))}const ke=/([^.]*)\.([^\/]*)$/},52268:(e,t,r)=>{"use strict";r.d(t,{L:()=>s});var n=r(8341);function s(e,t,r){return new Proxy({},{get:(s,o,i)=>(...s)=>{let i,a;const c=s[s.length-1];var l;"object"==typeof(l=c)&&!Array.isArray(l)&&null!=l&&("signal"in l||"transferList"in l||0===Object.keys(l).length)&&(i=c.signal,a=c.transferList,s.pop());const u=e.apply(t?`${t}.${o.toString()}`:o.toString(),s,{transferList:a,signal:i});return r?.ignoreConnectionErrors?(0,n.oV)(u):u}})}},61322:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(70333),s=r(49186),o=r(37955),i=r(36563),a=r(97768),c=r(74887),l=r(52268);const u={statsWorker:()=>Promise.all([r.e(6285),r.e(4996),r.e(8902),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(3009)]).then(r.bind(r,33009)),geometryEngineWorker:()=>Promise.all([r.e(9930),r.e(6387)]).then(r.bind(r,68887)),CSVSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(1207)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(3030),r.e(3099),r.e(5592)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(2603),r.e(3030),r.e(2324)]).then(r.bind(r,38419)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(893),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(8383)]).then(r.bind(r,11780)),GeoJSONSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(9576)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),MemorySourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(7510)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(4996),r.e(8902),r.e(4080),r.e(9748)]).then(r.bind(r,97367)),FeaturePipelineWorker:()=>Promise.all([r.e(6285),r.e(1874),r.e(7255),r.e(1956),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(893),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(9976),r.e(9423),r.e(8972),r.e(8220)]).then(r.bind(r,65744)),PointCloudWorker:()=>Promise.all([r.e(4996),r.e(2603),r.e(4873),r.e(4798)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(984),r.e(7139),r.e(5496)]).then(r.bind(r,82958)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2603),r.e(3030),r.e(3099),r.e(4587)]).then(r.bind(r,24587)),SceneLayerWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(2603),r.e(4873),r.e(347),r.e(2469),r.e(4801)]).then(r.bind(r,2060)),WFSSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(4322),r.e(3238)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(4996),r.e(8902),r.e(9976),r.e(8705),r.e(9423),r.e(3379)]).then(r.bind(r,11764)),Lyr3DWorker:()=>r.e(9234).then(r.bind(r,79234))};var f=r(8341),d=r(18357);const{CLOSE:h,ABORT:p,INVOKE:g,RESPONSE:y,OPEN_PORT:b,ON:m}=f.Go;class _{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===f.Go.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const s=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=s),v.clients.set(s,n),r.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}constructor(e,t,r){this._port=e,this._jobQueue=r,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new _((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:h}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new s.A(f.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,f.Jc)();return new Promise(((r,s)=>{if((0,c.G4)(n))return this._processWork(),void s((0,c.NK)());const l=(0,c.u7)(n,(()=>{const e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,a.xt)(e.abortHandle),this._post({type:p,jobId:i}),s((0,c.NK)()))})),u={resolve:r,reject:s,abortHandle:l,debugInfo:e};this._outJobs.set(i,u),this._post({type:g,jobId:i,methodName:e,abortable:null!=n},t,o)}))}createInvokeProxy(e,t){return(0,l.L)(this,e,t)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:f.Go.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)((()=>{r.port1.postMessage({type:f.Go.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}))}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._jobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:s}=e;this.apply(t,r,n).then((e=>s.resolve(e))).catch((e=>s.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,a.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null}_onMessage(e){null!=this._schedule?this._schedule((()=>this._processMessage(e,!0))):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,f.VI)(e);if(r)switch(r.type){case y:this._onResponseMessage(r);break;case g:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case p:this._onAbortMessage(r);break;case h:this._onCloseMessage();break;case b:this._onOpenPortMessage(r);break;case m:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:s}=e,o=s?new AbortController:null,i=this._inJobs;let a,l=this._client,u=l[t];try{if(!u&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],u=l[e[t+1]]}if("function"!=typeof u)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:o?o.signal:null}),a=u.apply(l,n)}catch(e){return void this._post({type:y,jobId:r,error:(0,f.mF)(e)})}(0,c.$X)(a)?(i.set(r,{controller:o,promise:a}),a.then((e=>{i.has(r)&&(i.delete(r),this._post({type:y,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,c.zf)(e)||this._post({type:y,jobId:r,error:(0,f.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:y,jobId:r},a)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,o.on)(e.port,"message",(e=>{const s=(0,f.VI)(e);s?.type===f.Go.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;const i=o.get(t);o.delete(t),this._processWork(),(0,a.xt)(i.abortHandle),r?i.reject(s.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,f.u1)(this._port,e,t,r)}}v.kernelInfo={buildDate:d.$,fullVersion:n.ol,revision:d.u},v.clients=new Map},8341:(e,t,r)=>{"use strict";r.d(t,{Go:()=>i,Jc:()=>l,T:()=>o,VI:()=>d,mF:()=>u,oV:()=>p,u1:()=>f});var n=r(44208),s=r(74887);const o="worker:port-closed";var i,a;(a=i||(i={}))[a.HANDSHAKE=0]="HANDSHAKE",a[a.OPEN=1]="OPEN",a[a.OPENED=2]="OPENED",a[a.RESPONSE=3]="RESPONSE",a[a.INVOKE=4]="INVOKE",a[a.ABORT=5]="ABORT",a[a.CLOSE=6]="CLOSE",a[a.OPEN_PORT=7]="OPEN_PORT",a[a.ON=8]="ON";let c=0;function l(){return c++}function u(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,s){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let o;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(o=h(r.transferList),t.data=r.result):(o=h(s),t.data=r),o){if((0,n.A)("ff"))for(const r of o)if("byteLength"in r&&r.byteLength>267386880){const r="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case i.INVOKE:throw r;case i.RESPONSE:return void f(e,{type:i.RESPONSE,jobId:t.jobId,error:u(r)})}}e.postMessage(t,o)}else e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function h(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e)));return t.length?t:null}async function p(e){try{return await e}catch(e){const t=e?.name===o;if(!(0,s.zf)(e)&&!t)throw e;return}}},70333:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>l,Y3:()=>u,id:()=>a,ol:()=>c,rE:()=>i});var n=r(44208),s=r(84952),o=r(18357);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const i="4.30";let a,c=i;function l(e){a=e}function u(e){const t=a?.findCredential(e);return t?.token?(0,s.rs)(e,"token",t.token):e}c=`4.30.0-next.${o.$}`,(0,n.A)("host-webworker")},39131:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,p:()=>o});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,s={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){const t=e?.match(n);if(!t)return null;const[,r,o,i]=t;if(!r)return null;let a=null,c=null,l=null;const{devext:u,qaext:f,www:d}=s;if(o)if(a=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qa":({customBaseUrl:c,portalHostname:l}=f);break;default:return null}else({customBaseUrl:c,portalHostname:l}=d);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qaext":({customBaseUrl:c,portalHostname:l}=f);break;case"www":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:a}}function i(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}},26306:(e,t,r)=>{"use strict";function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function s(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>s})},18357:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,u:()=>s});const n="20240308",s="ad6e7e0bf010831fadc999fa3d13779b74cc92fb"}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{146:"03ae0196aafcb6146f61",177:"13901677c9a53d6e814c",191:"090697a2a46210da2111",201:"0feee6447793bc42df9d",309:"e61a9d609a415027c0ec",347:"f0cd48d5f5f09ed01773",349:"198d74db9631a66bd850",369:"3871d2ecef5bcf6ac14f",382:"bfef87eb228c96004a4a",545:"523903a812624d0d6d06",710:"2d1ba4195ef39303f18a",806:"e966cccee47213423a98",820:"83d39f990223ca97a320",833:"1805a6e63a1bfe6950be",835:"d54500cf91321b705565",893:"9ecc225c87ba2637a298",951:"1fdbeb110fae52b96bb3",980:"37ccafc356b05c5069a3",984:"07f017d3af8051577cae",1053:"71bd94cc789a55910f92",1099:"cee492b97e841a6d4678",1109:"618393798d39655debf5",1132:"6cf429ec513941f4a4e1",1147:"84d01db908f7a866c5d1",1204:"7b0a047e2c9cb66c4317",1207:"50a7742a7e7f7eda5bee",1273:"a0ffd2e97d1f2fceae33",1277:"a8cdef83cbd7895b6e61",1346:"8d9e2d1b62cf4fd5697d",1384:"b3384b076fcdd24150fc",1405:"16da21e329db54ccf49b",1743:"933f56e7299a5844e367",1756:"c4eee7393f944ee80947",1874:"eb53c23110ba9ce1e687",1956:"758cacaad381bbca5d8a",2169:"85a1c34e826c02effb5d",2180:"f377671911800f9eac6a",2186:"d344e99dd999aaaabbe3",2194:"40c6f8dd21c0709c43e9",2209:"e78e92e024275eccea4e",2288:"a1978ae86e466020dd28",2324:"7a3a6bb83b03bbb3e1dc",2343:"d206f750dd2933c7e6b0",2390:"ab1b23decd5bae49155a",2432:"1c1dbbe33b6dd0263003",2439:"a787174b082755267aa7",2469:"6838c010828843223ef4",2472:"fd4ec788953d9776126f",2558:"5ee4f59a9b742ce114c7",2593:"15c20dc5a41b63547214",2603:"b6185ae51c0597914857",2731:"6b0baecbd35d26393dcf",2857:"7025dd8bf67178d7d9bc",2933:"b8ec3991daddacd2f7e3",2958:"236e0f5d5ac1a6ea1107",2980:"2801fa3eeb6511324632",3009:"76b5e8434565ca4affb9",3030:"34194ede2889e813bbcf",3049:"615edb84daad08678931",3069:"f1313389eeb7a2350db3",3091:"7705cece774716d21e63",3099:"7a588b836715a9c9c25f",3209:"2e62e34c85d8505c98f4",3238:"fc2a12f9e4068ab89628",3359:"ef19c4fabc3682fc7aa7",3379:"4e6091bf95d1042eecd2",3390:"b145b5410b4b3e1e4704",3448:"77e92ede846dcae674b7",3477:"366a2c843c348f42316b",3490:"cb9d1f24ebd4763412df",3492:"eeba69706900701fed92",3522:"16f1ede633a712a555a6",3526:"39ff4d571abbd2df5d5b",3543:"dd04b5b9ee73b28c5254",3561:"0ad628ba26fd1798ca9b",3600:"7b07f3bc68a54974cd03",3622:"17a33c1eca0f2908b1a1",3666:"e538d269ff6c79a8fd3b",3709:"f484d2a3deb3c60d7038",3755:"85d573c58a6b80c38c1d",3761:"ed9f1e669045f9031581",3874:"cd7f4783bbf761ec43d9",3920:"9326343d8d4a66b96b01",4012:"00abd5e431fd5f72b35b",4045:"ab2d4f6595abdefcc71f",4080:"4940479dd449e5dc2eed",4239:"bf041907bac8fae05c2b",4244:"899b4539e516f44c51af",4322:"2db2370d7588cd9969ad",4349:"182f94904b6eb611b886",4543:"4e9740f3955a8c45fb2d",4562:"4fd7960a0ab8fbd6507d",4587:"0272af5adbbd4482f50d",4591:"1f246954cbcee02522a2",4613:"7a5e8eb8ea826864c7da",4665:"6fa0abf415859f40ea6c",4784:"6c5ea910265d4f6a368d",4798:"6dbbfbaa37f4f6bf2120",4800:"4cce06bab32e9ab5033f",4801:"57c7c2c5885b46a951e1",4832:"49a715520999bbfab18d",4850:"678ffc061fe5dec51930",4873:"4e20931f6a5327a06b1d",4983:"3f8a37567bfa6976ca00",4996:"86fe8077986a991f0462",5028:"87c30b4dee17b4a1ecb5",5112:"ec3c06632caf9c61230e",5141:"22041e7989de952626e0",5165:"f46bc8e507d75d218ac7",5181:"f5a0f106d9edaddb83fa",5257:"5f40ed1ff37670b47bb6",5356:"be10d0b4ad5c0b4a1b2e",5367:"ac95efd57f7c1472698a",5394:"b58dd3f487fdff71500f",5399:"cac2e1fb4d15074f8b6e",5404:"f67f61afded4f4e21821",5494:"c018ce3935d5f1e60e3c",5496:"01fc139749c57bd59e21",5513:"ea7e4f72a5b65ecb1c23",5588:"6d72830b7ab67b427ac7",5592:"e678b2a0dc6c2824910a",5613:"7bba67d345da6eced804",5665:"4e4ad7ac43a72a2f88a1",5720:"2a13e83abd784389be7b",5771:"c8a91855222e50591a4f",5804:"46f6a190e3c943b44095",5856:"8b4304f47c6f060f793f",5899:"1ed6fba0d188f845eaa6",6052:"c16ed88e7733b1d31041",6184:"90c569353df5af9ed368",6187:"0008d178ba41307f7bb4",6247:"5c9e6d1a88fac48baf3a",6285:"aac4154d209bede7322a",6387:"947149f819e8278ec8c1",6591:"d0cf48abf951ae58ab15",6845:"8526061e12755d6ddfd1",6888:"6d34b96d73916fb237ba",7087:"c8634493442e8e1ce32b",7139:"bbedc4ff3d0aadbde16a",7202:"61d903fe9200dced54df",7251:"c2e21513c8cdc07138aa",7255:"73abe796d82ef4241070",7301:"a611e0543d4b4bb01f3c",7364:"ca44e35dae7c37a28bf6",7367:"d518a0adc3d88700235c",7510:"92fc6c48ff9f50a7351a",7559:"451555af283b32a10fef",7619:"c0217dde5ff4d6a4c14c",7656:"f99e1182db5090261fe0",7738:"6b6bbd969d21282b9936",7761:"4f284f85d4a446c1204a",7778:"8be0df498101438ff671",7784:"dccf636a7dfc548bcd75",7982:"36d697a3788b86f24588",8018:"5c6e109fa21aeb10da18",8096:"2a612d51c7be754dacaa",8220:"6b817d4b7ea08db6bfd6",8228:"f8dd749722ebb731d5f5",8383:"a1a557cbfb0aa915f81b",8392:"40eb89485beba79167e0",8438:"d8dc9be80a36f57144d5",8491:"86143534b2e35ede6819",8541:"1972e6be738a3b9289e8",8612:"2d60f3af5886b7dea9ee",8628:"187e056c251e69c9b5d2",8705:"589cee0b2c8c4314e752",8774:"c2573c1cb7c714435acc",8823:"138ac5fafff8492379e3",8902:"5c2091816c6c3f630c90",8961:"955d7a0c8b2cdabfa8a3",8972:"9fd907dad340454fb585",9013:"b226161c2ad448347689",9040:"0fab1cb76be1460fcba5",9062:"e038158e871e3803321a",9234:"771b95d28e1c9a14df64",9321:"3568168ee1c278a78550",9342:"caf7d005a55851ada1f9",9345:"79f36c3a2026c2f35fb0",9384:"5ebbad37a442d948ade1",9414:"e3d3684ab802fb89fa0f",9423:"913d09c0d6108eda0d99",9576:"5f5f6bba98e5671e63a7",9588:"a69e885336eb5d2729fd",9748:"b70be572d509557428f4",9755:"41cc7da9ce32febe6dd0",9838:"0281c669d63ff132337f",9930:"b20412f08361ba99f73e",9933:"8917f97888d1290f56d2",9940:"79c4f10da8360ee60cd2",9976:"25df870fff223ac54a9a"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[s,o,i]=t;for(var a in o)r.o(o,a)&&(r.m[a]=o[a]);for(i&&i(r);s.length;)e[s.pop()]=1;n(t)}})(),r(2131);var n=r(61322);RemoteClient=n})();
1
+ var RemoteClient;(()=>{var e={2131:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},90237:(e,t,r)=>{"use strict";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){return function(r,n){t(r,n,e)}}r.d(t,{_:()=>n,a:()=>s}),"function"==typeof SuppressedError&&SuppressedError},92602:(e,t,r)=>{"use strict";r.d(t,{A:()=>o}),r(44208);var n=r(93637),s=r(18357);const o={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(o,globalThis.esriConfig,!0),delete o.has),!o.assetsPath){{const e="4.30.0";o.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${s.$}/assets`}o.defaultAssetsPath=o.assetsPath}},69622:(e,t,r)=>{"use strict";r.d(t,{A:()=>M});var n=r(51447),s=r(71511),o=r(53966),i=r(97768),a=r(56454),c=r(16649),l=r(45873),u=r(96156),f=(r(44208),r(4718)),d=r(93687),h=r(11406),p=r(35666),g=r(62788),y=r(47328);class b extends h.T{constructor(e,t){super(),this.propertyName=e,this.metadata=t,this._accessed=null,this._handles=null,this.flags=0,this.flags=y.i.Dirty|(t.nonNullable?y.i.NonNullable:0)|(t.hasOwnProperty("value")?y.i.HasDefaultValue:0)|(void 0===t.get?y.i.DepTrackingInitialized:0)|(void 0===t.dependsOn?y.i.AutoTracked:0)}destroy(){this.flags&y.i.Dirty&&this.onCommitted(),super.destroy(),this._accessed=null,this._clearObservationHandles()}getComputed(e){(0,g.gc)(this);const t=e.store,r=this.propertyName,n=this.flags,s=t.get(r);if(n&y.i.Computing)return s;if(~n&y.i.Dirty&&t.has(r))return s;this.flags|=y.i.Computing;const o=e.host;let i;n&y.i.AutoTracked?i=(0,g.a)(this,this.metadata.get,o):((0,g.Xr)(o,this),i=this.metadata.get.call(o)),t.set(r,i,p.Gr.COMPUTED);const a=t.get(r);return a===s?this.flags&=~y.i.Dirty:(0,g.F_)(this.commit,this),this.flags&=~y.i.Computing,a}onObservableAccessed(e){if(e===this)return;let t=this._accessed;if(null==t)t=[],this._accessed=t;else if(t.includes(e))return;t.push(e)}onTrackingEnd(){this._clearObservationHandles(),this.flags|=y.i.DepTrackingInitialized;const e=this._accessed;if(null==e||0===e.length)return;let t=this._handles;null==t&&(t=[],this._handles=t);for(let r=0;r<e.length;++r)t.push(e[r].observe(this));e.length=0}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~y.i.Dirty,this.onCommitted()}_clearObservationHandles(){const e=this._handles;if(null!==e){for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}onInvalidated(){~this.flags&y.i.Overridden&&(this.flags|=y.i.Dirty);const e=this._observers;if(e&&e.length>0)for(const t of e)t.onInvalidated()}onCommitted(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onCommitted()}}}class m{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new m;return this._values.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,f.o8)(r))})),t}get(e){return this._values.get(e)}originOf(){return p.Gr.USER}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)}forEach(e){this._values.forEach(e)}}function _(e,t,r){return void 0!==e}function v(e,t,r,n){return!(void 0===e||null==r&&e.flags&y.i.NonNullable&&(n.lifecycle,l.v.INITIALIZING,1))}class w{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=l.v.INITIALIZING,this.store=new m,this._origin=p.Gr.USER;const t=this.host.constructor.__accessorMetadata__;for(const e in t){const r=new b(e,t[e]);this.propertiesByName.set(e,r)}this.metadata=t}initialize(){this.lifecycle=l.v.CONSTRUCTING}constructed(){this.lifecycle=l.v.CONSTRUCTED}destroy(){this.lifecycle=l.v.DESTROYED,this.propertiesByName.forEach((e=>e.destroy()))}get initialized(){return this.lifecycle!==l.v.INITIALIZING}get(e){const t=this.propertiesByName.get(e);if(t.metadata.get)return t.getComputed(this);(0,g.gc)(t);const r=this.store;return r.has(e)?r.get(e):t.metadata.value}originOf(e){const t=this.store.originOf(e);if(void 0===t){const t=this.propertiesByName.get(e);if(void 0!==t&&t.flags&y.i.HasDefaultValue)return"defaults"}return(0,p.OL)(t)}has(e){return this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){const t=this.propertiesByName.get(e);if(_(t))return this.store.has(e)?this.store.get(e):t.metadata.value}internalSet(e,t){const r=this.propertiesByName.get(e);_(r)&&this._internalSet(r,t)}getDependsInfo(e,t,r){const n=this.propertiesByName.get(t);if(!_(n))return"";const s=new Set,o=(0,g.a)({onObservableAccessed:e=>s.add(e),onTrackingEnd:()=>{}},(()=>n.metadata.get?.call(e)));let i=`${r}${e.declaredClass.split(".").pop()}.${t}: ${o}\n`;if(0===s.size)return i;r+=" ";for(const e of s)e instanceof b&&(i+=`${r}${e.propertyName}: undefined\n`);return i}setAtOrigin(e,t,r){const n=this.propertiesByName.get(e);if(_(n))return this._setAtOrigin(n,t,r)}isOverridden(e){const t=this.propertiesByName.get(e);return void 0!==t&&!!(t.flags&y.i.Overridden)}clearOverride(e){const t=this.propertiesByName.get(e);t&&t.flags&y.i.Overridden&&(t.flags&=~y.i.Overridden,t.notifyChange())}override(e,t){const r=this.propertiesByName.get(e);if(!v(r,0,t,this))return;const n=r.metadata.cast;if(n){const e=this._cast(n,t),{valid:r,value:s}=e;if(A.release(e),!r)return;t=s}r.flags|=y.i.Overridden,this._internalSet(r,t)}set(e,t){const r=this.propertiesByName.get(e);if(!v(r,0,t,this))return;const n=r.metadata.cast;if(n){const e=this._cast(n,t),{valid:r,value:s}=e;if(A.release(e),!r)return;t=s}const s=r.metadata.set;s?s.call(this.host,t):this._internalSet(r,t)}setDefaultOrigin(e){this._origin=(0,p.aB)(e)}getDefaultOrigin(){return(0,p.OL)(this._origin)}notifyChange(e){const t=this.propertiesByName.get(e);void 0!==t&&t.notifyChange()}invalidate(e){const t=this.propertiesByName.get(e);void 0!==t&&t.invalidate()}commit(e){const t=this.propertiesByName.get(e);void 0!==t&&t.commit()}_internalSet(e,t){const r=this.lifecycle!==l.v.INITIALIZING?this._origin:p.Gr.DEFAULTS;this._setAtOrigin(e,t,r)}_setAtOrigin(e,t,r){const n=this.store,s=e.propertyName;n.has(s,r)&&(0,f.aI)(t,n.get(s))&&~e.flags&y.i.Overridden&&r===n.originOf(s)||(e.invalidate(),n.set(s,t,r),e.commit(),(0,g.fE)(this.host,e))}_cast(e,t){const r=A.acquire();return r.valid=!0,r.value=t,e&&(r.value=e.call(this.host,t,r)),r}}const A=new d.A(class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}});var O=r(47821);var k;!function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"}(k||(k={}));var S,E,T=r(14012),N=r(10107),j=r(40608);function C(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 P=Symbol("Accessor-Handles"),I=Symbol("Accessor-Initialized");class M{static createSubclass(e={}){if(Array.isArray(e))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:t,declaredClass:r,constructor:n}=e;delete e.declaredClass,delete e.properties,delete e.constructor;const s=this;class o extends s{constructor(...e){super(...e),this.inherited=null,n&&n.apply(this,e)}}(0,u.tD)(o.prototype);for(const t in e){const r=e[t];o.prototype[t]="function"==typeof r?function(...e){const n=this.inherited;let o;this.inherited=function(...e){if(s.prototype[t])return s.prototype[t].apply(this,e)};try{o=r.apply(this,e)}catch(e){throw this.inherited=n,e}return this.inherited=n,o}:e[t]}for(const e in t){const r=C(t[e]);(0,N.MZ)(r)(o.prototype,e)}return(0,j.$)(r)(o)}constructor(...e){if(this[S]=null,this[E]=!1,this.constructor===M)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const t=new w(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:t}),e.length>0&&this.normalizeCtorArgs&&(t.ctorArgs=this.normalizeCtorArgs.apply(this,e))}postscript(e){const t=this.__accessor__,r=t.ctorArgs||e;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[I]=!0}initialize(){}[a.G](){this[P]=(0,i.pR)(this[P])}destroy(){this.destroyed||((0,T.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===l.v.DESTROYED||!1}commitProperty(e){(0,c.Jt)(this,e)}get(e){return(0,n.eO)(o.A.getLogger(this),"`Accessor.get` is deprecated in favor of using optional chaining",{version:"4.28",see:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining"}),(0,c.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,O.h)(this,e,t),this}watch(e,t,r){return(0,T.wB)(this,e,t,r)}addHandles(e,t){if(this.destroyed){const t=Array.isArray(e)?e:[e];for(const e of t)e.remove();return}let r=this[P];null==r&&(r=this[P]=new s.A),r.add(e,t)}removeHandles(e){const t=this[P];null!=t&&t.remove(e)}removeAllHandles(){const e=this[P];null!=e&&e.removeAll()}hasHandles(e){const t=this[P];return null!=t&&t.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}}S=P,E=I},98291:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(93687);function s(e){e.length=0}class o{constructor(e=50,t=50){this._pool=new n.A(Array,void 0,s,t,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return i.acquire()}static release(e){return i.release(e)}static prune(){i.prune()}}const i=new o(100)},49186:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(4718),s=r(53966),o=r(79907);class i extends o.A{constructor(e,t,r){super(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}})))}}catch(e){throw s.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},71511:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(5479);class s{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,n.xZ)(e)){const r=this._getOrCreateGroup(t);for(const 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{const r=this._getGroup(e);r&&t&&r.forEach(t)}}has(e){return this._groups.has(o(e))}remove(e){if("string"!=typeof e&&(0,n.xZ)(e)){for(const t of e)this.remove(t);return this}return this.has(e)?(i(this._getGroup(e)),this._groups.delete(o(e)),this):this}removeAll(){return this._groups.forEach(i),this._groups.clear(),this}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);const t=[];return this._groups.set(o(e),t),t}_getGroup(e){return this._groups.get(o(e))}}function o(e){return e||"_default_"}function i(e){for(const t of e)t instanceof s?t.removeAll():t.remove()}function a(e){return null!=e&&(!!e.remove||e instanceof s)}},25482:(e,t,r)=>{"use strict";r.d(t,{oY:()=>b,Te:()=>p,Wj:()=>y});var n=r(90237),s=r(69622),o=r(4718),i=r(35666);class a{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){const t=new a;return this._values.forEach(((r,n)=>{e&&e.has(n)||t.set(n,(0,o.o8)(r.value),r.origin)})),t}get(e,t){t=this._normalizeOrigin(t);const r=this._values.get(e);return null==t||r?.origin===t?r?.value:void 0}originOf(e){return this._values.get(e)?.origin??i.Gr.USER}keys(e){e=this._normalizeOrigin(e);const t=[...this._values.keys()];return null==e?t:t.filter((t=>this._values.get(t)?.origin===e))}set(e,t,r){if((r=this._normalizeOrigin(r))===i.Gr.DEFAULTS){const t=this._values.get(e);if(null!=t?.origin&&t.origin>r)return}this._values.set(e,new c(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.get(e)?.origin===t:this._values.has(e)}forEach(e){this._values.forEach((({value:t},r)=>e(t,r)))}_normalizeOrigin(e){if(null!=e)return e===i.Gr.DEFAULTS?e:i.Gr.USER}}class c{constructor(e,t){this.value=e,this.origin=t}}var l=r(76953),u=r(45917),f=r(88620),d=r(49422),h=r(40608);const p=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,f.oY)(this),r=t.store,n=new a;t.store=n,(0,l.k)(t,r,n)}read(e,t){(0,u.L)(this,e,t)}write(e,t){return(0,d.M)(this,e??{},t)}toJSON(e){return this.write({},e)}static fromJSON(e,t){return g.call(this,e,t)}};return t=(0,n._)([(0,h.$)("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function g(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const r=new this;return r.read(e,t),r}function y(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}let b=class extends(p(s.A)){};b=(0,n._)([(0,h.$)("esri.core.JSONSupport")],b)},53966:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(92602),s=(r(44208),r(799));const o={info:0,warn:1,error:2,none:3};class i{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,i._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get test(){return{resetLoggers(e=new Map){const t=i._loggers;return i._loggers=e,t},set throttlingDisabled(e){i._throttlingDisabled=e}}}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,i._loggers.get(e)||new i({module:e})}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!i._throttlingDisabled){const n=function(...e){return(0,s.Wm)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",a)}_matchLevel(e){const t=n.A.log.level||"warn";return o[this._parentWithMember("level",t)]<=o[e]}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then((()=>{i._tickCounter++,i._tickCounterScheduled=!1})))}}function a(e,t,...r){console[e](`[${t}]`,...r)}i._loggers=new Map,i._tickCounter=0,i._tickCounterScheduled=!1,i._throttlingDisabled=!1},91869:(e,t,r)=>{"use strict";function n(e,t,r){const n=e.get(t);if(void 0!==n)return n;const s=r();return e.set(t,s),s}function s(e){const t=new Map;return r=>(t.has(r)||t.set(r,e(r)),t.get(r))}r.d(t,{Bj:()=>s,tE:()=>n})},79907:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(93637);class s{constructor(e,t,r){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString()))}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},93687:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e,t,r,n=1,s=0){if(this._ctor=e,this._acquireFunction=t,this._releaseFunction=r,this.allocationSize=n,this._pool=new Array(s),this._initialSize=s,this._ctor)for(let e=0;e<s;e++)this._pool[e]=new this._ctor;this.allocationSize=Math.max(n,1)}destroy(){this.prune(0)}acquire(...e){let t;if(n.test.disabled)t=new this._ctor;else{if(0===this._pool.length){const e=this.allocationSize;for(let t=0;t<e;t++)this._pool[t]=new this._ctor}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&&!n.test.disabled&&(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){const e=this._pool[t];this._dispose(e)}this._pool.length=e}}_dispose(e){e.dispose&&"function"==typeof e.dispose&&e.dispose()}}n.test={disabled:!1}},61604:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e,t=30){this.name=e,this._counter=0,this._samples=new Array(t)}record(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]}}},3694:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n,s=r(4576);!function(e){const t=(e,t,r,n)=>{let s=t,o=t;const i=r>>>1,a=e[s-1];for(;o<=i;){o=s<<1,o<r&&n(e[o-1],e[o])<0&&++o;const t=e[o-1];if(n(t,a)<=0)break;e[s-1]=t,s=o}e[s-1]=a},r=(e,t)=>e<t?-1:e>t?1:0;e.sort=function(e,n,s,o){void 0===n&&(n=0),void 0===s&&(s=e.length),void 0===o&&(o=r);for(let r=s>>>1;r>n;r--)t(e,r,s,o);const i=n+1;for(let r=s-1;r>n;r--){const s=e[n];e[n]=e[r],e[r]=s,t(e,i,r,o)}},e.iterableSort=function*(e,n,s,o){void 0===n&&(n=0),void 0===s&&(s=e.length),void 0===o&&(o=r);for(let r=s>>>1;r>n;r--)t(e,r,s,o),yield;const i=n+1;for(let r=s-1;r>n;r--){const s=e[n];e[n]=e[r],e[r]=s,t(e,i,r,o),yield}}}(n||(n={}));const o=n;class i{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new s.vW,e&&(e.initialSize&&(this.data=new Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),void 0!==e.deallocator&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>a(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){const t=new Array;for(let r=0;r<this._length;r++){const n=this.data[r];e(n)&&t.push(n)}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){const 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]}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]));const e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,a(this)}pop(){if(0===this.length)return;const e=this.data[this.length-1];return this.length=this.length-1,this._shrink(),e}remove(e){const t=(0,s.qh)(this.data,e,this.length,this._hint);if(-1!==t)return this.data.splice(t,1),this.length=this.length-1,e}removeUnordered(e){return this.removeUnorderedIndex((0,s.qh)(this.data,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,s.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;const r=this.data[e];this.data[e]=this.data[t],this.data[t]=r}sort(e){o.sort(this.data,0,this.length,e)}iterableSort(e){return o.iterableSort(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){for(let r=0;r<this.length;++r){const n=this.data[r];if(e.call(t,n,r))return n}}filterInPlace(e,t){let r=0;for(let n=0;n<this._length;++n){const s=this.data[n];e.call(t,s,n,this.data)&&(this.data[n]=this.data[r],this.data[r]=s,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){const{data:r,length:n}=this;for(let s=0;s<n;++s)e.call(t,r[s],s,r)}forEach(e,t){this.data.slice(0,this.length).forEach(e,t)}map(e,t){const r=new Array(this.length);for(let n=0;n<this.length;++n)r[n]=e.call(t,this.data[n],n,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){const t=this.length,r=this.data;for(let n=0;n<t;++n)if(r[n]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;e++)yield this.data[e]}}function a(e){e.data.length>1.5*e.length&&(e.data.length=Math.floor(1.1*e.length))}},87811:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67076:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(79907);class s extends n.A{constructor(e,t,r){super(e,t,r)}}s.prototype.type="warning"},11406:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(36563),s=r(4576);class o{constructor(e,t){this._observers=e,this._observer=t}remove(){(0,s.TF)(this._observers,this._observer)}}class i{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return a;null==this._observers&&(this._observers=[]);const t=this._observers;let r=!1,n=!1;const s=t.length;for(let o=0;o<s;++o){const s=t[o];if(s.destroyed)n=!0;else if(s===e){r=!0;break}}return r||(t.push(e),n&&this._removeDestroyedObservers()),new o(t,e)}_removeDestroyedObservers(){const e=this._observers;if(!e||0===e.length)return;const t=e.length;let r=0;for(let n=0;n<t;++n){for(;n+r<t&&e[n+r].destroyed;)++r;if(r>0){if(!(n+r<t))break;e[n]=e[n+r]}}e.length=t-r}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this._observers;if(null!=e){for(const t of e)t.onCommitted();this._observers=null}}}const a=(0,n.hA)()},35666:(e,t,r)=>{"use strict";var n;r.d(t,{AU:()=>s,Gr:()=>n,OL:()=>i,aB:()=>o,in:()=>a}),function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"}(n||(n={}));const s=n.USER+1;function o(e){switch(e){case"defaults":return n.DEFAULTS;case"service":return n.SERVICE;case"portal-item":return n.PORTAL_ITEM;case"web-scene":return n.WEB_SCENE;case"web-map":return n.WEB_MAP;case"link-chart":return n.LINK_CHART;case"user":return n.USER;default:return null}}function i(e){switch(e){case n.DEFAULTS:return"defaults";case n.SERVICE:return"service";case n.PORTAL_ITEM:return"portal-item";case n.WEB_SCENE:return"web-scene";case n.WEB_MAP:return"web-map";case n.LINK_CHART:return"link-chart";case n.USER:return"user"}}function a(e){return i(e)}},56454:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});const n=Symbol("Accessor-beforeDestroy")},10107:(e,t,r)=>{"use strict";r.d(t,{MZ:()=>c,Qp:()=>u,rM:()=>l});var n=r(53966),s=r(56507),o=r(16649),i=r(96156),a=r(47821);function c(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);const c=Object.getOwnPropertyDescriptor(t,r),l=(0,i.z4)(t,r);c&&(c.get||c.set?(l.get=c.get||l.get,l.set=c.set||l.set):"value"in c&&("value"in e&&n.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),l.value=e.value=c.value)),null!=e.readOnly&&(l.readOnly=e.readOnly);const f=e.aliasOf;if(f){const e="string"==typeof f?f:f.source,t="string"==typeof f?null:!0===f.overridable;let n;l.dependsOn=[e],l.get=function(){let t=(0,o.Jt)(this,e);if("function"==typeof t){n||(n=e.split(".").slice(0,-1).join("."));const r=(0,o.Jt)(this,n);r&&(t=t.bind(r))}return t},l.readOnly||(l.set=t?function(e){this._override(r,e)}:function(t){(0,a.h)(this,e,t)})}const d=e.type,h=e.types;l.cast||(d?l.cast=function(e){let t=0,r=e;if((0,s.Zu)(e))return(0,s.Nd)(e);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],t++;const n=r;if((0,s.EK)(n))return 0===t?(0,s.MB)(n):(0,s._e)((0,s.MB)(n),t);if(1===t)return(0,s.eC)(n);if(t>1)return(0,s.e6)(n,t);const o=e;return o.from?o.from:(0,s.dp)(o)}(d):h&&(Array.isArray(h)?l.cast=(0,s.wB)((0,s.aq)(h[0])):l.cast=(0,s.aq)(h))),(0,i.CX)(l,e),e.range&&(l.cast=u(l.cast,e.range))}}function l(e,t,r){const n=(0,i.z4)(e,r);n.json||(n.json={});let s=n.json;return void 0!==t&&(s.origins||(s.origins={}),s.origins[t]||(s.origins[t]={}),s=s.origins[t]),s}function u(e,t){return r=>{let n=+e(r);return null!=t.step&&(n=Math.round(n/t.step)*t.step),null!=t.min&&(n=Math.max(t.min,n)),null!=t.max&&(n=Math.min(t.max,n)),n}}},40608:(e,t,r)=>{"use strict";r.d(t,{$:()=>f}),r(44208);var n=r(53966),s=r(56454),o=r(45873),i=r(96156),a=r(62788),c=r(51822);const l=new Set,u=new Set;function f(e){return t=>{e??="esri.core.Accessor",t.prototype.declaredClass=e,h(t);const r=[],n=[];let o=t.prototype;for(;o;)o.hasOwnProperty("initialize")&&!l.has(o.initialize)&&(l.add(o.initialize),r.push(o.initialize)),o.hasOwnProperty("destroy")&&!u.has(o.destroy)&&(u.add(o.destroy),n.push(o.destroy)),o=Object.getPrototypeOf(o);l.clear(),u.clear();const a=class extends t{constructor(...e){if(super(...e),this.constructor===a&&"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)}}),n.length){let e=!1;const t=this[s.G];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){e=!0,t.call(this);for(let e=0;e<n.length;e++)n[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript(...e)}}};a.__accessorMetadata__=(0,i.tD)(t.prototype),a.prototype.declaredClass=e;const c=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(a,"name",{value:c,configurable:!0}),a}}function d(e,t){return null==t.get?function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0===r)return;(0,a.gc)(r);const n=t.store;return n.has(e)?n.get(e):r.metadata.value}:function(){const t=this.__accessor__,r=t.propertiesByName.get(e);if(void 0!==r)return r.getComputed(t)}}function h(e){const t=e.prototype,r=(0,i.tD)(t),n={};for(const e of Object.getOwnPropertyNames(r)){const t=r[e];(0,c.qk)(t),n[e]={enumerable:!0,configurable:!0,get:d(e,t),set(r){const n=this.__accessor__;if(void 0!==n){if(!Object.isFrozen(this))return n.initialized&&t.readOnly?p("read-only",e):n.lifecycle===o.v.CONSTRUCTED&&t.constructOnly?p("construct-only",e):void n.set(e,r)}else Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:r})}}}Object.defineProperties(e.prototype,n)}const p=(e,t)=>{n.A.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}},76953:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});var n=r(35666);function s(e,t,r){t.keys().forEach((e=>{r.set(e,t.get(e),n.Gr.DEFAULTS)}));const s=e.metadata;Object.keys(s).forEach((t=>{e.internalGet(t)&&r.set(t,e.internalGet(t),n.Gr.DEFAULTS)}))}},56507:(e,t,r)=>{"use strict";r.d(t,{EK:()=>S,GB:()=>l,GX:()=>c,MB:()=>E,Nd:()=>P,PZ:()=>y,Vr:()=>u,Zu:()=>C,_e:()=>O,aq:()=>T,dp:()=>_,e6:()=>k,eC:()=>w,gK:()=>j,jz:()=>N,wB:()=>v}),r(44208);var n=r(53966),s=r(91869);const o=()=>n.A.getLogger("esri.core.accessorSupport.ensureTypes");function i(e){return null==e?e:new Date(e)}function a(e){return null==e?e:!!e}function c(e){return null==e?e:e.toString()}function l(e){return null==e?e:(e=parseFloat(e),isNaN(e)?0:e)}function u(e){return null==e?e:Math.round(parseFloat(e))}function f(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function d(e,t){return null!=t&&e&&!(t instanceof e)}function h(e){return e&&"isCollection"in e}function p(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function g(e,t){return!!f(t)&&(o().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+b(e)+"'"),!0)}function y(e,t){return null==t?t:h(e)?function(e,t){if(!t?.constructor||!h(t.constructor))return g(e,t)?t:new e(t);const r=p(e.prototype.itemType),n=p(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(g(e,t),t):new e(t):t}(e,t):d(e,t)?g(e,t)?t:new e(t):t}function b(e){return e?.prototype?.declaredClass||"unknown"}const m=new WeakMap;function _(e,t){const r=function(e){switch(e){case Number:return l;case N:return u;case Boolean:return a;case String:return c;case Date:return i;default:return(0,s.tE)(m,e,(()=>y.bind(null,e)))}}(e);return 1===arguments.length?r:r(t)}function v(e,t,r){return 1===arguments.length?v.bind(null,e):t?Array.isArray(t)?t.map((t=>e(t,r))):[e(t,r)]:t}function w(e,t){return 1===arguments.length?v((t=>_(e,t))):v((t=>_(e,t)),t)}function A(e,t,r){return 0!==t&&Array.isArray(r)?r.map((r=>A(e,t-1,r))):e(r)}function O(e,t,r){if(2===arguments.length)return r=>O(e,t,r);if(!r)return r;r=A(e,t,r);let n=t,s=r;for(;n>0&&Array.isArray(s);)n--,s=s[0];if(void 0!==s)for(let e=0;e<n;e++)r=[r];return r}function k(e,t,r){return 2===arguments.length?O((t=>_(e,t)),t):O((t=>_(e,t)),t,r)}function S(e){return!!Array.isArray(e)&&!e.some((t=>{const r=typeof t;return!("string"===r||"number"===r||"function"===r&&e.length>1)}))}function E(e,t){if(2===arguments.length)return E(e).call(null,t);const r=new Set,n=e.filter((e=>"function"!=typeof e)),s=e.filter((e=>"function"==typeof e));for(const t of e)"string"!=typeof t&&"number"!=typeof t||r.add(t);let i=null,a=null;return(e,t)=>{if(null==e)return e;const c=typeof e,l="string"===c||"number"===c;return l&&(r.has(e)||s.some((e=>"string"===c&&e===String||"number"===c&&e===Number)))||"object"===c&&s.some((t=>!d(e,t)))?e:(l&&n.length?(i||(i=n.map((e=>"string"==typeof e?`'${e}'`:`${e}`)).join(", ")),o().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${i}`)):"object"==typeof e&&s.length?(a||(a=s.map((e=>b(e))).join(", ")),o().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${a}`)):o().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function T(e,t){if(2===arguments.length)return T(e).call(null,t);const r={},n=[],s=[];for(const t in e.typeMap){const o=e.typeMap[t];r[t]=_(o),n.push(b(o)),s.push(t)}const i=()=>`'${n.join("', '")}'`,a=()=>`'${s.join("', '")}'`,c="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!d(e.base,t))return t;if(null==t)return t;const n=c(t)||e.defaultKeyValue,s=r[n];if(!s)return o().error("Accessor#set",`Invalid property value, value needs to be one of ${i()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!d(e.typeMap[n],t))return t;if("string"==typeof e.key&&!f(t)){const r={};for(const n in t)n!==e.key&&(r[n]=t[n]);return s(r)}return s(t)}}class N{}const j={native:e=>({type:"native",value:e}),array:e=>({type:"array",value:e}),oneOf:e=>({type:"one-of",values:e})};function C(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function P(e){switch(e.type){case"native":return _(e.value);case"array":return v(P(e.value));case"one-of":return function(e){let t=null;return(r,n)=>M(r,e)?r:(null==t&&(t=I(e)),o().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}(e);default:return null}}function I(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case N:return"integer";case Date:return"date";default:return b(e.value)}case"array":return`array of ${I(e.value)}`;case"one-of":{const t=e.values.map((e=>I(e)));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function M(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case N:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some((e=>!M(e,t.value)));case"one-of":return t.values.some((t=>M(e,t)))}}},51822:(e,t,r)=>{"use strict";r.d(t,{xF:()=>u,N5:()=>f,k4:()=>d,qk:()=>b});var n=r(56507),s=r(90360);function o(e){if(e.json||(e.json={}),a(e.json),c(e.json),i(e.json),e.json.origins)for(const t in e.json.origins)a(e.json.origins[t]),c(e.json.origins[t]),i(e.json.origins[t]);return!0}function i(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 a(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 c(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 l=r(67124);function u(e,t){return h(e,"any",t?.origin)}function f(e,t){return h(e,"read",t?.origin)}function d(e,t){return h(e,"write",t?.origin)}function h(e,t,r){let n=e?.json;if(n?.origins&&r){let e;e="link-chart"===r?n.origins[r]&&("any"===t||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],e&&("any"===t||t in e)&&(n=e)}return n}function p(e){return e.type?g(e):y(e)}function g(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!(0,n.EK)(r);)r=r[0],t++;return{type:r,ndimArray:t}}function y(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 b(e){o(e)&&(function(e){if(e.json&&e.json.origins){const t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(const e in r)if(t[e]){const n=t[e];r[e].forEach((e=>{t[e]=n})),delete t[e]}}}(e),function(e){const t=function(e){return e.json.types?y(e.json):e.type?g(e):y(e)}(e);if(e.json.origins)for(const r in e.json.origins){const n=e.json.origins[r],o=n.types?p(n):t;(0,s.v)(o,n,!1),n.types&&!n.write&&e.json.write&&e.json.write.enabled&&(n.write={...e.json.write}),(0,l.v)(o,n)}(0,s.v)(t,e.json,!0),(0,l.v)(t,e.json)}(e))}},90360:(e,t,r)=>{"use strict";r.d(t,{C:()=>u,v:()=>l});var n=r(53966),s=r(93637),o=r(67076),i=r(96156),a=r(15903);const c=()=>n.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function l(e,t,r){e&&(!r&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?y(e.types):g(e.type)}(e)&&(0,s.sM)("read.reader",u(e),t))}function u(e){const t=e.ndimArray??0;if(t>1)return function(e){const t=f(e),r=d.bind(null,t),n=e.ndimArray??0;return(e,t,s)=>{if(null==e)return e;e=r(e,s,n);let o=n,i=e;for(;o>0&&Array.isArray(i);)o--,i=i[0];if(void 0!==i)for(let t=0;t<o;t++)e=[e];return e}}(e);if(1===t)return h(e);if("type"in e&&p(e.type)){const t=e.type.prototype?.itemType?.Type,r=h("function"==typeof t?{type:t}:{types:t});return(t,n,s)=>{const o=r(t,n,s);return o?new e.type(o):o}}return f(e)}function f(e){return"type"in e?function(e){return e.prototype.read?(t,r,n)=>{if(null==t)return t;const s=typeof t;if("object"!==s)return void c().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${s}'`);const o=new e;return o.read(t,n),o}:e.fromJSON}(e.type):function(e){let t=null;const r=e.errorContext??"type",n=e.validate;return(s,a,l)=>{if(null==s)return s;const u=typeof s;if("object"!==u)return void c().error(`Expected JSON value of type 'object' to deserialize, but got '${u}'`);t||(t=function(e){const t={};for(const r in e.typeMap){const n=e.typeMap[r],s=(0,i.tD)(n.prototype);if("function"==typeof e.key)continue;const o=s[e.key];if(!o)continue;o.json?.type&&Array.isArray(o.json.type)&&1===o.json.type.length&&"string"==typeof o.json.type[0]&&(t[o.json.type[0]]=n);const a=o.json?.write;if(!a?.writer){t[r]=n;continue}const c=a.target,l="string"==typeof c?c:e.key,u={};a.writer(r,u,l),u[l]&&(t[u[l]]=n)}return t}(e));const f=e.key;if("string"!=typeof f)return;const d=s[f],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){const e=`Type '${d||"unknown"}' is not supported`;return l?.messages&&s&&l.messages.push(new o.A(`${r}:unsupported`,e,{definition:s,context:l})),void c().error(e)}const p=new h;return p.read(s,l),n?n(p):p}}(e.types)}function d(e,t,r,n){return 0!==n&&Array.isArray(t)?t.map((t=>d(e,t,r,n-1))):e(t,void 0,r)}function h(e){const t=f(e);return(e,r,n)=>{if(null==e)return e;if(Array.isArray(e)){const r=[];for(const s of e){const e=t(s,void 0,n);void 0!==e&&r.push(e)}return r}const s=t(e,void 0,n);return void 0!==s?[s]:void 0}}function p(e){if(!(0,a.P)(e))return!1;const t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?g(t.Type):y(t.Type))}function g(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||p(e))}function y(e){for(const t in e.typeMap)if(!g(e.typeMap[t]))return!1;return!0}},15903:(e,t,r)=>{"use strict";function n(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(t,{P:()=>n})},67124:(e,t,r)=>{"use strict";r.d(t,{B:()=>f,v:()=>a});var n=r(49186),s=r(53966),o=r(93637),i=r(15903);function a(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;const r=e?.ndimArray??0;e&&(1===r||"type"in e&&(0,i.P)(e.type))?t.write.writer=d:r>1?t.write.writer=function(e){return(t,r,n,s)=>{let i;if(null===t)i=null;else{i=h(t,s,e);let r=e,n=i;for(;r>0&&Array.isArray(n);)r--,n=n[0];if(void 0!==n)for(let e=0;e<r;e++)i=[i]}(0,o.sM)(n,i,r)}}(r):t.types?Array.isArray(t.types)?t.write.writer=function(e){return(t,r,n,s)=>t&&Array.isArray(t)?l(t.filter((t=>c(t,e,s))),r,n,s):l(t,r,n,s)}(t.types[0]):t.write.writer=function(e){return(t,r,n,s)=>t?c(t,e,s)?l(t,r,n,s):void 0:l(t,r,n,s)}(t.types):t.write.writer=l}function c(e,t,r){for(const r in t.typeMap)if(e instanceof t.typeMap[r])return!0;if(r?.messages){const o=t.errorContext??"type",i=`Values of type '${("function"!=typeof t.key?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new n.A(`${o}:unsupported`,i,{definition:e,context:r})),s.A.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function l(e,t,r,n){(0,o.sM)(r,u(e,n),t)}function u(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?f(e):e}function f(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function d(e,t,r,n){let s;null===e?s=null:e&&"function"==typeof e.map?(s=e.map((e=>u(e,n))),"function"==typeof s.toArray&&(s=s.toArray())):s=[u(e,n)],(0,o.sM)(r,s,t)}function h(e,t,r){return 0!==r&&Array.isArray(e)?e.map((e=>h(e,t,r-1))):u(e,t)}},16649:(e,t,r)=>{"use strict";r.d(t,{Jt:()=>a,RP:()=>i,t2:()=>c});var n=r(88620);function s(e,t){const r="?"===e[e.length-1]?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(r,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const s=(0,n.oY)(t);return(0,n.yh)(s,r)?s.get(r):t[r]}function o(e,t,r){if(null==e)return e;const n=s(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:o(n,t,r+1)}function i(e,t,r=0){return"string"!=typeof t||t.includes(".")?o(e,(0,n.AH)(t),r):s(t,e)}function a(e,t){return i(e,t)}function c(e,t){return void 0!==i(t,e)}},45873:(e,t,r)=>{"use strict";var n;r.d(t,{v:()=>n}),function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"}(n||(n={}))},96156:(e,t,r)=>{"use strict";r.d(t,{CX:()=>a,tD:()=>o,z4:()=>i});var n=r(4718),s=r(88620);function o(e){let t=e.constructor.__accessorMetadata__;const r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(const e in t)t[e]=(0,n.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 i(e,t){const r=o(e);let n=r[t];return n||(n=r[t]={}),n}function a(e,t){return(0,s.h1)(e,t,l)}const c=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function l(e){return c.test(e)?"replace":"merge"}},45917:(e,t,r)=>{"use strict";r.d(t,{L:()=>u,t:()=>f});var n=r(16649),s=r(88620),o=r(51822);function i(e,t,r){if(!e?.read||!1===e.read.enabled||!e.read.source)return!1;const s=e.read.source;if("string"==typeof s){if(s===t)return!0;if(s.includes(".")&&0===s.indexOf(t)&&(0,n.t2)(s,r))return!0}else for(const e of s){if(e===t)return!0;if(e.includes(".")&&0===e.indexOf(t)&&(0,n.t2)(e,r))return!0}return!1}function a(e,t,r,n,s){let a=(0,o.N5)(t[r],s);(function(e){return e&&(!e.read||!1!==e.read.enabled&&!e.read.source)})(a)&&(e[r]=!0);for(const c of Object.getOwnPropertyNames(t))a=(0,o.N5)(t[c],s),i(a,r,n)&&(e[c]=!0)}function c(e,t,r,n){const s=r.metadata,i=(0,o.xF)(s[t],n),a=i?.default;if(void 0===a)return;const c="function"==typeof a?a.call(e,t,n):a;void 0!==c&&r.set(t,c)}const l={origin:"service"};function u(e,t,r=l){if(!t||"object"!=typeof t)return;const i=(0,s.oY)(e),u=i.metadata,f={};for(const e of Object.getOwnPropertyNames(t))a(f,u,e,t,r);i.setDefaultOrigin(r.origin);for(const s of Object.getOwnPropertyNames(f)){const a=(0,o.N5)(u[s],r).read,c=a?.source;let l;l=c&&"string"==typeof c?(0,n.RP)(t,c):t[s],a?.reader&&(l=a.reader.call(e,l,t,r)),void 0!==l&&i.set(s,l)}if(!r||!r.ignoreDefaults){i.setDefaultOrigin("defaults");for(const t of Object.getOwnPropertyNames(u))f[t]||c(e,t,i,r)}i.setDefaultOrigin("user")}function f(e,t,r,n=l){const s={...n,messages:[]};r(s),s.messages?.forEach((t=>{"warning"!==t.type||e.loaded?n?.messages&&n.messages.push(t):e.loadWarnings.push(t)}))}},47821:(e,t,r)=>{"use strict";r.d(t,{h:()=>i});var n=r(49186),s=r(44208),o=(r(53966),r(16649));function i(e,t,r){if(e&&t)if("object"==typeof t)for(const r of Object.getOwnPropertyNames(t))i(e,r,t[r]);else{if(t.includes(".")){const n=t.split("."),s=n.splice(-1,1)[0];return void i((0,o.Jt)(e,n),s,r)}const a=e.__accessor__;null!=a&&function(e,t){if((0,s.A)("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,t))throw new n.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)=>{"use strict";r.d(t,{F_:()=>h,Xr:()=>_,a:()=>d,fE:()=>b,gc:()=>l}),r(44208);var n=r(53966),s=r(88620),o=r(47328);const i={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},a=[];let c=i;function l(e){c.onObservableAccessed(e)}let u=!1,f=!1;function d(e,t,r){if(u)return p(e,t,r);g(e);const n=t.call(r);return y(),n}function h(e,t){return d(i,e,t)}function p(e,t,r){const s=u;u=!0,g(e);let o=null;try{o=t.call(r)}catch(e){f&&n.A.getLogger("esri.core.accessorSupport.tracking").error(e)}return y(),u=s,o}function g(e){c=e,a.push(e)}function y(){const e=a.length;if(e>1){const t=a.pop();c=a[e-2],t.onTrackingEnd()}else if(1===e){const e=a.pop();c=i,e.onTrackingEnd()}else c=i}function b(e,t){if(t.flags&o.i.DepTrackingInitialized)return;const r=f;f=!1,t.flags&o.i.AutoTracked?p(t,t.metadata.get,e):_(e,t),f=r}const m=[];function _(e,t){t.flags&o.i.ExplicitlyTracking||(t.flags|=o.i.ExplicitlyTracking,p(t,(()=>{const r=t.metadata.dependsOn||m;for(const t of r)if("string"!=typeof t||t.includes(".")){const r=(0,s.AH)(t);for(let t=0,n=e;t<r.length&&null!=n&&"object"==typeof n;++t)n=v(n,r[t],t!==r.length-1)}else v(e,t,!1)})),t.flags&=~o.i.ExplicitlyTracking)}function v(e,t,r){const n="?"===t[t.length-1]?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){const t=parseInt(n,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}const o=(0,s.oY)(e);if(o){const t=o.propertiesByName.get(n);t&&(l(t),b(e,t))}return r?e[n]:void 0}},47328:(e,t,r)=>{"use strict";var n;r.d(t,{i:()=>n}),function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"}(n||(n={}))},71429:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});class n{constructor(e){this._accessed=[],this._handles=[],this._observerObject=new s(e),o.register(this,new WeakRef(this._observerObject),this)}destroy(){o.unregister(this._observerObject),this._accessed.length=0,this._observerObject?.destroy(),this.clear()}onObservableAccessed(e){const t=this._accessed;t.includes(e)||t.push(e)}onTrackingEnd(){const e=this._handles,t=this._accessed,r=this._observerObject;for(let n=0;n<t.length;++n)e.push(t[n].observe(r));t.length=0}clear(){const e=this._handles;for(let t=0;t<e.length;++t)e[t].remove();e.length=0}}class s{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;const e=this._invalidCount;if(1===e)return this._invalidCount=0,void this._notify();this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=i}}const o=new FinalizationRegistry((e=>{e.deref()?.destroy()}));function i(){}},80559:(e,t,r)=>{"use strict";r.d(t,{Df:()=>l,fm:()=>u,mJ:()=>c});var n=r(36563),s=r(62788),o=r(71429);let i=!1;const a=[];function c(e,t){let r=new o.r((function n(){if(!r||c)return;if(i)return void f(n);const o=a;r.clear(),i=!0,c=!0,a=(0,s.a)(r,e),c=!1,i=!1,t(a,o),d()})),a=null,c=!1;return c=!0,a=(0,s.a)(r,e),c=!1,(0,n.hA)((function(){r&&(r.destroy(),r=null,a=null)}))}function l(e,t){let r=new o.r((function(){t(i,a)})),i=null;function a(){return r?(r.clear(),i=(0,s.a)(r,e),i):null}return a(),(0,n.hA)((function(){r&&(r.destroy(),r=null),i=null}))}function u(e){let t=new o.r((function n(){t&&!r&&(i?f(n):(t.clear(),i=!0,r=!0,(0,s.a)(t,e),r=!1,i=!1,d()))})),r=!1;return r=!0,(0,s.a)(t,e),r=!1,(0,n.hA)((function(){t&&(t.destroy(),t=null)}))}function f(e){a.includes(e)||a.unshift(e)}function d(){for(;a.length;)a.pop()()}},88620:(e,t,r)=>{"use strict";r.d(t,{AH:()=>l,h1:()=>a,oY:()=>o,qg:()=>f,yh:()=>i});var n=r(36563),s=r(4718);function o(e){return e.__accessor__??null}function i(e,t){return null!=e?.metadata?.[t]}function a(e,t,r){return c(e,t,r?{policy:r,path:""}:null)}function c(e,t,r){return t?Object.keys(t).reduce(((e,n)=>{const o=n;let i=null,a="merge";if(r&&(i=r.path?`${r.path}.${n}`:n,a=r.policy(i)),"replace"===a)return e[o]=t[o],e;if("replace-arrays"===a&&Array.isArray(e[o]))return e[o]=t[o],e;if(void 0===e[o])return e[o]=(0,s.o8)(t[o]),e;let l=e[o],u=t[o];if(l===u)return e;if(Array.isArray(u)||Array.isArray(e))l=l?Array.isArray(l)?e[o]=l.concat():e[o]=[l]:e[o]=[],u&&(Array.isArray(u)||(u=[u]),u.forEach((e=>{l.includes(e)||l.push(e)})));else if(u&&"object"==typeof u)if(r){const t=r.path;r.path=i,e[o]=c(l,u,r),r.path=t}else e[o]=c(l,u,null);else e.hasOwnProperty(n)&&!t.hasOwnProperty(n)||(e[o]=u);return e}),e||{}):e}function l(e){return Array.isArray(e)?e:e.split(".")}function u(e){return e.includes(",")?e.split(",").map((e=>e.trim())):[e.trim()]}function f(e,t,r,s){const o=function(e){if(Array.isArray(e)){const t=[];for(const r of e)t.push(...u(r));return t}return u(e)}(t);if(1!==o.length){const t=o.map((t=>s(e,t,r)));return(0,n.vE)(t)}return s(e,o[0],r)}},14012:(e,t,r)=>{"use strict";r.d(t,{iS:()=>A,wB:()=>E,Cn:()=>T});var n=r(98291),s=r(36563),o=r(4718),i=r(93687);class a extends i.A{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){const 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 c,l,u=r(11932),f=r(24326),d=r(16649),h=r(45873),p=r(80559),g=r(88620);(l=c||(c={}))[l.Untracked=0]="Untracked",l[l.Tracked=1]="Tracked";class y{constructor(){this.uid=(0,f.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 acquireUntracked(e,t,r,n,s){return this.pool.acquire(c.Untracked,e,t,r,n,s,o.aI)}static acquireTracked(e,t,r,n){return this.pool.acquire(c.Tracked,e,t,r,null,null,n)}notify(e,t){this.type===c.Untracked?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,n,s,o,i){this.uid=(0,f.c)(),this.removed=!1,this.type=e,this.oldValue=t,this.callback=r,this.getValue=n,this.target=s,this.path=o,this.equals=i}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,f.c)(),this.removed=!0}}y.pool=new a(y);const b=new n.A,m=new Set;let _;function v(e){m.delete(e),m.add(e),_||(_=(0,u._)(O))}function w(e){if(e.removed)return;const t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function A(e){for(const t of m.values())t.target===e&&(t.removed=!0)}function O(){let e=10;for(;_&&e--;){_=null;const e=k(),t=b.acquire();for(const r of e){const e=r.uid;w(r),e===r.uid&&r.removed&&t.push(r)}for(const e of m)e.removed&&(t.push(e),m.delete(e));for(const e of t)y.pool.release(e);b.release(t),b.release(e),S.forEach((e=>e()))}}function k(){const e=b.acquire();e.length=m.size;let t=0;for(const r of m)e[t]=r,++t;return m.clear(),e}const S=new Set;function E(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==h.v.DESTROYED?n?function(e,t,r){const n=(0,g.qg)(e,t,r,((e,t,r)=>{let s=!1;return(0,p.mJ)((()=>(0,d.RP)(e,t)),((i,a)=>{e.__accessor__.lifecycle!==h.v.DESTROYED?s||(s=!0,(0,o.aI)(a,i)||r.call(e,i,a,t,e),s=!1):n.remove()}))}));return n}(e,t,r):function(e,t,r){let n=(0,g.qg)(e,t,r,((e,t,r)=>{let o,i,a=(0,p.Df)((()=>(0,d.RP)(e,t)),((s,a)=>{e.__accessor__?.lifecycle===h.v.DESTROYED||o&&o.uid!==i?n.remove():(o||(o=y.acquireUntracked(s,r,a,e,t),i=o.uid),v(o))}));return(0,s.hA)((()=>{a.remove(),o&&(o.uid!==i||o.removed||(o.removed=!0,v(o)),o=null),n=a=null}))}));return n}(e,t,r):(0,s.hA)()}function T(e,t,r=!1,n=o.gh){return r?function(e,t,r){let n=!1;return(0,p.mJ)(e,((e,s)=>{n||(n=!0,r(s,e)||t(e,s),n=!1)}))}(e,t,n):function(e,t,r){let n,o,i=(0,p.Df)(e,((e,s)=>{n&&n.uid!==o?i.remove():(n||(n=y.acquireTracked(e,t,s,r),o=n.uid),v(n))}));return(0,s.hA)((()=>{i.remove(),n&&(n.uid!==o||n.removed||(n.removed=!0,v(n)),n=null),i=null}))}(e,t,n)}},49422:(e,t,r)=>{"use strict";r.d(t,{M:()=>h,R:()=>d});var n=r(4576),s=r(49186),o=r(53966),i=r(16649),a=r(35666),c=r(88620),l=r(51822);function u(e,t,r,n,s){const o={};return t.write?.writer?.call(e,n,o,r,s),o}function f(e,t,r,c,l,u){if(!c?.write)return!1;const f=(0,i.Jt)(e,r);if(!l&&c.write.overridePolicy){const t=c.write.overridePolicy.call(e,f,r,u??void 0);void 0!==t&&(l=t)}if(l||(l=c.write),!l||!1===l.enabled)return!1;if(l.layerContainerTypes&&u?.layerContainerType&&!l.layerContainerTypes.includes(u.layerContainerType))return!1;if((null===f&&!l.allowNull&&!l.writerEnsuresNonNull||void 0===f)&&l.isRequired){const t=new s.A("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return t&&u?.messages?u.messages.push(t):t&&!u&&o.A.getLogger("esri.core.accessorSupport.write").error(t.name,t.message),!1}return!(void 0===f||null===f&&!l.allowNull&&!l.writerEnsuresNonNull||!(l.alwaysWriteDefaults||t.store.multipleOriginsSupported&&t.store.originOf(r)!==a.Gr.DEFAULTS)&&function(e,t,r,s,o){const i=s.default;if(void 0===i)return!1;if(null!=s.defaultEquals)return s.defaultEquals(o);if("function"==typeof i){if(Array.isArray(o)){const s=i.call(e,t,r??void 0);return(0,n.aI)(s,o)}return!1}return i===o}(e,r,u,c,f)||!l.ignoreOrigin&&u?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<(0,a.aB)(u.origin))}function d(e,t,r,n){const s=(0,c.oY)(e),o=s.metadata,i=(0,l.k4)(o[t],n);return!!i&&f(e,s,t,i,r,n)}function h(e,t,r){if(e&&"function"==typeof e.toJSON&&(!e.toJSON.isDefaultToJSON||!e.write))return(0,c.h1)(t,e.toJSON(r));const n=(0,c.oY)(e),s=n.metadata;for(const o in s){const d=(0,l.k4)(s[o],r);if(!f(e,n,o,d,void 0,r))continue;const h=(0,i.Jt)(e,o),p=u(e,d,d.write&&"string"==typeof d.write.target?d.write.target:o,h,r);Object.keys(p).length>0&&(t=(0,c.h1)(t,p),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then((()=>(0,c.h1)(t,p,(()=>"replace-arrays"))))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:(0,a.in)(n.store.originOf(o)),newOrigin:r.origin}))}return t}},4576:(e,t,r)=>{"use strict";r.d(t,{Ru:()=>m,TF:()=>b,Uk:()=>s,Xj:()=>c,Xy:()=>p,aI:()=>o,dY:()=>u,iv:()=>a,mW:()=>y,qh:()=>h,vW:()=>f,yo:()=>i});var n=r(87811);function s(e,t){for(let r=e.length-1;r>=0;r--){const n=e[r];if(t(n))return n}}function o(e,t,r){if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function i(e,t){let r=e.length!==t.length;r&&(e.length=t.length);for(let n=0;n<t.length;++n)e[n]!==t[n]&&(e[n]=t[n],r=!0);return r}function a(e,t,r){let n,s;return r?(n=t.filter((t=>!e.some((e=>r(e,t))))),s=e.filter((e=>!t.some((t=>r(t,e)))))):(n=t.filter((t=>!e.includes(t))),s=e.filter((e=>!t.includes(e)))),{added:n,removed:s}}function c(e){return e&&"number"==typeof e.length}const l=!!Array.prototype.fill;function u(e,t){if(l)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}class f{constructor(){this.last=0}}const d=new f;function h(e,t,r,n){n=n||d;const s=Math.max(0,n.last-10);for(let o=s;o<r;++o)if(e[o]===t)return n.last=o,o;const o=Math.min(s,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function p(e,t,r,n){const s=r??e.length,o=h(e,t,s,n);if(-1!==o)return e[o]=e[s-1],null==r&&e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,s,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);s=s||d;const i=Math.max(0,s.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function b(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function m(e,t){return null!=e}new n.A},86805:(e,t,r)=>{"use strict";function n(e){return 32+e.length}function s(){return 16}function o(e){if(!e)return 0;let t=l;for(const r in e)if(e.hasOwnProperty(r)){const s=e[r];switch(typeof s){case"string":t+=n(s);break;case"number":t+=16;break;case"boolean":t+=4}}return t}function i(e){if(!e)return 0;if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return 32+8*t;let r=u;for(let n=0;n<t;n++)r+=a(e[n]);return r}(e);let t=l;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e){switch(typeof e){case"object":return i(e);case"string":return n(e);case"number":return 16;case"boolean":return 4;default:return 8}}function c(e,t){return u+e.length*t}r.d(t,{eY:()=>o,f3:()=>s,iL:()=>i,zd:()=>c});const l=32,u=16},51447:(e,t,r)=>{"use strict";r.d(t,{Lx:()=>a,eO:()=>i,io:()=>c});var n=r(44208);const s=new WeakMap;function o(e,t,r=!1){const n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=s.get(e);o||(o=new Set,s.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;c(e,"Function: "+(n?n+"::":"")+t+"()",r)}}function a(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{moduleName:n}=r;c(e,"Property: "+(n?n+"::":"")+t,r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){const{replacement:n,version:s,see:i,warnOnce:a}=r;let c=t;n&&(c+=`\n\t🛠️ Replacement: ${n}`),s&&(c+=`\n\t⚙️ Version: ${s}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),o(e,c,a)}}},37955:(e,t,r)=>{"use strict";r.d(t,{Oo:()=>a,on:()=>i,wb:()=>s});var n=r(36563);function s(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,s){if(Array.isArray(t)){const o=t.slice();for(const t of o)e.addEventListener(t,r,s);return(0,n.hA)((()=>{for(const t of o)e.removeEventListener(t,r,s)}))}return e.addEventListener(t,r,s),(0,n.hA)((()=>e.removeEventListener(t,r,s)))}(e,t,r):e.on(t,r)}function a(e,t,r){if(!s(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=i(e,t,(t=>{n.remove(),r.call(e,t)}));return n}},36563:(e,t,r)=>{"use strict";r.d(t,{hA:()=>s,vE:()=>o});const n={remove:()=>{}};function s(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function o(e){return s((()=>function(e){e.forEach((e=>e?.remove()))}(e)))}},44208:(e,t,r)=>{"use strict";let n;function s(e){return"function"==typeof n[e]?n[e]=n[e](globalThis):n[e]}r.d(t,{A:()=>s}),n=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},s.add=(e,t,r,o)=>((o||void 0===n[e])&&(n[e]=t),r&&s(e)),s.cache=n,s.add("big-integer-warning-enabled",!0),s.add("esri-deprecation-warnings",!0),s.add("esri-tests-disable-screenshots",!1),s.add("esri-tests-use-full-window",!1),s.add("esri-tests-post-to-influx",!0),(()=>{s.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(s.add("host-browser",e),s.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),s.add("dom",e),s("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(s.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),s.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),s.add("khtml",r.includes("Konqueror")?n:void 0),s.add("edge",parseFloat(t.split("Edge/")[1])||void 0),s.add("opr",parseFloat(t.split("OPR/")[1])||void 0),s.add("webkit",!s("wp")&&!s("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),s.add("chrome",!s("edge")&&!s("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),s.add("android",!s("wp")&&parseFloat(t.split("Android ")[1])||void 0),s.add("safari",!r.includes("Safari")||s("wp")||s("chrome")||s("android")||s("edge")||s("opr")?void 0:parseFloat(r.split("Version/")[1])),s.add("mac",r.includes("Macintosh")),!s("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));s.add(e,n),s.add("ios",n)}s("webkit")||(!t.includes("Gecko")||s("wp")||s("khtml")||s("edge")||s.add("mozilla",n),s("mozilla")&&s.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&s.add("esri-mobile",t),r&&s.add("esri-iPhone",r),s.add("esri-geolocation",!!navigator.geolocation)}s.add("esri-wasm","WebAssembly"in globalThis),s.add("esri-performance-mode-frames-between-render",20),s.add("esri-force-performance-mode",!1),s.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),s.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),s.add("esri-atomics","Atomics"in globalThis),s.add("esri-workers","Worker"in globalThis),s.add("web-feat:cache","caches"in globalThis),s.add("esri-workers-arraybuffer-transfer",!s("safari")||Number(s("safari"))>=12),s.add("workers-pool-size",8),s.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),s.add("featurelayer-simplify-payload-size-factors",[1,1,4]),s.add("featurelayer-fast-triangulation-enabled",!0),s.add("featurelayer-animation-enabled",!0),s.add("featurelayer-snapshot-enabled",!0),s.add("featurelayer-snapshot-point-min-threshold",8e4),s.add("featurelayer-snapshot-point-max-threshold",4e5),s.add("featurelayer-snapshot-point-coverage",.1),s.add("featurelayer-query-max-depth",4),s.add("featurelayer-query-pausing-enabled",!1),s.add("hittest-2d-mobile-tolerance",3),s.add("hittest-2d-desktop-tolerance",1),s.add("hittest-2d-small-symbol-tolerance",3),s.add("hittest-2d-small-symbol-tolerance-threshold",3),s.add("featurelayer-advanced-symbols",!1),s.add("featurelayer-pbf",!0),s.add("featurelayer-pbf-statistics",!1),s.add("feature-layers-workers",!0),s.add("feature-polyline-generalization-factor",1),s.add("mapview-transitions-duration",200),s.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),s.add("mapserver-pbf-version-support",10.81),s.add("mapservice-popup-identify-max-tolerance",20),s("host-webworker")||s("host-browser")&&(s.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),s.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{s.add("esri-image-decode",!0,!0,!0)})).catch((()=>{s.add("esri-image-decode",!1,!0,!0)}))}return!1})),s.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},5479:(e,t,r)=>{"use strict";function n(e){const t=[];return function*(){yield*t;for(const r of e)t.push(r),yield r}}function s(e,t){for(const r of e)if(null!=r&&t(r))return r}function o(e){return null!=e&&"function"==typeof e[Symbol.iterator]}r.d(t,{I6:()=>s,PP:()=>n,xZ:()=>o})},4718:(e,t,r)=>{"use strict";r.d(t,{Nb:()=>c,TU:()=>a,aI:()=>h,gh:()=>p,o8:()=>i,oy:()=>o});var n=r(4576),s=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=d(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(u(e))return e.clone();const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function a(e){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const t=d(e);if(null!=t)return t;if(l(e)){let t=!0;const r=e.map((e=>{const r=a(e);return null!=e&&null==r&&(t=!1),r}));return t?r:null}if(c(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(!u(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const r of Object.getOwnPropertyNames(e)){const n=e[r],s=a(n);if(null!=n&&null==s)return null;t[r]=s}return t}return null}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function u(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function f(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){if((0,s.dz)(e)||(0,s.mg)(e)||(0,s.UR)(e)||(0,s.IY)(e)||(0,s.jq)(e)||(0,s._G)(e)||(0,s.XJ)(e)||(0,s.vZ)(e)||(0,s.aI)(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(i(r));return t}return null}function h(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function p(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!f(e)&&f(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768:(e,t,r)=>{"use strict";function n(e,t){if(null==e)throw new Error(t??"value is None")}function s(e){return e?.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function a(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function u(e,t){let r;return e.some(((e,n)=>(r=t(e,n),null!=r))),r??void 0}r.d(t,{CM:()=>l,DC:()=>a,Gz:()=>c,Lw:()=>n,Pb:()=>u,WD:()=>o,pR:()=>s,xt:()=>i})},26390:(e,t,r)=>{"use strict";r.d(t,{d:()=>s});const n=[];function s(e){n.push(e),1===n.length&&queueMicrotask((()=>{const e=n.slice();n.length=0;for(const t of e)t()}))}},93637:(e,t,r)=>{"use strict";r.d(t,{$N:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function s(e,t,r=!1){return c(e,t,r)}function o(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),s=n.pop(),o=a(n,!0,r);o&&s&&(o[s]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){return t?Object.keys(t).reduce(((e,s)=>{let o=e[s],i=t[s];return o===i?e:void 0===o?(e[s]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=o?Array.isArray(o)?e[s]=o.concat():e[s]=[o]:e[s]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{o.includes(e)||o.push(e)})):e[s]=i.concat())):i&&"object"==typeof i?e[s]=c(o,i,r):e.hasOwnProperty(s)&&!t.hasOwnProperty(s)||(e[s]=i),e)}),e||{}):e}},74887:(e,t,r)=>{"use strict";r.d(t,{Pl:()=>O,Ol:()=>A,nA:()=>w,NK:()=>l,Tw:()=>T,sg:()=>E,Lx:()=>v,QZ:()=>_,zf:()=>m,G4:()=>d,$X:()=>k,u7:()=>g,NY:()=>y,Mq:()=>f,QP:()=>h,Te:()=>u,jH:()=>p,NO:()=>N,z7:()=>S,qr:()=>b});var n=r(36563);const s=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return(0,n.hA)((()=>o.clearTimeout(r)))}});var o,i=r(49186),a=r(37955),c=(r(53966),r(97768));function l(e="Aborted"){return new i.A("AbortError",e)}function u(e,t="Aborted"){if(d(e))throw l(t)}function f(e){return e instanceof AbortSignal?e:e?.signal}function d(e){const t=f(e);return null!=t&&t.aborted}function h(e){if(m(e))throw e}function p(e){if(!m(e))throw e}function g(e,t){const r=f(e);if(null!=r){if(!r.aborted)return(0,a.Oo)(r,"abort",(()=>t()));t()}}function y(e,t){const r=f(e);if(null!=r)return u(r),(0,a.Oo)(r,"abort",(()=>t(l())))}function b(e,t){return null==f(t)?e:new Promise(((r,n)=>{let s=g(t,(()=>n(l())));const o=()=>{s=(0,c.xt)(s)};e.then(o,o),e.then(r,n)}))}function m(e){return"AbortError"===e?.name}async function _(e){try{return await e}catch(e){if(!m(e))throw e;return}}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map((t=>e[t])),n=await v(r),s={};return t.map(((e,t)=>s[e]=n[t])),s}const t=e;return Promise.allSettled(t).then((e=>Array.from(t,((t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))))}async function w(e){return(await Promise.allSettled(e)).filter((e=>"fulfilled"===e.status)).map((e=>e.value))}async function A(e){return(await Promise.allSettled(e)).filter((e=>"rejected"===e.status)).map((e=>e.reason))}function O(e,t=void 0,r){const n=new AbortController;return g(r,(()=>n.abort())),new Promise(((r,s)=>{let o=setTimeout((()=>{o=0,r(t)}),e);g(n,(()=>{o&&(clearTimeout(o),s(l()))}))}))}function k(e){return e&&"function"==typeof e.then}function S(e){return k(e)?e:Promise.resolve(e)}function E(e,t=-1){let r,n,s,o,i=null;const a=(...c)=>{if(r){n=c,o&&o.reject(l()),o=T();const e=o.promise;if(i){const e=i;i=null,e.abort()}return e}if(s=o||T(),o=null,t>0){const n=new AbortController;r=S(e(...c,n.signal));const s=r;O(t).then((()=>{r===s&&(o?n.abort():i=n)}))}else r=1,r=S(e(...c));const u=()=>{const e=n;n=s=r=i=null,null!=e&&a(...e)},f=r,d=s;return f.then(u,u),f.then(d.resolve,d.reject),d.promise};return a}function T(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>s.setTimeout((()=>n.reject(t)),e),n.promise=r,n}async function N(e){await Promise.resolve(),u(e)}},11932:(e,t,r)=>{"use strict";r.d(t,{_:()=>g,md:()=>w});var n=r(26390),s=r(61604),o=r(3694),i=r(74887),a=r(78659);class c{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}}let l=0;const u={time:(0,a.l5)(0),deltaTime:(0,a.l5)(0),elapsedFrameTime:(0,a.l5)(0),frameDuration:(0,a.l5)(0)},f=["prepare","preRender","render","postRender","update","finish"],d=[],h=new o.A,p={frameTasks:h,willDispatch:!1,clearFrameTasks:function(e=!1){h.forAll((e=>{e.removed=!0})),e&&_()},dispatch:v,executeFrameTasks:function(e){const t=(0,a.l5)(e-l);l=e;const r=1e3/60,n=Math.max(0,t-r);u.time=e,u.frameDuration=(0,a.l5)(r-n);for(let r=0;r<f.length;r++){const n=performance.now(),s=f[r];h.forAll((n=>{n.paused||n.removed||(0===r&&n.ticks++,n.phases[s]&&(u.elapsedFrameTime=(0,a.l5)(performance.now()-e),u.deltaTime=0===n.ticks?(0,a.l5)(0):t,n.phases[s]?.call(n,u)))})),A[r].record(performance.now()-n)}_(),O.record(performance.now()-e)},reschedule:function(){null!=y&&(cancelAnimationFrame(y),y=requestAnimationFrame(b))}};function g(e){const t=new c(e);return d.push(t),p.willDispatch||(p.willDispatch=!0,(0,n.d)(v)),t}let y=null;function b(){const e=performance.now();y=null,y=h.length>0?requestAnimationFrame(b):null,p.executeFrameTasks(e)}const m=new o.A;function _(){h.forAll((e=>{e.removed&&m.push(e)})),h.removeUnorderedMany(m.data,m.length),m.clear()}function v(){for(;d.length;){const e=d.shift();e.isActive&&e.callback()}p.willDispatch=!1}function w(e=1,t){const r=(0,i.Tw)(),s=()=>{(0,i.G4)(t)?r.reject((0,i.NK)()):0===e?r():(--e,(0,n.d)((()=>s())))};return s(),r.promise}const A=f.map((e=>new s.A(e))),O=new s.A("total")},799:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>a,HC:()=>i,Wm:()=>c,_e:()=>l});var n=r(93637);const s=/\{([^\}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(s,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function a(e,t){return e.replaceAll(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},78659:(e,t,r)=>{"use strict";function n(e){return e}function s(e){return 1e3*e}function o(e){return e}r.d(t,{Kp:()=>o,gr:()=>s,l5:()=>n})},34275:(e,t,r)=>{"use strict";r.d(t,{Ek:()=>g,IY:()=>c,JI:()=>m,UR:()=>a,XJ:()=>f,_G:()=>u,a3:()=>v,aI:()=>h,cy:()=>p,dk:()=>_,dz:()=>o,jq:()=>l,mg:()=>i,mw:()=>s,vZ:()=>d,y9:()=>b});var n=r(86805);function s(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function i(e){return"Uint8Array"===e?.constructor?.name}function a(e){return"Uint8ClampedArray"===e?.constructor?.name}function c(e){return"Int16Array"===e?.constructor?.name}function l(e){return"Uint16Array"===e?.constructor?.name}function u(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float32Array"===e?.constructor?.name}function h(e){return"Float64Array"===e?.constructor?.name}function p(e){return!("buffer"in e)}function g(...e){return e.reduce(((e,t)=>e+(t?p(t)?(0,n.zd)(t,(0,n.f3)()):t.byteLength+y:0)),0)}r(44208);const y=145,b=1024;function m(e){return h(e)||d(e)||u(e)||c(e)||o(e)}function _(e){return h(e)||d(e)}function v(e){return h(e)?179769e303:d(e)?3402823e32:f(e)?4294967295:l(e)?65535:i(e)||a(e)?255:u(e)?2147483647:c(e)?32767:o(e)?127:256}},24326:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});let n=0;function s(){return++n}},84952:(e,t,r)=>{"use strict";r.d(t,{$1:()=>Q,$z:()=>V,An:()=>T,BQ:()=>ie,DB:()=>Z,FL:()=>z,FX:()=>B,Hg:()=>re,IZ:()=>oe,Il:()=>pe,N9:()=>se,S8:()=>G,T1:()=>ye,UC:()=>ge,V1:()=>F,Xq:()=>S,Zo:()=>we,_0:()=>Oe,a6:()=>ve,b8:()=>D,e7:()=>he,fj:()=>H,gd:()=>E,lJ:()=>X,lM:()=>le,m3:()=>ce,nM:()=>de,oP:()=>K,oy:()=>$,r$:()=>te,rs:()=>_e,s0:()=>w,s2:()=>W,sC:()=>q,s_:()=>C,tk:()=>ne,ut:()=>U,w8:()=>Y,x0:()=>j,xw:()=>Ae,yM:()=>P,zf:()=>N,zi:()=>me,zs:()=>R});var n=r(92602),s=r(4576),o=r(49186),i=r(25482),a=r(53966),c=r(39131),l=r(26306);const u=()=>a.A.getLogger("esri.core.urlUtils"),f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",h=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,p=/^\s*http:/i,g=/^\s*https:/i,y=/^\s*file:/i,b=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,_=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),v=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class w{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(_);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(v),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const A={};let O=new w(n.A.applicationUrl);let k=function(){const e=O.path,t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${O.scheme}://${O.host}${null!=O.port?`:${O.port}`:""}${t}`}();const S=()=>O,E=()=>k;function T(e){if(!e)return null;const t={path:null,query:null},r=new w(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=N(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function N(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,s;t<0?(n=decodeURIComponent(e),s=""):(n=decodeURIComponent(e.slice(0,t)),s=decodeURIComponent(e.slice(t+1)));let o=r[n];"string"==typeof o&&(o=r[n]=[o]),Array.isArray(o)?o.push(s):r[n]=s}return r}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const s=encodeURIComponent(r)+"=",o=t?.[r];return o?s+encodeURIComponent(o(n)):Array.isArray(n)?n.map((e=>(0,i.Wj)(e)?s+encodeURIComponent(JSON.stringify(e)):s+encodeURIComponent(e))).join("&"):(0,i.Wj)(n)?s+encodeURIComponent(JSON.stringify(n)):s+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function C(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ce(e);const n=R(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw u().warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ue()&&(r=le(r)),T(r)}function P(e){const t=R(e);let r,n;if(t){const e=M(t.proxyUrl);r=e.path,n=e.query?N(e.query):null}if(r){const t=T(e);e=r+"?"+t.path;const s=j({...n,...t.query});s&&(e=`${e}?${s}`)}return e}const I={path:"",query:""};function M(e){const t=e.indexOf("?");return-1!==t?(I.path=e.slice(0,t),I.query=e.slice(t+1)):(I.path=e,I.query=null),I}function x(e){return(e=fe(e=pe(e=M(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:x(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix;let s=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;s=e;break}0===t.indexOf(n)&&(s=e+1)}return r.splice(s,0,t),s}function R(e){const t=f.proxyRules,r=x(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function D(e,t){if(!e||!t)return!1;e=L(e),t=L(t);const r=(0,c.p)(e),n=(0,c.p)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&B(e,t,!0)}function U(e,t){return e=L(e),t=L(t),fe(e)===fe(t)}function L(e){const t=(e=G(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function q(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=f.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function B(e,t,r=!1){if(!e||!t)return!1;const n=be(e),s=be(t);return!(!r&&n.scheme!==s.scheme)&&null!=n.host&&null!=s.host&&n.host.toLowerCase()===s.host.toLowerCase()&&n.port===s.port}function z(e){if("string"==typeof e){if(!K(e))return!0;e=be(e)}if(B(e,O))return!0;const t=f.trustedServers||[];for(let r=0;r<t.length;r++){const n=J(t[r]);for(let t=0;t<n.length;t++)if(B(e,n[t]))return!0}return!1}function J(e){return A[e]||(ae(e)||ie(e)?A[e]=[new w(W(e))]:A[e]=[new w(`http://${e}`),new w(`https://${e}`)]),A[e]}function W(e,t=k,r){return ie(e)?r&&r.preserveProtocolRelative?e:"http"===O.scheme&&O.authority===V(e).slice(2)?`http:${e}`:`https:${e}`:ae(e)?e:H("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=k,r){if(null==e||!K(e))return e;const n=G(e),s=n.toLowerCase(),o=G(t).toLowerCase().replace(/\/+$/,""),i=r?G(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==o.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(s,"/",s.indexOf("//")+2),l=-1;for(;s.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==s.length);)c=a(s,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function G(e){return function(e){const t=f.httpsDomains;if(!function(e){return null!=e&&p.test(e)||"http"===O.scheme&&ie(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),b.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===O.scheme&&n===O.authority&&!m.test(e)||(ue()&&n===O.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||ue()&&!R(e))&&(e=le(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=M(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=W(e=e.trim()))))}function H(...e){const t=e.filter(s.Ru);if(!t?.length)return;const r=[];if(K(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&y.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function V(e,t=!1){if(null==e||Y(e)||Z(e))return null;let r=e.indexOf("://");if(-1===r&&ie(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=fe(e,!0)),e}function K(e){return ie(e)||ae(e)}function Y(e){return null!=e&&"blob:"===e.slice(0,5)}function Z(e){return null!=e&&"data:"===e.slice(0,5)}function X(e){const t=te(e);return t&&t.isBase64?(0,l.M)(t.data):null}function Q(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,s]=t;return{mediaType:r,isBase64:!!n,data:s}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ne(e){return(await fetch(e)).blob()}function se(e){const t=X(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function oe(e,t){!function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}(e,t)}function ie(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ae(e){return null!=e&&h.test(e)}function ce(e){return null!=e&&g.test(e)||"https"===O.scheme&&ie(e)}function le(e){return ie(e)?`https:${e}`:e.replace(p,"https:")}function ue(){return"https"===O.scheme}function fe(e,t=!1){return ie(e)?e.slice(2):(e=e.replace(h,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function de(e){let t=0;if(K(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function he(e,t){if(!e)return"";const r=T(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(!t?.length)return n;const s=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(s,"")}function pe(e){return e.endsWith("/")?e:`${e}/`}function ge(e){return e.replace(/\/+$/,"")}function ye(e,t,r){if(!(t&&r&&e&&K(e)))return e;const n=e.indexOf("//"),s=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(s<0?e.length:s,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function be(e){return"string"==typeof e?new w(W(e)):(e.scheme||(e.scheme=O.scheme),e)}function me(e,t){const r=T(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function _e(e,t,r){const n=T(e),s=n.query||{};return s[t]=String(r),`${n.path}?${j(s)}`}function ve(e,t){if(!t)return e;const r=T(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const s=j(n);return s?`${r.path}?${s}`:r.path}function we(e){if(null==e)return null;const t=e.match(ke);return t?t[2]:null}function Ae(e){if(null==e)return null;const t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function Oe(e){return"string"==typeof e?te(e)??{data:e}:new Promise(((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)}))}const ke=/([^.]*)\.([^\/]*)$/},52268:(e,t,r)=>{"use strict";r.d(t,{L:()=>s});var n=r(8341);function s(e,t,r){return new Proxy({},{get:(s,o,i)=>(...s)=>{let i,a;const c=s[s.length-1];var l;"object"==typeof(l=c)&&!Array.isArray(l)&&null!=l&&("signal"in l||"transferList"in l||0===Object.keys(l).length)&&(i=c.signal,a=c.transferList,s.pop());const u=e.apply(t?`${t}.${o.toString()}`:o.toString(),s,{transferList:a,signal:i});return r?.ignoreConnectionErrors?(0,n.oV)(u):u}})}},61322:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(70333),s=r(49186),o=r(37955),i=r(36563),a=r(97768),c=r(74887),l=r(52268);const u={statsWorker:()=>Promise.all([r.e(6285),r.e(4996),r.e(8902),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(3009)]).then(r.bind(r,33009)),geometryEngineWorker:()=>Promise.all([r.e(9930),r.e(6387)]).then(r.bind(r,68887)),CSVSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(1207)]).then(r.bind(r,25209)),EdgeProcessingWorker:()=>Promise.all([r.e(3030),r.e(3099),r.e(5592)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(2603),r.e(3030),r.e(2324)]).then(r.bind(r,38419)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(893),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(8383)]).then(r.bind(r,11780)),GeoJSONSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(9576)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),MemorySourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(7510)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(4996),r.e(8902),r.e(4080),r.e(9748)]).then(r.bind(r,97367)),FeaturePipelineWorker:()=>Promise.all([r.e(6285),r.e(1874),r.e(7255),r.e(1956),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(893),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(9976),r.e(9423),r.e(8972),r.e(8220)]).then(r.bind(r,65744)),PointCloudWorker:()=>Promise.all([r.e(4996),r.e(2603),r.e(4873),r.e(4798)]).then(r.bind(r,64798)),RasterWorker:()=>Promise.all([r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(984),r.e(7139),r.e(5496)]).then(r.bind(r,82958)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2603),r.e(3030),r.e(3099),r.e(4587)]).then(r.bind(r,24587)),SceneLayerWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(7251),r.e(4996),r.e(8902),r.e(4080),r.e(2603),r.e(4873),r.e(347),r.e(2469),r.e(4801)]).then(r.bind(r,2060)),WFSSourceWorker:()=>Promise.all([r.e(6285),r.e(7251),r.e(4996),r.e(835),r.e(8902),r.e(4080),r.e(2603),r.e(8438),r.e(201),r.e(545),r.e(4322),r.e(3238)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(4996),r.e(8902),r.e(9976),r.e(8705),r.e(9423),r.e(3379)]).then(r.bind(r,11764)),Lyr3DWorker:()=>r.e(9234).then(r.bind(r,79234))};var f=r(8341),d=r(18357);const{CLOSE:h,ABORT:p,INVOKE:g,RESPONSE:y,OPEN_PORT:b,ON:m}=f.Go;class _{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===f.Go.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const s=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=s),v.clients.set(s,n),r.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}constructor(e,t,r){this._port=e,this._jobQueue=r,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new _((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:h}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new s.A(f.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,f.Jc)();return new Promise(((r,s)=>{if((0,c.G4)(n))return this._processWork(),void s((0,c.NK)());const l=(0,c.u7)(n,(()=>{const e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,a.xt)(e.abortHandle),this._post({type:p,jobId:i}),s((0,c.NK)()))})),u={resolve:r,reject:s,abortHandle:l,debugInfo:e};this._outJobs.set(i,u),this._post({type:g,jobId:i,methodName:e,abortable:null!=n},t,o)}))}createInvokeProxy(e,t){return(0,l.L)(this,e,t)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:f.Go.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)((()=>{r.port1.postMessage({type:f.Go.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}))}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._jobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:s}=e;this.apply(t,r,n).then((e=>s.resolve(e))).catch((e=>s.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,a.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null}_onMessage(e){null!=this._schedule?this._schedule((()=>this._processMessage(e,!0))):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,f.VI)(e);if(r)switch(r.type){case y:this._onResponseMessage(r);break;case g:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case p:this._onAbortMessage(r);break;case h:this._onCloseMessage();break;case b:this._onOpenPortMessage(r);break;case m:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:s}=e,o=s?new AbortController:null,i=this._inJobs;let a,l=this._client,u=l[t];try{if(!u&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],u=l[e[t+1]]}if("function"!=typeof u)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:o?o.signal:null}),a=u.apply(l,n)}catch(e){return void this._post({type:y,jobId:r,error:(0,f.mF)(e)})}(0,c.$X)(a)?(i.set(r,{controller:o,promise:a}),a.then((e=>{i.has(r)&&(i.delete(r),this._post({type:y,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,c.zf)(e)||this._post({type:y,jobId:r,error:(0,f.mF)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:y,jobId:r},a)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,o.on)(e.port,"message",(e=>{const s=(0,f.VI)(e);s?.type===f.Go.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;const i=o.get(t);o.delete(t),this._processWork(),(0,a.xt)(i.abortHandle),r?i.reject(s.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,f.u1)(this._port,e,t,r)}}v.kernelInfo={buildDate:d.$,fullVersion:n.ol,revision:d.u},v.clients=new Map},8341:(e,t,r)=>{"use strict";r.d(t,{Go:()=>i,Jc:()=>l,T:()=>o,VI:()=>d,mF:()=>u,oV:()=>p,u1:()=>f});var n=r(44208),s=r(74887);const o="worker:port-closed";var i,a;(a=i||(i={}))[a.HANDSHAKE=0]="HANDSHAKE",a[a.OPEN=1]="OPEN",a[a.OPENED=2]="OPENED",a[a.RESPONSE=3]="RESPONSE",a[a.INVOKE=4]="INVOKE",a[a.ABORT=5]="ABORT",a[a.CLOSE=6]="CLOSE",a[a.OPEN_PORT=7]="OPEN_PORT",a[a.ON=8]="ON";let c=0;function l(){return c++}function u(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function f(e,t,r,s){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let o;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(o=h(r.transferList),t.data=r.result):(o=h(s),t.data=r),o){if((0,n.A)("ff"))for(const r of o)if("byteLength"in r&&r.byteLength>267386880){const r="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case i.INVOKE:throw r;case i.RESPONSE:return void f(e,{type:i.RESPONSE,jobId:t.jobId,error:u(r)})}}e.postMessage(t,o)}else e.postMessage(t)}function d(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function h(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e)));return t.length?t:null}async function p(e){try{return await e}catch(e){const t=e?.name===o;if(!(0,s.zf)(e)&&!t)throw e;return}}},70333:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>l,Y3:()=>u,id:()=>a,ol:()=>c,rE:()=>i});var n=r(44208),s=r(84952),o=r(18357);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const i="4.30";let a,c=i;function l(e){a=e}function u(e){const t=a?.findCredential(e);return t?.token?(0,s.rs)(e,"token",t.token):e}c=`4.30.0-next.${o.$}`,(0,n.A)("host-webworker")},39131:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,p:()=>o});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,s={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function o(e){const t=e?.match(n);if(!t)return null;const[,r,o,i]=t;if(!r)return null;let a=null,c=null,l=null;const{devext:u,qaext:f,www:d}=s;if(o)if(a=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qa":({customBaseUrl:c,portalHostname:l}=f);break;default:return null}else({customBaseUrl:c,portalHostname:l}=d);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qaext":({customBaseUrl:c,portalHostname:l}=f);break;case"www":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:a}}function i(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}},26306:(e,t,r)=>{"use strict";function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function s(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>s})},18357:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,u:()=>s});const n="20240309",s="c7778e917036ce0b0cc9125098afb30720e460ac"}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{146:"03ae0196aafcb6146f61",177:"13901677c9a53d6e814c",191:"090697a2a46210da2111",201:"0feee6447793bc42df9d",309:"e61a9d609a415027c0ec",347:"f0cd48d5f5f09ed01773",349:"198d74db9631a66bd850",369:"3871d2ecef5bcf6ac14f",382:"bfef87eb228c96004a4a",545:"523903a812624d0d6d06",710:"2d1ba4195ef39303f18a",806:"e966cccee47213423a98",820:"83d39f990223ca97a320",833:"1805a6e63a1bfe6950be",835:"d54500cf91321b705565",893:"9ecc225c87ba2637a298",951:"1fdbeb110fae52b96bb3",980:"37ccafc356b05c5069a3",984:"07f017d3af8051577cae",1053:"71bd94cc789a55910f92",1099:"cee492b97e841a6d4678",1109:"618393798d39655debf5",1132:"6cf429ec513941f4a4e1",1147:"84d01db908f7a866c5d1",1204:"7b0a047e2c9cb66c4317",1207:"50a7742a7e7f7eda5bee",1273:"a0ffd2e97d1f2fceae33",1277:"a8cdef83cbd7895b6e61",1346:"8d9e2d1b62cf4fd5697d",1384:"b3384b076fcdd24150fc",1405:"16da21e329db54ccf49b",1743:"933f56e7299a5844e367",1756:"c4eee7393f944ee80947",1874:"eb53c23110ba9ce1e687",1956:"758cacaad381bbca5d8a",2169:"85a1c34e826c02effb5d",2180:"f377671911800f9eac6a",2186:"d344e99dd999aaaabbe3",2194:"40c6f8dd21c0709c43e9",2209:"e78e92e024275eccea4e",2288:"a1978ae86e466020dd28",2324:"7a3a6bb83b03bbb3e1dc",2343:"d206f750dd2933c7e6b0",2390:"ab1b23decd5bae49155a",2432:"1c1dbbe33b6dd0263003",2439:"a787174b082755267aa7",2469:"6838c010828843223ef4",2472:"fd4ec788953d9776126f",2558:"5ee4f59a9b742ce114c7",2593:"15c20dc5a41b63547214",2603:"b6185ae51c0597914857",2731:"6b0baecbd35d26393dcf",2857:"7025dd8bf67178d7d9bc",2933:"b8ec3991daddacd2f7e3",2958:"236e0f5d5ac1a6ea1107",2980:"2801fa3eeb6511324632",3009:"76b5e8434565ca4affb9",3030:"34194ede2889e813bbcf",3049:"615edb84daad08678931",3069:"f1313389eeb7a2350db3",3091:"7705cece774716d21e63",3099:"7a588b836715a9c9c25f",3209:"2e62e34c85d8505c98f4",3238:"fc2a12f9e4068ab89628",3359:"ef19c4fabc3682fc7aa7",3379:"4e6091bf95d1042eecd2",3390:"b145b5410b4b3e1e4704",3448:"77e92ede846dcae674b7",3477:"480feabd5eaa128f3756",3490:"cb9d1f24ebd4763412df",3492:"eeba69706900701fed92",3522:"16f1ede633a712a555a6",3526:"39ff4d571abbd2df5d5b",3543:"dd04b5b9ee73b28c5254",3561:"0ad628ba26fd1798ca9b",3600:"7b07f3bc68a54974cd03",3622:"17a33c1eca0f2908b1a1",3666:"e538d269ff6c79a8fd3b",3709:"f484d2a3deb3c60d7038",3755:"85d573c58a6b80c38c1d",3761:"ed9f1e669045f9031581",3874:"cd7f4783bbf761ec43d9",3920:"9326343d8d4a66b96b01",4012:"00abd5e431fd5f72b35b",4045:"ab2d4f6595abdefcc71f",4080:"4940479dd449e5dc2eed",4239:"bf041907bac8fae05c2b",4244:"899b4539e516f44c51af",4322:"2db2370d7588cd9969ad",4349:"182f94904b6eb611b886",4543:"4e9740f3955a8c45fb2d",4562:"4fd7960a0ab8fbd6507d",4587:"0272af5adbbd4482f50d",4591:"1f246954cbcee02522a2",4613:"7a5e8eb8ea826864c7da",4665:"6fa0abf415859f40ea6c",4784:"6c5ea910265d4f6a368d",4798:"6dbbfbaa37f4f6bf2120",4800:"4cce06bab32e9ab5033f",4801:"57c7c2c5885b46a951e1",4832:"49a715520999bbfab18d",4850:"678ffc061fe5dec51930",4873:"4e20931f6a5327a06b1d",4983:"3f8a37567bfa6976ca00",4996:"86fe8077986a991f0462",5028:"87c30b4dee17b4a1ecb5",5112:"ec3c06632caf9c61230e",5141:"22041e7989de952626e0",5165:"f46bc8e507d75d218ac7",5181:"f5a0f106d9edaddb83fa",5257:"5f40ed1ff37670b47bb6",5356:"be10d0b4ad5c0b4a1b2e",5367:"ac95efd57f7c1472698a",5394:"b58dd3f487fdff71500f",5399:"cac2e1fb4d15074f8b6e",5404:"f67f61afded4f4e21821",5494:"c018ce3935d5f1e60e3c",5496:"01fc139749c57bd59e21",5513:"ea7e4f72a5b65ecb1c23",5588:"6d72830b7ab67b427ac7",5592:"e678b2a0dc6c2824910a",5613:"7bba67d345da6eced804",5665:"4e4ad7ac43a72a2f88a1",5720:"a38ab7cb733426de9588",5771:"c8a91855222e50591a4f",5804:"46f6a190e3c943b44095",5856:"8b4304f47c6f060f793f",5899:"1ed6fba0d188f845eaa6",6052:"c16ed88e7733b1d31041",6184:"90c569353df5af9ed368",6187:"0008d178ba41307f7bb4",6247:"5c9e6d1a88fac48baf3a",6285:"aac4154d209bede7322a",6387:"947149f819e8278ec8c1",6591:"d0cf48abf951ae58ab15",6845:"8526061e12755d6ddfd1",6888:"6d34b96d73916fb237ba",7087:"c8634493442e8e1ce32b",7139:"bbedc4ff3d0aadbde16a",7202:"61d903fe9200dced54df",7251:"c2e21513c8cdc07138aa",7255:"73abe796d82ef4241070",7301:"a611e0543d4b4bb01f3c",7364:"ca44e35dae7c37a28bf6",7367:"d518a0adc3d88700235c",7510:"92fc6c48ff9f50a7351a",7559:"451555af283b32a10fef",7619:"c0217dde5ff4d6a4c14c",7656:"f99e1182db5090261fe0",7738:"6b6bbd969d21282b9936",7761:"4f284f85d4a446c1204a",7778:"8be0df498101438ff671",7784:"dccf636a7dfc548bcd75",7982:"36d697a3788b86f24588",8018:"5c6e109fa21aeb10da18",8096:"2a612d51c7be754dacaa",8220:"6b817d4b7ea08db6bfd6",8228:"f8dd749722ebb731d5f5",8383:"a1a557cbfb0aa915f81b",8392:"40eb89485beba79167e0",8438:"d8dc9be80a36f57144d5",8491:"86143534b2e35ede6819",8541:"1972e6be738a3b9289e8",8612:"2d60f3af5886b7dea9ee",8628:"187e056c251e69c9b5d2",8705:"589cee0b2c8c4314e752",8774:"c2573c1cb7c714435acc",8823:"138ac5fafff8492379e3",8902:"5c2091816c6c3f630c90",8961:"955d7a0c8b2cdabfa8a3",8972:"9fd907dad340454fb585",9013:"b226161c2ad448347689",9040:"0fab1cb76be1460fcba5",9062:"e038158e871e3803321a",9234:"771b95d28e1c9a14df64",9321:"3568168ee1c278a78550",9342:"caf7d005a55851ada1f9",9345:"79f36c3a2026c2f35fb0",9384:"5ebbad37a442d948ade1",9414:"e3d3684ab802fb89fa0f",9423:"913d09c0d6108eda0d99",9576:"5f5f6bba98e5671e63a7",9588:"a69e885336eb5d2729fd",9748:"b70be572d509557428f4",9755:"41cc7da9ce32febe6dd0",9838:"0281c669d63ff132337f",9930:"b20412f08361ba99f73e",9933:"8917f97888d1290f56d2",9940:"79c4f10da8360ee60cd2",9976:"25df870fff223ac54a9a"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[s,o,i]=t;for(var a in o)r.o(o,a)&&(r.m[a]=o[a]);for(i&&i(r);s.length;)e[s.pop()]=1;n(t)}})(),r(2131);var n=r(61322);RemoteClient=n})();
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3477],{68197:(t,e,n)=>{n.d(e,{A:()=>d});var r,i,s=n(40876),o=n(34727),l=n(56507);function a(t){return(0,o.qE)((0,l.Vr)(t),0,255)}function u(t,e,n){return t=Number(t),isNaN(t)?n:t<e?e:t>n?n:t}function p(t,e){const n=t.toString(16).padStart(2,"0");return e?n.substring(0,1):n}class c{static blendColors(t,e,n,r=new c){return r.r=Math.round(t.r+(e.r-t.r)*n),r.g=Math.round(t.g+(e.g-t.g)*n),r.b=Math.round(t.b+(e.b-t.b)*n),r.a=t.a+(e.a-t.a)*n,r._sanitize()}static fromRgb(t,e){const n=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),r=n[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){const n=t[0];if("%"===n.charAt(n.length-1)){const n=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(n[3]=parseFloat(t[3])),c.fromArray(n,e)}return c.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return c.fromArray((0,s.z$)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new c){if("#"!==t[0]||isNaN(Number(`0x${t.substring(1)}`)))return null;switch(t.length){case 4:case 5:{const n=parseInt(t.substring(1,2),16),r=parseInt(t.substring(2,3),16),i=parseInt(t.substring(3,4),16),s=5===t.length?15:parseInt(t.substring(4),16);return c.fromArray([n+16*n,r+16*r,i+16*i,(s+16*s)/255],e)}case 7:case 9:{const n=parseInt(t.substring(1,3),16),r=parseInt(t.substring(3,5),16),i=parseInt(t.substring(5,7),16),s=7===t.length?255:parseInt(t.substring(7),16);return c.fromArray([n,r,i,s/255],e)}default:return null}}static fromArray(t,e=new c){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const n=(0,s.V6)(t)?(0,s.TS)(t):null;return n&&c.fromArray(n,e)||c.fromRgb(t,e)||c.fromHex(t,e)}static fromJSON(t){return null!=t?new c([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?c.fromString(t,this):Array.isArray(t)?c.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,n=t?.digits??6,r=3===n||4===n,i=4===n||8===n,s=`#${p(this.r,r)}${p(this.g,r)}${p(this.b,r)}${i?p(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=c.AlphaMode.ALWAYS){const e=a(this.r),n=a(this.g),r=a(this.b);return t===c.AlphaMode.ALWAYS||1!==this.a?[e,n,r,a(255*this.a)]:[e,n,r]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}}c.prototype.declaredClass="esri.Color",(i=(r=c||(c={})).AlphaMode||(r.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const d=c},60945:(t,e,n)=>{n.d(e,{A:()=>m});var r,i=n(90237),s=n(25482),o=n(88930),l=n(10107),a=(n(44208),n(53966),n(87811),n(36005)),u=n(40608),p=n(43937),c=n(56400);let d=r=class extends s.oY{static get allTime(){return h}static get empty(){return y}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===r&&n===i}expandTo(t,e=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,o.lL)(n,t,e));let i=this.end;if(i){const n=(0,o.lL)(i,t,e);i=i.getTime()===n.getTime()?n:(0,o.S1)(n,1,t,e)}return new r({start:n,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,s=t.end?.getTime()??1/0;let o,l;return i>=e&&i<=n?o=i:e>=i&&e<=s&&(o=e),n>=i&&n<=s?l=n:s>=e&&s<=n&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?r.empty:new r({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(t,e,n=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:s,end:l}=this;return null!=s&&(i.start=(0,o.S1)(s,t,e,n)),null!=l&&(i.end=(0,o.S1)(l,t,e,n)),i}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return h.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,i._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i._)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,i._)([(0,p.K)("end")],d.prototype,"writeEnd",null),(0,i._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i._)([(0,a.w)("start")],d.prototype,"readStart",null),(0,i._)([(0,p.K)("start")],d.prototype,"writeStart",null),d=r=(0,i._)([(0,u.$)("esri.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0}),m=d},45475:(t,e,n)=>{n.d(e,{A:()=>h});var r=n(90237),i=n(69622),s=n(4576),o=n(69540),l=n(4902),a=n(25482),u=n(10107),p=(n(44208),n(53966),n(40608));let c=0,d=class extends((0,a.Te)((0,o.O)((0,l.sA)(i.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${c++}`,this.title=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}get isEditable(){return this.requiredPropertiesForEditing.every(s.Ru)}};(0,r._)([(0,u.MZ)({type:String,constructOnly:!0,clonable:!1})],d.prototype,"id",void 0),(0,r._)([(0,u.MZ)({type:String})],d.prototype,"title",void 0),(0,r._)([(0,u.MZ)({clonable:!1,value:null})],d.prototype,"parent",null),(0,r._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isEditable",null),d=(0,r._)([(0,p.$)("esri.analysis.Analysis")],d);const h=d},69540:(t,e,n)=>{n.d(e,{O:()=>p,P:()=>c});var r=n(90237),i=n(69622),s=(n(44208),n(4718)),o=(n(53966),n(97768)),l=n(35666),a=n(88620),u=n(40608);const p=t=>{let e=class extends t{clone(){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,n=t.store,r={},i=new Map;for(const t in e){const o=e[t],a=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const p=this[t];let c=null;c="function"==typeof u?u(p):"reference"===u?p:(0,s.TU)(p),null!=p&&null==c||(a===l.Gr.DEFAULTS?i.set(t,c):r[t]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,n]of i)t.set(e,n,l.Gr.DEFAULTS)}return u}};return e=(0,r._)([(0,u.$)("esri.core.Clonable")],e),e};let c=class extends(p(i.A)){};c=(0,r._)([(0,u.$)("esri.core.Clonable")],c)},69052:(t,e,n)=>{n.d(e,{ie:()=>l});var r=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return s(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return s(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function s(t,e,n,r,i=0,s=!1){return(r-=i)<e?r+=o(t,e-r):r>n&&(r-=o(t,r-n)),s&&r===n&&(r=e),r+i}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}new i(0,2*Math.PI),new i(-Math.PI,Math.PI);const l=new i(0,360)},4902:(t,e,n)=>{n.d(e,{PH:()=>l,sA:()=>o});var r=n(90237),i=n(40608);let s=0;const o=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return e=(0,r._)([(0,i.$)("esri.core.Identifiable")],e),e},l=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return e=(0,r._)([(0,i.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};let a=class extends(o(class{})){};a=(0,r._)([(0,i.$)("esri.core.Identifiable")],a)},36708:(t,e,n)=>{n.d(e,{C_:()=>d,OH:()=>m,Vh:()=>g,on:()=>c,pc:()=>f,wB:()=>a,z7:()=>u}),n(60999),n(5503);var r=n(37955),i=n(36563),s=n(97768),o=n(74887),l=n(14012);function a(t,e,n={}){return p(t,e,n,h)}function u(t,e,n={}){return p(t,e,n,y)}function p(t,e,n={},r){let i=null;const o=n.once?(t,n)=>{r(t)&&((0,s.xt)(i),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(i=(0,l.Cn)(t,o,n.sync,n.equals),n.initial){const e=t();o(e,e)}return i}function c(t,e,n,o={}){let l=null,u=null,p=null;function c(){l&&u&&(u.remove(),o.onListenerRemove?.(l),l=null,u=null)}function d(t){o.once&&o.once&&(0,s.xt)(p),n(t)}const h=a(t,((t,n)=>{c(),(0,r.wb)(t)&&(l=t,u=(0,r.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return p=(0,i.hA)((()=>{h.remove(),c()})),p}function d(t,e){return function(t,e,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const r=t();if(e?.(r))return Promise.resolve(r);let l=null;function a(){l=(0,s.xt)(l)}return new Promise(((r,s)=>{l=(0,i.vE)([(0,o.u7)(n,(()=>{a(),s((0,o.NK)())})),p(t,(t=>{a(),r(t)}),{sync:!1,once:!0},e??h)])}))}(t,y,e)}function h(t){return!0}function y(t){return!!t}n(80559);const m={sync:!0},g={initial:!0},f={sync:!0,initial:!0}},71493:(t,e,n)=>{n.r(e),n.d(e,{default:()=>j});var r=n(90237),i=n(45475),s=n(68197),o=n(69540),l=n(25482),a=n(90629),u=n(10107),p=n(56507),c=(n(87811),n(44208),n(40608));let d=class extends((0,l.Te)(o.P)){constructor(t){super(t),this.type="simple",this.color=new s.A("black"),this.lineSize=2,this.fontSize=10,this.textColor=new s.A("black"),this.textBackgroundColor=new s.A([255,255,255,.6])}};(0,r._)([(0,u.MZ)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],d.prototype,"color",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,range:{min:(0,a.PN)(1)},json:{write:{isRequired:!0}}})],d.prototype,"lineSize",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,json:{write:{isRequired:!0}}})],d.prototype,"fontSize",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],d.prototype,"textColor",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],d.prototype,"textBackgroundColor",void 0),d=(0,r._)([(0,c.$)("esri.analysis.DimensionSimpleStyle")],d);const h=d;var y;n(59456),function(t){t.Horizontal="horizontal",t.Vertical="vertical",t.Direct="direct"}(y||(y={}));const m=[y.Horizontal,y.Vertical,y.Direct];var g=n(69052),f=n(79901),b=n(86738);let w=class extends((0,l.Te)(o.P)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType=y.Direct,this.offset=0,this.orientation=0}};(0,r._)([(0,u.MZ)({type:["length"],json:{write:{isRequired:!0}}})],w.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:b.A,json:{write:!0}})],w.prototype,"startPoint",void 0),(0,r._)([(0,u.MZ)({type:b.A,json:{write:!0}})],w.prototype,"endPoint",void 0),(0,r._)([(0,u.MZ)({type:m,nonNullable:!0,json:{write:{isRequired:!0}}})],w.prototype,"measureType",void 0),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],w.prototype,"offset",void 0),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,f.w)((t=>g.ie.normalize((0,p.GB)(t),0,!0)))],w.prototype,"orientation",void 0),w=(0,r._)([(0,c.$)("esri.analysis.LengthDimension")],w);const A=w;var _=n(5503),M=n(62885),v=n(36708),Z=(n(53966),n(5443)),S=n(57251);const E=_.A.ofType(A);let x=class extends i.A{constructor(t){super(t),this.type="dimension",this.style=new h,this.extent=null}initialize(){this.addHandles((0,v.wB)((()=>this._computeExtent()),(t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)}),v.pc))}get dimensions(){return this._get("dimensions")||new E}set dimensions(t){this._set("dimensions",(0,M.V)(t,this.dimensions,E))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get requiredPropertiesForEditing(){return this.dimensions.reduce(((t,e)=>(t.push(e.startPoint,e.endPoint),t)),[])}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const n=(0,S.projectOrLoadMany)(e,t);if(null!=n.pending)return{pending:n.pending,extent:null};let r=null;return null!=n.geometries&&(r=n.geometries.reduce(((t,e)=>null==t?null!=e?Z.A.fromPoint(e):null:null!=e?t.union(Z.A.fromPoint(e)):t),null)),{pending:null,extent:r}}clear(){this.dimensions.removeAll()}};(0,r._)([(0,u.MZ)({type:["dimension"]})],x.prototype,"type",void 0),(0,r._)([(0,u.MZ)({cast:M.H,type:E,nonNullable:!0})],x.prototype,"dimensions",null),(0,r._)([(0,u.MZ)({readOnly:!0})],x.prototype,"spatialReference",null),(0,r._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:h}},nonNullable:!0})],x.prototype,"style",void 0),(0,r._)([(0,u.MZ)({value:null,readOnly:!0})],x.prototype,"extent",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],x.prototype,"requiredPropertiesForEditing",null),x=(0,r._)([(0,c.$)("esri.analysis.DimensionAnalysis")],x);const N=x;var P=n(92071),T=n(43937),O=n(4146),D=n(16131);let R=class extends((0,D.q)((0,P.P)(O.A))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new N,this.opacity=1,t){const{source:e,style:n}=t;e&&n&&(e.style=n)}}initialize(){this.addHandles([(0,v.wB)((()=>this.source),((t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)}),v.pc)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new N)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,n,r){e.dimensions=t.filter((({startPoint:t,endPoint:e})=>null!=t&&null!=e)).map((t=>t.toJSON(r))).toJSON()}};(0,r._)([(0,u.MZ)({json:{read:!1},readOnly:!0})],R.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:["ArcGISDimensionLayer"]})],R.prototype,"operationalLayerType",void 0),(0,r._)([(0,u.MZ)({nonNullable:!0})],R.prototype,"source",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],R.prototype,"spatialReference",null),(0,r._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:h}},json:{write:{ignoreOrigin:!0}}})],R.prototype,"style",null),(0,r._)([(0,u.MZ)({readOnly:!0})],R.prototype,"fullExtent",null),(0,r._)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],R.prototype,"opacity",void 0),(0,r._)([(0,u.MZ)({type:["show","hide"]})],R.prototype,"listMode",void 0),(0,r._)([(0,u.MZ)({type:_.A.ofType(A),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],R.prototype,"dimensions",null),(0,r._)([(0,T.K)("web-scene","dimensions")],R.prototype,"writeDimensions",null),R=(0,r._)([(0,c.$)("esri.layers.DimensionLayer")],R);const j=R},4146:(t,e,n)=>{n.d(e,{A:()=>w});var r=n(90237),i=(n(59456),n(78888)),s=n(49186),o=n(65529),l=n(4902),a=n(92474),u=n(53966),p=n(74887),c=n(84952),d=n(10107),h=(n(44208),n(87811),n(40608)),y=n(92602),m=n(5443),g=n(16930);let f=0,b=class extends(o.A.EventedMixin((0,l.sA)(a.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(7982).then(n.bind(n,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(5613).then(n.bind(n,45613));try{return await r(e)}catch(t){const n=e?.portalItem,r=n?.id||"unset",i=n?.portal?.url||y.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,p.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.MZ)({type:m.A})],b.prototype,"fullExtent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,r._)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,r._)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,r._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,r._)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,r._)([(0,d.MZ)({type:g.A})],b.prototype,"spatialReference",void 0),(0,r._)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,r._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,r._)([(0,d.MZ)()],b.prototype,"url",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,r._)([(0,h.$)("esri.layers.Layer")],b);const w=b}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5720],{68197:(e,t,r)=>{r.d(t,{A:()=>d});var i,o,n=r(40876),s=r(34727),l=r(56507);function a(e){return(0,s.qE)((0,l.Vr)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function p(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class c{static blendColors(e,t,r,i=new c){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),i=r[1];if("rgb"===i&&3===e.length||"rgba"===i&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),c.fromArray(r,t)}return c.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===i&&3===e.length||"hsla"===i&&4===e.length)return c.fromArray((0,n.z$)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new c){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),i=parseInt(e.substring(2,3),16),o=parseInt(e.substring(3,4),16),n=5===e.length?15:parseInt(e.substring(4),16);return c.fromArray([r+16*r,i+16*i,o+16*o,(n+16*n)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16),n=7===e.length?255:parseInt(e.substring(7),16);return c.fromArray([r,i,o,n/255],t)}default:return null}}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.V6)(e)?(0,n.TS)(e):null;return r&&c.fromArray(r,t)||c.fromRgb(e,t)||c.fromHex(e,t)}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?c.fromString(e,this):Array.isArray(e)?c.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,o=4===r||8===r,n=`#${p(this.r,i)}${p(this.g,i)}${p(this.b,i)}${o?p(Math.round(255*this.a),i):""}`;return t?n.toUpperCase():n}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=c.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),i=a(this.b);return e===c.AlphaMode.ALWAYS||1!==this.a?[t,r,i,a(255*this.a)]:[t,r,i]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}c.prototype.declaredClass="esri.Color",(o=(i=c||(c={})).AlphaMode||(i.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const d=c},60945:(e,t,r)=>{r.d(t,{A:()=>m});var i,o=r(90237),n=r(25482),s=r(88930),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),c=r(56400);let d=i=class extends n.oY{static get allTime(){return h}static get empty(){return y}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,o=e.end?.getTime()??e.end;return t===i&&r===o}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.lL)(r,e,t));let o=this.end;if(o){const r=(0,s.lL)(o,e,t);o=o.getTime()===r.getTime()?r:(0,s.S1)(r,1,e,t)}return new i({start:r,end:o})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,o=e.start?.getTime()??-1/0,n=e.end?.getTime()??1/0;let s,l;return o>=t&&o<=r?s=o:t>=o&&t<=n&&(s=t),r>=o&&r<=n?l=r:n>=t&&n<=r&&(l=n),null==s||null==l||isNaN(s)||isNaN(l)?i.empty:new i({start:s===-1/0?null:new Date(s),end:l===1/0?null:new Date(l)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const o=new i,{start:n,end:l}=this;return null!=n&&(o.start=(0,s.S1)(n,e,t,r)),null!=l&&(o.end=(0,s.S1)(l,e,t,r)),o}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,o._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,o._)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,o._)([(0,p.K)("end")],d.prototype,"writeEnd",null),(0,o._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,o._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,o._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,o._)([(0,a.w)("start")],d.prototype,"readStart",null),(0,o._)([(0,p.K)("start")],d.prototype,"writeStart",null),d=i=(0,o._)([(0,u.$)("esri.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0}),m=d},69540:(e,t,r)=>{r.d(t,{O:()=>p,P:()=>c});var i=r(90237),o=r(69622),n=(r(44208),r(4718)),s=(r(53966),r(97768)),l=r(35666),a=r(88620),u=r(40608);const p=e=>{let t=class extends e{clone(){const e=(0,a.oY)(this);(0,s.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,i={},o=new Map;for(const e in t){const s=t[e],a=r?.originOf(e),u=s.clonable;if(s.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const p=this[e];let c=null;c="function"==typeof u?u(p):"reference"===u?p:(0,n.TU)(p),null!=p&&null==c||(a===l.Gr.DEFAULTS?o.set(e,c):i[e]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(o.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,r]of o)e.set(t,r,l.Gr.DEFAULTS)}return u}};return t=(0,i._)([(0,u.$)("esri.core.Clonable")],t),t};let c=class extends(p(o.A)){};c=(0,i._)([(0,u.$)("esri.core.Clonable")],c)},69052:(e,t,r)=>{r.d(t,{ie:()=>l});var i=r(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return n(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+s(this.range,e-t,r)}minimalMonotonic(e,t,r){return n(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function n(e,t,r,i,o=0,n=!1){return(i-=o)<t?i+=s(e,t-i):i>r&&(i-=s(e,i-r)),n&&i===r&&(i=t),i+o}function s(e,t,r=0){return Math.ceil((t-r)/e)*e+r}new o(0,2*Math.PI),new o(-Math.PI,Math.PI);const l=new o(0,360)},4902:(e,t,r)=>{r.d(t,{PH:()=>l,sA:()=>s});var i=r(90237),o=r(40608);let n=0;const s=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,i._)([(0,o.$)("esri.core.Identifiable")],t),t},l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,i._)([(0,o.$)("esri.core.Identifiable.NumericIdentifiable")],t),t};let a=class extends(s(class{})){};a=(0,i._)([(0,o.$)("esri.core.Identifiable")],a)},80200:(e,t,r)=>{r.d(t,{T:()=>i,d:()=>m});const i={Base64:0,Hex:1,String:2,Raw:3},o=8,n=(1<<o)-1;function s(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function l(e){const t=[];for(let r=0,i=e.length*o;r<i;r+=o)t[r>>5]|=(e.charCodeAt(r/o)&n)<<r%32;return t}function a(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=o)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function u(e,t,r,i,o,n){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(i,n)),o),r)}function p(e,t,r,i,o,n,s){return u(t&r|~t&i,e,t,o,n,s)}function c(e,t,r,i,o,n,s){return u(t&i|r&~i,e,t,o,n,s)}function d(e,t,r,i,o,n,s){return u(t^r^i,e,t,o,n,s)}function h(e,t,r,i,o,n,s){return u(r^(t|~i),e,t,o,n,s)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,o=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const l=r,a=i,u=o,y=n;r=p(r,i,o,n,e[t],7,-680876936),n=p(n,r,i,o,e[t+1],12,-389564586),o=p(o,n,r,i,e[t+2],17,606105819),i=p(i,o,n,r,e[t+3],22,-1044525330),r=p(r,i,o,n,e[t+4],7,-176418897),n=p(n,r,i,o,e[t+5],12,1200080426),o=p(o,n,r,i,e[t+6],17,-1473231341),i=p(i,o,n,r,e[t+7],22,-45705983),r=p(r,i,o,n,e[t+8],7,1770035416),n=p(n,r,i,o,e[t+9],12,-1958414417),o=p(o,n,r,i,e[t+10],17,-42063),i=p(i,o,n,r,e[t+11],22,-1990404162),r=p(r,i,o,n,e[t+12],7,1804603682),n=p(n,r,i,o,e[t+13],12,-40341101),o=p(o,n,r,i,e[t+14],17,-1502002290),i=p(i,o,n,r,e[t+15],22,1236535329),r=c(r,i,o,n,e[t+1],5,-165796510),n=c(n,r,i,o,e[t+6],9,-1069501632),o=c(o,n,r,i,e[t+11],14,643717713),i=c(i,o,n,r,e[t],20,-373897302),r=c(r,i,o,n,e[t+5],5,-701558691),n=c(n,r,i,o,e[t+10],9,38016083),o=c(o,n,r,i,e[t+15],14,-660478335),i=c(i,o,n,r,e[t+4],20,-405537848),r=c(r,i,o,n,e[t+9],5,568446438),n=c(n,r,i,o,e[t+14],9,-1019803690),o=c(o,n,r,i,e[t+3],14,-187363961),i=c(i,o,n,r,e[t+8],20,1163531501),r=c(r,i,o,n,e[t+13],5,-1444681467),n=c(n,r,i,o,e[t+2],9,-51403784),o=c(o,n,r,i,e[t+7],14,1735328473),i=c(i,o,n,r,e[t+12],20,-1926607734),r=d(r,i,o,n,e[t+5],4,-378558),n=d(n,r,i,o,e[t+8],11,-2022574463),o=d(o,n,r,i,e[t+11],16,1839030562),i=d(i,o,n,r,e[t+14],23,-35309556),r=d(r,i,o,n,e[t+1],4,-1530992060),n=d(n,r,i,o,e[t+4],11,1272893353),o=d(o,n,r,i,e[t+7],16,-155497632),i=d(i,o,n,r,e[t+10],23,-1094730640),r=d(r,i,o,n,e[t+13],4,681279174),n=d(n,r,i,o,e[t],11,-358537222),o=d(o,n,r,i,e[t+3],16,-722521979),i=d(i,o,n,r,e[t+6],23,76029189),r=d(r,i,o,n,e[t+9],4,-640364487),n=d(n,r,i,o,e[t+12],11,-421815835),o=d(o,n,r,i,e[t+15],16,530742520),i=d(i,o,n,r,e[t+2],23,-995338651),r=h(r,i,o,n,e[t],6,-198630844),n=h(n,r,i,o,e[t+7],10,1126891415),o=h(o,n,r,i,e[t+14],15,-1416354905),i=h(i,o,n,r,e[t+5],21,-57434055),r=h(r,i,o,n,e[t+12],6,1700485571),n=h(n,r,i,o,e[t+3],10,-1894986606),o=h(o,n,r,i,e[t+10],15,-1051523),i=h(i,o,n,r,e[t+1],21,-2054922799),r=h(r,i,o,n,e[t+8],6,1873313359),n=h(n,r,i,o,e[t+15],10,-30611744),o=h(o,n,r,i,e[t+6],15,-1560198380),i=h(i,o,n,r,e[t+13],21,1309151649),r=h(r,i,o,n,e[t+4],6,-145523070),n=h(n,r,i,o,e[t+11],10,-1120210379),o=h(o,n,r,i,e[t+2],15,718787259),i=h(i,o,n,r,e[t+9],21,-343485551),r=s(r,l),i=s(i,a),o=s(o,u),n=s(n,y)}return[r,i,o,n]}function m(e,t=i.Hex){const r=t||i.Base64,n=y(l(e),e.length*o);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,o=4*e.length;i<o;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return a(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let o=0;o<4;o++)8*r+6*o>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-o)&63))}return t.join("")}(n)}}},87024:(e,t,r)=>{r.d(t,{P:()=>h});var i=r(49186),o=r(80200),n=r(76553),s=r(84952),l=r(13069),a=r(96156),u=r(35666),p=r(10107),c=r(85648),d=r(97159);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const o=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,a.z4)(t,r);return{type:String,read:(e,t,r)=>{const o=(0,d.r)(e,t,r);return i.type===String?o:"function"==typeof i.type?new i.type({url:o}):void 0},write:{writer(t,o,l,a){if(!a?.resources)return"string"==typeof t?void(o[l]=(0,d.t)(t,a)):void(o[l]=t.write({},a));const p=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(p,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),f=i.type!==String&&(!(0,n.H)(this)||a?.origin&&this.originIdOf(r)>(0,u.aB)(a.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:o,targetPropertyName:l,context:a,params:e};a?.portalItem&&h&&!(0,s.oP)(h)?f&&e?.contentAddressed?y(v):f?function(e){const{context:t,targetUrl:r,params:i,value:o,dest:n,targetPropertyName:l}=e;if(!t.portalItem)return;const a=t.portalItem.resourceFromPath(r),u=g(o,r,t),p=(0,c.n)(u),d=(0,s.Zo)(a.path),h=i?.compress??!1;p===d?(t.resources&&m({...e,resource:a,content:u,compress:h,updates:t.resources.toUpdate}),n[l]=r):y(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):a?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,s.w8)(h)||f)?y(v):o[l]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,p.rM)(r,e,i);for(const e in o)t[e]=o[e]}}}function y(e){const{targetUrl:t,params:r,value:n,context:a,dest:u,targetPropertyName:p}=e;if(!a.portalItem)return;const h=(0,d.p)(t),y=g(n,t,a);if(r?.contentAddressed&&"json"!==y.type)return void a.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${p}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const f=r?.contentAddressed&&"json"===y.type?(0,o.d)(y.jsonString):h?.filename??(0,l.lk)(),v=(0,s.fj)(r?.prefix??h?.prefix,f),b=`${v}.${(0,c.n)(y)}`;if(r?.contentAddressed&&a.resources&&"json"===y.type){const e=a.resources.toKeep.find((({resource:e})=>e.path===b))??a.resources.toAdd.find((({resource:e})=>e.path===b));if(e)return void(u[p]=e.resource.itemRelativeUrl)}const S=a.portalItem.resourceFromPath(b);(0,s.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,s.tk)(t).then((e=>{S.path=`${v}.${(0,c.n)({type:"blob",blob:e})}`,u[p]=S.itemRelativeUrl})).catch((()=>{})));const w=r?.compress??!1;a.resources&&m({...e,resource:S,content:y,compress:w,updates:a.resources.toAdd}),u[p]=S.itemRelativeUrl}function m({object:e,propertyName:t,updates:r,resource:i,content:o,compress:n}){r.push({resource:i,content:o,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},29242:(e,t,r)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function o(e,t,r,i,o,n,s,l,a){return[e,t,r,i,o,n,s,l,a]}r.d(t,{fA:()=>o,vt:()=>i,zK:()=>n});const n=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:i,createView:function(e,t){return new Float64Array(e,t,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},82534:(e,t,r)=>{function i(){return[0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>o,vt:()=>i,zK:()=>n});const n=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:o,create:i,createView:function(e,t){return new Float64Array(e,t,4)},fromValues:function(e,t,r,i){return[e,t,r,i]}},Symbol.toStringTag,{value:"Module"}))},67026:(e,t,r)=>{r.d(t,{A6:()=>m,Xd:()=>p,Xr:()=>h,hZ:()=>f,lw:()=>c,t2:()=>Z,x8:()=>u});var i=r(29242),o=r(82534),n=r(51850),s=r(34304),l=r(38954),a=r(87317);function u(e,t,r){r*=.5;const i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function p(e,t){const r=2*Math.acos(t[3]),i=Math.sin(r/2);return i>(0,s.FD)()?(e[0]=t[0]/i,e[1]=t[1]/i,e[2]=t[2]/i):(e[0]=1,e[1]=0,e[2]=0),r}function c(e,t,r){const i=t[0],o=t[1],n=t[2],s=t[3],l=r[0],a=r[1],u=r[2],p=r[3];return e[0]=i*p+s*l+o*u-n*a,e[1]=o*p+s*a+n*l-i*u,e[2]=n*p+s*u+i*a-o*l,e[3]=s*p-i*l-o*a-n*u,e}function d(e,t,r,i){const o=t[0],n=t[1],l=t[2],a=t[3];let u,p,c,d,h,y=r[0],m=r[1],g=r[2],f=r[3];return p=o*y+n*m+l*g+a*f,p<0&&(p=-p,y=-y,m=-m,g=-g,f=-f),1-p>(0,s.FD)()?(u=Math.acos(p),c=Math.sin(u),d=Math.sin((1-i)*u)/c,h=Math.sin(i*u)/c):(d=1-i,h=i),e[0]=d*o+h*y,e[1]=d*n+h*m,e[2]=d*l+h*g,e[3]=d*a+h*f,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const r=t[0]+t[4]+t[8];let i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);const o=(r+1)%3,n=(r+2)%3;i=Math.sqrt(t[3*r+r]-t[3*o+o]-t[3*n+n]+1),e[r]=.5*i,i=.5/i,e[3]=(t[3*o+n]-t[3*n+o])*i,e[o]=(t[3*o+r]+t[3*r+o])*i,e[n]=(t[3*n+r]+t[3*r+n])*i}return e}function m(e,t,r,i){const o=.5*Math.PI/180;t*=o,r*=o,i*=o;const n=Math.sin(t),s=Math.cos(t),l=Math.sin(r),a=Math.cos(r),u=Math.sin(i),p=Math.cos(i);return e[0]=n*a*p-s*l*u,e[1]=s*l*p+n*a*u,e[2]=s*a*u-n*l*p,e[3]=s*a*p+n*l*u,e}const g=a.c,f=a.s,v=a.g,b=c,S=a.d,w=a.h,_=a.l,M=a.i,x=M,A=a.j,j=A,V=a.n,Z=a.a,I=a.e,T=(0,n.vt)(),N=(0,n.fA)(1,0,0),z=(0,n.fA)(0,1,0),R=(0,o.vt)(),P=(0,o.vt)(),F=(0,i.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const r=t[0],i=t[1],o=t[2];return e[0]=r,e[1]=i,e[2]=o,e[3]=Math.sqrt(Math.abs(1-r*r-i*i-o*o)),e},conjugate:h,copy:g,dot:w,equals:I,exactEquals:Z,fromEuler:m,fromMat3:y,getAxisAngle:p,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const r=t[0],i=t[1],o=t[2],n=t[3],s=r*r+i*i+o*o+n*n,l=s?1/s:0;return e[0]=-r*l,e[1]=-i*l,e[2]=-o*l,e[3]=n*l,e},len:x,length:M,lerp:_,mul:b,multiply:c,normalize:V,random:function(e){const t=s.Ov,r=t(),i=t(),o=t(),n=Math.sqrt(1-r),l=Math.sqrt(r);return e[0]=n*Math.sin(2*Math.PI*i),e[1]=n*Math.cos(2*Math.PI*i),e[2]=l*Math.sin(2*Math.PI*o),e[3]=l*Math.cos(2*Math.PI*o),e},rotateX:function(e,t,r){r*=.5;const i=t[0],o=t[1],n=t[2],s=t[3],l=Math.sin(r),a=Math.cos(r);return e[0]=i*a+s*l,e[1]=o*a+n*l,e[2]=n*a-o*l,e[3]=s*a-i*l,e},rotateY:function(e,t,r){r*=.5;const i=t[0],o=t[1],n=t[2],s=t[3],l=Math.sin(r),a=Math.cos(r);return e[0]=i*a-n*l,e[1]=o*a+s*l,e[2]=n*a+i*l,e[3]=s*a-o*l,e},rotateZ:function(e,t,r){r*=.5;const i=t[0],o=t[1],n=t[2],s=t[3],l=Math.sin(r),a=Math.cos(r);return e[0]=i*a+o*l,e[1]=o*a-i*l,e[2]=n*a+s*l,e[3]=s*a-n*l,e},rotationTo:function(e,t,r){const i=(0,l.k)(t,r);return i<-.999999?((0,l.b)(T,N,t),(0,l.D)(T)<1e-6&&(0,l.b)(T,z,t),(0,l.n)(T,T),u(e,T,Math.PI),e):i>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,l.b)(T,t,r),e[0]=T[0],e[1]=T[1],e[2]=T[2],e[3]=1+i,V(e,e))},scale:S,set:f,setAxes:function(e,t,r,i){const o=F;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=i[0],o[4]=i[1],o[7]=i[2],o[2]=-t[0],o[5]=-t[1],o[8]=-t[2],V(e,y(e,o))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,r,i,o,n){return d(R,t,o,n),d(P,r,i,n),d(e,R,P,2*n*(1-n)),e},sqrLen:j,squaredLength:A,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},76620:(e,t,r)=>{r.d(t,{A:()=>b});var i,o=r(90237),n=r(4576),s=r(66552),l=r(25482),a=r(83047),u=r(67076),p=r(10107),c=(r(44208),r(53966),r(36005)),d=r(40608),h=r(43937);const y=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,n.Xy)(m,"orthometric");const g=(0,s.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=i=class extends l.oY{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,a.LA)(e)||g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,a.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,p.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,o._)([(0,h.K)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,o._)([(0,c.w)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,o._)([(0,p.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:g.write}}}})],f.prototype,"heightUnit",void 0),(0,o._)([(0,c.w)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,o._)([(0,c.w)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,o._)([(0,p.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,o._)([(0,c.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=i=(0,o._)([(0,d.$)("esri.geometry.HeightModelInfo")],f);const b=f},4146:(e,t,r)=>{r.d(t,{A:()=>b});var i=r(90237),o=(r(59456),r(78888)),n=r(49186),s=r(65529),l=r(4902),a=r(92474),u=r(53966),p=r(74887),c=r(84952),d=r(10107),h=(r(44208),r(87811),r(40608)),y=r(92602),m=r(5443),g=r(16930);let f=0,v=class extends(s.A.EventedMixin((0,l.sA)(a.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",o=r?.portal?.url||y.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.MZ)({type:m.A})],v.prototype,"fullExtent",void 0),(0,i._)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,d.MZ)({type:g.A})],v.prototype,"spatialReference",void 0),(0,i._)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,d.MZ)()],v.prototype,"url",void 0),(0,i._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,h.$)("esri.layers.Layer")],v);const b=v},9006:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ke});var i=r(90237),o=r(13874),n=r(5503),s=r(49186),l=r(53966),a=r(92071),u=r(74887),p=r(10107),c=r(56507),d=(r(87811),r(44208),r(36005)),h=r(40608),y=r(38954),m=r(51850),g=r(5443),f=r(4146),v=r(52136),b=r(18768),S=r(69208),w=r(16131),_=r(8303),M=r(25036),x=r(58947),A=r(60694),j=r(55785),V=r(20437),Z=r(69540),I=r(69052),T=r(25482),N=r(87024),z=r(67026),R=r(82534),P=r(34304);const F=(0,m.vt)(),D=(0,R.vt)(),L=(0,R.vt)(),O=(0,R.vt)(),E=(0,m.fA)(0,0,1),U=(0,m.fA)(0,1,0),q=(0,m.fA)(1,0,0);function $(e){(0,y.c)(F,e),(0,y.n)(F,F);const t=Math.atan2(F[1],F[0]),r=(0,z.x8)((0,R.vt)(),E,-t);(0,y.u)(F,F,r);const i=-1*Math.atan2(F[2],F[0]);return[(0,P.ct)(t)+270,(0,P.ct)(i)+90]}function C(e,t){return(0,z.x8)(L,E,(0,P.DF)(e-270)),(0,z.x8)(O,U,(0,P.DF)(t-90)),(0,z.lw)(D,L,O),(0,y.c)(F,q),(0,y.u)(F,F,D),(0,y.n)(F,F),[F[0],F[1],F[2]]}var B=r(79901);let k=class extends((0,Z.O)(T.oY)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(e),0,!0)}set orientation(e){const t=C(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(t),0,!0)}set tilt(e){const t=C(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,i._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],k.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],k.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.w)((e=>I.ie.normalize((0,c.GB)(e),0,!0)))],k.prototype,"orientation",null),(0,i._)([(0,p.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.w)((e=>I.ie.normalize((0,c.GB)(e),0,!0)))],k.prototype,"tilt",null),(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],k.prototype,"normal",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],k.prototype,"point",void 0),k=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelSlice")],k);const Y=k;var H=r(97159);let G=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(t),0,!0)}};(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!0,write:!0}})],G.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:String,json:{origins:{service:{read:H.r}},write:{enabled:!0,isRequired:!0}}}),(0,N.P)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],G.prototype,"href",void 0),(0,i._)([(0,p.MZ)({type:c.jz,json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"id",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],G.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],G.prototype,"orientation",null),(0,i._)([(0,p.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],G.prototype,"tilt",null),(0,i._)([(0,p.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"normal",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"point",void 0),(0,i._)([(0,p.MZ)({type:[c.jz],json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"sizeInPixel",void 0),(0,i._)([(0,p.MZ)({type:[Y],json:{write:!0}})],G.prototype,"slices",void 0),(0,i._)([(0,p.MZ)({type:c.jz,json:{default:0,write:!0}})],G.prototype,"timeId",void 0),(0,i._)([(0,p.MZ)({type:c.jz,json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"variableId",void 0),G=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelSection")],G);const J=G;let W=class extends T.oY{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,i._)([(0,p.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"diffuseFactor",void 0),(0,i._)([(0,p.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"specularFactor",void 0),W=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelSimpleShading")],W);const K=W;let Q=class extends T.oY{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,i._)([(0,p.MZ)({type:["discrete","continuous"],json:{write:!0}})],Q.prototype,"continuity",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Q.prototype,"hasNoData",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Q.prototype,"noData",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Q.prototype,"offset",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Q.prototype,"scale",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"type",void 0),Q=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelFormat")],Q);const X=Q;let ee=class extends T.oY{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"id",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],ee.prototype,"description",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"name",void 0),(0,i._)([(0,p.MZ)({type:X,json:{write:!0}})],ee.prototype,"originalFormat",void 0),(0,i._)([(0,p.MZ)({type:X,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"renderingFormat",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],ee.prototype,"unit",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],ee.prototype,"volumeId",void 0),(0,i._)([(0,p.MZ)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],ee.prototype,"type",void 0),ee=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelVariable")],ee);const te=ee;var re=r(4718),ie=r(68197);let oe=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,i._)([(0,p.MZ)({type:ie.A,json:{type:[c.jz],write:{enabled:!0,isRequired:!0}}})],oe.prototype,"color",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],oe.prototype,"value",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!0,write:!0}})],oe.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],oe.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],oe.prototype,"colorLocked",void 0),oe=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelIsosurface")],oe);const ne=oe;var se=r(62885),le=r(34727);let ae=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,i._)([(0,p.MZ)({type:ie.A,json:{type:[c.jz],write:{enabled:!0,isRequired:!0}}})],ae.prototype,"color",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ae.prototype,"position",void 0),ae=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelColorStop")],ae);const ue=ae;let pe=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,i._)([(0,p.MZ)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],pe.prototype,"opacity",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],pe.prototype,"position",void 0),pe=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelOpacityStop")],pe);const ce=pe;let de=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],de.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],de.prototype,"range",void 0),de=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelRangeFilter")],de);const he=de;var ye,me;(me=ye||(ye={}))[me.Color=1]="Color",me[me.Alpha=2]="Alpha",me[me.Both=3]="Both";let ge=class extends((0,Z.O)(T.oY)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(n.A.ofType(ue)),this.opacityStops=new(n.A.ofType(ce))}set colorStops(e){this._set("colorStops",(0,se.V)(e,this._get("colorStops"),n.A.ofType(ue)))}set opacityStops(e){this._set("opacityStops",(0,se.V)(e,this._get("opacityStops"),n.A.ofType(ce)))}getPreviousNext(e,t,r){let i=e;for(;--i>0&&t[i].type!==r&&t[i].type!==ye.Both;);let o=e;const n=t.length;for(;++o<n&&t[o].type!==r&&t[o].type!==ye.Both;);return[i,o]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],r=[];for(const t of this.colorStops){if(!t.color)return e;r.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:ye.Color})}if(0===this.opacityStops.length)for(const e of r)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,le.qE)(e.position,0,1),i=Math.round(255*(0,le.qE)(1-e.opacity,0,1));let o=!1;for(const e of r)if(e.type===ye.Color&&Math.abs(e.position-t)<1e-5){e.color.a=i,e.type=ye.Both,o=!0;break}o||r.push({color:{r:0,g:0,b:0,a:i},position:e.position,type:ye.Alpha})}r.sort(((e,t)=>e.position<t.position?-1:1));const e=r.length;for(let t=0;t<e;++t){const i=r[t];if(i.type!==ye.Both)if(i.type===ye.Color){const[o,n]=this.getPreviousNext(t,r,ye.Alpha);if(-1!==o&&n!==e){const e=(i.position-r[o].position)/(r[n].position-r[o].position);i.color.a=Math.round((0,le.Cc)(r[o].color.a,r[n].color.a,e))}else i.color.a=-1!==o?r[o].color.a:r[n].color.a}else{const[o,n]=this.getPreviousNext(t,r,ye.Color);if(-1!==o&&n!==e){const e=(i.position-r[o].position)/(r[n].position-r[o].position),t=r[o].color,s=r[n].color;ve.forEach((r=>{i.color[r]=Math.round((0,le.Cc)(t[r],s[r],e))}))}else-1!==o?ve.forEach((e=>{i.color[e]=r[o].color[e]})):ve.forEach((e=>{i.color[e]=r[n].color[e]}))}}for(const e of r)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let i=0,o=1;for(let r=0;r<this._colorMapSize;++r){const n=r/this._colorMapSize;for(;n>t[o].position;)i=o++;const s=(n-t[i].position)/(t[o].position-t[i].position),l=t[i].color,a=t[o].color,u=new ie.A;ve.forEach((e=>{u[e]=Math.round((0,le.Cc)(l[e],a[e],s))})),u.a=(0,le.qE)(1-(0,le.Cc)(l.a,a.a,s)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const r=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||r.length<256)return null;let i=this.stretchRange[0],o=this.stretchRange[1];if(i>o){const e=i;i=o,o=e}e=(0,le.qE)(e,i,o);const n=r[Math.round((e-i)/(o-i)*(this._colorMapSize-1))].clone();return t||(n.a=1),n}};(0,i._)([(0,p.MZ)({type:["linear","nearest"],json:{write:!0}})],ge.prototype,"interpolation",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ge.prototype,"stretchRange",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(ue),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ge.prototype,"colorStops",null),(0,i._)([(0,p.MZ)({type:n.A.ofType(ce),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ge.prototype,"opacityStops",null),(0,i._)([(0,p.MZ)({type:he,json:{write:!0}})],ge.prototype,"rangeFilter",void 0),(0,i._)([(0,p.MZ)({type:[ie.A],clonable:!1,json:{read:!1}})],ge.prototype,"rasterizedTransferFunction",null),ge=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelTransferFunctionStyle")],ge);const fe=ge,ve=["r","g","b"];let be=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};(0,i._)([(0,p.MZ)({type:ie.A,json:{type:[c.jz],write:{enabled:!0,isRequired:!0}}})],be.prototype,"color",void 0),(0,i._)([(0,p.MZ)({type:c.jz,json:{write:{enabled:!0,isRequired:!0}}})],be.prototype,"value",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!0,write:!0}})],be.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],be.prototype,"label",void 0),be=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelUniqueValue")],be);const Se=be;var we;let _e=we=class extends T.oY{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(n.A.ofType(Se)),this.isosurfaces=new(n.A.ofType(ne))}clone(){return new we({variableId:this.variableId,label:this.label,transferFunction:(0,re.o8)(this.transferFunction),uniqueValues:(0,re.o8)(this.uniqueValues),isosurfaces:(0,re.o8)(this.isosurfaces)})}};(0,i._)([(0,p.MZ)({type:c.jz,json:{write:{enabled:!0,isRequired:!0}}})],_e.prototype,"variableId",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],_e.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:fe,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],_e.prototype,"transferFunction",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(Se),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],_e.prototype,"uniqueValues",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(ne),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],_e.prototype,"isosurfaces",void 0),_e=we=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelVariableStyle")],_e);const Me=_e;var xe=r(86738),Ae=r(16930),je=r(21325);let Ve=class extends T.oY{constructor(){super(...arguments),this.values=null}};(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],Ve.prototype,"values",void 0),Ve=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelIrregularSpacing")],Ve);const Ze=Ve;let Ie=class extends T.oY{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Ie.prototype,"scale",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Ie.prototype,"offset",void 0),Ie=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelRegularSpacing")],Ie);const Te=Ie;let Ne=class extends T.oY{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,i._)([(0,p.MZ)({type:Ze,json:{write:!0}})],Ne.prototype,"irregularSpacing",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Ne.prototype,"isPositiveUp",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Ne.prototype,"isWrappedDateLine",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],Ne.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],Ne.prototype,"name",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],Ne.prototype,"quantity",void 0),(0,i._)([(0,p.MZ)({type:Te,json:{write:!0}})],Ne.prototype,"regularSpacing",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Ne.prototype,"size",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],Ne.prototype,"unit",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{read:!1}})],Ne.prototype,"isRegular",null),Ne=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelDimension")],Ne);const ze=Ne;let Re=class extends T.oY{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=Ae.A.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],i=r.isRegular?r.getRange():[0,r.size];return[e[0],t[0],i[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],i=r.isRegular?r.getRange():[0,r.size],o=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)o[e]<2?o[e]=1:o[e]-=1;return r.isRegular&&!r.isPositiveUp&&(o[2]*=-1),[(e[1]-e[0])/o[0],(t[1]-t[0])/o[1],(i[1]-i[0])/o[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0,t=this.dimensions[3].size>0;if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return l.A.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,je.aI)(this.spatialReference,e.spatialReference))return l.A.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,m.fA)(e.x,e.y,e.z??0);(0,y.f)(t,t,this.originInLayerSpace3D),(0,y.H)(t,t,this.voxelSizeInLayerSpaceSigned);const r=this.dimensions[this.zDimension];if(!r.isRegular&&Array.isArray(r.irregularSpacing?.values)&&r.irregularSpacing.values.length>1){const i=e.z??0,o=r.irregularSpacing.values,n=r.isPositiveUp?1:-1,s=o.reduce(((e,t)=>Math.abs(n*t-i)<Math.abs(n*e-i)?t:e));for(let e=0;e<o.length;++e)if(o[e]===s){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new xe.A({x:0,y:0,spatialReference:this.spatialReference});const t=(0,m.ci)(e);if((0,y.B)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.g)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new xe.A({x:t[0],y:t[1],spatialReference:this.spatialReference});const r=this.dimensions[this.zDimension];return r.isRegular||Array.isArray(r.irregularSpacing?.values)&&(e[2]<0?t[2]=r.irregularSpacing.values[0]:e[2]<r.irregularSpacing.values.length?t[2]=r.irregularSpacing.values[e[2]]:t[2]=r.irregularSpacing.values[r.irregularSpacing.values.length-1],r.isPositiveUp||(t[2]*=-1)),new xe.A({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"id",void 0),(0,i._)([(0,p.MZ)({type:[ze],json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"dimensions",void 0),(0,i._)([(0,p.MZ)({type:Ae.A,json:{read:{enabled:!1}}})],Re.prototype,"spatialReference",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{read:!1}})],Re.prototype,"zDimension",null),(0,i._)([(0,p.MZ)({type:[Boolean],json:{read:!1}})],Re.prototype,"isValid",null),(0,i._)([(0,p.MZ)({type:[Number],json:{read:!1}})],Re.prototype,"originInLayerSpace3D",null),(0,i._)([(0,p.MZ)({type:[Number],json:{read:!1}})],Re.prototype,"voxelSizeInLayerSpaceSigned",null),(0,i._)([(0,p.MZ)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Re.prototype,"volumeType",null),(0,i._)([(0,p.MZ)({type:[Number],json:{read:!1}})],Re.prototype,"sizeInVoxels",null),Re=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelVolume")],Re);const Pe=Re;var Fe;let De=Fe=class extends T.oY{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Fe;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"apronWidth",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"brickSize",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"maxLodLevel",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"nodeSize",void 0),De=Fe=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelVolumeIndex")],De);const Le=De;let Oe=class extends((0,Z.O)(T.oY)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(e),0,!0)}set orientation(e){const t=C(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(t),0,!0)}set tilt(e){const t=C(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!0,write:!0}})],Oe.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],Oe.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.w)((e=>I.ie.normalize((0,c.GB)(e),0,!0)))],Oe.prototype,"orientation",null),(0,i._)([(0,p.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.w)((e=>I.ie.normalize((0,c.GB)(e),0,!0)))],Oe.prototype,"tilt",null),(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],Oe.prototype,"normal",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],Oe.prototype,"point",void 0),Oe=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelDynamicSection")],Oe);const Ee=Oe;var Ue;let qe=Ue=class extends T.oY{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(n.A.ofType(Y)),this.dynamicSections=new(n.A.ofType(Ee))}set slices(e){this._set("slices",(0,se.V)(e,this._get("slices"),n.A.ofType(Y)))}set dynamicSections(e){this._set("dynamicSections",(0,se.V)(e,this._get("dynamicSections"),n.A.ofType(Ee)))}clone(){return new Ue({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,re.o8)(this.slices),dynamicSections:(0,re.o8)(this.dynamicSections)})}};(0,i._)([(0,p.MZ)({type:c.jz,json:{write:{enabled:!0,isRequired:!0}}})],qe.prototype,"volumeId",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{default:1,write:!0}})],qe.prototype,"verticalExaggeration",void 0),(0,i._)([(0,p.MZ)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],qe.prototype,"exaggerationMode",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{default:0,write:!0}})],qe.prototype,"verticalOffset",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(Y),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],qe.prototype,"slices",null),(0,i._)([(0,p.MZ)({type:n.A.ofType(Ee),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],qe.prototype,"dynamicSections",null),qe=Ue=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelVolumeStyle")],qe);const $e=qe;var Ce=r(30291);let Be=class extends((0,x.w6)((0,b.b)((0,w.q)((0,_.A)((0,M.j)((0,a.P)((0,S.d)((0,v.p)(f.A))))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new K,this.opacity=1,this.variables=new n.A,this.volumes=new n.A,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.test=null,this.volumeStyles=new(n.A.ofType($e)),this.variableStyles=new(n.A.ofType(Me)),this.sections=new(n.A.ofType(J))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,A.Jf)(e,l.A.getLogger(this)))}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(r),Promise.resolve(this)}read(e,t){super.read(e,t);for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new s.A("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new s.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new s.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const i=g.A.fromJSON(e,r);if(0===i.zmin&&0===i.zmax&&Array.isArray(t.volumes)){const e=Pe.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,r=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>r){const t=e;e=r,r=t}i.zmin=e,i.zmax=r}}}return i}return null}get voxelFields(){const e=[new V.A({name:"Voxel.ServiceValue",alias:"Value",domain:null,editable:!1,length:128,type:"string"}),new V.A({name:"Voxel.ServiceVariableLabel",alias:"Variable",domain:null,editable:!1,length:128,type:"string"}),new V.A({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"})],t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new V.A({name:"Voxel.ServiceLocalTime",alias:"Local Time",domain:null,editable:!1,length:128,type:"string"});e.push(t);const r=new V.A({name:"Voxel.ServiceNativeTime",alias:"Native Time",domain:null,editable:!1,length:128,type:"string"});e.push(r)}if("xyt"!==t.volumeType){const t=new V.A({name:"Voxel.ServiceDepth",alias:"Depth",domain:null,editable:!1,length:128,type:"string"});e.push(t)}}return e}get popupTemplate(){return this.loaded?this.createPopupTemplate():null}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.voxelFields,r=this.title;return(0,Ce.tn)({fields:t,title:r},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const r=this.variableStyles.findIndex((e=>e.variableId===t));return r<0?null:this.variableStyles.at(r)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const r=this.variables.findIndex((e=>e.id===t));return r<0?null:this.variables.at(r)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find((({id:e})=>e===t.volumeId)):null}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getColorForContinuousDataValue(e,t,r){const i=this.getVariable(e);if(null==i||"continuous"!==i.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const o=this.variableStyles.findIndex((t=>t.variableId===e));if(o<0)return null;const n=this.variableStyles.at(o);return n?.transferFunction?n.transferFunction.getColorForContinuousDataValue(t,r):null}getSections(){const e=[];for(const t of this.sections)e.push(new J({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const r=this._getVariable(t);if(null!=r){const i=t.clone();i.isosurfaces.length>4&&(i.isosurfaces=i.isosurfaces.slice(0,3),l.A.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of i.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(i.variableId,e.value,!1);null===t||t.equals(e.color)||(e.color=t)}if("continuous"===r.renderingFormat.continuity)(null===i.transferFunction||i.transferFunction.colorStops.length<2)&&l.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==i.transferFunction&&(Array.isArray(i.transferFunction.stretchRange)&&2===i.transferFunction.stretchRange.length||(l.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),i.transferFunction.stretchRange=[0,1],i.transferFunction.colorStops.removeAll()));else if("discrete"===r.renderingFormat.continuity)if(0===t.uniqueValues.length)l.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(i)}else l.A.getLogger(this).error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const r=this._getVolumeFromVolumeId(t.volumeId);if(null!=r){const i=t.clone();for(const e of i.slices)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of i.dynamicSections)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");e.push(i)}else l.A.getLogger(this).error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,r){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const i=(0,m.fA)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(i,i),!(Math.abs(i[0])+Math.abs(i[1])+Math.abs(i[2])<1e-6||(e.normal[0]=i[0],e.normal[1]=i[1],e.normal[2]=i[2],0))}};(0,i._)([(0,p.MZ)({type:["Voxel"]})],Be.prototype,"operationalLayerType",void 0),(0,i._)([(0,p.MZ)(j.fV)],Be.prototype,"legendEnabled",void 0),(0,i._)([(0,p.MZ)({json:{write:!0}})],Be.prototype,"title",void 0),(0,i._)([(0,p.MZ)(j.OZ)],Be.prototype,"url",null),(0,i._)([(0,p.MZ)({type:n.A.ofType(J),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],Be.prototype,"sections",void 0),(0,i._)([(0,p.MZ)({type:c.jz,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],Be.prototype,"currentVariableId",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType($e),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],Be.prototype,"volumeStyles",void 0),(0,i._)([(0,p.MZ)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],Be.prototype,"renderMode",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(Me),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],Be.prototype,"variableStyles",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],Be.prototype,"enableSlices",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],Be.prototype,"enableSections",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],Be.prototype,"enableDynamicSections",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],Be.prototype,"enableIsosurfaces",void 0),(0,i._)([(0,p.MZ)({type:K,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],Be.prototype,"shading",void 0),(0,i._)([(0,p.MZ)({type:["show","hide"]})],Be.prototype,"listMode",void 0),(0,i._)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],Be.prototype,"opacity",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(te)})],Be.prototype,"variables",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(Pe)})],Be.prototype,"volumes",void 0),(0,i._)([(0,p.MZ)({type:Le})],Be.prototype,"index",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],Be.prototype,"minScale",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],Be.prototype,"maxScale",void 0),(0,i._)([(0,p.MZ)({json:{read:!1},readOnly:!0})],Be.prototype,"type",void 0),(0,i._)([(0,p.MZ)({readOnly:!0,json:{name:"serviceVersion"}})],Be.prototype,"version",void 0),(0,i._)([(0,d.w)("service","version")],Be.prototype,"readVersion",null),(0,i._)([(0,p.MZ)({type:g.A})],Be.prototype,"fullExtent",void 0),(0,i._)([(0,d.w)("service","fullExtent",["fullExtent"])],Be.prototype,"readFullExtent",null),(0,i._)([(0,p.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],Be.prototype,"voxelFields",null),(0,i._)([(0,p.MZ)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,r){t[r]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],Be.prototype,"popupEnabled",void 0),(0,i._)([(0,p.MZ)({type:o.A,json:{read:!1}})],Be.prototype,"popupTemplate",null),(0,i._)([(0,p.MZ)({readOnly:!0})],Be.prototype,"defaultPopupTemplate",null),Be=(0,i._)([(0,h.$)("esri.layers.VoxelLayer")],Be);const ke=Be},69208:(e,t,r)=>{r.d(t,{d:()=>s});var i=r(90237),o=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,o.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},8303:(e,t,r)=>{r.d(t,{A:()=>_});var i=r(90237),o=r(92602),n=r(70333),s=r(78888),l=r(60999),a=r(49186),u=r(53966),p=r(97768),c=r(74887),d=r(84952),h=r(10107),y=(r(44208),r(87811),r(36005)),m=r(40608),g=r(43937),f=r(83531),v=r(20655),b=r(80812),S=r(41318),w=r(10407);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(5356),r.e(8823)]).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.QP)(e),!0))))}async setUserPrivileges(e,t){if(!o.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",o)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,w.It)(r);let o,s;if(i)o=r.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!o||!(0,d.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;s=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new b.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return(0,w.It)(r)}catch(e){(0,c.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,o=v.A.getDefault();if(o&&o.loaded&&(0,d.S8)(o.restUrl)===(0,d.S8)(i))return o.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,l.Ke)((0,s.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?S.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,h.MZ)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.$)("esri.layers.mixins.PortalLayer")],t),t},M={credential:null,user:null}},25036:(e,t,r)=>{r.d(t,{j:()=>s});var i=r(90237),o=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,o.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},20437:(e,t,r)=>{r.d(t,{A:()=>g});var i,o=r(90237),n=r(66552),s=r(25482),l=r(10107),a=r(56507),u=(r(87811),r(44208),r(93223)),p=r(36005),c=r(40608),d=r(72088),h=r(98453);const y=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends s.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,o._)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,o._)([(0,l.MZ)()],m.prototype,"description",void 0),(0,o._)([(0,p.w)("description")],m.prototype,"readDescription",null),(0,o._)([(0,l.MZ)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],m.prototype,"domain",void 0),(0,o._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,o._)([(0,l.MZ)({type:a.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,o._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,o._)([(0,u.e)(h.m)],m.prototype,"type",void 0),(0,o._)([(0,l.MZ)()],m.prototype,"valueType",void 0),(0,o._)([(0,p.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,o._)([(0,l.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,o._)([(0,c.$)("esri.layers.support.Field")],m);const g=m},72088:(e,t,r)=>{r.d(t,{rS:()=>x,gK:()=>M}),r(44208);var i,o=r(90237),n=r(4718),s=r(10107),l=(r(53966),r(93223)),a=r(40608),u=r(25482);r(87811);let p=i=class extends u.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,o._)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,o._)([(0,s.MZ)({type:[String,Number],json:{write:!0}})],p.prototype,"code",void 0),p=i=(0,o._)([(0,a.$)("esri.layers.support.CodedValue")],p);const c=new(r(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,o._)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,o._)([(0,l.e)(c)],d.prototype,"type",void 0),d=(0,o._)([(0,a.$)("esri.layers.support.Domain")],d);const h=d;var y;let m=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,o._)([(0,s.MZ)({type:[p],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,o._)([(0,l.e)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,o._)([(0,a.$)("esri.layers.support.CodedValueDomain")],m);const g=m;var f;r(49186);let v=f=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new f}};(0,o._)([(0,l.e)({inherited:"inherited"})],v.prototype,"type",void 0),v=f=(0,o._)([(0,a.$)("esri.layers.support.InheritedDomain")],v);const b=v;var S;let w=S=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new S({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],w.prototype,"maxValue",void 0),(0,o._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],w.prototype,"minValue",void 0),(0,o._)([(0,l.e)({range:"range"})],w.prototype,"type",void 0),w=S=(0,o._)([(0,a.$)("esri.layers.support.RangeDomain")],w);const _=w,M={key:"type",base:h,typeMap:{range:w,"coded-value":g,inherited:b}};function x(e){if(!e?.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},98453:(e,t,r)=>{r.d(t,{m:()=>i});const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},85648:(e,t,r)=>{r.d(t,{n:()=>o});var i=r(84952);function o(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return a[t]||s}(e.url)}(e)]||l}const n={},s="text/plain",l=n[s],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in a)n[a[e]]=e},30291:(e,t,r)=>{r.d(t,{tn:()=>u});var i=r(13874),o=r(30524),n=r(28122),s=(r(84424),r(80737),r(96808),r(66159)),l=(r(67336),r(92094),r(23721),r(41227)),a=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:u},h){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(c),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new l.A({fieldName:t.name,isEditable:(0,o.R$)(t,e),label:t.alias,format:d(t),visible:p(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:a},h);if(!m.length)return null;const g=function(e){const t=(0,o.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),f=[new s.A,new n.A];return new i.A({title:g,content:f,fieldInfos:m})}const p=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,o.Bz)(e,t);function c(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.A({digitSeparator:!0,places:0});case"double":return new a.A({digitSeparator:!0,places:2});case"string":return(0,o.JL)(e.name)?new a.A({digitSeparator:!0,places:0}):null;default:return null}}function h(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]}}]);
package/core/Cyclical.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
4
  */
5
- import{clamp as n}from"./mathUtils.js";class i{constructor(n,i){this.min=n,this.max=i,this.range=i-n}ndiff(n,i=0){return Math.ceil((n-i)/this.range)*this.range+i}_normalize(n,i,t,o=0,r=!1){return(t-=o)<n?t+=this.ndiff(n-t):t>i&&(t-=this.ndiff(t-i)),r&&t===i&&(t=n),t+o}normalize(n,i=0,t=!1){return this._normalize(this.min,this.max,n,i,t)}clamp(i,t=0){return n(i-t,this.min,this.max)+t}monotonic(n,i,t){return n<i?i:i+this.ndiff(n-i,t)}minimalMonotonic(n,i,t){return this._normalize(n,n+this.range,i,t)}center(n,i,t){return i=this.monotonic(n,i,t),this.normalize((n+i)/2,t)}diff(n,i,t){return this.monotonic(n,i,t)-n}shortestSignedDiff(n,i){n=this.normalize(n);const t=(i=this.normalize(i))-n,o=i<n?this.minimalMonotonic(n,i)-n:i-this.minimalMonotonic(i,n);return Math.abs(t)<Math.abs(o)?t:o}contains(n,i,t){return i=this.minimalMonotonic(n,i),(t=this.minimalMonotonic(n,t))>n&&t<i}}function t(n){for(const i in n){const t=n[i];t instanceof Function&&(n[i]=t.bind(n))}return n}const o=t(new i(0,2*Math.PI)),r=t(new i(-Math.PI,Math.PI)),s=t(new i(0,360));export{i as Cyclical,o as cyclical2PI,s as cyclicalDegrees,r as cyclicalPI};
5
+ import{clamp as t}from"./mathUtils.js";class n{constructor(t,n){this.min=t,this.max=n,this.range=n-t}normalize(t,n=0,o=!1){return i(this.range,this.min,this.max,t,n,o)}clamp(n,i=0){return t(n-i,this.min,this.max)+i}monotonic(t,n,i){return t<n?n:n+o(this.range,t-n,i)}minimalMonotonic(t,n,o){return i(this.range,t,t+this.range,n,o)}center(t,n,i){return n=this.monotonic(t,n,i),this.normalize((t+n)/2,i)}diff(t,n,i){return this.monotonic(t,n,i)-t}shortestSignedDiff(t,n){t=this.normalize(t);const i=(n=this.normalize(n))-t,o=n<t?this.minimalMonotonic(t,n)-t:n-this.minimalMonotonic(n,t);return Math.abs(i)<Math.abs(o)?i:o}contains(t,n,i){return n=this.minimalMonotonic(t,n),(i=this.minimalMonotonic(t,i))>t&&i<n}}function i(t,n,i,r,s=0,a=!1){return(r-=s)<n?r+=o(t,n-r):r>i&&(r-=o(t,r-i)),a&&r===i&&(r=n),r+s}function o(t,n,i=0){return Math.ceil((n-i)/t)*t+i}const r=new n(0,2*Math.PI),s=new n(-Math.PI,Math.PI),a=new n(0,360);export{n as Cyclical,r as cyclical2PI,a as cyclicalDegrees,s as cyclicalPI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/core",
3
- "version": "4.30.0-next.20240308",
3
+ "version": "4.30.0-next.20240309",
4
4
  "homepage": "https://js.arcgis.com",
5
5
  "description": "ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API",
6
6
  "keywords": [
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
4
  */
5
- const c="20240308",f="ad6e7e0bf010831fadc999fa3d13779b74cc92fb";export{c as buildDate,f as commitHash};
5
+ const c="20240309",e="c7778e917036ce0b0cc9125098afb30720e460ac";export{c as buildDate,e as commitHash};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
4
  */
5
- import{fromValues as e,create as t}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import r from"../../../geometry/SpatialReference.js";import{projectVectorToVector as i}from"../../../geometry/projection/projectVectorToVector.js";import{wrap as a}from"../../../geometry/support/aaBoundingBox.js";import{create as o}from"../../../geometry/support/aaBoundingRect.js";import{isPlateCarree as s}from"../../../geometry/support/spatialReferenceUtils.js";import{TileFrustumVisibility as n}from"./ITile.js";import{createPlanarGlobePatch as l,updateCornersPlanar as c,updateEdgesAndCornersPlanar as h,updateEdgeElevationsAndResolutionsPlanar as d}from"./PatchGeometryFactory.js";import{Tile as u,CenterPosition as m}from"./Tile.js";import{intersectAabbInvDirBefore as p}from"../webgl-engine/lib/RayIntersections.js";class S extends u{constructor(e,t,r,i,a){super(),this._horizontalScaleFactor=1,this._extentInRenderSR=o(),this._baseUsedMemory=900,this.init(e,t,r,i,a)}init(t,a,o,n,l){super.init(t,a,o,n,l);const c=l.view.renderSpatialReference,h=l.spatialReference,d=null!=c&&s(c)&&null!=h&&h.isGeographic?this.ellipsoid.radius*Math.PI/180:1;this._horizontalScaleFactor=d;const{isWebMercatorOnPlateCarree:u}=l,m=this._extentInRenderSR,p=this.extent;if(u){const t=e(p[0],p[1],0);i(t,r.WebMercator,t,r.PlateCarree);const a=e(p[2],p[3],0);i(a,r.WebMercator,a,r.PlateCarree),m[0]=t[0],m[1]=t[1],m[2]=a[0],m[3]=a[1]}else for(let e=0;e<4;++e)m[e]=p[e]*d;this.centerAtSeaLevel[0]=.5*(m[0]+m[2]),this.centerAtSeaLevel[1]=.5*(m[1]+m[3]),this.centerAtSeaLevel[2]=0,this._edgeLen=Math.max(m[2]-m[0],m[3]-m[1]),this._edgeLen2=this._edgeLen*this._edgeLen,this.updateRadiusAndCenter()}updateRadiusAndCenter(){this._updateCenter();const e=this._extentInRenderSR,t=.5*(e[2]-e[0]),r=.5*(e[3]-e[1]),i=Math.sqrt(t*t+r*r),a=.5*(this.elevationBoundsMax-this.elevationBoundsMin),o=Math.max(i,a);this._center[m.MIDDLE][3]=o}_calculateFrustumVisibilityStatus(e){const t=this._aabb(),r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5];let c=!0;for(let h=0;h<6;h++){const t=e[h],d=t[0],u=t[1],m=t[2],p=t[3];if(d*(d>0?r:o)+u*(u>0?i:s)+m*(m>0?a:l)+p>=0)return n.OUTSIDE;c=c&&d*(d<0?r:o)+u*(u<0?i:s)+m*(m<0?a:l)+p<=0}return c?n.INSIDE:n.INTERSECTS}_aabb(){const e=this._extentInRenderSR;return a(e[0],e[1],this.elevationBoundsMin,e[2],e[3],this.elevationBoundsMax)}intersectsRay(e,t,r,i){return _[0]=1/t[0],_[1]=1/t[1],_[2]=1/t[2],p(this._aabb(),e,_,r,i)}createGeometry(){l(this.renderData,this._horizontalScaleFactor),this.setMemoryDirty()}getDefaultVerticesPerSide(){return this.level<9?3:2}updateCornerElevations(){c(this.renderData,this._horizontalScaleFactor)}updateEdgeElevations(){h(this.renderData,this._horizontalScaleFactor)}updateEdgeElevationsAndResolutions(){d(this.renderData,this._horizontalScaleFactor)}get horizontalScale(){return this._horizontalScaleFactor}}const _=t();export{S as PlanarPatch};
5
+ import{fromValues as e,create as t}from"../../../core/libs/gl-matrix-2/factories/vec3f64.js";import r from"../../../geometry/SpatialReference.js";import{projectVectorToVector as o}from"../../../geometry/projection/projectVectorToVector.js";import{wrap as i}from"../../../geometry/support/aaBoundingBox.js";import{create as s}from"../../../geometry/support/aaBoundingRect.js";import{isPlateCarree as n}from"../../../geometry/support/spatialReferenceUtils.js";import{TileFrustumVisibility as a}from"./ITile.js";import{createPlanarGlobePatch as l,updateCornersPlanar as u,updateEdgesAndCornersPlanar as h,updateEdgeElevationsAndResolutionsPlanar as d}from"./PatchGeometryFactory.js";import{Tile as c,CenterPosition as m}from"./Tile.js";import{intersectAabbInvDirBefore as p}from"../webgl-engine/lib/RayIntersections.js";class _ extends c{constructor(e,t,r,o,i){super(),this._horizontalScaleFactor=1,this._extentInRenderSR=s(),this._baseUsedMemory=900,this._subtreeGeometryElevationBoundMin=0,this._subtreeGeometryElevationBoundMax=0,this.init(e,t,r,o,i)}init(t,i,s,a,l){super.init(t,i,s,a,l);const u=l.view.renderSpatialReference,h=l.spatialReference,d=null!=u&&n(u)&&null!=h&&h.isGeographic?this.ellipsoid.radius*Math.PI/180:1;this._horizontalScaleFactor=d;const{isWebMercatorOnPlateCarree:c}=l,m=this._extentInRenderSR,p=this.extent;if(c){const t=e(p[0],p[1],0);o(t,r.WebMercator,t,r.PlateCarree);const i=e(p[2],p[3],0);o(i,r.WebMercator,i,r.PlateCarree),m[0]=t[0],m[1]=t[1],m[2]=i[0],m[3]=i[1]}else for(let e=0;e<4;++e)m[e]=p[e]*d;this.centerAtSeaLevel[0]=.5*(m[0]+m[2]),this.centerAtSeaLevel[1]=.5*(m[1]+m[3]),this.centerAtSeaLevel[2]=0,this._edgeLen=Math.max(m[2]-m[0],m[3]-m[1]),this._edgeLen2=this._edgeLen*this._edgeLen,this.updateRadiusAndCenter()}updateRadiusAndCenter(){this._updateCenter();const e=this._extentInRenderSR,t=.5*(e[2]-e[0]),r=.5*(e[3]-e[1]),o=Math.sqrt(t*t+r*r),i=.5*(this.elevationBoundsMax-this.elevationBoundsMin),s=Math.max(o,i);this._center[m.MIDDLE][3]=s}_calculateFrustumVisibilityStatus(e){const t=this._aabb(),r=t[0],o=t[1],i=t[2],s=t[3],n=t[4],l=t[5];let u=!0;for(let h=0;h<6;h++){const t=e[h],d=t[0],c=t[1],m=t[2],p=t[3];if(d*(d>0?r:s)+c*(c>0?o:n)+m*(m>0?i:l)+p>=0)return a.OUTSIDE;u=u&&d*(d<0?r:s)+c*(c<0?o:n)+m*(m<0?i:l)+p<=0}return u?a.INSIDE:a.INTERSECTS}_aabb(){const e=this._extentInRenderSR;return i(e[0],e[1],Math.min(this.elevationBoundsMin,this._subtreeGeometryElevationBoundMin),e[2],e[3],Math.max(this.elevationBoundsMax,this._subtreeGeometryElevationBoundMax))}intersectsRay(e,t,r,o){return b[0]=1/t[0],b[1]=1/t[1],b[2]=1/t[2],p(this._aabb(),e,b,r,o)}createGeometry(){l(this.renderData,this._horizontalScaleFactor),this._updateSubtreeGeometryElevationsBounds(),this.setMemoryDirty()}_updateSubtreeGeometryElevationsBounds(){const e=this._subtreeGeometryElevationBoundMin,t=this._subtreeGeometryElevationBoundMax,r=this.renderData;let o=e,i=t;if(r){const e=r.geometry.boundingBox;o=e[2],i=e[5]}else if(!this.isLeaf){o=1/0,i=-1/0;for(const e of this.children)o=Math.min(o,e._subtreeGeometryElevationBoundMin),i=Math.max(i,e._subtreeGeometryElevationBoundMax)}if(o!==this._subtreeGeometryElevationBoundMin||i!==this._subtreeGeometryElevationBoundMax){this._subtreeGeometryElevationBoundMin=o,this._subtreeGeometryElevationBoundMax=i;const e=this.parent;e?._updateSubtreeGeometryElevationsBounds()}}getDefaultVerticesPerSide(){return this.level<9?3:2}updateCornerElevations(){u(this.renderData,this._horizontalScaleFactor),this._updateSubtreeGeometryElevationsBounds()}updateEdgeElevations(){h(this.renderData,this._horizontalScaleFactor),this._updateSubtreeGeometryElevationsBounds()}updateEdgeElevationsAndResolutions(){d(this.renderData,this._horizontalScaleFactor),this._updateSubtreeGeometryElevationsBounds()}get horizontalScale(){return this._horizontalScaleFactor}}const b=t();export{_ as PlanarPatch};
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5720],{68197:(e,t,r)=>{r.d(t,{A:()=>d});var i,o,n=r(40876),s=r(34727),l=r(56507);function a(e){return(0,s.qE)((0,l.Vr)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function p(e,t){const r=e.toString(16).padStart(2,"0");return t?r.substring(0,1):r}class c{static blendColors(e,t,r,i=new c){return i.r=Math.round(e.r+(t.r-e.r)*r),i.g=Math.round(e.g+(t.g-e.g)*r),i.b=Math.round(e.b+(t.b-e.b)*r),i.a=e.a+(t.a-e.a)*r,i._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),i=r[1];if("rgb"===i&&3===e.length||"rgba"===i&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),c.fromArray(r,t)}return c.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===i&&3===e.length||"hsla"===i&&4===e.length)return c.fromArray((0,n.z$)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new c){if("#"!==e[0]||isNaN(Number(`0x${e.substring(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.substring(1,2),16),i=parseInt(e.substring(2,3),16),o=parseInt(e.substring(3,4),16),n=5===e.length?15:parseInt(e.substring(4),16);return c.fromArray([r+16*r,i+16*i,o+16*o,(n+16*n)/255],t)}case 7:case 9:{const r=parseInt(e.substring(1,3),16),i=parseInt(e.substring(3,5),16),o=parseInt(e.substring(5,7),16),n=7===e.length?255:parseInt(e.substring(7),16);return c.fromArray([r,i,o,n/255],t)}default:return null}}static fromArray(e,t=new c){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,n.V6)(e)?(0,n.TS)(e):null;return r&&c.fromArray(r,t)||c.fromRgb(e,t)||c.fromHex(e,t)}static fromJSON(e){return null!=e?new c([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?c.fromString(e,this):Array.isArray(e)?c.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,i=3===r||4===r,o=4===r||8===r,n=`#${p(this.r,i)}${p(this.g,i)}${p(this.b,i)}${o?p(Math.round(255*this.a),i):""}`;return t?n.toUpperCase():n}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=c.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),i=a(this.b);return e===c.AlphaMode.ALWAYS||1!==this.a?[t,r,i,a(255*this.a)]:[t,r,i]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,i){this.r=e,this.g=t,this.b=r,this.a=i}}c.prototype.declaredClass="esri.Color",(o=(i=c||(c={})).AlphaMode||(i.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const d=c},60945:(e,t,r)=>{r.d(t,{A:()=>m});var i,o=r(90237),n=r(25482),s=r(88930),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),c=r(56400);let d=i=class extends n.oY{static get allTime(){return h}static get empty(){return y}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,o=e.end?.getTime()??e.end;return t===i&&r===o}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,s.lL)(r,e,t));let o=this.end;if(o){const r=(0,s.lL)(o,e,t);o=o.getTime()===r.getTime()?r:(0,s.S1)(r,1,e,t)}return new i({start:r,end:o})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,o=e.start?.getTime()??-1/0,n=e.end?.getTime()??1/0;let s,l;return o>=t&&o<=r?s=o:t>=o&&t<=n&&(s=t),r>=o&&r<=n?l=r:n>=t&&n<=r&&(l=n),null==s||null==l||isNaN(s)||isNaN(l)?i.empty:new i({start:s===-1/0?null:new Date(s),end:l===1/0?null:new Date(l)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const o=new i,{start:n,end:l}=this;return null!=n&&(o.start=(0,s.S1)(n,e,t,r)),null!=l&&(o.end=(0,s.S1)(l,e,t,r)),o}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,o._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,o._)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,o._)([(0,p.K)("end")],d.prototype,"writeEnd",null),(0,o._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,o._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,o._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,o._)([(0,a.w)("start")],d.prototype,"readStart",null),(0,o._)([(0,p.K)("start")],d.prototype,"writeStart",null),d=i=(0,o._)([(0,u.$)("esri.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0}),m=d},69540:(e,t,r)=>{r.d(t,{O:()=>p,P:()=>c});var i=r(90237),o=r(69622),n=(r(44208),r(4718)),s=(r(53966),r(97768)),l=r(35666),a=r(88620),u=r(40608);const p=e=>{let t=class extends e{clone(){const e=(0,a.oY)(this);(0,s.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,i={},o=new Map;for(const e in t){const s=t[e],a=r?.originOf(e),u=s.clonable;if(s.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const p=this[e];let c=null;c="function"==typeof u?u(p):"reference"===u?p:(0,n.TU)(p),null!=p&&null==c||(a===l.Gr.DEFAULTS?o.set(e,c):i[e]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(o.size){const e=(0,a.oY)(u)?.store;if(e)for(const[t,r]of o)e.set(t,r,l.Gr.DEFAULTS)}return u}};return t=(0,i._)([(0,u.$)("esri.core.Clonable")],t),t};let c=class extends(p(o.A)){};c=(0,i._)([(0,u.$)("esri.core.Clonable")],c)},69052:(e,t,r)=>{r.d(t,{ie:()=>s});var i=r(34727);class o{constructor(e,t){this.min=e,this.max=t,this.range=t-e}ndiff(e,t=0){return Math.ceil((e-t)/this.range)*this.range+t}_normalize(e,t,r,i=0,o=!1){return(r-=i)<e?r+=this.ndiff(e-r):r>t&&(r-=this.ndiff(r-t)),o&&r===t&&(r=e),r+i}normalize(e,t=0,r=!1){return this._normalize(this.min,this.max,e,t,r)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+this.ndiff(e-t,r)}minimalMonotonic(e,t,r){return this._normalize(e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(i)?r:i}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function n(e){for(const t in e){const r=e[t];r instanceof Function&&(e[t]=r.bind(e))}return e}n(new o(0,2*Math.PI)),n(new o(-Math.PI,Math.PI));const s=n(new o(0,360))},4902:(e,t,r)=>{r.d(t,{PH:()=>l,sA:()=>s});var i=r(90237),o=r(40608);let n=0;const s=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,i._)([(0,o.$)("esri.core.Identifiable")],t),t},l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,i._)([(0,o.$)("esri.core.Identifiable.NumericIdentifiable")],t),t};let a=class extends(s(class{})){};a=(0,i._)([(0,o.$)("esri.core.Identifiable")],a)},80200:(e,t,r)=>{r.d(t,{T:()=>i,d:()=>m});const i={Base64:0,Hex:1,String:2,Raw:3},o=8,n=(1<<o)-1;function s(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function l(e){const t=[];for(let r=0,i=e.length*o;r<i;r+=o)t[r>>5]|=(e.charCodeAt(r/o)&n)<<r%32;return t}function a(e){const t=[];for(let r=0,i=32*e.length;r<i;r+=o)t.push(String.fromCharCode(e[r>>5]>>>r%32&n));return t.join("")}function u(e,t,r,i,o,n){return s(function(e,t){return e<<t|e>>>32-t}(s(s(t,e),s(i,n)),o),r)}function p(e,t,r,i,o,n,s){return u(t&r|~t&i,e,t,o,n,s)}function c(e,t,r,i,o,n,s){return u(t&i|r&~i,e,t,o,n,s)}function d(e,t,r,i,o,n,s){return u(t^r^i,e,t,o,n,s)}function h(e,t,r,i,o,n,s){return u(r^(t|~i),e,t,o,n,s)}function y(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;let r=1732584193,i=-271733879,o=-1732584194,n=271733878;for(let t=0;t<e.length;t+=16){const l=r,a=i,u=o,y=n;r=p(r,i,o,n,e[t],7,-680876936),n=p(n,r,i,o,e[t+1],12,-389564586),o=p(o,n,r,i,e[t+2],17,606105819),i=p(i,o,n,r,e[t+3],22,-1044525330),r=p(r,i,o,n,e[t+4],7,-176418897),n=p(n,r,i,o,e[t+5],12,1200080426),o=p(o,n,r,i,e[t+6],17,-1473231341),i=p(i,o,n,r,e[t+7],22,-45705983),r=p(r,i,o,n,e[t+8],7,1770035416),n=p(n,r,i,o,e[t+9],12,-1958414417),o=p(o,n,r,i,e[t+10],17,-42063),i=p(i,o,n,r,e[t+11],22,-1990404162),r=p(r,i,o,n,e[t+12],7,1804603682),n=p(n,r,i,o,e[t+13],12,-40341101),o=p(o,n,r,i,e[t+14],17,-1502002290),i=p(i,o,n,r,e[t+15],22,1236535329),r=c(r,i,o,n,e[t+1],5,-165796510),n=c(n,r,i,o,e[t+6],9,-1069501632),o=c(o,n,r,i,e[t+11],14,643717713),i=c(i,o,n,r,e[t],20,-373897302),r=c(r,i,o,n,e[t+5],5,-701558691),n=c(n,r,i,o,e[t+10],9,38016083),o=c(o,n,r,i,e[t+15],14,-660478335),i=c(i,o,n,r,e[t+4],20,-405537848),r=c(r,i,o,n,e[t+9],5,568446438),n=c(n,r,i,o,e[t+14],9,-1019803690),o=c(o,n,r,i,e[t+3],14,-187363961),i=c(i,o,n,r,e[t+8],20,1163531501),r=c(r,i,o,n,e[t+13],5,-1444681467),n=c(n,r,i,o,e[t+2],9,-51403784),o=c(o,n,r,i,e[t+7],14,1735328473),i=c(i,o,n,r,e[t+12],20,-1926607734),r=d(r,i,o,n,e[t+5],4,-378558),n=d(n,r,i,o,e[t+8],11,-2022574463),o=d(o,n,r,i,e[t+11],16,1839030562),i=d(i,o,n,r,e[t+14],23,-35309556),r=d(r,i,o,n,e[t+1],4,-1530992060),n=d(n,r,i,o,e[t+4],11,1272893353),o=d(o,n,r,i,e[t+7],16,-155497632),i=d(i,o,n,r,e[t+10],23,-1094730640),r=d(r,i,o,n,e[t+13],4,681279174),n=d(n,r,i,o,e[t],11,-358537222),o=d(o,n,r,i,e[t+3],16,-722521979),i=d(i,o,n,r,e[t+6],23,76029189),r=d(r,i,o,n,e[t+9],4,-640364487),n=d(n,r,i,o,e[t+12],11,-421815835),o=d(o,n,r,i,e[t+15],16,530742520),i=d(i,o,n,r,e[t+2],23,-995338651),r=h(r,i,o,n,e[t],6,-198630844),n=h(n,r,i,o,e[t+7],10,1126891415),o=h(o,n,r,i,e[t+14],15,-1416354905),i=h(i,o,n,r,e[t+5],21,-57434055),r=h(r,i,o,n,e[t+12],6,1700485571),n=h(n,r,i,o,e[t+3],10,-1894986606),o=h(o,n,r,i,e[t+10],15,-1051523),i=h(i,o,n,r,e[t+1],21,-2054922799),r=h(r,i,o,n,e[t+8],6,1873313359),n=h(n,r,i,o,e[t+15],10,-30611744),o=h(o,n,r,i,e[t+6],15,-1560198380),i=h(i,o,n,r,e[t+13],21,1309151649),r=h(r,i,o,n,e[t+4],6,-145523070),n=h(n,r,i,o,e[t+11],10,-1120210379),o=h(o,n,r,i,e[t+2],15,718787259),i=h(i,o,n,r,e[t+9],21,-343485551),r=s(r,l),i=s(i,a),o=s(o,u),n=s(n,y)}return[r,i,o,n]}function m(e,t=i.Hex){const r=t||i.Base64,n=y(l(e),e.length*o);switch(r){case i.Raw:return n;case i.Hex:return function(e){const t="0123456789abcdef",r=[];for(let i=0,o=4*e.length;i<o;i++)r.push(t.charAt(e[i>>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15));return r.join("")}(n);case i.String:return a(n);case i.Base64:return function(e){const t=[];for(let r=0,i=4*e.length;r<i;r+=3){const i=(e[r>>2]>>r%4*8&255)<<16|(e[r+1>>2]>>(r+1)%4*8&255)<<8|e[r+2>>2]>>(r+2)%4*8&255;for(let o=0;o<4;o++)8*r+6*o>32*e.length?t.push("="):t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>6*(3-o)&63))}return t.join("")}(n)}}},87024:(e,t,r)=>{r.d(t,{P:()=>h});var i=r(49186),o=r(80200),n=r(76553),s=r(84952),l=r(13069),a=r(96156),u=r(35666),p=r(10107),c=r(85648),d=r(97159);function h(e){const t=e?.origins??[void 0];return(r,i)=>{const o=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const i=(0,a.z4)(t,r);return{type:String,read:(e,t,r)=>{const o=(0,d.r)(e,t,r);return i.type===String?o:"function"==typeof i.type?new i.type({url:o}):void 0},write:{writer(t,o,l,a){if(!a?.resources)return"string"==typeof t?void(o[l]=(0,d.t)(t,a)):void(o[l]=t.write({},a));const p=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),h=(0,d.t)(p,{...a,verifyItemRelativeUrls:a?.verifyItemRelativeUrls?{writtenUrls:a.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),f=i.type!==String&&(!(0,n.H)(this)||a?.origin&&this.originIdOf(r)>(0,u.aB)(a.origin)),v={object:this,propertyName:r,value:t,targetUrl:h,dest:o,targetPropertyName:l,context:a,params:e};a?.portalItem&&h&&!(0,s.oP)(h)?f&&e?.contentAddressed?y(v):f?function(e){const{context:t,targetUrl:r,params:i,value:o,dest:n,targetPropertyName:l}=e;if(!t.portalItem)return;const a=t.portalItem.resourceFromPath(r),u=g(o,r,t),p=(0,c.n)(u),d=(0,s.Zo)(a.path),h=i?.compress??!1;p===d?(t.resources&&m({...e,resource:a,content:u,compress:h,updates:t.resources.toUpdate}),n[l]=r):y(e)}(v):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(v):a?.portalItem&&(null==h||null!=(0,d.i)(h)||(0,s.w8)(h)||f)?y(v):o[l]=h}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.b;return{read:e,write:t}}}}(e,r,i);for(const e of t){const t=(0,p.rM)(r,e,i);for(const e in o)t[e]=o[e]}}}function y(e){const{targetUrl:t,params:r,value:n,context:a,dest:u,targetPropertyName:p}=e;if(!a.portalItem)return;const h=(0,d.p)(t),y=g(n,t,a);if(r?.contentAddressed&&"json"!==y.type)return void a.messages?.push(new i.A("persistable:contentAddressingUnsupported",`Property "${p}" is trying to serializing a resource with content of type ${y.type} with content addressing. Content addressing is only supported for json resources.`,{content:y}));const f=r?.contentAddressed&&"json"===y.type?(0,o.d)(y.jsonString):h?.filename??(0,l.lk)(),v=(0,s.fj)(r?.prefix??h?.prefix,f),b=`${v}.${(0,c.n)(y)}`;if(r?.contentAddressed&&a.resources&&"json"===y.type){const e=a.resources.toKeep.find((({resource:e})=>e.path===b))??a.resources.toAdd.find((({resource:e})=>e.path===b));if(e)return void(u[p]=e.resource.itemRelativeUrl)}const S=a.portalItem.resourceFromPath(b);(0,s.w8)(t)&&a.resources&&a.resources.pendingOperations.push((0,s.tk)(t).then((e=>{S.path=`${v}.${(0,c.n)({type:"blob",blob:e})}`,u[p]=S.itemRelativeUrl})).catch((()=>{})));const w=r?.compress??!1;a.resources&&m({...e,resource:S,content:y,compress:w,updates:a.resources.toAdd}),u[p]=S.itemRelativeUrl}function m({object:e,propertyName:t,updates:r,resource:i,content:o,compress:n}){r.push({resource:i,content:o,compress:n,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function g(e,t,r){return"string"==typeof e?{type:"url",url:t}:{type:"json",jsonString:JSON.stringify(e.toJSON(r))}}},29242:(e,t,r)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function o(e,t,r,i,o,n,s,l,a){return[e,t,r,i,o,n,s,l,a]}r.d(t,{fA:()=>o,vt:()=>i,zK:()=>n});const n=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:function(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},create:i,createView:function(e,t){return new Float64Array(e,t,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},82534:(e,t,r)=>{function i(){return[0,0,0,1]}function o(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>o,vt:()=>i,zK:()=>n});const n=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:o,create:i,createView:function(e,t){return new Float64Array(e,t,4)},fromValues:function(e,t,r,i){return[e,t,r,i]}},Symbol.toStringTag,{value:"Module"}))},67026:(e,t,r)=>{r.d(t,{A6:()=>m,Xd:()=>p,Xr:()=>h,hZ:()=>f,lw:()=>c,t2:()=>Z,x8:()=>u});var i=r(29242),o=r(82534),n=r(51850),s=r(34304),l=r(38954),a=r(87317);function u(e,t,r){r*=.5;const i=Math.sin(r);return e[0]=i*t[0],e[1]=i*t[1],e[2]=i*t[2],e[3]=Math.cos(r),e}function p(e,t){const r=2*Math.acos(t[3]),i=Math.sin(r/2);return i>(0,s.FD)()?(e[0]=t[0]/i,e[1]=t[1]/i,e[2]=t[2]/i):(e[0]=1,e[1]=0,e[2]=0),r}function c(e,t,r){const i=t[0],o=t[1],n=t[2],s=t[3],l=r[0],a=r[1],u=r[2],p=r[3];return e[0]=i*p+s*l+o*u-n*a,e[1]=o*p+s*a+n*l-i*u,e[2]=n*p+s*u+i*a-o*l,e[3]=s*p-i*l-o*a-n*u,e}function d(e,t,r,i){const o=t[0],n=t[1],l=t[2],a=t[3];let u,p,c,d,h,y=r[0],m=r[1],g=r[2],f=r[3];return p=o*y+n*m+l*g+a*f,p<0&&(p=-p,y=-y,m=-m,g=-g,f=-f),1-p>(0,s.FD)()?(u=Math.acos(p),c=Math.sin(u),d=Math.sin((1-i)*u)/c,h=Math.sin(i*u)/c):(d=1-i,h=i),e[0]=d*o+h*y,e[1]=d*n+h*m,e[2]=d*l+h*g,e[3]=d*a+h*f,e}function h(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){const r=t[0]+t[4]+t[8];let i;if(r>0)i=Math.sqrt(r+1),e[3]=.5*i,i=.5/i,e[0]=(t[5]-t[7])*i,e[1]=(t[6]-t[2])*i,e[2]=(t[1]-t[3])*i;else{let r=0;t[4]>t[0]&&(r=1),t[8]>t[3*r+r]&&(r=2);const o=(r+1)%3,n=(r+2)%3;i=Math.sqrt(t[3*r+r]-t[3*o+o]-t[3*n+n]+1),e[r]=.5*i,i=.5/i,e[3]=(t[3*o+n]-t[3*n+o])*i,e[o]=(t[3*o+r]+t[3*r+o])*i,e[n]=(t[3*n+r]+t[3*r+n])*i}return e}function m(e,t,r,i){const o=.5*Math.PI/180;t*=o,r*=o,i*=o;const n=Math.sin(t),s=Math.cos(t),l=Math.sin(r),a=Math.cos(r),u=Math.sin(i),p=Math.cos(i);return e[0]=n*a*p-s*l*u,e[1]=s*l*p+n*a*u,e[2]=s*a*u-n*l*p,e[3]=s*a*p+n*l*u,e}const g=a.c,f=a.s,v=a.g,b=c,S=a.d,w=a.h,_=a.l,M=a.i,x=M,A=a.j,j=A,V=a.n,Z=a.a,I=a.e,T=(0,n.vt)(),N=(0,n.fA)(1,0,0),z=(0,n.fA)(0,1,0),R=(0,o.vt)(),P=(0,o.vt)(),F=(0,i.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:v,calculateW:function(e,t){const r=t[0],i=t[1],o=t[2];return e[0]=r,e[1]=i,e[2]=o,e[3]=Math.sqrt(Math.abs(1-r*r-i*i-o*o)),e},conjugate:h,copy:g,dot:w,equals:I,exactEquals:Z,fromEuler:m,fromMat3:y,getAxisAngle:p,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){const r=t[0],i=t[1],o=t[2],n=t[3],s=r*r+i*i+o*o+n*n,l=s?1/s:0;return e[0]=-r*l,e[1]=-i*l,e[2]=-o*l,e[3]=n*l,e},len:x,length:M,lerp:_,mul:b,multiply:c,normalize:V,random:function(e){const t=s.Ov,r=t(),i=t(),o=t(),n=Math.sqrt(1-r),l=Math.sqrt(r);return e[0]=n*Math.sin(2*Math.PI*i),e[1]=n*Math.cos(2*Math.PI*i),e[2]=l*Math.sin(2*Math.PI*o),e[3]=l*Math.cos(2*Math.PI*o),e},rotateX:function(e,t,r){r*=.5;const i=t[0],o=t[1],n=t[2],s=t[3],l=Math.sin(r),a=Math.cos(r);return e[0]=i*a+s*l,e[1]=o*a+n*l,e[2]=n*a-o*l,e[3]=s*a-i*l,e},rotateY:function(e,t,r){r*=.5;const i=t[0],o=t[1],n=t[2],s=t[3],l=Math.sin(r),a=Math.cos(r);return e[0]=i*a-n*l,e[1]=o*a+s*l,e[2]=n*a+i*l,e[3]=s*a-o*l,e},rotateZ:function(e,t,r){r*=.5;const i=t[0],o=t[1],n=t[2],s=t[3],l=Math.sin(r),a=Math.cos(r);return e[0]=i*a+o*l,e[1]=o*a-i*l,e[2]=n*a+s*l,e[3]=s*a-n*l,e},rotationTo:function(e,t,r){const i=(0,l.k)(t,r);return i<-.999999?((0,l.b)(T,N,t),(0,l.D)(T)<1e-6&&(0,l.b)(T,z,t),(0,l.n)(T,T),u(e,T,Math.PI),e):i>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,l.b)(T,t,r),e[0]=T[0],e[1]=T[1],e[2]=T[2],e[3]=1+i,V(e,e))},scale:S,set:f,setAxes:function(e,t,r,i){const o=F;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=i[0],o[4]=i[1],o[7]=i[2],o[2]=-t[0],o[5]=-t[1],o[8]=-t[2],V(e,y(e,o))},setAxisAngle:u,slerp:d,sqlerp:function(e,t,r,i,o,n){return d(R,t,o,n),d(P,r,i,n),d(e,R,P,2*n*(1-n)),e},sqrLen:j,squaredLength:A,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"}))},76620:(e,t,r)=>{r.d(t,{A:()=>b});var i,o=r(90237),n=r(4576),s=r(66552),l=r(25482),a=r(83047),u=r(67076),p=r(10107),c=(r(44208),r(53966),r(36005)),d=r(40608),h=r(43937);const y=(0,s.O)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=y.jsonValues.slice();(0,n.Xy)(m,"orthometric");const g=(0,s.O)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=i=class extends l.oY{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return y.write(e,t,r)}readHeightModel(e,t,r){return y.read(e)||(r?.messages&&r.messages.push(function(e,t){return new u.A("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,a.LA)(e)||g.read(e)||(r?.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,a.k1)(t);return new i({heightModel:e.heightModel,heightUnit:r??void 0,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new u.A("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,p.MZ)({type:y.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,o._)([(0,h.K)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,o._)([(0,c.w)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,o._)([(0,p.MZ)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:g.write}}}})],f.prototype,"heightUnit",void 0),(0,o._)([(0,c.w)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,o._)([(0,c.w)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,o._)([(0,p.MZ)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,o._)([(0,c.w)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=i=(0,o._)([(0,d.$)("esri.geometry.HeightModelInfo")],f);const b=f},4146:(e,t,r)=>{r.d(t,{A:()=>b});var i=r(90237),o=(r(59456),r(78888)),n=r(49186),s=r(65529),l=r(4902),a=r(92474),u=r(53966),p=r(74887),c=r(84952),d=r(10107),h=(r(44208),r(87811),r(40608)),y=r(92602),m=r(5443),g=r(16930);let f=0,v=class extends(s.A.EventedMixin((0,l.sA)(a.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",o=r?.portal?.url||y.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,p.zf)(e)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.MZ)({type:m.A})],v.prototype,"fullExtent",void 0),(0,i._)([(0,d.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,d.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,d.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,d.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,d.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,d.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,d.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,d.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,d.MZ)({type:g.A})],v.prototype,"spatialReference",void 0),(0,i._)([(0,d.MZ)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,d.MZ)()],v.prototype,"url",void 0),(0,i._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,h.$)("esri.layers.Layer")],v);const b=v},9006:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ke});var i=r(90237),o=r(13874),n=r(5503),s=r(49186),l=r(53966),a=r(92071),u=r(74887),p=r(10107),c=r(56507),d=(r(87811),r(44208),r(36005)),h=r(40608),y=r(38954),m=r(51850),g=r(5443),f=r(4146),v=r(52136),b=r(18768),S=r(69208),w=r(16131),_=r(8303),M=r(25036),x=r(58947),A=r(60694),j=r(55785),V=r(20437),Z=r(69540),I=r(69052),T=r(25482),N=r(87024),z=r(67026),R=r(82534),P=r(34304);const F=(0,m.vt)(),D=(0,R.vt)(),L=(0,R.vt)(),O=(0,R.vt)(),E=(0,m.fA)(0,0,1),U=(0,m.fA)(0,1,0),q=(0,m.fA)(1,0,0);function $(e){(0,y.c)(F,e),(0,y.n)(F,F);const t=Math.atan2(F[1],F[0]),r=(0,z.x8)((0,R.vt)(),E,-t);(0,y.u)(F,F,r);const i=-1*Math.atan2(F[2],F[0]);return[(0,P.ct)(t)+270,(0,P.ct)(i)+90]}function C(e,t){return(0,z.x8)(L,E,(0,P.DF)(e-270)),(0,z.x8)(O,U,(0,P.DF)(t-90)),(0,z.lw)(D,L,O),(0,y.c)(F,q),(0,y.u)(F,F,D),(0,y.n)(F,F),[F[0],F[1],F[2]]}var B=r(79901);let k=class extends((0,Z.O)(T.oY)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(e),0,!0)}set orientation(e){const t=C(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(t),0,!0)}set tilt(e){const t=C(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,i._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],k.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],k.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.w)((e=>I.ie.normalize((0,c.GB)(e),0,!0)))],k.prototype,"orientation",null),(0,i._)([(0,p.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.w)((e=>I.ie.normalize((0,c.GB)(e),0,!0)))],k.prototype,"tilt",null),(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],k.prototype,"normal",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],k.prototype,"point",void 0),k=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelSlice")],k);const Y=k;var H=r(97159);let G=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.enabled=!0,this.href=null,this.id=null,this.label="",this.normal=null,this.point=null,this.sizeInPixel=null,this.slices=null,this.timeId=0,this.variableId=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(e),0,!0)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(t),0,!0)}};(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!0,write:!0}})],G.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:String,json:{origins:{service:{read:H.r}},write:{enabled:!0,isRequired:!0}}}),(0,N.P)({origins:["web-scene"],type:"resource",prefix:"sections",compress:!0})],G.prototype,"href",void 0),(0,i._)([(0,p.MZ)({type:c.jz,json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"id",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],G.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],G.prototype,"orientation",null),(0,i._)([(0,p.MZ)({type:Number,clonable:!1,readOnly:!0,range:{min:0,max:360}})],G.prototype,"tilt",null),(0,i._)([(0,p.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"normal",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"point",void 0),(0,i._)([(0,p.MZ)({type:[c.jz],json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"sizeInPixel",void 0),(0,i._)([(0,p.MZ)({type:[Y],json:{write:!0}})],G.prototype,"slices",void 0),(0,i._)([(0,p.MZ)({type:c.jz,json:{default:0,write:!0}})],G.prototype,"timeId",void 0),(0,i._)([(0,p.MZ)({type:c.jz,json:{write:{enabled:!0,isRequired:!0}}})],G.prototype,"variableId",void 0),G=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelSection")],G);const J=G;let W=class extends T.oY{constructor(){super(...arguments),this.diffuseFactor=.5,this.specularFactor=.5}};(0,i._)([(0,p.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"diffuseFactor",void 0),(0,i._)([(0,p.MZ)({type:Number,range:{min:0,max:1},json:{default:.5,write:!0}})],W.prototype,"specularFactor",void 0),W=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelSimpleShading")],W);const K=W;let Q=class extends T.oY{constructor(){super(...arguments),this.continuity=null,this.hasNoData=!1,this.noData=0,this.offset=0,this.scale=1,this.type=null}};(0,i._)([(0,p.MZ)({type:["discrete","continuous"],json:{write:!0}})],Q.prototype,"continuity",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Q.prototype,"hasNoData",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Q.prototype,"noData",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Q.prototype,"offset",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Q.prototype,"scale",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Q.prototype,"type",void 0),Q=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelFormat")],Q);const X=Q;let ee=class extends T.oY{constructor(){super(...arguments),this.id=null,this.description="",this.name=null,this.originalFormat=null,this.renderingFormat=null,this.unit="",this.volumeId=0,this.type=null}};(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"id",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],ee.prototype,"description",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"name",void 0),(0,i._)([(0,p.MZ)({type:X,json:{write:!0}})],ee.prototype,"originalFormat",void 0),(0,i._)([(0,p.MZ)({type:X,json:{write:{enabled:!0,isRequired:!0}}})],ee.prototype,"renderingFormat",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],ee.prototype,"unit",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],ee.prototype,"volumeId",void 0),(0,i._)([(0,p.MZ)({type:["stc-hot-spot-results","stc-cluster-outlier-results","stc-estimated-bin","generic-nearest-interpolated"],json:{write:!0}})],ee.prototype,"type",void 0),ee=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelVariable")],ee);const te=ee;var re=r(4718),ie=r(68197);let oe=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label="",this.colorLocked=!1}};(0,i._)([(0,p.MZ)({type:ie.A,json:{type:[c.jz],write:{enabled:!0,isRequired:!0}}})],oe.prototype,"color",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],oe.prototype,"value",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!0,write:!0}})],oe.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],oe.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],oe.prototype,"colorLocked",void 0),oe=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelIsosurface")],oe);const ne=oe;var se=r(62885),le=r(34727);let ae=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.color=null,this.position=0}};(0,i._)([(0,p.MZ)({type:ie.A,json:{type:[c.jz],write:{enabled:!0,isRequired:!0}}})],ae.prototype,"color",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],ae.prototype,"position",void 0),ae=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelColorStop")],ae);const ue=ae;let pe=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.opacity=1,this.position=0}};(0,i._)([(0,p.MZ)({type:Number,json:{name:"alpha",write:{enabled:!0,isRequired:!0}}})],pe.prototype,"opacity",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],pe.prototype,"position",void 0),pe=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelOpacityStop")],pe);const ce=pe;let de=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.enabled=!1,this.range=null}};(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!1,write:!0}})],de.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],de.prototype,"range",void 0),de=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelRangeFilter")],de);const he=de;var ye,me;(me=ye||(ye={}))[me.Color=1]="Color",me[me.Alpha=2]="Alpha",me[me.Both=3]="Both";let ge=class extends((0,Z.O)(T.oY)){constructor(e){super(e),this.interpolation=null,this.stretchRange=null,this.rangeFilter=null,this._colorMapSize=256,this.colorStops=new(n.A.ofType(ue)),this.opacityStops=new(n.A.ofType(ce))}set colorStops(e){this._set("colorStops",(0,se.V)(e,this._get("colorStops"),n.A.ofType(ue)))}set opacityStops(e){this._set("opacityStops",(0,se.V)(e,this._get("opacityStops"),n.A.ofType(ce)))}getPreviousNext(e,t,r){let i=e;for(;--i>0&&t[i].type!==r&&t[i].type!==ye.Both;);let o=e;const n=t.length;for(;++o<n&&t[o].type!==r&&t[o].type!==ye.Both;);return[i,o]}get rasterizedTransferFunction(){const e=[];if(this.colorStops.length<2)return e;const t=[],r=[];for(const t of this.colorStops){if(!t.color)return e;r.push({color:{r:t.color.r,g:t.color.g,b:t.color.b,a:Math.round(255*(1-t.color.a))},position:t.position,type:ye.Color})}if(0===this.opacityStops.length)for(const e of r)t.push({color:e.color,position:e.position});else{for(const e of this.opacityStops){const t=(0,le.qE)(e.position,0,1),i=Math.round(255*(0,le.qE)(1-e.opacity,0,1));let o=!1;for(const e of r)if(e.type===ye.Color&&Math.abs(e.position-t)<1e-5){e.color.a=i,e.type=ye.Both,o=!0;break}o||r.push({color:{r:0,g:0,b:0,a:i},position:e.position,type:ye.Alpha})}r.sort(((e,t)=>e.position<t.position?-1:1));const e=r.length;for(let t=0;t<e;++t){const i=r[t];if(i.type!==ye.Both)if(i.type===ye.Color){const[o,n]=this.getPreviousNext(t,r,ye.Alpha);if(-1!==o&&n!==e){const e=(i.position-r[o].position)/(r[n].position-r[o].position);i.color.a=Math.round((0,le.Cc)(r[o].color.a,r[n].color.a,e))}else i.color.a=-1!==o?r[o].color.a:r[n].color.a}else{const[o,n]=this.getPreviousNext(t,r,ye.Color);if(-1!==o&&n!==e){const e=(i.position-r[o].position)/(r[n].position-r[o].position),t=r[o].color,s=r[n].color;ve.forEach((r=>{i.color[r]=Math.round((0,le.Cc)(t[r],s[r],e))}))}else-1!==o?ve.forEach((e=>{i.color[e]=r[o].color[e]})):ve.forEach((e=>{i.color[e]=r[n].color[e]}))}}for(const e of r)t.push({color:e.color,position:e.position})}t[0].position=0,t[t.length-1].position=1;let i=0,o=1;for(let r=0;r<this._colorMapSize;++r){const n=r/this._colorMapSize;for(;n>t[o].position;)i=o++;const s=(n-t[i].position)/(t[o].position-t[i].position),l=t[i].color,a=t[o].color,u=new ie.A;ve.forEach((e=>{u[e]=Math.round((0,le.Cc)(l[e],a[e],s))})),u.a=(0,le.qE)(1-(0,le.Cc)(l.a,a.a,s)/255,0,1),e.push(u)}return e}getColorForContinuousDataValue(e,t){const r=this.rasterizedTransferFunction;if(this.colorStops.length<2||!Array.isArray(this.stretchRange)||this.stretchRange.length<2||r.length<256)return null;let i=this.stretchRange[0],o=this.stretchRange[1];if(i>o){const e=i;i=o,o=e}e=(0,le.qE)(e,i,o);const n=r[Math.round((e-i)/(o-i)*(this._colorMapSize-1))].clone();return t||(n.a=1),n}};(0,i._)([(0,p.MZ)({type:["linear","nearest"],json:{write:!0}})],ge.prototype,"interpolation",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],ge.prototype,"stretchRange",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(ue),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.colorStops&&this.colorStops.length>0}}}}})],ge.prototype,"colorStops",null),(0,i._)([(0,p.MZ)({type:n.A.ofType(ce),json:{read:{source:"alphaStops"},write:{enabled:!0,target:"alphaStops",overridePolicy(){return{enabled:!!this.opacityStops&&this.opacityStops.length>0}}}}})],ge.prototype,"opacityStops",null),(0,i._)([(0,p.MZ)({type:he,json:{write:!0}})],ge.prototype,"rangeFilter",void 0),(0,i._)([(0,p.MZ)({type:[ie.A],clonable:!1,json:{read:!1}})],ge.prototype,"rasterizedTransferFunction",null),ge=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelTransferFunctionStyle")],ge);const fe=ge,ve=["r","g","b"];let be=class extends((0,Z.O)(T.oY)){constructor(){super(...arguments),this.color=ie.A.fromArray([0,0,0,0]),this.value=0,this.enabled=!0,this.label=""}};(0,i._)([(0,p.MZ)({type:ie.A,json:{type:[c.jz],write:{enabled:!0,isRequired:!0}}})],be.prototype,"color",void 0),(0,i._)([(0,p.MZ)({type:c.jz,json:{write:{enabled:!0,isRequired:!0}}})],be.prototype,"value",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!0,write:!0}})],be.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],be.prototype,"label",void 0),be=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelUniqueValue")],be);const Se=be;var we;let _e=we=class extends T.oY{constructor(e){super(e),this.variableId=0,this.label="",this.transferFunction=null,this.uniqueValues=null,this.isosurfaces=null,this.uniqueValues=new(n.A.ofType(Se)),this.isosurfaces=new(n.A.ofType(ne))}clone(){return new we({variableId:this.variableId,label:this.label,transferFunction:(0,re.o8)(this.transferFunction),uniqueValues:(0,re.o8)(this.uniqueValues),isosurfaces:(0,re.o8)(this.isosurfaces)})}};(0,i._)([(0,p.MZ)({type:c.jz,json:{write:{enabled:!0,isRequired:!0}}})],_e.prototype,"variableId",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],_e.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:fe,json:{write:{enabled:!0,overridePolicy(){return{enabled:!this.uniqueValues||this.uniqueValues.length<1}}}}})],_e.prototype,"transferFunction",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(Se),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.uniqueValues&&this.uniqueValues.length>0}}}}})],_e.prototype,"uniqueValues",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(ne),json:{write:{enabled:!0,overridePolicy(){const e=!this.uniqueValues||this.uniqueValues.length<1,t=!!this.isosurfaces&&this.isosurfaces.length>0;return{enabled:e&&t}}}}})],_e.prototype,"isosurfaces",void 0),_e=we=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelVariableStyle")],_e);const Me=_e;var xe=r(86738),Ae=r(16930),je=r(21325);let Ve=class extends T.oY{constructor(){super(...arguments),this.values=null}};(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],Ve.prototype,"values",void 0),Ve=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelIrregularSpacing")],Ve);const Ze=Ve;let Ie=class extends T.oY{constructor(){super(...arguments),this.scale=1,this.offset=0}};(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Ie.prototype,"scale",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Ie.prototype,"offset",void 0),Ie=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelRegularSpacing")],Ie);const Te=Ie;let Ne=class extends T.oY{constructor(){super(...arguments),this.irregularSpacing=null,this.isPositiveUp=!0,this.isWrappedDateLine=!1,this.label=null,this.name=null,this.quantity=null,this.regularSpacing=null,this.size=0,this.unit=null}get isRegular(){return(null==this.irregularSpacing||void 0===this.irregularSpacing)&&null!==this.regularSpacing}getRange(){return this.isRegular?[this.regularSpacing.offset,this.regularSpacing.offset+this.regularSpacing.scale*(this.size-1)]:Array.isArray(this.irregularSpacing?.values)&&this.irregularSpacing.values.length>1?[this.irregularSpacing.values[0],this.irregularSpacing.values[this.irregularSpacing.values.length-1]]:[0,0]}};(0,i._)([(0,p.MZ)({type:Ze,json:{write:!0}})],Ne.prototype,"irregularSpacing",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Ne.prototype,"isPositiveUp",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{write:!0}})],Ne.prototype,"isWrappedDateLine",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],Ne.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],Ne.prototype,"name",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],Ne.prototype,"quantity",void 0),(0,i._)([(0,p.MZ)({type:Te,json:{write:!0}})],Ne.prototype,"regularSpacing",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:!0}})],Ne.prototype,"size",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],Ne.prototype,"unit",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{read:!1}})],Ne.prototype,"isRegular",null),Ne=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelDimension")],Ne);const ze=Ne;let Re=class extends T.oY{constructor(e){super(e),this.id=0,this.dimensions=null,this.spatialReference=Ae.A.WGS84}get zDimension(){if(!this.dimensions)return-1;if(!Array.isArray(this.dimensions))return-1;if(4!==this.dimensions.length)return-1;for(let e=2;e<4;++e)if(this.dimensions[e].size>0)return e;return-1}get isValid(){return!(!this.dimensions||!Array.isArray(this.dimensions)||4!==this.dimensions.length||this.dimensions[0].size<1||this.dimensions[1].size<1||-1===this.zDimension||this.dimensions[this.zDimension].size<1)}get originInLayerSpace3D(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],i=r.isRegular?r.getRange():[0,r.size];return[e[0],t[0],i[0]]}get voxelSizeInLayerSpaceSigned(){if(!this.isValid||"xyt"===this.volumeType)return[0,0,0];const e=this.dimensions[0].getRange(),t=this.dimensions[1].getRange(),r=this.dimensions[2],i=r.isRegular?r.getRange():[0,r.size],o=[this.sizeInVoxels[0],this.sizeInVoxels[1],this.sizeInVoxels[2]];for(let e=0;e<3;++e)o[e]<2?o[e]=1:o[e]-=1;return r.isRegular&&!r.isPositiveUp&&(o[2]*=-1),[(e[1]-e[0])/o[0],(t[1]-t[0])/o[1],(i[1]-i[0])/o[2]]}get volumeType(){if(this.isValid){const e=this.dimensions[2].size>0,t=this.dimensions[3].size>0;if(!e&&t)return"xyt";if(e&&t)return"xyzt"}return"xyz"}get sizeInVoxels(){if(!this.isValid)return[0,0,0];const e=this.zDimension;return[this.dimensions[0].size,this.dimensions[1].size,this.dimensions[e].size]}computeVoxelSpaceLocation(e){if(!this.isValid)return[0,0,0];if("xyt"===this.volumeType)return l.A.getLogger(this).error("computeVoxelSpacePosition cannot be used with XYT volumes."),[0,0,0];if(!(0,je.aI)(this.spatialReference,e.spatialReference))return l.A.getLogger(this).error("pos argument should have the same spatial reference as the VoxelLayer."),[0,0,0];const t=(0,m.fA)(e.x,e.y,e.z??0);(0,y.f)(t,t,this.originInLayerSpace3D),(0,y.H)(t,t,this.voxelSizeInLayerSpaceSigned);const r=this.dimensions[this.zDimension];if(!r.isRegular&&Array.isArray(r.irregularSpacing?.values)&&r.irregularSpacing.values.length>1){const i=e.z??0,o=r.irregularSpacing.values,n=r.isPositiveUp?1:-1,s=o.reduce(((e,t)=>Math.abs(n*t-i)<Math.abs(n*e-i)?t:e));for(let e=0;e<o.length;++e)if(o[e]===s){t[2]=e;break}}return[t[0],t[1],t[2]]}computeLayerSpaceLocation(e){if(!this.isValid)return new xe.A({x:0,y:0,spatialReference:this.spatialReference});const t=(0,m.ci)(e);if((0,y.B)(t,t,this.voxelSizeInLayerSpaceSigned),(0,y.g)(t,t,this.originInLayerSpace3D),"xyt"===this.volumeType)return new xe.A({x:t[0],y:t[1],spatialReference:this.spatialReference});const r=this.dimensions[this.zDimension];return r.isRegular||Array.isArray(r.irregularSpacing?.values)&&(e[2]<0?t[2]=r.irregularSpacing.values[0]:e[2]<r.irregularSpacing.values.length?t[2]=r.irregularSpacing.values[e[2]]:t[2]=r.irregularSpacing.values[r.irregularSpacing.values.length-1],r.isPositiveUp||(t[2]*=-1)),new xe.A({x:t[0],y:t[1],z:t[2],spatialReference:this.spatialReference})}};(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"id",void 0),(0,i._)([(0,p.MZ)({type:[ze],json:{write:{enabled:!0,isRequired:!0}}})],Re.prototype,"dimensions",void 0),(0,i._)([(0,p.MZ)({type:Ae.A,json:{read:{enabled:!1}}})],Re.prototype,"spatialReference",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{read:!1}})],Re.prototype,"zDimension",null),(0,i._)([(0,p.MZ)({type:[Boolean],json:{read:!1}})],Re.prototype,"isValid",null),(0,i._)([(0,p.MZ)({type:[Number],json:{read:!1}})],Re.prototype,"originInLayerSpace3D",null),(0,i._)([(0,p.MZ)({type:[Number],json:{read:!1}})],Re.prototype,"voxelSizeInLayerSpaceSigned",null),(0,i._)([(0,p.MZ)({type:["xyz","xyzt","xyt"],json:{read:{enabled:!1}}})],Re.prototype,"volumeType",null),(0,i._)([(0,p.MZ)({type:[Number],json:{read:!1}})],Re.prototype,"sizeInVoxels",null),Re=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelVolume")],Re);const Pe=Re;var Fe;let De=Fe=class extends T.oY{constructor(){super(...arguments),this.apronWidth=1,this.brickSize=[32,32,32],this.maxLodLevel=0,this.nodeSize=[4,4,4]}isValid(){const e=new Fe;return e.apronWidth===this.apronWidth&&e.maxLodLevel===this.maxLodLevel&&!!this.brickSize&&!!this.nodeSize&&!(!Array.isArray(this.brickSize)||!Array.isArray(this.nodeSize))&&3===this.brickSize.length&&3===this.nodeSize.length&&32===this.brickSize[0]&&32===this.brickSize[1]&&32===this.brickSize[2]&&4===this.nodeSize[0]&&4===this.nodeSize[1]&&4===this.nodeSize[2]}};(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"apronWidth",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"brickSize",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"maxLodLevel",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:{enabled:!0,isRequired:!0}}})],De.prototype,"nodeSize",void 0),De=Fe=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelVolumeIndex")],De);const Le=De;let Oe=class extends((0,Z.O)(T.oY)){constructor(e){super(e),this.enabled=!0,this.label="",this.normal=null,this.point=null}get orientation(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(e),0,!0)}set orientation(e){const t=C(e,this.tilt);this._set("normal",t),this._set("orientation",e)}get tilt(){if(!Array.isArray(this.normal)||3!==this.normal.length)return 0;const[e,t]=$(this.normal);return I.ie.normalize((0,c.GB)(t),0,!0)}set tilt(e){const t=C(this.orientation,e);this._set("normal",t),this._set("tilt",e)}};(0,i._)([(0,p.MZ)({type:Boolean,json:{default:!0,write:!0}})],Oe.prototype,"enabled",void 0),(0,i._)([(0,p.MZ)({type:String,json:{write:!0}})],Oe.prototype,"label",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.w)((e=>I.ie.normalize((0,c.GB)(e),0,!0)))],Oe.prototype,"orientation",null),(0,i._)([(0,p.MZ)({type:Number,json:{read:!1},clonable:!1,range:{min:0,max:360}}),(0,B.w)((e=>I.ie.normalize((0,c.GB)(e),0,!0)))],Oe.prototype,"tilt",null),(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],Oe.prototype,"normal",void 0),(0,i._)([(0,p.MZ)({type:[Number],json:{write:!0}})],Oe.prototype,"point",void 0),Oe=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelDynamicSection")],Oe);const Ee=Oe;var Ue;let qe=Ue=class extends T.oY{constructor(e){super(e),this.volumeId=0,this.verticalExaggeration=1,this.exaggerationMode="scale-height",this.verticalOffset=0,this.slices=new(n.A.ofType(Y)),this.dynamicSections=new(n.A.ofType(Ee))}set slices(e){this._set("slices",(0,se.V)(e,this._get("slices"),n.A.ofType(Y)))}set dynamicSections(e){this._set("dynamicSections",(0,se.V)(e,this._get("dynamicSections"),n.A.ofType(Ee)))}clone(){return new Ue({volumeId:this.volumeId,verticalExaggeration:this.verticalExaggeration,exaggerationMode:this.exaggerationMode,verticalOffset:this.verticalOffset,slices:(0,re.o8)(this.slices),dynamicSections:(0,re.o8)(this.dynamicSections)})}};(0,i._)([(0,p.MZ)({type:c.jz,json:{write:{enabled:!0,isRequired:!0}}})],qe.prototype,"volumeId",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{default:1,write:!0}})],qe.prototype,"verticalExaggeration",void 0),(0,i._)([(0,p.MZ)({type:["scale-position","scale-height"],json:{default:"scale-height",write:!0}})],qe.prototype,"exaggerationMode",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{default:0,write:!0}})],qe.prototype,"verticalOffset",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(Y),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.slices&&this.slices.length>0}}}}})],qe.prototype,"slices",null),(0,i._)([(0,p.MZ)({type:n.A.ofType(Ee),json:{write:{enabled:!0,overridePolicy(){return{enabled:!!this.dynamicSections&&this.dynamicSections.length>0}}}}})],qe.prototype,"dynamicSections",null),qe=Ue=(0,i._)([(0,h.$)("esri.layers.voxel.VoxelVolumeStyle")],qe);const $e=qe;var Ce=r(30291);let Be=class extends((0,x.w6)((0,b.b)((0,w.q)((0,_.A)((0,M.j)((0,a.P)((0,S.d)((0,v.p)(f.A))))))))){constructor(e){super(e),this.serviceRoot="",this.operationalLayerType="Voxel",this.legendEnabled=!0,this.title=null,this.sections=null,this.currentVariableId=0,this.volumeStyles=null,this.renderMode="volume",this.variableStyles=null,this.enableSlices=!0,this.enableSections=!0,this.enableDynamicSections=!0,this.enableIsosurfaces=!0,this.shading=new K,this.opacity=1,this.variables=new n.A,this.volumes=new n.A,this.index=null,this.minScale=0,this.maxScale=0,this.type="voxel",this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.fullExtent=null,this.popupEnabled=!1,this.test=null,this.volumeStyles=new(n.A.ofType($e)),this.variableStyles=new(n.A.ofType(Me)),this.sections=new(n.A.ofType(J))}normalizeCtorArgs(e){return e?.constantUpscaling&&(this.test={constantUpscaling:!0},delete e.constantUpscaling),e}set url(e){this._set("url",(0,A.Jf)(e,l.A.getLogger(this)))}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(u.QP).then((()=>this._fetchService(t))).then((()=>this.serviceRoot=this.url));return this.addResolvingPromise(r),Promise.resolve(this)}read(e,t){super.read(e,t);for(const e of this.volumes)e.spatialReference=this.spatialReference}readVersion(e,t){return super.parseVersionString(e)}validateLayer(e){if(e.layerType&&e.layerType!==this.operationalLayerType)throw new s.A("voxel-layer:layer-type-not-supported","VoxelLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor)||this.version.major<3)throw new s.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"});if(this.version.major>3)throw new s.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"3.x"})}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const i=g.A.fromJSON(e,r);if(0===i.zmin&&0===i.zmax&&Array.isArray(t.volumes)){const e=Pe.fromJSON(t.volumes[0]);if(e.isValid&&"xyt"!==e.volumeType){const t=e.dimensions[2];if(t.isRegular){let e=t.regularSpacing.offset,r=t.regularSpacing.offset+t.regularSpacing.scale*(t.size-1);if(e>r){const t=e;e=r,r=t}i.zmin=e,i.zmax=r}}}return i}return null}get voxelFields(){const e=[new V.A({name:"Voxel.ServiceValue",alias:"Value",domain:null,editable:!1,length:128,type:"string"}),new V.A({name:"Voxel.ServiceVariableLabel",alias:"Variable",domain:null,editable:!1,length:128,type:"string"}),new V.A({name:"Voxel.Position",alias:"Voxel Position",domain:null,editable:!1,length:128,type:"string"})],t=this.getVolume(null);if(null!=t){if("xyzt"===t.volumeType||"xyt"===t.volumeType){const t=new V.A({name:"Voxel.ServiceLocalTime",alias:"Local Time",domain:null,editable:!1,length:128,type:"string"});e.push(t);const r=new V.A({name:"Voxel.ServiceNativeTime",alias:"Native Time",domain:null,editable:!1,length:128,type:"string"});e.push(r)}if("xyt"!==t.volumeType){const t=new V.A({name:"Voxel.ServiceDepth",alias:"Depth",domain:null,editable:!1,length:128,type:"string"});e.push(t)}}return e}get popupTemplate(){return this.loaded?this.createPopupTemplate():null}get defaultPopupTemplate(){return this.createPopupTemplate()}createPopupTemplate(e){const t=this.voxelFields,r=this.title;return(0,Ce.tn)({fields:t,title:r},e)}getConfiguration(){const e={layerType:this.operationalLayerType,version:this.version.versionString,name:this.title,spatialReference:this.spatialReference,fullExtent:this.fullExtent,volumes:this.volumes.toJSON(),variables:this.variables.toJSON(),index:this.index?.toJSON(),sections:this.getSections(),style:{volumeStyles:this.getVolumeStyles(),currentVariableId:this.currentVariableId,renderMode:this.renderMode,variableStyles:this.getVariableStyles(),enableSections:this.enableSections,enableDynamicSections:this.enableDynamicSections,enableIsosurfaces:this.enableIsosurfaces,enableSlices:this.enableSlices,shading:this.shading}};return e.index&&this.index?.isValid()?JSON.stringify(e):""}getVariableStyle(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variableStyles||-1===t)return null;const r=this.variableStyles.findIndex((e=>e.variableId===t));return r<0?null:this.variableStyles.at(r)}getVariable(e){let t=-1;if(t=null!=e?e:this.currentVariableId,!this.variables||-1===t)return null;const r=this.variables.findIndex((e=>e.id===t));return r<0?null:this.variables.at(r)}getVolume(e){const t=this.getVariable(e);return null!=t?this.volumes.find((({id:e})=>e===t.volumeId)):null}getVolumeStyle(e){const t=this.getVariable(e);return null!=t?this.volumeStyles.find((({volumeId:e})=>e===t.volumeId)):null}getColorForContinuousDataValue(e,t,r){const i=this.getVariable(e);if(null==i||"continuous"!==i.renderingFormat?.continuity)return null;if(!this.variableStyles)return null;const o=this.variableStyles.findIndex((t=>t.variableId===e));if(o<0)return null;const n=this.variableStyles.at(o);return n?.transferFunction?n.transferFunction.getColorForContinuousDataValue(t,r):null}getSections(){const e=[];for(const t of this.sections)e.push(new J({enabled:t.enabled,href:t.href,id:t.id,label:t.label,normal:t.normal,point:t.point,sizeInPixel:t.sizeInPixel,slices:t.slices,timeId:t.timeId,variableId:t.variableId}));return e}getVariableStyles(){const e=[];for(const t of this.variableStyles){const r=this._getVariable(t);if(null!=r){const i=t.clone();i.isosurfaces.length>4&&(i.isosurfaces=i.isosurfaces.slice(0,3),l.A.getLogger(this).error("A maximum of 4 isosurfaces are supported for Voxel Layers."));for(const e of i.isosurfaces)if(!e.colorLocked){const t=this.getColorForContinuousDataValue(i.variableId,e.value,!1);null===t||t.equals(e.color)||(e.color=t)}if("continuous"===r.renderingFormat.continuity)(null===i.transferFunction||i.transferFunction.colorStops.length<2)&&l.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. At least 2 color stops are required in the transferFunction for continuous Voxel Layer variables.`),null!==i.transferFunction&&(Array.isArray(i.transferFunction.stretchRange)&&2===i.transferFunction.stretchRange.length||(l.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. The stretchRange of the transferFunction for continuous Voxel Layer variables must be of the form [minimumDataValue, maximumDataValue].`),i.transferFunction.stretchRange=[0,1],i.transferFunction.colorStops.removeAll()));else if("discrete"===r.renderingFormat.continuity)if(0===t.uniqueValues.length)l.A.getLogger(this).error(`VoxelVariableStyle for variable ${r.id} is invalid. Unique values are required for discrete Voxel Layer variables.`);else for(const e of t.uniqueValues)null!==e.label&&void 0!==e.label||null===e.value||void 0===e.value||(e.label=e.value.toString());e.push(i)}else l.A.getLogger(this).error(`VoxelVariable ID=${t.variableId} doesn't exist, VoxelVariableStyle for this VoxelVariable will be ignored.`)}return e}getVolumeStyles(){const e=[];for(const t of this.volumeStyles){const r=this._getVolumeFromVolumeId(t.volumeId);if(null!=r){const i=t.clone();for(const e of i.slices)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");for(const e of i.dynamicSections)this._isPlaneValid(e,[0,1,r.zDimension],r.dimensions)||(e.enabled=!1,e.label="invalid");e.push(i)}else l.A.getLogger(this).error(`VoxelVolume ID=${t.volumeId} doesn't exist, VoxelVolumeStyle for this VoxelVolume will be ignored.`)}return e}_getVariable(e){const t=e.variableId;for(const e of this.variables)if(e.id===t)return e;return null}_getVolumeFromVolumeId(e){for(const t of this.volumes)if(t.id===e)return t;return null}_isPlaneValid(e,t,r){if(!e.point)return!1;if(!Array.isArray(e.point)||3!==e.point.length)return!1;if(!e.normal)return!1;if(!Array.isArray(e.normal)||3!==e.normal.length)return!1;const i=(0,m.fA)(e.normal[0],e.normal[1],e.normal[2]);return(0,y.n)(i,i),!(Math.abs(i[0])+Math.abs(i[1])+Math.abs(i[2])<1e-6||(e.normal[0]=i[0],e.normal[1]=i[1],e.normal[2]=i[2],0))}};(0,i._)([(0,p.MZ)({type:["Voxel"]})],Be.prototype,"operationalLayerType",void 0),(0,i._)([(0,p.MZ)(j.fV)],Be.prototype,"legendEnabled",void 0),(0,i._)([(0,p.MZ)({json:{write:!0}})],Be.prototype,"title",void 0),(0,i._)([(0,p.MZ)(j.OZ)],Be.prototype,"url",null),(0,i._)([(0,p.MZ)({type:n.A.ofType(J),json:{origins:{"web-scene":{name:"layerDefinition.sections",write:!0}}}})],Be.prototype,"sections",void 0),(0,i._)([(0,p.MZ)({type:c.jz,json:{origins:{"web-scene":{name:"layerDefinition.style.currentVariableId",write:{enabled:!0,isRequired:!0,ignoreOrigin:!0}},service:{name:"style.currentVariableId"}}}})],Be.prototype,"currentVariableId",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType($e),json:{origins:{"web-scene":{name:"layerDefinition.style.volumeStyles",write:!0},service:{name:"style.volumeStyles"}}}})],Be.prototype,"volumeStyles",void 0),(0,i._)([(0,p.MZ)({type:["volume","surfaces"],json:{origins:{"web-scene":{name:"layerDefinition.style.renderMode",write:!0},service:{name:"style.renderMode"}}}})],Be.prototype,"renderMode",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(Me),json:{origins:{"web-scene":{name:"layerDefinition.style.variableStyles",write:!0},service:{name:"style.variableStyles"}}}})],Be.prototype,"variableStyles",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSlices",write:!0},service:{name:"style.enableSlices"}}}})],Be.prototype,"enableSlices",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableSections",write:!0},service:{name:"style.enableSections"}}}})],Be.prototype,"enableSections",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableDynamicSections",write:!0},service:{name:"style.enableDynamicSections"}}}})],Be.prototype,"enableDynamicSections",void 0),(0,i._)([(0,p.MZ)({type:Boolean,json:{origins:{"web-scene":{name:"layerDefinition.style.enableIsosurfaces",write:!0},service:{name:"style.enableIsosurfaces"}}}})],Be.prototype,"enableIsosurfaces",void 0),(0,i._)([(0,p.MZ)({type:K,json:{origins:{"web-scene":{name:"layerDefinition.style.shading",write:!0},service:{name:"style.shading"}}}})],Be.prototype,"shading",void 0),(0,i._)([(0,p.MZ)({type:["show","hide"]})],Be.prototype,"listMode",void 0),(0,i._)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0,json:{read:!1,write:!1,origins:{"web-scene":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],Be.prototype,"opacity",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(te)})],Be.prototype,"variables",void 0),(0,i._)([(0,p.MZ)({type:n.A.ofType(Pe)})],Be.prototype,"volumes",void 0),(0,i._)([(0,p.MZ)({type:Le})],Be.prototype,"index",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:!1,write:!1}}}})],Be.prototype,"minScale",void 0),(0,i._)([(0,p.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:!1,write:!1}}}})],Be.prototype,"maxScale",void 0),(0,i._)([(0,p.MZ)({json:{read:!1},readOnly:!0})],Be.prototype,"type",void 0),(0,i._)([(0,p.MZ)({readOnly:!0,json:{name:"serviceVersion"}})],Be.prototype,"version",void 0),(0,i._)([(0,d.w)("service","version")],Be.prototype,"readVersion",null),(0,i._)([(0,p.MZ)({type:g.A})],Be.prototype,"fullExtent",void 0),(0,i._)([(0,d.w)("service","fullExtent",["fullExtent"])],Be.prototype,"readFullExtent",null),(0,i._)([(0,p.MZ)({readOnly:!0,clonable:!1,json:{read:!1}})],Be.prototype,"voxelFields",null),(0,i._)([(0,p.MZ)({type:Boolean,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,ignoreOrigin:!0,writer(e,t,r){t[r]=!e}},origins:{"portal-item":{default:!0},"web-scene":{default:!0}}}})],Be.prototype,"popupEnabled",void 0),(0,i._)([(0,p.MZ)({type:o.A,json:{read:!1}})],Be.prototype,"popupTemplate",null),(0,i._)([(0,p.MZ)({readOnly:!0})],Be.prototype,"defaultPopupTemplate",null),Be=(0,i._)([(0,h.$)("esri.layers.VoxelLayer")],Be);const ke=Be},69208:(e,t,r)=>{r.d(t,{d:()=>s});var i=r(90237),o=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,o.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,n.$)("esri.layers.mixins.CustomParametersMixin")],t),t}},8303:(e,t,r)=>{r.d(t,{A:()=>_});var i=r(90237),o=r(92602),n=r(70333),s=r(78888),l=r(60999),a=r(49186),u=r(53966),p=r(97768),c=r(74887),d=r(84952),h=r(10107),y=(r(44208),r(87811),r(36005)),m=r(40608),g=r(43937),f=r(83531),v=r(20655),b=r(80812),S=r(41318),w=r(10407);const _=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(5356),r.e(8823)]).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.QP)(e),!0))))}async setUserPrivileges(e,t){if(!o.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",o)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,w.It)(r);let o,s;if(i)o=r.portal.url;else try{o=await(0,f.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!o||!(0,d.b8)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;s=await(n.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new b.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return(0,w.It)(r)}catch(e){(0,c.QP)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,o=v.A.getDefault();if(o&&o.loaded&&(0,d.S8)(o.restUrl)===(0,d.S8)(i))return o.user;const a=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,l.Ke)((0,s.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?S.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&i&&!(0,d.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,h.MZ)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,m.$)("esri.layers.mixins.PortalLayer")],t),t},M={credential:null,user:null}},25036:(e,t,r)=>{r.d(t,{j:()=>s});var i=r(90237),o=r(10107),n=(r(44208),r(53966),r(87811),r(40608));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,o.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,n.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},20437:(e,t,r)=>{r.d(t,{A:()=>g});var i,o=r(90237),n=r(66552),s=r(25482),l=r(10107),a=r(56507),u=(r(87811),r(44208),r(93223)),p=r(36005),c=r(40608),d=r(72088),h=r(98453);const y=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends s.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,o._)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,o._)([(0,l.MZ)()],m.prototype,"description",void 0),(0,o._)([(0,p.w)("description")],m.prototype,"readDescription",null),(0,o._)([(0,l.MZ)({types:d.gK,json:{read:{reader:d.rS},write:!0}})],m.prototype,"domain",void 0),(0,o._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,o._)([(0,l.MZ)({type:a.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,o._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,o._)([(0,u.e)(h.m)],m.prototype,"type",void 0),(0,o._)([(0,l.MZ)()],m.prototype,"valueType",void 0),(0,o._)([(0,p.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,o._)([(0,l.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,o._)([(0,c.$)("esri.layers.support.Field")],m);const g=m},72088:(e,t,r)=>{r.d(t,{rS:()=>x,gK:()=>M}),r(44208);var i,o=r(90237),n=r(4718),s=r(10107),l=(r(53966),r(93223)),a=r(40608),u=r(25482);r(87811);let p=i=class extends u.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,o._)([(0,s.MZ)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,o._)([(0,s.MZ)({type:[String,Number],json:{write:!0}})],p.prototype,"code",void 0),p=i=(0,o._)([(0,a.$)("esri.layers.support.CodedValue")],p);const c=new(r(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,o._)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,o._)([(0,l.e)(c)],d.prototype,"type",void 0),d=(0,o._)([(0,a.$)("esri.layers.support.Domain")],d);const h=d;var y;let m=y=class extends h{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new y({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,o._)([(0,s.MZ)({type:[p],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,o._)([(0,l.e)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=y=(0,o._)([(0,a.$)("esri.layers.support.CodedValueDomain")],m);const g=m;var f;r(49186);let v=f=class extends h{constructor(e){super(e),this.type="inherited"}clone(){return new f}};(0,o._)([(0,l.e)({inherited:"inherited"})],v.prototype,"type",void 0),v=f=(0,o._)([(0,a.$)("esri.layers.support.InheritedDomain")],v);const b=v;var S;let w=S=class extends h{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new S({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],w.prototype,"maxValue",void 0),(0,o._)([(0,s.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],w.prototype,"minValue",void 0),(0,o._)([(0,l.e)({range:"range"})],w.prototype,"type",void 0),w=S=(0,o._)([(0,a.$)("esri.layers.support.RangeDomain")],w);const _=w,M={key:"type",base:h,typeMap:{range:w,"coded-value":g,inherited:b}};function x(e){if(!e?.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return g.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}},98453:(e,t,r)=>{r.d(t,{m:()=>i});const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},85648:(e,t,r)=>{r.d(t,{n:()=>o});var i=r(84952);function o(e){return n[function(e){return"json"===e.type?"application/json":"blob"===e.type?e.blob.type:function(e){const t=(0,i.Zo)(e);return a[t]||s}(e.url)}(e)]||l}const n={},s="text/plain",l=n[s],a={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in a)n[a[e]]=e},30291:(e,t,r)=>{r.d(t,{tn:()=>u});var i=r(13874),o=r(30524),n=r(28122),s=(r(84424),r(80737),r(96808),r(66159)),l=(r(67336),r(92094),r(23721),r(41227)),a=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:u},h){if(!r)return null;const m=function(e,t){const r=t?.visibleFieldNames;return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(c),e}(e.fields??[],t?.ignoreFieldTypes||y).map((t=>new l.A({fieldName:t.name,isEditable:(0,o.R$)(t,e),label:t.alias,format:d(t),visible:p(t,{...e,visibleFieldNames:r})})))}({editFieldsInfo:t,fields:r,objectIdField:a},h);if(!m.length)return null;const g=function(e){const t=(0,o.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),f=[new s.A,new n.A];return new i.A({title:g,content:f,fieldInfos:m})}const p=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,o.Bz)(e,t);function c(e,t){return"oid"===e.type?-1:"oid"===t.type?1:h(e)?-1:h(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function d(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.A({digitSeparator:!0,places:0});case"double":return new a.A({digitSeparator:!0,places:2});case"string":return(0,o.JL)(e.name)?new a.A({digitSeparator:!0,places:0}):null;default:return null}}function h(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())}const y=["geometry","blob","raster","guid","xml"]}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3477],{68197:(t,e,n)=>{n.d(e,{A:()=>d});var r,i,s=n(40876),o=n(34727),l=n(56507);function a(t){return(0,o.qE)((0,l.Vr)(t),0,255)}function u(t,e,n){return t=Number(t),isNaN(t)?n:t<e?e:t>n?n:t}function p(t,e){const n=t.toString(16).padStart(2,"0");return e?n.substring(0,1):n}class c{static blendColors(t,e,n,r=new c){return r.r=Math.round(t.r+(e.r-t.r)*n),r.g=Math.round(t.g+(e.g-t.g)*n),r.b=Math.round(t.b+(e.b-t.b)*n),r.a=t.a+(e.a-t.a)*n,r._sanitize()}static fromRgb(t,e){const n=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(n){const t=n[2].split(/\s*,\s*/),r=n[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){const n=t[0];if("%"===n.charAt(n.length-1)){const n=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(n[3]=parseFloat(t[3])),c.fromArray(n,e)}return c.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return c.fromArray((0,s.z$)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new c){if("#"!==t[0]||isNaN(Number(`0x${t.substring(1)}`)))return null;switch(t.length){case 4:case 5:{const n=parseInt(t.substring(1,2),16),r=parseInt(t.substring(2,3),16),i=parseInt(t.substring(3,4),16),s=5===t.length?15:parseInt(t.substring(4),16);return c.fromArray([n+16*n,r+16*r,i+16*i,(s+16*s)/255],e)}case 7:case 9:{const n=parseInt(t.substring(1,3),16),r=parseInt(t.substring(3,5),16),i=parseInt(t.substring(5,7),16),s=7===t.length?255:parseInt(t.substring(7),16);return c.fromArray([n,r,i,s/255],e)}default:return null}}static fromArray(t,e=new c){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const n=(0,s.V6)(t)?(0,s.TS)(t):null;return n&&c.fromArray(n,e)||c.fromRgb(t,e)||c.fromHex(t,e)}static fromJSON(t){return null!=t?new c([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?c.fromString(t,this):Array.isArray(t)?c.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,n=t?.digits??6,r=3===n||4===n,i=4===n||8===n,s=`#${p(this.r,r)}${p(this.g,r)}${p(this.b,r)}${i?p(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=c.AlphaMode.ALWAYS){const e=a(this.r),n=a(this.g),r=a(this.b);return t===c.AlphaMode.ALWAYS||1!==this.a?[e,n,r,a(255*this.a)]:[e,n,r]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}}c.prototype.declaredClass="esri.Color",(i=(r=c||(c={})).AlphaMode||(r.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const d=c},60945:(t,e,n)=>{n.d(e,{A:()=>m});var r,i=n(90237),s=n(25482),o=n(88930),l=n(10107),a=(n(44208),n(53966),n(87811),n(36005)),u=n(40608),p=n(43937),c=n(56400);let d=r=class extends s.oY{static get allTime(){return h}static get empty(){return y}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===r&&n===i}expandTo(t,e=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,o.lL)(n,t,e));let i=this.end;if(i){const n=(0,o.lL)(i,t,e);i=i.getTime()===n.getTime()?n:(0,o.S1)(n,1,t,e)}return new r({start:n,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,s=t.end?.getTime()??1/0;let o,l;return i>=e&&i<=n?o=i:e>=i&&e<=s&&(o=e),n>=i&&n<=s?l=n:s>=e&&s<=n&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?r.empty:new r({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(t,e,n=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:s,end:l}=this;return null!=s&&(i.start=(0,o.S1)(s,t,e,n)),null!=l&&(i.end=(0,o.S1)(l,t,e,n)),i}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return h.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,i._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i._)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,i._)([(0,p.K)("end")],d.prototype,"writeEnd",null),(0,i._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i._)([(0,a.w)("start")],d.prototype,"readStart",null),(0,i._)([(0,p.K)("start")],d.prototype,"writeStart",null),d=r=(0,i._)([(0,u.$)("esri.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0}),m=d},45475:(t,e,n)=>{n.d(e,{A:()=>h});var r=n(90237),i=n(69622),s=n(4576),o=n(69540),l=n(4902),a=n(25482),u=n(10107),p=(n(44208),n(53966),n(40608));let c=0,d=class extends((0,a.Te)((0,o.O)((0,l.sA)(i.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${c++}`,this.title=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}get isEditable(){return this.requiredPropertiesForEditing.every(s.Ru)}};(0,r._)([(0,u.MZ)({type:String,constructOnly:!0,clonable:!1})],d.prototype,"id",void 0),(0,r._)([(0,u.MZ)({type:String})],d.prototype,"title",void 0),(0,r._)([(0,u.MZ)({clonable:!1,value:null})],d.prototype,"parent",null),(0,r._)([(0,u.MZ)({readOnly:!0})],d.prototype,"isEditable",null),d=(0,r._)([(0,p.$)("esri.analysis.Analysis")],d);const h=d},69540:(t,e,n)=>{n.d(e,{O:()=>p,P:()=>c});var r=n(90237),i=n(69622),s=(n(44208),n(4718)),o=(n(53966),n(97768)),l=n(35666),a=n(88620),u=n(40608);const p=t=>{let e=class extends t{clone(){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,n=t.store,r={},i=new Map;for(const t in e){const o=e[t],a=n?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const p=this[t];let c=null;c="function"==typeof u?u(p):"reference"===u?p:(0,s.TU)(p),null!=p&&null==c||(a===l.Gr.DEFAULTS?i.set(t,c):r[t]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,n]of i)t.set(e,n,l.Gr.DEFAULTS)}return u}};return e=(0,r._)([(0,u.$)("esri.core.Clonable")],e),e};let c=class extends(p(i.A)){};c=(0,r._)([(0,u.$)("esri.core.Clonable")],c)},69052:(t,e,n)=>{n.d(e,{ie:()=>o});var r=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}ndiff(t,e=0){return Math.ceil((t-e)/this.range)*this.range+e}_normalize(t,e,n,r=0,i=!1){return(n-=r)<t?n+=this.ndiff(t-n):n>e&&(n-=this.ndiff(n-e)),i&&n===e&&(n=t),n+r}normalize(t,e=0,n=!1){return this._normalize(this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+this.ndiff(t-e,n)}minimalMonotonic(t,e,n){return this._normalize(t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function s(t){for(const e in t){const n=t[e];n instanceof Function&&(t[e]=n.bind(t))}return t}s(new i(0,2*Math.PI)),s(new i(-Math.PI,Math.PI));const o=s(new i(0,360))},4902:(t,e,n)=>{n.d(e,{PH:()=>l,sA:()=>o});var r=n(90237),i=n(40608);let s=0;const o=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return e=(0,r._)([(0,i.$)("esri.core.Identifiable")],e),e},l=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return e=(0,r._)([(0,i.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};let a=class extends(o(class{})){};a=(0,r._)([(0,i.$)("esri.core.Identifiable")],a)},36708:(t,e,n)=>{n.d(e,{C_:()=>d,OH:()=>m,Vh:()=>g,on:()=>c,pc:()=>f,wB:()=>a,z7:()=>u}),n(60999),n(5503);var r=n(37955),i=n(36563),s=n(97768),o=n(74887),l=n(14012);function a(t,e,n={}){return p(t,e,n,h)}function u(t,e,n={}){return p(t,e,n,y)}function p(t,e,n={},r){let i=null;const o=n.once?(t,n)=>{r(t)&&((0,s.xt)(i),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(i=(0,l.Cn)(t,o,n.sync,n.equals),n.initial){const e=t();o(e,e)}return i}function c(t,e,n,o={}){let l=null,u=null,p=null;function c(){l&&u&&(u.remove(),o.onListenerRemove?.(l),l=null,u=null)}function d(t){o.once&&o.once&&(0,s.xt)(p),n(t)}const h=a(t,((t,n)=>{c(),(0,r.wb)(t)&&(l=t,u=(0,r.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return p=(0,i.hA)((()=>{h.remove(),c()})),p}function d(t,e){return function(t,e,n){if((0,o.G4)(n))return Promise.reject((0,o.NK)());const r=t();if(e?.(r))return Promise.resolve(r);let l=null;function a(){l=(0,s.xt)(l)}return new Promise(((r,s)=>{l=(0,i.vE)([(0,o.u7)(n,(()=>{a(),s((0,o.NK)())})),p(t,(t=>{a(),r(t)}),{sync:!1,once:!0},e??h)])}))}(t,y,e)}function h(t){return!0}function y(t){return!!t}n(80559);const m={sync:!0},g={initial:!0},f={sync:!0,initial:!0}},71493:(t,e,n)=>{n.r(e),n.d(e,{default:()=>j});var r=n(90237),i=n(45475),s=n(68197),o=n(69540),l=n(25482),a=n(90629),u=n(10107),p=n(56507),c=(n(87811),n(44208),n(40608));let d=class extends((0,l.Te)(o.P)){constructor(t){super(t),this.type="simple",this.color=new s.A("black"),this.lineSize=2,this.fontSize=10,this.textColor=new s.A("black"),this.textBackgroundColor=new s.A([255,255,255,.6])}};(0,r._)([(0,u.MZ)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],d.prototype,"color",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,range:{min:(0,a.PN)(1)},json:{write:{isRequired:!0}}})],d.prototype,"lineSize",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,json:{write:{isRequired:!0}}})],d.prototype,"fontSize",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],d.prototype,"textColor",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],d.prototype,"textBackgroundColor",void 0),d=(0,r._)([(0,c.$)("esri.analysis.DimensionSimpleStyle")],d);const h=d;var y;n(59456),function(t){t.Horizontal="horizontal",t.Vertical="vertical",t.Direct="direct"}(y||(y={}));const m=[y.Horizontal,y.Vertical,y.Direct];var g=n(69052),f=n(79901),b=n(86738);let w=class extends((0,l.Te)(o.P)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType=y.Direct,this.offset=0,this.orientation=0}};(0,r._)([(0,u.MZ)({type:["length"],json:{write:{isRequired:!0}}})],w.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:b.A,json:{write:!0}})],w.prototype,"startPoint",void 0),(0,r._)([(0,u.MZ)({type:b.A,json:{write:!0}})],w.prototype,"endPoint",void 0),(0,r._)([(0,u.MZ)({type:m,nonNullable:!0,json:{write:{isRequired:!0}}})],w.prototype,"measureType",void 0),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],w.prototype,"offset",void 0),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,f.w)((t=>g.ie.normalize((0,p.GB)(t),0,!0)))],w.prototype,"orientation",void 0),w=(0,r._)([(0,c.$)("esri.analysis.LengthDimension")],w);const _=w;var A=n(5503),M=n(62885),v=n(36708),Z=(n(53966),n(5443)),S=n(57251);const E=A.A.ofType(_);let x=class extends i.A{constructor(t){super(t),this.type="dimension",this.style=new h,this.extent=null}initialize(){this.addHandles((0,v.wB)((()=>this._computeExtent()),(t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)}),v.pc))}get dimensions(){return this._get("dimensions")||new E}set dimensions(t){this._set("dimensions",(0,M.V)(t,this.dimensions,E))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get requiredPropertiesForEditing(){return this.dimensions.reduce(((t,e)=>(t.push(e.startPoint,e.endPoint),t)),[])}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const n=(0,S.projectOrLoadMany)(e,t);if(null!=n.pending)return{pending:n.pending,extent:null};let r=null;return null!=n.geometries&&(r=n.geometries.reduce(((t,e)=>null==t?null!=e?Z.A.fromPoint(e):null:null!=e?t.union(Z.A.fromPoint(e)):t),null)),{pending:null,extent:r}}clear(){this.dimensions.removeAll()}};(0,r._)([(0,u.MZ)({type:["dimension"]})],x.prototype,"type",void 0),(0,r._)([(0,u.MZ)({cast:M.H,type:E,nonNullable:!0})],x.prototype,"dimensions",null),(0,r._)([(0,u.MZ)({readOnly:!0})],x.prototype,"spatialReference",null),(0,r._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:h}},nonNullable:!0})],x.prototype,"style",void 0),(0,r._)([(0,u.MZ)({value:null,readOnly:!0})],x.prototype,"extent",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],x.prototype,"requiredPropertiesForEditing",null),x=(0,r._)([(0,c.$)("esri.analysis.DimensionAnalysis")],x);const N=x;var P=n(92071),T=n(43937),O=n(4146),D=n(16131);let R=class extends((0,D.q)((0,P.P)(O.A))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new N,this.opacity=1,t){const{source:e,style:n}=t;e&&n&&(e.style=n)}}initialize(){this.addHandles([(0,v.wB)((()=>this.source),((t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)}),v.pc)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new N)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,n,r){e.dimensions=t.filter((({startPoint:t,endPoint:e})=>null!=t&&null!=e)).map((t=>t.toJSON(r))).toJSON()}};(0,r._)([(0,u.MZ)({json:{read:!1},readOnly:!0})],R.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:["ArcGISDimensionLayer"]})],R.prototype,"operationalLayerType",void 0),(0,r._)([(0,u.MZ)({nonNullable:!0})],R.prototype,"source",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],R.prototype,"spatialReference",null),(0,r._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:h}},json:{write:{ignoreOrigin:!0}}})],R.prototype,"style",null),(0,r._)([(0,u.MZ)({readOnly:!0})],R.prototype,"fullExtent",null),(0,r._)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],R.prototype,"opacity",void 0),(0,r._)([(0,u.MZ)({type:["show","hide"]})],R.prototype,"listMode",void 0),(0,r._)([(0,u.MZ)({type:A.A.ofType(_),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],R.prototype,"dimensions",null),(0,r._)([(0,T.K)("web-scene","dimensions")],R.prototype,"writeDimensions",null),R=(0,r._)([(0,c.$)("esri.layers.DimensionLayer")],R);const j=R},4146:(t,e,n)=>{n.d(e,{A:()=>w});var r=n(90237),i=(n(59456),n(78888)),s=n(49186),o=n(65529),l=n(4902),a=n(92474),u=n(53966),p=n(74887),c=n(84952),d=n(10107),h=(n(44208),n(87811),n(40608)),y=n(92602),m=n(5443),g=n(16930);let f=0,b=class extends(o.A.EventedMixin((0,l.sA)(a.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(7982).then(n.bind(n,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(5613).then(n.bind(n,45613));try{return await r(e)}catch(t){const n=e?.portalItem,r=n?.id||"unset",i=n?.portal?.url||y.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,p.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.MZ)({type:m.A})],b.prototype,"fullExtent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,r._)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,r._)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,r._)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,r._)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,r._)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,r._)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,r._)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,r._)([(0,d.MZ)({type:g.A})],b.prototype,"spatialReference",void 0),(0,r._)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,r._)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,r._)([(0,d.MZ)()],b.prototype,"url",void 0),(0,r._)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,r._)([(0,h.$)("esri.layers.Layer")],b);const w=b}}]);