@arcgis/core 4.28.0-next.20231002 → 4.28.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02120d192eafd7612475.js +1 -0
- package/assets/esri/core/workers/chunks/{4d967e98d229f18d61f5.js → 09e8babe75407c2e64c4.js} +1 -1
- package/assets/esri/core/workers/chunks/0beebbb0c6dad0e742d7.js +1 -0
- package/assets/esri/core/workers/chunks/0d8ca51043c7784aed96.js +1 -0
- package/assets/esri/core/workers/chunks/112e89da628bdea5355c.js +1 -0
- package/assets/esri/core/workers/chunks/{5e9edd06e624f385fa4b.js → 121a9e148509f2fe2210.js} +1 -1
- package/assets/esri/core/workers/chunks/1856d16d738f44f58084.js +1 -0
- package/assets/esri/core/workers/chunks/{0526d623d0b4c12929bd.js → 18ab9cc85a1a7988fdfd.js} +1 -1
- package/assets/esri/core/workers/chunks/{7c960a2694c4c3123acf.js → 1a36703ebe934749646e.js} +1 -1
- package/assets/esri/core/workers/chunks/24a0cf405195421c0d06.js +1 -0
- package/assets/esri/core/workers/chunks/24ff267cf253feac22de.js +1 -0
- package/assets/esri/core/workers/chunks/{3c8613596659801fd6ab.js → 29cab345819ec02ed60a.js} +1 -1
- package/assets/esri/core/workers/chunks/{169a61c6e128b8a16021.js → 2c560a075d9ef2069ed1.js} +1 -1
- package/assets/esri/core/workers/chunks/2f8e71dac98135bbc3e6.js +1 -0
- package/assets/esri/core/workers/chunks/341fb51b2165522963b3.js +1 -0
- package/assets/esri/core/workers/chunks/{ad8e0f82cb1feafa9e2f.js → 36ab90fb34b9716a9983.js} +1 -1
- package/assets/esri/core/workers/chunks/{2688213bbff536da7917.js → 3ea0b872436fce84b927.js} +1 -1
- package/assets/esri/core/workers/chunks/40633064c290dc2af9ea.js +1 -0
- package/assets/esri/core/workers/chunks/42ec4c80b0c2944cd65c.js +1 -0
- package/assets/esri/core/workers/chunks/44b870cb53ba68b17c32.js +1 -0
- package/assets/esri/core/workers/chunks/{8a7fa4e8b0d14da7c9eb.js → 4cc680fe4c9c39d2f853.js} +1 -1
- package/assets/esri/core/workers/chunks/{6730c9f0890191a95fdb.js → 4d81aa50d90f5701a343.js} +1 -1
- package/assets/esri/core/workers/chunks/4e0bf30da4281070e453.js +1 -0
- package/assets/esri/core/workers/chunks/4e6bf1efe3b0b474cbb4.js +1 -0
- package/assets/esri/core/workers/chunks/52cef7cd3aaaa4f45c94.js +1 -0
- package/assets/esri/core/workers/chunks/{4e04242e707c0eb3aa4a.js → 5a3ccc0a19ac8fa9e524.js} +1 -1
- package/assets/esri/core/workers/chunks/5e907ec0ee1565b5fbbc.js +1 -0
- package/assets/esri/core/workers/chunks/66ba749ab0a631bbfdec.js +1 -0
- package/assets/esri/core/workers/chunks/6b14d89d689a21014aec.js +1 -0
- package/assets/esri/core/workers/chunks/6b1856303d1562f05100.js +1 -0
- package/assets/esri/core/workers/chunks/{576269fd1f9049876aa1.js → 6b7b5544ed1f9a84623f.js} +1 -1
- package/assets/esri/core/workers/chunks/710a6268de62003af825.js +1 -0
- package/assets/esri/core/workers/chunks/77923afde29ae1ff10ca.js +1 -0
- package/assets/esri/core/workers/chunks/784ffd52315a4d55d683.js +1 -0
- package/assets/esri/core/workers/chunks/7cf7f2b991a7cbdad2ce.js +1 -0
- package/assets/esri/core/workers/chunks/{70dffbf49b0633b1a5f1.js → 8f3680fee85a05839489.js} +1 -1
- package/assets/esri/core/workers/chunks/97aecf210938015cc7a3.js +1 -0
- package/assets/esri/core/workers/chunks/{c7ebd5d431fb996bfcee.js → 9f8207c82a17508a87a8.js} +1 -1
- package/assets/esri/core/workers/chunks/{557305b91f77569ce664.js → a01ffe03b1465c21b9e6.js} +1 -1
- package/assets/esri/core/workers/chunks/a298c9031962951e55a9.js +1 -0
- package/assets/esri/core/workers/chunks/{329669a9beda89b028dd.js → a5a7bbdd8298016535bc.js} +1 -1
- package/assets/esri/core/workers/chunks/a877a4826cd6a46ec99b.js +1 -0
- package/assets/esri/core/workers/chunks/ad38e456a7cee940a165.js +1 -0
- package/assets/esri/core/workers/chunks/adfbc168be8c49b51e1b.js +1 -0
- package/assets/esri/core/workers/chunks/b0526633a93ef69ec47b.js +1 -0
- package/assets/esri/core/workers/chunks/b99bc08a01e9250b0a31.js +1 -0
- package/assets/esri/core/workers/chunks/{36c4b4c3eca57417da2c.js → c260ad3434bb00ba64a7.js} +1 -1
- package/assets/esri/core/workers/chunks/{39922ce232338de076ae.js → c459c8d8630eb4b955b1.js} +1 -1
- package/assets/esri/core/workers/chunks/c92e75b79aff7b505b31.js +1 -0
- package/assets/esri/core/workers/chunks/ca85e88dad30b5f2956b.js +1 -0
- package/assets/esri/core/workers/chunks/{8e56d40691b6bf75d7cc.js → ce409944221a784ddb61.js} +1 -1
- package/assets/esri/core/workers/chunks/d13f75f233cf313e5a1d.js +1 -0
- package/assets/esri/core/workers/chunks/d60d5f006375f7fcc88c.js +1 -0
- package/assets/esri/core/workers/chunks/{77958089748dc31757cf.js → d6ded127949160103f69.js} +1 -1
- package/assets/esri/core/workers/chunks/d8c696da42f8f8919b83.js +1 -0
- package/assets/esri/core/workers/chunks/{304c81f6297ecba3a324.js → d95eed98316e59f8f35d.js} +1 -1
- package/assets/esri/core/workers/chunks/df7267892b6e0493e1d7.js +1 -0
- package/assets/esri/core/workers/chunks/{52dca349e1a45555954d.js → e52d5a48e83d8df36f92.js} +1 -1
- package/assets/esri/core/workers/chunks/e8688b6cc3b3c1010b43.js +1 -0
- package/assets/esri/core/workers/chunks/e8c7cc974420c0b92d0e.js +1 -0
- package/assets/esri/core/workers/chunks/{b7ef554b1213307499fc.js → e93442c6d92229f3a4b0.js} +1 -1
- package/assets/esri/core/workers/chunks/{ef5772ca1848d6d01b88.js → eda86faa708cfe4c9f9a.js} +1 -1
- package/assets/esri/core/workers/chunks/f2718e260f594537f7fd.js +1 -0
- package/assets/esri/core/workers/chunks/f6b7036114b1d754fdd9.js +1 -0
- package/assets/esri/core/workers/chunks/{c4631241dc777ca77aaa.js → f6c0680c535c5a3c73ee.js} +1 -1
- package/assets/esri/core/workers/chunks/{a0ea1d3e22d52b8a59a8.js → fa6103e3d4e857b0035b.js} +9 -9
- package/assets/esri/core/workers/chunks/fac3e57784d7f37053af.js +1 -0
- package/assets/esri/geometry/support/pe-wasm.wasm +0 -0
- package/assets/esri/t9n/common.json +1 -1
- package/assets/esri/t9n/common_ar.json +1 -1
- package/assets/esri/t9n/common_bg.json +1 -1
- package/assets/esri/t9n/common_bs.json +1 -1
- package/assets/esri/t9n/common_ca.json +1 -1
- package/assets/esri/t9n/common_cs.json +1 -1
- package/assets/esri/t9n/common_da.json +1 -1
- package/assets/esri/t9n/common_de.json +1 -1
- package/assets/esri/t9n/common_el.json +1 -1
- package/assets/esri/t9n/common_en.json +1 -1
- package/assets/esri/t9n/common_es.json +1 -1
- package/assets/esri/t9n/common_et.json +1 -1
- package/assets/esri/t9n/common_fi.json +1 -1
- package/assets/esri/t9n/common_fr.json +1 -1
- package/assets/esri/t9n/common_he.json +1 -1
- package/assets/esri/t9n/common_hr.json +1 -1
- package/assets/esri/t9n/common_hu.json +1 -1
- package/assets/esri/t9n/common_id.json +1 -1
- package/assets/esri/t9n/common_it.json +1 -1
- package/assets/esri/t9n/common_ja.json +1 -1
- package/assets/esri/t9n/common_ko.json +1 -1
- package/assets/esri/t9n/common_lt.json +1 -1
- package/assets/esri/t9n/common_lv.json +1 -1
- package/assets/esri/t9n/common_nb.json +1 -1
- package/assets/esri/t9n/common_nl.json +1 -1
- package/assets/esri/t9n/common_pl.json +1 -1
- package/assets/esri/t9n/common_pt-BR.json +1 -1
- package/assets/esri/t9n/common_pt-PT.json +1 -1
- package/assets/esri/t9n/common_ro.json +1 -1
- package/assets/esri/t9n/common_ru.json +1 -1
- package/assets/esri/t9n/common_sk.json +1 -1
- package/assets/esri/t9n/common_sl.json +1 -1
- package/assets/esri/t9n/common_sr.json +1 -1
- package/assets/esri/t9n/common_sv.json +1 -1
- package/assets/esri/t9n/common_th.json +1 -1
- package/assets/esri/t9n/common_tr.json +1 -1
- package/assets/esri/t9n/common_uk.json +1 -1
- package/assets/esri/t9n/common_vi.json +1 -1
- package/assets/esri/t9n/common_zh-CN.json +1 -1
- package/assets/esri/t9n/common_zh-HK.json +1 -1
- package/assets/esri/t9n/common_zh-TW.json +1 -1
- package/assets/esri/themes/base/widgets/_DirectionalPad.scss +2 -1
- package/assets/esri/themes/base/widgets/_FeatureForm.scss +0 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/pe-wasm.js +1 -1
- package/config.js +1 -1
- package/core/pbf.js +1 -1
- package/geometry/support/WKIDUnitConversion.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/interfaces.d.ts +37 -39
- package/kernel.js +1 -1
- package/layers/GroupLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/editingSupport.js +1 -1
- package/layers/graphics/sources/WFSSourceWorker.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/mixins/OperationalLayer.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/save/groupLayerUtils.js +5 -0
- package/layers/save/utils.js +1 -1
- package/layers/support/LayerLoadContext.js +5 -0
- package/layers/support/featureLayerUtils.js +1 -1
- package/layers/support/labelFormatUtils.js +1 -1
- package/layers/support/layersCreator.js +1 -1
- package/layers/support/versionUtils.js +1 -1
- package/networks/UtilityNetwork.js +1 -1
- package/package.json +1 -1
- package/portal/schemas/definitions.js +1 -1
- package/portal/support/jsonContext.js +1 -1
- package/portal/support/layersLoader.js +1 -1
- package/portal/support/loadUtils.js +5 -0
- package/portal/support/portalItemUtils.js +1 -1
- package/portal/support/portalLayers.js +1 -1
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/rest/print.js +1 -1
- package/support/basemapUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/PolygonSymbol3D.js +1 -1
- package/views/2d/engine/imagery/RasterBitmap.js +1 -1
- package/views/2d/engine/imagery/colorizer/shadedrelief.js +1 -1
- package/views/2d/engine/imagery/colorizer/stretch.js +1 -1
- package/views/2d/input/handlers/KeyPan.js +1 -1
- package/views/2d/input/handlers/KeyRotate.js +1 -1
- package/views/2d/interactive/editingTools/draw/DrawGraphicTool2D.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBFIndirect.js +1 -1
- package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
- package/views/3d/layers/i3s/featureEditing.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/DOMContainer.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/support/Box.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/input/VisibilityChange.js +5 -0
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/FeatureSnappingSourceInfo.js +5 -0
- package/views/interactive/snapping/SnappingContext.js +1 -1
- package/views/interactive/snapping/SnappingDragPipelineStep.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/sceneLayerSource/SceneLayerSnappingSourceWorkerHandle.js +1 -1
- package/views/interactive/snapping/snappingUtils.js +1 -1
- package/webdoc/support/saveUtils.js +1 -1
- package/webdoc/webdocSaveUtils.js +1 -1
- package/widgets/DirectionalPad/DirectionalPadViewModel.js +1 -1
- package/widgets/DirectionalPad/constants.js +1 -1
- package/widgets/DirectionalPad.js +1 -1
- package/widgets/Editor/Upload.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/ElevationProfile/support/chartUtils.js +1 -1
- package/widgets/FeatureForm/FeatureFormViewModel.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/ScaleRangeSlider.js +1 -1
- package/widgets/support/DatePicker.js +1 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/Selector2D/SelectionOperation2D.js +1 -1
- package/widgets/support/Selector2D.js +1 -1
- package/widgets/support/TimePicker.js +1 -1
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/027f8b57565c65fbccda.js +0 -1
- package/assets/esri/core/workers/chunks/048265fb5953350e3e33.js +0 -1
- package/assets/esri/core/workers/chunks/0b9cf14f8aafb76c578b.js +0 -1
- package/assets/esri/core/workers/chunks/0ebf58c927bfc4c9d4fe.js +0 -1
- package/assets/esri/core/workers/chunks/10fd951bd296b2beeeba.js +0 -1
- package/assets/esri/core/workers/chunks/1224475f3eefdfd59c76.js +0 -1
- package/assets/esri/core/workers/chunks/162b0220e24e9ba72655.js +0 -1
- package/assets/esri/core/workers/chunks/1e611cad53b745ee146f.js +0 -1
- package/assets/esri/core/workers/chunks/24b1bf1a5d80f43a6c9a.js +0 -1
- package/assets/esri/core/workers/chunks/29ed31fd4f9d5cf53686.js +0 -1
- package/assets/esri/core/workers/chunks/2b6d1c8e4ed759767827.js +0 -1
- package/assets/esri/core/workers/chunks/34b44b0fab88f838885c.js +0 -1
- package/assets/esri/core/workers/chunks/364f55294a1d7bf163d7.js +0 -1
- package/assets/esri/core/workers/chunks/3714ab435dd5ccf9e694.js +0 -1
- package/assets/esri/core/workers/chunks/3788009a5ece453011f3.js +0 -1
- package/assets/esri/core/workers/chunks/3aafe8160b3bfbaa6935.js +0 -1
- package/assets/esri/core/workers/chunks/41c002e4c42c581cda8d.js +0 -1
- package/assets/esri/core/workers/chunks/47be4c75dd6372b96fe4.js +0 -1
- package/assets/esri/core/workers/chunks/4e8d1e6051f6654a5e83.js +0 -1
- package/assets/esri/core/workers/chunks/53746e9976758630159b.js +0 -1
- package/assets/esri/core/workers/chunks/5449fdd69e12e5cbd12a.js +0 -1
- package/assets/esri/core/workers/chunks/57ce4ece0147afb0d43c.js +0 -1
- package/assets/esri/core/workers/chunks/5e83d21400a5dec05c81.js +0 -1
- package/assets/esri/core/workers/chunks/6047f4487dcd37cca98e.js +0 -1
- package/assets/esri/core/workers/chunks/6967d2b3721678b38774.js +0 -1
- package/assets/esri/core/workers/chunks/6ac5ca7de651e3d672a1.js +0 -1
- package/assets/esri/core/workers/chunks/6b7ee9164149428edb9e.js +0 -1
- package/assets/esri/core/workers/chunks/6c495077cc79e1898927.js +0 -1
- package/assets/esri/core/workers/chunks/6d43648d5326e01b4474.js +0 -1
- package/assets/esri/core/workers/chunks/74fb07de0f990d45af89.js +0 -1
- package/assets/esri/core/workers/chunks/8e9a52062ce059153a89.js +0 -1
- package/assets/esri/core/workers/chunks/919a57d372419785cd5e.js +0 -1
- package/assets/esri/core/workers/chunks/939f0a1a7d605e389e45.js +0 -1
- package/assets/esri/core/workers/chunks/9932f23ba6589df14a3d.js +0 -1
- package/assets/esri/core/workers/chunks/a25a38c9f338e0beffef.js +0 -1
- package/assets/esri/core/workers/chunks/a97581e584336b46ede7.js +0 -1
- package/assets/esri/core/workers/chunks/b1cb932cfadc4dc3f1e4.js +0 -1
- package/assets/esri/core/workers/chunks/be3fb6113b0b27b94537.js +0 -1
- package/assets/esri/core/workers/chunks/c37119f5692e19aa1ce2.js +0 -1
- package/assets/esri/core/workers/chunks/c685f16435d9861bbbd0.js +0 -1
- package/assets/esri/core/workers/chunks/d5dfc03673aec8aa57e2.js +0 -1
- package/assets/esri/core/workers/chunks/e6416a2684866d677b3e.js +0 -1
- package/assets/esri/core/workers/chunks/eb01f4cdb9b918cc61e7.js +0 -1
- package/assets/esri/core/workers/chunks/eb4aed4fdb44495a4fe6.js +0 -1
- package/assets/esri/core/workers/chunks/ec8258c9dc1491e97fc8.js +0 -1
- package/assets/esri/core/workers/chunks/eeac53da496de4cd4182.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6774,5732,2596],{5732:(e,t,_)=>{_.d(t,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},66774:(e,t,_)=>{_.r(t),_.d(t,{p:()=>s});var r,o,n,p=_(5732),i={exports:{}};r=i,o="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(o=o||__filename),n=function(e={}){var t,_,r=e;r.ready=new Promise(((e,r)=>{t=e,_=r}));var n,p,i,c=Object.assign({},r),s="./this.program",P="object"==typeof window,a="function"==typeof importScripts,g="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,y="";if(g){var u=require("fs"),d=require("path");y=a?d.dirname(y)+"/":__dirname+"/",n=(e,t)=>(e=H(e)?new URL(e):d.normalize(e),u.readFileSync(e,t?void 0:"utf8")),i=e=>{var t=n(e,!0);return t.buffer||(t=new Uint8Array(t)),t},p=(e,t,_,r=!0)=>{e=H(e)?new URL(e):d.normalize(e),u.readFile(e,r?void 0:"utf8",((e,o)=>{e?_(e):t(r?o.buffer:o)}))},!r.thisProgram&&process.argv.length>1&&(s=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),r.inspect=()=>"[Emscripten Module object]"}else(P||a)&&(a?y=self.location.href:"undefined"!=typeof document&&document.currentScript&&(y=document.currentScript.src),o&&(y=o),y=0!==y.indexOf("blob:")?y.substr(0,y.replace(/[?#].*/,"").lastIndexOf("/")+1):"",n=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},a&&(i=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),p=(e,t,_)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):_()},r.onerror=_,r.send(null)});var f,E,b,m=r.print||console.log.bind(console),T=r.printErr||console.error.bind(console);Object.assign(r,c),c=null,r.arguments&&r.arguments,r.thisProgram&&(s=r.thisProgram),r.quit&&r.quit,r.wasmBinary&&(f=r.wasmBinary),r.noExitRuntime,"object"!=typeof WebAssembly&&Y("no native wasm support detected");var O,S,N,h,l,M,v,R=!1;function D(e,t){e||Y(t)}function A(){var e=E.buffer;r.HEAP8=O=new Int8Array(e),r.HEAP16=N=new Int16Array(e),r.HEAP32=h=new Int32Array(e),r.HEAPU8=S=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=l=new Uint32Array(e),r.HEAPF32=M=new Float32Array(e),r.HEAPF64=v=new Float64Array(e)}var G=[],C=[],I=[];function j(e){G.unshift(e)}function U(e){I.unshift(e)}var L=0,F=null;function Y(e){r.onAbort&&r.onAbort(e),T(e="Aborted("+e+")"),R=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw _(t),t}var w;function x(e){return e.startsWith("data:application/octet-stream;base64,")}function H(e){return e.startsWith("file://")}function X(e){if(e==w&&f)return new Uint8Array(f);if(i)return i(e);throw"both async and sync fetching of the wasm failed"}function z(e,t,_){return function(e){if(!f&&(P||a)){if("function"==typeof fetch&&!H(e))return fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()})).catch((()=>X(e)));if(p)return new Promise(((t,_)=>{p(e,(e=>t(new Uint8Array(e))),_)}))}return Promise.resolve().then((()=>X(e)))}(e).then((e=>WebAssembly.instantiate(e,t))).then((e=>e)).then(_,(e=>{T("failed to asynchronously prepare wasm: "+e),Y(e)}))}x(w="pe-wasm.wasm")||(w=function(e){return r.locateFile?r.locateFile(e,y):y+e}(w));var W=e=>{for(;e.length>0;)e.shift()(r)},Z="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,B=(e,t,_)=>{for(var r=t+_,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.buffer&&Z)return Z.decode(e.subarray(t,o));for(var n="";t<o;){var p=e[t++];if(128&p){var i=63&e[t++];if(192!=(224&p)){var c=63&e[t++];if((p=224==(240&p)?(15&p)<<12|i<<6|c:(7&p)<<18|i<<12|c<<6|63&e[t++])<65536)n+=String.fromCharCode(p);else{var s=p-65536;n+=String.fromCharCode(55296|s>>10,56320|1023&s)}}else n+=String.fromCharCode((31&p)<<6|i)}else n+=String.fromCharCode(p)}return n},K=(e,t)=>e?B(S,e,t):"",V=(e,t,_,r)=>{if(!(r>0))return 0;for(var o=_,n=_+r-1,p=0;p<e.length;++p){var i=e.charCodeAt(p);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++p)),i<=127){if(_>=n)break;t[_++]=i}else if(i<=2047){if(_+1>=n)break;t[_++]=192|i>>6,t[_++]=128|63&i}else if(i<=65535){if(_+2>=n)break;t[_++]=224|i>>12,t[_++]=128|i>>6&63,t[_++]=128|63&i}else{if(_+3>=n)break;t[_++]=240|i>>18,t[_++]=128|i>>12&63,t[_++]=128|i>>6&63,t[_++]=128|63&i}}return t[_]=0,_-o},k=[0,31,60,91,121,152,182,213,244,274,305,335],q=[0,31,59,90,120,151,181,212,243,273,304,334],J=e=>{for(var t=0,_=0;_<e.length;++_){var r=e.charCodeAt(_);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++_):t+=3}return t},$=e=>{var t=J(e)+1,_=j_(t);return _&&((e,t,_)=>{V(e,S,t,_)})(e,_,t),_},Q=e=>{var t=e-E.buffer.byteLength+65535>>>16;try{return E.grow(t),A(),1}catch(e){}},ee={},te=()=>{if(!te.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:s||"./this.program"};for(var t in ee)void 0===ee[t]?delete e[t]:e[t]=ee[t];var _=[];for(var t in e)_.push(`${t}=${e[t]}`);te.strings=_}return te.strings},_e=[null,[],[]],re=(e,t)=>{var _=_e[e];0===t||10===t?((1===e?m:T)(B(_,0)),_.length=0):_.push(t)},oe={c:function(e,t,_){return 0},r:(e,t,_)=>{},h:function(e,t,_){return 0},d:function(e,t,_,r){},p:e=>{},o:(e,t)=>{},q:(e,t,_)=>{},j:function(e,t,_){var r=function(e,t){return t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN}(e,t),o=new Date(1e3*r);h[_>>2]=o.getSeconds(),h[_+4>>2]=o.getMinutes(),h[_+8>>2]=o.getHours(),h[_+12>>2]=o.getDate(),h[_+16>>2]=o.getMonth(),h[_+20>>2]=o.getFullYear()-1900,h[_+24>>2]=o.getDay();var n=0|(e=>((e=>e%4==0&&(e%100!=0||e%400==0))(e.getFullYear())?k:q)[e.getMonth()]+e.getDate()-1)(o);h[_+28>>2]=n,h[_+36>>2]=-60*o.getTimezoneOffset();var p=new Date(o.getFullYear(),0,1),i=new Date(o.getFullYear(),6,1).getTimezoneOffset(),c=p.getTimezoneOffset(),s=0|(i!=c&&o.getTimezoneOffset()==Math.min(c,i));h[_+32>>2]=s},n:(e,t,_)=>{var r=(new Date).getFullYear(),o=new Date(r,0,1),n=new Date(r,6,1),p=o.getTimezoneOffset(),i=n.getTimezoneOffset(),c=Math.max(p,i);function s(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}l[e>>2]=60*c,h[t>>2]=Number(p!=i);var P=s(o),a=s(n),g=$(P),y=$(a);i<p?(l[_>>2]=g,l[_+4>>2]=y):(l[_>>2]=y,l[_+4>>2]=g)},l:()=>{Y("")},i:function(){return Date.now()},s:(e,t,_)=>S.copyWithin(e,t,t+_),m:e=>{var t=S.length,_=2147483648;if((e>>>=0)>_)return!1;for(var r=(e,t)=>e+(t-e%t)%t,o=1;o<=4;o*=2){var n=t*(1+.2/o);n=Math.min(n,e+100663296);var p=Math.min(_,r(Math.max(e,n),65536));if(Q(p))return!0}return!1},e:(e,t)=>{var _=0;return te().forEach((function(r,o){var n=t+_;l[e+4*o>>2]=n,((e,t)=>{for(var _=0;_<e.length;++_)O[t++>>0]=e.charCodeAt(_);O[t>>0]=0})(r,n),_+=r.length+1})),0},f:(e,t)=>{var _=te();l[e>>2]=_.length;var r=0;return _.forEach((function(e){r+=e.length+1})),l[t>>2]=r,0},a:e=>52,g:(e,t,_,r)=>52,k:function(e,t,_,r,o){return 70},b:(e,t,_,r)=>{for(var o=0,n=0;n<_;n++){var p=l[t>>2],i=l[t+4>>2];t+=8;for(var c=0;c<i;c++)re(e,S[p+c]);o+=i}return l[r>>2]=o,0}};!function(){var e={a:oe};function t(e,t){var _=e.exports;return E=(b=_).t,A(),b._b,function(e){C.unshift(e)}(b.u),function(e){if(L--,r.monitorRunDependencies&&r.monitorRunDependencies(L),0==L&&F){var t=F;F=null,t()}}(),_}if(L++,r.monitorRunDependencies&&r.monitorRunDependencies(L),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){T("Module.instantiateWasm callback failed with error: "+e),_(e)}(function(e,t,_,r){return e||"function"!=typeof WebAssembly.instantiateStreaming||x(t)||H(t)||g||"function"!=typeof fetch?z(t,_,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,_).then(r,(function(e){return T("wasm streaming compile failed: "+e),T("falling back to ArrayBuffer instantiation"),z(t,_,r)}))))})(f,w,e,(function(e){t(e.instance)})).catch(_)}();var ne=r._emscripten_bind_PeObject_getCode_0=e=>(ne=r._emscripten_bind_PeObject_getCode_0=b.v)(e),pe=r._emscripten_bind_PeObject_getName_1=(e,t)=>(pe=r._emscripten_bind_PeObject_getName_1=b.w)(e,t),ie=r._emscripten_bind_PeObject_getType_0=e=>(ie=r._emscripten_bind_PeObject_getType_0=b.x)(e),ce=r._emscripten_bind_PeCoordsys_getCode_0=e=>(ce=r._emscripten_bind_PeCoordsys_getCode_0=b.y)(e),se=r._emscripten_bind_PeCoordsys_getName_1=(e,t)=>(se=r._emscripten_bind_PeCoordsys_getName_1=b.z)(e,t),Pe=r._emscripten_bind_PeCoordsys_getType_0=e=>(Pe=r._emscripten_bind_PeCoordsys_getType_0=b.A)(e),ae=r._emscripten_bind_VoidPtr___destroy___0=e=>(ae=r._emscripten_bind_VoidPtr___destroy___0=b.B)(e),ge=r._emscripten_bind_PeDatum_getSpheroid_0=e=>(ge=r._emscripten_bind_PeDatum_getSpheroid_0=b.C)(e),ye=r._emscripten_bind_PeDatum_getCode_0=e=>(ye=r._emscripten_bind_PeDatum_getCode_0=b.D)(e),ue=r._emscripten_bind_PeDatum_getName_1=(e,t)=>(ue=r._emscripten_bind_PeDatum_getName_1=b.E)(e,t),de=r._emscripten_bind_PeDatum_getType_0=e=>(de=r._emscripten_bind_PeDatum_getType_0=b.F)(e),fe=r._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=e=>(fe=r._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=b.G)(e),Ee=r._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=e=>(Ee=r._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=b.H)(e),be=r._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=e=>(be=r._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=b.I)(e),me=r._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=e=>(me=r._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=b.J)(e),Te=r._emscripten_bind_PeDefs_get_PE_DD_MAX_0=e=>(Te=r._emscripten_bind_PeDefs_get_PE_DD_MAX_0=b.K)(e),Oe=r._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=e=>(Oe=r._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=b.L)(e),Se=r._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=e=>(Se=r._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=b.M)(e),Ne=r._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=e=>(Ne=r._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=b.N)(e),he=r._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=e=>(he=r._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=b.O)(e),le=r._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=e=>(le=r._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=b.P)(e),Me=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=e=>(Me=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=b.Q)(e),ve=r._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=e=>(ve=r._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=b.R)(e),Re=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=e=>(Re=r._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=b.S)(e),De=r._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=e=>(De=r._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=b.T)(e),Ae=r._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=e=>(Ae=r._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=b.U)(e),Ge=r._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=e=>(Ge=r._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=b.V)(e),Ce=r._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=e=>(Ce=r._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=b.W)(e),Ie=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=e=>(Ie=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=b.X)(e),je=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=e=>(je=r._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=b.Y)(e),Ue=r._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=e=>(Ue=r._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=b.Z)(e),Le=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=e=>(Le=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=b._)(e),Fe=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=e=>(Fe=r._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=b.$)(e),Ye=r._emscripten_bind_PeDefs_get_PE_PARM_X0_0=e=>(Ye=r._emscripten_bind_PeDefs_get_PE_PARM_X0_0=b.aa)(e),we=r._emscripten_bind_PeDefs_get_PE_PARM_ND_0=e=>(we=r._emscripten_bind_PeDefs_get_PE_PARM_ND_0=b.ba)(e),xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=e=>(xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=b.ca)(e),He=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=e=>(He=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=b.da)(e),Xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=e=>(Xe=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=b.ea)(e),ze=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=e=>(ze=r._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=b.fa)(e),We=r._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=e=>(We=r._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=b.ga)(e),Ze=r._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=e=>(Ze=r._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=b.ha)(e),Be=r._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=e=>(Be=r._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=b.ia)(e),Ke=r._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=e=>(Ke=r._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=b.ja)(e),Ve=r._emscripten_bind_PeFactory_initialize_1=(e,t)=>(Ve=r._emscripten_bind_PeFactory_initialize_1=b.ka)(e,t),ke=r._emscripten_bind_PeFactory_factoryByType_2=(e,t,_)=>(ke=r._emscripten_bind_PeFactory_factoryByType_2=b.la)(e,t,_),qe=r._emscripten_bind_PeFactory_fromString_2=(e,t,_)=>(qe=r._emscripten_bind_PeFactory_fromString_2=b.ma)(e,t,_),Je=r._emscripten_bind_PeFactory_getCode_1=(e,t)=>(Je=r._emscripten_bind_PeFactory_getCode_1=b.na)(e,t),$e=r._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(e,t,_,o,n,p)=>($e=r._emscripten_bind_PeGCSExtent_PeGCSExtent_6=b.oa)(e,t,_,o,n,p),Qe=r._emscripten_bind_PeGCSExtent_getLLon_0=e=>(Qe=r._emscripten_bind_PeGCSExtent_getLLon_0=b.pa)(e),et=r._emscripten_bind_PeGCSExtent_getSLat_0=e=>(et=r._emscripten_bind_PeGCSExtent_getSLat_0=b.qa)(e),tt=r._emscripten_bind_PeGCSExtent_getRLon_0=e=>(tt=r._emscripten_bind_PeGCSExtent_getRLon_0=b.ra)(e),_t=r._emscripten_bind_PeGCSExtent_getNLat_0=e=>(_t=r._emscripten_bind_PeGCSExtent_getNLat_0=b.sa)(e),rt=r._emscripten_bind_PeGCSExtent___destroy___0=e=>(rt=r._emscripten_bind_PeGCSExtent___destroy___0=b.ta)(e),ot=r._emscripten_bind_PeGeogcs_getDatum_0=e=>(ot=r._emscripten_bind_PeGeogcs_getDatum_0=b.ua)(e),nt=r._emscripten_bind_PeGeogcs_getPrimem_0=e=>(nt=r._emscripten_bind_PeGeogcs_getPrimem_0=b.va)(e),pt=r._emscripten_bind_PeGeogcs_getUnit_0=e=>(pt=r._emscripten_bind_PeGeogcs_getUnit_0=b.wa)(e),it=r._emscripten_bind_PeGeogcs_getCode_0=e=>(it=r._emscripten_bind_PeGeogcs_getCode_0=b.xa)(e),ct=r._emscripten_bind_PeGeogcs_getName_1=(e,t)=>(ct=r._emscripten_bind_PeGeogcs_getName_1=b.ya)(e,t),st=r._emscripten_bind_PeGeogcs_getType_0=e=>(st=r._emscripten_bind_PeGeogcs_getType_0=b.za)(e),Pt=r._emscripten_bind_PeGeogtran_isEqual_1=(e,t)=>(Pt=r._emscripten_bind_PeGeogtran_isEqual_1=b.Aa)(e,t),at=r._emscripten_bind_PeGeogtran_getGeogcs1_0=e=>(at=r._emscripten_bind_PeGeogtran_getGeogcs1_0=b.Ba)(e),gt=r._emscripten_bind_PeGeogtran_getGeogcs2_0=e=>(gt=r._emscripten_bind_PeGeogtran_getGeogcs2_0=b.Ca)(e),yt=r._emscripten_bind_PeGeogtran_getParameters_0=e=>(yt=r._emscripten_bind_PeGeogtran_getParameters_0=b.Da)(e),ut=r._emscripten_bind_PeGeogtran_loadConstants_0=e=>(ut=r._emscripten_bind_PeGeogtran_loadConstants_0=b.Ea)(e),dt=r._emscripten_bind_PeGeogtran_getCode_0=e=>(dt=r._emscripten_bind_PeGeogtran_getCode_0=b.Fa)(e),ft=r._emscripten_bind_PeGeogtran_getName_1=(e,t)=>(ft=r._emscripten_bind_PeGeogtran_getName_1=b.Ga)(e,t),Et=r._emscripten_bind_PeGeogtran_getType_0=e=>(Et=r._emscripten_bind_PeGeogtran_getType_0=b.Ha)(e),bt=r._emscripten_bind_PeGTlistExtended_getGTlist_6=(e,t,_,o,n,p,i)=>(bt=r._emscripten_bind_PeGTlistExtended_getGTlist_6=b.Ia)(e,t,_,o,n,p,i),mt=r._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=e=>(mt=r._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=b.Ja)(e),Tt=r._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=e=>(Tt=r._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=b.Ka)(e),Ot=r._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=e=>(Ot=r._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=b.La)(e),St=r._emscripten_bind_PeGTlistExtendedEntry_Delete_1=(e,t)=>(St=r._emscripten_bind_PeGTlistExtendedEntry_Delete_1=b.Ma)(e,t),Nt=r._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=e=>(Nt=r._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=b.Na)(e),ht=r._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=e=>(ht=r._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=b.Oa)(e),lt=r._emscripten_bind_PeHorizon_getNump_0=e=>(lt=r._emscripten_bind_PeHorizon_getNump_0=b.Pa)(e),Mt=r._emscripten_bind_PeHorizon_getKind_0=e=>(Mt=r._emscripten_bind_PeHorizon_getKind_0=b.Qa)(e),vt=r._emscripten_bind_PeHorizon_getInclusive_0=e=>(vt=r._emscripten_bind_PeHorizon_getInclusive_0=b.Ra)(e),Rt=r._emscripten_bind_PeHorizon_getSize_0=e=>(Rt=r._emscripten_bind_PeHorizon_getSize_0=b.Sa)(e),Dt=r._emscripten_bind_PeHorizon_getCoord_0=e=>(Dt=r._emscripten_bind_PeHorizon_getCoord_0=b.Ta)(e),At=r._emscripten_bind_PeInteger_PeInteger_1=e=>(At=r._emscripten_bind_PeInteger_PeInteger_1=b.Ua)(e),Gt=r._emscripten_bind_PeInteger_get_val_0=e=>(Gt=r._emscripten_bind_PeInteger_get_val_0=b.Va)(e),Ct=r._emscripten_bind_PeInteger_set_val_1=(e,t)=>(Ct=r._emscripten_bind_PeInteger_set_val_1=b.Wa)(e,t),It=r._emscripten_bind_PeInteger___destroy___0=e=>(It=r._emscripten_bind_PeInteger___destroy___0=b.Xa)(e),jt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=e=>(jt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=b.Ya)(e),Ut=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=e=>(Ut=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=b.Za)(e),Lt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=e=>(Lt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=b._a)(e),Ft=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=e=>(Ft=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=b.$a)(e),Yt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=e=>(Yt=r._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=b.ab)(e),wt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=e=>(wt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=b.bb)(e),xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=e=>(xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=b.cb)(e),Ht=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=e=>(Ht=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=b.db)(e),Xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=e=>(Xt=r._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=b.eb)(e),zt=r._emscripten_bind_PeParameter_getValue_0=e=>(zt=r._emscripten_bind_PeParameter_getValue_0=b.fb)(e),Wt=r._emscripten_bind_PeParameter_getCode_0=e=>(Wt=r._emscripten_bind_PeParameter_getCode_0=b.gb)(e),Zt=r._emscripten_bind_PeParameter_getName_1=(e,t)=>(Zt=r._emscripten_bind_PeParameter_getName_1=b.hb)(e,t),Bt=r._emscripten_bind_PeParameter_getType_0=e=>(Bt=r._emscripten_bind_PeParameter_getType_0=b.ib)(e),Kt=r._emscripten_bind_PePCSInfo_getCentralMeridian_0=e=>(Kt=r._emscripten_bind_PePCSInfo_getCentralMeridian_0=b.jb)(e),Vt=r._emscripten_bind_PePCSInfo_getDomainMinx_0=e=>(Vt=r._emscripten_bind_PePCSInfo_getDomainMinx_0=b.kb)(e),kt=r._emscripten_bind_PePCSInfo_getDomainMiny_0=e=>(kt=r._emscripten_bind_PePCSInfo_getDomainMiny_0=b.lb)(e),qt=r._emscripten_bind_PePCSInfo_getDomainMaxx_0=e=>(qt=r._emscripten_bind_PePCSInfo_getDomainMaxx_0=b.mb)(e),Jt=r._emscripten_bind_PePCSInfo_getDomainMaxy_0=e=>(Jt=r._emscripten_bind_PePCSInfo_getDomainMaxy_0=b.nb)(e),$t=r._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=e=>($t=r._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=b.ob)(e),Qt=r._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=e=>(Qt=r._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=b.pb)(e),e_=r._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=e=>(e_=r._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=b.qb)(e),t_=r._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=e=>(t_=r._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=b.rb)(e),__=r._emscripten_bind_PePCSInfo_isDensificationNeeded_0=e=>(__=r._emscripten_bind_PePCSInfo_isDensificationNeeded_0=b.sb)(e),r_=r._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=e=>(r_=r._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=b.tb)(e),o_=r._emscripten_bind_PePCSInfo_isPannableRectangle_0=e=>(o_=r._emscripten_bind_PePCSInfo_isPannableRectangle_0=b.ub)(e),n_=r._emscripten_bind_PePCSInfo_generate_2=(e,t,_)=>(n_=r._emscripten_bind_PePCSInfo_generate_2=b.vb)(e,t,_),p_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=e=>(p_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=b.wb)(e),i_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=e=>(i_=r._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=b.xb)(e),c_=r._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=e=>(c_=r._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=b.yb)(e),s_=r._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=e=>(s_=r._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=b.zb)(e),P_=r._emscripten_bind_PePrimem_getLongitude_0=e=>(P_=r._emscripten_bind_PePrimem_getLongitude_0=b.Ab)(e),a_=r._emscripten_bind_PePrimem_getCode_0=e=>(a_=r._emscripten_bind_PePrimem_getCode_0=b.Bb)(e),g_=r._emscripten_bind_PePrimem_getName_1=(e,t)=>(g_=r._emscripten_bind_PePrimem_getName_1=b.Cb)(e,t),y_=r._emscripten_bind_PePrimem_getType_0=e=>(y_=r._emscripten_bind_PePrimem_getType_0=b.Db)(e),u_=r._emscripten_bind_PeProjcs_getGeogcs_0=e=>(u_=r._emscripten_bind_PeProjcs_getGeogcs_0=b.Eb)(e),d_=r._emscripten_bind_PeProjcs_getParameters_0=e=>(d_=r._emscripten_bind_PeProjcs_getParameters_0=b.Fb)(e),f_=r._emscripten_bind_PeProjcs_getUnit_0=e=>(f_=r._emscripten_bind_PeProjcs_getUnit_0=b.Gb)(e),E_=r._emscripten_bind_PeProjcs_loadConstants_0=e=>(E_=r._emscripten_bind_PeProjcs_loadConstants_0=b.Hb)(e),b_=r._emscripten_bind_PeProjcs_horizonGcsGenerate_0=e=>(b_=r._emscripten_bind_PeProjcs_horizonGcsGenerate_0=b.Ib)(e),m_=r._emscripten_bind_PeProjcs_horizonPcsGenerate_0=e=>(m_=r._emscripten_bind_PeProjcs_horizonPcsGenerate_0=b.Jb)(e),T_=r._emscripten_bind_PeProjcs_getCode_0=e=>(T_=r._emscripten_bind_PeProjcs_getCode_0=b.Kb)(e),O_=r._emscripten_bind_PeProjcs_getName_1=(e,t)=>(O_=r._emscripten_bind_PeProjcs_getName_1=b.Lb)(e,t),S_=r._emscripten_bind_PeProjcs_getType_0=e=>(S_=r._emscripten_bind_PeProjcs_getType_0=b.Mb)(e),N_=r._emscripten_bind_PeSpheroid_getAxis_0=e=>(N_=r._emscripten_bind_PeSpheroid_getAxis_0=b.Nb)(e),h_=r._emscripten_bind_PeSpheroid_getFlattening_0=e=>(h_=r._emscripten_bind_PeSpheroid_getFlattening_0=b.Ob)(e),l_=r._emscripten_bind_PeSpheroid_getCode_0=e=>(l_=r._emscripten_bind_PeSpheroid_getCode_0=b.Pb)(e),M_=r._emscripten_bind_PeSpheroid_getName_1=(e,t)=>(M_=r._emscripten_bind_PeSpheroid_getName_1=b.Qb)(e,t),v_=r._emscripten_bind_PeSpheroid_getType_0=e=>(v_=r._emscripten_bind_PeSpheroid_getType_0=b.Rb)(e),R_=r._emscripten_bind_PeUnit_getUnitFactor_0=e=>(R_=r._emscripten_bind_PeUnit_getUnitFactor_0=b.Sb)(e),D_=r._emscripten_bind_PeUnit_getCode_0=e=>(D_=r._emscripten_bind_PeUnit_getCode_0=b.Tb)(e),A_=r._emscripten_bind_PeUnit_getName_1=(e,t)=>(A_=r._emscripten_bind_PeUnit_getName_1=b.Ub)(e,t),G_=r._emscripten_bind_PeUnit_getType_0=e=>(G_=r._emscripten_bind_PeUnit_getType_0=b.Vb)(e),C_=r._emscripten_bind_PeVersion_version_string_0=e=>(C_=r._emscripten_bind_PeVersion_version_string_0=b.Wb)(e);r._pe_getPeGTlistExtendedEntrySize=()=>(r._pe_getPeGTlistExtendedEntrySize=b.Xb)(),r._pe_getPeGTlistExtendedGTsSize=()=>(r._pe_getPeGTlistExtendedGTsSize=b.Yb)(),r._pe_getPeHorizonSize=()=>(r._pe_getPeHorizonSize=b.Zb)(),r._pe_geog_to_geog=(e,t,_,o,n)=>(r._pe_geog_to_geog=b.$b)(e,t,_,o,n),r._pe_geog_to_proj=(e,t,_)=>(r._pe_geog_to_proj=b.ac)(e,t,_),r._pe_geog_to_dd=(e,t,_,o,n)=>(r._pe_geog_to_dd=b.bc)(e,t,_,o,n),r._pe_dd_to_geog=(e,t,_,o)=>(r._pe_dd_to_geog=b.cc)(e,t,_,o),r._pe_geog_to_ddm=(e,t,_,o,n)=>(r._pe_geog_to_ddm=b.dc)(e,t,_,o,n),r._pe_ddm_to_geog=(e,t,_,o)=>(r._pe_ddm_to_geog=b.ec)(e,t,_,o),r._pe_geog_to_dms=(e,t,_,o,n)=>(r._pe_geog_to_dms=b.fc)(e,t,_,o,n),r._pe_dms_to_geog=(e,t,_,o)=>(r._pe_dms_to_geog=b.gc)(e,t,_,o),r._pe_geog_to_mgrs_extended=(e,t,_,o,n,p,i)=>(r._pe_geog_to_mgrs_extended=b.hc)(e,t,_,o,n,p,i),r._pe_mgrs_to_geog_extended=(e,t,_,o,n)=>(r._pe_mgrs_to_geog_extended=b.ic)(e,t,_,o,n),r._pe_geog_to_usng=(e,t,_,o,n,p,i)=>(r._pe_geog_to_usng=b.jc)(e,t,_,o,n,p,i),r._pe_usng_to_geog=(e,t,_,o)=>(r._pe_usng_to_geog=b.kc)(e,t,_,o),r._pe_geog_to_utm=(e,t,_,o,n)=>(r._pe_geog_to_utm=b.lc)(e,t,_,o,n),r._pe_utm_to_geog=(e,t,_,o,n)=>(r._pe_utm_to_geog=b.mc)(e,t,_,o,n),r._pe_object_to_string_ext=(e,t,_)=>(r._pe_object_to_string_ext=b.nc)(e,t,_),r._pe_proj_to_geog_center=(e,t,_,o)=>(r._pe_proj_to_geog_center=b.oc)(e,t,_,o);var I_,j_=r._malloc=e=>(j_=r._malloc=b.pc)(e);function U_(){function e(){I_||(I_=!0,r.calledRun=!0,R||(W(C),t(r),r.onRuntimeInitialized&&r.onRuntimeInitialized(),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)U(r.postRun.shift());W(I)}()))}L>0||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)j(r.preRun.shift());W(G)}(),L>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),e()}),1)):e()))}if(r._free=e=>(r._free=b.qc)(e),r.___start_em_js=1970106,r.___stop_em_js=1970204,r.getValue=function(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return O[e>>0];case"i16":return N[e>>1];case"i32":return h[e>>2];case"i64":Y("to do getValue(i64) use WASM_BIGINT");case"float":return M[e>>2];case"double":return v[e>>3];case"*":return l[e>>2];default:Y(`invalid type for getValue: ${t}`)}},r.UTF8ToString=K,F=function e(){I_||U_(),I_||(F=e)},r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();function L_(){}function F_(e){return(e||L_).__cache__}function Y_(e,t){var _=F_(t),r=_[e];return r||((r=Object.create((t||L_).prototype)).ptr=e,_[e]=r)}U_(),L_.prototype=Object.create(L_.prototype),L_.prototype.constructor=L_,L_.prototype.__class__=L_,L_.__cache__={},r.WrapperObject=L_,r.getCache=F_,r.wrapPointer=Y_,r.castObject=function(e,t){return Y_(e.ptr,t)},r.NULL=Y_(0),r.destroy=function(e){if(!e.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";e.__destroy__(),delete F_(e.__class__)[e.ptr]},r.compare=function(e,t){return e.ptr===t.ptr},r.getPointer=function(e){return e.ptr},r.getClass=function(e){return e.__class__};var w_={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(w_.needed){for(var e=0;e<w_.temps.length;e++)r._free(w_.temps[e]);w_.temps.length=0,r._free(w_.buffer),w_.buffer=0,w_.size+=w_.needed,w_.needed=0}w_.buffer||(w_.size+=128,w_.buffer=r._malloc(w_.size),D(w_.buffer)),w_.pos=0},alloc:function(e,t){D(w_.buffer);var _,o=t.BYTES_PER_ELEMENT,n=e.length*o;return n=n+7&-8,w_.pos+n>=w_.size?(D(n>0),w_.needed+=n,_=r._malloc(n),w_.temps.push(_)):(_=w_.buffer+w_.pos,w_.pos+=n),_},copy:function(e,t,_){switch(_>>>=0,t.BYTES_PER_ELEMENT){case 2:_>>>=1;break;case 4:_>>>=2;break;case 8:_>>>=3}for(var r=0;r<e.length;r++)t[_+r]=e[r]}};function x_(e){if("string"==typeof e){var t=function(e,t,_){var r=J(e)+1,o=new Array(r);V(e,o,0,o.length);return o}(e),_=w_.alloc(t,O);return w_.copy(t,O,_),_}return e}function H_(e){if("object"==typeof e){var t=w_.alloc(e,O);return w_.copy(e,O,t),t}return e}function X_(){throw"cannot construct a PeObject, no constructor in IDL"}function z_(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function W_(){throw"cannot construct a VoidPtr, no constructor in IDL"}function Z_(){throw"cannot construct a PeDatum, no constructor in IDL"}function B_(){throw"cannot construct a PeDefs, no constructor in IDL"}function K_(){throw"cannot construct a PeFactory, no constructor in IDL"}function V_(e,t,_,r,o,n){e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),this.ptr=$e(e,t,_,r,o,n),F_(V_)[this.ptr]=this}function k_(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function q_(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function J_(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function $_(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function Q_(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function er(){throw"cannot construct a PeHorizon, no constructor in IDL"}function tr(e){e&&"object"==typeof e&&(e=e.ptr),this.ptr=At(e),F_(tr)[this.ptr]=this}function _r(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function rr(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function or(){throw"cannot construct a PeParameter, no constructor in IDL"}function nr(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function pr(){throw"cannot construct a PePrimem, no constructor in IDL"}function ir(){throw"cannot construct a PeProjcs, no constructor in IDL"}function cr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function sr(){throw"cannot construct a PeUnit, no constructor in IDL"}function Pr(){throw"cannot construct a PeVersion, no constructor in IDL"}return X_.prototype=Object.create(L_.prototype),X_.prototype.constructor=X_,X_.prototype.__class__=X_,X_.__cache__={},r.PeObject=X_,X_.prototype.getCode=X_.prototype.getCode=function(){var e=this.ptr;return ne(e)},X_.prototype.getName=X_.prototype.getName=function(e){var t=this.ptr;return w_.prepare(),"object"==typeof e&&(e=H_(e)),K(pe(t,e))},X_.prototype.getType=X_.prototype.getType=function(){var e=this.ptr;return ie(e)},z_.prototype=Object.create(X_.prototype),z_.prototype.constructor=z_,z_.prototype.__class__=z_,z_.__cache__={},r.PeCoordsys=z_,z_.prototype.getCode=z_.prototype.getCode=function(){var e=this.ptr;return ce(e)},z_.prototype.getName=z_.prototype.getName=function(e){var t=this.ptr;return w_.prepare(),"object"==typeof e&&(e=H_(e)),K(se(t,e))},z_.prototype.getType=z_.prototype.getType=function(){var e=this.ptr;return Pe(e)},W_.prototype=Object.create(L_.prototype),W_.prototype.constructor=W_,W_.prototype.__class__=W_,W_.__cache__={},r.VoidPtr=W_,W_.prototype.__destroy__=W_.prototype.__destroy__=function(){var e=this.ptr;ae(e)},Z_.prototype=Object.create(X_.prototype),Z_.prototype.constructor=Z_,Z_.prototype.__class__=Z_,Z_.__cache__={},r.PeDatum=Z_,Z_.prototype.getSpheroid=Z_.prototype.getSpheroid=function(){var e=this.ptr;return Y_(ge(e),cr)},Z_.prototype.getCode=Z_.prototype.getCode=function(){var e=this.ptr;return ye(e)},Z_.prototype.getName=Z_.prototype.getName=function(e){var t=this.ptr;return w_.prepare(),"object"==typeof e&&(e=H_(e)),K(ue(t,e))},Z_.prototype.getType=Z_.prototype.getType=function(){var e=this.ptr;return de(e)},B_.prototype=Object.create(L_.prototype),B_.prototype.constructor=B_,B_.prototype.__class__=B_,B_.__cache__={},r.PeDefs=B_,B_.prototype.get_PE_BUFFER_MAX=B_.prototype.get_PE_BUFFER_MAX=function(){var e=this.ptr;return fe(e)},Object.defineProperty(B_.prototype,"PE_BUFFER_MAX",{get:B_.prototype.get_PE_BUFFER_MAX}),B_.prototype.get_PE_NAME_MAX=B_.prototype.get_PE_NAME_MAX=function(){var e=this.ptr;return Ee(e)},Object.defineProperty(B_.prototype,"PE_NAME_MAX",{get:B_.prototype.get_PE_NAME_MAX}),B_.prototype.get_PE_MGRS_MAX=B_.prototype.get_PE_MGRS_MAX=function(){var e=this.ptr;return be(e)},Object.defineProperty(B_.prototype,"PE_MGRS_MAX",{get:B_.prototype.get_PE_MGRS_MAX}),B_.prototype.get_PE_USNG_MAX=B_.prototype.get_PE_USNG_MAX=function(){var e=this.ptr;return me(e)},Object.defineProperty(B_.prototype,"PE_USNG_MAX",{get:B_.prototype.get_PE_USNG_MAX}),B_.prototype.get_PE_DD_MAX=B_.prototype.get_PE_DD_MAX=function(){var e=this.ptr;return Te(e)},Object.defineProperty(B_.prototype,"PE_DD_MAX",{get:B_.prototype.get_PE_DD_MAX}),B_.prototype.get_PE_DMS_MAX=B_.prototype.get_PE_DMS_MAX=function(){var e=this.ptr;return Oe(e)},Object.defineProperty(B_.prototype,"PE_DMS_MAX",{get:B_.prototype.get_PE_DMS_MAX}),B_.prototype.get_PE_DDM_MAX=B_.prototype.get_PE_DDM_MAX=function(){var e=this.ptr;return Se(e)},Object.defineProperty(B_.prototype,"PE_DDM_MAX",{get:B_.prototype.get_PE_DDM_MAX}),B_.prototype.get_PE_UTM_MAX=B_.prototype.get_PE_UTM_MAX=function(){var e=this.ptr;return Ne(e)},Object.defineProperty(B_.prototype,"PE_UTM_MAX",{get:B_.prototype.get_PE_UTM_MAX}),B_.prototype.get_PE_PARM_MAX=B_.prototype.get_PE_PARM_MAX=function(){var e=this.ptr;return he(e)},Object.defineProperty(B_.prototype,"PE_PARM_MAX",{get:B_.prototype.get_PE_PARM_MAX}),B_.prototype.get_PE_TYPE_NONE=B_.prototype.get_PE_TYPE_NONE=function(){var e=this.ptr;return le(e)},Object.defineProperty(B_.prototype,"PE_TYPE_NONE",{get:B_.prototype.get_PE_TYPE_NONE}),B_.prototype.get_PE_TYPE_GEOGCS=B_.prototype.get_PE_TYPE_GEOGCS=function(){var e=this.ptr;return Me(e)},Object.defineProperty(B_.prototype,"PE_TYPE_GEOGCS",{get:B_.prototype.get_PE_TYPE_GEOGCS}),B_.prototype.get_PE_TYPE_PROJCS=B_.prototype.get_PE_TYPE_PROJCS=function(){var e=this.ptr;return ve(e)},Object.defineProperty(B_.prototype,"PE_TYPE_PROJCS",{get:B_.prototype.get_PE_TYPE_PROJCS}),B_.prototype.get_PE_TYPE_GEOGTRAN=B_.prototype.get_PE_TYPE_GEOGTRAN=function(){var e=this.ptr;return Re(e)},Object.defineProperty(B_.prototype,"PE_TYPE_GEOGTRAN",{get:B_.prototype.get_PE_TYPE_GEOGTRAN}),B_.prototype.get_PE_TYPE_COORDSYS=B_.prototype.get_PE_TYPE_COORDSYS=function(){var e=this.ptr;return De(e)},Object.defineProperty(B_.prototype,"PE_TYPE_COORDSYS",{get:B_.prototype.get_PE_TYPE_COORDSYS}),B_.prototype.get_PE_TYPE_UNIT=B_.prototype.get_PE_TYPE_UNIT=function(){var e=this.ptr;return Ae(e)},Object.defineProperty(B_.prototype,"PE_TYPE_UNIT",{get:B_.prototype.get_PE_TYPE_UNIT}),B_.prototype.get_PE_TYPE_LINUNIT=B_.prototype.get_PE_TYPE_LINUNIT=function(){var e=this.ptr;return Ge(e)},Object.defineProperty(B_.prototype,"PE_TYPE_LINUNIT",{get:B_.prototype.get_PE_TYPE_LINUNIT}),B_.prototype.get_PE_STR_OPTS_NONE=B_.prototype.get_PE_STR_OPTS_NONE=function(){var e=this.ptr;return Ce(e)},Object.defineProperty(B_.prototype,"PE_STR_OPTS_NONE",{get:B_.prototype.get_PE_STR_OPTS_NONE}),B_.prototype.get_PE_STR_AUTH_NONE=B_.prototype.get_PE_STR_AUTH_NONE=function(){var e=this.ptr;return Ie(e)},Object.defineProperty(B_.prototype,"PE_STR_AUTH_NONE",{get:B_.prototype.get_PE_STR_AUTH_NONE}),B_.prototype.get_PE_STR_AUTH_TOP=B_.prototype.get_PE_STR_AUTH_TOP=function(){var e=this.ptr;return je(e)},Object.defineProperty(B_.prototype,"PE_STR_AUTH_TOP",{get:B_.prototype.get_PE_STR_AUTH_TOP}),B_.prototype.get_PE_STR_NAME_CANON=B_.prototype.get_PE_STR_NAME_CANON=function(){var e=this.ptr;return Ue(e)},Object.defineProperty(B_.prototype,"PE_STR_NAME_CANON",{get:B_.prototype.get_PE_STR_NAME_CANON}),B_.prototype.get_PE_STR_FMT_WKT=B_.prototype.get_PE_STR_FMT_WKT=function(){var e=this.ptr;return Le(e)},Object.defineProperty(B_.prototype,"PE_STR_FMT_WKT",{get:B_.prototype.get_PE_STR_FMT_WKT}),B_.prototype.get_PE_STR_FMT_WKT2=B_.prototype.get_PE_STR_FMT_WKT2=function(){var e=this.ptr;return Fe(e)},Object.defineProperty(B_.prototype,"PE_STR_FMT_WKT2",{get:B_.prototype.get_PE_STR_FMT_WKT2}),B_.prototype.get_PE_PARM_X0=B_.prototype.get_PE_PARM_X0=function(){var e=this.ptr;return Ye(e)},Object.defineProperty(B_.prototype,"PE_PARM_X0",{get:B_.prototype.get_PE_PARM_X0}),B_.prototype.get_PE_PARM_ND=B_.prototype.get_PE_PARM_ND=function(){var e=this.ptr;return we(e)},Object.defineProperty(B_.prototype,"PE_PARM_ND",{get:B_.prototype.get_PE_PARM_ND}),B_.prototype.get_PE_TRANSFORM_1_TO_2=B_.prototype.get_PE_TRANSFORM_1_TO_2=function(){var e=this.ptr;return xe(e)},Object.defineProperty(B_.prototype,"PE_TRANSFORM_1_TO_2",{get:B_.prototype.get_PE_TRANSFORM_1_TO_2}),B_.prototype.get_PE_TRANSFORM_2_TO_1=B_.prototype.get_PE_TRANSFORM_2_TO_1=function(){var e=this.ptr;return He(e)},Object.defineProperty(B_.prototype,"PE_TRANSFORM_2_TO_1",{get:B_.prototype.get_PE_TRANSFORM_2_TO_1}),B_.prototype.get_PE_TRANSFORM_P_TO_G=B_.prototype.get_PE_TRANSFORM_P_TO_G=function(){var e=this.ptr;return Xe(e)},Object.defineProperty(B_.prototype,"PE_TRANSFORM_P_TO_G",{get:B_.prototype.get_PE_TRANSFORM_P_TO_G}),B_.prototype.get_PE_TRANSFORM_G_TO_P=B_.prototype.get_PE_TRANSFORM_G_TO_P=function(){var e=this.ptr;return ze(e)},Object.defineProperty(B_.prototype,"PE_TRANSFORM_G_TO_P",{get:B_.prototype.get_PE_TRANSFORM_G_TO_P}),B_.prototype.get_PE_HORIZON_RECT=B_.prototype.get_PE_HORIZON_RECT=function(){var e=this.ptr;return We(e)},Object.defineProperty(B_.prototype,"PE_HORIZON_RECT",{get:B_.prototype.get_PE_HORIZON_RECT}),B_.prototype.get_PE_HORIZON_POLY=B_.prototype.get_PE_HORIZON_POLY=function(){var e=this.ptr;return Ze(e)},Object.defineProperty(B_.prototype,"PE_HORIZON_POLY",{get:B_.prototype.get_PE_HORIZON_POLY}),B_.prototype.get_PE_HORIZON_LINE=B_.prototype.get_PE_HORIZON_LINE=function(){var e=this.ptr;return Be(e)},Object.defineProperty(B_.prototype,"PE_HORIZON_LINE",{get:B_.prototype.get_PE_HORIZON_LINE}),B_.prototype.get_PE_HORIZON_DELTA=B_.prototype.get_PE_HORIZON_DELTA=function(){var e=this.ptr;return Ke(e)},Object.defineProperty(B_.prototype,"PE_HORIZON_DELTA",{get:B_.prototype.get_PE_HORIZON_DELTA}),K_.prototype=Object.create(L_.prototype),K_.prototype.constructor=K_,K_.prototype.__class__=K_,K_.__cache__={},r.PeFactory=K_,K_.prototype.initialize=K_.prototype.initialize=function(e){var t=this.ptr;w_.prepare(),e=e&&"object"==typeof e?e.ptr:x_(e),Ve(t,e)},K_.prototype.factoryByType=K_.prototype.factoryByType=function(e,t){var _=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),Y_(ke(_,e,t),X_)},K_.prototype.fromString=K_.prototype.fromString=function(e,t){var _=this.ptr;return w_.prepare(),e&&"object"==typeof e&&(e=e.ptr),t=t&&"object"==typeof t?t.ptr:x_(t),Y_(qe(_,e,t),X_)},K_.prototype.getCode=K_.prototype.getCode=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),Je(t,e)},V_.prototype=Object.create(L_.prototype),V_.prototype.constructor=V_,V_.prototype.__class__=V_,V_.__cache__={},r.PeGCSExtent=V_,V_.prototype.getLLon=V_.prototype.getLLon=function(){var e=this.ptr;return Qe(e)},V_.prototype.getSLat=V_.prototype.getSLat=function(){var e=this.ptr;return et(e)},V_.prototype.getRLon=V_.prototype.getRLon=function(){var e=this.ptr;return tt(e)},V_.prototype.getNLat=V_.prototype.getNLat=function(){var e=this.ptr;return _t(e)},V_.prototype.__destroy__=V_.prototype.__destroy__=function(){var e=this.ptr;rt(e)},k_.prototype=Object.create(z_.prototype),k_.prototype.constructor=k_,k_.prototype.__class__=k_,k_.__cache__={},r.PeGeogcs=k_,k_.prototype.getDatum=k_.prototype.getDatum=function(){var e=this.ptr;return Y_(ot(e),Z_)},k_.prototype.getPrimem=k_.prototype.getPrimem=function(){var e=this.ptr;return Y_(nt(e),pr)},k_.prototype.getUnit=k_.prototype.getUnit=function(){var e=this.ptr;return Y_(pt(e),sr)},k_.prototype.getCode=k_.prototype.getCode=function(){var e=this.ptr;return it(e)},k_.prototype.getName=k_.prototype.getName=function(e){var t=this.ptr;return w_.prepare(),"object"==typeof e&&(e=H_(e)),K(ct(t,e))},k_.prototype.getType=k_.prototype.getType=function(){var e=this.ptr;return st(e)},q_.prototype=Object.create(X_.prototype),q_.prototype.constructor=q_,q_.prototype.__class__=q_,q_.__cache__={},r.PeGeogtran=q_,q_.prototype.isEqual=q_.prototype.isEqual=function(e){var t=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),!!Pt(t,e)},q_.prototype.getGeogcs1=q_.prototype.getGeogcs1=function(){var e=this.ptr;return Y_(at(e),k_)},q_.prototype.getGeogcs2=q_.prototype.getGeogcs2=function(){var e=this.ptr;return Y_(gt(e),k_)},q_.prototype.getParameters=q_.prototype.getParameters=function(){var e=this.ptr;return yt(e)},q_.prototype.loadConstants=q_.prototype.loadConstants=function(){var e=this.ptr;return!!ut(e)},q_.prototype.getCode=q_.prototype.getCode=function(){var e=this.ptr;return dt(e)},q_.prototype.getName=q_.prototype.getName=function(e){var t=this.ptr;return w_.prepare(),"object"==typeof e&&(e=H_(e)),K(ft(t,e))},q_.prototype.getType=q_.prototype.getType=function(){var e=this.ptr;return Et(e)},J_.prototype=Object.create(L_.prototype),J_.prototype.constructor=J_,J_.prototype.__class__=J_,J_.__cache__={},r.PeGTlistExtended=J_,J_.prototype.getGTlist=J_.prototype.getGTlist=function(e,t,_,r,o,n){var p=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),_&&"object"==typeof _&&(_=_.ptr),r&&"object"==typeof r&&(r=r.ptr),o&&"object"==typeof o&&(o=o.ptr),n&&"object"==typeof n&&(n=n.ptr),Y_(bt(p,e,t,_,r,o,n),$_)},J_.prototype.get_PE_GTLIST_OPTS_COMMON=J_.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var e=this.ptr;return mt(e)},Object.defineProperty(J_.prototype,"PE_GTLIST_OPTS_COMMON",{get:J_.prototype.get_PE_GTLIST_OPTS_COMMON}),$_.prototype=Object.create(L_.prototype),$_.prototype.constructor=$_,$_.prototype.__class__=$_,$_.__cache__={},r.PeGTlistExtendedEntry=$_,$_.prototype.getEntries=$_.prototype.getEntries=function(){var e=this.ptr;return Y_(Tt(e),Q_)},$_.prototype.getSteps=$_.prototype.getSteps=function(){var e=this.ptr;return Ot(e)},$_.prototype.Delete=$_.prototype.Delete=function(e){var t=this.ptr;e&&"object"==typeof e&&(e=e.ptr),St(t,e)},Q_.prototype=Object.create(L_.prototype),Q_.prototype.constructor=Q_,Q_.prototype.__class__=Q_,Q_.__cache__={},r.PeGTlistExtendedGTs=Q_,Q_.prototype.getDirection=Q_.prototype.getDirection=function(){var e=this.ptr;return Nt(e)},Q_.prototype.getGeogtran=Q_.prototype.getGeogtran=function(){var e=this.ptr;return Y_(ht(e),q_)},er.prototype=Object.create(L_.prototype),er.prototype.constructor=er,er.prototype.__class__=er,er.__cache__={},r.PeHorizon=er,er.prototype.getNump=er.prototype.getNump=function(){var e=this.ptr;return lt(e)},er.prototype.getKind=er.prototype.getKind=function(){var e=this.ptr;return Mt(e)},er.prototype.getInclusive=er.prototype.getInclusive=function(){var e=this.ptr;return vt(e)},er.prototype.getSize=er.prototype.getSize=function(){var e=this.ptr;return Rt(e)},er.prototype.getCoord=er.prototype.getCoord=function(){var e=this.ptr;return Dt(e)},tr.prototype=Object.create(L_.prototype),tr.prototype.constructor=tr,tr.prototype.__class__=tr,tr.__cache__={},r.PeInteger=tr,tr.prototype.get_val=tr.prototype.get_val=function(){var e=this.ptr;return Gt(e)},tr.prototype.set_val=tr.prototype.set_val=function(e){var t=this.ptr;e&&"object"==typeof e&&(e=e.ptr),Ct(t,e)},Object.defineProperty(tr.prototype,"val",{get:tr.prototype.get_val,set:tr.prototype.set_val}),tr.prototype.__destroy__=tr.prototype.__destroy__=function(){var e=this.ptr;It(e)},_r.prototype=Object.create(L_.prototype),_r.prototype.constructor=_r,_r.prototype.__class__=_r,_r.__cache__={},r.PeNotationMgrs=_r,_r.prototype.get_PE_MGRS_STYLE_NEW=_r.prototype.get_PE_MGRS_STYLE_NEW=function(){var e=this.ptr;return jt(e)},Object.defineProperty(_r.prototype,"PE_MGRS_STYLE_NEW",{get:_r.prototype.get_PE_MGRS_STYLE_NEW}),_r.prototype.get_PE_MGRS_STYLE_OLD=_r.prototype.get_PE_MGRS_STYLE_OLD=function(){var e=this.ptr;return Ut(e)},Object.defineProperty(_r.prototype,"PE_MGRS_STYLE_OLD",{get:_r.prototype.get_PE_MGRS_STYLE_OLD}),_r.prototype.get_PE_MGRS_STYLE_AUTO=_r.prototype.get_PE_MGRS_STYLE_AUTO=function(){var e=this.ptr;return Lt(e)},Object.defineProperty(_r.prototype,"PE_MGRS_STYLE_AUTO",{get:_r.prototype.get_PE_MGRS_STYLE_AUTO}),_r.prototype.get_PE_MGRS_180_ZONE_1_PLUS=_r.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var e=this.ptr;return Ft(e)},Object.defineProperty(_r.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:_r.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),_r.prototype.get_PE_MGRS_ADD_SPACES=_r.prototype.get_PE_MGRS_ADD_SPACES=function(){var e=this.ptr;return Yt(e)},Object.defineProperty(_r.prototype,"PE_MGRS_ADD_SPACES",{get:_r.prototype.get_PE_MGRS_ADD_SPACES}),rr.prototype=Object.create(L_.prototype),rr.prototype.constructor=rr,rr.prototype.__class__=rr,rr.__cache__={},r.PeNotationUtm=rr,rr.prototype.get_PE_UTM_OPTS_NONE=rr.prototype.get_PE_UTM_OPTS_NONE=function(){var e=this.ptr;return wt(e)},Object.defineProperty(rr.prototype,"PE_UTM_OPTS_NONE",{get:rr.prototype.get_PE_UTM_OPTS_NONE}),rr.prototype.get_PE_UTM_OPTS_NS=rr.prototype.get_PE_UTM_OPTS_NS=function(){var e=this.ptr;return xt(e)},Object.defineProperty(rr.prototype,"PE_UTM_OPTS_NS",{get:rr.prototype.get_PE_UTM_OPTS_NS}),rr.prototype.get_PE_UTM_OPTS_NS_STRICT=rr.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var e=this.ptr;return Ht(e)},Object.defineProperty(rr.prototype,"PE_UTM_OPTS_NS_STRICT",{get:rr.prototype.get_PE_UTM_OPTS_NS_STRICT}),rr.prototype.get_PE_UTM_OPTS_ADD_SPACES=rr.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var e=this.ptr;return Xt(e)},Object.defineProperty(rr.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:rr.prototype.get_PE_UTM_OPTS_ADD_SPACES}),or.prototype=Object.create(X_.prototype),or.prototype.constructor=or,or.prototype.__class__=or,or.__cache__={},r.PeParameter=or,or.prototype.getValue=or.prototype.getValue=function(){var e=this.ptr;return zt(e)},or.prototype.getCode=or.prototype.getCode=function(){var e=this.ptr;return Wt(e)},or.prototype.getName=or.prototype.getName=function(e){var t=this.ptr;return w_.prepare(),"object"==typeof e&&(e=H_(e)),K(Zt(t,e))},or.prototype.getType=or.prototype.getType=function(){var e=this.ptr;return Bt(e)},nr.prototype=Object.create(L_.prototype),nr.prototype.constructor=nr,nr.prototype.__class__=nr,nr.__cache__={},r.PePCSInfo=nr,nr.prototype.getCentralMeridian=nr.prototype.getCentralMeridian=function(){var e=this.ptr;return Kt(e)},nr.prototype.getDomainMinx=nr.prototype.getDomainMinx=function(){var e=this.ptr;return Vt(e)},nr.prototype.getDomainMiny=nr.prototype.getDomainMiny=function(){var e=this.ptr;return kt(e)},nr.prototype.getDomainMaxx=nr.prototype.getDomainMaxx=function(){var e=this.ptr;return qt(e)},nr.prototype.getDomainMaxy=nr.prototype.getDomainMaxy=function(){var e=this.ptr;return Jt(e)},nr.prototype.getNorthPoleLocation=nr.prototype.getNorthPoleLocation=function(){var e=this.ptr;return $t(e)},nr.prototype.getNorthPoleGeometry=nr.prototype.getNorthPoleGeometry=function(){var e=this.ptr;return Qt(e)},nr.prototype.getSouthPoleLocation=nr.prototype.getSouthPoleLocation=function(){var e=this.ptr;return e_(e)},nr.prototype.getSouthPoleGeometry=nr.prototype.getSouthPoleGeometry=function(){var e=this.ptr;return t_(e)},nr.prototype.isDensificationNeeded=nr.prototype.isDensificationNeeded=function(){var e=this.ptr;return!!__(e)},nr.prototype.isGcsHorizonMultiOverlap=nr.prototype.isGcsHorizonMultiOverlap=function(){var e=this.ptr;return!!r_(e)},nr.prototype.isPannableRectangle=nr.prototype.isPannableRectangle=function(){var e=this.ptr;return!!o_(e)},nr.prototype.generate=nr.prototype.generate=function(e,t){var _=this.ptr;return e&&"object"==typeof e&&(e=e.ptr),t&&"object"==typeof t&&(t=t.ptr),Y_(n_(_,e,t),nr)},nr.prototype.get_PE_PCSINFO_OPTION_NONE=nr.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var e=this.ptr;return p_(e)},Object.defineProperty(nr.prototype,"PE_PCSINFO_OPTION_NONE",{get:nr.prototype.get_PE_PCSINFO_OPTION_NONE}),nr.prototype.get_PE_PCSINFO_OPTION_DOMAIN=nr.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var e=this.ptr;return i_(e)},Object.defineProperty(nr.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:nr.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),nr.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=nr.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var e=this.ptr;return c_(e)},Object.defineProperty(nr.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:nr.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),nr.prototype.get_PE_POLE_POINT=nr.prototype.get_PE_POLE_POINT=function(){var e=this.ptr;return s_(e)},Object.defineProperty(nr.prototype,"PE_POLE_POINT",{get:nr.prototype.get_PE_POLE_POINT}),pr.prototype=Object.create(X_.prototype),pr.prototype.constructor=pr,pr.prototype.__class__=pr,pr.__cache__={},r.PePrimem=pr,pr.prototype.getLongitude=pr.prototype.getLongitude=function(){var e=this.ptr;return P_(e)},pr.prototype.getCode=pr.prototype.getCode=function(){var e=this.ptr;return a_(e)},pr.prototype.getName=pr.prototype.getName=function(e){var t=this.ptr;return w_.prepare(),"object"==typeof e&&(e=H_(e)),K(g_(t,e))},pr.prototype.getType=pr.prototype.getType=function(){var e=this.ptr;return y_(e)},ir.prototype=Object.create(z_.prototype),ir.prototype.constructor=ir,ir.prototype.__class__=ir,ir.__cache__={},r.PeProjcs=ir,ir.prototype.getGeogcs=ir.prototype.getGeogcs=function(){var e=this.ptr;return Y_(u_(e),k_)},ir.prototype.getParameters=ir.prototype.getParameters=function(){var e=this.ptr;return d_(e)},ir.prototype.getUnit=ir.prototype.getUnit=function(){var e=this.ptr;return Y_(f_(e),sr)},ir.prototype.loadConstants=ir.prototype.loadConstants=function(){var e=this.ptr;return!!E_(e)},ir.prototype.horizonGcsGenerate=ir.prototype.horizonGcsGenerate=function(){var e=this.ptr;return Y_(b_(e),er)},ir.prototype.horizonPcsGenerate=ir.prototype.horizonPcsGenerate=function(){var e=this.ptr;return Y_(m_(e),er)},ir.prototype.getCode=ir.prototype.getCode=function(){var e=this.ptr;return T_(e)},ir.prototype.getName=ir.prototype.getName=function(e){var t=this.ptr;return w_.prepare(),"object"==typeof e&&(e=H_(e)),K(O_(t,e))},ir.prototype.getType=ir.prototype.getType=function(){var e=this.ptr;return S_(e)},cr.prototype=Object.create(X_.prototype),cr.prototype.constructor=cr,cr.prototype.__class__=cr,cr.__cache__={},r.PeSpheroid=cr,cr.prototype.getAxis=cr.prototype.getAxis=function(){var e=this.ptr;return N_(e)},cr.prototype.getFlattening=cr.prototype.getFlattening=function(){var e=this.ptr;return h_(e)},cr.prototype.getCode=cr.prototype.getCode=function(){var e=this.ptr;return l_(e)},cr.prototype.getName=cr.prototype.getName=function(e){var t=this.ptr;return w_.prepare(),"object"==typeof e&&(e=H_(e)),K(M_(t,e))},cr.prototype.getType=cr.prototype.getType=function(){var e=this.ptr;return v_(e)},sr.prototype=Object.create(X_.prototype),sr.prototype.constructor=sr,sr.prototype.__class__=sr,sr.__cache__={},r.PeUnit=sr,sr.prototype.getUnitFactor=sr.prototype.getUnitFactor=function(){var e=this.ptr;return R_(e)},sr.prototype.getCode=sr.prototype.getCode=function(){var e=this.ptr;return D_(e)},sr.prototype.getName=sr.prototype.getName=function(e){var t=this.ptr;return w_.prepare(),"object"==typeof e&&(e=H_(e)),K(A_(t,e))},sr.prototype.getType=sr.prototype.getType=function(){var e=this.ptr;return G_(e)},Pr.prototype=Object.create(L_.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},r.PeVersion=Pr,Pr.prototype.version_string=Pr.prototype.version_string=function(){var e=this.ptr;return K(C_(e))},r.ensureCache=w_,r.ensureString=x_,r.ensureInt8=H_,r.ensureInt16=function(e){if("object"==typeof e){var t=w_.alloc(e,N);return w_.copy(e,N,t),t}return e},r.ensureInt32=function(e){if("object"==typeof e){var t=w_.alloc(e,h);return w_.copy(e,h,t),t}return e},r.ensureFloat32=function(e){if("object"==typeof e){var t=w_.alloc(e,M);return w_.copy(e,M,t),t}return e},r.ensureFloat64=function(e){if("object"==typeof e){var t=w_.alloc(e,v);return w_.copy(e,v,t),t}return e},e.ready},r.exports=n;var c=i.exports;const s=function(e,t){for(var _=0;_<t.length;_++){const r=t[_];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const _=Object.getOwnPropertyDescriptor(r,t);_&&Object.defineProperty(e,t,_.get?_:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(0,p.g)(c)},[c])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6456],{45091:(e,t,s)=>{s.d(t,{Z:()=>c});var i,n,r=s(80442),a=s(71143);(n=i||(i={}))[n.varint=0]="varint",n[n.fixed64=1]="fixed64",n[n.delimited=2]="delimited",n[n.fixed32=5]="fixed32",n[n.unknown=99]="unknown";const o=4294967296,l=new TextDecoder("utf-8"),h=(0,r.Z)("safari")||(0,r.Z)("ios")?6:(0,r.Z)("ff")?12:32;class c{constructor(e,t,s=0,n=(e?e.byteLength:0)){this._tag=0,this._dataType=i.unknown,this._init(e,t,s,n)}_init(e,t,s,i){this._data=e,this._dataView=t,this._pos=s,this._end=i}asUnsafe(){return this}clone(){return new c(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;return e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128?e:(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128?e:(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128?e:void 0))))}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();if(void 0!==e)return e>>>1^-(1&e)|0}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),s}getSFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),s}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,s=this._toString(this._data,t,t+e);return this._skip(e),s}getBytes(){const e=this._getLength(),t=this._pos,s=this._toBytes(this._data,t,t+e);return this._skip(e),s}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,s,i){const n=this.getMessage(),r=e(n,t,s,i);return n.release(),r}processMessage(e){const t=this.getMessage(),s=e(t);return t.release(),s}getMessage(){const e=this._getLength(),t=c.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){c.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case i.varint:this._decodeVarint();break;case i.fixed64:this._skip(8);break;case i.delimited:this._skip(this._getLength());break;case i.fixed32:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,s=0,i=0;if(this._end-t>=10)do{if(i=e[t++],s|=127&i,0==(128&i))break;if(i=e[t++],s|=(127&i)<<7,0==(128&i))break;if(i=e[t++],s|=(127&i)<<14,0==(128&i))break;if(i=e[t++],s|=(127&i)<<21,0==(128&i))break;if(i=e[t++],s+=268435456*(127&i),0==(128&i))break;if(i=e[t++],s+=34359738368*(127&i),0==(128&i))break;if(i=e[t++],s+=4398046511104*(127&i),0==(128&i))break;if(i=e[t++],s+=562949953421312*(127&i),0==(128&i))break;if(i=e[t++],s+=72057594037927940*(127&i),0==(128&i))break;if(i=e[t++],s+=0x8000000000000000*(127&i),0==(128&i))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(i=e[t],0!=(128&i));)++t,s+=(127&i)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,s+=i*n}return this._pos=t,s}_decodeSVarint(){const e=this._data;let t=this._pos,s=0,i=0;const n=1&e[t];if(this._end-t>=10)do{if(i=e[t++],s|=127&i,0==(128&i))break;if(i=e[t++],s|=(127&i)<<7,0==(128&i))break;if(i=e[t++],s|=(127&i)<<14,0==(128&i))break;if(i=e[t++],s|=(127&i)<<21,0==(128&i))break;if(i=e[t++],s+=268435456*(127&i),0==(128&i))break;if(i=e[t++],s+=34359738368*(127&i),0==(128&i))break;if(i=e[t++],s+=4398046511104*(127&i),0==(128&i))break;if(i=e[t++],s+=562949953421312*(127&i),0==(128&i))break;if(i=e[t++],s+=72057594037927940*(127&i),0==(128&i))break;if(i=e[t++],s+=0x8000000000000000*(127&i),0==(128&i))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(i=e[t],0!=(128&i));)++t,s+=(127&i)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,s+=i*n}return this._pos=t,n?-(s+1)/2:s/2}_getLength(){if(this._dataType!==i.delimited)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,s){if((s=Math.min(this._end,s))-t>h){const i=e.subarray(t,s);return l.decode(i)}let i="",n="";for(let r=t;r<s;++r){const t=e[r];128&t?n+="%"+t.toString(16):(i+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(i+=decodeURIComponent(n)),i}_toBytes(e,t,s){return s=Math.min(this._end,s),new Uint8Array(e.buffer,t,s-t)}}c.pool=new a.Z(c,void 0,(e=>{e._data=null,e._dataView=null}))},56456:(e,t,s)=>{s.r(t),s.d(t,{default:()=>$});var i=s(95330),n=s(4215),r=s(59255),a=s(31363);function o(e){return 746===e||747===e||!(e<4352)&&(e>=12704&&e<=12735||e>=12544&&e<=12591||e>=65072&&e<=65103&&!(e>=65097&&e<=65103)||e>=63744&&e<=64255||e>=13056&&e<=13311||e>=11904&&e<=12031||e>=12736&&e<=12783||e>=12288&&e<=12351&&!(e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||e>=13312&&e<=19903||e>=19968&&e<=40959||e>=12800&&e<=13055||e>=12592&&e<=12687||e>=43360&&e<=43391||e>=55216&&e<=55295||e>=4352&&e<=4607||e>=44032&&e<=55215||e>=12352&&e<=12447||e>=12272&&e<=12287||e>=12688&&e<=12703||e>=12032&&e<=12255||e>=12784&&e<=12799||e>=12448&&e<=12543&&12540!==e||e>=65280&&e<=65519&&!(65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||e>=65104&&e<=65135&&!(e>=65112&&e<=65118||e>=65123&&e<=65126)||e>=5120&&e<=5759||e>=6320&&e<=6399||e>=65040&&e<=65055||e>=19904&&e<=19967||e>=40960&&e<=42127||e>=42128&&e<=42191)}function l(e){return!(e<11904)&&(e>=12704&&e<=12735||e>=12544&&e<=12591||e>=65072&&e<=65103||e>=63744&&e<=64255||e>=13056&&e<=13311||e>=11904&&e<=12031||e>=12736&&e<=12783||e>=12288&&e<=12351||e>=13312&&e<=19903||e>=19968&&e<=40959||e>=12800&&e<=13055||e>=65280&&e<=65519||e>=12352&&e<=12447||e>=12272&&e<=12287||e>=12032&&e<=12255||e>=12784&&e<=12799||e>=12448&&e<=12543||e>=65040&&e<=65055||e>=42128&&e<=42191||e>=40960&&e<=42127)}function h(e){switch(e){case 10:case 32:case 38:case 40:case 41:case 43:case 45:case 47:case 173:case 183:case 8203:case 8208:case 8211:case 8231:return!0}return!1}function c(e){switch(e){case 9:case 10:case 11:case 12:case 13:case 32:return!0}return!1}var u=s(87893);const f=24;class d{constructor(e,t,s,i,n,r,a){this._glyphItems=e,this._maxWidth=t,this._lineHeight=s,this._letterSpacing=i,this._hAnchor=n,this._vAnchor=r,this._justify=a}getShaping(e,t,s){const i=this._letterSpacing,n=this._lineHeight,r=this._justify,a=this._maxWidth,u=[];let f=0,d=0;for(const t of e){const e=t.codePointAt(0);if(null==e)continue;const n=s&&o(e);let r;for(const t of this._glyphItems)if(r=t[e],r)break;u.push({codePoint:e,x:f,y:d,vertical:n,glyphMosaicItem:r}),r&&(f+=r.metrics.advance+i)}let g=f;a>0&&(g=f/Math.max(1,Math.ceil(f/a)));const y=e.includes(""),x=[],p=u.length;for(let e=0;e<p-1;e++){const t=u[e].codePoint,s=l(t);if(h(t)||s){let i=0;if(10===t)i-=1e4;else if(s&&y)i+=150;else{40!==t&&65288!==t||(i+=50);const s=u[e+1].codePoint;41!==s&&65289!==s||(i+=50)}x.push(this._buildBreak(e+1,u[e].x,g,x,i,!1))}}const _=this._optimalBreaks(this._buildBreak(p,f,g,x,0,!0));let m=0;const I=t?-n:n;let w=0;for(let e=0;e<_.length;e++){const t=_[e];let s=w;for(;s<t&&c(u[s].codePoint);)u[s].glyphMosaicItem=null,++s;let i=t-1;for(;i>s&&c(u[i].codePoint);)u[i].glyphMosaicItem=null,--i;if(s<=i){const e=u[s].x;for(let t=s;t<=i;t++)u[t].x-=e,u[t].y=d;let t=u[i].x;u[i].glyphMosaicItem&&(t+=u[i].glyphMosaicItem.metrics.advance),m=Math.max(t,m),r&&this._applyJustification(u,s,i)}w=t,d+=I}if(u.length>0){const e=_.length-1,s=(r-this._hAnchor)*m;let i=(-this._vAnchor*(e+1)+.5)*n;t&&e&&(i+=e*n);for(const e of u)e.x+=s,e.y+=i}return u.filter((e=>e.glyphMosaicItem))}static getTextBox(e,t){if(!e.length)return null;let s=1/0,i=1/0,n=0,r=0;for(const a of e){const e=a.glyphMosaicItem.metrics.advance,o=a.x,l=a.y-17,h=o+e,c=l+t;s=Math.min(s,o),n=Math.max(n,h),i=Math.min(i,l),r=Math.max(r,c)}return{x:s,y:i,width:n-s,height:r-i}}static getBox(e){if(!e.length)return null;let t=1/0,s=1/0,i=0,n=0;for(const r of e){const{height:e,left:a,top:o,width:l}=r.glyphMosaicItem.metrics,h=r.x,c=r.y-(e-Math.abs(o)),u=h+l+a,f=c+e;t=Math.min(t,h),i=Math.max(i,u),s=Math.min(s,c),n=Math.max(n,f)}return{x:t,y:s,width:i-t,height:n-s}}static addDecoration(e,t){const s=e.length;if(0===s)return;let i=e[0].x+e[0].glyphMosaicItem.metrics.left,n=e[0].y;for(let r=1;r<s;r++){const s=e[r];if(s.y!==n){const a=e[r-1].x+e[r-1].glyphMosaicItem.metrics.left+e[r-1].glyphMosaicItem.metrics.width;e.push({codePoint:0,x:i,y:n+t-3,vertical:!1,glyphMosaicItem:{sdf:!0,rect:new u.Z(4,0,4,8),metrics:{width:a-i,height:8,left:0,top:0,advance:0},page:0,code:0}}),n=s.y,i=s.x+s.glyphMosaicItem.metrics.left}}const r=e[s-1].x+e[s-1].glyphMosaicItem.metrics.left+e[s-1].glyphMosaicItem.metrics.width;e.push({codePoint:0,x:i,y:n+t-3,vertical:!1,glyphMosaicItem:{sdf:!0,rect:new u.Z(4,0,4,8),metrics:{width:r-i,height:8,left:0,top:0,advance:0},page:0,code:0}})}_breakScore(e,t,s,i){const n=(e-t)*(e-t);return i?e<t?n/2:2*n:n+Math.abs(s)*s}_buildBreak(e,t,s,i,n,r){let a=null,o=this._breakScore(t,s,n,r);for(const e of i){const i=t-e.x,l=this._breakScore(i,s,n,r)+e.score;l<=o&&(a=e,o=l)}return{index:e,x:t,score:o,previousBreak:a}}_optimalBreaks(e){return e?this._optimalBreaks(e.previousBreak).concat(e.index):[]}_applyJustification(e,t,s){const i=e[s],n=i.vertical?f:i.glyphMosaicItem?i.glyphMosaicItem.metrics.advance:0,r=(i.x+n)*this._justify;for(let i=t;i<=s;i++)e[i].x-=r}}var g=s(21315);const y=.5;class x{constructor(e,t,s=0,i=-1,n=y){this.x=e,this.y=t,this.angle=s,this.segment=i,this.minzoom=n}}class p{constructor(e,t,s,i,n,r=y,o=a.FM){this.anchor=e,this.labelAngle=t,this.glyphAngle=s,this.page=i,this.alternateVerticalGlyph=n,this.minzoom=r,this.maxzoom=o}}class _{constructor(e,t,s,i,n,r,a,o,l,h,c,u){this.tl=e,this.tr=t,this.bl=s,this.br=i,this.mosaicRect=n,this.labelAngle=r,this.minAngle=a,this.maxAngle=o,this.anchor=l,this.minzoom=h,this.maxzoom=c,this.page=u}}class m{constructor(e){this.shapes=e}}class I{getIconPlacement(e,t,s){const i=new r.E9(e.x,e.y),n=s.rotationAlignment===g.aF.MAP,o=s.keepUpright;let l=s.rotate*a.nF;n&&(l+=e.angle);const h=new m([]);return s.allowOverlap&&s.ignorePlacement||(h.iconColliders=[]),this._addIconPlacement(h,i,t,s,l),n&&o&&this._addIconPlacement(h,i,t,s,l+a.RD),h}_addIconPlacement(e,t,s,i,n){const o=s.pixelRatio,l=s.width/o,h=s.height/o,c=i.offset;let u=c[0],f=c[1];switch(i.anchor){case g.nR.CENTER:u-=l/2,f-=h/2;break;case g.nR.LEFT:f-=h/2;break;case g.nR.RIGHT:u-=l,f-=h/2;break;case g.nR.TOP:u-=l/2;break;case g.nR.BOTTOM:u-=l/2,f-=h;break;case g.nR.TOP_LEFT:break;case g.nR.BOTTOM_LEFT:f-=h;break;case g.nR.TOP_RIGHT:u-=l;break;case g.nR.BOTTOM_RIGHT:u-=l,f-=h}const d=s.rect,x=2/o,p=u-x,m=f-x,I=p+d.width/o,w=m+d.height/o,b=new r.E9(p,m),M=new r.E9(I,w),k=new r.E9(p,w),T=new r.E9(I,m);if(0!==n){const e=Math.cos(n),t=Math.sin(n);b.rotate(e,t),M.rotate(e,t),k.rotate(e,t),T.rotate(e,t)}const P=new _(b,T,k,M,d,n,0,256,t,y,a.FM,0);if(e.shapes.push(P),!i.allowOverlap||!i.ignorePlacement){const s=i.size,r=i.padding,o={xTile:t.x,yTile:t.y,dxPixels:u*s-r,dyPixels:f*s-r,hard:!i.optional,partIndex:0,width:l*s+2*r,height:h*s+2*r,angle:n,minLod:y,maxLod:a.FM};e.iconColliders.push(o)}}getTextPlacement(e,t,s,i){const n=new r.E9(e.x,e.y),o=i.rotate*a.nF,l=i.rotationAlignment===g.aF.MAP,h=i.keepUpright,c=i.padding;let u=y;const x=l?e.angle:0,I=e.segment>=0&&l,w=i.allowOverlap&&i.ignorePlacement?null:[],b=[],M=!I;let k=Number.POSITIVE_INFINITY,T=Number.NEGATIVE_INFINITY,P=k,V=T;const L=(I||l)&&h,D=i.size/f;let B=!1;for(const e of t)if(e.vertical){B=!0;break}let E,A=0,R=0;if(!I&&B){const e=d.getTextBox(t,i.lineHeight*f);switch(i.anchor){case g.nR.LEFT:A=e.height/2,R=-e.width/2;break;case g.nR.RIGHT:A=-e.height/2,R=e.width/2;break;case g.nR.TOP:A=e.height/2,R=e.width/2;break;case g.nR.BOTTOM:A=-e.height/2,R=-e.width/2;break;case g.nR.TOP_LEFT:A=e.height;break;case g.nR.BOTTOM_LEFT:R=-e.width;break;case g.nR.TOP_RIGHT:R=e.width;break;case g.nR.BOTTOM_RIGHT:A=-e.height}}A+=i.offset[0]*f,R+=i.offset[1]*f;for(const f of t){const t=f.glyphMosaicItem;if(!t||t.rect.isEmpty)continue;const d=t.rect,g=t.metrics,m=t.page;if(w&&M){if(void 0!==E&&E!==f.y){let t,s,n,r;B?(t=-V+A,s=k+R,n=V-P,r=T-k):(t=k+A,s=P+R,n=T-k,r=V-P);const l={xTile:e.x,yTile:e.y,dxPixels:t*D-c,dyPixels:s*D-c,hard:!i.optional,partIndex:1,width:n*D+2*c,height:r*D+2*c,angle:o,minLod:y,maxLod:a.FM};w.push(l),k=Number.POSITIVE_INFINITY,T=Number.NEGATIVE_INFINITY,P=k,V=T}E=f.y}const v=[];if(I){const i=.5*t.metrics.width,n=(f.x+g.left-4+i)*D*8;if(u=this._placeGlyph(e,u,n,s,e.segment,1,f.vertical,m,v),h&&(u=this._placeGlyph(e,u,n,s,e.segment,-1,f.vertical,m,v)),u>=2)break}else v.push(new p(n,x,x,m,!1)),l&&h&&v.push(new p(n,x+a.RD,x+a.RD,m,!1));const S=f.x+g.left,C=f.y-17-g.top,F=S+g.width,U=C+g.height;let O,N,z,G,Z,H,K,W;if(!I&&B)if(f.vertical){const e=(S+F)/2-g.height/2,t=(C+U)/2+g.width/2;O=new r.E9(-t-4+A,e-4+R),N=new r.E9(O.x+d.width,O.y+d.height),z=new r.E9(O.x,N.y),G=new r.E9(N.x,O.y)}else O=new r.E9(4-C+A,S-4+R),N=new r.E9(O.x-d.height,O.y+d.width),z=new r.E9(N.x,O.y),G=new r.E9(O.x,N.y);else O=new r.E9(S-4+A,C-4+R),N=new r.E9(O.x+d.width,O.y+d.height),z=new r.E9(O.x,N.y),G=new r.E9(N.x,O.y);for(const t of v){let s,n,a,l;if(t.alternateVerticalGlyph){if(!Z){const e=(C+U)/2+R;Z=new r.E9((S+F)/2+A-g.height/2-4,e+g.width/2+4),H=new r.E9(Z.x+d.height,Z.y-d.width),K=new r.E9(H.x,Z.y),W=new r.E9(Z.x,H.y)}s=Z,n=K,a=W,l=H}else s=O,n=z,a=G,l=N;const h=C,u=U,y=t.glyphAngle+o;if(0!==y){const e=Math.cos(y),t=Math.sin(y);s=s.clone(),n=n?.clone(),a=a?.clone(),l=l?.clone(),s.rotate(e,t),l?.rotate(e,t),n?.rotate(e,t),a?.rotate(e,t)}let x=0,p=256;if(I&&B?f.vertical?t.alternateVerticalGlyph?(x=32,p=96):(x=224,p=32):(x=224,p=96):(x=192,p=64),b.push(new _(s,a,n,l,d,t.labelAngle,x,p,t.anchor,t.minzoom,t.maxzoom,t.page)),w&&(!L||this._legible(t.labelAngle)))if(M)S<k&&(k=S),h<P&&(P=h),F>T&&(T=F),u>V&&(V=u);else if(t.minzoom<2){const s={xTile:e.x,yTile:e.y,dxPixels:(S+A)*D-c,dyPixels:(h+A)*D-c,hard:!i.optional,partIndex:1,width:(F-S)*D+2*c,height:(u-h)*D+2*c,angle:y,minLod:t.minzoom,maxLod:t.maxzoom};w.push(s)}}}if(u>=2)return null;if(w&&M){let t,s,n,r;B?(t=-V+A,s=k+R,n=V-P,r=T-k):(t=k+A,s=P+R,n=T-k,r=V-P);const l={xTile:e.x,yTile:e.y,dxPixels:t*D-c,dyPixels:s*D-c,hard:!i.optional,partIndex:1,width:n*D+2*c,height:r*D+2*c,angle:o,minLod:y,maxLod:a.FM};w.push(l)}const v=new m(b);return w&&w.length>0&&(v.textColliders=w),v}_legible(e){const t=(0,a.Or)(e);return t<65||t>=193}_placeGlyph(e,t,s,i,n,o,l,h,c){let u=o;const f=u<0?(0,a.DQ)(e.angle+a.RD,a.yF):e.angle;let d=0;s<0&&(u*=-1,s*=-1,d=a.RD),u>0&&++n;let g=new r.E9(e.x,e.y),y=i[n],x=a.FM;if(i.length<=n)return x;for(;;){const e=y.x-g.x,r=y.y-g.y,o=Math.sqrt(e*e+r*r),_=Math.max(s/o,t),m=e/o,I=r/o,w=(0,a.DQ)(Math.atan2(I,m)+d,a.yF);if(c.push(new p(g,f,w,h,!1,_,x)),l&&c.push(new p(g,f,w,h,!0,_,x)),_<=t)return _;g=y.clone();do{if(n+=u,i.length<=n||n<0)return _;y=i[n]}while(g.isEqual(y));let b=y.x-g.x,M=y.y-g.y;const k=Math.sqrt(b*b+M*M);b*=o/k,M*=o/k,g.x-=b,g.y-=M,x=_}}}var w,b,M=s(45091),k=s(65390);(b=w||(w={}))[b.moveTo=1]="moveTo",b[b.lineTo=2]="lineTo",b[b.close=7]="close";class T{constructor(e,t){this.values={},this._geometry=void 0,this._pbfGeometry=null;const s=t.keys,i=t.values,n=e.asUnsafe();for(;n.next();)switch(n.tag()){case 1:this.id=n.getUInt64();break;case 2:{const e=n.getMessage().asUnsafe(),t=this.values;for(;!e.empty();){const n=e.getUInt32(),r=e.getUInt32();t[s[n]]=i[r]}e.release();break}case 3:this.type=n.getUInt32();break;case 4:this._pbfGeometry=n.getMessage();break;default:n.skip()}}getGeometry(e){if(void 0!==this._geometry)return this._geometry;if(!this._pbfGeometry)return null;const t=this._pbfGeometry.asUnsafe();let s,i;this._pbfGeometry=null,e?e.reset(this.type):s=[];let n,a=w.moveTo,o=0,l=0,h=0;for(;!t.empty();){if(0===o){const e=t.getUInt32();a=7&e,o=e>>3}switch(o--,a){case w.moveTo:l+=t.getSInt32(),h+=t.getSInt32(),e?e.moveTo(l,h):s&&(i&&s.push(i),i=[],i.push(new r.E9(l,h)));break;case w.lineTo:l+=t.getSInt32(),h+=t.getSInt32(),e?e.lineTo(l,h):i&&i.push(new r.E9(l,h));break;case w.close:e?e.close():i&&!i[0].equals(l,h)&&i.push(i[0].clone());break;default:throw t.release(),new Error("Invalid path operation")}}return e?n=e.result():s&&(i&&s.push(i),n=s),t.release(),this._geometry=n,n}}var P=s(26084);class V extends P.Z{constructor(){super(12)}add(e,t,s){const i=this.array;i.push(e),i.push(t),i.push(s)}}class L{constructor(e){this.extent=4096,this.keys=[],this.values=[],this._pbfLayer=e.clone();const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:this.name=t.getString();break;case 3:this.keys.push(t.getString());break;case 4:this.values.push(t.processMessage(L._parseValue));break;case 5:this.extent=t.getUInt32();break;default:t.skip()}}getData(){return this._pbfLayer}static _parseValue(e){for(;e.next();)switch(e.tag()){case 1:return e.getString();case 2:return e.getFloat();case 3:return e.getDouble();case 4:return e.getInt64();case 5:return e.getUInt64();case 6:return e.getSInt64();case 7:return e.getBool();default:e.skip()}return null}}class D extends P.Z{constructor(e){super(e)}add(e,t,s,i,n,r,a,o,l,h,c,u){const f=this.array;let d=P.Z.i1616to32(e,t);f.push(d);const g=31;d=P.Z.i8888to32(Math.round(g*s),Math.round(g*i),Math.round(g*n),Math.round(g*r)),f.push(d),d=P.Z.i8888to32(Math.round(g*a),Math.round(g*o),Math.round(g*l),Math.round(g*h)),f.push(d),d=P.Z.i1616to32(c,0),f.push(d),u&&f.push(...u)}}class B extends P.Z{constructor(e){super(e)}add(e,t,s){const i=this.array;i.push(P.Z.i1616to32(e,t)),s&&i.push(...s)}}class E extends P.Z{constructor(e){super(e)}add(e,t,s,i,n,r,a){const o=this.array,l=this.index;let h=P.Z.i1616to32(e,t);return o.push(h),h=P.Z.i8888to32(Math.round(15*s),Math.round(15*i),n,r),o.push(h),a&&o.push(...a),l}}class A extends P.Z{constructor(e){super(e)}add(e,t,s,i,n,r,o,l,h,c,u,f){const d=this.array;let g=P.Z.i1616to32(e,t);d.push(g),g=P.Z.i1616to32(Math.round(8*s),Math.round(8*i)),d.push(g),g=P.Z.i8888to32(n/4,r/4,l,h),d.push(g),g=P.Z.i8888to32(0,(0,a.Or)(o),10*c,Math.min(10*u,255)),d.push(g),f&&d.push(...f)}}class R extends P.Z{constructor(e){super(e)}add(e,t,s,i,n){const r=this.array,a=P.Z.i1616to32(2*e+s,2*t+i);r.push(a),n&&r.push(...n)}}class v{constructor(e,t,s){this.layerExtent=4096,this._features=[],this.layer=e,this.zoom=t,this._spriteInfo=s,this._filter=e.getFeatureFilter()}pushFeature(e){this._filter&&!this._filter.filter(e,this.zoom)||this._features.push(e)}hasFeatures(){return this._features.length>0}getResources(e,t,s){}}class S extends v{constructor(e,t,s,i,r){super(e,t,s),this.type=n.al.CIRCLE,this._circleVertexBuffer=i,this._circleIndexBuffer=r}get circleIndexStart(){return this._circleIndexStart}get circleIndexCount(){return this._circleIndexCount}processFeatures(e){const t=this._circleVertexBuffer,s=this._circleIndexBuffer;this._circleIndexStart=3*s.index,this._circleIndexCount=0;const i=this.layer,n=this.zoom;e&&e.setExtent(this.layerExtent);for(const r of this._features){const a=r.getGeometry(e);if(!a)continue;const o=i.circleMaterial.encodeAttributes(r,n,i);for(const e of a)if(e)for(const i of e){const e=t.index;t.add(i.x,i.y,0,0,o),t.add(i.x,i.y,0,1,o),t.add(i.x,i.y,1,0,o),t.add(i.x,i.y,1,1,o),s.add(e,e+1,e+2),s.add(e+1,e+2,e+3),this._circleIndexCount+=6}}}serialize(){let e=6;e+=this.layerUIDs.length,e+=this._circleVertexBuffer.array.length,e+=this._circleIndexBuffer.array.length;const t=new Uint32Array(e),s=new Int32Array(t.buffer);let i=0;t[i++]=this.type,t[i++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[i++]=this.layerUIDs[e];t[i++]=this._circleIndexStart,t[i++]=this._circleIndexCount,t[i++]=this._circleVertexBuffer.array.length;for(let e=0;e<this._circleVertexBuffer.array.length;e++)s[i++]=this._circleVertexBuffer.array[e];t[i++]=this._circleIndexBuffer.array.length;for(let e=0;e<this._circleIndexBuffer.array.length;e++)t[i++]=this._circleIndexBuffer.array[e];return t.buffer}}var C=s(3894),F=s(95401);class U extends v{constructor(e,t,s,i,r,a,o){super(e,t,s),this.type=n.al.FILL,this._patternMap=new Map,this._fillVertexBuffer=i,this._fillIndexBuffer=r,this._outlineVertexBuffer=a,this._outlineIndexBuffer=o}get fillIndexStart(){return this._fillIndexStart}get fillIndexCount(){return this._fillIndexCount}get outlineIndexStart(){return this._outlineIndexStart}get outlineIndexCount(){return this._outlineIndexCount}getResources(e,t,s){const i=this.layer,n=this.zoom,r=i.getPaintProperty("fill-pattern");if(r)if(r.isDataDriven)for(const e of this._features)t(r.getValue(n,e),!0);else t(r.getValue(n),!0)}processFeatures(e){this._fillIndexStart=3*this._fillIndexBuffer.index,this._fillIndexCount=0,this._outlineIndexStart=3*this._outlineIndexBuffer.index,this._outlineIndexCount=0;const t=this.layer,s=this.zoom,{fillMaterial:i,outlineMaterial:n,hasDataDrivenFill:r,hasDataDrivenOutline:a}=t;e&&e.setExtent(this.layerExtent);const o=t.getPaintProperty("fill-pattern"),l=o?.isDataDriven;let h=!o&&t.getPaintValue("fill-antialias",s);if(t.outlineUsesFillColor){if(h&&!t.hasDataDrivenOpacity){const e=t.getPaintValue("fill-opacity",s),i=t.getPaintValue("fill-opacity",s+1);e<1&&i<1&&(h=!1)}if(h&&!t.hasDataDrivenColor){const e=t.getPaintValue("fill-color",s),i=t.getPaintValue("fill-color",s+1);e[3]<1&&i[3]<1&&(h=!1)}}const c=this._features,u=e?.validateTessellation;if(l){const r=[];for(const l of c){const c=o.getValue(s,l),f=this._spriteInfo[c];if(!f?.rect)continue;const d=i.encodeAttributes(l,s,t,f),g=h&&a?n.encodeAttributes(l,s,t):[],y=l.getGeometry(e);r.push({ddFillAttributes:d,ddOutlineAttributes:g,page:f.page,geometry:y}),r.sort(((e,t)=>e.page-t.page));for(const{ddFillAttributes:e,ddOutlineAttributes:s,page:i,geometry:n}of r)this._processFeature(n,h,t.outlineUsesFillColor,e,s,u,i)}}else for(const o of c){const l=r?i.encodeAttributes(o,s,t):null,c=h&&a?n.encodeAttributes(o,s,t):null,f=o.getGeometry(e);this._processFeature(f,h,t.outlineUsesFillColor,l,c,u)}}serialize(){let e=10;e+=this.layerUIDs.length,e+=this._fillVertexBuffer.array.length,e+=this._fillIndexBuffer.array.length,e+=this._outlineVertexBuffer.array.length,e+=this._outlineIndexBuffer.array.length,e+=3*this._patternMap.size+1;const t=new Uint32Array(e),s=new Int32Array(t.buffer);let i=0;t[i++]=this.type,t[i++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[i++]=this.layerUIDs[e];t[i++]=this._fillIndexStart,t[i++]=this._fillIndexCount,t[i++]=this._outlineIndexStart,t[i++]=this._outlineIndexCount;const n=this._patternMap,r=n.size;if(t[i++]=r,r>0)for(const[e,[s,r]]of n)t[i++]=e,t[i++]=s,t[i++]=r;t[i++]=this._fillVertexBuffer.array.length;for(let e=0;e<this._fillVertexBuffer.array.length;e++)s[i++]=this._fillVertexBuffer.array[e];t[i++]=this._fillIndexBuffer.array.length;for(let e=0;e<this._fillIndexBuffer.array.length;e++)t[i++]=this._fillIndexBuffer.array[e];t[i++]=this._outlineVertexBuffer.array.length;for(let e=0;e<this._outlineVertexBuffer.array.length;e++)s[i++]=this._outlineVertexBuffer.array[e];t[i++]=this._outlineIndexBuffer.array.length;for(let e=0;e<this._outlineIndexBuffer.array.length;e++)t[i++]=this._outlineIndexBuffer.array[e];return t.buffer}_processFeature(e,t,s,i,n,r,a){if(!e)return;const o=e.length,l=!n||0===n.length;if(t&&(!s||l))for(let t=0;t<o;t++)this._processOutline(e[t],n);let h;for(let t=0;t<o;t++){const s=U._area(e[t]);s>32?(void 0!==h&&this._processFill(e,h,i,r,a),h=[t]):s<-32&&void 0!==h&&h.push(t)}void 0!==h&&this._processFill(e,h,i,r,a)}_processOutline(e,t){const s=this._outlineVertexBuffer,i=this._outlineIndexBuffer,n=i.index;let a,o,l;const h=new r.E9(0,0),c=new r.E9(0,0),u=new r.E9(0,0);let f=-1,d=-1,g=-1,y=-1,x=-1,p=!1,_=e.length;if(_<2)return;const m=e[0];let I=e[_-1];for(;_&&I.isEqual(m);)--_,I=e[_-1];if(!(_-0<2)){for(let n=0;n<_;++n){0===n?(a=e[_-1],o=e[0],l=e[1],h.assignSub(o,a),h.normalize(),h.rightPerpendicular()):(a=o,o=l,l=n!==_-1?e[n+1]:e[0],h.assign(c));const r=this._isClipEdge(a,o);-1===y&&(p=r),c.assignSub(l,o),c.normalize(),c.rightPerpendicular();const m=h.x*c.y-h.y*c.x;u.assignAdd(h,c),u.normalize();const I=-u.x*-h.x+-u.y*-h.y;let w=Math.abs(0!==I?1/I:1);w>8&&(w=8),m>=0?(g=s.add(o.x,o.y,h.x,h.y,0,1,t),-1===y&&(y=g),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),d=s.add(o.x,o.y,w*-u.x,w*-u.y,0,-1,t),-1===x&&(x=d),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),f=d,d=g,g=s.add(o.x,o.y,u.x,u.y,0,1,t),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),d=s.add(o.x,o.y,c.x,c.y,0,1,t),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g)):(g=s.add(o.x,o.y,w*u.x,w*u.y,0,1,t),-1===y&&(y=g),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),d=s.add(o.x,o.y,-h.x,-h.y,0,-1,t),-1===x&&(x=d),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),f=d,d=g,g=s.add(o.x,o.y,-u.x,-u.y,0,-1,t),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g),f=s.add(o.x,o.y,-c.x,-c.y,0,-1,t),f>=0&&d>=0&&g>=0&&!r&&i.add(f,d,g))}f>=0&&d>=0&&y>=0&&!p&&i.add(f,d,y),f>=0&&y>=0&&x>=0&&!p&&i.add(f,x,y),this._outlineIndexCount+=3*(i.index-n)}}_processFill(e,t,s,i,n){let r;t.length>1&&(r=[]);let a=0;for(const s of t)0!==a&&r.push(a),a+=e[s].length;const o=2*a,l=C.Z.acquire();for(const s of t){const t=e[s],i=t.length;for(let e=0;e<i;++e)l.push(t[e].x,t[e].y)}const h=(0,F.e)(l,r,2);if(F.e.deviation(l,r,2,h)>0){const i=t.map((t=>e[t].length)),{buffer:r,vertexCount:a}=(0,k.b)(l,i);if(a>0){const e=this._fillVertexBuffer.index;for(let e=0;e<a;e++)this._fillVertexBuffer.add(r[2*e],r[2*e+1],s);for(let t=0;t<a;t+=3){const s=e+t;this._fillIndexBuffer.add(s,s+1,s+2)}if(void 0!==n){const e=this._patternMap,t=e.get(n);t?t[1]+=a:e.set(n,[this._fillIndexStart+this._fillIndexCount,a])}this._fillIndexCount+=a}}else{const e=h.length;if(e>0){const t=this._fillVertexBuffer.index;let i=0;for(;i<o;)this._fillVertexBuffer.add(l[i++],l[i++],s);let r=0;for(;r<e;)this._fillIndexBuffer.add(t+h[r++],t+h[r++],t+h[r++]);if(void 0!==n){const t=this._patternMap,s=t.get(n);s?s[1]+=e:t.set(n,[this._fillIndexStart+this._fillIndexCount,e])}this._fillIndexCount+=e}}C.Z.release(l)}_isClipEdge(e,t){return e.x===t.x?e.x<=-64||e.x>=4160:e.y===t.y&&(e.y<=-64||e.y>=4160)}static _area(e){let t=0;const s=e.length-1;for(let i=0;i<s;i++)t+=(e[i].x-e[i+1].x)*(e[i].y+e[i+1].y);return t+=(e[s].x-e[0].x)*(e[s].y+e[0].y),.5*t}}var O=s(67327);class N extends v{constructor(e,t,s,i,r){super(e,t,s),this.type=n.al.LINE,this._tessellationOptions={pixelCoordRatio:8,halfWidth:0,offset:0},this._patternMap=new Map,this.tessellationProperties={_lineVertexBuffer:null,_lineIndexBuffer:null,_ddValues:null},this.tessellationProperties._lineVertexBuffer=i,this.tessellationProperties._lineIndexBuffer=r,this._lineTessellator=new O.z(z(this.tessellationProperties),G(this.tessellationProperties),e.canUseThinTessellation)}get lineIndexStart(){return this._lineIndexStart}get lineIndexCount(){return this._lineIndexCount}getResources(e,t,s){const i=this.layer,n=this.zoom,r=i.getPaintProperty("line-pattern"),a=i.getPaintProperty("line-dasharray"),o=i.getLayoutProperty("line-cap");if(!r&&!a)return;const l=o?.getValue(n)||0,h=o?.isDataDriven,c=r?.isDataDriven,u=a?.isDataDriven;if(c||u)for(const e of this._features)t(c?r.getValue(n,e):this._getDashArrayKey(e,n,i,a,h,o,l));else if(r)t(r.getValue(n));else if(a){const e=a.getValue(n);t(i.getDashKey(e,l))}}processFeatures(e){this._lineIndexStart=3*this.tessellationProperties._lineIndexBuffer.index,this._lineIndexCount=0;const t=this.layer,s=this.zoom,i=this._features,n=this._tessellationOptions,{hasDataDrivenLine:r,lineMaterial:a}=t;e&&e.setExtent(this.layerExtent);const o=t.getPaintProperty("line-pattern"),l=t.getPaintProperty("line-dasharray"),h=o?.isDataDriven,c=l?.isDataDriven;let u;u=t.getLayoutProperty("line-cap");const f=u?.isDataDriven?u:null,d=f?null:t.getLayoutValue("line-cap",s),g=d||0,y=!!f;u=t.getLayoutProperty("line-join");const x=u?.isDataDriven?u:null,p=x?null:t.getLayoutValue("line-join",s);u=t.getLayoutProperty("line-miter-limit");const _=u?.isDataDriven?u:null,m=_?null:t.getLayoutValue("line-miter-limit",s);u=t.getLayoutProperty("line-round-limit");const I=u?.isDataDriven?u:null,w=I?null:t.getLayoutValue("line-round-limit",s);u=t.getPaintProperty("line-width");const b=u?.isDataDriven?u:null,M=b?null:t.getPaintValue("line-width",s);u=t.getPaintProperty("line-offset");const k=u?.isDataDriven?u:null,T=k?null:t.getPaintValue("line-offset",s);if(h||c){const r=[];for(const n of i){const i=h?o.getValue(s,n):this._getDashArrayKey(n,s,t,l,y,f,g),c=this._spriteInfo[i];if(!c?.rect)continue;const u=a.encodeAttributes(n,s,t,c),P=n.getGeometry(e);r.push({ddAttributes:u,page:c.page,cap:f?f.getValue(s,n):d,join:x?x.getValue(s,n):p,miterLimit:_?_.getValue(s,n):m,roundLimit:I?I.getValue(s,n):w,halfWidth:.5*(b?b.getValue(s,n):M),offset:k?k.getValue(s,n):T,geometry:P})}r.sort(((e,t)=>e.page-t.page)),n.textured=!0;for(const{ddAttributes:e,page:t,cap:s,join:i,miterLimit:a,roundLimit:o,halfWidth:l,offset:h,geometry:c}of r)n.capType=s,n.joinType=i,n.miterLimit=a,n.roundLimit=o,n.halfWidth=l,n.offset=h,this._processFeature(c,e,t)}else{if(o){const e=o.getValue(s),t=this._spriteInfo[e];if(!t?.rect)return}n.textured=!(!o&&!l),n.capType=d,n.joinType=p,n.miterLimit=m,n.roundLimit=w,n.halfWidth=.5*M,n.offset=T;for(const o of i){const i=r?a.encodeAttributes(o,s,t):null;f&&(n.capType=f.getValue(s,o)),x&&(n.joinType=x.getValue(s,o)),_&&(n.miterLimit=_.getValue(s,o)),I&&(n.roundLimit=I.getValue(s,o)),b&&(n.halfWidth=.5*b.getValue(s,o)),k&&(n.offset=k.getValue(s,o));const l=o.getGeometry(e);this._processFeature(l,i)}}}serialize(){let e=6;e+=this.layerUIDs.length,e+=this.tessellationProperties._lineVertexBuffer.array.length,e+=this.tessellationProperties._lineIndexBuffer.array.length,e+=3*this._patternMap.size+1;const t=new Uint32Array(e),s=new Int32Array(t.buffer);let i=0;t[i++]=this.type,t[i++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[i++]=this.layerUIDs[e];t[i++]=this._lineIndexStart,t[i++]=this._lineIndexCount;const n=this._patternMap,r=n.size;if(t[i++]=r,r>0)for(const[e,[s,r]]of n)t[i++]=e,t[i++]=s,t[i++]=r;t[i++]=this.tessellationProperties._lineVertexBuffer.array.length;for(let e=0;e<this.tessellationProperties._lineVertexBuffer.array.length;e++)s[i++]=this.tessellationProperties._lineVertexBuffer.array[e];t[i++]=this.tessellationProperties._lineIndexBuffer.array.length;for(let e=0;e<this.tessellationProperties._lineIndexBuffer.array.length;e++)t[i++]=this.tessellationProperties._lineIndexBuffer.array[e];return t.buffer}_processFeature(e,t,s){if(!e)return;const i=e.length;for(let n=0;n<i;n++)this._processGeometry(e[n],t,s)}_processGeometry(e,t,s){if(e.length<2)return;let i,n,r=e[0],a=1;for(;a<e.length;)i=e[a].x-r.x,n=e[a].y-r.y,i*i+n*n<1e-6?e.splice(a,1):(r=e[a],++a);if(e.length<2)return;const o=this.tessellationProperties._lineIndexBuffer,l=3*o.index;this._tessellationOptions.initialDistance=0,this._tessellationOptions.wrapDistance=65535,this.tessellationProperties._ddValues=t,this._lineTessellator.tessellate(e,this._tessellationOptions);const h=3*o.index-l;if(void 0!==s){const e=this._patternMap,t=e.get(s);t?t[1]+=h:e.set(s,[l+this._lineIndexCount,h])}this._lineIndexCount+=h}_getDashArrayKey(e,t,s,i,n,r,a){const o=n?r.getValue(t,e):a,l=i.getValue(t,e);return s.getDashKey(l,o)}}const z=e=>(t,s,i,n,r,a,o,l,h,c,u)=>(e._lineVertexBuffer.add(t,s,o,l,i,n,r,a,h,c,u,e._ddValues),e._lineVertexBuffer.index-1),G=e=>(t,s,i)=>{e._lineIndexBuffer.add(t,s,i)};var Z,H=s(79087),K=s(70586),W=s(19153),j=s(7333);function q(e,t){return e.iconMosaicItem&&t.iconMosaicItem?e.iconMosaicItem.page===t.iconMosaicItem.page?0:e.iconMosaicItem.page-t.iconMosaicItem.page:e.iconMosaicItem&&!t.iconMosaicItem?1:!e.iconMosaicItem&&t.iconMosaicItem?-1:0}class Y extends v{constructor(e,t,s,i,r,a,o,l){super(e,t,l.getSpriteItems()),this.type=n.al.SYMBOL,this._markerMap=new Map,this._glyphMap=new Map,this._glyphBufferDataStorage=new Map,this._isIconSDF=!1,this._iconVertexBuffer=s,this._iconIndexBuffer=i,this._textVertexBuffer=r,this._textIndexBuffer=a,this._placementEngine=o,this._workerTileHandler=l}get markerPageMap(){return this._markerMap}get glyphsPageMap(){return this._glyphMap}get symbolInstances(){return this._symbolInstances}getResources(e,t,s){const i=this.layer,n=this.zoom;e&&e.setExtent(this.layerExtent);const r=i.getLayoutProperty("icon-image"),a=i.getLayoutProperty("text-field");let o=i.getLayoutProperty("text-transform"),l=i.getLayoutProperty("text-font");const h=[];let c,u,f,d;r&&!r.isDataDriven&&(c=r.getValue(n)),a&&!a.isDataDriven&&(u=a.getValue(n)),o&&o.isDataDriven||(f=i.getLayoutValue("text-transform",n),o=null),l&&l.isDataDriven||(d=i.getLayoutValue("text-font",n),l=null);for(const y of this._features){const x=y.getGeometry(e);if(!x||0===x.length)continue;let p,_;r&&(p=r.isDataDriven?r.getValue(n,y):this._replaceKeys(c,y.values),p&&t(p));let m=!1;if(a&&(_=a.isDataDriven?a.getValue(n,y):this._replaceKeys(u,y.values),_)){switch(_=_.replaceAll("\\n","\n"),o&&(f=o.getValue(n,y)),f){case g._5.LOWERCASE:_=_.toLowerCase();break;case g._5.UPPERCASE:_=_.toUpperCase()}if(Y._bidiEngine.hasBidiChar(_)){let e;e="rtl"===Y._bidiEngine.checkContextual(_)?"IDNNN":"ICNNN",_=Y._bidiEngine.bidiTransform(_,e,"VLYSN"),m=!0}if(_.length>0){l&&(d=l.getValue(n,y));for(const e of d){let t=s[e];t||(t=s[e]=new Set);for(const e of _){const s=e.codePointAt(0);null!=s&&t.add(s)}}}}if(!p&&!_)continue;const I=i.getLayoutValue("symbol-sort-key",n,y),w={feature:y,sprite:p,label:_,rtl:m,geometry:x,hash:(_?(0,W.hP)(_):0)^(p?(0,W.hP)(p):0),priority:I,textFont:d};h.push(w)}this._symbolFeatures=h}processFeatures(e){e&&e.setExtent(this.layerExtent);const t=this.layer,s=this.zoom,i=t.getLayoutValue("symbol-placement",s),n=i!==g.R.POINT,o=8*t.getLayoutValue("symbol-spacing",s),l=t.getLayoutProperty("icon-image"),h=t.getLayoutProperty("text-field"),c=l?new j._L(t,s,n):null,u=h?new j.nj(t,s,n):null,y=this._workerTileHandler;let p;l&&(p=y.getSpriteItems()),this._iconIndexStart=3*this._iconIndexBuffer.index,this._textIndexStart=3*this._textIndexBuffer.index,this._iconIndexCount=0,this._textIndexCount=0,this._markerMap.clear(),this._glyphMap.clear();const _=[];let m=1;u&&u.size&&(m=u.size/f);const I=u?u.maxAngle*a.nF:0,w=u?8*u.size:0;for(const e of this._symbolFeatures){let t,a;c&&p&&e.sprite&&(t=p[e.sprite],t&&t.sdf&&(this._isIconSDF=!0)),t&&c.update(s,e.feature);let l=0;const h=e.label;if(h){(0,K.O3)(u),u.update(s,e.feature);const t=n&&u.rotationAlignment===g.aF.MAP?u.keepUpright:u.writingMode&&u.writingMode.includes(g.r1.VERTICAL);let i=.5;switch(u.anchor){case g.nR.TOP_LEFT:case g.nR.LEFT:case g.nR.BOTTOM_LEFT:i=0;break;case g.nR.TOP_RIGHT:case g.nR.RIGHT:case g.nR.BOTTOM_RIGHT:i=1}let r=.5;switch(u.anchor){case g.nR.TOP_LEFT:case g.nR.TOP:case g.nR.TOP_RIGHT:r=0;break;case g.nR.BOTTOM_LEFT:case g.nR.BOTTOM:case g.nR.BOTTOM_RIGHT:r=1}let o=.5;switch(u.justify){case g.vL.AUTO:o=i;break;case g.vL.LEFT:o=0;break;case g.vL.RIGHT:o=1}const c=u.letterSpacing*f,x=n?0:u.maxWidth*f,p=u.lineHeight*f,_=e.textFont.map((e=>y.getGlyphItems(e)));if(a=new d(_,x,p,c,i,r,o).getShaping(h,e.rtl,t),a&&a.length>0){let e=1e30,t=-1e30;for(const s of a)e=Math.min(e,s.x),t=Math.max(t,s.x);l=(t-e+48)*m*8}}for(let s of e.geometry){const h=[];if(i===g.R.LINE){if(a?.length&&u?.size){const e=8*u.size*(2+Math.min(2,4*Math.abs(u.offset[1])));s=Y._smoothVertices(s,e)}Y._pushAnchors(h,s,o,l)}else i===g.R.LINE_CENTER?Y._pushCenterAnchor(h,s):e.feature.type===r.Vl.Polygon?Y._pushCentroid(h,s):h.push(new x(s[0].x,s[0].y));for(const i of h){if(i.x<0||i.x>4096||i.y<0||i.y>4096)continue;if(n&&l>0&&u?.rotationAlignment===g.aF.MAP&&!Y._honorsTextMaxAngle(s,i,l,I,w))continue;const r={shaping:a,line:s,iconMosaicItem:t,anchor:i,symbolFeature:e,textColliders:[],iconColliders:[],textVertexRanges:[],iconVertexRanges:[]};_.push(r),this._processFeature(r,c,u)}}}_.sort(q),this._addPlacedGlyphs(),this._symbolInstances=_}serialize(){let e=11;e+=this.layerUIDs.length,e+=3*this.markerPageMap.size,e+=3*this.glyphsPageMap.size,e+=Y._symbolsSerializationLength(this._symbolInstances),e+=this._iconVertexBuffer.array.length,e+=this._iconIndexBuffer.array.length,e+=this._textVertexBuffer.array.length,e+=this._textIndexBuffer.array.length;const t=new Uint32Array(e),s=new Int32Array(t.buffer),i=new Float32Array(t.buffer);let n=0;t[n++]=this.type,t[n++]=this.layerUIDs.length;for(let e=0;e<this.layerUIDs.length;e++)t[n++]=this.layerUIDs[e];t[n++]=this._isIconSDF?1:0,t[n++]=this.markerPageMap.size;for(const[e,[s,i]]of this.markerPageMap)t[n++]=e,t[n++]=s,t[n++]=i;t[n++]=this.glyphsPageMap.size;for(const[e,[s,i]]of this.glyphsPageMap)t[n++]=e,t[n++]=s,t[n++]=i;t[n++]=this._iconVertexBuffer.index/4,t[n++]=this._textVertexBuffer.index/4,n=Y.serializeSymbols(t,s,i,n,this._symbolInstances),t[n++]=this._iconVertexBuffer.array.length;for(let e=0;e<this._iconVertexBuffer.array.length;e++)s[n++]=this._iconVertexBuffer.array[e];t[n++]=this._iconIndexBuffer.array.length;for(let e=0;e<this._iconIndexBuffer.array.length;e++)t[n++]=this._iconIndexBuffer.array[e];t[n++]=this._textVertexBuffer.array.length;for(let e=0;e<this._textVertexBuffer.array.length;e++)s[n++]=this._textVertexBuffer.array[e];t[n++]=this._textIndexBuffer.array.length;for(let e=0;e<this._textIndexBuffer.array.length;e++)t[n++]=this._textIndexBuffer.array[e];return t.buffer}static _symbolsSerializationLength(e){let t=0;t+=1;for(const s of e||[]){t+=4,t+=1;for(const e of s.textColliders)t+=10;for(const e of s.iconColliders)t+=10;t+=1,t+=2*s.textVertexRanges.length,t+=1,t+=2*s.iconVertexRanges.length}return t}static serializeSymbols(e,t,s,i,n){n=n||[],t[i++]=n.length;for(const e of n){t[i++]=e.anchor.x,t[i++]=e.anchor.y,t[i++]=e.symbolFeature.hash,t[i++]=e.symbolFeature.priority,t[i++]=e.textColliders.length+e.iconColliders.length;for(const n of e.textColliders)t[i++]=n.xTile,t[i++]=n.yTile,t[i++]=n.dxPixels,t[i++]=n.dyPixels,t[i++]=n.hard?1:0,t[i++]=n.partIndex,s[i++]=n.minLod,s[i++]=n.maxLod,t[i++]=n.width,t[i++]=n.height;for(const n of e.iconColliders)t[i++]=n.xTile,t[i++]=n.yTile,t[i++]=n.dxPixels,t[i++]=n.dyPixels,t[i++]=n.hard?1:0,t[i++]=n.partIndex,s[i++]=n.minLod,s[i++]=n.maxLod,t[i++]=n.width,t[i++]=n.height;t[i++]=e.textVertexRanges.length;for(const[s,n]of e.textVertexRanges)t[i++]=s,t[i++]=n;t[i++]=e.iconVertexRanges.length;for(const[s,n]of e.iconVertexRanges)t[i++]=s,t[i++]=n}return i}_replaceKeys(e,t){return e.replaceAll(/{([^{}]+)}/g,((e,s)=>s in t?t[s]:""))}_processFeature(e,t,s){const{line:i,iconMosaicItem:n,shaping:r,anchor:o}=e,l=this.zoom,h=this.layer,c=!!n;let u=!0;c&&(u=t?.optional||!n);const f=r&&r.length>0,d=!f||s?.optional;let y,x;if(c&&(y=this._placementEngine.getIconPlacement(o,n,t)),(y||u)&&(f&&(x=this._placementEngine.getTextPlacement(o,r,i,s)),x||d)){if(y&&x||(d||u?d||x?u||y||(x=null):y=null:(y=null,x=null)),x){const t=h.hasDataDrivenText?h.textMaterial.encodeAttributes(e.symbolFeature.feature,l,h):null;if(this._storePlacedGlyphs(e,x.shapes,l,s.rotationAlignment,t),x.textColliders){e.textColliders=x.textColliders;for(const e of x.textColliders){e.minLod=Math.max(l+(0,a.k3)(e.minLod),0),e.maxLod=Math.min(l+(0,a.k3)(e.maxLod),25);const t=e.angle;if(t){const s=Math.cos(t),i=Math.sin(t),n=e.dxPixels*s-e.dyPixels*i,r=e.dxPixels*i+e.dyPixels*s,a=(e.dxPixels+e.width)*s-e.dyPixels*i,o=(e.dxPixels+e.width)*i+e.dyPixels*s,l=e.dxPixels*s-(e.dyPixels+e.height)*i,h=e.dxPixels*i+(e.dyPixels+e.height)*s,c=(e.dxPixels+e.width)*s-(e.dyPixels+e.height)*i,u=(e.dxPixels+e.width)*i+(e.dyPixels+e.height)*s,f=Math.min(n,a,l,c),d=Math.max(n,a,l,c),g=Math.min(r,o,h,u),y=Math.max(r,o,h,u);e.dxPixels=f,e.dyPixels=g,e.width=d-f,e.height=y-g}}}}if(y){const s=h.hasDataDrivenIcon?h.iconMaterial.encodeAttributes(e.symbolFeature.feature,l,h):null;if(this._addPlacedIcons(e,y.shapes,l,n.page,t.rotationAlignment===g.aF.VIEWPORT,s),y.iconColliders){e.iconColliders=y.iconColliders;for(const e of y.iconColliders){e.minLod=Math.max(l+(0,a.k3)(e.minLod),0),e.maxLod=Math.min(l+(0,a.k3)(e.maxLod),25);const t=e.angle;if(t){const s=Math.cos(t),i=Math.sin(t),n=e.dxPixels*s-e.dyPixels*i,r=e.dxPixels*i+e.dyPixels*s,a=(e.dxPixels+e.width)*s-e.dyPixels*i,o=(e.dxPixels+e.width)*i+e.dyPixels*s,l=e.dxPixels*s-(e.dyPixels+e.height)*i,h=e.dxPixels*i+(e.dyPixels+e.height)*s,c=(e.dxPixels+e.width)*s-(e.dyPixels+e.height)*i,u=(e.dxPixels+e.width)*i+(e.dyPixels+e.height)*s,f=Math.min(n,a,l,c),d=Math.max(n,a,l,c),g=Math.min(r,o,h,u),y=Math.max(r,o,h,u);e.dxPixels=f,e.dyPixels=g,e.width=d-f,e.height=y-g}}}}}}_addPlacedIcons(e,t,s,i,n,r){const o=Math.max(s-1,0),l=this._iconVertexBuffer,h=this._iconIndexBuffer,c=this._markerMap;for(const u of t){const t=n?0:Math.max(s+(0,a.k3)(u.minzoom),o),f=n?25:Math.min(s+(0,a.k3)(u.maxzoom),25);if(f<=t)continue;const d=u.tl,g=u.tr,y=u.bl,x=u.br,p=u.mosaicRect,_=u.labelAngle,m=u.minAngle,I=u.maxAngle,w=u.anchor,b=l.index,M=p.x,k=p.y,T=M+p.width,P=k+p.height,V=l.index;l.add(w.x,w.y,d.x,d.y,M,k,_,m,I,t,f,r),l.add(w.x,w.y,g.x,g.y,T,k,_,m,I,t,f,r),l.add(w.x,w.y,y.x,y.y,M,P,_,m,I,t,f,r),l.add(w.x,w.y,x.x,x.y,T,P,_,m,I,t,f,r),e.iconVertexRanges.length>0&&e.iconVertexRanges[0][0]+e.iconVertexRanges[0][1]===V?e.iconVertexRanges[0][1]+=4:e.iconVertexRanges.push([V,4]),h.add(b,b+1,b+2),h.add(b+1,b+2,b+3),c.has(i)?c.get(i)[1]+=6:c.set(i,[this._iconIndexStart+this._iconIndexCount,6]),this._iconIndexCount+=6}}_addPlacedGlyphs(){const e=this._textVertexBuffer,t=this._textIndexBuffer,s=this._glyphMap;for(const[i,n]of this._glyphBufferDataStorage)for(const r of n){const n=e.index,a=r.symbolInstance,o=r.ddAttributes,l=e.index;e.add(r.glyphAnchor[0],r.glyphAnchor[1],r.tl[0],r.tl[1],r.xmin,r.ymin,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,o),e.add(r.glyphAnchor[0],r.glyphAnchor[1],r.tr[0],r.tr[1],r.xmax,r.ymin,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,o),e.add(r.glyphAnchor[0],r.glyphAnchor[1],r.bl[0],r.bl[1],r.xmin,r.ymax,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,o),e.add(r.glyphAnchor[0],r.glyphAnchor[1],r.br[0],r.br[1],r.xmax,r.ymax,r.labelAngle,r.minAngle,r.maxAngle,r.minLod,r.maxLod,o),a.textVertexRanges.length>0&&a.textVertexRanges[0][0]+a.textVertexRanges[0][1]===l?a.textVertexRanges[0][1]+=4:a.textVertexRanges.push([l,4]),t.add(n,n+1,n+2),t.add(n+1,n+2,n+3),s.has(i)?s.get(i)[1]+=6:s.set(i,[this._textIndexStart+this._textIndexCount,6]),this._textIndexCount+=6}this._glyphBufferDataStorage.clear()}_storePlacedGlyphs(e,t,s,i,n){const r=Math.max(s-1,0),o=i===g.aF.VIEWPORT;let l,h,c,u,f,d,y,x,p,_,m;for(const i of t)l=o?0:Math.max(s+(0,a.k3)(i.minzoom),r),h=o?25:Math.min(s+(0,a.k3)(i.maxzoom),25),h<=l||(c=i.tl,u=i.tr,f=i.bl,d=i.br,y=i.labelAngle,x=i.minAngle,p=i.maxAngle,_=i.anchor,m=i.mosaicRect,this._glyphBufferDataStorage.has(i.page)||this._glyphBufferDataStorage.set(i.page,[]),this._glyphBufferDataStorage.get(i.page).push({glyphAnchor:[_.x,_.y],tl:[c.x,c.y],tr:[u.x,u.y],bl:[f.x,f.y],br:[d.x,d.y],xmin:m.x,ymin:m.y,xmax:m.x+m.width,ymax:m.y+m.height,labelAngle:y,minAngle:x,maxAngle:p,minLod:l,maxLod:h,placementLod:r,symbolInstance:e,ddAttributes:n}))}static _pushAnchors(e,t,s,i){s+=i;let n=0;const o=t.length-1;for(let e=0;e<o;e++)n+=r.E9.distance(t[e],t[e+1]);let l=i||s;if(l*=.5,n<=l)return;const h=l/n;let c=0,u=-(s=n/Math.max(Math.round(n/s),1))/2;const f=t.length-1;for(let i=0;i<f;i++){const n=t[i],r=t[i+1],o=r.x-n.x,l=r.y-n.y,f=Math.sqrt(o*o+l*l);let d;for(;u+s<c+f;){u+=s;const t=(u-c)/f,g=(0,a.sX)(n.x,r.x,t),y=(0,a.sX)(n.y,r.y,t);void 0===d&&(d=Math.atan2(l,o)),e.push(new x(g,y,d,i,h))}c+=f}}static _pushCenterAnchor(e,t){let s=0;const i=t.length-1;for(let e=0;e<i;e++)s+=r.E9.distance(t[e],t[e+1]);const n=s/2;let o=0;const l=t.length-1;for(let s=0;s<l;s++){const i=t[s],r=t[s+1],l=r.x-i.x,h=r.y-i.y,c=Math.sqrt(l*l+h*h);if(n<o+c){const t=(n-o)/c,u=(0,a.sX)(i.x,r.x,t),f=(0,a.sX)(i.y,r.y,t),d=Math.atan2(h,l);return void e.push(new x(u,f,d,s,0))}o+=c}}static _deviation(e,t,s){const i=(t.x-e.x)*(s.x-t.x)+(t.y-e.y)*(s.y-t.y),n=(t.x-e.x)*(s.y-t.y)-(t.y-e.y)*(s.x-t.x);return Math.atan2(n,i)}static _honorsTextMaxAngle(e,t,s,i,n){let a=0;const o=s/2;let l=new r.E9(t.x,t.y),h=t.segment+1;for(;a>-o;){if(--h,h<0)return!1;a-=r.E9.distance(e[h],l),l=e[h]}a+=r.E9.distance(e[h],e[h+1]);const c=[];let u=0;const f=e.length;for(;a<o;){const t=e[h];let s,o=h;do{if(++o,o===f)return!1;s=e[o]}while(s.isEqual(t));let l,d=o;do{if(++d,d===f)return!1;l=e[d]}while(l.isEqual(s));const g=this._deviation(t,s,l);for(c.push({deviation:g,distToAnchor:a}),u+=g;a-c[0].distToAnchor>n;)u-=c.shift().deviation;if(Math.abs(u)>i)return!1;a+=r.E9.distance(s,l),h=o}return!0}static _smoothVertices(e,t){if(t<=0)return e;let s=e.length;if(s<3)return e;const i=[];let n=0,a=0;i.push(0);for(let t=1;t<s;t++){const s=r.E9.distance(e[t],e[t-1]);s>0&&(n+=s,i.push(n),a++,a!==t&&(e[a]=e[t]))}if(s=a+1,s<3)return e;t=Math.min(t,.2*n);const o=e[0].x,l=e[0].y,h=e[s-1].x,c=e[s-1].y,u=r.E9.sub(e[0],e[1]);u.normalize(),e[0].x+=t*u.x,e[0].y+=t*u.y,u.assignSub(e[s-1],e[s-2]),u.normalize(),e[s-1].x+=t*u.x,e[s-1].y+=t*u.y,i[0]-=t,i[s-1]+=t;const f=[];f.push(new r.E9(o,l));const d=1e-6,g=.5*t;for(let n=1;n<s-1;n++){let a=0,o=0,l=0;for(let s=n-1;s>=0;s--){const r=g+i[s+1]-i[n];if(r<0)break;const h=i[s+1]-i[s],c=i[n]-i[s]<g?1:r/h;if(c<d)break;const u=c*c,f=c*r-.5*u*h,y=c*h/t,x=e[s+1],p=e[s].x-x.x,_=e[s].y-x.y;a+=y/f*(x.x*c*r+.5*u*(r*p-h*x.x)-u*c*h*p/3),o+=y/f*(x.y*c*r+.5*u*(r*_-h*x.y)-u*c*h*_/3),l+=y}for(let r=n+1;r<s;r++){const s=g-i[r-1]+i[n];if(s<0)break;const h=i[r]-i[r-1],c=i[r]-i[n]<g?1:s/h;if(c<d)break;const u=c*c,f=c*s-.5*u*h,y=c*h/t,x=e[r-1],p=e[r].x-x.x,_=e[r].y-x.y;a+=y/f*(x.x*c*s+.5*u*(s*p-h*x.x)-u*c*h*p/3),o+=y/f*(x.y*c*s+.5*u*(s*_-h*x.y)-u*c*h*_/3),l+=y}f.push(new r.E9(a/l,o/l))}return f.push(new r.E9(h,c)),e[0].x=o,e[0].y=l,e[s-1].x=h,e[s-1].y=c,f}static _pushCentroid(e,t){const s=4096,i=4096,n=t.length-1;let r=0,a=0,o=0,l=t[0].x,h=t[0].y;l>s&&(l=s),l<0&&(l=0),h>i&&(h=i),h<0&&(h=0);for(let e=1;e<n;e++){let n=t[e].x,c=t[e].y,u=t[e+1].x,f=t[e+1].y;n>s&&(n=s),n<0&&(n=0),c>i&&(c=i),c<0&&(c=0),u>s&&(u=s),u<0&&(u=0),f>i&&(f=i),f<0&&(f=0);const d=(n-l)*(f-h)-(u-l)*(c-h);r+=d*(l+n+u),a+=d*(h+c+f),o+=d}r/=3*o,a/=3*o,isNaN(r)||isNaN(a)||e.push(new x(r,a))}}Y._bidiEngine=new H.Z,function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.NO_DATA=1]="NO_DATA",e[e.READY=2]="READY",e[e.MODIFIED=3]="MODIFIED",e[e.INVALID=4]="INVALID"}(Z||(Z={}));class X{constructor(e,t,s,i,n){if(this._pbfTiles={},this._tileClippers={},this._client=s,this._tile=t,n){this._styleLayerUIDs=new Set;for(const e of n)this._styleLayerUIDs.add(e)}this._styleRepository=i,this._layers=this._styleRepository?.layers??[];const[a,o,l]=t.tileKey.split("/").map(parseFloat);this._level=a;const h=8+Math.max(16*(this._level-14),0);for(const t of Object.keys(e)){const s=e[t];if(this._pbfTiles[t]=new M.Z(new Uint8Array(s.protobuff),new DataView(s.protobuff)),s.refKey){const[e]=s.refKey.split("/").map(parseFloat),i=a-e;if(i>0){const e=(1<<i)-1,s=o&e,n=l&e;this._tileClippers[t]=new r.bN(i,s,n,8,h)}}this._tileClippers[t]||(this._tileClippers[t]=new r.I6)}}_canParseStyleLayer(e){return!this._styleLayerUIDs||this._styleLayerUIDs.has(e)}async parse(e){const t=(0,k.j)(),s=this._initialize(e),{returnedBuckets:i}=s;this._processLayers(s),this._linkReferences(s),this._filterFeatures(s);const n=[],r=new Set,a=(e,t)=>{r.has(e)||(n.push({name:e,repeat:t}),r.add(e))},o={};for(const e of i)e.getResources(e.tileClipper,a,o);if(this._tile.status===Z.INVALID)return[];const l=this._fetchResources(n,o,e);return Promise.all([...l,t]).then((()=>this._processFeatures(s.returnedBuckets)))}_initialize(e){const t=e?.signal;return{signal:t,sourceNameToTileData:this._parseTileData(this._pbfTiles),layers:this._layers,zoom:this._level,sourceNameToTileClipper:this._tileClippers,sourceNameToUniqueSourceLayerBuckets:{},sourceNameToUniqueSourceLayers:{},returnedBuckets:[],layerIdToBucket:{},referencerUIDToReferencedId:new Map}}_processLayers(e){const{sourceNameToTileData:t,layers:s,zoom:i,sourceNameToTileClipper:n,sourceNameToUniqueSourceLayerBuckets:r,sourceNameToUniqueSourceLayers:a,returnedBuckets:o,layerIdToBucket:l,referencerUIDToReferencedId:h}=e;for(let e=s.length-1;e>=0;e--){const c=s[e];if(!this._canParseStyleLayer(c.uid)||c.minzoom&&i<Math.floor(c.minzoom)||c.maxzoom&&i>=c.maxzoom||c.type===g.fR.BACKGROUND)continue;if(!t[c.source]||!n[c.source])continue;const u=t[c.source],f=n[c.source],d=c.sourceLayer,y=u[d];if(y){let e=a[c.source];if(e||(e=a[c.source]=new Set),e.add(c.sourceLayer),c.refLayerId)h.set(c.uid,c.refLayerId);else{const e=this._createBucket(c);if(e){e.layerUIDs=[c.uid],e.layerExtent=y.extent,e.tileClipper=f;let t=r[c.source];t||(t=r[c.source]={});let s=t[d];s||(s=t[d]=[]),s.push(e),o.push(e),l[c.id]=e}}}}}_linkReferences(e){const{layerIdToBucket:t,referencerUIDToReferencedId:s}=e;s.forEach(((e,s)=>{t[e]&&t[e].layerUIDs.push(s)}))}_filterFeatures(e){const{signal:t,sourceNameToTileData:s,sourceNameToUniqueSourceLayerBuckets:n,sourceNameToUniqueSourceLayers:r}=e,a=10*this._level,o=10*(this._level+1),l=[],h=[];for(const e of Object.keys(r))r[e].forEach((t=>{l.push(t),h.push(e)}));for(let e=0;e<l.length;e++){const r=h[e],c=l[e];if(!s[r]||!n[r])continue;const u=s[r][c],f=n[r][c];if(!f||0===f.length)continue;if((0,i.Hc)(t))return;const d=u.getData();for(;d.nextTag(2);){const e=d.getMessage(),t=new T(e,u);e.release();const s=t.values;if(s){const e=s._minzoom;if(e&&e>=o)continue;const t=s._maxzoom;if(t&&t<=a)continue}for(const e of f)e.pushFeature(t)}}}_fetchResources(e,t,s){const i=[],n=this._tile.getWorkerTileHandler();let r,a;e.length>0&&(r=n.fetchSprites(e,this._client,s),i.push(r));for(const e in t){const r=t[e];r.size>0&&(a=n.fetchGlyphs(this._tile.tileKey,e,r,this._client,s),i.push(a))}return i}_processFeatures(e){const t=e.filter((e=>e.hasFeatures()||this._canParseStyleLayer(e.layer.uid)));for(const e of t)e.processFeatures(e.tileClipper);return t}_parseTileData(e){const t={};for(const s of Object.keys(e)){const i=e[s],n={};for(;i.next();)switch(i.tag()){case 3:{const e=i.getMessage(),t=new L(e);e.release(),n[t.name]=t;break}default:i.skip()}t[s]=n}return t}_createBucket(e){switch(e.type){case g.fR.BACKGROUND:return null;case g.fR.FILL:return this._createFillBucket(e);case g.fR.LINE:return this._createLineBucket(e);case g.fR.CIRCLE:return this._createCircleBucket(e);case g.fR.SYMBOL:return this._createSymbolBucket(e)}}_createFillBucket(e){return new U(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new B(e.fillMaterial.getStride()),new V,new E(e.outlineMaterial.getStride()),new V)}_createLineBucket(e){return new N(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new D(e.lineMaterial.getStride()),new V)}_createCircleBucket(e){return new S(e,this._level,this._tile.getWorkerTileHandler().getSpriteItems(),new R(e.circleMaterial.getStride()),new V)}_createSymbolBucket(e){const t=this._tile;return new Y(e,this._level,new A(e.iconMaterial.getStride()),new V,new A(e.textMaterial.getStride()),new V,t.placementEngine,t.getWorkerTileHandler())}}class J{constructor(e,t,s,i){this.status=Z.INITIALIZED,this.placementEngine=new I,this.tileKey=e,this.refKeys=t,this._workerTileHandler=s,this._styleRepository=i}release(){this.tileKey="",this.refKeys=null,this.status=Z.INITIALIZED,this._workerTileHandler=null}async parse(e,t){const s=t?.signal;if(null!=s){const e=()=>{s.removeEventListener("abort",e),this.status=Z.INVALID};s.addEventListener("abort",e)}let n;const r={bucketsWithData:[],emptyBuckets:null};try{n=await this._parse(e,t)}catch(e){if((0,i.D_)(e))throw e;return{result:r,transferList:[]}}this.status=Z.READY;const a=r.bucketsWithData,o=[];for(const e of n)if(e.hasFeatures()){const t=e.serialize();a.push(t)}else o.push(e.layer.uid);const l=[...a];let h=null;return o.length>0&&(h=Uint32Array.from(o),l.push(h.buffer)),r.emptyBuckets=h,{result:r,transferList:l}}setObsolete(){this.status=Z.INVALID}getLayers(){return this._workerTileHandler.getLayers()}getWorkerTileHandler(){return this._workerTileHandler}async _parse(e,t){const s=e.sourceName2DataAndRefKey;return 0===Object.keys(s).length?[]:(this.status=Z.MODIFIED,new X(s,this,t.client,this._styleRepository,e.styleLayerUIDs).parse(t))}}var Q=s(51785);class ${constructor(){this._spriteInfo={},this._glyphInfo={}}reset(){return this._spriteInfo={},this._glyphInfo={},Promise.resolve()}getLayers(){return this._styleRepository?.layers??[]}async createTileAndParse(e,t){const{key:s}=e,n={};for(const t of Object.keys(e.sourceName2DataAndRefKey)){const s=e.sourceName2DataAndRefKey[t];n[t]=s.refKey}const r=new J(s,n,this,this._styleRepository);try{return await r.parse(e,t)}catch(e){if(r.setObsolete(),r.release(),!(0,i.D_)(e))throw e;return null}}updateStyle(e){if(!e||0===e.length||!this._styleRepository)return;const t=this._styleRepository;for(const s of e){const e=s.type,i=s.data;switch(e){case n.Fr.PAINTER_CHANGED:t.setPaintProperties(i.layer,i.paint);break;case n.Fr.LAYOUT_CHANGED:t.setLayoutProperties(i.layer,i.layout);break;case n.Fr.LAYER_REMOVED:t.deleteStyleLayer(i.layer);break;case n.Fr.LAYER_CHANGED:t.setStyleLayer(i.layer,i.index);break;case n.Fr.SPRITES_CHANGED:this._spriteInfo={}}}}setStyle(e){this._styleRepository=new Q.Z(e),this._spriteInfo={},this._glyphInfo={}}fetchSprites(e,t,s){const i=[],n=this._spriteInfo;for(const t of e)void 0===n[t.name]&&i.push(t);return 0===i.length?Promise.resolve():t.invoke("getSprites",i,{signal:s?.signal}).then((e=>{for(const t in e){const s=e[t];n[t]=s}}))}getSpriteItems(){return this._spriteInfo}fetchGlyphs(e,t,s,i,n){const r=[];let a=this._glyphInfo[t];return a?s.forEach((e=>{a[e]||r.push(e)})):(a=this._glyphInfo[t]=[],s.forEach((e=>r.push(e)))),0===r.length?Promise.resolve():i.invoke("getGlyphs",{tileID:e,font:t,codePoints:r},n).then((e=>{for(let t=0;t<e.length;t++)e[t]&&(a[t]=e[t])}))}getGlyphItems(e){return this._glyphInfo[e]}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7865,5732,2596],{92835:(e,t,r)=>{r.d(t,{Z:()=>p});var i,n=r(43697),s=r(96674),o=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(71715)),d=r(52011),u=r(30556),h=r(25031);let y=i=class extends s.wq{static get allTime(){return c}static get empty(){return m}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===i&&r===n}expandTo(e,t=h.By){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.JE)(r,e,t));let n=this.end;if(n){const r=(0,o.JE)(n,e,t);n=n.getTime()===r.getTime()?r:(0,o.Nm)(r,1,e,t)}return new i({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,a;if(n>=t&&n<=r?o=n:t>=n&&t<=s&&(o=t),r>=n&&r<=s?a=r:s>=t&&s<=r&&(a=s),null!=o&&null!=a&&!isNaN(o)&&!isNaN(a)){const e=new i;return e.start=o===-1/0?null:new Date(o),e.end=a===1/0?null:new Date(a),e}return i.empty}offset(e,t,r=h.By){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:a}=this;return null!=s&&(n.start=(0,o.Nm)(s,e,t,r)),null!=a&&(n.end=(0,o.Nm)(a,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return c.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"end",void 0),(0,n._)([(0,l.r)("end")],y.prototype,"readEnd",null),(0,n._)([(0,u.c)("end")],y.prototype,"writeEnd",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],y.prototype,"isAllTime",null),(0,n._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],y.prototype,"isEmpty",null),(0,n._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"start",void 0),(0,n._)([(0,l.r)("start")],y.prototype,"readStart",null),(0,n._)([(0,u.c)("start")],y.prototype,"writeStart",null),y=i=(0,n._)([(0,d.j)("esri.TimeExtent")],y);const c=new y,m=new y({start:void 0,end:void 0}),p=y},5732:(e,t,r)=>{r.d(t,{c:()=>i,g:()=>n});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},57435:(e,t,r)=>{r.d(t,{Z:()=>d});var i=r(43697),n=r(46791),s=(r(66643),r(20102),r(92604),r(26258),r(87538)),o=r(5600),a=r(52011);let l=class extends n.Z{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,s.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new n.Z(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,o.Cb)()],l.prototype,"getCollections",void 0),(0,i._)([(0,o.Cb)()],l.prototype,"getChildrenFunction",void 0),(0,i._)([(0,o.Cb)()],l.prototype,"itemFilterFunction",void 0),l=(0,i._)([(0,a.j)("esri.core.CollectionFlattener")],l);const d=l},70921:(e,t,r)=>{r.d(t,{R:()=>s,Z:()=>n});var i=r(46791);function n(e,t,r=i.Z){return t||(t=new r),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function s(e){return e}},68668:(e,t,r)=>{r.d(t,{G:()=>o,w:()=>a});var i=r(66643),n=r(46791),s=r(83379);async function o(e,t){return await e.load(),a(e,t)}async function a(e,t){const r=[],o=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?o(...t):n.Z.isCollection(t)?t.forEach((e=>o(e))):s.Z.isLoadable(t)&&r.push(t))};t(o);let a=null;if(await(0,i.UI)(r,(async e=>{const t=await(0,i.q6)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||a||(a=t)})),a)throw a.error;return e}},17445:(e,t,r)=>{r.d(t,{N1:()=>y,YP:()=>l,Z_:()=>p,gx:()=>d,nn:()=>g,on:()=>h,tX:()=>f}),r(66643),r(46791);var i=r(91460),n=r(50758),s=r(70586),o=r(95330),a=r(26258);function l(e,t,r={}){return u(e,t,r,c)}function d(e,t,r={}){return u(e,t,r,m)}function u(e,t,r={},i){let n=null;const o=r.once?(e,r)=>{i(e)&&((0,s.hw)(n),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(n=(0,a.aQ)(e,o,r.sync,r.equals),r.initial){const t=e();o(t,t)}return n}function h(e,t,r,o={}){let a=null,d=null,u=null;function h(){a&&d&&(d.remove(),o.onListenerRemove?.(a),a=null,d=null)}function y(e){o.once&&o.once&&(0,s.hw)(u),r(e)}const c=l(e,((e,r)=>{h(),(0,i.vT)(e)&&(a=e,d=(0,i.on)(e,t,y),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return u=(0,n.kB)((()=>{c.remove(),h()})),u}function y(e,t){return function(e,t,r){if((0,o.Hc)(r))return Promise.reject((0,o.zE)());const i=e();if(t?.(i))return Promise.resolve(i);let a=null;function l(){a=(0,s.hw)(a)}return new Promise(((i,s)=>{a=(0,n.AL)([(0,o.fu)(r,(()=>{l(),s((0,o.zE)())})),u(e,(e=>{l(),i(e)}),{sync:!1,once:!0},t??c)])}))}(e,m,t)}function c(e){return!0}function m(e){return!!e}r(87538);const p={sync:!0},g={initial:!0},f={sync:!0,initial:!0}},35463:(e,t,r)=>{r.d(t,{JE:()=>l,Nm:()=>a,rJ:()=>d});var i=r(90344),n=r(25031),s=r(17126);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function a(e,t,r,o=n.By){const a=new s.vF((0,i.f1)(o)),l=s.ou.fromJSDate(e,{zone:a}),d="decades"===r||"centuries"===r?"year":u(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[d]:t}).toJSDate()}function l(e,t,r=n.By){const o=new s.vF((0,i.f1)(r)),a=s.ou.fromJSDate(e,{zone:o});if("decades"===t||"centuries"===t){const e=a.startOf("year"),{year:r}=e,i=r-r%("decades"===t?10:100);return e.set({year:i}).toJSDate()}const l=u(t);return a.startOf(l).toJSDate()}function d(e,t,r){return 0===e?0:e*o[t]/o[r]}function u(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},90344:(e,t,r)=>{r.d(t,{Xr:()=>m,Ze:()=>b,f1:()=>w,p6:()=>v});var i=r(35454),n=r(70171),s=r(25031);r(17126);const o=Intl.DateTimeFormat().resolvedOptions().timeZone,a=(s.pt,{year:"numeric",month:"numeric",day:"numeric"}),l={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},u={year:"numeric",month:"long",weekday:"long",day:"numeric"},h={hour:"numeric",minute:"numeric"},y={...h,second:"numeric"},c={"short-date":a,"short-date-short-time":{...a,...h},"short-date-short-time-24":{...a,...h,hour12:!1},"short-date-long-time":{...a,...y},"short-date-long-time-24":{...a,...y,hour12:!1},"short-date-le":a,"short-date-le-short-time":{...a,...h},"short-date-le-short-time-24":{...a,...h,hour12:!1},"short-date-le-long-time":{...a,...y},"short-date-le-long-time-24":{...a,...y,hour12:!1},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...h},"long-month-day-year-short-time-24":{...l,...h,hour12:!1},"long-month-day-year-long-time":{...l,...y},"long-month-day-year-long-time-24":{...l,...y,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...h},"day-short-month-year-short-time-24":{...d,...h,hour12:!1},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,...y,hour12:!1},"long-date":u,"long-date-short-time":{...u,...h},"long-date-short-time-24":{...u,...h,hour12:!1},"long-date-long-time":{...u,...y},"long-date-long-time-24":{...u,...y,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":h,"long-time":y},m=(0,i.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),p={ar:"ar-u-nu-latn-ca-gregory"};let g=new WeakMap;const f=c["short-date-short-time"];function b(e){return c[e]}function v(e,t=f){return function(e){let t=g.get(e);if(!t){const r=(0,n.Kd)(),i=p[r]||r,o=w(e.timeZone??s.By),a={...e,timeZone:o};t=new Intl.DateTimeFormat(i,a),g.set(e,t)}return t}(t).format(e)}function w(e){switch(e){case s.By:return o;case s._4:return s.pt;default:return e}}(0,n.Ze)((()=>{g=new WeakMap}))},40504:(e,t,r)=>{r.r(t),r.d(t,{default:()=>D});var i=r(43697),n=r(57435),s=r(68668),o=r(92604),a=r(16453),l=r(17445),d=r(5600),u=(r(75215),r(67676),r(80442),r(1153)),h=r(52011),y=r(30556),c=r(87085),m=r(71612),p=r(38009),g=r(16859),f=r(72965),b=r(87344),v=r(46791),w=r(70921),_=r(95330);function T(e,t,r){let i,n;if(e)for(let s=0,o=e.length;s<o;s++){if(i=e.at(s),i?.[t]===r)return i;if("group"===i?.type&&(n=T(i.layers,t,r),n))return n}}const C=e=>{let t=class extends e{constructor(...e){super(...e),this.layers=new v.Z;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||o.Z.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},r=e=>{e.parent=null,this.layerRemoved(e)};this.addHandles([this.layers.on("before-add",(e=>(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item))),this.layers.on("after-add",(e=>t(e.item))),this.layers.on("after-remove",(e=>r(e.item)))])}destroy(){const e=this.layers.toArray();for(const t of e)t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,w.Z)(e,this._get("layers")))}add(e,t){const r=this.layers;if(t=r.getNextIndex(t),e instanceof c.Z){const i=e;i.parent===this?this.reorder(i,t):r.add(i,t)}else(0,_.y8)(e)?e.then((e=>{this.destroyed||this.add(e,t)})):o.Z.getLogger(this).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const r=this.layers;let i=r.getNextIndex(t);e.slice().forEach((e=>{e.parent!==this?(r.add(e,i),i+=1):this.reorder(e,i)}))}findLayerById(e){return T(this.layers,"id",e)}findLayerByUid(e){return T(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,i._)([(0,d.Cb)()],t.prototype,"layers",null),t=(0,i._)([(0,h.j)("esri.support.LayersMixin")],t),t};function L(e,t,r){if(e)for(let i=0,n=e.length;i<n;i++){const n=e.at(i);if(n[t]===r)return n;if("group"===n?.type){const e=L(n.tables,t,r);if(e)return e}}}const E=e=>{let t=class extends e{constructor(...e){super(...e),this.tables=new v.Z,this.addHandles([this.tables.on("after-add",(e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,"feature"!==t.type&&o.Z.getLogger(this).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)})),this.tables.on("after-remove",(e=>{e.item.parent=null}))])}destroy(){const e=this.tables.toArray();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,w.Z)(e,this._get("tables")))}findTableById(e){return L(this.tables,"id",e)}findTableByUid(e){return L(this.tables,"uid",e)}};return(0,i._)([(0,d.Cb)()],t.prototype,"tables",null),t=(0,i._)([(0,h.j)("esri.support.TablesMixin")],t),t},I=Symbol("WebScene");var M=r(15650);let S=class extends((0,m.h)((0,f.M)((0,p.q)((0,g.I)(E(C((0,a.R)(c.Z)))))))){constructor(e){var t;super(e),this.allLayers=new n.Z({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new n.Z({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return!!t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group"}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles([(0,l.YP)((()=>{let e=this.parent;for(;e&&"parent"in e&&e.parent;)e=e.parent;return e&&I in e}),(e=>{const t="prevent-adding-tables";this.removeHandles(t),e&&(this.tables.removeAll(),this.addHandles((0,l.on)((()=>this.tables),"before-add",(e=>{e.preventDefault(),o.Z.getLogger(this).errorOnce("tables","tables in group layers in a webscene are not supported. Please move the tables from the group layer to the webscene if you want to persist them.")})),t))}),l.tX),(0,l.YP)((()=>this.visible),this._onVisibilityChange.bind(this),l.Z_)])}destroy(){this.allLayers.destroy(),this.allTables.destroy()}_writeLayers(e,t,r,i){const n=[];if(!e)return n;e.forEach((e=>{const t=(0,M.Nw)(e,i.webmap?i.webmap.getLayerJSONFromResourceInfo(e):null,i);t?.layerType&&n.push(t)})),t.layers=n}set portalItem(e){this._set("portalItem",e)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Scene Service"],layerModuleTypeMap:b.T},e)),Promise.resolve(this)}async loadAll(){return(0,s.G)(this,(e=>{e(this.layers,this.tables)}))}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this.hasHandles(e.uid)?console.error(`Layer readded to Grouplayer: uid=${e.uid}`):this.addHandles((0,l.YP)((()=>e.visible),(t=>this._onChildVisibilityChange(e,t)),l.Z_),e.uid)}layerRemoved(e){this.removeHandles(e.uid),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(e){this.layers.forEach((t=>{t!==e&&(t.visible=!1)}))}_enforceVisibility(e,t){if(!(0,u.vw)(this).initialized)return;const r=this.layers;let i=r.find((e=>e.visible));switch(e){case"exclusive":r.length&&!i&&(i=r.at(0),i.visible=!0),this._turnOffOtherLayers(i);break;case"inherited":r.forEach((e=>{e.visible=t}))}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach((t=>{t.visible=e}))}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some((e=>e.visible))}};(0,i._)([(0,d.Cb)({readOnly:!0,dependsOn:[]})],S.prototype,"allLayers",void 0),(0,i._)([(0,d.Cb)({readOnly:!0})],S.prototype,"allTables",void 0),(0,i._)([(0,d.Cb)()],S.prototype,"fullExtent",void 0),(0,i._)([(0,d.Cb)({json:{read:!0,write:!0}})],S.prototype,"blendMode",void 0),(0,i._)([(0,d.Cb)({json:{read:!1,write:{ignoreOrigin:!0}}})],S.prototype,"layers",void 0),(0,i._)([(0,y.c)("layers")],S.prototype,"_writeLayers",null),(0,i._)([(0,d.Cb)({type:["GroupLayer"]})],S.prototype,"operationalLayerType",void 0),(0,i._)([(0,d.Cb)({json:{origins:{"web-document":{read:!1,write:!1}}}})],S.prototype,"portalItem",null),(0,i._)([(0,d.Cb)()],S.prototype,"spatialReference",void 0),(0,i._)([(0,d.Cb)({json:{read:!1},readOnly:!0,value:"group"})],S.prototype,"type",void 0),(0,i._)([(0,d.Cb)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{type:["independent","exclusive"],write:(e,t,r)=>{"inherited"!==e&&(t[r]=e)}}}}})],S.prototype,"visibilityMode",null),S=(0,i._)([(0,h.j)("esri.layers.GroupLayer")],S);const D=S},16859:(e,t,r)=>{r.d(t,{I:()=>T});var i=r(43697),n=r(68773),s=r(40330),o=r(3172),a=r(66643),l=r(20102),d=r(92604),u=r(70586),h=r(95330),y=r(17452),c=r(5600),m=(r(75215),r(67676),r(80442),r(71715)),p=r(52011),g=r(30556),f=r(84230),b=r(48522),v=r(15235),w=r(86082),_=r(14661);const T=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new v.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(8062).then(r.bind(r,18062));return(0,h.k_)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,h.D_)(e)||d.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,h.r9)(e),!0))))}async setUserPrivileges(e,t){if(!n.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,h.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,_.Ss)(r);let n,o;if(i)n=r.portal.url;else try{n=await(0,f.oP)(this.url,t)}catch(e){(0,h.r9)(e)}if(!n||!(0,y.Zo)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,h.r9)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new v.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,_.Ss)(r)}catch(e){(0,h.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,h.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=b.Z.getDefault();if(n&&n.loaded&&(0,y.Fv)(n.restUrl)===(0,y.Fv)(i))return n.user;const l=`${i}/community/self`,d=null!=e?e.signal:null,u=await(0,a.q6)((0,o.Z)(l,{authMode:"no-prompt",query:{f:"json"},signal:d}));return u.ok?w.Z.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||b.Z.getDefault());return r&&i&&!(0,y.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,c.Cb)({type:v.default})],t.prototype,"portalItem",null),(0,i._)([(0,m.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,g.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,c.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,c.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,c.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,c.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,p.j)("esri.layers.mixins.PortalLayer")],t),t},C={credential:null,user:null}},15650:(e,t,r)=>{r.d(t,{Nw:()=>h});var i=r(20102),n=r(22974),s=r(78286),o=r(827),a=r(84230);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wms","wmts"]),d=new Set(["csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","map-image","map-notes","media","ogc-feature","oriented-imagery","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wfs","wms","wmts"]);function u(e,t){"maxScale"in e&&(t.maxScale=(0,o.k)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,o.k)(e.minScale)??void 0)}function h(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return r?.messages&&r.messages.push(new i.Z("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if(function(e,t){if(t.restrictedWebMapWriting){const r=function(e){return"basemap"===e.layerContainerType?l:"operational-layers"===e.layerContainerType?d:null}(t);return null==r||r.has(e.type)&&!(0,a.rQ)(e)}return!0}(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,a.rQ)(e)){const r=(0,s.hS)("featureCollection.layers",t),i=r?.[0]?.layerDefinition;i&&u(e,i)}else"group"!==e.type&&u(e,t)}(e,t),t&&("blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,o.k)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,a.rQ)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,n.d9)(t)),t}}}]);
|