@arcgis/core 4.27.0-next.20230419 → 4.27.0-next.20230421

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 (203) hide show
  1. package/WebMap.js +1 -1
  2. package/WebScene.js +1 -1
  3. package/arcade/arcadeAsyncRuntime.js +1 -1
  4. package/arcade/arcadeCompiler.js +1 -1
  5. package/arcade/arcadeRuntime.js +1 -1
  6. package/arcade/executionError.js +1 -1
  7. package/assets/esri/core/workers/RemoteClient.js +1 -1
  8. package/assets/esri/core/workers/chunks/{f64f95623d9296a91f95.js → 059ec6fd9b971de4b4c1.js} +1 -1
  9. package/assets/esri/core/workers/chunks/0d805fd9cd9ff3a636ca.js +1 -0
  10. package/assets/esri/core/workers/chunks/{1fe31a412479815e5e2d.js → 10770939900946feb20d.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{5252f3cc244204edc299.js → 1216e939d363f96b6cc6.js} +1 -1
  12. package/assets/esri/core/workers/chunks/156dad2b7fed6749bae7.js +1 -0
  13. package/assets/esri/core/workers/chunks/15a97d3e42b00ac42984.js +1 -0
  14. package/assets/esri/core/workers/chunks/{d72c0c97cc4e30f1e4f2.js → 18704903814b9d73c708.js} +1 -1
  15. package/assets/esri/core/workers/chunks/1db5e4c8244dbc21590c.js +1 -0
  16. package/assets/esri/core/workers/chunks/2a1a5a1969e80a10dcca.js +1 -0
  17. package/assets/esri/core/workers/chunks/33b735faa582e6f39e9a.js +1 -0
  18. package/assets/esri/core/workers/chunks/34025ac04ca02531923a.js +1 -0
  19. package/assets/esri/core/workers/chunks/3e9f3479fd8558d9e3e3.js +1 -0
  20. package/assets/esri/core/workers/chunks/{d59274ac695dfcff1143.js → 46090b69e9161bc05141.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{f7aa972cb3903847b3bf.js → 47bf38d910e71ac39bb8.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{3978f4f68ada540ee3a3.js → 4f8a09b61267e5e26712.js} +1 -1
  23. package/assets/esri/core/workers/chunks/5183ecab7eddae7b70e8.js +1 -0
  24. package/assets/esri/core/workers/chunks/{a5c33b24b7ee042cb473.js → 51a0d1dabe7415515c77.js} +2 -2
  25. package/assets/esri/core/workers/chunks/541e6efc3b491e507410.js +1 -0
  26. package/assets/esri/core/workers/chunks/588256e65685ff21d2e9.js +1 -0
  27. package/assets/esri/core/workers/chunks/5c64fd3bf057a1a5527f.js +1 -0
  28. package/assets/esri/core/workers/chunks/6047bdaf4855506f8fdb.js +1 -0
  29. package/assets/esri/core/workers/chunks/6adb58f1bffc5d1c03bd.js +1 -0
  30. package/assets/esri/core/workers/chunks/770940417e6ddbdbb9d6.js +1 -0
  31. package/assets/esri/core/workers/chunks/{1c1d8be85297c483a606.js → 77c98121223a144170e3.js} +1 -1
  32. package/assets/esri/core/workers/chunks/80117007d86be4eb3bc3.js +1 -0
  33. package/assets/esri/core/workers/chunks/812cba53143565a825f1.js +1 -0
  34. package/assets/esri/core/workers/chunks/838849b751805615833a.js +1 -0
  35. package/assets/esri/core/workers/chunks/{9ca395f7bc8d397b5240.js → 88197520501fcc20b6e8.js} +1 -1
  36. package/assets/esri/core/workers/chunks/88f9dededcf60fd011ef.js +1 -0
  37. package/assets/esri/core/workers/chunks/88fdd288ef799a7ac48a.js +1 -0
  38. package/assets/esri/core/workers/chunks/8ae7fea9f7fda38dd207.js +1 -0
  39. package/assets/esri/core/workers/chunks/{0d080dd1ca6a71597409.js → 9265d4e9cfab2c7bbce5.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{8d41305509fedb3603ac.js → 94041a9ced04aa281d40.js} +1 -1
  41. package/assets/esri/core/workers/chunks/98540791fcef86069e44.js +1 -0
  42. package/assets/esri/core/workers/chunks/9c1b2f82877ff79969f5.js +1 -0
  43. package/assets/esri/core/workers/chunks/a7b3cd537c9127b5e65e.js +1 -0
  44. package/assets/esri/core/workers/chunks/{3d1c697182237807ab49.js → abea316f2eac0f3086ab.js} +1 -1
  45. package/assets/esri/core/workers/chunks/ad85ade6a2cfb56cf328.js +1 -0
  46. package/assets/esri/core/workers/chunks/b833b4ea2973bb16792e.js +1 -0
  47. package/assets/esri/core/workers/chunks/be4aa835a7abfc809126.js +1 -0
  48. package/assets/esri/core/workers/chunks/c2ec6e904f96173a7b83.js +1 -0
  49. package/assets/esri/core/workers/chunks/{c25aa08b869f2777dc26.js → c4488a8d857c765da30e.js} +1 -1
  50. package/assets/esri/core/workers/chunks/c5c56b6d99db96a6755a.js +2 -0
  51. package/assets/esri/core/workers/chunks/{7f3b0856f594df2b044e.js → c727d38f71e52bee17e1.js} +1 -1
  52. package/assets/esri/core/workers/chunks/cf315d255f0dc8d50f21.js +1 -0
  53. package/assets/esri/core/workers/chunks/cf7676fdc09ad4835680.js +1 -0
  54. package/assets/esri/core/workers/chunks/cfad34c949cbe8a31ef8.js +1 -0
  55. package/assets/esri/core/workers/chunks/{edb4568fe281b5609092.js → d244e50c981146f018d2.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{a2c9cb23f3e35e88da1d.js → d399b1b9cbf0737d1735.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{df7dcd035997881cf2ef.js → d5c8119d6d34628d3126.js} +1 -1
  58. package/assets/esri/core/workers/chunks/d6b6bb8aecc85d2a3f6b.js +1 -0
  59. package/assets/esri/core/workers/chunks/{8dfa32cc8453f85faab0.js → dd1f8bade9c5c3b7929b.js} +1 -1
  60. package/assets/esri/core/workers/chunks/e11e60759821746259c6.js +1 -0
  61. package/assets/esri/core/workers/chunks/{e4b65c5a4575a5c1c49f.js → e356c576f9a7521a49b3.js} +1 -1
  62. package/assets/esri/core/workers/chunks/f02edf71645eb33bf92f.js +1 -0
  63. package/assets/esri/core/workers/chunks/f1a4165c2710ca90e5ea.js +1 -0
  64. package/assets/esri/core/workers/chunks/f57a3ee17869ced3dd33.js +1 -0
  65. package/assets/esri/core/workers/chunks/fc07f6e103d7f69a9909.js +1 -0
  66. package/chunks/WaterSurface.glsl.js +35 -20
  67. package/chunks/index.js +1 -1
  68. package/core/Loadable.js +1 -1
  69. package/core/Promise.js +1 -1
  70. package/core/accessorSupport/ensureType.js +1 -1
  71. package/core/accessorSupport/watch.js +1 -1
  72. package/core/accessorSupport/write.js +1 -1
  73. package/core/promiseUtils.js +1 -1
  74. package/core/watchUtils.js +1 -1
  75. package/core/workers/Connection.js +1 -1
  76. package/core/workers/RemoteClient.js +1 -1
  77. package/core/workers/workerFactory.js +1 -1
  78. package/geometry/support/geodesicUtils.js +1 -1
  79. package/geometry/support/meshUtils/External.js +1 -1
  80. package/geometry/support/meshUtils/Metadata.js +1 -1
  81. package/intl/messages.js +1 -1
  82. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  83. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  84. package/layers/graphics/data/attributeSupport.js +1 -1
  85. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  86. package/layers/mixins/ArcGISMapService.js +1 -1
  87. package/layers/support/PromiseQueue.js +1 -1
  88. package/layers/support/Sublayer.js +1 -1
  89. package/layers/support/TileKey.js +1 -1
  90. package/layers/support/rasterFormats/TiffDecoder.js +1 -1
  91. package/networks/Network.js +1 -1
  92. package/package.json +1 -1
  93. package/portal/schemas/definitions.js +1 -1
  94. package/renderers/support/RasterSymbolizer.js +1 -1
  95. package/renderers/support/rasterRendererChecks.js +5 -0
  96. package/renderers/support/rasterRendererHelper.js +1 -1
  97. package/request.js +1 -1
  98. package/rest/query/operations/query.js +1 -1
  99. package/smartMapping/raster/renderers/uniqueValue.js +1 -1
  100. package/support/featureFlags.js +1 -1
  101. package/support/revision.js +1 -1
  102. package/symbols/support/previewSymbol3D.js +1 -1
  103. package/symbols/support/styleUtils.js +1 -1
  104. package/symbols/support/symbolLayerUtils.js +1 -1
  105. package/symbols/support/utils.js +1 -1
  106. package/symbols/support/webStyleSymbolUtils.js +1 -1
  107. package/views/2d/engine/webgl/TextureManager.js +1 -1
  108. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  109. package/views/2d/layers/features/controllers/FeatureController2D.js +1 -1
  110. package/views/2d/layers/features/sources/DataTileSource.js +1 -1
  111. package/views/2d/layers/features/sources/DataTileSubscription.js +1 -1
  112. package/views/2d/layers/features/sources/DrillDownFeatureSource.js +1 -1
  113. package/views/2d/layers/features/sources/PagedFeatureSource.js +1 -1
  114. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  115. package/views/2d/layers/features/tileRenderers/HeatmapTileRenderer.js +1 -1
  116. package/views/2d/layers/features/tileRenderers/SymbolTileRenderer.js +1 -1
  117. package/views/2d/layers/features/tileRenderers.js +1 -1
  118. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  119. package/views/2d/layers/support/webStyleUtils.js +1 -1
  120. package/views/3d/input/SceneInputManager.js +1 -1
  121. package/views/3d/interactive/manipulatorUtils.js +1 -1
  122. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  123. package/views/3d/layers/GraphicsView3D.js +1 -1
  124. package/views/3d/layers/I3SMeshView3D.js +1 -1
  125. package/views/3d/layers/graphics/ElevationQuery.js +1 -1
  126. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  127. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  128. package/views/3d/layers/graphics/Graphics3DWaterSymbolLayer.js +1 -1
  129. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  130. package/views/3d/layers/graphics/symbolComplexity.js +1 -1
  131. package/views/3d/layers/graphics/webStyleUtils.js +5 -0
  132. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  133. package/views/3d/layers/i3s/I3SIndex.js +1 -1
  134. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  135. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  136. package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
  137. package/views/3d/webgl-engine/shaders/WaterSurface.glsl.js +1 -1
  138. package/views/LayerViewManager.js +1 -1
  139. package/views/PopupView.js +1 -1
  140. package/views/SceneView.js +1 -1
  141. package/views/ViewAnimation.js +1 -1
  142. package/views/input/BrowserEventSource.js +1 -1
  143. package/views/input/InputManager.js +1 -1
  144. package/views/interactive/coordinateHelper.js +1 -1
  145. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  146. package/views/layers/support/MapServiceLayerViewHelper.js +1 -1
  147. package/views/support/QueueProcessor.js +1 -1
  148. package/views/ui/DefaultUI.js +1 -1
  149. package/views/ui/UI.js +1 -1
  150. package/widgets/BasemapGallery/support/PortalBasemapsSource.js +1 -1
  151. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  152. package/widgets/Editor/Upload.js +1 -1
  153. package/widgets/Editor/deprecationUtils.js +1 -1
  154. package/widgets/Editor/modelUploadUtils.js +1 -1
  155. package/widgets/Editor.js +1 -1
  156. package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
  157. package/widgets/Feature/FeatureRelationship/FeatureRelationshipViewModel.js +1 -1
  158. package/widgets/Feature/FeatureViewModel.js +1 -1
  159. package/widgets/Feature/support/featureUtils.js +1 -1
  160. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  161. package/widgets/Popup.js +1 -1
  162. package/widgets/support/decorators/accessibleHandler.js +1 -1
  163. package/assets/esri/core/workers/chunks/0948a40569b2408edefb.js +0 -1
  164. package/assets/esri/core/workers/chunks/192e3eeed50768c77c65.js +0 -1
  165. package/assets/esri/core/workers/chunks/1d1b9856f2f44d0c2144.js +0 -1
  166. package/assets/esri/core/workers/chunks/203115cc836e7b364eec.js +0 -1
  167. package/assets/esri/core/workers/chunks/20ad44b1a7adfed4c6c4.js +0 -1
  168. package/assets/esri/core/workers/chunks/27353056c3e4e8d8b8d3.js +0 -1
  169. package/assets/esri/core/workers/chunks/41ae9037c70461d5fdc7.js +0 -1
  170. package/assets/esri/core/workers/chunks/4b6a903d4aeeb4eeb615.js +0 -1
  171. package/assets/esri/core/workers/chunks/4bf9bc8b52d618f395c5.js +0 -1
  172. package/assets/esri/core/workers/chunks/5ec4fedbbcbb0053cf74.js +0 -2
  173. package/assets/esri/core/workers/chunks/60e29d172a2dcf45e8d0.js +0 -1
  174. package/assets/esri/core/workers/chunks/68a15cc7c51645d31572.js +0 -1
  175. package/assets/esri/core/workers/chunks/6b065e581bcf743079cf.js +0 -1
  176. package/assets/esri/core/workers/chunks/6c54579981a7bd483f1a.js +0 -1
  177. package/assets/esri/core/workers/chunks/778ecf61f07dafc51bbc.js +0 -1
  178. package/assets/esri/core/workers/chunks/7da1fd3629362b81b43c.js +0 -1
  179. package/assets/esri/core/workers/chunks/80d335bec34d60b7bbdc.js +0 -1
  180. package/assets/esri/core/workers/chunks/810da30f13151b72a293.js +0 -1
  181. package/assets/esri/core/workers/chunks/81485a5056aed94b3d8d.js +0 -1
  182. package/assets/esri/core/workers/chunks/8374d89e995f0d15c042.js +0 -1
  183. package/assets/esri/core/workers/chunks/8ebda132068f6b962dd9.js +0 -1
  184. package/assets/esri/core/workers/chunks/8f553ae2f1aba4e0371f.js +0 -1
  185. package/assets/esri/core/workers/chunks/8fec9979ae2b0e3a878f.js +0 -1
  186. package/assets/esri/core/workers/chunks/979ea2e3b1b164334634.js +0 -1
  187. package/assets/esri/core/workers/chunks/a0e92dd27c8f6b642dbf.js +0 -1
  188. package/assets/esri/core/workers/chunks/a6240bf258b3886a6661.js +0 -1
  189. package/assets/esri/core/workers/chunks/b059cd03f31ead61abb4.js +0 -1
  190. package/assets/esri/core/workers/chunks/b1a8024bf8cdd0cd3884.js +0 -1
  191. package/assets/esri/core/workers/chunks/b366e0db9b5f27dd53a3.js +0 -1
  192. package/assets/esri/core/workers/chunks/b976d5599672665561ec.js +0 -1
  193. package/assets/esri/core/workers/chunks/c260ac058e63a5c0cf60.js +0 -1
  194. package/assets/esri/core/workers/chunks/c646dc9da08b509e39d6.js +0 -1
  195. package/assets/esri/core/workers/chunks/db5598944b691e43f13e.js +0 -1
  196. package/assets/esri/core/workers/chunks/eb163a2ddeb27c690308.js +0 -1
  197. package/assets/esri/core/workers/chunks/eec12b5666819bf2119d.js +0 -1
  198. package/assets/esri/core/workers/chunks/ef05496c1faf08d247f1.js +0 -1
  199. package/assets/esri/core/workers/chunks/f05634909c9449533193.js +0 -1
  200. package/assets/esri/core/workers/chunks/fcebd70b089dea833c75.js +0 -1
  201. package/views/layers/GraphicsView.js +0 -5
  202. /package/assets/esri/core/workers/chunks/{a5c33b24b7ee042cb473.js.LICENSE.txt → 51a0d1dabe7415515c77.js.LICENSE.txt} +0 -0
  203. /package/assets/esri/core/workers/chunks/{5ec4fedbbcbb0053cf74.js.LICENSE.txt → c5c56b6d99db96a6755a.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4266],{22303:(e,t,r)=>{r.d(t,{Z:()=>d});var o,i,s=r(35270),l=r(22021),n=r(75215);function a(e){return(0,l.uZ)((0,n.vU)(e),0,255)}function u(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}class p{static blendColors(e,t,r,o=new p){return o.r=Math.round(e.r+(t.r-e.r)*r),o.g=Math.round(e.g+(t.g-e.g)*r),o.b=Math.round(e.b+(t.b-e.b)*r),o.a=e.a+(t.a-e.a)*r,o._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),o=r[1];if("rgb"===o&&3===e.length||"rgba"===o&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),p.fromArray(r,t)}return p.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===o&&3===e.length||"hsla"===o&&4===e.length)return p.fromArray((0,s.B7)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new p){if(4!==e.length&&7!==e.length||"#"!==e[0])return null;const r=4===e.length?4:8,o=(1<<r)-1;let i=Number("0x"+e.substr(1));return isNaN(i)?null:(["b","g","r"].forEach((e=>{const s=i&o;i>>=r,t[e]=4===r?17*s:s})),t.a=1,t)}static fromArray(e,t=new p){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.St)(e)?(0,s.h$)(e):null;return r&&p.fromArray(r,t)||p.fromRgb(e,t)||p.fromHex(e,t)}static fromJSON(e){return e&&new p([e[0],e[1],e[2],e[3]/255])}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?p.fromString(e,this):Array.isArray(e)?p.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const e=this.r.toString(16),t=this.g.toString(16),r=this.b.toString(16);return`#${e.length<2?"0"+e:e}${t.length<2?"0"+t:t}${r.length<2?"0"+r:r}`}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=p.AlphaMode.ALWAYS){const t=a(this.r),r=a(this.g),o=a(this.b);return e===p.AlphaMode.ALWAYS||1!==this.a?[t,r,o,a(255*this.a)]:[t,r,o]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(e,t,r,o){this.r=e,this.g=t,this.b=r,this.a=o}}p.prototype.declaredClass="esri.Color",(i=(o=p||(p={})).AlphaMode||(o.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const d=p},35270:(e,t,r)=>{r.d(t,{B7:()=>a,St:()=>i,VL:()=>l,h$:()=>s,rW:()=>u});const o={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function i(e){return!!o[e]||!!o[e.toLowerCase()]}function s(e){return o[e]??o[e.toLowerCase()]}function l(e){return[...s(e)]}function n(e,t,r){r<0&&++r,r>1&&--r;const o=6*r;return o<1?e+(t-e)*o:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function a(e,t,r,o=1){const i=(e%360+360)%360/360,s=r<=.5?r*(t+1):r+t-r*t,l=2*r-s;return[Math.round(255*n(l,s,i+1/3)),Math.round(255*n(l,s,i)),Math.round(255*n(l,s,i-1/3)),o]}function u(e){const t=e.length>5,r=t?8:4,o=(1<<r)-1,i=t?1:17,s=t?9===e.length:5===e.length;let l=Number("0x"+e.substr(1));if(isNaN(l))return null;const n=[0,0,0,1];let a;return s&&(a=l&o,l>>=r,n[3]=i*a/255),a=l&o,l>>=r,n[2]=i*a,a=l&o,l>>=r,n[1]=i*a,a=l&o,l>>=r,n[0]=i*a,n}},23030:(e,t,r)=>{r.d(t,{Z:()=>f});var o,i=r(43697),s=r(22974),l=r(5600),n=r(75215),a=r(36030),u=r(52011),p=r(25848),d=r(66338),h=r(22303),c=r(96674);let b=o=class extends c.wq{constructor(){super(...arguments),this.description=null,this.label=null,this.minValue=0,this.maxValue=0,this.color=null}clone(){return new o({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,color:(0,s.d9)(this.color)})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],b.prototype,"description",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],b.prototype,"label",void 0),(0,i._)([(0,l.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],b.prototype,"minValue",void 0),(0,i._)([(0,l.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],b.prototype,"maxValue",void 0),(0,i._)([(0,l.Cb)({type:h.Z,json:{type:[n.z8],write:!0}})],b.prototype,"color",void 0),b=o=(0,i._)([(0,u.j)("esri.renderers.support.pointCloud.ColorClassBreakInfo")],b);const y=b;var g;let m=g=class extends p.Z{constructor(e){super(e),this.type="point-cloud-class-breaks",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.colorClassBreakInfos=null}clone(){return new g({...this.cloneProperties(),field:this.field,fieldTransformType:this.fieldTransformType,colorClassBreakInfos:(0,s.d9)(this.colorClassBreakInfos),legendOptions:(0,s.d9)(this.legendOptions)})}};(0,i._)([(0,a.J)({pointCloudClassBreaksRenderer:"point-cloud-class-breaks"})],m.prototype,"type",void 0),(0,i._)([(0,l.Cb)({json:{write:!0},type:String})],m.prototype,"field",void 0),(0,i._)([(0,l.Cb)({type:d.I,json:{write:!0}})],m.prototype,"legendOptions",void 0),(0,i._)([(0,l.Cb)({type:p.Z.fieldTransformTypeKebabDict.apiValues,json:{type:p.Z.fieldTransformTypeKebabDict.jsonValues,read:p.Z.fieldTransformTypeKebabDict.read,write:p.Z.fieldTransformTypeKebabDict.write}})],m.prototype,"fieldTransformType",void 0),(0,i._)([(0,l.Cb)({type:[y],json:{write:!0}})],m.prototype,"colorClassBreakInfos",void 0),m=g=(0,i._)([(0,u.j)("esri.renderers.PointCloudClassBreaksRenderer")],m);const f=m},25848:(e,t,r)=>{r.d(t,{Z:()=>S});var o,i=r(43697),s=r(35454),l=r(96674),n=r(22974),a=r(5600),u=(r(75215),r(52011));r(67676),r(80442);let p=o=class extends l.wq{constructor(){super(...arguments),this.field=null,this.minValue=0,this.maxValue=255}clone(){return new o({field:this.field,minValue:this.minValue,maxValue:this.maxValue})}};(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,i._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],p.prototype,"minValue",void 0),(0,i._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],p.prototype,"maxValue",void 0),p=o=(0,i._)([(0,u.j)("esri.renderers.support.pointCloud.ColorModulation")],p);const d=p,h=new s.X({pointCloudFixedSizeAlgorithm:"fixed-size",pointCloudSplatAlgorithm:"splat"});let c=class extends l.wq{};(0,i._)([(0,a.Cb)({type:h.apiValues,readOnly:!0,nonNullable:!0,json:{type:h.jsonValues,read:!1,write:h.write}})],c.prototype,"type",void 0),c=(0,i._)([(0,u.j)("esri.renderers.support.pointCloud.PointSizeAlgorithm")],c);const b=c;var y,g=r(36030);let m=y=class extends b{constructor(){super(...arguments),this.type="fixed-size",this.size=0,this.useRealWorldSymbolSizes=null}clone(){return new y({size:this.size,useRealWorldSymbolSizes:this.useRealWorldSymbolSizes})}};(0,i._)([(0,g.J)({pointCloudFixedSizeAlgorithm:"fixed-size"})],m.prototype,"type",void 0),(0,i._)([(0,a.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],m.prototype,"size",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"useRealWorldSymbolSizes",void 0),m=y=(0,i._)([(0,u.j)("esri.renderers.support.pointCloud.PointSizeFixedSizeAlgorithm")],m);const f=m;var w;let C=w=class extends b{constructor(){super(...arguments),this.type="splat",this.scaleFactor=1}clone(){return new w({scaleFactor:this.scaleFactor})}};(0,i._)([(0,g.J)({pointCloudSplatAlgorithm:"splat"})],C.prototype,"type",void 0),(0,i._)([(0,a.Cb)({type:Number,value:1,nonNullable:!0,json:{write:!0}})],C.prototype,"scaleFactor",void 0),C=w=(0,i._)([(0,u.j)("esri.renderers.support.pointCloud.PointSizeSplatAlgorithm")],C);const v={key:"type",base:b,typeMap:{"fixed-size":f,splat:C}},_=(0,s.w)()({pointCloudClassBreaksRenderer:"point-cloud-class-breaks",pointCloudRGBRenderer:"point-cloud-rgb",pointCloudStretchRenderer:"point-cloud-stretch",pointCloudUniqueValueRenderer:"point-cloud-unique-value"});let j=class extends l.wq{constructor(e){super(e),this.type=void 0,this.pointSizeAlgorithm=null,this.colorModulation=null,this.pointsPerInch=10}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}cloneProperties(){return{pointSizeAlgorithm:(0,n.d9)(this.pointSizeAlgorithm),colorModulation:(0,n.d9)(this.colorModulation),pointsPerInch:(0,n.d9)(this.pointsPerInch)}}};(0,i._)([(0,a.Cb)({type:_.apiValues,readOnly:!0,nonNullable:!0,json:{type:_.jsonValues,read:!1,write:_.write}})],j.prototype,"type",void 0),(0,i._)([(0,a.Cb)({types:v,json:{write:!0}})],j.prototype,"pointSizeAlgorithm",void 0),(0,i._)([(0,a.Cb)({type:d,json:{write:!0}})],j.prototype,"colorModulation",void 0),(0,i._)([(0,a.Cb)({json:{write:!0},nonNullable:!0,type:Number})],j.prototype,"pointsPerInch",void 0),j=(0,i._)([(0,u.j)("esri.renderers.PointCloudRenderer")],j),(j||(j={})).fieldTransformTypeKebabDict=new s.X({none:"none",lowFourBit:"low-four-bit",highFourBit:"high-four-bit",absoluteValue:"absolute-value",moduloTen:"modulo-ten"});const S=j},14008:(e,t,r)=>{r.d(t,{Z:()=>c});var o,i=r(43697),s=r(22974),l=r(5600),n=(r(75215),r(36030)),a=r(52011),u=r(25848),p=r(66338),d=r(21849);let h=o=class extends u.Z{constructor(e){super(e),this.type="point-cloud-stretch",this.field=null,this.legendOptions=null,this.fieldTransformType=null,this.stops=null}clone(){return new o({...this.cloneProperties(),field:(0,s.d9)(this.field),fieldTransformType:(0,s.d9)(this.fieldTransformType),stops:(0,s.d9)(this.stops),legendOptions:(0,s.d9)(this.legendOptions)})}};(0,i._)([(0,n.J)({pointCloudStretchRenderer:"point-cloud-stretch"})],h.prototype,"type",void 0),(0,i._)([(0,l.Cb)({json:{write:!0},type:String})],h.prototype,"field",void 0),(0,i._)([(0,l.Cb)({type:p.I,json:{write:!0}})],h.prototype,"legendOptions",void 0),(0,i._)([(0,l.Cb)({type:u.Z.fieldTransformTypeKebabDict.apiValues,json:{type:u.Z.fieldTransformTypeKebabDict.jsonValues,read:u.Z.fieldTransformTypeKebabDict.read,write:u.Z.fieldTransformTypeKebabDict.write}})],h.prototype,"fieldTransformType",void 0),(0,i._)([(0,l.Cb)({type:[d.Z],json:{write:!0}})],h.prototype,"stops",void 0),h=o=(0,i._)([(0,a.j)("esri.renderers.PointCloudStretchRenderer")],h);const c=h},46329:(e,t,r)=>{r.d(t,{Z:()=>f});var o,i=r(43697),s=r(22974),l=r(5600),n=r(75215),a=r(36030),u=r(52011),p=r(25848),d=r(66338),h=r(22303),c=r(96674);let b=o=class extends c.wq{constructor(){super(...arguments),this.description=null,this.label=null,this.values=null,this.color=null}clone(){return new o({description:this.description,label:this.label,values:(0,s.d9)(this.values),color:(0,s.d9)(this.color)})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],b.prototype,"description",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],b.prototype,"label",void 0),(0,i._)([(0,l.Cb)({type:[String],json:{write:!0}})],b.prototype,"values",void 0),(0,i._)([(0,l.Cb)({type:h.Z,json:{type:[n.z8],write:!0}})],b.prototype,"color",void 0),b=o=(0,i._)([(0,u.j)("esri.renderers.support.pointCloud.ColorUniqueValueInfo")],b);const y=b;var g;let m=g=class extends p.Z{constructor(e){super(e),this.type="point-cloud-unique-value",this.field=null,this.fieldTransformType=null,this.colorUniqueValueInfos=null,this.legendOptions=null}clone(){return new g({...this.cloneProperties(),field:(0,s.d9)(this.field),fieldTransformType:(0,s.d9)(this.fieldTransformType),colorUniqueValueInfos:(0,s.d9)(this.colorUniqueValueInfos),legendOptions:(0,s.d9)(this.legendOptions)})}};(0,i._)([(0,a.J)({pointCloudUniqueValueRenderer:"point-cloud-unique-value"})],m.prototype,"type",void 0),(0,i._)([(0,l.Cb)({json:{write:!0},type:String})],m.prototype,"field",void 0),(0,i._)([(0,l.Cb)({type:p.Z.fieldTransformTypeKebabDict.apiValues,json:{type:p.Z.fieldTransformTypeKebabDict.jsonValues,read:p.Z.fieldTransformTypeKebabDict.read,write:p.Z.fieldTransformTypeKebabDict.write}})],m.prototype,"fieldTransformType",void 0),(0,i._)([(0,l.Cb)({type:[y],json:{write:!0}})],m.prototype,"colorUniqueValueInfos",void 0),(0,i._)([(0,l.Cb)({type:d.I,json:{write:!0}})],m.prototype,"legendOptions",void 0),m=g=(0,i._)([(0,u.j)("esri.renderers.PointCloudUniqueValueRenderer")],m);const f=m},66338:(e,t,r)=>{r.d(t,{I:()=>a});var o,i=r(43697),s=r(96674),l=r(5600),n=(r(75215),r(67676),r(80442),r(52011));let a=o=class extends s.wq{constructor(){super(...arguments),this.title=null}clone(){return new o({title:this.title})}};(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=o=(0,i._)([(0,n.j)("esri.renderers.support.LegendOptions")],a)},21849:(e,t,r)=>{r.d(t,{Z:()=>h});var o,i=r(43697),s=r(22303),l=r(96674),n=r(5600),a=r(75215),u=(r(67676),r(80442),r(52011)),p=r(30556);let d=o=class extends l.wq{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,r){t[r]=e??0}clone(){return new o({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,i._)([(0,n.Cb)({type:s.Z,json:{type:[a.z8],write:!0}})],d.prototype,"color",void 0),(0,i._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,i._)([(0,n.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],d.prototype,"value",void 0),(0,i._)([(0,p.c)("value")],d.prototype,"writeValue",null),d=o=(0,i._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],d);const h=d}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3298,3172,9880],{27535:(e,t,s)=>{var r;s.d(t,{Hy:()=>d,OF:()=>u,TD:()=>f,Tu:()=>m,VO:()=>h,aV:()=>o,kq:()=>c,rH:()=>r}),function(e){e.AsyncNotEnabled="AsyncNotEnabled",e.ModulesNotSupported="ModulesNotSupported",e.CircularModules="CircularModules",e.NeverReach="NeverReach",e.UnsupportedHashType="UnsupportedHashType",e.InvalidParameter="InvalidParameter",e.UnexpectedToken="UnexpectedToken",e.Unrecognised="Unrecognised",e.UnrecognisedType="UnrecognisedType",e.MaximumCallDepth="MaximumCallDepth",e.BooleanConditionRequired="BooleanConditionRequired",e.TypeNotAllowedInFeature="TypeNotAllowedInFeature",e.KeyMustBeString="KeyMustBeString",e.WrongNumberOfParameters="WrongNumberOfParameters",e.CallNonFunction="CallNonFunction",e.NoFunctionInTemplateLiteral="NoFunctionInTemplateLiteral",e.NoFunctionInDictionary="NoFunctionInDictionary",e.NoFunctionInArray="NoFunctionInArray",e.AssignModuleFunction="AssignModuleFunction",e.LogicExpressionOrAnd="LogicExpressionOrAnd",e.LogicalExpressionOnlyBoolean="LogicalExpressionOnlyBoolean",e.FunctionNotFound="FunctionNotFound",e.InvalidMemberAccessKey="InvalidMemberAccessKey",e.UnsupportedUnaryOperator="UnsupportUnaryOperator",e.InvalidIdentifier="InvalidIdentifier",e.MemberOfNull="MemberOfNull",e.UnsupportedOperator="UnsupportedOperator",e.Cancelled="Cancelled",e.ModuleAccessorMustBeString="ModuleAccessorMustBeString",e.ModuleExportNotFound="ModuleExportNotFound",e.Immutable="Immutable",e.OutOfBounds="OutOfBounds",e.IllegalResult="IllegalResult",e.FieldNotFound="FieldNotFound",e.PortalRequired="PortalRequired",e.LogicError="LogicError",e.ArrayAccessorMustBeNumber="ArrayAccessMustBeNumber",e.KeyAccessorMustBeString="KeyAccessorMustBeString",e.WrongSpatialReference="WrongSpatialReference"}(r||(r={}));const i={[r.TypeNotAllowedInFeature]:"Feature attributes only support dates, numbers, strings, guids.",[r.LogicError]:"Logic error - {reason}",[r.NeverReach]:"Encountered unreachable logic",[r.AsyncNotEnabled]:"Async Arcade must be enabled for this script",[r.ModuleAccessorMustBeString]:"Module accessor must be a string",[r.ModuleExportNotFound]:"Module has no export with provided identifier",[r.ModulesNotSupported]:"Current profile does not support modules",[r.ArrayAccessorMustBeNumber]:"Array accessor must be a number",[r.FunctionNotFound]:"Function not found",[r.FieldNotFound]:"Key not found - {key}",[r.CircularModules]:"Circular module dependencies are not allowed",[r.Cancelled]:"Execution cancelled",[r.UnsupportedHashType]:"Type not supported in hash function",[r.IllegalResult]:"Value is not a supported return type",[r.PortalRequired]:"Portal is required",[r.InvalidParameter]:"Invalid parameter",[r.WrongNumberOfParameters]:"Call with wrong number of parameters",[r.Unrecognised]:"Unrecognised code structure",[r.UnrecognisedType]:"Unrecognised type",[r.WrongSpatialReference]:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",[r.BooleanConditionRequired]:"Conditions must use booleans",[r.NoFunctionInDictionary]:"Dictionaries cannot contain functions.",[r.NoFunctionInArray]:"Arrays cannot contain functions.",[r.NoFunctionInTemplateLiteral]:"Template Literals do not expect functions by value.",[r.KeyAccessorMustBeString]:"Accessor must be a string",[r.KeyMustBeString]:"Object keys must be a string",[r.Immutable]:"Object is immutable",[r.UnexpectedToken]:"Unexpected token",[r.MemberOfNull]:"Cannot access property of null object",[r.MaximumCallDepth]:"Exceeded maximum function depth",[r.OutOfBounds]:"Out of bounds",[r.InvalidIdentifier]:"Identifier not recognised",[r.CallNonFunction]:"Expression is not a function",[r.InvalidMemberAccessKey]:"Cannot access value using a key of this type",[r.AssignModuleFunction]:"Cannot assign function to module variable",[r.UnsupportedUnaryOperator]:"Unsupported unary operator",[r.UnsupportedOperator]:"Unsupported operator",[r.LogicalExpressionOnlyBoolean]:"Logical expressions must be boolean",[r.LogicExpressionOrAnd]:"Logical expression can only be combined with || or &&"};class n extends Error{constructor(...e){super(...e)}}class a extends n{constructor(e,t){super(l(t)+e.message,{cause:e}),this.loc=null,Error.captureStackTrace&&Error.captureStackTrace(this,a),t&&t.loc&&(this.loc=t.loc)}}class o extends Error{constructor(e,t,s,r){super("Execution error - "+l(s)+d(i[t],r)),this.loc=null,this.declaredRootClass="esri.arcade.arcadeexecutionerror",Error.captureStackTrace&&Error.captureStackTrace(this,o),s&&s.loc&&(this.loc=s.loc)}}function l(e){return e&&e.loc?`Line : ${e.loc.start?.line}, ${e.loc.start?.column}: `:""}class u extends Error{constructor(e,t,s,r){super("Compilation error - "+l(s)+d(i[t],r)),this.loc=null,this.declaredRootClass="esri.arcade.arcadecompilationerror",Error.captureStackTrace&&Error.captureStackTrace(this,u),s&&s.loc&&(this.loc=s.loc)}}class c extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror",Error.captureStackTrace&&Error.captureStackTrace(this,c)}}function d(e,t){try{if(!t)return e;for(const s in t){let r=t[s];r||(r=""),e=e.replace("{"+s+"}",t[s])}}catch(e){}return e}function h(e,t,s){return"esri.arcade.arcadeexecutionerror"===s.declaredRootClass||"esri.arcade.arcadecompilationerror"===s.declaredRootClass?null===s.loc&&t&&t.loc?new a(s,{cause:s}):s:("esri.arcade.featureset.support.featureseterror"===s.declaredRootClass||"esri.arcade.featureset.support.sqlerror"===s.declaredRootClass||s.declaredRootClass,t&&t.loc?new a(s,{cause:s}):s)}var f;!function(e){e.UnrecognisedUri="UnrecognisedUri",e.UnsupportedUriProtocol="UnsupportedUriProtocol"}(f||(f={}));const p={[f.UnrecognisedUri]:"Unrecognised uri - {uri}",[f.UnsupportedUriProtocol]:"Unrecognised uri protocol"};class m extends Error{constructor(e,t){super(d(p[e],t)),this.declaredRootClass="esri.arcade.arcademoduleerror",Error.captureStackTrace&&Error.captureStackTrace(this,m)}}},99880:(e,t,s)=>{s.d(t,{V:()=>l});var r=s(68773),i=(s(3172),s(20102)),n=s(92604),a=s(17452);const o=n.Z.getLogger("esri.assets");function l(e){if(!r.default.assetsPath)throw o.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new i.Z("assets:path-not-set","config.assetsPath is not set");return(0,a.v_)(r.default.assetsPath,e)}},74669:(e,t,s)=>{s.d(t,{Z:()=>i});var r=s(69801);class i{constructor(e,t){this._storage=new r.WJ,this._storage.maxSize=e,t&&this._storage.registerRemoveFunc("",t)}put(e,t){this._storage.put(e,t,1,1)}pop(e){return this._storage.pop(e)}get(e){return this._storage.get(e)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}}},10661:(e,t,s)=>{s.d(t,{s:()=>i});var r=s(42100);class i extends r.s{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},37455:(e,t,s)=>{s.d(t,{N:()=>r});const r={convertToGEGeometry:function(e,t){return null==t?null:e.convertJSONToGeometry(t)},exportPoint:function(e,t,s){const r=new i(e.getPointX(t),e.getPointY(t),s),n=e.hasZ(t),a=e.hasM(t);return n&&(r.z=e.getPointZ(t)),a&&(r.m=e.getPointM(t)),r},exportPolygon:function(e,t,s){return new n(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportPolyline:function(e,t,s){return new a(e.exportPaths(t),s,e.hasZ(t),e.hasM(t))},exportMultipoint:function(e,t,s){return new o(e.exportPoints(t),s,e.hasZ(t),e.hasM(t))},exportExtent:function(e,t,s){const r=e.hasZ(t),i=e.hasM(t),n=new l(e.getXMin(t),e.getYMin(t),e.getXMax(t),e.getYMax(t),s);if(r){const s=e.getZExtent(t);n.zmin=s.vmin,n.zmax=s.vmax}if(i){const s=e.getMExtent(t);n.mmin=s.vmin,n.mmax=s.vmax}return n}};class i{constructor(e,t,s){this.x=e,this.y=t,this.spatialReference=s,this.z=void 0,this.m=void 0}}class n{constructor(e,t,s,r){this.rings=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),r&&(this.hasM=r)}}class a{constructor(e,t,s,r){this.paths=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),r&&(this.hasM=r)}}class o{constructor(e,t,s,r){this.points=e,this.spatialReference=t,this.hasZ=void 0,this.hasM=void 0,s&&(this.hasZ=s),r&&(this.hasM=r)}}class l{constructor(e,t,s,r,i){this.xmin=e,this.ymin=t,this.xmax=s,this.ymax=r,this.spatialReference=i,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},26993:(e,t,s)=>{s.d(t,{y:()=>x,r:()=>f});var r=s(35308),i=s(49600),n=s(82397),a=s(8744),o=s(62432),l=s(24452);class u{constructor(e,t,s){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=s,this.featureAdapter=t;const r=e.outFields;if(r&&!r.includes("*")){this.outFields=r;let e=0;for(const t of r){const r=(0,o.hr)(t),i=this.fieldsIndex.get(r),n=i?null:(0,o.Jc)(r,s),a=i?i.name:(0,o.nu)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:n})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach((e=>this.getAttributes(e))),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,s){const r=s?s.name:t;let i=null;return this._fieldDataCache.has(r)?i=this._fieldDataCache.get(r)?.clause:s||(i=(0,o.Jc)(t,this.fieldsIndex),this._fieldDataCache.set(r,{alias:r,clause:i})),s?this.featureAdapter.getAttribute(e,r):i?.calculateValue(e,this.featureAdapter)}getDataValue(e,t){const s=t.normalizationType,r=t.normalizationTotal;let i=t.field&&this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2&&(i=`${(0,l.wk)(i)}${t.fieldDelimiter}${(0,l.wk)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(i=`${i}${t.fieldDelimiter}${(0,l.wk)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)),s&&Number.isFinite(i)){const n="field"===s&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;i=(0,l.fk)(i,s,n,r)}return i}getExpressionValue(e,t,s,r){const i={attributes:this.featureAdapter.getAttributes(e),layer:{fields:this.fieldsIndex.fields}},n=r.createExecContext(i,s);return r.executeFunction(t,n)}getExpressionValues(e,t,s,r){const i={fields:this.fieldsIndex.fields};return e.map((e=>{const n={attributes:this.featureAdapter.getAttributes(e),layer:i},a=r.createExecContext(n,s);return r.executeFunction(t,a)}))}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,o.Jc)(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,o.Jc)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testSet(e,this.featureAdapter)??!1}_processAttributesForOutFields(e){const t=this.outFields;if(!t||!t.length)return this.featureAdapter.getAttributes(e);const s={};for(const r of t){const{alias:t,clause:i}=this._fieldDataCache.get(r);s[t]=i?i.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return s}_processAttributesForDistinctValues(e){if(null==e||!this.returnDistinctValues)return e;const t=this.outFields,s=[];if(t)for(const r of t){const{alias:t}=this._fieldDataCache.get(r);s.push(e[t])}else for(const t in e)s.push(e[t]);const r=`${(t||["*"]).join(",")}=${s.join(",")}`;let i=this._returnDistinctMap.get(r)||0;return this._returnDistinctMap.set(r,++i),i>1?null:e}}var c=s(37427);function d(e,t,s){return{objectId:e,target:t,distance:s,type:"vertex"}}function h(e,t,s,r,i,n=!1){return{objectId:e,target:t,distance:s,type:"edge",start:r,end:i,draped:n}}var f,p,m=s(11490),g=s(35671),y=s(59266);class x{constructor(e,t,s){this.items=e,this.query=t,this.geometryType=s.geometryType,this.hasM=s.hasM,this.hasZ=s.hasZ,this.fieldsIndex=s.fieldsIndex,this.objectIdField=s.objectIdField,this.spatialReference=s.spatialReference,this.featureAdapter=s.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new u(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:s,outStatistics:r}=this.query,i=t?.length;if(!i)return 1;const n=new Map,a=new Map,o=new Set;for(const i of r){const{statisticType:r}=i,l="exceedslimit"!==r?i.onStatisticField:void 0;if(!a.has(l)){const s=[];for(const r of t){const t=this._getAttributeValues(e,r,n);s.push(t)}a.set(l,this._calculateUniqueValues(s,e.returnDistinctValues))}const u=a.get(l);for(const t in u){const{data:r,items:i}=u[t],n=r.join(",");s&&!e.validateItems(i,s)||o.add(n)}}return o.size}async createQueryResponse(){let e;if(e=this.query.outStatistics?this.query.outStatistics.some((e=>"exceedslimit"===e.statisticType))?this._createExceedsLimitQueryResponse(this.query):await this._createStatisticsQueryResponse(this.query):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry){const t=this.query.geometry;(0,a.JY)(this.query.outSR)&&!(0,a.fS)(t.spatialReference,this.query.outSR)?e.queryGeometry=(0,m.S2)({spatialReference:this.query.outSR,...(0,c.iV)(t,t.spatialReference,this.query.outSR)}):e.queryGeometry=(0,m.S2)({spatialReference:this.query.outSR,...t})}return e}createSnappingResponse(e,t){const s=this.featureAdapter,r=b(this.hasZ,this.hasM),{point:i,mode:n}=e,a="number"==typeof e.distance?e.distance:e.distance.x,o="number"==typeof e.distance?e.distance:e.distance.y,l={candidates:[]},u="esriGeometryPolygon"===this.geometryType,c=this._getPointCreator(n,this.spatialReference,t),p=new v(null,0),m=new v(null,0),g={x:0,y:0,z:0};for(const t of this.items){const n=s.getGeometry(t);if(null==n)continue;const{coords:y,lengths:x}=n;if(p.coords=y,m.coords=y,e.types&f.EDGE){let e=0;for(let n=0;n<x.length;n++){const u=x[n];for(let n=0;n<u;n++,e+=r){const d=p;if(d.coordsIndex=e,n!==u-1){const n=m;n.coordsIndex=e+r;const u=g;w(g,i,d,n);const f=(i.x-u.x)/a,p=(i.y-u.y)/o,y=f*f+p*p;y<=1&&l.candidates.push(h(s.getObjectId(t),c(u),Math.sqrt(y),c(d),c(n)))}}}}if(e.types&f.VERTEX){const e=u?y.length-r:y.length;for(let n=0;n<e;n+=r){const e=p;e.coordsIndex=n;const r=(i.x-e.x)/a,u=(i.y-e.y)/o,h=r*r+u*u;h<=1&&l.candidates.push(d(s.getObjectId(t),c(e),Math.sqrt(h)))}}}return l.candidates.sort(((e,t)=>e.distance-t.distance)),l}_getPointCreator(e,t,s){const r=null==s||(0,a.fS)(t,s)?e=>e:e=>(0,c.iV)(e,t,s),{hasZ:i}=this;return"3d"===e?i?({x:e,y:t,z:s})=>r({x:e,y:t,z:s}):({x:e,y:t})=>r({x:e,y:t,z:0}):({x:e,y:t})=>r({x:e,y:t})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,minValue:a,maxValue:o,scale:u}=e,c=this.fieldsIndex.isDateField(t),d=await this._getDataValues({field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,scale:u}),h=(0,l.S5)({normalizationType:i,normalizationField:r,minValue:a,maxValue:o}),f=this.fieldsIndex.get(t),p={value:.5,fieldType:f?.type},m=(0,g.qN)(f)?(0,l.H0)({values:d,supportsNullCount:h,percentileParams:p}):(0,l.i5)({values:d,minValue:a,maxValue:o,useSampleStdDev:!i,supportsNullCount:h,percentileParams:p});return(0,l.F_)(m,c)}async createUniqueValuesResponse(e){const{field:t,valueExpression:s,domains:r,returnAllCodedValues:i,scale:n}=e,a=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:s,scale:n}),o=(0,l.eT)(a);return(0,l.Qm)(o,r,i,e.fieldDelimiter)}async createClassBreaksResponse(e){const{field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:u,maxValue:c,numClasses:d,scale:h}=e,f=await this._getDataValues({field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,scale:h}),p=(0,l.G2)(f,{field:t,normalizationField:r,normalizationType:i,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:u,maxValue:c,numClasses:d});return(0,l.DL)(p,a)}async createHistogramResponse(e){const{field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:u,maxValue:c,numBins:d,scale:h}=e,f=await this._getDataValues({field:t,valueExpression:s,normalizationField:r,normalizationType:i,normalizationTotal:n,scale:h});return(0,l.oF)(f,{field:t,normalizationField:r,normalizationType:i,normalizationTotal:n,classificationMethod:a,standardDeviationInterval:o,minValue:u,maxValue:c,numBins:d})}_sortFeatures(e,t,s){if(e.length>1&&t&&t.length)for(const r of t.reverse()){const t=r.split(" "),i=t[0],n=this.fieldsIndex.get(i),a=!!t[1]&&"desc"===t[1].toLowerCase(),o=(0,l.Lq)(n?.type,a);e.sort(((e,t)=>{const r=s(e,i,n),a=s(t,i,n);return o(r,a)}))}}_createFeatureQueryResponse(e){const t=this.items,{geometryType:s,hasM:r,hasZ:i,objectIdField:a,spatialReference:o}=this,{outFields:l,outSR:u,quantizationParameters:c,resultRecordCount:d,resultOffset:h,returnZ:f,returnM:p}=e,g=null!=d&&t.length>(h||0)+d,y=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map((e=>this.fieldsIndex.get(e))));return{exceededTransferLimit:g,features:this._createFeatures(e,t),fields:y,geometryType:s,hasM:r&&p,hasZ:i&&f,objectIdFieldName:a,spatialReference:(0,m.S2)(u||o),transform:c&&(0,n.vY)(c)||null}}_createFeatures(e,t){const s=new u(e,this.featureAdapter,this.fieldsIndex),{hasM:r,hasZ:i}=this,{orderByFields:a,quantizationParameters:o,returnGeometry:l,returnCentroid:c,maxAllowableOffset:d,resultOffset:h,resultRecordCount:f,returnZ:p=!1,returnM:g=!1}=e,y=i&&p,x=r&&g;let w=[],b=0;const v=[...t];if(this._sortFeatures(v,a,((e,t,r)=>s.getFieldValue(e,t,r))),l||c){const e=(0,n.vY)(o)??void 0;if(l&&!c)for(const t of v)w[b++]={attributes:s.getAttributes(t),geometry:(0,m.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),d,e,y,x)};else if(!l&&c)for(const t of v)w[b++]={attributes:s.getAttributes(t),centroid:(0,m.EG)(this,this.featureAdapter.getCentroid(t,this),e)};else for(const t of v)w[b++]={attributes:s.getAttributes(t),centroid:(0,m.EG)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,m.Op)(this.geometryType,this.hasZ,this.hasM,this.featureAdapter.getGeometry(t),d,e,y,x)}}else for(const e of v){const t=s.getAttributes(e);t&&(w[b++]={attributes:t})}const S=h||0;if(null!=f){const e=S+f;w=w.slice(S,Math.min(w.length,e))}return w}_createExceedsLimitQueryResponse(e){let t=!1,s=Number.POSITIVE_INFINITY,r=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY;for(const t of e.outStatistics??[])if("exceedslimit"===t.statisticType){s=null!=t.maxPointCount?t.maxPointCount:Number.POSITIVE_INFINITY,r=null!=t.maxRecordCount?t.maxRecordCount:Number.POSITIVE_INFINITY,i=null!=t.maxVertexCount?t.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)t=this.items.length>s;else if(this.items.length>r)t=!0;else{const e=b(this.hasZ,this.hasM),s=this.featureAdapter;t=this.items.reduce(((e,t)=>{const r=s.getGeometry(t);return e+(null!=r&&r.coords.length||0)}),0)/e>i}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(t)}}]}}async _createStatisticsQueryResponse(e){const t={attributes:{}},s=[],r=new Map,i=new Map,n=new Map,a=new Map,o=new u(e,this.featureAdapter,this.fieldsIndex),l=e.outStatistics,{groupByFieldsForStatistics:c,having:d,orderByFields:h}=e,f=c&&c.length,p=!!f,m=p?c[0]:null,g=p&&!this.fieldsIndex.get(m);for(const e of l??[]){const{outStatisticFieldName:l,statisticType:u}=e,h=e,y="exceedslimit"!==u?e.onStatisticField:void 0,x="percentile_disc"===u||"percentile_cont"===u,w="EnvelopeAggregate"===u||"CentroidAggregate"===u||"ConvexHullAggregate"===u,b=p&&1===f&&(y===m||g)&&"count"===u;if(p){if(!n.has(y)){const e=[];for(const t of c){const s=this._getAttributeValues(o,t,r);e.push(s)}n.set(y,this._calculateUniqueValues(e,!w&&o.returnDistinctValues))}const e=n.get(y);for(const t in e){const{count:s,data:i,items:n,itemPositions:u}=e[t],f=i.join(",");if(!d||o.validateItems(n,d)){const e=a.get(f)||{attributes:{}};if(w){e.aggregateGeometries||(e.aggregateGeometries={});const{aggregateGeometries:t,outStatisticFieldName:s}=await this._getAggregateGeometry(h,n);e.aggregateGeometries[s]=t}else{let t=null;if(b)t=s;else{const e=this._getAttributeValues(o,y,r),s=u.map((t=>e[t]));t=x&&"statisticParameters"in h?this._getPercentileValue(h,s):this._getStatisticValue(h,s,null,o.returnDistinctValues)}e.attributes[l]=t}let t=0;c.forEach(((s,r)=>e.attributes[this.fieldsIndex.get(s)?s:"EXPR_"+ ++t]=i[r])),a.set(f,e)}}}else if(w){t.aggregateGeometries||(t.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:s}=await this._getAggregateGeometry(h,this.items);t.aggregateGeometries[s]=e}else{const e=this._getAttributeValues(o,y,r);t.attributes[l]=x&&"statisticParameters"in h?this._getPercentileValue(h,e):this._getStatisticValue(h,e,i,o.returnDistinctValues)}s.push({name:l,alias:l,type:"esriFieldTypeDouble"})}const y=p?Array.from(a.values()):[t];return this._sortFeatures(y,h,((e,t)=>e.attributes[t])),{fields:s,features:y}}async _getAggregateGeometry(e,t){const n=await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247)),{statisticType:a,outStatisticFieldName:o}=e,{featureAdapter:l,spatialReference:u,geometryType:c,hasZ:d,hasM:h}=this,f=t.map((e=>(0,m.Op)(c,d,h,l.getGeometry(e)))),p=n.convexHull(u,f,!0)[0],g={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===a){const e=p?(0,i._w)(p):(0,i.aO)(n.union(u,f));g.aggregateGeometries={...e,spatialReference:u},g.outStatisticFieldName=o||"extent"}else if("CentroidAggregate"===a){const e=p?(0,r.tO)(p):(0,r.$G)((0,i.aO)(n.union(u,f)));g.aggregateGeometries={x:e[0],y:e[1],spatialReference:u},g.outStatisticFieldName=o||"centroid"}else"ConvexHullAggregate"===a&&(g.aggregateGeometries=p,g.outStatisticFieldName=o||"convexHull");return g}_getStatisticValue(e,t,s,r){const{onStatisticField:i,statisticType:n}=e;let a=null;return a=s?.has(i)?s.get(i):(0,g.qN)(this.fieldsIndex.get(i))?(0,l.H0)({values:t,returnDistinct:r}):(0,l.i5)({values:r?[...new Set(t)]:t,minValue:null,maxValue:null,useSampleStdDev:!0}),s&&s.set(i,a),a["var"===n?"variance":n]}_getPercentileValue(e,t){const{onStatisticField:s,statisticParameters:r,statisticType:i}=e,{value:n,orderBy:a}=r,o=this.fieldsIndex.get(s);return(0,l.XL)(t,{value:n,orderBy:a,fieldType:o?.type,isDiscrete:"percentile_disc"===i})}_getAttributeValues(e,t,s){if(s.has(t))return s.get(t);const r=this.fieldsIndex.get(t),i=this.items.map((s=>e.getFieldValue(s,t,r)));return s.set(t,i),i}_getAttributeDataValues(e,t){return this.items.map((s=>e.getDataValue(s,{field:t.field,field2:t.field2,field3:t.field3,fieldDelimiter:t.fieldDelimiter,normalizationField:t.normalizationField,normalizationType:t.normalizationType,normalizationTotal:t.normalizationTotal})))}async _getAttributeExpressionValues(e,t,s){const{arcadeUtils:r}=await(0,y.LC)(),i=r.createFunction(t),n=s&&r.getViewInfo(s);return e.getExpressionValues(this.items,i,n,r)}_calculateUniqueValues(e,t){const s={},r=this.items,i=r.length;for(let n=0;n<i;n++){const i=r[n],a=[];for(const t of e)a.push(t[n]);const o=a.join(",");null==s[o]?s[o]={count:1,data:a,items:[i],itemPositions:[n]}:(t||s[o].count++,s[o].items.push(i),s[o].itemPositions.push(n))}return s}async _getDataValues(e){const t=new u(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:s,field:r,normalizationField:i,normalizationType:n,normalizationTotal:a,scale:o}=e,l=s?{viewingMode:"map",scale:o,spatialReference:this.query.outSR||this.spatialReference}:null;return s?this._getAttributeExpressionValues(t,s,l):this._getAttributeDataValues(t,{field:r,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,normalizationField:i,normalizationType:n,normalizationTotal:a})}}function w(e,t,s,r){const i=r.x-s.x,n=r.y-s.y,a=i*i+n*n,o=(t.x-s.x)*i+(t.y-s.y)*n,l=Math.min(1,Math.max(0,o/a));e.x=s.x+i*l,e.y=s.y+n*l}function b(e,t){return e?t?4:3:t?3:2}(p=f||(f={}))[p.NONE=0]="NONE",p[p.EDGE=1]="EDGE",p[p.VERTEX=2]="VERTEX";class v{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]}}},62432:(e,t,s)=>{s.d(t,{nu:()=>m,hr:()=>p,Jc:()=>h,G3:()=>g,Of:()=>f,z4:()=>d,hO:()=>c});var r=s(20102),i=s(74669),n=s(41534);const a=new class{constructor(e,t){this._cache=new i.Z(e),this._invalidCache=new i.Z(t)}get(e,t){const s=`${t.uid}:${e}`,r=this._cache.get(s);if(r)return r;if(void 0!==this._invalidCache.get(s))return null;try{const r=n.WhereClause.create(e,t);return this._cache.put(s,r),r}catch{return this._invalidCache.put(s,null),null}}}(50,500),o="feature-store:unsupported-query",l=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeDate"]);function c(e,t){if(!t)return!0;const s=a.get(t,e);if(!s)throw new r.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new r.Z(o,"where clause is not standard",{where:t});return f(e,s.fieldNames,"where clause contains missing fields"),!0}function d(e,t,s){if(!t)return!0;const i=a.get(t,e);if(!i)throw new r.Z(o,"invalid SQL expression",{having:t});if(!i.isAggregate)throw new r.Z(o,"having does not contain a valid aggregate function",{having:t});const n=i.fieldNames;if(f(e,n,"having contains missing fields"),!i.getExpressions().every((t=>{const{aggregateType:r,field:i}=t,n=e.get(i)?.name;return s.some((t=>{const{onStatisticField:s,statisticType:i}=t,a=e.get(s)?.name;return a===n&&i.toLowerCase().trim()===r}))})))throw new r.Z(o,"expressions in having should also exist in outStatistics",{having:t});return!0}function h(e,t){return e?a.get(e,t):null}function f(e,t,s,i=!0){const n=[];for(const s of t)if("*"!==s&&!e.has(s))if(i){const t=p(s);try{const s=h(t,e);if(!s)throw new r.Z(o,"invalid SQL expression",{where:t});if(!s.isStandardized)throw new r.Z(o,"expression is not standard",{clause:s});f(e,s.fieldNames,"expression contains missing fields")}catch(e){const t=e?.details;if(t&&(t.clause||t.where))throw e;t?.missingFields?n.push(...t.missingFields):n.push(s)}}else n.push(s);if(n.length)throw new r.Z(o,s,{missingFields:n})}function p(e){return e.split(l)[0]}function m(e){return e.split(l)[1]}function g(e,t){const s=t.get(e);return!!s&&!u.has(s.type)}},37427:(e,t,s)=>{s.d(t,{_W:()=>h,iV:()=>m,oj:()=>y});var r=s(67676),i=s(44547),n=s(37455),a=s(8744),o=s(40488);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const s={x:0,y:0};return[s.x,s.y]=e(t.x,t.y,l),null!=t.z&&(s.z=t.z),null!=t.m&&(s.m=t.m),s}if("xmin"in t){const s={xmin:0,ymin:0,xmax:0,ymax:0};return[s.xmin,s.ymin]=e(t.xmin,t.ymin,l),[s.xmax,s.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(s.zmin=t.zmin,s.zmax=t.zmax,s.hasZ=!0),t.hasM&&(s.mmin=t.mmin,s.mmax=t.mmax,s.hasM=!0),s}return"rings"in t?{rings:c(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:c(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:d(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function c(e,t){const s=[];for(const r of e)s.push(d(r,t));return s}function d(e,t){const s=[];for(const r of e){const e=t(r[0],r[1],[0,0]);s.push(e),r.length>2&&e.push(r[2]),r.length>3&&e.push(r[3])}return s}async function h(e,t){if(!e||!t)return;const s=Array.isArray(e)?e.map((e=>null!=e.geometry?e.geometry.spatialReference:null)).filter(r.pC):[e];await(0,i.iQ)(s.map((e=>({source:e,dest:t}))))}const f=u.bind(null,o.hG),p=u.bind(null,o.R6);function m(e,t,s,r){if(!e)return e;if(s||(s=t,t=e.spatialReference),!(0,a.JY)(t)||!(0,a.JY)(s)||(0,a.fS)(t,s))return e;if((0,o.Q8)(t,s)){const t=(0,a.sS)(s)?f(e):p(e);return t.spatialReference=s,t}return(0,i.oj)(n.N,[e],t,s,null,r)[0]}const g=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,s){if(!e||!e.length||!t||!s||(0,a.fS)(t,s))return e;const r={geometries:e,inSpatialReference:t,outSpatialReference:s,resolve:null};return this._jobs.push(r),new Promise((e=>{r.resolve=e,null===this._timer&&(this._timer=setTimeout(this._process,10))}))}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:s,outSpatialReference:r,resolve:l}=e;(0,o.Q8)(s,r)?(0,a.sS)(r)?l(t.map(f)):l(t.map(p)):l((0,i.oj)(n.N,t,s,r,null,null)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function y(e,t,s){return g.push(e,t,s)}},11490:(e,t,s)=>{s.d(t,{EG:()=>w,Op:()=>b,S2:()=>F,Up:()=>v,j6:()=>S,vF:()=>p});var r=s(35454),i=s(67900),n=s(44547),a=s(49600),o=s(33955),l=s(16306),u=s(8744),c=s(98732),d=s(5428),h=s(37427);const f=new r.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),p=Object.freeze({}),m=new d.Z,g=new d.Z,y=new d.Z,x={esriGeometryPoint:c.fQ,esriGeometryPolyline:c.J6,esriGeometryPolygon:c.eG,esriGeometryMultipoint:c.Iv};function w(e,t,s,r=e.hasZ,i=e.hasM){if(null==t)return null;const n=e.hasZ&&r,a=e.hasM&&i;if(s){const o=(0,c.Nh)(y,t,e.hasZ,e.hasM,"esriGeometryPoint",s,r,i);return(0,c.fQ)(o,n,a)}return(0,c.fQ)(t,n,a)}function b(e,t,s,r,i,n,a=t,o=s){const l=t&&a,u=s&&o,d=null!=r?"coords"in r?r:r.geometry:null;if(null==d)return null;if(i){let r=(0,c.zj)(g,d,t,s,e,i,a,o);return n&&(r=(0,c.Nh)(y,r,l,u,e,n)),x[e]?.(r,l,u)??null}if(n){const r=(0,c.Nh)(y,d,t,s,e,n,a,o);return x[e]?.(r,l,u)??null}return(0,c.hY)(m,d,t,s,a,o),x[e]?.(m,l,u)??null}async function v(e,t,s){const{outFields:r,orderByFields:i,groupByFieldsForStatistics:n,outStatistics:a}=e;if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),S(e,t,s)}async function S(e,t,r){if(!e)return null;let{where:n}=e;if(e.where=n=n&&n.trim(),(!n||/^1 *= *1$/.test(n)||t&&t===n)&&(e.where=null),!e.geometry)return e;let c=await async function(e){const{distance:t,units:r}=e,n=e.geometry;if(null==t||"vertexAttributes"in n)return n;const a=n.spatialReference,o=r?f.fromJSON(r):(0,i.qE)(a),l=a&&((0,u.sT)(a)||(0,u.sS)(a))?n:await(0,h._W)(a,u.Zn).then((()=>(0,h.iV)(n,u.Zn)));return(await async function(){return(await Promise.all([s.e(5837),s.e(247)]).then(s.bind(s,30247))).geodesicBuffer}())(l.spatialReference,l,t,o)}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;c=(0,a.aO)(c),c.spatialReference=t}if(c){await(0,h._W)(c.spatialReference,r),c=function(e,t){const s=e.spatialReference;return T(e,t)&&(0,o.YX)(e)?{spatialReference:s,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(c,r);const t=(await(0,l.aX)((0,o.im)(c)))[0];if(null==t)throw p;const s="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,i=s&&T(c,r)?{densificationStep:8*s}:void 0,n=t.toJSON(),a=await(0,h.iV)(n,n.spatialReference,r,i);if(!a)throw p;a.spatialReference=r,e.geometry=a}return e}function T(e,t){if(!e)return!1;const s=e.spatialReference;return((0,o.YX)(e)||(0,o.oU)(e)||(0,o.l9)(e))&&!(0,u.fS)(s,t)&&!(0,n.Up)(s,t)}function F(e){return e&&I in e?JSON.parse(JSON.stringify(e,_)):e}const I="_geVersion",_=(e,t)=>e!==I?t:void 0},3172:(e,t,s)=>{s.r(t),s.d(t,{default:()=>f});var r=s(68773),i=s(40330),n=s(20102),a=s(80442),o=s(22974),l=s(95330),u=s(17452),c=s(19745),d=s(71058),h=s(85958);async function f(e,t){const o=(0,u.HK)(e),c=(0,u.jc)(e);c||o||(e=(0,u.Fv)(e));const y={url:e,requestOptions:{...t}};let x=(0,u.oh)(e);if(x){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let s,r;try{r=await e.before(t)}catch(e){s=T("request:interceptor",e,t)}if((r instanceof Error||r instanceof n.Z)&&(s=T("request:interceptor",r,t)),s)throw e.error&&e.error(s),s;return r}}(x,y);if(null!=e)return{data:e,getHeader:b,httpStatus:200,requestOptions:y.requestOptions,url:y.url};x.after||x.error||(x=null)}if(e=y.url,"image"===(t=y.requestOptions).responseType&&((0,a.Z)("host-webworker")||(0,a.Z)("host-node")))throw T("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),y);if("head"===t.method){if(t.body)throw T("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(o||c)throw T("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}if(await async function(){(0,a.Z)("host-webworker")?p||(p=await s.e(9884).then(s.bind(s,29884))):f._abortableFetch||(f._abortableFetch=globalThis.fetch.bind(globalThis))}(),p)return p.execute(e,t);const w=new AbortController;(0,l.fu)(t,(()=>w.abort()));const v={controller:w,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:x,params:y,redoRequest:!1,useIdentity:m.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},S=await async function(e){let t,s;await async function(e){const t=e.params.url,s=e.params.requestOptions,n=e.controller.signal,a=s.body;let o=null,u=null;if(g&&"HTMLFormElement"in globalThis&&(a instanceof FormData?o=a:a instanceof HTMLFormElement&&(o=new FormData(a))),"string"==typeof a&&(u=a),e.fetchOptions={cache:s.cacheBust&&!("polyfill"in f._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:s.headers||{},method:"head"===s.method?"HEAD":"GET",mode:"cors",priority:m.priority,redirect:"follow",signal:n},(o||u)&&(e.fetchOptions.body=o||u),"anonymous"===s.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||s.query?.token||o?.get("token")),!e.hasToken&&r.default.apiKey&&(0,d.r)(t)&&(s.query||(s.query={}),s.query.token=r.default.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!I(t)&&!(0,l.Hc)(n)){let r;"immediate"===s.authMode?(await F(),r=await i.id.getCredential(t,{signal:n}),e.credential=r):"no-prompt"===s.authMode?(await F(),r=await i.id.getCredential(t,{prompt:!1,signal:n}).catch((()=>{})),e.credential=r):i.id&&(r=i.id.findCredential(t)),r&&(e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[t,s]=await _(e)}while(!await C(e,t,s))}catch(s){const r=T("request:server",s,e.params,t);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const n=e.params.url;if(s&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&s.user?.username&&!(0,u.kl)(n)){const e=(0,u.P$)(n,!0);e&&m.trustedServers.push(e)}Array.isArray(s.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(s.authorizedCrossOriginNoCorsDomains)}const a=e.credential;if(a&&i.id){const e=i.id.findServerInfo(a.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=i.id.findCredential(t,a.userId);e&&-1===i.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:s,getHeader:t?e=>t?.headers.get(e):b,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(v);return x?.after?.(S),S}let p;const m=r.default.request,g="FormData"in globalThis,y=[499,498,403,401],x=["COM_0056","COM_0057","SB_0008"],w=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],b=()=>null,v=Symbol();function S(e){const t=(0,u.P$)(e);return!t||t.endsWith(".arcgis.com")||f._corsServers.includes(t)||(0,u.kl)(t)}function T(e,t,s,r){let i="Error";const a={url:s.url,requestOptions:s.requestOptions,getHeader:b,ssl:!1};if(t instanceof n.Z)return t.details?(t.details=(0,o.d9)(t.details),t.details.url=s.url,t.details.requestOptions=s.requestOptions):t.details=a,t;if(t){const e=r&&(e=>r.headers.get(e)),s=r&&r.status,n=t.message;n&&(i=n),e&&(a.getHeader=e),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||s||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?a.messages=[t.details]:a.messages=t.details,a.raw=v in t?t[v]:t}return(0,l.D_)(t)?(0,l.zE)():new n.Z(e,i,a)}async function F(){i.id||await Promise.all([s.e(7126),s.e(6261),s.e(1400),s.e(450)]).then(s.bind(s,73660))}function I(e){return w.some((t=>t.test(e)))}async function _(e){let t=e.params.url;const s=e.params.requestOptions,r=e.fetchOptions??{},n=(0,u.jc)(t)||(0,u.HK)(t),o=s.responseType||"json",d=n?0:null!=s.timeout?s.timeout:m.timeout;let p=!1;if(!n){e.useSSL&&(t=(0,u.hO)(t)),s.cacheBust&&"default"===r.cache&&(t=(0,u.ZN)(t,"request.preventCache",Date.now()));let n={...s.query};e.credentialToken&&(n.token=e.credentialToken);let o=(0,u.B7)(n);(0,a.Z)("esri-url-encodes-apostrophe")&&(o=o.replace(/'/g,"%27"));const l=t.length+1+o.length;let d;p="delete"===s.method||"post"===s.method||"put"===s.method||!!s.body||l>m.maxUrlLength;const f=s.useProxy||!!(0,u.ed)(t);if(f){const e=(0,u.b7)(t);d=e.path,!p&&d.length+1+l>m.maxUrlLength&&(p=!0),e.query&&(n={...e.query,...n})}if("HEAD"===r.method&&(p||f)){if(p){if(l>m.maxUrlLength)throw T("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw T("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(f)throw T("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(r.method="delete"===s.method?"DELETE":"put"===s.method?"PUT":"POST",s.body?t=(0,u.fl)(t,n):(r.body=(0,u.B7)(n),r.headers||(r.headers={}),r.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.fl)(t,n),f&&(e.useProxy=!0,t=`${d}?${t}`),n.token&&g&&r.body instanceof FormData&&!(0,c.P)(t)&&r.body.set("token",n.token),s.hasOwnProperty("withCredentials"))e.withCredentials=s.withCredentials;else if(!(0,u.D6)(t,(0,u.TI)()))if((0,u.kl)(t))e.withCredentials=!0;else if(i.id){const s=i.id.findServerInfo(t);s&&s.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(r.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(p?(0,u.fl)(t,n):t))}let y,x,w=0,b=!1;d>0&&(w=setTimeout((()=>{b=!0,e.controller.abort()}),d));try{if("native-request-init"===s.responseType)x=r,x.url=t;else if("image"!==s.responseType||"default"!==r.cache||"GET"!==r.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(s.headers)||!n&&!e.useProxy&&m.proxyUrl&&!S(t)){if(y=await f._abortableFetch(t,r),e.useProxy||function(e){const t=(0,u.P$)(e);t&&!f._corsServers.includes(t)&&f._corsServers.push(t)}(t),"native"===s.responseType)x=y;else if("HEAD"!==r.method)if(y.ok){switch(o){case"array-buffer":x=await y.arrayBuffer();break;case"blob":case"image":x=await y.blob();break;default:x=await y.text()}if(w&&(clearTimeout(w),w=0),"json"===o||"xml"===o||"document"===o)if(x)switch(o){case"json":x=JSON.parse(x);break;case"xml":x=E(x,"application/xml");break;case"document":x=E(x,"text/html")}else x=null;if(x){if("array-buffer"===o||"blob"===o){const e=y.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&x["blob"===o?"size":"byteLength"]<=750)try{const e=await new Response(x).json();e.error&&(x=e)}catch{}}"image"===o&&x instanceof Blob&&(x=await M(URL.createObjectURL(x),e,!0))}}else x=await y.text()}else x=await M(t,e)}catch(r){if("AbortError"===r.name){if(b)throw new Error("Timeout exceeded");throw(0,l.zE)("Request canceled")}if(!(!y&&r instanceof TypeError&&m.proxyUrl)||s.body||"delete"===s.method||"head"===s.method||"post"===s.method||"put"===s.method||e.useProxy||S(t))throw r;e.redoRequest=!0,(0,u.tD)({proxyUrl:m.proxyUrl,urlPrefix:(0,u.P$)(t)??""})}finally{w&&clearTimeout(w)}return[y,x]}function E(e,t){let s;try{s=(new DOMParser).parseFromString(e,t)}catch{}if(!s||s.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return s}async function C(e,t,s){if(e.redoRequest)return e.redoRequest=!1,!1;const r=e.params.requestOptions;if(!t||"native"===r.responseType||"native-request-init"===r.responseType)return!0;let n,a;if(!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[v]=s,n;s&&(s.error?n=s.error:"error"===s.status&&Array.isArray(s.messages)&&(n={...s},n[v]=s,n.details=s.messages));let o,l=null;n&&(a=Number(n.code),l=n.hasOwnProperty("subcode")?Number(n.subcode):null,o=n.messageCode,o=o&&o.toUpperCase());const u=r.authMode;if(403===a&&(4===l||n.message&&n.message.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&y.includes(a)&&!I(e.params.url)&&(403!==a||o&&!x.includes(o)&&(null==l||2===l&&e.credentialToken))){await F();try{const t=await i.id.getCredential(e.params.url,{error:T("request:server",n,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;n=t}}if(n)throw n;return!0}function M(e,t,s=!1){const r=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.fetchPriority=m.priority,i.src=e,(0,h.fY)(i,e,s,r)}f._abortableFetch=null,f._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,s)=>{s.d(t,{r:()=>n});var r=s(17452);const i=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function n(e){const t=(0,r.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!i.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,s)=>{s.d(t,{Hu:()=>u,fY:()=>o,jH:()=>c,jz:()=>d});var r=s(68773),i=s(80442),n=s(95330),a=s(17452);function o(e,t,s=!1,r){return new Promise(((a,o)=>{if((0,n.Hc)(r))return void o(l());let u=()=>{h(),o(new Error(`Unable to load ${t}`))},c=()=>{const t=e;h(),a(t)},d=()=>{if(!e)return;const t=e;h(),t.src="",o(l())};const h=()=>{(0,i.Z)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",c)),u=null,c=null,e=null,null!=r&&r.removeEventListener("abort",d),d=null,s&&URL.revokeObjectURL(t)};null!=r&&r.addEventListener("abort",d),(0,i.Z)("esri-image-decode")?e.decode().then(c,u):(e.addEventListener("error",u),e.addEventListener("load",c))}))}function l(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function u(e){r.default.request.crossOriginNoCorsDomains||(r.default.request.crossOriginNoCorsDomains={});const t=r.default.request.crossOriginNoCorsDomains;for(let s of e)s=s.toLowerCase(),/^https?:\/\//.test(s)?t[(0,a.P$)(s)??""]=0:(t[(0,a.P$)("http://"+s)??""]=0,t[(0,a.P$)("https://"+s)??""]=0)}function c(e){const t=r.default.request.crossOriginNoCorsDomains;if(t){let s=(0,a.P$)(e);if(s)return s=s.toLowerCase(),!(0,a.D6)(s,(0,a.TI)())&&t[s]<Date.now()-36e5}return!1}async function d(e){const t=r.default.request.crossOriginNoCorsDomains,s=(0,a.P$)(e);t&&s&&(t[s.toLowerCase()]=Date.now());const i=(0,a.mN)(e);e=i.path,"json"===i.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8008,8062],{52104:(e,a,t)=>{t.d(a,{V:()=>n});var r=t(96187);async function n(e,a){const t=await(0,r.T)(e,a);t.layers=t.layers.filter(s);const n={serviceJSON:t};if((t.currentVersion??0)<10.5)return n;const i=await(0,r.T)(e+"/layers",a);return n.layersJSON={layers:i.layers.filter(s),tables:i.tables},n}function s(e){return!e.type||"Feature Layer"===e.type}},87344:(e,a,t)=>{t.d(a,{T:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(8153)]).then(t.bind(t,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(5590),t.e(6935),t.e(632),t.e(223)]).then(t.bind(t,30223))).default,CSVLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(9675)]).then(t.bind(t,45425))).default,DimensionLayer:async()=>(await Promise.all([t.e(163),t.e(9408),t.e(81)]).then(t.bind(t,40081))).default,ElevationLayer:async()=>(await Promise.all([t.e(163),t.e(9157),t.e(2763)]).then(t.bind(t,65665))).default,FeatureLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(5159)]).then(t.bind(t,19238))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(7202)]).then(t.bind(t,23477))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(9538)]).then(t.bind(t,3723))).default,GroupLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(7483)]).then(t.bind(t,89348))).default,ImageryLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(4165),t.e(4599),t.e(6610),t.e(7391),t.e(1194)]).then(t.bind(t,90444))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(9157),t.e(6610),t.e(7391),t.e(5604),t.e(3381)]).then(t.bind(t,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(163),t.e(6935),t.e(1537)]).then(t.bind(t,9310))).default,KMLLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(739)]).then(t.bind(t,42756))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(163),t.e(7316)]).then(t.bind(t,30690))).default,MapImageLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(4599),t.e(6368),t.e(7374)]).then(t.bind(t,27374))).default,MapNotesLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(1227)]).then(t.bind(t,62128))).default,MediaLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4828)]).then(t.bind(t,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(2855)]).then(t.bind(t,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971),t.e(6237)]).then(t.bind(t,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(5132)]).then(t.bind(t,76604))).default,PointCloudLayer:async()=>(await Promise.all([t.e(163),t.e(4729),t.e(8643),t.e(237)]).then(t.bind(t,10608))).default,RouteLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4286)]).then(t.bind(t,40153))).default,SceneLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(5590),t.e(6935),t.e(632),t.e(7476)]).then(t.bind(t,57476))).default,StreamLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(5004)]).then(t.bind(t,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(9942),t.e(908)]).then(t.bind(t,30359))).default,TileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(4599),t.e(9157),t.e(6368),t.e(8636)]).then(t.bind(t,98636))).default,UnknownLayer:async()=>(await t.e(4166).then(t.bind(t,44166))).default,UnsupportedLayer:async()=>(await t.e(9296).then(t.bind(t,39296))).default,VectorTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9157),t.e(4325),t.e(9805),t.e(5481)]).then(t.bind(t,94756))).default,VoxelLayer:async()=>(await Promise.all([t.e(163),t.e(4729),t.e(9408),t.e(8865)]).then(t.bind(t,28865))).default,WFSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(3974)]).then(t.bind(t,12653))).default,WMSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4729),t.e(9790),t.e(2462)]).then(t.bind(t,25906))).default,WMTSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971),t.e(5853)]).then(t.bind(t,55853))).default,WebTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971)]).then(t.bind(t,16199))).default}},33516:(e,a,t)=>{t.d(a,{Y:()=>i,h:()=>s});var r=t(17452),n=t(65587);function s(e){return{origin:"portal-item",url:(0,r.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function i(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,r.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},18062:(e,a,t)=>{t.r(a),t.d(a,{getFirstLayerOrTableId:()=>h,getNumLayersAndTables:()=>g,getSubtypeGroupLayerIds:()=>S,load:()=>p,preprocessFSItemData:()=>b});var r=t(20102),n=t(87085),s=t(66677),i=t(52104),l=t(65587),o=t(15235),c=t(33516),u=t(14661),y=t(40555),d=t(96187);async function p(e,a){const t=e.instance.portalItem;if(t&&t.id)return await t.load(a),function(e){const a=e.instance.portalItem;if(!a?.type||!e.supportedTypes.includes(a.type))throw new r.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a?.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const t=e.instance,n=t.portalItem;if(!n)return;const{url:s,title:l}=n,o=(0,c.h)(n);if("group"===t.type)return t.read({title:l},o),async function(e,a){let t;const{portalItem:n}=e;if(!n)return;const s=n.type,l=a.layerModuleTypeMap,o=(0,u._$)(n,"Oriented Imagery Layer")??!1;switch(s){case"Feature Service":t=o?l.OrientedImageryLayer:l.FeatureLayer;break;case"Stream Service":t=l.StreamLayer;break;case"Scene Service":t=l.SceneLayer;break;case"Feature Collection":t=l.FeatureLayer;break;default:throw new r.Z("portal:unsupported-item-type-as-group",`The item type '${s}' is not supported as a 'IGroupLayer'`)}let[c,y]=await Promise.all([t(),L(a)]),p=()=>c;if("Feature Service"===s){if(y=n.url?await b(y,n.url):{},S(y).length){const e=l.SubtypeGroupLayer,a=await e();p=e=>"SubtypeGroupLayer"===e.layerType?a:c}return f(e,p,y,await async function(e){const{layersJSON:a}=await(0,i.V)(e);if(!a)return null;const t=[...a.layers,...a.tables];return e=>t.find((a=>a.id===e.id))}(n.url))}return g(y)>0?f(e,p,y):async function(e,a){const{portalItem:t}=e;if(!t?.url)return;const r=await(0,d.T)(t.url);r&&f(e,a,{layers:r.layers?.map(m),tables:r.tables?.map(m)})}(e,p)}(t,e);s&&t.read({url:s},o);const p=await L(e,a);return p&&t.read(p,o),t.resourceReferences={portalItem:n,paths:o.readResourcePaths??[]},"subtype-group"!==t.type&&t.read({title:l},o),(0,y.y)(t,o)}(e,a)}function m(e){return{id:e.id,name:e.name}}function f(e,a,t,i){let l=t.layers||[];const c=t.tables||[];if("Feature Collection"===e.portalItem?.type&&(l.forEach((e=>{"Table"===e?.layerDefinition?.type&&c.push(e)})),l=l.filter((e=>"Table"!==e?.layerDefinition?.type))),"coverage"in t){const a=function(e){const{coverage:a}=e;if(!a)return null;const t=new URL(a);if(a.toLowerCase().includes("item.html")){const e=t.searchParams.get("id"),a=t.origin;return n.Z.fromPortalItem({portalItem:new o.default({id:e,url:a})})}if((0,s.B5)(a))return n.Z.fromArcGISServerUrl({url:a});throw new r.Z("portal:oriented-imagery-layer-coverage","the provided coverage url couldn't be loaded as a layer")}(t);a&&e.add(a)}l.reverse().forEach((r=>{const n=w(e,a(r),t,r,i?.(r));e.add(n)})),c.reverse().forEach((r=>{const n=w(e,a(r),t,r,i?.(r));e.tables.add(n)}))}function w(e,a,t,r,n){const s=e.portalItem,i=new a({portalItem:s.clone(),layerId:r.id});if("sourceJSON"in i&&(i.sourceJSON=n),"subtype-group"!==i.type&&(i.sublayerTitleMode="service-name"),"Feature Collection"===s.type){const e={origin:"portal-item",portal:s.portal||l.Z.getDefault()};i.read(r,e);const a=t.showLegend;null!=a&&i.read({showLegend:a},e)}return i}async function L(e,a){if(!1===e.supportsData)return;const t=e.instance,r=t.portalItem;if(!r)return;let n=null;try{n=await r.fetchData("json",a)}catch(e){}if(function(e){return"stream"!==e.type&&"oriented-imagery"!==e.type&&"layerId"in e}(t)){let e=null,a=!0;if(n&&g(n)>0){if(null==t.layerId){const e=S(n);t.layerId="subtype-group"===t.type?e?.[0]:h(n)}e=function(e,a){const{layerId:t}=a,r=e.layers?.find((e=>e.id===t))||e.tables?.find((e=>e.id===t));return r&&function(e,a){return!("feature"===a.type&&"layerType"in e&&"SubtypeGroupLayer"===e.layerType||"subtype-group"===a.type&&!("layerType"in e))}(r,a)?r:null}(n,t),e&&(1===g(n)&&(a=!1),null!=n.showLegend&&(e.showLegend=n.showLegend))}return a&&"sublayerTitleMode"in t&&"service-name"!==t.sublayerTitleMode&&(t.sublayerTitleMode="item-title-and-service-name"),e}return n}async function b(e,a){if(null==e?.layers||null==e?.tables){const t=await(0,d.T)(a);(e=e||{}).layers=e.layers||t?.layers,e.tables=e.tables||t?.tables}return e}function h(e){const a=e.layers;if(a&&a.length)return a[0].id;const t=e.tables;return t&&t.length?t[0].id:null}function g(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function S(e){const a=[];return e?.layers?.forEach((e=>{"SubtypeGroupLayer"===e.layerType&&a.push(e.id)})),a}},28008:(e,a,t)=>{t.r(a),t.d(a,{fromItem:()=>u,selectLayerClassPath:()=>y});var r=t(20102),n=t(84230),s=t(87344),i=t(15235),l=t(18062),o=t(14661),c=t(96187);async function u(e){!e.portalItem||e.portalItem instanceof i.default||(e={...e,portalItem:new i.default(e.portalItem)});const a=await async function(e){return await e.load(),async function(e){const a=e.className,t=s.T[a];return{constructor:await t(),properties:e.properties}}(await y(e))}(e.portalItem);return new(0,a.constructor)({portalItem:e.portalItem,...a.properties})}async function y(e){switch(e.type){case"Map Service":return async function(e){return await async function(e){return(await(0,c.T)(e.url)).tileInfo}(e)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e);case"Feature Service":return async function(e){if((0,o._$)(e,"Oriented Imagery Layer"))return async function(e){await e.load();const a=await e.fetchData();return a.coverage?{className:"GroupLayer"}:{className:"OrientedImageryLayer",properties:a}}(e);const a=await d(e);if("object"==typeof a){const e={};return null!=a.id&&(e.layerId=a.id),{className:a.className||"FeatureLayer",properties:e}}return{className:"GroupLayer"}}(e);case"Feature Collection":return async function(e){await e.load();const a=(0,o._$)(e,"Map Notes"),t=(0,o._$)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,o._$)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,l.getNumLayersAndTables)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return async function(e){const a=await d(e);if("object"==typeof a){const t={};let r;if(null!=a.id?(t.layerId=a.id,r=`${e.url}/layers/${a.id}`):r=e.url,e.typeKeywords?.length)for(const a of Object.keys(n.fb))if(e.typeKeywords.includes(a))return{className:n.fb[a]};const s=await(0,c.T)(r);return{className:n.fb[s?.layerType]||"SceneLayer",properties:t}}if(!1===a){const a=await(0,c.T)(e.url);return"Voxel"===a?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"}}return{className:"GroupLayer"}}(e);case"Image Service":return async function(e){await e.load();const a=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(a.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(a.includes("tiled imagery"))return{className:"ImageryTileLayer"};const t=await e.fetchData(),r=t?.layerType;if("ArcGISTiledImageServiceLayer"===r)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===r)return{className:"ImageryLayer"};const n=await(0,c.T)(e.url),s=n.cacheType?.toLowerCase(),i=n.capabilities?.toLowerCase().includes("tilesonly");return"map"===s||i?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"CSV":return{className:"CSVLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:throw new r.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function d(e){const a=e.url;if(!a||a.match(/\/\d+$/))return{};await e.load();const t=await e.fetchData();if("Feature Service"===e.type){const e=p(await(0,l.preprocessFSItemData)(t,a));if("object"==typeof e){const a=(0,l.getSubtypeGroupLayerIds)(t);e.className=null!=e.id&&a.includes(e.id)?"SubtypeGroupLayer":"FeatureLayer"}return e}return(0,l.getNumLayersAndTables)(t)>0?p(t):p(await(0,c.T)(a))}function p(e){return 1===(0,l.getNumLayersAndTables)(e)&&{id:(0,l.getFirstLayerOrTableId)(e)}}},40555:(e,a,t)=>{t.d(a,{y:()=>i});var r=t(66643),n=t(95330),s=t(20941);async function i(e,a,t){const i=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(i&&"unique-value"===i.type&&i.styleOrigin){const l=await(0,r.q6)(i.populateFromStyle());if((0,n.k_)(t),!1===l.ok){const t=l.error;a&&a.messages&&a.messages.push(new s.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:a})),e.clear("renderer",a?.origin)}}}},96187:(e,a,t)=>{t.d(a,{T:()=>n});var r=t(3172);async function n(e,a){const{data:t}=await(0,r.default)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return t}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8008,8062],{52104:(e,a,t)=>{t.d(a,{V:()=>n});var r=t(96187);async function n(e,a){const t=await(0,r.T)(e,a);t.layers=t.layers.filter(s);const n={serviceJSON:t};if((t.currentVersion??0)<10.5)return n;const i=await(0,r.T)(e+"/layers",a);return n.layersJSON={layers:i.layers.filter(s),tables:i.tables},n}function s(e){return!e.type||"Feature Layer"===e.type}},87344:(e,a,t)=>{t.d(a,{T:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(8153)]).then(t.bind(t,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(5590),t.e(6935),t.e(632),t.e(223)]).then(t.bind(t,30223))).default,CSVLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(9675)]).then(t.bind(t,45425))).default,DimensionLayer:async()=>(await Promise.all([t.e(163),t.e(9037),t.e(81)]).then(t.bind(t,40081))).default,ElevationLayer:async()=>(await Promise.all([t.e(163),t.e(9157),t.e(2763)]).then(t.bind(t,65665))).default,FeatureLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(5159)]).then(t.bind(t,19238))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(7202)]).then(t.bind(t,23477))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8024)]).then(t.bind(t,3723))).default,GroupLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(7483)]).then(t.bind(t,89348))).default,ImageryLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(4165),t.e(4599),t.e(6610),t.e(7391),t.e(1194)]).then(t.bind(t,90444))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(9157),t.e(6610),t.e(7391),t.e(5604),t.e(3381)]).then(t.bind(t,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(163),t.e(6935),t.e(1537)]).then(t.bind(t,9310))).default,KMLLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(739)]).then(t.bind(t,42756))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(163),t.e(7316)]).then(t.bind(t,30690))).default,MapImageLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(4599),t.e(6368),t.e(7374)]).then(t.bind(t,27374))).default,MapNotesLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(1227)]).then(t.bind(t,62128))).default,MediaLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4828)]).then(t.bind(t,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(2855)]).then(t.bind(t,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971),t.e(6237)]).then(t.bind(t,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(5132)]).then(t.bind(t,76604))).default,PointCloudLayer:async()=>(await Promise.all([t.e(163),t.e(5653),t.e(4266),t.e(237)]).then(t.bind(t,10608))).default,RouteLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4286)]).then(t.bind(t,40153))).default,SceneLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(9942),t.e(9238),t.e(5590),t.e(6935),t.e(632),t.e(7476)]).then(t.bind(t,57476))).default,StreamLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(5004)]).then(t.bind(t,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(9942),t.e(908)]).then(t.bind(t,30359))).default,TileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(4599),t.e(9157),t.e(6368),t.e(8636)]).then(t.bind(t,98636))).default,UnknownLayer:async()=>(await t.e(4166).then(t.bind(t,44166))).default,UnsupportedLayer:async()=>(await t.e(9296).then(t.bind(t,39296))).default,VectorTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9157),t.e(4325),t.e(9805),t.e(5481)]).then(t.bind(t,94756))).default,VoxelLayer:async()=>(await Promise.all([t.e(163),t.e(5653),t.e(9037),t.e(8865)]).then(t.bind(t,28865))).default,WFSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(8244),t.e(1223),t.e(1423),t.e(4165),t.e(911),t.e(5546),t.e(3974)]).then(t.bind(t,12653))).default,WMSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(5653),t.e(2462)]).then(t.bind(t,25906))).default,WMTSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971),t.e(5853)]).then(t.bind(t,55853))).default,WebTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971)]).then(t.bind(t,16199))).default}},33516:(e,a,t)=>{t.d(a,{Y:()=>i,h:()=>s});var r=t(17452),n=t(65587);function s(e){return{origin:"portal-item",url:(0,r.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function i(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,r.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},18062:(e,a,t)=>{t.r(a),t.d(a,{getFirstLayerOrTableId:()=>h,getNumLayersAndTables:()=>g,getSubtypeGroupLayerIds:()=>S,load:()=>p,preprocessFSItemData:()=>b});var r=t(20102),n=t(87085),s=t(66677),i=t(52104),l=t(65587),o=t(15235),c=t(33516),u=t(14661),y=t(40555),d=t(96187);async function p(e,a){const t=e.instance.portalItem;if(t&&t.id)return await t.load(a),function(e){const a=e.instance.portalItem;if(!a?.type||!e.supportedTypes.includes(a.type))throw new r.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a?.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const t=e.instance,n=t.portalItem;if(!n)return;const{url:s,title:l}=n,o=(0,c.h)(n);if("group"===t.type)return t.read({title:l},o),async function(e,a){let t;const{portalItem:n}=e;if(!n)return;const s=n.type,l=a.layerModuleTypeMap,o=(0,u._$)(n,"Oriented Imagery Layer")??!1;switch(s){case"Feature Service":t=o?l.OrientedImageryLayer:l.FeatureLayer;break;case"Stream Service":t=l.StreamLayer;break;case"Scene Service":t=l.SceneLayer;break;case"Feature Collection":t=l.FeatureLayer;break;default:throw new r.Z("portal:unsupported-item-type-as-group",`The item type '${s}' is not supported as a 'IGroupLayer'`)}let[c,y]=await Promise.all([t(),L(a)]),p=()=>c;if("Feature Service"===s){if(y=n.url?await b(y,n.url):{},S(y).length){const e=l.SubtypeGroupLayer,a=await e();p=e=>"SubtypeGroupLayer"===e.layerType?a:c}return f(e,p,y,await async function(e){const{layersJSON:a}=await(0,i.V)(e);if(!a)return null;const t=[...a.layers,...a.tables];return e=>t.find((a=>a.id===e.id))}(n.url))}return g(y)>0?f(e,p,y):async function(e,a){const{portalItem:t}=e;if(!t?.url)return;const r=await(0,d.T)(t.url);r&&f(e,a,{layers:r.layers?.map(m),tables:r.tables?.map(m)})}(e,p)}(t,e);s&&t.read({url:s},o);const p=await L(e,a);return p&&t.read(p,o),t.resourceReferences={portalItem:n,paths:o.readResourcePaths??[]},"subtype-group"!==t.type&&t.read({title:l},o),(0,y.y)(t,o)}(e,a)}function m(e){return{id:e.id,name:e.name}}function f(e,a,t,i){let l=t.layers||[];const c=t.tables||[];if("Feature Collection"===e.portalItem?.type&&(l.forEach((e=>{"Table"===e?.layerDefinition?.type&&c.push(e)})),l=l.filter((e=>"Table"!==e?.layerDefinition?.type))),"coverage"in t){const a=function(e){const{coverage:a}=e;if(!a)return null;const t=new URL(a);if(a.toLowerCase().includes("item.html")){const e=t.searchParams.get("id"),a=t.origin;return n.Z.fromPortalItem({portalItem:new o.default({id:e,url:a})})}if((0,s.B5)(a))return n.Z.fromArcGISServerUrl({url:a});throw new r.Z("portal:oriented-imagery-layer-coverage","the provided coverage url couldn't be loaded as a layer")}(t);a&&e.add(a)}l.reverse().forEach((r=>{const n=w(e,a(r),t,r,i?.(r));e.add(n)})),c.reverse().forEach((r=>{const n=w(e,a(r),t,r,i?.(r));e.tables.add(n)}))}function w(e,a,t,r,n){const s=e.portalItem,i=new a({portalItem:s.clone(),layerId:r.id});if("sourceJSON"in i&&(i.sourceJSON=n),"subtype-group"!==i.type&&(i.sublayerTitleMode="service-name"),"Feature Collection"===s.type){const e={origin:"portal-item",portal:s.portal||l.Z.getDefault()};i.read(r,e);const a=t.showLegend;null!=a&&i.read({showLegend:a},e)}return i}async function L(e,a){if(!1===e.supportsData)return;const t=e.instance,r=t.portalItem;if(!r)return;let n=null;try{n=await r.fetchData("json",a)}catch(e){}if(function(e){return"stream"!==e.type&&"oriented-imagery"!==e.type&&"layerId"in e}(t)){let e=null,a=!0;if(n&&g(n)>0){if(null==t.layerId){const e=S(n);t.layerId="subtype-group"===t.type?e?.[0]:h(n)}e=function(e,a){const{layerId:t}=a,r=e.layers?.find((e=>e.id===t))||e.tables?.find((e=>e.id===t));return r&&function(e,a){return!("feature"===a.type&&"layerType"in e&&"SubtypeGroupLayer"===e.layerType||"subtype-group"===a.type&&!("layerType"in e))}(r,a)?r:null}(n,t),e&&(1===g(n)&&(a=!1),null!=n.showLegend&&(e.showLegend=n.showLegend))}return a&&"sublayerTitleMode"in t&&"service-name"!==t.sublayerTitleMode&&(t.sublayerTitleMode="item-title-and-service-name"),e}return n}async function b(e,a){if(null==e?.layers||null==e?.tables){const t=await(0,d.T)(a);(e=e||{}).layers=e.layers||t?.layers,e.tables=e.tables||t?.tables}return e}function h(e){const a=e.layers;if(a&&a.length)return a[0].id;const t=e.tables;return t&&t.length?t[0].id:null}function g(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function S(e){const a=[];return e?.layers?.forEach((e=>{"SubtypeGroupLayer"===e.layerType&&a.push(e.id)})),a}},28008:(e,a,t)=>{t.r(a),t.d(a,{fromItem:()=>u,selectLayerClassPath:()=>y});var r=t(20102),n=t(84230),s=t(87344),i=t(15235),l=t(18062),o=t(14661),c=t(96187);async function u(e){!e.portalItem||e.portalItem instanceof i.default||(e={...e,portalItem:new i.default(e.portalItem)});const a=await async function(e){return await e.load(),async function(e){const a=e.className,t=s.T[a];return{constructor:await t(),properties:e.properties}}(await y(e))}(e.portalItem);return new(0,a.constructor)({portalItem:e.portalItem,...a.properties})}async function y(e){switch(e.type){case"Map Service":return async function(e){return await async function(e){return(await(0,c.T)(e.url)).tileInfo}(e)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e);case"Feature Service":return async function(e){if((0,o._$)(e,"Oriented Imagery Layer"))return async function(e){await e.load();const a=await e.fetchData();return a.coverage?{className:"GroupLayer"}:{className:"OrientedImageryLayer",properties:a}}(e);const a=await d(e);if("object"==typeof a){const e={};return null!=a.id&&(e.layerId=a.id),{className:a.className||"FeatureLayer",properties:e}}return{className:"GroupLayer"}}(e);case"Feature Collection":return async function(e){await e.load();const a=(0,o._$)(e,"Map Notes"),t=(0,o._$)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,o._$)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,l.getNumLayersAndTables)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return async function(e){const a=await d(e);if("object"==typeof a){const t={};let r;if(null!=a.id?(t.layerId=a.id,r=`${e.url}/layers/${a.id}`):r=e.url,e.typeKeywords?.length)for(const a of Object.keys(n.fb))if(e.typeKeywords.includes(a))return{className:n.fb[a]};const s=await(0,c.T)(r);return{className:n.fb[s?.layerType]||"SceneLayer",properties:t}}if(!1===a){const a=await(0,c.T)(e.url);return"Voxel"===a?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"}}return{className:"GroupLayer"}}(e);case"Image Service":return async function(e){await e.load();const a=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(a.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(a.includes("tiled imagery"))return{className:"ImageryTileLayer"};const t=await e.fetchData(),r=t?.layerType;if("ArcGISTiledImageServiceLayer"===r)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===r)return{className:"ImageryLayer"};const n=await(0,c.T)(e.url),s=n.cacheType?.toLowerCase(),i=n.capabilities?.toLowerCase().includes("tilesonly");return"map"===s||i?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"CSV":return{className:"CSVLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:throw new r.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function d(e){const a=e.url;if(!a||a.match(/\/\d+$/))return{};await e.load();const t=await e.fetchData();if("Feature Service"===e.type){const e=p(await(0,l.preprocessFSItemData)(t,a));if("object"==typeof e){const a=(0,l.getSubtypeGroupLayerIds)(t);e.className=null!=e.id&&a.includes(e.id)?"SubtypeGroupLayer":"FeatureLayer"}return e}return(0,l.getNumLayersAndTables)(t)>0?p(t):p(await(0,c.T)(a))}function p(e){return 1===(0,l.getNumLayersAndTables)(e)&&{id:(0,l.getFirstLayerOrTableId)(e)}}},40555:(e,a,t)=>{t.d(a,{y:()=>i});var r=t(66643),n=t(95330),s=t(20941);async function i(e,a,t){const i=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(i&&"unique-value"===i.type&&i.styleOrigin){const l=await(0,r.q6)(i.populateFromStyle());if((0,n.k_)(t),!1===l.ok){const t=l.error;a&&a.messages&&a.messages.push(new s.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:a})),e.clear("renderer",a?.origin)}}}},96187:(e,a,t)=>{t.d(a,{T:()=>n});var r=t(3172);async function n(e,a){const{data:t}=await(0,r.default)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return t}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3529],{63529:(e,a,r)=>{r.r(a),r.d(a,{fromUrl:()=>c});var t=r(20102),n=r(17452),l=r(66677),s=r(52104),i=r(84230),o=r(87344),y=r(96187);const u={FeatureLayer:!0,SceneLayer:!0};async function c(e){const a=e.properties?.customParameters,c=await async function(e,a){let r=(0,l.Qc)(e);if(null==r&&(r=await async function(e,a){const r=await(0,y.T)(e,{customParameters:a});let t=null,s=null;const i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":f(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&f(r.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.DR)(e):null;return{title:null!=o&&r.name||(0,n.vt)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.mN)(e).path}}}(e,a)),null==r)throw new t.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:c,sublayer:d}=r;let m;const b={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(c){case"MapServer":m=null!=d?"FeatureLayer":await async function(e,a){return(await(0,y.T)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const r=await(0,y.T)(e,{customParameters:a}),{tileInfo:t,cacheType:n}=r;m=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,y.T)(r.url.path,{customParameters:a});if(m="SceneLayer",e){const a=e?.layers;if("Voxel"===e?.layerType)m="VoxelLayer";else if(a?.length){const e=a[0]?.layerType;null!=e&&null!=i.fb[e]&&(m=i.fb[e])}}break}default:m=b[c]}const w="FeatureServer"===c,h={parsedUrl:r,Constructor:null,layerOrTableId:w?d:void 0,sublayerIds:null,tableIds:null};if(u[m]&&null==d){const r=await async function(e,a,r){let t,n=!1;if("FeatureServer"===a){const a=await(0,s.V)(e,{customParameters:r});n=!!a.layersJSON,t=a.layersJSON||a.serviceJSON}else t=await(0,y.T)(e,{customParameters:r});const l=t?.layers,i=t?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:i?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?i:[]}}(e,c,a);w&&(h.sublayerInfos=r.layerInfos,h.tableInfos=r.tableInfos),1!==r.layerIds.length+r.tableIds.length?(h.sublayerIds=r.layerIds,h.tableIds=r.tableIds):w&&(h.layerOrTableId=r.layerIds[0]??r.tableIds[0],h.sourceJSON=r.layerInfos?.[0]??r.tableInfos?.[0])}return h.Constructor=await async function(e){return(0,o.T[e])()}(m),h}(e.url,a),m={...e.properties,url:e.url};if(!c.sublayerIds)return null!=c.layerOrTableId&&(m.layerId=c.layerOrTableId,m.sourceJSON=c.sourceJSON),new c.Constructor(m);const b=new(0,(await Promise.all([r.e(163),r.e(4609),r.e(7483)]).then(r.bind(r,89348))).default)({title:c.parsedUrl.title});return function(e,a,r){function t(e,t){const n={...r,layerId:e,sublayerTitleMode:"service-name"};return null!=t&&(n.sourceJSON=t),new a.Constructor(n)}a.sublayerIds.forEach((r=>{const n=t(r,d(a.sublayerInfos,r));e.add(n)})),a.tableIds.forEach((r=>{const n=t(r,d(a.tableInfos,r));e.tables.add(n)}))}(b,c,m),b}function d(e,a){return e?e.find((e=>e.id===a)):null}function f(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}},52104:(e,a,r)=>{r.d(a,{V:()=>n});var t=r(96187);async function n(e,a){const r=await(0,t.T)(e,a);r.layers=r.layers.filter(l);const n={serviceJSON:r};if((r.currentVersion??0)<10.5)return n;const s=await(0,t.T)(e+"/layers",a);return n.layersJSON={layers:s.layers.filter(l),tables:s.tables},n}function l(e){return!e.type||"Feature Layer"===e.type}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(8153)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(5590),r.e(6935),r.e(632),r.e(223)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(9675)]).then(r.bind(r,45425))).default,DimensionLayer:async()=>(await Promise.all([r.e(163),r.e(9408),r.e(81)]).then(r.bind(r,40081))).default,ElevationLayer:async()=>(await Promise.all([r.e(163),r.e(9157),r.e(2763)]).then(r.bind(r,65665))).default,FeatureLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(5159)]).then(r.bind(r,19238))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(7202)]).then(r.bind(r,23477))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(9538)]).then(r.bind(r,3723))).default,GroupLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(7483)]).then(r.bind(r,89348))).default,ImageryLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(4165),r.e(4599),r.e(6610),r.e(7391),r.e(1194)]).then(r.bind(r,90444))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(9157),r.e(6610),r.e(7391),r.e(5604),r.e(3381)]).then(r.bind(r,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(163),r.e(6935),r.e(1537)]).then(r.bind(r,9310))).default,KMLLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(739)]).then(r.bind(r,42756))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(163),r.e(7316)]).then(r.bind(r,30690))).default,MapImageLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(4599),r.e(6368),r.e(7374)]).then(r.bind(r,27374))).default,MapNotesLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(1227)]).then(r.bind(r,62128))).default,MediaLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4828)]).then(r.bind(r,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(2855)]).then(r.bind(r,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9971),r.e(6237)]).then(r.bind(r,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(5132)]).then(r.bind(r,76604))).default,PointCloudLayer:async()=>(await Promise.all([r.e(163),r.e(4729),r.e(8643),r.e(237)]).then(r.bind(r,10608))).default,RouteLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4286)]).then(r.bind(r,40153))).default,SceneLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(5590),r.e(6935),r.e(632),r.e(7476)]).then(r.bind(r,57476))).default,StreamLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(5004)]).then(r.bind(r,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(9942),r.e(908)]).then(r.bind(r,30359))).default,TileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(4599),r.e(9157),r.e(6368),r.e(8636)]).then(r.bind(r,98636))).default,UnknownLayer:async()=>(await r.e(4166).then(r.bind(r,44166))).default,UnsupportedLayer:async()=>(await r.e(9296).then(r.bind(r,39296))).default,VectorTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9157),r.e(4325),r.e(9805),r.e(5481)]).then(r.bind(r,94756))).default,VoxelLayer:async()=>(await Promise.all([r.e(163),r.e(4729),r.e(9408),r.e(8865)]).then(r.bind(r,28865))).default,WFSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(3974)]).then(r.bind(r,12653))).default,WMSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4729),r.e(9790),r.e(2462)]).then(r.bind(r,25906))).default,WMTSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9971),r.e(5853)]).then(r.bind(r,55853))).default,WebTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9971)]).then(r.bind(r,16199))).default}},96187:(e,a,r)=>{r.d(a,{T:()=>n});var t=r(3172);async function n(e,a){const{data:r}=await(0,t.default)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return r}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3529],{63529:(e,a,r)=>{r.r(a),r.d(a,{fromUrl:()=>c});var t=r(20102),n=r(17452),l=r(66677),s=r(52104),i=r(84230),o=r(87344),y=r(96187);const u={FeatureLayer:!0,SceneLayer:!0};async function c(e){const a=e.properties?.customParameters,c=await async function(e,a){let r=(0,l.Qc)(e);if(null==r&&(r=await async function(e,a){const r=await(0,y.T)(e,{customParameters:a});let t=null,s=null;const i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":f(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&f(r.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.DR)(e):null;return{title:null!=o&&r.name||(0,n.vt)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.mN)(e).path}}}(e,a)),null==r)throw new t.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:c,sublayer:d}=r;let m;const b={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(c){case"MapServer":m=null!=d?"FeatureLayer":await async function(e,a){return(await(0,y.T)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const r=await(0,y.T)(e,{customParameters:a}),{tileInfo:t,cacheType:n}=r;m=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,y.T)(r.url.path,{customParameters:a});if(m="SceneLayer",e){const a=e?.layers;if("Voxel"===e?.layerType)m="VoxelLayer";else if(a?.length){const e=a[0]?.layerType;null!=e&&null!=i.fb[e]&&(m=i.fb[e])}}break}default:m=b[c]}const w="FeatureServer"===c,h={parsedUrl:r,Constructor:null,layerOrTableId:w?d:void 0,sublayerIds:null,tableIds:null};if(u[m]&&null==d){const r=await async function(e,a,r){let t,n=!1;if("FeatureServer"===a){const a=await(0,s.V)(e,{customParameters:r});n=!!a.layersJSON,t=a.layersJSON||a.serviceJSON}else t=await(0,y.T)(e,{customParameters:r});const l=t?.layers,i=t?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:i?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?i:[]}}(e,c,a);w&&(h.sublayerInfos=r.layerInfos,h.tableInfos=r.tableInfos),1!==r.layerIds.length+r.tableIds.length?(h.sublayerIds=r.layerIds,h.tableIds=r.tableIds):w&&(h.layerOrTableId=r.layerIds[0]??r.tableIds[0],h.sourceJSON=r.layerInfos?.[0]??r.tableInfos?.[0])}return h.Constructor=await async function(e){return(0,o.T[e])()}(m),h}(e.url,a),m={...e.properties,url:e.url};if(!c.sublayerIds)return null!=c.layerOrTableId&&(m.layerId=c.layerOrTableId,m.sourceJSON=c.sourceJSON),new c.Constructor(m);const b=new(0,(await Promise.all([r.e(163),r.e(4609),r.e(7483)]).then(r.bind(r,89348))).default)({title:c.parsedUrl.title});return function(e,a,r){function t(e,t){const n={...r,layerId:e,sublayerTitleMode:"service-name"};return null!=t&&(n.sourceJSON=t),new a.Constructor(n)}a.sublayerIds.forEach((r=>{const n=t(r,d(a.sublayerInfos,r));e.add(n)})),a.tableIds.forEach((r=>{const n=t(r,d(a.tableInfos,r));e.tables.add(n)}))}(b,c,m),b}function d(e,a){return e?e.find((e=>e.id===a)):null}function f(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}},52104:(e,a,r)=>{r.d(a,{V:()=>n});var t=r(96187);async function n(e,a){const r=await(0,t.T)(e,a);r.layers=r.layers.filter(l);const n={serviceJSON:r};if((r.currentVersion??0)<10.5)return n;const s=await(0,t.T)(e+"/layers",a);return n.layersJSON={layers:s.layers.filter(l),tables:s.tables},n}function l(e){return!e.type||"Feature Layer"===e.type}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(8153)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(5590),r.e(6935),r.e(632),r.e(223)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(9675)]).then(r.bind(r,45425))).default,DimensionLayer:async()=>(await Promise.all([r.e(163),r.e(9037),r.e(81)]).then(r.bind(r,40081))).default,ElevationLayer:async()=>(await Promise.all([r.e(163),r.e(9157),r.e(2763)]).then(r.bind(r,65665))).default,FeatureLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(5159)]).then(r.bind(r,19238))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(7202)]).then(r.bind(r,23477))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8024)]).then(r.bind(r,3723))).default,GroupLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(7483)]).then(r.bind(r,89348))).default,ImageryLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(4165),r.e(4599),r.e(6610),r.e(7391),r.e(1194)]).then(r.bind(r,90444))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(9157),r.e(6610),r.e(7391),r.e(5604),r.e(3381)]).then(r.bind(r,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(163),r.e(6935),r.e(1537)]).then(r.bind(r,9310))).default,KMLLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(739)]).then(r.bind(r,42756))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(163),r.e(7316)]).then(r.bind(r,30690))).default,MapImageLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(4599),r.e(6368),r.e(7374)]).then(r.bind(r,27374))).default,MapNotesLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(1227)]).then(r.bind(r,62128))).default,MediaLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4828)]).then(r.bind(r,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(2855)]).then(r.bind(r,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9971),r.e(6237)]).then(r.bind(r,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(5132)]).then(r.bind(r,76604))).default,PointCloudLayer:async()=>(await Promise.all([r.e(163),r.e(5653),r.e(4266),r.e(237)]).then(r.bind(r,10608))).default,RouteLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4286)]).then(r.bind(r,40153))).default,SceneLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(9942),r.e(9238),r.e(5590),r.e(6935),r.e(632),r.e(7476)]).then(r.bind(r,57476))).default,StreamLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(5004)]).then(r.bind(r,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(9942),r.e(908)]).then(r.bind(r,30359))).default,TileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(4599),r.e(9157),r.e(6368),r.e(8636)]).then(r.bind(r,98636))).default,UnknownLayer:async()=>(await r.e(4166).then(r.bind(r,44166))).default,UnsupportedLayer:async()=>(await r.e(9296).then(r.bind(r,39296))).default,VectorTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9157),r.e(4325),r.e(9805),r.e(5481)]).then(r.bind(r,94756))).default,VoxelLayer:async()=>(await Promise.all([r.e(163),r.e(5653),r.e(9037),r.e(8865)]).then(r.bind(r,28865))).default,WFSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(8244),r.e(1223),r.e(1423),r.e(4165),r.e(911),r.e(5546),r.e(3974)]).then(r.bind(r,12653))).default,WMSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(5653),r.e(2462)]).then(r.bind(r,25906))).default,WMTSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9971),r.e(5853)]).then(r.bind(r,55853))).default,WebTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9971)]).then(r.bind(r,16199))).default}},96187:(e,a,r)=>{r.d(a,{T:()=>n});var t=r(3172);async function n(e,a){const{data:r}=await(0,t.default)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return r}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3172],{3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var s=r(68773),o=r(40330),n=r(20102),a=r(80442),i=r(22974),l=r(95330),c=r(17452),u=r(19745),d=r(71058),h=r(85958);async function p(e,t){const i=(0,c.HK)(e),u=(0,c.jc)(e);u||i||(e=(0,c.Fv)(e));const y={url:e,requestOptions:{...t}};let g=(0,c.oh)(e);if(g){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,s;try{s=await e.before(t)}catch(e){r=v("request:interceptor",e,t)}if((s instanceof Error||s instanceof n.Z)&&(r=v("request:interceptor",s,t)),r)throw e.error&&e.error(r),r;return s}}(g,y);if(null!=e)return{data:e,getHeader:q,httpStatus:200,requestOptions:y.requestOptions,url:y.url};g.after||g.error||(g=null)}if(e=y.url,"image"===(t=y.requestOptions).responseType&&((0,a.Z)("host-webworker")||(0,a.Z)("host-node")))throw v("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),y);if("head"===t.method){if(t.body)throw v("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),y);if(i||u)throw v("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),y)}if(await async function(){(0,a.Z)("host-webworker")?f||(f=await r.e(9884).then(r.bind(r,29884))):p._abortableFetch||(p._abortableFetch=globalThis.fetch.bind(globalThis))}(),f)return f.execute(e,t);const b=new AbortController;(0,l.fu)(t,(()=>b.abort()));const T={controller:b,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:g,params:y,redoRequest:!1,useIdentity:m.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},k=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,a=r.body;let i=null,c=null;if(w&&"HTMLFormElement"in globalThis&&(a instanceof FormData?i=a:a instanceof HTMLFormElement&&(i=new FormData(a))),"string"==typeof a&&(c=a),e.fetchOptions={cache:r.cacheBust&&!("polyfill"in p._abortableFetch)?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:m.priority,redirect:"follow",signal:n},(i||c)&&(e.fetchOptions.body=i||c),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||i?.get("token")),!e.hasToken&&s.default.apiKey&&(0,d.r)(t)&&(r.query||(r.query={}),r.query.token=s.default.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!O(t)&&!(0,l.Hc)(n)){let s;"immediate"===r.authMode?(await C(),s=await o.id.getCredential(t,{signal:n}),e.credential=s):"no-prompt"===r.authMode?(await C(),s=await o.id.getCredential(t,{prompt:!1,signal:n}).catch((()=>{})),e.credential=s):o.id&&(s=o.id.findCredential(t)),s&&(e.credentialToken=s.token,e.useSSL=!!s.ssl)}}(e);try{do{[t,r]=await E(e)}while(!await L(e,t,r))}catch(r){const s=v("request:server",r,e.params,t);throw s.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(s),s}const n=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,c.kl)(n)){const e=(0,c.P$)(n,!0);e&&m.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,h.Hu)(r.authorizedCrossOriginNoCorsDomains)}const a=e.credential;if(a&&o.id){const e=o.id.findServerInfo(a.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=o.id.findCredential(t,a.userId);e&&-1===o.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getHeader:t?e=>t?.headers.get(e):q,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(T);return g?.after?.(k),k}let f;const m=s.default.request,w="FormData"in globalThis,y=[499,498,403,401],g=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],q=()=>null,T=Symbol();function k(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||p._corsServers.includes(t)||(0,c.kl)(t)}function v(e,t,r,s){let o="Error";const a={url:r.url,requestOptions:r.requestOptions,getHeader:q,ssl:!1};if(t instanceof n.Z)return t.details?(t.details=(0,i.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=a,t;if(t){const e=s&&(e=>s.headers.get(e)),r=s&&s.status,n=t.message;n&&(o=n),e&&(a.getHeader=e),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?a.messages=[t.details]:a.messages=t.details,a.raw=T in t?t[T]:t}return(0,l.D_)(t)?(0,l.zE)():new n.Z(e,o,a)}async function C(){o.id||await Promise.all([r.e(7126),r.e(6261),r.e(1400),r.e(450)]).then(r.bind(r,73660))}function O(e){return b.some((t=>t.test(e)))}async function E(e){let t=e.params.url;const r=e.params.requestOptions,s=e.fetchOptions??{},n=(0,c.jc)(t)||(0,c.HK)(t),i=r.responseType||"json",d=n?0:null!=r.timeout?r.timeout:m.timeout;let f=!1;if(!n){e.useSSL&&(t=(0,c.hO)(t)),r.cacheBust&&"default"===s.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let n={...r.query};e.credentialToken&&(n.token=e.credentialToken);let i=(0,c.B7)(n);(0,a.Z)("esri-url-encodes-apostrophe")&&(i=i.replace(/'/g,"%27"));const l=t.length+1+i.length;let d;f="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>m.maxUrlLength;const p=r.useProxy||!!(0,c.ed)(t);if(p){const e=(0,c.b7)(t);d=e.path,!f&&d.length+1+l>m.maxUrlLength&&(f=!0),e.query&&(n={...e.query,...n})}if("HEAD"===s.method&&(f||p)){if(f){if(l>m.maxUrlLength)throw v("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw v("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(p)throw v("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(f?(s.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,c.fl)(t,n):(s.body=(0,c.B7)(n),s.headers||(s.headers={}),s.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,n),p&&(e.useProxy=!0,t=`${d}?${t}`),n.token&&w&&s.body instanceof FormData&&!(0,u.P)(t)&&s.body.set("token",n.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(o.id){const r=o.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(s.credentials="include",(0,h.jH)(t)&&await(0,h.jz)(f?(0,c.fl)(t,n):t))}let y,g,b=0,q=!1;d>0&&(b=setTimeout((()=>{q=!0,e.controller.abort()}),d));try{if("native-request-init"===r.responseType)g=s,g.url=t;else if("image"!==r.responseType||"default"!==s.cache||"GET"!==s.method||f||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!n&&!e.useProxy&&m.proxyUrl&&!k(t)){if(y=await p._abortableFetch(t,s),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!p._corsServers.includes(t)&&p._corsServers.push(t)}(t),"native"===r.responseType)g=y;else if("HEAD"!==s.method)if(y.ok){switch(i){case"array-buffer":g=await y.arrayBuffer();break;case"blob":case"image":g=await y.blob();break;default:g=await y.text()}if(b&&(clearTimeout(b),b=0),"json"===i||"xml"===i||"document"===i)if(g)switch(i){case"json":g=JSON.parse(g);break;case"xml":g=S(g,"application/xml");break;case"document":g=S(g,"text/html")}else g=null;if(g){if("array-buffer"===i||"blob"===i){const e=y.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&g["blob"===i?"size":"byteLength"]<=750)try{const e=await new Response(g).json();e.error&&(g=e)}catch{}}"image"===i&&g instanceof Blob&&(g=await x(URL.createObjectURL(g),e,!0))}}else g=await y.text()}else g=await x(t,e)}catch(s){if("AbortError"===s.name){if(q)throw new Error("Timeout exceeded");throw(0,l.zE)("Request canceled")}if(!(!y&&s instanceof TypeError&&m.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||k(t))throw s;e.redoRequest=!0,(0,c.tD)({proxyUrl:m.proxyUrl,urlPrefix:(0,c.P$)(t)??""})}finally{b&&clearTimeout(b)}return[y,g]}function S(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function L(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const s=e.params.requestOptions;if(!t||"native"===s.responseType||"native-request-init"===s.responseType)return!0;let n,a;if(!t.ok)throw n=new Error(`Unable to load ${t.url} status: ${t.status}`),n[T]=r,n;r&&(r.error?n=r.error:"error"===r.status&&Array.isArray(r.messages)&&(n={...r},n[T]=r,n.details=r.messages));let i,l=null;n&&(a=Number(n.code),l=n.hasOwnProperty("subcode")?Number(n.subcode):null,i=n.messageCode,i=i&&i.toUpperCase());const c=s.authMode;if(403===a&&(4===l||n.message&&n.message.toLowerCase().includes("ssl")&&!n.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==c||498===a)&&void 0!==a&&y.includes(a)&&!O(e.params.url)&&(403!==a||i&&!g.includes(i)&&(null==l||2===l&&e.credentialToken))){await C();try{const t=await o.id.getCredential(e.params.url,{error:v("request:server",n,e.params),prompt:"no-prompt"!==c,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===c)return e.credential=void 0,e.credentialToken=void 0,!1;n=t}}if(n)throw n;return!0}function x(e,t,r=!1){const s=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=m.priority,o.src=e,(0,h.fY)(o,e,r,s)}p._abortableFetch=null,p._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>n});var s=r(17452);const o=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function n(e){const t=(0,s.P$)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!o.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{Hu:()=>c,fY:()=>i,jH:()=>u,jz:()=>d});var s=r(68773),o=r(80442),n=r(95330),a=r(17452);function i(e,t,r=!1,s){return new Promise(((a,i)=>{if((0,n.Hc)(s))return void i(l());let c=()=>{h(),i(new Error(`Unable to load ${t}`))},u=()=>{const t=e;h(),a(t)},d=()=>{if(!e)return;const t=e;h(),t.src="",i(l())};const h=()=>{(0,o.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",u)),c=null,u=null,e=null,null!=s&&s.removeEventListener("abort",d),d=null,r&&URL.revokeObjectURL(t)};null!=s&&s.addEventListener("abort",d),(0,o.Z)("esri-image-decode")?e.decode().then(u,c):(e.addEventListener("error",c),e.addEventListener("load",u))}))}function l(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}function c(e){s.default.request.crossOriginNoCorsDomains||(s.default.request.crossOriginNoCorsDomains={});const t=s.default.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,a.P$)(r)??""]=0:(t[(0,a.P$)("http://"+r)??""]=0,t[(0,a.P$)("https://"+r)??""]=0)}function u(e){const t=s.default.request.crossOriginNoCorsDomains;if(t){let r=(0,a.P$)(e);if(r)return r=r.toLowerCase(),!(0,a.D6)(r,(0,a.TI)())&&t[r]<Date.now()-36e5}return!1}async function d(e){const t=s.default.request.crossOriginNoCorsDomains,r=(0,a.P$)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const o=(0,a.mN)(e);e=o.path,"json"===o.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1423,4475],{88669:(e,t,i)=>{function s(){return[0,0,0,0]}function r(e,t,i,s){return[e,t,i,s]}function o(e,t){return new Float64Array(e,t,4)}function n(){return r(1,1,1,1)}function l(){return r(1,0,0,0)}function a(){return r(0,1,0,0)}function u(){return r(0,0,1,0)}function p(){return r(0,0,0,1)}i.d(t,{a:()=>o,c:()=>s,f:()=>r});const c=n(),d=l(),y=a(),h=u(),b=p();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:b,UNIT_X:d,UNIT_Y:y,UNIT_Z:h,ZEROS:[0,0,0,0],clone:function(e){return[e[0],e[1],e[2],e[3]]},create:s,createView:o,fromArray:function(e){const t=[0,0,0,0],i=Math.min(4,e.length);for(let s=0;s<i;++s)t[s]=e[s];return t},fromValues:r,ones:n,unitW:p,unitX:l,unitY:a,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},13867:(e,t,i)=>{i.d(t,{Z:()=>r});var s=i(69801);class r{constructor(e,t){this._storage=new s.WJ,this._storage.maxSize=e,t&&this._storage.registerRemoveFunc("",t)}put(e,t,i){this._storage.put(e,t,i,1)}pop(e){return this._storage.pop(e)}get(e){return this._storage.get(e)}clear(){this._storage.clearAll()}destroy(){this._storage.destroy()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}}},60235:(e,t,i)=>{i.d(t,{Mr:()=>n,x9:()=>l});var s=i(80442);const r=new Set;function o(e,t,i=!1){i&&r.has(t)||(i&&r.add(t),e.warn(`🛑 DEPRECATED - ${t}`))}function n(e,t,i={}){if((0,s.Z)("esri-deprecation-warnings")){const{moduleName:s}=i;l(e,"Property: "+(s?s+"::":"")+t,i)}}function l(e,t,i={}){if((0,s.Z)("esri-deprecation-warnings")){const{replacement:s,version:r,see:n,warnOnce:l}=i;let a=t;s&&(a+=`\n\t🛠️ Replacement: ${s}`),r&&(a+=`\n\t⚙️ Version: ${r}`),n&&(a+=`\n\t🔗 See ${n} for more details.`),o(e,a,l)}}},12501:(e,t,i)=>{i.d(t,{Z:()=>h});var s,r=i(43697),o=i(22974),n=i(5600),l=(i(75215),i(52011)),a=i(30556),u=i(35671),p=i(5499),c=i(41733),d=i(84475);let y=s=class extends((0,c.W)(p.Z)){constructor(e){super(e),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this.type="dictionary"}get _loader(){return new d.DictionaryLoader(this.url,this.config,this.fieldMap)}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}writeVisualVariables(e,t,i,s){s?.origin||super.writeVisualVariables(e,t,i,s)}clone(){return new s({config:(0,o.d9)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,o.d9)(this.fieldMap),url:(0,o.d9)(this.url),visualVariables:(0,o.d9)(this.visualVariables)})}async getSymbolAsync(e,t){return this._loader.getSymbolAsync(e,t)}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,u.io)(e,t,this.scaleExpression);for(const i in this.fieldMap){const s=this.fieldMap[i];t.has(s)&&e.add(s)}}get arcadeRequired(){return!0}getSymbol(){return null}getSymbols(){return[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}getSymbolFields(){return this._loader.getSymbolFields()}};(0,r._)([(0,n.Cb)({type:d.DictionaryLoader})],y.prototype,"_loader",null),(0,r._)([(0,n.Cb)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],y.prototype,"config",void 0),(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],y.prototype,"fieldMap",void 0),(0,r._)([(0,n.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],y.prototype,"scaleExpression",void 0),(0,r._)([(0,a.c)("scaleExpression")],y.prototype,"writeData",null),(0,r._)([(0,n.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],y.prototype,"scaleExpressionTitle",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],y.prototype,"url",void 0),(0,r._)([(0,a.c)("visualVariables")],y.prototype,"writeVisualVariables",null),y=s=(0,r._)([(0,l.j)("esri.renderers.DictionaryRenderer")],y);const h=y},28756:(e,t,i)=>{i.d(t,{Z:()=>v});var s,r=i(43697),o=i(22303),n=i(22974),l=i(5600),a=(i(75215),i(36030)),u=i(52011),p=i(35671),c=i(5499),d=i(41733),y=i(79887),h=i(96674);i(67676),i(80442);let b=s=class extends h.wq{constructor(){super(...arguments),this.unit=null}clone(){return new s({unit:this.unit})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],b.prototype,"unit",void 0),b=s=(0,r._)([(0,u.j)("esri.renderers.support.DotDensityLegendOptions")],b);const m=b;var f,g=i(20256),_=i(4095);let w=f=class extends((0,d.W)(c.Z)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new o.Z([0,0,0,0]),this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new _.Z,this.dotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new g.Z({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}getAttributeHash(){return this.attributes?.reduce(((e,t)=>e+t.getAttributeHash()),"")??""}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new f({attributes:(0,n.d9)(this.attributes),backgroundColor:(0,n.d9)(this.backgroundColor),dotBlendingEnabled:(0,n.d9)(this.dotBlendingEnabled),dotShape:(0,n.d9)(this.dotShape),dotSize:(0,n.d9)(this.dotSize),dotValue:(0,n.d9)(this.dotValue),legendOptions:(0,n.d9)(this.legendOptions),outline:(0,n.d9)(this.outline),referenceScale:(0,n.d9)(this.referenceScale),visualVariables:(0,n.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}getControllerHash(){const e=this.attributes?.map((e=>e.field||e.valueExpression||""));return`${e}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes??[])i.valueExpression&&await(0,p.io)(e,t,i.valueExpression),i.field&&e.add(i.field)}};(0,r._)([(0,l.Cb)({type:[y.Z],json:{write:!0}})],w.prototype,"attributes",void 0),(0,r._)([(0,l.Cb)({type:o.Z,json:{write:!0}})],w.prototype,"backgroundColor",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],w.prototype,"dotBlendingEnabled",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!1}})],w.prototype,"dotShape",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],w.prototype,"dotSize",void 0),(0,r._)([(0,l.Cb)({type:m,json:{write:!0}})],w.prototype,"legendOptions",void 0),(0,r._)([(0,l.Cb)({type:_.Z,json:{default:null,write:!0}})],w.prototype,"outline",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],w.prototype,"dotValue",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],w.prototype,"referenceScale",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0}})],w.prototype,"seed",void 0),(0,r._)([(0,a.J)({dotDensity:"dot-density"})],w.prototype,"type",void 0),w=f=(0,r._)([(0,u.j)("esri.renderers.DotDensityRenderer")],w);const v=w},92271:(e,t,i)=>{i.d(t,{Z:()=>D});var s,r=i(43697),o=i(22303),n=(i(9790),i(60235)),l=i(22974),a=i(92604),u=i(1654),p=i(62357),c=i(5600),d=i(75215),y=i(1153),h=i(36030),b=i(52011),m=i(35671),f=i(5499),g=i(69237),_=i(96674);i(67676),i(80442);let w=s=class extends _.wq{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new s({color:this.color,ratio:this.ratio})}};(0,r._)([(0,c.Cb)({type:o.Z,json:{type:[d.z8],default:null,write:!0}})],w.prototype,"color",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:!0}})],w.prototype,"ratio",void 0),w=s=(0,r._)([(0,b.j)("esri.renderers.support.HeatmapColorStop")],w);const v=w;var x=i(2368);let S=class extends((0,x.J)(_.wq)){constructor(){super(...arguments),this.minLabel=null,this.maxLabel=null,this.title=null}};(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],S.prototype,"minLabel",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],S.prototype,"maxLabel",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],S.prototype,"title",void 0),S=(0,r._)([(0,b.j)("esri.renderers.support.HeatmapLegendOptions")],S);var C,j=i(73572),I=i(77987);const Z="esri.renderers.HeatmapRenderer",P=a.Z.getLogger(Z);function M(e){if(null!=e){const{maxDensity:t,minDensity:i,radius:s}=e;if(null!=t||null!=i||null!=s){const{blurRadius:t,maxPixelIntensity:i,minPixelIntensity:s,...r}=e;return r}}return e}let E=C=class extends f.Z{constructor(e){super(e),this.authoringInfo=null,this.colorStops=[new v({ratio:0,color:new o.Z("rgba(255, 140, 0, 0)")}),new v({ratio:.75,color:new o.Z("rgba(255, 140, 0, 1)")}),new v({ratio:.9,color:new o.Z("rgba(255, 0, 0, 1)")})],this.field=null,this.fieldOffset=0,this.legendOptions=null,this.maxDensity=.04,this.minDensity=0,this.radius=18,this.referenceScale=0,this.type="heatmap",this.valueExpression=null,this.valueExpressionTitle=null,this._warnedProps={blurRadius:!1,maxPixelIntensity:!1,minPixelIntensity:!1}}normalizeCtorArgs(e){return M(e)}get blurRadius(){return(0,j.AJ)(this.radius)}set blurRadius(e){const t=this.maxPixelIntensity,i=this.minPixelIntensity;this._set("radius",(0,j.k0)(e)),this._warnAboutDeprecatedGaussianBlurProp("blurRadius","radius"),this._set("maxDensity",t*this._pixelIntensityToDensity),this._set("minDensity",i*this._pixelIntensityToDensity)}get maxPixelIntensity(){return this.maxDensity/this._pixelIntensityToDensity}set maxPixelIntensity(e){this._set("maxDensity",e*this._pixelIntensityToDensity),this._warnAboutDeprecatedGaussianBlurProp("maxPixelIntensity","maxDensity")}get minPixelIntensity(){return this.minDensity/this._pixelIntensityToDensity}set minPixelIntensity(e){this._set("minDensity",e*this._pixelIntensityToDensity),this._warnAboutDeprecatedGaussianBlurProp("minPixelIntensity","minDensity")}get _pixelIntensityToDensity(){return 24/(j.nu**2*this.blurRadius**4)}_warnAboutDeprecatedGaussianBlurProp(e,t){this._warnedProps[e]||"user"===(0,y.vw)(this).getDefaultOrigin()&&(this._warnedProps[e]=!0,(0,u.Os)((()=>{(0,n.Mr)(P,e,{replacement:`${String(t)} (suggested value: ${this._get(t)})`,version:"4.24"})})))}read(e,t){e=M(e),super.read(e,t)}getSymbol(){return new I.Z}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}async collectRequiredFields(e,t){const i=this.field,s=this.valueExpression;i&&"string"==typeof i&&await(0,m.AB)(e,t,i),s&&"string"==typeof s&&await(0,m.io)(e,t,s)}getAttributeHash(){return null}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new C({authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),colorStops:(0,l.d9)(this.colorStops),field:this.field,legendOptions:(0,l.d9)(this.legendOptions),maxDensity:this.maxDensity,minDensity:this.minDensity,radius:this.radius,referenceScale:this.referenceScale,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,r._)([(0,c.Cb)({type:g.Z,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"authoringInfo",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],E.prototype,"blurRadius",null),(0,r._)([(0,c.Cb)({type:[v],json:{write:!0}})],E.prototype,"colorStops",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0}})],E.prototype,"field",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:{overridePolicy:(e,t,i)=>({enabled:null==i})},origins:{"web-scene":{write:!1}}}})],E.prototype,"fieldOffset",void 0),(0,r._)([(0,c.Cb)({type:S,json:{write:!0}})],E.prototype,"legendOptions",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{write:!0}})],E.prototype,"maxDensity",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],E.prototype,"maxPixelIntensity",null),(0,r._)([(0,c.Cb)({type:Number,json:{write:!0}})],E.prototype,"minDensity",void 0),(0,r._)([(0,c.Cb)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],E.prototype,"minPixelIntensity",null),(0,r._)([(0,c.Cb)({type:Number,cast:p.t_,json:{write:!0}})],E.prototype,"radius",void 0),(0,r._)([(0,c.Cb)({type:Number,range:{min:0},json:{default:0,write:!0}})],E.prototype,"referenceScale",void 0),(0,r._)([(0,h.J)({heatmap:"heatmap"})],E.prototype,"type",void 0),(0,r._)([(0,c.Cb)({type:String,json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],E.prototype,"valueExpression",void 0),(0,r._)([(0,c.Cb)({type:String})],E.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,c.Cb)({readOnly:!0})],E.prototype,"_pixelIntensityToDensity",null),E=C=(0,r._)([(0,b.j)(Z)],E);const D=E},72529:(e,t,i)=>{i.d(t,{Z:()=>x});var s=i(43697),r=i(22303),o=(i(9790),i(67676)),n=i(2368),l=i(62357),a=i(5600),u=(i(75215),i(80442),i(36030)),p=i(52011),c=i(35671),d=i(5499),y=i(41733),h=i(79887),b=i(96674);let m=class extends((0,n.J)(b.wq)){constructor(){super(...arguments),this.color=new r.Z([0,0,0,0]),this.label=null,this.threshold=0}};(0,s._)([(0,a.Cb)({type:r.Z,json:{write:!0}})],m.prototype,"color",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"label",void 0),(0,s._)([(0,a.Cb)({type:Number,range:{min:0,max:1},json:{write:!0}})],m.prototype,"threshold",void 0),m=(0,s._)([(0,p.j)("esri.renderers.support.OthersCategory")],m);let f=class extends((0,n.J)(b.wq)){constructor(){super(...arguments),this.title=null}};(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],f.prototype,"title",void 0),f=(0,s._)([(0,p.j)("esri.renderers.support.PieChartLegendOptions")],f);var g=i(77987),_=i(20256),w=i(4095);let v=class extends((0,y.W)((0,n.J)(d.Z))){constructor(e){super(e),this.attributes=null,this.backgroundFillSymbol=null,this.defaultColor=new r.Z([0,0,0,0]),this.defaultLabel=null,this.holePercentage=0,this.othersCategory=new m,this.legendOptions=null,this.outline=null,this.size=12,this.type="pie-chart"}getSymbol(){return new g.Z({size:this.size?this.size/2+(this.outline?.width||0):0})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol(),this.backgroundFillSymbol].filter(o.pC)}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return this.getSymbols().reduce(((e,t)=>e+JSON.stringify(t)),"")}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes)i.valueExpression&&await(0,c.io)(e,t,i.valueExpression),i.field&&e.add(i.field)}};(0,s._)([(0,a.Cb)({type:[h.Z],json:{write:!0}})],v.prototype,"attributes",void 0),(0,s._)([(0,a.Cb)({type:_.Z,json:{default:null,write:!0}})],v.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,a.Cb)({type:r.Z,json:{write:!0}})],v.prototype,"defaultColor",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],v.prototype,"defaultLabel",void 0),(0,s._)([(0,a.Cb)({type:Number,range:{min:0,max:1},json:{write:!0}})],v.prototype,"holePercentage",void 0),(0,s._)([(0,a.Cb)({type:m,json:{write:!0}})],v.prototype,"othersCategory",void 0),(0,s._)([(0,a.Cb)({type:f,json:{write:!0}})],v.prototype,"legendOptions",void 0),(0,s._)([(0,a.Cb)({type:w.Z,json:{default:null,write:!0}})],v.prototype,"outline",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:l.t_,json:{write:!0}})],v.prototype,"size",void 0),(0,s._)([(0,u.J)({pieChart:"pie-chart"})],v.prototype,"type",void 0),v=(0,s._)([(0,p.j)("esri.renderers.PieChartRenderer")],v);const x=v},84382:(e,t,i)=>{i.d(t,{Z:()=>y});var s,r=i(43697),o=i(22974),n=i(5600),l=(i(75215),i(36030)),a=i(52011),u=i(5499),p=i(41733),c=i(9833);let d=s=class extends((0,p.W)(u.Z)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.getSymbols().map((i=>i.collectRequiredFields(e,t))))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}getSymbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return this.getSymbols().reduce(((e,t)=>e+JSON.stringify(t)),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new s({description:this.description,label:this.label,symbol:this.symbol&&this.symbol.clone(),visualVariables:(0,o.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,r._)([(0,n.Cb)(c.Gn)],d.prototype,"symbol",void 0),(0,r._)([(0,l.J)({simple:"simple"})],d.prototype,"type",void 0),d=s=(0,r._)([(0,a.j)("esri.renderers.SimpleRenderer")],d);const y=d},79887:(e,t,i)=>{i.d(t,{Z:()=>y});var s,r=i(43697),o=i(22303),n=i(96674),l=i(92604),a=i(5600),u=i(90578),p=(i(67676),i(80442),i(52011)),c=i(75215);let d=s=class extends n.wq{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(l.Z.getLogger(this.declaredClass).error(".field: field must be a string value"),null):(0,c.Zs)(e)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new s({color:this.color&&this.color.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,r._)([(0,a.Cb)({type:o.Z,json:{type:[Number],write:!0}})],d.prototype,"color",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,r._)([(0,u.p)("field")],d.prototype,"castField",null),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpressionTitle",void 0),d=s=(0,r._)([(0,p.j)("esri.renderers.support.AttributeColorInfo")],d);const y=d},84475:(e,t,i)=>{i.r(t),i.d(t,{DictionaryLoader:()=>b});var s=i(22303),r=i(3172),o=i(20102),n=(i(80442),i(92604)),l=i(13867),a=i(95330),u=i(19153),p=i(99514),c=i(59266),d=i(17386);const y="esri.renderers.support.DictionaryLoader",h={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};class b{constructor(e,t,i){this.config=null,this.fieldMap=null,this.url=null,this._ongoingRequests=new Map,this._symbolCache=new l.Z(100),this._fieldIndex=null,this._dictionaryPromise=null,this.url=e,this.config=t,this.fieldMap=i}getSymbolFields(){return this._symbolFields}async getSymbolAsync(e,t){let i;this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(t));try{i=await this._dictionaryPromise}catch(e){if((0,a.D_)(e))return this._dictionaryPromise=null,null}const r={};if(this.fieldMap)for(const t of this._symbolFields){const i=this._getFieldName(this.fieldMap[t]);r[t]=i?""+e.attributes[i]:""}let o=null;try{o=i?.(r,t)}catch(e){return null}if(!o||"string"!=typeof o)return null;const n=(0,u.hP)(o).toString(),l=this._symbolCache.get(n);if(l)return l.catch((()=>{this._symbolCache.pop(n)})),l;const p=o.split(";"),c=[],d=[];for(const e of p)if(e)if(e.includes("po:")){const t=e.substr(3).split("|");if(3===t.length){const e=t[0],i=t[1];let r=t[2];if("DashTemplate"===i)r=r.split(" ").map((e=>Number(e)));else if("Color"===i){const e=new s.Z(r).toRgba();r=[e[0],e[1],e[2],255*e[3]]}else r=Number(r);d.push({primitiveName:e,propertyName:i,value:r})}}else if(e.includes("|")){for(const t of e.split("|"))if(this._itemNames.has(t)){c.push(t);break}}else this._itemNames.has(e)&&c.push(e);const y=null==e.geometry||!e.geometry.hasZ&&"point"===e.geometry.type,h=this._cimPartsToCIMSymbol(c,d,y,t);return this._symbolCache.put(n,h,1),h}async fetchResources(e){if(this._dictionaryPromise)return this._dictionaryPromise;if(!this.url)return void n.Z.getLogger(y).error("no valid URL!");const t=(0,r.default)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},signal:null!=e?e.signal:null}),[{data:i}]=await Promise.all([t,(0,c.LC)()]);if(!i)throw this._dictionaryPromise=null,new o.Z("esri.renderers.DictionaryRenderer","Bad dictionary data!");const s=i.expression,l=i.authoringInfo;this._refSymbolUrlTemplate=this.url+"/"+i.cimRefTemplateUrl,this._itemNames=new Set(i.itemsNames),this._symbolFields=l.symbol;const a={};if(this.config){const e=this.config;for(const t in e)a[t]=e[t]}if(l.configuration)for(const e of l.configuration)a.hasOwnProperty(e.name)||(a[e.name]=e.value);const u=[];if(null!=e&&e.fields&&this.fieldMap)for(const t of this._symbolFields){const i=this.fieldMap[t],s=e.fields.filter((e=>e.name.toLowerCase()===i?.toLowerCase()));s.length>0&&u.push({...s[0],type:"esriFieldTypeString"})}u.length>0&&(this._fieldIndex=new p.Z(u));const d=(0,c.pp)(s,null!=e?e.spatialReference:null,u,a).then((e=>{const t={scale:0};return(i,s)=>{if(null==e)return null;const r=e.repurposeFeature({geometry:null,attributes:i});return t.scale=null!=s?s.scale??void 0:void 0,e.evaluate({$feature:r,$view:t})}})).catch((e=>(n.Z.getLogger(y).error("Creating dictinoary expression failed:",e),null)));return this._dictionaryPromise=d,d}async _cimPartsToCIMSymbol(e,t,i,s){const r=new Array(e.length);for(let t=0;t<e.length;t++)r[t]=this._getSymbolPart(e[t],s);const o=await Promise.all(r),n=this.fieldMap;if(n)for(const e of o)m(e,n);return new d.Z({data:this._combineSymbolParts(o,t,i)})}async _getSymbolPart(e,t){if(this._ongoingRequests.has(e))return this._ongoingRequests.get(e).then((e=>e.data));const i=this._refSymbolUrlTemplate.replace(/\{itemName\}/gi,e),s=(0,r.default)(i,{responseType:"json",query:{f:"json"},...t});this._ongoingRequests.set(e,s);try{return(await s).data}catch(t){throw this._ongoingRequests.delete(e),t}}_combineSymbolParts(e,t,i){if(!e||0===e.length)return null;const s={...e[0]};if(e.length>1){s.symbolLayers=[];for(const t of e){const e=t;s.symbolLayers.unshift(...e.symbolLayers)}}return i&&(s.callout=h),{type:"CIMSymbolReference",symbol:s,primitiveOverrides:t}}_getFieldName(e){if(null!==this._fieldIndex){const t=this._fieldIndex.get(e);return t?t.name:e}return e}}function m(e,t){if(!e)return;const i=e.symbolLayers;if(!i)return;let s=i.length;for(;s--;){const e=i[s];e&&!1!==e.enable&&"CIMVectorMarker"===e.type&&f(e,t)}}function f(e,t){const i=e.markerGraphics;if(i)for(const e of i){if(!e)continue;const i=e.symbol;if(i)switch(i.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":m(i,t);break;case"CIMTextSymbol":i.fieldMap=t}}}},73572:(e,t,i)=>{i.d(t,{AJ:()=>n,If:()=>a,QM:()=>l,k0:()=>o,nu:()=>r,wx:()=>u}),i(22021);var s=i(62357);i(98766),i(88669);const r=2.4;function o(e){return(0,s.Wz)(e*r)}function n(e){return(0,s.F2)(e)/r}function l(e,t,i,r){const{radius:o,fieldOffset:n,field:l}=t,u=Math.round((0,s.F2)(o)),p=new Float64Array(i*r);let c,d=Number.NEGATIVE_INFINITY;const y=function(e,t){return null!=e?"string"==typeof t?t=>-1*+t.readAttribute(e):i=>+i.readAttribute(e)+t:e=>1}(l,n),h=new Set;for(const t of e){const e=t.getCursor();for(;e.next();){const t=e.getObjectId();if(h.has(t))continue;h.add(t);const s=e.readLegacyPointGeometry(),o=128;if(s.x<-o||s.x>=i+o||s.y<-o||s.y>r+o)continue;const n=+y(e),l=Math.max(0,Math.round(s.x)-u),b=Math.max(0,Math.round(s.y)-u),m=Math.min(r,Math.round(s.y)+u),f=Math.min(i,Math.round(s.x)+u);for(let e=b;e<m;e++)for(let t=l;t<f;t++){const r=e*i+t,o=a(s.x-t,s.y-e,u);c=p[r]+=o*n,c>d&&(d=c)}}}return{matrix:p.buffer,max:d}}function a(e,t,i){const s=Math.sqrt(e**2+t**2)/i;return s>1?0:3/(Math.PI*i**2)*(1-s**2)**2}function u(e,t){return"function"==typeof e?e:e?"string"==typeof t?t=>-1*+t[e]:i=>+i[e]+t:()=>1}},91423:(e,t,i)=>{i.d(t,{a:()=>l});var s=i(20941),r=i(63213),o=i(32400);const n=(0,r.d)({types:o.A});function l(e,t,i){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?(i&&i.messages&&i.messages.push(new s.Z("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+e.type+"'",{definition:e,context:i})),null):n(e,t,i):null}},32400:(e,t,i)=>{i.d(t,{A:()=>c,o:()=>d});var s=i(16050),r=i(12501),o=i(28756),n=i(92271),l=i(72529),a=i(5499),u=i(84382),p=i(81571);const c={key:"type",base:a.Z,typeMap:{heatmap:n.Z,simple:u.Z,"unique-value":p.Z,"class-breaks":s.Z,"dot-density":o.Z,dictionary:r.Z,"pie-chart":l.Z},errorContext:"renderer"},d={key:"type",base:a.Z,typeMap:{simple:u.Z,"unique-value":p.Z,"class-breaks":s.Z,heatmap:n.Z},errorContext:"renderer"}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9790],{22303:(t,e,o)=>{o.d(e,{Z:()=>h});var r,s,i=o(35270),l=o(22021),n=o(75215);function a(t){return(0,l.uZ)((0,n.vU)(t),0,255)}function p(t,e,o){return t=Number(t),isNaN(t)?o:t<e?e:t>o?o:t}class y{static blendColors(t,e,o,r=new y){return r.r=Math.round(t.r+(e.r-t.r)*o),r.g=Math.round(t.g+(e.g-t.g)*o),r.b=Math.round(t.b+(e.b-t.b)*o),r.a=t.a+(e.a-t.a)*o,r._sanitize()}static fromRgb(t,e){const o=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(o){const t=o[2].split(/\s*,\s*/),r=o[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){const o=t[0];if("%"===o.charAt(o.length-1)){const o=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(o[3]=parseFloat(t[3])),y.fromArray(o,e)}return y.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return y.fromArray((0,i.B7)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new y){if(4!==t.length&&7!==t.length||"#"!==t[0])return null;const o=4===t.length?4:8,r=(1<<o)-1;let s=Number("0x"+t.substr(1));return isNaN(s)?null:(["b","g","r"].forEach((t=>{const i=s&r;s>>=o,e[t]=4===o?17*i:i})),e.a=1,e)}static fromArray(t,e=new y){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const o=(0,i.St)(t)?(0,i.h$)(t):null;return o&&y.fromArray(o,e)||y.fromRgb(t,e)||y.fromHex(t,e)}static fromJSON(t){return t&&new y([t[0],t[1],t[2],t[3]/255])}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?y.fromString(t,this):Array.isArray(t)?y.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof y||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const t=this.r.toString(16),e=this.g.toString(16),o=this.b.toString(16);return`#${t.length<2?"0"+t:t}${e.length<2?"0"+e:e}${o.length<2?"0"+o:o}`}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=y.AlphaMode.ALWAYS){const e=a(this.r),o=a(this.g),r=a(this.b);return t===y.AlphaMode.ALWAYS||1!==this.a?[e,o,r,a(255*this.a)]:[e,o,r]}clone(){return new y(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(p(this.r,0,255)),this.g=Math.round(p(this.g,0,255)),this.b=Math.round(p(this.b,0,255)),this.a=p(this.a,0,1),this}_set(t,e,o,r){this.r=t,this.g=e,this.b=o,this.a=r}}y.prototype.declaredClass="esri.Color",(s=(r=y||(y={})).AlphaMode||(r.AlphaMode={}))[s.ALWAYS=0]="ALWAYS",s[s.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const h=y},6352:(t,e,o)=>{o.d(e,{a:()=>c});var r,s=o(43697),i=o(22303),l=o(96674),n=o(22974),a=o(5600),p=(o(75215),o(52011)),y=o(37308);let h=r=class extends l.wq{constructor(){super(...arguments),this.color=new i.Z("white")}clone(){return new r({color:(0,n.d9)(this.color)})}};(0,s._)([(0,a.Cb)(y.a)],h.prototype,"color",void 0),h=r=(0,s._)([(0,p.j)("esri.symbols.callouts.LineCallout3DBorder")],h);const c=h;Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"}))},70921:(t,e,o)=>{o.d(e,{R:()=>i,Z:()=>s});var r=o(46791);function s(t,e,o=r.Z){return e||(e=new o),e===t||(e.removeAll(),(s=t)&&(Array.isArray(s)||"items"in s&&Array.isArray(s.items))?e.addMany(t):t&&e.add(t)),e;var s}function i(t){return t}},9790:(t,e,o)=>{o.d(e,{se:()=>F,cT:()=>k,dU:()=>O,S9:()=>M,LB:()=>N,AH:()=>D,yK:()=>$,S6:()=>J,QT:()=>A,f_:()=>P});var r,s=o(75215),i=o(63213),l=o(17386),n=(o(38445),o(21218)),a=(o(95191),o(31134),o(50575),o(20825)),p=o(98587),y=(o(38128),o(40908),o(3456)),h=(o(17143),o(96742),o(43697)),c=o(22974),d=o(62357),u=o(5600),b=o(36030),m=o(52011),w=o(94075);let g=r=class extends n.Z{constructor(...t){super(...t),this.type="picture-fill",this.url=null,this.xscale=1,this.yscale=1,this.width=12,this.height=12,this.xoffset=0,this.yoffset=0,this.source=null}normalizeCtorArgs(t,e,o,r){if(t&&"string"!=typeof t&&null==t.imageData)return t;const s={};return t&&(s.url=t),e&&(s.outline=e),null!=o&&(s.width=(0,d.t_)(o)),null!=r&&(s.height=(0,d.t_)(r)),s}clone(){const t=new r({color:(0,c.d9)(this.color),height:this.height,outline:this.outline&&this.outline.clone(),url:this.url,width:this.width,xoffset:this.xoffset,xscale:this.xscale,yoffset:this.yoffset,yscale:this.yscale});return t._set("source",(0,c.d9)(this.source)),t}hash(){return`${super.hash()}.${this.color?.hash()}.${this.height}.${this.url}.${this.width}.${this.xoffset}.${this.xscale}.${this.yoffset}.${this.yscale}`}};(0,h._)([(0,b.J)({esriPFS:"picture-fill"},{readOnly:!0})],g.prototype,"type",void 0),(0,h._)([(0,u.Cb)(w.KA)],g.prototype,"url",void 0),(0,h._)([(0,u.Cb)({type:Number,json:{write:!0}})],g.prototype,"xscale",void 0),(0,h._)([(0,u.Cb)({type:Number,json:{write:!0}})],g.prototype,"yscale",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:d.t_,json:{write:!0}})],g.prototype,"width",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:d.t_,json:{write:!0}})],g.prototype,"height",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:d.t_,json:{write:!0}})],g.prototype,"xoffset",void 0),(0,h._)([(0,u.Cb)({type:Number,cast:d.t_,json:{write:!0}})],g.prototype,"yoffset",void 0),(0,h._)([(0,u.Cb)(w.Ds)],g.prototype,"source",void 0),g=r=(0,h._)([(0,m.j)("esri.symbols.PictureFillSymbol")],g);const f=g;var v=o(37898),_=o(42143),S=o(86114),C=o(20256),j=o(4095),Z=o(77987),x=o(89164),L=(o(87223),o(95868),o(78724)),z=(o(2283),o(44398),o(59390));function k(t){if(!t)return!1;switch(t.type){case"picture-fill":case"picture-marker":case"simple-fill":case"simple-line":case"simple-marker":case"text":case"cim":return!0;default:return!1}}function O(t){if(!t)return!1;switch(t.type){case"label-3d":case"line-3d":case"mesh-3d":case"point-3d":case"polygon-3d":return!0;default:return!1}}o(69496),o(6352);const N={base:x.Z,key:"type",typeMap:{"simple-fill":C.Z,"picture-fill":f,"picture-marker":v.Z,"simple-line":j.Z,"simple-marker":Z.Z,text:L.Z,"label-3d":a.Z,"line-3d":p.Z,"mesh-3d":y.Z,"point-3d":_.Z,"polygon-3d":S.Z,"web-style":z.Z,cim:l.Z},errorContext:"symbol"},D={base:x.Z,key:"type",typeMap:{"picture-marker":v.Z,"simple-marker":Z.Z,text:L.Z,"web-style":z.Z,cim:l.Z},errorContext:"symbol"},M=(0,i.d)({types:N}),A={base:x.Z,key:"type",typeMap:{"simple-fill":C.Z,"picture-fill":f,"picture-marker":v.Z,"simple-line":j.Z,"simple-marker":Z.Z,text:L.Z,"line-3d":p.Z,"mesh-3d":y.Z,"point-3d":_.Z,"polygon-3d":S.Z,"web-style":z.Z,cim:l.Z},errorContext:"symbol"},$={base:x.Z,key:"type",typeMap:{text:L.Z,"label-3d":a.Z},errorContext:"symbol"},P=(x.Z,a.Z,p.Z,y.Z,_.Z,S.Z,z.Z,{base:x.Z,key:"type",typeMap:{"line-3d":p.Z,"mesh-3d":y.Z,"point-3d":_.Z,"polygon-3d":S.Z,"web-style":z.Z,cim:l.Z},errorContext:"symbol"}),J={base:x.Z,key:"type",typeMap:{"label-3d":a.Z},errorContext:"symbol"},F=(0,s.N7)(N)},17386:(t,e,o)=>{o.d(e,{Z:()=>b});var r,s=o(43697),i=o(22974),l=o(19153),n=o(5600),a=(o(75215),o(36030)),p=o(71715),y=o(52011),h=o(30556),c=o(35671),d=o(89164);let u=r=class extends d.Z{constructor(t){super(t),this.data=null,this.type="cim"}readData(t,e){return e}writeData(t,e){Object.assign(e,t)}async collectRequiredFields(t,e){if("CIMSymbolReference"===this.data?.type){const o=this.data.primitiveOverrides;if(o){const r=o.map((o=>{const r=o.valueExpressionInfo;return(0,c.io)(t,e,r.expression)}));await Promise.all(r)}}}clone(){return new r({data:(0,i.d9)(this.data)})}hash(){return(0,l.hP)(JSON.stringify(this.data)).toString()}};(0,s._)([(0,n.Cb)({json:{write:!1}})],u.prototype,"color",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],u.prototype,"data",void 0),(0,s._)([(0,p.r)("data",["symbol"])],u.prototype,"readData",null),(0,s._)([(0,h.c)("data",{})],u.prototype,"writeData",null),(0,s._)([(0,a.J)({CIMSymbolReference:"cim"},{readOnly:!0})],u.prototype,"type",void 0),u=r=(0,s._)([(0,y.j)("esri.symbols.CIMSymbol")],u);const b=u},38445:(t,e,o)=>{o.d(e,{Z:()=>c});var r,s=o(43697),i=o(5600),l=(o(75215),o(67676),o(80442),o(36030)),n=o(52011),a=o(95868),p=o(56332),y=o(52879);let h=r=class extends a.Z{constructor(t){super(t),this.type="extrude",this.size=1,this.material=null,this.castShadows=!0,this.edges=null}clone(){return new r({edges:this.edges&&this.edges.clone(),enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,size:this.size})}};(0,s._)([(0,l.J)({Extrude:"extrude"},{readOnly:!0})],h.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:{enabled:!0,isRequired:!0}},nonNullable:!0})],h.prototype,"size",void 0),(0,s._)([(0,i.Cb)({type:y.b,json:{write:!0}})],h.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],h.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)(p.Z)],h.prototype,"edges",void 0),h=r=(0,s._)([(0,n.j)("esri.symbols.ExtrudeSymbol3DLayer")],h);const c=h},21218:(t,e,o)=>{o.d(e,{Z:()=>p});var r=o(43697),s=o(5600),i=(o(75215),o(67676),o(80442),o(52011)),l=o(4095),n=o(89164);let a=class extends n.Z{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline&&this.outline.hash()}`}};(0,r._)([(0,s.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":l.Z}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,r._)([(0,s.Cb)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,r._)([(0,i.j)("esri.symbols.FillSymbol")],a);const p=a},95191:(t,e,o)=>{o.d(e,{Z:()=>Z});var r,s=o(43697),i=o(5600),l=(o(75215),o(67676),o(80442),o(36030)),n=o(52011),a=o(95868),p=o(56332),y=o(4618),h=o(74721),c=o(17495),d=o(50178),u=(o(92604),o(20102),o(52879));let b=r=class extends u.b{constructor(t){super(t),this.colorMixMode=null}clone(){const t={color:null!=this.color?this.color.clone():null,colorMixMode:this.colorMixMode};return new r(t)}};(0,s._)([(0,l.J)({multiply:"multiply",replace:"replace",tint:"tint"})],b.prototype,"colorMixMode",void 0),b=r=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DFillMaterial")],b);var m,w=o(22303),g=o(96674),f=o(62357),v=o(37308),_=o(45119);let S=m=class extends g.wq{constructor(t){super(t),this.color=new w.Z([0,0,0,1]),this.size=(0,f.Wz)(1),this.pattern=null,this.patternCap="butt"}clone(){const t={color:null!=this.color?this.color.clone():null,size:this.size,pattern:null!=this.pattern?this.pattern.clone():null,patternCap:this.patternCap};return new m(t)}};var C;(0,s._)([(0,i.Cb)(v.a)],S.prototype,"color",void 0),(0,s._)([(0,i.Cb)(v.y)],S.prototype,"size",void 0),(0,s._)([(0,i.Cb)(c.D)],S.prototype,"pattern",void 0),(0,s._)([(0,i.Cb)({type:_.Hc,json:{default:"butt",write:{overridePolicy(){return{enabled:null!=this.pattern}}}}})],S.prototype,"patternCap",void 0),S=m=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DOutline")],S);let j=C=class extends a.Z{constructor(t){super(t),this.type="fill",this.material=null,this.pattern=null,this.castShadows=!0,this.outline=null,this.edges=null}clone(){const t={edges:null!=this.edges?this.edges.clone():null,enabled:this.enabled,material:null!=this.material?this.material.clone():null,pattern:null!=this.pattern?this.pattern.clone():null,castShadows:this.castShadows,outline:null!=this.outline?this.outline.clone():null};return new C(t)}static fromSimpleFillSymbol(t){const e=t.outline&&t.outline.style&&"inside-frame"!==t.outline.style&&"solid"!==t.outline.style?new y.Z({style:t.outline.style}):null,o={size:t.outline?.width??0,color:(t.outline?.color??d.ix).clone(),pattern:e};return e&&t.outline?.cap&&(o.patternCap=t.outline.cap),new C({material:new b({color:(t.color??d.l9).clone()}),pattern:t.style&&"solid"!==t.style?new h.Z({style:t.style}):null,outline:o})}};(0,s._)([(0,l.J)({Fill:"fill"},{readOnly:!0})],j.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:b,json:{write:!0}})],j.prototype,"material",void 0),(0,s._)([(0,i.Cb)(c.q)],j.prototype,"pattern",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],j.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)({type:S,json:{write:!0}})],j.prototype,"outline",void 0),(0,s._)([(0,i.Cb)(p.Z)],j.prototype,"edges",void 0),j=C=(0,s._)([(0,n.j)("esri.symbols.FillSymbol3DLayer")],j);const Z=j},31134:(t,e,o)=>{o.d(e,{Z:()=>c});var r,s=o(43697),i=o(96674),l=o(62357),n=o(5600),a=o(90578),p=(o(67676),o(80442),o(52011)),y=o(61565);let h=r=class extends i.wq{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(t){return(0,l.t_)(t)}clone(){return new r({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,s._)([(0,n.Cb)({type:y.JT,json:{default:"none",write:!0}})],h.prototype,"decoration",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"family",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:{overridePolicy:(t,e,o)=>({enabled:!o||!o.textSymbol3D})}}})],h.prototype,"size",void 0),(0,s._)([(0,a.p)("size")],h.prototype,"castSize",null),(0,s._)([(0,n.Cb)({type:y.g6,json:{default:"normal",write:!0}})],h.prototype,"style",void 0),(0,s._)([(0,n.Cb)({type:y.vC,json:{default:"normal",write:!0}})],h.prototype,"weight",void 0),h=r=(0,s._)([(0,p.j)("esri.symbols.Font")],h);const c=h},50575:(t,e,o)=>{o.d(e,{Z:()=>$});var r,s=o(43697),i=o(92604),l=o(17452),n=o(5600),a=(o(75215),o(67676),o(80442),o(36030)),p=o(52011),y=o(95868),h=o(50178),c=o(35454),d=o(96674),u=o(71715),b=o(30556),m=o(25929);const w=(0,c.w)()({circle:"circle",square:"square",cross:"cross",x:"x",kite:"kite",triangle:"triangle"});let g=r=class extends d.wq{constructor(t){super(t)}readHref(t,e,o){return t?(0,m.f)(t,o):e.dataURI}writeHref(t,e,o,r){t&&((0,l.HK)(t)?e.dataURI=t:(e.href=(0,m.t)(t,r),(0,l.YP)(e.href)&&(e.href=(0,l.Fv)(e.href))))}clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0,read:{source:["href","dataURI"]}}})],g.prototype,"href",void 0),(0,s._)([(0,u.r)("href")],g.prototype,"readHref",null),(0,s._)([(0,b.c)("href",{href:{type:String},dataURI:{type:String}})],g.prototype,"writeHref",null),(0,s._)([(0,a.J)(w)],g.prototype,"primitive",void 0),g=r=(0,s._)([(0,p.j)("esri.symbols.support.IconSymbol3DLayerResource")],g);var f,v=o(37308),_=o(15923);let S=f=class extends _.Z{constructor(){super(...arguments),this.x=0,this.y=0}clone(){return new f({x:this.x,y:this.y})}};(0,s._)([(0,n.Cb)({type:Number})],S.prototype,"x",void 0),(0,s._)([(0,n.Cb)({type:Number})],S.prototype,"y",void 0),S=f=(0,s._)([(0,p.j)("esri.symbols.support.Symbol3DAnchorPosition2D")],S);var C,j=o(22303),Z=o(62357);let x=C=class extends d.wq{constructor(t){super(t),this.color=new j.Z([0,0,0,1]),this.size=(0,Z.Wz)(1)}clone(){const t={color:null!=this.color?this.color.clone():null,size:this.size};return new C(t)}};(0,s._)([(0,n.Cb)(v.a)],x.prototype,"color",void 0),(0,s._)([(0,n.Cb)(v.y)],x.prototype,"size",void 0),x=C=(0,s._)([(0,p.j)("esri.symbols.support.Symbol3DIconOutline")],x);var L,z=o(52879);const k="esri.symbols.IconSymbol3DLayer";let O=L=class extends y.Z{constructor(t){super(t),this.material=null,this.resource=null,this.type="icon",this.size=12,this.anchor="center",this.anchorPosition=null,this.outline=null}clone(){return new L({anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),enabled:this.enabled,material:null!=this.material?this.material.clone():null,outline:null!=this.outline?this.outline.clone():null,resource:this.resource&&this.resource.clone(),size:this.size})}static fromSimpleMarkerSymbol(t){const e=t.color||h.ix,o=N(t),r=t.outline&&t.outline.width>0?{size:t.outline.width,color:(t.outline.color||h.ix).clone()}:null;return new L({size:t.size,resource:{primitive:A(t.style)},material:{color:e},outline:r,anchor:o?"relative":void 0,anchorPosition:o})}static fromPictureMarkerSymbol(t){const e=!t.color||(0,h.rx)(t.color)?h.ix:t.color,o=N(t);return new L({size:t.width<=t.height?t.height:t.width,resource:{href:t.url},material:{color:e.clone()},anchor:o?"relative":void 0,anchorPosition:o})}static fromCIMSymbol(t){return new L({resource:{href:(0,l._l)({mediaType:"application/json",data:JSON.stringify(t.data)})}})}};function N(t){const e="width"in t?t.width:t.size,o="height"in t?t.height:t.size,r=D(t.xoffset),s=D(t.yoffset);return(r||s)&&e&&o?{x:-r/e,y:s/o}:null}function D(t){return isFinite(t)?t:0}(0,s._)([(0,n.Cb)({type:z.b,json:{write:!0}})],O.prototype,"material",void 0),(0,s._)([(0,n.Cb)({type:g,json:{write:!0}})],O.prototype,"resource",void 0),(0,s._)([(0,a.J)({Icon:"icon"},{readOnly:!0})],O.prototype,"type",void 0),(0,s._)([(0,n.Cb)(v.y)],O.prototype,"size",void 0),(0,s._)([(0,a.J)({center:"center",left:"left",right:"right",top:"top",bottom:"bottom",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",relative:"relative"}),(0,n.Cb)({json:{default:"center"}})],O.prototype,"anchor",void 0),(0,s._)([(0,n.Cb)({type:S,json:{type:[Number],read:{reader:t=>new S({x:t[0],y:t[1]})},write:{writer:(t,e)=>{e.anchorPosition=[t.x,t.y]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],O.prototype,"anchorPosition",void 0),(0,s._)([(0,n.Cb)({type:x,json:{write:!0}})],O.prototype,"outline",void 0),O=L=(0,s._)([(0,p.j)(k)],O);const M={circle:"circle",cross:"cross",diamond:"kite",square:"square",x:"x",triangle:"triangle",path:null};function A(t){return M[t]||(i.Z.getLogger(k).warn(`${t} cannot be mapped to Icon symbol. Fallback to "circle"`),"circle")}const $=O},20825:(t,e,o)=>{o.d(e,{Z:()=>m});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(87223),h=o(2283),c=o(84275),d=o(7413);const u=i.Z.ofType({base:null,key:"type",typeMap:{text:h.Z}});let b=r=class extends y.Z{constructor(t){super(t),this.verticalOffset=null,this.callout=null,this.styleOrigin=null,this.symbolLayers=new u,this.type="label-3d"}supportsCallout(){return!0}hasVisibleCallout(){return(0,c.gv)(this)}hasVisibleVerticalOffset(){return(0,c.Uy)(this)}clone(){return new r({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail),callout:(0,l.d9)(this.callout),verticalOffset:(0,l.d9)(this.verticalOffset)})}static fromTextSymbol(t){return new r({symbolLayers:[h.Z.fromTextSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:d.Z,json:{write:!0}})],b.prototype,"verticalOffset",void 0),(0,s._)([(0,n.Cb)(c.Y2)],b.prototype,"callout",void 0),(0,s._)([(0,n.Cb)({json:{read:!1,write:!1}})],b.prototype,"styleOrigin",void 0),(0,s._)([(0,n.Cb)({type:u})],b.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({LabelSymbol3D:"label-3d"},{readOnly:!0})],b.prototype,"type",void 0),b=r=(0,s._)([(0,p.j)("esri.symbols.LabelSymbol3D")],b);const m=b},98587:(t,e,o)=>{o.d(e,{Z:()=>m});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(38128),h=o(96742),c=o(87223);const d=i.Z.ofType({base:null,key:"type",typeMap:{line:y.Z,path:h.Z}}),u=i.Z.ofType({base:null,key:"type",typeMap:{line:y.Z,path:h.Z}});let b=r=class extends c.Z{constructor(t){super(t),this.symbolLayers=new d,this.type="line-3d"}clone(){return new r({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleLineSymbol(t){return new r({symbolLayers:[y.Z.fromSimpleLineSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:d,json:{type:u}})],b.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({LineSymbol3D:"line-3d"},{readOnly:!0})],b.prototype,"type",void 0),b=r=(0,s._)([(0,p.j)("esri.symbols.LineSymbol3D")],b);const m=b},38128:(t,e,o)=>{o.d(e,{Z:()=>j});var r=o(43697),s=o(62357),i=o(5600),l=o(75215),n=(o(67676),o(80442),o(36030)),a=o(52011),p=o(22303),y=o(2368),h=o(96674),c=o(57742);let d=class extends((0,y.J)(h.wq)){constructor(t){super(t),this.type="style",this.placement="begin-end",this.style="arrow",this.color=null}equals(t){return null!=t&&t.placement===this.placement&&t.style===this.style&&(null==this.color&&null==t.color||null!=this.color&&null!=t.color&&this.color.toJSON()===t.color.toJSON())}};(0,r._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],d.prototype,"type",void 0),(0,r._)([(0,i.Cb)({type:c.J,json:{default:"begin-end",write:!0}})],d.prototype,"placement",void 0),(0,r._)([(0,i.Cb)({type:c.k,json:{default:"arrow",write:!0}})],d.prototype,"style",void 0),(0,r._)([(0,i.Cb)({type:p.Z,json:{type:[l.z8],default:null,write:!0}})],d.prototype,"color",void 0),d=(0,r._)([(0,a.j)("esri.symbols.LineStyleMarker3D")],d);const u=d;var b,m=o(95868),w=o(4618),g=o(17495),f=o(50178),v=o(37308),_=o(52879),S=o(45119);let C=b=class extends m.Z{constructor(t){super(t),this.material=null,this.type="line",this.join="miter",this.cap="butt",this.size=(0,s.Wz)(1),this.pattern=null,this.marker=null}clone(){const t={enabled:this.enabled,material:null!=this.material?this.material.clone():null,size:this.size,join:this.join,cap:this.cap,pattern:null!=this.pattern?this.pattern.clone():null,marker:null!=this.marker?this.marker.clone():null};return new b(t)}static fromSimpleLineSymbol(t){const e={enabled:!0,size:t.width??(0,s.Wz)(1),cap:t.cap||"butt",join:t.join||"miter",pattern:t.style&&"inside-frame"!==t.style?new w.Z({style:t.style}):null,material:new _.b({color:(t.color||f.ix).clone()}),marker:t.marker?new u({placement:t.marker.placement,style:t.marker.style,color:t.marker.color?.clone()??null}):null};return new b(e)}};(0,r._)([(0,i.Cb)({type:_.b,json:{write:!0}})],C.prototype,"material",void 0),(0,r._)([(0,n.J)({Line:"line"},{readOnly:!0})],C.prototype,"type",void 0),(0,r._)([(0,i.Cb)({type:S.w2,json:{write:!0,default:"miter"}})],C.prototype,"join",void 0),(0,r._)([(0,i.Cb)({type:S.Hc,json:{write:!0,default:"butt"}})],C.prototype,"cap",void 0),(0,r._)([(0,i.Cb)(v.y)],C.prototype,"size",void 0),(0,r._)([(0,i.Cb)(g.D)],C.prototype,"pattern",void 0),(0,r._)([(0,i.Cb)({types:{key:"type",base:u,typeMap:{style:u}},json:{write:!0}})],C.prototype,"marker",void 0),C=b=(0,r._)([(0,a.j)("esri.symbols.LineSymbol3DLayer")],C);const j=C},40908:(t,e,o)=>{o.d(e,{Z:()=>p});var r=o(43697),s=o(62357),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011)),n=o(89164);let a=class extends n.Z{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,r._)([(0,i.Cb)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],a.prototype,"angle",void 0),(0,r._)([(0,i.Cb)({type:["simple-marker","picture-marker"],readOnly:!0})],a.prototype,"type",void 0),(0,r._)([(0,i.Cb)({type:Number,cast:s.t_,json:{write:!0}})],a.prototype,"xoffset",void 0),(0,r._)([(0,i.Cb)({type:Number,cast:s.t_,json:{write:!0}})],a.prototype,"yoffset",void 0),(0,r._)([(0,i.Cb)({type:Number,cast:t=>"auto"===t?t:(0,s.t_)(t),json:{write:!0}})],a.prototype,"size",void 0),a=(0,r._)([(0,l.j)("esri.symbols.MarkerSymbol")],a);const p=a},3456:(t,e,o)=>{o.d(e,{Z:()=>u});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(95191),h=o(87223);const c=i.Z.ofType({base:null,key:"type",typeMap:{fill:y.Z}});let d=r=class extends h.Z{constructor(t){super(t),this.symbolLayers=new c,this.type="mesh-3d"}clone(){return new r({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleFillSymbol(t){return new r({symbolLayers:[y.Z.fromSimpleFillSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:c})],d.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({MeshSymbol3D:"mesh-3d"},{readOnly:!0})],d.prototype,"type",void 0),d=r=(0,s._)([(0,p.j)("esri.symbols.MeshSymbol3D")],d);const u=d},17143:(t,e,o)=>{o.d(e,{Z:()=>v});var r,s=o(43697),i=o(5600),l=(o(75215),o(67676),o(80442),o(36030)),n=o(52011),a=o(95868),p=o(35454),y=o(96674),h=o(25929);const c=(0,p.w)()({sphere:"sphere",cylinder:"cylinder",cube:"cube",cone:"cone",diamond:"diamond",tetrahedron:"tetrahedron",invertedCone:"inverted-cone"});let d=r=class extends y.wq{clone(){return new r({href:this.href,primitive:this.primitive})}};(0,s._)([(0,i.Cb)({type:String,json:{read:h.r,write:h.w}})],d.prototype,"href",void 0),(0,s._)([(0,l.J)(c)],d.prototype,"primitive",void 0),d=r=(0,s._)([(0,n.j)("esri.symbols.support.ObjectSymbol3DLayerResource")],d);var u,b=o(15923);let m=u=class extends b.Z{constructor(){super(...arguments),this.x=0,this.y=0,this.z=0}clone(){return new u({x:this.x,y:this.y,z:this.z})}};(0,s._)([(0,i.Cb)({type:Number})],m.prototype,"x",void 0),(0,s._)([(0,i.Cb)({type:Number})],m.prototype,"y",void 0),(0,s._)([(0,i.Cb)({type:Number})],m.prototype,"z",void 0),m=u=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DAnchorPosition3D")],m);var w,g=o(52879);let f=w=class extends a.Z{constructor(t){super(t),this.material=null,this.castShadows=!0,this.resource=null,this.type="object",this.width=void 0,this.height=void 0,this.depth=void 0,this.anchor=void 0,this.anchorPosition=void 0,this.heading=void 0,this.tilt=void 0,this.roll=void 0}clone(){return new w({heading:this.heading,tilt:this.tilt,roll:this.roll,anchor:this.anchor,anchorPosition:this.anchorPosition&&this.anchorPosition.clone(),depth:this.depth,enabled:this.enabled,height:this.height,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,resource:this.resource&&this.resource.clone(),width:this.width})}get isPrimitive(){return!this.resource||"string"!=typeof this.resource.href}};(0,s._)([(0,i.Cb)({type:g.b,json:{write:!0}})],f.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],f.prototype,"castShadows",void 0),(0,s._)([(0,i.Cb)({type:d,json:{write:!0}})],f.prototype,"resource",void 0),(0,s._)([(0,l.J)({Object:"object"},{readOnly:!0})],f.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],f.prototype,"width",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],f.prototype,"height",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],f.prototype,"depth",void 0),(0,s._)([(0,l.J)({center:"center",top:"top",bottom:"bottom",origin:"origin",relative:"relative"}),(0,i.Cb)({json:{default:"origin"}})],f.prototype,"anchor",void 0),(0,s._)([(0,i.Cb)({type:m,json:{type:[Number],read:{reader:t=>new m({x:t[0],y:t[1],z:t[2]})},write:{writer:(t,e)=>{e.anchorPosition=[t.x,t.y,t.z]},overridePolicy(){return{enabled:"relative"===this.anchor}}}}})],f.prototype,"anchorPosition",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],f.prototype,"heading",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],f.prototype,"tilt",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],f.prototype,"roll",void 0),(0,s._)([(0,i.Cb)({readOnly:!0})],f.prototype,"isPrimitive",null),f=w=(0,s._)([(0,n.j)("esri.symbols.ObjectSymbol3DLayer")],f);const v=f},96742:(t,e,o)=>{o.d(e,{Z:()=>d});var r,s=o(43697),i=o(5600),l=(o(75215),o(67676),o(80442),o(36030)),n=o(71715),a=o(52011),p=o(95868),y=o(52879),h=o(45119);let c=r=class extends p.Z{constructor(t){super(t),this.material=null,this.castShadows=!0,this.type="path",this.profile="circle",this.join="miter",this.cap="butt",this.width=void 0,this.height=void 0,this.anchor="center",this.profileRotation="all"}readWidth(t,e){return null!=t?t:null==e.height&&null!=e.size?e.size:void 0}readHeight(t,e){return null!=t?t:null==e.width&&null!=e.size?e.size:void 0}clone(){return new r({enabled:this.enabled,material:null!=this.material?this.material.clone():null,castShadows:this.castShadows,profile:this.profile,join:this.join,cap:this.cap,width:this.width,height:this.height,profileRotation:this.profileRotation,anchor:this.anchor})}};(0,s._)([(0,i.Cb)({type:y.b,json:{write:!0}})],c.prototype,"material",void 0),(0,s._)([(0,i.Cb)({type:Boolean,nonNullable:!0,json:{write:!0,default:!0}})],c.prototype,"castShadows",void 0),(0,s._)([(0,l.J)({Path:"path"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:["circle","quad"],json:{write:!0,default:"circle"}})],c.prototype,"profile",void 0),(0,s._)([(0,i.Cb)({type:h.w2,json:{write:!0,default:"miter"}})],c.prototype,"join",void 0),(0,s._)([(0,i.Cb)({type:h.KW,json:{write:!0,default:"butt"}})],c.prototype,"cap",void 0),(0,s._)([(0,i.Cb)({type:Number,json:{write:{enabled:!0,target:{width:{type:Number},size:{type:Number}}}}})],c.prototype,"width",void 0),(0,s._)([(0,n.r)("width",["width","size","height"])],c.prototype,"readWidth",null),(0,s._)([(0,i.Cb)({type:Number,json:{write:!0}})],c.prototype,"height",void 0),(0,s._)([(0,n.r)("height",["height","size","width"])],c.prototype,"readHeight",null),(0,s._)([(0,i.Cb)({type:["center","bottom","top"],json:{write:!0,default:"center"}})],c.prototype,"anchor",void 0),(0,s._)([(0,i.Cb)({type:["heading","all"],json:{write:!0,default:"all"}})],c.prototype,"profileRotation",void 0),c=r=(0,s._)([(0,a.j)("esri.symbols.PathSymbol3DLayer")],c);const d=c},37898:(t,e,o)=>{o.d(e,{Z:()=>u});var r,s=o(43697),i=o(22974),l=o(62357),n=o(5600),a=(o(75215),o(36030)),p=o(71715),y=o(52011),h=o(40908),c=o(94075);let d=r=class extends h.Z{constructor(...t){super(...t),this.color=null,this.type="picture-marker",this.url=null,this.source=null,this.height=12,this.width=12,this.size=null}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t&&null==t.imageData)return t;const r={};return t&&(r.url=t),null!=e&&(r.width=(0,l.t_)(e)),null!=o&&(r.height=(0,l.t_)(o)),r}readHeight(t,e){return e.size||t}readWidth(t,e){return e.size||t}clone(){const t=new r({angle:this.angle,height:this.height,url:this.url,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset});return t._set("source",(0,i.d9)(this.source)),t}hash(){return`${super.hash()}.${this.height}.${this.url}.${this.width}`}};(0,s._)([(0,n.Cb)({json:{write:!1}})],d.prototype,"color",void 0),(0,s._)([(0,a.J)({esriPMS:"picture-marker"},{readOnly:!0})],d.prototype,"type",void 0),(0,s._)([(0,n.Cb)(c.KA)],d.prototype,"url",void 0),(0,s._)([(0,n.Cb)(c.Ds)],d.prototype,"source",void 0),(0,s._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],d.prototype,"height",void 0),(0,s._)([(0,p.r)("height",["height","size"])],d.prototype,"readHeight",null),(0,s._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],d.prototype,"width",void 0),(0,s._)([(0,n.Cb)({json:{write:!1}})],d.prototype,"size",void 0),d=r=(0,s._)([(0,y.j)("esri.symbols.PictureMarkerSymbol")],d);const u=d},42143:(t,e,o)=>{o.d(e,{Z:()=>g});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(50575),h=o(17143),c=o(87223),d=o(2283),u=o(84275),b=o(7413);const m=i.Z.ofType({base:null,key:"type",typeMap:{icon:y.Z,object:h.Z,text:d.Z}});let w=r=class extends c.Z{constructor(t){super(t),this.verticalOffset=null,this.callout=null,this.symbolLayers=new m,this.type="point-3d"}supportsCallout(){if((this.symbolLayers?this.symbolLayers.length:0)<1)return!1;for(const t of this.symbolLayers.items)switch(t.type){case"icon":case"text":case"object":continue;default:return!1}return!0}hasVisibleCallout(){return(0,u.gv)(this)}hasVisibleVerticalOffset(){return(0,u.Uy)(this)}clone(){return new r({verticalOffset:(0,l.d9)(this.verticalOffset),callout:(0,l.d9)(this.callout),styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromSimpleMarkerSymbol(t){return new r({symbolLayers:[y.Z.fromSimpleMarkerSymbol(t)]})}static fromPictureMarkerSymbol(t){return new r({symbolLayers:[y.Z.fromPictureMarkerSymbol(t)]})}static fromCIMSymbol(t){const e=t.data?.symbol?.type;if("CIMPointSymbol"!==e)return null;const o=t.data.symbol;return new r(o?.callout?{symbolLayers:[y.Z.fromCIMSymbol(t)],callout:{type:"line",size:.5,color:[0,0,0]},verticalOffset:{screenLength:40}}:{symbolLayers:[y.Z.fromCIMSymbol(t)]})}static fromTextSymbol(t){return new r({symbolLayers:[d.Z.fromTextSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:b.Z,json:{write:!0}})],w.prototype,"verticalOffset",void 0),(0,s._)([(0,n.Cb)(u.Y2)],w.prototype,"callout",void 0),(0,s._)([(0,n.Cb)({type:m,json:{origins:{"web-scene":{write:!0}}}})],w.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({PointSymbol3D:"point-3d"},{readOnly:!0})],w.prototype,"type",void 0),w=r=(0,s._)([(0,p.j)("esri.symbols.PointSymbol3D")],w);const g=w},86114:(t,e,o)=>{o.d(e,{Z:()=>v});var r,s=o(43697),i=o(46791),l=o(22974),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=o(38445),h=o(95191),c=o(50575),d=o(38128),u=o(17143),b=o(87223),m=o(2283),w=o(44398);const g=i.Z.ofType({base:null,key:"type",typeMap:{extrude:y.Z,fill:h.Z,icon:c.Z,line:d.Z,object:u.Z,text:m.Z,water:w.Z}});let f=r=class extends b.Z{constructor(t){super(t),this.symbolLayers=new g,this.type="polygon-3d"}clone(){return new r({styleOrigin:(0,l.d9)(this.styleOrigin),symbolLayers:(0,l.d9)(this.symbolLayers),thumbnail:(0,l.d9)(this.thumbnail)})}static fromJSON(t){const e=new r;if(e.read(t),2===e.symbolLayers.length&&"fill"===e.symbolLayers.getItemAt(0).type&&"line"===e.symbolLayers.getItemAt(1).type){const o=e.symbolLayers.getItemAt(0),r=e.symbolLayers.getItemAt(1);!r.enabled||t.symbolLayers&&t.symbolLayers[1]&&!1===t.symbolLayers[1].enable||(o.outline={size:r.size,color:null!=r.material?r.material.color:null}),e.symbolLayers.removeAt(1)}return e}static fromSimpleFillSymbol(t){return new r({symbolLayers:[h.Z.fromSimpleFillSymbol(t)]})}};(0,s._)([(0,n.Cb)({type:g,json:{write:!0}})],f.prototype,"symbolLayers",void 0),(0,s._)([(0,a.J)({PolygonSymbol3D:"polygon-3d"},{readOnly:!0})],f.prototype,"type",void 0),f=r=(0,s._)([(0,p.j)("esri.symbols.PolygonSymbol3D")],f);const v=f},20256:(t,e,o)=>{o.d(e,{Z:()=>b});var r,s=o(43697),i=o(22303),l=o(35454),n=o(22974),a=o(5600),p=(o(75215),o(36030)),y=o(52011),h=o(21218),c=o(4095);const d=new l.X({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let u=r=class extends h.Z{constructor(...t){super(...t),this.color=new i.Z([0,0,0,.25]),this.outline=new c.Z,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.style=t),e&&(r.outline=e),o&&(r.color=o),r}clone(){return new r({color:(0,n.d9)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,s._)([(0,a.Cb)()],u.prototype,"color",void 0),(0,s._)([(0,a.Cb)()],u.prototype,"outline",void 0),(0,s._)([(0,p.J)({esriSFS:"simple-fill"},{readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,a.Cb)({type:d.apiValues,json:{read:d.read,write:d.write}})],u.prototype,"style",void 0),u=r=(0,s._)([(0,y.j)("esri.symbols.SimpleFillSymbol")],u);const b=u},4095:(t,e,o)=>{o.d(e,{Z:()=>j});var r=o(43697),s=o(35454),i=o(22974),l=o(62357),n=o(5600),a=(o(75215),o(36030)),p=o(52011),y=(o(67676),o(80442),o(89164));let h=class extends y.Z{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,r._)([(0,a.J)({esriSLS:"simple-line"},{readOnly:!0})],h.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:Number,cast:l.t_,json:{write:!0}})],h.prototype,"width",void 0),h=(0,r._)([(0,p.j)("esri.symbols.LineSymbol")],h);const c=h;var d,u=o(22303),b=o(96674),m=o(71715),w=o(30556),g=o(57742);let f=d=class extends b.wq{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,o,r){e[o]="web-map"===r?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return t&&null!=t[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,o,r){"web-map"===r?.origin||(e[o]=t)}clone(){return new d({color:(0,i.d9)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,r._)([(0,n.Cb)({type:["begin","end","begin-end"],json:{write:!0}})],f.prototype,"placement",void 0),(0,r._)([(0,a.J)({"line-marker":"line-marker"},{readOnly:!0}),(0,n.Cb)({json:{origins:{"web-map":{write:!1}}}})],f.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:g.k})],f.prototype,"style",void 0),(0,r._)([(0,w.c)("style")],f.prototype,"writeStyle",null),(0,r._)([(0,n.Cb)({type:u.Z,value:null,json:{write:{allowNull:!0}}})],f.prototype,"color",null),(0,r._)([(0,m.r)("color")],f.prototype,"readColor",null),(0,r._)([(0,w.c)("color")],f.prototype,"writeColor",null),f=d=(0,r._)([(0,p.j)("esri.symbols.LineSymbolMarker")],f);const v=f;var _;const S=new s.X({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSInsideFrame:"inside-frame",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let C=_=class extends c{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,o,r,s,i){if(t&&"string"!=typeof t)return t;const n={};return null!=t&&(n.style=t),null!=e&&(n.color=e),null!=o&&(n.width=(0,l.t_)(o)),null!=r&&(n.cap=r),null!=s&&(n.join=s),null!=i&&(n.miterLimit=(0,l.t_)(i)),n}clone(){return new _({color:(0,i.d9)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,r._)([(0,a.J)({esriSLS:"simple-line"},{readOnly:!0})],C.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:S.apiValues,json:{read:S.read,write:S.write}})],C.prototype,"style",void 0),(0,r._)([(0,n.Cb)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,o)=>({enabled:"round"!==t&&(null==o||null==o.origin)})}}})],C.prototype,"cap",void 0),(0,r._)([(0,n.Cb)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,o)=>({enabled:"round"!==t&&(null==o||null==o.origin)})}}})],C.prototype,"join",void 0),(0,r._)([(0,n.Cb)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":v}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],C.prototype,"marker",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{read:!1,write:!1}})],C.prototype,"miterLimit",void 0),C=_=(0,r._)([(0,p.j)("esri.symbols.SimpleLineSymbol")],C);const j=C},77987:(t,e,o)=>{o.d(e,{Z:()=>w});var r,s=o(43697),i=o(22303),l=o(35454),n=o(22974),a=o(62357),p=o(5600),y=(o(75215),o(36030)),h=o(52011),c=o(30556),d=o(40908),u=o(4095);const b=new l.X({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let m=r=class extends d.Z{constructor(...t){super(...t),this.color=new i.Z([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new u.Z}normalizeCtorArgs(t,e,o,r){if(t&&"string"!=typeof t)return t;const s={};return t&&(s.style=t),null!=e&&(s.size=(0,a.t_)(e)),o&&(s.outline=o),r&&(s.color=r),s}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new r({angle:this.angle,color:(0,n.d9)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,s._)([(0,p.Cb)()],m.prototype,"color",void 0),(0,s._)([(0,c.c)("color")],m.prototype,"writeColor",null),(0,s._)([(0,y.J)({esriSMS:"simple-marker"},{readOnly:!0})],m.prototype,"type",void 0),(0,s._)([(0,p.Cb)()],m.prototype,"size",void 0),(0,s._)([(0,p.Cb)({type:b.apiValues,json:{read:b.read,write:b.write}})],m.prototype,"style",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],m.prototype,"path",null),(0,s._)([(0,p.Cb)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":u.Z}},json:{default:null,write:!0}})],m.prototype,"outline",void 0),m=r=(0,s._)([(0,h.j)("esri.symbols.SimpleMarkerSymbol")],m);const w=m},89164:(t,e,o)=>{o.d(e,{Z:()=>d});var r=o(43697),s=o(22303),i=o(35454),l=o(96674),n=o(5600),a=(o(75215),o(67676),o(80442),o(71715)),p=o(52011);const y=new i.X({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let h=0,c=class extends l.wq{constructor(t){super(t),this.id="sym"+h++,this.type=null,this.color=new s.Z([0,0,0,1])}readColor(t){return t&&null!=t[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,r._)([(0,n.Cb)({type:y.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:y.write}}})],c.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:s.Z,json:{write:{allowNull:!0}}})],c.prototype,"color",void 0),(0,r._)([(0,a.r)("color")],c.prototype,"readColor",null),c=(0,r._)([(0,p.j)("esri.symbols.Symbol")],c);const d=c},87223:(t,e,o)=>{o.d(e,{Z:()=>N});var r=o(43697),s=o(46791),i=o(70921),l=o(92604),n=o(17452),a=o(20941),p=o(5600),y=o(90578),h=(o(67676),o(80442),o(71715)),c=o(52011),d=o(30556),u=o(65587),b=o(25929),m=o(38445),w=o(95191),g=o(50575),f=o(38128),v=o(17143),_=o(96742),S=o(89164),C=o(95868),j=o(2283),Z=o(44398),x=o(71144),L=o(23203);const z={icon:g.Z,object:v.Z,line:f.Z,path:_.Z,fill:w.Z,extrude:m.Z,text:j.Z,water:Z.Z},k=s.Z.ofType({base:C.Z,key:"type",typeMap:z,errorContext:"symbol-layer"});let O=class extends S.Z{constructor(t){super(t),this.styleOrigin=null,this.thumbnail=null,this.type=null;const e=this.__accessor__&&this.__accessor__.metadatas&&this.__accessor__.metadatas.symbolLayers,o=e&&e.type||s.Z;this._set("symbolLayers",new o)}get color(){return null}set color(t){this.constructed&&l.Z.getLogger(this.declaredClass).error("Symbol3D does not support colors on the symbol level. Colors may be set on individual symbol layer materials instead.")}set symbolLayers(t){(0,i.Z)(t,this._get("symbolLayers"))}readStyleOrigin(t,e,o){if(t.styleUrl&&t.name){const e=(0,b.f)(t.styleUrl,o);return new x.Z({styleUrl:e,name:t.name})}if(t.styleName&&t.name)return new x.Z({portal:o&&o.portal||u.Z.getDefault(),styleName:t.styleName,name:t.name});o&&o.messages&&o.messages.push(new a.Z("symbol3d:incomplete-style-origin","Style origin requires either a 'styleUrl' or 'styleName' and a 'name' property",{context:o,definition:t}))}writeStyleOrigin(t,e,o,r){if(t.styleUrl&&t.name){let o=(0,b.t)(t.styleUrl,r);(0,n.YP)(o)&&(o=(0,n.Fv)(o)),e.styleOrigin={styleUrl:o,name:t.name}}else t.styleName&&t.name&&(t.portal&&r&&r.portal&&!(0,n.tm)(t.portal.restUrl,r.portal.restUrl)?r&&r.messages&&r.messages.push(new a.Z("symbol:cross-portal","The symbol style origin cannot be persisted because it refers to an item on a different portal than the one being saved to.",{symbol:this})):e.styleOrigin={styleName:t.styleName,name:t.name})}normalizeCtorArgs(t){return t instanceof C.Z||t&&z[t.type]?{symbolLayers:[t]}:Array.isArray(t)?{symbolLayers:t}:t}};(0,r._)([(0,p.Cb)({json:{read:!1,write:!1}})],O.prototype,"color",null),(0,r._)([(0,p.Cb)({type:k,nonNullable:!0,json:{write:!0}}),(0,y.p)(i.R)],O.prototype,"symbolLayers",null),(0,r._)([(0,p.Cb)({type:x.Z})],O.prototype,"styleOrigin",void 0),(0,r._)([(0,h.r)("styleOrigin")],O.prototype,"readStyleOrigin",null),(0,r._)([(0,d.c)("styleOrigin",{"styleOrigin.styleUrl":{type:String},"styleOrigin.styleName":{type:String},"styleOrigin.name":{type:String}})],O.prototype,"writeStyleOrigin",null),(0,r._)([(0,p.Cb)({type:L.p,json:{read:!1}})],O.prototype,"thumbnail",void 0),(0,r._)([(0,p.Cb)({type:["point-3d","line-3d","polygon-3d","mesh-3d","label-3d"],readOnly:!0})],O.prototype,"type",void 0),O=(0,r._)([(0,c.j)("esri.symbols.Symbol3D")],O);const N=O},95868:(t,e,o)=>{o.d(e,{Z:()=>p});var r=o(43697),s=o(96674),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011)),n=o(30556);let a=class extends s.wq{constructor(t){super(t),this.enabled=!0,this.type=null,this.ignoreDrivers=!1}writeEnabled(t,e,o){t||(e[o]=t)}};(0,r._)([(0,i.Cb)({type:Boolean,json:{read:{source:"enable"},write:{target:"enable"}}})],a.prototype,"enabled",void 0),(0,r._)([(0,n.c)("enabled")],a.prototype,"writeEnabled",null),(0,r._)([(0,i.Cb)({type:["icon","object","line","path","fill","water","extrude","text"],readOnly:!0})],a.prototype,"type",void 0),a=(0,r._)([(0,l.j)("esri.symbols.Symbol3DLayer")],a);const p=a},78724:(t,e,o)=>{o.d(e,{Z:()=>w});var r,s=o(43697),i=o(22303),l=o(22974),n=o(62357),a=o(5600),p=o(90578),y=o(36030),h=o(52011),c=o(30556),d=o(31134),u=o(89164),b=o(61565);let m=r=class extends u.Z{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new d.Z,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(t,e,o){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.text=t),e&&(r.font=e),o&&(r.color=o),r}writeLineWidth(t,e,o,r){r&&"string"!=typeof r?r.origin:e[o]=t}castLineWidth(t){return(0,n.t_)(t)}writeLineHeight(t,e,o,r){r&&"string"!=typeof r?r.origin:e[o]=t}clone(){return new r({angle:this.angle,backgroundColor:(0,l.d9)(this.backgroundColor),borderLineColor:(0,l.d9)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,l.d9)(this.color),font:this.font&&this.font.clone(),haloColor:(0,l.d9)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor&&this.backgroundColor.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor&&this.haloColor.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],m.prototype,"backgroundColor",void 0),(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],m.prototype,"borderLineColor",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0},cast:n.t_})],m.prototype,"borderLineSize",void 0),(0,s._)([(0,a.Cb)({type:d.Z,json:{write:!0}})],m.prototype,"font",void 0),(0,s._)([(0,a.Cb)({...b.x0,json:{write:!0}})],m.prototype,"horizontalAlignment",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"kerning",void 0),(0,s._)([(0,a.Cb)({type:i.Z,json:{write:!0}})],m.prototype,"haloColor",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],m.prototype,"haloSize",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"rightToLeft",void 0),(0,s._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"rotated",void 0),(0,s._)([(0,a.Cb)({type:String,json:{write:!0}})],m.prototype,"text",void 0),(0,s._)([(0,y.J)({esriTS:"text"},{readOnly:!0})],m.prototype,"type",void 0),(0,s._)([(0,a.Cb)({...b.Nj,json:{write:!0}})],m.prototype,"verticalAlignment",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],m.prototype,"xoffset",void 0),(0,s._)([(0,a.Cb)({type:Number,cast:n.t_,json:{write:!0}})],m.prototype,"yoffset",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],m.prototype,"angle",void 0),(0,s._)([(0,a.Cb)({type:Number,json:{write:!0}})],m.prototype,"width",void 0),(0,s._)([(0,a.Cb)({type:Number})],m.prototype,"lineWidth",void 0),(0,s._)([(0,c.c)("lineWidth")],m.prototype,"writeLineWidth",null),(0,s._)([(0,p.p)("lineWidth")],m.prototype,"castLineWidth",null),(0,s._)([(0,a.Cb)(b.Ck)],m.prototype,"lineHeight",void 0),(0,s._)([(0,c.c)("lineHeight")],m.prototype,"writeLineHeight",null),m=r=(0,s._)([(0,h.j)("esri.symbols.TextSymbol")],m);const w=m},2283:(t,e,o)=>{o.d(e,{Z:()=>C});var r,s=o(43697),i=o(22974),l=o(5600),n=(o(75215),o(36030)),a=o(52011),p=o(30556),y=o(31134),h=o(95868),c=o(37308),d=o(22303),u=o(96674);let b=r=class extends u.wq{constructor(){super(...arguments),this.color=new d.Z([0,0,0,1]),this.size=0}clone(){const t={color:(0,i.d9)(this.color),size:this.size};return new r(t)}};(0,s._)([(0,l.Cb)(c.a)],b.prototype,"color",void 0),(0,s._)([(0,l.Cb)(c.y)],b.prototype,"size",void 0),b=r=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DHalo")],b);var m=o(52879),w=o(2368);o(67676),o(80442);let g=class extends((0,w.J)(u.wq)){constructor(t){super(t),this.color=null}};(0,s._)([(0,l.Cb)(c.a)],g.prototype,"color",void 0),g=(0,s._)([(0,a.j)("esri.symbols.support.Symbol3DTextBackground")],g);var f,v=o(61565);let _=f=class extends h.Z{constructor(t){super(t),this._userSize=void 0,this.halo=null,this.horizontalAlignment="center",this.lineHeight=1,this.material=null,this.background=null,this.text=null,this.type="text",this.verticalAlignment="baseline"}get font(){return this._get("font")||null}set font(t){null!=t&&null!=this._userSize&&(t.size=this._userSize),this._set("font",t)}writeFont(t,e,o,r){const s={...r,textSymbol3D:!0};e.font=t.write({},s),delete e.font.size}get size(){return null!=this._userSize?this._userSize:null!=this.font&&null!=this.font.size?this.font.size:9}set size(t){this._userSize=t,null!=this.font&&(this.font.size=this._userSize),this.notifyChange("size")}clone(){const t=new f({enabled:this.enabled,font:this.font&&(0,i.d9)(this.font),halo:this.halo&&(0,i.d9)(this.halo),horizontalAlignment:this.horizontalAlignment,lineHeight:this.lineHeight,material:null!=this.material?this.material.clone():null,text:this.text,verticalAlignment:this.verticalAlignment,background:(0,i.d9)(this.background)});return t._userSize=this._userSize,t}static fromTextSymbol(t){return new f({font:null!=t.font?t.font.clone():new y.Z,halo:S(t.haloColor,t.haloSize),horizontalAlignment:t.horizontalAlignment,lineHeight:t.lineHeight,material:t.color?new m.b({color:t.color.clone()}):null,text:t.text,verticalAlignment:t.verticalAlignment,background:t.backgroundColor?new g({color:t.backgroundColor.clone()}):null})}};function S(t,e){return t&&null!=e&&e>0?new b({color:(0,i.d9)(t),size:e}):null}(0,s._)([(0,l.Cb)({type:y.Z,json:{write:!0}})],_.prototype,"font",null),(0,s._)([(0,p.c)("font")],_.prototype,"writeFont",null),(0,s._)([(0,l.Cb)({type:b,json:{write:!0}})],_.prototype,"halo",void 0),(0,s._)([(0,l.Cb)({...v.x0,json:{default:"center",write:!0}})],_.prototype,"horizontalAlignment",void 0),(0,s._)([(0,l.Cb)({...v.Ck,json:{default:1,write:!0}})],_.prototype,"lineHeight",void 0),(0,s._)([(0,l.Cb)({type:m.b,json:{write:!0}})],_.prototype,"material",void 0),(0,s._)([(0,l.Cb)({type:g,json:{write:!0}})],_.prototype,"background",void 0),(0,s._)([(0,l.Cb)(c.y)],_.prototype,"size",null),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],_.prototype,"text",void 0),(0,s._)([(0,n.J)({Text:"text"},{readOnly:!0})],_.prototype,"type",void 0),(0,s._)([(0,l.Cb)({...v.Nj,json:{default:"baseline",write:!0}})],_.prototype,"verticalAlignment",void 0),_=f=(0,s._)([(0,a.j)("esri.symbols.TextSymbol3DLayer")],_);const C=_},44398:(t,e,o)=>{o.d(e,{Z:()=>u});var r,s=o(43697),i=o(22303),l=o(22974),n=o(5600),a=o(75215),p=o(36030),y=o(52011),h=o(95868);let c=r=class extends h.Z{constructor(t){super(t),this.color=d.clone(),this.type="water",this.waterbodySize="medium",this.waveDirection=null,this.waveStrength="moderate"}clone(){return new r({color:(0,l.d9)(this.color),waterbodySize:this.waterbodySize,waveDirection:this.waveDirection,waveStrength:this.waveStrength})}};(0,s._)([(0,n.Cb)({type:i.Z,nonNullable:!0,json:{type:[a.z8],write:(t,e,o)=>e[o]=t.toArray(i.Z.AlphaMode.UNLESS_OPAQUE),default:()=>d.clone(),defaultEquals:t=>t.toCss(!0)===d.toCss(!0)}})],c.prototype,"color",void 0),(0,s._)([(0,p.J)({Water:"water"},{readOnly:!0})],c.prototype,"type",void 0),(0,s._)([(0,n.Cb)({type:["small","medium","large"],json:{write:!0,default:"medium"}})],c.prototype,"waterbodySize",void 0),(0,s._)([(0,n.Cb)({type:Number,json:{write:!0,default:null}})],c.prototype,"waveDirection",void 0),(0,s._)([(0,n.Cb)({type:["calm","rippled","slight","moderate"],json:{write:!0,default:"moderate"}})],c.prototype,"waveStrength",void 0),c=r=(0,s._)([(0,y.j)("esri.symbols.WaterSymbol3DLayer")],c);const d=new i.Z([0,119,190]),u=c},59390:(t,e,o)=>{o.d(e,{Z:()=>b});var r,s=o(43697),i=o(92604),l=o(95330),n=o(5600),a=(o(75215),o(67676),o(80442),o(36030)),p=o(52011),y=o(65587),h=o(25929),c=o(89164),d=o(23203);let u=r=class extends c.Z{constructor(t){super(t),this.styleName=null,this.portal=null,this.styleUrl=null,this.thumbnail=null,this.name=null,this.type="web-style"}get _fetchCacheKey(){const t=null!=this.portal?this.portal:y.Z.getDefault(),e=t.user?t.user.username:null;return`${this.styleName}:${this.styleUrl}:${this.name}:${e}:${t.url}`}read(t,e){this.portal=e?.portal,super.read(t,e)}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}fetchSymbol(t){return this._fetchSymbol("webRef",t)}fetchCIMSymbol(t){return this._fetchSymbol("cimRef",t)}async _fetchSymbol(t,e){const r=null!=e?e.cache:null,s=r?this._fetchCacheKey:null;if(null!=r){const t=s&&r.get(s);if(t)return t.clone()}const n=await o.e(4499).then(o.bind(o,74499));(0,l.k_)(e);const a=n.resolveWebStyleSymbol(this,{portal:this.portal},t,e);a.catch((t=>{i.Z.getLogger(this.declaredClass).error("#fetchSymbol()","Failed to create symbol from style",t)}));const p=await a;return"webRef"===t&&"point-3d"===p.type||"cimRef"===t&&"cim"===p.type?(null!=r&&r.set(s,p.clone()),p):null}};(0,s._)([(0,n.Cb)({json:{write:!1}})],u.prototype,"color",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"styleName",void 0),(0,s._)([(0,n.Cb)({type:y.Z,json:{write:!1}})],u.prototype,"portal",void 0),(0,s._)([(0,n.Cb)({type:String,json:{read:h.r,write:h.w}})],u.prototype,"styleUrl",void 0),(0,s._)([(0,n.Cb)({type:d.p,json:{read:!1}})],u.prototype,"thumbnail",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,s._)([(0,a.J)({styleSymbolReference:"web-style"},{readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,n.Cb)()],u.prototype,"_fetchCacheKey",null),u=r=(0,s._)([(0,p.j)("esri.symbols.WebStyleSymbol")],u);const b=u},27539:(t,e,o)=>{o.d(e,{Z:()=>a});var r=o(43697),s=o(96674),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011));let n=class extends s.wq{constructor(t){super(t),this.visible=!0}clone(){}};(0,r._)([(0,i.Cb)({type:["line"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),(0,r._)([(0,i.Cb)({readOnly:!0})],n.prototype,"visible",void 0),n=(0,r._)([(0,l.j)("esri.symbols.callouts.Callout3D")],n);const a=n},69496:(t,e,o)=>{o.d(e,{Z:()=>b});var r,s=o(43697),i=o(22303),l=o(22974),n=o(62357),a=o(5600),p=(o(75215),o(36030)),y=o(52011),h=o(27539),c=o(6352),d=o(37308);let u=r=class extends h.Z{constructor(t){super(t),this.type="line",this.color=new i.Z([0,0,0,1]),this.size=(0,n.Wz)(1),this.border=null}get visible(){return this.size>0&&null!=this.color&&this.color.a>0}clone(){return new r({color:(0,l.d9)(this.color),size:this.size,border:(0,l.d9)(this.border)})}};(0,s._)([(0,p.J)({line:"line"},{readOnly:!0})],u.prototype,"type",void 0),(0,s._)([(0,a.Cb)(d.a)],u.prototype,"color",void 0),(0,s._)([(0,a.Cb)(d.y)],u.prototype,"size",void 0),(0,s._)([(0,a.Cb)({type:c.a,json:{write:!0}})],u.prototype,"border",void 0),(0,s._)([(0,a.Cb)({readOnly:!0})],u.prototype,"visible",null),u=r=(0,s._)([(0,y.j)("esri.symbols.callouts.LineCallout3D")],u);const b=u},84275:(t,e,o)=>{o.d(e,{Uy:()=>i,Y2:()=>n,gv:()=>l});var r=o(27539),s=o(69496);function i(t){if(!t)return!1;const e=t.verticalOffset;return!!e&&!(e.screenLength<=0||null!=e.maxWorldLength&&e.maxWorldLength<=0)}function l(t){if(!t)return!1;if(!t.supportsCallout||!t.supportsCallout())return!1;const e=t.callout;return!!e&&!!e.visible&&!!i(t)}const n={types:{key:"type",base:r.Z,typeMap:{line:s.Z}},json:{write:!0}}},56332:(t,e,o)=>{o.d(e,{Z:()=>f});var r=o(43697),s=o(22303),i=o(96674),l=o(22974),n=o(62357),a=o(5600),p=(o(75215),o(52011)),y=o(37308);let h=class extends i.wq{constructor(t){super(t),this.color=new s.Z([0,0,0,1]),this.extensionLength=0,this.size=(0,n.Wz)(1)}clone(){}cloneProperties(){return{color:(0,l.d9)(this.color),size:this.size,extensionLength:this.extensionLength}}};(0,r._)([(0,a.Cb)({type:["solid","sketch"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],h.prototype,"type",void 0),(0,r._)([(0,a.Cb)(y.a)],h.prototype,"color",void 0),(0,r._)([(0,a.Cb)({...y.y,json:{write:{overridePolicy:t=>({enabled:!!t})}}})],h.prototype,"extensionLength",void 0),(0,r._)([(0,a.Cb)(y.y)],h.prototype,"size",void 0),h=(0,r._)([(0,p.j)("esri.symbols.edges.Edges3D")],h);const c=h;o(92604),o(67676),o(80442),o(20102);var d,u=o(36030);let b=d=class extends c{constructor(t){super(t),this.type="sketch"}clone(){return new d(this.cloneProperties())}};(0,r._)([(0,u.J)({sketch:"sketch"},{readOnly:!0})],b.prototype,"type",void 0),b=d=(0,r._)([(0,p.j)("esri.symbols.edges.SketchEdges3D")],b);const m=b;var w;let g=w=class extends c{constructor(t){super(t),this.type="solid"}clone(){return new w(this.cloneProperties())}};(0,r._)([(0,u.J)({solid:"solid"},{readOnly:!0})],g.prototype,"type",void 0),g=w=(0,r._)([(0,p.j)("esri.symbols.support.SolidEdges3D")],g);const f={types:{key:"type",base:c,typeMap:{solid:g,sketch:m}},json:{write:!0}}},32626:(t,e,o)=>{o.d(e,{Z:()=>a});var r=o(43697),s=o(96674),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011));let n=class extends s.wq{constructor(t){super(t)}clone(){}};(0,r._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.j)("esri.symbols.patterns.LinePattern3D")],n);const a=n},4618:(t,e,o)=>{o.d(e,{Z:()=>c});var r,s=o(43697),i=o(35454),l=o(5600),n=(o(75215),o(67676),o(80442),o(36030)),a=o(52011),p=o(32626);const y=(0,i.w)()({dash:"dash","dash-dot":"dash-dot","dash-dot-dot":"long-dash-dot-dot",dot:"dot","long-dash":"long-dash","long-dash-dot":"long-dash-dot",null:"none","short-dash":"short-dash","short-dash-dot":"short-dash-dot","short-dash-dot-dot":"short-dash-dot-dot","short-dot":"short-dot",solid:"solid"});let h=r=class extends p.Z{constructor(t){super(t),this.type="style",this.style="solid"}clone(){const t={style:this.style};return new r(t)}};(0,s._)([(0,l.Cb)({type:["style"]})],h.prototype,"type",void 0),(0,s._)([(0,n.J)(y),(0,l.Cb)({type:["dash","dash-dot","dot","long-dash","long-dash-dot","long-dash-dot-dot","none","short-dash","short-dash-dot","short-dash-dot-dot","short-dot","solid"]})],h.prototype,"style",void 0),h=r=(0,s._)([(0,a.j)("esri.symbols.patterns.LineStylePattern3D")],h);const c=h},41776:(t,e,o)=>{o.d(e,{Z:()=>a});var r=o(43697),s=o(96674),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011));let n=class extends s.wq{constructor(t){super(t)}clone(){}};(0,r._)([(0,i.Cb)({type:["style"],readOnly:!0,json:{read:!0,write:{ignoreOrigin:!0}}})],n.prototype,"type",void 0),n=(0,r._)([(0,l.j)("esri.symbols.patterns.Pattern3D")],n);const a=n},74721:(t,e,o)=>{o.d(e,{Z:()=>p});var r,s=o(43697),i=o(5600),l=(o(75215),o(67676),o(80442),o(52011)),n=o(41776);let a=r=class extends n.Z{constructor(t){super(t),this.type="style",this.style="solid"}clone(){const t={style:this.style};return new r(t)}};(0,s._)([(0,i.Cb)({type:["style"]})],a.prototype,"type",void 0),(0,s._)([(0,i.Cb)({type:["backward-diagonal","cross","diagonal-cross","forward-diagonal","horizontal","none","solid","vertical"],json:{read:!0,write:!0}})],a.prototype,"style",void 0),a=r=(0,s._)([(0,l.j)("esri.symbols.patterns.StylePattern3D")],a);const p=a},17495:(t,e,o)=>{o.d(e,{D:()=>a,q:()=>n});var r=o(32626),s=o(4618),i=o(41776),l=o(74721);const n={types:{key:"type",base:i.Z,typeMap:{style:l.Z}},json:{write:!0}},a={types:{key:"type",base:r.Z,typeMap:{style:s.Z}},json:{write:!0}}},71144:(t,e,o)=>{o.d(e,{Z:()=>y});var r,s=o(43697),i=o(15923),l=o(5600),n=(o(75215),o(67676),o(80442),o(52011)),a=o(65587);let p=r=class extends i.Z{constructor(t){super(t),this.name=null,this.styleUrl=null,this.styleName=null,this.portal=null}clone(){return new r({name:this.name,styleUrl:this.styleUrl,styleName:this.styleName,portal:this.portal})}};(0,s._)([(0,l.Cb)({type:String})],p.prototype,"name",void 0),(0,s._)([(0,l.Cb)({type:String})],p.prototype,"styleUrl",void 0),(0,s._)([(0,l.Cb)({type:String})],p.prototype,"styleName",void 0),(0,s._)([(0,l.Cb)({type:a.Z})],p.prototype,"portal",void 0),p=r=(0,s._)([(0,n.j)("esri.symbols.support.StyleOrigin")],p);const y=p},52879:(t,e,o)=>{o.d(e,{b:()=>p});var r,s=o(43697),i=o(96674),l=o(5600),n=(o(75215),o(67676),o(80442),o(52011)),a=o(37308);let p=r=class extends i.wq{constructor(t){super(t),this.color=null}clone(){const t={color:null!=this.color?this.color.clone():null};return new r(t)}};(0,s._)([(0,l.Cb)(a.a)],p.prototype,"color",void 0),p=r=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DMaterial")],p)},7413:(t,e,o)=>{o.d(e,{Z:()=>y});var r,s=o(43697),i=o(96674),l=o(5600),n=(o(75215),o(67676),o(80442),o(52011)),a=o(37308);let p=r=class extends i.wq{constructor(t){super(t),this.screenLength=0,this.minWorldLength=0,this.maxWorldLength=null}clone(){return new r({screenLength:this.screenLength,minWorldLength:this.minWorldLength,maxWorldLength:this.maxWorldLength})}};(0,s._)([(0,l.Cb)(a.y)],p.prototype,"screenLength",void 0),(0,s._)([(0,l.Cb)({type:Number,nonNullable:!0,json:{write:!0,default:0}})],p.prototype,"minWorldLength",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],p.prototype,"maxWorldLength",void 0),p=r=(0,s._)([(0,n.j)("esri.symbols.support.Symbol3DVerticalOffset")],p);const y=p},23203:(t,e,o)=>{o.d(e,{p:()=>a});var r,s=o(43697),i=o(15923),l=o(5600),n=(o(75215),o(67676),o(80442),o(52011));let a=r=class extends i.Z{constructor(){super(...arguments),this.url=""}clone(){return new r({url:this.url})}};(0,s._)([(0,l.Cb)({type:String})],a.prototype,"url",void 0),a=r=(0,s._)([(0,n.j)("esri.symbols.support.Thumbnail")],a)},50178:(t,e,o)=>{o.d(e,{ix:()=>s,l9:()=>i,rx:()=>l});var r=o(22303);const s=new r.Z("white"),i=(new r.Z("black"),new r.Z([255,255,255,0]));function l(t){return 0===t.r&&0===t.g&&0===t.b}},57742:(t,e,o)=>{o.d(e,{J:()=>r,k:()=>s});const r=["begin","end","begin-end"],s=["arrow","circle","square","diamond","cross","x"]},37308:(t,e,o)=>{o.d(e,{a:()=>n,y:()=>a});var r=o(22303),s=o(62357),i=o(75215),l=o(65242);const n={type:r.Z,json:{type:[i.z8],default:null,read:{source:["color","transparency"],reader:function(t,e){const o=null!=e.transparency?(0,l.b)(e.transparency):1,s=e.color;return s&&Array.isArray(s)?new r.Z([s[0]||0,s[1]||0,s[2]||0,o]):null}},write:{target:{color:{type:[i.z8]},transparency:{type:i.z8}},writer:function(t,e){e.color=t.toJSON().slice(0,3);const o=(0,l.a)(t.a);0!==o&&(e.transparency=o)}}}},a={type:Number,cast:s.t_,json:{write:!0}}},45119:(t,e,o)=>{o.d(e,{$K:()=>i,Hc:()=>y,KW:()=>h,Uz:()=>p,w2:()=>c}),o(80442);var r=o(65617),s=o(60437);function i(t,{isPrimitive:e,width:o,depth:s,height:i}){const l=e?10:1;if(null==o&&null==i&&null==s)return[l*t[0],l*t[1],l*t[2]];const n=(0,r.f)(o,s,i);let a;for(let e=0;e<3;e++){const o=n[e];if(null!=o){a=o/t[e];break}}for(let e=0;e<3;e++)null==n[e]&&(n[e]=t[e]*a);return n}const l=(0,s.al)(-.5,-.5,-.5,.5,.5,.5),n=(0,s.al)(-.5,-.5,0,.5,.5,1),a=(0,s.al)(-.5,-.5,0,.5,.5,.5);function p(t){switch(t){case"sphere":case"cube":case"diamond":return l;case"cylinder":case"cone":case"inverted-cone":return n;case"tetrahedron":return a;default:return}}const y=["butt","square","round"],h=[...y,"none"],c=["miter","bevel","round"]},61565:(t,e,o)=>{o.d(e,{Ck:()=>a,JT:()=>i,Nj:()=>y,g6:()=>l,vC:()=>n,x0:()=>p});var r=o(22021),s=o(75215);const i=["none","underline","line-through"],l=["normal","italic","oblique"],n=["normal","lighter","bold","bolder"],a={type:Number,cast:t=>{const e=(0,s.q9)(t);return 0===e?1:(0,r.uZ)(e,.1,4)},nonNullable:!0},p={type:["left","right","center"],nonNullable:!0},y={type:["baseline","top","middle","bottom"],nonNullable:!0}},94075:(t,e,o)=>{o.d(e,{Ds:()=>n,KA:()=>l});var r=o(17452),s=o(25929);function i(t,e){return function(t){return!(null==t||"service"!==t.origin&&"portal-item"!==t.origin||"feature"!==t.layer?.type&&"stream"!==t.layer?.type)}(e)&&!(0,r.YP)(t)&&e?.layer?.parsedUrl?(0,r.v_)(e.layer.parsedUrl.path,"images",t):(0,s.f)(t,e)}const l={json:{read:{source:["imageData","url"],reader:function(t,e,o){return e.imageData?(0,r._l)({mediaType:e.contentType||"image/png",isBase64:!0,data:e.imageData}):i(e.url,o)}},write:{writer(t,e,o,i){!function(t,e,o,i){if((0,r.HK)(t)){const l=(0,r.sJ)(t);if(!l)return;e.contentType=l.mediaType,e.imageData=l.data,o&&o.imageData===e.imageData&&o.url&&(0,s.w)(o.url,e,"url",i)}else(0,s.w)(t,e,"url",i)}(t,e,this.source,i)}}}},n={readOnly:!0,json:{read:{source:["imageData","url"],reader(t,e,o){const r={};return e.imageData&&(r.imageData=e.imageData),e.contentType&&(r.contentType=e.contentType),e.url&&(r.url=i(e.url,o)),r}}}}}}]);