@arcgis/core 4.25.0-next.20221108 → 4.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/arcade.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{4726c869d80257488a38.js → 0690434cb3d7df4188aa.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{bf097a329b91fcd7a300.js → 0a9813558c89a8824080.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{33ea3449d32ac21adc91.js → 0d10010d8db4ebd20356.js} +1 -1
  6. package/assets/esri/core/workers/chunks/0ea80e26c937441c2bc5.js +1 -0
  7. package/assets/esri/core/workers/chunks/52b6711572ac7e058ce6.js +1 -0
  8. package/assets/esri/core/workers/chunks/{e031a2fee155aa168858.js → 61959a85261218b22376.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{363700f66277a9176991.js → 7c255fe7a231d93a2048.js} +1 -1
  10. package/assets/esri/core/workers/chunks/8750c7463968f0c183ba.js +1 -0
  11. package/assets/esri/core/workers/chunks/a16641c79f56012b0d66.js +1 -0
  12. package/assets/esri/core/workers/chunks/{211ad79ff0b187c52449.js → afd87bc92895517b0877.js} +1 -1
  13. package/assets/esri/core/workers/chunks/b04984f048b75b2b4dd2.js +1 -0
  14. package/assets/esri/core/workers/chunks/bc878858cf5fb3237206.js +1 -0
  15. package/assets/esri/core/workers/chunks/{5de864843c0d3f4d291d.js → d4bfb6a3b8965be6f0d6.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{086dafcd10b310ba1a30.js → d9bba06ef5d22bd2d789.js} +1 -1
  17. package/assets/esri/core/workers/chunks/ee261fdc2a82d05e458e.js +1 -0
  18. package/assets/esri/core/workers/chunks/f29c6965e9e8f904be40.js +1 -0
  19. package/config.js +1 -1
  20. package/identity/IdentityManagerBase.js +1 -1
  21. package/interfaces.d.ts +8 -2
  22. package/layers/WMSLayer.js +1 -1
  23. package/layers/WMTSLayer.js +1 -1
  24. package/package.json +1 -1
  25. package/portal/support/urlUtils.js +1 -1
  26. package/request.js +1 -1
  27. package/support/revision.js +1 -1
  28. package/symbols/cim/CIMImageColorSubstitutionHelper.js +1 -1
  29. package/views/2d/layers/WMSLayerView2D.js +1 -1
  30. package/views/2d/layers/WMTSLayerView2D.js +1 -1
  31. package/widgets/FeatureForm/FormExpressionArcadeExecutor.js +1 -1
  32. package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
  33. package/widgets/FeatureForm/InputField.js +1 -1
  34. package/widgets/FeatureForm.js +1 -1
  35. package/widgets/UtilityNetworkTrace.js +1 -1
  36. package/assets/esri/core/workers/chunks/6dfb2ddfd72009564a34.js +0 -1
  37. package/assets/esri/core/workers/chunks/83879da1ff7938a76574.js +0 -1
  38. package/assets/esri/core/workers/chunks/878bc2b24cc45418e819.js +0 -1
  39. package/assets/esri/core/workers/chunks/b5e6a868256c5aae6d5e.js +0 -1
  40. package/assets/esri/core/workers/chunks/c2a8813b618f98d0016d.js +0 -1
  41. package/assets/esri/core/workers/chunks/c868ffdc6bb8a49d82d7.js +0 -1
  42. package/assets/esri/core/workers/chunks/d573ec98401fbae26383.js +0 -1
  43. package/assets/esri/core/workers/chunks/f23d8ec18740eb2e5e8f.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8383,5732,661],{38171:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(43697),s=n(66577),i=n(51773),a=n(9790),o=n(2368),l=n(96674),u=n(70586),h=n(99001),c=n(5600),d=(n(67676),n(75215),n(52011)),p=n(33955);function m(e){if(!(0,u.pC)(e))return null;const t={};for(const n in e){const r=e[n];r&&(t[n]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let f=class extends((0,o.J)(l.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,h.D)(),configurable:!0})}normalizeCtorArgs(e,t,n,r){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:n,popupTemplate:r}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,u.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:m(this.aggregateGeometries),geometry:(0,u.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,u.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){(0,u.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,n,r){if(!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:n};"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}};(0,r._)([(0,c.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const r=(0,p.im)(e[n]);r&&(t[n]=r)}return 0!==Object.keys(t).length?t:null}}})],f.prototype,"aggregateGeometries",null),(0,r._)([(0,c.Cb)({value:null})],f.prototype,"attributes",null),(0,r._)([(0,c.Cb)({value:null,types:s.qM,json:{read:p.im}})],f.prototype,"geometry",null),(0,r._)([(0,c.Cb)({type:Boolean})],f.prototype,"isAggregate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],f.prototype,"layer",void 0),(0,r._)([(0,c.Cb)({type:i.Z})],f.prototype,"popupTemplate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],f.prototype,"sourceLayer",void 0),(0,r._)([(0,c.Cb)({value:null,types:a.LB})],f.prototype,"symbol",null),(0,r._)([(0,c.Cb)({type:Boolean,value:!0})],f.prototype,"visible",null),f=(0,r._)([(0,d.j)("esri.Graphic")],f),(f||(f={})).generateUID=h.D;const g=f},92835:(e,t,n)=>{n.d(t,{Z:()=>f});var r,s=n(43697),i=n(96674),a=n(70586),o=n(35463),l=n(5600),u=(n(67676),n(75215),n(71715)),h=n(52011),c=n(30556);let d=r=class extends i.wq{constructor(e){super(e),this.end=null,this.start=null}static get allTime(){return p}static get empty(){return m}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=(0,a.pC)(this.start)?this.start.getTime():this.start,n=(0,a.pC)(this.end)?this.end.getTime():this.end,r=(0,a.pC)(e.start)?e.start.getTime():e.start,s=(0,a.pC)(e.end)?e.end.getTime():e.end;return t===r&&n===s}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,a.yw)(this.start,(t=>(0,o.JE)(t,e))),n=(0,a.yw)(this.end,(t=>{const n=(0,o.JE)(t,e);return t.getTime()===n.getTime()?n:(0,o.Nm)(n,1,e)}));return new r({start:t,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=(0,a.R2)(this.start,-1/0,(e=>e.getTime())),n=(0,a.R2)(this.end,1/0,(e=>e.getTime())),s=(0,a.R2)(e.start,-1/0,(e=>e.getTime())),i=(0,a.R2)(e.end,1/0,(e=>e.getTime()));let o,l;if(s>=t&&s<=n?o=s:t>=s&&t<=i&&(o=t),n>=s&&n<=i?l=n:i>=t&&i<=n&&(l=i),null!=o&&null!=l&&!isNaN(o)&&!isNaN(l)){const e=new r;return e.start=o===-1/0?null:new Date(o),e.end=l===1/0?null:new Date(l),e}return r.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:s,end:i}=this;return(0,a.pC)(s)&&(n.start=(0,o.Nm)(s,e,t)),(0,a.pC)(i)&&(n.end=(0,o.Nm)(i,e,t)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=(0,a.pC)(this.start)&&(0,a.pC)(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,n=(0,a.pC)(this.end)&&(0,a.pC)(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:n})}};(0,s._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,s._)([(0,u.r)("end")],d.prototype,"readEnd",null),(0,s._)([(0,c.c)("end")],d.prototype,"writeEnd",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,s._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,s._)([(0,u.r)("start")],d.prototype,"readStart",null),(0,s._)([(0,c.c)("start")],d.prototype,"writeStart",null),d=r=(0,s._)([(0,h.j)("esri.TimeExtent")],d);const p=new d,m=new d({start:void 0,end:void 0}),f=d},84552:(e,t,n)=>{n.d(t,{Z:()=>c});var r,s=n(43697),i=n(96674),a=n(35463),o=n(5600),l=(n(67676),n(75215),n(52011)),u=n(78981);let h=r=class extends i.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,a.rJ)(this.value,this.unit,"milliseconds")}clone(){return new r({value:this.value,unit:this.unit})}};(0,s._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],h.prototype,"value",void 0),(0,s._)([(0,o.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],h.prototype,"unit",void 0),h=r=(0,s._)([(0,l.j)("esri.TimeInterval")],h);const c=h},5732:(e,t,n)=>{n.d(t,{a:()=>i,c:()=>r,g:()=>s});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},52138:(e,t,n)=>{n.d(t,{a:()=>l,d:()=>m,e:()=>d,f:()=>p,g:()=>b,h:()=>w,i:()=>a,j:()=>v,k:()=>c,m:()=>u,s:()=>i,t:()=>o,v:()=>h,x:()=>x,y:()=>f});var r=n(65617),s=n(46851);function i(e,t,n,r,s,i,a,o,l,u,h,c,d,p,m,f,g){return e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=i,e[5]=a,e[6]=o,e[7]=l,e[8]=u,e[9]=h,e[10]=c,e[11]=d,e[12]=p,e[13]=m,e[14]=f,e[15]=g,e}function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function o(e,t){if(e===t){const n=t[1],r=t[2],s=t[3],i=t[6],a=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=i,e[11]=t[14],e[12]=s,e[13]=a,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){const n=t[0],r=t[1],s=t[2],i=t[3],a=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],p=t[11],m=t[12],f=t[13],g=t[14],y=t[15],b=n*o-r*a,_=n*l-s*a,v=n*u-i*a,w=r*l-s*o,x=r*u-i*o,C=s*u-i*l,M=h*f-c*m,E=h*g-d*m,S=h*y-p*m,T=c*g-d*f,I=c*y-p*f,O=d*y-p*g;let F=b*O-_*I+v*T+w*S-x*E+C*M;return F?(F=1/F,e[0]=(o*O-l*I+u*T)*F,e[1]=(s*I-r*O-i*T)*F,e[2]=(f*C-g*x+y*w)*F,e[3]=(d*x-c*C-p*w)*F,e[4]=(l*S-a*O-u*E)*F,e[5]=(n*O-s*S+i*E)*F,e[6]=(g*v-m*C-y*_)*F,e[7]=(h*C-d*v+p*_)*F,e[8]=(a*I-o*S+u*M)*F,e[9]=(r*S-n*I-i*M)*F,e[10]=(m*x-f*v+y*b)*F,e[11]=(c*v-h*x-p*b)*F,e[12]=(o*E-a*T-l*M)*F,e[13]=(n*T-r*E+s*M)*F,e[14]=(f*_-m*w-g*b)*F,e[15]=(h*w-c*_+d*b)*F,e):null}function u(e,t,n){const r=t[0],s=t[1],i=t[2],a=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=t[8],d=t[9],p=t[10],m=t[11],f=t[12],g=t[13],y=t[14],b=t[15];let _=n[0],v=n[1],w=n[2],x=n[3];return e[0]=_*r+v*o+w*c+x*f,e[1]=_*s+v*l+w*d+x*g,e[2]=_*i+v*u+w*p+x*y,e[3]=_*a+v*h+w*m+x*b,_=n[4],v=n[5],w=n[6],x=n[7],e[4]=_*r+v*o+w*c+x*f,e[5]=_*s+v*l+w*d+x*g,e[6]=_*i+v*u+w*p+x*y,e[7]=_*a+v*h+w*m+x*b,_=n[8],v=n[9],w=n[10],x=n[11],e[8]=_*r+v*o+w*c+x*f,e[9]=_*s+v*l+w*d+x*g,e[10]=_*i+v*u+w*p+x*y,e[11]=_*a+v*h+w*m+x*b,_=n[12],v=n[13],w=n[14],x=n[15],e[12]=_*r+v*o+w*c+x*f,e[13]=_*s+v*l+w*d+x*g,e[14]=_*i+v*u+w*p+x*y,e[15]=_*a+v*h+w*m+x*b,e}function h(e,t,n){const r=n[0],s=n[1],i=n[2];if(t===e)e[12]=t[0]*r+t[4]*s+t[8]*i+t[12],e[13]=t[1]*r+t[5]*s+t[9]*i+t[13],e[14]=t[2]*r+t[6]*s+t[10]*i+t[14],e[15]=t[3]*r+t[7]*s+t[11]*i+t[15];else{const n=t[0],a=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7],p=t[8],m=t[9],f=t[10],g=t[11];e[0]=n,e[1]=a,e[2]=o,e[3]=l,e[4]=u,e[5]=h,e[6]=c,e[7]=d,e[8]=p,e[9]=m,e[10]=f,e[11]=g,e[12]=n*r+u*s+p*i+t[12],e[13]=a*r+h*s+m*i+t[13],e[14]=o*r+c*s+f*i+t[14],e[15]=l*r+d*s+g*i+t[15]}return e}function c(e,t,n){const r=n[0],s=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*s,e[5]=t[5]*s,e[6]=t[6]*s,e[7]=t[7]*s,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function d(e,t,n,r){let i,a,o,l,u,h,c,d,p,m,f,g,y,b,_,v,w,x,C,M,E,S,T,I,O=r[0],F=r[1],N=r[2],A=Math.sqrt(O*O+F*F+N*N);return A<(0,s.g)()?null:(A=1/A,O*=A,F*=A,N*=A,i=Math.sin(n),a=Math.cos(n),o=1-a,l=t[0],u=t[1],h=t[2],c=t[3],d=t[4],p=t[5],m=t[6],f=t[7],g=t[8],y=t[9],b=t[10],_=t[11],v=O*O*o+a,w=F*O*o+N*i,x=N*O*o-F*i,C=O*F*o-N*i,M=F*F*o+a,E=N*F*o+O*i,S=O*N*o+F*i,T=F*N*o-O*i,I=N*N*o+a,e[0]=l*v+d*w+g*x,e[1]=u*v+p*w+y*x,e[2]=h*v+m*w+b*x,e[3]=c*v+f*w+_*x,e[4]=l*C+d*M+g*E,e[5]=u*C+p*M+y*E,e[6]=h*C+m*M+b*E,e[7]=c*C+f*M+_*E,e[8]=l*S+d*T+g*I,e[9]=u*S+p*T+y*I,e[10]=h*S+m*T+b*I,e[11]=c*S+f*T+_*I,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function p(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function m(e,t,n){if(0===t)return a(e);let r,i,o,l=n[0],u=n[1],h=n[2],c=Math.sqrt(l*l+u*u+h*h);return c<(0,s.g)()?null:(c=1/c,l*=c,u*=c,h*=c,r=Math.sin(t),i=Math.cos(t),o=1-i,e[0]=l*l*o+i,e[1]=u*l*o+h*r,e[2]=h*l*o-u*r,e[3]=0,e[4]=l*u*o-h*r,e[5]=u*u*o+i,e[6]=h*u*o+l*r,e[7]=0,e[8]=l*h*o+u*r,e[9]=u*h*o-l*r,e[10]=h*h*o+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function f(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function g(e,t,n){const r=t[0],s=t[1],i=t[2],a=t[3],o=r+r,l=s+s,u=i+i,h=r*o,c=r*l,d=r*u,p=s*l,m=s*u,f=i*u,g=a*o,y=a*l,b=a*u;return e[0]=1-(p+f),e[1]=c+b,e[2]=d-y,e[3]=0,e[4]=c-b,e[5]=1-(h+f),e[6]=m+g,e[7]=0,e[8]=d+y,e[9]=m-g,e[10]=1-(h+p),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}const y=(0,r.c)();function b(e,t,n,r){const s=t[0],i=t[1],a=t[2],o=t[3],l=s+s,u=i+i,h=a+a,c=s*l,d=s*u,p=s*h,m=i*u,f=i*h,g=a*h,y=o*l,b=o*u,_=o*h,v=r[0],w=r[1],x=r[2];return e[0]=(1-(m+g))*v,e[1]=(d+_)*v,e[2]=(p-b)*v,e[3]=0,e[4]=(d-_)*w,e[5]=(1-(c+g))*w,e[6]=(f+y)*w,e[7]=0,e[8]=(p+b)*x,e[9]=(f-y)*x,e[10]=(1-(c+m))*x,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function _(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}function v(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function w(e,t){if(e===t)return!0;const n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],l=e[5],u=e[6],h=e[7],c=e[8],d=e[9],p=e[10],m=e[11],f=e[12],g=e[13],y=e[14],b=e[15],_=t[0],v=t[1],w=t[2],x=t[3],C=t[4],M=t[5],E=t[6],S=t[7],T=t[8],I=t[9],O=t[10],F=t[11],N=t[12],A=t[13],D=t[14],R=t[15],L=(0,s.g)();return Math.abs(n-_)<=L*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(r-v)<=L*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(i-w)<=L*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(a-x)<=L*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(o-C)<=L*Math.max(1,Math.abs(o),Math.abs(C))&&Math.abs(l-M)<=L*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(u-E)<=L*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(h-S)<=L*Math.max(1,Math.abs(h),Math.abs(S))&&Math.abs(c-T)<=L*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(d-I)<=L*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(p-O)<=L*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(m-F)<=L*Math.max(1,Math.abs(m),Math.abs(F))&&Math.abs(f-N)<=L*Math.max(1,Math.abs(f),Math.abs(N))&&Math.abs(g-A)<=L*Math.max(1,Math.abs(g),Math.abs(A))&&Math.abs(y-D)<=L*Math.max(1,Math.abs(y),Math.abs(D))&&Math.abs(b-R)<=L*Math.max(1,Math.abs(b),Math.abs(R))}function x(e){const t=(0,s.g)(),n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],l=e[6],u=e[8],h=e[9],c=e[10];return Math.abs(1-(n*n+a*a+u*u))<=t&&Math.abs(1-(r*r+o*o+h*h))<=t&&Math.abs(1-(i*i+l*l+c*c))<=t}const C=u,M=_;Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},set:i,identity:a,transpose:o,invert:l,adjoint:function(e,t){const n=t[0],r=t[1],s=t[2],i=t[3],a=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],p=t[11],m=t[12],f=t[13],g=t[14],y=t[15];return e[0]=o*(d*y-p*g)-c*(l*y-u*g)+f*(l*p-u*d),e[1]=-(r*(d*y-p*g)-c*(s*y-i*g)+f*(s*p-i*d)),e[2]=r*(l*y-u*g)-o*(s*y-i*g)+f*(s*u-i*l),e[3]=-(r*(l*p-u*d)-o*(s*p-i*d)+c*(s*u-i*l)),e[4]=-(a*(d*y-p*g)-h*(l*y-u*g)+m*(l*p-u*d)),e[5]=n*(d*y-p*g)-h*(s*y-i*g)+m*(s*p-i*d),e[6]=-(n*(l*y-u*g)-a*(s*y-i*g)+m*(s*u-i*l)),e[7]=n*(l*p-u*d)-a*(s*p-i*d)+h*(s*u-i*l),e[8]=a*(c*y-p*f)-h*(o*y-u*f)+m*(o*p-u*c),e[9]=-(n*(c*y-p*f)-h*(r*y-i*f)+m*(r*p-i*c)),e[10]=n*(o*y-u*f)-a*(r*y-i*f)+m*(r*u-i*o),e[11]=-(n*(o*p-u*c)-a*(r*p-i*c)+h*(r*u-i*o)),e[12]=-(a*(c*g-d*f)-h*(o*g-l*f)+m*(o*d-l*c)),e[13]=n*(c*g-d*f)-h*(r*g-s*f)+m*(r*d-s*c),e[14]=-(n*(o*g-l*f)-a*(r*g-s*f)+m*(r*l-s*o)),e[15]=n*(o*d-l*c)-a*(r*d-s*c)+h*(r*l-s*o),e},determinant:function(e){const t=e[0],n=e[1],r=e[2],s=e[3],i=e[4],a=e[5],o=e[6],l=e[7],u=e[8],h=e[9],c=e[10],d=e[11],p=e[12],m=e[13],f=e[14],g=e[15];return(t*a-n*i)*(c*g-d*f)-(t*o-r*i)*(h*g-d*m)+(t*l-s*i)*(h*f-c*m)+(n*o-r*a)*(u*g-d*p)-(n*l-s*a)*(u*f-c*p)+(r*l-s*o)*(u*m-h*p)},multiply:u,translate:h,scale:c,rotate:d,rotateX:function(e,t,n){const r=Math.sin(n),s=Math.cos(n),i=t[4],a=t[5],o=t[6],l=t[7],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*s+u*r,e[5]=a*s+h*r,e[6]=o*s+c*r,e[7]=l*s+d*r,e[8]=u*s-i*r,e[9]=h*s-a*r,e[10]=c*s-o*r,e[11]=d*s-l*r,e},rotateY:function(e,t,n){const r=Math.sin(n),s=Math.cos(n),i=t[0],a=t[1],o=t[2],l=t[3],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s-u*r,e[1]=a*s-h*r,e[2]=o*s-c*r,e[3]=l*s-d*r,e[8]=i*r+u*s,e[9]=a*r+h*s,e[10]=o*r+c*s,e[11]=l*r+d*s,e},rotateZ:function(e,t,n){const r=Math.sin(n),s=Math.cos(n),i=t[0],a=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s+u*r,e[1]=a*s+h*r,e[2]=o*s+c*r,e[3]=l*s+d*r,e[4]=u*s-i*r,e[5]=h*s-a*r,e[6]=c*s-o*r,e[7]=d*s-l*r,e},fromTranslation:p,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotation:m,fromXRotation:f,fromYRotation:function(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotationTranslation:g,fromQuat2:function(e,t){const n=y,r=-t[0],s=-t[1],i=-t[2],a=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=r*r+s*s+i*i+a*a;return c>0?(n[0]=2*(o*a+h*r+l*i-u*s)/c,n[1]=2*(l*a+h*s+u*r-o*i)/c,n[2]=2*(u*a+h*i+o*s-l*r)/c):(n[0]=2*(o*a+h*r+l*i-u*s),n[1]=2*(l*a+h*s+u*r-o*i),n[2]=2*(u*a+h*i+o*s-l*r)),g(e,t,n),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},getScaling:function(e,t){const n=t[0],r=t[1],s=t[2],i=t[4],a=t[5],o=t[6],l=t[8],u=t[9],h=t[10];return e[0]=Math.sqrt(n*n+r*r+s*s),e[1]=Math.sqrt(i*i+a*a+o*o),e[2]=Math.sqrt(l*l+u*u+h*h),e},getRotation:function(e,t){const n=t[0]+t[5]+t[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),e[3]=.25*r,e[0]=(t[6]-t[9])/r,e[1]=(t[8]-t[2])/r,e[2]=(t[1]-t[4])/r):t[0]>t[5]&&t[0]>t[10]?(r=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/r,e[0]=.25*r,e[1]=(t[1]+t[4])/r,e[2]=(t[8]+t[2])/r):t[5]>t[10]?(r=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/r,e[0]=(t[1]+t[4])/r,e[1]=.25*r,e[2]=(t[6]+t[9])/r):(r=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/r,e[0]=(t[8]+t[2])/r,e[1]=(t[6]+t[9])/r,e[2]=.25*r),e},fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(e,t,n,r,s){const i=t[0],a=t[1],o=t[2],l=t[3],u=i+i,h=a+a,c=o+o,d=i*u,p=i*h,m=i*c,f=a*h,g=a*c,y=o*c,b=l*u,_=l*h,v=l*c,w=r[0],x=r[1],C=r[2],M=s[0],E=s[1],S=s[2],T=(1-(f+y))*w,I=(p+v)*w,O=(m-_)*w,F=(p-v)*x,N=(1-(d+y))*x,A=(g+b)*x,D=(m+_)*C,R=(g-b)*C,L=(1-(d+f))*C;return e[0]=T,e[1]=I,e[2]=O,e[3]=0,e[4]=F,e[5]=N,e[6]=A,e[7]=0,e[8]=D,e[9]=R,e[10]=L,e[11]=0,e[12]=n[0]+M-(T*M+F*E+D*S),e[13]=n[1]+E-(I*M+N*E+R*S),e[14]=n[2]+S-(O*M+A*E+L*S),e[15]=1,e},fromQuat:function(e,t){const n=t[0],r=t[1],s=t[2],i=t[3],a=n+n,o=r+r,l=s+s,u=n*a,h=r*a,c=r*o,d=s*a,p=s*o,m=s*l,f=i*a,g=i*o,y=i*l;return e[0]=1-c-m,e[1]=h+y,e[2]=d-g,e[3]=0,e[4]=h-y,e[5]=1-u-m,e[6]=p+f,e[7]=0,e[8]=d+g,e[9]=p-f,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,n,r,s,i,a){const o=1/(n-t),l=1/(s-r),u=1/(i-a);return e[0]=2*i*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*l,e[6]=0,e[7]=0,e[8]=(n+t)*o,e[9]=(s+r)*l,e[10]=(a+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*i*2*u,e[15]=0,e},perspective:function(e,t,n,r,s){const i=1/Math.tan(t/2);let a;return e[0]=i/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=s&&s!==1/0?(a=1/(r-s),e[10]=(s+r)*a,e[14]=2*s*r*a):(e[10]=-1,e[14]=-2*r),e},perspectiveFromFieldOfView:function(e,t,n,r){const s=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),a=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(a+o),u=2/(s+i);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(a-o)*l*.5,e[9]=(s-i)*u*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e},ortho:function(e,t,n,r,s,i,a){const o=1/(t-n),l=1/(r-s),u=1/(i-a);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+n)*o,e[13]=(s+r)*l,e[14]=(a+i)*u,e[15]=1,e},lookAt:function(e,t,n,r){let i,o,l,u,h,c,d,p,m,f;const g=t[0],y=t[1],b=t[2],_=r[0],v=r[1],w=r[2],x=n[0],C=n[1],M=n[2],E=(0,s.g)();return Math.abs(g-x)<E&&Math.abs(y-C)<E&&Math.abs(b-M)<E?a(e):(d=g-x,p=y-C,m=b-M,f=1/Math.sqrt(d*d+p*p+m*m),d*=f,p*=f,m*=f,i=v*m-w*p,o=w*d-_*m,l=_*p-v*d,f=Math.sqrt(i*i+o*o+l*l),f?(f=1/f,i*=f,o*=f,l*=f):(i=0,o=0,l=0),u=p*l-m*o,h=m*i-d*l,c=d*o-p*i,f=Math.sqrt(u*u+h*h+c*c),f?(f=1/f,u*=f,h*=f,c*=f):(u=0,h=0,c=0),e[0]=i,e[1]=u,e[2]=d,e[3]=0,e[4]=o,e[5]=h,e[6]=p,e[7]=0,e[8]=l,e[9]=c,e[10]=m,e[11]=0,e[12]=-(i*g+o*y+l*b),e[13]=-(u*g+h*y+c*b),e[14]=-(d*g+p*y+m*b),e[15]=1,e)},targetTo:function(e,t,n,r){const s=t[0],i=t[1],a=t[2],o=r[0],l=r[1],u=r[2];let h=s-n[0],c=i-n[1],d=a-n[2],p=h*h+c*c+d*d;p>0&&(p=1/Math.sqrt(p),h*=p,c*=p,d*=p);let m=l*d-u*c,f=u*h-o*d,g=o*c-l*h;return p=m*m+f*f+g*g,p>0&&(p=1/Math.sqrt(p),m*=p,f*=p,g*=p),e[0]=m,e[1]=f,e[2]=g,e[3]=0,e[4]=c*g-d*f,e[5]=d*m-h*g,e[6]=h*f-c*m,e[7]=0,e[8]=h,e[9]=c,e[10]=d,e[11]=0,e[12]=s,e[13]=i,e[14]=a,e[15]=1,e},str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e},subtract:_,multiplyScalar:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e},multiplyScalarAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e[9]=t[9]+n[9]*r,e[10]=t[10]+n[10]*r,e[11]=t[11]+n[11]*r,e[12]=t[12]+n[12]*r,e[13]=t[13]+n[13]*r,e[14]=t[14]+n[14]*r,e[15]=t[15]+n[15]*r,e},exactEquals:v,equals:w,isOrthoNormal:x,mul:C,sub:M},Symbol.toStringTag,{value:"Module"}))},2368:(e,t,n)=>{n.d(t,{J:()=>h,j:()=>c});var r=n(43697),s=n(15923),i=(n(80442),n(22974)),a=(n(92604),n(70586)),o=n(31263),l=n(1153),u=n(52011);const h=e=>{let t=class extends e{clone(){const e=(0,a.s3)((0,l.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,n=e.store,r={},s=new Map;for(const e in t){const a=t[e],l=n?.originOf(e),u=a.clonable;if(a.readOnly||!1===u||l!==o.s3.USER&&l!==o.s3.DEFAULTS&&l!==o.s3.WEB_MAP&&l!==o.s3.WEB_SCENE)continue;const h=this[e];let c=null;c="function"==typeof u?u(h):"reference"===u?h:(0,i.Vo)(h),null!=h&&null==c||(l===o.s3.DEFAULTS?s.set(e,c):r[e]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(s.size){const e=(0,l.vw)(u)?.store;if(e)for(const[t,n]of s)e.set(t,n,o.s3.DEFAULTS)}return u}};return t=(0,r._)([(0,u.j)("esri.core.Clonable")],t),t};let c=class extends(h(s.Z)){};c=(0,r._)([(0,u.j)("esri.core.Clonable")],c)},46791:(e,t,n)=>{n.d(t,{Z:()=>F});var r,s=n(43697),i=n(3894),a=n(32448),o=n(22974),l=n(70586),u=n(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(r||(r={}));var h,c=n(1654),d=n(5600),p=n(75215),m=n(52421),f=n(52011),g=n(58971),y=n(10661);const b=new u.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),_=()=>{};function v(e){return e?e instanceof O?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function w(e){if(e&&e.length)return e[0]}function x(e,t,n,r){const s=Math.min(e.length-n,t.length-r);let i=0;for(;i<s&&e[n+i]===t[r+i];)i++;return i}function C(e,t,n,r){t&&t.forEach(((t,s,i)=>{e.push(t),C(e,n.call(r,t,s,i),n,r)}))}const M=new Set,E=new Set,S=new Set,T=new Map;let I=0,O=h=class extends a.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new y.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:I++})}static isCollection(e){return null!=e&&e instanceof h}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof h?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,g.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(r.ADD)||(this._splice(0,this.length,v(e)),this._emitAfterChanges(r.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,n={removed:!1,callback:t};return e.push(n),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=_,n.removed=!0,e.splice(e.indexOf(n),1)}}}return this._emitter.on(e,t)}once(e,t){const n=this.on(e,t);return{remove(){n.remove()}}}add(e,t){if((0,g.it)(this._observable),this._emitBeforeChanges(r.ADD))return this;const n=this.getNextIndex(t??null);return this._splice(n,0,[e]),this._emitAfterChanges(r.ADD),this}addMany(e,t=this._items.length){if((0,g.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(r.ADD))return this;const n=this.getNextIndex(t);return this._splice(n,0,v(e)),this._emitAfterChanges(r.ADD),this}at(e){if((0,g.it)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(r.REMOVE),e}clone(){return(0,g.it)(this._observable),this._createNewInstance({items:this._items.map(o.d9)})}concat(...e){(0,g.it)(this._observable);const t=e.map(v);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const n=(0,l.j0)(this._splice(0,this.length)),s=n.length;for(let r=0;r<s;r++)e.call(t,n[r],r,n);this._emitAfterChanges(r.REMOVE)}every(e,t){return(0,g.it)(this._observable),this._items.every(e,t)}filter(e,t){let n;return(0,g.it)(this._observable),n=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:n})}find(e,t){return(0,g.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,g.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,g.it)(this._observable);const n=[];return C(n,this,e,t),new h(n)}forEach(e,t){return(0,g.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,g.it)(this._observable),this._items[e]}getNextIndex(e){(0,g.it)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,g.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,g.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,g.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,g.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,g.it)(this._observable);const n=this._items.map(e,t);return new h({items:n})}reorder(e,t=this.length-1){(0,g.it)(this._observable);const n=this.indexOf(e);if(-1!==n){if(t<0?t=0:t>=this.length&&(t=this.length-1),n!==t){if(this._emitBeforeChanges(r.MOVE))return e;this._splice(n,1),this._splice(t,0,[e]),this._emitAfterChanges(r.MOVE)}return e}}pop(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=w(this._splice(this.length-1,1));return this._emitAfterChanges(r.REMOVE),e}push(...e){return(0,g.it)(this._observable),this._emitBeforeChanges(r.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(r.ADD)),this.length}reduce(e,t){(0,g.it)(this._observable);const n=this._items;return 2===arguments.length?n.reduce(e,t):n.reduce(e)}reduceRight(e,t){(0,g.it)(this._observable);const n=this._items;return 2===arguments.length?n.reduceRight(e,t):n.reduceRight(e)}remove(e){return(0,g.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,g.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(r.REMOVE))return;const t=w(this._splice(e,1));return this._emitAfterChanges(r.REMOVE),t}removeMany(e){if((0,g.it)(this._observable),!e||!e.length||this._emitBeforeChanges(r.REMOVE))return[];const t=e instanceof h?e.toArray():e,n=this._items,s=[],i=t.length;for(let e=0;e<i;e++){const r=t[e],i=n.indexOf(r);if(i>-1){const r=1+x(t,n,e+1,i+1),a=this._splice(i,r);a&&a.length>0&&s.push.apply(s,a),e+=r-1}}return this._emitAfterChanges(r.REMOVE),s}reverse(){if((0,g.it)(this._observable),this._emitBeforeChanges(r.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(r.MOVE),this}shift(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=w(this._splice(0,1));return this._emitAfterChanges(r.REMOVE),e}slice(e=0,t=this.length){return(0,g.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,g.it)(this._observable),this._items.some(e,t)}sort(e){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(r.MOVE))return this;const t=(0,l.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(r.MOVE),this}splice(e,t,...n){(0,g.it)(this._observable);const s=(t?r.REMOVE:0)|(n.length?r.ADD:0);if(this._emitBeforeChanges(s))return[];const i=this._splice(e,t,n)||[];return this._emitAfterChanges(s),i}toArray(){return(0,g.it)(this._observable),this._items.slice()}toJSON(){return(0,g.it)(this._observable),this.toArray()}toLocaleString(){return(0,g.it)(this._observable),this._items.toLocaleString()}toString(){return(0,g.it)(this._observable),this._items.toString()}unshift(...e){return(0,g.it)(this._observable),!e.length||this._emitBeforeChanges(r.ADD)||(this._splice(0,0,e),this._emitAfterChanges(r.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,n){const r=this._items,s=this.itemType;let i,a;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,c.Os)((()=>this._dispatchChange()))),t){if(a=r.splice(e,t),this.hasEventListener("before-remove")){const t=b.acquire();t.target=this,t.cancellable=!0;for(let n=0,s=a.length;n<s;n++)i=a[n],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(a.splice(n,1),r.splice(e,0,i),e+=1,n-=1,s-=1);b.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=b.acquire();e.target=this,e.cancellable=!1;const t=a.length;for(let n=0;n<t;n++)e.reset(a[n]),this.emit("after-remove",e);b.release(e)}}if(n&&n.length){if(s){const e=[];for(const t of n){const n=s.ensureType(t);null==n&&null!=t||e.push(n)}n=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),a=e===this.length;if(t||i){const s=b.acquire();s.target=this,s.cancellable=!0;const o=b.acquire();o.target=this,o.cancellable=!1;for(const l of n)t?(s.reset(l),this.emit("before-add",s),s.defaultPrevented||(a?r.push(l):r.splice(e++,0,l),this._set("length",r.length),i&&(o.reset(l),this.emit("after-add",o)))):(a?r.push(l):r.splice(e++,0,l),this._set("length",r.length),o.reset(l),this.emit("after-add",o));b.release(o),b.release(s)}else{if(a)for(const e of n)r.push(e);else r.splice(e,0,...n);this._set("length",r.length)}}return(n&&n.length||a&&a.length)&&this._notifyChangeEvent(n,a),a}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const n=b.acquire();n.target=this,n.cancellable=!0,n.type=e,this.emit("before-changes",n),t=n.defaultPrevented,b.release(n)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=b.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),b.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;M.clear(),E.clear(),S.clear();for(const{added:t,removed:n}of e){if(t)if(0===S.size&&0===E.size)for(const e of t)M.add(e);else for(const e of t)E.has(e)?(S.add(e),E.delete(e)):S.has(e)||M.add(e);if(n)if(0===S.size&&0===M.size)for(const e of n)E.add(e);else for(const e of n)M.has(e)?M.delete(e):(S.delete(e),E.add(e))}const n=i.Z.acquire();M.forEach((e=>{n.push(e)}));const r=i.Z.acquire();E.forEach((e=>{r.push(e)}));const s=this._items,a=t.items,o=i.Z.acquire();if(S.forEach((e=>{a.indexOf(e)!==s.indexOf(e)&&o.push(e)})),t.listeners&&(n.length||r.length||o.length)){const e={target:this,added:n,removed:r,moved:o},s=t.listeners.length;for(let n=0;n<s;n++){const r=t.listeners[n];r.removed||r.callback.call(this,e)}}i.Z.release(n),i.Z.release(r),i.Z.release(o)}M.clear(),E.clear(),S.clear()}};O.ofType=e=>{if(!e)return h;if(T.has(e))return T.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const n in e.typeMap){const r=e.typeMap[n].prototype.declaredClass;t?t+=` | ${r}`:t=r}let n=class extends h{};return(0,s._)([(0,m.c)({Type:e,ensureType:"function"==typeof e?(0,p.se)(e):(0,p.N7)(e)})],n.prototype,"itemType",void 0),n=(0,s._)([(0,f.j)(`esri.core.Collection<${t}>`)],n),T.set(e,n),n},(0,s._)([(0,d.Cb)()],O.prototype,"length",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"items",null),O=h=(0,s._)([(0,f.j)("esri.core.Collection")],O);const F=O},57435:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(43697),s=n(46791),i=n(70586),a=(n(80442),n(20102),n(92604),n(26258),n(87538)),o=n(5600),l=(n(67676),n(75215),n(52011));let u=class extends s.Z{constructor(e){super(e),this.getCollections=null}initialize(){this.own((0,a.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=(0,i.pC)(this.getCollections)?this.getCollections():null;if((0,i.Wi)(e))return void this.removeAll();let t=0;for(const n of e)(0,i.pC)(n)&&(t=this._processCollection(t,n));this.splice(t,this.length)}_createNewInstance(e){return new s.Z(e)}_processCollection(e,t){if(!t)return e;const n=this.itemFilterFunction?this.itemFilterFunction:e=>!!e;for(const r of t)if(r){if(n(r)){const t=this.indexOf(r,e);t>=0?t!==e&&this.reorder(r,e):this.add(r,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(r);if(Array.isArray(t))for(const n of t)e=this._processCollection(e,n);else e=this._processCollection(e,t)}}return e}};(0,r._)([(0,o.Cb)()],u.prototype,"getCollections",void 0),(0,r._)([(0,o.Cb)()],u.prototype,"getChildrenFunction",void 0),(0,r._)([(0,o.Cb)()],u.prototype,"itemFilterFunction",void 0),u=(0,r._)([(0,l.j)("esri.core.CollectionFlattener")],u);const h=u},3920:(e,t,n)=>{n.d(t,{p:()=>u,r:()=>h});var r=n(43697),s=n(15923),i=n(61247),a=n(5600),o=n(52011),l=n(72762);const u=e=>{let t=class extends e{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new i.Z}get updatingHandles(){return this._get("updatingHandles")||new l.t}};return(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,r._)([(0,o.j)("esri.core.HandleOwner")],t),t};let h=class extends(u(s.Z)){};h=(0,r._)([(0,o.j)("esri.core.HandleOwner")],h)},52421:(e,t,n)=>{function r(e){return(t,n)=>{t[n]=e}}n.d(t,{c:()=>r})},10661:(e,t,n)=>{n.d(t,{s:()=>s});var r=n(39020);class s{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new r.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const n=e[t];n.onInvalidated(),n.onCommitted()}}}},17445:(e,t,n)=>{n.d(t,{N1:()=>d,YP:()=>l,Z_:()=>f,gx:()=>u,nn:()=>g,on:()=>c,tX:()=>y});var r=n(91460),s=n(50758),i=n(70586),a=n(95330),o=n(26258);function l(e,t,n={}){return h(e,t,n,p)}function u(e,t,n={}){return h(e,t,n,m)}function h(e,t,n={},r){let s=null;const a=n.once?(e,n)=>{r(e)&&((0,i.hw)(s),t(e,n))}:(e,n)=>{r(e)&&t(e,n)};if(s=(0,o.aQ)(e,a,n.sync,n.equals),n.initial){const t=e();a(t,t)}return s}function c(e,t,n,a={}){let o=null,u=null,h=null;function c(){o&&u&&(u.remove(),a.onListenerRemove?.(o),o=null,u=null)}function d(e){a.once&&a.once&&(0,i.hw)(h),n(e)}const p=l(e,((e,n)=>{c(),(0,r.vT)(e)&&(o=e,u=(0,r.on)(e,t,d),a.onListenerAdd?.(e))}),{sync:a.sync,initial:!0});return h=(0,s.kB)((()=>{p.remove(),c()})),h}function d(e,t){return function(e,t,n){if((0,a.Hc)(n))return Promise.reject((0,a.zE)());const r=e();if(t?.(r))return Promise.resolve(r);let o=null;function l(){o=(0,i.hw)(o)}return new Promise(((r,i)=>{o=(0,s.AL)([(0,a.fu)(n,(()=>{l(),i((0,a.zE)())})),h(e,(e=>{l(),r(e)}),{sync:!1,once:!0},t??p)])}))}(e,m,t)}function p(e){return!0}function m(e){return!!e}n(87538);const f={sync:!0},g={initial:!0},y={sync:!0,initial:!0}},72762:(e,t,n)=>{n.d(t,{t:()=>c});var r=n(43697),s=n(15923),i=n(61247),a=n(70586),o=n(17445),l=n(1654),u=n(5600),h=n(52011);let c=class extends s.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new i.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(e,t,n={}){return this._installWatch(e,t,n,o.YP)}addWhen(e,t,n={}){return this._installWatch(e,t,n,o.gx)}addOnCollectionChange(e,t,{initial:n=!1,final:r=!1}={}){const s=++this._handleId;return this._handles.add([(0,o.on)(e,"after-changes",this._createSyncUpdatingCallback(),o.Z_),(0,o.on)(e,"change",t,{onListenerAdd:n?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:r?e=>t({added:[],removed:e.toArray()}):void 0})],s),{remove:()=>this._handles.remove(s)}}addPromise(e){if((0,a.Wi)(e))return e;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this._handles.has(d)||this._set("updating",!1))}},t),this._pendingPromises.add(e),this._set("updating",!0);const n=()=>this._handles.remove(t);return e.then(n,n),e}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(e,t,n={},r){const s=++this._handleId;n.sync||this._installSyncUpdatingWatch(e,s);const i=r(e,t,n);return this._handles.add(i,s),{remove:()=>this._handles.remove(s)}}_installSyncUpdatingWatch(e,t){const n=this._createSyncUpdatingCallback(),r=(0,o.YP)(e,n,{sync:!0,equals:()=>!1});return this._handles.add(r,t),r}_createSyncUpdatingCallback(){return()=>{this._handles.remove(d),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,l.Os)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(d))})),d)}}};(0,r._)([(0,u.Cb)({readOnly:!0})],c.prototype,"updating",void 0),c=(0,r._)([(0,h.j)("esri.core.support.WatchUpdatingTracking")],c);const d=-42},35463:(e,t,n)=>{n.d(t,{JE:()=>a,Nm:()=>i,rJ:()=>o}),n(80442);const r={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},s={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function i(e,t,n){const r=new Date(e.getTime());if(t&&n){const e=s[n],{getter:i,setter:a,multiplier:o}=e;if("months"===n){const e=function(e,t){const n=new Date(e,t+1,1);return n.setDate(0),n.getDate()}(r.getFullYear(),r.getMonth()+t);r.getDate()>e&&r.setDate(e)}r[a](r[i]()+t*o)}return r}function a(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function o(e,t,n){return 0===e?0:e*r[t]/r[n]}},60437:(e,t,n)=>{n.d(t,{Gv:()=>b,HH:()=>o,JR:()=>f,TC:()=>l,Tn:()=>d,Ue:()=>i,al:()=>a,cS:()=>m,dp:()=>h,fS:()=>y,op:()=>c,pp:()=>u,t8:()=>p});var r=n(70586),s=n(6570);function i(e=_){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t,n,r,s,a,o=i()){return o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=s,o[5]=a,o}function o(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new s.Z(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function u(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function h(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function c(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function d(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function m(e){return e?p(e,b):i(b)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function y(e,t,n){if((0,r.Wi)(e)||(0,r.Wi)(t))return e===t;if(!g(e)||!g(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n(24470);const b=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];i()},91040:(e,t,n)=>{n.d(t,{yZ:()=>s});var r=n(67900);function s(e,t){const n=t||e.extent,s=e.width,i=(0,r.c9)(n&&n.spatialReference);return n&&s?n.width/s*i*r.hd*96:0}},25906:(e,t,n)=>{n.r(t),n.d(t,{default:()=>xe});var r=n(43697),s=n(68773),i=n(38171),a=n(51773),o=n(3172),l=n(46791),u=n(57435),h=n(35454),c=n(22974),d=n(70586),p=n(16453),m=n(95330),f=n(17445),g=n(17452),y=n(5600),b=n(75215),_=n(71715),v=n(52011),w=n(30556),x=n(76169),C=n(6570),M=n(82971),E=n(91040),S=n(8744),T=n(87085),I=n(71612),O=n(38009),F=n(16859),N=n(34760),A=n(72965),D=n(28294),R=n(52162),L=n(66677),j=n(21506),P=n(15923),U=n(3920);n(67676);const Z={visible:"visibleSublayers"};let q=class extends((0,U.p)(P.Z)){constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.handles.remove("layer"),e&&this.handles.add([e.sublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("wms-sublayer-update",(e=>this.notifyChange(Z[e.propertyName])))],"layer"))}get layers(){return this.visibleSublayers.filter((({name:e})=>e)).map((({name:e})=>e)).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,n=e?.sublayers,r=[],s=e=>{const{minScale:n,maxScale:i,sublayers:a,visible:o}=e;o&&(0===t||(0===n||t<=n)&&(0===i||t>=i))&&(a?a.forEach(s):r.push(e))};return n?.forEach(s),r}toJSON(){const{layer:e,layers:t}=this,{imageFormat:n,imageTransparency:r,version:s}=e;return{format:n,request:"GetMap",service:"WMS",styles:"",transparent:r?"TRUE":"FALSE",version:s,layers:t}}};(0,r._)([(0,y.Cb)()],q.prototype,"layer",null),(0,r._)([(0,y.Cb)({readOnly:!0})],q.prototype,"layers",null),(0,r._)([(0,y.Cb)({type:Number})],q.prototype,"scale",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],q.prototype,"version",null),(0,r._)([(0,y.Cb)({readOnly:!0})],q.prototype,"visibleSublayers",null),q=(0,r._)([(0,v.j)("esri.layers.support.ExportWMSImageParameters")],q);var V,B=n(10699),W=n(90578);let k=0,H=V=class extends((0,B.IG)(p.w)){constructor(e){super(e),this.dimensions=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.addHandles([(0,f.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=this,e.layer=this.layer}),f.Z_),(0,f.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),f.Z_),(0,f.YP)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer}),f.Z_)])}get description(){return this._get("description")}set description(e){this._set("description",e)}get fullExtent(){return this._get("fullExtent")}set fullExtent(e){this._set("fullExtent",e)}readExtent(e,t){return(e=t.extent)?C.Z.fromJSON(e):null}get id(){return this._get("id")??k++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t?.legendUrl??t?.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get name(){return this._get("name")}set name(e){this._set("name",e)}castSublayers(e){return(0,b.se)(l.Z.ofType(V),e)}get title(){return this._get("title")}set title(e){this._set("title",e)}get visible(){return this._get("visible")}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new V;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map((e=>e.clone()))??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers&&this.sublayers.map((e=>e.clone()))),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map((e=>e))),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const n=this.layer;this._get(e)!==t&&(this._set(e,t),n&&n.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,r._)([(0,y.Cb)()],H.prototype,"description",null),(0,r._)([(0,y.Cb)({readOnly:!0})],H.prototype,"dimensions",void 0),(0,r._)([(0,y.Cb)({value:null})],H.prototype,"fullExtent",null),(0,r._)([(0,_.r)("fullExtent",["extent"])],H.prototype,"readExtent",null),(0,r._)([(0,y.Cb)()],H.prototype,"fullExtents",void 0),(0,r._)([(0,y.Cb)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],H.prototype,"id",null),(0,r._)([(0,y.Cb)({type:String,json:{origins:{"web-document":{read:{source:["legendUrl","legendURL"]},write:{target:"legendUrl",ignoreOrigin:!0}}},read:{source:"legendURL"},write:{ignoreOrigin:!0}}})],H.prototype,"legendUrl",void 0),(0,r._)([(0,_.r)(["web-document"],"legendUrl")],H.prototype,"readLegendUrl",null),(0,r._)([(0,y.Cb)({value:!0,type:Boolean,json:{read:{source:"showLegend"},write:{target:"showLegend"},origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],H.prototype,"legendEnabled",void 0),(0,r._)([(0,y.Cb)()],H.prototype,"layer",void 0),(0,r._)([(0,y.Cb)()],H.prototype,"maxScale",void 0),(0,r._)([(0,y.Cb)()],H.prototype,"minScale",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],H.prototype,"effectiveScaleRange",null),(0,r._)([(0,y.Cb)({type:String,value:null,json:{read:{source:"name"},write:{ignoreOrigin:!0}}})],H.prototype,"name",null),(0,r._)([(0,y.Cb)()],H.prototype,"parent",void 0),(0,r._)([(0,y.Cb)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],H.prototype,"popupEnabled",void 0),(0,r._)([(0,y.Cb)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],H.prototype,"queryable",void 0),(0,r._)([(0,y.Cb)()],H.prototype,"sublayers",void 0),(0,r._)([(0,W.p)("sublayers")],H.prototype,"castSublayers",null),(0,r._)([(0,y.Cb)({type:[Number],json:{read:{source:"spatialReferences"}}})],H.prototype,"spatialReferences",void 0),(0,r._)([(0,y.Cb)({type:String,value:null,json:{write:{ignoreOrigin:!0}}})],H.prototype,"title",null),(0,r._)([(0,y.Cb)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],H.prototype,"visible",null),H=V=(0,r._)([(0,v.j)("esri.layers.support.WMSSublayer")],H);const Y=H;var J=n(20102);const G={84:4326,83:4269,27:4267};function z(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const n=e.documentElement;if("ServiceExceptionReport"===n.nodeName){const e=Array.prototype.slice.call(n.childNodes).map((e=>e.textContent)).join("\r\n");throw new J.Z("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const r=K("Capability",n),s=K("Service",n),i=K("Request",r);if(!r||!s||!i)return null;const a=K("Layer",r);if(!a)return null;const o="WMS_Capabilities"===n.nodeName||"WMT_MS_Capabilities"===n.nodeName?n.getAttribute("version"):"1.3.0",l=te("Title",s,"")||te("Name",s,""),u=te("AccessConstraints",s,""),h=/^none$/i.test(u)?"":u,c=te("Abstract",s,""),d=parseInt(te("MaxWidth",s,"5000"),10),p=parseInt(te("MaxHeight",s,"5000"),10),m=se(i,"GetMap"),f=re(i,"GetMap"),g=ae(a,o,t);let y,b,_,v=0;if(Array.prototype.slice.call(r.childNodes).forEach((e=>{"Layer"===e.nodeName&&(0===v?y=e:1===v?(g.name&&(g.name="",g.sublayers.push(ae(y,o,t))),g.sublayers.push(ae(e,o,t))):g.sublayers.push(ae(e,o,t)),v++)})),!g)return null;const w=g.fullExtents;if(b=g.sublayers,b||(b=[]),0===b.length&&b.push(g),_=g.extent,!_){const e=new C.Z(b[0].extent);g.extent=e.toJSON(),_=g.extent}const x=g.spatialReferences.length>0?g.spatialReferences:$(g),M=re(i,"GetFeatureInfo"),E=M?se(i,"GetFeatureInfo"):null,S=X(b),T=g.minScale||0,I=g.maxScale||0,O=g.dimensions,F=S.reduce(((e,t)=>e.concat(t.dimensions)),[]),N=O.concat(F).filter(le);let A=null;if(N.length){const e=N.map((e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map((e=>e.getTime())):t.map((e=>[e.min.getTime(),e.max.getTime()]))})).flat(2);A={startTimeField:null,endTimeField:null,trackIdField:null,timeExtent:[Math.min(...e),Math.max(...e)]}}return{copyright:h,description:c,dimensions:O,extent:_,fullExtents:w,featureInfoFormats:E,featureInfoUrl:M,mapUrl:f,maxWidth:d,maxHeight:p,maxScale:I,minScale:T,layers:S,spatialReferences:x,supportedImageFormatTypes:m,timeInfo:A,title:l,version:o}}function $(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=$(t);if(e.length>0)return e}return[]}function X(e){let t=[];for(const n of e)t.push(n),n.sublayers?.length&&(t=t.concat(X(n.sublayers)),delete n.sublayers);return t}function Q(e,t,n){return t.getAttribute(e)??n}function K(e,t){for(let n=0;n<t.childNodes.length;n++){const r=t.childNodes[n];if(oe(r)&&r.nodeName===e)return r}return null}function ee(e,t){const n=[];for(let r=0;r<t.childNodes.length;r++){const s=t.childNodes[r];oe(s)&&s.nodeName===e&&n.push(s)}return n}function te(e,t,n){const r=K(e,t);return r?r.textContent:n}function ne(e,t,n){if(!e)return null;const r=parseFloat(e.getAttribute("minx")),s=parseFloat(e.getAttribute("miny")),i=parseFloat(e.getAttribute("maxx")),a=parseFloat(e.getAttribute("maxy"));let o,l,u,h;n?(o=isNaN(s)?-Number.MAX_VALUE:s,l=isNaN(r)?-Number.MAX_VALUE:r,u=isNaN(a)?Number.MAX_VALUE:a,h=isNaN(i)?Number.MAX_VALUE:i):(o=isNaN(r)?-Number.MAX_VALUE:r,l=isNaN(s)?-Number.MAX_VALUE:s,u=isNaN(i)?Number.MAX_VALUE:i,h=isNaN(a)?Number.MAX_VALUE:a);const c=new M.Z({wkid:t});return new C.Z({xmin:o,ymin:l,xmax:u,ymax:h,spatialReference:c})}function re(e,t){const n=K(t,e);if(n){const e=K("DCPType",n);if(e){const t=K("HTTP",e);if(t){const e=K("Get",t);if(e){let t=function(e,t,n,r){const s=K("OnlineResource",n);return s?Q("xlink:href",s,null):null}(0,0,e);if(t)return t.indexOf("&")===t.length-1&&(t=t.substring(0,t.length-1)),function(e,t){const n=[],r=(0,g.mN)(e);for(const e in r.query)r.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||n.push(e+"="+r.query[e]));return r.path+(n.length?"?"+n.join("&"):"")}(t,["service","request"])}}}}return null}function se(e,t){const n=ee("Operation",e);if(!n.length)return ee("Format",K(t,e)).map((({textContent:e})=>e));const r=[];for(const e of n)if(e.getAttribute("name")===t){const t=ee("Format",e);for(const{textContent:e}of t)r.push(e)}return r}function ie(e,t,n){const r=K(t,e);if(!r)return n;const{textContent:s}=r;if(null==s||""===s)return n;const i=Number(s);return isNaN(i)?n:i}function ae(e,t,n){if(!e)return null;const r={id:n.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},s=K("LatLonBoundingBox",e),i=K("EX_GeographicBoundingBox",e);let a=null;s&&(a=ne(s,4326)),i&&(a=new C.Z(0,0,0,0,new M.Z({wkid:4326})),a.xmin=parseFloat(te("westBoundLongitude",i,"0")),a.ymin=parseFloat(te("southBoundLatitude",i,"0")),a.xmax=parseFloat(te("eastBoundLongitude",i,"0")),a.ymax=parseFloat(te("northBoundLatitude",i,"0"))),s||i||(a=new C.Z(-180,-90,180,90,new M.Z({wkid:4326}))),r.minScale=ie(e,"MaxScaleDenominator",0),r.maxScale=ie(e,"MinScaleDenominator",0);const o=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach((e=>{if("Name"===e.nodeName)r.name=e.textContent||"";else if("Title"===e.nodeName)r.title=e.textContent||"";else if("Abstract"===e.nodeName)r.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const n=e.getAttribute(o);if(n&&0===n.indexOf("EPSG:")){const r=parseInt(n.substring(5),10);0===r||isNaN(r)||a||(a="1.3.0"===t?ne(e,r,(0,R.A)(r)):ne(e,r))}const s=n&&n.indexOf(":");if(s&&s>-1){let i=parseInt(n.substring(s+1,n.length),10);0===i||isNaN(i)||(i=G[i]?G[i]:i);const a="1.3.0"===t?ne(e,i,(0,R.A)(i)):ne(e,i);r.fullExtents.push(a)}}else if(e.nodeName===o)e.textContent.split(" ").forEach((e=>{const t=e.includes(":")?parseInt(e.split(":")[1],10):parseInt(e,10);if(0!==t&&!isNaN(t)){const e=G[t]?G[t]:t;r.spatialReferences.includes(e)||r.spatialReferences.push(e)}}));else if("Style"!==e.nodeName||r.legendURL){if("Layer"===e.nodeName){const s=ae(e,t,n);s&&(s.parentLayerId=r.id,r.sublayers||(r.sublayers=[]),r.sublayers.push(s))}}else{const t=K("LegendURL",e);if(t){const e=K("OnlineResource",t);e&&(r.legendURL=e.getAttribute("xlink:href"))}}})),r.extent=a?.toJSON(),r.dimensions=ee("Dimension",e).filter((e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent)).map((e=>{const t=e.getAttribute("name"),n=e.getAttribute("units"),r=e.textContent,s=e.getAttribute("unitSymbol"),i=e.getAttribute("default"),a="0"!==Q("default",e,"0"),o="0"!==Q("nearestValue",e,"0"),l="0"!==Q("current",e,"0");return le({name:t,units:n})?{name:"time",units:"ISO8601",extent:ce(r),default:ce(i),multipleValues:a,nearestValue:o,current:l}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:n})?{name:"elevation",units:n,extent:ue(r),unitSymbol:s,default:ue(i),multipleValues:a,nearestValue:o}:{name:t,units:n,extent:he(r),unitSymbol:s,default:he(i),multipleValues:a,nearestValue:o}})),r}function oe(e){return e.nodeType===Node.ELEMENT_NODE}function le(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function ue(e){if(!e)return null;const t=e.includes("/"),n=e.split(",");return t?n.map((e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}})).filter((e=>e)):n.map((e=>parseFloat(e)))}function he(e){if(!e)return null;const t=e.includes("/"),n=e.split(",");return t?n.map((e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}})).filter((e=>e)):n}function ce(e){if(!e)return null;const t=e.includes("/"),n=e.split(",");return t?n.map((e=>{const t=e.split("/");return t.length<2?null:{min:new Date(t[0]),max:new Date(t[1]),resolution:t.length>=3&&"0"!==t[2]?de(t[2]):void 0}})).filter((e=>e)):n.map((e=>new Date(e)))}function de(e){const t=e.match(/(?:p(\d+y|\d+(?:.|,)\d+y)?(\d+m|\d+(?:.|,)\d+m)?(\d+d|\d+(?:.|,)\d+d)?)?(?:t(\d+h|\d+(?:.|,)\d+h)?(\d+m|\d+(?:.|,)\d+m)?(\d+s|\d+(?:.|,)\d+s)?)?/i);return t?{years:pe(t[1]),months:pe(t[2]),days:pe(t[3]),hours:pe(t[4]),minutes:pe(t[5]),seconds:pe(t[6])}:null}function pe(e){if(!e)return 0;const t=e.match(/(?:\d+(?:.|,)\d+|\d+)/);if(!t)return 0;const n=t[0].replace(",",".");return Number(n)}function me(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}const fe=new Set([102100,3857,102113,900913]),ge=new Set([3395,54004]),ye=new h.X({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function be(e){return"text/html"===e}function _e(e){return"text/plain"===e}let ve=class extends((0,I.h)((0,D.n)((0,N.Q)((0,A.M)((0,O.q)((0,F.I)((0,p.R)(T.Z)))))))){constructor(...e){super(...e),this.allSublayers=new u.Z({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.url=null,this.version=null,this.addHandles([(0,f.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=e.layer=this}),f.Z_),(0,f.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),f.Z_),(0,f.YP)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this}),f.Z_)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,d.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(m.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readFullExtentFromItemOrMap(e,t){const n=t.extent;return n?new C.Z({xmin:n[0][0],ymin:n[0][1],xmax:n[1][0],ymax:n[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return(0,d.Wi)(this.featureInfoFormats)?null:this.featureInfoFormats.find(be)??this.featureInfoFormats.find(_e)??null}set featureInfoFormat(e){(0,d.pC)(e)?(be(e)||_e(e))&&this._override("featureInfoFormat",e):(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat"))}readImageFormat(e,t){const n=t.supportedImageFormatTypes;return n&&n.includes("image/png")?"image/png":n&&n[0]}readSpatialReferenceFromItemOrDocument(e,t){return new M.Z(t.spatialReferences[0])}writeSpatialReferences(e,t){const n=this.spatialReference?.wkid;e&&n?(t.spatialReferences=e.filter((e=>e!==n)),t.spatialReferences.unshift(n)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,n){return we(t.layers,n,t.visibleLayers)}readSublayers(e,t,n){return we(t.layers,n)}writeSublayers(e,t,n,r){t.layers=[];const s=new Map,i=e.flatten((({sublayers:e})=>e));for(const e of i)if("number"==typeof e.parent?.id){const t=s.get(e.parent.id);null!=t?t.push(e.id):s.set(e.parent.id,[e.id])}for(const e of i){const n={sublayer:e,...r},i=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},n);if(s.has(e.id)&&(i.sublayerIds=s.get(e.id)),!e.sublayers&&e.name){const r=e.write({},n);delete r.id,t.layers.push(r)}}t.visibleLayers=i.filter((({visible:e,sublayers:t})=>e&&!t)).map((({name:e})=>e)).toArray()}createExportImageParameters(e,t,n,r){const s=r?.pixelRatio??1,i=(0,E.yZ)({extent:e,width:t})*s,a=new q({layer:this,scale:i}),{xmin:o,ymin:l,xmax:u,ymax:h,spatialReference:c}=e,p=function(e,t){let n=e.wkid;return(0,d.Wi)(t)?n:(!t.includes(n)&&e.latestWkid&&(n=e.latestWkid),fe.has(n)?t.find((e=>fe.has(e)))||t.find((e=>ge.has(e)))||102100:n)}(c,this.spatialReferences),m="1.3.0"===this.version&&(0,R.A)(p)?`${l},${o},${h},${u}`:`${o},${l},${u},${h}`,f=a.toJSON();return{bbox:m,["1.3.0"===this.version?"crs":"srs"]:isNaN(p)?void 0:"EPSG:"+p,...f}}async fetchImage(e,t,n,r){const s=this.mapUrl,i=this.createExportImageParameters(e,t,n,r);if(!i.layers){const e=document.createElement("canvas");return e.width=t,e.height=n,e}const a=r?.timeExtent?.start,l=r?.timeExtent?.end,u=(0,d.pC)(a)&&(0,d.pC)(l)?a.getTime()===l.getTime()?me(a):`${me(a)}/${me(l)}`:void 0,h={responseType:"image",query:this._mixCustomParameters({width:t,height:n,...i,time:u,...this.refreshParameters}),signal:r?.signal};return(0,o.default)(s??"",h).then((e=>e.data))}fetchFeatureInfo(e,t,n,r,s){const i=(0,E.yZ)({extent:e,width:t}),a=function(e){const t=e.filter((e=>e.popupEnabled&&e.name&&e.queryable));return t.length?t.map((({name:e})=>e)).join():null}(new q({layer:this,scale:i}).visibleSublayers);if((0,d.Wi)(this.featureInfoUrl)||(0,d.Wi)(a))return Promise.resolve([]);if((0,d.Wi)(this.fetchFeatureInfoFunction)&&(0,d.Wi)(this.featureInfoFormat))return Promise.resolve([]);const o="1.3.0"===this.version?{I:r,J:s}:{x:r,y:s},l={query_layers:a,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:n,...o},u={...this.createExportImageParameters(e,t,n),...l},h=this._mixCustomParameters(u);return(0,d.pC)(this.fetchFeatureInfoFunction)?this.fetchFeatureInfoFunction(h):this._defaultFetchFeatureInfoFunction((0,g.fl)(this.featureInfoUrl,h))}findSublayerById(e){return this.allSublayers.find((t=>t.id===e))}findSublayerByName(e){return this.allSublayers.find((t=>t.name===e))}serviceSupportsSpatialReference(e){return(0,L.G)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some((t=>{const n=900913===t?M.Z.WebMercator:new M.Z({wkid:t});return(0,S.fS)(n,e)}))}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,g.qg)(e),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const n=new a.Z({title:this.title,content:t}),r=new i.Z({sourceLayer:this,popupTemplate:n});return Promise.resolve([r])}async _fetchService(e){if(!this.resourceInfo){const{path:t,query:n}=this.parsedUrl??{};n?.service&&(n.SERVICE=n.service,delete n.service),n?.request&&(n.REQUEST=n.request,delete n.request);const{data:r}=await(0,o.default)(t??"",{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...n,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=z(r)}if(this.parsedUrl){const e=new g.R9(this.parsedUrl.path),{httpsDomains:t}=s.Z.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const n in t)e[n.toLowerCase()]=t[n];return e}};function we(e,t,n){e=e??[];const r=new Map;e.every((e=>null==e.id))&&(e=(0,c.d9)(e)).forEach(((e,t)=>e.id=t));for(const s of e){const e=new Y;e.read(s,t),n&&!n.includes(e.name)&&(e.visible=!1),r.set(e.id,e)}const s=[];for(const t of e){const e=null!=t.id?r.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const n=r.get(t.parentLayerId);if(!n)continue;n.sublayers||(n.sublayers=new l.Z),n.sublayers.push(e)}else s.push(e)}return s}(0,r._)([(0,y.Cb)({readOnly:!0})],ve.prototype,"allSublayers",void 0),(0,r._)([(0,y.Cb)({json:{type:Object,write:!0}})],ve.prototype,"customParameters",void 0),(0,r._)([(0,y.Cb)({json:{type:Object,write:!0}})],ve.prototype,"customLayerParameters",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:!0}})],ve.prototype,"copyright",void 0),(0,r._)([(0,y.Cb)()],ve.prototype,"description",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],ve.prototype,"dimensions",void 0),(0,r._)([(0,y.Cb)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],ve.prototype,"fullExtent",void 0),(0,r._)([(0,_.r)(["web-document","portal-item"],"fullExtent",["extent"])],ve.prototype,"readFullExtentFromItemOrMap",null),(0,r._)([(0,w.c)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],ve.prototype,"writeFullExtent",null),(0,r._)([(0,y.Cb)()],ve.prototype,"fullExtents",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ve.prototype,"featureInfoFormat",null),(0,r._)([(0,y.Cb)({type:[String],readOnly:!0})],ve.prototype,"featureInfoFormats",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ve.prototype,"featureInfoUrl",void 0),(0,r._)([(0,y.Cb)()],ve.prototype,"fetchFeatureInfoFunction",void 0),(0,r._)([(0,y.Cb)({type:String,json:{origins:{"web-document":{default:"image/png",type:ye.jsonValues,read:{reader:ye.read,source:"format"},write:{writer:ye.write,target:"format"}}}}})],ve.prototype,"imageFormat",void 0),(0,r._)([(0,_.r)("imageFormat",["supportedImageFormatTypes"])],ve.prototype,"readImageFormat",null),(0,r._)([(0,y.Cb)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],ve.prototype,"imageMaxHeight",void 0),(0,r._)([(0,y.Cb)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],ve.prototype,"imageMaxWidth",void 0),(0,r._)([(0,y.Cb)()],ve.prototype,"imageTransparency",void 0),(0,r._)([(0,y.Cb)(j.rn)],ve.prototype,"legendEnabled",void 0),(0,r._)([(0,y.Cb)({type:["show","hide","hide-children"]})],ve.prototype,"listMode",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ve.prototype,"mapUrl",void 0),(0,r._)([(0,y.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],ve.prototype,"isReference",void 0),(0,r._)([(0,y.Cb)({type:["WMS"]})],ve.prototype,"operationalLayerType",void 0),(0,r._)([(0,y.Cb)()],ve.prototype,"resourceInfo",void 0),(0,r._)([(0,y.Cb)({type:M.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],ve.prototype,"spatialReference",void 0),(0,r._)([(0,_.r)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],ve.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,r._)([(0,y.Cb)({type:[b.z8],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],ve.prototype,"spatialReferences",void 0),(0,r._)([(0,w.c)(["web-document","portal-item"],"spatialReferences")],ve.prototype,"writeSpatialReferences",null),(0,r._)([(0,y.Cb)({type:l.Z.ofType(Y),json:{write:{target:"layers",overridePolicy(e,t,n){if(function(e,t){return e.some((e=>{for(const n in e)if((0,x.d)(e,n,null,t))return!0;return!1}))}(this.allSublayers,n))return{ignoreOrigin:!0}}}}})],ve.prototype,"sublayers",void 0),(0,r._)([(0,_.r)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],ve.prototype,"readSublayersFromItemOrMap",null),(0,r._)([(0,_.r)("service","sublayers",["layers"])],ve.prototype,"readSublayers",null),(0,r._)([(0,w.c)("sublayers",{layers:{type:[Y]},visibleLayers:{type:[String]}})],ve.prototype,"writeSublayers",null),(0,r._)([(0,y.Cb)({json:{read:!1},readOnly:!0,value:"wms"})],ve.prototype,"type",void 0),(0,r._)([(0,y.Cb)(j.HQ)],ve.prototype,"url",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ve.prototype,"version",void 0),ve=(0,r._)([(0,v.j)("esri.layers.WMSLayer")],ve);const xe=ve},34760:(e,t,n)=>{n.d(t,{Q:()=>y});var r=n(43697),s=n(92604),i=n(95330),a=n(5600),o=(n(67676),n(75215),n(52011)),l=n(46791),u=(n(80442),n(20102),n(26258),n(87538));const h=new l.Z,c=new WeakMap;function d(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function p(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:p(t,e%t):0}let m=0,f=0;function g(){const e=Date.now();for(const t of h)t.refreshInterval&&e-(c.get(t)??0)+5>=6e4*t.refreshInterval&&(c.set(t,e),t.refresh(e))}(0,u.EH)((()=>{const e=Date.now();let t=0;for(const n of h)t=p(Math.round(6e4*n.refreshInterval),t),n.refreshInterval?c.get(n)||c.set(n,e):c.delete(n);if(t!==f){if(f=t,clearInterval(m),0===f)return void(m=0);m=setInterval(g,f)}}));const y=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,i.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){d(e)&&h.push(e)}(this)}),(()=>{}))}destroy(){d(this)&&h.includes(this)&&h.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,i.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{s.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,r._)([(0,a.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,r._)([(0,a.Cb)()],t.prototype,"refreshParameters",null),t=(0,r._)([(0,o.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(43697),s=n(92835),i=n(84552),a=n(5600),o=(n(67676),n(75215),n(71715)),l=n(52011),u=n(35671),h=n(30547),c=n(78981);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const r=n.timeOffset,s=c.v.fromJSON(n.timeOffsetUnits);return r&&s?new i.Z({value:r,unit:s}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r._)([(0,a.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,r._)([(0,a.Cb)({type:i.Z})],t.prototype,"timeOffset",void 0),(0,r._)([(0,o.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,r._)([(0,a.Cb)({value:null,type:h.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,r._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},52162:(e,t,n)=>{n.d(t,{A:()=>s});const r=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function s(e){return null!=e&&r.some((([t,n])=>e>=t&&e<=n))}},30547:(e,t,n)=>{n.d(t,{Z:()=>_});var r,s=n(43697),i=n(92835),a=n(84552),o=n(96674),l=n(22974),u=n(70586),h=n(5600),c=(n(75215),n(71715)),d=n(52011),p=n(30556);n(67676);let m=r=class extends o.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new r({respectsDaylightSaving:e,timezone:t})}};(0,s._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"respectsDaylightSaving",void 0),(0,s._)([(0,c.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],m.prototype,"readRespectsDaylightSaving",null),(0,s._)([(0,h.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],m.prototype,"timezone",void 0),m=r=(0,s._)([(0,d.j)("esri.layers.support.TimeReference")],m);const f=m;var g,y=n(78981);let b=g=class extends o.wq{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const n=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new i.Z({start:n,end:r})}writeFullTimeExtent(e,t){e&&(0,u.pC)(e.start)&&(0,u.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new a.Z({value:t.timeInterval,unit:y.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new a.Z({value:t.defaultTimeInterval,unit:y.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const n=e.toJSON();t.timeInterval=n.value,t.timeIntervalUnits=n.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:n,interval:r,startField:s,timeReference:i,fullTimeExtent:a,trackIdField:o,useTime:u}=this;return new g({cumulative:e,endField:t,hasLiveData:n,interval:r,startField:s,timeReference:(0,l.d9)(i),fullTimeExtent:(0,l.d9)(a),trackIdField:o,useTime:u})}};(0,s._)([(0,h.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],b.prototype,"cumulative",void 0),(0,s._)([(0,h.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],b.prototype,"endField",void 0),(0,s._)([(0,h.Cb)({type:i.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"fullTimeExtent",void 0),(0,s._)([(0,c.r)("fullTimeExtent",["timeExtent"])],b.prototype,"readFullTimeExtent",null),(0,s._)([(0,p.c)("fullTimeExtent")],b.prototype,"writeFullTimeExtent",null),(0,s._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"hasLiveData",void 0),(0,s._)([(0,h.Cb)({type:a.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"interval",void 0),(0,s._)([(0,c.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],b.prototype,"readInterval",null),(0,s._)([(0,p.c)("interval")],b.prototype,"writeInterval",null),(0,s._)([(0,h.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],b.prototype,"startField",void 0),(0,s._)([(0,h.Cb)({type:f,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"timeReference",void 0),(0,s._)([(0,h.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"trackIdField",void 0),(0,s._)([(0,h.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],b.prototype,"useTime",void 0),b=g=(0,s._)([(0,d.j)("esri.layers.support.TimeInfo")],b);const _=b},78981:(e,t,n)=>{n.d(t,{v:()=>r});const r=(0,n(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8383,5732,661],{38171:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(43697),s=n(66577),i=n(51773),a=n(9790),o=n(2368),l=n(96674),u=n(70586),h=n(99001),c=n(5600),d=(n(67676),n(75215),n(52011)),p=n(33955);function m(e){if(!(0,u.pC)(e))return null;const t={};for(const n in e){const r=e[n];r&&(t[n]=r.toJSON())}return 0!==Object.keys(t).length?t:null}let f=class extends((0,o.J)(l.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,h.D)(),configurable:!0})}normalizeCtorArgs(e,t,n,r){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:n,popupTemplate:r}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&(0,u.pC)(t.defaultPopupTemplate))return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const n=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",n,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:m(this.aggregateGeometries),geometry:(0,u.pC)(this.geometry)?this.geometry.toJSON():null,symbol:(0,u.pC)(this.symbol)?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(){(0,u.pC)(this.geometry)&&"mesh"===this.geometry.type&&this._notifyLayer("transform",this.geometry.transform,this.geometry.transform)}_notifyLayer(e,t,n,r){if(!this.layer||!("graphicChanged"in this.layer))return;const s={graphic:this,property:e,oldValue:t,newValue:n};"attributes"===e&&(s.attributeName=r),this.layer.graphicChanged(s)}};(0,r._)([(0,c.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const n in e){const r=(0,p.im)(e[n]);r&&(t[n]=r)}return 0!==Object.keys(t).length?t:null}}})],f.prototype,"aggregateGeometries",null),(0,r._)([(0,c.Cb)({value:null})],f.prototype,"attributes",null),(0,r._)([(0,c.Cb)({value:null,types:s.qM,json:{read:p.im}})],f.prototype,"geometry",null),(0,r._)([(0,c.Cb)({type:Boolean})],f.prototype,"isAggregate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],f.prototype,"layer",void 0),(0,r._)([(0,c.Cb)({type:i.Z})],f.prototype,"popupTemplate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],f.prototype,"sourceLayer",void 0),(0,r._)([(0,c.Cb)({value:null,types:a.LB})],f.prototype,"symbol",null),(0,r._)([(0,c.Cb)({type:Boolean,value:!0})],f.prototype,"visible",null),f=(0,r._)([(0,d.j)("esri.Graphic")],f),(f||(f={})).generateUID=h.D;const g=f},92835:(e,t,n)=>{n.d(t,{Z:()=>f});var r,s=n(43697),i=n(96674),a=n(70586),o=n(35463),l=n(5600),u=(n(67676),n(75215),n(71715)),h=n(52011),c=n(30556);let d=r=class extends i.wq{constructor(e){super(e),this.end=null,this.start=null}static get allTime(){return p}static get empty(){return m}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=(0,a.pC)(this.start)?this.start.getTime():this.start,n=(0,a.pC)(this.end)?this.end.getTime():this.end,r=(0,a.pC)(e.start)?e.start.getTime():e.start,s=(0,a.pC)(e.end)?e.end.getTime():e.end;return t===r&&n===s}expandTo(e){if(this.isEmpty||this.isAllTime)return this.clone();const t=(0,a.yw)(this.start,(t=>(0,o.JE)(t,e))),n=(0,a.yw)(this.end,(t=>{const n=(0,o.JE)(t,e);return t.getTime()===n.getTime()?n:(0,o.Nm)(n,1,e)}));return new r({start:t,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=(0,a.R2)(this.start,-1/0,(e=>e.getTime())),n=(0,a.R2)(this.end,1/0,(e=>e.getTime())),s=(0,a.R2)(e.start,-1/0,(e=>e.getTime())),i=(0,a.R2)(e.end,1/0,(e=>e.getTime()));let o,l;if(s>=t&&s<=n?o=s:t>=s&&t<=i&&(o=t),n>=s&&n<=i?l=n:i>=t&&i<=n&&(l=i),null!=o&&null!=l&&!isNaN(o)&&!isNaN(l)){const e=new r;return e.start=o===-1/0?null:new Date(o),e.end=l===1/0?null:new Date(l),e}return r.empty}offset(e,t){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:s,end:i}=this;return(0,a.pC)(s)&&(n.start=(0,o.Nm)(s,e,t)),(0,a.pC)(i)&&(n.end=(0,o.Nm)(i,e,t)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=(0,a.pC)(this.start)&&(0,a.pC)(e.start)?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,n=(0,a.pC)(this.end)&&(0,a.pC)(e.end)?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:n})}};(0,s._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,s._)([(0,u.r)("end")],d.prototype,"readEnd",null),(0,s._)([(0,c.c)("end")],d.prototype,"writeEnd",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,s._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,s._)([(0,u.r)("start")],d.prototype,"readStart",null),(0,s._)([(0,c.c)("start")],d.prototype,"writeStart",null),d=r=(0,s._)([(0,h.j)("esri.TimeExtent")],d);const p=new d,m=new d({start:void 0,end:void 0}),f=d},84552:(e,t,n)=>{n.d(t,{Z:()=>c});var r,s=n(43697),i=n(96674),a=n(35463),o=n(5600),l=(n(67676),n(75215),n(52011)),u=n(78981);let h=r=class extends i.wq{constructor(e){super(e),this.value=0,this.unit="milliseconds"}toMilliseconds(){return(0,a.rJ)(this.value,this.unit,"milliseconds")}clone(){return new r({value:this.value,unit:this.unit})}};(0,s._)([(0,o.Cb)({type:Number,json:{write:!0},nonNullable:!0})],h.prototype,"value",void 0),(0,s._)([(0,o.Cb)({type:u.v.apiValues,json:{type:u.v.jsonValues,read:u.v.read,write:u.v.write},nonNullable:!0})],h.prototype,"unit",void 0),h=r=(0,s._)([(0,l.j)("esri.TimeInterval")],h);const c=h},5732:(e,t,n)=>{n.d(t,{a:()=>i,c:()=>r,g:()=>s});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},52138:(e,t,n)=>{n.d(t,{a:()=>l,d:()=>m,e:()=>d,f:()=>p,g:()=>b,h:()=>w,i:()=>a,j:()=>v,k:()=>c,m:()=>u,s:()=>i,t:()=>o,v:()=>h,x:()=>x,y:()=>f});var r=n(65617),s=n(46851);function i(e,t,n,r,s,i,a,o,l,u,h,c,d,p,m,f,g){return e[0]=t,e[1]=n,e[2]=r,e[3]=s,e[4]=i,e[5]=a,e[6]=o,e[7]=l,e[8]=u,e[9]=h,e[10]=c,e[11]=d,e[12]=p,e[13]=m,e[14]=f,e[15]=g,e}function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function o(e,t){if(e===t){const n=t[1],r=t[2],s=t[3],i=t[6],a=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=i,e[11]=t[14],e[12]=s,e[13]=a,e[14]=o}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function l(e,t){const n=t[0],r=t[1],s=t[2],i=t[3],a=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],p=t[11],m=t[12],f=t[13],g=t[14],y=t[15],b=n*o-r*a,_=n*l-s*a,v=n*u-i*a,w=r*l-s*o,x=r*u-i*o,C=s*u-i*l,M=h*f-c*m,E=h*g-d*m,S=h*y-p*m,T=c*g-d*f,I=c*y-p*f,O=d*y-p*g;let F=b*O-_*I+v*T+w*S-x*E+C*M;return F?(F=1/F,e[0]=(o*O-l*I+u*T)*F,e[1]=(s*I-r*O-i*T)*F,e[2]=(f*C-g*x+y*w)*F,e[3]=(d*x-c*C-p*w)*F,e[4]=(l*S-a*O-u*E)*F,e[5]=(n*O-s*S+i*E)*F,e[6]=(g*v-m*C-y*_)*F,e[7]=(h*C-d*v+p*_)*F,e[8]=(a*I-o*S+u*M)*F,e[9]=(r*S-n*I-i*M)*F,e[10]=(m*x-f*v+y*b)*F,e[11]=(c*v-h*x-p*b)*F,e[12]=(o*E-a*T-l*M)*F,e[13]=(n*T-r*E+s*M)*F,e[14]=(f*_-m*w-g*b)*F,e[15]=(h*w-c*_+d*b)*F,e):null}function u(e,t,n){const r=t[0],s=t[1],i=t[2],a=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=t[8],d=t[9],p=t[10],m=t[11],f=t[12],g=t[13],y=t[14],b=t[15];let _=n[0],v=n[1],w=n[2],x=n[3];return e[0]=_*r+v*o+w*c+x*f,e[1]=_*s+v*l+w*d+x*g,e[2]=_*i+v*u+w*p+x*y,e[3]=_*a+v*h+w*m+x*b,_=n[4],v=n[5],w=n[6],x=n[7],e[4]=_*r+v*o+w*c+x*f,e[5]=_*s+v*l+w*d+x*g,e[6]=_*i+v*u+w*p+x*y,e[7]=_*a+v*h+w*m+x*b,_=n[8],v=n[9],w=n[10],x=n[11],e[8]=_*r+v*o+w*c+x*f,e[9]=_*s+v*l+w*d+x*g,e[10]=_*i+v*u+w*p+x*y,e[11]=_*a+v*h+w*m+x*b,_=n[12],v=n[13],w=n[14],x=n[15],e[12]=_*r+v*o+w*c+x*f,e[13]=_*s+v*l+w*d+x*g,e[14]=_*i+v*u+w*p+x*y,e[15]=_*a+v*h+w*m+x*b,e}function h(e,t,n){const r=n[0],s=n[1],i=n[2];if(t===e)e[12]=t[0]*r+t[4]*s+t[8]*i+t[12],e[13]=t[1]*r+t[5]*s+t[9]*i+t[13],e[14]=t[2]*r+t[6]*s+t[10]*i+t[14],e[15]=t[3]*r+t[7]*s+t[11]*i+t[15];else{const n=t[0],a=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7],p=t[8],m=t[9],f=t[10],g=t[11];e[0]=n,e[1]=a,e[2]=o,e[3]=l,e[4]=u,e[5]=h,e[6]=c,e[7]=d,e[8]=p,e[9]=m,e[10]=f,e[11]=g,e[12]=n*r+u*s+p*i+t[12],e[13]=a*r+h*s+m*i+t[13],e[14]=o*r+c*s+f*i+t[14],e[15]=l*r+d*s+g*i+t[15]}return e}function c(e,t,n){const r=n[0],s=n[1],i=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*s,e[5]=t[5]*s,e[6]=t[6]*s,e[7]=t[7]*s,e[8]=t[8]*i,e[9]=t[9]*i,e[10]=t[10]*i,e[11]=t[11]*i,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function d(e,t,n,r){let i,a,o,l,u,h,c,d,p,m,f,g,y,b,_,v,w,x,C,M,E,S,T,I,O=r[0],F=r[1],N=r[2],A=Math.sqrt(O*O+F*F+N*N);return A<(0,s.g)()?null:(A=1/A,O*=A,F*=A,N*=A,i=Math.sin(n),a=Math.cos(n),o=1-a,l=t[0],u=t[1],h=t[2],c=t[3],d=t[4],p=t[5],m=t[6],f=t[7],g=t[8],y=t[9],b=t[10],_=t[11],v=O*O*o+a,w=F*O*o+N*i,x=N*O*o-F*i,C=O*F*o-N*i,M=F*F*o+a,E=N*F*o+O*i,S=O*N*o+F*i,T=F*N*o-O*i,I=N*N*o+a,e[0]=l*v+d*w+g*x,e[1]=u*v+p*w+y*x,e[2]=h*v+m*w+b*x,e[3]=c*v+f*w+_*x,e[4]=l*C+d*M+g*E,e[5]=u*C+p*M+y*E,e[6]=h*C+m*M+b*E,e[7]=c*C+f*M+_*E,e[8]=l*S+d*T+g*I,e[9]=u*S+p*T+y*I,e[10]=h*S+m*T+b*I,e[11]=c*S+f*T+_*I,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function p(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function m(e,t,n){if(0===t)return a(e);let r,i,o,l=n[0],u=n[1],h=n[2],c=Math.sqrt(l*l+u*u+h*h);return c<(0,s.g)()?null:(c=1/c,l*=c,u*=c,h*=c,r=Math.sin(t),i=Math.cos(t),o=1-i,e[0]=l*l*o+i,e[1]=u*l*o+h*r,e[2]=h*l*o-u*r,e[3]=0,e[4]=l*u*o-h*r,e[5]=u*u*o+i,e[6]=h*u*o+l*r,e[7]=0,e[8]=l*h*o+u*r,e[9]=u*h*o-l*r,e[10]=h*h*o+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function f(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function g(e,t,n){const r=t[0],s=t[1],i=t[2],a=t[3],o=r+r,l=s+s,u=i+i,h=r*o,c=r*l,d=r*u,p=s*l,m=s*u,f=i*u,g=a*o,y=a*l,b=a*u;return e[0]=1-(p+f),e[1]=c+b,e[2]=d-y,e[3]=0,e[4]=c-b,e[5]=1-(h+f),e[6]=m+g,e[7]=0,e[8]=d+y,e[9]=m-g,e[10]=1-(h+p),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}const y=(0,r.c)();function b(e,t,n,r){const s=t[0],i=t[1],a=t[2],o=t[3],l=s+s,u=i+i,h=a+a,c=s*l,d=s*u,p=s*h,m=i*u,f=i*h,g=a*h,y=o*l,b=o*u,_=o*h,v=r[0],w=r[1],x=r[2];return e[0]=(1-(m+g))*v,e[1]=(d+_)*v,e[2]=(p-b)*v,e[3]=0,e[4]=(d-_)*w,e[5]=(1-(c+g))*w,e[6]=(f+y)*w,e[7]=0,e[8]=(p+b)*x,e[9]=(f-y)*x,e[10]=(1-(c+m))*x,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function _(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}function v(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function w(e,t){if(e===t)return!0;const n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],l=e[5],u=e[6],h=e[7],c=e[8],d=e[9],p=e[10],m=e[11],f=e[12],g=e[13],y=e[14],b=e[15],_=t[0],v=t[1],w=t[2],x=t[3],C=t[4],M=t[5],E=t[6],S=t[7],T=t[8],I=t[9],O=t[10],F=t[11],N=t[12],A=t[13],D=t[14],R=t[15],L=(0,s.g)();return Math.abs(n-_)<=L*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(r-v)<=L*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(i-w)<=L*Math.max(1,Math.abs(i),Math.abs(w))&&Math.abs(a-x)<=L*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(o-C)<=L*Math.max(1,Math.abs(o),Math.abs(C))&&Math.abs(l-M)<=L*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(u-E)<=L*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(h-S)<=L*Math.max(1,Math.abs(h),Math.abs(S))&&Math.abs(c-T)<=L*Math.max(1,Math.abs(c),Math.abs(T))&&Math.abs(d-I)<=L*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(p-O)<=L*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(m-F)<=L*Math.max(1,Math.abs(m),Math.abs(F))&&Math.abs(f-N)<=L*Math.max(1,Math.abs(f),Math.abs(N))&&Math.abs(g-A)<=L*Math.max(1,Math.abs(g),Math.abs(A))&&Math.abs(y-D)<=L*Math.max(1,Math.abs(y),Math.abs(D))&&Math.abs(b-R)<=L*Math.max(1,Math.abs(b),Math.abs(R))}function x(e){const t=(0,s.g)(),n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],l=e[6],u=e[8],h=e[9],c=e[10];return Math.abs(1-(n*n+a*a+u*u))<=t&&Math.abs(1-(r*r+o*o+h*h))<=t&&Math.abs(1-(i*i+l*l+c*c))<=t}const C=u,M=_;Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},set:i,identity:a,transpose:o,invert:l,adjoint:function(e,t){const n=t[0],r=t[1],s=t[2],i=t[3],a=t[4],o=t[5],l=t[6],u=t[7],h=t[8],c=t[9],d=t[10],p=t[11],m=t[12],f=t[13],g=t[14],y=t[15];return e[0]=o*(d*y-p*g)-c*(l*y-u*g)+f*(l*p-u*d),e[1]=-(r*(d*y-p*g)-c*(s*y-i*g)+f*(s*p-i*d)),e[2]=r*(l*y-u*g)-o*(s*y-i*g)+f*(s*u-i*l),e[3]=-(r*(l*p-u*d)-o*(s*p-i*d)+c*(s*u-i*l)),e[4]=-(a*(d*y-p*g)-h*(l*y-u*g)+m*(l*p-u*d)),e[5]=n*(d*y-p*g)-h*(s*y-i*g)+m*(s*p-i*d),e[6]=-(n*(l*y-u*g)-a*(s*y-i*g)+m*(s*u-i*l)),e[7]=n*(l*p-u*d)-a*(s*p-i*d)+h*(s*u-i*l),e[8]=a*(c*y-p*f)-h*(o*y-u*f)+m*(o*p-u*c),e[9]=-(n*(c*y-p*f)-h*(r*y-i*f)+m*(r*p-i*c)),e[10]=n*(o*y-u*f)-a*(r*y-i*f)+m*(r*u-i*o),e[11]=-(n*(o*p-u*c)-a*(r*p-i*c)+h*(r*u-i*o)),e[12]=-(a*(c*g-d*f)-h*(o*g-l*f)+m*(o*d-l*c)),e[13]=n*(c*g-d*f)-h*(r*g-s*f)+m*(r*d-s*c),e[14]=-(n*(o*g-l*f)-a*(r*g-s*f)+m*(r*l-s*o)),e[15]=n*(o*d-l*c)-a*(r*d-s*c)+h*(r*l-s*o),e},determinant:function(e){const t=e[0],n=e[1],r=e[2],s=e[3],i=e[4],a=e[5],o=e[6],l=e[7],u=e[8],h=e[9],c=e[10],d=e[11],p=e[12],m=e[13],f=e[14],g=e[15];return(t*a-n*i)*(c*g-d*f)-(t*o-r*i)*(h*g-d*m)+(t*l-s*i)*(h*f-c*m)+(n*o-r*a)*(u*g-d*p)-(n*l-s*a)*(u*f-c*p)+(r*l-s*o)*(u*m-h*p)},multiply:u,translate:h,scale:c,rotate:d,rotateX:function(e,t,n){const r=Math.sin(n),s=Math.cos(n),i=t[4],a=t[5],o=t[6],l=t[7],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=i*s+u*r,e[5]=a*s+h*r,e[6]=o*s+c*r,e[7]=l*s+d*r,e[8]=u*s-i*r,e[9]=h*s-a*r,e[10]=c*s-o*r,e[11]=d*s-l*r,e},rotateY:function(e,t,n){const r=Math.sin(n),s=Math.cos(n),i=t[0],a=t[1],o=t[2],l=t[3],u=t[8],h=t[9],c=t[10],d=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s-u*r,e[1]=a*s-h*r,e[2]=o*s-c*r,e[3]=l*s-d*r,e[8]=i*r+u*s,e[9]=a*r+h*s,e[10]=o*r+c*s,e[11]=l*r+d*s,e},rotateZ:function(e,t,n){const r=Math.sin(n),s=Math.cos(n),i=t[0],a=t[1],o=t[2],l=t[3],u=t[4],h=t[5],c=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=i*s+u*r,e[1]=a*s+h*r,e[2]=o*s+c*r,e[3]=l*s+d*r,e[4]=u*s-i*r,e[5]=h*s-a*r,e[6]=c*s-o*r,e[7]=d*s-l*r,e},fromTranslation:p,fromScaling:function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotation:m,fromXRotation:f,fromYRotation:function(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromRotationTranslation:g,fromQuat2:function(e,t){const n=y,r=-t[0],s=-t[1],i=-t[2],a=t[3],o=t[4],l=t[5],u=t[6],h=t[7],c=r*r+s*s+i*i+a*a;return c>0?(n[0]=2*(o*a+h*r+l*i-u*s)/c,n[1]=2*(l*a+h*s+u*r-o*i)/c,n[2]=2*(u*a+h*i+o*s-l*r)/c):(n[0]=2*(o*a+h*r+l*i-u*s),n[1]=2*(l*a+h*s+u*r-o*i),n[2]=2*(u*a+h*i+o*s-l*r)),g(e,t,n),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},getScaling:function(e,t){const n=t[0],r=t[1],s=t[2],i=t[4],a=t[5],o=t[6],l=t[8],u=t[9],h=t[10];return e[0]=Math.sqrt(n*n+r*r+s*s),e[1]=Math.sqrt(i*i+a*a+o*o),e[2]=Math.sqrt(l*l+u*u+h*h),e},getRotation:function(e,t){const n=t[0]+t[5]+t[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),e[3]=.25*r,e[0]=(t[6]-t[9])/r,e[1]=(t[8]-t[2])/r,e[2]=(t[1]-t[4])/r):t[0]>t[5]&&t[0]>t[10]?(r=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/r,e[0]=.25*r,e[1]=(t[1]+t[4])/r,e[2]=(t[8]+t[2])/r):t[5]>t[10]?(r=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/r,e[0]=(t[1]+t[4])/r,e[1]=.25*r,e[2]=(t[6]+t[9])/r):(r=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/r,e[0]=(t[8]+t[2])/r,e[1]=(t[6]+t[9])/r,e[2]=.25*r),e},fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(e,t,n,r,s){const i=t[0],a=t[1],o=t[2],l=t[3],u=i+i,h=a+a,c=o+o,d=i*u,p=i*h,m=i*c,f=a*h,g=a*c,y=o*c,b=l*u,_=l*h,v=l*c,w=r[0],x=r[1],C=r[2],M=s[0],E=s[1],S=s[2],T=(1-(f+y))*w,I=(p+v)*w,O=(m-_)*w,F=(p-v)*x,N=(1-(d+y))*x,A=(g+b)*x,D=(m+_)*C,R=(g-b)*C,L=(1-(d+f))*C;return e[0]=T,e[1]=I,e[2]=O,e[3]=0,e[4]=F,e[5]=N,e[6]=A,e[7]=0,e[8]=D,e[9]=R,e[10]=L,e[11]=0,e[12]=n[0]+M-(T*M+F*E+D*S),e[13]=n[1]+E-(I*M+N*E+R*S),e[14]=n[2]+S-(O*M+A*E+L*S),e[15]=1,e},fromQuat:function(e,t){const n=t[0],r=t[1],s=t[2],i=t[3],a=n+n,o=r+r,l=s+s,u=n*a,h=r*a,c=r*o,d=s*a,p=s*o,m=s*l,f=i*a,g=i*o,y=i*l;return e[0]=1-c-m,e[1]=h+y,e[2]=d-g,e[3]=0,e[4]=h-y,e[5]=1-u-m,e[6]=p+f,e[7]=0,e[8]=d+g,e[9]=p-f,e[10]=1-u-c,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},frustum:function(e,t,n,r,s,i,a){const o=1/(n-t),l=1/(s-r),u=1/(i-a);return e[0]=2*i*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*i*l,e[6]=0,e[7]=0,e[8]=(n+t)*o,e[9]=(s+r)*l,e[10]=(a+i)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*i*2*u,e[15]=0,e},perspective:function(e,t,n,r,s){const i=1/Math.tan(t/2);let a;return e[0]=i/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=s&&s!==1/0?(a=1/(r-s),e[10]=(s+r)*a,e[14]=2*s*r*a):(e[10]=-1,e[14]=-2*r),e},perspectiveFromFieldOfView:function(e,t,n,r){const s=Math.tan(t.upDegrees*Math.PI/180),i=Math.tan(t.downDegrees*Math.PI/180),a=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(a+o),u=2/(s+i);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-(a-o)*l*.5,e[9]=(s-i)*u*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e},ortho:function(e,t,n,r,s,i,a){const o=1/(t-n),l=1/(r-s),u=1/(i-a);return e[0]=-2*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+n)*o,e[13]=(s+r)*l,e[14]=(a+i)*u,e[15]=1,e},lookAt:function(e,t,n,r){let i,o,l,u,h,c,d,p,m,f;const g=t[0],y=t[1],b=t[2],_=r[0],v=r[1],w=r[2],x=n[0],C=n[1],M=n[2],E=(0,s.g)();return Math.abs(g-x)<E&&Math.abs(y-C)<E&&Math.abs(b-M)<E?a(e):(d=g-x,p=y-C,m=b-M,f=1/Math.sqrt(d*d+p*p+m*m),d*=f,p*=f,m*=f,i=v*m-w*p,o=w*d-_*m,l=_*p-v*d,f=Math.sqrt(i*i+o*o+l*l),f?(f=1/f,i*=f,o*=f,l*=f):(i=0,o=0,l=0),u=p*l-m*o,h=m*i-d*l,c=d*o-p*i,f=Math.sqrt(u*u+h*h+c*c),f?(f=1/f,u*=f,h*=f,c*=f):(u=0,h=0,c=0),e[0]=i,e[1]=u,e[2]=d,e[3]=0,e[4]=o,e[5]=h,e[6]=p,e[7]=0,e[8]=l,e[9]=c,e[10]=m,e[11]=0,e[12]=-(i*g+o*y+l*b),e[13]=-(u*g+h*y+c*b),e[14]=-(d*g+p*y+m*b),e[15]=1,e)},targetTo:function(e,t,n,r){const s=t[0],i=t[1],a=t[2],o=r[0],l=r[1],u=r[2];let h=s-n[0],c=i-n[1],d=a-n[2],p=h*h+c*c+d*d;p>0&&(p=1/Math.sqrt(p),h*=p,c*=p,d*=p);let m=l*d-u*c,f=u*h-o*d,g=o*c-l*h;return p=m*m+f*f+g*g,p>0&&(p=1/Math.sqrt(p),m*=p,f*=p,g*=p),e[0]=m,e[1]=f,e[2]=g,e[3]=0,e[4]=c*g-d*f,e[5]=d*m-h*g,e[6]=h*f-c*m,e[7]=0,e[8]=h,e[9]=c,e[10]=d,e[11]=0,e[12]=s,e[13]=i,e[14]=a,e[15]=1,e},str:function(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"},frob:function(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2+e[3]**2+e[4]**2+e[5]**2+e[6]**2+e[7]**2+e[8]**2+e[9]**2+e[10]**2+e[11]**2+e[12]**2+e[13]**2+e[14]**2+e[15]**2)},add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e},subtract:_,multiplyScalar:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e},multiplyScalarAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e[9]=t[9]+n[9]*r,e[10]=t[10]+n[10]*r,e[11]=t[11]+n[11]*r,e[12]=t[12]+n[12]*r,e[13]=t[13]+n[13]*r,e[14]=t[14]+n[14]*r,e[15]=t[15]+n[15]*r,e},exactEquals:v,equals:w,isOrthoNormal:x,mul:C,sub:M},Symbol.toStringTag,{value:"Module"}))},2368:(e,t,n)=>{n.d(t,{J:()=>h,j:()=>c});var r=n(43697),s=n(15923),i=(n(80442),n(22974)),a=(n(92604),n(70586)),o=n(31263),l=n(1153),u=n(52011);const h=e=>{let t=class extends e{clone(){const e=(0,a.s3)((0,l.vw)(this),"unable to clone instance of non-accessor class"),t=e.metadatas,n=e.store,r={},s=new Map;for(const e in t){const a=t[e],l=n?.originOf(e),u=a.clonable;if(a.readOnly||!1===u||l!==o.s3.USER&&l!==o.s3.DEFAULTS&&l!==o.s3.WEB_MAP&&l!==o.s3.WEB_SCENE)continue;const h=this[e];let c=null;c="function"==typeof u?u(h):"reference"===u?h:(0,i.Vo)(h),null!=h&&null==c||(l===o.s3.DEFAULTS?s.set(e,c):r[e]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(s.size){const e=(0,l.vw)(u)?.store;if(e)for(const[t,n]of s)e.set(t,n,o.s3.DEFAULTS)}return u}};return t=(0,r._)([(0,u.j)("esri.core.Clonable")],t),t};let c=class extends(h(s.Z)){};c=(0,r._)([(0,u.j)("esri.core.Clonable")],c)},46791:(e,t,n)=>{n.d(t,{Z:()=>F});var r,s=n(43697),i=n(3894),a=n(32448),o=n(22974),l=n(70586),u=n(71143);!function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"}(r||(r={}));var h,c=n(1654),d=n(5600),p=n(75215),m=n(52421),f=n(52011),g=n(58971),y=n(10661);const b=new u.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(e){this.defaultPrevented=!1,this.item=e}},void 0,(e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1})),_=()=>{};function v(e){return e?e instanceof O?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function w(e){if(e&&e.length)return e[0]}function x(e,t,n,r){const s=Math.min(e.length-n,t.length-r);let i=0;for(;i<s&&e[n+i]===t[r+i];)i++;return i}function C(e,t,n,r){t&&t.forEach(((t,s,i)=>{e.push(t),C(e,n.call(r,t,s,i),n,r)}))}const M=new Set,E=new Set,S=new Set,T=new Map;let I=0,O=h=class extends a.Z.EventedAccessor{constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new y.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:I++})}static isCollection(e){return null!=e&&e instanceof h}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof h?{items:e}:e:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,g.it)(this._observable),this._items}set items(e){this._emitBeforeChanges(r.ADD)||(this._splice(0,this.length,v(e)),this._emitAfterChanges(r.ADD))}hasEventListener(e){return"change"===e?this._chgListeners.length>0:this._emitter.hasEventListener(e)}on(e,t){if("change"===e){const e=this._chgListeners,n={removed:!1,callback:t};return e.push(n),this._notifications&&this._notifications.push({listeners:e.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=_,n.removed=!0,e.splice(e.indexOf(n),1)}}}return this._emitter.on(e,t)}once(e,t){const n=this.on(e,t);return{remove(){n.remove()}}}add(e,t){if((0,g.it)(this._observable),this._emitBeforeChanges(r.ADD))return this;const n=this.getNextIndex(t??null);return this._splice(n,0,[e]),this._emitAfterChanges(r.ADD),this}addMany(e,t=this._items.length){if((0,g.it)(this._observable),!e||!e.length)return this;if(this._emitBeforeChanges(r.ADD))return this;const n=this.getNextIndex(t);return this._splice(n,0,v(e)),this._emitAfterChanges(r.ADD),this}at(e){if((0,g.it)(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return[];const e=this._splice(0,this.length)||[];return this._emitAfterChanges(r.REMOVE),e}clone(){return(0,g.it)(this._observable),this._createNewInstance({items:this._items.map(o.d9)})}concat(...e){(0,g.it)(this._observable);const t=e.map(v);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const n=(0,l.j0)(this._splice(0,this.length)),s=n.length;for(let r=0;r<s;r++)e.call(t,n[r],r,n);this._emitAfterChanges(r.REMOVE)}every(e,t){return(0,g.it)(this._observable),this._items.every(e,t)}filter(e,t){let n;return(0,g.it)(this._observable),n=2===arguments.length?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:n})}find(e,t){return(0,g.it)(this._observable),this._items.find(e,t)}findIndex(e,t){return(0,g.it)(this._observable),this._items.findIndex(e,t)}flatten(e,t){(0,g.it)(this._observable);const n=[];return C(n,this,e,t),new h(n)}forEach(e,t){return(0,g.it)(this._observable),this._items.forEach(e,t)}getItemAt(e){return(0,g.it)(this._observable),this._items[e]}getNextIndex(e){(0,g.it)(this._observable);const t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return(0,g.it)(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return(0,g.it)(this._observable),this._items.indexOf(e,t)}join(e=","){return(0,g.it)(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return(0,g.it)(this._observable),this._items.lastIndexOf(e,t)}map(e,t){(0,g.it)(this._observable);const n=this._items.map(e,t);return new h({items:n})}reorder(e,t=this.length-1){(0,g.it)(this._observable);const n=this.indexOf(e);if(-1!==n){if(t<0?t=0:t>=this.length&&(t=this.length-1),n!==t){if(this._emitBeforeChanges(r.MOVE))return e;this._splice(n,1),this._splice(t,0,[e]),this._emitAfterChanges(r.MOVE)}return e}}pop(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=w(this._splice(this.length-1,1));return this._emitAfterChanges(r.REMOVE),e}push(...e){return(0,g.it)(this._observable),this._emitBeforeChanges(r.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(r.ADD)),this.length}reduce(e,t){(0,g.it)(this._observable);const n=this._items;return 2===arguments.length?n.reduce(e,t):n.reduce(e)}reduceRight(e,t){(0,g.it)(this._observable);const n=this._items;return 2===arguments.length?n.reduceRight(e,t):n.reduceRight(e)}remove(e){return(0,g.it)(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if((0,g.it)(this._observable),e<0||e>=this.length||this._emitBeforeChanges(r.REMOVE))return;const t=w(this._splice(e,1));return this._emitAfterChanges(r.REMOVE),t}removeMany(e){if((0,g.it)(this._observable),!e||!e.length||this._emitBeforeChanges(r.REMOVE))return[];const t=e instanceof h?e.toArray():e,n=this._items,s=[],i=t.length;for(let e=0;e<i;e++){const r=t[e],i=n.indexOf(r);if(i>-1){const r=1+x(t,n,e+1,i+1),a=this._splice(i,r);a&&a.length>0&&s.push.apply(s,a),e+=r-1}}return this._emitAfterChanges(r.REMOVE),s}reverse(){if((0,g.it)(this._observable),this._emitBeforeChanges(r.MOVE))return this;const e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(r.MOVE),this}shift(){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(r.REMOVE))return;const e=w(this._splice(0,1));return this._emitAfterChanges(r.REMOVE),e}slice(e=0,t=this.length){return(0,g.it)(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return(0,g.it)(this._observable),this._items.some(e,t)}sort(e){if((0,g.it)(this._observable),!this.length||this._emitBeforeChanges(r.MOVE))return this;const t=(0,l.j0)(this._splice(0,this.length));return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(r.MOVE),this}splice(e,t,...n){(0,g.it)(this._observable);const s=(t?r.REMOVE:0)|(n.length?r.ADD:0);if(this._emitBeforeChanges(s))return[];const i=this._splice(e,t,n)||[];return this._emitAfterChanges(s),i}toArray(){return(0,g.it)(this._observable),this._items.slice()}toJSON(){return(0,g.it)(this._observable),this.toArray()}toLocaleString(){return(0,g.it)(this._observable),this._items.toLocaleString()}toString(){return(0,g.it)(this._observable),this._items.toString()}unshift(...e){return(0,g.it)(this._observable),!e.length||this._emitBeforeChanges(r.ADD)||(this._splice(0,0,e),this._emitAfterChanges(r.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,n){const r=this._items,s=this.itemType;let i,a;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,c.Os)((()=>this._dispatchChange()))),t){if(a=r.splice(e,t),this.hasEventListener("before-remove")){const t=b.acquire();t.target=this,t.cancellable=!0;for(let n=0,s=a.length;n<s;n++)i=a[n],t.reset(i),this.emit("before-remove",t),t.defaultPrevented&&(a.splice(n,1),r.splice(e,0,i),e+=1,n-=1,s-=1);b.release(t)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const e=b.acquire();e.target=this,e.cancellable=!1;const t=a.length;for(let n=0;n<t;n++)e.reset(a[n]),this.emit("after-remove",e);b.release(e)}}if(n&&n.length){if(s){const e=[];for(const t of n){const n=s.ensureType(t);null==n&&null!=t||e.push(n)}n=e}const t=this.hasEventListener("before-add"),i=this.hasEventListener("after-add"),a=e===this.length;if(t||i){const s=b.acquire();s.target=this,s.cancellable=!0;const o=b.acquire();o.target=this,o.cancellable=!1;for(const l of n)t?(s.reset(l),this.emit("before-add",s),s.defaultPrevented||(a?r.push(l):r.splice(e++,0,l),this._set("length",r.length),i&&(o.reset(l),this.emit("after-add",o)))):(a?r.push(l):r.splice(e++,0,l),this._set("length",r.length),o.reset(l),this.emit("after-add",o));b.release(o),b.release(s)}else{if(a)for(const e of n)r.push(e);else r.splice(e,0,...n);this._set("length",r.length)}}return(n&&n.length||a&&a.length)&&this._notifyChangeEvent(n,a),a}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){const n=b.acquire();n.target=this,n.cancellable=!0,n.type=e,this.emit("before-changes",n),t=n.defaultPrevented,b.release(n)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){const t=b.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),b.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const e=this._notifications;this._notifications=null;for(const t of e){const e=t.changes;M.clear(),E.clear(),S.clear();for(const{added:t,removed:n}of e){if(t)if(0===S.size&&0===E.size)for(const e of t)M.add(e);else for(const e of t)E.has(e)?(S.add(e),E.delete(e)):S.has(e)||M.add(e);if(n)if(0===S.size&&0===M.size)for(const e of n)E.add(e);else for(const e of n)M.has(e)?M.delete(e):(S.delete(e),E.add(e))}const n=i.Z.acquire();M.forEach((e=>{n.push(e)}));const r=i.Z.acquire();E.forEach((e=>{r.push(e)}));const s=this._items,a=t.items,o=i.Z.acquire();if(S.forEach((e=>{a.indexOf(e)!==s.indexOf(e)&&o.push(e)})),t.listeners&&(n.length||r.length||o.length)){const e={target:this,added:n,removed:r,moved:o},s=t.listeners.length;for(let n=0;n<s;n++){const r=t.listeners[n];r.removed||r.callback.call(this,e)}}i.Z.release(n),i.Z.release(r),i.Z.release(o)}M.clear(),E.clear(),S.clear()}};O.ofType=e=>{if(!e)return h;if(T.has(e))return T.get(e);let t=null;if("function"==typeof e)t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(const n in e.typeMap){const r=e.typeMap[n].prototype.declaredClass;t?t+=` | ${r}`:t=r}let n=class extends h{};return(0,s._)([(0,m.c)({Type:e,ensureType:"function"==typeof e?(0,p.se)(e):(0,p.N7)(e)})],n.prototype,"itemType",void 0),n=(0,s._)([(0,f.j)(`esri.core.Collection<${t}>`)],n),T.set(e,n),n},(0,s._)([(0,d.Cb)()],O.prototype,"length",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"items",null),O=h=(0,s._)([(0,f.j)("esri.core.Collection")],O);const F=O},57435:(e,t,n)=>{n.d(t,{Z:()=>h});var r=n(43697),s=n(46791),i=n(70586),a=(n(80442),n(20102),n(92604),n(26258),n(87538)),o=n(5600),l=(n(67676),n(75215),n(52011));let u=class extends s.Z{constructor(e){super(e),this.getCollections=null}initialize(){this.own((0,a.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=(0,i.pC)(this.getCollections)?this.getCollections():null;if((0,i.Wi)(e))return void this.removeAll();let t=0;for(const n of e)(0,i.pC)(n)&&(t=this._processCollection(t,n));this.splice(t,this.length)}_createNewInstance(e){return new s.Z(e)}_processCollection(e,t){if(!t)return e;const n=this.itemFilterFunction?this.itemFilterFunction:e=>!!e;for(const r of t)if(r){if(n(r)){const t=this.indexOf(r,e);t>=0?t!==e&&this.reorder(r,e):this.add(r,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(r);if(Array.isArray(t))for(const n of t)e=this._processCollection(e,n);else e=this._processCollection(e,t)}}return e}};(0,r._)([(0,o.Cb)()],u.prototype,"getCollections",void 0),(0,r._)([(0,o.Cb)()],u.prototype,"getChildrenFunction",void 0),(0,r._)([(0,o.Cb)()],u.prototype,"itemFilterFunction",void 0),u=(0,r._)([(0,l.j)("esri.core.CollectionFlattener")],u);const h=u},3920:(e,t,n)=>{n.d(t,{p:()=>u,r:()=>h});var r=n(43697),s=n(15923),i=n(61247),a=n(5600),o=n(52011),l=n(72762);const u=e=>{let t=class extends e{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new i.Z}get updatingHandles(){return this._get("updatingHandles")||new l.t}};return(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"handles",null),(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"updatingHandles",null),t=(0,r._)([(0,o.j)("esri.core.HandleOwner")],t),t};let h=class extends(u(s.Z)){};h=(0,r._)([(0,o.j)("esri.core.HandleOwner")],h)},52421:(e,t,n)=>{function r(e){return(t,n)=>{t[n]=e}}n.d(t,{c:()=>r})},10661:(e,t,n)=>{n.d(t,{s:()=>s});var r=n(39020);class s{constructor(){this._observers=[]}observe(e){return this._observers.includes(e)||this._observers.push(e),new r.X(this._observers,e)}notify(){const e=this._observers.slice();for(let t=0;t<e.length;++t){const n=e[t];n.onInvalidated(),n.onCommitted()}}}},17445:(e,t,n)=>{n.d(t,{N1:()=>d,YP:()=>l,Z_:()=>f,gx:()=>u,nn:()=>g,on:()=>c,tX:()=>y});var r=n(91460),s=n(50758),i=n(70586),a=n(95330),o=n(26258);function l(e,t,n={}){return h(e,t,n,p)}function u(e,t,n={}){return h(e,t,n,m)}function h(e,t,n={},r){let s=null;const a=n.once?(e,n)=>{r(e)&&((0,i.hw)(s),t(e,n))}:(e,n)=>{r(e)&&t(e,n)};if(s=(0,o.aQ)(e,a,n.sync,n.equals),n.initial){const t=e();a(t,t)}return s}function c(e,t,n,a={}){let o=null,u=null,h=null;function c(){o&&u&&(u.remove(),a.onListenerRemove?.(o),o=null,u=null)}function d(e){a.once&&a.once&&(0,i.hw)(h),n(e)}const p=l(e,((e,n)=>{c(),(0,r.vT)(e)&&(o=e,u=(0,r.on)(e,t,d),a.onListenerAdd?.(e))}),{sync:a.sync,initial:!0});return h=(0,s.kB)((()=>{p.remove(),c()})),h}function d(e,t){return function(e,t,n){if((0,a.Hc)(n))return Promise.reject((0,a.zE)());const r=e();if(t?.(r))return Promise.resolve(r);let o=null;function l(){o=(0,i.hw)(o)}return new Promise(((r,i)=>{o=(0,s.AL)([(0,a.fu)(n,(()=>{l(),i((0,a.zE)())})),h(e,(e=>{l(),r(e)}),{sync:!1,once:!0},t??p)])}))}(e,m,t)}function p(e){return!0}function m(e){return!!e}n(87538);const f={sync:!0},g={initial:!0},y={sync:!0,initial:!0}},72762:(e,t,n)=>{n.d(t,{t:()=>c});var r=n(43697),s=n(15923),i=n(61247),a=n(70586),o=n(17445),l=n(1654),u=n(5600),h=n(52011);let c=class extends s.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new i.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(e,t,n={}){return this._installWatch(e,t,n,o.YP)}addWhen(e,t,n={}){return this._installWatch(e,t,n,o.gx)}addOnCollectionChange(e,t,{initial:n=!1,final:r=!1}={}){const s=++this._handleId;return this._handles.add([(0,o.on)(e,"after-changes",this._createSyncUpdatingCallback(),o.Z_),(0,o.on)(e,"change",t,{onListenerAdd:n?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:r?e=>t({added:[],removed:e.toArray()}):void 0})],s),{remove:()=>this._handles.remove(s)}}addPromise(e){if((0,a.Wi)(e))return e;const t=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this._handles.has(d)||this._set("updating",!1))}},t),this._pendingPromises.add(e),this._set("updating",!0);const n=()=>this._handles.remove(t);return e.then(n,n),e}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(e,t,n={},r){const s=++this._handleId;n.sync||this._installSyncUpdatingWatch(e,s);const i=r(e,t,n);return this._handles.add(i,s),{remove:()=>this._handles.remove(s)}}_installSyncUpdatingWatch(e,t){const n=this._createSyncUpdatingCallback(),r=(0,o.YP)(e,n,{sync:!0,equals:()=>!1});return this._handles.add(r,t),r}_createSyncUpdatingCallback(){return()=>{this._handles.remove(d),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,l.Os)((()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(d))})),d)}}};(0,r._)([(0,u.Cb)({readOnly:!0})],c.prototype,"updating",void 0),c=(0,r._)([(0,h.j)("esri.core.support.WatchUpdatingTracking")],c);const d=-42},35463:(e,t,n)=>{n.d(t,{JE:()=>a,Nm:()=>i,rJ:()=>o}),n(80442);const r={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},s={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function i(e,t,n){const r=new Date(e.getTime());if(t&&n){const e=s[n],{getter:i,setter:a,multiplier:o}=e;if("months"===n){const e=function(e,t){const n=new Date(e,t+1,1);return n.setDate(0),n.getDate()}(r.getFullYear(),r.getMonth()+t);r.getDate()>e&&r.setDate(e)}r[a](r[i]()+t*o)}return r}function a(e,t){switch(t){case"milliseconds":return new Date(e.getTime());case"seconds":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds());case"minutes":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes());case"hours":return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours());case"days":return new Date(e.getFullYear(),e.getMonth(),e.getDate());case"weeks":return new Date(e.getFullYear(),e.getMonth(),e.getDate()-e.getDay());case"months":return new Date(e.getFullYear(),e.getMonth(),1);case"years":return new Date(e.getFullYear(),0,1);case"decades":return new Date(e.getFullYear()-e.getFullYear()%10,0,1);case"centuries":return new Date(e.getFullYear()-e.getFullYear()%100,0,1);default:return new Date}}function o(e,t,n){return 0===e?0:e*r[t]/r[n]}},60437:(e,t,n)=>{n.d(t,{Gv:()=>b,HH:()=>o,JR:()=>f,TC:()=>l,Tn:()=>d,Ue:()=>i,al:()=>a,cS:()=>m,dp:()=>h,fS:()=>y,op:()=>c,pp:()=>u,t8:()=>p});var r=n(70586),s=n(6570);function i(e=_){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t,n,r,s,a,o=i()){return o[0]=e,o[1]=t,o[2]=n,o[3]=r,o[4]=s,o[5]=a,o}function o(e,t){const n=isFinite(e[2])||isFinite(e[5]);return new s.Z(n?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function u(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function h(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function c(e,t,n=e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n!==e&&(n[3]=e[3],n[4]=e[4],n[5]=e[5]),n}function d(e,t,n=e){return n[3]=t[0],n[4]=t[1],n[5]=t[2],n!==e&&(n[0]=e[0],n[1]=e[1],n[2]=e[2]),e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function m(e){return e?p(e,b):i(b)}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function y(e,t,n){if((0,r.Wi)(e)||(0,r.Wi)(t))return e===t;if(!g(e)||!g(t))return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}n(24470);const b=[1/0,1/0,1/0,-1/0,-1/0,-1/0],_=[0,0,0,0,0,0];i()},91040:(e,t,n)=>{n.d(t,{yZ:()=>s});var r=n(67900);function s(e,t){const n=t||e.extent,s=e.width,i=(0,r.c9)(n&&n.spatialReference);return n&&s?n.width/s*i*r.hd*96:0}},25906:(e,t,n)=>{n.r(t),n.d(t,{default:()=>xe});var r=n(43697),s=n(68773),i=n(38171),a=n(51773),o=n(3172),l=n(46791),u=n(57435),h=n(35454),c=n(22974),d=n(70586),p=n(16453),m=n(95330),f=n(17445),g=n(17452),y=n(5600),b=n(75215),_=n(71715),v=n(52011),w=n(30556),x=n(76169),C=n(6570),M=n(82971),E=n(91040),S=n(8744),T=n(87085),I=n(71612),O=n(38009),F=n(16859),N=n(34760),A=n(72965),D=n(28294),R=n(52162),L=n(66677),j=n(21506),P=n(15923),U=n(3920);n(67676);const Z={visible:"visibleSublayers"};let q=class extends((0,U.p)(P.Z)){constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.handles.remove("layer"),e&&this.handles.add([e.sublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("wms-sublayer-update",(e=>this.notifyChange(Z[e.propertyName])))],"layer"))}get layers(){return this.visibleSublayers.filter((({name:e})=>e)).map((({name:e})=>e)).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,n=e?.sublayers,r=[],s=e=>{const{minScale:n,maxScale:i,sublayers:a,visible:o}=e;o&&(0===t||(0===n||t<=n)&&(0===i||t>=i))&&(a?a.forEach(s):r.push(e))};return n?.forEach(s),r}toJSON(){const{layer:e,layers:t}=this,{imageFormat:n,imageTransparency:r,version:s}=e;return{format:n,request:"GetMap",service:"WMS",styles:"",transparent:r?"TRUE":"FALSE",version:s,layers:t}}};(0,r._)([(0,y.Cb)()],q.prototype,"layer",null),(0,r._)([(0,y.Cb)({readOnly:!0})],q.prototype,"layers",null),(0,r._)([(0,y.Cb)({type:Number})],q.prototype,"scale",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],q.prototype,"version",null),(0,r._)([(0,y.Cb)({readOnly:!0})],q.prototype,"visibleSublayers",null),q=(0,r._)([(0,v.j)("esri.layers.support.ExportWMSImageParameters")],q);var V,B=n(10699),W=n(90578);let k=0,H=V=class extends((0,B.IG)(p.w)){constructor(e){super(e),this.dimensions=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.addHandles([(0,f.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=this,e.layer=this.layer}),f.Z_),(0,f.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),f.Z_),(0,f.YP)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer}),f.Z_)])}get description(){return this._get("description")}set description(e){this._set("description",e)}get fullExtent(){return this._get("fullExtent")}set fullExtent(e){this._set("fullExtent",e)}readExtent(e,t){return(e=t.extent)?C.Z.fromJSON(e):null}get id(){return this._get("id")??k++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t?.legendUrl??t?.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}get name(){return this._get("name")}set name(e){this._set("name",e)}castSublayers(e){return(0,b.se)(l.Z.ofType(V),e)}get title(){return this._get("title")}set title(e){this._set("title",e)}get visible(){return this._get("visible")}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new V;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map((e=>e.clone()))??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers&&this.sublayers.map((e=>e.clone()))),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map((e=>e))),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const n=this.layer;this._get(e)!==t&&(this._set(e,t),n&&n.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,r._)([(0,y.Cb)()],H.prototype,"description",null),(0,r._)([(0,y.Cb)({readOnly:!0})],H.prototype,"dimensions",void 0),(0,r._)([(0,y.Cb)({value:null})],H.prototype,"fullExtent",null),(0,r._)([(0,_.r)("fullExtent",["extent"])],H.prototype,"readExtent",null),(0,r._)([(0,y.Cb)()],H.prototype,"fullExtents",void 0),(0,r._)([(0,y.Cb)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],H.prototype,"id",null),(0,r._)([(0,y.Cb)({type:String,json:{origins:{"web-document":{read:{source:["legendUrl","legendURL"]},write:{target:"legendUrl",ignoreOrigin:!0}}},read:{source:"legendURL"},write:{ignoreOrigin:!0}}})],H.prototype,"legendUrl",void 0),(0,r._)([(0,_.r)(["web-document"],"legendUrl")],H.prototype,"readLegendUrl",null),(0,r._)([(0,y.Cb)({value:!0,type:Boolean,json:{read:{source:"showLegend"},write:{target:"showLegend"},origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],H.prototype,"legendEnabled",void 0),(0,r._)([(0,y.Cb)()],H.prototype,"layer",void 0),(0,r._)([(0,y.Cb)()],H.prototype,"maxScale",void 0),(0,r._)([(0,y.Cb)()],H.prototype,"minScale",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],H.prototype,"effectiveScaleRange",null),(0,r._)([(0,y.Cb)({type:String,value:null,json:{read:{source:"name"},write:{ignoreOrigin:!0}}})],H.prototype,"name",null),(0,r._)([(0,y.Cb)()],H.prototype,"parent",void 0),(0,r._)([(0,y.Cb)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],H.prototype,"popupEnabled",void 0),(0,r._)([(0,y.Cb)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],H.prototype,"queryable",void 0),(0,r._)([(0,y.Cb)()],H.prototype,"sublayers",void 0),(0,r._)([(0,W.p)("sublayers")],H.prototype,"castSublayers",null),(0,r._)([(0,y.Cb)({type:[Number],json:{read:{source:"spatialReferences"}}})],H.prototype,"spatialReferences",void 0),(0,r._)([(0,y.Cb)({type:String,value:null,json:{write:{ignoreOrigin:!0}}})],H.prototype,"title",null),(0,r._)([(0,y.Cb)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],H.prototype,"visible",null),H=V=(0,r._)([(0,v.j)("esri.layers.support.WMSSublayer")],H);const Y=H;var J=n(20102);const G={84:4326,83:4269,27:4267};function z(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const n=e.documentElement;if("ServiceExceptionReport"===n.nodeName){const e=Array.prototype.slice.call(n.childNodes).map((e=>e.textContent)).join("\r\n");throw new J.Z("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const r=K("Capability",n),s=K("Service",n),i=K("Request",r);if(!r||!s||!i)return null;const a=K("Layer",r);if(!a)return null;const o="WMS_Capabilities"===n.nodeName||"WMT_MS_Capabilities"===n.nodeName?n.getAttribute("version"):"1.3.0",l=te("Title",s,"")||te("Name",s,""),u=te("AccessConstraints",s,""),h=/^none$/i.test(u)?"":u,c=te("Abstract",s,""),d=parseInt(te("MaxWidth",s,"5000"),10),p=parseInt(te("MaxHeight",s,"5000"),10),m=se(i,"GetMap"),f=re(i,"GetMap"),g=ae(a,o,t);let y,b,_,v=0;if(Array.prototype.slice.call(r.childNodes).forEach((e=>{"Layer"===e.nodeName&&(0===v?y=e:1===v?(g.name&&(g.name="",g.sublayers.push(ae(y,o,t))),g.sublayers.push(ae(e,o,t))):g.sublayers.push(ae(e,o,t)),v++)})),!g)return null;const w=g.fullExtents;if(b=g.sublayers,b||(b=[]),0===b.length&&b.push(g),_=g.extent,!_){const e=new C.Z(b[0].extent);g.extent=e.toJSON(),_=g.extent}const x=g.spatialReferences.length>0?g.spatialReferences:$(g),M=re(i,"GetFeatureInfo"),E=M?se(i,"GetFeatureInfo"):null,S=X(b),T=g.minScale||0,I=g.maxScale||0,O=g.dimensions,F=S.reduce(((e,t)=>e.concat(t.dimensions)),[]),N=O.concat(F).filter(le);let A=null;if(N.length){const e=N.map((e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map((e=>e.getTime())):t.map((e=>[e.min.getTime(),e.max.getTime()]))})).flat(2);A={startTimeField:null,endTimeField:null,trackIdField:null,timeExtent:[Math.min(...e),Math.max(...e)]}}return{copyright:h,description:c,dimensions:O,extent:_,fullExtents:w,featureInfoFormats:E,featureInfoUrl:M,mapUrl:f,maxWidth:d,maxHeight:p,maxScale:I,minScale:T,layers:S,spatialReferences:x,supportedImageFormatTypes:m,timeInfo:A,title:l,version:o}}function $(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=$(t);if(e.length>0)return e}return[]}function X(e){let t=[];for(const n of e)t.push(n),n.sublayers?.length&&(t=t.concat(X(n.sublayers)),delete n.sublayers);return t}function Q(e,t,n){return t.getAttribute(e)??n}function K(e,t){for(let n=0;n<t.childNodes.length;n++){const r=t.childNodes[n];if(oe(r)&&r.nodeName===e)return r}return null}function ee(e,t){const n=[];for(let r=0;r<t.childNodes.length;r++){const s=t.childNodes[r];oe(s)&&s.nodeName===e&&n.push(s)}return n}function te(e,t,n){const r=K(e,t);return r?r.textContent:n}function ne(e,t,n){if(!e)return null;const r=parseFloat(e.getAttribute("minx")),s=parseFloat(e.getAttribute("miny")),i=parseFloat(e.getAttribute("maxx")),a=parseFloat(e.getAttribute("maxy"));let o,l,u,h;n?(o=isNaN(s)?-Number.MAX_VALUE:s,l=isNaN(r)?-Number.MAX_VALUE:r,u=isNaN(a)?Number.MAX_VALUE:a,h=isNaN(i)?Number.MAX_VALUE:i):(o=isNaN(r)?-Number.MAX_VALUE:r,l=isNaN(s)?-Number.MAX_VALUE:s,u=isNaN(i)?Number.MAX_VALUE:i,h=isNaN(a)?Number.MAX_VALUE:a);const c=new M.Z({wkid:t});return new C.Z({xmin:o,ymin:l,xmax:u,ymax:h,spatialReference:c})}function re(e,t){const n=K(t,e);if(n){const e=K("DCPType",n);if(e){const t=K("HTTP",e);if(t){const e=K("Get",t);if(e){let t=function(e,t,n,r){const s=K("OnlineResource",n);return s?Q("xlink:href",s,null):null}(0,0,e);if(t)return t.indexOf("&")===t.length-1&&(t=t.substring(0,t.length-1)),function(e,t){const n=[],r=(0,g.mN)(e);for(const e in r.query)r.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||n.push(e+"="+r.query[e]));return r.path+(n.length?"?"+n.join("&"):"")}(t,["service","request"])}}}}return null}function se(e,t){const n=ee("Operation",e);if(!n.length)return ee("Format",K(t,e)).map((({textContent:e})=>e));const r=[];for(const e of n)if(e.getAttribute("name")===t){const t=ee("Format",e);for(const{textContent:e}of t)r.push(e)}return r}function ie(e,t,n){const r=K(t,e);if(!r)return n;const{textContent:s}=r;if(null==s||""===s)return n;const i=Number(s);return isNaN(i)?n:i}function ae(e,t,n){if(!e)return null;const r={id:n.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},s=K("LatLonBoundingBox",e),i=K("EX_GeographicBoundingBox",e);let a=null;s&&(a=ne(s,4326)),i&&(a=new C.Z(0,0,0,0,new M.Z({wkid:4326})),a.xmin=parseFloat(te("westBoundLongitude",i,"0")),a.ymin=parseFloat(te("southBoundLatitude",i,"0")),a.xmax=parseFloat(te("eastBoundLongitude",i,"0")),a.ymax=parseFloat(te("northBoundLatitude",i,"0"))),s||i||(a=new C.Z(-180,-90,180,90,new M.Z({wkid:4326}))),r.minScale=ie(e,"MaxScaleDenominator",0),r.maxScale=ie(e,"MinScaleDenominator",0);const o=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach((e=>{if("Name"===e.nodeName)r.name=e.textContent||"";else if("Title"===e.nodeName)r.title=e.textContent||"";else if("Abstract"===e.nodeName)r.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const n=e.getAttribute(o);if(n&&0===n.indexOf("EPSG:")){const r=parseInt(n.substring(5),10);0===r||isNaN(r)||a||(a="1.3.0"===t?ne(e,r,(0,R.A)(r)):ne(e,r))}const s=n&&n.indexOf(":");if(s&&s>-1){let i=parseInt(n.substring(s+1,n.length),10);0===i||isNaN(i)||(i=G[i]?G[i]:i);const a="1.3.0"===t?ne(e,i,(0,R.A)(i)):ne(e,i);r.fullExtents.push(a)}}else if(e.nodeName===o)e.textContent.split(" ").forEach((e=>{const t=e.includes(":")?parseInt(e.split(":")[1],10):parseInt(e,10);if(0!==t&&!isNaN(t)){const e=G[t]?G[t]:t;r.spatialReferences.includes(e)||r.spatialReferences.push(e)}}));else if("Style"!==e.nodeName||r.legendURL){if("Layer"===e.nodeName){const s=ae(e,t,n);s&&(s.parentLayerId=r.id,r.sublayers||(r.sublayers=[]),r.sublayers.push(s))}}else{const t=K("LegendURL",e);if(t){const e=K("OnlineResource",t);e&&(r.legendURL=e.getAttribute("xlink:href"))}}})),r.extent=a?.toJSON(),r.dimensions=ee("Dimension",e).filter((e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent)).map((e=>{const t=e.getAttribute("name"),n=e.getAttribute("units"),r=e.textContent,s=e.getAttribute("unitSymbol"),i=e.getAttribute("default"),a="0"!==Q("default",e,"0"),o="0"!==Q("nearestValue",e,"0"),l="0"!==Q("current",e,"0");return le({name:t,units:n})?{name:"time",units:"ISO8601",extent:ce(r),default:ce(i),multipleValues:a,nearestValue:o,current:l}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:n})?{name:"elevation",units:n,extent:ue(r),unitSymbol:s,default:ue(i),multipleValues:a,nearestValue:o}:{name:t,units:n,extent:he(r),unitSymbol:s,default:he(i),multipleValues:a,nearestValue:o}})),r}function oe(e){return e.nodeType===Node.ELEMENT_NODE}function le(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function ue(e){if(!e)return null;const t=e.includes("/"),n=e.split(",");return t?n.map((e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}})).filter((e=>e)):n.map((e=>parseFloat(e)))}function he(e){if(!e)return null;const t=e.includes("/"),n=e.split(",");return t?n.map((e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}})).filter((e=>e)):n}function ce(e){if(!e)return null;const t=e.includes("/"),n=e.split(",");return t?n.map((e=>{const t=e.split("/");return t.length<2?null:{min:new Date(t[0]),max:new Date(t[1]),resolution:t.length>=3&&"0"!==t[2]?de(t[2]):void 0}})).filter((e=>e)):n.map((e=>new Date(e)))}function de(e){const t=e.match(/(?:p(\d+y|\d+(?:.|,)\d+y)?(\d+m|\d+(?:.|,)\d+m)?(\d+d|\d+(?:.|,)\d+d)?)?(?:t(\d+h|\d+(?:.|,)\d+h)?(\d+m|\d+(?:.|,)\d+m)?(\d+s|\d+(?:.|,)\d+s)?)?/i);return t?{years:pe(t[1]),months:pe(t[2]),days:pe(t[3]),hours:pe(t[4]),minutes:pe(t[5]),seconds:pe(t[6])}:null}function pe(e){if(!e)return 0;const t=e.match(/(?:\d+(?:.|,)\d+|\d+)/);if(!t)return 0;const n=t[0].replace(",",".");return Number(n)}function me(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}const fe=new Set([102100,3857,102113,900913]),ge=new Set([3395,54004]),ye=new h.X({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function be(e){return"text/html"===e}function _e(e){return"text/plain"===e}let ve=class extends((0,I.h)((0,D.n)((0,N.Q)((0,A.M)((0,O.q)((0,F.I)((0,p.R)(T.Z)))))))){constructor(...e){super(...e),this.allSublayers=new u.Z({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.url=null,this.version=null,this.addHandles([(0,f.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=e.layer=this}),f.Z_),(0,f.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),f.Z_),(0,f.YP)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this}),f.Z_)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,d.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(m.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}readFullExtentFromItemOrMap(e,t){const n=t.extent;return n?new C.Z({xmin:n[0][0],ymin:n[0][1],xmax:n[1][0],ymax:n[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return(0,d.Wi)(this.featureInfoFormats)?null:this.featureInfoFormats.find(be)??this.featureInfoFormats.find(_e)??null}set featureInfoFormat(e){(0,d.pC)(e)?(be(e)||_e(e))&&this._override("featureInfoFormat",e):(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat"))}readImageFormat(e,t){const n=t.supportedImageFormatTypes;return n&&n.includes("image/png")?"image/png":n&&n[0]}readSpatialReferenceFromItemOrDocument(e,t){return new M.Z(t.spatialReferences[0])}writeSpatialReferences(e,t){const n=this.spatialReference?.wkid;e&&n?(t.spatialReferences=e.filter((e=>e!==n)),t.spatialReferences.unshift(n)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,n){return we(t.layers,n,t.visibleLayers)}readSublayers(e,t,n){return we(t.layers,n)}writeSublayers(e,t,n,r){t.layers=[];const s=new Map,i=e.flatten((({sublayers:e})=>e));for(const e of i)if("number"==typeof e.parent?.id){const t=s.get(e.parent.id);null!=t?t.push(e.id):s.set(e.parent.id,[e.id])}for(const e of i){const n={sublayer:e,...r},i=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},n);if(s.has(e.id)&&(i.sublayerIds=s.get(e.id)),!e.sublayers&&e.name){const r=e.write({},n);delete r.id,t.layers.push(r)}}t.visibleLayers=i.filter((({visible:e,sublayers:t})=>e&&!t)).map((({name:e})=>e)).toArray()}createExportImageParameters(e,t,n,r){const s=r?.pixelRatio??1,i=(0,E.yZ)({extent:e,width:t})*s,a=new q({layer:this,scale:i}),{xmin:o,ymin:l,xmax:u,ymax:h,spatialReference:c}=e,p=function(e,t){let n=e.wkid;return(0,d.Wi)(t)?n:(!t.includes(n)&&e.latestWkid&&(n=e.latestWkid),fe.has(n)?t.find((e=>fe.has(e)))||t.find((e=>ge.has(e)))||102100:n)}(c,this.spatialReferences),m="1.3.0"===this.version&&(0,R.A)(p)?`${l},${o},${h},${u}`:`${o},${l},${u},${h}`,f=a.toJSON();return{bbox:m,["1.3.0"===this.version?"crs":"srs"]:isNaN(p)?void 0:"EPSG:"+p,...f}}async fetchImage(e,t,n,r){const s=this.mapUrl,i=this.createExportImageParameters(e,t,n,r);if(!i.layers){const e=document.createElement("canvas");return e.width=t,e.height=n,e}const a=r?.timeExtent?.start,l=r?.timeExtent?.end,u=(0,d.pC)(a)&&(0,d.pC)(l)?a.getTime()===l.getTime()?me(a):`${me(a)}/${me(l)}`:void 0,h={responseType:"image",query:this._mixCustomParameters({width:t,height:n,...i,time:u,...this.refreshParameters}),signal:r?.signal};return(0,o.default)(s??"",h).then((e=>e.data))}async fetchImageBitmap(e,t,n,r){const s=this.mapUrl,i=this.createExportImageParameters(e,t,n,r);if(!i.layers){const e=document.createElement("canvas");return e.width=t,e.height=n,e}const a=r?.timeExtent?.start,l=r?.timeExtent?.end,u=(0,d.pC)(a)&&(0,d.pC)(l)?a.getTime()===l.getTime()?me(a):`${me(a)}/${me(l)}`:void 0,h={responseType:"blob",query:this._mixCustomParameters({width:t,height:n,...i,time:u,...this.refreshParameters}),signal:r?.signal},c=await(0,o.default)(s??"",h).then((e=>e.data));return createImageBitmap(c)}fetchFeatureInfo(e,t,n,r,s){const i=(0,E.yZ)({extent:e,width:t}),a=function(e){const t=e.filter((e=>e.popupEnabled&&e.name&&e.queryable));return t.length?t.map((({name:e})=>e)).join():null}(new q({layer:this,scale:i}).visibleSublayers);if((0,d.Wi)(this.featureInfoUrl)||(0,d.Wi)(a))return Promise.resolve([]);if((0,d.Wi)(this.fetchFeatureInfoFunction)&&(0,d.Wi)(this.featureInfoFormat))return Promise.resolve([]);const o="1.3.0"===this.version?{I:r,J:s}:{x:r,y:s},l={query_layers:a,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:n,...o},u={...this.createExportImageParameters(e,t,n),...l},h=this._mixCustomParameters(u);return(0,d.pC)(this.fetchFeatureInfoFunction)?this.fetchFeatureInfoFunction(h):this._defaultFetchFeatureInfoFunction((0,g.fl)(this.featureInfoUrl,h))}findSublayerById(e){return this.allSublayers.find((t=>t.id===e))}findSublayerByName(e){return this.allSublayers.find((t=>t.name===e))}serviceSupportsSpatialReference(e){return(0,L.G)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some((t=>{const n=900913===t?M.Z.WebMercator:new M.Z({wkid:t});return(0,S.fS)(n,e)}))}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,g.qg)(e),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const n=new a.Z({title:this.title,content:t}),r=new i.Z({sourceLayer:this,popupTemplate:n});return Promise.resolve([r])}async _fetchService(e){if(!this.resourceInfo){const{path:t,query:n}=this.parsedUrl??{};n?.service&&(n.SERVICE=n.service,delete n.service),n?.request&&(n.REQUEST=n.request,delete n.request);const{data:r}=await(0,o.default)(t??"",{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...n,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=z(r)}if(this.parsedUrl){const e=new g.R9(this.parsedUrl.path),{httpsDomains:t}=s.Z.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const n in t)e[n.toLowerCase()]=t[n];return e}};function we(e,t,n){e=e??[];const r=new Map;e.every((e=>null==e.id))&&(e=(0,c.d9)(e)).forEach(((e,t)=>e.id=t));for(const s of e){const e=new Y;e.read(s,t),n&&!n.includes(e.name)&&(e.visible=!1),r.set(e.id,e)}const s=[];for(const t of e){const e=null!=t.id?r.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const n=r.get(t.parentLayerId);if(!n)continue;n.sublayers||(n.sublayers=new l.Z),n.sublayers.push(e)}else s.push(e)}return s}(0,r._)([(0,y.Cb)({readOnly:!0})],ve.prototype,"allSublayers",void 0),(0,r._)([(0,y.Cb)({json:{type:Object,write:!0}})],ve.prototype,"customParameters",void 0),(0,r._)([(0,y.Cb)({json:{type:Object,write:!0}})],ve.prototype,"customLayerParameters",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:!0}})],ve.prototype,"copyright",void 0),(0,r._)([(0,y.Cb)()],ve.prototype,"description",void 0),(0,r._)([(0,y.Cb)({readOnly:!0})],ve.prototype,"dimensions",void 0),(0,r._)([(0,y.Cb)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],ve.prototype,"fullExtent",void 0),(0,r._)([(0,_.r)(["web-document","portal-item"],"fullExtent",["extent"])],ve.prototype,"readFullExtentFromItemOrMap",null),(0,r._)([(0,w.c)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],ve.prototype,"writeFullExtent",null),(0,r._)([(0,y.Cb)()],ve.prototype,"fullExtents",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ve.prototype,"featureInfoFormat",null),(0,r._)([(0,y.Cb)({type:[String],readOnly:!0})],ve.prototype,"featureInfoFormats",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ve.prototype,"featureInfoUrl",void 0),(0,r._)([(0,y.Cb)()],ve.prototype,"fetchFeatureInfoFunction",void 0),(0,r._)([(0,y.Cb)({type:String,json:{origins:{"web-document":{default:"image/png",type:ye.jsonValues,read:{reader:ye.read,source:"format"},write:{writer:ye.write,target:"format"}}}}})],ve.prototype,"imageFormat",void 0),(0,r._)([(0,_.r)("imageFormat",["supportedImageFormatTypes"])],ve.prototype,"readImageFormat",null),(0,r._)([(0,y.Cb)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],ve.prototype,"imageMaxHeight",void 0),(0,r._)([(0,y.Cb)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],ve.prototype,"imageMaxWidth",void 0),(0,r._)([(0,y.Cb)()],ve.prototype,"imageTransparency",void 0),(0,r._)([(0,y.Cb)(j.rn)],ve.prototype,"legendEnabled",void 0),(0,r._)([(0,y.Cb)({type:["show","hide","hide-children"]})],ve.prototype,"listMode",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ve.prototype,"mapUrl",void 0),(0,r._)([(0,y.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],ve.prototype,"isReference",void 0),(0,r._)([(0,y.Cb)({type:["WMS"]})],ve.prototype,"operationalLayerType",void 0),(0,r._)([(0,y.Cb)()],ve.prototype,"resourceInfo",void 0),(0,r._)([(0,y.Cb)({type:M.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],ve.prototype,"spatialReference",void 0),(0,r._)([(0,_.r)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],ve.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,r._)([(0,y.Cb)({type:[b.z8],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],ve.prototype,"spatialReferences",void 0),(0,r._)([(0,w.c)(["web-document","portal-item"],"spatialReferences")],ve.prototype,"writeSpatialReferences",null),(0,r._)([(0,y.Cb)({type:l.Z.ofType(Y),json:{write:{target:"layers",overridePolicy(e,t,n){if(function(e,t){return e.some((e=>{for(const n in e)if((0,x.d)(e,n,null,t))return!0;return!1}))}(this.allSublayers,n))return{ignoreOrigin:!0}}}}})],ve.prototype,"sublayers",void 0),(0,r._)([(0,_.r)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],ve.prototype,"readSublayersFromItemOrMap",null),(0,r._)([(0,_.r)("service","sublayers",["layers"])],ve.prototype,"readSublayers",null),(0,r._)([(0,w.c)("sublayers",{layers:{type:[Y]},visibleLayers:{type:[String]}})],ve.prototype,"writeSublayers",null),(0,r._)([(0,y.Cb)({json:{read:!1},readOnly:!0,value:"wms"})],ve.prototype,"type",void 0),(0,r._)([(0,y.Cb)(j.HQ)],ve.prototype,"url",void 0),(0,r._)([(0,y.Cb)({type:String,json:{write:{ignoreOrigin:!0}}})],ve.prototype,"version",void 0),ve=(0,r._)([(0,v.j)("esri.layers.WMSLayer")],ve);const xe=ve},34760:(e,t,n)=>{n.d(t,{Q:()=>y});var r=n(43697),s=n(92604),i=n(95330),a=n(5600),o=(n(67676),n(75215),n(52011)),l=n(46791),u=(n(80442),n(20102),n(26258),n(87538));const h=new l.Z,c=new WeakMap;function d(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function p(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:p(t,e%t):0}let m=0,f=0;function g(){const e=Date.now();for(const t of h)t.refreshInterval&&e-(c.get(t)??0)+5>=6e4*t.refreshInterval&&(c.set(t,e),t.refresh(e))}(0,u.EH)((()=>{const e=Date.now();let t=0;for(const n of h)t=p(Math.round(6e4*n.refreshInterval),t),n.refreshInterval?c.get(n)||c.set(n,e):c.delete(n);if(t!==f){if(f=t,clearInterval(m),0===f)return void(m=0);m=setInterval(g,f)}}));const y=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,i.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){d(e)&&h.push(e)}(this)}),(()=>{}))}destroy(){d(this)&&h.includes(this)&&h.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,i.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{s.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,r._)([(0,a.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,r._)([(0,a.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,r._)([(0,a.Cb)()],t.prototype,"refreshParameters",null),t=(0,r._)([(0,o.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(43697),s=n(92835),i=n(84552),a=n(5600),o=(n(67676),n(75215),n(71715)),l=n(52011),u=n(35671),h=n(30547),c=n(78981);const d=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const n=t.timeInfo.exportOptions;if(!n)return null;const r=n.timeOffset,s=c.v.fromJSON(n.timeOffsetUnits);return r&&s?new i.Z({value:r,unit:s}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r._)([(0,a.Cb)({type:s.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,r._)([(0,a.Cb)({type:i.Z})],t.prototype,"timeOffset",void 0),(0,r._)([(0,o.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,r._)([(0,a.Cb)({value:null,type:h.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,r._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},52162:(e,t,n)=>{n.d(t,{A:()=>s});const r=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function s(e){return null!=e&&r.some((([t,n])=>e>=t&&e<=n))}},30547:(e,t,n)=>{n.d(t,{Z:()=>_});var r,s=n(43697),i=n(92835),a=n(84552),o=n(96674),l=n(22974),u=n(70586),h=n(5600),c=(n(75215),n(71715)),d=n(52011),p=n(30556);n(67676);let m=r=class extends o.wq{constructor(e){super(e),this.respectsDaylightSaving=!1,this.timezone=null}readRespectsDaylightSaving(e,t){return void 0!==t.respectsDaylightSaving?t.respectsDaylightSaving:void 0!==t.respectDaylightSaving&&t.respectDaylightSaving}clone(){const{respectsDaylightSaving:e,timezone:t}=this;return new r({respectsDaylightSaving:e,timezone:t})}};(0,s._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"respectsDaylightSaving",void 0),(0,s._)([(0,c.r)("respectsDaylightSaving",["respectsDaylightSaving","respectDaylightSaving"])],m.prototype,"readRespectsDaylightSaving",null),(0,s._)([(0,h.Cb)({type:String,json:{read:{source:"timeZone"},write:{target:"timeZone"}}})],m.prototype,"timezone",void 0),m=r=(0,s._)([(0,d.j)("esri.layers.support.TimeReference")],m);const f=m;var g,y=n(78981);let b=g=class extends o.wq{constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeReference=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const n=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new i.Z({start:n,end:r})}writeFullTimeExtent(e,t){e&&(0,u.pC)(e.start)&&(0,u.pC)(e.end)?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?new a.Z({value:t.timeInterval,unit:y.v.fromJSON(t.timeIntervalUnits)}):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?new a.Z({value:t.defaultTimeInterval,unit:y.v.fromJSON(t.defaultTimeIntervalUnits)}):null}writeInterval(e,t){if(e){const n=e.toJSON();t.timeInterval=n.value,t.timeIntervalUnits=n.unit}else t.timeInterval=null,t.timeIntervalUnits=null}clone(){const{cumulative:e,endField:t,hasLiveData:n,interval:r,startField:s,timeReference:i,fullTimeExtent:a,trackIdField:o,useTime:u}=this;return new g({cumulative:e,endField:t,hasLiveData:n,interval:r,startField:s,timeReference:(0,l.d9)(i),fullTimeExtent:(0,l.d9)(a),trackIdField:o,useTime:u})}};(0,s._)([(0,h.Cb)({type:Boolean,json:{read:{source:"exportOptions.timeDataCumulative"},write:{target:"exportOptions.timeDataCumulative"}}})],b.prototype,"cumulative",void 0),(0,s._)([(0,h.Cb)({type:String,json:{read:{source:"endTimeField"},write:{target:"endTimeField",allowNull:!0}}})],b.prototype,"endField",void 0),(0,s._)([(0,h.Cb)({type:i.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"fullTimeExtent",void 0),(0,s._)([(0,c.r)("fullTimeExtent",["timeExtent"])],b.prototype,"readFullTimeExtent",null),(0,s._)([(0,p.c)("fullTimeExtent")],b.prototype,"writeFullTimeExtent",null),(0,s._)([(0,h.Cb)({type:Boolean,json:{write:!0}})],b.prototype,"hasLiveData",void 0),(0,s._)([(0,h.Cb)({type:a.Z,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"interval",void 0),(0,s._)([(0,c.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],b.prototype,"readInterval",null),(0,s._)([(0,p.c)("interval")],b.prototype,"writeInterval",null),(0,s._)([(0,h.Cb)({type:String,json:{read:{source:"startTimeField"},write:{target:"startTimeField",allowNull:!0}}})],b.prototype,"startField",void 0),(0,s._)([(0,h.Cb)({type:f,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"timeReference",void 0),(0,s._)([(0,h.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],b.prototype,"trackIdField",void 0),(0,s._)([(0,h.Cb)({type:Boolean,json:{read:{source:"exportOptions.useTime"},write:{target:"exportOptions.useTime"}}})],b.prototype,"useTime",void 0),b=g=(0,s._)([(0,d.j)("esri.layers.support.TimeInfo")],b);const _=b},78981:(e,t,n)=>{n.d(t,{v:()=>r});const r=(0,n(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);