@arcgis/core 4.34.0-next.46 → 4.34.0-next.48
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/{33f3e3d05429f845c139.js → 0b67b16d7e6c030bcfc7.js} +1 -1
- package/assets/esri/core/workers/chunks/{17df0f766ee1e323d3fa.js → 46ab551bd19e52e73649.js} +1 -1
- package/assets/esri/core/workers/chunks/{d70e1b8b8bee88a7a5b8.js → 574ea32d6c257e0d2079.js} +1 -1
- package/assets/esri/core/workers/chunks/5f7dc9657803ae3140a6.js +1 -0
- package/assets/esri/core/workers/chunks/6130bc641aa7c1bcaaa8.js +1 -0
- package/assets/esri/core/workers/chunks/{14d3039f92b0d96944f0.js → 71acded1b3c0057917a1.js} +1 -1
- package/assets/esri/core/workers/chunks/{b3e2e826295620b1a9dd.js → 90a97ffba604c1c35532.js} +22 -11
- package/assets/esri/core/workers/chunks/a50026e567b1edff87c6.js +1 -0
- package/assets/esri/core/workers/chunks/ad93a2621f75270f06cb.js +1 -0
- package/assets/esri/core/workers/chunks/{8bab4c59c9b644224ecb.js → b87ed14fde381f79bc9f.js} +1 -1
- package/assets/esri/core/workers/chunks/cfa8b17cf1349f6ed355.js +33 -0
- package/assets/esri/core/workers/chunks/{b4304673696fc0774bff.js → f1de768b0a6d345f7e39.js} +1 -1
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/chunks/BloomBlur.glsl.js +8 -8
- package/chunks/BloomComposition.glsl.js +15 -21
- package/chunks/bundle.js +1 -1
- package/config.js +1 -1
- package/editing/templateUtils.js +1 -1
- package/kernel.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/support/parquetUtils.js +1 -1
- package/package.json +1 -1
- package/rest/featureService/FeatureService.js +1 -1
- package/rest/networks/support/Subcircuit.js +5 -0
- package/rest/sharedTemplates/querySharedTemplates.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/ShaderGraphContext.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/graph/glsl.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/TestTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/OutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterRegistry.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/overlay/OverlayTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/videoScreenRenderer/VideoScreenTechnique.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetSnapshotLoadStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/ParquetTileLoadStrategy.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderPBF.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementComputation.js +1 -1
- package/views/3d/analysis/VolumeMeasurement/CutFillVolumeMeasurementController.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/pipeline/rendering/DirectRenderer.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/AllRenderPasses.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/output/Emissions.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/bloom/BloomPresets.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/geometry/RenderOccludedRenderNode.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/VaoRenderer.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.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/support/SelectionList.js +1 -1
- package/assets/esri/core/workers/chunks/53e166944a42af027345.js +0 -1
- package/assets/esri/core/workers/chunks/73140c5c0beda7ea3703.js +0 -1
- package/assets/esri/core/workers/chunks/b1b6300451cc4ccefd46.js +0 -1
- package/assets/esri/core/workers/chunks/c5a0976de958b3b01c70.js +0 -22
- package/assets/esri/core/workers/chunks/f0ccd7ac83d94cbf40a5.js +0 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{__decorate as e}from"tslib";import"../../intl.js";import{isSome as t}from"../../core/arrayUtils.js";import{on as i,watch as s}from"../../core/reactiveUtils.js";import{property as o}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import n from"../Widget.js";import{loadCalciteComponents as r}from"./componentsUtils.js";import{globalCss as a}from"./globalCss.js";import{storeNode as c}from"./widgetUtils.js";import{messageBundle as m}from"./decorators/messageBundle.js";import{tsx as d}from"./jsxFactory.js";import{isGroupLayerItem as p,isLayerItem as h,isFeatureItem as u}from"./SelectionList/selectionListUtils.js";import v from"./SelectionList/SelectionListViewModel.js";import g from"./SelectionList/VisibleElements.js";import{substitute as y}from"../../intl/substitute.js";import{formatNumber as I}from"../../intl/number.js";const b="esri-selection-list",f=`${b}__list-item`,w={base:b,container:`${b}__container`,flowItem:`${b}__flow-item`,layerDropdown:`${b}__layer-dropdown`,listItemFeature:`${f}__feature`,listItemFeatureIcon:`${f}__feature-icon`,listItemIcon:`${f}__icon`,itemCount:`${b}__item-count`,notice:`${b}__notice`,panel:`${b}__panel`,totalCount:`${b}__total-count`};let _=class extends n{constructor(e,t){super(e,t),this._iconIntersectionObserver=new IntersectionObserver((e,t)=>{e.forEach(async e=>{if(e.isIntersecting){const i=e.target;if(this._hasIcon(i))return void t.unobserve(i);const s=this._getListItem(i);if(!s)return;this._setHasIcon(i,!0);const o=s.title?y(this.messagesLegend.previewTemplateAriaLabel,{label:s.title}):this.messagesCommon.preview,l=s.thumbnail??await s.fetchThumbnail({ariaLabel:o}).catch(()=>(this._setHasIcon(i,!1),null));if(null==l)return;i.appendChild(l)}})}),this._itemWithOpenMenu=null,this._list=null,this.displayMode="group",this.hightlightOnHoverEnabled=!1,this.itemActionConfigs=null,this.menuScale="m",this.messages=null,this.messagesCommon=null,this.messagesLegend=null,this.onListItemSelect=null,this.scale="s",this.viewModel=new v,this.visibleElements=new g,this._afterItemCreate=e=>{this._iconIntersectionObserver?.observe(e)},this._afterItemRemoved=e=>{this._iconIntersectionObserver?.unobserve(e)},this.clear=this.clear.bind(this),this.collapseItems=this.collapseItems.bind(this),this.removeTemporaryHighlight=this.removeTemporaryHighlight.bind(this)}initialize(){this.addHandles([i(()=>this.effectiveSelectionManager,"selection-change",()=>this._closeItemMenu()),s(()=>this.hightlightOnHoverEnabled,e=>{e||this.removeTemporaryHighlight()})])}destroy(){this._iconIntersectionObserver?.disconnect(),this._iconIntersectionObserver=null}loadDependencies(){return r({action:()=>import("@esri/calcite-components/dist/components/calcite-action"),chip:()=>import("@esri/calcite-components/dist/components/calcite-chip"),combobox:()=>import("@esri/calcite-components/dist/components/calcite-combobox"),"combobox-item":()=>import("@esri/calcite-components/dist/components/calcite-combobox-item"),dropdown:()=>import("@esri/calcite-components/dist/components/calcite-dropdown"),"dropdown-group":()=>import("@esri/calcite-components/dist/components/calcite-dropdown-group"),"dropdown-item":()=>import("@esri/calcite-components/dist/components/calcite-dropdown-item"),flow:()=>import("@esri/calcite-components/dist/components/calcite-flow"),"flow-item":()=>import("@esri/calcite-components/dist/components/calcite-flow-item"),icon:()=>import("@esri/calcite-components/dist/components/calcite-icon"),input:()=>import("@esri/calcite-components/dist/components/calcite-input"),list:()=>import("@esri/calcite-components/dist/components/calcite-list"),"list-item":()=>import("@esri/calcite-components/dist/components/calcite-list-item"),notice:()=>import("@esri/calcite-components/dist/components/calcite-notice"),panel:()=>import("@esri/calcite-components/dist/components/calcite-panel")})}get _hasFilterText(){const{filterText:e}=this;return null!=e&&""!==e}get activeLayerItem(){return this.viewModel.activeLayerItem}get allLayerItems(){return this.viewModel.allLayerItems}get effectiveCount(){return this.viewModel.effectiveCount}get effectiveSelectionManager(){return this.viewModel.effectiveSelectionManager}get filterText(){return this.viewModel.filterText}set filterText(e){this.viewModel.filterText=e}get icon(){return"selection"}set icon(e){this._overrideIfSome("icon",e)}get isUpdating(){return this.viewModel.isUpdating}get label(){return this.messages?.widgetLabel??""}set label(e){this._overrideIfSome("label",e)}get layer(){return this.viewModel.layer}set layer(e){this.viewModel.layer=e}get layerItems(){return this.viewModel.layerItems}get layerViewMap(){return this.viewModel.layerViewMap}get maxVisibleFeatureCountExceeded(){return this.viewModel.maxVisibleFeatureCountExceeded}get maxVisibleFeatureCountPerLayer(){return this.viewModel.maxVisibleFeatureCountPerLayer}set maxVisibleFeatureCountPerLayer(e){this.viewModel.maxVisibleFeatureCountPerLayer=e}get selectionManager(){return this.viewModel.selectionManager}set selectionManager(e){this.viewModel.selectionManager=e}get state(){return this.viewModel.state}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}get viewLayersAndTables(){return this.viewModel.viewLayersAndTables}get visibleFeatureCount(){return this.viewModel.visibleFeatureCount}get visibleFeatureItems(){return this.viewModel.visibleFeatureItems}get visibleLayerCount(){return this.viewModel.visibleLayerCount}addTemporaryHighlight(e){this.viewModel.addTemporaryHighlight(e)}clear(){this.viewModel.clear()}deselectFeatureItem(e){this.viewModel.deselectFeatureItem(e)}deselectGroupItem(e){this.viewModel.deselectGroupItem(e)}deselectLayerItem(e){this.viewModel.deselectLayerItem(e)}deselectItem(e){this.viewModel.deselectItem(e)}collapseItems(){this._list?.filteredItems.forEach(e=>e.expanded=!1)}goToItem(e){this.viewModel.goToItem(e)}removeFromSelection(e){this.viewModel.removeFromSelection(e)}removeTemporaryHighlight(){this.viewModel.removeTemporaryHighlight()}selectSingleFeatureItem(e){this.viewModel.selectSingleFeatureItem(e)}selectSingleGroupItem(e){this.viewModel.selectSingleGroupItem(e)}selectSingleItem(e){this.viewModel.selectSingleItem(e)}selectSingleLayerItem(e){this.viewModel.selectSingleLayerItem(e)}setSelection(e){this.viewModel.setSelection(e)}render(){return d("div",{class:this.classes(w.base,a.widget,a.panel)},d("calcite-flow",null,d("calcite-flow-item",{class:w.flowItem,heading:this.visibleElements.header?this.messages.selection:void 0,loading:"loading"===this.state,overlayPositioning:"fixed",scale:this.scale,selected:!0},d("calcite-panel",{class:w.panel,overlayPositioning:"fixed",scale:this.scale},d("div",{class:w.container},this._renderActiveLayerDropdown(),this._renderFilterInput(),this._renderList(),this._renderFilterNotice())),this._renderTotalChip(),this._renderMenuActions())))}_renderTotalChip(){const{visibleElements:e}=this;if(!e.totalCount||!e.header)return;const{effectiveCount:t}=this,i=I(t),s=y(this.messages.selectionCount,{count:i});return d("calcite-chip",{appearance:"outline",class:w.totalCount,closable:t>0,closed:0===t,icon:this.maxVisibleFeatureCountExceeded?"exclamation-mark-triangle":void 0,label:i,scale:this.scale,slot:"header-actions-end",title:s,onCalciteChipClose:this.clear},i)}_renderMenuActions(){const{visibleElements:e}=this;if(!e.header||!e.menu)return;const{menuScale:t}=this,i=0===this.effectiveCount;return[d("calcite-action",{disabled:i,icon:"reset",key:"clear-action",onclick:this.clear,scale:t,slot:"header-menu-actions",text:this.messagesCommon.clear,textEnabled:!0}),d("calcite-action",{disabled:i,icon:"folders",key:"collapse-action",onclick:this.collapseItems,scale:t,slot:"header-menu-actions",text:this.messages.collapseAll,textEnabled:!0})]}_renderActiveLayerDropdown(){const{layerItems:e,messages:t}=this;if(!(0===this.effectiveCount||e.length<2)&&this.visibleElements.layerFilter)return d("calcite-combobox",{class:w.layerDropdown,clearDisabled:!0,label:t.filterByLayer,overlayPositioning:"fixed",placeholder:t.filterByLayer,scale:this.scale,selectionMode:"single-persist",onCalciteComboboxChange:({currentTarget:e})=>{this.filterText=void 0;const t=e.selectedItems[0]?.value??void 0;this.layer="all-layers"===t?void 0:t}},d("calcite-combobox-item",{heading:y(t.allLayersCount,{count:e.length}),icon:"layers",key:"all-layers",selected:null==this.layer,value:"all-layers"}),this.layerItems.map(e=>this._renderActiveLayerDropdownItem(e)))}_renderFilterInput(){if(this.visibleElements.filter&&0!==this.effectiveCount)return d("calcite-input",{clearable:!0,icon:"search",placeholder:this.messages.filter,scale:this.scale,value:this.filterText,onCalciteInputInput:({target:{value:e}})=>{this.filterText=e}})}_renderActiveLayerDropdownItem(e){const t=e.title||this.messages.untitledLayer;return d("calcite-combobox-item",{heading:t,icon:e.iconName,key:e.key,selected:e.layer===this.layer,value:e.layer})}_renderList(){const{messages:e}=this;if(0!==this.visibleFeatureCount)return d("calcite-list",{afterCreate:c,bind:this,"data-node-ref":"_list",displayMode:"nested",interactionMode:"interactive",label:e.widgetLabel,loading:this.isUpdating,scale:this.scale,selectionMode:"none"},this._renderListContent(this.allLayerItems))}_renderListContent(e){return this.activeLayerItem?this._renderLayerItem(this.activeLayerItem):e.map(e=>p(e)?this._renderGroupItem(e):h(e)?this._renderLayerItem(e):null).filter(t)}_renderFilterNotice(){const{visibleElements:e}=this;if(!("disabled"===this.state||this.visibleFeatureCount>0)&&e.filter&&e.filterNotice)return d("calcite-notice",{class:w.notice,icon:"exclamation-mark-triangle",kind:"info",open:!0,scale:this.scale,width:"full"},d("div",{slot:"message"},this.messages.noMatchingFeatures))}_renderItemCount(e){if(!this.visibleElements.itemCount)return;const{messages:t}=this,i=I(e.total),s=I(e.visibleTotal),o=y(t.selectionCount,{count:i});return!this._hasFilterText&&e.maxVisibleFeatureCountExceeded?d("span",{class:w.itemCount,slot:"content-end",title:o},d("calcite-icon",{icon:"exclamation-mark-triangle",scale:"s",title:t.tooManyFeatures}),`${I(this.maxVisibleFeatureCountPerLayer)}+`):d("span",{class:w.itemCount,slot:"content-end",title:o},s)}_renderItemActions(e){if(!this.visibleElements.itemMenus)return;const{messages:t,messagesCommon:i}=this,s=this._itemWithOpenMenu===e,o=u(e),l=h(e),n=p(e),r=o?t.deselectFeature:l?t.deselectLayer:t.deselectGroup;return[d("calcite-dropdown",{open:s,overlayPositioning:"fixed",scale:this.menuScale,slot:"actions-end",width:"m",onCalciteDropdownClose:()=>this._closeItemMenu(e),onCalciteDropdownOpen:()=>{this._itemWithOpenMenu=e}},d("calcite-action",{appearance:"transparent",icon:"ellipsis",scale:this.scale,slot:"trigger",text:i.menu,textEnabled:!1}),s?d("calcite-dropdown-group",{selectionMode:"none"},d("calcite-dropdown-item",{iconStart:"layer-zoom-to",onCalciteDropdownItemSelect:()=>this.goToItem(e)},t.zoomTo),d("calcite-dropdown-item",{iconStart:"selection-filter",onCalciteDropdownItemSelect:()=>this.selectSingleItem(e)},o?t.onlySelectFeature:t.onlySelectThis),d("calcite-dropdown-item",{iconStart:"selection-x",onCalciteDropdownItemSelect:()=>this.deselectItem(e)},r),this.itemActionConfigs?.map(t=>{if(!t.type||"feature"===t.type&&o||"layer"===t.type&&l||"group"===t.type&&n)return d("calcite-dropdown-item",{iconStart:t.icon??void 0,onCalciteDropdownItemSelect:()=>t.callback({item:e})},t.label)})):void 0)]}_renderGroupItem(e){const t=e.title||this.messages.untitledLayer;if(0===e.visibleTotal)return;const{displayMode:i}=this;if("layer"===i||"feature"===i)return this._renderListContent(e.items);const{visibleElements:s}=this;return d("calcite-list-item",{bind:this,closable:!!s.itemCloseActions,"data-type":"group",expanded:!0,iconStart:s.itemIcons?e.iconName:void 0,key:e.key,label:t,value:e.title,onCalciteListItemClose:t=>{t.stopPropagation(),this.deselectItem(e)},onCalciteListItemSelect:t=>this._onListItemSelect(e,t)},this._renderItemActions(e),this._renderListContent(e.items))}_renderLayerItem(e){if(0===e.visibleTotal||!e.visible)return;if("feature"===this.displayMode)return this._renderItems(e.featureItems);const{messages:t,visibleElements:i}=this,s=e.title||t.untitledLayer;return d("calcite-list-item",{bind:this,closable:!!i.itemCloseActions,"data-type":"layer",expanded:!0,iconStart:i.itemIcons?e.iconName:void 0,key:e.key,label:s,scale:this.scale,value:e.title,onCalciteListItemClose:t=>{t.stopPropagation(),this.deselectItem(e)},onCalciteListItemSelect:t=>this._onListItemSelect(e,t)},this._renderItemCount(e),this._renderItemActions(e),this._renderItems(e.featureItems),e.maxVisibleFeatureCountExceeded?d("calcite-notice",{class:w.notice,icon:"exclamation-mark-triangle",kind:"info",open:!0,scale:this.scale},d("div",{slot:"message"},t.tooManyFeatures)):void 0)}_renderItems(e){return e.map(e=>this._renderItem(e))}_renderItem(e){if(!e.visible)return;const{hightlightOnHoverEnabled:t,messages:i,visibleElements:s}=this,o=e.title||i.untitledFeature,l=s.itemIcons&&"feature"!==this.displayMode;return d("calcite-list-item",{bind:this,class:l?w.listItemFeatureIcon:w.listItemFeature,closable:!!s.itemCloseActions,"data-item":e,"data-type":"feature",key:e.key,label:o,name:o,onblur:t?()=>this.removeTemporaryHighlight():void 0,onfocus:t?()=>this.addTemporaryHighlight(e):void 0,onpointerenter:t?()=>this.addTemporaryHighlight(e):void 0,onpointerleave:t?()=>this.removeTemporaryHighlight():void 0,scale:this.scale,value:o,onCalciteListItemClose:t=>{t.stopPropagation(),this.deselectItem(e)},onCalciteListItemSelect:t=>this._onListItemSelect(e,t)},this._renderItemIcon(e),this._renderItemActions(e))}_renderItemIcon(e){if(this.visibleElements.itemIcons)return d("div",{class:w.listItemIcon,key:"content-start",slot:"content-start"},d("span",{afterCreate:this._afterItemCreate,afterRemoved:this._afterItemRemoved,"data-has-icon":!1,"data-item":e,key:e.thumbnailKey}))}_getListItem(e){return e?.["data-item"]}_hasIcon(e){return!!e?.["data-has-icon"]}_setHasIcon(e,t){e&&(e["data-has-icon"]=t)}_onListItemSelect(e,t){t.stopPropagation(),this._closeItemMenu(),this.onListItemSelect?.({item:e})}_closeItemMenu(e){e&&e!==this._itemWithOpenMenu||(this._itemWithOpenMenu=null)}};e([o()],_.prototype,"_hasFilterText",null),e([o()],_.prototype,"_itemWithOpenMenu",void 0),e([o()],_.prototype,"_list",void 0),e([o()],_.prototype,"activeLayerItem",null),e([o()],_.prototype,"allLayerItems",null),e([o()],_.prototype,"displayMode",void 0),e([o()],_.prototype,"effectiveCount",null),e([o()],_.prototype,"effectiveSelectionManager",null),e([o()],_.prototype,"filterText",null),e([o()],_.prototype,"hightlightOnHoverEnabled",void 0),e([o()],_.prototype,"icon",null),e([o()],_.prototype,"itemActionConfigs",void 0),e([o()],_.prototype,"isUpdating",null),e([o()],_.prototype,"label",null),e([o()],_.prototype,"layer",null),e([o()],_.prototype,"layerItems",null),e([o()],_.prototype,"layerViewMap",null),e([o()],_.prototype,"maxVisibleFeatureCountExceeded",null),e([o()],_.prototype,"maxVisibleFeatureCountPerLayer",null),e([o()],_.prototype,"menuScale",void 0),e([o(),m("esri/widgets/support/SelectionList/t9n/SelectionList")],_.prototype,"messages",void 0),e([o(),m("esri/t9n/common")],_.prototype,"messagesCommon",void 0),e([o(),m("esri/widgets/Legend/t9n/Legend")],_.prototype,"messagesLegend",void 0),e([o()],_.prototype,"onListItemSelect",void 0),e([o()],_.prototype,"scale",void 0),e([o()],_.prototype,"selectionManager",null),e([o()],_.prototype,"state",null),e([o()],_.prototype,"view",null),e([o()],_.prototype,"viewLayersAndTables",null),e([o()],_.prototype,"viewModel",void 0),e([o({type:g,nonNullable:!0})],_.prototype,"visibleElements",void 0),e([o()],_.prototype,"visibleFeatureCount",null),e([o()],_.prototype,"visibleFeatureItems",null),e([o()],_.prototype,"visibleLayerCount",null),_=e([l("esri.widgets.support.SelectionList")],_);const C=_;export{C as default};
|
|
5
|
+
import{__decorate as e}from"tslib";import"../../intl.js";import{isSome as t}from"../../core/arrayUtils.js";import{on as i,watch as s}from"../../core/reactiveUtils.js";import{property as o}from"../../core/accessorSupport/decorators/property.js";import"../../core/has.js";import"../../core/Logger.js";import{subclass as l}from"../../core/accessorSupport/decorators/subclass.js";import n from"../Widget.js";import{loadCalciteComponents as r}from"./componentsUtils.js";import{globalCss as a}from"./globalCss.js";import{storeNode as c}from"./widgetUtils.js";import{messageBundle as m}from"./decorators/messageBundle.js";import{tsx as d}from"./jsxFactory.js";import{isGroupLayerItem as p,isLayerItem as h,isFeatureItem as u}from"./SelectionList/selectionListUtils.js";import v from"./SelectionList/SelectionListViewModel.js";import g from"./SelectionList/VisibleElements.js";import{substitute as y}from"../../intl/substitute.js";import{formatNumber as I}from"../../intl/number.js";const b="esri-selection-list",f=`${b}__list-item`,w={base:b,container:`${b}__container`,flowItem:`${b}__flow-item`,layerDropdown:`${b}__layer-dropdown`,listItemFeature:`${f}__feature`,listItemFeatureIcon:`${f}__feature-icon`,listItemIcon:`${f}__icon`,itemCount:`${b}__item-count`,notice:`${b}__notice`,panel:`${b}__panel`,totalCount:`${b}__total-count`};let _=class extends n{constructor(e,t){super(e,t),this._iconIntersectionObserver=new IntersectionObserver((e,t)=>{e.forEach(async e=>{if(e.isIntersecting){const i=e.target;if(this._hasIcon(i))return void t.unobserve(i);const s=this._getListItem(i);if(!s)return;this._setHasIcon(i,!0);const o=s.title?y(this.messagesLegend.previewTemplateAriaLabel,{label:s.title}):this.messagesCommon.preview,l=s.thumbnail??await s.fetchThumbnail({ariaLabel:o}).catch(()=>(this._setHasIcon(i,!1),null));if(null==l)return;i.appendChild(l)}})}),this._itemWithOpenMenu=null,this._list=null,this.displayMode="group",this.hightlightOnHoverEnabled=!1,this.itemActionConfigs=null,this.menuScale="m",this.messages=null,this.messagesCommon=null,this.messagesLegend=null,this.onListItemSelect=null,this.scale="s",this.viewModel=new v,this.visibleElements=new g,this._afterItemCreate=e=>{this._iconIntersectionObserver?.observe(e)},this._afterItemRemoved=e=>{this._iconIntersectionObserver?.unobserve(e)},this.clear=this.clear.bind(this),this.collapseItems=this.collapseItems.bind(this),this.removeTemporaryHighlight=this.removeTemporaryHighlight.bind(this)}initialize(){this.addHandles([i(()=>this.effectiveSelectionManager,"selection-change",()=>this._closeItemMenu()),s(()=>this.hightlightOnHoverEnabled,e=>{e||this.removeTemporaryHighlight()})])}destroy(){this._iconIntersectionObserver?.disconnect(),this._iconIntersectionObserver=null}loadDependencies(){return r({action:()=>import("@esri/calcite-components/dist/components/calcite-action"),chip:()=>import("@esri/calcite-components/dist/components/calcite-chip"),combobox:()=>import("@esri/calcite-components/dist/components/calcite-combobox"),"combobox-item":()=>import("@esri/calcite-components/dist/components/calcite-combobox-item"),dropdown:()=>import("@esri/calcite-components/dist/components/calcite-dropdown"),"dropdown-group":()=>import("@esri/calcite-components/dist/components/calcite-dropdown-group"),"dropdown-item":()=>import("@esri/calcite-components/dist/components/calcite-dropdown-item"),flow:()=>import("@esri/calcite-components/dist/components/calcite-flow"),"flow-item":()=>import("@esri/calcite-components/dist/components/calcite-flow-item"),icon:()=>import("@esri/calcite-components/dist/components/calcite-icon"),input:()=>import("@esri/calcite-components/dist/components/calcite-input"),list:()=>import("@esri/calcite-components/dist/components/calcite-list"),"list-item":()=>import("@esri/calcite-components/dist/components/calcite-list-item"),notice:()=>import("@esri/calcite-components/dist/components/calcite-notice"),panel:()=>import("@esri/calcite-components/dist/components/calcite-panel")})}get _hasFilterText(){const{filterText:e}=this;return null!=e&&""!==e}get activeLayerItem(){return this.viewModel.activeLayerItem}get allLayerItems(){return this.viewModel.allLayerItems}get effectiveCount(){return this.viewModel.effectiveCount}get effectiveSelectionManager(){return this.viewModel.effectiveSelectionManager}get filterText(){return this.viewModel.filterText}set filterText(e){this.viewModel.filterText=e}get icon(){return"selection"}set icon(e){this._overrideIfSome("icon",e)}get isUpdating(){return this.viewModel.isUpdating}get label(){return this.messages?.widgetLabel??""}set label(e){this._overrideIfSome("label",e)}get layer(){return this.viewModel.layer}set layer(e){this.viewModel.layer=e}get layerItems(){return this.viewModel.layerItems}get layerViewMap(){return this.viewModel.layerViewMap}get maxVisibleFeatureCountExceeded(){return this.viewModel.maxVisibleFeatureCountExceeded}get maxVisibleFeatureCountPerLayer(){return this.viewModel.maxVisibleFeatureCountPerLayer}set maxVisibleFeatureCountPerLayer(e){this.viewModel.maxVisibleFeatureCountPerLayer=e}get selectionManager(){return this.viewModel.selectionManager}set selectionManager(e){this.viewModel.selectionManager=e}get state(){return this.viewModel.state}get view(){return this.viewModel.view}set view(e){this.viewModel.view=e}get viewLayersAndTables(){return this.viewModel.viewLayersAndTables}get visibleFeatureCount(){return this.viewModel.visibleFeatureCount}get visibleFeatureItems(){return this.viewModel.visibleFeatureItems}get visibleLayerCount(){return this.viewModel.visibleLayerCount}addTemporaryHighlight(e){this.viewModel.addTemporaryHighlight(e)}clear(){this.viewModel.clear()}deselectFeatureItem(e){this.viewModel.deselectFeatureItem(e)}deselectGroupItem(e){this.viewModel.deselectGroupItem(e)}deselectLayerItem(e){this.viewModel.deselectLayerItem(e)}deselectItem(e){this.viewModel.deselectItem(e)}collapseItems(){this._list?.filteredItems.forEach(e=>e.expanded=!1)}goToItem(e){this.viewModel.goToItem(e)}removeFromSelection(e){this.viewModel.removeFromSelection(e)}removeTemporaryHighlight(){this.viewModel.removeTemporaryHighlight()}selectSingleFeatureItem(e){this.viewModel.selectSingleFeatureItem(e)}selectSingleGroupItem(e){this.viewModel.selectSingleGroupItem(e)}selectSingleItem(e){this.viewModel.selectSingleItem(e)}selectSingleLayerItem(e){this.viewModel.selectSingleLayerItem(e)}setSelection(e){this.viewModel.setSelection(e)}render(){return d("div",{class:this.classes(w.base,a.widget,a.panel)},d("calcite-flow",null,d("calcite-flow-item",{class:w.flowItem,heading:this.visibleElements.header?this.messages.selection:void 0,loading:"loading"===this.state,overlayPositioning:"fixed",scale:this.scale,selected:!0},d("calcite-panel",{class:w.panel,overlayPositioning:"fixed",scale:this.scale},d("div",{class:w.container},this._renderActiveLayerDropdown(),this._renderFilterInput(),this._renderList(),this._renderFilterNotice())),this._renderTotalChip(),this._renderMenuActions())))}_renderTotalChip(){const{visibleElements:e}=this;if(!e.totalCount||!e.header)return;const{effectiveCount:t}=this,i=I(t),s=y(this.messages.selectionCount,{count:i});return d("calcite-chip",{appearance:"outline",class:w.totalCount,closable:t>0,closed:0===t,icon:this.maxVisibleFeatureCountExceeded?"exclamation-mark-triangle":void 0,label:i,scale:this.scale,slot:"header-actions-end",title:s,onCalciteChipClose:this.clear},i)}_renderMenuActions(){const{visibleElements:e}=this;if(!e.header||!e.menu)return;const{menuScale:t}=this,i=0===this.effectiveCount;return[d("calcite-action",{disabled:i,icon:"reset",key:"clear-action",onclick:this.clear,scale:t,slot:"header-menu-actions",text:this.messagesCommon.clear,textEnabled:!0}),d("calcite-action",{disabled:i,icon:"folders",key:"collapse-action",onclick:this.collapseItems,scale:t,slot:"header-menu-actions",text:this.messages.collapseAll,textEnabled:!0})]}_renderActiveLayerDropdown(){const{layerItems:e,messages:t}=this;if(!(0===this.effectiveCount||e.length<2)&&this.visibleElements.layerFilter)return d("calcite-combobox",{class:w.layerDropdown,clearDisabled:!0,label:t.filterByLayer,overlayPositioning:"fixed",placeholder:t.filterByLayer,scale:this.scale,selectionMode:"single-persist",onCalciteComboboxChange:({currentTarget:e})=>{this.filterText=void 0;const t=e.selectedItems[0]?.value??void 0;this.layer="all-layers"===t?void 0:t}},d("calcite-combobox-item",{heading:y(t.allLayersCount,{count:e.length}),icon:"layers",key:"all-layers",selected:null==this.layer,value:"all-layers"}),this.layerItems.map(e=>this._renderActiveLayerDropdownItem(e)))}_renderFilterInput(){if(this.visibleElements.filter&&0!==this.effectiveCount)return d("calcite-input",{clearable:!0,icon:"search",placeholder:this.messages.filter,scale:this.scale,value:this.filterText,onCalciteInputInput:({target:{value:e}})=>{this.filterText=e}})}_renderActiveLayerDropdownItem(e){const t=e.title||this.messages.untitledLayer;return d("calcite-combobox-item",{heading:t,icon:e.iconName,key:e.key,selected:e.layer===this.layer,value:e.layer})}_renderList(){const{messages:e}=this;if(0!==this.visibleFeatureCount)return d("calcite-list",{afterCreate:c,bind:this,"data-node-ref":"_list",displayMode:"nested",interactionMode:"interactive",label:e.widgetLabel,loading:this.isUpdating,scale:this.scale,selectionMode:"none"},this._renderListContent(this.allLayerItems))}_renderListContent(e){return this.activeLayerItem?this._renderLayerItem(this.activeLayerItem):e.map(e=>p(e)?this._renderGroupItem(e):h(e)?this._renderLayerItem(e):null).filter(t)}_renderFilterNotice(){const{visibleElements:e}=this;if(!("disabled"===this.state||this.visibleFeatureCount>0)&&e.filter&&e.filterNotice)return d("calcite-notice",{class:w.notice,icon:"exclamation-mark-triangle",kind:"info",open:!0,scale:this.scale,width:"full"},d("div",{slot:"message"},this.messages.noMatchingFeatures))}_renderItemCount(e){if(!this.visibleElements.itemCount)return;const{messages:t}=this,i=I(e.total),s=I(e.visibleTotal),o=y(t.selectionCount,{count:i});return!this._hasFilterText&&e.maxVisibleFeatureCountExceeded?d("span",{class:w.itemCount,slot:"content-end",title:o},d("calcite-icon",{icon:"exclamation-mark-triangle",scale:"s",title:t.tooManyFeatures}),`${I(this.maxVisibleFeatureCountPerLayer)}+`):d("span",{class:w.itemCount,slot:"content-end",title:o},s)}_renderItemActions(e){if(!this.visibleElements.itemMenus)return;const{messages:t,messagesCommon:i}=this,s=this._itemWithOpenMenu===e,o=u(e),l=h(e),n=p(e),r=o?t.deselectFeature:l?t.deselectLayer:t.deselectGroup;return[d("calcite-dropdown",{open:s,overlayPositioning:"fixed",scale:this.menuScale,slot:"actions-end",width:"m",onCalciteDropdownClose:()=>this._closeItemMenu(e),onCalciteDropdownOpen:()=>{this._itemWithOpenMenu=e}},d("calcite-action",{appearance:"transparent",icon:"ellipsis",scale:this.scale,slot:"trigger",text:i.menu,textEnabled:!1}),s?d("calcite-dropdown-group",{selectionMode:"none"},d("calcite-dropdown-item",{iconStart:"layer-zoom-to",onCalciteDropdownItemSelect:()=>this.goToItem(e)},t.zoomTo),d("calcite-dropdown-item",{iconStart:"selection-filter",onCalciteDropdownItemSelect:()=>this.selectSingleItem(e)},o?t.onlySelectFeature:t.onlySelectThis),d("calcite-dropdown-item",{iconStart:"selection-x",onCalciteDropdownItemSelect:()=>this.deselectItem(e)},r),this.itemActionConfigs?.map(t=>{const{disabled:i,hidden:s,type:r}=t;if(!("function"==typeof s?s({item:e}):!!s)&&(!r||"feature"===r&&o||"layer"===r&&l||"group"===r&&n))return d("calcite-dropdown-item",{disabled:"function"==typeof i?i({item:e}):!!i,iconStart:t.icon??void 0,onCalciteDropdownItemSelect:()=>t.callback({item:e})},t.label)})):void 0)]}_renderGroupItem(e){const t=e.title||this.messages.untitledLayer;if(0===e.visibleTotal)return;const{displayMode:i}=this;if("layer"===i||"feature"===i)return this._renderListContent(e.items);const{visibleElements:s}=this;return d("calcite-list-item",{bind:this,closable:!!s.itemCloseActions,"data-type":"group",expanded:!0,iconStart:s.itemIcons?e.iconName:void 0,key:e.key,label:t,value:e.title,onCalciteListItemClose:t=>{t.stopPropagation(),this.deselectItem(e)},onCalciteListItemSelect:t=>this._onListItemSelect(e,t)},this._renderItemActions(e),this._renderListContent(e.items))}_renderLayerItem(e){if(0===e.visibleTotal||!e.visible)return;if("feature"===this.displayMode)return this._renderItems(e.featureItems);const{messages:t,visibleElements:i}=this,s=e.title||t.untitledLayer;return d("calcite-list-item",{bind:this,closable:!!i.itemCloseActions,"data-type":"layer",expanded:!0,iconStart:i.itemIcons?e.iconName:void 0,key:e.key,label:s,scale:this.scale,value:e.title,onCalciteListItemClose:t=>{t.stopPropagation(),this.deselectItem(e)},onCalciteListItemSelect:t=>this._onListItemSelect(e,t)},this._renderItemCount(e),this._renderItemActions(e),this._renderItems(e.featureItems),e.maxVisibleFeatureCountExceeded?d("calcite-notice",{class:w.notice,icon:"exclamation-mark-triangle",kind:"info",open:!0,scale:this.scale},d("div",{slot:"message"},t.tooManyFeatures)):void 0)}_renderItems(e){return e.map(e=>this._renderItem(e))}_renderItem(e){if(!e.visible)return;const{hightlightOnHoverEnabled:t,messages:i,visibleElements:s}=this,o=e.title||i.untitledFeature,l=s.itemIcons&&"feature"!==this.displayMode;return d("calcite-list-item",{bind:this,class:l?w.listItemFeatureIcon:w.listItemFeature,closable:!!s.itemCloseActions,"data-item":e,"data-type":"feature",key:e.key,label:o,name:o,onblur:t?()=>this.removeTemporaryHighlight():void 0,onfocus:t?()=>this.addTemporaryHighlight(e):void 0,onpointerenter:t?()=>this.addTemporaryHighlight(e):void 0,onpointerleave:t?()=>this.removeTemporaryHighlight():void 0,scale:this.scale,value:o,onCalciteListItemClose:t=>{t.stopPropagation(),this.deselectItem(e)},onCalciteListItemSelect:t=>this._onListItemSelect(e,t)},this._renderItemIcon(e),this._renderItemActions(e))}_renderItemIcon(e){if(this.visibleElements.itemIcons)return d("div",{class:w.listItemIcon,key:"content-start",slot:"content-start"},d("span",{afterCreate:this._afterItemCreate,afterRemoved:this._afterItemRemoved,"data-has-icon":!1,"data-item":e,key:e.thumbnailKey}))}_getListItem(e){return e?.["data-item"]}_hasIcon(e){return!!e?.["data-has-icon"]}_setHasIcon(e,t){e&&(e["data-has-icon"]=t)}_onListItemSelect(e,t){t.stopPropagation(),this._closeItemMenu(),this.onListItemSelect?.({item:e})}_closeItemMenu(e){e&&e!==this._itemWithOpenMenu||(this._itemWithOpenMenu=null)}};e([o()],_.prototype,"_hasFilterText",null),e([o()],_.prototype,"_itemWithOpenMenu",void 0),e([o()],_.prototype,"_list",void 0),e([o()],_.prototype,"activeLayerItem",null),e([o()],_.prototype,"allLayerItems",null),e([o()],_.prototype,"displayMode",void 0),e([o()],_.prototype,"effectiveCount",null),e([o()],_.prototype,"effectiveSelectionManager",null),e([o()],_.prototype,"filterText",null),e([o()],_.prototype,"hightlightOnHoverEnabled",void 0),e([o()],_.prototype,"icon",null),e([o()],_.prototype,"itemActionConfigs",void 0),e([o()],_.prototype,"isUpdating",null),e([o()],_.prototype,"label",null),e([o()],_.prototype,"layer",null),e([o()],_.prototype,"layerItems",null),e([o()],_.prototype,"layerViewMap",null),e([o()],_.prototype,"maxVisibleFeatureCountExceeded",null),e([o()],_.prototype,"maxVisibleFeatureCountPerLayer",null),e([o()],_.prototype,"menuScale",void 0),e([o(),m("esri/widgets/support/SelectionList/t9n/SelectionList")],_.prototype,"messages",void 0),e([o(),m("esri/t9n/common")],_.prototype,"messagesCommon",void 0),e([o(),m("esri/widgets/Legend/t9n/Legend")],_.prototype,"messagesLegend",void 0),e([o()],_.prototype,"onListItemSelect",void 0),e([o()],_.prototype,"scale",void 0),e([o()],_.prototype,"selectionManager",null),e([o()],_.prototype,"state",null),e([o()],_.prototype,"view",null),e([o()],_.prototype,"viewLayersAndTables",null),e([o()],_.prototype,"viewModel",void 0),e([o({type:g,nonNullable:!0})],_.prototype,"visibleElements",void 0),e([o()],_.prototype,"visibleFeatureCount",null),e([o()],_.prototype,"visibleFeatureItems",null),e([o()],_.prototype,"visibleLayerCount",null),_=e([l("esri.widgets.support.SelectionList")],_);const C=_;export{C as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5740],{26121:(e,t,r)=>{r.d(t,{ci:()=>s,dL:()=>n});var a=r(49186);async function n(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}r(77548);const o=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function s(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new a.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>new a.A("url:unsupported",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter(({name:e})=>!(o.has(e)||t.includes(e)))),a&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}},33359:(e,t,r)=>{r.d(t,{save:()=>E,saveAs:()=>U});var a=r(4576),n=(r(44208),r(49186),r(71530)),o=r(60694),s=r(23154),i=r(77548),l=r(88788),u=r(10407);const c="Feature Service",p="feature-layer-utils",d=`${p}-save`,y=`${p}-save-as`;function m(e){return{isValid:(0,i.W_)(e)&&(!("dynamicDataSource"in e)||!e.dynamicDataSource),errorMessage:"Feature layer should be a layer or table in a map or feature service"}}function f(e,t){const r=(0,l.m)(e,"portal-item");return t?.isTable&&(r.layerContainerType="tables"),r}function w(e){const t=[],r=[];for(const{layer:a,layerJSON:n}of e)h(a)?r.push(n):t.push(n);return{layers:t,tables:r}}function h(e,t){return e.isTable}function b(e){return w([e])}async function v(e,t){return/\/\d+\/?$/.test(e.url)?b(t[0]):async function(e,t){if(e.reverse(),!t)return w(e);const a=await async function(e,t){let a=await e.fetchData("json");if(function(e){return!!(e&&Array.isArray(e.layers)&&Array.isArray(e.tables))}(a))return a;a||={},function(e){e.layers||=[],e.tables||=[]}(a);const{layer:{url:n,customParameters:o,apiKey:i}}=t[0];return await async function(e,t,a){const{url:n,customParameters:o,apiKey:i}=t,{serviceJSON:l,layersJSON:u}=await(0,s.Q)(n,{customParameters:o,apiKey:i}),c=I(e.layers,l.layers,a),p=I(e.tables,l.tables,a);e.layers=c.itemResources,e.tables=p.itemResources;const d=[...c.added,...p.added],y=u?[...u.layers,...u.tables]:[];await async function(e,t,a,n){const o=await async function(e){const t=[];e.forEach(({type:e})=>{switch((0,s.K)(e)){case"CatalogLayer":t.push(Promise.all([r.e(1214),r.e(708),r.e(364),r.e(8628),r.e(2593),r.e(2696)]).then(r.bind(r,79003)).then(e=>e.default));break;case"FeatureLayer":t.push(Promise.all([r.e(1214),r.e(9953),r.e(3029),r.e(9784),r.e(4342)]).then(r.bind(r,29784)).then(e=>e.default));break;case"OrientedImageryLayer":t.push(Promise.all([r.e(1214),r.e(9953),r.e(3029),r.e(9784),r.e(9361)]).then(r.bind(r,9352)).then(e=>e.default))}});const a=await Promise.all(t),n=new Map;return e.forEach(({type:e},t)=>{n.set(e,a[t])}),n}(t),i=t.map(({id:e,type:t})=>new(o.get(t))({url:a,layerId:e,sourceJSON:n.find(({id:t})=>t===e)}));await Promise.allSettled(i.map(e=>e.load())),i.forEach(t=>{const{layerId:r,loaded:a,defaultPopupTemplate:n}=t;if(!a||null==n)return;const o={id:r,popupInfo:n.toJSON()};P(t,"ArcGISFeatureLayer"===t.operationalLayerType?o:{...o,layerType:t.operationalLayerType},e)})}(e,d,n,y)}(a,{url:n??"",customParameters:o,apiKey:i},t.map(e=>e.layer.layerId)),a}(t,e);for(const t of e)P(t.layer,t.layerJSON,a);return function(e,t){const r=[],a=[];for(const{layer:e}of t){const{isTable:t,layerId:n}=e;t?a.push(n):r.push(n)}S(e.layers,r),S(e.tables,a)}(a,e),a}(t,e)}function S(e,t){if(e.length<2)return;const r=[];for(const{id:t}of e)r.push(t);(0,a.aI)(r.sort(g),t.slice().sort(g))&&e.sort((e,r)=>{const a=t.indexOf(e.id),n=t.indexOf(r.id);return a<n?-1:a>n?1:0})}function g(e,t){return e<t?-1:e>t?1:0}function I(e,t,r){const n=(0,a.iv)(e,t,(e,t)=>e.id===t.id);e=e.filter(e=>!n.removed.some(t=>t.id===e.id));const o=n.added;return o.forEach(({id:t})=>{e.push({id:t})}),{itemResources:e,added:o.filter(({id:e})=>!r.includes(e))}}function P(e,t,r){e.isTable?A(r.tables,t):A(r.layers,t)}function A(e,t){const r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}function T(e){if(!("layerType"in e))return!!e.charts?.length;switch(e.layerType){case"OrientedImageryLayer":return!!e.charts?.length;case"SubtypeGroupLayer":return!!e.layers.some(e=>!!e.charts?.length);case"SubtypeGroupTable":return!!e.tables.some(e=>!!e.charts?.length);case"CatalogLayer":return!!e.footprintLayer?.charts?.length}}function O(e,t){let r=0,a=0,n=0,o=0;for(const e of[...t.layers,...t.tables])if(T(e)&&o++,"layerType"in e)switch(e.layerType){case"OrientedImageryLayer":r++;break;case"SubtypeGroupLayer":a++;break;case"SubtypeGroupTable":n++}(0,u.Sm)(e,u.mm.ORIENTED_IMAGERY_LAYER,r>0),(0,u.Sm)(e,u.mm.SUBTYPE_GROUP_LAYER,a>0),(0,u.Sm)(e,u.mm.SUBTYPE_GROUP_TABLE,n>0),(0,u.Sm)(e,u.mm.CHARTS,o>0)}async function L(e,t,r){O(t,r)}async function N(e,t,r){const{url:a,layerId:n,title:s,fullExtent:i,isTable:l}=e,c=(0,o.qg)(a);t.url=("FeatureServer"===c?.serverType?a:`${a}/${n}`)??null,t.title||=s,t.extent=null,l||null==i||(t.extent=await(0,u.sQ)(i)),function(e,t,r){(0,u.OM)(t,u.mm.METADATA),(0,u.Sm)(t,u.mm.MULTI_LAYER,e.length>1),(0,u.Sm)(t,u.mm.SINGLE_LAYER,1===e.length),(0,u.Sm)(t,u.mm.TABLE,r.tables.length>0&&0===r.layers.length),O(t,r)}([e],t,r)}async function E(e,t){return(0,n.UN)({layer:e,itemType:c,validateLayer:m,createJSONContext:t=>f(t,e),createItemData:(e,t)=>v(t,[e]),errorNamePrefix:d,setItemProperties:L},t)}async function U(e,t,r){return(0,n.Uh)({layer:e,itemType:c,validateLayer:m,createJSONContext:t=>f(t,e),createItemData:(e,t)=>Promise.resolve(b(e)),errorNamePrefix:y,newItem:t,setItemProperties:N},r)}},46130:(e,t,r)=>{r.d(t,{v:()=>n});var a=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},71530:(e,t,r)=>{r.d(t,{UN:()=>b,Uh:()=>v});var a=r(49186),n=r(46130),o=r(20655),s=r(80812),i=r(88788),l=r(10407),u=r(26121);async function c(e){const{layer:t,errorNamePrefix:r,validateLayer:n}=e;await t.load(),function(e,t,r){const n=r(e);if(!n.isValid)throw new a.A(`${t}:invalid-parameters`,n.errorMessage,{layer:e})}(t,r,n)}function p(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function d(e){const{item:t,errorNamePrefix:r,layer:n,validateItem:o}=e;if(function(e){const{item:t,itemType:r,additionalItemType:n,errorNamePrefix:o,layer:s}=e,i=[r];if(n&&i.push(n),!i.includes(t.type)){const e=i.map(e=>`'${e}'`).join(", ");throw new a.A(`${o}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:s})}}(e),o){const e=o(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:n})}}function y(e){const{layer:t,errorNamePrefix:r}=e,{portalItem:n}=t;if(!n)throw new a.A(`${r}:portal-item-not-set`,p(t,"requires the portalItem property to be set"));if(!n.loaded)throw new a.A(`${r}:portal-item-not-loaded`,p(t,"cannot be saved to a portal item that does not exist or is inaccessible"));d({...e,item:n})}function m(e){const{newItem:t,itemType:r}=e;let a=s.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=o.A.getDefault(),d({...e,item:a}),a}function f(e){return(0,i.m)(e,"portal-item")}async function w(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,u.ci)(t,{errorName:"layer-write:unsupported"},r),a}function h(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}async function b(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e),y(e);const u=r.portalItem,p=o?o(u):f(u),d=await w(r,p,{...t,supplementalUnsupportedErrors:l}),m=await a({layer:r,layerJSON:d},u);return await(s?.(r,u,m)),h(u),await u.update({data:m}),(0,n.v)(p),await(i?.(u,p)),u}async function v(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e);const u=m(e),p=o?o(u):f(u),d=await w(r,p,{...t,supplementalUnsupportedErrors:l}),y=await a({layer:r,layerJSON:d},u);return await s(r,u,y),h(u),await async function(e,t,r){const a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(u,y,t),r.portalItem=u,(0,n.v)(p),await(i?.(u,p)),u}},76553:(e,t,r)=>{function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},88788:(e,t,r)=>{r.d(t,{m:()=>s,v:()=>o});var a=r(84952),n=r(20655);function o(e,t){return{...i(e,t),readResourcePaths:[]}}function s(e,t,r){const n=(0,a.An)(e.itemUrl);return{...i(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t){return{origin:t,url:(0,a.An)(e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9655],{563:(t,e,r)=>{r.d(e,{QueueProcessor:()=>h});var n=r(97768),s=r(74887),i=r(9775),o=r(32587),a=r(96211),u=r(44794);class l{constructor(t,e){this.item=t,this.controller=e,this.promise=null}}class h{constructor(t){this._schedule=null,this._deferreds=new o.A,this._controllers=new o.A,this._processingItems=new o.A,this._pausedSignal=(0,u.v)(!1),this.concurrency=1,t.concurrency&&(this.concurrency=t.concurrency),this._queue=new i.A(t.peeker),this.process=t.process}destroy(){this.clear(),this._schedule=(0,n.xt)(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&this._processingItems.size<this.concurrency}abort(t){const e=this._controllers.get(t);e&&e.abort()}clear(){this._queue.clear();const t=[];this._controllers.forEach(e=>t.push(e)),this._controllers.clear(),t.forEach(t=>t.abort()),this._processingItems.clear(),this._cancelNext()}forEach(t){this._deferreds.forEach((e,r)=>t(r))}get(t){const e=this._deferreds.get(t);return e?e.promise:void 0}isOngoing(t){return this._processingItems.has(t)}has(t){return this._deferreds.has(t)}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(t,e){const r=this.get(t);if(r)return r;const n=new AbortController;let i=null;e&&(i=(0,s.u7)(e,()=>n.abort()));const o=()=>{a.remove(),null!=i&&i.remove(),this._removeItem(t),this._queue.remove(t),this._scheduleNext()},a=(0,s.NY)(n.signal,()=>{const e=this._processingItems.get(t);e&&e.controller.abort(),o(),u.reject((0,s.NK)())}),u=(0,s.Tw)();return this._deferreds.set(t,u),this._controllers.set(t,n),u.promise.then(o,o),this._queue.push(t),this._scheduleNext(),u.promise}last(){return this._queue.last()}lastPromise(){const t=this.last();return t?this.get(t):null}peek(){return this._queue.peek()}popLast(){const t=this._queue.popLast();return t&&(this._deferreds.get(t)?.reject((0,s.NK)()),this._removeItem(t)),t}reset(){const t=Array.from(this._processingItems.values());this._processingItems.clear();for(const e of t)this._queue.push(e.item),e.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){const t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}_removeItem(t){this._deferreds.delete(t),this._controllers.delete(t),this._processingItems.delete(t)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=(0,a._)(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).resolve(e))}_processError(t,e){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).reject(e))}_canProcessFulfillment(t){return!!this._deferreds.get(t.item)&&this._processingItems.get(t.item)===t}_process(t){if(null==t)return;let e;const r=new AbortController,n=new l(t,r);this._processingItems.set(t,n);try{e=this.process(t,r.signal)}catch(t){this._processError(n,t)}(0,s.$X)(e)?(n.promise=e,e.then(t=>this._processResult(n,t),t=>this._processError(n,t))):this._processResult(n,e)}}},2272:(t,e,r)=>{r.d(e,{Dl:()=>l,gf:()=>c,jV:()=>u,lF:()=>h});var n=r(92602),s=r(70333),i=r(4718),o=r(84952),a=r(926);function u(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function l(t){return"string"==typeof t?(0,o.An)(t):(0,i.o8)(t)}function h(t,e,r){const n={};for(const s in t){if("declaredClass"===s)continue;const i=t[s];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))n[s]=i.map(t=>h(t));else if("object"==typeof i)if(i.toJSON){const t=i.toJSON(r?.[s]);n[s]=e?t:JSON.stringify(t)}else n[s]=e?i:JSON.stringify(i);else n[s]=i}return n}async function c(t,e,i){const o=function(t,e){return t?e&&(0,a.Qc)(t)?e:(0,a.CG)(t)??s.id?.findCredential(t)?.token:null}(t,e);if(o)return o;!s.id&&n.A.request.useIdentity&&await Promise.all([r.e(7330),r.e(4813),r.e(3747)]).then(r.bind(r,73747));const u=await s.id.getCredential(t,i);return u?.token}},5162:(t,e,r)=>{r.d(e,{Im:()=>u,KN:()=>o});var n=r(70300),s=r(8446);class i{constructor(){this.modified=[],this.removed=[]}modify(t){this.modified.push(t)}remove(t){this.removed.push(t)}get isEmpty(){return 0===this.modified.length&&0===this.removed.length}}class o extends n.K{constructor(t){super(),this._reader=t,this.chunkId="override",this.normalizedChunkId="override"}static fromFeatures(t,e){const r=s.K.fromOptimizedFeatures(t,e);return new o(r)}get reader(){return this._reader}get queryInfo(){return{}}get first(){return!1}get end(){return!1}get isTiled(){return!1}getTileReader(t){if(!this._reader.getSize())return null;const e=this.queryFeaturesInBounds(t.bounds);return e.setTransformForDisplay(t.transform),e}}class a{constructor(t,e){this.inner=t,this.isWeak=e,this.lastWeak=null}get isStrong(){return!this.isWeak}}class u{constructor(){this._overrides=new Map,this._update=new i,this._lastCleanup=0}hasOverride(t){return this._overrides.has(t)}onChunkInsert(t){if(this._overrides.size){const e=t.reader.getCursor();for(;e.next();){const t=e.getObjectId(),r=this._overrides.get(t);if(r?.lastWeak&&(r.lastWeak=null),r?.isWeak){const t=e.readOptimizedFeatureWorldSpace();r.inner=t,this._update.modify(t),this.invalidate()}}}t.registerOverrides(this)}apply(t,e){const{updateWeak:r,removeWeak:n,update:s,remove:i,release:o}=t.commands;this.invalidate();for(const t of r){const e=new a(t,!0),r=this._overrides.get(t.objectId);r?.isStrong?r.lastWeak=e:(this._overrides.set(t.objectId,e),this._update.modify(t))}for(const t of s){const e=new a(t,!1),r=this._overrides.get(t.objectId);e.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(t.objectId,e),this._update.modify(t)}for(const t of n){const e=new a(null,!0),r=this._overrides.get(t);r?.isStrong?r.lastWeak=e:(this._overrides.set(t,e),this._update.remove(t))}for(const t of i){const e=new a(null,!1),r=this._overrides.get(t);e.lastWeak=r?.isWeak?r:r?.lastWeak??null,this._overrides.set(t,e),this._update.remove(t)}if(o.length){const t=new Set;for(const e of o){const r=this._overrides.get(e);r?.lastWeak?(this._overrides.set(e,r.lastWeak),null==r.lastWeak.inner?this._update.remove(e):this._update.modify(r.lastWeak.inner)):r&&!r.isWeak&&(this._overrides.delete(e),t.add(e))}e.forEachUnsafe(e=>{const r=e.getObjectId();t.has(r)&&(this._update.modify(e.readOptimizedFeatureWorldSpace()),t.delete(r))});for(const e of t.values())this._update.remove(e)}}clearWeakOverrides(){for(const[t,e]of this._overrides.entries())e.isWeak&&this._overrides.delete(t);this.invalidate()}cleanup(t){if(this._overrides.size<1e4)return;const e=performance.now();if(e-this._lastCleanup<1e3)return;this._lastCleanup=e;const r=this._getWeakDeletions();if(!(r.size<1e4)){for(const e of t){const t=e.reader.withoutOverrides().getCursor();for(;t.next();){const e=t.getObjectId();r.delete(e)}}for(const t of r)this._overrides.delete(t);r.size&&this.invalidate()}}takeOverrideUpdate(){const t=this._update;return t.isEmpty?null:(this._update=new i,t)}asChunk(t){if(!this._chunk){const e=[];for(const t of this._overrides.values())null!=t.inner&&e.push(t.inner);this._chunk=o.fromFeatures(e,t)}return this._chunk}invalidate(){this._chunk=null}putWeakObjectIdsFromGlobalIds(t,e,r){for(const[n,s]of this._overrides.entries()){if(s.isWeak&&null!=s.inner){const i=s.inner.attributes[r];i&&e.has(i)&&!t.has(i)&&t.set(i,n);continue}if(null!=s.lastWeak&&null!=s.lastWeak.inner){const i=s.lastWeak.inner.attributes[r];i&&e.has(i)&&!t.has(i)&&t.set(i,n)}}}_getWeakDeletions(){const t=new Set;for(const[e,r]of this._overrides.entries())r.isWeak&&null==r.inner&&t.add(e);return t}}},8446:(t,e,r)=>{r.d(e,{K:()=>a});var n=r(90708),s=r(43334),i=r(95466),o=r(99996);class a extends o.Y{static fromFeatures(t,e){const{geometryType:r}=e,s=(0,n.Di)([],t,r,!1,!1,e.featureIdInfo);for(let e=0;e<s.length;e++)s[e].displayId=t[e].displayId;return a.fromOptimizedFeatures(s,e)}static fromFeatureSet(t,e){const r=(0,n.q3)(t,e.featureIdInfo);return a.fromOptimizedFeatureSet(r,e)}static fromOptimizedFeatureSet(t,e){const r=a.fromOptimizedFeatures(t.features,e);return r._exceededTransferLimit=t.exceededTransferLimit,r._transform=t.transform,r._fieldsIndex=new i.A(t.fields),r}static fromOptimizedFeatures(t,e,r){const n=new a(t,e);return n._fieldsIndex=e.fieldsIndex,n._transform=r,n}static empty(t){return new a([],t)}constructor(t,e){super(e),this._exceededTransferLimit=!1,this._featureIndex=-1,this._fieldsIndex=null,this._geometryType=e.geometryType,this._features=t}get fields(){return this._fieldsIndex}get geometryType(){return this._geometryType}get hasFeatures(){return!!this._features.length}get hasNext(){return this._featureIndex+1<this._features.length}get exceededTransferLimit(){return this._exceededTransferLimit}get hasZ(){return!1}get hasM(){return!1}get _current(){return this._features[this._featureIndex]}get usedMemory(){return this._current.usedMemory}getSize(){return this._features.length}getCursor(){return this.copy()}getInTransform(){return this._transform}getAttributeHash(){let t="";for(const e in this._current.attributes)t+=this._current.attributes[e];return t}getIndex(){return this._featureIndex}setIndex(t){this._featureIndex=t}getObjectId(){return this._current?.objectId}getDisplayId(){return this._current.displayId}setDisplayId(t){this._current.displayId=t}copy(){const t=new a(this._features,this.metadata);return this.copyInto(t),t}next(){for(;++this._featureIndex<this._features.length&&!this._getExists(););return this._featureIndex<this._features.length}readGeometryArea(){return(0,s.N3)(this._current)?(0,n.Rk)(this._current.geometry,2):0}_readX(){return(0,s.N3)(this._current)?this._current.geometry.coords[0]:0}_readY(){return(0,s.N3)(this._current)?this._current.geometry.coords[1]:0}_readGeometry(){return(0,s.N3)(this._current)?this._current.geometry??null:null}_readServerCentroid(){return this._current.centroid}_readAttribute(t,e){if(!this._fieldsIndex){const e=this._current.attributes[t];if(void 0!==e)return e;const r=t.toLowerCase();for(const t in this._current.attributes)if(t.toLowerCase()===r)return this._current.attributes[t];return}const r=this._fieldsIndex.get(t);if(!r)return;const n=this._current.attributes[r.name];return null==n?n:e&&this.fields.isDateField(t)?new Date(n):n}_readAttributes(){return this._current.attributes}copyInto(t){super.copyInto(t),t._featureIndex=this._featureIndex,t._transform=this._transform,t._fieldsIndex=this._fieldsIndex}}},9012:(t,e,r)=>{function n(t,{timeZone:e,timeExtent:r}){return{$view:{scale:t,timeZone:e,timeProperties:{currentStart:r?.start,currentEnd:r?.end}}}}r.d(e,{N:()=>n})},9762:(t,e,r)=>{r.r(e),r.d(e,{projectBuffer:()=>s});var n=r(37539);function s(t,e,r,s,i,o,a=Math.floor(t.length/3)){const u=(0,n.jd)(e,i);if(null==u)return!1;if(u===n.pO){if(t===s&&r===o)return!0;const e=r+3*a;for(let n=r,i=o;n<e;n++,i++)s[i]=t[n];return!0}const l=r+3*a;for(let e=r,n=o;e<l;e+=3,n+=3)u(t,e,s,n);return!0}},9775:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(62788),s=r(95488);class i{constructor(t=t=>t.values().next().value){this._peeker=t,this._observable=new s.I,this._items=new Set}get length(){return(0,n.gc)(this._observable),this._items.size}clear(){0!==this.length&&(this._items.clear(),this._observable.notify())}last(){if(0===this.length)return;let t;for(t of this._items);return t}peek(){if(0!==this.length)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return(0,n.gc)(this._observable),this._items.has(t)}pop(){if(0===this.length)return;const t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(0===this.length)return;const t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){const e=this.length;return this._items.forEach(e=>{t(e)||this._items.delete(e)}),e!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){(0,n.gc)(this._observable),yield*this._items}}},16630:(t,e,r)=>{r.d(e,{s:()=>u}),r(44208);var n=r(69397),s=r(92722),i=r(57733),o=r(99996);let a;class u extends o.Y{constructor(t,e,r,s,i=new Uint32Array(r.size())){super(t),this._fields=e,this._inner=r,this._chunkId=s,this._displayIds=i,this._index=-1,this.usedMemory=n.qK,this._size=this._inner.size(),t.featureIdInfo.type,this._chunkId>65535&&console.error("Exceeded max allowed parquet reader size")}destroy(){super.destroy(),this._inner.free()}get fields(){return this._fields}get geometryType(){return this.metadata.geometryType}get hasFeatures(){return!0}get hasNext(){throw new Error("Method not implemented.")}get exceededTransferLimit(){return!1}get hasZ(){return!1}get hasM(){return!1}getInTransform(){return null}getSize(){return this._size}getCursor(){return this.copy()}getAttributeHash(){let t="";for(const e of this.fields.fields)t+=this._readAttribute(e.name,!1)+".";return t}getObjectId(){return this._inner.rowId(this._index)}getDisplayId(){return this._displayIds[this._index]}setDisplayId(t){this._displayIds[this._index]=t}setIndex(t){this._index=t}getBoundsXMin(){return this._inner.boundsXMin(this._index)}getBoundsYMin(){return this._inner.boundsYMin(this._index)}getBoundsXMax(){return this._inner.boundsXMax(this._index)}getBoundsYMax(){return this._inner.boundsYMax(this._index)}setBoundsXMin(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMin(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsXMax(t){throw new Error("InternalError: Setting bounds is unsupported")}setBoundsYMax(t){throw new Error("InternalError: Setting bounds is unsupported")}getIndex(){return this._index}next(){for(;++this._index<this._size&&!this._getExists(););return this._index<this._size}readGeometryArea(){return this.readGeometryForDisplay()?.area()??0}copy(){const t=new u(this.metadata,this._fields,this._inner,this._chunkId,this._displayIds);return this.copyInto(t),t}copyInto(t){super.copyInto(t),t._index=this._index}readGeometryForDisplayTransformed(t){const[e,r]=t.translate,[n,o]=t.scale;return a||(a=i.QuantizedGeometryBuffer.new()),this._inner.transformGeometry(a,e,r,n,o,this._index)?new s.A(a.readLengthsUnsafe(),a.readCoordsUnsafe()):null}_readGeometry(t){const e=this._inner.readCoords(this._index),r=this._inner.readLengths(this._index);return e&&r?new s.A(r,e):null}_readX(){return this._inner.readX(this._index)}_readY(){return this._inner.readY(this._index)}_readServerCentroid(){return null}_readAttribute(t,e){const r=this.fields.get(t);if(!r)return;if(null==r.attributeId)return this.getObjectId();const n=this._inner.readAttribute(this._index,r.attributeId);if(null==n)return n;const s=this.fields.isDateField(r.name);return e?null==n?n:s?new Date(n):n:n}_readAttributes(){const t={};for(const e of this._fields.fields)null!=e.attributeId&&(this._inner.isEmpty(e.attributeId)||(t[e.name]=this._readAttribute(e.name,!1)));return t.__OBJECTID=this.getObjectId(),t}}},28923:(t,e,r)=>{r.d(e,{j:()=>s});var n=r(70300);class s extends n.K{constructor(t,e,r,n){super(),this._reader=t,this._queryJSON=e,this._page=r,this._end=n,this.chunkId=`${this._page}${this.end?"e":""}`,this.normalizedChunkId=this.chunkId}get reader(){return this._reader}get first(){return 0===this._page}get end(){return this._end}get queryInfo(){return{type:"snapshot",chunkId:this.chunkId,queryJSON:this._queryJSON,page:this._page,size:this.size(),end:this.end}}get isTiled(){return!1}getTileReader(t){const e=this.queryFeaturesInBounds(t.bounds);return e.setTransformForDisplay(t.transform),e}}},30661:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(43334),s=r(8446);class i{static{this.Shared=new i}getObjectId(t){return t.getObjectId()}getAttributes(t){return t.readAttributes()}getAttribute(t,e){return t.readAttribute(e)}getAttributeAsTimestamp(t,e){return t.readAttributeAsTimestamp(e)}cloneWithGeometry(t,e){const r=t.readAttributes(),i=new n.Om(e,r,null,t.getObjectId(),t.getDisplayId()),o=s.K.fromOptimizedFeatures([i],t.metadata);return o.setIndex(0),o}getGeometry(t){return t.readGeometryWorldSpace()}getCentroid(t,e){return t.readCentroidForDisplay()}}},32011:(t,e,r)=>{r.d(e,{d:()=>l});var n=r(19419),s=r(537),i=r(12359),o=r(95108),a=r(12176);const u=222045e-19;function l(t){if(0===t.totalSize)return null;const e=(0,s.z8)(t);if(!e)return null;const r=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*u;let o=0,a=0;t.reset();for(let e=0;t.nextPath();e++){const r=t.getCurrentRingArea();r>a&&(a=r,o=e)}if(t.seekPath(o),0===t.pathSize)return null;t.seekPathStart();const l=(0,s.B$)(t);if(Math.abs(a)<=2*r*r)return[(l[0]+l[2])/2,(l[1]+l[3])/2];t.seekPathStart();const _=(0,i.w2)(t,(0,n.vt)());if(null===_)return null;if(t.totalPoints<4)return _;const f=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],p=[NaN,NaN,NaN,NaN],g=[NaN,NaN,NaN,NaN];let m=!1,y=c(_,t,!0);0===y.distance&&(m=!0,f[0][0]=_[0],f[0][1]=_[1],y=c(_,t,!1)),p[0]=y.distance,g[0]=0;const b=[NaN,NaN];let v=!1,M=.25,T=-1,F=NaN;do{if(F=NaN,f[1]=d(t,w(l[0],l[2],M),0,e),isNaN(f[1][0])||isNaN(f[1][1])||(y=c(f[1],t,!1),F=y.distance),!isNaN(F)&&F>r&&h(f[1],t))v=!0,p[1]=F,g[1]=x(f[1],_);else if(!isNaN(F)&&F>T&&(T=F,b[0]=f[1][0],b[1]=f[1][1]),M-=.01,M<.1){if(!(T>=0))break;v=!0,p[1]=T,f[1][0]=b[0],f[1][1]=b[1],g[1]=x(f[1],_)}}while(!v);v=!1,M=.5,T=-1;let S=.01,k=1;do{if(F=NaN,f[2]=d(t,w(l[0],l[2],M),0,e),isNaN(f[2][0])||isNaN(f[2][1])||(y=c(f[2],t,!1),F=y.distance),!isNaN(F)&&F>r&&h(f[2],t))v=!0,p[2]=F,g[2]=x(f[2],_);else if(!isNaN(F)&&F>T)T=F,b[0]=f[2][0],b[1]=f[2][1];else if(F>T&&(T=F,b[0]=f[2][0],b[1]=f[2][1]),M=.5+S*k,S+=.01,k*=-1,M<.3||M>.7){if(!(T>=0))break;v=!0,p[2]=T,f[2][0]=b[0],f[2][1]=b[1],g[2]=x(f[2],_)}}while(!v);v=!1,M=.75,T=-1;do{if(F=NaN,f[3]=d(t,w(l[0],l[2],M),0,e),isNaN(f[3][0])||isNaN(f[3][1])||(y=c(f[3],t,!1),F=y.distance),!isNaN(F)&&F>r&&h(f[3],t))v=!0,p[3]=F,g[3]=x(f[3],_);else if(F>T&&(T=F,b[0]=f[3][0],b[1]=f[3][1]),M+=.01,M>.9){if(!(T>=0))break;v=!0,p[3]=T,f[3][0]=b[0],f[3][1]=b[1],g[3]=x(f[3],_)}}while(!v);const A=[0,1,2,3],P=m?0:1;let O;for(let t=P;t<4;t++)for(let t=P;t<3;t++){const e=g[t],r=g[t+1];I(e,r)>0&&(O=A[t],A[t]=A[t+1],A[t+1]=O,g[t]=r,g[t+1]=e)}let z=P,C=0,N=0;for(let t=P;t<4;t++){switch(t){case 0:N=2*p[A[t]];break;case 1:N=1.66666666*p[A[t]];break;case 2:N=1.33333333*p[A[t]];break;case 3:N=p[A[t]]}N>C&&(C=N,z=A[t])}return f[z]}function h(t,e){let r,n,s,i,o=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(r=e.x,n=e.y;e.nextPoint();r=s,n=i)s=e.x,i=e.y,n>t[1]!=i>t[1]&&((s-r)*(t[1]-n)-(i-n)*(t[0]-r)>0?o++:o--);return 0!==o}function c(t,e,r){if(r&&h(t,e))return{coord:t,distance:0};let n=1/0,s=0,i=0,a=[0,0],u=[0,0];const l=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(a[0]=e.x,a[1]=e.y;e.nextPoint();a=u){u=[e.x,e.y],(0,o.gR)(l,t,a,u);const r=x(t,l);r<n&&(n=r,s=l[0],i=l[1])}return{coord:[s,i],distance:Math.sqrt(n)}}function d(t,e,r,s){const i=[e,0];let o=1/0,u=1/0,l=!1,h=!1;const c=[[e,s[1]-1],[e,s[3]+1]],d=[0,0],f=[0,0],p=[0,0],g=[[0,0],[0,0]],m=(0,n.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(g[0][0]=t.x,g[0][1]=t.y;t.nextPoint();g[0][0]=g[1][0],g[0][1]=g[1][1]){if(g[1][0]=t.x,g[1][1]=t.y,null===_(m,g))continue;if(f[0]=c[0][0],f[1]=c[0][1],p[0]=c[1][0],p[1]=c[1][1],0===y(m,f,p))continue;if(!(0,a.Ql)(c[0],c[1],g[0],g[1],d))continue;const e=d[1];o>u?e<o&&(o=e,l=!0):e<u&&(u=e,h=!0)}return l&&h?i[1]=(o+u)/2:i[0]=i[1]=NaN,i}function _(t,e){if(e.length<2)return null;t||(t=(0,n.vt)());const[r,s]=e[0],[i,o]=e[1];return t[0]=Math.min(r,i),t[1]=Math.min(s,o),t[2]=Math.max(r,i),t[3]=Math.max(s,o),t}const f=1,p=4,g=3,m=12;function y(t,e,r){let n=b(e,t),s=b(r,t);const i=t[0],o=t[1],a=t[2],u=t[3];if(n&s)return 0;if(!(n|s))return 4;const l=(n?1:0)|(s?2:0);do{const l=r[0]-e[0],h=r[1]-e[1];if(l>h)n&g?(n&f?(e[1]+=h*(i-e[0])/l,e[0]=i):(e[1]+=h*(a-e[0])/l,e[0]=a),n=b(e,t)):s&g?(s&f?(r[1]+=h*(i-r[0])/l,r[0]=i):(r[1]+=h*(a-r[0])/l,r[0]=a),s=b(r,t)):n?(n&p?(e[0]+=l*(o-e[1])/h,e[1]=o):(e[0]+=l*(u-e[1])/h,e[1]=u),n=b(e,t)):(s&p?(r[0]+=l*(o-r[1])/h,r[1]=o):(r[0]+=l*(u-r[1])/h,r[1]=u),s=b(r,t));else if(n&m?(n&p?(e[0]+=l*(o-e[1])/h,e[1]=o):(e[0]+=l*(u-e[1])/h,e[1]=u),n=b(e,t)):s&m?(s&p?(r[0]+=l*(o-r[1])/h,r[1]=o):(r[0]+=l*(u-r[1])/h,r[1]=u),s=b(r,t)):n?(n&f?(e[1]+=h*(i-e[0])/l,e[0]=i):(e[1]+=h*(a-e[0])/l,e[0]=a),n=b(e,t)):(s&f?(r[1]+=h*(i-r[0])/l,r[0]=i):(r[1]+=h*(a-r[0])/l,r[0]=a),s=b(r,t)),n&s)return 0}while(n|s);return l}function b(t,e){return(t[0]<e[0]?1:0)|(t[0]>e[2]?1:0)<<1|(t[1]<e[1]?1:0)<<2|(t[1]>e[3]?1:0)<<3}function w(t,e,r){return t+(e-t)*r}function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function I(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;const r=isNaN(t),n=isNaN(e);return r<n?-1:r>n?1:0}},32587:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(62788),s=r(95488);class i{constructor(t){this._observable=new s.I,this._map=new Map(t)}get size(){return(0,n.gc)(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(t){const e=this._map.delete(t);return e&&this._observable.notify(),e}entries(){return(0,n.gc)(this._observable),this._map.entries()}forEach(t,e){(0,n.gc)(this._observable),this._map.forEach((r,n)=>t.call(e,r,n,this),e)}get(t){return(0,n.gc)(this._observable),this._map.get(t)}has(t){return(0,n.gc)(this._observable),this._map.has(t)}keys(){return(0,n.gc)(this._observable),this._map.keys()}set(t,e){return this._map.set(t,e),this._observable.notify(),this}values(){return(0,n.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,n.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}},35258:(t,e,r)=>{r.d(e,{i:()=>i});var n=r(16930),s=r(95466);class i{static minimal(t,e,r=[]){return new i({geometryType:t,fieldsIndex:new s.A(r).toJSON(),featureIdInfo:{type:"object-id",fieldName:e},subtypes:null,subtypeField:null,types:null,globalIdField:null,spatialReference:null,outSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:null,typeIdField:null})}static createFeature(t){return new i(t)}constructor(t){let e;this._options=t,this._fieldsIndex=s.A.fromJSON(t.fieldsIndex),t.spatialReference&&(this._spatialReference=n.A.fromJSON(t.spatialReference)),t.outSpatialReference&&(this._outSpatialReference=n.A.fromJSON(t.outSpatialReference)),"object-id"===t.featureIdInfo.type&&(e=t.featureIdInfo.fieldName),this._arcadeSchema={fields:this.fieldsIndex.fields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,objectIdField:e,globalIdField:this._options.globalIdField,spatialReference:this._spatialReference,timeInfo:this._options.timeInfo,typeIdField:this._options.typeIdField??void 0,types:this._options.types??void 0,subtypeField:this._options.subtypeField,subtypes:this._options.subtypes??void 0,datesInUnknownTimezone:this._options.timeReferenceUnknownClient??void 0,dateFieldsTimeZone:this._options.dateFieldsTimeZone??void 0}}get fieldsIndex(){return this._fieldsIndex}get geometryType(){return"esriGeometryMultiPatch"===this._options.geometryType?"esriGeometryPolygon":this._options.geometryType}get serviceGeometryType(){return this._options.geometryType}get subtypeField(){return this._options.subtypeField}get timeInfo(){return this._options.timeInfo}get featureIdInfo(){return this._options.featureIdInfo}get globalIdField(){return this._options.globalIdField}get arcadeSchema(){return this._arcadeSchema}get spatialReference(){return this._spatialReference}get outSpatialReference(){return this._outSpatialReference}get timeReferenceUnknownClient(){return this._options.timeReferenceUnknownClient}weakCloneWithAdditionalFields(t){return new i({fieldsIndex:{fields:[...this._fieldsIndex.fields,...t],timeZoneByFieldName:null},geometryType:this.geometryType,globalIdField:this.globalIdField,featureIdInfo:this.featureIdInfo,spatialReference:this.spatialReference,outSpatialReference:this.outSpatialReference,subtypeField:this.subtypeField,subtypes:this._options.subtypes,timeInfo:this.timeInfo,timeReferenceUnknownClient:this.timeReferenceUnknownClient,dateFieldsTimeZone:this._options.dateFieldsTimeZone,typeIdField:this._options.typeIdField,types:this._options.types})}}},36708:(t,e,r)=>{r.d(e,{C_:()=>d,OH:()=>p,Vh:()=>g,on:()=>c,pc:()=>m,wB:()=>u,z7:()=>l});var n=r(37955),s=r(36563),i=r(97768),o=r(74887),a=r(14012);function u(t,e,r={}){return h(t,e,r,_)}function l(t,e,r={}){return h(t,e,r,f)}function h(t,e,r={},n){let s=null;const o=r.once?(t,r)=>{n(t)&&((0,i.xt)(s),e(t,r))}:(t,r)=>{n(t)&&e(t,r)};if(s=(0,a.Cn)(t,o,r.sync,r.equals),r.initial){const e=t();o(e,e)}return s}function c(t,e,r,o={}){let a=null,l=null,h=null;function c(){a&&l&&(l.remove(),o.onListenerRemove?.(a),a=null,l=null)}function d(t){o.once&&o.once&&(0,i.xt)(h),r(t)}const _=u(t,(t,r)=>{c(),(0,n.wb)(t)&&(a=t,l=(0,n.on)(t,e,d),o.onListenerAdd?.(t))},{sync:o.sync,initial:!0});return h=(0,s.hA)(()=>{_.remove(),c()}),h}function d(t,e){return function(t,e,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());const n=t();if(e?.(n))return Promise.resolve(n);let a=null;function u(){a=(0,i.xt)(a)}return new Promise((n,i)=>{a=(0,s.vE)([(0,o.u7)(r,()=>{u(),i((0,o.NK)())}),h(t,t=>{u(),n(t)},{sync:!1,once:!0},e??_)])})}(t,f,e)}function _(t){return!0}function f(t){return!!t}r(80559);const p={sync:!0},g={initial:!0},m={sync:!0,initial:!0}},36745:(t,e,r)=>{r.d(e,{z:()=>a});var n=r(4718),s=r(51118),i=r(65864),o=r(92722);class a{static fromOptimized(t,e,r=!1,n=!1,s=1){return(new u).initialize(t,e,r,n,s)}static fromJSON(t,e=!1,r=!1){const[n,s]=h(t);return(new c).initialize(n,s,e,r,1)}static fromOptimizedCIM(t,e,r=!1,n=!1,s=1){return(new d).initialize(t,e,r,n,s)}static fromJSONCIM(t,e=!1,r=!1,n=1){const[s,i]=h(t);return(new _).initialize(s,i,e,r,n)}static fromFeatureSetReader(t){const e=t.readGeometryForDisplay(),r=t.geometryType;return e&&r?this.fromOptimized(e,r):null}static fromFeatureSetReaderCIM(t){const e=t.readGeometryForDisplay(),r=t.geometryType;return e&&r?this.fromOptimizedCIM(e,r):null}static createEmptyOptimized(t,e=!1,r=!1,n=1){return(new u).initialize(new o.A,t,e,r,n)}static createEmptyJSON(t,e=!1,r=!1){return(new c).initialize([],t,e,r,1)}static createEmptyOptimizedCIM(t,e=!1,r=!1,n=1){return(new d).initialize(new o.A,t,e,r,n)}static createEmptyJSONCIM(t,e=!1,r=!1,n=1){return(new _).initialize([],t,e,r,n)}asJSON(){const t=(0,s.x)(this);return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat()}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1]}:"esriGeometryPolygon"===this.geometryType?{rings:t}:{paths:t}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,r=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;const n=t,s=e;for(;this.nextPoint();)r+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return r+=(t-n)*(e+s),-.5*r}invertY(){this.yFactor*=-1}}class u extends a{constructor(){super(...arguments),this._end=-1}initialize(t,e,r,n,s){return this.hasZ=r,this.hasM=n,this.geometryType=e,this._stride=2+Number(r)+Number(n),this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=s,this}reset(){this.initialize(this._geometry,this.geometryType,this.hasZ,this.hasM,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){const e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){const t=this._end,e=this._geometry.coords,r=this._pathOffset;return(new u).initialize(new o.A([this.pathSize],e.slice(r,t)),this.geometryType,this.hasZ,this.hasM,this.yFactor)}pathLength(){const t=this._end,e=this._stride,r=this._geometry.coords;let n=0;for(let s=this._pathOffset+e;s<t;s+=e){const t=r[s-e],i=r[s-e+1],o=r[s]-t,a=r[s+1]-i;n+=Math.sqrt(o*o+a*a)}return n}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(const e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){const e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){const t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){const t=this._geometry.coords,e=this._pathOffset,r=this._end-this._stride;for(let n=0;n<this._stride;n++)if(t[e+n]!==t[r+n])return!1;return!0}clone(){return(new u).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){const{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){const t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(t){const e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function h(t){return(0,i.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,i.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,i.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,i.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,i.fT)(t)?[[[l(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends a{initialize(t,e,r,n,s){return this._paths=t,this.geometryType=e,this.hasZ=r,this.hasM=n,this._pathIndex=this._pointIndex=-1,this.yFactor=s,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){const t=this._currentPath.length,e=this._currentPath;let r=0;for(let n=1;n<t;n++){const t=e[n-1],s=e[n],i=t[0],o=t[1],a=s[0]-i,u=s[1]-o;r+=Math.sqrt(a*a+u*u)}return r}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){const e=(0,s.x)(t);for(const t of e)this.pushPath(t)}asOptimized(){const t=new o.A;if("esriGeometryPoint"===this.geometryType)t.coords.push(...this._paths[0][0]),t.lengths.length=0;else for(const e of this._paths){for(const r of e)t.coords.push(r[0]),t.coords.push(r[1]*this.yFactor),this.hasZ&&t.coords.push(r[2]),this.hasM&&t.coords.push(r[this._mIndex]);t.lengths.push(e.length)}return t}isClosed(){const t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}clone(){return(new c).initialize((0,n.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class d extends u{initialize(t,e,r,n,s){return super.initialize(t,e,r,n,s),this._controlPoints||(this._controlPoints=this._controlPoints=new Array(this.totalSize).fill(void 0).map(t=>new Set)),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){const t=(new d).initialize(this._geometry.clone(),this.geometryType,this.hasZ,this.hasM,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class _ extends c{initialize(t,e,r,n,s){return super.initialize(t,e,r,n,s)}clone(){return(new _).initialize((0,n.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},37539:(t,e,r)=>{r.d(e,{pO:()=>p,jd:()=>d,Tp:()=>_,w5:()=>c});var n=r(34727),s=r(83047),i=r(73941),o=r(79258);Math.PI;const a=o.$O.radius,u=o.$O.eccentricitySquared,l={a1:a*u,a2:a*u*a*u,a3:a*u*u/2,a4:a*u*a*u*2.5,a5:a*u+a*u*u/2,a6:1-u};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var h=r(21325);const c={2:{5:p,7:null,9:null,10:p,1:v,6:null,8:null,0:null,3:m,11:y,2:p,4:k},5:{5:p,7:null,9:null,10:p,1:v,6:null,8:null,0:null,3:m,11:y,2:p,4:k},7:{5:null,7:p,9:null,10:p,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:p,10:p,1:null,6:null,8:x,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,e,r,n){const s=t[e]/N,i=C-2*Math.atan(Math.exp(-t[e+1]/N)),o=N+t[e+2],a=Math.cos(i)*o;r[n]=Math.cos(s)*a,r[n+1]=Math.sin(s)*a,r[n+2]=Math.sin(i)*o},6:null,8:null,0:null,3:p,11:function(t,e,r,n){g(t,e,r,n),y(r,n,r,n)},2:g,4:function(t,e,r,n){g(t,e,r,n),k(r,n,r,n)}},4:{5:A,7:null,9:null,10:A,1:function(t,e,r,n){A(t,e,r,n),v(r,n,r,n)},6:null,8:null,0:null,3:function(t,e,r,n){A(t,e,r,n),m(r,n,r,n)},11:function(t,e,r,n){A(t,e,r,n),y(r,n,r,n)},2:A,4:p},1:{5:S,7:null,9:null,10:S,1:p,6:null,8:null,0:null,3:function(t,e,r,n){S(t,e,r,n),m(r,n,r,n)},11:function(t,e,r,n){S(t,e,r,n),y(r,n,r,n)},2:S,4:function(t,e,r,n){S(t,e,r,n),k(r,n,r,n)}},6:{5:null,7:F,9:null,10:F,1:null,6:p,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:p,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:p,3:null,11:null,2:null,4:null},10:{5:p,7:p,9:p,10:p,1:v,6:I,8:x,0:null,3:m,11:y,2:p,4:k},11:{5:b,7:null,9:null,10:b,1:function(t,e,r,n){b(t,e,r,n),v(r,n,r,n)},6:null,8:null,0:null,3:function(t,e,r,n){b(t,e,r,n),m(r,n,r,n)},11:p,2:b,4:function(t,e,r,n){b(t,e,r,n),k(r,n,r,n)}}};function d(t,e){return _(t,e)?.projector}function _(t,e){if(null==t||null==e)return null;if(P.source.spatialReference===t&&P.dest.spatialReference===e)return P;const r=f(t,P.source),n=f(e,P.dest);return 0===r&&0===n?(0,h.aI)(t,e)?P.projector=p:P.projector=null:P.projector=c[r][n],P}function f(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,s.GA)(t,1)),(0,i.jA)(t)?e.spatialReferenceId=1:(0,h.oT)(t)?e.spatialReferenceId=2:(0,h.K8)(t)?e.spatialReferenceId=3:(0,h.r1)(t)?e.spatialReferenceId=11:t.wkt===i.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===i.FY.wkt?e.spatialReferenceId=6:t.wkt===i.LJ.wkt?e.spatialReferenceId=8:(0,h.q8)(t)?e.spatialReferenceId=7:(0,h.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function p(t,e,r,n){t!==r&&(r[n++]=t[e++],r[n++]=t[e++],r[n]=t[e])}function g(t,e,r,n){r[n]=z*(t[e]/N),r[n+1]=z*(C-2*Math.atan(Math.exp(-t[e+1]/N))),r[n+2]=t[e+2]}function m(t,e,r,s){!function(t,e,r,s,i){const o=.4999999*Math.PI,a=(0,n.qE)(O*t[e+1],-o,o),u=Math.sin(a);r[s++]=O*t[e]*i.radius,r[s++]=i.halfSemiMajorAxis*Math.log((1+u)/(1-u)),r[s]=t[e+2]}(t,e,r,s,o.$O)}function y(t,e,r,n){r[n]=t[e]*R,r[n+1]=t[e+1]*R,r[n+2]=t[e+2]}function b(t,e,r,n){r[n]=t[e]*G,r[n+1]=t[e+1]*G,r[n+2]=t[e+2]}function w(t,e,r,n,s){const i=s+t[e+2],o=O*t[e+1],a=O*t[e],u=Math.cos(o)*i;r[n]=Math.cos(a)*u,r[n+1]=Math.sin(a)*u,r[n+2]=Math.sin(o)*i}function x(t,e,r,n){w(t,e,r,n,o.Sw.radius)}function I(t,e,r,n){w(t,e,r,n,o.sH.radius)}function v(t,e,r,n){w(t,e,r,n,o.$O.radius)}function M(t,e,r,s,i){const o=t[e],a=t[e+1],u=t[e+2],l=Math.sqrt(o*o+a*a+u*u),h=(0,n.YN)(u/(0===l?1:l)),c=Math.atan2(a,o);r[s++]=z*c,r[s++]=z*h,r[s]=l-i}function T(t,e,r,n){M(t,e,r,n,o.Sw.radius)}function F(t,e,r,n){M(t,e,r,n,o.sH.radius)}function S(t,e,r,n){M(t,e,r,n,o.$O.radius)}function k(t,e,r,n){!function(t,e,r,n,s){const i=O*t[e],o=O*t[e+1],a=t[e+2],u=Math.sin(o),l=Math.cos(o),h=s.radius/Math.sqrt(1-s.eccentricitySquared*u*u);r[n++]=(h+a)*l*Math.cos(i),r[n++]=(h+a)*l*Math.sin(i),r[n++]=(h*(1-s.eccentricitySquared)+a)*u}(t,e,r,n,o.$O)}function A(t,e,r,n){const s=l,i=t[e],a=t[e+1],u=t[e+2];let h,c,d,_,f,p,g,m,y,b,w,x,I,v,M,T,F,S,k,A,P;h=Math.abs(u),c=i*i+a*a,d=Math.sqrt(c),_=c+u*u,f=Math.sqrt(_),A=Math.atan2(a,i),p=u*u/_,g=c/_,v=s.a2/f,M=s.a3-s.a4/f,g>.3?(m=h/f*(1+g*(s.a1+v+p*M)/f),k=Math.asin(m),b=m*m,y=Math.sqrt(1-b)):(y=d/f*(1-p*(s.a5-v-g*M)/f),k=Math.acos(y),b=1-y*y,m=Math.sqrt(b)),w=1-o.$O.eccentricitySquared*b,x=o.$O.radius/Math.sqrt(w),I=s.a6*x,v=d-x*y,M=h-I*m,F=y*v+m*M,T=y*M-m*v,S=T/(I/w+F),k+=S,P=F+T*S/2,u<0&&(k=-k),r[n++]=z*A,r[n++]=z*k,r[n]=P}const P={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:p},O=(0,n.kU)(1),z=(0,n.KJ)(1),C=.5*Math.PI,N=o.$O.radius,R=N*Math.PI/180,G=180/(N*Math.PI)},37585:(t,e,r)=>{r.d(e,{C:()=>s,Cc:()=>g,Io:()=>c,S8:()=>p,WQ:()=>o,aI:()=>w,e$:()=>y,hZ:()=>i,hs:()=>h,jb:()=>I,l0:()=>m,t2:()=>b});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t}function i(t,e,r){return t[0]=e,t[1]=r,t}function o(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function a(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function u(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function l(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function h(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function c(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function d(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function _(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function f(t){const e=t[0],r=t[1];return e*e+r*r}function p(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t}function g(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function m(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function y(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],o=Math.sin(n),a=Math.cos(n);return t[0]=s*a-i*o+r[0],t[1]=s*o+i*a+r[1],t}function b(t,e){return t[0]===e[0]&&t[1]===e[1]}function w(t,e){const r=t[0],s=t[1],i=e[0],o=e[1],a=(0,n.FD)();return Math.abs(r-i)<=a*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-o)<=a*Math.max(1,Math.abs(s),Math.abs(o))}const x=_,I=a,v=u,M=l,T=c,F=d,S=f;Object.freeze(Object.defineProperty({__proto__:null,add:o,angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let o=r*r+n*n;o>0&&(o=1/Math.sqrt(o));let a=s*s+i*i;a>0&&(a=1/Math.sqrt(a));const u=(r*s+n*i)*o*a;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:s,cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:T,distance:c,div:M,divide:l,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:w,exactEquals:b,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:x,length:_,lerp:g,max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:v,multiply:u,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:p,projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],o=e[1]-r[1];const a=(n[0]*i+n[1]*o)*(s-1);return i=n[0]*a,o=n[1]*a,t[0]=e[0]+i,t[1]=e[1]+o,t},random:function(t,e=1){const r=2*(0,n.Ov)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:y,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:h,scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},set:i,sqrDist:F,sqrLen:S,squaredDistance:d,squaredLength:f,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:I,subtract:a,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:m,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"}))},38976:(t,e,r)=>{r.d(e,{n:()=>i});var n=r(76213),s=r(9012);class i{constructor(t){this._options=t}insert(t,e){const r=t.getCursor(),{arcadeContextInfo:n,scale:i}=this._options,o=(0,s.N)(i,n);for(;r.next();)this._insertFeature(r,o,this._options.sqlOptions,e)}_insertFeature(t,e,r,s){const{featureFilter:i}=this._options;if(null!==i&&!i.check(t,r))return;let o=0,a=0;if("esriGeometryPoint"===t.geometryType)o=t.readXWorldSpace(),a=t.readYWorldSpace();else{if(s){const e=t.readCentroidForDisplay();if(null==e)return;const[r,s]=e.coords;if(r<0||r>n.CQ||s<0||s>n.CQ)return}const e=t.readCentroidWorldSpace();if(null==e)return;o=e.coords[0],a=e.coords[1]}this._insert(t,o,a,e)}}},44320:(t,e,r)=>{r.d(e,{I:()=>u});var n=r(65529),s=r(44208),i=r(70328),o=r(30661),a=r(5162);class u{constructor(t){this._metadata=t,this._chunks=new Map,this._chunksToRemove=[],this._overrides=new a.Im,this.events=new n.bk,this.featureAdapter=new o.Z}destroy(){this.clear()}clear(){for(const t of this._chunks.values())this._chunksToRemove.push(t);this._chunks.clear(),this._overrides.clearWeakOverrides()}*chunks(){this._overrides&&(yield this._overrides.asChunk(this._metadata)),yield*this._chunks.values()}insert(t){(0,s.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t.chunkId}] SourceChunkStore.insert`),this._overrides.onChunkInsert(t),this._chunks.set(t.chunkId,t),this.events.emit("changed")}remove(t){(0,s.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t.chunkId}] SourceChunkStore.remove`),this._chunks.delete(t.chunkId),this._chunksToRemove.push(t)}removeById(t){(0,s.A)("esri-2d-update-debug")&&console.debug(`Chunk[${t}] SourceChunkStore.remove`);const e=this._chunks.get(t);this._chunks.delete(t),e&&this._chunksToRemove.push(e)}cleanup(){const t=this._chunksToRemove;return this._chunksToRemove=[],this._overrides.cleanup(this._chunks.values()),t}applyOverride(t){this._overrides.apply(t,this),this.events.emit("changed");for(const t of this._chunks.values())t.invalidate()}takeOverrideUpdate(){return this._overrides.takeOverrideUpdate()}refresh(){this.events.emit("refresh")}forEach(t){const e=new Set;for(const r of this.chunks()){const n=r.reader.getCursor();for(;n.next();){const r=n.getObjectId();e.has(r)||(t(n.copy()),e.add(r))}}}forEachUnsafe(t){const e=new Set;for(const r of this.chunks()){const n=r.reader.getCursor();for(;n.next();){const r=n.getObjectId();e.has(r)||(t(n),e.add(r))}}}mapObjectIdsFromGlobalIds(t,e){const r=new Map,n=new Set(t);return this._overrides.putWeakObjectIdsFromGlobalIds(r,n,e),this._forEachUnsafeIgnoreOverrides(t=>{const s=t.readAttribute(e);if(s&&n.has(s)&&!r.has(s)){const e=t.getObjectId();r.set(s,e)}}),r}forEachInBounds(t,e){const r=new Set;for(const n of this.chunks()){const s=n.queryFeaturesInBounds(t);for(;s.next();){const t=s.getObjectId();r.has(t)||(e(s.copy()),r.add(t))}}}forEachBounds(t,e){const r=(0,i.vt)();for(const n of t)n.getBounds(r)&&e(r)}_forEachUnsafeIgnoreOverrides(t){const e=new Set;for(const r of this._chunks.values()){const n=r.reader.withoutOverrides().getCursor();for(;n.next();){const r=n.getObjectId();e.has(r)||(t(n),e.add(r))}}}}},48163:(t,e,r)=>{function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function o(){return i(1,1)}function a(){return i(1,0)}function u(){return i(0,1)}r.d(e,{Un:()=>l,fA:()=>i,o8:()=>s,vt:()=>n});const l=o(),h=a(),c=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:h,UNIT_Y:c,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,ones:o,unitX:a,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},50115:(t,e,r)=>{r.d(e,{OP:()=>o,V4:()=>s,rZ:()=>i}),r(44208);var n=r(53966);function s(t,e,r){if(null==t)return null;const s=e.readArcadeFeature();e.contextTimeZone=r.$view?.timeZone;try{return t.evaluate(s,r)}catch(t){return n.A.getLogger("esri.views.2d.support.arcadeOnDemand").warn("Feature arcade evaluation failed:",t),null}}function i(t){return null==t||t===1/0||t===-1/0||"number"==typeof t&&isNaN(t)}function o(t,e,r,n){if(null==t)return null!=n?n:null;const s=e.readArcadeFeature();e.contextTimeZone=r.$view?.timeZone;const o=t.evaluate(s,r);return i(o)?null!=n?n:null:o}},52350:(t,e,r)=>{r.d(e,{e:()=>a});var n=r(69397),s=r(62577),i=r(90708),o=r(99996);class a extends o.Y{static from(t,e){if(t instanceof this){const r=new Set(e),n=t._indices.filter(t=>r.has(t));return new a(t._reader,n)}return new a(t.copy(),e)}constructor(t,e){super(t.metadata),this._currentIndex=-1,this._displayTransform=null,this._reader=t,this._indices=e}setTransformForDisplay(t){const e=this._reader.getInTransform();if(null==e)return void(this._displayTransform=(0,s.Q1)(t));const r=(0,s.Q1)(e),n=(0,s.Q1)(t),[i,o]=r.scale,[a,u]=r.translate,[l,h]=n.scale,[c,d]=n.translate,_=i/l,f=o/h,p=(a-c)/l,g=(u-d)/h;this._displayTransform={originPosition:"lowerLeft",scale:[1/_,1/f,1,1],translate:[-p/_,-g/f,0,0]}}getInTransform(){return this._reader.getInTransform()}get fields(){return this._reader.fields}get hasNext(){return this._currentIndex+1<this._indices.length}getSize(){return this._indices.length}getCursor(){return this.copy()}copy(){const t=new a(this._reader.copy(),this._indices);return t._currentIndex=this._currentIndex,t._displayTransform=this._displayTransform,t._processorAttributes=this._processorAttributes,t}get contextTimeZone(){return this._reader.contextTimeZone}set contextTimeZone(t){this._reader.contextTimeZone=t}get usedMemory(){return n.qK+this._reader.usedMemory}setProcessorAttributes(t){this._processorAttributes=Object.assign(this._processorAttributes??{},t)}_nextIndex(){return++this._currentIndex<this._indices.length&&(this._reader.setIndex(this._indices[this._currentIndex]),!0)}next(){for(;this._nextIndex()&&!this._reader._getExists(););return this._currentIndex<this._indices.length}readXForDisplay(){return this._displayTransform?(0,s.IE)(this._displayTransform,this._reader.readXForDisplay()):this._reader.readXForDisplay()}readYForDisplay(){return this._displayTransform?(0,s.B2)(this._displayTransform,this._reader.readYForDisplay()):this._reader.readYForDisplay()}readGeometryForDisplay(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform):this._reader.readGeometryForDisplay()}readCentroidForDisplay(){const t=this._reader.readCentroidForDisplay()?.clone();if(t){const[e,r]=t.coords;this._displayTransform?(t.coords[0]=(0,s.IE)(this._displayTransform,e),t.coords[1]=(0,s.B2)(this._displayTransform,r)):(t.coords[0]=e,t.coords[1]=r)}return t}get geometryType(){return this._reader.geometryType}get hasFeatures(){return this._reader.hasFeatures}get exceededTransferLimit(){return this._reader.exceededTransferLimit}get hasZ(){return this._reader.hasZ}get hasM(){return this._reader.hasM}readAttribute(t,e=!1){const r=this._reader.readAttribute(t,e);return null==r&&this._processorAttributes?this._processorAttributes[t]:r}readAttributes(){return{...this._processorAttributes??{},...this._reader.readAttributes()}}joinAttributes(t){return this._reader.joinAttributes(t)}getBounds(t){return this._reader.getBounds(t)}getAttributeHash(){return this._reader.getAttributeHash()}getObjectId(){return this._reader.getObjectId()}getDisplayId(){return this._reader.getDisplayId()}setDisplayId(t){return this._reader.setDisplayId(t)}setIndex(t){return this._reader.setIndex(t)}getIndex(){return this._reader.getIndex()}readXWorldSpace(){return this._reader.readXWorldSpace()}readYWorldSpace(){return this._reader.readYWorldSpace()}_readX(){return this._reader.readXForDisplay()}_readY(){return this._reader.readYForDisplay()}_readServerCentroid(){return this._reader._readServerCentroid()}readLegacyFeatureForDisplay(){const t=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyGeometryForDisplay(){const t=this.readGeometryForDisplay();return(0,i.zv)(t,this.geometryType,!1,!1)}readGeometryArea(){return this._displayTransform?this._reader.readGeometryForDisplayTransformed(this._displayTransform)?.area()??0:this._reader.readGeometryArea()}readGeometryWorldSpace(){return this._reader.readGeometryWorldSpace()}_readGeometry(){return this._reader._readGeometry()}_readAttribute(t,e){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}_readAttributes(){throw new Error("Error: Should not be called. Underlying _reader should be used instead")}readArcadeFeature(){return this._reader.readArcadeFeature()}geometry(){return this._reader.geometry()}field(t){return this._reader.field(t)}hasField(t){return this._reader.hasField(t)}setField(t,e){return this._reader.setField(t,e)}keys(){return this._reader.keys()}castToText(t=!1){return this._reader.castToText(t)}}},57733:(t,e,r)=>{let n;function s(t){const e=n.__externref_table_alloc();return n.__wbindgen_export_2.set(e,t),e}function i(t,e){try{return t.apply(this,e)}catch(t){const e=s(t);n.__wbindgen_exn_store(e)}}r.r(e),r.d(e,{ColumnDescriptor:()=>j,FieldMetadata:()=>B,GeometryInfo:()=>W,GeometryType:()=>N,MultiscaleGeometryField:()=>Y,PageEncodingDescriptor:()=>L,ParquetChunk:()=>Z,ParquetFile:()=>$,PrimaryGeometryField:()=>Q,QuantizedGeometryBuffer:()=>H,RangeProviderJs:()=>et,RowGroup:()=>nt,default:()=>at,enableTracing:()=>b,initSync:()=>ot}),Symbol.dispose||(Symbol.dispose=Symbol("Symbol.dispose"));const o="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&o.decode();let a=null;function u(){return null!==a&&0!==a.byteLength||(a=new Uint8Array(n.memory.buffer)),a}function l(t,e){return t>>>=0,o.decode(u().subarray(t,t+e))}let h=0;const c="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},d="function"==typeof c.encodeInto?function(t,e){return c.encodeInto(t,e)}:function(t,e){const r=c.encode(t);return e.set(r),{read:t.length,written:r.length}};function _(t,e,r){if(void 0===r){const r=c.encode(t),n=e(r.length,1)>>>0;return u().subarray(n,n+r.length).set(r),h=r.length,n}let n=t.length,s=e(n,1)>>>0;const i=u();let o=0;for(;o<n;o++){const e=t.charCodeAt(o);if(e>127)break;i[s+o]=e}if(o!==n){0!==o&&(t=t.slice(o)),s=r(s,n,n=o+3*t.length,1)>>>0;const e=u().subarray(s+o,s+n);o+=d(t,e).written,s=r(s,n,o,1)>>>0}return h=o,s}let f=null;function p(){return(null===f||!0===f.buffer.detached||void 0===f.buffer.detached&&f.buffer!==n.memory.buffer)&&(f=new DataView(n.memory.buffer)),f}function g(t){return null==t}const m="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{n.__wbindgen_export_6.get(t.dtor)(t.a,t.b)});function y(t,e,r,s){const i={a:t,b:e,cnt:1,dtor:r},o=(...t)=>{i.cnt++;const e=i.a;i.a=0;try{return s(e,i.b,...t)}finally{0===--i.cnt?(n.__wbindgen_export_6.get(i.dtor)(e,i.b),m.unregister(i)):i.a=e}};return o.original=i,m.register(o,i,i),o}function b(){n.enableTracing()}let w=null;function x(){return null!==w&&0!==w.byteLength||(w=new Float64Array(n.memory.buffer)),w}let I=null;function v(){return null!==I&&0!==I.byteLength||(I=new Uint32Array(n.memory.buffer)),I}function M(t,e){if(!(t instanceof e))throw new Error(`expected instance of ${e.name}`)}function T(t,e){t>>>=0;const r=p(),s=[];for(let i=t;i<t+4*e;i+=4)s.push(n.__wbindgen_export_2.get(r.getUint32(i,!0)));return n.__externref_drop_slice(t,e),s}function F(t,e){const r=e(8*t.length,8)>>>0;return x().set(t,r/8),h=t.length,r}function S(t,e){const r=e(4*t.length,4)>>>0;for(let e=0;e<t.length;e++){const n=s(t[e]);p().setUint32(r+4*e,n,!0)}return h=t.length,r}function k(t,e){const r=e(1*t.length,1)>>>0;return u().set(t,r/1),h=t.length,r}let A=null;function P(){return null!==A&&0!==A.byteLength||(A=new Uint16Array(n.memory.buffer)),A}function O(t,e){const r=e(2*t.length,2)>>>0;return P().set(t,r/2),h=t.length,r}function z(t,e,r){n.closure83_externref_shim(t,e,r)}function C(t,e,r,s){n.closure9_externref_shim(t,e,r,s)}const N=Object.freeze({Point:0,0:"Point",Polygon:1,1:"Polygon",Polyline:2,2:"Polyline",Multipoint:3,3:"Multipoint"}),R=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeBigInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],G="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_columndescriptor_free(t>>>0,1));class j{static __wrap(t){t>>>=0;const e=Object.create(j.prototype);return e.__wbg_ptr=t,G.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_columndescriptor_free(t,0)}[Symbol.dispose](){this.free()}name(){let t,e;try{const r=n.columndescriptor_name(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}physicalType(){let t,e;try{const r=n.columndescriptor_physicalType(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}logicalType(){const t=n.columndescriptor_logicalType(this.__wbg_ptr);let e;return 0!==t[0]&&(e=l(t[0],t[1]).slice(),n.__wbindgen_free(t[0],1*t[1],1)),e}encodings(){const t=n.columndescriptor_encodings(this.__wbg_ptr);var e=T(t[0],t[1]).slice();return n.__wbindgen_free(t[0],4*t[1],4),e}pageEncodings(){const t=n.columndescriptor_pageEncodings(this.__wbg_ptr);let e;return 0!==t[0]&&(e=T(t[0],t[1]).slice(),n.__wbindgen_free(t[0],4*t[1],4)),e}numValues(){return n.columndescriptor_numValues(this.__wbg_ptr)}compression(){let t,e;try{const r=n.columndescriptor_compression(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}compressedSize(){return n.columndescriptor_compressedSize(this.__wbg_ptr)}uncompressedSize(){return n.columndescriptor_uncompressedSize(this.__wbg_ptr)}nullCount(){const t=n.columndescriptor_nullCount(this.__wbg_ptr);return 0===t[0]?void 0:t[1]}distinctCount(){const t=n.columndescriptor_distinctCount(this.__wbg_ptr);return 0===t[0]?void 0:t[1]}minValue(){return n.columndescriptor_minValue(this.__wbg_ptr)}maxValue(){return n.columndescriptor_maxValue(this.__wbg_ptr)}}const q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_fieldmetadata_free(t>>>0,1));class B{static __wrap(t){t>>>=0;const e=Object.create(B.prototype);return e.__wbg_ptr=t,q.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,q.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_fieldmetadata_free(t,0)}[Symbol.dispose](){this.free()}get id(){return n.__wbg_get_fieldmetadata_id(this.__wbg_ptr)}set id(t){n.__wbg_set_fieldmetadata_id(this.__wbg_ptr,t)}get name(){let t,e;try{const r=n.fieldmetadata_name(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}get type(){const t=n.fieldmetadata_esri_type(this.__wbg_ptr);return R[t]}get physicalType(){const t=n.fieldmetadata_physical_type(this.__wbg_ptr);let e;return 0!==t[0]&&(e=l(t[0],t[1]).slice(),n.__wbindgen_free(t[0],1*t[1],1)),e}get logicalType(){const t=n.fieldmetadata_logical_type(this.__wbg_ptr);let e;return 0!==t[0]&&(e=l(t[0],t[1]).slice(),n.__wbindgen_free(t[0],1*t[1],1)),e}}const D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_geometryinfo_free(t>>>0,1));class W{static __wrap(t){t>>>=0;const e=Object.create(W.prototype);return e.__wbg_ptr=t,D.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_geometryinfo_free(t,0)}[Symbol.dispose](){this.free()}static new(t,e,r,s,i){M(s,Q);var o=s.__destroy_into_raw();const a=S(i,n.__wbindgen_malloc),u=h,l=n.geometryinfo_new(t,e,r,o,a,u);return W.__wrap(l)}}const E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_multiscalegeometryfield_free(t>>>0,1));class Y{static __wrap(t){t>>>=0;const e=Object.create(Y.prototype);return e.__wbg_ptr=t,E.register(e,e.__wbg_ptr,e),e}static __unwrap(t){return t instanceof Y?t.__destroy_into_raw():0}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_multiscalegeometryfield_free(t,0)}[Symbol.dispose](){this.free()}get level(){return n.__wbg_get_multiscalegeometryfield_level(this.__wbg_ptr)}set level(t){n.__wbg_set_multiscalegeometryfield_level(this.__wbg_ptr,t)}static new(t,e,r,s){const i=_(e,n.__wbindgen_malloc,n.__wbindgen_realloc),o=h,a=F(r,n.__wbindgen_malloc),u=h,l=F(s,n.__wbindgen_malloc),c=h,d=n.multiscalegeometryfield_new(t,i,o,a,u,l,c);return Y.__wrap(d)}has_field(t){const e=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h;return 0!==n.multiscalegeometryfield_has_field(this.__wbg_ptr,e,r)}}const X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_pageencodingdescriptor_free(t>>>0,1));class L{static __wrap(t){t>>>=0;const e=Object.create(L.prototype);return e.__wbg_ptr=t,X.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,X.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_pageencodingdescriptor_free(t,0)}[Symbol.dispose](){this.free()}pageType(){let t,e;try{const r=n.pageencodingdescriptor_pageType(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}encoding(){let t,e;try{const r=n.pageencodingdescriptor_encoding(this.__wbg_ptr);return t=r[0],e=r[1],l(r[0],r[1])}finally{n.__wbindgen_free(t,e,1)}}count(){return n.pageencodingdescriptor_count(this.__wbg_ptr)}}const U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_parquetchunk_free(t>>>0,1));class Z{static __wrap(t){t>>>=0;const e=Object.create(Z.prototype);return e.__wbg_ptr=t,U.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_parquetchunk_free(t,0)}[Symbol.dispose](){this.free()}size(){return n.parquetchunk_size(this.__wbg_ptr)>>>0}isEmpty(t){return 0!==n.parquetchunk_isEmpty(this.__wbg_ptr,t)}rowId(t){return n.parquetchunk_rowId(this.__wbg_ptr,t)}readX(t){const e=n.parquetchunk_readX(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}readY(t){const e=n.parquetchunk_readY(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}readCoords(t){const e=n.parquetchunk_readCoords(this.__wbg_ptr,t);let r;return 0!==e[0]&&(r=function(t,e){return t>>>=0,x().subarray(t/8,t/8+e)}(e[0],e[1]).slice(),n.__wbindgen_free(e[0],8*e[1],8)),r}readLengths(t){const e=n.parquetchunk_readLengths(this.__wbg_ptr,t);let r;return 0!==e[0]&&(r=function(t,e){return t>>>=0,v().subarray(t/4,t/4+e)}(e[0],e[1]).slice(),n.__wbindgen_free(e[0],4*e[1],4)),r}transformGeometry(t,e,r,s,i,o){M(t,H);const a=n.parquetchunk_transformGeometry(this.__wbg_ptr,t.__wbg_ptr,e,r,s,i,o);return 16777215===a?void 0:0!==a}boundsXMin(t){const e=n.parquetchunk_boundsXMin(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}boundsYMin(t){const e=n.parquetchunk_boundsYMin(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}boundsXMax(t){const e=n.parquetchunk_boundsXMax(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}boundsYMax(t){const e=n.parquetchunk_boundsYMax(this.__wbg_ptr,t);return 0===e[0]?void 0:e[1]}readAttribute(t,e){return n.parquetchunk_readAttribute(this.__wbg_ptr,t,e)}}const J="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_parquetfile_free(t>>>0,1));class ${static __wrap(t){t>>>=0;const e=Object.create($.prototype);return e.__wbg_ptr=t,J.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_parquetfile_free(t,0)}[Symbol.dispose](){this.free()}static fromUrl(t,e,r,s){const i=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=h;let a=0;return g(s)||(M(s,W),a=s.__destroy_into_raw()),n.parquetfile_fromUrl(i,o,e,r,a)}static fromBinary(t,e){const r=k(t,n.__wbindgen_malloc),s=h;let i=0;return g(e)||(M(e,W),i=e.__destroy_into_raw()),n.parquetfile_fromBinary(r,s,i)}version(){return n.parquetfile_version(this.__wbg_ptr)}numRows(){return n.parquetfile_numRows(this.__wbg_ptr)>>>0}numFields(){return n.parquetfile_numFields(this.__wbg_ptr)>>>0}numColumns(){return n.parquetfile_numColumns(this.__wbg_ptr)>>>0}createdBy(){const t=n.parquetfile_createdBy(this.__wbg_ptr);let e;return 0!==t[0]&&(e=l(t[0],t[1]).slice(),n.__wbindgen_free(t[0],1*t[1],1)),e}keyValueMetadata(t){const e=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h,s=n.parquetfile_keyValueMetadata(this.__wbg_ptr,e,r);let i;return 0!==s[0]&&(i=l(s[0],s[1]).slice(),n.__wbindgen_free(s[0],1*s[1],1)),i}keys(){const t=n.parquetfile_keys(this.__wbg_ptr);let e;return 0!==t[0]&&(e=T(t[0],t[1]).slice(),n.__wbindgen_free(t[0],4*t[1],4)),e}attributeIdFor(t){const e=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h;return n.parquetfile_attributeIdFor(this.__wbg_ptr,e,r)}fields(){const t=n.parquetfile_fields(this.__wbg_ptr);var e=T(t[0],t[1]).slice();return n.__wbindgen_free(t[0],4*t[1],4),e}rowGroups(){const t=n.parquetfile_rowGroups(this.__wbg_ptr);var e=T(t[0],t[1]).slice();return n.__wbindgen_free(t[0],4*t[1],4),e}ensureFields(t){const e=O(t,n.__wbindgen_malloc),r=h;return n.parquetfile_ensureFields(this.__wbg_ptr,e,r)}readFirstChunk(t){const e=O(t,n.__wbindgen_malloc),r=h;return n.parquetfile_readFirstChunk(this.__wbg_ptr,e,r)}readChunk(t,e,r,s,i){const o=O(r,n.__wbindgen_malloc),a=h;return n.parquetfile_readChunk(this.__wbg_ptr,t,e,o,a,s,i)}readAllChunks(t,e,r){const s=O(t,n.__wbindgen_malloc),i=h;return n.parquetfile_readAllChunks(this.__wbg_ptr,s,i,e,r)}queryZChunks(t,e,r,s){const i=O(e,n.__wbindgen_malloc),o=h;return n.parquetfile_queryZChunks(this.__wbg_ptr,t,i,o,r,s)}queryXZChunks(t,e,r){return n.parquetfile_queryXZChunks(this.__wbg_ptr,t,e,r)}}const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_primarygeometryfield_free(t>>>0,1));class Q{static __wrap(t){t>>>=0;const e=Object.create(Q.prototype);return e.__wbg_ptr=t,V.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_primarygeometryfield_free(t,0)}[Symbol.dispose](){this.free()}static fromNative(t){const e=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h,s=n.primarygeometryfield_fromNative(e,r);return Q.__wrap(s)}static fromWkb(t){const e=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),r=h,s=n.primarygeometryfield_fromWkb(e,r);return Q.__wrap(s)}static fromLocation(t,e){const r=_(t,n.__wbindgen_malloc,n.__wbindgen_realloc),s=h,i=_(e,n.__wbindgen_malloc,n.__wbindgen_realloc),o=h,a=n.primarygeometryfield_fromLocation(r,s,i,o);return Q.__wrap(a)}}const K="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_quantizedgeometrybuffer_free(t>>>0,1));class H{static __wrap(t){t>>>=0;const e=Object.create(H.prototype);return e.__wbg_ptr=t,K.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_quantizedgeometrybuffer_free(t,0)}[Symbol.dispose](){this.free()}static new(){const t=n.quantizedgeometrybuffer_new();return H.__wrap(t)}readCoordsUnsafe(){return n.quantizedgeometrybuffer_readCoordsUnsafe(this.__wbg_ptr)}readLengthsUnsafe(){return n.quantizedgeometrybuffer_readLengthsUnsafe(this.__wbg_ptr)}}const tt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rangeproviderjs_free(t>>>0,1));class et{static __wrap(t){t>>>=0;const e=Object.create(et.prototype);return e.__wbg_ptr=t,tt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,tt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_rangeproviderjs_free(t,0)}[Symbol.dispose](){this.free()}static new(t,e){const r=n.rangeproviderjs_new(t,e);return et.__wrap(r)}static withFetch(){const t=n.rangeproviderjs_withFetch();return et.__wrap(t)}}const rt="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rowgroup_free(t>>>0,1));class nt{static __wrap(t){t>>>=0;const e=Object.create(nt.prototype);return e.__wbg_ptr=t,rt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,rt.unregister(this),t}free(){const t=this.__destroy_into_raw();n.__wbg_rowgroup_free(t,0)}[Symbol.dispose](){this.free()}columnDescriptorForAttribute(t){const e=n.rowgroup_columnDescriptorForAttribute(this.__wbg_ptr,t);return j.__wrap(e)}}function st(){const t={wbg:{}};return t.wbg.__wbg_aborted_c078e36031795a9a=function(t){return t.aborted},t.wbg.__wbg_apply_36be6a55257c99bf=function(){return i(function(t,e,r){return t.apply(e,r)},arguments)},t.wbg.__wbg_buffer_609cc3eee51ed158=function(t){return t.buffer},t.wbg.__wbg_call_672a4d21634d4a24=function(){return i(function(t,e){return t.call(e)},arguments)},t.wbg.__wbg_call_7cccdd69e0791ae2=function(){return i(function(t,e,r){return t.call(e,r)},arguments)},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(t,e){let r,s;try{r=t,s=e,console.error(l(t,e))}finally{n.__wbindgen_free(r,s,1)}},t.wbg.__wbg_fieldmetadata_new=function(t){return B.__wrap(t)},t.wbg.__wbg_get_67b2ba62fc30de12=function(){return i(function(t,e){return Reflect.get(t,e)},arguments)},t.wbg.__wbg_length_8cfd2c6409af88ad=function(t){return t.length},t.wbg.__wbg_length_a446193dc22c12f8=function(t){return t.length},t.wbg.__wbg_multiscalegeometryfield_unwrap=function(t){return Y.__unwrap(t)},t.wbg.__wbg_new_23a2665fac83c611=function(t,e){try{var r={a:t,b:e};return new Promise((t,e)=>{const n=r.a;r.a=0;try{return C(n,r.b,t,e)}finally{r.a=n}})}finally{r.a=r.b=0}},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},t.wbg.__wbg_new_9fee97a409b32b68=function(t){return new Uint16Array(t)},t.wbg.__wbg_new_a12002a7f91c75be=function(t){return new Uint8Array(t)},t.wbg.__wbg_newnoargs_105ed471475aaf50=function(t,e){return new Function(l(t,e))},t.wbg.__wbg_newwithbyteoffsetandlength_f1dead44d1fc7212=function(t,e,r){return new Uint32Array(t,e>>>0,r>>>0)},t.wbg.__wbg_newwithbyteoffsetandlength_f254047f7e80e7ff=function(t,e,r){return new Int16Array(t,e>>>0,r>>>0)},t.wbg.__wbg_newwithlength_c4c419ef0bc8a1f8=function(t){return new Array(t>>>0)},t.wbg.__wbg_pageencodingdescriptor_new=function(t){return L.__wrap(t)},t.wbg.__wbg_parquetchunk_new=function(t){return Z.__wrap(t)},t.wbg.__wbg_parquetfile_new=function(t){return $.__wrap(t)},t.wbg.__wbg_queueMicrotask_98e746b9f850fe3d=function(t){queueMicrotask(t)},t.wbg.__wbg_queueMicrotask_c847cc8372bec908=function(t){return t.queueMicrotask},t.wbg.__wbg_resolve_4851785c9c5f573d=function(t){return Promise.resolve(t)},t.wbg.__wbg_rowgroup_new=function(t){return nt.__wrap(t)},t.wbg.__wbg_set_37837023f3d740e8=function(t,e,r){t[e>>>0]=r},t.wbg.__wbg_set_65595bdd868b3009=function(t,e,r){t.set(e,r>>>0)},t.wbg.__wbg_set_f4f1f0daa30696fc=function(t,e,r){t.set(e,r>>>0)},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(t,e){const r=_(e.stack,n.__wbindgen_malloc,n.__wbindgen_realloc),s=h;p().setInt32(t+4,s,!0),p().setInt32(t+0,r,!0)},t.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){const t="undefined"==typeof global?null:global;return g(t)?0:s(t)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){const t="undefined"==typeof globalThis?null:globalThis;return g(t)?0:s(t)},t.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){const t="undefined"==typeof self?null:self;return g(t)?0:s(t)},t.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){const t="undefined"==typeof window?null:window;return g(t)?0:s(t)},t.wbg.__wbg_then_44b73946d2fb3e7d=function(t,e){return t.then(e)},t.wbg.__wbg_then_48b406749878a531=function(t,e,r){return t.then(e,r)},t.wbg.__wbg_valueOf_fdbb54fcdfe33477=function(t){return t.valueOf()},t.wbg.__wbindgen_array_new=function(){return[]},t.wbg.__wbindgen_array_push=function(t,e){t.push(e)},t.wbg.__wbindgen_bigint_from_i64=function(t){return t},t.wbg.__wbindgen_cb_drop=function(t){const e=t.original;return 1==e.cnt--&&(e.a=0,!0)},t.wbg.__wbindgen_closure_wrapper1683=function(t,e,r){return y(t,e,84,z)},t.wbg.__wbindgen_init_externref_table=function(){const t=n.__wbindgen_export_2,e=t.grow(4);t.set(0,void 0),t.set(e+0,void 0),t.set(e+1,null),t.set(e+2,!0),t.set(e+3,!1)},t.wbg.__wbindgen_is_function=function(t){return"function"==typeof t},t.wbg.__wbindgen_is_undefined=function(t){return void 0===t},t.wbg.__wbindgen_memory=function(){return n.memory},t.wbg.__wbindgen_number_get=function(t,e){const r="number"==typeof e?e:void 0;p().setFloat64(t+8,g(r)?0:r,!0),p().setInt32(t+0,!g(r),!0)},t.wbg.__wbindgen_number_new=function(t){return t},t.wbg.__wbindgen_string_new=function(t,e){return l(t,e)},t.wbg.__wbindgen_throw=function(t,e){throw new Error(l(t,e))},t.wbg.__wbindgen_uint8_array_new=function(t,e){var r=function(t,e){return t>>>=0,u().subarray(t/1,t/1+e)}(t,e).slice();return n.__wbindgen_free(t,1*e,1),r},t}function it(t,e){return n=t.exports,at.__wbindgen_wasm_module=e,f=null,w=null,A=null,I=null,a=null,n.__wbindgen_start(),n}function ot(t){if(void 0!==n)return n;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?({module:t}=t):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const e=st();return t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t)),it(new WebAssembly.Instance(t,e),t)}async function at(t){if(void 0!==n)return n;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?({module_or_path:t}=t):console.warn("using deprecated parameters for the initialization function; pass a single object instead"));const e=st();("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));const{instance:r,module:s}=await async function(t,e){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,e)}catch(e){if("application/wasm"==t.headers.get("Content-Type"))throw e;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",e)}const r=await t.arrayBuffer();return await WebAssembly.instantiate(r,e)}{const r=await WebAssembly.instantiate(t,e);return r instanceof WebAssembly.Instance?{instance:r,module:t}:r}}(await t,e);return it(r,s)}},62815:(t,e,r)=>{r.d(e,{N:()=>o});var n=r(83047),s=r(73941),i=r(21325);function o(t,e,r){if(null==e||null==r||r.vcsWkid||(0,i.aI)(e,r)||(0,s.xP)(e)||(0,s.xP)(r))return null;const o=(0,n.G9)(e)/(0,n.G9)(r);if(1===o)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,o);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t)for(const r of t.paths)for(const t of r)t.length>2&&(t[2]*=e)}(t,o);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t)for(const r of t.rings)for(const t of r)t.length>2&&(t[2]*=e)}(t,o);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const r of t.points)r.length>2&&(r[2]*=e)}(t,o);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,o);default:return null}}},63664:(t,e,r)=>{r.d(e,{B:()=>n});class n{constructor(t){this._statistics=t}get statistics(){return this._statistics}}},68974:(t,e,r)=>{r.d(e,{H:()=>u,p:()=>a});var n=r(83047),s=r(38976),i=r(75538);const o=96;function a(t,e){return(0,n.GA)(t)*n.dy*o/e}class u extends s.n{constructor(t){super(t),this._cells=new Map,this._pixelsPerMapUnit=a(t.spatialReference,t.scale)}put(t){for(const e of this._cells.values()){const r=t.get(e.id);r?r.merge(e):t.set(e.id,e.clone())}}putBounded(t,e,r){const n=[e.xmin,e.ymin,e.xmax,e.ymax],[s,i,o,a]=n,u=Math.floor(s*this._pixelsPerMapUnit/this._options.cellSize),l=Math.floor(i*this._pixelsPerMapUnit/this._options.cellSize),h=Math.ceil(o*this._pixelsPerMapUnit/this._options.cellSize),c=Math.ceil(a*this._pixelsPerMapUnit/this._options.cellSize);for(let e=l;e<=c;e++)for(let r=u;r<=h;r++){const n=`${r}.${e}`,s=this._cells.get(n);if(!s)continue;const i=t.get(s.id);i?s&&!t.has(s.id)&&i.merge(s):t.set(s.id,s.clone())}}_insert(t,e,r,n){const s=e*this._pixelsPerMapUnit,i=r*this._pixelsPerMapUnit,o=Math.floor(s/this._options.cellSize),a=Math.floor(i/this._options.cellSize);this._getCellOrCreate(o,a).insert(t,n,e,r)}_getCellOrCreate(t,e){const r=i.L.createId(t,e);let n=this._cells.get(r);if(!n){const s=1*this._options.cellSize/this._pixelsPerMapUnit;n=i.L.create(t,e,this._options.fields,s),this._cells.set(r,n)}return n}}},70300:(t,e,r)=>{r.d(e,{K:()=>D});var n=r(11006);function s(t,e){if(!(this instanceof s))return new s(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this.toBBox=e:this._initFormat(e)),this.clear()}function i(t,e,r){if(!r)return e.indexOf(t);for(var n=0;n<e.length;n++)if(r(t,e[n]))return n;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,r,n,s){s||(s=m(null)),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(var i,o=e;o<r;o++)i=t.children[o],u(s,t.leaf?n(i):i);return s}function u(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function _(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function f(t,e){var r=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,s-r)*Math.max(0,i-n)}function p(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function m(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,e,r,s,i){for(var o,a=[e,r];a.length;)(r=a.pop())-(e=a.pop())<=s||(o=e+Math.ceil((r-e)/s/2)*s,(0,n.q)(t,o,e,r,i),a.push(e,o,o,r))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,r=[],n=this.toBBox;if(!g(t,e))return r;for(var s,i,o,a,u=[];e;){for(s=0,i=e.children.length;s<i;s++)o=e.children[s],g(t,a=e.leaf?n(o):o)&&(e.leaf?r.push(o):p(t,a)?this._all(o,r):u.push(o));e=u.pop()}return r},collides:function(t){var e=this.data,r=this.toBBox;if(!g(t,e))return!1;for(var n,s,i,o,a=[];e;){for(n=0,s=e.children.length;n<s;n++)if(i=e.children[n],g(t,o=e.leaf?r(i):i)){if(e.leaf||p(t,o))return!0;a.push(i)}e=a.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var s=this.data;this.data=n,n=s}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},insert:function(t){return null!=t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=m([]),this},remove:function(t,e){if(null==t)return this;for(var r,n,s,o,a=this.data,u=this.toBBox(t),l=[],h=[];a||l.length;){if(a||(a=l.pop(),n=l[l.length-1],r=h.pop(),o=!0),a.leaf&&-1!==(s=i(t,a.children,e)))return a.children.splice(s,1),l.push(a),this._condense(l),this;o||a.leaf||!p(a,u)?n?(r++,a=n.children[r],o=!1):a=null:(l.push(a),h.push(r),r=0,n=a,a=a.children[0])}return this},toBBox:function(t){return t},compareMinX:l,compareMinY:h,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var r=[];t;)t.leaf?e.push.apply(e,t.children):r.push.apply(r,t.children),t=r.pop();return e},_build:function(t,e,r,n){var s,i=r-e+1,a=this._maxEntries;if(i<=a)return o(s=m(t.slice(e,r+1)),this.toBBox),s;n||(n=Math.ceil(Math.log(i)/Math.log(a)),a=Math.ceil(i/Math.pow(a,n-1))),(s=m([])).leaf=!1,s.height=n;var u,l,h,c,d=Math.ceil(i/a),_=d*Math.ceil(Math.sqrt(a));for(y(t,e,r,_,this.compareMinX),u=e;u<=r;u+=_)for(y(t,u,h=Math.min(u+_-1,r),d,this.compareMinY),l=u;l<=h;l+=d)c=Math.min(l+d-1,h),s.children.push(this._build(t,l,c,n-1));return o(s,this.toBBox),s},_chooseSubtree:function(t,e,r,n){for(var s,i,o,a,u,l,h,d;n.push(e),!e.leaf&&n.length-1!==r;){for(h=d=1/0,s=0,i=e.children.length;s<i;s++)u=c(o=e.children[s]),(l=_(t,o)-u)<d?(d=l,h=u<h?u:h,a=o):l===d&&u<h&&(h=u,a=o);e=a||e.children[0]}return e},_insert:function(t,e,r){var n=this.toBBox,s=r?t:n(t),i=[],o=this._chooseSubtree(s,this.data,e,i);for(o.children.push(t),u(o,s);e>=0&&i[e].children.length>this._maxEntries;)this._split(i,e),e--;this._adjustParentBBoxes(s,i,e)},_split:function(t,e){var r=t[e],n=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,n);var i=this._chooseSplitIndex(r,s,n),a=m(r.children.splice(i,r.children.length-i));a.height=r.height,a.leaf=r.leaf,o(r,this.toBBox),o(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(r,a)},_splitRoot:function(t,e){this.data=m([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,r){var n,s,i,o,u,l,h,d;for(l=h=1/0,n=e;n<=r-e;n++)o=f(s=a(t,0,n,this.toBBox),i=a(t,n,r,this.toBBox)),u=c(s)+c(i),o<l?(l=o,d=n,h=u<h?u:h):o===l&&u<h&&(h=u,d=n);return d},_chooseSplitAxis:function(t,e,r){var n=t.leaf?this.compareMinX:l,s=t.leaf?this.compareMinY:h;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,s)&&t.children.sort(n)},_allDistMargin:function(t,e,r,n){t.children.sort(n);var s,i,o=this.toBBox,l=a(t,0,e,o),h=a(t,r-e,r,o),c=d(l)+d(h);for(s=e;s<r-e;s++)i=t.children[s],u(l,t.leaf?o(i):i),c+=d(l);for(s=r-e-1;s>=e;s--)i=t.children[s],u(h,t.leaf?o(i):i),c+=d(h);return c},_adjustParentBBoxes:function(t,e,r){for(var n=r;n>=0;n--)u(e[n],t)},_condense:function(t){for(var e,r=t.length-1;r>=0;r--)0===t[r].children.length?r>0?(e=t[r-1].children).splice(e.indexOf(t[r]),1):this.clear():o(t[r],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}};var b=r(70328);class w{static fromReader(t){const e=[],r=t.copy(),n=(0,b.vt)();for(;r.next();)r.getBounds(n)&&e.push(r.getIndex());const i=s(9,t=>(r.setIndex(t),{minX:r.getBoundsXMin(),minY:r.getBoundsYMin(),maxX:r.getBoundsXMax(),maxY:r.getBoundsYMax()}));return i.load(e),new w(i)}constructor(t){this._index=t}search(t){const e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this._index.search(e)}}r(44208);var x=r(34727),I=(r(37585),r(48163)),v=r(39829),M=r(16930),T=r(19419),F=r(79258),S=r(90708),k=r(92722),A=r(31464);function P(t,e,r,n){if(n.isWebMercator){const n=(0,x.KJ)(t/F.$O.radius),s=n-360*Math.floor((n+180)/360),i=[0,0];return O(i,0,(0,x.KJ)(Math.PI/2-2*Math.atan(Math.exp(-e/F.$O.radius))),s,r),i}const s=(0,A.Cv)({x:t,y:e},n,M.A.WGS84);if(!s)return null;const i=[0,0];return O(i,0,s.y,s.x,r),i}function O(t,e,r,n,s){s%2&&(s+=1);let i=0,o=0,a=-90,u=90,l=-180,h=180;for(let t=0;t<s/2;t++){for(let e=0;e<5;e++){const r=(l+h)/2,s=n>r?1:0;i|=s<<29-(e+5*t),l=(1-s)*l+s*r,h=(1-s)*r+s*h}for(let e=0;e<5;e++){const n=(a+u)/2,s=r>n?1:0;o|=s<<29-(e+5*t),a=(1-s)*a+s*n,u=(1-s)*n+s*u}}t[2*e]=i,t[2*e+1]=o}(0,I.vt)(),(0,I.vt)();var z=r(63664),C=r(92029);class N extends z.B{static create(t,e,r,n){const s=C.o.create(t),i=new Array(32);for(let t=0;t<i.length;t++)i[t]=null;return new N(s,e,r,n,i)}constructor(t,e,r,n,s){super(t),this.xNode=e,this.yNode=r,this.depth=n,this.children=s,this._objectIds=new Set,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._xGeohashTotal=0,this._yGeohashTotal=0,this.next=null}get id(){return`${this.xNode}.${this.yNode}`}get containedObjectIds(){return this._objectIds}get count(){return this._count}clone(){const t=new N(this._statistics.clone(),this.xNode,this.yNode,this.depth,this.children);return t._count=this._count,t._xWorldTotal=this._xWorldTotal,t._yWorldTotal=this._yWorldTotal,t._xGeohashTotal=this._xGeohashTotal,t._yGeohashTotal=this._yGeohashTotal,t.next=this.next,t._objectIds=new Set(this._objectIds),t}insert(t,e,r,n,s,i){this._count+=1,this._xWorldTotal+=e,this._yWorldTotal+=r,this._xGeohashTotal+=n,this._yGeohashTotal+=s,this._statistics.insert(t,i),this._objectIds.add(t.getObjectId())}merge(t){if(0!==t._count){this._count+=t._count,this._xWorldTotal+=t._xWorldTotal,this._yWorldTotal+=t._yWorldTotal,this._xGeohashTotal+=t._xWorldTotal,this._yGeohashTotal+=t._yWorldTotal,this._statistics.merge(t._statistics);for(const e of t._objectIds.values())this._objectIds.add(e)}}getCentroid(t){throw new Error("getCentroid not supported for GeohashNode")}getGeometry(t,e){const r=this._getLngLatBounds(),[n,s,i,o]=r,a=(0,A.Cv)({rings:[[[n,s],[n,o],[i,o],[i,s],[n,s]]]},M.A.WGS84,t),u=(0,S.Ye)(new k.A,a,!1,!1);return null!=e?(0,S.Nl)(new k.A,u,!1,!1,"esriGeometryPolygon",e,!1,!1):u}getGeometricCentroid(t,e){const r=this._getLngLatBounds(),[n,s,i,o]=r,a=(0,A.Cv)({x:(n+i)/2,y:(s+o)/2},M.A.WGS84,t),u=(0,S.qN)(new k.A,a);return null!=e?(0,S.Nl)(new k.A,u,!1,!1,"esriGeometryPoint",e,!1,!1):u}getAttributes(){const t={aggregateId:this.id};for(const e of this._statistics.values())t[e.field.name]=e.value;return t.aggregateCount=this._count,t}find(t,e,r,n,s,i){if(n>=r)return this;const o=1-n%2,a=3*o+2*(1-o),u=2*o+3*(1-o),l=30-s-a,h=30-i-u,c=((t&7*o+3*(1-o)<<l)>>l)+((e&3*o+7*(1-o)<<h)>>h)*(8*o+4*(1-o)),d=this.children[c];return null==d?null:d.find(t,e,r,n+1,s+a,i+u)}_getLngLatBounds(){const t=this.depth,e=Math.ceil(t/2),r=Math.floor(t/2),n=30-(3*e+2*r),s=30-(2*e+3*r);return function(t,e){let r=-90,n=90,s=-180,i=180;for(let o=0;o<e;o++){const e=Math.ceil((o+1)/2),a=Math.floor((o+1)/2),u=1-o%2,l=30-(3*e+2*a),h=30-(2*e+3*a),c=2*u+3*(1-u),d=(7*u+3*(1-u)<<l&t.geohashX)>>l,_=(3*u+7*(1-u)<<h&t.geohashY)>>h;for(let t=3*u+2*(1-u)-1;t>=0;t--){const e=(s+i)/2,r=d&1<<t?1:0;s=(1-r)*s+r*e,i=(1-r)*e+r*i}for(let t=c-1;t>=0;t--){const e=(r+n)/2,s=_&1<<t?1:0;r=(1-s)*r+s*e,n=(1-s)*e+s*n}}return[s,r,i,n]}({geohashX:this.xNode<<n,geohashY:this.yNode<<s},this.depth)}}class R{constructor(t){this._fields=t,this._size=0,this._depth=0,this._root=N.create(this._fields,0,0,0)}destroy(){}get size(){return this._size}get depth(){return this._depth}find(t,e,r){return this._root.find(t,e,r,0,0,0)}insert(t,e,r,n,s,i,o){let a=this._root,u=0,l=0,h=0;for(;null!==a;){if(a.insert(t,e,r,n,s,o),u>=i)return;const c=Math.ceil((u+1)/2),d=Math.floor((u+1)/2),_=1-u%2,f=30-(3*c+2*d),p=30-(2*c+3*d),g=(n&7*_+3*(1-_)<<f)>>f,m=(s&3*_+7*(1-_)<<p)>>p,y=g+m*(8*_+4*(1-_));l=l<<3*_+2*(1-_)|g,h=h<<2*_+3*(1-_)|m,null==a.children[y]&&(a.children[y]=N.create(this._fields,l,h,u+1),this._depth=Math.max(this._depth,u+1),this._size+=1),u+=1,a=a.children[y]}}putBins(t,e){for(const r of this.getNodes(e)){const e=t.get(r.id);e?e.merge(r):t.set(r.id,r.clone())}}getNodes(t){const e=[],{geohashBounds:r,level:n}=t;let s=this._root;for(;null!==s;){const t=s.depth,i=s.xNode,o=s.yNode;if(t>=n){e.push(s),s=s.next;continue}const a=Math.ceil((t+1)/2),u=Math.floor((t+1)/2),l=1-t%2,h=30-(3*a+2*u),c=30-(2*a+3*u),d=~((1<<h)-1),_=~((1<<c)-1),f=(r.xLL&d)>>h,p=(r.yLL&_)>>c,g=(r.xTR&d)>>h,m=(r.yTR&_)>>c,y=i<<3*l+2*(1-l),b=o<<2*l+3*(1-l),w=y+8*l+4*(1-l),x=b+4*l+8*(1-l),I=Math.max(y,f),v=Math.max(b,p),M=Math.min(w,g),T=Math.min(x,m);let F=null,S=null;for(let t=v;t<=T;t++)for(let e=I;e<=M;e++){const r=e-y+(t-b)*(8*l+4*(1-l)),n=s.children[r];n&&(F||(F=n,F.next=s.next),S&&(S.next=n),S=n,n.next=s.next)}s=F||s.next}return e}}var G=r(38976);class j extends G.n{constructor(t){super(t),this._tree=new R(this._options.fields)}put(t){throw new Error("Geohash tree does not support put")}putBounded(t,e,r){const{geohashLevel:n,spatialReference:s}=this._options,i=function(t,e,r,n){const s=[t.xmin,t.ymin,t.xmax,t.ymax],i=v.A.fromExtent((0,T.w1)(s,n)),o=(0,A.Cv)(i,n,M.A.WGS84,{densificationStep:64*e});if(!o)return null;const a=(0,S.Ye)(new k.A,o,!1,!1),u=a.coords.filter((t,e)=>!(e%2)),l=a.coords.filter((t,e)=>e%2),h=Math.min(...u),c=Math.min(...l),d=Math.max(...u),_=Math.max(...l),f=P(h,c,r,M.A.WGS84),p=P(d,_,r,M.A.WGS84);return f&&p?{bounds:s,geohashBounds:{xLL:f[0],yLL:f[1],xTR:p[0],yTR:p[1]},level:r}:null}(e,r,n,s);null!=i&&this._tree.putBins(t,i)}_insert(t,e,r,n){const{geohashLevel:s,spatialReference:i}=this._options,o=P(e,r,s,i);o&&this._tree.insert(t,e,r,o[0],o[1],s,n)}}var q=r(68974),B=r(52350);class D{size(){return this.reader.getSize()}get fields(){return this.reader.fields}invalidate(){this._aggregateIndex=null,this._aggregateIndexHash=null,this._spatialIndex=null}registerOverrides(t){this.reader.registerOverrides(t),this.invalidate()}queryFeaturesInBounds(t){const e=this._getSpatialIndex().search(t);return B.e.from(this.reader,e)}getAggregateIndex(t){const e=JSON.stringify(t);if(e!==this._aggregateIndexHash){switch(this._aggregateIndexHash=e,t.type){case"grid":this._aggregateIndex=new q.H(t);break;case"geohash":this._aggregateIndex=new j(t)}this._aggregateIndex.insert(this.reader,this.isTiled)}return this._aggregateIndex}_getSpatialIndex(){return this._spatialIndex||(this._spatialIndex=w.fromReader(this.reader)),this._spatialIndex}}},70581:(t,e,r)=>{r.d(e,{DV:()=>h,hD:()=>c});var n=r(78888),s=r(49186),i=r(2741);let o=null;var a=r(57733);const u=t=>async function(e,r,s,i){const o=t?.(),a=o?{...o,debug:i}:{debug:i},{data:u}=await(0,n.A)(e,{responseType:"array-buffer",query:a,headers:{range:`bytes=${r}-${s}`}});return u},l=t=>async function(e){const{data:r}=await(0,n.A)(e,{responseType:"native",method:"head",query:t?.()}),s=r.headers.get("Content-Length");if(null==s)throw new Error("Unable to parse content length");return parseInt(s,10)};async function h(t,e={}){const{ParquetFile:n}=await async function(){return o||(o=async function(){const t=await Promise.resolve().then(r.bind(r,57733));return await t.default({module_or_path:(0,i.s)("esri/libs/parquet/pkg/bundle_bg.wasm")}),t}()),o}(),h=u(e.getCustomParameters),c=l(e.getCustomParameters),d=e.geometryInfo?function(t,e){const r=t.spatialReference.wkid,n=e.wkid;if(!r||!n)throw new s.A("parquet","Unable to create ParquetFile, in and out wkid must be specified");const i=function(t){switch(t){case"esriGeometryPoint":return a.GeometryType.Point;case"esriGeometryPolygon":return a.GeometryType.Polygon;case"esriGeometryPolyline":return a.GeometryType.Polyline;case"esriGeometryMultipoint":return a.GeometryType.Multipoint;default:throw new s.A("parquet",`Found unexpected GeometryType: ${t}`)}}(t.geometryType),o=function(t){switch(t.encoding.type){case"wkb":return a.PrimaryGeometryField.fromWkb(t.encoding.primaryFieldName);case"location":{const{latitudeFieldName:e,longitudeFieldName:r}=t.encoding;return a.PrimaryGeometryField.fromLocation(e,r)}}}(t),u=[];if("xz"===t.displayOptimization?.mode){const e=t.displayOptimization.multiscale;for(const t of e.levels??[]){const[e,r]=t.transform.translate,[n,s]=t.transform.scale,i=new Float64Array([e,r]),o=new Float64Array([n,s]);u.push(a.MultiscaleGeometryField.new(t.level,t.column,i,o))}}return a.GeometryInfo.new(i,r,n,o,u)}(e.geometryInfo,e.outSpatialReference??e.geometryInfo.spatialReference):null;return n.fromUrl(t,h,c,d)}function c(t){const e=t.keyValueMetadata("geo");return null!=e?JSON.parse(e):null}},73250:(t,e,r)=>{r.d(e,{y:()=>n});class n{static fromBuffer(t,e){return new n(t,e)}static create(t,e=4294967295){const r=new Uint32Array(Math.ceil(t/32));return new n(r,e)}constructor(t,e){this._mask=0,this._buf=t,this._mask=e}_getIndex(t){return Math.floor(t/32)}has(t){const e=this._mask&t;return!!(this._buf[this._getIndex(e)]&1<<e%32)}hasRange(t,e){let r=t,n=e;for(;r%32&&r!==n;){if(this.has(r))return!0;r++}for(;n%32&&r!==n;){if(this.has(r))return!0;n--}if(r===n)return!1;for(let t=r/32;t!==n/32;t++)if(this._buf[t])return!0;return!1}set(t){const e=this._mask&t,r=this._getIndex(e),n=1<<e%32;this._buf[r]|=n}setRange(t,e){let r=t,n=e;for(;r%32&&r!==n;)this.set(r++);for(;n%32&&r!==n;)this.set(n--);if(r!==n)for(let t=r/32;t!==n/32;t++)this._buf[t]=4294967295}unset(t){const e=this._mask&t,r=this._getIndex(e),n=1<<e%32;this._buf[r]&=4294967295^n}resize(t){const e=this._buf,r=new Uint32Array(Math.ceil(t/32));r.set(e),this._buf=r}or(t){for(let e=0;e<this._buf.length;e++)this._buf[e]|=t._buf[e];return this}and(t){for(let e=0;e<this._buf.length;e++)this._buf[e]&=t._buf[e];return this}xor(t){for(let e=0;e<this._buf.length;e++)this._buf[e]^=t._buf[e];return this}ior(t){for(let e=0;e<this._buf.length;e++)this._buf[e]|=~t._buf[e];return this}iand(t){for(let e=0;e<this._buf.length;e++)this._buf[e]&=~t._buf[e];return this}ixor(t){for(let e=0;e<this._buf.length;e++)this._buf[e]^=~t._buf[e];return this}any(){for(let t=0;t<this._buf.length;t++)if(this._buf[t])return!0;return!1}copy(t){for(let e=0;e<this._buf.length;e++)this._buf[e]=t._buf[e];return this}clone(){return new n(this._buf.slice(),this._mask)}clear(){for(let t=0;t<this._buf.length;t++)this._buf[t]=0;return this}forEachSet(t){for(let e=0;e<this._buf.length;e++){let r=this._buf[e],n=32*e;if(r)for(;r;)1&r&&t(n),r>>>=1,n++}}countSet(){let t=0;return this.forEachSet(e=>{t++}),t}}},75538:(t,e,r)=>{r.d(e,{L:()=>a});var n=r(90708),s=r(92722),i=r(63664),o=r(92029);class a extends i.B{static createId(t,e){return`${t}.${e}`}static create(t,e,r,n){return new a(t,e,o.o.create(r),n)}constructor(t,e,r,n){super(r),this.gridX=t,this.gridY=e,this._worldUnitsPerCell=n,this._count=0,this._xWorldTotal=0,this._yWorldTotal=0,this._objectIds=new Set}get id(){return a.createId(this.gridX,this.gridY)}get containedObjectIds(){return this._objectIds}get count(){return this._count}get firstObjectId(){return this._objectIds.values().next().value}get centroidXWorld(){return this._xWorldTotal/this._count}get centroidYWorld(){return this._yWorldTotal/this._count}clone(){const t=new a(this.gridX,this.gridY,this._statistics.clone(),this._worldUnitsPerCell);return t._count=this._count,t._xWorldTotal=this._xWorldTotal,t._yWorldTotal=this._yWorldTotal,t._firstFeatureAttributes=this._firstFeatureAttributes,t._objectIds=new Set(this._objectIds),t}insert(t,e,r,n){0===this._count?this._firstFeatureAttributes=t.readAttributes():this._firstFeatureAttributes=null,this._count+=1,this._xWorldTotal+=r,this._yWorldTotal+=n,this._statistics.insert(t,e),this._objectIds.add(t.getObjectId())}merge(t){if(0!==t._count){this._count+=t._count,this._firstFeatureAttributes=t._firstFeatureAttributes,this._xWorldTotal+=t._xWorldTotal,this._yWorldTotal+=t._yWorldTotal,this._statistics.merge(t._statistics);for(const e of t._objectIds.values())this._objectIds.add(e)}}getCentroidX(t){return null==t?this.centroidXWorld:(0,n.IE)(t,this.centroidXWorld)}getCentroidY(t){return null==t?this.centroidYWorld:(0,n.B2)(t,this.centroidYWorld)}getGeometry(t,e){const r=this.gridX*this._worldUnitsPerCell,i=this.gridY*this._worldUnitsPerCell,o=new s.A([4],[r,i,r+this._worldUnitsPerCell,i,r+this._worldUnitsPerCell,i+this._worldUnitsPerCell,r,i+this._worldUnitsPerCell]);if(null!=e){const t=new s.A;return(0,n.Nl)(t,o,!1,!1,"esriGeometryPolygon",e)}return o}getCentroid(t){const e=new s.A([],[this.centroidXWorld,this.centroidYWorld]);if(null!=t){const r=new s.A;return(0,n.Nl)(r,e,!1,!1,"esriGeometryPoint",t)}return e}getGeometricCentroid(t,e){const r=this.gridX*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,i=this.gridY*this._worldUnitsPerCell+.5*this._worldUnitsPerCell,o=new s.A([],[r,i]);if(null!=e){const t=new s.A;return(0,n.Nl)(t,o,!1,!1,"esriGeometryPoint",e)}return o}getAttributes(){const t={aggregateId:this.id};for(const e of this._statistics.values())t[e.field.name]=e.value;return null!=this._firstFeatureAttributes?{...t,...this._firstFeatureAttributes}:t}}},76213:(t,e,r)=>{r.d(e,{C2:()=>o,CQ:()=>n,DY:()=>s,GR:()=>p,Gh:()=>u,MZ:()=>d,TB:()=>f,U5:()=>a,_M:()=>l,cp:()=>g,eG:()=>i,fq:()=>_,hM:()=>c,ie:()=>h});const n=512,s=29,i=24,o=4,a=6,u=1.05,l=3,h=3,c=4,d=1,_=10,f=256,p=32,g=512},92029:(t,e,r)=>{r.d(e,{o:()=>i});var n=r(50115);const s=Math.PI/180;class i{static create(t){return new i(t.map(t=>function(t){switch(t.statisticType){case"min":return new a(t);case"max":return new u(t);case"avg":return new h(t);case"avg_angle":return new c(t);case"sum":case"count":return new l(t);case"mode":return new d(t)}}(t)))}constructor(t){this._statistics=t}values(){return this._statistics.values()}insert(t,e){for(const r of this._statistics)r.insert(t,e)}merge(t){for(let e=0;e<this._statistics.length;e++){const r=this._statistics[e],n=t._statistics[e];if(r.field.name!==n.field.name)throw new Error("InternalError: Tried to merge incompatible statistics");r.merge(n)}}clone(){return new i(this._statistics.map(t=>t.clone()))}}class o{constructor(t){this.field=t}insert(t,e){if(!this.field.computed)return;const r=this.field.computed.read(t,e);(0,n.rZ)(r)||this._insertValue(r)}}class a extends o{constructor(){super(...arguments),this.type="min",this.value=Number.MAX_VALUE}_insertValue(t){this.value=Math.min(this.value,t)}merge(t){this.value=Math.min(this.value,t.value)}clone(){const t=new a(this.field);return t.value=this.value,t}}class u extends o{constructor(){super(...arguments),this.type="max",this.value=Number.MIN_VALUE}_insertValue(t){this.value=Math.max(this.value,t)}merge(t){this.value=Math.max(this.value,t.value)}clone(){const t=new u(this.field);return t.value=this.value,t}}class l extends o{constructor(){super(...arguments),this.type="sum",this.value=0}_insertValue(t){this.value+=t}merge(t){this.value+=t.value}clone(){const t=new l(this.field);return t.value=this.value,t}}class h extends o{constructor(){super(...arguments),this.type="avg",this._total=0,this._count=0}get value(){return this._total/this._count}_insertValue(t){this._total+=t,this._count+=1}merge(t){this._total+=t._total,this._count+=t._count}clone(){const t=new h(this.field);return t._total=this._total,t._count=this._count,t}}class c extends o{constructor(){super(...arguments),this.type="avg_angle",this._x=0,this._y=0,this._count=0}get value(){const t=this._x/this._count,e=this._y/this._count,r=180/Math.PI;return Math.atan2(e,t)*r}_insertValue(t){this._x=this._x+Math.cos(t*s),this._y=this._y+Math.sin(t*s),this._count+=1}merge(t){this._x+=t._x,this._y+=t._y,this._count+=t._count}clone(){const t=new c(this.field);return t._x=this._x,t._y=this._y,t._count=this._count,t}}class d extends o{constructor(){super(...arguments),this._frequencies=new Map}get value(){let t,e=0;for(const[r,n]of this._frequencies.entries())n>e&&(e=n,t=r);return t}_insertValue(t){const e=this._frequencies.get(t);null!=e?this._frequencies.set(t,e+1):this._frequencies.set(t,1)}merge(t){for(const[e,r]of t._frequencies.entries()){const t=this._frequencies.get(e);null!=t?this._frequencies.set(e,t+r):this._frequencies.set(e,r)}}clone(){const t=new d(this.field);return t._frequencies=new Map(this._frequencies),t}}},97633:(t,e,r)=>{r.d(e,{P:()=>s});var n=r(73250);class s{constructor(t){this._valid=n.y.create(t),this._data=new Array(t)}has(t){return this._valid.has(t)}set(t,e){this._valid.set(t),this._data[t]=e}get(t){return this._data[t]}}},98453:(t,e,r)=>{r.d(e,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},98988:(t,e,r)=>{r.r(e),r.d(e,{canProjectWithoutEngine:()=>Z,getTransformation:()=>D,getTransformations:()=>W,initializeProjection:()=>$,isEqualBaseGCS:()=>J,isLoaded:()=>O,isLoadedOrLoad:()=>z,isLoadedOrLoadFor:()=>C,load:()=>R,project:()=>G,projectExtent:()=>it,projectMany:()=>j,projectMultipoint:()=>H,projectOrLoad:()=>q,projectOrLoadMany:()=>B,projectPoint:()=>Q,projectPolygon:()=>nt,projectPolyline:()=>et,projectWithZConversion:()=>U,projectWithoutEngine:()=>V,requiresLoad:()=>N,test:()=>X,tryProjectWithZConversion:()=>L,unload:()=>Y});var n=r(49186),s=r(74887),i=r(62788),o=r(95488),a=r(51850),u=r(21276),l=r(73941),h=r(5443),c=r(48526),d=r(83290),_=r(86738),f=r(39829),p=r(82799),g=r(16930),m=r(9762),y=r(37539);function b(t,e,r,n,s,i){return w[0]=t,w[1]=e,w[2]=r,(0,m.projectBuffer)(w,n,0,s,i,0)}const w=(0,a.vt)();let x=0;class I{static fromGE(t){const e=new I;return e._wkt=t.wkt,e._wkid=t.wkid,e._isInverse=t.isInverse,e}constructor(t){this.uid=x++,t?(this._wkt=null!=t.wkt?t.wkt:null,this._wkid=null!=t.wkid?t.wkid:-1,this._isInverse=null!=t.isInverse&&!0===t.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(t){this._wkt=t,this.uid=x++}get wkid(){return this._wkid}set wkid(t){this._wkid=t,this.uid=x++}get isInverse(){return this._isInverse}set isInverse(t){this._isInverse=t,this.uid=x++}getInverse(){const t=new I;return t._wkt=this.wkt,t._wkid=this._wkid,t._isInverse=!this.isInverse,t}}class v{static cacheKey(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}static fromGE(t){const e=new v;let r="";for(const n of t.steps){const t=I.fromGE(n);e.steps.push(t),r+=t.uid.toString()+","}return e._cachedProjection={},e._gtlistentry=null,e._chain=r,e}constructor(t){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,t?.steps)for(const e of t.steps)e instanceof I?this.steps.push(e):this.steps.push(new I({wkid:e.wkid,wkt:e.wkt,isInverse:e.isInverse}))}getInverse(){const t=new v;t.steps=[];for(let e=this.steps.length-1;e>=0;e--){const r=this.steps[e];t.steps.push(r.getInverse())}return t}getGTListEntry(){let t="";for(const e of this.steps)t+=e.uid.toString()+",";return t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t),this._gtlistentry}assignCachedGe(t,e,r){this._cachedProjection[v.cacheKey(t,e)]=r}getCachedGeTransformation(t,e){let r="";for(const t of this.steps)r+=t.uid.toString()+",";r!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=r);const n=this._cachedProjection[v.cacheKey(t,e)];return void 0===n?null:n}}var M=r(21325),T=r(62815);let F=null,S=null,k=null,A={};const P=new o.I;function O(){return!!F&&(0,d.i)()}function z(){return!!O()||((0,i.gc)(P),R(),!1)}function C(t,e){return!t||!e||Z(t,e)||z()}function N(t,e){return!Z(t,e)&&!O()}function R(t){return null==k&&(k=Promise.all([(0,d.l)(),r.e(9930).then(r.bind(r,49930)).then(t=>t.g),r.e(2731).then(r.bind(r,12731))])),k.then(([,e,{hydratedAdapter:r}])=>{(0,s.Te)(t),S=r,F=e.default,F._enableProjection(d.p),P.notify()})}function G(t,e,r=null,n=null){return Array.isArray(t)?0===t.length?[]:((0,u.H)(t),j(S,t,t[0].spatialReference,e,r,n)):((0,u.f)(t),j(S,[t],t.spatialReference,e,r,n)[0])}function j(t,e,r,n,s=null,i=null){if(null==r||null==n)return e;if(Z(r,n,s))return e.map(t=>V(t,r,n));if(null==s&&(0,l.jA)(r))return e.map(t=>V(t,r,g.A.WGS84)).map(t=>L(t,n));if(null==s&&(0,l.jA)(n))return e.map(t=>L(t,g.A.WGS84)).map(t=>V(t,g.A.WGS84,n));if(null==s){const t=v.cacheKey(r,n);void 0!==A[t]?s=A[t]:(null==(s=D(r,n,void 0))&&(s=new v),A[t]=s)}if(null==F||null==t)throw new E;return null!=i?F._project(t,e,r,n,s,i):F._project(t,e,r,n,s)}function q(t,e){const r=B([t],e);return null!=r.pending?{pending:r.pending,geometry:null}:null!=r.geometries?{pending:null,geometry:r.geometries[0]}:{pending:null,geometry:null}}function B(t,e){if(!O())for(const r of t)if(null!=r&&!(0,M.aI)(r.spatialReference,e)&&(0,M.fn)(r.spatialReference)&&(0,M.fn)(e)&&!Z(r.spatialReference,e))return(0,i.gc)(P),{pending:R(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,M.aI)(t.spatialReference,e)?t:(0,M.fn)(t.spatialReference)&&(0,M.fn)(e)?L(t,e):null)}}function D(t,e,r=null){if(null==t||null==e)return null;if(null==F||null==S)throw new E;const n=F._getTransformation(S,t,e,r,r?.spatialReference);return null!==n?v.fromGE(n):null}function W(t,e,r=null){if(null==F||null==S)throw new E;const n=F._getTransformationBySuitability(S,t,e,r,r?.spatialReference);if(null!==n){const t=[];for(const e of n)t.push(v.fromGE(e));return t}return[]}class E extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function Y(){F=null,S=null,k=null,A={}}const X={get loadPromise(){return k}};function L(t,e){try{const r=G(t,e);if(null==r)return null;"xmin"in t&&"xmin"in r&&(r.zmin=t.zmin,r.zmax=t.zmax);const n=(0,T.N)(r.type,t.spatialReference,e);return null!=n&&n(r),r}catch(t){if(!(t instanceof E))throw t;return null}}async function U(t,e,r){const n=t.spatialReference;return null!=n&&null!=e&&await $(n,e,null,r),L(t,e)}function Z(t,e,r){return!r&&(!!(0,M.aI)(t,e)||(0,M.fn)(t)&&(0,M.fn)(e)&&!!(0,y.jd)(t,e))}function J(t,e){if((0,M.aI)(t,e))return!0;if(!(0,M.fn)(t)||!(0,M.fn)(e))return!1;const r=(0,M.oT)(t)||(0,M.K8)(t)||(0,M.x1)(t),n=(0,M.oT)(e)||(0,M.K8)(e)||(0,M.x1)(e);return r&&n}async function $(t,e,r,n){if(O())return(0,s.NO)(n);if(Array.isArray(t)){for(const{source:e,dest:r,geographicTransformation:s}of t)if(e&&r&&!Z(e,r,s))return R(n)}else if(t&&e&&!Z(t,e,r))return R(n);return(0,s.NO)(n)}function V(t,e,r){return t?"x"in t?K(t,e,new _.A,r,0):"xmin"in t?ot(t,e,new h.A,r,0):"rings"in t?st(t,e,new f.A,r,0):"paths"in t?rt(t,e,new p.A,r,0):"points"in t?tt(t,e,new c.A,r,0):null:null}function Q(t,e,r=e.spatialReference,n=0){return null!=r&&null!=t.spatialReference&&null!=K(t,t.spatialReference,e,r,n)}function K(t,e,r,n,s){ut[0]=t.x,ut[1]=t.y;const i=t.z;return ut[2]=void 0!==i?i:s,(0,m.projectBuffer)(ut,e,0,ut,n,0)?(r.x=ut[0],r.y=ut[1],r.spatialReference=n,void 0!==i||(0,l.xP)(n)?(r.z=ut[2],r.hasZ=!0):(r.z=void 0,r.hasZ=!1),void 0===t.m?(r.m=void 0,r.hasM=!1):(r.m=t.m,r.hasM=!0),r):null}function H(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=tt(t,t.spatialReference,e,r,n)}function tt(t,e,r,n,s){const{points:i,hasZ:o,hasM:a}=t,u=[],h=i.length,c=[];for(const t of i)c.push(t[0],t[1],o?t[2]:s);if(!(0,m.projectBuffer)(c,e,0,c,n,0,h))return null;const d=o||(0,l.xP)(n);for(let t=0;t<h;++t){const e=3*t,r=c[e],n=c[e+1];d&&a?u.push([r,n,c[e+2],i[t][3]]):d?u.push([r,n,c[e+2]]):a?u.push([r,n,i[t][2]]):u.push([r,n])}return r.points=u,r.spatialReference=n,r.hasZ=o,r.hasM=a,r}function et(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=rt(t,t.spatialReference,e,r,n)}function rt(t,e,r,n,s){const{paths:i,hasZ:o,hasM:a}=t,u=[];if(!at(i,o??!1,a??!1,e,u,n,s))return null;const h=o||(0,l.xP)(n);return r.paths=u,r.spatialReference=n,r.hasZ=h,r.hasM=a,r}function nt(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=st(t,t.spatialReference,e,r,n)}function st(t,e,r,n,s){const{rings:i,hasZ:o,hasM:a}=t,u=[];if(!at(i,o??!1,a??!1,e,u,n,s))return null;const h=o||(0,l.xP)(n);return r.rings=u,r.spatialReference=n,r.hasZ=h,r.hasM=a,r}function it(t,e,r=e.spatialReference,n=0){return null!=t.spatialReference&&null!=r&&null!=ot(t,t.spatialReference,e,r,n)}function ot(t,e,r,n,s){const{xmin:i,ymin:o,xmax:a,ymax:u,hasZ:h,hasM:c}=t;if(!b(i,o,h?t.zmin:s,e,ut,n))return null;const d=h||(0,l.xP)(n);return r.xmin=ut[0],r.ymin=ut[1],d&&(r.zmin=ut[2]),b(a,u,h?t.zmax:s,e,ut,n)?(r.xmax=ut[0],r.ymax=ut[1],d&&(r.zmax=ut[2]),c&&(r.mmin=t.mmin,r.mmax=t.mmax),r.spatialReference=n,r):null}function at(t,e,r,n,s,i,o=0){const a=new Array;for(const r of t)for(const t of r)a.push(t[0],t[1],e?t[2]:o);if(!(0,m.projectBuffer)(a,n,0,a,i,0))return!1;let u=0;s.length=0;const h=e||(0,l.xP)(i);for(const e of t){const t=new Array;for(const n of e)h&&r?t.push([a[u++],a[u++],a[u++],n[3]]):h?t.push([a[u++],a[u++],a[u++]]):r?(t.push([a[u++],a[u++],n[2]]),u++):(t.push([a[u++],a[u++]]),u++);s.push(t)}return!0}const ut=(0,a.vt)()},99996:(t,e,r)=>{r.d(e,{Y:()=>P});var n=r(66131),s=r(44208),i=r(44729),o=r(15032),a=r(36745),u=r(70328),l=r(65864),h=r(32011),c=r(62577),d=r(27647),_=r(90708),f=r(43334),p=r(92722),g=r(98623),m=r(97633);const y=(0,s.A)("featurelayer-simplify-thresholds")??[.5,.5,.5,.5],b=y[0],w=y[1],x=y[2],I=y[3],v=(0,s.A)("featurelayer-simplify-payload-size-factors")??[1,2,4],M=v[0],T=v[1],F=v[2],S=(0,s.A)("featurelayer-simplify-mobile-factor")??2,k=(0,s.A)("esri-mobile"),A=4294967295;class P{constructor(t){this.metadata=t,this.type="FeatureSetReader",this._overrides=null,this._joined=[],this._objectIdToIndex=null,this._boundsBuffer=[],this._caches=new Map,this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}destroy(){}[Symbol.dispose](){this.destroy()}getAreaSimplificationThreshold(t,e){let r=1;const n=k?S:1;e>4e6?r=F*n:e>1e6?r=T*n:e>5e5?r=M*n:e>1e5&&(r=n);let s=0;return t>4e3?s=I*r:t>2e3?s=x*r:t>100?s=w:t>15&&(s=b),s}getBounds(t){!function(t,e){if(!(t.length>e))for(;t.length<=e;)t.push(0)}(this._boundsBuffer,4*this.getIndex()+4);const e=this.getBoundsXMin();if(e===A||!isFinite(e))return!1;if(0===this.getBoundsXMin()){const e=this.readGeometryWorldSpace();if(e?.isPoint&&0===e.coords[0]&&0===e.coords[1])return(0,u.BI)(t,0,0,0,0),!0;if(!e)return this.setBoundsXMin(A),!1;let r=1/0,n=1/0,s=-1/0,i=-1/0;return e.forEachVertex((t,e)=>{r=Math.min(r,t),n=Math.min(n,e),s=Math.max(s,t),i=Math.max(i,e)}),this.setBoundsXMin(r),this.setBoundsYMin(n),this.setBoundsXMax(s),this.setBoundsYMax(i),(0,u.BI)(t,r,n,s,i),!0}const r=this.getBoundsXMin(),n=this.getBoundsYMin(),s=this.getBoundsXMax(),i=this.getBoundsYMax();return(0,u.BI)(t,r,n,s,i),!0}getBoundsXMin(){return this._boundsBuffer[4*this.getIndex()]}setBoundsXMin(t){this._boundsBuffer[4*this.getIndex()]=t}getBoundsYMin(){return this._boundsBuffer[4*this.getIndex()+1]}setBoundsYMin(t){this._boundsBuffer[4*this.getIndex()+1]=t}getBoundsXMax(){return this._boundsBuffer[4*this.getIndex()+2]}setBoundsXMax(t){this._boundsBuffer[4*this.getIndex()+2]=t}getBoundsYMax(){return this._boundsBuffer[4*this.getIndex()+3]}setBoundsYMax(t){this._boundsBuffer[4*this.getIndex()+3]=t}readAttributeAsTimestamp(t){const e=this.readAttribute(t);return"string"==typeof e?new Date(e).getTime():"number"==typeof e||null==e?e:null}readAttribute(t,e=!1){const r=this._readAttribute(t,e);if(void 0!==r)return r;for(const r of this._joined){r.setIndex(this.getIndex());const n=r._readAttribute(t,e);if(void 0!==n)return n}}readAttributes(){const t=this._readAttributes();for(const e of this._joined){e.setIndex(this.getIndex());const r=e._readAttributes();for(const e of Object.keys(r))t[e]=r[e]}return t}joinAttributes(t){this._joined.push(t)}registerOverrides(t){this._overrides=t}withoutOverrides(){const t=this.copy();return t._overrides=null,t}readOptimizedFeatureWorldSpace(){const t=this.readGeometryWorldSpace(),e=this.readAttributes(),r=this.readCentroidWorldSpace();return new f.Om(t,e,r,this.getObjectId(),this.getDisplayId())}readLegacyFeatureForDisplay(){const t=this.readCentroidForDisplay();return{attributes:this.readAttributes(),geometry:this.readLegacyGeometryForDisplay(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyFeatureWorldSpace(){const t=this.readCentroidWorldSpace();return{attributes:this.readAttributes(),geometry:this._readLegacyGeometryWorldSpace(),centroid:(t&&{x:t.coords[0],y:t.coords[1]})??null}}readLegacyGeometryForDisplay(){const t=this.readGeometryForDisplay();return(0,_.zv)(t,this.geometryType,!1,!1)}readXForDisplay(){return this._readX()}readYForDisplay(){return this._readY()}readXWorldSpace(){const t=this._readX(),e=this.getInTransform();return null==e?t:t*e.scale[0]+e.translate[0]}readYWorldSpace(){const t=this._readY(),e=this.getInTransform();return null==e?t:e.translate[1]-t*e.scale[1]}readGeometryForDisplay(){const t=this._readGeometryDeltaDecoded(!0);if(!t){const t=this._createDeltaQuantizedGeometryFromServerCentroid();return t?t.deltaDecode():null}return t}readGeometryForDisplayTransformed(t){let e=this.readGeometryForDisplay();if(e&&"esriGeometryPolyline"===this.metadata.geometryType&&(e=(0,_.kz)(new p.A,e,this.hasZ,this.hasM,this.metadata.geometryType,t.scale[0])),e&&(e=(0,_.hK)(e,t,this.metadata.geometryType,this.hasZ,this.hasM)),!e){const e=this.readCentroidForDisplay();if(!e)return null;const r=(0,c.IE)(t,e.coords[0]),n=(0,c.B2)(t,e.coords[1]);return this._createDeltaQuantizedExtrudedGeometry(r,n).deltaDecode()}return e}readGeometryWorldSpace(){let t=this._readGeometry();if(t||(t=this._createDeltaQuantizedGeometryFromServerCentroid()),!t)return null;const e=t.clone(),r=this.getInTransform();return null!=r&&(0,_.Ch)(e,e,this.hasZ,this.hasM,r),e}readCentroidForDisplay(){const t=this.readGeometryForDisplay();return t?this._computeDisplayCentroid(t):this._readServerCentroid()}readCentroidWorldSpace(){const t=this.readGeometryForDisplay(),e=t?this._computeDisplayCentroid(t):this._readServerCentroid();if(!e)return null;const r=e.clone(),n=this.getInTransform();return null!=n&&(0,_.Ch)(r,r,this.hasZ,this.hasM,n),r}setCache(t){let e=this._caches.get(t);null==e&&(e=new m.P(this.getSize()),this._caches.set(t,e)),this._activeCache=e}setCachedValue(t){this._activeCache.set(this.getIndex(),t)}hasCachedValue(){return this._activeCache.has(this.getIndex())}getCachedValue(){return this._activeCache.get(this.getIndex())}_readGeometryDeltaDecoded(t){const e=this._readGeometry(t);return"esriGeometryPoint"!==this.geometryType&&e&&this.getInTransform()?e.deltaDecode():e}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(t){this._contextTimeZone=t}readArcadeFeature(){return this}hasField(t){return this.fields.has(t)||this._joined.some(e=>e.hasField(t))}geometry(){const t=this.readGeometryWorldSpace(),e=(0,_.zv)(t,this.geometryType,this.hasZ,this.hasM),r=(0,l.rS)(e);if(r){if(!this.metadata.outSpatialReference)throw new Error("InternalError: Expected spatial reference to be defined");r.spatialReference=this.metadata.outSpatialReference}return r}autocastArcadeDate(t,e){return e&&e instanceof Date?this.isUnknownDateTimeField(t)?n.lY.unknownDateJSToArcadeDate(e):n.lY.dateJSAndZoneToArcadeDate(e,this.contextTimeZone??g.qU):e}isUnknownDateTimeField(t){return this.metadata.fieldsIndex.getTimeZone(t)===g.L5}field(t){let e=this.fields.get(t);if(e)switch(e.type){case"date-only":case"esriFieldTypeDateOnly":return i.n.fromReader(this.readAttribute(t,!1));case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(this.readAttribute(t,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(this.readAttribute(t,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(t,this.readAttribute(t,!0));default:return this.readAttribute(t,!1)}for(const r of this._joined)if(r.setIndex(this.getIndex()),e=r.fields.get(t),e)switch(e.type){case"date-only":case"esriFieldTypeDateOnly":return i.n.fromReader(r._readAttribute(t,!1));case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(r._readAttribute(t,!1));case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(r._readAttribute(t,!1));case"date":case"esriFieldTypeDate":return this.autocastArcadeDate(t,r._readAttribute(t,!0));default:return this.readAttribute(t,!1)}throw new Error(`Field ${t} does not exist`)}setField(t,e){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this.fields.fields.map(t=>t.name)}castToText(t=!1){if(!t)return JSON.stringify(this.readLegacyFeatureForDisplay());const e=this.readLegacyFeatureForDisplay();if(!e)return JSON.stringify(null);const r={geometry:e.geometry,attributes:{...e.attributes??{}}};for(const t in r.attributes){const e=r.attributes[t];e instanceof Date&&(r.attributes[t]=e.getTime())}return JSON.stringify(r)}gdbVersion(){return null}fullSchema(){return this.metadata.arcadeSchema}castAsJson(t=null){return{attributes:this._readAttributes(),geometry:!0===t?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(t=null,e=null){return Promise.resolve(this.castAsJson(e))}_getExists(){if(this._overrides){const t=this.getObjectId();return!this._overrides.hasOverride(t)}return!0}_computeDisplayCentroid(t){if(null==this.getInTransform())return(0,d.Q)(new p.A,t,this.hasM,this.hasZ);const e=a.z.fromOptimized(t,this.geometryType);e.yFactor*=-1;const r=(0,h.d)(e);return r?(r[1]*=-1,new p.A([],r)):null}copyInto(t){t._joined=this._joined,t._overrides=this._overrides,t._objectIdToIndex=this._objectIdToIndex,t._boundsBuffer=this._boundsBuffer,t._activeCache=this._activeCache,t._caches=this._caches,t._contextTimeZone=this._contextTimeZone}_readLegacyGeometryWorldSpace(){const t=this.readGeometryWorldSpace();return(0,_.zv)(t,this.geometryType,!1,!1)}_createDeltaQuantizedGeometryFromServerCentroid(){const t=this._readServerCentroid();if(!t)return null;const[e,r]=t.coords;return this._createDeltaQuantizedExtrudedGeometry(e,r)}_createDeltaQuantizedExtrudedGeometry(t,e){return"esriGeometryPolyline"===this.geometryType?this._createDeltaQuantizedExtrudedLine(t,e):this._createDeltaQuantizedExtrudedQuad(t,e)}_createDeltaQuantizedExtrudedQuad(t,e){return new p.A([5],[t-1,e,1,-1,1,1,-1,1,-1,-1])}_createDeltaQuantizedExtrudedLine(t,e){return new p.A([2],[t-1,e+1,1,-1])}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3359,5740],{23154:(e,t,r)=>{r.d(t,{K:()=>d,Q:()=>s});var a=r(77548),n=r(24183);const o=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,t){const{loadContext:r,...o}=t||{},s=r?await r.fetchServiceMetadata(e,o):await(0,n.V)(e,o),i=(0,a.G$)();p(s),u(s);const l={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return l;const c=`${(0,a.$x)()??e}/layers`,y=r?await r.fetchServiceMetadata(c,o):await(0,n.V)(c,o);return p(y),u(y),l.layersJSON={layers:y.layers,tables:y.tables},l}function i(e){const{type:t}=e;return!!t&&o.has(t)}function l(e){return"Table"===e.type}function u(e){e.layers=e.layers?.filter(i),e.tables=e.tables?.filter(l)}function c(e){e.type||="Feature Layer"}function y(e){e.type||="Table"}function p(e){e.layers?.forEach(c),e.tables?.forEach(y)}function d(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},24183:(e,t,r)=>{r.d(t,{V:()=>n});var a=r(78888);async function n(e,t){const{data:r}=await(0,a.A)(e,{responseType:"json",query:{f:"json",...t?.customParameters,token:t?.apiKey}});return r}},26121:(e,t,r)=>{r.d(t,{ci:()=>s,dL:()=>n});var a=r(49186);async function n(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}r(77548);const o=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function s(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new a.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>new a.A("url:unsupported",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter(({name:e})=>!(o.has(e)||t.includes(e)))),a&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}},33359:(e,t,r)=>{r.d(t,{save:()=>E,saveAs:()=>U});var a=r(4576),n=(r(44208),r(49186),r(71530)),o=r(60694),s=r(23154),i=r(77548),l=r(88788),u=r(10407);const c="Feature Service",y="feature-layer-utils",p=`${y}-save`,d=`${y}-save-as`;function f(e){return{isValid:(0,i.W_)(e)&&(!("dynamicDataSource"in e)||!e.dynamicDataSource),errorMessage:"Feature layer should be a layer or table in a map or feature service"}}function m(e,t){const r=(0,l.m)(e,"portal-item");return t?.isTable&&(r.layerContainerType="tables"),r}function w(e){const t=[],r=[];for(const{layer:a,layerJSON:n}of e)h(a)?r.push(n):t.push(n);return{layers:t,tables:r}}function h(e,t){return e.isTable}function b(e){return w([e])}async function v(e,t){return/\/\d+\/?$/.test(e.url)?b(t[0]):async function(e,t){if(e.reverse(),!t)return w(e);const a=await async function(e,t){let a=await e.fetchData("json");if(function(e){return!!(e&&Array.isArray(e.layers)&&Array.isArray(e.tables))}(a))return a;a||={},function(e){e.layers||=[],e.tables||=[]}(a);const{layer:{url:n,customParameters:o,apiKey:i}}=t[0];return await async function(e,t,a){const{url:n,customParameters:o,apiKey:i}=t,{serviceJSON:l,layersJSON:u}=await(0,s.Q)(n,{customParameters:o,apiKey:i}),c=I(e.layers,l.layers,a),y=I(e.tables,l.tables,a);e.layers=c.itemResources,e.tables=y.itemResources;const p=[...c.added,...y.added],d=u?[...u.layers,...u.tables]:[];await async function(e,t,a,n){const o=await async function(e){const t=[];e.forEach(({type:e})=>{switch((0,s.K)(e)){case"CatalogLayer":t.push(Promise.all([r.e(1214),r.e(708),r.e(364),r.e(8628),r.e(2593),r.e(2696)]).then(r.bind(r,79003)).then(e=>e.default));break;case"FeatureLayer":t.push(Promise.all([r.e(1214),r.e(9953),r.e(3029),r.e(9784),r.e(4342)]).then(r.bind(r,29784)).then(e=>e.default));break;case"OrientedImageryLayer":t.push(Promise.all([r.e(1214),r.e(9953),r.e(3029),r.e(9784),r.e(9361)]).then(r.bind(r,9352)).then(e=>e.default))}});const a=await Promise.all(t),n=new Map;return e.forEach(({type:e},t)=>{n.set(e,a[t])}),n}(t),i=t.map(({id:e,type:t})=>new(o.get(t))({url:a,layerId:e,sourceJSON:n.find(({id:t})=>t===e)}));await Promise.allSettled(i.map(e=>e.load())),i.forEach(t=>{const{layerId:r,loaded:a,defaultPopupTemplate:n}=t;if(!a||null==n)return;const o={id:r,popupInfo:n.toJSON()};L(t,"ArcGISFeatureLayer"===t.operationalLayerType?o:{...o,layerType:t.operationalLayerType},e)})}(e,p,n,d)}(a,{url:n??"",customParameters:o,apiKey:i},t.map(e=>e.layer.layerId)),a}(t,e);for(const t of e)L(t.layer,t.layerJSON,a);return function(e,t){const r=[],a=[];for(const{layer:e}of t){const{isTable:t,layerId:n}=e;t?a.push(n):r.push(n)}S(e.layers,r),S(e.tables,a)}(a,e),a}(t,e)}function S(e,t){if(e.length<2)return;const r=[];for(const{id:t}of e)r.push(t);(0,a.aI)(r.sort(g),t.slice().sort(g))&&e.sort((e,r)=>{const a=t.indexOf(e.id),n=t.indexOf(r.id);return a<n?-1:a>n?1:0})}function g(e,t){return e<t?-1:e>t?1:0}function I(e,t,r){const n=(0,a.iv)(e,t,(e,t)=>e.id===t.id);e=e.filter(e=>!n.removed.some(t=>t.id===e.id));const o=n.added;return o.forEach(({id:t})=>{e.push({id:t})}),{itemResources:e,added:o.filter(({id:e})=>!r.includes(e))}}function L(e,t,r){e.isTable?P(r.tables,t):P(r.layers,t)}function P(e,t){const r=e.findIndex(({id:e})=>e===t.id);-1===r?e.push(t):e[r]=t}function T(e){if(!("layerType"in e))return!!e.charts?.length;switch(e.layerType){case"OrientedImageryLayer":return!!e.charts?.length;case"SubtypeGroupLayer":return!!e.layers.some(e=>!!e.charts?.length);case"SubtypeGroupTable":return!!e.tables.some(e=>!!e.charts?.length);case"CatalogLayer":return!!e.footprintLayer?.charts?.length}}function O(e,t){let r=0,a=0,n=0,o=0;for(const e of[...t.layers,...t.tables])if(T(e)&&o++,"layerType"in e)switch(e.layerType){case"OrientedImageryLayer":r++;break;case"SubtypeGroupLayer":a++;break;case"SubtypeGroupTable":n++}(0,u.Sm)(e,u.mm.ORIENTED_IMAGERY_LAYER,r>0),(0,u.Sm)(e,u.mm.SUBTYPE_GROUP_LAYER,a>0),(0,u.Sm)(e,u.mm.SUBTYPE_GROUP_TABLE,n>0),(0,u.Sm)(e,u.mm.CHARTS,o>0)}async function A(e,t,r){O(t,r)}async function N(e,t,r){const{url:a,layerId:n,title:s,fullExtent:i,isTable:l}=e,c=(0,o.qg)(a);t.url=("FeatureServer"===c?.serverType?a:`${a}/${n}`)??null,t.title||=s,t.extent=null,l||null==i||(t.extent=await(0,u.sQ)(i)),function(e,t,r){(0,u.OM)(t,u.mm.METADATA),(0,u.Sm)(t,u.mm.MULTI_LAYER,e.length>1),(0,u.Sm)(t,u.mm.SINGLE_LAYER,1===e.length),(0,u.Sm)(t,u.mm.TABLE,r.tables.length>0&&0===r.layers.length),O(t,r)}([e],t,r)}async function E(e,t){return(0,n.UN)({layer:e,itemType:c,validateLayer:f,createJSONContext:t=>m(t,e),createItemData:(e,t)=>v(t,[e]),errorNamePrefix:p,setItemProperties:A},t)}async function U(e,t,r){return(0,n.Uh)({layer:e,itemType:c,validateLayer:f,createJSONContext:t=>m(t,e),createItemData:(e,t)=>Promise.resolve(b(e)),errorNamePrefix:d,newItem:t,setItemProperties:N},r)}},46130:(e,t,r)=>{r.d(t,{v:()=>n});var a=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},71530:(e,t,r)=>{r.d(t,{UN:()=>b,Uh:()=>v});var a=r(49186),n=r(46130),o=r(20655),s=r(80812),i=r(88788),l=r(10407),u=r(26121);async function c(e){const{layer:t,errorNamePrefix:r,validateLayer:n}=e;await t.load(),function(e,t,r){const n=r(e);if(!n.isValid)throw new a.A(`${t}:invalid-parameters`,n.errorMessage,{layer:e})}(t,r,n)}function y(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function p(e){const{item:t,errorNamePrefix:r,layer:n,validateItem:o}=e;if(function(e){const{item:t,itemType:r,additionalItemType:n,errorNamePrefix:o,layer:s}=e,i=[r];if(n&&i.push(n),!i.includes(t.type)){const e=i.map(e=>`'${e}'`).join(", ");throw new a.A(`${o}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:s})}}(e),o){const e=o(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:n})}}function d(e){const{layer:t,errorNamePrefix:r}=e,{portalItem:n}=t;if(!n)throw new a.A(`${r}:portal-item-not-set`,y(t,"requires the portalItem property to be set"));if(!n.loaded)throw new a.A(`${r}:portal-item-not-loaded`,y(t,"cannot be saved to a portal item that does not exist or is inaccessible"));p({...e,item:n})}function f(e){const{newItem:t,itemType:r}=e;let a=s.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=o.A.getDefault(),p({...e,item:a}),a}function m(e){return(0,i.m)(e,"portal-item")}async function w(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,u.ci)(t,{errorName:"layer-write:unsupported"},r),a}function h(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t))}async function b(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e),d(e);const u=r.portalItem,y=o?o(u):m(u),p=await w(r,y,{...t,supplementalUnsupportedErrors:l}),f=await a({layer:r,layerJSON:p},u);return await(s?.(r,u,f)),h(u),await u.update({data:f}),(0,n.v)(y),await(i?.(u,y)),u}async function v(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:s,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e);const u=f(e),y=o?o(u):m(u),p=await w(r,y,{...t,supplementalUnsupportedErrors:l}),d=await a({layer:r,layerJSON:p},u);return await s(r,u,d),h(u),await async function(e,t,r){const a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(u,d,t),r.portalItem=u,(0,n.v)(y),await(i?.(u,y)),u}},76553:(e,t,r)=>{function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},88788:(e,t,r)=>{r.d(t,{m:()=>s,v:()=>o});var a=r(84952),n=r(20655);function o(e,t){return{...i(e,t),readResourcePaths:[]}}function s(e,t,r){const n=(0,a.An)(e.itemUrl);return{...i(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t){return{origin:t,url:(0,a.An)(e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}}}]);
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3546],{5682:(e,t,n)=>{n.d(t,{s1:()=>l});var r=n(78888),o=(n(4576),n(49186),n(44208),n(58083),n(9093)),i=(n(38954),n(51850)),s=(n(98988),n(16930),n(27993),n(19419));n(97937),n(74887),n(30524),n(61956);var u=n(59418);n(73941),n(48353),n(68197);var a=n(91829);(0,a.fA)(0,0,0,.2);(0,a.fA)(0,0,0,.2),n(34727);var c=n(57005);async function l(e,t,n,o,i,s,a,c){const l=[];for(const r of t)if(r&&i.includes(r.name)){const t=`${e}/nodes/${n}/attributes/${r.key}/0`;l.push({url:t,storageInfo:r})}const d=await Promise.allSettled(l.map(e=>(0,r.A)(e.url,{responseType:"array-buffer",query:{...a,token:s},signal:c?.signal}).then(t=>(0,u.m0)(e.storageInfo,t.data)))),f=[];for(const e of o){const t={};for(let n=0;n<d.length;n++){const r=d[n];if("fulfilled"===r.status){const o=r.value;t[l[n].storageInfo.name]=(0,u.E5)(o,e)}}f.push(t)}return f}n(22911),(0,s.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,s.vt)(),(0,s.vt)(),new c.ab,(0,i.vt)(),new Array(72),(0,o.vt)()},15976:(e,t,n)=>{n.d(t,{o:()=>o});var r=n(74333);class o extends r.n{constructor(e,t){super(e,"sampler2D",2,(n,r,o)=>n.bindTexture(e,t(r,o)))}}},20304:(e,t,n)=>{n.d(t,{m:()=>o});var r=n(74333);class o extends r.n{constructor(e,t,n){super(e,"float",1,(r,o,i)=>r.setUniform1f(e,t(o,i),n))}}},22911:(e,t,n)=>{n.d(t,{NL:()=>f});var r=n(49255),o=n(99208),i=n(40710),s=n(33079),u=n(28421),a=n(20304),c=n(31821),l=n(15976),d=n(63761);function f(e,t){if(!(0,r.RN)(t.output))return;const{emissionSource:n,hasEmissiveTextureTransform:f,bindType:h}=t,p=3===n||4===n||5===n;p&&(e.include(o.r,t),e.fragment.uniforms.add(1===h?new d.N("texEmission",e=>e.textureEmissive):new l.o("texEmission",e=>e.textureEmissive)));const v=2===n||p;v&&e.fragment.uniforms.add(1===h?new s.t("emissiveBaseColor",e=>e.emissiveBaseColor):new i.W("emissiveBaseColor",e=>e.emissiveBaseColor));const g=0!==n;g&&7!==n&&6!==n&&4!==n&&5!==n&&e.fragment.uniforms.add(1===h?new a.m("emissiveStrength",e=>e.emissiveStrength):new u.J("emissiveStrength",e=>e.emissiveStrength));const m=7===n,y=5===n,w=1===n||6===n||m;e.fragment.code.add(c.H`
|
|
2
|
-
vec4 getEmissions(vec3 symbolColor) {
|
|
3
|
-
vec4 emissions = ${v?y?"emissiveSource == 0 ? vec4(emissiveBaseColor, 1.0): vec4(symbolColor, 1.0)":"vec4(emissiveBaseColor, 1.0)":w?m?"emissiveSource == 0 ? vec4(0.0): vec4(symbolColor, 1.0)":"vec4(symbolColor, 1.0)":"vec4(0.0)"};
|
|
4
|
-
${(0,c.If)(p,`${(0,c.If)(y,`if(emissiveSource == 0) {\n emissions *= textureLookup(texEmission, ${f?"emissiveUV":"vuv0"});\n }`,`emissions *= textureLookup(texEmission, ${f?"emissiveUV":"vuv0"});`)}\n \n \n emissions.w = emissions.rgb == vec3(0.0) ? 0.0: emissions.w;`)}
|
|
5
|
-
${(0,c.If)(g,"emissions.rgb *= emissiveStrength;")}
|
|
6
|
-
return emissions;
|
|
7
|
-
}
|
|
8
|
-
`)}n(25634)},25634:(e,t,n)=>{n.d(t,{m8:()=>u,NV:()=>c});var r=n(97768),o=n(74887);class i{constructor(e){this._material=e.material,this._techniques=e.techniques,this._output=e.output}dispose(){}get _stippleTextures(){return this._techniques.context?.stippleTextures}get _markerTextures(){return this._techniques.context?.markerTextures}getTechnique(e,t){return this._techniques.get(e,this._material.getConfiguration(this._output,t))}ensureResources(e){return 2}}var s=n(65786);class u extends i{constructor(e){super(e),this._numLoading=0,this._disposed=!1,this._textures=e.textures,this.updateTexture(e.textureId),this._acquire(e.normalTextureId,e=>this._textureNormal=e),this._acquire(e.emissiveTextureId,e=>this._textureEmissive=e),this._acquire(e.occlusionTextureId,e=>this._textureOcclusion=e),this._acquire(e.metallicRoughnessTextureId,e=>this._textureMetallicRoughness=e)}dispose(){super.dispose(),this._texture=(0,r.Gz)(this._texture),this._textureNormal=(0,r.Gz)(this._textureNormal),this._textureEmissive=(0,r.Gz)(this._textureEmissive),this._textureOcclusion=(0,r.Gz)(this._textureOcclusion),this._textureMetallicRoughness=(0,r.Gz)(this._textureMetallicRoughness),this._disposed=!0}ensureResources(e){return 0===this._numLoading?2:1}get textureBindParameters(){return new c(this._texture?.glTexture??null,this._textureNormal?.glTexture??null,this._textureEmissive?.glTexture??null,this._textureOcclusion?.glTexture??null,this._textureMetallicRoughness?.glTexture??null)}updateTexture(e){null!=this._texture&&e===this._texture.id||(this._texture=(0,r.Gz)(this._texture),this._acquire(e,e=>this._texture=e))}_acquire(e,t){if(null==e)return void t(null);const n=this._textures.acquire(e);if((0,o.$X)(n))return++this._numLoading,void n.then(e=>{if(this._disposed)return(0,r.Gz)(e),void t(null);t(e)}).finally(()=>--this._numLoading);t(n)}}class a extends s.Y{constructor(e=null){super(),this.textureEmissive=e}}class c extends a{constructor(e,t,n,r,o,i,s){super(n),this.texture=e,this.textureNormal=t,this.textureOcclusion=r,this.textureMetallicRoughness=o,this.scale=i,this.normalTextureTransformMatrix=s}}},27993:(e,t,n)=>{n.d(t,{F:()=>i}),n(98988);var r=n(16930),o=n(65806);function i(e,t,n,r,i){return!(null==t||null==r||e.length<2)&&(s.x=e[0],s.y=e[1],s.z=e[2],s.spatialReference=t,(0,o.g)(s,n,r,i))}const s={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:r.A.WGS84,type:"point"}},28421:(e,t,n)=>{n.d(t,{J:()=>o});var r=n(74333);class o extends r.n{constructor(e,t,n){super(e,"float",2,(r,o,i)=>r.setUniform1f(e,t(o,i),n))}}},31821:(e,t,n)=>{n.d(t,{H:()=>r,If:()=>o});const r=(e,...t)=>{let n="";for(let r=0;r<t.length;r++)n+=e[r]+t[r];return n+=e[e.length-1],n};function o(e,t,n=""){return e?t:n}r.int=e=>Math.round(e).toString(),r.float=e=>e.toPrecision(8)},33079:(e,t,n)=>{n.d(t,{t:()=>o});var r=n(74333);class o extends r.n{constructor(e,t,n){super(e,"vec3",1,(r,o,i)=>r.setUniform3fv(e,t(o,i),n))}}},37203:(e,t,n)=>{n.d(t,{Ax:()=>m,Me:()=>c,mb:()=>p});var r=n(49186);const o=!0,i={identifierOffset:0,identifierLength:10,versionOffset:10,checksumOffset:12,byteCount:16};function s(e,t,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(e,n+i.identifierOffset,i.identifierLength)),version:t.getUint16(n+i.versionOffset,o),checksum:t.getUint32(n+i.checksumOffset,o)}}const u={sizeLo:0,sizeHi:4,minX:8,minY:16,minZ:24,maxX:32,maxY:40,maxZ:48,errorX:56,errorY:64,errorZ:72,count:80,reserved:84,byteCount:88};function a(e,t){return{sizeLo:e.getUint32(t+u.sizeLo,o),sizeHi:e.getUint32(t+u.sizeHi,o),minX:e.getFloat64(t+u.minX,o),minY:e.getFloat64(t+u.minY,o),minZ:e.getFloat64(t+u.minZ,o),maxX:e.getFloat64(t+u.maxX,o),maxY:e.getFloat64(t+u.maxY,o),maxZ:e.getFloat64(t+u.maxZ,o),errorX:e.getFloat64(t+u.errorX,o),errorY:e.getFloat64(t+u.errorY,o),errorZ:e.getFloat64(t+u.errorZ,o),count:e.getUint32(t+u.count,o),reserved:e.getUint32(t+u.reserved,o)}}function c(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:c}=s(e,t,n);if(n+=i.byteCount,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(c>1)throw new r.A("lepcc-decode-error","Unknown version");const d=a(t,n);if(n+=u.byteCount,d.sizeHi*2**32+d.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const f=new Float64Array(3*d.count),h=[],p=[],v=[],g=[];if(n=l(e,n,h),n=l(e,n,p),n=l(e,n,v),n=l(e,n,g),n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad length");let m=0,y=0;for(let e=0;e<h.length;e++){y+=h[e];let t=0;for(let n=0;n<p[e];n++){t+=v[m];const e=g[m];f[3*m]=Math.min(d.maxX,d.minX+2*d.errorX*t),f[3*m+1]=Math.min(d.maxY,d.minY+2*d.errorY*y),f[3*m+2]=Math.min(d.maxZ,d.minZ+2*d.errorZ*e),m++}}return{errorX:d.errorX,errorY:d.errorY,errorZ:d.errorZ,result:f}}function l(e,t,n){const r=[];t=d(e,t,r);const o=[];for(let i=0;i<r.length;i++){o.length=0,t=d(e,t,o);for(let e=0;e<o.length;e++)n.push(o[e]+r[i])}return t}function d(e,t,n){const i=new DataView(e,t),s=i.getUint8(0),u=31&s,a=!!(32&s),c=(192&s)>>6;let l=0;if(0===c)l=i.getUint32(1,o),t+=5;else if(1===c)l=i.getUint16(1,o),t+=3;else{if(2!==c)throw new r.A("lepcc-decode-error","Bad count type");l=i.getUint8(1),t+=2}if(a)throw new r.A("lepcc-decode-error","LUT not implemented");const d=Math.ceil(l*u/8),f=new Uint8Array(e,t,d);let h=0,p=0,v=0;const g=-1>>>32-u;for(let e=0;e<l;e++){for(;p<u;)h|=f[v]<<p,p+=8,v+=1;n[e]=h&g,h>>>=u,p-=u,p+u>32&&(h|=f[v-1]>>8-p)}return t+v}const f={sizeLo:0,sizeHi:4,count:8,colorMapCount:12,lookupMethod:14,compressionMethod:15,byteCount:16};function h(e,t){return{sizeLo:e.getUint32(t+f.sizeLo,o),sizeHi:e.getUint32(t+f.sizeHi,o),count:e.getUint32(t+f.count,o),colorMapCount:e.getUint16(t+f.colorMapCount,o),lookupMethod:e.getUint8(t+f.lookupMethod),compressionMethod:e.getUint8(t+f.compressionMethod)}}function p(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:u}=s(e,t,n);if(n+=i.byteCount,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const a=h(t,n);if(n+=f.byteCount,a.sizeHi*2**32+a.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===a.lookupMethod||1===a.lookupMethod)&&0===a.compressionMethod){if(3*a.colorMapCount+a.count+n!==e.byteLength||a.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const t=new Uint8Array(e,n,3*a.colorMapCount),o=new Uint8Array(e,n+3*a.colorMapCount,a.count),i=new Uint8Array(3*a.count);for(let e=0;e<a.count;e++){const n=o[e];i[3*e]=t[3*n],i[3*e+1]=t[3*n+1],i[3*e+2]=t[3*n+2]}return i}if(0===a.lookupMethod&&0===a.compressionMethod){if(3*a.count+n!==e.byteLength||0!==a.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(e,n).slice()}if(a.lookupMethod<=2&&1===a.compressionMethod){if(n+3!==e.byteLength||1!==a.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=t.getUint8(n),i=t.getUint8(n+1),s=t.getUint8(n+2),u=new Uint8Array(3*a.count);for(let e=0;e<a.count;e++)u[3*e]=o,u[3*e+1]=i,u[3*e+2]=s;return u}throw new r.A("lepcc-decode-error","Bad method "+a.lookupMethod+","+a.compressionMethod)}const v={sizeLo:0,sizeHi:4,count:8,scaleFactor:12,bitsPerPoint:14,reserved:15,byteCount:16};function g(e,t){return{sizeLo:e.getUint32(t+v.sizeLo,o),sizeHi:e.getUint32(t+v.sizeHi,o),count:e.getUint32(t+v.count,o),scaleFactor:e.getUint16(t+v.scaleFactor,o),bitsPerPoint:e.getUint8(t+v.bitsPerPoint),reserved:e.getUint8(t+v.reserved)}}function m(e){const t=new DataView(e,0);let n=0;const{identifier:o,version:u}=s(e,t,n);if(n+=i.byteCount,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const a=g(t,n);if(n+=v.byteCount,a.sizeHi*2**32+a.sizeLo!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const c=new Uint16Array(a.count);if(8===a.bitsPerPoint){if(a.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint8Array(e,n,a.count);for(let e=0;e<a.count;e++)c[e]=t[e]*a.scaleFactor}else if(16===a.bitsPerPoint){if(2*a.count+n!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");const t=new Uint16Array(e,n,a.count);for(let e=0;e<a.count;e++)c[e]=t[e]*a.scaleFactor}else{const t=[];if(d(e,n,t)!==e.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let e=0;e<a.count;e++)c[e]=t[e]*a.scaleFactor}return c}},40710:(e,t,n)=>{n.d(t,{W:()=>o});var r=n(74333);class o extends r.n{constructor(e,t,n){super(e,"vec3",2,(r,o,i,s)=>r.setUniform3fv(e,t(o,i,s),n))}}},45671:(e,t,n)=>{n.d(t,{D8:()=>i,TO:()=>o});var r=n(30524);async function o(e,t=e.popupTemplate){if(null==t)return[];const n=await t.getRequiredFields(e.fieldsIndex),{lastEditInfoEnabled:o}=t,{objectIdField:i,typeIdField:s,globalIdField:u,relationships:a}=e;if(n.includes("*"))return["*"];const c=o?(0,r.eX)(e):[],l=(0,r.DB)(e.fieldsIndex,[...n,...c]);return s&&l.push(s),l&&i&&e.fieldsIndex?.has(i)&&!l.includes(i)&&l.push(i),l&&u&&e.fieldsIndex?.has(u)&&!l.includes(u)&&l.push(u),a&&a.forEach(t=>{const{keyField:n}=t;l&&n&&e.fieldsIndex?.has(n)&&!l.includes(n)&&l.push(n)}),l}function i(e,t){return e&&"object"==typeof e?t?.checkPopupEnabled&&"popupEnabled"in e&&!e.popupEnabled?null:"popupTemplate"in e&&e.popupTemplate?e.popupTemplate:null!=t&&t.defaultPopupTemplateEnabled&&"defaultPopupTemplate"in e&&e.defaultPopupTemplate?e.defaultPopupTemplate:null:null}},49255:(e,t,n)=>{function r(e){return 4===e||5===e||6===e||7===e}function o(e){return function(e){return s(e)||function(e){return 2===e}(e)}(e)||3===e}function i(e){return function(e){return 0===e}(e)||u(e)}function s(e){return i(e)||function(e){return 8===e||9===e}(e)}function u(e){return 1===e}function a(e){switch(e){case 2:case 4:case 5:case 6:case 7:return!0}return!1}n.d(t,{LG:()=>u,Mb:()=>s,PJ:()=>r,RN:()=>i,Vg:()=>a,iq:()=>o})},53466:(e,t,n)=>{n.d(t,{U:()=>i});var r=n(21818),o=n(31821);function i(e,t){switch(t.textureCoordinateType){case 1:return e.attributes.add("uv0","vec2"),e.varyings.add("vuv0","vec2"),void e.vertex.code.add(o.H`void forwardTextureCoordinates() { vuv0 = uv0; }`);case 2:return e.attributes.add("uv0","vec2"),e.attributes.add("uvRegion","vec4"),e.varyings.add("vuv0","vec2"),e.varyings.add("vuvRegion","vec4"),void e.vertex.code.add(o.H`void forwardTextureCoordinates() {
|
|
9
|
-
vuv0 = uv0;
|
|
10
|
-
vuvRegion = uvRegion;
|
|
11
|
-
}`);default:(0,r.Xb)(t.textureCoordinateType);case 0:return void e.vertex.code.add(o.H`void forwardTextureCoordinates() {}`);case 3:return}}},59418:(e,t,n)=>{n.d(t,{wH:()=>v,MA:()=>f,E5:()=>h,m0:()=>m});var r=n(49186),o=n(4718),i=n(53966),s=n(34275),u=n(37203);const a=()=>i.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(e,t,n){let o="",i=0;for(;i<n;){const s=e[t+i];if(s<128)o+=String.fromCharCode(s),i++;else if(s>=192&&s<224){if(i+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const u=(31&s)<<6|63&e[t+i+1];o+=String.fromCharCode(u),i+=2}else if(s>=224&&s<240){if(i+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const u=(15&s)<<12|(63&e[t+i+1])<<6|63&e[t+i+2];o+=String.fromCharCode(u),i+=3}else{if(!(s>=240&&s<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(i+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const u=(7&s)<<18|(63&e[t+i+1])<<12|(63&e[t+i+2])<<6|63&e[t+i+3];if(u>=65536){const e=55296+(u-65536>>10),t=56320+(1023&u);o+=String.fromCharCode(e,t)}else o+=String.fromCharCode(u);i+=4}}}return o}function l(e,t){const n={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<t.length;o++){const i=t[o],s=i.valueType||i.type,u=w[s];n.fields[i.property]=u(e,r),r+=y[s].BYTES_PER_ELEMENT}return n.byteCount=r,n}function d(e,t,n){const o=[];let i,s,u=0;for(s=0;s<e;s+=1){if(i=t[s],i>0){if(o.push(c(n,u,i-1)),0!==n[u+i-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);u+=i}return o}function f(e,t){return new(0,y[t.valueType])(e,t.byteOffset,t.count*t.valuesPerElement)}function h(e,t){if(!e)return null;const n=e[t];return(0,s.IY)(e)?n===s.PI?null:n:(0,s._G)(e)?n===s.h2?null:n:n!=n?null:n}function p(e,t,n){if(t!==e&&a().error(`Invalid ${n} buffer size\n expected: ${e}, actual: ${t})`),t<e)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:e,actualSize:t})}function v(e,t){const n=l(e,t&&t.header);let r=n.byteCount;const o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},i=n.fields,s=null!=i.vertexCount?i.vertexCount:i.count;for(const e of t.ordering){if(!t.vertexAttributes[e])continue;const n={...t.vertexAttributes[e],byteOffset:r,count:s},i=g[e]||"_"+e;o.vertexAttributes[i]=n,r+=b(n.valueType)*n.valuesPerElement*s}const u=i.faceCount;if(t.faces&&u){o.faces={};for(const e of t.ordering){if(!t.faces[e])continue;const n={...t.faces[e],byteOffset:r,count:u};o.faces[e]=n,r+=b(n.valueType)*n.valuesPerElement*u}}const a=i.featureCount;if(t.featureAttributes&&t.featureAttributeOrder&&a){o.featureAttributes={};for(const e of t.featureAttributeOrder){if(!t.featureAttributes[e])continue;const n={...t.featureAttributes[e],byteOffset:r,count:a};o.featureAttributes[e]=n,r+=("UInt64"===n.valueType?8:b(n.valueType))*n.valuesPerElement*a}}return p(r,e.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const g={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function m(e,t,n,i=!1){if("lepcc-rgb"===e.encoding)return i?(0,u.mb)(t):function(e){return Array.isArray(e)?e.length<s.y9?e:new Uint8Array(e):e.length<s.y9?Array.from(e):e}((0,u.mb)(t));if("lepcc-intensity"===e.encoding)return i?(0,u.Ax)(t):function(e){return Array.isArray(e)?e.length<s.y9?e:new Uint16Array(e):e.length<s.y9?Array.from(e):e}((0,u.Ax)(t));if(null!=e.encoding&&""!==e.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");e["attributeByteCounts "]&&!e.attributeByteCounts&&(a().warn("Warning: Trailing space in 'attributeByteCounts '."),e.attributeByteCounts=e["attributeByteCounts "]),"ObjectIds"===e.ordering[0]&&e.hasOwnProperty("objectIds")&&(a().warn("Warning: Case error in objectIds"),e.ordering[0]="objectIds");const c=function(e,t,n){const i=null!=t.header?l(e,t.header):{byteOffset:0,byteCount:0,fields:{count:n}},s={header:i,byteOffset:i.byteCount,byteCount:0,entries:Object.create(null)};let u=i.byteCount;for(let e=0;e<t.ordering.length;e++){const n=t.ordering[e],a=(0,o.o8)(t[n]);if(a.count=i.fields.count??0,"String"===a.valueType){if(a.byteOffset=u,a.byteCount=i.fields[n+"ByteCount"],"UTF-8"!==a.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:a.encoding});if(a.timeEncoding&&"ECMA_ISO8601"!==a.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:a.timeEncoding})}else{if(!x(a.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:a.valueType});{const e=b(a.valueType);u+=u%e!==0?e-u%e:0,a.byteOffset=u,a.byteCount=e*a.valuesPerElement*a.count}}u+=a.byteCount??0,s.entries[n]=a}return s.byteCount=u-s.byteOffset,s}(t,e,n);p(c.byteOffset+c.byteCount,t.byteLength,"attribute");const v=c.entries.attributeValues||c.entries.objectIds;if(v){if("String"===v.valueType){const e=c.entries.attributeByteCounts,n=f(t,e),r=function(e,t){return new Uint8Array(e,t.byteOffset,t.byteCount)}(t,v);return v.timeEncoding?function(e,t,n){return d(e,t,n).map(e=>{const t=e?Date.parse(e):null;return null==t||Number.isNaN(t)?null:t})}(e.count,n,r):d(e.count,n,r)}return i?f(t,v):function(e,t){const n=f(e,t);if(n.length>=s.y9)return n;const r=new Array;return n.forEach((e,t)=>r.push(h(n,t))),r}(t,v)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(e,t)=>new DataView(e,0).getFloat32(t,!0),Float64:(e,t)=>new DataView(e,0).getFloat64(t,!0),UInt8:(e,t)=>new DataView(e,0).getUint8(t),Int8:(e,t)=>new DataView(e,0).getInt8(t),UInt16:(e,t)=>new DataView(e,0).getUint16(t,!0),Int16:(e,t)=>new DataView(e,0).getInt16(t,!0),UInt32:(e,t)=>new DataView(e,0).getUint32(t,!0),Int32:(e,t)=>new DataView(e,0).getInt32(t,!0)};function x(e){return y.hasOwnProperty(e)}function b(e){return x(e)?y[e].BYTES_PER_ELEMENT:0}},63761:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(74333);class o extends r.n{constructor(e,t){super(e,"sampler2D",1,(n,r,o)=>n.bindTexture(e,t(r,o)))}}},65786:(e,t,n)=>{n.d(t,{Y:()=>r});const r=class{};new r},65806:(e,t,n)=>{n.d(t,{g:()=>s});var r=n(51850),o=n(98988),i=n(9762);function s(e,t,n,r){if((0,o.canProjectWithoutEngine)(e.spatialReference,n)){u[0]=e.x,u[1]=e.y;const o=e.z;return u[2]=o??r??0,(0,i.projectBuffer)(u,e.spatialReference,0,t,n,0)}const s=(0,o.tryProjectWithZConversion)(e,n);return!!s&&(t[0]=s?.x,t[1]=s?.y,t[2]=s?.z??r??0,!0)}const u=(0,r.vt)()},74333:(e,t,n)=>{n.d(t,{n:()=>r}),n(44208);class r{constructor(e,t,n,r,o=null){if(this.name=e,this.type=t,this.arraySize=o,this.bind={0:null,1:null,2:null},r)switch(n){case void 0:break;case 0:this.bind[0]=r;break;case 1:this.bind[1]=r;break;case 2:this.bind[2]=r}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}},99208:(e,t,n)=>{n.d(t,{r:()=>s});var r=n(53466),o=n(31821);function i(e){e.fragment.code.add(o.H`vec4 textureAtlasLookup(sampler2D tex, vec2 textureCoordinates, vec4 atlasRegion) {
|
|
12
|
-
vec2 atlasScale = atlasRegion.zw - atlasRegion.xy;
|
|
13
|
-
vec2 uvAtlas = fract(textureCoordinates) * atlasScale + atlasRegion.xy;
|
|
14
|
-
float maxdUV = 0.125;
|
|
15
|
-
vec2 dUVdx = clamp(dFdx(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
|
|
16
|
-
vec2 dUVdy = clamp(dFdy(textureCoordinates), -maxdUV, maxdUV) * atlasScale;
|
|
17
|
-
return textureGrad(tex, uvAtlas, dUVdx, dUVdy);
|
|
18
|
-
}`)}function s(e,t){const{textureCoordinateType:n}=t;if(0===n||3===n)return;e.include(r.U,t);const s=2===n;s&&e.include(i),e.fragment.code.add(o.H`
|
|
19
|
-
vec4 textureLookup(sampler2D tex, vec2 uv) {
|
|
20
|
-
return ${s?"textureAtlasLookup(tex, uv, vuvRegion)":"texture(tex, uv)"};
|
|
21
|
-
}
|
|
22
|
-
`)}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4841],{6557:(e,t,s)=>{s.r(t),s.d(t,{default:()=>w});var i=s(31635),r=s(21818),n=s(49186),o=s(97768),a=s(563),u=s(16930),h=s(70328),l=s(95422),c=s(8384),d=s(95466),f=s(30524),_=s(70581),m=s(30661),y=s(28923),g=s(44320),p=s(35258),z=s(16630);const b=new m.Z,x=8e3;class w{constructor(){this._files=[],this._queue=new a.QueueProcessor({concurrency:1,process:(e,t)=>this._executeQuery(e,t)})}async load(e){this.setCustomParameters(e.customParameters),this._files=await Promise.all(e.urls.map(t=>(0,_.DV)(t,{geometryInfo:e.geometryInfo,outSpatialReference:null,getCustomParameters:()=>this._customParameters}))),this._metadata=p.i.createFeature(e.metadata),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:e.geometryInfo?.geometryType??"esriGeometryPoint",featureIdInfo:{type:"object-id",fieldName:"rowId"},hasM:!1,hasZ:!1,spatialReference:u.A.fromJSON(e.geometryInfo?.spatialReference),aggregateAdapter:null,timeInfo:null,definitionExpression:null};const t=this._files[0];if(!t)return{extent:null};const s=t.fields().map(e=>({name:e.name,alias:e.name,type:e.type,attributeId:t.attributeIdFor(e.name)}));s.push({name:"__OBJECTID",alias:"ObjectId",type:"esriFieldTypeOID"});const{timeZoneByFieldName:r}=e.metadata.fieldsIndex,n=d.A.fromJSON({fields:s,timeZoneByFieldName:r});if(this._fieldsIndex=n,e.metadata.spatialReference&&(this._fullExtent=function(e,t){const s=(0,h.hZ)((0,h.vt)(),h.qv);for(const t of e){const e=(0,_.hD)(t);if(!e)return null;const i=e.columns[e.primary_column];if(!i.bbox)return null;const r=S(i.bbox);(0,h.RF)(s,r)}return{xmin:s[0],ymin:s[1],xmax:s[3],ymax:s[4],spatialReference:t}}(this._files,e.metadata.spatialReference)),null==this._fullExtent&&"location"===e.geometryInfo?.encoding.type){const{latitudeFieldName:t,longitudeFieldName:s}=e.geometryInfo.encoding,r=this._fieldsIndex.get(t)?.attributeId,n=this._fieldsIndex.get(s)?.attributeId,o=(0,h.hZ)((0,h.vt)(),h.qv);for(const e of this._files)for(const t of e.rowGroups()){const e={stack:[],error:void 0,hasError:!1};try{const s=(0,i.mS)(e,t.columnDescriptorForAttribute(r),!1),a=(0,i.mS)(e,t.columnDescriptorForAttribute(n),!1),u=[a.minValue(),s.minValue(),a.maxValue(),s.maxValue()];(0,h.DC)(o,u),t.free()}catch(t){e.error=t,e.hasError=!0}finally{(0,i.hk)(e)}}this._fullExtent={xmin:o[0],ymin:o[1],xmax:o[3],ymax:o[4],spatialReference:e.metadata.spatialReference}}return{extent:this._fullExtent}}destroy(){for(const e of this._files)e.free();this._queue.destroy()}setCustomParameters(e){this._customParameters=e}async queryFeatures(e,t){return this._validateQuery(e),e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0,(await this._enqueueQuery(e,t)).createQueryResponse()}async queryFeatureCount(e,t){return this._validateQuery(e),R(e)?(e.resultRecordCount=e.resultRecordCount??this._getFeatureCount(),e.resultOffset=e.resultOffset??0,delete e.outFields,delete e.returnGeometry,(await this._enqueueQuery(e,t)).createQueryResponseForCount()):this._getFeatureCount()}async queryObjectIds(e,t){return this._validateQuery(e),R(e)?(e.resultRecordCount=e.resultRecordCount?Math.min(e.resultRecordCount,8e3):8e3,e.resultOffset=e.resultOffset??0,delete e.returnGeometry,delete e.outFields,(await this._enqueueQuery(e,t)).items.map(e=>e.getObjectId())):Array.from({length:this._getFeatureCount()},(e,t)=>t)}async queryExtent(e,t){if(this._validateQuery(e),this._fullExtent&&!R(e))return{count:this._getFeatureCount(),extent:this._fullExtent};const s=(0,r.zI)(this._metadata.spatialReference);e.resultOffset=e.resultOffset??0,e.resultRecordCount=e.resultRecordCount??this._getFeatureCount(),e.returnGeometry=!0,delete e.outFields;const i=(0,h.hZ)((0,h.vt)(),h.qv),n=(0,h.vt)(),o=await this._enqueueQuery(e,t);let a=0;for(const e of o.items)e.getBounds(n)&&((0,h.RF)(i,n),a+=1);return{count:a,extent:(0,l.Wc)(i,s,e.outSR?(0,r.zI)(e.outSR):s,s,!1)}}_getFeatureCount(){return this._files.reduce((e,t)=>e+t.numRows(),0)}_validateQuery(e){if(e.outStatistics)throw new n.A("parquet:unsupported","Statistics queries are not supported",{query:e});if(e.orderByFields?.length)throw new n.A("parquet:unsupported","Queries using orderBy are not supported",{query:e})}async*_fetchChunks(e,t){const s=this._files[0].numRows(),i=Math.ceil(s/x);for(let s=0;s<i;s++){const i=s*x,r=await this._files[0].readChunk(i,x,e.fields,e.returnGeometry,t);for(const e of r){const t=new z.s(this._metadata,this._fieldsIndex,e,0),s=new y.j(t,null,0,!1),i=I(this._metadata,s,this._queryEngineParams);yield i}}}_enqueueQuery(e,t){return this._queue.push(e,t)}async _executeQuery(e,t){let s=e.resultRecordCount,i=e.resultOffset;(0,o.Lw)(s),(0,o.Lw)(i),delete e.resultRecordCount,delete e.resultOffset;const r=await this._getReadParams(e),n=[];for await(const o of this._fetchChunks(r,t)){const r=await o.executeQueryForOpaqueFeatures(e,t);if(r.length>i){const t=r.slice(i,Math.min(s,r.length));for(const e of t)n.push(e);if(i=0,s-=t.length,0===s)return new c.G(n,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._metadata.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:b})}else i-=r.length}return new c.G(n,e,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._metadata.spatialReference,objectIdField:"rowId",hasM:!1,hasZ:!1,featureAdapter:b})}async _getReadParams(e){const t=new Set;if(e.where&&await(0,f.hz)(t,this._fieldsIndex,e.where),e.outStatistics)for(const s of e.outStatistics)null!=s.onStatisticField&&t.add(s.onStatisticField);if(e.outFields)for(const s of e.outFields)t.add(s);return{fields:this._getAttributeIds(Array.from(t)),returnGeometry:!!e.returnGeometry||!!e.geometry}}_getAttributeIds(e){if(null==e)return new Uint16Array;if(e.includes("*"))return new Uint16Array(this._fieldsIndex.fields.map(e=>e.attributeId).filter(e=>null!=e));const t=[];for(const s of e){const e=this._fieldsIndex.get(s);if(null==e)throw new n.A("unknown-field",`Field ${s} does not exist`);null==e.attributeId||t.push(e.attributeId)}return new Uint16Array(t)}}function R(e){return Object.keys(e).some(e=>function(e){switch(e){case"resultOffset":case"resultRecordCount":case"aggregateIds":case"distance":case"gdbVersion":case"geometry":case"having":case"timeExtent":case"where":case"objectIds":case"historicMoment":return!0;default:return!1}}(e))}function I(e,t,s){const i=new g.I(e);return i.insert(t),new l.do({...s,featureStore:i})}function S(e){switch(e.length){case 4:return(0,h.Jt)((0,h.vt)(),e);case 6:return e;default:throw new n.A("parquet:protocol-violation","Invalid Geoparquet file. BoundingBox size must be 4 or 6.",{bbox:e})}}},66344:(e,t,s)=>{s.d(t,{q:()=>a});const i=!!(0,s(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class r{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db=null}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,t){const s=this._db.get(e.id+t);return s?.size??0}put(e,t,s,r,o){t=e.id+t;const a=this._db.get(t);if(a&&(this._size-=a.size,e.size-=a.size,this._db.delete(t),a.entry!==s&&this._notifyRemove(t,a.entry,a.size,0)),r>this._maxSize)return void this._notifyRemove(t,s,r,0);if(void 0===s)return void console.warn("Refusing to cache undefined entry ");if(!r||r<0)return i||console.warn(`Refusing to cache entry with size ${r} for key ${t}`),void this._notifyRemove(t,s,0,0);const u=1+Math.max(o,-4)- -3;this._db.set(t,new n(s,r,u)),this._size+=r,e.size+=r,this._checkSize()}updateSize(e,t,s,i){t=e.id+t;const r=this._db.get(t);if(r&&r.entry===s){for(this._size-=r.size,e.size-=r.size;i>this._maxSize;){const e=this._notifyRemove(t,s,i,1);if(!(null!=e&&e>0))return void this._db.delete(t);i=e}r.size=i,this._size+=i,e.size+=i,this._checkSize()}}pop(e,t){t=e.id+t;const s=this._db.get(t);if(s)return this._size-=s.size,e.size-=s.size,this._db.delete(t),++this._hit,s.entry;++this._miss}get(e,t){t=e.id+t;const s=this._db.get(t);if(void 0!==s)return this._db.delete(t),s.lives=s.lifetime,this._db.set(t,s),++this._hit,s.entry;++this._miss}peek(e,t){const s=this._db.get(e.id+t);return s?++this._hit:++this._miss,s?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},s=new Array;this._db.forEach((e,i)=>{const r=e.lifetime;s[r]=(s[r]||0)+e.size,this._users.forEach(s=>{const{id:r,name:n}=s;if(i.startsWith(r)){const s=t[n]||0;t[n]=s+e.size}})});const i={};this._users.forEach(e=>{const s=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const r=t[s]||0;t[s]=r,i[s]=Math.round(100*e.hitRate)+"%"}else i[s]="0%"});const r=Object.keys(t);r.sort((e,s)=>t[s]-t[e]),r.forEach(s=>e[s]=Math.round(t[s]/2**20)+"MB / "+i[s]);for(let t=s.length-1;t>=0;--t){const i=s[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){const t=e.id;this._db.forEach((e,s)=>{s.startsWith(t)&&(this._size-=e.size,this._db.delete(s),this._notifyRemove(s,e.entry,e.size,0))}),e.size=0}clearAll(){this._db.forEach((e,t)=>this._notifyRemove(t,e.entry,e.size,0)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}*values(e){for(const[t,s]of this._db)t.startsWith(e.id)&&(yield s.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,s,i){const r=this._users.get(e.split(o)[0])?.removeFunc,n=r?.(t,i,s);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((e,t)=>this._checkSizeLimits(e,t)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,t){null==t||t<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,t)}_checkSizeLimits(e,t){const s=t??this;if(s.size<=e)return;const i=t?.id;let r=!0;for(;r;){r=!1;for(const[n,a]of this._db)if(0===a.lifetime&&(!i||n.startsWith(i))){const i=t??this._users.get(n.split(o)[0]);if(this._purgeItem(n,a,i),s.size<=.9*e)return;r||=this._db.has(n)}}for(const[r,n]of this._db)if(!i||r.startsWith(i)){const i=t??this._users.get(r.split(o)[0]);if(this._purgeItem(r,n,i),s.size<=.9*e)return}}_purgeItem(e,t,s){if(this._db.delete(e),t.lives<=1){this._size-=t.size,s&&(s.size-=t.size);const i=this._notifyRemove(e,t.entry,t.size,1);null!=i&&i>0&&(this._size+=i,s&&(s.size+=i),t.lives=t.lifetime,t.size=i,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}class n{constructor(e,t,s){this.entry=e,this.size=t,this.lifetime=s,this.lives=s}}const o=":";class a{constructor(e,t){this.removeFunc=t,this._storage=new r,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(e,t,s=1){this._storage.put(this,e,t,s,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},69540:(e,t,s)=>{s.d(t,{O:()=>h,P:()=>l});var i=s(31635),r=s(65008),n=(s(44208),s(4718)),o=(s(53966),s(97768)),a=s(88620),u=s(40608);const h=e=>{const t=e;let s=class extends t{clone(e){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const s=t.metadata,i=t.store,r={},u=new Map;for(const t in s){const o=s[t],a=i?.originOf(t),h=o.clonable;if(o.readOnly||!1===h||7!==a&&0!==a&&5!==a&&4!==a)continue;const l=this[t];let c=null;if("function"==typeof h)c=h(l,e);else if("reference"===h)c=l;else if(c=(0,n.TU)(l,e),null!=l&&null==c)continue;0===a?u.set(t,c):r[t]=c}const h=new(0,Object.getPrototypeOf(this).constructor)(r);if(u.size){const e=(0,a.oY)(h)?.store;if(e)for(const[t,s]of u)e.set(t,s,0)}return h}};return s=(0,i.Cg)([(0,u.$)("esri.core.Clonable")],s),s},l=h(r.A)}}]);
|