@arcgis/core 4.27.0-next.20230521 → 4.27.0-next.20230522

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 (173) hide show
  1. package/Graphic.js +1 -1
  2. package/arcade/featureset/actions/SpatialFilter.js +1 -1
  3. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  4. package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
  5. package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
  6. package/arcade/functions/featuresetbase.js +1 -1
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/0d02856e55d20b99fc8b.js +1 -0
  9. package/assets/esri/core/workers/chunks/{69242c66492717c7388c.js → 0fcb8d408696075338e2.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{1edc5c06874cb12c5478.js → 17f313e548281bb5db3e.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{b91c155de9a89e4e6971.js → 187c3b971ed0fc4363ef.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{85c6ce93aa41e6b65997.js → 18db07d739a713cc0465.js} +1 -1
  13. package/assets/esri/core/workers/chunks/28286014a575042619ee.js +1 -0
  14. package/assets/esri/core/workers/chunks/{692dfeb2e255fdc0ade2.js → 39288fa69561d21f04f8.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{2b9d3e60977934a6d471.js → 3bc6b5f0643364749ef8.js} +1 -1
  16. package/assets/esri/core/workers/chunks/45e5ad704d18dd0857ce.js +1 -0
  17. package/assets/esri/core/workers/chunks/{62d9d15f0d00a75da42c.js → 4670b17ae2ed3c13d344.js} +1 -1
  18. package/assets/esri/core/workers/chunks/4d24efa01d1accc5a5f0.js +1 -0
  19. package/assets/esri/core/workers/chunks/52575f021a14dd961de8.js +1 -0
  20. package/assets/esri/core/workers/chunks/{6312783626bacf52df7a.js → 55486c644e8b01326a0d.js} +1 -1
  21. package/assets/esri/core/workers/chunks/5576858f56314afcb4d5.js +1 -0
  22. package/assets/esri/core/workers/chunks/5a4c04bf4f57e74457c5.js +1 -0
  23. package/assets/esri/core/workers/chunks/70d6e5edf05ef7079fa8.js +1 -0
  24. package/assets/esri/core/workers/chunks/71bdf8f10aee0077f681.js +1 -0
  25. package/assets/esri/core/workers/chunks/72b2c3c8e76da699690c.js +1 -0
  26. package/assets/esri/core/workers/chunks/78ce0b1af62435d8ebf4.js +1 -0
  27. package/assets/esri/core/workers/chunks/791f529e90135398b3d5.js +1 -0
  28. package/assets/esri/core/workers/chunks/8d3abfe6fdc5ac8d6cb7.js +1 -0
  29. package/assets/esri/core/workers/chunks/96d339abcd917f1f0ae1.js +1 -0
  30. package/assets/esri/core/workers/chunks/97cdbec7532cfcdf9ad2.js +1 -0
  31. package/assets/esri/core/workers/chunks/{f3f6035a17f7dcd19675.js → 9ab400a89dd701778d2c.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{1488b3d48232844b8bb4.js → 9fe349f43d5ff5a4ac2d.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{22396dd3717d17a5d235.js → a1c31bb8c12831539328.js} +1 -1
  34. package/assets/esri/core/workers/chunks/b4e2dc6b3d06b426e596.js +1 -0
  35. package/assets/esri/core/workers/chunks/{48abcb2d88f22e6e9fde.js → c2cb9fa18c77f0c5104e.js} +1 -1
  36. package/assets/esri/core/workers/chunks/cad7a2092ea7f51dbd8b.js +1 -0
  37. package/assets/esri/core/workers/chunks/d725dbbdeb05322e6d88.js +1 -0
  38. package/assets/esri/core/workers/chunks/df3e497d12ed77bae168.js +1 -0
  39. package/assets/esri/core/workers/chunks/{4d5f71d84c85f45c97ea.js → ed6f6e539a915ba9e64d.js} +1 -1
  40. package/assets/esri/core/workers/chunks/fb080339bfaf32731ca6.js +1 -0
  41. package/assets/esri/themes/base/_core.scss +2 -0
  42. package/assets/esri/themes/base/widgets/_FloorFilter.scss +6 -0
  43. package/assets/esri/themes/base/widgets/_UtilityNetworkValidateTopology.scss +40 -0
  44. package/assets/esri/themes/dark/main.css +1 -1
  45. package/assets/esri/themes/light/main.css +1 -1
  46. package/assets/esri/themes/light/view.css +1 -1
  47. package/assets/esri/widgets/Editor/t9n/Editor_ar.json +1 -1
  48. package/assets/esri/widgets/Editor/t9n/Editor_bg.json +1 -1
  49. package/assets/esri/widgets/Editor/t9n/Editor_bs.json +1 -1
  50. package/assets/esri/widgets/Editor/t9n/Editor_ca.json +1 -1
  51. package/assets/esri/widgets/Editor/t9n/Editor_cs.json +1 -1
  52. package/assets/esri/widgets/Editor/t9n/Editor_da.json +1 -1
  53. package/assets/esri/widgets/Editor/t9n/Editor_de.json +1 -1
  54. package/assets/esri/widgets/Editor/t9n/Editor_el.json +1 -1
  55. package/assets/esri/widgets/Editor/t9n/Editor_es.json +1 -1
  56. package/assets/esri/widgets/Editor/t9n/Editor_et.json +1 -1
  57. package/assets/esri/widgets/Editor/t9n/Editor_fi.json +1 -1
  58. package/assets/esri/widgets/Editor/t9n/Editor_fr.json +1 -1
  59. package/assets/esri/widgets/Editor/t9n/Editor_he.json +1 -1
  60. package/assets/esri/widgets/Editor/t9n/Editor_hr.json +1 -1
  61. package/assets/esri/widgets/Editor/t9n/Editor_hu.json +1 -1
  62. package/assets/esri/widgets/Editor/t9n/Editor_id.json +1 -1
  63. package/assets/esri/widgets/Editor/t9n/Editor_it.json +1 -1
  64. package/assets/esri/widgets/Editor/t9n/Editor_ja.json +1 -1
  65. package/assets/esri/widgets/Editor/t9n/Editor_ko.json +1 -1
  66. package/assets/esri/widgets/Editor/t9n/Editor_lt.json +1 -1
  67. package/assets/esri/widgets/Editor/t9n/Editor_lv.json +1 -1
  68. package/assets/esri/widgets/Editor/t9n/Editor_nb.json +1 -1
  69. package/assets/esri/widgets/Editor/t9n/Editor_nl.json +1 -1
  70. package/assets/esri/widgets/Editor/t9n/Editor_pl.json +1 -1
  71. package/assets/esri/widgets/Editor/t9n/Editor_pt-BR.json +1 -1
  72. package/assets/esri/widgets/Editor/t9n/Editor_pt-PT.json +1 -1
  73. package/assets/esri/widgets/Editor/t9n/Editor_ro.json +1 -1
  74. package/assets/esri/widgets/Editor/t9n/Editor_ru.json +1 -1
  75. package/assets/esri/widgets/Editor/t9n/Editor_sk.json +1 -1
  76. package/assets/esri/widgets/Editor/t9n/Editor_sl.json +1 -1
  77. package/assets/esri/widgets/Editor/t9n/Editor_sr.json +1 -1
  78. package/assets/esri/widgets/Editor/t9n/Editor_sv.json +1 -1
  79. package/assets/esri/widgets/Editor/t9n/Editor_th.json +1 -1
  80. package/assets/esri/widgets/Editor/t9n/Editor_tr.json +1 -1
  81. package/assets/esri/widgets/Editor/t9n/Editor_uk.json +1 -1
  82. package/assets/esri/widgets/Editor/t9n/Editor_vi.json +1 -1
  83. package/assets/esri/widgets/Editor/t9n/Editor_zh-CN.json +1 -1
  84. package/assets/esri/widgets/Editor/t9n/Editor_zh-HK.json +1 -1
  85. package/assets/esri/widgets/Editor/t9n/Editor_zh-TW.json +1 -1
  86. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology.json +1 -1
  87. package/assets/esri/widgets/UtilityNetworkValidateTopology/t9n/UtilityNetworkValidateTopology_en.json +1 -1
  88. package/chunks/mat4.js +1 -1
  89. package/core/accessorSupport/write.js +1 -1
  90. package/core/fontUtils.js +1 -1
  91. package/core/libs/gl-matrix-2/math/mat4.js +1 -1
  92. package/geometry/Mesh.js +1 -1
  93. package/geometry/support/MeshGeoreferencedRelativeVertexSpace.d.ts +4 -0
  94. package/geometry/support/MeshGeoreferencedRelativeVertexSpace.js +5 -0
  95. package/geometry/support/MeshGeoreferencedVertexSpace.d.ts +4 -0
  96. package/geometry/support/MeshGeoreferencedVertexSpace.js +5 -0
  97. package/geometry/support/MeshLocalVertexSpace.d.ts +4 -0
  98. package/geometry/support/MeshLocalVertexSpace.js +5 -0
  99. package/geometry/support/MeshTransform.d.ts +4 -0
  100. package/geometry/support/MeshTransform.js +1 -1
  101. package/geometry/support/meshUtils/ElevationSamplerWorker.js +1 -1
  102. package/geometry/support/meshUtils/centerAt.js +1 -1
  103. package/geometry/support/meshUtils/exporters/gltf/geometry.js +1 -1
  104. package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
  105. package/geometry/support/meshUtils/geographicUtils.js +1 -1
  106. package/geometry/support/meshUtils/georeference.js +1 -1
  107. package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
  108. package/geometry/support/meshUtils/merge.js +1 -1
  109. package/geometry/support/meshUtils/offset.js +1 -1
  110. package/geometry/support/meshUtils/primitives.js +1 -1
  111. package/geometry/support/meshUtils/rotate.js +1 -1
  112. package/geometry/support/meshUtils/scale.js +1 -1
  113. package/interfaces.d.ts +227 -1
  114. package/layers/VoxelWasmPerSceneView.js +1 -1
  115. package/layers/graphics/data/attributeSupport.js +1 -1
  116. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  117. package/networks/support/TopologyValidationJobInfo.js +1 -1
  118. package/package.json +1 -1
  119. package/popup/FieldInfo.js +1 -1
  120. package/portal/Portal.js +1 -1
  121. package/rest/support/FeatureSet.js +1 -1
  122. package/rest/support/meshFeatureSet.js +1 -1
  123. package/support/revision.js +1 -1
  124. package/symbols/cim/cimAnalyzer.js +1 -1
  125. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  126. package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
  127. package/views/3d/interactive/editingTools/meshFastUpdateUtils.js +1 -1
  128. package/views/3d/interactive/editingTools/moveGraphic/GraphicMoveTool.js +1 -1
  129. package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
  130. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
  131. package/views/3d/interactive/editingTools/transformGraphic/undoRecords.js +1 -1
  132. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  133. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  134. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  135. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  136. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  137. package/views/3d/state/utils/navigationUtils.js +1 -1
  138. package/views/3d/support/DisplayQualityProfile.js +1 -1
  139. package/views/3d/support/QualitySettings.js +1 -1
  140. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  141. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  142. package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
  143. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  144. package/views/3d/webgl-engine/lib/TextRenderParameters.js +1 -1
  145. package/views/interactive/dragEventPipeline.js +1 -1
  146. package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
  147. package/widgets/Editor/Edits.js +1 -1
  148. package/widgets/Editor/Upload.js +1 -1
  149. package/widgets/Editor/workflowUtils.js +1 -1
  150. package/widgets/Feature/support/featureUtils.js +1 -1
  151. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  152. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.js +5 -0
  153. package/widgets/UtilityNetworkValidateTopology.js +5 -0
  154. package/assets/esri/core/workers/chunks/163bf2e13abbdd298374.js +0 -1
  155. package/assets/esri/core/workers/chunks/23f73f81aea461c0c6e6.js +0 -1
  156. package/assets/esri/core/workers/chunks/2640204c4655aa535ccb.js +0 -1
  157. package/assets/esri/core/workers/chunks/2bf42d060f877566b989.js +0 -1
  158. package/assets/esri/core/workers/chunks/34ec9623a1bece86a82b.js +0 -1
  159. package/assets/esri/core/workers/chunks/3bf52139340827794c3b.js +0 -1
  160. package/assets/esri/core/workers/chunks/52d02021e858820bc4fa.js +0 -1
  161. package/assets/esri/core/workers/chunks/64b8f65e2ef6cbf08380.js +0 -1
  162. package/assets/esri/core/workers/chunks/78aede1e114deefacb54.js +0 -1
  163. package/assets/esri/core/workers/chunks/7ef100158ca28631fcaf.js +0 -1
  164. package/assets/esri/core/workers/chunks/93ad67930aa7d4a4b0ac.js +0 -1
  165. package/assets/esri/core/workers/chunks/964795dfb57f0d0635d0.js +0 -1
  166. package/assets/esri/core/workers/chunks/99ce0a202dcd3d7dc290.js +0 -1
  167. package/assets/esri/core/workers/chunks/abe6c99a1a719543dbe8.js +0 -1
  168. package/assets/esri/core/workers/chunks/c3bf44146fddfe8990f7.js +0 -1
  169. package/assets/esri/core/workers/chunks/cbe817e966b57599bafd.js +0 -1
  170. package/assets/esri/core/workers/chunks/e15b5d7e46a834eacc57.js +0 -1
  171. package/assets/esri/core/workers/chunks/e1e0b3580e2c3098c9f4.js +0 -1
  172. package/assets/esri/core/workers/chunks/e305d20e4424451cab5b.js +0 -1
  173. package/assets/esri/core/workers/chunks/e6836c84470fb6bd25bf.js +0 -1
@@ -1 +1 @@
1
- var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{default:()=>s}),r(80442);var n=r(78286),o=r(17202);const s={analysisTheme:{accentColor:[255,127,0],textColor:"white"},apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!1,portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.27.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.defaultAssetsPath=s.assetsPath}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){super(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(68773),o=(r(80442),r(19153));const s={info:0,warn:1,error:2,none:3};class i{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,i._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get test(){return{resetLoggers(e=new Map){const t=i._loggers;return i._loggers=e,t},set throttlingDisabled(e){i._throttlingDisabled=e}}}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,i._loggers.get(e)||new i({module:e})}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!i._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._scheduleTickCounterIncrement()}for(const t of n.default.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.default.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}_argsToKey(...e){return(0,o.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then((()=>{i._tickCounter++,i._tickCounterScheduled=!1})))}}i._loggers=new Map,i._tickCounter=0,i._tickCounterScheduled=!1,i._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,r)=>""===r?"$":((0,n.hS)(r,t)??"").toString()))}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{FY:()=>g,Od:()=>m,SO:()=>f,Vx:()=>s,a9:()=>l,cq:()=>h,e$:()=>p,e5:()=>i,fS:()=>o,pC:()=>y,w6:()=>u,zG:()=>a});var n=r(77734);function o(e,t,r){if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function s(e,t){let r=e.length!==t.length;r&&(e.length=t.length);for(let n=0;n<t.length;++n)e[n]!==t[n]&&(e[n]=t[n],r=!0);return r}function i(e,t,r){let n,o;return r?(n=t.filter((t=>!e.some((e=>r(e,t))))),o=e.filter((e=>!t.some((t=>r(t,e)))))):(n=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:n,removed:o}}function a(e){return e&&"number"==typeof e.length}const c=!!Array.prototype.fill;function l(e,t){if(c)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function u(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class f{constructor(){this.last=0}}const d=new f;function h(e,t,r,n){n=n||d;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function p(e,t,r,n){const o=r??e.length,s=h(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const b=new Set;function g(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;b.clear();for(let e=0;e<n;++e)b.add(t[e]);o=o||d;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(b.has(e[t])&&(s&&s.push(e[t]),b.delete(e[t]),e[t]=e[r-1],--r,--t,0===b.size||0===r))return b.clear(),r;for(let t=0;t<i;++t)if(b.has(e[t])&&(s&&s.push(e[t]),b.delete(e[t]),e[t]=e[r-1],--r,--t,0===b.size||0===r))return b.clear(),r;return b.clear(),r}function m(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function y(e,t){return null!=e}new n.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{IH:()=>s,on:()=>o,vT:()=>n})},80442:(e,t,r)=>{"use strict";let n;function o(e){return"function"==typeof n[e]?n[e]=n[e](globalThis):n[e]}r.d(t,{Z:()=>o}),n=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,r,s)=>((s||void 0===n[e])&&(n[e]=t),r&&o(e)),o.cache=n,o.add("esri-deprecation-warnings",!0),o.add("esri-force-fullscreen-debug",!1),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),o.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),o.add("esri-atomics","Atomics"in globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("workers-pool-size",8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-point-coverage",.1),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!1),o.add("heatmap-force-raster",!1),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),o.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{o.add("esri-image-decode",!0,!0,!0)})).catch((()=>{o.add("esri-image-decode",!1,!0,!0)}))}return!1})),o.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,r)=>{"use strict";r.d(t,{Vo:()=>a,d9:()=>i,fS:()=>h,tZ:()=>c,y7:()=>p,yd:()=>s});var n=r(67676),o=r(1533);function s(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&s(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=d(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(u(e))return e.clone();const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function a(e){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const t=d(e);if(null!=t)return t;if(l(e)){let t=!0;const r=e.map((e=>{const r=a(e);return null!=e&&null==r&&(t=!1),r}));return t?r:null}if(c(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(!u(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const r of Object.getOwnPropertyNames(e)){const n=e[r],o=a(n);if(null!=n&&null==o)return null;t[r]=o}return t}return null}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function u(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function f(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){if((0,o.W0)(e)||(0,o.lq)(e)||(0,o.KZ)(e)||(0,o.z3)(e)||(0,o.Uc)(e)||(0,o.Hx)(e)||(0,o.ZY)(e)||(0,o.xZ)(e)||(0,o.fS)(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(i(r));return t}return null}function h(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}function p(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!f(e)&&f(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},70586:(e,t,r)=>{"use strict";function n(e,t){return null!=e?t(e):null}function o(e,t){return s(e,t),e}function s(e,t){if(null==e)throw new Error(t??"value is None")}function i(e){return e?.destroy(),null}function a(e){return e?.dispose(),null}function c(e){return e?.remove(),null}function l(e){return e?.abort(),null}function u(e){return e?.release(),null}function f(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function d(e){return null}function h(e,t){const r=new Array;for(const n of e)r.push(null!=n?t(n):null);return r}function p(e,t){for(const r of e)n(r,t)}function b(e){return e}r.d(t,{Fd:()=>h,IM:()=>l,JR:()=>p,M2:()=>a,O3:()=>s,RY:()=>u,SC:()=>i,_W:()=>f,hw:()=>c,j0:()=>b,s3:()=>o,wN:()=>d,yw:()=>n})},78286:(e,t,r)=>{"use strict";r.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){return t?Object.keys(t).reduce(((e,o)=>{let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,n.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>_,zE:()=>c,hh:()=>P,Ds:()=>S,as:()=>w,WW:()=>v,R8:()=>y,D_:()=>m,Hc:()=>f,y8:()=>O,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>x,gx:()=>k,Hl:()=>g});const n=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(70586));function c(e="Aborted"){return new s.Z("AbortError",e)}function l(e,t="Aborted"){if(f(e))throw c(t)}function u(e){return null!=e?"aborted"in e?e:e.signal:e}function f(e){const t=u(e);return null!=t&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const r=u(e);if(null!=r){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function b(e,t){const r=u(e);if(null!=r)return l(r),(0,i.IH)(r,"abort",(()=>t(c())))}function g(e,t){return null==u(t)?e:new Promise(((r,n)=>{let o=p(t,(()=>n(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}async function w(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map((t=>e[t])),n=await w(r),o={};return t.map(((e,t)=>o[e]=n[t])),o}const t=e;return Promise.allSettled(t).then((e=>Array.from(t,((t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))))}async function v(e){return(await w(e)).filter((e=>!!e.value)).map((e=>e.value))}function _(e,t=void 0,r){const n=new AbortController;return p(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);p(n,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function O(e){return e&&"function"==typeof e.then}function k(e){return O(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,o,s,i=null;const l=(...u)=>{if(r){n=u,s&&s.reject(c()),s=P();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||P(),s=null,t>0){const n=new AbortController;r=k(e(...u,n.signal));const o=r;_(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=k(e(...u));const f=()=>{const e=n;n=o=r=i=null,null!=e&&l(...e)},d=r,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function P(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}async function x(e){await Promise.resolve(),l(e)}},19153:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replaceAll(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replaceAll(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function s(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function a(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function u(e){return"Uint32Array"===e?.constructor?.name}function f(e){return"Float32Array"===e?.constructor?.name}function d(e){return"Float64Array"===e?.constructor?.name}function h(e){return!("buffer"in e)}function p(e){return null!=e?h(e)?8*e.length+12:e.byteLength+b:0}r.d(t,{B3:()=>m,DB:()=>g,Hx:()=>l,KZ:()=>i,Op:()=>w,Q7:()=>y,Uc:()=>c,W0:()=>o,Xw:()=>p,ZY:()=>u,eP:()=>n,fS:()=>d,kJ:()=>h,lq:()=>s,xZ:()=>f,z3:()=>a}),r(80442);const b=145,g=1024;function m(e){return d(e)||f(e)||l(e)||a(e)||o(e)}function y(e){return d(e)||f(e)}function w(e){return d(e)?179769e303:f(e)?3402823e32:u(e)?4294967295:c(e)?65535:s(e)||i(e)?255:l(e)?2147483647:a(e)?32767:o(e)?127:256}},81271:(e,t,r)=>{"use strict";r.d(t,{R9:()=>v,qg:()=>M,tD:()=>R,ZN:()=>me,fl:()=>ye,rS:()=>X,Ie:()=>pe,sJ:()=>te,AH:()=>Y,fw:()=>ne,io:()=>oe,L:()=>P,TI:()=>S,vt:()=>de,oh:()=>J,P$:()=>K,Ml:()=>we,ed:()=>I,b7:()=>C,Zo:()=>U,D6:()=>q,tm:()=>L,YP:()=>Q,jc:()=>V,HK:()=>G,$U:()=>ae,oC:()=>se,kl:()=>B,v_:()=>z,hF:()=>F,_l:()=>re,PF:()=>Z,Fv:()=>D,B7:()=>j,IR:()=>_e,u0:()=>A,Yd:()=>fe,Hu:()=>ge,Qj:()=>he,fZ:()=>ve,hO:()=>ce,mN:()=>x});var n=r(68773),o=r(67676),s=r(20102),i=r(92604),a=r(70586),c=r(19745);const l=i.Z.getLogger("esri.core.urlUtils"),u=n.default.request,f="esri/config: esriConfig.request.proxyUrl is not set.",d=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,h=/^\s*http:/i,p=/^\s*https:/i,b=/^\s*file:/i,g=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,a.j0)(this.uri.match(y));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,a.j0)(this.authority.match(w)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let O=new v(n.default.applicationUrl);let k=function(){const e=(0,a.j0)(O.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${O.scheme}://${O.host}${null!=O.port?`:${O.port}`:""}${t}`}();const S=()=>O,P=()=>k;function x(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=A(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function A(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function T(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>T(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):T(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function C(e=!1){let t,r=u.proxyUrl;if("string"==typeof e){t=ae(e);const n=I(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw l.warn(f),new s.Z("urlutils:proxy-not-set",f);return t&&le()&&(r=ce(r)),x(r)}function M(e){const t=I(e);let r,n;if(t){const e=N(t.proxyUrl);r=e.path,n=e.query?A(e.query):null}if(r){const t=x(e);e=r+"?"+t.path;const o=j({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const E={path:"",query:""};function N(e){const t=e.indexOf("?");return-1!==t?(E.path=e.slice(0,t),E.query=e.slice(t+1)):(E.path=e,E.query=null),E}function $(e){return(e=ue(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=N(e).path),!0)).toLowerCase()}function R(e){const t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=u.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function I(e){const t=u.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function U(e,t){if(!e||!t)return!1;e=W(e),t=W(t);const r=(0,c.a)(e),n=(0,c.a)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&q(e,t,!0)}function L(e,t){return e=W(e),t=W(t),ue(e)===ue(t)}function W(e){const t=(e=D(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function J(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=u.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function q(e,t,r=!1){if(!e||!t)return!1;const n=be(e),o=be(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function B(e){if("string"==typeof e){if(!Q(e))return!0;e=be(e)}if(q(e,O))return!0;const t=u.trustedServers||[];for(let r=0;r<t.length;r++){const n=H(t[r]);for(let t=0;t<n.length;t++)if(q(e,n[t]))return!0}return!1}function H(e){return _[e]||(ie(e)||se(e)?_[e]=[new v(F(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function F(e,t=k,r){return se(e)?r&&r.preserveProtocolRelative?e:"http"===O.scheme&&O.authority===K(e).slice(2)?`http:${e}`:`https:${e}`:ie(e)?e:(0,a.j0)(z("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function Z(e,t=k,r){if(null==e||!Q(e))return e;const n=D(e),o=n.toLowerCase(),s=D(t).toLowerCase().replace(/\/+$/,""),i=r?D(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=s.slice(l-1).replaceAll(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function D(e){return function(e){const t=u.httpsDomains;if(!function(e){return null!=e&&h.test(e)||"http"===O.scheme&&se(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),g.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===O.scheme&&n===O.authority&&!m.test(e)||(le()&&n===O.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||le()&&!I(e))&&(e=ce(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=N(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=F(e=e.trim()))))}function z(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(Q(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&b.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function K(e,t=!1){if(null==e||V(e)||G(e))return null;let r=e.indexOf("://");if(-1===r&&se(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ue(e,!0)),e}function Q(e){return se(e)||ie(e)}function V(e){return null!=e&&"blob:"===e.slice(0,5)}function G(e){return null!=e&&"data:"===e.slice(0,5)}function Y(e){const t=te(e);return t&&t.isBase64?function(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}(t.data):null}function X(e){return btoa(String.fromCharCode.apply(null,e)).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ne(e){const t=Y(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function oe(e,t){!function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}(e,t)}function se(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ie(e){return null!=e&&d.test(e)}function ae(e){return null!=e&&p.test(e)||"https"===O.scheme&&se(e)}function ce(e){return se(e)?`https:${e}`:e.replace(h,"https:")}function le(){return"https"===O.scheme}function ue(e,t=!1){return se(e)?e.slice(2):(e=e.replace(d,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function fe(e){let t=0;if(Q(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function de(e,t){if(!e)return"";const r=x(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(!t?.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function he(e){return e.replace(/\/+$/,"")}function pe(e,t,r){if(!(t&&r&&e&&Q(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function be(e){return"string"==typeof e?new v(F(e)):(e.scheme||(e.scheme=O.scheme),e)}function ge(e,t){const r=x(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function me(e,t,r){const n=x(e),o=n.query||{};return o[t]=String(r),`${n.path}?${j(o)}`}function ye(e,t){const r=x(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=j(n);return o?`${r.path}?${o}`:r.path}function we(e){if(null==e)return null;const t=e.match(Oe);return t?t[2]:null}function ve(e){if(null==e)return null;const t=e.match(Oe);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?te(e)??{data:e}:new Promise(((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)}))}const Oe=/([^.]*)\.([^\/]*)$/},728:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330);const c={statsWorker:()=>Promise.all([r.e(9255),r.e(1400),r.e(3215),r.e(3847),r.e(6841)]).then(r.bind(r,36841)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8228)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(2147)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(7681),r.e(6314),r.e(9594)]).then(r.bind(r,49594)),ElevationSamplerWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(6481),r.e(6459),r.e(7628)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(4599),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(8275),r.e(2985)]).then(r.bind(r,65967)),GeoJSONSourceWorker:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(5560),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(5560),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(9255),r.e(1400),r.e(3215),r.e(8732),r.e(1916)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(4599),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(8275),r.e(4325),r.e(3698),r.e(6809)]).then(r.bind(r,27937)),PointCloudWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(574)]).then(r.bind(r,90447)),RasterWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(6610),r.e(8681),r.e(3005)]).then(r.bind(r,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9255),r.e(6481),r.e(7681),r.e(6314),r.e(3248)]).then(r.bind(r,73248)),SceneLayerWorker:()=>r.e(1412).then(r.bind(r,31412)),WFSSourceWorker:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(3215),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(5560),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(4325),r.e(9805),r.e(3425),r.e(3388)]).then(r.bind(r,56456))};var l=r(94362),u=r(17202);const{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=l.MessageType;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===l.MessageType.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r},(()=>null));return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=c[e];return t?t():Promise.resolve(null)}constructor(e,t,r){this._port=e,this._getNextJob=r,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r?.signal,s=r?.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const c=(0,l.jt)();return new Promise(((r,o)=>{if((0,a.Hc)(n))return this._processWork(),void o((0,a.zE)());const l=(0,a.fu)(n,(()=>{const e=this._outJobs.get(c);e&&(this._outJobs.delete(c),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:c}),o((0,a.zE)()))})),u={resolve:r,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(c,u),this._post({type:h,jobId:c,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:l.MessageType.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:l.MessageType.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._getNextJob();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:o}=e;this.invoke(t,r,n).then((e=>o.resolve(e))).catch((e=>o.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,i.hw)(e.abortHandle),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null}_onMessage(e){null!=this._schedule?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,l.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let c,u=this._client,f=u[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);c=f.call(u,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,l.AB)(e)})}(0,a.y8)(c)?(i.set(r,{controller:s,promise:c}),c.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,l.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},c)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{const o=(0,l.QM)(e);o?.type===l.MessageType.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),r?a.reject(o.Z.fromJSON(JSON.parse(r))):a.resolve(n)}_post(e,t,r){return(0,l.oi)(this._port,e,t,r)}}y.kernelInfo={buildDate:u.r,fullVersion:n.bR,revision:u.$},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{AB:()=>a,MessageType:()=>n,QM:()=>l,jt:()=>i,oi:()=>c});var n,o=r(80442);!function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.OPEN=1]="OPEN",e[e.OPENED=2]="OPENED",e[e.RESPONSE=3]="RESPONSE",e[e.INVOKE=4]="INVOKE",e[e.ABORT=5]="ABORT",e[e.CLOSE=6]="CLOSE",e[e.OPEN_PORT=7]="OPEN_PORT",e[e.ON=8]="ON"}(n||(n={}));let s=0;function i(){return s++}function a(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function c(e,t,r,s){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let i;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(i=u(r.transferList),t.data=r.result):(i=u(s),t.data=r),i){if((0,o.Z)("ff"))for(const r of i)if("byteLength"in r&&r.byteLength>267386880){const r="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case n.INVOKE:throw r;case n.RESPONSE:return void c(e,{type:n.RESPONSE,jobId:t.jobId,error:a(r)})}}e.postMessage(t,i)}else e.postMessage(t)}function l(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,o.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>f,Nv:()=>c,bR:()=>a,i8:()=>i,id:()=>l,qh:()=>u});var n=r(80442),o=r(81271),s=r(17202);const i="4.27";let a=i;a=`4.27.0-next.${s.r}`;const c={async request(e,t){const{default:n}=await r.e(3172).then(r.bind(r,3172)),s=e.options,i=s.responseType;s.signal=t?.signal,s.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,o.oh)(e.url)?.after?i:"array-buffer";const a=await n(e.url,s),c={data:a.data,httpStatus:a.httpStatus,ssl:a.ssl};switch(a.requestOptions?.responseType){case"native-request-init":return delete c.data.signal,c;case"blob":c.data=await c.data.arrayBuffer();break;case"json":c.data=(new TextEncoder).encode(JSON.stringify(c.data)).buffer;break;case"text":c.data=(new TextEncoder).encode(c.data).buffer}return{result:c,transferList:[c.data]}}};let l;function u(e){l=e}function f(e){const t=l?.findCredential(e);return t?.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")},19745:(e,t,r)=>{"use strict";r.d(t,{P:()=>i,a:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,o={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 s(e){const t=e?.match(n);if(!t)return null;const[,r,s,i]=t;if(!r)return null;let a=null,c=null,l=null;const{devext:u,qaext:f,www:d}=o;if(s)if(a=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qa":({customBaseUrl:c,portalHostname:l}=f);break;default:return null}else({customBaseUrl:c,portalHostname:l}=d);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qaext":({customBaseUrl:c,portalHostname:l}=f);break;case"www":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:a}}function i(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}},17202:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,r:()=>n});const n="20230521",o="8a3d9849005d1e5d3b60c4e100e2101ee40bbbbc"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{24:"df6f54607ad4c6e28d1d",81:"eca24f316629ad0c0609",87:"858961981aa2a57d37db",223:"9e209c6a2aded37f90fb",247:"a9f83bbccf3b5f229262",261:"692dfeb2e255fdc0ade2",293:"6312783626bacf52df7a",338:"99ce0a202dcd3d7dc290",450:"3cebdd77a8401495097f",540:"74eb5ba98f30d5fd4c47",565:"7bbdba52157da13a01fc",574:"e305d20e4424451cab5b",576:"c5c56b6d99db96a6755a",608:"4474512927623c7bb16c",639:"efb96aefe979a0f5c632",690:"82e8d4a9da36c23aeddc",694:"85c6ce93aa41e6b65997",723:"2e627c94e57c924e5917",734:"749fafd2481d37b5e2a0",819:"d1ead6e8aa7e8e21fbc6",891:"691afc55690cc95a9581",938:"78aede1e114deefacb54",942:"62d9d15f0d00a75da42c",1073:"d0d9dcf9a06762087f08",1158:"b09dea098bd9ebdd2422",1194:"da6db22616bd95ee5380",1400:"2b9d3e60977934a6d471",1412:"22396dd3717d17a5d235",1421:"93e17ab3bc56ceea928d",1423:"96c027ffad89524b0820",1433:"4d5bdf18feeb9c8cb6ff",1444:"785a6c925f29bc962992",1520:"e46cd2a6da8d5cba1db6",1534:"528107548340cfc6a8f0",1790:"175f09ef4ae6b68eca75",1916:"2640204c4655aa535ccb",2057:"03bc91648286b9b75e30",2134:"3c5a64a545272f148e93",2147:"ba43e85d345393f47778",2164:"e1e0b3580e2c3098c9f4",2437:"f3f6035a17f7dcd19675",2462:"23f73f81aea461c0c6e6",2594:"ad215f7279e6b0a0d6f3",2609:"84f897e5910752e7aebc",2664:"f1ebc68f46261bd642c2",2886:"56fc7924b4fb30239c19",2985:"97dbfe04136aa5e4cd4d",3005:"34ec9623a1bece86a82b",3027:"293315442f5afe8069dc",3172:"4c35c663528f710e8c78",3215:"64b8f65e2ef6cbf08380",3230:"2bdc63395c7466ce1641",3248:"48abcb2d88f22e6e9fde",3388:"d3768c90b419386b65f9",3425:"1257825488d2494e901d",3529:"3ce1fe5e7a841f6dc355",3602:"04b9737f338e17776ad8",3668:"699b822e9d771a2c8d88",3698:"50e6bf76dcb372183824",3729:"3a63ab2bff22950ffadf",3847:"3bf52139340827794c3b",3852:"f0c62bb406bb93b1408a",3874:"2bf42d060f877566b989",3992:"73515dc23b3cde16071b",4166:"14d97dc471ff449bb12d",4305:"d0ff968e42116f592065",4325:"953407451813f406fdf1",4358:"4a2a0091cd830b6a1729",4371:"da6945e0f8731b5b247e",4475:"d981e2e90b8ce617116f",4490:"4a12ca8d6756cedfb74c",4499:"e2f4e1c4fe166d249b2e",4547:"69242c66492717c7388c",4599:"c6e28ec3395916c10248",4609:"94c1a2d31b3253cf6062",4646:"270471cd31609e303496",4695:"12714d64a0154688072e",4720:"39714837f9d3708e3806",4756:"5270fedc8c7951807eb4",5001:"d64c271c173797d98286",5049:"d265da47f6c752a40ac1",5235:"16e459b16bdd6e1a821b",5261:"e6836c84470fb6bd25bf",5329:"0e21e5b4d065567a6a91",5334:"80bf6cf1bef17215bca4",5389:"662e479c370c11bcb8a7",5560:"f3462020ee3b9c6f3822",5590:"50f929d9453fb058cf47",5642:"d6b6bb8aecc85d2a3f6b",5660:"1766371def0b2f953ac3",5665:"e1b2076d0040fcb7d864",5732:"83f7e22a12d90ef93e62",5837:"277a477446d6644aada6",5913:"099cacba30fd93af8ebc",5935:"60a08ce29d09cb07ef06",6124:"5ae63d31468222841d62",6233:"766f397dfdfbc0eb72d1",6237:"8a7fa4e8b0d14da7c9eb",6238:"1edc5c06874cb12c5478",6261:"55ca6ba8b40921025181",6314:"e8db7303b2f63c0ec0c9",6404:"5bbe1495fa421394d12e",6459:"52d02021e858820bc4fa",6472:"1488b3d48232844b8bb4",6481:"f6c39edd04cb96d98240",6502:"b91c155de9a89e4e6971",6584:"7ef100158ca28631fcaf",6610:"03dba2a2bbc363369a0f",6710:"1fc3b526e881ada30420",6748:"887a630c5c980c5028e1",6774:"0f04978e8342d9a35e59",6809:"48cb634255e39711a720",6841:"8f027f5a1f4438cb2b3c",6862:"a12d1d3addeae0771c00",6935:"6e7178de0b2c3d2f7e6b",6946:"0618fb0058f39ecd363f",7047:"673d6e284d5e85a107ca",7126:"e0499f45b098450b80b4",7277:"e15b5d7e46a834eacc57",7374:"ba6024465308c248170b",7376:"c2fb0f3179b9ff294b68",7476:"d95ca50ca7af4c222036",7535:"d26eaac455346f4df51a",7628:"964795dfb57f0d0635d0",7681:"808206f87b9f0ab13bf7",7697:"cbe817e966b57599bafd",7765:"bead656f8da33e023b2b",7845:"45a4041881e6235d73a2",7873:"67f008f858783805ea96",8008:"a5bd457d0284419b4f34",8062:"892ffe40c098d023962f",8079:"c3bf44146fddfe8990f7",8092:"f1b26b73101210b8f29c",8096:"c7fb48ea5d907883bcce",8228:"e5352dc8983d06d4ee0f",8243:"4d5f71d84c85f45c97ea",8275:"011b8d71a219b76aac16",8587:"6b0e5728b2dbd23b0834",8598:"1fd7e2d91d0d76ba1802",8636:"431d54867bc3bb848fbb",8681:"ff1c005eede0cf964332",8732:"a9e9297267614c4c4f3b",8758:"163bf2e13abbdd298374",8820:"4f2e49bbbf667b68d8a7",8828:"4922a0fed7cbc6895882",8865:"83298b1bdbcbe39d8ba1",8935:"91f1759042bd9c03719d",8942:"a719cb801d647234546c",9016:"e5bbd4cc5edbf7ab3624",9021:"e72150a38b202b68be2b",9153:"9de820b7df38b948c92b",9169:"cfad34c949cbe8a31ef8",9238:"6d80f81bf6ad97a7e69e",9243:"6c519c5a474f51f37af0",9255:"2f9fadbe7e94f79afeda",9291:"f720967ba8c5486a26a2",9296:"ea9e25eaaada36253da3",9469:"abe6c99a1a719543dbe8",9594:"1535423349f7eee694bc",9771:"93ad67930aa7d4a4b0ac",9805:"621c91af7c051d44d378",9819:"0adcc644ab424469a62d",9880:"468c79e532c32fdd2cc7",9884:"8cc8d88e5dd1e586eb04",9904:"e8df43c1af128522b2e0",9931:"f924732902703233655e"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&!e;)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(728);RemoteClient=n})();
1
+ var RemoteClient;(()=>{var e={88277:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,r)=>{"use strict";r.d(t,{default:()=>s}),r(80442);var n=r(78286),o=r(17202);const s={analysisTheme:{accentColor:[255,127,0],textColor:"white"},apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!1,portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){{const e="4.27.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.defaultAssetsPath=s.assetsPath}},20102:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(22974),o=r(92604),s=r(58896);class i extends s.Z{constructor(e,t,r){super(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(68773),o=(r(80442),r(19153));const s={info:0,warn:1,error:2,none:3};class i{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,i._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=i.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get test(){return{resetLoggers(e=new Map){const t=i._loggers;return i._loggers=e,t},set throttlingDisabled(e){i._throttlingDisabled=e}}}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,i._loggers.get(e)||new i({module:e})}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!i._throttlingDisabled){const n=this._argsToKey(r),o=this._loggedMessages[e].get(n);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=i._tickCounter)return;this._loggedMessages[e].set(n,i._tickCounter),i._scheduleTickCounterIncrement()}for(const t of n.default.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...r){console[e](`[${t}]`,...r)}_matchLevel(e){const t=n.default.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}_argsToKey(...e){return(0,o.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){i._tickCounterScheduled||(i._tickCounterScheduled=!0,Promise.resolve().then((()=>{i._tickCounter++,i._tickCounterScheduled=!1})))}}i._loggers=new Map,i._tickCounter=0,i._tickCounterScheduled=!1,i._throttlingDisabled=!1},58896:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(78286);class o{constructor(e,t,r){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,r)=>""===r?"$":((0,n.hS)(r,t)??"").toString()))}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});class n{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}n._m=2147483647,n._a=48271,n._c=0},67676:(e,t,r)=>{"use strict";r.d(t,{FY:()=>g,Od:()=>m,SO:()=>f,Vx:()=>s,a9:()=>l,cq:()=>h,e$:()=>p,e5:()=>i,fS:()=>o,pC:()=>y,w6:()=>u,zG:()=>a});var n=r(77734);function o(e,t,r){if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function s(e,t){let r=e.length!==t.length;r&&(e.length=t.length);for(let n=0;n<t.length;++n)e[n]!==t[n]&&(e[n]=t[n],r=!0);return r}function i(e,t,r){let n,o;return r?(n=t.filter((t=>!e.some((e=>r(e,t))))),o=e.filter((e=>!t.some((t=>r(t,e)))))):(n=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:n,removed:o}}function a(e){return e&&"number"==typeof e.length}const c=!!Array.prototype.fill;function l(e,t){if(c)return new Array(e).fill(t);const r=new Array(e);for(let n=0;n<e;n++)r[n]=t;return r}function u(e,t){void 0===t&&(t=e,e=0);const r=new Array(t-e);for(let n=e;n<t;n++)r[n-e]=n;return r}class f{constructor(){this.last=0}}const d=new f;function h(e,t,r,n){n=n||d;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function p(e,t,r,n){const o=r??e.length,s=h(e,t,o,n);if(-1!==s)return e[s]=e[o-1],null==r&&e.pop(),t}const b=new Set;function g(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;b.clear();for(let e=0;e<n;++e)b.add(t[e]);o=o||d;const i=Math.max(0,o.last-10);for(let t=i;t<r;++t)if(b.has(e[t])&&(s&&s.push(e[t]),b.delete(e[t]),e[t]=e[r-1],--r,--t,0===b.size||0===r))return b.clear(),r;for(let t=0;t<i;++t)if(b.has(e[t])&&(s&&s.push(e[t]),b.delete(e[t]),e[t]=e[r-1],--r,--t,0===b.size||0===r))return b.clear(),r;return b.clear(),r}function m(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function y(e,t){return null!=e}new n.Z},91460:(e,t,r)=>{"use strict";function n(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,r);if(Array.isArray(t)){const n=t.slice();for(const t of n)e.addEventListener(t,r);return{remove(){for(const t of n)e.removeEventListener(t,r)}}}return e.addEventListener(t,r),{remove(){e.removeEventListener(t,r)}}}function s(e,t,r){if(!n(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const s=o(e,t,(t=>{s.remove(),r.call(e,t)}));return{remove(){s.remove()}}}r.d(t,{IH:()=>s,on:()=>o,vT:()=>n})},80442:(e,t,r)=>{"use strict";let n;function o(e){return"function"==typeof n[e]?n[e]=n[e](globalThis):n[e]}r.d(t,{Z:()=>o}),n=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,r,s)=>((s||void 0===n[e])&&(n[e]=t),r&&o(e)),o.cache=n,o.add("esri-deprecation-warnings",!0),o.add("esri-force-fullscreen-debug",!1),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),o.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),o.add("esri-atomics","Atomics"in globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("workers-pool-size",8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-point-coverage",.1),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!1),o.add("heatmap-force-raster",!1),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),o.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{o.add("esri-image-decode",!0,!0,!0)})).catch((()=>{o.add("esri-image-decode",!1,!0,!0)}))}return!1})),o.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,r)=>{"use strict";r.d(t,{Vo:()=>a,d9:()=>i,fS:()=>h,tZ:()=>c,y7:()=>p,yd:()=>s});var n=r(67676),o=r(1533);function s(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&s(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function i(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=d(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(u(e))return e.clone();const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function a(e){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const t=d(e);if(null!=t)return t;if(l(e)){let t=!0;const r=e.map((e=>{const r=a(e);return null!=e&&null==r&&(t=!1),r}));return t?r:null}if(c(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(!u(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const r of Object.getOwnPropertyNames(e)){const n=e[r],o=a(n);if(null!=n&&null==o)return null;t[r]=o}return t}return null}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function u(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function f(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){if((0,o.W0)(e)||(0,o.lq)(e)||(0,o.KZ)(e)||(0,o.z3)(e)||(0,o.Uc)(e)||(0,o.Hx)(e)||(0,o.ZY)(e)||(0,o.xZ)(e)||(0,o.fS)(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(i(r));return t}return null}function h(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}function p(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!f(e)&&f(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},70586:(e,t,r)=>{"use strict";function n(e,t){return null!=e?t(e):null}function o(e,t){return s(e,t),e}function s(e,t){if(null==e)throw new Error(t??"value is None")}function i(e){return e?.destroy(),null}function a(e){return e?.dispose(),null}function c(e){return e?.remove(),null}function l(e){return e?.abort(),null}function u(e){return e?.release(),null}function f(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function d(e){return null}function h(e,t){const r=new Array;for(const n of e)r.push(null!=n?t(n):null);return r}function p(e,t){for(const r of e)n(r,t)}function b(e){return e}r.d(t,{Fd:()=>h,IM:()=>l,JR:()=>p,M2:()=>a,O3:()=>s,RY:()=>u,SC:()=>i,_W:()=>f,hw:()=>c,j0:()=>b,s3:()=>o,wN:()=>d,yw:()=>n})},78286:(e,t,r)=>{"use strict";r.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var n=r(22974);function o(e,t,r=!1){return c(e,t,r)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,r){const n=e.split("."),o=n.pop(),s=a(n,!0,r);s&&o&&(s[o]=t)}function a(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function c(e,t,r){return t?Object.keys(t).reduce(((e,o)=>{let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,n.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,r)=>{"use strict";r.d(t,{e4:()=>_,zE:()=>c,hh:()=>P,Ds:()=>S,as:()=>w,WW:()=>v,R8:()=>y,D_:()=>m,Hc:()=>f,y8:()=>O,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>x,gx:()=>k,Hl:()=>g});const n=(o=globalThis,{setTimeout:(e,t)=>{const r=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(r)}}});var o,s=r(20102),i=r(91460),a=(r(92604),r(70586));function c(e="Aborted"){return new s.Z("AbortError",e)}function l(e,t="Aborted"){if(f(e))throw c(t)}function u(e){return null!=e?"aborted"in e?e:e.signal:e}function f(e){const t=u(e);return null!=t&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const r=u(e);if(null!=r){if(!r.aborted)return(0,i.IH)(r,"abort",(()=>t()));t()}}function b(e,t){const r=u(e);if(null!=r)return l(r),(0,i.IH)(r,"abort",(()=>t(c())))}function g(e,t){return null==u(t)?e:new Promise(((r,n)=>{let o=p(t,(()=>n(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(r,n)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}async function w(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map((t=>e[t])),n=await w(r),o={};return t.map(((e,t)=>o[e]=n[t])),o}const t=e;return Promise.allSettled(t).then((e=>Array.from(t,((t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))))}async function v(e){return(await w(e)).filter((e=>!!e.value)).map((e=>e.value))}function _(e,t=void 0,r){const n=new AbortController;return p(r,(()=>n.abort())),new Promise(((r,o)=>{let s=setTimeout((()=>{s=0,r(t)}),e);p(n,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function O(e){return e&&"function"==typeof e.then}function k(e){return O(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,o,s,i=null;const l=(...u)=>{if(r){n=u,s&&s.reject(c()),s=P();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||P(),s=null,t>0){const n=new AbortController;r=k(e(...u,n.signal));const o=r;_(t).then((()=>{r===o&&(s?n.abort():i=n)}))}else r=1,r=k(e(...u));const f=()=>{const e=n;n=o=r=i=null,null!=e&&l(...e)},d=r,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function P(){let e,t;const r=new Promise(((r,n)=>{e=r,t=n})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>n.setTimeout((()=>o.reject(t)),e),o.promise=r,o}async function x(e){await Promise.resolve(),l(e)}},19153:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var n=r(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replaceAll(o,"object"==typeof t?(e,r)=>s((0,n.hS)(r,t)):(e,r)=>s(t(r)))}function a(e,t){return e.replaceAll(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,r)=>{"use strict";function n(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function s(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function a(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function u(e){return"Uint32Array"===e?.constructor?.name}function f(e){return"Float32Array"===e?.constructor?.name}function d(e){return"Float64Array"===e?.constructor?.name}function h(e){return!("buffer"in e)}function p(e){return null!=e?h(e)?8*e.length+12:e.byteLength+b:0}r.d(t,{B3:()=>m,DB:()=>g,Hx:()=>l,KZ:()=>i,Op:()=>w,Q7:()=>y,Uc:()=>c,W0:()=>o,Xw:()=>p,ZY:()=>u,eP:()=>n,fS:()=>d,kJ:()=>h,lq:()=>s,xZ:()=>f,z3:()=>a}),r(80442);const b=145,g=1024;function m(e){return d(e)||f(e)||l(e)||a(e)||o(e)}function y(e){return d(e)||f(e)}function w(e){return d(e)?179769e303:f(e)?3402823e32:u(e)?4294967295:c(e)?65535:s(e)||i(e)?255:l(e)?2147483647:a(e)?32767:o(e)?127:256}},81271:(e,t,r)=>{"use strict";r.d(t,{R9:()=>v,qg:()=>M,tD:()=>R,ZN:()=>me,fl:()=>ye,rS:()=>X,Ie:()=>pe,sJ:()=>te,AH:()=>Y,fw:()=>ne,io:()=>oe,L:()=>P,TI:()=>S,vt:()=>de,oh:()=>J,P$:()=>K,Ml:()=>we,ed:()=>I,b7:()=>C,Zo:()=>U,D6:()=>q,tm:()=>L,YP:()=>Q,jc:()=>V,HK:()=>G,$U:()=>ae,oC:()=>se,kl:()=>B,v_:()=>z,hF:()=>F,_l:()=>re,PF:()=>Z,Fv:()=>D,B7:()=>j,IR:()=>_e,u0:()=>A,Yd:()=>fe,Hu:()=>ge,Qj:()=>he,fZ:()=>ve,hO:()=>ce,mN:()=>x});var n=r(68773),o=r(67676),s=r(20102),i=r(92604),a=r(70586),c=r(19745);const l=i.Z.getLogger("esri.core.urlUtils"),u=n.default.request,f="esri/config: esriConfig.request.proxyUrl is not set.",d=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,h=/^\s*http:/i,p=/^\s*https:/i,b=/^\s*file:/i,g=/:\d+$/,m=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class v{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,a.j0)(this.uri.match(y));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,a.j0)(this.authority.match(w)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const _={};let O=new v(n.default.applicationUrl);let k=function(){const e=(0,a.j0)(O.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${O.scheme}://${O.host}${null!=O.port?`:${O.port}`:""}${t}`}();const S=()=>O,P=()=>k;function x(e){if(!e)return null;const t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.substring(0,n),t.query=A(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function A(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function T(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r])))).join("&"):Object.keys(e).map((r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t&&t[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map((e=>T(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):T(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)})).filter((e=>e)).join("&"):""}function C(e=!1){let t,r=u.proxyUrl;if("string"==typeof e){t=ae(e);const n=I(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw l.warn(f),new s.Z("urlutils:proxy-not-set",f);return t&&le()&&(r=ce(r)),x(r)}function M(e){const t=I(e);let r,n;if(t){const e=N(t.proxyUrl);r=e.path,n=e.query?A(e.query):null}if(r){const t=x(e);e=r+"?"+t.path;const o=j({...n,...t.query});o&&(e=`${e}?${o}`)}return e}const E={path:"",query:""};function N(e){const t=e.indexOf("?");return-1!==t?(E.path=e.slice(0,t),E.query=e.slice(t+1)):(E.path=e,E.query=null),E}function $(e){return(e=ue(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=N(e).path),!0)).toLowerCase()}function R(e){const t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=u.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function I(e){const t=u.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function U(e,t){if(!e||!t)return!1;e=W(e),t=W(t);const r=(0,c.a)(e),n=(0,c.a)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&q(e,t,!0)}function L(e,t){return e=W(e),t=W(t),ue(e)===ue(t)}function W(e){const t=(e=D(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function J(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),r=u.interceptors;if(r)for(const e of r)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function q(e,t,r=!1){if(!e||!t)return!1;const n=be(e),o=be(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function B(e){if("string"==typeof e){if(!Q(e))return!0;e=be(e)}if(q(e,O))return!0;const t=u.trustedServers||[];for(let r=0;r<t.length;r++){const n=H(t[r]);for(let t=0;t<n.length;t++)if(q(e,n[t]))return!0}return!1}function H(e){return _[e]||(ie(e)||se(e)?_[e]=[new v(F(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function F(e,t=k,r){return se(e)?r&&r.preserveProtocolRelative?e:"http"===O.scheme&&O.authority===K(e).slice(2)?`http:${e}`:`https:${e}`:ie(e)?e:(0,a.j0)(z("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e))}function Z(e,t=k,r){if(null==e||!Q(e))return e;const n=D(e),o=n.toLowerCase(),s=D(t).toLowerCase().replace(/\/+$/,""),i=r?D(r).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=n.slice(l);const u=s.slice(l-1).replaceAll(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function D(e){return function(e){const t=u.httpsDomains;if(!function(e){return null!=e&&h.test(e)||"http"===O.scheme&&se(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),g.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===O.scheme&&n===O.authority&&!m.test(e)||(le()&&n===O.authority||t&&t.some((e=>n===e||n.endsWith(`.${e}`)))||le()&&!I(e))&&(e=ce(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=N(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=F(e=e.trim()))))}function z(...e){const t=e.filter(o.pC);if(!t||!t.length)return;const r=[];if(Q(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&b.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function K(e,t=!1){if(null==e||V(e)||G(e))return null;let r=e.indexOf("://");if(-1===r&&se(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=ue(e,!0)),e}function Q(e){return se(e)||ie(e)}function V(e){return null!=e&&"blob:"===e.slice(0,5)}function G(e){return null!=e&&"data:"===e.slice(0,5)}function Y(e){const t=te(e);return t&&t.isBase64?function(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}(t.data):null}function X(e){return btoa(String.fromCharCode.apply(null,e)).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ne(e){const t=Y(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function oe(e,t){!function(e,t){if(!e)return!1;const r=document.createElement("a");if(!("download"in r))return!1;const n=URL.createObjectURL(e);r.download=t,r.href=n,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(n)}(e,t)}function se(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ie(e){return null!=e&&d.test(e)}function ae(e){return null!=e&&p.test(e)||"https"===O.scheme&&se(e)}function ce(e){return se(e)?`https:${e}`:e.replace(h,"https:")}function le(){return"https"===O.scheme}function ue(e,t=!1){return se(e)?e.slice(2):(e=e.replace(d,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function fe(e){let t=0;if(Q(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function de(e,t){if(!e)return"";const r=x(e).path.replace(/\/+$/,""),n=r.substring(r.lastIndexOf("/")+1);if(!t?.length)return n;const o=new RegExp(`.(${t.join("|")})$`,"ig");return n.replace(o,"")}function he(e){return e.replace(/\/+$/,"")}function pe(e,t,r){if(!(t&&r&&e&&Q(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(i)}`}function be(e){return"string"==typeof e?new v(F(e)):(e.scheme||(e.scheme=O.scheme),e)}function ge(e,t){const r=x(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function me(e,t,r){const n=x(e),o=n.query||{};return o[t]=String(r),`${n.path}?${j(o)}`}function ye(e,t){const r=x(e),n=r.query||{};for(const e in t)n[e]=t[e];const o=j(n);return o?`${r.path}?${o}`:r.path}function we(e){if(null==e)return null;const t=e.match(Oe);return t?t[2]:null}function ve(e){if(null==e)return null;const t=e.match(Oe);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?te(e)??{data:e}:new Promise(((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)}))}const Oe=/([^.]*)\.([^\/]*)$/},728:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>y});var n=r(40330),o=r(20102),s=r(91460),i=r(70586),a=r(95330);const c={statsWorker:()=>Promise.all([r.e(9255),r.e(1400),r.e(2278),r.e(3847),r.e(6841)]).then(r.bind(r,36841)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8228)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(2278),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(2147)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(7681),r.e(6314),r.e(9594)]).then(r.bind(r,49594)),ElevationSamplerWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(2278),r.e(6481),r.e(6459),r.e(3036)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(2278),r.e(4599),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(8275),r.e(2985)]).then(r.bind(r,65967)),GeoJSONSourceWorker:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(2278),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(5560),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(2278),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(5560),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(9255),r.e(1400),r.e(2278),r.e(8732),r.e(1916)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(2278),r.e(4599),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(8275),r.e(4325),r.e(3698),r.e(6809)]).then(r.bind(r,27937)),PointCloudWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(2278),r.e(574)]).then(r.bind(r,90447)),RasterWorker:()=>Promise.all([r.e(4547),r.e(9255),r.e(1400),r.e(2278),r.e(6610),r.e(8681),r.e(3005)]).then(r.bind(r,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(9255),r.e(6481),r.e(7681),r.e(6314),r.e(3248)]).then(r.bind(r,73248)),SceneLayerWorker:()=>r.e(1412).then(r.bind(r,31412)),WFSSourceWorker:()=>Promise.all([r.e(7126),r.e(1534),r.e(4547),r.e(9255),r.e(1400),r.e(2278),r.e(8732),r.e(5261),r.e(3847),r.e(3729),r.e(5560),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(4325),r.e(9805),r.e(3425),r.e(3388)]).then(r.bind(r,56456))};var l=r(94362),u=r(17202);const{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=l.MessageType;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===l.MessageType.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const n=new y(t.port1,{channel:t,client:r},(()=>null));return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=n),y.clients.set(n,r),t.port2}static loadWorker(e){const t=c[e];return t?t():Promise.resolve(null)}constructor(e,t,r){this._port=e,this._getNextJob=r,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const n=r?.signal,s=r?.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const c=(0,l.jt)();return new Promise(((r,o)=>{if((0,a.Hc)(n))return this._processWork(),void o((0,a.zE)());const l=(0,a.fu)(n,(()=>{const e=this._outJobs.get(c);e&&(this._outJobs.delete(c),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:c}),o((0,a.zE)()))})),u={resolve:r,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(c,u),this._post({type:h,jobId:c,methodName:e,abortable:null!=n},t,s)}))}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:l.MessageType.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),{remove(){r.port1.postMessage({type:l.MessageType.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)}}}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._getNextJob();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:o}=e;this.invoke(t,r,n).then((e=>o.resolve(e))).catch((e=>o.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,i.hw)(e.abortHandle),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null}_onMessage(e){null!=this._schedule?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,l.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let c,u=this._client,f=u[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);c=f.call(u,n,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:r,error:(0,l.AB)(e)})}(0,a.y8)(c)?(i.set(r,{controller:s,promise:c}),c.then((e=>{i.has(r)&&(i.delete(r),this._post({type:p,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:p,jobId:r,error:(0,l.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:r},c)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),n=(0,s.on)(e.port,"message",(e=>{const o=(0,l.QM)(e);o?.type===l.MessageType.CLOSE&&(n.remove(),r.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),r?a.reject(o.Z.fromJSON(JSON.parse(r))):a.resolve(n)}_post(e,t,r){return(0,l.oi)(this._port,e,t,r)}}y.kernelInfo={buildDate:u.r,fullVersion:n.bR,revision:u.$},y.clients=new Map},94362:(e,t,r)=>{"use strict";r.d(t,{AB:()=>a,MessageType:()=>n,QM:()=>l,jt:()=>i,oi:()=>c});var n,o=r(80442);!function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.OPEN=1]="OPEN",e[e.OPENED=2]="OPENED",e[e.RESPONSE=3]="RESPONSE",e[e.INVOKE=4]="INVOKE",e[e.ABORT=5]="ABORT",e[e.CLOSE=6]="CLOSE",e[e.OPEN_PORT=7]="OPEN_PORT",e[e.ON=8]="ON"}(n||(n={}));let s=0;function i(){return s++}function a(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function c(e,t,r,s){if(t.type===n.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==n.INVOKE&&t.type!==n.RESPONSE)return void e.postMessage(t);let i;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(i=u(r.transferList),t.data=r.result):(i=u(s),t.data=r),i){if((0,o.Z)("ff"))for(const r of i)if("byteLength"in r&&r.byteLength>267386880){const r="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case n.INVOKE:throw r;case n.RESPONSE:return void c(e,{type:n.RESPONSE,jobId:t.jobId,error:a(r)})}}e.postMessage(t,i)}else e.postMessage(t)}function l(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,o.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e)));return t.length?t:null}},40330:(e,t,r)=>{"use strict";r.d(t,{Dp:()=>f,Nv:()=>c,bR:()=>a,i8:()=>i,id:()=>l,qh:()=>u});var n=r(80442),o=r(81271),s=r(17202);const i="4.27";let a=i;a=`4.27.0-next.${s.r}`;const c={async request(e,t){const{default:n}=await r.e(3172).then(r.bind(r,3172)),s=e.options,i=s.responseType;s.signal=t?.signal,s.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,o.oh)(e.url)?.after?i:"array-buffer";const a=await n(e.url,s),c={data:a.data,httpStatus:a.httpStatus,ssl:a.ssl};switch(a.requestOptions?.responseType){case"native-request-init":return delete c.data.signal,c;case"blob":c.data=await c.data.arrayBuffer();break;case"json":c.data=(new TextEncoder).encode(JSON.stringify(c.data)).buffer;break;case"text":c.data=(new TextEncoder).encode(c.data).buffer}return{result:c,transferList:[c.data]}}};let l;function u(e){l=e}function f(e){const t=l?.findCredential(e);return t?.token?(0,o.ZN)(e,"token",t.token):e}(0,n.Z)("host-webworker")},19745:(e,t,r)=>{"use strict";r.d(t,{P:()=>i,a:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,o={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 s(e){const t=e?.match(n);if(!t)return null;const[,r,s,i]=t;if(!r)return null;let a=null,c=null,l=null;const{devext:u,qaext:f,www:d}=o;if(s)if(a=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qa":({customBaseUrl:c,portalHostname:l}=f);break;default:return null}else({customBaseUrl:c,portalHostname:l}=d);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=u);break;case"qaext":({customBaseUrl:c,portalHostname:l}=f);break;case"www":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:a}}function i(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}},17202:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,r:()=>n});const n="20230522",o="f88656d0392258a643d6a48db3237d9aabfc9898"}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"chunks/"+{24:"df6f54607ad4c6e28d1d",81:"eca24f316629ad0c0609",87:"858961981aa2a57d37db",223:"9e209c6a2aded37f90fb",247:"a9f83bbccf3b5f229262",261:"39288fa69561d21f04f8",293:"55486c644e8b01326a0d",338:"28286014a575042619ee",450:"3cebdd77a8401495097f",540:"74eb5ba98f30d5fd4c47",565:"7bbdba52157da13a01fc",574:"d725dbbdeb05322e6d88",576:"c5c56b6d99db96a6755a",608:"4474512927623c7bb16c",639:"efb96aefe979a0f5c632",690:"82e8d4a9da36c23aeddc",694:"18db07d739a713cc0465",723:"2e627c94e57c924e5917",734:"749fafd2481d37b5e2a0",819:"d1ead6e8aa7e8e21fbc6",891:"691afc55690cc95a9581",938:"71bdf8f10aee0077f681",942:"4670b17ae2ed3c13d344",1073:"d0d9dcf9a06762087f08",1158:"b09dea098bd9ebdd2422",1194:"da6db22616bd95ee5380",1400:"3bc6b5f0643364749ef8",1412:"a1c31bb8c12831539328",1421:"93e17ab3bc56ceea928d",1423:"96c027ffad89524b0820",1433:"4d5bdf18feeb9c8cb6ff",1444:"785a6c925f29bc962992",1520:"e46cd2a6da8d5cba1db6",1534:"528107548340cfc6a8f0",1790:"175f09ef4ae6b68eca75",1916:"cad7a2092ea7f51dbd8b",2057:"03bc91648286b9b75e30",2134:"3c5a64a545272f148e93",2147:"ba43e85d345393f47778",2278:"70d6e5edf05ef7079fa8",2437:"9ab400a89dd701778d2c",2462:"8d3abfe6fdc5ac8d6cb7",2594:"ad215f7279e6b0a0d6f3",2609:"84f897e5910752e7aebc",2664:"f1ebc68f46261bd642c2",2886:"56fc7924b4fb30239c19",2985:"97dbfe04136aa5e4cd4d",3005:"b4e2dc6b3d06b426e596",3027:"293315442f5afe8069dc",3036:"5576858f56314afcb4d5",3172:"4c35c663528f710e8c78",3230:"2bdc63395c7466ce1641",3248:"c2cb9fa18c77f0c5104e",3388:"d3768c90b419386b65f9",3425:"1257825488d2494e901d",3529:"3ce1fe5e7a841f6dc355",3602:"04b9737f338e17776ad8",3668:"699b822e9d771a2c8d88",3698:"50e6bf76dcb372183824",3729:"3a63ab2bff22950ffadf",3847:"96d339abcd917f1f0ae1",3852:"f0c62bb406bb93b1408a",3874:"df3e497d12ed77bae168",3992:"73515dc23b3cde16071b",4166:"14d97dc471ff449bb12d",4305:"d0ff968e42116f592065",4325:"953407451813f406fdf1",4358:"4a2a0091cd830b6a1729",4371:"da6945e0f8731b5b247e",4475:"d981e2e90b8ce617116f",4490:"4a12ca8d6756cedfb74c",4499:"e2f4e1c4fe166d249b2e",4547:"0fcb8d408696075338e2",4599:"c6e28ec3395916c10248",4609:"94c1a2d31b3253cf6062",4646:"270471cd31609e303496",4695:"12714d64a0154688072e",4720:"39714837f9d3708e3806",4756:"5270fedc8c7951807eb4",5001:"d64c271c173797d98286",5049:"d265da47f6c752a40ac1",5235:"16e459b16bdd6e1a821b",5261:"78ce0b1af62435d8ebf4",5329:"0e21e5b4d065567a6a91",5334:"80bf6cf1bef17215bca4",5389:"662e479c370c11bcb8a7",5560:"f3462020ee3b9c6f3822",5590:"50f929d9453fb058cf47",5642:"d6b6bb8aecc85d2a3f6b",5660:"1766371def0b2f953ac3",5665:"e1b2076d0040fcb7d864",5732:"83f7e22a12d90ef93e62",5837:"277a477446d6644aada6",5913:"099cacba30fd93af8ebc",5935:"60a08ce29d09cb07ef06",6124:"5ae63d31468222841d62",6233:"766f397dfdfbc0eb72d1",6237:"8a7fa4e8b0d14da7c9eb",6238:"17f313e548281bb5db3e",6261:"55ca6ba8b40921025181",6314:"e8db7303b2f63c0ec0c9",6404:"5bbe1495fa421394d12e",6459:"72b2c3c8e76da699690c",6472:"9fe349f43d5ff5a4ac2d",6481:"f6c39edd04cb96d98240",6502:"187c3b971ed0fc4363ef",6584:"4d24efa01d1accc5a5f0",6610:"03dba2a2bbc363369a0f",6710:"1fc3b526e881ada30420",6748:"887a630c5c980c5028e1",6774:"0f04978e8342d9a35e59",6809:"48cb634255e39711a720",6841:"8f027f5a1f4438cb2b3c",6862:"a12d1d3addeae0771c00",6935:"6e7178de0b2c3d2f7e6b",6946:"0618fb0058f39ecd363f",7047:"673d6e284d5e85a107ca",7126:"e0499f45b098450b80b4",7277:"45e5ad704d18dd0857ce",7374:"ba6024465308c248170b",7376:"c2fb0f3179b9ff294b68",7476:"d95ca50ca7af4c222036",7535:"d26eaac455346f4df51a",7655:"5a4c04bf4f57e74457c5",7681:"808206f87b9f0ab13bf7",7697:"791f529e90135398b3d5",7765:"bead656f8da33e023b2b",7845:"45a4041881e6235d73a2",7873:"67f008f858783805ea96",8008:"a5bd457d0284419b4f34",8062:"892ffe40c098d023962f",8079:"52575f021a14dd961de8",8092:"f1b26b73101210b8f29c",8096:"c7fb48ea5d907883bcce",8228:"e5352dc8983d06d4ee0f",8243:"ed6f6e539a915ba9e64d",8275:"011b8d71a219b76aac16",8587:"6b0e5728b2dbd23b0834",8598:"1fd7e2d91d0d76ba1802",8636:"431d54867bc3bb848fbb",8681:"ff1c005eede0cf964332",8732:"a9e9297267614c4c4f3b",8758:"97cdbec7532cfcdf9ad2",8820:"4f2e49bbbf667b68d8a7",8828:"4922a0fed7cbc6895882",8865:"83298b1bdbcbe39d8ba1",8935:"91f1759042bd9c03719d",8942:"a719cb801d647234546c",9016:"e5bbd4cc5edbf7ab3624",9021:"e72150a38b202b68be2b",9153:"9de820b7df38b948c92b",9169:"cfad34c949cbe8a31ef8",9238:"6d80f81bf6ad97a7e69e",9243:"6c519c5a474f51f37af0",9255:"2f9fadbe7e94f79afeda",9291:"f720967ba8c5486a26a2",9296:"ea9e25eaaada36253da3",9469:"0d02856e55d20b99fc8b",9594:"1535423349f7eee694bc",9771:"fb080339bfaf32731ca6",9805:"621c91af7c051d44d378",9819:"0adcc644ab424469a62d",9880:"468c79e532c32fdd2cc7",9884:"8cc8d88e5dd1e586eb04",9904:"e8df43c1af128522b2e0",9931:"f924732902703233655e"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&!e;)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={134:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)r.o(s,a)&&(r.m[a]=s[a]);for(i&&i(r);o.length;)e[o.pop()]=1;n(t)}})(),r(88277);var n=r(728);RemoteClient=n})();
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9469],{38171:(e,t,i)=>{i.d(t,{Z:()=>f});var s,l=i(43697),r=i(66577),n=i(51773),o=i(9790),a=i(2368),u=i(96674),p=i(99001),c=i(5600),h=(i(75215),i(67676),i(80442),i(52011)),d=i(33955);function y(e){if(null==e)return null;const t={};for(const i in e){const s=e[i];s&&(t[i]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let m=s=class extends((0,a.J)(u.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,p.D)(),configurable:!0})}normalizeCtorArgs(e,t,i,s){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:i,popupTemplate:s}}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:y(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:{...this.attributes},popupTemplate:this.popupTemplate&&this.popupTemplate.toJSON()}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,s){if(!this.layer||!("graphicChanged"in this.layer))return;const l={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(l.action=s),"attributes"===e&&(l.attributeName=s),this.layer.graphicChanged(l)}};(0,l._)([(0,c.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const s=(0,d.im)(e[i]);s&&(t[i]=s)}return 0!==Object.keys(t).length?t:null}}})],m.prototype,"aggregateGeometries",null),(0,l._)([(0,c.Cb)({value:null})],m.prototype,"attributes",null),(0,l._)([(0,c.Cb)({value:null,types:r.qM,json:{read:d.im}})],m.prototype,"geometry",null),(0,l._)([(0,c.Cb)({type:Boolean})],m.prototype,"isAggregate",void 0),(0,l._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"layer",void 0),(0,l._)([(0,c.Cb)({type:n.Z})],m.prototype,"popupTemplate",void 0),(0,l._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"sourceLayer",void 0),(0,l._)([(0,c.Cb)({value:null,types:o.LB})],m.prototype,"symbol",null),(0,l._)([(0,c.Cb)({type:Boolean,value:!0})],m.prototype,"visible",null),m=s=(0,l._)([(0,h.j)("esri.Graphic")],m),(m||(m={})).generateUID=p.D;const f=m},74085:(e,t,i)=>{function s(e){}i.d(t,{Bg:()=>s}),i(80442)},60235:(e,t,i)=>{i.d(t,{Mr:()=>n,x9:()=>o});var s=i(80442);const l=new Set;function r(e,t,i=!1){i&&l.has(t)||(i&&l.add(t),e.warn(`🛑 DEPRECATED - ${t}`))}function n(e,t,i={}){if((0,s.Z)("esri-deprecation-warnings")){const{moduleName:s}=i;o(e,"Property: "+(s?s+"::":"")+t,i)}}function o(e,t,i={}){if((0,s.Z)("esri-deprecation-warnings")){const{replacement:s,version:l,see:n,warnOnce:o}=i;let a=t;s&&(a+=`\n\t🛠️ Replacement: ${s}`),l&&(a+=`\n\t⚙️ Version: ${l}`),n&&(a+=`\n\t🔗 See ${n} for more details.`),r(e,a,o)}}},16050:(e,t,i)=>{i.d(t,{Z:()=>j});var s,l=i(43697),r=i(9790),n=i(35454),o=i(22974),a=i(92604),u=i(5600),p=i(90578),c=i(36030),h=i(71715),d=i(52011),y=i(30556),m=i(75215),f=i(35671),b=i(5499),v=i(41733),g=i(32984),w=i(9833),_=i(66338),V=i(59266);const S="percent-of-total",x="field",C=new n.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),I=(0,m.se)(g.Z);let z=s=class extends((0,v.W)(b.Z)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map((e=>{const t=new g.Z;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t}))}writeClassBreakInfos(e,t,i,s){const l=e.map((e=>e.write({},s)));this._areClassBreaksConsecutive()&&l.forEach((e=>delete e.classMinValue)),t[i]=l}castField(e){return null==e?e:"function"==typeof e?(a.Z.getLogger(this).error(".field: field must be a string value"),null):(0,m.Zs)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&x||i&&S||null,t&&i&&a.Z.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new g.Z({minValue:e,maxValue:t,symbol:(0,r.se)(i)}):I((0,o.d9)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return!this.valueExpression||null!=t&&null!=t.arcade||a.Z.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;!this.valueExpression||null!=t&&null!=t.arcade||(i={...i,arcade:await(0,V.LC)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void a.Z.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&(null==t||null==t.arcade)){const e=await(0,V.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol&&this.backgroundFillSymbol.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol&&this.defaultSymbol.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.d9)(this.visualVariables),legendOptions:(0,o.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,f.io)(e,t,this.valueExpression)];(0,f.AB)(e,t,this.field),(0,f.AB)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r}=t??{},{valueExpression:n}=this;let o=this._compiledValueExpression.valueExpression===n?this._compiledValueExpression.compiledFunction:null;const a=r.arcadeUtils;if(!o){const e=a.createSyntaxTree(n);o=a.createFunction(e),this._compiledValueExpression.compiledFunction=o}this._compiledValueExpression.valueExpression=n;const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:l})));return this._getBreakIndexfromInfos(u)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let l=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)l=Math.log(l)*Math.LOG10E;else if(s!==S||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(l)||isNaN(t))return-1;l/=t}}else l=l/e*100}return this._getBreakIndexfromInfos(l)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,l._)([(0,u.Cb)(w.KK)],z.prototype,"backgroundFillSymbol",void 0),(0,l._)([(0,u.Cb)({type:[g.Z]})],z.prototype,"classBreakInfos",void 0),(0,l._)([(0,h.r)("classBreakInfos")],z.prototype,"readClassBreakInfos",null),(0,l._)([(0,y.c)("classBreakInfos")],z.prototype,"writeClassBreakInfos",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],z.prototype,"defaultLabel",void 0),(0,l._)([(0,u.Cb)(w.Gn)],z.prototype,"defaultSymbol",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,l._)([(0,p.p)("field")],z.prototype,"castField",null),(0,l._)([(0,u.Cb)({type:Boolean})],z.prototype,"isMaxInclusive",void 0),(0,l._)([(0,u.Cb)({type:_.I,json:{write:!0}})],z.prototype,"legendOptions",void 0),(0,l._)([(0,u.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],z.prototype,"minValue",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],z.prototype,"normalizationField",void 0),(0,l._)([(0,u.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],z.prototype,"normalizationTotal",void 0),(0,l._)([(0,u.Cb)({type:C.apiValues,value:null,json:{type:C.jsonValues,read:C.read,write:C.write}})],z.prototype,"normalizationType",null),(0,l._)([(0,c.J)({classBreaks:"class-breaks"})],z.prototype,"type",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],z.prototype,"valueExpression",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],z.prototype,"valueExpressionTitle",void 0),z=s=(0,l._)([(0,d.j)("esri.renderers.ClassBreaksRenderer")],z);const j=z},5499:(e,t,i)=>{i.d(t,{Z:()=>c});var s=i(43697),l=i(35454),r=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(69237);const u=new l.X({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends r.wq{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,n.Cb)({type:a.Z,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,n.Cb)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],p.prototype,"type",void 0),p=(0,s._)([(0,o.j)("esri.renderers.Renderer")],p);const c=p},81571:(e,t,i)=>{i.d(t,{Z:()=>$});var s=i(43697),l=i(9790),r=i(20102),n=i(22974),o=i(92604),a=i(78286),u=i(17445),p=i(5600),c=i(90578),h=i(36030),d=i(71715),y=i(52011),m=i(30556),f=i(22862),b=i(75215),v=i(35671),g=i(48522),w=i(5499),_=i(41733),V=i(9833),S=i(66338),x=i(2368),C=i(96674),I=i(67676);i(80442);let z=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s._)([(0,p.Cb)(V.GY)],z.prototype,"value",void 0),(0,s._)([(0,p.Cb)(V.GY)],z.prototype,"value2",void 0),(0,s._)([(0,p.Cb)(V.GY)],z.prototype,"value3",void 0),z=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValue")],z);const j=z;let q=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map((e=>new j({value:e}))):"object"===t?e[0]instanceof j?e:e.map((e=>new j(e))):null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"description",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"label",void 0),(0,s._)([(0,p.Cb)(V.Gn)],q.prototype,"symbol",void 0),(0,s._)([(0,p.Cb)({type:[j],json:{type:[[String]],read:{reader:e=>e?e.map((e=>new j({value:e[0],value2:e[1],value3:e[2]}))):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(I.pC).map((e=>e.toString()));i.push(e)}t.values=i}}}})],q.prototype,"values",void 0),(0,s._)([(0,c.p)("values")],q.prototype,"castValues",null),q=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueClass")],q);const F=q;let E=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"heading",void 0),(0,s._)([(0,p.Cb)({type:[F],json:{write:!0}})],E.prototype,"classes",void 0),E=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueGroup")],E);const T=E;var k,O=i(44262),D=i(59266),U=i(25929),B=i(27883),Z=i(59390);const L="esri.renderers.UniqueValueRenderer",N=o.Z.getLogger(L),M="uvInfos-watcher",R="uvGroups-watcher",G=(0,b.se)(O.Z);let A=k=class extends((0,_.W)(w.Z)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let l=0;l<t.length;l++){const r=e.find((e=>e.value===t[l].value));r?(0,f.Hg)(r,t[l])?(s.changed.push({type:"complete",oldValue:r,newValue:t[l]}),i=!0):s.unchanged.push({oldValue:r,newValue:t[l]}):(s.added.push(t[l]),i=!0)}for(let l=0;l<e.length;l++)t.find((t=>t.value===e[l].value))||(s.removed.push(e[l]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,b.Zs)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s&&s.messages?s.messages.push(new r.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):N.error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||g.Z.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,U.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,U.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?N.error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?N.error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void N.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?G(e):new O.Z({value:e,symbol:(0,l.se)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[i.value]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void N.error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++)if(t[i].value===e+""){delete this._valueInfoMap[e],t.splice(i,1);break}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return!this.valueExpression||null!=t&&null!=t.arcade||(i={...i,arcade:await(0,D.LC)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&(null==t||null==t.arcade))return void N.error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i&&i.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&(null==i||null==i.arcade)){const e=await(0,D.LC)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s&&s.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce(((e,t)=>e+t.getMeshHash()),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new k({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.d9)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,n.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.d9)(this.uniqueValueInfos),i=(0,n.d9)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.d9)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,v.io)(e,t,this.valueExpression)];(0,v.AB)(e,t,this.field),(0,v.AB)(e,t,this.field2),(0,v.AB)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,B.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new Z.Z({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const l=new O.Z({value:i.name,symbol:s});t.push(l),this._valueInfoMap[i.name]=l})),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[t.value+""]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles(M);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,u.YP)((()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description})),((e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)}),{sync:!0}));this.addHandles(t,M)}}_watchUniqueValueGroups(){this.removeHandles(R);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,u.YP)((()=>({classes:i.classes})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}));for(const e of i.classes??[])t.push((0,u.YP)((()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}))}this.addHandles(t,R)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueGroups:r,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of r)for(const r of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=r;for(const r of a??[]){const{value:a,value2:p,value3:c}=r,h=[a];i&&h.push(p),s&&h.push(c);const d=o?h.join(l||""):h[0];e.push(new O.Z({symbol:t,label:n,value:d,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:l,uniqueValueInfos:r}=this;if(!t&&!s||!r.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=r.map((e=>{const{symbol:t,label:i,value:s,description:r}=e,[o,a,u]=n?s?.toString()?.split(l||"")||[]:[s];return new F({symbol:t,label:i,description:r,values:[new j({value:o,value2:a,value3:u})]})})),a=[new T({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:l,arcade:r}=t??{};let n=this._cache.compiledFunc;const o=r.arcadeUtils;if(!n){const e=o.createSyntaxTree(this.valueExpression);n=o.createFunction(e),this._cache.compiledFunc=n}const a=o.executeFunction(n,o.createExecContext(e,o.getViewInfo({viewingMode:i,scale:s,spatialReference:l})));return this._valueInfoMap[a+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if("function"!=typeof t&&this.field2){const e=this.field2,l=this.field3,r=[];t&&r.push(i[t]),e&&r.push(i[e]),l&&r.push(i[l]),s=r.join(this.fieldDelimiter||"")}else"function"==typeof t?s=t(e):t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new k(t&&t.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t&&t.portal||g.Z.getDefault());const s=i.populateFromStyle();return s.catch((t=>{N.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),s}static fromStyleUrl(e,t){const i=new k(t&&t.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch((t=>{N.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),s}};(0,s._)([(0,p.Cb)({readOnly:!0})],A.prototype,"_cache",null),(0,s._)([(0,h.J)({uniqueValue:"unique-value"})],A.prototype,"type",void 0),(0,s._)([(0,p.Cb)(V.KK)],A.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,p.Cb)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],A.prototype,"field",null),(0,s._)([(0,c.p)("field")],A.prototype,"castField",null),(0,s._)([(0,m.c)("field")],A.prototype,"writeField",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],A.prototype,"field2",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],A.prototype,"field3",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],A.prototype,"orderByClassesEnabled",void 0),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],A.prototype,"valueExpression",null),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],A.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,p.Cb)({type:S.I,json:{write:!0}})],A.prototype,"legendOptions",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],A.prototype,"defaultLabel",void 0),(0,s._)([(0,p.Cb)((0,a.RH)({...V.Gn},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],A.prototype,"defaultSymbol",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],A.prototype,"fieldDelimiter",null),(0,s._)([(0,p.Cb)({type:g.Z,readOnly:!0})],A.prototype,"portal",void 0),(0,s._)([(0,d.r)("portal",["styleName"])],A.prototype,"readPortal",null),(0,s._)([(0,p.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],A.prototype,"styleOrigin",void 0),(0,s._)([(0,d.r)("styleOrigin",["styleName","styleUrl"])],A.prototype,"readStyleOrigin",null),(0,s._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],A.prototype,"writeStyleOrigin",null),(0,s._)([(0,p.Cb)({type:[T],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:l,uniqueValueInfos:r,valueExpression:n}=e,o=!(!t||!i);return[{classes:(r??[]).map((e=>{const{symbol:r,label:a,value:u,description:p}=e,[c,h,d]=o?u?.toString()?.split(l||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(h),s&&y.push(d),{symbol:r,label:a,values:[y],description:p}}))}]}(t)).map((e=>T.fromJSON(e,i)))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],A.prototype,"uniqueValueGroups",null),(0,s._)([(0,p.Cb)({type:[O.Z],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],A.prototype,"uniqueValueInfos",null),A=k=(0,s._)([(0,y.j)(L)],A);const $=A},41733:(e,t,i)=>{i.d(t,{W:()=>U});var s=i(43697),l=i(5600),r=i(75215),n=(i(67676),i(80442),i(71715)),o=i(52011),a=i(30556),u=i(35671);const p=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var c,h=i(77997),d=i(21849);let y=c=class extends h.Z{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new c({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,s._)([(0,l.Cb)({readOnly:!0})],y.prototype,"cache",null),(0,s._)([(0,l.Cb)({type:["color"],json:{type:["colorInfo"]}})],y.prototype,"type",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,s._)([(0,l.Cb)({type:[d.Z],json:{write:!0}})],y.prototype,"stops",null),y=c=(0,s._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],y);const m=y;var f,b=i(96674),v=i(65242);let g=f=class extends b.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,v.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,v.a)(e)}clone(){return new f({label:this.label,opacity:this.opacity,value:this.value})}};(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{type:r.z8,write:{target:"transparency"}}})],g.prototype,"opacity",void 0),(0,s._)([(0,n.r)("opacity",["transparency"])],g.prototype,"readOpacity",null),(0,s._)([(0,a.c)("opacity")],g.prototype,"writeOpacity",null),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=f=(0,s._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],g);const w=g;var _;let V=_=class extends h.Z{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new _({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions&&this.legendOptions.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,s._)([(0,l.Cb)({readOnly:!0})],V.prototype,"cache",null),(0,s._)([(0,l.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],V.prototype,"type",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],V.prototype,"normalizationField",void 0),(0,s._)([(0,l.Cb)({type:[w],json:{write:!0}})],V.prototype,"stops",null),V=_=(0,s._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],V);const S=V;var x=i(89513),C=i(23847),I=i(92036),z=i(35454),j=i(92604),q=i(20941);const F={color:m,size:C.Z,opacity:S,rotation:x.Z},E=new z.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),T=/^\[([^\]]+)\]$/i;let k=class extends I.Z{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),(e=e&&e.filter((e=>!!e)))&&e.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:l}=t,r=s&&s.match(T),n=r&&r[1];if(n&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:l,field:n})),e)return e.map((e=>{const t=E.read(e.type),s=F[t];s||(j.Z.getLogger(this).warn(`Unknown variable type: ${t}`),i&&i.messages&&i.messages.push(new q.Z("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const l=new s;return l.read(e,i),l}))}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s._)([(0,l.Cb)()],k.prototype,"visualVariables",null),k=(0,s._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],k);const O=k,D={base:h.Z,key:"type",typeMap:{opacity:S,color:m,rotation:x.Z,size:C.Z}},U=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new O}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const i=this.visualVariables;return i?i.filter((i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))):[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,u.AB)(e,t,s.field),s.normalizationField&&(0,u.AB)(e,t,s.normalizationField),s.valueExpression&&(B(s.valueExpression,e,t)||await(0,u.io)(e,t,s.valueExpression)))}};return(0,s._)([(0,l.Cb)({types:[D],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,s._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,s._)([(0,a.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,s._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function B(e,t,i){const s=(l=e,l.match(p)?.[1]?.replace(/\\'/g,"'")??null);var l;return null!=s&&((0,u.AB)(t,i,s),!0)}},69237:(e,t,i)=>{i.d(t,{Z:()=>T});var s,l=i(43697),r=i(35454),n=i(96674),o=i(22974),a=i(5600),u=i(75215),p=i(71715),c=i(52011);i(67676),i(80442);let h=s=class extends n.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var d;(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"minValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],h.prototype,"maxValue",void 0),h=s=(0,l._)([(0,c.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],h);let y=d=class extends n.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new d({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.d9)(this.classBreakInfos)})}};(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,l._)([(0,a.Cb)({type:[h],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=d=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(90578);const b=new r.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),v=new r.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),g={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},w=["high-to-low","above-and-below","centered-on","extremes"],_=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],V=["seconds","minutes","hours","days","months","years"];let S=m=class extends n.wq{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new m({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,l._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"endTime",void 0),(0,l._)([(0,f.p)("endTime")],S.prototype,"castEndTime",null),(0,l._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"field",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"minSliderValue",void 0),(0,l._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"startTime",void 0),(0,l._)([(0,f.p)("startTime")],S.prototype,"castStartTime",null),(0,l._)([(0,a.Cb)({type:b.apiValues,value:null,json:{type:b.jsonValues,read:b.read,write:b.write}})],S.prototype,"style",null),(0,l._)([(0,a.Cb)({type:_,value:null,json:{type:_,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.includes(e)&&(t.theme=e)}}}},write:!0}})],S.prototype,"theme",null),(0,l._)([(0,a.Cb)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],S.prototype,"type",void 0),(0,l._)([(0,a.Cb)({type:V,json:{type:V,write:!0}})],S.prototype,"units",void 0),S=m=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfoVisualVariable")],S);const x=S;var C,I=i(94593);const z=new r.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),j=new r.X({pieChart:"pie-chart",classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new r.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let E=C=class extends n.wq{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,I.i)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new C({classificationMethod:this.classificationMethod,colorRamp:(0,o.d9)(this.colorRamp),fadeRatio:(0,o.d9)(this.fadeRatio),fields:this.fields&&this.fields.slice(0),field1:(0,o.d9)(this.field1),field2:(0,o.d9)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,l._)([(0,a.Cb)({type:z.apiValues,value:null,json:{type:z.jsonValues,read:z.read,write:z.write,origins:{"web-document":{default:"manual",type:z.jsonValues,read:z.read,write:z.write}}}})],E.prototype,"classificationMethod",null),(0,l._)([(0,a.Cb)({types:I.V,json:{write:!0}})],E.prototype,"colorRamp",void 0),(0,l._)([(0,p.r)("colorRamp")],E.prototype,"readColorRamp",null),(0,l._)([(0,a.Cb)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"fadeRatio",void 0),(0,l._)([(0,a.Cb)({type:[String],value:null,json:{write:!0}})],E.prototype,"fields",null),(0,l._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field1",null),(0,l._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field2",null),(0,l._)([(0,a.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"flowTheme",null),(0,l._)([(0,a.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],E.prototype,"focus",null),(0,l._)([(0,a.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],E.prototype,"isAutoGenerated",void 0),(0,l._)([(0,a.Cb)({type:Number,value:null,json:{type:u.z8,write:!0}})],E.prototype,"numClasses",null),(0,l._)([(0,a.Cb)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],E.prototype,"lengthUnit",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"maxSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"minSliderValue",void 0),(0,l._)([(0,a.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"statistics",null),(0,l._)([(0,a.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],E.prototype,"standardDeviationInterval",null),(0,l._)([(0,a.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],E.prototype,"type",null),(0,l._)([(0,a.Cb)({type:[x],json:{write:!0}})],E.prototype,"visualVariables",void 0),(0,l._)([(0,a.Cb)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateSymbolStyle",null),(0,l._)([(0,a.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateTheme",null),E=C=(0,l._)([(0,c.j)("esri.renderers.support.AuthoringInfo")],E);const T=E},32984:(e,t,i)=>{i.d(t,{Z:()=>p});var s,l=i(43697),r=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends r.wq{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,l._)([(0,n.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,l._)([(0,n.Cb)(a.Gn)],u.prototype,"symbol",void 0),u=s=(0,l._)([(0,o.j)("esri.renderers.support.ClassBreakInfo")],u);const p=u},66338:(e,t,i)=>{i.d(t,{I:()=>a});var s,l=i(43697),r=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011));let a=s=class extends r.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=s=(0,l._)([(0,o.j)("esri.renderers.support.LegendOptions")],a)},44262:(e,t,i)=>{i.d(t,{Z:()=>p});var s,l=i(43697),r=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends r.wq{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol&&this.symbol.toJSON());return`${this.value}.${e}`}};(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,n.Cb)(a.Gn)],u.prototype,"symbol",void 0),(0,l._)([(0,n.Cb)(a.GY)],u.prototype,"value",void 0),u=s=(0,l._)([(0,o.j)("esri.renderers.support.UniqueValueInfo")],u);const p=u},9833:(e,t,i)=>{i.d(t,{GY:()=>p,Gn:()=>a,KK:()=>u});var s=i(9790),l=i(63213),r=i(21878),n=i(89164),o=i(86114);const a={types:s.QT,json:{write:{writer:r.cW},origins:{"web-scene":{types:s.f_,write:{writer:r.cW},read:{reader:(0,l.d)({types:s.f_})}}}}},u={types:{base:n.Z,key:"type",typeMap:{"simple-fill":s.LB.typeMap["simple-fill"],"picture-fill":s.LB.typeMap["picture-fill"],"polygon-3d":s.LB.typeMap["polygon-3d"]}},json:{write:{writer:r.cW},origins:{"web-scene":{type:o.Z,write:{writer:r.cW}}}}},p={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},89513:(e,t,i)=>{i.d(t,{Z:()=>c});var s,l=i(43697),r=i(20102),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(30556),u=i(77997);let p=s=class extends u.Z{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s&&s.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new r.Z("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions&&this.legendOptions.clone()})}};(0,l._)([(0,n.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,l._)([(0,n.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,l._)([(0,n.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,l._)([(0,n.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,l._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,l._)([(0,a.c)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,l._)([(0,o.j)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},23847:(e,t,i)=>{i.d(t,{Z:()=>z});var s,l=i(43697),r=i(20102),n=i(35454),o=i(92604),a=i(62357),u=i(5600),p=i(90578),c=i(71715),h=i(52011),d=i(30556),y=i(77997),m=i(30856),f=(i(75215),i(67676),i(80442),i(58439));let b=s=class extends f.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues&&this.customValues.slice(0)})}};(0,l._)([(0,u.Cb)({type:[Number],json:{write:!0}})],b.prototype,"customValues",void 0),b=s=(0,l._)([(0,h.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],b);const v=b;var g,w=i(51706),_=i(28101);const V=new n.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new n.X({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function x(e){if(null!=e)return"string"==typeof e||"number"==typeof e?(0,a.t_)(e):"size"===e.type?(0,w.iY)(e)?e:(delete(e={...e}).type,new I(e)):void 0}function C(e,t,i){if("object"!=typeof e)return e;const s=new I;return s.read(e,i),s}let I=g=class extends y.Z{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&_.B3.test(this.valueExpression)}}set expression(e){o.Z.getLogger(this).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,w.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,w.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,w.PS)(this)}set maxDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return x(e)}readMaxSize(e,t,i){return C(e,0,i)}set minDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return x(e)}readMinSize(e,t,i){return C(e,0,i)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(o.Z.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,w.QW)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s&&s.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new r.Z("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new g({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,w.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,w.iY)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops&&this.stops.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions&&this.legendOptions.clone()})}flipSizes(){if(this.transformationType===w.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===w.hL.Stops){const e=this.stops;if(!e)return this;const t=e.map((e=>e.size)).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,l._)([(0,u.Cb)({readOnly:!0})],I.prototype,"cache",null),(0,l._)([(0,u.Cb)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],I.prototype,"axis",void 0),(0,l._)([(0,u.Cb)({type:String,value:null,json:{read:!1}})],I.prototype,"expression",null),(0,l._)([(0,u.Cb)()],I.prototype,"index",null),(0,l._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"inputValueType",null),(0,l._)([(0,u.Cb)({type:v,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxDataValue",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxSize",null),(0,l._)([(0,p.p)("maxSize")],I.prototype,"castMaxSize",null),(0,l._)([(0,c.r)("maxSize")],I.prototype,"readMaxSize",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minDataValue",null),(0,l._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minSize",null),(0,l._)([(0,p.p)("minSize")],I.prototype,"castMinSize",null),(0,l._)([(0,c.r)("minSize")],I.prototype,"readMinSize",null),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,l._)([(0,u.Cb)({readOnly:!0})],I.prototype,"arcadeRequired",null),(0,l._)([(0,u.Cb)({type:String})],I.prototype,"scaleBy",void 0),(0,l._)([(0,u.Cb)({type:[m.Z],value:null,json:{write:!0}})],I.prototype,"stops",null),(0,l._)([(0,u.Cb)({type:["outline"],json:{write:!0}})],I.prototype,"target",void 0),(0,l._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"transformationType",null),(0,l._)([(0,u.Cb)({type:["size"],json:{type:["sizeInfo"]}})],I.prototype,"type",void 0),(0,l._)([(0,u.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],I.prototype,"useSymbolValue",void 0),(0,l._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,l._)([(0,c.r)("valueExpression",["valueExpression","expression"])],I.prototype,"readValueExpression",null),(0,l._)([(0,d.c)("web-scene","valueExpression")],I.prototype,"writeValueExpressionWebScene",null),(0,l._)([(0,u.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],I.prototype,"valueRepresentation",void 0),(0,l._)([(0,u.Cb)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"valueUnit",void 0),(0,l._)([(0,c.r)("valueUnit")],I.prototype,"readValueUnit",null),I=g=(0,l._)([(0,h.j)("esri.renderers.visualVariables.SizeVariable")],I);const z=I},77997:(e,t,i)=>{i.d(t,{Z:()=>y});var s=i(43697),l=i(35454),r=i(96674),n=i(92604),o=i(5600),a=i(90578),u=i(52011),p=i(75215),c=i(58439);const h=new l.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let d=class extends r.wq{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.Z.getLogger(this).error(".field: field must be a string value"),null):(0,p.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,o.Cb)()],d.prototype,"index",void 0),(0,s._)([(0,o.Cb)({type:h.apiValues,readOnly:!0,json:{read:h.read,write:h.write}})],d.prototype,"type",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,s._)([(0,a.p)("field")],d.prototype,"castField",null),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,o.Cb)({readOnly:!0})],d.prototype,"arcadeRequired",null),(0,s._)([(0,o.Cb)({type:c.Z,json:{write:!0}})],d.prototype,"legendOptions",void 0),d=(0,s._)([(0,u.j)("esri.renderers.visualVariables.VisualVariable")],d);const y=d},21849:(e,t,i)=>{i.d(t,{Z:()=>h});var s,l=i(43697),r=i(22303),n=i(96674),o=i(5600),a=i(75215),u=(i(67676),i(80442),i(52011)),p=i(30556);let c=s=class extends n.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],c.prototype,"color",void 0),(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,l._)([(0,p.c)("value")],c.prototype,"writeValue",null),c=s=(0,l._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],c);const h=c},30856:(e,t,i)=>{i.d(t,{Z:()=>p});var s,l=i(43697),r=i(96674),n=i(62357),o=i(5600),a=(i(75215),i(67676),i(80442),i(52011));let u=s=class extends r.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new s({label:this.label,size:this.size,value:this.value})}};(0,l._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,l._)([(0,o.Cb)({type:Number,cast:n.t_,json:{write:!0}})],u.prototype,"size",void 0),(0,l._)([(0,o.Cb)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),u=s=(0,l._)([(0,a.j)("esri.renderers.visualVariables.support.SizeStop")],u);const p=u},58439:(e,t,i)=>{i.d(t,{Z:()=>u});var s,l=i(43697),r=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),o=i(66338);let a=s=class extends o.I{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,l._)([(0,r.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=s=(0,l._)([(0,n.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},51706:(e,t,i)=>{var s,l;function r(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?s.Expression:e.field&&"string"==typeof e.field?s.Field:s.Unknown}function a(e,t){const i=t||o(e),r=e.valueUnit||"unknown";return i===s.Unknown?l.Constant:e.stops?l.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?l.ClampedLinear:"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?l.Proportional:l.Additive:l.Identity:l.RealWorldSize}i.d(t,{PS:()=>o,QW:()=>a,RY:()=>s,hL:()=>l,iY:()=>r,qh:()=>n}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(s||(s={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(l||(l={}))},28101:(e,t,i)=>{i.d(t,{B3:()=>p,PR:()=>m,cM:()=>c}),i(22303);var s=i(38171),l=i(74085),r=i(92604),n=i(99282),o=i(51706);const a=r.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=(new s.Z,Math.PI),p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function c(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"rotation"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const l=s.axis||"heading",r="heading"===l&&"arithmetic"===s.rotationType?90:0,n="heading"===l&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,u=o&&o.attributes,p=s.field,{hasExpression:c}=s.cache;let h=s.cache.compiledFunc,d=0;if(!p&&!c)return d;if(c){if(null==i||null==i.arcade)return void a.error("Use of arcade expressions requires an arcade context");const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,l=t.getViewInfo(e),r=t.createExecContext(o,l);if(!h){const e=t.createSyntaxTree(s.valueExpression);h=t.createFunction(e),s.cache.compiledFunc=h}d=t.executeFunction(h,r)}else u&&(d=u[p]||0);return d="number"!=typeof d||isNaN(d)?null:r+n*d,d}function h(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"size"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const l=function(e,t,i,s,l){switch(t.transformationType){case o.hL.Additive:return function(e,t,i,s){return e+((d(t.minSize,i,s)||t.minDataValue)??0)}(e,t,i,s);case o.hL.Constant:return function(e,t,i){const s=e.stops;let l=s&&s.length&&s[0].size;return null==l&&(l=e.minSize),d(l,t,i)}(t,i,s);case o.hL.ClampedLinear:return function(e,t,i,s){const l=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),r=d(t.minSize,i,s),n=d(t.maxSize,i,s),o=null!=s?s.shape:void 0;if(e<=t.minDataValue)return r;if(e>=t.maxDataValue)return n;if(null==r||null==n)return null;if("area"===t.scaleBy&&o){const e="circle"===o,t=e?u*(r/2)**2:r*r,i=t+l*((e?u*(n/2)**2:n*n)-t);return e?2*Math.sqrt(i/u):Math.sqrt(i)}return r+l*(n-r)}(e,t,i,s);case o.hL.Proportional:return function(e,t,i,s){const l=null!=s?s.shape:void 0,r=e/t.minDataValue,n=d(t.minSize,i,s),o=d(t.maxSize,i,s);let a=null;return a="circle"===l?2*Math.sqrt(r*(n/2)**2):"square"===l||"diamond"===l||"image"===l?Math.sqrt(r*n**2):r*n,y(a,n,o)}(e,t,i,s);case o.hL.Stops:return function(e,t,i,s,l){const[r,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some(((t,l)=>e<t?(s=l,!0):(i=l,!1))),[i,s,(e-t[i])/(t[s]-t[i])]}(e,l);if(r===n)return d(t.stops?.[r].size,i,s);{const e=d(t.stops?.[r].size,i,s);return e+(d(t.stops?.[n].size,i,s)-e)*o}}(e,t,i,s,l);case o.hL.RealWorldSize:return function(e,t,i,s){const l=(null!=s&&s.resolution?s.resolution:1)*n.a[t.valueUnit],r=d(t.minSize,i,s),o=d(t.maxSize,i,s),{valueRepresentation:a}=t;let p=null;return p="area"===a?2*Math.sqrt(e/u)/l:"radius"===a||"distance"===a?2*e/l:e/l,y(p,r,o)}(e,t,i,s);case o.hL.Identity:return e;case o.hL.Unknown:return null}}(function(e,t,i){const s="number"==typeof t,l=s?null:t,r=l&&l.attributes;let n=s?t:null;const{isScaleDriven:u}=e.cache;let p=e.cache.compiledFunc;if(u){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case o.RY.Expression:{if(null==i||null==i.arcade)return void a.error("Use of arcade expressions requires an arcade context");const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,r=s.getViewInfo(t),o=s.createExecContext(l,r);if(!p){const t=s.createSyntaxTree(e.valueExpression);p=s.createFunction(t),e.cache.compiledFunc=p}n=s.executeFunction(p,o);break}case o.RY.Field:r&&(n=r[e.field]);break;case o.RY.Unknown:n=null}if(!(0,o.qh)(n))return null;if(s||!e.normalizationField)return n;const c=r?parseFloat(r[e.normalizationField]):null;return(0,o.qh)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==l||isNaN(l)?0:l}function d(e,t,i){return null==e?null:(0,o.iY)(e)?h(e,t,i):(0,o.qh)(e)?e:null}function y(e,t,i){return(0,o.qh)(i)&&e>i?i:(0,o.qh)(t)&&e<t?t:e}function m(e,t,i){const s=["proportional","proportional","proportional"];for(const r of e){const e=r.useSymbolValue?"symbol-value":h(r,t,i);switch(r.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:(0,l.Bg)(r.axis)}}return s}},98046:(e,t,i)=>{i.d(t,{Z:()=>d});var s,l=i(43697),r=i(22303),n=i(22974),o=i(5600),a=i(75215),u=i(36030),p=i(52011),c=i(899);let h=s=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.d9)(this.fromColor),toColor:(0,n.d9)(this.toColor),algorithm:this.algorithm})}};(0,l._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0),(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],h.prototype,"fromColor",void 0),(0,l._)([(0,o.Cb)({type:r.Z,json:{type:[a.z8],write:!0}})],h.prototype,"toColor",void 0),(0,l._)([(0,o.Cb)({type:["algorithmic"]})],h.prototype,"type",void 0),h=s=(0,l._)([(0,p.j)("esri.rest.support.AlgorithmicColorRamp")],h);const d=h},899:(e,t,i)=>{i.d(t,{Z:()=>a});var s=i(43697),l=i(96674),r=i(5600),n=(i(75215),i(67676),i(80442),i(52011));let o=class extends l.wq{constructor(e){super(e),this.type=null}};(0,s._)([(0,r.Cb)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,n.j)("esri.rest.support.ColorRamp")],o);const a=o},1515:(e,t,i)=>{i.d(t,{Z:()=>c});var s,l=i(43697),r=i(22974),n=i(5600),o=(i(75215),i(52011)),a=i(98046),u=i(899);let p=s=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:(0,r.d9)(this.colorRamps)})}};(0,l._)([(0,n.Cb)({type:[a.Z],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,l._)([(0,n.Cb)({type:["multipart"]})],p.prototype,"type",void 0),p=s=(0,l._)([(0,o.j)("esri.rest.support.MultipartColorRamp")],p);const c=p},94593:(e,t,i)=>{i.d(t,{V:()=>n,i:()=>o});var s=i(98046),l=i(899),r=i(1515);const n={key:"type",base:l.Z,typeMap:{algorithmic:s.Z,multipart:r.Z}};function o(e){return e&&e.type?"algorithmic"===e.type?s.Z.fromJSON(e):"multipart"===e.type?r.Z.fromJSON(e):null:null}}}]);