@arcgis/core 4.25.0-next.20220918 → 4.25.0-next.20220920

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 (234) hide show
  1. package/PopupTemplate.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{b8985db9bfb7a59638ef.js → 0331d80950a92b189d18.js} +1 -1
  4. package/assets/esri/core/workers/chunks/03ba86d2fd88270a0af4.js +1 -0
  5. package/assets/esri/core/workers/chunks/{393cb7ab48468158269c.js → 053564e659222e8f0efb.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{505a79b67bbb515b5fd2.js → 0ce19b0c3a0452435992.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{d65cc4a7c84af604ccf5.js → 11206aeb37df1aa62295.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{b19ee9436a2a9551987d.js → 1455944edeba1560eb07.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{021ff024cdde143c66c7.js → 1c1f6c8915c4c28eba1d.js} +1 -1
  10. package/assets/esri/core/workers/chunks/1c65fd714f637ac1ee8c.js +1 -0
  11. package/assets/esri/core/workers/chunks/{929688a0d9d3364d7833.js → 23c62db9cebe57f7d434.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{b7560e2989d151b9dd47.js → 28a60763f7d9546c1747.js} +1 -1
  13. package/assets/esri/core/workers/chunks/2e4a53412cf5bba1dfa5.js +1 -0
  14. package/assets/esri/core/workers/chunks/43e4560d65e5ddeeef6f.js +1 -0
  15. package/assets/esri/core/workers/chunks/{e141d9ab062183ebe065.js → 4969b64dc17378d7781f.js} +30 -30
  16. package/assets/esri/core/workers/chunks/{cfaf230bddf0aae2fe97.js → 4c0e8faf55fcb0d97d18.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{b532f9aef9a9f3ec1696.js → 4fe47e334fc03531eb07.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{dc947cebe9a634b3cab1.js → 5880fa48bad79a7c93ab.js} +1 -1
  19. package/assets/esri/core/workers/chunks/58824250492b89ec24ea.js +1 -0
  20. package/assets/esri/core/workers/chunks/5d3fabe66e1bce1b30fb.js +1 -0
  21. package/assets/esri/core/workers/chunks/64a6b837f1d5d7ad7619.js +1 -0
  22. package/assets/esri/core/workers/chunks/{421241543afbc9a619ea.js → 64de93865088bbe0398f.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{1c0e1c0d8db1fa6a6565.js → 674fa5b93704ef08c9e8.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{c243d6a8955dde91e75e.js → 6a20d8740ec2a5b2c579.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{5d0f6daccc381abf7933.js → 6e73ea9c879a2f81b3a3.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{5bb7da0cd9ef5e34287d.js → 7388f47c41e3410063fb.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{db7c3145ec95fbae7c8e.js → 7a45333de9ded92619c2.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{3248c8e2a523d23b7277.js → 7af3f29a2365afebb36b.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{0d9abf3dda540ad5a174.js → 8588cbecb8e808f451fe.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{e51b2768527e1aee1379.js → 8874e69378a27d155f9d.js} +1 -1
  31. package/assets/esri/core/workers/chunks/8aa4811fe392530c6101.js +1 -0
  32. package/assets/esri/core/workers/chunks/{2be65d7a2751acca3860.js → 8b08e9883ebae3eef429.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{07b082211215c167c835.js → 8ec1d673bdd734c94253.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{4a38075c222024cf746d.js → 9eb9f53849bc76a5c613.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{a17914dcee7d7d49bf71.js → a39a51e8a8369f6489bb.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{f3a71f9c6bc5849b6862.js → b8eba8c9d5424a7ae5f2.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{54e98e4d2ccf6c365e62.js → be93b0cef85665446944.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{31ad55833cb4c6d20c52.js → c9d655675552dcf6cef7.js} +1 -1
  39. package/assets/esri/core/workers/chunks/d1be3ab7846e3a555b6c.js +1 -0
  40. package/assets/esri/core/workers/chunks/{0ef22f07d0f8beba6222.js → d5650f455ce5ba15ad10.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{2af920691b2d710b52b8.js → d816ed97386ecd1f6281.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{bd889006640e5c675a43.js → d92975e56a1290255252.js} +1 -1
  43. package/assets/esri/core/workers/chunks/e00327925ca82b63fded.js +1 -0
  44. package/assets/esri/core/workers/chunks/e20e99f8f76f5002437e.js +1 -0
  45. package/assets/esri/core/workers/chunks/e232e442b8efb4076cc4.js +1 -0
  46. package/assets/esri/core/workers/chunks/{1b85698e8b9f6bf58a46.js → ecb8a32e4a58ca587f99.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{48aa432e1bf60c68de14.js → f0c4b408a0b88adf6576.js} +1 -1
  48. package/assets/esri/themes/base/widgets/_Daylight.scss +1 -0
  49. package/assets/esri/themes/base/widgets/_Directions.scss +1 -2
  50. package/assets/esri/themes/dark/main.css +1 -1
  51. package/assets/esri/themes/light/main.css +1 -1
  52. package/assets/esri/themes/light/view.css +1 -1
  53. package/chunks/CheckerBoard.glsl.js +3 -3
  54. package/chunks/ColorMaterial.glsl.js +5 -5
  55. package/chunks/ComponentShader.glsl.js +1 -1
  56. package/chunks/DefaultMaterial.glsl.js +2 -2
  57. package/chunks/HeatmapDensity.glsl.js +4 -4
  58. package/chunks/ImageMaterial.glsl.js +1 -1
  59. package/chunks/LaserlinePath.glsl.js +1 -1
  60. package/chunks/LineMarker.glsl.js +1 -1
  61. package/chunks/MeasurementArrow.glsl.js +3 -3
  62. package/chunks/NativeLine.glsl.js +1 -1
  63. package/chunks/Path.glsl.js +3 -3
  64. package/chunks/Pattern.glsl.js +1 -1
  65. package/chunks/Precipitation.glsl.js +3 -3
  66. package/chunks/RealisticTree.glsl.js +2 -2
  67. package/chunks/RibbonLine.glsl.js +25 -25
  68. package/chunks/ShadedColorMaterial.glsl.js +1 -1
  69. package/chunks/ShadowCastAccumulate.glsl.js +1 -1
  70. package/chunks/ShadowHighlight.glsl.js +1 -1
  71. package/chunks/SlicePlaneMaterial.glsl.js +2 -2
  72. package/chunks/Terrain.glsl.js +5 -5
  73. package/chunks/WaterSurface.glsl.js +1 -1
  74. package/chunks/ar.js +1 -1
  75. package/chunks/bg_BG.js +1 -1
  76. package/chunks/bs_BA.js +1 -1
  77. package/chunks/ca_ES.js +1 -1
  78. package/chunks/cs_CZ.js +1 -1
  79. package/chunks/da_DK.js +1 -1
  80. package/chunks/de_CH.js +1 -1
  81. package/chunks/de_DE.js +1 -1
  82. package/chunks/el_GR.js +1 -1
  83. package/chunks/en_CA.js +1 -1
  84. package/chunks/en_US.js +1 -1
  85. package/chunks/es_ES.js +1 -1
  86. package/chunks/et_EE.js +1 -1
  87. package/chunks/fi_FI.js +1 -1
  88. package/chunks/fr_FR.js +1 -1
  89. package/chunks/he_IL.js +1 -1
  90. package/chunks/hr_HR.js +1 -1
  91. package/chunks/hu_HU.js +1 -1
  92. package/chunks/id_ID.js +1 -1
  93. package/chunks/index.js +1 -1
  94. package/chunks/it_IT.js +1 -1
  95. package/chunks/ja_JP.js +1 -1
  96. package/chunks/ko_KR.js +1 -1
  97. package/chunks/lt_LT.js +1 -1
  98. package/chunks/lv_LV.js +1 -1
  99. package/chunks/mat4.js +1 -1
  100. package/chunks/nb_NO.js +1 -1
  101. package/chunks/nl_NL.js +1 -1
  102. package/chunks/pl_PL.js +1 -1
  103. package/chunks/pt_BR.js +1 -1
  104. package/chunks/pt_PT.js +1 -1
  105. package/chunks/ro_RO.js +1 -1
  106. package/chunks/ru_RU.js +1 -1
  107. package/chunks/sk_SK.js +1 -1
  108. package/chunks/sl_SL.js +1 -1
  109. package/chunks/sr_RS.js +1 -1
  110. package/chunks/sv_SE.js +1 -1
  111. package/chunks/th_TH.js +1 -1
  112. package/chunks/tr_TR.js +1 -1
  113. package/chunks/uk_UA.js +1 -1
  114. package/chunks/vi_VN.js +1 -1
  115. package/chunks/zh_Hans.js +1 -1
  116. package/chunks/zh_Hant.js +1 -1
  117. package/core/libs/gl-matrix-2/math/mat4.js +1 -1
  118. package/core/sql/WhereClause.js +1 -1
  119. package/core/workers/workerFactory.js +1 -1
  120. package/geometry/support/MeshTransform.js +1 -1
  121. package/geometry/support/meshUtils/georeference.js +1 -1
  122. package/layers/FeatureLayer.js +1 -1
  123. package/layers/VoxelWasmPerSceneView.js +1 -1
  124. package/layers/mixins/OperationalLayer.js +1 -1
  125. package/layers/save/featureLayerUtils.js +1 -1
  126. package/layers/support/ExportImageServiceParameters.js +1 -1
  127. package/layers/support/FieldsIndex.js +1 -1
  128. package/layers/support/fetchService.js +1 -1
  129. package/layers/support/fieldUtils.js +1 -1
  130. package/layers/support/versionUtils.js +1 -1
  131. package/package.json +1 -1
  132. package/support/popupUtils.js +1 -1
  133. package/support/revision.js +1 -1
  134. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  135. package/views/2d/layers/LayerView2D.js +1 -1
  136. package/views/2d/layers/imagery/ImageryView2D.js +1 -1
  137. package/views/2d/layers/support/ExportStrategy.js +1 -1
  138. package/views/3d/analysis/Dimensioning/DimensioningTool.js +1 -1
  139. package/views/3d/analysis/Dimensioning/LengthDimensionComputation.js +1 -1
  140. package/views/3d/analysis/Dimensioning/LengthDimensionSubTool.js +1 -1
  141. package/views/3d/analysis/Dimensioning/settings.js +1 -1
  142. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  143. package/views/3d/analysis/Slice/SliceVisualization.js +1 -1
  144. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  145. package/views/3d/environment/CloudsComposition.js +1 -1
  146. package/views/3d/environment/CloudsCompositionParameters.js +1 -1
  147. package/views/3d/environment/CloudsGenerator.js +1 -1
  148. package/views/3d/environment/CloudsPresets.js +1 -1
  149. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  150. package/views/3d/environment/Fog.js +1 -1
  151. package/views/3d/environment/Precipitation.js +1 -1
  152. package/views/3d/environment/SceneViewEnvironmentManager.js +1 -1
  153. package/views/3d/environment/SimpleAtmosphere.js +1 -1
  154. package/views/3d/environment/Stars.js +1 -1
  155. package/views/3d/environment/weatherUtils.js +1 -1
  156. package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
  157. package/views/3d/externalRenderers/RenderContext.js +1 -1
  158. package/views/3d/glTF/internal/Resource.js +1 -1
  159. package/views/3d/interactive/editingTools/manipulations/MoveXYAxisManipulation.js +1 -1
  160. package/views/3d/interactive/editingTools/manipulations/MoveXYDiscManipulation.js +1 -1
  161. package/views/3d/interactive/editingTools/manipulations/MoveZManipulation.js +1 -1
  162. package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
  163. package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
  164. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  165. package/views/3d/layers/ImageryLayerView3D.js +1 -1
  166. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  167. package/views/3d/layers/graphics/elevationAlignPointsInFeatures.js +1 -1
  168. package/views/3d/layers/graphics/graphicUtils.js +1 -1
  169. package/views/3d/layers/i3s/I3SElevationProvider.js +1 -1
  170. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  171. package/views/3d/layers/support/I3STreeDebugger.js +1 -1
  172. package/views/3d/state/controllers/GamepadKeyboardController.js +1 -1
  173. package/views/3d/state/utils/navigationUtils.js +1 -1
  174. package/views/3d/support/sunUtils.js +1 -1
  175. package/views/3d/terrain/OverlayManager.js +1 -1
  176. package/views/3d/terrain/OverlayRenderer.js +1 -1
  177. package/views/3d/terrain/TerrainRenderer.js +1 -1
  178. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  179. package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +2 -2
  180. package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +1 -1
  181. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +6 -6
  182. package/views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js +2 -2
  183. package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +13 -13
  184. package/views/3d/webgl-engine/core/shaderLibrary/shading/MainLighting.glsl.js +1 -1
  185. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +9 -9
  186. package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
  187. package/views/3d/webgl-engine/lib/AnimationTimer.js +1 -1
  188. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  189. package/views/3d/webgl-engine/lib/Camera.js +1 -1
  190. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  191. package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
  192. package/views/3d/webgl-engine/lib/Update.js +5 -0
  193. package/views/3d/webgl-engine/lib/intersectorUtilsConversions.js +1 -1
  194. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  195. package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
  196. package/views/3d/webgl-engine/materials/WaterGLMaterial.js +1 -1
  197. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  198. package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
  199. package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
  200. package/views/SceneView.js +1 -1
  201. package/views/interactive/snapping/LineSnapper.js +1 -1
  202. package/views/interactive/snapping/ParallelLineSnapper.js +1 -1
  203. package/views/interactive/snapping/RightAngleSnapper.js +1 -1
  204. package/views/interactive/snapping/RightAngleTriangleSnapper.js +1 -1
  205. package/views/interactive/snapping/SnappingAlgorithm.js +1 -1
  206. package/views/interactive/snapping/SnappingManager.js +1 -1
  207. package/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js +1 -1
  208. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  209. package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
  210. package/views/interactive/snapping/featureSources/SnappingCandidateElevationAligner.js +1 -1
  211. package/views/interactive/snapping/featureSources/SnappingResultElevationFilter.js +1 -1
  212. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  213. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
  214. package/views/interactive/snapping/featureSources/snappingResultElevationUtils.js +5 -0
  215. package/views/interactive/snapping/snappingUtils.js +1 -1
  216. package/views/support/Scheduler.js +1 -1
  217. package/widgets/Directions/support/resources.js +1 -1
  218. package/widgets/Directions.js +1 -1
  219. package/widgets/Legend/LegendViewModel.js +1 -1
  220. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  221. package/widgets/Weather/LabeledSlider.js +1 -1
  222. package/widgets/Weather.js +1 -1
  223. package/assets/esri/core/workers/chunks/01a6005569d0820992a0.js +0 -1
  224. package/assets/esri/core/workers/chunks/18ed245b56089d35c558.js +0 -1
  225. package/assets/esri/core/workers/chunks/1a8d1ca45e4b250083e2.js +0 -1
  226. package/assets/esri/core/workers/chunks/2a22ce18486ee8160d8f.js +0 -1
  227. package/assets/esri/core/workers/chunks/62377931ab90648e02da.js +0 -1
  228. package/assets/esri/core/workers/chunks/72cb60f688aa1f7348a0.js +0 -1
  229. package/assets/esri/core/workers/chunks/8b8a813f5e6d6551a816.js +0 -1
  230. package/assets/esri/core/workers/chunks/bf84189bd9bf3de81df9.js +0 -1
  231. package/assets/esri/core/workers/chunks/cb020d3d48ada0da4c6f.js +0 -1
  232. package/assets/esri/core/workers/chunks/cc7686c338b28ffde40a.js +0 -1
  233. package/assets/esri/core/workers/chunks/e208d9c34f5db4481441.js +0 -1
  234. package/assets/esri/core/workers/chunks/f4fd5851cb74de9e060b.js +0 -1
package/PopupTemplate.js CHANGED
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.25/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"./chunks/tslib.es6.js";import{ClonableMixin as e}from"./core/Clonable.js";import o from"./core/Collection.js";import{JSONSupport as s}from"./core/JSONSupport.js";import{clone as r}from"./core/lang.js";import i from"./core/Logger.js";import{isPromiseLike as n}from"./core/promiseUtils.js";import{property as p}from"./core/accessorSupport/decorators/property.js";import{cast as l}from"./core/accessorSupport/decorators/cast.js";import{reader as a}from"./core/accessorSupport/decorators/reader.js";import{subclass as d}from"./core/accessorSupport/decorators/subclass.js";import{writer as c}from"./core/accessorSupport/decorators/writer.js";import{ensureOneOfType as f}from"./core/accessorSupport/ensureType.js";import{collectFields as m,collectArcadeFieldNames as u}from"./layers/support/fieldUtils.js";import{persistableTypes as h}from"./popup/content.js";import y from"./popup/ExpressionInfo.js";import I from"./popup/FieldInfo.js";import F from"./popup/LayerOptions.js";import _ from"./popup/RelatedRecordsInfo.js";import{types as x}from"./popup/content/support/mediaInfoTypes.js";import g from"./support/actions/ActionBase.js";import w from"./support/actions/ActionButton.js";import A from"./support/actions/ActionToggle.js";import C from"./popup/content/MediaContent.js";import N from"./popup/content/TextContent.js";import j from"./popup/content/AttachmentsContent.js";import E from"./popup/content/FieldsContent.js";import O from"./popup/content/ExpressionContent.js";import R from"./popup/content/RelationshipContent.js";import S from"./popup/content/Content.js";import v from"./popup/content/CustomContent.js";const T="esri.PopupTemplate",b=i.getLogger(T),J="relationships/",L="expression/",B=o.ofType({key:"type",defaultKeyValue:"button",base:g,typeMap:{button:w,toggle:A}}),M={base:S,key:"type",typeMap:{media:C,custom:v,text:N,attachments:j,fields:E,expression:O,relationship:R}},P=["attachments","fields","media","text","expression","relationship"];let $=class extends(e(s)){constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map((t=>f(M,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||n(t)?t:(b.error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e):this._readPopupInfo(e)}writeContent(t,e,o,s){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>P.includes(t.type))).map((t=>t&&t.toJSON(s))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))):e.description=t}writeFieldInfos(t,e,o,s){const{content:r}=this,i=Array.isArray(r)?r:null;if(t){const o=i?i.filter((t=>"fields"===t.type)):[],r=o.length&&o.every((t=>t.fieldInfos?.length));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(s);return r&&(e.visible=!1),e}))}if(i)for(const n of i)"fields"===n.type&&this._writeFieldsContent(n,e)}writeLayerOptions(t,e,o,s){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(s)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e){const o=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,[...o,...this._getContentExpressionInfos(this.content,o)]),m(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const o=r(t.fieldInfos);Array.isArray(e.fieldInfos)?o.forEach((t=>{const o=e.fieldInfos.find((e=>e.fieldName.toLowerCase()===t.fieldName.toLowerCase()));o?o.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=o}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const o=t.orderByFields?.map((e=>this._toFieldOrderJSON(e,t.relationshipId)))||[],s=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...s?.length&&{orderByFields:s}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=r(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements({description:t,mediaInfos:e,popupElements:o}){const s={description:!1,mediaInfos:!1};return o.map((o=>"media"===o.type?(o.mediaInfos||!e||s.mediaInfos||(o.mediaInfos=e,s.mediaInfos=!0),C.fromJSON(o)):"text"===o.type?(o.text||!t||s.description||(o.text=t,s.description=!0),N.fromJSON(o)):"attachments"===o.type?j.fromJSON(o):"fields"===o.type?E.fromJSON(o):"expression"===o.type?O.fromJSON(o):"relationship"===o.type?R.fromJSON(o):void 0)).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:o}=t;if(!e.startsWith(J))return null;const s=e.replace(J,"").split("/");if(2!==s.length)return null;const r=parseInt(s[0],10),i=s[1];return"number"==typeof r&&i?R.fromJSON({relationshipId:r,orderByFields:[{field:i,order:o}]}):null}_toFieldOrderJSON(t,e){const{order:o,field:s}=t;return{field:`${J}${e}/${s}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:s={showRelatedRecords:!1}}){const r=[];t?r.push(new N({text:t})):r.push(new E),Array.isArray(e)&&e.length&&r.push(C.fromJSON({mediaInfos:e})),o&&r.push(j.fromJSON({displayType:"auto"}));const{showRelatedRecords:i,orderByFields:n}=s;return i&&n?.length&&n.forEach((t=>{const e=this._toRelationshipContent(t);e&&r.push(e)})),r.length?r:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos||this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):[]}_getMediaInfoFields(t){const{caption:e,title:o,value:s}=t,r=s||{},{fields:i=[],normalizeField:n,tooltipField:p,sourceURL:l,linkURL:a}=r,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...i];return n&&d.push(n),p&&d.push(p),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,o){o&&await Promise.all(o.map((o=>u(t,e,o.expression))))}_getFieldInfoFields(t){return t?t.filter((t=>void 0===t.visible||!!t.visible)).map((t=>t.fieldName)).filter((t=>!t.startsWith(J)&&!t.startsWith(L))):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:o,type:s}=t,r="button"===s||"toggle"===s?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){if(!t||"string"!=typeof t)return[];const e=/{[^}]*}/g,o=t.match(e);if(!o)return[];const s=/\{(\w+):.+\}/,r=o.filter((t=>!(0===t.indexOf(`{${J}`)||0===t.indexOf(`{${L}`)))).map((t=>t.replace(s,"{$1}")));return r?r.map((t=>t.slice(1,-1))):[]}};t([p({type:B})],$.prototype,"actions",void 0),t([p()],$.prototype,"content",void 0),t([l("content")],$.prototype,"castContent",null),t([a("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],$.prototype,"readContent",null),t([c("content",{popupElements:{type:o.ofType(h)},showAttachments:{type:Boolean},mediaInfos:{type:o.ofType(x)},description:{type:String},relatedRecordsInfo:{type:_}})],$.prototype,"writeContent",null),t([p({type:[y],json:{write:!0}})],$.prototype,"expressionInfos",void 0),t([p({type:[I]})],$.prototype,"fieldInfos",void 0),t([c("fieldInfos")],$.prototype,"writeFieldInfos",null),t([p({type:F})],$.prototype,"layerOptions",void 0),t([c("layerOptions")],$.prototype,"writeLayerOptions",null),t([p({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],$.prototype,"lastEditInfoEnabled",void 0),t([p()],$.prototype,"outFields",void 0),t([p()],$.prototype,"overwriteActions",void 0),t([p()],$.prototype,"returnGeometry",void 0),t([p({json:{type:String}})],$.prototype,"title",void 0),t([c("title")],$.prototype,"writeTitle",null),$=t([d("esri.PopupTemplate")],$);const k=$;export{k as default};
5
+ import{_ as t}from"./chunks/tslib.es6.js";import{ClonableMixin as e}from"./core/Clonable.js";import o from"./core/Collection.js";import{JSONSupport as s}from"./core/JSONSupport.js";import{clone as r}from"./core/lang.js";import i from"./core/Logger.js";import{isPromiseLike as n}from"./core/promiseUtils.js";import{property as p}from"./core/accessorSupport/decorators/property.js";import{cast as l}from"./core/accessorSupport/decorators/cast.js";import{reader as a}from"./core/accessorSupport/decorators/reader.js";import{subclass as d}from"./core/accessorSupport/decorators/subclass.js";import{writer as c}from"./core/accessorSupport/decorators/writer.js";import{ensureOneOfType as f}from"./core/accessorSupport/ensureType.js";import{collectFields as m,collectArcadeFieldNames as u}from"./layers/support/fieldUtils.js";import{persistableTypes as h}from"./popup/content.js";import y from"./popup/ExpressionInfo.js";import I from"./popup/FieldInfo.js";import F from"./popup/LayerOptions.js";import _ from"./popup/RelatedRecordsInfo.js";import{types as x}from"./popup/content/support/mediaInfoTypes.js";import g from"./support/actions/ActionBase.js";import w from"./support/actions/ActionButton.js";import A from"./support/actions/ActionToggle.js";import C from"./popup/content/MediaContent.js";import N from"./popup/content/TextContent.js";import j from"./popup/content/AttachmentsContent.js";import E from"./popup/content/FieldsContent.js";import O from"./popup/content/ExpressionContent.js";import R from"./popup/content/RelationshipContent.js";import S from"./popup/content/Content.js";import v from"./popup/content/CustomContent.js";const T="esri.PopupTemplate",b=i.getLogger(T),J="relationships/",L="expression/",B=o.ofType({key:"type",defaultKeyValue:"button",base:g,typeMap:{button:w,toggle:A}}),M={base:S,key:"type",typeMap:{media:C,custom:v,text:N,attachments:j,fields:E,expression:O,relationship:R}},P=["attachments","fields","media","text","expression","relationship"];let $=class extends(e(s)){constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map((t=>f(M,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||n(t)?t:(b.error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeContent(t,e,o,s){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>P.includes(t.type))).map((t=>t&&t.toJSON(s))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))):e.description=t}writeFieldInfos(t,e,o,s){const{content:r}=this,i=Array.isArray(r)?r:null;if(t){const o=i?i.filter((t=>"fields"===t.type)):[],r=o.length&&o.every((t=>t.fieldInfos?.length));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(s);return r&&(e.visible=!1),e}))}if(i)for(const n of i)"fields"===n.type&&this._writeFieldsContent(n,e)}writeLayerOptions(t,e,o,s){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(s)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e){const o=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,[...o,...this._getContentExpressionInfos(this.content,o)]),m(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const o=r(t.fieldInfos);Array.isArray(e.fieldInfos)?o.forEach((t=>{const o=e.fieldInfos.find((e=>e.fieldName.toLowerCase()===t.fieldName.toLowerCase()));o?o.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=o}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const o=t.orderByFields?.map((e=>this._toFieldOrderJSON(e,t.relationshipId)))||[],s=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...s?.length&&{orderByFields:s}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=r(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements(t,e,o){const s={description:!1,mediaInfos:!1};return o.map((o=>"media"===o.type?(o.mediaInfos||!e||s.mediaInfos||(o.mediaInfos=e,s.mediaInfos=!0),C.fromJSON(o)):"text"===o.type?(o.text||!t||s.description||(o.text=t,s.description=!0),N.fromJSON(o)):"attachments"===o.type?j.fromJSON(o):"fields"===o.type?E.fromJSON(o):"expression"===o.type?O.fromJSON(o):"relationship"===o.type?R.fromJSON(o):void 0)).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:o}=t;if(!e?.startsWith(J))return null;const s=e.replace(J,"").split("/");if(2!==s.length)return null;const r=parseInt(s[0],10),i=s[1];return"number"==typeof r&&i?R.fromJSON({relationshipId:r,orderByFields:[{field:i,order:o}]}):null}_toFieldOrderJSON(t,e){const{order:o,field:s}=t;return{field:`${J}${e}/${s}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:s={showRelatedRecords:!1}}){const r=[];t?r.push(new N({text:t})):r.push(new E),Array.isArray(e)&&e.length&&r.push(C.fromJSON({mediaInfos:e})),o&&r.push(j.fromJSON({displayType:"auto"}));const{showRelatedRecords:i,orderByFields:n}=s;return i&&n?.length&&n.forEach((t=>{const e=this._toRelationshipContent(t);e&&r.push(e)})),r.length?r:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):[]}_getMediaInfoFields(t){const{caption:e,title:o,value:s}=t,r=s||{},{fields:i,normalizeField:n,tooltipField:p,sourceURL:l,linkURL:a}=r,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...i??[]];return n&&d.push(n),p&&d.push(p),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,o){o&&await Promise.all(o.map((o=>u(t,e,o.expression))))}_getFieldInfoFields(t){return t?t.filter((t=>void 0===t.visible||!!t.visible)).map((t=>t.fieldName)).filter((t=>!t.startsWith(J)&&!t.startsWith(L))):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:o,type:s}=t,r="button"===s||"toggle"===s?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){if(!t||"string"!=typeof t)return[];const e=/{[^}]*}/g,o=t.match(e);if(!o)return[];const s=/\{(\w+):.+\}/,r=o.filter((t=>!(0===t.indexOf(`{${J}`)||0===t.indexOf(`{${L}`)))).map((t=>t.replace(s,"{$1}")));return r?r.map((t=>t.slice(1,-1))):[]}};t([p({type:B})],$.prototype,"actions",void 0),t([p()],$.prototype,"content",void 0),t([l("content")],$.prototype,"castContent",null),t([a("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],$.prototype,"readContent",null),t([c("content",{popupElements:{type:o.ofType(h)},showAttachments:{type:Boolean},mediaInfos:{type:o.ofType(x)},description:{type:String},relatedRecordsInfo:{type:_}})],$.prototype,"writeContent",null),t([p({type:[y],json:{write:!0}})],$.prototype,"expressionInfos",void 0),t([p({type:[I]})],$.prototype,"fieldInfos",void 0),t([c("fieldInfos")],$.prototype,"writeFieldInfos",null),t([p({type:F})],$.prototype,"layerOptions",void 0),t([c("layerOptions")],$.prototype,"writeLayerOptions",null),t([p({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],$.prototype,"lastEditInfoEnabled",void 0),t([p()],$.prototype,"outFields",void 0),t([p()],$.prototype,"overwriteActions",void 0),t([p()],$.prototype,"returnGeometry",void 0),t([p({json:{type:String}})],$.prototype,"title",void 0),t([c("title")],$.prototype,"writeTitle",null),$=t([d("esri.PopupTemplate")],$);const k=$;export{k as default};
@@ -1 +1 @@
1
- var RemoteClient;(()=>{var e={88277:(e,t,n)=>{n.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(80442);var r=n(78286),o=n(17202);const s={apiKey:void 0,applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,r.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){const e="4.25.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(s,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}})},20102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(22974),o=n(92604),s=n(58896);class i extends s.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof i))return new i(e,t,n)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,r.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(68773),o=(n(80442),n(70586)),s=n(19153);const i={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...n){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(r,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of r.Z.log.interceptors)if(t(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,t){let n=this;for(;(0,o.pC)(n);){const t=n[e];if((0,o.pC)(t))return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...n){console[e](`[${t}]`,...n)}_matchLevel(e){const t=r.Z.log.level?r.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this instanceof o&&(this.message=(t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,n)=>{if(""===n)return"$";const o=(0,r.hS)(n,t)??"";if(void 0===o)throw new Error(`could not find key "${n}" in template`);return o.toString()}))}(t,n))??"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*r._m}getInt(){return this._seed=(r._a*this._seed+r._c)%r._m,this._seed}getFloat(){return this.getInt()/(r._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const n=t-e;return e+this.getInt()/r._m*n}}r._m=2147483647,r._a=48271,r._c=0},67676:(e,t,n)=>{"use strict";n.d(t,{FY:()=>m,Od:()=>y,SO:()=>d,Vx:()=>i,a9:()=>u,cq:()=>p,e$:()=>b,e5:()=>a,fS:()=>s,w6:()=>f,zG:()=>c});var r=n(70586),o=n(77734);function s(e,t,n){if((0,r.Wi)(e)&&(0,r.Wi)(t))return!0;if((0,r.Wi)(e)||(0,r.Wi)(t)||e.length!==t.length)return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function i(e,t){let n=e.length!==t.length;e.length=t.length;for(let r=0;r<t.length;++r)e[r]!==t[r]&&(e[r]=t[r],n=!0);return n}function a(e,t,n){let r,o;return n?(r=t.filter((t=>!e.some((e=>n(e,t))))),o=e.filter((e=>!t.some((t=>n(t,e)))))):(r=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:r,removed:o}}function c(e){return e&&"number"==typeof e.length}const l=!!Array.prototype.fill;function u(e,t){if(l)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function f(e,t){void 0===t&&(t=e,e=0);const n=new Array(t-e);for(let r=e;r<t;r++)n[r-e]=r;return n}class d{constructor(){this.last=0}}const h=new d;function p(e,t,n,r){r=r||h;const o=Math.max(0,r.last-10);for(let s=o;s<n;++s)if(e[s]===t)return r.last=s,s;const s=Math.min(o,n);for(let n=0;n<s;++n)if(e[n]===t)return r.last=n,n;return-1}function b(e,t,n,r){const o=n??e.length,s=p(e,t,o,r);if(-1!==s)return e[s]=e[o-1],null==n&&e.pop(),t}const g=new Set;function m(e,t,n=e.length,r=t.length,o,s){if(0===r||0===n)return n;g.clear();for(let e=0;e<r;++e)g.add(t[e]);o=o||h;const i=Math.max(0,o.last-10);for(let t=i;t<n;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;for(let t=0;t<i;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;return g.clear(),n}function y(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},60235:(e,t,n)=>{"use strict";n.d(t,{Mr:()=>i,x9:()=>a});var r=n(80442);const o=new Set;function s(e,t,n=!1){n&&o.has(t)||(n&&o.add(t),e.warn(`🛑 DEPRECATED - ${t}`))}function i(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{moduleName:r}=n;a(e,"Property: "+(r?r+"::":"")+t,n)}}function a(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{replacement:r,version:o,see:i,warnOnce:a}=n;let c=t;r&&(c+=`\n\t🛠️ Replacement: ${r}`),o&&(c+=`\n\t⚙️ Version: ${o}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),s(e,c,a)}}},91460:(e,t,n)=>{"use strict";function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function s(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const s=o(e,t,(t=>{s.remove(),n.call(e,t)}));return{remove(){s.remove()}}}n.d(t,{IH:()=>s,on:()=>o,vT:()=>r})},80442:(e,t,n)=>{"use strict";let r;function o(e){return"function"==typeof r[e]?r[e]=r[e](globalThis):r[e]}n.d(t,{Z:()=>o}),r=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,n,s)=>((s||void 0===r[e])&&(r[e]=t),n&&o(e)),o.cache=r,o.add("esri-deprecation-warnings",!0),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",n.includes("Konqueror")?r:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!n.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(n.split("Version/")[1])),o.add("mac",n.includes("Macintosh")),!o("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),n=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",r=parseFloat(n.replace(/_/,".").replace(/_/g,""));o.add(e,r),o.add("ios",r)}o.add("trident",parseFloat(n.split("Trident/")[1])||void 0),o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("trident")||o("edge")||o.add("mozilla",r),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&o.add("esri-mobile",t),n&&o.add("esri-iPhone",n),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-canvas-svg-support",!o("trident")),o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),o.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),o.add("esri-atomics","Atomics"in globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-point-coverage",.1),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-enabled",!1),o.add("mapimagelayer-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!0),o.add("heatmap-force-raster",!1),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),o.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{o.add("esri-image-decode",!0,!0,!0)})).catch((()=>{o.add("esri-image-decode",!1,!0,!0)}))}return!1})),o.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,n)=>{"use strict";n.d(t,{Vo:()=>c,d9:()=>a,fS:()=>p,y7:()=>b,yd:()=>i});var r=n(67676),o=(n(80442),n(70586)),s=n(1533);function i(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&i(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=h(e);if((0,o.pC)(t))return t;if(l(e))return e.clone();if(u(e))return e.map(a);if(f(e))return e.clone();const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=a(e[t]);return n}function c(e){if(!e||"object"!=typeof e||"function"==typeof e||e instanceof HTMLElement)return e;const t=h(e);if((0,o.pC)(t))return t;if(u(e)){let t=!0;const n=e.map((e=>{const n=c(e);return null!=e&&null==n&&(t=!1),n}));return t?n:null}if(l(e))return e.clone();if(!f(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const n of Object.getOwnPropertyNames(e)){const r=e[n],o=c(r);if(null!=r&&null==o)return null;t[n]=o}return t}return null}function l(e){return"function"==typeof e.clone}function u(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){if((0,s.W0)(e)||(0,s.lq)(e)||(0,s.KZ)(e)||(0,s.z3)(e)||(0,s.Uc)(e)||(0,s.Hx)(e)||(0,s.ZY)(e)||(0,s.xZ)(e)||(0,s.fS)(e))return(0,s.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[n,r]of e)t.set(n,a(r));return t}if(e instanceof Set){const t=new Set;for(const n of e)t.add(a(n));return t}return null}function p(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}function b(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,r.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e){const e=t.get(n);if(e!==r||void 0===e&&!t.has(n))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const n=Object.keys(e);if(null===t||Object.keys(t).length!==n.length)return!1;for(const r of n)if(e[r]!==t[r]||!Object.prototype.hasOwnProperty.call(t,r))return!1;return!0}(e,t))}},70586:(e,t,n)=>{"use strict";function r(e){return null!=e}function o(e){return null==e}function s(e,t){return r(e)?t(e):null}function i(e){return e}function a(e,t){return c(e,t),e}function c(e,t){if(o(e))throw new Error(t??"value is None")}function l(e,t){return r(e)?e:"function"==typeof t?t():t}function u(e,t){return r(e)?e:t}function f(e){return r(e)&&e.destroy(),null}function d(e){return r(e)&&e.dispose(),null}function h(e){return r(e)&&e.remove(),null}function p(e){return r(e)&&e.abort(),null}function b(e){return r(e)&&e.release(),null}function g(e,t,n){return r(e)&&r(t)?r(n)?n(e,t):e.equals(t):e===t}function m(e){return null}function y(e,t){const n=new Array;for(const r of e)n.push(v(r,null,t));return n}function w(e,t){for(const n of e)s(n,t)}function v(e,t,n){return r(e)?n(e):t}function _(e){return e.filter((e=>r(e)))}function O(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function k(e){return e}n.d(t,{Fd:()=>y,IM:()=>p,JR:()=>w,M2:()=>d,O3:()=>c,Pt:()=>l,R2:()=>v,RY:()=>b,SC:()=>f,U2:()=>O,Wg:()=>i,Wi:()=>o,_W:()=>g,hw:()=>h,j0:()=>k,lV:()=>_,pC:()=>r,s3:()=>a,wN:()=>m,yl:()=>u,yw:()=>s})},78286:(e,t,n)=>{"use strict";n.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var r=n(22974);function o(e,t,n=!1){return c(e,t,n)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,n){const r=e.split("."),o=r.pop(),s=a(r,!0,n);s&&o&&(s[o]=t)}function a(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function c(e,t,n){return t?Object.keys(t).reduce(((e,o)=>{let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,r.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),n?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,n)=>{"use strict";n.d(t,{e4:()=>O,zE:()=>c,dD:()=>w,hh:()=>C,Ds:()=>S,as:()=>v,WW:()=>_,R8:()=>y,D_:()=>m,Hc:()=>f,y8:()=>k,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>j,gx:()=>P,Hl:()=>g});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o;n(60235);var s=n(20102),i=n(91460),a=(n(92604),n(70586));function c(e="Aborted"){return new s.Z("AbortError",e)}function l(e,t="Aborted"){if(f(e))throw c(t)}function u(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function f(e){const t=u(e);return(0,a.pC)(t)&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const n=u(e);if(!(0,a.Wi)(n)){if(!n.aborted)return(0,i.IH)(n,"abort",(()=>t()));t()}}function b(e,t){const n=u(e);if(!(0,a.Wi)(n))return l(n),(0,i.IH)(n,"abort",(()=>t(c())))}function g(e,t){const n=u(t);return(0,a.Wi)(n)?e:new Promise(((n,r)=>{let o=p(t,(()=>r(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(n,r)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}function w(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),n=t.map((t=>e[t])),r=await v(n),o={};return t.map(((e,t)=>o[e]=r[t])),o}const t=e;return new Promise((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}async function _(e){return(await v(e)).filter((e=>!!e.value)).map((e=>e.value))}function O(e,t,n){const r=new AbortController;return p(n,(()=>r.abort())),new Promise(((n,o)=>{let s=setTimeout((()=>{s=0,n(t)}),e);p(r,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function k(e){return e&&"function"==typeof e.then}function P(e){return k(e)?e:Promise.resolve(e)}function S(e,t=-1){let n,r,o,s,i=null;const l=(...u)=>{if(n){r=u,s&&s.reject(c()),s=w();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||w(),s=null,t>0){const r=new AbortController;n=P(e(...u,r.signal));const o=n;O(t).then((()=>{n===o&&(s?r.abort():i=r)}))}else n=1,n=P(e(...u));const f=()=>{const e=r;r=o=n=i=null,null!=e&&l(...e)},d=n,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function C(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}async function j(e){await Promise.resolve(),l(e)}},19153:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var r=n(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replace(o,"object"==typeof t?(e,n)=>s((0,r.hS)(n,t)):(e,n)=>s(t(n)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{"use strict";function r(e,t){if(e.forEach)e.forEach(t);else for(let n=0;n<e.length;n++)t(e[n],n,e)}function o(e,t,n){if(e.slice)return e.slice(t,n);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===n?n=e.length:(n<0&&(n+=e.length),n=Math.min(e.length,Math.max(0,n)));const r=Math.max(0,n-t),o=new(0,e.constructor)(r);for(let n=0;n<r;n++)o[n]=e[t+n];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}n.d(t,{Ed:()=>r,Hx:()=>f,KZ:()=>c,Uc:()=>u,W0:()=>i,ZY:()=>d,eP:()=>s,fS:()=>p,lq:()=>a,tP:()=>o,xZ:()=>h,z3:()=>l})},17452:(e,t,n)=>{"use strict";n.d(t,{$U:()=>re,AH:()=>V,B7:()=>j,D6:()=>U,Fv:()=>Z,HK:()=>K,Hu:()=>de,Ie:()=>ue,L:()=>k,Ml:()=>be,P$:()=>B,PF:()=>F,Qj:()=>le,R9:()=>y,TI:()=>O,YP:()=>H,Yd:()=>ae,ZN:()=>he,_l:()=>X,b7:()=>A,ed:()=>N,fZ:()=>ge,fl:()=>pe,hF:()=>q,hO:()=>oe,io:()=>ee,jc:()=>z,kl:()=>L,mN:()=>P,oC:()=>te,oh:()=>W,qg:()=>E,rS:()=>Q,sJ:()=>Y,tD:()=>$,tm:()=>I,u0:()=>S,v_:()=>D,vt:()=>ce});var r=n(68773),o=n(20102),s=n(92604),i=n(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=r.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const w={};let v=new y(r.Z.applicationUrl);let _=function(){const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`}();const O=()=>v,k=()=>_;function P(e){const t={path:null,query:null},n=new y(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=S(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function S(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=n[r];"string"==typeof s&&(s=n[r]=[s]),Array.isArray(s)?s.push(o):n[r]=o}return n}function C(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",s=t&&t[n];return s?o+encodeURIComponent(s(r)):Array.isArray(r)?r.map((e=>C(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):C(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function A(e=!1){let t,n=c.proxyUrl;if("string"==typeof e){t=re(e);const r=N(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&se()&&(n=oe(n)),P(n)}function E(e){const t=N(e);let n,r;if(t){const e=M(t.proxyUrl);n=e.path,r=e.query?S(e.query):null}if(n){const t=P(e);e=n+"?"+t.path;const o=j({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function M(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function T(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=M(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:T(e.urlPrefix)},n=c.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function N(e){const t=c.proxyRules,n=T(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=R(e),t=R(t),ie(e)===ie(t)}function R(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function W(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=c.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function U(e,t,n=!1){if(!e||!t)return!1;const r=fe(e),o=fe(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function L(e){if("string"==typeof e){if(!H(e))return!0;e=fe(e)}if(U(e,v))return!0;const t=c.trustedServers||[];for(let n=0;n<t.length;n++){const r=J(t[n]);for(let t=0;t<r.length;t++)if(U(e,r[t]))return!0}return!1}function J(e){return w[e]||(ne(e)||te(e)?w[e]=[new y(q(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function q(e,t=_,n){return te(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===B(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:(0,i.j0)(D("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function F(e,t=_,n){if(null==e||!H(e))return e;const r=Z(e),o=r.toLowerCase(),s=Z(t).toLowerCase().replace(/\/+$/,""),i=n?Z(n).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=r.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=c.httpsDomains;if(!function(e){return null!=e&&f.test(e)||"http"===v.scheme&&te(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),p.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&r===v.authority&&!b.test(e)||(se()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||se()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=M(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function D(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const n=[];if(H(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return null!=e&&h.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function B(e,t=!1){if(null==e||z(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&te(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ie(e,!0)),e}function H(e){return te(e)||ne(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return null!=e&&"data:"===e.slice(0,5)}function V(e){const t=Y(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function Q(e){return btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const G=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(G);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ee(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function te(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function re(e){return null!=e&&d.test(e)||"https"===v.scheme&&te(e)}function oe(e){return te(e)?`https:${e}`:e.replace(f,"https:")}function se(){return"https"===v.scheme}function ie(e,t=!1){return te(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ae(e){let t=0;if(H(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function ce(e,t){if(!e)return"";const n=P(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(!t?.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),s=e.indexOf(":",r+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(r+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(i)}`}function fe(e){return"string"==typeof e?new y(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function de(e,t){const n=P(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function he(e,t,n){const r=P(e),o=r.query||{};return o[t]=String(n),`${r.path}?${j(o)}`}function pe(e,t){const n=P(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=j(r);return o?`${n.path}?${o}`:n.path}function be(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?t[2]:null}function ge(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}const me=/([^.]*)\.([^\/]*)$/},25045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(40330),o=n(20102),s=n(91460),i=n(70586),a=n(95330),c=n(94362),l=n(17202);const u={statsWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(3847),n.e(6841)]).then(n.bind(n,36841)),geometryEngineWorker:()=>Promise.all([n.e(5837),n.e(8227)]).then(n.bind(n,48227)),CSVSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(8850)]).then(n.bind(n,14478)),EdgeProcessingWorker:()=>Promise.all([n.e(6481),n.e(212),n.e(2062)]).then(n.bind(n,49594)),ElevationSamplerWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(4807),n.e(6481),n.e(6459),n.e(98)]).then(n.bind(n,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(4599),n.e(3419),n.e(8833),n.e(4807),n.e(6891)]).then(n.bind(n,4955)),GeoJSONSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(7845)]).then(n.bind(n,97845)),LercWorker:()=>n.e(3027).then(n.bind(n,23027)),MemorySourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(639)]).then(n.bind(n,30639)),PBFDecoderWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(5886),n.e(802)]).then(n.bind(n,10802)),Pipeline:()=>Promise.all([n.e(4547),n.e(1878),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(4599),n.e(3419),n.e(8833),n.e(4325),n.e(7483)]).then(n.bind(n,37138)),PointCloudWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(9324)]).then(n.bind(n,90447)),RasterWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(8363),n.e(3645),n.e(4370)]).then(n.bind(n,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(6481),n.e(212),n.e(5259)]).then(n.bind(n,65381)),SceneLayerWorker:()=>n.e(1412).then(n.bind(n,31412)),WFSSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(3230)]).then(n.bind(n,43230)),WorkerTileHandler:()=>Promise.all([n.e(4325),n.e(1785),n.e(6810),n.e(3388)]).then(n.bind(n,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t,n){this._port=e,this._getNextJob=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const r=new y(t.port1,{channel:t,client:n},(()=>null));return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=r),y.clients.set(r,n),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,n){const r=n&&n.signal,s=n&&n.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const l=(0,c.jt)();return new Promise(((n,o)=>{if((0,a.Hc)(r))return this._processWork(),void o((0,a.zE)());const c=(0,a.fu)(r,(()=>{const e=this._outJobs.get(l);e&&(this._outJobs.delete(l),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:l}),o((0,a.zE)()))})),u={resolve:n,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(l,u),this._post({type:h,jobId:l,methodName:e,abortable:null!=r},t,s)}))}on(e,t){const n=new MessageChannel;function r(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:n.port2},[n.port2]),n.port1.addEventListener("message",r),n.port1.start(),{remove(){n.port1.postMessage({type:c.Cs.CLOSE}),n.port1.close(),n.port1.removeEventListener("message",r)}}}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._getNextJob();if(!e)return;const{methodName:t,data:n,invokeOptions:r,deferred:o}=e;this.invoke(t,n,r).then((e=>o.resolve(e))).catch((e=>o.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,i.hw)(e.abortHandle),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);this._invokeQueue.push(e),r&&(r.controller&&r.controller.abort(),t.delete(n))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,r,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:n,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(n,{controller:s,promise:l}),l.then((e=>{i.has(n)&&(i.delete(n),this._post({type:p,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),(0,a.D_)(e)||this._post({type:p,jobId:n,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:n},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,n=this._client.on(e.eventType,(e=>{t.postMessage(e)})),r=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e)?.type===c.Cs.CLOSE&&(r.remove(),n.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:n,data:r}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(r)}_post(e,t,n){return(0,c.oi)(this._port,e,t,n)}}y.kernelInfo={revision:l.$,version:r.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,n)=>{"use strict";n.d(t,{AB:()=>a,Cs:()=>r,QM:()=>l,jt:()=>i,oi:()=>c});var r,o=n(80442);!function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.OPEN=1]="OPEN",e[e.OPENED=2]="OPENED",e[e.RESPONSE=3]="RESPONSE",e[e.INVOKE=4]="INVOKE",e[e.ABORT=5]="ABORT",e[e.CLOSE=6]="CLOSE",e[e.OPEN_PORT=7]="OPEN_PORT",e[e.ON=8]="ON"}(r||(r={}));let s=0;function i(){return s++}function a(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function c(e,t,n,o){if(t.type===r.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==r.INVOKE&&t.type!==r.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(n)?(s=u(o),t.data=n):(s=u(n.transferList),t.data=n.result),s?e.postMessage(t,s):e.postMessage(t)}function l(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,o.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,n)=>{"use strict";n.d(t,{Dp:()=>l,Nv:()=>i,i8:()=>s,id:()=>a,qh:()=>c});var r=n(80442),o=n(17452);const s="4.25",i={async request(e,t){const{default:r}=await n.e(3172).then(n.bind(n,3172)),s=e.options,i=s.responseType;s.signal=t?.signal,s.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,o.oh)(e.url)?.after?i:"array-buffer";const a=await r(e.url,s),c={data:a.data,ssl:a.ssl};switch(a.requestOptions?.responseType){case"native-request-init":return delete c.data.signal,c;case"blob":c.data=await c.data.arrayBuffer();break;case"json":c.data=(new TextEncoder).encode(JSON.stringify(c.data)).buffer;break;case"text":c.data=(new TextEncoder).encode(c.data).buffer}return{result:c,transferList:[c.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,r.Z)("host-webworker")},17202:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,r:()=>r});const r="20220918",o="331b87097e803f4f628311c16139b53e95331f9d"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.m=e,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"chunks/"+{9:"505a79b67bbb515b5fd2",98:"6c076fb126d2363c903b",212:"f436c86f86236ea7ea04",223:"36dd5654df5c7f00406d",247:"9d9e3a38c54c41f7764c",402:"f3a71f9c6bc5849b6862",556:"b7560e2989d151b9dd47",565:"c0142d207900d8b40b46",576:"7fdd029a76a7ab1c3d83",577:"a618a52ccaf08e30b82d",586:"0059699bf824f851d51c",639:"f607bb297787cc5987f5",661:"bee19483591ff9994495",665:"fb1d0ac4b4f45830e5cf",739:"b3aa600c37450acd8640",802:"dae39baaab110eafce8b",812:"a6bca595116302fc142a",819:"d1ead6e8aa7e8e21fbc6",837:"323a32a96719a7783b63",903:"6654f9180c8a1bf6d34e",1070:"3035bd57a1f76fae26a4",1074:"1dcdde67304e8fe11fc0",1387:"fddd4ea487788e003fb1",1400:"4edde17d8a157f95763e",1408:"1b85698e8b9f6bf58a46",1412:"bd889006640e5c675a43",1421:"6196cfdeb91ceba52af3",1423:"d31bbb13af45ce8e45dc",1433:"4d5bdf18feeb9c8cb6ff",1437:"2af920691b2d710b52b8",1491:"5d0f6daccc381abf7933",1534:"929688a0d9d3364d7833",1562:"14ea96e398f4842abe4e",1761:"9d0362b82f06705b298f",1773:"cc7686c338b28ffde40a",1785:"3b5be512567d9c1c6fe6",1819:"5b16b30ac3166f33e81e",1878:"b532f9aef9a9f3ec1696",2062:"51289d2f5277af4023e9",2133:"1c0e1c0d8db1fa6a6565",2134:"cb2dc84d972469445da6",2533:"e141d9ab062183ebe065",2664:"f4fd5851cb74de9e060b",2855:"c270e544f14617de4955",3027:"2e44aee22e70857b893c",3121:"2a22ce18486ee8160d8f",3172:"f2d65c54a65f3f2d30d9",3230:"d75fcf97569beebbdf0c",3281:"4a38075c222024cf746d",3359:"de128d8a643b4297940b",3388:"169f4354a375db5de121",3419:"61071017da542d554661",3492:"1596b8a7b9c6533684d3",3529:"0d9abf3dda540ad5a174",3645:"f684794c7fd8267f5331",3668:"426af64371bc3d0e7261",3758:"a6e5b65d83e3cf6282fd",3810:"cb020d3d48ada0da4c6f",3847:"1a8d1ca45e4b250083e2",3852:"b71a0a8a2f446c671161",4028:"e208d9c34f5db4481441",4133:"d23f2b797c3ad0d83352",4166:"87c78e7b6a107081bc7a",4210:"01a6005569d0820992a0",4242:"cfaf230bddf0aae2fe97",4268:"a17914dcee7d7d49bf71",4325:"d91140bc583925e4faf6",4358:"71a4618d959a09302c51",4370:"3248c8e2a523d23b7277",4436:"2ed23dd5fbb4e02ae101",4475:"988a142646a0b05c9814",4499:"5035c5d268a786f65882",4547:"3900c702242358c5d00e",4588:"72cb60f688aa1f7348a0",4599:"e6c66a61b7b5ac4aef54",4685:"e51b2768527e1aee1379",4695:"cfd83bad25be40fe14e9",4807:"b8985db9bfb7a59638ef",4889:"16e9bd57f774944d0bf8",4960:"7d0929d327070e00fbc7",5207:"62377931ab90648e02da",5235:"4e4cfd13ad3401f14183",5259:"b19ee9436a2a9551987d",5329:"0e21e5b4d065567a6a91",5348:"dc947cebe9a634b3cab1",5587:"77d52ec851c330b516bb",5732:"469ba1b24cdeea0758ec",5837:"ed59ec7a8688437ebdbc",5853:"36c468c5ccc4ea71ed78",5886:"9662da3e1e37f3445186",6233:"82b04846512f4001de3d",6237:"b686422160ea7e7ff5bb",6406:"f3be17d37b3d1aa90505",6448:"c243d6a8955dde91e75e",6459:"54e98e4d2ccf6c365e62",6481:"1570676351a313f1841b",6584:"05f761a78224990cea70",6710:"d828a0656e7351a74fc4",6748:"421241543afbc9a619ea",6774:"c8402e32307a7b7eaaeb",6810:"9bbcf17003f5650c4d96",6841:"31de71018575457155e5",6891:"48aa432e1bf60c68de14",6925:"e4747c5e6f5d441b2104",6968:"393cb7ab48468158269c",7035:"d0e6568f4a90a68235b4",7049:"0bdd6470856f859562f8",7126:"a8b66d0a3418896f6581",7202:"bf84189bd9bf3de81df9",7269:"8bab21bc6164a593278f",7272:"021ff024cdde143c66c7",7277:"8ba83fee56dd4f306d87",7374:"d65cc4a7c84af604ccf5",7459:"7d8bebbd36e7e1148a67",7483:"9f31ab2247c9defb882c",7541:"8ee976e761c4124a2a75",7572:"25827c46756a4069b221",7631:"0657ebbe3b1923d1eefb",7845:"8179031362a3b32545a1",7873:"4c989506b46bfec9c5ed",7948:"471238134f41747cd1af",8050:"5bb7da0cd9ef5e34287d",8062:"3be3de163581413e215d",8071:"31ad55833cb4c6d20c52",8096:"65a17578aa31f17958e6",8227:"ee04b1c0c42cb1b18b24",8244:"40ede4078b22791344a6",8326:"18ed245b56089d35c558",8363:"92409748c19c24038548",8636:"f5d10ea7b8888f822b0c",8694:"2d70499eacbd1d2a33a7",8758:"6693e43af546e6eb3f16",8828:"a234c056b1f872976a95",8833:"8b8a813f5e6d6551a816",8850:"2be65d7a2751acca3860",8889:"07b082211215c167c835",8899:"289407f6010ac0ac5ac2",9070:"f67357b3c6c591c9da5e",9138:"0ef22f07d0f8beba6222",9169:"76b75ac18c8239687321",9268:"2c4938512dd726a177dd",9291:"59970b147f3dfe00b649",9296:"9a7c08c3464f7e0f72b9",9324:"db7c3145ec95fbae7c8e",9795:"4577d03ca2bb6fffcb49",9880:"1b5bdd80db9a1a410ff8",9884:"356db8b8297282c77291",9904:"cf3e1ac63580bc495ea6",9965:"f44e4219dff47e6ec0b1"}[e]+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={134:1};n.f.i=(t,r)=>{e[t]||importScripts(n.p+n.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],r=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)n.o(s,a)&&(n.m[a]=s[a]);for(i&&i(n);o.length;)e[o.pop()]=1;r(t)}})(),n(88277);var r=n(25045);RemoteClient=r})();
1
+ var RemoteClient;(()=>{var e={88277:(e,t,n)=>{n.p=self.esriConfig.assetsPath+"/esri/core/workers/"},68773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s}),n(80442);var r=n(78286),o=n(17202);const s={apiKey:void 0,applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,r.RH)(s,globalThis.esriConfig,!0),delete s.has),!s.assetsPath){const e="4.25.0";s.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${o.r}/assets`}s.baseUrl&&console.warn("[esri.config]","baseUrl has been replaced by assetsPath"),Object.defineProperty(s,"baseUrl",{set(){console.warn("[esri.config]","baseUrl has been replaced by assetsPath")}})},20102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(22974),o=n(92604),s=n(58896);class i extends s.Z{constructor(e,t,n){if(super(e,t,n),!(this instanceof i))return new i(e,t,n)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,r.d9)(t)}catch(e){return"[object]"}})))}}catch(e){throw o.Z.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new i(e.name,e.message,e.details)}}i.prototype.type="error"},92604:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(68773),o=(n(80442),n(70586)),s=n(19153);const i={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers[this.module]=this;const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get testSingleton(){return{resetLoggers(e={}){const t=a._loggers;return a._loggers=e,t},set throttlingDisabled(e){a._throttlingDisabled=e}}}static getLogger(e){let t=a._loggers[e];return t||(t=new a({module:e})),t}_log(e,t,...n){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const r=this._argsToKey(n),o=this._loggedMessages[e].get(r);if("once"===t&&null!=o||"oncePerTick"===t&&o&&o>=a._tickCounter)return;this._loggedMessages[e].set(r,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of r.Z.log.interceptors)if(t(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,t){let n=this;for(;(0,o.pC)(n);){const t=n[e];if((0,o.pC)(t))return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",this._consoleWriter)}_consoleWriter(e,t,...n){console[e](`[${t}]`,...n)}_matchLevel(e){const t=r.Z.log.level?r.Z.log.level:"warn";return i[this._parentWithMember("level",t)]<=i[e]}_argsToKey(...e){return(0,s.hP)(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then((()=>{a._tickCounter++,a._tickCounterScheduled=!1})))}}a._loggers={},a._tickCounter=0,a._tickCounterScheduled=!1,a._throttlingDisabled=!1},58896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78286);class o{constructor(e,t,n){this.name=e,this.details=n,this instanceof o&&(this.message=(t&&function(e,t){return e.replace(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,n)=>{if(""===n)return"$";const o=(0,r.hS)(n,t)??"";if(void 0===o)throw new Error(`could not find key "${n}" in template`);return o.toString()}))}(t,n))??"")}toString(){return"["+this.name+"]: "+this.message}}},77734:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});class r{constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*r._m}getInt(){return this._seed=(r._a*this._seed+r._c)%r._m,this._seed}getFloat(){return this.getInt()/(r._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const n=t-e;return e+this.getInt()/r._m*n}}r._m=2147483647,r._a=48271,r._c=0},67676:(e,t,n)=>{"use strict";n.d(t,{FY:()=>m,Od:()=>y,SO:()=>d,Vx:()=>i,a9:()=>u,cq:()=>p,e$:()=>b,e5:()=>a,fS:()=>s,w6:()=>f,zG:()=>c});var r=n(70586),o=n(77734);function s(e,t,n){if((0,r.Wi)(e)&&(0,r.Wi)(t))return!0;if((0,r.Wi)(e)||(0,r.Wi)(t)||e.length!==t.length)return!1;if(n){for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function i(e,t){let n=e.length!==t.length;e.length=t.length;for(let r=0;r<t.length;++r)e[r]!==t[r]&&(e[r]=t[r],n=!0);return n}function a(e,t,n){let r,o;return n?(r=t.filter((t=>!e.some((e=>n(e,t))))),o=e.filter((e=>!t.some((t=>n(t,e)))))):(r=t.filter((t=>!e.includes(t))),o=e.filter((e=>!t.includes(e)))),{added:r,removed:o}}function c(e){return e&&"number"==typeof e.length}const l=!!Array.prototype.fill;function u(e,t){if(l)return new Array(e).fill(t);const n=new Array(e);for(let r=0;r<e;r++)n[r]=t;return n}function f(e,t){void 0===t&&(t=e,e=0);const n=new Array(t-e);for(let r=e;r<t;r++)n[r-e]=r;return n}class d{constructor(){this.last=0}}const h=new d;function p(e,t,n,r){r=r||h;const o=Math.max(0,r.last-10);for(let s=o;s<n;++s)if(e[s]===t)return r.last=s,s;const s=Math.min(o,n);for(let n=0;n<s;++n)if(e[n]===t)return r.last=n,n;return-1}function b(e,t,n,r){const o=n??e.length,s=p(e,t,o,r);if(-1!==s)return e[s]=e[o-1],null==n&&e.pop(),t}const g=new Set;function m(e,t,n=e.length,r=t.length,o,s){if(0===r||0===n)return n;g.clear();for(let e=0;e<r;++e)g.add(t[e]);o=o||h;const i=Math.max(0,o.last-10);for(let t=i;t<n;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;for(let t=0;t<i;++t)if(g.has(e[t])&&(s&&s.push(e[t]),g.delete(e[t]),e[t]=e[n-1],--n,--t,0===g.size||0===n))return g.clear(),n;return g.clear(),n}function y(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}new o.Z},60235:(e,t,n)=>{"use strict";n.d(t,{Mr:()=>i,x9:()=>a});var r=n(80442);const o=new Set;function s(e,t,n=!1){n&&o.has(t)||(n&&o.add(t),e.warn(`🛑 DEPRECATED - ${t}`))}function i(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{moduleName:r}=n;a(e,"Property: "+(r?r+"::":"")+t,n)}}function a(e,t,n={}){if((0,r.Z)("esri-deprecation-warnings")){const{replacement:r,version:o,see:i,warnOnce:a}=n;let c=t;r&&(c+=`\n\t🛠️ Replacement: ${r}`),o&&(c+=`\n\t⚙️ Version: ${o}`),i&&(c+=`\n\t🔗 See ${i} for more details.`),s(e,c,a)}}},91460:(e,t,n)=>{"use strict";function r(e){return e&&("function"==typeof e.on||"function"==typeof e.addEventListener)}function o(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("on"in e)return e.on(t,n);if(Array.isArray(t)){const r=t.slice();for(const t of r)e.addEventListener(t,n);return{remove(){for(const t of r)e.removeEventListener(t,n)}}}return e.addEventListener(t,n),{remove(){e.removeEventListener(t,n)}}}function s(e,t,n){if(!r(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,n);const s=o(e,t,(t=>{s.remove(),n.call(e,t)}));return{remove(){s.remove()}}}n.d(t,{IH:()=>s,on:()=>o,vT:()=>r})},80442:(e,t,n)=>{"use strict";let r;function o(e){return"function"==typeof r[e]?r[e]=r[e](globalThis):r[e]}n.d(t,{Z:()=>o}),r=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,n,s)=>((s||void 0===r[e])&&(r[e]=t),n&&o(e)),o.cache=r,o.add("esri-deprecation-warnings",!0),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,n=e.appVersion,r=parseFloat(n);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",n.includes("Konqueror")?r:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!n.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(n.split("Version/")[1])),o.add("mac",n.includes("Macintosh")),!o("wp")&&t.match(/(iPhone|iPod|iPad)/)){const e=RegExp.$1.replace(/P/,"p"),n=t.match(/OS ([\d_]+)/)?RegExp.$1:"1",r=parseFloat(n.replace(/_/,".").replace(/_/g,""));o.add(e,r),o.add("ios",r)}o.add("trident",parseFloat(n.split("Trident/")[1])||void 0),o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("trident")||o("edge")||o.add("mozilla",r),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),n=/iPhone/i.test(e);t&&o.add("esri-mobile",t),n&&o.add("esri-iPhone",n),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-canvas-svg-support",!o("trident")),o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),o.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),o.add("esri-atomics","Atomics"in globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-point-coverage",.1),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-enabled",!1),o.add("mapimagelayer-popup-identify-max-tolerance",20),o.add("heatmap-allow-raster-fallback",!0),o.add("heatmap-force-raster",!1),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),o.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{o.add("esri-image-decode",!0,!0,!0)})).catch((()=>{o.add("esri-image-decode",!1,!0,!0)}))}return!1})),o.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})()},22974:(e,t,n)=>{"use strict";n.d(t,{Vo:()=>c,d9:()=>a,fS:()=>p,y7:()=>b,yd:()=>i});var r=n(67676),o=(n(80442),n(70586)),s=n(1533);function i(e,t){let n;if(t)for(n in e)e.hasOwnProperty(n)&&(void 0===e[n]?delete e[n]:e[n]instanceof Object&&i(e[n],!0));else for(n in e)e.hasOwnProperty(n)&&void 0===e[n]&&delete e[n];return e}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=h(e);if((0,o.pC)(t))return t;if(l(e))return e.clone();if(u(e))return e.map(a);if(f(e))return e.clone();const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=a(e[t]);return n}function c(e){if(!e||"object"!=typeof e||"function"==typeof e||e instanceof HTMLElement)return e;const t=h(e);if((0,o.pC)(t))return t;if(u(e)){let t=!0;const n=e.map((e=>{const n=c(e);return null!=e&&null==n&&(t=!1),n}));return t?n:null}if(l(e))return e.clone();if(!f(e)){const t=new(0,Object.getPrototypeOf(e).constructor);for(const n of Object.getOwnPropertyNames(e)){const r=e[n],o=c(r);if(null!=r&&null==o)return null;t[n]=o}return t}return null}function l(e){return"function"==typeof e.clone}function u(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){if((0,s.W0)(e)||(0,s.lq)(e)||(0,s.KZ)(e)||(0,s.z3)(e)||(0,s.Uc)(e)||(0,s.Hx)(e)||(0,s.ZY)(e)||(0,s.xZ)(e)||(0,s.fS)(e))return(0,s.tP)(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[n,r]of e)t.set(n,a(r));return t}if(e instanceof Set){const t=new Set;for(const n of e)t.add(a(n));return t}return null}function p(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof(e||{}).getTime&&"function"==typeof(t||{}).getTime&&e.getTime()===t.getTime()||!1}function b(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,r.fS)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e){const e=t.get(n);if(e!==r||void 0===e&&!t.has(n))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const n=Object.keys(e);if(null===t||Object.keys(t).length!==n.length)return!1;for(const r of n)if(e[r]!==t[r]||!Object.prototype.hasOwnProperty.call(t,r))return!1;return!0}(e,t))}},70586:(e,t,n)=>{"use strict";function r(e){return null!=e}function o(e){return null==e}function s(e,t){return r(e)?t(e):null}function i(e){return e}function a(e,t){return c(e,t),e}function c(e,t){if(o(e))throw new Error(t??"value is None")}function l(e,t){return r(e)?e:"function"==typeof t?t():t}function u(e,t){return r(e)?e:t}function f(e){return r(e)&&e.destroy(),null}function d(e){return r(e)&&e.dispose(),null}function h(e){return r(e)&&e.remove(),null}function p(e){return r(e)&&e.abort(),null}function b(e){return r(e)&&e.release(),null}function g(e,t,n){return r(e)&&r(t)?r(n)?n(e,t):e.equals(t):e===t}function m(e){return null}function y(e,t){const n=new Array;for(const r of e)n.push(v(r,null,t));return n}function w(e,t){for(const n of e)s(n,t)}function v(e,t,n){return r(e)?n(e):t}function _(e){return e.filter((e=>r(e)))}function O(e,...t){let n=e;for(let e=0;e<t.length&&n;++e)n=n[t[e]];return n}function k(e){return e}n.d(t,{Fd:()=>y,IM:()=>p,JR:()=>w,M2:()=>d,O3:()=>c,Pt:()=>l,R2:()=>v,RY:()=>b,SC:()=>f,U2:()=>O,Wg:()=>i,Wi:()=>o,_W:()=>g,hw:()=>h,j0:()=>k,lV:()=>_,pC:()=>r,s3:()=>a,wN:()=>m,yl:()=>u,yw:()=>s})},78286:(e,t,n)=>{"use strict";n.d(t,{RB:()=>i,RH:()=>o,hS:()=>s});var r=n(22974);function o(e,t,n=!1){return c(e,t,n)}function s(e,t){if(null!=t)return t[e]||a(e.split("."),!1,t)}function i(e,t,n){const r=e.split("."),o=r.pop(),s=a(r,!0,n);s&&o&&(s[o]=t)}function a(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function c(e,t,n){return t?Object.keys(t).reduce(((e,o)=>{let s=e[o],i=t[o];return s===i?e:void 0===s?(e[o]=(0,r.d9)(i),e):(Array.isArray(i)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.concat():e[o]=[s]:e[o]=[],i&&(Array.isArray(i)||(i=[i]),n?i.forEach((e=>{s.includes(e)||s.push(e)})):e[o]=i.concat())):i&&"object"==typeof i?e[o]=c(s,i,n):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=i),e)}),e||{}):e}},95330:(e,t,n)=>{"use strict";n.d(t,{e4:()=>O,zE:()=>c,dD:()=>w,hh:()=>C,Ds:()=>S,as:()=>v,WW:()=>_,R8:()=>y,D_:()=>m,Hc:()=>f,y8:()=>k,fu:()=>p,$F:()=>b,r9:()=>d,k_:()=>l,H9:()=>h,Yn:()=>j,gx:()=>P,Hl:()=>g});const r=(o=globalThis,{setTimeout:(e,t)=>{const n=o.setTimeout(e,t);return{remove:()=>o.clearTimeout(n)}}});var o;n(60235);var s=n(20102),i=n(91460),a=(n(92604),n(70586));function c(e="Aborted"){return new s.Z("AbortError",e)}function l(e,t="Aborted"){if(f(e))throw c(t)}function u(e){return(0,a.pC)(e)?"aborted"in e?e:e.signal:e}function f(e){const t=u(e);return(0,a.pC)(t)&&t.aborted}function d(e){if(m(e))throw e}function h(e){if(!m(e))throw e}function p(e,t){const n=u(e);if(!(0,a.Wi)(n)){if(!n.aborted)return(0,i.IH)(n,"abort",(()=>t()));t()}}function b(e,t){const n=u(e);if(!(0,a.Wi)(n))return l(n),(0,i.IH)(n,"abort",(()=>t(c())))}function g(e,t){const n=u(t);return(0,a.Wi)(n)?e:new Promise(((n,r)=>{let o=p(t,(()=>r(c())));const s=()=>o=(0,a.hw)(o);e.then(s,s),e.then(n,r)}))}function m(e){return"AbortError"===e?.name}async function y(e){try{return await e}catch(e){if(!m(e))throw e;return}}function w(){let e=null;const t=new Promise(((t,n)=>{e={promise:void 0,resolve:t,reject:n}}));return e.promise=t,e}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),n=t.map((t=>e[t])),r=await v(n),o={};return t.map(((e,t)=>o[e]=r[t])),o}const t=e;return new Promise((e=>{const n=[];let r=t.length;0===r&&e(n),t.forEach((t=>{const o={promise:t||Promise.resolve(t)};n.push(o),o.promise.then((e=>{o.value=e})).catch((e=>{o.error=e})).then((()=>{--r,0===r&&e(n)}))}))}))}async function _(e){return(await v(e)).filter((e=>!!e.value)).map((e=>e.value))}function O(e,t,n){const r=new AbortController;return p(n,(()=>r.abort())),new Promise(((n,o)=>{let s=setTimeout((()=>{s=0,n(t)}),e);p(r,(()=>{s&&(clearTimeout(s),o(c()))}))}))}function k(e){return e&&"function"==typeof e.then}function P(e){return k(e)?e:Promise.resolve(e)}function S(e,t=-1){let n,r,o,s,i=null;const l=(...u)=>{if(n){r=u,s&&s.reject(c()),s=w();const e=(0,a.j0)(s.promise);if(i){const e=i;i=null,e.abort()}return e}if(o=s||w(),s=null,t>0){const r=new AbortController;n=P(e(...u,r.signal));const o=n;O(t).then((()=>{n===o&&(s?r.abort():i=r)}))}else n=1,n=P(e(...u));const f=()=>{const e=r;r=o=n=i=null,null!=e&&l(...e)},d=n,h=o;return d.then(f,f),d.then(h.resolve,h.reject),(0,a.j0)(h.promise)};return l}function C(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r})),o=t=>{e(t)};return o.resolve=t=>e(t),o.reject=e=>t(e),o.timeout=(e,t)=>r.setTimeout((()=>o.reject(t)),e),o.promise=n,o}async function j(e){await Promise.resolve(),l(e)}},19153:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>l,Qs:()=>a,gx:()=>i,hP:()=>c});var r=n(78286);const o=/\{([^\}]+)\}/g;function s(e){return e??""}function i(e,t){return e.replace(o,"object"==typeof t?(e,n)=>s((0,r.hS)(n,t)):(e,n)=>s(t(n)))}function a(e,t){return e.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g,(e=>t&&t.includes(e)?e:`\\${e}`))}function c(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}function l(e){return(new DOMParser).parseFromString(e||"","text/html").body.innerText||""}},1533:(e,t,n)=>{"use strict";function r(e,t){if(e.forEach)e.forEach(t);else for(let n=0;n<e.length;n++)t(e[n],n,e)}function o(e,t,n){if(e.slice)return e.slice(t,n);void 0===t?t=0:(t<0&&(t+=e.length),t=Math.min(e.length,Math.max(0,t))),void 0===n?n=e.length:(n<0&&(n+=e.length),n=Math.min(e.length,Math.max(0,n)));const r=Math.max(0,n-t),o=new(0,e.constructor)(r);for(let n=0;n<r;n++)o[n]=e[t+n];return o}function s(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}function i(e){return e instanceof Int8Array||e&&e.constructor&&"Int8Array"===e.constructor.name}function a(e){return e instanceof Uint8Array||e&&e.constructor&&"Uint8Array"===e.constructor.name}function c(e){return e instanceof Uint8ClampedArray||e&&e.constructor&&"Uint8ClampedArray"===e.constructor.name}function l(e){return e instanceof Int16Array||e&&e.constructor&&"Int16Array"===e.constructor.name}function u(e){return e instanceof Uint16Array||e&&e.constructor&&"Uint16Array"===e.constructor.name}function f(e){return e instanceof Int32Array||e&&e.constructor&&"Int32Array"===e.constructor.name}function d(e){return e instanceof Uint32Array||e&&e.constructor&&"Uint32Array"===e.constructor.name}function h(e){return e instanceof Float32Array||e&&e.constructor&&"Float32Array"===e.constructor.name}function p(e){return e instanceof Float64Array||e&&e.constructor&&"Float64Array"===e.constructor.name}n.d(t,{Ed:()=>r,Hx:()=>f,KZ:()=>c,Uc:()=>u,W0:()=>i,ZY:()=>d,eP:()=>s,fS:()=>p,lq:()=>a,tP:()=>o,xZ:()=>h,z3:()=>l})},17452:(e,t,n)=>{"use strict";n.d(t,{$U:()=>re,AH:()=>V,B7:()=>j,D6:()=>U,Fv:()=>Z,HK:()=>K,Hu:()=>de,Ie:()=>ue,L:()=>k,Ml:()=>be,P$:()=>B,PF:()=>F,Qj:()=>le,R9:()=>y,TI:()=>O,YP:()=>H,Yd:()=>ae,ZN:()=>he,_l:()=>X,b7:()=>A,ed:()=>N,fZ:()=>ge,fl:()=>pe,hF:()=>q,hO:()=>oe,io:()=>ee,jc:()=>z,kl:()=>L,mN:()=>P,oC:()=>te,oh:()=>W,qg:()=>E,rS:()=>Q,sJ:()=>Y,tD:()=>$,tm:()=>I,u0:()=>S,v_:()=>D,vt:()=>ce});var r=n(68773),o=n(20102),s=n(92604),i=n(70586);const a=s.Z.getLogger("esri.core.urlUtils"),c=r.Z.request,l="esri/config: esriConfig.request.proxyUrl is not set.",u=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,f=/^\s*http:/i,d=/^\s*https:/i,h=/^\s*file:/i,p=/:\d+$/,b=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,g=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),m=new RegExp("^((([^\\[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^\\[:]*))(:([0-9]+))?$");class y{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=(0,i.j0)(this.uri.match(g));this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=(0,i.j0)(this.authority.match(m)),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const w={};let v=new y(r.Z.applicationUrl);let _=function(){const e=(0,i.j0)(v.path),t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${v.scheme}://${v.host}${null!=v.port?`:${v.port}`:""}${t}`}();const O=()=>v,k=()=>_;function P(e){const t={path:null,query:null},n=new y(e),r=e.indexOf("?");return null===n.query?t.path=e:(t.path=e.substring(0,r),t.query=S(n.query)),n.fragment&&(t.hash=n.fragment,null===n.query&&(t.path=t.path.substring(0,t.path.length-(n.fragment.length+1)))),t}function S(e){const t=e.split("&"),n={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let r,o;t<0?(r=decodeURIComponent(e),o=""):(r=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=n[r];"string"==typeof s&&(s=n[r]=[s]),Array.isArray(s)?s.push(o):n[r]=o}return n}function C(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}function j(e,t){return e?t&&"function"==typeof t?Object.keys(e).map((n=>encodeURIComponent(n)+"="+encodeURIComponent(t(n,e[n])))).join("&"):Object.keys(e).map((n=>{const r=e[n];if(null==r)return"";const o=encodeURIComponent(n)+"=",s=t&&t[n];return s?o+encodeURIComponent(s(r)):Array.isArray(r)?r.map((e=>C(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e))).join("&"):C(r)?o+encodeURIComponent(JSON.stringify(r)):o+encodeURIComponent(r)})).filter((e=>e)).join("&"):""}function A(e=!1){let t,n=c.proxyUrl;if("string"==typeof e){t=re(e);const r=N(e);r&&(n=r.proxyUrl)}else t=!!e;if(!n)throw a.warn(l),new o.Z("urlutils:proxy-not-set",l);return t&&se()&&(n=oe(n)),P(n)}function E(e){const t=N(e);let n,r;if(t){const e=M(t.proxyUrl);n=e.path,r=e.query?S(e.query):null}if(n){const t=P(e);e=n+"?"+t.path;const o=j({...r,...t.query});o&&(e=`${e}?${o}`)}return e}const x={path:"",query:""};function M(e){const t=e.indexOf("?");return-1!==t?(x.path=e.slice(0,t),x.query=e.slice(t+1)):(x.path=e,x.query=null),x}function T(e){return(e=ie(e=function(e){return e&&"/"===e[e.length-1]?e:`${e}/`}(e=M(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:T(e.urlPrefix)},n=c.proxyRules,r=t.urlPrefix;let o=n.length;for(let e=0;e<n.length;e++){const t=n[e].urlPrefix;if(0===r.indexOf(t)){if(r.length===t.length)return-1;o=e;break}0===t.indexOf(r)&&(o=e+1)}return n.splice(o,0,t),o}function N(e){const t=c.proxyRules,n=T(e);for(let e=0;e<t.length;e++)if(0===n.indexOf(t[e].urlPrefix))return t[e]}function I(e,t){return e=R(e),t=R(t),ie(e)===ie(t)}function R(e){const t=(e=Z(e)).indexOf("/sharing");return t>0?e.substring(0,t):e.replace(/\/+$/,"")}function W(e){const t=t=>null==t||t instanceof RegExp&&t.test(e)||"string"==typeof t&&e.startsWith(t),n=c.interceptors;if(n)for(const e of n)if(Array.isArray(e.urls)){if(e.urls.some(t))return e}else if(t(e.urls))return e;return null}function U(e,t,n=!1){if(!e||!t)return!1;const r=fe(e),o=fe(t);return!(!n&&r.scheme!==o.scheme)&&null!=r.host&&null!=o.host&&r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function L(e){if("string"==typeof e){if(!H(e))return!0;e=fe(e)}if(U(e,v))return!0;const t=c.trustedServers||[];for(let n=0;n<t.length;n++){const r=J(t[n]);for(let t=0;t<r.length;t++)if(U(e,r[t]))return!0}return!1}function J(e){return w[e]||(ne(e)||te(e)?w[e]=[new y(q(e))]:w[e]=[new y(`http://${e}`),new y(`https://${e}`)]),w[e]}function q(e,t=_,n){return te(e)?n&&n.preserveProtocolRelative?e:"http"===v.scheme&&v.authority===B(e).slice(2)?`http:${e}`:`https:${e}`:ne(e)?e:(0,i.j0)(D("/"===e[0]?function(e){const t=e.indexOf("//"),n=e.indexOf("/",t+2);return-1===n?e:e.slice(0,n)}(t):t,e))}function F(e,t=_,n){if(null==e||!H(e))return e;const r=Z(e),o=r.toLowerCase(),s=Z(t).toLowerCase().replace(/\/+$/,""),i=n?Z(n).toLowerCase().replace(/\/+$/,""):null;if(i&&0!==s.indexOf(i))return e;const a=(e,t,n)=>-1===(n=e.indexOf(t,n))?e.length:n;let c=a(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=a(o,"/",c+1);if(-1===l)return e;if(i&&l<i.length)return e;e=r.slice(l);const u=s.slice(l-1).replace(/[^/]+/g,"").length;if(u>0)for(let t=0;t<u;t++)e=`../${e}`;else e=`./${e}`;return e}function Z(e){return function(e){const t=c.httpsDomains;if(!function(e){return null!=e&&f.test(e)||"http"===v.scheme&&te(e)}(e))return e;const n=e.indexOf("/",7);let r;if(r=-1===n?e:e.slice(0,n),r=r.toLowerCase().slice(7),p.test(r)){if(!r.endsWith(":80"))return e;r=r.slice(0,-3),e=e.replace(":80","")}return"http"===v.scheme&&r===v.authority&&!b.test(e)||(se()&&r===v.authority||t&&t.some((e=>r===e||r.endsWith(`.${e}`)))||se()&&!N(e))&&(e=oe(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=M(e);e=(e=t.path.replace(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=q(e=e.trim()))))}function D(...e){const t=e.filter(i.pC);if(!t||!t.length)return;const n=[];if(H(t[0])){const e=t[0],r=e.indexOf("//");-1!==r&&(n.push(e.slice(0,r+1)),function(e){return null!=e&&h.test(e)}(t[0])&&(n[0]+="/"),t[0]=e.slice(r+2))}else"/"===t[0][0]&&n.push("");const r=t.reduce(((e,t)=>t?e.concat(t.split("/")):e),[]);for(let e=0;e<r.length;e++){const t=r[e];".."===t&&n.length>0&&".."!==n[n.length-1]?n.pop():(!t&&e===r.length-1||t&&("."!==t||0===n.length))&&n.push(t)}return n.join("/")}function B(e,t=!1){if(null==e||z(e)||K(e))return null;let n=e.indexOf("://");if(-1===n&&te(e))n=2;else{if(-1===n)return null;n+=3}const r=e.indexOf("/",n);return-1!==r&&(e=e.slice(0,r)),t&&(e=ie(e,!0)),e}function H(e){return te(e)||ne(e)}function z(e){return null!=e&&"blob:"===e.slice(0,5)}function K(e){return null!=e&&"data:"===e.slice(0,5)}function V(e){const t=Y(e);if(!t||!t.isBase64)return null;const n=atob(t.data),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function Q(e){return btoa(String.fromCharCode.apply(null,e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const G=/^data:(.*?)(;base64)?,(.*)$/;function Y(e){const t=e.match(G);if(!t)return null;const[,n,r,o]=t;return{mediaType:n,isBase64:!!r,data:o}}function X(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}function ee(e,t){(function(e,t){if(!e)return!1;const n=document.createElement("a");if(!("download"in n))return!1;const r=URL.createObjectURL(e);return n.download=t,n.href=r,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(r),!0})(e,t)||function(e,t){!!window.navigator.msSaveOrOpenBlob&&window.navigator.msSaveOrOpenBlob(e,t)}(e,t)}function te(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ne(e){return null!=e&&u.test(e)}function re(e){return null!=e&&d.test(e)||"https"===v.scheme&&te(e)}function oe(e){return te(e)?`https:${e}`:e.replace(f,"https:")}function se(){return"https"===v.scheme}function ie(e,t=!1){return te(e)?e.slice(2):(e=e.replace(u,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function ae(e){let t=0;if(H(e)){const n=e.indexOf("//");-1!==n&&(t=n+2)}const n=e.lastIndexOf("/");return n<t?e:e.slice(0,n+1)}function ce(e,t){if(!e)return"";const n=P(e).path.replace(/\/+$/,""),r=n.substring(n.lastIndexOf("/")+1);if(!t?.length)return r;const o=new RegExp(`.(${t.join("|")})$`,"ig");return r.replace(o,"")}function le(e){return e.replace(/\/+$/,"")}function ue(e,t,n){if(!(t&&n&&e&&H(e)))return e;const r=e.indexOf("//"),o=e.indexOf("/",r+2),s=e.indexOf(":",r+2),i=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(r+2,i).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,r+2)}${n}${e.slice(i)}`}function fe(e){return"string"==typeof e?new y(q(e)):(e.scheme||(e.scheme=v.scheme),e)}function de(e,t){const n=P(e),r=Object.keys(n.query||{});return r.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${r.join(", ")}.`),n.path}function he(e,t,n){const r=P(e),o=r.query||{};return o[t]=String(n),`${r.path}?${j(o)}`}function pe(e,t){const n=P(e),r=n.query||{};for(const e in t)r[e]=t[e];const o=j(r);return o?`${n.path}?${o}`:n.path}function be(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?t[2]:null}function ge(e){if((0,i.Wi)(e))return null;const t=e.match(me);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}const me=/([^.]*)\.([^\/]*)$/},25045:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(40330),o=n(20102),s=n(91460),i=n(70586),a=n(95330),c=n(94362),l=n(17202);const u={statsWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(3847),n.e(6841)]).then(n.bind(n,36841)),geometryEngineWorker:()=>Promise.all([n.e(5837),n.e(8227)]).then(n.bind(n,48227)),CSVSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(8850)]).then(n.bind(n,14478)),EdgeProcessingWorker:()=>Promise.all([n.e(6481),n.e(212),n.e(2062)]).then(n.bind(n,49594)),ElevationSamplerWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(4807),n.e(6481),n.e(6459),n.e(98)]).then(n.bind(n,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(4599),n.e(3419),n.e(8833),n.e(4807),n.e(2958)]).then(n.bind(n,22312)),GeoJSONSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(7845)]).then(n.bind(n,97845)),LercWorker:()=>n.e(3027).then(n.bind(n,23027)),MemorySourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(639)]).then(n.bind(n,30639)),PBFDecoderWorker:()=>Promise.all([n.e(1400),n.e(1562),n.e(5886),n.e(802)]).then(n.bind(n,10802)),Pipeline:()=>Promise.all([n.e(4547),n.e(1878),n.e(4588),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(4599),n.e(3419),n.e(8833),n.e(4325),n.e(7483)]).then(n.bind(n,37138)),PointCloudWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(9324)]).then(n.bind(n,90447)),RasterWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1562),n.e(8363),n.e(3645),n.e(4370)]).then(n.bind(n,61576)),SceneLayerSnappingSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(6481),n.e(212),n.e(5259)]).then(n.bind(n,65381)),SceneLayerWorker:()=>n.e(1412).then(n.bind(n,31412)),WFSSourceWorker:()=>Promise.all([n.e(4547),n.e(1400),n.e(1534),n.e(1562),n.e(5886),n.e(3847),n.e(3419),n.e(8833),n.e(4807),n.e(3281),n.e(3230)]).then(n.bind(n,43230)),WorkerTileHandler:()=>Promise.all([n.e(4325),n.e(1785),n.e(6810),n.e(3388)]).then(n.bind(n,56456))},{CLOSE:f,ABORT:d,INVOKE:h,RESPONSE:p,OPEN_PORT:b,ON:g}=c.Cs;class m{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===c.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class y{constructor(e,t,n){this._port=e,this._getNextJob=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new m((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const r=new y(t.port1,{channel:t,client:n},(()=>null));return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=r),y.clients.set(r,n),t.port2}static loadWorker(e){const t=u[e];return t?t():Promise.resolve(null)}close(){this._post({type:f}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,n){const r=n&&n.signal,s=n&&n.transferList;if(!this._port)return Promise.reject(new o.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const l=(0,c.jt)();return new Promise(((n,o)=>{if((0,a.Hc)(r))return this._processWork(),void o((0,a.zE)());const c=(0,a.fu)(r,(()=>{const e=this._outJobs.get(l);e&&(this._outJobs.delete(l),this._processWork(),(0,i.hw)(e.abortHandle),this._post({type:d,jobId:l}),o((0,a.zE)()))})),u={resolve:n,reject:o,abortHandle:c,debugInfo:e};this._outJobs.set(l,u),this._post({type:h,jobId:l,methodName:e,abortable:null!=r},t,s)}))}on(e,t){const n=new MessageChannel;function r(e){t(e.data)}return this._port.postMessage({type:c.Cs.ON,eventType:e,port:n.port2},[n.port2]),n.port1.addEventListener("message",r),n.port1.start(),{remove(){n.port1.postMessage({type:c.Cs.CLOSE}),n.port1.close(),n.port1.removeEventListener("message",r)}}}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:b,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._getNextJob();if(!e)return;const{methodName:t,data:n,invokeOptions:r,deferred:o}=e;this.invoke(t,n,r).then((e=>o.resolve(e))).catch((e=>o.reject(e)))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{(0,i.hw)(e.abortHandle),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,c.QM)(e);if(t)switch(t.type){case p:this._onResponseMessage(t);break;case h:this._invokeQueue.push(t);break;case d:this._onAbortMessage(t);break;case f:this._onCloseMessage();break;case b:this._onOpenPortMessage(t);break;case g:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,n=e.jobId,r=t.get(n);this._invokeQueue.push(e),r&&(r.controller&&r.controller.abort(),t.delete(n))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&y.clients.get(this)===e&&e.destroy(),y.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:n,data:r,abortable:o}=e,s=o?new AbortController:null,i=this._inJobs;let l,u=this._client,f=u[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)u=u[e[t]],f=u[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);l=f.call(u,r,{client:this,signal:s?s.signal:null})}catch(e){return void this._post({type:p,jobId:n,error:(0,c.AB)(e)})}(0,a.y8)(l)?(i.set(n,{controller:s,promise:l}),l.then((e=>{i.has(n)&&(i.delete(n),this._post({type:p,jobId:n},e))}),(e=>{i.has(n)&&(i.delete(n),(0,a.D_)(e)||this._post({type:p,jobId:n,error:(0,c.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:p,jobId:n},l)}_onOpenPortMessage(e){new y(e.port,{client:this._client},(()=>null))}_onOnMessage(e){const{port:t}=e,n=this._client.on(e.eventType,(e=>{t.postMessage(e)})),r=(0,s.on)(e.port,"message",(e=>{(0,c.QM)(e)?.type===c.Cs.CLOSE&&(r.remove(),n.remove(),t.close())}))}_onResponseMessage(e){const{jobId:t,error:n,data:r}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.hw)(a.abortHandle),n?a.reject(o.Z.fromJSON(JSON.parse(n))):a.resolve(r)}_post(e,t,n){return(0,c.oi)(this._port,e,t,n)}}y.kernelInfo={revision:l.$,version:r.i8,buildDate:l.r},y.clients=new Map},94362:(e,t,n)=>{"use strict";n.d(t,{AB:()=>a,Cs:()=>r,QM:()=>l,jt:()=>i,oi:()=>c});var r,o=n(80442);!function(e){e[e.HANDSHAKE=0]="HANDSHAKE",e[e.OPEN=1]="OPEN",e[e.OPENED=2]="OPENED",e[e.RESPONSE=3]="RESPONSE",e[e.INVOKE=4]="INVOKE",e[e.ABORT=5]="ABORT",e[e.CLOSE=6]="CLOSE",e[e.OPEN_PORT=7]="OPEN_PORT",e[e.ON=8]="ON"}(r||(r={}));let s=0;function i(){return s++}function a(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function c(e,t,n,o){if(t.type===r.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==r.INVOKE&&t.type!==r.RESPONSE)return void e.postMessage(t);let s;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(n)?(s=u(o),t.data=n):(s=u(n.transferList),t.data=n.result),s?e.postMessage(t,s):e.postMessage(t)}function l(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function u(e){if(!e||!e.length)return null;if((0,o.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},40330:(e,t,n)=>{"use strict";n.d(t,{Dp:()=>l,Nv:()=>i,i8:()=>s,id:()=>a,qh:()=>c});var r=n(80442),o=n(17452);const s="4.25",i={async request(e,t){const{default:r}=await n.e(3172).then(n.bind(n,3172)),s=e.options,i=s.responseType;s.signal=t?.signal,s.responseType="native"===i||"native-request-init"===i?"native-request-init":i&&["blob","json","text"].includes(i)&&(0,o.oh)(e.url)?.after?i:"array-buffer";const a=await r(e.url,s),c={data:a.data,ssl:a.ssl};switch(a.requestOptions?.responseType){case"native-request-init":return delete c.data.signal,c;case"blob":c.data=await c.data.arrayBuffer();break;case"json":c.data=(new TextEncoder).encode(JSON.stringify(c.data)).buffer;break;case"text":c.data=(new TextEncoder).encode(c.data).buffer}return{result:c,transferList:[c.data]}}};let a;function c(e){a=e}function l(e){const t=a&&a.findCredential(e);return t&&t.token?(0,o.ZN)(e,"token",t.token):e}(0,r.Z)("host-webworker")},17202:(e,t,n)=>{"use strict";n.d(t,{$:()=>o,r:()=>r});const r="20220920",o="5c81dd50107ced74ff94949ba05e5cc0ef3727c0"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.m=e,n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"chunks/"+{9:"0ce19b0c3a0452435992",98:"6c076fb126d2363c903b",212:"f436c86f86236ea7ea04",223:"36dd5654df5c7f00406d",247:"9d9e3a38c54c41f7764c",402:"b8eba8c9d5424a7ae5f2",556:"28a60763f7d9546c1747",565:"c0142d207900d8b40b46",576:"7fdd029a76a7ab1c3d83",577:"a618a52ccaf08e30b82d",586:"0059699bf824f851d51c",639:"f607bb297787cc5987f5",661:"bee19483591ff9994495",665:"fb1d0ac4b4f45830e5cf",739:"b3aa600c37450acd8640",802:"dae39baaab110eafce8b",812:"a6bca595116302fc142a",819:"d1ead6e8aa7e8e21fbc6",837:"323a32a96719a7783b63",903:"6654f9180c8a1bf6d34e",1070:"3035bd57a1f76fae26a4",1074:"1dcdde67304e8fe11fc0",1387:"fddd4ea487788e003fb1",1400:"4edde17d8a157f95763e",1408:"ecb8a32e4a58ca587f99",1412:"d92975e56a1290255252",1421:"6196cfdeb91ceba52af3",1423:"d31bbb13af45ce8e45dc",1433:"4d5bdf18feeb9c8cb6ff",1437:"d816ed97386ecd1f6281",1491:"6e73ea9c879a2f81b3a3",1534:"23c62db9cebe57f7d434",1562:"14ea96e398f4842abe4e",1761:"9d0362b82f06705b298f",1773:"03ba86d2fd88270a0af4",1785:"3b5be512567d9c1c6fe6",1819:"5b16b30ac3166f33e81e",1878:"4fe47e334fc03531eb07",2062:"51289d2f5277af4023e9",2133:"674fa5b93704ef08c9e8",2134:"cb2dc84d972469445da6",2533:"4969b64dc17378d7781f",2664:"8aa4811fe392530c6101",2855:"c270e544f14617de4955",2958:"f0c4b408a0b88adf6576",3027:"2e44aee22e70857b893c",3121:"5d3fabe66e1bce1b30fb",3172:"f2d65c54a65f3f2d30d9",3230:"d75fcf97569beebbdf0c",3281:"9eb9f53849bc76a5c613",3359:"de128d8a643b4297940b",3388:"169f4354a375db5de121",3419:"61071017da542d554661",3492:"1596b8a7b9c6533684d3",3529:"8588cbecb8e808f451fe",3645:"f684794c7fd8267f5331",3668:"426af64371bc3d0e7261",3758:"a6e5b65d83e3cf6282fd",3810:"64a6b837f1d5d7ad7619",3847:"2e4a53412cf5bba1dfa5",3852:"b71a0a8a2f446c671161",4028:"1c65fd714f637ac1ee8c",4133:"d23f2b797c3ad0d83352",4166:"87c78e7b6a107081bc7a",4210:"d1be3ab7846e3a555b6c",4242:"4c0e8faf55fcb0d97d18",4268:"a39a51e8a8369f6489bb",4325:"d91140bc583925e4faf6",4358:"71a4618d959a09302c51",4370:"7af3f29a2365afebb36b",4436:"2ed23dd5fbb4e02ae101",4475:"988a142646a0b05c9814",4499:"5035c5d268a786f65882",4547:"3900c702242358c5d00e",4588:"e232e442b8efb4076cc4",4599:"e6c66a61b7b5ac4aef54",4685:"8874e69378a27d155f9d",4695:"cfd83bad25be40fe14e9",4807:"0331d80950a92b189d18",4889:"16e9bd57f774944d0bf8",4960:"7d0929d327070e00fbc7",5207:"e20e99f8f76f5002437e",5235:"4e4cfd13ad3401f14183",5259:"1455944edeba1560eb07",5329:"0e21e5b4d065567a6a91",5348:"5880fa48bad79a7c93ab",5587:"77d52ec851c330b516bb",5732:"469ba1b24cdeea0758ec",5837:"ed59ec7a8688437ebdbc",5853:"36c468c5ccc4ea71ed78",5886:"9662da3e1e37f3445186",6233:"82b04846512f4001de3d",6237:"b686422160ea7e7ff5bb",6406:"f3be17d37b3d1aa90505",6448:"6a20d8740ec2a5b2c579",6459:"be93b0cef85665446944",6481:"1570676351a313f1841b",6584:"05f761a78224990cea70",6710:"d828a0656e7351a74fc4",6748:"64de93865088bbe0398f",6774:"c8402e32307a7b7eaaeb",6810:"9bbcf17003f5650c4d96",6841:"31de71018575457155e5",6925:"e4747c5e6f5d441b2104",6968:"053564e659222e8f0efb",7035:"d0e6568f4a90a68235b4",7049:"0bdd6470856f859562f8",7126:"a8b66d0a3418896f6581",7202:"58824250492b89ec24ea",7269:"8bab21bc6164a593278f",7272:"1c1f6c8915c4c28eba1d",7277:"8ba83fee56dd4f306d87",7374:"11206aeb37df1aa62295",7459:"7d8bebbd36e7e1148a67",7483:"9f31ab2247c9defb882c",7541:"8ee976e761c4124a2a75",7572:"25827c46756a4069b221",7631:"0657ebbe3b1923d1eefb",7845:"8179031362a3b32545a1",7873:"4c989506b46bfec9c5ed",7948:"471238134f41747cd1af",8050:"7388f47c41e3410063fb",8062:"3be3de163581413e215d",8071:"c9d655675552dcf6cef7",8096:"65a17578aa31f17958e6",8227:"ee04b1c0c42cb1b18b24",8244:"40ede4078b22791344a6",8326:"43e4560d65e5ddeeef6f",8363:"92409748c19c24038548",8636:"f5d10ea7b8888f822b0c",8694:"2d70499eacbd1d2a33a7",8758:"6693e43af546e6eb3f16",8828:"a234c056b1f872976a95",8833:"e00327925ca82b63fded",8850:"8b08e9883ebae3eef429",8889:"8ec1d673bdd734c94253",8899:"289407f6010ac0ac5ac2",9070:"f67357b3c6c591c9da5e",9138:"d5650f455ce5ba15ad10",9169:"76b75ac18c8239687321",9268:"2c4938512dd726a177dd",9291:"59970b147f3dfe00b649",9296:"9a7c08c3464f7e0f72b9",9324:"7a45333de9ded92619c2",9795:"4577d03ca2bb6fffcb49",9880:"1b5bdd80db9a1a410ff8",9884:"356db8b8297282c77291",9904:"cf3e1ac63580bc495ea6",9965:"f44e4219dff47e6ec0b1"}[e]+".js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{var e={134:1};n.f.i=(t,r)=>{e[t]||importScripts(n.p+n.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],r=t.push.bind(t);t.push=t=>{var[o,s,i]=t;for(var a in s)n.o(s,a)&&(n.m[a]=s[a]);for(i&&i(n);o.length;)e[o.pop()]=1;r(t)}})(),n(88277);var r=n(25045);RemoteClient=r})();
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4807,661],{52138:(t,n,a)=>{a.d(n,{a:()=>o,d:()=>d,e:()=>M,f:()=>m,g:()=>f,h:()=>l,i:()=>r,j:()=>X,k:()=>g,l:()=>u,m:()=>c,s:()=>s,t:()=>h,x:()=>Y,y:()=>x});var i=a(65617),e=a(46851);function s(t,n,a,i,e,s,r,h,o,c,l,u,M,m,f,d,x){return t[0]=n,t[1]=a,t[2]=i,t[3]=e,t[4]=s,t[5]=r,t[6]=h,t[7]=o,t[8]=c,t[9]=l,t[10]=u,t[11]=M,t[12]=m,t[13]=f,t[14]=d,t[15]=x,t}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function h(t,n){if(t===n){const a=n[1],i=n[2],e=n[3],s=n[6],r=n[7],h=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=a,t[6]=n[9],t[7]=n[13],t[8]=i,t[9]=s,t[11]=n[14],t[12]=e,t[13]=r,t[14]=h}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function o(t,n){const a=n[0],i=n[1],e=n[2],s=n[3],r=n[4],h=n[5],o=n[6],c=n[7],l=n[8],u=n[9],M=n[10],m=n[11],f=n[12],d=n[13],x=n[14],_=n[15],b=a*h-i*r,p=a*o-e*r,g=a*c-s*r,X=i*o-e*h,Y=i*c-s*h,B=e*c-s*o,q=l*d-u*f,w=l*x-M*f,v=l*_-m*f,S=u*x-M*d,R=u*_-m*d,y=M*_-m*x;let j=b*y-p*R+g*S+X*v-Y*w+B*q;return j?(j=1/j,t[0]=(h*y-o*R+c*S)*j,t[1]=(e*R-i*y-s*S)*j,t[2]=(d*B-x*Y+_*X)*j,t[3]=(M*Y-u*B-m*X)*j,t[4]=(o*v-r*y-c*w)*j,t[5]=(a*y-e*v+s*w)*j,t[6]=(x*g-f*B-_*p)*j,t[7]=(l*B-M*g+m*p)*j,t[8]=(r*R-h*v+c*q)*j,t[9]=(i*v-a*R-s*q)*j,t[10]=(f*Y-d*g+_*b)*j,t[11]=(u*g-l*Y-m*b)*j,t[12]=(h*w-r*S-o*q)*j,t[13]=(a*S-i*w+e*q)*j,t[14]=(d*p-f*X-x*b)*j,t[15]=(l*X-u*p+M*b)*j,t):null}function c(t,n,a){const i=n[0],e=n[1],s=n[2],r=n[3],h=n[4],o=n[5],c=n[6],l=n[7],u=n[8],M=n[9],m=n[10],f=n[11],d=n[12],x=n[13],_=n[14],b=n[15];let p=a[0],g=a[1],X=a[2],Y=a[3];return t[0]=p*i+g*h+X*u+Y*d,t[1]=p*e+g*o+X*M+Y*x,t[2]=p*s+g*c+X*m+Y*_,t[3]=p*r+g*l+X*f+Y*b,p=a[4],g=a[5],X=a[6],Y=a[7],t[4]=p*i+g*h+X*u+Y*d,t[5]=p*e+g*o+X*M+Y*x,t[6]=p*s+g*c+X*m+Y*_,t[7]=p*r+g*l+X*f+Y*b,p=a[8],g=a[9],X=a[10],Y=a[11],t[8]=p*i+g*h+X*u+Y*d,t[9]=p*e+g*o+X*M+Y*x,t[10]=p*s+g*c+X*m+Y*_,t[11]=p*r+g*l+X*f+Y*b,p=a[12],g=a[13],X=a[14],Y=a[15],t[12]=p*i+g*h+X*u+Y*d,t[13]=p*e+g*o+X*M+Y*x,t[14]=p*s+g*c+X*m+Y*_,t[15]=p*r+g*l+X*f+Y*b,t}function l(t,n,a){const i=a[0],e=a[1],s=a[2];if(n===t)t[12]=n[0]*i+n[4]*e+n[8]*s+n[12],t[13]=n[1]*i+n[5]*e+n[9]*s+n[13],t[14]=n[2]*i+n[6]*e+n[10]*s+n[14],t[15]=n[3]*i+n[7]*e+n[11]*s+n[15];else{const a=n[0],r=n[1],h=n[2],o=n[3],c=n[4],l=n[5],u=n[6],M=n[7],m=n[8],f=n[9],d=n[10],x=n[11];t[0]=a,t[1]=r,t[2]=h,t[3]=o,t[4]=c,t[5]=l,t[6]=u,t[7]=M,t[8]=m,t[9]=f,t[10]=d,t[11]=x,t[12]=a*i+c*e+m*s+n[12],t[13]=r*i+l*e+f*s+n[13],t[14]=h*i+u*e+d*s+n[14],t[15]=o*i+M*e+x*s+n[15]}return t}function u(t,n,a){const i=a[0],e=a[1],s=a[2];return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=n[3]*i,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*s,t[9]=n[9]*s,t[10]=n[10]*s,t[11]=n[11]*s,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,a,i){let s,r,h,o,c,l,u,M,m,f,d,x,_,b,p,g,X,Y,B,q,w,v,S,R,y=i[0],j=i[1],E=i[2],O=Math.sqrt(y*y+j*j+E*E);return O<(0,e.g)()?null:(O=1/O,y*=O,j*=O,E*=O,s=Math.sin(a),r=Math.cos(a),h=1-r,o=n[0],c=n[1],l=n[2],u=n[3],M=n[4],m=n[5],f=n[6],d=n[7],x=n[8],_=n[9],b=n[10],p=n[11],g=y*y*h+r,X=j*y*h+E*s,Y=E*y*h-j*s,B=y*j*h-E*s,q=j*j*h+r,w=E*j*h+y*s,v=y*E*h+j*s,S=j*E*h-y*s,R=E*E*h+r,t[0]=o*g+M*X+x*Y,t[1]=c*g+m*X+_*Y,t[2]=l*g+f*X+b*Y,t[3]=u*g+d*X+p*Y,t[4]=o*B+M*q+x*w,t[5]=c*B+m*q+_*w,t[6]=l*B+f*q+b*w,t[7]=u*B+d*q+p*w,t[8]=o*v+M*S+x*R,t[9]=c*v+m*S+_*R,t[10]=l*v+f*S+b*R,t[11]=u*v+d*S+p*R,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t)}function m(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function f(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function d(t,n,a){if(0===n)return r(t);let i,s,h,o=a[0],c=a[1],l=a[2],u=Math.sqrt(o*o+c*c+l*l);return u<(0,e.g)()?null:(u=1/u,o*=u,c*=u,l*=u,i=Math.sin(n),s=Math.cos(n),h=1-s,t[0]=o*o*h+s,t[1]=c*o*h+l*i,t[2]=l*o*h-c*i,t[3]=0,t[4]=o*c*h-l*i,t[5]=c*c*h+s,t[6]=l*c*h+o*i,t[7]=0,t[8]=o*l*h+c*i,t[9]=c*l*h-o*i,t[10]=l*l*h+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function x(t,n){const a=Math.sin(n),i=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=a,t[7]=0,t[8]=0,t[9]=-a,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,n,a){const i=n[0],e=n[1],s=n[2],r=n[3],h=i+i,o=e+e,c=s+s,l=i*h,u=i*o,M=i*c,m=e*o,f=e*c,d=s*c,x=r*h,_=r*o,b=r*c;return t[0]=1-(m+d),t[1]=u+b,t[2]=M-_,t[3]=0,t[4]=u-b,t[5]=1-(l+d),t[6]=f+x,t[7]=0,t[8]=M+_,t[9]=f-x,t[10]=1-(l+m),t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}const b=(0,i.c)();function p(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t[6]=n[6]-a[6],t[7]=n[7]-a[7],t[8]=n[8]-a[8],t[9]=n[9]-a[9],t[10]=n[10]-a[10],t[11]=n[11]-a[11],t[12]=n[12]-a[12],t[13]=n[13]-a[13],t[14]=n[14]-a[14],t[15]=n[15]-a[15],t}function g(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function X(t,n){if(t===n)return!0;const a=t[0],i=t[1],s=t[2],r=t[3],h=t[4],o=t[5],c=t[6],l=t[7],u=t[8],M=t[9],m=t[10],f=t[11],d=t[12],x=t[13],_=t[14],b=t[15],p=n[0],g=n[1],X=n[2],Y=n[3],B=n[4],q=n[5],w=n[6],v=n[7],S=n[8],R=n[9],y=n[10],j=n[11],E=n[12],O=n[13],P=n[14],D=n[15],F=(0,e.g)();return Math.abs(a-p)<=F*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(i-g)<=F*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(s-X)<=F*Math.max(1,Math.abs(s),Math.abs(X))&&Math.abs(r-Y)<=F*Math.max(1,Math.abs(r),Math.abs(Y))&&Math.abs(h-B)<=F*Math.max(1,Math.abs(h),Math.abs(B))&&Math.abs(o-q)<=F*Math.max(1,Math.abs(o),Math.abs(q))&&Math.abs(c-w)<=F*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(l-v)<=F*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-S)<=F*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(M-R)<=F*Math.max(1,Math.abs(M),Math.abs(R))&&Math.abs(m-y)<=F*Math.max(1,Math.abs(m),Math.abs(y))&&Math.abs(f-j)<=F*Math.max(1,Math.abs(f),Math.abs(j))&&Math.abs(d-E)<=F*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(x-O)<=F*Math.max(1,Math.abs(x),Math.abs(O))&&Math.abs(_-P)<=F*Math.max(1,Math.abs(_),Math.abs(P))&&Math.abs(b-D)<=F*Math.max(1,Math.abs(b),Math.abs(D))}function Y(t){const n=(0,e.g)(),a=t[0],i=t[1],s=t[2],r=t[4],h=t[5],o=t[6],c=t[8],l=t[9],u=t[10];return Math.abs(1-(a*a+r*r+c*c))<=n&&Math.abs(1-(i*i+h*h+l*l))<=n&&Math.abs(1-(s*s+o*o+u*u))<=n}const B=c,q=p;Object.freeze(Object.defineProperty({__proto__:null,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t},set:s,identity:r,transpose:h,invert:o,adjoint:function(t,n){const a=n[0],i=n[1],e=n[2],s=n[3],r=n[4],h=n[5],o=n[6],c=n[7],l=n[8],u=n[9],M=n[10],m=n[11],f=n[12],d=n[13],x=n[14],_=n[15];return t[0]=h*(M*_-m*x)-u*(o*_-c*x)+d*(o*m-c*M),t[1]=-(i*(M*_-m*x)-u*(e*_-s*x)+d*(e*m-s*M)),t[2]=i*(o*_-c*x)-h*(e*_-s*x)+d*(e*c-s*o),t[3]=-(i*(o*m-c*M)-h*(e*m-s*M)+u*(e*c-s*o)),t[4]=-(r*(M*_-m*x)-l*(o*_-c*x)+f*(o*m-c*M)),t[5]=a*(M*_-m*x)-l*(e*_-s*x)+f*(e*m-s*M),t[6]=-(a*(o*_-c*x)-r*(e*_-s*x)+f*(e*c-s*o)),t[7]=a*(o*m-c*M)-r*(e*m-s*M)+l*(e*c-s*o),t[8]=r*(u*_-m*d)-l*(h*_-c*d)+f*(h*m-c*u),t[9]=-(a*(u*_-m*d)-l*(i*_-s*d)+f*(i*m-s*u)),t[10]=a*(h*_-c*d)-r*(i*_-s*d)+f*(i*c-s*h),t[11]=-(a*(h*m-c*u)-r*(i*m-s*u)+l*(i*c-s*h)),t[12]=-(r*(u*x-M*d)-l*(h*x-o*d)+f*(h*M-o*u)),t[13]=a*(u*x-M*d)-l*(i*x-e*d)+f*(i*M-e*u),t[14]=-(a*(h*x-o*d)-r*(i*x-e*d)+f*(i*o-e*h)),t[15]=a*(h*M-o*u)-r*(i*M-e*u)+l*(i*o-e*h),t},determinant:function(t){const n=t[0],a=t[1],i=t[2],e=t[3],s=t[4],r=t[5],h=t[6],o=t[7],c=t[8],l=t[9],u=t[10],M=t[11],m=t[12],f=t[13],d=t[14],x=t[15];return(n*r-a*s)*(u*x-M*d)-(n*h-i*s)*(l*x-M*f)+(n*o-e*s)*(l*d-u*f)+(a*h-i*r)*(c*x-M*m)-(a*o-e*r)*(c*d-u*m)+(i*o-e*h)*(c*f-l*m)},multiply:c,translate:l,scale:u,rotate:M,rotateX:function(t,n,a){const i=Math.sin(a),e=Math.cos(a),s=n[4],r=n[5],h=n[6],o=n[7],c=n[8],l=n[9],u=n[10],M=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=s*e+c*i,t[5]=r*e+l*i,t[6]=h*e+u*i,t[7]=o*e+M*i,t[8]=c*e-s*i,t[9]=l*e-r*i,t[10]=u*e-h*i,t[11]=M*e-o*i,t},rotateY:function(t,n,a){const i=Math.sin(a),e=Math.cos(a),s=n[0],r=n[1],h=n[2],o=n[3],c=n[8],l=n[9],u=n[10],M=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*e-c*i,t[1]=r*e-l*i,t[2]=h*e-u*i,t[3]=o*e-M*i,t[8]=s*i+c*e,t[9]=r*i+l*e,t[10]=h*i+u*e,t[11]=o*i+M*e,t},rotateZ:function(t,n,a){const i=Math.sin(a),e=Math.cos(a),s=n[0],r=n[1],h=n[2],o=n[3],c=n[4],l=n[5],u=n[6],M=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*e+c*i,t[1]=r*e+l*i,t[2]=h*e+u*i,t[3]=o*e+M*i,t[4]=c*e-s*i,t[5]=l*e-r*i,t[6]=u*e-h*i,t[7]=M*e-o*i,t},fromTranslation:m,fromScaling:f,fromRotation:d,fromXRotation:x,fromYRotation:function(t,n){const a=Math.sin(n),i=Math.cos(n);return t[0]=i,t[1]=0,t[2]=-a,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=a,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,n){const a=Math.sin(n),i=Math.cos(n);return t[0]=i,t[1]=a,t[2]=0,t[3]=0,t[4]=-a,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:_,fromQuat2:function(t,n){const a=b,i=-n[0],e=-n[1],s=-n[2],r=n[3],h=n[4],o=n[5],c=n[6],l=n[7],u=i*i+e*e+s*s+r*r;return u>0?(a[0]=2*(h*r+l*i+o*s-c*e)/u,a[1]=2*(o*r+l*e+c*i-h*s)/u,a[2]=2*(c*r+l*s+h*e-o*i)/u):(a[0]=2*(h*r+l*i+o*s-c*e),a[1]=2*(o*r+l*e+c*i-h*s),a[2]=2*(c*r+l*s+h*e-o*i)),_(t,n,a),t},getTranslation:function(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t},getScaling:function(t,n){const a=n[0],i=n[1],e=n[2],s=n[4],r=n[5],h=n[6],o=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(a*a+i*i+e*e),t[1]=Math.sqrt(s*s+r*r+h*h),t[2]=Math.sqrt(o*o+c*c+l*l),t},getRotation:function(t,n){const a=n[0]+n[5]+n[10];let i=0;return a>0?(i=2*Math.sqrt(a+1),t[3]=.25*i,t[0]=(n[6]-n[9])/i,t[1]=(n[8]-n[2])/i,t[2]=(n[1]-n[4])/i):n[0]>n[5]&&n[0]>n[10]?(i=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/i,t[0]=.25*i,t[1]=(n[1]+n[4])/i,t[2]=(n[8]+n[2])/i):n[5]>n[10]?(i=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/i,t[0]=(n[1]+n[4])/i,t[1]=.25*i,t[2]=(n[6]+n[9])/i):(i=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/i,t[0]=(n[8]+n[2])/i,t[1]=(n[6]+n[9])/i,t[2]=.25*i),t},fromRotationTranslationScale:function(t,n,a,i){const e=n[0],s=n[1],r=n[2],h=n[3],o=e+e,c=s+s,l=r+r,u=e*o,M=e*c,m=e*l,f=s*c,d=s*l,x=r*l,_=h*o,b=h*c,p=h*l,g=i[0],X=i[1],Y=i[2];return t[0]=(1-(f+x))*g,t[1]=(M+p)*g,t[2]=(m-b)*g,t[3]=0,t[4]=(M-p)*X,t[5]=(1-(u+x))*X,t[6]=(d+_)*X,t[7]=0,t[8]=(m+b)*Y,t[9]=(d-_)*Y,t[10]=(1-(u+f))*Y,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t},fromRotationTranslationScaleOrigin:function(t,n,a,i,e){const s=n[0],r=n[1],h=n[2],o=n[3],c=s+s,l=r+r,u=h+h,M=s*c,m=s*l,f=s*u,d=r*l,x=r*u,_=h*u,b=o*c,p=o*l,g=o*u,X=i[0],Y=i[1],B=i[2],q=e[0],w=e[1],v=e[2],S=(1-(d+_))*X,R=(m+g)*X,y=(f-p)*X,j=(m-g)*Y,E=(1-(M+_))*Y,O=(x+b)*Y,P=(f+p)*B,D=(x-b)*B,F=(1-(M+d))*B;return t[0]=S,t[1]=R,t[2]=y,t[3]=0,t[4]=j,t[5]=E,t[6]=O,t[7]=0,t[8]=P,t[9]=D,t[10]=F,t[11]=0,t[12]=a[0]+q-(S*q+j*w+P*v),t[13]=a[1]+w-(R*q+E*w+D*v),t[14]=a[2]+v-(y*q+O*w+F*v),t[15]=1,t},fromQuat:function(t,n){const a=n[0],i=n[1],e=n[2],s=n[3],r=a+a,h=i+i,o=e+e,c=a*r,l=i*r,u=i*h,M=e*r,m=e*h,f=e*o,d=s*r,x=s*h,_=s*o;return t[0]=1-u-f,t[1]=l+_,t[2]=M-x,t[3]=0,t[4]=l-_,t[5]=1-c-f,t[6]=m+d,t[7]=0,t[8]=M+x,t[9]=m-d,t[10]=1-c-u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,n,a,i,e,s,r){const h=1/(a-n),o=1/(e-i),c=1/(s-r);return t[0]=2*s*h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*o,t[6]=0,t[7]=0,t[8]=(a+n)*h,t[9]=(e+i)*o,t[10]=(r+s)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=r*s*2*c,t[15]=0,t},perspective:function(t,n,a,i,e){const s=1/Math.tan(n/2);let r;return t[0]=s/a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=e&&e!==1/0?(r=1/(i-e),t[10]=(e+i)*r,t[14]=2*e*i*r):(t[10]=-1,t[14]=-2*i),t},perspectiveFromFieldOfView:function(t,n,a,i){const e=Math.tan(n.upDegrees*Math.PI/180),s=Math.tan(n.downDegrees*Math.PI/180),r=Math.tan(n.leftDegrees*Math.PI/180),h=Math.tan(n.rightDegrees*Math.PI/180),o=2/(r+h),c=2/(e+s);return t[0]=o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(r-h)*o*.5,t[9]=(e-s)*c*.5,t[10]=i/(a-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*a/(a-i),t[15]=0,t},ortho:function(t,n,a,i,e,s,r){const h=1/(n-a),o=1/(i-e),c=1/(s-r);return t[0]=-2*h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+a)*h,t[13]=(e+i)*o,t[14]=(r+s)*c,t[15]=1,t},lookAt:function(t,n,a,i){let s,h,o,c,l,u,M,m,f,d;const x=n[0],_=n[1],b=n[2],p=i[0],g=i[1],X=i[2],Y=a[0],B=a[1],q=a[2],w=(0,e.g)();return Math.abs(x-Y)<w&&Math.abs(_-B)<w&&Math.abs(b-q)<w?r(t):(M=x-Y,m=_-B,f=b-q,d=1/Math.sqrt(M*M+m*m+f*f),M*=d,m*=d,f*=d,s=g*f-X*m,h=X*M-p*f,o=p*m-g*M,d=Math.sqrt(s*s+h*h+o*o),d?(d=1/d,s*=d,h*=d,o*=d):(s=0,h=0,o=0),c=m*o-f*h,l=f*s-M*o,u=M*h-m*s,d=Math.sqrt(c*c+l*l+u*u),d?(d=1/d,c*=d,l*=d,u*=d):(c=0,l=0,u=0),t[0]=s,t[1]=c,t[2]=M,t[3]=0,t[4]=h,t[5]=l,t[6]=m,t[7]=0,t[8]=o,t[9]=u,t[10]=f,t[11]=0,t[12]=-(s*x+h*_+o*b),t[13]=-(c*x+l*_+u*b),t[14]=-(M*x+m*_+f*b),t[15]=1,t)},targetTo:function(t,n,a,i){const e=n[0],s=n[1],r=n[2],h=i[0],o=i[1],c=i[2];let l=e-a[0],u=s-a[1],M=r-a[2],m=l*l+u*u+M*M;m>0&&(m=1/Math.sqrt(m),l*=m,u*=m,M*=m);let f=o*M-c*u,d=c*l-h*M,x=h*u-o*l;return m=f*f+d*d+x*x,m>0&&(m=1/Math.sqrt(m),f*=m,d*=m,x*=m),t[0]=f,t[1]=d,t[2]=x,t[3]=0,t[4]=u*x-M*d,t[5]=M*f-l*x,t[6]=l*d-u*f,t[7]=0,t[8]=l,t[9]=u,t[10]=M,t[11]=0,t[12]=e,t[13]=s,t[14]=r,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},add:function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t[6]=n[6]+a[6],t[7]=n[7]+a[7],t[8]=n[8]+a[8],t[9]=n[9]+a[9],t[10]=n[10]+a[10],t[11]=n[11]+a[11],t[12]=n[12]+a[12],t[13]=n[13]+a[13],t[14]=n[14]+a[14],t[15]=n[15]+a[15],t},subtract:p,multiplyScalar:function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12]*a,t[13]=n[13]*a,t[14]=n[14]*a,t[15]=n[15]*a,t},multiplyScalarAndAdd:function(t,n,a,i){return t[0]=n[0]+a[0]*i,t[1]=n[1]+a[1]*i,t[2]=n[2]+a[2]*i,t[3]=n[3]+a[3]*i,t[4]=n[4]+a[4]*i,t[5]=n[5]+a[5]*i,t[6]=n[6]+a[6]*i,t[7]=n[7]+a[7]*i,t[8]=n[8]+a[8]*i,t[9]=n[9]+a[9]*i,t[10]=n[10]+a[10]*i,t[11]=n[11]+a[11]*i,t[12]=n[12]+a[12]*i,t[13]=n[13]+a[13]*i,t[14]=n[14]+a[14]*i,t[15]=n[15]+a[15]*i,t},exactEquals:g,equals:X,isOrthoNormal:Y,mul:B,sub:q},Symbol.toStringTag,{value:"Module"}))},10661:(t,n,a)=>{a.d(n,{s:()=>e});var i=a(39020);class e{constructor(){this._observers=[]}observe(t){return this._observers.includes(t)||this._observers.push(t),new i.X(this._observers,t)}notify(){const t=this._observers.slice();for(let n=0;n<t.length;++n){const a=t[n];a.onInvalidated(),a.onCommitted()}}}},24133:(t,n,a)=>{a.d(n,{Q:()=>h});var i=a(67676),e=a(70586),s=a(44553),r=a(88764);class h{constructor(t=9,n){this._compareMinX=u,this._compareMinY=M,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),g.prune(),X.prune(),Y.prune(),B.prune()}all(t){this._all(this._data,t)}search(t,n){let a=this._data;const i=this._toBBox;if(b(t,a))for(g.clear();a;){for(let e=0,s=a.children.length;e<s;e++){const s=a.children[e],r=a.leaf?i(s):s;b(t,r)&&(a.leaf?n(s):_(t,r)?this._all(s,n):g.push(s))}a=g.pop()}}collides(t){let n=this._data;const a=this._toBBox;if(!b(t,n))return!1;for(g.clear();n;){for(let i=0,e=n.children.length;i<e;i++){const e=n.children[i],s=n.leaf?a(e):e;if(b(t,s)){if(n.leaf||_(t,s))return!0;g.push(e)}}n=g.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let n=0,a=t.length;n<a;n++)this.insert(t[n]);return this}let n=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===n.height)this._splitRoot(this._data,n);else{if(this._data.height<n.height){const t=this._data;this._data=n,n=t}this._insert(n,this._data.height-n.height-1,!0)}else this._data=n;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new w([]),this}remove(t){if(!t)return this;let n,a=this._data,s=null,r=0,h=!1;const o=this._toBBox(t);for(Y.clear(),B.clear();a||Y.length>0;){if(a||(a=(0,e.j0)(Y.pop()),s=Y.data[Y.length-1],r=B.pop()??0,h=!0),a.leaf&&(n=(0,i.cq)(a.children,t,a.children.length,a.indexHint),-1!==n))return a.children.splice(n,1),Y.push(a),this._condense(Y),this;h||a.leaf||!_(a,o)?s?(r++,a=s.children[r],h=!1):a=null:(Y.push(a),B.push(r),r=0,s=a,a=a.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,n){let a=t;for(X.clear();a;){if(!0===a.leaf)for(const t of a.children)n(t);else X.pushArray(a.children);a=X.pop()??null}}_build(t,n,a,i){const e=a-n+1;let s=this._maxEntries;if(e<=s){const i=new w(t.slice(n,a+1));return o(i,this._toBBox),i}i||(i=Math.ceil(Math.log(e)/Math.log(s)),s=Math.ceil(e/s**(i-1)));const r=new v([]);r.height=i;const h=Math.ceil(e/s),c=h*Math.ceil(Math.sqrt(s));p(t,n,a,c,this._compareMinX);for(let e=n;e<=a;e+=c){const n=Math.min(e+c-1,a);p(t,e,n,h,this._compareMinY);for(let a=e;a<=n;a+=h){const e=Math.min(a+h-1,n);r.children.push(this._build(t,a,e,i-1))}}return o(r,this._toBBox),r}_chooseSubtree(t,n,a,i){for(;i.push(n),!0!==n.leaf&&i.length-1!==a;){let a,i=1/0,e=1/0;for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],h=m(r),o=d(t,r)-h;o<e?(e=o,i=h<i?h:i,a=r):o===e&&h<i&&(i=h,a=r)}n=a||n.children[0]}return n}_insert(t,n,a){const i=this._toBBox,e=a?t:i(t);Y.clear();const s=this._chooseSubtree(e,this._data,n,Y);for(s.children.push(t),l(s,e);n>=0&&Y.data[n].children.length>this._maxEntries;)this._split(Y,n),n--;this._adjustParentBBoxes(e,Y,n)}_split(t,n){const a=t.data[n],i=a.children.length,e=this._minEntries;this._chooseSplitAxis(a,e,i);const s=this._chooseSplitIndex(a,e,i);if(!s)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const r=a.children.splice(s,a.children.length-s),h=a.leaf?new w(r):new v(r);h.height=a.height,o(a,this._toBBox),o(h,this._toBBox),n?t.data[n-1].children.push(h):this._splitRoot(a,h)}_splitRoot(t,n){this._data=new v([t,n]),this._data.height=t.height+1,o(this._data,this._toBBox)}_chooseSplitIndex(t,n,a){let i,e,s;i=e=1/0;for(let r=n;r<=a-n;r++){const n=c(t,0,r,this._toBBox),h=c(t,r,a,this._toBBox),o=x(n,h),l=m(n)+m(h);o<i?(i=o,s=r,e=l<e?l:e):o===i&&l<e&&(e=l,s=r)}return s}_chooseSplitAxis(t,n,a){const i=t.leaf?this._compareMinX:u,e=t.leaf?this._compareMinY:M;this._allDistMargin(t,n,a,i)<this._allDistMargin(t,n,a,e)&&t.children.sort(i)}_allDistMargin(t,n,a,i){t.children.sort(i);const e=this._toBBox,s=c(t,0,n,e),r=c(t,a-n,a,e);let h=f(s)+f(r);for(let i=n;i<a-n;i++){const n=t.children[i];l(s,t.leaf?e(n):n),h+=f(s)}for(let i=a-n-1;i>=n;i--){const n=t.children[i];l(r,t.leaf?e(n):n),h+=f(r)}return h}_adjustParentBBoxes(t,n,a){for(let i=a;i>=0;i--)l(n.data[i],t)}_condense(t){for(let n=t.length-1;n>=0;n--){const a=t.data[n];if(0===a.children.length)if(n>0){const e=t.data[n-1],s=e.children;s.splice((0,i.cq)(s,a,s.length,e.indexHint),1)}else this.clear();else o(a,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function o(t,n){c(t,0,t.children.length,n,t)}function c(t,n,a,i,e){e||(e=new w([])),e.minX=1/0,e.minY=1/0,e.maxX=-1/0,e.maxY=-1/0;for(let s,r=n;r<a;r++)s=t.children[r],l(e,t.leaf?i(s):s);return e}function l(t,n){t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY)}function u(t,n){return t.minX-n.minX}function M(t,n){return t.minY-n.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,n){return(Math.max(n.maxX,t.maxX)-Math.min(n.minX,t.minX))*(Math.max(n.maxY,t.maxY)-Math.min(n.minY,t.minY))}function x(t,n){const a=Math.max(t.minX,n.minX),i=Math.max(t.minY,n.minY),e=Math.min(t.maxX,n.maxX),s=Math.min(t.maxY,n.maxY);return Math.max(0,e-a)*Math.max(0,s-i)}function _(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function b(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function p(t,n,a,i,s){const h=[n,a];for(;h.length;){const n=(0,e.j0)(h.pop()),a=(0,e.j0)(h.pop());if(n-a<=i)continue;const o=a+Math.ceil((n-a)/i/2)*i;(0,r.q)(t,o,a,n,s),h.push(a,o,o,n)}}const g=new s.Z,X=new s.Z,Y=new s.Z,B=new s.Z({deallocator:void 0});class q extends class{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class w extends q{constructor(t){super(),this.children=t,this.leaf=!0}}class v extends q{constructor(t){super(),this.children=t,this.leaf=!1}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4807,661],{52138:(t,n,a)=>{a.d(n,{a:()=>o,d:()=>f,e:()=>M,f:()=>m,g:()=>b,h:()=>X,i:()=>r,j:()=>g,k:()=>u,m:()=>c,s:()=>s,t:()=>h,v:()=>l,x:()=>Y,y:()=>d});var i=a(65617),e=a(46851);function s(t,n,a,i,e,s,r,h,o,c,l,u,M,m,f,d,x){return t[0]=n,t[1]=a,t[2]=i,t[3]=e,t[4]=s,t[5]=r,t[6]=h,t[7]=o,t[8]=c,t[9]=l,t[10]=u,t[11]=M,t[12]=m,t[13]=f,t[14]=d,t[15]=x,t}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function h(t,n){if(t===n){const a=n[1],i=n[2],e=n[3],s=n[6],r=n[7],h=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=a,t[6]=n[9],t[7]=n[13],t[8]=i,t[9]=s,t[11]=n[14],t[12]=e,t[13]=r,t[14]=h}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function o(t,n){const a=n[0],i=n[1],e=n[2],s=n[3],r=n[4],h=n[5],o=n[6],c=n[7],l=n[8],u=n[9],M=n[10],m=n[11],f=n[12],d=n[13],x=n[14],_=n[15],b=a*h-i*r,p=a*o-e*r,g=a*c-s*r,X=i*o-e*h,Y=i*c-s*h,B=e*c-s*o,q=l*d-u*f,w=l*x-M*f,v=l*_-m*f,S=u*x-M*d,R=u*_-m*d,y=M*_-m*x;let j=b*y-p*R+g*S+X*v-Y*w+B*q;return j?(j=1/j,t[0]=(h*y-o*R+c*S)*j,t[1]=(e*R-i*y-s*S)*j,t[2]=(d*B-x*Y+_*X)*j,t[3]=(M*Y-u*B-m*X)*j,t[4]=(o*v-r*y-c*w)*j,t[5]=(a*y-e*v+s*w)*j,t[6]=(x*g-f*B-_*p)*j,t[7]=(l*B-M*g+m*p)*j,t[8]=(r*R-h*v+c*q)*j,t[9]=(i*v-a*R-s*q)*j,t[10]=(f*Y-d*g+_*b)*j,t[11]=(u*g-l*Y-m*b)*j,t[12]=(h*w-r*S-o*q)*j,t[13]=(a*S-i*w+e*q)*j,t[14]=(d*p-f*X-x*b)*j,t[15]=(l*X-u*p+M*b)*j,t):null}function c(t,n,a){const i=n[0],e=n[1],s=n[2],r=n[3],h=n[4],o=n[5],c=n[6],l=n[7],u=n[8],M=n[9],m=n[10],f=n[11],d=n[12],x=n[13],_=n[14],b=n[15];let p=a[0],g=a[1],X=a[2],Y=a[3];return t[0]=p*i+g*h+X*u+Y*d,t[1]=p*e+g*o+X*M+Y*x,t[2]=p*s+g*c+X*m+Y*_,t[3]=p*r+g*l+X*f+Y*b,p=a[4],g=a[5],X=a[6],Y=a[7],t[4]=p*i+g*h+X*u+Y*d,t[5]=p*e+g*o+X*M+Y*x,t[6]=p*s+g*c+X*m+Y*_,t[7]=p*r+g*l+X*f+Y*b,p=a[8],g=a[9],X=a[10],Y=a[11],t[8]=p*i+g*h+X*u+Y*d,t[9]=p*e+g*o+X*M+Y*x,t[10]=p*s+g*c+X*m+Y*_,t[11]=p*r+g*l+X*f+Y*b,p=a[12],g=a[13],X=a[14],Y=a[15],t[12]=p*i+g*h+X*u+Y*d,t[13]=p*e+g*o+X*M+Y*x,t[14]=p*s+g*c+X*m+Y*_,t[15]=p*r+g*l+X*f+Y*b,t}function l(t,n,a){const i=a[0],e=a[1],s=a[2];if(n===t)t[12]=n[0]*i+n[4]*e+n[8]*s+n[12],t[13]=n[1]*i+n[5]*e+n[9]*s+n[13],t[14]=n[2]*i+n[6]*e+n[10]*s+n[14],t[15]=n[3]*i+n[7]*e+n[11]*s+n[15];else{const a=n[0],r=n[1],h=n[2],o=n[3],c=n[4],l=n[5],u=n[6],M=n[7],m=n[8],f=n[9],d=n[10],x=n[11];t[0]=a,t[1]=r,t[2]=h,t[3]=o,t[4]=c,t[5]=l,t[6]=u,t[7]=M,t[8]=m,t[9]=f,t[10]=d,t[11]=x,t[12]=a*i+c*e+m*s+n[12],t[13]=r*i+l*e+f*s+n[13],t[14]=h*i+u*e+d*s+n[14],t[15]=o*i+M*e+x*s+n[15]}return t}function u(t,n,a){const i=a[0],e=a[1],s=a[2];return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=n[3]*i,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*s,t[9]=n[9]*s,t[10]=n[10]*s,t[11]=n[11]*s,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,a,i){let s,r,h,o,c,l,u,M,m,f,d,x,_,b,p,g,X,Y,B,q,w,v,S,R,y=i[0],j=i[1],E=i[2],O=Math.sqrt(y*y+j*j+E*E);return O<(0,e.g)()?null:(O=1/O,y*=O,j*=O,E*=O,s=Math.sin(a),r=Math.cos(a),h=1-r,o=n[0],c=n[1],l=n[2],u=n[3],M=n[4],m=n[5],f=n[6],d=n[7],x=n[8],_=n[9],b=n[10],p=n[11],g=y*y*h+r,X=j*y*h+E*s,Y=E*y*h-j*s,B=y*j*h-E*s,q=j*j*h+r,w=E*j*h+y*s,v=y*E*h+j*s,S=j*E*h-y*s,R=E*E*h+r,t[0]=o*g+M*X+x*Y,t[1]=c*g+m*X+_*Y,t[2]=l*g+f*X+b*Y,t[3]=u*g+d*X+p*Y,t[4]=o*B+M*q+x*w,t[5]=c*B+m*q+_*w,t[6]=l*B+f*q+b*w,t[7]=u*B+d*q+p*w,t[8]=o*v+M*S+x*R,t[9]=c*v+m*S+_*R,t[10]=l*v+f*S+b*R,t[11]=u*v+d*S+p*R,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t)}function m(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function f(t,n,a){if(0===n)return r(t);let i,s,h,o=a[0],c=a[1],l=a[2],u=Math.sqrt(o*o+c*c+l*l);return u<(0,e.g)()?null:(u=1/u,o*=u,c*=u,l*=u,i=Math.sin(n),s=Math.cos(n),h=1-s,t[0]=o*o*h+s,t[1]=c*o*h+l*i,t[2]=l*o*h-c*i,t[3]=0,t[4]=o*c*h-l*i,t[5]=c*c*h+s,t[6]=l*c*h+o*i,t[7]=0,t[8]=o*l*h+c*i,t[9]=c*l*h-o*i,t[10]=l*l*h+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function d(t,n){const a=Math.sin(n),i=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=a,t[7]=0,t[8]=0,t[9]=-a,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function x(t,n,a){const i=n[0],e=n[1],s=n[2],r=n[3],h=i+i,o=e+e,c=s+s,l=i*h,u=i*o,M=i*c,m=e*o,f=e*c,d=s*c,x=r*h,_=r*o,b=r*c;return t[0]=1-(m+d),t[1]=u+b,t[2]=M-_,t[3]=0,t[4]=u-b,t[5]=1-(l+d),t[6]=f+x,t[7]=0,t[8]=M+_,t[9]=f-x,t[10]=1-(l+m),t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}const _=(0,i.c)();function b(t,n,a,i){const e=n[0],s=n[1],r=n[2],h=n[3],o=e+e,c=s+s,l=r+r,u=e*o,M=e*c,m=e*l,f=s*c,d=s*l,x=r*l,_=h*o,b=h*c,p=h*l,g=i[0],X=i[1],Y=i[2];return t[0]=(1-(f+x))*g,t[1]=(M+p)*g,t[2]=(m-b)*g,t[3]=0,t[4]=(M-p)*X,t[5]=(1-(u+x))*X,t[6]=(d+_)*X,t[7]=0,t[8]=(m+b)*Y,t[9]=(d-_)*Y,t[10]=(1-(u+f))*Y,t[11]=0,t[12]=a[0],t[13]=a[1],t[14]=a[2],t[15]=1,t}function p(t,n,a){return t[0]=n[0]-a[0],t[1]=n[1]-a[1],t[2]=n[2]-a[2],t[3]=n[3]-a[3],t[4]=n[4]-a[4],t[5]=n[5]-a[5],t[6]=n[6]-a[6],t[7]=n[7]-a[7],t[8]=n[8]-a[8],t[9]=n[9]-a[9],t[10]=n[10]-a[10],t[11]=n[11]-a[11],t[12]=n[12]-a[12],t[13]=n[13]-a[13],t[14]=n[14]-a[14],t[15]=n[15]-a[15],t}function g(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function X(t,n){if(t===n)return!0;const a=t[0],i=t[1],s=t[2],r=t[3],h=t[4],o=t[5],c=t[6],l=t[7],u=t[8],M=t[9],m=t[10],f=t[11],d=t[12],x=t[13],_=t[14],b=t[15],p=n[0],g=n[1],X=n[2],Y=n[3],B=n[4],q=n[5],w=n[6],v=n[7],S=n[8],R=n[9],y=n[10],j=n[11],E=n[12],O=n[13],P=n[14],D=n[15],F=(0,e.g)();return Math.abs(a-p)<=F*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(i-g)<=F*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(s-X)<=F*Math.max(1,Math.abs(s),Math.abs(X))&&Math.abs(r-Y)<=F*Math.max(1,Math.abs(r),Math.abs(Y))&&Math.abs(h-B)<=F*Math.max(1,Math.abs(h),Math.abs(B))&&Math.abs(o-q)<=F*Math.max(1,Math.abs(o),Math.abs(q))&&Math.abs(c-w)<=F*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(l-v)<=F*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-S)<=F*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(M-R)<=F*Math.max(1,Math.abs(M),Math.abs(R))&&Math.abs(m-y)<=F*Math.max(1,Math.abs(m),Math.abs(y))&&Math.abs(f-j)<=F*Math.max(1,Math.abs(f),Math.abs(j))&&Math.abs(d-E)<=F*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(x-O)<=F*Math.max(1,Math.abs(x),Math.abs(O))&&Math.abs(_-P)<=F*Math.max(1,Math.abs(_),Math.abs(P))&&Math.abs(b-D)<=F*Math.max(1,Math.abs(b),Math.abs(D))}function Y(t){const n=(0,e.g)(),a=t[0],i=t[1],s=t[2],r=t[4],h=t[5],o=t[6],c=t[8],l=t[9],u=t[10];return Math.abs(1-(a*a+r*r+c*c))<=n&&Math.abs(1-(i*i+h*h+l*l))<=n&&Math.abs(1-(s*s+o*o+u*u))<=n}const B=c,q=p;Object.freeze(Object.defineProperty({__proto__:null,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t},set:s,identity:r,transpose:h,invert:o,adjoint:function(t,n){const a=n[0],i=n[1],e=n[2],s=n[3],r=n[4],h=n[5],o=n[6],c=n[7],l=n[8],u=n[9],M=n[10],m=n[11],f=n[12],d=n[13],x=n[14],_=n[15];return t[0]=h*(M*_-m*x)-u*(o*_-c*x)+d*(o*m-c*M),t[1]=-(i*(M*_-m*x)-u*(e*_-s*x)+d*(e*m-s*M)),t[2]=i*(o*_-c*x)-h*(e*_-s*x)+d*(e*c-s*o),t[3]=-(i*(o*m-c*M)-h*(e*m-s*M)+u*(e*c-s*o)),t[4]=-(r*(M*_-m*x)-l*(o*_-c*x)+f*(o*m-c*M)),t[5]=a*(M*_-m*x)-l*(e*_-s*x)+f*(e*m-s*M),t[6]=-(a*(o*_-c*x)-r*(e*_-s*x)+f*(e*c-s*o)),t[7]=a*(o*m-c*M)-r*(e*m-s*M)+l*(e*c-s*o),t[8]=r*(u*_-m*d)-l*(h*_-c*d)+f*(h*m-c*u),t[9]=-(a*(u*_-m*d)-l*(i*_-s*d)+f*(i*m-s*u)),t[10]=a*(h*_-c*d)-r*(i*_-s*d)+f*(i*c-s*h),t[11]=-(a*(h*m-c*u)-r*(i*m-s*u)+l*(i*c-s*h)),t[12]=-(r*(u*x-M*d)-l*(h*x-o*d)+f*(h*M-o*u)),t[13]=a*(u*x-M*d)-l*(i*x-e*d)+f*(i*M-e*u),t[14]=-(a*(h*x-o*d)-r*(i*x-e*d)+f*(i*o-e*h)),t[15]=a*(h*M-o*u)-r*(i*M-e*u)+l*(i*o-e*h),t},determinant:function(t){const n=t[0],a=t[1],i=t[2],e=t[3],s=t[4],r=t[5],h=t[6],o=t[7],c=t[8],l=t[9],u=t[10],M=t[11],m=t[12],f=t[13],d=t[14],x=t[15];return(n*r-a*s)*(u*x-M*d)-(n*h-i*s)*(l*x-M*f)+(n*o-e*s)*(l*d-u*f)+(a*h-i*r)*(c*x-M*m)-(a*o-e*r)*(c*d-u*m)+(i*o-e*h)*(c*f-l*m)},multiply:c,translate:l,scale:u,rotate:M,rotateX:function(t,n,a){const i=Math.sin(a),e=Math.cos(a),s=n[4],r=n[5],h=n[6],o=n[7],c=n[8],l=n[9],u=n[10],M=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=s*e+c*i,t[5]=r*e+l*i,t[6]=h*e+u*i,t[7]=o*e+M*i,t[8]=c*e-s*i,t[9]=l*e-r*i,t[10]=u*e-h*i,t[11]=M*e-o*i,t},rotateY:function(t,n,a){const i=Math.sin(a),e=Math.cos(a),s=n[0],r=n[1],h=n[2],o=n[3],c=n[8],l=n[9],u=n[10],M=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*e-c*i,t[1]=r*e-l*i,t[2]=h*e-u*i,t[3]=o*e-M*i,t[8]=s*i+c*e,t[9]=r*i+l*e,t[10]=h*i+u*e,t[11]=o*i+M*e,t},rotateZ:function(t,n,a){const i=Math.sin(a),e=Math.cos(a),s=n[0],r=n[1],h=n[2],o=n[3],c=n[4],l=n[5],u=n[6],M=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*e+c*i,t[1]=r*e+l*i,t[2]=h*e+u*i,t[3]=o*e+M*i,t[4]=c*e-s*i,t[5]=l*e-r*i,t[6]=u*e-h*i,t[7]=M*e-o*i,t},fromTranslation:m,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotation:f,fromXRotation:d,fromYRotation:function(t,n){const a=Math.sin(n),i=Math.cos(n);return t[0]=i,t[1]=0,t[2]=-a,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=a,t[9]=0,t[10]=i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,n){const a=Math.sin(n),i=Math.cos(n);return t[0]=i,t[1]=a,t[2]=0,t[3]=0,t[4]=-a,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:x,fromQuat2:function(t,n){const a=_,i=-n[0],e=-n[1],s=-n[2],r=n[3],h=n[4],o=n[5],c=n[6],l=n[7],u=i*i+e*e+s*s+r*r;return u>0?(a[0]=2*(h*r+l*i+o*s-c*e)/u,a[1]=2*(o*r+l*e+c*i-h*s)/u,a[2]=2*(c*r+l*s+h*e-o*i)/u):(a[0]=2*(h*r+l*i+o*s-c*e),a[1]=2*(o*r+l*e+c*i-h*s),a[2]=2*(c*r+l*s+h*e-o*i)),x(t,n,a),t},getTranslation:function(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t},getScaling:function(t,n){const a=n[0],i=n[1],e=n[2],s=n[4],r=n[5],h=n[6],o=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(a*a+i*i+e*e),t[1]=Math.sqrt(s*s+r*r+h*h),t[2]=Math.sqrt(o*o+c*c+l*l),t},getRotation:function(t,n){const a=n[0]+n[5]+n[10];let i=0;return a>0?(i=2*Math.sqrt(a+1),t[3]=.25*i,t[0]=(n[6]-n[9])/i,t[1]=(n[8]-n[2])/i,t[2]=(n[1]-n[4])/i):n[0]>n[5]&&n[0]>n[10]?(i=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/i,t[0]=.25*i,t[1]=(n[1]+n[4])/i,t[2]=(n[8]+n[2])/i):n[5]>n[10]?(i=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/i,t[0]=(n[1]+n[4])/i,t[1]=.25*i,t[2]=(n[6]+n[9])/i):(i=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/i,t[0]=(n[8]+n[2])/i,t[1]=(n[6]+n[9])/i,t[2]=.25*i),t},fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(t,n,a,i,e){const s=n[0],r=n[1],h=n[2],o=n[3],c=s+s,l=r+r,u=h+h,M=s*c,m=s*l,f=s*u,d=r*l,x=r*u,_=h*u,b=o*c,p=o*l,g=o*u,X=i[0],Y=i[1],B=i[2],q=e[0],w=e[1],v=e[2],S=(1-(d+_))*X,R=(m+g)*X,y=(f-p)*X,j=(m-g)*Y,E=(1-(M+_))*Y,O=(x+b)*Y,P=(f+p)*B,D=(x-b)*B,F=(1-(M+d))*B;return t[0]=S,t[1]=R,t[2]=y,t[3]=0,t[4]=j,t[5]=E,t[6]=O,t[7]=0,t[8]=P,t[9]=D,t[10]=F,t[11]=0,t[12]=a[0]+q-(S*q+j*w+P*v),t[13]=a[1]+w-(R*q+E*w+D*v),t[14]=a[2]+v-(y*q+O*w+F*v),t[15]=1,t},fromQuat:function(t,n){const a=n[0],i=n[1],e=n[2],s=n[3],r=a+a,h=i+i,o=e+e,c=a*r,l=i*r,u=i*h,M=e*r,m=e*h,f=e*o,d=s*r,x=s*h,_=s*o;return t[0]=1-u-f,t[1]=l+_,t[2]=M-x,t[3]=0,t[4]=l-_,t[5]=1-c-f,t[6]=m+d,t[7]=0,t[8]=M+x,t[9]=m-d,t[10]=1-c-u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,n,a,i,e,s,r){const h=1/(a-n),o=1/(e-i),c=1/(s-r);return t[0]=2*s*h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*o,t[6]=0,t[7]=0,t[8]=(a+n)*h,t[9]=(e+i)*o,t[10]=(r+s)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=r*s*2*c,t[15]=0,t},perspective:function(t,n,a,i,e){const s=1/Math.tan(n/2);let r;return t[0]=s/a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=e&&e!==1/0?(r=1/(i-e),t[10]=(e+i)*r,t[14]=2*e*i*r):(t[10]=-1,t[14]=-2*i),t},perspectiveFromFieldOfView:function(t,n,a,i){const e=Math.tan(n.upDegrees*Math.PI/180),s=Math.tan(n.downDegrees*Math.PI/180),r=Math.tan(n.leftDegrees*Math.PI/180),h=Math.tan(n.rightDegrees*Math.PI/180),o=2/(r+h),c=2/(e+s);return t[0]=o,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(r-h)*o*.5,t[9]=(e-s)*c*.5,t[10]=i/(a-i),t[11]=-1,t[12]=0,t[13]=0,t[14]=i*a/(a-i),t[15]=0,t},ortho:function(t,n,a,i,e,s,r){const h=1/(n-a),o=1/(i-e),c=1/(s-r);return t[0]=-2*h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+a)*h,t[13]=(e+i)*o,t[14]=(r+s)*c,t[15]=1,t},lookAt:function(t,n,a,i){let s,h,o,c,l,u,M,m,f,d;const x=n[0],_=n[1],b=n[2],p=i[0],g=i[1],X=i[2],Y=a[0],B=a[1],q=a[2],w=(0,e.g)();return Math.abs(x-Y)<w&&Math.abs(_-B)<w&&Math.abs(b-q)<w?r(t):(M=x-Y,m=_-B,f=b-q,d=1/Math.sqrt(M*M+m*m+f*f),M*=d,m*=d,f*=d,s=g*f-X*m,h=X*M-p*f,o=p*m-g*M,d=Math.sqrt(s*s+h*h+o*o),d?(d=1/d,s*=d,h*=d,o*=d):(s=0,h=0,o=0),c=m*o-f*h,l=f*s-M*o,u=M*h-m*s,d=Math.sqrt(c*c+l*l+u*u),d?(d=1/d,c*=d,l*=d,u*=d):(c=0,l=0,u=0),t[0]=s,t[1]=c,t[2]=M,t[3]=0,t[4]=h,t[5]=l,t[6]=m,t[7]=0,t[8]=o,t[9]=u,t[10]=f,t[11]=0,t[12]=-(s*x+h*_+o*b),t[13]=-(c*x+l*_+u*b),t[14]=-(M*x+m*_+f*b),t[15]=1,t)},targetTo:function(t,n,a,i){const e=n[0],s=n[1],r=n[2],h=i[0],o=i[1],c=i[2];let l=e-a[0],u=s-a[1],M=r-a[2],m=l*l+u*u+M*M;m>0&&(m=1/Math.sqrt(m),l*=m,u*=m,M*=m);let f=o*M-c*u,d=c*l-h*M,x=h*u-o*l;return m=f*f+d*d+x*x,m>0&&(m=1/Math.sqrt(m),f*=m,d*=m,x*=m),t[0]=f,t[1]=d,t[2]=x,t[3]=0,t[4]=u*x-M*d,t[5]=M*f-l*x,t[6]=l*d-u*f,t[7]=0,t[8]=l,t[9]=u,t[10]=M,t[11]=0,t[12]=e,t[13]=s,t[14]=r,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},add:function(t,n,a){return t[0]=n[0]+a[0],t[1]=n[1]+a[1],t[2]=n[2]+a[2],t[3]=n[3]+a[3],t[4]=n[4]+a[4],t[5]=n[5]+a[5],t[6]=n[6]+a[6],t[7]=n[7]+a[7],t[8]=n[8]+a[8],t[9]=n[9]+a[9],t[10]=n[10]+a[10],t[11]=n[11]+a[11],t[12]=n[12]+a[12],t[13]=n[13]+a[13],t[14]=n[14]+a[14],t[15]=n[15]+a[15],t},subtract:p,multiplyScalar:function(t,n,a){return t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a,t[3]=n[3]*a,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12]*a,t[13]=n[13]*a,t[14]=n[14]*a,t[15]=n[15]*a,t},multiplyScalarAndAdd:function(t,n,a,i){return t[0]=n[0]+a[0]*i,t[1]=n[1]+a[1]*i,t[2]=n[2]+a[2]*i,t[3]=n[3]+a[3]*i,t[4]=n[4]+a[4]*i,t[5]=n[5]+a[5]*i,t[6]=n[6]+a[6]*i,t[7]=n[7]+a[7]*i,t[8]=n[8]+a[8]*i,t[9]=n[9]+a[9]*i,t[10]=n[10]+a[10]*i,t[11]=n[11]+a[11]*i,t[12]=n[12]+a[12]*i,t[13]=n[13]+a[13]*i,t[14]=n[14]+a[14]*i,t[15]=n[15]+a[15]*i,t},exactEquals:g,equals:X,isOrthoNormal:Y,mul:B,sub:q},Symbol.toStringTag,{value:"Module"}))},10661:(t,n,a)=>{a.d(n,{s:()=>e});var i=a(39020);class e{constructor(){this._observers=[]}observe(t){return this._observers.includes(t)||this._observers.push(t),new i.X(this._observers,t)}notify(){const t=this._observers.slice();for(let n=0;n<t.length;++n){const a=t[n];a.onInvalidated(),a.onCommitted()}}}},24133:(t,n,a)=>{a.d(n,{Q:()=>h});var i=a(67676),e=a(70586),s=a(44553),r=a(88764);class h{constructor(t=9,n){this._compareMinX=u,this._compareMinY=M,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),g.prune(),X.prune(),Y.prune(),B.prune()}all(t){this._all(this._data,t)}search(t,n){let a=this._data;const i=this._toBBox;if(b(t,a))for(g.clear();a;){for(let e=0,s=a.children.length;e<s;e++){const s=a.children[e],r=a.leaf?i(s):s;b(t,r)&&(a.leaf?n(s):_(t,r)?this._all(s,n):g.push(s))}a=g.pop()}}collides(t){let n=this._data;const a=this._toBBox;if(!b(t,n))return!1;for(g.clear();n;){for(let i=0,e=n.children.length;i<e;i++){const e=n.children[i],s=n.leaf?a(e):e;if(b(t,s)){if(n.leaf||_(t,s))return!0;g.push(e)}}n=g.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let n=0,a=t.length;n<a;n++)this.insert(t[n]);return this}let n=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===n.height)this._splitRoot(this._data,n);else{if(this._data.height<n.height){const t=this._data;this._data=n,n=t}this._insert(n,this._data.height-n.height-1,!0)}else this._data=n;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new w([]),this}remove(t){if(!t)return this;let n,a=this._data,s=null,r=0,h=!1;const o=this._toBBox(t);for(Y.clear(),B.clear();a||Y.length>0;){if(a||(a=(0,e.j0)(Y.pop()),s=Y.data[Y.length-1],r=B.pop()??0,h=!0),a.leaf&&(n=(0,i.cq)(a.children,t,a.children.length,a.indexHint),-1!==n))return a.children.splice(n,1),Y.push(a),this._condense(Y),this;h||a.leaf||!_(a,o)?s?(r++,a=s.children[r],h=!1):a=null:(Y.push(a),B.push(r),r=0,s=a,a=a.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,n){let a=t;for(X.clear();a;){if(!0===a.leaf)for(const t of a.children)n(t);else X.pushArray(a.children);a=X.pop()??null}}_build(t,n,a,i){const e=a-n+1;let s=this._maxEntries;if(e<=s){const i=new w(t.slice(n,a+1));return o(i,this._toBBox),i}i||(i=Math.ceil(Math.log(e)/Math.log(s)),s=Math.ceil(e/s**(i-1)));const r=new v([]);r.height=i;const h=Math.ceil(e/s),c=h*Math.ceil(Math.sqrt(s));p(t,n,a,c,this._compareMinX);for(let e=n;e<=a;e+=c){const n=Math.min(e+c-1,a);p(t,e,n,h,this._compareMinY);for(let a=e;a<=n;a+=h){const e=Math.min(a+h-1,n);r.children.push(this._build(t,a,e,i-1))}}return o(r,this._toBBox),r}_chooseSubtree(t,n,a,i){for(;i.push(n),!0!==n.leaf&&i.length-1!==a;){let a,i=1/0,e=1/0;for(let s=0,r=n.children.length;s<r;s++){const r=n.children[s],h=m(r),o=d(t,r)-h;o<e?(e=o,i=h<i?h:i,a=r):o===e&&h<i&&(i=h,a=r)}n=a||n.children[0]}return n}_insert(t,n,a){const i=this._toBBox,e=a?t:i(t);Y.clear();const s=this._chooseSubtree(e,this._data,n,Y);for(s.children.push(t),l(s,e);n>=0&&Y.data[n].children.length>this._maxEntries;)this._split(Y,n),n--;this._adjustParentBBoxes(e,Y,n)}_split(t,n){const a=t.data[n],i=a.children.length,e=this._minEntries;this._chooseSplitAxis(a,e,i);const s=this._chooseSplitIndex(a,e,i);if(!s)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const r=a.children.splice(s,a.children.length-s),h=a.leaf?new w(r):new v(r);h.height=a.height,o(a,this._toBBox),o(h,this._toBBox),n?t.data[n-1].children.push(h):this._splitRoot(a,h)}_splitRoot(t,n){this._data=new v([t,n]),this._data.height=t.height+1,o(this._data,this._toBBox)}_chooseSplitIndex(t,n,a){let i,e,s;i=e=1/0;for(let r=n;r<=a-n;r++){const n=c(t,0,r,this._toBBox),h=c(t,r,a,this._toBBox),o=x(n,h),l=m(n)+m(h);o<i?(i=o,s=r,e=l<e?l:e):o===i&&l<e&&(e=l,s=r)}return s}_chooseSplitAxis(t,n,a){const i=t.leaf?this._compareMinX:u,e=t.leaf?this._compareMinY:M;this._allDistMargin(t,n,a,i)<this._allDistMargin(t,n,a,e)&&t.children.sort(i)}_allDistMargin(t,n,a,i){t.children.sort(i);const e=this._toBBox,s=c(t,0,n,e),r=c(t,a-n,a,e);let h=f(s)+f(r);for(let i=n;i<a-n;i++){const n=t.children[i];l(s,t.leaf?e(n):n),h+=f(s)}for(let i=a-n-1;i>=n;i--){const n=t.children[i];l(r,t.leaf?e(n):n),h+=f(r)}return h}_adjustParentBBoxes(t,n,a){for(let i=a;i>=0;i--)l(n.data[i],t)}_condense(t){for(let n=t.length-1;n>=0;n--){const a=t.data[n];if(0===a.children.length)if(n>0){const e=t.data[n-1],s=e.children;s.splice((0,i.cq)(s,a,s.length,e.indexHint),1)}else this.clear();else o(a,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function o(t,n){c(t,0,t.children.length,n,t)}function c(t,n,a,i,e){e||(e=new w([])),e.minX=1/0,e.minY=1/0,e.maxX=-1/0,e.maxY=-1/0;for(let s,r=n;r<a;r++)s=t.children[r],l(e,t.leaf?i(s):s);return e}function l(t,n){t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY)}function u(t,n){return t.minX-n.minX}function M(t,n){return t.minY-n.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function f(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,n){return(Math.max(n.maxX,t.maxX)-Math.min(n.minX,t.minX))*(Math.max(n.maxY,t.maxY)-Math.min(n.minY,t.minY))}function x(t,n){const a=Math.max(t.minX,n.minX),i=Math.max(t.minY,n.minY),e=Math.min(t.maxX,n.maxX),s=Math.min(t.maxY,n.maxY);return Math.max(0,e-a)*Math.max(0,s-i)}function _(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function b(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function p(t,n,a,i,s){const h=[n,a];for(;h.length;){const n=(0,e.j0)(h.pop()),a=(0,e.j0)(h.pop());if(n-a<=i)continue;const o=a+Math.ceil((n-a)/i/2)*i;(0,r.q)(t,o,a,n,s),h.push(a,o,o,n)}}const g=new s.Z,X=new s.Z,Y=new s.Z,B=new s.Z({deallocator:void 0});class q extends class{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}{constructor(){super(...arguments),this.height=1,this.indexHint=new i.SO}}class w extends q{constructor(t){super(),this.children=t,this.leaf=!0}}class v extends q{constructor(t){super(),this.children=t,this.leaf=!1}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1773],{51773:(t,e,o)=>{o.d(e,{Z:()=>tt});var i=o(43697),r=o(2368),s=o(46791),n=o(96674),a=o(22974),l=o(92604),p=o(95330),d=o(5600),h=o(90578),c=o(71715),y=o(52011),u=o(30556),m=o(75215),f=o(35671),g=o(84649),v=o(63801),_=o(48074),b=o(38745),w=o(9190),C=o(10214),x=o(71423),I=o(44951);const j={base:null,key:"type",typeMap:{attachment:g.Z,media:C.Z,text:I.Z,expression:b.Z,field:w.Z,relationship:x.Z}};var F,S=o(11223),T=o(422);o(67676),o(80442);let Z=F=class extends n.wq{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new F({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,i._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],Z.prototype,"returnTopmostRaster",void 0),(0,i._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],Z.prototype,"showNoDataRecords",void 0),Z=F=(0,i._)([(0,y.j)("esri.popup.LayerOptions")],Z);const N=Z;var O,M=o(44729);let R=O=class extends n.wq{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new O({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,a.d9)(this.orderByFields):null})}};(0,i._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],R.prototype,"showRelatedRecords",void 0),(0,i._)([(0,d.Cb)({type:[M.Z],json:{write:!0}})],R.prototype,"orderByFields",void 0),R=O=(0,i._)([(0,y.j)("esri.popup.RelatedRecordsInfo")],R);const D=R;var L,A=o(79742),E=o(15923),J=o(10699);let B=L=class extends((0,J.IG)(E.Z)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new L({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,i._)([(0,d.Cb)()],B.prototype,"active",void 0),(0,i._)([(0,d.Cb)()],B.prototype,"className",void 0),(0,i._)([(0,d.Cb)()],B.prototype,"disabled",void 0),(0,i._)([(0,d.Cb)()],B.prototype,"id",void 0),(0,i._)([(0,d.Cb)()],B.prototype,"indicator",void 0),(0,i._)([(0,d.Cb)()],B.prototype,"title",void 0),(0,i._)([(0,d.Cb)()],B.prototype,"type",void 0),(0,i._)([(0,d.Cb)()],B.prototype,"visible",void 0),B=L=(0,i._)([(0,y.j)("esri.support.actions.ActionBase")],B);const Y=B;var k;let q=k=class extends Y{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new k({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,i._)([(0,d.Cb)()],q.prototype,"image",void 0),q=k=(0,i._)([(0,y.j)("esri.support.Action.ActionButton")],q);const U=q;var V;let P=V=class extends Y{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new V({active:this.active,className:this.className,disabled:this.disabled,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,i._)([(0,d.Cb)()],P.prototype,"image",void 0),(0,i._)([(0,d.Cb)()],P.prototype,"value",void 0),P=V=(0,i._)([(0,y.j)("esri.support.Action.ActionToggle")],P);const z=P,W=l.Z.getLogger("esri.PopupTemplate"),K="relationships/",$="expression/",G=s.Z.ofType({key:"type",defaultKeyValue:"button",base:Y,typeMap:{button:U,toggle:z}}),H={base:v.Z,key:"type",typeMap:{media:C.Z,custom:_.Z,text:I.Z,attachments:g.Z,fields:w.Z,expression:b.Z,relationship:x.Z}},X=["attachments","fields","media","text","expression","relationship"];let Q=class extends((0,r.J)(n.wq)){constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map((t=>(0,m.N7)(H,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,p.y8)(t)?t:(W.error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeContent(t,e,o,i){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>X.includes(t.type))).map((t=>t&&t.toJSON(i))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))):e.description=t}writeFieldInfos(t,e,o,i){const{content:r}=this,s=Array.isArray(r)?r:null;if(t){const o=s?s.filter((t=>"fields"===t.type)):[],r=o.length&&o.every((t=>t.fieldInfos?.length));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(i);return r&&(e.visible=!1),e}))}if(s)for(const t of s)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e){const o=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,[...o,...this._getContentExpressionInfos(this.content,o)]),(0,f.gd)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const o=(0,a.d9)(t.fieldInfos);Array.isArray(e.fieldInfos)?o.forEach((t=>{const o=e.fieldInfos.find((e=>e.fieldName.toLowerCase()===t.fieldName.toLowerCase()));o?o.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=o}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const o=t.orderByFields?.map((e=>this._toFieldOrderJSON(e,t.relationshipId)))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const o=(0,a.d9)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...o]:e.mediaInfos=o}_readPopupInfoElements(t,e,o){const i={description:!1,mediaInfos:!1};return o.map((o=>"media"===o.type?(o.mediaInfos||!e||i.mediaInfos||(o.mediaInfos=e,i.mediaInfos=!0),C.Z.fromJSON(o)):"text"===o.type?(o.text||!t||i.description||(o.text=t,i.description=!0),I.Z.fromJSON(o)):"attachments"===o.type?g.Z.fromJSON(o):"fields"===o.type?w.Z.fromJSON(o):"expression"===o.type?b.Z.fromJSON(o):"relationship"===o.type?x.Z.fromJSON(o):void 0)).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:o}=t;if(!e?.startsWith(K))return null;const i=e.replace(K,"").split("/");if(2!==i.length)return null;const r=parseInt(i[0],10),s=i[1];return"number"==typeof r&&s?x.Z.fromJSON({relationshipId:r,orderByFields:[{field:s,order:o}]}):null}_toFieldOrderJSON(t,e){const{order:o,field:i}=t;return{field:`${K}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){const r=[];t?r.push(new I.Z({text:t})):r.push(new w.Z),Array.isArray(e)&&e.length&&r.push(C.Z.fromJSON({mediaInfos:e})),o&&r.push(g.Z.fromJSON({displayType:"auto"}));const{showRelatedRecords:s,orderByFields:n}=i;return s&&n?.length&&n.forEach((t=>{const e=this._toRelationshipContent(t);e&&r.push(e)})),r.length?r:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):[]}_getMediaInfoFields(t){const{caption:e,title:o,value:i}=t,r=i||{},{fields:s,normalizeField:n,tooltipField:a,sourceURL:l,linkURL:p}=r,d=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(p),...s??[]];return n&&d.push(n),a&&d.push(a),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,o){o&&await Promise.all(o.map((o=>(0,f.io)(t,e,o.expression))))}_getFieldInfoFields(t){return t?t.filter((t=>void 0===t.visible||!!t.visible)).map((t=>t.fieldName)).filter((t=>!t.startsWith(K)&&!t.startsWith($))):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:o,type:i}=t,r="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){if(!t||"string"!=typeof t)return[];const e=t.match(/{[^}]*}/g);if(!e)return[];const o=/\{(\w+):.+\}/,i=e.filter((t=>!(0===t.indexOf(`{${K}`)||0===t.indexOf(`{${$}`)))).map((t=>t.replace(o,"{$1}")));return i?i.map((t=>t.slice(1,-1))):[]}};(0,i._)([(0,d.Cb)({type:G})],Q.prototype,"actions",void 0),(0,i._)([(0,d.Cb)()],Q.prototype,"content",void 0),(0,i._)([(0,h.p)("content")],Q.prototype,"castContent",null),(0,i._)([(0,c.r)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Q.prototype,"readContent",null),(0,i._)([(0,u.c)("content",{popupElements:{type:s.Z.ofType(j)},showAttachments:{type:Boolean},mediaInfos:{type:s.Z.ofType(A.V)},description:{type:String},relatedRecordsInfo:{type:D}})],Q.prototype,"writeContent",null),(0,i._)([(0,d.Cb)({type:[S.Z],json:{write:!0}})],Q.prototype,"expressionInfos",void 0),(0,i._)([(0,d.Cb)({type:[T.Z]})],Q.prototype,"fieldInfos",void 0),(0,i._)([(0,u.c)("fieldInfos")],Q.prototype,"writeFieldInfos",null),(0,i._)([(0,d.Cb)({type:N})],Q.prototype,"layerOptions",void 0),(0,i._)([(0,u.c)("layerOptions")],Q.prototype,"writeLayerOptions",null),(0,i._)([(0,d.Cb)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Q.prototype,"lastEditInfoEnabled",void 0),(0,i._)([(0,d.Cb)()],Q.prototype,"outFields",void 0),(0,i._)([(0,d.Cb)()],Q.prototype,"overwriteActions",void 0),(0,i._)([(0,d.Cb)()],Q.prototype,"returnGeometry",void 0),(0,i._)([(0,d.Cb)({json:{type:String}})],Q.prototype,"title",void 0),(0,i._)([(0,u.c)("title")],Q.prototype,"writeTitle",null),Q=(0,i._)([(0,y.j)("esri.PopupTemplate")],Q);const tt=Q},90344:(t,e,o)=>{o.d(e,{Ze:()=>f,p6:()=>g});var i=o(35454),r=o(70171);const s={year:"numeric",month:"numeric",day:"numeric"},n={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},d={...p,second:"numeric"},h={"short-date":s,"short-date-short-time":{...s,...p},"short-date-short-time-24":{...s,...p,hour12:!1},"short-date-long-time":{...s,...d},"short-date-long-time-24":{...s,...d,hour12:!1},"short-date-le":s,"short-date-le-short-time":{...s,...p},"short-date-le-short-time-24":{...s,...p,hour12:!1},"short-date-le-long-time":{...s,...d},"short-date-le-long-time-24":{...s,...d,hour12:!1},"long-month-day-year":n,"long-month-day-year-short-time":{...n,...p},"long-month-day-year-short-time-24":{...n,...p,hour12:!1},"long-month-day-year-long-time":{...n,...d},"long-month-day-year-long-time-24":{...n,...d,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...p},"day-short-month-year-short-time-24":{...a,...p,hour12:!1},"day-short-month-year-long-time":{...a,...d},"day-short-month-year-long-time-24":{...a,...d,hour12:!1},"long-date":l,"long-date-short-time":{...l,...p},"long-date-short-time-24":{...l,...p,hour12:!1},"long-date-long-time":{...l,...d},"long-date-long-time-24":{...l,...d,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":d},c=(0,i.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),y=(c.apiValues,c.toJSON.bind(c),c.fromJSON.bind(c),{ar:"ar-u-nu-latn-ca-gregory"});let u=new WeakMap,m=h["short-date-short-time"];function f(t){return t?h[t]:null}function g(t,e){return function(t){const e=t||m;let o=u.get(e);if(!o){const t=(0,r.Kd)(),i=y[(0,r.Kd)()]||t;o=new Intl.DateTimeFormat(i,e),u.set(e,o)}return o}(e).format(t)}(0,r.Ze)((()=>{u=new WeakMap,m=h["short-date-short-time"]}))},18848:(t,e,o)=>{o.d(e,{sh:()=>l,uf:()=>p});var i=o(70586),r=o(70171);const s={ar:"ar-u-nu-latn"};let n=new WeakMap,a={};function l(t={}){const e={};return null!=t.digitSeparator&&(e.useGrouping=t.digitSeparator),null!=t.places&&(e.minimumFractionDigits=e.maximumFractionDigits=t.places),e}function p(t,e){return-0===t&&(t=0),function(t){const e=t||a;if(!n.has(e)){const o=(0,r.Kd)(),i=s[(0,r.Kd)()]||o;n.set(e,new Intl.NumberFormat(i,t))}return(0,i.j0)(n.get(e))}(e).format(t)}(0,r.Ze)((()=>{n=new WeakMap,a={}}))},11223:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(96674),n=o(5600),a=(o(67676),o(80442),o(75215),o(52011));let l=i=class extends s.wq{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r._)([(0,n.Cb)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r._)([(0,a.j)("esri.popup.ExpressionInfo")],l);const p=l},422:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(35454),n=o(96674),a=o(22974),l=o(5600),p=(o(75215),o(36030)),d=o(52011),h=o(63061);let c=i=class extends n.wq{constructor(t){super(t),this.fieldName=null,this.format=null,this.isEditable=!1,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new i({fieldName:this.fieldName,format:this.format?(0,a.d9)(this.format):null,isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,r._)([(0,l.Cb)({type:h.Z,json:{write:!0}})],c.prototype,"format",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0,default:!1}})],c.prototype,"isEditable",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,p.J)(new s.X({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,r._)([(0,l.Cb)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,r._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=i=(0,r._)([(0,d.j)("esri.popup.FieldInfo")],c);const y=c},84649:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(63801);let l=i=class extends a.Z{constructor(t){super(t),this.description=null,this.displayType="auto",this.title=null,this.type="attachments"}clone(){return new i({description:this.description,displayType:this.displayType,title:this.title})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"description",void 0),(0,r._)([(0,s.Cb)({type:["auto","preview","list"],json:{write:!0}})],l.prototype,"displayType",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:["attachments"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.content.AttachmentsContent")],l);const p=l},41463:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="bar-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.BarChartMediaInfo")],p);const d=p},87131:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="column-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.ColumnChartMediaInfo")],p);const d=p},63801:(t,e,o)=>{o.d(e,{Z:()=>l});var i=o(43697),r=o(96674),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011));let a=class extends r.wq{constructor(t){super(t),this.type=null}};(0,i._)([(0,s.Cb)({type:["attachments","custom","fields","media","text","expression","relationship"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,n.j)("esri.popup.content.Content")],a);const l=a},48074:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(52011)),l=o(63801);let p=i=class extends l.Z{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,s.d9)(this.outFields):null})}};(0,r._)([(0,n.Cb)()],p.prototype,"creator",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"destroyer",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"outFields",void 0),(0,r._)([(0,n.Cb)({type:["custom"],readOnly:!0})],p.prototype,"type",void 0),p=i=(0,r._)([(0,a.j)("esri.popup.content.CustomContent")],p);const d=p},38745:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(96674);let l=i=class extends a.wq{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new i({title:this.title,expression:this.expression})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r._)([(0,s.Cb)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.ElementExpressionInfo")],l);const p=l;var d,h=o(63801);let c=d=class extends h.Z{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new d({expressionInfo:this.expressionInfo?.clone()})}};(0,r._)([(0,s.Cb)({type:p,json:{write:!0}})],c.prototype,"expressionInfo",void 0),(0,r._)([(0,s.Cb)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0),c=d=(0,r._)([(0,n.j)("esri.popup.content.ExpressionContent")],c);const y=c},9190:(t,e,o)=>{o.d(e,{Z:()=>c});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(52011)),l=o(30556),p=o(422),d=o(63801);let h=i=class extends d.Z{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map((t=>t.toJSON()))}clone(){return new i((0,s.d9)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],h.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:[p.Z]})],h.prototype,"fieldInfos",void 0),(0,r._)([(0,l.c)("fieldInfos")],h.prototype,"writeFieldInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],h.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["fields"],readOnly:!0,json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=i=(0,r._)([(0,a.j)("esri.popup.content.FieldsContent")],h);const c=h},13151:(t,e,o)=>{o.d(e,{Z:()=>y});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(35320),l=o(96674);let p=i=class extends l.wq{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new i({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"linkURL",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"sourceURL",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.support.ImageMediaInfoValue")],p);const d=p;var h;let c=h=class extends a.Z{constructor(t){super(t),this.refreshInterval=null,this.type="image",this.value=null}clone(){return new h({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],c.prototype,"refreshInterval",void 0),(0,r._)([(0,s.Cb)({type:["image"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:d,json:{write:!0}})],c.prototype,"value",void 0),c=h=(0,r._)([(0,n.j)("esri.popup.content.ImageMediaInfo")],c);const y=c},55869:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="line-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.LineChartMediaInfo")],p);const d=p},10214:(t,e,o)=>{o.d(e,{Z:()=>v});var i,r=o(43697),s=o(22974),n=o(5600),a=(o(75215),o(71715)),l=o(52011),p=o(30556),d=o(41463),h=o(87131),c=o(63801),y=o(13151),u=o(55869),m=o(13353),f=o(79742);let g=i=class extends c.Z{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map((t=>"image"===t.type?y.Z.fromJSON(t):"barchart"===t.type?d.Z.fromJSON(t):"columnchart"===t.type?h.Z.fromJSON(t):"linechart"===t.type?u.Z.fromJSON(t):"piechart"===t.type?m.Z.fromJSON(t):void 0)).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map((t=>t.toJSON()))}clone(){return new i((0,s.d9)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r._)([(0,n.Cb)()],g.prototype,"activeMediaInfoIndex",void 0),(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],g.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],g.prototype,"description",void 0),(0,r._)([(0,n.Cb)({types:[f.V]})],g.prototype,"mediaInfos",void 0),(0,r._)([(0,a.r)("mediaInfos")],g.prototype,"readMediaInfos",null),(0,r._)([(0,p.c)("mediaInfos")],g.prototype,"writeMediaInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],g.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],g.prototype,"type",void 0),g=i=(0,r._)([(0,l.j)("esri.popup.content.MediaContent")],g);const v=g},13353:(t,e,o)=>{o.d(e,{Z:()=>d});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(50379),l=o(87102);let p=i=class extends a.Z{constructor(t){super(t),this.type="pie-chart"}clone(){return new i({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:l.l.write}})],p.prototype,"type",void 0),p=i=(0,r._)([(0,n.j)("esri.popup.content.PieChartMediaInfo")],p);const d=p},71423:(t,e,o)=>{o.d(e,{Z:()=>h});var i=o(43697),r=o(2368),s=o(5600),n=(o(67676),o(80442),o(75215)),a=o(52011),l=o(63801),p=o(44729);let d=class extends((0,r.J)(l.Z)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{type:n.z8,write:!0}})],d.prototype,"displayCount",void 0),(0,i._)([(0,s.Cb)({type:["list"],json:{write:!0}})],d.prototype,"displayType",void 0),(0,i._)([(0,s.Cb)({type:[p.Z],json:{write:!0}})],d.prototype,"orderByFields",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{type:n.z8,write:!0}})],d.prototype,"relationshipId",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,i._)([(0,s.Cb)({type:["relationship"],readOnly:!0,json:{read:!1,write:!0}})],d.prototype,"type",void 0),d=(0,i._)([(0,a.j)("esri.popup.content.RelationshipContent")],d);const h=d},44951:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(63801);let l=i=class extends a.Z{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new i({text:this.text})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"text",void 0),(0,r._)([(0,s.Cb)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=i=(0,r._)([(0,n.j)("esri.popup.content.TextContent")],l);const p=l},50379:(t,e,o)=>{o.d(e,{Z:()=>g});var i,r=o(43697),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011)),a=o(35320),l=o(96674),p=o(22974),d=o(15923);let h=i=class extends d.Z{constructor(t){super(t),this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new i({fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,r._)([(0,s.Cb)()],h.prototype,"fieldName",void 0),(0,r._)([(0,s.Cb)()],h.prototype,"tooltip",void 0),(0,r._)([(0,s.Cb)()],h.prototype,"value",void 0),h=i=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValueSeries")],h);const c=h;var y;let u=y=class extends l.wq{constructor(t){super(t),this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new y({fields:(0,p.d9)(this.fields),normalizeField:this.normalizeField,tooltipField:this.tooltipField})}};(0,r._)([(0,s.Cb)({type:[String],json:{write:!0}})],u.prototype,"fields",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],u.prototype,"normalizeField",void 0),(0,r._)([(0,s.Cb)({type:[c],json:{read:!1}})],u.prototype,"series",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],u.prototype,"tooltipField",void 0),u=y=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValue")],u);const m=u;let f=class extends a.Z{constructor(t){super(t),this.type=null,this.value=null}};(0,r._)([(0,s.Cb)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],f.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:m,json:{write:!0}})],f.prototype,"value",void 0),f=(0,r._)([(0,n.j)("esri.popup.content.mixins.ChartMediaInfo")],f);const g=f},35320:(t,e,o)=>{o.d(e,{Z:()=>l});var i=o(43697),r=o(96674),s=o(5600),n=(o(67676),o(80442),o(75215),o(52011));let a=class extends r.wq{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"altText",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"caption",void 0),(0,i._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,i._)([(0,s.Cb)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=(0,i._)([(0,n.j)("esri.popup.content.mixins.MediaInfo")],a);const l=a},87102:(t,e,o)=>{o.d(e,{l:()=>i});const i=(0,o(35454).w)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"})},79742:(t,e,o)=>{o.d(e,{V:()=>l});var i=o(41463),r=o(87131),s=o(13151),n=o(55869),a=o(13353);const l={base:o(35320).Z,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":i.Z,"column-chart":r.Z,"line-chart":n.Z,"pie-chart":a.Z,image:s.Z}}},63061:(t,e,o)=>{o.d(e,{Z:()=>u});var i=o(43697);const r=(0,o(35454).w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"});r.toJSON.bind(r),r.fromJSON.bind(r);var s,n=o(96674),a=o(5600),l=(o(67676),o(80442),o(75215)),p=o(36030),d=o(52011),h=o(90344),c=o(18848);let y=s=class extends n.wq{constructor(t){super(t),this.dateFormat=null,this.dateTimeFormatOptions=null,this.digitSeparator=!1,this.places=null}clone(){return new s({dateFormat:this.dateFormat,digitSeparator:this.digitSeparator,places:this.places})}format(t){return this.dateFormat?(0,h.p6)(t,{...(0,h.Ze)(this.dateFormat),...this.dateTimeFormatOptions}):(0,c.uf)(t,(0,c.sh)(this))}formatRasterPixelValue(t){let e,o;return t.trim().includes(",")?(e=",",o=e+" ",this._formatDelimitedString(t,e,o,this)):t.trim().includes(";")?(e=";",o=e+" ",this._formatDelimitedString(t,e,o,this)):t.trim().includes(" ")?(e=o=" ",this._formatDelimitedString(t,e,o,this)):this.format(Number(t))}_formatDelimitedString(t,e,o,i){return t&&e&&o&&i?t.trim().split(e).map((t=>this.format(Number(t)))).join(o):t}};(0,i._)([(0,p.J)(r)],y.prototype,"dateFormat",void 0),(0,i._)([(0,a.Cb)({type:Object,json:{read:!1}})],y.prototype,"dateTimeFormatOptions",void 0),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"digitSeparator",void 0),(0,i._)([(0,a.Cb)({type:l.z8,json:{write:!0}})],y.prototype,"places",void 0),y=s=(0,i._)([(0,d.j)("esri.popup.support.FieldInfoFormat")],y);const u=y},44729:(t,e,o)=>{o.d(e,{Z:()=>p});var i,r=o(43697),s=o(96674),n=o(5600),a=(o(67676),o(80442),o(75215),o(52011));let l=i=class extends s.wq{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,r._)([(0,n.Cb)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=i=(0,r._)([(0,a.j)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const p=l}}]);