@arcgis/core 6.0.0-next.6 → 6.0.0-next.7

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 (122) hide show
  1. package/arcade/functions/knowledgegraph.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{f09c9d9a554c33a753b4.js → 02253bdffbd580af22d8.js} +1 -1
  4. package/assets/esri/core/workers/chunks/{83589144eeeb08f45557.js → 2aeb5cc32284dd3e4d22.js} +1 -1
  5. package/assets/esri/core/workers/chunks/3ffda5bf0b91700dc308.js +1 -0
  6. package/assets/esri/core/workers/chunks/{1317ecdfd0cfa683a493.js → 42323093827adffe56d3.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{f46a0d7cf588ba1b4157.js → 518e8883b6ed613bf451.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{67ac6b326bf80fc3d33d.js → 53be85d04cd2da4f391d.js} +1 -1
  9. package/assets/esri/core/workers/chunks/54778dec1598818d93cb.js +1 -0
  10. package/assets/esri/core/workers/chunks/{3ac9dcbb0571a2580236.js → 62c8c9ad09e0166207fd.js} +1 -1
  11. package/assets/esri/core/workers/chunks/6588725275c75fae0d9c.js +1 -0
  12. package/assets/esri/core/workers/chunks/6ebe73f69ae822053b70.js +1 -0
  13. package/assets/esri/core/workers/chunks/7038ead1fa1674416ab3.js +1 -0
  14. package/assets/esri/core/workers/chunks/70cc2d79653d66e85b58.js +1 -0
  15. package/assets/esri/core/workers/chunks/{8ba32d3a0df4a206ef1c.js → 7165d6f6a5078768bebb.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{cbe6c0f32608cb504695.js → 776ae25a34352d3468bc.js} +1 -1
  17. package/assets/esri/core/workers/chunks/801e9e66edb4961461eb.js +1 -0
  18. package/assets/esri/core/workers/chunks/9ce91a909eccc4dfe388.js +1 -0
  19. package/assets/esri/core/workers/chunks/ad76f7ab2f3e6d5a5b3c.js +1 -0
  20. package/assets/esri/core/workers/chunks/{250d3be6d3849d71fed8.js → c29c474c4b1049352d3e.js} +1 -1
  21. package/assets/esri/core/workers/chunks/ddf0671976648f621269.js +1 -0
  22. package/assets/esri/core/workers/chunks/ecaac39dde7ec4213264.js +1 -0
  23. package/assets/esri/core/workers/chunks/fb444954be74c1962ced.js +1 -0
  24. package/assets/esri/core/workers/chunks/{fccbb902fe08448f91de.js → fd0a5c243f3426f2a0b5.js} +1 -1
  25. package/assets/esri/core/workers/chunks/fecaf0bc28aeea4d15db.js +1 -0
  26. package/assets/esri/themes/base/widgets/_FeatureFormUtilityNetworkAssociationSettings.scss +1 -1
  27. package/assets/esri/themes/base/widgets/_Features.scss +1 -1
  28. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +5 -9
  29. package/assets/esri/themes/base/widgets/_SelectionToolbar.scss +2 -4
  30. package/assets/esri/themes/base/widgets/_Tooltip.scss +1 -1
  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/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  35. package/chunks/GlobalIllumination.glsl.js +4 -2
  36. package/chunks/GlobalIlluminationBlur.glsl.js +3 -5
  37. package/chunks/GlobalIlluminationUpscale.glsl.js +1 -1
  38. package/config.js +1 -1
  39. package/core/colorUtils.js +1 -1
  40. package/core/has.js +1 -1
  41. package/core/workers/workerFactory.js +1 -1
  42. package/geometry/projectionUtils.js +1 -1
  43. package/kernel.js +1 -1
  44. package/layers/graphics/data/FeatureStore.js +1 -1
  45. package/layers/graphics/data/QueryEngineResult.js +1 -1
  46. package/layers/graphics/data/geometryUtils.js +1 -1
  47. package/layers/graphics/data/projectionSupport.js +1 -1
  48. package/layers/knowledgeGraph/layerUtils.js +1 -1
  49. package/layers/knowledgeGraph/nodeMovementUtils.js +1 -1
  50. package/layers/raster/datasets/TIFFRaster.js +1 -1
  51. package/package.json +2 -2
  52. package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
  53. package/views/2d/layers/features/FeatureSourceEventLog.js +1 -1
  54. package/views/2d/layers/features/sources/strategies/AFeatureTileLoadStrategy.js +1 -1
  55. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  56. package/views/2d/layers/features/support/FeatureSetReaderIndirect.js +1 -1
  57. package/views/2d/layers/features/support/FeatureSetReaderJSON.js +1 -1
  58. package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
  59. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  60. package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
  61. package/views/3d/support/elevationUpdateUtils.js +1 -1
  62. package/views/3d/terrain/TerrainRenderer.js +1 -1
  63. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js +2 -2
  64. package/views/draw/Draw.d.ts +1 -1
  65. package/views/draw/support/InteractiveHandle.js +1 -1
  66. package/views/interactive/options/SnappingOptions.d.ts +1 -0
  67. package/views/interactive/options/TooltipOptions.d.ts +1 -0
  68. package/views/interactive/options/ViewOptions.d.ts +1 -0
  69. package/views/interactive/support/Units.d.ts +1 -0
  70. package/views/interactive/tooltip/components/DrawHeaderActions.js +1 -1
  71. package/views/interactive/tooltip/components/ElevationModeSelect.js +1 -1
  72. package/views/support/projectionUtils.js +1 -1
  73. package/widgets/BasemapLayerList.js +1 -1
  74. package/widgets/BatchAttributeForm.js +1 -1
  75. package/widgets/DirectionalPad.js +1 -1
  76. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  77. package/widgets/Expand.js +1 -1
  78. package/widgets/FeatureForm.js +1 -1
  79. package/widgets/FeatureTable/FieldColumn.js +1 -1
  80. package/widgets/FeatureTable.js +1 -1
  81. package/widgets/Features/FeaturesDrillIn.js +1 -1
  82. package/widgets/Features.js +1 -1
  83. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  84. package/widgets/OrientedImageryViewer/adapters/view/SceneViewAdapter.js +1 -1
  85. package/widgets/OrientedImageryViewer/components/SequentialNavigationUI.js +1 -1
  86. package/widgets/OrientedImageryViewer/components/SketchTools.js +1 -1
  87. package/widgets/PanoramicVideoViewer.js +1 -1
  88. package/widgets/Print.js +1 -1
  89. package/widgets/ScaleRangeSlider.js +1 -1
  90. package/widgets/Search/SearchResultRenderer.js +1 -1
  91. package/widgets/Sketch/SketchViewModel.d.ts +1 -1
  92. package/widgets/Sketch/support/ResponsiveToolbar/ResponsiveToolbar.js +1 -1
  93. package/widgets/Sketch.d.ts +1 -1
  94. package/widgets/Track/TrackViewModel.d.ts +1 -1
  95. package/widgets/UtilityNetworkAssociations.js +1 -1
  96. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  97. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
  98. package/widgets/UtilityNetworkTrace/types.d.ts +2 -2
  99. package/widgets/UtilityNetworkTrace.js +1 -1
  100. package/widgets/UtilityNetworkValidateTopology.js +1 -1
  101. package/widgets/ValuePicker.js +1 -1
  102. package/widgets/VideoPlayer/components/PlayerActionsGroup.js +1 -1
  103. package/widgets/VideoPlayer/components/PlayerControlsGroup.js +1 -1
  104. package/widgets/support/GridControls.js +1 -1
  105. package/widgets/support/PluginSettingsControls.js +1 -1
  106. package/widgets/support/SelectionToolbar.js +1 -1
  107. package/widgets/support/SnappingControls.js +1 -1
  108. package/widgets/support/componentsUtils.js +1 -1
  109. package/assets/esri/core/workers/chunks/02d4f91652a79d2b637e.js +0 -1
  110. package/assets/esri/core/workers/chunks/107b025dc5b09465a78f.js +0 -1
  111. package/assets/esri/core/workers/chunks/1f43e06dcfe56229bb0f.js +0 -1
  112. package/assets/esri/core/workers/chunks/2a570ce6b99dac6ee996.js +0 -1
  113. package/assets/esri/core/workers/chunks/3880d2c7fb14955d7f93.js +0 -1
  114. package/assets/esri/core/workers/chunks/56851011276de0b3e318.js +0 -1
  115. package/assets/esri/core/workers/chunks/5f3ab77a79c408423fde.js +0 -1
  116. package/assets/esri/core/workers/chunks/65654e481cce9ae40e54.js +0 -1
  117. package/assets/esri/core/workers/chunks/8b54589f173259c1ba55.js +0 -1
  118. package/assets/esri/core/workers/chunks/bff767ec5bb4c0d6b324.js +0 -1
  119. package/assets/esri/core/workers/chunks/c906f984b2b6e7578c06.js +0 -1
  120. package/assets/esri/core/workers/chunks/de02a6a1f4810f99e9bb.js +0 -1
  121. package/assets/esri/core/workers/chunks/e5943f3a4bbc12c06c4d.js +0 -1
  122. package/assets/esri/core/workers/chunks/f0aaa646b17ffdbdcefa.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5752],{69052(e,t,i){i.d(t,{hr:()=>a});var r=i(34727);class a{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return n(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,r.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+s(this.range,e-t,i)}minimalMonotonic(e,t,i){return n(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);let i=(t=this.normalize(t))-e,r=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(r)?i:r}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function n(e,t,i,r,a=0,n=!1){return(r-=a)<t?r+=s(e,t-r):r>i&&(r-=s(e,r-i)),n&&r===i&&(r=t),r+a}function s(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const l=new a(0,2*Math.PI),o=(new a(-Math.PI,Math.PI),new a(0,360));i.d(t,["ie",0,o,"uC",0,l])},18370(e,t,i){i.d(t,{z:()=>a});class r{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 a(e){return new r(e)}},44123(e,t,i){i.d(t,{WhereClauseCache:()=>n});var r=i(66344),a=i(89696);class n{constructor(e,t){this._cache=new r.q(e),this._invalidCache=new r.q(t)}get(e,t){let i=`${t?.uid}:${e}`,r=this._cache.get(i);if(r)return r;if(null!=this._invalidCache.get(i))return null;try{let r=a.A.create(e,{fieldsIndex:t});return this._cache.put(i,r),r}catch(e){return this._invalidCache.put(i,e),null}}getError(e,t){let i=`${t?.uid}:${e}`;return this._invalidCache.get(i)??null}}},46329(e,t,i){i.d(t,{y:()=>c});var r=i(49186),a=i(4305),n=i(513),s=i(50954),l=i(52006),o=i(49663),u=i(46068),d=i(59803);function c(e,t,i){if((0,l.Xq)(t))return(0,d.T)(e,t,i);if((0,l.n1)(t)){let n=(0,a.m_)(e,t,i)[0];if(null==n)throw new r.A("closestPointOnCurve:unexpected-error","Failed to find close point on bezier curve");return n}if((0,l.aO)(t)){let r=(0,s.pM)(e,t);return(0,n.fM)(r,i)}if((0,l.DA)(t)){let r=(0,o.io)(e,t);return(0,n.fM)(r,i)}let c=(0,u.SW)(e,t);return(0,u.pb)(c,i)}},52039(e,t,i){i.d(t,{O7:()=>p,el:()=>u});var r=i(69052),a=(i(49186),i(18370)),n=i(17676),s=(i(5443),i(39829)),l=(i(82799),i(16930)),o=(i(80754),i(21325));async function u(e,t,i){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(i=t);let r=null;for(let t of e)r??=t?.spatialReference;if(!r)return e;let a=(0,o.Vp)(r);if(!a)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(a);return["xmin"in t?t:new s.A(t)]}let[l,u]=a.valid,p=!1;for(let t of e){if(!t)continue;if("point"===t.type){p||=t.x>=u,p||=t.x<=l;continue}let{extent:e}=t;if(null==e){p=!0;break}p||=e.xmin>=u,p||=e.xmin<=l,p||=e.xmax>=u,p||=e.xmax<=l}if(!p)return e;let[{foldInto360Range:f},h]=await(0,n.qr)(Promise.all([d.getImportPromise(),c.getImportPromise()]),i),m=h.fromSpatialReference(r);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=h.fromGeometry(e),i=h.toGeometry(f(t,m),r);return"extent"===e.type&&1===i?.rings.length?i.extent:i})}const d=(0,a.z)(()=>i.e(4144).then(()=>i(4144)).then(e=>e.load().then(()=>e))),c=(0,a.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125)));function p(e,t,i){let r=(0,o.Vp)(i);if(null==r)return e;let[a,n]=r.valid,s=2*n,l=0,u=0;t>n?l=Math.ceil(Math.abs(t-n)/s):t<a&&(l=-Math.ceil(Math.abs(t-a)/s)),e>n?u=Math.ceil(Math.abs(e-n)/s):e<a&&(u=-Math.ceil(Math.abs(e-a)/s));let d=e+(l-u)*s,c=d-t;return c>n?d-=s:c<a&&(d+=s),d}function f(e){let t=(0,o.Vp)(e);if(null==t)return null;let[i,a]=t.valid;return new r.hr(i,a)}const h=f(l.A.WGS84);f(l.A.WebMercator),i.d(t,["Y_",0,h])},80754(e,t,i){i.d(t,{kS:()=>u,kd:()=>o});var r=i(82799),a=i(16930),n=i(60408),s=i(52006);const l={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:a.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:a.A.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function u(e,t){if((0,s.Ed)(e))for(let i of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of i)if((0,s.aO)(e)){let[i,r]=e.c;i[0]+=t,r[0]+=t}else if((0,s.FG)(e)){let[i,r]=e.a;i[0]+=t,r[0]+=t}else if((0,s.n1)(e)){let[i,r,a]=e.b;i[0]+=t,r[0]+=t,a[0]+=t}else e[0]+=t;for(let i of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(let e of i)e[0]+=t;return e}i.d(t,["j7",0,l])},62577(e,t,i){function r(e){return e?{originPosition:"upper-left"===e.originPosition?"upperLeft":"lower-left"===e.originPosition?"lowerLeft":e.originPosition,scale:e.tolerance?[e.tolerance,e.tolerance,1,1]:[1,1,1,1],translate:null==e.extent?[0,0,0,0]:[e.extent.xmin,e.extent.ymax,e.extent.zmin??0,e.extent.mmin??0]}:null}function a(e){if(function(e){return"lowerLeft"===e.originPosition&&4===e.scale.length&&4===e.translate.length}(e))return e;let{originPosition:t,scale:i,translate:r}=e,a=i[0]??1,n=i[1]??1;return{originPosition:"lowerLeft",scale:[a,"lowerLeft"===t?n:-n,i[2]??1,i[3]??1],translate:[r[0]??0,r[1]??0,r[2]??0,r[3]??0]}}function n({scale:e,translate:t},i){return Math.round((i-t[0])/e[0])}function s({scale:e,translate:t},i){return Math.round((i-t[1])/e[1])}function l({scale:e,translate:t},i){return i*e[0]+t[0]}function o({scale:e,translate:t},i){return i*e[1]+t[1]}function u({scale:e,translate:t},i){return(i??0)*e[2]+t[2]}function d({scale:e,translate:t},i){return i?i*e[3]+t[3]:0}function c(e,t){return e&&t?m:e&&!t?f:!e&&t?h:p}i.d(t,{$X:()=>v,B2:()=>s,Gy:()=>g,IE:()=>n,P5:()=>T,Q1:()=>a,SW:()=>x,Tr:()=>_,VV:()=>r});const p=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],a=l(e,r[0]),n=o(e,r[1]);i[0]=[a,n];let{scale:s,originPosition:u}=e,d=s[0],c="lowerLeft"===u?s[1]:-s[1];for(let e=1;e<t.length;e++){let[r,s]=t[e];a+=d*r,n+=c*s,i[e]=[a,n]}return i},f=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],a=l(e,r[0]),n=o(e,r[1]);i[0]=[a,n,u(e,r[2])];let{scale:s,originPosition:d}=e,c=s[0],p="lowerLeft"===d?s[1]:-s[1];for(let r=1;r<t.length;r++){let[s,l,o]=t[r];a+=c*s,n+=p*l,i[r]=[a,n,u(e,o)]}return i},h=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],a=l(e,r[0]),n=o(e,r[1]);i[0]=[a,n,d(e,r[2])];let{scale:s,originPosition:u}=e,c=s[0],p="lowerLeft"===u?s[1]:-s[1];for(let r=1;r<t.length;r++){let[s,l,o]=t[r];a+=c*s,n+=p*l,i[r]=[a,n,d(e,o)]}return i},m=(e,t)=>{let i=Array(t.length);if(!t.length)return i;let r=t[0],a=l(e,r[0]),n=o(e,r[1]);i[0]=[a,n,u(e,r[2]),d(e,r[3])];let{scale:s,originPosition:c}=e,p=s[0],f="lowerLeft"===c?s[1]:-s[1];for(let r=1;r<t.length;r++){let[s,l,o,c]=t[r];a+=p*s,n+=f*l,i[r]=[a,n,u(e,o),d(e,c)]}return i};function y(e,t,i){let r=Array(i.length);for(let a=0;a<i.length;a++)r[a]=t(e,i[a]);return r}function g(e,t,i){let r=a(e);return t.x=n(r,i.x),t.y=s(r,i.y),null!=i.z&&(t.z=function({scale:e,translate:t},i){return Math.round(((i??0)-t[2])/e[2])}(r,i.z)),null!=i.m&&(t.m=function({scale:e,translate:t},i){return i?Math.round((i-t[3])/e[3]):0}(r,i.m)),t}function x(e,t,i,r=i?.hasZ??!1,n=i?.hasM??!1){if(null!=i){let s=a(e);t.points=c(r,n)(s,i.points),t.hasZ=r,t.hasM=n}return t}function _(e,t,i,r=null!=i?.z,n=null!=i?.m){if(null==i)return t;let s=a(e);return t.x=l(s,i.x),t.y=o(s,i.y),r&&(t.z=u(s,i.z)),n&&(t.m=d(s,i.m)),t}function v(e,t,i,r=i?.hasZ??!1,n=i?.hasM??!1){return null!=i&&(t.rings=y(a(e),c(r,n),i.rings),t.hasZ=r,t.hasM=n),t}function T(e,t,i,r=i?.hasZ??!1,n=i?.hasM??!1){return null!=i&&(t.paths=y(a(e),c(r,n),i.paths),t.hasZ=r,t.hasM=n),t}},75752(e,t,i){i.d(t,{do:()=>P,qo:()=>L,Wc:()=>q});var r=i(4576),a=i(21818),n=i(49186),s=(i(44208),i(4718)),l=i(97768),o=i(17676),u=i(86211),d=i(12195),c=i(99917),p=i(70328),f=i(19419),h=i(537),m=i(60408),y=i(65864),g=i(52039),x=i(21325),_=i(90708),v=i(29441),T=i(51441),S=i(31464);class F{constructor(){this._storage=new Map,this._purgeInterval=5,this._sweep=()=>{if(this._timer=void 0,!this._storage)return;let e=1e3*this._purgeInterval,t=performance.now()-e;for(let[i,r]of this._storage){if(!(r.time<t))return void(this._storage.size>0&&(this._timer=setTimeout(this._sweep,e)));this._storage.delete(i)}}}destroy(){this._storage?.clear(),this._storage=null,clearTimeout(this._timer)}put(e,t){this._storage?.set(e,new R(t)),this._scheduleSweep()}get(e){let t=this._storage?.get(e);if(t)return this._storage?.delete(e),t.time=performance.now(),this._storage?.set(e,t),t.items}clear(){this._storage?.clear()}_scheduleSweep(){this._storage&&(this._timer??=setTimeout(this._sweep,1e3*this._purgeInterval))}get test(){}}let E=0;class R{constructor(e){this.items=e,this.time=performance.now(),this.id=E++}}var I=i(99352),w=i(8384),A=i(58727),M=i(62660),b=i(43668);const C="unsupported-query";async function O(e,{fieldsIndex:t,geometryType:i,spatialReference:r,availableFields:a}){if(null!=e.geometryPrecision||e.multipatchOption&&"xyFootprint"!==e.multipatchOption||e.pixelSize||e.relationParam||e.text)throw new n.A(C,"Unsupported query options",{query:e});return V(t,a,e),function(e,t,i){let{outStatistics:r,groupByFieldsForStatistics:a,having:s}=i,l=a?.length,o=r?.length;if(s){if(!l||!o)throw new n.A(C,"outStatistics and groupByFieldsForStatistics should be specified with having",{query:i});(0,v.eD)(e,t,s,r,i)}if(o){if(!(0,v._d)(r))return;let s=(0,v.g9)(e,r,a);(0,v.MG)(e,t,s,{expressionName:"statistics",query:i});for(let a of r){let{onStatisticField:r,statisticType:s}=a;if("percentile_disc"!==s&&"percentile_cont"!==s||!("statisticParameters"in a))e.get(r)&&"count"!==s&&"min"!==s&&"max"!==s&&(0,v.MG)(e,t,[r],{expressionName:`outStatistics with '${s}' statistic type`,allowedFieldTypes:N,query:i});else{let{statisticParameters:e}=a;if(!e)throw new n.A(C,"statisticParameters should be set for percentile type",{definition:a,query:i})}}}}(t,a,e),Promise.all([(0,M.c0)(e,i,r),(0,S.Nk)(r,e.outSR)]).then(()=>e)}function V(e,t,i){let{returnDistinctValues:r,outStatistics:a}=i,s=a?a.map(e=>e.outStatisticFieldName&&e.outStatisticFieldName.toLowerCase()).filter(Boolean):[];if("orderByFields"in i&&i.orderByFields&&i.orderByFields.length>0){let r=" asc",a=" desc",n=i.orderByFields.map(e=>{let t=e.toLowerCase();return t.includes(r)?t.split(r)[0]:t.includes(a)?t.split(a)[0]:e}).filter(e=>!s.includes(e));(0,v.MG)(e,t,n,{expressionName:"orderByFields",query:i})}if("outFields"in i)if(i.outFields?.length)(0,v.MG)(e,t,i.outFields,{expressionName:"outFields",query:i,allowedFieldTypes:"all"});else if(r)throw new n.A(C,"outFields should be specified for returnDistinctValues",{query:i});(0,v.SN)(e,t,i.where,i)}const N=new Set([...v.vl,...v.VW]);async function z(e,t,i,r){let a=[];if(i.valueExpression){let{arcadeUtils:e}=await(0,b.l)();a=e.extractFieldNames(i.valueExpression)}if(i.field&&a.push(i.field),i.field2&&a.push(i.field2),i.field3&&a.push(i.field3),i.normalizationField&&a.push(i.normalizationField),!a.length&&!i.valueExpression)throw new n.A(C,"field or valueExpression is required",{params:i});(0,v.MG)(e,t,a,{expressionName:"statistics",query:r})}var D=i(86420),B=i(95466),G=i(92359);class P{constructor(e){this._changeHandle=null,this.capabilities={query:I.F},this.geometryType=e.geometryType,this.hasM=!!e.hasM,this.hasZ=!!e.hasZ,this.spatialReference=e.spatialReference,this.definitionExpression=e.definitionExpression,this.featureStore=e.featureStore,this.aggregateAdapter=e.aggregateAdapter,this._cache=e.cache??new F,this.timeInfo=e.timeInfo,this.featureIdInfo=e.featureIdInfo,this._changeHandle=this.featureStore.events.on("changed",()=>this._clearCache()),this.fieldsIndex=(0,d.W)(e.fieldsIndex)?e.fieldsIndex:B.A.fromJSON(e.fieldsIndex),this.availableFields=!e.availableFields||1===e.availableFields.length&&"*"===e.availableFields[0]?new Set(this.fieldsIndex.fields.map(e=>e.name)):new Set(e.availableFields.map(e=>this.fieldsIndex.get(e)?.name).filter(e=>null!=e)),this._frameTask=e.scheduler&&e.priority?e.scheduler.registerTask(e.priority):G.nu}destroy(){this._changeHandle=(0,l.xt)(this._changeHandle),this._frameTask=(0,l.xt)(this._frameTask),this._clearCache(),(0,l.pR)(this._cache)}get featureAdapter(){return this.featureStore.featureAdapter}async executeQuery(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryFeatureSet(e),i)}async executeQueryForCount(e={},t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForCount(e),i)}async executeQueryForExtent(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForExtent(e),i)}async executeQueryForIds(e,t){return Array.from(await this.executeQueryForIdSet(e,t))}async executeQueryForIdSet(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForIdSet(e),i)}async executeQueryForLatestObservations(e,t){let i=(0,o.Mq)(t);if(!this.timeInfo?.trackIdField)throw new n.A("unsupported-query","Missing timeInfo or timeInfo.trackIdField",{query:e,timeInfo:this.timeInfo});return await this._frameTask.scheduleGenerator(()=>this._executeQueryForLatestObservations(e),i)}async executeQueryForOpaqueFeatures(e,t){let i=(0,o.Mq)(t);return(await this._frameTask.scheduleGenerator(()=>this._executeQuery(e,{}),i)).items}async executeAttributeBinsQuery(e,t){let i=(0,o.Mq)(t);return e=(0,s.o8)(e),await this._frameTask.scheduleGenerator(()=>this._executeAttributeBinsQuery(e),i)}async executeQueryForSummaryStatistics(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSummaryStatistics(e,t),r)}async executeQueryForUniqueValues(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForUniqueValues(e,t),r)}async executeQueryForClassBreaks(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForClassBreaks(e,t),r)}async executeQueryForHistogram(e={},t,i){let r=(0,o.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForHistogram(e,t),r)}async executeQueryForSnapping(e,t){let i=(0,o.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSnapping(e,i),i)}async fetchRecomputedExtents(e){let t=(0,o.Mq)(e);this._timeExtentPromise||=(0,D.W)(this.timeInfo,this.featureStore);let[i,r]=await Promise.all([this._getFullExtent(),this._timeExtentPromise]);return(0,o.Te)(t),{fullExtent:i,timeExtent:r}}_clearCache(){this._cache.clear(),this._allFeaturesPromise=null,this._timeExtentPromise=null,this._fullExtentPromise=null}async*_executeQueryFeatureSet(e){try{let t=yield*this._executeQuery(e,{});return yield,await t.createQueryResponse()}catch(t){if(t!==A.v8)throw t;return await new w.G([],e,this).createQueryResponse()}}async*_executeQueryForCount(e){try{let t=yield*this._executeQuery(e,{returnGeometry:!1,returnCentroid:!1,outSR:null});return yield,t.createQueryResponseForCount()}catch(e){if(e!==A.v8)throw e;return 0}}async*_executeQueryForExtent(e){let t=e.outSR;try{let i=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;let r=i.size;if(!r)return{count:0,extent:null};let a=await this._getBounds(i.items,i.spatialReference,t??this.spatialReference);return yield,{count:r,extent:a}}catch(e){if(e===A.v8)return{count:0,extent:null};throw e}}async*_executeQueryForIdSet(e){try{let t=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;let i=t.items,r=new Set;for(let e of i)r.add(t.featureAdapter.getObjectId(e));return r}catch(e){if(e===A.v8)return new Set;throw e}}async*_executeQueryForLatestObservations(e){try{let t=yield*this._executeQuery(e,{});return yield,this._filterLatest(t),yield,await t.createQueryResponse()}catch(t){if(t!==A.v8)throw t;return await new w.G([],e,this).createQueryResponse()}}async*_executeAttributeBinsQuery(e){let t;try{e=await(0,A.iJ)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t){let i=e.bin;if(!i.onField&&!i.onExpression?.value||"autoIntervalBin"===i.type&&null==i.parameters.numberOfBins||"dateBin"===i.type&&(null==i.parameters.number||null==i.parameters.unit)||"fixedBoundariesBin"===i.type&&null==i.parameters.boundaries||"fixedIntervalBin"===i.type&&null==i.parameters.interval)throw new n.A(C,"Unsupported query options",{query:e});return O(e,t)}(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;let i=yield*this._executeSceneFilterQuery(e);yield,t=yield*this._executeGeometryQuery(e,i),yield,this._executeAggregateIdsQuery(t),yield,this._executeObjectIdsQuery(t),yield,this._executeTimeQuery(t),yield,this._executeAttributesQuery(t),yield}catch(i){if(i!==A.v8)throw i;t=new w.G([],e,this)}return await t.createQueryBinsResponse(e)}async*_executeQueryForSummaryStatistics(e={},t){let{field:i,normalizationField:r,valueExpression:a}=t,n=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:r,valueExpression:a});return yield,await n.createSummaryStatisticsResponse(t)}async*_executeQueryForUniqueValues(e={},t){let{field:i,field2:r,field3:a,valueExpression:n}=t,s=yield*this._executeQueryForStatistics(e,{field:i,field2:r,field3:a,valueExpression:n});return yield,await s.createUniqueValuesResponse(t)}async*_executeQueryForClassBreaks(e,t){let{field:i,normalizationField:r,valueExpression:a}=t,n=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:r,valueExpression:a});return yield,await n.createClassBreaksResponse(t)}async*_executeQueryForHistogram(e,t){let{field:i,normalizationField:r,valueExpression:a}=t,n=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:r,valueExpression:a});return yield,await n.createHistogramResponse(t)}async*_executeQueryForSnapping(e,t){let{point:i,distance:r,returnEdge:a,vertexMode:n}=e;if(!a&&"none"===n)return{candidates:[]};let l=(0,s.o8)(e.query);l=await(0,A.T2)(l,this.definitionExpression,this.spatialReference),yield,l=await O(l,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;let o=!(0,x.aI)(i.spatialReference,this.spatialReference);o&&(await(0,S.Nk)(i.spatialReference,this.spatialReference),yield);let u="number"==typeof r?r:r.x,d="number"==typeof r?r:r.y,c={xmin:i.x-u,xmax:i.x+u,ymin:i.y-d,ymax:i.y+d,spatialReference:i.spatialReference},p=o?(0,S.Cv)(c,this.spatialReference):c;if(!p)return{candidates:[]};let[f]=await(0,g.el)((0,y.rS)(i),{signal:t});yield;let[h]=await(0,g.el)((0,y.rS)(p),{signal:t});if(yield,null==f||null==h)return{candidates:[]};let m=await this._searchFeatures(L(h.toJSON()));yield;let _=new w.G(m,l,this);this._executeObjectIdsQuery(_),yield,this._executeTimeQuery(_),yield,this._executeAttributesQuery(_),yield,yield*this._executeGeometryQueryForSnapping(_),yield;let v=f.toJSON(),T=o?(0,S.Cv)(v,this.spatialReference):v,F=o?Math.max(p.xmax-p.xmin,p.ymax-p.ymin)/2:r;return _.createSnappingResponse({...e,point:T,distance:F},l.returnZ,i.spatialReference)}async _getBounds(e,t,i){let r=(0,p.hZ)((0,p.vt)(),p.qv);return await this.featureStore.forEachBounds(e,e=>(0,p.RF)(r,e)),q(r,t,i,this.spatialReference,this.hasZ)}_getFullExtent(){return this._fullExtentPromise||="getFullExtent"in this.featureStore&&this.featureStore.getFullExtent?Promise.resolve(this.featureStore.getFullExtent(this.spatialReference)):this._getAllFeatures().then(e=>this._getBounds(e,this.spatialReference,this.spatialReference)),this._fullExtentPromise}async _getAllFeaturesQueryEngineResult(e){return new w.G(await this._getAllFeatures(),e,this)}async _getAllFeatures(){if(null==this._allFeaturesPromise){let e=[];this._allFeaturesPromise=(async()=>await this.featureStore.forEach(t=>e.push(t)))().then(()=>(0,a.z)(e))}let e=this._allFeaturesPromise,t=await e;return e===this._allFeaturesPromise?t.slice():this._getAllFeatures()}async*_executeQuery(e,t){e=(0,s.o8)(e),e=await(0,A.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await O(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield,e={...e,...t};let i=yield*this._executeSceneFilterQuery(e);yield;let r=yield*this._executeGeometryQuery(e,i);return yield,this._executeAggregateIdsQuery(r),yield,this._executeObjectIdsQuery(r),yield,this._executeTimeQuery(r),yield,this._executeAttributesQuery(r),r}async*_executeSceneFilterQuery(e){if(null==e.sceneFilter)return null;let{outSR:t,returnGeometry:i,returnCentroid:r}=e,a=this.featureStore.featureSpatialReference,n=e.sceneFilter.geometry,s=null==a||(0,x.aI)(a,n.spatialReference)?n:(0,S.Cv)(n,a);if(!s)return null;let l=i||r,o=(0,x.fn)(t)&&!(0,x.aI)(this.spatialReference,t)&&l?async e=>this._project(e,t):e=>e;yield;let u=this.featureAdapter,d=await this._searchFeatures(L(s));if(yield,"disjoint"===e.sceneFilter.spatialRelationship){if(!d.length)return null;let t=new Set;for(let e of d)t.add(u.getObjectId(e));let i=await this._getAllFeatures();yield;let r=await(0,M.xt)("esriSpatialRelDisjoint",s,this.geometryType);yield;let a=yield*this._runSpatialFilter(i,e=>!t.has(u.getObjectId(e))||r(u.getGeometry(e)));return yield,await o(new w.G(a,e,this))}if(!d.length)return new w.G([],e,this);if(this._canExecuteSinglePass(s,e))return await o(new w.G(d,e,this));let c=await(0,M.xt)("esriSpatialRelContains",s,this.geometryType);yield;let p=yield*this._runSpatialFilter(d,e=>c(u.getGeometry(e)));return yield,await o(new w.G(p,e,this))}async*_executeGeometryQuery(e,t){if(null!=t&&0===t.items.length)return t;let{geometry:i,outSR:a,returnGeometry:n,returnCentroid:s}=e,l=t?null:this._getCacheKey(e),o=l?this._cache.get(l):null;if(o)return new w.G(o,e,this);let u=(0,x.fn)(a)&&!(0,x.aI)(this.spatialReference,a),d=n||s,c=async e=>(u&&d&&await this._project(e,a),l&&this._cache.put(l,e.items),e),p=this.featureStore.featureSpatialReference,f=!i||null==p||(0,x.aI)(p,i.spatialReference)?i:(0,S.Cv)(i,p);if(!f)return await c(t??await this._getAllFeaturesQueryEngineResult(e));yield;let h=this.featureAdapter,m=await this._searchFeatures(L(i));yield;let y=e.spatialRel??"esriSpatialRelIntersects";if("esriSpatialRelDisjoint"===y){if(!m.length)return await c(t??await this._getAllFeaturesQueryEngineResult(e));let i,r=new Set;for(let e of m)r.add(h.getObjectId(e));null==t?(yield,i=await this._getAllFeatures(),yield):i=t.items;let a=await(0,M.xt)(y,f,this.geometryType);yield;let n=yield*this._runSpatialFilter(i,e=>!r.has(h.getObjectId(e))||a(h.getGeometry(e)));return yield,await c(new w.G(n,e,this))}if(null!=t){let e=new r.vW;m=m.filter(i=>(0,r.qh)(t.items,i,t.items.length,e)>=0)}if(!m.length){let t=new w.G([],e,this);return l&&this._cache.put(l,t.items),t}if(this._canExecuteSinglePass(f,e))return await c(new w.G(m,e,this));let g=await(0,M.xt)(y,f,this.geometryType);yield;let _=yield*this._runSpatialFilter(m,e=>g(h.getGeometry(e)));return yield,await c(new w.G(_,e,this))}_executeAggregateIdsQuery(e){if(0===e.items.length||!e.query.aggregateIds?.length||null==this.aggregateAdapter)return;let t=new Set;for(let i of e.query.aggregateIds)this.aggregateAdapter.getFeatureObjectIds(i).forEach(e=>t.add(e));let i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeObjectIdsQuery(e){if(0===e.items.length||!e.query.objectIds?.length)return;let t=new Set(e.query.objectIds),i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeTimeQuery(e){if(0===e.items.length)return;let t=(0,D.I)(this.timeInfo,e.query.timeExtent,this.featureAdapter);null!=t&&(e.items=e.items.filter(t))}_executeAttributesQuery(e){if(0===e.items.length)return;let t=(0,v.j4)(e.query.where,this.fieldsIndex);if(t){if(!t.isStandardized)throw TypeError("Where clause is not standardized");e.items=e.items.filter(e=>t.testFeature(e,this.featureAdapter))}}async*_executeGeometryQueryForSnapping(e){let{query:t}=e,{spatialRel:i}=t;if(!e?.items?.length||!t.geometry||!i)return;let r=await(0,M.xt)(i,t.geometry,this.geometryType);yield;let a=this.featureAdapter;e.items=yield*this._runSpatialFilter(e.items,e=>r(a.getGeometry(e)))}*_runSpatialFilter(e,t){if(!t)return e;if(null==this._frameTask)return e.filter(e=>t(e));let i=yield,r=[];for(let a of e)t(a)&&r.push(a),i.madeProgress(),i.done&&(i=yield);return r}_filterLatest(e){let{trackIdField:t,startTimeField:i,endTimeField:r}=this.timeInfo,a=r||i,n=new Map,s=this.featureAdapter.getAttribute;for(let i of e.items){let e=s(i,t),r=s(i,a),l=n.get(e);(!l||r>s(l,a))&&n.set(e,i)}e.items=Array.from(n.values())}_getCacheKey(e){let{geometry:t,spatialRel:i,returnGeometry:r,returnCentroid:a,outSR:n,resultType:s,cacheHint:l}=e;if("tile"!==s&&!l)return null;let o=r||a,u=(0,x.fn)(n)&&!(0,x.aI)(this.spatialReference,n);return JSON.stringify(u&&o?[t,i,n]:[t,i])}_canExecuteSinglePass(e,t){let{spatialRel:i}=t;return(0,M.tC)(e)&&("esriSpatialRelEnvelopeIntersects"===i||"esriGeometryPoint"===this.geometryType&&("esriSpatialRelIntersects"===i||"esriSpatialRelContains"===i))}async _project(e,t){if(!t||(0,x.aI)(this.spatialReference,t))return e;let i=this.featureAdapter,r=(0,c.isLoaded)()?await this._getFullExtent():void 0,n=await(0,S.lK)(e.items.map(e=>(0,T.pL)(this.geometryType,i.getGeometry(e))),this.spatialReference,t,{areaOfInterestExtent:r});return e.items=(0,a.z)(n.map((t,r)=>i.cloneWithGeometry(e.items[r],(0,_.Ux)(t,this.hasZ,this.hasM),this.geometryType))),e}async _searchFeatures(e){let t=new Set;await Promise.all(e.map(e=>this.featureStore.forEachInBounds(e,e=>t.add(e))));let i=Array.from(t.values());return t.clear(),i}async*_executeQueryForStatistics(e,t){e=(0,s.o8)(e);try{e=await(0,A.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t,{fieldsIndex:i,geometryType:r,spatialReference:a,availableFields:s}){if(null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text||e.outStatistics||e.groupByFieldsForStatistics||e.having||e.orderByFields)throw new n.A(C,"Unsupported query options",{query:e});return V(i,s,e),Promise.all([z(i,s,t,e),(0,M.c0)(e,r,a),(0,S.Nk)(a,e.outSR)]).then(()=>e)}(e,t,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;let i=yield*this._executeSceneFilterQuery(e);yield;let r=yield*this._executeGeometryQuery(e,i);return yield,this._executeAggregateIdsQuery(r),yield,this._executeObjectIdsQuery(r),yield,this._executeTimeQuery(r),yield,this._executeAttributesQuery(r),yield,r}catch(t){if(t!==A.v8)throw t;return new w.G([],e,this)}}get test(){}}function L(e){if((0,M.tC)(e)){if((0,m.ZC)(e))return[(0,f.fA)(Math.min(e.xmin,e.xmax),Math.min(e.ymin,e.ymax),Math.max(e.xmin,e.xmax),Math.max(e.ymin,e.ymax))];if((0,m.Bi)(e))return e.rings.map(e=>(0,f.fA)(Math.min(e[0][0],e[2][0]),Math.min(e[0][1],e[2][1]),Math.max(e[0][0],e[2][0]),Math.max(e[0][1],e[2][1])))}return[(0,h.Rg)((0,f.vt)(),e)]}function q(e,t,i,r,a){let n={xmin:e[0],ymin:e[1],xmax:e[3],ymax:e[4],spatialReference:r};a&&isFinite(e[2])&&isFinite(e[5])&&(n.zmin=e[2],n.zmax=e[5],n.hasZ=!0);let s=(0,S.Cv)(n,t,i);if(s.spatialReference=i,s.xmax-s.xmin===0){let e=(0,u.GA)(s.spatialReference);s.xmin-=e,s.xmax+=e}if(s.ymax-s.ymin===0){let e=(0,u.GA)(s.spatialReference);s.ymin-=e,s.ymax+=e}if(a&&null!=s.zmin&&null!=s.zmax&&s.zmax-s.zmin===0){let e=(0,u.GA)(s.spatialReference);s.zmin-=e,s.zmax+=e}return s}},99352(e,t,i){i.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}}])},8384(e,t,i){i.d(t,{G:()=>O});var r=i(4576),a=i(18370),n=i(4718),s=i(16930),l=i(12359),o=i(90634),u=i(62577),d=i(21325),c=i(46329),p=i(52006),f=i(88930),h=i(29441),m=i(51441),y=i(30524),g=i(1873),x=i(43668);class _{constructor(e,t,i){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=i,this.featureAdapter=t;let r=e.outFields;if(r&&!r.includes("*")){this.outFields=r;let e=0;for(let t of r){let r=(0,h.Wq)(t),a=this.fieldsIndex.get(r),n=a?null:(0,h.j4)(r,i),s=a?a.name:(0,h.SY)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:s,clause:n})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach(e=>this.getAttributes(e)),this._returnDistinctMap.size):e.length}getAttributes(e){let t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,i){if(i)return this.featureAdapter.getAttribute(e,i.name);let r=t,a=null;return this._fieldDataCache.has(r)?a=this._fieldDataCache.get(r)?.clause:i||(a=(0,h.j4)(t,this.fieldsIndex),this._fieldDataCache.set(r,{alias:r,clause:a})),a?.calculateValue(e,this.featureAdapter)}getDataValues(e,t,i=!0){let r=t.normalizationType,a=t.normalizationTotal,n=this.fieldsIndex.get(t.field),s=(0,y.zD)(n)||(0,y.Ah)(n),l=(0,y.OH)(n);return e.map(e=>{let n=t.field&&this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2?(n=`${(0,g.gJ)(n)}${t.fieldDelimiter}${(0,g.gJ)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(n=`${n}${t.fieldDelimiter}${(0,g.gJ)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)):"string"==typeof n&&i&&(s?n=n?new Date(n).getTime():null:l&&(n=n?(0,f.rb)(n):null)),r&&Number.isFinite(n)){let i="field"===r&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;n=(0,g.zS)(n,r,i,a)}return n})}async getExpressionValues(e,t,i,r,a){let{arcadeUtils:n}=await(0,x.l)(),s=n.hasGeometryOperations(t);s&&await n.enableGeometryOperations();let l=n.createFunction(t),o=n.getViewInfo(i),u={fields:this.fieldsIndex.fields};return e.map(e=>{let t={attributes:this.featureAdapter.getAttributes(e),layer:u,geometry:s?{...(0,m.pL)(r.geometryType,this.featureAdapter.getGeometry(e)),spatialReference:i.spatialReference}:null},d=n.createExecContext(t,o,a);return n.executeFunction(l,d)})}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,h.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testFeature(e,this.featureAdapter)??!1}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,h.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testSet(e,this.featureAdapter)??!1}_processAttributesForOutFields(e){let t=this.outFields;if(!t?.length)return this.featureAdapter.getAttributes(e);let i={};for(let r of t){let{alias:t,clause:a}=this._fieldDataCache.get(r);i[t]=a?a.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return i}_processAttributesForDistinctValues(e){if(null==e||!this.returnDistinctValues)return e;let t=this.outFields,i=[];if(t)for(let r of t){let{alias:t}=this._fieldDataCache.get(r);i.push(e[t])}else for(let t in e)i.push(e[t]);let r=`${(t||["*"]).join(",")}=${i.join(",")}`,a=this._returnDistinctMap.get(r)||0;return this._returnDistinctMap.set(r,++a),a>1?null:e}}var v=i(31464),T=i(58727);class S{constructor(e,t,i){this.objectId=e,this.target=t,this.distance=i}}class F extends S{constructor(e,t,i){super(e,t,i),this.type="vertex"}}class E extends S{constructor(e,t,i,r,a,n=!1,s=null){super(e,t,i),this.start=r,this.end=a,this.draped=n,this.curve=s,this.type="edge"}}var R=i(5834),I=i(59977),w=i(57231),A=i(11440),M=i(60909),b=(i(98623),i(34747));const C=(0,a.z)(()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6491)]).then(()=>i(55666)));class O{constructor(e,t,i){this.items=e,this.query=t,this.geometryType=i.geometryType,this.hasZ=!!t.returnZ&&i.hasZ,this.hasM=!!t.returnM&&i.hasM,this.fieldsIndex=i.fieldsIndex,this.spatialReference=i.spatialReference,this.featureAdapter=i.featureAdapter,this.featureIdInfo=i.featureIdInfo}get size(){return this.items.length}createQueryResponseForCount(){let e=new _(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);let{groupByFieldsForStatistics:t,having:i,outStatistics:r}=this.query;if(!t?.length)return 1;let a=new Map,n=new Map,s=new Set;for(let l of r){let{statisticType:r}=l,o="exceedslimit"===r?void 0:l.onStatisticField;if(!n.has(o)){let i=[];for(let r of t){let t=this._getAttributeValues(e,r,this.items,a);i.push(t)}n.set(o,this._calculateUniqueValues(i,this.items,e.returnDistinctValues))}let u=n.get(o);for(let t in u){let{data:r,items:a}=u[t],n=r.join(",");(!i||e.validateItems(a,i))&&s.add(n)}}return s.size}async createQueryResponse(){let e;if(e=this.query.outStatistics?this.query.outStatistics.some(e=>"exceedslimit"===e.statisticType)?this._createExceedsLimitQueryResponse():await this._createStatisticsQueryResponse(this.query,this.items):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry){let t=this.query.geometry;(0,d.fn)(this.query.outSR)&&!(0,d.aI)(t.spatialReference,this.query.outSR)?e.queryGeometry=(0,m.ag)({spatialReference:this.query.outSR,...(0,v.Cv)(t,t.spatialReference,this.query.outSR)}):e.queryGeometry=(0,m.ag)({spatialReference:this.query.outSR,...t})}return e}createSnappingResponse(e,t,i){let r=this.featureAdapter,{point:a}=e,n="number"==typeof e.distance?e.distance:e.distance.x,s="number"==typeof e.distance?e.distance:e.distance.y;function l(e,t){let i=(e-a.x)/n,r=(t-a.y)/s;return i*i+r*r}let o={candidates:[]},u="esriGeometryPolygon"===this.geometryType,d="esriGeometryPolyline"===this.geometryType||"esriGeometryPoint"===this.geometryType,f=this._getPointCreator(t,this.spatialReference,i),h=new z(null,0),m=new z(null,0),y={x:0,y:0,z:0};for(let e of this.items){let t=r.getObjectId(e),i=r.getGeometryWithCurves?.(e);if(null!=i){x(i,t);continue}let a=r.getGeometry(e);null!=a&&g(a,t)}return o.candidates.sort((e,t)=>e.distance-t.distance),o;function g(t,i){let{coords:r,stride:n}=t,s=t.isPoint?D:t.lengths;if(h.coords=r,m.coords=r,e.returnEdge){let e=0;for(let t=0;t<s.length;t++){let r=s[t],d=e;for(let t=0;t<r;t++,e+=n){if(!u&&t===r-1||(h.coordsIndex=e,m.coordsIndex=t===r-1?d:e+n,!N(y,a,h,m)))continue;let s=l(y.x,y.y);s<=1&&o.candidates.push(new E(i,f(y),Math.sqrt(s),f(h),f(m)))}}}if("all"===e.vertexMode){let e=0;for(let t=0;t<s.length;t++){let r=s[t],a=e,d=m;d.coordsIndex=a;for(let t=0;t<r;t++,e+=n){if(h.coordsIndex=e,u&&t===r-1&&h.x===d.x&&h.y===d.y)continue;let a=l(h.x,h.y);a<=1&&o.candidates.push(new F(i,f(h),Math.sqrt(a)))}}}else if(d&&"ends"===e.vertexMode){let e=0,t=[];for(let i=0;i<s.length;i++){t.push(e);let r=s[i];e+=r*n,r>1&&t.push(e-n)}for(let e of t){h.coordsIndex=e;let t=l(h.x,h.y);t<=1&&o.candidates.push(new F(i,f(h),Math.sqrt(t)))}}}function x(t,i){let{candidates:r}=o,n={x:0,y:0,z:0};if(e.returnEdge){let e=[a.x,a.y],s=new z(e,0),o=new z(e,0);for(let{segments:a}of t.parts)for(let{start:t,curve:u}of a){let{curvePoint:a}=(0,c.y)(t,u,e),d=l(...a);if(d>1)continue;[n.x,n.y]=a,s.coords=t,o.coords=(0,p.yP)(u);let h=(0,p.Xq)(u)?null:(0,p.tk)(u);r.push(new E(i,f(n),Math.sqrt(d),f(s),f(o),!1,h))}}function s(e){n.x=t.vertexXY[2*e],n.y=t.vertexXY[2*e+1];let a=l(n.x,n.y);a>1||(n.z=t.vertexZ?.[e]??0,r.push(new F(i,f(n),Math.sqrt(a))))}if("all"===e.vertexMode){let{vertexCount:e}=t;for(let t=0;t<e;++t)s(t)}else if("ends"===e.vertexMode)switch(t.type){case"point":s(0);break;case"polyline":for(let e=0;e<t.partCount;++e){let i=t.partOffsets[e],r=t.partOffsets[e+1]-1;s(i),r!==i&&s(r)}}}}_getPointCreator(e,t,i){let r=null==i||(0,d.aI)(t,i)?e=>e:e=>(0,v.Cv)(e,t,i),{hasZ:a}=this;return a&&e?({x:e,y:t,z:i})=>r({x:e,y:t,z:i}):({x:e,y:t})=>r({x:e,y:t,z:0})}async createSummaryStatisticsResponse(e){let{field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,minValue:s,maxValue:l,scale:o,timeZone:u,outStatisticTypes:d}=e,c=this.fieldsIndex.get(t),p=(0,y.vE)(c)||(0,y.zD)(c)||(0,y.Ah)(c),f=await this._getDataValues({field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,scale:o,timeZone:u},this.items),h=(0,g.Vb)({normalizationType:a,normalizationField:r,minValue:s,maxValue:l}),m={value:.5,fieldType:c?.type},x=(0,y.yM)(c)?(0,g.z9)({values:f,supportsNullCount:h,percentileParams:m,outStatisticTypes:d}):(0,g.G_)({values:f,minValue:s,maxValue:l,useSampleStdDev:!a,supportsNullCount:h,percentileParams:m,outStatisticTypes:d});return(0,g.oZ)(x,d,p)}async createUniqueValuesResponse(e){let{field:t,valueExpression:i,domains:r,returnAllCodedValues:a,scale:n,timeZone:s}=e,l=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:i,scale:n,timeZone:s},this.items,!1),o=(0,g.b3)(l);return(0,g.lv)(o,r,a,e.fieldDelimiter)}async createClassBreaksResponse(e){let{field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,classificationMethod:s,standardDeviationInterval:l,minValue:o,maxValue:u,numClasses:d,scale:c,timeZone:p}=e,f=await this._getDataValues({field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,scale:c,timeZone:p},this.items),h=(0,g.Rw)(f,{field:t,normalizationField:r,normalizationType:a,normalizationTotal:n,classificationMethod:s,standardDeviationInterval:l,minValue:o,maxValue:u,numClasses:d});return(0,g.jM)(h,s)}async createHistogramResponse(e){let{field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,classificationMethod:s,standardDeviationInterval:l,minValue:o,maxValue:u,numBins:d,scale:c,timeZone:p}=e,f=await this._getDataValues({field:t,valueExpression:i,normalizationField:r,normalizationType:a,normalizationTotal:n,scale:c,timeZone:p},this.items);return(0,g.$y)(f,{field:t,normalizationField:r,normalizationType:a,normalizationTotal:n,classificationMethod:s,standardDeviationInterval:l,minValue:o,maxValue:u,numBins:d})}_sortFeatures(e,t,i){if(e.length>1&&t?.length)for(let r of t.slice().reverse()){let{compare:t,fieldOrExpression:a,fieldInfo:n}=B(r,this.fieldsIndex);e.sort((e,r)=>t(i(e,a,n),i(r,a,n)))}}_topNFeatures(e,t,i,a){if(e.length>1&&t?.length){let n=t.map(e=>{let{compare:t,fieldOrExpression:i,fieldInfo:r}=B(e,this.fieldsIndex);return(e,n)=>t(a(e,i,r),a(n,i,r))}).reduceRight((e,t)=>(i,r)=>{let a=t(i,r);return 0===a||Number.isNaN(a)?e(i,r):a}),s=[];for(let t of e)(0,r.HX)(s,t,i,n);return s}return e.slice(0,i)}_createFeatureQueryResponse(e){let{items:t,geometryType:i,hasM:r,hasZ:a,featureIdInfo:n,spatialReference:s}=this,{outFields:l,outSR:o,quantizationParameters:d,resultRecordCount:c,resultOffset:p,returnZ:f,returnM:h}=e,y=null!=c&&t.length>(p||0)+c,g=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map(e=>this.fieldsIndex.get(e)));return{exceededTransferLimit:y,features:this._createFeatures(e,t),fields:g,geometryType:i,hasM:r&&h,hasZ:a&&f,objectIdFieldName:"object-id"===n.type?n.fieldName:null,spatialReference:(0,m.ag)(o||s),transform:d&&(0,u.VV)(d)||null}}_createFeatures(e,t){let i,r=new _(e,this.featureAdapter,this.fieldsIndex),{hasM:a,hasZ:n}=this,{orderByFields:s,quantizationParameters:l,returnGeometry:o,returnCentroid:d,maxAllowableOffset:c,resultOffset:p,resultRecordCount:f,returnZ:h=!1,returnM:y=!1}=e,g=n&&h,x=a&&y,v=p||0,T=null==f?null:v+f;null!=T&&T<=5e3&&T<t.length?i=this._topNFeatures(t,s,T,(e,t,i)=>r.getFieldValue(e,t,i)):(i=[...t],this._sortFeatures(i,s,(e,t,i)=>r.getFieldValue(e,t,i))),(v>0||null!=T)&&(i=i.slice(v,T??void 0));let S=[],F=0;if(this.geometryType&&(o||d)){let e=(0,u.VV)(l)??void 0,t="esriGeometryPolygon"===this.geometryType||"esriGeometryPolyline"===this.geometryType;if(o&&!d)for(let a of i){let i=this.featureAdapter.getGeometry(a),n=this._addFeatureJSONMetadata(a,{attributes:r.getAttributes(a),geometry:(0,m.pL)(this.geometryType,i,c,e,g,x)});t&&i&&!n.geometry&&(n.centroid=(0,m.LQ)(this,this.featureAdapter.getCentroid(a,this),e)),S[F++]=n}else if(!o&&d)for(let t of i)S[F++]=this._addFeatureJSONMetadata(t,{attributes:r.getAttributes(t),centroid:(0,m.LQ)(this,this.featureAdapter.getCentroid(t,this),e)});else for(let t of i)S[F++]=this._addFeatureJSONMetadata(t,{attributes:r.getAttributes(t),centroid:(0,m.LQ)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,m.pL)(this.geometryType,this.featureAdapter.getGeometry(t),c,e,g,x)})}else for(let e of i){let t=r.getAttributes(e);t&&(S[F++]=this._addFeatureJSONMetadata(e,{attributes:t}))}return S}_addFeatureJSONMetadata(e,t){let i=this.featureAdapter.getMetadata?.(e);return void 0!==i&&(t.metadata=i),t}_createExceedsLimitQueryResponse(){let e=!1,t=1/0,i=1/0,r=1/0;for(let e of this.query.outStatistics??[])if("exceedslimit"===e.statisticType){t=null==e.maxPointCount?1/0:e.maxPointCount,i=null==e.maxRecordCount?1/0:e.maxRecordCount,r=null==e.maxVertexCount?1/0:e.maxVertexCount;break}return e="esriGeometryPoint"===this.geometryType?this.items.length>t:this.items.length>i||this.items.reduce((e,t)=>e+(this.featureAdapter.getGeometry(t)?.size??0),0)>r,{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(e)}}]}}async _createStatisticsQueryResponse(e,t,i={attributes:{}}){let r=[],a=new Map,n=new Map,s=new Map,l=new Map,o=new _(e,this.featureAdapter,this.fieldsIndex),u=e.outStatistics,{groupByFieldsForStatistics:d,having:c,orderByFields:p,resultRecordCount:f}=e,h=d?.length,m=!!h,g=m?d[0]:null,x=m&&!this.fieldsIndex.get(g);for(let p of u??[]){let{outStatisticFieldName:u,statisticType:f}=p,_=p,v="exceedslimit"===f?void 0:p.onStatisticField,T="percentile_disc"===f||"percentile_cont"===f,S="EnvelopeAggregate"===f||"CentroidAggregate"===f||"ConvexHullAggregate"===f,F=m&&1===h&&(v===g||x)&&"count"===f;if(m){if(!s.has(v)){let e=[];for(let i of d){let r=this._getAttributeValues(o,i,t,a);e.push(r)}s.set(v,this._calculateUniqueValues(e,t,!S&&o.returnDistinctValues))}let i=s.get(v);if(!i)continue;let r=Object.keys(i);for(let n of r){let{count:r,data:s,items:p,itemPositions:f}=i[n],h=s.join(",");if(!c||o.validateItems(p,c)){let i=l.get(h)||{attributes:{}};if(e.returnAggIds&&(i.aggregateIds=p.map(e=>this.featureAdapter.getObjectId(e)).filter(e=>null!=e)),S){i.aggregateGeometries||={};let{aggregateGeometries:e,outStatisticFieldName:t}=await this._getAggregateGeometry(_,p);i.aggregateGeometries[t]=e}else{let e=null;if(F)e=r;else{let i=this._getAttributeValues(o,v,t,a),r=f.map(e=>i[e]);e=T&&"statisticParameters"in _?this._getPercentileValue(_,r):this._getStatisticValue(_,r,null,o.returnDistinctValues)}i.attributes[u]=e}let n=0;d.forEach((e,t)=>i.attributes[this.fieldsIndex.get(e)?e:"EXPR_"+ ++n]=s[t]),l.set(h,i)}}}else if(S){i.aggregateGeometries||={};let{aggregateGeometries:e,outStatisticFieldName:r}=await this._getAggregateGeometry(_,t);i.aggregateGeometries[r]=e}else{let e=this._getAttributeValues(o,v,t,a);i.attributes[u]=T&&"statisticParameters"in _?this._getPercentileValue(_,e):this._getStatisticValue(_,e,n,o.returnDistinctValues)}let E="min"!==f&&"max"!==f||!(0,y.yM)(this.fieldsIndex.get(v))&&!this._isAnyDateField(v)?null:this.fieldsIndex.get(v)?.type;r.push({name:u,alias:u,type:E||"esriFieldTypeDouble"})}let v=m?Array.from(l.values()):[i];return this._sortFeatures(v,p,(e,t)=>e.attributes[t]),f&&(v.length=Math.min(f,v.length)),{fields:r,features:v}}_isAnyDateField(e){let t=this.fieldsIndex.get(e);return(0,y.vE)(t)||(0,y.zD)(t)||(0,y.Ah)(t)||(0,y.OH)(t)}async _getAggregateGeometry(e,t){let{statisticType:i,outStatisticFieldName:r}=e,{featureAdapter:a,spatialReference:n,geometryType:s}=this,u=t.map(e=>(0,m.pL)(s,a.getGeometry(e))),d={aggregateGeometries:null,outStatisticFieldName:null},{convexHullExecuteMany:c}=await C.getImportPromise(),[p]=c(u,{merge:!0});if(p&&p.rings[0].length<=3&&(p=null),"EnvelopeAggregate"===i)d.aggregateGeometries={...p?(0,o.v)(p):V(u),spatialReference:n},d.outStatisticFieldName=r||"extent";else if("CentroidAggregate"===i){let[e,t]=p?(0,l.l8)(p):(0,l.Z4)(V(u));d.aggregateGeometries={x:e,y:t,spatialReference:n},d.outStatisticFieldName=r||"centroid"}else"ConvexHullAggregate"===i&&(d.aggregateGeometries=p&&{...p,spatialReference:n},d.outStatisticFieldName=r||"convexHull");return d}_getStatisticValue(e,t,i,r){let{onStatisticField:a,statisticType:n}=e,s=null;return s=i?.has(a)?i.get(a):(0,y.yM)(this.fieldsIndex.get(a))||this._isAnyDateField(a)?(0,g.z9)({values:t,returnDistinct:r}):(0,g.G_)({values:r?[...new Set(t)]:t,minValue:null,maxValue:null,useSampleStdDev:!0}),i&&i.set(a,s),s["var"===n?"variance":n]}_getPercentileValue(e,t){let{onStatisticField:i,statisticParameters:r,statisticType:a}=e,{value:n,orderBy:s}=r,l={value:n,orderBy:s,fieldType:this.fieldsIndex.get(i)?.type,isDiscrete:"percentile_disc"===a};return(0,g.qg)(t,l)}_getAttributeValues(e,t,i,r){if(r.has(t))return r.get(t);let a=this.fieldsIndex.get(t),n=i.map(i=>e.getFieldValue(i,t,a));return r.set(t,n),n}_calculateUniqueValues(e,t,i){let r={},a=t.length;for(let n=0;n<a;n++){let a=t[n],s=[];for(let t of e)s.push(t[n]);let l=s.join(",");null==r[l]?r[l]={count:1,data:s,items:[a],itemPositions:[n]}:(i||r[l].count++,r[l].items.push(a),r[l].itemPositions.push(n))}return r}async _getDataValues(e,t,i=!0){let r=new _(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:a,scale:l,timeZone:o}=e,u=s.A.fromJSON(this.query.outSR||this.spatialReference);return a?r.getExpressionValues(t,a,{viewingMode:"map",scale:l,spatialReference:u},{geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM},o):r.getDataValues(t,(0,n.o8)(e),i)}_calculateHistogramBins(e,t,i){if(null==t.min&&null==t.max)return[];let r=t.intervals,a=t.min??0,n=t.max??0,s=r.map(([e,t])=>({minValue:e,maxValue:t,count:0,items:[]}));for(let t=0;t<e.length;t++){let l=e[t],o=i[t];if(null!=l&&l>=a&&l<=n){let e=(0,g.Ak)(r,l);e>-1&&(s[e].count++,s[e].items.push(o))}}return s}async createQueryBinsResponse(e){let t=e.bin?.splitBy;if(!t)return this._createBinsResponse(e);let{value:i,outAlias:r,valueType:a}=t,n=[],s=[{name:r??i,alias:r??i,type:a??"esriFieldTypeString"},{name:"bin",alias:"bin",type:"esriFieldTypeInteger"}],l=new _(e,this.featureAdapter,this.fieldsIndex),o=new Map,u=[...this.items];this._sortFeatures(u,[i],(e,t,i)=>l.getFieldValue(e,t,i));let d=this._getAttributeValues(l,i,u,o),c=this._calculateUniqueValues([d],u,l.returnDistinctValues);for(let t in c){let{items:a}=c[t],l=await this._createBinsResponse(e,a);if(n.push(...l.features.map(e=>({...e,attributes:{...e.attributes,[r??i]:t}}))),l.fields)for(let e of l.fields)s.some(t=>t.name===e.name)||s.push(e)}return{fields:s,features:n}}async _createBinsResponse(e,t){let i=e.bin;switch(t??=this.items,i.type){case"autoIntervalBin":return this._createAutoIntervalBinsResponse(R.A.fromJSON(i),e,t);case"dateBin":return this._createDateBinsResponse(I.A.fromJSON(i),e,t);case"fixedBoundariesBin":return this._createFixedBoundariesBinsResponse(A.A.fromJSON(i),e,t);case"fixedIntervalBin":return this._createFixedIntervalBinsResponse(M.A.fromJSON(i),e,t)}}async _createAutoIntervalBinsResponse(e,t,i){let{field:r,normalizationField:a,numBins:n,normalizationType:s,normalizationTotal:l,start:o,end:u}=e,d=await this._getDataValues({field:e.field||e.expression,normalizationField:e.normalizationField,normalizationType:e.normalizationType,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},i),c=(0,g.sU)(d,{field:r,normalizationField:a,normalizationType:s,normalizationTotal:l,numBins:n,minValue:(0,T.dO)(s?e.normalizationMinValue:o,!1),maxValue:(0,T.dO)(s?e.normalizationMaxValue:u,!1)}),p=this._calculateHistogramBins(d,c,i);return this._createFeaturesFromHistogramBins(p,t)}async _createDateBinsResponse(e,t,i){let{field:r,interval:a,start:n,end:s,snapToData:l,returnFullIntervalBin:o,offset:u,firstDayOfWeek:d}=e,c=a.unit,p=await this._getDataValues({field:r||e.expression,timeZone:t.outTimeReference?.ianaTimeZone},i),f=(0,y.OH)(this.fieldsIndex.get(r)),h=w.g.toJSON(c),m=p.filter(Boolean).sort((e,t)=>e-t),g=null==n?m[0]:(0,T.dO)(n,f),x=null==s?m[m.length-1]:(0,T.dO)(s,f),_=[];if(null!=g&&null!=x){let e={zone:t.outTimeReference?.ianaTimeZone??"UTC"},i={[u?.unit?w.g.toJSON(u.unit):"milliseconds"]:u?.value||0},r=b.c9.fromMillis(g,e).minus(i),n=b.c9.fromMillis(x,e).minus(i),s="number"==typeof d&&d>=1&&d<=7?d:7,c=(e,t)=>{let i=(e.weekday-t+7)%7;return e.minus({days:i}).startOf("day")},p=(e,t)=>c(e,t).plus({days:7});if("last"===l){let e="week"===h?p(n,s):n;for(;e>r;){let t=e.minus({[h]:a.value});if(t<r){_.unshift([o?t.plus(i).toMillis():r.plus(i).toMillis(),e.plus(i).toMillis()]);break}_.unshift([t.plus(i).toMillis(),e.plus(i).toMillis()]),e=t}}else{let e="first"===l?r:"week"===h?c(r,s):r.startOf(h);for(;e<=n;){let t=e.plus({[h]:a.value});if(t>n){_.push([e.plus(i).toMillis(),o?t.plus(i).toMillis():n.plus(i).toMillis()]);break}_.push([e.plus(i).toMillis(),t.plus(i).toMillis()]),e=t}}}let v=this._calculateHistogramBins(p,{intervals:_,min:g,max:x},i);return this._createFeaturesFromHistogramBins(v,t)}async _createFixedBoundariesBinsResponse(e,t,i){let{field:r}=e,a=await this._getDataValues({field:r||e.expression,timeZone:t.outTimeReference?.ianaTimeZone},i),n=(0,y.OH)(this.fieldsIndex.get(r)),s=e.boundaries.map(e=>(0,T.dO)(e,n)).sort((e,t)=>e-t),l=[];for(let e=0;e<s.length-1;e++)l.push([s[e],s[e+1]]);let o={intervals:l,min:s.at(0),max:s.at(-1)},u=this._calculateHistogramBins(a,o,i);return this._createFeaturesFromHistogramBins(u,t)}async _createFixedIntervalBinsResponse(e,t,i){let{field:r,interval:a,normalizationType:n,start:s,end:l}=e,o=await this._getDataValues({field:r||e.expression,normalizationField:e.normalizationField,normalizationType:n,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},i),u=(0,y.OH)(this.fieldsIndex.get(r)),d=(0,g.sU)(o,{field:r,classificationMethod:"defined-interval",definedInterval:a,minValue:(0,T.dO)(n?e.normalizationMinValue:s,u),maxValue:(0,T.dO)(n?e.normalizationMaxValue:l,u)},!0),c=this._calculateHistogramBins(o,d,i);return this._createFeaturesFromHistogramBins(c,t)}async _createFeaturesFromHistogramBins(e,t){let{upperBoundaryAlias:i,lowerBoundaryAlias:r}=t,a=r||"lowerBoundary",n=i||"upperBoundary",s=[],l=[{name:a,alias:a,type:"esriFieldTypeDouble"},{name:n,alias:n,type:"esriFieldTypeDouble"}],o=t.bin?.stackBy?.value,u=t.bin?.stackBy?.outAlias;o&&l.push({name:"bin",alias:"bin",type:"esriFieldTypeInteger"},{name:u??o,alias:u??o,type:"esriFieldTypeString"});let d=0,c="dateBin"===t.bin.type,p=t.outTimeReference?.ianaTimeZone;for(let i of e){let e,{minValue:r,maxValue:f,items:h}=i,m={attributes:{}};if(m.attributes[a]=c&&p&&null!=r?b.c9.fromMillis(r,{zone:p}).toISO():r,t.bin.hideUpperBound||(m.attributes[n]=c&&p&&null!=f?b.c9.fromMillis(f,{zone:p}).toISO():f),t.returnAggIds&&(m.aggregateIds=h.map(e=>this.featureAdapter.getObjectId(e)).filter(e=>null!=e)),o?(e=await this._createStatisticsQueryResponse({...t,groupByFieldsForStatistics:[o],orderByFields:[o]},h),m.attributes.bin=++d,"flat"===t.bin.jsonStyle?s.push(...e.features.map(({attributes:{EXPR_1:e,...t},...i})=>({...i,attributes:u??e?{...t,[u??e]:e,...m.attributes}:{...t,...m.attributes}}))):(m.stackedAttributes=e.features.map(({attributes:{EXPR_1:e,...t}})=>u??e?{...t,[u??e]:e}:t),s.push(m))):(t.bin?.splitBy&&(m.attributes.bin=++d),e=await this._createStatisticsQueryResponse(t,h,m),s.push(m)),e.fields)for(let t of e.fields)l.some(e=>e.name===t.name)||l.push(t)}return"desc"===t.binOrder&&s.reverse(),{fields:l,features:s}}}function V(e){let t=(0,o.HA)(e[0]);for(let i of e.slice(1))(0,o.JM)(t,(0,o.HA)(i));return t}function N(e,t,i,r){let a=r.x-i.x,n=r.y-i.y,s=t.x-i.x,l=t.y-i.y,o=a*a+n*n;if(0===o)return!1;let u=s*a+l*n,d=Math.min(1,Math.max(0,u/o));return e.x=i.x+a*d,e.y=i.y+n*d,!0}class z{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}const D=[1];function B(e,t){let i=e.split(" "),r=i[0],a=t.get(r),n=!!i[1]&&"desc"===i[1].toLowerCase();return{compare:(0,g.FM)(a?.type,n,"case-insensitive"),fieldOrExpression:r,fieldInfo:a}}},29441(e,t,i){i.d(t,{MG:()=>_,SN:()=>f,SY:()=>g,Wq:()=>y,_d:()=>S,eD:()=>h,g9:()=>x,j4:()=>m});var r=i(49186),a=i(44123),n=i(98453);const s=new a.WhereClauseCache(50,500),l="unsupported-query",o=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]),d=new Set(["esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]),c=new Set(["esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...u,...d]);function p(e,t,i={}){let a=m(t,e);if(!a){let i=s.getError(t,e);throw new r.A(l,"invalid SQL expression",{expression:t,error:i})}let n=i.expressionName||"expression";if(i.validateStandardized&&!a.isStandardized)throw new r.A(l,`${n} is not standard`,{expression:t});if(i.validateAggregate&&!a.isAggregate)throw new r.A(l,`${n} does not contain a valid aggregate function`,{expression:t});return a.fieldNames}function f(e,t,i,r){if(!i)return!0;let a="where clause";return _(e,t,p(e,i,{validateStandardized:!0,expressionName:a}),{expressionName:a,query:r}),!0}function h(e,t,i,a,n){if(!i)return!0;let s="having clause";if(_(e,t,p(e,i,{validateAggregate:!0,expressionName:s}),{expressionName:s,query:n}),!m(i,e)?.getExpressions().every(t=>{let{aggregateType:i,field:r}=t,n=e.get(r)?.name;return a.some(t=>{let{onStatisticField:r,statisticType:a}=t;return e.get(r)?.name===n&&a.toLowerCase().trim()===i})}))throw new r.A(l,"expressions in having clause should also exist in outStatistics",{having:i});return!0}function m(e,t){return e?s.get(e,t):null}function y(e){return/\((.*?)\)/.test(e)?e:e.split(o)[0]}function g(e){return e.split(o)[1]}function x(e,t,i){if(!S(t))return[];let r=new Set,a=t=>{if(t&&"*"!==t)for(let i of v(e,t))r.add(i)};for(let e of t)a(e.onStatisticField);for(let e of i??[])a(e);return Array.from(r)}function _(e,t,i,a={}){let n=new Map;if(function(e,t,i,r,a){let n=a.includes("*")?[...i,...a.filter(e=>"*"!==e)]:a;for(let a of n)if(t.get(a))T(e,t,i,r,a);else try{for(let n of v(t,a))T(e,t,i,r,n)}catch(t){e.set(a,{type:"expression-error",expression:a,error:t})}}(n,e,t,a.allowedFieldTypes??c,i),n.size){let e=`${a.expressionName??"expression"} contains invalid or missing fields`;throw new r.A(l,e,{errors:Array.from(n.values()),query:a.query})}}function v(e,t){let i=e.get(t);return i?[i.name]:p(e,y(t),{validateStandardized:!0})}function T(e,t,i,r,a){let s=t.get(a);s?i.has(s.name)?"all"!==r&&!1===r?.has(s.type)&&e.set(a,{type:"invalid-type",fieldName:s.name,fieldType:n.m.fromJSON(s.type),allowedFieldTypes:Array.from(r,e=>n.m.fromJSON(e))}):e.set(a,{type:"missing-field",fieldName:s.name}):e.set(a,{type:"invalid-field",fieldName:a})}function S(e){return null!=e&&e.every(e=>"exceedslimit"!==e.statisticType)}i.d(t,["VW",0,d,"vl",0,u])},58727(e,t,i){i.d(t,{GC:()=>g,T2:()=>x,dO:()=>v,iJ:()=>y});var r=i(49186),a=i(66552),n=i(86211),s=i(39829),l=i(99917),o=i(90634),u=i(60408),d=i(65864),c=i(52039),p=i(21325),f=i(31464);const h=new a.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({});async function y(e,t,i){let r=e.bin;return r.onField&&=r.onField.trim(),r.onExpression?.value&&(r.onExpression.value=r.onExpression.value.trim()),r.splitBy&&(r.splitBy.value&&(r.splitBy.value=r.splitBy.value.trim()),r.splitBy.outAlias&&(r.splitBy.outAlias=r.splitBy.outAlias.trim())),r.stackBy&&(r.stackBy.value&&(r.stackBy.value=r.stackBy.value.trim()),r.stackBy.outAlias&&(r.stackBy.outAlias=r.stackBy.outAlias.trim())),"normalizationField"in r.parameters&&r.parameters.normalizationField&&(r.parameters.normalizationField=r.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:"frequency"}]),g(e,t,i)}async function g(e,t,i){let{outFields:r,orderByFields:a,groupByFieldsForStatistics:n,outStatistics:s}=e;if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(a)for(let e=0;e<a.length;e++)a[e]=a[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(s)for(let e=0;e<s.length;e++)s[e].onStatisticField&&(s[e].onStatisticField=s[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),x(e,t,i)}async function x(e,t,i){if(!e)return null;let{where:r}=e;if(e.where=r=r?.trim(),(!r||/^1 *= *1$/.test(r)||t&&t===r)&&(e.where=null),!e.geometry)return e;let a=await _(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){let{spatialReference:t}=e.geometry;a=(0,o.HA)(a),a.spatialReference=t}if(!a)return e;await(0,f.Nk)(a.spatialReference,i);let[n]=await(0,c.el)((0,d.rS)(a));if(null==n)throw m;let h=!1;((0,u.ZC)(n)||(0,u.Bi)(n)||(0,u.Rg)(n))&&(h=!(0,p.aI)(n.spatialReference,i)&&!(0,l.canProjectWithoutEngine)(n.spatialReference,i)),h&&(0,u.ZC)(n)&&(n=s.A.fromExtent(n));let y="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,g=h&&y?{extendedParams:{densificationStep:8*y}}:void 0,x=n.toJSON(),v=(0,f.Cv)(x,x.spatialReference,i,g);if(!v)throw m;return v.spatialReference=i,e.geometry=v,e}async function _(e){let{distance:t,units:a}=e,s=e.geometry;if(!t||"vertexAttributes"in s)return s;let l=s.spatialReference,o=a?h.fromJSON(a):(0,n.Ij)(l),d=l&&((0,p.EA)(l)||(0,p.K8)(l))?s:await(0,f.Nk)(l,p.KK).then(()=>(0,f.Cv)(s,p.KK)),{geodesicBufferExecute:c,geodesicBufferLoad:m}=await i.e(9159).then(()=>i(49159));await m();let y=c(d,t||1,{unit:o})??void 0;if(!y||!(0,u.Bi)(y)||0===y.rings.length)throw new r.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return y}function v(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}i.d(t,["VY",0,h,"v8",0,m])},62660(e,t,i){i.d(t,{tC:()=>v,c0:()=>_,xt:()=>x});var r=i(49186),a=i(94078),n=i(12176),s=i(60408),l=i(21325);function o(e,t,i){if(!e)return!1;let{coords:r,lengths:a,stride:n}=e,s=!1,l=0;for(let e of a)s=u(s,r,n,l,e,t,i),l+=e*n;return s}function u(e,t,i,r,a,n,s){let l=e,o=r;for(let e=r,u=r+a*i;e<u;e+=i){o=e+i,o===u&&(o=r);let a=t[e],d=t[e+1],c=t[o],p=t[o+1];(d<s&&p>=s||p<s&&d>=s)&&a+(s-d)/(p-d)*(c-a)<n&&(l=!l)}return l}var d=i(90708),c=i(51441),p=i(31464);const f="unsupported-query",h={esriSpatialRelIntersects:!0,esriSpatialRelContains:!0,esriSpatialRelWithin:!0,esriSpatialRelCrosses:!0,esriSpatialRelDisjoint:!0,esriSpatialRelTouches:!0,esriSpatialRelOverlaps:!0,esriSpatialRelEnvelopeIntersects:!0,esriSpatialRelIndexIntersects:!1,esriSpatialRelRelation:!1},m={esriGeometryPoint:!0,esriGeometryMultiPatch:!1,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!0},y={esriGeometryPoint:!0,esriGeometryMultiPatch:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!1},g={esriSpatialRelIntersects:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(6033)]).then(()=>i(55284)).then(e=>e.intersectsExecute),esriSpatialRelContains:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(2990)]).then(()=>i(51508)).then(e=>e.containsExecute),esriSpatialRelCrosses:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(919)]).then(()=>i(87778)).then(e=>e.crossesExecute),esriSpatialRelDisjoint:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(9722)]).then(()=>i(3157)).then(e=>e.disjointExecute),esriSpatialRelEnvelopeIntersects:null,esriSpatialRelIndexIntersects:null,esriSpatialRelOverlaps:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8740)]).then(()=>i(83371)).then(e=>e.overlapsExecute),esriSpatialRelTouches:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(8307)]).then(()=>i(67658)).then(e=>e.touchesExecute),esriSpatialRelWithin:()=>Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(100)]).then(()=>i(65487)).then(e=>e.withinExecute),esriSpatialRelRelation:null};async function x(e,t,i){if((0,s.Bi)(t)){if("esriGeometryPoint"===i&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e)){let e=(0,d.Ye)(t,!1,!1);return t=>function(e,t){return o(e,t.coords[0],t.coords[1])}(e,t)}if("esriGeometryMultipoint"===i){let i=(0,d.Ye)(t,!1,!1);if("esriSpatialRelContains"===e)return e=>function(e,t){let{coords:i,lengths:r,stride:a}=t;if(!r)return!1;for(let t=0,n=0;t<r.length;t++,n+=a)if(!o(e,i[n],i[n+1]))return!1;return!0}(i,e)}}if((0,s.ZC)(t)){if("esriGeometryPoint"===i&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e))return e=>(0,a.qz)(t,(0,c.pL)(i,e));if("esriGeometryMultipoint"===i&&"esriSpatialRelContains"===e)return e=>(0,a.rL)(t,(0,c.pL)(i,e));if("esriSpatialRelIntersects"===e){let e="mesh"===(r=i)?n.xB:(0,n.xK)(r);return r=>e(t,(0,c.pL)(i,r))}}var r;"esriSpatialRelEnvelopeIntersects"===e&&(e="esriSpatialRelIntersects");let l=await function(e){let t=g[e];if(null==t)throw Error(`Cannot load unsupported spatial operator: ${e}`);return t()}(e);return e=>l(t,(0,c.pL)(i,e))}async function _(e,t,i){let{spatialRel:a,geometry:n}=e;if(n){if(null==(o=a)||!0!==h[o])throw new r.A(f,"Unsupported query spatial relationship",{query:e});if((0,l.fn)(n.spatialReference)&&(0,l.fn)(i)){if(!function(e){return null!=e&&!0===m[(0,s.$B)(e)]}(n))throw new r.A(f,"Unsupported query geometry type",{query:e});if(!function(e){return null!=e&&!0===y[e]}(t))throw new r.A(f,"Unsupported layer geometry type",{query:e});if(e.outSR)return(0,p.Nk)(e.geometry?.spatialReference,e.outSR)}}var o}function v(e){if((0,s.ZC)(e))return!0;if((0,s.Bi)(e)){for(let t of e.rings)if(5!==t.length||t[0][0]!==t[1][0]||t[0][0]!==t[4][0]||t[2][0]!==t[3][0]||t[0][1]!==t[3][1]||t[0][1]!==t[4][1]||t[1][1]!==t[2][1])return!1;return!0}return!1}},86420(e,t,i){i.d(t,{I:()=>n,W:()=>a});var r=i(21818);async function a(e,t){if(!e)return null;let i=t.featureAdapter,{startTimeField:a,endTimeField:n}=e,s=1/0,l=-1/0;if(a&&n)await t.forEach(e=>{let t=i.getAttribute((0,r.z)(e),a),o=i.getAttribute((0,r.z)(e),n);null!=t&&!isNaN(t)&&(s=Math.min(s,t)),null!=o&&!isNaN(o)&&(l=Math.max(l,o))});else{let e=a||n;await t.forEach(t=>{let a=i.getAttribute((0,r.z)(t),e);null!=a&&!isNaN(a)&&(s=Math.min(s,a),l=Math.max(l,a))})}return{start:s,end:l}}function n(e,t,i){if(!t||!e)return null;let{startTimeField:r,endTimeField:a}=e;if(!r&&!a)return null;let{start:n,end:s}=t;if(null===n&&null===s)return null;if(void 0===n&&void 0===s)return()=>!1;let l=i.getAttributeAsTimestamp?.bind(i)??i.getAttribute.bind(i);return r&&a?function(e,t,i,r,a){return null!=r&&null!=a?n=>{let s=e(n,t),l=e(n,i);return(null==s||s<=a)&&(null==l||l>=r)}:null!=r?t=>{let a=e(t,i);return null==a||a>=r}:null!=a?i=>{let r=e(i,t);return null==r||r<=a}:void 0}(l,r,a,n,s):function(e,t,i,r){return null!=i&&null!=r&&i===r?r=>e(r,t)===i:null!=i&&null!=r?a=>{let n=e(a,t);return null!=n&&n>=i&&n<=r}:null!=i?r=>{let a=e(r,t);return null!=a&&a>=i}:null!=r?i=>{let a=e(i,t);return null!=a&&a<=r}:void 0}(l,r||a,n,s)}},5834(e,t,i){i.d(t,{A:()=>c});var r=i(32198),a=i(93637),n=i(91429),s=i(78888),l=i(41266),o=i(41366),u=i(93223);function d(e,t,i){(0,a.sM)(i,e instanceof Date?e.getTime():e,t)}let c=class extends((0,o.K)(l.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],c.prototype,"numBins",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.end",write:{writer:d}}})],c.prototype,"end",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.start",write:{writer:d}}})],c.prototype,"start",void 0),(0,r.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,r.Cg)([(0,n.$K)("esri.rest.support.AutoIntervalBinParameters")],c),c.from=(0,s.dp)(c)},41266(e,t,i){i.d(t,{A:()=>m});var r=i(32198),a=i(69540),n=i(66552),s=i(25482),l=i(91429),o=i(78888),u=i(93223);const d=new n.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let c=class extends((0,a.OU)(s.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"outAlias",write:!0}})],c.prototype,"alias",void 0),(0,r.Cg)([(0,l.MZ)({type:String})],c.prototype,"responseType",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"type",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"value",void 0),(0,r.Cg)([(0,u.e)(d)],c.prototype,"valueType",void 0),c=(0,r.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsGrouping")],c);const p=c;c.from=(0,o.dp)(c);const f=new n.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),h=new n.J({naturalLog:"natural-log",squareRoot:"square-root"});let m=class extends((0,a.OU)(s.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],m.prototype,"expression",void 0),(0,r.Cg)([(0,u.e)(f,{name:"onExpression.valueType"})],m.prototype,"expressionValueType",void 0),(0,r.Cg)([(0,l.MZ)({type:String,json:{name:"onField",write:!0}})],m.prototype,"field",void 0),(0,r.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],m.prototype,"firstDayOfWeek",void 0),(0,r.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"hideUpperBound",void 0),(0,r.Cg)([(0,l.MZ)({type:p,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],m.prototype,"splitBy",void 0),(0,r.Cg)([(0,l.MZ)({type:p,json:{write:{target:{stackBy:{type:p},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>p.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],m.prototype,"stackBy",void 0),(0,r.Cg)([(0,u.e)(h)],m.prototype,"transformation",void 0),m=(0,r.Cg)([(0,l.$K)("esri.rest.support.BinParametersBase")],m)},9760(e,t,i){i.d(t,{A:()=>d});var r=i(32198),a=i(66552),n=i(25482),s=i(91429),l=i(93223);const o=new a.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new a.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends n.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,r.Cg)([(0,l.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,r.Cg)([(0,s.MZ)({type:String,json:{read:o.read,write:o.write}})],d.prototype,"classificationMethod",void 0),(0,r.Cg)([(0,s.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"normalizationType",void 0),(0,r.Cg)([(0,s.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,r.Cg)([(0,s.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,r.Cg)([(0,s.$K)("esri.rest.support.ClassBreaksDefinition")],d)},59977(e,t,i){i.d(t,{A:()=>y});var r=i(32198),a=i(93637),n=i(91429),s=i(78888),l=i(41266),o=i(69540),u=i(25482),d=i(57231),c=i(93223);let p=class extends((0,o.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"number",write:!0}})],p.prototype,"value",void 0),(0,r.Cg)([(0,c.e)(d.g)],p.prototype,"unit",void 0),p=(0,r.Cg)([(0,n.$K)("esri.rest.support.DateBinTimeInterval")],p);const f=p;function h(e,t,i){(0,a.sM)(i,"string"==typeof e?e:e?.getTime(),t)}function m(e,t){let i=e.parameters[t];return i?"string"==typeof i?i:new Date(i):null}p.from=(0,s.dp)(p);let y=class extends l.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,r.Cg)([(0,n.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.end",read:{reader:(e,t)=>m(t,"end")},write:{writer:h}}})],y.prototype,"end",void 0),(0,r.Cg)([(0,n.MZ)({type:f,json:{name:"parameters",write:!0}})],y.prototype,"interval",void 0),(0,r.Cg)([(0,n.MZ)({type:f,json:{name:"parameters.offset",write:!0}})],y.prototype,"offset",void 0),(0,r.Cg)([(0,n.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],y.prototype,"returnFullIntervalBin",void 0),(0,r.Cg)([(0,n.MZ)({cast:e=>null==e?null:"string"==typeof e?e:new Date(e),json:{name:"parameters.start",read:{reader:(e,t)=>m(t,"start")},write:{writer:h}}})],y.prototype,"start",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],y.prototype,"snapToData",void 0),(0,r.Cg)([(0,c.e)({dateBin:"date"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,r.Cg)([(0,n.$K)("esri.rest.support.DateBinParameters")],y),y.from=(0,s.dp)(y)},57231(e,t,i){const r=(0,i(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"});i.d(t,["g",0,r])},11440(e,t,i){i.d(t,{A:()=>u});var r=i(32198),a=i(93637),n=i(91429),s=i(78888),l=i(41266),o=i(93223);let u=class extends l.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,i){(0,a.sM)(i,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,r.Cg)([(0,o.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,r.Cg)([(0,n.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,s.dp)(u)},60909(e,t,i){i.d(t,{A:()=>c});var r=i(32198),a=i(93637),n=i(91429),s=i(78888),l=i(41266),o=i(41366),u=i(93223);function d(e,t,i){(0,a.sM)(i,e instanceof Date?e.getTime():e,t)}let c=class extends((0,o.K)(l.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.end",write:{writer:d}}})],c.prototype,"end",void 0),(0,r.Cg)([(0,n.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],c.prototype,"interval",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"parameters.start",write:{writer:d}}})],c.prototype,"start",void 0),(0,r.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,r.Cg)([(0,n.$K)("esri.rest.support.FixedIntervalBinParameters")],c),c.from=(0,s.dp)(c)},41366(e,t,i){var r=i(32198),a=i(66552),n=i(53966),s=i(91429),l=i(93223);const o=(0,a.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",d="field";i.d(t,["K",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&d||i&&u||null,t&&i&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===d||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,l.e)(o,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,o])},84892(e,t,i){i.d(t,{t:()=>n});var r=i(53966);function a(e,t){return Number(e.toFixed(t))}function n(e,t){let{normalizationTotal:i}=e;return{classBreaks:s(e,t),normalizationTotal:i}}function s(e,t){let i=e.definition,{classificationMethod:r,normalizationType:n,definedInterval:s}=i,u=i.breakCount??1,d=[],c=e.values;if(0===c.length)return[];c=c.sort((e,t)=>e-t);let[p,f]=t??[c.at(0),c.at(-1)];if("equal-interval"===r)if(c.length>=u){let e=(f-p)/u,t=p;for(let i=1;i<u;i++){let r=a(p+i*e,6);d.push({minValue:t,maxValue:r,label:l(t,r,n)}),t=r}d.push({minValue:t,maxValue:f,label:l(t,f,n)})}else c.forEach(e=>{d.push({minValue:e,maxValue:e,label:l(e,e,n)})});else if("natural-breaks"===r){let t=function(e){let t=[],i=[],r=Number.MIN_VALUE,a=1,n=-1;for(let s=0;s<e.length;s++){let l=e[s];l===r?(a++,i[n]=a):null!==l&&(t.push(l),r=l,a=1,i.push(a),n++)}return{uniqueValues:t,valueFrequency:i}}(c),i=e.valueFrequency||t.valueFrequency,r=o(t.uniqueValues,i,u),s=p;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){let i=a(t.uniqueValues[r[e]],6);d.push({minValue:s,maxValue:i,label:l(s,i,n)}),s=i}d.push({minValue:s,maxValue:f,label:l(s,f,n)})}else if("quantile"===r)if(c.length>=u&&p!==f){let e=p,t=Math.ceil(c.length/u),i=0;for(let r=1;r<u;r++){let a=t+i-1;a>c.length&&(a=c.length-1),a<0&&(a=0),d.push({minValue:e,maxValue:c[a],label:l(e,c[a],n)}),e=c[a],i+=t,t=Math.ceil((c.length-i)/(u-r))}d.push({minValue:e,maxValue:f,label:l(e,f,n)})}else{let e=-1;for(let t=0;t<c.length;t++){let i=c[t];i!==e&&(e=i,d.push({minValue:e,maxValue:i,label:l(e,i,n)}),e=i)}}else if("standard-deviation"===r){let e=function(e){let t=0;for(let i=0;i<e.length;i++)t+=e[i];return t/=e.length,t}(c),t=function(e,t){let i=0;for(let r=0;r<e.length;r++){let a=e[r];i+=(a-t)*(a-t)}return i/=e.length,Math.sqrt(i)}(c,e);if(0===t)d.push({minValue:c[0],maxValue:c[0],label:l(c[0],c[0],n)});else{let i=function(e,t,i,r,a){let n=Math.max(r-e,t-r)/a/i;return n=n>=1?1:n>=.5?.5:.25,n}(p,f,u,e,t)*t,r=0,s=p;for(let t=u;t>=1;t--){let o=a(e-(t-.5)*i,6);d.push({minValue:s,maxValue:o,label:l(s,o,n)}),s=o,r++}let o=a(e+.5*i,6);d.push({minValue:s,maxValue:o,label:l(s,o,n)}),s=o,r++;for(let t=1;t<=u;t++)o=r===2*u?f:a(e+(t+.5)*i,6),d.push({minValue:s,maxValue:o,label:l(s,o,n)}),s=o,r++}}else if("defined-interval"===r){if(!s)return d;let[e,i]=t??[c.at(0),c.at(-1)],r=Math.ceil((i-e)/s),o=e;for(let t=1;t<r;t++){let i=a(e+t*s,6);d.push({minValue:o,maxValue:i,label:l(o,i,n)}),o=i}d.push({minValue:o,maxValue:i,label:l(o,i,n)})}return d}function l(e,t,i){let r=null;return r=e===t?i&&"percent-of-total"===i?e+"%":e.toString():i&&"percent-of-total"===i?e+"% - "+t+"%":e+" - "+t,r}function o(e,t,i){let r=e.length,a=[];i>r&&(i=r);for(let e=0;e<i;e++)a.push(Math.round(e*r/i-1));a.push(r-1);let n=u(a,e,t,i);return function(e,t,i,r,a,n){let s=0,l=0,o=0,u=0,c=!0;for(let p=0;p<2&&c;p++){0===p&&(c=!1);for(let p=0;p<n-1;p++)for(;i[p+1]+1!==i[p+2];){i[p+1]=i[p+1]+1;let n=d(p,i,r,a);o=n.sbMean,s=n.sbSdcm;let f=d(p+1,i,r,a);if(u=f.sbMean,l=f.sbSdcm,!(s+l<t[p]+t[p+1])){i[p+1]=i[p+1]-1;break}t[p]=s,t[p+1]=l,e[p]=o,e[p+1]=u,c=!0}for(let p=n-1;p>0;p--)for(;i[p]!==i[p-1]+1;){i[p]=i[p]-1;let n=d(p-1,i,r,a);o=n.sbMean,s=n.sbSdcm;let f=d(p,i,r,a);if(u=f.sbMean,l=f.sbSdcm,!(s+l<t[p-1]+t[p])){i[p]=i[p]+1;break}t[p-1]=s,t[p]=l,e[p-1]=o,e[p]=u,c=!0}}return c}(n.mean,n.sdcm,a,e,t,i)&&(n=u(a,e,t,i)),a}function u(e,t,i,r){let a=[],n=[],s=[],l=0,o=[],u=[];for(let a=0;a<r;a++){let r=d(a,e,t,i);o.push(r.sbMean),u.push(r.sbSdcm),l+=u[a]}let c,p=l,f=!0;for(;f||l<p;){f=!1,a=[];for(let t=0;t<r;t++)a.push(e[t]);for(let i=0;i<r;i++)for(let a=e[i]+1;a<=e[i+1];a++)if(c=t[a],i>0&&a!==e[i+1]&&Math.abs(c-o[i])>Math.abs(c-o[i-1]))e[i]=a;else if(i<r-1&&e[i]!==a-1&&Math.abs(c-o[i])>Math.abs(c-o[i+1])){e[i+1]=a-1;break}p=l,l=0,n=[],s=[];for(let a=0;a<r;a++){n.push(o[a]),s.push(u[a]);let r=d(a,e,t,i);o[a]=r.sbMean,u[a]=r.sbSdcm,l+=u[a]}}if(l>p){for(let t=0;t<r;t++)e[t]=a[t],o[t]=n[t],u[t]=s[t];l=p}return{mean:o,sdcm:u}}function d(e,t,i,a){let n=0,s=0;for(let r=t[e]+1;r<=t[e+1];r++){let e=a[r];n+=i[r]*e,s+=e}s<=0&&r.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");let l=n/s,o=0;for(let r=t[e]+1;r<=t[e+1];r++)o+=a[r]*(i[r]-l)**2;return{sbMean:l,sbSdcm:o}}},1873(e,t,i){i.d(t,{$y:()=>N,Ak:()=>D,FM:()=>h,G_:()=>p,Rw:()=>O,Vb:()=>d,b3:()=>A,gJ:()=>u,jM:()=>V,lv:()=>b,oZ:()=>w,qg:()=>f,sU:()=>z,z9:()=>c,zS:()=>C});var r=i(9760),a=i(84892);const n=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,s=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),l=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),o=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function d(e){let t=null!=e.normalizationField||null!=e.normalizationType,i=null!=e.minValue||null!=e.maxValue,r=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!i&&!r}function c(e){let{outStatisticTypes:t}=e,i=e.returnDistinct?[...new Set(e.values)]:e.values,r=i.filter(e=>null!=e).sort(),a=r.length,n={count:a,min:r[0],max:r[a-1]};return e.supportsNullCount&&(n.nullcount=i.length-a),e.percentileParams&&(!t?.include?.length||t.include.includes("median"))&&(!t?.exclude?.length||!t.exclude.includes("median"))&&(n.median=f(i,e.percentileParams)),n}function p(e){let{values:t,useSampleStdDev:i,supportsNullCount:r,outStatisticTypes:a}=e,n=1/0,s=-1/0,l=null,o=null,u=null,d=null,c=0,p=null==e.minValue?-1/0:e.minValue,h=null==e.maxValue?1/0:e.maxValue;for(let e of t)Number.isFinite(e)?e>=p&&e<=h&&(l=null===l?e:l+e,n=Math.min(n,e),s=Math.max(s,e),c++):"string"==typeof e&&c++;if(c&&null!=l){o=l/c;let e=0;for(let i of t)Number.isFinite(i)&&i>=p&&i<=h&&(e+=(i-o)**2);d=i?c>1?e/(c-1):0:c>0?e/c:0,u=Math.sqrt(d)}else n=null,s=null;let m={avg:o,count:c,max:s,min:n,stddev:u,sum:l,variance:d};return r&&(m.nullcount=t.length-c),e.percentileParams&&(!a?.include?.length||a.include.includes("median"))&&(!a?.exclude?.length||!a.exclude.includes("median"))&&(m.median=f(t,e.percentileParams)),m}function f(e,t){let{fieldType:i,value:r,orderBy:a,isDiscrete:n}=t,s=h(i,"desc"===a,"case-insensitive");if(e=[...e].filter(e=>null!=e).sort((e,t)=>s(e,t)),0===e.length)return null;if(r<=0)return e[0];if(r>=1)return e[e.length-1];let l=(e.length-1)*r,o=Math.floor(l),u=o+1,d=l%1,c=e[o],p=e[u];return u>=e.length||n||"string"==typeof c||"string"==typeof p?c:c*(1-d)+p*d}function h(e,t,i="case-sensitive"){if(e){if(s.has(e))return R(t);if(l.has(e))return S(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?_:x}(t);let r=S(t,"case-sensitive"===i);if("esriFieldTypeString"===e)return r;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>r(I(e),I(t))}let r=t?1:-1,a=R(t),n=S(t,"case-sensitive"===i),o=g(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?a(e,t):"string"==typeof e&&"string"==typeof t?n(e,t):o(e,t)??r}const m=(e,t)=>null==e?null==t?0:1:null==t?-1:null,y=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function g(e){return e?m:y}const x=(e,t)=>y(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),_=(e,t)=>m(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),v=(e,t)=>y(e,t)??(e===t?0:e<t?-1:1),T=(e,t)=>m(e,t)??(e===t?0:e<t?1:-1);function S(e,t){if(t)return e?T:v;let i=g(e);return e?(e,t)=>i(e,t)??((e=e.toUpperCase())>(t=t.toUpperCase())?-1:+(e<t)):(e,t)=>i(e,t)??((e=e.toUpperCase())<(t=t.toUpperCase())?-1:+(e>t))}const F=(e,t)=>m(e,t)??t-e,E=(e,t)=>y(e,t)??e-t;function R(e){return e?F:E}function I(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function w(e,t,i){let r;for(r in e)t?.include?.length&&!t.include.includes(r)||t?.exclude?.length&&t.exclude.includes(r)?delete e[r]:o.includes(r)&&(Number.isFinite(e[r])||(e[r]=null));return i&&["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e}function A(e){let t={};for(let i of e)(null==i||"string"==typeof i&&""===i.trim())&&(i=null),null==t[i]?t[i]={count:1,data:i}:t[i].count++;return{count:t}}function M(e){return"coded-value"===e?.type?e.codedValues.map(e=>e.code):[]}function b(e,t,i,r){let a=e.count,n=[];if(i&&t){let e=[],i=M(t[0]);for(let a of i)if(t[1]){let i=M(t[1]);for(let n of i)if(t[2]){let i=M(t[2]);for(let t of i)e.push(`${u(a)}${r}${u(n)}${r}${u(t)}`)}else e.push(`${u(a)}${r}${u(n)}`)}else e.push(a);for(let t of e)a.hasOwnProperty(t)||(a[t]={data:t,count:0})}for(let e in a){let t=a[e];n.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:n}}function C(e,t,i,r){let a=null;switch(t){case"log":0!==e&&(a=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(r)&&0!==r&&(a=e/r*100);break;case"field":Number.isFinite(i)&&0!==i&&(a=e/i);break;case"natural-log":e>0&&(a=Math.log(e));break;case"square-root":e>0&&(a=e**.5)}return a}function O(e,t,i){let n=function(e){let{breakCount:t,field:i,normalizationField:a,normalizationType:n}=e,s=e.classificationMethod||"equal-interval",l="standard-deviation"===s?e.standardDeviationInterval||1:void 0,o="defined-interval"===s?e.definedInterval:void 0;return new r.A({breakCount:t,classificationField:i,classificationMethod:s,normalizationField:"field"===n?a:void 0,normalizationType:n,standardDeviationInterval:l,definedInterval:o})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,i){let r=t??-1/0,a=i??1/0;return e.filter(e=>Number.isFinite(e)&&e>=r&&e<=a)}(e,t.minValue,t.maxValue),(0,a.t)({definition:n,values:e,normalizationTotal:t.normalizationTotal},i)}function V(e,t){let i=e.classBreaks,r=i.length,a=i[0]?.minValue,s=i[r-1]?.maxValue,l="standard-deviation"===t,o=n;return i=i.map(e=>{let t=e.label,i={minValue:e.minValue,maxValue:e.maxValue,label:t};if(l&&t){let e=t.match(o)?.map(e=>+e.trim())??[];2===e.length?(i.minStdDev=e[0],i.maxStdDev=e[1],e[0]<0&&e[1]>0&&(i.hasAvg=!0)):1===e.length&&(t.includes("<")?(i.minStdDev=null,i.maxStdDev=e[0]):t.includes(">")&&(i.minStdDev=e[0],i.maxStdDev=null))}return i}),{minValue:a,maxValue:s,classBreakInfos:i,normalizationTotal:e.normalizationTotal}}function N(e,t){let i=z(e,t);if(null==i.min&&null==i.max)return{bins:[],minValue:i.min,maxValue:i.max,normalizationTotal:t.normalizationTotal};let r=i.intervals,a=i.min??0,n=i.max??0,s=r.map((e,t)=>({minValue:r[t][0],maxValue:r[t][1],count:0}));for(let t of e)if(null!=t&&t>=a&&t<=n){let e=D(r,t);e>-1&&s[e].count++}return{bins:s,minValue:a,maxValue:n,normalizationTotal:t.normalizationTotal}}function z(e,t,i=!1){let{field:r,classificationMethod:a,standardDeviationInterval:n,definedInterval:s,normalizationType:l,normalizationField:o,normalizationTotal:u,minValue:c,maxValue:f}=t,h=t.numBins||10,m=null,y=null,g=null;if(a&&"equal-interval"!==a||l){let{classBreaks:t}=O(e,{field:r,normalizationType:l,normalizationField:o,normalizationTotal:u,classificationMethod:a,standardDeviationInterval:n,definedInterval:s,minValue:c,maxValue:f,numClasses:h},null!=c&&null!=f?[c,f]:void 0);m=t[0]?.minValue,y=t[t.length-1]?.maxValue,g=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=c&&null!=f)m=c,y=f;else{let t=p({values:e,minValue:c,maxValue:f,useSampleStdDev:!l,supportsNullCount:d({normalizationType:l,normalizationField:o,minValue:c,maxValue:f})});m=t.min??null,y=t.max??null}g=function(e,t,i){let r,a=(t-e)/i,n=[],s=e;for(let e=1;e<=i;e++)r=s+a,r=Number(r.toFixed(16)),n.push([s,e===i?t:r]),s=r;return n}(m??0,y??0,h)}if(i&&g.length){let e=g.at(-1)[1];g.push([e,e])}return{min:m,max:y,intervals:g}}function D(e,t){let i=-1;for(let r=e.length-1;r>=0;r--)if(t>=e[r][0]){i=r;break}return i}},92359(e,t,i){i.d(t,{nu:()=>p,W6:()=>u}),i(4576),i(71511),i(44208),i(53966);var r=i(17676),a=(i(36708),i(44794),i(78659)),n=i(32198),s=i(69622),l=i(91429);let o=class extends s.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,n.Cg)([(0,l.MZ)()],o.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,n.Cg)([(0,l.MZ)()],o.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),o=(0,n.Cg)([(0,l.$K)("esri.views.support.debugFlags")],o),new o,i(49186),Symbol("Yield");const u={RESOURCE_CONTROLLER_IMMEDIATE:"immediate",RESOURCE_CONTROLLER:"schedule",SLIDE:"slide",STREAM_DATA_LOADER:"stream loader",ELEVATION_QUERY:"elevation query",TERRAIN_SURFACE:"terrain",SURFACE_GEOMETRY_UPDATES:"surface geometry updates",LOD_RENDERER:"LoD renderer",GRAPHICS_CORE:"Graphics3D",I3S:"I3S",LYR3D:"Lyr3D",TILES3D:"3DTiles",POINT_CLOUD_LAYER:"point cloud",FEATURE_TILE_FETCHER:"feature fetcher",STREAM_CONTROLLER:"stream controller",SCREEN_POLYGON_INTERSECTION:"screen polygon intersection",OCCLUSION_QUERY:"occlusion query",OVERLAY:"overlay",OVERLAY_RENDERER:"overlay renderer",STAGE:"stage",GRAPHICS_DECONFLICTOR:"graphics deconflictor",FILTER_VISIBILITY:"graphics filter visibility",SCALE_VISIBILITY:"graphics scale visibility",FRUSTUM_VISIBILITY:"graphics frustum visibility",POINT_OF_INTEREST_FREQUENT:"POI frequent",POINT_OF_INTEREST_INFREQUENT:"POI infrequent",LABELER:"labeler",FEATURE_QUERY_ENGINE:"feature query",FEATURE_TILE_TREE:"feature tile tree",FEATURE_TILE_TREE_ACTIVE:"fast feature tile tree",ELEVATION_ALIGNMENT:"elevation alignment",ELEVATION_ALIGNMENT_SCENE:"elevation alignment scene",TEXT_TEXTURE_ATLAS:"text texture atlas",TEXTURE_UNLOAD:"texture unload",LINE_OF_SIGHT_TOOL:"line of sight tool",LINE_OF_SIGHT_TOOL_INTERACTIVE:"interactive line of sight tool",VOLUME_MEASUREMENT:"volume measurement",ELEVATION_PROFILE:"elevation profile",SNAPPING:"snapping",SHADOW_ACCUMULATOR:"shadow accumulator",CLOUDS_GENERATOR:"clouds generator",FLOW_GENERATOR:"flow generator",GAUSSIAN_SPLAT_SORTING:"gaussian splat sorting",GAUSSIAN_SPLAT_TEXTURE_ATLAS:"gaussian splat texture atlas",MAPVIEW_FETCH_QUEUE:"mapview fetch queue",MAPVIEW_LAYERVIEW_UPDATE:"mapview layerview update",MAPVIEW_VECTOR_TILE_PARSING_QUEUE:"mapview vector tile parsing queue",NONE:0,TEST_PRIO:1};new Map([[u.RESOURCE_CONTROLLER_IMMEDIATE,0],[u.RESOURCE_CONTROLLER,4],[u.SLIDE,0],[u.STREAM_DATA_LOADER,0],[u.ELEVATION_QUERY,0],[u.TERRAIN_SURFACE,1],[u.SURFACE_GEOMETRY_UPDATES,1],[u.LOD_RENDERER,2],[u.GRAPHICS_CORE,2],[u.I3S,2],[u.LYR3D,2],[u.TILES3D,3],[u.POINT_CLOUD_LAYER,2],[u.FEATURE_TILE_FETCHER,2],[u.STREAM_CONTROLLER,2],[u.SCREEN_POLYGON_INTERSECTION,0],[u.CLOUDS_GENERATOR,2],[u.OCCLUSION_QUERY,2],[u.OVERLAY,4],[u.OVERLAY_RENDERER,4],[u.STAGE,4],[u.GRAPHICS_DECONFLICTOR,4],[u.FILTER_VISIBILITY,4],[u.SCALE_VISIBILITY,4],[u.FRUSTUM_VISIBILITY,4],[u.POINT_OF_INTEREST_FREQUENT,6],[u.POINT_OF_INTEREST_INFREQUENT,30],[u.LABELER,8],[u.FEATURE_QUERY_ENGINE,8],[u.FEATURE_TILE_TREE,16],[u.FEATURE_TILE_TREE_ACTIVE,0],[u.ELEVATION_ALIGNMENT,12],[u.ELEVATION_ALIGNMENT_SCENE,14],[u.TEXT_TEXTURE_ATLAS,12],[u.TEXTURE_UNLOAD,12],[u.LINE_OF_SIGHT_TOOL,16],[u.LINE_OF_SIGHT_TOOL_INTERACTIVE,0],[u.VOLUME_MEASUREMENT,4],[u.SNAPPING,0],[u.SHADOW_ACCUMULATOR,30],[u.FLOW_GENERATOR,12],[u.GAUSSIAN_SPLAT_SORTING,2],[u.GAUSSIAN_SPLAT_TEXTURE_ATLAS,12],[u.MAPVIEW_FETCH_QUEUE,0],[u.MAPVIEW_LAYERVIEW_UPDATE,2],[u.MAPVIEW_VECTOR_TILE_PARSING_QUEUE,0]]),(0,a.l5)(6.5),(0,a.l5)(1),(0,a.l5)(30),(0,a.l5)(1e3/30),(0,a.l5)(100),Symbol.dispose;const d=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};d.enabled=!1;class c{remove(){}[Symbol.dispose](){this.remove()}processQueue(){}schedule(e,t,i){try{if((0,r.G4)(t)){let e=(0,r.NK)();return i?Promise.resolve(i(e)):Promise.reject(e)}return(0,r.z7)(e(d))}catch(e){return Promise.reject(e)}}reschedule(e,t,i){return this.schedule(e,t,i)}async scheduleGenerator(e,t,i){if((0,r.G4)(t)){let e=(0,r.NK)();if(i)return i(e);throw e}let a=e(d);for(;;){let e=a.next(d),n=(0,r.$X)(e)?await e:e;if((0,r.G4)(t)){let e=(0,r.NK)();if(i){let t=i(e),n=a.return(null);return(0,r.$X)(n)&&await(0,r.QZ)(n),t}let t=a.throw(e);throw(0,r.$X)(t)&&await(0,r.QZ)(t),e}if(n.done)return n.value}}}const p=new c}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[909,5613],{22429(e,a,t){t.d(a,{v:()=>n});var r=t(7861);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){let t=this._serviceMetadatas.get(e);if(t)return t;let n=await(0,r.L)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){let{id:a}=e;if(!a)return null;let{_itemDatas:t}=this;if(t.has(a))return t.get(a);let r=await e.fetchData();return t.set(a,r),r}async fetchCustomParameters(e,a){let t=await this.fetchItemData(e);return t&&"object"==typeof t&&(a?a(t):t.customParameters)||null}}},92009(e,a,t){t.d(a,{L:()=>o});var r=t(70333),n=t(56507),l=t(49186),s=t(17676),i=t(60694),u=t(20655),c=t(80812);async function o(e,a){let t=(0,i.qg)(e);if(!t)throw new l.A("invalid-url","Invalid scene service url");let o={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(o.sceneLayerItem??=await async function(e){let a=(await y(e)).serviceItemId;if(!a)return null;let t=new c.default({id:a,apiKey:e.apiKey}),l=await async function(e){let a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;let t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{let a=(await(0,n.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.QP)(e)}return null}(e);null!=l&&(t.portal=new u.A({url:l}));try{return await t.load({signal:e.signal})}catch(e){return(0,s.QP)(e),null}}(o),null==o.sceneLayerItem)return f(o.sceneServerUrl.replace("/SceneServer","/FeatureServer"),o);let m=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{let t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!t)return null;let r=new c.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,s.QP)(e),null}}(o);if(!m?.url)throw new l.A("related-service-not-found","Could not find feature service through portal item relationship");o.featureServiceItem=m;let d=await f(m.url,o);return d.portalItem=m,d}async function y(e){if(e.rootDocument)return e.rootDocument;let a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{e.rootDocument=(await(0,n.A)(e.sceneServerUrl,a)).data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,a){let t=(0,i.qg)(e);if(!t)throw new l.A("invalid-feature-service-url","Invalid feature service url");let r=t.url.path,s=a.layerId;if(null==s)return{serverUrl:r};let u=y(a),c=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,o=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,f=e=>{let t={query:{f:"json",...o},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(r,t)},m=f("anonymous").catch(()=>f("no-prompt")),[d,L]=await Promise.all([m,u]),p=L?.layers,w=d.data&&d.data.layers;if(!Array.isArray(w))throw Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,w.length);e++)if(p[e].id===s)return{serverUrl:r,layerId:w[e].id}}else if(null!=s&&s<w.length)return{serverUrl:r,layerId:w[s].id};throw Error("could not find matching associated sublayer")}},23154(e,a,t){t.d(a,{A6:()=>i,Aq:()=>L,Jo:()=>d,QM:()=>s});var r=t(77548),n=t(7861);const l=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,a){let{serviceJSON:t,layersJSON:r,...n}=await i(e,a);o(t);let l={serviceJSON:t,...n};return r&&(o(r),l.layersJSON=r),l}async function i(e,a){let{loadContext:t,...l}=a||{},s=t?await t.fetchServiceMetadata(e,l):await(0,n.L)(e,l),i=(0,r.G$)();m(s);let u={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return u;let c=`${(0,r.$x)()??e}/layers`,o=t?await t.fetchServiceMetadata(c,l):await(0,n.L)(c,l);return m(o),u.layersJSON={layers:o.layers,tables:o.tables},u}function u(e){return l.has(e.type)}function c(e){return"Table"===e.type}function o(e){e.layers=e.layers?.filter(u),e.tables=e.tables?.filter(c)}function y(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function m(e){e.layers?.forEach(y),e.tables?.forEach(f)}function d(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function L(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,t){const r={AnnotationFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(7283),t.e(7537)]).then(()=>t(20737))).default,BingMapsLayer:async()=>(await Promise.all([t.e(6914),t.e(7865),t.e(5732),t.e(6684)]).then(()=>t(17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(6361),t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(9789),t.e(4674),t.e(7283),t.e(8589),t.e(7005),t.e(9480),t.e(8505),t.e(9389)]).then(()=>t(82411))).default,CSVLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(5683)]).then(()=>t(68695))).default,CatalogLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(9789),t.e(4674),t.e(893),t.e(7283),t.e(7013),t.e(7067),t.e(3312)]).then(()=>t(83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(2889),t.e(4674),t.e(7283),t.e(8361)]).then(()=>t(25077))).default,DimensionLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(3813)]).then(()=>t(71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(9953),t.e(8732),t.e(3169)]).then(()=>t(38732))).default,FeatureLayer:async()=>(await Promise.all([t.e(6361),t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(9789),t.e(4674),t.e(7283),t.e(8589),t.e(6217)]).then(()=>t(18589))).default,GaussianSplatLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(2047),t.e(6475)]).then(()=>t(36475))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(221)]).then(()=>t(15481))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(9657)]).then(()=>t(63201))).default,GeospatialPDFLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(9187),t.e(8885),t.e(7865),t.e(9117),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(3299),t.e(9944),t.e(2754),t.e(6841),t.e(9859),t.e(5485),t.e(4642),t.e(7063)]).then(()=>t(87063))).default,GroupLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5356),t.e(6569)]).then(()=>t(85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(893),t.e(9944),t.e(6841),t.e(5676),t.e(3452),t.e(7772)]).then(()=>t(87772))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(9944),t.e(2754),t.e(6841),t.e(5676),t.e(9859),t.e(9235),t.e(3452),t.e(1003),t.e(2806),t.e(7870)]).then(()=>t(90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(9953),t.e(2047),t.e(6451),t.e(9229)]).then(()=>t(61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(9953),t.e(7552),t.e(1843),t.e(7005),t.e(9480),t.e(2047),t.e(8197),t.e(6451),t.e(3527)]).then(()=>t(49013))).default,KMLLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(3910),t.e(5128),t.e(564),t.e(1214),t.e(5051),t.e(6854),t.e(4859)]).then(()=>t(162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(9789),t.e(9696),t.e(359),t.e(5752),t.e(6151),t.e(3902),t.e(4934),t.e(8692)]).then(()=>t(28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(4470),t.e(9695)]).then(()=>t(49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(9789),t.e(9696),t.e(359),t.e(5752),t.e(6151),t.e(3902),t.e(4934),t.e(3309)]).then(()=>t(93309))).default,MapImageLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(4674),t.e(893),t.e(8470),t.e(2241)]).then(()=>t(7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(6361),t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(9789),t.e(4674),t.e(7283),t.e(8589),t.e(6151),t.e(4403)]).then(()=>t(96299))).default,MediaLayer:async()=>(await Promise.all([t.e(6361),t.e(9917),t.e(6914),t.e(7865),t.e(5485),t.e(3121)]).then(()=>t(99557))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(8505),t.e(5977)]).then(()=>t(65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(7269),t.e(349)]).then(()=>t(40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(6361),t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(9789),t.e(4674),t.e(7283),t.e(8589),t.e(1402)]).then(()=>t(16852))).default,ParquetLayer:async()=>(await Promise.all([t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(3819),t.e(3483),t.e(2100)]).then(()=>t(99680))).default,PointCloudLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(2869),t.e(7984),t.e(7885)]).then(()=>t(77885))).default,RouteLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(2869),t.e(3910),t.e(5128),t.e(564),t.e(1214),t.e(5051),t.e(6854),t.e(4779)]).then(()=>t(39622))).default,SceneLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(2869),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(7005),t.e(9480),t.e(8505),t.e(4844)]).then(()=>t(2e4))).default,SketchLayer:async()=>(await Promise.all([t.e(6361),t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(9789),t.e(4674),t.e(7283),t.e(8589),t.e(6151),t.e(4152)]).then(()=>t(15056))).default,StreamLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(557)]).then(()=>t(79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(6361),t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(2889),t.e(9789),t.e(4674),t.e(7283),t.e(1951)]).then(()=>t(97483))).default,TileLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(4674),t.e(893),t.e(8470),t.e(6811)]).then(()=>t(71756))).default,UnknownLayer:async()=>(await Promise.all([t.e(9917),t.e(146)]).then(()=>t(146))).default,UnsupportedLayer:async()=>(await Promise.all([t.e(9917),t.e(5165)]).then(()=>t(45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(9953),t.e(5228),t.e(7499),t.e(9260)]).then(()=>t(50638))).default,VideoLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(3910),t.e(5128),t.e(4674),t.e(575)]).then(()=>t(86875))).default,ViewshedLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(4470),t.e(6650)]).then(()=>t(96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(2869),t.e(167)]).then(()=>t(90167))).default,WCSLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(9944),t.e(2754),t.e(6841),t.e(5676),t.e(9859),t.e(9235),t.e(3452),t.e(2806),t.e(2061)]).then(()=>t(20521))).default,WFSLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(9953),t.e(3910),t.e(5128),t.e(564),t.e(7552),t.e(1214),t.e(5051),t.e(2889),t.e(6854),t.e(1017),t.e(9281)]).then(()=>t(21901))).default,WMSLayer:async()=>(await Promise.all([t.e(6361),t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(2869),t.e(3910),t.e(5128),t.e(1904)]).then(()=>t(51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(7269),t.e(309)]).then(()=>t(20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(9917),t.e(6914),t.e(7865),t.e(5732),t.e(7269)]).then(()=>t(47314))).default};t.d(a,["U",0,r])},66964(e,a,t){t.d(a,{Ju:()=>w,K8:()=>g,XH:()=>h,Y5:()=>p,_r:()=>i,bO:()=>c,l:()=>I,nu:()=>v,pJ:()=>o,rc:()=>y});var r=t(60694),n=t(92009),l=t(23154),s=t(77548);function i(e,a){let{id:t,name:r}=e,n={id:t,name:r};return u(n,e,a),n}function u(e,a,t){let r=(0,l.Aq)(a.type,t);r&&(e.layerType=r)}async function c(e,a,t){let r,n;if(function(e){return!!e&&Array.isArray(e.layers)&&Array.isArray(e.tables)}(e)&&f(e))n=e;else{let l=await t.fetchServiceMetadata(a,{customParameters:o(e)?.customParameters});r=(0,s.G$)(),n=m(e,l),d(n,l)}return L(n),{data:n,preferredHost:r}}function o(e){if(!e)return null;let{layers:a,tables:t}=e;return a?.[0]??t?.[0]??null}function y(e,a){return null==a?null:[...e.layers??[],...e.tables??[]].find(e=>e.id===a)}function f(e){return[...e.layers??[],...e.tables??[]].every(e=>!!e.layerType)}function m(e,a){return{...e,layers:e?.layers??a.layers?.map(e=>i(e))??[],tables:e?.tables??a.tables?.map(e=>i(e,!0))??[]}}function d(e,a){let t=e.layers??[],r=e.tables??[],n=[...a.layers??[],...a.tables??[]];for(let e of[...t,...r]){let{id:a,layerType:t}=e;if(t)continue;let l=n.find(({id:e})=>e===a);l&&u(e,l,r.includes(e))}}function L(e){e.layers=e.layers?.filter(P),e.tables=e.tables?.filter(P)}async function p(e,a,t){if(e?.layers?.length||e?.tables?.length){if(!f(e)){let n=(0,r.qg)(a)?.url.path;if(!n)return;d(e,await t.fetchServiceMetadata(n,{customParameters:o(e)?.customParameters}))}L(e)}}function w(e,a){return[...e.layers??[],...e.tables??[]].filter(({layerType:e})=>e?a.includes(e):a.includes("ArcGISFeatureLayer"))}function h(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}const S=new Set(["ArcGISAnnotationLayer","ArcGISDimensionLayer","ArcGISFeatureLayer","CatalogLayer","OrientedImageryLayer","SubtypeGroupLayer","SubtypeGroupTable","Table"]);function P(e){return!!e.layerType&&S.has(e.layerType)}function I(e){switch(e){case"annotation-feature":return["ArcGISAnnotationLayer"];case"catalog":return["CatalogLayer"];case"dimension-feature":return["ArcGISDimensionLayer"];case"feature":return["ArcGISFeatureLayer","Table"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function g(e){switch(e){case"ArcGISAnnotationLayer":return"AnnotationFeatureLayer";case"ArcGISDimensionLayer":return"DimensionFeatureLayer";case"ArcGISFeatureLayer":case"Table":return"FeatureLayer";case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return null}async function v(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){let r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(e=>i(e))}let{serverUrl:r,portalItem:l}=await(0,n.L)(e.url,{sceneLayerItem:e,customParameters:o(a)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==r)return a.tables=[],a;if(!a.tables&&l){let e=await l.fetchData().catch(()=>null);if(e?.tables)a.tables=e.tables.map(({id:e,name:a})=>({id:e,name:a}));else{let n=await t.fetchServiceMetadata(r,{customParameters:o(e)?.customParameters}).catch(()=>null);a.tables=n?.tables?.map(e=>i(e,!0))}}if(a.tables)for(let e of a.tables)e.url=`${r}/${e.id}`;return a}},10407(e,a,t){t.d(a,{It:()=>m,LG:()=>s,OM:()=>c,Sm:()=>o,Y:()=>i,bK:()=>u,sQ:()=>y});var r=t(99917),n=t(16930),l=t(28735);function s(e,a){if(!i(e,a)){let t=e.typeKeywords;t?t.push(a):e.typeKeywords=[a]}}function i(e,a){return!!e.typeKeywords?.includes(a)}function u(e){return i(e,f.HOSTED_SERVICE)}function c(e,a){let t=e.typeKeywords;if(t){let e=t.indexOf(a);e>-1&&t.splice(e,1)}}function o(e,a,t){t?s(e,a):c(e,a)}async function y(e){let a,t=e.clone().normalize();if(t.length>1)for(let e of t)a?e.width>a.width&&(a=e):a=e;else a=t[0];return async function(e){let a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,l.ci)(e);let t=n.A.WGS84;return await(0,r.initializeProjection)(a,t),(0,r.project)(e,t)}(a)}const f={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function m(e){let{portal:a,isOrgItem:t,itemControl:r}=e,n=a.user?.privileges,l=!n||n.includes("features:user:edit"),s=!!t&&!!n?.includes("features:user:fullEdit"),i="update"===r||"admin"===r;return i?s=l=!0:s&&(l=!0),{features:{edit:l,fullEdit:s},content:{updateItem:i}}}t.d(a,["mm",0,f])},45613(e,a,t){t.d(a,{fromItem:()=>m,n:()=>d});var r=t(49186),n=t(44208),l=t(92009),s=t(23154),i=t(22429),u=t(2976),c=t(77548),o=t(80812),y=t(66964),f=t(10407);async function m(e){let{portalItem:a}=e;a&&!(a instanceof o.default)&&(a=new o.default(a));let t=await async function(e){return await e.load(),async function(e){let a=e.className,t=u.U[a];return{constructor:await t(),properties:e.properties}}(await d(e,new i.v))}(a);return new(0,t.constructor)({portalItem:a,...t.properties})}async function d(e,a){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:e.typeKeywords.includes("GaussianSplat")?{className:"GaussianSplatLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();let a=(0,f.Y)(e,"Map Notes"),t=(0,f.Y)(e,"Markup");if(a||t)return{className:(0,n.A)("sketch-layer-enabled")?"SketchLayer":"MapNotesLayer"};if((0,f.Y)(e,"Route Layer"))return{className:"RouteLayer"};let r=await e.fetchData();return 1===(0,y.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){let t=await L(e,a);if("object"==typeof t){let{sourceJSON:e,className:a}=t,r={sourceJSON:e};return null!=t.id&&(r.layerId=t.id),{className:a||"FeatureLayer",properties:r}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();let t=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};let r=(await a.fetchItemData(e))?.layerType;if("ArcGISTiledImageServiceLayer"===r)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===r)return{className:"ImageryLayer"};let n=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),l=n.cacheType?.toLowerCase(),s=n.capabilities?.toLowerCase().includes("tilesonly"),i=n.tileInfo?.format?.toLowerCase()??"",u=null==l&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(i);return"map"===l||u||s?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){let{tileInfo:t}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return t}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"PDF":return{className:"GeospatialPDFLayer"};case"Scene Service":return async function(e,a){let t=await L(e,a,async()=>{try{if(!e.url)return[];let{serverUrl:t}=await(0,l.L)(e.url,{sceneLayerItem:e});return(await a.fetchServiceMetadata(t))?.tables??[]}catch{return[]}});if("object"==typeof t){let r,n={};if(null==t.id?r=e.url:(n.layerId=t.id,r=`${e.url}/layers/${t.id}`),e.typeKeywords?.length)for(let a of Object.keys(c.XX))if(e.typeKeywords.includes(a))return{className:c.XX[a]};let l=await a.fetchServiceMetadata(r,{customParameters:await a.fetchCustomParameters(e,e=>(0,y.pJ)(e)?.customParameters)});return{className:c.XX[l?.layerType]||"SceneLayer",properties:n}}return!1===t&&"Voxel"===(await a.fetchServiceMetadata(e.url))?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"}}(e,a);case"Video Service":return async function(e,a){return"object"==typeof await L(e,a)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function L(e,a,t){let{url:n,type:l}=e,i="Feature Service"===l;if(!n)return{};if(/\/\d+$/.test(n)){if(i){let t=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,y.pJ)(e)?.customParameters)});(0,c.Gh)(e,(0,c.G$)());let{id:l,type:i}=t,u=(0,s.Jo)(i);if(!u)throw new r.A("from-portal-item:unsupported",`'${n}' has unsupported type: '${i}'`);return{id:l,className:u,sourceJSON:t}}return{}}if("Video Service"===l)return!(((await a.fetchServiceMetadata(n)).layers?.length??0)>1)&&{};await e.load();let u=await a.fetchItemData(e);if(i){let{data:t,preferredHost:l}=await(0,y.bO)(u,n,a);if(0===(0,y.XH)(t))throw new r.A("from-portal-item:no-data",`The feature service '${n}' does not have any supported layers or tables`);(0,c.Gh)(e,l);let s=p(t);if("object"==typeof s){let e=(0,y.rc)(t,s.id);return{id:s.id,className:(0,y.K8)(e?.layerType)}}return s}if("Scene Service"===l&&(u=await(0,y.nu)(e,u,a)),(0,y.XH)(u)>0)return p(u);let o=await a.fetchServiceMetadata(n);return t&&(o.tables=await t()),p(o)}function p(e){return 1===(0,y.XH)(e)&&{id:(0,y.pJ)(e)?.id}}},7861(e,a,t){t.d(a,{L:()=>n});var r=t(56507);async function n(e,a){return(await(0,r.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9917],{159(e,n,t){t.d(n,{A:()=>s});var r,l=t(32198),a=t(69540),o=t(25482),i=t(91429),u=t(99157);let s=r=class extends((0,a.OU)(o.o)){constructor(e){super(e),this.steps=[]}get isUsable(){let e=!0;for(let n=0;n<this.steps.length;n++){let t=this.steps[n];if(null==t.isUsable)return t.isUsable;e&&=t.isUsable}return e}getInverse(){let e=new r;for(let n=this.steps.length-1;n>=0;n--){let t=this.steps[n];e.steps.push(t.getInverse())}return e}};(0,l.Cg)([(0,i.MZ)()],s.prototype,"isUsable",null),(0,l.Cg)([(0,i.MZ)({type:[u.A],nonNullable:!0,json:{name:"geoTransforms"}})],s.prototype,"steps",void 0),s=r=(0,l.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformation")],s)},99157(e,n,t){t.d(n,{A:()=>u});var r,l=t(32198),a=t(69540),o=t(25482),i=t(91429);let u=r=class extends((0,a.OU)(o.o)){constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,l.Cg)([(0,i.MZ)({json:{name:"transformForward",read:e=>!e,write:(e,n,t)=>{n[t]=!e}}})],u.prototype,"isInverse",void 0),(0,l.Cg)([(0,i.MZ)()],u.prototype,"isUsable",void 0),(0,l.Cg)([(0,i.MZ)({json:{write:!0}})],u.prototype,"wkt",void 0),(0,l.Cg)([(0,i.MZ)({json:{write:!0}})],u.prototype,"wkid",void 0),u=r=(0,l.Cg)([(0,i.$K)("esri.geometry.operators.support.GeographicTransformationStep")],u)},9762(e,n,t){t.r(n),t.d(n,{projectBuffer:()=>l});var r=t(49208);function l(e,n,t,l,a,o,i=Math.floor(e.length/3)){let u=(0,r.jd)(n,a);if(null==u)return!1;if(u===r.pO){if(e===l&&t===o)return!0;let n=t+3*i;for(let r=t,a=o;r<n;r++,a++)l[a]=e[r]??0;return!0}let s=t+3*i;for(let n=t,r=o;n<s;n+=3,r+=3)u(e,n,l,r);return!0}},49208(e,n,t){t.d(n,{Tp:()=>f,jd:()=>c,pO:()=>d,s7:()=>M,wy:()=>p});var r=t(34727),l=t(86211),a=t(73941),o=t(79258),i=t(34403),u=t(21325);const s={2:{5:d,7:null,9:null,10:d,1:v,6:null,8:null,0:null,3:M,11:j,2:d,4:I},5:{5:d,7:null,9:null,10:d,1:v,6:null,8:null,0:null,3:M,11:j,2:d,4:I},7:{5:null,7:d,9:null,10:d,1:null,6:C,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:T,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:m,6:null,8:null,0:null,3:d,11:R,2:g,4:w},4:{5:b,7:null,9:null,10:b,1:F,6:null,8:null,0:null,3:U,11:function(e,n,t,r){b(e,n,t,r),j(t,r,t,r)},2:b,4:d},1:{5:k,7:null,9:null,10:k,1:d,6:null,8:null,0:null,3:x,11:function(e,n,t,r){k(e,n,t,r),j(t,r,t,r)},2:k,4:S},6:{5:null,7:E,9:null,10:E,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:v,6:C,8:T,0:null,3:M,11:j,2:d,4:I},11:{5:y,7:null,9:null,10:y,1:function(e,n,t,r){y(e,n,t,r),v(t,r,t,r)},6:null,8:null,0:null,3:function(e,n,t,r){y(e,n,t,r),M(t,r,t,r)},11:d,2:y,4:function(e,n,t,r){y(e,n,t,r),I(t,r,t,r)}}};function c(e,n){return f(e,n)?.projector}function f(e,n){if(null==e||null==n)return null;if(Z.source.spatialReference===e&&Z.dest.spatialReference===n)return Z;let t=h(e,Z.source),r=h(n,Z.dest);return 0===t&&0===r?(0,u.aI)(e,n)?Z.projector=d:Z.projector=null:Z.projector=s[t][r],Z}function p(e,n){switch(c(e,n)){case d:return"copy3";case v:return"wgs84ToSphericalECEF";case M:return"wgs84ToWebMercator";case j:return"wgs84ToPlateCarree";case I:return"wgs84ToWGS84ECEF";case g:return"webMercatorToWGS84";case m:return"webMercatorToSphericalECEF";case w:return"webMercatorToWGS84ECEF";case R:return"webMercatorToPlateCarree";case b:return"wgs84ECEFToWGS84";case F:return"wgs84ECEFToSphericalECEF";case U:return"wgs84ECEFToWebMercator";case k:return"sphericalECEFToWGS84";case x:return"sphericalECEFToWebMercator";case E:return"sphericalMarsPCPFToMars2000";case A:return"sphericalMoonPCPFToMoon2000";case S:return"sphericalECEFToWGS84ECEF";case C:return"mars2000ToSphericalPCPF";case T:return"moon2000ToSphericalPCPF";default:return null}}function h(e,n){return e?n.spatialReference===e?n.spatialReferenceId:(n.spatialReference=e,"metersPerUnit"in n&&(n.metersPerUnit=(0,l.GA)(e,1)),n.spatialReferenceId=(0,a.jA)(e)?1:(0,u.oT)(e)?2:(0,u.K8)(e)?3:(0,u.r1)(e)?11:e.wkt===a.Ro.wkt?4:4490===e.wkid?5:e.wkt===a.FY.wkt?6:e.wkt===a.LJ.wkt?8:(0,a.q8)(e)?7:(0,a.KQ)(e)?9:0):0}function d(e,n,t,r){e!==t&&(t[r++]=e[n++],t[r++]=e[n++],t[r]=e[n]??0)}function g(e,n,t,r){t[r]=L*(e[n]/q),t[r+1]=L*(W-2*Math.atan(Math.exp(-e[n+1]/q))),t[r+2]=e[n+2]??0}function m(e,n,t,r){let l=e[n]/q,a=W-2*Math.atan(Math.exp(-e[n+1]/q)),o=q+(e[n+2]??0),i=Math.cos(a)*o;t[r]=Math.cos(l)*i,t[r+1]=Math.sin(l)*i,t[r+2]=Math.sin(a)*o}function w(e,n,t,r){g(e,n,t,r),I(t,r,t,r)}function M(e,n,t,l){!function(e,n,t,l,a){let o=.4999999*Math.PI,i=(0,r.qE)(G*e[n+1],-o,o),u=Math.sin(i);t[l++]=G*e[n]*a.radius,t[l++]=a.halfSemiMajorAxis*Math.log((1+u)/(1-u)),t[l]=e[n+2]??0}(e,n,t,l,o.$O)}function j(e,n,t,r){t[r]=e[n]*$,t[r+1]=e[n+1]*$,t[r+2]=e[n+2]??0}function y(e,n,t,r){t[r]=e[n]*z,t[r+1]=e[n+1]*z,t[r+2]=e[n+2]??0}function R(e,n,t,r){g(e,n,t,r),j(t,r,t,r)}function P(e,n,t,r,l){let a=l+(e[n+2]??0),o=G*e[n],i=G*e[n+1],u=Math.cos(i)*a;t[r]=Math.cos(o)*u,t[r+1]=Math.sin(o)*u,t[r+2]=Math.sin(i)*a}function T(e,n,t,r){P(e,n,t,r,o.Sw.radius)}function C(e,n,t,r){P(e,n,t,r,o.sH.radius)}function v(e,n,t,r){P(e,n,t,r,o.$O.radius)}function O(e,n,t,l,a){let o=e[n],i=e[n+1],u=e[n+2]??0,s=Math.sqrt(o*o+i*i+u*u),c=(0,r.YN)(u/(0===s?1:s)),f=Math.atan2(i,o);t[l++]=L*f,t[l++]=L*c,t[l]=s-a}function A(e,n,t,r){O(e,n,t,r,o.Sw.radius)}function E(e,n,t,r){O(e,n,t,r,o.sH.radius)}function k(e,n,t,r){O(e,n,t,r,o.$O.radius)}function x(e,n,t,r){k(e,n,t,r),M(t,r,t,r)}function S(e,n,t,r){k(e,n,t,r),I(t,r,t,r)}function I(e,n,t,r){!function(e,n,t,r,l){let a=G*e[n],o=G*e[n+1],i=e[n+2]??0,u=Math.sin(o),s=Math.cos(o),c=l.radius/Math.sqrt(1-l.eccentricitySquared*u*u);t[r++]=(c+i)*s*Math.cos(a),t[r++]=(c+i)*s*Math.sin(a),t[r++]=(c*(1-l.eccentricitySquared)+i)*u}(e,n,t,r,o.$O)}function b(e,n,t,r){let l,a,u,s,c,f,p,h,d,g,m,w,M,j,y,R,P,T,C,v,O,A=i.TP,E=e[n],k=e[n+1],x=e[n+2]??0;l=Math.abs(x),a=E*E+k*k,u=Math.sqrt(a),s=a+x*x,c=Math.sqrt(s),v=Math.atan2(k,E),f=x*x/s,p=a/s,j=A.a2/c,y=A.a3-A.a4/c,p>.3?(h=l/c*(1+p*(A.a1+j+f*y)/c),C=Math.asin(h),g=h*h,d=Math.sqrt(1-g)):(d=u/c*(1-f*(A.a5-j-p*y)/c),C=Math.acos(d),g=1-d*d,h=Math.sqrt(g)),m=1-o.$O.eccentricitySquared*g,w=o.$O.radius/Math.sqrt(m),M=A.a6*w,j=u-w*d,y=l-M*h,P=d*j+h*y,R=d*y-h*j,T=R/(M/m+P),C+=T,O=P+R*T/2,x<0&&(C=-C),t[r++]=L*v,t[r++]=L*C,t[r]=O}function F(e,n,t,r){b(e,n,t,r),v(t,r,t,r)}function U(e,n,t,r){b(e,n,t,r),M(t,r,t,r)}const Z={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},G=(0,r.kU)(1),L=(0,r.KJ)(1),W=.5*Math.PI,q=o.$O.radius,$=q*Math.PI/180,z=180/(q*Math.PI);t.d(n,["w5",0,s])},99917(e,n,t){t.r(n),t.d(n,{canProjectWithoutEngine:()=>$,initializeProjection:()=>B,isEqualBaseGCS:()=>z,isLoaded:()=>E,isLoadedOrLoad:()=>k,isLoadedOrLoadFor:()=>x,load:()=>I,project:()=>b,projectAsync:()=>q,projectExtent:()=>_,projectMany:()=>F,projectMultipoint:()=>Y,projectOrLoad:()=>Z,projectOrLoadMany:()=>G,projectPoint:()=>H,projectPolygon:()=>V,projectPolyline:()=>J,projectWithoutEngine:()=>K,requiresLoad:()=>S,test:()=>W,tryProject:()=>U});var r=t(49186),l=t(17676),a=t(62788),o=t(95488),i=t(51850),u=t(21276),s=t(73941),c=t(5443),f=t(91075),p=t(48526),h=t(86738),d=t(39829),g=t(82799),m=t(16930),w=t(98764),M=t(159),j=t(9762);const y={loadPromise:null,projectOperator:null,jsonProjectOperator:null,geographicTransformationUtils:null,defaultTransformations:{}};var R=t(49208);function P(e,n,t,r,l,a){return T[0]=e,T[1]=n,T[2]=t,(0,j.projectBuffer)(T,r,0,l,a,0)}const T=(0,i.vt)();var C=t(60408),v=t(21325),O=t(52006);const A=new o.I;function E(){let{projectOperator:e,jsonProjectOperator:n,geographicTransformationUtils:t}=y;return!!(e?.projectIsLoaded()&&n?.projectIsLoaded()&&t?.isLoaded())}function k(){return!!E()||((0,a.gc)(A),I(),!1)}function x(e,n){return!e||!n||$(e,n)||k()}function S(e,n){return!$(e,n)&&!E()}async function I(e){y.loadPromise??(y.loadPromise=Promise.all([t.e(3276).then(()=>t(83276)).then(e=>(y.projectOperator=e,e.projectLoad())),t.e(8377).then(()=>t(8377)).then(e=>(y.jsonProjectOperator=e,e.projectLoad())),t.e(2158).then(()=>t(12158)).then(e=>(y.geographicTransformationUtils=e,e.load()))])),await y.loadPromise,(0,l.Te)(e),A.notify()}function b(e,n,t){return Array.isArray(e)?0===e.length?[]:((0,u.H)(e),F(e,e[0].spatialReference,n,t)):((0,u.f)(e),F([e],e.spatialReference,n,t)[0])}function F(e,n,t,r){if(null==n||null==t)return e;if($(n,t,r))return e.map(e=>K(e,n,t));if(null==r?.geographicTransformation&&(0,s.jA)(n))return F(e.map(e=>K(e,n,m.A.WGS84)),m.A.WGS84,t,{zConversionDisabled:r?.zConversionDisabled});if(null==r?.geographicTransformation&&(0,s.jA)(t))return F(e,n,m.A.WGS84).map(e=>K(e,m.A.WGS84,t));if(!E())throw new L;let{geographicTransformationUtils:l,defaultTransformations:a}=y;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:l.getTransformation(n,t,r.areaOfInterestExtent)||new M.A};else if(!r?.areaOfInterestExtent){let e=function(e,n){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",n.wkid?.toString()??"-1",n.wkt?.toString()??"",n.wkt2?.toString()??""].join()}(n,t),o=a[e];o||(o=l.getTransformation(n,t)||new M.A,a[e]=o),r={geographicTransformation:o,zConversionDisabled:r?.zConversionDisabled}}return e[0].spatialReference||(e[0].spatialReference=n),e[0]instanceof f.A?y.projectOperator.projectExecuteMany(e,t,r):y.jsonProjectOperator.projectExecuteMany(e,t,r)}function U(e,n,t){try{return b(e,n,t)}catch{return null}}function Z(e,n){let t=G([e],n);return null==t.pending?null==t.geometries?{pending:null,geometry:null}:{pending:null,geometry:t.geometries[0]}:{pending:t.pending,geometry:null}}function G(e,n,t){if(!E())for(let t of e)if(null!=t&&!(0,v.aI)(t.spatialReference,n)&&(0,v.fn)(t.spatialReference)&&(0,v.fn)(n)&&!$(t.spatialReference,n))return(0,a.gc)(A),{pending:I(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,v.aI)(e.spatialReference,n)?e:(0,v.fn)(e.spatialReference)&&(0,v.fn)(n)?b(e,n,t):null)}}class L extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}const W={get loadPromise(){return y.loadPromise}};async function q(e,n,t){if((0,l.Te)(t),!e)return e;let r=G(Array.isArray(e)?e:[e],n,t);if(r.pending)return await r.pending,(0,l.Te)(t),q(e,n,t);let a=r.geometries??[];return Array.isArray(e)?a:a[0]}function $(e,n,t){return!(t?.areaOfInterestExtent||t?.extendedParams||t?.geographicTransformation)&&(!!(0,v.aI)(e,n)||(0,v.fn)(e)&&(0,v.fn)(n)&&!!(0,R.jd)(e,n))}function z(e,n){if((0,v.aI)(e,n))return!0;if(!(0,v.fn)(e)||!(0,v.fn)(n))return!1;let t=(0,v.oT)(e)||(0,v.K8)(e)||(0,v.x1)(e),r=(0,v.oT)(n)||(0,v.K8)(n)||(0,v.x1)(n);return t&&r}async function B(e,n,t,r){if(E())return(0,l.NO)(r);if(Array.isArray(e)){for(let{source:n,dest:t,options:l}of e)if(n&&t&&!$(n,t,l))return I(r)}else if(e&&n&&!$(e,n,t))return I(r);return(0,l.NO)(r)}function K(e,n,t){return e?(0,C.fT)(e)?D(e,n,new h.A,t,0):(0,C.ZC)(e)?ee(e,n,new c.A,t,0):(0,C.Bi)(e)?X(e,n,new d.A,t,0):(0,C.Rg)(e)?Q(e,n,new g.A,t,0):(0,C.U9)(e)?N(e,n,new p.A,t,0):null:null}function H(e,n,t=n.spatialReference,r=0){return null!=t&&null!=e.spatialReference&&null!=D(e,e.spatialReference,n,t,r)}function D(e,n,t,r,l){le[0]=e.x,le[1]=e.y;let a=e.z;return le[2]=void 0===a?l:a,(0,j.projectBuffer)(le,n,0,le,r,0)?(t.x=le[0],t.y=le[1],t.spatialReference=r,void 0!==a||(0,s.xP)(r)?(t.z=le[2],t.hasZ=!0):(t.z=void 0,t.hasZ=!1),void 0===e.m?(t.m=void 0,t.hasM=!1):(t.m=e.m,t.hasM=!0),t):null}function Y(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=N(e,e.spatialReference,n,t,r)}function N(e,n,t,r,l){let{points:a,hasZ:o,hasM:i}=e,u=[],s=a.length,c=[];for(let e of a)c.push(e[0],e[1],o?e[2]:l);if(!(0,j.projectBuffer)(c,n,0,c,r,0,s))return null;let f=re(o,r);for(let e=0;e<s;++e){let n=3*e,t=c[n],r=c[n+1];f&&i?u.push([t,r,c[n+2],a[e][3]]):f?u.push([t,r,c[n+2]]):i?u.push([t,r,a[e][2]]):u.push([t,r])}return t.points=u,t.spatialReference=r,t.hasZ=o,t.hasM=i,t}function J(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=Q(e,e.spatialReference,n,t,r)}function Q(e,n,t,r,l){let{curvePaths:a,paths:o,hasZ:i,hasM:u}=e;if(!(a?te(a,i??!1,u??!1,n,t.curvePaths=[],r,l):ne(o,i??!1,u??!1,n,t.paths,r,l)))return null;let s=re(i,r);return t.spatialReference=r,t.hasZ=s,t.hasM=u,t}function V(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=X(e,e.spatialReference,n,t,r)}function X(e,n,t,r,l){let{curveRings:a,rings:o,hasZ:i,hasM:u}=e;return(a?te(a,i??!1,u??!1,n,t.curveRings=[],r,l):ne(o,i??!1,u??!1,n,t.rings,r,l))?(t.spatialReference=r,t.hasZ=re(i,r),t.hasM=u,t):null}function _(e,n,t=n.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ee(e,e.spatialReference,n,t,r)}function ee(e,n,t,r,l){let{xmin:a,ymin:o,xmax:i,ymax:u,hasZ:s,hasM:c}=e;if(!P(a,o,s?e.zmin:l,n,le,r))return null;let f=re(s,r);return t.xmin=le[0],t.ymin=le[1],f&&(t.zmin=le[2]),P(i,u,s?e.zmax:l,n,le,r)?(t.xmax=le[0],t.ymax=le[1],f&&(t.zmax=le[2]),c&&(t.mmin=e.mmin,t.mmax=e.mmax),t.spatialReference=r,t):null}function ne(e,n,t,r,l,a,o=0){let i=[];for(let t of e)for(let e of t)i.push(e[0],e[1],n?e[2]:o);if(!(0,j.projectBuffer)(i,r,0,i,a,0))return!1;let u=0;l.length=0;let s=n?3:2,c=re(n,a);for(let n of e){let e=[];for(let r of n){let n=i.slice(u,u+=3);c||n.pop(),t&&n.push(r[s]),e.push(n)}l.push(e)}return!0}function te(e,n,t,r,l,a,o=0){let i=[];for(let t of e)for(let e of t){if((0,O.FG)(e))return!1;if((0,O.aO)(e)){let[t,r]=e.c;i.push(t[0],t[1],n?t[2]:o,r[0],r[1],o);continue}if((0,O.n1)(e)){let[t,r,l]=e.b;i.push(t[0],t[1],n?t[2]:o,r[0],r[1],o,l[0],l[1],o);continue}let t=e;i.push(t[0],t[1],n?t[2]:o)}if(!(0,j.projectBuffer)(i,r,0,i,a,0))return!1;let u=0;l.length=0;let s=n?3:2,c=re(n,a);for(let n of e){let e=[];for(let r of n){let n=i.slice(u,u+=3);if(c||n.pop(),t&&n.push((0,O.yP)(r)[s]),(0,O.FG)(r))return!1;if((0,O.aO)(r)){let t=i[u++],r=i[u++];++u,e.push({c:[n,[t,r]]})}else if((0,O.n1)(r)){let t=i[u++],r=i[u++];++u;let l=i[u++],a=i[u++];++u,e.push({b:[n,[t,r],[l,a]]})}else e.push(n)}l.push(e)}return!0}function re(e,n){return e||(0,s.xP)(n)||(0,v.aI)(n,w.Y0)}const le=(0,i.vt)()},98764(e,n,t){t.d(n,{lO:()=>c});var r=t(73941),l=t(16930),a=t(21325);const o=new l.A(r.fv),i=new l.A(r.FY),u=new l.A(r.LJ),s=new l.A(r.Ro);function c(e){let n=f.get(e);if(n)return n;let t=o;if(e)if(e===i)t=i;else if(e===u)t=u;else{let n=e.wkid,r=e.latestWkid;if(null!=n||null!=r)(0,a.tl)(n)||(0,a.tl)(r)?t=i:((0,a.ZL)(n)||(0,a.ZL)(r))&&(t=u);else{let n=e.wkt2??e.wkt;if(n){let e=n.toUpperCase();e===p?t=i:e===h&&(t=u)}}}return f.set(e,t),t}const f=new Map,p=i.wkt.toUpperCase(),h=u.wkt.toUpperCase();t.d(n,["GD",0,o,"Y0",0,s])},34403(e,n,t){var r=t(79258);Math.PI;const l=r.$O.radius,a=r.$O.eccentricitySquared,o={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,t.d(n,["TP",0,o])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2170],{69540(t,e,i){var n=i(32198),s=i(69622),r=(i(44208),i(4718)),h=(i(53966),i(97768)),o=i(88620),a=i(64108);const l=Symbol("ClonableMixin"),u=t=>{var e;let i=t,s=class extends i{constructor(){super(...arguments),this[e]=!0}static{e=l}clone(t){let e=(0,o.oY)(this);(0,h.Lw)(e,"unable to clone instance of non-accessor class");let i=e.metadata,n=e.store,s={},a=new Map;for(let e in i){let h=i[e],o=n?.originOf(e),l=h.clonable;if(h.readOnly||!1===l||7!==o&&0!==o&&5!==o&&4!==o)continue;let u=this[e],f=null;if("function"==typeof l)f=l(u,t);else if("reference"===l)f=u;else if(f=(0,r.TU)(u,t),null!=u&&null==f)continue;0===o?a.set(e,f):s[e]=f}let l=new(0,Object.getPrototypeOf(this).constructor)(s);if(a.size){let t=(0,o.oY)(l)?.store;if(t)for(let[e,i]of a)t.set(e,i,0)}return l}};return s=(0,n.Cg)([(0,a.$)("esri.core.Clonable")],s),s},f=u(s.A);i.d(e,["OU",0,u,"Pw",0,f])},67482(t,e,i){function n(t){return null!==s(t)}function s(t){return function(t){let e=r.exec(t);if(!e?.groups)return null;let i=e.groups,n=+i.year,s=i.month-1,h=+i.day,o=+(i.hours??"0"),a=+(i.minutes??"0"),l=+(i.seconds??"0");if(o>23||a>59||l>59)return null;let u,f=i.ms??"0",c=f?+f.padEnd(3,"0").slice(0,3):0;if(i.isUTC||!i.offsetSign)u=Date.UTC(n,s,h,o,a,l,c);else{let t=+i.offsetHours,e=+i.offsetMinutes;u=6e4*("+"===i.offsetSign?-1:1)*(60*t+e)+Date.UTC(n,s,h,o,a,l,c)}return Number.isNaN(u)?null:u}(t)??function(t){let e=new Date(t),i=e.getTime();return Number.isNaN(i)?null:t.toLowerCase()===e.toUTCString().toLowerCase()?i:null}(t)??function(t){if(!h.test(t))return null;let e=new Date(t);return Number.isNaN(e.getTime())?null:e.getTime()-6e4*e.getTimezoneOffset()}(t)}i.d(e,{C:()=>n,_:()=>s});const r=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,h=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},9093(t,e,i){function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}i.d(e,{o8:()=>s,vt:()=>n});const r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:s,create:n,fromValues:function(t,e,i,n,s,r,h,o,a,l,u,f,c,d,y,_){return[t,e,i,n,s,r,h,o,a,l,u,f,c,d,y,_]}},Symbol.toStringTag,{value:"Module"})),i.d(e,["zK",0,r])},35522(t,e,i){i.d(e,{$A:()=>T,Bw:()=>r,C:()=>h,Cc:()=>B,DI:()=>b,Io:()=>g,Ln:()=>p,Om:()=>I,Qr:()=>f,Re:()=>l,S8:()=>v,T9:()=>_,WQ:()=>a,Z0:()=>A,_S:()=>d,aI:()=>O,ei:()=>P,fw:()=>C,gL:()=>S,hG:()=>x,hZ:()=>o,hs:()=>m,jk:()=>y,lw:()=>u,m3:()=>M,oW:()=>X,t2:()=>Y,tn:()=>c,ze:()=>w});var n=i(51850),s=i(34304);function r(t){let e=t[0],i=t[1],n=t[2];return Math.sqrt(e*e+i*i+n*n)}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,i,n){return t[0]=e,t[1]=i,t[2]=n,t}function a(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t}function l(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function u(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function f(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t}function c(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function y(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t}function _(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t}function m(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function p(t,e,i,n){return t[0]=e[0]+i[0]*n,t[1]=e[1]+i[1]*n,t[2]=e[2]+i[2]*n,t}function g(t,e){let i=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(i*i+n*n+s*s)}function x(t,e){let i=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return i*i+n*n+s*s}function M(t){let e=t[0],i=t[1],n=t[2];return e*e+i*i+n*n}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function v(t,e=t){let i=e[0],n=e[1],s=e[2],r=i*i+n*n+s*s;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function T(t,e,i){let n=e[0],s=e[1],r=e[2],h=i[0],o=i[1],a=i[2];return t[0]=s*a-r*o,t[1]=r*h-n*a,t[2]=n*o-s*h,t}function B(t,e,i,n){let s=e[0],r=e[1],h=e[2];return t[0]=s+n*(i[0]-s),t[1]=r+n*(i[1]-r),t[2]=h+n*(i[2]-h),t}function A(t,e,i){let n=e[0],s=e[1],r=e[2];return t[0]=i[0]*n+i[4]*s+i[8]*r+i[12],t[1]=i[1]*n+i[5]*s+i[9]*r+i[13],t[2]=i[2]*n+i[6]*s+i[10]*r+i[14],t}function P(t,e,i){let n=e[0],s=e[1],r=e[2];return t[0]=n*i[0]+s*i[3]+r*i[6],t[1]=n*i[1]+s*i[4]+r*i[7],t[2]=n*i[2]+s*i[5]+r*i[8],t}function S(t,e,i){return C(t,e,i[0],i[1],i[2],i[3])}function C(t,e,i,n,s,r){let h=e[0],o=e[1],a=e[2],l=n*a-s*o,u=s*h-i*a,f=i*o-n*h,c=n*f-s*u,d=s*l-i*f,y=i*u-n*l,_=2*r;return t[0]=h+l*_+2*c,t[1]=o+u*_+2*d,t[2]=a+f*_+2*y,t}const R=(0,n.vt)(),F=(0,n.vt)();function Y(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function O(t,e){if(t===e)return!0;let i=t[0],n=t[1],r=t[2],h=e[0],o=e[1],a=e[2],l=(0,s.FD)();return Math.abs(i-h)<=l*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(n-o)<=l*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=l*Math.max(1,Math.abs(r),Math.abs(a))}function X(t,e,i){let n=i[0]-e[0],s=i[1]-e[1],r=i[2]-e[2],h=n*n+s*s+r*r;return h>0?(h=1/Math.sqrt(h),t[0]=n*h,t[1]=s*h,t[2]=r*h,t):(t[0]=0,t[1]=0,t[2]=0,t)}const j=l,Z=u,E=f,L=g,G=x,k=r,q=M;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:a,angle:function(t,e){v(R,t),v(F,e);let i=I(R,F);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(t,e,i,n,s,r){let h=1-r,o=h*h,a=r*r,l=o*h,u=3*r*o,f=3*a*h,c=a*r;return t[0]=e[0]*l+i[0]*u+n[0]*f+s[0]*c,t[1]=e[1]*l+i[1]*u+n[1]*f+s[1]*c,t[2]=e[2]*l+i[2]*u+n[2]*f+s[2]*c,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,i=1){return t[0]=Math.min(Math.max(t[0],e),i),t[1]=Math.min(Math.max(t[1],e),i),t[2]=Math.min(Math.max(t[2],e),i),t},copy:h,cross:T,crossAndNormalize:function(t,e,i){let n=e[0],s=e[1],r=e[2],h=i[0],o=i[1],a=i[2],l=s*a-r*o,u=r*h-n*a,f=n*o-s*h,c=Math.sqrt(l*l+u*u+f*f);return t[0]=l/c,t[1]=u/c,t[2]=f/c,t},direction:X,dist:L,distance:g,div:E,divide:f,dot:I,equals:O,exactEquals:Y,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,i,n,s,r){let h=r*r,o=h*(2*r-3)+1,a=h*(r-2)+r,l=h*(r-1),u=h*(3-2*r);return t[0]=e[0]*o+i[0]*a+n[0]*l+s[0]*u,t[1]=e[1]*o+i[1]*a+n[1]*l+s[1]*u,t[2]=e[2]*o+i[2]*a+n[2]*l+s[2]*u,t},inverse:b,len:k,length:r,lerp:B,max:_,min:y,mul:Z,multiply:u,negate:w,normalize:v,random:function(t,e=1){let i=s.Ov,n=2*i()*Math.PI,r=2*i()-1,h=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*h,t[1]=Math.sin(n)*h,t[2]=r*e,t},rotateX:function(t,e,i,n){let s=[],r=[];return s[0]=e[0]-i[0],s[1]=e[1]-i[1],s[2]=e[2]-i[2],r[0]=s[0],r[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),r[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=r[0]+i[0],t[1]=r[1]+i[1],t[2]=r[2]+i[2],t},rotateY:function(t,e,i,n){let s=[],r=[];return s[0]=e[0]-i[0],s[1]=e[1]-i[1],s[2]=e[2]-i[2],r[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),r[1]=s[1],r[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=r[0]+i[0],t[1]=r[1]+i[1],t[2]=r[2]+i[2],t},rotateZ:function(t,e,i,n){let s=[],r=[];return s[0]=e[0]-i[0],s[1]=e[1]-i[1],s[2]=e[2]-i[2],r[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),r[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),r[2]=s[2],t[0]=r[0]+i[0],t[1]=r[1]+i[1],t[2]=r[2]+i[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:p,scaleTo:function(t,e){return m(t,t,e/k(t))},set:o,sign:d,sqrDist:G,sqrLen:q,squaredDistance:x,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:j,subtract:l,transformMat3:P,transformMat4:A,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:S,transformQuatValues:C},Symbol.toStringTag,{value:"Module"})),i.d(e,["Il",0,k,"jb",0,j,"lo",0,G,"uE",0,q])},75503(t,e,i){i.d(e,{wq:()=>o});var n=i(4576),s=i(21818),r=(i(44208),i(15142)),h=i(11006);class o{constructor(t=9,e){this._compareMinX=c,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),w.prune(),b.prune(),v.prune(),I.prune()}all(t){a(this._data,t)}search(t,e){let i=this._data,n=this._toBBox;if(x(t,i))for(w.clear();i;){for(let s=0,r=i.children.length;s<r;s++){let r=i.children[s],h=i.leaf?n(r):r;x(t,h)&&(i.leaf?e(r):g(t,h)?a(r,e):w.push(r))}i=w.pop()}}collides(t){let e=this._data,i=this._toBBox;if(!x(t,e))return!1;for(w.clear();e;){for(let n=0,s=e.children.length;n<s;n++){let s=e.children[n],r=e.leaf?i(s):s;if(x(t,r)){if(e.leaf||g(t,r))return!0;w.push(s)}}e=w.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,i=t.length;e<i;e++)this.insert(t[e]);return this}let e=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){let t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new A([]),this}remove(t){if(!t)return this;let e,i=this._data,r=null,h=0,o=!1,a=this._toBBox(t);for(v.clear(),I.clear();i||v.length>0;){if(i||(i=v.pop(),r=v.data[v.length-1],h=I.pop()??0,o=!0),i.leaf&&(e=(0,n.qh)(i.children,(0,s.z)(t),i.children.length,i.indexHint),-1!==e))return i.children.splice(e,1),v.push(i),this._condense(v),this;o||i.leaf||!g(i,a)?r?(h++,i=r.children[h],o=!1):i=null:(v.push(i),I.push(h),h=0,r=i,i=i.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,i,n){let s=i-e+1,r=this._maxEntries;if(s<=r){let n=new A(t.slice(e,i+1));return l(n,this._toBBox),n}n||(n=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(n-1)));let h=new P([]);h.height=n;let o=Math.ceil(s/r),a=o*Math.ceil(Math.sqrt(r));M(t,e,i,a,this._compareMinX);for(let s=e;s<=i;s+=a){let e=Math.min(s+a-1,i);M(t,s,e,o,this._compareMinY);for(let i=s;i<=e;i+=o){let s=Math.min(i+o-1,e);h.children.push(this._build(t,i,s,n-1))}}return l(h,this._toBBox),h}_insert(t,e,i){let n=this._toBBox,s=i?t:n(t);v.clear();let r=function(t,e,i,n){for(;n.push(e),!0!==e.leaf&&n.length-1!==i;){let i,n=1/0,s=1/0;for(let r=0,h=e.children.length;r<h;r++){let h=e.children[r],o=y(h),a=m(t,h)-o;a<s?(s=a,n=o<n?o:n,i=h):a===s&&o<n&&(n=o,i=h)}e=i||e.children[0]}return e}(s,this._data,e,v);for(r.children.push(t),f(r,s);e>=0&&v.data[e].children.length>this._maxEntries;)this._split(v,e),e--;!function(t,e,i){for(let n=i;n>=0;n--)f(e.data[n],t)}(s,v,e)}_split(t,e){let i=t.data[e],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);let r=this._chooseSplitIndex(i,s,n);if(!r)return;let h=i.children.splice(r,i.children.length-r),o=i.leaf?new A(h):new P(h);o.height=i.height,l(i,this._toBBox),l(o,this._toBBox),e?t.data[e-1].children.push(o):this._splitRoot(i,o)}_splitRoot(t,e){this._data=new P([t,e]),this._data.height=t.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(t,e,i){let n,s,r;n=s=1/0;for(let h=e;h<=i-e;h++){let e=u(t,0,h,this._toBBox),o=u(t,h,i,this._toBBox),a=p(e,o),l=y(e)+y(o);a<n?(n=a,r=h,s=l<s?l:s):a===n&&l<s&&(s=l,r=h)}return r}_chooseSplitAxis(t,e,i){let n=t.leaf?this._compareMinX:c,s=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,s)&&t.children.sort(n)}_allDistMargin(t,e,i,n){t.children.sort(n);let s=this._toBBox,r=u(t,0,e,s),h=u(t,i-e,i,s),o=_(r)+_(h);for(let n=e;n<i-e;n++){let e=t.children[n];f(r,t.leaf?s(e):e),o+=_(r)}for(let n=i-e-1;n>=e;n--){let e=t.children[n];f(h,t.leaf?s(e):e),o+=_(h)}return o}_condense(t){for(let e=t.length-1;e>=0;e--){let i=t.data[e];if(0===i.children.length)if(e>0){let s=t.data[e-1],r=s.children;r.splice((0,n.qh)(r,i,r.length,s.indexHint),1)}else this.clear();else l(i,this._toBBox)}}_initFormat(t){let e=["return a"," - b",";"];this._compareMinX=Function("a","b",e.join(t[0])),this._compareMinY=Function("a","b",e.join(t[1])),this._toBBox=Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){let i=t;for(b.clear();i;){if(!0===i.leaf)for(let t of i.children)e((0,s.z)(t));else b.pushArray(i.children);i=b.pop()??null}}function l(t,e){u(t,0,t.children.length,e,t)}function u(t,e,i,n,s){s||=new A([]),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,h=e;h<i;h++)r=t.children[h],f(s,t.leaf?n(r):r);return s}function f(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function y(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function _(t){return t.maxX-t.minX+(t.maxY-t.minY)}function m(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function p(t,e){let i=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,s-i)*Math.max(0,r-n)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function x(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function M(t,e,i,n,s){let r=[e,i];for(;r.length;){let e=r.pop(),i=r.pop();if(e-i<=n)continue;let o=i+Math.ceil((e-i)/n/2)*n;(0,h.q)(t,o,i,e,s),r.push(i,o,o,e)}}const w=new r.A,b=new r.A,v=new r.A,I=new r.A({deallocator:void 0});class T{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class B extends T{constructor(){super(...arguments),this.height=1,this.indexHint=new n.vW}}class A extends B{constructor(t){super(),this.children=t,this.leaf=!0}}class P extends B{constructor(t){super(),this.children=t,this.leaf=!1}}},69397(t,e,i){i.d(e,{Qf:()=>o,Qh:()=>r,lM:()=>s});var n=i(34275);function s(t){if(!t)return 0;let e=l;for(let i in t)t.hasOwnProperty(i)&&(e+=h(t[i],!1));return e}function r(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return a(t,8);let i=u;for(let n=0;n<e;n++)i+=h(t[n]);return i}(t);let e=l;for(let i in t)t.hasOwnProperty(i)&&(e+=h(t[i]));return e}function h(t,e=!0){switch(typeof t){case"object":return e?r(t):l;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,n.iu)(e)?e.byteLength+f:Array.isArray(e)?a(e,16):0:0),0)}function a(t,e){return u+t.length*e}const l=32,u=16,f=145},48526(t,e,i){i.d(e,{A:()=>m});var n,s=i(32198),r=i(4576),h=i(4718),o=i(91429),a=i(5443),l=i(91075),u=i(86738),f=i(16930),c=i(90634),d=i(47610),y=i(56993),_=i(43937);let m=n=class extends l.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:i,hasZ:n,spatialReference:s}=t;switch(e??=[],e?.at(0)?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return s??=f.A.WGS84,{...t,hasM:i,hasZ:n,points:e,spatialReference:s}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let t=(0,c.ge)(this);return t?new a.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,h.o8)(this.points)}clone(){let{points:t,spatialReference:e,hasM:i,hasZ:s}=this;return new n({points:(0,h.o8)(t),spatialReference:e.clone(),hasM:i,hasZ:s})}equals(t){if(this===t)return!0;if(null==t)return!1;let e=this.spatialReference,i=t.spatialReference;return!(null!=e!=(null!=i)||null!=e&&null!=i&&!e.equals(i))&&(0,r.aI)(this.points,t.points,d.v6)}addPoint(t){return(0,y.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;let e=this.points[t],i={x:e[0],y:e[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(i.z=e[2],n=3),this.hasM&&(i.m=e[n]),new u.A(i)}removePoint(t){if(!this._validateInputs(t))return null;let e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)&&((0,y.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points")),this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,s.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,s.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,s.Cg)([(0,o.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],m.prototype,"points",void 0),(0,s.Cg)([(0,_.K)("points")],m.prototype,"writePoints",null),m=n=(0,s.Cg)([(0,o.$K)("esri.geometry.Multipoint")],m),m.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,i){i.d(e,{A:()=>y});var n,s=i(32198),r=i(4718),h=i(91429),o=i(5443),a=i(91075),l=i(86738),u=i(16930),f=i(90634),c=i(56993),d=i(43937);let y=n=class extends a.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:i,hasZ:n,spatialReference:s}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:n??=!0,i??=!0;break;case 3:n??=!0!==i,i??=!n;break;default:n??=!1,i??=!1}return s??=u.A.WGS84,{...t,hasM:i,hasZ:n,paths:e,spatialReference:s}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,r.o8)(t)}get extent(){let t=(0,f.Z3)(this),{spatialReference:e}=this;return t?new o.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,r.o8)(this.paths)}addPath(t){if(!t)return;let e=this.paths,i=e.length;if(function(t){return!Array.isArray(t[0])}(t)){let n=[];for(let e=0,i=t.length;e<i;e++)n[e]=t[e].toArray();e[i]=n}else e[i]=t.slice();return this.notifyChange("paths"),this}clone(){let t=new n;return t.spatialReference=this.spatialReference,t.paths=(0,r.o8)(this.paths),t.curvePaths=(0,r.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;let i=this.paths[t][e],n=this.hasZ,s=this.hasM;return n&&!s?new l.A(i[0],i[1],i[2],void 0,this.spatialReference):s&&!n?new l.A(i[0],i[1],void 0,i[2],this.spatialReference):n&&s?new l.A(i[0],i[1],i[2],i[3],this.spatialReference):new l.A(i[0],i[1],this.spatialReference)}insertPoint(t,e,i){return this._validateInputs(t,e,!0)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t].splice(e,0,i),this.notifyChange("paths")),this}removePath(t){if(!this._validateInputs(t,null))return null;let e=this.paths.splice(t,1)[0],i=this.spatialReference,n=e.map(t=>new l.A(t,i));return this.notifyChange("paths"),n}removePoint(t,e){if(!this._validateInputs(t,e))return null;let i=new l.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),i}setPoint(t,e,i){return this._validateInputs(t,e)&&((0,c.h)(this,i),Array.isArray(i)||(i=i.toArray()),this.paths[t][e]=i,this.notifyChange("paths")),this}_validateInputs(t,e,i=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){let n=this.paths[t];if(i&&(e<0||e>n.length)||!i&&(e<0||e>=n.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s.Cg)([(0,h.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,s.Cg)([(0,h.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],y.prototype,"curvePaths",void 0),(0,s.Cg)([(0,d.K)("curvePaths")],y.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,h.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,s.Cg)([(0,h.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],y.prototype,"paths",void 0),(0,s.Cg)([(0,d.K)("paths")],y.prototype,"writePaths",null),y=n=(0,s.Cg)([(0,h.$K)("esri.geometry.Polyline")],y),y.prototype.toJSON.isDefaultToJSON=!0},4197(t,e,i){i.d(e,{Vj:()=>u,cj:()=>l,jh:()=>r,l5:()=>o,yH:()=>a});var n=i(34275),s=i(9093);function r(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function h(t){return((0,n.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function o(t,e,i){return Array.isArray(t)?t.slice(e,e+i):t.subarray(e,e+i)}function a(t,e){if(0===e.length)return h(t);if(0===t.length)return h(e);let i=r(t.length+e.length);for(let e=0;e<t.length;++e)i[e]=t[e];for(let n=0;n<e.length;++n)i[t.length+n]=e[n];return i}function l(t){return[...t]}function u(t){let e=(0,s.vt)();for(let i=0;i<16;++i)e[i]=t[i];return e}},6774(t,e,i){i.d(e,{O3:()=>r,Ox:()=>h,bR:()=>n});class n{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new n(t[0],t[1])}clone(){return new n(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){let t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){let t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){let t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){let i=this.x,n=this.y;return this.x=i*t-n*e,this.y=i*e+n*t,this}rotateReverse(t,e){let i=this.x,n=this.y;return this.x=i*t+n*e,this.y=-i*e+n*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){let t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){let i=e.x-t.x,n=e.y-t.y;return Math.sqrt(i*i+n*n)}static add(t,e){return new n(t.x+e.x,t.y+e.y)}static sub(t,e){return new n(t.x-e.x,t.y-e.y)}}class s{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class r{constructor(t,e,i,n=8,s=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=n,this._pixelMargin=s,this._tileSize=512*n,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;let i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new n(t,e),this._firstPt=new n(t,e),this._dist=0}lineTo(t,e){let i,r,h,o,a,l,u,f,c=this._isIn(t,e),d=new n(t,e),y=n.distance(this._prevPt,d);if(c)this._prevIsIn?this._lineTo(t,e,!0):(i=this._prevPt,r=d,h=this._intersect(r,i),this._start=this._dist+y*(1-this._r),this._lineTo(h.x,h.y,!0),this._lineTo(r.x,r.y,!0));else if(this._prevIsIn)r=this._prevPt,i=d,h=this._intersect(r,i),this._lineTo(h.x,h.y,!0),this._lineTo(i.x,i.y,!1);else{let t=this._prevPt,e=d;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{let i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(o=(this._xmin-t.x)/(e.x-t.x),f=t.y+o*(e.y-t.y),f<=this._ymin?l=!1:f>=this._ymax?l=!0:i.push(new s(o,this._xmin,f))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(o=(this._xmax-t.x)/(e.x-t.x),f=t.y+o*(e.y-t.y),f<=this._ymin?l=!1:f>=this._ymax?l=!0:i.push(new s(o,this._xmax,f))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(o=(this._ymin-t.y)/(e.y-t.y),u=t.x+o*(e.x-t.x),u<=this._xmin?a=!1:u>=this._xmax?a=!0:i.push(new s(o,u,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(o=(this._ymax-t.y)/(e.y-t.y),u=t.x+o*(e.x-t.x),u<=this._xmin?a=!1:u>=this._xmax?a=!0:i.push(new s(o,u,this._ymax))),0===i.length)a?l?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):l?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+y*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+y*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=y,this._prevIsIn=c,this._prevPt=d}close(){if(this._line.length>2){let t=this._firstPt,e=this._prevPt;(t.x!==e.x||t.y!==e.y)&&this.lineTo(t.x,t.y);let i=this._line,n=i.length;for(;n>=4&&(i[0].x===i[1].x&&i[0].x===i[n-2].x||i[0].y===i[1].y&&i[0].y===i[n-2].y);)i.pop(),i[0].x=i[n-2].x,i[0].y=i[n-2].y,--n}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&o.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw Error("Only valid for lines");this._pushLine();let t=this._lines,e=t.length;if(0===e)return null;let i=[];for(let n=0;n<e;n++)i.push({line:t[n],start:this._starts[n]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,s,r;if(e.x>=this._xmin&&e.x<=this._xmax)s=e.y<=this._ymin?this._ymin:this._ymax,r=(s-t.y)/(e.y-t.y),i=t.x+r*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,r=(i-t.x)/(e.x-t.x),s=t.y+r*(e.y-t.y);else{s=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;let n=(i-t.x)/(e.x-t.x),h=(s-t.y)/(e.y-t.y);n<h?(r=n,s=t.y+n*(e.y-t.y)):(r=h,i=t.x+h*(e.x-t.x))}return this._r=r,new n(i,s)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3===this._type?(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new n(t,e)),this._isH=!1,this._isV=!1):i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new n(t,e)))}_lineTo(t,e,i){let s,r;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(s=this._line[this._line.length-1],s.equals(t,e)))return;this._line.push(new n(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){s=this._line[this._line.length-1];let i=s.x===t,h=s.y===e;if(i&&h)return;this._isH&&i||this._isV&&h?(s.x=t,s.y=e,r=this._line[this._line.length-2],r.x===t&&r.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(r=this._line[this._line.length-2],this._isH=r.x===t,this._isV=r.y===e)):(this._isH=r.x===t,this._isV=r.y===e)):(this._line.push(new n(t,e)),this._isH=i,this._isV=h)}else this._line.push(new n(t,e))}}class h{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];let i=this._ratio;this._line.push(new n(t*i,e*i))}lineTo(t,e){let i=this._ratio;this._line.push(new n(t*i,e*i))}close(){let t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class o{static simplify(t,e,i){if(!i)return;let n=-e,s=t+e,r=-e,h=t+e,a=[],l=[],u=i.length;for(let t=0;t<u;++t){let e=i[t];if(!e||e.length<2)continue;let o,u=e[0],f=e.length;for(let i=1;i<f;++i)o=e[i],u.x===o.x&&(u.x<=n&&(u.y>o.y?(a.push(t),a.push(i),a.push(0),a.push(-1)):(l.push(t),l.push(i),l.push(0),l.push(-1))),u.x>=s&&(u.y<o.y?(a.push(t),a.push(i),a.push(1),a.push(-1)):(l.push(t),l.push(i),l.push(1),l.push(-1)))),u.y===o.y&&(u.y<=r&&(u.x<o.x?(a.push(t),a.push(i),a.push(2),a.push(-1)):(l.push(t),l.push(i),l.push(2),l.push(-1))),u.y>=h&&(u.x>o.x?(a.push(t),a.push(i),a.push(3),a.push(-1)):(l.push(t),l.push(i),l.push(3),l.push(-1)))),u=o}if(0===a.length||0===l.length)return;o.fillParent(i,l,a),o.fillParent(i,a,l);let f=[];o.calcDeltas(f,l,a),o.calcDeltas(f,a,l),o.addDeltas(f,i)}static fillParent(t,e,i){let n=i.length,s=e.length;for(let r=0;r<s;r+=4){let s=e[r],h=e[r+1],o=e[r+2],l=t[s][h-1],u=t[s][h],f=8092,c=-1;for(let e=0;e<n;e+=4){if(i[e+2]!==o)continue;let n=i[e],s=i[e+1],r=t[n][s-1],h=t[n][s];switch(o){case 0:case 1:if(a(l.y,r.y,h.y)&&a(u.y,r.y,h.y)){let t=Math.abs(h.y-r.y);t<f&&(f=t,c=e)}break;case 2:case 3:if(a(l.x,r.x,h.x)&&a(u.x,r.x,h.x)){let t=Math.abs(h.x-r.x);t<f&&(f=t,c=e)}}}e[r+3]=c}}static calcDeltas(t,e,i){let n=e.length;for(let s=0;s<n;s+=4){let n=o.calcDelta(s,e,i,[]);t.push(e[s]),t.push(e[s+1]),t.push(e[s+2]),t.push(n)}}static calcDelta(t,e,i,n){let s=e[t+3];if(-1===s)return 0;let r=n.length;return r>1&&n[r-2]===s?0:(n.push(s),o.calcDelta(s,i,e,n)+1)}static addDeltas(t,e){let i=t.length,n=0;for(let e=0;e<i;e+=4){let i=t[e+3];i>n&&(n=i)}for(let s=0;s<i;s+=4){let i=e[t[s]],r=t[s+1],h=n-t[s+3];switch(t[s+2]){case 0:i[r-1].x-=h,i[r].x-=h,1===r&&(i[i.length-1].x-=h),r===i.length-1&&(i[0].x-=h);break;case 1:i[r-1].x+=h,i[r].x+=h,1===r&&(i[i.length-1].x+=h),r===i.length-1&&(i[0].x+=h);break;case 2:i[r-1].y-=h,i[r].y-=h,1===r&&(i[i.length-1].y-=h),r===i.length-1&&(i[0].y-=h);break;case 3:i[r-1].y+=h,i[r].y+=h,1===r&&(i[i.length-1].y+=h),r===i.length-1&&(i[0].y+=h)}}}}const a=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},70328(t,e,i){i.d(e,{BI:()=>A,C:()=>h,DC:()=>c,Ej:()=>x,Ie:()=>T,Jt:()=>B,Lu:()=>w,Ne:()=>b,RF:()=>f,TF:()=>p,VL:()=>y,aI:()=>S,fA:()=>o,gE:()=>l,gX:()=>g,hZ:()=>I,iT:()=>d,is:()=>P,pg:()=>M,uJ:()=>m,vI:()=>v,vY:()=>a,vt:()=>r,w1:()=>u,yr:()=>_}),i(35522);var n=i(5443),s=(i(19419),i(4197));function r(t=R){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function h(t,e){for(let i=0;i<6;i++)t[i]=e[i];return t}function o(t,e,i,n,s,h,o=r()){return o[0]=t,o[1]=e,o[2]=i,o[3]=n,o[4]=s,o[5]=h,o}function a(t,e=r()){return function(t,e,i,n=r()){return I(n,C),function(t,e,i=0,n=e.length/3){let s=t[0],r=t[1],h=t[2],o=t[3],a=t[4],l=t[5];for(let t=0;t<n;t++)s=Math.min(s,e[i+3*t]),r=Math.min(r,e[i+3*t+1]),h=Math.min(h,e[i+3*t+2]),o=Math.max(o,e[i+3*t]),a=Math.max(a,e[i+3*t+1]),l=Math.max(l,e[i+3*t+2]);t[0]=s,t[1]=r,t[2]=h,t[3]=o,t[4]=a,t[5]=l}(n,t,e,i),n}(t,0,t.length/3,e)}function l(t,e=(0,s.jh)(24)){let[i,n,r,h,o,a]=t;return e[0]=i,e[1]=n,e[2]=r,e[3]=i,e[4]=n,e[5]=a,e[6]=i,e[7]=o,e[8]=r,e[9]=i,e[10]=o,e[11]=a,e[12]=h,e[13]=n,e[14]=r,e[15]=h,e[16]=n,e[17]=a,e[18]=h,e[19]=o,e[20]=r,e[21]=h,e[22]=o,e[23]=a,e}function u(t,e){return isFinite(t[2])||isFinite(t[5])?new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new n.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function f(t,e,i=t){i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i[2]=Math.min(t[2],e[2]),i[3]=Math.max(t[3],e[3]),i[4]=Math.max(t[4],e[4]),i[5]=Math.max(t[5],e[5])}function c(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function d(t,[e,i,n]){!function(t,e,i,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.min(t[2],n),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],i),t[5]=Math.max(t[5],n)}(t,e,i,n)}function y(t){return t[0]>=t[3]?0:t[3]-t[0]}function _(t){return t[1]>=t[4]?0:t[4]-t[1]}function m(t){return t[2]>=t[5]?0:t[5]-t[2]}function p(t){let e=y(t),i=m(t),n=_(t);return e*e+i*i+n*n}function g(t,e=[0,0,0]){return e[0]=t[0]+y(t)/2,e[1]=t[1]+_(t)/2,e[2]=t[2]+m(t)/2,e}function x(t,e=[0,0,0]){return e[0]=y(t),e[1]=_(t),e[2]=m(t),e}function M(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function w(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function b(t,e,i=t){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i!==t&&(i[3]=t[3],i[4]=t[4],i[5]=t[5]),i}function v(t,e,i=t){return i[3]=e[0],i[4]=e[1],i[5]=e[2],i!==t&&(i[0]=t[0],i[1]=t[1],i[2]=t[2]),t}function I(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function T(t){return t?I(t,C):r(C)}function B(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function A(t,e,i,n,s){return t[0]=e,t[1]=i,t[2]=-1/0,t[3]=n,t[4]=s,t[5]=1/0,t}function P(t){return 6===t.length}function S(t,e,i){if(null==t||null==e)return t===e;if(!P(t)||!P(e))return!1;if(i){for(let n=0;n<t.length;n++)if(!i(t[n],e[n]))return!1}else for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],R=[0,0,0,0,0,0];r(),i.d(e,["qv",0,C,"v_",0,R])},60408(t,e,i){function n(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function s(t){return void 0!==t.points}function r(t){return void 0!==t.x&&void 0!==t.y}function h(t){return void 0!==t.paths||void 0!==t.curvePaths}function o(t){return void 0!==t.rings||void 0!==t.curveRings}function a(t){return"object"==typeof t&&"vertexAttributes"in t}function l(t){return t?r(t)?"esriGeometryPoint":h(t)?"esriGeometryPolyline":o(t)?"esriGeometryPolygon":n(t)?"esriGeometryEnvelope":s(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function f(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}i.d(e,{$B:()=>l,Bi:()=>o,Pv:()=>u,Rg:()=>h,U9:()=>s,W0:()=>f,ZC:()=>n,fT:()=>r,uW:()=>a})},6518(t,e,i){i.d(e,{F:()=>o});var n=i(44208),s=i(75503),r=i(19419);const h={minX:0,minY:0,maxX:0,maxY:0};class o{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s.wq(9,(0,n.A)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){let t=Array(this._idByBounds.size),e=0;this._idByBounds.forEach((i,n)=>{t[e++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter(t=>this._idByBounds.has(t))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;let t=(0,r.Ie)();for(let e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){let e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,i){(function(t){h.minX=t[0],h.minY=t[1],h.maxX=t[2],h.maxY=t[3]})(e),t.search(h,i)}(this._index,t,t=>e(this._idByBounds.get(t)))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){let e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},83221(t,e,i){i.d(e,{A:()=>y});var n=i(4576),s=i(49186),r=i(65529),h=i(53966),o=i(70328),a=i(19419),l=i(90708),u=i(6518),f=i(51441),c=i(37730);const d=(0,o.vt)();class y{constructor(t){this.geometryInfo=t,this._boundsStore=new u.F,this._featuresById=new Map,this._usedMemory=0,this.events=new r.bk,this.featureAdapter=c.T}get usedMemory(){return this._usedMemory}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){return this._boundsStore.fullBounds}get storeStatistics(){let t=0;return this._featuresById.forEach(e=>{null!=e.geometry&&e.geometry.coords&&(t+=e.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:t/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}getFullExtent(t){if(null==this.fullBounds)return null;let[e,i,n,s]=this.fullBounds;return{xmin:e,ymin:i,xmax:n,ymax:s,spatialReference:(0,f.ag)(t)}}add(t){this._add(t),this._emitChanged()}addMany(t){for(let e of t)this._add(e);this._emitChanged()}upsertMany(t){let e=t.map(t=>this._upsert(t));return this._emitChanged(),e.filter(n.Ru)}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged(),this._usedMemory=0}removeById(t){let e=this._featuresById.get(t);return e?(this._remove(e),this._emitChanged(),e):null}removeManyById(t){this._boundsStore.invalidateIndex();for(let e of t){let t=this._featuresById.get(e);t&&this._remove(t)}this._emitChanged()}forEachBounds(t,e){for(let i of t){let t=this._boundsStore.get(i.objectId);t&&e((0,o.Jt)(d,t))}}getFeature(t){return this._featuresById.get(t)}has(t){return this._featuresById.has(t)}forEach(t){this._featuresById.forEach(e=>t(e))}forEachInBounds(t,e){this._boundsStore.forEachInBounds(t,t=>{e(this._featuresById.get(t))})}_emitChanged(){this.events.emit("changed",void 0)}_add(t){if(!t)return;let e=t.objectId;if(null==e)return void h.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:t}));let i,n=this._featuresById.get(e);n?(t.displayId=n.displayId,i=this._boundsStore.get(e),this._boundsStore.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(n)??0):null!=this.onFeatureAdd&&this.onFeatureAdd(t),t.geometry?.coords?.length?(i=(0,l.jQ)(i??(0,a.vt)(),t.geometry),null!=i&&this._boundsStore.set(e,i),this._featuresById.set(e,t),this._usedMemory+=this.estimateFeatureUsedMemory?.(t)??0):(this._boundsStore.set(e,null),this._featuresById.set(e,t))}_upsert(t){let e=t?.objectId;if(null==e)return h.A.getLogger("esri.layers.graphics.data.FeatureStore").error(new s.A("featurestore:invalid-feature","feature id is missing",{feature:t})),null;let i=this._featuresById.get(e);if(!i)return this._add(t),t;this._usedMemory-=this.estimateFeatureUsedMemory?.(i)??0;let{geometry:n,attributes:r}=t;for(let t in r)i.attributes[t]=r[t];return n&&(i.geometry=n,this._boundsStore.set(e,(0,l.jQ)((0,a.vt)(),n)??null)),this._usedMemory+=this.estimateFeatureUsedMemory?.(i)??0,i}_remove(t){null!=this.onFeatureRemove&&this.onFeatureRemove(t);let e=t.objectId;return this._boundsStore.delete(e),this._featuresById.delete(e),this._usedMemory-=this.estimateFeatureUsedMemory?.(t)??0,t}}},37730(t,e,i){var n=i(43334);const s={getObjectId:t=>t.objectId,getAttributes:t=>t.attributes,getAttribute:(t,e)=>t.attributes[e],cloneWithGeometry:(t,e,i)=>new n.Om(e,t.attributes,null,t.objectId,t.displayId,t.distance,t.vertexCount),getGeometry:t=>t.geometry,getCentroid:(t,e)=>t.ensureCentroid(e)};i.d(e,["T",0,s])},85113(t,e,i){i.d(e,{BM:()=>T,bd:()=>B,sO:()=>I,xD:()=>f});var n=i(67482),s=i(49186),r=i(21325),h=i(90708),o=i(43334),a=i(92722),l=i(30524);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function f(t){return u[t]}function*c(t){switch(t.type){case"Feature":yield t;break;case"FeatureCollection":for(let e of t.features)e&&(yield e)}}function*d(t){if(t)switch(t.type){case"Point":yield t.coordinates;break;case"LineString":case"MultiPoint":yield*t.coordinates;break;case"MultiLineString":case"Polygon":for(let e of t.coordinates)yield*e;break;case"MultiPolygon":for(let e of t.coordinates)for(let t of e)yield*t}}function y(t){for(let e of t)if(e.length>2)return!0;return!1}function _(t){let e=0;for(let i=0;i<t.length;i++){let n=t[i],s=t[(i+1)%t.length];e+=n[0]*s[1]-s[0]*n[1]}return e<=0}function m(t){let e=t[0],i=t[t.length-1];(e[0]!==i[0]||e[1]!==i[1]||e[2]!==i[2])&&t.push(e)}function p(t,e){let{coordinates:i,type:n}=t,s=e.hasZ??!1;switch(n){case"Point":return new a.A([],[...i],s,!1);case"LineString":return(0,h.Ap)({paths:[i],hasZ:!0},s,!1);case"MultiLineString":return(0,h.Ap)({paths:i,hasZ:!0},s,!1);case"MultiPoint":return(0,h.PR)({points:i,hasZ:!0},s,!1);case"Polygon":case"MultiPolygon":{let t=new a.A([],[],s,!1);for(let e of"Polygon"===n?[i]:i){g(t,e[0],s);for(let i=1;i<e.length;i++)x(t,e[i],s)}return t}}}function g(t,e,i){m(e),function(t){return!_(t)}(e)?w(t,e,i):M(t,e,i)}function x(t,e,i){m(e),function(t){return _(t)}(e)?w(t,e,i):M(t,e,i)}function M(t,e,i){for(let n of e)b(t,n,i);t.lengths.push(e.length)}function w(t,e,i){for(let n=e.length-1;n>=0;n--)b(t,e[n],i);t.lengths.push(e.length)}function b(t,[e,i,n],s){t.coords.push(e,i),s&&t.coords.push(n||0)}function v(t){switch(typeof t){case"string":return(0,n.C)(t)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function I(t,e=4326){if(!t)throw new s.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==t.type&&"FeatureCollection"!==t.type)throw new s.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:t});let{crs:i}=t;if(!i)return;let n="string"==typeof i?i:"name"===i.type?i.properties.name:"EPSG"===i.type?i.properties.code:null,h=(0,r.oT)({wkid:e})?RegExp(".*(CRS84H?|4326)$","i"):RegExp(`.*(${e})$`,"i");if(!n||!h.test(n))throw new s.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:i})}function T(t,e={}){let i,n=[],s=new Set,r=new Set,h=!1,o=null,a=!1,{geometryType:u=null}=e;for(let e of c(t)){let{geometry:t,properties:c,id:_}=e;if((!t||(u||=f(t.type),f(t.type)===u))&&(h||=y(d(t)),a||(a=null!=_,a&&(i=typeof _,c&&(o=Object.keys(c).filter(t=>c[t]===_)))),c&&o&&a&&null!=_&&(o.length>1?o=o.filter(t=>c[t]===_):1===o.length&&(o=c[o[0]]===_?o:[])),c))for(let t in c){if(s.has(t))continue;let e=v(c[t]);if("unknown"===e){r.add(t);continue}r.delete(t),s.add(t);let i=(0,l.rS)(t);i&&n.push({name:i,alias:t,type:e})}}let _=(0,l.rS)(1===o?.length&&o[0]||null)??void 0;if(_)for(let t of n)if(t.name===_&&(0,l.WA)(t)){t.type="esriFieldTypeOID";break}return{fields:n,geometryType:u,hasZ:h,objectIdFieldName:_,objectIdFieldType:i,unknownFields:Array.from(r)}}function B(t,e){return Array.from(function*(t,e={}){let{geometryType:i,objectIdField:n}=e;for(let s of t){let{geometry:t,properties:r,id:h}=s;if(t&&f(t.type)!==i)continue;let a,l=r||{};n&&(a=l[n],null!=h&&!a&&(l[n]=a=h)),yield new o.Om(t&&p(t,e),l,null,a)}}(c(t),e))}},14289(t,e,i){i.r(e),i.d(e,{default:()=>P});var n=i(56507),s=i(17676),r=i(19419),h=i(21325),o=i(6774),a=i(90708),l=i(92722),u=i(83221),f=i(31464),c=i(85113);const d=new TextEncoder;class y{constructor(){this._bytes=[]}finish(){return new Uint8Array(this._bytes)}writeBooleanField(t,e){this._writeTag(t,0),this.writeVarint(+!!e)}writeDoubleField(t,e){this._writeTag(t,1);let i=new ArrayBuffer(8);new DataView(i).setFloat64(0,e,!0),this._writeBytes(new Uint8Array(i))}writeMessage(t,e,i){this._writeTag(t,2);let n=this._bytes.length;for(let t=0;t<5;t++)this._bytes.push(0);let s=this._bytes.length;e(i,this),this._writeMessageLength(n,this._bytes.length-s)}writeStringField(t,e){let i=d.encode(e);this._writeTag(t,2),this.writeVarint(i.byteLength),this._writeBytes(i)}writeSVarintField(t,e){this._writeTag(t,0),this.writeVarint(e<0?2*-e-1:2*e)}writeVarint(t){for(;t>127;)this._bytes.push(127&t|128),t=Math.floor(t/128);this._bytes.push(t)}writeVarintField(t,e){this._writeTag(t,0),this.writeVarint(e)}_writeBytes(t){for(let e of t)this._bytes.push(e)}_writeMessageLength(t,e){let i=0;for(;e>127;)this._bytes[t+i++]=127&e|128,e=Math.floor(e/128);this._bytes[t+i++]=e,this._bytes.splice(t+i,5-i)}_writeTag(t,e){this.writeVarint(t<<3|e)}}function _(t,e,i){let n=new y;return n.writeMessage(3,m,{cursor:e,extent:i,keyIndices:new Map,keys:[],name:t,valueIndices:new Map,values:[]}),Uint8Array.from(n.finish()).buffer}function m(t,e){for(e.writeVarintField(15,1),e.writeStringField(1,t.name),e.writeVarintField(5,t.extent);t.cursor.next();)e.writeMessage(2,p,t);for(let i of t.keys)e.writeStringField(3,i);for(let i of t.values)e.writeMessage(4,M,i)}function p(t,e){let i=t.cursor.getId();"number"==typeof i&&e.writeVarintField(1,i),e.writeMessage(2,g,t),e.writeVarintField(3,t.cursor.getType()),e.writeMessage(4,x,t.cursor)}function g(t,e){let i=t.cursor.getAttributes();if(i)for(let n of Object.keys(i)){let s=w(i[n]);if(null==s)continue;let r=t.keyIndices.get(n);r??(r=t.keys.length,t.keyIndices.set(n,r),t.keys.push(n));let h=`${typeof s}:${s}`,o=t.valueIndices.get(h);o??(o=t.values.length,t.valueIndices.set(h,o),t.values.push(s)),e.writeVarint(r),e.writeVarint(o)}}function x(t,e){let i=t.getType(),n=0,s=0;for(let r=0;r<t.getPathCount();r++){let h=t.getPathLength(r),o=1===i?h:1;e.writeVarint(b(1,o));let a=3===i?h-1:h;for(let h=0;h<a;h++){1===h&&1!==i&&e.writeVarint(b(2,a-1));let o=t.getX(r,h),l=t.getY(r,h);e.writeVarint(v(o-n)),e.writeVarint(v(l-s)),n=o,s=l}3===i&&e.writeVarint(b(7,1))}}function M(t,e){"string"==typeof t?e.writeStringField(1,t):"boolean"==typeof t?e.writeBooleanField(7,t):Number.isInteger(t)?t<0?e.writeSVarintField(6,t):e.writeVarintField(5,t):e.writeDoubleField(3,t)}function w(t){return"string"==typeof t||"boolean"==typeof t||"number"==typeof t?t:null==t?null:JSON.stringify(t)??null}function b(t,e){return(e<<3)+(7&t)}function v(t){return t<<1^t>>31}const I=4096,T=20037508.342787,B=2*T,A=[{geometryType:"esriGeometryPolygon",vectorTileGeometryType:3},{geometryType:"esriGeometryPolyline",vectorTileGeometryType:2},{geometryType:"esriGeometryPoint",vectorTileGeometryType:1},{geometryType:"esriGeometryMultipoint",vectorTileGeometryType:1}];class P{constructor(){this._buffer=128,this._featureIds=new Map,this._name="",this._stores=[],this._tolerance=.375}destroy(){for(let{store:t}of this._stores)t.clear();this._featureIds.clear(),this._stores.length=0}async initialize({definition:t,name:e,requestOptions:i},r={}){if(null==t.data)throw Error(`GeoJSON source '${e}' must define a data property.`);if(!0===t.lineMetrics)throw Error("GeoJSON lineMetrics are not supported.");if(t.promoteId&&t.generateId)throw Error("GeoJSON promoteId and generateId cannot be used together.");let h="string"==typeof t.data?(await(0,n.A)(t.data,{...i,responseType:"json",signal:r.signal})).data:t.data;(0,s.Te)(r),(0,c.sO)(h),this.destroy(),this._buffer=t.buffer??128,this._name=e,this._tolerance=t.tolerance??.375;let o=0;for(let{geometryType:e,vectorTileGeometryType:i}of A){let n=(0,c.bd)(h,{geometryType:e,hasZ:!1}),s=S(h,e,t);if(0===n.length)continue;let r=new u.A({geometryType:e,hasM:!1,hasZ:!1}),a=[],l=0;for(let t of n){let i=C(t.geometry,e);i&&(t.objectId=o++,t.geometry=i,this._featureIds.set(t.objectId,s[l++]??null),a.push(t))}a.length>0&&(r.addMany(a),this._stores.push({geometryType:e,store:r,vectorTileGeometryType:i}))}return(0,s.Te)(r),{geometryTypes:["polygon","line","point"].filter(t=>this._stores.some(({vectorTileGeometryType:e})=>e===function(t){switch(t){case"polygon":return 3;case"line":return 2;case"point":return 1}}(t)))}}requestTile({col:t,level:e,row:i},n={}){(0,s.Te)(n);let r=this._getTileFeatures(e,i,t),h=r.length>0?_(this._name,new F(r),I):new ArrayBuffer(0);return(0,s.Te)(n),{result:h,transferList:[h]}}_getTileFeatures(t,e,i){let n=B/2**t,s=i*n-20037508.342787,h=T-e*n,o=n/I,a=this._buffer*o,l=this._tolerance*o,u=[];for(let t of[-40075016.685574,0,B]){let e=(0,r.fA)(s-a-t,h-n-a,s+n+a-t,h+a),i={scale:[o,-o,1,1],translate:[s-t,h,0,0]};for(let{geometryType:t,store:n,vectorTileGeometryType:s}of this._stores)n.forEachInBounds(e,e=>{let n=R(e,t,s,i,l,this._buffer);n&&u.push({attributes:e.attributes,geometry:n,id:this._featureIds.get(e.objectId),type:s})})}return u}}function S(t,e,i){let n=[],s="FeatureCollection"===t.type?t.features:[t];for(let t=0;t<s.length;t++){let r=s[t];if(!r.geometry||(0,c.xD)(r.geometry.type)!==e)continue;let h=i.promoteId?r.properties?.[i.promoteId]:!0===i.generateId?t:r.id;n.push("number"==typeof h||"string"==typeof h?h:null)}return n}function C(t,e){return t?(0,a.Ux)((0,f.Cv)((0,a.zv)(t,e,!1,!1),h.KK,h.ch))??null:null}function R(t,e,i,n,s,r){if(!t.geometry)return null;let h=s>0?(0,a.kz)(t.geometry,e,s,!1,!1):t.geometry;return function(t,e,i){if(!t)return null;let n=new o.O3(0,0,0,8,i/8);if(n.setExtent(I),n.reset(e),1===e)for(let e=0;e<t.size;e++){let i=e*t.stride;n.moveTo(t.coords[i],t.coords[i+1])}else{let i=0;for(let s of t.lengths){n.moveTo(t.coords[i],t.coords[i+1]);for(let e=1;e<s;e++){let s=i+e*t.stride;n.lineTo(t.coords[s],t.coords[s+1])}3===e&&n.close(),i+=s*t.stride}}let s=n.result();if(!s)return null;let r=1===e?[s.length]:s.map(t=>t.length),h=[];for(let t of s)for(let e of t)h.push(e.x,e.y);return new l.A(r,h)}((0,a.Nl)(h,e,n,!1,!1,!0),i,r)}class F{constructor(t){this._features=t,this._index=-1,this._pathOffsets=[]}get _feature(){return this._features[this._index]}destroy(){}getAttributes(){return this._feature.attributes}getId(){return this._feature.id}getPathCount(){return 1===this._feature.type?1:this._feature.geometry.lengths.length}getPathLength(t){return 1===this._feature.type?this._feature.geometry.size:this._feature.geometry.lengths[t]}getType(){return this._feature.type}getX(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)]}getY(t,e){return this._feature.geometry.coords[this._getCoordinateIndex(t,e)+1]}next(){return!(++this._index>=this._features.length||(this._pathOffsets=function(t){let e=Array(t.lengths.length),i=0;for(let n=0;n<t.lengths.length;n++)e[n]=i,i+=t.lengths[n];return e}(this._feature.geometry),0))}_getCoordinateIndex(t,e){return(1===this._feature.type?e:this._pathOffsets[t]+e)*this._feature.geometry.stride}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9953],{10382(e,t,r){r.d(t,{A:()=>u});var s=r(36563),n=(r(44208),r(17676)),o=r(9775),i=r(72457),a=r(52268),l=r(61322);class u{constructor(){this._clients=[],this._ongoingJobsQueue=new o.A,this._ongoingLowPriorityJobsQueue=new o.A,this._onClientConnectedCallbacks=new Set,this._clientOpenOptions=null,this._portSource=null,this._onClose=null,this._isProvisioningClient=!1,this._isClosed=!1}destroy(){this.close()}[Symbol.dispose](){this.destroy()}get closed(){return this._isClosed}async open(e,t,r){this._isClosed=!1,this._clientOpenOptions=t,this._portSource=e[Symbol.iterator](),this._onClose=r,this._clients.length=0,await this._tryAllocateNewClient()}broadcast(e,t,r){return this._clients.map(s=>s.invoke(e,t,r))}close(){if(this._isClosed)return;let e;for(this._isClosed=!0;e=this._ongoingJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(;e=this._ongoingLowPriorityJobsQueue.pop();)e.resolver.reject((0,n.NK)(`Worker closing, aborting job calling '${e.methodName}'`));for(let e of this._clients)e.close();this._clients.length=0,this._onClose?.(),this._onClose=null,this._portSource?.return?.(),this._portSource=null,this._onClientConnectedCallbacks.clear(),(0,i.h)(this)}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){let s=Promise.withResolvers();return(1===r?.jobPriority?this._ongoingLowPriorityJobsQueue:this._ongoingJobsQueue).push({methodName:e,data:t,invokeOptions:r,resolver:s}),this._provisionClientIfNeeded(),this._signalClientsJobAdded(),s.promise}createInvokeProxy(e){return(0,a.L)(this,e)}on(e,t){return(0,s.vE)(this._clients.map(r=>r.on(e,t)))}onClientConnected(e){this._onClientConnectedCallbacks.add(e);for(let t of this._clients)t&&e(t);return(0,s.hA)(()=>{this._onClientConnectedCallbacks.delete(e)})}openPorts(){return this._clients.map(e=>e.openPort())}get test(){}async _addClient(e,t){let r=await e;if((0,n.G4)(t)||this._isClosed)throw(0,n.NK)();let s=new l.default(r,t,this._ongoingJobsQueue,this._ongoingLowPriorityJobsQueue);this._clients.push(s);for(let e of this._onClientConnectedCallbacks)e(s);s.jobAdded()}_signalClientsJobAdded(){for(let e of this._clients)e.jobAdded()}_provisionClientIfNeeded(){let e=this._ongoingJobsQueue.length>0||this._ongoingLowPriorityJobsQueue.length>0,t=this._clients.some(e=>e&&!e.isBusy());e&&!t&&(0,n.QZ)(this._tryAllocateNewClient())}async _tryAllocateNewClient(){let e=this._clientOpenOptions;if(!this._portSource||this._isClosed||!e||this._isProvisioningClient)return;let t=this._portSource.next();if(t.done)this._portSource=null;else{this._isProvisioningClient=!0;try{await this._addClient(t.value,e)}finally{this._isProvisioningClient=!1}}}}},72457(e,t,r){r.d(t,{h:()=>o,k:()=>n});const s=new FinalizationRegistry(e=>{e.close()});function n(e,t){s.register(e,t,t)}function o(e){s.unregister(e)}},29953(e,t,r){r.d(t,{ho:()=>F,N1:()=>V});var s=r(49186),n=r(36563),o=r(44208),i=r(91869),a=r(17676),l=r(10382),u=r(72457),c=r(61322),d=r(53966),h=r(97768),f=r(56507),g=r(84952);const p={async request(e,t){let r=e.options,s=r.responseType;r.signal=t?.signal,r.responseType="native"===s||"native-request-init"===s?"native-request-init":s&&["blob","json","text"].includes(s)&&(0,g.sC)(e.url)?.after?s:"array-buffer";let n=await(0,f.A)(e.url,r),o={data:n.data,httpStatus:n.httpStatus,ssl:n.ssl};switch(n.requestOptions?.responseType){case"native-request-init":return delete o.data.signal,o;case"blob":o.data=await o.data.arrayBuffer();break;case"json":o.data=(new TextEncoder).encode(JSON.stringify(o.data)).buffer;break;case"text":o.data=(new TextEncoder).encode(o.data).buffer}return{result:o,transferList:[o.data]}}};var m=r(8341),y=r(2741),w=r(92602),b=r(79783),_=r(70333);r(87811);const k={};var v=r(26390);class A{constructor(){let e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach(t=>{this[t]=(...r)=>e[t](...r)})}}class C{constructor(){this._dispatcher=new A,this._workerPostMessage({type:m.Go.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,v.d)(()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))})}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,v.d)(()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))})}async _workerMessageHandler(e){let t=(0,m.VI)(e);if(t&&t.type===m.Go.OPEN){let{modulePath:e,jobId:r}=t,s=await c.default.loadWorker(e);s||=await(import(e));let n=c.default.connect(s);this._workerPostMessage({type:m.Go.OPENED,jobId:r,data:n})}}}const P=()=>d.A.getLogger("esri.core.workers.workerFactory"),{HANDSHAKE:E}=m.Go;let x,N;const L="Failed to create Worker. Fallback to execute module in main thread";async function O(){if(!(0,o.A)("esri-workers"))return M(new C);if(!x&&!N)try{let e='"use strict";let globalId=0;const outgoing=new Map,configuration={CONFIGURATION};self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}self.invokeStaticMessage=(e,o,r)=>{const t=r&&r.signal,n=globalId++;let s=null;return new Promise((r,i)=>{if(t){if(t.aborted)return i(createAbortError());s=()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))},t.addEventListener("abort",s)}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}).finally(()=>{t&&t.removeEventListener("abort",s)})};let workerVersionChecked=!1;function checkWorkerVersion(e){if(!workerVersionChecked&&e.kernelInfo){workerVersionChecked=!0;const{fullVersion:o}=configuration.kernelInfo,{fullVersion:r,version:t}=e.kernelInfo;esriConfig.assetsPath!==esriConfig.defaultAssetsPath&&o!==r&&console.warn(`Version mismatch detected between ArcGIS Maps SDK for JavaScript modules and assets. For more information visit https://esriurl.com/using-local-assets.\\nModules version: ${o}\\nAssets version: ${r??t}\\nAssets path: ${esriConfig.assetsPath}`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let t;function n(e){const o=t.connect(e);self.postMessage({type:2,jobId:r,data:o},[o])}"function"==typeof define&&define.amd?require([workerPath],e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||new Promise(e=>{require([o.modulePath],e)})).then(n)}):"System"in self&&"function"==typeof System.import?System.import(workerPath).then(e=>(t=e.default,checkWorkerVersion(t),t.loadWorker(o.modulePath))).then(e=>e||System.import(o.modulePath)).then(n):esriConfig.workers.useDynamicImport?import(workerPath).then(e=>{t=e.default||e,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(e=>e||import(o.modulePath)).then(n)}):(self.RemoteClient||importScripts(workerPath),t=self.RemoteClient.default||self.RemoteClient,checkWorkerVersion(t),t.loadWorker(o.modulePath).then(n));break;case 3:if(outgoing.has(r)){const s=outgoing.get(r);outgoing.delete(r),o.error?s.reject(JSON.parse(o.error)):s.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.split("{CONFIGURATION}").join(function(){let e;if(null!=w.A.default){let t={...w.A};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(w.A));e.assetsPath=(0,g.s2)(e.assetsPath),e.defaultAssetsPath=e.defaultAssetsPath?(0,g.s2)(e.defaultAssetsPath):void 0,e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.JK)(),e.has={"esri-csp-restrictions":(0,o.A)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,o.A)("esri-2d-update-debug"),"esri-2d-annotation-dimension-debug":(0,o.A)("esri-2d-annotation-dimension-debug"),"esri-2d-log-updating":!1,"esri-2d-complex-shaping":(0,o.A)("esri-2d-complex-shaping"),"esri-2d-force-complex-shaping":(0,o.A)("esri-2d-force-complex-shaping"),"esri-2d-stabilize-glyphs":(0,o.A)("esri-2d-stabilize-glyphs"),"featurelayer-pbf":(0,o.A)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,o.A)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,o.A)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,o.A)("featurelayer-simplify-mobile-factor"),"featurelayer-query-max-depth":(0,o.A)("featurelayer-query-max-depth"),"featurelayer-query-max-page-size":(0,o.A)("featurelayer-query-max-page-size"),"featurelayer-query-tile-max-features":(0,o.A)("featurelayer-query-tile-max-features"),"featurelayer-query-tile-concurrency":(0,o.A)("featurelayer-query-tile-concurrency"),"featurelayer-query-pausing-enabled":(0,o.A)("featurelayer-query-pausing-enabled"),"featurelayer-snapshot-concurrency":(0,o.A)("featurelayer-snapshot-concurrency"),"featurelayer-snapshot-enabled":(0,o.A)("featurelayer-snapshot-enabled"),"featurelayer-pixel-buffering-enabled":(0,o.A)("featurelayer-pixel-buffering-enabled"),"parquetlayer-full-query-feature-count":(0,o.A)("parquetlayer-full-query-feature-count"),"parquetlayer-cache-enabled":(0,o.A)("parquetlayer-cache-enabled"),"parquetlayer-legacy-field-overrides-enabled":(0,o.A)("parquetlayer-legacy-field-overrides-enabled"),"esri-atomics":(0,o.A)("esri-atomics"),"esri-shared-array-buffer":(0,o.A)("esri-shared-array-buffer"),"esri-tiles-debug":(0,o.A)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,o.A)("esri-workers-arraybuffer-transfer"),"feature-polyline-generalization-factor":(0,o.A)("feature-polyline-generalization-factor"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,g.s2)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,g.s2)(e.workers.workerPath):e.workers.workerPath=(0,g.s2)((0,y.s)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=(0,o.A)("esri-esbuild-build");let t=w.A.workers.loaderConfig,r=function(e){let t={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages?.slice()||[],paths:{...k.paths,...e.paths}};return e.hasOwnProperty("async")||(t.async=!0),e.hasOwnProperty("isDebug")||(t.isDebug=!1),e.baseUrl||(t.baseUrl=k.baseUrl),t}({baseUrl:t?.baseUrl,locale:(0,b.JK)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...t?.has},map:{...t?.map},paths:{...t?.paths},packages:t?.packages||[]});return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:{fullVersion:_.ol}})}());x=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){N=e||{}}let e;if(x)try{e=new Worker(x,{name:"esri-worker-"+S++})}catch{P().warn(L,N),e=new C}else P().warn(L,N),e=new C;return M(e)}async function M(e){return new Promise(t=>{function r(n){let o=(0,m.VI)(n);o&&o.type===E&&(e.removeEventListener("message",r),e.removeEventListener("error",s),t(e))}function s(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",s),P().warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new C).addEventListener("message",r),e.addEventListener("error",s)}e.addEventListener("message",r),e.addEventListener("error",s)})}let S=0;const{ABORT:I,INVOKE:j,OPEN:J,OPENED:U,RESPONSE:q}=m.Go;class R{static async create(e){let t=await O();return new R(t,e)}constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",e=>{e.preventDefault(),d.A.getLogger("esri.core.workers.WorkerOwner").error(e)})}terminate(){this.worker.terminate()}async open(e,t={}){let{signal:r}=t,s=(0,m.Jc)();return new Promise((t,n)=>{let o={resolve:t,reject:n,abortHandle:(0,a.NY)(r,()=>{this._outJobs.delete(s),this._post({type:I,jobId:s})})};this._outJobs.set(s,o),this._post({type:J,jobId:s,modulePath:e})})}_onMessage(e){let t=(0,m.VI)(e);if(t)switch(t.type){case U:this._onOpenedMessage(t);break;case q:this._onResponseMessage(t);break;case I:this._onAbortMessage(t);break;case j:this._onInvokeMessage(t)}}_onAbortMessage(e){let t=this._inJobs,r=e.jobId,s=t.get(r);s&&(s.controller&&s.controller.abort(),t.delete(r))}_onInvokeMessage(e){let t,{methodName:r,jobId:s,data:n,abortable:o}=e,i=o?new AbortController:null,l=this._inJobs,u=p[r];try{if("function"!=typeof u)throw TypeError(`${r} is not a function`);t=u.call(null,n,{signal:i?i.signal:null})}catch(e){return void this._post({type:q,jobId:s,error:(0,m.mF)(e)})}(0,a.$X)(t)?(l.set(s,{controller:i,promise:t}),t.then(e=>{l.has(s)&&(l.delete(s),this._post({type:q,jobId:s},e))},e=>{l.has(s)&&(l.delete(s),e||={message:"Error encountered at method"+r},(0,a.zf)(e)||this._post({type:q,jobId:s,error:(0,m.mF)(e||{message:`Error encountered at method ${r}`})}))})):this._post({type:q,jobId:s},t)}_onOpenedMessage(e){let{jobId:t,data:r}=e,s=this._outJobs.get(t);s&&(this._outJobs.delete(t),(0,h.xt)(s.abortHandle),s.resolve(r))}_onResponseMessage(e){let{jobId:t,error:r,data:n}=e,o=this._outJobs.get(t);o&&(this._outJobs.delete(t),(0,h.xt)(o.abortHandle),r?o.reject(s.A.fromJSON(JSON.parse(r))):o.resolve(n))}_post(e,t,r){return(0,m.u1)(this.worker,e,t,r)}}const H=[],$=new Map;let W=function(){let e=(0,o.A)("min-workers-pool-size")??2,t=(0,o.A)("max-workers-pool-size")??8,r=(0,o.A)("host-browser")&&void 0!==navigator.hardwareConcurrency?navigator.hardwareConcurrency-1:t;return Math.min(Math.max(e,r),t)}(),D=0;async function V(e,t={},r){let s=new l.A,{registryTarget:n,...o}=t;return await s.open(e,o,r),n&&(0,u.k)(n,s),s}async function F(e,t={}){if("string"!=typeof e)throw new s.A("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";(0,o.A)("host-webworker")&&!(0,o.A)("esri-workers")&&(r="local");let l=(0,i.tE)($,e,()=>new K(e));return"local"===r?async function({modulePath:e},t){let r=await c.default.loadWorker(e);r||=await(import(e)),(0,a.Te)(t.signal);let s=t.client||r;return await V([c.default.connect(r,t.schedule)],{...t,client:s})}(l,t):async function(e,t){await async function(){if(T)return T;z=new AbortController;let e=[];for(let t=0;t<W;t++){let r=R.create(t).then(e=>(H[t]=e,e));e.push(r)}return T=Promise.all(e),T}(),(0,a.Te)(t.signal);let r=[];return V(function*(e,t,r,s){let n=new Set;for(let o=0;o<t;o++){let t=e.getNextProxyId(e=>!n.has(e));if(null==t)break;n.add(t),s.push(e.useProxy(t)),yield H[t].open(e.modulePath,{signal:r})}}(e,"dedicated"===t.strategy?1:t.maxNumWorkers&&t.maxNumWorkers>0?Math.min(t.maxNumWorkers,W):W,t.signal,r),t,()=>(0,n.vE)(r).remove())}(l,t)}let z,T=null;class K{constructor(e){this.modulePath=e,this._proxyUseCount=new Map}useProxy(e){return this._proxyUseCount.set(e,this._getProxyUseCount(e)+1),{remove:()=>this._unuseProxy(e)}}getNextProxyId(e){let t,r=Array.from(this._proxyUseCount.keys()),s=D;D=(D+1)%W;for(let n=0;n<r.length;n++){let o=r[(s+n)%r.length];if(e(o)&&(r.length===W&&(t??=o),0===this._getProxyUseCount(o)))return o}if(null!=t)return t;for(let t=0;t<W;t++){let r=(t+s)%W;if(e(r)&&!this._proxyUseCount.has(r))return r}}_unuseProxy(e){this._proxyUseCount.set(e,Math.max(0,this._getProxyUseCount(e)-1))}_getProxyUseCount(e){return this._proxyUseCount.get(e)??0}}},79783(e,t,r){r.d(t,{ud:()=>k,JK:()=>v,oQ:()=>A,V2:()=>P});var s=r(2741),n=r(97770),o=r(73444),i=r(10838),a=r(18047),l=r(53966),u=r(93637),c=r(799);const d=()=>l.A.getLogger("esri.intl.substitute");function h(e,t){switch(t.type){case"date":return(0,n.Yq)(e,t.intlOptions);case"number":return(0,a.ZV)(e,t.intlOptions);default:return d().warn("missing format descriptor for key {key}"),g(e)}}function f(e,t){switch(t.toLowerCase()){case"dateformat":return(0,n.Yq)(e);case"numberformat":return(0,a.ZV)(e);default:return d().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,n.Yq)(e):/^numberformat/i.test(t)?(0,a.ZV)(e):g(e)}}function g(e){switch(typeof e){case"string":return e;case"number":return(0,a.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,n.Yq)(e):""}}var p=r(56507),m=r(49186);const y={"esri/t9n/basemaps":"esri/support/basemaps/t9n/basemaps","esri/t9n/common":"esri/common/t9n/common","esri/widgets/support/t9n/ColorPicker":"esri/widgets/support/ColorPicker/t9n/ColorPicker","esri/widgets/support/t9n/timezone":"esri/widgets/support/TimezonePicker/t9n/timezone","esri/widgets/support/t9n/uriUtils":"esri/widgets/support/uriUtils/t9n/uriUtils"};async function w(e){if(null!=_.fetchBundleAsset)return _.fetchBundleAsset(e);let t=await(0,p.A)(e,{responseType:"text"});return JSON.parse(t.data)}class b{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let s;s="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?RegExp(`^${t}`):t,this.getAssetUrl=s,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){let n=y[r]??r,o=t.exec(n);if(!o)throw new m.A("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let a=o[1]?`${o[1]}/`:"",l=o[2],u=(0,i.xO)(s),c=n.startsWith("esri/"),d=`${a}${l}.json`,h=u?`${a}${l}_${u}.json`:d,f=c?`${a}messages.en.json`:d,g=c?`${a}messages.${u??"en"}.json`:h,p=[...new Set(c?[g,h,f,d]:[g,f])];for(let[t,s]of p.entries())try{return await w(e(s))}catch(e){if(t===p.length-1)throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}throw new m.A("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`)}(this.getAssetUrl,this.matcher,e,t)}}const _={},k=i.ud,v=o.JK,A=o.oQ,C=i.ao,P=function(e,t,r={}){let{format:s={}}=r;return(0,c.HC)(e,e=>function(e,t,r){let s,n,o=e.indexOf(":");if(-1===o?s=e.trim():(s=e.slice(0,o).trim(),n=e.slice(o+1).trim()),!s)return"";let i=(0,u.wc)(s,t);if(null==i)return"";let a=(n?r?.[n]:null)??r?.[s];return a?h(i,a):n?f(i,n):g(i)}(e,t,s))};var E;C((E={pattern:"esri/",location:s.s},new b(E)))},10838(e,t,r){r.d(t,{ao:()=>d,ud:()=>h,xO:()=>f});var s=r(49186),n=r(36563),o=r(73444);const i={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,nn:"no",pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function a(e){if(function(e){return e in i}(e)){let t=i[e];return!0===t?e:t}return null}const l=[],u=new Map;function c(e){for(let t of u.keys())g(e.pattern,t)&&u.delete(t)}function d(e){return l.includes(e)||(c(e),l.unshift(e)),(0,n.hA)(()=>{let t=l.indexOf(e);t>-1&&(l.splice(t,1),c(e))})}async function h(e){let t=(0,o.JK)();u.has(e)||u.set(e,async function(e,t){let r=[];for(let s of l)if(g(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}throw r.length?new s.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new s.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));let r=u.get(e);return r&&await p.add(r),r}function f(e){let t=(0,o.lR)(e);return t?a(e)??a(t):null}function g(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)(()=>{u.clear()});const p=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||=Promise.withResolvers()}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18047(e,t,r){r.d(t,{Up:()=>l,ZV:()=>u,yx:()=>a});var s=r(73444);const n={ar:"ar-u-nu-latn",bs:"sr-Latn-CS",nn:"no-NN"};let o=new WeakMap,i={};function a(e={}){let t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function l(e){let{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:s}=e;return{minimumFractionDigits:t,maximumFractionDigits:r,useGrouping:"auto"===s?"auto":"always"===s}}function u(e,t){return Object.is(e,-0)&&(e=0),function(e){let t=e||i;if(!o.has(t)){let r=(0,s.lR)(),i=r&&n[r]||(0,s.QC)();o.set(t,new Intl.NumberFormat(i,e))}return o.get(t)}(t).format(e)}(0,s.Ml)(()=>{o=new WeakMap,i={}}),new Map}}]);