@arcgis/core 4.28.2 → 4.28.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/023fc8504d032762ad82.js +1 -0
- package/assets/esri/core/workers/chunks/02e86a792dbe2fdec974.js +1 -0
- package/assets/esri/core/workers/chunks/{18e0c5bfeb1aa7213dfa.js → 076ac767b5148357f1b5.js} +1 -1
- package/assets/esri/core/workers/chunks/{5386b166f2e5dc0d9143.js → 12797aa1d6a2b49abb3f.js} +1 -1
- package/assets/esri/core/workers/chunks/1687431f7b233d950195.js +1 -0
- package/assets/esri/core/workers/chunks/{a1e16c33f1843dbdce26.js → 175bbe8a048f17dd482b.js} +1 -1
- package/assets/esri/core/workers/chunks/1c855f091d1305b82594.js +1 -0
- package/assets/esri/core/workers/chunks/{d0119dff8771e749436a.js → 30d3b31df52d40e5b2e6.js} +1 -1
- package/assets/esri/core/workers/chunks/{768271a12dc7e1781447.js → 32fbd4355a4a649623a7.js} +1 -1
- package/assets/esri/core/workers/chunks/3dbc399eedd347b0fbbb.js +1 -0
- package/assets/esri/core/workers/chunks/{d5fec54e98c8622349a4.js → 46ddc52fe9cdd573a614.js} +1 -1
- package/assets/esri/core/workers/chunks/4747741429e8ff7112bb.js +1 -0
- package/assets/esri/core/workers/chunks/4a5d0b49a641d182b5ea.js +1 -0
- package/assets/esri/core/workers/chunks/4ae8308e5b9c7772a11f.js +1 -0
- package/assets/esri/core/workers/chunks/{da124ccd18d2745195fe.js → 4bd342f13002888b6467.js} +1 -1
- package/assets/esri/core/workers/chunks/{7756ed853b4ba54cd081.js → 5247c00088303da7ef3b.js} +1 -1
- package/assets/esri/core/workers/chunks/534726130ef1698ec89e.js +1 -0
- package/assets/esri/core/workers/chunks/551bc697e3e17983c2bc.js +1 -0
- package/assets/esri/core/workers/chunks/{65d8135c89ffdd17a3c1.js → 59d3f4c0d1a43180aff3.js} +1 -1
- package/assets/esri/core/workers/chunks/{2d92df1e3ba4f05e0510.js → 633b34a5817f1f719e22.js} +1 -1
- package/assets/esri/core/workers/chunks/{c7bd63103f101c09b1ea.js → 6996537249869c41e736.js} +1 -1
- package/assets/esri/core/workers/chunks/{41778f8c49febe1f9404.js → 6fa0cccd4f3e1fa71421.js} +1 -1
- package/assets/esri/core/workers/chunks/{78e49a70193e5adea17c.js → 77f557359a5033d7e429.js} +1 -1
- package/assets/esri/core/workers/chunks/7cc56b132c46c5922dac.js +1 -0
- package/assets/esri/core/workers/chunks/80831e90fe1a52f8f982.js +1 -0
- package/assets/esri/core/workers/chunks/{ea9ae9d2aef01af90896.js → 80d9bb9f247ecdfa266f.js} +1 -1
- package/assets/esri/core/workers/chunks/846e5e51dc278bc3f80f.js +1 -0
- package/assets/esri/core/workers/chunks/{f73563b23fd8dc6cf2fe.js → 86df7357a2bac73c0ef4.js} +1 -1
- package/assets/esri/core/workers/chunks/8b541cbf82a5ba0317ee.js +1 -0
- package/assets/esri/core/workers/chunks/{08a98e85e86ce560d005.js → 8bd621693692050d76aa.js} +1 -1
- package/assets/esri/core/workers/chunks/{630b31a205d9db7147d0.js → 8cdece03397d01767593.js} +1 -1
- package/assets/esri/core/workers/chunks/{b9a726f3bbad6fd4d65a.js → 8e91be2e38010391e351.js} +1 -1
- package/assets/esri/core/workers/chunks/{cbddfcf57f72428a6992.js → 90f96a2ddfb25d851d4d.js} +1 -1
- package/assets/esri/core/workers/chunks/91a3181071874525ed44.js +1 -0
- package/assets/esri/core/workers/chunks/{b7c81a5bbcdd94b8a7f6.js → 9979ff59a144fe1df80b.js} +1 -1
- package/assets/esri/core/workers/chunks/{0422c5160491fbcf01dc.js → 9d97a20f69047d0c47cc.js} +1 -1
- package/assets/esri/core/workers/chunks/9f0e8dd5c9bacfc0f03c.js +1 -0
- package/assets/esri/core/workers/chunks/{a8e4726c1db23324eb54.js → 9fc1206ad378f0829e0a.js} +1 -1
- package/assets/esri/core/workers/chunks/{09e8babe75407c2e64c4.js → a351ab5082772b267895.js} +1 -1
- package/assets/esri/core/workers/chunks/{43575b9acf9819f195f9.js → a3bbf5da4f7830d2a2a1.js} +1 -1
- package/assets/esri/core/workers/chunks/{b03eaba5fa75d6ef834a.js → a47f74fc959b11f029a5.js} +1 -1
- package/assets/esri/core/workers/chunks/{cb4b17f5cf96a9e36781.js → a8cf23c3a55c1834178c.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd55151bfac60b0deaac.js → ac4636e82a103e2c27ca.js} +1 -1
- package/assets/esri/core/workers/chunks/ae7ba94af6d4fd97dd8b.js +1 -0
- package/assets/esri/core/workers/chunks/af13150c711ba7b7f3ac.js +1 -0
- package/assets/esri/core/workers/chunks/{4adf3a8c6b49c381a633.js → b0653f63745e756f55fe.js} +1 -1
- package/assets/esri/core/workers/chunks/bab0aa000c65d5c256b7.js +1 -0
- package/assets/esri/core/workers/chunks/{e06cd10b6f8f363b5131.js → bdc751a752a7ff1387de.js} +1 -1
- package/assets/esri/core/workers/chunks/{70aa04b09143b7dd2ecb.js → c2199fb8f7a54a0ef18a.js} +1 -1
- package/assets/esri/core/workers/chunks/c3f462d11ed570482e7a.js +1 -0
- package/assets/esri/core/workers/chunks/{830d99e6c58a52a58973.js → c8cb5fe1d23145c4842b.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f87f22e00e3218661c6.js → ce53413dd3e2062e8378.js} +1 -1
- package/assets/esri/core/workers/chunks/cfa6d1b63b794febe70a.js +1 -0
- package/assets/esri/core/workers/chunks/de30ff1fcb6079178958.js +1 -0
- package/assets/esri/core/workers/chunks/e076c5523dfb6c53a825.js +1 -0
- package/assets/esri/core/workers/chunks/e12090768e945091cc5d.js +1 -0
- package/assets/esri/core/workers/chunks/e3950975030412ff6e20.js +1 -0
- package/assets/esri/core/workers/chunks/e8b7d1c586aff229484c.js +1 -0
- package/assets/esri/core/workers/chunks/{710a6268de62003af825.js → e8d1f91dc97b42d0c4f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{6747503826bfc94bc6c0.js → eb5213ffb83d83a4dd05.js} +1 -1
- package/assets/esri/core/workers/chunks/{eea0fb90cd5cc80de388.js → fa750885bb27bbb03e7d.js} +1 -1
- package/assets/esri/core/workers/chunks/{e67c4b7ad06d8404895a.js → fab4ee57b7c5376c9ccd.js} +1 -1
- package/core/date.js +1 -1
- package/interfaces.d.ts +4 -4
- package/kernel.js +1 -1
- package/layers/StreamLayer.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/sources/geojson/geojson.js +1 -1
- package/layers/support/RangeDomain.js +1 -1
- package/layers/support/domainUtils.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/labelFormatUtils.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/3d/layers/graphics/elevationAlignPointsInFeatures.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/snappingCandidateElevationAlignment.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/Legend/LegendViewModel.js +1 -1
- package/widgets/Popup.js +1 -1
- package/widgets/support/dataUtils.js +5 -0
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/020825b9c12f2b6386a7.js +0 -1
- package/assets/esri/core/workers/chunks/02d235849ba93541d7ad.js +0 -1
- package/assets/esri/core/workers/chunks/0a3da4b73beeaacd4667.js +0 -1
- package/assets/esri/core/workers/chunks/10dc578a90e1194c8720.js +0 -1
- package/assets/esri/core/workers/chunks/1eb5468c7cf653338d53.js +0 -1
- package/assets/esri/core/workers/chunks/1f30ea1a598ddd2e5df3.js +0 -1
- package/assets/esri/core/workers/chunks/2304b7456ced997904f6.js +0 -1
- package/assets/esri/core/workers/chunks/366cf9bba6989342e447.js +0 -1
- package/assets/esri/core/workers/chunks/43f7d9366d06d69e7c50.js +0 -1
- package/assets/esri/core/workers/chunks/4672504d6fe649da19f2.js +0 -1
- package/assets/esri/core/workers/chunks/56a61a8bff08ae273de4.js +0 -1
- package/assets/esri/core/workers/chunks/580e7d3cbf6797a50ded.js +0 -1
- package/assets/esri/core/workers/chunks/6046be598e8c673eeb1f.js +0 -1
- package/assets/esri/core/workers/chunks/6334a8a7b671d4042108.js +0 -1
- package/assets/esri/core/workers/chunks/69c1c850af7ee33258e0.js +0 -1
- package/assets/esri/core/workers/chunks/6bc1f6f8a2408fa4bb6a.js +0 -1
- package/assets/esri/core/workers/chunks/8f7997e8e6ee9e56239f.js +0 -1
- package/assets/esri/core/workers/chunks/a160576f21ada91995ac.js +0 -1
- package/assets/esri/core/workers/chunks/a50ec5b647a160199cb2.js +0 -1
- package/assets/esri/core/workers/chunks/abcfe3bda6f40318b092.js +0 -1
- package/assets/esri/core/workers/chunks/b138196d304883efd5f6.js +0 -1
- package/assets/esri/core/workers/chunks/b3f5e97b47e896c6008a.js +0 -1
- package/assets/esri/core/workers/chunks/c447f4bf0e5f012f8f9b.js +0 -1
- package/assets/esri/core/workers/chunks/c87e9280681c20d042b5.js +0 -1
- package/assets/esri/core/workers/chunks/cc86c8c88124d916e1b3.js +0 -1
- package/assets/esri/core/workers/chunks/d878bb6409df183ea0ce.js +0 -1
- package/assets/esri/core/workers/chunks/ef757269fb3fe0e74ef8.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3370],{54938:(e,t,r)=>{r.r(t),r.d(t,{default:()=>F});var s=r(43697),i=r(3172),a=r(46791),n=r(70921),o=r(96674),l=r(22974),u=r(83379),c=r(68668),p=r(92604),d=r(70586),h=r(95330),y=r(17452),m=r(5600),g=(r(75215),r(52011)),f=r(30556),b=r(82971),v=r(48522),w=r(15235),S=r(8238),_=r(92036),M=(r(67676),r(80442),r(70171));const C=new Set(["ar","bs","ca","hr","cs","da","nl","en","et","fi","fr","de","el","he","hu","id","it","ja","ko","lv","lt","nb","pl","ro","ru","sr","es","sv","th","tr","uk","vi"]);let T=class extends _.Z{constructor(e){super(e),this.id=null,this.language=null,this.serviceUrl="https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/webmaps"}getLanguageParamValue(){if(this.language)return this.language;const e=(0,M.Kd)().toLowerCase();switch(e){case"pt-br":return"pt-BR";case"pt-pt":return"pt-PT";case"zh-cn":return"zh-CN";case"zh-hk":return"zh-HK";case"zh-tw":return"zh-TW"}const t=(0,M.G3)(e);return"pt"===t?"pt-BR":t&&C.has(t)?t:"global"}};(0,s._)([(0,m.Cb)()],T.prototype,"id",void 0),(0,s._)([(0,m.Cb)()],T.prototype,"language",void 0),(0,s._)([(0,m.Cb)()],T.prototype,"serviceUrl",void 0),T=(0,s._)([(0,g.j)("esri.support.BasemapStyle")],T);const I=T;var L,x=r(15650);let O=0,k=L=class extends((0,o.eC)(u.Z)){constructor(e){super(e),this.id=null,this.portalItem=null,this.spatialReference=null,this.style=null,this.thumbnailUrl=null,this.title="Basemap",this.id=Date.now().toString(16)+"-basemap-"+O++,this.baseLayers=new a.Z,this.referenceLayers=new a.Z;const t=e=>{e.parent&&e.parent!==this&&"remove"in e.parent&&e.parent.remove(e),e.parent=this,"elevation"===e.type&&p.Z.getLogger(this).error(`Layer '${e.title}, id:${e.id}' of type '${e.type}' is not supported as a basemap layer and will therefore be ignored.`)},r=e=>{e.parent=null};this.addHandles([this.baseLayers.on("after-add",(e=>t(e.item))),this.referenceLayers.on("after-add",(e=>t(e.item))),this.baseLayers.on("after-remove",(e=>r(e.item))),this.referenceLayers.on("after-remove",(e=>r(e.item)))])}initialize(){this.when().catch((e=>{p.Z.getLogger(this).error("#load()",`Failed to load basemap (title: '${this.title}', id: '${this.id}')`,e)})),this.resourceInfo&&this.read(this.resourceInfo.data,this.resourceInfo.context)}destroy(){const e=this.baseLayers.toArray();for(const t of e)t.destroy();const t=this.referenceLayers.toArray();for(const e of t)e.destroy();this.baseLayers.destroy(),this.referenceLayers.destroy(),this.portalItem=(0,d.SC)(this.portalItem)}normalizeCtorArgs(e){return e&&"resourceInfo"in e&&(this._set("resourceInfo",e.resourceInfo),delete(e={...e}).resourceInfo),e}set baseLayers(e){this._set("baseLayers",(0,n.Z)(e,this._get("baseLayers")))}_writeBaseLayers(e,t,r){const s=[];e?(r={...r,layerContainerType:"basemap"},this.baseLayers.forEach((e=>{const t=(0,x.Nw)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&s.push(t)})),this.referenceLayers.forEach((e=>{const t=(0,x.Nw)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&("scene"!==e.type&&(t.isReference=!0),s.push(t))})),t.baseMapLayers=s):t.baseMapLayers=s}set referenceLayers(e){this._set("referenceLayers",(0,n.Z)(e,this._get("referenceLayers")))}writeTitle(e,t){t.title=e||"Basemap"}load(e){return this.addResolvingPromise(this._loadFromSource(e)),Promise.resolve(this)}loadAll(){return(0,c.G)(this,(e=>{e(this.baseLayers,this.referenceLayers)}))}clone(){const e={id:this.id,title:this.title,portalItem:this.portalItem,baseLayers:this.baseLayers.map((e=>(0,l.tZ)(e)?e.clone():e)),referenceLayers:this.referenceLayers.map((e=>(0,l.tZ)(e)?e.clone():e))};return this.loaded&&(e.loadStatus="loaded"),new L({resourceInfo:this.resourceInfo}).set(e)}read(e,t){this.resourceInfo||this._set("resourceInfo",{data:e,context:t}),super.read(e,t)}write(e,t){return e=e||{},t?.origin||(t={origin:"web-map",...t}),super.write(e,t),!this.loaded&&this.resourceInfo?.data.baseMapLayers&&(e.baseMapLayers=this.resourceInfo.data.baseMapLayers.map((e=>{const t=(0,l.d9)(e);return t.url&&(0,y.oC)(t.url)&&(t.url=`https:${t.url}`),t.templateUrl&&(0,y.oC)(t.templateUrl)&&(t.templateUrl=`https:${t.templateUrl}`),t}))),e}async _loadFromSource(e){const{resourceInfo:t,portalItem:r,style:s}=this;(0,h.k_)(e);const i=[];if(t){const r=t.context?t.context.url:null;if(i.push(this._loadLayersFromJSON(t.data,r,e)),t.data.id&&!t.data.title){const e=t.data.id;i.push((0,S.g)(e).then((e=>{e&&this.read({title:e},t.context)})))}}else r?i.push(this._loadFromItem(r,e)):s&&i.push(this._loadFromStylesService(s,e));await Promise.all(i)}async _loadLayersFromJSON(e,t,s){const i=this.resourceInfo?.context,a=this.portalItem?.portal||i?.portal||null,n=U[i?.origin||""]??"web-map",{populateOperationalLayers:o}=await Promise.all([r.e(3615),r.e(24)]).then(r.bind(r,70024)),l=[];if((0,h.k_)(s),e.baseMapLayers&&Array.isArray(e.baseMapLayers)){const r={context:{...i,origin:n,url:t,portal:a,layerContainerType:"basemap"},defaultLayerType:"DefaultTileLayer"},s=e=>"web-scene"===n&&"ArcGISSceneServiceLayer"===e.layerType||e.isReference,u=o(this.baseLayers,e.baseMapLayers.filter((e=>!s(e))),r);l.push(u);const c=o(this.referenceLayers,e.baseMapLayers.filter(s),r);l.push(c)}await Promise.allSettled(l)}async _loadFromItem(e,t){const r=await e.load(t),s=await r.fetchData("json",t),i=(0,y.mN)(e.itemUrl??"");return this._set("resourceInfo",{data:s.baseMap??{},context:{origin:G[e.type||""]??"web-map",portal:e.portal||v.Z.getDefault(),url:i}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:s.spatialReference},this.resourceInfo.context),this.read({title:e.title,thumbnailUrl:e.thumbnailUrl},{origin:"portal-item",portal:e.portal||v.Z.getDefault(),url:i}),this._loadLayersFromJSON(this.resourceInfo.data,i,t)}async _loadFromStylesService(e,t){const r=`${e.serviceUrl}/${e.id}`,s=(await(0,i.Z)(r,{query:{language:e.getLanguageParamValue()},signal:t?.signal})).data;if(s.baseMap&&Array.isArray(s.baseMap.baseMapLayers))for(const e of s.baseMap.baseMapLayers)if(!e.customParameters&&e.styleUrl?.includes("?")){const t=(0,y.mN)(e.styleUrl);t.query&&(e.styleUrl=t.path,e.customParameters=t.query)}const a=(0,y.mN)(r);return this._set("resourceInfo",{data:s.baseMap??{},context:{origin:"web-map",url:a}}),this.read(this.resourceInfo.data,this.resourceInfo.context),this.read({spatialReference:s.spatialReference},this.resourceInfo.context),this._loadLayersFromJSON(this.resourceInfo.data,a,t)}static fromId(e){const t=S.s[e];return t?t.itemId?new L({portalItem:{id:t.itemId,portal:{url:"https://www.arcgis.com"}}}):L.fromJSON(t,{origin:t.is3d?"web-scene":"web-map"}):null}};(0,s._)([(0,m.Cb)({json:{write:{ignoreOrigin:!0,target:"baseMapLayers",writer(e,t,r,s){this._writeBaseLayers(e,t,s)}},origins:{"web-scene":{write:{ignoreOrigin:!0,target:{baseMapLayers:{type:a.Z}},writer(e,t,r,s){this._writeBaseLayers(e,t,s)}}}}}})],k.prototype,"baseLayers",null),(0,s._)([(0,m.Cb)({type:String,json:{origins:{"web-scene":{write:!0}}}})],k.prototype,"id",void 0),(0,s._)([(0,m.Cb)({type:w.default})],k.prototype,"portalItem",void 0),(0,s._)([(0,m.Cb)()],k.prototype,"referenceLayers",null),(0,s._)([(0,m.Cb)({readOnly:!0})],k.prototype,"resourceInfo",void 0),(0,s._)([(0,m.Cb)({type:b.Z})],k.prototype,"spatialReference",void 0),(0,s._)([(0,m.Cb)({type:I})],k.prototype,"style",void 0),(0,s._)([(0,m.Cb)()],k.prototype,"thumbnailUrl",void 0),(0,s._)([(0,m.Cb)({type:String,json:{origins:{"web-scene":{write:{isRequired:!0}}}}})],k.prototype,"title",void 0),(0,s._)([(0,f.c)("title")],k.prototype,"writeTitle",null),k=L=(0,s._)([(0,g.j)("esri.Basemap")],k);const G={"Web Scene":"web-scene","Web Map":"web-map","Link Chart":"link-chart"},U={"web-scene":"web-scene","web-map":"web-map","link-chart":"link-chart"},F=k},52138:(e,t,r)=>{r.d(t,{A:()=>m,a:()=>S,b:()=>p,c:()=>y,d:()=>h,e:()=>w,f:()=>b,g:()=>n,i:()=>l,k:()=>d,m:()=>u,s:()=>a,t:()=>o,w:()=>c,y:()=>M,z:()=>_});var s=r(65617),i=r(46851);function a(e,t,r,s,i,a,n,o,l,u,c,p,d,h,y,m,g){return e[0]=t,e[1]=r,e[2]=s,e[3]=i,e[4]=a,e[5]=n,e[6]=o,e[7]=l,e[8]=u,e[9]=c,e[10]=p,e[11]=d,e[12]=h,e[13]=y,e[14]=m,e[15]=g,e}function n(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 r=t[1],s=t[2],i=t[3],a=t[6],n=t[7],o=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=s,e[9]=a,e[11]=t[14],e[12]=i,e[13]=n,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 r=t[0],s=t[1],i=t[2],a=t[3],n=t[4],o=t[5],l=t[6],u=t[7],c=t[8],p=t[9],d=t[10],h=t[11],y=t[12],m=t[13],g=t[14],f=t[15],b=r*o-s*n,v=r*l-i*n,w=r*u-a*n,S=s*l-i*o,_=s*u-a*o,M=i*u-a*l,C=c*m-p*y,T=c*g-d*y,I=c*f-h*y,L=p*g-d*m,x=p*f-h*m,O=d*f-h*g;let k=b*O-v*x+w*L+S*I-_*T+M*C;return k?(k=1/k,e[0]=(o*O-l*x+u*L)*k,e[1]=(i*x-s*O-a*L)*k,e[2]=(m*M-g*_+f*S)*k,e[3]=(d*_-p*M-h*S)*k,e[4]=(l*I-n*O-u*T)*k,e[5]=(r*O-i*I+a*T)*k,e[6]=(g*w-y*M-f*v)*k,e[7]=(c*M-d*w+h*v)*k,e[8]=(n*x-o*I+u*C)*k,e[9]=(s*I-r*x-a*C)*k,e[10]=(y*_-m*w+f*b)*k,e[11]=(p*w-c*_-h*b)*k,e[12]=(o*T-n*L-l*C)*k,e[13]=(r*L-s*T+i*C)*k,e[14]=(m*v-y*S-g*b)*k,e[15]=(c*S-p*v+d*b)*k,e):null}function u(e,t,r){const s=t[0],i=t[1],a=t[2],n=t[3],o=t[4],l=t[5],u=t[6],c=t[7],p=t[8],d=t[9],h=t[10],y=t[11],m=t[12],g=t[13],f=t[14],b=t[15];let v=r[0],w=r[1],S=r[2],_=r[3];return e[0]=v*s+w*o+S*p+_*m,e[1]=v*i+w*l+S*d+_*g,e[2]=v*a+w*u+S*h+_*f,e[3]=v*n+w*c+S*y+_*b,v=r[4],w=r[5],S=r[6],_=r[7],e[4]=v*s+w*o+S*p+_*m,e[5]=v*i+w*l+S*d+_*g,e[6]=v*a+w*u+S*h+_*f,e[7]=v*n+w*c+S*y+_*b,v=r[8],w=r[9],S=r[10],_=r[11],e[8]=v*s+w*o+S*p+_*m,e[9]=v*i+w*l+S*d+_*g,e[10]=v*a+w*u+S*h+_*f,e[11]=v*n+w*c+S*y+_*b,v=r[12],w=r[13],S=r[14],_=r[15],e[12]=v*s+w*o+S*p+_*m,e[13]=v*i+w*l+S*d+_*g,e[14]=v*a+w*u+S*h+_*f,e[15]=v*n+w*c+S*y+_*b,e}function c(e,t,r){const s=r[0],i=r[1],a=r[2];if(t===e)e[12]=t[0]*s+t[4]*i+t[8]*a+t[12],e[13]=t[1]*s+t[5]*i+t[9]*a+t[13],e[14]=t[2]*s+t[6]*i+t[10]*a+t[14],e[15]=t[3]*s+t[7]*i+t[11]*a+t[15];else{const r=t[0],n=t[1],o=t[2],l=t[3],u=t[4],c=t[5],p=t[6],d=t[7],h=t[8],y=t[9],m=t[10],g=t[11];e[0]=r,e[1]=n,e[2]=o,e[3]=l,e[4]=u,e[5]=c,e[6]=p,e[7]=d,e[8]=h,e[9]=y,e[10]=m,e[11]=g,e[12]=r*s+u*i+h*a+t[12],e[13]=n*s+c*i+y*a+t[13],e[14]=o*s+p*i+m*a+t[14],e[15]=l*s+d*i+g*a+t[15]}return e}function p(e,t,r){const s=r[0],i=r[1],a=r[2];return e[0]=t[0]*s,e[1]=t[1]*s,e[2]=t[2]*s,e[3]=t[3]*s,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function d(e,t,r,s){let a,n,o,l,u,c,p,d,h,y,m,g,f,b,v,w,S,_,M,C,T,I,L,x,O=s[0],k=s[1],G=s[2],U=Math.sqrt(O*O+k*k+G*G);return U<(0,i.g)()?null:(U=1/U,O*=U,k*=U,G*=U,a=Math.sin(r),n=Math.cos(r),o=1-n,l=t[0],u=t[1],c=t[2],p=t[3],d=t[4],h=t[5],y=t[6],m=t[7],g=t[8],f=t[9],b=t[10],v=t[11],w=O*O*o+n,S=k*O*o+G*a,_=G*O*o-k*a,M=O*k*o-G*a,C=k*k*o+n,T=G*k*o+O*a,I=O*G*o+k*a,L=k*G*o-O*a,x=G*G*o+n,e[0]=l*w+d*S+g*_,e[1]=u*w+h*S+f*_,e[2]=c*w+y*S+b*_,e[3]=p*w+m*S+v*_,e[4]=l*M+d*C+g*T,e[5]=u*M+h*C+f*T,e[6]=c*M+y*C+b*T,e[7]=p*M+m*C+v*T,e[8]=l*I+d*L+g*x,e[9]=u*I+h*L+f*x,e[10]=c*I+y*L+b*x,e[11]=p*I+m*L+v*x,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function h(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 y(e,t,r){if(0===t)return n(e);let s,a,o,l=r[0],u=r[1],c=r[2],p=Math.sqrt(l*l+u*u+c*c);return p<(0,i.g)()?null:(p=1/p,l*=p,u*=p,c*=p,s=Math.sin(t),a=Math.cos(t),o=1-a,e[0]=l*l*o+a,e[1]=u*l*o+c*s,e[2]=c*l*o-u*s,e[3]=0,e[4]=l*u*o-c*s,e[5]=u*u*o+a,e[6]=c*u*o+l*s,e[7]=0,e[8]=l*c*o+u*s,e[9]=u*c*o-l*s,e[10]=c*c*o+a,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function m(e,t){const r=Math.sin(t),s=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=s,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function g(e,t,r){const s=t[0],i=t[1],a=t[2],n=t[3],o=s+s,l=i+i,u=a+a,c=s*o,p=s*l,d=s*u,h=i*l,y=i*u,m=a*u,g=n*o,f=n*l,b=n*u;return e[0]=1-(h+m),e[1]=p+b,e[2]=d-f,e[3]=0,e[4]=p-b,e[5]=1-(c+m),e[6]=y+g,e[7]=0,e[8]=d+f,e[9]=y-g,e[10]=1-(c+h),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}const f=(0,s.c)();function b(e,t,r,s){const i=t[0],a=t[1],n=t[2],o=t[3],l=i+i,u=a+a,c=n+n,p=i*l,d=i*u,h=i*c,y=a*u,m=a*c,g=n*c,f=o*l,b=o*u,v=o*c,w=s[0],S=s[1],_=s[2];return e[0]=(1-(y+g))*w,e[1]=(d+v)*w,e[2]=(h-b)*w,e[3]=0,e[4]=(d-v)*S,e[5]=(1-(p+g))*S,e[6]=(m+f)*S,e[7]=0,e[8]=(h+b)*_,e[9]=(m-f)*_,e[10]=(1-(p+y))*_,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function v(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function w(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 S(e,t){if(e===t)return!0;const r=e[0],s=e[1],a=e[2],n=e[3],o=e[4],l=e[5],u=e[6],c=e[7],p=e[8],d=e[9],h=e[10],y=e[11],m=e[12],g=e[13],f=e[14],b=e[15],v=t[0],w=t[1],S=t[2],_=t[3],M=t[4],C=t[5],T=t[6],I=t[7],L=t[8],x=t[9],O=t[10],k=t[11],G=t[12],U=t[13],F=t[14],N=t[15],V=(0,i.g)();return Math.abs(r-v)<=V*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(s-w)<=V*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(a-S)<=V*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(n-_)<=V*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(o-M)<=V*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(l-C)<=V*Math.max(1,Math.abs(l),Math.abs(C))&&Math.abs(u-T)<=V*Math.max(1,Math.abs(u),Math.abs(T))&&Math.abs(c-I)<=V*Math.max(1,Math.abs(c),Math.abs(I))&&Math.abs(p-L)<=V*Math.max(1,Math.abs(p),Math.abs(L))&&Math.abs(d-x)<=V*Math.max(1,Math.abs(d),Math.abs(x))&&Math.abs(h-O)<=V*Math.max(1,Math.abs(h),Math.abs(O))&&Math.abs(y-k)<=V*Math.max(1,Math.abs(y),Math.abs(k))&&Math.abs(m-G)<=V*Math.max(1,Math.abs(m),Math.abs(G))&&Math.abs(g-U)<=V*Math.max(1,Math.abs(g),Math.abs(U))&&Math.abs(f-F)<=V*Math.max(1,Math.abs(f),Math.abs(F))&&Math.abs(b-N)<=V*Math.max(1,Math.abs(b),Math.abs(N))}function _(e){const t=(0,i.g)(),r=e[0],s=e[1],a=e[2],n=e[4],o=e[5],l=e[6],u=e[8],c=e[9],p=e[10];return Math.abs(1-(r*r+n*n+u*u))<=t&&Math.abs(1-(s*s+o*o+c*c))<=t&&Math.abs(1-(a*a+l*l+p*p))<=t}function M(e){return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[8]&&0===e[9]&&1===e[10]}const C=u,T=v;Object.freeze(Object.defineProperty({__proto__:null,add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e},adjoint:function(e,t){const r=t[0],s=t[1],i=t[2],a=t[3],n=t[4],o=t[5],l=t[6],u=t[7],c=t[8],p=t[9],d=t[10],h=t[11],y=t[12],m=t[13],g=t[14],f=t[15];return e[0]=o*(d*f-h*g)-p*(l*f-u*g)+m*(l*h-u*d),e[1]=-(s*(d*f-h*g)-p*(i*f-a*g)+m*(i*h-a*d)),e[2]=s*(l*f-u*g)-o*(i*f-a*g)+m*(i*u-a*l),e[3]=-(s*(l*h-u*d)-o*(i*h-a*d)+p*(i*u-a*l)),e[4]=-(n*(d*f-h*g)-c*(l*f-u*g)+y*(l*h-u*d)),e[5]=r*(d*f-h*g)-c*(i*f-a*g)+y*(i*h-a*d),e[6]=-(r*(l*f-u*g)-n*(i*f-a*g)+y*(i*u-a*l)),e[7]=r*(l*h-u*d)-n*(i*h-a*d)+c*(i*u-a*l),e[8]=n*(p*f-h*m)-c*(o*f-u*m)+y*(o*h-u*p),e[9]=-(r*(p*f-h*m)-c*(s*f-a*m)+y*(s*h-a*p)),e[10]=r*(o*f-u*m)-n*(s*f-a*m)+y*(s*u-a*o),e[11]=-(r*(o*h-u*p)-n*(s*h-a*p)+c*(s*u-a*o)),e[12]=-(n*(p*g-d*m)-c*(o*g-l*m)+y*(o*d-l*p)),e[13]=r*(p*g-d*m)-c*(s*g-i*m)+y*(s*d-i*p),e[14]=-(r*(o*g-l*m)-n*(s*g-i*m)+y*(s*l-i*o)),e[15]=r*(o*d-l*p)-n*(s*d-i*p)+c*(s*l-i*o),e},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},determinant:function(e){const t=e[0],r=e[1],s=e[2],i=e[3],a=e[4],n=e[5],o=e[6],l=e[7],u=e[8],c=e[9],p=e[10],d=e[11],h=e[12],y=e[13],m=e[14],g=e[15];return(t*n-r*a)*(p*g-d*m)-(t*o-s*a)*(c*g-d*y)+(t*l-i*a)*(c*m-p*y)+(r*o-s*n)*(u*g-d*h)-(r*l-i*n)*(u*m-p*h)+(s*l-i*o)*(u*y-c*h)},equals:S,exactEquals:w,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)},fromQuat:function(e,t){const r=t[0],s=t[1],i=t[2],a=t[3],n=r+r,o=s+s,l=i+i,u=r*n,c=s*n,p=s*o,d=i*n,h=i*o,y=i*l,m=a*n,g=a*o,f=a*l;return e[0]=1-p-y,e[1]=c+f,e[2]=d-g,e[3]=0,e[4]=c-f,e[5]=1-u-y,e[6]=h+m,e[7]=0,e[8]=d+g,e[9]=h-m,e[10]=1-u-p,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromQuat2:function(e,t){const r=f,s=-t[0],i=-t[1],a=-t[2],n=t[3],o=t[4],l=t[5],u=t[6],c=t[7],p=s*s+i*i+a*a+n*n;return p>0?(r[0]=2*(o*n+c*s+l*a-u*i)/p,r[1]=2*(l*n+c*i+u*s-o*a)/p,r[2]=2*(u*n+c*a+o*i-l*s)/p):(r[0]=2*(o*n+c*s+l*a-u*i),r[1]=2*(l*n+c*i+u*s-o*a),r[2]=2*(u*n+c*a+o*i-l*s)),g(e,t,r),e},fromRotation:y,fromRotationTranslation:g,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(e,t,r,s,i){const a=t[0],n=t[1],o=t[2],l=t[3],u=a+a,c=n+n,p=o+o,d=a*u,h=a*c,y=a*p,m=n*c,g=n*p,f=o*p,b=l*u,v=l*c,w=l*p,S=s[0],_=s[1],M=s[2],C=i[0],T=i[1],I=i[2],L=(1-(m+f))*S,x=(h+w)*S,O=(y-v)*S,k=(h-w)*_,G=(1-(d+f))*_,U=(g+b)*_,F=(y+v)*M,N=(g-b)*M,V=(1-(d+m))*M;return e[0]=L,e[1]=x,e[2]=O,e[3]=0,e[4]=k,e[5]=G,e[6]=U,e[7]=0,e[8]=F,e[9]=N,e[10]=V,e[11]=0,e[12]=r[0]+C-(L*C+k*T+F*I),e[13]=r[1]+T-(x*C+G*T+N*I),e[14]=r[2]+I-(O*C+U*T+V*I),e[15]=1,e},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},fromTranslation:h,fromXRotation:m,fromYRotation:function(e,t){const r=Math.sin(t),s=Math.cos(t);return e[0]=s,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},fromZRotation:function(e,t){const r=Math.sin(t),s=Math.cos(t);return e[0]=s,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=s,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},frustum:function(e,t,r,s,i,a,n){const o=1/(r-t),l=1/(i-s),u=1/(a-n);return e[0]=2*a*o,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*a*l,e[6]=0,e[7]=0,e[8]=(r+t)*o,e[9]=(i+s)*l,e[10]=(n+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=n*a*2*u,e[15]=0,e},getRotation:function(e,t){const r=t[0]+t[5]+t[10];let s=0;return r>0?(s=2*Math.sqrt(r+1),e[3]=.25*s,e[0]=(t[6]-t[9])/s,e[1]=(t[8]-t[2])/s,e[2]=(t[1]-t[4])/s):t[0]>t[5]&&t[0]>t[10]?(s=2*Math.sqrt(1+t[0]-t[5]-t[10]),e[3]=(t[6]-t[9])/s,e[0]=.25*s,e[1]=(t[1]+t[4])/s,e[2]=(t[8]+t[2])/s):t[5]>t[10]?(s=2*Math.sqrt(1+t[5]-t[0]-t[10]),e[3]=(t[8]-t[2])/s,e[0]=(t[1]+t[4])/s,e[1]=.25*s,e[2]=(t[6]+t[9])/s):(s=2*Math.sqrt(1+t[10]-t[0]-t[5]),e[3]=(t[1]-t[4])/s,e[0]=(t[8]+t[2])/s,e[1]=(t[6]+t[9])/s,e[2]=.25*s),e},getScaling:function(e,t){const r=t[0],s=t[1],i=t[2],a=t[4],n=t[5],o=t[6],l=t[8],u=t[9],c=t[10];return e[0]=Math.sqrt(r*r+s*s+i*i),e[1]=Math.sqrt(a*a+n*n+o*o),e[2]=Math.sqrt(l*l+u*u+c*c),e},getTranslation:function(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e},hasIdentityRotation:M,identity:n,invert:l,invertOrIdentity:function(e,t){return l(e,t)||n(e),e},isOrthoNormal:_,lookAt:function(e,t,r,s){const a=t[0],o=t[1],l=t[2];let u=a-r[0],c=o-r[1],p=l-r[2];const d=(0,i.g)();if(Math.abs(u)<d&&Math.abs(c)<d&&Math.abs(p)<d)return void n(e);let h=1/Math.sqrt(u*u+c*c+p*p);u*=h,c*=h,p*=h;const y=s[0],m=s[1],g=s[2];let f=m*p-g*c,b=g*u-y*p,v=y*c-m*u;h=Math.sqrt(f*f+b*b+v*v),h?(h=1/h,f*=h,b*=h,v*=h):(f=0,b=0,v=0);let w=c*v-p*b,S=p*f-u*v,_=u*b-c*f;h=Math.sqrt(w*w+S*S+_*_),h?(h=1/h,w*=h,S*=h,_*=h):(w=0,S=0,_=0),e[0]=f,e[1]=w,e[2]=u,e[3]=0,e[4]=b,e[5]=S,e[6]=c,e[7]=0,e[8]=v,e[9]=_,e[10]=p,e[11]=0,e[12]=-(f*a+b*o+v*l),e[13]=-(w*a+S*o+_*l),e[14]=-(u*a+c*o+p*l),e[15]=1},mul:C,multiply:u,multiplyScalar:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e},multiplyScalarAndAdd:function(e,t,r,s){return e[0]=t[0]+r[0]*s,e[1]=t[1]+r[1]*s,e[2]=t[2]+r[2]*s,e[3]=t[3]+r[3]*s,e[4]=t[4]+r[4]*s,e[5]=t[5]+r[5]*s,e[6]=t[6]+r[6]*s,e[7]=t[7]+r[7]*s,e[8]=t[8]+r[8]*s,e[9]=t[9]+r[9]*s,e[10]=t[10]+r[10]*s,e[11]=t[11]+r[11]*s,e[12]=t[12]+r[12]*s,e[13]=t[13]+r[13]*s,e[14]=t[14]+r[14]*s,e[15]=t[15]+r[15]*s,e},ortho:function(e,t,r,s,i,a,n){const o=1/(t-r),l=1/(s-i),u=1/(a-n);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+r)*o,e[13]=(i+s)*l,e[14]=(n+a)*u,e[15]=1,e},perspective:function(e,t,r,s,i){const a=1/Math.tan(t/2);let n;return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,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!=i&&i!==1/0?(n=1/(s-i),e[10]=(i+s)*n,e[14]=2*i*s*n):(e[10]=-1,e[14]=-2*s),e},perspectiveFromFieldOfView:function(e,t,r,s){const i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),n=Math.tan(t.leftDegrees*Math.PI/180),o=Math.tan(t.rightDegrees*Math.PI/180),l=2/(n+o),u=2/(i+a);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]=-(n-o)*l*.5,e[9]=(i-a)*u*.5,e[10]=s/(r-s),e[11]=-1,e[12]=0,e[13]=0,e[14]=s*r/(r-s),e[15]=0,e},rotate:d,rotateX:function(e,t,r){const s=Math.sin(r),i=Math.cos(r),a=t[4],n=t[5],o=t[6],l=t[7],u=t[8],c=t[9],p=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]=a*i+u*s,e[5]=n*i+c*s,e[6]=o*i+p*s,e[7]=l*i+d*s,e[8]=u*i-a*s,e[9]=c*i-n*s,e[10]=p*i-o*s,e[11]=d*i-l*s,e},rotateY:function(e,t,r){const s=Math.sin(r),i=Math.cos(r),a=t[0],n=t[1],o=t[2],l=t[3],u=t[8],c=t[9],p=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]=a*i-u*s,e[1]=n*i-c*s,e[2]=o*i-p*s,e[3]=l*i-d*s,e[8]=a*s+u*i,e[9]=n*s+c*i,e[10]=o*s+p*i,e[11]=l*s+d*i,e},rotateZ:function(e,t,r){const s=Math.sin(r),i=Math.cos(r),a=t[0],n=t[1],o=t[2],l=t[3],u=t[4],c=t[5],p=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]=a*i+u*s,e[1]=n*i+c*s,e[2]=o*i+p*s,e[3]=l*i+d*s,e[4]=u*i-a*s,e[5]=c*i-n*s,e[6]=p*i-o*s,e[7]=d*i-l*s,e},scale:p,set:a,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]+")"},sub:T,subtract:v,targetTo:function(e,t,r,s){const i=t[0],a=t[1],n=t[2],o=s[0],l=s[1],u=s[2];let c=i-r[0],p=a-r[1],d=n-r[2],h=c*c+p*p+d*d;h>0&&(h=1/Math.sqrt(h),c*=h,p*=h,d*=h);let y=l*d-u*p,m=u*c-o*d,g=o*p-l*c;return h=y*y+m*m+g*g,h>0&&(h=1/Math.sqrt(h),y*=h,m*=h,g*=h),e[0]=y,e[1]=m,e[2]=g,e[3]=0,e[4]=p*g-d*m,e[5]=d*y-c*g,e[6]=c*m-p*y,e[7]=0,e[8]=c,e[9]=p,e[10]=d,e[11]=0,e[12]=i,e[13]=a,e[14]=n,e[15]=1,e},translate:c,transpose:o},Symbol.toStringTag,{value:"Module"}))},88669:(e,t,r)=>{function s(){return[0,0,0,0]}function i(e,t,r,s){return[e,t,r,s]}function a(e,t){return new Float64Array(e,t,4)}function n(){return i(1,1,1,1)}function o(){return i(1,0,0,0)}function l(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}r.d(t,{a:()=>a,c:()=>s,f:()=>i});const p=n(),d=o(),h=l(),y=u(),m=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_W:m,UNIT_X:d,UNIT_Y:h,UNIT_Z:y,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,createView:a,fromArray:function(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let s=0;s<r;++s)t[s]=e[s];return t},fromValues:i,ones:n,unitW:c,unitX:o,unitY:l,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},35270:(e,t,r)=>{r.d(t,{B7:()=>l,St:()=>i,VL:()=>n,h$:()=>a,rW:()=>u});const s={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!s[e]||!!s[e.toLowerCase()]}function a(e){return s[e]??s[e.toLowerCase()]}function n(e){return[...a(e)]}function o(e,t,r){r<0&&++r,r>1&&--r;const s=6*r;return s<1?e+(t-e)*s:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,s=1){const i=(e%360+360)%360/360,a=r<=.5?r*(t+1):r+t-r*t,n=2*r-a;return[Math.round(255*o(n,a,i+1/3)),Math.round(255*o(n,a,i)),Math.round(255*o(n,a,i-1/3)),s]}function u(e){const t=e.length>5,r=t?8:4,s=(1<<r)-1,i=t?1:17,a=t?9===e.length:5===e.length;let n=Number("0x"+e.substr(1));if(isNaN(n))return null;const o=[0,0,0,1];let l;return a&&(l=n&s,n>>=r,o[3]=i*l/255),l=n&s,n>>=r,o[2]=i*l,l=n&s,n>>=r,o[1]=i*l,l=n&s,n>>=r,o[0]=i*l,o}},83379:(e,t,r)=>{r.d(t,{Z:()=>m});var s=r(43697),i=r(20102),a=r(70586),n=r(609),o=r(95330),l=r(20941),u=r(5600),c=r(52011);const p="loaded",d=e=>{let t=class extends e{constructor(...e){super(...e),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise((e=>{const t=this.load.bind(this);this.load=r=>{const s=new Promise(((e,t)=>{const s=(0,o.$F)(r,t);this.destroyed&&t(new i.Z("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(e,t).finally((()=>{s&&s.remove()}))}));if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const e=this._loadController=new AbortController;t({signal:e.signal})}return e(),s}}))),this.when((()=>{this._set("loadStatus",p),this._loadController=null}),(e=>{this._set("loadStatus","failed"),this._set("loadError",e),this._loadController=null}))}destroy(){this._loadController&&(this._loadController=(0,a.IM)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===p}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new i.Z("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s._)([(0,u.Cb)({readOnly:!0})],t.prototype,"loaded",null),(0,s._)([(0,u.Cb)({readOnly:!0})],t.prototype,"loadError",void 0),(0,s._)([(0,u.Cb)({clonable:!1})],t.prototype,"loadStatus",void 0),(0,s._)([(0,u.Cb)({type:[l.Z],readOnly:!0})],t.prototype,"loadWarnings",null),t=(0,s._)([(0,c.j)("esri.core.Loadable")],t),t};let h=class extends(d(n.D)){};var y;h=(0,s._)([(0,c.j)("esri.core.Loadable")],h),(y=h||(h={})).LoadableMixin=d,y.isLoadable=function(e){return!(!e||!e.load)};const m=h},75517:(e,t,r)=>{function s(e,t){if(!t)return e;for(const r of t)e.add(r);return e}function i(e,t){const r=new Set;return s(r,e),s(r,t),r}function a(e,t){const r=new Set;for(const s of t)e.has(s)&&r.add(s);return r}function n(e,t){if(!e||!t)return!1;if(e===t)return!0;for(const r of e)if(!t.has(r))return!1;return!0}function o(e,t){if(null==e&&null==t)return!0;if(null==e||null==t||e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}function l(e,t){const r=new Set(e);for(const e of t)r.delete(e);return r}r.d(t,{G0:()=>i,e5:()=>l,fS:()=>o,ik:()=>n,jV:()=>a})},71715:(e,t,r)=>{r.d(t,{r:()=>i});var s=r(5600);function i(e,t,r){let i,a;return void 0===t||Array.isArray(t)?(a=e,r=t,i=[void 0]):(a=t,i=Array.isArray(e)?e:[e]),(e,t)=>{const n=e.constructor.prototype;i.forEach((i=>{const o=(0,s.CJ)(e,i,a);o.read&&"object"==typeof o.read||(o.read={}),o.read.reader=n[t],r&&(o.read.source=(o.read.source||[]).concat(r))}))}}},70921:(e,t,r)=>{r.d(t,{R:()=>a,Z:()=>i});var s=r(46791);function i(e,t,r=s.Z){return t||(t=new r),t===e||(t.removeAll(),(i=e)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?t.addMany(e):e&&t.add(e)),t;var i}function a(e){return e}},68668:(e,t,r)=>{r.d(t,{G:()=>n,w:()=>o});var s=r(66643),i=r(46791),a=r(83379);async function n(e,t){return await e.load(),o(e,t)}async function o(e,t){const r=[],n=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?n(...t):i.Z.isCollection(t)?t.forEach((e=>n(e))):a.Z.isLoadable(t)&&r.push(t))};t(n);let o=null;if(await(0,s.UI)(r,(async e=>{const t=await(0,s.q6)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||o||(o=t)})),o)throw o.error;return e}},62357:(e,t,r)=>{r.d(t,{F2:()=>n,Wz:()=>o,t_:()=>l,vW:()=>u});const s=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,i="screenUtils.toPt: input not recognized!",a=96;function n(e){return e?e/72*a:0}function o(e){return e?72*e/a:0}function l(e){if("string"==typeof e){const t=e.match(s);if(t){const r=Number(t[1]),s=t[3]&&t[3].toLowerCase(),i="-"===e.charAt(0),a="px"===s?o(r):r;return i?-a:a}return console.warn(i),null}return e}function u(e=0,t=0){return{x:e,y:t}}},35463:(e,t,r)=>{r.d(t,{JE:()=>l,Nm:()=>o,fM:()=>n,rJ:()=>u});var s=r(90344),i=r(25031),a=r(17126);const n={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function o(e,t,r,n=i.By){const o=new a.vF((0,s.f1)(n)),l=a.ou.fromJSDate(e,{zone:o}),u="decades"===r||"centuries"===r?"year":c(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[u]:t}).toJSDate()}function l(e,t,r=i.By){const n=new a.vF((0,s.f1)(r)),o=a.ou.fromJSDate(e,{zone:n});if("decades"===t||"centuries"===t){const e=o.startOf("year"),{year:r}=e,s=r-r%("decades"===t?10:100);return e.set({year:s}).toJSDate()}const l=c(t);return o.startOf(l).toJSDate()}function u(e,t,r){return 0===e?0:e*n[t]/n[r]}function c(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},66577:(e,t,r)=>{r.d(t,{qM:()=>c});var s=r(75215),i=r(6570),a=r(9361),n=r(65091),o=r(94139),l=r(38913),u=r(58901);r(82971),r(86973),r(33955);const c={base:a.Z,key:"type",typeMap:{extent:i.Z,multipoint:n.Z,point:o.Z,polyline:u.Z,polygon:l.Z}};(0,s.N7)(c)},9361:(e,t,r)=>{r.d(t,{Z:()=>c});var s=r(43697),i=r(96674),a=r(5600),n=(r(75215),r(67676),r(80442),r(71715)),o=r(52011),l=r(82971);let u=class extends i.wq{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=l.Z.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof l.Z)return e;if(null!=e){const r=new l.Z;return r.read(e,t),r}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};(0,s._)([(0,a.Cb)()],u.prototype,"type",void 0),(0,s._)([(0,a.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,s._)([(0,a.Cb)({readOnly:!0})],u.prototype,"extent",null),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasM",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],u.prototype,"hasZ",void 0),(0,s._)([(0,a.Cb)({type:l.Z,json:{write:!0},value:l.Z.WGS84})],u.prototype,"spatialReference",void 0),(0,s._)([(0,n.r)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,s._)([(0,o.j)("esri.geometry.Geometry")],u);const c=u},94139:(e,t,r)=>{r.d(t,{Z:()=>v});var s,i=r(43697),a=r(92604),n=r(5600),o=r(90578),l=(r(67676),r(80442),r(71715)),u=r(52011),c=r(30556),p=r(75215),d=r(9361),h=r(82971),y=r(8744),m=r(40488);const g=[0,0];function f(e){return e&&("esri.geometry.SpatialReference"===e.declaredClass||null!=e.wkid)}let b=s=class extends d.Z{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));const r=e._get("spatialReference");t._set("spatialReference",Object.isFrozen(r)?r:r.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,r,s,i){let n;if(Array.isArray(e))n=e,i=t,e=n[0],t=n[1],r=n[2],s=n[3];else if(e&&"object"==typeof e){if(n=e,e=null!=n.x?n.x:n.longitude,t=null!=n.y?n.y:n.latitude,r=n.z,s=n.m,(i=n.spatialReference)&&"esri.geometry.SpatialReference"!==i.declaredClass&&(i=new h.Z(i)),null!=n.longitude||null!=n.latitude)if(null==n.longitude)a.Z.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==n.latitude)a.Z.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!n.declaredClass&&i&&i.isWebMercator){const r=(0,m.hG)(n.longitude,n.latitude,g);e=r[0],t=r[1]}}else f(r)?(i=r,r=null):f(s)&&(i=s,s=null);const o={x:e,y:t};return null==o.x&&null!=o.y?a.Z.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==o.y&&null!=o.x&&a.Z.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=i&&(o.spatialReference=i),null!=r&&(o.z=r),null!=s&&(o.m=s),o}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(e){e!==(void 0!==this._get("m"))&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return void 0!==this.z}set hasZ(e){e!==(void 0!==this._get("z"))&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){const{spatialReference:e,x:t,y:r}=this;if(e){if(e.isWebMercator)return(0,m.R6)(t,r,g)[1];if(e.isGeographic)return r}return null}set latitude(e){const{spatialReference:t,x:r}=this;null!=e&&t&&(t.isWebMercator?this._set("y",(0,m.hG)(r,e,g)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){const{x:e,y:t,spatialReference:r}=this;if(r){if(r.isWebMercator)return(0,m.R6)(e,t,g)[0];if(r.isGeographic)return e}return null}set longitude(e){const{y:t,spatialReference:r}=this;null!=e&&r&&(r.isWebMercator?this._set("x",(0,m.hG)(e,t,g)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return"string"==typeof e?NaN:e}clone(){const e=new s;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return s.copy(e,this),this}equals(e){if(null==e)return!1;const{x:t,y:r,z:s,m:i,spatialReference:a}=this,{z:n,m:o}=e;let{x:l,y:u,spatialReference:c}=e;if(!a.equals(c))if(a.isWebMercator&&c.isWGS84)[l,u]=(0,m.hG)(l,u),c=a;else{if(!a.isWGS84||!c.isWebMercator)return!1;[l,u]=(0,m.R6)(l,u),c=a}return t===l&&r===u&&s===n&&i===o&&a.wkid===c.wkid}offset(e,t,r){return this.x+=e,this.y+=t,null!=r&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;const e=(0,y.C5)(this.spatialReference);if(!e)return this;let t=this.x;const[r,s]=e.valid,i=2*s;let a;return t>s?(a=Math.ceil(Math.abs(t-s)/i),t-=a*i):t<r&&(a=Math.ceil(Math.abs(t-r)/i),t+=a*i),this._set("x",t),this}distance(e){return function(e,t){const r=e.x-t.x,s=e.y-t.y,i=e.hasZ&&t.hasZ?e.z-t.z:0;return Math.sqrt(r*r+s*s+i*i)}(this,e)}toArray(){const e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};(0,i._)([(0,n.Cb)({readOnly:!0})],b.prototype,"cache",null),(0,i._)([(0,n.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasM",null),(0,i._)([(0,n.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasZ",null),(0,i._)([(0,n.Cb)({type:Number})],b.prototype,"latitude",null),(0,i._)([(0,n.Cb)({type:Number})],b.prototype,"longitude",null),(0,i._)([(0,n.Cb)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,o.p)((e=>isNaN(e)?e:(0,p.q9)(e)))],b.prototype,"x",void 0),(0,i._)([(0,c.c)("x")],b.prototype,"writeX",null),(0,i._)([(0,l.r)("x")],b.prototype,"readX",null),(0,i._)([(0,n.Cb)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,i._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],b.prototype,"z",void 0),(0,i._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],b.prototype,"m",void 0),b=s=(0,i._)([(0,u.j)("esri.geometry.Point")],b),b.prototype.toJSON.isDefaultToJSON=!0;const v=b},62155:(e,t,r)=>{var s;r.d(t,{R:()=>s}),function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.Z=2]="Z"}(s||(s={}))},33955:(e,t,r)=>{r.d(t,{Ji:()=>m,YX:()=>u,aW:()=>c,im:()=>y,l9:()=>d,oU:()=>h,q9:()=>f,wp:()=>p});var s=r(6570),i=r(9361),a=r(65091),n=r(94139),o=r(38913),l=r(58901);function u(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function c(e){return void 0!==e.points}function p(e){return void 0!==e.x&&void 0!==e.y}function d(e){return void 0!==e.paths}function h(e){return void 0!==e.rings}function y(e){return null==e?null:e instanceof i.Z?e:p(e)?n.Z.fromJSON(e):d(e)?l.Z.fromJSON(e):h(e)?o.Z.fromJSON(e):c(e)?a.Z.fromJSON(e):u(e)?s.Z.fromJSON(e):null}function m(e){return e?p(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":h(e)?"esriGeometryPolygon":u(e)?"esriGeometryEnvelope":c(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:n.Z,esriGeometryPolyline:l.Z,esriGeometryPolygon:o.Z,esriGeometryEnvelope:s.Z,esriGeometryMultipoint:a.Z};function f(e){return e&&g[e]||null}},82397:(e,t,r)=>{r.d(t,{G6:()=>m,Ie:()=>y,J9:()=>d,RF:()=>p,U1:()=>h,vY:()=>n}),r(33955);const s=(e,t,r)=>[t,r],i=(e,t,r)=>[t,r,e[2]],a=(e,t,r)=>[t,r,e[2],e[3]];function n(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance]:[1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax]:[0,0]}:null}function o({scale:e,translate:t},r){return r*e[0]+t[0]}function l({scale:e,translate:t},r){return t[1]-r*e[1]}function u(e,t,r){const s=new Array(r.length);if(!r.length)return s;const[i,a]=e.scale;let n=o(e,r[0][0]),u=l(e,r[0][1]);s[0]=t(r[0],n,u);for(let e=1;e<r.length;e++){const o=r[e];n+=o[0]*i,u-=o[1]*a,s[e]=t(o,n,u)}return s}function c(e,t,r){const s=new Array(r.length);for(let i=0;i<r.length;i++)s[i]=u(e,t,r[i]);return s}function p(e,t,r,s,i){return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(e,r.x),t.y=function({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}(e,r.y),t!==r&&(s&&(t.z=r.z),i&&(t.m=r.m)),t}function d(e,t,r,n,o){return null!=r&&(t.points=function(e,t,r,n){return u(e,r?n?a:i:n?i:s,t)}(e,r.points,n,o)),t}function h(e,t,r,s,i){return null==r||(t.x=o(e,r.x),t.y=l(e,r.y),t!==r&&(s&&(t.z=r.z),i&&(t.m=r.m))),t}function y(e,t,r,n,o){return null!=r&&(t.rings=function(e,t,r,n){return c(e,r?n?a:i:n?i:s,t)}(e,r.rings,n,o)),t}function m(e,t,r,n,o){return null!=r&&(t.paths=function(e,t,r,n){return c(e,r?n?a:i:n?i:s,t)}(e,r.paths,n,o)),t}},86973:(e,t,r)=>{r.d(t,{M:()=>i,P:()=>a});var s=r(35454);const i=(0,s.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),a=(0,s.w)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},40488:(e,t,r)=>{r.d(t,{$:()=>v,Q8:()=>m,R6:()=>b,Sx:()=>w,hG:()=>f,iV:()=>g,mZ:()=>p});var s=r(22974),i=r(82971),a=r(68441),n=r(8744);const o=57.29577951308232,l=.017453292519943;function u(e){return e*o}function c(e){return e*l}function p(e){return Math.PI/2-2*Math.atan(Math.exp(-e/a.sv.radius))}function d(e){return null!=e.wkid||null!=e.wkt}const h=[0,0];function y(e,t,r,s,i){const a=e,n=i;if(n.spatialReference=r,"x"in a&&"x"in n)[n.x,n.y]=t(a.x,a.y,h,s);else if("xmin"in a&&"xmin"in n)[n.xmin,n.ymin]=t(a.xmin,a.ymin,h,s),[n.xmax,n.ymax]=t(a.xmax,a.ymax,h,s);else if("paths"in a&&"paths"in n||"rings"in a&&"rings"in n){const e="paths"in a?a.paths:a.rings,r=[];let i;for(let a=0;a<e.length;a++){const n=e[a];i=[],r.push(i);for(let e=0;e<n.length;e++)i.push(t(n[e][0],n[e][1],[0,0],s)),n[e].length>2&&i[e].push(n[e][2]),n[e].length>3&&i[e].push(n[e][3])}"paths"in n?n.paths=r:n.rings=r}else if("points"in a&&"points"in n){const e=a.points,r=[];for(let i=0;i<e.length;i++)r[i]=t(e[i][0],e[i][1],[0,0],s),e[i].length>2&&r[i].push(e[i][2]),e[i].length>3&&r[i].push(e[i][3]);n.points=r}return i}function m(e,t){const r=e&&(d(e)?e:e.spatialReference),s=t&&(d(t)?t:t.spatialReference);return!(e&&"type"in e&&"mesh"===e.type||t&&"type"in t&&"mesh"===t.type||!r||!s)&&(!!(0,n.fS)(s,r)||(0,n.sS)(s)&&(0,n.oR)(r)||(0,n.sS)(r)&&(0,n.oR)(s))}function g(e,t){if(null==e)return null;const r=e.spatialReference,a=t&&(d(t)?t:t.spatialReference);return m(r,a)?(0,n.fS)(r,a)?(0,s.d9)(e):(0,n.sS)(a)?y(e,f,i.Z.WebMercator,!1,(0,s.d9)(e)):(0,n.oR)(a)?y(e,b,i.Z.WGS84,!1,(0,s.d9)(e)):null:null}function f(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);const s=c(t);return r[0]=c(e)*a.sv.radius,r[1]=a.sv.halfSemiMajorAxis*Math.log((1+Math.sin(s))/(1-Math.sin(s))),r}function b(e,t,r=[0,0],s=!1){const i=u(e/a.sv.radius);return r[0]=s?i:i-360*Math.floor((i+180)/360),r[1]=u(Math.PI/2-2*Math.atan(Math.exp(-t/a.sv.radius))),r}function v(e,t=!1,r=(0,s.d9)(e)){return y(e,f,i.Z.WebMercator,t,r)}function w(e,t=!1,r=(0,s.d9)(e)){return y(e,b,i.Z.WGS84,t,r)}},24881:(e,t,r)=>{r.d(t,{rk:()=>l,Tj:()=>u,GI:()=>c,CE:()=>p,Tq:()=>d,Zx:()=>h,Ee:()=>g});var s=r(35270),i=r(62357);function a(){const e=new Float32Array(16);return e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}const n=a();Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:function(e){const t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},create:a,createView:function(e,t){return new Float32Array(e,t,16)},fromValues:function(e,t,r,s,i,a,n,o,l,u,c,p,d,h,y,m){const g=new Float32Array(16);return g[0]=e,g[1]=t,g[2]=r,g[3]=s,g[4]=i,g[5]=a,g[6]=n,g[7]=o,g[8]=l,g[9]=u,g[10]=c,g[11]=p,g[12]=d,g[13]=h,g[14]=y,g[15]=m,g}},Symbol.toStringTag,{value:"Module"}));var o=r(52138);class l{constructor(e,t,r){this.strength=e,this.radius=t,this.threshold=r,this.type="bloom"}interpolate(e,t,r){this.strength=y(e.strength,t.strength,r),this.radius=y(e.radius,t.radius,r),this.threshold=y(e.threshold,t.threshold,r)}clone(){return new l(this.strength,this.radius,this.threshold)}toJSON(){return{type:"bloom",radius:m(this.radius),strength:this.strength,threshold:this.threshold}}}class u{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,r){this.radius=Math.round(y(e.radius,t.radius,r))}clone(){return new u(this.radius)}toJSON(){return{type:"blur",radius:m(this.radius)}}}class c{constructor(e,t){this.type=e,this.amount=t,"invert"!==this.type&&"grayscale"!==this.type&&"sepia"!==this.type||(this.amount=Math.min(this.amount,1))}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.amount=y(e.amount,t.amount,r),this._updateMatrix()}clone(){return new c(this.type,this.amount)}toJSON(){return{type:this.type,amount:this.amount}}_updateMatrix(){const e=this._colorMatrix||a();switch(this.type){case"brightness":this._colorMatrix=((e,t)=>{const r=(0,o.s)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,o.t)(r,r)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const r=(0,o.s)(e,t,0,0,.5-.5*t,0,t,0,.5-.5*t,0,0,t,.5-.5*t,0,0,0,1);return(0,o.t)(r,r)})(e,this.amount);break;case"grayscale":this._colorMatrix=((e,t)=>{const r=1-this.amount,s=(0,o.s)(e,.2126+.7874*r,.7152-.7152*r,.0722-.0722*r,0,.2126-.2126*r,.7152+.2848*r,.0722-.0722*r,0,.2126-.2126*r,.7152-.7152*r,.0722+.9278*r,0,0,0,0,1);return(0,o.t)(s,s)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const r=1-2*t,s=(0,o.s)(e,r,0,0,t,0,r,0,t,0,0,r,t,0,0,0,1);return(0,o.t)(s,s)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const r=(0,o.s)(e,.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1);return(0,o.t)(r,r)})(e,this.amount);break;case"sepia":this._colorMatrix=((e,t)=>{const r=1-this.amount,s=(0,o.s)(e,.393+.607*r,.769-.769*r,.189-.189*r,0,.349-.349*r,.686+.314*r,.168-.168*r,0,.272-.272*r,.534-.534*r,.131+.869*r,0,0,0,0,1);return(0,o.t)(s,s)})(e)}}}class p{constructor(e,t,r,s){this.offsetX=e,this.offsetY=t,this.blurRadius=r,this.color=s,this.type="drop-shadow"}interpolate(e,t,r){this.offsetX=y(e.offsetX,t.offsetX,r),this.offsetY=y(e.offsetY,t.offsetY,r),this.blurRadius=y(e.blurRadius,t.blurRadius,r),this.color[0]=Math.round(y(e.color[0],t.color[0],r)),this.color[1]=Math.round(y(e.color[1],t.color[1],r)),this.color[2]=Math.round(y(e.color[2],t.color[2],r)),this.color[3]=y(e.color[3],t.color[3],r)}clone(){return new p(this.offsetX,this.offsetY,this.blurRadius,[...this.color])}toJSON(){const e=[...this.color];return e[3]*=255,{type:"drop-shadow",xoffset:m(this.offsetX),yoffset:m(this.offsetY),blurRadius:m(this.blurRadius),color:e}}}class d{constructor(e){this.angle=e,this.type="hue-rotate"}get colorMatrix(){return this._colorMatrix||this._updateMatrix(),this._colorMatrix}interpolate(e,t,r){this.angle=y(e.angle,t.angle,r),this._updateMatrix()}clone(){return new d(this.angle)}toJSON(){return{type:"hue-rotate",angle:this.angle}}_updateMatrix(){const e=this._colorMatrix||a();this._colorMatrix=((e,t)=>{const r=Math.sin(t*Math.PI/180),s=Math.cos(t*Math.PI/180),i=(0,o.s)(e,.213+.787*s-.213*r,.715-.715*s-.715*r,.072-.072*s+.928*r,0,.213-.213*s+.143*r,.715+.285*s+.14*r,.072-.072*s-.283*r,0,.213-.213*s-.787*r,.715-.715*s+.715*r,.072+.928*s+.072*r,0,0,0,0,1);return(0,o.t)(i,i)})(e,this.angle)}}class h{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,r){this.amount=y(e.amount,t.amount,r)}clone(){return new h(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function y(e,t,r){return e+(t-e)*r}function m(e){return Math.round(1e3*(0,i.Wz)(e))/1e3}function g(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new c(e.type,0);case"saturate":case"brightness":case"contrast":return new c(e.type,1);case"opacity":return new h(1);case"hue-rotate":return new d(0);case"blur":return new u(0);case"drop-shadow":return new p(0,0,0,[...(0,s.h$)("transparent")]);case"bloom":return new l(0,0,1)}}},29681:(e,t,r)=>{r.d(t,{AS:()=>i,Cb:()=>n,uF:()=>a});var s=r(24881);function i(e,t){const r=e.length>t.length?e:t;return(e.length>t.length?t:e).every(((e,t)=>e.type===r[t].type))}function a(e,t){const r=e.length>t.length?e:t,i=e.length>t.length?t:e;for(let e=i.length;e<r.length;e++)i.push((0,s.Ee)(r[e]))}function n(e){const t=e[0];return!!t&&"type"in t}},58311:(e,t,r)=>{function s(e){return"string"==typeof e||e instanceof String}r.d(t,{V$:()=>d,D3:()=>b,F3:()=>f}),r(2587),r(80442),r(20102),r(22021),r(90344),r(25031);var i=r(17126);r(70171),new Map([["hours",3600],["minutes",60],["seconds",1],["deciseconds",.1],["centiseconds",.01],["milliseconds",.001]]);const a="yyyy-MM-dd";var n,o;(o=n||(n={})).HM="HH:mm",o.HMS="HH:mm:ss",o.HMS_MS="HH:mm:ss.SSS";const l=[n.HMS_MS,n.HMS,n.HM,"TT"];function u(e){return i.ou.fromFormat(e,a)}function c(e){let t=null;return l.find((r=>(t=i.ou.fromFormat(e,r),t.isValid))),t}function p(e){return i.ou.fromISO(e)}var d;new Set(["date-only","time-only","timestamp-offset"]),function(e){e.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",e.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"}(d||(d={}));const h=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]);function y(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function m(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function g(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function f(e,t){const r=e?.domain;if(!r)return null;switch(r.type){case"range":{const{min:r,max:s}=b(e);if(null!=r&&+t<r||null!=s&&+t>s)return d.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==r.codedValues||r.codedValues.every((e=>null==e||e.code!==t)))return d.INVALID_CODED_VALUE}return null}function b(e,t){const r=t??e?.domain;if(!r||"range"!==r.type)return;const s="range"in r?r.range[0]:r.minValue,i="range"in r?r.range[1]:r.maxValue,a=function(e){return null!=e&&h.has(e.type)}(e);return y(e)||g(e)||m(e)?{...v(e,i,s),isInteger:a}:{min:null!=s&&"number"==typeof s?s:null,max:null!=i&&"number"==typeof i?i:null,rawMin:s,rawMax:i,isInteger:a}}function v(e,t,r){return y(e)?{min:null!=r&&s(r)?u(r).toMillis():null,max:null!=t&&s(t)?u(t).toMillis():null,rawMin:r,rawMax:t}:g(e)?{min:null!=r&&s(r)?c(r).toMillis():null,max:null!=t&&s(t)?c(t).toMillis():null,rawMin:r,rawMax:t}:m(e)?{min:null!=r&&s(r)?p(r).toMillis():null,max:null!=t&&s(t)?p(t).toMillis():null,rawMin:r,rawMax:t}:{max:null,min:null}}},69165:(e,t,r)=>{r.d(t,{AB:()=>b,CH:()=>M,Dl:()=>H,Ec:()=>ue,Fv:()=>k,H7:()=>Z,Hp:()=>O,Lk:()=>v,O5:()=>S,Pz:()=>ee,Q0:()=>g,Qc:()=>te,Se:()=>Q,UF:()=>y,UQ:()=>z,YN:()=>d,ZR:()=>U,d2:()=>K,gd:()=>f,ig:()=>W,io:()=>w,os:()=>G,q6:()=>u,qN:()=>B,sX:()=>J,vP:()=>le,y2:()=>$}),r(20102);var s=r(78286),i=r(75517),a=r(58311),n=r(59266);const o=/^([0-9_])/,l=/[^a-z0-9_\u0080-\uffff]+/gi;function u(e){return null==e?null:e.trim().replaceAll(l,"_").replace(o,"F$1")||null}const c=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],p=["field","normalizationField"];function d(e,t){if(null!=e&&null!=t)for(const r of Array.isArray(e)?e:[e])if(h(c,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)h(p,e,t)}function h(e,t,r){if(e)for(const i of e){const e=(0,s.hS)(i,t),a=e&&"function"!=typeof e&&r.get(e);a&&(0,s.RB)(i,a.name,t)}}function y(e,t){if(null!=e&&t?.fields?.length)if("startField"in e){const r=t.get(e.startField),s=t.get(e.endField);e.startField=r?.name??null,e.endField=s?.name??null}else{const r=t.get(e.startTimeField),s=t.get(e.endTimeField);e.startTimeField=r?.name??null,e.endTimeField=s?.name??null}}const m=new Set;function g(e,t){return e&&t?(m.clear(),f(m,e,t),Array.from(m).sort()):[]}function f(e,t,r){if(r)if(t?.fields?.length)if(r.includes("*"))for(const{name:r}of t.fields)e.add(r);else for(const s of r)b(e,t,s);else{if(r.includes("*"))return e.clear(),void e.add("*");for(const t of r)null!=t&&e.add(t)}}function b(e,t,r){if("string"==typeof r)if(t){const s=t.get(r);s&&e.add(s.name)}else e.add(r)}function v(e,t){return null==t||null==e?[]:t.includes("*")?(e.fields??[]).map((e=>e.name)):t}async function w(e,t,r){if(!r)return;const{arcadeUtils:s}=await(0,n.LC)(),i=s.extractFieldNames(r,t?.fields?.map((e=>e.name)));for(const r of i)b(e,t,r)}function S({displayField:e,fields:t}){return e||(t?.length?_(t,"name-or-title")||_(t,"unique-identifier")||_(t,"type-or-category")||function(e){for(const t of e){if(!t?.name)continue;const e=t.name.toLowerCase();if(e.includes("name")||e.includes("title"))return t.name}return null}(t):null)}function _(e,t){for(const r of e)if(r?.valueType&&r.valueType===t)return r.name;return null}function M(e){return e?g(e.fieldsIndex,L(e)):[]}const C=new Set(["oid","global-id","guid"]),T=new Set(["oid","global-id"]),I=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/shape/i,/perimeter/i,/objectid/i,/_i$/i];function L(e){if(!e)return[];const t="editFieldsInfo"in e&&e.editFieldsInfo;if(!t)return[];const{creationDateField:r,creatorField:s,editDateField:i,editorField:a}=t;return[r,s,i,a].filter(Boolean)}function x(e){return L(e).map((e=>e.toLowerCase()))}function O(e,t){return e.editable&&!C.has(e.type)&&!x(t).includes(e.name?.toLowerCase()??"")}function k(e,t){const r=e.name?.toLowerCase()??"";return!(null!=t?.objectIdField&&r===t.objectIdField.toLowerCase()||null!=t?.globalIdField&&r===t.globalIdField.toLowerCase()||function(e){const t=new Set;x(e).forEach((e=>t.add(e))),function(e){if(!e)return[];const t=e.geometryFieldsInfo;return t?g(e.fieldsIndex,[t.shapeAreaField,t.shapeLengthField]):[]}(e).forEach((e=>t.add(e.toLowerCase())));const r=e&&"infoFor3D"in e?e.infoFor3D:void 0;return r&&(Object.values(r.assetMapFieldRoles).forEach((e=>t.add(e.toLowerCase()))),Object.values(r.transformFieldRoles).forEach((e=>t.add(e.toLowerCase())))),Array.from(t)}(t).includes(r)||T.has(e.type)||I.some((e=>e.test(r))))}function G(e){const t=e.defaultValue;return void 0!==t&&R(e,t)?t:e.nullable?null:void 0}function U(e){const t="string"==typeof e?{type:e}:e;return B(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function F(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function N(e){return null===e||F(e)}function V(e){return null===e||Number.isInteger(e)}function P(e){return null!=e&&"string"==typeof e}function A(e){return null===e||P(e)}function D(){return!0}function R(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":r=e.nullable?V:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?N:F;break;case"string":case"esriFieldTypeString":r=e.nullable?A:P;break;default:r=D}return 1===arguments.length?r:r(t)}const q=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]),j=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),E=(0,i.G0)(q,j);function Z(e){return null!=e&&E.has(e.type)}function B(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function $(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function z(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function W(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function J(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function H(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function Q(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function K(e,t){return null===te(e,t)}var X,Y;function ee(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function te(e,t){return null==e||e.nullable&&null===t?null:Z(e)&&!function(e,t){const r="string"==typeof e?re(e):e;if(!r)return!1;const s=r.min,i=r.max;return r.isInteger?Number.isInteger(t)&&t>=s&&t<=i:t>=s&&t<=i}(e.type,Number(t))?X.OUT_OF_RANGE:R(e,t)?e.domain?(0,a.F3)(e,t):null:Y.INVALID_TYPE}function re(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return se;case"esriFieldTypeInteger":case"integer":return ie;case"esriFieldTypeBigInteger":case"big-integer":return ae;case"esriFieldTypeSingle":case"single":return ne;case"esriFieldTypeDouble":case"double":return oe}}(X||(X={})).OUT_OF_RANGE="numeric-range-validation-error::out-of-range",function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(Y||(Y={}));const se={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},ie={min:-2147483648,max:2147483647,isInteger:!0,rawMin:-2147483648,rawMax:2147483647},ae={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},ne={min:-34e37,max:12e37,isInteger:!1,rawMin:-34e37,rawMax:12e37},oe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function le(e,t,r){switch(e){case a.V$.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case a.V$.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case Y.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case X.OUT_OF_RANGE:{const{min:e,max:s}=re(t.type);return`Value ${r} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${s}`}}}function ue(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some((t=>e.toLowerCase().startsWith(t)))}},84230:(e,t,r)=>{r.d(t,{A2:()=>n,S1:()=>c,fP:()=>l,fb:()=>a,ln:()=>p,oP:()=>u,rQ:()=>o});var s=r(40330),i=r(3172);const a={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function n(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function o(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function l(e){return("feature"===e?.type||"subtype-group"===e?.type)&&"feature-layer"===e.source?.type}async function u(e,t){const r=s.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const a=e.toLowerCase().indexOf("/rest/services");if(-1===a)return null;const n=`${e.substring(0,a)}/rest/info`,o=null!=t?t.signal:null,{data:l}=await(0,i.Z)(n,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function c(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function p(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}},48522:(e,t,r)=>{r.d(t,{Z:()=>k});var s=r(43697),i=r(68773),a=r(40330),n=r(3172),o=r(20102),l=r(96674),u=r(83379),c=r(70586),p=r(95330),d=r(5600),h=r(75215),y=(r(67676),r(80442),r(71715)),m=r(52011),g=r(6570),f=r(70171);let b;var v=r(68916),w=r(41253),S=r(92036);let _=class extends S.Z{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s._)([(0,d.Cb)()],_.prototype,"nextQueryParams",void 0),(0,s._)([(0,d.Cb)()],_.prototype,"queryParams",void 0),(0,s._)([(0,d.Cb)()],_.prototype,"results",void 0),(0,s._)([(0,d.Cb)()],_.prototype,"total",void 0),_=(0,s._)([(0,m.j)("esri.portal.PortalQueryResult")],_);const M=_;var C,T=r(86082),I=r(71058);let L;const x={PortalGroup:()=>Promise.resolve({default:v.Z}),PortalItem:()=>Promise.resolve().then(r.bind(r,15235)),PortalUser:()=>Promise.resolve({default:T.Z})};let O=C=class extends((0,l.eC)(u.Z)){constructor(e){super(e),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=i.default.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e}destroy(){G.unregister(this),this.defaultBasemap=(0,c.SC)(this.defaultBasemap),this.defaultDevBasemap=(0,c.SC)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,c.SC)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,c.hw)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)i.default.request.trustedServers.includes(t)||i.default.request.trustedServers.push(t);return e}readDefaultBasemap(e){return this._readBasemap(e)}readDefaultDevBasemap(e){return this._readBasemap(e)}readDefaultVectorBasemap(e){return this._readBasemap(e)}get extraQuery(){const e=this.user?.orgId,t=!e||this.canSearchPublic;return this.id&&!t?` AND orgid:${this.id}`:null}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let e=this.url;if(e){const t=e.indexOf("/sharing");e=t>0?e.substring(0,t):this.url.replace(/\/+$/,""),e+="/sharing/rest"}return e}get thumbnailUrl(){const e=this.restUrl,t=this.thumbnail;return e&&t?this._normalizeSSL(e+"/portals/self/resources/"+t):null}readUrlKey(e){return e?e.toLowerCase():e}readUser(e){let t=null;return e&&(t=T.Z.fromJSON(e),t.portal=this),t}load(e){const t=Promise.resolve().then(r.bind(r,54938)).then((({default:t})=>{(0,p.k_)(e),L=t})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,e))).then((e=>{if(a.id){const e=a.id;this.credential=e.findCredential(this.restUrl),this.credential||this.authMode!==C.AUTH_MODE_AUTO||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=e.on("credential-create",function(e){const t=a.id;return()=>{const r=e.deref();r&&t.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}(new WeakRef(this))),G.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(t),Promise.resolve(this)}async createElevationLayers(){await this.load();const e=this._getHelperService("defaultElevationLayers"),t=(await Promise.all([r.e(163),r.e(3615),r.e(9016),r.e(2763),r.e(9507)]).then(r.bind(r,65665))).default;return e?e.map((e=>new t({id:e.id,url:e.url}))):[]}async fetchBasemaps(e,t){const r=await this._fetchBasemaps(e,t);if(!0===t?.include3d&&!1!==this.use3dBasemaps){const s=await this._fetchBasemaps3D(e,t);r.unshift(...s)}return r}fetchCategorySchema(e){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",e).then((e=>e.categorySchema)):(0,p.Hc)(e)?Promise.reject((0,p.zE)()):Promise.resolve([])}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new w.Z;if(r.num=100,r.sortField="title",t&&t.length){const s=[];for(const e of t)s.push(`(title:"${e.title}" AND owner:${e.owner})`);return r.query=s.join(" OR "),this.queryGroups(r,e).then((e=>e.results))}return(0,p.Hc)(e)?Promise.reject((0,p.zE)()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||(0,f.Kd)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||(0,f.Kd)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return b&&!b.destroyed||(b=new C),b}queryGroups(e,t){return this.queryPortal("/community/groups",e,"PortalGroup",t)}queryItems(e,t){return this.queryPortal("/search",e,"PortalItem",t)}queryUsers(e,t){return e.sortField||(e.sortField="username"),this.queryPortal("/community/users",e,"PortalUser",t)}fetchSelf(e=this.authMode,t=!1,r){const s=this.restUrl+"/portals/self",i={authMode:e,query:{culture:(0,f.Kd)().toLowerCase()},...r};return"auto"===i.authMode&&(i.authMode="no-prompt"),t&&(i.query.default=!0),this.request(s,i)}queryPortal(e,t,r,s){const i=(0,h.se)(w.Z,t),a=t=>this.request(this.restUrl+e,{...i.toRequestOptions(this),...s}).then((e=>{const r=i.clone();return r.start=e.nextStart,new M({nextQueryParams:r,queryParams:i,total:e.total,results:C._resultsToTypedArray(t,{portal:this},e,s)})})).then((e=>Promise.all(e.results.map((t=>"function"==typeof t.when?t.when():e))).then((()=>e),(t=>((0,p.r9)(t),e)))));return r&&x[r]?x[r]().then((({default:e})=>((0,p.k_)(s),a(e)))):a()}signIn(){if(this.authMode===C.AUTH_MODE_ANONYMOUS)return Promise.reject(new o.Z("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const e=e=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(e||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=e,this.fetchSelf("immediate")))):this.user&&this.credential===e?null:(this.credential=e,this.fetchSelf("immediate")))).then((e=>{e&&(this.sourceJSON=e,this.read(e))}));return a.id?a.id.getCredential(this.restUrl).then((t=>e(t))):e(this.credential)}normalizeUrl(e){const t=this.credential?.token;return this._normalizeSSL(t?e+(e.includes("?")?"&":"?")+"token="+t:e)}requestToTypedArray(e,t,r){return this.request(e,t).then((e=>{const t=C._resultsToTypedArray(r,{portal:this},e);return Promise.all(t.map((t=>"function"==typeof t.when?t.when():e))).then((()=>t),(()=>t))}))}request(e,t={}){const r={f:"json",...t.query},{authMode:s=(this.authMode===C.AUTH_MODE_ANONYMOUS?"anonymous":"auto"),body:i=null,cacheBust:a=!1,method:o="auto",responseType:l="json",signal:u}=t,c={authMode:s,body:i,cacheBust:a,method:o,query:r,responseType:l,timeout:0,signal:u};return(0,n.Z)(this._normalizeSSL(e),c).then((e=>e.data))}toJSON(){throw new o.Z("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new C({sourceJSON:e})}_getHelperService(e){const t=this.helperServices&&this.helperServices[e];if(!t)throw new o.Z("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new w.Z;r.query=e||(i.default.apiKey&&(0,I.r)(this.url)?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const s=await this.queryGroups(r,t);if(!s.total)return[];const a=s.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=a.sortField||"name",r.sortOrder=a.sortOrder||"desc";const n=await a.queryItems(r,t);return n.total?n.results.filter((e=>"Web Map"===e.type)).map((e=>new L({portalItem:e}))):[]}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];const s=new w.Z({query:r,disableExtraQuery:!0}),i=await this.queryGroups(s,t);if(!i.total)return[];const a=i.results[0];s.num=100,s.query='type:"Web Scene"',s.sortField=a.sortField||"name",s.sortOrder=a.sortOrder||"desc";const n=await a.queryItems(s,t);return n.total?n.results.filter((e=>"Web Scene"===e.type)).map((e=>new L({portalItem:e}))):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=L.fromJSON(e);return t.portalItem={portal:this},t}return null}static _resultsToTypedArray(e,t,r,s){let i=[];if(r){const a=null!=s?s.signal:null;i=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(e||t)&&(i=i.map((r=>{const s=Object.assign(e?e.fromJSON(r):r,t);return"function"==typeof s.load&&s.load(a),s})))}else i=[];return i}};O.AUTH_MODE_ANONYMOUS="anonymous",O.AUTH_MODE_AUTO="auto",O.AUTH_MODE_IMMEDIATE="immediate",(0,s._)([(0,d.Cb)()],O.prototype,"access",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"allSSL",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"authMode",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"authorizedCrossOriginDomains",void 0),(0,s._)([(0,y.r)("authorizedCrossOriginDomains")],O.prototype,"readAuthorizedCrossOriginDomains",null),(0,s._)([(0,d.Cb)()],O.prototype,"basemapGalleryGroupQuery",void 0),(0,s._)([(0,d.Cb)({json:{name:"3DBasemapGalleryGroupQuery"}})],O.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"bingKey",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"canListApps",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"canListData",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"canListPreProvisionedItems",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"canProvisionDirectPurchase",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"canSearchPublic",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"canShareBingPublic",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"canSharePublic",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"canSignInArcGIS",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"canSignInIDP",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"colorSetsGroupQuery",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"commentsEnabled",void 0),(0,s._)([(0,d.Cb)({type:Date})],O.prototype,"created",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"credential",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"culture",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"currentVersion",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"customBaseUrl",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"defaultBasemap",void 0),(0,s._)([(0,y.r)("defaultBasemap")],O.prototype,"readDefaultBasemap",null),(0,s._)([(0,d.Cb)()],O.prototype,"defaultDevBasemap",void 0),(0,s._)([(0,y.r)("defaultDevBasemap")],O.prototype,"readDefaultDevBasemap",null),(0,s._)([(0,d.Cb)({type:g.Z})],O.prototype,"defaultExtent",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"defaultVectorBasemap",void 0),(0,s._)([(0,y.r)("defaultVectorBasemap")],O.prototype,"readDefaultVectorBasemap",null),(0,s._)([(0,d.Cb)()],O.prototype,"description",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"eueiEnabled",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],O.prototype,"extraQuery",null),(0,s._)([(0,d.Cb)()],O.prototype,"featuredGroups",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"featuredItemsGroupQuery",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"galleryTemplatesGroupQuery",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"livingAtlasGroupQuery",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"hasCategorySchema",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"helpBase",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"helperServices",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"helpMap",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"homePageFeaturedContent",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"homePageFeaturedContentCount",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"httpPort",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"httpsPort",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"id",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"ipCntryCode",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],O.prototype,"isOrganization",null),(0,s._)([(0,d.Cb)()],O.prototype,"isPortal",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"isReadOnly",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],O.prototype,"itemPageUrl",null),(0,s._)([(0,d.Cb)()],O.prototype,"layerTemplatesGroupQuery",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"maxTokenExpirationMinutes",void 0),(0,s._)([(0,d.Cb)({type:Date})],O.prototype,"modified",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"name",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"portalHostname",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"portalMode",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"portalProperties",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"region",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],O.prototype,"restUrl",null),(0,s._)([(0,d.Cb)()],O.prototype,"rotatorPanels",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"showHomePageDescription",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"sourceJSON",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"staticImagesUrl",void 0),(0,s._)([(0,d.Cb)({json:{name:"2DStylesGroupQuery"}})],O.prototype,"stylesGroupQuery2d",void 0),(0,s._)([(0,d.Cb)({json:{name:"stylesGroupQuery"}})],O.prototype,"stylesGroupQuery3d",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"supportsHostedServices",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"symbolSetsGroupQuery",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"templatesGroupQuery",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"thumbnail",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],O.prototype,"thumbnailUrl",null),(0,s._)([(0,d.Cb)()],O.prototype,"units",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"url",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"urlKey",void 0),(0,s._)([(0,y.r)("urlKey")],O.prototype,"readUrlKey",null),(0,s._)([(0,d.Cb)()],O.prototype,"user",void 0),(0,s._)([(0,y.r)("user")],O.prototype,"readUser",null),(0,s._)([(0,d.Cb)()],O.prototype,"use3dBasemaps",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"useStandardizedQuery",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"useVectorBasemaps",void 0),(0,s._)([(0,d.Cb)()],O.prototype,"vectorBasemapGalleryGroupQuery",void 0),O=C=(0,s._)([(0,m.j)("esri.portal.Portal")],O);const k=O,G=new FinalizationRegistry((e=>{e.remove()}))},68916:(e,t,r)=>{r.d(t,{Z:()=>d});var s,i=r(43697),a=r(20102),n=r(96674),o=r(5600),l=r(75215),u=(r(67676),r(80442),r(52011)),c=r(41253);let p=s=class extends n.wq{constructor(e){super(e),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t&&this.portal?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`):null}get url(){const e=this.portal?.restUrl;return e?e+"/community/groups/"+this.id:null}fetchCategorySchema(e){return this.portal.request(this.url+"/categorySchema",e).then((t=>{const r=t.categorySchema||[];return r.some((e=>"contentCategorySetsGroupQuery.LivingAtlas"===e.source))?this._fetchCategorySchemaSet("LivingAtlas",e):r}))}fetchMembers(e){return this.portal.request(this.url+"/users",e)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}toJSON(){throw new a.Z("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new s;return t.sourceJSON=e,t.read(e),t}queryItems(e,t){let r=(0,l.se)(c.Z,e);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new c.Z,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new c.Z,r.query="group:"+this.id+(r.query?" "+r.query:""),s.queryItems(r,t))}_fetchCategorySchemaSet(e,t){const r=this.portal;return r.fetchSelf(r.authMode,!0,t).then((e=>{const s=e.contentCategorySetsGroupQuery;if(s){const e=new c.Z;return e.disableExtraQuery=!0,e.num=1,e.query=s,r.queryGroups(e,t)}throw new a.Z("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")})).then((r=>{if(r.total){const s=r.results[0],i=new c.Z;return i.num=1,i.query=`typekeywords:"${e}"`,s.queryItems(i,t)}throw new a.Z("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")})).then((e=>e.total?e.results[0].fetchData("json",t).then((e=>{const t=e?.categorySchema;return t?.length?t:[]})):[]))}};(0,i._)([(0,o.Cb)()],p.prototype,"access",void 0),(0,i._)([(0,o.Cb)({type:Date})],p.prototype,"created",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"description",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"id",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"isInvitationOnly",void 0),(0,i._)([(0,o.Cb)({type:Date})],p.prototype,"modified",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"owner",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"portal",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"snippet",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"sortField",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"sortOrder",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"sourceJSON",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"tags",void 0),(0,i._)([(0,o.Cb)()],p.prototype,"thumbnail",void 0),(0,i._)([(0,o.Cb)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,i._)([(0,o.Cb)()],p.prototype,"title",void 0),(0,i._)([(0,o.Cb)({readOnly:!0})],p.prototype,"url",null),p=s=(0,i._)([(0,u.j)("esri.portal.PortalGroup")],p);const d=p},15235:(e,t,r)=>{r.r(t),r.d(t,{default:()=>x});var s=r(43697),i=r(99880),a=r(40330),n=r(20102),o=r(96674),l=r(22974),u=r(83379),c=r(17452),p=r(5600),d=r(75215),h=r(71715),y=r(52011),m=r(6570),g=r(48522),f=r(92036),b=r(92604),v=r(90578);r(67676),r(80442);let w=class extends f.Z{constructor(e){super(e),this.portalItem=null}normalizeCtorArgs(e){return e?.portalItem&&e.path?{...e,path:this._normalizePath(e.path,e.portalItem)}:e}set path(e){null!=e&&(0,c.YP)(e)?b.Z.getLogger(this).error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",e)}_castPath(e){return this._normalizePath(e,this.portalItem)}get url(){return this.portalItem&&this.path?`${this.portalItem.itemUrl}/resources/${this.path}`:null}get cdnUrl(){return this.portalItem&&this.path?`${this.portalItem.itemCdnUrl}/resources/${this.path}`:null}get itemRelativeUrl(){return this.portalItem&&this.path?`./resources/${this.path}`:null}fetch(e="json",t){const r=this.cdnUrl;if(null==r)throw new n.Z("portal-item-resource:fetch","Portal item resource does not refer to a valid item or path");return this.portalItem.portal.request(r,{responseType:e,query:{token:this.portalItem.apiKey},signal:t?.signal})}async update(e,t){const{addOrUpdateResource:s}=await r.e(7873).then(r.bind(r,97873));return s(this,"update",e,t)}hasPath(){return null!=this.path}_normalizePath(e,t){return null==e?e:(e=e.replace(/^\/+/,""),null!=t&&(0,c.YP)(e)&&(e=(0,c.PF)(e,t.itemUrl)),e?.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,""))}};(0,s._)([(0,p.Cb)()],w.prototype,"portalItem",void 0),(0,s._)([(0,p.Cb)({type:String,value:null})],w.prototype,"path",null),(0,s._)([(0,v.p)("path")],w.prototype,"_castPath",null),(0,s._)([(0,p.Cb)({type:String,readOnly:!0})],w.prototype,"url",null),(0,s._)([(0,p.Cb)({type:String,readOnly:!0})],w.prototype,"cdnUrl",null),(0,s._)([(0,p.Cb)({type:String,readOnly:!0})],w.prototype,"itemRelativeUrl",null),w=(0,s._)([(0,y.j)("esri.portal.PortalItemResource")],w);const S=w;let _=class extends f.Z{constructor(e){super(e),this.created=null,this.rating=null}};(0,s._)([(0,p.Cb)()],_.prototype,"created",void 0),(0,s._)([(0,p.Cb)()],_.prototype,"rating",void 0),_=(0,s._)([(0,y.j)("esri.portal.PortalRating")],_);const M=_;var C;const T=new Set(["Map Service","Feature Service","Feature Collection","Scene Service","Image Service","Stream Service","Vector Tile Service","GeoJson","CSV","KML","WFS","WMTS","WMS","Feed"]),I=new Set(["KML","GeoJson","CSV"]);let L=C=class extends((0,o.eC)(u.Z)){static from(e){return(0,d.TJ)(C,e)}constructor(e){super(e),this.access=null,this.accessInformation=null,this.apiKey=null,this.applicationProxies=null,this.avgRating=null,this.categories=null,this.created=null,this.culture=null,this.description=null,this.extent=null,this.groupCategories=null,this.id=null,this.isOrgItem=!1,this.itemControl=null,this.licenseInfo=null,this.modified=null,this.name=null,this.numComments=null,this.numRatings=null,this.numViews=null,this.owner=null,this.ownerFolder=null,this.portal=null,this.screenshots=null,this.size=null,this.snippet=null,this.sourceJSON=null,this.sourceUrl=null,this.spatialReference=null,this.tags=null,this.title=null,this.type=null,this.typeKeywords=null,this.url=null}destroy(){this.portal=null}get displayName(){const e=this.type,t=this.typeKeywords||[];let r=e;return"Feature Service"===e||"Feature Collection"===e?r=t.includes("Table")?"Table":t.includes("Route Layer")?"Route Layer":t.includes("Markup")?"Markup":"Feature Layer":"Image Service"===e?r=t.includes("Elevation 3D Layer")?"Elevation Layer":t.includes("Tiled Imagery")?"Tiled Imagery Layer":"Imagery Layer":"Scene Service"===e?r="Scene Layer":"Video Service"===e?r="Video Layer":"Scene Package"===e?r="Scene Layer Package":"Stream Service"===e?r="Feature Layer":"Geoprocessing Service"===e?r=t.includes("Web Tool")?"Tool":"Geoprocessing Service":"Geocoding Service"===e?r="Locator":"Geoenrichment Service"===e?r="GeoEnrichment Service":"Microsoft Powerpoint"===e?r="Microsoft PowerPoint":"GeoJson"===e?r="GeoJSON":"Globe Service"===e?r="Globe Layer":"Vector Tile Service"===e?r="Tile Layer":"netCDF"===e?r="NetCDF":"Map Service"===e?r=t.includes("Spatiotemporal")||!t.includes("Hosted Service")&&!t.includes("Tiled")||t.includes("Relational")?"Map Image Layer":"Tile Layer":e&&e.toLowerCase().includes("add in")?r=e.replaceAll(/(add in)/gi,"Add-In"):"datastore catalog service"===e?r="Big Data File Share":"Compact Tile Package"===e?r="Tile Package (tpkx)":"OGCFeatureServer"===e?r="OGC Feature Layer":"web mapping application"===e&&t.includes("configurableApp")?r="Instant App":"Insights Page"===e?r="Insights Report":"Excalibur Imagery Project"===e&&(r="Excalibur Project"),r}readExtent(e){return e&&e.length?new m.Z(e[0][0],e[0][1],e[1][0],e[1][1]):null}get iconUrl(){const e=this.type?.toLowerCase()||"",t=this.typeKeywords||[];let r,s=!1,a=!1,n=!1,o=!1,l=!1,u=!1,c=!1;return e.indexOf("service")>0||"feature collection"===e||"kml"===e||"wms"===e||"wmts"===e||"wfs"===e?(s=t.includes("Hosted Service"),"feature service"===e||"feature collection"===e||"kml"===e||"wfs"===e?(a=t.includes("Table"),n=t.includes("Route Layer"),o=t.includes("Markup"),l=t.includes("Spatiotemporal"),u=t.includes("UtilityNetwork"),r=l&&a?"spatiotemporaltable":a?"table":n?"routelayer":o?"markup":l?"spatiotemporal":s?"featureshosted":u?"utilitynetwork":"features"):r="map service"===e||"wms"===e||"wmts"===e?s||t.includes("Tiled")||"wmts"===e?"maptiles":"mapimages":"scene service"===e?t.includes("Line")?"sceneweblayerline":t.includes("3DObject")?"sceneweblayermultipatch":t.includes("Point")?"sceneweblayerpoint":t.includes("IntegratedMesh")?"sceneweblayermesh":t.includes("PointCloud")?"sceneweblayerpointcloud":t.includes("Polygon")?"sceneweblayerpolygon":t.includes("Building")?"sceneweblayerbuilding":t.includes("Voxel")?"sceneweblayervoxel":"sceneweblayer":"image service"===e?t.includes("Elevation 3D Layer")?"elevationlayer":t.includes("Tiled Imagery")?"tiledimagerylayer":"imagery":"stream service"===e?"streamlayer":"video service"===e?t.includes("Live Stream")?"livestreamvideolayer":"videolayer":"vector tile service"===e?"vectortile":"datastore catalog service"===e?"datastorecollection":"geocoding service"===e?"geocodeservice":"geoprocessing service"===e?t.includes("Web Tool")?"tool":"layers":"geodata service"===e?"geodataservice":"3dtiles service"===e?"3dtileslayer":"layers"):"web map"===e||"cityengine web scene"===e?r="maps":"web scene"===e?r=t.includes("ViewingMode-Local")?"webscenelocal":"websceneglobal":"web mapping application"===e&&t.includes("configurableApp")?r="instantapps":"web mapping application"===e||"mobile application"===e||"application"===e||"operation view"===e||"desktop application"===e?r="apps":"map document"===e||"map package"===e||"published map"===e||"scene document"===e||"globe document"===e||"basemap package"===e||"mobile basemap package"===e||"mobile map package"===e||"project package"===e||"project template"===e||"pro map"===e||"layout"===e||"layer"===e&&t.includes("ArcGIS Pro")||"explorer map"===e&&t.indexOf("Explorer Document")?r="mapsgray":"service definition"===e||"csv"===e||"shapefile"===e||"cad drawing"===e||"geojson"===e||"netcdf"===e||"administrative report"===e?r="datafiles":"explorer add in"===e||"desktop add in"===e||"windows viewer add in"===e||"windows viewer configuration"===e?r="appsgray":"360 vr experience"===e?r="360vr":"arcgis pro add in"===e||"arcgis pro configuration"===e?r="addindesktop":"rule package"===e||"file geodatabase"===e||"sqlite geodatabase"===e||"csv collection"===e||"kml collection"===e||"windows mobile package"===e||"map template"===e||"desktop application template"===e||"gml"===e||"arcpad package"===e||"code sample"===e||"document link"===e||"earth configuration"===e||"operations dashboard add in"===e||"rules package"===e||"image"===e||"workflow manager package"===e||"explorer map"===e&&t.includes("Explorer Mapping Application")||t.includes("Document")?r="datafilesgray":"network analysis service"===e||"geoprocessing service"===e||"geodata service"===e||"geometry service"===e||"geoprocessing package"===e||"locator package"===e||"geoprocessing sample"===e||"workflow manager service"===e?r="toolsgray":"layer"===e||"layer package"===e||"explorer layer"===e?r="layersgray":"scene package"===e?r="scenepackage":"3dtiles package"===e?r="3dtileslayerpackage":"mobile scene package"===e?r="mobilescenepackage":"tile package"===e||"compact tile package"===e?r="tilepackage":"task file"===e?r="taskfile":"report template"===e?r="report-template":"statistical data collection"===e?r="statisticaldatacollection":"insights workbook"===e?r="workbook":"insights model"===e?r="insightsmodel":"insights page"===e?r="insightspage":"insights theme"===e?r="insightstheme":"hub initiative"===e?r="hubinitiative":"hubpage"===e?r="hubpage":"hub event"===e?r="hubevent":"hub site application"===e?r="hubsite":"hub project"===e?r="hubproject":"relational database connection"===e?r="relationaldatabaseconnection":"big data file share"===e?r="datastorecollection":"image collection"===e?r="imagecollection":"style"===e?r="style":"desktop style"===e?r="desktopstyle":"dashboard"===e?r="dashboard":"raster function template"===e?r="rasterprocessingtemplate":"vector tile package"===e?r="vectortilepackage":"ortho mapping project"===e?r="orthomappingproject":"ortho mapping template"===e?r="orthomappingtemplate":"solution"===e?r="solutions":"geopackage"===e?r="geopackage":"deep learning package"===e?r="deeplearningpackage":"real time analytic"===e?r="realtimeanalytics":"big data analytic"===e?r="bigdataanalytics":"feed"===e?r="feed":"excalibur imagery project"===e?r="excaliburimageryproject":"notebook"===e?r="notebook":"storymap"===e?r="storymap":"survey123 add in"===e?r="survey123addin":"mission"===e?r="mission":"mission report"===e?r="missionreport":"mission template"===e?r="missiontemplate":"quickcapture project"===e?r="quickcaptureproject":"pro report"===e?r="proreport":"pro report template"===e?r="proreporttemplate":"urban model"===e?r="urbanmodel":"web experience"===e?r="experiencebuilder":"web experience template"===e?r="webexperiencetemplate":"experience builder widget"===e?r="experiencebuilderwidget":"experience builder widget package"===e?r="experiencebuilderwidgetpackage":"workflow"===e?r="workflow":"insights script"===e?r="insightsscript":"kernel gateway connection"===e?r="kernelgatewayconnection":"hub initiative template"===e?r="hubinitiativetemplate":"storymap theme"===e?r="storymaptheme":"knowledge graph"===e?r="knowledgegraph":"knowledge studio project"===e?r="knowledgestudio":"native application"===e?r="nativeapp":"native application installer"===e?r="nativeappinstaller":"link chart"===e?r="linkchart":"investigation"===e?r="investigation":"ogcfeatureserver"===e?r="features":"pro project"===e?r="proproject":"insights workbook package"===e?r="insightsworkbookpackage":"apache parquet"===e?r="apacheparquet":"notebook code snippets"===e||"notebook code snippet library"===e?r="notebookcodesnippets":"suitability model"===e?r="suitabilitymodel":"esri classifier definition"===e?r="classifierdefinition":"esri classification schema"===e?r="classificationschema":"insights data engineering workbook"===e?r="dataengineeringworkbook":"insights data engineering model"===e?r="dataengineeringmodel":"deep learning studio project"===e?r="deeplearningproject":"discussion"===e?r="discussion":"allsource project"===e?r="allsourceproject":"api key"===e?r="apikey":"data pipeline"===e?r="datapipelines":"group layer"===e?(c=t.includes("Map"),r=c?"layergroup2d":"layergroup"):r="media layer"===e?"onlinemedialayer":"form"===e?t.includes("Survey123")?"survey":"datafilesgray":"maps",r?(0,i.V)("esri/images/portal/"+r+"16.png"):null}get isLayer(){return null!=this.type&&T.has(this.type)}get itemCdnUrl(){let e=this.itemUrl;return e&&a.id&&!a.id.findCredential(e)&&(e=a.id._normalizeAGOLorgDomain(e),e=e.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),e=e.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),e=e.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),e}get itemPageUrl(){const e=this.portal?.itemPageUrl;return e&&this.id?`${e}?id=${this.id}`:null}get itemUrl(){const e=this.portal?.restUrl;return e&&this.id?`${e}/content/items/${this.id}`:null}get thumbnailUrl(){const e=this.itemUrl,t=this.thumbnail;return e&&t?this.portal?.normalizeUrl(`${e}/info/${t}?f=json`)??null:null}get userItemUrl(){const e=this.portal?.restUrl;if(!e)return null;const t=this.owner||this.portal?.user?.username;return t?`${e}/content/users/${this.ownerFolder?`${t}/${this.ownerFolder}`:t}/items/${this.id}`:null}load(e){const t=this.portal??(this.portal=g.Z.getDefault()),r=t.load(e).then((()=>this.sourceJSON?this.sourceJSON:this.id&&this.itemUrl?t.request(this.itemUrl,{signal:null!=e?e.signal:null,query:{token:this.apiKey}}):{})).then((e=>{this.sourceJSON=e,this.read(e)}));return this.addResolvingPromise(r),Promise.resolve(this)}async addRating(e){const t={method:"post",query:{}};return e instanceof M&&(e=e.rating),null==e||isNaN(e)||"number"!=typeof e||(t.query.rating=e),this.portal?(await this.portal.request(this.itemUrl+"/addRating",t),new M({rating:e,created:new Date})):null}clone(){const e={access:this.access,accessInformation:this.accessInformation,applicationProxies:(0,l.d9)(this.applicationProxies),avgRating:this.avgRating,categories:(0,l.d9)(this.categories),created:(0,l.d9)(this.created),culture:this.culture,description:this.description,extent:(0,l.d9)(this.extent),groupCategories:(0,l.d9)(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:(0,l.d9)(this.modified),name:this.name,numComments:this.numComments,numRatings:this.numRatings,numViews:this.numViews,owner:this.owner,ownerFolder:this.ownerFolder,portal:this.portal,screenshots:(0,l.d9)(this.screenshots),size:this.size,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:(0,l.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,l.d9)(this.typeKeywords),url:this.url};this.loaded&&(e.loadStatus="loaded");const t=new C({sourceJSON:this.sourceJSON}).set(e);return t._set("isOrgItem",this.isOrgItem),t}createPostQuery(){const e=this.toJSON();for(const t of["tags","typeKeywords","categories"])e[t]=e[t]?.join(", ");const{extent:t}=e;return t&&(e.extent=JSON.stringify(t)),e}async deleteRating(){await this.portal.request(this.itemUrl+"/deleteRating",{method:"post"})}fetchData(e="json",t){return this.portal.request(this.itemUrl+"/data",{responseType:e,...t,query:{token:this.apiKey}})}async fetchRating(e){const t=await this.portal.request(this.itemUrl+"/rating",{query:{token:this.apiKey},...e});return null!=t.rating?(t.created=new Date(t.created),new M(t)):null}fetchRelatedItems(e,t){return this.portal.requestToTypedArray(this.itemUrl+"/relatedItems",{query:{...e,token:this.apiKey},...t},C)}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}reload(){return this.portal.request(this.itemUrl??"",{cacheBust:!0,query:{token:this.apiKey}}).then((e=>(this.sourceJSON=e,this.read(e),this)))}update(e){return this.id?this.load().then((()=>this.portal.signIn())).then((()=>{const t=e?.data,r={method:"post"};r.query=this.createPostQuery();for(const e in r.query)null===r.query[e]&&(r.query[e]="");return r.query.clearEmptyFields=!0,null!=t&&("string"==typeof t?r.query.text=t:"object"==typeof t&&(r.query.text=JSON.stringify(t))),this.portal.request(`${this.userItemUrl}/update`,r).then((()=>this.reload()))})):Promise.reject(new n.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async copy(e){if(!this.id)throw new n.Z("portal:item-does-not-exist","The item does not exist yet");await this.load();const{portal:t,itemUrl:r}=this;await t.signIn();const{copyResources:s,folder:i,tags:a,title:o}=e||{},l={method:"post",query:{copyPrivateResources:"all"===s,folder:"string"==typeof i?i:i?.id,includeResources:!!s,tags:a?.join(","),title:o}},{itemId:u}=await t.request(`${r}/copy`,l);return new C({id:u,portal:t})}updateThumbnail(e){return this.id?this.load().then((()=>this.portal.signIn())).then((()=>{const t=e.thumbnail,r=e.filename,s={method:"post"};if("string"==typeof t)(0,c.HK)(t)?s.query={data:t}:s.query={url:(0,c.hF)(t)},null!=r&&(s.query.filename=r);else{const e=new FormData;null!=r?e.append("file",t,r):e.append("file",t),s.body=e}return this.portal.request(`${this.userItemUrl}/updateThumbnail`,s).then((()=>this.reload()))})):Promise.reject(new n.Z("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async fetchResources(e={},t){const{fetchResources:s}=await r.e(7873).then(r.bind(r,97873));return s(this,e,t)}async addResource(e,t,s){const{addOrUpdateResource:i}=await r.e(7873).then(r.bind(r,97873));return e.portalItem=this,i(e,"add",t,s)}async removeResource(e,t){const{removeResource:s}=await r.e(7873).then(r.bind(r,97873));if(e.portalItem&&e.portalItem.itemUrl!==this.itemUrl)throw new n.Z("removeresource:portal-item-mismatch","The portal item associated with the provided resource does not match the item");return s(this,e,t)}async removeAllResources(e){const{removeAllResources:t}=await r.e(7873).then(r.bind(r,97873));return t(this,e)}resourceFromPath(e){return new S({portalItem:this,path:e})}toJSON(){const e=this.extent,t={accessInformation:this.accessInformation,categories:(0,l.d9)(this.categories),created:this.created?.getTime(),description:this.description,extent:e&&[[e.xmin,e.ymin],[e.xmax,e.ymax]],id:this.id,isOrgItem:this.isOrgItem,licenseInfo:this.licenseInfo,modified:this.modified?.getTime(),name:this.name,owner:this.owner,ownerFolder:this.ownerFolder,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:(0,l.d9)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,l.d9)(this.typeKeywords),url:this.url};return(0,l.yd)(t)}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new C({sourceJSON:e})}_getPostQuery(){const e=this.toJSON();for(const t in e)"tags"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"typeKeywords"===t&&null!==e[t]&&(e[t]=e[t].join(", ")),"extent"===t&&e[t]&&(e[t]=JSON.stringify(e[t]));return e}};(0,s._)([(0,p.Cb)({type:["private","shared","org","public"]})],L.prototype,"access",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"accessInformation",void 0),(0,s._)([(0,p.Cb)({type:String})],L.prototype,"apiKey",void 0),(0,s._)([(0,p.Cb)({json:{read:{source:"appProxies"}}})],L.prototype,"applicationProxies",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"avgRating",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"categories",void 0),(0,s._)([(0,p.Cb)({type:Date})],L.prototype,"created",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"culture",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"description",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],L.prototype,"displayName",null),(0,s._)([(0,p.Cb)({type:m.Z})],L.prototype,"extent",void 0),(0,s._)([(0,h.r)("extent")],L.prototype,"readExtent",null),(0,s._)([(0,p.Cb)()],L.prototype,"groupCategories",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],L.prototype,"iconUrl",null),(0,s._)([(0,p.Cb)()],L.prototype,"id",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],L.prototype,"isLayer",null),(0,s._)([(0,p.Cb)({type:Boolean,readOnly:!0})],L.prototype,"isOrgItem",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"itemControl",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],L.prototype,"itemPageUrl",null),(0,s._)([(0,p.Cb)({readOnly:!0})],L.prototype,"itemUrl",null),(0,s._)([(0,p.Cb)()],L.prototype,"licenseInfo",void 0),(0,s._)([(0,p.Cb)({type:Date})],L.prototype,"modified",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"name",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"numComments",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"numRatings",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"numViews",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"owner",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"ownerFolder",void 0),(0,s._)([(0,p.Cb)({type:g.Z})],L.prototype,"portal",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"screenshots",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"size",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"snippet",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"sourceJSON",void 0),(0,s._)([(0,p.Cb)({type:String})],L.prototype,"sourceUrl",void 0),(0,s._)([(0,p.Cb)({type:String})],L.prototype,"spatialReference",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"tags",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"thumbnail",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],L.prototype,"thumbnailUrl",null),(0,s._)([(0,p.Cb)()],L.prototype,"title",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"type",void 0),(0,s._)([(0,p.Cb)()],L.prototype,"typeKeywords",void 0),(0,s._)([(0,p.Cb)({type:String,json:{read(e,t){if(I.has(t.type)){const t=this.portal?.restUrl;e||=t&&this.id?`${t}/content/items/${this.id}/data`:null}return e}}})],L.prototype,"url",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],L.prototype,"userItemUrl",null),L=C=(0,s._)([(0,y.j)("esri.portal.PortalItem")],L);const x=L},41253:(e,t,r)=>{r.d(t,{Z:()=>m});var s,i=r(43697),a=r(92036),n=r(35454),o=r(22974),l=r(5600),u=(r(75215),r(52011)),c=r(6570),p=r(82971),d=r(40488);const h=new n.X({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let y=s=class extends a.Z{constructor(e){super(e),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(e){"asc"!==e&&"desc"!==e||this._set("sortOrder",e)}clone(){return new s({categories:this.categories?(0,o.d9)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(e,t){let r=[];this.categories&&(r=this.categories.map((e=>Array.isArray(e)?JSON.stringify(e):e)));let s="";if(this.extent){const e=(0,d.iV)(this.extent,p.Z.WGS84);null!=e&&(s=`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`)}let i=this.query;!this.disableExtraQuery&&e.extraQuery&&(i="("+i+")"+e.extraQuery);const a={categories:r,bbox:s,q:i,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(a.sortField=this.sortField.split(",").map((e=>h.toJSON(e.trim()))).join(","),a.sortOrder=this.sortOrder),{query:{...t,...a}}}};(0,i._)([(0,l.Cb)()],y.prototype,"categories",void 0),(0,i._)([(0,l.Cb)()],y.prototype,"disableExtraQuery",void 0),(0,i._)([(0,l.Cb)({type:c.Z})],y.prototype,"extent",void 0),(0,i._)([(0,l.Cb)()],y.prototype,"filter",void 0),(0,i._)([(0,l.Cb)()],y.prototype,"num",void 0),(0,i._)([(0,l.Cb)()],y.prototype,"query",void 0),(0,i._)([(0,l.Cb)()],y.prototype,"sortField",void 0),(0,i._)([(0,l.Cb)()],y.prototype,"sortOrder",null),(0,i._)([(0,l.Cb)()],y.prototype,"start",void 0),y=s=(0,i._)([(0,u.j)("esri.portal.PortalQueryParams")],y);const m=y},86082:(e,t,r)=>{r.d(t,{Z:()=>h});var s=r(43697),i=r(20102),a=r(96674),n=r(5600),o=(r(75215),r(67676),r(80442),r(52011));let l=class extends a.wq{constructor(e){super(e),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new i.Z("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s._)([(0,n.Cb)({type:Date})],l.prototype,"created",void 0),(0,s._)([(0,n.Cb)()],l.prototype,"id",void 0),(0,s._)([(0,n.Cb)()],l.prototype,"portal",void 0),(0,s._)([(0,n.Cb)()],l.prototype,"title",void 0),(0,s._)([(0,n.Cb)({readOnly:!0})],l.prototype,"url",null),(0,s._)([(0,n.Cb)()],l.prototype,"username",void 0),l=(0,s._)([(0,o.j)("esri.portal.PortalFolder")],l);const u=l;var c,p=r(68916);let d=c=class extends a.wq{constructor(...e){super(...e),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userType=null}get thumbnailUrl(){const e=this.url,t=this.thumbnail;return e&&t?this.portal.normalizeUrl(`${e}/info/${t}?f=json`):null}get userContentUrl(){const e=this.portal?.restUrl;return e?`${e}/content/users/${this.username}`:null}get url(){const e=this.portal?.restUrl;return e?`${e}/community/users/${this.username}`:null}addItem(e){const t=e&&e.item,r=e?.data,s=e?.folder,i={method:"post"};t&&(i.query=t.createPostQuery(),null!=r&&("string"==typeof r?i.query.text=r:"object"==typeof r&&(i.query.text=JSON.stringify(r))));let a=this.userContentUrl;return s&&(a+="/"+("string"==typeof s?s:s.id)),this.portal.request(a+"/addItem",i).then((e=>(t.id=e.id,t.portal=this.portal,t.loaded?t.reload():t.load())))}deleteItem(e){let t=this.userContentUrl;return e.ownerFolder&&(t+="/"+e.ownerFolder),this.portal.request(t+`/items/${e.id}/delete`,{method:"post"}).then((()=>{e.id=null,e.portal=null}))}deleteItems(e){const t=this.userContentUrl+"/deleteItems",r=e.map((e=>e.id));if(r.length){const s={method:"post",query:{items:r.join(",")}};return this.portal.request(t,s).then((()=>{e.forEach((e=>{e.id=null,e.portal=null}))}))}return Promise.resolve(void 0)}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then((e=>{let t;return t=e&&e.folders?e.folders.map((e=>{const t=u.fromJSON(e);return t.portal=this.portal,t})):[],t}))}fetchGroups(){return this.portal.request(this.url??"").then((e=>{let t;return t=e&&e.groups?e.groups.map((e=>{const t=p.Z.fromJSON(e);return t.portal=this.portal,t})):[],t}))}fetchItems(e){const t=e??{};let s,i=this.userContentUrl??"";return t.folder&&(i+="/"+t.folder.id),Promise.resolve().then(r.bind(r,15235)).then((({default:e})=>{s=e;const r={folders:!1,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"};return this.portal.request(i,{query:r})})).then((e=>{let t;return e?.items?(t=e.items.map((e=>{const t=s.fromJSON(e);return t.portal=this.portal,t})),Promise.all(t.map((e=>e.load()))).catch((e=>e)).then((()=>({items:t,nextStart:e.nextStart,total:e.total})))):{items:[],nextStart:-1,total:0}}))}fetchTags(){return this.portal.request(this.url+"/tags").then((e=>e.tags))}getThumbnailUrl(e){let t=this.thumbnailUrl;return t&&e&&(t+=`&w=${e}`),t}queryFavorites(e){return this.favGroupId?(this._favGroup||(this._favGroup=new p.Z({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new i.Z("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}toJSON(){throw new i.Z("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");const t=new c;return t.sourceJSON=e,t.read(e),t}};(0,s._)([(0,n.Cb)()],d.prototype,"access",void 0),(0,s._)([(0,n.Cb)({type:Date})],d.prototype,"created",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"culture",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"description",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"email",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"favGroupId",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"fullName",void 0),(0,s._)([(0,n.Cb)({type:Date})],d.prototype,"modified",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"orgId",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"portal",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"preferredView",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"privileges",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"region",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"role",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"roleId",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"sourceJSON",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"thumbnail",void 0),(0,s._)([(0,n.Cb)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s._)([(0,n.Cb)()],d.prototype,"units",void 0),(0,s._)([(0,n.Cb)({readOnly:!0})],d.prototype,"userContentUrl",null),(0,s._)([(0,n.Cb)({readOnly:!0})],d.prototype,"url",null),(0,s._)([(0,n.Cb)()],d.prototype,"username",void 0),(0,s._)([(0,n.Cb)()],d.prototype,"userType",void 0),d=c=(0,s._)([(0,o.j)("esri.portal.PortalUser")],d);const h=d},73572:(e,t,r)=>{r.d(t,{AJ:()=>n,If:()=>l,QM:()=>o,k0:()=>a,ul:()=>i,wx:()=>u}),r(22021);var s=r(62357);r(98766),r(88669);const i=2.4;function a(e){return(0,s.Wz)(e*i)}function n(e){return(0,s.F2)(e)/i}function o(e,t,r,i){const{radius:a,fieldOffset:n,field:o}=t,u=Math.round((0,s.F2)(a)),c=new Float64Array(r*i);let p,d=Number.NEGATIVE_INFINITY;const h=function(e,t){return null!=e?"string"==typeof t?t=>-1*+t.readAttribute(e):r=>+r.readAttribute(e)+t:e=>1}(o,n),y=new Set;for(const t of e){const e=t.getCursor();for(;e.next();){const t=e.getObjectId();if(y.has(t))continue;y.add(t);const s=e.readLegacyPointGeometry(),a=128;if(s.x<-a||s.x>=r+a||s.y<-a||s.y>i+a)continue;const n=+h(e),o=Math.max(0,Math.round(s.x)-u),m=Math.max(0,Math.round(s.y)-u),g=Math.min(i,Math.round(s.y)+u),f=Math.min(r,Math.round(s.x)+u);for(let e=m;e<g;e++)for(let t=o;t<f;t++){const i=e*r+t,a=l(s.x-t,s.y-e,u);p=c[i]+=a*n,p>d&&(d=p)}}}return{matrix:c.buffer,max:d}}function l(e,t,r){const s=Math.sqrt(e**2+t**2)/r;return s>1?0:3/(Math.PI*r**2)*(1-s**2)**2}function u(e,t){return"function"==typeof e?e:e?"string"==typeof t?t=>-1*+t[e]:r=>+r[e]+t:()=>1}},10278:(e,t,r)=>{r.d(t,{Z:()=>d});var s=r(43697),i=r(35454),a=r(96674),n=r(5600),o=(r(75215),r(67676),r(80442),r(36030)),l=r(52011);const u=new i.X({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),c=new i.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let p=class extends a.wq{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,s._)([(0,o.J)({classBreaksDef:"class-breaks-definition"})],p.prototype,"type",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],p.prototype,"breakCount",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],p.prototype,"classificationField",void 0),(0,s._)([(0,n.Cb)({type:String,json:{read:u.read,write:u.write}})],p.prototype,"classificationMethod",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],p.prototype,"normalizationField",void 0),(0,s._)([(0,n.Cb)({json:{read:c.read,write:c.write}})],p.prototype,"normalizationType",void 0),(0,s._)([(0,n.Cb)({value:null,json:{write:!0}})],p.prototype,"standardDeviationInterval",null),(0,s._)([(0,n.Cb)({value:null,json:{write:!0}})],p.prototype,"definedInterval",null),p=(0,s._)([(0,l.j)("esri.rest.support.ClassBreaksDefinition")],p);const d=p},622:(e,t,r)=>{r.d(t,{k:()=>a});const s=r(92604).Z.getLogger("esri.rest.support.generateRendererUtils");function i(e,t){return Number(e.toFixed(t))}function a(e){const{normalizationTotal:t}=e;return{classBreaks:n(e),normalizationTotal:t}}function n(e){const t=e.definition,{classificationMethod:r,normalizationType:s,definedInterval:a}=t,n=t.breakCount??1,u=[];let c=e.values;if(0===c.length)return[];c=c.sort(((e,t)=>e-t));const p=c[0],d=c[c.length-1];if("equal-interval"===r)if(c.length>=n){const e=(d-p)/n;let t=p;for(let r=1;r<n;r++){const a=i(p+r*e,6);u.push({minValue:t,maxValue:a,label:o(t,a,s)}),t=a}u.push({minValue:t,maxValue:d,label:o(t,d,s)})}else c.forEach((e=>{u.push({minValue:e,maxValue:e,label:o(e,e,s)})}));else if("natural-breaks"===r){const t=function(e){const t=[],r=[];let s=Number.MIN_VALUE,i=1,a=-1;for(let n=0;n<e.length;n++){const o=e[n];o===s?(i++,r[a]=i):null!==o&&(t.push(o),s=o,i=1,r.push(i),a++)}return{uniqueValues:t,valueFrequency:r}}(c),r=e.valueFrequency||t.valueFrequency,a=l(t.uniqueValues,r,n);let h=p;for(let e=1;e<n;e++)if(t.uniqueValues.length>e){const r=i(t.uniqueValues[a[e]],6);u.push({minValue:h,maxValue:r,label:o(h,r,s)}),h=r}u.push({minValue:h,maxValue:d,label:o(h,d,s)})}else if("quantile"===r)if(c.length>=n&&p!==d){let e=p,t=Math.ceil(c.length/n),r=0;for(let i=1;i<n;i++){let a=t+r-1;a>c.length&&(a=c.length-1),a<0&&(a=0),u.push({minValue:e,maxValue:c[a],label:o(e,c[a],s)}),e=c[a],r+=t,t=Math.ceil((c.length-r)/(n-i))}u.push({minValue:e,maxValue:d,label:o(e,d,s)})}else{let e=-1;for(let t=0;t<c.length;t++){const r=c[t];r!==e&&(e=r,u.push({minValue:e,maxValue:r,label:o(e,r,s)}),e=r)}}else if("standard-deviation"===r){const e=function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/=e.length,t}(c),t=function(e,t){let r=0;for(let s=0;s<e.length;s++){const i=e[s];r+=(i-t)*(i-t)}return r/=e.length,Math.sqrt(r)}(c,e);if(0===t)u.push({minValue:c[0],maxValue:c[0],label:o(c[0],c[0],s)});else{const r=function(e,t,r,s,i){let a=Math.max(s-e,t-s)/i/r;return a=a>=1?1:a>=.5?.5:.25,a}(p,d,n,e,t)*t;let a=0,l=p;for(let t=n;t>=1;t--){const n=i(e-(t-.5)*r,6);u.push({minValue:l,maxValue:n,label:o(l,n,s)}),l=n,a++}let c=i(e+.5*r,6);u.push({minValue:l,maxValue:c,label:o(l,c,s)}),l=c,a++;for(let t=1;t<=n;t++)c=a===2*n?d:i(e+(t+.5)*r,6),u.push({minValue:l,maxValue:c,label:o(l,c,s)}),l=c,a++}}else if("defined-interval"===r){if(!a)return u;const e=c[0],t=c[c.length-1],r=Math.ceil((t-e)/a);let n=e;for(let t=1;t<r;t++){const r=i(e+t*a,6);u.push({minValue:n,maxValue:r,label:o(n,r,s)}),n=r}u.push({minValue:n,maxValue:t,label:o(n,t,s)})}return u}function o(e,t,r){let s=null;return s=e===t?r&&"percent-of-total"===r?e+"%":e.toString():r&&"percent-of-total"===r?e+"% - "+t+"%":e+" - "+t,s}function l(e,t,r){const s=e.length,i=[];r>s&&(r=s);for(let e=0;e<r;e++)i.push(Math.round(e*s/r-1));i.push(s-1);let a=u(i,e,t,r);return function(e,t,r,s,i,a){let n=0,o=0,l=0,u=0,p=!0;for(let d=0;d<2&&p;d++){0===d&&(p=!1);for(let d=0;d<a-1;d++)for(;r[d+1]+1!==r[d+2];){r[d+1]=r[d+1]+1;const a=c(d,r,s,i);l=a.sbMean,n=a.sbSdcm;const h=c(d+1,r,s,i);if(u=h.sbMean,o=h.sbSdcm,!(n+o<t[d]+t[d+1])){r[d+1]=r[d+1]-1;break}t[d]=n,t[d+1]=o,e[d]=l,e[d+1]=u,p=!0}for(let d=a-1;d>0;d--)for(;r[d]!==r[d-1]+1;){r[d]=r[d]-1;const a=c(d-1,r,s,i);l=a.sbMean,n=a.sbSdcm;const h=c(d,r,s,i);if(u=h.sbMean,o=h.sbSdcm,!(n+o<t[d-1]+t[d])){r[d]=r[d]+1;break}t[d-1]=n,t[d]=o,e[d-1]=l,e[d]=u,p=!0}}return p}(a.mean,a.sdcm,i,e,t,r)&&(a=u(i,e,t,r)),i}function u(e,t,r,s){let i=[],a=[],n=[],o=0;const l=[],u=[];for(let i=0;i<s;i++){const s=c(i,e,t,r);l.push(s.sbMean),u.push(s.sbSdcm),o+=u[i]}let p,d=o,h=!0;for(;h||o<d;){h=!1,i=[];for(let t=0;t<s;t++)i.push(e[t]);for(let r=0;r<s;r++)for(let i=e[r]+1;i<=e[r+1];i++)if(p=t[i],r>0&&i!==e[r+1]&&Math.abs(p-l[r])>Math.abs(p-l[r-1]))e[r]=i;else if(r<s-1&&e[r]!==i-1&&Math.abs(p-l[r])>Math.abs(p-l[r+1])){e[r+1]=i-1;break}d=o,o=0,a=[],n=[];for(let i=0;i<s;i++){a.push(l[i]),n.push(u[i]);const s=c(i,e,t,r);l[i]=s.sbMean,u[i]=s.sbSdcm,o+=u[i]}}if(o>d){for(let t=0;t<s;t++)e[t]=i[t],l[t]=a[t],u[t]=n[t];o=d}return{mean:l,sdcm:u}}function c(e,t,r,i){let a=0,n=0;for(let s=t[e]+1;s<=t[e+1];s++){const e=i[s];a+=r[s]*e,n+=e}n<=0&&s.warn("Exception in Natural Breaks calculation");const o=a/n;let l=0;for(let s=t[e]+1;s<=t[e+1];s++)l+=i[s]*(r[s]-o)**2;return{sbMean:o,sbSdcm:l}}},79213:(e,t,r)=>{r.d(t,{qQ:()=>f,do:()=>v,gq:()=>g,yO:()=>b}),r(66577),r(20102);var s=r(62357),i=r(35463),a=r(82971),n=r(82397),o=r(8744),l=r(69165),u=r(73572),c=(r(90344),r(59266)),p=(r(54938),r(68773),r(46791),r(92604));r(17452),r(75215),r(29681),r(8238),p.Z.getLogger("esri.support.basemapUtils"),r(25031),new Set(["integer","small-integer"]);var d=r(24452),h=r(94139);let y=null;const m=/^(?<hh>([0-1][0-9])|([2][0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?([.](?<ms>\d+))?$/;function g(e,t,r,s){const i=(0,o.MP)(r)?(0,o.C5)(r):null,a=i?Math.round((i.valid[1]-i.valid[0])/t.scale[0]):null;return e.map((e=>{const r=new h.Z(e.geometry);return(0,n.RF)(t,r,r,r.hasZ,r.hasM),e.geometry=i?function(e,t,r){return e.x<0?e.x+=t:e.x>r&&(e.x-=t),e}(r,a??0,s[0]):r,e}))}function f(e,t=18,r,i,a,n){const o=new Float64Array(a*n);t=Math.round((0,s.F2)(t));let l=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,p=0,d=0,h=0,y=0;const m=(0,u.wx)(i,r);for(const{geometry:r,attributes:s}of e){const{x:e,y:i}=r,g=Math.max(0,e-t),f=Math.max(0,i-t),b=Math.min(n,i+t),v=Math.min(a,e+t),w=+m(s);for(let r=f;r<b;r++)for(let s=g;s<v;s++){const n=r*a+s,m=(0,u.If)(s-e,r-i,t),g=o[n];p=o[n]+=m*w;const f=p-g;d+=f,h+=f*f,p<l&&(l=p),p>c&&(c=p),y++}}if(!y)return{mean:0,stddev:0,min:0,max:0,mid:0,count:0};const g=(c-l)/2;return{mean:d/y,stdDev:Math.sqrt((h-d*d/y)/y),min:l,max:c,mid:g,count:y}}function b(e){const t=m.exec(e);if(!t)return null;const{hh:r,mm:s,ss:a,ms:n}=t.groups;return Number(r)*i.fM.hours+Number(s)*i.fM.minutes+Number(a)*i.fM.seconds+Number(n||0)}async function v(e,t,r=!0){if(!t)return[];const{field:s,field2:i,field3:n,fieldDelimiter:o,fieldInfos:u,timeZone:p}=e,h=s&&u?.find((e=>e.name.toLowerCase()===s.toLowerCase())),m=!!h&&(0,l.sX)(h),g=!!h&&function(e){return(0,l.y2)(e)||(0,l.UQ)(e)||(0,l.ig)(e)}(h),f=e.valueExpression,v=e.normalizationType,w=e.normalizationField,S=e.normalizationTotal,_=[],M=e.viewInfoParams;let C=null,T=null;if(f){if(!y){const{arcadeUtils:e}=await(0,c.LC)();y=e}y.hasGeometryOperations(f)&&await y.enableGeometryOperations(),C=y.createFunction(f),T=M?y.getViewInfo({viewingMode:M.viewingMode,scale:M.scale,spatialReference:new a.Z(M.spatialReference)}):null}const I=e.fieldInfos,L=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!I?null:{fields:I};return t.forEach((e=>{const t=e.attributes;let a;if(f){const t=L?{...e,layer:L}:e,r=y.createExecContext(t,T,p);a=y.executeFunction(C,r)}else t&&(a=t[s],i?(a=`${(0,d.wk)(a)}${o}${(0,d.wk)(t[i])}`,n&&(a=`${a}${o}${(0,d.wk)(t[n])}`)):"string"==typeof a&&r&&(g?a=a?new Date(a).getTime():null:m&&(a=a?b(a):null)));if(v&&"number"==typeof a&&isFinite(a)){const e=t&&parseFloat(t[w]);a=(0,d.fk)(a,v,e,S)}_.push(a)})),_}},24452:(e,t,r)=>{r.d(t,{DL:()=>D,F_:()=>G,G2:()=>P,H0:()=>g,Lq:()=>v,Qm:()=>N,S5:()=>m,XL:()=>b,eT:()=>U,fk:()=>V,i5:()=>f,oF:()=>R,wk:()=>y});var s=r(10278),i=r(622);const a="<Null>",n="equal-interval",o=1,l=5,u=10,c=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,p=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),d=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),h=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function y(e){return null==e||"string"==typeof e&&!e?a:e}function m(e){const t=null!=e.normalizationField||null!=e.normalizationType,r=null!=e.minValue||null!=e.maxValue,s=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!r&&!s}function g(e){const t=e.returnDistinct?[...new Set(e.values)]:e.values,r=t.filter((e=>null!=e)).sort(),s=r.length,i={count:s,min:r[0],max:r[s-1]};return e.supportsNullCount&&(i.nullcount=t.length-s),e.percentileParams&&(i.median=b(t,e.percentileParams)),i}function f(e){const{values:t,useSampleStdDev:r,supportsNullCount:s}=e;let i=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY,n=null,o=null,l=null,u=null,c=0;const p=null==e.minValue?-1/0:e.minValue,d=null==e.maxValue?1/0:e.maxValue;for(const e of t)Number.isFinite(e)?e>=p&&e<=d&&(n=null===n?e:n+e,i=Math.min(i,e),a=Math.max(a,e),c++):"string"==typeof e&&c++;if(c&&null!=n){o=n/c;let e=0;for(const r of t)Number.isFinite(r)&&r>=p&&r<=d&&(e+=(r-o)**2);u=r?c>1?e/(c-1):0:c>0?e/c:0,l=Math.sqrt(u)}else i=null,a=null;const h={avg:o,count:c,max:a,min:i,stddev:l,sum:n,variance:u};return s&&(h.nullcount=t.length-c),e.percentileParams&&(h.median=b(t,e.percentileParams)),h}function b(e,t){const{fieldType:r,value:s,orderBy:i,isDiscrete:a}=t,n=v(r,"desc"===i);if(0===(e=[...e].filter((e=>null!=e)).sort(((e,t)=>n(e,t)))).length)return null;if(s<=0)return e[0];if(s>=1)return e[e.length-1];const o=(e.length-1)*s,l=Math.floor(o),u=l+1,c=o%1,p=e[l],d=e[u];return u>=e.length||a||"string"==typeof p||"string"==typeof d?p:p*(1-c)+d*c}function v(e,t){if(e){if(p.has(e))return O(t);if(d.has(e))return I(t,!1);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?M:_}(t);const r=I(t,!0);if("esriFieldTypeString"===e)return r;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>r(k(e),k(t))}const r=t?1:-1,s=O(t),i=I(t,!0);return(e,t)=>"number"==typeof e&&"number"==typeof t?s(e,t):"string"==typeof e&&"string"==typeof t?i(e,t):r}const w=(e,t)=>null==e?null==t?0:1:null==t?-1:null,S=(e,t)=>null==e?null==t?0:-1:null==t?1:null,_=(e,t)=>S(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),M=(e,t)=>w(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),C=(e,t)=>S(e,t)??(e===t?0:e<t?-1:1),T=(e,t)=>w(e,t)??(e===t?0:e<t?1:-1);function I(e,t){if(!t)return e?T:C;const r=function(e){return e?w:S}(e);return e?(e,t)=>{const s=r(e,t);return null!=s?s:(e=e.toUpperCase())>(t=t.toUpperCase())?-1:e<t?1:0}:(e,t)=>{const s=r(e,t);return null!=s?s:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}}const L=(e,t)=>w(e,t)??t-e,x=(e,t)=>S(e,t)??e-t;function O(e){return e?L:x}function k(e){return e.substr(24,12)+e.substr(19,4)+e.substr(16,2)+e.substr(14,2)+e.substr(11,2)+e.substr(9,2)+e.substr(6,2)+e.substr(4,2)+e.substr(2,2)+e.substr(0,2)}function G(e,t){let r;for(r in e)h.includes(r)&&(Number.isFinite(e[r])||(e[r]=null));return t?(["avg","stddev","variance"].forEach((t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))})),e):e}function U(e){const t={};for(let r of e)(null==r||"string"==typeof r&&""===r.trim())&&(r=null),null==t[r]?t[r]={count:1,data:r}:t[r].count++;return{count:t}}function F(e){return"coded-value"!==e?.type?[]:e.codedValues.map((e=>e.code))}function N(e,t,r,s){const i=e.count,a=[];if(r&&t){const e=[],r=F(t[0]);for(const i of r)if(t[1]){const r=F(t[1]);for(const a of r)if(t[2]){const r=F(t[2]);for(const t of r)e.push(`${y(i)}${s}${y(a)}${s}${y(t)}`)}else e.push(`${y(i)}${s}${y(a)}`)}else e.push(i);for(const t of e)i.hasOwnProperty(t)||(i[t]={data:t,count:0})}for(const e in i){const t=i[e];a.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:a}}function V(e,t,r,s){let i=null;switch(t){case"log":0!==e&&(i=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(s)&&0!==s&&(i=e/s*100);break;case"field":Number.isFinite(r)&&0!==r&&(i=e/r);break;case"natural-log":e>0&&(i=Math.log(e));break;case"square-root":e>0&&(i=e**.5)}return i}function P(e,t){const r=A({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,breakCount:t.numClasses||l});return e=function(e,t,r){const s=t??-1/0,i=r??1/0;return e.filter((e=>Number.isFinite(e)&&e>=s&&e<=i))}(e,t.minValue,t.maxValue),(0,i.k)({definition:r,values:e,normalizationTotal:t.normalizationTotal})}function A(e){const{breakCount:t,field:r,normalizationField:i,normalizationType:a}=e,l=e.classificationMethod||n,u="standard-deviation"===l?e.standardDeviationInterval||o:void 0;return new s.Z({breakCount:t,classificationField:r,classificationMethod:l,normalizationField:"field"===a?i:void 0,normalizationType:a,standardDeviationInterval:u})}function D(e,t){let r=e.classBreaks;const s=r.length,i=r[0]?.minValue,a=r[s-1]?.maxValue,n="standard-deviation"===t,o=c;return r=r.map((e=>{const t=e.label,r={minValue:e.minValue,maxValue:e.maxValue,label:t};if(n&&t){const e=t.match(o),s=e?.map((e=>+e.trim()))??[];2===s.length?(r.minStdDev=s[0],r.maxStdDev=s[1],s[0]<0&&s[1]>0&&(r.hasAvg=!0)):1===s.length&&(t.includes("<")?(r.minStdDev=null,r.maxStdDev=s[0]):t.includes(">")&&(r.minStdDev=s[0],r.maxStdDev=null))}return r})),{minValue:i,maxValue:a,classBreakInfos:r,normalizationTotal:e.normalizationTotal}}function R(e,t){const r=q(e,t);if(null==r.min&&null==r.max)return{bins:[],minValue:r.min,maxValue:r.max,normalizationTotal:t.normalizationTotal};const s=r.intervals,i=r.min??0,a=r.max??0,n=s.map(((e,t)=>({minValue:s[t][0],maxValue:s[t][1],count:0})));for(const t of e)if(null!=t&&t>=i&&t<=a){const e=j(s,t);e>-1&&n[e].count++}return{bins:n,minValue:i,maxValue:a,normalizationTotal:t.normalizationTotal}}function q(e,t){const{field:r,classificationMethod:s,standardDeviationInterval:i,normalizationType:a,normalizationField:n,normalizationTotal:o,minValue:l,maxValue:c}=t,p=t.numBins||u;let d=null,h=null,y=null;if(s&&"equal-interval"!==s||a){const{classBreaks:t}=P(e,{field:r,normalizationType:a,normalizationField:n,normalizationTotal:o,classificationMethod:s,standardDeviationInterval:i,minValue:l,maxValue:c,numClasses:p});d=t[0].minValue,h=t[t.length-1].maxValue,y=t.map((e=>[e.minValue,e.maxValue]))}else{if(null!=l&&null!=c)d=l,h=c;else{const t=f({values:e,minValue:l,maxValue:c,useSampleStdDev:!a,supportsNullCount:m({normalizationType:a,normalizationField:n,minValue:l,maxValue:c})});d=t.min??null,h=t.max??null}y=function(e,t,r){const s=(t-e)/r,i=[];let a,n=e;for(let e=1;e<=r;e++)a=n+s,a=Number(a.toFixed(16)),i.push([n,e===r?t:a]),n=a;return i}(d??0,h??0,p)}return{min:d,max:h,intervals:y}}function j(e,t){let r=-1;for(let s=e.length-1;s>=0;s--)if(t>=e[s][0]){r=s;break}return r}},59266:(e,t,r)=>{r.d(t,{LC:()=>l,WW:()=>u,Yi:()=>c,mz:()=>d,pp:()=>p}),r(66577);var s=r(20102),i=r(92604),a=r(82971);const n=i.Z.getLogger("esri.support.arcadeOnDemand");let o;function l(){return o||(o=(async()=>{const e=await r.e(304).then(r.bind(r,20304));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),o}const u=(e,t,r)=>d.create(e,t,r,null,["$feature","$view"],[]),c=(e,t,r)=>d.create(e,t,r,null,["$feature","$view"],[]),p=(e,t,r,s)=>d.create(e,t,r,s,["$feature","$view"],[]);class d{constructor(e,t,r,s,i,a,n){this.services=null,this.script=e,this.evaluate=s;const o=Array.isArray(a)?a:a.fields;this.fields=o,this._syntaxTree=r,this._arcade=t,this._arcadeFeature=i,this._spatialReference=n,this._referencesGeometry=t.scriptTouchesGeometry(this._syntaxTree),this._referencesScale=this._arcade.referencesMember(this._syntaxTree,"scale")}static async create(e,t,r,i,o,u){const{arcade:c,Feature:p,Dictionary:h}=await l(),y=a.Z.fromJSON(t);let m;try{m=c.parseScript(e,u)}catch(t){return n.error(new s.Z("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})),null}const g=o.reduce(((e,t)=>({...e,[t]:null})),{});let f=null;null!=i&&(f=new h(i),f.immutable=!0,g.$config=null);const b=c.scriptUsesGeometryEngine(m),v=b&&c.enableGeometrySupport(),w=c.scriptUsesFeatureSet(m)&&c.enableFeatureSetSupport(),S=c.scriptIsAsync(m),_=S&&c.enableAsyncSupport(),M={vars:g,spatialReference:y,useAsync:!!_};await Promise.all([v,w,_]);const C=new Set;await c.loadDependentModules(C,m,null,S,b);const T=new h;T.immutable=!1,T.setField("scale",0);const I=c.compileScript(m,M);return new d(e,c,m,((e,t)=>{const r=e.$view?.timeZone;return"$view"in e&&e.$view&&(T.setField("scale","object"==typeof e.$view&&"scale"in e.$view?e.$view.scale:void 0),e.$view=T),f&&(e.$config=f),I({vars:e,spatialReference:y,services:t,timeZone:r})}),new p,r,y)}repurposeFeature(e){return e.geometry&&!e.geometry.spatialReference&&(e.geometry.spatialReference=this._spatialReference),this._arcadeFeature.repurposeFromGraphicLikeObject(e.geometry,e.attributes,{fields:this.fields}),this._arcadeFeature}referencesGeometry(){return this._referencesGeometry}referencesScale(){return this._referencesScale}}},8238:(e,t,r)=>{r.d(t,{g:()=>a,s:()=>n});var s=r(99880),i=r(94443);async function a(e){if(!e)return;const t=e.includes("-vector")?e.slice(0,e.indexOf("-vector")):e.includes("-3d")?e.slice(0,e.indexOf("-3d")):e,r=await(0,i.ME)("esri/t9n/basemaps");return r[e]||r[t]}const n={satellite:{id:"satellite",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/satellite.jpg")},baseMapLayers:[{id:"satellite-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1}]},hybrid:{id:"hybrid",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/hybrid.jpg")},baseMapLayers:[{id:"hybrid-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Imagery",showLegend:!1,visibility:!0,opacity:1},{id:"hybrid-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/30d6b8271e1849cd9c3042060001f425/resources/styles/root.json",layerType:"VectorTileLayer",title:"Hybrid Reference Layer",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},terrain:{id:"terrain",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/terrain.jpg")},baseMapLayers:[{id:"terrain-base-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Terrain Base",showLegend:!1,visibility:!0,opacity:1},{id:"terrain-reference-layer",url:"//services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Reference Overlay",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},oceans:{id:"oceans",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/oceans.jpg")},baseMapLayers:[{id:"oceans-base-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Base",showLegend:!1,visibility:!0,opacity:1},{id:"oceans-reference-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Ocean/World_Ocean_Reference/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Ocean Reference",isReference:!0,showLegend:!1,visibility:!0,opacity:1}]},osm:{id:"osm",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/osm.jpg")},baseMapLayers:[{id:"osm-base-layer",layerType:"OpenStreetMap",title:"Open Street Map",showLegend:!1,visibility:!0,opacity:1}]},"dark-gray-vector":{id:"dark-gray-vector",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/dark-gray-vector.jpg")},baseMapLayers:[{id:"dark-gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/5e9b3685f4c24d8781073dd928ebda50/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Base",visibility:!0,opacity:1},{id:"dark-gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/747cb7a5329c478cbe6981076cc879c5/resources/styles/root.json",layerType:"VectorTileLayer",title:"Dark Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get"dark-gray"(){return{...this["dark-gray-vector"],id:"dark-gray"}},"gray-vector":{id:"gray-vector",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/gray-vector.jpg")},baseMapLayers:[{id:"gray-base-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/291da5eab3a0412593b66d384379f89f/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Base",visibility:!0,opacity:1},{id:"gray-reference-layer",styleUrl:"https://cdn.arcgis.com/sharing/rest/content/items/1768e8369a214dfab4e2167d5c5f2454/resources/styles/root.json",layerType:"VectorTileLayer",title:"Light Gray Reference",isReference:!0,visibility:!0,opacity:1}]},get gray(){return{...this["gray-vector"],id:"gray"}},"streets-vector":{id:"streets-vector",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/streets-vector.jpg")},baseMapLayers:[{id:"streets-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/de26a3cf4cc9451298ea173c4b324736/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets",visibility:!0,opacity:1}]},get streets(){return{...this["streets-vector"],id:"streets"}},"topo-vector":{id:"topo-vector",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/topo-vector.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"topo-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/7dc6cea0b1764a1f9af2e679f642f0f5/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Topo",visibility:!0,opacity:1}]},get topo(){return{...this["topo-vector"],id:"topo"}},"streets-night-vector":{id:"streets-night-vector",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/streets-night.jpg")},baseMapLayers:[{id:"streets-night-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/86f556a2d1fd468181855a35e344567f/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Night",visibility:!0,opacity:1}]},"streets-relief-vector":{id:"streets-relief-vector",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/streets-relief.jpg")},baseMapLayers:[{id:"world-hillshade-layer",url:"//services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer",layerType:"ArcGISTiledMapServiceLayer",title:"World Hillshade",showLegend:!1,visibility:!0,opacity:1},{id:"streets-relief-vector-base-layer",styleUrl:"//www.arcgis.com/sharing/rest/content/items/b266e6d17fc345b498345613930fbd76/resources/styles/root.json",title:"World Streets Relief",layerType:"VectorTileLayer",visibility:!0,opacity:1}]},"streets-navigation-vector":{id:"streets-navigation-vector",classic:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/streets-navigation.jpg")},baseMapLayers:[{id:"streets-navigation-vector-base-layer",styleUrl:"//cdn.arcgis.com/sharing/rest/content/items/63c47b7177f946b49902c24129b87252/resources/styles/root.json",layerType:"VectorTileLayer",title:"World Streets Navigation",visibility:!0,opacity:1}]},"topo-3d":{id:"topo-3d",is3d:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/topo-3d.png")},baseMapLayers:[{id:"topo-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/1e7d1784d1ef4b79ba6764d0bd6c3150/resources/styles/root.json",layerType:"VectorTileLayer",title:"Topographic",visibility:!0,opacity:1},{id:"topo-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Trees_Thematic_v1/SceneServer",itemId:"f75fef56b2d944fe92ef9f7737b4f953",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"topo-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"navigation-3d":{id:"navigation-3d",is3d:!0,get thumbnailUrl(){return(0,s.V)("esri/images/basemap/navigation-3d.jpg")},baseMapLayers:[{id:"navigation-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/ccc904ff872b4144b94934e55e32784b/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation",visibility:!0,opacity:1},{id:"navigation-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_DarkLabels_v1/SceneServer",itemId:"a84404ad39c64c328d0596e361ec459b",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"navigation-dark-3d":{id:"navigation-dark-3d",itemId:"5a1365328b4943f09a54cf5fd1205707",is3d:!0,baseMapLayers:[{id:"navigation-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/451a1777ab3f4bf095fae24a117439d9/resources/styles/root.json",layerType:"VectorTileLayer",title:"Navigation Dark"},{id:"navigation-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer/layers/0",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"navigation-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"arcgis-imagery":{get thumbnailUrl(){return(0,s.V)("esri/images/basemap/hybrid.jpg")},title:"Imagery Hybrid",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-imagery-standard":{get thumbnailUrl(){return(0,s.V)("esri/images/basemap/satellite.jpg")},title:"Imagery",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Imagery",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/World_Imagery/MapServer"}]},"arcgis-imagery-labels":{title:"Hybrid [Reference]",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Imagery:Labels",title:"Hybrid Reference Layer",isReference:!0}]},"arcgis-light-gray":{get thumbnailUrl(){return(0,s.V)("esri/images/basemap/gray-vector.jpg")},title:"Light Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Base",title:"Light Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:LightGray:Labels",title:"Light Gray Canvas Labels",isReference:!0}]},"arcgis-dark-gray":{get thumbnailUrl(){return(0,s.V)("esri/images/basemap/dark-gray.jpg")},title:"Dark Gray Canvas",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Base",title:"Dark Gray Canvas Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:DarkGray:Labels",title:"Dark Gray Canvas Labels",isReference:!0}]},"arcgis-navigation":{get thumbnailUrl(){return(0,s.V)("esri/images/basemap/streets-navigation.jpg")},title:"Navigation",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Navigation",title:"World Navigation Map"}]},"arcgis-navigation-night":{title:"Navigation (Dark Mode)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:NavigationNight",title:"World Navigation Map (Dark Mode)"}]},"arcgis-streets":{get thumbnailUrl(){return(0,s.V)("esri/images/basemap/streets-vector.jpg")},title:"Streets",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Streets",title:"World Street Map"}]},"arcgis-streets-night":{get thumbnailUrl(){return(0,s.V)("esri/images/basemap/streets-night.jpg")},title:"Streets (Night)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsNight",title:"World Street Map (Night)"}]},"arcgis-streets-relief":{get thumbnailUrl(){return(0,s.V)("esri/images/basemap/streets-relief.jpg")},title:"Streets (with Relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:StreetsRelief:Base",title:"World Street Map (with Relief)"}]},"arcgis-topographic":{get thumbnailUrl(){return(0,s.V)("esri/images/basemap/topo.jpg")},title:"Topographic",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Topographic:Base",title:"World Topographic Map"}]},"arcgis-oceans":{get thumbnailUrl(){return(0,s.V)("esri/images/basemap/oceans.jpg")},title:"Oceans",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Ocean Base",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Ocean/World_Ocean_Base/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Oceans:Labels",title:"World Ocean Reference",isReference:!0}]},"osm-standard":{title:"OpenStreetMap",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Standard",title:"OpenStreetMap"}]},"osm-standard-relief":{title:"OpenStreetMap (with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StandardRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-streets":{title:"OpenStreetMap (Streets)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:Streets",title:"OpenStreetMap (Streets)"}]},"osm-streets-relief":{title:"OpenStreetMap (Streets with relief)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:StreetsRelief:Base",layerType:"VectorTileLayer",title:"OpenStreetMap Relief Base"}]},"osm-light-gray":{title:"OpenStreetMap (Light Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Base",title:"OSM (Light Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:LightGray:Labels",title:"OSM (Light Gray Reference)",isReference:!0}]},"osm-dark-gray":{title:"OpenStreetMap (Dark Gray Canvas)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Base",title:"OSM (Dark Gray Base)"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/OSM:DarkGray:Labels",title:"OSM (Dark Gray Reference)",isReference:!0}]},"arcgis-terrain":{title:"Terrain with Labels",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Base",title:"World Terrain Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Terrain:Detail",title:"World Terrain Reference",isReference:!0}]},"arcgis-community":{title:"Community",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Community",title:"Community"}]},"arcgis-charted-territory":{title:"Charted Territory",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ChartedTerritory:Base",title:"Charted Territory"}]},"arcgis-colored-pencil":{title:"Colored Pencil",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ColoredPencil",title:"Colored Pencil"}]},"arcgis-nova":{title:"Nova",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Nova",title:"Nova"}]},"arcgis-modern-antique":{title:"Modern Antique",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:ModernAntique:Base",title:"Modern Antique"}]},"arcgis-midcentury":{title:"Mid-Century",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Midcentury",title:"Mid-Century"}]},"arcgis-newspaper":{title:"Newspaper",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:Newspaper",title:"Newspaper"}]},"arcgis-hillshade-light":{title:"Hillshade",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer"}]},"arcgis-hillshade-dark":{title:"Hillshade (Dark)",baseMapLayers:[{layerType:"ArcGISTiledMapServiceLayer",showLegend:!1,title:"World Hillshade (Dark)",url:"https://ibasemaps-api.arcgis.com/arcgis/rest/services/Elevation/World_Hillshade_Dark/MapServer"}]},"arcgis-human-geography":{title:"Human Geography",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Base",title:"Human Geography Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Detail",title:"Human Geography Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeography:Label",title:"Human Geography Label",isReference:!0}]},"arcgis-human-geography-dark":{title:"Human Geography (Dark)",baseMapLayers:[{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Base",title:"Human Geography Dark Base"},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Detail",title:"Human Geography Dark Detail",isReference:!0},{layerType:"VectorTileLayer",styleUrl:"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/ArcGIS:HumanGeographyDark:Label",title:"Human Geography Dark Label",isReference:!0}]}}},15650:(e,t,r)=>{r.d(t,{Nw:()=>d});var s=r(20102),i=r(22974),a=r(78286),n=r(827),o=r(84230);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wms","wmts"]),u=new Set(["csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","map-image","map-notes","media","ogc-feature","oriented-imagery","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wfs","wms","wmts"]);function c(e,t){if(t.restrictedWebMapWriting){const r=function(e){return"basemap"===e.layerContainerType?l:"operational-layers"===e.layerContainerType?u:null}(t);return null==r||r.has(e.type)&&!(0,o.rQ)(e)}return!0}function p(e,t){"maxScale"in e&&(t.maxScale=(0,n.k)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,n.k)(e.minScale)??void 0)}function d(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return r?.messages&&r.messages.push(new s.Z("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if((0,o.rQ)(e)&&!e.isTable)t=e.resourceInfo;else if(c(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,o.rQ)(e)){const r=(0,a.hS)("featureCollection.layers",t),s=r?.[0]?.layerDefinition;s&&p(e,s)}else"group"!==e.type&&p(e,t)}(e,t),t&&(t.id=e.id,"blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,n.k)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,o.rQ)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,i.d9)(t)),t}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5883],{13867:(e,t,i)=>{i.d(t,{z:()=>n});var s=i(69801);class n{constructor(e,t){this._storage=new s.WJ,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this),t&&this._storage.registerRemoveFunc("",t)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,i=1){this._storage.put(this,e,t,i,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},69801:(e,t,i)=>{i.d(t,{WJ:()=>a,Xq:()=>o});var s,n,r=i(44553);(n=s||(s={}))[n.ALL=0]="ALL",n[n.SOME=1]="SOME";class o{constructor(e,t,i){this.name=e,this._storage=t,this.id=l+++":",this.size=0,this.maxSize=0,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),i&&(this._storage.registerRemoveFunc(this.id,i),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get sizeAll(){return this._storage.size}resetHitRate(){this._hit=this._miss=0}put(e,t,i,s=0){this._storage.put(this,e,t,i,s)}get(e){const t=this._storage.get(this,e);return void 0===t?++this._miss:++this._hit,t}peek(e){return this._storage.peek(this,e)}pop(e){const t=this._storage.pop(this,e);return void 0===t?++this._miss:++this._hit,t}updateSize(e,t,i){this._storage.updateSize(this,e,t,i)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class a{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.Z,this._users=new r.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(e){this._users.push(e)}deregister(e){this._users.removeUnordered(e)}registerRemoveFunc(e,t){this._removeFuncs.push([e,t])}deregisterRemoveFunc(e){this._removeFuncs.filterInPlace((t=>t[0]!==e))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,0),this._checkSizeLimits()}put(e,t,i,n,r){t=e.id+t;const o=this._db.get(t);if(o&&(this._size-=o.size,e.size-=o.size,this._db.delete(t),o.entry!==i&&this._notifyRemove(t,o.entry,s.ALL)),n>this._maxSize)return void this._notifyRemove(t,i,s.ALL);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return console.warn(`Refusing to cache entry with size ${n} for key ${t}`),void this._notifyRemove(t,i,s.ALL);const a=1+Math.max(r,-3)- -3;this._db.set(t,{entry:i,size:n,lifetime:a,lives:a}),this._size+=n,e.size+=n,this._checkSizeLimits()}updateSize(e,t,i,n){t=e.id+t;const r=this._db.get(t);if(r&&r.entry===i){for(this._size-=r.size,e.size-=r.size;n>this._maxSize;){const e=this._notifyRemove(t,i,s.SOME);if(!(null!=e&&e>0))return void this._db.delete(t);n=e}r.size=n,this._size+=n,e.size+=n,this._checkSizeLimits()}}pop(e,t){t=e.id+t;const i=this._db.get(t);if(i)return this._size-=i.size,e.size-=i.size,this._db.delete(t),++this._hit,i.entry;++this._miss}get(e,t){t=e.id+t;const i=this._db.get(t);if(void 0!==i)return this._db.delete(t),i.lives=i.lifetime,this._db.set(t,i),++this._hit,i.entry;++this._miss}peek(e,t){const i=this._db.get(e.id+t);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},i=new Array;this._db.forEach(((e,s)=>{const n=e.lifetime;i[n]=(i[n]||0)+e.size,this._users.forAll((i=>{const{id:n,name:r}=i;if(s.startsWith(n)){const i=t[r]||0;t[r]=i+e.size}}))}));const s={};this._users.forAll((e=>{const i=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const n=t[i]||0;t[i]=n,s[i]=Math.round(100*e.hitRate)+"%"}else s[i]="0%"}));const n=Object.keys(t);n.sort(((e,i)=>t[i]-t[e])),n.forEach((i=>e[i]=Math.round(t[i]/2**20)+"MB / "+s[i]));for(let t=i.length-1;t>=0;--t){const s=i[t];s&&(e["Priority "+(t+-3-1)]=Math.round(s/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forAll((e=>e.resetHitRate()))}clear(e){const t=e.id;this._db.forEach(((e,i)=>{i.startsWith(t)&&(this._size-=e.size,this._db.delete(i),this._notifyRemove(i,e.entry,s.ALL))})),e.size=0}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,s.ALL))),this._users.forEach((e=>e.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,i){let s;return this._removeFuncs.some((n=>{if(e.startsWith(n[0])){const e=n[1](t,i);return"number"==typeof e&&(s=e),!0}return!1})),s}_checkSizeLimits(){if(this._size>this._maxSize)for(const[e,t]of this._db)if(this._purgeItem(e,t),this._size<=.9*this.maxSize)return;this._users.forEach((e=>{if(e.maxSize>0&&e.size>e.maxSize)for(const[t,i]of this._db)if(t.startsWith(e.id)&&(this._purgeItem(t,i,e),e.size<=.9*e.maxSize))return}))}_purgeItem(e,t,i=this._users.find((t=>e.startsWith(t.id)))){if(this._db.delete(e),t.lives<=1){this._size-=t.size,i&&(i.size-=t.size);const n=this._notifyRemove(e,t.entry,s.SOME);null!=n&&n>0&&(this._size+=n,i&&(i.size+=n),t.lives=t.lifetime,t.size=n,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}let l=0},20188:(e,t,i)=>{function s(e){return null!=a(e)||null!=o(e)}function n(e){return l.test(e)}function r(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let i=!0;if(c&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,s=0;for(;!t&&s<=e.length;)t=!u.test(e[s]),s++;i=!t}}return i}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const i=t.groups,s=+i.year,n=+i.month-1,r=+i.day,o=+(i.hours??"0"),a=+(i.minutes??"0"),u=+(i.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const c=i.ms??"0",h=c?+c.padEnd(3,"0").substring(0,3):0;let d;if(i.isUTC||!i.offsetSign)d=Date.UTC(s,n,r,o,a,u,h);else{const e=+i.offsetHours,t=+i.offsetMinutes;d=6e4*("+"===i.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,n,r,o,a,u,h)}return Number.isNaN(d)?null:d}i.d(t,{mu:()=>n,of:()=>s,sG:()=>r});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,c=!Number.isNaN(new Date("technology 10").getTime())},24133:(e,t,i)=>{i.d(t,{Q:()=>o});var s=i(67676),n=i(44553),r=i(88764);class o{constructor(e=9,t){this._compareMinX=c,this._compareMinY=h,this._toBBox=e=>e,this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),x.prune(),I.prune(),S.prune(),b.prune()}all(e){this._all(this._data,e)}search(e,t){let i=this._data;const s=this._toBBox;if(_(e,i))for(x.clear();i;){for(let n=0,r=i.children.length;n<r;n++){const r=i.children[n],o=i.leaf?s(r):r;_(e,o)&&(i.leaf?t(r):g(e,o)?this._all(r,t):x.push(r))}i=x.pop()}}collides(e){let t=this._data;const i=this._toBBox;if(!_(e,t))return!1;for(x.clear();t;){for(let s=0,n=t.children.length;s<n;s++){const n=t.children[s],r=t.leaf?i(n):n;if(_(e,r)){if(t.leaf||g(e,r))return!0;x.push(n)}}t=x.pop()}return!1}load(e){if(!e.length)return this;if(e.length<this._minEntries){for(let t=0,i=e.length;t<i;t++)this.insert(e[t]);return this}let t=this._build(e.slice(0,e.length),0,e.length-1,0);if(this._data.children.length)if(this._data.height===t.height)this._splitRoot(this._data,t);else{if(this._data.height<t.height){const e=this._data;this._data=t,t=e}this._insert(t,this._data.height-t.height-1,!0)}else this._data=t;return this}insert(e){return e&&this._insert(e,this._data.height-1),this}clear(){return this._data=new v([]),this}remove(e){if(!e)return this;let t,i=this._data,n=null,r=0,o=!1;const a=this._toBBox(e);for(S.clear(),b.clear();i||S.length>0;){if(i||(i=S.pop(),n=S.data[S.length-1],r=b.pop()??0,o=!0),i.leaf&&(t=(0,s.cq)(i.children,e,i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),S.push(i),this._condense(S),this;o||i.leaf||!g(i,a)?n?(r++,i=n.children[r],o=!1):i=null:(S.push(i),b.push(r),r=0,n=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(e){return this._data=e,this}_all(e,t){let i=e;for(I.clear();i;){if(!0===i.leaf)for(const e of i.children)t(e);else I.pushArray(i.children);i=I.pop()??null}}_build(e,t,i,s){const n=i-t+1;let r=this._maxEntries;if(n<=r){const s=new v(e.slice(t,i+1));return a(s,this._toBBox),s}s||(s=Math.ceil(Math.log(n)/Math.log(r)),r=Math.ceil(n/r**(s-1)));const o=new F([]);o.height=s;const l=Math.ceil(n/r),u=l*Math.ceil(Math.sqrt(r));y(e,t,i,u,this._compareMinX);for(let n=t;n<=i;n+=u){const t=Math.min(n+u-1,i);y(e,n,t,l,this._compareMinY);for(let i=n;i<=t;i+=l){const n=Math.min(i+l-1,t);o.children.push(this._build(e,i,n,s-1))}}return a(o,this._toBBox),o}_chooseSubtree(e,t,i,s){for(;s.push(t),!0!==t.leaf&&s.length-1!==i;){let i,s=1/0,n=1/0;for(let r=0,o=t.children.length;r<o;r++){const o=t.children[r],a=d(o),l=p(e,o)-a;l<n?(n=l,s=a<s?a:s,i=o):l===n&&a<s&&(s=a,i=o)}t=i||t.children[0]}return t}_insert(e,t,i){const s=this._toBBox,n=i?e:s(e);S.clear();const r=this._chooseSubtree(n,this._data,t,S);for(r.children.push(e),u(r,n);t>=0&&S.data[t].children.length>this._maxEntries;)this._split(S,t),t--;this._adjustParentBBoxes(n,S,t)}_split(e,t){const i=e.data[t],s=i.children.length,n=this._minEntries;this._chooseSplitAxis(i,n,s);const r=this._chooseSplitIndex(i,n,s);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=i.children.splice(r,i.children.length-r),l=i.leaf?new v(o):new F(o);l.height=i.height,a(i,this._toBBox),a(l,this._toBBox),t?e.data[t-1].children.push(l):this._splitRoot(i,l)}_splitRoot(e,t){this._data=new F([e,t]),this._data.height=e.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(e,t,i){let s,n,r;s=n=1/0;for(let o=t;o<=i-t;o++){const t=l(e,0,o,this._toBBox),a=l(e,o,i,this._toBBox),u=m(t,a),c=d(t)+d(a);u<s?(s=u,r=o,n=c<n?c:n):u===s&&c<n&&(n=c,r=o)}return r}_chooseSplitAxis(e,t,i){const s=e.leaf?this._compareMinX:c,n=e.leaf?this._compareMinY:h;this._allDistMargin(e,t,i,s)<this._allDistMargin(e,t,i,n)&&e.children.sort(s)}_allDistMargin(e,t,i,s){e.children.sort(s);const n=this._toBBox,r=l(e,0,t,n),o=l(e,i-t,i,n);let a=f(r)+f(o);for(let s=t;s<i-t;s++){const t=e.children[s];u(r,e.leaf?n(t):t),a+=f(r)}for(let s=i-t-1;s>=t;s--){const t=e.children[s];u(o,e.leaf?n(t):t),a+=f(o)}return a}_adjustParentBBoxes(e,t,i){for(let s=i;s>=0;s--)u(t.data[s],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const n=e.data[t-1],r=n.children;r.splice((0,s.cq)(r,i,r.length,n.indexHint),1)}else this.clear();else a(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this._compareMinX=new Function("a","b",t.join(e[0])),this._compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function a(e,t){l(e,0,e.children.length,t,e)}function l(e,t,i,s,n){n||(n=new v([])),n.minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(let r,o=t;o<i;o++)r=e.children[o],u(n,e.leaf?s(r):r);return n}function u(e,t){e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY)}function c(e,t){return e.minX-t.minX}function h(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function f(e){return e.maxX-e.minX+(e.maxY-e.minY)}function p(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function m(e,t){const i=Math.max(e.minX,t.minX),s=Math.max(e.minY,t.minY),n=Math.min(e.maxX,t.maxX),r=Math.min(e.maxY,t.maxY);return Math.max(0,n-i)*Math.max(0,r-s)}function g(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function _(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function y(e,t,i,s,n){const o=[t,i];for(;o.length;){const t=o.pop(),i=o.pop();if(t-i<=s)continue;const a=i+Math.ceil((t-i)/s/2)*s;(0,r.q)(e,a,i,t,n),o.push(i,a,a,t)}}const x=new n.Z,I=new n.Z,S=new n.Z,b=new n.Z({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class N extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new s.SO}}class v extends N{constructor(e){super(),this.children=e,this.leaf=!0}}class F extends N{constructor(e){super(),this.children=e,this.leaf=!1}}},14808:(e,t,i)=>{i.d(t,{Qc:()=>c,WU:()=>a,lt:()=>u});var s=i(19153),n=i(70171);const r={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,n.Kd)()){let t=(e=e.toLowerCase())in r;if(!t){const i=e.split("-");i.length>1&&i[0]in r&&(e=i[0],t=!0),t||(e="en")}const[i,s,o="#,##0.###"]=r[e];return{decimal:i,group:s,pattern:o}}function a(e,t){const i=o((t={...t}).locale);t.customs=i;const s=t.pattern||i.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,i){const s=(i=i||{}).customs.group,n=i.customs.decimal,r=t.split(";"),o=r[0];if((t=r[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===i.fractional&&(i.places=0),t.replace(a,function(e,t,i){!0===(i=i||{}).places&&(i.places=0),i.places===1/0&&(i.places=6);const s=t.split("."),n="string"==typeof i.places&&i.places.indexOf(",");let r=i.places;n?r=i.places.substring(n+1):+r>=0||(r=(s[1]||[]).length),i.round<0||(e=Number(e.toFixed(Number(r))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(s[1]||i.places){n&&(i.places=i.places.substring(0,n));const e=void 0!==i.places?i.places:s[1]&&s[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+r<a.length&&(o[1]=a.substr(0,Number(r)))}else o[1]&&o.pop();const l=s[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].substr(o[0].length-u)));let c,h,d=s[0].lastIndexOf(",");if(-1!==d){c=s[0].length-d-1;const e=s[0].substr(0,d);d=e.lastIndexOf(","),-1!==d&&(h=e.length-d-1)}const f=[];for(let e=o[0];e;){const t=e.length-c;f.push(t>0?e.substr(t):e),e=t>0?e.slice(0,t):"",h&&(c=h,h=void 0)}return o[0]=f.reverse().join(i.group||","),o.join(i.decimal||".")}(e,u[0],{decimal:n,group:s,places:i.places,round:i.round}))}(e,s,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),i=e.pattern||t.pattern,n=t.group,r=t.decimal;let a=1;if(i.includes("%"))a/=100;else if(i.includes("‰"))a/=1e3;else if(i.includes("¤"))throw new Error("currency notation not supported");const u=i.split(";");1===u.length&&u.push("-"+u[0]);const c=d(u,(t=>(t="(?:"+(0,s.Qs)(t,".")+")").replace(l,(t=>{const i={signed:!1,separator:e.strict?n:[n,""],fractional:e.fractional,decimal:r,exponent:!1},s=t.split(".");let o=e.places;1===s.length&&1!==a&&(s[1]="###"),1===s.length||0===o?i.fractional=!1:(void 0===o&&(o=e.pattern?s[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(i.fractional=!0),!e.places&&+o<s[1].length&&(o+=","+s[1].length),i.places=o);const l=s[0].split(",");return l.length>1&&(i.groupSize=l.pop().length,l.length>1&&(i.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=h(e),i=d(e.fractional,(t=>{let i="";return t&&0!==e.places&&(i="\\"+e.decimal,e.places===1/0?i="(?:"+i+"\\d+)?":i+="\\d{"+e.places+"}"),i}),!0);let s=t+i;return i&&(s="(?:(?:"+s+")|(?:"+i+"))"),s+d(e.exponent,(t=>t?"([eE]"+h({signed:e.eSigned})+")":""))}(i)+")"}))),!0);return{regexp:c.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:n,decimal:r,factor:a}}function c(e,t){const i=u(t),s=new RegExp("^"+i.regexp+"$").exec(e);if(!s)return NaN;let n=s[1];if(!s[1]){if(!s[2])return NaN;n=s[2],i.factor*=-1}return n=n.replaceAll(new RegExp("["+i.group+"\\s\\xa0]","g"),"").replace(i.decimal,"."),Number(n)*i.factor}function h(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",d(e.signed,(e=>e?"[-+]":""),!0)+d(e.separator,(t=>{if(!t)return"(?:\\d+)";" "===(t=(0,s.Qs)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const i=e.groupSize,n=e.groupSize2;if(n){const e="(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*["+t+"]\\d{"+i+"})";return i-n>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(i-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(i-1)+"}(?:["+t+"]\\d{"+i+"})*)"}),!0)}const d=(e,t,i)=>{if(!(e instanceof Array))return t(e);const s=[];for(let i=0;i<e.length;i++)s.push(t(e[i]));return f(s.join("|"),Boolean(i))},f=(e,t)=>"("+(t?"?:":"")+e+")"},17445:(e,t,i)=>{i.d(t,{N1:()=>d,YP:()=>l,Z_:()=>m,gx:()=>u,nn:()=>g,on:()=>h,tX:()=>_}),i(66643),i(46791);var s=i(91460),n=i(50758),r=i(70586),o=i(95330),a=i(26258);function l(e,t,i={}){return c(e,t,i,f)}function u(e,t,i={}){return c(e,t,i,p)}function c(e,t,i={},s){let n=null;const o=i.once?(e,i)=>{s(e)&&((0,r.hw)(n),t(e,i))}:(e,i)=>{s(e)&&t(e,i)};if(n=(0,a.aQ)(e,o,i.sync,i.equals),i.initial){const t=e();o(t,t)}return n}function h(e,t,i,o={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function d(e){o.once&&o.once&&(0,r.hw)(c),i(e)}const f=l(e,((e,i)=>{h(),(0,s.vT)(e)&&(a=e,u=(0,s.on)(e,t,d),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return c=(0,n.kB)((()=>{f.remove(),h()})),c}function d(e,t){return function(e,t,i){if((0,o.Hc)(i))return Promise.reject((0,o.zE)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,r.hw)(a)}return new Promise(((s,r)=>{a=(0,n.AL)([(0,o.fu)(i,(()=>{l(),r((0,o.zE)())})),c(e,(e=>{l(),s(e)}),{sync:!1,once:!0},t??f)])}))}(e,p,t)}function f(e){return!0}function p(e){return!!e}i(87538);const m={sync:!0},g={initial:!0},_={sync:!0,initial:!0}},16306:(e,t,i)=>{i.d(t,{aX:()=>b});var s=i(68773),n=i(20102),r=i(92604),o=i(38913),a=i(58901),l=i(73913),u=i(8744),c=i(40488),h=(i(66577),i(3172)),d=i(33955),f=i(11282),p=i(17452);async function m(e,t,i){const s="string"==typeof e?(0,p.mN)(e):e,n=t[0].spatialReference,r=(0,d.Ji)(t[0]),o={...i,query:{...s.query,f:"json",sr:(0,u.B9)(n),geometries:JSON.stringify((l=t,{geometryType:(0,d.Ji)(l[0]),geometries:l.map((e=>e.toJSON()))}))}},{data:a}=await(0,h.Z)(s.path+"/simplify",o);var l;return function(e,t,i){const s=(0,d.q9)(t);return e.map((e=>{const t=s.fromJSON(e);return t.spatialReference=i,t}))}(a.geometries,r,n)}const g=r.Z.getLogger("esri.geometry.support.normalizeUtils");function _(e){return"polygon"===e[0].type}function y(e){return"polyline"===e[0].type}function x(e,t,i){if(t){const t=function(e,t){if(!(e instanceof a.Z||e instanceof o.Z)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(e),new n.Z(e)}const i=(0,l.x3)(e),s=[];for(const e of i){const i=[];s.push(i),i.push([e[0][0],e[0][1]]);for(let s=0;s<e.length-1;s++){const n=e[s][0],r=e[s][1],o=e[s+1][0],a=e[s+1][1],l=Math.sqrt((o-n)*(o-n)+(a-r)*(a-r)),u=(a-r)/l,c=(o-n)/l,h=l/t;if(h>1){for(let e=1;e<=h-1;e++){const s=e*t,o=c*s+n,a=u*s+r;i.push([o,a])}const e=(l+Math.floor(h-1)*t)/2,s=c*e+n,o=u*e+r;i.push([s,o])}i.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new o.Z({rings:s,spatialReference:e.spatialReference}):new a.Z({paths:s,spatialReference:e.spatialReference})}(e,1e6);e=(0,c.Sx)(t,!0)}return i&&(e=(0,l.Sy)(e,i)),e}function I(e,t,i){if(Array.isArray(e)){const s=e[0];if(s>t){const i=(0,l.XZ)(s,t);e[0]=s+i*(-2*t)}else if(s<i){const t=(0,l.XZ)(s,i);e[0]=s+t*(-2*i)}}else{const s=e.x;if(s>t){const i=(0,l.XZ)(s,t);e=e.clone().offset(i*(-2*t),0)}else if(s<i){const t=(0,l.XZ)(s,i);e=e.clone().offset(t*(-2*i),0)}}return e}function S(e,t){let i=-1;for(let s=0;s<t.cutIndexes.length;s++){const n=t.cutIndexes[s],r=t.geometries[s],o=(0,l.x3)(r);for(let e=0;e<o.length;e++){const t=o[e];t.some((i=>{if(i[0]<180)return!0;{let i=0;for(let e=0;e<t.length;e++){const s=t[e][0];i=s>i?s:i}i=Number(i.toFixed(9));const s=-360*(0,l.XZ)(i,180);for(let i=0;i<t.length;i++){const t=r.getPoint(e,i);r.setPoint(e,i,t.clone().offset(s,0))}return!0}}))}if(n===i){if(_(e))for(const t of(0,l.x3)(r))e[n]=e[n].addRing(t);else if(y(e))for(const t of(0,l.x3)(r))e[n]=e[n].addPath(t)}else i=n,e[n]=r}return e}async function b(e,t,i){if(!Array.isArray(e))return b([e],t);t&&"string"!=typeof t&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const n="string"==typeof t?t:t?.url??s.default.geometryServiceUrl;let r,p,_,y,w,N,v,F,B=0;const E=[],z=[];for(const t of e)if(null!=t)if(r||(r=t.spatialReference,p=(0,u.C5)(r),_=r.isWebMercator,N=_?102100:4326,y=l.UZ[N].maxX,w=l.UZ[N].minX,v=l.UZ[N].plus180Line,F=l.UZ[N].minus180Line),p)if("mesh"===t.type)z.push(t);else if("point"===t.type)z.push(I(t.clone(),y,w));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>I(e,y,w))),z.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,p);z.push(e.rings?new o.Z(e):e)}else if(t.extent){const e=t.extent,i=(0,l.XZ)(e.xmin,w)*(2*y);let s=0===i?t.clone():(0,l.Sy)(t.clone(),i);e.offset(i,0),e.intersects(v)&&e.xmax!==y?(B=e.xmax>B?e.xmax:B,s=x(s,_),E.push(s),z.push("cut")):e.intersects(F)&&e.xmin!==w?(B=e.xmax*(2*y)>B?e.xmax*(2*y):B,s=x(s,_,360),E.push(s),z.push("cut")):z.push(s)}else z.push(t.clone());else z.push(t);else z.push(t);let M=(0,l.XZ)(B,y),T=-90;const Z=M,R=new a.Z;for(;M>0;){const e=360*M-180;R.addPath([[e,T],[e,-1*T]]),T*=-1,M--}if(E.length>0&&Z>0){const t=S(E,await async function(e,t,i,s){const n=(0,f.en)(e),r=t[0].spatialReference,o={...s,responseType:"json",query:{...n.query,f:"json",sr:(0,u.B9)(r),target:JSON.stringify({geometryType:(0,d.Ji)(t[0]),geometries:t}),cutter:JSON.stringify(i)}},a=await(0,h.Z)(n.path+"/cut",o),{cutIndexes:l,geometries:c=[]}=a.data;return{cutIndexes:l,geometries:c.map((e=>{const t=(0,d.im)(e);return t.spatialReference=r,t}))}}(n,E,R,i)),s=[],r=[];for(let i=0;i<z.length;i++){const n=z[i];if("cut"!==n)r.push(n);else{const n=t.shift(),o=e[i];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&n.rings.length>=o.rings.length?(s.push(n),r.push("simplify")):r.push(_?(0,c.$)(n):n)}}if(!s.length)return r;const o=await m(n,s,i),a=[];for(let e=0;e<r.length;e++){const t=r[e];"simplify"!==t?a.push(t):a.push(_?(0,c.$)(o.shift()):o.shift())}return a}const A=[];for(let e=0;e<z.length;e++){const t=z[e];if("cut"!==t)A.push(t);else{const e=E.shift();A.push(!0===_?(0,c.$)(e):e)}}return A}},73913:(e,t,i)=>{i.d(t,{Sy:()=>l,UZ:()=>o,XZ:()=>a,x3:()=>u});var s=i(58901),n=i(82971),r=i(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator}),minus180Line:new s.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:n.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.Z({paths:[[[180,-180],[180,180]]],spatialReference:n.Z.WGS84}),minus180Line:new s.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:n.Z.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const i=u(e);for(const e of i)for(const i of e)i[0]+=t;return e}function u(e){return(0,r.oU)(e)?e.rings:e.paths}},37549:(e,t,i)=>{i.d(t,{H:()=>a});var s=i(80442),n=i(24133),r=i(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new n.Q(9,(0,s.Z)("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach(((i,s)=>{e[t++]=s})),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((e=>this._idByBounds.has(e)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const e=(0,r.cS)();for(const t of this._boundsById.values())t&&(e[0]=Math.min(t[0],e[0]),e[1]=Math.min(t[1],e[1]),e[2]=Math.max(t[2],e[2]),e[3]=Math.max(t[3],e[3]));return e}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),function(e,t,i){(function(e){o.minX=e[0],o.minY=e[1],o.maxX=e[2],o.maxY=e[3]})(t),e.search(o,i)}(this._index,e,(e=>t(this._idByBounds.get(e))))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},28972:(e,t,i)=>{i.d(t,{Z:()=>N});var s=i(67676),n=i(20102),r=i(32448),o=i(92604),a=i(60437),l=i(24470),u=i(98732),c=i(37549),h=i(42712);function d(e,t){return e?t?4:3:t?3:2}function f(e,t,i,s,n){if(!t?.lengths.length)return null;const r="upperLeft"===n?.originPosition?-1:1;e.lengths.length&&(e.lengths.length=0),e.coords.length&&(e.coords.length=0);const o=e.coords,a=[],l=i?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY],{lengths:u,coords:c}=t,h=d(i,s);let f=0;for(const e of u){const t=p(l,c,f,e,i,s,r);t&&a.push(t),f+=e*h}if(a.sort(((e,t)=>{let s=r*e[2]-r*t[2];return 0===s&&i&&(s=e[4]-t[4]),s})),a.length){let e=6*a[0][2];o[0]=a[0][0]/e,o[1]=a[0][1]/e,i&&(e=6*a[0][4],o[2]=0!==e?a[0][3]/e:0),(o[0]<l[0]||o[0]>l[1]||o[1]<l[2]||o[1]>l[3]||i&&(o[2]<l[4]||o[2]>l[5]))&&(o.length=0)}if(!o.length){const e=t.lengths[0]?m(c,0,u[0],i,s):null;if(!e)return null;o[0]=e[0],o[1]=e[1],i&&e.length>2&&(o[2]=e[2])}return e}function p(e,t,i,s,n,r,o=1){const a=d(n,r);let l=i,u=i+a,c=0,h=0,f=0,p=0,m=0;for(let i=0,r=s-1;i<r;i++,l+=a,u+=a){const i=t[l],s=t[l+1],r=t[l+2],o=t[u],a=t[u+1],d=t[u+2];let g=i*a-o*s;p+=g,c+=(i+o)*g,h+=(s+a)*g,n&&(g=i*d-o*r,f+=(r+d)*g,m+=g),i<e[0]&&(e[0]=i),i>e[1]&&(e[1]=i),s<e[2]&&(e[2]=s),s>e[3]&&(e[3]=s),n&&(r<e[4]&&(e[4]=r),r>e[5]&&(e[5]=r))}if(p*o>0&&(p*=-1),m*o>0&&(m*=-1),!p)return null;const g=[c,h,.5*p];return n&&(g[3]=f,g[4]=.5*m),g}function m(e,t,i,s,n){const r=d(s,n);let o=t,a=t+r,l=0,u=0,c=0,h=0;for(let t=0,n=i-1;t<n;t++,o+=r,a+=r){const t=e[o],i=e[o+1],n=e[o+2],r=e[a],d=e[a+1],f=e[a+2],p=s?_(t,i,n,r,d,f):g(t,i,r,d);if(p)if(l+=p,s){const e=x(t,i,n,r,d,f);u+=p*e[0],c+=p*e[1],h+=p*e[2]}else{const e=y(t,i,r,d);u+=p*e[0],c+=p*e[1]}}return l>0?s?[u/l,c/l,h/l]:[u/l,c/l]:i>0?s?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function g(e,t,i,s){const n=i-e,r=s-t;return Math.sqrt(n*n+r*r)}function _(e,t,i,s,n,r){const o=s-e,a=n-t,l=r-i;return Math.sqrt(o*o+a*a+l*l)}function y(e,t,i,s){return[e+.5*(i-e),t+.5*(s-t)]}function x(e,t,i,s,n,r){return[e+.5*(s-e),t+.5*(n-t),i+.5*(r-i)]}var I=i(70272),S=i(5428);const b={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new I.u_(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>(null==e.centroid&&(e.centroid=f(new S.Z,e.geometry,t.hasZ,t.hasM)),e.centroid)},w=(0,a.Ue)();class N{constructor(e){this.geometryInfo=e,this._boundsStore=new c.H,this._featuresById=new Map,this._markedIds=new Set,this.events=new r.Z,this.featureAdapter=b}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let e=0;return this._featuresById.forEach((t=>{null!=t.geometry&&t.geometry.coords&&(e+=t.geometry.coords.length)})),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(e){if(null==this.fullBounds)return null;const[t,i,s,n]=this.fullBounds;return{xmin:t,ymin:i,xmax:s,ymax:n,spatialReference:(0,h.S2)(e)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}upsertMany(e){const t=e.map((e=>this._upsert(e)));return this._emitChanged(),t.filter(s.pC)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t){for(const i of e){const e=this._boundsStore.get(i.objectId);e&&t((0,a.JR)(w,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach((t=>e(t)))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,(e=>{t(this._featuresById.get(e))}))}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach(((t,i)=>{this._markedIds.has(i)||(e=!0,this._remove(t))})),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void o.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.Z("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let s;if(this._markedIds.add(t),i?(e.displayId=i.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t)):null!=this.onFeatureAdd&&this.onFeatureAdd(e),!e.geometry?.coords?.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=(0,u.$)(null!=s?s:(0,l.Ue)(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),null!=s&&this._boundsStore.set(t,s),this._featuresById.set(t,e)}_upsert(e){const t=e?.objectId;if(null==t)return o.Z.getLogger("esri.layers.graphics.data.FeatureStore").error(new n.Z("featurestore:invalid-feature","feature id is missing",{feature:e})),null;const i=this._featuresById.get(t);if(!i)return this._add(e),e;this._markedIds.add(t);const{geometry:s,attributes:r}=e;for(const e in r)i.attributes[e]=r[e];return s&&(i.geometry=s,this._boundsStore.set(t,(0,u.$)((0,l.Ue)(),s,this.geometryInfo.hasZ,this.geometryInfo.hasM)??null)),i}_remove(e){null!=this.onFeatureRemove&&this.onFeatureRemove(e);const t=e.objectId;return this._markedIds.delete(t),this._boundsStore.delete(t),this._featuresById.delete(t),e}}},27793:(e,t,i)=>{i.r(t),i.d(t,{default:()=>G}),i(66577);var s=i(3172),n=i(66643),r=i(20188),o=i(20102),a=i(92604),l=i(95330),u=i(17452),c=i(73615),h=i(37455),d=i(8744),f=i(40488),p=i(70272),m=i(5428),g=i(28972),_=i(37427),y=i(3489),x=i(14808),I=i(69165);const S=/^\s*"([\S\s]*)"\s*$/,b=/""/g,w="\n",N=[","," ",";","|","\t"];function*v(e,t,i){let s=0;for(;s<=e.length;){const n=e.indexOf(t,s),r=e.substring(s,n>-1?n:void 0);s+=r.length+t.length,i&&!r.trim()||(yield r)}}function F(e){const t=e.includes("\r\n")?"\r\n":w;return v(e,t,!0)}function B(e,t){return v(e,t,!1)}function E(e,t,i){e=e.trim(),t=t?.trim();const s=[],n=Array.from(new Set([i?.delimiter,...N])).filter((e=>null!=e));for(const i of n){const n=T(e,i).length,r=T(t,i).length??n;n>1&&s.push({weight:Math.min(n,r),delimiter:i})}const r=s.sort((({weight:e},{weight:t})=>t-e)).map((({delimiter:e})=>e));for(const t of r){const s=R(M(e,t).names,i?.longitudeField,i?.latitudeField);if(s.longitudeFieldName&&s.latitudeFieldName)return{delimiter:t,locationInfo:s}}return{delimiter:r[0],locationInfo:null}}function*z(e,t,i,s=(()=>Object.create(null))){const n=F(e);n.next();let r="",o="",a=0,l=s(),u=0;e:for(const e of n){const n=B(e,i);for(const e of n)if(r+=o+e,o="",a+=Z(e),a%2==0){if(a>0){const e=S.exec(r);if(!e){l=s(),u=0,r="",a=0;continue e}l[t[u]]=e[1].replaceAll(b,'"'),u++}else l[t[u]]=r,u++;r="",a=0}else o=i;0===a?(yield l,l=s(),u=0):o=w}}function M(e,t){const i=T(e,t).filter((e=>null!=e)),s=i.map((e=>(0,I.q6)(e)));for(let e=s.length-1;e>=0;e--)s[e]||(s.splice(e,1),i.splice(e,1));return{names:s,aliases:i}}function T(e,t){if(!e?.length)return[];const i=[];let s="",n="",r=0;const o=B(e,t);for(const e of o)if(s+=n+e,n="",r+=Z(e),r%2==0){if(r>0){const e=S.exec(s);e&&i.push(e[1].replaceAll(b,'"'))}else i.push(s);s="",r=0}else n=t;return i}function Z(e){let t=0,i=0;for(i=e.indexOf('"',i);i>=0;)t++,i=e.indexOf('"',i+1);return t}function R(e,t,i){t=(0,I.q6)(t)?.toLowerCase(),i=(0,I.q6)(i)?.toLowerCase();const s=e.map((e=>e.toLowerCase())),n=t?e[s.indexOf(t)]:null,r=i?e[s.indexOf(i)]:null;return{longitudeFieldName:n||e[s.indexOf(O.find((e=>s.includes(e))))],latitudeFieldName:r||e[s.indexOf(X.find((e=>s.includes(e))))]}}function A(e){if(!e.length)return"string";const t=/[^+\-.,0-9]/;return e.map((e=>{if(""!==e){if(!t.test(e)){let t=L(e);if(!isNaN(t))return/[.,]/.test(e)||!Number.isInteger(t)||t>214783647||t<-214783648?"double":"integer";if(e.includes("E")){if(t=Number(e),!Number.isNaN(t))return"double";if(e.includes(",")&&(e=e.replace(",","."),t=Number(e),!Number.isNaN(t)))return"double"}}return(0,r.of)(e)?"date":"string"}})).reduce(((e,t)=>void 0===e?t:void 0===t?e:e===t?t:"string"===e||"string"===t?"string":"double"===e||"double"===t?"double":void 0))}const L=function(){const e=(0,x.lt)(),t=new RegExp("^"+e.regexp+"$"),i=new RegExp("["+e.group+"\\s\\xa0]","g"),s=e.factor;return n=>{const r=t.exec(n);if(e.factor=s,!r)return NaN;let o=r[1];if(!r[1]){if(!r[2])return NaN;o=r[2],e.factor*=-1}return o=o.replace(i,"").replace(e.decimal,"."),+o*e.factor}}(),X=["lat","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],O=["lon","lng","long","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"];var Y=i(25278),C=i(99514),q=i(25031),k=i(82971);const j=(0,Y.bU)("esriGeometryPoint"),P=["csv"],D=[0,0];class U{constructor(e,t){this.x=e,this.y=t}}class G{constructor(){this._queryEngine=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){this._loadOptions=e;const[i]=await Promise.all([this._fetch(t.signal),this._checkProjection(e?.parsingOptions?.spatialReference)]),s=function(e,t){const i=t.parsingOptions||{},s={delimiter:i.delimiter,layerDefinition:null,locationInfo:{latitudeFieldName:i.latitudeField,longitudeFieldName:i.longitudeField}},n=s.layerDefinition={name:(0,u.vt)(t.url,P)||"csv",dateFieldsTimeReference:{timeZoneIANA:q.pt},drawingInfo:j,geometryType:"esriGeometryPoint",objectIdField:null,fields:[],timeInfo:i.timeInfo,extent:{xmin:Number.POSITIVE_INFINITY,ymin:Number.POSITIVE_INFINITY,xmax:Number.NEGATIVE_INFINITY,ymax:Number.NEGATIVE_INFINITY,spatialReference:i.spatialReference||{wkid:4326}}},r=F(e),a=r.next().value?.trim(),l=r.next().value?.trim();if(!a)throw new o.Z("csv-layer:empty-csv","CSV is empty",{csv:e});const{delimiter:c,locationInfo:h}=E(a,l,i);if(!c)throw new o.Z("csv-layer:invalid-delimiter","Unable to detect the delimiter from CSV",{firstLine:a,secondLine:l,parsingOptions:i});if(!h)throw new o.Z("csv-layer:location-fields-not-found","Unable to identify latitude and longitude fields from the CSV file",{firstLine:a,secondLine:l,parsingOptions:i});s.locationInfo=h,s.delimiter=c;const{names:d,aliases:f}=M(a,c),p=function(e,t,i,s,n){const r=[],o=z(e,i,t),a=[];for(const e of o){if(10===a.length)break;a.push(e)}for(let e=0;e<i.length;e++){const t=i[e],o=s[e];if(t===n.longitudeFieldName||t===n.latitudeFieldName)r.push({name:t,type:"esriFieldTypeDouble",alias:o});else{let e;switch(A(a.map((e=>e[t])))){case"integer":e="esriFieldTypeInteger";break;case"double":e="esriFieldTypeDouble";break;case"date":e="esriFieldTypeDate";break;default:e="esriFieldTypeString"}r.push({name:t,type:e,alias:o,length:(0,I.ZR)(e)})}}return r}(e,s.delimiter,d,f,s.locationInfo);if(i.fields?.length){const e=new C.Z(i.fields);for(const t of p){const i=e.get(t.name);i&&Object.assign(t,i)}}if(!p.some((e=>"esriFieldTypeOID"===e.type&&(n.objectIdField=e.name,!0)))){const e={name:"__OBJECTID",alias:"__OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1};n.objectIdField=e.name,p.unshift(e)}n.fields=p;const m=new C.Z(n.fields);if(s.locationInfo&&(s.locationInfo.latitudeFieldName=m.get(s.locationInfo.latitudeFieldName).name,s.locationInfo.longitudeFieldName=m.get(s.locationInfo.longitudeFieldName).name),n.timeInfo){const e=n.timeInfo;if(e.startTimeField){const t=m.get(e.startTimeField);t?(e.startTimeField=t.name,t.type="esriFieldTypeDate"):e.startTimeField=null}if(e.endTimeField){const t=m.get(e.endTimeField);t?(e.endTimeField=t.name,t.type="esriFieldTypeDate"):e.endTimeField=null}if(e.trackIdField){const t=m.get(e.trackIdField);e.trackIdField=t?t.name:null}e.startTimeField||e.endTimeField||(n.timeInfo=null)}return s}(i,e);this._locationInfo=s.locationInfo,this._delimiter=s.delimiter,this._queryEngine=this._createQueryEngine(s);const n=await this._createFeatures(i);this._queryEngine.featureStore.addMany(n);const{fullExtent:r,timeExtent:a}=await this._queryEngine.fetchRecomputedExtents();if(s.layerDefinition.extent=r,a){const{start:e,end:t}=a;s.layerDefinition.timeInfo.timeExtent=[e,t]}return s}async applyEdits(){throw new o.Z("csv-layer:editing-not-supported","applyEdits() is not supported on CSVLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForSnapping(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,n.vr)(this._snapshotFeatures),this._snapshotTask.promise.then((e=>{this._queryEngine.featureStore.clear(),e&&this._queryEngine.featureStore.addMany(e)}),(e=>{this._queryEngine.featureStore.clear(),(0,l.D_)(e)||a.Z.getLogger("esri.layers.CSVLayer").error(new o.Z("csv-layer:refresh","An error occurred during refresh",{error:e}))})),await this._waitSnapshotComplete();const{fullExtent:t,timeExtent:i}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:i}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:i}=this._loadOptions;if(!t)throw new o.Z("csv-layer:invalid-source","url not defined");const n=(0,u.mN)(t);return(await(0,s.Z)(n.path,{query:{...n.query,...i},responseType:"text",signal:e})).data}_createQueryEngine(e){const{objectIdField:t,fields:i,extent:s,timeInfo:n}=e.layerDefinition,r=new g.Z({geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1});return new y.q({fieldsIndex:C.Z.fromLayerJSON({fields:i,dateFieldsTimeReference:{timeZoneIANA:q.pt}}),geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1,timeInfo:n,objectIdField:t,spatialReference:s.spatialReference||{wkid:4326},cacheSpatialQueries:!0,featureStore:r})}async _createFeatures(e){const{latitudeFieldName:t,longitudeFieldName:i}=this._locationInfo,{objectIdField:s,fieldsIndex:n,spatialReference:o}=this._queryEngine;let a=[];const l=[],u=n.fields.filter((e=>e.name!==s)).map((e=>e.name));let g=0;const _={};for(const e of n.fields)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,I.os)(e);void 0!==t&&(_[e.name]=t)}const y=z(e,u,this._delimiter,(0,Y.Dm)(_,s));for(const e of y){const o=this._parseCoordinateValue(e[t]),u=this._parseCoordinateValue(e[i]);if(null!=u&&null!=o&&!isNaN(o)&&!isNaN(u)){e[t]=o,e[i]=u;for(const s in e)if(s!==t&&s!==i)if(n.isDateField(s))e[s]=(0,r.sG)(e[s]);else if(n.isNumericField(s)){const t=L(e[s]);isNaN(t)?e[s]=null:e[s]=t}e[s]=g,g++,a.push(new U(u,o)),l.push(e)}}if(!(0,d.fS)({wkid:4326},o))if((0,d.sS)(o))for(const e of a)[e.x,e.y]=(0,f.hG)(e.x,e.y,D);else a=(0,c.projectMany)(h.N,a,k.Z.WGS84,o,null,null);const x=[];for(let e=0;e<a.length;e++){const{x:t,y:i}=a[e],n=l[e];n[s]=e+1,x.push(new p.u_(new m.Z([],[t,i]),n,null,n[s]))}return x}_parseCoordinateValue(e){if(null==e||""===e)return null;let t=L(e);return(isNaN(t)||Math.abs(t)>181)&&(t=parseFloat(e)),t}async _checkProjection(e){try{await(0,_._W)(d.Zn,e)}catch{throw new o.Z("csv-layer:projection-not-supported","Projection not supported")}}}},25278:(e,t,i)=>{i.d(t,{Dm:()=>c,Hq:()=>h,MS:()=>d,bU:()=>a});var s=i(80442),n=i(22974),r=i(61159),o=i(58333);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.I4:"esriGeometryPolyline"===e?o.ET:o.lF}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function c(e,t){if((0,s.Z)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let i=`this.${t} = null;`;for(const t in e)i+=`this${l.test(t)?`.${t}`:`["${t}"]`} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new s}catch(i){return()=>({[t]:null,...e})}}function h(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.d9)(e)}}]}function d(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},11282:(e,t,i)=>{i.d(t,{cv:()=>a,en:()=>o,lA:()=>r}),i(68773),i(40330);var s=i(22974),n=i(17452);function r(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,n.mN)(e):(0,s.d9)(e)}function a(e,t,i){const s={};for(const n in e){if("declaredClass"===n)continue;const r=e[n];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){s[n]=[];for(let e=0;e<r.length;e++)s[n][e]=a(r[e])}else if("object"==typeof r)if(r.toJSON){const e=r.toJSON(i?.[n]);s[n]=t?e:JSON.stringify(e)}else s[n]=t?r:JSON.stringify(r);else s[n]=r}return s}i(71058)},58333:(e,t,i)=>{i.d(t,{ET:()=>r,I4:()=>n,eG:()=>l,lF:()=>o,lj:()=>c,qP:()=>a,wW:()=>u});const s=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4695],{42033:(e,n,r)=>{async function t(e,n){const{WhereClause:t}=await Promise.all([r.e(8968),r.e(8592)]).then(r.bind(r,8968));return t.create(e,n)}function l(e,n){return null!=e?null!=n?`(${e}) AND (${n})`:e:n}r.d(n,{E:()=>t,_:()=>l})},14695:(e,n,r)=>{r.d(n,{createLabelFunction:()=>d});var t=r(20102),l=r(92604),s=r(42033),a=r(90344),u=r(18848),o=r(58311),i=r(69165),c=r(8813),p=r(59266);const f=l.Z.getLogger("esri.layers.support.labelFormatUtils"),x={type:"simple",evaluate:()=>null},w={getAttribute:(e,n)=>e.field(n)};async function d(e,n,r){if(!e||!e.symbol||!n)return x;const l=e.where,d=(0,c.hV)(e);let g;if("arcade"===d.type){const e=await(0,p.WW)(d.expression,r,n);if(null==e)return x;g={type:"arcade",evaluate(n,r){try{const t="attributes"in n?e.repurposeFeature(n):n;t.contextTimeZone=r??null;const l=e.evaluate({$view:{timeZone:r},$feature:t},e.services);if(null!=l)return l.toString()}catch(e){f.error(new t.Z("arcade-expression-error","Encountered an error when evaluating label expression for feature",{error:e,feature:n,expression:d}))}return null},needsHydrationToEvaluate:()=>null==(0,c.el)(d.expression)}}else g={type:"simple",evaluate:e=>d.expression.replaceAll(/{[^}]*}/g,(r=>{const t=r.slice(1,-1),l=n.get(t);if(!l)return r;let s=null;return"attributes"in e?e&&e.attributes&&(s=e.attributes[l.name]):s=e.field(l.name),null==s?"":function(e,n){if(null==e)return"";const r=n.domain;if(r)if("codedValue"===r.type||"coded-value"===r.type){const n=e;for(const e of r.codedValues)if(e.code===n)return e.name}else if("range"===r.type){const{max:t,min:l}=(0,o.D3)(n),s=+e;if(null!=l&&null!=t&&l<=s&&s<=t)return r.name}let t=e;return(0,i.y2)(n)?t=(0,a.p6)(t,(0,a.Ze)("short-date")):(0,i.H7)(n)&&(t=(0,u.uf)(+t)),t||""}(s,l)}))};if(l){let e;try{e=await(0,s.E)(l,n)}catch(e){return f.error(new t.Z("bad-where-clause","Encountered an error when evaluating where clause, ignoring",{where:l,error:e})),x}const r=g.evaluate;g.evaluate=(n,s)=>{const a="attributes"in n?void 0:w;try{if(e.testFeature(n,a))return r(n,s)}catch(e){f.error(new t.Z("bad-where-clause","Encountered an error when evaluating where clause for feature",{where:l,feature:n,error:e}))}return null}}return g}},8813:(e,n,r)=>{r.d(n,{UO:()=>g,YI:()=>d,dI:()=>h,el:()=>E,hV:()=>w,z7:()=>x});var t=r(19153);const l="__begin__",s="__end__",a=new RegExp(l,"ig"),u=new RegExp(s,"ig"),o=new RegExp("^"+l,"i"),i=new RegExp(s+"$","i"),c='"',p=c+" + ",f=" + "+c;function x(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function w(e){const n={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(n.expression=e.labelExpressionInfo.value,n.type="conventional"):e.labelExpressionInfo.expression&&(n.expression=e.labelExpressionInfo.expression,n.type="arcade"):null!=e.labelExpression&&(n.expression=function(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}(e.labelExpression),n.type="conventional"),n}function d(e){const n=w(e);if(!n)return null;switch(n.type){case"conventional":return h(n.expression);case"arcade":return n.expression}return null}function g(e){const n=w(e);if(!n)return null;switch(n.type){case"conventional":return function(e){const n=e?.match(b);return n?.[1].trim()||null}(n.expression);case"arcade":return E(n.expression)}return null}function h(e){let n;return e?(n=(0,t.gx)(e,(e=>l+'$feature["'+e+'"]'+s)),n=o.test(n)?n.replace(o,""):c+n,n=i.test(n)?n.replace(i,""):n+c,n=n.replaceAll(a,p).replaceAll(u,f)):n='""',n}const b=/^\s*\{([^}]+)\}\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,v=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,y=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function E(e){if(!e)return null;let n=m.exec(e)||v.exec(e);return n?n[1]||n[3]:(n=y.exec(e),n?n[2]:null)}}}]);
|