@arcgis/core 5.2.0-next.157 → 5.2.0-next.159

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 (90) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{820c8aaf3632edb0150c.js → 0a5a9885ee6f5b5f99f0.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{7bcedf479b07a4b4a234.js → 1419bf346978b81b08cc.js} +1 -1
  4. package/assets/esri/core/workers/chunks/2cb209bc51a19487692d.js +2 -0
  5. package/assets/esri/core/workers/chunks/2e66c969bf4209c957b5.js +2 -0
  6. package/assets/esri/core/workers/chunks/31640b41e0ecdff892fa.js +2 -0
  7. package/assets/esri/core/workers/chunks/{2ef5237e4c876d6a4ee0.js → 340256866f524cb069f6.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{6079d27f4ab319fb8f0c.js → 377595b23379b0c8fe95.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{c5ed67fdf261cbb1624b.js → 4be559c53fe5ac0d0d2e.js} +1 -1
  10. package/assets/esri/core/workers/chunks/4e6656a5f29e31902fca.js +2 -0
  11. package/assets/esri/core/workers/chunks/{67ebc5a3d46b254b725c.js → 612345f17f5eeb99ea8f.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{44918ff37818a7d36d76.js → 6a0ec102962d2c7b4368.js} +1 -1
  13. package/assets/esri/core/workers/chunks/6a2562cc00727155fc01.js +1 -0
  14. package/assets/esri/core/workers/chunks/784d6c6949284ed6e10b.js +1 -0
  15. package/assets/esri/core/workers/chunks/{590e6c70206122e4cc3c.js → 844eedda8f749972f707.js} +2 -2
  16. package/assets/esri/core/workers/chunks/{d2347d6aa1c57fd57029.js → 8ff23ac0abeea0073b47.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{ec8b7476eac4718eb0ac.js → a504a5e06cb89a620799.js} +1 -1
  18. package/assets/esri/core/workers/chunks/a53823cf03dbdce1aecd.js +1 -0
  19. package/assets/esri/core/workers/chunks/{a556dd4e9e6d35e33a2c.js → a546ec82ba149e12f7bf.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{4a640548032355e57acd.js → ab6506a3c16f8717fc00.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{d65383f4058dc813f40d.js → ade5fdcd08dcbac74740.js} +1 -1
  22. package/assets/esri/core/workers/chunks/ba38231193919e093917.js +1 -0
  23. package/assets/esri/core/workers/chunks/{3f776d9fd2ab68b21fca.js → bbd44ac63d2a317d8ed9.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{35e5762642d1a3a2e375.js → be308db5b61a7246edfe.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{10445313d0d57b34511b.js → d53cc574a21031436c45.js} +1 -1
  26. package/assets/esri/core/workers/chunks/dc51dcaa4e2f9a90f5bd.js +2 -0
  27. package/assets/esri/core/workers/chunks/f63686735e4e52f5b54e.js +1 -0
  28. package/assets/esri/core/workers/chunks/{b573df59391ca41ee5a7.js → fc73737b41e086f0ce0b.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{3914d96147642a9d4b01.js → ffbcb816b611049a6276.js} +1 -1
  30. package/assets/esri/themes/base/widgets/_Weather.scss +1 -0
  31. package/assets/esri/themes/dark/main.css +1 -1
  32. package/assets/esri/themes/light/main.css +1 -1
  33. package/assets/esri/themes/light/view.css +1 -1
  34. package/config.js +1 -1
  35. package/form/elements.d.ts +46 -8
  36. package/form/elements.js +1 -1
  37. package/kernel.js +1 -1
  38. package/layers/GeoJSONLayer.d.ts +1 -1
  39. package/layers/support/layerOriginUtils.js +1 -1
  40. package/package.json +3 -3
  41. package/popup/FeaturesModel.js +1 -1
  42. package/time/TimeExtent.d.ts +1 -1
  43. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
  44. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  45. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  46. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  47. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  48. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementTool.js +1 -1
  49. package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
  50. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DTool.js +1 -1
  51. package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
  52. package/views/View.js +1 -1
  53. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  54. package/views/interactive/snapping/SnappingManagerPool.js +1 -1
  55. package/views/interactive/snapping/allLayerSnapping.js +1 -1
  56. package/widgets/AreaMeasurement2D/AreaMeasurement2DViewModel.d.ts +2 -1
  57. package/widgets/BasemapToggle/BasemapToggleViewModel.d.ts +2 -0
  58. package/widgets/DistanceMeasurement2D/DistanceMeasurement2DViewModel.d.ts +2 -1
  59. package/widgets/Expand/ExpandViewModel.d.ts +2 -0
  60. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  61. package/widgets/Fullscreen/FullscreenViewModel.d.ts +3 -1
  62. package/widgets/Home/HomeViewModel.d.ts +2 -0
  63. package/widgets/ScaleRangeSlider/ScaleRanges.d.ts +3 -0
  64. package/widgets/ScaleRangeSlider/types.d.ts +3 -3
  65. package/widgets/Sketch/SketchViewModel.js +1 -1
  66. package/widgets/Swipe/SwipeViewModel.d.ts +2 -0
  67. package/widgets/Swipe/types.d.ts +9 -2
  68. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +9 -5
  69. package/widgets/TimeSlider/types.d.ts +7 -0
  70. package/widgets/TimeSlider.d.ts +2 -3
  71. package/widgets/TimeSlider.js +1 -1
  72. package/widgets/Track/TrackViewModel.d.ts +4 -0
  73. package/widgets/Track/types.d.ts +1 -0
  74. package/widgets/support/Selector3D/selectorUtils.js +1 -1
  75. package/assets/esri/core/workers/chunks/1b946714ca4a1a7359d4.js +0 -2
  76. package/assets/esri/core/workers/chunks/22b01fe31bbf0bdc48db.js +0 -1
  77. package/assets/esri/core/workers/chunks/27c2da2e779def2ee08b.js +0 -1
  78. package/assets/esri/core/workers/chunks/2a1ec30f9ad305763f81.js +0 -2
  79. package/assets/esri/core/workers/chunks/34570e6bbf559f18c1a5.js +0 -1
  80. package/assets/esri/core/workers/chunks/5566f14afb63065e438f.js +0 -1
  81. package/assets/esri/core/workers/chunks/68d8ae42ab71d01a70a5.js +0 -2
  82. package/assets/esri/core/workers/chunks/8cb716f110d164030309.js +0 -1
  83. package/assets/esri/core/workers/chunks/8dc1c3042267618fd710.js +0 -2
  84. package/assets/esri/core/workers/chunks/96c50a0dda0f1503ef92.js +0 -2
  85. /package/assets/esri/core/workers/chunks/{1b946714ca4a1a7359d4.js.LICENSE.txt → 2cb209bc51a19487692d.js.LICENSE.txt} +0 -0
  86. /package/assets/esri/core/workers/chunks/{8dc1c3042267618fd710.js.LICENSE.txt → 2e66c969bf4209c957b5.js.LICENSE.txt} +0 -0
  87. /package/assets/esri/core/workers/chunks/{96c50a0dda0f1503ef92.js.LICENSE.txt → 31640b41e0ecdff892fa.js.LICENSE.txt} +0 -0
  88. /package/assets/esri/core/workers/chunks/{2a1ec30f9ad305763f81.js.LICENSE.txt → 4e6656a5f29e31902fca.js.LICENSE.txt} +0 -0
  89. /package/assets/esri/core/workers/chunks/{590e6c70206122e4cc3c.js.LICENSE.txt → 844eedda8f749972f707.js.LICENSE.txt} +0 -0
  90. /package/assets/esri/core/workers/chunks/{68d8ae42ab71d01a70a5.js.LICENSE.txt → dc51dcaa4e2f9a90f5bd.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},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:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,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:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath&&(a.assetsPath="https://cdn.jsdelivr.net/npm/@arcgis/core@5.2.0-next.157/assets",a.defaultAssetsPath=a.assetsPath),r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>i});var n=r(4718),a=r(53966),o=r(799);class i{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}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.o8)(t)}catch{return"[object]"}}))}}catch(e){throw a.A.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)}}},53966(e,t,r){r.d(t,{A:()=>s});var n=r(92602),a=r(51447),o=(r(44208),r(799));const i={info:0,warn:1,error:2,none:3};class s{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,s._loggers.set(this.module,this);let t=this.module.lastIndexOf(".");-1!==t&&(this._parent=s.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(){}static get test(){}static getLogger(e){return e="string"==typeof e?e:e.declaredClass,s._loggers.get(e)||new s({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!s._throttlingDisabled){let n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=s._tickCounter)return;this._loggedMessages[e].set(n,s._tickCounter),s._scheduleTickCounterIncrement()}for(let t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){let t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",c)}_matchLevel(e){let t=n.A.log.level||"warn";return i[this._parentWithMember("level",t)]<=i[e]}static _scheduleTickCounterIncrement(){s._tickCounterScheduled||(s._tickCounterScheduled=!0,Promise.resolve().then(()=>{s._tickCounter++,s._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}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){let r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>c,Xj:()=>f,Xy:()=>m,aI:()=>s,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){let r=[];for(let n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function i(e,t,r,n,a,o,i){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);let s=r-t;if(null==e||null==n||s!==o-a)return!1;if(i){for(let r=0;r<s;r++)if(!i(e[t+r],n[a+r]))return!1}else for(let r=0;r<s;r++)if(e[t+r]!==n[a+r])return!1;return!0}function s(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function c(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;if(r)n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)));else{let r=new Set(e),o=new Set(t);n=t.filter(e=>!r.has(e)),a=e.filter(e=>!o.has(e))}return{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){let r=e.length;if(0===r)return[];let n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);let a=e.length,o=0,i=a;if(a===r){let r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<i;){let r=o+i>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:i=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n||=h;let a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;let o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){let o=r??e.length,i=p(e,(0,n.z)(t),o,a);if(-1!==i)return e[i]=e[o-1],r??e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a||=h;let i=Math.max(0,a.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;let r=w(t);for(let t=e.length-1;t>0;t--){let n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){let r=e.indexOf(t);return-1===r?null:(e.splice(r,1),t)}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,ck:()=>l,eF:()=>f,eO:()=>s,io:()=>d,u3:()=>u,uW:()=>i});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){let n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Module: ${u(t)}`,r)}function s(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Function: "+(n?u(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Property: "+(n?u(n)+"::":"")+t,r)}}function l(e,t,r,a={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=a;d(e,`'${(n?u(n)+"::":"")+t}' value: ${r}`,a)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Multiple argument constructor: ${t=u(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function d(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{replacement:n,version:a,see:i,warnOnce:s}=r,c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),i)if(Array.isArray(i)){c+="\n\t🔗 See for more details:";for(let e of i)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${i} for more details.`;o(e,c,s)}}function u(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>s,on:()=>i,wb:()=>a});var n=r(36563);function a(e){return function(e){return"object"==typeof e&&!!e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return"object"==typeof e&&!!e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){let o=t.slice();for(let t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(let t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function s(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=i(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>s,hA:()=>a,rE:()=>i,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&=void e()}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function i(e){return a(()=>e?.abort())}function s(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){let 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)){let 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(n.navigator){let 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 n),o.add("esri-temporal","Temporal"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in n,t=!1===n.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 n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3: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-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("sketch-layer-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-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("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:im-shading",!0),o.add("enable-feature:im-vertex-normals",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{Function()}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>s,aI:()=>b,gh:()=>h,o8:()=>i,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(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;let t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(f(e))throw Error("Trying to clone an unclonable Accessor instance");let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function s(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let r=u(e);if(null!=r)return r;if(l(e)){let r=!0,n=e.map(e=>{let n=s(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;let n=new(0,Object.getPrototypeOf(e).constructor);for(let t of Object.getOwnPropertyNames(e)){let r=e[t],a=s(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(i(r));return t}return null}function b(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 h(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.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(let 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(let[r,n]of e){let e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;let r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function s(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null==r?e.equals(t):r(e,t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>s,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>i})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){let n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function s(e,t){if(null==e&&null==t)return!1;if(null==e||null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){let r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(s(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let r in e)if(s(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(let r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],i=t[a];return o===i?e:void 0===o?(e[a]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[a]=o?Array.isArray(o)?o.slice():[o]:[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=i.slice())):i&&"object"==typeof i?e[a]=l(o,i,r):(!e.hasOwnProperty(a)||t.hasOwnProperty(a))&&(e[a]=i),e)},e||{}):e}function f(e,t){for(let r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>l,Lx:()=>g,Mq:()=>c,NK:()=>i,NO:()=>S,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>f,QZ:()=>m,Te:()=>s,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function i(e="Aborted"){return new n.A("AbortError",e)}function s(e,t="Aborted"){if(l(e))throw i(t)}function c(e){return e instanceof AbortSignal?e:e?.signal??void 0}function l(e){let t=c(e);return null!=t&&t.aborted}function f(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){let r=c(e);if(null!=r)return r.aborted?void t():(0,a.Oo)(r,"abort",()=>t())}function b(e,t){let r=c(e);if(null!=r)return s(r),(0,a.Oo)(r,"abort",()=>t(i()))}function h(e,t){return null==c(t)?e:new Promise((r,n)=>{let a=u(t,()=>n(i())),s=()=>{a=(0,o.xt)(a)};e.then(s,s),e.then(r,n)})}function p(e){return"object"==typeof e&&!!e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){let t=Object.keys(e),r=await g(t.map(t=>e[t])),n={};return t.map((e,t)=>n[e]=r[t]),n}let t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{let n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){let n=new AbortController;return u(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);u(n,()=>{o&&(clearTimeout(o),a(i()))})})}function _(e,t){let r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,a,o,s=null,c=(...l)=>{if(r){n=l,o&&o.reject(i()),o=Promise.withResolvers();let e=o.promise;if(s){let e=s;s=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){let n=new AbortController;r=O(e(...l,n.signal));let a=r;v(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=O(e(...l));let f=()=>{let e=n;n=a=r=s=null,null!=e&&c(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return c}function P(e,t){t.then(e.resolve,e.reject)}async function S(e){await Promise.resolve(),s(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>i,V2:()=>s,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function s(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function s(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||s(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:o(e)||i(e)?255:l(e)?2147483647:s(e)?y:a(e)?127:256}r.d(t,{IY:()=>s,JI:()=>p,LW:()=>d,UR:()=>i,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>oe,m3:()=>ae,nM:()=>ce,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>x,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>S,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),i=r(53966),s=r(12195),c=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=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=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=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 k=new v(n.A.applicationUrl);let O=function(){let e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null==k.port?"":`:${k.port}`}${t}`}();function A(e){if(!e)return null;let t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){let t=e.split("&"),r={};for(let e of t){if(!e)continue;let t,n,a=e.indexOf("=");a<0?(t=decodeURIComponent(e),n=""):(t=decodeURIComponent(e.slice(0,a)),n=decodeURIComponent(e.slice(a+1)));let o=r[t];"string"==typeof o&&(o=r[t]=[o]),Array.isArray(o)?o.push(n):r[t]=n}return r}function S(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=>{let n=e[r];if(null==n)return"";let a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,s.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,s.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function x(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);let n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw i.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ie()&&(r=oe(r)),A(r)}function M(e,t=!1){let r,n,a=N(e);if(a){let e=C(a.proxyUrl);r=e.path,n=e.query?P(e.query):null}else if(t){let t=x(e);r=t.path,n=t.query}if(r){let t=A(e);e=r+"?"+t.path;let a=S({...n,...t.query});a&&(e=`${e}?${a}`)}return e}const j={path:"",query:""};function C(e){let t=e.indexOf("?");return-1===t?(j.path=e,j.query=null):(j.path=e.slice(0,t),j.query=e.slice(t+1)),j}function $(e){return(e=se(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){let t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix,a=r.length;for(let e=0;e<r.length;e++){let t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){let t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);let r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),se(e)===se(t)}function T(e){let t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){let r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(let e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;let n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme||null==n.host||null==a.host)&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;let t=f.trustedServers||[];for(let r=0;r<t.length;r++){let n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;let n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),i=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&!o.startsWith(i))return e;let s=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r,c=s(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==a.length);)c=s(a,"/",c+1);if(-1===l||i&&l<i.length)return e;e=n.slice(l);let f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){let t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;let r,n=e.indexOf("/",7);if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),m.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&r===k.authority&&!g.test(e)||(ie()&&r===k.authority||t&&t.some(e=>r===e||r.endsWith(`.${e}`))||ie()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){let t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){let t=e.filter(a.Ru);if(!t?.length)return;let r=[];if(D(t[0])){let e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");let n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){let 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 H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}let n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){let t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){let t=e.match(X);if(!t)return null;let[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){let t=Q(e);if(!t)return null;let r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function ie(){return"https"===k.scheme}function se(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ce(e){let t=0;if(D(e)){let r=e.indexOf("//");-1!==r&&(t=r+2)}let r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";let r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;let a=RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;let n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()===t.toLowerCase()?`${e.slice(0,n+2)}${r}${e.slice(i)}`:e}function be(e,t){let r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||=k.scheme,e)}function me(e,t){let r=A(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 ge(e,t,r){let n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${S(a)}`}function ye(e,t){if(!t)return e;let r=A(e),n=r.query||{};for(let[e,r]of Object.entries(t))null!=r&&(n[e]=r);let a=S(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;let t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;let t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o,i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(a=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},50343(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),a=r(49186),o=r(37955),i=r(36563),s=r(97768),c=r(17676),l=r(52268),f=r(17333),d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?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(let e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class w{static{this.kernelInfo={fullVersion:n.ol}}static{this.clients=new Map}static connect(e,t){let r,n=new MessageChannel;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;let a=new w(n.port1,{channel:n,client:r,schedule:t});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=a),w.clients.set(a,r),n.port2}static loadWorker(e){let t=f.u[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));let i=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());let l={resolve:r,reject:a,abortHandle:(0,c.u7)(n,()=>{let e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,s.xt)(e.abortHandle),this._post({type:b,jobId:i}),a((0,c.NK)()))}),debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){let r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){let e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;let e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;let{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&=void 0,this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,s.xt)(e.abortHandle),e.reject((0,c.NK)(`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,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null==this._schedule?this._processMessage(e,!1):this._schedule(()=>this._processMessage(e,!0))}_processMessage(e,t){let r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){let e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){let t,{methodName:r,jobId:n,data:a=[],abortable:o}=e,i=o?new AbortController:null,s=this._inJobs,l=this._client,f=l[r];try{if(!f&&r&&r.includes(".")){let e=r.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw TypeError(`${r} is not a function`);a.push({client:this,signal:i?i.signal:null}),t=f.apply(l,a)}catch(e){return void this._post({type:p,jobId:n,error:(0,d.mF)(e)})}(0,c.$X)(t)?(s.set(n,{controller:i,promise:t}),t.then(e=>{s.has(n)&&(s.delete(n),this._post({type:p,jobId:n},e))},e=>{s.has(n)&&(s.delete(n),(0,c.zf)(e)||this._post({type:p,jobId:n,error:(0,d.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:p,jobId:n},t)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){let{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{(0,d.VI)(e)?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;let i=o.get(t);o.delete(t),this._processWork(),(0,s.xt)(i.abortHandle),r?i.reject(a.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},17333(e,t,r){const n={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(6310)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(161),r.e(433)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(2258),r.e(9038)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(5128),r.e(7552),r.e(1722),r.e(6854),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(5228),r.e(4690),r.e(4805),r.e(1969),r.e(9908),r.e(1618)]).then(()=>r(55459)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(8902)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9616)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeospatialPDFLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(599)]).then(()=>r(37728)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(6525)]).then(()=>r(80188)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(2063)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9575),r.e(359),r.e(2170)]).then(()=>r(14289)),GlyphWorker:()=>Promise.all([r.e(2741),r.e(6892)]).then(()=>r(16892)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(1843),r.e(9554)]).then(()=>r(95938)),LercWorker:()=>r.e(7087).then(()=>r(57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(3275)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(6854),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(3819),r.e(4805),r.e(1484)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(7005),r.e(7984),r.e(5992)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(7074),r.e(2754),r.e(9235),r.e(3518)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(161),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(6707)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(574)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(5228),r.e(7499),r.e(1969),r.e(4157)]).then(()=>r(36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(4862)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9575),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(8278),r.e(9187),r.e(8885),r.e(7865),r.e(9117),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(3299),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9575),r.e(812),r.e(7074),r.e(9800),r.e(5879),r.e(8732),r.e(7772),r.e(9096)]).then(()=>r(44012))};r.d(t,["u",0,n])},8341(e,t,r){r.d(t,{Jc:()=>c,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",i={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let s=0;function c(){return s++}function l(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 f(e,t,r,n){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;let t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;let t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){let t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,i,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>i,Y3:()=>s,id:()=>a,ol:()=>o}),r(44208);var n=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let a,o="5.2";function i(e){a=e}function s(e){let t=a?.findCredential(e);return t?.token?(0,n.rs)(e,"token",t.token):e}o="5.2.0-next.157",globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}})},39131(e,t,r){r.d(t,{$E:()=>i,py:()=>o,qG:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={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 o(e){let t=e?.match(n);if(!t)return null;let[,r,o,i]=t;if(!r)return null;let s=null,c=null,l=null,{devext:f,qaext:d,www:u}=a;if(o)if(s=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:s}}function i(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function s(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){let t=new Uint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,a)||Object.defineProperty(e,a,i)}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>{const t=[];return r.f.i(e,t),Promise.all(t)},r.u=e=>"chunks/"+{31:"67efdd296007a809586c",77:"02f8654852d389583891",100:"ebbf425af348e6ede814",118:"15bcf7cfe603f2ee1a24",124:"a09d2e1e2540921e4717",146:"54b18559280a7d2a8d93",152:"8715661a838361d4211a",161:"eebbde81e56d69dc602f",167:"a40b6d8b5c73e06e14d4",309:"e7aaf7579592b79d6dd7",349:"514cc15acb77dc85035c",353:"751a21288cf161b94a54",359:"3880d2c7fb14955d7f93",369:"66539ab0d88b47326ce9",382:"8483c50ed8f280fd74bb",390:"d0f5bee9db1ad51ae687",411:"1b946714ca4a1a7359d4",433:"5736feefa261589b6273",468:"bfb8fc6b940bd5510e29",491:"1d77c8c59b0118c7e77b",506:"ac69c0fd5867b493f1d2",547:"aa5b42e44d2959fdacd3",563:"08fe248e412bb170210d",566:"bd812dd75d2a3d7d0441",574:"b3007aedbf731dacaff1",599:"4eae066673484986d4c1",692:"2671035cc08027185737",700:"fda83bcb8e40e8044c24",737:"befa32b9e7b3fbdd431e",756:"49e4fe8ea5a4366a9b45",787:"bc38def1983089514e4b",788:"6a294b6ed6f67c8a01c6",812:"80c234ee5276ea1645db",820:"35f8896b52adaf952657",837:"9cbde13e536676767900",892:"dfbe0efe453587ec5eb2",893:"32b351b047ce1eb58146",895:"369780276b2755361f7d",919:"4e3f651ac76fcd53df2b",926:"ccb55245fe49d844ec50",931:"6c9266120d46e8c69dbf",980:"cf1ec61eb2ad147bb931",994:"8cb716f110d164030309",1003:"9215b59c5ccecf9add58",1017:"ec9a2425b4a498054a19",1088:"864194927d05ebc4cc31",1132:"eaddffcc7004101fc230",1150:"90153b5230b3a4985c14",1204:"608be1172a908e92b9f1",1214:"eab53cc313ef38ec7c48",1273:"6ddc29a144640acb1192",1277:"38d852676677e5697864",1285:"116293b1ee788a89ce1e",1327:"47f0c717acc2c33ea670",1359:"ace802483484519658f3",1384:"28ed020d9995b6577be5",1484:"44d5508042cacdfcac47",1491:"06101f3da5e2fc708402",1549:"dfd2dc5cdc97ffba8926",1550:"7446d0dfebf93e86c098",1560:"4f4bc4f809b8936cd010",1577:"cca8bd07bcd1d267a2e8",1588:"f1df76f098a3cc924832",1618:"43cf862577bf37344ff4",1666:"950d4578dc450467404c",1698:"0fda0d8b0eaeed2ab39d",1722:"606ea251075fe81a1206",1735:"d344c3fd9f6b113bbcd7",1737:"18f20fd43ec9ce03cef1",1763:"e8bf653376a607f00897",1773:"72e6d594b7262430ae55",1797:"f8bc474434fd365ab174",1837:"3a8320a40916c755c031",1843:"aba42885c5d6b2b5fe7f",1894:"12a08d0ad0f5fea32642",1904:"1bca39e0e651426bdbb5",1948:"a51576d84edca88e41dd",1951:"f4a7aa3cdbc0c429c359",1969:"bab1d010970d98c25470",2024:"67f15538c51838201fc7",2061:"129e04d24ced77c9bb6d",2063:"78c4e43cfa1eda06b4d9",2156:"67ebc5a3d46b254b725c",2158:"4ba856605f711b615e4c",2170:"66867e523cc82f8fe35b",2174:"164e74d586297946a717",2186:"10445313d0d57b34511b",2241:"3f776d9fd2ab68b21fca",2258:"0b4481b57a611b15f65c",2309:"f528ac5c648ca6a98582",2343:"05b34302da58e8244da3",2346:"d90a3bfd45b5ed4092e0",2372:"6202ba9d79567cbe2c48",2387:"6079d27f4ab319fb8f0c",2390:"9d0ee6a816bb72068ab1",2409:"30e20461958951a31a5c",2423:"2479162ebc3a0b8d2b5e",2491:"b4334713bacdfe40ce3d",2558:"2b06e8507d71c4d9b5b5",2733:"5ec5a6cef9ee9a8cc400",2741:"7bcedf479b07a4b4a234",2754:"175c268e64ccd01f8c25",2772:"e81173724e8de8c1e65b",2802:"ca204c110438f7315790",2806:"fd4635410b27bcedb752",2867:"611e3cdf67283c11576f",2869:"e01fc1c31bc023dd0e33",2889:"9401cc22373566e1171e",2938:"4a6b92ecbb1f1c55cc43",2958:"2d13a22f7b2427927fdc",2980:"897e44f97b933d70feee",2990:"99a0a434ea2162166754",2994:"747461bb6a1bc2f0a64d",2997:"80df9ad016b46619c7b9",3030:"f95a1f878c9c1146180e",3055:"c72a904e01dc8c17d992",3103:"2a570ce6b99dac6ee996",3116:"18787aa685524b958561",3193:"070684943698fa43c2b4",3275:"967b4992b400517ee712",3276:"eb2652ec48faa78de3c5",3281:"72f716a841463e0ba23f",3299:"8aa80b892fde552577e8",3309:"e630f3c56c077cb2bd8e",3312:"6c9266120d46e8c69dbf",3318:"72bd866df89b8d92e247",3346:"5566f14afb63065e438f",3354:"e11159e3dc3353b27c57",3359:"112befb3b5b406f29298",3375:"5fbd7d8d8896a224fff3",3390:"ee6679ef9efa1504e7eb",3391:"e0351753f6b4d1adf11e",3394:"898359be6996fd9763b8",3456:"e2775b4b753306dc8477",3467:"4fe34da1c5d63e66ce98",3483:"7f0f9dddc44b1f1600f0",3494:"9dd1fc56eb1ea6eb705e",3500:"cb4be68cc5085d421615",3518:"b1d5d236d5268fcbc74b",3527:"e99c8c71c757bb161d87",3543:"e000123703b86494c738",3561:"c2c1f51a4668055c2838",3650:"fccfe3aa45a2fb286012",3666:"363142b7fb50227fcdca",3693:"1380cec385426673f294",3708:"47f0c717acc2c33ea670",3755:"3ec3589f6e74d7cb87cf",3813:"c8d178a0c82fffd7fed5",3819:"4e4f747de424941a0bfa",3902:"784a2fba3e18286958d1",3910:"9432feca48ca3e5849bd",4019:"4a640548032355e57acd",4038:"5b720d254ba61758b61a",4051:"c5d85be6e16bc895e7fb",4059:"5982c6a8459c1237b298",4064:"6ccf9535013fe672c93b",4144:"365825c51fad1bb7f51f",4152:"042614bf65b7d63025cb",4157:"15e1117a706a98b17ad5",4209:"590e6c70206122e4cc3c",4297:"426b4eb500fdfe9df325",4314:"8e5903f1ed31e1185fc9",4403:"e3a742dc0c291b47ba56",4426:"77ebacfdf8e57f2e03f1",4548:"943a0f140813ee4ab04a",4575:"62941dd81acfdb524cfe",4642:"ac24b4370dc7194a3107",4674:"45367aa8e5c5d574de94",4690:"2f04b8679c9f15390517",4708:"74137ffec5265628c33b",4729:"b83cef2d3f528726d492",4790:"9cd3fcb5fca6f9dbbcd8",4791:"406f24ec13eb30d43405",4805:"acdfd275dbf8533a67f3",4844:"2c626f525f3483c03477",4862:"22b01fe31bbf0bdc48db",4934:"d65383f4058dc813f40d",4945:"d51bb11baadc741c46bc",4985:"2a1ec30f9ad305763f81",4988:"6268aadb24e0b7c8d207",5057:"c19f238b55ff2893f7c2",5077:"74c866e0b66e61751861",5087:"5cb26bbaa08114aec5ce",5128:"a7325ebb7edf3273bb34",5141:"56a24061589f4a968818",5165:"8293600f94553afc8c38",5181:"3de07326da4c47cd2aab",5223:"c9e7d4c277fbc82c4438",5227:"ca2adcbcf44454484fd5",5228:"fdbf6208df5c58746d9d",5248:"652faf4359ac072c5dde",5356:"c5ed67fdf261cbb1624b",5360:"a02c3c23bd87e0470b8b",5367:"14ded73842154d91ef4e",5404:"3704b4e7efc3abc1a7b1",5443:"6e910342ada398c98e30",5566:"f8a83d447b7aef051876",5606:"44918ff37818a7d36d76",5613:"3914d96147642a9d4b01",5740:"830ab9b8d000169da675",5752:"090adefe20412e8a5084",5756:"5fbd7d8d8896a224fff3",5804:"85ec73dcba4b922f1948",5841:"7e0f04a5038e2a4f6e4b",5853:"939942b00ba380e2957e",5856:"bca6b469940b7b954123",5864:"c337fc0e6dc69c233e6d",5879:"444e5f214abce3d607cd",5902:"18d47ab571b613fbe719",5992:"76196c414e48834f7b92",6027:"e2576c37cf13dc421f69",6033:"a025ee38d402504193df",6052:"47e250d471d0e55fa6be",6070:"178083d8ed7707b45ca2",6122:"0b6941781e35ce0f7274",6129:"6b646971cc15e33a9f33",6154:"d747c7a5252e3b1f466a",6185:"c19cd5a03b6d480fe53b",6187:"dbaa88e46487efaad732",6247:"6afe860f491905c72298",6310:"a62c12925303ff802c3d",6361:"2226c20c38e20713bcb5",6377:"709e019885822b1f6f3e",6440:"5982c6a8459c1237b298",6451:"66c2a28a851130b87c04",6475:"ec8b7476eac4718eb0ac",6491:"067de1910190da228291",6525:"4932773663469919d10a",6554:"fc44227c1756f65b95df",6556:"076e8d2e08ff2a013736",6558:"876f7633c15f1e31078d",6569:"6b04285726b803b82564",6650:"3415531224f8494d79ca",6671:"0320cbd825f9a4222042",6684:"084222c00d263a534952",6707:"168a523bdc3653081f8a",6742:"1eaaa896eea3f2ffe6a6",6810:"1f9d6180a96d557838e9",6811:"a556dd4e9e6d35e33a2c",6854:"daf9b691817e83a11f3c",6870:"20f75cc777af13fa249b",6875:"0590857215c547e63b51",6884:"3e3e076fa5e8d5d5f33f",6892:"8e19629899a5becf8e19",6930:"d89fe41c71c9621c41ae",6936:"1188d0a136fffc009643",6956:"02d4f91652a79d2b637e",7005:"42045cf46497828cd3c0",7013:"820c8aaf3632edb0150c",7029:"aa8ab28e0c1ae3b55ac0",7074:"6f73e41e14817acfaead",7085:"0979a48905742486f222",7087:"bb9a1162384f59e9bc5e",7173:"af349c7bc8ef41a0e1bd",7217:"4c389472b8cdb0c55154",7269:"6eb5cc8ddf772c0062e6",7290:"8f74d92ac69714b9fd4e",7301:"42fd2a7b22b03dacc6a7",7444:"59295b99bdff4045a0e7",7499:"505227797bcf2a1d908d",7537:"aa1ac7954e4f0fefe15b",7546:"17f99b130384c1ff2e01",7552:"510502a4c9a2ba8d3f7b",7561:"2a8168e109caa87d596f",7568:"2d9a1f23ec6ce90723ac",7644:"68d8ae42ab71d01a70a5",7715:"34570e6bbf559f18c1a5",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7772:"2ef5237e4c876d6a4ee0",7835:"7f16ae01ccd9b6114d1c",7865:"2fcd7db1e192858a650e",7870:"35e5762642d1a3a2e375",7883:"aa1054834738aef48bda",7885:"6c9acd9e4e201dc380e9",7982:"b573df59391ca41ee5a7",7984:"8cc8d7ffe43f5947b04f",7992:"b01804aa6c47a220a603",8018:"20a698709c3c11ff2c16",8094:"7393f63043a1da3d05a6",8118:"81cad8d2f62a5f671c55",8125:"ac69c0fd5867b493f1d2",8197:"abb9e820d2871fa7acae",8278:"7d212c415f2709037408",8298:"7aa9b61ca9b66f30449f",8307:"f8d2225f333524ce1d88",8344:"b976122bcd4e2170afaf",8361:"95dbbddac6581b9d671f",8366:"2e096537a3a5555a4a93",8377:"92b03de8a7686b164f60",8441:"12a7997a40c77f5c9160",8457:"010f57ec7fdbedf78d02",8548:"4e350d6c76957f5beb70",8589:"172cfeb5f415e4662432",8613:"8dc1c3042267618fd710",8628:"42330ad374904de4f78f",8679:"8e310e9cb9d84ac3ca2f",8692:"c8d6bb5cca49926a0214",8707:"e653c81ffb3d818645dd",8714:"765ecf6dff9a547d8e19",8732:"6299be5e7e26bf3c6859",8740:"efc53007cd2e4991d7d4",8768:"7449568eb2305bf2d650",8798:"7711ae5612f685078fc8",8846:"23fd4de56de352f63e2d",8879:"1819c45655c836b9a8d7",8885:"72399062767abdfb0bee",8902:"4fd0d9688df6fcc0d0b8",9013:"3dd49f910834a2fb2142",9038:"1201b8c5852830836eac",9074:"cb6fb04fe5c8d90d4196",9078:"4996869b9cbd8c8ddcfa",9096:"0cb50bc2b2125c5fedf2",9117:"7851aef196eea5d6c94e",9126:"40748b846cf6923478c9",9134:"2a3fcc034cfbf540c5cc",9159:"4d7063c4152953afb859",9177:"47d074136a7f8e551a9a",9187:"1cc744ab5eee5ee3bed8",9192:"cc817c9d3f8e8f8c56e4",9229:"d95d63e8d51244d71afb",9235:"de0f335f702ae85a1df3",9239:"f67b37253d6d05d1e339",9275:"60737732ce495bbdd0fc",9279:"fc5a36e54929e03efa86",9301:"3dddae78286d05eb10fc",9304:"d33360c4f85203edafff",9321:"ffde86162265b33e97e0",9358:"ace2e0a9d9013edd8624",9385:"d2347d6aa1c57fd57029",9389:"9e8f012a56237fc8285f",9447:"474015def9652ddf0640",9480:"612104dff305ff062dfa",9512:"1f43e06dcfe56229bb0f",9521:"787c1a8bda7d745633f2",9554:"8ca2bb3c0551bb1898b6",9567:"842893e75696428d536f",9575:"e1b7806ab3e1967b15f0",9588:"58032aab28a20a327f6c",9616:"b390b9cde2884755e8be",9657:"afc3b2af20e9d1dfd260",9661:"97d6ef9e34a43ad2e556",9672:"3b552afffaa78bf4fe18",9692:"4bb1bb3ffb1b71bc43c8",9695:"5aeb5e18514644fe2cf9",9696:"3f946c13ad97fbed867b",9714:"0bd5012da287469b17d5",9716:"d4eb24c82087a74ae670",9722:"cd9aa950cb74b09008fe",9775:"96c50a0dda0f1503ef92",9789:"72071ea5de89720fbe42",9800:"8414ffd937c1099e0bbc",9820:"27c2da2e779def2ee08b",9821:"1c378d489c5402888f76",9838:"e1f5d00878f27e1d413e",9894:"7572c2bc5062e66f6330",9908:"28b74bc77f7c13080074",9917:"8924e2f3b7d03afb3a6a",9933:"257910cca66dc5df465e",9953:"d6cd0039d6e9c40961e3",9958:"deb408bee61ca192b2ce"}[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=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,i]=t;for(var s in o)r.o(o,s)&&(r.m[s]=o[s]);for(i&&i(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(50343);RemoteClient=n})();
1
+ var RemoteClient;(()=>{"use strict";var e={66358(e,t,r){r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},92602(e,t,r){r(44208);var n=r(93637);const a={apiKey:void 0,apiKeys:{scopes:[]},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:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,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:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&((0,n.$N)(a,globalThis.esriConfig,!0),delete a.has),!a.assetsPath&&(a.assetsPath="https://cdn.jsdelivr.net/npm/@arcgis/core@5.2.0-next.159/assets",a.defaultAssetsPath=a.assetsPath),r.d(t,["A",0,a])},49186(e,t,r){r.d(t,{A:()=>i});var n=r(4718),a=r(53966),o=r(799);class i{constructor(e,t,r){this.type="error",this.name=e,this.message=t?(0,o.V2)(t,r):"",this.details=r}toString(){let{name:e,message:t}=this;return`[${e}]: ${t}`}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.o8)(t)}catch{return"[object]"}}))}}catch(e){throw a.A.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)}}},53966(e,t,r){r.d(t,{A:()=>s});var n=r(92602),a=r(51447),o=(r(44208),r(799));const i={info:0,warn:1,error:2,none:3};class s{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,s._loggers.set(this.module,this);let t=this.module.lastIndexOf(".");-1!==t&&(this._parent=s.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(){}static get test(){}static getLogger(e){return e="string"==typeof e?e:e.declaredClass,s._loggers.get(e)||new s({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!s._throttlingDisabled){let n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),a=this._loggedMessages[e].get(n);if("once"===t&&null!=a||"oncePerTick"===t&&a&&a>=s._tickCounter)return;this._loggedMessages[e].set(n,s._tickCounter),s._scheduleTickCounterIncrement()}for(let t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){let t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",c)}_matchLevel(e){let t=n.A.log.level||"warn";return i[this._parentWithMember("level",t)]<=i[e]}static _scheduleTickCounterIncrement(){s._tickCounterScheduled||(s._tickCounterScheduled=!0,Promise.resolve().then(()=>{s._tickCounter++,s._tickCounterScheduled=!1}))}}function c(e,t,...r){console[e](`[${(0,a.u3)(t)}]`,...r)}},87811(e,t,r){r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}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){let r=t-e;return e+this.getInt()/n._m*r}}},4576(e,t,r){r.d(t,{Am:()=>o,HX:()=>u,Ho:()=>d,MJ:()=>i,Mo:()=>w,Ru:()=>O,TF:()=>k,VO:()=>c,Xj:()=>f,Xy:()=>m,aI:()=>s,iv:()=>l,k4:()=>_,mW:()=>y,qh:()=>p,vW:()=>b,yc:()=>A});var n=r(21818),a=r(87811);function o(e,t){if(t){let r=[];for(let n of e)r.some(e=>t(e,n))||r.push(n);return r}return Array.from(new Set(e))}function i(e,t,r,n,a,o,i){if(null==e&&null==n)return!0;t=Math.max(0,t),a=Math.max(0,a),r=Math.max(0,r<0?(e?.length??0)+r:r),o=Math.max(0,o<0?(n?.length??0)+o:o);let s=r-t;if(null==e||null==n||s!==o-a)return!1;if(i){for(let r=0;r<s;r++)if(!i(e[t+r],n[a+r]))return!1}else for(let r=0;r<s;r++)if(e[t+r]!==n[a+r])return!1;return!0}function s(e,t,r){return i(e,0,e?.length??0,t,0,t?.length??0,r)}function c(){return(e,t)=>{if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}}function l(e,t,r){let n,a;if(r)n=t.filter(t=>!e.some(e=>r(e,t))),a=e.filter(e=>!t.some(t=>r(t,e)));else{let r=new Set(e),o=new Set(t);n=t.filter(e=>!r.has(e)),a=e.filter(e=>!o.has(e))}return{added:n,removed:a}}function f(e){return e&&"number"==typeof e.length}function d(e,t){let r=e.length;if(0===r)return[];let n=[];for(let a=0;a<r;a+=t)n.push(e.slice(a,a+t));return n}function u(e,t,r,n){e.length>r&&(e.length=r);let a=e.length,o=0,i=a;if(a===r){let r=n(e[a-1],t);if(r<=0||Number.isNaN(r))return}for(;o<i;){let r=o+i>>>1,a=n(e[r],t);a<=0||Number.isNaN(a)?o=r+1:i=r}a===r&&e.pop(),e.splice(o,0,t)}class b{constructor(){this.last=0}}const h=new b;function p(e,t,r,n){n||=h;let a=Math.max(0,n.last-10);for(let o=a;o<r;++o)if(e[o]===t)return n.last=o,o;let o=Math.min(a,r);for(let r=0;r<o;++r)if(e[r]===t)return n.last=r,r;return-1}function m(e,t,r,a){let o=r??e.length,i=p(e,(0,n.z)(t),o,a);if(-1!==i)return e[i]=e[o-1],r??e.pop(),t}const g=new Set;function y(e,t,r=e.length,n=t.length,a,o){if(0===n||0===r)return r;g.clear();for(let e=0;e<n;++e)g.add(t[e]);a||=h;let i=Math.max(0,a.last-10);for(let t=i;t<r;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;for(let t=0;t<i;++t)if(g.has(e[t])&&(o?.push(e[t]),g.delete(e[t]),e[t]=e[r-1],--r,--t,0===g.size||0===r))return g.clear(),r;return g.clear(),r}function w(e){return e?(v.seed=e,()=>v.getFloat()):Math.random}const v=new a.A;function _(e,t){if(!e)return e;let r=w(t);for(let t=e.length-1;t>0;t--){let n=Math.floor(r()*(t+1)),a=e[t];e[t]=e[n],e[n]=a}return e}function k(e,t){let r=e.indexOf(t);return-1===r?null:(e.splice(r,1),t)}function O(e,t){return null!=e}function A(e){return Array.isArray(e)}},21818(e,t,r){function n(e){return e}r.d(t,{z:()=>n})},51447(e,t,r){r.d(t,{Lx:()=>c,ck:()=>l,eF:()=>f,eO:()=>s,io:()=>d,u3:()=>u,uW:()=>i});var n=r(44208);const a=new WeakMap;function o(e,t,r=!1){let n=`🛑 DEPRECATED - ${t}`;if(!r)return void e.warn(n);let o=a.get(e);o||(o=new Set,a.set(e,o)),o.has(t)||(o.add(t),e.warn(n))}function i(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Module: ${u(t)}`,r)}function s(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Function: "+(n?u(n)+"::":"")+t+"()",r)}}function c(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=r;d(e,"Property: "+(n?u(n)+"::":"")+t,r)}}function l(e,t,r,a={}){if((0,n.A)("esri-deprecation-warnings")){let{moduleName:n}=a;d(e,`'${(n?u(n)+"::":"")+t}' value: ${r}`,a)}}function f(e,t,r={}){(0,n.A)("esri-deprecation-warnings")&&d(e,`Multiple argument constructor: ${t=u(t)}`,{warnOnce:!0,replacement:`new ${t}({ <your properties here> })`,...r})}function d(e,t,r={}){if((0,n.A)("esri-deprecation-warnings")){let{replacement:n,version:a,see:i,warnOnce:s}=r,c=t;if(n&&(c+=`\n\t🛠️ Replacement: ${n}`),a&&(c+=`\n\t⚙️ Version: ${a}`),i)if(Array.isArray(i)){c+="\n\t🔗 See for more details:";for(let e of i)c+=`\n\t\t${e}`}else c+=`\n\t🔗 See ${i} for more details.`;o(e,c,s)}}function u(e){return e.startsWith("esri.")?e.replace("esri.","@arcgis/core/").replaceAll(".","/"):e}},37955(e,t,r){r.d(t,{Oo:()=>s,on:()=>i,wb:()=>a});var n=r(36563);function a(e){return function(e){return"object"==typeof e&&!!e&&"on"in e&&"function"==typeof e.on}(e)||o(e)}function o(e){return"object"==typeof e&&!!e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function i(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");return o(e)?function(e,t,r,a){if(Array.isArray(t)){let o=t.slice();for(let t of o)e.addEventListener(t,r,a);return(0,n.hA)(()=>{for(let t of o)e.removeEventListener(t,r,a)})}return e.addEventListener(t,r,a),(0,n.hA)(()=>e.removeEventListener(t,r,a))}(e,t,r):e.on(t,r)}function s(e,t,r){if(!a(e))throw TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=i(e,t,t=>{n.remove(),r.call(e,t)});return n}},36563(e,t,r){r.d(t,{Bf:()=>s,hA:()=>a,rE:()=>i,vE:()=>o});const n={remove:()=>{}};function a(e){return e?{remove(){e&&=void e()}}:n}function o(e){return a(()=>function(e){e.forEach(e=>e?.remove())}(e))}function i(e){return a(()=>e?.abort())}function s(e){return{[Symbol.dispose](){e.remove()}}}},44208(e,t,r){r.d(t,{A:()=>o});const n=globalThis,a={...n.esriConfig?.has};function o(e){return"function"==typeof a[e]?a[e]=a[e](n):a[e]}o.add=(e,t,r,n)=>{(n||void 0===a[e])&&(a[e]=t),r&&o(e)},o.cache=a,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==n.WorkerGlobalScope&&self instanceof n.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node",!("object"!=typeof n.process||!n.process.versions?.node||!n.process.versions.v8)),o.add("dom",e),o("host-browser")){let 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)){let 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(n.navigator){let 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 n),o.add("esri-temporal","Temporal"in n),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in n,t=!1===n.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 n),o.add("esri-workers","Worker"in n),o.add("web-feat:cache","caches"in n),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("min-workers-pool-size",2),o.add("max-workers-pool-size",o("esri-mobile")?3: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-hybrid-tile-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",2e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",2e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!0),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-allow-editable",!1),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-pixel-buffering-enabled",!0),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-max-page-size",8e3),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("featurelayer-pbf-true-curves",!0),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("featurelayer-relative-time-queries-enabled",!0),o.add("featurelayer-relative-time-queries-bin-window-public",1),o.add("featurelayer-relative-time-queries-bin-window-private",60),o.add("parquetlayer-full-query-feature-count",5e5),o.add("parquetlayer-persistence-enabled",!0),o.add("parquetlayer-cache-enabled",!0),o.add("parquetlayer-legacy-field-overrides-enabled",!1),o.add("sketch-layer-enabled",!1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-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("request-queue-concurrency-global",64),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",16),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o.add("enable-feature:im-shading",!0),o.add("enable-feature:im-vertex-normals",!0),!o("host-webworker")&&o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{Function()}catch{return!0}return!1}),o.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},4718(e,t,r){r.d(t,{Nb:()=>c,TU:()=>s,aI:()=>b,gh:()=>h,o8:()=>i,oy:()=>o});var n=r(4576),a=r(34275);function o(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&o(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;let t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(i);if(f(e))throw Error("Trying to clone an unclonable Accessor instance");let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=i(e[t]);return r}function s(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let r=u(e);if(null!=r)return r;if(l(e)){let r=!0,n=e.map(e=>{let n=s(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;let n=new(0,Object.getPrototypeOf(e).constructor);for(let t of Object.getOwnPropertyNames(e)){let r=e[t],a=s(r);if(null!=r&&null==a)return null;n[t]=a}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,a.dz)(e)||(0,a.mg)(e)||(0,a.UR)(e)||(0,a.IY)(e)||(0,a.jq)(e)||(0,a._G)(e)||(0,a.XJ)(e)||(0,a.vZ)(e)||(0,a.aI)(e))return e.slice();if(e instanceof Date)return new Date(e);if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,i(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(i(r));return t}return null}function b(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 h(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.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(let 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(let[r,n]of e){let e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;let r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},97768(e,t,r){function n(e,t){if(null==e)throw Error(t??"value is None")}function a(e){return e&&!e.destroyed&&e.destroy(),null}function o(e){return e?.dispose(),null}function i(e){return e?.remove(),null}function s(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null==r?e.equals(t):r(e,t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>s,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>o,pR:()=>a,xt:()=>i})},93637(e,t,r){r.d(t,{$N:()=>a,a4:()=>d,i7:()=>f,i8:()=>s,sM:()=>i,wc:()=>o});var n=r(4718);function a(e,t,r=!1){return l(e,t,r)}function o(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function i(e,t,r){let n=e.split("."),a=n.pop(),o=c(n,!0,r);o&&a&&(o[a]=t)}function s(e,t){if(null==e&&null==t)return!1;if(null==e||null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){let r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(s(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(let r in e)if(s(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(let r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,a)=>{if("__proto__"===a)return e;let o=e[a],i=t[a];return o===i?e:void 0===o?(e[a]=(0,n.o8)(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[a]=o?Array.isArray(o)?o.slice():[o]:[],i&&(Array.isArray(i)||(i=[i]),r?i.forEach(e=>{o.includes(e)||o.push(e)}):e[a]=i.slice())):i&&"object"==typeof i?e[a]=l(o,i,r):(!e.hasOwnProperty(a)||t.hasOwnProperty(a))&&(e[a]=i),e)},e||{}):e}function f(e,t){for(let r of Object.entries(e))if(t===r[1])return r[0]}function d(e,t){return Object.values(e).includes(t)}},17676(e,t,r){r.d(t,{$X:()=>k,G4:()=>l,Lx:()=>g,Mq:()=>c,NK:()=>i,NO:()=>S,NY:()=>b,Ol:()=>w,Pl:()=>v,QP:()=>f,QZ:()=>m,Te:()=>s,YL:()=>_,hn:()=>P,jH:()=>d,nA:()=>y,qr:()=>h,sg:()=>A,u7:()=>u,z7:()=>O,zf:()=>p});var n=r(49186),a=r(37955),o=(r(44208),r(53966),r(97768));function i(e="Aborted"){return new n.A("AbortError",e)}function s(e,t="Aborted"){if(l(e))throw i(t)}function c(e){return e instanceof AbortSignal?e:e?.signal??void 0}function l(e){let t=c(e);return null!=t&&t.aborted}function f(e){if(p(e))throw e}function d(e){if(!p(e))throw e}function u(e,t){let r=c(e);if(null!=r)return r.aborted?void t():(0,a.Oo)(r,"abort",()=>t())}function b(e,t){let r=c(e);if(null!=r)return s(r),(0,a.Oo)(r,"abort",()=>t(i()))}function h(e,t){return null==c(t)?e:new Promise((r,n)=>{let a=u(t,()=>n(i())),s=()=>{a=(0,o.xt)(a)};e.then(s,s),e.then(r,n)})}function p(e){return"object"==typeof e&&!!e&&"name"in e&&"AbortError"===e.name}async function m(e){try{return await e}catch(e){if(!p(e))throw e;return}}async function g(e){if(!e)return;if("function"!=typeof e.forEach){let t=Object.keys(e),r=await g(t.map(t=>e[t])),n={};return t.map((e,t)=>n[e]=r[t]),n}let t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{let n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function y(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function w(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function v(e,t=void 0,r){let n=new AbortController;return u(r,()=>n.abort()),new Promise((r,a)=>{let o=setTimeout(()=>{o=0,r(t)},e);u(n,()=>{o&&(clearTimeout(o),a(i()))})})}function _(e,t){let r=new AbortController,n=setTimeout(()=>r.abort(),t);return u(e,()=>{r.abort(),clearTimeout(n)}),{...e,signal:r.signal}}function k(e){return e&&"function"==typeof e.then}function O(e){return k(e)?e:Promise.resolve(e)}function A(e,t=-1){let r,n,a,o,s=null,c=(...l)=>{if(r){n=l,o&&o.reject(i()),o=Promise.withResolvers();let e=o.promise;if(s){let e=s;s=null,e.abort()}return e}if(a=o||Promise.withResolvers(),o=null,t>0){let n=new AbortController;r=O(e(...l,n.signal));let a=r;v(t).then(()=>{r===a&&(o?n.abort():s=n)})}else r=1,r=O(e(...l));let f=()=>{let e=n;n=a=r=s=null,null!=e&&c(...e)},d=r,u=a;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return c}function P(e,t){t.then(e.resolve,e.reject)}async function S(e){await Promise.resolve(),s(e)}},799(e,t,r){r.d(t,{Cj:()=>c,HC:()=>i,V2:()=>s,Wm:()=>l,_e:()=>u,xq:()=>f});var n=r(93637);const a=/\{([^}]+)\}/g;function o(e){return e??""}function i(e,t){return t?e.replaceAll(a,"object"==typeof t?(e,r)=>o((0,n.wc)(r,t)):(e,r)=>o(t(r))):e}function s(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}function c(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function l(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}function f(e,t=0){let r=3735928559^t,n=1103547991^t;for(let t,a=0;a<e.length;a++)t=e.charCodeAt(a),r=Math.imul(r^t,2654435761),n=Math.imul(n^t,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}let d;function u(e){return d??=new DOMParser,d.parseFromString(e||"","text/html").body.innerText||""}},12195(e,t,r){function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},34275(e,t,r){function n(e){return e instanceof ArrayBuffer}function a(e){return"Int8Array"===e?.constructor?.name}function o(e){return"Uint8Array"===e?.constructor?.name}function i(e){return"Uint8ClampedArray"===e?.constructor?.name}function s(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}function p(e){return b(e)||u(e)||l(e)||s(e)||a(e)}function m(e){return b(e)||u(e)}function g(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:o(e)||i(e)?255:l(e)?2147483647:s(e)?y:a(e)?127:256}r.d(t,{IY:()=>s,JI:()=>p,LW:()=>d,UR:()=>i,XJ:()=>f,_G:()=>l,a3:()=>g,aI:()=>b,dk:()=>m,dz:()=>a,iu:()=>h,jq:()=>c,mg:()=>o,mw:()=>n,vZ:()=>u});const y=32767;r.d(t,["h2",0,-2147483648])},84952(e,t,r){r.d(t,{$1:()=>K,$z:()=>H,An:()=>A,BQ:()=>re,DB:()=>V,FL:()=>L,FX:()=>R,Hg:()=>Z,Il:()=>fe,Ln:()=>he,N9:()=>te,S8:()=>z,T1:()=>ue,UC:()=>de,V1:()=>F,Zo:()=>we,_0:()=>_e,a6:()=>ye,b8:()=>I,e7:()=>le,fj:()=>B,hf:()=>be,lJ:()=>Q,lM:()=>oe,m3:()=>ae,nM:()=>ce,oP:()=>D,oy:()=>W,r$:()=>Y,rs:()=>ge,s0:()=>v,s2:()=>J,sC:()=>q,s_:()=>x,tk:()=>ee,ut:()=>E,w8:()=>G,x0:()=>S,xw:()=>ve,yM:()=>M,zf:()=>P,zi:()=>me,zs:()=>N});var n=r(92602),a=r(4576),o=r(49186),i=r(53966),s=r(12195),c=r(39131),l=r(26306);const f=n.A.request,d="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,b=/^\s*http:/i,h=/^\s*https:/i,p=/^\s*file:/i,m=/:\d+$/,g=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,y=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),w=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=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=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 k=new v(n.A.applicationUrl);let O=function(){let e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null==k.port?"":`:${k.port}`}${t}`}();function A(e){if(!e)return null;let t={path:null,query:null},r=new v(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=P(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function P(e){let t=e.split("&"),r={};for(let e of t){if(!e)continue;let t,n,a=e.indexOf("=");a<0?(t=decodeURIComponent(e),n=""):(t=decodeURIComponent(e.slice(0,a)),n=decodeURIComponent(e.slice(a+1)));let o=r[t];"string"==typeof o&&(o=r[t]=[o]),Array.isArray(o)?o.push(n):r[t]=n}return r}function S(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=>{let n=e[r];if(null==n)return"";let a=encodeURIComponent(r)+"=",o=t?.[r];return o?a+encodeURIComponent(o(n)):Array.isArray(n)?n.map(e=>(0,s.W)(e)?a+encodeURIComponent(JSON.stringify(e)):a+encodeURIComponent(e)).join("&"):(0,s.W)(n)?a+encodeURIComponent(JSON.stringify(n)):a+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function x(e=!1){let t,r=f.proxyUrl;if("string"==typeof e){t=ae(e);let n=N(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw i.A.getLogger("esri.core.urlUtils").warn(d),new o.A("urlUtils:proxy-not-set",d);return t&&ie()&&(r=oe(r)),A(r)}function M(e,t=!1){let r,n,a=N(e);if(a){let e=C(a.proxyUrl);r=e.path,n=e.query?P(e.query):null}else if(t){let t=x(e);r=t.path,n=t.query}if(r){let t=A(e);e=r+"?"+t.path;let a=S({...n,...t.query});a&&(e=`${e}?${a}`)}return e}const j={path:"",query:""};function C(e){let t=e.indexOf("?");return-1===t?(j.path=e,j.query=null):(j.path=e.slice(0,t),j.query=e.slice(t+1)),j}function $(e){return(e=se(e=fe(e=C(e).path),!0)).toLowerCase()}function W(e){let t={proxyUrl:e.proxyUrl,urlPrefix:$(e.urlPrefix)},r=f.proxyRules,n=t.urlPrefix,a=r.length;for(let e=0;e<r.length;e++){let t=r[e].urlPrefix;if(n.startsWith(t)){if(n.length===t.length)return-1;a=e;break}t.startsWith(n)&&(a=e+1)}return r.splice(a,0,t),a}function N(e){let t=f.proxyRules,r=$(e);for(let e=0;e<t.length;e++)if(r.startsWith(t[e].urlPrefix))return t[e]}function I(e,t){if(!e||!t)return!1;e=T(e),t=T(t);let r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&R(e,t,!0)}function E(e,t){return e=T(e),t=T(t),se(e)===se(t)}function T(e){let t=(e=z(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=f.interceptors){let r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(let e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function R(e,t,r=!1){if(!e||!t)return!1;let n=pe(e),a=pe(t);return!(!r&&n.scheme!==a.scheme||null==n.host||null==a.host)&&n.host.toLowerCase()===a.host.toLowerCase()&&n.port===a.port}function L(e){if("string"==typeof e){if(!D(e))return!0;e=pe(e)}if(R(e,k))return!0;let t=f.trustedServers||[];for(let r=0;r<t.length;r++){let n=U(t[r]);for(let t=0;t<n.length;t++)if(R(e,n[t]))return!0}return!1}function U(e){return _[e]||(ne(e)||re(e)?_[e]=[new v(J(e))]:_[e]=[new v(`http://${e}`),new v(`https://${e}`)]),_[e]}function J(e,t=O,r){return re(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===H(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:B(e.startsWith("/")?function(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function F(e,t=O,r){if(null==e||!D(e))return e;let n=z(e),a=n.toLowerCase(),o=z(t).toLowerCase().replace(/\/+$/,""),i=r?z(r).toLowerCase().replace(/\/+$/,""):null;if(i&&!o.startsWith(i))return e;let s=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r,c=s(a,"/",a.indexOf("//")+2),l=-1;for(;a.slice(0,c+1)===o.slice(0,c)+"/"&&(l=c+1,c!==a.length);)c=s(a,"/",c+1);if(-1===l||i&&l<i.length)return e;e=n.slice(l);let f=o.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function z(e){return function(e){let t=f.httpsDomains;if(!function(e){return null!=e&&b.test(e)||"http"===k.scheme&&re(e)}(e))return e;let r,n=e.indexOf("/",7);if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),m.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&r===k.authority&&!g.test(e)||(ie()&&r===k.authority||t&&t.some(e=>r===e||r.endsWith(`.${e}`))||ie()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){let t=C(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=J(e=e.trim()))))}function B(...e){let t=e.filter(a.Ru);if(!t?.length)return;let r=[];if(D(t[0])){let e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&p.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else t[0].startsWith("/")&&r.push("");let n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){let 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 H(e,t=!1){if(null==e||G(e)||V(e))return null;let r=e.indexOf("://");if(-1===r&&re(e))r=2;else{if(-1===r)return null;r+=3}let n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=se(e,!0)),e}function D(e){return re(e)||ne(e)}function G(e){return null!=e&&e.startsWith("blob:")}function V(e){return null!=e&&e.startsWith("data:")}function Q(e){let t=Y(e);return t?.isBase64?(0,l.M)(t.data):null}function K(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const X=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){let t=e.match(X);if(!t)return null;let[,r,n,a]=t;return{mediaType:r,isBase64:!!n,data:a}}function Z(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ee(e){return(await fetch(e)).blob()}function te(e){let t=Q(e);if(!t)return null;let r=Y(e);return new Blob([t],{type:r.mediaType})}function re(e){return null!=e&&e.startsWith("/")&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function ae(e){return null!=e&&h.test(e)||"https"===k.scheme&&re(e)}function oe(e){return re(e)?`https:${e}`:e.replace(b,"https:")}function ie(){return"https"===k.scheme}function se(e,t=!1){return re(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&e.startsWith("/")&&"/"===e[1]&&(e=e.slice(2)),e)}function ce(e){let t=0;if(D(e)){let r=e.indexOf("//");-1!==r&&(t=r+2)}let r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function le(e,t){if(!e)return"";let r=A(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;let a=RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(a,"")}function fe(e){return e.endsWith("/")?e:`${e}/`}function de(e){return e.replace(/\/+$/,"")}function ue(e,t,r){if(!(t&&r&&e&&D(e)))return e;let n=e.indexOf("//"),a=e.indexOf("/",n+2),o=e.indexOf(":",n+2),i=Math.min(a<0?e.length:a,o<0?e.length:o);return e.slice(n+2,i).toLowerCase()===t.toLowerCase()?`${e.slice(0,n+2)}${r}${e.slice(i)}`:e}function be(e,t){let r=new URL(e);return r.host=t,r.port&&!m.test(t)&&(r.port=""),r.toString()}function he(e){return new URL(e).host}function pe(e){return"string"==typeof e?new v(J(e)):(e.scheme||=k.scheme,e)}function me(e,t){let r=A(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 ge(e,t,r){let n=A(e),a=n.query||{};return a[t]=String(r),`${n.path}?${S(a)}`}function ye(e,t){if(!t)return e;let r=A(e),n=r.query||{};for(let[e,r]of Object.entries(t))null!=r&&(n[e]=r);let a=S(n);return a?`${r.path}?${a}`:r.path}function we(e){if(null==e)return null;let t=e.match(ke);return t?t[2]:null}function ve(e){if(null==e)return null;let t=e.match(ke);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function _e(e){return"string"==typeof e?Y(e)??{data:e}:new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(Y(n.result)),n.onerror=e=>r(e)})}const ke=/([^.]*)\.([^/]*)$/;r.d(t,["Xq",0,()=>k,"gd",0,()=>O])},52268(e,t,r){function n(e,t){return new Proxy({},{get:(r,n,a)=>(...r)=>{let a,o,i=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(i)&&(a=i.signal,o=i.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:o,signal:a})}})}r.d(t,{L:()=>n})},50343(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(70333),a=r(49186),o=r(37955),i=r(36563),s=r(97768),c=r(17676),l=r(52268),f=r(17333),d=r(8341);const{CLOSE:u,ABORT:b,INVOKE:h,RESPONSE:p,OPEN_PORT:m,ON:g}=d.Go;class y{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===b?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(let e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class w{static{this.kernelInfo={fullVersion:n.ol}}static{this.clients=new Map}static connect(e,t){let r,n=new MessageChannel;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;let a=new w(n.port1,{channel:n,client:r,schedule:t});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=a),w.clients.set(a,r),n.port2}static loadWorker(e){let t=f.u[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new y(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._maxNumberOfConcurrentJobs=t.maxNumberOfConcurrentJobs??2,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:u}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let n=r?.signal,o=r?.transferList;if(!this._port)return Promise.reject(new a.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));let i=(0,d.Jc)();return new Promise((r,a)=>{if((0,c.G4)(n))return this._processWork(),void a((0,c.NK)());let l={resolve:r,reject:a,abortHandle:(0,c.u7)(n,()=>{let e=this._outJobs.get(i);e&&(this._outJobs.delete(i),this._processWork(),(0,s.xt)(e.abortHandle),this._post({type:b,jobId:i}),a((0,c.NK)()))}),debugInfo:e};this._outJobs.set(i,l),this._post({type:h,jobId:i,methodName:e,abortable:null!=n},t,o)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){let r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:g,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,i.hA)(()=>{r.port1.postMessage({type:u}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){let e=new MessageChannel;return this._post({type:m,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=this._maxNumberOfConcurrentJobs)return;let e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;let{methodName:t,data:r,invokeOptions:n,resolver:a}=e;this.apply(t,r,n).then(e=>a.resolve(e)).catch(e=>a.reject(e))}_close(){this._channel&&=void 0,this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,s.xt)(e.abortHandle),e.reject((0,c.NK)(`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,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null==this._schedule?this._processMessage(e,!1):this._schedule(()=>this._processMessage(e,!0))}_processMessage(e,t){let r=(0,d.VI)(e);if(r)switch(r.type){case p:this._onResponseMessage(r);break;case h:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case b:this._onAbortMessage(r);break;case u:this._onCloseMessage();break;case m:this._onOpenPortMessage(r);break;case g:this._onOnMessage(r)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){let e=this._client;this._close(),e&&"destroy"in e&&w.clients.get(this)===e&&e.destroy(),w.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){let t,{methodName:r,jobId:n,data:a=[],abortable:o}=e,i=o?new AbortController:null,s=this._inJobs,l=this._client,f=l[r];try{if(!f&&r&&r.includes(".")){let e=r.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw TypeError(`${r} is not a function`);a.push({client:this,signal:i?i.signal:null}),t=f.apply(l,a)}catch(e){return void this._post({type:p,jobId:n,error:(0,d.mF)(e)})}(0,c.$X)(t)?(s.set(n,{controller:i,promise:t}),t.then(e=>{s.has(n)&&(s.delete(n),this._post({type:p,jobId:n},e))},e=>{s.has(n)&&(s.delete(n),(0,c.zf)(e)||this._post({type:p,jobId:n,error:(0,d.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:p,jobId:n},t)}_onOpenPortMessage(e){new w(e.port,{client:this._client})}_onOnMessage(e){let{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,o.on)(e.port,"message",e=>{(0,d.VI)(e)?.type===u&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs;if(!o.has(t))return;let i=o.get(t);o.delete(t),this._processWork(),(0,s.xt)(i.abortHandle),r?i.reject(a.A.fromJSON(JSON.parse(r))):i.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},17333(e,t,r){const n={CSVSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(6310)]).then(()=>r(25209)),EdgeProcessingWorker:()=>Promise.all([r.e(1843),r.e(161),r.e(433)]).then(()=>r(71936)),ElevationSamplerWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(2258),r.e(9038)]).then(()=>r(38419)),FeaturePipelineWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(5128),r.e(7552),r.e(1722),r.e(6854),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(5228),r.e(4690),r.e(4805),r.e(1969),r.e(9908),r.e(1618)]).then(()=>r(55459)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(8902)]).then(()=>r(20401)),FlowWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9616)]).then(()=>r(49616)),GaussianSplatSortWorker:()=>r.e(5856).then(()=>r(35856)),GeospatialPDFLayerWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(599)]).then(()=>r(37728)),GeometryWorker:()=>Promise.all([r.e(9917),r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(6525)]).then(()=>r(80188)),GeoJSONSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(2063)]).then(()=>r(71202)),GeoJSONVectorTileSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9575),r.e(359),r.e(2170)]).then(()=>r(14289)),GlyphWorker:()=>Promise.all([r.e(2741),r.e(6892)]).then(()=>r(16892)),IntegratedMesh3DTilesLayerWorker:()=>Promise.all([r.e(1843),r.e(9554)]).then(()=>r(95938)),LercWorker:()=>r.e(7087).then(()=>r(57087)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(2772)]).then(()=>r(72772)),MemorySourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(3275)]).then(()=>r(29432)),PBFDecoderWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9078)]).then(()=>r(39078)),PanoramicMeshWorker:()=>Promise.all([r.e(9358),r.e(4314)]).then(()=>r(96982)),ParquetSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(6854),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(3819),r.e(4805),r.e(1484)]).then(()=>r(6557)),PointCloudWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(7005),r.e(7984),r.e(5992)]).then(()=>r(64798)),RasterWorker:()=>Promise.all([r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(7074),r.e(2754),r.e(9235),r.e(3518)]).then(()=>r(63966)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(1843),r.e(161),r.e(491)]).then(()=>r(70491)),SceneLayerWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(6707)]).then(()=>r(94715)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(()=>r(95902)),WFSSourceWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9696),r.e(9575),r.e(359),r.e(5752),r.e(574)]).then(()=>r(33771)),WorkerTileHandler:()=>Promise.all([r.e(7736),r.e(9953),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(5228),r.e(7499),r.e(1969),r.e(4157)]).then(()=>r(36984)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(4862)]).then(()=>r(1123)),statsWorker:()=>Promise.all([r.e(7736),r.e(7865),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(8798),r.e(9575),r.e(3281),r.e(1737)]).then(()=>r(26412)),ImageMeasurementWorker:()=>Promise.all([r.e(7736),r.e(9917),r.e(8278),r.e(9187),r.e(8885),r.e(7865),r.e(9117),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(3299),r.e(7552),r.e(2741),r.e(9358),r.e(6930),r.e(5443),r.e(9567),r.e(893),r.e(8798),r.e(9575),r.e(812),r.e(7074),r.e(9800),r.e(5879),r.e(8732),r.e(7772),r.e(9096)]).then(()=>r(44012))};r.d(t,["u",0,n])},8341(e,t,r){r.d(t,{Jc:()=>c,VI:()=>d,mF:()=>l,oV:()=>b,u1:()=>f});var n=r(44208),a=r(17676);const o="worker:port-closed",i={HANDSHAKE:0,OPEN:1,OPENED:2,RESPONSE:3,INVOKE:4,ABORT:5,CLOSE:6,OPEN_PORT:7,ON:8};let s=0;function c(){return s++}function l(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 f(e,t,r,n){if(t.type===i.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==i.INVOKE&&t.type!==i.RESPONSE)return void e.postMessage(t);let a;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(a=u(n),t.data=r):(a=u(r.transferList),t.data=r.result),a?e.postMessage(t,a):e.postMessage(t)}function d(e){if(!e)return null;let t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;let t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function b(e){try{return await e}catch(e){let t=e?.name===o;if(!(0,a.zf)(e)&&!t)throw e;return}}r.d(t,["Go",0,i,"T",0,o])},70333(e,t,r){r.d(t,{Aq:()=>i,Y3:()=>s,id:()=>a,ol:()=>o}),r(44208);var n=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");let a,o="5.2";function i(e){a=e}function s(e){let t=a?.findCredential(e);return t?.token?(0,n.rs)(e,"token",t.token):e}o="5.2.0-next.159",globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}})},39131(e,t,r){r.d(t,{$E:()=>i,py:()=>o,qG:()=>s});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,a={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 o(e){let t=e?.match(n);if(!t)return null;let[,r,o,i]=t;if(!r)return null;let s=null,c=null,l=null,{devext:f,qaext:d,www:u}=a;if(o)if(s=r,i)switch(i.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:s}}function i(e){return!!e&&/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function s(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},26306(e,t,r){function n(e){let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function a(e){let t=new Uint8Array(e),r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>a})}};const t={};function r(n){const a=t[n];if(void 0!==a)return a.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.m=e,r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var a=t[n++],o=t[n++],i=0===o?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:o};r.o(e,a)||Object.defineProperty(e,a,i)}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.f={},r.e=e=>{const t=[];return r.f.i(e,t),Promise.all(t)},r.u=e=>"chunks/"+{31:"67efdd296007a809586c",77:"02f8654852d389583891",100:"ebbf425af348e6ede814",118:"15bcf7cfe603f2ee1a24",124:"a09d2e1e2540921e4717",146:"54b18559280a7d2a8d93",152:"8715661a838361d4211a",161:"eebbde81e56d69dc602f",167:"a40b6d8b5c73e06e14d4",309:"e7aaf7579592b79d6dd7",349:"514cc15acb77dc85035c",353:"751a21288cf161b94a54",359:"3880d2c7fb14955d7f93",369:"66539ab0d88b47326ce9",382:"8483c50ed8f280fd74bb",390:"d0f5bee9db1ad51ae687",433:"5736feefa261589b6273",468:"bfb8fc6b940bd5510e29",491:"1d77c8c59b0118c7e77b",506:"ac69c0fd5867b493f1d2",547:"aa5b42e44d2959fdacd3",563:"08fe248e412bb170210d",566:"bd812dd75d2a3d7d0441",574:"b3007aedbf731dacaff1",599:"4eae066673484986d4c1",692:"2671035cc08027185737",700:"fda83bcb8e40e8044c24",737:"befa32b9e7b3fbdd431e",756:"49e4fe8ea5a4366a9b45",787:"bc38def1983089514e4b",788:"6a294b6ed6f67c8a01c6",812:"80c234ee5276ea1645db",820:"35f8896b52adaf952657",837:"9cbde13e536676767900",892:"dfbe0efe453587ec5eb2",893:"32b351b047ce1eb58146",895:"369780276b2755361f7d",919:"4e3f651ac76fcd53df2b",926:"ccb55245fe49d844ec50",931:"6c9266120d46e8c69dbf",980:"cf1ec61eb2ad147bb931",1003:"9215b59c5ccecf9add58",1017:"ec9a2425b4a498054a19",1088:"864194927d05ebc4cc31",1132:"eaddffcc7004101fc230",1150:"90153b5230b3a4985c14",1204:"608be1172a908e92b9f1",1214:"eab53cc313ef38ec7c48",1273:"6ddc29a144640acb1192",1277:"38d852676677e5697864",1285:"116293b1ee788a89ce1e",1327:"47f0c717acc2c33ea670",1359:"ace802483484519658f3",1384:"28ed020d9995b6577be5",1484:"44d5508042cacdfcac47",1491:"06101f3da5e2fc708402",1549:"dfd2dc5cdc97ffba8926",1550:"7446d0dfebf93e86c098",1560:"4f4bc4f809b8936cd010",1577:"cca8bd07bcd1d267a2e8",1588:"f1df76f098a3cc924832",1618:"43cf862577bf37344ff4",1666:"950d4578dc450467404c",1698:"0fda0d8b0eaeed2ab39d",1722:"606ea251075fe81a1206",1735:"d344c3fd9f6b113bbcd7",1737:"18f20fd43ec9ce03cef1",1763:"e8bf653376a607f00897",1773:"72e6d594b7262430ae55",1797:"f8bc474434fd365ab174",1837:"3a8320a40916c755c031",1843:"aba42885c5d6b2b5fe7f",1894:"12a08d0ad0f5fea32642",1904:"1bca39e0e651426bdbb5",1948:"a51576d84edca88e41dd",1951:"f4a7aa3cdbc0c429c359",1969:"bab1d010970d98c25470",2024:"67f15538c51838201fc7",2061:"129e04d24ced77c9bb6d",2063:"78c4e43cfa1eda06b4d9",2158:"4ba856605f711b615e4c",2170:"66867e523cc82f8fe35b",2174:"164e74d586297946a717",2186:"d53cc574a21031436c45",2241:"bbd44ac63d2a317d8ed9",2258:"0b4481b57a611b15f65c",2309:"f528ac5c648ca6a98582",2343:"05b34302da58e8244da3",2346:"d90a3bfd45b5ed4092e0",2372:"6202ba9d79567cbe2c48",2387:"377595b23379b0c8fe95",2390:"9d0ee6a816bb72068ab1",2409:"30e20461958951a31a5c",2423:"2479162ebc3a0b8d2b5e",2491:"b4334713bacdfe40ce3d",2558:"2b06e8507d71c4d9b5b5",2733:"5ec5a6cef9ee9a8cc400",2741:"1419bf346978b81b08cc",2754:"175c268e64ccd01f8c25",2772:"e81173724e8de8c1e65b",2802:"ca204c110438f7315790",2806:"fd4635410b27bcedb752",2867:"611e3cdf67283c11576f",2869:"e01fc1c31bc023dd0e33",2889:"9401cc22373566e1171e",2938:"4a6b92ecbb1f1c55cc43",2958:"2d13a22f7b2427927fdc",2980:"897e44f97b933d70feee",2990:"99a0a434ea2162166754",2994:"747461bb6a1bc2f0a64d",2997:"80df9ad016b46619c7b9",3030:"f95a1f878c9c1146180e",3055:"c72a904e01dc8c17d992",3103:"2a570ce6b99dac6ee996",3116:"18787aa685524b958561",3193:"070684943698fa43c2b4",3275:"967b4992b400517ee712",3276:"eb2652ec48faa78de3c5",3278:"4e6656a5f29e31902fca",3281:"72f716a841463e0ba23f",3299:"8aa80b892fde552577e8",3309:"e630f3c56c077cb2bd8e",3312:"6c9266120d46e8c69dbf",3318:"72bd866df89b8d92e247",3354:"e11159e3dc3353b27c57",3359:"112befb3b5b406f29298",3375:"5fbd7d8d8896a224fff3",3390:"ee6679ef9efa1504e7eb",3391:"e0351753f6b4d1adf11e",3394:"898359be6996fd9763b8",3456:"e2775b4b753306dc8477",3467:"4fe34da1c5d63e66ce98",3483:"7f0f9dddc44b1f1600f0",3494:"9dd1fc56eb1ea6eb705e",3500:"cb4be68cc5085d421615",3518:"b1d5d236d5268fcbc74b",3527:"e99c8c71c757bb161d87",3543:"e000123703b86494c738",3561:"c2c1f51a4668055c2838",3650:"fccfe3aa45a2fb286012",3666:"363142b7fb50227fcdca",3693:"1380cec385426673f294",3708:"47f0c717acc2c33ea670",3755:"3ec3589f6e74d7cb87cf",3796:"2e66c969bf4209c957b5",3813:"c8d178a0c82fffd7fed5",3819:"4e4f747de424941a0bfa",3902:"784a2fba3e18286958d1",3910:"9432feca48ca3e5849bd",4038:"5b720d254ba61758b61a",4051:"c5d85be6e16bc895e7fb",4059:"5982c6a8459c1237b298",4064:"6ccf9535013fe672c93b",4144:"365825c51fad1bb7f51f",4152:"042614bf65b7d63025cb",4157:"15e1117a706a98b17ad5",4297:"426b4eb500fdfe9df325",4314:"8e5903f1ed31e1185fc9",4403:"e3a742dc0c291b47ba56",4426:"77ebacfdf8e57f2e03f1",4548:"943a0f140813ee4ab04a",4565:"ba38231193919e093917",4575:"62941dd81acfdb524cfe",4642:"ac24b4370dc7194a3107",4674:"45367aa8e5c5d574de94",4690:"2f04b8679c9f15390517",4708:"74137ffec5265628c33b",4729:"b83cef2d3f528726d492",4790:"9cd3fcb5fca6f9dbbcd8",4791:"406f24ec13eb30d43405",4805:"acdfd275dbf8533a67f3",4844:"2c626f525f3483c03477",4862:"f63686735e4e52f5b54e",4934:"ade5fdcd08dcbac74740",4945:"d51bb11baadc741c46bc",4988:"6268aadb24e0b7c8d207",5057:"c19f238b55ff2893f7c2",5077:"74c866e0b66e61751861",5087:"5cb26bbaa08114aec5ce",5128:"a7325ebb7edf3273bb34",5141:"56a24061589f4a968818",5165:"8293600f94553afc8c38",5181:"3de07326da4c47cd2aab",5223:"c9e7d4c277fbc82c4438",5227:"ca2adcbcf44454484fd5",5228:"fdbf6208df5c58746d9d",5248:"652faf4359ac072c5dde",5356:"4be559c53fe5ac0d0d2e",5360:"a02c3c23bd87e0470b8b",5367:"14ded73842154d91ef4e",5404:"3704b4e7efc3abc1a7b1",5443:"6e910342ada398c98e30",5508:"31640b41e0ecdff892fa",5566:"f8a83d447b7aef051876",5606:"6a0ec102962d2c7b4368",5613:"ffbcb816b611049a6276",5740:"830ab9b8d000169da675",5752:"090adefe20412e8a5084",5756:"5fbd7d8d8896a224fff3",5804:"85ec73dcba4b922f1948",5841:"7e0f04a5038e2a4f6e4b",5853:"939942b00ba380e2957e",5856:"bca6b469940b7b954123",5864:"c337fc0e6dc69c233e6d",5879:"444e5f214abce3d607cd",5902:"18d47ab571b613fbe719",5992:"76196c414e48834f7b92",6027:"e2576c37cf13dc421f69",6033:"a025ee38d402504193df",6052:"47e250d471d0e55fa6be",6070:"178083d8ed7707b45ca2",6122:"0b6941781e35ce0f7274",6129:"6b646971cc15e33a9f33",6154:"d747c7a5252e3b1f466a",6185:"c19cd5a03b6d480fe53b",6187:"dbaa88e46487efaad732",6198:"844eedda8f749972f707",6247:"6afe860f491905c72298",6310:"a62c12925303ff802c3d",6361:"2226c20c38e20713bcb5",6377:"709e019885822b1f6f3e",6440:"5982c6a8459c1237b298",6451:"66c2a28a851130b87c04",6475:"dc51dcaa4e2f9a90f5bd",6491:"067de1910190da228291",6525:"4932773663469919d10a",6554:"fc44227c1756f65b95df",6556:"076e8d2e08ff2a013736",6558:"876f7633c15f1e31078d",6569:"6b04285726b803b82564",6650:"3415531224f8494d79ca",6671:"0320cbd825f9a4222042",6684:"084222c00d263a534952",6707:"168a523bdc3653081f8a",6742:"1eaaa896eea3f2ffe6a6",6810:"1f9d6180a96d557838e9",6811:"a546ec82ba149e12f7bf",6854:"daf9b691817e83a11f3c",6870:"20f75cc777af13fa249b",6875:"0590857215c547e63b51",6884:"3e3e076fa5e8d5d5f33f",6892:"8e19629899a5becf8e19",6930:"d89fe41c71c9621c41ae",6936:"1188d0a136fffc009643",6956:"02d4f91652a79d2b637e",7005:"42045cf46497828cd3c0",7013:"0a5a9885ee6f5b5f99f0",7029:"aa8ab28e0c1ae3b55ac0",7074:"6f73e41e14817acfaead",7085:"0979a48905742486f222",7087:"bb9a1162384f59e9bc5e",7173:"af349c7bc8ef41a0e1bd",7217:"4c389472b8cdb0c55154",7269:"6eb5cc8ddf772c0062e6",7290:"8f74d92ac69714b9fd4e",7301:"42fd2a7b22b03dacc6a7",7444:"59295b99bdff4045a0e7",7499:"505227797bcf2a1d908d",7537:"aa1ac7954e4f0fefe15b",7546:"17f99b130384c1ff2e01",7552:"510502a4c9a2ba8d3f7b",7561:"2a8168e109caa87d596f",7568:"2d9a1f23ec6ce90723ac",7715:"a53823cf03dbdce1aecd",7736:"a83815c028c9c80aa4c9",7745:"f9259dc1d78d762c6ac0",7772:"340256866f524cb069f6",7790:"ab6506a3c16f8717fc00",7835:"7f16ae01ccd9b6114d1c",7865:"2fcd7db1e192858a650e",7870:"be308db5b61a7246edfe",7883:"aa1054834738aef48bda",7885:"6c9acd9e4e201dc380e9",7982:"fc73737b41e086f0ce0b",7984:"8cc8d7ffe43f5947b04f",7992:"b01804aa6c47a220a603",8018:"20a698709c3c11ff2c16",8094:"7393f63043a1da3d05a6",8118:"81cad8d2f62a5f671c55",8125:"ac69c0fd5867b493f1d2",8197:"abb9e820d2871fa7acae",8278:"7d212c415f2709037408",8298:"7aa9b61ca9b66f30449f",8307:"f8d2225f333524ce1d88",8344:"b976122bcd4e2170afaf",8361:"95dbbddac6581b9d671f",8366:"2e096537a3a5555a4a93",8377:"92b03de8a7686b164f60",8441:"12a7997a40c77f5c9160",8457:"010f57ec7fdbedf78d02",8548:"4e350d6c76957f5beb70",8589:"172cfeb5f415e4662432",8613:"784d6c6949284ed6e10b",8628:"42330ad374904de4f78f",8679:"8e310e9cb9d84ac3ca2f",8692:"c8d6bb5cca49926a0214",8707:"e653c81ffb3d818645dd",8714:"765ecf6dff9a547d8e19",8732:"6299be5e7e26bf3c6859",8740:"efc53007cd2e4991d7d4",8768:"7449568eb2305bf2d650",8798:"7711ae5612f685078fc8",8846:"23fd4de56de352f63e2d",8856:"a504a5e06cb89a620799",8879:"1819c45655c836b9a8d7",8885:"72399062767abdfb0bee",8902:"4fd0d9688df6fcc0d0b8",9013:"3dd49f910834a2fb2142",9038:"1201b8c5852830836eac",9074:"cb6fb04fe5c8d90d4196",9078:"4996869b9cbd8c8ddcfa",9096:"0cb50bc2b2125c5fedf2",9117:"7851aef196eea5d6c94e",9126:"40748b846cf6923478c9",9134:"2a3fcc034cfbf540c5cc",9159:"4d7063c4152953afb859",9177:"47d074136a7f8e551a9a",9187:"1cc744ab5eee5ee3bed8",9192:"cc817c9d3f8e8f8c56e4",9229:"d95d63e8d51244d71afb",9235:"de0f335f702ae85a1df3",9239:"f67b37253d6d05d1e339",9275:"60737732ce495bbdd0fc",9279:"fc5a36e54929e03efa86",9301:"3dddae78286d05eb10fc",9304:"d33360c4f85203edafff",9321:"ffde86162265b33e97e0",9358:"ace2e0a9d9013edd8624",9385:"8ff23ac0abeea0073b47",9389:"9e8f012a56237fc8285f",9447:"474015def9652ddf0640",9480:"612104dff305ff062dfa",9512:"1f43e06dcfe56229bb0f",9521:"787c1a8bda7d745633f2",9554:"8ca2bb3c0551bb1898b6",9567:"842893e75696428d536f",9575:"e1b7806ab3e1967b15f0",9588:"58032aab28a20a327f6c",9616:"b390b9cde2884755e8be",9657:"afc3b2af20e9d1dfd260",9661:"97d6ef9e34a43ad2e556",9672:"3b552afffaa78bf4fe18",9692:"4bb1bb3ffb1b71bc43c8",9695:"5aeb5e18514644fe2cf9",9696:"3f946c13ad97fbed867b",9714:"0bd5012da287469b17d5",9716:"d4eb24c82087a74ae670",9722:"cd9aa950cb74b09008fe",9754:"2cb209bc51a19487692d",9775:"612345f17f5eeb99ea8f",9789:"72071ea5de89720fbe42",9800:"8414ffd937c1099e0bbc",9820:"6a2562cc00727155fc01",9821:"1c378d489c5402888f76",9838:"e1f5d00878f27e1d413e",9894:"7572c2bc5062e66f6330",9908:"28b74bc77f7c13080074",9917:"8924e2f3b7d03afb3a6a",9933:"257910cca66dc5df465e",9953:"d6cd0039d6e9c40961e3",9958:"deb408bee61ca192b2ce"}[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=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{var e={76:1},t=t=>{let[n,o,i]=t;for(var s in o)r.o(o,s)&&(r.m[s]=o[s]);for(i&&i(r);n.length;)e[n.pop()]=1;a(t)};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var n=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],a=n.push.bind(n);n.forEach(t),n.push=t})(),r(66358);let n=r(50343);RemoteClient=n})();
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7013],{69052(e,t,r){r.d(t,{hr:()=>i});var s=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return a(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,s.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+n(this.range,e-t,r)}minimalMonotonic(e,t,r){return a(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,s=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(s)?r:s}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function a(e,t,r,s,i=0,a=!1){return(s-=i)<t?s+=n(e,t-s):s>r&&(s-=n(e,s-r)),a&&s===r&&(s=t),s+i}function n(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const o=new i(0,2*Math.PI),u=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,u,"uC",0,o])},18370(e,t,r){r.d(t,{z:()=>i});class s{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function i(e){return new s(e)}},82534(e,t,r){function s(){return[0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>i,vt:()=>s});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:s,fromValues:function(e,t,r,s){return[e,t,r,s]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,a])},67026(e,t,r){r.d(t,{A6:()=>f,Xd:()=>p,Xr:()=>d,lw:()=>c,x8:()=>l});var s=r(29242),i=r(82534),a=r(51850),n=r(34304),o=r(35522),u=r(78955);function l(e,t,r){r*=.5;let s=Math.sin(r);return e[0]=s*t[0],e[1]=s*t[1],e[2]=s*t[2],e[3]=Math.cos(r),e}function p(e,t){let r=2*Math.acos(t[3]),s=Math.sin(r/2);return s>(0,n.FD)()?(e[0]=t[0]/s,e[1]=t[1]/s,e[2]=t[2]/s):(e[0]=1,e[1]=0,e[2]=0),r}function c(e,t,r){let s=t[0],i=t[1],a=t[2],n=t[3],o=r[0],u=r[1],l=r[2],p=r[3];return e[0]=s*p+n*o+i*l-a*u,e[1]=i*p+n*u+a*o-s*l,e[2]=a*p+n*l+s*u-i*o,e[3]=n*p-s*o-i*u-a*l,e}function h(e,t,r,s){let i,a,o,u,l,p=t[0],c=t[1],h=t[2],d=t[3],y=r[0],f=r[1],m=r[2],g=r[3];return a=p*y+c*f+h*m+d*g,a<0&&(a=-a,y=-y,f=-f,m=-m,g=-g),1-a>(0,n.FD)()?(i=Math.acos(a),o=Math.sin(i),u=Math.sin((1-s)*i)/o,l=Math.sin(s*i)/o):(u=1-s,l=s),e[0]=u*p+l*y,e[1]=u*c+l*f,e[2]=u*h+l*m,e[3]=u*d+l*g,e}function d(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){let r,s=t[0]+t[4]+t[8];if(s>0)r=Math.sqrt(s+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let s=0;t[4]>t[0]&&(s=1),t[8]>t[3*s+s]&&(s=2);let i=(s+1)%3,a=(s+2)%3;r=Math.sqrt(t[3*s+s]-t[3*i+i]-t[3*a+a]+1),e[s]=.5*r,r=.5/r,e[3]=(t[3*i+a]-t[3*a+i])*r,e[i]=(t[3*i+s]+t[3*s+i])*r,e[a]=(t[3*a+s]+t[3*s+a])*r}return e}function f(e,t,r,s){let i=.5*Math.PI/180;t*=i,r*=i,s*=i;let a=Math.sin(t),n=Math.cos(t),o=Math.sin(r),u=Math.cos(r),l=Math.sin(s),p=Math.cos(s);return e[0]=a*u*p-n*o*l,e[1]=n*o*p+a*u*l,e[2]=n*u*l-a*o*p,e[3]=n*u*p+a*o*l,e}const m=u.C,g=u.hZ,S=u.WQ,v=c,A=u.hs,_=u.Om,x=u.Cc,b=u.Bw,w=b,M=u.m3,q=M,F=u.S8,I=u.t2,R=u.aI,O=(0,a.vt)(),C=(0,a.fA)(1,0,0),T=(0,a.fA)(0,1,0),P=(0,i.vt)(),E=(0,i.vt)(),N=(0,s.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:S,calculateW:function(e,t){let r=t[0],s=t[1],i=t[2];return e[0]=r,e[1]=s,e[2]=i,e[3]=Math.sqrt(Math.abs(1-r*r-s*s-i*i)),e},conjugate:d,copy:m,dot:_,equals:R,exactEquals:I,fromEuler:f,fromMat3:y,getAxisAngle:p,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){let r=t[0],s=t[1],i=t[2],a=t[3],n=r*r+s*s+i*i+a*a,o=n?1/n:0;return e[0]=-r*o,e[1]=-s*o,e[2]=-i*o,e[3]=a*o,e},len:w,length:b,lerp:x,mul:v,multiply:c,normalize:F,random:function(e){let t=n.Ov,r=t(),s=t(),i=t(),a=Math.sqrt(1-r),o=Math.sqrt(r);return e[0]=a*Math.sin(2*Math.PI*s),e[1]=a*Math.cos(2*Math.PI*s),e[2]=o*Math.sin(2*Math.PI*i),e[3]=o*Math.cos(2*Math.PI*i),e},rotateX:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u+n*o,e[1]=i*u+a*o,e[2]=a*u-i*o,e[3]=n*u-s*o,e},rotateY:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u-a*o,e[1]=i*u+n*o,e[2]=a*u+s*o,e[3]=n*u-i*o,e},rotateZ:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u+i*o,e[1]=i*u-s*o,e[2]=a*u+n*o,e[3]=n*u-a*o,e},rotationTo:function(e,t,r){let s=(0,o.Om)(t,r);return s<-.999999?((0,o.$A)(O,C,t),(0,o.Il)(O)<1e-6&&(0,o.$A)(O,T,t),(0,o.S8)(O,O),l(e,O,Math.PI),e):s>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,o.$A)(O,t,r),e[0]=O[0],e[1]=O[1],e[2]=O[2],e[3]=1+s,F(e,e))},scale:A,set:g,setAxes:function(e,t,r,s){let i=N;return i[0]=r[0],i[3]=r[1],i[6]=r[2],i[1]=s[0],i[4]=s[1],i[7]=s[2],i[2]=-t[0],i[5]=-t[1],i[8]=-t[2],F(e,y(e,i))},setAxisAngle:l,slerp:h,sqlerp:function(e,t,r,s,i,a){return h(P,t,i,a),h(E,r,s,a),h(e,P,E,2*a*(1-a)),e},sqrLen:q,squaredLength:M,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(t,["hZ",0,g,"t2",0,I])},95696(e,t,r){r.d(t,{A:()=>l});var s,i=r(32198),a=r(69540),n=r(25482),o=r(91429),u=r(93223);let l=class extends((0,a.OU)(n.o)){static{s=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new s}};(0,i.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=s=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(e,t,r){r.d(t,{A:()=>l});var s=r(32198),i=r(69540),a=r(25482),n=r(91429),o=r(51850),u=r(93223);let l=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.type="local",this.origin=(0,o.vt)()}};(0,s.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,s.Cg)([(0,n.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},73836(e,t,r){r.d(t,{A:()=>d});var s=r(32198),i=r(69540),a=r(25482),n=r(91429),o=r(58083),u=r(9093),l=r(67026),p=r(82534),c=r(51850),h=r(24770);let d=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(h.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,h.yo)(e)),this.rotationAngle=(0,h.g7)(e)}get localMatrix(){let e=(0,u.vt)();return(0,l.x8)(y,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,o.o1)(e,y,this.translation,this.scale),e}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,o.t2)(this.localMatrix,e.localMatrix)}};(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,s.Cg)([(0,n.MZ)()],d.prototype,"rotation",null),(0,s.Cg)([(0,n.MZ)()],d.prototype,"localMatrix",null),(0,s.Cg)([(0,n.MZ)()],d.prototype,"localMatrixInverse",null),d=(0,s.Cg)([(0,n.$K)("esri.geometry.support.MeshTransform")],d);const y=(0,p.vt)()},24770(e,t,r){r.d(t,{$I:()=>m,AU:()=>d,g7:()=>f,i4:()=>p,ui:()=>c,vt:()=>l,yo:()=>y});var s=r(34727),i=r(58083),a=r(67026),n=r(82534),o=r(35522),u=r(51850);function l(e=S){return[e[0],e[1],e[2],e[3]]}function p(e,t,r=l()){return(0,o.C)(r,e),r[3]=t,r}function c(e,t=l()){let r=(0,i.l)(v,e);return g(t,(0,s.KJ)((0,a.Xd)(t,r))),t}function h(e,t,r=l()){return(0,a.x8)(v,e,m(e)),(0,a.x8)(A,t,m(t)),(0,a.lw)(v,A,v),g(r,(0,s.KJ)((0,a.Xd)(r,v)))}function d(e,t,r,s=l()){return p(u.Cw,e,_),p(u.JP,t,x),p(u.Cb,r,b),h(_,x,_),h(_,b,s),s}function y(e){return e}function f(e){return e[3]}function m(e){return(0,s.kU)(e[3])}function g(e,t){return e[3]=t,e}const S=[0,0,1,0],v=(0,n.vt)(),A=(0,n.vt)(),_=(l(),l()),x=l(),b=l();r.d(t,["up",0,S])},63579(e,t,r){r.d(t,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>d,fH:()=>f,in:()=>y,yr:()=>l});var s=r(56507),i=r(4576),a=r(17676),n=r(20557);class o{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,i.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let r=await Promise.all(t.map(t=>t.toBlob(e)));return(0,a.Te)(e),new Blob(r)}}class u{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,a.Te)(e),t}}function l(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(h):h(e.files);case"service":return e.assets.some(h);case"loadable":return!0;default:return!1}}(e?.source)}const p=/^(model\/gltf\+json)|(model\/gltf-binary)$/,c=/\.(gltf|glb)/i;function h(e){if(e instanceof File){let{type:t,name:r}=e;return p.test(t)||c.test(r)}return p.test(e.assetMimeType)||c.test(e.assetName)}function d(e,t){if(!e)return!1;let{source:r}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(r,t)}function y(e,t){if(e===t)return!0;let{source:r}=e,{source:s}=t;if(r===s)return!0;if("service"===r.type&&"service"===s.type){if(r.assets.length!==s.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...r.assets].sort(e),i=[...s.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function f(e,t){return e instanceof File?(0,n.rq)(e,t):(0,n.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function g(e){return!!e.original}},27615(e,t,r){r.d(t,{CK:()=>u,Hq:()=>o,MW:()=>l,TE:()=>p,yJ:()=>c});var s=r(35522),i=r(86738),a=r(95696),n=r(18251);function o(e){return null!=e.origin}function u(e){return o(e.vertexSpace)}function l(e,t){if(!o(e))return null;let[r,s,a]=e.origin;return new i.A({x:r,y:s,z:a,spatialReference:t})}function p(e,t){let{x:r,y:s,z:i,spatialReference:o}=e,u=[r,s,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(o))?new n.A({origin:u}):new a.A({origin:u})}function c(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,s.t2)(e.origin,t.origin))}},52039(e,t,r){r.d(t,{O7:()=>h,el:()=>l});var s=r(69052),i=(r(49186),r(18370)),a=r(17676),n=(r(5443),r(39829)),o=(r(82799),r(16930)),u=(r(80754),r(21325));async function l(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let s=null;for(let t of e)s??=t?.spatialReference;if(!s)return e;let i=(0,u.Vp)(s);if(!i)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(i);return["xmin"in t?t:new n.A(t)]}let[o,l]=i.valid,h=!1;for(let t of e){if(!t)continue;if("point"===t.type){h||=t.x>=l,h||=t.x<=o;continue}let{extent:e}=t;if(null==e){h=!0;break}h||=e.xmin>=l,h||=e.xmin<=o,h||=e.xmax>=l,h||=e.xmax<=o}if(!h)return e;let[{foldInto360Range:d},y]=await(0,a.qr)(Promise.all([p.getImportPromise(),c.getImportPromise()]),r),f=y.fromSpatialReference(s);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=y.fromGeometry(e),r=y.toGeometry(d(t,f),s);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const p=(0,i.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),c=(0,i.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function h(e,t,r){let s=(0,u.Vp)(r);if(null==s)return e;let[i,a]=s.valid,n=2*a,o=0,l=0;t>a?o=Math.ceil(Math.abs(t-a)/n):t<i&&(o=-Math.ceil(Math.abs(t-i)/n)),e>a?l=Math.ceil(Math.abs(e-a)/n):e<i&&(l=-Math.ceil(Math.abs(e-i)/n));let p=e+(o-l)*n,c=p-t;return c>a?p-=n:c<i&&(p+=n),p}function d(e){let t=(0,u.Vp)(e);if(null==t)return null;let[r,i]=t.valid;return new s.hr(r,i)}const y=d(o.A.WGS84);d(o.A.WebMercator),r.d(t,["Y_",0,y])},80754(e,t,r){r.d(t,{kS:()=>l,kd:()=>u});var s=r(82799),i=r(16930),a=r(60408),n=r(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function u(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){if((0,n.Ed)(e))for(let r of function(e){return(0,a.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r){if((0,n.aO)(e)){let[r,s]=e.c;r[0]+=t,s[0]+=t;continue}if((0,n.FG)(e)){let[r,s]=e.a;r[0]+=t,s[0]+=t;continue}if((0,n.n1)(e)){let[r,s,i]=e.b;r[0]+=t,s[0]+=t,i[0]+=t;continue}e[0]+=t}for(let r of function(e){return(0,a.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}r.d(t,["j7",0,o])},99352(e,t,r){r.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},65515(e,t,r){r.r(t),r.d(t,{default:()=>Y});var s=r(32198),i=r(92602),a=r(56507),n=r(4576),o=r(49186),u=r(44208),l=r(66552),p=r(92474),c=r(53966),h=r(93637),d=r(17676),y=r(36708),f=r(84952),m=r(13069),g=r(91429),S=r(5443),v=r(16930),A=r(95696),_=r(27615),x=r(63579),b=r(52106),w=r(86211);function M(e){return"object"==typeof e&&!!e&&"objectId"in e&&!!e.objectId}function q(e){return e.every(M)}function F(e){return"object"==typeof e&&!!e&&"globalId"in e&&!!e.globalId}function I(e){return e.every(F)}var R=r(99917),O=r(65864),C=r(73836),T=r(21325);async function P(e,t,r){let{geometry:s}=t,i={...t.attributes};if(null!=r&&"mesh"===s?.type){let{transformFieldRoles:t}=r,{origin:a,spatialReference:n,vertexSpace:o}=s,u=s.transform??new C.A,l="local"===o.type,p=e.spatialReference,c=p.isGeographic,h=(0,T.aI)(p,n),d=(0,R.isEqualBaseGCS)(n,p)&&(0,R.canProjectWithoutEngine)(n,p);if(!(l&&c&&d||!l&&!c&&h))return null;let y=(0,R.projectWithoutEngine)(a,n,p);if(null==y)return null;if(i[t.originX]=y.x,i[t.originY]=y.y,i[t.originZ]=y.z??0,null!=u){let{translation:e,scale:r,rotation:s}=u,a=l?1:(0,w.KX)(n)/(0,w.KX)(p);i[t.translationX]=e[0]*a,i[t.translationY]=e[2]*a,i[t.translationZ]=-e[1]*a,i[t.scaleX]=r[0],i[t.scaleY]=r[2],i[t.scaleZ]=r[1],i[t.rotationX]=s[0],i[t.rotationY]=s[2],i[t.rotationZ]=-s[1],i[t.rotationDeg]=s[3]}return{attributes:i}}return null==s?{attributes:i}:"mesh"===s.type||"extent"===s.type?null:{geometry:s.toJSON(),attributes:i}}async function E(e,t){let r=await Promise.all((t.addAttachments??[]).map(t=>N(e,t))),s=await Promise.all((t.updateAttachments??[]).map(t=>N(e,t))),i=t.deleteAttachments??[];return r.length||s.length||i.length?{adds:r,updates:s,deletes:[...i]}:null}async function N(e,t){let{feature:r,attachment:s}=t,{globalId:i,name:a,contentType:n,data:o,keywords:u,uploadId:l}=s,p={globalId:i};if(r&&("attributes"in r?p.parentGlobalId=r.attributes?.[e.globalIdField]:r.globalId&&(p.parentGlobalId=r.globalId)),l)p.uploadId=l;else if(o){let e=await(0,f._0)(o);e&&(p.contentType=e.mediaType,p.data=e.data),o instanceof File&&(p.name=o.name)}return a&&(p.name=a),n&&(p.contentType=n),u&&(p.keywords=u),p}function D(e){let t=!0===e.success?null:e.error||{code:void 0,description:"Feature edit failed"};return{objectId:e.objectId,globalId:e.globalId,error:t?new o.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}function Q(e,t){return new b.A({attributes:e.attributes,geometry:(0,O.rS)({...e.geometry,spatialReference:t})})}function V(e,t){return{adds:e?.adds?.map(e=>Q(e,t))||[],updates:e?.updates?.map(e=>({original:Q(e[0],t),current:Q(e[1],t)}))||[],deletes:e?.deletes?.map(e=>Q(e,t))||[],spatialReference:t}}var j=r(64714),J=r(64314),Z=r(60694),G=r(15426),U=r(20557),k=r(99199),B=r(96520),z=r(97552),X=r(79677),L=r(20816);const $=new l.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),W=new l.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let Y=class extends p.x_{constructor(e){super(e),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer","Annotation Layer","Dimension Layer"]),this.refresh=(0,d.sg)(async()=>{await this.load();let e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}let t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(e){let t=this.layer.sourceJSON,r=this._fetchService(t,{...e}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,e)).then(()=>this._ensureLatestMetadata(e));return this.addResolvingPromise(r),Promise.resolve(this)}async reload(e){let t=this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0;await this._fetchService(null,{...e,cacheBust:t})}initialize(){this.addHandles([(0,y.wB)(()=>{let e=this.layer;return e&&"lastEditsEventDate"in e?e.lastEditsEventDate:null},e=>this._handleLastEditsEventChange(e))])}destroy(){this._removeEditInterceptor()}get queryTask(){let{capabilities:e,parsedUrl:t,gdbVersion:r,spatialReference:s,fieldsIndex:i,uniqueIdFields:a}=this.layer,n="infoFor3D"in this.layer?this.layer.infoFor3D:null,o="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,l=(0,u.A)("featurelayer-pbf")&&e?.query.supportsFormatPBF&&null==n,p=l&&e?.query.supportsFormatPBFWithCurves,c=e?.operations?.supportsQueryAttachments??!1,h=e?.query?.relativeTimeBinWindow??0,d=t.path;return new J.A({dynamicDataSource:o,fieldsIndex:i,gdbVersion:r,infoFor3D:n,pbfSupported:l,pbfSupportedWithCurves:p,queryAttachmentsSupported:c,relativeTimeBinWindow:h,sourceSpatialReference:s,uniqueIdFields:a,url:d})}async addAttachment(e,t,r){await this.load();let{layer:s}=this;await(0,G.VA)(s,"editing");let i=e.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+i+"/addAttachment",o=this._getLayerRequestOptions({query:r}),u=this._getFormDataForAttachment(t,o.query);try{return D((await(0,a.A)(n,{body:u})).data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(i,e)}}async updateAttachment(e,t,r,s){await this.load();let{layer:i}=this;await(0,G.VA)(i,"editing");let n=e.attributes[i.objectIdField],o=i.parsedUrl.path+"/"+n+"/updateAttachment",u=this._getLayerRequestOptions({query:{attachmentId:t,...s}}),l=this._getFormDataForAttachment(r,u.query);try{return D((await(0,a.A)(o,{body:l})).data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(n,e)}}async applyEdits(e,t){await this.load();let{layer:r}=this;await(0,G.VA)(r,"editing");let s="infoFor3D"in r?r.infoFor3D:null,i=null!=s,u=i||(t?.globalIdUsed??!1),l=i?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,p=e.addFeatures?.map(e=>P(this.layer,e,s))??[],c=(await Promise.all(p)).filter(n.Ru),h=e.updateFeatures?.map(e=>P(this.layer,e,s))??[],d=(await Promise.all(h)).filter(n.Ru),y=function(e,t,r){if(!t||0===t.length)return[];if(r&&I(t))return t.map(e=>e.globalId);if(q(t))return t.map(e=>e.objectId);let s=r?e.globalIdField:e.objectIdField;return s?t.map(e=>e.getAttribute(s)):[]}(this.layer,e.deleteFeatures,u);(0,B.u)(c,d,r.spatialReference);let f=await E(this.layer,e),m=r.capabilities.editing.supportsAsyncApplyEdits&&i,g=t?.gdbVersion||r.gdbVersion,S={gdbVersion:g,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:t?.returnEditMoment,trueCurveClient:t?.editsRespectTrueCurves,usePreviousEditMoment:t?.usePreviousEditMoment,async:m};await(0,L.ZJ)(this.layer.url,g,!0);let v=(0,L.w5)(this.layer.url,g||null);if(await(0,L.We)(r.url,g,r.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");t?.returnServiceEditsOption?(S.edits=JSON.stringify([{id:r.layerId,adds:c.length?c:null,updates:d.length?d:null,deletes:y.length?y:null,attachments:f,assetMaps:l}]),S.returnServiceEditsOption=$.toJSON(t?.returnServiceEditsOption),S.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(S.adds=c.length?JSON.stringify(c):null,S.updates=d.length?JSON.stringify(d):null,S.deletes=y.length?u?JSON.stringify(y):y.join(","):null,S.attachments=f&&JSON.stringify(f),S.assetMaps=null==l?void 0:JSON.stringify(l));let A=this._getLayerRequestOptions({method:"post",query:S});v&&(A.authMode="immediate",A.query.returnEditMoment=!0,A.query.sessionId=L.TA);let _,x=t?.returnServiceEditsOption?r.url:r.parsedUrl.path;try{_=m?await this._asyncApplyEdits(x+"/applyEdits",A):await(0,a.A)(x+"/applyEdits",A)}catch(e){if(!function(e){let t=e.details.raw,r=+t.code,s=+t.extendedCode;return 500===r&&(-2147217144===s||-2147467261===s)}(e))throw e;A.authMode="immediate",_=m?await this._asyncApplyEdits(x+"/applyEdits",A):await(0,a.A)(x+"/applyEdits",A)}return this._createEditsResult(_)}async deleteAttachments(e,t,r){await this.load();let{layer:s}=this;await(0,G.VA)(s,"editing");let i=e.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+i+"/deleteAttachments";try{return(await(0,a.A)(n,this._getLayerRequestOptions({query:{attachmentIds:t.join(","),...r},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(e){throw this._createAttachmentErrorResult(i,e)}}fetchRecomputedExtents(e={}){let t=e.signal;return this.load({signal:t}).then(async()=>{let t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:i}=await(0,a.A)(`${s}/${r}`,t),{id:n,extent:o,fullExtent:u,timeExtent:l}=i,p=o||u;return{id:n,fullExtent:p&&S.A.fromJSON(p),timeExtent:l&&X.A.fromJSON({start:l[0],end:l[1]})}})}async queryAttachments(e,t={}){await this.load();let r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){await this.load();let r=await this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)});if(e.outStatistics?.length&&r.features.length){let t=new Map;if(r.features.forEach(r=>{let s=r.attributes;e.outStatistics?.forEach(({outStatisticFieldName:e})=>{if(e){let r=e.toLowerCase();r&&r in s&&e!==r&&(s[e]=s[r],delete s[r],t.set(r,e))}})}),null!=r.fields)for(let e of r.fields){let r=t.get(e.name.toLowerCase());null!=r&&(e.name=r)}}return r}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryPivot(e,t){return await this.load(),this.queryTask.executePivotQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryAttributeBins(e,t){return await this.load(),this.queryTask.executeAttributeBinsQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,Z.Wo)(this.layer.url))return"unavailable";let e=(0,f.fj)(this.layer.url,"status"),t=await(0,a.A)(e,{query:{f:"json"}});return W.fromJSON(t.data.status)}async uploadAssets(e,t){let{uploadAssets:s}=await r.e(1384).then(()=>r(31384));return s(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}_handleLastEditsEventChange(e){let t=this.layer;if(null==e||!("capabilities"in t)||!("effectiveCapabilities"in t)||t.capabilities?.operations?.supportsEditing||!t.effectiveCapabilities?.operations?.supportsEditing)return;let r=t.url;null!=r&&("layerId"in t&&(r=(0,f.fj)(r,t.layerId.toString())),this._getOrCreateEditInterceptor(r).before=t=>{let r=t.requestOptions.method??"auto";if("auto"===r||"head"===r){let r=t.requestOptions.query??{};r._ts=e.getTime(),t.requestOptions.query=r}})}_getOrCreateEditInterceptor(e){return this._editInterceptor??(this._editInterceptor={urls:e},i.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,n.TF)(i.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(e,t){let r=(await(0,a.A)(e,t)).data.statusUrl;for(;;){let e=(await(0,a.A)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,a.A)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,d.Pl)(H)}}_createRequestQueryOptions(e){let t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){let r={};(0,u.A)("featurelayer-advanced-symbols")&&(r.returnAdvancedSymbols=!0),t?.cacheBust&&(r._ts=Date.now());let{data:s}=await(0,a.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r,signal:t?.signal}));e=s}this.layer.applyPreferredHost(e),this.sourceJSON=await this._patchServiceJSON(e,t?.signal);let r=e.type;if(!this.supportedSourceTypes.has(r))throw new o.A("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}async _patchServiceJSON(e,t){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){let t=(0,j.F0)(e.geometryType).renderer;(0,h.sM)("drawingInfo.renderer",t,e)}if("esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),null==e.extent)try{let{data:r}=await(0,a.A)(this.layer.url,this._getLayerRequestOptions({signal:t}));r.spatialReference&&(e.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:r.spatialReference})}catch(e){(0,d.QP)(e)}return e}async _ensureLatestMetadata(e){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...e,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(e){let{addAssetFeatures:t}=e;if(!t?.length||await this._areAllAssetsAlreadyMapped(t))return null;let s=e.addFeatures.filter(e=>e.geometry);if(t.length!==s.length+e.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");let i=[],a=new Map;for(let e of t){let{geometry:t}=e,{vertexSpace:s}=t;if((0,_.Hq)(s))i.push(t);else{let s=t.origin,{convertMeshVertexSpace:n}=await Promise.all([r.e(2258),r.e(4548)]).then(()=>r(28846)),o=await n(t,new A.A({origin:[s.x,s.y,s.z??0]}));a.set(o,t),e.geometry=o,i.push(o)}}await this.uploadAssets(i);for(let[e,t]of a)t.addExternalSources(e.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(t),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){let t=[],r=this.layer.globalIdField,s=this.layer.parsedUrl;for(let i of e){let{metadata:e}=i.geometry,a=e.getExternalSourcesOnService(s),n=i.getAttribute(r);if(0===a.length){c.A.getLogger(this).error(`Skipping feature ${n}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}let{source:o}=a.find(x.dK)??a[0];for(let e of o.assets)1===e.parts.length?t.push({globalId:(0,m.yS)(),parentGlobalId:n,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:[]}):c.A.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return t}_createEditsResult(e){let t=e.data,{layerId:r}=this.layer,s=[],i=null;if(Array.isArray(t))for(let e of t)null!=e.editedFeatures&&s.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(i={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else i=t;let a=function(e){let t=e?.assetMaps;if(t){for(let e of t.addResults)e.success||c.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(let e of t.updateResults)e.success||c.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`)}let r=e?.attachments,s={addFeatureResults:e?.addResults?.map(D)??[],updateFeatureResults:e?.updateResults?.map(D)??[],deleteFeatureResults:e?.deleteResults?.map(D)??[],addAttachmentResults:r?.addResults?r.addResults.map(D):[],updateAttachmentResults:r?.updateResults?r.updateResults.map(D):[],deleteAttachmentResults:r?.deleteResults?r.deleteResults.map(D):[]};return e?.editMoment&&(s.editMoment=e.editMoment),s}(i);if(s.length>0){a.editedFeatureResults=[];for(let e of s){let{editedFeatures:t}=e,r=t?.spatialReference?new v.A(t.spatialReference):null;a.editedFeatureResults.push({layerId:e.id,editedFeatures:V(t,r)})}}return a}_createAttachmentErrorResult(e,t){let r=t.details.messages?.[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new o.A("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){let r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(let e in t){let s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){let{layer:t,layer:{parsedUrl:r,gdbVersion:s}}=this;return{...e,query:{gdbVersion:s,layer:"dynamicDataSource"in t&&t.dynamicDataSource?JSON.stringify({source:t.dynamicDataSource}):void 0,...r.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _areAllAssetsAlreadyMapped(e){let{layer:t}=this,{globalIdField:r,parsedUrl:s}=t,i="infoFor3D"in t?t.infoFor3D:null;if(null==i||null==r)return!1;let a=(0,U.JZ)(i);if(null==a)return!1;let o=(0,f.fj)(s.path,`../${a.id}`),u=[];for(let t of e){if(!(t.geometry.metadata.getExternalSourcesOnService(s).length>0))return!1;u.push(t)}let l=u.map(e=>e.getAttribute(r)).filter(n.Ru);if(0===l.length)return!1;let{assetMapFieldRoles:{parentGlobalId:p,assetHash:c}}=i,h=new z.A({where:`${p} IN (${l.map(e=>`'${e}'`)})`,outFields:[c,p],returnGeometry:!1}),{features:d}=await(0,k.s)(o,h);return 0!==d.length&&!u.some(e=>{let t=e.getAttribute(r);if(!t)return!0;let{metadata:i}=e.geometry,a=d.filter(e=>e.getAttribute(p)===t);if(0===a.length)return!0;let n=a.map(e=>e.getAttribute(c));return i.getExternalSourcesOnService(s).flatMap(({source:e})=>e.assets.flatMap(e=>e.parts.map(e=>e.partHash))).some(e=>n.every(t=>e!==t))})}};(0,s.Cg)([(0,g.MZ)()],Y.prototype,"type",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"layer",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"supportedSourceTypes",void 0),(0,s.Cg)([(0,g.MZ)({readOnly:!0})],Y.prototype,"queryTask",null),Y=(0,s.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],Y);const H=1e3},64314(e,t,r){r.d(t,{A:()=>w});var s=r(32198),i=r(69622),a=r(49186),n=r(44208),o=r(17676),u=r(84952),l=r(91429),p=r(21325),c=r(20557),h=r(2272),d=r(65615),y=r(20615),f=r(74910),m=r(78286),g=r(99199),S=r(62815),v=r(63746);class A{constructor(e){this._options=e,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=A._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(e){"string"==typeof e&&(this.featureSet.objectIdFieldName=e)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);let{spatialReference:e,features:t}=this.featureSet;if(e)for(let{geometry:r}of t)r&&(r.spatialReference=e)}feature(){this._attributesClass??=(0,v._)(this.featureSet.fields?.map(e=>e.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([e,t]){this.featureSet.features.at(-1).centroid={x:e,y:t}}geometry(e,t,r){this._previousX=this._previousY=0,this._lengths=r;let s,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,this._i=0,this._vertex=[0,0],i&&this._vertex.push(0),a&&this._vertex.push(0),this._finishVertex=A._finishVertexNonPoint,t){case"esriGeometryPoint":this._point={x:0,y:0},s=this._point,this._finishVertex=i?a?A._finishVertexPointXYZM:A._finishVertexPointXYZ:a?A._finishVertexPointXYM:A._finishVertexPointXY;break;case"esriGeometryMultipoint":s={points:[],hasZ:i,hasM:a},this._part=s.points,this._parts=[];break;case"esriGeometryPolyline":s={paths:[],hasZ:i,hasM:a},this._parts=s.paths,this._part=[];break;case"esriGeometryPolygon":s={rings:[],hasZ:i,hasM:a},this._parts=s.rings,this._part=[]}1===e?(this.featureSet.queryGeometry=s,this.featureSet.queryGeometryType=t,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=s}coord(e){let t=this._vertex;t[this._i++]=e,!(this._i<t.length)&&(this._i=0,this._transformInPlace&&(t[0]+=this._previousX,t[1]+=this._previousY,[this._previousX,this._previousY]=t,this._transformInPlace(t)),this._finishVertex(this))}curvedGeometry(e,t,r,s){let i,{hasZ:a,hasM:n}=this.featureSet;switch(a??=!1,n??=!1,e){case"esriGeometryPoint":case"esriGeometryMultipoint":throw Error(`Curved ${e} does not make sense`);case"esriGeometryPolyline":i={paths:[],curvePaths:[],hasZ:a,hasM:n},this._parts=i.curvePaths,this._part=[];break;case"esriGeometryPolygon":i={rings:[],curveRings:[],hasZ:a,hasM:n},this._parts=i.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=i}startCurvedPart(e){this._part.push(this._transform(e))}finishCurvedPart(e){this._parts.push(this._part),this._part=[]}lineSegment(e,t){this._part.push(this._transform(t))}bezierSegment(e,t,r,s){this._part.push({b:[this._transform(t),this._transformXY(r),this._transformXY(s)]})}circularArcSegment(e,t,r){this._part.push({c:[this._transform(t),this._transformXY(r)]})}ellipticArcSegment(e,t,r,s,i,a,n,o){this._part.push({a:[this._transform(t),this._transformXY(r),s,i,a,n,o]})}static _finishVertexPointXY({_point:e,_vertex:t}){[e.x,e.y]=t}static _finishVertexPointXYZ({_point:e,_vertex:t}){[e.x,e.y,e.z]=t}static _finishVertexPointXYM({_point:e,_vertex:t}){[e.x,e.y,e.m]=t}static _finishVertexPointXYZM({_point:e,_vertex:t}){[e.x,e.y,e.z,e.m]=t}static _finishVertexNonPoint(e){let{_part:t,_parts:r,_lengths:s,_vertex:i}=e;t.push([...i]),!(t.length<s[r.length])&&(e._previousX=e._previousY=0,e._part=[],r.push(t))}_setVertexTransformer(){let{sourceSpatialReference:e}=this._options,{spatialReference:t,hasZ:r,transform:s}=this.featureSet,i=r?(0,S.d)(e,t):1;this._transformInPlace??=(0,v.M)(this.featureSet,i),this._transformInPlaceXY??=(0,v.M)({transform:s})}_transform(e){let t=[...e];return this._transformInPlace?.(t),t}_transformXY(e){let t=[e[0],e[1]];return this._transformInPlaceXY?.(t),t}}var _=r(80893),x=r(22671),b=r(97552);let w=class extends i.A{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(e,t){let r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){let r,s=this._normalizeQuery(e),i=null!=e.outStatistics?.[0],a=(0,n.A)("featurelayer-pbf-statistics");if(this.pbfSupported&&(!i||a)&&(!e.returnTrueCurves||this.pbfSupportedWithCurves))try{r=await async function(e,t,r,s){let i=(0,h.Dl)(e),a={...r},n=b.A.from(t),o=!n.quantizationParameters;return await(0,_.IJ)(i,n,new A({sourceSpatialReference:n.sourceSpatialReference,applyTransform:o}),a,s)}(this.url,s,t,{uniqueIdFields:this.uniqueIdFields})}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return r??=await(0,g.e)(this.url,s,t,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(r.fields),r}async featureSetFromJSON(e,t,s){if(!this._queryGet3DObjectFormat(e)||null==this.infoFor3D||!t.features)return x.A.fromJSON(t);let{meshFeatureSetFromJSON:i}=await(0,o.qr)(Promise.all([r.e(2258),r.e(118),r.e(8366)]).then(()=>r(40050)),s);return i(e,this.infoFor3D,t)}executeForCount(e,t){return(0,y.I)(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(e,t){return(0,f.L)(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,m.V)(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(e,t){let[{default:s},{executeRelationshipQuery:i}]=await(0,o.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),a=s.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(a=a.clone(),a.gdbVersion=a.gdbVersion||this.gdbVersion,a.dynamicDataSource=a.dynamicDataSource||this.dynamicDataSource),i(this.url,a,t)}async executeRelationshipQueryForCount(e,t){let[{default:s},{executeRelationshipQueryForCount:i}]=await(0,o.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),a=s.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(a=a.clone(),a.gdbVersion=a.gdbVersion||this.gdbVersion,a.dynamicDataSource=a.dynamicDataSource||this.dynamicDataSource),i(this.url,a,t)}async executeAttachmentQuery(e,t){let{executeAttachmentQuery:s,fetchAttachments:i,processAttachmentQueryResult:a}=await(0,o.qr)(r.e(9239).then(()=>r(9239)),t),n=(0,h.Dl)(this.url);return a(n,await(this.queryAttachmentsSupported?s(n,e,t):i(n,e,t)))}async executeAttributeBinsQuery(e,t){let{executeAttributeBinsQuery:s}=await(0,o.qr)(r.e(3103).then(()=>r(33103)),t);return s(this.parsedUrl,e,t)}async executePivotQuery(e,t){let{executePivotQuery:s}=await(0,o.qr)(r.e(566).then(()=>r(80566)),t);return s(this.parsedUrl,e,t)}async executeTopFeaturesQuery(e,t){let{executeTopFeaturesQuery:s}=await(0,o.qr)(r.e(1273).then(()=>r(11273)),t);return s(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){let{executeForTopIds:s}=await(0,o.qr)(r.e(1277).then(()=>r(21277)),t);return s(this.parsedUrl,e,t)}async executeForTopExtents(e,t){let{executeForTopExtents:s}=await(0,o.qr)(r.e(8018).then(()=>r(8018)),t);return s(this.parsedUrl,e,t)}async executeForTopCount(e,t){let{executeForTopCount:s}=await(0,o.qr)(r.e(980).then(()=>r(10980)),t);return s(this.parsedUrl,e,t)}_normalizeQuery(e){let t=b.A.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?d.A.from(e.dynamicDataSource):this.dynamicDataSource);let{infoFor3D:r}=this,s=this._queryGet3DObjectFormat(e);if(null!=r&&s){if(t=t===e?t.clone():t,t.formatOf3DObjects=s,t.outSpatialReference&&!(0,p.aI)(t.outSpatialReference,this.sourceSpatialReference))throw new a.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,t.outFields??(t.outFields=[]);let{originX:s,originY:i,originZ:a,translationX:n,translationY:o,translationZ:u,scaleX:l,scaleY:p,scaleZ:c,rotationX:h,rotationY:d,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(s,i,a,n,o,u,l,p,c,h,d,y,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(let t of e){let e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryGet3DObjectFormat({returnGeometry:e,multipatchOption:t,outStatistics:r}){return!0!==e||"xyFootprint"===t||r?null:(0,c.Hz)(this.infoFor3D)}};(0,s.Cg)([(0,l.MZ)({type:d.A})],w.prototype,"dynamicDataSource",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"gdbVersion",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"infoFor3D",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,s.Cg)([(0,l.MZ)()],w.prototype,"pbfSupported",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"pbfSupportedWithCurves",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"queryAttachmentsSupported",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"relativeTimeBinWindow",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"sourceSpatialReference",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"uniqueIdFields",void 0),(0,s.Cg)([(0,l.MZ)({type:String})],w.prototype,"url",void 0),w=(0,s.Cg)([(0,l.$K)("esri.layers.graphics.sources.support.QueryTask")],w)},64714(e,t,r){r.d(t,{F0:()=>o,Vx:()=>p,e2:()=>h,f:()=>f});var s=r(44208),i=r(4718),a=r(99352),n=r(93470);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?n.Cb:"esriGeometryPolyline"===e?n.yM:n.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function p(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${c(t)} = null;`);for(let t in e)r+=`this${c(t)} = ${JSON.stringify(e[t])};`;let s=Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch{return()=>t?{[t]:null,...e}:{...e}}}function c(e){return u.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function h(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}const d={...a.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},y={...a.P,supportedStatistics:{...a.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function f(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?d:a.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?y:a.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},20615(e,t,r){r.d(t,{I:()=>n});var s=r(2272),i=r(80893),a=r(97552);function n(e,t,r,n){return(0,i.gW)((0,s.Dl)(e),a.A.from(t),r,n)}},74910(e,t,r){r.d(t,{L:()=>o});var s=r(5443),i=r(2272),a=r(80893),n=r(97552);async function o(e,t,r){let o=(0,i.Dl)(e),u=await(0,a.Jf)(o,n.A.from(t),{...r}),l=u.extent;return!l||isNaN(l.xmin)||isNaN(l.ymin)||isNaN(l.xmax)||isNaN(l.ymax)?{count:u.count,extent:null}:{count:u.count,extent:s.A.fromJSON(l)}}},78286(e,t,r){r.d(t,{V:()=>n});var s=r(2272),i=r(80893),a=r(97552);async function n(e,t,r,n){let o=(0,s.Dl)(e),u=await(0,i.Pk)(o,a.A.from(t),r,n);return u.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(u.uniqueIds)??[]}},99199(e,t,r){r.d(t,{e:()=>u,s:()=>o});var s=r(2272),i=r(80893),a=r(22671),n=r(97552);async function o(e,t,r,s){let i=await u(e,t,r,s);return a.A.fromJSON(i)}function u(e,t,r,a){let o=(0,s.Dl)(e),u={...r},l=n.A.from(t);return(0,i.eW)(o,l,l.sourceSpatialReference,u,a)}},63746(e,t,r){function s(e){return class{constructor(){for(let t of e)this[t]=null}}}function i(e,t=1){let{transform:r,hasZ:s,hasM:i}=e;if(null==r)return s&&1!==t?e=>{e[2]*=t}:null;let[a,n]=function(e,t,r,s){let{scale:i,translate:a,originPosition:n}=e;return"upperLeft"===n&&(i=i.map((e,t)=>1===t?-e:e)),t&&(i=i.map((e,t)=>2===t?e*s:e),a=a.map((e,t)=>2===t?e*s:e)),!t&&r&&(i=i.filter((e,t)=>2!==t),a=a.filter((e,t)=>2!==t)),[i,a]}(r,s,i,t),o=e.hasZ?3:2;return e=>{for(let t=0;t<e.length&&(t!==o||0!==e[t]);++t)e[t]=e[t]*a[t]+n[t]}}r.d(t,{M:()=>i,_:()=>s})},2272(e,t,r){r.d(t,{Dl:()=>l,gf:()=>c,jV:()=>u,lF:()=>p});var s=r(92602),i=r(70333),a=r(4718),n=r(84952),o=r(926);function u(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function l(e){return"string"==typeof e?(0,n.An)(e):(0,a.o8)(e)}function p(e,t,r){let s={};for(let i in e){if("declaredClass"===i)continue;let a=e[i];if(null!=a&&"function"!=typeof a)if(Array.isArray(a))s[i]=a.map(e=>p(e));else if("object"==typeof a)if(a.toJSON){let e=a.toJSON(r?.[i]);s[i]=t?e:JSON.stringify(e)}else s[i]=t?a:JSON.stringify(a);else s[i]=a}return s}async function c(e,t,a){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t)||(!i.id&&s.A.request.useIdentity&&await Promise.all([r.e(6361),r.e(7644),r.e(7715)]).then(()=>r(50148)),(await i.id.getCredential(e,a))?.token)}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7013],{69052(e,t,r){r.d(t,{hr:()=>i});var s=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return a(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,s.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+n(this.range,e-t,r)}minimalMonotonic(e,t,r){return a(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,s=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(s)?r:s}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function a(e,t,r,s,i=0,a=!1){return(s-=i)<t?s+=n(e,t-s):s>r&&(s-=n(e,s-r)),a&&s===r&&(s=t),s+i}function n(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const o=new i(0,2*Math.PI),u=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,u,"uC",0,o])},18370(e,t,r){r.d(t,{z:()=>i});class s{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function i(e){return new s(e)}},82534(e,t,r){function s(){return[0,0,0,1]}function i(e){return[e[0],e[1],e[2],e[3]]}r.d(t,{o8:()=>i,vt:()=>s});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:i,create:s,fromValues:function(e,t,r,s){return[e,t,r,s]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["zK",0,a])},67026(e,t,r){r.d(t,{A6:()=>f,Xd:()=>p,Xr:()=>d,lw:()=>c,x8:()=>l});var s=r(29242),i=r(82534),a=r(51850),n=r(34304),o=r(35522),u=r(78955);function l(e,t,r){r*=.5;let s=Math.sin(r);return e[0]=s*t[0],e[1]=s*t[1],e[2]=s*t[2],e[3]=Math.cos(r),e}function p(e,t){let r=2*Math.acos(t[3]),s=Math.sin(r/2);return s>(0,n.FD)()?(e[0]=t[0]/s,e[1]=t[1]/s,e[2]=t[2]/s):(e[0]=1,e[1]=0,e[2]=0),r}function c(e,t,r){let s=t[0],i=t[1],a=t[2],n=t[3],o=r[0],u=r[1],l=r[2],p=r[3];return e[0]=s*p+n*o+i*l-a*u,e[1]=i*p+n*u+a*o-s*l,e[2]=a*p+n*l+s*u-i*o,e[3]=n*p-s*o-i*u-a*l,e}function h(e,t,r,s){let i,a,o,u,l,p=t[0],c=t[1],h=t[2],d=t[3],y=r[0],f=r[1],m=r[2],g=r[3];return a=p*y+c*f+h*m+d*g,a<0&&(a=-a,y=-y,f=-f,m=-m,g=-g),1-a>(0,n.FD)()?(i=Math.acos(a),o=Math.sin(i),u=Math.sin((1-s)*i)/o,l=Math.sin(s*i)/o):(u=1-s,l=s),e[0]=u*p+l*y,e[1]=u*c+l*f,e[2]=u*h+l*m,e[3]=u*d+l*g,e}function d(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e}function y(e,t){let r,s=t[0]+t[4]+t[8];if(s>0)r=Math.sqrt(s+1),e[3]=.5*r,r=.5/r,e[0]=(t[5]-t[7])*r,e[1]=(t[6]-t[2])*r,e[2]=(t[1]-t[3])*r;else{let s=0;t[4]>t[0]&&(s=1),t[8]>t[3*s+s]&&(s=2);let i=(s+1)%3,a=(s+2)%3;r=Math.sqrt(t[3*s+s]-t[3*i+i]-t[3*a+a]+1),e[s]=.5*r,r=.5/r,e[3]=(t[3*i+a]-t[3*a+i])*r,e[i]=(t[3*i+s]+t[3*s+i])*r,e[a]=(t[3*a+s]+t[3*s+a])*r}return e}function f(e,t,r,s){let i=.5*Math.PI/180;t*=i,r*=i,s*=i;let a=Math.sin(t),n=Math.cos(t),o=Math.sin(r),u=Math.cos(r),l=Math.sin(s),p=Math.cos(s);return e[0]=a*u*p-n*o*l,e[1]=n*o*p+a*u*l,e[2]=n*u*l-a*o*p,e[3]=n*u*p+a*o*l,e}const m=u.C,g=u.hZ,S=u.WQ,v=c,A=u.hs,_=u.Om,x=u.Cc,b=u.Bw,w=b,M=u.m3,q=M,F=u.S8,I=u.t2,R=u.aI,O=(0,a.vt)(),C=(0,a.fA)(1,0,0),T=(0,a.fA)(0,1,0),P=(0,i.vt)(),E=(0,i.vt)(),N=(0,s.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:S,calculateW:function(e,t){let r=t[0],s=t[1],i=t[2];return e[0]=r,e[1]=s,e[2]=i,e[3]=Math.sqrt(Math.abs(1-r*r-s*s-i*i)),e},conjugate:d,copy:m,dot:_,equals:R,exactEquals:I,fromEuler:f,fromMat3:y,getAxisAngle:p,identity:function(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e},invert:function(e,t){let r=t[0],s=t[1],i=t[2],a=t[3],n=r*r+s*s+i*i+a*a,o=n?1/n:0;return e[0]=-r*o,e[1]=-s*o,e[2]=-i*o,e[3]=a*o,e},len:w,length:b,lerp:x,mul:v,multiply:c,normalize:F,random:function(e){let t=n.Ov,r=t(),s=t(),i=t(),a=Math.sqrt(1-r),o=Math.sqrt(r);return e[0]=a*Math.sin(2*Math.PI*s),e[1]=a*Math.cos(2*Math.PI*s),e[2]=o*Math.sin(2*Math.PI*i),e[3]=o*Math.cos(2*Math.PI*i),e},rotateX:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u+n*o,e[1]=i*u+a*o,e[2]=a*u-i*o,e[3]=n*u-s*o,e},rotateY:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u-a*o,e[1]=i*u+n*o,e[2]=a*u+s*o,e[3]=n*u-i*o,e},rotateZ:function(e,t,r){r*=.5;let s=t[0],i=t[1],a=t[2],n=t[3],o=Math.sin(r),u=Math.cos(r);return e[0]=s*u+i*o,e[1]=i*u-s*o,e[2]=a*u+n*o,e[3]=n*u-a*o,e},rotationTo:function(e,t,r){let s=(0,o.Om)(t,r);return s<-.999999?((0,o.$A)(O,C,t),(0,o.Il)(O)<1e-6&&(0,o.$A)(O,T,t),(0,o.S8)(O,O),l(e,O,Math.PI),e):s>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):((0,o.$A)(O,t,r),e[0]=O[0],e[1]=O[1],e[2]=O[2],e[3]=1+s,F(e,e))},scale:A,set:g,setAxes:function(e,t,r,s){let i=N;return i[0]=r[0],i[3]=r[1],i[6]=r[2],i[1]=s[0],i[4]=s[1],i[7]=s[2],i[2]=-t[0],i[5]=-t[1],i[8]=-t[2],F(e,y(e,i))},setAxisAngle:l,slerp:h,sqlerp:function(e,t,r,s,i,a){return h(P,t,i,a),h(E,r,s,a),h(e,P,E,2*a*(1-a)),e},sqrLen:q,squaredLength:M,str:function(e){return"quat("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(t,["hZ",0,g,"t2",0,I])},95696(e,t,r){r.d(t,{A:()=>l});var s,i=r(32198),a=r(69540),n=r(25482),o=r(91429),u=r(93223);let l=class extends((0,a.OU)(n.o)){static{s=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new s}};(0,i.Cg)([(0,u.e)({georeferenced:"georeferenced"},{readOnly:!0})],l.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],l.prototype,"origin",void 0),l=s=(0,i.Cg)([(0,o.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],l)},18251(e,t,r){r.d(t,{A:()=>l});var s=r(32198),i=r(69540),a=r(25482),n=r(91429),o=r(51850),u=r(93223);let l=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.type="local",this.origin=(0,o.vt)()}};(0,s.Cg)([(0,u.e)({local:"local"},{readOnly:!0})],l.prototype,"type",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"origin",void 0),l=(0,s.Cg)([(0,n.$K)("esri.geometry.support.MeshLocalVertexSpace")],l)},73836(e,t,r){r.d(t,{A:()=>d});var s=r(32198),i=r(69540),a=r(25482),n=r(91429),o=r(58083),u=r(9093),l=r(67026),p=r(82534),c=r(51850),h=r(24770);let d=class extends((0,i.OU)(a.o)){constructor(e){super(e),this.translation=(0,c.vt)(),this.rotationAxis=(0,c.ci)(h.up),this.rotationAngle=0,this.scale=(0,c.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(e){this.rotationAxis=(0,c.o8)((0,h.yo)(e)),this.rotationAngle=(0,h.g7)(e)}get localMatrix(){let e=(0,u.vt)();return(0,l.x8)(y,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,o.o1)(e,y,this.translation,this.scale),e}get localMatrixInverse(){return(0,o.B8)((0,u.vt)(),this.localMatrix)}equals(e){return this===e||null!=e&&(0,o.t2)(this.localMatrix,e.localMatrix)}};(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,s.Cg)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,s.Cg)([(0,n.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,s.Cg)([(0,n.MZ)()],d.prototype,"rotation",null),(0,s.Cg)([(0,n.MZ)()],d.prototype,"localMatrix",null),(0,s.Cg)([(0,n.MZ)()],d.prototype,"localMatrixInverse",null),d=(0,s.Cg)([(0,n.$K)("esri.geometry.support.MeshTransform")],d);const y=(0,p.vt)()},24770(e,t,r){r.d(t,{$I:()=>m,AU:()=>d,g7:()=>f,i4:()=>p,ui:()=>c,vt:()=>l,yo:()=>y});var s=r(34727),i=r(58083),a=r(67026),n=r(82534),o=r(35522),u=r(51850);function l(e=S){return[e[0],e[1],e[2],e[3]]}function p(e,t,r=l()){return(0,o.C)(r,e),r[3]=t,r}function c(e,t=l()){let r=(0,i.l)(v,e);return g(t,(0,s.KJ)((0,a.Xd)(t,r))),t}function h(e,t,r=l()){return(0,a.x8)(v,e,m(e)),(0,a.x8)(A,t,m(t)),(0,a.lw)(v,A,v),g(r,(0,s.KJ)((0,a.Xd)(r,v)))}function d(e,t,r,s=l()){return p(u.Cw,e,_),p(u.JP,t,x),p(u.Cb,r,b),h(_,x,_),h(_,b,s),s}function y(e){return e}function f(e){return e[3]}function m(e){return(0,s.kU)(e[3])}function g(e,t){return e[3]=t,e}const S=[0,0,1,0],v=(0,n.vt)(),A=(0,n.vt)(),_=(l(),l()),x=l(),b=l();r.d(t,["up",0,S])},63579(e,t,r){r.d(t,{Bq:()=>u,Qp:()=>o,WN:()=>m,dK:()=>g,eN:()=>d,fH:()=>f,in:()=>y,yr:()=>l});var s=r(56507),i=r(4576),a=r(17676),n=r(20557);class o{constructor(e,t,r){this.assetName=e,this.assetMimeType=t,this.parts=r}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,i.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(let t of this.parts)e+=t.partHash;return e}async toBlob(e){let{parts:t}=this;if(1===t.length)return t[0].toBlob(e);let r=await Promise.all(t.map(t=>t.toBlob(e)));return(0,a.Te)(e),new Blob(r)}}class u{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){let{data:t}=await(0,s.A)(this.partUrl,{responseType:"blob"});return(0,a.Te)(e),t}}function l(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(h):h(e.files);case"service":return e.assets.some(h);case"loadable":return!0;default:return!1}}(e?.source)}const p=/^(model\/gltf\+json)|(model\/gltf-binary)$/,c=/\.(gltf|glb)/i;function h(e){if(e instanceof File){let{type:t,name:r}=e;return p.test(t)||c.test(r)}return p.test(e.assetMimeType)||c.test(e.assetName)}function d(e,t){if(!e)return!1;let{source:r}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(r,t)}function y(e,t){if(e===t)return!0;let{source:r}=e,{source:s}=t;if(r===s)return!0;if("service"===r.type&&"service"===s.type){if(r.assets.length!==s.assets.length)return!1;let e=(e,t)=>e.assetName<t.assetName?-1:+(e.assetName>t.assetName),t=[...r.assets].sort(e),i=[...s.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(i[e]))return!1;return!0}return!1}function f(e,t){return e instanceof File?(0,n.rq)(e,t):(0,n.z$)(e.assetMimeType,e.assetName,t)}function m(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function g(e){return!!e.original}},27615(e,t,r){r.d(t,{CK:()=>u,Hq:()=>o,MW:()=>l,TE:()=>p,yJ:()=>c});var s=r(35522),i=r(86738),a=r(95696),n=r(18251);function o(e){return null!=e.origin}function u(e){return o(e.vertexSpace)}function l(e,t){if(!o(e))return null;let[r,s,a]=e.origin;return new i.A({x:r,y:s,z:a,spatialReference:t})}function p(e,t){let{x:r,y:s,z:i,spatialReference:o}=e,u=[r,s,i??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(o))?new n.A({origin:u}):new a.A({origin:u})}function c(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,s.t2)(e.origin,t.origin))}},52039(e,t,r){r.d(t,{O7:()=>h,el:()=>l});var s=r(69052),i=(r(49186),r(18370)),a=r(17676),n=(r(5443),r(39829)),o=(r(82799),r(16930)),u=(r(80754),r(21325));async function l(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let s=null;for(let t of e)s??=t?.spatialReference;if(!s)return e;let i=(0,u.Vp)(s);if(!i)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(i);return["xmin"in t?t:new n.A(t)]}let[o,l]=i.valid,h=!1;for(let t of e){if(!t)continue;if("point"===t.type){h||=t.x>=l,h||=t.x<=o;continue}let{extent:e}=t;if(null==e){h=!0;break}h||=e.xmin>=l,h||=e.xmin<=o,h||=e.xmax>=l,h||=e.xmax<=o}if(!h)return e;let[{foldInto360Range:d},y]=await(0,a.qr)(Promise.all([p.getImportPromise(),c.getImportPromise()]),r),f=y.fromSpatialReference(s);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=y.fromGeometry(e),r=y.toGeometry(d(t,f),s);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const p=(0,i.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),c=(0,i.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function h(e,t,r){let s=(0,u.Vp)(r);if(null==s)return e;let[i,a]=s.valid,n=2*a,o=0,l=0;t>a?o=Math.ceil(Math.abs(t-a)/n):t<i&&(o=-Math.ceil(Math.abs(t-i)/n)),e>a?l=Math.ceil(Math.abs(e-a)/n):e<i&&(l=-Math.ceil(Math.abs(e-i)/n));let p=e+(o-l)*n,c=p-t;return c>a?p-=n:c<i&&(p+=n),p}function d(e){let t=(0,u.Vp)(e);if(null==t)return null;let[r,i]=t.valid;return new s.hr(r,i)}const y=d(o.A.WGS84);d(o.A.WebMercator),r.d(t,["Y_",0,y])},80754(e,t,r){r.d(t,{kS:()=>l,kd:()=>u});var s=r(82799),i=r(16930),a=r(60408),n=r(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function u(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){if((0,n.Ed)(e))for(let r of function(e){return(0,a.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r){if((0,n.aO)(e)){let[r,s]=e.c;r[0]+=t,s[0]+=t;continue}if((0,n.FG)(e)){let[r,s]=e.a;r[0]+=t,s[0]+=t;continue}if((0,n.n1)(e)){let[r,s,i]=e.b;r[0]+=t,s[0]+=t,i[0]+=t;continue}e[0]+=t}for(let r of function(e){return(0,a.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}r.d(t,["j7",0,o])},99352(e,t,r){r.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},65515(e,t,r){r.r(t),r.d(t,{default:()=>Y});var s=r(32198),i=r(92602),a=r(56507),n=r(4576),o=r(49186),u=r(44208),l=r(66552),p=r(92474),c=r(53966),h=r(93637),d=r(17676),y=r(36708),f=r(84952),m=r(13069),g=r(91429),S=r(5443),v=r(16930),A=r(95696),_=r(27615),x=r(63579),b=r(52106),w=r(86211);function M(e){return"object"==typeof e&&!!e&&"objectId"in e&&!!e.objectId}function q(e){return e.every(M)}function F(e){return"object"==typeof e&&!!e&&"globalId"in e&&!!e.globalId}function I(e){return e.every(F)}var R=r(99917),O=r(65864),C=r(73836),T=r(21325);async function P(e,t,r){let{geometry:s}=t,i={...t.attributes};if(null!=r&&"mesh"===s?.type){let{transformFieldRoles:t}=r,{origin:a,spatialReference:n,vertexSpace:o}=s,u=s.transform??new C.A,l="local"===o.type,p=e.spatialReference,c=p.isGeographic,h=(0,T.aI)(p,n),d=(0,R.isEqualBaseGCS)(n,p)&&(0,R.canProjectWithoutEngine)(n,p);if(!(l&&c&&d||!l&&!c&&h))return null;let y=(0,R.projectWithoutEngine)(a,n,p);if(null==y)return null;if(i[t.originX]=y.x,i[t.originY]=y.y,i[t.originZ]=y.z??0,null!=u){let{translation:e,scale:r,rotation:s}=u,a=l?1:(0,w.KX)(n)/(0,w.KX)(p);i[t.translationX]=e[0]*a,i[t.translationY]=e[2]*a,i[t.translationZ]=-e[1]*a,i[t.scaleX]=r[0],i[t.scaleY]=r[2],i[t.scaleZ]=r[1],i[t.rotationX]=s[0],i[t.rotationY]=s[2],i[t.rotationZ]=-s[1],i[t.rotationDeg]=s[3]}return{attributes:i}}return null==s?{attributes:i}:"mesh"===s.type||"extent"===s.type?null:{geometry:s.toJSON(),attributes:i}}async function E(e,t){let r=await Promise.all((t.addAttachments??[]).map(t=>N(e,t))),s=await Promise.all((t.updateAttachments??[]).map(t=>N(e,t))),i=t.deleteAttachments??[];return r.length||s.length||i.length?{adds:r,updates:s,deletes:[...i]}:null}async function N(e,t){let{feature:r,attachment:s}=t,{globalId:i,name:a,contentType:n,data:o,keywords:u,uploadId:l}=s,p={globalId:i};if(r&&("attributes"in r?p.parentGlobalId=r.attributes?.[e.globalIdField]:r.globalId&&(p.parentGlobalId=r.globalId)),l)p.uploadId=l;else if(o){let e=await(0,f._0)(o);e&&(p.contentType=e.mediaType,p.data=e.data),o instanceof File&&(p.name=o.name)}return a&&(p.name=a),n&&(p.contentType=n),u&&(p.keywords=u),p}function D(e){let t=!0===e.success?null:e.error||{code:void 0,description:"Feature edit failed"};return{objectId:e.objectId,globalId:e.globalId,error:t?new o.A("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}function Q(e,t){return new b.A({attributes:e.attributes,geometry:(0,O.rS)({...e.geometry,spatialReference:t})})}function V(e,t){return{adds:e?.adds?.map(e=>Q(e,t))||[],updates:e?.updates?.map(e=>({original:Q(e[0],t),current:Q(e[1],t)}))||[],deletes:e?.deletes?.map(e=>Q(e,t))||[],spatialReference:t}}var j=r(64714),J=r(64314),Z=r(60694),G=r(15426),U=r(20557),k=r(99199),B=r(96520),z=r(97552),X=r(79677),L=r(20816);const $=new l.J({originalAndCurrentFeatures:"original-and-current-features",none:"none"}),W=new l.J({Started:"published",Publishing:"publishing",Stopped:"unavailable"});let Y=class extends p.x_{constructor(e){super(e),this.type="feature-layer",this.supportedSourceTypes=new Set(["Feature Layer","Oriented Imagery Layer","Table","Catalog Layer","Annotation Layer","Dimension Layer"]),this.refresh=(0,d.sg)(async()=>{await this.load();let e=this.sourceJSON.editingInfo?.lastEditDate;if(null==e)return{dataChanged:!0,updates:{}};try{await this._fetchService(null)}catch{return{dataChanged:!0,updates:{}}}let t=e!==this.sourceJSON.editingInfo?.lastEditDate;return{dataChanged:t,updates:t?{editingInfo:this.sourceJSON.editingInfo,extent:this.sourceJSON.extent}:null}}),this._ongoingAssetUploads=new Map}load(e){let t=this.layer.sourceJSON,r=this._fetchService(t,{...e}).then(()=>this.layer.setUserPrivileges(this.sourceJSON.serviceItemId,e)).then(()=>this._ensureLatestMetadata(e));return this.addResolvingPromise(r),Promise.resolve(this)}async reload(e){let t=this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0;await this._fetchService(null,{...e,cacheBust:t})}initialize(){this.addHandles([(0,y.wB)(()=>{let e=this.layer;return e&&"lastEditsEventDate"in e?e.lastEditsEventDate:null},e=>this._handleLastEditsEventChange(e))])}destroy(){this._removeEditInterceptor()}get queryTask(){let{capabilities:e,parsedUrl:t,gdbVersion:r,spatialReference:s,fieldsIndex:i,uniqueIdFields:a}=this.layer,n="infoFor3D"in this.layer?this.layer.infoFor3D:null,o="dynamicDataSource"in this.layer?this.layer.dynamicDataSource:null,l=(0,u.A)("featurelayer-pbf")&&e?.query.supportsFormatPBF&&null==n,p=l&&e?.query.supportsFormatPBFWithCurves,c=e?.operations?.supportsQueryAttachments??!1,h=e?.query?.relativeTimeBinWindow??0,d=t.path;return new J.A({dynamicDataSource:o,fieldsIndex:i,gdbVersion:r,infoFor3D:n,pbfSupported:l,pbfSupportedWithCurves:p,queryAttachmentsSupported:c,relativeTimeBinWindow:h,sourceSpatialReference:s,uniqueIdFields:a,url:d})}async addAttachment(e,t,r){await this.load();let{layer:s}=this;await(0,G.VA)(s,"editing");let i=e.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+i+"/addAttachment",o=this._getLayerRequestOptions({query:r}),u=this._getFormDataForAttachment(t,o.query);try{return D((await(0,a.A)(n,{body:u})).data.addAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(i,e)}}async updateAttachment(e,t,r,s){await this.load();let{layer:i}=this;await(0,G.VA)(i,"editing");let n=e.attributes[i.objectIdField],o=i.parsedUrl.path+"/"+n+"/updateAttachment",u=this._getLayerRequestOptions({query:{attachmentId:t,...s}}),l=this._getFormDataForAttachment(r,u.query);try{return D((await(0,a.A)(o,{body:l})).data.updateAttachmentResult)}catch(e){throw this._createAttachmentErrorResult(n,e)}}async applyEdits(e,t){await this.load();let{layer:r}=this;await(0,G.VA)(r,"editing");let s="infoFor3D"in r?r.infoFor3D:null,i=null!=s,u=i||(t?.globalIdUsed??!1),l=i?await this._uploadMeshesAndGetAssetMapEditsJSON(e):null,p=e.addFeatures?.map(e=>P(this.layer,e,s))??[],c=(await Promise.all(p)).filter(n.Ru),h=e.updateFeatures?.map(e=>P(this.layer,e,s))??[],d=(await Promise.all(h)).filter(n.Ru),y=function(e,t,r){if(!t||0===t.length)return[];if(r&&I(t))return t.map(e=>e.globalId);if(q(t))return t.map(e=>e.objectId);let s=r?e.globalIdField:e.objectIdField;return s?t.map(e=>e.getAttribute(s)):[]}(this.layer,e.deleteFeatures,u);(0,B.u)(c,d,r.spatialReference);let f=await E(this.layer,e),m=r.capabilities.editing.supportsAsyncApplyEdits&&i,g=t?.gdbVersion||r.gdbVersion,S={gdbVersion:g,rollbackOnFailure:t?.rollbackOnFailureEnabled,useGlobalIds:u,returnEditMoment:t?.returnEditMoment,trueCurveClient:t?.editsRespectTrueCurves,usePreviousEditMoment:t?.usePreviousEditMoment,async:m};await(0,L.ZJ)(this.layer.url,g,!0);let v=(0,L.w5)(this.layer.url,g||null);if(await(0,L.We)(r.url,g,r.historicMoment))throw new o.A("feature-layer-source:historic-version","Editing a historic version is not allowed");t?.returnServiceEditsOption?(S.edits=JSON.stringify([{id:r.layerId,adds:c.length?c:null,updates:d.length?d:null,deletes:y.length?y:null,attachments:f,assetMaps:l}]),S.returnServiceEditsOption=$.toJSON(t?.returnServiceEditsOption),S.returnServiceEditsInSourceSR=t?.returnServiceEditsInSourceSR):(S.adds=c.length?JSON.stringify(c):null,S.updates=d.length?JSON.stringify(d):null,S.deletes=y.length?u?JSON.stringify(y):y.join(","):null,S.attachments=f&&JSON.stringify(f),S.assetMaps=null==l?void 0:JSON.stringify(l));let A=this._getLayerRequestOptions({method:"post",query:S});v&&(A.authMode="immediate",A.query.returnEditMoment=!0,A.query.sessionId=L.TA);let _,x=t?.returnServiceEditsOption?r.url:r.parsedUrl.path;try{_=m?await this._asyncApplyEdits(x+"/applyEdits",A):await(0,a.A)(x+"/applyEdits",A)}catch(e){if(!function(e){let t=e.details.raw,r=+t.code,s=+t.extendedCode;return 500===r&&(-2147217144===s||-2147467261===s)}(e))throw e;A.authMode="immediate",_=m?await this._asyncApplyEdits(x+"/applyEdits",A):await(0,a.A)(x+"/applyEdits",A)}return this._createEditsResult(_)}async deleteAttachments(e,t,r){await this.load();let{layer:s}=this;await(0,G.VA)(s,"editing");let i=e.attributes[s.objectIdField],n=s.parsedUrl.path+"/"+i+"/deleteAttachments";try{return(await(0,a.A)(n,this._getLayerRequestOptions({query:{attachmentIds:t.join(","),...r},method:"post"}))).data.deleteAttachmentResults.map(D)}catch(e){throw this._createAttachmentErrorResult(i,e)}}fetchRecomputedExtents(e={}){let t=e.signal;return this.load({signal:t}).then(async()=>{let t=this._getLayerRequestOptions({...e,query:{returnUpdates:!0}}),{layerId:r,url:s}=this.layer,{data:i}=await(0,a.A)(`${s}/${r}`,t),{id:n,extent:o,fullExtent:u,timeExtent:l}=i,p=o||u;return{id:n,fullExtent:p&&S.A.fromJSON(p),timeExtent:l&&X.A.fromJSON({start:l[0],end:l[1]})}})}async queryAttachments(e,t={}){await this.load();let r=this._getLayerRequestOptions(t);return this.queryTask.executeAttachmentQuery(e,r)}async queryFeatures(e,t){await this.load();let r=await this.queryTask.execute(e,{...t,query:this._createRequestQueryOptions(t)});if(e.outStatistics?.length&&r.features.length){let t=new Map;if(r.features.forEach(r=>{let s=r.attributes;e.outStatistics?.forEach(({outStatisticFieldName:e})=>{if(e){let r=e.toLowerCase();r&&r in s&&e!==r&&(s[e]=s[r],delete s[r],t.set(r,e))}})}),null!=r.fields)for(let e of r.fields){let r=t.get(e.name.toLowerCase());null!=r&&(e.name=r)}}return r}async queryFeaturesJSON(e,t){return await this.load(),this.queryTask.executeJSON(e,{...t,query:this._createRequestQueryOptions(t)})}async queryObjectIds(e,t){return await this.load(),this.queryTask.executeForIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryFeatureCount(e,t){return await this.load(),this.queryTask.executeForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryExtent(e,t){return await this.load(),this.queryTask.executeForExtent(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeatures(e,t){return await this.load(),this.queryTask.executeRelationshipQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryRelatedFeaturesCount(e,t){return await this.load(),this.queryTask.executeRelationshipQueryForCount(e,{...t,query:this._createRequestQueryOptions(t)})}async queryPivot(e,t){return await this.load(),this.queryTask.executePivotQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopFeatures(e,t){return await this.load(),this.queryTask.executeTopFeaturesQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryAttributeBins(e,t){return await this.load(),this.queryTask.executeAttributeBinsQuery(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopObjectIds(e,t){return await this.load(),this.queryTask.executeForTopIds(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopExtents(e,t){return await this.load(),this.queryTask.executeForTopExtents(e,{...t,query:this._createRequestQueryOptions(t)})}async queryTopCount(e,t){return await this.load(),this.queryTask.executeForTopCount(e,{...t,query:this._createRequestQueryOptions(t)})}async fetchPublishingStatus(){if(!(0,Z.Wo)(this.layer.url))return"unavailable";let e=(0,f.fj)(this.layer.url,"status"),t=await(0,a.A)(e,{query:{f:"json"}});return W.fromJSON(t.data.status)}async uploadAssets(e,t){let{uploadAssets:s}=await r.e(1384).then(()=>r(31384));return s(e,{layer:this.layer,ongoingUploads:this._ongoingAssetUploads},t)}_handleLastEditsEventChange(e){let t=this.layer;if(null==e||!("capabilities"in t)||!("effectiveCapabilities"in t)||t.capabilities?.operations?.supportsEditing||!t.effectiveCapabilities?.operations?.supportsEditing)return;let r=t.url;null!=r&&("layerId"in t&&(r=(0,f.fj)(r,t.layerId.toString())),this._getOrCreateEditInterceptor(r).before=t=>{let r=t.requestOptions.method??"auto";if("auto"===r||"head"===r){let r=t.requestOptions.query??{};r._ts=e.getTime(),t.requestOptions.query=r}})}_getOrCreateEditInterceptor(e){return this._editInterceptor??(this._editInterceptor={urls:e},i.A.request.internalInterceptors.push(this._editInterceptor)),this._editInterceptor}_removeEditInterceptor(){null!=this._editInterceptor&&((0,n.TF)(i.A.request.internalInterceptors,this._editInterceptor),this._editInterceptor=null)}async _asyncApplyEdits(e,t){let r=(await(0,a.A)(e,t)).data.statusUrl;for(;;){let e=(await(0,a.A)(r,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,a.A)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new o.A("async-applyEdits-failed","asynchronous applyEdits call failed (undefined response status)")}await(0,d.Pl)(H)}}_createRequestQueryOptions(e){let t={...this.layer.customParameters,token:this.layer.apiKey,...e?.query};return this.layer.datesInUnknownTimezone&&(t.timeReferenceUnknownClient=!0),t}async _fetchService(e,t){if(!e){let r={};(0,u.A)("featurelayer-advanced-symbols")&&(r.returnAdvancedSymbols=!0),t?.cacheBust&&(r._ts=Date.now());let{data:s}=await(0,a.A)(this.layer.parsedUrl.path,this._getLayerRequestOptions({query:r,signal:t?.signal}));e=s}this.layer.applyPreferredHost(e),this.sourceJSON=await this._patchServiceJSON(e,t?.signal);let r=e.type;if(!this.supportedSourceTypes.has(r))throw new o.A("feature-layer-source:unsupported-type",`Source type "${r}" is not supported`)}async _patchServiceJSON(e,t){if("Table"!==e.type&&e.geometryType&&!e?.drawingInfo?.renderer&&!e.defaultSymbol){let t=(0,j.F0)(e.geometryType).renderer;(0,h.sM)("drawingInfo.renderer",t,e)}if("esriGeometryMultiPatch"===e.geometryType&&e.infoFor3D&&(e.geometryType="mesh"),null==e.extent)try{let{data:r}=await(0,a.A)(this.layer.url,this._getLayerRequestOptions({signal:t}));r.spatialReference&&(e.extent={xmin:0,ymin:0,xmax:0,ymax:0,spatialReference:r.spatialReference})}catch(e){(0,d.QP)(e)}return e}async _ensureLatestMetadata(e){if(this.layer.userHasUpdateItemPrivileges&&this.sourceJSON.cacheMaxAge>0)return this._fetchService(null,{...e,cacheBust:!0})}async _uploadMeshesAndGetAssetMapEditsJSON(e){let{addAssetFeatures:t}=e;if(!t?.length||await this._areAllAssetsAlreadyMapped(t))return null;let s=e.addFeatures.filter(e=>e.geometry);if(t.length!==s.length+e.updateFeatures.length)throw new o.A("feature-layer-source:unsupported-mesh-edits","Mixing attribute only edits with mesh geometry edits is not currently supported");let i=[],a=new Map;for(let e of t){let{geometry:t}=e,{vertexSpace:s}=t;if((0,_.Hq)(s))i.push(t);else{let s=t.origin,{convertMeshVertexSpace:n}=await Promise.all([r.e(2258),r.e(4548)]).then(()=>r(28846)),o=await n(t,new A.A({origin:[s.x,s.y,s.z??0]}));a.set(o,t),e.geometry=o,i.push(o)}}await this.uploadAssets(i);for(let[e,t]of a)t.addExternalSources(e.metadata.externalSources.items);return{adds:this._getAssetMapEditsJSON(t),updates:[],deletes:[]}}_getAssetMapEditsJSON(e){let t=[],r=this.layer.globalIdField,s=this.layer.parsedUrl;for(let i of e){let{metadata:e}=i.geometry,a=e.getExternalSourcesOnService(s),n=i.getAttribute(r);if(0===a.length){c.A.getLogger(this).error(`Skipping feature ${n}. The mesh it is associated with has not been uploaded to the service and cannot be mapped to it.`);continue}let{source:o}=a.find(x.dK)??a[0];for(let e of o.assets)1===e.parts.length?t.push({globalId:(0,m.yS)(),parentGlobalId:n,assetName:e.assetName,assetHash:e.parts[0].partHash,flags:[]}):c.A.getLogger(this).error(`Skipping asset ${e.assetName}. It does not have exactly one part, so we cannot map it to a feature.`)}return t}_createEditsResult(e){let t=e.data,{layerId:r}=this.layer,s=[],i=null;if(Array.isArray(t))for(let e of t)null!=e.editedFeatures&&s.push({id:e.id,editedFeatures:e.editedFeatures}),e.id===r&&(i={addResults:e.addResults??[],updateResults:e.updateResults??[],deleteResults:e.deleteResults??[],attachments:e.attachments,editMoment:e.editMoment});else i=t;let a=function(e){let t=e?.assetMaps;if(t){for(let e of t.addResults)e.success||c.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`);for(let e of t.updateResults)e.success||c.A.getLogger("esri.layers.graphics.sources.support.sourceUtils").error(`Failed to map asset to feature with globalId ${e.globalId}.`)}let r=e?.attachments,s={addFeatureResults:e?.addResults?.map(D)??[],updateFeatureResults:e?.updateResults?.map(D)??[],deleteFeatureResults:e?.deleteResults?.map(D)??[],addAttachmentResults:r?.addResults?r.addResults.map(D):[],updateAttachmentResults:r?.updateResults?r.updateResults.map(D):[],deleteAttachmentResults:r?.deleteResults?r.deleteResults.map(D):[]};return e?.editMoment&&(s.editMoment=e.editMoment),s}(i);if(s.length>0){a.editedFeatureResults=[];for(let e of s){let{editedFeatures:t}=e,r=t?.spatialReference?new v.A(t.spatialReference):null;a.editedFeatureResults.push({layerId:e.id,editedFeatures:V(t,r)})}}return a}_createAttachmentErrorResult(e,t){let r=t.details.messages?.[0]||t.message,s=t.details.httpStatus||t.details.messageCode;return{objectId:e,globalId:null,error:new o.A("feature-layer-source:attachment-failure",r,{code:s})}}_getFormDataForAttachment(e,t){let r=e instanceof FormData?e:e&&e.elements?new FormData(e):null;if(r)for(let e in t){let s=t[e];null!=s&&(r.set?r.set(e,s):r.append(e,s))}return r}_getLayerRequestOptions(e={}){let{layer:t,layer:{parsedUrl:r,gdbVersion:s}}=this;return{...e,query:{gdbVersion:s,layer:"dynamicDataSource"in t&&t.dynamicDataSource?JSON.stringify({source:t.dynamicDataSource}):void 0,...r.query,f:"json",...this._createRequestQueryOptions(e)},responseType:"json"}}async _areAllAssetsAlreadyMapped(e){let{layer:t}=this,{globalIdField:r,parsedUrl:s}=t,i="infoFor3D"in t?t.infoFor3D:null;if(null==i||null==r)return!1;let a=(0,U.JZ)(i);if(null==a)return!1;let o=(0,f.fj)(s.path,`../${a.id}`),u=[];for(let t of e){if(!(t.geometry.metadata.getExternalSourcesOnService(s).length>0))return!1;u.push(t)}let l=u.map(e=>e.getAttribute(r)).filter(n.Ru);if(0===l.length)return!1;let{assetMapFieldRoles:{parentGlobalId:p,assetHash:c}}=i,h=new z.A({where:`${p} IN (${l.map(e=>`'${e}'`)})`,outFields:[c,p],returnGeometry:!1}),{features:d}=await(0,k.s)(o,h);return 0!==d.length&&!u.some(e=>{let t=e.getAttribute(r);if(!t)return!0;let{metadata:i}=e.geometry,a=d.filter(e=>e.getAttribute(p)===t);if(0===a.length)return!0;let n=a.map(e=>e.getAttribute(c));return i.getExternalSourcesOnService(s).flatMap(({source:e})=>e.assets.flatMap(e=>e.parts.map(e=>e.partHash))).some(e=>n.every(t=>e!==t))})}};(0,s.Cg)([(0,g.MZ)()],Y.prototype,"type",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"layer",void 0),(0,s.Cg)([(0,g.MZ)({constructOnly:!0})],Y.prototype,"supportedSourceTypes",void 0),(0,s.Cg)([(0,g.MZ)({readOnly:!0})],Y.prototype,"queryTask",null),Y=(0,s.Cg)([(0,g.$K)("esri.layers.graphics.sources.FeatureLayerSource")],Y);const H=1e3},64314(e,t,r){r.d(t,{A:()=>w});var s=r(32198),i=r(69622),a=r(49186),n=r(44208),o=r(17676),u=r(84952),l=r(91429),p=r(21325),c=r(20557),h=r(2272),d=r(65615),y=r(20615),f=r(74910),m=r(78286),g=r(99199),S=r(62815),v=r(63746);class A{constructor(e){this._options=e,this.featureSet={features:[]},this.parseOnly=null,this._transformInPlace=null,this._transformInPlaceXY=null,this._finishVertex=A._finishVertexNonPoint,this._attributesClass=null,this._previousX=0,this._previousY=0,this._point=null,this._lengths=null,this._vertex=[],this._part=null,this._parts=null,this._i=0}queryGeometryType(){return this.featureSet.queryGeometryType}queryGeometry(){return this.featureSet.queryGeometry}idField(e){"string"==typeof e&&(this.featureSet.objectIdFieldName=e)}finish(){this._options.applyTransform&&(this.featureSet.transform=null);let{spatialReference:e,features:t}=this.featureSet;if(e)for(let{geometry:r}of t)r&&(r.spatialReference=e)}feature(){this._attributesClass??=(0,v._)(this.featureSet.fields?.map(e=>e.name)??[]),this.featureSet.features.push({attributes:new this._attributesClass}),this._options.applyTransform&&this._setVertexTransformer()}centroid([e,t]){this.featureSet.features.at(-1).centroid={x:e,y:t}}geometry(e,t,r){this._previousX=this._previousY=0,this._lengths=r;let s,{hasZ:i,hasM:a}=this.featureSet;switch(i??=!1,a??=!1,this._i=0,this._vertex=[0,0],i&&this._vertex.push(0),a&&this._vertex.push(0),this._finishVertex=A._finishVertexNonPoint,t){case"esriGeometryPoint":this._point={x:0,y:0},s=this._point,this._finishVertex=i?a?A._finishVertexPointXYZM:A._finishVertexPointXYZ:a?A._finishVertexPointXYM:A._finishVertexPointXY;break;case"esriGeometryMultipoint":s={points:[],hasZ:i,hasM:a},this._part=s.points,this._parts=[];break;case"esriGeometryPolyline":s={paths:[],hasZ:i,hasM:a},this._parts=s.paths,this._part=[];break;case"esriGeometryPolygon":s={rings:[],hasZ:i,hasM:a},this._parts=s.rings,this._part=[]}1===e?(this.featureSet.queryGeometry=s,this.featureSet.queryGeometryType=t,this._options.applyTransform||this._setVertexTransformer()):this.featureSet.features.at(-1).geometry=s}coord(e){let t=this._vertex;t[this._i++]=e,!(this._i<t.length)&&(this._i=0,this._transformInPlace&&(t[0]+=this._previousX,t[1]+=this._previousY,[this._previousX,this._previousY]=t,this._transformInPlace(t)),this._finishVertex(this))}curvedGeometry(e,t,r,s){let i,{hasZ:a,hasM:n}=this.featureSet;switch(a??=!1,n??=!1,e){case"esriGeometryPoint":case"esriGeometryMultipoint":throw Error(`Curved ${e} does not make sense`);case"esriGeometryPolyline":i={paths:[],curvePaths:[],hasZ:a,hasM:n},this._parts=i.curvePaths,this._part=[];break;case"esriGeometryPolygon":i={rings:[],curveRings:[],hasZ:a,hasM:n},this._parts=i.curveRings,this._part=[]}this.featureSet.features.at(-1).geometry=i}startCurvedPart(e){this._part.push(this._transform(e))}finishCurvedPart(e){this._parts.push(this._part),this._part=[]}lineSegment(e,t){this._part.push(this._transform(t))}bezierSegment(e,t,r,s){this._part.push({b:[this._transform(t),this._transformXY(r),this._transformXY(s)]})}circularArcSegment(e,t,r){this._part.push({c:[this._transform(t),this._transformXY(r)]})}ellipticArcSegment(e,t,r,s,i,a,n,o){this._part.push({a:[this._transform(t),this._transformXY(r),s,i,a,n,o]})}static _finishVertexPointXY({_point:e,_vertex:t}){[e.x,e.y]=t}static _finishVertexPointXYZ({_point:e,_vertex:t}){[e.x,e.y,e.z]=t}static _finishVertexPointXYM({_point:e,_vertex:t}){[e.x,e.y,e.m]=t}static _finishVertexPointXYZM({_point:e,_vertex:t}){[e.x,e.y,e.z,e.m]=t}static _finishVertexNonPoint(e){let{_part:t,_parts:r,_lengths:s,_vertex:i}=e;t.push([...i]),!(t.length<s[r.length])&&(e._previousX=e._previousY=0,e._part=[],r.push(t))}_setVertexTransformer(){let{sourceSpatialReference:e}=this._options,{spatialReference:t,hasZ:r,transform:s}=this.featureSet,i=r?(0,S.d)(e,t):1;this._transformInPlace??=(0,v.M)(this.featureSet,i),this._transformInPlaceXY??=(0,v.M)({transform:s})}_transform(e){let t=[...e];return this._transformInPlace?.(t),t}_transformXY(e){let t=[e[0],e[1]];return this._transformInPlaceXY?.(t),t}}var _=r(80893),x=r(22671),b=r(97552);let w=class extends i.A{constructor(e){super(e),this.dynamicDataSource=null,this.fieldsIndex=null,this.gdbVersion=null,this.infoFor3D=null,this.pbfSupported=!1,this.pbfSupportedWithCurves=!1,this.queryAttachmentsSupported=!1,this.relativeTimeBinWindow=0,this.sourceSpatialReference=null,this.uniqueIdFields=null,this.url=null}get parsedUrl(){return(0,u.An)(this.url)}async execute(e,t){let r=await this.executeJSON(e,t);return this.featureSetFromJSON(e,r,t)}async executeJSON(e,t){let r,s=this._normalizeQuery(e),i=null!=e.outStatistics?.[0],a=(0,n.A)("featurelayer-pbf-statistics");if(this.pbfSupported&&(!i||a)&&(!e.returnTrueCurves||this.pbfSupportedWithCurves))try{r=await async function(e,t,r,s){let i=(0,h.Dl)(e),a={...r},n=b.A.from(t),o=!n.quantizationParameters;return await(0,_.IJ)(i,n,new A({sourceSpatialReference:n.sourceSpatialReference,applyTransform:o}),a,s)}(this.url,s,t,{uniqueIdFields:this.uniqueIdFields})}catch(e){if("query:parsing-pbf"!==e.name)throw e;this.pbfSupported=!1}return r??=await(0,g.e)(this.url,s,t,{uniqueIdFields:this.uniqueIdFields}),this._normalizeFields(r.fields),r}async featureSetFromJSON(e,t,s){if(!this._queryGet3DObjectFormat(e)||null==this.infoFor3D||!t.features)return x.A.fromJSON(t);let{meshFeatureSetFromJSON:i}=await(0,o.qr)(Promise.all([r.e(2258),r.e(118),r.e(8366)]).then(()=>r(40050)),s);return i(e,this.infoFor3D,t)}executeForCount(e,t){return(0,y.I)(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}executeForExtent(e,t){return(0,f.L)(this.url,this._normalizeQuery(e),t)}executeForIds(e,t){return(0,m.V)(this.url,this._normalizeQuery(e),t,{uniqueIdFields:this.uniqueIdFields})}async executeRelationshipQuery(e,t){let[{default:s},{executeRelationshipQuery:i}]=await(0,o.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),a=s.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(a=a.clone(),a.gdbVersion=a.gdbVersion||this.gdbVersion,a.dynamicDataSource=a.dynamicDataSource||this.dynamicDataSource),i(this.url,a,t)}async executeRelationshipQueryForCount(e,t){let[{default:s},{executeRelationshipQueryForCount:i}]=await(0,o.qr)(Promise.all([Promise.resolve().then(()=>r(26591)),r.e(1763).then(()=>r(71763))]),t),a=s.from(e);return(this.gdbVersion||this.dynamicDataSource)&&(a=a.clone(),a.gdbVersion=a.gdbVersion||this.gdbVersion,a.dynamicDataSource=a.dynamicDataSource||this.dynamicDataSource),i(this.url,a,t)}async executeAttachmentQuery(e,t){let{executeAttachmentQuery:s,fetchAttachments:i,processAttachmentQueryResult:a}=await(0,o.qr)(r.e(9239).then(()=>r(9239)),t),n=(0,h.Dl)(this.url);return a(n,await(this.queryAttachmentsSupported?s(n,e,t):i(n,e,t)))}async executeAttributeBinsQuery(e,t){let{executeAttributeBinsQuery:s}=await(0,o.qr)(r.e(3103).then(()=>r(33103)),t);return s(this.parsedUrl,e,t)}async executePivotQuery(e,t){let{executePivotQuery:s}=await(0,o.qr)(r.e(566).then(()=>r(80566)),t);return s(this.parsedUrl,e,t)}async executeTopFeaturesQuery(e,t){let{executeTopFeaturesQuery:s}=await(0,o.qr)(r.e(1273).then(()=>r(11273)),t);return s(this.parsedUrl,e,this.sourceSpatialReference,t)}async executeForTopIds(e,t){let{executeForTopIds:s}=await(0,o.qr)(r.e(1277).then(()=>r(21277)),t);return s(this.parsedUrl,e,t)}async executeForTopExtents(e,t){let{executeForTopExtents:s}=await(0,o.qr)(r.e(8018).then(()=>r(8018)),t);return s(this.parsedUrl,e,t)}async executeForTopCount(e,t){let{executeForTopCount:s}=await(0,o.qr)(r.e(980).then(()=>r(10980)),t);return s(this.parsedUrl,e,t)}_normalizeQuery(e){let t=b.A.from(e);t.sourceSpatialReference=t.sourceSpatialReference||this.sourceSpatialReference,(this.gdbVersion||this.dynamicDataSource)&&(t=t===e?t.clone():t,t.gdbVersion=e.gdbVersion||this.gdbVersion,t.dynamicDataSource=e.dynamicDataSource?d.A.from(e.dynamicDataSource):this.dynamicDataSource);let{infoFor3D:r}=this,s=this._queryGet3DObjectFormat(e);if(null!=r&&s){if(t=t===e?t.clone():t,t.formatOf3DObjects=s,t.outSpatialReference&&!(0,p.aI)(t.outSpatialReference,this.sourceSpatialReference))throw new a.A("query:unsupported-out-spatial-reference","3D object feature services do not support projection of geometries");if(null==t.outFields||!t.outFields.includes("*")){t=t===e?t.clone():t,t.outFields??(t.outFields=[]);let{originX:s,originY:i,originZ:a,translationX:n,translationY:o,translationZ:u,scaleX:l,scaleY:p,scaleZ:c,rotationX:h,rotationY:d,rotationZ:y,rotationDeg:f}=r.transformFieldRoles;t.outFields.push(s,i,a,n,o,u,l,p,c,h,d,y,f)}}return t}_normalizeFields(e){if(null!=this.fieldsIndex&&null!=e)for(let t of e){let e=this.fieldsIndex.get(t.name);e&&Object.assign(t,e.toJSON())}}_queryGet3DObjectFormat({returnGeometry:e,multipatchOption:t,outStatistics:r}){return!0!==e||"xyFootprint"===t||r?null:(0,c.Hz)(this.infoFor3D)}};(0,s.Cg)([(0,l.MZ)({type:d.A})],w.prototype,"dynamicDataSource",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"fieldsIndex",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"gdbVersion",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"infoFor3D",void 0),(0,s.Cg)([(0,l.MZ)({readOnly:!0})],w.prototype,"parsedUrl",null),(0,s.Cg)([(0,l.MZ)()],w.prototype,"pbfSupported",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"pbfSupportedWithCurves",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"queryAttachmentsSupported",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"relativeTimeBinWindow",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"sourceSpatialReference",void 0),(0,s.Cg)([(0,l.MZ)()],w.prototype,"uniqueIdFields",void 0),(0,s.Cg)([(0,l.MZ)({type:String})],w.prototype,"url",void 0),w=(0,s.Cg)([(0,l.$K)("esri.layers.graphics.sources.support.QueryTask")],w)},64714(e,t,r){r.d(t,{F0:()=>o,Vx:()=>p,e2:()=>h,f:()=>f});var s=r(44208),i=r(4718),a=r(99352),n=r(93470);function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?n.Cb:"esriGeometryPolyline"===e?n.yM:n.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function p(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${c(t)} = null;`);for(let t in e)r+=`this${c(t)} = ${JSON.stringify(e[t])};`;let s=Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new s}catch{return()=>t?{[t]:null,...e}:{...e}}}function c(e){return u.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function h(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}const d={...a.F,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!1,supportsDistance:!1,supportsExtent:!1,supportsQuantization:!1,supportsQueryGeometry:!1,supportsDisjointSpatialRelationship:!1},y={...a.P,supportedStatistics:{...a.P.supportedStatistics,envelope:!1,centroid:!1,convexHull:!1}};function f(e,t,r=!1){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:r?d:a.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:r?y:a.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},20615(e,t,r){r.d(t,{I:()=>n});var s=r(2272),i=r(80893),a=r(97552);function n(e,t,r,n){return(0,i.gW)((0,s.Dl)(e),a.A.from(t),r,n)}},74910(e,t,r){r.d(t,{L:()=>o});var s=r(5443),i=r(2272),a=r(80893),n=r(97552);async function o(e,t,r){let o=(0,i.Dl)(e),u=await(0,a.Jf)(o,n.A.from(t),{...r}),l=u.extent;return!l||isNaN(l.xmin)||isNaN(l.ymin)||isNaN(l.xmax)||isNaN(l.ymax)?{count:u.count,extent:null}:{count:u.count,extent:s.A.fromJSON(l)}}},78286(e,t,r){r.d(t,{V:()=>n});var s=r(2272),i=r(80893),a=r(97552);async function n(e,t,r,n){let o=(0,s.Dl)(e),u=await(0,i.Pk)(o,a.A.from(t),r,n);return u.objectIds??function(e){if(e)return function(e){return!Array.isArray(e[0])}(e)?e:e.map(e=>JSON.stringify(e))}(u.uniqueIds)??[]}},99199(e,t,r){r.d(t,{e:()=>u,s:()=>o});var s=r(2272),i=r(80893),a=r(22671),n=r(97552);async function o(e,t,r,s){let i=await u(e,t,r,s);return a.A.fromJSON(i)}function u(e,t,r,a){let o=(0,s.Dl)(e),u={...r},l=n.A.from(t);return(0,i.eW)(o,l,l.sourceSpatialReference,u,a)}},63746(e,t,r){function s(e){return class{constructor(){for(let t of e)this[t]=null}}}function i(e,t=1){let{transform:r,hasZ:s,hasM:i}=e;if(null==r)return s&&1!==t?e=>{e[2]*=t}:null;let[a,n]=function(e,t,r,s){let{scale:i,translate:a,originPosition:n}=e;return"upperLeft"===n&&(i=i.map((e,t)=>1===t?-e:e)),t&&(i=i.map((e,t)=>2===t?e*s:e),a=a.map((e,t)=>2===t?e*s:e)),!t&&r&&(i=i.filter((e,t)=>2!==t),a=a.filter((e,t)=>2!==t)),[i,a]}(r,s,i,t),o=e.hasZ?3:2;return e=>{for(let t=0;t<e.length&&(t!==o||0!==e[t]);++t)e[t]=e[t]*a[t]+n[t]}}r.d(t,{M:()=>i,_:()=>s})},2272(e,t,r){r.d(t,{Dl:()=>l,gf:()=>c,jV:()=>u,lF:()=>p});var s=r(92602),i=r(70333),a=r(4718),n=r(84952),o=r(926);function u(e,t){return t?{...t,query:{...e,...t.query}}:{query:e}}function l(e){return"string"==typeof e?(0,n.An)(e):(0,a.o8)(e)}function p(e,t,r){let s={};for(let i in e){if("declaredClass"===i)continue;let a=e[i];if(null!=a&&"function"!=typeof a)if(Array.isArray(a))s[i]=a.map(e=>p(e));else if("object"==typeof a)if(a.toJSON){let e=a.toJSON(r?.[i]);s[i]=t?e:JSON.stringify(e)}else s[i]=t?a:JSON.stringify(a);else s[i]=a}return s}async function c(e,t,a){return function(e,t){return e?t&&(0,o.Qc)(e)?t:(0,o.getApiKey)(e)??i.id?.findCredential(e)?.token:null}(e,t)||(!i.id&&s.A.request.useIdentity&&await Promise.all([r.e(6361),r.e(6475),r.e(7715)]).then(()=>r(50148)),(await i.id.getCredential(e,a))?.token)}}}]);