@arcgis/core 5.2.0-next.155 → 5.2.0-next.156

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{d994bcf0a65d1c07160f.js → 0320cbd825f9a4222042.js} +1 -1
  3. package/assets/esri/core/workers/chunks/0590857215c547e63b51.js +1 -0
  4. package/assets/esri/core/workers/chunks/08fe248e412bb170210d.js +1 -0
  5. package/assets/esri/core/workers/chunks/0cb50bc2b2125c5fedf2.js +1 -0
  6. package/assets/esri/core/workers/chunks/1201b8c5852830836eac.js +1 -0
  7. package/assets/esri/core/workers/chunks/129e04d24ced77c9bb6d.js +1 -0
  8. package/assets/esri/core/workers/chunks/15e1117a706a98b17ad5.js +1 -0
  9. package/assets/esri/core/workers/chunks/164e74d586297946a717.js +1 -0
  10. package/assets/esri/core/workers/chunks/168a523bdc3653081f8a.js +1 -0
  11. package/assets/esri/core/workers/chunks/{6f4e6022a52de0c54aab.js → 172cfeb5f415e4662432.js} +1 -1
  12. package/assets/esri/core/workers/chunks/1aa4f5394a596e544aeb.js +1 -0
  13. package/assets/esri/core/workers/chunks/22b01fe31bbf0bdc48db.js +1 -0
  14. package/assets/esri/core/workers/chunks/27c2da2e779def2ee08b.js +1 -0
  15. package/assets/esri/core/workers/chunks/{481589c3eddad6e026ad.js → 369780276b2755361f7d.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{2a226b69d38c72a47a08.js → 3914d96147642a9d4b01.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{731018c0deffc41ffc97.js → 3e3e076fa5e8d5d5f33f.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{96b6ea199ad949fef17c.js → 43cf862577bf37344ff4.js} +1 -1
  19. package/assets/esri/core/workers/chunks/4932773663469919d10a.js +1 -0
  20. package/assets/esri/core/workers/chunks/4996869b9cbd8c8ddcfa.js +1 -0
  21. package/assets/esri/core/workers/chunks/4c389472b8cdb0c55154.js +1 -0
  22. package/assets/esri/core/workers/chunks/4e4f747de424941a0bfa.js +1 -0
  23. package/assets/esri/core/workers/chunks/{eb815148ae65388dd733.js → 544070198d2ca556103a.js} +1 -1
  24. package/assets/esri/core/workers/chunks/5736feefa261589b6273.js +1 -0
  25. package/assets/esri/core/workers/chunks/{aeaaff7a4b1a99540f52.js → 5cb26bbaa08114aec5ce.js} +1 -1
  26. package/assets/esri/core/workers/chunks/6f73e41e14817acfaead.js +1 -0
  27. package/assets/esri/core/workers/chunks/{320e5942a098dd104366.js → 74137ffec5265628c33b.js} +1 -1
  28. package/assets/esri/core/workers/chunks/7446d0dfebf93e86c098.js +1 -0
  29. package/assets/esri/core/workers/chunks/{688f2dbf784e66082308.js → 74c866e0b66e61751861.js} +1 -1
  30. package/assets/esri/core/workers/chunks/7711ae5612f685078fc8.js +1 -0
  31. package/assets/esri/core/workers/chunks/{5116b569a8dbda4910c8.js → 784a2fba3e18286958d1.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{f6e62d2d279a328cbed7.js → 7bcedf479b07a4b4a234.js} +1 -1
  33. package/assets/esri/core/workers/chunks/842893e75696428d536f.js +1 -0
  34. package/assets/esri/core/workers/chunks/8e19629899a5becf8e19.js +1 -0
  35. package/assets/esri/core/workers/chunks/950d4578dc450467404c.js +1 -0
  36. package/assets/esri/core/workers/chunks/{68be3fb88ca61f82fb90.js → 95dbbddac6581b9d671f.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{900181f68449d8f82eeb.js → aa1ac7954e4f0fefe15b.js} +1 -1
  38. package/assets/esri/core/workers/chunks/ac24b4370dc7194a3107.js +1 -0
  39. package/assets/esri/core/workers/chunks/ace2e0a9d9013edd8624.js +1 -0
  40. package/assets/esri/core/workers/chunks/b1d5d236d5268fcbc74b.js +1 -0
  41. package/assets/esri/core/workers/chunks/{49ff0985fb307ac193ab.js → b573df59391ca41ee5a7.js} +1 -1
  42. package/assets/esri/core/workers/chunks/bac8c32665e982896ecc.js +1 -0
  43. package/assets/esri/core/workers/chunks/{f3da30d7300b92bd8bb0.js → befa32b9e7b3fbdd431e.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{6c469b43089767176ced.js → c5ed67fdf261cbb1624b.js} +1 -1
  45. package/assets/esri/core/workers/chunks/d9b1aed88b205689cec6.js +1 -0
  46. package/assets/esri/core/workers/chunks/{c598b22f78ccc57f9d6d.js → dfd2dc5cdc97ffba8926.js} +1 -1
  47. package/assets/esri/core/workers/chunks/e1b7806ab3e1967b15f0.js +1 -0
  48. package/assets/esri/core/workers/chunks/eaddffcc7004101fc230.js +1 -0
  49. package/assets/esri/core/workers/chunks/eb2652ec48faa78de3c5.js +1 -0
  50. package/assets/esri/core/workers/chunks/{c62738f84c914671b143.js → f4a7aa3cdbc0c429c359.js} +1 -1
  51. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +4 -0
  52. package/assets/esri/themes/dark/main.css +1 -1
  53. package/assets/esri/themes/light/main.css +1 -1
  54. package/assets/esri/themes/light/view.css +1 -1
  55. package/config.d.ts +2 -0
  56. package/config.js +1 -1
  57. package/core/ObjectPool.js +1 -1
  58. package/core/PooledArray.js +1 -1
  59. package/core/accessorSupport/tracking/SimpleTrackingTarget.js +1 -1
  60. package/geometry/support/buffer/BufferPool.js +1 -1
  61. package/geometry/support/coordsUtils.js +1 -1
  62. package/kernel.js +1 -1
  63. package/layers/AnnotationFeatureLayer.d.ts +2 -2
  64. package/layers/AnnotationFeatureLayer.js +1 -1
  65. package/layers/CatalogLayer.d.ts +2 -2
  66. package/layers/CatalogLayer.js +1 -1
  67. package/layers/DimensionFeatureLayer.d.ts +2 -2
  68. package/layers/DimensionFeatureLayer.js +1 -1
  69. package/layers/FeatureLayer.d.ts +2 -2
  70. package/layers/FeatureLayer.js +1 -1
  71. package/layers/SubtypeGroupLayer.d.ts +2 -2
  72. package/layers/SubtypeGroupLayer.js +1 -1
  73. package/layers/geospatialPDF/GeospatialPDFFrame.js +1 -1
  74. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +9 -9
  75. package/layers/geospatialPDF/GeospatialPDFWorkerClient.js +1 -1
  76. package/layers/geospatialPDF/LGIDictMapFrame.js +1 -1
  77. package/layers/geospatialPDF/ViewportMeasureFrame.js +1 -1
  78. package/layers/geospatialPDF/geospatialPDFParserUtils.js +1 -1
  79. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  80. package/layers/graphics/sources/parquet/FileProvider.js +1 -1
  81. package/layers/mixins/{FeatureLayerReload.d.ts → ReloadableLayer.d.ts} +5 -3
  82. package/layers/mixins/ReloadableLayer.js +2 -0
  83. package/layers/orientedImagery/core/coverageUtils.js +1 -1
  84. package/layers/raster/datasets/BaseRaster.js +1 -1
  85. package/layers/raster/datasets/GeospatialPDFRaster.js +1 -1
  86. package/layers/raster/datasets/ImageAuxRaster.js +1 -1
  87. package/layers/raster/datasets/ImageServerRaster.js +1 -1
  88. package/layers/raster/datasets/MRFRaster.js +1 -1
  89. package/layers/raster/datasets/TIFFRaster.js +1 -1
  90. package/layers/raster/datasets/WCSRaster.js +1 -1
  91. package/layers/raster/formats/ImageCanvasDecoder.js +1 -1
  92. package/layers/raster/formats/RasterCodec.js +1 -1
  93. package/layers/raster/formats/TiffDecoder.js +1 -1
  94. package/layers/raster/formats/Zlib.js +1 -1
  95. package/layers/support/RasterWorker.js +1 -1
  96. package/package.json +2 -2
  97. package/popup/FeatureModel.js +1 -1
  98. package/popup/FeaturesModel.js +1 -1
  99. package/request/process.js +1 -1
  100. package/request/types.d.ts +7 -0
  101. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueBackground.js +1 -1
  102. package/views/2d/engine/webgl/shaderGraph/techniques/vectorTiles/VTLTechniqueFill.js +1 -1
  103. package/views/3d/analysis/DirectLineMeasurementAnalysisView3D.js +1 -1
  104. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  105. package/views/3d/analysis/LineOfSight/LineOfSightPlacementController.js +1 -1
  106. package/views/3d/analysis/LineOfSight/{LineOfSightRootPlugin.js → LineOfSightPlacementRootPlugin.js} +1 -1
  107. package/views/3d/analysis/LineOfSight/LineOfSightTool.js +1 -1
  108. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  109. package/views/3d/analysis/Viewshed/ViewshedTool.js +1 -1
  110. package/views/3d/interactive/editingTools/ManipulatedObject3DGraphic.js +1 -1
  111. package/views/3d/support/MemoryController.js +1 -1
  112. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  113. package/views/3d/webgl-engine/effects/geometry/RenderOccluded.js +1 -1
  114. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  115. package/widgets/HistogramRangeSlider.d.ts +2 -2
  116. package/widgets/HistogramRangeSlider.js +1 -1
  117. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  118. package/widgets/OrientedImageryViewer.js +2 -2
  119. package/widgets/PanoramicViewer/PanoramicVideoViewerViewModel.js +1 -1
  120. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.d.ts +5 -2
  121. package/widgets/ScaleRangeSlider/ScaleRangeSliderViewModel.js +1 -1
  122. package/widgets/ScaleRangeSlider.js +1 -1
  123. package/widgets/ValuePicker/ValuePickerBaseComponent.d.ts +5 -1
  124. package/widgets/ValuePicker/ValuePickerCollection.d.ts +2 -0
  125. package/widgets/ValuePicker/ValuePickerCombobox.d.ts +7 -1
  126. package/widgets/ValuePicker/ValuePickerLabel.d.ts +7 -1
  127. package/widgets/ValuePicker/ValuePickerSlider.d.ts +2 -0
  128. package/widgets/ValuePicker/ValuePickerSliderVisibleElements.d.ts +5 -1
  129. package/widgets/ValuePicker/ValuePickerVisibleElements.d.ts +5 -1
  130. package/widgets/ValuePicker/types.d.ts +2 -0
  131. package/assets/esri/core/workers/chunks/03261b9451e293a0fac8.js +0 -1
  132. package/assets/esri/core/workers/chunks/0ad0484ffcbe4ad21bd3.js +0 -1
  133. package/assets/esri/core/workers/chunks/19743dedaa40446259ec.js +0 -1
  134. package/assets/esri/core/workers/chunks/1c65ab9ed611c322ce27.js +0 -1
  135. package/assets/esri/core/workers/chunks/1f339247b68b061ab0a4.js +0 -1
  136. package/assets/esri/core/workers/chunks/251921cd10ecfbc89451.js +0 -1
  137. package/assets/esri/core/workers/chunks/3252b1fae363bb0129a0.js +0 -1
  138. package/assets/esri/core/workers/chunks/408e81c8f1eff8a7b379.js +0 -1
  139. package/assets/esri/core/workers/chunks/50036a323c2e7f155311.js +0 -1
  140. package/assets/esri/core/workers/chunks/55dcbf296d8d0092e473.js +0 -1
  141. package/assets/esri/core/workers/chunks/59b216b60464611742d4.js +0 -1
  142. package/assets/esri/core/workers/chunks/5bfea0c55aca826de536.js +0 -1
  143. package/assets/esri/core/workers/chunks/60d3056a31d982c9cad0.js +0 -1
  144. package/assets/esri/core/workers/chunks/6558488ea96620439f34.js +0 -1
  145. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +0 -1
  146. package/assets/esri/core/workers/chunks/6b43bb78f9839ed43135.js +0 -1
  147. package/assets/esri/core/workers/chunks/6c83398cf586ecea0eb1.js +0 -1
  148. package/assets/esri/core/workers/chunks/7267b17de212207142c9.js +0 -1
  149. package/assets/esri/core/workers/chunks/88c74f3316f1fc253207.js +0 -1
  150. package/assets/esri/core/workers/chunks/912080c90b5cc2e817cf.js +0 -1
  151. package/assets/esri/core/workers/chunks/a97d85774f9a417202df.js +0 -1
  152. package/assets/esri/core/workers/chunks/aff32980d91dab07dfb7.js +0 -1
  153. package/assets/esri/core/workers/chunks/b1b4066e8d1c0c9656e5.js +0 -1
  154. package/assets/esri/core/workers/chunks/b6ba66a05030d3815dfd.js +0 -1
  155. package/assets/esri/core/workers/chunks/bbec9d2e3b75a5c59681.js +0 -1
  156. package/assets/esri/core/workers/chunks/bf69024804ac51c8f733.js +0 -1
  157. package/assets/esri/core/workers/chunks/c1254cd131a62750ff6f.js +0 -1
  158. package/assets/esri/core/workers/chunks/d938987344bce83cc660.js +0 -1
  159. package/assets/esri/core/workers/chunks/db1ab9b9c8bf5c7635d3.js +0 -1
  160. package/assets/esri/core/workers/chunks/fd9663952d5a94f3a83f.js +0 -1
  161. package/layers/mixins/FeatureLayerReload.js +0 -2
  162. /package/views/3d/analysis/LineOfSight/{lineOfSightPlacementUtils.js → placementUtils.js} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2741],{2741(e,r,t){t.d(r,{s:()=>i});var s=t(92602),n=(t(56507),t(49186)),o=t(53966),a=t(84952);function i(e){if(!s.A.assetsPath)throw o.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,a.fj)(s.A.assetsPath,e)}},97159(e,r,t){t.d(r,{a:()=>w,c:()=>f,e:()=>y,f:()=>a,i:()=>p,p:()=>m,r:()=>l,t:()=>i,w:()=>u});var s=t(70333),n=t(84952),o=t(39131);function a(e,r){let t=r?.url?.path;if(e&&t&&(e=(0,n.s2)(e,t,{preserveProtocolRelative:!0}),r.portalItem&&r.readResourcePaths)){let t=(0,n.V1)(e,r.portalItem.itemUrl);null!=t&&t.startsWith(d)&&r.readResourcePaths.push(r.portalItem.resourceFromPath(t).path)}return(e=g(e,r?.portal))&&c.test(e)?w(e):e}function i(e,r,t=0){if(null==(e=e&&c.test(e)?v(e):e))return e;!(0,n.oP)(e)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(e);let s=(0,n.s2)(e);if(r){let t=r.verifyItemRelativeUrls?.rootPath||r.url?.path;if(t){let o=g(t,r.portal),a=g(s,r.portal);s=(0,n.V1)(a,o,o),null!=s&&s!==a&&s!==e&&r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=y(s,r?.portal),(0,n.oP)(s)&&(s=(0,n.S8)(s)),r?.resources&&r?.portalItem&&!(0,n.oP)(s)&&!(0,n.DB)(s)&&0===t&&r.resources.toKeep.push({resource:r.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,r,t){return a(e,t)}function u(e,r,t,s){let n=i(e,s);void 0!==n&&(r[t]=n)}const c=/\/items\/([^/]+)\/resources\/(.*)/,d="./resources/";function p(e){return(e?.match(c)??null)?.[1]??null}const h=/http.+\/items\/[^/]+/i;function f(e){return(e&&c.test(e)?e.match(h):null)?.[0]??null}function m(e){let r=e?.match(c)??null;if(null==r)return null;let t=r[2],s=t.lastIndexOf("/");if(-1===s){let{path:e,extension:r}=(0,n.xw)(t);return{prefix:null,filename:e,extension:r}}let{path:o,extension:a}=(0,n.xw)(t.slice(s+1));return{prefix:t.slice(0,s),filename:o,extension:a}}function y(e,r){return r&&!r.isPortal&&r.urlKey&&r.customBaseUrl?(0,n.T1)(e,`${r.urlKey}.${r.customBaseUrl}`,r.portalHostname):e}function g(e,r){if(!r||r.isPortal||!r.urlKey||!r.customBaseUrl)return e;let t=`${r.urlKey}.${r.customBaseUrl}`,s=(0,n.Xq)();return(0,n.FX)(s,`${s.scheme}://${t}`)?(0,n.T1)(e,r.portalHostname,t):(0,n.T1)(e,t,r.portalHostname)}function w(e){if(!e)return e||null;let r=e;return r&&s.id&&!s.id.findCredential(r)&&(r=(0,o.qG)(r),r=r.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),r=r.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),r=r.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),r}function v(e){if(!e)return e||null;let r=e;return r=r.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),r=r.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),r=r.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),r&&s.id&&!s.id.findCredential(r)&&(r=(0,o.qG)(r)),r}const q=Object.freeze(Object.defineProperty({__proto__:null,ensureMainOnlineDomain:y,fromCDNUrl:v,fromJSON:a,itemIdFromResourceUrl:p,itemUrlFromResourceUrl:f,prefixAndFilenameFromResourceUrl:m,read:l,toCDNUrl:w,toJSON:i,write:u},Symbol.toStringTag,{value:"Module"}));t.d(r,["b",0,q])},91869(e,r,t){function s(e,r){for(let t of e.values())if(r(t))return!0;return!1}function n(e,r,t){let s=e.get(r);if(void 0!==s)return s;let n=t();return e.set(r,n),n}function o(e){let r=new Map;return t=>(r.has(t)||r.set(t,e(t)),r.get(t))}t.d(r,{Bj:()=>o,Bs:()=>s,tE:()=>n})},60694(e,r,t){t.d(r,{Fi:()=>d,HZ:()=>q,Jf:()=>v,LS:()=>b,Wo:()=>g,bd:()=>S,cr:()=>f,iz:()=>h,qg:()=>p,uV:()=>w,yG:()=>m});var s=t(84952),n=t(39131),o=t(97159);const a={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},i=Object.values(a),l=RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(?<serviceTitle>.+?)\\/(?<serverType>${i.join("|")})(?:\\/exts\\/(?<soeTitle>.+?)\\/(?<soeServerType>${i.join("|")}))?)(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),u=RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/(?<serviceTitle>[^/\\n]+)\\/(?<serverType>${i.join("|")}))(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return l.test(e)}function p(e){if(null==e)return null;let r=(0,s.An)(e),t=r?.path.match(l)||r?.path.match(u);if(!t)return null;let{path:n,serviceTitle:o,serverType:i,soeTitle:c,soeServerType:d,sublayer:p}=t.groups??{},h=c||o,m=h.indexOf("/");return{title:f(-1===m?h:h.slice(m+1)),serverType:a[(d||i).toLowerCase()],sublayer:null!=p&&""!==p?parseInt(p,10):null,url:{path:n}}}function h(e){let r=(0,s.An)(e).path.match(c);return r?{serviceUrl:r[1],sublayerId:Number(r[2])}:null}function f(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,r){let t=[];if(e){let r=p(e);null!=r&&r.title&&t.push(r.title)}if(r){let e=f(r);t.push(e)}if(2===t.length){if(t[0].toLowerCase().includes(t[1].toLowerCase()))return t[0];if(t[1].toLowerCase().includes(t[0].toLowerCase()))return t[1]}return t.join(" - ")}const y=["services","features","tiles","elevation3d","basemaps3d"];function g(e){let r=(0,s.$z)(e,!0);return!(!r||(r=r.toLowerCase(),!r.endsWith(".arcgis.com")))&&(!!y.some(e=>r.startsWith(e))||/^[a-z\d-]+\.svcs[a-z\d-]*\./.test(r))}function w(e){return(0,n.$E)(e)&&function(e){let r=(0,s.$z)(e);return!!r&&r.toLowerCase().endsWith(".arcgis.com")}(e)}function v(e,r){return e&&(0,s.UC)((0,s.zi)(e,r))}function q(e){let{url:r}=e;if(!r)return{url:r};r=(0,s.zi)(r,e.logger);let t,n=(0,s.An)(r),o=p(n.path);if(null!=o)null!=o.sublayer&&null==e.layer.layerId&&(t=o.sublayer),r=o.url.path;else if(e.nonStandardUrlAllowed){let e=h(n.path);null!=e&&(r=e.serviceUrl,t=e.sublayerId)}return{url:(0,s.UC)(r),layerId:t}}function b(e,r,t,n,a){(0,o.w)(r,n,"url",a),n.url&&null!=e.layerId&&(n.url=(0,s.fj)(n.url,t,e.layerId.toString()))}function S(e){if(!e)return!1;let r=e.toLowerCase(),t=r.includes("/services/"),s=r.includes("/mapserver/wmsserver"),n=r.includes("/imageserver/wmsserver"),o=r.includes("/wmsserver");return t&&(s||n||o)}},56507(e,r,t){t.d(r,{A:()=>d});var s=t(92602),n=t(49186),o=t(44208),a=t(17676),i=t(84952),l=t(56152),u=t(65592),c=t(50075);async function d(e,r){e instanceof URL&&(e=e.toString());let s=(0,i.DB)(e),n=(0,i.w8)(e);!n&&!s&&(e=(0,i.S8)(e));let d={url:e,requestOptions:{...r}};r?.query&&(d.requestOptions.query=r?.query instanceof URLSearchParams?(0,i.zf)(r.query.toString().replaceAll("+"," ")):r?.query);let y=e=>({data:e,getAllHeaders:f,getHeader:f,httpStatus:200,requestOptions:d.requestOptions,url:d.url}),g=(0,i.sC)(e,h.internalInterceptors);if(g){let e=await m(g,d);if(null!=e)return y(e)}let w=(0,i.sC)(e);if(w){let e=await m(w,d);if(null!=e)return y(e);!w.after&&!w.error&&(w=null)}if(e=d.url,"image"===(r=d.requestOptions).responseType&&((0,o.A)("host-webworker")||(0,o.A)("host-node")))throw(0,u.YB)("request:invalid-parameters",Error("responseType 'image' is not supported in Web Workers or Node environment"),d);if("head"===r.method){if(r.body)throw(0,u.YB)("request:invalid-parameters",Error("body parameter cannot be set when method is 'head'"),d);if(s||n)throw(0,u.YB)("request:invalid-parameters",Error("data and blob URLs are not supported for method 'head'"),d)}if(await async function(){(0,o.A)("host-webworker")&&(!p&&globalThis.invokeStaticMessage?p=await t.e(369).then(()=>t(40369)):l.i.isForeignWorker=!0)}(),p)return p.execute(e,r);let v=new AbortController,q=(0,a.u7)(r,()=>v.abort()),b={controller:v,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:w,parameters:d,redoRequest:!1,useIdentity:h.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},S=await(r.useQueue?async function(e){let r=await(0,c.nm)(e);return r?r.push(e):(0,u.zc)(e)}(b):(0,u.zc)(b)).finally(()=>q?.remove());return w?.after?.(S),S}let p;const h=s.A.request,f=()=>null;async function m(e,r){if(null!=e.responseData)return e.responseData;if(e.headers&&(r.requestOptions.headers={...r.requestOptions.headers,...e.headers}),e.query&&(r.requestOptions.query={...r.requestOptions.query,...e.query}),e.before){let t,s;try{s=await e.before(r)}catch(e){t=(0,u.YB)("request:interceptor",e,r)}if((s instanceof Error||s instanceof n.A)&&(t=(0,u.YB)("request:interceptor",s,r)),t)throw e.error&&e.error(t),t;return s}}},56152(e,r,t){t.d(r,["i",0,{corsServers:["https://server.arcgisonline.com","https://services.arcgisonline.com"],beforeFetch:void 0,afterFetch:void 0,isForeignWorker:!1}])},95117(e,r,t){t.d(r,{y:()=>n});var s=t(17676);function n(e,r,t=!1,n){return new Promise((o,a)=>{if((0,s.G4)(n))return void a((0,s.NK)());let i=()=>{c(),a(Error(`Unable to load ${r}`))},l=async()=>{let r=e;try{await r.decode()}catch{}c(),o(r)},u=()=>{if(!e)return;let r=e;c(),r.src="",a((0,s.NK)())},c=()=>{e&&(e.removeEventListener("error",i),e.removeEventListener("load",l),i=null,l=null,e=null,n?.removeEventListener("abort",u),u=null,t&&URL.revokeObjectURL(r))};n?.addEventListener("abort",u),e.addEventListener("error",i),e.addEventListener("load",l)})}},65592(e,r,t){t.d(r,{YB:()=>x,c8:()=>F,zc:()=>b});var s=t(92602),n=t(70333),o=t(49186),a=t(44208),i=t(4718),l=t(17676),u=t(84952),c=t(39131),d=t(56152),p=t(95117),h=t(60694);const f=new Map;function m(e,r){let t=r?.preferredHost;if(!t||(0,u.FX)(e,`https://${t}`,!0))return;let s=(0,h.qg)(e);if(!s||"FeatureServer"!==s.serverType||(0,c.$E)(e))return;let n=s.url.path.toLowerCase();f.has(n)||f.set(n,t)}function y(e){let r=(0,h.qg)(e)?.url.path.toLowerCase();if(!r)return e;let t=f.get(r);return t?(0,u.hf)(e,t):e}const g="FormData"in globalThis,w=new Set([499,498,403,401]),v=new Set(["COM_0056","COM_0057","SB_0008"]),q=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i];async function b(e){let r,o;await async function(e){let r=e.parameters.url,o=e.parameters.requestOptions,a=e.controller.signal,i=o.body,u=null,c=null;if(g&&"HTMLFormElement"in globalThis&&(i instanceof FormData?u=i:i instanceof HTMLFormElement&&(u=new FormData(i))),"string"==typeof i&&(c=i),e.fetchOptions={cache:o.cacheMode??(o.cacheBust?"no-cache":"default"),credentials:"same-origin",headers:o.headers||{},keepalive:o.keepAlive??!1,method:"head"===o.method?"HEAD":"GET",mode:"cors",priority:o.priority??s.A.request.priority,redirect:"follow",signal:a},(u||c)&&(e.fetchOptions.body=u||c),(d.i.isForeignWorker||"anonymous"===o.authMode)&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(r)||o.query?.token||u?.get("token")),!e.hasToken){let{getApiKey:s,getSessionToken:n}=await t.e(926).then(()=>t(926)),a=await n(r)??s(r);a&&(o.query??={},o.query.token=a,e.hasToken=!0)}if(e.useIdentity&&!e.hasToken&&!e.credential&&!e.credentialToken&&!k(r)&&!(0,l.G4)(a)){let t;"immediate"===o.authMode?(await A(),t=await n.id.getCredential(r,{signal:a})):"no-prompt"===o.authMode?(await A(),t=await n.id.getCredential(r,{prompt:!1,signal:a}).catch(()=>{})):n.id&&(t=n.id.findCredential(r)),t&&(e.credential=t,e.credentialToken=t.token,e.useSSL=!!t.ssl)}}(e);try{do{[r,o]=await S(e)}while(!await L(e,r,o))}catch(t){let s=x("request:server",t,e.parameters,r);throw s.details.ssl=e.useSSL,e.interceptor?.error?.(s),s}let a=e.parameters.url;if(o)if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!e.hasToken&&!e.credentialToken&&o.user?.username&&!(0,u.FL)(a)){let e=(0,u.$z)(a,!0);e&&s.A.request.trustedServers.push(e)}Array.isArray(o.authorizedCrossOriginNoCorsDomains)&&function(e){s.A.request.crossOriginNoCorsDomains||(s.A.request.crossOriginNoCorsDomains={});let r=s.A.request.crossOriginNoCorsDomains;for(let t of e)t=t.toLowerCase(),/^https?:\/\//.test(t)?r[(0,u.$z)(t)??""]=0:(r[(0,u.$z)("http://"+t)??""]=0,r[(0,u.$z)("https://"+t)??""]=0)}(o.authorizedCrossOriginNoCorsDomains)}else"json"===(e.parameters.requestOptions.responseType||"json")&&m(a,o);return{data:o,getAllHeaders:r?()=>Array.from(r.headers):E,getHeader:r?e=>r.headers.get(e):E,httpStatus:r?.status??200,requestOptions:e.parameters.requestOptions,ssl:e.useSSL,url:e.parameters.url}}async function S(e){let r=e.parameters.url,t=y(r),o=e.parameters.requestOptions,i=e.fetchOptions??{},p=(0,u.w8)(r)||(0,u.DB)(r),h=o.responseType??"json",f=p?0:null==o.timeout?s.A.request.timeout:o.timeout,m=!1;if(!p){e.useSSL&&(r=(0,u.lM)(r));let l={...o.query};e.credentialToken&&(l.token=e.credentialToken);let d=(0,u.x0)(l);(0,a.A)("esri-url-encodes-apostrophe")&&(d=d.replaceAll("'","%27"));let p,h=t.length+1+d.length;m="delete"===o.method||"post"===o.method||"put"===o.method||!!o.body||h>s.A.request.maxUrlLength;let f=o.useProxy||!!(0,u.zs)(r);if(f){let e=(0,u.s_)(r);p=e.path,!m&&p.length+1+h>s.A.request.maxUrlLength&&(m=!0),e.query&&(l={...e.query,...l})}if("HEAD"===i.method&&(m||f)){if(m)throw h>s.A.request.maxUrlLength?x("request:invalid-parameters",Error("URL exceeds maximum length"),e.parameters):x("request:invalid-parameters",Error("cannot use POST request when method is 'head'"),e.parameters);if(f)throw x("request:invalid-parameters",Error("cannot use proxy when method is 'head'"),e.parameters)}m?(i.method="delete"===o.method?"DELETE":"put"===o.method?"PUT":"POST",o.body?r=(0,u.a6)(r,l):(i.body=(0,u.x0)(l),i.headers||={},i.headers["Content-Type"]="application/x-www-form-urlencoded")):r=(0,u.a6)(r,l),f&&(e.useProxy=!0,r=`${p}?${r}`),l.token&&g&&i.body instanceof FormData&&!(0,c.$E)(r)&&i.body.set("token",l.token),o.hasOwnProperty("withCredentials")?e.withCredentials=o.withCredentials:(0,u.FX)(r,(0,u.Xq)())||((0,u.FL)(r)||n.id&&n.id.findServerInfo(r)?.webTierAuth)&&(e.withCredentials=!0),e.withCredentials&&(i.credentials="include",function(e){let r=s.A.request.crossOriginNoCorsDomains;if(r){let t=(0,u.$z)(e);if(t)return t=t.toLowerCase(),!(0,u.FX)(t,(0,u.Xq)())&&r[t]<Date.now()-36e5}return!1}(r)&&await async function(e){let r=(0,u.An)(e);e=r.path,"json"===r.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}let t=s.A.request.crossOriginNoCorsDomains,n=(0,u.$z)(e);t&&n&&(t[n.toLowerCase()]=Date.now())}(m?(0,u.a6)(r,l):r)),t=y(r)}let w,v,q=0,b=!1;f>0&&(q=setTimeout(()=>{b=!0,e.controller.abort()},f));try{if("native-request-init"===o.responseType)v=i,v.url=t,o.signal?v.signal=o.signal:delete v.signal;else if("image"!==o.responseType||"default"!==i.cache||i.keepalive||"GET"!==i.method||m||function(e){if(e)for(let r of Object.getOwnPropertyNames(e))if(e[r])return!0;return!1}(o.headers)||!p&&!e.useProxy&&s.A.request.proxyUrl&&!C(r)){if(await(d.i.beforeFetch?.(r,i)),w=await fetch(t,i),await(d.i.afterFetch?.(w)),e.useProxy||function(e){let r=(0,u.$z)(e);r&&!d.i.corsServers.includes(r)&&d.i.corsServers.push(r)}(r),"native"===o.responseType)v=w;else if("HEAD"!==i.method)if(w.ok){switch(h){case"array-buffer":v=await w.arrayBuffer();break;case"blob":case"image":v=await w.blob();break;default:v=await w.text()}if(q&&=(clearTimeout(q),0),"json"===h||"xml"===h||"document"===h)if(v)switch(h){case"json":v=JSON.parse(v);break;case"xml":v=O(v,"application/xml");break;case"document":v=O(v,"text/html")}else v=null;if(v){if(("array-buffer"===h||"blob"===h)&&v["blob"===h?"size":"byteLength"]<=750)try{let e=await new Response(v).json();e.error&&(v=e)}catch{}"image"===h&&v instanceof Blob&&(v=await T(URL.createObjectURL(v),e,!0))}}else{v=await w.text();try{v=JSON.parse(v)}catch{}}}else v=await T(t,e)}catch(t){if("AbortError"===t.name)throw b?Error(P):(0,l.NK)("Request canceled");if(!(!w&&t instanceof TypeError&&s.A.request.proxyUrl)||o.body||"delete"===o.method||"head"===o.method||"post"===o.method||"put"===o.method||e.useProxy||C(r))throw t;e.redoRequest=!0,(0,u.oy)({proxyUrl:s.A.request.proxyUrl,urlPrefix:(0,u.$z)(r)??""})}finally{q&&clearTimeout(q)}return[w,v]}function T(e,r,t=!1){let n=r.controller.signal,o=new Image;return o.crossOrigin=r.withCredentials?"use-credentials":"anonymous",o.alt="",o.fetchPriority=s.A.request.priority,o.src=e,(0,p.y)(o,e,t,n)}function C(e){let r=(0,u.$z)(e);return!r||r.endsWith(".arcgis.com")||d.i.corsServers.includes(r)||(0,u.FL)(r)}async function A(){n.id||await Promise.all([t.e(6361),t.e(7736),t.e(7644),t.e(9358),t.e(7715),t.e(8094)]).then(()=>t(50148))}function k(e){return q.some(r=>r.test(e))}function O(e,r){let t;try{t=(new DOMParser).parseFromString(e,r)}catch{}if(!t||t.getElementsByTagName("parsererror").length)throw SyntaxError("XML Parse error");return t}async function L(e,r,t){if(e.redoRequest)return e.redoRequest=!1,!1;let s,o=e.parameters.requestOptions;if(!r||"native"===o.responseType||"native-request-init"===o.responseType)return!0;if(t&&(t.error&&"object"==typeof t.error?s=t.error:"error"===t.status&&Array.isArray(t.messages)&&(s={...t},s[U]=t,s.details=t.messages)),!s&&!r.ok)throw s=Error(`Unable to load ${r.url} status: ${r.status}`),s[U]=t,s;let a,i,l=null;s&&(a=Number(s.code),l=s.hasOwnProperty("subcode")?Number(s.subcode):null,i=s.messageCode,i=i?.toUpperCase());let u=o.authMode;if(403===a&&(4===l||s.message?.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&w.has(a)&&!k(e.parameters.url)&&(403!==a||(!i||!v.has(i))&&(null==l||2===l&&e.credentialToken))){await A();try{let r=await n.id.getCredential(e.parameters.url,{error:x("request:server",s,e.parameters),credential:e.credential,prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=r,e.credentialToken=r.token,e.useSSL=e.useSSL||r.ssl,!1}catch(r){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;s=r}}if(s)throw s;return!0}function x(e,r,t,s){let n,a={url:t.url,requestOptions:t.requestOptions,getAllHeaders:E,getHeader:E,ssl:!1};if(r instanceof o.A)return r.details?(r.details=(0,i.o8)(r.details),r.details.url=t.url,r.details.requestOptions=t.requestOptions):r.details=a,r;if(r){let e=s&&(()=>Array.from(s.headers)),t=s&&(e=>s.headers.get(e)),o=s?.status,i=r.message;i&&(n=i),e&&t&&(a.getAllHeaders=e,a.getHeader=t),a.httpStatus=(null==r.httpCode?r.code:r.httpCode)||o||0,a.subCode=r.subcode,a.messageCode=r.messageCode,"string"==typeof r.details?(a.messages=[r.details],n??=r.details):(a.messages=r.details,n??=a.messages?.[0]),a.raw=U in r?r[U]:r}return n??="Error",(0,l.zf)(r)?(0,l.NK)():new o.A(e,n,a)}const U=Symbol(),E=()=>null,P="Timeout exceeded";function F(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===P}},50075(e,r,t){t.d(r,{_i:()=>u,nm:()=>c});var s=t(44208),n=t(91869),o=t(17676),a=t(84952),i=t(60694),l=t(65592);function u(e){let r=h(e);return!!r&&(d.get(r.origin)?.full??!1)}async function c(e){let r=h(e.parameters.url);if(!r)return null;let{QueueProcessor:a,SharedConcurrency:i}=await t.e(563).then(()=>t(563));return(0,n.tE)(d,r.origin,()=>{let e=(r.isHosted?(0,s.A)("request-queue-concurrency-hosted"):(0,s.A)("request-queue-concurrency-non-hosted"))??4;return p??=new i((0,s.A)("request-queue-concurrency-global")??50),new a({concurrency:e,sharedConcurrency:p,process:e=>{if((0,o.G4)(e.parameters.requestOptions))throw(0,l.YB)("",(0,o.NK)("Request canceled"),e.parameters);return(0,l.zc)(e)}})})}const d=new Map;let p;function h(e){let r,t=!1;return"string"==typeof e?(r=(0,a.$z)(e,!0),t=(0,i.Wo)(e)):(r=e.origin,t=(0,i.Wo)(e.toString())),null==r?null:new f(r,t)}class f{constructor(e,r){this.origin=e,this.isHosted=r}}t.d(r,["Fz",0,{useQueue:!0,priority:"auto"}])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2741],{2741(e,r,t){t.d(r,{s:()=>i});var s=t(92602),n=(t(56507),t(49186)),o=t(53966),a=t(84952);function i(e){if(!s.A.assetsPath)throw o.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,a.fj)(s.A.assetsPath,e)}},97159(e,r,t){t.d(r,{a:()=>w,c:()=>f,e:()=>y,f:()=>a,i:()=>p,p:()=>m,r:()=>l,t:()=>i,w:()=>u});var s=t(70333),n=t(84952),o=t(39131);function a(e,r){let t=r?.url?.path;if(e&&t&&(e=(0,n.s2)(e,t,{preserveProtocolRelative:!0}),r.portalItem&&r.readResourcePaths)){let t=(0,n.V1)(e,r.portalItem.itemUrl);null!=t&&t.startsWith(d)&&r.readResourcePaths.push(r.portalItem.resourceFromPath(t).path)}return(e=g(e,r?.portal))&&c.test(e)?w(e):e}function i(e,r,t=0){if(null==(e=e&&c.test(e)?v(e):e))return e;!(0,n.oP)(e)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(e);let s=(0,n.s2)(e);if(r){let t=r.verifyItemRelativeUrls?.rootPath||r.url?.path;if(t){let o=g(t,r.portal),a=g(s,r.portal);s=(0,n.V1)(a,o,o),null!=s&&s!==a&&s!==e&&r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=y(s,r?.portal),(0,n.oP)(s)&&(s=(0,n.S8)(s)),r?.resources&&r?.portalItem&&!(0,n.oP)(s)&&!(0,n.DB)(s)&&0===t&&r.resources.toKeep.push({resource:r.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,r,t){return a(e,t)}function u(e,r,t,s){let n=i(e,s);void 0!==n&&(r[t]=n)}const c=/\/items\/([^/]+)\/resources\/(.*)/,d="./resources/";function p(e){return(e?.match(c)??null)?.[1]??null}const h=/http.+\/items\/[^/]+/i;function f(e){return(e&&c.test(e)?e.match(h):null)?.[0]??null}function m(e){let r=e?.match(c)??null;if(null==r)return null;let t=r[2],s=t.lastIndexOf("/");if(-1===s){let{path:e,extension:r}=(0,n.xw)(t);return{prefix:null,filename:e,extension:r}}let{path:o,extension:a}=(0,n.xw)(t.slice(s+1));return{prefix:t.slice(0,s),filename:o,extension:a}}function y(e,r){return r&&!r.isPortal&&r.urlKey&&r.customBaseUrl?(0,n.T1)(e,`${r.urlKey}.${r.customBaseUrl}`,r.portalHostname):e}function g(e,r){if(!r||r.isPortal||!r.urlKey||!r.customBaseUrl)return e;let t=`${r.urlKey}.${r.customBaseUrl}`,s=(0,n.Xq)();return(0,n.FX)(s,`${s.scheme}://${t}`)?(0,n.T1)(e,r.portalHostname,t):(0,n.T1)(e,t,r.portalHostname)}function w(e){if(!e)return e||null;let r=e;return r&&s.id&&!s.id.findCredential(r)&&(r=(0,o.qG)(r),r=r.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),r=r.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),r=r.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),r}function v(e){if(!e)return e||null;let r=e;return r=r.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),r=r.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),r=r.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),r&&s.id&&!s.id.findCredential(r)&&(r=(0,o.qG)(r)),r}const q=Object.freeze(Object.defineProperty({__proto__:null,ensureMainOnlineDomain:y,fromCDNUrl:v,fromJSON:a,itemIdFromResourceUrl:p,itemUrlFromResourceUrl:f,prefixAndFilenameFromResourceUrl:m,read:l,toCDNUrl:w,toJSON:i,write:u},Symbol.toStringTag,{value:"Module"}));t.d(r,["b",0,q])},91869(e,r,t){function s(e,r){for(let t of e.values())if(r(t))return!0;return!1}function n(e,r,t){let s=e.get(r);if(void 0!==s)return s;let n=t();return e.set(r,n),n}function o(e){let r=new Map;return t=>(r.has(t)||r.set(t,e(t)),r.get(t))}t.d(r,{Bj:()=>o,Bs:()=>s,tE:()=>n})},60694(e,r,t){t.d(r,{Fi:()=>d,HZ:()=>q,Jf:()=>v,LS:()=>b,Wo:()=>g,bd:()=>S,cr:()=>f,iz:()=>h,qg:()=>p,uV:()=>w,yG:()=>m});var s=t(84952),n=t(39131),o=t(97159);const a={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},i=Object.values(a),l=RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(?<serviceTitle>.+?)\\/(?<serverType>${i.join("|")})(?:\\/exts\\/(?<soeTitle>.+?)\\/(?<soeServerType>${i.join("|")}))?)(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),u=RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/(?<serviceTitle>[^/\\n]+)\\/(?<serverType>${i.join("|")}))(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return l.test(e)}function p(e){if(null==e)return null;let r=(0,s.An)(e),t=r?.path.match(l)||r?.path.match(u);if(!t)return null;let{path:n,serviceTitle:o,serverType:i,soeTitle:c,soeServerType:d,sublayer:p}=t.groups??{},h=c||o,m=h.indexOf("/");return{title:f(-1===m?h:h.slice(m+1)),serverType:a[(d||i).toLowerCase()],sublayer:null!=p&&""!==p?parseInt(p,10):null,url:{path:n}}}function h(e){let r=(0,s.An)(e).path.match(c);return r?{serviceUrl:r[1],sublayerId:Number(r[2])}:null}function f(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,r){let t=[];if(e){let r=p(e);null!=r&&r.title&&t.push(r.title)}if(r){let e=f(r);t.push(e)}if(2===t.length){if(t[0].toLowerCase().includes(t[1].toLowerCase()))return t[0];if(t[1].toLowerCase().includes(t[0].toLowerCase()))return t[1]}return t.join(" - ")}const y=["services","features","tiles","elevation3d","basemaps3d"];function g(e){let r=(0,s.$z)(e,!0);return!(!r||(r=r.toLowerCase(),!r.endsWith(".arcgis.com")))&&(!!y.some(e=>r.startsWith(e))||/^[a-z\d-]+\.svcs[a-z\d-]*\./.test(r))}function w(e){return(0,n.$E)(e)&&function(e){let r=(0,s.$z)(e);return!!r&&r.toLowerCase().endsWith(".arcgis.com")}(e)}function v(e,r){return e&&(0,s.UC)((0,s.zi)(e,r))}function q(e){let{url:r}=e;if(!r)return{url:r};r=(0,s.zi)(r,e.logger);let t,n=(0,s.An)(r),o=p(n.path);if(null!=o)null!=o.sublayer&&null==e.layer.layerId&&(t=o.sublayer),r=o.url.path;else if(e.nonStandardUrlAllowed){let e=h(n.path);null!=e&&(r=e.serviceUrl,t=e.sublayerId)}return{url:(0,s.UC)(r),layerId:t}}function b(e,r,t,n,a){(0,o.w)(r,n,"url",a),n.url&&null!=e.layerId&&(n.url=(0,s.fj)(n.url,t,e.layerId.toString()))}function S(e){if(!e)return!1;let r=e.toLowerCase(),t=r.includes("/services/"),s=r.includes("/mapserver/wmsserver"),n=r.includes("/imageserver/wmsserver"),o=r.includes("/wmsserver");return t&&(s||n||o)}},56507(e,r,t){t.d(r,{A:()=>d});var s=t(92602),n=t(49186),o=t(44208),a=t(17676),i=t(84952),l=t(56152),u=t(65592),c=t(50075);async function d(e,r){e instanceof URL&&(e=e.toString());let s=(0,i.DB)(e),n=(0,i.w8)(e);!n&&!s&&(e=(0,i.S8)(e));let d={url:e,requestOptions:{...r}};r?.query&&(d.requestOptions.query=r?.query instanceof URLSearchParams?(0,i.zf)(r.query.toString().replaceAll("+"," ")):r?.query);let y=e=>({data:e,getAllHeaders:f,getHeader:f,httpStatus:200,requestOptions:d.requestOptions,url:d.url}),g=(0,i.sC)(e,h.internalInterceptors);if(g){let e=await m(g,d);if(null!=e)return y(e)}let w=(0,i.sC)(e);if(w){let e=await m(w,d);if(null!=e)return y(e);!w.after&&!w.error&&(w=null)}if(e=d.url,"image"===(r=d.requestOptions).responseType&&((0,o.A)("host-webworker")||(0,o.A)("host-node")))throw(0,u.YB)("request:invalid-parameters",Error("responseType 'image' is not supported in Web Workers or Node environment"),d);if("head"===r.method){if(r.body)throw(0,u.YB)("request:invalid-parameters",Error("body parameter cannot be set when method is 'head'"),d);if(s||n)throw(0,u.YB)("request:invalid-parameters",Error("data and blob URLs are not supported for method 'head'"),d)}if(await async function(){(0,o.A)("host-webworker")&&(!p&&globalThis.invokeStaticMessage?p=await t.e(369).then(()=>t(40369)):l.i.isForeignWorker=!0)}(),p)return p.execute(e,r);let v=new AbortController,q=(0,a.u7)(r,()=>v.abort()),b={controller:v,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:w,parameters:d,redoRequest:!1,useIdentity:h.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},S=await(r.useQueue?async function(e){let r=await(0,c.nm)(e);return r?r.push(e):(0,u.zc)(e)}(b):(0,u.zc)(b)).finally(()=>q?.remove());return w?.after?.(S),S}let p;const h=s.A.request,f=()=>null;async function m(e,r){if(null!=e.responseData)return e.responseData;if(e.headers&&(r.requestOptions.headers={...r.requestOptions.headers,...e.headers}),e.query&&(r.requestOptions.query={...r.requestOptions.query,...e.query}),e.before){let t,s;try{s=await e.before(r)}catch(e){t=(0,u.YB)("request:interceptor",e,r)}if((s instanceof Error||s instanceof n.A)&&(t=(0,u.YB)("request:interceptor",s,r)),t)throw e.error&&e.error(t),t;return s}}},56152(e,r,t){t.d(r,["i",0,{corsServers:["https://server.arcgisonline.com","https://services.arcgisonline.com"],beforeFetch:void 0,afterFetch:void 0,isForeignWorker:!1}])},95117(e,r,t){t.d(r,{y:()=>n});var s=t(17676);function n(e,r,t=!1,n){return new Promise((o,a)=>{if((0,s.G4)(n))return void a((0,s.NK)());let i=()=>{c(),a(Error(`Unable to load ${r}`))},l=async()=>{let r=e;try{await r.decode()}catch{}c(),o(r)},u=()=>{if(!e)return;let r=e;c(),r.src="",a((0,s.NK)())},c=()=>{e&&(e.removeEventListener("error",i),e.removeEventListener("load",l),i=null,l=null,e=null,n?.removeEventListener("abort",u),u=null,t&&URL.revokeObjectURL(r))};n?.addEventListener("abort",u),e.addEventListener("error",i),e.addEventListener("load",l)})}},65592(e,r,t){t.d(r,{YB:()=>x,c8:()=>F,zc:()=>b});var s=t(92602),n=t(70333),o=t(49186),a=t(44208),i=t(4718),l=t(17676),u=t(84952),c=t(39131),d=t(56152),p=t(95117),h=t(60694);const f=new Map;function m(e,r){let t=r?.preferredHost;if(!t||(0,u.FX)(e,`https://${t}`,!0))return;let s=(0,h.qg)(e);if(!s||"FeatureServer"!==s.serverType||(0,c.$E)(e))return;let n=s.url.path.toLowerCase();f.has(n)||f.set(n,t)}function y(e){let r=(0,h.qg)(e)?.url.path.toLowerCase();if(!r)return e;let t=f.get(r);return t?(0,u.hf)(e,t):e}const g="FormData"in globalThis,w=new Set([499,498,403,401]),v=new Set(["COM_0056","COM_0057","SB_0008"]),q=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i];async function b(e){let r,o;await async function(e){let r=e.parameters.url,o=e.parameters.requestOptions,a=e.controller.signal,i=o.body,u=null,c=null;if(g&&"HTMLFormElement"in globalThis&&(i instanceof FormData?u=i:i instanceof HTMLFormElement&&(u=new FormData(i))),"string"==typeof i&&(c=i),e.fetchOptions={cache:o.cacheMode??(o.cacheBust?"no-cache":"default"),credentials:"same-origin",headers:o.headers||{},keepalive:o.keepAlive??!1,method:"head"===o.method?"HEAD":"GET",mode:"cors",priority:o.priority??s.A.request.priority,redirect:"follow",signal:a},(u||c)&&(e.fetchOptions.body=u||c),(d.i.isForeignWorker||"anonymous"===o.authMode)&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(r)||o.query?.token||u?.get("token")),!e.hasToken){let{getApiKey:s,getSessionToken:n}=await t.e(926).then(()=>t(926)),a=await n(r)??s(r);a&&(o.query??={},o.query.token=a,e.hasToken=!0)}if(e.useIdentity&&!e.hasToken&&!e.credential&&!e.credentialToken&&!k(r)&&!(0,l.G4)(a)){let t;"immediate"===o.authMode?(await A(),t=await n.id.getCredential(r,{signal:a})):"no-prompt"===o.authMode?(await A(),t=await n.id.getCredential(r,{prompt:!1,signal:a}).catch(()=>{})):n.id&&(t=n.id.findCredential(r)),t&&(e.credential=t,e.credentialToken=t.token,e.useSSL=!!t.ssl)}}(e);try{do{[r,o]=await S(e)}while(!await L(e,r,o))}catch(t){let s=x("request:server",t,e.parameters,r);throw s.details.ssl=e.useSSL,e.interceptor?.error?.(s),s}let a=e.parameters.url;if(o)if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!e.hasToken&&!e.credentialToken&&o.user?.username&&!(0,u.FL)(a)){let e=(0,u.$z)(a,!0);e&&s.A.request.trustedServers.push(e)}Array.isArray(o.authorizedCrossOriginNoCorsDomains)&&function(e){s.A.request.crossOriginNoCorsDomains||(s.A.request.crossOriginNoCorsDomains={});let r=s.A.request.crossOriginNoCorsDomains;for(let t of e)t=t.toLowerCase(),/^https?:\/\//.test(t)?r[(0,u.$z)(t)??""]=0:(r[(0,u.$z)("http://"+t)??""]=0,r[(0,u.$z)("https://"+t)??""]=0)}(o.authorizedCrossOriginNoCorsDomains)}else"json"===(e.parameters.requestOptions.responseType||"json")&&m(a,o);return{data:o,getAllHeaders:r?()=>Array.from(r.headers):E,getHeader:r?e=>r.headers.get(e):E,httpStatus:r?.status??200,requestOptions:e.parameters.requestOptions,ssl:e.useSSL,url:e.parameters.url}}async function S(e){let r=e.parameters.url,t=y(r),o=e.parameters.requestOptions,i=e.fetchOptions??{},p=(0,u.w8)(r)||(0,u.DB)(r),h=o.responseType??"json",f=p?0:null==o.timeout?s.A.request.timeout:o.timeout,m=!1;if(!p){e.useSSL&&(r=(0,u.lM)(r));let l={...o.query};e.credentialToken&&(l.token=e.credentialToken);let d=(0,u.x0)(l);(0,a.A)("esri-url-encodes-apostrophe")&&(d=d.replaceAll("'","%27"));let p=o.maxUrlLength??s.A.request.maxUrlLength;0===p&&(p=1/0);let h,f=t.length+1+d.length;m="delete"===o.method||"post"===o.method||"put"===o.method||!!o.body||f>p;let w=o.useProxy||!!(0,u.zs)(r);if(w){let e=(0,u.s_)(r);h=e.path,!m&&h.length+1+f>p&&(m=!0),e.query&&(l={...e.query,...l})}if("HEAD"===i.method&&(m||w)){if(m)throw x("request:invalid-parameters",f>p?Error("URL exceeds maximum length"):Error("cannot use POST request when method is 'head'"),e.parameters);if(w)throw x("request:invalid-parameters",Error("cannot use proxy when method is 'head'"),e.parameters)}m?(i.method="delete"===o.method?"DELETE":"put"===o.method?"PUT":"POST",o.body?r=(0,u.a6)(r,l):(i.body=(0,u.x0)(l),i.headers||={},i.headers["Content-Type"]="application/x-www-form-urlencoded")):r=(0,u.a6)(r,l),w&&(e.useProxy=!0,r=`${h}?${r}`),l.token&&g&&i.body instanceof FormData&&!(0,c.$E)(r)&&i.body.set("token",l.token),o.hasOwnProperty("withCredentials")?e.withCredentials=o.withCredentials:(0,u.FX)(r,(0,u.Xq)())||((0,u.FL)(r)||n.id&&n.id.findServerInfo(r)?.webTierAuth)&&(e.withCredentials=!0),e.withCredentials&&(i.credentials="include",function(e){let r=s.A.request.crossOriginNoCorsDomains;if(r){let t=(0,u.$z)(e);if(t)return t=t.toLowerCase(),!(0,u.FX)(t,(0,u.Xq)())&&r[t]<Date.now()-36e5}return!1}(r)&&await async function(e){let r=(0,u.An)(e);e=r.path,"json"===r.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}let t=s.A.request.crossOriginNoCorsDomains,n=(0,u.$z)(e);t&&n&&(t[n.toLowerCase()]=Date.now())}(m?(0,u.a6)(r,l):r)),t=y(r)}let w,v,q=0,b=!1;f>0&&(q=setTimeout(()=>{b=!0,e.controller.abort()},f));try{if("native-request-init"===o.responseType)v=i,v.url=t,o.signal?v.signal=o.signal:delete v.signal;else if("image"!==o.responseType||"default"!==i.cache||i.keepalive||"GET"!==i.method||m||function(e){if(e)for(let r of Object.getOwnPropertyNames(e))if(e[r])return!0;return!1}(o.headers)||!p&&!e.useProxy&&s.A.request.proxyUrl&&!C(r)){if(await(d.i.beforeFetch?.(r,i)),w=await fetch(t,i),await(d.i.afterFetch?.(w)),e.useProxy||function(e){let r=(0,u.$z)(e);r&&!d.i.corsServers.includes(r)&&d.i.corsServers.push(r)}(r),"native"===o.responseType)v=w;else if("HEAD"!==i.method)if(w.ok){switch(h){case"array-buffer":v=await w.arrayBuffer();break;case"blob":case"image":v=await w.blob();break;default:v=await w.text()}if(q&&=(clearTimeout(q),0),"json"===h||"xml"===h||"document"===h)if(v)switch(h){case"json":v=JSON.parse(v);break;case"xml":v=O(v,"application/xml");break;case"document":v=O(v,"text/html")}else v=null;if(v){if(("array-buffer"===h||"blob"===h)&&v["blob"===h?"size":"byteLength"]<=750)try{let e=await new Response(v).json();e.error&&(v=e)}catch{}"image"===h&&v instanceof Blob&&(v=await T(URL.createObjectURL(v),e,!0))}}else{v=await w.text();try{v=JSON.parse(v)}catch{}}}else v=await T(t,e)}catch(t){if("AbortError"===t.name)throw b?Error(P):(0,l.NK)("Request canceled");if(!(!w&&t instanceof TypeError&&s.A.request.proxyUrl)||o.body||"delete"===o.method||"head"===o.method||"post"===o.method||"put"===o.method||e.useProxy||C(r))throw t;e.redoRequest=!0,(0,u.oy)({proxyUrl:s.A.request.proxyUrl,urlPrefix:(0,u.$z)(r)??""})}finally{q&&clearTimeout(q)}return[w,v]}function T(e,r,t=!1){let n=r.controller.signal,o=new Image;return o.crossOrigin=r.withCredentials?"use-credentials":"anonymous",o.alt="",o.fetchPriority=s.A.request.priority,o.src=e,(0,p.y)(o,e,t,n)}function C(e){let r=(0,u.$z)(e);return!r||r.endsWith(".arcgis.com")||d.i.corsServers.includes(r)||(0,u.FL)(r)}async function A(){n.id||await Promise.all([t.e(6361),t.e(7736),t.e(7644),t.e(9358),t.e(7715),t.e(8094)]).then(()=>t(50148))}function k(e){return q.some(r=>r.test(e))}function O(e,r){let t;try{t=(new DOMParser).parseFromString(e,r)}catch{}if(!t||t.getElementsByTagName("parsererror").length)throw SyntaxError("XML Parse error");return t}async function L(e,r,t){if(e.redoRequest)return e.redoRequest=!1,!1;let s,o=e.parameters.requestOptions;if(!r||"native"===o.responseType||"native-request-init"===o.responseType)return!0;if(t&&(t.error&&"object"==typeof t.error?s=t.error:"error"===t.status&&Array.isArray(t.messages)&&(s={...t},s[U]=t,s.details=t.messages)),!s&&!r.ok)throw s=Error(`Unable to load ${r.url} status: ${r.status}`),s[U]=t,s;let a,i,l=null;s&&(a=Number(s.code),l=s.hasOwnProperty("subcode")?Number(s.subcode):null,i=s.messageCode,i=i?.toUpperCase());let u=o.authMode;if(403===a&&(4===l||s.message?.toLowerCase().includes("ssl")&&!s.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&w.has(a)&&!k(e.parameters.url)&&(403!==a||(!i||!v.has(i))&&(null==l||2===l&&e.credentialToken))){await A();try{let r=await n.id.getCredential(e.parameters.url,{error:x("request:server",s,e.parameters),credential:e.credential,prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=r,e.credentialToken=r.token,e.useSSL=e.useSSL||r.ssl,!1}catch(r){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;s=r}}if(s)throw s;return!0}function x(e,r,t,s){let n,a={url:t.url,requestOptions:t.requestOptions,getAllHeaders:E,getHeader:E,ssl:!1};if(r instanceof o.A)return r.details?(r.details=(0,i.o8)(r.details),r.details.url=t.url,r.details.requestOptions=t.requestOptions):r.details=a,r;if(r){let e=s&&(()=>Array.from(s.headers)),t=s&&(e=>s.headers.get(e)),o=s?.status,i=r.message;i&&(n=i),e&&t&&(a.getAllHeaders=e,a.getHeader=t),a.httpStatus=(null==r.httpCode?r.code:r.httpCode)||o||0,a.subCode=r.subcode,a.messageCode=r.messageCode,"string"==typeof r.details?(a.messages=[r.details],n??=r.details):(a.messages=r.details,n??=a.messages?.[0]),a.raw=U in r?r[U]:r}return n??="Error",(0,l.zf)(r)?(0,l.NK)():new o.A(e,n,a)}const U=Symbol(),E=()=>null,P="Timeout exceeded";function F(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===P}},50075(e,r,t){t.d(r,{_i:()=>u,nm:()=>c});var s=t(44208),n=t(91869),o=t(17676),a=t(84952),i=t(60694),l=t(65592);function u(e){let r=h(e);return!!r&&(d.get(r.origin)?.full??!1)}async function c(e){let r=h(e.parameters.url);if(!r)return null;let{QueueProcessor:a,SharedConcurrency:i}=await t.e(563).then(()=>t(563));return(0,n.tE)(d,r.origin,()=>{let e=(r.isHosted?(0,s.A)("request-queue-concurrency-hosted"):(0,s.A)("request-queue-concurrency-non-hosted"))??4;return p??=new i((0,s.A)("request-queue-concurrency-global")??50),new a({concurrency:e,sharedConcurrency:p,process:e=>{if((0,o.G4)(e.parameters.requestOptions))throw(0,l.YB)("",(0,o.NK)("Request canceled"),e.parameters);return(0,l.zc)(e)}})})}const d=new Map;let p;function h(e){let r,t=!1;return"string"==typeof e?(r=(0,a.$z)(e,!0),t=(0,i.Wo)(e)):(r=e.origin,t=(0,i.Wo)(e.toString())),null==r?null:new f(r,t)}class f{constructor(e,r){this.origin=e,this.isHosted=r}}t.d(r,["Fz",0,{useQueue:!0,priority:"auto"}])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9567],{29242(t,n,r){function e(){return[1,0,0,0,1,0,0,0,1]}function a(t,n,r,e,a,u,i,o,c){return[t,n,r,e,a,u,i,o,c]}r.d(n,{fA:()=>a,vt:()=>e});const u=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:u,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:a},Symbol.toStringTag,{value:"Module"})),r.d(n,["zK",0,u])},34304(t,n,r){r.d(n,{DF:()=>c,FD:()=>a,ct:()=>f});let e=1e-6;function a(){return e}const u=Math.random,i=Math.PI/180,o=180/Math.PI;function c(t){return t*i}function f(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:u,equals:function(t,n){return Math.abs(t-n)<=e*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:a,setEpsilon:function(t){e=t},toDegree:f,toRadian:c},Symbol.toStringTag,{value:"Module"})),r.d(n,["Ov",0,u])},77690(t,n,r){r.d(n,{B8:()=>o,Ge:()=>M,I0:()=>s,KC:()=>c,a4:()=>f,hZ:()=>u,hs:()=>l,lw:()=>h,mg:()=>i,z0:()=>a});var e=r(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function u(t,n,r,e,a,u,i,o,c,f){return t[0]=n,t[1]=r,t[2]=e,t[3]=a,t[4]=u,t[5]=i,t[6]=o,t[7]=c,t[8]=f,t}function i(t,n){if(t===n){let r=n[1],e=n[2],a=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=a}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function o(t,n){let r=n[0],e=n[1],a=n[2],u=n[3],i=n[4],o=n[5],c=n[6],f=n[7],h=n[8],l=h*i-o*f,s=-h*u+o*c,M=f*u-i*c,m=r*l+e*s+a*M;return m?(m=1/m,t[0]=l*m,t[1]=(-h*e+a*f)*m,t[2]=(o*e-a*i)*m,t[3]=s*m,t[4]=(h*r-a*c)*m,t[5]=(-o*r+a*u)*m,t[6]=M*m,t[7]=(-f*r+e*c)*m,t[8]=(i*r-e*u)*m,t):null}function c(t,n){let r=n[0],e=n[1],a=n[2],u=n[3],i=n[4],o=n[5],c=n[6],f=n[7],h=n[8];return t[0]=i*h-o*f,t[1]=a*f-e*h,t[2]=e*o-a*i,t[3]=o*c-u*h,t[4]=r*h-a*c,t[5]=a*u-r*o,t[6]=u*f-i*c,t[7]=e*c-r*f,t[8]=r*i-e*u,t}function f(t){let n=t[0],r=t[1],e=t[2],a=t[3],u=t[4],i=t[5],o=t[6],c=t[7],f=t[8];return n*(f*u-i*c)+r*(-f*a+i*o)+e*(c*a-u*o)}function h(t,n,r){let e=n[0],a=n[1],u=n[2],i=n[3],o=n[4],c=n[5],f=n[6],h=n[7],l=n[8],s=r[0],M=r[1],m=r[2],b=r[3],d=r[4],x=r[5],p=r[6],y=r[7],v=r[8];return t[0]=s*e+M*i+m*f,t[1]=s*a+M*o+m*h,t[2]=s*u+M*c+m*l,t[3]=b*e+d*i+x*f,t[4]=b*a+d*o+x*h,t[5]=b*u+d*c+x*l,t[6]=p*e+y*i+v*f,t[7]=p*a+y*o+v*h,t[8]=p*u+y*c+v*l,t}function l(t,n,r){let e=r[0],a=r[1],u=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t[6]=u*n[6],t[7]=u*n[7],t[8]=u*n[8],t}function s(t,n){let r=n[0],e=n[1],a=n[2],u=n[3],i=r+r,o=e+e,c=a+a,f=r*i,h=e*i,l=e*o,s=a*i,M=a*o,m=a*c,b=u*i,d=u*o,x=u*c;return t[0]=1-l-m,t[3]=h-x,t[6]=s+d,t[1]=h+x,t[4]=1-f-m,t[7]=M-b,t[2]=s-d,t[5]=M+b,t[8]=1-f-l,t}function M(t,n){let r=n[0],e=n[1],a=n[2],u=n[3],i=n[4],o=n[5],c=n[6],f=n[7],h=n[8],l=n[9],s=n[10],M=n[11],m=n[12],b=n[13],d=n[14],x=n[15],p=r*o-e*i,y=r*c-a*i,v=r*f-u*i,g=e*c-a*o,q=e*f-u*o,P=a*f-u*c,I=h*b-l*m,S=h*d-s*m,R=h*x-M*m,E=l*d-s*b,k=l*x-M*b,N=s*x-M*d,F=p*N-y*k+v*E+g*R-q*S+P*I;return F?(F=1/F,t[0]=(o*N-c*k+f*E)*F,t[1]=(c*R-i*N-f*S)*F,t[2]=(i*k-o*R+f*I)*F,t[3]=(a*k-e*N-u*E)*F,t[4]=(r*N-a*R+u*S)*F,t[5]=(e*R-r*k-u*I)*F,t[6]=(b*P-d*q+x*g)*F,t[7]=(d*v-m*P-x*y)*F,t[8]=(m*q-b*v+x*p)*F,t):null}function m(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const b=h,d=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:c,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:f,equals:function(t,n){let r=t[0],a=t[1],u=t[2],i=t[3],o=t[4],c=t[5],f=t[6],h=t[7],l=t[8],s=n[0],M=n[1],m=n[2],b=n[3],d=n[4],x=n[5],p=n[6],y=n[7],v=n[8],g=(0,e.FD)();return Math.abs(r-s)<=g*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-M)<=g*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(u-m)<=g*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(i-b)<=g*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(o-d)<=g*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(c-x)<=g*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(f-p)<=g*Math.max(1,Math.abs(f),Math.abs(p))&&Math.abs(h-y)<=g*Math.max(1,Math.abs(h),Math.abs(y))&&Math.abs(l-v)<=g*Math.max(1,Math.abs(l),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:a,fromQuat:s,fromRotation:function(t,n){let r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:o,isOrthoNormal:function(t){let n=(0,e.FD)(),r=t[0],a=t[1],u=t[2],i=t[3],o=t[4],c=t[5],f=t[6],h=t[7],l=t[8];return Math.abs(1-(r*r+i*i+f*f))<=n&&Math.abs(1-(a*a+o*o+h*h))<=n&&Math.abs(1-(u*u+c*c+l*l))<=n},mul:b,multiply:h,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){let r=n[0],e=n[1],a=n[2],u=n[4],i=n[5],o=n[6],c=n[8],f=n[9],h=n[10],l=h*i-o*f,s=-h*u+o*c,M=f*u-i*c,m=r*l+e*s+a*M;if(!m)return null;let b=1/m;return t[0]=l*b,t[1]=(-h*e+a*f)*b,t[2]=(o*e-a*i)*b,t[3]=s*b,t[4]=(h*r-a*c)*b,t[5]=(-o*r+a*u)*b,t[6]=M*b,t[7]=(-f*r+e*c)*b,t[8]=(i*r-e*u)*b,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){let e=n[0],a=n[1],u=n[2],i=n[3],o=n[4],c=n[5],f=n[6],h=n[7],l=n[8],s=Math.sin(r),M=Math.cos(r);return t[0]=M*e+s*i,t[1]=M*a+s*o,t[2]=M*u+s*c,t[3]=M*i-s*e,t[4]=M*o-s*a,t[5]=M*c-s*u,t[6]=f,t[7]=h,t[8]=l,t},scale:l,scaleByVec2:function(t,n,r){let e=r[0],a=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t},set:u,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:d,subtract:m,translate:function(t,n,r){let e=n[0],a=n[1],u=n[2],i=n[3],o=n[4],c=n[5],f=n[6],h=n[7],l=n[8],s=r[0],M=r[1];return t[0]=e,t[1]=a,t[2]=u,t[3]=i,t[4]=o,t[5]=c,t[6]=s*e+M*i+f,t[7]=s*a+M*o+h,t[8]=s*u+M*c+l,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},37585(t,n,r){r.d(n,{C:()=>u,Cc:()=>q,Io:()=>d,LI:()=>M,Ln:()=>b,Om:()=>g,Re:()=>c,S8:()=>v,T9:()=>l,WQ:()=>o,aI:()=>R,e$:()=>I,hG:()=>x,hZ:()=>i,hs:()=>m,l0:()=>P,qE:()=>s,t2:()=>S});var e=r(34727),a=r(34304);function u(t,n){return t[0]=n[0],t[1]=n[1],t}function i(t,n,r){return t[0]=n,t[1]=r,t}function o(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t}function c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t}function f(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t}function l(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t}function s(t,n,r,a){return t[0]=(0,e.qE)(n[0],r[0],a[0]),t[1]=(0,e.qE)(n[1],r[1],a[1]),t}function M(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t}function m(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t}function b(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t}function d(t,n){let r=n[0]-t[0],e=n[1]-t[1];return Math.sqrt(r*r+e*e)}function x(t,n){let r=n[0]-t[0],e=n[1]-t[1];return r*r+e*e}function p(t){let n=t[0],r=t[1];return Math.sqrt(n*n+r*r)}function y(t){let n=t[0],r=t[1];return n*n+r*r}function v(t,n){let r=n[0],e=n[1],a=r*r+e*e;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a),t}function g(t,n){return t[0]*n[0]+t[1]*n[1]}function q(t,n,r,e){let a=n[0],u=n[1];return t[0]=a+e*(r[0]-a),t[1]=u+e*(r[1]-u),t}function P(t,n,r){let e=n[0],a=n[1];return t[0]=r[0]*e+r[2]*a+r[4],t[1]=r[1]*e+r[3]*a+r[5],t}function I(t,n,r,e){let a=n[0]-r[0],u=n[1]-r[1],i=Math.sin(e),o=Math.cos(e);return t[0]=a*o-u*i+r[0],t[1]=a*i+u*o+r[1],t}function S(t,n){return t[0]===n[0]&&t[1]===n[1]}function R(t,n){let r=t[0],e=t[1],u=n[0],i=n[1],o=(0,a.FD)();return Math.abs(r-u)<=o*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-i)<=o*Math.max(1,Math.abs(e),Math.abs(i))}const E=p,k=c,N=f,F=h,_=d,K=x,D=y;Object.freeze(Object.defineProperty({__proto__:null,add:o,angle:function(t,n){let r=t[0],e=t[1],a=n[0],u=n[1],i=r*r+e*e;i>0&&(i=1/Math.sqrt(i));let o=a*a+u*u;o>0&&(o=1/Math.sqrt(o));let c=(r*a+e*u)*i*o;return c>1?0:c<-1?Math.PI:Math.acos(c)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},clamp:s,copy:u,cross:function(t,n,r){let e=n[0]*r[1]-n[1]*r[0];return t[0]=t[1]=0,t[2]=e,t},dist:_,distance:d,div:F,divide:h,dot:g,equals:R,exactEquals:S,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:E,length:p,lerp:q,max:l,min:function(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t},mul:N,multiply:f,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t},normalize:v,projectAndScale:function(t,n,r,e,a){let u=n[0]-r[0],i=n[1]-r[1],o=(e[0]*u+e[1]*i)*(a-1);return u=e[0]*o,i=e[1]*o,t[0]=n[0]+u,t[1]=n[1]+i,t},random:function(t,n=1){let r=2*(0,a.Ov)()*Math.PI;return t[0]=Math.cos(r)*n,t[1]=Math.sin(r)*n,t},rotate:I,round:M,scale:m,scaleAndAdd:b,set:i,sqrDist:K,sqrLen:D,squaredDistance:x,squaredLength:y,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:k,subtract:c,transformMat2:function(t,n,r){let e=n[0],a=n[1];return t[0]=r[0]*e+r[2]*a,t[1]=r[1]*e+r[3]*a,t},transformMat2d:P,transformMat3:function(t,n,r){let e=n[0],a=n[1];return t[0]=r[0]*e+r[3]*a+r[6],t[1]=r[1]*e+r[4]*a+r[7],t},transformMat4:function(t,n,r){let e=n[0],a=n[1];return t[0]=r[0]*e+r[4]*a+r[12],t[1]=r[1]*e+r[5]*a+r[13],t}},Symbol.toStringTag,{value:"Module"})),r.d(n,["Il",0,E,"jb",0,k,"xg",0,_])},34727(t,n,r){r.d(n,{$8:()=>I,Cc:()=>o,Hx:()=>d,Io:()=>q,KJ:()=>h,OS:()=>E,Sp:()=>M,XM:()=>l,YN:()=>s,ZH:()=>b,b6:()=>P,cU:()=>a,gg:()=>m,hs:()=>c,kU:()=>f,mP:()=>i,or:()=>R,pF:()=>N,qE:()=>u});const e=new Float32Array(1);function a(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function u(t,n,r){return Math.min(Math.max(t,n),r)}function i(t,n){return 0===n?0:Math.ceil(t/n)*n}function o(t,n,r){return t+(n-t)*r}function c(t,n,r,e,a){return o(e,a,(t-n)/(r-n))}function f(t){return t*Math.PI/180}function h(t){return 180*t/Math.PI}function l(t){return Math.acos(u(t,-1,1))}function s(t){return Math.asin(u(t,-1,1))}function M(t,n,r=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=r}function m(t,n,r=1e-6){return!M(t,n,r)&&t>n}function b(t,n,r=1e-6){return!M(t,n,r)&&t<n}function d(t,n,r=1e-6){return M(t,n,r)||t>n}const x=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function p(t){return x.setFloat64(0,t),x.getBigInt64(0)}const y=1000000n,v=g(1);function g(t){let n=p(t=Math.abs(t)),r=function(t){return x.setBigInt64(0,t),x.getFloat64(0)}(n<=y?y:n-y);return Math.abs(t-r)}function q(t,n,r=v){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;if(null!=r&&g(Math.min(Math.abs(t),Math.abs(n)))<r)return Math.abs(t-n)<=r;let e=p(t),a=p(n);return!(e<0!=a<0||(e<a?a-e:e-a)>y)}function P(t,n,r=1e-6){if(t===n)return!0;if(!Number.isFinite(t)||!Number.isFinite(n))return!1;let e=Math.abs(t-n),a=Math.abs(t),u=Math.abs(n);if(0===t||0===n||a<1e-12&&u<1e-12){if(e>.01*r)return!1}else if(e/(a+u)>r)return!1;return!0}function I(t){return S(Math.max(-k,Math.min(t,k)))}function S(t){return e[0]=t,e[0]}function R(t){let n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],e=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(M(n,1)&&M(r,1)&&M(e,1))}function E(t,n){return(t%n+n)%n}const k=S(34028234663852886e22);function N(t,n,r){if(void 0===r||0==+r)return Math[t](n);if(n=+n,r=+r,isNaN(n)||"number"!=typeof r||r%1!=0)return NaN;let e=n.toString().split("e");return e=(n=Math[t](+(e[0]+"e"+(e[1]?+e[1]-r:-r)))).toString().split("e"),+(e[0]+"e"+(e[1]?+e[1]+r:r))}r.d(n,["pq",0,k])},19419(t,n,r){r.d(n,{$9:()=>P,C:()=>u,DC:()=>m,HY:()=>q,IO:()=>l,Ie:()=>S,Rj:()=>g,Uc:()=>v,VL:()=>b,VY:()=>o,Wc:()=>x,aI:()=>E,bx:()=>s,fA:()=>i,fT:()=>M,gR:()=>I,gX:()=>p,ib:()=>y,nw:()=>h,pJ:()=>k,tK:()=>f,uJ:()=>d,vt:()=>a,w1:()=>c}),r(34727);var e=r(5443);function a(t=F){return[t[0],t[1],t[2],t[3]]}function u(t,n){return t!==n&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3]),t}function i(t,n,r,e,u=a()){return u[0]=t,u[1]=n,u[2]=r,u[3]=e,u}function o(t,n=a()){return n[0]=t.xmin,n[1]=t.ymin,n[2]=t.xmax,n[3]=t.ymax,n}function c(t,n,r=new e.A){return r.xmin=t[0],r.ymin=t[1],r.xmax=t[2],r.ymax=t[3],r.spatialReference=n,r}function f(t,n){n[0]<t[0]&&(t[0]=n[0]),n[0]>t[2]&&(t[2]=n[0]),n[1]<t[1]&&(t[1]=n[1]),n[1]>t[3]&&(t[3]=n[1])}function h(t,n){n<t[0]&&(t[0]=n),n>t[2]&&(t[2]=n)}function l(t,n){n<t[1]&&(t[1]=n),n>t[3]&&(t[3]=n)}function s(t,{xmin:n,ymin:r,xmax:e,ymax:a}){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],r),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],a)}function M(t,n,r){if(null!=n)if("length"in n)R(n)?(r[0]=Math.min(t[0],n[0]),r[1]=Math.min(t[1],n[1]),r[2]=Math.max(t[2],n[2]),r[3]=Math.max(t[3],n[3])):(2===n.length||3===n.length)&&(r[0]=Math.min(t[0],n[0]),r[1]=Math.min(t[1],n[1]),r[2]=Math.max(t[2],n[0]),r[3]=Math.max(t[3],n[1]));else switch(n.type){case"extent":r[0]=Math.min(t[0],n.xmin),r[1]=Math.min(t[1],n.ymin),r[2]=Math.max(t[2],n.xmax),r[3]=Math.max(t[3],n.ymax);break;case"point":r[0]=Math.min(t[0],n.x),r[1]=Math.min(t[1],n.y),r[2]=Math.max(t[2],n.x),r[3]=Math.max(t[3],n.y)}else u(r,t)}function m(t,n){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])}function b(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function d(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function x(t){return b(t)*d(t)}function p(t,n=[0,0]){return n[0]=(t[0]+t[2])/2,n[1]=(t[1]+t[3])/2,n}function y(t){let n=b(t),r=d(t);return Math.sqrt(n*n+r*r)}function v(t,n){return g(t,n[0],n[1])}function g(t,n,r){return n>=t[0]&&r>=t[1]&&n<=t[2]&&r<=t[3]}function q(t,n){return Math.max(n[0],t[0])<=Math.min(n[2],t[2])&&Math.max(n[1],t[1])<=Math.min(n[3],t[3])}function P(t,n,r){return Math.max(n[0],t[0])-r<=Math.min(n[2],t[2])&&Math.max(n[1],t[1])-r<=Math.min(n[3],t[3])}function I(t,n){return n[0]>=t[0]&&n[2]<=t[2]&&n[1]>=t[1]&&n[3]<=t[3]}function S(t){return t?u(t,N):a(N)}function R(t){return null!=t&&4===t.length}function E(t,n){return R(t)&&R(n)?t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]:t===n}function k(t,n){if(4!==n.length||t[0]===t[2]||t[1]===t[3])return!1;for(let r=0;r<n.length;r++){let e=n[r],a=n[(r+1)%n.length];if(e[0]!==t[0]&&e[0]!==t[2]||e[1]!==t[1]&&e[1]!==t[3])return!1;let u=e[1]===a[1]&&e[0]!==a[0],i=e[0]===a[0]&&e[1]!==a[1];if(!u&&!i)return!1}return!0}const N=[1/0,1/0,-1/0,-1/0],F=[0,0,0,0];r.d(n,["qv",0,N])},4305(t,n,r){r.d(n,{B4:()=>c,jK:()=>h,lM:()=>s,m_:()=>l,ty:()=>m});var e=r(34727),a=(r(37585),r(19419)),u=r(15507);const i=[0,0];function o(t){let n=1-t,r=n*n,e=t*t;return[r*n,3*t*r,3*e*n,e*t]}function c(t,n,r,e,a){let[u,i,c,f]=o(a);return[t[0]*u+n[0]*i+r[0]*c+e[0]*f,t[1]*u+n[1]*i+r[1]*c+e[1]*f]}function f(t,n,r,e,a){let[u,i,c,f]=o(a);return t*u+n*i+r*c+e*f}function h(t,n,r){let e=t,[a,o,c]=n.b,f=(0,u.RS)([0,0],e,o,r),h=(0,u.RS)(i,o,c,r),l=(0,u.RS)([0,0],c,a,r),s=(0,u.RS)([0,0],f,h,r),M=(0,u.RS)([0,0],h,l,r);return[{b:[(0,u.RS)([],s,M,r),f,s]},{b:[[...a],M,l]}]}function l(t,n,r){let a=t,[i,o,f]=n.b,h=(0,u.R)(r,[.1,.5,.9],t=>{let n=1-t,[r,e]=c(a,o,f,i,t);return[r,e,3*n*n*(o[0]-a[0])+6*n*t*(f[0]-o[0])+3*t*t*(i[0]-f[0]),3*n*n*(o[1]-a[1])+6*n*t*(f[1]-o[1])+3*t*t*(i[1]-f[1]),6*n*(f[0]-2*o[0]+a[0])+6*t*(i[0]-2*f[0]+o[0]),6*n*(f[1]-2*o[1]+a[1])+6*t*(i[1]-2*f[1]+o[1])]}).map(t=>Math.min(1,Math.max(0,t)));h.push(0,1);let l=1/0,s=h.map(t=>{let n=c(a,o,f,i,t),[e,u]=n,h=r[0]-e,s=r[1]-u,M=Math.sqrt(h*h+s*s);return l=Math.min(M,l),{t,curvePoint:n,distance:M}}),M=[];for(let t of s){let{t:n,distance:r}=t;(0,e.b6)(r,l)&&!M.some(({t})=>(0,e.Sp)(t,n))&&M.push(t)}return M}function s(t,n,r){let e=n,[u,i,o]=r.b;if((0,a.tK)(t,e),(0,a.tK)(t,u),(0,a.Rj)(t,i[0],i[1])&&(0,a.Rj)(t,o[0],o[1]))return t;for(let n of M(e[0],i[0],o[0],u[0]))n>0&&n<1&&(0,a.nw)(t,f(e[0],i[0],o[0],u[0],n));for(let n of M(e[1],i[1],o[1],u[1]))n>0&&n<1&&(0,a.IO)(t,f(e[1],i[1],o[1],u[1],n));return t}function M(t,n,r,e){let a=3*(3*(n-r)-t+e),u=6*(t-2*n+r),i=3*(n-t);if(0===a)return 0===u?[]:[-i/u];let o=Math.sqrt(u*u-4*a*i);return[(-u+o)/(2*a),(-u-o)/(2*a)]}function m(t,n,r){let e=0,a=[n];for(let n=0;n<16;n++){let n=t,i=[];for(let t of a)i.push(...h(n,t,.5)),n=t.b[0];a=i,n=t,e=0;let o=0;for(let t of a){let[r,a,i]=t.b,c=Math.sqrt((0,u.kb)(n,r));e+=(c+(Math.sqrt((0,u.kb)(n,a))+Math.sqrt((0,u.kb)(a,i))+Math.sqrt((0,u.kb)(i,r))))/2,o+=c,n=r}if(e-o<r)return e}return e}},513(t,n,r){r.d(n,{KP:()=>i,X0:()=>h,fM:()=>f,mq:()=>c,zW:()=>l});var e=r(19419),a=r(59803),u=r(15507);class i{constructor(t,n,r,e,a,u){this.cx=t,this.cy=n,this.radius=r,this.thetaStart=e,this.thetaEnd=a,this.isInvalid=u}get startPoint(){let{cx:t,cy:n,radius:r,thetaStart:e}=this;return[t+r*Math.cos(e),n+r*Math.sin(e)]}get endPoint(){let{cx:t,cy:n,radius:r,thetaEnd:e}=this;return[t+r*Math.cos(e),n+r*Math.sin(e)]}}function o(t,n){let{cx:r,cy:e,radius:a}=t;return[r+a*Math.cos(n),e+a*Math.sin(n)]}function c(t,n){if(t.isInvalid)return(0,u.RS)([0,0],t.startPoint,t.endPoint,n);let{thetaStart:r,thetaEnd:e}=t;return o(t,r*(1-n)+e*n)}function f(t,n){if(t.isInvalid)return(0,a.T)(t.startPoint,t.endPoint,n);let{cx:r,cy:e,thetaStart:i,thetaEnd:c}=t,[f,h]=n,l=(0,u.Pf)((0,u.yN)(i,c),Math.atan2(h-e,f-r)),s=o(t,l);return{t:(l-i)/(c-i),curvePoint:s,distance:Math.sqrt((0,u.kb)(n,s))}}function h(t,n){if(n.isInvalid)return(0,e.tK)(t,n.startPoint),(0,e.tK)(t,n.endPoint),t;let{cx:r,cy:a,radius:i,thetaStart:c,thetaEnd:f}=n;(0,e.tK)(t,o(n,c)),(0,e.tK)(t,o(n,f));let h=(0,u.yN)(c,f),l=Math.PI/2,s=0;for(let n of[[r+i,a],[r,a+i],[r-i,a],[r,a-i]])s=(0,u.Cp)(h,s),s>h.min&&s<h.max&&(0,e.tK)(t,n),s+=l;return t}function l(t){if(t.isInvalid)return 2*t.radius;let{radius:n,thetaStart:r,thetaEnd:e}=t;return n*Math.abs(e-r)}},50954(t,n,r){r.d(n,{GX:()=>h,pM:()=>f});var e=r(77690),a=r(29242),u=(r(37585),r(513)),i=r(15507);const o=(0,a.vt)();function c(t,n,r){let[a,u]=t,[c,f]=n,[h,l]=r;(0,e.hZ)(o,a,c,h,u,f,l,1,1,1);let s=(0,e.a4)(o),M=4*s/((0,i.kb)(t,n)+(0,i.kb)(n,r)+(0,i.kb)(r,t));if(!isFinite(M)||Math.abs(M)<1e-8)return null;let m=a**2+u**2,b=c**2+f**2,d=h**2+l**2;(0,e.hZ)(o,m,b,d,u,f,l,1,1,1);let x=(0,e.a4)(o);return(0,e.hZ)(o,m,b,d,a,c,h,1,1,1),[x/s*.5,(0,e.a4)(o)/s*-.5]}function f(t,n){let[r,e]=n.c,a=c(t,e,r),o=null==a,f=a??(0,i.RS)([],t,r,.5),[h,l]=t,[s,M]=e,[m,b]=r,[d,x]=f,p=h-d,y=l-x,v=Math.sqrt(p*p+y*y),g=(0,i.t7)(l-x,h-d),q=(0,i.t7)(M-x,s-d),P=(0,i.t7)(b-x,m-d);return(q-g)*(P-q)<0&&(P+=2*Math.sign(g-P)*Math.PI),new u.KP(d,x,v,g,P,o)}function h(t,n,r){let e=(0,u.mq)(t,r/2),a=(0,u.mq)(t,r),i=(0,u.mq)(t,(r+1)/2);return[{c:[a,e]},{c:[[...n.c[0]],i]}]}},79567(t,n,r){r.d(n,{e:()=>h});var e=r(19419),a=r(4305),u=r(513),i=r(50954),o=r(52006),c=r(49663),f=r(46068);function h(t,n,r){if((0,o.Xq)(r))return(0,e.tK)(t,n),(0,e.tK)(t,r),t;if((0,o.n1)(r))return(0,a.lM)(t,n,r);if((0,o.aO)(r)){let e=(0,i.pM)(n,r);return(0,u.X0)(t,e)}if((0,o.DA)(r)){let e=(0,c.io)(n,r);return(0,u.X0)(t,e)}return(0,f.DL)(t,n,r)}},52006(t,n,r){function e(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function a(t){return"curveRings"in t?t.curveRings:t.curvePaths}function u(t){return"b"in t}function i(t){return"c"in t}function o(t){return Array.isArray(t)}function c(t){return"a"in t}function f(t){return"a"in t&&4===t.a.length}function h(t){return"a"in t&&7===t.a.length}function l(t,n){return a(t).flat().some(t=>function(t,n){return!(o(t)||(u(t)?n.has("cubic-bezier"):i(t)?n.has("circular-arc"):!f(t)&&!h(t)||n.has("elliptic-arc")))}(t,n))}function s(t){return o(t)?t:u(t)?t.b[0]:i(t)?t.c[0]:t.a[0]}function M(t){if(u(t)){let[n,r,e]=t.b;return{b:[[...n],[...r],[...e]]}}if(i(t)){let[n,r]=t.c;return{c:[[...n],[...r]]}}if(o(t))return[...t];if(f(t)){let[n,r,e,a]=t.a;return{a:[[...n],[...r],e,a]}}if(h(t)){let[n,r,e,a,u,i,o]=t.a;return{a:[[...n],[...r],e,a,u,i,o]}}return t}r.d(n,{DA:()=>f,Ed:()=>e,FD:()=>a,FG:()=>c,V8:()=>l,Xq:()=>o,aO:()=>i,n1:()=>u,tk:()=>M,wY:()=>h,yP:()=>s}),r(4576)},49663(t,n,r){r.d(n,{io:()=>i,xG:()=>o});var e=r(34727),a=(r(37585),r(513)),u=r(15507);function i(t,n){let[r,i,o,c]=n.a,[f,h]=t,[l,s]=r,[M,m]=i,b=f-M,d=h-m,x=Math.sqrt(b*b+d*d),p=l-M,y=s-m,v=Math.sqrt(p*p+y*y),g=0===x||0===v||!(0,e.b6)(x,v),q=x,[P,I]=(0,u.Gz)((0,u.t7)(h-m,f-M),Math.atan2(s-m,l-M),o,c);return new a.KP(M,m,q,P,I,g)}function o(t,n,r){let{cx:e,cy:u,thetaStart:i,thetaEnd:o}=t,[c,f,h,l]=n.a,s=i*(1-r)+o*r;return[{a:[(0,a.mq)(t,r),[e,u],+(Math.abs(s-i)<Math.PI),l]},{a:[[...c],[e,u],+(Math.abs(o-s)<Math.PI),l]}]}},46068(t,n,r){r.d(n,{DL:()=>M,ED:()=>l,SW:()=>c,Uk:()=>h,pb:()=>s,xm:()=>m}),r(77690);var e=r(29242),a=(r(37585),r(19419)),u=r(52006),i=r(15507);class o{constructor(t,n,r,e,a,u,i,o,c){this.cx=t,this.cy=n,this.a=r,this.b=e,this.cosR=a,this.sinR=u,this.u1=i,this.u2=o,this.isInvalid=c}}function c(t,n){let[r,e,a,u,c,f,h]=n.a,[l,s]=t,[M,m]=r,[b,d]=e,x=f*h,p=Math.cos(c),y=Math.sin(c),[v,g]=(0,i.Gz)((0,i.t7)(1/x*(s-d)*p-1/x*(l-b)*y,1/f*(s-d)*y+1/f*(l-b)*p),Math.atan2(1/x*(m-d)*p-1/x*(M-b)*y,1/f*(m-d)*y+1/f*(M-b)*p),a,u);return new o(b,d,f,x,p,y,v,g,0===f||0===x)}function f(t,n){let{a:r,b:e,cosR:a,sinR:u,cx:i,cy:o}=t,c=Math.cos(n),f=Math.sin(n);return[r*c*a-e*f*u+i,r*c*u+e*f*a+o]}function h(t,n){let{u1:r,u2:e}=t;return f(t,r*(1-n)+e*n)}function l(t,n,r){if(r<0||r>1)return[];if(0===r||1===r)return[(0,u.tk)(n)];let[e,[a,i],o,c,f,l,s]=n.a,{u1:M,u2:m}=t,b=M*(1-r)+m*r;return[{a:[[...h(t,r)],[a,i],+(Math.abs(b-M)<Math.PI),c,f,l,s]},{a:[[...e],[a,i],+(Math.abs(m-b)<Math.PI),c,f,l,s]}]}function s(t,n){let{a:r,b:e,cosR:a,sinR:u,u1:o,u2:c}=t,h=Math.PI/6,l=[1*h,2*h,4*h,5*h,7*h,8*h,10*h,11*h],s=(0,i.R)(n,l,n=>{let i=Math.cos(n),o=Math.sin(n),[c,h]=f(t,n);return[c,h,-r*a*o-e*u*i,-r*u*o+e*a*i,-r*a*i+e*u*o,-r*u*i-e*a*o]}),M=(0,i.yN)(o,c),m=new Set(s.map(t=>(0,i.Cp)(M,t)).filter(t=>t>M.min&&t<M.max));m.add(o),m.add(c);let b,d,x=1/0;for(let r of m){let e=f(t,r),[a,u]=e,i=n[0]-a,h=n[1]-u,l=i*i+h*h;l<x&&(b=(r-o)/(c-o),d=e,x=l)}return{t:b,curvePoint:d,distance:Math.sqrt(x)}}function M(t,n,r){let e=c(n,r),{a:u,b:o,u1:h,u2:l,cosR:s,sinR:M,isInvalid:m}=e,b=r.a[0];if((0,a.tK)(t,n),(0,a.tK)(t,b),m)return t;let d=Math.atan2(-o*M,u*s),x=d+Math.PI,p=Math.atan2(o*s,u*M),y=p+Math.PI,v=(0,i.yN)(h,l);for(let n of[d,x,p,y].map(t=>(0,i.Cp)(v,t)))n>v.min&&n<v.max&&(0,a.tK)(t,f(e,n));return t}function m(t,n,r){let[e,a,u,o,l,s,M]=n.a,m=c(t,n),{u1:b,u2:d,isInvalid:x}=m,p=d-b;if(x)return Math.sqrt((0,i.kb)(t,e));let y=[0,0],v=0,g=[h(m,0),h(m,.25),h(m,.5),h(m,.75),h(m,1)];for(let t=0;t<14;t++){let t=g.length-1,n=p/(2*t),e=[];for(let r=0;r<t;r++)e.push(g[r]),e.push(f(m,b+(2*r+1)*n));e.push(g[g.length-1]),g=e,v=0;let u=0;for(let t=1;t<g.length;t++){let n=g[t-1],r=g[t];if(v+=Math.sqrt((0,i.kb)(n,r)),t>1){let e=g[t-2],o=(0,i.M_)(y,e,n,a,r);u+=o?Math.sqrt((0,i.kb)(n,o)):Math.abs(r[0]-n[0])+Math.abs(r[1]-n[1])}else u+=v}if(u-v<r)return v}return v}(0,e.vt)(),(0,e.vt)(),(0,e.vt)(),(0,e.vt)()},59803(t,n,r){r.d(n,{T:()=>u});var e=r(34727),a=r(15507);function u(t,n,r){let[u,i]=t,[o,c]=n,[f,h]=r,[l,s]=[o-u,c-i],M=l*(f-u)+s*(h-i);M/=l**2+s**2,M=isNaN(M)?0:(0,e.qE)(M,0,1);let m=(0,a.RS)([0,0],t,n,M);return{t:M,curvePoint:m,distance:Math.sqrt((0,a.kb)(m,r))}}},15507(t,n,r){r.d(n,{Cp:()=>b,Gz:()=>m,M_:()=>c,Pf:()=>d,R:()=>x,RS:()=>u,kb:()=>i,t7:()=>h,yE:()=>o,yN:()=>M});var e=r(34727),a=r(37585);function u(t,n,r,e){return t[0]=n[0]*(1-e)+r[0]*e,t[1]=n[1]*(1-e)+r[1]*e,t}function i(t,n){return(0,a.hG)(t,n)}function o(t,n,r){let e=i(n,r);if(0===e)return i(n,t);let a=(n[0]-t[0])*(r[1]-t[1])-(n[1]-t[1])*(r[0]-t[0]);return a*a/e}function c(t,n,r,e,a){let[u,i]=n,[o,c]=r,[f,h]=e,[l,s]=a,M=(u-o)*(h-s)-(i-c)*(f-l);if(0===M)return null;let m=(u*c-i*o)*(f-l)-(u-o)*(f*s-h*l),b=(u*c-i*o)*(h-s)-(i-c)*(f*s-h*l);return t[0]=m/M,t[1]=b/M,t}const f=2*Math.PI;function h(t,n){let r=Math.atan2(t,n);return r<0?r+f:r}function l(t){return Math.abs(t)%f}function s(t){let n=l(t);return n<Math.PI?n:f-n}function M(t,n){return{min:Math.min(t,n),max:Math.max(t,n)}}function m(t,n,r,a){if((0,e.Sp)(l(t-n),0))return r?[t,t]:[t,a?t-f:t+f];let[u,i]=a?[t-f,t]:[t,t+f];return[t,b({min:u,max:i},n)]}function b({min:t,max:n},r){let e;return e=n-r,e>=f?(e-=e%f,r+e):(e=r-t,e>=f?(e-=e%f,r-e):r)}function d(t,n){let r=b(t,n);return r>t.min&&r<t.max?r:s(r-t.min)<s(r-t.max)?t.min:t.max}function x(t,n,r,e=10){return n.map(n=>{let a=n;for(let n=0;n<e;n++){let[n,e,u,i,o,c]=r(a),f=t[0]-n,h=t[1]-e,l=-u,s=-i;a+=-(2*f*l+2*h*s)/(2*l*l+2*f*-o+2*s*s+2*h*-c||1e-6)}return a})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6892],{68197(t,e,r){r.d(e,{A:()=>u});var i=r(40876),n=r(4576),s=r(34727),a=r(78888);function o(t){return(0,s.qE)((0,a.Vr)(t),0,255)}function l(t,e){let r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}function h(t){return.2126*(0,i.Q6)(t.r)+.7152*(0,i.Q6)(t.g)+.0722*(0,i.Q6)(t.b)}class u{static blendColors(t,e,r,i=new u){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){let r=(0,i.lT)(t);return r?u.fromArray(r,e):null}static fromHex(t,e=new u){let r=(0,i.oW)(t);return r?u.fromArray(r,e):null}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){let r=(0,i.Eq)(t);return r?u.fromArray(r,e):null}static fromJSON(t){return null==t?void 0:new u([t[0],t[1],t[2],(t[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null==this.a?1:this.a,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(t,e=3){let r=t instanceof u?t:new u(t),i=h(this),n=h(r);return(Math.max(i,n)+.05)/(Math.min(i,n)+.05)<e}setColor(t){if("string"==typeof t)u.fromString(t,this);else if((0,n.yc)(t))u.fromArray(t,this);else{let e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof u||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){let e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${n?l(Math.round(255*this.a),i):""}`;return e?s.toUpperCase():s}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(t=!1){let e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){let e=o(this.r),r=o(this.g),i=o(this.b);return 0===t||1!==this.a?[e,r,i,o(255*this.a)]:[e,r,i]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}u.prototype.declaredClass="esri.Color"},40876(t,e,r){r.d(e,{Eq:()=>g,G1:()=>d,Q6:()=>w,TS:()=>s,V6:()=>n,Vm:()=>p,ay:()=>l,c1:()=>_,c4:()=>a,j5:()=>h,lT:()=>c,oW:()=>u,xV:()=>b});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function n(t){return!!i[t]||!!i[t.toLowerCase()]}function s(t){return i[t]??i[t.toLowerCase()]}function a(t){return[...s(t)]}function o(t,e,r){r<0&&++r,r>1&&--r;let i=6*r;return i<1?t+(e-t)*i:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t,e,r,i=1){let n=(t%360+360)%360/360,s=r<=.5?r*(e+1):r+e-r*e,a=2*r-s;return[Math.round(255*o(a,s,n+1/3)),Math.round(255*o(a,s,n)),Math.round(255*o(a,s,n-1/3)),i]}function h(t){let e=t.length>5,r=e?8:4,i=(1<<r)-1,n=e?1:17,s=e?9===t.length:5===t.length,a=Number("0x"+t.slice(1));if(isNaN(a))return null;let o,l=[0,0,0,1];return s&&(o=a&i,a>>=r,l[3]=n*o/255),o=a&i,a>>=r,l[2]=n*o,o=a&i,a>>=r,l[1]=n*o,o=a&i,a>>=r,l[0]=n*o,l}function u(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{let e=parseInt(t.slice(1,2),16),r=parseInt(t.slice(2,3),16),i=parseInt(t.slice(3,4),16),n=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,r+16*r,i+16*i,(n+16*n)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function c(t){let e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){let t=e[2].split(/\s*,\s*/),r=e[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){if(t[0].endsWith("%")){let e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(t){return t[0]=_(t[0]),t[1]=_(t[1]),t[2]=_(t[2]),t[3]=4===t.length?d(t[3]):1,t}function g(t){let e=n(t)?s(t):null;return e??=c(t),e??=u(t),e}function p(t){let e=g(t);return null==e?null:[e[0]/255,e[1]/255,e[2]/255,e[3]]}function d(t){return y(t,0,1)}function _(t){return Math.round(y(t,0,255))}function y(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}const m=1/2.2;function w(t){return t**2.2}function b(t){return t**m}r.d(e,["iw",0,m])},32488(t,e,r){r.d(e,{A:()=>A});const i=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],n=["آ","أ","إ","ا"],s=["ﻵ","ﻷ","ﻹ","ﻻ"],a=["ﻶ","ﻸ","ﻺ","ﻼ"],o="ا.ب.ت.ث.ج.ح.خ.د.ذ.ر.ز.س.ش.ص.ض.ط.ظ.ع.غ.ف.ق.ك.ل.م.ن.ه.و.ي.إ.أ.آ.ة.ى.ل.م.ن.ه.و.ي.إ.أ.آ.ة.ى.ی.ئ.ؤ".split("."),l="ﺍ.ﺏ.ﺕ.ﺙ.ﺝ.ﺡ.ﺥ.ﺩ.ﺫ.ﺭ.ﺯ.ﺱ.ﺵ.ﺹ.ﺽ.ﻁ.ﻅ.ﻉ.ﻍ.ﻑ.ﻕ.ﻙ.ﻝ.ﻡ.ﻥ.ﻩ.ﻭ.ﻱ.ﺇ.ﺃ.ﺁ.ﺓ.ﻯ.ﯼ.ﺉ.ﺅ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺉ.ﺅ".split("."),h="ﺎ.ﺐ.ﺖ.ﺚ.ﺞ.ﺢ.ﺦ.ﺪ.ﺬ.ﺮ.ﺰ.ﺲ.ﺶ.ﺺ.ﺾ.ﻂ.ﻆ.ﻊ.ﻎ.ﻒ.ﻖ.ﻚ.ﻞ.ﻢ.ﻦ.ﻪ.ﻮ.ﻲ.ﺈ.ﺄ.ﺂ.ﺔ.ﻰ.ﯽ.ﺊ.ﺆ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺊ.ﺆ".split("."),u="ﺎ.ﺒ.ﺘ.ﺜ.ﺠ.ﺤ.ﺨ.ﺪ.ﺬ.ﺮ.ﺰ.ﺴ.ﺸ.ﺼ.ﻀ.ﻄ.ﻈ.ﻌ.ﻐ.ﻔ.ﻘ.ﻜ.ﻠ.ﻤ.ﻨ.ﻬ.ﻮ.ﻴ.ﺈ.ﺄ.ﺂ.ﺔ.ﻰ.ﯿ.ﺌ.ﺆ.ﹱ.ﹲ.ﹴ.ﹷ.ﹹ.ﹻ.ﹽ.ﹿ.ﺀ.ﺌ.ﺆ".split("."),c="ﺍ.ﺑ.ﺗ.ﺛ.ﺟ.ﺣ.ﺧ.ﺩ.ﺫ.ﺭ.ﺯ.ﺳ.ﺷ.ﺻ.ﺿ.ﻃ.ﻇ.ﻋ.ﻏ.ﻓ.ﻗ.ﻛ.ﻟ.ﻣ.ﻧ.ﻫ.ﻭ.ﻳ.ﺇ.ﺃ.ﺁ.ﺓ.ﻯ.ﯾ.ﺋ.ﺅ.ﹰ.ﹲ.ﹴ.ﹶ.ﹸ.ﹺ.ﹼ.ﹾ.ﺀ.ﺋ.ﺅ".split("."),f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],g="ً.ً.ٌ.؟.ٍ.؟.َ.َ.ُ.ُ.ِ.ِ.ّ.ّ.ْ.ْ.ء.آ.آ.أ.أ.ؤ.ؤ.إ.إ.ئ.ئ.ئ.ئ.ا.ا.ب.ب.ب.ب.ة.ة.ت.ت.ت.ت.ث.ث.ث.ث.ج.ج.ج.ج.ح.ح.ح.ح.خ.خ.خ.خ.د.د.ذ.ذ.ر.ر.ز.ز.س.س.س.س.ش.ش.ش.ش.ص.ص.ص.ص.ض.ض.ض.ض.ط.ط.ط.ط.ظ.ظ.ظ.ظ.ع.ع.ع.ع.غ.غ.غ.غ.ف.ف.ف.ف.ق.ق.ق.ق.ك.ك.ك.ك.ل.ل.ل.ل.م.م.م.م.ن.ن.ن.ن.ه.ه.ه.ه.و.و.ى.ى.ي.ي.ي.ي.ﻵ.ﻶ.ﻷ.ﻸ.ﻹ.ﻺ.ﻻ.ﻼ.؟.؟.؟".split("."),p=["ء","ف"],d=["غ","ي"],_=[[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]],y=[[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]],m=["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"],w=[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],b=[[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 A{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,r){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,r){j=[],Y=[];for(let i=0;i<r;i++)t[i]=i,e[i]=i,j[i]=i}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,r))return t;e=this.inputFormat,r=this.outputFormat;let i=t,n=Q,s=q(e.charAt(1)),a=q(r.charAt(1)),o=(e.startsWith("I")?"L":e.charAt(0))+s,l=(r.startsWith("I")?"L":r.charAt(0))+a,h=e.charAt(2)+r.charAt(2);n.defInFormat=o,n.defOutFormat=l,n.defSwap=h;let u=S(t,o,l,h,n),c=!1;return"R"===r.charAt(1)?c=!0:("C"===r.charAt(1)||"D"===r.charAt(1))&&(c="rtl"===this.checkContextual(u)),this.sourceToTarget=j,this.targetToSource=function(t){let e=Array(t.length);for(let r=0;r<t.length;r++)e[t[r]]=r;return e}(this.sourceToTarget),W=this.targetToSource,i=e.charAt(3)===r.charAt(3)?u:"S"===r.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);let r=(e=String(e)).split(""),i=0,n=1,s=r.length;t||(i=r.length-1,n=-1,s=1);let a=T(r,i,n,s),o="";for(let e=0;e<r.length;e++)R(a,a.length,e)>-1?($(W,e,!t,-1),j.splice(e,1)):o+=r[e];return o}(c,u):k(u,c,!0),this.sourceToTarget=j,this.targetToSource=W,this.levels=Y,i}_inputFormatSetter(t){if(!J.test(t))throw Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!J.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=x(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 S(t,e,r,i,n){let s=function(t,e,r){if(void 0===e.inFormat&&(e.inFormat=r.defInFormat),void 0===e.outFormat&&(e.outFormat=r.defOutFormat),void 0===e.swap&&(e.swap=r.defSwap),e.inFormat===e.outFormat)return e;let i,n=e.inFormat.slice(0,1),s=e.outFormat.slice(0,1),a=e.inFormat.slice(1,4),o=e.outFormat.slice(1,4);return a.startsWith("C")&&(i=x(t),a="ltr"===i||"rtl"===i?i.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=n+a),o.startsWith("C")&&(i=x(t),"rtl"===i?o="RTL":"ltr"===i?(i=function(t){let e=t.split("");return e.reverse(),x(e.join(""))}(t),o=i.toUpperCase()):o="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=s+o),e}(t,{inFormat:e,outFormat:r,swap:i},n);if(s.inFormat===s.outFormat)return t;e=s.inFormat,r=s.outFormat,i=s.swap;let a=e.slice(0,1),o=e.slice(1,4),l=r.slice(0,1),h=r.slice(1,4);if(n.inFormat=e,n.outFormat=r,n.swap=i,"L"===a&&"VLTR"===r){if("LTR"===o)return n.dir=K,v(t,n);if("RTL"===o)return n.dir=X,v(t,n)}if("V"===a&&"V"===l)return n.dir="RTL"===o?X:K,N(t,n);if("L"===a&&"VRTL"===r)return"LTR"===o?(n.dir=K,t=v(t,n)):(n.dir=X,t=v(t,n)),N(t);if("VLTR"===e&&"LLTR"===r)return n.dir=K,v(t,n);if("V"===a&&"L"===l&&o!==h)return t=N(t),"RTL"===o?S(t,"LLTR","VLTR",i,n):S(t,"LRTL","VRTL",i,n);if("VRTL"===e&&"LRTL"===r)return S(t,"LRTL","VRTL",i,n);if("L"===a&&"L"===l){let e=n.swap;return n.swap=e.slice(0,1)+"N","RTL"===o?(n.dir=X,t=v(t,n),n.swap="N"+e.slice(1,3),n.dir=K,t=v(t,n)):(n.dir=K,t=v(t,n),n.swap="N"+e.slice(1,3),t=S(t,"VLTR","LRTL",n.swap,n)),t}return t}function T(t,e,r,i,n){let o=0,u=[],f=0;for(let n=e;n*r<i;n+=r)if(F(t[n])||E(t[n])){if("ل"===t[n]&&B(t,n+r,r,i)){t[n]=G(t[n+r],0===o?s:a),n+=r,O(t,n,r,i),u[f]=n,f++,o=0;continue}let e=t[n];1===o?t[n]=U(t,n+r,r,i)?D(t[n]):z(t[n],h):!0===U(t,n+r,r,i)?t[n]=z(t[n],c):t[n]=z(t[n],l),E(e)||(o=1),!0===V(e)&&(o=0)}else o=0;return u}function x(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 k(t,e,r){if(0===t.length)return"";void 0===e&&(e=!0);let i="",s=(t=String(t)).split("");for(let a=0;a<t.length;a++){let o=!1;if(s[a]>="ﹰ"&&s[a]<"\ufeff"){let l=t.charCodeAt(a);s[a]>="ﻵ"&&s[a]<="ﻼ"?(e?(a>0&&r&&" "===s[a-1]?i=i.slice(0,-1)+"ل":(i+="ل",o=!0),i+=n[(l-65269)/2]):(i+=n[(l-65269)/2],i+="ل",a+1<t.length&&r&&" "===s[a+1]?a++:o=!0),o&&($(W,a,!0,1),j.splice(a,0,j[a]))):i+=g[l-65136]}else i+=s[a]}return i}function v(t,e){let r=t.split(""),i=[];return L(r,i,e),function(t,e,r){if(0!==r.hiLevel&&r.swap[0]!==r.swap[1])for(let r=0;r<t.length;r++)1===e[r]&&(t[r]=P(t[r]))}(r,i,e),C(2,r,i,e),C(1,r,i,e),Y=i,r.join("")}function L(t,e,r){let i=t.length,n=r.dir?y:_,s=0,a=-1,o=[],l=[];r.hiLevel=r.dir,r.lastArabic=!1,r.hasUbatAl=!1,r.hasUbatB=!1,r.hasUbatS=!1;for(let e=0;e<i;e++)o[e]=M(t[e]);for(let h=0;h<i;h++){let i=s,u=I(t,o,l,h,r);l[h]=u,s=n[i][u];let c=240&s;s&=15;let f=n[s][Z];if(e[h]=f,c>0)if(16===c){for(let t=a;t<h;t++)e[t]=1;a=-1}else a=-1;if(n[s][H])-1===a&&(a=h);else if(a>-1){for(let t=a;t<h;t++)e[t]=f;a=-1}5===o[h]&&(e[h]=0),r.hiLevel|=f}r.hasUbatS&&function(t,e,r,i){for(let n=0;n<r;n++)if(6===t[n]){e[n]=i.dir;for(let r=n-1;r>=0&&8===t[r];r--)e[r]=i.dir}}(o,e,i,r)}function M(t){let e=t.charCodeAt(0),r=w[e>>8];return r<100?r:b[r-100][255&e]}function N(t,e){let r=t.split("");if(e){let t=[];L(r,t,e),Y=t}return r.reverse(),j.reverse(),r.join("")}function R(t,e,r){for(let i=0;i<e;i++)if(t[i]===r)return i;return-1}function F(t){for(let e=0;e<p.length;e++)if(t>=p[e]&&t<=d[e])return!0;return!1}function U(t,e,r,i){for(;e*r<i&&E(t[e]);)e+=r;return!!(e*r<i&&F(t[e]))}function B(t,e,r,i){for(;e*r<i&&E(t[e]);)e+=r;let s=" ";if(!(e*r<i))return!1;s=t[e];for(let t=0;t<n.length;t++)if(n[t]===s)return!0;return!1}function C(t,e,r,i){if(i.hiLevel<t)return;if(1===t&&i.dir===X&&!i.hasUbatB)return e.reverse(),void j.reverse();let n,s,a,o,l,h=e.length,u=0;for(;u<h;){if(r[u]>=t){for(n=u+1;n<h&&r[n]>=t;)n++;for(s=u,a=n-1;s<a;s++,a--)o=e[s],e[s]=e[a],e[a]=o,l=j[s],j[s]=j[a],j[a]=l;u=n}u++}}function I(t,e,r,i,n){let s=e[i];return{UBAT_L:()=>(n.lastArabic=!1,0),UBAT_R:()=>(n.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>n.lastArabic?3:2,UBAT_AL:()=>(n.lastArabic=!0,n.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,s;return i<1||i+1>=e.length||2!==(t=r[i-1])&&3!==t||2!==(s=e[i+1])&&3!==s?4:(n.lastArabic&&(s=3),s===t?s:4)},UBAT_ES:()=>2===(i>0?r[i-1]:5)&&i+1<e.length&&2===e[i+1]?2:4,UBAT_ET:()=>{if(i>0&&2===r[i-1])return 2;if(n.lastArabic)return 4;let t=i+1,s=e.length;for(;t<s&&11===e[t];)t++;return t<s&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===n.inFormat){let r=e.length,n=i+1;for(;n<r&&12===e[n];)n++;if(n<r){let r=t[i].charCodeAt(0),s=r>=1425&&r<=2303||64286===r,a=e[n];if(s&&(1===a||7===a))return 1}}return i<1||5===e[i-1]?4:r[i-1]},UBAT_B:()=>(n.lastArabic=!0,n.hasUbatB=!0,n.dir),UBAT_S:()=>(n.hasUbatS=!0,4),UBAT_LRE:()=>(n.lastArabic=!1,4),UBAT_RLE:()=>(n.lastArabic=!1,4),UBAT_LRO:()=>(n.lastArabic=!1,4),UBAT_RLO:()=>(n.lastArabic=!1,4),UBAT_PDF:()=>(n.lastArabic=!1,4),UBAT_BN:()=>4}[m[s]]()}function P(t){let e,r=0,n=i.length-1;for(;r<=n;)if(e=Math.floor((r+n)/2),t<i[e][0])n=e-1;else{if(!(t>i[e][0]))return i[e][1];r=e+1}return t}function V(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function D(t){for(let e=0;e<o.length;e++)if(t===o[e])return u[e];return t}function z(t,e){for(let r=0;r<o.length;r++)if(t===o[r])return e[r];return t}function E(t){return t>="ً"&&t<="ٕ"}function q(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function O(t,e,r,i){for(;e*r<i&&E(t[e]);)e+=r;return e*r<i&&(t[e]=" ",!0)}function G(t,e){for(let r=0;r<n.length;r++)if(t===n[r])return e[r];return t}function $(t,e,r,i){for(let n=0;n<t.length;n++)(t[n]>e||!r&&t[n]===e)&&(t[n]+=i)}let j=[],W=[],Y=[];const Q={dir:0,defInFormat:"LLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,defOutFormat:""},Z=5,H=6,K=0,X=1,J=/^[(I|V)][(L|RCD)][(Y|N)][(S|N)]N$/,tt=/[\u0591-\u06ff\ufb1d-\ufefc]/},6371(t,e,r){r.d(e,{y:()=>n});const i=new(r(32488).A);function n(t,e=!0){if(!i.hasBidiChar(t))return[t,!1,{...i}];let r;r="rtl"===i.checkContextual(t)?"IDNNN":"ICNNN";let n=e?"VLYSN":"VLYNN";return[i.bidiTransform(t,r,n),!0,{...i}]}},93687(t,e,r){r.d(e,{A:()=>s});var i=r(44208);const n=()=>!!(0,i.A)("esri-tests-disable-memory-pools");class s{constructor(t,e,r,i=1,n=0){this._creator=t,this._acquireFunction=e,this._releaseFunction=r,this.allocationSize=i,this._pool=Array(n),this._initialSize=n;for(let t=0;t<n;t++)this._pool[t]=this._creator();this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...t){let e;if(n())e=this._creator();else{if(0===this._pool.length){let t=this.allocationSize;for(let e=0;e<t;e++)this._pool[e]=this._creator()}e=this._pool.pop()}return this._acquireFunction?this._acquireFunction(e,...t):function(t){return t?.acquire&&"function"==typeof t.acquire}(e)&&e.acquire(...t),e}release(t){t&&!n()&&(this._releaseFunction?this._releaseFunction(t):function(t){return t?.release&&"function"==typeof t.release}(t)&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let e=t;e<this._pool.length;++e){let t=this._pool[e];this._dispose(t)}this._pool.length=t}}_dispose(t){t.dispose&&"function"==typeof t.dispose&&t.dispose()}}},78888(t,e,r){r.d(e,{EK:()=>N,GB:()=>h,GX:()=>l,MB:()=>R,Nd:()=>I,PZ:()=>m,Qp:()=>f,Uv:()=>B,Vr:()=>u,Zu:()=>C,_e:()=>L,aq:()=>F,dp:()=>S,e6:()=>M,eC:()=>k,jz:()=>U,qf:()=>T,wB:()=>x});var i=r(53966),n=r(91869);const s=()=>i.A.getLogger("esri.core.accessorSupport.ensureTypes");function a(t){if(null==t)return t;let e=new Date(t);return isNaN(e.getTime())?(s().error("Accessor#set",`Invalid date value: '${t}', falling back to current date`),new Date):e}function o(t){return null==t?t:!!t}function l(t){return null==t?t:t.toString()}function h(t,e=0){return null==t?t:(t=parseFloat(t),isNaN(t)?e:t)}function u(t){return null==t?t:Math.round(parseFloat(t))}function c(t){return null}function f(t,e){return r=>{let i=t(r);return null!=e.step&&(i=Math.round(i/e.step)*e.step),null!=e.min&&(i=Math.max(e.min,i)),null!=e.max&&(i=Math.min(e.max,i)),i}}function g(t){return t?.constructor&&void 0!==t.constructor.__accessorMetadata__}function p(t,e){return null!=e&&t&&!(e instanceof t)}function d(t){return t&&"isCollection"in t}function _(t){return t?.Type?"function"==typeof t.Type?t.Type:t.Type.base:null}function y(t,e){return!!g(e)&&(s().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+w(t)+"'"),!0)}function m(t,e){return null==e?e:d(t)?function(t,e){if(!e?.constructor||!d(e.constructor))return y(t,e)?e:new t(e);let r=_(t.prototype.itemType),i=_(e.constructor.prototype.itemType);return r?i?r===i?e:r.prototype.isPrototypeOf(i.prototype)?new t(e):(y(t,e),e):new t(e):e}(t,e):p(t,e)?y(t,e)?e:new t(e):e}function w(t){return t?.prototype?.declaredClass||"unknown"}const b=new WeakMap;function A(t){switch(t){case Number:return t=>h(t);case U:return u;case Boolean:return o;case String:return l;case Date:return a;case B:return c;default:return(0,n.tE)(b,t,()=>m.bind(null,t))}}function S(t,e){let r=A(t);return 1===arguments.length?r:r(e)}function T(t){let e=A(t);return t=>e(t)}function x(t,e,r){return 1===arguments.length?x.bind(null,t):e&&(Array.isArray(e)?e.map(e=>t(e,r)):[t(e,r)])}function k(t,e){return 1===arguments.length?x(e=>S(t,e)):x(e=>S(t,e),e)}function v(t,e,r){return 0!==e&&Array.isArray(r)?r.map(r=>v(t,e-1,r)):t(r)}function L(t,e,r){if(2===arguments.length)return r=>L(t,e,r);if(!r)return r;r=v(t,e,r);let i=e,n=r;for(;i>0&&Array.isArray(n);)i--,n=n[0];if(void 0!==n)for(let t=0;t<i;t++)r=[r];return r}function M(t,e,r){return 2===arguments.length?L(e=>S(t,e),e):L(e=>S(t,e),e,r)}function N(t){return!!Array.isArray(t)&&!t.some(e=>{let r=typeof e;return!("string"===r||"number"===r||"function"===r&&t.length>1)})}function R(t,e){if(2===arguments.length)return R(t).call(null,e);let r=new Set,i=t.filter(t=>"function"!=typeof t),n=t.filter(t=>"function"==typeof t);for(let e of t)("string"==typeof e||"number"==typeof e)&&r.add(e);let a=null,o=null;return(t,e)=>{if(null==t)return t;let l=typeof t,h="string"===l||"number"===l;return h&&(r.has(t)||n.some(t=>"string"===l&&t===String||"number"===l&&t===Number))||"object"===l&&n.some(e=>!p(e,t))?t:(h&&i.length?(a||=i.map(t=>"string"==typeof t?`'${t}'`:`${t}`).join(", "),s().error("Accessor#set",`'${t}' is not a valid value for this property, only the following values are valid: ${a}`)):"object"==typeof t&&n.length?(o||=n.map(t=>w(t)).join(", "),s().error("Accessor#set",`'${t}' is not a valid value for this property, value must be one of ${o}`)):s().error("Accessor#set",`'${t}' is not a valid value for this property`),e&&(e.valid=!1),null)}}function F(t,e){if(2===arguments.length)return F(t).call(null,e);let r={},i=[],n=[];for(let e in t.typeMap){let s=t.typeMap[e];r[e]=S(s),i.push(w(s)),n.push(e)}let a=()=>`'${i.join("', '")}'`,o=()=>`'${n.join("', '")}'`,l="string"==typeof t.key?e=>e[t.key]:t.key;return e=>{if(t.base&&!p(t.base,e)||null==e)return e;let i=l(e)||t.defaultKeyValue,n=r[i];if(!n)return s().error("Accessor#set",`Invalid property value, value needs to be one of ${a()}, or a plain object that can autocast (having .type = ${o()})`),null;if(!p(t.typeMap[i],e))return e;if("string"==typeof t.key&&!g(e)){let r={};for(let i in e)i!==t.key&&(r[i]=e[i]);return n(r)}return n(e)}}class U{}class B{}function C(t){if(!t||"object"!=typeof t&&"function"!=typeof t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function I(t){switch(t.type){case"native":return S(t.value);case"array":return x(I(t.value));case"one-of":return function(t){let e=null;return(r,i)=>V(r,t)?r:(e??=P(t),s().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),i&&(i.valid=!1),null)}(t);default:return null}}function P(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case U:return"integer";case Date:return"date";case B:return"null";default:return w(t.value)}case"array":return`array of ${P(t.value)}`;case"one-of":{let e=t.values.map(t=>P(t));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function V(t,e){if(null==t)return!0;switch(e.type){case"native":switch(e.value){case Number:case U:return"number"==typeof t;case Boolean:return"boolean"==typeof t;case String:return"string"==typeof t;case B:return null===t}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some(t=>!V(t,e.value));case"one-of":return e.values.some(e=>V(t,e))}}r.d(e,["gK",0,{native:t=>({type:"native",value:t}),array:t=>({type:"array",value:t}),oneOf:t=>({type:"one-of",values:t})}])},57582(t,e,r){r.d(e,{af:()=>n,rK:()=>s}),r(92602);const i="arial-unicode-ms";function n(t){if(!t)return i;let e=t.toLowerCase().split(" ").join("-");switch(e){case"serif":return"noto-serif";case"sans-serif":return"arial-unicode-ms";case"monospace":return"ubuntu-mono";case"fantasy":return"cabin-sketch";case"cursive":return"redressed";default:return e}}function s(t){let e=function(t){if(!t.weight)return"";switch(t.weight.toLowerCase()){case"bold":case"bolder":return"-bold"}return""}(t)+function(t){if(!t.style)return"";switch(t.style.toLowerCase()){case"italic":case"oblique":return"-italic"}return""}(t);return n(t.family)+(e.length>0?e:"-regular")}new Map,new Set,r.d(e,["Vb",0,i])},34727(t,e,r){r.d(e,{$8:()=>x,Cc:()=>o,Hx:()=>_,Io:()=>S,KJ:()=>u,OS:()=>L,Sp:()=>g,XM:()=>c,YN:()=>f,ZH:()=>d,b6:()=>T,cU:()=>n,gg:()=>p,hs:()=>l,kU:()=>h,mP:()=>a,or:()=>v,pF:()=>N,qE:()=>s});const i=new Float32Array(1);function n(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function s(t,e,r){return Math.min(Math.max(t,e),r)}function a(t,e){return 0===e?0:Math.ceil(t/e)*e}function o(t,e,r){return t+(e-t)*r}function l(t,e,r,i,n){return o(i,n,(t-e)/(r-e))}function h(t){return t*Math.PI/180}function u(t){return 180*t/Math.PI}function c(t){return Math.acos(s(t,-1,1))}function f(t){return Math.asin(s(t,-1,1))}function g(t,e,r=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=r}function p(t,e,r=1e-6){return!g(t,e,r)&&t>e}function d(t,e,r=1e-6){return!g(t,e,r)&&t<e}function _(t,e,r=1e-6){return g(t,e,r)||t>e}const y=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function m(t){return y.setFloat64(0,t),y.getBigInt64(0)}const w=1000000n,b=A(1);function A(t){let e=m(t=Math.abs(t)),r=function(t){return y.setBigInt64(0,t),y.getFloat64(0)}(e<=w?w:e-w);return Math.abs(t-r)}function S(t,e,r=b){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=r&&A(Math.min(Math.abs(t),Math.abs(e)))<r)return Math.abs(t-e)<=r;let i=m(t),n=m(e);return!(i<0!=n<0||(i<n?n-i:i-n)>w)}function T(t,e,r=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let i=Math.abs(t-e),n=Math.abs(t),s=Math.abs(e);if(0===t||0===e||n<1e-12&&s<1e-12){if(i>.01*r)return!1}else if(i/(n+s)>r)return!1;return!0}function x(t){return k(Math.max(-M,Math.min(t,M)))}function k(t){return i[0]=t,i[0]}function v(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],i=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(g(e,1)&&g(r,1)&&g(i,1))}function L(t,e){return(t%e+e)%e}const M=k(34028234663852886e22);function N(t,e,r){if(void 0===r||0==+r)return Math[t](e);if(e=+e,r=+r,isNaN(e)||"number"!=typeof r||r%1!=0)return NaN;let i=e.toString().split("e");return i=(e=Math[t](+(i[0]+"e"+(i[1]?+i[1]-r:-r)))).toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+r:r))}r.d(e,["pq",0,M])},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>s,lM:()=>n});var i=r(34275);function n(t){if(!t)return 0;let e=h;for(let r in t)t.hasOwnProperty(r)&&(e+=a(t[r],!1));return e}function s(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let r=u;for(let i=0;i<e;i++)r+=a(t[i]);return r}(t);let e=h;for(let r in t)t.hasOwnProperty(r)&&(e+=a(t[r]));return e}function a(t,e=!0){switch(typeof t){case"object":return e?s(t):h;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,i.iu)(e)?e.byteLength+c:Array.isArray(e)?l(e,16):0:0),0)}function l(t,e){return u+t.length*e}const h=32,u=16,c=145},51624(t,e,r){r.d(e,{A:()=>h});var i=r(44208),n=r(69397),s=r(93687);const a=4294967296,o=new TextDecoder("utf-8"),l=(0,i.A)("safari")||(0,i.A)("ios")?6:(0,i.A)("ff")?12:32;class h{constructor(t,e,r=0,i=t?.byteLength??0){this._tag=0,this._dataType=99,this._init(t,e,r,i)}[Symbol.dispose](){this.release()}_init(t,e,r,i){this._data=t,this._dataView=e,this._pos=r,this._end=i}get usedMemory(){return 64+(0,n.Qf)(this._data)}asUnsafe(){return this}clone(){return new h(this._data,this._dataView,this._pos,this._end)}clonePooled(){return h.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(t,e,r=0,i=t?.byteLength??0){let n=h.pool.acquire();return n._init(t,e,r,i),n}pos(){return this._pos}move(t){this._pos=t}nextTag(t){for(;;){if(this._pos===this._end)return!1;let e=this._decodeVarint();if(this._tag=e>>3,this._dataType=7&e,!t||t===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;let t=this._decodeVarint();return this._tag=t>>3,this._dataType=7&t,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let t=4294967295;if(t=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128||(t=(t|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)||(t=(t|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)||(t=(t|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)||(t=(t|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128))return t;throw Error("Varint overflow")}getPackedEnd(){let t=this.getUInt32();return this._pos+t}getUInt64(){return this._decodeVarint()}getSInt32(){let t=this.getUInt32();return t>>>1^-(1&t)}getSInt64(){return this._decodeSVarint()}getBool(){let t=0!==this._data[this._pos];return this._skip(1),t}getEnum(){return this._decodeVarint()}getFixed64(){let t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getUint32(e+4,!0)*a;return this._skip(8),r}getSFixed64(){let t=this._dataView,e=this._pos,r=t.getUint32(e,!0)+t.getInt32(e+4,!0)*a;return this._skip(8),r}getDouble(){let t=this._dataView.getFloat64(this._pos,!0);return this._skip(8),t}getFixed32(){let t=this._dataView.getUint32(this._pos,!0);return this._skip(4),t}getSFixed32(){let t=this._dataView.getInt32(this._pos,!0);return this._skip(4),t}getFloat(){let t=this._dataView.getFloat32(this._pos,!0);return this._skip(4),t}getString(){let t=this._getLength(),e=this._pos,r=this._toString(this._data,e,e+t);return this._skip(t),r}getBytes(){let t=this._getLength(),e=this._pos,r=this._toBytes(this._data,e,e+t);return this._skip(t),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(t,e,r,i){let n=this.getMessage(),s=t(n,e,r,i);return n.release(),s}processMessage(t){let e=this.getMessage(),r=t(e);return e.release(),r}getMessage(){let t=this._getLength(),e=h.pool.acquire();return e._init(this._data,this._dataView,this._pos,this._pos+t),this._skip(t),e}release(){h.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(t){this._skip(t)}_skip(t){if(this._pos+t>this._end)throw Error("Attempt to skip past the end of buffer!");this._pos+=t}_decodeVarint(){let t=this._data,e=this._pos,r=0,i=0;if(this._end-e>=10){if(i=t[e++],r|=127&i,128&i&&(i=t[e++],r|=(127&i)<<7,128&i&&(i=t[e++],r|=(127&i)<<14,128&i&&(i=t[e++],r|=(127&i)<<21,128&i&&(i=t[e++],r+=268435456*(127&i),128&i&&(i=t[e++],r+=34359738368*(127&i),128&i&&(i=t[e++],r+=4398046511104*(127&i),128&i&&(i=t[e++],r+=562949953421312*(127&i),128&i&&(i=t[e++],r+=72057594037927940*(127&i),128&i&&(i=t[e++],r+=0x8000000000000000*(127&i),128&i))))))))))throw Error("Varint too long!")}else{let n=1;for(;e!==this._end&&(i=t[e],128&i);)++e,r+=(127&i)*n,n*=128;if(e===this._end)throw Error("Varint overrun!");++e,r+=i*n}return this._pos=e,r}_decodeSVarint(){let t,e=this._data,r=0,i=0,n=1&e[this._pos];if(i=e[this._pos++],r|=127&i,!(128&i&&(i=e[this._pos++],r|=(127&i)<<7,128&i)&&(i=e[this._pos++],r|=(127&i)<<14,128&i)&&(i=e[this._pos++],r|=(127&i)<<21,128&i)&&(i=e[this._pos++],r+=268435456*(127&i),128&i)&&(i=e[this._pos++],r+=34359738368*(127&i),128&i)&&(i=e[this._pos++],r+=4398046511104*(127&i),128&i)))return n?-(r+1)/2:r/2;if(t=BigInt(r),i=e[this._pos++],t+=562949953421312n*BigInt(127&i),!(128&i&&(i=e[this._pos++],t+=72057594037927936n*BigInt(127&i),128&i)&&(i=e[this._pos++],t+=9223372036854775808n*BigInt(127&i),128&i)))return Number(n?-(t+1n)/2n:t/2n);throw Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(t,e,r){if((r=Math.min(this._end,r))-e>l){let i=t.subarray(e,r);return o.decode(i)}let i="",n="";for(let s=e;s<r;++s){let e=t[s];128&e?n+="%"+e.toString(16):(i+=decodeURIComponent(n)+String.fromCharCode(e),n="")}return n.length&&(i+=decodeURIComponent(n)),i}_toBytes(t,e,r){return r=Math.min(this._end,r),new Uint8Array(t.buffer,e,r-e)}static{this.pool=new s.A(()=>new h(null,null),void 0,t=>{t._data=null,t._dataView=null})}}},75585(t,e,r){function i(t){let e="normal",r="normal";if(t){let i=t.toLowerCase();i.includes("italic")?e="italic":i.includes("oblique")&&(e="oblique"),i.includes("bold")?r="bold":i.includes("light")&&(r="lighter")}return{style:e,weight:r}}r.d(e,{_:()=>i})},69754(t,e,r){r.d(e,{Z:()=>h,q:()=>l});var i=r(68197),n=r(75585);const s=/([A-Za-z_][\w-]*)\s*=\s*(['"])(.*?)\2/g,a=/&(amp|lt|gt|quot|apos);/g,o=/<\s*\/?\s*(?:CLR|BOL|_BOL|ITA|_ITA|UND|_UND|FNT|CHR)\b/i;function l(t){return o.test(t)}function h(t){if(!t.supportsRichText||!t.textString.includes("<"))return null;let e=function(t){return{font:{...t.font},fontSize:t.symbol?.height&&!isNaN(t.symbol.height)?t.symbol.height:10,characterSpacing:0}}(t),r=[],i=[],n=u(e),s="",a=!1,o=t.textString,l=()=>{if(!s)return;let t=c(s);if(!t)return void(s="");let e=i[i.length-1];e&&function(t,e){return t.fontSize===e.fontSize&&t.characterSpacing===e.characterSpacing&&t.font.family===e.font.family&&t.font.style===e.font.style&&t.font.weight===e.font.weight&&t.font.decoration===e.font.decoration&&function(t,e){return t===e||!!t&&!!e&&t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}(t.color,e.color)}(e,n)?e.text+=t:i.push({text:t,font:{...n.font},fontSize:n.fontSize,characterSpacing:n.characterSpacing,color:n.color}),s=""},h=0;for(;h<o.length;){let t=o[h];if("<"!==t){s+=t,h++;continue}let e=o.indexOf(">",h+1);if(-1===e)return null;let i=f(o.slice(h+1,e));if(!i)return null;if(a=!0,l(),i.isEnd){let t=r.pop();if(!t||t.name!==i.name)return null;n=t.previous}else{let t=u(n);n=g(n,i),r.push({name:i.name,previous:t})}h=e+1}return r.length?null:(l(),a?i.filter(t=>t.text.length>0):null)}function u(t){return{font:{...t.font},fontSize:t.fontSize,characterSpacing:t.characterSpacing,color:t.color}}function c(t){return t.replaceAll(a,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';case"apos":return"'";default:return t}})}function f(t){let e=t.trim();if(!e)return null;let r=e.startsWith("/"),i=r?e.slice(1).trim():e,n=/^([A-Za-z_][\w-]*)/.exec(i);if(!n)return null;let a,o=n[1],l=i.slice(o.length),h={};for(s.lastIndex=0;a=s.exec(l);)h[a[1]]=a[3];return{isEnd:r,name:o,attributes:h}}function g(t,e){let r=u(t);switch(e.name.toUpperCase()){case"BOL":r.font.weight="bold";break;case"_BOL":r.font.weight="normal";break;case"ITA":r.font.style="italic";break;case"_ITA":r.font.style="normal";break;case"UND":r.font.decoration="underline";break;case"_UND":r.font.decoration="none";break;case"FNT":!function(t,e){let{name:r,style:i,size:s,scale:a,wght:o,ital:l}=e;if(r&&(t.font.family=r),i){let e=(0,n._)(i);t.font.style=e.style,t.font.weight=e.weight}if(o){let e=Number(o);t.font.weight=e>=600?"bold":"normal"}if(l){let e=Number(l);isNaN(e)||(t.font.style=0===e?"normal":"italic")}if(s){let e=Number(s);!isNaN(e)&&e>0&&(t.fontSize=e)}if(a){let e=Number(a);!isNaN(e)&&e>0&&(t.fontSize*=e/100)}}(r,e.attributes);break;case"CLR":r.color=function(t){if(t.hex){let e=i.A.fromHex(t.hex)?.toArray();if(e){let r="alpha"in t?_(t.alpha):e[3];return[e[0],e[1],e[2],r]}}if("red"in t||"green"in t||"blue"in t)return[p(t.red),p(t.green),p(t.blue),_(t.alpha)];let e=d(t.cyan),r=d(t.magenta),n=d(t.yellow),s=d(t.black),a=_(t.alpha),o=d(t.tint,100)/100,l=1-s;return[Math.round(255*(1-e)*l*o),Math.round(255*(1-r)*l*o),Math.round(255*(1-n)*l*o),a]}(e.attributes);break;case"CHR":!function(t,e){let r=Number(e.spacing);!isNaN(r)&&r>=0&&(t.characterSpacing=r/100)}(r,e.attributes)}return r}function p(t){let e=Number(t);return function(t){return Math.max(0,Math.min(255,Math.round(t)))}(isNaN(e)?0:e)}function d(t,e=0){let r=Number(t);return function(t){return Math.max(0,Math.min(1,t))}((isNaN(r)?e:r)/100)}function _(t){return Math.round(255*d(t,100))}},16892(t,e,r){r.r(e),r.d(e,{default:()=>L});var i=r(56507),n=r(6371),s=r(57582),a=r(44208),o=r(53966),l=r(17676),h=r(2741);let u=null;async function c(){return u||=async function(){let t=await r.e(7290).then(()=>r(87290));return await t.default({module_or_path:(0,h.s)("esri/libs/librust-text/pkg/text_bg.wasm")}),t}(),u}var f=r(69754);const g={width:5,height:2,left:0,top:0};class p{constructor(t){this._values=new Float64Array(t),this._distances=new Float64Array(t),this._parabolaIndices=new Int32Array(t),this._parabolaBoundaries=new Float64Array(t+1)}compute(t,e,r){let{_values:i,_distances:n}=this;for(let s=0;s<e;s++){for(let n=0;n<r;n++)i[n]=t[n*e+s];this._compute1D(i,n,r);for(let i=0;i<r;i++)t[i*e+s]=n[i]}for(let s=0;s<r;s++){let r=s*e;for(let n=0;n<e;n++)i[n]=t[r+n];this._compute1D(i,n,e);for(let i=0;i<e;i++)t[r+i]=Math.sqrt(n[i])}}_compute1D(t,e,r){let{_parabolaIndices:i,_parabolaBoundaries:n}=this;i[0]=0,n[0]=-1/0,n[1]=1/0;let s=0;for(let e=1;e<r;e++){let r;do{let n=i[s];r=(t[e]+e*e-(t[n]+n*n))/(2*e-2*n)}while(r<=n[s]&&--s>-1);s++,i[s]=e,n[s]=r,n[s+1]=1/0}for(let s=0,a=0;s<r;s++){for(;n[a+1]<s;)a++;let r=s-i[a];e[s]=r*r+t[i[a]]}}}class d{constructor(t){this.pxDensity=4,this.sdfSizePx=t.sdfSizePx,this.sdfBufferPx=t.sdfBufferPx,this.rasterSizePx=this.pxDensity*this.sdfSizePx,this.rasterBufferPx=this.pxDensity*this.sdfBufferPx,this.radius=t.radius,this.cutoff=t.cutoff;let e=this.pxDensity*t.sdfSizePx*3;this.canvasSize=e;let r=new OffscreenCanvas(e,e);this.context=r.getContext("2d",{willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.gridOuter=new Float64Array(e*e),this.gridInner=new Float64Array(e*e),this.distanceTransform=new p(e)}draw(t,e){let{context:r,gridInner:i,gridOuter:n,rasterSizePx:s,rasterBufferPx:a,canvasSize:o,radius:l,cutoff:h}=this,u=s/t.units_per_em();this.context.fillStyle="black",this.context.strokeStyle="black",this.context.resetTransform(),this.context.clearRect(0,0,o,o),this.context.translate(s,s),this.context.scale(u,u);let c=t.paintCurves(e,r);if(!c)return null;let f=c.xMin*u,g=c.xMax*u,p=c.yMin*u,d=c.yMax*u;c.free();let _=Math.ceil(g-f),y=Math.ceil(d-p),m=Math.floor(s+f-a),w=Math.floor(s+p-a),b=_+2*a,A=y+2*a,S=new Float32Array(Math.max(b*A,0)),T=r.getImageData(m,w,b,A);n.fill(Number.MAX_VALUE,0,S.length),i.fill(0,0,S.length);for(let t=0;t<A;t++)for(let e=0;e<b;e++){let r=A-1-t,s=T.data[4*(r*b+e)+3]/255;if(0===s)continue;let a=t*b+e;if(1===s)n[a]=0,i[a]=Number.MAX_VALUE;else{let t=.5-s;n[a]=t>0?t*t:0,i[a]=t<0?t*t:0}}this.distanceTransform.compute(n,b,A),this.distanceTransform.compute(i,b,A);for(let t=0;t<S.length;t++)S[t]=n[t]-i[t];let x=Math.ceil(b/this.pxDensity),k=Math.ceil(A/this.pxDensity),v=this.pxDensity*this.pxDensity,L=new Uint8ClampedArray(Math.max(x*k,0));for(let t=0;t<k;t++)for(let e=0;e<x;e++){let r=0;for(let i=0;i<this.pxDensity;i++)for(let n=0;n<this.pxDensity;n++)e+n>b||t+i>A||(r+=S[(this.pxDensity*t+i)*b+(this.pxDensity*e+n)]);let i=r/this.pxDensity/v/l+h;L[t*x+e]=Math.round(255-255*i)}let M=u*t.face_height(),N=Math.round(d-M+2*a),R=Math.round(f-a);return{buffer:L,rect:{width:Math.ceil(_/this.pxDensity),height:Math.ceil(y/this.pxDensity),top:Math.round(N/this.pxDensity),left:Math.round(R/this.pxDensity)}}}}var _=r(92602),y=r(51624);class m{constructor(t){this._rects=[],this._shapings=[],this._bitmaps=[];let e=new Map,r=0;for(;t.next();)switch(t.tag()){case 1:{let i=t.getMessage();for(;i.next();)switch(i.tag()){case 3:{let t,n,s,a,o,l,h,u=i.getMessage();for(;u.next();)switch(u.tag()){case 1:t=u.getUInt32();break;case 2:n=u.getBytes();break;case 3:s=u.getUInt32();break;case 4:a=u.getUInt32();break;case 5:o=u.getSInt32();break;case 6:l=u.getSInt32();break;case 7:h=u.getUInt32();break;default:u.skip()}if(u.release(),t){let i={width:s,height:a,left:o,top:l};this._rects[t]=i;let u={xOffset:0,yOffset:0,xAdvance:h,yAdvance:0};if(this._shapings[t]=u,n){let i=n.length;e.set(t,n),this._bitmaps[t]={start:r,length:i},r+=i}}break}default:i.skip()}i.release();break}default:t.skip()}this._buffer=new Uint8Array(r);for(let[t,r]of e)this._buffer.set(r,this._bitmaps[t].start)}getRect(t){return this._rects.at(t)}getShaping(t){return this._shapings.at(t)}getBitmap(t){let e=this._bitmaps.at(t);if(void 0!==e&&0!==e.length)return this._buffer.subarray(e.start,e.start+e.length)}}class w{constructor(){this._ranges=[]}getRange(t){return this._ranges.at(t)}addRange(t,e){this._ranges[t]=e}}class b{constructor(t){this._glyphInfo=new Map,this._baseURL=t,this._woff2URL=`${_.A.fontsUrl}/woff2/{fontstack}.woff2`}async fetchRange(t,e,r){let n=this._getFontStack(t);if(n.getRange(e))return;let s=256*e,a=s+255,o=this._baseURL.replace("{fontstack}",t).replace("{range}",s+"-"+a);return(0,i.A)(o,{responseType:"array-buffer",signal:r?.signal}).then(t=>{n.addRange(e,new m(new y.A(new Uint8Array(t.data),new DataView(t.data))))})}async preloadASCIIRange(t){let e=this._getFontStack(t),r=this._baseURL.replace("{fontstack}",t).replace("{range}","0-255"),n=await(0,i.A)(r,{responseType:"array-buffer"}),s=new m(new y.A(new Uint8Array(n.data),new DataView(n.data)));for(let t=0;t<=255;t++)e.getRange(t)||e.addRange(t,s)}getRange(t,e){return this._glyphInfo.get(t)?.getRange(Math.floor(e/256))}woffURL(t){return this._woff2URL.replace("{fontstack}",t)}_getFontStack(t){return this._glyphInfo.get(t)||this._glyphInfo.set(t,new w),this._glyphInfo.get(t)}}function A(t,e,r,i){return 1|t<<1|!!r<<2|("Nearest"===i)<<3|e<<4}var S=r(18989);class T{constructor(t,e){this._width=0,this._height=0,this._free=[],this._width=t,this._height=e,this._free.push(new S.A(0,0,t,e))}get width(){return this._width}get height(){return this._height}allocate(t,e){if(t>this._width||e>this._height)return new S.A;let r=null,i=-1;for(let n=0;n<this._free.length;++n){let s=this._free[n];t<=s.width&&e<=s.height&&(null===r||s.y<=r.y&&s.x<=r.x)&&(r=s,i=n)}return null===r?new S.A:(this._free.splice(i,1),r.width<r.height?(r.width>t&&this._free.push(new S.A(r.x+t,r.y,r.width-t,e)),r.height>e&&this._free.push(new S.A(r.x,r.y+e,r.width,r.height-e))):(r.width>t&&this._free.push(new S.A(r.x+t,r.y,r.width-t,r.height)),r.height>e&&this._free.push(new S.A(r.x,r.y+e,t,r.height-e))),new S.A(r.x,r.y,t,e))}release(t){for(let e=0;e<this._free.length;++e){let r=this._free[e];if(r.y===t.y&&r.height===t.height&&r.x+r.width===t.x)r.width+=t.width;else if(r.x===t.x&&r.width===t.width&&r.y+r.height===t.y)r.height+=t.height;else if(t.y===r.y&&t.height===r.height&&t.x+t.width===r.x)r.x=t.x,r.width+=t.width;else{if(t.x!==r.x||t.width!==r.width||t.y+t.height!==r.y)continue;r.y=t.y,r.height+=t.height}this._free.splice(e,1),this.release(t)}this._free.push(t)}}const x="arial-unicode-ms-regular",k=/[\u0695\u0698\u06a9\u06af\u06b5\u06be\u06c6\u06cc\u06ce\u06d5\u06ca]|\p{Script=Thai}|\p{Script=Lao}|\p{Script=Tamil}|\p{Script=Khmer}/u,v=new Set(["Noto Sans Khmer","Noto Sans Lao","Noto Sans Myanmar","Noto Sans Thai"]);class L{constructor(){this._glyphSources=new Map,this._snapCoords=!0,this._currentPage=0,this._faces=new Map,this._facePromises=new Map,this._pbfRangePromises=new Map,this._glyphCache=new Map,this._pbfGlyphCache=new Map,this._invalidFonts=new Set,this._preloadCache={},this._glyphSDFCreator=new d({sdfSizePx:24,sdfBufferPx:3,radius:8,cutoff:.25})}set remoteClient(t){this._client=t.createInvokeProxy();let e=(0,l.QZ)(this._client.getOptions());this._inited=this._init(e)}async rasterizeText(t,e,r){await this._inited;let i=e.symbol?(0,f.Z)(e):null;return i?{type:"rich-glyphs",runs:(await Promise.all(i.map(async e=>({fontSize:e.fontSize,characterSpacing:e.characterSpacing,decoration:e.font.decoration,color:e.color,glyphs:await this._rasterizeTextRun(t,e.font,e.text,r)})))).filter(t=>null!=t.glyphs)}:this._rasterizeTextRun(t,e.font,e.textString,r)}async _rasterizeTextRun(t,e,r,i){let n=(0,s.rK)(e),l=this._invalidFonts.has(n),h=!!(0,a.A)("esri-2d-force-complex-shaping"),u=!!(0,a.A)("esri-2d-complex-shaping")&&k.test(r),c=v.has(e.family),f=h||u||c,g=l?x:n,p=await this.getGlyphItems(r,f,t,g,!1,i);return p||=(((t,e="")=>{o.A.getLogger("esri.views.MapView").warnOnce(t,e)})(`Font ${n} is not available on the web, using "Arial Unicode MS Regular"`),this._invalidFonts.add(n),await this.getGlyphItems(r,f,t,x,!1,i)),p}async getGlyphItems(t,e,r,i,s,o){await this._inited;let l,h,u,c=this._getSource(r);if((0,a.A)("esri-2d-stabilize-glyphs")&&await this.preloadASCIIGlyphCache(c,i).catch(()=>{}),e){let e=await this._getFace(c,i);if(!e)return null;let r=this._glyphCache.get(i);r||(r=new Map,this._glyphCache.set(i,r));let{shaping:n,isRTL:s}=this._shape(e,t);u=s,l=n.map(t=>this._getShapedGlyph(e,r,t)),h={baseline:e.baseline()/24,midline:e.midline()/24}}else{let e=this._pbfGlyphCache.get(i);e||(e=new Map,this._pbfGlyphCache.set(i,e));let[r,a,h]=(0,n.y)(t),f=function(t){let e=[];for(let r=0;r<t.length;r++)e.push(t.charCodeAt(r));return e}(r);try{await this._fetchRanges(c,i,f,o)}catch{return null}u=a,l=f.map(t=>this._getPBFGlyph(e,c,i,t,s)).filter(t=>!!t)}let f=l.filter(t=>t.needsRecord);return f.length>0&&await this._client.recordGlyphs(f),{type:"glyphs",glyphs:l,faceInfo:h,isRightToLeft:u,sdfSize:24,sdfRadius:8,sdfPadding:3}}async _init(t){let e=await t;if(!e)return;let{width:r,height:i,snapCoords:n}=e;this._glyphCache=new Map,this._pbfGlyphCache=new Map,this._binPack=new T(r,i),this._snapCoords=n,this._currentPage=0,this._initDecorationGlyphs()}_getShapedGlyph(t,e,r){let i,n,s=e.get(r.glyphId);if(!s){i=this._glyphSDFCreator.draw(t,r.glyphId);let a=this._glyphSDFCreator.sdfBufferPx;s={mosaicItem:{rect:this._recordGlyph(i?.rect,a),page:this._currentPage,sdf:!0,textureBinding:A(1,this._currentPage,!0)},glyphRect:i?.rect??{width:0,height:0,top:0,left:0}},e.set(r.glyphId,s),n=!0}return{mosaicItem:s.mosaicItem,rect:s.glyphRect,shaping:{xAdvance:r.xAdvance,yAdvance:r.yAdvance,xOffset:r.xOffset,yOffset:r.yOffset},code:r.isNewline?10:r.isWhitespace?32:NaN,sdf:i,needsRecord:n}}_getPBFGlyph(t,e,r,i,n=!1){let s,a,o=t.get(i);if(!o){let l=e.getRange(r,i),h=l?.getRect(i),u=l?.getShaping(i),c=l?.getBitmap(i);if(n&&(!h||!u))return;if(!h||!u)return N(i);s=c&&{buffer:c,rect:h},o={mosaicItem:{rect:c?this._recordGlyph(h,3):new S.A(0,0,0,0),sdf:!0,page:this._currentPage,textureBinding:A(1,this._currentPage,!0)},rect:h,shaping:u,code:i},a=!0,t.set(i,o)}let{mosaicItem:l,rect:h,shaping:u}=o;return{mosaicItem:l,rect:h,shaping:u,code:i,sdf:s,needsRecord:a}}_shape(t,e){let r=this._glyphSDFCreator.sdfSizePx,[i,s,a]=(0,n.y)(e,!1),o=new Uint32Array(Array.from(i).map((t,e)=>a.levels[a.targetToSource[e]]));return{shaping:t.shape(i,o,r),isRTL:s}}async _getFace(t,e,r){if(this._faces.has(e))return this._faces.get(e);let n=t.woffURL(e);return await M(this._facePromises,e,async()=>{let t=await(0,i.A)(n,{responseType:"array-buffer",...r}),s=(await c()).Face.parseWoff2(new Uint8Array(t.data));this._faces.set(e,s)}),this._faces.get(e)}_getSource(t){return this._glyphSources.has(t)||this._glyphSources.set(t,new b(t)),this._glyphSources.get(t)}async _fetchRanges(t,e,r,i){let n=function(t){let e=new Set;for(let r of t)e.add(Math.floor(r/256));return e}(r),s=[];n.forEach(r=>{s.push(this._fetchRange(t,e,r,i))}),await Promise.all(s)}async _fetchRange(t,e,r,i){if(r>256)return;let n=e+r;return M(this._pbfRangePromises,n,()=>t.fetchRange(e,r,i))}_allocNewPage(){this._currentPage++,this._binPack=new T(this._binPack.width,this._binPack.height),this._initDecorationGlyphs()}_recordGlyph(t,e){let r=this._binPack;if(!t||0===t.width)return new S.A;let i=t.width+2*e,n=t.height+2*e,s=i,a=n;this._snapCoords&&(s+=i%4?4-i%4:4,a+=n%4?4-n%4:4);let o=r.allocate(s,a);return o.isEmpty?(this._allocNewPage(),r.allocate(s,a)):o}_initDecorationGlyphs(){this._recordGlyph(g,3),this._recordGlyph(g,3)}preloadASCIIGlyphCache(t,e){let r=this._preloadCache[e];if(null!=r)return r;let i=t.preloadASCIIRange(e).then(async()=>{let r=this._pbfGlyphCache.get(e);r||(r=new Map,this._pbfGlyphCache.set(e,r));let i=[];for(let n=0;n<256;n++){let s=this._getPBFGlyph(r,t,e,n);s?.needsRecord&&i.push(s)}await this._client.recordGlyphs(i)},t=>{throw delete this._preloadCache[e],t});return this._preloadCache[e]=i,i}}function M(t,e,r){return t.has(e)||t.set(e,r().finally(()=>{t.delete(e)}).catch(t=>{(0,l.jH)(t)})),t.get(e)}const N=t=>({mosaicItem:{rect:new S.A(0,0,0,0),sdf:!0,page:0},rect:{left:0,width:0,height:0,top:0},shaping:{xAdvance:0,yAdvance:0,xOffset:0,yOffset:0},code:t})},18989(t,e,r){r.d(e,{A:()=>i});class i{constructor(t=0,e=0,r=0,i=0){this.x=t,this.y=e,this.width=r,this.height=i}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)}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,1666,7992,8125],{69397(e,t,r){r.d(t,{Qf:()=>o,Qh:()=>a,lM:()=>n});var s=r(34275);function n(e){if(!e)return 0;let t=h;for(let r in e)e.hasOwnProperty(r)&&(t+=i(e[r],!1));return t}function a(e){if(!e)return 0;if("number"==typeof e[0])return o(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=u;for(let s=0;s<t;s++)r+=i(e[s]);return r}(e);let t=h;for(let r in e)e.hasOwnProperty(r)&&(t+=i(e[r]));return t}function i(e,t=!0){switch(typeof e){case"object":return t?a(e):h;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+(t?(0,s.iu)(t)?t.byteLength+f:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return u+e.length*t}const h=32,u=16,f=145},87992(e,t,r){r.d(t,{JR:()=>Z,ME:()=>M,MY:()=>O,NO:()=>C,Nh:()=>P,V2:()=>Y,_s:()=>F,e6:()=>_,gh:()=>E,jm:()=>V,tr:()=>X,uX:()=>p});var s=r(32198),n=r(16930),a=r(19419),i=r(60408),o=r(21325),l=r(513),h=r(50954),u=r(79567),f=r(52006),g=r(49663),c=r(46068),m=r(92722);class p{constructor({type:e,spatialReference:t,vertexCount:r,vertexXY:s,vertexZ:n,vertexM:a,partCount:i,partOffsets:o,partFlags:l,segmentFlags:h,segmentIndices:u,segmentParams:f,segmentCountArc:g,segmentCountBezier:c}){this.segmentCountArc=0,this.segmentCountBezier=0,this.type=e,this.spatialReference=t,this.vertexCount=r,this.vertexXY=s,this.vertexZ=n,this.vertexM=a,this.partCount=i,this.partOffsets=o,this.partFlags=l,this.segmentFlags=h,this.segmentIndices=u,this.segmentParams=f,this.segmentCountArc=g,this.segmentCountBezier=c}get segmentParamCount(){return 10*this.segmentCountArc+4*this.segmentCountBezier}get segmentCountLine(){let{segmentCount:e,segmentCountArc:t,segmentCountBezier:r}=this;return e&&e-t-r}get segmentCount(){return"polyline"===this.type?this.vertexCount-this.partCount:"polygon"===this.type?this.vertexCount:0}get hasZ(){return null!=this.vertexZ}get hasM(){return null!=this.vertexM}hasCurves(){return this.segmentCountArc+this.segmentCountBezier>0}isMultipart(){return"polyline"===this.type||"polygon"===this.type}get usedMemory(){function e(e){return e?64+e.byteLength:0}return e(this.vertexXY)+e(this.vertexZ)+e(this.vertexM)+e(this.partOffsets)+e(this.partFlags)+e(this.segmentFlags)+e(this.segmentIndices)+e(this.segmentParams)}clone(){let{type:e,vertexCount:t,partCount:r,hasZ:s,hasM:n,segmentCountArc:a,segmentCountBezier:i}=this,o=Y(e,t,r,s,n,this.hasCurves(),a,i);o.spatialReference=this.spatialReference;let{vertexXY:l,vertexZ:h,vertexM:u}=this;if(o.vertexXY.set(l.subarray(0,2*t),0),o.vertexZ?.set(h.subarray(0,t),0),o.vertexM?.set(u.subarray(0,t),0),this.isMultipart()){let{partOffsets:e,partFlags:t}=this;o.partFlags.set(t.subarray(0,r+1)),o.partOffsets.set(e.subarray(0,r+1))}if(this.hasCurves()){let{segmentFlags:e,segmentIndices:r,segmentParams:s,segmentParamCount:n}=this;o.segmentFlags.set(e.subarray(0,t),0),o.segmentIndices.set(r.subarray(0,t),0),o.segmentParams.set(s.subarray(0,n),0)}return o}equals(e){return this.equalsWithinTolerance(e,0)}equalsWithinTolerance(e,t){if(null==e)return!1;if(this===e)return!0;if(!(0,o.aI)(this.spatialReference,e.spatialReference)||this.vertexCount!==e.vertexCount||this.partCount!==e.partCount||this.hasZ!==e.hasZ||this.hasM!==e.hasM||this.hasCurves()!==e.hasCurves()||this.segmentCountArc!==e.segmentCountArc||this.segmentCountBezier!==e.segmentCountBezier)return!1;let r=0===t?(e,t)=>e!==t||isNaN(e)!==isNaN(t):(e,r)=>Math.abs(e-r)>t||isNaN(e)!==isNaN(r);for(let t=0;t<this.vertexCount;++t)if(r(this.vertexXY[2*t],e.vertexXY[2*t])||r(this.vertexXY[2*t+1],e.vertexXY[2*t+1]))return!1;if(this.hasZ)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexZ[t],e.vertexZ[t]))return!1;if(this.hasM)for(let t=0;t<this.vertexCount;++t)if(r(this.vertexM[t],e.vertexM[t]))return!1;for(let t=0;t<this.partCount;++t)if(this.partFlags[t]!==e.partFlags[t]||this.partOffsets[t]!==e.partOffsets[t])return!1;if(this.hasCurves()){for(let t=0;t<this.vertexCount;++t)if(this.segmentFlags[t]!==e.segmentFlags[t]||this.segmentIndices[t]!==e.segmentIndices[t])return!1;for(let t=0;t<this.segmentParamCount;++t)if(r(this.segmentParams[t],e.segmentParams[t]))return!1}return!0}get parts(){return this.isMultipart()?new x(this):[][Symbol.iterator]()}}class x{constructor(e){this.geometry=e,this.value=new d(e)}get done(){return this.value.index>=this.geometry.partCount}next(){return++this.value.index,this}[Symbol.iterator](){return this}}class d{constructor(e){this.geometry=e,this.index=-1,this._readVertex=w(e),this._segments=new y(this)}get segments(){return this._segments.reset(),this._segments}get startVertex(){return this._readVertex(this.geometry.partOffsets[this.index])}get vertexCount(){let e=this.geometry.partOffsets;return e[this.index+1]-e[this.index]}}class y{constructor(e){this._part=e,this._partStart=0,this._partEnd=0,this.value=new v(e.geometry)}get _partIsClosed(){return!!(1&this._part.geometry.partFlags?.[this._part.index])}get done(){return this.value.indexOfStartVertex>this._partEnd}next(){++this.value.indexOfStartVertex;let e=this.value.indexOfStartVertex>=this._partEnd;return this.value.indexOfEndVertex=e&&this._partIsClosed?this._partStart:this.value.indexOfStartVertex+1,this}[Symbol.iterator](){return this}reset(){let{index:e}=this._part,t=this._part.geometry.partOffsets;this._partStart=t[e],this._partEnd=t[e+1]-(this._partIsClosed?1:2),this.value.indexOfStartVertex=this._partStart-1}}class v{constructor(e){this.geometry=e,this.indexOfStartVertex=-1,this.indexOfEndVertex=-1,this._readVertex=w(e)}get xStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex]}get yStart(){return this.geometry.vertexXY[2*this.indexOfStartVertex+1]}get zStart(){return this.geometry.vertexZ[this.indexOfStartVertex]}get mStart(){return this.geometry.vertexM[this.indexOfStartVertex]}get xEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex]}get yEnd(){return this.geometry.vertexXY[2*this.indexOfEndVertex+1]}get zEnd(){return this.geometry.vertexZ[this.indexOfEndVertex]}get mEnd(){return this.geometry.vertexM[this.indexOfEndVertex]}get start(){return this._readVertex(this.indexOfStartVertex)}get end(){return this._readVertex(this.indexOfEndVertex)}get curve(){let e=this.geometry.segmentFlags?.[this.indexOfStartVertex]??1;if(1===e)return this.end;let t=this.geometry.segmentParams,r=this.geometry.segmentIndices[this.indexOfStartVertex];if(2===e){let e=t[r++],s=t[r++],n=t[r++],a=t[r++];return{b:[this.end,[e,s],[n,a]]}}let s=t[r++],n=t[r++],a=t[r++],i=t[r++],o=t[r++],l=t[r++];r++,r++;let h=t[r++],u=t[r++];if(!(4&s)&&1===a)return{c:[this.end,[h,u]]};let f=2&s?0:1,g=1&s?0:1;return{a:[this.end,[o,l],f,g,i,n,a]}}}function C(e,t){let r={stack:[],error:void 0,hasError:!1};try{return t??=(0,a.Ie)(),(0,s.mS)(r,new A(e,["vertexZ","vertexM","spatialReference"]),!1),(0,a.bx)(t,function(e){let t,{vertexCount:r,vertexXY:n,vertexZ:i,vertexM:o}=e,l=R(e);if(e.hasCurves()){let r={stack:[],error:void 0,hasError:!1};try{(0,s.mS)(r,new A(e,["vertexZ","vertexM"]),!1);let n=(0,a.Ie)();for(let t of e.parts){let e=t.startVertex;for(let{curve:r}of t.segments)(0,u.e)(n,e,r),e=(0,f.yP)(r)}let[i,o,h,g]=n;t={xmin:i,ymin:o,xmax:h,ymax:g,spatialReference:l}}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}else{let e,s,a,i;e=s=1/0,a=i=-1/0;for(let t=0;t<r;++t){let r=n[2*t],o=n[2*t+1];e=Math.min(e,r),a=Math.max(a,r),s=Math.min(s,o),i=Math.max(i,o)}t={xmin:e,ymin:s,xmax:a,ymax:i,spatialReference:l}}if(i){let e=1/0,r=-1/0;for(let t of i)e=Math.min(e,t),r=Math.max(r,t);t.zmin=e,t.zmax=r}if(o){let e=1/0,r=-1/0;for(let t of o)e=Math.min(e,t),r=Math.max(r,t);t.mmin=e,t.mmax=r}return t}(e)),t}catch(e){r.error=e,r.hasError=!0}finally{(0,s.hk)(r)}}function M(e){let t,r,s;if((0,i.fT)(e)){s="point";let{x:n,y:a,z:i,m:o}=e,l=[n,a];null!=i&&l.push(i),null!=o&&l.push(o),r=[[l]],t=1}else(0,i.U9)(e)?(s="multipoint",r=[e.points],t=e.points.length):(0,i.Rg)(e)?(s="polyline",r=e.curvePaths??e.paths,t=r.reduce((e,t)=>e+t.length,0)):(s="polygon",r=e.curveRings??e.rings,t=r.reduce((e,t)=>(0===t.length||(e+=t.length,S(t[0],(0,f.yP)(t.at(-1)))&&--e),e),0));let n=Y(s,t,s.includes("point")?0:r.length,(0,i.Pv)(e),(0,i.W0)(e),(0,f.Ed)(e)),{hasZ:a,hasM:o,vertexXY:l,vertexZ:h,vertexM:u}=n;function g(e){l[2*m]=e[0],l[2*m+1]=e[1],a&&(h[m]=e[2]),o&&(u[m]=e[c]),++m}n.spatialReference=e.spatialReference??void 0;let c=n.hasZ?3:2,m=0;if(!n.isMultipart()){if(!a&&!o){for(let[e,t]of r[0])l[2*m]=e,l[2*m+1]=t,++m;return n}for(let e of r[0])g(e);return n}let p="polygon"===s,{partOffsets:x}=n,d=0;if(!(0,f.Ed)(e)){for(let e of r){if(x[d++]=m,0===e.length)continue;let t=e.length;if(p&&S(e[0],e.at(-1))&&--t,a||o)for(let r=0;r<t;++r)g(e[r]);else for(let r=0;r<t;++r){let[t,s]=e[r];l[2*m]=t,l[2*m+1]=s,++m}}return x[d]=m,n}function y(e){let t=v+e;if(t<=(n.segmentParams?.length??0))return;let r=t*N;r=20*Math.ceil(r/20);let s=n.segmentParams;n.segmentParams=new Float64Array(r),null!=s&&n.segmentParams.set(s)}let v=0;for(let e of r){if(n.partOffsets[d++]=m,0===e.length)continue;let t=e[0],r=t;for(let t=1;t<e.length;++t){let s=e[t];g(r);let a=m-1;(0,f.wY)(s)?(y(10),++n.segmentCountArc,v=F(r,s,n,a,v),r=s.a[0]):(0,f.DA)(s)?(y(10),++n.segmentCountArc,v=I(r,s,n,a,v),r=s.a[0]):(0,f.aO)(s)?(y(10),++n.segmentCountArc,v=_(r,s,n,a,v),r=s.c[0]):(0,f.n1)(s)?(y(4),++n.segmentCountBezier,v=X(0,s,n,a,v),r=s.b[0]):r=s}p&&S(t,r)||g(r)}return n.partOffsets[d]=m,n}function E(e){let t=w(e),{vertexCount:r,partCount:s,hasZ:n,hasM:a}=e,i=R(e),o=0;if(!e.isMultipart()){if("point"===e.type){let[t,r]=e.vertexXY;return{x:t,y:r,z:e.vertexZ?.[0],m:e.vertexM?.[0],spatialReference:i}}let s=[];for(;o<r;)s.push(t(o++));return{points:s,spatialReference:i,hasZ:n,hasM:a}}if(!e.hasCurves()){let r=[];for(let n=0;n<s;++n){let s=!!(1&e.partFlags[n]),a=e.partOffsets[n+1],i=[];for(;o<a;)i.push(t(o++));s&&i.length>0&&i.push([...i[0]]),r.push(i)}return"polygon"===e.type?{rings:r,hasZ:n,hasM:a,spatialReference:i}:{paths:r,hasZ:n,hasM:a,spatialReference:i}}let l=[];for(let{segments:t,startVertex:r}of e.parts){let e=[r];for(let{curve:r}of t)e.push(r);l.push(e)}return"polygon"===e.type?{rings:[],curveRings:l,hasZ:n,hasM:a,spatialReference:i}:{paths:[],curvePaths:l,hasZ:n,hasM:a,spatialReference:i}}function P(e,{lengths:t,coords:r,hasZ:s,hasM:n},a){let i=e.includes("point")?0:t.length,o="polygon"===e,l="point"===e?1:t.reduce((e,t)=>e+t,0)-(o?i:0);s??=!1,n??=!1;let h=Y(e,l,i,s,n,!1,0,0);if(h.spatialReference=a??void 0,!h.isMultipart()){for(let e=0,t=0;e<l;++e)h.vertexXY[2*e]=r[t++],h.vertexXY[2*e+1]=r[t++],s&&(h.vertexZ[e]=r[t++]),n&&(h.vertexM[e]=r[t++]);return h}let u=2+Number(s)+Number(n),f=0,g=0;h.partOffsets[0]=0;for(let e of t){let t=h.partOffsets[g],a=t+e-Number(o);h.partOffsets[++g]=a;for(let e=t;e<a;++e)h.vertexXY[2*e]=r[f++],h.vertexXY[2*e+1]=r[f++],s&&(h.vertexZ[e]=r[f++]),n&&(h.vertexM[e]=r[f++]);o&&(f+=u)}return h}function Z({type:e,vertexCount:t,vertexXY:r,vertexZ:s,vertexM:n,partCount:a,partOffsets:i,partFlags:o,hasZ:l,hasM:h}){let u=new m.A([],[],l,h);a=Math.max(a,1);let f=0;for(let e=0;e<a;++e){let a=i?.[e+1]??t,g=u.coords.length;for(let e=f;e<a;++e)u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(n[e]);if(o&&1&o[e]){let e=f;u.coords.push(r[2*e],r[2*e+1]),l&&u.coords.push(s[e]),h&&u.coords.push(n[e])}u.lengths.push((u.coords.length-g)/u.stride),f=a}return"point"===e&&(u.lengths.length=0),u}function V(...e){let t=new Set;for(let r of e){if(!r)continue;let e=[r.vertexXY,r.vertexZ,r.vertexM,r.partOffsets,r.partFlags,r.segmentFlags,r.segmentIndices,r.segmentParams];for(let r of e){let e=r?.buffer;e&&t.add(e)}}return Array.from(t)}function O(e,t){return"getSpatialReference"in e&&(t=function(e){if(null==e)return;let t=e.getText()||void 0,r=e.isCustomWkid()?0:e.getOldID();if(r<=0)return{wkt:t};let s=e.getLatestID();(s<=0||s===r)&&(s=void 0);let n=e.getVCS();if(null==n)return{wkid:r,latestWkid:s,wkt:t};let a=n.isCustomWkid()?0:n.getOldID();if(a<=0)return{wkt:t};let i=e.getLatestVerticalID();return(i<=0||i===a)&&(i=void 0),{wkid:r,wkt:t,latestWkid:s,vcsWkid:a,latestVcsWkid:i}}(e.getSpatialReference()),e=e.getGeometry()),new p({...e.toFlatGeometry(),spatialReference:t})}class A{constructor(e,t){this.target=e,this.keys=t,this.oldValues=t.map(t=>e[t]);for(let r of t)e[r]=void 0}[Symbol.dispose](){this.keys.map((e,t)=>{this.target[e]=this.oldValues[t]})}}function R({spatialReference:e}){return e instanceof n.A?e.toJSON():e}function w({vertexXY:e,vertexZ:t,vertexM:r}){return t?r?s=>[e[2*s],e[2*s+1],t[s],r[s]]:r=>[e[2*r],e[2*r+1],t[r]]:r?t=>[e[2*t],e[2*t+1],r[t]]:t=>[e[2*t],e[2*t+1]]}function S(e,t){return e.every((e,r)=>e===t[r])}function Y(e,t,r,s,n,a,i,o){i??=0,o??=0;let l=new p({type:e,vertexCount:t,vertexXY:null,vertexZ:void 0,vertexM:void 0,partCount:r,partOffsets:void 0,partFlags:void 0,segmentFlags:void 0,segmentIndices:void 0,segmentParams:void 0,segmentCountArc:i,segmentCountBezier:o}),h=2*Float64Array.BYTES_PER_ELEMENT*t;s&&(h+=Float64Array.BYTES_PER_ELEMENT*t),n&&(h+=Float64Array.BYTES_PER_ELEMENT*t),l.isMultipart()&&(h+=(r+1)*Int32Array.BYTES_PER_ELEMENT,h+=(r+1)*Int8Array.BYTES_PER_ELEMENT),a&&(h+=t*Int8Array.BYTES_PER_ELEMENT,h+=t*Int32Array.BYTES_PER_ELEMENT,h+=l.segmentParamCount*Float64Array.BYTES_PER_ELEMENT);let u=new ArrayBuffer(h),f=0;return l.vertexXY=new Float64Array(u,f,2*t),f+=l.vertexXY.byteLength,s&&(l.vertexZ=new Float64Array(u,f,t),f+=l.vertexZ.byteLength),n&&(l.vertexM=new Float64Array(u,f,t),f+=l.vertexM.byteLength),a&&(l.segmentParams=new Float64Array(u,f,l.segmentParamCount),f+=l.segmentParams.byteLength,l.segmentIndices=new Int32Array(u,f,t),l.segmentIndices.fill(z),f+=l.segmentIndices.byteLength),l.isMultipart()&&(l.partOffsets=new Int32Array(u,f,r+1),f+=l.partOffsets.byteLength,l.partFlags=new Int8Array(u,f,r+1),f+=l.partFlags.byteLength,"polygon"===l.type&&l.partFlags.subarray(0,r).fill(1)),a&&(l.segmentFlags=new Int8Array(u,f,t),l.segmentFlags.fill(1),f+=l.segmentFlags.byteLength),l}function F(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;let[o,[l,h],u,f,g,m,p]=t.a,x=4;f||(x|=1),u||(x|=2);let d=(0,c.SW)(e,t),[y,v]=(0,c.Uk)(d,.5);return n[i++]=x,n[i++]=m,n[i++]=p,n[i++]=g,n[i++]=l,n[i++]=h,n[i++]=d.u2-d.u1,n[i++]=d.u1,n[i++]=y,n[i++]=v,i}function I(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){r[a]=4,s[a]=i;let o=(0,g.io)(e,t);return b(o,4,...(0,l.mq)(o,.5),n,i)}function _(e,t,{segmentFlags:r,segmentIndices:s,segmentParams:n},a,i){return r[a]=4,s[a]=i,b((0,h.pM)(e,t),0,...t.c[1],n,i)}function b(e,t,r,s,n,a){let{cx:i,cy:o,thetaStart:l,thetaEnd:h,radius:u}=e;return l>h||(t|=1),Math.abs(h-l)<=Math.PI||(t|=2),n[a++]=t,n[a++]=u,n[a++]=1,n[a++]=0,n[a++]=i,n[a++]=o,n[a++]=h-l,n[a++]=l,n[a++]=r,n[a++]=s,a}function X(e,{b:[t,[r,s],[n,a]]},{segmentFlags:i,segmentIndices:o,segmentParams:l},h,u){return i[h]=2,o[h]=u,l[u++]=r,l[u++]=s,l[u++]=n,l[u++]=a,u}const N=1.61803,z=-1},78125(e,t,r){r.r(t),r.d(t,{fromExtent:()=>x,fromGeometry:()=>p,fromMultipoint:()=>d,fromPoint:()=>y,fromPolygon:()=>v,fromPolyline:()=>C,fromPolylineUsingImportOperator:()=>M,fromSpatialReference:()=>E,getSpatialReference:()=>m,toExtent:()=>Z,toGeometry:()=>P,toMultipoint:()=>V,toPoint:()=>O,toPolygon:()=>A,toPolyline:()=>R});var s=r(83661),n=r(55537),a=r(95213),i=r(88885),o=r(5443),l=r(48526),h=r(86738),u=r(39829),f=r(82799),g=(r(90293),r(83299));const c="_gxVersion";function m(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function p(e){switch(e.type){case"point":return y(e);case"multipoint":return d(e);case"polyline":return C(e);case"polygon":return v(e);case"extent":return x(e);default:throw Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(c)){let t=new a.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(2,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(1,0,e.zmin,e.zmax),e.setCacheValue(c,t)}return e.getCacheValue(c)}function d(e){if(!e.getCacheValue(c)){let t=new i.M,r=new a.P,s=e.points,n=e.hasM,o=e.hasZ,l=o?3:2;for(let e=0,a=s.length;e<a;e++){let a=s[e];r.setXYCoords(a[0],a[1]),o&&r.setZ(a[2]??0),n&&r.setM(a[l]??NaN),t.add(r)}e.setCacheValue(c,t)}return e.getCacheValue(c)}function y(e){if(!e.getCacheValue(c)){let t=new a.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(c,t)}return e.getCacheValue(c)}function v(e){if(!e.getCacheValue(c)){let{curveRings:t,hasM:r,hasZ:s,rings:n}=e,a=(0,g.fromGeometryToGXGeometry)({curveRings:t,hasM:r,hasZ:s,rings:n});e.setCacheValue(c,a)}return e.getCacheValue(c)}function C(e){if(!e.getCacheValue(c)){let{curvePaths:t,hasM:r,hasZ:s,paths:n}=e,a=(0,g.fromGeometryToGXGeometry)({curvePaths:t,hasM:r,hasZ:s,paths:n});e.setCacheValue(c,a)}return e.getCacheValue(c)}function M(e){if(!e.getCacheValue(c)){let{curvePaths:t,hasM:r,hasZ:s,paths:n}=e,a=(0,g.fromGeometryToGXGeometryUsingImportOperator)({curvePaths:t,hasM:r,hasZ:s,paths:n});e.setCacheValue(c,a)}return e.getCacheValue(c)}function E(e){return e.cache?(e.cache[c]??=(0,g.fromSpatialReference)(e),e.cache[c]):(0,g.fromSpatialReference)(e)}function P(e,t){if(e)switch(e.getGeometryType()){case n.G.enumPoint:return O(e,t);case n.G.enumEnvelope:return Z(e,t);case n.G.enumMultiPoint:return V(e,t);case n.G.enumPolyline:return R(e,t);case n.G.enumPolygon:return A(e,t)}return null}function Z(e,t){if(e.isEmpty())return null;let r=new o.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),s=e.getDescription();if(s.hasM()){let t=e.queryInterval(2,0);r.mmin=t.vmin,r.mmax=t.vmax}if(s.hasZ()){let t=e.queryInterval(1,0);r.zmin=t.vmin,r.zmax=t.vmax}return r.setCacheValue(c,e),r}function V(e,t){if(e.isEmpty())return null;let r=e.getDescription(),s=r.hasM(),n=r.hasZ(),i=[],o=new a.P;for(let t=0,r=e.getPointCount();t<r;t++){e.getPointByVal(t,o);let r=[o.getX(),o.getY()];n&&r.push(o.getZ()),s&&r.push(o.getM()),i.push(r)}let h=new l.A({hasM:s,hasZ:n,points:i,spatialReference:t});return h.setCacheValue(c,e),h}function O(e,t){if(e instanceof s.P)return new h.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;let r=new h.A({x:e.getX(),y:e.getY(),spatialReference:t}),n=e.getDescription();return n.hasM()&&(r.m=e.getM()),n.hasZ()&&(r.z=e.getZ()),r.setCacheValue(c,e),r}function A(e,t){if(e.isEmpty())return null;let r=u.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(c,e),r}function R(e,t){if(e.isEmpty())return null;let r=f.A.fromJSON({...(0,g.toGeometry)(e,null),spatialReference:t});return r.setCacheValue(c,e),r}},92722(e,t,r){r.d(t,{A:()=>n});var s=r(69397);class n{constructor(e=[],t=[],r=!1,s=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=s}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:s}){return new n(e,t,r||!1,s||!1)}static fromRect([e,t,r,s]){let a=r-e,i=s-t;return new n([5],[e,t,a,0,0,i,-a,0,0,-i])}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((e,t)=>e+t,0)}get usedMemory(){return 64+(0,s.Qf)(this.lengths,this.coords)}get stride(){return+!!this.hasZ+2+ +!!this.hasM}area(){if(this.isPoint)return 0;let e=0,t=0;for(let r of this.lengths){if(r<3)continue;let{stride:s}=this,n=this.coords[s*t],a=this.coords[s*t+1];for(let i=1;i<r;i+=1){let r=s*(t+i),o=this.coords[r],l=this.coords[r+1];e+=-.5*(o-n)*(l+a),n=o,a=l}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);let{stride:r}=this;for(let s of this.lengths){for(let n=0;n<s;n++){let s=r*(t+n);e(this.coords[s],this.coords[s+1])}t+=s}}deltaDecode(){let e=this.clone(),{coords:t,lengths:r}=e,s=0,{stride:n}=this;for(let e of r){for(let r=1;r<e;r++){let e=n*(s+r);t[e]+=t[e-n],t[e+1]+=t[e+1-n]}s+=e}return e}clone(e){if(this.isPoint)return new n([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);let t=Array.from(this.lengths),{stride:r,size:s}=this,a=this.coords.slice(0,s*r);return e?(e.set(a),new n(t,e,this.hasZ,this.hasM)):new n(t,Array.from(a),this.hasZ,this.hasM)}justXY(){let{stride:e,size:t}=this;if(2===e)return this;let r=Array(t*e);for(let t=0,s=0;t<r.length;t+=e)r[s++]=this.coords[t],r[s++]=this.coords[t+1];return new n(this.lengths,r,!1,!1)}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[931,3312,5077,8361],{52106(e,t,i){i.d(t,{A:()=>I});var r,o,l=i(32198),s=i(37838),n=i(69540),a=i(51447),u=i(25482),p=i(53966),d=i(36708),y=i(24326),c=i(91429),h=i(12195),g=i(65864),m=i(50498),f=i(55156),v=i(60950),b=i(54339),S=i(94128),M=i(33910);const T=Symbol("meshGeometryHandles");function C(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let I=class extends((0,n.OU)(u.o)){static{r=S.Z}static{o=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:C(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(o.action=r),"attributes"===e&&(o.attributeName=r),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(T);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],T)}};(0,l.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,g.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],I.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,c.MZ)({value:null})],I.prototype,"attributes",null),(0,l.Cg)([(0,c.MZ)({value:null,types:m.yR,json:{read:g.rS}})],I.prototype,"geometry",null),(0,l.Cg)([(0,c.MZ)()],I.prototype,"distance",void 0),(0,l.Cg)([(0,c.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,l.Cg)([(0,c.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,l.Cg)([(0,c.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,l.Cg)([(0,c.MZ)({type:s.A,value:null})],I.prototype,"popupTemplate",null),(0,l.Cg)([(0,c.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,c.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],I.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,c.MZ)({value:null,types:M.Es})],I.prototype,"symbol",null),(0,l.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,l.Cg)([(0,c.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=o=(0,l.Cg)([(0,c.$K)("esri.Graphic")],I)},6797(e,t,i){i.d(t,{Ui:()=>y});var r=i(69622),o=i(7762),l=i(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function n(e){return e instanceof r.A}function a(e){return e instanceof o.A?Object.keys(e.items):n(e)?(0,l.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function d(e,t){let i=e.diff;if(i&&"function"==typeof i)return i(e,t);let r=a(e),o=a(t);if(0===r.length&&0===o.length)return;if(!r.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let l=o.filter(e=>!r.includes(e)),y=r.filter(e=>!o.includes(e)),c=r.filter(i=>o.includes(i)&&u(e,i)!==u(t,i)).concat(l,y).sort(),h=p(e);if(h&&s.has(h)&&c.length)return{type:"complete",oldValue:e,newValue:t};let g,m=n(e)&&n(t);for(let r of c){let o,l=u(e,r),s=u(t,r);if((m||"function"!=typeof l&&"function"!=typeof s)&&l!==s&&(null!=l||null!=s)){if(i&&i[r]&&"function"==typeof i[r])o=i[r]?.(l,s);else if(l instanceof Date&&s instanceof Date){if(l.getTime()===s.getTime())continue;o={type:"complete",oldValue:l,newValue:s}}else o="object"==typeof l&&"object"==typeof s&&p(l)===p(s)?d(l,s):{type:"complete",oldValue:l,newValue:s};null!=o&&(null==g?g={type:"partial",diff:{[r]:o}}:g.diff[r]=o)}}return g}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},13069(e,t,i){i.d(t,{AG:()=>n,lk:()=>o,vD:()=>s,yS:()=>l});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function l(){return`{${o().toUpperCase()}}`}function s(){return`{${o()}}`}function n(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,i){i.d(t,{I:()=>o});const r=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},25077(e,t,i){i.r(t),i.d(t,{default:()=>J});var r=i(32198),o=i(37838),l=i(56507),s=i(69540),n=i(49186),a=i(36563),u=i(25728),p=i(17676),d=i(91429),y=i(16930),c=i(41910),h=i(55156),g=i(60950),m=i(89808),f=i(99959);const v=Symbol("isDimensionFeatureGraphicOrigin");var b;class S extends f.A{get[(b=v,g.ym)](){return this.layer}get[h.e](){return this.layer}get[m.Q](){return this.layer}get[c.e7](){return this.layer}constructor(e){super(),this[b]=!0,this.type="dimension-feature",this.layer=e}get id(){return this.layer.id}}var M=i(4146),T=i(52136),C=i(18768),I=i(63074),w=i(69208),A=i(40775),E=i(10086),x=i(99644),_=i(34287),F=i(8303),L=i(54310),D=i(25036),Z=i(82935),O=i(60694),j=i(10873),P=i(15426),N=i(17036),R=i(30524),G=i(91908),z=i(97552),q=i(30291),$=i(36005);const k="dimension-feature-layer",V=(0,N.p)();let K=class extends((0,x.z)((0,A.I)((0,E.j)((0,I.dM)((0,Z.e)((0,D.j)((0,L.J)((0,C.b)((0,_.q)((0,F.A)((0,u.M)((0,w.d)((0,T.p)((0,s.OU)(M.A))))))))))))))){constructor(e){super(e),this.barrierWeight="high",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new S(this),this.operationalLayerType="ArcGISDimensionLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.styleCollection=null,this.sublayerTitleMode="item-title",this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Dimension Layer"]),this.symbolFields=["STYLEID","BEGINX","BEGINY","ENDX","ENDY","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","DIMX","DIMY","TEXTX","TEXTY","DIMLENGTH","DIMTYPE","EXTANGLE","TEXTANGLE","USECUSTOMLENGTH","CUSTOMLENGTH "],this.type="dimension-feature",this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{let{save:o,saveAs:l}=await i.e(5740).then(()=>i(33359));switch(e){case 0:return o(this,t);case 1:return l(this,r,t)}})}destroy(){this.source?.destroy()}load(e){let t=e?.signal,i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(p.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new n.A(`${k}:missing-url`,"DimensionFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.styleCollection)throw new n.A(`${k}:missing-style-collection`,"Invalid service with no style collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,P.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readTitleFromService(e,t){let{url:i}=this,r=t.name||(0,O.qg)(i)?.title;switch(this.sublayerTitleMode){case"item-title":if(i)return(0,O.yG)(i,r);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==r)return e=(0,O.cr)(e),r?`${e} - ${(0,O.cr)(r)}`:e;break}}return r?(0,O.cr)(r):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}createPopupTemplate(e){return(0,q.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{let{default:o}=await(0,p.qr)(Promise.all([i.e(893),i.e(7013),i.e(3467)]).then(()=>i(65515)),e),l=new o({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,a.Bf)((0,p.u7)(e,()=>l.cancelLoad())??(0,a.hA)()),!1),await l.load({signal:e}),l}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,P.VZ)(this);return e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){return(0,P.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(z.A.from(e)??i.createQuery(),t),o=this.graphicOrigin;if(r?.features)for(let e of r.features)e.layer=e.sourceLayer=i,e.origin=o;return r}async queryObjectIds(e,t){let i=await this.load();return i.source.queryObjectIds(z.A.from(e)??i.createQuery(),t)}async queryFeatureCount(e,t){let i=await this.load();return i.source.queryFeatureCount(z.A.from(e)??i.createQuery(),t)}async queryExtent(e,t){let i=await this.load();return i.source.queryExtent(z.A.from(e)??i.createQuery(),t)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return this.loaded&&(0,G.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,R.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await Promise.all([t.reload({signal:e}),this.loadDataElement({signal:e})]),await this.initLayerProperties(t)}async hasDataChanged(){return(0,P.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new n.A(k+":unsupported-version","The feature service must be version 10.8 or above.");let e=["DIMLENGTH","BEGINX","BEGINY","ENDX","ENDY","DIMX","DIMY","TEXTX","TEXTY","DIMTYPE","EXTANGLE","STYLEID","USECUSTOMLENGTH","CUSTOMLENGTH","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","TEXTANGLE"],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new n.A(k+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,l.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;return t?(this.applyPreferredHost(t),[...t.layers||[],...t.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id):void 0})}};(0,r.Cg)([(0,d.MZ)({type:y.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],K.prototype,"attributeSpatialReference",void 0),(0,r.Cg)([(0,d.MZ)(j.es)],K.prototype,"barrierWeight",void 0),(0,r.Cg)([(0,d.MZ)({nonNullable:!0,json:{name:"enableEditing",write:!0}})],K.prototype,"editingEnabled",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,d.MZ)({...V.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],K.prototype,"fields",void 0),(0,r.Cg)([(0,d.MZ)(V.fieldsIndex)],K.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,clonable:!1})],K.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,d.MZ)(j.id)],K.prototype,"id",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],K.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:["ArcGISDimensionLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],K.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,d.MZ)(V.outFields)],K.prototype,"outFields",void 0),(0,r.Cg)([(0,d.MZ)(j.M6)],K.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:o.A,json:{name:"popupInfo",write:!0}})],K.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"referenceScale",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1,readOnly:!0})],K.prototype,"source",void 0),(0,r.Cg)([(0,d.MZ)()],K.prototype,"styleCollection",void 0),(0,r.Cg)([(0,d.MZ)({type:String})],K.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"symbolFields",void 0),(0,r.Cg)([(0,$.w)("service","title",["name"])],K.prototype,"readTitleFromService",null),(0,r.Cg)([(0,$.w)("portal-item","title")],K.prototype,"readTitleFromPortalItem",null),(0,r.Cg)([(0,d.MZ)({json:{read:!1},value:"dimension-feature",readOnly:!0})],K.prototype,"type",void 0),K=(0,r.Cg)([(0,d.$K)("esri.layers.DimensionFeatureLayer")],K);const J=K},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>o})},52136(e,t,i){var r=i(32198),o=i(91429);i.d(t,["p",0,e=>{let t=e,i=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,r.Cg)([(0,o.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},40775(e,t,i){var r=i(32198),o=i(56507),l=i(49186),s=i(84952),n=i(91429),a=i(95250);function u(e,t){let i=e.indexOf(t);return-1===i?void 0:e[i+1]}function p(e,t){let i=u(e,t);return i&&"string"==typeof i?JSON.parse(i):null}function d(e){let t=u(e,"ReferenceScale")??0;return"string"==typeof t?parseFloat(t):t}function y(e){return p(e,"SymbolCollection")??void 0}function c(e){return p(e,"StyleCollection")??void 0}i.d(t,["I",0,e=>{let t=e,i=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new l.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");let t=(0,s.fj)(this.url,"queryDataElements"),i={f:"json",layers:this.layerId},{data:r}=await(0,o.A)(t,{...e,responseType:"json",query:i}),n=r.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!n)throw new l.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");let u=n.extensionProperties?.propertySetItems??[],p=d(u),h=(0,a.S)(y(u)),g=(0,a.S)(c(u));this.read({referenceScale:p,symbolCollection:h,styleCollection:g},{origin:"service"})}};return i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.DataElementMixin")],i),i}])},28032(e,t,i){i.d(t,{A:()=>a});var r=i(32198),o=i(69540),l=i(25482),s=i(91429),n=i(56400);let a=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,s.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,s.MZ)((0,n.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,i){i.d(t,{A:()=>a});var r,o=i(32198),l=i(7762),s=i(25482),n=i(91429);let a=r=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new l.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,o.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,i){i.d(t,{A:()=>p});var r=i(32198),o=i(69540),l=i(66552),s=i(25482),n=i(91429);const a=new l.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new l.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,r.Cg)([(0,n.$K)("esri.layers.support.Relationship")],p)},32730(e,t,i){i.d(t,{BI:()=>d,D3:()=>u,XJ:()=>p,lc:()=>a,mX:()=>c,rU:()=>y,tH:()=>v,zA:()=>S});var r=i(799);const o=RegExp("__begin__","ig"),l=RegExp("__end__","ig"),s=RegExp("^__begin__","i"),n=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function p(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function d(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return c(t.expression);case"arcade":return t.expression}return null}function y(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(h))?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function c(e){let t;return e?(t=(0,r.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=s.test(t)?t.replace(s,""):'"'+t,t=n.test(t)?t.replace(n,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(l,' + "')):t='""',t}const h=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,f=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=g.exec(e)||m.exec(e);return t?t[1]||t[3]:(t=f.exec(e),t?t[2]:null)}const b=Symbol("LabelClassInstance");function S(e){return"object"==typeof e&&!!e&&b in e}i.d(t,["vK",0,b])},41366(e,t,i){var r=i(32198),o=i(66552),l=i(53966),s=i(91429),n=i(93223);const a=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";i.d(t,["K",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&p||i&&u||null,t&&i&&l.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,n.e)(a,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,a])},95250(e,t,i){function r(e){return o(e,{CIMRGBColor:l,CIMCharacterMarker:s})}function o(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>o(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);let i={};for(let[r,l]of Object.entries(e))i[r]=o(l,t);return i}return e}function l(e){let[t,i,r,o]=e.values;return[t,i,r,255*o/100]}function s(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}i.d(t,{S:()=>r})},93470(e,t,i){const r=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},l={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,l])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[931,3312,5077,8361],{52106(e,t,i){i.d(t,{A:()=>I});var r,o,l=i(32198),s=i(37838),n=i(69540),a=i(51447),u=i(25482),p=i(53966),d=i(36708),y=i(24326),c=i(91429),h=i(12195),g=i(65864),m=i(50498),f=i(55156),v=i(60950),b=i(54339),S=i(94128),M=i(33910);const T=Symbol("meshGeometryHandles");function C(e){if(null==e)return null;let t={};for(let i in e){let r=e[i];r&&(t[i]=r.toJSON())}return 0===Object.keys(t).length?null:t}let I=class extends((0,n.OU)(u.o)){static{r=S.Z}static{o=this}constructor(e){super(e),this[r]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let i=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[i,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,f.I)(this.origin);if(e)return(0,b.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){let e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:C(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,h.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,r){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let o={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(o.action=r),"attributes"===e&&(o.attributeName=r),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(T);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,d.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,d.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],T)}};(0,l.Cg)([(0,c.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let i in e){let r=(0,g.rS)(e[i]);r&&(t[i]=r)}return 0===Object.keys(t).length?null:t}}})],I.prototype,"aggregateGeometries",null),(0,l.Cg)([(0,c.MZ)({value:null})],I.prototype,"attributes",null),(0,l.Cg)([(0,c.MZ)({value:null,types:m.yR,json:{read:g.rS}})],I.prototype,"geometry",null),(0,l.Cg)([(0,c.MZ)()],I.prototype,"distance",void 0),(0,l.Cg)([(0,c.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,l.Cg)([(0,c.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,l.Cg)([(0,c.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,l.Cg)([(0,c.MZ)({type:s.A,value:null})],I.prototype,"popupTemplate",null),(0,l.Cg)([(0,c.MZ)({clonable:"reference"})],I.prototype,"sourceLayer",void 0),(0,l.Cg)([(0,c.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],I.prototype,"statisticsAggregatedIds",void 0),(0,l.Cg)([(0,c.MZ)({value:null,types:M.Es})],I.prototype,"symbol",null),(0,l.Cg)([(0,c.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,l.Cg)([(0,c.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=o=(0,l.Cg)([(0,c.$K)("esri.Graphic")],I)},6797(e,t,i){i.d(t,{Ui:()=>y});var r=i(69622),o=i(7762),l=i(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function n(e){return e instanceof r.A}function a(e){return e instanceof o.A?Object.keys(e.items):n(e)?(0,l.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof o.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function d(e,t){let i=e.diff;if(i&&"function"==typeof i)return i(e,t);let r=a(e),o=a(t);if(0===r.length&&0===o.length)return;if(!r.length||!o.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let l=o.filter(e=>!r.includes(e)),y=r.filter(e=>!o.includes(e)),c=r.filter(i=>o.includes(i)&&u(e,i)!==u(t,i)).concat(l,y).sort(),h=p(e);if(h&&s.has(h)&&c.length)return{type:"complete",oldValue:e,newValue:t};let g,m=n(e)&&n(t);for(let r of c){let o,l=u(e,r),s=u(t,r);if((m||"function"!=typeof l&&"function"!=typeof s)&&l!==s&&(null!=l||null!=s)){if(i&&i[r]&&"function"==typeof i[r])o=i[r]?.(l,s);else if(l instanceof Date&&s instanceof Date){if(l.getTime()===s.getTime())continue;o={type:"complete",oldValue:l,newValue:s}}else o="object"==typeof l&&"object"==typeof s&&p(l)===p(s)?d(l,s):{type:"complete",oldValue:l,newValue:s};null!=o&&(null==g?g={type:"partial",diff:{[r]:o}}:g.diff[r]=o)}}return g}function y(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},13069(e,t,i){i.d(t,{AG:()=>n,lk:()=>o,vD:()=>s,yS:()=>l});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function l(){return`{${o().toUpperCase()}}`}function s(){return`{${o()}}`}function n(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,i){i.d(t,{I:()=>o});const r=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&r in t?e[r]:void 0;var t}i.d(t,["e",0,r])},25077(e,t,i){i.r(t),i.d(t,{default:()=>J});var r=i(32198),o=i(37838),l=i(56507),s=i(69540),n=i(49186),a=i(36563),u=i(25728),p=i(17676),d=i(91429),y=i(16930),c=i(41910),h=i(55156),g=i(60950),m=i(89808),f=i(99959);const v=Symbol("isDimensionFeatureGraphicOrigin");var b;class S extends f.A{get[(b=v,g.ym)](){return this.layer}get[h.e](){return this.layer}get[m.Q](){return this.layer}get[c.e7](){return this.layer}constructor(e){super(),this[b]=!0,this.type="dimension-feature",this.layer=e}get id(){return this.layer.id}}var M=i(4146),T=i(52136),C=i(18768),I=i(63074),w=i(69208),A=i(40775),E=i(10086),x=i(34287),_=i(8303),F=i(54310),L=i(23502),Z=i(25036),D=i(82935),O=i(60694),j=i(10873),P=i(15426),N=i(17036),R=i(30524),G=i(91908),z=i(97552),q=i(30291),$=i(36005);const k="dimension-feature-layer",V=(0,N.p)();let K=class extends((0,L.Z)((0,A.I)((0,E.j)((0,I.dM)((0,D.e)((0,Z.j)((0,F.J)((0,C.b)((0,x.q)((0,_.A)((0,u.M)((0,w.d)((0,T.p)((0,s.OU)(M.A))))))))))))))){constructor(e){super(e),this.barrierWeight="high",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new S(this),this.operationalLayerType="ArcGISDimensionLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.styleCollection=null,this.sublayerTitleMode="item-title",this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Dimension Layer"]),this.symbolFields=["STYLEID","BEGINX","BEGINY","ENDX","ENDY","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","DIMX","DIMY","TEXTX","TEXTY","DIMLENGTH","DIMTYPE","EXTANGLE","TEXTANGLE","USECUSTOMLENGTH","CUSTOMLENGTH "],this.type="dimension-feature",this._debouncedSaveOperations=(0,p.sg)(async(e,t,r)=>{let{save:o,saveAs:l}=await i.e(5740).then(()=>i(33359));switch(e){case 0:return o(this,t);case 1:return l(this,r,t)}})}destroy(){this.source?.destroy()}load(e){let t=e?.signal,i=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(p.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){let e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new n.A(`${k}:missing-url`,"DimensionFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.styleCollection)throw new n.A(`${k}:missing-style-collection`,"Invalid service with no style collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,P.VA)(this,"load",e));return this.addResolvingPromise(i),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readTitleFromService(e,t){let{url:i}=this,r=t.name||(0,O.qg)(i)?.title;switch(this.sublayerTitleMode){case"item-title":if(i)return(0,O.yG)(i,r);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==r)return e=(0,O.cr)(e),r?`${e} - ${(0,O.cr)(r)}`:e;break}}return r?(0,O.cr)(r):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}createPopupTemplate(e){return(0,q.tn)(this,e)}async createGraphicsSource(e){let t={stack:[],error:void 0,hasError:!1};try{let{default:o}=await(0,p.qr)(Promise.all([i.e(893),i.e(7013),i.e(3467)]).then(()=>i(65515)),e),l=new o({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,r.mS)(t,(0,a.Bf)((0,p.u7)(e,()=>l.cancelLoad())??(0,a.hA)()),!1),await l.load({signal:e}),l}catch(e){t.error=e,t.hasError=!0}finally{(0,r.hk)(t)}}createQuery(){let e=(0,P.VZ)(this);return e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){return(0,P.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){let i=await this.load(),r=await i.source.queryFeatures(z.A.from(e)??i.createQuery(),t),o=this.graphicOrigin;if(r?.features)for(let e of r.features)e.layer=e.sourceLayer=i,e.origin=o;return r}async queryObjectIds(e,t){let i=await this.load();return i.source.queryObjectIds(z.A.from(e)??i.createQuery(),t)}async queryFeatureCount(e,t){let i=await this.load();return i.source.queryFeatureCount(z.A.from(e)??i.createQuery(),t)}async queryExtent(e,t){let i=await this.load();return i.source.queryExtent(z.A.from(e)??i.createQuery(),t)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}serviceSupportsSpatialReference(e){return this.loaded&&(0,G.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,R.sv)(this.timeInfo,this.fieldsIndex)}async reloadFromService(e){let t=this.source;await Promise.all([t.reload({signal:e}),this.loadDataElement({signal:e})]),await this.initLayerProperties(t)}async hasDataChanged(){return(0,P.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new n.A(k+":unsupported-version","The feature service must be version 10.8 or above.");let e=["DIMLENGTH","BEGINX","BEGINY","ENDX","ENDY","DIMX","DIMY","TEXTX","TEXTY","DIMTYPE","EXTANGLE","STYLEID","USECUSTOMLENGTH","CUSTOMLENGTH","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","TEXTANGLE"],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new n.A(k+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,l.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{let t=e.data;return t?(this.applyPreferredHost(t),[...t.layers||[],...t.tables||[]].find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id):void 0})}};(0,r.Cg)([(0,d.MZ)({type:y.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],K.prototype,"attributeSpatialReference",void 0),(0,r.Cg)([(0,d.MZ)(j.es)],K.prototype,"barrierWeight",void 0),(0,r.Cg)([(0,d.MZ)({nonNullable:!0,json:{name:"enableEditing",write:!0}})],K.prototype,"editingEnabled",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"effectiveEditingEnabled",null),(0,r.Cg)([(0,d.MZ)({...V.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],K.prototype,"fields",void 0),(0,r.Cg)([(0,d.MZ)(V.fieldsIndex)],K.prototype,"fieldsIndex",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,clonable:!1})],K.prototype,"graphicOrigin",void 0),(0,r.Cg)([(0,d.MZ)(j.id)],K.prototype,"id",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],K.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:["ArcGISDimensionLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0,isRequired:!0}}}}})],K.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,d.MZ)(V.outFields)],K.prototype,"outFields",void 0),(0,r.Cg)([(0,d.MZ)(j.M6)],K.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:o.A,json:{name:"popupInfo",write:!0}})],K.prototype,"popupTemplate",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"defaultPopupTemplate",null),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"referenceScale",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1,readOnly:!0})],K.prototype,"source",void 0),(0,r.Cg)([(0,d.MZ)()],K.prototype,"styleCollection",void 0),(0,r.Cg)([(0,d.MZ)({type:String})],K.prototype,"sublayerTitleMode",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],K.prototype,"symbolFields",void 0),(0,r.Cg)([(0,$.w)("service","title",["name"])],K.prototype,"readTitleFromService",null),(0,r.Cg)([(0,$.w)("portal-item","title")],K.prototype,"readTitleFromPortalItem",null),(0,r.Cg)([(0,d.MZ)({json:{read:!1},value:"dimension-feature",readOnly:!0})],K.prototype,"type",void 0),K=(0,r.Cg)([(0,d.$K)("esri.layers.DimensionFeatureLayer")],K);const J=K},54339(e,t,i){function r(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let i=[];for(let r of t.fieldNames)i.push(e.attributes[r]??null);return JSON.stringify(i)}}}function o(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>r,r:()=>o})},52136(e,t,i){var r=i(32198),o=i(91429);i.d(t,["p",0,e=>{let t=e,i=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,r.Cg)([(0,o.MZ)({type:String})],i.prototype,"apiKey",null),i=(0,r.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],i),i}])},40775(e,t,i){var r=i(32198),o=i(56507),l=i(49186),s=i(84952),n=i(91429),a=i(95250);function u(e,t){let i=e.indexOf(t);return-1===i?void 0:e[i+1]}function p(e,t){let i=u(e,t);return i&&"string"==typeof i?JSON.parse(i):null}function d(e){let t=u(e,"ReferenceScale")??0;return"string"==typeof t?parseFloat(t):t}function y(e){return p(e,"SymbolCollection")??void 0}function c(e){return p(e,"StyleCollection")??void 0}i.d(t,["I",0,e=>{let t=e,i=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new l.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");let t=(0,s.fj)(this.url,"queryDataElements"),i={f:"json",layers:this.layerId},{data:r}=await(0,o.A)(t,{...e,responseType:"json",query:i}),n=r.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!n)throw new l.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");let u=n.extensionProperties?.propertySetItems??[],p=d(u),h=(0,a.S)(y(u)),g=(0,a.S)(c(u));this.read({referenceScale:p,symbolCollection:h,styleCollection:g},{origin:"service"})}};return i=(0,r.Cg)([(0,n.$K)("esri.layers.mixins.DataElementMixin")],i),i}])},28032(e,t,i){i.d(t,{A:()=>a});var r=i(32198),o=i(69540),l=i(25482),s=i(91429),n=i(56400);let a=class extends((0,o.OU)(l.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,r.Cg)([(0,s.MZ)()],a.prototype,"creatorField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"creationDateField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"editorField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"editDateField",void 0),(0,r.Cg)([(0,s.MZ)()],a.prototype,"realm",void 0),(0,r.Cg)([(0,s.MZ)((0,n.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,r.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],a)},37352(e,t,i){i.d(t,{A:()=>a});var r,o=i(32198),l=i(7762),s=i(25482),n=i(91429);let a=r=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new l.A}clone(){return new r({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,n.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,n.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=r=(0,o.Cg)([(0,n.$K)("esri.layers.support.LayerFloorInfo")],a)},45067(e,t,i){i.d(t,{A:()=>p});var r=i(32198),o=i(69540),l=i(66552),s=i(25482),n=i(91429);const a=new l.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new l.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,r.Cg)([(0,n.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,r.Cg)([(0,n.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,r.Cg)([(0,n.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,r.Cg)([(0,n.$K)("esri.layers.support.Relationship")],p)},32730(e,t,i){i.d(t,{BI:()=>d,D3:()=>u,XJ:()=>p,lc:()=>a,mX:()=>c,rU:()=>y,tH:()=>v,zA:()=>S});var r=i(799);const o=RegExp("__begin__","ig"),l=RegExp("__end__","ig"),s=RegExp("^__begin__","i"),n=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function p(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function d(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return c(t.expression);case"arcade":return t.expression}return null}function y(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(h))?.[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function c(e){let t;return e?(t=(0,r.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=s.test(t)?t.replace(s,""):'"'+t,t=n.test(t)?t.replace(n,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(l,' + "')):t='""',t}const h=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,f=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=g.exec(e)||m.exec(e);return t?t[1]||t[3]:(t=f.exec(e),t?t[2]:null)}const b=Symbol("LabelClassInstance");function S(e){return"object"==typeof e&&!!e&&b in e}i.d(t,["vK",0,b])},41366(e,t,i){var r=i(32198),o=i(66552),l=i(53966),s=i(91429),n=i(93223);const a=(0,o.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";i.d(t,["K",0,e=>{let t=e,i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&p||i&&u||null,t&&i&&l.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,r.Cg)([(0,n.e)(a,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,r.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i},"Q",0,a])},95250(e,t,i){function r(e){return o(e,{CIMRGBColor:l,CIMCharacterMarker:s})}function o(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>o(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);let i={};for(let[r,l]of Object.entries(e))i[r]=o(l,t);return i}return e}function l(e){let[t,i,r,o]=e.values;return[t,i,r,255*o/100]}function s(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}i.d(t,{S:()=>r})},93470(e,t,i){const r=[252,146,31,255],o={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},l={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r};i.d(t,["Cb",0,o,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,r,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,l])}}]);