@arcgis/core 4.30.0 → 4.30.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{c39237c00c1d588dc107.js → 25c41ceb1951d80f4798.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{f13fb6b712e364bbf48c.js → 61e1f1564a8440f186e7.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{70ebc0e38eb1cfb79320.js → 85701ca4ebc2de529053.js} +1 -1
  6. package/assets/esri/core/workers/chunks/88e8547079b299572bfe.js +1 -0
  7. package/assets/esri/core/workers/chunks/{403f73017bf763f7471c.js → 91f8f99c6f64e85458f3.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{37dfb3ff86c4ef1b26c1.js → a9efe7abda35995d0dd8.js} +1 -1
  9. package/assets/esri/core/workers/chunks/ad6468d67bf50aff85ea.js +1 -0
  10. package/assets/esri/core/workers/chunks/{4cf5414d67aa888f2322.js → d502a5fe47e77d63ae5e.js} +1 -1
  11. package/assets/esri/core/workers/chunks/d6c954272cc96d6b7987.js +1 -0
  12. package/assets/esri/core/workers/chunks/{aa198e898b46c6e89d0b.js → e2c927ef4d88a0a8104b.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{880e8329e264b6156fbc.js → e3a049ebcb0b89f16228.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{f927c28f2fa78ec68235.js → ed9c88afccc5041d899a.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{31f7a3c8e1a5b4ca4a73.js → fb97d6cc841c67c09d5c.js} +1 -1
  16. package/assets/esri/themes/base/widgets/_Grid.scss +3 -1
  17. package/assets/esri/themes/dark/main.css +1 -1
  18. package/assets/esri/themes/light/main.css +1 -1
  19. package/assets/esri/themes/light/view.css +1 -1
  20. package/chunks/persistableUrlUtils.js +1 -1
  21. package/identity/IdentityManagerBase.js +1 -1
  22. package/interfaces.d.ts +100 -50
  23. package/kernel.js +1 -1
  24. package/layers/CatalogLayer.js +1 -1
  25. package/layers/mixins/EditBusLayer.js +1 -1
  26. package/layers/support/MediaElementBase.js +1 -1
  27. package/package.json +1 -1
  28. package/portal/support/layersLoader.js +1 -1
  29. package/portal/support/loadUtils.js +1 -1
  30. package/portal/support/urlUtils.js +1 -1
  31. package/rest/imageService/fetchRasterInfo.js +1 -1
  32. package/support/persistableUrlUtils.js +1 -1
  33. package/support/revision.js +1 -1
  34. package/views/2d/layers/features/sources/strategies/chunks/OverrideChunk.js +1 -1
  35. package/views/2d/layers/features/sources/strategies/chunks/SourceChunkStore.js +1 -1
  36. package/views/2d/layers/imagery/BaseImageryTileSubView2D.js +1 -1
  37. package/widgets/FeatureForm.js +1 -1
  38. package/widgets/FeatureTable/Grid/Column.js +1 -1
  39. package/widgets/FeatureTable.js +1 -1
  40. package/assets/esri/core/workers/chunks/20d447aa01a66a464363.js +0 -1
  41. package/assets/esri/core/workers/chunks/2b39f50b92fe27c30497.js +0 -1
  42. package/assets/esri/core/workers/chunks/8865ca9cb8d867d48d2d.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[201],{83116:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Z});var s=r(90237),i=r(78888),a=r(5503),n=r(62885),o=r(25482),l=r(4718),c=r(92474),u=r(81583),p=r(53966),d=r(97768),y=r(74887),h=r(84952),m=r(10107),g=(r(44208),r(40608)),f=r(43937),b=r(16930),v=r(20655),M=r(80812),S=r(43281),w=r(69622),_=(r(87811),r(73444));const T=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 I=class extends w.A{constructor(e){super(e),this.id=null,this.language=null,this.places=null,this.serviceUrl="https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/webmaps",this.worldview=null}getLanguageParamValue(){if(this.language)return this.language;const e=(0,_.JK)().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,_.Z0)(e);return"pt"===t?"pt-BR":t&&T.has(t)?t:"global"}};(0,s._)([(0,m.MZ)()],I.prototype,"id",void 0),(0,s._)([(0,m.MZ)()],I.prototype,"language",void 0),(0,s._)([(0,m.MZ)()],I.prototype,"places",void 0),(0,s._)([(0,m.MZ)()],I.prototype,"serviceUrl",void 0),(0,s._)([(0,m.MZ)()],I.prototype,"worldview",void 0),I=(0,s._)([(0,g.$)("esri.support.BasemapStyle")],I);const L=I;var O,A=r(751);let x=0,U=O=class extends((0,o.Te)(c.A)){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-"+x++,this.baseLayers=new a.A,this.referenceLayers=new a.A;const t=e=>{e.parent&&e.parent!==this&&"remove"in e.parent&&e.parent.remove(e),e.parent=this,"elevation"===e.type&&p.A.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.A.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.pR)(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.V)(e,this._get("baseLayers")))}_writeBaseLayers(e,t,r){const s=[];e?(r={...r,layerContainerType:"basemap"},this.baseLayers.forEach((e=>{const t=(0,A.CJ)(e,r.webmap?r.webmap.getLayerJSONFromResourceInfo(e):null,r);null!=t&&s.push(t)})),this.referenceLayers.forEach((e=>{const t=(0,A.CJ)(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.V)(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,u.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.Nb)(e)?e.clone():e)),referenceLayers:this.referenceLayers.map((e=>(0,l.Nb)(e)?e.clone():e))};return this.loaded&&(e.loadStatus="loaded"),new O({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.o8)(e);return t.url&&(0,h.BQ)(t.url)&&(t.url=`https:${t.url}`),t.templateUrl&&(0,h.BQ)(t.templateUrl)&&(t.templateUrl=`https:${t.templateUrl}`),t}))),e}async _loadFromSource(e){const{resourceInfo:t,portalItem:r,style:s}=this;(0,y.Te)(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.q)(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=G[i?.origin||""]??"web-map",{populateOperationalLayers:o}=await Promise.all([r.e(7251),r.e(5356),r.e(7364)]).then(r.bind(r,75356)),l=[];if((0,y.Te)(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,c=o(this.baseLayers,e.baseMapLayers.filter((e=>!s(e))),r);l.push(c);const u=o(this.referenceLayers,e.baseMapLayers.filter(s),r);l.push(u)}await Promise.allSettled(l)}async _loadFromItem(e,t){const r=await e.load(t),s=await r.fetchData("json",t),i=(0,h.An)(e.itemUrl??"");return this._set("resourceInfo",{data:s.baseMap??{},context:{origin:k[e.type||""]??"web-map",portal:e.portal||v.A.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.A.getDefault(),url:i}),this._loadLayersFromJSON(this.resourceInfo.data,i,t)}async _loadFromStylesService(e,t){const r=`${e.serviceUrl}/${e.id}`,s=(await(0,i.A)(r,{query:{language:e.getLanguageParamValue(),places:e.places,worldview:e.worldview},signal:t?.signal})).data,a=(0,h.An)(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.H[e];return t?t.itemId?new O({portalItem:{id:t.itemId,portal:{url:"https://www.arcgis.com"}}}):O.fromJSON(t,{origin:t.is3d?"web-scene":"web-map"}):null}};(0,s._)([(0,m.MZ)({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.A}},writer(e,t,r,s){this._writeBaseLayers(e,t,s)}}}}}})],U.prototype,"baseLayers",null),(0,s._)([(0,m.MZ)({type:String,json:{origins:{"web-scene":{write:!0}}}})],U.prototype,"id",void 0),(0,s._)([(0,m.MZ)({type:M.default})],U.prototype,"portalItem",void 0),(0,s._)([(0,m.MZ)()],U.prototype,"referenceLayers",null),(0,s._)([(0,m.MZ)({readOnly:!0})],U.prototype,"resourceInfo",void 0),(0,s._)([(0,m.MZ)({type:b.A})],U.prototype,"spatialReference",void 0),(0,s._)([(0,m.MZ)({type:L})],U.prototype,"style",void 0),(0,s._)([(0,m.MZ)()],U.prototype,"thumbnailUrl",void 0),(0,s._)([(0,m.MZ)({type:String,json:{origins:{"web-scene":{write:{isRequired:!0}}}}})],U.prototype,"title",void 0),(0,s._)([(0,f.K)("title")],U.prototype,"writeTitle",null),U=O=(0,s._)([(0,g.$)("esri.Basemap")],U);const k={"Web Scene":"web-scene","Web Map":"web-map","Link Chart":"link-chart"},G={"web-scene":"web-scene","web-map":"web-map","link-chart":"link-chart"},Z=U},97159:(e,t,r)=>{r.d(t,{M:()=>b,a:()=>g,b:()=>M,e:()=>h,f:()=>n,i:()=>d,p:()=>y,r:()=>l,t:()=>o,w:()=>c});var s=r(70333),i=r(84952),a=r(39131);function n(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,i.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,i.V1)(e,t.portalItem.itemUrl);null!=r&&p.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=m(e,t?.portal))&&u.test(e)?g(e):e}function o(e,t,r=b.YES){if(null==(e=e&&u.test(e)?f(e):e))return e;!(0,i.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let s=(0,i.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const a=m(r,t.portal),n=m(s,t.portal);s=(0,i.V1)(n,a,a),null!=s&&s!==n&&s!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=h(s,t?.portal),(0,i.oP)(s)&&(s=(0,i.S8)(s)),t?.resources&&t?.portalItem&&!(0,i.oP)(s)&&!(0,i.DB)(s)&&r===b.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,t,r){return n(e,r)}function c(e,t,r,s){const i=o(e,s);void 0!==i&&(t[r]=i)}const u=/\/items\/([^/]+)\/resources\/(.*)/,p=/^\.\/resources\//;function d(e){const t=e?.match(u)??null;return t?.[1]??null}function y(e){const t=e?.match(u)??null;if(null==t)return null;const r=t[2],s=r.lastIndexOf("/");if(-1===s){const{path:e,extension:t}=(0,i.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:a,extension:n}=(0,i.xw)(r.slice(s+1));return{prefix:r.slice(0,s),filename:a,extension:n}}function h(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,i.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function m(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,s=(0,i.Xq)();return(0,i.FX)(s,`${s.scheme}://${r}`)?(0,i.T1)(e,t.portalHostname,r):(0,i.T1)(e,r,t.portalHostname)}function g(e){if(!e)return e||null;let t=e;return t&&s.id&&!s.id.findCredential(t)&&(t=(0,a.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function f(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&s.id&&!s.id.findCredential(t)&&(t=(0,a.qG)(t)),t}var b,v;(v=b||(b={}))[v.YES=0]="YES",v[v.NO=1]="NO";const M=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return b},ensureMainOnlineDomain:h,fromCDNUrl:f,fromJSON:n,itemIdFromResourceUrl:d,prefixAndFilenameFromResourceUrl:y,read:l,toCDNUrl:g,toJSON:o,write:c},Symbol.toStringTag,{value:"Module"}))},40876:(e,t,r)=>{r.d(t,{TS:()=>a,V6:()=>i,c4:()=>n,qh:()=>c,z$:()=>l});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 c(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}},92474:(e,t,r)=>{r.d(t,{A:()=>m});var s=r(90237),i=r(49186),a=r(97768),n=r(61893),o=r(74887),l=r(67076),c=r(10107),u=r(40608);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.NY)(r,t);this.destroyed&&t(new i.A("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.DC)(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.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,s._)([(0,c.MZ)({readOnly:!0})],t.prototype,"loaded",null),(0,s._)([(0,c.MZ)({readOnly:!0})],t.prototype,"loadError",void 0),(0,s._)([(0,c.MZ)({clonable:!1})],t.prototype,"loadStatus",void 0),(0,s._)([(0,c.MZ)({type:[l.A],readOnly:!0})],t.prototype,"loadWarnings",null),t=(0,s._)([(0,u.$)("esri.core.Loadable")],t),t};let y=class extends(d(n.Z)){};var h;y=(0,s._)([(0,u.$)("esri.core.Loadable")],y),(h=y||(y={})).LoadableMixin=d,h.isLoadable=function(e){return!(!e||!e.load)};const m=y},3483:(e,t,r)=>{function s(e,t){if(!t)return e;for(const r of t)null!=r&&e.add(r);return e}function i(e,t){return null!=t&&e.add(t),e}function a(e,t){const r=new Set;return s(r,e),s(r,t),r}function n(e,t){const r=new Set;for(const s of t)e.has(s)&&r.add(s);return r}function o(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 l(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 c(e,t){const r=new Set(e);for(const e of t)r.delete(e);return r}r.d(t,{E$:()=>n,FB:()=>s,KC:()=>a,Yy:()=>o,aI:()=>l,iv:()=>c,kb:()=>i})},62885:(e,t,r)=>{r.d(t,{H:()=>a,V:()=>i});var s=r(5503);function i(e,t,r=s.A){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}},91829:(e,t,r)=>{function s(){return[0,0,0,0]}function i(e,t,r,s){return[e,t,r,s]}function a(){return i(1,1,1,1)}function n(){return i(1,0,0,0)}function o(){return i(0,1,0,0)}function l(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}r.d(t,{fA:()=>i,vt:()=>s});const u=a(),p=n(),d=o(),y=l(),h=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_W:h,UNIT_X:p,UNIT_Y:d,UNIT_Z:y,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,createView:function(e,t){return new Float64Array(e,t,4)},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:a,unitW:c,unitX:n,unitY:o,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},81583:(e,t,r)=>{r.d(t,{L:()=>o,g:()=>n});var s=r(60999),i=r(5503),a=r(92474);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.A.isCollection(t)?t.forEach((e=>n(e))):a.A.isLoadable(t)&&r.push(t))};t(n);let o=null;if(await(0,s.Tj)(r,(async e=>{const t=await(0,s.Ke)(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}},90629:(e,t,r)=>{r.d(t,{Lz:()=>n,PN:()=>o,cr:()=>l,tc:()=>c});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 c(e=0,t=0){return{x:e,y:t}}},88930:(e,t,r)=>{r.d(t,{S1:()=>o,lL:()=>c,mi:()=>l,t:()=>u,vf:()=>n});var s=r(97770),i=r(56400),a=r(96285);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.qU){const o=new a.oh((0,s.wj)(n)),l=a.c9.fromJSDate(e,{zone:o}),c="decades"===r||"centuries"===r?"year":p(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[c]:t}).toJSDate()}function l(e,t,r="milliseconds"){const s=e.getTime(),i=u(t,r,"milliseconds");return new Date(s+i)}function c(e,t,r=i.qU){const n=new a.oh((0,s.wj)(r)),o=a.c9.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=p(t);return o.startOf(l).toJSDate()}function u(e,t,r){return 0===e?0:e*n[t]/n[r]}function p(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"}}},59456:(e,t,r)=>{r.d(t,{yR:()=>u});var s=r(56507),i=r(5443),a=r(91075),n=r(48526),o=r(86738),l=r(39829),c=r(82799);r(16930),r(50498),r(65864);const u={base:a.A,key:"type",typeMap:{extent:i.A,multipoint:n.A,point:o.A,polyline:c.A,polygon:l.A}};(0,s.aq)(u)},65864:(e,t,r)=>{r.d(t,{$B:()=>m,Bi:()=>y,Rg:()=>d,U9:()=>u,ZC:()=>c,fT:()=>p,rS:()=>h,xD:()=>f});var s=r(5443),i=r(91075),a=r(48526),n=r(86738),o=r(39829),l=r(82799);function c(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function u(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 y(e){return void 0!==e.rings}function h(e){return null==e?null:e instanceof i.A?e:p(e)?n.A.fromJSON(e):d(e)?l.A.fromJSON(e):y(e)?o.A.fromJSON(e):u(e)?a.A.fromJSON(e):c(e)?s.A.fromJSON(e):null}function m(e){return e?p(e)?"esriGeometryPoint":d(e)?"esriGeometryPolyline":y(e)?"esriGeometryPolygon":c(e)?"esriGeometryEnvelope":u(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:n.A,esriGeometryPolyline:l.A,esriGeometryPolygon:o.A,esriGeometryEnvelope:s.A,esriGeometryMultipoint:a.A};function f(e){return e&&g[e]||null}},62577:(e,t,r)=>{function s(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]:[1,1,1,1],translate:null!=e.extent?[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]:[0,0,0,0]}:null}function i(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;const{originPosition:t,scale:r,translate:s}=e,i=r[0]??1,a=r[1]??1;return{originPosition:"lowerLeft",scale:[i,"lowerLeft"===t?a:-a,r[2]??1,r[3]??1],translate:[s[0]??0,s[1]??0,s[2]??0,s[3]??0]}}function a({scale:e,translate:t},r){return r*e[0]+t[0]}function n({scale:e,translate:t},r){return r*e[1]+t[1]}function o({scale:e,translate:t},r){return(r??0)*e[2]+t[2]}function l({scale:e,translate:t},r){return r?r*e[3]+t[3]:0}function c(e,t){return e&&t?y:e&&!t?p:!e&&t?d:u}r.d(t,{$X:()=>b,Gy:()=>m,P5:()=>v,SW:()=>g,Tr:()=>f,VV:()=>s}),r(65864);const u=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),o=n(e,s[1]);r[0]=[i,o];const{scale:l,originPosition:c}=e,u=l[0],p="lowerLeft"===c?l[1]:-l[1];for(let e=1;e<t.length;e++){const[s,a]=t[e];i+=u*s,o+=p*a,r[e]=[i,o]}return r},p=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),l=n(e,s[1]);r[0]=[i,l,o(e,s[2])];const{scale:c,originPosition:u}=e,p=c[0],d="lowerLeft"===u?c[1]:-c[1];for(let s=1;s<t.length;s++){const[a,n,c]=t[s];i+=p*a,l+=d*n,r[s]=[i,l,o(e,c)]}return r},d=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),o=n(e,s[1]);r[0]=[i,o,l(e,s[2])];const{scale:c,originPosition:u}=e,p=c[0],d="lowerLeft"===u?c[1]:-c[1];for(let s=1;s<t.length;s++){const[a,n,c]=t[s];i+=p*a,o+=d*n,r[s]=[i,o,l(e,c)]}return r},y=(e,t)=>{const r=new Array(t.length);if(!t.length)return r;const s=t[0];let i=a(e,s[0]),c=n(e,s[1]);r[0]=[i,c,o(e,s[2]),l(e,s[3])];const{scale:u,originPosition:p}=e,d=u[0],y="lowerLeft"===p?u[1]:-u[1];for(let s=1;s<t.length;s++){const[a,n,u,p]=t[s];i+=d*a,c+=y*n,r[s]=[i,c,o(e,u),l(e,p)]}return r};function h(e,t,r){const s=new Array(r.length);for(let i=0;i<r.length;i++)s[i]=t(e,r[i]);return s}function m(e,t,r){const s=i(e);return t.x=function({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}(s,r.x),t.y=function({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}(s,r.y),null!=r.z&&(t.z=function({scale:e,translate:t},r){return Math.round(((r??0)-t[2])/e[2])}(s,r.z)),null!=r.m&&(t.m=function({scale:e,translate:t},r){return r?Math.round((r-t[3])/e[3]):0}(s,r.m)),t}function g(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.points=c(s,a)(n,r.points),t.hasZ=s,t.hasM=a}return t}function f(e,t,r,s=null!=r?.z,c=null!=r?.m){if(null==r)return t;const u=i(e);return t.x=a(u,r.x),t.y=n(u,r.y),s&&(t.z=o(u,r.z)),c&&(t.m=l(u,r.m)),t}function b(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.rings=h(n,c(s,a),r.rings),t.hasZ=s,t.hasM=a}return t}function v(e,t,r,s=r?.hasZ??!1,a=r?.hasM??!1){if(null!=r){const n=i(e);t.paths=h(n,c(s,a),r.paths),t.hasZ=s,t.hasM=a}return t}},50498:(e,t,r)=>{r.d(t,{Y:()=>a,g:()=>i});var s=r(66552);const i=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),a=(0,s.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})},59247:(e,t,r)=>{r.d(t,{bv:()=>l,Fk:()=>c,yG:()=>u,$b:()=>p,Nd:()=>d,jm:()=>y,sK:()=>g});var s=r(40876),i=r(90629);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,c,u,p,d,y,h,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]=c,g[10]=u,g[11]=p,g[12]=d,g[13]=y,g[14]=h,g[15]=m,g}},Symbol.toStringTag,{value:"Module"}));var o=r(58083);class l{constructor(e,t,r){this.strength=e,this.radius=t,this.threshold=r,this.type="bloom"}interpolate(e,t,r){this.strength=h(e.strength,t.strength,r),this.radius=h(e.radius,t.radius,r),this.threshold=h(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 c{constructor(e){this.radius=e,this.type="blur"}interpolate(e,t,r){this.radius=Math.round(h(e.radius,t.radius,r))}clone(){return new c(this.radius)}toJSON(){return{type:"blur",radius:m(this.radius)}}}class u{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=h(e.amount,t.amount,r),this._updateMatrix()}clone(){return new u(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.hZ)(e,t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1);return(0,o.mg)(r,r)})(e,this.amount);break;case"contrast":this._colorMatrix=((e,t)=>{const r=(0,o.hZ)(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.mg)(r,r)})(e,this.amount);break;case"grayscale":this._colorMatrix=((e,t)=>{const r=1-this.amount,s=(0,o.hZ)(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.mg)(s,s)})(e);break;case"invert":this._colorMatrix=((e,t)=>{const r=1-2*t,s=(0,o.hZ)(e,r,0,0,t,0,r,0,t,0,0,r,t,0,0,0,1);return(0,o.mg)(s,s)})(e,this.amount);break;case"saturate":this._colorMatrix=((e,t)=>{const r=(0,o.hZ)(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.mg)(r,r)})(e,this.amount);break;case"sepia":this._colorMatrix=((e,t)=>{const r=1-this.amount,s=(0,o.hZ)(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.mg)(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=h(e.offsetX,t.offsetX,r),this.offsetY=h(e.offsetY,t.offsetY,r),this.blurRadius=h(e.blurRadius,t.blurRadius,r),this.color[0]=Math.round(h(e.color[0],t.color[0],r)),this.color[1]=Math.round(h(e.color[1],t.color[1],r)),this.color[2]=Math.round(h(e.color[2],t.color[2],r)),this.color[3]=h(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=h(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.hZ)(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.mg)(i,i)})(e,this.angle)}}class y{constructor(e){this.amount=e,this.type="opacity",this.amount=Math.min(this.amount,1)}interpolate(e,t,r){this.amount=h(e.amount,t.amount,r)}clone(){return new y(this.amount)}toJSON(){return{type:"opacity",amount:this.amount}}}function h(e,t,r){return e+(t-e)*r}function m(e){return Math.round(1e3*(0,i.PN)(e))/1e3}function g(e){switch(e.type){case"grayscale":case"sepia":case"invert":return new u(e.type,0);case"saturate":case"brightness":case"contrast":return new u(e.type,1);case"opacity":return new y(1);case"hue-rotate":return new d(0);case"blur":return new c(0);case"drop-shadow":return new p(0,0,0,[...(0,s.TS)("transparent")]);case"bloom":return new l(0,0,1)}}},27865:(e,t,r)=>{r.d(t,{O9:()=>a,dw:()=>n,mj:()=>i});var s=r(59247);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.sK)(r[e]))}function n(e){const t=e[0];return!!t&&"type"in t}},56721:(e,t,r)=>{r.d(t,{Mh:()=>y,A5:()=>M,wb:()=>v}),r(47566),r(44208),r(49186),r(34727);var s=r(97768),i=(r(97770),r(56400),r(58769)),a=r(96285);r(73444),new Map([["hours",3600],["minutes",60],["seconds",1],["deciseconds",.1],["centiseconds",.01],["milliseconds",.001]]);const n="yyyy-MM-dd";var o,l;(l=o||(o={})).HM="HH:mm",l.HMS="HH:mm:ss",l.HMS_MS="HH:mm:ss.SSS";const c=[o.HMS_MS,o.HMS,o.HM,"TT"];function u(e){if(!e||!(0,i.K)(e))return null;const t=a.c9.fromFormat(e,n);return t.isValid?t:null}function p(e){return e&&(0,i.K)(e)?(0,s.Pb)(c,(t=>{const r=a.c9.fromFormat(e,t);return r.isValid?r:null}))??null:null}function d(e){if(!e||!(0,i.K)(e))return null;const t=a.c9.fromISO(e);return t.isValid?t:null}var y,h;new Set(["date-only","time-only","timestamp-offset"]),(h=y||(y={})).VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",h.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value";const m=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]);function g(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function f(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function b(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function v(e,t,r){const s=r??e?.domain;if(!s)return null;switch(s.type){case"range":{const{min:s,max:i}=M(e,r);if(null!=s&&+t<s||null!=i&&+t>i)return y.VALUE_OUT_OF_RANGE;break}case"coded-value":case"codedValue":if(null==s.codedValues||s.codedValues.every((e=>null==e||e.code!==t)))return y.INVALID_CODED_VALUE}return null}function M(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&&m.has(e.type)}(e);return g(e)||b(e)||f(e)?{...S(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 S(e,t,r){return g(e)?{min:u(r)?.toMillis(),max:u(t)?.toMillis(),rawMin:r,rawMax:t}:b(e)?{min:p(r)?.toMillis(),max:p(t)?.toMillis(),rawMin:r,rawMax:t}:f(e)?{min:d(r)?.toMillis(),max:d(t)?.toMillis(),rawMin:r,rawMax:t}:{max:null,min:null}}},30524:(e,t,r)=>{r.d(t,{Ah:()=>J,Bz:()=>U,CJ:()=>te,DB:()=>g,Dx:()=>M,JL:()=>ce,OG:()=>K,OH:()=>H,R$:()=>x,WA:()=>E,WX:()=>ee,Xz:()=>Q,_b:()=>G,_w:()=>f,eX:()=>_,hL:()=>v,lD:()=>k,mB:()=>S,nw:()=>ue,rS:()=>c,rq:()=>b,sv:()=>h,te:()=>W,uo:()=>le,vE:()=>j,yM:()=>$,yp:()=>d,zD:()=>z}),r(49186);var s=r(93637),i=r(3483),a=r(56721),n=r(71386);const o=/^([0-9_])/,l=/[^a-z0-9_\u0080-\uffff]+/gi;function c(e){return null==e?null:e.trim().replaceAll(l,"_").replace(o,"F$1")||null}const u=["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(y(u,r,t),"visualVariables"in r&&r.visualVariables)for(const e of r.visualVariables)y(p,e,t)}function y(e,t,r){if(e)for(const i of e){const e=(0,s.wc)(i,t),a=e&&"function"!=typeof e&&r.get(e);a&&(0,s.sM)(i,a.name,t)}}function h(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 M(e,t,r){if(!r)return;const{arcadeUtils:s}=await(0,n.lw)(),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?w(t,"name-or-title")||w(t,"unique-identifier")||w(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 w(e,t){for(const r of e)if(r?.valueType&&r.valueType===t)return r.name;return null}function _(e){return e?g(e.fieldsIndex,O(e)):[]}const T=new Set(["oid","global-id","guid"]),I=new Set(["oid","global-id"]),L=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/perimeter/i,/objectid/i,/_i$/i];function O(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 A(e){return O(e).map((e=>e.toLowerCase()))}function x(e,t){return e.editable&&!T.has(e.type)&&!A(t).includes(e.name?.toLowerCase()??"")}function U(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;A(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)||I.has(e.type)||L.some((e=>e.test(r))))}function k(e){const t=e.defaultValue;return void 0!==t&&C(e,t)?t:e.nullable?null:void 0}function G(e){const t="string"==typeof e?{type:e}:e;return $(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function Z(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function D(e){return null===e||Z(e)}function F(e){return null===e||Number.isInteger(e)}function P(e){return null!=e&&"string"==typeof e}function N(e){return null===e||P(e)}function V(){return!0}function C(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?F:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?D:Z;break;case"string":case"esriFieldTypeString":r=e.nullable?N:P;break;default:r=V}return 1===arguments.length?r:r(t)}const R=new Set(["integer","small-integer","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"]),q=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),B=(0,i.KC)(R,q);function E(e){return null!=e&&B.has(e.type)}function $(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function j(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function z(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function J(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function H(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function W(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 Y,X;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:E(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))?Y.OUT_OF_RANGE:C(e,t)?e.domain?(0,a.wb)(e,t):null:X.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}}(Y||(Y={})).OUT_OF_RANGE="numeric-range-validation-error::out-of-range",function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(X||(X={}));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.Mh.INVALID_CODED_VALUE:return`Value ${r} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case a.Mh.VALUE_OUT_OF_RANGE:return`Value ${r} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case X.INVALID_TYPE:return`Value ${r} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case Y.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 ce(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some((t=>e.toLowerCase().startsWith(t)))}function ue(e){const t=e?.match(/{[^}]+}/g);return t?t.map((e=>e.slice(1,-1).split(":")[0].trim())):[]}},83531:(e,t,r)=>{r.d(t,{BR:()=>u,Ov:()=>o,TU:()=>n,W_:()=>l,XX:()=>a,tk:()=>p,wI:()=>c});var s=r(70333),i=r(78888);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 c(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.A)(n,{query:{f:"json"},responseType:"json",signal:o});return l?.owningSystemUrl||null}function u(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"sublayer":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)}},20655:(e,t,r)=>{r.d(t,{A:()=>U});var s=r(90237),i=r(92602),a=r(70333),n=r(78888),o=r(49186),l=r(25482),c=r(92474),u=r(97768),p=r(74887),d=r(10107),y=r(56507),h=(r(87811),r(44208),r(36005)),m=r(40608),g=r(5443),f=r(73444);let b;var v=r(96360),M=r(16405),S=r(69622);r(53966);let w=class extends S.A{constructor(e){super(e),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,s._)([(0,d.MZ)()],w.prototype,"nextQueryParams",void 0),(0,s._)([(0,d.MZ)()],w.prototype,"queryParams",void 0),(0,s._)([(0,d.MZ)()],w.prototype,"results",void 0),(0,s._)([(0,d.MZ)()],w.prototype,"total",void 0),w=(0,s._)([(0,m.$)("esri.portal.PortalQueryResult")],w);const _=w;var T,I=r(41318),L=r(926);let O;const A={PortalGroup:()=>Promise.resolve({default:v.A}),PortalItem:()=>Promise.resolve().then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:I.A})};let x=T=class extends((0,l.Te)(c.A)){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.layoutGroupQuery=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.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=i.A.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(){k.unregister(this),this.defaultBasemap=(0,u.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,u.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,u.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,u.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(e){if(e)for(const t of e)i.A.request.trustedServers.includes(t)||i.A.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=I.A.fromJSON(e),t.portal=this),t}load(e){const t=Promise.resolve().then(r.bind(r,83116)).then((({default:t})=>{(0,p.Te)(e),O=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!==T.AUTH_MODE_AUTO&&this.authMode!==T.AUTH_MODE_NO_PROMPT||(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))),k.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(7251),r.e(9186),r.e(5204),r.e(4983)]).then(r.bind(r,5111))).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.G4)(e)?Promise.reject((0,p.NK)()):Promise.resolve([])}fetchFeaturedGroups(e){const t=this.featuredGroups,r=new M.A({num:100,sortField:"title"});if(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.G4)(e)?Promise.reject((0,p.NK)()):Promise.resolve([])}fetchRegions(e){const t=this.user?.culture||this.culture||(0,f.JK)();return this.request(this.restUrl+"/portals/regions",{...e,query:{culture:t}})}fetchSettings(e){const t=this.user?.culture||this.culture||(0,f.JK)();return this.request(this.restUrl+"/portals/self/settings",{...e,query:{culture:t}})}static getDefault(){return b&&!b.destroyed||(b=new T),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.JK)().toLowerCase()},withCredentials:!0,...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,y.dp)(M.A,t),a=t=>this.request(this.restUrl+e,{...i.toRequestOptions(this),...s}).then((e=>{const r=i.clone();return r.start=e.nextStart,new _({nextQueryParams:r,queryParams:i,total:e.total,results:T._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.QP)(t),e)))));return r&&A[r]?A[r]().then((({default:e})=>((0,p.Te)(s),a(e)))):a()}signIn(){if(this.authMode===T.AUTH_MODE_ANONYMOUS||this.authMode===T.AUTH_MODE_NO_PROMPT&&!a.id)return Promise.reject(new o.A("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,{prompt:this.authMode!==T.AUTH_MODE_NO_PROMPT}).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=T._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===T.AUTH_MODE_ANONYMOUS||this.authMode===T.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:i=null,cacheBust:a=!1,method:o="auto",responseType:l="json",signal:c}=t,u={authMode:s,body:i,cacheBust:a,method:o,query:r,responseType:l,timeout:0,signal:c};return t.withCredentials&&(u.withCredentials=!0),(0,n.A)(this._normalizeSSL(e),u).then((e=>e.data))}toJSON(){throw new o.A("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 T({sourceJSON:e})}_getHelperService(e){const t=this.helperServices&&this.helperServices[e];if(!t)throw new o.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${e}"`);return t}async _fetchBasemaps(e,t){const r=new M.A;r.query=e||(i.A.apiKey&&(0,L.Q)(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 O({portalItem:e}))):[]}async _fetchBasemaps3D(e,t){const r=e||this.basemapGalleryGroupQuery3D;if(!r)return[];const s=new M.A({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 O({portalItem:e}))):[]}_normalizeSSL(e){return e.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(e){if(e){const t=O.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}};x.AUTH_MODE_ANONYMOUS="anonymous",x.AUTH_MODE_AUTO="auto",x.AUTH_MODE_IMMEDIATE="immediate",x.AUTH_MODE_NO_PROMPT="no-prompt",(0,s._)([(0,d.MZ)()],x.prototype,"access",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"allSSL",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"authMode",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"authorizedCrossOriginDomains",void 0),(0,s._)([(0,h.w)("authorizedCrossOriginDomains")],x.prototype,"readAuthorizedCrossOriginDomains",null),(0,s._)([(0,d.MZ)()],x.prototype,"basemapGalleryGroupQuery",void 0),(0,s._)([(0,d.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],x.prototype,"basemapGalleryGroupQuery3D",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"bingKey",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canListApps",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canListData",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canListPreProvisionedItems",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canProvisionDirectPurchase",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canSearchPublic",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canShareBingPublic",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canSharePublic",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canSignInArcGIS",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"canSignInIDP",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"colorSetsGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"commentsEnabled",void 0),(0,s._)([(0,d.MZ)({type:Date})],x.prototype,"created",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"credential",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"culture",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"currentVersion",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"customBaseUrl",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"defaultBasemap",void 0),(0,s._)([(0,h.w)("defaultBasemap")],x.prototype,"readDefaultBasemap",null),(0,s._)([(0,d.MZ)()],x.prototype,"defaultDevBasemap",void 0),(0,s._)([(0,h.w)("defaultDevBasemap")],x.prototype,"readDefaultDevBasemap",null),(0,s._)([(0,d.MZ)({type:g.A})],x.prototype,"defaultExtent",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"defaultVectorBasemap",void 0),(0,s._)([(0,h.w)("defaultVectorBasemap")],x.prototype,"readDefaultVectorBasemap",null),(0,s._)([(0,d.MZ)()],x.prototype,"description",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"devBasemapGalleryGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"eueiEnabled",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],x.prototype,"extraQuery",null),(0,s._)([(0,d.MZ)()],x.prototype,"featuredGroups",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"featuredItemsGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"galleryTemplatesGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"layoutGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"livingAtlasGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"hasCategorySchema",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"helpBase",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"helperServices",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"helpMap",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"homePageFeaturedContent",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"homePageFeaturedContentCount",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"httpPort",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"httpsPort",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"id",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"ipCntryCode",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],x.prototype,"isOrganization",null),(0,s._)([(0,d.MZ)()],x.prototype,"isPortal",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"isReadOnly",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],x.prototype,"itemPageUrl",null),(0,s._)([(0,d.MZ)()],x.prototype,"layerTemplatesGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"maxTokenExpirationMinutes",void 0),(0,s._)([(0,d.MZ)({type:Date})],x.prototype,"modified",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"name",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"portalHostname",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"portalMode",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"portalProperties",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"region",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"recycleBinEnabled",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],x.prototype,"restUrl",null),(0,s._)([(0,d.MZ)()],x.prototype,"rotatorPanels",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"showHomePageDescription",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"sourceJSON",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"staticImagesUrl",void 0),(0,s._)([(0,d.MZ)({json:{name:"2DStylesGroupQuery"}})],x.prototype,"stylesGroupQuery2d",void 0),(0,s._)([(0,d.MZ)({json:{name:"stylesGroupQuery"}})],x.prototype,"stylesGroupQuery3d",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"supportsHostedServices",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"symbolSetsGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"templatesGroupQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"thumbnail",void 0),(0,s._)([(0,d.MZ)({readOnly:!0})],x.prototype,"thumbnailUrl",null),(0,s._)([(0,d.MZ)()],x.prototype,"units",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"url",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"urlKey",void 0),(0,s._)([(0,h.w)("urlKey")],x.prototype,"readUrlKey",null),(0,s._)([(0,d.MZ)()],x.prototype,"user",void 0),(0,s._)([(0,h.w)("user")],x.prototype,"readUser",null),(0,s._)([(0,d.MZ)()],x.prototype,"use3dBasemaps",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"useStandardizedQuery",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"useVectorBasemaps",void 0),(0,s._)([(0,d.MZ)()],x.prototype,"vectorBasemapGalleryGroupQuery",void 0),x=T=(0,s._)([(0,m.$)("esri.portal.Portal")],x);const U=x,k=new FinalizationRegistry((e=>{e.remove()}))},96360:(e,t,r)=>{r.d(t,{A:()=>d});var s,i=r(90237),a=r(49186),n=r(25482),o=r(10107),l=r(56507),c=(r(87811),r(44208),r(40608)),u=r(16405);let p=s=class extends n.oY{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.A("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({sourceJSON:e});return t.read(e),t}queryItems(e,t){let r=(0,l.dp)(u.A,e);const s=this.portal;return parseFloat(s.currentVersion)>5?(r=r||new u.A,s.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",t)):(r=r?r.clone():new u.A,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 u.A({disableExtraQuery:!0,num:1,query:s});return r.queryGroups(e,t)}throw new a.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")})).then((r=>{if(r.total){const s=r.results[0],i=new u.A({num:1,query:`typekeywords:"${e}"`});return s.queryItems(i,t)}throw new a.A("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.MZ)()],p.prototype,"access",void 0),(0,i._)([(0,o.MZ)({type:Date})],p.prototype,"created",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"description",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"id",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"isInvitationOnly",void 0),(0,i._)([(0,o.MZ)({type:Date})],p.prototype,"modified",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"owner",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"portal",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"snippet",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"sortField",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"sortOrder",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"sourceJSON",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"tags",void 0),(0,i._)([(0,o.MZ)()],p.prototype,"thumbnail",void 0),(0,i._)([(0,o.MZ)({readOnly:!0})],p.prototype,"thumbnailUrl",null),(0,i._)([(0,o.MZ)()],p.prototype,"title",void 0),(0,i._)([(0,o.MZ)({readOnly:!0})],p.prototype,"url",null),p=s=(0,i._)([(0,c.$)("esri.portal.PortalGroup")],p);const d=p},80812:(e,t,r)=>{r.r(t),r.d(t,{default:()=>x});var s=r(90237),i=r(2741),a=r(49186),n=r(25482),o=r(4718),l=r(92474),c=r(84952),u=r(10107),p=r(56507),d=r(36005),y=r(40608),h=r(5443),m=r(20655),g=r(69622),f=r(53966),b=r(79901);r(87811),r(44208);let v=class extends g.A{constructor(e){super(e),this.portalItem=null}normalizeCtorArgs(e){return e?.portalItem&&e.path?{...e,path:M(e.path,e.portalItem)}:e}set path(e){null!=e&&(0,c.oP)(e)?f.A.getLogger(this).error("portalitemresource:invalid-path","A portal item resource path must be relative"):this._set("path",e)}_castPath(e){return M(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 a.A("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{addOrUpdateResources:s}=await r.e(5804).then(r.bind(r,15804));return await s(this.portalItem,[{resource:this,content:e,compress:t?.compress,access:t?.access}],"update",t),this}hasPath(){return null!=this.path}};function M(e,t){return null==e?e:(e=e.replace(/^\/+/,""),null!=t&&(0,c.oP)(e)&&(e=(0,c.V1)(e,t.itemUrl)),e?.replace(/^\/+/,"").replace(/^(\.\/)?resources\//,""))}(0,s._)([(0,u.MZ)()],v.prototype,"portalItem",void 0),(0,s._)([(0,u.MZ)({type:String,value:null})],v.prototype,"path",null),(0,s._)([(0,b.w)("path")],v.prototype,"_castPath",null),(0,s._)([(0,u.MZ)({type:String,readOnly:!0})],v.prototype,"url",null),(0,s._)([(0,u.MZ)({type:String,readOnly:!0})],v.prototype,"cdnUrl",null),(0,s._)([(0,u.MZ)({type:String,readOnly:!0})],v.prototype,"itemRelativeUrl",null),v=(0,s._)([(0,y.$)("esri.portal.PortalItemResource")],v);const S=v;let w=class extends g.A{constructor(e){super(e),this.created=null,this.rating=null}};(0,s._)([(0,u.MZ)()],w.prototype,"created",void 0),(0,s._)([(0,u.MZ)()],w.prototype,"rating",void 0),w=(0,s._)([(0,y.$)("esri.portal.PortalRating")],w);const _=w;var T,I=r(97159);const L=new Set(["3DTiles Service","CSV","Feature Collection","Feature Service","Feed","GeoJson","Group Layer","Image Service","KML","Map Service","Media Layer","Scene Service","Stream Service","Vector Tile Service","WFS","WMS","WMTS"]),O=new Set(["KML","GeoJson","CSV"]);let A=T=class extends((0,n.Te)(l.A)){static from(e){return(0,p.PZ)(T,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":"Geoenrichment Service"===e?r="GeoEnrichment Service":"Geocoding Service"===e?r="Locator":"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?.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)":"Raster function template"===e?r="Raster Function Template":"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":"3DTiles Service"===e?r="3D tiles layer":"3DTiles Package"===e&&(r="3D tiles package"),r}readExtent(e){return e&&e.length?new h.A(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,c=!1,u=!1,p=!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"),c=t.includes("UtilityNetwork"),r=l&&a?"spatiotemporaltable":a?"table":n?"routelayer":o?"markup":l?"spatiotemporal":c?"utilitynetwork":s?"featureshosted":"features"):"map service"===e||"wms"===e||"wmts"===e?(l=t.includes("Spatiotemporal"),u=t.includes("Relational"),r=l||u?"mapimages":s||t.includes("Tiled")||"wmts"===e?"maptiles":"mapimages"):r="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":"vector tile service"===e?"vectortile":"datastore catalog service"===e?"datastorecollection":"geocoding service"===e?"geocodeservice":"video service"===e?t.includes("Live Stream")?"livestreamvideolayer":"videolayer":"geoprocessing service"===e?t.includes("Web Tool")?"tool":"layers":"geodata service"===e?"geodataservice":"3dtiles service"===e?t.includes("3DObject")?"3dobjecttileslayer":t.includes("IntegratedMesh")?"integratedmeshtileslayer":"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||"shapefile"===e||"cad drawing"===e||"geojson"===e||"netcdf"===e||"administrative report"===e?r="datafiles":"360 vr experience"===e?r="360vr":"explorer add in"===e||"desktop add in"===e||"windows viewer add in"===e||"windows viewer configuration"===e?r="appsgray":"arcgis pro add in"===e||"arcgis pro configuration"===e?r="addindesktop":"pdf"===e?r="pdf":"microsoft word"===e?r="word":"microsoft excel"===e?r="excel":"microsoft powerpoint"===e?r="ppt":"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||"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":"analysis model"===e?r="analysismodel":"scene package"===e?r="scenepackage":"3dtiles package"===e?r="3dtileslayerpackage":"3dtiles service"===e?r="3dtileslayer":"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":"hub page"===e?r="hubpage":"hub site application"===e?r="hubsite":"hub event"===e?r="hubevent":"hub project"===e?r="hubproject":"relational database connection"===e?r="relationaldatabaseconnection":"big data file share"===e?r="datastorecollection":"image collection"===e?r="imagecollection":"desktop style"===e?r="desktopstyle":"style"===e?r=t.includes("Dictionary")?"dictionarystyle":"style":"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":"kernel gateway connection"===e?r="kernelgatewayconnection":"insights script"===e?r="insightsscript":"hub initiative template"===e?r="hubinitiativetemplate":"storymap theme"===e?r="storymaptheme":"knowledge graph"===e?r="knowledgegraph":"knowledge graph layer"===e?r="knowledgegraphlayer":"knowledge studio project"===e?r="knowledgestudio":"native application"===e?r="nativeapp":"native application installer"===e?r="nativeappinstaller":"web link chart"===e?r="linkchart":"knowledge graph web 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 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?(p=t.includes("Map"),r=p?"layergroup2d":"layergroup"):r="media layer"===e?"onlinemedialayer":"form"===e?t.includes("Survey123")?"survey":"datafilesgray":"csv"===e?"csv":"image"===e?"image":"maps",r?(0,i.s)("esri/images/portal/"+r+"16.png"):null}get isLayer(){return null!=this.type&&L.has(this.type)}get itemCdnUrl(){return(0,I.a)(this.itemUrl)}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=m.A.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 _&&(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 _({rating:e,created:new Date})):null}clone(){const e={access:this.access,accessInformation:this.accessInformation,applicationProxies:(0,o.o8)(this.applicationProxies),avgRating:this.avgRating,categories:(0,o.o8)(this.categories),created:(0,o.o8)(this.created),culture:this.culture,description:this.description,extent:(0,o.o8)(this.extent),groupCategories:(0,o.o8)(this.groupCategories),id:this.id,itemControl:this.itemControl,licenseInfo:this.licenseInfo,modified:(0,o.o8)(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,o.o8)(this.screenshots),size:this.size,snippet:this.snippet,sourceUrl:this.sourceUrl,spatialReference:this.spatialReference,tags:(0,o.o8)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,o.o8)(this.typeKeywords),url:this.url};this.loaded&&(e.loadStatus="loaded");const t=new T({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 _(t)):null}fetchRelatedItems(e,t){return this.portal.requestToTypedArray(this.itemUrl+"/relatedItems",{query:{...e,token:this.apiKey},...t},T)}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 a.A("portal:item-does-not-exist","The item does not exist yet and cannot be updated"))}async copy(e){if(!this.id)throw new a.A("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:n,title:o}=e||{},l={method:"post",query:{copyPrivateResources:"all"===s,folder:"string"==typeof i?i:i?.id,includeResources:!!s,tags:n?.join(","),title:o}},{itemId:c}=await t.request(`${r}/copy`,l);return new T({id:c,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.DB)(t)?s.query={data:t}:s.query={url:(0,c.s2)(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 a.A("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(5804).then(r.bind(r,15804));return s(this,e,t)}async addResource(e,t,s){const{addOrUpdateResources:i}=await r.e(5804).then(r.bind(r,15804));return e.portalItem=this,await i(this,[{resource:e,content:t,compress:s?.compress,access:s?.access}],"add",s),e}async removeResource(e,t){const{removeResource:s}=await r.e(5804).then(r.bind(r,15804));if(e.portalItem&&e.portalItem.itemUrl!==this.itemUrl)throw new a.A("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(5804).then(r.bind(r,15804));return t(this,e)}resourceFromPath(e){return new S({portalItem:this,path:e})}toJSON(){const e=this.extent,t={accessInformation:this.accessInformation,categories:(0,o.o8)(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,o.o8)(this.tags),thumbnail:this.thumbnail,title:this.title,type:this.type,typeKeywords:(0,o.o8)(this.typeKeywords),url:this.url};return(0,o.oy)(t)}static fromJSON(e){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");return new T({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,u.MZ)({type:["private","shared","org","public"]})],A.prototype,"access",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"accessInformation",void 0),(0,s._)([(0,u.MZ)({type:String})],A.prototype,"apiKey",void 0),(0,s._)([(0,u.MZ)({json:{read:{source:"appProxies"}}})],A.prototype,"applicationProxies",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"avgRating",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"categories",void 0),(0,s._)([(0,u.MZ)({type:Date})],A.prototype,"created",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"culture",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"description",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"displayName",null),(0,s._)([(0,u.MZ)({type:h.A})],A.prototype,"extent",void 0),(0,s._)([(0,d.w)("extent")],A.prototype,"readExtent",null),(0,s._)([(0,u.MZ)()],A.prototype,"groupCategories",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"iconUrl",null),(0,s._)([(0,u.MZ)()],A.prototype,"id",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"isLayer",null),(0,s._)([(0,u.MZ)({type:Boolean,readOnly:!0})],A.prototype,"isOrgItem",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"itemControl",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"itemPageUrl",null),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"itemUrl",null),(0,s._)([(0,u.MZ)()],A.prototype,"licenseInfo",void 0),(0,s._)([(0,u.MZ)({type:Date})],A.prototype,"modified",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"name",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"numComments",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"numRatings",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"numViews",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"owner",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"ownerFolder",void 0),(0,s._)([(0,u.MZ)({type:m.A})],A.prototype,"portal",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"screenshots",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"size",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"snippet",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"sourceJSON",void 0),(0,s._)([(0,u.MZ)({type:String})],A.prototype,"sourceUrl",void 0),(0,s._)([(0,u.MZ)({type:String})],A.prototype,"spatialReference",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"tags",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"thumbnail",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"thumbnailUrl",null),(0,s._)([(0,u.MZ)()],A.prototype,"title",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"type",void 0),(0,s._)([(0,u.MZ)()],A.prototype,"typeKeywords",void 0),(0,s._)([(0,u.MZ)({type:String,json:{read(e,t){if(O.has(t.type)){const t=this.portal?.restUrl;e||=t&&this.id?`${t}/content/items/${this.id}/data`:null}return e}}})],A.prototype,"url",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],A.prototype,"userItemUrl",null),A=T=(0,s._)([(0,y.$)("esri.portal.PortalItem")],A);const x=A},16405:(e,t,r)=>{r.d(t,{A:()=>m});var s,i=r(90237),a=r(69622),n=r(66552),o=r(4718),l=r(10107),c=(r(44208),r(53966),r(40608)),u=r(5443),p=r(16930),d=r(28735);const y=new n.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let h=s=class extends a.A{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.o8)(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.Cv)(this.extent,p.A.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=>y.toJSON(e.trim()))).join(","),a.sortOrder=this.sortOrder),{query:{...t,...a}}}};(0,i._)([(0,l.MZ)()],h.prototype,"categories",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"disableExtraQuery",void 0),(0,i._)([(0,l.MZ)({type:u.A})],h.prototype,"extent",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"filter",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"num",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"query",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"sortField",void 0),(0,i._)([(0,l.MZ)()],h.prototype,"sortOrder",null),(0,i._)([(0,l.MZ)()],h.prototype,"start",void 0),h=s=(0,i._)([(0,c.$)("esri.portal.PortalQueryParams")],h);const m=h},41318:(e,t,r)=>{r.d(t,{A:()=>y});var s=r(90237),i=r(49186),a=r(25482),n=r(10107),o=(r(44208),r(53966),r(87811),r(40608));let l=class extends a.oY{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.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,s._)([(0,n.MZ)({type:Date})],l.prototype,"created",void 0),(0,s._)([(0,n.MZ)()],l.prototype,"id",void 0),(0,s._)([(0,n.MZ)()],l.prototype,"portal",void 0),(0,s._)([(0,n.MZ)()],l.prototype,"title",void 0),(0,s._)([(0,n.MZ)({readOnly:!0})],l.prototype,"url",null),(0,s._)([(0,n.MZ)()],l.prototype,"username",void 0),l=(0,s._)([(0,o.$)("esri.portal.PortalFolder")],l);const c=l;var u,p=r(96360);let d=u=class extends a.oY{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.userLicenseTypeId=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())))}async deleteItem(e,t=!1){let r=this.userContentUrl;e.ownerFolder&&(r+="/"+e.ownerFolder);const s=t?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${e.id}/delete`,{method:"post",query:s}),e.id=null,e.portal=null}async deleteItems(e,t=!1){e=e.concat();const r=this.userContentUrl+"/deleteItems",s=[],a=e.map((e=>e.id));if(a.length){const n={method:"post",query:{items:a.join(","),permanentDelete:t}},o=await this.portal.request(r,n);for(const t of o.results){const r=e.find((e=>t.itemId===e.id)),a=t.success;let n=null;a?(r.id=null,r.portal=null):t.error&&(n=new i.A("portal:delete-item-failed",t.error.message,t.error)),s.push({item:r,success:a,error:n})}}return s}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=c.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.A.fromJSON(e);return t.portal=this.portal,t})):[],t}))}async fetchItems(e){e??={};let t=this.userContentUrl??"";e.folder&&(t+="/"+e.folder.id);const{default:s}=await Promise.resolve().then(r.bind(r,80812)),i={folders:!1,inRecycleBin:!!e.inRecycleBin||null,foldersContent:!(e.folder||!e.includeSubfolderItems)||null,num:e.num||10,start:e.start||1,sortField:e.sortField||"created",sortOrder:e.sortOrder||"asc"},a=await this.portal.request(t,{query:i});let n;return a?.items?(n=a.items.map((e=>{const t=s.fromJSON(e);return t.portal=this.portal,t})),await Promise.all(n.map((e=>e.load()))),{items:n,nextStart:a.nextStart,total:a.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.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(e)):Promise.reject(new i.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(e,t){const r=this.userContentUrl,s=t?{folderID:"string"==typeof t?t:t.id}:null;await this.portal.request(r+`/items/${e.id}/restore`,{method:"post",query:s})}toJSON(){throw new i.A("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 u({sourceJSON:e});return t.read(e),t}};(0,s._)([(0,n.MZ)()],d.prototype,"access",void 0),(0,s._)([(0,n.MZ)({type:Date})],d.prototype,"created",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"culture",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"description",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"email",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"favGroupId",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"fullName",void 0),(0,s._)([(0,n.MZ)({type:Date})],d.prototype,"modified",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"orgId",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"portal",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"preferredView",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"privileges",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"region",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"role",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"roleId",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"sourceJSON",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"thumbnail",void 0),(0,s._)([(0,n.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s._)([(0,n.MZ)()],d.prototype,"units",void 0),(0,s._)([(0,n.MZ)({readOnly:!0})],d.prototype,"userContentUrl",null),(0,s._)([(0,n.MZ)({readOnly:!0})],d.prototype,"url",null),(0,s._)([(0,n.MZ)()],d.prototype,"username",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"userLicenseTypeId",void 0),(0,s._)([(0,n.MZ)()],d.prototype,"userType",void 0),d=u=(0,s._)([(0,o.$)("esri.portal.PortalUser")],d);const y=d},61760:(e,t,r)=>{r.d(t,{PU:()=>n,YW:()=>l,ex:()=>i,hv:()=>o,zp:()=>a}),r(34727);var s=r(90629);r(87317),r(91829);const i=2.4;function a(e){return(0,s.PN)(e*i)}function n(e){return(0,s.Lz)(e)/i}function o(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 l(e){return"function"==typeof e?e:e?t=>+t[e]:()=>1}},9760:(e,t,r)=>{r.d(t,{A:()=>d});var s=r(90237),i=r(66552),a=r(25482),n=r(10107),o=(r(44208),r(53966),r(87811),r(93223)),l=r(40608);const c=new i.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new i.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let p=class extends a.oY{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.e)({classBreaksDef:"class-breaks-definition"})],p.prototype,"type",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],p.prototype,"breakCount",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],p.prototype,"classificationField",void 0),(0,s._)([(0,n.MZ)({type:String,json:{read:c.read,write:c.write}})],p.prototype,"classificationMethod",void 0),(0,s._)([(0,n.MZ)({json:{write:!0}})],p.prototype,"normalizationField",void 0),(0,s._)([(0,n.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"normalizationType",void 0),(0,s._)([(0,n.MZ)({value:null,json:{write:!0}})],p.prototype,"standardDeviationInterval",null),(0,s._)([(0,n.MZ)({value:null,json:{write:!0}})],p.prototype,"definedInterval",null),p=(0,s._)([(0,l.$)("esri.rest.support.ClassBreaksDefinition")],p);const d=p},84892:(e,t,r)=>{r.d(t,{t:()=>n});var s=r(53966);const i=()=>s.A.getLogger("esri.rest.support.generateRendererUtils");function a(e,t){return Number(e.toFixed(t))}function n(e){const{normalizationTotal:t}=e;return{classBreaks:o(e),normalizationTotal:t}}function o(e){const t=e.definition,{classificationMethod:r,normalizationType:s,definedInterval:i}=t,n=t.breakCount??1,o=[];let u=e.values;if(0===u.length)return[];u=u.sort(((e,t)=>e-t));const p=u[0],d=u[u.length-1];if("equal-interval"===r)if(u.length>=n){const e=(d-p)/n;let t=p;for(let r=1;r<n;r++){const i=a(p+r*e,6);o.push({minValue:t,maxValue:i,label:l(t,i,s)}),t=i}o.push({minValue:t,maxValue:d,label:l(t,d,s)})}else u.forEach((e=>{o.push({minValue:e,maxValue:e,label:l(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}}(u),r=e.valueFrequency||t.valueFrequency,i=c(t.uniqueValues,r,n);let y=p;for(let e=1;e<n;e++)if(t.uniqueValues.length>e){const r=a(t.uniqueValues[i[e]],6);o.push({minValue:y,maxValue:r,label:l(y,r,s)}),y=r}o.push({minValue:y,maxValue:d,label:l(y,d,s)})}else if("quantile"===r)if(u.length>=n&&p!==d){let e=p,t=Math.ceil(u.length/n),r=0;for(let i=1;i<n;i++){let a=t+r-1;a>u.length&&(a=u.length-1),a<0&&(a=0),o.push({minValue:e,maxValue:u[a],label:l(e,u[a],s)}),e=u[a],r+=t,t=Math.ceil((u.length-r)/(n-i))}o.push({minValue:e,maxValue:d,label:l(e,d,s)})}else{let e=-1;for(let t=0;t<u.length;t++){const r=u[t];r!==e&&(e=r,o.push({minValue:e,maxValue:r,label:l(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}(u),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)}(u,e);if(0===t)o.push({minValue:u[0],maxValue:u[0],label:l(u[0],u[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 i=0,c=p;for(let t=n;t>=1;t--){const n=a(e-(t-.5)*r,6);o.push({minValue:c,maxValue:n,label:l(c,n,s)}),c=n,i++}let u=a(e+.5*r,6);o.push({minValue:c,maxValue:u,label:l(c,u,s)}),c=u,i++;for(let t=1;t<=n;t++)u=i===2*n?d:a(e+(t+.5)*r,6),o.push({minValue:c,maxValue:u,label:l(c,u,s)}),c=u,i++}}else if("defined-interval"===r){if(!i)return o;const e=u[0],t=u[u.length-1],r=Math.ceil((t-e)/i);let n=e;for(let t=1;t<r;t++){const r=a(e+t*i,6);o.push({minValue:n,maxValue:r,label:l(n,r,s)}),n=r}o.push({minValue:n,maxValue:t,label:l(n,t,s)})}return o}function l(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 c(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,c=0,u=!0;for(let d=0;d<2&&u;d++){0===d&&(u=!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=p(d,r,s,i);l=a.sbMean,n=a.sbSdcm;const y=p(d+1,r,s,i);if(c=y.sbMean,o=y.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]=c,u=!0}for(let d=a-1;d>0;d--)for(;r[d]!==r[d-1]+1;){r[d]=r[d]-1;const a=p(d-1,r,s,i);l=a.sbMean,n=a.sbSdcm;const y=p(d,r,s,i);if(c=y.sbMean,o=y.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]=c,u=!0}}return u}(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=[],c=[];for(let i=0;i<s;i++){const s=p(i,e,t,r);l.push(s.sbMean),c.push(s.sbSdcm),o+=c[i]}let u,d=o,y=!0;for(;y||o<d;){y=!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(u=t[i],r>0&&i!==e[r+1]&&Math.abs(u-l[r])>Math.abs(u-l[r-1]))e[r]=i;else if(r<s-1&&e[r]!==i-1&&Math.abs(u-l[r])>Math.abs(u-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(c[i]);const s=p(i,e,t,r);l[i]=s.sbMean,c[i]=s.sbSdcm,o+=c[i]}}if(o>d){for(let t=0;t<s;t++)e[t]=i[t],l[t]=a[t],c[t]=n[t];o=d}return{mean:l,sdcm:c}}function p(e,t,r,s){let a=0,n=0;for(let i=t[e]+1;i<=t[e+1];i++){const e=s[i];a+=r[i]*e,n+=e}n<=0&&i().warn("Exception in Natural Breaks calculation");const o=a/n;let l=0;for(let i=t[e]+1;i<=t[e+1];i++)l+=s[i]*(r[i]-o)**2;return{sbMean:o,sbSdcm:l}}},50201:(e,t,r)=>{r.d(t,{gV:()=>g,Jc:()=>b,$r:()=>m,rb:()=>f}),r(59456),r(49186);var s=r(90629),i=r(88930),a=r(16930),n=r(62577),o=r(21325),l=r(30524),c=r(61760),u=(r(97770),r(71386));r(83116),r(92602),r(5503),r(53966),r(84952),r(56507),r(27865),r(43281),r(56400),new Set(["integer","small-integer"]);var p=r(1873),d=r(86738);let y=null;const h=/^(?<hh>([0-1][0-9])|([2][0-3])):(?<mm>[0-5][0-9])(:(?<ss>[0-5][0-9]))?([.](?<ms>\d+))?$/;function m(e,t,r,s){const i=(0,o.d9)(r)?(0,o.Vp)(r):null,a=i?Math.round((i.valid[1]-i.valid[0])/t.scale[0]):null;return e.map((e=>{const r=new d.A(e.geometry);return(0,n.Gy)(t,r,r),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 g(e,t=18,r,i,a){const n=new Float64Array(i*a);t=Math.round((0,s.Lz)(t));let o=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY;const u=(0,c.YW)(r);for(const{geometry:r,attributes:s}of e){const{x:e,y:p}=r,d=Math.max(0,e-t),y=Math.max(0,p-t),h=Math.min(a,p+t),m=Math.min(i,e+t),g=+u(s);for(let r=y;r<h;r++)for(let s=d;s<m;s++){const a=r*i+s,u=(0,c.hv)(s-e,r-p,t)*g,d=n[a]+=u;o=Math.min(o,d),l=Math.max(l,d)}}return{min:o,max:l}}function f(e){const t=h.exec(e);if(!t)return null;const{hh:r,mm:s,ss:a,ms:n}=t.groups;return Number(r)*i.vf.hours+Number(s)*i.vf.minutes+Number(a)*i.vf.seconds+Number(n||0)}async function b(e,t,r=!0){if(!t)return[];const{field:s,field2:i,field3:n,fieldDelimiter:o,fieldInfos:c,timeZone:d}=e,h=s&&c?.find((e=>e.name.toLowerCase()===s.toLowerCase())),m=!!h&&(0,l.OH)(h),g=!!h&&function(e){return(0,l.vE)(e)||(0,l.zD)(e)||(0,l.Ah)(e)}(h),b=e.valueExpression,v=e.normalizationType,M=e.normalizationField,S=e.normalizationTotal,w=[],_=e.viewInfoParams;let T=null,I=null;if(b){if(!y){const{arcadeUtils:e}=await(0,u.lw)();y=e}y.hasGeometryOperations(b)&&await y.enableGeometryOperations(),T=y.createFunction(b),I=_?y.getViewInfo({viewingMode:_.viewingMode,scale:_.scale,spatialReference:new a.A(_.spatialReference)}):null}const L=e.fieldInfos,O=t[0]&&"declaredClass"in t[0]&&"esri.Graphic"===t[0].declaredClass||!L?null:{fields:L};return t.forEach((e=>{const t=e.attributes;let a;if(b){const t=O?{...e,layer:O}:e,r=y.createExecContext(t,I,d);a=y.executeFunction(T,r)}else t&&(a=t[s],i?(a=`${(0,p.gJ)(a)}${o}${(0,p.gJ)(t[i])}`,n&&(a=`${a}${o}${(0,p.gJ)(t[n])}`)):"string"==typeof a&&r&&(g?a=a?new Date(a).getTime():null:m&&(a=a?f(a):null)));if(v&&"number"==typeof a&&isFinite(a)){const e=t&&parseFloat(t[M]);a=(0,p.zS)(a,v,e,S)}w.push(a)})),w}},1873:(e,t,r)=>{r.d(t,{$y:()=>C,FM:()=>v,G_:()=>f,Rw:()=>P,Vb:()=>m,b3:()=>G,gJ:()=>h,jM:()=>V,lv:()=>D,oZ:()=>k,qg:()=>b,z9:()=>g,zS:()=>F});var s=r(9760),i=r(84892);const a="<Null>",n="equal-interval",o=1,l=5,c=10,u=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,p=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),d=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),y=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function h(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,c=null,u=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),u++):"string"==typeof e&&u++;if(u&&null!=n){o=n/u;let e=0;for(const r of t)Number.isFinite(r)&&r>=p&&r<=d&&(e+=(r-o)**2);c=r?u>1?e/(u-1):0:u>0?e/u:0,l=Math.sqrt(c)}else i=null,a=null;const y={avg:o,count:u,max:a,min:i,stddev:l,sum:n,variance:c};return s&&(y.nullcount=t.length-u),e.percentileParams&&(y.median=b(t,e.percentileParams)),y}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),c=l+1,u=o%1,p=e[l],d=e[c];return c>=e.length||a||"string"==typeof p||"string"==typeof d?p:p*(1-u)+d*u}function v(e,t){if(e){if(p.has(e))return x(t);if(d.has(e))return L(t,!1);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?_:w}(t);const r=L(t,!0);if("esriFieldTypeString"===e)return r;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>r(U(e),U(t))}const r=t?1:-1,s=x(t),i=L(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 M=(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,w=(e,t)=>S(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),_=(e,t)=>M(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),T=(e,t)=>S(e,t)??(e===t?0:e<t?-1:1),I=(e,t)=>M(e,t)??(e===t?0:e<t?1:-1);function L(e,t){if(!t)return e?I:T;const r=function(e){return e?M: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 O=(e,t)=>M(e,t)??t-e,A=(e,t)=>S(e,t)??e-t;function x(e){return e?O:A}function U(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 k(e,t){let r;for(r in e)y.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 G(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 Z(e){return"coded-value"!==e?.type?[]:e.codedValues.map((e=>e.code))}function D(e,t,r,s){const i=e.count,a=[];if(r&&t){const e=[],r=Z(t[0]);for(const i of r)if(t[1]){const r=Z(t[1]);for(const a of r)if(t[2]){const r=Z(t[2]);for(const t of r)e.push(`${h(i)}${s}${h(a)}${s}${h(t)}`)}else e.push(`${h(i)}${s}${h(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 F(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=N({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.t)({definition:r,values:e,normalizationTotal:t.normalizationTotal})}function N(e){const{breakCount:t,field:r,normalizationField:i,normalizationType:a}=e,l=e.classificationMethod||n,c="standard-deviation"===l?e.standardDeviationInterval||o:void 0;return new s.A({breakCount:t,classificationField:r,classificationMethod:l,normalizationField:"field"===a?i:void 0,normalizationType:a,standardDeviationInterval:c})}function V(e,t){let r=e.classBreaks;const s=r.length,i=r[0]?.minValue,a=r[s-1]?.maxValue,n="standard-deviation"===t,o=u;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 C(e,t){const r=R(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=q(s,t);e>-1&&n[e].count++}return{bins:n,minValue:i,maxValue:a,normalizationTotal:t.normalizationTotal}}function R(e,t){const{field:r,classificationMethod:s,standardDeviationInterval:i,normalizationType:a,normalizationField:n,normalizationTotal:o,minValue:l,maxValue:u}=t,p=t.numBins||c;let d=null,y=null,h=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:u,numClasses:p});d=t[0].minValue,y=t[t.length-1].maxValue,h=t.map((e=>[e.minValue,e.maxValue]))}else{if(null!=l&&null!=u)d=l,y=u;else{const t=f({values:e,minValue:l,maxValue:u,useSampleStdDev:!a,supportsNullCount:m({normalizationType:a,normalizationField:n,minValue:l,maxValue:u})});d=t.min??null,y=t.max??null}h=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,y??0,p)}return{min:d,max:y,intervals:h}}function q(e,t){let r=-1;for(let s=e.length-1;s>=0;s--)if(t>=e[s][0]){r=s;break}return r}},71386:(e,t,r)=>{r.d(t,{Ad:()=>l,lw:()=>o,xR:()=>c}),r(59456);var s=r(49186),i=r(53966),a=r(16930);let n;function o(){return n||(n=(async()=>{const e=await r.e(9564).then(r.bind(r,59564));return{arcade:e.arcade,arcadeUtils:e,Dictionary:e.Dictionary,Feature:e.arcadeFeature}})()),n}const l=(e,t,r)=>u.create(e,t,r,null,["$feature","$view"],[]),c=(e,t,r,s)=>u.create(e,t,r,s,["$feature","$view"],[]);class u{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,n,l,c){const{arcade:p,Feature:d,Dictionary:y}=await o(),h=a.A.fromJSON(t);let m;try{m=p.parseScript(e,c)}catch(t){return i.A.getLogger("esri.support.arcadeOnDemand").error(new s.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})),null}const g=l.reduce(((e,t)=>({...e,[t]:null})),{});let f=null;null!=n&&(f=new y(n),f.immutable=!0,g.$config=null);const b=p.scriptUsesGeometryEngine(m),v=b&&p.enableGeometrySupport(),M=p.scriptUsesFeatureSet(m)&&p.enableFeatureSetSupport(),S=p.scriptIsAsync(m),w=S&&p.enableAsyncSupport(),_={vars:g,spatialReference:h,useAsync:!!w};await Promise.all([v,M,w]);const T=new Set;await p.loadDependentModules(T,m,null,S,b);const I=new y;I.immutable=!1,I.setField("scale",0);const L=p.compileScript(m,_);return new u(e,p,m,((e,t)=>{const r=e.$view?.timeZone;return"$view"in e&&e.$view&&(I.setField("scale","object"==typeof e.$view&&"scale"in e.$view?e.$view.scale:void 0),e.$view=I),f&&(e.$config=f),L({vars:e,spatialReference:h,services:t,timeZone:r})}),new d,r,h)}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}}},43281:(e,t,r)=>{r.d(t,{H:()=>n,q:()=>a});var s=r(2741),i=r(10838);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.ud)("esri/t9n/basemaps");return r[e]||r[t]}const n={satellite:{id:"satellite",classic:!0,get thumbnailUrl(){return(0,s.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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"}]},"streets-3d":{id:"streets-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/streets-3d.png")},baseMapLayers:[{id:"streets-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/198298c4c64c4cb19de5b46aa00c198d/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"streets-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:"streets-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"osm-3d":{id:"osm-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/osm-3d.png")},baseMapLayers:[{id:"osm-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/8628d259c9d14bdc848771c23c513940/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap",visibility:!0,opacity:1},{id:"osm-3d-trees",title:"Trees",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Trees_Thematic_v1/SceneServer",itemId:"f75fef56b2d944fe92ef9f7737b4f953",layerType:"ArcGISSceneServiceLayer"},{id:"osm-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:"osm-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"gray-3d":{id:"gray-3d",is3d:!0,get thumbnailUrl(){return(0,s.s)("esri/images/basemap/gray-3d.png")},baseMapLayers:[{id:"gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/01a14b466345455ba4176d2e6390db92/resources/styles/root.json",layerType:"VectorTileLayer",title:"Streets",visibility:!0,opacity:1},{id:"gray-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:"gray-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"}]},"streets-dark-3d":{id:"streets-dark-3d",itemId:"8a4efa2c20484ec9b4557895e65736ff",is3d:!0,baseMapLayers:[{id:"streets-dark-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/bc599b6d741a4ac084b7eea7bf8c5938/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Streets Night (for 3D)"},{id:"streets-dark-3d-places-and-labels",title:"Places and Labels",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_LightLabels_v1/SceneServer",itemId:"f364b70b012a4da5a4b5921e193eac4a",layerType:"ArcGISSceneServiceLayer"},{id:"streets-dark-3d-buildings",title:"Buildings",url:"https://basemaps3d.arcgis.com/arcgis/rest/services/OpenStreetMap3D_Buildings_v1/SceneServer",itemId:"ca0470dbbddb4db28bad74ed39949e25",layerType:"ArcGISSceneServiceLayer"}]},"dark-gray-3d":{id:"dark-gray-3d",itemId:"a8b7322a5fe94002bb0f5e0eeb0c5c18",is3d:!0,baseMapLayers:[{id:"dark-gray-3d-base-layer",styleUrl:"https://www.arcgis.com/sharing/rest/content/items/4178f71acb934fb89f169e7d667c20c6/resources/styles/root.json",layerType:"VectorTileLayer",title:"OpenStreetMap Dark Gray Canvas (for 3D)"},{id:"dark-gray-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:"dark-gray-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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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.s)("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}]}}},751:(e,t,r)=>{r.d(t,{CJ:()=>d});var s=r(49186),i=r(4718),a=r(93637),n=r(67124),o=r(83531);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wms","wmts"]),c=new Set(["catalog","csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","knowledge-graph","map-image","map-notes","media","ogc-feature","oriented-imagery","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wfs","wms","wmts"]);function u(e,t){if(t.restrictedWebMapWriting){const r=function(e){return"basemap"===e.layerContainerType?l:"operational-layers"===e.layerContainerType?c:null}(t);return null==r||r.has(e.type)&&!(0,o.Ov)(e)}return!0}function p(e,t){"maxScale"in e&&(t.maxScale=(0,n.B)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,n.B)(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.A("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if((0,o.Ov)(e)&&!e.isTable)t=e.resourceInfo;else if(u(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.Ov)(e)){const r=(0,a.wc)("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.B)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,o.Ov)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,i.o8)(t)),t}},58769:(e,t,r)=>{function s(e){return"number"==typeof e}function i(e){return"string"==typeof e||e instanceof String}r.d(t,{E:()=>s,K:()=>i})}}]);