@arcgis/core 6.0.0-next.7 → 6.0.0-next.8
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.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/06ab24a083c3229228dd.js +1 -0
- package/assets/esri/core/workers/chunks/09a63cc1987f8636c5b0.js +1 -0
- package/assets/esri/core/workers/chunks/{7165d6f6a5078768bebb.js → 15cc2c295682f48030f9.js} +1 -1
- package/assets/esri/core/workers/chunks/17b76e0d401c7e396d10.js +1 -0
- package/assets/esri/core/workers/chunks/{c18189710d6198516175.js → 19b9d393046a780e6c3f.js} +1 -1
- package/assets/esri/core/workers/chunks/1b35ec54968fbeec17ce.js +1 -0
- package/assets/esri/core/workers/chunks/1c0c5cb13c2590aae906.js +1 -0
- package/assets/esri/core/workers/chunks/1e0d2715d603f48a7e0b.js +1 -0
- package/assets/esri/core/workers/chunks/{9a7fc93cc693fd12b5d8.js → 2b6c74646ff475a6e302.js} +1 -1
- package/assets/esri/core/workers/chunks/2d9a1f23ec6ce90723ac.js +1 -0
- package/assets/esri/core/workers/chunks/340621182db9e8edbec2.js +1 -0
- package/assets/esri/core/workers/chunks/{71f739bb3f7350704af6.js → 384ae10053d35940de73.js} +1 -1
- package/assets/esri/core/workers/chunks/3b3e519f15ed52c83f0c.js +1 -0
- package/assets/esri/core/workers/chunks/{72019baeba520edb6bb0.js → 3b737dae6efed627406e.js} +1 -1
- package/assets/esri/core/workers/chunks/3c0ed15b544df6fb0903.js +1 -0
- package/assets/esri/core/workers/chunks/451d7d456df0f4466563.js +1 -0
- package/assets/esri/core/workers/chunks/4a6b92ecbb1f1c55cc43.js +1 -0
- package/assets/esri/core/workers/chunks/4e544de61f07ca660236.js +1 -0
- package/assets/esri/core/workers/chunks/{06e7400f5ebe0719b81c.js → 5a5d80c2519aa3ea8878.js} +1 -1
- package/assets/esri/core/workers/chunks/{fb4ff0ac2bc445fec413.js → 5b434e8c98e7119d4a3b.js} +1 -1
- package/assets/esri/core/workers/chunks/606ea251075fe81a1206.js +1 -0
- package/assets/esri/core/workers/chunks/{ac4cc49104d26c384e98.js → 658b2642ab6880770e4e.js} +1 -1
- package/assets/esri/core/workers/chunks/68be3fb88ca61f82fb90.js +1 -0
- package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +1 -0
- package/assets/esri/core/workers/chunks/6ef647b7769d27529f9c.js +1 -0
- package/assets/esri/core/workers/chunks/709e019885822b1f6f3e.js +1 -0
- package/assets/esri/core/workers/chunks/8730e7e6e0296f43f10b.js +1 -0
- package/assets/esri/core/workers/chunks/8bea0d706ede6f84f8aa.js +1 -0
- package/assets/esri/core/workers/chunks/900181f68449d8f82eeb.js +1 -0
- package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +1 -0
- package/assets/esri/core/workers/chunks/{1ef39aef6b33c530cbe4.js → 966d0832a3c1f03668a0.js} +1 -1
- package/assets/esri/core/workers/chunks/9a28a66807a1e3557018.js +1 -0
- package/assets/esri/core/workers/chunks/{2f9033890c465acff698.js → 9bf48a907f91ea004648.js} +1 -1
- package/assets/esri/core/workers/chunks/9c7fa9d324fa0bf64d9c.js +1 -0
- package/assets/esri/core/workers/chunks/{1ba1f705b6ce5c8ea702.js → a655ebdb4bf0660615a2.js} +1 -1
- package/assets/esri/core/workers/chunks/af349c7bc8ef41a0e1bd.js +1 -0
- package/assets/esri/core/workers/chunks/c8ba0673d1b87216e619.js +1 -0
- package/assets/esri/core/workers/chunks/{4d3f97a48046021713a6.js → ceb112fe7aef354f8051.js} +1 -1
- package/assets/esri/core/workers/chunks/d6ad4390df576198e45b.js +1 -0
- package/assets/esri/core/workers/chunks/{801e9e66edb4961461eb.js → ded8b64a46992c3ae693.js} +1 -1
- package/assets/esri/core/workers/chunks/{0b36abcbf03037b4073d.js → e1af43e2a8f2ef1059e3.js} +1 -1
- package/assets/esri/core/workers/chunks/eaf6d587477399a83088.js +1 -0
- package/assets/esri/core/workers/chunks/f122c18af10e56f9ec2b.js +1 -0
- package/assets/esri/core/workers/chunks/f31b424a3667686af10c.js +1 -0
- package/assets/esri/core/workers/chunks/{711cfb84659cb4437679.js → f528ac5c648ca6a98582.js} +1 -1
- package/assets/esri/core/workers/chunks/f92364afaefbac7e8f77.js +1 -0
- package/config.js +1 -1
- package/form/elements/inputs/DynamicChoiceInput.d.ts +35 -5
- package/geometry/support/scaleUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/ParquetLayer.d.ts +3 -2
- package/layers/ParquetLayer.js +1 -1
- package/layers/mixins/ScaleRangeLayer.js +1 -1
- package/layers/mixins/SublayersOwner.js +1 -1
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/package.json +2 -2
- package/popup/FeaturesModel.d.ts +26 -5
- package/popup/FeaturesModel.js +1 -1
- package/rest/support/printTaskUtils.js +1 -1
- package/symbols/cim/CIMSymbolHelper.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/hittestUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/interactive/snapping/featureSources/featureServiceSource/FeatureServiceTiles2D.js +1 -1
- package/views/2d/layers/FeatureLikeLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/ParquetLayerAdapter.js +1 -1
- package/views/2d/layers/features/sources/FeatureSource.js +1 -1
- package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementController.js +1 -1
- package/views/3d/analysis/Viewshed/types.d.ts +3 -1
- package/views/3d/environment/Environment.d.ts +2 -2
- package/views/3d/environment/Environment.js +1 -1
- package/views/3d/environment/EnvironmentView.js +2 -0
- package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
- package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/RouteLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerGraphicsView3D.js +1 -1
- package/views/3d/layers/SceneLayerView3D.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/VoxelLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DScaleVisibility.js +1 -1
- package/views/3d/layers/graphics/Labeler.js +1 -1
- package/views/3d/layers/support/FeatureTile.js +1 -1
- package/views/3d/layers/support/HeatmapFeatureProcessor.js +1 -1
- package/views/3d/layers/support/SampledGeometryMaxDistanceRatio.js +1 -1
- package/views/3d/support/popupHitTest.js +1 -1
- package/views/3d/webgl-engine/effects/WeatherFader.js +1 -1
- package/views/3d/webgl-engine/effects/clouds/CloudsComposition.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/interactive/snapping/FeatureSnappingSourceInfo.js +1 -1
- package/views/layers/LayerView.js +1 -1
- package/views/layers/LineOfSightLayerView.d.ts +3 -4
- package/views/layers/ViewshedLayerView.d.ts +5 -6
- package/views/support/layerViewUtils.js +1 -1
- package/widgets/Editor.d.ts +10 -0
- package/widgets/FeatureForm.d.ts +2 -2
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/00a600c71ceebe7bfeee.js +0 -1
- package/assets/esri/core/workers/chunks/00d24415bdeb0adae3df.js +0 -1
- package/assets/esri/core/workers/chunks/0193df3f9fb23633da87.js +0 -1
- package/assets/esri/core/workers/chunks/07aa6d36f1006b6ab7ff.js +0 -1
- package/assets/esri/core/workers/chunks/25d6c674b1c4829f040f.js +0 -1
- package/assets/esri/core/workers/chunks/25e6013e2c095629b236.js +0 -1
- package/assets/esri/core/workers/chunks/2c90f7a6432cd716db8b.js +0 -1
- package/assets/esri/core/workers/chunks/2e6a2f4d686b71249c0e.js +0 -1
- package/assets/esri/core/workers/chunks/303fde8f3459dde16555.js +0 -1
- package/assets/esri/core/workers/chunks/350540770781b281c39a.js +0 -1
- package/assets/esri/core/workers/chunks/3b017b718ea2d4ed498f.js +0 -1
- package/assets/esri/core/workers/chunks/43fc42405167a5537039.js +0 -1
- package/assets/esri/core/workers/chunks/4d82db661365daa513a6.js +0 -1
- package/assets/esri/core/workers/chunks/518e8883b6ed613bf451.js +0 -1
- package/assets/esri/core/workers/chunks/633a9051580c5302d2f7.js +0 -1
- package/assets/esri/core/workers/chunks/6469c0d18d3663e7da4b.js +0 -1
- package/assets/esri/core/workers/chunks/669e39c3437d7273f0c7.js +0 -1
- package/assets/esri/core/workers/chunks/7038ead1fa1674416ab3.js +0 -1
- package/assets/esri/core/workers/chunks/798a63653f82c0e842c5.js +0 -1
- package/assets/esri/core/workers/chunks/84fcbf7a1d04f01685d1.js +0 -1
- package/assets/esri/core/workers/chunks/8e511079918e2fd9261f.js +0 -1
- package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +0 -1
- package/assets/esri/core/workers/chunks/9673a9efec86040b8c13.js +0 -1
- package/assets/esri/core/workers/chunks/a010d2e4e34eb7bc1fec.js +0 -1
- package/assets/esri/core/workers/chunks/b05a41a60e30935644be.js +0 -1
- package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +0 -1
- package/assets/esri/core/workers/chunks/d270cc9807161033686e.js +0 -1
- package/assets/esri/core/workers/chunks/ec9a2425b4a498054a19.js +0 -1
- package/assets/esri/core/workers/chunks/f0a68d2900d24f56afa0.js +0 -1
- package/assets/esri/core/workers/chunks/f762f70e7d39634ce797.js +0 -1
- package/assets/esri/core/workers/chunks/fd0254c6fc6c03ec11ba.js +0 -1
- package/assets/esri/core/workers/chunks/fd0a5c243f3426f2a0b5.js +0 -1
- package/views/3d/environment/EnvironmentManager.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3391],{32488(t,e,i){i.d(e,{A:()=>M});const r=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],s=["آ","أ","إ","ا"],n=["ﻵ","ﻷ","ﻹ","ﻻ"],a=["ﻶ","ﻸ","ﻺ","ﻼ"],l="ا.ب.ت.ث.ج.ح.خ.د.ذ.ر.ز.س.ش.ص.ض.ط.ظ.ع.غ.ف.ق.ك.ل.م.ن.ه.و.ي.إ.أ.آ.ة.ى.ل.م.ن.ه.و.ي.إ.أ.آ.ة.ى.ی.ئ.ؤ".split("."),o="ﺍ.ﺏ.ﺕ.ﺙ.ﺝ.ﺡ.ﺥ.ﺩ.ﺫ.ﺭ.ﺯ.ﺱ.ﺵ.ﺹ.ﺽ.ﻁ.ﻅ.ﻉ.ﻍ.ﻑ.ﻕ.ﻙ.ﻝ.ﻡ.ﻥ.ﻩ.ﻭ.ﻱ.ﺇ.ﺃ.ﺁ.ﺓ.ﻯ.ﯼ.ﺉ.ﺅ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺉ.ﺅ".split("."),h="ﺎ.ﺐ.ﺖ.ﺚ.ﺞ.ﺢ.ﺦ.ﺪ.ﺬ.ﺮ.ﺰ.ﺲ.ﺶ.ﺺ.ﺾ.ﻂ.ﻆ.ﻊ.ﻎ.ﻒ.ﻖ.ﻚ.ﻞ.ﻢ.ﻦ.ﻪ.ﻮ.ﻲ.ﺈ.ﺄ.ﺂ.ﺔ.ﻰ.ﯽ.ﺊ.ﺆ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺊ.ﺆ".split("."),c="ﺎ.ﺒ.ﺘ.ﺜ.ﺠ.ﺤ.ﺨ.ﺪ.ﺬ.ﺮ.ﺰ.ﺴ.ﺸ.ﺼ.ﻀ.ﻄ.ﻈ.ﻌ.ﻐ.ﻔ.ﻘ.ﻜ.ﻠ.ﻤ.ﻨ.ﻬ.ﻮ.ﻴ.ﺈ.ﺄ.ﺂ.ﺔ.ﻰ.ﯿ.ﺌ.ﺆ.ﹱ.ﹲ.ﹴ.ﹷ.ﹹ.ﹻ.ﹽ.ﹿ.ﺀ.ﺌ.ﺆ".split("."),u="ﺍ.ﺑ.ﺗ.ﺛ.ﺟ.ﺣ.ﺧ.ﺩ.ﺫ.ﺭ.ﺯ.ﺳ.ﺷ.ﺻ.ﺿ.ﻃ.ﻇ.ﻋ.ﻏ.ﻓ.ﻗ.ﻛ.ﻟ.ﻣ.ﻧ.ﻫ.ﻭ.ﻳ.ﺇ.ﺃ.ﺁ.ﺓ.ﻯ.ﯾ.ﺋ.ﺅ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺋ.ﺅ".split("."),f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],m="ً.ً.ٌ.؟.ٍ.؟.َ.َ.ُ.ُ.ِ.ِ.ّ.ّ.ْ.ْ.ء.آ.آ.أ.أ.ؤ.ؤ.إ.إ.ئ.ئ.ئ.ئ.ا.ا.ب.ب.ب.ب.ة.ة.ت.ت.ت.ت.ث.ث.ث.ث.ج.ج.ج.ج.ح.ح.ح.ح.خ.خ.خ.خ.د.د.ذ.ذ.ر.ر.ز.ز.س.س.س.س.ش.ش.ش.ش.ص.ص.ص.ص.ض.ض.ض.ض.ط.ط.ط.ط.ظ.ظ.ظ.ظ.ع.ع.ع.ع.غ.غ.غ.غ.ف.ف.ف.ف.ق.ق.ق.ق.ك.ك.ك.ك.ل.ل.ل.ل.م.م.م.م.ن.ن.ن.ن.ه.ه.ه.ه.و.و.ى.ى.ي.ي.ي.ي.ﻵ.ﻶ.ﻷ.ﻸ.ﻹ.ﻺ.ﻻ.ﻼ.؟.؟.؟".split("."),d=["ء","ف"],y=["غ","ي"],g=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],p=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],_=["UBAT_L","UBAT_R","UBAT_EN","UBAT_AN","UBAT_ON","UBAT_B","UBAT_S","UBAT_AL","UBAT_WS","UBAT_CS","UBAT_ES","UBAT_ET","UBAT_NSM","UBAT_LRE","UBAT_RLE","UBAT_PDF","UBAT_LRO","UBAT_RLO","UBAT_BN"],x=[100,0,0,0,0,101,102,103,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,104,4,4,4,0,4,0,4,0,4,4,4,0,0,4,4,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,4,4,0,0,4,4,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,105,7,7,106,107],S=[[18,18,18,18,18,18,18,18,18,6,5,6,8,5,18,18,18,18,18,18,18,18,18,18,18,18,18,18,5,5,5,6,8,4,4,11,11,11,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,18,18,18,18,18,18,5,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,9,4,11,11,11,11,4,4,4,4,0,4,4,18,4,4,11,11,2,2,4,0,4,4,4,2,0,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,4,4,4,4,4,4,4,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,12,12,1,12,12,1,12,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,1,1,1,1,1,4,4,4,4,4,4,4,4,4,4,4],[3,3,3,3,4,4,4,4,7,11,11,7,9,7,4,4,12,12,12,12,12,12,12,12,12,12,12,7,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,3,3,3,3,3,3,3,3,3,3,11,3,3,7,7,7,12,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,3,4,12,12,12,12,12,12,7,7,12,12,4,12,12,12,12,7,7,2,2,2,2,2,2,2,2,2,2,7,7,7,7,7,7],[7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,7,7,12,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,12,12,12,12,12,12,12,12,12,12,12,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,1,1,4,4,4,4,1,4,4,4,4,4],[8,8,8,8,8,8,8,8,8,8,8,18,18,18,0,1,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,5,13,14,15,16,17,9,11,11,11,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,18,18,18,18,18,4,4,4,4,4,18,18,18,18,18,18,2,0,4,4,2,2,2,2,2,2,10,10,4,4,4,0,2,2,2,2,2,2,2,2,2,2,10,10,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4],[0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,1,12,1,1,1,1,1,1,1,1,1,1,10,1,1,1,1,1,1,1,1,1,1,1,1,1,4,1,1,1,1,1,4,1,4,1,1,4,1,1,4,1,1,1,1,1,1,1,1,1,1,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7],[12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,12,12,12,12,12,12,12,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,4,9,4,4,9,4,4,4,4,4,4,4,4,4,11,4,4,10,10,4,4,4,4,4,11,11,4,4,4,4,4,7,7,7,7,7,4,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,18],[4,4,4,11,11,11,4,4,4,4,4,10,9,10,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,11,11,4,4,4,11,11,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class M{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,i){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,i){V=[],q=[];for(let r=0;r<i;r++)t[r]=r,e[r]=r,V[r]=r}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,i))return t;e=this.inputFormat,i=this.outputFormat;let r=t,s=Z,n=N(e.charAt(1)),a=N(i.charAt(1)),l=(e.startsWith("I")?"L":e.charAt(0))+n,o=(i.startsWith("I")?"L":i.charAt(0))+a,h=e.charAt(2)+i.charAt(2);s.defInFormat=l,s.defOutFormat=o,s.defSwap=h;let c=b(t,l,o,h,s),u=!1;return"R"===i.charAt(1)?u=!0:("C"===i.charAt(1)||"D"===i.charAt(1))&&(u="rtl"===this.checkContextual(c)),this.sourceToTarget=V,this.targetToSource=function(t){let e=Array(t.length);for(let i=0;i<t.length;i++)e[t[i]]=i;return e}(this.sourceToTarget),X=this.targetToSource,r=e.charAt(3)===i.charAt(3)?c:"S"===i.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);let i=(e=String(e)).split(""),r=0,s=1,n=i.length;t||(r=i.length-1,s=-1,n=1);let a=w(i,r,s,n),l="";for(let e=0;e<i.length;e++)R(a,a.length,e)>-1?(G(X,e,!t,-1),V.splice(e,1)):l+=i[e];return l}(u,c):P(c,u,!0),this.sourceToTarget=V,this.targetToSource=X,this.levels=q,r}_inputFormatSetter(t){if(!Q.test(t))throw Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!Q.test(t))throw Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=C(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch{}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return tt.test(t)}}function b(t,e,i,r,s){let n=function(t,e,i){if(void 0===e.inFormat&&(e.inFormat=i.defInFormat),void 0===e.outFormat&&(e.outFormat=i.defOutFormat),void 0===e.swap&&(e.swap=i.defSwap),e.inFormat===e.outFormat)return e;let r,s=e.inFormat.slice(0,1),n=e.outFormat.slice(0,1),a=e.inFormat.slice(1,4),l=e.outFormat.slice(1,4);return a.startsWith("C")&&(r=C(t),a="ltr"===r||"rtl"===r?r.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=s+a),l.startsWith("C")&&(r=C(t),"rtl"===r?l="RTL":"ltr"===r?(r=function(t){let e=t.split("");return e.reverse(),C(e.join(""))}(t),l=r.toUpperCase()):l="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=n+l),e}(t,{inFormat:e,outFormat:i,swap:r},s);if(n.inFormat===n.outFormat)return t;e=n.inFormat,i=n.outFormat,r=n.swap;let a=e.slice(0,1),l=e.slice(1,4),o=i.slice(0,1),h=i.slice(1,4);if(s.inFormat=e,s.outFormat=i,s.swap=r,"L"===a&&"VLTR"===i){if("LTR"===l)return s.dir=j,k(t,s);if("RTL"===l)return s.dir=K,k(t,s)}if("V"===a&&"V"===o)return s.dir="RTL"===l?K:j,I(t,s);if("L"===a&&"VRTL"===i)return"LTR"===l?(s.dir=j,t=k(t,s)):(s.dir=K,t=k(t,s)),I(t);if("VLTR"===e&&"LLTR"===i)return s.dir=j,k(t,s);if("V"===a&&"L"===o&&l!==h)return t=I(t),"RTL"===l?b(t,"LLTR","VLTR",r,s):b(t,"LRTL","VRTL",r,s);if("VRTL"===e&&"LRTL"===i)return b(t,"LRTL","VRTL",r,s);if("L"===a&&"L"===o){let e=s.swap;return s.swap=e.slice(0,1)+"N","RTL"===l?(s.dir=K,t=k(t,s),s.swap="N"+e.slice(1,3),s.dir=j,t=k(t,s)):(s.dir=j,t=k(t,s),s.swap="N"+e.slice(1,3),t=b(t,"VLTR","LRTL",s.swap,s)),t}return t}function w(t,e,i,r,s){let l=0,c=[],f=0;for(let s=e;s*i<r;s+=i)if(z(t[s])||W(t[s])){if("ل"===t[s]&&A(t,s+i,i,r)){t[s]=$(t[s+i],0===l?n:a),s+=i,O(t,s,i,r),c[f]=s,f++,l=0;continue}let e=t[s];1===l?t[s]=v(t,s+i,i,r)?B(t[s]):H(t[s],h):!0===v(t,s+i,i,r)?t[s]=H(t[s],u):t[s]=H(t[s],o),W(e)||(l=1),!0===U(e)&&(l=0)}else l=0;return c}function C(t){let e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function P(t,e,i){if(0===t.length)return"";void 0===e&&(e=!0);let r="",n=(t=String(t)).split("");for(let a=0;a<t.length;a++){let l=!1;if(n[a]>="ﹰ"&&n[a]<"\ufeff"){let o=t.charCodeAt(a);n[a]>="ﻵ"&&n[a]<="ﻼ"?(e?(a>0&&i&&" "===n[a-1]?r=r.slice(0,-1)+"ل":(r+="ل",l=!0),r+=s[(o-65269)/2]):(r+=s[(o-65269)/2],r+="ل",a+1<t.length&&i&&" "===n[a+1]?a++:l=!0),l&&(G(X,a,!0,1),V.splice(a,0,V[a]))):r+=m[o-65136]}else r+=n[a]}return r}function k(t,e){let i=t.split(""),r=[];return T(i,r,e),function(t,e,i){if(0!==i.hiLevel&&i.swap[0]!==i.swap[1])for(let i=0;i<t.length;i++)1===e[i]&&(t[i]=D(t[i]))}(i,r,e),F(2,i,r,e),F(1,i,r,e),q=r,i.join("")}function T(t,e,i){let r=t.length,s=i.dir?p:g,n=0,a=-1,l=[],o=[];i.hiLevel=i.dir,i.lastArabic=!1,i.hasUbatAl=!1,i.hasUbatB=!1,i.hasUbatS=!1;for(let e=0;e<r;e++)l[e]=L(t[e]);for(let h=0;h<r;h++){let r=n,c=E(t,l,o,h,i);o[h]=c,n=s[r][c];let u=240&n;n&=15;let f=s[n][Y];if(e[h]=f,u>0)if(16===u){for(let t=a;t<h;t++)e[t]=1;a=-1}else a=-1;if(s[n][J])-1===a&&(a=h);else if(a>-1){for(let t=a;t<h;t++)e[t]=f;a=-1}5===l[h]&&(e[h]=0),i.hiLevel|=f}i.hasUbatS&&function(t,e,i,r){for(let s=0;s<i;s++)if(6===t[s]){e[s]=r.dir;for(let i=s-1;i>=0&&8===t[i];i--)e[i]=r.dir}}(l,e,r,i)}function L(t){let e=t.charCodeAt(0),i=x[e>>8];return i<100?i:S[i-100][255&e]}function I(t,e){let i=t.split("");if(e){let t=[];T(i,t,e),q=t}return i.reverse(),V.reverse(),i.join("")}function R(t,e,i){for(let r=0;r<e;r++)if(t[r]===i)return r;return-1}function z(t){for(let e=0;e<d.length;e++)if(t>=d[e]&&t<=y[e])return!0;return!1}function v(t,e,i,r){for(;e*i<r&&W(t[e]);)e+=i;return!!(e*i<r&&z(t[e]))}function A(t,e,i,r){for(;e*i<r&&W(t[e]);)e+=i;let n=" ";if(!(e*i<r))return!1;n=t[e];for(let t=0;t<s.length;t++)if(s[t]===n)return!0;return!1}function F(t,e,i,r){if(r.hiLevel<t)return;if(1===t&&r.dir===K&&!r.hasUbatB)return e.reverse(),void V.reverse();let s,n,a,l,o,h=e.length,c=0;for(;c<h;){if(i[c]>=t){for(s=c+1;s<h&&i[s]>=t;)s++;for(n=c,a=s-1;n<a;n++,a--)l=e[n],e[n]=e[a],e[a]=l,o=V[n],V[n]=V[a],V[a]=o;c=s}c++}}function E(t,e,i,r,s){let n=e[r];return{UBAT_L:()=>(s.lastArabic=!1,0),UBAT_R:()=>(s.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>s.lastArabic?3:2,UBAT_AL:()=>(s.lastArabic=!0,s.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,n;return r<1||r+1>=e.length||2!==(t=i[r-1])&&3!==t||2!==(n=e[r+1])&&3!==n?4:(s.lastArabic&&(n=3),n===t?n:4)},UBAT_ES:()=>2===(r>0?i[r-1]:5)&&r+1<e.length&&2===e[r+1]?2:4,UBAT_ET:()=>{if(r>0&&2===i[r-1])return 2;if(s.lastArabic)return 4;let t=r+1,n=e.length;for(;t<n&&11===e[t];)t++;return t<n&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===s.inFormat){let i=e.length,s=r+1;for(;s<i&&12===e[s];)s++;if(s<i){let i=t[r].charCodeAt(0),n=i>=1425&&i<=2303||64286===i,a=e[s];if(n&&(1===a||7===a))return 1}}return r<1||5===e[r-1]?4:i[r-1]},UBAT_B:()=>(s.lastArabic=!0,s.hasUbatB=!0,s.dir),UBAT_S:()=>(s.hasUbatS=!0,4),UBAT_LRE:()=>(s.lastArabic=!1,4),UBAT_RLE:()=>(s.lastArabic=!1,4),UBAT_LRO:()=>(s.lastArabic=!1,4),UBAT_RLO:()=>(s.lastArabic=!1,4),UBAT_PDF:()=>(s.lastArabic=!1,4),UBAT_BN:()=>4}[_[n]]()}function D(t){let e,i=0,s=r.length-1;for(;i<=s;)if(e=Math.floor((i+s)/2),t<r[e][0])s=e-1;else{if(!(t>r[e][0]))return r[e][1];i=e+1}return t}function U(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function B(t){for(let e=0;e<l.length;e++)if(t===l[e])return c[e];return t}function H(t,e){for(let i=0;i<l.length;i++)if(t===l[i])return e[i];return t}function W(t){return t>="ً"&&t<="ٕ"}function N(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function O(t,e,i,r){for(;e*i<r&&W(t[e]);)e+=i;return e*i<r&&(t[e]=" ",!0)}function $(t,e){for(let i=0;i<s.length;i++)if(t===s[i])return e[i];return t}function G(t,e,i,r){for(let s=0;s<t.length;s++)(t[s]>e||!i&&t[s]===e)&&(t[s]+=r)}let V=[],X=[],q=[];const Z={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},Y=5,J=6,j=0,K=1,Q=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,tt=/[\u0591-\u06ff\ufb1d-\ufefc]/},6371(t,e,i){i.d(e,{y:()=>s});const r=new(i(32488).A);function s(t,e=!0){if(!r.hasBidiChar(t))return[t,!1,{...r}];let i;i="rtl"===r.checkContextual(t)?"IDNNN":"ICNNN";let s=e?"VLYSN":"VLYNN";return[r.bidiTransform(t,i,s),!0,{...r}]}},85334(t,e,i){i.d(e,{$:()=>_,IB:()=>l,Iy:()=>C,KV:()=>b,N2:()=>x,RH:()=>M,ZD:()=>S,sn:()=>w});var r=i(68197),s=i(4576),n=i(4718),a=i(34727);function l(t){return"r"in t&&"g"in t&&"b"in t}function o(t){return"h"in t&&"s"in t&&"v"in t}function h(t){return"l"in t&&"a"in t&&"b"in t}function c(t){return"l"in t&&"c"in t&&"h"in t}i(78955),i(91829);const u=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],f=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function m(t,e){let i,r,s=[];if(t[0].length!==e.length)throw Error("dimensions do not match");let n=t.length,a=t[0].length,l=0;for(i=0;i<n;i++){for(l=0,r=0;r<a;r++)l+=t[i][r]*e[r];s.push(l)}return s}function d(t){let e=[t.r/255,t.g/255,t.b/255].map(t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4),i=m(u,e);return{x:100*i[0],y:100*i[1],z:100*i[2]}}function y(t){let e=m(f,[t.x/100,t.y/100,t.z/100]).map(t=>{let e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function g(t){let e=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function p(t){let e=t.l,i=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*i[0],y:100*i[1],z:108.883*i[2]}}function _(t){return l(t)?t:c(t)?function(t){return y(p(function(t){let e=t.l,i=t.c,r=t.h;return{l:e,a:i*Math.cos(r),b:i*Math.sin(r)}}(t)))}(t):h(t)?function(t){return y(p(t))}(t):function(t){return"x"in t&&"y"in t&&"z"in t}(t)?y(t):o(t)?function(t){let e,i=(t.h+360)%360/60,r=t.s/100,s=t.v/100*255,n=s*r,a=n*(1-Math.abs(i%2-1));switch(Math.floor(i)){case 0:e={r:n,g:a,b:0};break;case 1:e={r:a,g:n,b:0};break;case 2:e={r:0,g:n,b:a};break;case 3:e={r:0,g:a,b:n};break;case 4:e={r:a,g:0,b:n};break;case 5:case 6:e={r:n,g:0,b:a};break;default:e={r:0,g:0,b:0}}return e.r=Math.round(e.r+s-n),e.g=Math.round(e.g+s-n),e.b=Math.round(e.b+s-n),e}(t):t}function x(t){return o(t)?t:function(t){let{r:e,g:i,b:r}=t,s=Math.max(e,i,r),n=s-Math.min(e,i,r),a=s,l=0===n?0:s===e?(i-r)/n%6:s===i?(r-e)/n+2:(e-i)/n+4,o=0===n?0:n/a;return l<0&&(l+=6),l*=60,o*=100,a*=100/255,{h:l,s:o,v:a}}(_(t))}function S(t){return h(t)?t:function(t){return g(d(t))}(_(t))}function M(t){return c(t)?t:function(t){return function(t){let e=t.l,i=t.a,r=t.b,s=Math.sqrt(i*i+r*r),n=Math.atan2(r,i);return n=n>0?n:n+2*Math.PI,{l:e,c:s,h:n}}(g(d(t)))}(_(t))}function b(t){return t[0]??=0,t[1]??=0,t[2]??=0,t}function w(t){return t.length=4,b(t),t[3]??=1,(0,a.qE)(t[3],0,1),t}function C(t,e,i={}){if(0===t.length||e<=0)return[];if(1===(t=t.map(t=>"string"==typeof t?new r.A(t):t)).length||1===e){let i=[],r=t[0];for(let t=0;t<e;t++)i.push(r.clone());return i}if(i.shuffle&&(t=(0,s.k4)((0,n.o8)(t),i.seed)),t.length>=e){let i=[],r=(t.length-1)/(e-1);for(let s=0;s<e;s++){let e=Math.round(s*r);i.push(t[e].clone())}return i}return function(t,e,i={}){let r=[],n=t.length-1,a=Math.ceil((e-t.length)/n);t:for(let s=0;s<n;s++){let n=t[s],l=t[s+1];for(let s=1;s<=a;s++){let o=s/(a+1);if(r.push(k(n,l,o,i)),r.length+t.length===e)break t}}return[...t.map(t=>t.clone()),...(0,s.k4)(r,i.seed??1)]}(t,e,i)}const P=(t,e)=>{let i=Math.floor(10*e())-5;return Math.min(255,Math.max(0,t+i))};function k(t,e,i,n={}){let a=t.r,l=t.g,o=t.b,h=e.r,c=e.g,u=e.b,f=Math.round(a+(h-a)*i),m=Math.round(l+(c-l)*i),d=Math.round(o+(u-o)*i);if(!n.offset)return new r.A([f,m,d]);let y=(0,s.Mo)(n.seed);return new r.A([P(f,y),P(m,y),P(d,y)])}},18370(t,e,i){i.d(e,{z:()=>s});class r{constructor(t){this._import=t,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async t=>(this.module=t,t)),this._promise}}function s(t){return new r(t)}},56512(t,e,i){function r(t){let e,i,r=[],s=!1;return function(...n){return s&&e===this&&function(t,e){if(t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(t[i]!==e[i])return!1;return!0}(n,r)||(i=t.apply(this,n),e=this,r=n,s=!0),i}}i.d(e,{B:()=>r})},69397(t,e,i){i.d(e,{Qf:()=>l,Qh:()=>n,lM:()=>s});var r=i(34275);function s(t){if(!t)return 0;let e=h;for(let i in t)t.hasOwnProperty(i)&&(e+=a(t[i],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return l(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return o(t,8);let i=c;for(let r=0;r<e;r++)i+=a(t[r]);return i}(t);let e=h;for(let i in t)t.hasOwnProperty(i)&&(e+=a(t[i]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?n(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function l(...t){return t.reduce((t,e)=>t+(e?(0,r.iu)(e)?e.byteLength+u:Array.isArray(e)?o(e,16):0:0),0)}function o(t,e){return c+t.length*e}const h=32,c=16,u=145},6774(t,e,i){i.d(e,{O3:()=>n,Ox:()=>a,bR:()=>r});class r{constructor(t,e){this.x=t,this.y=e}static fromArray(t){return new r(t[0],t[1])}clone(){return new r(this.x,this.y)}equals(t,e){return t===this.x&&e===this.y}isEqual(t){return t.x===this.x&&t.y===this.y}setCoords(t,e){return this.x=t,this.y=e,this}normalize(){let t=this.x,e=this.y,i=Math.sqrt(t*t+e*e);return this.x/=i,this.y/=i,this}rightPerpendicular(){let t=this.x;return this.x=this.y,this.y=-t,this}leftPerpendicular(){let t=this.x;return this.x=-this.y,this.y=t,this}move(t,e){return this.x+=t,this.y+=e,this}assign(t){return this.x=t.x,this.y=t.y,this}assignAdd(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}assignSub(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}rotate(t,e){let i=this.x,r=this.y;return this.x=i*t-r*e,this.y=i*e+r*t,this}rotateReverse(t,e){let i=this.x,r=this.y;return this.x=i*t+r*e,this.y=-i*e+r*t,this}scale(t){return this.x*=t,this.y*=t,this}length(){let t=this.x,e=this.y;return Math.sqrt(t*t+e*e)}sub(t){return this.x-=t.x,this.y-=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}static distance(t,e){let i=e.x-t.x,r=e.y-t.y;return Math.sqrt(i*i+r*r)}static add(t,e){return new r(t.x+e.x,t.y+e.y)}static sub(t,e){return new r(t.x-e.x,t.y-e.y)}}class s{constructor(t,e,i){this.ratio=t,this.x=e,this.y=i}}class n{constructor(t,e,i,r=8,s=8){this._lines=[],this._starts=[],this.validateTessellation=!0,this._pixelRatio=r,this._pixelMargin=s,this._tileSize=512*r,this._dz=t,this._yPos=e,this._xPos=i}setPixelMargin(t){t!==this._pixelMargin&&(this._pixelMargin=t,this.setExtent(this._extent))}setExtent(t){this._extent=t,this._finalRatio=this._tileSize/t*(1<<this._dz);let e=this._pixelRatio*this._pixelMargin;e/=this._finalRatio;let i=t>>this._dz;e>i&&(e=i),this._margin=e,this._xmin=i*this._xPos-e,this._ymin=i*this._yPos-e,this._xmax=this._xmin+i+2*e,this._ymax=this._ymin+i+2*e}reset(t){this._type=t,this._lines=[],this._starts=[],this._line=null,this._start=0}moveTo(t,e){this._pushLine(),this._prevIsIn=this._isIn(t,e),this._moveTo(t,e,this._prevIsIn),this._prevPt=new r(t,e),this._firstPt=new r(t,e),this._dist=0}lineTo(t,e){let i,n,a,l,o,h,c,u,f=this._isIn(t,e),m=new r(t,e),d=r.distance(this._prevPt,m);if(f)this._prevIsIn?this._lineTo(t,e,!0):(i=this._prevPt,n=m,a=this._intersect(n,i),this._start=this._dist+d*(1-this._r),this._lineTo(a.x,a.y,!0),this._lineTo(n.x,n.y,!0));else if(this._prevIsIn)n=this._prevPt,i=m,a=this._intersect(n,i),this._lineTo(a.x,a.y,!0),this._lineTo(i.x,i.y,!1);else{let t=this._prevPt,e=m;if(t.x<=this._xmin&&e.x<=this._xmin||t.x>=this._xmax&&e.x>=this._xmax||t.y<=this._ymin&&e.y<=this._ymin||t.y>=this._ymax&&e.y>=this._ymax)this._lineTo(e.x,e.y,!1);else{let i=[];if((t.x<this._xmin&&e.x>this._xmin||t.x>this._xmin&&e.x<this._xmin)&&(l=(this._xmin-t.x)/(e.x-t.x),u=t.y+l*(e.y-t.y),u<=this._ymin?h=!1:u>=this._ymax?h=!0:i.push(new s(l,this._xmin,u))),(t.x<this._xmax&&e.x>this._xmax||t.x>this._xmax&&e.x<this._xmax)&&(l=(this._xmax-t.x)/(e.x-t.x),u=t.y+l*(e.y-t.y),u<=this._ymin?h=!1:u>=this._ymax?h=!0:i.push(new s(l,this._xmax,u))),(t.y<this._ymin&&e.y>this._ymin||t.y>this._ymin&&e.y<this._ymin)&&(l=(this._ymin-t.y)/(e.y-t.y),c=t.x+l*(e.x-t.x),c<=this._xmin?o=!1:c>=this._xmax?o=!0:i.push(new s(l,c,this._ymin))),(t.y<this._ymax&&e.y>this._ymax||t.y>this._ymax&&e.y<this._ymax)&&(l=(this._ymax-t.y)/(e.y-t.y),c=t.x+l*(e.x-t.x),c<=this._xmin?o=!1:c>=this._xmax?o=!0:i.push(new s(l,c,this._ymax))),0===i.length)o?h?this._lineTo(this._xmax,this._ymax,!0):this._lineTo(this._xmax,this._ymin,!0):h?this._lineTo(this._xmin,this._ymax,!0):this._lineTo(this._xmin,this._ymin,!0);else if(i.length>1&&i[0].ratio>i[1].ratio)this._start=this._dist+d*i[1].ratio,this._lineTo(i[1].x,i[1].y,!0),this._lineTo(i[0].x,i[0].y,!0);else{this._start=this._dist+d*i[0].ratio;for(let t=0;t<i.length;t++)this._lineTo(i[t].x,i[t].y,!0)}this._lineTo(e.x,e.y,!1)}}this._dist+=d,this._prevIsIn=f,this._prevPt=m}close(){if(this._line.length>2){let t=this._firstPt,e=this._prevPt;(t.x!==e.x||t.y!==e.y)&&this.lineTo(t.x,t.y);let i=this._line,r=i.length;for(;r>=4&&(i[0].x===i[1].x&&i[0].x===i[r-2].x||i[0].y===i[1].y&&i[0].y===i[r-2].y);)i.pop(),i[0].x=i[r-2].x,i[0].y=i[r-2].y,--r}}result(t=!0){return this._pushLine(),0===this._lines.length?null:(3===this._type&&t&&l.simplify(this._tileSize,this._margin*this._finalRatio,this._lines),this._lines)}resultWithStarts(){if(2!==this._type)throw Error("Only valid for lines");this._pushLine();let t=this._lines,e=t.length;if(0===e)return null;let i=[];for(let r=0;r<e;r++)i.push({line:t[r],start:this._starts[r]||0});return i}_isIn(t,e){return t>=this._xmin&&t<=this._xmax&&e>=this._ymin&&e<=this._ymax}_intersect(t,e){let i,s,n;if(e.x>=this._xmin&&e.x<=this._xmax)s=e.y<=this._ymin?this._ymin:this._ymax,n=(s-t.y)/(e.y-t.y),i=t.x+n*(e.x-t.x);else if(e.y>=this._ymin&&e.y<=this._ymax)i=e.x<=this._xmin?this._xmin:this._xmax,n=(i-t.x)/(e.x-t.x),s=t.y+n*(e.y-t.y);else{s=e.y<=this._ymin?this._ymin:this._ymax,i=e.x<=this._xmin?this._xmin:this._xmax;let r=(i-t.x)/(e.x-t.x),a=(s-t.y)/(e.y-t.y);r<a?(n=r,s=t.y+r*(e.y-t.y)):(n=a,i=t.x+a*(e.x-t.x))}return this._r=n,new r(i,s)}_pushLine(){this._line&&(1===this._type?this._line.length>0&&(this._lines.push(this._line),this._starts.push(this._start)):2===this._type?this._line.length>1&&(this._lines.push(this._line),this._starts.push(this._start)):3===this._type&&this._line.length>3&&(this._lines.push(this._line),this._starts.push(this._start))),this._line=[],this._start=0}_moveTo(t,e,i){3===this._type?(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e)),this._isH=!1,this._isV=!1):i&&(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.push(new r(t,e)))}_lineTo(t,e,i){let s,n;if(3!==this._type)if(i){if(t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line.length>0&&(s=this._line[this._line.length-1],s.equals(t,e)))return;this._line.push(new r(t,e))}else this._line&&this._line.length>0&&this._pushLine();else if(i||(t<this._xmin&&(t=this._xmin),t>this._xmax&&(t=this._xmax),e<this._ymin&&(e=this._ymin),e>this._ymax&&(e=this._ymax)),t=Math.round((t-(this._xmin+this._margin))*this._finalRatio),e=Math.round((e-(this._ymin+this._margin))*this._finalRatio),this._line&&this._line.length>0){s=this._line[this._line.length-1];let i=s.x===t,a=s.y===e;if(i&&a)return;this._isH&&i||this._isV&&a?(s.x=t,s.y=e,n=this._line[this._line.length-2],n.x===t&&n.y===e?(this._line.pop(),this._line.length<=1?(this._isH=!1,this._isV=!1):(n=this._line[this._line.length-2],this._isH=n.x===t,this._isV=n.y===e)):(this._isH=n.x===t,this._isV=n.y===e)):(this._line.push(new r(t,e)),this._isH=i,this._isV=a)}else this._line.push(new r(t,e))}}class a{setExtent(t){this._ratio=4096===t?1:4096/t}get validateTessellation(){return this._ratio<1}reset(t){this._lines=[],this._line=null}moveTo(t,e){this._line&&this._lines.push(this._line),this._line=[];let i=this._ratio;this._line.push(new r(t*i,e*i))}lineTo(t,e){let i=this._ratio;this._line.push(new r(t*i,e*i))}close(){let t=this._line;t&&!t[0].isEqual(t[t.length-1])&&t.push(t[0])}result(){return this._line&&this._lines.push(this._line),0===this._lines.length?null:this._lines}}class l{static simplify(t,e,i){if(!i)return;let r=-e,s=t+e,n=-e,a=t+e,o=[],h=[],c=i.length;for(let t=0;t<c;++t){let e=i[t];if(!e||e.length<2)continue;let l,c=e[0],u=e.length;for(let i=1;i<u;++i)l=e[i],c.x===l.x&&(c.x<=r&&(c.y>l.y?(o.push(t),o.push(i),o.push(0),o.push(-1)):(h.push(t),h.push(i),h.push(0),h.push(-1))),c.x>=s&&(c.y<l.y?(o.push(t),o.push(i),o.push(1),o.push(-1)):(h.push(t),h.push(i),h.push(1),h.push(-1)))),c.y===l.y&&(c.y<=n&&(c.x<l.x?(o.push(t),o.push(i),o.push(2),o.push(-1)):(h.push(t),h.push(i),h.push(2),h.push(-1))),c.y>=a&&(c.x>l.x?(o.push(t),o.push(i),o.push(3),o.push(-1)):(h.push(t),h.push(i),h.push(3),h.push(-1)))),c=l}if(0===o.length||0===h.length)return;l.fillParent(i,h,o),l.fillParent(i,o,h);let u=[];l.calcDeltas(u,h,o),l.calcDeltas(u,o,h),l.addDeltas(u,i)}static fillParent(t,e,i){let r=i.length,s=e.length;for(let n=0;n<s;n+=4){let s=e[n],a=e[n+1],l=e[n+2],h=t[s][a-1],c=t[s][a],u=8092,f=-1;for(let e=0;e<r;e+=4){if(i[e+2]!==l)continue;let r=i[e],s=i[e+1],n=t[r][s-1],a=t[r][s];switch(l){case 0:case 1:if(o(h.y,n.y,a.y)&&o(c.y,n.y,a.y)){let t=Math.abs(a.y-n.y);t<u&&(u=t,f=e)}break;case 2:case 3:if(o(h.x,n.x,a.x)&&o(c.x,n.x,a.x)){let t=Math.abs(a.x-n.x);t<u&&(u=t,f=e)}}}e[n+3]=f}}static calcDeltas(t,e,i){let r=e.length;for(let s=0;s<r;s+=4){let r=l.calcDelta(s,e,i,[]);t.push(e[s]),t.push(e[s+1]),t.push(e[s+2]),t.push(r)}}static calcDelta(t,e,i,r){let s=e[t+3];if(-1===s)return 0;let n=r.length;return n>1&&r[n-2]===s?0:(r.push(s),l.calcDelta(s,i,e,r)+1)}static addDeltas(t,e){let i=t.length,r=0;for(let e=0;e<i;e+=4){let i=t[e+3];i>r&&(r=i)}for(let s=0;s<i;s+=4){let i=e[t[s]],n=t[s+1],a=r-t[s+3];switch(t[s+2]){case 0:i[n-1].x-=a,i[n].x-=a,1===n&&(i[i.length-1].x-=a),n===i.length-1&&(i[0].x-=a);break;case 1:i[n-1].x+=a,i[n].x+=a,1===n&&(i[i.length-1].x+=a),n===i.length-1&&(i[0].x+=a);break;case 2:i[n-1].y-=a,i[n].y-=a,1===n&&(i[i.length-1].y-=a),n===i.length-1&&(i[0].y-=a);break;case 3:i[n-1].y+=a,i[n].y+=a,1===n&&(i[i.length-1].y+=a),n===i.length-1&&(i[0].y+=a)}}}}const o=(t,e,i)=>t>=e&&t<=i||t>=i&&t<=e},31411(t,e,i){i.d(e,{GS:()=>C,gh:()=>k});var r=i(49186),s=i(56512),n=i(65864),a=i(4305),l=i(50954),o=i(52006),h=i(49663),c=i(46068),u=i(15507);const f=1e-6,m=[0,0];function d(t){return{maxSegmentLength:t.maxSegmentLength??0,maxDeviation:t.maxDeviation??0,maxSegmentsPerCurve:t.maxSegmentsPerCurve??12e3,minSegmentsPerCurve:Math.max(t.minSegmentsPerCurve??1,1)}}class y{constructor(t,e){this.curveStart=t,this.curveEnd=e,this.tStart=0,this.tEnd=0,this.tEndStack=[],this.arcEndStack=[]}get stackSize(){return this.tEndStack.length}initialize(t,e){this.tStart=0,this.arcStart=t,this.tEndStack.push(1),this.arcEndStack.push(e)}splitAt(t){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(t),this.arcEndStack.push(this.interpolate(t))}splitInHalf(){return this.splitAt((this.tStart+this.tEnd)/2)}pop(){this.tEnd=this.tEndStack.pop(),this.arcEnd=this.arcEndStack.pop()}next(){this.tStart=this.tEnd,this.arcStart=this.arcEnd}densify(t,{maxDeviation:e,maxSegmentLength:i,maxSegmentsPerCurve:r,minSegmentsPerCurve:s}){let n=i*i,a=e*e,l=1/r,o=this.interpolate(0),h=this.interpolate(1);(0,u.kb)(this.curveStart,o)>f&&t.push(o),this.initialize(o,h);let c=1/s;for(let t=s-1;t>0;t--){let e=t*c;this.pop(),this.splitAt(e)}for(;this.stackSize>0;)this.pop(),this.tStart===this.tEnd||this.tEnd-this.tStart<l||(0===n||!isFinite(n)||(0,u.kb)(this.arcStart,this.arcEnd)<n)&&(0===a||!isFinite(a)||this.getDeviation2()<a)?(t.push(this.arcEnd),this.next()):this.splitInHalf();return(0,u.kb)(this.curveEnd,h)>f&&t.push([...this.curveEnd]),t}}class g extends y{constructor(t,e){let[i,r,s]=e.b;super(t,i),this._controlPointsStack=[],this._curveControlPoints=[r,s],this._arcControlPoints=[r,s],this._controlPointsStack.push(this._arcControlPoints)}splitAt(t){let{arcStart:e,arcEnd:i,tStart:r,tEnd:s}=this,[n,a]=this._arcControlPoints,l=(t-r)/(s-r),o=(0,u.RS)([],e,n,l),h=(0,u.RS)(m,n,a,l),c=(0,u.RS)([],a,i,l),f=(0,u.RS)([],o,h,l),d=(0,u.RS)([],h,c,l),y=(0,u.RS)([],f,d,l);this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this._controlPointsStack.push([d,c]),this.tEndStack.push(t),this.arcEndStack.push(y),this._arcControlPoints[0]=o,this._arcControlPoints[1]=f,this._controlPointsStack.push(this._arcControlPoints)}pop(){super.pop(),this._arcControlPoints=this._controlPointsStack.pop()}interpolate(t){let{curveStart:e,curveEnd:i}=this,[r,s]=this._curveControlPoints;return(0,a.B4)(e,r,s,i,t)}getDeviation2(){let{arcStart:t,arcEnd:e}=this,[i,r]=this._arcControlPoints;return Math.max((0,u.yE)(i,t,e),(0,u.yE)(r,t,e))}}class p extends y{constructor(t,e){let[i]=e.a;super(t,i),this._derivedEllipse=(0,c.SW)(t,e)}pop(){super.pop(),this._tMid=(this.tStart+this.tEnd)/2,this._arcMid=this.interpolate(this._tMid)}splitInHalf(){this.tEndStack.push(this.tEnd),this.arcEndStack.push(this.arcEnd),this.tEndStack.push(this._tMid),this.arcEndStack.push(this._arcMid)}interpolate(t){return(0,c.Uk)(this._derivedEllipse,t)}getDeviation2(){return(0,u.yE)(this._arcMid,this.arcStart,this.arcEnd)}}function _(t,e,i,{cx:r,cy:s,radius:n,thetaStart:a,thetaEnd:l,isInvalid:o},{maxDeviation:h,maxSegmentLength:c,maxSegmentsPerCurve:m,minSegmentsPerCurve:d}){if(o)return t.push([...i]),t;let y=2*n,g=[r+n*Math.cos(a),s+n*Math.sin(a)],p=[r+n*Math.cos(l),s+n*Math.sin(l)];(0,u.kb)(e,g)>f&&t.push(g);let _=Math.abs(l-a),x=c>0&&c<y?2*Math.asin(c/y):_,S=h>0&&h<=n?2*Math.acos(1-h/n):_,M=Math.min(m,Math.max(d,Math.ceil(Math.abs(_/Math.min(x,S))))),b=1/M;for(let e=1;e<M;e++){let i=e*b,o=a*(1-i)+l*i;t.push([r+n*Math.cos(o),s+n*Math.sin(o)])}return t.push(p),(0,u.kb)(i,p)>f&&t.push([...i]),t}function x(t,e,i,r){return new g(e,i).densify(t,r)}function S(t,e,i,r){let s=(0,l.pM)(e,i),[n]=i.c;return _(t,e,n,s,r)}function M(t,e,i,r){let s=(0,h.io)(e,i),[n]=i.a;return _(t,e,n,s,r)}function b(t,e,i,r){let[s,n,a,l,o,h,c]=i.a;return 0===h||0===c?(t.push([...s]),t):new p(e,i).densify(t,r)}function w(t,e,i,r){return(0,o.Xq)(i)?(t.push([...i]),t):(0,o.n1)(i)?x(t,e,i,r):(0,o.aO)(i)?S(t,e,i,r):(0,o.DA)(i)?M(t,e,i,r):b(t,e,i,r)}function C(t,e={}){if(!(0,o.Ed)(t))return t;let i=d(e),r=(0,o.FD)(t),s=[];for(let t of r){let e=[];for(let r=0;r<t.length-1;r++){let s=r+1,n=[...(0,o.yP)(t[r])];0===r&&e.push(n),w(e,n,t[s],i)}s.push(e)}return"curvePaths"in t?{...void 0===t.hasZ?{}:{hasZ:t.hasZ},...void 0===t.hasM?{}:{hasM:t.hasM},paths:s,spatialReference:t.spatialReference}:{...void 0===t.hasZ?{}:{hasZ:t.hasZ},...void 0===t.hasM?{}:{hasM:t.hasM},rings:s,spatialReference:t.spatialReference}}const P=(0,s.B)(t=>({maxDeviation:0,maxSegmentLength:100*t,maxSegmentsPerCurve:12e3,minSegmentsPerCurve:1}));async function k(t,e,s){return await async function(t,e,s){let n=null;for(let a of t)if(a&&(0,o.Ed)(a)&&null==a.spatialReference.xyTolerance&&(0,o.V8)(a,e)){let t=a.spatialReference;if(!t)throw new r.A("geometry:missing-spatial-reference","Geometry contains an unsupported curve type, but it cannot be densified because it has no spatial reference.");let e=T(t);if(s.has(e))a.spatialReference=s.get(e);else{n||=await Promise.all([i.e(9187),i.e(8885),i.e(9117),i.e(3299),i.e(1550)]).then(()=>i(78125));let l=n.fromSpatialReference(t)?.getTolerance();if(null==l)throw new r.A("geometry:missing-tolerance","Geometry contains an unsupported curve type, but it cannot be densified because the tolerance of its spatial reference is unknown. Set the `xyTolerance` property of the spatial reference.");let o=a.spatialReference.clone();o.read({xyTolerance:l}),a.spatialReference=o,s.set(e,o)}}}(t,new Set(e),s),t.map(t=>{if(!t||!(0,o.Ed)(t))return t;let i=t.spatialReference.xyTolerance;if(null==i)return t;let r=P(i);return(0,n.rS)(function(t,e,i){if(!(0,o.Ed)(t))return t;let r=new Set(e),s=d(i),n=(0,o.FD)(t),a=[],l=!1;for(let t of n){let e=[];for(let i=0;i<t.length-1;i++){let n=i+1,a=[...(0,o.yP)(t[i])];0===i&&e.push(a);let h=t[n];(0,o.Xq)(h)?e.push([...h]):(0,o.n1)(h)&&!r.has("cubic-bezier")?x(e,a,h,s):(0,o.aO)(h)&&!r.has("circular-arc")?S(e,a,h,s):(0,o.DA)(h)&&!r.has("elliptic-arc")?M(e,a,h,s):(0,o.wY)(h)&&!r.has("elliptic-arc")?b(e,a,h,s):(e.push((0,o.tk)(h)),l=!0)}a.push(e)}return"curvePaths"in t?{...void 0===t.hasZ?{}:{hasZ:t.hasZ},...void 0===t.hasM?{}:{hasM:t.hasM},spatialReference:t.spatialReference,...l?{curvePaths:a}:{paths:a}}:{hasZ:t.hasZ,hasM:t.hasM,spatialReference:t.spatialReference,...l?{curveRings:a}:{rings:a}}}(t,e,r))})}function T(t){if(null!=t.wkid)return`${t.wkid}`;if(null!=t.wkt)return t.wkt;let e="toJSON"in t&&"function"==typeof t.toJSON?t.toJSON():t;return JSON.stringify(e)}},62577(t,e,i){function r(t){return t?{originPosition:"upper-left"===t.originPosition?"upperLeft":"lower-left"===t.originPosition?"lowerLeft":t.originPosition,scale:t.tolerance?[t.tolerance,t.tolerance,1,1]:[1,1,1,1],translate:null==t.extent?[0,0,0,0]:[t.extent.xmin,t.extent.ymax,t.extent.zmin??0,t.extent.mmin??0]}:null}function s(t){if(function(t){return"lowerLeft"===t.originPosition&&4===t.scale.length&&4===t.translate.length}(t))return t;let{originPosition:e,scale:i,translate:r}=t,s=i[0]??1,n=i[1]??1;return{originPosition:"lowerLeft",scale:[s,"lowerLeft"===e?n:-n,i[2]??1,i[3]??1],translate:[r[0]??0,r[1]??0,r[2]??0,r[3]??0]}}function n({scale:t,translate:e},i){return Math.round((i-e[0])/t[0])}function a({scale:t,translate:e},i){return Math.round((i-e[1])/t[1])}function l({scale:t,translate:e},i){return i*t[0]+e[0]}function o({scale:t,translate:e},i){return i*t[1]+e[1]}function h({scale:t,translate:e},i){return(i??0)*t[2]+e[2]}function c({scale:t,translate:e},i){return i?i*t[3]+e[3]:0}function u(t,e){return t&&e?y:t&&!e?m:!t&&e?d:f}i.d(e,{$X:()=>S,B2:()=>a,Gy:()=>p,IE:()=>n,P5:()=>M,Q1:()=>s,SW:()=>_,Tr:()=>x,VV:()=>r});const f=(t,e)=>{let i=Array(e.length);if(!e.length)return i;let r=e[0],s=l(t,r[0]),n=o(t,r[1]);i[0]=[s,n];let{scale:a,originPosition:h}=t,c=a[0],u="lowerLeft"===h?a[1]:-a[1];for(let t=1;t<e.length;t++){let[r,a]=e[t];s+=c*r,n+=u*a,i[t]=[s,n]}return i},m=(t,e)=>{let i=Array(e.length);if(!e.length)return i;let r=e[0],s=l(t,r[0]),n=o(t,r[1]);i[0]=[s,n,h(t,r[2])];let{scale:a,originPosition:c}=t,u=a[0],f="lowerLeft"===c?a[1]:-a[1];for(let r=1;r<e.length;r++){let[a,l,o]=e[r];s+=u*a,n+=f*l,i[r]=[s,n,h(t,o)]}return i},d=(t,e)=>{let i=Array(e.length);if(!e.length)return i;let r=e[0],s=l(t,r[0]),n=o(t,r[1]);i[0]=[s,n,c(t,r[2])];let{scale:a,originPosition:h}=t,u=a[0],f="lowerLeft"===h?a[1]:-a[1];for(let r=1;r<e.length;r++){let[a,l,o]=e[r];s+=u*a,n+=f*l,i[r]=[s,n,c(t,o)]}return i},y=(t,e)=>{let i=Array(e.length);if(!e.length)return i;let r=e[0],s=l(t,r[0]),n=o(t,r[1]);i[0]=[s,n,h(t,r[2]),c(t,r[3])];let{scale:a,originPosition:u}=t,f=a[0],m="lowerLeft"===u?a[1]:-a[1];for(let r=1;r<e.length;r++){let[a,l,o,u]=e[r];s+=f*a,n+=m*l,i[r]=[s,n,h(t,o),c(t,u)]}return i};function g(t,e,i){let r=Array(i.length);for(let s=0;s<i.length;s++)r[s]=e(t,i[s]);return r}function p(t,e,i){let r=s(t);return e.x=n(r,i.x),e.y=a(r,i.y),null!=i.z&&(e.z=function({scale:t,translate:e},i){return Math.round(((i??0)-e[2])/t[2])}(r,i.z)),null!=i.m&&(e.m=function({scale:t,translate:e},i){return i?Math.round((i-e[3])/t[3]):0}(r,i.m)),e}function _(t,e,i,r=i?.hasZ??!1,n=i?.hasM??!1){if(null!=i){let a=s(t);e.points=u(r,n)(a,i.points),e.hasZ=r,e.hasM=n}return e}function x(t,e,i,r=null!=i?.z,n=null!=i?.m){if(null==i)return e;let a=s(t);return e.x=l(a,i.x),e.y=o(a,i.y),r&&(e.z=h(a,i.z)),n&&(e.m=c(a,i.m)),e}function S(t,e,i,r=i?.hasZ??!1,n=i?.hasM??!1){return null!=i&&(e.rings=g(s(t),u(r,n),i.rings),e.hasZ=r,e.hasM=n),e}function M(t,e,i,r=i?.hasZ??!1,n=i?.hasM??!1){return null!=i&&(e.paths=g(s(t),u(r,n),i.paths),e.hasZ=r,e.hasM=n),e}},92722(t,e,i){i.d(e,{A:()=>s});var r=i(69397);class s{constructor(t=[],e=[],i=!1,r=!1){this.lengths=t??[],this.coords=e??[],this.hasZ=i,this.hasM=r}static fromJSON({lengths:t,coords:e,hasZ:i,hasM:r}){return new s(t,e,i||!1,r||!1)}static fromRect([t,e,i,r]){let n=i-t,a=r-e;return new s([5],[t,e,n,0,0,a,-n,0,0,-a])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((t,e)=>t+e,0)}get usedMemory(){return 64+(0,r.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let t=0,e=0;for(let i of this.lengths){if(i<3)continue;let{stride:r}=this,s=this.coords[r*e],n=this.coords[r*e+1];for(let a=1;a<i;a+=1){let i=r*(e+a),l=this.coords[i],o=this.coords[i+1];t+=-.5*(l-s)*(o+n),s=l,n=o}e+=i}return t}forEachVertex(t){let e=0;if(this.isPoint)return t(this.coords[0],this.coords[1]);let{stride:i}=this;for(let r of this.lengths){for(let s=0;s<r;s++){let r=i*(e+s);t(this.coords[r],this.coords[r+1])}e+=r}}deltaDecode(){let t=this.clone(),{coords:e,lengths:i}=t,r=0,{stride:s}=this;for(let t of i){for(let i=1;i<t;i++){let t=s*(r+i);e[t]+=e[t-s],e[t+1]+=e[t+1-s]}r+=t}return t}clone(t){if(this.isPoint)return new s([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let e=Array.from(this.lengths),{stride:i,size:r}=this,n=this.coords.slice(0,r*i);return t?(t.set(n),new s(e,t,this.hasZ,this.hasM)):new s(e,Array.from(n),this.hasZ,this.hasM)}justXY(){let{stride:t,size:e}=this;if(2===t)return this;let i=Array(e*t);for(let e=0,r=0;e<i.length;e+=t)i[r++]=this.coords[e],i[r++]=this.coords[e+1];return new s(this.lengths,i,!1,!1)}}},49544(t,e,i){i.r(e),i.d(e,{CIMSymbolHelper:()=>gt,CIMSymbolInflatedSizeHelper:()=>yt,capTypeToEnum:()=>_t,forEachSymbolLayer:()=>pt,resolveSymbolToCIM:()=>ft,slsDashToTemplateArray:()=>kt,symbolToCIM:()=>ut});var r=i(6371),s=(i(44208),i(4718)),n=i(53966),a=i(17676),l=i(87811),o=i(90629),h=i(19419),c=i(537),u=i(52006),f=i(31411),m=i(11831),d=i(35833),y=i(98939),g=i(57582),p=i(34727),_=i(93687),x=i(36745),S=i(12359),M=(i(12176),i(60408));class b{applyColorSubstitution(t,e){if(!e)return t;this._rasterizationCanvas||=document.createElement("canvas");let{width:i,height:r}=t,s=this._rasterizationCanvas,n=s.getContext("2d",{willReadFrequently:!0});t!==s&&(s.width=i,s.height=r,n.drawImage(t,0,0,i,r));let a=n.getImageData(0,0,i,r).data;if(e)for(let t of e)if(t&&t.oldColor&&4===t.oldColor.length&&t.newColor&&4===t.newColor.length){let[e,i,r,s]=t.oldColor,[n,l,o,h]=t.newColor;if(e===n&&i===l&&r===o&&s===h)continue;for(let t=0;t<a.length;t+=4)e===a[t]&&i===a[t+1]&&r===a[t+2]&&s===a[t+3]&&(a[t]=n,a[t+1]=l,a[t+2]=o,a[t+3]=h)}let l=new ImageData(a,i,r);return n.putImageData(l,0,0),s}tintImageData(t,e){if(!e||e.length<4)return t;this._rasterizationCanvas||=document.createElement("canvas");let{width:i,height:r}=t,s=this._rasterizationCanvas,n=s.getContext("2d",{willReadFrequently:!0});t!==s&&(s.width=i,s.height=r,n.drawImage(t,0,0,i,r));let a=n.getImageData(0,0,i,r),l=new Uint8Array(a.data),o=[e[0]/255,e[1]/255,e[2]/255,e[3]/255];for(let t=0;t<l.length;t+=4)l[t]*=o[0],l[t+1]*=o[1],l[t+2]*=o[2],l[t+3]*=o[3];let h=new ImageData(new Uint8ClampedArray(l.buffer),i,r);return n.putImageData(h,0,0),s}}var w=i(78653),C=i(28076),P=i(75585);function k(t){let e=t.getFrame(0);if(e instanceof HTMLImageElement||e instanceof HTMLCanvasElement)return e;let i=document.createElement("canvas");i.width=t.width,i.height=t.height;let r=i.getContext("2d");return e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0),i}function T(t,e=0){if(0===e)return t;let i=Math.cos(e),r=Math.sin(e),[s,n]=t;return[s*i+n*-r,s*r+n*i]}function L(t,e=0){let i=0;for(let r=0;r<4;r++)i+=t[e+r]*I[r];return i}const I=[1/256,1/65536,1/16777216,1/4294967296];L(new Uint8ClampedArray([255,255,255,255])),L(new Uint8ClampedArray([255,255,255,0])),i(35521);const R=()=>n.A.getLogger("esri.symbols.cim.rasterizingUtils");let z;function v(t,e){let{colorRamp:i,gradientType:r}=e,s=A(i),n="CIMFixedColorRamp"===i.type;if("Continuous"===r&&!n)return F(t,s);let a=e.interval??C.D.CIMGradientFill.interval;if(n)return F(t,function(t,e){let i=[],r=(t.length-1)/(e-1);for(let s=0;s<e;s++){let n=t[Math.round(s*r)].color;i.push({offset:s/e,color:n}),i.push({offset:(s+1)/e,color:n})}return i}(s,a));let l=[];z??=document.createElement("canvas"),function(t,e,i,r,s){let n=i+2*s;t.width=n,t.height=r;let a=(s+1)/n,l=t.getContext("2d",{willReadFrequently:!0});if(e.length>0){let t=l.createLinearGradient(0,0,n,r);F(t,e,a),l.fillStyle=t}else l.fillStyle="rgba(128, 128, 128, 1)";l.fillRect(0,0,n,r)}(z,s,a,1,0);let o=z.getContext("2d").getImageData(0,0,a,1).data;for(let t=0,e=0;t<a;t++,e=4*t){let i=[o[e+0],o[e+1],o[e+2],o[e+3]];l.push({offset:t/a,color:i}),l.push({offset:(t+1)/a,color:i})}return F(t,l)}function A(t){let e=[];switch(t.type){case"CIMPolarContinuousColorRamp":case"CIMLinearContinuousColorRamp":{"CIMPolarContinuousColorRamp"===t.type&&R().warnOnce("CIMPolarContinuousColorRamp is currently unsupported. Falling back to CIMLinearContinuousColorRamp.");let i=t;e.push({offset:0,color:[i.fromColor[0],i.fromColor[1],i.fromColor[2],i.fromColor[3]/255]}),e.push({offset:1,color:[i.toColor[0],i.toColor[1],i.toColor[2],i.toColor[3]/255]});break}case"CIMFixedColorRamp":{let i=t,r=1/(i.colors.length-1),s=0;for(let t of i.colors)e.push({offset:s,color:[t[0],t[1],t[2],t[3]/255]}),s+=r;break}case"CIMMultipartColorRamp":{let i=t,r=i.weights.reduce((t,e)=>t+e,0),s=0;for(let t=0;t<i.colorRamps.length;t++){let n=i.colorRamps[t],a=i.weights[t],l=A(n);for(let t of l)e.push({offset:(s+t.offset*a)/r,color:t.color});s+=a}break}default:R().error(`Color ramp "${t.type}" currently unsupported.`)}return e}function F(t,e,i=0){for(let{offset:r,color:s}of e)t.addColorStop(Math.min(Math.max(r,i),1-i),`rgba(${s[0]}, ${s[1]}, ${s[2]}, ${s[3]})`)}class E{constructor(t=0,e=0,i=0,r=0){this.x=t,this.y=e,this.width=i,this.height=r}static fromExtent(t){return new E(t.xmin,-t.ymax,t.xmax-t.xmin,t.ymax-t.ymin)}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}var D=i(69754);function U(t){return`rgb(${t.slice(0,3).toString()})`}function B(t){return`rgba(${t.slice(0,3).toString()},${t[3]})`}i(5760);class H{constructor(t){t&&(this._textRasterizationCanvas=t)}rasterizeRichText(t,e){this._textRasterizationCanvas||=document.createElement("canvas");let i=this._textRasterizationCanvas,r=i.getContext("2d",{willReadFrequently:!0}),s=this._layoutRichTextRuns(r,t,e);this._parameters=e;let{decoration:n,weight:a}=e.font,l="underline"===n?"none":n,o=l===n?e:O(e,l);this._lineHeight=Math.max(...s.map(t=>t.height),this._measureLineHeight(o)),this._lineThroughWidthOffset="line-through"===l?.1*this._lineHeight:0;let h=null!=e.backgroundColor||null!=e.borderLine,c=h?8:0,u=Math.max(...s.map(t=>t.width),0)+2*c,f=s.reduce((t,e)=>t+e.height,0)+2*c;if(i.width=u+2*this._lineThroughWidthOffset,i.height=f,0===i.width||0===i.height)return i.width=i.height=1,{size:[0,0],image:new Uint32Array,sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:i};this._renderedWidth=u,this._renderedHeight=f,this._renderedOutlineSize=(e.outline.size||0)*e.pixelRatio,this._renderedHaloSize=(e.halo.size||0)*e.pixelRatio,this._lineThroughWidthOffset*=e.pixelRatio;let m=(e.outline&&e.outline.color)??[0,0,0,0],d=e.color??[0,0,0,0],y=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=B(d),this._outlineStyle=B(m),this._haloStyle=U(y);let g=this._renderedOutlineSize,p=this._renderedHaloSize;r.save(),r.clearRect(0,0,i.width,i.height);let _=c*e.pixelRatio,x=$("left",this._renderedWidth-2*_,p+g)+_,S=p+g+_,M=this._lineThroughWidthOffset,b=0;if(h){r.save();let t=e.backgroundColor??[0,0,0,0],s=e.borderLine?.color??[0,0,0,0],n=2*(e.borderLine?.size??0);r.fillStyle=B(t),r.strokeStyle=B(s),r.lineWidth=n,r.fillRect(0,0,i.width,i.height),r.strokeRect(0,0,i.width,i.height),r.restore()}b+=S,M+=x,p>0&&this._renderRichTextOutline(r,s,M,b,e,this._renderedHaloSize+this._renderedOutlineSize),g>0&&this._renderRichTextOutline(r,s,M,b,e,this._renderedOutlineSize);for(let t of s){let i=M;"center"===e.horizontalAlignment?i+=(this._renderedWidth-2*_-t.width)/2:"right"===e.horizontalAlignment&&(i+=this._renderedWidth-2*_-t.width-p-g);let s=i;for(let e of t.segments)W(r,e.parameters,"left",e.characterSpacing),p>0&&(r.globalCompositeOperation="destination-out",r.fillStyle="rgb(0, 0, 0)",this._renderRichTextSegment(r,e,s,b,"fill"),r.globalCompositeOperation="source-over"),r.fillStyle=B(e.parameters.color??d),this._renderRichTextSegment(r,e,s,b,"fill"),s+=e.width;for(let e of t.segments){if("underline"!==e.decoration)continue;let t=this._renderedWidth;this._renderedWidth=e.width,r.textAlign="left",this._renderDecoration(r,i+e.x,b,e.decoration,e.parameters.font.weight,void 0,e.parameters),this._renderedWidth=t}if(l&&"none"!==l){let e=this._renderedWidth;this._renderedWidth=t.width,r.textAlign="left",this._renderDecoration(r,i,b,l,a),this._renderedWidth=e}b+=t.height}r.restore();let w,C,P=this._renderedWidth+2*this._lineThroughWidthOffset,k=this._renderedHeight,T=r.getImageData(0,0,P,k),L=new Uint8Array(T.data);if(e.premultiplyColors){let t;for(let e=0;e<L.length;e+=4)t=L[e+3]/255,L[e]=L[e]*t,L[e+1]=L[e+1]*t,L[e+2]=L[e+2]*t}switch(e.horizontalAlignment){case"left":w=-.5;break;case"right":w=.5;break;default:w=0}switch(e.verticalAlignment){case"bottom":C=-.5;break;case"top":C=.5;break;case"baseline":C=-1/6;break;default:C=0}return{size:[P,k],image:new Uint32Array(L.buffer),sdf:!1,simplePattern:!1,anchorX:w,anchorY:C,canvas:i}}rasterizeText(t,e){this._textRasterizationCanvas||=document.createElement("canvas");let i=this._textRasterizationCanvas,r=i.getContext("2d",{willReadFrequently:!0});W(r,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();let{decoration:s,weight:n}=e.font;this._lineThroughWidthOffset=s&&"line-through"===s?.1*this._lineHeight:0;let a=null!=e.backgroundColor||null!=e.borderLine,l=a?8:0,o=this._computeTextWidth(r,e)+2*l,h=this._lineHeight*this._textLines.length+2*l;if(i.width=o+2*this._lineThroughWidthOffset,i.height=h,0===i.width||0===i.height)return i.width=i.height=1,{size:[0,0],image:new Uint32Array,sdf:!1,simplePattern:!1,anchorX:0,anchorY:0,canvas:i};this._renderedLineHeight=Math.round(this._lineHeight),this._renderedOutlineSize=(e.outline.size||0)*e.pixelRatio,this._renderedHaloSize=(e.halo.size||0)*e.pixelRatio,this._renderedWidth=o,this._renderedHeight=h,this._lineThroughWidthOffset*=e.pixelRatio;let c=(e.outline&&e.outline.color)??[0,0,0,0],u=e.color??[0,0,0,0],f=e.halo&&e.halo.color?e.halo.color:[0,0,0,0];this._fillStyle=B(u),this._outlineStyle=B(c),this._haloStyle=U(f);let m=this._renderedLineHeight,d=this._renderedOutlineSize,y=this._renderedHaloSize;r.save(),r.clearRect(0,0,i.width,i.height),W(r,e);let g=l*e.pixelRatio,p=$(r.textAlign,this._renderedWidth-2*g,this._renderedHaloSize+this._renderedOutlineSize)+g,_=y+d+g,x=y>0,S=this._lineThroughWidthOffset,M=0;if(a){r.save();let t=e.backgroundColor??[0,0,0,0],s=e.borderLine?.color??[0,0,0,0],n=2*(e.borderLine?.size??0);r.fillStyle=B(t),r.strokeStyle=B(s),r.lineWidth=n,r.fillRect(0,0,i.width,i.height),r.strokeRect(0,0,i.width,i.height),r.restore()}x&&this._renderHalo(r,p,_,S,M,e),d>0&&this._renderOutline(r,p,_,S,M,e),M+=_,S+=p;for(let t of this._textLines)x?(r.globalCompositeOperation="destination-out",r.fillStyle="rgb(0, 0, 0)",r.fillText(t,S,M),r.globalCompositeOperation="source-over",r.fillStyle=this._fillStyle,r.fillText(t,S,M)):(r.fillStyle=this._fillStyle,r.fillText(t,S,M)),s&&"none"!==s&&this._renderDecoration(r,S,M,s,n),M+=m;r.restore();let b,w,C=this._renderedWidth+2*this._lineThroughWidthOffset,P=this._renderedHeight,k=r.getImageData(0,0,C,P),T=new Uint8Array(k.data);if(e.premultiplyColors){let t;for(let e=0;e<T.length;e+=4)t=T[e+3]/255,T[e]=T[e]*t,T[e+1]=T[e+1]*t,T[e+2]=T[e+2]*t}switch(e.horizontalAlignment){case"left":b=-.5;break;case"right":b=.5;break;default:b=0}switch(e.verticalAlignment){case"bottom":w=-.5;break;case"top":w=.5;break;case"baseline":w=-1/6;break;default:w=0}return{size:[C,P],image:new Uint32Array(T.buffer),sdf:!1,simplePattern:!1,anchorX:b,anchorY:w,canvas:i}}_renderHalo(t,e,i,r,s,n){let a=this._renderedWidth,l=this._renderedHeight;this._outlineRasterizationCanvas||=document.createElement("canvas"),this._outlineRasterizationCanvas.width=a,this._outlineRasterizationCanvas.height=l;let o=this._outlineRasterizationCanvas,h=o.getContext("2d");h.clearRect(0,0,a,l),W(h,n);let{decoration:c,weight:u}=n.font;h.fillStyle=this._haloStyle,h.strokeStyle=this._haloStyle,h.lineJoin="round",this._renderOutlineNative(h,e,i,c,u,this._renderedHaloSize+this._renderedOutlineSize),t.globalAlpha=this._parameters.halo.color[3],t.drawImage(o,0,0,a,l,r,s,a,l),t.globalAlpha=1}_renderOutline(t,e,i,r,s,n){let a=this._renderedWidth,l=this._renderedHeight;this._outlineRasterizationCanvas||=document.createElement("canvas"),this._outlineRasterizationCanvas.width=a,this._outlineRasterizationCanvas.height=l;let o=this._outlineRasterizationCanvas,h=o.getContext("2d");h.clearRect(0,0,a,l),W(h,n);let{decoration:c,weight:u}=n.font;h.fillStyle=this._outlineStyle,h.strokeStyle=this._outlineStyle,h.lineJoin="round",this._renderOutlineNative(h,e,i,c,u,this._renderedOutlineSize),t.globalAlpha=this._parameters.outline.color[3],t.drawImage(o,0,0,a,l,r,s,a,l),t.globalAlpha=1}_renderOutlineNative(t,e,i,r,s,n){let a=this._renderedLineHeight;for(let l of this._textLines){let o=2*n;for(let n=0;n<5;n++){let a=(.6+.1*n)*o;t.lineWidth=a,t.strokeText(l,e,i),r&&"none"!==r&&this._renderDecoration(t,e,i,r,s,a)}i+=a}}computeTextSize(t,e){this._textRasterizationCanvas||=document.createElement("canvas");let i=this._textRasterizationCanvas,r=i.getContext("2d");W(r,e),this._parameters=e,this._textLines=t.split(/\r?\n/),this._lineHeight=this._computeLineHeight();let s=this._computeTextWidth(r,e),n=this._lineHeight*this._textLines.length;return i.width=s,i.height=n,[s*e.pixelRatio,n*e.pixelRatio]}computeRichTextSize(t,e){this._textRasterizationCanvas||=document.createElement("canvas");let i=this._textRasterizationCanvas.getContext("2d"),r=this._layoutRichTextRuns(i,t,e),s=Math.max(...r.map(t=>t.width),0),n=r.reduce((t,e)=>t+e.height,0);return[s*e.pixelRatio,n*e.pixelRatio]}_renderRichTextOutline(t,e,i,r,s,n){let a=this._renderedWidth,l=this._renderedHeight;this._outlineRasterizationCanvas||=document.createElement("canvas"),this._outlineRasterizationCanvas.width=a,this._outlineRasterizationCanvas.height=l;let o=this._outlineRasterizationCanvas,h=o.getContext("2d");h.clearRect(0,0,a,l),h.fillStyle=n===this._renderedOutlineSize?this._outlineStyle:this._haloStyle,h.strokeStyle=h.fillStyle,h.lineJoin="round";let c=r;for(let t of e){let e=i;"center"===s.horizontalAlignment?e+=(this._renderedWidth-t.width)/2:"right"===s.horizontalAlignment&&(e+=this._renderedWidth-t.width-this._renderedHaloSize-this._renderedOutlineSize);let r=e;for(let e of t.segments){W(h,e.parameters,"left",e.characterSpacing);let t=2*n;for(let i=0;i<5;i++)h.lineWidth=(.6+.1*i)*t,this._renderRichTextSegment(h,e,r,c,"stroke");r+=e.width}for(let i of t.segments){if("underline"!==i.decoration)continue;let t=this._renderedWidth;this._renderedWidth=i.width,h.textAlign="left",this._renderDecoration(h,e+i.x,c,i.decoration,i.parameters.font.weight,2*n,i.parameters),this._renderedWidth=t}let a="underline"===s.font.decoration?"none":s.font.decoration;if(a&&"none"!==a){let i=this._renderedWidth;this._renderedWidth=t.width,h.textAlign="left",this._renderDecoration(h,e,c,a,s.font.weight,2*n),this._renderedWidth=i}c+=t.height}t.globalAlpha=n===this._renderedOutlineSize?this._parameters.outline.color[3]:this._parameters.halo.color[3],t.drawImage(o,0,0,a,l,this._lineThroughWidthOffset,0,a,l),t.globalAlpha=1}_layoutRichTextRuns(t,e,i){let r="underline"===i.font.decoration?O(i,"none"):i,s=[{segments:[],width:0,height:this._measureLineHeight(r)}];for(let n of e){let e=n.text.split(/\r?\n/),a=N(i,n);for(let i=0;i<e.length;i++){let l=e[i],o=s[s.length-1];if(l.length>0){let e=this._measureRichTextSegmentWidth(t,l,a,n.characterSpacing);o.segments.push({text:l,width:e,x:o.width,parameters:a,characterSpacing:n.characterSpacing,decoration:a.font.decoration}),o.width+=e,o.height=Math.max(o.height,this._measureLineHeight(a))}i<e.length-1&&s.push({segments:[],width:0,height:this._measureLineHeight(r)})}}return s}_measureTextWidthWithSpacing(t,e,i,r){let s=this._parameters,n=this._textLines;this._parameters=i,this._textLines=[e],W(t,i,"left",r);let a=this._computeTextWidth(t,i);return this._parameters=s,this._textLines=n,a}_measureRichTextSegmentWidth(t,e,i,r){return this._measureTextWidthWithSpacing(t,e,i,r)}_renderRichTextSegment(t,e,i,r,s){"fill"===s?t.fillText(e.text,i,r):t.strokeText(e.text,i,r)}_measureLineHeight(t){let e=this._parameters;this._parameters=t;let i=this._computeLineHeight();return this._parameters=e,i}_computeTextWidth(t,e){let i=0;for(let e of this._textLines)i=Math.max(i,t.measureText(e).width);let r=e.font;return("italic"===r.style||"oblique"===r.style||"string"==typeof r.weight&&("bold"===r.weight||"bolder"===r.weight)||"number"==typeof r.weight&&r.weight>600)&&(i+=.3*t.measureText("w").width),i+=2*(0,o.Lz)(this._parameters.halo.size),Math.round(i)}_computeLineHeightBase(t=this._parameters){return 1.275*t.size}_computeLineHeight(){let t=this._computeLineHeightBase(),e=this._parameters.font.decoration;return e&&"underline"===e&&(t*=1.3),Math.round(t+2*(0,o.Lz)(this._parameters.halo.size))}_renderDecoration(t,e,i,r,s,n,a=this._parameters){let l=.9*this._lineHeight,h="bold"===s?.06:"bolder"===s?.09:.04;switch(t.textAlign){case"center":e-=this._renderedWidth/2;break;case"right":e-=this._renderedWidth}let c=t.textBaseline,u=function(t){return"underline"===t?(0,o.Lz)(2):0}(r);if("underline"===r)switch(l=.9*this._computeLineHeightBase(a),c){case"top":i+=l+u;break;case"middle":i+=l/2+u}else if("line-through"===r)switch(c){case"top":i+=l/1.5;break;case"middle":i+=l/3}let f=n?1.5*n:Math.ceil(l*h);t.save(),t.beginPath(),t.strokeStyle=t.fillStyle,t.lineWidth=f,t.moveTo(e-this._lineThroughWidthOffset,i),t.lineTo(e+this._renderedWidth+2*this._lineThroughWidthOffset,i),t.stroke(),t.restore()}}function W(t,e,i,r=0){let s=Math.max(e.size,.5),n=e.font;t.font=`${n.style} ${n.weight} ${(0,o.Lz)(s).toFixed(1)}px ${n.family}, sans-serif`,t.textBaseline="top",function(t,e){t.letterSpacing=e>0?`${e}em`:"0px"}(t,r);let a=i??"left";if(!i)switch(e.horizontalAlignment){case"left":default:a="left";break;case"right":a="right";break;case"center":a="center"}t.textAlign=a}function N(t,e){return{...t,color:e.color??t.color,font:{...t.font,family:e.font.family??t.font.family,style:e.font.style??t.font.style,weight:e.font.weight??t.font.weight,decoration:e.font.decoration??t.font.decoration},size:e.fontSize}}function O(t,e){return{...t,font:{...t.font,decoration:e}}}function $(t,e,i){return"center"===t?.5*e:"right"===t?e-i:i}var G=i(93397),V=i(75434),X=i(69221);const q=Math.PI/180,Z=()=>n.A.getLogger("esri.symbols.cim.CIMSymbolDrawHelper");class Y{constructor(t){this._t=t}static createIdentity(){return new Y([1,0,0,0,1,0])}clone(){let t=this._t;return new Y(t.slice())}transform(t){let e=this._t;return[e[0]*t[0]+e[1]*t[1]+e[2],e[3]*t[0]+e[4]*t[1]+e[5]]}static createScale(t,e){return new Y([t,0,0,0,e,0])}scale(t,e){let i=this._t;return i[0]*=t,i[1]*=t,i[2]*=t,i[3]*=e,i[4]*=e,i[5]*=e,this}scaleRatio(){return Math.sqrt(this._t[0]*this._t[0]+this._t[1]*this._t[1])}static createTranslate(t,e){return new Y([0,0,t,0,0,e])}translate(t,e){let i=this._t;return i[2]+=t,i[5]+=e,this}static createRotate(t){let e=Math.cos(t),i=Math.sin(t);return new Y([e,-i,0,i,e,0])}rotate(t){return Y.multiply(this,Y.createRotate(t),this)}angle(){let t=this._t[0],e=this._t[3],i=Math.sqrt(t*t+e*e);return[t/i,e/i]}static multiply(t,e,i){let r=t._t,s=e._t,n=r[0]*s[0]+r[3]*s[1],a=r[1]*s[0]+r[4]*s[1],l=r[2]*s[0]+r[5]*s[1]+s[2],o=r[0]*s[3]+r[3]*s[4],h=r[1]*s[3]+r[4]*s[4],c=r[2]*s[3]+r[5]*s[4]+s[5],u=i._t;return u[0]=n,u[1]=a,u[2]=l,u[3]=o,u[4]=h,u[5]=c,i}invert(){let t=this._t,e=t[0]*t[4]-t[1]*t[3];if(0===e)return new Y([0,0,0,0,0,0]);e=1/e;let i=(t[1]*t[5]-t[2]*t[4])*e,r=(t[2]*t[3]-t[0]*t[5])*e,s=t[4]*e,n=-t[1]*e,a=-t[3]*e,l=t[0]*e;return new Y([s,n,i,a,l,r])}}class J{constructor(t,e){this._resourceManager=t,this._transfos=[],this._sizeTransfos=[],this._textScaling=[],this._geomUnitsPerPoint=1,this._placementPool=new _.A(()=>new y.W,void 0,void 0,100),this._earlyReturn=!1,this._mapRotation=0,this._transfos.push(e||Y.createIdentity()),this._sizeTransfos.push(e?e.scaleRatio():1),this._textScaling.push(1)}setTransform(t,e){this._transfos=[t||Y.createIdentity()],this._sizeTransfos=[e||(t?t.scaleRatio():1)],this._textScaling=[1]}setGeomUnitsPerPoint(t){this._geomUnitsPerPoint=t}transformPt(t){return this._transfos[this._transfos.length-1].transform(t)}transformSize(t){return t*this._sizeTransfos[this._sizeTransfos.length-1]}scaleText(t){return t*this._textScaling[this._textScaling.length-1]}reverseTransformPt(t){return this._transfos[this._transfos.length-1].invert().transform(t)}reverseTransformSize(t){return t/this._sizeTransfos[this._sizeTransfos.length-1]}reverseTransformScalar(t){return t/this._transfos[this._transfos.length-1].scaleRatio()}reverseScaleText(t){return t/this._textScaling[this._textScaling.length-1]}getTransformAngle(){return this._transfos[this._transfos.length-1].angle()}geomUnitsPerPoint(){return this.isEmbedded()?1:this._geomUnitsPerPoint}prevGeomUnitsPerPoint(){return this._transfos.length>2?1:this._geomUnitsPerPoint}isEmbedded(){return this._transfos.length>1}back(){return this._transfos[this._transfos.length-1]}push(t,e=!1,i=1){let r=e?t.scaleRatio():1;Y.multiply(t,this.back(),t),this._transfos.push(t),this._sizeTransfos.push(this._sizeTransfos[this._sizeTransfos.length-1]*r),this._textScaling.push(this._textScaling[this._textScaling.length-1]*i)}pop(){this._transfos.splice(-1,1),this._sizeTransfos.splice(-1,1),this._textScaling.splice(-1,1)}drawSymbol(t,e,i){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":this.drawMultiLayerSymbol(t,e);break;case"CIMTextSymbol":this.drawTextSymbol(t,e,i)}}drawMultiLayerSymbol(t,e){if(!t||!e)return;let i=t.symbolLayers;if(!i)return;let r=t.effects;if(r&&r.length>0){let t=this.executeEffects(r,e);if(t){let e=t.next();for(;e;)this.drawSymbolLayers(i,e.asJSON()),e=t.next()}}else this.drawSymbolLayers(i,e)}executeEffects(t,e){let i=this.geomUnitsPerPoint(),r=(0,G.ll)(t),s=new d.kT(x.z.fromJSONCIM(e));for(let n of t){let t=(0,w.A)(n);t&&(s=t.execute(s,n,{geomUnitsPerPoint:i,tileKey:null,maxInflateSize:r,scale:null,spatialReference:e.spatialReference,preventClipping:!1}))}return s}drawSymbolLayers(t,e){let i=t.length;for(;i--;){let r=t[i];if(!r||!1===r.enable)continue;let s=r.effects;if(s&&s.length>0){let t=this.executeEffects(s,e);if(t){let e=null;for(;(e=t.next())&&(this.drawSymbolLayer(r,e.asJSON()),!this._earlyReturn););}}else this.drawSymbolLayer(r,e);if(this._earlyReturn)return}}drawSymbolLayer(t,e){switch(t.type){case"CIMSolidFill":this.drawSolidFill(e,t.color,t.path);break;case"CIMHatchFill":this.drawHatchFill(e,t);break;case"CIMPictureFill":this.drawPictureFill(e,t);break;case"CIMGradientFill":this.drawGradientFill(e,t);break;case"CIMSolidStroke":this.drawSolidStroke(e,t.color,t.width,t.capStyle,t.joinStyle,t.miterLimit,t.path);break;case"CIMPictureStroke":this.drawPictureStroke(e,t);break;case"CIMGradientStroke":this.drawGradientStroke(e,t);break;case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":this.drawMarkerLayer(t,e)}}drawHatchFill(t,e){let i=function(t,e,i){let r=(0,G.$w)(t.separation,C.D.CIMHatchFill.separation)*i,s=(0,G.$w)(t.rotation);if(0===r)return null;r<0&&(r=-r);let n=0,a=.5*r;for(;n>a;)n-=r;for(;n<-a;)n+=r;let l=(0,h.vt)();(0,c.Rg)(l,e),l[0]-=a,l[1]-=a,l[2]+=a,l[3]+=a;let o=[[l[0],l[1]],[l[0],l[3]],[l[2],l[3]],[l[2],l[1]]];for(;s>180;)s-=180;for(;s<0;)s+=180;let u,f,m,d,y=Math.cos(s*q),g=Math.sin(s*q),p=-r*g,_=r*y;n=(0,G.$w)(t.offsetX)*i*g-(0,G.$w)(t.offsetY)*i*y,u=m=Number.MAX_VALUE,f=d=-Number.MAX_VALUE;for(let t of o){let e=t[0],i=t[1],r=y*e+g*i,s=-g*e+y*i;u=Math.min(u,r),m=Math.min(m,s),f=Math.max(f,r),d=Math.max(d,s)}m=Math.floor(m/r)*r;let x=y*u-g*m-p*n/r,S=g*u+y*m-_*n/r,M=y*f-g*m-p*n/r,b=g*f+y*m-_*n/r,w=1+Math.round((d-m)/r),P=[];for(let t=0;t<w;t++)x+=p,S+=_,M+=p,b+=_,P.push([[x,S],[M,b]]);return{paths:P}}(e,t,this.geomUnitsPerPoint());i&&(this.pushClipPath(t),this.drawMultiLayerSymbol(e.lineSymbol,i),this.popClipPath())}drawPictureFill(t,e){}drawGradientFill(t,e){}drawPictureStroke(t,e){}drawGradientStroke(t,e){}drawMarkerLayer(t,e){let i=t.markerPlacement;if(i){let r=(0,w.c)(i);if(r){let s="CIMMarkerPlacementInsidePolygon"===i.type||"CIMMarkerPlacementPolygonCenter"===i.type&&i.clipAtBoundary;s&&this.pushClipPath(e);let n=r.execute(x.z.fromJSONCIM(e),i,this.geomUnitsPerPoint(),null);if(n){let e=null;for(;(e=n.next())&&(this.drawMarker(t,e),!this._earlyReturn););}s&&this.popClipPath()}}else{let i=this._placementPool.acquire();if((0,M.fT)(e))i.tx=e.x,i.ty=e.y,this.drawMarker(t,i);else if((0,M.Bi)(e)){let r=(0,S.l8)(e);r&&([i.tx,i.ty]=r,this.drawMarker(t,i))}else if((0,M.Rg)(e)){for(let r of e.paths)for(let e of r)if(i.tx=e[0],i.ty=e[1],this.drawMarker(t,i),this._earlyReturn)break}else for(let r of e.points)if(i.tx=r[0],i.ty=r[1],this.drawMarker(t,i),this._earlyReturn)break;this._placementPool.release(i)}}drawMarker(t,e){switch(t.type){case"CIMCharacterMarker":case"CIMPictureMarker":this.drawPictureMarker(t,e);break;case"CIMVectorMarker":this.drawVectorMarker(t,e)}}drawPictureMarker(t,e){if(!t)return;let i=this._resourceManager.getResource(t.url),r=(0,G.$w)(t.size,C.D.CIMPictureMarker.size);if(null==i||r<=0)return;let s=i.width,n=i.height;if(!s||!n)return;let a=s/n,l=(0,G.$w)(t.scaleX,1),o=Y.createIdentity(),h=t.anchorPoint;if(h){let e=h.x,i=h.y;"Absolute"!==t.anchorPointUnits&&(e*=r*a*l,i*=r),o.translate(-e,-i)}let c=(0,G.$w)(t.rotation);t.rotateClockwise&&(c=-c),this._mapRotation&&(c+=this._mapRotation),c&&o.rotate(c*q);let u=(0,G.$w)(t.offsetX),f=(0,G.$w)(t.offsetY);if(u||f){if(this._mapRotation){let t=q*this._mapRotation,e=Math.cos(t),i=Math.sin(t),r=u*i+f*e;u=u*e-f*i,f=r}o.translate(u,f)}let m=this.geomUnitsPerPoint();1!==m&&o.scale(m,m);let d=e.getAngle();d&&o.rotate(d),o.translate(e.tx,e.ty),this.push(o),this.drawImage(t,r),this.pop()}drawVectorMarker(t,e){if(!t)return;let i=t.markerGraphics;if(!i)return;let r=(0,G.$w)(t.size,C.D.CIMVectorMarker.size),s=t.frame,n=s?s.ymax-s.ymin:0,a=r&&n?r/n:1,l=Y.createIdentity();s&&l.translate(.5*-(s.xmax+s.xmin),.5*-(s.ymax+s.ymin));let o=t.anchorPoint;if(o){let e=o.x,i=o.y;"Absolute"===t.anchorPointUnits?(e/=a,i/=a):s&&(e*=s.xmax-s.xmin,i*=s.ymax-s.ymin),l.translate(-e,-i)}1!==a&&l.scale(a,a);let h=(0,G.$w)(t.rotation);t.rotateClockwise&&(h=-h),this._mapRotation&&(h+=this._mapRotation),h&&l.rotate(h*q);let c=(0,G.$w)(t.offsetX),u=(0,G.$w)(t.offsetY);if(c||u){if(this._mapRotation){let t=q*this._mapRotation,e=Math.cos(t),i=Math.sin(t),r=c*i+u*e;c=c*e-u*i,u=r}l.translate(c,u)}let f=this.geomUnitsPerPoint();1!==f&&l.scale(f,f);let m=e.getAngle();m&&l.rotate(m),l.translate(e.tx,e.ty);let d=t.scaleSymbolsProportionally?1:a;this.push(l,t.scaleSymbolsProportionally,d);for(let t of i){(!t?.symbol||!t.geometry)&&Z().error("Invalid marker graphic",t);let e=t.textString;if("number"==typeof e&&(e=e.toString()),this.drawSymbol(t.symbol,t.geometry,e),this._earlyReturn)break}this.pop()}drawTextSymbol(t,e,i){if(!t||!(0,M.fT)(e)||(0,G.$w)(t.height,C.D.CIMTextSymbol.height)<=0)return;let r=Y.createIdentity(),s=(0,G.$w)(t.angle);s=-s,s&&r.rotate(s*q);let n=(0,G.$w)(t.offsetX),a=(0,G.$w)(t.offsetY);(n||a)&&r.translate(n,a);let l=this.geomUnitsPerPoint();1!==l&&r.scale(l,l),r.translate(e.x,e.y),this.push(r),this.drawText(t,i),this.pop()}}class j extends J{constructor(t,e){super(t,e),this.reset()}reset(){this._xmin=this._ymin=1/0,this._xmax=this._ymax=-1/0,this._clipCount=0}envelope(){return new E(this._xmin,this._ymin,this._xmax-this._xmin,this._ymax-this._ymin)}bounds(){return(0,h.fA)(this._xmin,this._ymin,this._xmax,this._ymax)}drawSolidFill(t){if(t&&!(this._clipCount>0))if((0,M.Bi)(t))this._processPath(t.rings,0);else if((0,M.Rg)(t))this._processPath(t.paths,0);else if((0,M.ZC)(t)){let e=tt(t);e&&this._processPath(e.rings,0)}else console.error("drawSolidFill Unexpected geometry type!")}drawSolidStroke(t,e,i){if(!t||this._clipCount>0||null==i||i<=0)return;let r=Math.max(.5*this.transformSize((0,G.$w)(i,C.D.CIMSolidStroke.width)),.25);if((0,M.Bi)(t))this._processPath(t.rings,r);else if((0,M.Rg)(t))this._processPath(t.paths,r);else if((0,M.ZC)(t)){let e=tt(t);e&&this._processPath(e.rings,r)}else console.error("drawSolidStroke unexpected geometry type!")}drawMarkerLayer(t,e){(0,M.Bi)(e)&&t.markerPlacement&&("CIMMarkerPlacementInsidePolygon"===t.markerPlacement.type||"CIMMarkerPlacementPolygonCenter"===t.markerPlacement.type&&t.markerPlacement.clipAtBoundary)?this._processPath(e.rings,0):super.drawMarkerLayer(t,e)}drawHatchFill(t,e){this.drawSolidFill(t)}drawPictureFill(t,e){this.drawSolidFill(t)}drawGradientFill(t,e){this.drawSolidFill(t)}drawPictureStroke(t,e){this.drawSolidStroke(t,null,e.width)}drawGradientStroke(t,e){this.drawSolidStroke(t,null,e.width)}pushClipPath(t){this.drawSolidFill(t),this._clipCount++}popClipPath(){this._clipCount--}drawImage(t,e){let{url:i}=t,r=(0,G.$w)(t.scaleX,1),s=r*e,n=e,a=this._resourceManager.getResource(i);if(null!=a){let t=a.height/a.width;s=r*(e?t>1?e:e/t:a.width),n=e?t>1?e*t:e:a.height}this._merge(this.transformPt([-s/2,-n/2]),0),this._merge(this.transformPt([-s/2,n/2]),0),this._merge(this.transformPt([s/2,-n/2]),0),this._merge(this.transformPt([s/2,n/2]),0)}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||=new H;let i=et(t),r=(0,D.Z)({textString:e,font:i.font,symbol:t,supportsRichText:(0,D.q)(e)}),[s,n]=r?this._textRasterizer.computeRichTextSize(r,i):this._textRasterizer.computeTextSize(e,i);s=(0,o.PN)(s),n=(0,o.PN)(n);let a=this.transformSize(1)*this.reverseTransformScalar(1);s*=a,n*=a;let l=t.horizontalAlignment??C.D.CIMTextSymbol.horizontalalignment,h=t.verticalAlignment??C.D.CIMTextSymbol.verticalalignment,c=0;switch(l){case"Left":c=s/2;break;case"Right":c=-s/2}let u=0;switch(h){case"Bottom":u=n/2;break;case"Top":u=-n/2;break;case"Baseline":u=n/6}this._merge(this.transformPt([-s/2+c,-n/2+u]),0),this._merge(this.transformPt([-s/2+c,n/2+u]),0),this._merge(this.transformPt([s/2+c,-n/2+u]),0),this._merge(this.transformPt([s/2+c,n/2+u]),0)}_processPath(t,e){if(t)for(let i of t){let t=i?i.length:0;if(t>1){this._merge(this.transformPt(i[0]),e);for(let r=1;r<t;r++)this._merge(this.transformPt(i[r]),e)}}}_merge(t,e){t[0]-e<this._xmin&&(this._xmin=t[0]-e),t[0]+e>this._xmax&&(this._xmax=t[0]+e),t[1]-e<this._ymin&&(this._ymin=t[1]-e),t[1]+e>this._ymax&&(this._ymax=t[1]+e)}}class K extends J{constructor(t,e,i,r){super(e,i),this._applyAdditionalRenderProps=r,this._colorSubstitutionHelper=new b,this._ctx=t}drawSolidFill(t,e){if(!t)return;if((0,M.Bi)(t))this._buildPath(t.rings,!0);else if((0,M.Rg)(t))this._buildPath(t.paths,!0);else if((0,M.ZC)(t))this._buildPath(tt(t).rings,!0);else{if(!(0,M.U9)(t))return;console.log("CanvasDrawHelper.drawSolidFill - No implementation!")}let i=this._ctx;i.fillStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",i.fill("evenodd")}drawSolidStroke(t,e,i,r,s,n){if(!t||!e||0===i)return;if((0,M.Bi)(t))this._buildPath(t.rings,!0);else if((0,M.Rg)(t))this._buildPath(t.paths,!1);else{if(!(0,M.ZC)(t))return void console.log("CanvasDrawHelper.drawSolidStroke isn't implemented!");this._buildPath(tt(t).rings,!0)}let a=this._ctx;a.strokeStyle="string"==typeof e?e:"rgba("+Math.round(e[0])+","+Math.round(e[1])+","+Math.round(e[2])+","+(e[3]??255)/255+")",a.lineWidth=Math.max(this.transformSize(i),.5),this._setCapStyle(r),this._setJoinStyle(s),a.miterLimit=n,a.stroke()}pushClipPath(t){if(this._ctx.save(),(0,M.Bi)(t))this._buildPath(t.rings,!0);else if((0,M.Rg)(t))this._buildPath(t.paths,!0);else{if(!(0,M.ZC)(t))return;this._buildPath(tt(t).rings,!0)}this._ctx.clip("evenodd")}popClipPath(){this._ctx.restore()}drawImage(t,e){let{colorSubstitutions:i,url:r,tintColor:s}=t,n=(0,G.$w)(t.scaleX,1),a=this._resourceManager.getResource(r);if(null==a)return;let l=e*(a.width/a.height),o=e;e||(l=a.width,o=a.height);let h=(0,G.UE)(r)||"src"in a&&(0,G.UE)(a.src),c="getFrame"in a?k(a):a;i&&(c=this._colorSubstitutionHelper.applyColorSubstitution(c,i)),this._applyAdditionalRenderProps&&!h&&s&&(c=this._colorSubstitutionHelper.tintImageData(c,s));let u=this.transformPt([0,0]),[f,m]=this.getTransformAngle(),d=this.transformSize(1),y=this._ctx;y.save(),y.setTransform({m11:n*d*f,m12:n*d*m,m21:-d*m,m22:d*f,m41:u[0],m42:u[1]}),y.drawImage(c,-l/2,-o/2,l,o),y.restore()}drawText(t,e){if(!e||0===e.length)return;this._textRasterizer||=new H;let i=et(t,this.transformSize(o.ps)),r=(0,D.Z)({textString:e,font:i.font,symbol:t,supportsRichText:(0,D.q)(e)}),s=r?this._textRasterizer.rasterizeRichText(r,i):this._textRasterizer.rasterizeText(e,i);if(!s)return;let{size:n,anchorX:a,anchorY:l,canvas:h}=s,c=n[0]*(a+.5),u=n[1]*(l-.5),f=this._ctx,m=this.transformPt([0,0]),[d,y]=this.getTransformAngle();f.save(),f.setTransform({m11:1*d,m12:1*y,m21:-1*y,m22:1*d,m41:m[0]-1*c,m42:m[1]+1*u}),f.drawImage(h,0,0),f.restore()}drawPictureFill(t,e){if(!t)return;let{colorSubstitutions:i,height:r,offsetX:s,offsetY:n,rotation:a,scaleX:l,tintColor:o,url:h}=e,c=this._resourceManager.getResource(h);if(null==c)return;if((0,M.Bi)(t))this._buildPath(t.rings,!0);else if((0,M.Rg)(t))this._buildPath(t.paths,!0);else if((0,M.ZC)(t))this._buildPath(tt(t).rings,!0);else{if(!(0,M.U9)(t))return;console.log("CanvasDrawHelper.drawPictureFill - No implementation!")}let u,f=this._ctx,m=(0,G.UE)(h)||"src"in c&&(0,G.UE)(c.src),d="getFrame"in c?k(c):c;if(i&&(d=this._colorSubstitutionHelper.applyColorSubstitution(d,i)),this._applyAdditionalRenderProps){m||o&&(d=this._colorSubstitutionHelper.tintImageData(d,o)),u=f.createPattern(d,"repeat");let t=this.transformSize(1);a||=0,s=s?t*s:0,n=n?t*n:0,r&&=t*r;let e=r?r/c.height:1,i=l&&r?l*r/c.width:1;if(0!==a||1!==e||1!==i||0!==s||0!==n){let t=new DOMMatrix;t.rotateSelf(0,0,-a).translateSelf(s,n).scaleSelf(i,e,1),u.setTransform(t)}}else u=f.createPattern(d,"repeat");f.save(),f.fillStyle=u,f.fill("evenodd"),f.restore()}drawPictureStroke(t,e){if(!t)return;let i,{colorSubstitutions:r,capStyle:n,joinStyle:a,miterLimit:l,tintColor:h,url:c,width:u}=e,f=this._resourceManager.getResource(c);if(null==f)return;if((0,M.Bi)(t))i=t.rings;else if((0,M.Rg)(t))i=t.paths;else{if(!(0,M.ZC)(t))return(0,M.U9)(t)?void console.log("CanvasDrawHelper.drawPictureStroke - No implementation!"):void 0;i=tt(t).rings}u||=f.width;let m=(0,G.UE)(c)||"src"in f&&(0,G.UE)(f.src),d="getFrame"in f?k(f):f;r&&(d=this._colorSubstitutionHelper.applyColorSubstitution(d,r)),this._applyAdditionalRenderProps&&(m||h&&(d=this._colorSubstitutionHelper.tintImageData(d,h)));let y,g,p=Math.max(this.transformSize((0,o.Lz)(u)),.5),_=p/d.width,x=this._ctx,S=x.createPattern(d,"repeat-y");x.save(),this._setCapStyle(n),this._setJoinStyle(a),void 0!==l&&(x.miterLimit=l),x.lineWidth=p;for(let t of i)if(t=(0,s.o8)(t),it(t),t&&!(t.length<=1)){y=this.transformPt(t[0]);for(let e=1;e<t.length;e++){g=this.transformPt(t[e]);let i=Q(y,g),r=new DOMMatrix;r.translateSelf(0,y[1]-p/2).scaleSelf(_,_,1).rotateSelf(0,0,90-i),S.setTransform(r),x.strokeStyle=S,x.beginPath(),x.moveTo(y[0],y[1]),x.lineTo(g[0],g[1]),x.stroke(),y=g}}x.restore()}drawGradientFill(t,e){if(!t)return;let i;if((0,M.Bi)(t))i=t.rings;else if((0,M.Rg)(t))i=t.paths;else{if(!(0,M.ZC)(t))return void Z().error("Unable to draw gradient fill");i=tt(t).rings}this._buildPath(i,!0);let{angle:r,gradientMethod:s,gradientSize:n,gradientSizeUnits:a}=e,l=C.D.CIMGradientFill,c=e.gradientType??l.gradientType,u=-(0,p.kU)(r??0),f=(0,h.Ie)();for(let t of i){let e=t?t.length:0;if(e>1)for(let i=0;i<e;i++){let e=this.transformPt(t[i]);("Linear"===s||"Rectangular"===s)&&(e=T(e,-u)),(0,h.tK)(f,e)}}let[m,d,y,g]=f,_=this._ctx;switch(_.save(),s){case"Buffered":Z().error(`Gradient method "${s}" currently unsupported.`);break;case"Linear":{let t=(d+g)/2,i="Absolute"===a?this.transformSize((0,o.Lz)(n)):(0,G.yX)(n,l.gradientSize)*(y-m),[r,s]="Discrete"===c?[y,y-i]:[m+i,m],h=T([r,t],u),f=T([s,t],u),p=_.createLinearGradient(h[0],h[1],f[0],f[1]);v(p,e),_.fillStyle=p,_.fill("evenodd");break}case"Circular":{let t=(0,h.gX)(f),i=(0,h.ib)(f)/2,r="Absolute"===a?this.transformSize((0,o.Lz)(n)):(0,G.yX)(n,l.gradientSize)*i,[s,u]="Discrete"===c?[i,i-r]:[r,0],m=_.createRadialGradient(t[0],t[1],s,t[0],t[1],u);v(m,e),_.fillStyle=m,_.fill("evenodd");break}case"Rectangular":{let i=(0,h.gX)(f),r=i[0],s=i[1],p=T(i,u),x=(i,r,s,n,a,l,o,h)=>{_.save(),this.pushClipPath(t);let c=T([a,l],u),f=T([o,h],u);_.beginPath(),_.moveTo(p[0],p[1]),_.lineTo(c[0],c[1]),_.lineTo(f[0],f[1]),_.lineTo(p[0],p[1]),_.clip();let m=T([i,r],u),d=T([s,n],u),y=_.createLinearGradient(m[0],m[1],d[0],d[1]);v(y,e),_.fillStyle=y,_.fill("evenodd"),_.restore()},S="Absolute"===a?this.transformSize((0,o.Lz)(n)):(0,G.yX)(n,l.gradientSize)*((0,h.VL)(f)/2),[M,b]="Discrete"===c?[y,y-S]:[r+S,r];x(M,s,b,s,y,d,y,g),[M,b]="Discrete"===c?[m,m+S]:[r-S,r],x(M,s,b,s,m,g,m,d),S="Absolute"===a?this.transformSize((0,o.Lz)(n)):(0,G.yX)(n,l.gradientSize)*((0,h.uJ)(f)/2);let[w,C]="Discrete"===c?[g,g-S]:[s+S,s];x(r,w,r,C,y,g,m,g),[w,C]="Discrete"===c?[d,d+S]:[s-S,s],x(r,w,r,C,m,d,y,d);break}}_.restore()}drawGradientStroke(t,e){let i,{capStyle:r,gradientMethod:n,gradientSize:a,gradientSizeUnits:l,joinStyle:h,miterLimit:c,width:u}=e;if(!t||0===u)return;if((0,M.Bi)(t))i=t.rings;else if((0,M.Rg)(t))i=t.paths;else{if(!(0,M.ZC)(t))return void Z().error("Unable to draw gradient stroke");i=tt(t).rings}let f,m,d=e.gradientType??C.D.CIMGradientStroke.gradientType,y=Math.max(this.transformSize((0,o.Lz)(u)),.5),g=this._ctx;g.save(),this._setCapStyle(r),this._setJoinStyle(h),void 0!==c&&(g.miterLimit=c),g.lineWidth=y;for(let t of i){if(t=(0,s.o8)(t),it(t),!t||t.length<=1)continue;let i=0;f=this.transformPt(t[0]);for(let e=1;e<t.length;e++){m=this.transformPt(t[e]);let r=m[0]-f[0],s=m[1]-f[1];i+=Math.sqrt(r*r+s*s),f=m}let r="Absolute"===l?this.transformSize((0,o.Lz)(a)):(0,G.yX)(a,C.D.CIMGradientStroke.gradientSize)*("AcrossLine"===n?y:i),h=0;f=this.transformPt(t[0]);for(let s=1;s<t.length;s++){m=this.transformPt(t[s]);let a,l,o,c,u=m[0]-f[0],p=m[1]-f[1],_=Math.sqrt(u*u+p*p);switch(n){case"AcrossLine":{let[t,e]=T([u/_,p/_],-Math.PI/2),i=y/2,s="Discrete"===d?i:r-i;a=(f[0]+m[0])/2+t*s,l=(f[1]+m[1])/2+e*s,o=a-t*r,c=l-e*r;break}case"AlongLine":{let t=u/_,e=p/_;"Discrete"===d?(a=f[0]-t*h,l=f[1]-e*h,o=a+t*r,c=l+e*r):(o=f[0]+t*(i-h),c=f[1]+e*(i-h),a=o-t*r,l=c-e*r);break}default:return Z().error("Unrecognized gradient method:",n),void g.restore()}let x=g.createLinearGradient(a,l,o,c);v(x,e),g.strokeStyle=x,g.beginPath(),g.moveTo(f[0],f[1]),g.lineTo(m[0],m[1]),g.stroke(),h+=_,f=m}}g.restore()}_buildPath(t,e){let i=this._ctx;if(i.beginPath(),t)for(let r of t){let t=r?r.length:0;if(t>1){let s=this.transformPt(r[0]);i.moveTo(s[0],s[1]);for(let e=1;e<t;e++)s=this.transformPt(r[e]),i.lineTo(s[0],s[1]);e&&i.closePath()}}}_setCapStyle(t){switch(t){case"Butt":this._ctx.lineCap="butt";break;case"Round":this._ctx.lineCap="round";break;case"Square":this._ctx.lineCap="square"}}_setJoinStyle(t){switch(t){case"Bevel":this._ctx.lineJoin="bevel";break;case"Round":this._ctx.lineJoin="round";break;case"Miter":this._ctx.lineJoin="miter"}}}function Q(t,e){let i=e[0]-t[0],r=e[1]-t[1];return 180/Math.PI*Math.atan2(r,i)}const tt=t=>t?{spatialReference:t.spatialReference,rings:[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]]}:null;function et(t,e=1){let i=(0,G.DW)(t),r=(0,P._)(t.fontStyleName),s=t.fontFamilyName??g.Vb,{weight:n,style:a}=r,l=e*(t.height||5),o=(0,G.Bu)(t.horizontalAlignment),h=(0,G.Nl)(t.verticalAlignment),c=(0,G.pM)(t),u=(0,G.pM)(t.haloSymbol),f=null==u?0:e*(t.haloSize??0),m=(0,G._1)(t.symbol),d=e*((0,G.xo)(t.symbol)||0),y="CIMBackgroundCallout"===t.callout?.type?t.callout.backgroundSymbol:null,p=(0,G.pM)(y),_=(0,G.xo)(y),x=(0,G._1)(y);return{color:c,size:l,horizontalAlignment:o,verticalAlignment:h,font:{family:s,style:(0,G.pV)(a),weight:(0,G.Kn)(n),decoration:i},outline:{size:d||0,color:m},halo:{size:f||0,color:u,style:a},backgroundColor:p,borderLine:null!=_&&null!=x?{size:_,color:x}:null,pixelRatio:1,premultiplyColors:!0}}function it(t){let e,i,r,s,n,a=t[0],l=1;for(;l<t.length;)e=t[l][0]-a[0],i=t[l][1]-a[1],s=0===e?Math.PI/2:i/e,void 0!==r&&Math.abs(s-r)<=1e-4?(t.splice(l-1,1),a=n):(n=a,a=t[l],l++),r=s}var rt=i(23650),st=i(59868),nt=i(13195);const at=Math.PI,lt=at/2,ot=Math.PI/180,ht=96/72,ct=()=>n.A.getLogger("esri.symbols.cim.CIMSymbolHelper");function ut(t){let e;switch(t.type){case"cim":return t.data;case"web-style":return t;case"simple-marker":{let i=gt.fromSimpleMarker(t);if(!i)throw Error("InternalError: Cannot convert symbol to CIM");e=i;break}case"picture-marker":e=gt.fromPictureMarker(t);break;case"simple-line":e=gt.fromSimpleLineSymbol(t);break;case"simple-fill":e=gt.fromSimpleFillSymbol(t);break;case"picture-fill":e=gt.fromPictureFillSymbol(t);break;case"text":e=gt.fromTextSymbol(t)}return{type:"CIMSymbolReference",symbol:e}}async function ft(t,e,i,r,s){let n,l=ut(t);if("web-style"===l.type)try{let t=ut(await l.fetchSymbol({acceptedFormats:["cim","web"]}));if("web-style"===t.type)return null;n=t}catch(t){return(0,a.zf)(t),null}else n=l;return rt.OverrideHelper.resolveSymbolOverrides(n,e,i,null,r,null,s)}function mt(t,e,i){switch(e.type){case"CIMSymbolReference":return mt(t,e.symbol,i);case"CIMPointSymbol":i??={x:0,y:0},t.drawSymbol(e,i);break;case"CIMLineSymbol":i??={paths:[[[0,0],[10,0]]]},t.drawSymbol(e,i);break;case"CIMPolygonSymbol":i??={rings:[[[0,0],[0,10],[10,10],[10,0],[0,0]]]},t.drawSymbol(e,i);break;case"CIMTextSymbol":t.drawSymbol(e,{x:0,y:0});break;case"CIMVectorMarker":{let i=new y.W;t.drawMarker(e,i);break}}return t.envelope()}function dt(t){if(!t)return 0;switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAtExtremities":case"CIMMarkerPlacementAtMeasuredUnits":case"CIMMarkerPlacementAtRatioPositions":case"CIMMarkerPlacementOnLine":case"CIMMarkerPlacementOnVertices":return Math.abs(t.offset??0);default:return 0}}class yt{static getSymbolInflateSize(t,e,i,r,s){return t||=[0,0,0,0],e?this._getInflateSize(t,e,i,r,s):t}static safeSize(t){let e=Math.max(Math.abs(t[0]),Math.abs(t[2])),i=Math.max(Math.abs(t[1]),Math.abs(t[3]));return Math.sqrt(e*e+i*i)}static getPointSymbolHaloPadding(t,e){let i=(0,G.$w)(t.haloSize);if(i<=0||!t.haloSymbol?.symbolLayers?.some(t=>!1!==t.enable))return 0;let r=this.getSymbolInflateSize([0,0,0,0],t.haloSymbol,e,0,null);return i+this.safeSize(r)}static _vectorMarkerBounds(t,e,i,r){let s=!0,n=(0,h.vt)();if(e?.markerGraphics)for(let a of e.markerGraphics){let e=[0,0,0,0];a.geometry&&((0,c.Rg)(n,a.geometry),e[0]=0,e[1]=0,e[2]=0,e[3]=0,this.getSymbolInflateSize(e,a.symbol,i,0,r),n[0]+=e[0],n[1]+=e[1],n[2]+=e[2],n[3]+=e[3],s?(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],s=!1):(t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[2]=Math.max(t[2],n[2]),t[3]=Math.max(t[3],n[3])))}return t}static _getInflateSize(t,e,i,r,s){if(function(t){return void 0!==t.symbolLayers}(e)){let n=this._getLayersInflateSize(t,e.symbolLayers,i,r,s),a=(0,G.ll)(e.effects);if(a>0&&(n[0]-=a,n[1]-=a,n[2]+=a,n[3]+=a),"CIMPointSymbol"===e.type){let t=this.getPointSymbolHaloPadding(e,i);t>0&&(n[0]-=t,n[1]-=t,n[2]+=t,n[3]+=t)}return n}return this._getTextInflatedSize(t,e,s)}static _getLayersInflateSize(t,e,i,r,s){let n=!0;if(!e)return t;for(let a of e){if(!a)continue;let e=[0,0,0,0];switch(a.type){case"CIMSolidFill":case"CIMPictureFill":case"CIMHatchFill":case"CIMGradientFill":break;case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{let t=a,i=t.width;null!=i&&("Square"===t.capStyle||"Miter"===t.joinStyle?i/=1.4142135623730951:i/=2,e[0]=-i,e[1]=-i,e[2]=i,e[3]=i);break}case"CIMCharacterMarker":case"CIMVectorMarker":case"CIMPictureMarker":{let t=a;if("CIMVectorMarker"===a.type){let t=a;if(e=this._vectorMarkerBounds(e,t,i,s),t.frame){let i=(t.frame.xmin+t.frame.xmax)/2,r=(t.frame.ymin+t.frame.ymax)/2;if(e[0]-=i,e[1]-=r,e[2]-=i,e[3]-=r,null!=t.size){let i=t.size/(t.frame.ymax-t.frame.ymin);e[0]*=i,e[1]*=i,e[2]*=i,e[3]*=i}}}else if("CIMPictureMarker"===a.type){let r=a,s=i.getResource(r.url),n=1;if(null!=s&&s.height&&(n=s.width/s.height),null!=t.size){let i=t.size/2,s=t.size*n*(r.scaleX??1)/2;e=[-s,-i,s,i]}}else if(null!=t.size){let i=t.size/2;e=[-i,-i,i,i]}if(t.anchorPoint){let i,r;"Absolute"===t.anchorPointUnits?(i=t.anchorPoint.x,r=t.anchorPoint.y):(i=t.anchorPoint.x*(e[2]-e[0]),r=t.anchorPoint.y*(e[3]-e[1]));let s=1.25*Math.sqrt(i*i+r*r);e[0]-=s,e[1]-=s,e[2]+=s,e[3]+=s}let n=(0,G.$w)(t.rotation);if(t.rotateClockwise&&(n=-n),r&&(n-=r),n){let t=ot*n,i=Math.cos(t),r=Math.sin(t),s=(0,h.vt)([nt.MG,nt.MG,-nt.MG,-nt.MG]);(0,h.tK)(s,[e[0]*i-e[1]*r,e[0]*r+e[1]*i]),(0,h.tK)(s,[e[0]*i-e[3]*r,e[0]*r+e[3]*i]),(0,h.tK)(s,[e[2]*i-e[1]*r,e[2]*r+e[1]*i]),(0,h.tK)(s,[e[2]*i-e[3]*r,e[2]*r+e[3]*i]),e=s}let l=(0,G.$w)(t.offsetX),o=(0,G.$w)(t.offsetY);if(r){let t=ot*r,e=Math.cos(t),i=Math.sin(t),s=l*i+o*e;l=l*e-o*i,o=s}e[0]+=l,e[1]+=o,e[2]+=l,e[3]+=o;let c=dt(t.markerPlacement);c>0&&(e[0]-=c,e[1]-=c,e[2]+=c,e[3]+=c);break}}let l=(0,G.ll)(a.effects);l>0&&(e[0]-=l,e[1]-=l,e[2]+=l,e[3]+=l),n?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],n=!1):(t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3]))}return t}static _getTextInflatedSize(t,e,i){let r=(0,X.hV)(e.height??C.D.CIMTextSymbol.height);if(t[0]=-r/2,t[1]=-r/2,t[2]=r/2,t[3]=r/2,!i)return t;let s=i.get(e);if(!s||!function(t){return"glyphs"===t.type?t.glyphs.length>0:t.runs.some(t=>t.glyphs.glyphs.length>0)}(s.glyphMosaicItems))return t;let{lineGapType:n,lineGap:a}=e,l=n?((t,e,i)=>{switch(t){case"ExtraLeading":return 1+e/i;case"Multiple":return e;case"Exact":return e/i}})(n,a??0,r):0,o=e.horizontalAlignment??C.D.CIMTextSymbol.horizontalalignment,h=e.verticalAlignment??C.D.CIMTextSymbol.verticalalignment,c="CIMBackgroundCallout"===e.callout?.type,u=(0,V.tA)(s.glyphMosaicItems,{scale:r/24,angle:(0,G.$w)(e.angle),xOffset:(0,G.$w)(e.offsetX),yOffset:(0,G.$w)(e.offsetY),horizontalAlignment:o,verticalAlignment:h,maxLineWidth:(0,X.Lu)(e.lineWidth),lineHeight:29*Math.max(.25,Math.min(l||1,4)),decoration:e.font.decoration||"none",useCIMAngleBehavior:!0,hasBackground:c}).boundsT,f=Math.sqrt(u.width*u.width+u.height*u.height);return t[0]-=u.x+f,t[1]-=u.y-f,t[2]+=u.x+f,t[3]+=-u.y+f,t}}class gt{static getEnvelope(t,e,i,r){if(!t)return null;let s=new j(i,r);if(Array.isArray(t)){let i;for(let r of t)i?i.union(mt(s,r,e)):i=mt(s,r,e);return i}return mt(s,t,e)}static expandEnvelopeForPointSymbolHalo(t,e,i,r=0){let s=yt.getPointSymbolHaloPadding(e,i);if(s<=0)return;let n=s+r;t.x-=n,t.y-=n,t.width+=2*n,t.height+=2*n}static getTextureInfo(t,e,i,r,s,n=0){let a=r??this.getEnvelope(t,null,e);if(!a)return[0,0,0,0,1];let l=Math.max(a.width,a.height)*ht,o=null==s?1:Math.max(s/l,1);o*=ht,a.x*=o,a.y*=o,a.width*=o,a.height*=o,a.width=Math.max(Math.ceil(a.x+a.width)-Math.floor(a.x),1)-1,a.height=Math.max(Math.ceil(a.y+a.height)-Math.floor(a.y),1)-1;let h=a.x+.5*a.width,c=a.y+.5*a.height;if(h+=a.x-Math.floor(a.x),c+=a.y-Math.floor(a.y),!r){let t=Math.ceil(n*o);a.width+=i+2*t,a.height+=i+2*t,h+=i/2,c+=i/2}return[a.width,a.height,h,c,o]}static getTextureAnchor(t,e,i,r=0){let[s,n,a,l,o]=this.getTextureInfo(t,e,2,null,i,r);return[-a/s,-l/n,n/o*ht]}static rasterize(t,e,i,r,s=!0,n,a=0){let[l,o,h,c,u]=this.getTextureInfo(e,r,2,i,n,a);t.width=l,t.height=o;let f=t.getContext("2d",{willReadFrequently:!0}),m=Y.createScale(u,-u);m.translate(.5*l-h,.5*o+c);let d=new K(f,r,m);switch(e.type){case"CIMPointSymbol":d.drawSymbol(e,{type:"point",x:0,y:0});break;case"CIMVectorMarker":{let t=new y.W;d.drawMarker(e,t);break}}let g=f.getImageData(0,0,t.width,t.height),p=new Uint8Array(g.data);if(s){let t;for(let e=0;e<p.length;e+=4)t=p[e+3]/255,p[e]=p[e]*t,p[e+1]=p[e+1]*t,p[e+2]=p[e+2]*t}return[p,t.width,t.height,-h/l,-c/o,u]}static fromTextSymbol(t){let{text:e}=t;return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,anchorPointUnits:"Relative",dominantSizeAxis3D:"Y",size:10,billboardMode3D:"FaceNearPlane",frame:{xmin:-5,ymin:-5,xmax:5,ymax:5},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{x:0,y:0},symbol:gt.createCIMTextSymbolfromTextSymbol(t),textString:e}],scaleSymbolsProportionally:!0,respectFrame:!0}],scaleX:1,angleAlignment:"Display"}}static fromPictureFillSymbol(t){let{height:e,outline:i,width:r,xoffset:s,xscale:n,yoffset:a,yscale:l}=t,o=[],h={type:"CIMPolygonSymbol",symbolLayers:o};if(i){let t=It(i);t&&o.push(t)}let c=t.url;"esriPFS"===t.type&&t.imageData&&(c=t.imageData);let u="angle"in t?t.angle??0:0,f=(r??0)*(n||1),m=(e??0)*(l||1);return o.push({type:"CIMPictureFill",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:c,height:m,width:f,offsetX:(0,G.$w)(s),offsetY:(0,G.$w)(a),rotation:(0,G.$w)(-u),colorSubstitutions:null}),h}static fromSimpleFillSymbol(t){let{color:e,style:i,outline:r}=t,n=[],a={type:"CIMPolygonSymbol",symbolLayers:n};if(r){let t=It(r);t&&n.push(t)}if(i&&"solid"!==i&&"none"!==i&&"esriSFSSolid"!==i&&"esriSFSNull"!==i){let t={type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",color:bt(e),capStyle:"Butt",joinStyle:"Miter",width:.75}]},r=0,a=(0,o.PN)(Lt(i)?8:10);switch(i){case"vertical":case"esriSFSVertical":r=90;break;case"forward-diagonal":case"esriSFSForwardDiagonal":case"diagonal-cross":case"esriSFSDiagonalCross":r=-45;break;case"backward-diagonal":case"esriSFSBackwardDiagonal":r=45;break;case"cross":case"esriSFSCross":r=0}n.push({type:"CIMHatchFill",lineSymbol:t,offsetX:0,offsetY:0,rotation:r,separation:a}),"cross"===i||"esriSFSCross"===i?n.push({type:"CIMHatchFill",lineSymbol:(0,s.o8)(t),offsetX:0,offsetY:0,rotation:90,separation:a}):("diagonal-cross"===i||"esriSFSDiagonalCross"===i)&&n.push({type:"CIMHatchFill",lineSymbol:(0,s.o8)(t),offsetX:0,offsetY:0,rotation:45,separation:a})}else i&&("solid"===i||"esriSFSSolid"===i)&&n.push({type:"CIMSolidFill",enable:!0,color:bt(e)});return a}static fromSimpleLineSymbol(t){let{cap:e,color:i,join:r,marker:s,miterLimit:n,style:a,width:l}=t,o=null;"solid"!==a&&"none"!==a&&"esriSLSSolid"!==a&&"esriSLSNull"!==a&&(o=[{type:"CIMGeometricEffectDashes",dashTemplate:kt(a,e),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]);let h=[];if(s){let t;switch(s.placement){case"begin-end":t="Both";break;case"begin":t="JustBegin";break;case"end":t="JustEnd";break;default:t="None"}let e=gt.fromSimpleMarker(s,l,i).symbolLayers[0];e.markerPlacement={type:"CIMMarkerPlacementAtExtremities",placePerPart:!1,angleToLine:!0,keepUpright:!1,offset:0,extremityPlacement:t,offsetAlongLine:0},h.push(e)}return h.push({type:"CIMSolidStroke",color:"none"!==a&&"esriSLSNull"!==a?bt(i):[0,0,0,0],capStyle:_t(e),joinStyle:xt(r),miterLimit:n,width:l,effects:o}),{type:"CIMLineSymbol",symbolLayers:h}}static fromPictureMarker(t){let{angle:e,height:i,width:r,xoffset:s,yoffset:n}=t,a=t.url;return"esriPMS"===t.type&&t.imageData&&(a=t.imageData),{type:"CIMPointSymbol",symbolLayers:[{type:"CIMPictureMarker",invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:a,size:i,width:r,offsetX:(0,G.$w)(s),offsetY:(0,G.$w)(n),rotation:(0,G.$w)(-e)}]}}static createCIMTextSymbolfromTextSymbol(t){let e,i,s,n,a,l,{angle:o,color:h,font:c,haloColor:u,haloSize:f,horizontalAlignment:m,kerning:d,lineWidth:y,text:g,verticalAlignment:p,xoffset:_,yoffset:x,backgroundColor:S,borderLineColor:M,borderLineSize:b}=t;c&&(e=c.family,i=c.style,s=c.weight,n=c.size,a=c.decoration);let w=!1;return g&&(w=(0,r.y)(g)[1]),(S||b)&&(l={type:"CIMBackgroundCallout",margin:null,backgroundSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:bt(S)},{type:"CIMSolidStroke",enable:!0,color:bt(M),width:b??0}]},accentBarSymbol:null,gap:null,leaderLineSymbol:null,lineStyle:null}),{type:"CIMTextSymbol",angle:o,blockProgression:2,depth3D:1,extrapolateBaselines:!0,fontEffects:0,fontEncoding:1,fontFamilyName:e||"Arial",fontStyleName:wt(i,s),fontType:0,haloSize:f,height:n,hinting:1,horizontalAlignment:St(m??"center"),kerning:d,letterWidth:100,ligatures:!0,lineGapType:"Multiple",lineWidth:y,offsetX:(0,G.$w)(_),offsetY:(0,G.$w)(x),strikethrough:"line-through"===a,underline:"underline"===a,symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:bt(h)}]},haloSymbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:bt(u)}]},shadowColor:[0,0,0,255],shadowOffsetX:1,shadowOffsetY:1,textCase:"Normal",textDirection:+!!w,verticalAlignment:Mt(p??"baseline"),verticalGlyphOrientation:0,wordSpacing:100,billboardMode3D:2,callout:l}}static createPictureMarkerRasterizationParam(t){let{angle:e,height:i,width:r,xoffset:s,yoffset:n}=t,a=t.url??t.source?.url??t.source?.imageData;return a?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureMarker",enable:!0,invertBackfaceTexture:!1,scaleX:1,textureFilter:"Picture",tintColor:null,url:a,size:i,width:r,offsetX:(0,G.$w)(s),offsetY:(0,G.$w)(n),rotation:(0,G.$w)(-e)}}:null}static createPictureFillRasterizationParam(t){let{width:e,height:i,xoffset:r,yoffset:s,url:n}=t;return n?{type:"sprite-rasterization-param",overrides:[],resource:{type:"CIMPictureFill",enable:!0,scaleX:1,textureFilter:"Picture",tintColor:null,url:n,width:e,height:i,offsetX:(0,G.$w)(r),offsetY:(0,G.$w)(s),rotation:0}}:null}static fromSimpleMarker(t,e,i){let{style:r}=t,s=t.color??i;if("path"===r||"esriSMSPath"===r){let e=[];if("outline"in t&&t.outline){let i=t.outline;e.push({type:"CIMSolidStroke",enable:!0,width:i.width,color:bt(i.color),path:t.path})}e.push({type:"CIMSolidFill",enable:!0,color:bt(s),path:t.path});let[i,r]=Tt("square");return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:-(0,G.$w)(t.angle),size:(0,G.$w)(t.size||6),offsetX:(0,G.$w)(t.xoffset),offsetY:(0,G.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:i,markerGraphics:[{type:"CIMMarkerGraphic",geometry:r,symbol:{type:"CIMPolygonSymbol",symbolLayers:e}}]}]}}let n,a,l=[],o=t.size;if("outline"in t&&t.outline&&"none"!==t.outline.style&&"esriSLSNull"!==t.outline.style){let e=t.outline,i="solid"!==e.style&&"esriSLSSolid"!==e.style;[n,a]=i?Tt(r,t.size):Tt(r);let s=e.width??st.A7.width;if(i){let e=s/t.size,i=(n.xmax-n.xmin)*e/2,r=(n.ymax-n.ymin)*e/2;n.xmin-=i,n.xmax+=i,n.ymin-=r,n.ymax+=r,o&&(o+=s)}let h="cross"!==t.style&&"x"!==t.style||"dot"===t?.outline.style||"short-dot"===t?.outline.style?"HalfGap":"FullPattern",c=i?[{type:"CIMGeometricEffectAddControlPoints"},{type:"CIMGeometricEffectDashes",dashTemplate:kt(e.style,null).map(t=>e.width&&e.width>0?t*e.width:t),lineDashEnding:h,controlPointEnding:"FullPattern"}]:void 0;l.push({type:"CIMSolidStroke",capStyle:i?"Round":"Butt",enable:!0,width:s,color:bt(e.color),effects:c})}else!e||"line-marker"!==t.type||"cross"!==t.style&&"x"!==t.style?[n,a]=Tt(r):([n,a]=Tt(r),l.push({type:"CIMSolidStroke",enable:!0,width:e,color:bt(s)}));l.push({type:"CIMSolidFill",enable:!0,color:bt(s)});let h={type:"CIMPolygonSymbol",symbolLayers:l};return{type:"CIMPointSymbol",symbolLayers:[{type:"CIMVectorMarker",enable:!0,rotation:(0,G.$w)(-t.angle),size:(0,G.$w)(o||6*e),offsetX:(0,G.$w)(t.xoffset),offsetY:(0,G.$w)(t.yoffset),scaleSymbolsProportionally:!1,frame:n,markerGraphics:[{type:"CIMMarkerGraphic",geometry:a,symbol:h}]}]}}static fromCIMHatchFill(t,e){let i=e*(t.separation??C.D.CIMHatchFill.separation),r=i/2,n=(0,s.o8)(t.lineSymbol);n.symbolLayers?.forEach(t=>{switch(t.type){case"CIMSolidStroke":null!=t.width&&(t.width*=e),t.effects?.forEach(t=>{"CIMGeometricEffectDashes"===t.type&&(t.dashTemplate=t.dashTemplate?.map(t=>t*e))});break;case"CIMVectorMarker":{null!=t.size&&(t.size*=e);let i=t.markerPlacement;null!=i&&"placementTemplate"in i&&(i.placementTemplate=i.placementTemplate.map(t=>t*e));break}}});let a=this._getLineSymbolPeriod(n)||4;for(;a<4;)a*=2;let l=a/2;return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-l,xmax:l,ymin:-r,ymax:r},markerGraphics:[{type:"CIMMarkerGraphic",geometry:{paths:[[[-l,0],[l,0]]]},symbol:n}],size:i}}static async normalizeSymbolAndFetchResources(t,e,i=null){if(!t)return;let r=[];if("effects"in t&&t.effects)for(let e of t.effects)r.push((0,d.ai)(e));r.push(n(t));let s=t=>{if(t.effects)for(let e of t.effects)r.push((0,d.ai)(e));if("CIMVectorMarker"===t.type){for(let e of t.markerGraphics)(0,u.Ed)(e.geometry)&&(e.geometry=(0,f.GS)(e.geometry,{maxDeviation:.01}));t.markerPlacement&&r.push((0,d.g1)(t.markerPlacement))}"url"in t&&t.url&&r.push(e.fetchResource(t.url,{signal:i})),"symbol"in t&&r.push(n(t.symbol))};async function n(t){if("CIMTextSymbol"!==t.type)return;let{fontFamilyName:i,fontStyleName:r}=t;if("calcitewebcoreicons"===i?.toLowerCase())return;let{style:s,weight:n}=(0,P._)(r),a=(0,G.DW)(t),l=new m.A({family:i,style:s,weight:n,decoration:a});try{await e.loadFont(l)}catch{ct().error(`Unsupported font ${i} in CIM symbol`)}}pt(t,s),"haloSymbol"in t&&pt(t.haloSymbol,s),await Promise.all(r)}static _getLineSymbolPeriod(t){if(t){let e=this._getEffectsRepeat(t.effects);if(e)return e;if(t.symbolLayers)for(let e of t.symbolLayers)if(e){let t=this._getEffectsRepeat(e.effects);if(t)return t;switch(e.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{let t=this._getPlacementRepeat(e.markerPlacement);if(t)return t}}}}return 0}static _getEffectsRepeat(t){if(t)for(let e of t)if(e)switch(e.type){case"CIMGeometricEffectDashes":{let t=e.dashTemplate;if(t&&t.length){let e=0;for(let i of t)e+=i;return 1&t.length&&(e*=2),e}break}case"CIMGeometricEffectWave":return e.period;default:ct().error(`unsupported geometric effect type ${e.type}`)}return 0}static _getPlacementRepeat(t){if(t)switch(t.type){case"CIMMarkerPlacementAlongLineSameSize":case"CIMMarkerPlacementAlongLineRandomSize":case"CIMMarkerPlacementAlongLineVariableSize":{let e=t.placementTemplate;if(e&&e.length){let t=0;for(let i of e)t+=+i;return 1&e.length&&(t*=2),t}break}}return 0}static fromCIMInsidePolygon(t){let e=t.markerPlacement,i={...t};i.markerPlacement=null,i.anchorPoint=null;let r,s,n,a,h=Math.abs(e.stepX),c=Math.abs(e.stepY),u=(e.randomness??100)/100;if("Random"===e.gridType){let t=(0,o.PN)(1024),i=Math.max(Math.floor(t/h),1),f=Math.max(Math.floor(t/c),1);r=i*h/2,s=f*c/2,n=2*s;let m=new l.A(e.seed),d=u*h/1.5,y=u*c/1.5;a=[];for(let t=0;t<i;t++)for(let e=0;e<f;e++){let i=t*h-r+d*(.5-m.getFloat()),n=e*c-s+y*(.5-m.getFloat());a.push({x:i,y:n}),0===t&&a.push({x:i+2*r,y:n}),0===e&&a.push({x:i,y:n+2*s})}}else!0===e.shiftOddRows?(r=h/2,s=c,n=2*c,a=[{x:-r,y:0},{x:r,y:0},{x:0,y:s},{x:0,y:-s}]):(r=h/2,s=c/2,n=c,a=[{x:-h,y:0},{x:0,y:-c},{x:-h,y:-c},{x:0,y:0},{x:h,y:0},{x:0,y:c},{x:h,y:c},{x:-h,y:c},{x:h,y:-c}]);let f=a.map(t=>({type:"CIMMarkerGraphic",geometry:t,symbol:{type:"CIMPointSymbol",symbolLayers:[i]}}));return{type:"CIMVectorMarker",enable:!0,frame:{xmin:-r,xmax:r,ymin:-s,ymax:s},markerGraphics:f,size:n}}}function pt(t,e){if(t)switch(t.type){case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{let i=t.symbolLayers;if(!i)return;for(let t of i)if(e(t),"CIMVectorMarker"===t.type){let i=t.markerGraphics;if(!i)continue;for(let t of i)if(t){let i=t.symbol;i&&pt(i,e)}}break}}}const _t=t=>{if(!t)return"Butt";switch(t){case"butt":return"Butt";case"square":return"Square";case"round":return"Round"}},xt=t=>{if(!t)return"Miter";switch(t){case"miter":return"Miter";case"round":return"Round";case"bevel":return"Bevel"}},St=t=>{if(null==t)return"Center";switch(t){case"left":return"Left";case"right":return"Right";case"center":return"Center";case"justify":return"Justify"}},Mt=t=>{if(null==t)return"Center";switch(t){case"baseline":return"Baseline";case"top":return"Top";case"middle":return"Center";case"bottom":return"Bottom"}},bt=t=>{if(!t)return[0,0,0,0];let{r:e,g:i,b:r,a:s}=t;return[e,i,r,255*s]},wt=(t,e)=>{let i=Ct(e),r=Pt(t);return i&&r?`${i}-${r}`:`${i}${r}`},Ct=t=>{if(!t)return"";switch(t.toLowerCase()){case"bold":case"bolder":return"bold"}return""},Pt=t=>{if(!t)return"";switch(t.toLowerCase()){case"italic":case"oblique":return"italic"}return""},kt=(t,e)=>{let i=.001,r="butt"===e;switch(t){case"dash":case"esriSLSDash":return r?[4,3]:[3,4];case"dash-dot":case"esriSLSDashDot":return r?[4,3,1,3]:[3,4,i,4];case"dot":case"esriSLSDot":return r?[1,3]:[i,4];case"long-dash":case"esriSLSLongDash":return r?[8,3]:[7,4];case"long-dash-dot":case"esriSLSLongDashDot":return r?[8,3,1,3]:[7,4,i,4];case"long-dash-dot-dot":case"esriSLSDashDotDot":return r?[8,3,1,3,1,3]:[7,4,i,4,i,4];case"short-dash":case"esriSLSShortDash":return r?[4,1]:[3,2];case"short-dash-dot":case"esriSLSShortDashDot":return r?[4,1,1,1]:[3,2,i,2];case"short-dash-dot-dot":case"esriSLSShortDashDotDot":return r?[4,1,1,1,1,1]:[3,2,i,2,i,2];case"short-dot":case"esriSLSShortDot":return r?[1,1]:[i,2];case"solid":case"esriSLSSolid":case"none":return ct().error("Unexpected: style does not require rasterization"),[0,0];default:return ct().error(`Tried to rasterize SLS, but found an unexpected style: ${t}!`),[0,0]}},Tt=(t,e=100)=>{let i,r,s=e/2,n=t;if("circle"===n||"esriSMSCircle"===n){let t=Math.acos(1-.25/s),e=Math.ceil(at/t/4);0===e&&(e=1),t=lt/e,e*=4;let n=[];n.push([s,0]);for(let i=1;i<e;i++)n.push([s*Math.cos(i*t),-s*Math.sin(i*t)]);n.push([s,0]),i={rings:[n]},r={xmin:-s,ymin:-s,xmax:s,ymax:s}}else if("cross"===n||"esriSMSCross"===n)i={paths:[[[0,s],[0,-s]],[[s,0],[-s,0]]]},r={xmin:-s,ymin:-s,xmax:s,ymax:s};else if("diamond"===n||"esriSMSDiamond"===n)i={rings:[[[-s,0],[0,s],[s,0],[0,-s],[-s,0]]]},r={xmin:-s,ymin:-s,xmax:s,ymax:s};else if("square"===n||"esriSMSSquare"===n)i={rings:[[[-s,-s],[-s,s],[s,s],[s,-s],[-s,-s]]]},r={xmin:-s,ymin:-s,xmax:s,ymax:s};else if("x"===n||"esriSMSX"===n)i={paths:[[[s,s],[-s,-s]],[[s,-s],[-s,s]]]},r={xmin:-s,ymin:-s,xmax:s,ymax:s};else if("triangle"===n||"esriSMSTriangle"===n){let t=.5773502691896257*e,s=-t,n=2/3*e,a=n-e;i={rings:[[[s,a],[0,n],[t,a],[s,a]]]},r={xmin:s,ymin:a,xmax:t,ymax:n}}else"arrow"===n&&(i={rings:[[[-50,50],[50,0],[-50,-50],[-33,-20],[-33,20],[-50,50]]]},r={xmin:-s,ymin:-s,xmax:s,ymax:s});return[r,i]},Lt=t=>"vertical"===t||"horizontal"===t||"cross"===t||"esriSFSCross"===t||"esriSFSVertical"===t||"esriSFSHorizontal"===t;function It(t){if(!t)return null;let e=null,{cap:i,color:r,join:s,miterLimit:n,style:a,width:l}=t;return"solid"!==a&&"none"!==a&&"esriSLSSolid"!==a&&"esriSLSNull"!==a&&(e=[{type:"CIMGeometricEffectDashes",dashTemplate:kt(a,i),lineDashEnding:"NoConstraint",scaleDash:!0,offsetAlongLine:null}]),{type:"CIMSolidStroke",color:"esriSLSNull"!==a&&"none"!==a?bt(r):[0,0,0,0],capStyle:_t(i),joinStyle:xt(s),miterLimit:n,width:l,effects:e}}},13195(t,e,i){i.d(e,{GW:()=>d,IU:()=>y,Wh:()=>c,cP:()=>g,p6:()=>m,wV:()=>f,yM:()=>p,z0:()=>u});var r=i(6774);const s=Math.PI,n=2*s,a=128/s,l=256/360,o=s/180,h=1/Math.LN2;function c(t,e){return(t%=e)>=0?t:t+e}function u(t){return c(t*a,256)}function f(t){return c(t*l,256)}function m(t){return Math.log(t)*h}function d(t,e,i){return t*(1-i)+e*i}function y(t){return 8+Math.max(16*(t-14),0)}function g(t,e){if(0===e||Number.isNaN(e))return t;let i=[],s=new r.bR(0,0),n=new r.bR(0,0),a=new r.bR(0,0);for(let l=0;l<t.length;l++){let o=t[l],h=[];for(let t=0;t<o.length;t++){let i=o[t-1],l=o[t],c=o[t+1];0===t?s.setCoords(0,0):s.assignSub(l,i).normalize().rightPerpendicular(),t===o.length-1?n.setCoords(0,0):n.assignSub(c,l).normalize().rightPerpendicular(),a.assignAdd(s,n).normalize();let u=a.x*n.x+a.y*n.y;0!==u&&a.scale(1/u),h.push(r.bR.add(l,a.scale(e)))}i.push(h)}return i}function p(t,e,i,s){let n=new r.bR(t[0],t[1]);if(n.scale(s),"viewport"===e){let t=-i*(Math.PI/180),e=Math.cos(t),r=Math.sin(t);n.rotate(e,r)}return n}i.d(e,["Jo",0,s,"MG",0,1/0,"aA",0,l,"os",0,o,"pJ",0,n])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4708],{69052(e,t,r){r.d(t,{hr:()=>i});var n=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,n,i=0,s=!1){return(n-=i)<t?n+=o(e,t-n):n>r&&(n-=o(e,n-r)),s&&n===r&&(n=t),n+i}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,l,"uC",0,a])},18370(e,t,r){r.d(t,{z:()=>i});class n{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function i(e){return new n(e)}},52039(e,t,r){r.d(t,{O7:()=>f,el:()=>c});var n=r(69052),i=(r(49186),r(18370)),s=r(17676),o=(r(5443),r(39829)),a=(r(82799),r(16930)),l=(r(80754),r(21325));async function c(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let n=null;for(let t of e)n??=t?.spatialReference;if(!n)return e;let i=(0,l.Vp)(n);if(!i)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(i);return["xmin"in t?t:new o.A(t)]}let[a,c]=i.valid,f=!1;for(let t of e){if(!t)continue;if("point"===t.type){f||=t.x>=c,f||=t.x<=a;continue}let{extent:e}=t;if(null==e){f=!0;break}f||=e.xmin>=c,f||=e.xmin<=a,f||=e.xmax>=c,f||=e.xmax<=a}if(!f)return e;let[{foldInto360Range:d},g]=await(0,s.qr)(Promise.all([u.getImportPromise(),h.getImportPromise()]),r),m=g.fromSpatialReference(n);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=g.fromGeometry(e),r=g.toGeometry(d(t,m),n);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const u=(0,i.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),h=(0,i.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function f(e,t,r){let n=(0,l.Vp)(r);if(null==n)return e;let[i,s]=n.valid,o=2*s,a=0,c=0;t>s?a=Math.ceil(Math.abs(t-s)/o):t<i&&(a=-Math.ceil(Math.abs(t-i)/o)),e>s?c=Math.ceil(Math.abs(e-s)/o):e<i&&(c=-Math.ceil(Math.abs(e-i)/o));let u=e+(a-c)*o,h=u-t;return h>s?u-=o:h<i&&(u+=o),u}function d(e){let t=(0,l.Vp)(e);if(null==t)return null;let[r,i]=t.valid;return new n.hr(r,i)}const g=d(a.A.WGS84);d(a.A.WebMercator),r.d(t,["Y_",0,g])},80754(e,t,r){r.d(t,{kS:()=>c,kd:()=>l});var n=r(82799),i=r(16930),s=r(60408),o=r(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function c(e,t){if((0,o.Ed)(e))for(let r of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,o.aO)(e)){let[r,n]=e.c;r[0]+=t,n[0]+=t}else if((0,o.FG)(e)){let[r,n]=e.a;r[0]+=t,n[0]+=t}else if((0,o.n1)(e)){let[r,n,i]=e.b;r[0]+=t,n[0]+=t,i[0]+=t}else e[0]+=t;for(let r of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}r.d(t,["j7",0,a])},31464(e,t,r){r.d(t,{Cv:()=>d,Nk:()=>f,lK:()=>m});var n=r(4576),i=r(99917),s=r(60408),o=r(21325),a=r(28735);const l=[0,0];function c(e,t){let r=(0,o.K8)(e)?a.je:a.tD;if((0,s.fT)(t)){let e={x:0,y:0};return[e.x,e.y]=r(t.x,t.y,l),null!=t.z&&(e.z=t.z),null!=t.m&&(e.m=t.m),e}if((0,s.ZC)(t)){let e={xmin:0,ymin:0,xmax:0,ymax:0};return[e.xmin,e.ymin]=r(t.xmin,t.ymin,l),[e.xmax,e.ymax]=r(t.xmax,t.ymax,l),t.hasZ&&(e.zmin=t.zmin,e.zmax=t.zmax,e.hasZ=!0),t.hasM&&(e.mmin=t.mmin,e.mmax=t.mmax,e.hasM=!0),e}if((0,s.Bi)(t))return{rings:u(t.rings,r),hasM:t.hasM,hasZ:t.hasZ};if((0,s.Rg)(t))return{paths:u(t.paths,r),hasM:t.hasM,hasZ:t.hasZ};if((0,s.U9)(t))return{points:h(t.points,r),hasM:t.hasM,hasZ:t.hasZ};throw Error()}function u(e,t){let r=[];for(let n of e)r.push(h(n,t));return r}function h(e,t){let r=[];for(let n of e){let e=t(n[0],n[1],[0,0]);r.push(e),n.length>2&&e.push(n[2]),n.length>3&&e.push(n[3])}return r}async function f(e,t){if(!e||!t)return;let r=Array.isArray(e)?e.map(e=>null==e.geometry?null:e.geometry.spatialReference).filter(n.Ru):[e];await(0,i.initializeProjection)(r.map(e=>({source:e,dest:t})))}function d(e,t,r,n){if(!e)return null;if(r||(r=t,t=e.spatialReference),!(0,o.fn)(t)||!(0,o.fn)(r)||(0,o.aI)(t,r))return e;if((0,a.y7)(t,r)){let t=c(r,e);return t.spatialReference=r,t}let[s]=(0,i.projectMany)([e],t,r,n);return s}const g=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,r,n){if(!e?.length||!t||!r||(0,o.aI)(t,r))return e;let i={geometries:e,inSpatialReference:t,outSpatialReference:r,options:n,resolve:Promise.withResolvers()};return this._jobs.push(i),this._timer??=setTimeout(this._process,10),i.resolve.promise}_process(){this._timer=null;let e=this._jobs.shift();if(!e)return;let t,{geometries:r,inSpatialReference:n,outSpatialReference:s,resolve:o,options:l}=e,u=r.filter(e=>null!=e);t=(0,a.y7)(n,s)&&null==l?.extendedParams?u.map(e=>c(s,e)):(0,i.projectMany)(u,n,s,l);let h=0,f=r.map(e=>null==e?null:t[h++]);o.resolve(f),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function m(e,t,r,n){return g.push(e,t,r,n)}},60986(e,t,r){r.r(t),r.d(t,{createConnection:()=>C});var n=r(56507),i=r(49186),s=r(31464),o=r(9916),a=r(32198),l=r(65529),c=r(91429);let u=class extends l.nJ{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new i.A("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}onMessage(e){this.emit("message-received",e)}};(0,a.Cg)([(0,c.MZ)({readOnly:!0})],u.prototype,"connectionError",null),u=(0,a.Cg)([(0,c.$K)("esri.layers.support.StreamConnection")],u);class h extends u{constructor(e,t){super(),this._config=e,this._outSpatialReference=t,this.connectionStatus="connected",this.errorString=null,this._isPolling=!1,this._lastIngestedAt=null,this._pollTimer=null,this._pollRecentData=async()=>{if(!this.destroyed&&!this._isPolling){this._isPolling=!0;try{let e=await this._queryChanges(this._lastIngestedAt);if(this.destroyed)return;this._handleResult(e)}catch(e){this.errorString=e instanceof Error?e.message:"Failed to fetch"}finally{this._isPolling=!1}}},this._initialize()}destroy(){super.destroy(),this._pollTimer&&=(clearInterval(this._pollTimer),null)}sendMessageToSocket(e){throw new i.A("kusto:unsupported","sendMessageToSocket not supported for Kusto connections")}sendMessageToClient(e){throw new i.A("kusto:unsupported","sendMessageToClient not supported for Kusto connections")}updateCustomParameters(e){throw new i.A("kusto:unsupported","updateCustomParameters not supported for Kusto connections")}async _initialize(){await(0,s.Nk)(this._config.sourceSpatialReference,this._outSpatialReference);try{let e=await this._queryInitial();this._handleResult(e),this._pollTimer=setInterval(this._pollRecentData,6e4*this._config.refreshInterval)}catch{throw new i.A("kusto:connection","Failed to query KQL database")}}async _queryInitial(){let{trackIdField:e}=this._config,t=f(await this._executeQuery(`${(0,o.xw)(this._config.table)} | extend IngestedAt = ingestion_time() | summarize arg_max(IngestedAt, *) by ${(0,o.xw)(e)}`));if(!t)throw new i.A("kusto:connection","Unable to find primaryTable");return{ingestedAt:d(t),table:t}}async _queryChanges(e=null){let t=e??"1970-01-01T00:00:00Z",r=f(await this._executeQuery(`${(0,o.xw)(this._config.table)} | extend IngestedAt = ingestion_time() | where IngestedAt > todatetime('${(0,o.iD)(t)}') | order by IngestedAt asc`));if(!r)throw new i.A("kusto:connection","Unable to find primaryTable");return{ingestedAt:d(r),table:r}}async _executeQuery(e){let t=this._config.database,r=t.properties.queryServiceUri,{data:i}=await(0,n.A)(`${r}/v2/rest/query`,{responseType:"json",method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({db:t.displayName,csl:e})});return i}_handleResult(e){this._lastIngestedAt=e.ingestedAt;let t=this._createFeatures(e.table);if(null!=t){this.onMessage(t);for(let e of t)this.onFeature(e)}}_createFeatures(e){if(null==e||0===e.Rows.length)return null;let{xField:t,yField:r}=this._config.geometryEncoding,n=e.Columns.findIndex(e=>e.ColumnName===t),i=e.Columns.findIndex(e=>e.ColumnName===r);return e.Rows.map(t=>this._createFeature(e.Columns,n,i,t))}_createFeature(e,t,r,n){let{xField:i,yField:o}=this._config.geometryEncoding,a={};for(let t=0;t<e.length;t++){let r=e[t],s=n[t]??null;r.ColumnName!==o&&r.ColumnName!==i&&(a[r.ColumnName]=s)}let l=null,c=n[t],u=n[r];return null!=u&&null!=c&&(l=(0,s.Cv)({x:c,y:u},this._config.sourceSpatialReference,this._outSpatialReference)),{attributes:a,geometry:l}}}function f(e){return e.find(e=>"DataTable"===e.FrameType&&"PrimaryResult"===e.TableKind)??null}function d(e){let t=e.Columns.findIndex(e=>"IngestedAt"===e.ColumnName);if(t<0)return null;let r=null;for(let n of e.Rows){let e=n[t];"string"==typeof e&&(null==r||e>r)&&(r=e)}return r}var g=r(53966),m=r(84952),p=r(16930),y=r(65864),_=r(17676),w=r(62815);function b(e,t){if(null==e&&null==t)return null;let r={};return null!=t&&(r.geometry=t),null!=e&&(r.where=e),r}let S=class extends u{constructor(e,t){super({}),this._outSpatialReference=t,this._outstandingMessages=[],this.errorString=null;let{geometryType:r,sourceSpatialReference:n}=e;this._config=e,this._featureZScaler=(0,w.N)(r,n,this._outSpatialReference),this._open()}normalizeCtorArgs(){return{}}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){super.destroy(),null!=this._websocket&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if(null==this._websocket)return"disconnected";switch(this._websocket.readyState){case 0:case 1:return"connected";case 2:case 3:return"disconnected"}}sendMessageToSocket(e){null==this._websocket?this._outstandingMessages.push(e):this._websocket.send(JSON.stringify(e))}sendMessageToClient(e){this._onMessage(e)}updateCustomParameters(e){this._config.customParameters=e,null!=this._websocket&&this._websocket.close()}async _tryCreateWebSocket(e=this._config.url.path,t=1e3,r=0){try{if(this.destroyed)return;let t=(0,m.a6)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(n){let s=t/1e3;return this._config.maxReconnectionAttempts&&r>=this._config.maxReconnectionAttempts?(g.A.getLogger(this).error(new i.A("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(g.A.getLogger(this).error(new i.A("websocket-connection",`Failed to connect. Attempting to reconnect in ${s}s`,n)),await(0,_.Pl)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),r+1))}}_setWebSocketJSONParseHandler(e){e.onmessage=e=>{try{let t=JSON.parse(e.data);this._onMessage(t)}catch(e){return void g.A.getLogger(this).error(new i.A("websocket-connection","Failed to parse message, invalid JSON",{error:e}))}}}_createWebSocket(e){return new Promise((t,r)=>{let n=new WebSocket(e);n.onopen=()=>{n.onopen=null,this.destroyed?(n.onclose=null,n.close()):(n.onclose=e=>this._onClose(e),n.onerror=e=>this._onError(e),this._setWebSocketJSONParseHandler(n),t(n))},n.onclose=e=>{n.onopen=n.onclose=null,r(e)}})}async _handshake(e=1e4){let t=this._websocket;if(null==t)return;let r=Promise.withResolvers(),n=t.onmessage,s=b(this._config.definitionExpression,this._config.geometryDefinition),{outFields:o}=this._config,a=setTimeout(()=>r.reject(),e),l=()=>{clearTimeout(a),r.reject()};return t.onmessage=e=>{let c=null;try{c=JSON.parse(e.data)}catch{}(!c||"object"!=typeof c)&&(g.A.getLogger(this).error(new i.A("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),l(),this.destroy()),c.spatialReference?.wkid!==this._outSpatialReference?.wkid&&(g.A.getLogger(this).error(new i.A("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${this._outSpatialReference.wkid}`,e.data)),l(),this.destroy()),"json"!==c.format&&(g.A.getLogger(this).error(new i.A("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),l(),this.destroy()),s&&c.filter!==s&&g.A.getLogger(this).error(new i.A("websocket-connection","Tried to set filter, but server doesn't support it")),o&&c.outFields!==o&&g.A.getLogger(this).error(new i.A("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=n;for(let e of this._outstandingMessages)t.send(JSON.stringify(e));this._outstandingMessages=[],clearTimeout(a),r.resolve()},t.send(JSON.stringify({filter:s,outFields:o,format:"json",spatialReference:{wkid:this._outSpatialReference.wkid}})),r.promise}_onMessage(e){if(this.onMessage(e),"type"in e)switch(e.type){case"features":case"featureResult":for(let t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}}_onError(e){let t="Encountered an error over WebSocket connection";this._set("errorString",t),g.A.getLogger(this).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&g.A.getLogger(this).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,a.Cg)([(0,c.MZ)()],S.prototype,"connectionStatus",null),(0,a.Cg)([(0,c.MZ)()],S.prototype,"errorString",void 0),S=(0,a.Cg)([(0,c.$K)("esri.layers.graphics.sources.connections.WebSocketConnection")],S);var k=r(80893),A=r(97552);const x={maxQueryDepth:5,maxRecordCountFactor:3};let v=class extends S{constructor(e,t){super({...x,...e},t),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){let e=await this._fetchServiceDefinition(this._config.url);e.timeInfo.trackIdField||g.A.getLogger(this).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");let t=this._fetchWebSocketUrl(e.streamUrls,this._outSpatialReference);this._buddyServicesQuery||=this._queryBuddyServices(),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);let r=b(this._config.definitionExpression,this._config.geometryDefinition),{outFields:n}=this._config;this.destroyed||this._setFilter(r,n)}_onMessage(e){if("attributes"in e){let t;try{t=this._enrich(e),null!=this._featureZScaler&&this._featureZScaler(t.geometry)}catch(e){return void g.A.getLogger(this).error(new i.A("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}else this.onMessage(e)}async _fetchServiceDefinition(e){let t={f:"json",...this._config.customParameters},r=(await(0,n.A)(e.path,{query:t,responseType:"json"})).data;return this._serviceDefinition=r,r}_fetchWebSocketUrl(e,t){let{urls:r,token:n}=e[0],i=this._inferWebSocketBaseUrl(r);return(0,m.a6)(`${i}/subscribe`,{outSR:""+t.wkid,token:n})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(let t of e)if(t.includes("wss"))return t;return g.A.getLogger(this).error(new i.A("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){let r=this._websocket;if(null==r||null==e&&null==t)return;let n=JSON.stringify({filter:this._serializeFilter(e,t)}),s=!1,o=Promise.withResolvers();return r.onmessage=e=>{let t=JSON.parse(e.data);t.filter&&(t.error&&(g.A.getLogger(this).error(new i.A("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),o.reject(t.error)),this._setWebSocketJSONParseHandler(r),s=!0,o.resolve())},r.send(n),setTimeout(()=>{s||(!this.destroyed&&this._websocket===r&&g.A.getLogger(this).error(new i.A("geoevent-connection","Server timed out when setting filter")),o.reject())},1e4),o.promise}_serializeFilter(e,t){let r={};if(null==e&&null==t)return r;if(e?.geometry)try{let t=(0,y.rS)(e.geometry);if("extent"!==t.type)throw new i.A("geoevent-connection",`Expected extent but found type ${t.type}`);r.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){g.A.getLogger(this).error(new i.A("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return e?.where&&"1 = 1"!==e.where&&"1=1"!==e.where&&(r.where=e.where),null!=t&&(r.outFields=t.join(",")),r}_enrich(e){if(!this._relatedFeatures)return e;let t=this._serviceDefinition.relatedFeatures.joinField,r=e.attributes[t],n=this._relatedFeatures.get(r);if(!n)return g.A.getLogger(this).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;let{attributes:s,geometry:o}=n;for(let t in s)e.attributes[t]=s[t];return o&&(e.geometry=o),!e.geometry&&!e.centroid&&g.A.getLogger(this).error(new i.A("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{let{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,r=this._queryRelatedFeatures(e),n=this._queryArchive(t);await r;let i=await n;if(!i)return;for(let e of i.features)this.onFeature(this._enrich(e))}catch(e){g.A.getLogger(this).error(new i.A("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;let t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){let t=new((await Promise.all([r.e(6361),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(564),r.e(1214),r.e(2889),r.e(1017),r.e(9789),r.e(4674),r.e(7283),r.e(8589),r.e(812),r.e(5879),r.e(9279)]).then(()=>r(18589))).default)({url:e}),{capabilities:n}=await t.load(),i=n.query.supportsMaxRecordCountFactor,s=n.query.supportsPagination,o=n.query.supportsCentroid,a=this._config.maxRecordCountFactor,l=t.capabilities.query.maxRecordCount,c=i?l*a:l,u=new A.A;if(u.outFields=this._config.outFields??["*"],u.where=this._config.definitionExpression??"1=1",u.returnGeometry=!0,u.returnExceededLimitFeatures=!0,u.outSpatialReference=p.A.fromJSON(this._outSpatialReference),o&&(u.returnCentroid=!0),i&&(u.maxRecordCountFactor=a),s)return u.num=c,t.destroy(),this._queryPages(e,u);let h=await(0,k.eW)(e,u,this._config.sourceSpatialReference);return t.destroy(),h}async _queryPages(e,t,r=[],n=0){t.start=null==t.num?null:n*t.num;let i=await(0,k.eW)(e,t,this._config.sourceSpatialReference);return i.exceededTransferLimit&&n<(this._config.maxQueryDepth??0)?(i.features.forEach(e=>r.push(e)),this._queryPages(e,t,r,n+1)):(r.forEach(e=>i.features.push(e)),i)}_addRelatedFeatures(e){let t=new Map,r=e.features,n=this._serviceDefinition.relatedFeatures.joinField;for(let e of r){let r=e.attributes[n];t.set(r,e)}this._relatedFeatures=t}};v=(0,a.Cg)([(0,c.$K)("esri.layers.graphics.sources.connections.GeoEventConnection")],v);var R=r(64108);let M=class extends u{constructor(e,t){super({}),this.connectionStatus="connected",this.errorString=null;let{geometryType:r,sourceSpatialReference:n}=e;this._featureZScaler=(0,w.N)(r,n,t)}normalizeCtorArgs(){return{}}updateCustomParameters(e){}sendMessageToSocket(e){}sendMessageToClient(e){if("type"in e)switch(e.type){case"features":case"featureResult":for(let t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}this.onMessage(e)}};function C(e,t){let r=t.toJSON();switch(e.type){case"client":return new M(e,r);case"custom":return new S(e,r);case"geoevent":return new v(e,r);case"kusto":return new h(e,r)}}(0,a.Cg)([(0,c.MZ)()],M.prototype,"connectionStatus",void 0),(0,a.Cg)([(0,c.MZ)()],M.prototype,"errorString",void 0),M=(0,a.Cg)([(0,R.$)("esri.layers.support.ClientSideConnection")],M)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4708],{69052(e,t,r){r.d(t,{hr:()=>i});var n=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return s(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+o(this.range,e-t,r)}minimalMonotonic(e,t,r){return s(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);let r=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(n)?r:n}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function s(e,t,r,n,i=0,s=!1){return(n-=i)<t?n+=o(e,t-n):n>r&&(n-=o(e,n-r)),s&&n===r&&(n=t),n+i}function o(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,l,"uC",0,a])},18370(e,t,r){r.d(t,{z:()=>i});class n{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return this._promise??=this._import().then(async e=>(this.module=e,e)),this._promise}}function i(e){return new n(e)}},52039(e,t,r){r.d(t,{O7:()=>f,el:()=>c});var n=r(69052),i=(r(49186),r(18370)),s=r(17676),o=(r(5443),r(39829)),a=(r(82799),r(16930)),l=(r(80754),r(21325));async function c(e,t,r){Array.isArray(e)||(e=[e]),"object"==typeof t&&t&&"authMode"in t&&(r=t);let n=null;for(let t of e)n??=t?.spatialReference;if(!n)return e;let i=(0,l.Vp)(n);if(!i)return e;if(1===e.length&&"extent"===e[0]?.type){let t=e[0].clone().normalizeAsSingleGeometry(i);return["xmin"in t?t:new o.A(t)]}let[a,c]=i.valid,f=!1;for(let t of e){if(!t)continue;if("point"===t.type){f||=t.x>=c,f||=t.x<=a;continue}let{extent:e}=t;if(null==e){f=!0;break}f||=e.xmin>=c,f||=e.xmin<=a,f||=e.xmax>=c,f||=e.xmax<=a}if(!f)return e;let[{foldInto360Range:d},g]=await(0,s.qr)(Promise.all([u.getImportPromise(),h.getImportPromise()]),r),m=g.fromSpatialReference(n);return e.map(e=>{if(null==e||"mesh"===e.type)return e;let t=g.fromGeometry(e),r=g.toGeometry(d(t,m),n);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const u=(0,i.z)(()=>r.e(4144).then(()=>r(4144)).then(e=>e.load().then(()=>e))),h=(0,i.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(()=>r(78125)));function f(e,t,r){let n=(0,l.Vp)(r);if(null==n)return e;let[i,s]=n.valid,o=2*s,a=0,c=0;t>s?a=Math.ceil(Math.abs(t-s)/o):t<i&&(a=-Math.ceil(Math.abs(t-i)/o)),e>s?c=Math.ceil(Math.abs(e-s)/o):e<i&&(c=-Math.ceil(Math.abs(e-i)/o));let u=e+(a-c)*o,h=u-t;return h>s?u-=o:h<i&&(u+=o),u}function d(e){let t=(0,l.Vp)(e);if(null==t)return null;let[r,i]=t.valid;return new n.hr(r,i)}const g=d(a.A.WGS84);d(a.A.WebMercator),r.d(t,["Y_",0,g])},80754(e,t,r){r.d(t,{kS:()=>c,kd:()=>l});var n=r(82799),i=r(16930),s=r(60408),o=r(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function c(e,t){if((0,o.Ed)(e))for(let r of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r)if((0,o.aO)(e)){let[r,n]=e.c;r[0]+=t,n[0]+=t}else if((0,o.FG)(e)){let[r,n]=e.a;r[0]+=t,n[0]+=t}else if((0,o.n1)(e)){let[r,n,i]=e.b;r[0]+=t,n[0]+=t,i[0]+=t}else e[0]+=t;for(let r of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}r.d(t,["j7",0,a])},31464(e,t,r){r.d(t,{Cv:()=>d,Nk:()=>f,lK:()=>m});var n=r(4576),i=r(99917),s=r(60408),o=r(21325),a=r(28735);const l=[0,0];function c(e,t){let r=(0,o.K8)(e)?a.je:a.tD;if((0,s.fT)(t)){let e={x:0,y:0};return[e.x,e.y]=r(t.x,t.y,l),null!=t.z&&(e.z=t.z),null!=t.m&&(e.m=t.m),e}if((0,s.ZC)(t)){let e={xmin:0,ymin:0,xmax:0,ymax:0};return[e.xmin,e.ymin]=r(t.xmin,t.ymin,l),[e.xmax,e.ymax]=r(t.xmax,t.ymax,l),t.hasZ&&(e.zmin=t.zmin,e.zmax=t.zmax,e.hasZ=!0),t.hasM&&(e.mmin=t.mmin,e.mmax=t.mmax,e.hasM=!0),e}if((0,s.Bi)(t))return{rings:u(t.rings,r),hasM:t.hasM,hasZ:t.hasZ};if((0,s.Rg)(t))return{paths:u(t.paths,r),hasM:t.hasM,hasZ:t.hasZ};if((0,s.U9)(t))return{points:h(t.points,r),hasM:t.hasM,hasZ:t.hasZ};throw Error()}function u(e,t){let r=[];for(let n of e)r.push(h(n,t));return r}function h(e,t){let r=[];for(let n of e){let e=t(n[0],n[1],[0,0]);r.push(e),n.length>2&&e.push(n[2]),n.length>3&&e.push(n[3])}return r}async function f(e,t){if(!e||!t)return;let r=Array.isArray(e)?e.map(e=>null==e.geometry?null:e.geometry.spatialReference).filter(n.Ru):[e];await(0,i.initializeProjection)(r.map(e=>({source:e,dest:t})))}function d(e,t,r,n){if(!e)return null;if(r||(r=t,t=e.spatialReference),!(0,o.fn)(t)||!(0,o.fn)(r)||(0,o.aI)(t,r))return e;if((0,a.y7)(t,r)){let t=c(r,e);return t.spatialReference=r,t}let[s]=(0,i.projectMany)([e],t,r,n);return s}const g=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,r,n){if(!e?.length||!t||!r||(0,o.aI)(t,r))return e;let i={geometries:e,inSpatialReference:t,outSpatialReference:r,options:n,resolve:Promise.withResolvers()};return this._jobs.push(i),this._timer??=setTimeout(this._process,10),i.resolve.promise}_process(){this._timer=null;let e=this._jobs.shift();if(!e)return;let t,{geometries:r,inSpatialReference:n,outSpatialReference:s,resolve:o,options:l}=e,u=r.filter(e=>null!=e);t=(0,a.y7)(n,s)&&null==l?.extendedParams?u.map(e=>c(s,e)):(0,i.projectMany)(u,n,s,l);let h=0,f=r.map(e=>null==e?null:t[h++]);o.resolve(f),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function m(e,t,r,n){return g.push(e,t,r,n)}},60986(e,t,r){r.r(t),r.d(t,{createConnection:()=>C});var n=r(56507),i=r(49186),s=r(31464),o=r(9916),a=r(32198),l=r(65529),c=r(91429);let u=class extends l.nJ{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new i.A("stream-connection",this.errorString):null}onFeature(e){this.emit("data-received",e)}onMessage(e){this.emit("message-received",e)}};(0,a.Cg)([(0,c.MZ)({readOnly:!0})],u.prototype,"connectionError",null),u=(0,a.Cg)([(0,c.$K)("esri.layers.support.StreamConnection")],u);class h extends u{constructor(e,t){super(),this._config=e,this._outSpatialReference=t,this.connectionStatus="connected",this.errorString=null,this._isPolling=!1,this._lastIngestedAt=null,this._pollTimer=null,this._pollRecentData=async()=>{if(!this.destroyed&&!this._isPolling){this._isPolling=!0;try{let e=await this._queryChanges(this._lastIngestedAt);if(this.destroyed)return;this._handleResult(e)}catch(e){this.errorString=e instanceof Error?e.message:"Failed to fetch"}finally{this._isPolling=!1}}},this._initialize()}destroy(){super.destroy(),this._pollTimer&&=(clearInterval(this._pollTimer),null)}sendMessageToSocket(e){throw new i.A("kusto:unsupported","sendMessageToSocket not supported for Kusto connections")}sendMessageToClient(e){throw new i.A("kusto:unsupported","sendMessageToClient not supported for Kusto connections")}updateCustomParameters(e){throw new i.A("kusto:unsupported","updateCustomParameters not supported for Kusto connections")}async _initialize(){await(0,s.Nk)(this._config.sourceSpatialReference,this._outSpatialReference);try{let e=await this._queryInitial();this._handleResult(e),this._pollTimer=setInterval(this._pollRecentData,6e4*this._config.refreshInterval)}catch{throw new i.A("kusto:connection","Failed to query KQL database")}}async _queryInitial(){let{trackIdField:e}=this._config,t=f(await this._executeQuery(`${(0,o.xw)(this._config.table)} | extend IngestedAt = ingestion_time() | summarize arg_max(IngestedAt, *) by ${(0,o.xw)(e)}`));if(!t)throw new i.A("kusto:connection","Unable to find primaryTable");return{ingestedAt:d(t),table:t}}async _queryChanges(e=null){let t=e??"1970-01-01T00:00:00Z",r=f(await this._executeQuery(`${(0,o.xw)(this._config.table)} | extend IngestedAt = ingestion_time() | where IngestedAt > todatetime('${(0,o.iD)(t)}') | order by IngestedAt asc`));if(!r)throw new i.A("kusto:connection","Unable to find primaryTable");return{ingestedAt:d(r),table:r}}async _executeQuery(e){let t=this._config.database,r=t.properties.queryServiceUri,{data:i}=await(0,n.A)(`${r}/v2/rest/query`,{responseType:"json",method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({db:t.displayName,csl:e})});return i}_handleResult(e){this._lastIngestedAt=e.ingestedAt;let t=this._createFeatures(e.table);if(null!=t){this.onMessage(t);for(let e of t)this.onFeature(e)}}_createFeatures(e){if(null==e||0===e.Rows.length)return null;let{xField:t,yField:r}=this._config.geometryEncoding,n=e.Columns.findIndex(e=>e.ColumnName===t),i=e.Columns.findIndex(e=>e.ColumnName===r);return e.Rows.map(t=>this._createFeature(e.Columns,n,i,t))}_createFeature(e,t,r,n){let{xField:i,yField:o}=this._config.geometryEncoding,a={};for(let t=0;t<e.length;t++){let r=e[t],s=n[t]??null;r.ColumnName!==o&&r.ColumnName!==i&&(a[r.ColumnName]=s)}let l=null,c=n[t],u=n[r];return null!=u&&null!=c&&(l=(0,s.Cv)({x:c,y:u},this._config.sourceSpatialReference,this._outSpatialReference)),{attributes:a,geometry:l}}}function f(e){return e.find(e=>"DataTable"===e.FrameType&&"PrimaryResult"===e.TableKind)??null}function d(e){let t=e.Columns.findIndex(e=>"IngestedAt"===e.ColumnName);if(t<0)return null;let r=null;for(let n of e.Rows){let e=n[t];"string"==typeof e&&(null==r||e>r)&&(r=e)}return r}var g=r(53966),m=r(84952),p=r(16930),y=r(65864),_=r(17676),w=r(62815);function b(e,t){if(null==e&&null==t)return null;let r={};return null!=t&&(r.geometry=t),null!=e&&(r.where=e),r}let S=class extends u{constructor(e,t){super({}),this._outSpatialReference=t,this._outstandingMessages=[],this.errorString=null;let{geometryType:r,sourceSpatialReference:n}=e;this._config=e,this._featureZScaler=(0,w.N)(r,n,this._outSpatialReference),this._open()}normalizeCtorArgs(){return{}}async _open(){await this._tryCreateWebSocket(),this.destroyed||await this._handshake()}destroy(){super.destroy(),null!=this._websocket&&(this._websocket.onopen=null,this._websocket.onclose=null,this._websocket.onerror=null,this._websocket.onmessage=null,this._websocket.close()),this._websocket=null}get connectionStatus(){if(null==this._websocket)return"disconnected";switch(this._websocket.readyState){case 0:case 1:return"connected";case 2:case 3:return"disconnected"}}sendMessageToSocket(e){null==this._websocket?this._outstandingMessages.push(e):this._websocket.send(JSON.stringify(e))}sendMessageToClient(e){this._onMessage(e)}updateCustomParameters(e){this._config.customParameters=e,null!=this._websocket&&this._websocket.close()}async _tryCreateWebSocket(e=this._config.url.path,t=1e3,r=0){try{if(this.destroyed)return;let t=(0,m.a6)(e,this._config.customParameters??{});this._websocket=await this._createWebSocket(t),this.notifyChange("connectionStatus")}catch(n){let s=t/1e3;return this._config.maxReconnectionAttempts&&r>=this._config.maxReconnectionAttempts?(g.A.getLogger(this).error(new i.A("websocket-connection","Exceeded maxReconnectionAttempts attempts. No further attempts will be made")),void this.destroy()):(g.A.getLogger(this).error(new i.A("websocket-connection",`Failed to connect. Attempting to reconnect in ${s}s`,n)),await(0,_.Pl)(t),this._tryCreateWebSocket(e,Math.min(1.5*t,1e3*this._config.maxReconnectionInterval),r+1))}}_setWebSocketJSONParseHandler(e){e.onmessage=e=>{try{let t=JSON.parse(e.data);this._onMessage(t)}catch(e){return void g.A.getLogger(this).error(new i.A("websocket-connection","Failed to parse message, invalid JSON",{error:e}))}}}_createWebSocket(e){return new Promise((t,r)=>{let n=new WebSocket(e);n.onopen=()=>{n.onopen=null,this.destroyed?(n.onclose=null,n.close()):(n.onclose=e=>this._onClose(e),n.onerror=e=>this._onError(e),this._setWebSocketJSONParseHandler(n),t(n))},n.onclose=e=>{n.onopen=n.onclose=null,r(e)}})}async _handshake(e=1e4){let t=this._websocket;if(null==t)return;let r=Promise.withResolvers(),n=t.onmessage,s=b(this._config.definitionExpression,this._config.geometryDefinition),{outFields:o}=this._config,a=setTimeout(()=>r.reject(),e),l=()=>{clearTimeout(a),r.reject()};return t.onmessage=e=>{let c=null;try{c=JSON.parse(e.data)}catch{}(!c||"object"!=typeof c)&&(g.A.getLogger(this).error(new i.A("websocket-connection","Protocol violation. Handshake failed - malformed message",e.data)),l(),this.destroy()),c.spatialReference?.wkid!==this._outSpatialReference?.wkid&&(g.A.getLogger(this).error(new i.A("websocket-connection",`Protocol violation. Handshake failed - expected wkid of ${this._outSpatialReference.wkid}`,e.data)),l(),this.destroy()),"json"!==c.format&&(g.A.getLogger(this).error(new i.A("websocket-connection","Protocol violation. Handshake failed - format is not set",e.data)),l(),this.destroy()),s&&c.filter!==s&&g.A.getLogger(this).error(new i.A("websocket-connection","Tried to set filter, but server doesn't support it")),o&&c.outFields!==o&&g.A.getLogger(this).error(new i.A("websocket-connection","Tried to set outFields, but server doesn't support it")),t.onmessage=n;for(let e of this._outstandingMessages)t.send(JSON.stringify(e));this._outstandingMessages=[],clearTimeout(a),r.resolve()},t.send(JSON.stringify({filter:s,outFields:o,format:"json",spatialReference:{wkid:this._outSpatialReference.wkid}})),r.promise}_onMessage(e){if(this.onMessage(e),"type"in e)switch(e.type){case"features":case"featureResult":for(let t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}}_onError(e){let t="Encountered an error over WebSocket connection";this._set("errorString",t),g.A.getLogger(this).error("websocket-connection",t)}_onClose(e){this._websocket=null,this.notifyChange("connectionStatus"),1e3!==e.code&&g.A.getLogger(this).error("websocket-connection",`WebSocket closed unexpectedly with error code ${e.code}`),this.destroyed||this._open()}};(0,a.Cg)([(0,c.MZ)()],S.prototype,"connectionStatus",null),(0,a.Cg)([(0,c.MZ)()],S.prototype,"errorString",void 0),S=(0,a.Cg)([(0,c.$K)("esri.layers.graphics.sources.connections.WebSocketConnection")],S);var k=r(80893),A=r(97552);const x={maxQueryDepth:5,maxRecordCountFactor:3};let v=class extends S{constructor(e,t){super({...x,...e},t),this._buddyServicesQuery=null,this._relatedFeatures=null}async _open(){let e=await this._fetchServiceDefinition(this._config.url);e.timeInfo.trackIdField||g.A.getLogger(this).warn("GeoEvent service was configured without a TrackIdField. This may result in certain functionality being disabled. The purgeOptions.maxObservations property will have no effect.");let t=this._fetchWebSocketUrl(e.streamUrls,this._outSpatialReference);this._buddyServicesQuery||=this._queryBuddyServices(),await this._buddyServicesQuery,await this._tryCreateWebSocket(t);let r=b(this._config.definitionExpression,this._config.geometryDefinition),{outFields:n}=this._config;this.destroyed||this._setFilter(r,n)}_onMessage(e){if("attributes"in e){let t;try{t=this._enrich(e),null!=this._featureZScaler&&this._featureZScaler(t.geometry)}catch(e){return void g.A.getLogger(this).error(new i.A("geoevent-connection","Failed to parse message",e))}this.onFeature(t)}else this.onMessage(e)}async _fetchServiceDefinition(e){let t={f:"json",...this._config.customParameters},r=(await(0,n.A)(e.path,{query:t,responseType:"json"})).data;return this._serviceDefinition=r,r}_fetchWebSocketUrl(e,t){let{urls:r,token:n}=e[0],i=this._inferWebSocketBaseUrl(r);return(0,m.a6)(`${i}/subscribe`,{outSR:""+t.wkid,token:n})}_inferWebSocketBaseUrl(e){if(1===e.length)return e[0];for(let t of e)if(t.includes("wss"))return t;return g.A.getLogger(this).error(new i.A("geoevent-connection","Unable to infer WebSocket url",e)),null}async _setFilter(e,t){let r=this._websocket;if(null==r||null==e&&null==t)return;let n=JSON.stringify({filter:this._serializeFilter(e,t)}),s=!1,o=Promise.withResolvers();return r.onmessage=e=>{let t=JSON.parse(e.data);t.filter&&(t.error&&(g.A.getLogger(this).error(new i.A("geoevent-connection","Failed to set service filter",t.error)),this._set("errorString",`Could not set service filter - ${t.error}`),o.reject(t.error)),this._setWebSocketJSONParseHandler(r),s=!0,o.resolve())},r.send(n),setTimeout(()=>{s||(!this.destroyed&&this._websocket===r&&g.A.getLogger(this).error(new i.A("geoevent-connection","Server timed out when setting filter")),o.reject())},1e4),o.promise}_serializeFilter(e,t){let r={};if(null==e&&null==t)return r;if(e?.geometry)try{let t=(0,y.rS)(e.geometry);if("extent"!==t.type)throw new i.A("geoevent-connection",`Expected extent but found type ${t.type}`);r.geometry=JSON.stringify(t.shiftCentralMeridian())}catch(e){g.A.getLogger(this).error(new i.A("geoevent-connection","Encountered an error when setting connection geometryDefinition",e))}return e?.where&&"1 = 1"!==e.where&&"1=1"!==e.where&&(r.where=e.where),null!=t&&(r.outFields=t.join(",")),r}_enrich(e){if(!this._relatedFeatures)return e;let t=this._serviceDefinition.relatedFeatures.joinField,r=e.attributes[t],n=this._relatedFeatures.get(r);if(!n)return g.A.getLogger(this).warn("geoevent-connection","Feature join failed. Is the join field configured correctly?",e),e;let{attributes:s,geometry:o}=n;for(let t in s)e.attributes[t]=s[t];return o&&(e.geometry=o),!e.geometry&&!e.centroid&&g.A.getLogger(this).error(new i.A("geoevent-connection","Found malformed feature - no geometry found",e)),e}async _queryBuddyServices(){try{let{relatedFeatures:e,keepLatestArchive:t}=this._serviceDefinition,r=this._queryRelatedFeatures(e),n=this._queryArchive(t);await r;let i=await n;if(!i)return;for(let e of i.features)this.onFeature(this._enrich(e))}catch(e){g.A.getLogger(this).error(new i.A("geoevent-connection","Encountered an error when querying buddy services",{error:e}))}}async _queryRelatedFeatures(e){if(!e)return;let t=await this._queryBuddy(e.featuresUrl);this._addRelatedFeatures(t)}async _queryArchive(e){if(e)return this._queryBuddy(e.featuresUrl)}async _queryBuddy(e){let t=new((await Promise.all([r.e(6361),r.e(6914),r.e(7865),r.e(5732),r.e(2869),r.e(9953),r.e(3910),r.e(564),r.e(1214),r.e(2889),r.e(6263),r.e(8247),r.e(4674),r.e(7283),r.e(8589),r.e(812),r.e(5879),r.e(9279)]).then(()=>r(18589))).default)({url:e}),{capabilities:n}=await t.load(),i=n.query.supportsMaxRecordCountFactor,s=n.query.supportsPagination,o=n.query.supportsCentroid,a=this._config.maxRecordCountFactor,l=t.capabilities.query.maxRecordCount,c=i?l*a:l,u=new A.A;if(u.outFields=this._config.outFields??["*"],u.where=this._config.definitionExpression??"1=1",u.returnGeometry=!0,u.returnExceededLimitFeatures=!0,u.outSpatialReference=p.A.fromJSON(this._outSpatialReference),o&&(u.returnCentroid=!0),i&&(u.maxRecordCountFactor=a),s)return u.num=c,t.destroy(),this._queryPages(e,u);let h=await(0,k.eW)(e,u,this._config.sourceSpatialReference);return t.destroy(),h}async _queryPages(e,t,r=[],n=0){t.start=null==t.num?null:n*t.num;let i=await(0,k.eW)(e,t,this._config.sourceSpatialReference);return i.exceededTransferLimit&&n<(this._config.maxQueryDepth??0)?(i.features.forEach(e=>r.push(e)),this._queryPages(e,t,r,n+1)):(r.forEach(e=>i.features.push(e)),i)}_addRelatedFeatures(e){let t=new Map,r=e.features,n=this._serviceDefinition.relatedFeatures.joinField;for(let e of r){let r=e.attributes[n];t.set(r,e)}this._relatedFeatures=t}};v=(0,a.Cg)([(0,c.$K)("esri.layers.graphics.sources.connections.GeoEventConnection")],v);var R=r(64108);let M=class extends u{constructor(e,t){super({}),this.connectionStatus="connected",this.errorString=null;let{geometryType:r,sourceSpatialReference:n}=e;this._featureZScaler=(0,w.N)(r,n,t)}normalizeCtorArgs(){return{}}updateCustomParameters(e){}sendMessageToSocket(e){}sendMessageToClient(e){if("type"in e)switch(e.type){case"features":case"featureResult":for(let t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}this.onMessage(e)}};function C(e,t){let r=t.toJSON();switch(e.type){case"client":return new M(e,r);case"custom":return new S(e,r);case"geoevent":return new v(e,r);case"kusto":return new h(e,r)}}(0,a.Cg)([(0,c.MZ)()],M.prototype,"connectionStatus",void 0),(0,a.Cg)([(0,c.MZ)()],M.prototype,"errorString",void 0),M=(0,a.Cg)([(0,R.$)("esri.layers.support.ClientSideConnection")],M)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5485],{48163(e,t,n){function r(){return[0,0]}function o(e){return[e[0],e[1]]}function i(e,t){return[e,t]}function l(){return i(1,1)}function a(){return i(-1,-1)}function u(){return i(1,0)}function s(){return i(0,1)}n.d(t,{fA:()=>i,o8:()=>o,vt:()=>r});const c=l(),f=a(),p=u(),h=s();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:c,UNIT_X:p,UNIT_Y:h,ZEROS:[0,0],clone:o,create:r,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let n=Math.min(2,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t},fromValues:i,negativeOnes:a,ones:l,unitX:u,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["IA",0,f,"Un",0,c])},83529(e,t,n){n.d(t,{O:()=>p,W:()=>f});var r=n(77690),o=n(29242),i=n(37585),l=n(35522);const a=(0,n(51850).vt)(),u=(0,o.vt)(),s=(0,o.vt)(),c=(0,o.vt)();function f(e,t,n){return(0,l.hZ)(a,t[0],t[1],1),(0,l.ei)(a,a,(0,r.mg)(u,n)),0===a[2]?(0,i.hZ)(e,a[0],a[1]):(0,i.hZ)(e,a[0]/a[2],a[1]/a[2])}function p(e,t,n){return h(s,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),h(c,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,r.lw)(e,(0,r.KC)(s,s),c),0!==e[8]&&(e[0]/=e[8],e[1]/=e[8],e[2]/=e[8],e[3]/=e[8],e[4]/=e[8],e[5]/=e[8],e[6]/=e[8],e[7]/=e[8],e[8]/=e[8]),e}function h(e,t,n,o,i,s,c,f,p){(0,r.hZ)(e,t,o,s,n,i,c,1,1,1),(0,l.hZ)(a,f,p,1),(0,r.KC)(u,e);let[h,m,g]=(0,l.ei)(a,a,(0,r.mg)(u,u));return(0,r.hZ)(u,h,0,0,0,m,0,0,0,g),(0,r.lw)(e,u,e)}},76369(e,t,n){n.d(t,{LF:()=>x,M9:()=>b});var r=n(49186),o=n(93637),i=n(40876),l=n(59247),a=n(27865);class u extends SyntaxError{constructor(e,t,n,r){super(e),this.expected=t,this.found=n,this.location=r,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let n=null,r=e.find(e=>e.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));let o=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,l=this.location.source+":"+i.line+":"+i.column;if(n){let e=this.location.end,r="".padEnd(i.line.toString().length," "),a=n[o.line-1],u=(o.line===e.line?e.column:a.length+1)-o.column||1;t+="\n --\x3e "+l+"\n"+r+" |\n"+i.line+" | "+a+"\n"+r+" | "+"".padEnd(o.column-1," ")+"".padEnd(u,"^")}else t+="\n at "+l}return t}static buildMessage(e,t){function n(e){return e.codePointAt(0).toString(16).toUpperCase()}let r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function o(e){return r?e.replace(r,e=>"\\u{"+n(e)+"}"):e}function i(e){return o(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}function l(e){return o(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}let a={literal:e=>'"'+i(e.text)+'"',class(e){let t=e.parts.map(e=>Array.isArray(e)?l(e[0])+"-"+l(e[1]):l(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function u(e){return a[e.type](e)}return"Expected "+function(e){let t=e.map(u);if(t.sort(),t.length>0){let e=1;for(let n=1;n<t.length;n++)t[n-1]!==t[n]&&(t[e]=t[n],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."}}function s(e){if(!e||0===e.length)return null;if("string"==typeof e){let t=c(e);return t&&0!==t.length?t:null}let t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:c(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,a.mj)(t[e].effects,t[e+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,a.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function c(e){let t;if(!e)return[];try{t=function(e,t){let n,r={},o=(t=void 0===t?{}:t).grammarSource,i={start:le},l=le,a="none",s="grad",c="turn",f=/^[ \t\n\r]/,p=/^[a-z\-]/,h=/^[0-9a-fA-F]/,m=/^[+\-]/,g=/^[0-9]/,d=ne("none"),y=ee("none",!1),v=ee(")",!1),w=ee(",",!1),P=te([" ","\t","\n","\r"],!1,!1,!1),A=ne("function"),x=ee("(",!1),b=ne("identifier"),C=te([["a","z"],"-"],!1,!1,!1),S=ne("percentage"),R=ee("%",!1),$=ne("length"),M=ee("px",!1),j=ee("cm",!1),N=ee("mm",!1),Z=ee("in",!1),E=ee("pt",!1),O=ee("pc",!1),F=ne("angle"),T=ee("deg",!1),_=ee("rad",!1),L=ee("grad",!1),k=ee("turn",!1),q=ne("number"),I=ne("color"),K=ee("#",!1),W=te([["0","9"],["a","f"],["A","F"]],!1,!1,!1),z=te(["+","-"],!1,!1,!1),J=te([["0","9"]],!1,!1,!1),U=ee(".",!1),G=ee("e",!1),V=0|t.peg$currPos,B=V,X=[{line:1,column:1}],Y=V,D=t.peg$maxFailExpected||[],H=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in i))throw Error("Can't start parsing from rule \""+t.startRule+'".');l=i[t.startRule]}function Q(){return e.substring(B,V)}function ee(e,t){return{type:"literal",text:e,ignoreCase:t}}function te(e,t,n,r){return{type:"class",parts:e,inverted:t,ignoreCase:n,unicode:r}}function ne(e){return{type:"other",description:e}}function re(t){let n,r=X[t];if(r)return r;if(t>=X.length)n=X.length-1;else for(n=t;!X[--n];);for(r=X[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return X[t]=r,r}function oe(e,t,n){let r=re(e),i=re(t);return{source:o,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:i.line,column:i.column}}}function ie(e){V<Y||(V>Y&&(Y=V,D=[]),D.push(e))}function le(){let e;return e=ae(),e===r&&(e=function(){let e,t;if(e=[],t=ue(),t!==r)for(;t!==r;)e.push(t),t=ue();else e=r;return e}()),e}function ae(){let t,n;return H++,t=V,ce(),e.substr(V,4)===a?(n=a,V+=4):(n=r,0===H&&ie(y)),n===r?(V=t,t=r):(ce(),B=t,t=[]),H--,t===r&&0===H&&ie(d),t}function ue(){let t,n,o,i;return t=V,ce(),n=function(){let t,n,o;return H++,t=V,n=fe(),n===r?(V=t,t=r):(40===e.charCodeAt(V)?(o="(",V++):(o=r,0===H&&ie(x)),o===r?(V=t,t=r):(B=t,t=n)),H--,t===r&&(n=r,0===H&&ie(A)),t}(),n===r?(V=t,t=r):(ce(),o=function(){let t,n,o,i,l,a,u,s;if(t=V,n=se(),n!==r){for(o=[],i=V,l=ce(),44===e.charCodeAt(V)?(a=",",V++):(a=r,0===H&&ie(w)),a===r&&(a=null),u=ce(),s=se(),s===r?(V=i,i=r):(l=[l,a,u,s],i=l);i!==r;)o.push(i),i=V,l=ce(),44===e.charCodeAt(V)?(a=",",V++):(a=r,0===H&&ie(w)),a===r&&(a=null),u=ce(),s=se(),s===r?(V=i,i=r):(l=[l,a,u,s],i=l);B=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(n,o)}else V=t,t=r;return t}(),o===r&&(o=null),ce(),41===e.charCodeAt(V)?(i=")",V++):(i=r,0===H&&ie(v)),i===r?(V=t,t=r):(ce(),B=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(n,o))),t}function se(){let e,t;return e=V,t=pe(),t===r&&(t=he(),t===r&&(t=me(),t===r&&(t=function(){let e,t;return H++,e=V,ce(),t=de(),t===r?(V=e,e=r):(B=e,e=function(e){return{value:e,unit:null}}(t)),H--,e===r&&0===H&&ie(q),e}()))),t!==r&&(B=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===r&&(e=V,t=ge(),t!==r&&(B=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function ce(){let t,n;for(H++,t=[],n=e.charAt(V),f.test(n)?V++:(n=r,0===H&&ie(P));n!==r;)t.push(n),n=e.charAt(V),f.test(n)?V++:(n=r,0===H&&ie(P));return H--,t}function fe(){let t,n,o;if(H++,t=V,n=[],o=e.charAt(V),p.test(o)?V++:(o=r,0===H&&ie(C)),o!==r)for(;o!==r;)n.push(o),o=e.charAt(V),p.test(o)?V++:(o=r,0===H&&ie(C));else n=r;return n!==r&&(B=t,n=Q()),t=n,H--,t===r&&(n=r,0===H&&ie(b)),t}function pe(){let t,n,o;return H++,t=V,ce(),n=de(),n===r?(V=t,t=r):(37===e.charCodeAt(V)?(o="%",V++):(o=r,0===H&&ie(R)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"%"}}(n))),H--,t===r&&0===H&&ie(S),t}function he(){let t,n,o;return H++,t=V,ce(),n=de(),n===r?(V=t,t=r):("px"===e.substr(V,2)?(o="px",V+=2):(o=r,0===H&&ie(M)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"px"}}(n))),t===r&&(t=V,ce(),n=de(),n===r?(V=t,t=r):("cm"===e.substr(V,2)?(o="cm",V+=2):(o=r,0===H&&ie(j)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"cm"}}(n))),t===r&&(t=V,ce(),n=de(),n===r?(V=t,t=r):("mm"===e.substr(V,2)?(o="mm",V+=2):(o=r,0===H&&ie(N)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"mm"}}(n))),t===r&&(t=V,ce(),n=de(),n===r?(V=t,t=r):("in"===e.substr(V,2)?(o="in",V+=2):(o=r,0===H&&ie(Z)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"in"}}(n))),t===r&&(t=V,ce(),n=de(),n===r?(V=t,t=r):("pt"===e.substr(V,2)?(o="pt",V+=2):(o=r,0===H&&ie(E)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"pt"}}(n))),t===r&&(t=V,ce(),n=de(),n===r?(V=t,t=r):("pc"===e.substr(V,2)?(o="pc",V+=2):(o=r,0===H&&ie(O)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"pc"}}(n)))))))),H--,t===r&&0===H&&ie($),t}function me(){let t,n,o;return H++,t=V,n=de(),n===r?(V=t,t=r):("deg"===e.substr(V,3)?(o="deg",V+=3):(o=r,0===H&&ie(T)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"deg"}}(n))),t===r&&(t=V,n=de(),n===r?(V=t,t=r):("rad"===e.substr(V,3)?(o="rad",V+=3):(o=r,0===H&&ie(_)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"rad"}}(n))),t===r&&(t=V,n=de(),n===r?(V=t,t=r):(e.substr(V,4)===s?(o=s,V+=4):(o=r,0===H&&ie(L)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"grad"}}(n))),t===r&&(t=V,n=de(),n===r?(V=t,t=r):(e.substr(V,4)===c?(o=c,V+=4):(o=r,0===H&&ie(k)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"turn"}}(n)))))),H--,t===r&&(n=r,0===H&&ie(F)),t}function ge(){let t,n,o,i;if(H++,t=V,35===e.charCodeAt(V)?(n="#",V++):(n=r,0===H&&ie(K)),n!==r){if(o=[],i=e.charAt(V),h.test(i)?V++:(i=r,0===H&&ie(W)),i!==r)for(;i!==r;)o.push(i),i=e.charAt(V),h.test(i)?V++:(i=r,0===H&&ie(W));else o=r;o===r?(V=t,t=r):(B=t,t={type:"hex",value:Q()})}else V=t,t=r;return t===r&&(t=V,n=ue(),n!==r&&(B=t,n=function(e){return{type:"function",value:e}}(n)),t=n,t===r&&(t=V,n=fe(),n!==r&&(B=t,n={type:"named",value:Q()}),t=n)),H--,t===r&&(n=r,0===H&&ie(I)),t}function de(){let t,n,o,i,l,a,u,s;for(t=V,n=e.charAt(V),m.test(n)?V++:(n=r,0===H&&ie(z)),n===r&&(n=null),o=V,i=[],l=e.charAt(V),g.test(l)?V++:(l=r,0===H&&ie(J));l!==r;)i.push(l),l=e.charAt(V),g.test(l)?V++:(l=r,0===H&&ie(J));if(46===e.charCodeAt(V)?(l=".",V++):(l=r,0===H&&ie(U)),l!==r){if(a=[],u=e.charAt(V),g.test(u)?V++:(u=r,0===H&&ie(J)),u!==r)for(;u!==r;)a.push(u),u=e.charAt(V),g.test(u)?V++:(u=r,0===H&&ie(J));else a=r;a===r?(V=o,o=r):(i=[i,l,a],o=i)}else V=o,o=r;if(o===r)if(o=[],i=e.charAt(V),g.test(i)?V++:(i=r,0===H&&ie(J)),i!==r)for(;i!==r;)o.push(i),i=e.charAt(V),g.test(i)?V++:(i=r,0===H&&ie(J));else o=r;if(o!==r){if(i=V,101===e.charCodeAt(V)?(l="e",V++):(l=r,0===H&&ie(G)),l!==r){if(a=e.charAt(V),m.test(a)?V++:(a=r,0===H&&ie(z)),a===r&&(a=null),u=[],s=e.charAt(V),g.test(s)?V++:(s=r,0===H&&ie(J)),s!==r)for(;s!==r;)u.push(s),s=e.charAt(V),g.test(s)?V++:(s=r,0===H&&ie(J));else u=r;u===r?(V=i,i=r):(l=[l,a,u],i=l)}else V=i,i=r;i===r&&(i=null),B=t,t=parseFloat(Q())}else V=t,t=r;return t}n=l();let ye=n!==r&&V===e.length;function ve(){throw n!==r&&V<e.length&&ie({type:"end"}),function(e,t,n){return new u(u.buildMessage(e,t),e,t,n)}(D,Y<e.length?function(t=V){let n=e.codePointAt(t);return void 0===n?"":String.fromCodePoint(n)}(Y):null,Y<e.length?oe(Y,Y+1):oe(Y,Y))}return t.peg$library?{peg$result:n,peg$currPos:V,peg$FAILED:r,peg$maxFailExpected:D,peg$maxFailPos:Y,peg$success:ye,peg$throw:ye?void 0:ve}:ye?n:void ve()}(e)}catch(t){throw new r.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return f(e.parameters,1),1===e.parameters.length&&(t=d(e.parameters[0])),new l.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return f(e.parameters,1),1===e.parameters.length&&(t=d(e.parameters[0])),new l.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return f(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${p(e)}`,{term:e})}(e),e.value*m[e.unit]||0}(e.parameters[0])),new l.Nd(t)}(e);case"blur":return function(e){let t=0;return f(e.parameters,1),1===e.parameters.length&&(t=y(e.parameters[0]),h(t,e.parameters[0])),new l.Fk(t)}(e);case"drop-shadow":return function(e){let t=[],n=null;for(let o of e.parameters)if("color"===o.type){if(t.length&&Object.freeze(t),n)throw new r.A("effect:type-error","Accepts only one color",{});n=v(o)}else{let e=y(o);if(Object.isFrozen(t))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&h(e,o)}if(t.length<2||t.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new l.$b(t[0],t[1],t[2]||0,n||w("black"))}(e);case"bloom":return function(e){let t=1,n=0,r=0;return f(e.parameters,3),e.parameters[0]&&(t=d(e.parameters[0])),e.parameters[1]&&(n=y(e.parameters[1]),h(n,e.parameters[1])),e.parameters[2]&&(r=d(e.parameters[2])),new l.bv(t,n,r)}(e)}}catch(t){throw t.details.filter=e,t}throw new r.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function f(e,t){if(e.length>t)throw new r.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function p(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in g)return"<length>";if(e.unit in m)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function h(e,t){if(e<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},g={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function d(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${p(e)}`,{term:e})}(e);let t=e.value;return h(t,e),"%"===e.unit?.01*t:t}function y(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=g[e.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${p(e)}`,{term:e})}(e),e.value*g[e.unit]||0}function v(e){switch(e.colorType){case"hex":return(0,i.j5)(e.value);case"named":return w(e.value);case"function":return function(e){if(f(e.parameters,4),P.test(e.name))return[d(e.parameters[0]),d(e.parameters[1]),d(e.parameters[2]),e.parameters[3]?d(e.parameters[3]):1];if(A.test(e.name))return(0,i.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${p(e)}`,{term:e})}(e),h(e.value,e),e.value}(e.parameters[0]),d(e.parameters[1]),d(e.parameters[2]),e.parameters[3]?d(e.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function w(e){if(!(0,i.V6)(e))throw new r.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,i.c4)(e)}const P=/^rgba?/i,A=/^hsla?/i;function x(e,t,n){try{return function(e){if(!e||0===e.length)return null;if(function(e){let t=e[0];return!!t&&"scale"in t}(e)){let t=[];for(let n of e)t.push({scale:n.scale,value:C(n.value)});return t}return C(e)}(e)}catch(e){n?.messages?.push(e)}return null}function b(e,t,n,r){try{let r=function(e){let t=s(e);return t?(0,a.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,o.sM)(n,r,t)}catch(e){r.messages&&r.messages.push(e)}}function C(e){if(!e?.length)return"";let t=[];for(let n of e){let e=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[S(n,"amount")];break;case"blur":e=[S(n,"radius","pt")];break;case"hue-rotate":e=[S(n,"angle","deg")];break;case"drop-shadow":e=[S(n,"xoffset","pt"),S(n,"yoffset","pt"),S(n,"blurRadius","pt"),R(n,"color")];break;case"bloom":e=[S(n,"strength"),S(n,"radius","pt"),S(n,"threshold")]}let r=`${n.type}(${e.filter(Boolean).join(" ")})`;s(r),t.push(r)}return t.join(" ")}function S(e,t,n){if(null==e[t])throw new r.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return n?e[t]+n:""+e[t]}function R(e,t){if(null==e[t])throw new r.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});let n=e[t];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},63074(e,t,n){var r=n(32198),o=n(91429),i=n(89317),l=n(76369);const a={type:"average.color-burn.color-dodge.color.darken.destination-atop.destination-in.destination-out.destination-over.difference.exclusion.hard-light.hue.invert.lighten.lighter.luminosity.minus.multiply.normal.overlay.plus.reflect.saturation.screen.soft-light.source-atop.source-in.source-out.vivid-light.xor".split("."),nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:i.K}},"portal-item":{read:!0,write:{layerContainerTypes:i.K}}}}},u={read:{reader:l.LF},write:{allowNull:!0,writer:l.M9,layerContainerTypes:i.K}},s={json:{read:!1,write:!1,origins:{"web-map":u,"portal-item":u}}};n.d(t,["LF",0,s,"dM",0,e=>{let t=e,n=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r.Cg)([(0,o.MZ)(a)],n.prototype,"blendMode",void 0),(0,r.Cg)([(0,o.MZ)(s)],n.prototype,"effect",void 0),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.BlendLayer")],n),n},"sU",0,a])},25036(e,t,n){var r=n(32198),o=n(91429);n.d(t,["j",0,e=>{let t=e,n=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){let e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);let n=this._get("effectiveScaleRange");return n&&n.minScale===e.minScale&&n.maxScale===e.maxScale?n:e}};return(0,r.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.ScaleRangeLayer")],n),n}])},56560(e,t,n){n.d(t,{A:()=>a});var r=n(32198),o=n(69540),i=n(91429),l=n(86738);let a=class extends o.Pw{constructor(e){super(e),this.sourcePoint=null,this.mapPoint=null}};(0,r.Cg)([(0,i.MZ)()],a.prototype,"sourcePoint",void 0),(0,r.Cg)([(0,i.MZ)({type:l.A})],a.prototype,"mapPoint",void 0),a=(0,r.Cg)([(0,i.$K)("esri.layers.support.ControlPoint")],a)},48237(e,t,n){n.d(t,{A:()=>R});var r=n(32198),o=n(69540),i=n(49186),l=n(25482),a=n(53966),u=n(83529),s=n(90629),c=n(91429),f=n(77690),p=n(29242),h=n(37585),m=n(48163),g=n(86738),d=n(39829),y=n(99917),v=n(16930),w=n(56560),P=n(33905),A=n(36005),x=n(43937);const b=(0,p.vt)(),C=(0,m.vt)();let S=class extends l.o{};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],S.prototype,"x",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],S.prototype,"y",void 0),S=(0,r.Cg)([(0,c.$K)("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],S);let R=class extends((0,l.T)((0,P.L)(o.Pw))){constructor(e){super(e),this.height=0,this.type="control-points",this.width=0}get controlPoints(){return this._get("controlPoints")??null}set controlPoints(e){this._set("controlPoints",e)}readControlPoints(e,t){let n=v.A.fromJSON(t.spatialReference),r=(0,p.fA)(...t.coefficients,1);return e.map(e=>((0,h.hZ)(C,e.x,e.y),(0,u.W)(C,C,r),{sourcePoint:e,mapPoint:new g.A({x:C[0],y:C[1],spatialReference:n})}))}writeControlPoints(e,t,n,r){if(null==this.transform){let e=new i.A("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:r?.layer,georeference:this});r?.messages?r.messages.push(e):a.A.getLogger(this).error(e.name,e.message)}else null!=e&&$(e[0])&&(t.controlPoints=e.map(e=>{let t=e.sourcePoint;return{x:t.x,y:t.y}}),t.spatialReference=e[0].mapPoint.spatialReference.toJSON(),t.coefficients=this.transform.slice(0,8))}get coords(){if(null==this.controlPoints)return null;let e=this._updateTransform(b);if(null==e||!$(this.controlPoints[0]))return null;let t=this.controlPoints[0].mapPoint.spatialReference;return function(e,t,n,r){let o=(0,m.fA)(0,n),i=(0,m.fA)(0,0),l=(0,m.fA)(t,0),a=(0,m.fA)(t,n);return(0,u.W)(o,o,e),(0,u.W)(i,i,e),(0,u.W)(l,l,e),(0,u.W)(a,a,e),new d.A({rings:[[o,i,l,a,o]],spatialReference:r})}(e,this.width,this.height,t)}set coords(e){if(null==this.controlPoints||!$(this.controlPoints[0]))return;let t=this.controlPoints[0].mapPoint.spatialReference;if(null==(e=this.projectOrWarn(e,t)))return;let{width:n,height:r}=this,{rings:[[o,i,l,a]]}=e,c=new w.A({sourcePoint:(0,s.tc)(0,r),mapPoint:new g.A({x:o[0],y:o[1],spatialReference:t})}),f=new w.A({sourcePoint:(0,s.tc)(0,0),mapPoint:new g.A({x:i[0],y:i[1],spatialReference:t})}),p=new w.A({sourcePoint:(0,s.tc)(n,0),mapPoint:new g.A({x:l[0],y:l[1],spatialReference:t})}),m=new w.A({sourcePoint:(0,s.tc)(n,r),mapPoint:new g.A({x:a[0],y:a[1],spatialReference:t})});$(c)&&$(f)&&$(p)&&$(m)&&(k(b,c,f,p,m),this.controlPoints=this.controlPoints.map(({sourcePoint:e})=>((0,h.hZ)(C,e.x,e.y),(0,u.W)(C,C,b),{sourcePoint:e,mapPoint:new g.A({x:C[0],y:C[1],spatialReference:t})})))}get inverseTransform(){return null==this.transform?null:(0,f.B8)((0,p.vt)(),this.transform)}get transform(){return this._updateTransform()}toMap(e){if(null==e||null==this.transform||null==this.controlPoints||!$(this.controlPoints[0]))return null;(0,h.hZ)(C,e.x,e.y);let t=this.controlPoints[0].mapPoint.spatialReference;return(0,u.W)(C,C,this.transform),new g.A({x:C[0],y:C[1],spatialReference:t})}toSource(e){if(null==e||null==this.inverseTransform||null==this.controlPoints||!$(this.controlPoints[0]))return null;let t=this.controlPoints[0].mapPoint.spatialReference;return e=e.normalize(),null==(e=(0,y.projectOrLoad)(e,t).geometry)?null:((0,h.hZ)(C,e.x,e.y),(0,u.W)(C,C,this.inverseTransform),(0,s.tc)(C[0],C[1]))}toSourceNormalized(e){let t=this.toSource(e);return null!=t&&(t.x/=this.width,t.y/=this.height),t}_updateTransform(e){let{controlPoints:t,width:n,height:r}=this;if(!(null!=t&&n>0&&r>0))return null;let[o,i,l,a]=t;if(!$(o))return null;let u=o.mapPoint.spatialReference,s=this._projectControlPoint(i,u),c=this._projectControlPoint(l,u),f=this._projectControlPoint(a,u);if(!(s.valid&&c.valid&&f.valid&&$(s.controlPoint)))return null;e??=(0,p.vt)();let m=null;return m=$(c.controlPoint)&&$(f.controlPoint)?k(e,o,s.controlPoint,c.controlPoint,f.controlPoint):$(c.controlPoint)?function(e,t,n,r){return L(M,E,t),L(j,O,n),L(N,F,r),(0,h.Cc)(Z,M,j,.5),(0,h.e$)(Z,N,Z,Math.PI),(0,h.Cc)(T,E,O,.5),(0,h.e$)(T,F,T,Math.PI),W(e,M,j,N,Z,E,O,F,T)}(e,o,s.controlPoint,c.controlPoint):function(e,t,n){return L(M,E,t),L(j,O,n),(0,h.e$)(N,j,M,_),(0,h.e$)(Z,M,j,_),(0,h.e$)(F,O,E,-_),(0,h.e$)(T,E,O,-_),W(e,M,j,N,Z,E,O,F,T)}(e,o,s.controlPoint),m.every(e=>0===e)?null:m}_projectControlPoint(e,t){if(!$(e))return{valid:!0,controlPoint:e};let{sourcePoint:n,mapPoint:r}=e,{geometry:o,pending:i}=(0,y.projectOrLoad)(r,t);return i?{valid:!1,controlPoint:null}:i||o?{valid:!0,controlPoint:new w.A({sourcePoint:n,mapPoint:o})}:(a.A.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:e,sourceSpatialReference:r.spatialReference,targetSpatialReference:t}),{valid:!1,controlPoint:null})}};function $(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(0,r.Cg)([(0,c.MZ)({type:[w.A],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[S],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:v.A,isRequired:!0}}}}})],R.prototype,"controlPoints",null),(0,r.Cg)([(0,A.w)("controlPoints")],R.prototype,"readControlPoints",null),(0,r.Cg)([(0,x.K)("controlPoints")],R.prototype,"writeControlPoints",null),(0,r.Cg)([(0,c.MZ)({clonable:!1})],R.prototype,"coords",null),(0,r.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],R.prototype,"height",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"inverseTransform",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"transform",null),(0,r.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],R.prototype,"width",void 0),R=(0,r.Cg)([(0,c.$K)("esri.layers.support.ControlPointsGeoreference")],R);const M=(0,m.vt)(),j=(0,m.vt)(),N=(0,m.vt)(),Z=(0,m.vt)(),E=(0,m.vt)(),O=(0,m.vt)(),F=(0,m.vt)(),T=(0,m.vt)(),_=Math.PI/2;function L(e,t,n){(0,h.hZ)(e,n.sourcePoint.x,n.sourcePoint.y),(0,h.hZ)(t,n.mapPoint.x,n.mapPoint.y)}function k(e,t,n,r,o){return L(M,E,t),L(j,O,n),L(N,F,r),L(Z,T,o),W(e,M,j,N,Z,E,O,F,T)}const q=Array(8).fill(0),I=Array(8).fill(0);function K(e,t,n,r,o){return e[0]=t[0],e[1]=t[1],e[2]=n[0],e[3]=n[1],e[4]=r[0],e[5]=r[1],e[6]=o[0],e[7]=o[1],e}function W(e,t,n,r,o,i,l,a,s){return(0,u.O)(e,K(q,t,n,r,o),K(I,i,l,a,s))}},33905(e,t,n){var r=n(53966),o=n(99917);n.d(t,["L",0,e=>{let t=e;return class extends t{projectOrWarn(e,t){if(null==e)return e;let{geometry:n,pending:i}=(0,o.projectOrLoad)(e,t);return i?null:i||n?n:(r.A.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:e,sourceSpatialReference:e.spatialReference,targetSpatialReference:t}),null)}}}])}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5485],{48163(e,t,n){function r(){return[0,0]}function o(e){return[e[0],e[1]]}function i(e,t){return[e,t]}function l(){return i(1,1)}function a(){return i(-1,-1)}function u(){return i(1,0)}function s(){return i(0,1)}n.d(t,{fA:()=>i,o8:()=>o,vt:()=>r});const c=l(),f=a(),p=u(),h=s();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:c,UNIT_X:p,UNIT_Y:h,ZEROS:[0,0],clone:o,create:r,freeze:function(e,t){return[e,t]},fromArray:function(e,t=[0,0]){let n=Math.min(2,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t},fromValues:i,negativeOnes:a,ones:l,unitX:u,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(t,["IA",0,f,"Un",0,c])},83529(e,t,n){n.d(t,{O:()=>p,W:()=>f});var r=n(77690),o=n(29242),i=n(37585),l=n(35522);const a=(0,n(51850).vt)(),u=(0,o.vt)(),s=(0,o.vt)(),c=(0,o.vt)();function f(e,t,n){return(0,l.hZ)(a,t[0],t[1],1),(0,l.ei)(a,a,(0,r.mg)(u,n)),0===a[2]?(0,i.hZ)(e,a[0],a[1]):(0,i.hZ)(e,a[0]/a[2],a[1]/a[2])}function p(e,t,n){return h(s,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]),h(c,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,r.lw)(e,(0,r.KC)(s,s),c),0!==e[8]&&(e[0]/=e[8],e[1]/=e[8],e[2]/=e[8],e[3]/=e[8],e[4]/=e[8],e[5]/=e[8],e[6]/=e[8],e[7]/=e[8],e[8]/=e[8]),e}function h(e,t,n,o,i,s,c,f,p){(0,r.hZ)(e,t,o,s,n,i,c,1,1,1),(0,l.hZ)(a,f,p,1),(0,r.KC)(u,e);let[h,m,g]=(0,l.ei)(a,a,(0,r.mg)(u,u));return(0,r.hZ)(u,h,0,0,0,m,0,0,0,g),(0,r.lw)(e,u,e)}},76369(e,t,n){n.d(t,{LF:()=>x,M9:()=>b});var r=n(49186),o=n(93637),i=n(40876),l=n(59247),a=n(27865);class u extends SyntaxError{constructor(e,t,n,r){super(e),this.expected=t,this.found=n,this.location=r,this.name="SyntaxError"}format(e){let t="Error: "+this.message;if(this.location){let n=null,r=e.find(e=>e.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));let o=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,l=this.location.source+":"+i.line+":"+i.column;if(n){let e=this.location.end,r="".padEnd(i.line.toString().length," "),a=n[o.line-1],u=(o.line===e.line?e.column:a.length+1)-o.column||1;t+="\n --\x3e "+l+"\n"+r+" |\n"+i.line+" | "+a+"\n"+r+" | "+"".padEnd(o.column-1," ")+"".padEnd(u,"^")}else t+="\n at "+l}return t}static buildMessage(e,t){function n(e){return e.codePointAt(0).toString(16).toUpperCase()}let r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function o(e){return r?e.replace(r,e=>"\\u{"+n(e)+"}"):e}function i(e){return o(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}function l(e){return o(e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e)))}let a={literal:e=>'"'+i(e.text)+'"',class(e){let t=e.parts.map(e=>Array.isArray(e)?l(e[0])+"-"+l(e[1]):l(e));return"["+(e.inverted?"^":"")+t.join("")+"]"+(e.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:e=>e.description};function u(e){return a[e.type](e)}return"Expected "+function(e){let t=e.map(u);if(t.sort(),t.length>0){let e=1;for(let n=1;n<t.length;n++)t[n-1]!==t[n]&&(t[e]=t[n],e++);t.length=e}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+function(e){return e?'"'+i(e)+'"':"end of input"}(t)+" found."}}function s(e){if(!e||0===e.length)return null;if("string"==typeof e){let t=c(e);return t&&0!==t.length?t:null}let t=e.map(e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:c(e.value)}});t.sort((e,t)=>t.effects.length-e.effects.length);for(let e=0;e<t.length-1;e++){if(!(0,a.mj)(t[e].effects,t[e+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,a.O9)(t[e].effects,t[e+1].effects)}return t.sort((e,t)=>t.scale-e.scale),t}function c(e){let t;if(!e)return[];try{t=function(e,t){let n,r={},o=(t=void 0===t?{}:t).grammarSource,i={start:le},l=le,a="none",s="grad",c="turn",f=/^[ \t\n\r]/,p=/^[a-z\-]/,h=/^[0-9a-fA-F]/,m=/^[+\-]/,g=/^[0-9]/,d=ne("none"),y=ee("none",!1),v=ee(")",!1),w=ee(",",!1),P=te([" ","\t","\n","\r"],!1,!1,!1),A=ne("function"),x=ee("(",!1),b=ne("identifier"),C=te([["a","z"],"-"],!1,!1,!1),R=ne("percentage"),$=ee("%",!1),S=ne("length"),M=ee("px",!1),j=ee("cm",!1),N=ee("mm",!1),Z=ee("in",!1),E=ee("pt",!1),O=ee("pc",!1),F=ne("angle"),T=ee("deg",!1),_=ee("rad",!1),L=ee("grad",!1),k=ee("turn",!1),q=ne("number"),I=ne("color"),K=ee("#",!1),W=te([["0","9"],["a","f"],["A","F"]],!1,!1,!1),z=te(["+","-"],!1,!1,!1),J=te([["0","9"]],!1,!1,!1),U=ee(".",!1),G=ee("e",!1),V=0|t.peg$currPos,B=V,X=[{line:1,column:1}],Y=V,D=t.peg$maxFailExpected||[],H=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in i))throw Error("Can't start parsing from rule \""+t.startRule+'".');l=i[t.startRule]}function Q(){return e.substring(B,V)}function ee(e,t){return{type:"literal",text:e,ignoreCase:t}}function te(e,t,n,r){return{type:"class",parts:e,inverted:t,ignoreCase:n,unicode:r}}function ne(e){return{type:"other",description:e}}function re(t){let n,r=X[t];if(r)return r;if(t>=X.length)n=X.length-1;else for(n=t;!X[--n];);for(r=X[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return X[t]=r,r}function oe(e,t,n){let r=re(e),i=re(t);return{source:o,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:i.line,column:i.column}}}function ie(e){V<Y||(V>Y&&(Y=V,D=[]),D.push(e))}function le(){let e;return e=ae(),e===r&&(e=function(){let e,t;if(e=[],t=ue(),t!==r)for(;t!==r;)e.push(t),t=ue();else e=r;return e}()),e}function ae(){let t,n;return H++,t=V,ce(),e.substr(V,4)===a?(n=a,V+=4):(n=r,0===H&&ie(y)),n===r?(V=t,t=r):(ce(),B=t,t=[]),H--,t===r&&0===H&&ie(d),t}function ue(){let t,n,o,i;return t=V,ce(),n=function(){let t,n,o;return H++,t=V,n=fe(),n===r?(V=t,t=r):(40===e.charCodeAt(V)?(o="(",V++):(o=r,0===H&&ie(x)),o===r?(V=t,t=r):(B=t,t=n)),H--,t===r&&(n=r,0===H&&ie(A)),t}(),n===r?(V=t,t=r):(ce(),o=function(){let t,n,o,i,l,a,u,s;if(t=V,n=se(),n!==r){for(o=[],i=V,l=ce(),44===e.charCodeAt(V)?(a=",",V++):(a=r,0===H&&ie(w)),a===r&&(a=null),u=ce(),s=se(),s===r?(V=i,i=r):(l=[l,a,u,s],i=l);i!==r;)o.push(i),i=V,l=ce(),44===e.charCodeAt(V)?(a=",",V++):(a=r,0===H&&ie(w)),a===r&&(a=null),u=ce(),s=se(),s===r?(V=i,i=r):(l=[l,a,u,s],i=l);B=t,t=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map(function(e){return e[3]})}(t))}(e,t):[e]}(n,o)}else V=t,t=r;return t}(),o===r&&(o=null),ce(),41===e.charCodeAt(V)?(i=")",V++):(i=r,0===H&&ie(v)),i===r?(V=t,t=r):(ce(),B=t,t=function(e,t){return{type:"function",name:e,parameters:t||[]}}(n,o))),t}function se(){let e,t;return e=V,t=pe(),t===r&&(t=he(),t===r&&(t=me(),t===r&&(t=function(){let e,t;return H++,e=V,ce(),t=de(),t===r?(V=e,e=r):(B=e,e=function(e){return{value:e,unit:null}}(t)),H--,e===r&&0===H&&ie(q),e}()))),t!==r&&(B=e,t=function(e){return{type:"quantity",value:e.value,unit:e.unit}}(t)),e=t,e===r&&(e=V,t=ge(),t!==r&&(B=e,t=function(e){return{type:"color",colorType:e.type,value:e.value}}(t)),e=t),e}function ce(){let t,n;for(H++,t=[],n=e.charAt(V),f.test(n)?V++:(n=r,0===H&&ie(P));n!==r;)t.push(n),n=e.charAt(V),f.test(n)?V++:(n=r,0===H&&ie(P));return H--,t}function fe(){let t,n,o;if(H++,t=V,n=[],o=e.charAt(V),p.test(o)?V++:(o=r,0===H&&ie(C)),o!==r)for(;o!==r;)n.push(o),o=e.charAt(V),p.test(o)?V++:(o=r,0===H&&ie(C));else n=r;return n!==r&&(B=t,n=Q()),t=n,H--,t===r&&(n=r,0===H&&ie(b)),t}function pe(){let t,n,o;return H++,t=V,ce(),n=de(),n===r?(V=t,t=r):(37===e.charCodeAt(V)?(o="%",V++):(o=r,0===H&&ie($)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"%"}}(n))),H--,t===r&&0===H&&ie(R),t}function he(){let t,n,o;return H++,t=V,ce(),n=de(),n===r?(V=t,t=r):("px"===e.substr(V,2)?(o="px",V+=2):(o=r,0===H&&ie(M)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"px"}}(n))),t===r&&(t=V,ce(),n=de(),n===r?(V=t,t=r):("cm"===e.substr(V,2)?(o="cm",V+=2):(o=r,0===H&&ie(j)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"cm"}}(n))),t===r&&(t=V,ce(),n=de(),n===r?(V=t,t=r):("mm"===e.substr(V,2)?(o="mm",V+=2):(o=r,0===H&&ie(N)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"mm"}}(n))),t===r&&(t=V,ce(),n=de(),n===r?(V=t,t=r):("in"===e.substr(V,2)?(o="in",V+=2):(o=r,0===H&&ie(Z)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"in"}}(n))),t===r&&(t=V,ce(),n=de(),n===r?(V=t,t=r):("pt"===e.substr(V,2)?(o="pt",V+=2):(o=r,0===H&&ie(E)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"pt"}}(n))),t===r&&(t=V,ce(),n=de(),n===r?(V=t,t=r):("pc"===e.substr(V,2)?(o="pc",V+=2):(o=r,0===H&&ie(O)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"pc"}}(n)))))))),H--,t===r&&0===H&&ie(S),t}function me(){let t,n,o;return H++,t=V,n=de(),n===r?(V=t,t=r):("deg"===e.substr(V,3)?(o="deg",V+=3):(o=r,0===H&&ie(T)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"deg"}}(n))),t===r&&(t=V,n=de(),n===r?(V=t,t=r):("rad"===e.substr(V,3)?(o="rad",V+=3):(o=r,0===H&&ie(_)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"rad"}}(n))),t===r&&(t=V,n=de(),n===r?(V=t,t=r):(e.substr(V,4)===s?(o=s,V+=4):(o=r,0===H&&ie(L)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"grad"}}(n))),t===r&&(t=V,n=de(),n===r?(V=t,t=r):(e.substr(V,4)===c?(o=c,V+=4):(o=r,0===H&&ie(k)),o===r?(V=t,t=r):(B=t,t=function(e){return{value:e,unit:"turn"}}(n)))))),H--,t===r&&(n=r,0===H&&ie(F)),t}function ge(){let t,n,o,i;if(H++,t=V,35===e.charCodeAt(V)?(n="#",V++):(n=r,0===H&&ie(K)),n!==r){if(o=[],i=e.charAt(V),h.test(i)?V++:(i=r,0===H&&ie(W)),i!==r)for(;i!==r;)o.push(i),i=e.charAt(V),h.test(i)?V++:(i=r,0===H&&ie(W));else o=r;o===r?(V=t,t=r):(B=t,t={type:"hex",value:Q()})}else V=t,t=r;return t===r&&(t=V,n=ue(),n!==r&&(B=t,n=function(e){return{type:"function",value:e}}(n)),t=n,t===r&&(t=V,n=fe(),n!==r&&(B=t,n={type:"named",value:Q()}),t=n)),H--,t===r&&(n=r,0===H&&ie(I)),t}function de(){let t,n,o,i,l,a,u,s;for(t=V,n=e.charAt(V),m.test(n)?V++:(n=r,0===H&&ie(z)),n===r&&(n=null),o=V,i=[],l=e.charAt(V),g.test(l)?V++:(l=r,0===H&&ie(J));l!==r;)i.push(l),l=e.charAt(V),g.test(l)?V++:(l=r,0===H&&ie(J));if(46===e.charCodeAt(V)?(l=".",V++):(l=r,0===H&&ie(U)),l!==r){if(a=[],u=e.charAt(V),g.test(u)?V++:(u=r,0===H&&ie(J)),u!==r)for(;u!==r;)a.push(u),u=e.charAt(V),g.test(u)?V++:(u=r,0===H&&ie(J));else a=r;a===r?(V=o,o=r):(i=[i,l,a],o=i)}else V=o,o=r;if(o===r)if(o=[],i=e.charAt(V),g.test(i)?V++:(i=r,0===H&&ie(J)),i!==r)for(;i!==r;)o.push(i),i=e.charAt(V),g.test(i)?V++:(i=r,0===H&&ie(J));else o=r;if(o!==r){if(i=V,101===e.charCodeAt(V)?(l="e",V++):(l=r,0===H&&ie(G)),l!==r){if(a=e.charAt(V),m.test(a)?V++:(a=r,0===H&&ie(z)),a===r&&(a=null),u=[],s=e.charAt(V),g.test(s)?V++:(s=r,0===H&&ie(J)),s!==r)for(;s!==r;)u.push(s),s=e.charAt(V),g.test(s)?V++:(s=r,0===H&&ie(J));else u=r;u===r?(V=i,i=r):(l=[l,a,u],i=l)}else V=i,i=r;i===r&&(i=null),B=t,t=parseFloat(Q())}else V=t,t=r;return t}n=l();let ye=n!==r&&V===e.length;function ve(){throw n!==r&&V<e.length&&ie({type:"end"}),function(e,t,n){return new u(u.buildMessage(e,t),e,t,n)}(D,Y<e.length?function(t=V){let n=e.codePointAt(t);return void 0===n?"":String.fromCodePoint(n)}(Y):null,Y<e.length?oe(Y,Y+1):oe(Y,Y))}return t.peg$library?{peg$result:n,peg$currPos:V,peg$FAILED:r,peg$maxFailExpected:D,peg$maxFailPos:Y,peg$success:ye,peg$throw:ye?void 0:ve}:ye?n:void ve()}(e)}catch(t){throw new r.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map(e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return f(e.parameters,1),1===e.parameters.length&&(t=d(e.parameters[0])),new l.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return f(e.parameters,1),1===e.parameters.length&&(t=d(e.parameters[0])),new l.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return f(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${p(e)}`,{term:e})}(e),e.value*m[e.unit]||0}(e.parameters[0])),new l.Nd(t)}(e);case"blur":return function(e){let t=0;return f(e.parameters,1),1===e.parameters.length&&(t=y(e.parameters[0]),h(t,e.parameters[0])),new l.Fk(t)}(e);case"drop-shadow":return function(e){let t=[],n=null;for(let o of e.parameters)if("color"===o.type){if(t.length&&Object.freeze(t),n)throw new r.A("effect:type-error","Accepts only one color",{});n=v(o)}else{let e=y(o);if(Object.isFrozen(t))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&h(e,o)}if(t.length<2||t.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new l.$b(t[0],t[1],t[2]||0,n||w("black"))}(e);case"bloom":return function(e){let t=1,n=0,r=0;return f(e.parameters,3),e.parameters[0]&&(t=d(e.parameters[0])),e.parameters[1]&&(n=y(e.parameters[1]),h(n,e.parameters[1])),e.parameters[2]&&(r=d(e.parameters[2])),new l.bv(t,n,r)}(e)}}catch(t){throw t.details.filter=e,t}throw new r.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e))}function f(e,t){if(e.length>t)throw new r.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function p(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in g)return"<length>";if(e.unit in m)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function h(e,t){if(e<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},g={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function d(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${p(e)}`,{term:e})}(e);let t=e.value;return h(t,e),"%"===e.unit?.01*t:t}function y(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=g[e.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${p(e)}`,{term:e})}(e),e.value*g[e.unit]||0}function v(e){switch(e.colorType){case"hex":return(0,i.j5)(e.value);case"named":return w(e.value);case"function":return function(e){if(f(e.parameters,4),P.test(e.name))return[d(e.parameters[0]),d(e.parameters[1]),d(e.parameters[2]),e.parameters[3]?d(e.parameters[3]):1];if(A.test(e.name))return(0,i.ay)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${p(e)}`,{term:e})}(e),h(e.value,e),e.value}(e.parameters[0]),d(e.parameters[1]),d(e.parameters[2]),e.parameters[3]?d(e.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function w(e){if(!(0,i.V6)(e))throw new r.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,i.c4)(e)}const P=/^rgba?/i,A=/^hsla?/i;function x(e,t,n){try{return function(e){if(!e||0===e.length)return null;if(function(e){let t=e[0];return!!t&&"scale"in t}(e)){let t=[];for(let n of e)t.push({scale:n.scale,value:C(n.value)});return t}return C(e)}(e)}catch(e){n?.messages?.push(e)}return null}function b(e,t,n,r){try{let r=function(e){let t=s(e);return t?(0,a.dw)(t)?t.map(e=>e.toJSON()):t.map(({scale:e,effects:t})=>({scale:e,value:t.map(e=>e.toJSON())})):null}(e);(0,o.sM)(n,r,t)}catch(e){r.messages&&r.messages.push(e)}}function C(e){if(!e?.length)return"";let t=[];for(let n of e){let e=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[R(n,"amount")];break;case"blur":e=[R(n,"radius","pt")];break;case"hue-rotate":e=[R(n,"angle","deg")];break;case"drop-shadow":e=[R(n,"xoffset","pt"),R(n,"yoffset","pt"),R(n,"blurRadius","pt"),$(n,"color")];break;case"bloom":e=[R(n,"strength"),R(n,"radius","pt"),R(n,"threshold")]}let r=`${n.type}(${e.filter(Boolean).join(" ")})`;s(r),t.push(r)}return t.join(" ")}function R(e,t,n){if(null==e[t])throw new r.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return n?e[t]+n:""+e[t]}function $(e,t){if(null==e[t])throw new r.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});let n=e[t];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},63074(e,t,n){var r=n(32198),o=n(91429),i=n(89317),l=n(76369);const a={type:"average.color-burn.color-dodge.color.darken.destination-atop.destination-in.destination-out.destination-over.difference.exclusion.hard-light.hue.invert.lighten.lighter.luminosity.minus.multiply.normal.overlay.plus.reflect.saturation.screen.soft-light.source-atop.source-in.source-out.vivid-light.xor".split("."),nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:i.K}},"portal-item":{read:!0,write:{layerContainerTypes:i.K}}}}},u={read:{reader:l.LF},write:{allowNull:!0,writer:l.M9,layerContainerTypes:i.K}},s={json:{read:!1,write:!1,origins:{"web-map":u,"portal-item":u}}};n.d(t,["LF",0,s,"dM",0,e=>{let t=e,n=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r.Cg)([(0,o.MZ)(a)],n.prototype,"blendMode",void 0),(0,r.Cg)([(0,o.MZ)(s)],n.prototype,"effect",void 0),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.BlendLayer")],n),n},"sU",0,a])},25036(e,t,n){var r=n(32198),o=n(91429),i=n(83960);n.d(t,["j",0,e=>{let t=e,n=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){let e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;void 0!==t?.effectiveScaleRange&&(0,i.RH)(e,t.effectiveScaleRange);let n=this._get("effectiveScaleRange");return n&&n.minScale===e.minScale&&n.maxScale===e.maxScale?n:e}};return(0,r.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,o.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,o.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.ScaleRangeLayer")],n),n}])},56560(e,t,n){n.d(t,{A:()=>a});var r=n(32198),o=n(69540),i=n(91429),l=n(86738);let a=class extends o.Pw{constructor(e){super(e),this.sourcePoint=null,this.mapPoint=null}};(0,r.Cg)([(0,i.MZ)()],a.prototype,"sourcePoint",void 0),(0,r.Cg)([(0,i.MZ)({type:l.A})],a.prototype,"mapPoint",void 0),a=(0,r.Cg)([(0,i.$K)("esri.layers.support.ControlPoint")],a)},48237(e,t,n){n.d(t,{A:()=>$});var r=n(32198),o=n(69540),i=n(49186),l=n(25482),a=n(53966),u=n(83529),s=n(90629),c=n(91429),f=n(77690),p=n(29242),h=n(37585),m=n(48163),g=n(86738),d=n(39829),y=n(99917),v=n(16930),w=n(56560),P=n(33905),A=n(36005),x=n(43937);const b=(0,p.vt)(),C=(0,m.vt)();let R=class extends l.o{};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],R.prototype,"x",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:{isRequired:!0}}})],R.prototype,"y",void 0),R=(0,r.Cg)([(0,c.$K)("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],R);let $=class extends((0,l.T)((0,P.L)(o.Pw))){constructor(e){super(e),this.height=0,this.type="control-points",this.width=0}get controlPoints(){return this._get("controlPoints")??null}set controlPoints(e){this._set("controlPoints",e)}readControlPoints(e,t){let n=v.A.fromJSON(t.spatialReference),r=(0,p.fA)(...t.coefficients,1);return e.map(e=>((0,h.hZ)(C,e.x,e.y),(0,u.W)(C,C,r),{sourcePoint:e,mapPoint:new g.A({x:C[0],y:C[1],spatialReference:n})}))}writeControlPoints(e,t,n,r){if(null==this.transform){let e=new i.A("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:r?.layer,georeference:this});r?.messages?r.messages.push(e):a.A.getLogger(this).error(e.name,e.message)}else null!=e&&S(e[0])&&(t.controlPoints=e.map(e=>{let t=e.sourcePoint;return{x:t.x,y:t.y}}),t.spatialReference=e[0].mapPoint.spatialReference.toJSON(),t.coefficients=this.transform.slice(0,8))}get coords(){if(null==this.controlPoints)return null;let e=this._updateTransform(b);if(null==e||!S(this.controlPoints[0]))return null;let t=this.controlPoints[0].mapPoint.spatialReference;return function(e,t,n,r){let o=(0,m.fA)(0,n),i=(0,m.fA)(0,0),l=(0,m.fA)(t,0),a=(0,m.fA)(t,n);return(0,u.W)(o,o,e),(0,u.W)(i,i,e),(0,u.W)(l,l,e),(0,u.W)(a,a,e),new d.A({rings:[[o,i,l,a,o]],spatialReference:r})}(e,this.width,this.height,t)}set coords(e){if(null==this.controlPoints||!S(this.controlPoints[0]))return;let t=this.controlPoints[0].mapPoint.spatialReference;if(null==(e=this.projectOrWarn(e,t)))return;let{width:n,height:r}=this,{rings:[[o,i,l,a]]}=e,c=new w.A({sourcePoint:(0,s.tc)(0,r),mapPoint:new g.A({x:o[0],y:o[1],spatialReference:t})}),f=new w.A({sourcePoint:(0,s.tc)(0,0),mapPoint:new g.A({x:i[0],y:i[1],spatialReference:t})}),p=new w.A({sourcePoint:(0,s.tc)(n,0),mapPoint:new g.A({x:l[0],y:l[1],spatialReference:t})}),m=new w.A({sourcePoint:(0,s.tc)(n,r),mapPoint:new g.A({x:a[0],y:a[1],spatialReference:t})});S(c)&&S(f)&&S(p)&&S(m)&&(k(b,c,f,p,m),this.controlPoints=this.controlPoints.map(({sourcePoint:e})=>((0,h.hZ)(C,e.x,e.y),(0,u.W)(C,C,b),{sourcePoint:e,mapPoint:new g.A({x:C[0],y:C[1],spatialReference:t})})))}get inverseTransform(){return null==this.transform?null:(0,f.B8)((0,p.vt)(),this.transform)}get transform(){return this._updateTransform()}toMap(e){if(null==e||null==this.transform||null==this.controlPoints||!S(this.controlPoints[0]))return null;(0,h.hZ)(C,e.x,e.y);let t=this.controlPoints[0].mapPoint.spatialReference;return(0,u.W)(C,C,this.transform),new g.A({x:C[0],y:C[1],spatialReference:t})}toSource(e){if(null==e||null==this.inverseTransform||null==this.controlPoints||!S(this.controlPoints[0]))return null;let t=this.controlPoints[0].mapPoint.spatialReference;return e=e.normalize(),null==(e=(0,y.projectOrLoad)(e,t).geometry)?null:((0,h.hZ)(C,e.x,e.y),(0,u.W)(C,C,this.inverseTransform),(0,s.tc)(C[0],C[1]))}toSourceNormalized(e){let t=this.toSource(e);return null!=t&&(t.x/=this.width,t.y/=this.height),t}_updateTransform(e){let{controlPoints:t,width:n,height:r}=this;if(!(null!=t&&n>0&&r>0))return null;let[o,i,l,a]=t;if(!S(o))return null;let u=o.mapPoint.spatialReference,s=this._projectControlPoint(i,u),c=this._projectControlPoint(l,u),f=this._projectControlPoint(a,u);if(!(s.valid&&c.valid&&f.valid&&S(s.controlPoint)))return null;e??=(0,p.vt)();let m=null;return m=S(c.controlPoint)&&S(f.controlPoint)?k(e,o,s.controlPoint,c.controlPoint,f.controlPoint):S(c.controlPoint)?function(e,t,n,r){return L(M,E,t),L(j,O,n),L(N,F,r),(0,h.Cc)(Z,M,j,.5),(0,h.e$)(Z,N,Z,Math.PI),(0,h.Cc)(T,E,O,.5),(0,h.e$)(T,F,T,Math.PI),W(e,M,j,N,Z,E,O,F,T)}(e,o,s.controlPoint,c.controlPoint):function(e,t,n){return L(M,E,t),L(j,O,n),(0,h.e$)(N,j,M,_),(0,h.e$)(Z,M,j,_),(0,h.e$)(F,O,E,-_),(0,h.e$)(T,E,O,-_),W(e,M,j,N,Z,E,O,F,T)}(e,o,s.controlPoint),m.every(e=>0===e)?null:m}_projectControlPoint(e,t){if(!S(e))return{valid:!0,controlPoint:e};let{sourcePoint:n,mapPoint:r}=e,{geometry:o,pending:i}=(0,y.projectOrLoad)(r,t);return i?{valid:!1,controlPoint:null}:i||o?{valid:!0,controlPoint:new w.A({sourcePoint:n,mapPoint:o})}:(a.A.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:e,sourceSpatialReference:r.spatialReference,targetSpatialReference:t}),{valid:!1,controlPoint:null})}};function S(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(0,r.Cg)([(0,c.MZ)({type:[w.A],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[R],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:v.A,isRequired:!0}}}}})],$.prototype,"controlPoints",null),(0,r.Cg)([(0,A.w)("controlPoints")],$.prototype,"readControlPoints",null),(0,r.Cg)([(0,x.K)("controlPoints")],$.prototype,"writeControlPoints",null),(0,r.Cg)([(0,c.MZ)({clonable:!1})],$.prototype,"coords",null),(0,r.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],$.prototype,"height",void 0),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],$.prototype,"inverseTransform",null),(0,r.Cg)([(0,c.MZ)({readOnly:!0})],$.prototype,"transform",null),(0,r.Cg)([(0,c.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],$.prototype,"width",void 0),$=(0,r.Cg)([(0,c.$K)("esri.layers.support.ControlPointsGeoreference")],$);const M=(0,m.vt)(),j=(0,m.vt)(),N=(0,m.vt)(),Z=(0,m.vt)(),E=(0,m.vt)(),O=(0,m.vt)(),F=(0,m.vt)(),T=(0,m.vt)(),_=Math.PI/2;function L(e,t,n){(0,h.hZ)(e,n.sourcePoint.x,n.sourcePoint.y),(0,h.hZ)(t,n.mapPoint.x,n.mapPoint.y)}function k(e,t,n,r,o){return L(M,E,t),L(j,O,n),L(N,F,r),L(Z,T,o),W(e,M,j,N,Z,E,O,F,T)}const q=Array(8).fill(0),I=Array(8).fill(0);function K(e,t,n,r,o){return e[0]=t[0],e[1]=t[1],e[2]=n[0],e[3]=n[1],e[4]=r[0],e[5]=r[1],e[6]=o[0],e[7]=o[1],e}function W(e,t,n,r,o,i,l,a,s){return(0,u.O)(e,K(q,t,n,r,o),K(I,i,l,a,s))}},33905(e,t,n){var r=n(53966),o=n(99917);n.d(t,["L",0,e=>{let t=e;return class extends t{projectOrWarn(e,t){if(null==e)return e;let{geometry:n,pending:i}=(0,o.projectOrLoad)(e,t);return i?null:i||n?n:(r.A.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:e,sourceSpatialReference:e.spatialReference,targetSpatialReference:t}),null)}}}])}}]);
|