@arcgis/core 4.25.0-next.20220818 → 4.25.0-next.20220821

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 (89) hide show
  1. package/analysis/LengthDimension.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/0b1d39dc063c4c3385e2.js +1 -0
  4. package/assets/esri/core/workers/chunks/{59a04f1640cd2b710028.js → 0c625803648e554f1fcf.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{50985ec72b9e4557d371.js → 0f1fae79b5311d55c0da.js} +1 -1
  6. package/assets/esri/core/workers/chunks/1a360d839c4eb83aaa02.js +1 -0
  7. package/assets/esri/core/workers/chunks/3381b5454cd530cf940a.js +1 -0
  8. package/assets/esri/core/workers/chunks/3900c702242358c5d00e.js +1 -0
  9. package/assets/esri/core/workers/chunks/43f84cb852c9ab5e742f.js +1 -0
  10. package/assets/esri/core/workers/chunks/4637bfd3deff50b03f2e.js +1 -0
  11. package/assets/esri/core/workers/chunks/4d5bdf18feeb9c8cb6ff.js +1 -0
  12. package/assets/esri/core/workers/chunks/5c2574365af4a484cd4b.js +1 -0
  13. package/assets/esri/core/workers/chunks/70179a003b5e52a99e10.js +1 -0
  14. package/assets/esri/core/workers/chunks/77a38124ef155a1b0f3e.js +1 -0
  15. package/assets/esri/core/workers/chunks/{ab0ce16ced3532f0e429.js → 81418b47acb4ef68daf7.js} +1 -1
  16. package/assets/esri/core/workers/chunks/88b5ce63c4706d0954dc.js +1 -0
  17. package/assets/esri/core/workers/chunks/{064a4baa576964efa238.js → 9809878b87595ac77dc4.js} +1 -1
  18. package/assets/esri/core/workers/chunks/9dbe94a70624a5592690.js +1 -0
  19. package/assets/esri/core/workers/chunks/{d013daa46de022f0db4d.js → a0750175b499a89fd07d.js} +1 -1
  20. package/assets/esri/core/workers/chunks/be4a8a4b2804188817b3.js +1 -0
  21. package/assets/esri/core/workers/chunks/da13db62d54cbca350c3.js +1 -0
  22. package/assets/esri/core/workers/chunks/e472e4f4a2f046846258.js +1 -0
  23. package/assets/esri/core/workers/chunks/f351cccf879ba295acbc.js +1 -0
  24. package/chunks/boundedPlane.js +1 -1
  25. package/chunks/pe.js +1 -1
  26. package/core/Identifiable.js +1 -1
  27. package/geometry/Circle.js +1 -1
  28. package/geometry/Extent.js +1 -1
  29. package/geometry/Mesh.js +1 -1
  30. package/geometry/Multipoint.js +1 -1
  31. package/geometry/Point.js +1 -1
  32. package/geometry/geometryEngine.js +1 -1
  33. package/geometry/geometryEngineAsync.js +1 -1
  34. package/geometry/projection.js +1 -1
  35. package/geometry/support/aaBoundingBox.js +1 -1
  36. package/geometry/support/boundsUtils.js +1 -1
  37. package/geometry/support/centroid.js +1 -1
  38. package/geometry/support/cut.js +1 -1
  39. package/geometry/support/extentUtils.js +1 -1
  40. package/geometry/support/geodesicUtils.js +1 -1
  41. package/geometry/support/heightModelInfoUtils.js +1 -1
  42. package/geometry/support/meshUtils/primitives.js +1 -1
  43. package/geometry/support/quantizationUtils.js +1 -1
  44. package/interfaces.d.ts +60 -84
  45. package/layers/DimensionLayer.js +1 -1
  46. package/layers/support/ExportImageServiceParameters.js +1 -1
  47. package/layers/support/imageryRendererUtils.js +1 -1
  48. package/package.json +1 -1
  49. package/renderers/support/rasterRendererHelper.js +1 -1
  50. package/support/revision.js +1 -1
  51. package/symbols/cim/CIMResourceManager.js +1 -1
  52. package/symbols/cim/cimAnalyzer.js +1 -1
  53. package/symbols/cim/quantizeTime.js +5 -0
  54. package/views/2d/engine/webgl/TextureManager.js +1 -1
  55. package/views/2d/engine/webgl/animatedFormats/AnimatableTextureResource.js +5 -0
  56. package/views/2d/engine/webgl/animatedFormats/apng.js +1 -1
  57. package/views/2d/engine/webgl/animatedFormats/gif.js +1 -1
  58. package/views/2d/engine/webgl/animatedFormats/utils.js +1 -1
  59. package/views/3d/analysis/Dimensioning/LengthDimensionComputation.js +1 -1
  60. package/views/3d/analysis/Dimensioning/LengthDimensionSubTool.js +1 -1
  61. package/views/3d/analysis/Dimensioning/LengthDimensionVisualization.js +1 -1
  62. package/views/3d/analysis/Dimensioning/lengthDimensionUtils.js +1 -1
  63. package/views/3d/analysis/DirectLineMeasurement/DirectLineMeasurementController.js +1 -1
  64. package/views/3d/analysis/support/measurementUtils.js +1 -1
  65. package/views/3d/terrain/PlanarPatch.js +1 -1
  66. package/views/3d/terrain/SphericalPatch.js +1 -1
  67. package/views/3d/terrain/TerrainSurface.js +1 -1
  68. package/views/3d/terrain/Tile.js +1 -1
  69. package/views/3d/terrain/interfaces.js +1 -1
  70. package/views/support/geodesicLengthMeasurementUtils.js +1 -1
  71. package/widgets/Bookmarks.js +1 -1
  72. package/widgets/Search/SearchViewModel.js +1 -1
  73. package/assets/esri/core/workers/chunks/229bfbf3faa789f40b7e.js +0 -1
  74. package/assets/esri/core/workers/chunks/2e715520e5badbe570ac.js +0 -1
  75. package/assets/esri/core/workers/chunks/40098b3be512ad8461f8.js +0 -1
  76. package/assets/esri/core/workers/chunks/420ae87ba8dc74fd05f5.js +0 -1
  77. package/assets/esri/core/workers/chunks/46c836fc575251f1ff34.js +0 -1
  78. package/assets/esri/core/workers/chunks/481532ce4871b0d94587.js +0 -1
  79. package/assets/esri/core/workers/chunks/5fa78a6745ef14c7c4d1.js +0 -1
  80. package/assets/esri/core/workers/chunks/606f45a93c707054c521.js +0 -1
  81. package/assets/esri/core/workers/chunks/78e59b29e59b10f64aa9.js +0 -1
  82. package/assets/esri/core/workers/chunks/7be7c53727cb1bc73a64.js +0 -1
  83. package/assets/esri/core/workers/chunks/8d3fba983c360e1fdabf.js +0 -1
  84. package/assets/esri/core/workers/chunks/a69d194526bdc489b30b.js +0 -1
  85. package/assets/esri/core/workers/chunks/b59855826d235cba0889.js +0 -1
  86. package/assets/esri/core/workers/chunks/bff5812e3797c8e42ac0.js +0 -1
  87. package/assets/esri/core/workers/chunks/d6e177749bde46ab57fc.js +0 -1
  88. package/assets/esri/core/workers/chunks/d9c8a8bed6b34ed57faf.js +0 -1
  89. package/views/2d/engine/webgl/animatedFormats/BaseAnimatableTextureResource.js +0 -5
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1433,819],{80819:(e,t,n)=>{n.r(t),n.d(t,{hydratedAdapter:()=>u});var r=n(6570),a=n(65091),i=n(94139),c=n(38913),o=n(58901);const u={convertToGEGeometry:function(e,t){if(null==t)return null;let n="cache"in t?t.cache._geVersion:void 0;return null==n&&(n=e.convertJSONToGeometry(t),"cache"in t&&(t.cache._geVersion=n)),n},exportPoint:function(e,t,n){const r=e.hasZ(t),a=e.hasM(t),c=new i.Z({x:e.getPointX(t),y:e.getPointY(t),spatialReference:n});return r&&(c.z=e.getPointZ(t)),a&&(c.m=e.getPointM(t)),c.cache._geVersion=t,c},exportPolygon:function(e,t,n){const r=new c.Z({rings:e.exportPaths(t),hasZ:e.hasZ(t),hasM:e.hasM(t),spatialReference:n});return r.cache._geVersion=t,r},exportPolyline:function(e,t,n){const r=new o.Z({paths:e.exportPaths(t),hasZ:e.hasZ(t),hasM:e.hasM(t),spatialReference:n});return r.cache._geVersion=t,r},exportMultipoint:function(e,t,n){const r=new a.Z({hasZ:e.hasZ(t),hasM:e.hasM(t),points:e.exportPoints(t),spatialReference:n});return r.cache._geVersion=t,r},exportExtent:function(e,t,n){const a=e.hasZ(t),i=e.hasM(t),c=new r.Z({xmin:e.getXMin(t),ymin:e.getYMin(t),xmax:e.getXMax(t),ymax:e.getYMax(t),spatialReference:n});if(a){const n=e.getZExtent(t);c.zmin=n.vmin,c.zmax=n.vmax}if(i){const n=e.getMExtent(t);c.mmin=n.vmin,c.mmax=n.vmax}return c.cache._geVersion=t,c}}},61433:(e,t,n)=>{n.r(t),n.d(t,{buffer:()=>P,changeDefaultSpatialReferenceTolerance:()=>Y,clearDefaultSpatialReferenceTolerance:()=>j,clip:()=>o,contains:()=>d,convexHull:()=>w,crosses:()=>s,cut:()=>u,densify:()=>k,difference:()=>R,disjoint:()=>G,distance:()=>f,equals:()=>l,extendedSpatialReferenceInfo:()=>c,flipHorizontal:()=>E,flipVertical:()=>L,generalize:()=>b,geodesicArea:()=>O,geodesicBuffer:()=>S,geodesicDensify:()=>H,geodesicLength:()=>I,intersect:()=>Z,intersectLinesToPoints:()=>X,intersects:()=>p,isSimple:()=>x,nearestCoordinate:()=>D,nearestVertex:()=>T,nearestVertices:()=>z,offset:()=>V,overlaps:()=>A,planarArea:()=>J,planarLength:()=>N,relate:()=>g,rotate:()=>C,simplify:()=>m,symmetricDifference:()=>M,touches:()=>h,union:()=>v,within:()=>y});var r=n(45837),a=n(80819);function i(e){return Array.isArray(e)?e[0].spatialReference:e&&e.spatialReference}function c(e){return r.G.extendedSpatialReferenceInfo(e)}function o(e,t){return r.G.clip(a.hydratedAdapter,i(e),e,t)}function u(e,t){return r.G.cut(a.hydratedAdapter,i(e),e,t)}function d(e,t){return r.G.contains(a.hydratedAdapter,i(e),e,t)}function s(e,t){return r.G.crosses(a.hydratedAdapter,i(e),e,t)}function f(e,t,n){return r.G.distance(a.hydratedAdapter,i(e),e,t,n)}function l(e,t){return r.G.equals(a.hydratedAdapter,i(e),e,t)}function p(e,t){return r.G.intersects(a.hydratedAdapter,i(e),e,t)}function h(e,t){return r.G.touches(a.hydratedAdapter,i(e),e,t)}function y(e,t){return r.G.within(a.hydratedAdapter,i(e),e,t)}function G(e,t){return r.G.disjoint(a.hydratedAdapter,i(e),e,t)}function A(e,t){return r.G.overlaps(a.hydratedAdapter,i(e),e,t)}function g(e,t,n){return r.G.relate(a.hydratedAdapter,i(e),e,t,n)}function x(e){return r.G.isSimple(a.hydratedAdapter,i(e),e)}function m(e){return r.G.simplify(a.hydratedAdapter,i(e),e)}function w(e,t=!1){return r.G.convexHull(a.hydratedAdapter,i(e),e,t)}function R(e,t){return r.G.difference(a.hydratedAdapter,i(e),e,t)}function M(e,t){return r.G.symmetricDifference(a.hydratedAdapter,i(e),e,t)}function Z(e,t){return r.G.intersect(a.hydratedAdapter,i(e),e,t)}function v(e,t=null){return r.G.union(a.hydratedAdapter,i(e),e,t)}function V(e,t,n,c,o,u){return r.G.offset(a.hydratedAdapter,i(e),e,t,n,c,o,u)}function P(e,t,n,c=!1){return r.G.buffer(a.hydratedAdapter,i(e),e,t,n,c)}function S(e,t,n,c,o,u){return r.G.geodesicBuffer(a.hydratedAdapter,i(e),e,t,n,c,o,u)}function D(e,t,n=!0){return r.G.nearestCoordinate(a.hydratedAdapter,i(e),e,t,n)}function T(e,t){return r.G.nearestVertex(a.hydratedAdapter,i(e),e,t)}function z(e,t,n,c){return r.G.nearestVertices(a.hydratedAdapter,i(e),e,t,n,c)}function _(e){return"xmin"in e?"center"in e?e.center:null:"x"in e?e:"extent"in e?e.extent?.center??null:null}function C(e,t,n){if(null==e)throw new q;const a=e.spatialReference;if(null==(n=n??_(e)))throw new q;const i=e.constructor.fromJSON(r.G.rotate(e,t,n));return i.spatialReference=a,i}function E(e,t){if(null==e)throw new q;const n=e.spatialReference;if(null==(t=t??_(e)))throw new q;const a=e.constructor.fromJSON(r.G.flipHorizontal(e,t));return a.spatialReference=n,a}function L(e,t){if(null==e)throw new q;const n=e.spatialReference;if(null==(t=t??_(e)))throw new q;const a=e.constructor.fromJSON(r.G.flipVertical(e,t));return a.spatialReference=n,a}function b(e,t,n,c){return r.G.generalize(a.hydratedAdapter,i(e),e,t,n,c)}function k(e,t,n){return r.G.densify(a.hydratedAdapter,i(e),e,t,n)}function H(e,t,n,c=0){return r.G.geodesicDensify(a.hydratedAdapter,i(e),e,t,n,c)}function J(e,t){return r.G.planarArea(a.hydratedAdapter,i(e),e,t)}function N(e,t){return r.G.planarLength(a.hydratedAdapter,i(e),e,t)}function O(e,t,n){return r.G.geodesicArea(a.hydratedAdapter,i(e),e,t,n)}function I(e,t,n){return r.G.geodesicLength(a.hydratedAdapter,i(e),e,t,n)}function X(e,t){return r.G.intersectLinesToPoints(a.hydratedAdapter,i(e),e,t)}function Y(e,t){r.G.changeDefaultSpatialReferenceTolerance(e,t)}function j(e){r.G.clearDefaultSpatialReferenceTolerance(e)}class q extends Error{constructor(){super("Illegal Argument Exception")}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4109],{10699:(e,t,r)=>{r.d(t,{IG:()=>l});var s=r(43697),i=r(52011);let o=0;const l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return t=(0,s._)([(0,i.j)("esri.core.Identifiable")],t),t};let n=class extends(l(class{})){};n=(0,s._)([(0,i.j)("esri.core.Identifiable")],n)},16453:(e,t,r)=>{r.d(t,{R:()=>S,w:()=>v});var s=r(43697),i=r(15923),o=r(70586),l=r(41103),n=r(22974),a=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,r=this._originStores[a.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,n.d9)(e),a.s3.DEFAULTS)}));for(let r=a.s3.SERVICE;r<a.kk;r++){const s=this._originStores[r];s&&s.forEach(((s,i)=>{e&&e.has(i)||t.set(i,(0,n.d9)(s),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=a.s3.USER){let s=this._originStores[r];if(s||(s=new Map,this._originStores[r]=s),s.set(e,t),!this._values.has(e)||(0,o.j0)(this._propertyOriginMap.get(e))<=r){const s=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),s!==t}return!1}delete(e,t=a.s3.USER){const r=this._originStores[t];if(!r)return;const s=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return s}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],s=r&&r.get(e),i=this._values.get(e);return this._values.set(e,s),this._propertyOriginMap.set(e,t),i!==s}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var p=r(50549),c=r(1153),h=r(52011);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,o.j0)((0,c.vw)(this)),r=t.store,s=new u;t.store=s,(0,l.M)(t,r,s)}read(e,t){(0,p.i)(this,e,t)}getAtOrigin(e,t){const r=y(this),s=(0,a.M9)(t);if("string"==typeof e)return r.get(e,s);const i={};return e.forEach((e=>{i[e]=r.get(e,s)})),i}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return y(this).originOf(e)}revert(e,t){const r=y(this),s=(0,a.M9)(t),i=(0,c.vw)(this);let o;o="string"==typeof e?"*"===e?r.keys(s):[e]:e,o.forEach((e=>{i.invalidate(e),r.revert(e,s),i.commit(e)}))}};return t=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function y(e){return(0,c.vw)(e).store}let f=class extends(d(i.Z)){};f=(0,s._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],f);var m=r(76169);const g=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return _(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,m.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.vw)(this).setAtOrigin(e,t,(0,a.M9)(r))}removeOrigin(e){const t=_(this),r=(0,a.M9)(e),s=t.keys(r);for(const e of s)t.originOf(e)===r&&t.set(e,t.get(e,r),a.s3.USER)}updateOrigin(e,t){const r=_(this),s=(0,a.M9)(t),i=this.get(e);for(let t=s+1;t<a.kk;++t)r.delete(e,t);r.set(e,i,s)}toJSON(e){return this.write({},e)}};return t=(0,s._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function _(e){return(0,c.vw)(e).store}const S=e=>{let t=class extends(g(d(e))){constructor(...e){super(...e)}};return t=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],t),t};let v=class extends(S(i.Z)){};v=(0,s._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],v)},87085:(e,t,r)=>{r.d(t,{Z:()=>S});var s=r(43697),i=(r(66577),r(3172)),o=r(20102),l=r(32448),n=r(10699),a=r(83379),u=r(92604),p=r(95330),c=r(17452),h=r(5600),d=(r(67676),r(80442),r(75215),r(52011)),y=r(68773),f=r(6570),m=r(82971);let g=0,_=class extends(l.Z.EventedMixin((0,n.IG)(a.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},s=await Promise.all([r.e(4547),r.e(8008)]).then(r.bind(r,28008));try{return await s.fromItem(t)}catch(e){const r=t&&t.portalItem,s=r&&r.id||"unset",i=r&&r.portal&&r.portal.url||y.Z.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+s+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,p.D_)(e)||u.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,c.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,s._)([(0,h.Cb)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,s._)([(0,h.Cb)({type:f.Z})],_.prototype,"fullExtent",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,s._)([(0,h.Cb)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,s._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,s._)([(0,h.Cb)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,s._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,s._)([(0,h.Cb)({clonable:!1})],_.prototype,"parent",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,s._)([(0,h.Cb)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,s._)([(0,h.Cb)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,s._)([(0,h.Cb)({type:m.Z})],_.prototype,"spatialReference",void 0),(0,s._)([(0,h.Cb)({type:String})],_.prototype,"title",void 0),(0,s._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,s._)([(0,h.Cb)()],_.prototype,"url",void 0),(0,s._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,s._)([(0,d.j)("esri.layers.Layer")],_);const S=_},24109:(e,t,r)=>{r.r(t),r.d(t,{default:()=>he});var s=r(43697),i=r(3172),o=r(66643),l=r(20102),n=r(22974),a=r(70586),u=r(16453),p=r(95330),c=r(17452),h=r(5600),d=(r(75215),r(71715)),y=r(52011),f=r(30556),m=r(6570),g=r(82971),_=r(87085),S=r(54295),v=r(46486),w=r(17287),b=r(71612),A=r(17017),x=r(38009),E=r(16859),U=r(72965);let C=null;var I=r(92604),O=r(1533);class T{constructor(e,t){this._spriteSource=e,this._maxTextureSize=t,this.devicePixelRatio=1,this._spriteImageFormat="png",this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded","url"===e.type&&e.spriteFormat&&(this._spriteImageFormat=e.spriteFormat),e.pixelRatio&&(this.devicePixelRatio=e.pixelRatio),this.baseURL=e.spriteUrl}get spriteNames(){const e=[];for(const t in this._spritesData)e.push(t);return e.sort(),e}getSpriteInfo(e){return this._spritesData?this._spritesData[e]:null}async load(e){if(this.baseURL){this.loadStatus="loading";try{await this._loadSprites(e),this.loadStatus="loaded"}catch{this.loadStatus="failed"}}else this.loadStatus="failed"}async _loadSprites(e){this._isRetina=this.devicePixelRatio>1.15;const{width:t,height:r,data:s,json:i}=await this._getSpriteData(this._spriteSource,e),o=Object.keys(i);if(!o||0===o.length||!s)return this._spritesData=this.image=null,this.width=this.height=0,null;this._spritesData=i,this.width=t,this.height=r;const n=Math.max(this._maxTextureSize,4096);if(t>n||r>n){const e=`Sprite resource for style ${this.baseURL} is bigger than the maximum allowed of ${n} pixels}`;throw I.Z.getLogger("esri.layers.support.SpriteSource").error(e),new l.Z("SpriteSource",e)}let a;for(let e=0;e<s.length;e+=4)a=s[e+3]/255,s[e]=s[e]*a,s[e+1]=s[e+1]*a,s[e+2]=s[e+2]*a;this.image=s}async _getSpriteData(e,t){if("image"===e.type){let t,r;if(this.devicePixelRatio<1.15){if(!e.spriteSource1x)throw new l.Z("SpriteSource","no image data provided for low resolution sprites!");t=e.spriteSource1x.image,r=e.spriteSource1x.json}else{if(!e.spriteSource2x)throw new l.Z("SpriteSource","no image data provided for high resolution sprites!");t=e.spriteSource2x.image,r=e.spriteSource2x.json}return"width"in t&&"height"in t&&"data"in t&&((0,O.eP)(t.data)||(0,O.KZ)(t.data))?{width:t.width,height:t.height,data:new Uint8Array(t.data),json:r}:{...R(t),json:r}}const r=(0,c.mN)(this.baseURL),s=r.query?"?"+(0,c.B7)(r.query):"",o=this._isRetina?"@2x":"",n=`${r.path}${o}.${this._spriteImageFormat}${s}`,a=`${r.path}${o}.json${s}`,[u,p]=await Promise.all([(0,i.default)(a,t),(0,i.default)(n,{responseType:"image",...t})]);return{...R(p.data),json:u.data}}}function R(e){const t=document.createElement("canvas"),r=t.getContext("2d");t.width=e.width,t.height=e.height,r.drawImage(e,0,0,e.width,e.height);const s=r.getImageData(0,0,e.width,e.height);return{width:e.width,height:e.height,data:new Uint8Array(s.data)}}var L=r(11145),B=r(68773),P=r(45322),M=r(56608),j=r(55415);class D{constructor(e){this.url=e}async fetchTileIndex(){return this._tileIndexPromise||(this._tileIndexPromise=(0,i.default)(this.url).then((e=>e.data.index))),this._tileIndexPromise}async dataKey(e,t){const r=await this.fetchTileIndex();return(0,p.k_)(t),this._getIndexedDataKey(r,e)}_getIndexedDataKey(e,t){const r=[t];if(t.level<0||t.row<0||t.col<0||t.row>>t.level>0||t.col>>t.level>0)return null;let s=t;for(;0!==s.level;)s=new j.Z(s.level-1,s.row>>1,s.col>>1,s.world),r.push(s);let i,o,l=e,n=r.pop();if(1===l)return n;for(;r.length;)if(i=r.pop(),o=(1&i.col)+((1&i.row)<<1),l){if(0===l[o]){n=null;break}if(1===l[o]){n=i;break}n=i,l=l[o]}return n}}class k{constructor(e,t){this._tilemap=e,this._tileIndexUrl=t}async fetchTileIndex(e){return this._tileIndexPromise||(this._tileIndexPromise=(0,i.default)(this._tileIndexUrl,{query:{...e?.query}}).then((e=>e.data.index))),this._tileIndexPromise}dataKey(e,t){const{level:r,row:s,col:i}=e,o=new j.Z(e);return this._tilemap.fetchAvailabilityUpsample(r,s,i,o,t).then((()=>(o.world=e.world,o))).catch((e=>{if((0,p.D_)(e))throw e;return null}))}}const N=new Map;class F{constructor(e,t,r){this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.name=e,this.sourceUrl=t;const s=(0,c.mN)(this.sourceUrl),i=(0,n.d9)(r),o=i.tiles;if(s)for(let e=0;e<o.length;e++){const t=(0,c.mN)(o[e]);t&&((0,c.YP)(t.path)||(t.path=(0,c.v_)(s.path,t.path)),o[e]=(0,c.fl)(t.path,{...s.query,...t.query}))}this.tileServers=o;const l=r.capabilities&&r.capabilities.split(",").map((e=>e.toLowerCase().trim())),a=!0===r?.exportTilesAllowed,u=!0===l?.includes("tilemap"),p=a&&r.hasOwnProperty("maxExportTilesCount")?r.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:a,supportsTileMap:u},exportTiles:a?{maxExportTilesCount:+p}:null},this.tileInfo=(0,P.d)(i.tileInfo,i,null,{ignoreMinMaxLOD:!0});const h=r.tileMap?(0,c.fl)((0,c.v_)(s.path,r.tileMap),s.query):null;u?(this.type="vector-tile",this.tilemap=new k(new M.y({layer:{parsedUrl:s,tileInfo:this.tileInfo,type:"vector-tile",tileServers:this.tileServers}}),h)):h&&(this.tilemap=new D(h)),this.fullExtent=m.Z.fromJSON(r.fullExtent)}destroy(){}async getRefKey(e,t){return this.tilemap?.dataKey(e,t)??e}requestTile(e,t,r,s){return function(e,t,r,s,o){return function(e,t){const r=N.get(e);if(r)return r.then((e=>(0,n.d9)(e)));const s=(0,i.default)(e,{responseType:"array-buffer",...t}).then((({data:t})=>(N.delete(e),t))).catch((t=>{throw N.delete(e),t}));return N.set(e,s),s}(e.replace(/\{z\}/gi,t.toString()).replace(/\{y\}/gi,r.toString()).replace(/\{x\}/gi,s.toString()),o)}(this.tileServers[t%this.tileServers.length],e,t,r,s)}isCompatibleWith(e){const t=this.tileInfo,r=e.tileInfo;if(!t.spatialReference.equals(r.spatialReference))return!1;if(!t.origin.equals(r.origin))return!1;if(Math.round(t.dpi)!==Math.round(r.dpi))return!1;const s=t.lods,i=r.lods,o=Math.min(s.length,i.length);for(let e=0;e<o;e++){const t=s[e],r=i[e];if(t.level!==r.level||Math.round(t.scale)!==Math.round(r.scale))return!1}return!0}}const G=B.Z.defaults&&B.Z.defaults.io.corsEnabledServers;function W(e){if(!e)return;const t=(0,c.P$)(e);G&&!G.includes(t)&&G.push(t)}function Z(...e){let t;for(let r=0;r<e.length;++r)if((0,c.oC)(e[r])){if(t){const s=t.split("://")[0];t=s+":"+e[r].trim()}}else t=(0,c.YP)(e[r])?e[r]:(0,c.v_)(t,e[r]);return(0,c.Qj)(t)}async function $(e,t,r,s,o){let l,n,a;if((0,p.k_)(o),"string"==typeof r){const e=(0,c.Fv)(r);W(e),a=await(0,i.default)(e,{...o,responseType:"json",query:{f:"json",...o?.query}}),a.ssl&&(l&&(l=l.replace(/^http:/i,"https:")),n&&(n=n.replace(/^http:/i,"https:"))),l=e,n=e}else a={data:r},l=r.jsonUrl||null,n=s;const u=a.data;if(q(u))return e.styleUrl=l||null,async function(e,t,r,s){const i=r?(0,c.Yd)(r):(0,c.L)();e.styleBase=i,e.style=t,e.styleUrl&&W(e.styleUrl),t["sprite-format"]&&"webp"===t["sprite-format"].toLowerCase()&&(e.spriteFormat="webp");const o=[];if(t.sources&&t.sources.esri){const r=t.sources.esri;r.url?await $(e,"esri",Z(i,r.url),void 0,s):o.push($(e,"esri",r,i,s))}for(const r of Object.keys(t.sources))"esri"!==r&&"vector"===t.sources[r].type&&(t.sources[r].url?o.push($(e,r,Z(i,t.sources[r].url),void 0,s)):t.sources[r].tiles&&o.push($(e,r,t.sources[r],i,s)));await Promise.all(o)}(e,u,n,o);if(function(e){return!q(e)}(u))return e.sourceUrl?z(e,u,n,!1,t,o):(e.sourceUrl=l||null,z(e,u,n,!0,t,o));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function q(e){return!!e.sources}async function z(e,t,r,s,i,o){const l=r?(0,c.Qj)(r)+"/":(0,c.L)(),n=function(e,t){if(e.hasOwnProperty("tileInfo"))return e;const r={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100}};let s=78271.51696400007,i=295828763.7957775;const o=[],l=e.hasOwnProperty("minzoom")?+e.minzoom:0,n=e.hasOwnProperty("maxzoom")?+e.maxzoom:22;for(let e=0;e<=n;e++)e>=l&&o.push({level:e,scale:i,resolution:s}),s/=2,i/=2;for(const r of e.tiles)W(Z(t,r));return{capabilities:"TilesOnly",initialExtent:r,fullExtent:r,minScale:0,maxScale:0,tiles:e.tiles,tileInfo:{rows:512,cols:512,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:o,spatialReference:{wkid:102100}}}}(t,l),a=new F(i,(0,c.fl)(l,o?.query),n);if(!s&&e.primarySourceName in e.sourceNameToSource){const t=e.sourceNameToSource[e.primarySourceName];if(!t.isCompatibleWith(a))return;null!=a.fullExtent&&(null!=t.fullExtent?t.fullExtent.union(a.fullExtent):t.fullExtent=a.fullExtent.clone()),t.tileInfo.lods.length<a.tileInfo.lods.length&&(t.tileInfo=a.tileInfo)}if(s?(e.sourceBase=l,e.source=t,e.validatedSource=n,e.primarySourceName=i,e.sourceUrl&&W(e.sourceUrl)):W(l),e.sourceNameToSource[i]=a,!e.style){if(null==t.defaultStyles)throw new Error;return"string"==typeof t.defaultStyles?$(e,"",Z(l,t.defaultStyles,"root.json"),void 0,o):$(e,"",t.defaultStyles,Z(l,"root.json"),o)}}var V=r(33516);const K=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,H={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function Q(e){const t=e?.match(K);if(!t)return null;const[,r,s,i]=t;if(!r)return null;let o=null,l=null,n=null;const{devext:a,qaext:u,www:p}=H;if(s)if(o=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:l,portalHostname:n}=a);break;case"qa":({customBaseUrl:l,portalHostname:n}=u);break;default:return null}else({customBaseUrl:l,portalHostname:n}=p);else switch(r.toLowerCase()){case"devext":({customBaseUrl:l,portalHostname:n}=a);break;case"qaext":({customBaseUrl:l,portalHostname:n}=u);break;case"www":({customBaseUrl:l,portalHostname:n}=p);break;default:return null}return{customBaseUrl:l,isPortal:!1,portalHostname:n,urlKey:o}}var J=r(25929);const X=1e-6;function Y(e,t){if(e===t)return!0;if(!e&&null!=t)return!1;if(null!=e&&!t)return!1;if(!e.spatialReference.equals(t.spatialReference)||e.dpi!==t.dpi)return!1;const r=e.origin,s=t.origin;if(Math.abs(r.x-s.x)>=X||Math.abs(r.y-s.y)>=X)return!1;let i,o;e.lods[0].scale>t.lods[0].scale?(i=e,o=t):(o=e,i=t);for(let e=i.lods[0].scale;e>=o.lods[o.lods.length-1].scale-X;e/=2)if(Math.abs(e-o.lods[0].scale)<X)return!0;return!1}function ee(e,t){if(e===t)return e;if(!e&&null!=t)return t;if(null!=e&&!t)return e;const r=e.size[0],s=e.format,i=e.dpi,o={x:e.origin.x,y:e.origin.y},l=e.spatialReference.toJSON(),n=e.lods[0].scale>t.lods[0].scale?e.lods[0]:t.lods[0],a=e.lods[e.lods.length-1].scale<=t.lods[t.lods.length-1].scale?e.lods[e.lods.length-1]:t.lods[t.lods.length-1],u=n.scale,p=n.resolution,c=a.scale,h=[];let d=u,y=p,f=0;for(;d>c;)h.push({level:f,resolution:y,scale:d}),f++,d/=2,y/=2;return new L.Z({size:[r,r],dpi:i,format:s||"pbf",origin:o,lods:h,spatialReference:l})}var te=r(51785),re=r(54738);let se,ie;function oe(e){const t=(0,re.Sh)(e);for(;t.length>1;){const e=le(t.shift());if(e.available)return e}return le(t.shift())}function le(e){switch(e){case re.zO.WEBGL1:return se||(se=function(){const e=new ae,t=pe(re.zO.WEBGL1,e);return(0,a.Wi)(t)||(e.supportsElementIndexUint=null!==t.getExtension("OES_element_index_uint"),e.supportsStandardDerivatives=null!==t.getExtension("OES_standard_derivatives"),e.supportsInstancedArrays=null!==t.getExtension("ANGLE_instanced_arrays"),e.supportsTextureFloat=null!==t.getExtension("OES_texture_float"),e.supportsTextureHalfFloat=null!==t.getExtension("OES_texture_half_float"),e.supportsColorBufferFloat=null!==t.getExtension("WEBGL_color_buffer_float"),e.supportsColorBufferFloatBlend=null!==t.getExtension("EXT_float_blend"),e.supportsColorBufferHalfFloat=null!==t.getExtension("EXT_color_buffer_half_float")),e}()),se;case re.zO.WEBGL2:return ie||(ie=function(){const e=new ue,t=pe(re.zO.WEBGL2,e);return(0,a.Wi)(t)||(e.supportsColorBufferFloat=null!==t.getExtension("EXT_color_buffer_float"),e.supportsColorBufferFloatBlend=null!==t.getExtension("EXT_float_blend"),e.supportsColorBufferHalfFloat=e.supportsColorBufferFloat||null!==t.getExtension("EXT_color_buffer_half_float")),e}()),ie}}class ne{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsElementIndexUint=!1,this.supportsStandardDerivatives=!1,this.supportsInstancedArrays=!1,this.supportsTextureFloat=!1,this.supportsTextureHalfFloat=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1}}class ae extends ne{constructor(){super(...arguments),this.type=re.zO.WEBGL1}}class ue extends ne{constructor(){super(...arguments),this.type=re.zO.WEBGL2,this.supportsElementIndexUint=!0,this.supportsStandardDerivatives=!0,this.supportsInstancedArrays=!0,this.supportsTextureFloat=!0,this.supportsTextureHalfFloat=!0}}function pe(e,t){if(e===re.zO.WEBGL1&&"undefined"==typeof WebGLRenderingContext||e===re.zO.WEBGL2&&"undefined"==typeof WebGL2RenderingContext)return null;const r=document.createElement("canvas");if(!r)return null;let s=(0,re.kr)(r,e,{failIfMajorPerformanceCaveat:!0});if((0,a.Wi)(s)&&(s=(0,re.kr)(r,e),(0,a.pC)(s)&&(t.majorPerformanceCaveat=!0)),(0,a.Wi)(s))return s;if(e===re.zO.WEBGL1){const e=s.getParameter(s.VERSION)?.match(/^WebGL\s+([\d.]*)/);if(e){const r=parseFloat(e[1]);t.available=r>=.94}}else t.available=!0;t.maxTextureSize=s.getParameter(s.MAX_TEXTURE_SIZE),t.supportsVertexShaderSamplers=s.getParameter(s.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const i=s.getShaderPrecisionFormat(s.FRAGMENT_SHADER,s.HIGH_FLOAT);return i&&(t.supportsHighPrecisionFragment=i.precision>0),s}let ce=class extends((0,b.h)((0,U.M)((0,v.Z)((0,w.Y)((0,x.q)((0,E.I)((0,A.N)((0,S.V)((0,u.R)(_.Z)))))))))){constructor(...e){super(...e),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.style=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.type="vector-tile",this.url=null,this.showCollisionBoxes="none",this.path=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){if(this.sourceNameToSource)for(const e of Object.values(this.sourceNameToSource))e?.destroy();this._spriteSourceMap.clear()}async prefetchResources(e){await this.loadSpriteSource(globalThis.devicePixelRatio||1,e)}load(e){const t=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},e).catch(p.r9).then((async()=>{if(!this.portalItem||!this.portalItem.id)return;const t=`${this.portalItem.itemUrl}/resources/styles/root.json`;(await(0,i.default)(t,{...e,query:{f:"json",...this.customParameters,token:this.apiKey}})).data&&this.read({url:t},(0,V.h)(this.portalItem))})).catch(p.r9).then((()=>this._loadStyle(e)));return this.addResolvingPromise(t),Promise.resolve(this)}get attributionDataUrl(){const e=this.currentStyleInfo,t=e&&e.serviceUrl&&(0,c.mN)(e.serviceUrl);if(!t)return null;const r=this._getDefaultAttribution(t.path);return r?(0,c.fl)(r,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const e=this.primarySource;return e?e.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get parsedUrl(){return this.serviceUrl?(0,c.mN)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo&&this.currentStyleInfo.serviceUrl||null}get spatialReference(){return this.tileInfo&&this.tileInfo.spatialReference||null}get styleUrl(){return this.currentStyleInfo&&this.currentStyleInfo.styleUrl||null}writeStyleUrl(e,t){e&&(0,c.oC)(e)&&(e=`https:${e}`);const r=(0,a.Wg)(Q(e));t.styleUrl=(0,J.e)(e,r)}get tileInfo(){const e=[];for(const t in this.sourceNameToSource)e.push(this.sourceNameToSource[t]);let t=this.primarySource?.tileInfo||new L.Z;if(e.length>1)for(let r=0;r<e.length;r++)Y(t,e[r].tileInfo)&&(t=ee(t,e[r].tileInfo));return t}readVersion(e,t){return t.version?parseFloat(t.version):parseFloat(t.currentVersion)}async loadSpriteSource(e=1,t){if(!this._spriteSourceMap.has(e)){const r=oe("2d").maxTextureSize,s=this.currentStyleInfo?.spriteUrl?(0,c.fl)(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,i=new T({type:"url",spriteUrl:s,pixelRatio:e,spriteFormat:this.currentStyleInfo.spriteFormat},r);await i.load(t),this._spriteSourceMap.set(e,i)}return this._spriteSourceMap.get(e)}async setSpriteSource(e,t){if(!e)return null;const r=oe("2d").maxTextureSize,s=e.spriteUrl,i=e.spriteUrl?(0,c.fl)(s,{...this.customParameters,token:this.apiKey}):null;if(!i&&"url"===e.type)return null;const o=new T(e,r);try{await o.load(t);const r=e.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(r,o),i&&(this.currentStyleInfo.spriteUrl=i),this.emit("spriteSource-change",{spriteSource:o}),o}catch(e){(0,p.r9)(e)}return null}async loadStyle(e,t){const r=e||this.style||this.url;return this._loadingTask&&"string"==typeof r&&this.url===r||(this._loadingTask?.abort(),this._loadingTask=(0,o.vr)((e=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(r,{signal:e}))),t)),this._loadingTask.promise}getStyleLayerId(e){return this.styleRepository.getStyleLayerId(e)}getStyleLayerIndex(e){return this.styleRepository.getStyleLayerIndex(e)}getPaintProperties(e){return(0,n.d9)(this.styleRepository.getPaintProperties(e))}setPaintProperties(e,t){const r=this.styleRepository.isPainterDataDriven(e);this.styleRepository.setPaintProperties(e,t);const s=this.styleRepository.isPainterDataDriven(e);this.emit("paint-change",{layer:e,paint:t,isDataDriven:r||s})}getStyleLayer(e){return(0,n.d9)(this.styleRepository.getStyleLayer(e))}setStyleLayer(e,t){this.styleRepository.setStyleLayer(e,t),this.emit("style-layer-change",{layer:e,index:t})}deleteStyleLayer(e){this.styleRepository.deleteStyleLayer(e),this.emit("delete-style-layer",{layer:e})}getLayoutProperties(e){return(0,n.d9)(this.styleRepository.getLayoutProperties(e))}setLayoutProperties(e,t){this.styleRepository.setLayoutProperties(e,t),this.emit("layout-change",{layer:e,layout:t})}setStyleLayerVisibility(e,t){this.styleRepository.setStyleLayerVisibility(e,t),this.emit("style-layer-visibility-change",{layer:e,visibility:t})}getStyleLayerVisibility(e){return this.styleRepository.getStyleLayerVisibility(e)}write(e,t){return t?.origin&&!this.styleUrl?(t.messages&&t.messages.push(new l.Z("vectortilelayer:unsupported",`VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`,{layer:this})),null):super.write(e,t)}getTileUrl(e,t,r){return null}async _getSourceAndStyle(e,t){if(!e)throw new Error("invalid style!");const r=await async function(e,t){const r={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[s,i]="string"==typeof e?[e,null]:[null,e.jsonUrl];await $(r,"esri",e,i,t);const o={layerDefinition:r.validatedSource,url:s,serviceUrl:r.sourceUrl,style:r.style,styleUrl:r.styleUrl,spriteUrl:r.style.sprite&&Z(r.styleBase,r.style.sprite),spriteFormat:r.spriteFormat,glyphsUrl:r.style.glyphs&&Z(r.styleBase,r.style.glyphs),sourceNameToSource:r.sourceNameToSource,primarySourceName:r.primarySourceName};return W(o.spriteUrl),W(o.glyphsUrl),o}(e,{...t,query:{...this.customParameters,token:this.apiKey}});"webp"===r.spriteFormat&&(await function(e){if(C)return C;const t={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return C=new Promise((e=>{const r=new Image;r.onload=()=>{r.onload=r.onerror=null,e(r.width>0&&r.height>0)},r.onerror=()=>{r.onload=r.onerror=null,e(!1)},r.src="data:image/webp;base64,"+t.lossy})),C}()||(r.spriteFormat="png")),this._set("currentStyleInfo",{...r}),"string"==typeof e?(this.url=e,this.style=null):(this.url=null,this.style=e),this._set("sourceNameToSource",r.sourceNameToSource),this._set("primarySource",r.sourceNameToSource[r.primarySourceName]),this._set("styleRepository",new te.Z(r.style)),this.read(r.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(e){const t=e.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^\/]+)?\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/vectortileserver/i),r=["OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2"];if(!t)return;const s=t[2]&&t[2].toLowerCase();if(!s)return;const i=t[1]||"";for(const e of r)if(e.toLowerCase().includes(s))return(0,c.Fv)(`//static.arcgis.com/attribution/Vector${i}/${e}`)}async _loadStyle(e){return this._loadingTask?.promise??this.loadStyle(null,e)}};(0,s._)([(0,h.Cb)({readOnly:!0})],ce.prototype,"attributionDataUrl",null),(0,s._)([(0,h.Cb)({type:["show","hide"]})],ce.prototype,"listMode",void 0),(0,s._)([(0,h.Cb)({json:{read:!0,write:!0}})],ce.prototype,"blendMode",void 0),(0,s._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],ce.prototype,"capabilities",null),(0,s._)([(0,h.Cb)({readOnly:!0})],ce.prototype,"currentStyleInfo",void 0),(0,s._)([(0,h.Cb)({json:{read:!1},readOnly:!0,type:m.Z})],ce.prototype,"fullExtent",null),(0,s._)([(0,h.Cb)()],ce.prototype,"style",void 0),(0,s._)([(0,h.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],ce.prototype,"isReference",void 0),(0,s._)([(0,h.Cb)({type:["VectorTileLayer"]})],ce.prototype,"operationalLayerType",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],ce.prototype,"parsedUrl",null),(0,s._)([(0,h.Cb)({readOnly:!0})],ce.prototype,"serviceUrl",null),(0,s._)([(0,h.Cb)({type:g.Z,readOnly:!0})],ce.prototype,"spatialReference",null),(0,s._)([(0,h.Cb)({readOnly:!0})],ce.prototype,"styleRepository",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],ce.prototype,"sourceNameToSource",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],ce.prototype,"primarySource",void 0),(0,s._)([(0,h.Cb)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],ce.prototype,"styleUrl",null),(0,s._)([(0,f.c)(["portal-item","web-document"],"styleUrl")],ce.prototype,"writeStyleUrl",null),(0,s._)([(0,h.Cb)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:L.Z})],ce.prototype,"tileInfo",null),(0,s._)([(0,h.Cb)({json:{read:!1},readOnly:!0,value:"vector-tile"})],ce.prototype,"type",void 0),(0,s._)([(0,h.Cb)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}})],ce.prototype,"url",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],ce.prototype,"version",void 0),(0,s._)([(0,d.r)("version",["version","currentVersion"])],ce.prototype,"readVersion",null),(0,s._)([(0,h.Cb)({type:String})],ce.prototype,"showCollisionBoxes",void 0),(0,s._)([(0,h.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],ce.prototype,"path",void 0),ce=(0,s._)([(0,y.j)("esri.layers.VectorTileLayer")],ce);const he=ce},54295:(e,t,r)=>{r.d(t,{V:()=>l});var s=r(43697),i=r(5600),o=(r(67676),r(80442),r(75215),r(52011));const l=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s._)([(0,i.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,s._)([(0,o.j)("esri.layers.mixins.APIKeyMixin")],t),t}},46486:(e,t,r)=>{r.d(t,{Z:()=>p});var s=r(43697),i=(r(66577),r(5600)),o=(r(67676),r(80442),r(75215),r(71715)),l=r(52011),n=r(45322),a=r(56608),u=r(82971);const p=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t){return t.capabilities&&t.capabilities.includes("Tilemap")?new a.y({layer:this}):null}};return(0,s._)([(0,i.Cb)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,s._)([(0,i.Cb)()],t.prototype,"minScale",void 0),(0,s._)([(0,o.r)("service","minScale")],t.prototype,"readMinScale",null),(0,s._)([(0,i.Cb)()],t.prototype,"maxScale",void 0),(0,s._)([(0,o.r)("service","maxScale")],t.prototype,"readMaxScale",null),(0,s._)([(0,i.Cb)({type:u.Z})],t.prototype,"spatialReference",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],t.prototype,"supportsBlankTile",null),(0,s._)([(0,i.Cb)(n.h)],t.prototype,"tileInfo",void 0),(0,s._)([(0,i.Cb)()],t.prototype,"tilemapCache",void 0),(0,s._)([(0,o.r)("service","tilemapCache",["capabilities"])],t.prototype,"readTilemapCache",null),(0,s._)([(0,i.Cb)()],t.prototype,"version",void 0),t=(0,s._)([(0,l.j)("esri.layers.mixins.ArcGISCachedService")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>u});var s=r(43697),i=r(92604),o=r(70586),l=r(5600),n=(r(67676),r(80442),r(75215),r(52011)),a=r(66677);const u=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.Qc)(this.url);if((0,o.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,i.Z.getLogger(this.declaredClass)))}};return(0,s._)([(0,l.Cb)()],t.prototype,"title",null),(0,s._)([(0,l.Cb)({type:String})],t.prototype,"url",null),t=(0,s._)([(0,n.j)("esri.layers.mixins.ArcGISService")],t),t}},17017:(e,t,r)=>{r.d(t,{N:()=>l});var s=r(43697),i=r(5600),o=(r(67676),r(80442),r(75215),r(52011));const l=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,s._)([(0,i.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,s._)([(0,o.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},33516:(e,t,r)=>{r.d(t,{Y:()=>l,h:()=>o});var s=r(17452),i=r(65587);function o(e){return{origin:"portal-item",url:(0,s.mN)(e.itemUrl),portal:e.portal||i.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function l(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,s.mN)(e.itemUrl):null,portal:e.portal||i.Z.getDefault(),portalItem:e}}},55415:(e,t,r)=>{r.d(t,{Z:()=>i});var s=r(71143);class i{constructor(e,t,r,s){this.set(e,t,r,s)}static getId(e,t,r,s){return"object"==typeof e?`${e.level}/${e.row}/${e.col}/${e.world}`:`${e}/${t}/${r}/${s}`}get key(){return this}get id(){return this.toString()}set id(e){this.set(e)}get hash(){const e=4095&this.row,t=4095&this.col,r=63&this.level;return(3&this.world)<<30|t<<22|e<<8|r}acquire(e,t,r,s){this.set(e,t,r,s)}contains(e){const t=e.level-this.level;return t>=0&&this.row===e.row>>t&&this.col===e.col>>t&&this.world===e.world}equals(e){return this.level===e.level&&this.row===e.row&&this.col===e.col&&this.world===e.world}clone(){return new i(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(e,t,r,s){if(null==e)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof e)this.level=e.level||0,this.row=e.row||0,this.col=e.col||0,this.world=e.world||0;else if("string"==typeof e){const[t,r,s,i]=e.split("/");this.level=parseFloat(t),this.row=parseFloat(r),this.col=parseFloat(s),this.world=parseFloat(i)}else this.level=+e,this.row=+t,this.col=+r,this.world=+s||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new i(this.level-1,this.row>>1,this.col>>1,this.world)}getChildKeys(){const e=this.level+1,t=this.row<<1,r=this.col<<1,s=this.world;return[new i(e,t,r,s),new i(e,t,r+1,s),new i(e,t+1,r,s),new i(e,t+1,r+1,s)]}compareRowMajor(e){return this.row<e.row?-1:this.row>e.row?1:this.col<e.col?-1:this.col>e.col?1:0}}i.pool=new s.Z(i,null,null,25,50)},54738:(e,t,r)=>{r.d(t,{Sh:()=>l,kr:()=>n,zO:()=>s});var s,i,o=r(80442);function l(e){const t=(0,o.Z)("esri-force-webgl");if(t===s.WEBGL1||t===s.WEBGL2)return[t];switch(e){case"2d":return(0,o.Z)("mac")&&(0,o.Z)("chrome")?[s.WEBGL1,s.WEBGL2]:[s.WEBGL2,s.WEBGL1];case"3d":return[s.WEBGL2,s.WEBGL1]}}function n(e,t,r={}){const i=t===s.WEBGL1?["webgl","experimental-webgl","webkit-3d","moz-webgl"]:["webgl2"];let o=null;for(const t of i){try{o=e.getContext(t,r)}catch(e){}if(o)break}return o}(i=s||(s={}))[i.WEBGL1=1]="WEBGL1",i[i.WEBGL2=2]="WEBGL2"}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9296],{10699:(t,e,r)=>{r.d(e,{IG:()=>n});var i=r(43697),s=r(52011);let o=0;const n=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,i._)([(0,s.j)("esri.core.Identifiable")],e),e};let a=class extends(n(class{})){};a=(0,i._)([(0,s.j)("esri.core.Identifiable")],a)},16453:(t,e,r)=>{r.d(e,{R:()=>b,w:()=>_});var i=r(43697),s=r(15923),o=r(70586),n=r(41103),a=r(22974),l=r(31263);class p{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new p,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((t,r)=>{e.set(r,(0,a.d9)(t),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{t&&t.has(s)||e.set(s,(0,a.d9)(i),r)}))}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=l.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(t,e),!this._values.has(t)||(0,o.j0)(this._propertyOriginMap.get(t))<=r){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),i!==e}return!1}delete(t,e=l.s3.USER){const r=this._originStores[e];if(!r)return;const i=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return i}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],i=r&&r.get(t),s=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),s!==i}originOf(t){return this._propertyOriginMap.get(t)||l.s3.DEFAULTS}forEach(t){this._values.forEach(t)}}var u=r(50549),d=r(1153),h=r(52011);const c=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,o.j0)((0,d.vw)(this)),r=e.store,i=new p;e.store=i,(0,n.M)(e,r,i)}read(t,e){(0,u.i)(this,t,e)}getAtOrigin(t,e){const r=y(this),i=(0,l.M9)(e);if("string"==typeof t)return r.get(t,i);const s={};return t.forEach((t=>{s[t]=r.get(t,i)})),s}originOf(t){return(0,l.x3)(this.originIdOf(t))}originIdOf(t){return y(this).originOf(t)}revert(t,e){const r=y(this),i=(0,l.M9)(e),s=(0,d.vw)(this);let o;o="string"==typeof t?"*"===t?r.keys(i):[t]:t,o.forEach((t=>{s.invalidate(t),r.revert(t,i),s.commit(t)}))}};return e=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function y(t){return(0,d.vw)(t).store}let g=class extends(c(s.Z)){};g=(0,i._)([(0,h.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],g);var f=r(76169);const v=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return m(this).delete(t,(0,l.M9)(e))}write(t={},e){return(0,f.c)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,d.vw)(this).setAtOrigin(t,e,(0,l.M9)(r))}removeOrigin(t){const e=m(this),r=(0,l.M9)(t),i=e.keys(r);for(const t of i)e.originOf(t)===r&&e.set(t,e.get(t,r),l.s3.USER)}updateOrigin(t,e){const r=m(this),i=(0,l.M9)(e),s=this.get(t);for(let e=i+1;e<l.kk;++e)r.delete(t,e);r.set(t,s,i)}toJSON(t){return this.write({},t)}};return e=(0,i._)([(0,h.j)("esri.core.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function m(t){return(0,d.vw)(t).store}const b=t=>{let e=class extends(v(c(t))){constructor(...t){super(...t)}};return e=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],e),e};let _=class extends(b(s.Z)){};_=(0,i._)([(0,h.j)("esri.core.MultiOriginJSONSupport")],_)},87085:(t,e,r)=>{r.d(e,{Z:()=>b});var i=r(43697),s=(r(66577),r(3172)),o=r(20102),n=r(32448),a=r(10699),l=r(83379),p=r(92604),u=r(95330),d=r(17452),h=r(5600),c=(r(67676),r(80442),r(75215),r(52011)),y=r(68773),g=r(6570),f=r(82971);let v=0,m=class extends(n.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},i=await Promise.all([r.e(4547),r.e(8008)]).then(r.bind(r,28008));try{return await i.fromItem(e)}catch(t){const r=e&&e.portalItem,i=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||y.Z.portalUrl;throw p.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,u.D_)(t)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){if(this.parent){const t=this,e=this.parent;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"baseLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const t=this.url;return t?(0,d.mN)(t):null}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,s.default)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,h.Cb)({type:String})],m.prototype,"attributionDataUrl",void 0),(0,i._)([(0,h.Cb)({type:g.Z})],m.prototype,"fullExtent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],m.prototype,"hasAttributionData",null),(0,i._)([(0,h.Cb)({type:String,clonable:!1})],m.prototype,"id",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],m.prototype,"legendEnabled",void 0),(0,i._)([(0,h.Cb)({type:["show","hide","hide-children"]})],m.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],m.prototype,"opacity",void 0),(0,i._)([(0,h.Cb)({clonable:!1})],m.prototype,"parent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],m.prototype,"parsedUrl",null),(0,i._)([(0,h.Cb)({type:Boolean})],m.prototype,"popupEnabled",void 0),(0,i._)([(0,h.Cb)({type:Boolean})],m.prototype,"attributionVisible",void 0),(0,i._)([(0,h.Cb)({type:f.Z})],m.prototype,"spatialReference",void 0),(0,i._)([(0,h.Cb)({type:String})],m.prototype,"title",void 0),(0,i._)([(0,h.Cb)({readOnly:!0,json:{read:!1}})],m.prototype,"type",void 0),(0,i._)([(0,h.Cb)()],m.prototype,"url",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],m.prototype,"visible",void 0),m=(0,i._)([(0,c.j)("esri.layers.Layer")],m);const b=m},39296:(t,e,r)=>{r.r(e),r.d(e,{default:()=>h});var i=r(43697),s=r(20102),o=r(16453),n=r(1654),a=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),p=r(87085),u=r(16859);let d=class extends((0,u.I)((0,o.R)(p.Z))){constructor(t){super(t),this.resourceInfo=null,this.type="unsupported"}initialize(){this.addResolvingPromise(new Promise(((t,e)=>{(0,n.Os)((()=>{const t=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let r="Unsupported layer type";t&&(r+=" "+t),e(new s.Z("layer:unsupported-layer-type",r,{layerType:t}))}))})))}read(t,e){const r={resourceInfo:t};null!=t.id&&(r.id=t.id),null!=t.title&&(r.title=t.title),super.read(r,e)}write(t){return Object.assign(t||{},this.resourceInfo,{id:this.id})}};(0,i._)([(0,a.Cb)({readOnly:!0})],d.prototype,"resourceInfo",void 0),(0,i._)([(0,a.Cb)({type:["show","hide"]})],d.prototype,"listMode",void 0),(0,i._)([(0,a.Cb)({json:{read:!1},readOnly:!0,value:"unsupported"})],d.prototype,"type",void 0),d=(0,i._)([(0,l.j)("esri.layers.UnsupportedLayer")],d);const h=d},16859:(t,e,r)=>{r.d(e,{I:()=>b});var i=r(43697),s=r(40330),o=r(3172),n=r(66643),a=r(20102),l=r(92604),p=r(70586),u=r(95330),d=r(17452),h=r(5600),c=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),g=r(30556),f=r(65587),v=r(15235),m=r(86082);const b=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){this.portalItem?.destroy(),this.portalItem=null}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,r){if(e.itemId)return new v.default({id:e.itemId,portal:r&&r.portal})}writePortalItem(t,e){t&&t.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem&&this.portalItem.id)try{const i=await r.e(8062).then(r.bind(r,18062));return(0,u.k_)(e),await i.load({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap},e)}catch(t){throw(0,u.D_)(t)||l.Z.getLogger(this.declaredClass).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch((t=>((0,u.r9)(t),!0))))}async _fetchUserHasEditingPrivileges(t){const e=this.url?s.id?.findCredential(this.url):null;if(!e)return!0;const r=_.credential===e?_.user:await this._fetchEditingUser(t);return _.credential=e,_.user=r,(0,p.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const r=s.id.findServerInfo(this.url);if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,a=f.Z.getDefault();if(a&&a.loaded&&(0,d.Fv)(a.restUrl)===(0,d.Fv)(i))return a.user;const l=`${i}/community/self`,u=(0,p.pC)(t)?t.signal:null,h=await(0,n.q6)((0,o.default)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return h.ok?m.default.fromJSON(h.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const r=e&&e.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||f.Z.getDefault());return r&&i&&!(0,d.tm)(i.restUrl,r.restUrl)?(e.messages&&e.messages.push(new a.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,i._)([(0,h.Cb)({type:v.default})],e.prototype,"portalItem",null),(0,i._)([(0,c.r)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,i._)([(0,g.c)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,i._)([(0,h.Cb)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),e=(0,i._)([(0,y.j)("esri.layers.mixins.PortalLayer")],e),e},_={credential:null,user:null}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[734],{10699:(e,t,r)=>{r.d(t,{IG:()=>n});var i=r(43697),o=r(52011);let s=0;const n=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return t=(0,i._)([(0,o.j)("esri.core.Identifiable")],t),t};let a=class extends(n(class{})){};a=(0,i._)([(0,o.j)("esri.core.Identifiable")],a)},16453:(e,t,r)=>{r.d(t,{R:()=>b,w:()=>S});var i=r(43697),o=r(15923),s=r(70586),n=r(41103),a=r(22974),l=r(31263);class p{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new p,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,a.d9)(e),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,o)=>{e&&e.has(o)||t.set(o,(0,a.d9)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=l.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||(0,s.j0)(this._propertyOriginMap.get(e))<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=l.s3.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r&&r.get(e),o=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),o!==i}originOf(e){return this._propertyOriginMap.get(e)||l.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var c=r(50549),u=r(1153),d=r(52011);const y=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,s.j0)((0,u.vw)(this)),r=t.store,i=new p;t.store=i,(0,n.M)(t,r,i)}read(e,t){(0,c.i)(this,e,t)}getAtOrigin(e,t){const r=h(this),i=(0,l.M9)(t);if("string"==typeof e)return r.get(e,i);const o={};return e.forEach((e=>{o[e]=r.get(e,i)})),o}originOf(e){return(0,l.x3)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),i=(0,l.M9)(t),o=(0,u.vw)(this);let s;s="string"==typeof e?"*"===e?r.keys(i):[e]:e,s.forEach((e=>{o.invalidate(e),r.revert(e,i),o.commit(e)}))}};return t=(0,i._)([(0,d.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,u.vw)(e).store}let m=class extends(y(o.Z)){};m=(0,i._)([(0,d.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],m);var g=r(76169);const f=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,l.M9)(t))}write(e={},t){return(0,g.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,u.vw)(this).setAtOrigin(e,t,(0,l.M9)(r))}removeOrigin(e){const t=v(this),r=(0,l.M9)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),l.s3.USER)}updateOrigin(e,t){const r=v(this),i=(0,l.M9)(t),o=this.get(e);for(let t=i+1;t<l.kk;++t)r.delete(e,t);r.set(e,o,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,d.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,u.vw)(e).store}const b=e=>{let t=class extends(f(y(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,d.j)("esri.core.MultiOriginJSONSupport")],t),t};let S=class extends(b(o.Z)){};S=(0,i._)([(0,d.j)("esri.core.MultiOriginJSONSupport")],S)},28659:(e,t,r)=>{r.d(t,{B:()=>m});var i=r(81153),o=r(17452),s=r(41123),n=r(7628),a=r(31263),l=r(5600);function p(e){return c[function(e){return e instanceof Blob?e.type:function(e){const t=(0,o.Ml)(e);return y[t]||u}(e.url)}(e)]||d}const c={},u="text/plain",d=c[u],y={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in y)c[y[e]]=e;var h=r(25929);function m(e){const t=e?.origins??[void 0];return(r,s)=>{const c=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const s=(0,n.VZ)(t,r);return{type:String,read:(e,t,r)=>{const i=(0,h.r)(e,t,r);return s.type===String?i:"function"==typeof s.type?new s.type({url:i}):void 0},write:{writer(t,n,l,c){if(!c||!c.resources)return"string"==typeof t?void(n[l]=(0,h.t)(t,c)):void(n[l]=t.write({},c));const u=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),d=(0,h.t)(u,{...c,verifyItemRelativeUrls:c&&c.verifyItemRelativeUrls?{writtenUrls:c.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},h.M.NO),y=s.type!==String&&(!(0,i.l)(this)||c&&c.origin&&this.originIdOf(r)>(0,a.M9)(c.origin)),m={object:this,propertyName:r,value:t,targetUrl:d,dest:n,targetPropertyName:l,context:c,params:e};c&&c.portalItem&&d&&!(0,o.YP)(d)?y?function(e){const{context:t,targetUrl:r,params:i,value:s,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),c=v(s,r,t),u=p(c),d=(0,o.Ml)(l.path),y=i?.compress??!1;u===d?(t.resources&&f({...e,resource:l,content:c,compress:y,updates:t.resources.toUpdate}),n[a]=r):g(e)}(m):function({context:e,targetUrl:t,dest:r,targetPropertyName:i}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[i]=t)}(m):c&&c.portalItem&&(null==d||null!=(0,h.i)(d)||(0,o.jc)(d)||y)?g(m):n[l]=d}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=h.a;return{read:e,write:t}}}}(e,r,s);for(const e of t){const t=(0,l.CJ)(r,e,s);for(const e in c)t[e]=c[e]}}}function g(e){const{targetUrl:t,params:i,value:n,context:a,dest:l,targetPropertyName:c}=e;if(!a.portalItem)return;const u=(0,h.p)(t),d=u?.filename??(0,s.D)(),y=i?.prefix??u?.prefix,m=v(n,t,a),g=(0,o.v_)(y,d),b=`${g}.${p(m)}`,S=a.portalItem.resourceFromPath(b);(0,o.jc)(t)&&a.resources&&a.resources.pendingOperations.push(async function(e){const t=(await Promise.resolve().then(r.bind(r,3172))).default,{data:i}=await t(e,{responseType:"blob"});return i}(t).then((e=>{S.path=`${g}.${p(e)}`,l[c]=S.itemRelativeUrl})).catch((()=>{})));const w=i?.compress??!1;a.resources&&f({...e,resource:S,content:m,compress:w,updates:a.resources.toAdd}),l[c]=S.itemRelativeUrl}function f({object:e,propertyName:t,updates:r,resource:i,content:o,compress:s}){r.push({resource:i,content:o,compress:s,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function v(e,t,r){return"string"==typeof e?{url:t}:new Blob([JSON.stringify(e.toJSON(r))],{type:"application/json"})}},79235:(e,t,r)=>{r.d(t,{Z:()=>b});var i,o=r(43697),s=r(67676),n=r(35454),a=r(96674),l=r(67900),p=r(20941),c=r(5600),u=(r(80442),r(75215),r(71715)),d=r(52011),y=r(30556);const h=(0,n.w)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,s.e$)(m,"orthometric");const g=(0,n.w)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=i=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new p.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return g.read(e)||(r&&r.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||g.read(e)||(r&&r.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new i({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new p.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,o._)([(0,c.Cb)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,o._)([(0,y.c)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,o._)([(0,u.r)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,o._)([(0,c.Cb)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:g.jsonValues,write:g.write}}}})],f.prototype,"heightUnit",void 0),(0,o._)([(0,u.r)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,o._)([(0,u.r)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,o._)([(0,c.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,o._)([(0,u.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=i=(0,o._)([(0,d.j)("esri.geometry.HeightModelInfo")],f);const b=f},9310:(e,t,r)=>{r.r(t),r.d(t,{default:()=>F});var i,o=r(43697),s=r(20102),n=r(61247),a=r(70586),l=r(16453),p=r(95330),c=r(17445),u=r(5600),d=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),h=r(28659),m=r(87085),g=r(54295),f=r(17287),v=r(38009),b=r(16859),S=r(72965),w=r(32271),_=r(21506),x=r(51161),I=r(3172),C=r(46791),M=r(96674),O=r(17452),L=(r(66577),r(22974)),j=r(20941),T=r(30556),R=r(44547),N=r(38913);let E=i=class extends M.wq{constructor(e){super(e),this.geometry=null,this.type="clip"}writeGeometry(e,t,r,i){if(i.layer&&i.layer.spatialReference&&!i.layer.spatialReference.equals(this.geometry.spatialReference)){if(!(0,R.Up)(e.spatialReference,i.layer.spatialReference))return void(i&&i.messages&&i.messages.push(new j.Z("scenemodification:unsupported","Scene modifications with incompatible spatial references are not supported",{modification:this,spatialReference:i.layer.spatialReference,context:i})));const o=new N.Z;(0,R.Wt)(e,o,i.layer.spatialReference),t[r]=o.toJSON(i)}else t[r]=e.toJSON(i);delete t[r].spatialReference}clone(){return new i({geometry:(0,L.d9)(this.geometry),type:this.type})}};(0,o._)([(0,u.Cb)({type:N.Z}),(0,h.B)()],E.prototype,"geometry",void 0),(0,o._)([(0,T.c)(["web-scene","portal-item"],"geometry")],E.prototype,"writeGeometry",null),(0,o._)([(0,u.Cb)({type:["clip","mask","replace"],nonNullable:!0}),(0,h.B)()],E.prototype,"type",void 0),E=i=(0,o._)([(0,y.j)("esri.layers.support.SceneModification")],E);const U=E;var A;let G=A=class extends((0,M.eC)(C.Z.ofType(U))){constructor(e){super(e),this.url=null}clone(){return new A({url:this.url,items:this.items.map((e=>e.clone()))})}toJSON(e){return this.toArray().map((t=>t.toJSON(e))).filter((e=>!!e.geometry))}static fromJSON(e,t){const r=new A;for(const i of e)r.add(U.fromJSON(i,t));return r}static async fromUrl(e,t,r){const i={url:(0,O.mN)(e),origin:"service"},o=await(0,I.default)(e,{responseType:"json",signal:(0,a.U2)(r,"signal")}),s=t.toJSON(),n=[];for(const e of o.data)n.push(U.fromJSON({...e,geometry:{...e.geometry,spatialReference:s}},i));return new A({url:e,items:n})}};(0,o._)([(0,u.Cb)({type:String})],G.prototype,"url",void 0),G=A=(0,o._)([(0,y.j)("esri.layers.support.SceneModifications")],G);const k=G;var D=r(25929);let Z=class extends((0,w.Vt)((0,f.Y)((0,v.q)((0,b.I)((0,S.M)((0,l.R)((0,g.V)(m.Z)))))))){constructor(...e){super(...e),this._handles=new n.Z,this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this._modificationsSource=null,this.elevationInfo=null,this.path=null}destroy(){this._handles.destroy()}initialize(){this._handles.add((0,c.on)((()=>this.modifications),"after-changes",(()=>this.modifications=this.modifications),c.Z_))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,r){this._modificationsSource={url:(0,D.f)(e,r),context:r}}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=(0,a.U2)(e,"signal");try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,p.r9)(e)}if(await this._fetchService(t),(0,a.pC)(this._modificationsSource)){const t=await k.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(!(0,a.Wi)(this._modificationsSource))return this.load().then((()=>{}),(()=>{}))}async saveAs(e,t){return this._debouncedSaveOperations(w.xp.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(w.xp.SAVE,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new s.Z("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new s.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new s.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}};(0,o._)([(0,u.Cb)({type:String,readOnly:!0})],Z.prototype,"geometryType",void 0),(0,o._)([(0,u.Cb)({type:["show","hide"]})],Z.prototype,"listMode",void 0),(0,o._)([(0,u.Cb)({type:["IntegratedMeshLayer"]})],Z.prototype,"operationalLayerType",void 0),(0,o._)([(0,u.Cb)({json:{read:!1},readOnly:!0})],Z.prototype,"type",void 0),(0,o._)([(0,u.Cb)({type:x.U4,readOnly:!0})],Z.prototype,"nodePages",void 0),(0,o._)([(0,u.Cb)({type:[x.QI],readOnly:!0})],Z.prototype,"materialDefinitions",void 0),(0,o._)([(0,u.Cb)({type:[x.Yh],readOnly:!0})],Z.prototype,"textureSetDefinitions",void 0),(0,o._)([(0,u.Cb)({type:[x.H3],readOnly:!0})],Z.prototype,"geometryDefinitions",void 0),(0,o._)([(0,u.Cb)({readOnly:!0})],Z.prototype,"serviceUpdateTimeStamp",void 0),(0,o._)([(0,u.Cb)({type:k}),(0,h.B)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],Z.prototype,"modifications",void 0),(0,o._)([(0,d.r)(["web-scene","portal-item"],"modifications")],Z.prototype,"readModifications",null),(0,o._)([(0,u.Cb)(_.PV)],Z.prototype,"elevationInfo",void 0),(0,o._)([(0,u.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],Z.prototype,"path",void 0),Z=(0,o._)([(0,y.j)("esri.layers.IntegratedMeshLayer")],Z);const F=Z},87085:(e,t,r)=>{r.d(t,{Z:()=>b});var i=r(43697),o=(r(66577),r(3172)),s=r(20102),n=r(32448),a=r(10699),l=r(83379),p=r(92604),c=r(95330),u=r(17452),d=r(5600),y=(r(67676),r(80442),r(75215),r(52011)),h=r(68773),m=r(6570),g=r(82971);let f=0,v=class extends(n.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.Z(-180,-90,180,90,g.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},i=await Promise.all([r.e(4547),r.e(8008)]).then(r.bind(r,28008));try{return await i.fromItem(t)}catch(e){const r=t&&t.portalItem,i=r&&r.id||"unset",o=r&&r.portal&&r.portal.url||h.Z.portalUrl;throw p.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,c.D_)(e)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,u.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.Cb)({type:m.Z})],v.prototype,"fullExtent",void 0),(0,i._)([(0,d.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,d.Cb)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,d.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,d.Cb)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,d.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,d.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,d.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,d.Cb)({type:g.Z})],v.prototype,"spatialReference",void 0),(0,i._)([(0,d.Cb)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,d.Cb)()],v.prototype,"url",void 0),(0,i._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,y.j)("esri.layers.Layer")],v);const b=v},38009:(e,t,r)=>{r.d(t,{q:()=>y});var i=r(43697),o=r(20102),s=r(17452),n=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(30556),p=r(50549),c=r(76169);const u={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0,LineOfSightLayer:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var d=r(21506);const y=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,c.d)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r,i){!e||i&&"tables"===i.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,p.$)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(t?.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,r=u[e];let i=r&&r[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(i=!1),!i)return t.messages?.push(new o.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof o.Z&&"web-document-write:property-required"===e.name)).length;return(0,s.jc)(r?.url)?(t?.messages?.push(new o.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:r}beforeSave(){}};return(0,i._)([(0,n.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i._)([(0,n.Cb)(d.rT)],t.prototype,"listMode",void 0),(0,i._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,i._)([(0,n.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,i._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i._)([(0,n.Cb)(d.Oh)],t.prototype,"opacity",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i._)([(0,l.c)([void 0,"web-scene"],"title")],t.prototype,"writeTitle",null),(0,i._)([(0,n.Cb)({type:Boolean,json:{name:"visibility"}})],t.prototype,"visible",void 0),t=(0,i._)([(0,a.j)("esri.layers.mixins.OperationalLayer")],t),t}},72965:(e,t,r)=>{r.d(t,{M:()=>n});var i=r(43697),o=r(5600),s=(r(67676),r(80442),r(75215),r(52011));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,i._)([(0,o.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,i._)([(0,o.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,i._)([(0,o.Cb)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,i._)([(0,s.j)("esri.layers.mixins.ScaleRangeLayer")],t),t}},51161:(e,t,r)=>{r.d(t,{H3:()=>f,QI:()=>u,U4:()=>l,Yh:()=>y});var i=r(43697),o=r(96674),s=r(5600),n=(r(67676),r(80442),r(75215),r(36030)),a=r(52011);let l=class extends o.wq{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,i._)([(0,s.Cb)({type:Number})],l.prototype,"nodesPerPage",void 0),(0,i._)([(0,s.Cb)({type:Number})],l.prototype,"rootIndex",void 0),(0,i._)([(0,s.Cb)({type:String})],l.prototype,"lodSelectionMetricType",void 0),l=(0,i._)([(0,a.j)("esri.layer.support.I3SNodePageDefinition")],l);let p=class extends o.wq{constructor(){super(...arguments),this.factor=1}};(0,i._)([(0,s.Cb)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],p.prototype,"id",void 0),(0,i._)([(0,s.Cb)({type:Number})],p.prototype,"factor",void 0),p=(0,i._)([(0,a.j)("esri.layer.support.I3SMaterialTexture")],p);let c=class extends o.wq{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,i._)([(0,s.Cb)({type:[Number]})],c.prototype,"baseColorFactor",void 0),(0,i._)([(0,s.Cb)({type:p})],c.prototype,"baseColorTexture",void 0),(0,i._)([(0,s.Cb)({type:p})],c.prototype,"metallicRoughnessTexture",void 0),(0,i._)([(0,s.Cb)({type:Number})],c.prototype,"metallicFactor",void 0),(0,i._)([(0,s.Cb)({type:Number})],c.prototype,"roughnessFactor",void 0),c=(0,i._)([(0,a.j)("esri.layer.support.I3SMaterialPBRMetallicRoughness")],c);let u=class extends o.wq{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,i._)([(0,n.J)({opaque:"opaque",mask:"mask",blend:"blend"})],u.prototype,"alphaMode",void 0),(0,i._)([(0,s.Cb)({type:Number})],u.prototype,"alphaCutoff",void 0),(0,i._)([(0,s.Cb)({type:Boolean})],u.prototype,"doubleSided",void 0),(0,i._)([(0,n.J)({none:"none",back:"back",front:"front"})],u.prototype,"cullFace",void 0),(0,i._)([(0,s.Cb)({type:p})],u.prototype,"normalTexture",void 0),(0,i._)([(0,s.Cb)({type:p})],u.prototype,"occlusionTexture",void 0),(0,i._)([(0,s.Cb)({type:p})],u.prototype,"emissiveTexture",void 0),(0,i._)([(0,s.Cb)({type:[Number]})],u.prototype,"emissiveFactor",void 0),(0,i._)([(0,s.Cb)({type:c})],u.prototype,"pbrMetallicRoughness",void 0),u=(0,i._)([(0,a.j)("esri.layer.support.I3SMaterialDefinition")],u);let d=class extends o.wq{};(0,i._)([(0,s.Cb)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],d.prototype,"name",void 0),(0,i._)([(0,n.J)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],d.prototype,"format",void 0),d=(0,i._)([(0,a.j)("esri.layer.support.I3STextureFormat")],d);let y=class extends o.wq{constructor(){super(...arguments),this.atlas=!1}};(0,i._)([(0,s.Cb)({type:[d]})],y.prototype,"formats",void 0),(0,i._)([(0,s.Cb)({type:Boolean})],y.prototype,"atlas",void 0),y=(0,i._)([(0,a.j)("esri.layer.support.I3STextureSetDefinition")],y);let h=class extends o.wq{};(0,i._)([(0,n.J)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],h.prototype,"type",void 0),(0,i._)([(0,s.Cb)({type:Number})],h.prototype,"component",void 0),h=(0,i._)([(0,a.j)("esri.layer.support.I3SGeometryAttribute")],h);let m=class extends o.wq{};(0,i._)([(0,n.J)({draco:"draco"})],m.prototype,"encoding",void 0),(0,i._)([(0,s.Cb)({type:[String]})],m.prototype,"attributes",void 0),m=(0,i._)([(0,a.j)("esri.layer.support.I3SGeometryCompressedAttributes")],m);let g=class extends o.wq{constructor(){super(...arguments),this.offset=0}};(0,i._)([(0,s.Cb)({type:Number})],g.prototype,"offset",void 0),(0,i._)([(0,s.Cb)({type:h})],g.prototype,"position",void 0),(0,i._)([(0,s.Cb)({type:h})],g.prototype,"normal",void 0),(0,i._)([(0,s.Cb)({type:h})],g.prototype,"uv0",void 0),(0,i._)([(0,s.Cb)({type:h})],g.prototype,"color",void 0),(0,i._)([(0,s.Cb)({type:h})],g.prototype,"uvRegion",void 0),(0,i._)([(0,s.Cb)({type:h})],g.prototype,"featureId",void 0),(0,i._)([(0,s.Cb)({type:h})],g.prototype,"faceRange",void 0),(0,i._)([(0,s.Cb)({type:m})],g.prototype,"compressedAttributes",void 0),g=(0,i._)([(0,a.j)("esri.layer.support.I3SGeometryBuffer")],g);let f=class extends o.wq{};(0,i._)([(0,n.J)({triangle:"triangle"})],f.prototype,"topology",void 0),(0,i._)([(0,s.Cb)()],f.prototype,"geometryBuffers",void 0),f=(0,i._)([(0,a.j)("esri.layer.support.I3SGeometryDefinition")],f)},21506:(e,t,r)=>{r.d(t,{qG:()=>S,PV:()=>g,id:()=>_,iR:()=>y,rn:()=>m,rT:()=>C,u1:()=>I,rO:()=>x,Oh:()=>v,bT:()=>b,C_:()=>d,Lx:()=>f,vg:()=>w,YI:()=>u,HQ:()=>h});var i=r(92835),o=r(6570),s=r(82971),n=r(25929),a=r(70586),l=(r(95330),r(35463)),p=r(86787),c=r(65242);const u={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},d={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},y={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},h={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:n.w}}},m={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},g={value:null,type:p.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function f(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const v={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},b={...v,json:{...v.json,origins:{"web-document":{...v.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,c.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,c.b)(t.drawingInfo.transparency)}}},S={type:i.Z,readOnly:!0,get(){if(!this.layer?.timeInfo)return null;const{datesInUnknownTimezone:e,timeOffset:t,useViewTime:r}=this.layer,o=this.view?.timeExtent;let s=this.layer.timeExtent;e&&(s=function(e){if(!e)return e;const{start:t,end:r}=e;return new i.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(s));let n=r?o&&s?o.intersection(s):o||s:s;if(!n||n.isEmpty||n.isAllTime)return n;t&&(n=n.offset(-t.value,t.unit)),e&&(n=function(e){if(!e)return e;const{start:t,end:r}=e;return new i.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(n));const p=this._get("timeExtent");return n.equals(p)?p:n}},w={type:o.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=o.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=s.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},_={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},x={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},I={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}},C={json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}}},99282:(e,t,r)=>{r.d(t,{a:()=>s});var i=r(67900),o=r(68441);const s={inches:(0,i.En)(1,"meters","inches"),feet:(0,i.En)(1,"meters","feet"),"us-feet":(0,i.En)(1,"meters","us-feet"),yards:(0,i.En)(1,"meters","yards"),miles:(0,i.En)(1,"meters","miles"),"nautical-miles":(0,i.En)(1,"meters","nautical-miles"),millimeters:(0,i.En)(1,"meters","millimeters"),centimeters:(0,i.En)(1,"meters","centimeters"),decimeters:(0,i.En)(1,"meters","decimeters"),meters:(0,i.En)(1,"meters","meters"),kilometers:(0,i.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.ty)(1,"meters",o.sv.radius)}},86787:(e,t,r)=>{r.d(t,{Z:()=>S});var i,o=r(43697),s=r(35454),n=r(96674),a=r(70586),l=r(5600),p=(r(67676),r(80442),r(75215),r(71715)),c=r(52011),u=r(30556),d=r(35671);let y=i=class extends n.wq{async collectRequiredFields(e,t){return(0,d.io)(e,t,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"expression",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"title",void 0),y=i=(0,o._)([(0,c.j)("esri.layers.support.FeatureExpressionInfo")],y);const h=y;var m,g=r(12541);const f=(0,s.w)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),v=new s.X({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let b=m=class extends n.wq{constructor(){super(...arguments),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,i){t[r]=e.write({},i),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,a.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new m({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,a._W)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,o._)([(0,l.Cb)({type:h,json:{write:!0}})],b.prototype,"featureExpressionInfo",void 0),(0,o._)([(0,p.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],b.prototype,"readFeatureExpressionInfo",null),(0,o._)([(0,u.c)("featureExpressionInfo",{featureExpressionInfo:{type:h},"featureExpression.value":{type:[0]}})],b.prototype,"writeFeatureExpressionInfo",null),(0,o._)([(0,l.Cb)({type:f.apiValues,nonNullable:!0,json:{type:f.jsonValues,read:f.read,write:{writer:f.write,isRequired:!0}}})],b.prototype,"mode",null),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],b.prototype,"offset",void 0),(0,o._)([(0,l.Cb)({type:g.f9,json:{type:String,read:v.read,write:v.write}})],b.prototype,"unit",null),b=m=(0,o._)([(0,c.j)("esri.layers.support.ElevationInfo")],b);const S=b},12541:(e,t,r)=>{r.d(t,{f9:()=>o});var i=r(99282);const o=function(){const e=Object.keys(i.a);return e.sort(),e}()},65242:(e,t,r)=>{r.d(t,{a:()=>o,b:()=>s});var i=r(75215);function o(e){const t=(0,i.vU)(100*(1-e));return Math.max(0,Math.min(t,100))}function s(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6748,3172],{66748:(e,t,n)=>{n.r(t),n.d(t,{registerFunctions:()=>b});var r=n(40330),o=n(77286),s=n(61363),i=n(71201),a=n(6570),l=n(9361),c=n(8667),u=n(65091),f=n(94139),h=n(38913),d=n(58901),m=n(33955),g=n(67900);function p(e){return 0===r.i8.indexOf("4.")?h.Z.fromExtent(e):new h.Z({spatialReference:e.spatialReference,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}function w(e){if((0,s.p)(e,2,2),e[0]instanceof l.Z&&e[1]instanceof l.Z);else if(e[0]instanceof l.Z&&null===e[1]);else if(e[1]instanceof l.Z&&null===e[0]);else if(null!==e[0]||null!==e[1])throw new Error("Illegal Argument")}async function y(e,t){if("polygon"!==e.type&&"polyline"!==e.type&&"extent"!==e.type)return 0;let n=1;(e.spatialReference.vcsWkid||e.spatialReference.latestVcsWkid)&&(n=(0,i._R)(e.spatialReference)/(0,g.c9)(e.spatialReference));let r=0;if("polyline"===e.type)for(const t of e.paths)for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);else if("polygon"===e.type)for(const t of e.rings){for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,i.AW)(t[0],t[t.length-1],n))}else"extent"===e.type&&(r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmax,e.ymin,0],n),r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmin,e.ymax,0],n),r*=2,r+=4*Math.abs((0,s.C)(e.zmax,0)*n-(0,s.C)(e.zmin,0)*n));const o=new d.Z({hasZ:!1,hasM:!1,spatialReference:e.spatialReference,paths:[[0,0],[0,r]]});return(0,c.sz)(o,t)}function b(e){"async"===e.mode&&(e.functions.disjoint=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]||null===n[1]||(0,c.ED)(n[0],n[1])}))},e.functions.intersects=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.kK)(n[0],n[1])}))},e.functions.touches=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.W4)(n[0],n[1])}))},e.functions.crosses=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.jU)(n[0],n[1])}))},e.functions.within=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.uh)(n[0],n[1])}))},e.functions.contains=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.r3)(n[0],n[1])}))},e.functions.overlaps=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.Nm)(n[0],n[1])}))},e.functions.equals=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return(0,s.p)(n,2,2),n[0]===n[1]||(n[0]instanceof l.Z&&n[1]instanceof l.Z?(0,c.fS)(n[0],n[1]):!(!(0,s.j)(n[0])||!(0,s.j)(n[1]))&&n[0].getTime()===n[1].getTime())}))},e.functions.relate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,3,3),n[0]instanceof l.Z&&n[1]instanceof l.Z)return(0,c.LV)(n[0],n[1],(0,s.h)(n[2]));if(n[0]instanceof l.Z&&null===n[1])return!1;if(n[1]instanceof l.Z&&null===n[0])return!1;if(null===n[0]&&null===n[1])return!1;throw new Error("Illegal Argument")}))},e.functions.intersection=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]||null===n[1]?null:(0,c.wf)(n[0],n[1])}))},e.functions.union=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){const i=[];if(0===(r=(0,s.H)(r)).length)throw new Error("Function called with wrong number of Parameters");if(1===r.length)if((0,s.l)(r[0])){const e=(0,s.H)(r[0]);for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof l.Z))throw new Error("Illegal Argument");i.push(e[t])}}else{if(!(0,s.n)(r[0])){if(r[0]instanceof l.Z)return(0,s.A)((0,o.r1)(r[0]),t.spatialReference);if(null===r[0])return null;throw new Error("Illegal Argument")}{const e=(0,s.H)(r[0].toArray());for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof l.Z))throw new Error("Illegal Argument");i.push(e[t])}}}else for(let e=0;e<r.length;e++)if(null!==r[e]){if(!(r[e]instanceof l.Z))throw new Error("Illegal Argument");i.push(r[e])}return 0===i.length?null:(0,c.G0)(i)}))},e.functions.difference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null===n[1]?(0,o.r1)(n[0]):null===n[0]?null:(0,c.e5)(n[0],n[1])}))},e.functions.symmetricdifference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]&&null===n[1]?null:null===n[0]?(0,o.r1)(n[1]):null===n[1]?(0,o.r1)(n[0]):(0,c.Sp)(n[0],n[1])}))},e.functions.clip=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,2),!(n[1]instanceof a.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return null===n[1]?null:(0,c.oq)(n[0],n[1])}))},e.functions.cut=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,2),!(n[1]instanceof d.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return[];if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return null===n[1]?[(0,o.r1)(n[0])]:(0,c.z7)(n[0],n[1])}))},e.functions.area=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.y)(r[0])){const e=await r[0].sumArea((0,o.EI)((0,s.C)(r[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.l)(r[0])||(0,s.n)(r[0])){const e=(0,s.K)(r[0],t.spatialReference);return null===e?0:(0,c.CJ)(e,(0,o.EI)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.CJ)(r[0],(0,o.EI)((0,s.C)(r[1],-1)))}))},e.functions.areageodetic=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.y)(r[0])){const e=await r[0].sumArea((0,o.EI)((0,s.C)(r[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.l)(r[0])||(0,s.n)(r[0])){const e=(0,s.K)(r[0],t.spatialReference);return null===e?0:(0,c.Y4)(e,(0,o.EI)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.Y4)(r[0],(0,o.EI)((0,s.C)(r[1],-1)))}))},e.functions.length=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.y)(r[0])){const e=await r[0].sumLength((0,o.Lz)((0,s.C)(r[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.l)(r[0])||(0,s.n)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:(0,c.sz)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.sz)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.length3d=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.l)(r[0])||(0,s.n)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:!0===e.hasZ?y(e,(0,o.Lz)((0,s.C)(r[1],-1))):(0,c.sz)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return!0===r[0].hasZ?y(r[0],(0,o.Lz)((0,s.C)(r[1],-1))):(0,c.sz)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.lengthgeodetic=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.y)(r[0])){const e=await r[0].sumLength((0,o.Lz)((0,s.C)(r[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.l)(r[0])||(0,s.n)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:(0,c.kQ)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.kQ)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.distance=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){r=(0,s.H)(r),(0,s.p)(r,2,3);let i=r[0];((0,s.l)(r[0])||(0,s.n)(r[0]))&&(i=(0,s.L)(r[0],t.spatialReference));let a=r[1];if(((0,s.l)(r[1])||(0,s.n)(r[1]))&&(a=(0,s.L)(r[1],t.spatialReference)),!(i instanceof l.Z))throw new Error("Illegal Argument");if(!(a instanceof l.Z))throw new Error("Illegal Argument");return(0,c.TE)(i,a,(0,o.Lz)((0,s.C)(r[2],-1)))}))},e.functions.distancegeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.H)(n),(0,s.p)(n,2,3);const r=n[0],i=n[1];if(!(r instanceof f.Z))throw new Error("Illegal Argument");if(!(i instanceof f.Z))throw new Error("Illegal Argument");const a=new d.Z({paths:[],spatialReference:r.spatialReference});return a.addPath([r,i]),(0,c.kQ)(a,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.densify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof h.Z||n[0]instanceof d.Z?(0,c.Cz)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]instanceof a.Z?(0,c.Cz)(p(n[0]),r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]}))},e.functions.densifygeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof h.Z||n[0]instanceof d.Z?(0,c.j2)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]instanceof a.Z?(0,c.j2)(p(n[0]),r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]}))},e.functions.generalize=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,4),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return(0,c.D$)(n[0],r,(0,s.g)((0,s.C)(n[2],!0)),(0,o.Lz)((0,s.C)(n[3],-1)))}))},e.functions.buffer=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,c.f3)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.buffergeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,c.rd)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.offset=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,6),null===n[0])return null;if(!(n[0]instanceof h.Z||n[0]instanceof d.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");const i=(0,s.f)((0,s.C)(n[4],10));if(isNaN(i))throw new Error("Illegal Argument");const a=(0,s.f)((0,s.C)(n[5],0));if(isNaN(a))throw new Error("Illegal Argument");return(0,c.cv)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)),(0,s.h)((0,s.C)(n[3],"round")).toLowerCase(),i,a)}))},e.functions.rotate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.H)(n),(0,s.p)(n,2,3);let r=n[0];if(null===r)return null;if(!(r instanceof l.Z))throw new Error("Illegal Argument");r instanceof a.Z&&(r=h.Z.fromExtent(r));const o=(0,s.f)(n[1]);if(isNaN(o))throw new Error("Illegal Argument");const i=(0,s.C)(n[2],null);if(null===i)return(0,c.U1)(r,o);if(i instanceof f.Z)return(0,c.U1)(r,o,i);throw new Error("Illegal Argument")}))},e.functions.centroid=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if(r=(0,s.H)(r),(0,s.p)(r,1,1),null===r[0])return null;let c=r[0];if(((0,s.l)(r[0])||(0,s.n)(r[0]))&&(c=(0,s.L)(r[0],t.spatialReference)),null===c)return null;if(!(c instanceof l.Z))throw new Error("Illegal Argument");return c instanceof f.Z?(0,s.A)((0,o.r1)(r[0]),t.spatialReference):c instanceof h.Z?c.centroid:c instanceof d.Z?(0,i.s9)(c):c instanceof u.Z?(0,i.Ay)(c):c instanceof a.Z?c.center:null}))},e.functions.multiparttosinglepart=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){r=(0,s.H)(r),(0,s.p)(r,1,1);const i=[];if(null===r[0])return null;if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");if(r[0]instanceof f.Z)return[(0,s.A)((0,o.r1)(r[0]),t.spatialReference)];if(r[0]instanceof a.Z)return[(0,s.A)((0,o.r1)(r[0]),t.spatialReference)];const g=await(0,c.og)(r[0]);if(g instanceof h.Z){const e=[],t=[];for(let n=0;n<g.rings.length;n++)if(g.isClockwise(g.rings[n])){const t=(0,m.im)({rings:[g.rings[n]],hasZ:!0===g.hasZ,hazM:!0===g.hasM,spatialReference:g.spatialReference.toJSON()});e.push(t)}else t.push({ring:g.rings[n],pt:g.getPoint(n,0)});for(let n=0;n<t.length;n++)for(let r=0;r<e.length;r++)if(e[r].contains(t[n].pt)){e[r].addRing(t[n].ring);break}return e}if(g instanceof d.Z){const e=[];for(let t=0;t<g.paths.length;t++){const n=(0,m.im)({paths:[g.paths[t]],hasZ:!0===g.hasZ,hazM:!0===g.hasM,spatialReference:g.spatialReference.toJSON()});e.push(n)}return e}if(r[0]instanceof u.Z){const e=(0,s.A)((0,o.r1)(r[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)i.push(e.getPoint(t));return i}return null}))},e.functions.issimple=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,1,1),null===n[0])return!0;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.Gg)(n[0])}))},e.functions.simplify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,1,1),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.og)(n[0])}))})}},99880:(e,t,n)=>{n.d(t,{V:()=>l});var r=n(68773),o=(n(3172),n(20102)),s=n(92604),i=n(17452);const a=s.Z.getLogger("esri.assets");function l(e){if(!r.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.Z.assetsPath,e)}},64830:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(70586);class o{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._items=new Set}get length(){return this._items.size}clear(){this._items.clear()}last(){if(0===this._items.size)return;let e;for(e of this._items);return e}peek(){if(0!==this._items.size)return this._peeker(this._items)}push(e){this.contains(e)||this._items.add(e)}contains(e){return this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete((0,r.j0)(e)),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete((0,r.j0)(e)),e}remove(e){this._items.delete(e)}filter(e){return this._items.forEach((t=>{e(t)||this._items.delete(t)})),this}}},80903:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(50758),o=n(92604),s=n(95330),i=n(64830),a=n(25045);class l{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new i.Z}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((n,r)=>{let o=!0;const i=e=>{(0,s.k_)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let o=0;o<e.length;++o){const l=e[o];(0,s.y8)(l)?this._clientPromises[o]=l.then((e=>(this._clients[o]=new a.default(e,t,(()=>this._ongoingJobsQueue.pop()??null)),i(n),this._clients[o])),(()=>(i(r),null))):(this._clients[o]=new a.default(l,t,(()=>this._ongoingJobsQueue.pop()??null)),this._clientPromises[o]=Promise.resolve(this._clients[o]),i(n))}}))}broadcast(e,t,n){const r=new Array(this._clientPromises.length);for(let o=0;o<this._clientPromises.length;++o){const s=this._clientPromises[o];r[o]=s.then((r=>r?.invoke(e,t,n)))}return r}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.deferred.reject((0,s.zE)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0}invoke(e,t,n){let r;Array.isArray(n)?(o.Z.getLogger("esri.core.workers.Connection").warn("invoke()","The transferList parameter is deprecated, use the options object instead"),r={transferList:n}):r=n;const i=(0,s.dD)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,deferred:i});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return i.promise}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.AL)(this._clients.map((n=>n.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let n=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((o=>{o&&(t[r]=o.openPort()),0==--n&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},78346:(e,t,n)=>{n.d(t,{bA:()=>q});var r=n(20102),o=n(80442),s=n(95330),i=n(80903),a=n(25045),l=n(40330),c=n(92604),u=n(70586),f=n(94362),h=n(99880),d=n(68773),m=(n(2587),n(17452));const g={};function p(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=g.baseUrl),g.packages?.forEach((e=>{!function(e,t){for(const n of e)if(n.name===t.name)return;e.push(t)}(t.packages??[],e)})),t}var w=n(41213);class y{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...n)=>e[t](...n)}))}}class b{constructor(){this._dispatcher=new y,this._workerPostMessage({type:f.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,w.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,n){this._dispatcher.addEventListener(e,t,n)}removeEventListener(e,t,n){this._dispatcher.removeEventListener(e,t,n)}_workerPostMessage(e){(0,w.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,f.QM)(e);if(t&&t.type===f.Cs.OPEN){const{modulePath:e,jobId:n}=t;let r=await a.default.loadWorker(e);r||(r=await import(e));const o=a.default.connect(r);this._workerPostMessage({type:f.Cs.OPENED,jobId:n,data:o})}}}var k=n(70171),E=n(17202);const v=c.Z.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:A}=f.Cs;let _,Z;const L="Failed to create Worker. Fallback to execute module in main thread";async function C(e){return new Promise((t=>{function n(o){const s=(0,f.QM)(o);s&&s.type===A&&(e.removeEventListener("message",n),e.removeEventListener("error",r),t(e))}function r(t){t.preventDefault(),e.removeEventListener("message",n),e.removeEventListener("error",r),v.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new b).addEventListener("message",n),e.addEventListener("error",r)}e.addEventListener("message",n),e.addEventListener("error",r)}))}let S=0;const{ABORT:P,INVOKE:I,OPEN:O,OPENED:T,RESPONSE:N}=f.Cs;class D{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),c.Z.getLogger("esri.core.workers.WorkerOwner").error(e)}))}static async create(e){const t=await async function(){if(!(0,o.Z)("esri-workers")||((0,o.Z)("mozilla"),0))return C(new b);if(!_&&!Z)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`Version mismatch detected between ArcGIS API for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\nModule version: ${t}\nAssets version: ${s}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const i=outgoing.get(r);outgoing.delete(r),o.error?i.reject(JSON.parse(o.error)):i.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=d.Z.default){const t={...d.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(d.Z));e.assetsPath=(0,m.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,k.Kd)(),e.has={"esri-csp-restrictions":(0,o.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,o.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,o.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,o.Z)("esri-atomics"),"esri-shared-array-buffer":(0,o.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.Z)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.Z)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,m.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,m.hF)(e.workers.workerPath):e.workers.workerPath=(0,m.hF)((0,h.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=d.Z.workers.loaderConfig,n=p({baseUrl:t?.baseUrl,locale:(0,k.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),r={version:l.i8,buildDate:E.r,revision:E.$};return JSON.stringify({esriConfig:e,loaderConfig:n,kernelInfo:r})}()}'`);_=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){Z=e||{}}let e;if(_)try{e=new Worker(_,{name:"esri-worker-"+S++})}catch(t){v.warn(L,Z),e=new b}else v.warn(L,Z),e=new b;return C(e)}();return new D(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:n}=t,r=(0,f.jt)();return new Promise(((t,o)=>{const i={resolve:t,reject:o,abortHandle:(0,s.$F)(n,(()=>{this._outJobs.delete(r),this._post({type:P,jobId:r})}))};this._outJobs.set(r,i),this._post({type:O,jobId:r,modulePath:e})}))}_onMessage(e){const t=(0,f.QM)(e);if(t)switch(t.type){case T:this._onOpenedMessage(t);break;case N:this._onResponseMessage(t);break;case P:this._onAbortMessage(t);break;case I:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);r&&(r.controller&&r.controller.abort(),t.delete(n))}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,i=o?new AbortController:null,a=this._inJobs,c=l.Nv[t];let u;try{if("function"!=typeof c)throw new TypeError(`${t} is not a function`);u=c.call(null,r,{signal:i?i.signal:null})}catch(e){return void this._post({type:N,jobId:n,error:(0,f.AB)(e)})}(0,s.y8)(u)?(a.set(n,{controller:i,promise:u}),u.then((e=>{a.has(n)&&(a.delete(n),this._post({type:N,jobId:n},e))}),(e=>{a.has(n)&&(a.delete(n),e||(e={message:"Error encountered at method"+t}),(0,s.D_)(e)||this._post({type:N,jobId:n,error:(0,f.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:N,jobId:n},u)}_onOpenedMessage(e){const{jobId:t,data:n}=e,r=this._outJobs.get(t);r&&(this._outJobs.delete(t),(0,u.hw)(r.abortHandle),r.resolve(n))}_onResponseMessage(e){const{jobId:t,error:n,data:o}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,u.hw)(s.abortHandle),n?s.reject(r.Z.fromJSON(JSON.parse(n))):s.resolve(o))}_post(e,t,n){return(0,f.oi)(this.worker,e,t,n)}}let R=(0,o.Z)("esri-workers-debug")?1:(0,o.Z)("host-browser")?navigator.hardwareConcurrency-1:0;R||(R=(0,o.Z)("safari")&&(0,o.Z)("mac")||(0,o.Z)("trident")?7:2);let H=0;const x=[];async function M(e,t){const n=new i.Z;return await n.open(e,t),n}async function q(e,t={}){if("string"!=typeof e)throw new r.Z("workers:undefined-module","modulePath is missing");let n=t.strategy||"distributed";if((0,o.Z)("host-webworker")&&!(0,o.Z)("esri-workers")&&(n="local"),"local"===n){let n=await a.default.loadWorker(e);n||(n=await import(e)),(0,s.k_)(t.signal);const r=t.client||n;return M([a.default.connect(n)],{...t,client:r})}if(await async function(){if(j)return j;F=new AbortController;const e=[];for(let t=0;t<R;t++){const n=D.create(t).then((e=>(x[t]=e,e)));e.push(n)}return j=Promise.all(e),j}(),(0,s.k_)(t.signal),"dedicated"===n){const n=H++%R;return M([await x[n].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const n=Math.min(t.maxNumWorkers,R);if(n<R){const r=new Array(n);for(let o=0;o<n;++o){const n=H++%R;r[o]=x[n].open(e,t)}return M(r,t)}}return M(x.map((n=>n.open(e,t))),t)}let F,j=null},8667:(e,t,n)=>{n.d(t,{CJ:()=>R,Cz:()=>N,D$:()=>T,ED:()=>b,G0:()=>C,Gg:()=>v,LV:()=>E,Nm:()=>k,Sp:()=>Z,TE:()=>m,U1:()=>O,W4:()=>w,Y4:()=>x,cv:()=>S,e5:()=>_,f3:()=>P,fS:()=>g,j2:()=>D,jU:()=>d,kK:()=>p,kQ:()=>M,og:()=>A,oq:()=>u,r3:()=>h,rd:()=>I,sz:()=>H,uh:()=>y,wf:()=>L,z7:()=>f}),n(66577);var r=n(78346),o=(n(94139),n(33955));function s(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function i(e){return e?Array.isArray(e)?e.map(i):e.toJSON?e.toJSON():e:e}function a(e){return Array.isArray(e)?e.map((e=>(0,o.im)(e))):(0,o.im)(e)}let l;async function c(e,t){return(await async function(){return l||(l=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:e,parameters:i(t)})}async function u(e,t){return a(await c("clip",[s(e),e,t]))}async function f(e,t){return a(await c("cut",[s(e),e,t]))}function h(e,t){return c("contains",[s(e),e,t])}function d(e,t){return c("crosses",[s(e),e,t])}function m(e,t,n){return c("distance",[s(e),e,t,n])}function g(e,t){return c("equals",[s(e),e,t])}function p(e,t){return c("intersects",[s(e),e,t])}function w(e,t){return c("touches",[s(e),e,t])}function y(e,t){return c("within",[s(e),e,t])}function b(e,t){return c("disjoint",[s(e),e,t])}function k(e,t){return c("overlaps",[s(e),e,t])}function E(e,t,n){return c("relate",[s(e),e,t,n])}function v(e){return c("isSimple",[s(e),e])}async function A(e){return a(await c("simplify",[s(e),e]))}async function _(e,t){return a(await c("difference",[s(e),e,t]))}async function Z(e,t){return a(await c("symmetricDifference",[s(e),e,t]))}async function L(e,t){return a(await c("intersect",[s(e),e,t]))}async function C(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return a(await c("union",[s(n),n]))}async function S(e,t,n,r,o,i){return a(await c("offset",[s(e),e,t,n,r,o,i]))}async function P(e,t,n,r=!1){const o=[s(e),e,t,n,r];return a(await c("buffer",o))}async function I(e,t,n,r,o,i){const l=[s(e),e,t,n,r,o,i];return a(await c("geodesicBuffer",l))}async function O(e,t,n){if(null==e)throw new Error("Illegal Argument Exception");const r=e.spatialReference;n=n??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent.center}(e);const o=e.constructor.fromJSON(await c("rotate",[r,e,t,n]));return o.spatialReference=r,o}async function T(e,t,n,r){return a(await c("generalize",[s(e),e,t,n,r]))}async function N(e,t,n){return a(await c("densify",[s(e),e,t,n]))}async function D(e,t,n,r=0){return a(await c("geodesicDensify",[s(e),e,t,n,r]))}function R(e,t){return c("planarArea",[s(e),e,t])}function H(e,t){return c("planarLength",[s(e),e,t])}function x(e,t,n){return c("geodesicArea",[s(e),e,t,n])}function M(e,t,n){return c("geodesicLength",[s(e),e,t,n])}},2587:(e,t,n)=>{n(90344),n(18848),n(940),n(70171);var r=n(94443),o=n(3172),s=n(20102),i=n(70586);async function a(e){if((0,i.pC)(l.fetchBundleAsset))return l.fetchBundleAsset(e);const t=await(0,o.default)(e,{responseType:"text"});return JSON.parse(t.data)}const l={};var c,u=n(99880);(0,r.tz)((c={pattern:"esri/",location:u.V},new class{constructor({base:e="",pattern:t,location:n=new URL(window.location.href)}){let r;r="string"==typeof n?e=>new URL(e,new URL(n,window.location.href)).href:n instanceof URL?e=>new URL(e,n).href:n,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,n,o){const i=t.exec(n);if(!i)throw new s.Z("esri-intl:invalid-bundle",`Bundle id "${n}" is not compatible with the pattern "${t}"`);const l=i[1]?`${i[1]}/`:"",c=i[2],u=(0,r.Su)(o),f=`${l}${c}.json`,h=u?`${l}${c}_${u}.json`:f;let d;try{d=await a(e(h))}catch(t){if(h===f)throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:t});try{d=await a(e(f))}catch(e){throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:e})}}return d}(this.getAssetUrl,this.matcher,e,t)}}(c)))},90344:(e,t,n)=>{n.d(t,{Ze:()=>p,p6:()=>w});var r=n(35454),o=n(70171);const s={year:"numeric",month:"numeric",day:"numeric"},i={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},u={...c,second:"numeric"},f={"short-date":s,"short-date-short-time":{...s,...c},"short-date-short-time-24":{...s,...c,hour12:!1},"short-date-long-time":{...s,...u},"short-date-long-time-24":{...s,...u,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...c},"short-date-le-short-time-24":{...s,...c,hour12:!1},"short-date-le-long-time":{...s,...u},"short-date-le-long-time-24":{...s,...u,hour12:!1},"long-month-day-year":i,"long-month-day-year-short-time":{...i,...c},"long-month-day-year-short-time-24":{...i,...c,hour12:!1},"long-month-day-year-long-time":{...i,...u},"long-month-day-year-long-time-24":{...i,...u,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...c},"day-short-month-year-short-time-24":{...a,...c,hour12:!1},"day-short-month-year-long-time":{...a,...u},"day-short-month-year-long-time-24":{...a,...u,hour12:!1},"long-date":l,"long-date-short-time":{...l,...c},"long-date-short-time-24":{...l,...c,hour12:!1},"long-date-long-time":{...l,...u},"long-date-long-time-24":{...l,...u,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":u},h=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),d=(h.apiValues,h.toJSON.bind(h),h.fromJSON.bind(h),{ar:"ar-u-nu-latn-ca-gregory"});let m=new WeakMap,g=f["short-date-short-time"];function p(e){return e?f[e]:null}function w(e,t){return function(e){const t=e||g;let n=m.get(t);if(!n){const e=(0,o.Kd)(),r=d[(0,o.Kd)()]||e;n=new Intl.DateTimeFormat(r,t),m.set(t,n)}return n}(t).format(e)}(0,o.Ze)((()=>{m=new WeakMap,g=f["short-date-short-time"]}))},94443:(e,t,n)=>{n.d(t,{ME:()=>d,Su:()=>m,tz:()=>h});var r=n(20102),o=n(95330),s=n(70171);const i=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){return a[e]??!1}const c=[],u=new Map;function f(e){for(const t of u.keys())g(e.pattern,t)&&u.delete(t)}function h(e){return c.includes(e)||(f(e),c.unshift(e)),{remove(){const t=c.indexOf(e);t>-1&&(c.splice(t,1),f(e))}}}async function d(e){const t=(0,s.Kd)();u.has(e)||u.set(e,async function(e,t){const n=[];for(const r of c)if(g(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=u.get(e);return n&&await p.add(n),n}function m(e){if(!i.test(e))return null;const t=i.exec(e);if(null===t)return null;const[,n,r]=t,o=n+(r?"-"+r.toUpperCase():"");return l(o)?o:l(n)?n:null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,s.Ze)((()=>{u.clear()}));const p=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,o.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,n)=>{n.d(t,{sh:()=>l,uf:()=>c});var r=n(70586),o=n(70171);const s={ar:"ar-u-nu-latn"};let i=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function c(e,t){return-0===e&&(e=0),function(e){const t=e||a;if(!i.has(t)){const n=(0,o.Kd)(),r=s[(0,o.Kd)()]||n;i.set(t,new Intl.NumberFormat(r,e))}return(0,r.j0)(i.get(t))}(t).format(e)}(0,o.Ze)((()=>{i=new WeakMap,a={}}))},940:(e,t,n)=>{n.d(t,{n:()=>c});var r=n(92604),o=n(78286),s=n(19153),i=n(90344),a=n(18848);const l=r.Z.getLogger("esri.intl.substitute");function c(e,t,n={}){const{format:r={}}=n;return(0,s.gx)(e,(e=>function(e,t,n){let r,s;const i=e.indexOf(":");if(-1===i?r=e.trim():(r=e.slice(0,i).trim(),s=e.slice(i+1).trim()),!r)return"";const a=(0,o.hS)(r,t);if(null==a)return"";const l=(s?n?.[s]:null)??n?.[r];return l?u(a,l):s?f(a,s):h(a)}(e,t,r)))}function u(e,t){switch(t.type){case"date":return(0,i.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),h(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,i.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):h(e)}}function h(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,i.p6)(e):""}}},3172:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var r=n(68773),o=n(40330),s=n(20102),i=n(80442),a=n(22974),l=n(70586),c=n(95330),u=n(17452),f=n(71058),h=n(85958);async function d(e,t){const a=(0,u.HK)(e),w=(0,u.jc)(e);w||a||(e=(0,u.Fv)(e));const y={url:e,requestOptions:{...(0,l.Wg)(t)}};let b=(0,u.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let n,r;try{r=await e.before(t)}catch(e){n=A("request:interceptor",e,t)}if((r instanceof Error||r instanceof s.Z)&&(n=A("request:interceptor",r,t)),n)throw e.error&&e.error(n),n;return r}}(b,y);if(null!=e)return{data:e,getHeader:k,requestOptions:y.requestOptions,url:y.url};b.after||b.error||(b=null)}if(e=y.url,"image"===(t=y.requestOptions).responseType){if((0,i.Z)("host-webworker")||(0,i.Z)("host-node"))throw A("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),y)}else if(a)throw A("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),y);if("head"===t.method){if(t.body)throw A("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(a||w)throw A("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}if(await async function(){(0,i.Z)("host-webworker")?m||(m=await n.e(9884).then(n.bind(n,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const E=new AbortController;(0,c.fu)(t,(()=>E.abort()));const v={controller:E,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:b,params:y,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},C=await async function(e){let t,n;await async function(e){const t=e.params.url,n=e.params.requestOptions,s=e.controller.signal,i=n.body;let a=null,l=null;if(p&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(l=i),e.fetchOptions={cache:n.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",priority:g.priority,redirect:"follow",signal:s},(a||l)&&(e.fetchOptions.body=a||l),"anonymous"===n.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||n.query?.token||a?.get("token")),!e.hasToken&&r.Z.apiKey&&(0,f.r)(t)&&(n.query||(n.query={}),n.query.token=r.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!Z(t)&&!(0,c.Hc)(s)){let r;"immediate"===n.authMode?(await _(),r=await o.id.getCredential(t,{signal:s}),e.credential=r):"no-prompt"===n.authMode?(await _(),r=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=r):o.id&&(r=o.id.findCredential(t)),r&&(e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[t,n]=await L(e)}while(!await S(e,t,n))}catch(n){const r=A("request:server",n,e.params,t);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const s=e.params.url;if(n&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&n.user?.username&&!(0,u.kl)(s)){const e=(0,u.P$)(s,!0);e&&g.trustedServers.push(e)}Array.isArray(n.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(n.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&o.id){const e=o.id.findServerInfo(i.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,i.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:n,getHeader:t?e=>t?.headers.get(e):k,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(v);return b?.after?.(C),C}let m;const g=r.Z.request,p="FormData"in globalThis,w=[499,498,403,401],y=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],k=()=>null,E=Symbol();function v(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.kl)(t)}function A(e,t,n,r){let o="Error";const i={url:n.url,requestOptions:n.requestOptions,getHeader:k,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=n.url,t.details.requestOptions=n.requestOptions):t.details=i,t;if(t){const e=r&&(e=>r.headers.get(e)),n=r&&r.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||n||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=E in t?t[E]:t}return(0,c.D_)(t)?(0,c.zE)():new s.Z(e,o,i)}async function _(){o.id||await Promise.all([n.e(280),n.e(1400),n.e(1761)]).then(n.bind(n,55142))}function Z(e){return b.some((t=>t.test(e)))}async function L(e){let t=e.params.url;const n=e.params.requestOptions,r=e.fetchOptions??{},s=(0,u.jc)(t)||(0,u.HK)(t),a=n.responseType||"json",l=s?0:null!=n.timeout?n.timeout:g.timeout;let f=!1;if(!s){e.useSSL&&(t=(0,u.hO)(t)),n.cacheBust&&"default"===r.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let s={...n.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.B7)(s);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let c;f="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||l>g.maxUrlLength;const d=n.useProxy||!!(0,u.ed)(t);if(d){const e=(0,u.b7)(t);c=e.path,!f&&c.length+1+l>g.maxUrlLength&&(f=!0),e.query&&(s={...e.query,...s})}if("HEAD"===r.method&&(f||d)){if(f){if(l>g.maxUrlLength)throw A("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw A("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw A("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(f?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?t=(0,u.fl)(t,s):(r.body=(0,u.B7)(s),r.headers||(r.headers={}),r.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,s),d&&(e.useProxy=!0,t=`${c}?${t}`),s.token&&p&&r.body instanceof FormData&&!/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)&&r.body.set("token",s.token),n.hasOwnProperty("withCredentials"))e.withCredentials=n.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(t);n&&n.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(r.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(f?(0,u.fl)(t,s):t))}let m,w,y=0,b=!1;l>0&&(y=setTimeout((()=>{b=!0,e.controller.abort()}),l));try{if("native-request-init"===n.responseType)w=r,w.url=t;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||f||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(n.headers)||!s&&!e.useProxy&&g.proxyUrl&&!v(t)){if(m=await d._abortableFetch(t,r),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===n.responseType)w=m;else if("HEAD"!==r.method)if(m.ok){switch(a){case"array-buffer":w=await m.arrayBuffer();break;case"blob":case"image":w=await m.blob();break;default:w=await m.text()}if(y&&(clearTimeout(y),y=0),"json"===a||"xml"===a||"document"===a)if(w)switch(a){case"json":w=JSON.parse(w);break;case"xml":w=C(w,"application/xml");break;case"document":w=C(w,"text/html")}else w=null;if(w){if("array-buffer"===a||"blob"===a){const e=m.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&w["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(w).json();e.error&&(w=e)}catch{}}"image"===a&&w instanceof Blob&&(w=await P(URL.createObjectURL(w),e,!0))}}else w=await m.text()}else w=await P(t,e)}catch(r){if("AbortError"===r.name){if(b)throw new Error("Timeout exceeded");throw(0,c.zE)("Request canceled")}if(!(!m&&r instanceof TypeError&&g.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||e.useProxy||v(t))throw r;e.redoRequest=!0,(0,u.tD)({proxyUrl:g.proxyUrl,urlPrefix:(0,u.P$)(t)??""})}finally{y&&clearTimeout(y)}return[m,w]}function C(e,t){let n;try{n=(new DOMParser).parseFromString(e,t)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function S(e,t,n){if(e.redoRequest)return e.redoRequest=!1,!1;const r=e.params.requestOptions;if(!t||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let s,i;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[E]=n,s;n?.error&&(s=n.error);let a,l=null;s&&(i=Number(s.code),l=s.hasOwnProperty("subcode")?Number(s.subcode):null,a=s.messageCode,a=a&&a.toUpperCase());const c=r.authMode;if(403===i&&(4===l||s.message&&s.message.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===i)&&void 0!==i&&w.includes(i)&&!Z(e.params.url)&&(403!==i||a&&!y.includes(a)&&(null==l||2===l&&e.credentialToken))){await _();try{const t=await o.id.getCredential(e.params.url,{error:A("request:server",s,e.params),prompt:"no-prompt"!==c,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===c)return e.credential=void 0,e.credentialToken=void 0,!1;s=t}}if(s)throw s;return!0}function P(e,t,n=!1){const r=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=g.priority,o.src=e,(0,h.fY)(o,e,n,r)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,r.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,n)=>{n.d(t,{Hu:()=>u,fY:()=>l,jH:()=>f,jz:()=>h});var r=n(68773),o=n(80442),s=n(70586),i=n(95330),a=n(17452);function l(e,t,n=!1,r){return new Promise(((a,l)=>{if((0,i.Hc)(r))return void l(c());let u=()=>{d(),l(new Error(`Unable to load ${t}`))},f=()=>{const t=e;d(),a(t)},h=()=>{if(!e)return;const t=e;d(),t.src="",l(c())};const d=()=>{(0,o.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",f)),u=null,f=null,e=null,(0,s.pC)(r)&&r.removeEventListener("abort",h),h=null,n&&URL.revokeObjectURL(t)};(0,s.pC)(r)&&r.addEventListener("abort",h),(0,o.Z)("esri-image-decode")?e.decode().then(f,u):(e.addEventListener("error",u),e.addEventListener("load",f))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function u(e){r.Z.request.crossOriginNoCorsDomains||(r.Z.request.crossOriginNoCorsDomains={});const t=r.Z.request.crossOriginNoCorsDomains;for(let n of e)n=n.toLowerCase(),/^https?:\/\//.test(n)?t[(0,a.P$)(n)??""]=0:(t[(0,a.P$)("http://"+n)??""]=0,t[(0,a.P$)("https://"+n)??""]=0)}function f(e){const t=r.Z.request.crossOriginNoCorsDomains;if(t){let n=(0,a.P$)(e);if(n)return n=n.toLowerCase(),!(0,a.D6)(n,(0,a.TI)())&&t[n]<Date.now()-36e5}return!1}async function h(e){const t=r.Z.request.crossOriginNoCorsDomains,n=(0,a.P$)(e);t&&n&&(t[n.toLowerCase()]=Date.now());const o=(0,a.mN)(e);e=o.path,"json"===o.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6748,3172],{66748:(e,t,n)=>{n.r(t),n.d(t,{registerFunctions:()=>b});var r=n(40330),o=n(77286),s=n(61363),i=n(71201),a=n(6570),l=n(9361),c=n(8667),u=n(65091),f=n(94139),h=n(38913),d=n(58901),m=n(33955),g=n(67900);function p(e){return 0===r.i8.indexOf("4.")?h.Z.fromExtent(e):new h.Z({spatialReference:e.spatialReference,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]})}function w(e){if((0,s.p)(e,2,2),e[0]instanceof l.Z&&e[1]instanceof l.Z);else if(e[0]instanceof l.Z&&null===e[1]);else if(e[1]instanceof l.Z&&null===e[0]);else if(null!==e[0]||null!==e[1])throw new Error("Illegal Argument")}async function y(e,t){if("polygon"!==e.type&&"polyline"!==e.type&&"extent"!==e.type)return 0;let n=1;(e.spatialReference.vcsWkid||e.spatialReference.latestVcsWkid)&&(n=(0,i._R)(e.spatialReference)/(0,g.c9)(e.spatialReference));let r=0;if("polyline"===e.type)for(const t of e.paths)for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);else if("polygon"===e.type)for(const t of e.rings){for(let e=1;e<t.length;e++)r+=(0,i.AW)(t[e],t[e-1],n);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,i.AW)(t[0],t[t.length-1],n))}else"extent"===e.type&&(r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmax,e.ymin,0],n),r+=2*(0,i.AW)([e.xmin,e.ymin,0],[e.xmin,e.ymax,0],n),r*=2,r+=4*Math.abs((0,s.C)(e.zmax,0)*n-(0,s.C)(e.zmin,0)*n));const o=new d.Z({hasZ:!1,hasM:!1,spatialReference:e.spatialReference,paths:[[0,0],[0,r]]});return(0,c.sz)(o,t)}function b(e){"async"===e.mode&&(e.functions.disjoint=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]||null===n[1]||(0,c.ED)(n[0],n[1])}))},e.functions.intersects=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.kK)(n[0],n[1])}))},e.functions.touches=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.W4)(n[0],n[1])}))},e.functions.crosses=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.jU)(n[0],n[1])}))},e.functions.within=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.uh)(n[0],n[1])}))},e.functions.contains=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.r3)(n[0],n[1])}))},e.functions.overlaps=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null!==n[1]&&(0,c.Nm)(n[0],n[1])}))},e.functions.equals=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return(0,s.p)(n,2,2),n[0]===n[1]||(n[0]instanceof l.Z&&n[1]instanceof l.Z?(0,c.fS)(n[0],n[1]):!(!(0,s.j)(n[0])||!(0,s.j)(n[1]))&&n[0].getTime()===n[1].getTime())}))},e.functions.relate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,3,3),n[0]instanceof l.Z&&n[1]instanceof l.Z)return(0,c.LV)(n[0],n[1],(0,s.h)(n[2]));if(n[0]instanceof l.Z&&null===n[1])return!1;if(n[1]instanceof l.Z&&null===n[0])return!1;if(null===n[0]&&null===n[1])return!1;throw new Error("Illegal Argument")}))},e.functions.intersection=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]||null===n[1]?null:(0,c.wf)(n[0],n[1])}))},e.functions.union=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){const i=[];if(0===(r=(0,s.H)(r)).length)throw new Error("Function called with wrong number of Parameters");if(1===r.length)if((0,s.l)(r[0])){const e=(0,s.H)(r[0]);for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof l.Z))throw new Error("Illegal Argument");i.push(e[t])}}else{if(!(0,s.n)(r[0])){if(r[0]instanceof l.Z)return(0,s.A)((0,o.r1)(r[0]),t.spatialReference);if(null===r[0])return null;throw new Error("Illegal Argument")}{const e=(0,s.H)(r[0].toArray());for(let t=0;t<e.length;t++)if(null!==e[t]){if(!(e[t]instanceof l.Z))throw new Error("Illegal Argument");i.push(e[t])}}}else for(let e=0;e<r.length;e++)if(null!==r[e]){if(!(r[e]instanceof l.Z))throw new Error("Illegal Argument");i.push(r[e])}return 0===i.length?null:(0,c.G0)(i)}))},e.functions.difference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null!==n[0]&&null===n[1]?(0,o.r1)(n[0]):null===n[0]?null:(0,c.e5)(n[0],n[1])}))},e.functions.symmetricdifference=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){return w(n=(0,s.H)(n)),null===n[0]&&null===n[1]?null:null===n[0]?(0,o.r1)(n[1]):null===n[1]?(0,o.r1)(n[0]):(0,c.Sp)(n[0],n[1])}))},e.functions.clip=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,2),!(n[1]instanceof a.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return null===n[1]?null:(0,c.oq)(n[0],n[1])}))},e.functions.cut=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,2),!(n[1]instanceof d.Z)&&null!==n[1])throw new Error("Illegal Argument");if(null===n[0])return[];if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return null===n[1]?[(0,o.r1)(n[0])]:(0,c.z7)(n[0],n[1])}))},e.functions.area=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.y)(r[0])){const e=await r[0].sumArea((0,o.EI)((0,s.C)(r[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.l)(r[0])||(0,s.n)(r[0])){const e=(0,s.K)(r[0],t.spatialReference);return null===e?0:(0,c.CJ)(e,(0,o.EI)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.CJ)(r[0],(0,o.EI)((0,s.C)(r[1],-1)))}))},e.functions.areageodetic=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.y)(r[0])){const e=await r[0].sumArea((0,o.EI)((0,s.C)(r[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.l)(r[0])||(0,s.n)(r[0])){const e=(0,s.K)(r[0],t.spatialReference);return null===e?0:(0,c.Y4)(e,(0,o.EI)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.Y4)(r[0],(0,o.EI)((0,s.C)(r[1],-1)))}))},e.functions.length=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.y)(r[0])){const e=await r[0].sumLength((0,o.Lz)((0,s.C)(r[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.l)(r[0])||(0,s.n)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:(0,c.sz)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.sz)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.length3d=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.l)(r[0])||(0,s.n)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:!0===e.hasZ?y(e,(0,o.Lz)((0,s.C)(r[1],-1))):(0,c.sz)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return!0===r[0].hasZ?y(r[0],(0,o.Lz)((0,s.C)(r[1],-1))):(0,c.sz)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.lengthgeodetic=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){if((0,s.p)(r,1,2),null===(r=(0,s.H)(r))[0])return 0;if((0,s.y)(r[0])){const e=await r[0].sumLength((0,o.Lz)((0,s.C)(r[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new Error("Operation has been cancelled.");return e}if((0,s.l)(r[0])||(0,s.n)(r[0])){const e=(0,s.J)(r[0],t.spatialReference);return null===e?0:(0,c.kQ)(e,(0,o.Lz)((0,s.C)(r[1],-1)))}if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.kQ)(r[0],(0,o.Lz)((0,s.C)(r[1],-1)))}))},e.functions.distance=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){r=(0,s.H)(r),(0,s.p)(r,2,3);let i=r[0];((0,s.l)(r[0])||(0,s.n)(r[0]))&&(i=(0,s.L)(r[0],t.spatialReference));let a=r[1];if(((0,s.l)(r[1])||(0,s.n)(r[1]))&&(a=(0,s.L)(r[1],t.spatialReference)),!(i instanceof l.Z))throw new Error("Illegal Argument");if(!(a instanceof l.Z))throw new Error("Illegal Argument");return(0,c.TE)(i,a,(0,o.Lz)((0,s.C)(r[2],-1)))}))},e.functions.distancegeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.H)(n),(0,s.p)(n,2,3);const r=n[0],i=n[1];if(!(r instanceof f.Z))throw new Error("Illegal Argument");if(!(i instanceof f.Z))throw new Error("Illegal Argument");const a=new d.Z({paths:[],spatialReference:r.spatialReference});return a.addPath([r,i]),(0,c.kQ)(a,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.densify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof h.Z||n[0]instanceof d.Z?(0,c.Cz)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]instanceof a.Z?(0,c.Cz)(p(n[0]),r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]}))},e.functions.densifygeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");if(r<=0)throw new Error("Illegal Argument");return n[0]instanceof h.Z||n[0]instanceof d.Z?(0,c.j2)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]instanceof a.Z?(0,c.j2)(p(n[0]),r,(0,o.Lz)((0,s.C)(n[2],-1))):n[0]}))},e.functions.generalize=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,4),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return(0,c.D$)(n[0],r,(0,s.g)((0,s.C)(n[2],!0)),(0,o.Lz)((0,s.C)(n[3],-1)))}))},e.functions.buffer=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,c.f3)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.buffergeodetic=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,3),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");return 0===r?(0,o.r1)(n[0]):(0,c.rd)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)))}))},e.functions.offset=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,2,6),null===n[0])return null;if(!(n[0]instanceof h.Z||n[0]instanceof d.Z))throw new Error("Illegal Argument");const r=(0,s.f)(n[1]);if(isNaN(r))throw new Error("Illegal Argument");const i=(0,s.f)((0,s.C)(n[4],10));if(isNaN(i))throw new Error("Illegal Argument");const a=(0,s.f)((0,s.C)(n[5],0));if(isNaN(a))throw new Error("Illegal Argument");return(0,c.cv)(n[0],r,(0,o.Lz)((0,s.C)(n[2],-1)),(0,s.h)((0,s.C)(n[3],"round")).toLowerCase(),i,a)}))},e.functions.rotate=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){n=(0,s.H)(n),(0,s.p)(n,2,3);let r=n[0];if(null===r)return null;if(!(r instanceof l.Z))throw new Error("Illegal Argument");r instanceof a.Z&&(r=h.Z.fromExtent(r));const o=(0,s.f)(n[1]);if(isNaN(o))throw new Error("Illegal Argument");const i=(0,s.C)(n[2],null);if(null===i)return(0,c.U1)(r,o);if(i instanceof f.Z)return(0,c.U1)(r,o,i);throw new Error("Illegal Argument")}))},e.functions.centroid=function(t,n){return e.standardFunctionAsync(t,n,(function(e,n,r){if(r=(0,s.H)(r),(0,s.p)(r,1,1),null===r[0])return null;let c=r[0];if(((0,s.l)(r[0])||(0,s.n)(r[0]))&&(c=(0,s.L)(r[0],t.spatialReference)),null===c)return null;if(!(c instanceof l.Z))throw new Error("Illegal Argument");return c instanceof f.Z?(0,s.A)((0,o.r1)(r[0]),t.spatialReference):c instanceof h.Z?c.centroid:c instanceof d.Z?(0,i.s9)(c):c instanceof u.Z?(0,i.Ay)(c):c instanceof a.Z?c.center:null}))},e.functions.multiparttosinglepart=function(t,n){return e.standardFunctionAsync(t,n,(async function(e,n,r){r=(0,s.H)(r),(0,s.p)(r,1,1);const i=[];if(null===r[0])return null;if(!(r[0]instanceof l.Z))throw new Error("Illegal Argument");if(r[0]instanceof f.Z)return[(0,s.A)((0,o.r1)(r[0]),t.spatialReference)];if(r[0]instanceof a.Z)return[(0,s.A)((0,o.r1)(r[0]),t.spatialReference)];const g=await(0,c.og)(r[0]);if(g instanceof h.Z){const e=[],t=[];for(let n=0;n<g.rings.length;n++)if(g.isClockwise(g.rings[n])){const t=(0,m.im)({rings:[g.rings[n]],hasZ:!0===g.hasZ,hazM:!0===g.hasM,spatialReference:g.spatialReference.toJSON()});e.push(t)}else t.push({ring:g.rings[n],pt:g.getPoint(n,0)});for(let n=0;n<t.length;n++)for(let r=0;r<e.length;r++)if(e[r].contains(t[n].pt)){e[r].addRing(t[n].ring);break}return e}if(g instanceof d.Z){const e=[];for(let t=0;t<g.paths.length;t++){const n=(0,m.im)({paths:[g.paths[t]],hasZ:!0===g.hasZ,hazM:!0===g.hasM,spatialReference:g.spatialReference.toJSON()});e.push(n)}return e}if(r[0]instanceof u.Z){const e=(0,s.A)((0,o.r1)(r[0]),t.spatialReference);for(let t=0;t<e.points.length;t++)i.push(e.getPoint(t));return i}return null}))},e.functions.issimple=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,1,1),null===n[0])return!0;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.Gg)(n[0])}))},e.functions.simplify=function(t,n){return e.standardFunctionAsync(t,n,(function(e,t,n){if(n=(0,s.H)(n),(0,s.p)(n,1,1),null===n[0])return null;if(!(n[0]instanceof l.Z))throw new Error("Illegal Argument");return(0,c.og)(n[0])}))})}},99880:(e,t,n)=>{n.d(t,{V:()=>l});var r=n(68773),o=(n(3172),n(20102)),s=n(92604),i=n(17452);const a=s.Z.getLogger("esri.assets");function l(e){if(!r.Z.assetsPath)throw a.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new o.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.Z.assetsPath,e)}},64830:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(70586);class o{constructor(e=(e=>e.values().next().value)){this._peeker=e,this._items=new Set}get length(){return this._items.size}clear(){this._items.clear()}last(){if(0===this._items.size)return;let e;for(e of this._items);return e}peek(){if(0!==this._items.size)return this._peeker(this._items)}push(e){this.contains(e)||this._items.add(e)}contains(e){return this._items.has(e)}pop(){if(0===this.length)return;const e=this.peek();return this._items.delete((0,r.j0)(e)),e}popLast(){if(0===this.length)return;const e=this.last();return this._items.delete((0,r.j0)(e)),e}remove(e){this._items.delete(e)}filter(e){return this._items.forEach((t=>{e(t)||this._items.delete(t)})),this}}},80903:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(50758),o=n(92604),s=n(95330),i=n(64830),a=n(25045);class l{constructor(){this._inUseClients=new Array,this._clients=new Array,this._clientPromises=new Array,this._ongoingJobsQueue=new i.Z}destroy(){this.close()}get closed(){return!this._clients||!this._clients.length}open(e,t){return new Promise(((n,r)=>{let o=!0;const i=e=>{(0,s.k_)(t.signal),o&&(o=!1,e())};this._clients.length=e.length,this._clientPromises.length=e.length,this._inUseClients.length=e.length;for(let o=0;o<e.length;++o){const l=e[o];(0,s.y8)(l)?this._clientPromises[o]=l.then((e=>(this._clients[o]=new a.default(e,t,(()=>this._ongoingJobsQueue.pop()??null)),i(n),this._clients[o])),(()=>(i(r),null))):(this._clients[o]=new a.default(l,t,(()=>this._ongoingJobsQueue.pop()??null)),this._clientPromises[o]=Promise.resolve(this._clients[o]),i(n))}}))}broadcast(e,t,n){const r=new Array(this._clientPromises.length);for(let o=0;o<this._clientPromises.length;++o){const s=this._clientPromises[o];r[o]=s.then((r=>r?.invoke(e,t,n)))}return r}close(){let e;for(;e=this._ongoingJobsQueue.pop();)e.deferred.reject((0,s.zE)(`Worker closing, aborting job calling '${e.methodName}'`));for(const e of this._clientPromises)e.then((e=>e?.close()));this._clients.length=0,this._clientPromises.length=0}invoke(e,t,n){let r;Array.isArray(n)?(o.Z.getLogger("esri.core.workers.Connection").warn("invoke()","The transferList parameter is deprecated, use the options object instead"),r={transferList:n}):r=n;const i=(0,s.dD)();this._ongoingJobsQueue.push({methodName:e,data:t,invokeOptions:r,deferred:i});for(let e=0;e<this._clientPromises.length;e++){const t=this._clients[e];t?t.jobAdded():this._clientPromises[e].then((e=>e?.jobAdded()))}return i.promise}on(e,t){return Promise.all(this._clientPromises).then((()=>(0,r.AL)(this._clients.map((n=>n.on(e,t))))))}openPorts(){return new Promise((e=>{const t=new Array(this._clientPromises.length);let n=t.length;for(let r=0;r<this._clientPromises.length;++r)this._clientPromises[r].then((o=>{o&&(t[r]=o.openPort()),0==--n&&e(t)}))}))}get test(){return{numClients:this._clients.length}}}},78346:(e,t,n)=>{n.d(t,{bA:()=>q});var r=n(20102),o=n(80442),s=n(95330),i=n(80903),a=n(25045),l=n(40330),c=n(92604),u=n(70586),f=n(94362),h=n(99880),d=n(68773),m=(n(2587),n(17452));const g={};function p(e){const t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=g.baseUrl),g.packages?.forEach((e=>{!function(e,t){for(const n of e)if(n.name===t.name)return;e.push(t)}(t.packages??[],e)})),t}var w=n(41213);class y{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...n)=>e[t](...n)}))}}class b{constructor(){this._dispatcher=new y,this._workerPostMessage({type:f.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,w.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,n){this._dispatcher.addEventListener(e,t,n)}removeEventListener(e,t,n){this._dispatcher.removeEventListener(e,t,n)}_workerPostMessage(e){(0,w.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,f.QM)(e);if(t&&t.type===f.Cs.OPEN){const{modulePath:e,jobId:n}=t;let r=await a.default.loadWorker(e);r||(r=await import(e));const o=a.default.connect(r);this._workerPostMessage({type:f.Cs.OPENED,jobId:n,data:o})}}}var k=n(70171),E=n(17202);const v=c.Z.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:A}=f.Cs;let _,Z;const L="Failed to create Worker. Fallback to execute module in main thread";async function C(e){return new Promise((t=>{function n(o){const s=(0,f.QM)(o);s&&s.type===A&&(e.removeEventListener("message",n),e.removeEventListener("error",r),t(e))}function r(t){t.preventDefault(),e.removeEventListener("message",n),e.removeEventListener("error",r),v.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new b).addEventListener("message",n),e.addEventListener("error",r)}e.addEventListener("message",n),e.addEventListener("error",r)}))}let S=0;const{ABORT:P,INVOKE:I,OPEN:O,OPENED:T,RESPONSE:N}=f.Cs;class D{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),c.Z.getLogger("esri.core.workers.WorkerOwner").error(e)}))}static async create(e){const t=await async function(){if(!(0,o.Z)("esri-workers")||((0,o.Z)("mozilla"),0))return C(new b);if(!_&&!Z)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`Version mismatch detected between ArcGIS API for JavaScript modules and assets. For more information visit https://bit.ly/3QnsuSo.\nModule version: ${t}\nAssets version: ${s}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let n;function t(e){const o=n.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],(e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((e=>(n=e.default,checkWorkerRevision(n),n.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((e=>{n=e.default||e,checkWorkerRevision(n),n.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),n=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(n),n.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const i=outgoing.get(r);outgoing.delete(r),o.error?i.reject(JSON.parse(o.error)):i.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=d.Z.default){const t={...d.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(d.Z));e.assetsPath=(0,m.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,k.Kd)(),e.has={"esri-csp-restrictions":(0,o.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,o.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,o.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,o.Z)("esri-atomics"),"esri-shared-array-buffer":(0,o.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.Z)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.Z)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,m.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,m.hF)(e.workers.workerPath):e.workers.workerPath=(0,m.hF)((0,h.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=d.Z.workers.loaderConfig,n=p({baseUrl:t?.baseUrl,locale:(0,k.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]}),r={version:l.i8,buildDate:E.r,revision:E.$};return JSON.stringify({esriConfig:e,loaderConfig:n,kernelInfo:r})}()}'`);_=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){Z=e||{}}let e;if(_)try{e=new Worker(_,{name:"esri-worker-"+S++})}catch(t){v.warn(L,Z),e=new b}else v.warn(L,Z),e=new b;return C(e)}();return new D(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:n}=t,r=(0,f.jt)();return new Promise(((t,o)=>{const i={resolve:t,reject:o,abortHandle:(0,s.$F)(n,(()=>{this._outJobs.delete(r),this._post({type:P,jobId:r})}))};this._outJobs.set(r,i),this._post({type:O,jobId:r,modulePath:e})}))}_onMessage(e){const t=(0,f.QM)(e);if(t)switch(t.type){case T:this._onOpenedMessage(t);break;case N:this._onResponseMessage(t);break;case P:this._onAbortMessage(t);break;case I:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);r&&(r.controller&&r.controller.abort(),t.delete(n))}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,i=o?new AbortController:null,a=this._inJobs,c=l.Nv[t];let u;try{if("function"!=typeof c)throw new TypeError(`${t} is not a function`);u=c.call(null,r,{signal:i?i.signal:null})}catch(e){return void this._post({type:N,jobId:n,error:(0,f.AB)(e)})}(0,s.y8)(u)?(a.set(n,{controller:i,promise:u}),u.then((e=>{a.has(n)&&(a.delete(n),this._post({type:N,jobId:n},e))}),(e=>{a.has(n)&&(a.delete(n),e||(e={message:"Error encountered at method"+t}),(0,s.D_)(e)||this._post({type:N,jobId:n,error:(0,f.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:N,jobId:n},u)}_onOpenedMessage(e){const{jobId:t,data:n}=e,r=this._outJobs.get(t);r&&(this._outJobs.delete(t),(0,u.hw)(r.abortHandle),r.resolve(n))}_onResponseMessage(e){const{jobId:t,error:n,data:o}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,u.hw)(s.abortHandle),n?s.reject(r.Z.fromJSON(JSON.parse(n))):s.resolve(o))}_post(e,t,n){return(0,f.oi)(this.worker,e,t,n)}}let R=(0,o.Z)("esri-workers-debug")?1:(0,o.Z)("host-browser")?navigator.hardwareConcurrency-1:0;R||(R=(0,o.Z)("safari")&&(0,o.Z)("mac")||(0,o.Z)("trident")?7:2);let H=0;const x=[];async function M(e,t){const n=new i.Z;return await n.open(e,t),n}async function q(e,t={}){if("string"!=typeof e)throw new r.Z("workers:undefined-module","modulePath is missing");let n=t.strategy||"distributed";if((0,o.Z)("host-webworker")&&!(0,o.Z)("esri-workers")&&(n="local"),"local"===n){let n=await a.default.loadWorker(e);n||(n=await import(e)),(0,s.k_)(t.signal);const r=t.client||n;return M([a.default.connect(n)],{...t,client:r})}if(await async function(){if(j)return j;F=new AbortController;const e=[];for(let t=0;t<R;t++){const n=D.create(t).then((e=>(x[t]=e,e)));e.push(n)}return j=Promise.all(e),j}(),(0,s.k_)(t.signal),"dedicated"===n){const n=H++%R;return M([await x[n].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const n=Math.min(t.maxNumWorkers,R);if(n<R){const r=new Array(n);for(let o=0;o<n;++o){const n=H++%R;r[o]=x[n].open(e,t)}return M(r,t)}}return M(x.map((n=>n.open(e,t))),t)}let F,j=null},8667:(e,t,n)=>{n.d(t,{CJ:()=>R,Cz:()=>N,D$:()=>T,ED:()=>b,G0:()=>C,Gg:()=>v,LV:()=>E,Nm:()=>k,Sp:()=>Z,TE:()=>m,U1:()=>O,W4:()=>w,Y4:()=>x,cv:()=>S,e5:()=>_,f3:()=>P,fS:()=>g,j2:()=>D,jU:()=>d,kK:()=>p,kQ:()=>M,og:()=>A,oq:()=>u,r3:()=>h,rd:()=>I,sz:()=>H,uh:()=>y,wf:()=>L,z7:()=>f}),n(66577);var r=n(78346),o=(n(94139),n(33955));function s(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function i(e){return e?Array.isArray(e)?e.map(i):e.toJSON?e.toJSON():e:e}function a(e){return Array.isArray(e)?e.map((e=>(0,o.im)(e))):(0,o.im)(e)}let l;async function c(e,t){return(await async function(){return l||(l=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:e,parameters:i(t)})}async function u(e,t){return a(await c("clip",[s(e),e,t]))}async function f(e,t){return a(await c("cut",[s(e),e,t]))}function h(e,t){return c("contains",[s(e),e,t])}function d(e,t){return c("crosses",[s(e),e,t])}function m(e,t,n){return c("distance",[s(e),e,t,n])}function g(e,t){return c("equals",[s(e),e,t])}function p(e,t){return c("intersects",[s(e),e,t])}function w(e,t){return c("touches",[s(e),e,t])}function y(e,t){return c("within",[s(e),e,t])}function b(e,t){return c("disjoint",[s(e),e,t])}function k(e,t){return c("overlaps",[s(e),e,t])}function E(e,t,n){return c("relate",[s(e),e,t,n])}function v(e){return c("isSimple",[s(e),e])}async function A(e){return a(await c("simplify",[s(e),e]))}async function _(e,t){return a(await c("difference",[s(e),e,t]))}async function Z(e,t){return a(await c("symmetricDifference",[s(e),e,t]))}async function L(e,t){return a(await c("intersect",[s(e),e,t]))}async function C(e,t=null){const n=function(e,t){let n;return Array.isArray(e)?n=e:(n=[],n.push(e),null!=t&&n.push(t)),n}(e,t);return a(await c("union",[s(n),n]))}async function S(e,t,n,r,o,i){return a(await c("offset",[s(e),e,t,n,r,o,i]))}async function P(e,t,n,r=!1){const o=[s(e),e,t,n,r];return a(await c("buffer",o))}async function I(e,t,n,r,o,i){const l=[s(e),e,t,n,r,o,i];return a(await c("geodesicBuffer",l))}async function O(e,t,n){if(null==e)throw new q;const r=e.spatialReference;if(null==(n=n??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent?.center}(e)))throw new q;const o=e.constructor.fromJSON(await c("rotate",[r,e,t,n]));return o.spatialReference=r,o}async function T(e,t,n,r){return a(await c("generalize",[s(e),e,t,n,r]))}async function N(e,t,n){return a(await c("densify",[s(e),e,t,n]))}async function D(e,t,n,r=0){return a(await c("geodesicDensify",[s(e),e,t,n,r]))}function R(e,t){return c("planarArea",[s(e),e,t])}function H(e,t){return c("planarLength",[s(e),e,t])}function x(e,t,n){return c("geodesicArea",[s(e),e,t,n])}function M(e,t,n){return c("geodesicLength",[s(e),e,t,n])}class q extends Error{constructor(){super("Illegal Argument Exception")}}},2587:(e,t,n)=>{n(90344),n(18848),n(940),n(70171);var r=n(94443),o=n(3172),s=n(20102),i=n(70586);async function a(e){if((0,i.pC)(l.fetchBundleAsset))return l.fetchBundleAsset(e);const t=await(0,o.default)(e,{responseType:"text"});return JSON.parse(t.data)}const l={};var c,u=n(99880);(0,r.tz)((c={pattern:"esri/",location:u.V},new class{constructor({base:e="",pattern:t,location:n=new URL(window.location.href)}){let r;r="string"==typeof n?e=>new URL(e,new URL(n,window.location.href)).href:n instanceof URL?e=>new URL(e,n).href:n,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,n,o){const i=t.exec(n);if(!i)throw new s.Z("esri-intl:invalid-bundle",`Bundle id "${n}" is not compatible with the pattern "${t}"`);const l=i[1]?`${i[1]}/`:"",c=i[2],u=(0,r.Su)(o),f=`${l}${c}.json`,h=u?`${l}${c}_${u}.json`:f;let d;try{d=await a(e(h))}catch(t){if(h===f)throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:t});try{d=await a(e(f))}catch(e){throw new s.Z("intl:unknown-bundle",`Bundle "${n}" cannot be loaded`,{error:e})}}return d}(this.getAssetUrl,this.matcher,e,t)}}(c)))},90344:(e,t,n)=>{n.d(t,{Ze:()=>p,p6:()=>w});var r=n(35454),o=n(70171);const s={year:"numeric",month:"numeric",day:"numeric"},i={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},u={...c,second:"numeric"},f={"short-date":s,"short-date-short-time":{...s,...c},"short-date-short-time-24":{...s,...c,hour12:!1},"short-date-long-time":{...s,...u},"short-date-long-time-24":{...s,...u,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...c},"short-date-le-short-time-24":{...s,...c,hour12:!1},"short-date-le-long-time":{...s,...u},"short-date-le-long-time-24":{...s,...u,hour12:!1},"long-month-day-year":i,"long-month-day-year-short-time":{...i,...c},"long-month-day-year-short-time-24":{...i,...c,hour12:!1},"long-month-day-year-long-time":{...i,...u},"long-month-day-year-long-time-24":{...i,...u,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...c},"day-short-month-year-short-time-24":{...a,...c,hour12:!1},"day-short-month-year-long-time":{...a,...u},"day-short-month-year-long-time-24":{...a,...u,hour12:!1},"long-date":l,"long-date-short-time":{...l,...c},"long-date-short-time-24":{...l,...c,hour12:!1},"long-date-long-time":{...l,...u},"long-date-long-time-24":{...l,...u,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":u},h=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),d=(h.apiValues,h.toJSON.bind(h),h.fromJSON.bind(h),{ar:"ar-u-nu-latn-ca-gregory"});let m=new WeakMap,g=f["short-date-short-time"];function p(e){return e?f[e]:null}function w(e,t){return function(e){const t=e||g;let n=m.get(t);if(!n){const e=(0,o.Kd)(),r=d[(0,o.Kd)()]||e;n=new Intl.DateTimeFormat(r,t),m.set(t,n)}return n}(t).format(e)}(0,o.Ze)((()=>{m=new WeakMap,g=f["short-date-short-time"]}))},94443:(e,t,n)=>{n.d(t,{ME:()=>d,Su:()=>m,tz:()=>h});var r=n(20102),o=n(95330),s=n(70171);const i=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){return a[e]??!1}const c=[],u=new Map;function f(e){for(const t of u.keys())g(e.pattern,t)&&u.delete(t)}function h(e){return c.includes(e)||(f(e),c.unshift(e)),{remove(){const t=c.indexOf(e);t>-1&&(c.splice(t,1),f(e))}}}async function d(e){const t=(0,s.Kd)();u.has(e)||u.set(e,async function(e,t){const n=[];for(const r of c)if(g(r.pattern,e))try{return await r.fetchMessageBundle(e,t)}catch(e){n.push(e)}if(n.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:n});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const n=u.get(e);return n&&await p.add(n),n}function m(e){if(!i.test(e))return null;const t=i.exec(e);if(null===t)return null;const[,n,r]=t,o=n+(r?"-"+r.toUpperCase():"");return l(o)?o:l(n)?n:null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,s.Ze)((()=>{u.clear()}));const p=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,o.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,n)=>{n.d(t,{sh:()=>l,uf:()=>c});var r=n(70586),o=n(70171);const s={ar:"ar-u-nu-latn"};let i=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function c(e,t){return-0===e&&(e=0),function(e){const t=e||a;if(!i.has(t)){const n=(0,o.Kd)(),r=s[(0,o.Kd)()]||n;i.set(t,new Intl.NumberFormat(r,e))}return(0,r.j0)(i.get(t))}(t).format(e)}(0,o.Ze)((()=>{i=new WeakMap,a={}}))},940:(e,t,n)=>{n.d(t,{n:()=>c});var r=n(92604),o=n(78286),s=n(19153),i=n(90344),a=n(18848);const l=r.Z.getLogger("esri.intl.substitute");function c(e,t,n={}){const{format:r={}}=n;return(0,s.gx)(e,(e=>function(e,t,n){let r,s;const i=e.indexOf(":");if(-1===i?r=e.trim():(r=e.slice(0,i).trim(),s=e.slice(i+1).trim()),!r)return"";const a=(0,o.hS)(r,t);if(null==a)return"";const l=(s?n?.[s]:null)??n?.[r];return l?u(a,l):s?f(a,s):h(a)}(e,t,r)))}function u(e,t){switch(t.type){case"date":return(0,i.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),h(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,i.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):h(e)}}function h(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,i.p6)(e):""}}},3172:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var r=n(68773),o=n(40330),s=n(20102),i=n(80442),a=n(22974),l=n(70586),c=n(95330),u=n(17452),f=n(71058),h=n(85958);async function d(e,t){const a=(0,u.HK)(e),w=(0,u.jc)(e);w||a||(e=(0,u.Fv)(e));const y={url:e,requestOptions:{...(0,l.Wg)(t)}};let b=(0,u.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let n,r;try{r=await e.before(t)}catch(e){n=A("request:interceptor",e,t)}if((r instanceof Error||r instanceof s.Z)&&(n=A("request:interceptor",r,t)),n)throw e.error&&e.error(n),n;return r}}(b,y);if(null!=e)return{data:e,getHeader:k,requestOptions:y.requestOptions,url:y.url};b.after||b.error||(b=null)}if(e=y.url,"image"===(t=y.requestOptions).responseType){if((0,i.Z)("host-webworker")||(0,i.Z)("host-node"))throw A("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),y)}else if(a)throw A("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),y);if("head"===t.method){if(t.body)throw A("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(a||w)throw A("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}if(await async function(){(0,i.Z)("host-webworker")?m||(m=await n.e(9884).then(n.bind(n,29884))):d._abortableFetch||(d._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const E=new AbortController;(0,c.fu)(t,(()=>E.abort()));const v={controller:E,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:b,params:y,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},C=await async function(e){let t,n;await async function(e){const t=e.params.url,n=e.params.requestOptions,s=e.controller.signal,i=n.body;let a=null,l=null;if(p&&"HTMLFormElement"in globalThis&&(i instanceof FormData?a=i:i instanceof HTMLFormElement&&(a=new FormData(i))),"string"==typeof i&&(l=i),e.fetchOptions={cache:n.cacheBust&&!d._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:n.headers||{},method:"head"===n.method?"HEAD":"GET",mode:"cors",priority:g.priority,redirect:"follow",signal:s},(a||l)&&(e.fetchOptions.body=a||l),"anonymous"===n.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||n.query?.token||a?.get("token")),!e.hasToken&&r.Z.apiKey&&(0,f.r)(t)&&(n.query||(n.query={}),n.query.token=r.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!Z(t)&&!(0,c.Hc)(s)){let r;"immediate"===n.authMode?(await _(),r=await o.id.getCredential(t,{signal:s}),e.credential=r):"no-prompt"===n.authMode?(await _(),r=await o.id.getCredential(t,{prompt:!1,signal:s}).catch((()=>{})),e.credential=r):o.id&&(r=o.id.findCredential(t)),r&&(e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[t,n]=await L(e)}while(!await S(e,t,n))}catch(n){const r=A("request:server",n,e.params,t);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const s=e.params.url;if(n&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(s)){if(!e.hasToken&&!e.credentialToken&&n.user?.username&&!(0,u.kl)(s)){const e=(0,u.P$)(s,!0);e&&g.trustedServers.push(e)}Array.isArray(n.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(n.authorizedCrossOriginNoCorsDomains)}const i=e.credential;if(i&&o.id){const e=o.id.findServerInfo(i.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,i.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:n,getHeader:t?e=>t?.headers.get(e):k,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(v);return b?.after?.(C),C}let m;const g=r.Z.request,p="FormData"in globalThis,w=[499,498,403,401],y=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],k=()=>null,E=Symbol();function v(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.kl)(t)}function A(e,t,n,r){let o="Error";const i={url:n.url,requestOptions:n.requestOptions,getHeader:k,ssl:!1};if(t instanceof s.Z)return t.details?(t.details=(0,a.d9)(t.details),t.details.url=n.url,t.details.requestOptions=n.requestOptions):t.details=i,t;if(t){const e=r&&(e=>r.headers.get(e)),n=r&&r.status,s=t.message;s&&(o=s),e&&(i.getHeader=e),i.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||n||0,i.subCode=t.subcode,i.messageCode=t.messageCode,"string"==typeof t.details?i.messages=[t.details]:i.messages=t.details,i.raw=E in t?t[E]:t}return(0,c.D_)(t)?(0,c.zE)():new s.Z(e,o,i)}async function _(){o.id||await Promise.all([n.e(280),n.e(1400),n.e(1761)]).then(n.bind(n,55142))}function Z(e){return b.some((t=>t.test(e)))}async function L(e){let t=e.params.url;const n=e.params.requestOptions,r=e.fetchOptions??{},s=(0,u.jc)(t)||(0,u.HK)(t),a=n.responseType||"json",l=s?0:null!=n.timeout?n.timeout:g.timeout;let f=!1;if(!s){e.useSSL&&(t=(0,u.hO)(t)),n.cacheBust&&"default"===r.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let s={...n.query};e.credentialToken&&(s.token=e.credentialToken);let a=(0,u.B7)(s);(0,i.Z)("esri-url-encodes-apostrophe")&&(a=a.replace(/'/g,"%27"));const l=t.length+1+a.length;let c;f="delete"===n.method||"post"===n.method||"put"===n.method||!!n.body||l>g.maxUrlLength;const d=n.useProxy||!!(0,u.ed)(t);if(d){const e=(0,u.b7)(t);c=e.path,!f&&c.length+1+l>g.maxUrlLength&&(f=!0),e.query&&(s={...e.query,...s})}if("HEAD"===r.method&&(f||d)){if(f){if(l>g.maxUrlLength)throw A("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw A("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw A("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(f?(r.method="delete"===n.method?"DELETE":"put"===n.method?"PUT":"POST",n.body?t=(0,u.fl)(t,s):(r.body=(0,u.B7)(s),r.headers||(r.headers={}),r.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,s),d&&(e.useProxy=!0,t=`${c}?${t}`),s.token&&p&&r.body instanceof FormData&&!/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)&&r.body.set("token",s.token),n.hasOwnProperty("withCredentials"))e.withCredentials=n.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(o.id){const n=o.id.findServerInfo(t);n&&n.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(r.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(f?(0,u.fl)(t,s):t))}let m,w,y=0,b=!1;l>0&&(y=setTimeout((()=>{b=!0,e.controller.abort()}),l));try{if("native-request-init"===n.responseType)w=r,w.url=t;else if("image"!==n.responseType||"default"!==r.cache||"GET"!==r.method||f||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(n.headers)||!s&&!e.useProxy&&g.proxyUrl&&!v(t)){if(m=await d._abortableFetch(t,r),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===n.responseType)w=m;else if("HEAD"!==r.method)if(m.ok){switch(a){case"array-buffer":w=await m.arrayBuffer();break;case"blob":case"image":w=await m.blob();break;default:w=await m.text()}if(y&&(clearTimeout(y),y=0),"json"===a||"xml"===a||"document"===a)if(w)switch(a){case"json":w=JSON.parse(w);break;case"xml":w=C(w,"application/xml");break;case"document":w=C(w,"text/html")}else w=null;if(w){if("array-buffer"===a||"blob"===a){const e=m.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&w["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(w).json();e.error&&(w=e)}catch{}}"image"===a&&w instanceof Blob&&(w=await P(URL.createObjectURL(w),e,!0))}}else w=await m.text()}else w=await P(t,e)}catch(r){if("AbortError"===r.name){if(b)throw new Error("Timeout exceeded");throw(0,c.zE)("Request canceled")}if(!(!m&&r instanceof TypeError&&g.proxyUrl)||n.body||"delete"===n.method||"head"===n.method||"post"===n.method||"put"===n.method||e.useProxy||v(t))throw r;e.redoRequest=!0,(0,u.tD)({proxyUrl:g.proxyUrl,urlPrefix:(0,u.P$)(t)??""})}finally{y&&clearTimeout(y)}return[m,w]}function C(e,t){let n;try{n=(new DOMParser).parseFromString(e,t)}catch{}if(!n||n.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return n}async function S(e,t,n){if(e.redoRequest)return e.redoRequest=!1,!1;const r=e.params.requestOptions;if(!t||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let s,i;if(!t.ok)throw s=new Error(`Unable to load ${t.url} status: ${t.status}`),s[E]=n,s;n?.error&&(s=n.error);let a,l=null;s&&(i=Number(s.code),l=s.hasOwnProperty("subcode")?Number(s.subcode):null,a=s.messageCode,a=a&&a.toUpperCase());const c=r.authMode;if(403===i&&(4===l||s.message&&s.message.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===i)&&void 0!==i&&w.includes(i)&&!Z(e.params.url)&&(403!==i||a&&!y.includes(a)&&(null==l||2===l&&e.credentialToken))){await _();try{const t=await o.id.getCredential(e.params.url,{error:A("request:server",s,e.params),prompt:"no-prompt"!==c,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===c)return e.credential=void 0,e.credentialToken=void 0,!1;s=t}}if(s)throw s;return!0}function P(e,t,n=!1){const r=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=g.priority,o.src=e,(0,h.fY)(o,e,n,r)}d._abortableFetch=null,d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function s(e){const t=(0,r.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,n)=>{n.d(t,{Hu:()=>u,fY:()=>l,jH:()=>f,jz:()=>h});var r=n(68773),o=n(80442),s=n(70586),i=n(95330),a=n(17452);function l(e,t,n=!1,r){return new Promise(((a,l)=>{if((0,i.Hc)(r))return void l(c());let u=()=>{d(),l(new Error(`Unable to load ${t}`))},f=()=>{const t=e;d(),a(t)},h=()=>{if(!e)return;const t=e;d(),t.src="",l(c())};const d=()=>{(0,o.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",f)),u=null,f=null,e=null,(0,s.pC)(r)&&r.removeEventListener("abort",h),h=null,n&&URL.revokeObjectURL(t)};(0,s.pC)(r)&&r.addEventListener("abort",h),(0,o.Z)("esri-image-decode")?e.decode().then(f,u):(e.addEventListener("error",u),e.addEventListener("load",f))}))}function c(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function u(e){r.Z.request.crossOriginNoCorsDomains||(r.Z.request.crossOriginNoCorsDomains={});const t=r.Z.request.crossOriginNoCorsDomains;for(let n of e)n=n.toLowerCase(),/^https?:\/\//.test(n)?t[(0,a.P$)(n)??""]=0:(t[(0,a.P$)("http://"+n)??""]=0,t[(0,a.P$)("https://"+n)??""]=0)}function f(e){const t=r.Z.request.crossOriginNoCorsDomains;if(t){let n=(0,a.P$)(e);if(n)return n=n.toLowerCase(),!(0,a.D6)(n,(0,a.TI)())&&t[n]<Date.now()-36e5}return!1}async function h(e){const t=r.Z.request.crossOriginNoCorsDomains,n=(0,a.P$)(e);t&&n&&(t[n.toLowerCase()]=Date.now());const o=(0,a.mN)(e);e=o.path,"json"===o.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);