@arcgis/core 5.0.0-next.18 → 5.0.0-next.19
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/AttributeBinsGraphic.js +1 -1
- package/analysis/ElevationProfile/ElevationProfileLineGround.js +1 -1
- package/analysis/ElevationProfile/ElevationProfileLineInput.js +1 -1
- package/analysis/ElevationProfile/ElevationProfileLineQuery.js +1 -1
- package/analysis/ElevationProfile/ElevationProfileLineScene.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/sources/FeatureLayerOGC.js +5 -0
- package/arcade/featureset/sources/FeatureLayerRelated.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/057d59ee6144e5890780.js +1 -0
- package/assets/esri/core/workers/chunks/{31b5900119dd7cd9e7d3.js → 0a6ad58ca4ca0cba2fa0.js} +1 -1
- package/assets/esri/core/workers/chunks/0d8d3d0de49064971874.js +1 -0
- package/assets/esri/core/workers/chunks/{b87bc987983b31c13f64.js → 0f1b9d69961dad0b922f.js} +1 -1
- package/assets/esri/core/workers/chunks/110cc01dd6af7ee125d4.js +1 -0
- package/assets/esri/core/workers/chunks/11687718c8635eb7bf37.js +1 -0
- package/assets/esri/core/workers/chunks/{5f6df4a3376b52ead53f.js → 14f994b1dd682bf2d61a.js} +1 -1
- package/assets/esri/core/workers/chunks/3538eb39ebb58acedd67.js +1 -0
- package/assets/esri/core/workers/chunks/{02a22dd6d208a925cc5a.js → 52cf643621662712dc85.js} +1 -1
- package/assets/esri/core/workers/chunks/5755b11272b777507612.js +1 -0
- package/assets/esri/core/workers/chunks/{d69265ceabfa92b40bb7.js → 58969dde8c3d0b2a9829.js} +1 -1
- package/assets/esri/core/workers/chunks/6e4829b52ade3e41ccc4.js +1 -0
- package/assets/esri/core/workers/chunks/{4a89e120be142ab58a27.js → 7224b321606116fd691c.js} +1 -1
- package/assets/esri/core/workers/chunks/{257f17b3836a623a9dbe.js → 795b09ff7a8f4e91f4dc.js} +1 -1
- package/assets/esri/core/workers/chunks/{3ac7562ea90f91a9f30c.js → 82b2741e75c2e9b88252.js} +1 -1
- package/assets/esri/core/workers/chunks/{5d2e5774768d8f290343.js → b656e8fd374113523404.js} +1 -1
- package/assets/esri/core/workers/chunks/bccb9ac572bc093fb177.js +1 -0
- package/assets/esri/core/workers/chunks/{79dbfa2b9b332ca0002f.js → c52161b94c0fb071747e.js} +1 -1
- package/assets/esri/core/workers/chunks/db76958fd9f54b6bd324.js +1 -0
- package/assets/esri/core/workers/chunks/e61d7762b56e36dc7e8a.js +1 -0
- package/assets/esri/core/workers/chunks/{b30897952494a3e5b9fe.js → e69c2b613bd0210e25ba.js} +1 -1
- package/assets/esri/core/workers/chunks/f43e1e1a1b2eb737e00c.js +1 -0
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/chunks/GlowComposition.glsl.js +46 -46
- package/chunks/ShadedColorMaterial.glsl.js +10 -10
- package/config.js +1 -1
- package/editing/templateUtils.js +1 -1
- package/interfaces.d.ts +120 -23
- package/kernel.js +1 -1
- package/layers/BingMapsLayer.js +1 -1
- package/layers/PointCloudLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/libs/parquet/parquet.js +1 -1
- package/package.json +1 -1
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/rest/support/QueryMixin.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/undoredo/support/ServiceVersionInfo.js +1 -1
- package/undoredo/support/Services.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/RasterHighlightTechnique.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/raster/processor/textureUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/BaseRasterHighlightShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterRangeHighlightShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterXYBandHighlightShader.js +5 -0
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/math.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/stretch.js +1 -1
- package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
- package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
- package/views/3d/environment/SceneViewEnvironment.js +1 -1
- package/views/3d/environment/SunLighting.js +1 -1
- package/views/3d/environment/VirtualLighting.js +1 -1
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/webgl-engine/effects/glow/GlowRenderNode.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/SplitFeatureWorkflow.js +1 -1
- package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
- package/widgets/Editor/VisibleElements.js +1 -1
- package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/FeatureTable/Grid/Column.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/MeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/TriangulatedMeasurementAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/widgets/OrientedImageryViewer/services/ImageMeasurementService.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/smartMapping/SizeSlider.js +1 -1
- package/widgets/support/SelectionList/VisibleElements.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/assets/esri/core/workers/chunks/080268f78436a2f0d996.js +0 -1
- package/assets/esri/core/workers/chunks/18474c017ddacd1d3d2c.js +0 -1
- package/assets/esri/core/workers/chunks/27e6a6c5610007ac6a54.js +0 -1
- package/assets/esri/core/workers/chunks/5415fbcc7ed203fc5575.js +0 -1
- package/assets/esri/core/workers/chunks/631fb2e62e48f8be4051.js +0 -1
- package/assets/esri/core/workers/chunks/722da7a39a0ad9300752.js +0 -1
- package/assets/esri/core/workers/chunks/9595aabbaf411eceea1e.js +0 -1
- package/assets/esri/core/workers/chunks/a470f662d73aa8d5d90f.js +0 -1
- package/assets/esri/core/workers/chunks/a57751f3d78524c876cd.js +0 -1
- package/assets/esri/core/workers/chunks/ac366221e8636b60aee5.js +0 -1
- package/assets/esri/core/workers/chunks/dec336700cfb83abbbeb.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7464],{50805:(e,t,o)=>{o.d(t,{L0:()=>f,Ot:()=>c,W4:()=>p,uV:()=>y});var r=o(31635),i=o(25482),s=o(10107),n=(o(44208),o(53966),o(87811),o(93223)),a=o(64108);let p=class extends i.o{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,r.Cg)([(0,s.MZ)({type:Number})],p.prototype,"nodesPerPage",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],p.prototype,"rootIndex",void 0),(0,r.Cg)([(0,s.MZ)({type:String})],p.prototype,"lodSelectionMetricType",void 0),p=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SNodePageDefinition")],p);let l=class extends i.o{constructor(){super(...arguments),this.factor=1}};(0,r.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],l.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],l.prototype,"factor",void 0),l=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SMaterialTexture")],l);let d=class extends i.o{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,r.Cg)([(0,s.MZ)({type:[Number]})],d.prototype,"baseColorFactor",void 0),(0,r.Cg)([(0,s.MZ)({type:l})],d.prototype,"baseColorTexture",void 0),(0,r.Cg)([(0,s.MZ)({type:l})],d.prototype,"metallicRoughnessTexture",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],d.prototype,"metallicFactor",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],d.prototype,"roughnessFactor",void 0),d=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SMaterialPBRMetallicRoughness")],d);let y=class extends i.o{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,r.Cg)([(0,n.e)({opaque:"opaque",mask:"mask",blend:"blend"})],y.prototype,"alphaMode",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],y.prototype,"alphaCutoff",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean})],y.prototype,"doubleSided",void 0),(0,r.Cg)([(0,n.e)({none:"none",back:"back",front:"front"})],y.prototype,"cullFace",void 0),(0,r.Cg)([(0,s.MZ)({type:l})],y.prototype,"normalTexture",void 0),(0,r.Cg)([(0,s.MZ)({type:l})],y.prototype,"occlusionTexture",void 0),(0,r.Cg)([(0,s.MZ)({type:l})],y.prototype,"emissiveTexture",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number]})],y.prototype,"emissiveFactor",void 0),(0,r.Cg)([(0,s.MZ)({type:d})],y.prototype,"pbrMetallicRoughness",void 0),y=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SMaterialDefinition")],y);let u=class extends i.o{};(0,r.Cg)([(0,s.MZ)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],u.prototype,"name",void 0),(0,r.Cg)([(0,n.e)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],u.prototype,"format",void 0),u=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3STextureFormat")],u);let c=class extends i.o{constructor(){super(...arguments),this.atlas=!1}};(0,r.Cg)([(0,s.MZ)({type:[u]})],c.prototype,"formats",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean})],c.prototype,"atlas",void 0),c=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3STextureSetDefinition")],c);let g=class extends i.o{};(0,r.Cg)([(0,n.e)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],g.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],g.prototype,"component",void 0),g=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryAttribute")],g);let h=class extends i.o{};(0,r.Cg)([(0,n.e)({draco:"draco"})],h.prototype,"encoding",void 0),(0,r.Cg)([(0,s.MZ)({type:[String]})],h.prototype,"attributes",void 0),h=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryCompressedAttributes")],h);let v=class extends i.o{constructor(){super(...arguments),this.offset=0}};(0,r.Cg)([(0,s.MZ)({type:Number})],v.prototype,"offset",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"position",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"normal",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"uv0",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"color",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"uvRegion",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"featureId",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"faceRange",void 0),(0,r.Cg)([(0,s.MZ)({type:h})],v.prototype,"compressedAttributes",void 0),v=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryBuffer")],v);let f=class extends i.o{};(0,r.Cg)([(0,n.e)({triangle:"triangle"})],f.prototype,"topology",void 0),(0,r.Cg)([(0,s.MZ)()],f.prototype,"geometryBuffers",void 0),f=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryDefinition")],f)},73179:(e,t,o)=>{o.d(t,{b:()=>p,h:()=>l});var r=o(4718),i=o(53966),s=o(84952),n=o(60694),a=o(10873);function p(e){const{nonStandardUrlAllowed:t=!1,separator:o}=e??{},s=(0,r.o8)(a.OZ),p=s.json?.write;return"object"==typeof p&&p&&(p.writer=function(e,t,r,i){(0,n.LS)(this,e,o,t,i)}),{...s,set:function(e){if(null==e)return void this._set("url",e);const o=(0,n.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:i.A.getLogger(this)});this._set("url",o.url),null!=o.layerId&&this._set("layerId",o.layerId)}}}function l(e,t){const{separator:o}=t??{},r=(0,s.An)(e.url);return null!=r&&(null!=e.dynamicDataSource?r.path=(0,s.fj)(r.path,"dynamicLayer"):null!=e.layerId&&(r.path=(0,s.fj)(r.path,o??"",e.layerId.toString()))),r}},74660:(e,t,o)=>{o.r(t),o.d(t,{default:()=>_});var r=o(31635),i=o(69540),s=o(49186),n=o(53966),a=o(25728),p=o(74887),l=o(36708),d=o(10107),y=(o(44208),o(87811),o(36005)),u=o(64108),c=o(87024),g=o(4146),h=o(52136),v=o(18768),f=o(69208),m=o(16131),C=o(8303),M=o(25036),S=o(58947),I=o(10873),Z=o(50805),b=o(58325),x=o(56776),T=o(97159),L=o(16215);let w=class extends((0,S.w)((0,v.b)((0,m.q)((0,C.A)((0,M.j)((0,a.P)((0,f.d)((0,h.p)((0,i.OU)(g.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this.path=null,this.definitionExpression=null,this._canReplaceTerrain=!1}initialize(){this.addHandles((0,l.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,l.OH))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,o){this._modificationsSource={url:(0,T.f)(e,o),context:o}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,p.QP)(e)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await b.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new s.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new s.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new s.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(e){const t="Integrated mesh layers";(0,x.XF)(n.A.getLogger(this),(0,x.B)(t,"absolute-height",e)),(0,x.XF)(n.A.getLogger(this),(0,x.tW)(t,e))}get replacesTerrain(){return this._canReplaceTerrain&&this._isUsedAsGroundLayer}get _isUsedAsGroundLayer(){return(0,L.S)(this.parent)}};(0,r.Cg)([(0,d.MZ)({type:String,readOnly:!0})],w.prototype,"geometryType",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide"]})],w.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:["IntegratedMeshLayer"]})],w.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,d.MZ)({json:{read:!1},readOnly:!0})],w.prototype,"type",void 0),(0,r.Cg)([(0,d.MZ)({type:Z.W4,readOnly:!0,clonable:!1})],w.prototype,"nodePages",void 0),(0,r.Cg)([(0,d.MZ)({type:[Z.uV],readOnly:!0,clonable:!1})],w.prototype,"materialDefinitions",void 0),(0,r.Cg)([(0,d.MZ)({type:[Z.Ot],readOnly:!0,clonable:!1})],w.prototype,"textureSetDefinitions",void 0),(0,r.Cg)([(0,d.MZ)({type:[Z.L0],readOnly:!0,clonable:!1})],w.prototype,"geometryDefinitions",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],w.prototype,"serviceUpdateTimeStamp",void 0),(0,r.Cg)([(0,d.MZ)({type:b.A,clonable:e=>e?.clone()??e}),(0,c.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],w.prototype,"modifications",void 0),(0,r.Cg)([(0,y.w)(["web-scene","portal-item"],"modifications")],w.prototype,"readModifications",null),(0,r.Cg)([(0,d.MZ)(I.Yj)],w.prototype,"elevationInfo",null),(0,r.Cg)([(0,d.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],w.prototype,"path",void 0),(0,r.Cg)([(0,d.MZ)()],w.prototype,"replacesTerrain",null),(0,r.Cg)([(0,d.MZ)()],w.prototype,"_isUsedAsGroundLayer",null),(0,r.Cg)([(0,d.MZ)()],w.prototype,"_canReplaceTerrain",void 0),w=(0,r.Cg)([(0,u.$)("esri.layers.IntegratedMeshLayer")],w);const _=w}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7464],{50805:(e,t,o)=>{o.d(t,{L0:()=>f,Ot:()=>c,W4:()=>p,uV:()=>y});var r=o(31635),i=o(25482),s=o(10107),n=(o(44208),o(53966),o(87811),o(93223)),a=o(64108);let p=class extends i.o{constructor(){super(...arguments),this.nodesPerPage=null,this.rootIndex=0,this.lodSelectionMetricType=null}};(0,r.Cg)([(0,s.MZ)({type:Number})],p.prototype,"nodesPerPage",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],p.prototype,"rootIndex",void 0),(0,r.Cg)([(0,s.MZ)({type:String})],p.prototype,"lodSelectionMetricType",void 0),p=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SNodePageDefinition")],p);let l=class extends i.o{constructor(){super(...arguments),this.factor=1}};(0,r.Cg)([(0,s.MZ)({type:Number,json:{read:{source:"textureSetDefinitionId"}}})],l.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],l.prototype,"factor",void 0),l=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SMaterialTexture")],l);let d=class extends i.o{constructor(){super(...arguments),this.baseColorFactor=[1,1,1,1],this.baseColorTexture=null,this.metallicRoughnessTexture=null,this.metallicFactor=1,this.roughnessFactor=1}};(0,r.Cg)([(0,s.MZ)({type:[Number]})],d.prototype,"baseColorFactor",void 0),(0,r.Cg)([(0,s.MZ)({type:l})],d.prototype,"baseColorTexture",void 0),(0,r.Cg)([(0,s.MZ)({type:l})],d.prototype,"metallicRoughnessTexture",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],d.prototype,"metallicFactor",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],d.prototype,"roughnessFactor",void 0),d=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SMaterialPBRMetallicRoughness")],d);let y=class extends i.o{constructor(){super(...arguments),this.alphaMode="opaque",this.alphaCutoff=.25,this.doubleSided=!1,this.cullFace="none",this.normalTexture=null,this.occlusionTexture=null,this.emissiveTexture=null,this.emissiveFactor=null,this.pbrMetallicRoughness=null}};(0,r.Cg)([(0,n.e)({opaque:"opaque",mask:"mask",blend:"blend"})],y.prototype,"alphaMode",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],y.prototype,"alphaCutoff",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean})],y.prototype,"doubleSided",void 0),(0,r.Cg)([(0,n.e)({none:"none",back:"back",front:"front"})],y.prototype,"cullFace",void 0),(0,r.Cg)([(0,s.MZ)({type:l})],y.prototype,"normalTexture",void 0),(0,r.Cg)([(0,s.MZ)({type:l})],y.prototype,"occlusionTexture",void 0),(0,r.Cg)([(0,s.MZ)({type:l})],y.prototype,"emissiveTexture",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number]})],y.prototype,"emissiveFactor",void 0),(0,r.Cg)([(0,s.MZ)({type:d})],y.prototype,"pbrMetallicRoughness",void 0),y=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SMaterialDefinition")],y);let u=class extends i.o{};(0,r.Cg)([(0,s.MZ)({type:String,json:{read:{source:["name","index"],reader:(e,t)=>null!=e?e:`${t.index}`}}})],u.prototype,"name",void 0),(0,r.Cg)([(0,n.e)({jpg:"jpg",png:"png",dds:"dds","ktx-etc2":"ktx-etc2",ktx2:"ktx2",basis:"basis"})],u.prototype,"format",void 0),u=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3STextureFormat")],u);let c=class extends i.o{constructor(){super(...arguments),this.atlas=!1}};(0,r.Cg)([(0,s.MZ)({type:[u]})],c.prototype,"formats",void 0),(0,r.Cg)([(0,s.MZ)({type:Boolean})],c.prototype,"atlas",void 0),c=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3STextureSetDefinition")],c);let g=class extends i.o{};(0,r.Cg)([(0,n.e)({Float32:"Float32",UInt64:"UInt64",UInt32:"UInt32",UInt16:"UInt16",UInt8:"UInt8"})],g.prototype,"type",void 0),(0,r.Cg)([(0,s.MZ)({type:Number})],g.prototype,"component",void 0),g=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryAttribute")],g);let h=class extends i.o{};(0,r.Cg)([(0,n.e)({draco:"draco"})],h.prototype,"encoding",void 0),(0,r.Cg)([(0,s.MZ)({type:[String]})],h.prototype,"attributes",void 0),h=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryCompressedAttributes")],h);let v=class extends i.o{constructor(){super(...arguments),this.offset=0}};(0,r.Cg)([(0,s.MZ)({type:Number})],v.prototype,"offset",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"position",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"normal",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"uv0",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"color",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"uvRegion",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"featureId",void 0),(0,r.Cg)([(0,s.MZ)({type:g})],v.prototype,"faceRange",void 0),(0,r.Cg)([(0,s.MZ)({type:h})],v.prototype,"compressedAttributes",void 0),v=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryBuffer")],v);let f=class extends i.o{};(0,r.Cg)([(0,n.e)({triangle:"triangle"})],f.prototype,"topology",void 0),(0,r.Cg)([(0,s.MZ)()],f.prototype,"geometryBuffers",void 0),f=(0,r.Cg)([(0,a.$)("esri.layers.support.I3SLayerDefinitions.I3SGeometryDefinition")],f)},73179:(e,t,o)=>{o.d(t,{b:()=>p,h:()=>l});var r=o(4718),i=o(53966),s=o(84952),n=o(60694),a=o(10873);function p(e){const{nonStandardUrlAllowed:t=!1,separator:o}=e??{},s=(0,r.o8)(a.OZ),p=s.json?.write;return"object"==typeof p&&p&&(p.writer=function(e,t,r,i){(0,n.LS)(this,e,o,t,i)}),{...s,set:function(e){if(null==e)return void this._set("url",e);const o=(0,n.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:i.A.getLogger(this)});this._set("url",o.url),null!=o.layerId&&this._set("layerId",o.layerId)}}}function l(e,t){const{separator:o}=t??{},r=(0,s.An)(e.url);return null!=r&&(null!=e.dynamicDataSource?r.path=(0,s.fj)(r.path,"dynamicLayer"):null!=e.layerId&&(r.path=(0,s.fj)(r.path,o??"",e.layerId.toString()))),r}},74660:(e,t,o)=>{o.r(t),o.d(t,{default:()=>_});var r=o(31635),i=o(69540),s=o(49186),n=o(53966),a=o(25728),p=o(74887),l=o(36708),d=o(10107),y=(o(44208),o(87811),o(36005)),u=o(64108),c=o(87024),g=o(4146),h=o(52136),v=o(18768),f=o(69208),m=o(16131),C=o(8303),M=o(25036),S=o(58947),I=o(10873),Z=o(50805),b=o(58325),x=o(56776),T=o(97159),L=o(16215);let w=class extends((0,S.w6)((0,v.b)((0,m.q)((0,C.A)((0,M.j)((0,a.P)((0,f.d)((0,h.p)((0,i.OU)(g.A)))))))))){constructor(...e){super(...e),this.geometryType="mesh",this.operationalLayerType="IntegratedMeshLayer",this.type="integrated-mesh",this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.profile="mesh-pyramids",this.modifications=null,this.path=null,this.definitionExpression=null,this._canReplaceTerrain=!1}initialize(){this.addHandles((0,l.on)(()=>this.modifications,"after-changes",()=>this.modifications=this.modifications,l.OH))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}readModifications(e,t,o){this._modificationsSource={url:(0,T.f)(e,o),context:o}}set elevationInfo(e){null!=e&&"absolute-height"!==e.mode||this._set("elevationInfo",e),this._validateElevationInfo(e)}async load(e){return this.addResolvingPromise(this._doLoad(e)),this}async _doLoad(e){const t=e?.signal;try{await this.loadFromPortal({supportedTypes:["Scene Service"]},e)}catch(e){(0,p.QP)(e)}if(await this._fetchService(t),null!=this._modificationsSource){const t=await b.A.fromUrl(this._modificationsSource.url,this.spatialReference,e);this.setAtOrigin("modifications",t,this._modificationsSource.context.origin),this._modificationsSource=null}await this._fetchIndexAndUpdateExtent(this.nodePages,t)}beforeSave(){if(null!=this._modificationsSource)return this.load().then(()=>{},()=>{})}async saveAs(e,t){return this._debouncedSaveOperations(1,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"integrated-mesh"};return this._debouncedSaveOperations(0,e)}validateLayer(e){if(e.layerType&&"IntegratedMesh"!==e.layerType)throw new s.A("integrated-mesh-layer:layer-type-not-supported","IntegratedMeshLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new s.A("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"});if(this.version.major>1)throw new s.A("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x"})}_getTypeKeywords(){return["IntegratedMeshLayer"]}_validateElevationInfo(e){const t="Integrated mesh layers";(0,x.XF)(n.A.getLogger(this),(0,x.B)(t,"absolute-height",e)),(0,x.XF)(n.A.getLogger(this),(0,x.tW)(t,e))}get replacesTerrain(){return this._canReplaceTerrain&&this._isUsedAsGroundLayer}get _isUsedAsGroundLayer(){return(0,L.S)(this.parent)}};(0,r.Cg)([(0,d.MZ)({type:String,readOnly:!0})],w.prototype,"geometryType",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide"]})],w.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:["IntegratedMeshLayer"]})],w.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,d.MZ)({json:{read:!1},readOnly:!0})],w.prototype,"type",void 0),(0,r.Cg)([(0,d.MZ)({type:Z.W4,readOnly:!0,clonable:!1})],w.prototype,"nodePages",void 0),(0,r.Cg)([(0,d.MZ)({type:[Z.uV],readOnly:!0,clonable:!1})],w.prototype,"materialDefinitions",void 0),(0,r.Cg)([(0,d.MZ)({type:[Z.Ot],readOnly:!0,clonable:!1})],w.prototype,"textureSetDefinitions",void 0),(0,r.Cg)([(0,d.MZ)({type:[Z.L0],readOnly:!0,clonable:!1})],w.prototype,"geometryDefinitions",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],w.prototype,"serviceUpdateTimeStamp",void 0),(0,r.Cg)([(0,d.MZ)({type:b.A,clonable:e=>e?.clone()??e}),(0,c.P)({origins:["web-scene","portal-item"],type:"resource",prefix:"modifications"})],w.prototype,"modifications",void 0),(0,r.Cg)([(0,y.w)(["web-scene","portal-item"],"modifications")],w.prototype,"readModifications",null),(0,r.Cg)([(0,d.MZ)(I.Yj)],w.prototype,"elevationInfo",null),(0,r.Cg)([(0,d.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0},"portal-item":{read:!0,write:!0}},read:!1}})],w.prototype,"path",void 0),(0,r.Cg)([(0,d.MZ)()],w.prototype,"replacesTerrain",null),(0,r.Cg)([(0,d.MZ)()],w.prototype,"_isUsedAsGroundLayer",null),(0,r.Cg)([(0,d.MZ)()],w.prototype,"_canReplaceTerrain",void 0),w=(0,r.Cg)([(0,u.$)("esri.layers.IntegratedMeshLayer")],w);const _=w}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1956],{7562:(e,t,r)=>{r.d(t,{A:()=>c});var o,i=r(31635),s=r(66552),n=r(25482),a=r(4718),l=r(10107),p=(r(44208),r(53966),r(64108)),u=r(43937);const d=new s.J({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let c=o=class extends n.o{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){"percentile-continuous"!==this.statisticType&&"percentile-discrete"!==this.statisticType||(t.statisticParameters=(0,a.o8)(e))}clone(){return new o({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,a.o8)(this.statisticParameters)})}};(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxPointCount",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxRecordCount",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxVertexCount",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"onStatisticField",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"outStatisticFieldName",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:{source:"statisticType",reader:d.read},write:{target:"statisticType",writer:d.write}}})],c.prototype,"statisticType",void 0),(0,i.Cg)([(0,l.MZ)({type:Object})],c.prototype,"statisticParameters",void 0),(0,i.Cg)([(0,u.K)("statisticParameters")],c.prototype,"writeStatisticParameters",null),c=o=(0,i.Cg)([(0,p.$)("esri.rest.support.StatisticDefinition")],c)},27348:(e,t,r)=>{r.d(t,{A:()=>c});var o,i=r(31635),s=r(66552),n=r(25482),a=r(4718),l=r(10107),p=(r(44208),r(53966),r(64108)),u=r(5443);const d=new s.J({upperLeft:"upper-left",lowerLeft:"lower-left"});let c=o=class extends n.o{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new o((0,a.o8)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"extent",void 0),(0,i.Cg)([(0,l.MZ)({type:["view","edit"],json:{write:!0}})],c.prototype,"mode",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:d.read,write:d.write}})],c.prototype,"originPosition",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"tolerance",void 0),c=o=(0,i.Cg)([(0,p.$)("esri.rest.support.QuantizationParameters")],c)},27733:(e,t,r)=>{r.d(t,{L:()=>A});var o,i=r(31635),s=r(66552),n=r(25482),a=r(10107),l=r(79901),p=r(93223),u=r(36005),d=r(64108),c=r(56507),y=r(90360),g=r(20437),h=r(49053),m=(r(44208),r(53966),r(87811),r(16930)),C=r(50498);let v=o=class extends n.o{constructor(e){super(e),this.type="query-table"}clone(){const{workspaceId:e,query:t,oidFields:r,spatialReference:i,geometryType:s}=this,n={workspaceId:e,query:t,oidFields:r,spatialReference:i?.clone()??void 0,geometryType:s};return new o(n)}};var w;(0,i.Cg)([(0,p.e)({queryTable:"query-table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],v.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"workspaceId",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"query",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"oidFields",void 0),(0,i.Cg)([(0,a.MZ)({type:m.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.e)(C.gy)],v.prototype,"geometryType",void 0),v=o=(0,i.Cg)([(0,d.$)("esri.layers.support.source.QueryTableDataSource")],v);let S=w=class extends n.o{constructor(e){super(e),this.type="raster"}clone(){const{workspaceId:e,dataSourceName:t}=this;return new w({workspaceId:e,dataSourceName:t})}};var M;(0,i.Cg)([(0,p.e)({raster:"raster"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],S.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"dataSourceName",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"workspaceId",void 0),S=w=(0,i.Cg)([(0,d.$)("esri.layers.support.source.RasterDataSource")],S);let j=M=class extends n.o{constructor(e){super(e),this.type="table"}clone(){const{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new M({workspaceId:e,gdbVersion:t,dataSourceName:r})}};var f,b;(0,i.Cg)([(0,p.e)({table:"table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],j.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"workspaceId",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"dataSourceName",void 0),j=M=(0,i.Cg)([(0,d.$)("esri.layers.support.source.TableDataSource")],j);const Z=(0,s.O)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let T=f=class extends n.o{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return x()(e,t,r)}castLeftTableSource(e){return(0,c.aq)(P(),e)}readRightTableSource(e,t,r){return x()(e,t,r)}castRightTableSource(e){return(0,c.aq)(P(),e)}clone(){const{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:o,joinType:i}=this,s={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:o?.clone()??void 0,joinType:i};return new f(s)}};(0,i.Cg)([(0,p.e)({joinTable:"join-table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],T.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"leftTableKey",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"rightTableKey",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],T.prototype,"leftTableSource",void 0),(0,i.Cg)([(0,u.w)("leftTableSource")],T.prototype,"readLeftTableSource",null),(0,i.Cg)([(0,l.w)("leftTableSource")],T.prototype,"castLeftTableSource",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],T.prototype,"rightTableSource",void 0),(0,i.Cg)([(0,u.w)("rightTableSource")],T.prototype,"readRightTableSource",null),(0,i.Cg)([(0,l.w)("rightTableSource")],T.prototype,"castRightTableSource",null),(0,i.Cg)([(0,p.e)(Z)],T.prototype,"joinType",void 0),T=f=(0,i.Cg)([(0,d.$)("esri.layers.support.source.JoinTableDataSource")],T);let R=null;function x(){return R||(R=(0,y.C)({types:P()})),R}let F=null;function P(){return F||(F={key:"type",base:null,typeMap:{"data-layer":A,"map-layer":h.f}}),F}const O={key:"type",base:null,typeMap:{"join-table":T,"query-table":v,raster:S,table:j}};let A=class extends n.o{static{b=this}constructor(e){super(e),this.type="data-layer"}clone(){const{fields:e,dataSource:t}=this;return new b({fields:e,dataSource:t})}};(0,i.Cg)([(0,p.e)({dataLayer:"data-layer"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],A.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[g.A],json:{write:!0}})],A.prototype,"fields",void 0),(0,i.Cg)([(0,a.MZ)({types:O,json:{write:!0}})],A.prototype,"dataSource",void 0),A=b=(0,i.Cg)([(0,d.$)("esri.layers.support.source.DataLayerSource")],A),A.from=(0,c.dp)(A)},49053:(e,t,r)=>{r.d(t,{f:()=>u});var o,i=r(31635),s=r(25482),n=r(10107),a=r(56507),l=(r(44208),r(87811),r(93223)),p=r(64108);let u=o=class extends s.o{constructor(e){super(e),this.type="map-layer"}clone(){const{mapLayerId:e,gdbVersion:t}=this;return new o({mapLayerId:e,gdbVersion:t})}};(0,i.Cg)([(0,l.e)({mapLayer:"map-layer"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:a.jz,json:{write:{isRequired:!0}}})],u.prototype,"mapLayerId",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"gdbVersion",void 0),u=o=(0,i.Cg)([(0,p.$)("esri.layers.support.source.MapLayerSource")],u)},58174:(e,t,r)=>{r.d(t,{x:()=>o});const o=new(r(66552).J)({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"})},61956:(e,t,r)=>{r.d(t,{A:()=>x});var o=r(31635),i=r(66552),s=r(25482),n=r(4718),a=r(10107),l=r(79901),p=r(93223),u=r(64108),d=r(43937),c=r(56507),y=r(86738),g=r(16930),h=r(65864),m=r(50498),C=r(27733),v=r(69540);r(44208),r(53966),r(87811);let w=class extends((0,v.OU)(s.o)){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.onFields&&this.onFields.length>0}}}}})],w.prototype,"onFields",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"operator",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"searchTerm",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"searchType",void 0),w=(0,o.Cg)([(0,u.$)("esri.rest.support.FullTextSearch")],w);const S=w;var M,j=r(27348),f=r(77696),b=r(58174),Z=r(7562),T=r(79677);const R=new i.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let x=class extends((0,f.y)(s.o)){static{M=this}static from(e){return(0,c.PZ)(M,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){const r={};for(const t in e){const o=e[t];Array.isArray(o)?r[t]=o.map(e=>e instanceof Date?e.getTime():e):o instanceof Date?r[t]=o.getTime():r[t]=o}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new M((0,n.o8)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null!=this.historicMoment?new Date(this.historicMoment):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"aggregateIds",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"cacheHint",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"compactGeometryEnabled",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"datumTransformation",void 0),(0,o.Cg)([(0,l.w)("datumTransformation")],x.prototype,"castDatumTransformation",null),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"defaultSpatialReferenceEnabled",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"distance",void 0),(0,o.Cg)([(0,a.MZ)({type:C.L,json:{write:!0}})],x.prototype,"dynamicDataSource",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"formatOf3DObjects",void 0),(0,o.Cg)([(0,a.MZ)({type:[S],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],x.prototype,"fullText",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"gdbVersion",void 0),(0,o.Cg)([(0,a.MZ)({types:m.yR,json:{read:h.rS,write:!0}})],x.prototype,"geometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],x.prototype,"groupByFieldsForStatistics",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"having",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],x.prototype,"historicMoment",void 0),(0,o.Cg)([(0,d.K)("historicMoment")],x.prototype,"writeHistoricMoment",null),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,cast:e=>e<1?1:e>x.MAX_MAX_RECORD_COUNT_FACTOR?x.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],x.prototype,"maxRecordCountFactor",void 0),(0,o.Cg)([(0,a.MZ)({type:["xyFootprint"],json:{write:!0}})],x.prototype,"multipatchOption",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],x.prototype,"num",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"objectIds",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],x.prototype,"orderByFields",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],x.prototype,"outFields",void 0),(0,o.Cg)([(0,a.MZ)({type:g.A,json:{name:"outSR",write:!0}})],x.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,a.MZ)({type:[Z.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],x.prototype,"outStatistics",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"parameterValues",void 0),(0,o.Cg)([(0,d.K)("parameterValues")],x.prototype,"writeParameterValues",null),(0,o.Cg)([(0,a.MZ)({type:y.A,json:{write:!0}})],x.prototype,"pixelSize",void 0),(0,o.Cg)([(0,a.MZ)({type:j.A,json:{write:!0}})],x.prototype,"quantizationParameters",void 0),(0,o.Cg)([(0,a.MZ)({type:[Object],json:{write:!0}})],x.prototype,"rangeValues",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],x.prototype,"relationParameter",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"resultType",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnCentroid",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnDistinctValues",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!0,write:!0}})],x.prototype,"returnExceededLimitFeatures",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnQueryGeometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnM",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],x.prototype,"returnZ",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"returnTrueCurves",void 0),(0,o.Cg)([(0,a.MZ)({type:g.A,json:{write:!0}})],x.prototype,"sourceSpatialReference",void 0),(0,o.Cg)([(0,p.e)(b.x,{ignoreUnknown:!1,name:"spatialRel"})],x.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],x.prototype,"start",void 0),(0,o.Cg)([(0,d.K)("start"),(0,d.K)("num")],x.prototype,"writeStart",null),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"sqlFormat",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"text",void 0),(0,o.Cg)([(0,a.MZ)({type:T.A,json:{write:!0}})],x.prototype,"timeExtent",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"timeReferenceUnknownClient",void 0),(0,o.Cg)([(0,p.e)(R,{ignoreUnknown:!1}),(0,a.MZ)({json:{write:{overridePolicy(e){return{enabled:!!e&&null!=this.distance}}}}})],x.prototype,"units",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||null!=this.start&&this.start>0}}}}})],x.prototype,"where",void 0),(0,o.Cg)([(0,d.K)("where")],x.prototype,"writeWhere",null),x=M=(0,o.Cg)([(0,u.$)("esri.rest.support.Query")],x)},77696:(e,t,r)=>{r.d(t,{y:()=>s});var o=r(31635),i=(r(53966),r(44208),r(87811),r(49186),r(64108));const s=e=>{const t=e;let r=class extends t{};return r=(0,o.Cg)([(0,i.$)("esri.rest.support.QueryMixin")],r),r}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1956],{7562:(e,t,r)=>{r.d(t,{A:()=>c});var o,i=r(31635),s=r(66552),n=r(25482),a=r(4718),l=r(10107),p=(r(44208),r(53966),r(64108)),u=r(43937);const d=new s.J({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let c=o=class extends n.o{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){"percentile-continuous"!==this.statisticType&&"percentile-discrete"!==this.statisticType||(t.statisticParameters=(0,a.o8)(e))}clone(){return new o({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,a.o8)(this.statisticParameters)})}};(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxPointCount",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxRecordCount",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxVertexCount",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"onStatisticField",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"outStatisticFieldName",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:{source:"statisticType",reader:d.read},write:{target:"statisticType",writer:d.write}}})],c.prototype,"statisticType",void 0),(0,i.Cg)([(0,l.MZ)({type:Object})],c.prototype,"statisticParameters",void 0),(0,i.Cg)([(0,u.K)("statisticParameters")],c.prototype,"writeStatisticParameters",null),c=o=(0,i.Cg)([(0,p.$)("esri.rest.support.StatisticDefinition")],c)},27348:(e,t,r)=>{r.d(t,{A:()=>c});var o,i=r(31635),s=r(66552),n=r(25482),a=r(4718),l=r(10107),p=(r(44208),r(53966),r(64108)),u=r(5443);const d=new s.J({upperLeft:"upper-left",lowerLeft:"lower-left"});let c=o=class extends n.o{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new o((0,a.o8)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,i.Cg)([(0,l.MZ)({type:u.A,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"extent",void 0),(0,i.Cg)([(0,l.MZ)({type:["view","edit"],json:{write:!0}})],c.prototype,"mode",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:d.read,write:d.write}})],c.prototype,"originPosition",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"tolerance",void 0),c=o=(0,i.Cg)([(0,p.$)("esri.rest.support.QuantizationParameters")],c)},27733:(e,t,r)=>{r.d(t,{L:()=>A});var o,i=r(31635),s=r(66552),n=r(25482),a=r(10107),l=r(79901),p=r(93223),u=r(36005),d=r(64108),c=r(56507),y=r(90360),g=r(20437),h=r(49053),m=(r(44208),r(53966),r(87811),r(16930)),C=r(50498);let v=o=class extends n.o{constructor(e){super(e),this.type="query-table"}clone(){const{workspaceId:e,query:t,oidFields:r,spatialReference:i,geometryType:s}=this,n={workspaceId:e,query:t,oidFields:r,spatialReference:i?.clone()??void 0,geometryType:s};return new o(n)}};var w;(0,i.Cg)([(0,p.e)({queryTable:"query-table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],v.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"workspaceId",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"query",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],v.prototype,"oidFields",void 0),(0,i.Cg)([(0,a.MZ)({type:m.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,i.Cg)([(0,p.e)(C.gy)],v.prototype,"geometryType",void 0),v=o=(0,i.Cg)([(0,d.$)("esri.layers.support.source.QueryTableDataSource")],v);let S=w=class extends n.o{constructor(e){super(e),this.type="raster"}clone(){const{workspaceId:e,dataSourceName:t}=this;return new w({workspaceId:e,dataSourceName:t})}};var M;(0,i.Cg)([(0,p.e)({raster:"raster"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],S.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"dataSourceName",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"workspaceId",void 0),S=w=(0,i.Cg)([(0,d.$)("esri.layers.support.source.RasterDataSource")],S);let j=M=class extends n.o{constructor(e){super(e),this.type="table"}clone(){const{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new M({workspaceId:e,gdbVersion:t,dataSourceName:r})}};var f,b;(0,i.Cg)([(0,p.e)({table:"table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],j.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"workspaceId",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"dataSourceName",void 0),j=M=(0,i.Cg)([(0,d.$)("esri.layers.support.source.TableDataSource")],j);const Z=(0,s.O)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let T=f=class extends n.o{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return x()(e,t,r)}castLeftTableSource(e){return(0,c.aq)(P(),e)}readRightTableSource(e,t,r){return x()(e,t,r)}castRightTableSource(e){return(0,c.aq)(P(),e)}clone(){const{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:o,joinType:i}=this,s={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:o?.clone()??void 0,joinType:i};return new f(s)}};(0,i.Cg)([(0,p.e)({joinTable:"join-table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],T.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"leftTableKey",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"rightTableKey",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],T.prototype,"leftTableSource",void 0),(0,i.Cg)([(0,u.w)("leftTableSource")],T.prototype,"readLeftTableSource",null),(0,i.Cg)([(0,l.w)("leftTableSource")],T.prototype,"castLeftTableSource",null),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],T.prototype,"rightTableSource",void 0),(0,i.Cg)([(0,u.w)("rightTableSource")],T.prototype,"readRightTableSource",null),(0,i.Cg)([(0,l.w)("rightTableSource")],T.prototype,"castRightTableSource",null),(0,i.Cg)([(0,p.e)(Z)],T.prototype,"joinType",void 0),T=f=(0,i.Cg)([(0,d.$)("esri.layers.support.source.JoinTableDataSource")],T);let R=null;function x(){return R||(R=(0,y.C)({types:P()})),R}let F=null;function P(){return F||(F={key:"type",base:null,typeMap:{"data-layer":A,"map-layer":h.f}}),F}const O={key:"type",base:null,typeMap:{"join-table":T,"query-table":v,raster:S,table:j}};let A=class extends n.o{static{b=this}constructor(e){super(e),this.type="data-layer"}clone(){const{fields:e,dataSource:t}=this;return new b({fields:e,dataSource:t})}};(0,i.Cg)([(0,p.e)({dataLayer:"data-layer"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],A.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:[g.A],json:{write:!0}})],A.prototype,"fields",void 0),(0,i.Cg)([(0,a.MZ)({types:O,json:{write:!0}})],A.prototype,"dataSource",void 0),A=b=(0,i.Cg)([(0,d.$)("esri.layers.support.source.DataLayerSource")],A),A.from=(0,c.dp)(A)},49053:(e,t,r)=>{r.d(t,{f:()=>u});var o,i=r(31635),s=r(25482),n=r(10107),a=r(56507),l=(r(44208),r(87811),r(93223)),p=r(64108);let u=o=class extends s.o{constructor(e){super(e),this.type="map-layer"}clone(){const{mapLayerId:e,gdbVersion:t}=this;return new o({mapLayerId:e,gdbVersion:t})}};(0,i.Cg)([(0,l.e)({mapLayer:"map-layer"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:a.jz,json:{write:{isRequired:!0}}})],u.prototype,"mapLayerId",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"gdbVersion",void 0),u=o=(0,i.Cg)([(0,p.$)("esri.layers.support.source.MapLayerSource")],u)},58174:(e,t,r)=>{r.d(t,{x:()=>o});const o=new(r(66552).J)({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"})},61956:(e,t,r)=>{r.d(t,{A:()=>x});var o=r(31635),i=r(66552),s=r(25482),n=r(4718),a=r(10107),l=r(79901),p=r(93223),u=r(64108),d=r(43937),c=r(56507),y=r(86738),g=r(16930),h=r(65864),m=r(50498),C=r(27733),v=r(69540);r(44208),r(53966),r(87811);let w=class extends((0,v.OU)(s.o)){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.onFields&&this.onFields.length>0}}}}})],w.prototype,"onFields",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"operator",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"searchTerm",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],w.prototype,"searchType",void 0),w=(0,o.Cg)([(0,u.$)("esri.rest.support.FullTextSearch")],w);const S=w;var M,j=r(27348),f=r(77696),b=r(58174),Z=r(7562),T=r(79677);const R=new i.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let x=class extends((0,f.y)(s.o)){static{M=this}static from(e){return(0,c.PZ)(M,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){const r={};for(const t in e){const o=e[t];Array.isArray(o)?r[t]=o.map(e=>e instanceof Date?e.getTime():e):o instanceof Date?r[t]=o.getTime():r[t]=o}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new M((0,n.o8)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null!=this.historicMoment?new Date(this.historicMoment):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"aggregateIds",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"cacheHint",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"compactGeometryEnabled",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"datumTransformation",void 0),(0,o.Cg)([(0,l.w)("datumTransformation")],x.prototype,"castDatumTransformation",null),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"defaultSpatialReferenceEnabled",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"distance",void 0),(0,o.Cg)([(0,a.MZ)({type:C.L,json:{write:!0}})],x.prototype,"dynamicDataSource",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"formatOf3DObjects",void 0),(0,o.Cg)([(0,a.MZ)({type:[S],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],x.prototype,"fullText",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"gdbVersion",void 0),(0,o.Cg)([(0,a.MZ)({types:m.yR,json:{read:h.rS,write:!0}})],x.prototype,"geometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],x.prototype,"groupByFieldsForStatistics",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"having",void 0),(0,o.Cg)([(0,a.MZ)({type:Date})],x.prototype,"historicMoment",void 0),(0,o.Cg)([(0,d.K)("historicMoment")],x.prototype,"writeHistoricMoment",null),(0,o.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],x.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,cast:e=>e<1?1:e>x.MAX_MAX_RECORD_COUNT_FACTOR?x.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],x.prototype,"maxRecordCountFactor",void 0),(0,o.Cg)([(0,a.MZ)({type:["xyFootprint"],json:{write:!0}})],x.prototype,"multipatchOption",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],x.prototype,"num",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"objectIds",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],x.prototype,"orderByFields",void 0),(0,o.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],x.prototype,"outFields",void 0),(0,o.Cg)([(0,a.MZ)({type:g.A,json:{name:"outSR",write:!0}})],x.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,a.MZ)({type:[Z.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],x.prototype,"outStatistics",void 0),(0,o.Cg)([(0,a.MZ)({json:{write:!0}})],x.prototype,"parameterValues",void 0),(0,o.Cg)([(0,d.K)("parameterValues")],x.prototype,"writeParameterValues",null),(0,o.Cg)([(0,a.MZ)({type:y.A,json:{write:!0}})],x.prototype,"pixelSize",void 0),(0,o.Cg)([(0,a.MZ)({type:j.A,json:{write:!0}})],x.prototype,"quantizationParameters",void 0),(0,o.Cg)([(0,a.MZ)({type:[Object],json:{write:!0}})],x.prototype,"rangeValues",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],x.prototype,"relationParameter",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"resultType",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnCentroid",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnDistinctValues",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!0,write:!0}})],x.prototype,"returnExceededLimitFeatures",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnQueryGeometry",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnM",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],x.prototype,"returnZ",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"returnTrueCurves",void 0),(0,o.Cg)([(0,a.MZ)({type:g.A,json:{write:!0}})],x.prototype,"sourceSpatialReference",void 0),(0,o.Cg)([(0,p.e)(b.x,{ignoreUnknown:!1,name:"spatialRel"})],x.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],x.prototype,"start",void 0),(0,o.Cg)([(0,d.K)("start"),(0,d.K)("num")],x.prototype,"writeStart",null),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"sqlFormat",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],x.prototype,"text",void 0),(0,o.Cg)([(0,a.MZ)({type:T.A,json:{write:!0}})],x.prototype,"timeExtent",void 0),(0,o.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"timeReferenceUnknownClient",void 0),(0,o.Cg)([(0,p.e)(R,{ignoreUnknown:!1}),(0,a.MZ)({json:{write:{overridePolicy(e){return{enabled:!!e&&null!=this.distance}}}}})],x.prototype,"units",void 0),(0,o.Cg)([(0,a.MZ)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||null!=this.start&&this.start>0}}}}})],x.prototype,"where",void 0),(0,o.Cg)([(0,d.K)("where")],x.prototype,"writeWhere",null),x=M=(0,o.Cg)([(0,u.$)("esri.rest.support.Query")],x)},77696:(e,t,r)=>{r.d(t,{y:()=>a});var o=r(31635),i=r(10107),s=(r(44208),r(53966),r(87811),r(64108)),n=r(79677);const a=e=>{const t=e;let r=class extends t{};return(0,o.Cg)([(0,i.MZ)({type:n.A,json:{write:!0}})],r.prototype,"timeExtent",void 0),r=(0,o.Cg)([(0,s.$)("esri.rest.support.QueryMixin")],r),r}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5804,9240],{13069:(e,t,r)=>{r.d(t,{AG:()=>i,lk:()=>s,vD:()=>n,yS:()=>a});const o="randomUUID"in crypto;function s(){if(o)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function a(){return`{${s().toUpperCase()}}`}function n(){return`{${s()}}`}function i(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},15804:(e,t,r)=>{r.d(t,{addOrUpdateResources:()=>i,bg:()=>d,cL:()=>u,fetchResources:()=>n,removeAllResources:()=>c,removeResource:()=>l});var o=r(11254),s=r(49186),a=r(84952);async function n(e,t={},r){await e.load(r);const o=(0,a.fj)(e.itemUrl,"resources"),{start:s=1,num:n=10,sortOrder:i="asc",sortField:l="resource"}=t,c={query:{start:s,num:n,sortOrder:i,sortField:l,token:e.apiKey},signal:r?.signal},p=await e.portal.request(o,c);return{total:p.total,nextStart:p.nextStart,resources:p.resources.map(({created:t,size:r,resource:o})=>({created:new Date(t),size:r,resource:e.resourceFromPath(o)}))}}async function i(e,t,r,o){const n=new Map;for(const{resource:e,content:o,compress:a,access:i}of t){if(!e.hasPath())throw new s.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");const[t,l]=p(e.path),c=`${t}/${a??""}/${i??""}`;n.has(c)||n.set(c,{prefix:t,compress:a,access:i,files:[]}),n.get(c).files.push({fileName:l,content:o})}await e.load(o);const i=(0,a.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(const{prefix:t,compress:r,access:s,files:a}of n.values()){const n=25;for(let l=0;l<a.length;l+=n){const c=a.slice(l,l+n),p=new FormData;t&&"."!==t&&p.append("resourcesPrefix",t),r&&p.append("compress","true"),s&&p.append("access",s);let u=0;for(const{fileName:e,content:t}of c)p.append("file"+ ++u,t,e);p.append("f","json"),await e.portal.request(i,{method:"post",body:p,signal:o?.signal})}}}async function l(e,t,r){if(!t.hasPath())throw new s.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const o=(0,a.fj)(e.userItemUrl,"removeResources");await e.portal.request(o,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function c(e,t){await e.load(t);const r=(0,a.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function p(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function u(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,o.A)(e.url,{responseType:"blob"})).data}function d(e,t){if(!e.hasPath())return null;const[r,,o]=function(e){const[t,r]=function(e){const t=(0,a.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[o,s]=p(t);return[o,s,r]}(e.path);return e.portalItem.resourceFromPath((0,a.fj)(r,t+o))}},26121:(e,t,r)=>{r.d(t,{ci:()=>n,dL:()=>s});var o=r(49186);async function s(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 a=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function n(e,t,r){let s=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new o.A(e,t,r));if(e.blockedRelativeUrls&&(s=s.concat(e.blockedRelativeUrls.map(e=>new o.A("url:unsupported",`Relative url '${e}' is not supported`)))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:o}=r;e&&(s=s.filter(({name:e})=>!(a.has(e)||t.includes(e)))),o&&(s=s.filter(e=>"web-document-write:property-required"!==e.name))}if(s.length>0)throw new o.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:s})}},46130:(e,t,r)=>{r.d(t,{v:()=>s});var o=r(76553);function s(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,o.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},52136:(e,t,r)=>{r.d(t,{p:()=>n});var o=r(31635),s=r(10107),a=(r(44208),r(53966),r(87811),r(64108));const n=e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,o.Cg)([(0,s.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,o.Cg)([(0,a.$)("esri.layers.mixins.APIKeyMixin")],r),r}},58947:(e,t,r)=>{r.d(t,{w6:()=>b,qM:()=>P});var o=r(31635),s=r(11254),a=r(49186),n=r(53966),i=r(74887),l=r(10107),c=(r(44208),r(87811),r(36005)),p=r(64108),u=r(46130),d=r(5443),h=r(54239),y=r(16930),f=r(60694),m=r(10873),g=r(83898),v=r(73179);var w=r(20655),S=r(80812),I=r(88788),x=r(91682),A=r(26121);const b=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.heightModelInfo=null,this.minScale=0,this.maxScale=0,this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.url=null,this.indexInfo=null,this._debouncedSaveOperations=(0,i.sg)(async(e,t,r)=>{switch(e){case 0:return this._save(t);case 1:return this._saveAs(r,t)}})}readSpatialReference(e,t){return C(t)}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const o=null==e.spatialReference?{...e,spatialReference:C(t)}:e;return d.A.fromJSON(o,r)}const o=t.store,s=C(t);return null==s||null==o?.extent||!Array.isArray(o.extent)||o.extent.some(e=>e<R)?null:new d.A({xmin:o.extent[0],ymin:o.extent[1],xmax:o.extent[2],ymax:o.extent[3],spatialReference:s})}parseVersionString(e){const t={major:Number.NaN,minor:Number.NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){const r=t.store,o=null!=r.version?r.version.toString():"";return this.parseVersionString(o)}readTitlePortalItem(e){return"item-title"!==this.sublayerTitleMode?void 0:e}readTitleService(e,t){const r=this.portalItem?.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,f.yG)(this.url,t.name):t.name;let o=t.name;if(!o&&this.url){const e=(0,f.qg)(this.url);null!=e&&(o=e.title)}return"item-title-and-service-name"===this.sublayerTitleMode&&r&&(o=r+" - "+o),(0,f.cr)(o)}get parsedUrl(){return(0,v.h)(this,{separator:"layers"})}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,g.F)(this.parsedUrl?.path??"",this.rootNode,e,this.customParameters,this.apiKey,n.A.getLogger(this),t);const{fullExtent:r}=this;null==r||r.hasZ||this._updateExtent(r,await this.indexInfo)}_updateExtent(e,t){if("page"===t?.type){const r=t.rootIndex%t.pageSize,o=t.rootPage?.nodes?.[r];P(e,o?.obb)}else if("node"===t?.type){const r=t.rootNode?.mbs;if(!Array.isArray(r)||4!==r.length||r[0]<R)return;const o=r[2],s=r[3];e.zmin=o-s,e.zmax=o+s}}async _fetchService(e){if(null==this.url)throw new a.A("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){const t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){const t=await(0,s.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){const t=await(0,s.A)(this.parsedUrl?.path??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});t.ssl&&this.url&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();const o=t.data;this.read(o,this._getServiceContext()),this.validateLayer(o)}async _fetchVoxelServiceLayer(e){const t=(await(0,s.A)(this.parsedUrl?.path+"/layer",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,this._getServiceContext()),this.validateLayer(t)}_getServiceContext(){return{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}async _saveAs(e,t){const r={...N,...t};let o=S.default.from(e);if(!o)throw new a.A("sceneservice:portal-item-required","_saveAs() requires a portal item to save to");o.id&&(o=o.clone(),o.id=null);const s=o.portal||w.A.getDefault();await this._ensureLoadBeforeSave(),o.type=O,o.portal=s;const n=(0,I.m)(o,"portal-item",!0),i={layers:[this.write({},n)]};return await Promise.all(n.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(i,n,r),this.url&&(o.url=this.url),o.title||(o.title=this.title),U(o,r,1),await s.signIn(),await s.user.addItem({item:o,folder:r?.folder,data:i}),await(0,x.r)(this.resourceReferences,n),this.portalItem=o,(0,u.v)(n),n.portalItem=o,o}async _save(e){const t={...N,...e};if(!this.portalItem)throw new a.A("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService");if(this.portalItem.type!==O)throw new a.A("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${O}"`);await this._ensureLoadBeforeSave();const r=(0,I.m)(this.portalItem,"portal-item",!0),o={layers:[this.write({},r)]};return await Promise.all(r.resources.pendingOperations??[]),await this._validateAgainstJSONSchema(o,r,t),this.url&&(this.portalItem.url=this.url),this.portalItem.title||(this.portalItem.title=this.title),U(this.portalItem,t,0),await(0,x.S)(this.portalItem,o,this.resourceReferences,r),(0,u.v)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,r){const o=r?.validationOptions;(0,A.ci)(t,{errorName:"sceneservice:save"},{ignoreUnsupported:o?.ignoreUnsupported,supplementalUnsupportedErrors:["scenemodification:unsupported"]});const s=o?.enabled,i=null;if(s&&i){const t=(await i()).validate(e,r.portalItemLayerType);if(!t.length)return;const s=`Layer item did not validate:\n${t.join("\n")}`;if(n.A.getLogger(this).error(`_validateAgainstJSONSchema(): ${s}`),"throw"===o.failPolicy){const e=t.map(e=>new a.A("sceneservice:schema-validation",e));throw new a.A("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{validationErrors:e})}}}};return(0,o.Cg)([(0,l.MZ)(m.id)],r.prototype,"id",void 0),(0,o.Cg)([(0,l.MZ)({type:y.A})],r.prototype,"spatialReference",void 0),(0,o.Cg)([(0,c.w)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readSpatialReference",null),(0,o.Cg)([(0,l.MZ)({type:d.A})],r.prototype,"fullExtent",void 0),(0,o.Cg)([(0,c.w)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],r.prototype,"readFullExtent",null),(0,o.Cg)([(0,l.MZ)({readOnly:!0,type:h.A})],r.prototype,"heightModelInfo",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],r.prototype,"minScale",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],r.prototype,"maxScale",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"version",void 0),(0,o.Cg)([(0,c.w)("version",["store.version"])],r.prototype,"readVersion",null),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:{source:"copyrightText"}}})],r.prototype,"copyright",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:!1}})],r.prototype,"sublayerTitleMode",void 0),(0,o.Cg)([(0,l.MZ)({type:String})],r.prototype,"title",void 0),(0,o.Cg)([(0,c.w)("portal-item","title")],r.prototype,"readTitlePortalItem",null),(0,o.Cg)([(0,c.w)("service","title",["name"])],r.prototype,"readTitleService",null),(0,o.Cg)([(0,l.MZ)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],r.prototype,"layerId",void 0),(0,o.Cg)([(0,l.MZ)((0,v.b)({separator:"layers"}))],r.prototype,"url",void 0),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"parsedUrl",null),(0,o.Cg)([(0,l.MZ)({readOnly:!0})],r.prototype,"store",void 0),(0,o.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],r.prototype,"rootNode",void 0),r=(0,o.Cg)([(0,p.$)("esri.layers.mixins.SceneService")],r),r},R=-1e38;function C(e){if(null!=e.spatialReference)return y.A.fromJSON(e.spatialReference);const t=e.store,r=t.indexCRS||t.geographicCRS,o=r&&parseInt(r.slice(r.lastIndexOf("/")+1),10);return null!=o?new y.A(o):null}function P(e,t){if(null==t?.center||null==t.halfSize)throw new a.A("sceneservice:invalid-node-page","Invalid node page.");if(t.center[0]<R)return;const r=t.halfSize,o=t.center[2],s=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);e.zmin=o-s,e.zmax=o+s}function U(e,t,r){e.typeKeywords||(e.typeKeywords=[]);const o=t.getTypeKeywords();for(const t of o)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t),1===r&&(e.typeKeywords=e.typeKeywords.filter(e=>"Hosted Service"!==e)))}const O="Scene Service",N={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}}},76553:(e,t,r)=>{function o(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>o})},83898:(e,t,r)=>{r.d(t,{F:()=>a});var o=r(11254),s=r(49186);async function a(e,t,r,a,n,i,l){let c=null;if(null!=r){const t=`${e}/nodepages/`,s=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,o.A)(s,{query:{f:"json",...a,token:n},responseType:"json",signal:l})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){null!=i&&i.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",s,e),c=e}}if(!t)return null;const p=t?.split("/").pop(),u=`${e}/nodes/`,d=u+p;try{return{type:"node",rootNode:(await(0,o.A)(d,{query:{f:"json",...a,token:n},responseType:"json",signal:l})).data,urlPrefix:u}}catch(e){throw new s.A("sceneservice:root-node-missing","Root node missing.",{pageError:c,nodeError:e,url:d})}}},88788:(e,t,r)=>{r.d(t,{m:()=>n,v:()=>a});var o=r(84952),s=r(20655);function a(e,t){return{...i(e,t),readResourcePaths:[]}}function n(e,t,r){const s=(0,o.An)(e.itemUrl);return{...i(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:s?{rootPath:s.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t){return{origin:t,url:(0,o.An)(e.itemUrl),portal:e.portal||s.A.getDefault(),portalItem:e}}},91682:(e,t,r)=>{r.d(t,{S:()=>l,r:()=>i});var o=r(49186),s=r(74887),a=r(13069),n=r(15804);async function i(e,t,r){const o=await c(e,t,r);await p(o,t,r)}async function l(e,t,r,o,s){const a=await c(r,o,s);await e.update({data:t}),await p(a,o,s)}async function c(e,t,i){if(!t?.resources)return;const l=t.portalItem===e.portalItem?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem;const c=new Set(t.resources.toKeep.map(e=>e.resource.path)),p=new Set,u=[];c.forEach(t=>{l.delete(t),e.paths.push(t)});const d=[],h=[],y=[];for(const r of t.resources.toUpdate)if(l.delete(r.resource.path),c.has(r.resource.path)||p.has(r.resource.path)){const{resource:t,content:o,finish:s}=r,i=(0,n.bg)(t,(0,a.lk)());e.paths.push(i.path),d.push({resource:i,content:await(0,n.cL)(o),compress:r.compress}),s&&y.push(()=>s(i))}else{e.paths.push(r.resource.path),h.push({resource:r.resource,content:await(0,n.cL)(r.content),compress:r.compress});const t=r.finish;t&&y.push(()=>t(r.resource)),p.add(r.resource.path)}for(const r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{d.push({resource:r.resource,content:await(0,n.cL)(r.content),compress:r.compress});const e=r.finish;e&&y.push(()=>e(r.resource))}if(d.length||h.length){const{addOrUpdateResources:e}=await Promise.resolve().then(r.bind(r,15804));await e(t.portalItem,d,"add",i),await e(t.portalItem,h,"update",i)}if(y.forEach(e=>e()),0===u.length)return l;const f=await(0,s.Ol)(u);if((0,s.Te)(i),f.length>0)throw new o.A("save:resources","Failed to save one or more resources",{errors:f});return l}async function p(e,t,r){if(!e||!t.portalItem)return;const o=[];for(const s of e){const e=t.portalItem.resourceFromPath(s);o.push(e.portalItem.removeResource(e,r))}await(0,s.Lx)(o)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1882],{513:(t,n,e)=>{e.d(n,{KP:()=>a,X0:()=>h,fM:()=>c,mq:()=>u,zW:()=>l});var r=e(19419),s=e(59803),i=e(15507);class a{constructor(t,n,e,r,s,i){this.cx=t,this.cy=n,this.radius=e,this.thetaStart=r,this.thetaEnd=s,this.isInvalid=i}get startPoint(){const{cx:t,cy:n,radius:e,thetaStart:r}=this;return[t+e*Math.cos(r),n+e*Math.sin(r)]}get endPoint(){const{cx:t,cy:n,radius:e,thetaEnd:r}=this;return[t+e*Math.cos(r),n+e*Math.sin(r)]}}function o(t,n){const{cx:e,cy:r,radius:s}=t;return[e+s*Math.cos(n),r+s*Math.sin(n)]}function u(t,n){if(t.isInvalid)return(0,i.RS)([0,0],t.startPoint,t.endPoint,n);const{thetaStart:e,thetaEnd:r}=t;return o(t,e*(1-n)+r*n)}function c(t,n){if(t.isInvalid)return(0,s.T)(t.startPoint,t.endPoint,n);const{cx:e,cy:r,thetaStart:a,thetaEnd:u}=t,[c,h]=n,l=(0,i.Pf)((0,i.yN)(a,u),Math.atan2(h-r,c-e)),f=o(t,l);return{t:(l-a)/(u-a),curvePoint:f,distance:Math.sqrt((0,i.kb)(n,f))}}function h(t,n){if(n.isInvalid)return(0,r.tK)(t,n.startPoint),(0,r.tK)(t,n.endPoint),t;const{cx:e,cy:s,radius:a,thetaStart:u,thetaEnd:c}=n;(0,r.tK)(t,o(n,u)),(0,r.tK)(t,o(n,c));const h=(0,i.yN)(u,c),l=Math.PI/2;let f=0;for(const n of[[e+a,s],[e,s+a],[e-a,s],[e,s-a]])f=(0,i.Cp)(h,f),f>h.min&&f<h.max&&(0,r.tK)(t,n),f+=l;return t}function l(t){if(t.isInvalid)return 2*t.radius;const{radius:n,thetaStart:e,thetaEnd:r}=t;return n*Math.abs(r-e)}},4305:(t,n,e)=>{e.d(n,{jK:()=>h,lM:()=>f,m_:()=>l,ty:()=>m});var r=e(34727),s=e(19419),i=e(15507);const a=[0,0];function o(t){const n=1-t,e=n*n,r=t*t;return[e*n,3*t*e,3*r*n,r*t]}function u(t,n,e,r,s){const[i,a,u,c]=o(s);return[t[0]*i+n[0]*a+e[0]*u+r[0]*c,t[1]*i+n[1]*a+e[1]*u+r[1]*c]}function c(t,n,e,r,s){const[i,a,u,c]=o(s);return t*i+n*a+e*u+r*c}function h(t,n,e){const r=t,[s,o,u]=n.b,c=(0,i.RS)([0,0],r,o,e),h=(0,i.RS)(a,o,u,e),l=(0,i.RS)([0,0],u,s,e),f=(0,i.RS)([0,0],c,h,e),p=(0,i.RS)([0,0],h,l,e);return[{b:[(0,i.RS)([],f,p,e),c,f]},{b:[[...s],p,l]}]}function l(t,n,e){const s=t,[a,o,c]=n.b,h=(0,i.R)(e,[.1,.5,.9],t=>{const n=1-t,[e,r]=u(s,o,c,a,t);return[e,r,3*n*n*(o[0]-s[0])+6*n*t*(c[0]-o[0])+3*t*t*(a[0]-c[0]),3*n*n*(o[1]-s[1])+6*n*t*(c[1]-o[1])+3*t*t*(a[1]-c[1]),6*n*(c[0]-2*o[0]+s[0])+6*t*(a[0]-2*c[0]+o[0]),6*n*(c[1]-2*o[1]+s[1])+6*t*(a[1]-2*c[1]+o[1])]}).map(t=>Math.min(1,Math.max(0,t)));h.push(0,1);let l=1/0;const f=h.map(t=>{const n=u(s,o,c,a,t),[r,i]=n,h=e[0]-r,f=e[1]-i,p=Math.sqrt(h*h+f*f);return l=Math.min(p,l),{t,curvePoint:n,distance:p}}),p=[];for(const t of f){const{t:n,distance:e}=t;(0,r.b6)(e,l)&&!p.some(({t})=>(0,r.Sp)(t,n))&&p.push(t)}return p}function f(t,n,e){const r=n,[i,a,o]=e.b;if((0,s.tK)(t,r),(0,s.tK)(t,i),(0,s.Rj)(t,a[0],a[1])&&(0,s.Rj)(t,o[0],o[1]))return t;for(const n of p(r[0],a[0],o[0],i[0]))n>0&&n<1&&(0,s.nw)(t,c(r[0],a[0],o[0],i[0],n));for(const n of p(r[1],a[1],o[1],i[1]))n>0&&n<1&&(0,s.IO)(t,c(r[1],a[1],o[1],i[1],n));return t}function p(t,n,e,r){const s=3*(3*(n-e)-t+r),i=6*(t-2*n+e),a=3*(n-t);if(0===s)return 0!==i?[-a/i]:[];const o=Math.sqrt(i*i-4*s*a);return[(-i+o)/(2*s),(-i-o)/(2*s)]}function m(t,n,e){let r=0,s=[n];for(let n=0;n<16;n++){let n=t;const a=[];for(const t of s)a.push(...h(n,t,.5)),n=t.b[0];s=a,n=t,r=0;let o=0;for(const t of s){const[e,s,a]=t.b,u=Math.sqrt((0,i.kb)(n,e));r+=(u+(Math.sqrt((0,i.kb)(n,s))+Math.sqrt((0,i.kb)(s,a))+Math.sqrt((0,i.kb)(a,e))))/2,o+=u,n=e}if(r-o<e)return r}return r}},6606:(t,n,e)=>{e.d(n,{Rg:()=>x,LJ:()=>P,z8:()=>v,B$:()=>b,Pj:()=>A,Yz:()=>I});var r=e(19419),s=e(4305),i=e(513),a=e(50954),o=e(52006),u=e(49663),c=e(46068);function h(t,n,e){if((0,o.Xq)(e))return(0,r.tK)(t,n),(0,r.tK)(t,e),t;if((0,o.n1)(e))return(0,s.lM)(t,n,e);if((0,o.aO)(e)){const r=(0,a.pM)(n,e);return(0,i.X0)(t,r)}if((0,o.DA)(e)){const r=(0,u.i)(n,e);return(0,i.X0)(t,r)}return(0,c.DL)(t,n,e)}function l(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function f(t){return void 0!==t.points}function p(t){return void 0!==t.x&&void 0!==t.y}function m(t){return void 0!==t.paths}function M(t){return void 0!==t.rings}function g(t){return function(n,e){return null==n?e:null==e?n:t(n,e)}}const y=g(Math.min),d=g(Math.max);function x(t,n){return m(n)?I(t,n.curvePaths??n.paths,!1,!1)??t:M(n)?I(t,n.curveRings??n.rings,!1,!1)??t:f(n)?A(t,n.points,!1,!1,!1,!1):l(n)?R(t,n):(p(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function v(t){let n,e,s,i;for(t.reset(),n=s=1/0,e=i=-1/0;t.nextPath();){const r=b(t);n=Math.min(r[0],n),s=Math.min(r[1],s),e=Math.max(r[2],e),i=Math.max(r[3],i)}return(0,r.vt)([n,s,e,i])}function b(t){let n,e,s,i;for(n=s=1/0,e=i=-1/0;t.nextPoint();)n=Math.min(t.x,n),s=Math.min(t.y,s),e=Math.max(t.x,e),i=Math.max(t.y,i);return(0,r.vt)([n,s,e,i])}function P(t,n){return m(n)?I(t,n.curvePaths??n.paths,!0,!1)??t:M(n)?I(t,n.curveRings??n.rings,!0,!1)??t:f(n)?A(t,n.points,!0,!1,!0,!1):l(n)?R(t,n,0,0,!0,!1):(p(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function I(t,n,e,s){const i=e?3:2;if(!n.length||!n[0].length)return null;let a,u,c,l,[f,p]=(0,o.yP)(n[0][0]),m=f,M=p;for(let t=0;t<n.length;t++){const g=n[t];for(let t=0;t<g.length;t++){const n=(0,o.yP)(g[t]),[x,v]=n;if(f=y(f,x),p=y(p,v),m=d(m,x),M=d(M,v),e&&n.length>2){const t=n[2];a=y(a,t),u=d(u,t)}if(s&&n.length>i){const t=n[i];c=y(a,t),l=d(u,t)}const b=g[t];if((0,o.Xq)(b)||t<1)continue;const P=(0,o.yP)(g[t-1]),I=(0,r.fA)(f,p,m,M);[f,p,m,M]=h(I,P,b)}}return e?s?(t[0]=f,t[1]=p,t[2]=a,t[3]=c,t[4]=m,t[5]=M,t[6]=u,t[7]=l,t.length=8,t):(t[0]=f,t[1]=p,t[2]=a,t[3]=m,t[4]=M,t[5]=u,t.length=6,t):s?(t[0]=f,t[1]=p,t[2]=c,t[3]=m,t[4]=M,t[5]=l,t.length=6,t):(t[0]=f,t[1]=p,t[2]=m,t[3]=M,t.length=4,t)}function R(t,n,e,r,s,i){const a=n.xmin,o=n.xmax,u=n.ymin,c=n.ymax;let h=n.zmin,l=n.zmax,f=n.mmin,p=n.mmax;return s?(h=h||0,l=l||0,i?(f=f||0,p=p||0,t[0]=a,t[1]=u,t[2]=h,t[3]=f,t[4]=o,t[5]=c,t[6]=l,t[7]=p,t):(t[0]=a,t[1]=u,t[2]=h,t[3]=o,t[4]=c,t[5]=l,t)):i?(f=f||0,p=p||0,t[0]=a,t[1]=u,t[2]=f,t[3]=o,t[4]=c,t[5]=p,t):(t[0]=a,t[1]=u,t[2]=o,t[3]=c,t)}function A(t,n,e,r,s,i){const a=e?3:2,o=r&&i,u=e&&s;if(!n.length||!n[0].length)return null;let c,h,l,f,[p,m]=n[0],[M,g]=n[0];for(let t=0;t<n.length;t++){const e=n[t],[r,s]=e;if(p=y(p,r),m=y(m,s),M=d(M,r),g=d(g,s),u&&e.length>2){const t=e[2];c=y(c,t),h=d(h,t)}if(o&&e.length>a){const t=e[a];l=y(c,t),f=d(h,t)}}return s?(c=c||0,h=h||0,i?(l=l||0,f=f||0,t[0]=p,t[1]=m,t[2]=c,t[3]=l,t[4]=M,t[5]=g,t[6]=h,t[7]=f,t):(t[0]=p,t[1]=m,t[2]=c,t[3]=M,t[4]=g,t[5]=h,t)):i?(l=l||0,f=f||0,t[0]=p,t[1]=m,t[2]=l,t[3]=M,t[4]=g,t[5]=f,t):(t[0]=p,t[1]=m,t[2]=M,t[3]=g,t)}},12359:(t,n,e)=>{e.d(n,{IK:()=>h,TP:()=>f,Ve:()=>o,Z4:()=>i,l8:()=>a,w2:()=>c});var r=e(51118),s=e(95108);function i(t){return t?t.hasZ?[t.xmax-t.xmin/2,t.ymax-t.ymin/2,t.zmax-t.zmin/2]:[t.xmax-t.xmin/2,t.ymax-t.ymin/2]:null}function a(t){return function(t,n){if(!t?.length)return null;const e=[],r=[],i=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let e=0,s=t.length;e<s;e++){const s=u(t[e],n,i);s&&r.push(s)}if(r.sort((t,e)=>{let r=t[2]-e[2];return 0===r&&n&&(r=t[4]-e[4]),r}),r.length&&(e[0]=r[0][0],e[1]=r[0][1],n&&(e[2]=r[0][3]),(e[0]<i[0]||e[0]>i[1]||e[1]<i[2]||e[1]>i[3]||n&&(e[2]<i[4]||e[2]>i[5]))&&(e.length=0)),!e.length){const r=t[0]&&t[0].length?function(t,n){const e=n?[0,0,0]:[0,0],r=n?[0,0,0]:[0,0];let i=0,a=0,o=0,u=0;for(let c=0,h=t.length;c<h-1;c++){const h=t[c],l=t[c+1];if(h&&l){e[0]=h[0],e[1]=h[1],r[0]=l[0],r[1]=l[1],n&&h.length>2&&l.length>2&&(e[2]=h[2],r[2]=l[2]);const t=(0,s.R3)(e,r);if(t){i+=t;const e=(0,s.t9)(h,l);a+=t*e[0],o+=t*e[1],n&&e.length>2&&(u+=t*e[2])}}}return i>0?n?[a/i,o/i,u/i]:[a/i,o/i]:t.length?t[0]:null}(t[0],n):null;if(!r)return null;e[0]=r[0],e[1]=r[1],n&&r.length>2&&(e[2]=r[2])}return e}(t.rings,t.hasZ??!1)}function o(t){const n=a(t);if(!n)return null;const{hasZ:e,spatialReference:r}=t,[s,i,o]=n;return isNaN(s)||isNaN(i)||e&&isNaN(o)?null:{x:s,y:i,z:e?o:void 0,spatialReference:r}}function u(t,n,e){let r=0,s=0,i=0,a=0,o=0;const u=t.length?t[0][0]:0,c=t.length?t[0][1]:0,h=t.length&&n?t[0][2]:0;for(let l=0;l<t.length;l++){const f=t[l],p=t[(l+1)%t.length],[m,M,g]=f,y=m-u,d=M-c,[x,v,b]=p,P=x-u,I=v-c,R=y*I-P*d;if(a+=R,r+=(y+P)*R,s+=(d+I)*R,n&&f.length>2&&p.length>2){const t=g-h,n=b-h,e=y*n-P*t;i+=(t+n)*e,o+=e}m<e[0]&&(e[0]=m),m>e[1]&&(e[1]=m),M<e[2]&&(e[2]=M),M>e[3]&&(e[3]=M),n&&(g<e[4]&&(e[4]=g),g>e[5]&&(e[5]=g))}if(a>0&&(a*=-1),o>0&&(o*=-1),!a)return null;a*=.5,o*=.5;const l=[r/(6*a)+u,s/(6*a)+c,a];return n&&(e[4]===e[5]||0===o?(l[3]=(e[4]+e[5])/2,l[4]=0):(l[3]=i/(6*o)+h,l[4]=o)),l}function c(t,n){let e=0,r=0,s=0;t.nextPoint();const i=t.pathSize?t.x:0,a=t.pathSize?t.y:0;for(let o=0;o<t.pathSize;o++){t.seekInPath(o);const u=[t.x,t.y];t.seekInPath((o+1)%t.pathSize);const c=[t.x,t.y],[h,l]=u,f=h-i,p=l-a,[m,M]=c,g=m-i,y=M-a,d=f*y-g*p;s+=d,e+=(f+g)*d,r+=(p+y)*d,h<n[0]&&(n[0]=h),h>n[1]&&(n[1]=h),l<n[2]&&(n[2]=l),l>n[3]&&(n[3]=l)}return s>0&&(s*=-1),s?(s*=.5,[e/(6*s)+i,r/(6*s)+a,s]):null}function h(t){const{hasZ:n,totalSize:e}=t;if(0===e)return null;const i=[],a=[],o=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const n=u((0,r.A)(t),t.hasZ,o);n&&a.push(n)}if(a.sort((t,e)=>{let r=t[2]-e[2];return 0===r&&n&&(r=t[4]-e[4]),r}),a.length&&(i[0]=a[0][0],i[1]=a[0][1],n&&(i[2]=a[0][3]),(i[0]<o[0]||i[0]>o[1]||i[1]<o[2]||i[1]>o[3]||n&&(i[2]<o[4]||i[2]>o[5]))&&(i.length=0)),!i.length){t.reset(),t.nextPath();const e=t.pathSize?function(t){const{hasZ:n}=t,e=n?[0,0,0]:[0,0],r=n?[0,0,0]:[0,0];let i=0,a=0,o=0,u=0;if(t.nextPoint()){let c=t.x,h=t.y,l=t.z;for(;t.nextPoint();){const f=t.x,p=t.y,m=t.z;e[0]=c,e[1]=h,r[0]=f,r[1]=p,n&&(e[2]=l,r[2]=m);const M=(0,s.R3)(e,r);if(M){i+=M;const t=(0,s.t9)(e,r);a+=M*t[0],o+=M*t[1],n&&t.length>2&&(u+=M*t[2])}c=f,h=p,l=m}}return i>0?n?[a/i,o/i,u/i]:[a/i,o/i]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!e)return null;i[0]=e[0],i[1]=e[1],n&&e.length>2&&(i[2]=e[2])}return i}const l=1e-6;function f(t){let n=0;for(t.reset();t.nextPath();)n+=t.getCurrentRingArea();if(n<l){const n=h(t);return n?[n[0],n[1]]:null}const e=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const r=[t.x,t.y];for(t.reset();t.nextPath();)m(e,r,t);return e[0]*=1/n,e[1]*=1/n,e[0]+=r[0],e[1]+=r[1],e}const p=1/3;function m(t,n,e){if(!t||!e||e.pathSize<3)return null;e.nextPoint();const r=e.x,s=e.y;e.nextPoint();let i,a=e.x-r,o=e.y-s,u=0,c=0;for(;e.nextPoint();)u=e.x-r,c=e.y-s,i=.5*p*(u*o-c*a),t[0]+=i*(a+u),t[1]+=i*(o+c),a=u,o=c;const h=e.getCurrentRingArea(),l=[r,s];return l[0]-=n[0],l[1]-=n[1],l[0]*=h,l[1]*=h,t[0]+=l[0],t[1]+=l[1],t}},15507:(t,n,e)=>{e.d(n,{Cp:()=>m,Gz:()=>p,M_:()=>o,Pf:()=>M,R:()=>g,RS:()=>i,kb:()=>a,t7:()=>c,yN:()=>f});var r=e(34727),s=e(37585);function i(t,n,e,r){return t[0]=n[0]*(1-r)+e[0]*r,t[1]=n[1]*(1-r)+e[1]*r,t}function a(t,n){return(0,s.hG)(t,n)}function o(t,n,e,r,s){const[i,a]=n,[o,u]=e,[c,h]=r,[l,f]=s,p=(i-o)*(h-f)-(a-u)*(c-l);if(0===p)return null;const m=(i*u-a*o)*(c-l)-(i-o)*(c*f-h*l),M=(i*u-a*o)*(h-f)-(a-u)*(c*f-h*l);return t[0]=m/p,t[1]=M/p,t}const u=2*Math.PI;function c(t,n){const e=Math.atan2(t,n);return e<0?e+u:e}function h(t){return Math.abs(t)%u}function l(t){const n=h(t);return n<Math.PI?n:u-n}function f(t,n){return{min:Math.min(t,n),max:Math.max(t,n)}}function p(t,n,e,s){if((0,r.Sp)(h(t-n),0))return e?[t,t]:[t,s?t-u:t+u];const[i,a]=s?[t-u,t]:[t,t+u];return[t,m({min:i,max:a},n)]}function m({min:t,max:n},e){let r;return r=n-e,r>=u?(r-=r%u,e+r):(r=e-t,r>=u?(r-=r%u,e-r):e)}function M(t,n){const e=m(t,n);return e>t.min&&e<t.max?e:l(e-t.min)<l(e-t.max)?t.min:t.max}function g(t,n,e,r=10){return n.map(n=>{let s=n;for(let n=0;n<r;n++){const[n,r,i,a,o,u]=e(s),c=t[0]-n,h=t[1]-r,l=-i,f=-a;s+=-(2*c*l+2*h*f)/(2*l*l+2*c*-o+2*f*f+2*h*-u||1e-6)}return s})}},29242:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function s(t,n,e,r,s,i,a,o,u){return[t,n,e,r,s,i,a,o,u]}e.d(n,{fA:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:s},Symbol.toStringTag,{value:"Module"}))},34304:(t,n,e)=>{e.d(n,{DF:()=>u,FD:()=>s,Ov:()=>i,ct:()=>c});let r=1e-6;function s(){return r}const i=Math.random,a=Math.PI/180,o=180/Math.PI;function u(t){return t*a}function c(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:s,setEpsilon:function(t){r=t},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"}))},37585:(t,n,e)=>{e.d(n,{C:()=>s,Cc:()=>g,Io:()=>l,S8:()=>M,WQ:()=>a,aI:()=>v,e$:()=>d,hG:()=>f,hZ:()=>i,hs:()=>h,jb:()=>P,l0:()=>y,t2:()=>x});var r=e(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t}function i(t,n,e){return t[0]=n,t[1]=e,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t}function o(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function u(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function h(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function f(t,n){const e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function p(t){const n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function m(t){const n=t[0],e=t[1];return n*n+e*e}function M(t,n){const e=n[0],r=n[1];let s=e*e+r*r;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s),t}function g(t,n,e,r){const s=n[0],i=n[1];return t[0]=s+r*(e[0]-s),t[1]=i+r*(e[1]-i),t}function y(t,n,e){const r=n[0],s=n[1];return t[0]=e[0]*r+e[2]*s+e[4],t[1]=e[1]*r+e[3]*s+e[5],t}function d(t,n,e,r){const s=n[0]-e[0],i=n[1]-e[1],a=Math.sin(r),o=Math.cos(r);return t[0]=s*o-i*a+e[0],t[1]=s*a+i*o+e[1],t}function x(t,n){return t[0]===n[0]&&t[1]===n[1]}function v(t,n){const e=t[0],s=t[1],i=n[0],a=n[1],o=(0,r.FD)();return Math.abs(e-i)<=o*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(s-a)<=o*Math.max(1,Math.abs(s),Math.abs(a))}const b=p,P=o,I=u,R=c,A=l,S=f,w=m;Object.freeze(Object.defineProperty({__proto__:null,add:a,angle:function(t,n){const e=t[0],r=t[1],s=n[0],i=n[1];let a=e*e+r*r;a>0&&(a=1/Math.sqrt(a));let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));const u=(e*s+r*i)*a*o;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},copy:s,cross:function(t,n,e){const r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},dist:A,distance:l,div:R,divide:c,dot:function(t,n){return t[0]*n[0]+t[1]*n[1]},equals:v,exactEquals:x,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:b,length:p,lerp:g,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},mul:I,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t},normalize:M,projectAndScale:function(t,n,e,r,s){let i=n[0]-e[0],a=n[1]-e[1];const o=(r[0]*i+r[1]*a)*(s-1);return i=r[0]*o,a=r[1]*o,t[0]=n[0]+i,t[1]=n[1]+a,t},random:function(t,n=1){const e=2*(0,r.Ov)()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},rotate:d,round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t},scale:h,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t},set:i,sqrDist:S,sqrLen:w,squaredDistance:f,squaredLength:m,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:P,subtract:o,transformMat2:function(t,n,e){const r=n[0],s=n[1];return t[0]=e[0]*r+e[2]*s,t[1]=e[1]*r+e[3]*s,t},transformMat2d:y,transformMat3:function(t,n,e){const r=n[0],s=n[1];return t[0]=e[0]*r+e[3]*s+e[6],t[1]=e[1]*r+e[4]*s+e[7],t},transformMat4:function(t,n,e){const r=n[0],s=n[1];return t[0]=e[0]*r+e[4]*s+e[12],t[1]=e[1]*r+e[5]*s+e[13],t}},Symbol.toStringTag,{value:"Module"}))},39829:(t,n,e)=>{e.d(n,{A:()=>R});var r,s=e(31635),i=e(4576),a=e(51447),o=e(4718),u=e(53966),c=e(10107),h=(e(44208),e(64108)),l=e(43937),f=e(5443),p=e(91075),m=e(86738),M=e(16930),g=e(12359),y=e(94078),d=e(95108),x=e(90634),v=e(12176),b=e(28735),P=e(56993);function I(t){return!Array.isArray(t[0])}let R=r=class extends p.A{static fromExtent(t){const n=t.clone().normalize(),{spatialReference:e}=t;let s=!1,i=!1;for(const t of n)t.hasZ&&(s=!0),t.hasM&&(i=!0);const a={rings:n.map(t=>{const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(s&&t.hasZ){const e=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(e)}if(i&&t.hasM){const e=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(e)}return n}),spatialReference:e};return s&&(a.hasZ=!0),i&&(a.hasM=!0),new r(a)}constructor(t){super(function(t){if(!t)return;let{rings:n,hasM:e,hasZ:r,spatialReference:s}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return s??=M.A.WGS84,{...t,hasM:e,hasZ:r,rings:n,spatialReference:s}}(t)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){(0,a.Lx)(u.A.getLogger(this),"centroid",{replacement:"Please use centroidOperator.execute() instead.",version:"4.34",warnOnce:!0});const t=(0,g.Ve)(this);return t?m.A.fromJSON(t):null}writeCurveRings(t,n){n.curveRings=(0,o.o8)(t)}get extent(){const t=(0,x.v)(this),{spatialReference:n}=this;return t?new f.A({...t,spatialReference:n}):null}get isSelfIntersecting(){return(0,a.Lx)(u.A.getLogger(this),"isSelfIntersecting",{replacement:"Please use simplifyOperator.isSimple() instead.",version:"4.33",warnOnce:!0}),(0,v.A3)(this.rings)}writeRings(t,n){n.rings=(0,o.o8)(this.rings)}addRing(t){if(!t)return;const n=this.rings,e=n.length;if(I(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("rings"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.rings=(0,o.o8)(this.rings),t.curveRings=(0,o.o8)(this.curveRings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;if(null!=n!=(null!=e))return!1;if(null!=n&&null!=e&&!n.equals(e))return!1;if(this.rings.length!==t.rings.length)return!1;const r=([t,n,e,r],[s,i,a,o])=>t===s&&n===i&&(null==e&&null==a||e===a)&&(null==r&&null==o||r===o);for(let n=0;n<this.rings.length;n++){const e=this.rings[n],s=t.rings[n];if(!(0,i.aI)(e,s,r))return!1}return!0}contains(t){if(!t)return!1;const n=(0,b.Cv)(t,this.spatialReference);return(0,y.m3)(this,null!=n?n:t)}isClockwise(t){const n=I(t)?t.map(t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y]):t;return(0,d.$3)(n)}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.rings[t][n],r=this.hasZ,s=this.hasM;return r&&!s?new m.A(e[0],e[1],e[2],void 0,this.spatialReference):s&&!r?new m.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&s?new m.A(e[0],e[1],e[2],e[3],this.spatialReference):new m.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,P.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t].splice(n,0,e),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new m.A(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),e}removeRing(t){if(!this._validateInputs(t,null))return null;const n=this.rings.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new m.A(t,e));return this.notifyChange("rings"),r}setPoint(t,n,e){return this._validateInputs(t,n)?((0,P.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t][n]=e,this.notifyChange("rings"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){const r=this.rings[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"cache",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"centroid",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],R.prototype,"curveRings",void 0),(0,s.Cg)([(0,l.K)("curveRings")],R.prototype,"writeCurveRings",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"extent",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],R.prototype,"isSelfIntersecting",null),(0,s.Cg)([(0,c.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],R.prototype,"rings",void 0),(0,s.Cg)([(0,l.K)("rings")],R.prototype,"writeRings",null),R=r=(0,s.Cg)([(0,h.$)("esri.geometry.Polygon")],R),R.prototype.toJSON.isDefaultToJSON=!0},46068:(t,n,e)=>{e.d(n,{DL:()=>p,ED:()=>l,SW:()=>u,pb:()=>f,xm:()=>m}),e(77690);var r=e(29242),s=(e(37585),e(19419)),i=e(52006),a=e(15507);class o{constructor(t,n,e,r,s,i,a,o,u){this.cx=t,this.cy=n,this.a=e,this.b=r,this.cosR=s,this.sinR=i,this.u1=a,this.u2=o,this.isInvalid=u}}function u(t,n){const[e,r,s,i,u,c,h]=n.a,[l,f]=t,[p,m]=e,[M,g]=r,y=c*h,d=Math.cos(u),x=Math.sin(u),[v,b]=(0,a.Gz)((0,a.t7)(1/y*(f-g)*d-1/y*(l-M)*x,1/c*(f-g)*x+1/c*(l-M)*d),Math.atan2(1/y*(m-g)*d-1/y*(p-M)*x,1/c*(m-g)*x+1/c*(p-M)*d),s,i);return new o(M,g,c,y,d,x,v,b,0===c||0===y)}function c(t,n){const{a:e,b:r,cosR:s,sinR:i,cx:a,cy:o}=t,u=Math.cos(n),c=Math.sin(n);return[e*u*s-r*c*i+a,e*u*i+r*c*s+o]}function h(t,n){const{u1:e,u2:r}=t;return c(t,e*(1-n)+r*n)}function l(t,n,e){if(e<0||e>1)return[];if(0===e||1===e)return[(0,i.tk)(n)];const[r,[s,a],o,u,c,l,f]=n.a,{u1:p,u2:m}=t,M=p*(1-e)+m*e;return[{a:[[...h(t,e)],[s,a],Math.abs(M-p)<Math.PI?1:0,u,c,l,f]},{a:[[...r],[s,a],Math.abs(m-M)<Math.PI?1:0,u,c,l,f]}]}function f(t,n){const{a:e,b:r,cosR:s,sinR:i,u1:o,u2:u}=t,h=Math.PI/6,l=(0,a.R)(n,[1*h,2*h,4*h,5*h,7*h,8*h,10*h,11*h],n=>{const a=Math.cos(n),o=Math.sin(n),[u,h]=c(t,n);return[u,h,-e*s*o-r*i*a,-e*i*o+r*s*a,-e*s*a+r*i*o,-e*i*a-r*s*o]}),f=(0,a.yN)(o,u),p=new Set(l.map(t=>(0,a.Cp)(f,t)).filter(t=>t>f.min&&t<f.max));p.add(o),p.add(u);let m,M,g=1/0;for(const e of p){const r=c(t,e),[s,i]=r,a=n[0]-s,h=n[1]-i,l=a*a+h*h;l<g&&(m=(e-o)/(u-o),M=r,g=l)}return{t:m,curvePoint:M,distance:Math.sqrt(g)}}function p(t,n,e){const r=u(n,e),{a:i,b:o,u1:h,u2:l,cosR:f,sinR:p,isInvalid:m}=r,M=e.a[0];if((0,s.tK)(t,n),(0,s.tK)(t,M),m)return t;const g=Math.atan2(-o*p,i*f),y=g+Math.PI,d=Math.atan2(o*f,i*p),x=d+Math.PI,v=(0,a.yN)(h,l);for(const n of[g,y,d,x].map(t=>(0,a.Cp)(v,t)))n>v.min&&n<v.max&&(0,s.tK)(t,c(r,n));return t}function m(t,n,e){const[r,s,i,o,l,f,p]=n.a,m=u(t,n),{u1:M,u2:g,isInvalid:y}=m,d=g-M;if(y)return Math.sqrt((0,a.kb)(t,r));const x=[0,0];let v=0,b=[h(m,0),h(m,.25),h(m,.5),h(m,.75),h(m,1)];for(let t=0;t<14;t++){const t=b.length-1,n=d/(2*t),r=[];for(let e=0;e<t;e++)r.push(b[e]),r.push(c(m,M+(2*e+1)*n));r.push(b[b.length-1]),b=r,v=0;let i=0;for(let t=1;t<b.length;t++){const n=b[t-1],e=b[t];if(v+=Math.sqrt((0,a.kb)(n,e)),t>1){const r=b[t-2],o=(0,a.M_)(x,r,n,s,e);i+=o?Math.sqrt((0,a.kb)(n,o)):Math.abs(e[0]-n[0])+Math.abs(e[1]-n[1])}else i+=v}if(i-v<e)return v}return v}(0,r.vt)(),(0,r.vt)(),(0,r.vt)(),(0,r.vt)()},48526:(t,n,e)=>{e.d(n,{A:()=>M});var r,s=e(31635),i=e(4718),a=e(10107),o=(e(44208),e(53966),e(64108)),u=e(43937),c=e(5443),h=e(91075),l=e(86738),f=e(16930),p=e(90634),m=e(56993);let M=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:n,hasM:e,hasZ:r,spatialReference:s}=t;switch(n??=[],n?.at(0)?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return s??=f.A.WGS84,{...t,hasM:e,hasZ:r,points:n,spatialReference:s}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,p.ge)(this);return t?new c.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,n){n.points=(0,i.o8)(this.points)}clone(){const{points:t,spatialReference:n,hasM:e,hasZ:s}=this;return new r({points:(0,i.o8)(t),spatialReference:n.clone(),hasM:e,hasZ:s})}addPoint(t){return(0,m.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(e.z=n[2],r=3),this.hasM&&(e.m=n[r]),new l.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new l.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,m.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],M.prototype,"points",void 0),(0,s.Cg)([(0,u.K)("points")],M.prototype,"writePoints",null),M=r=(0,s.Cg)([(0,o.$)("esri.geometry.Multipoint")],M),M.prototype.toJSON.isDefaultToJSON=!0},49663:(t,n,e)=>{e.d(n,{i:()=>a,x:()=>o});var r=e(34727),s=e(513),i=e(15507);function a(t,n){const[e,a,o,u]=n.a,[c,h]=t,[l,f]=e,[p,m]=a,M=c-p,g=h-m,y=Math.sqrt(M*M+g*g),d=l-p,x=f-m,v=Math.sqrt(d*d+x*x),b=0===y||0===v||!(0,r.b6)(y,v),P=y,[I,R]=(0,i.Gz)((0,i.t7)(h-m,c-p),Math.atan2(f-m,l-p),o,u);return new s.KP(p,m,P,I,R,b)}function o(t,n,e){const{cx:r,cy:i,thetaStart:a,thetaEnd:o}=t,[u,c,h,l]=n.a,f=a*(1-e)+o*e;return[{a:[(0,s.mq)(t,e),[r,i],Math.abs(f-a)<Math.PI?1:0,l]},{a:[[...u],[r,i],Math.abs(o-f)<Math.PI?1:0,l]}]}},50954:(t,n,e)=>{e.d(n,{GX:()=>h,pM:()=>c});var r=e(77690),s=e(29242),i=e(513),a=e(15507);const o=(0,s.vt)();function u(t,n,e){const[s,i]=t,[u,c]=n,[h,l]=e;(0,r.hZ)(o,s,u,h,i,c,l,1,1,1);const f=(0,r.a4)(o),p=4*f/((0,a.kb)(t,n)+(0,a.kb)(n,e)+(0,a.kb)(e,t));if(!isFinite(p)||Math.abs(p)<1e-8)return null;const m=s**2+i**2,M=u**2+c**2,g=h**2+l**2;(0,r.hZ)(o,m,M,g,i,c,l,1,1,1);const y=(0,r.a4)(o);return(0,r.hZ)(o,m,M,g,s,u,h,1,1,1),[y/f*.5,(0,r.a4)(o)/f*-.5]}function c(t,n){const[e,r]=n.c,s=u(t,r,e),o=null==s,c=s??(0,a.RS)([],t,e,.5),[h,l]=t,[f,p]=r,[m,M]=e,[g,y]=c,d=h-g,x=l-y,v=Math.sqrt(d*d+x*x),b=(0,a.t7)(l-y,h-g),P=(0,a.t7)(p-y,f-g);let I=(0,a.t7)(M-y,m-g);return(P-b)*(I-P)<0&&(I+=2*Math.sign(b-I)*Math.PI),new i.KP(g,y,v,b,I,o)}function h(t,n,e){const r=(0,i.mq)(t,e/2),s=(0,i.mq)(t,e),a=(0,i.mq)(t,(e+1)/2);return[{c:[s,r]},{c:[[...n.c[0]],a]}]}},51118:(t,n,e)=>{function r(t){const n=[];for(t.reset();t.nextPath();){const e=[];for(;t.nextPoint();){const n=[t.x,t.y];t.hasZ&&n.push(t.z),t.hasM&&n.push(t.m),e.push(n)}n.push(e)}return t.reset(),n}function s(t){const n=[];for(;t.nextPoint();)n.push([t.x,t.y]);return t.seekPathStart(),n}e.d(n,{A:()=>s,x:()=>r})},52006:(t,n,e)=>{function r(t){return"b"in t}function s(t){return"c"in t}function i(t){return Array.isArray(t)}function a(t){return"a"in t&&4===t.a.length}function o(t){return i(t)?t:r(t)?t.b[0]:s(t)?t.c[0]:t.a[0]}function u(t){if(r(t)){const[n,e,r]=t.b;return{b:[[...n],[...e],[...r]]}}if(s(t)){const[n,e]=t.c;return{c:[[...n],[...e]]}}if(i(t))return[...t];if(a(t)){const[n,e,r,s]=t.a;return{a:[[...n],[...e],r,s]}}if(function(t){return"a"in t&&7===t.a.length}(t)){const[n,e,r,s,i,a,o]=t.a;return{a:[[...n],[...e],r,s,i,a,o]}}return t}e.d(n,{DA:()=>a,Xq:()=>i,aO:()=>s,n1:()=>r,tk:()=>u,yP:()=>o})},56993:(t,n,e)=>{function r(t,n,e=!1){let{hasM:r,hasZ:s}=t;Array.isArray(n)?4!==n.length||r||s?3===n.length&&e&&!r?(s=!0,r=!1):3===n.length&&r&&s&&(r=!1,s=!1):(r=!0,s=!0):(s=!s&&n.hasZ&&(!r||n.hasM),r=!r&&n.hasM&&(!s||n.hasZ)),t.hasZ=s,t.hasM=r}e.d(n,{h:()=>r})},59803:(t,n,e)=>{e.d(n,{T:()=>i});var r=e(34727),s=e(15507);function i(t,n,e){const[i,a]=t,[o,u]=n,[c,h]=e,[l,f]=[o-i,u-a];let p=l*(c-i)+f*(h-a);p/=l**2+f**2,p=(0,r.qE)(p,0,1);const m=(0,s.RS)([0,0],t,n,p);return{t:p,curvePoint:m,distance:Math.sqrt((0,s.kb)(m,e))}}},77690:(t,n,e)=>{e.d(n,{B8:()=>o,Ge:()=>p,I0:()=>f,KC:()=>u,a4:()=>c,hZ:()=>i,hs:()=>l,lw:()=>h,mg:()=>a,z0:()=>s});var r=e(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,e,r,s,i,a,o,u,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=s,t[4]=i,t[5]=a,t[6]=o,t[7]=u,t[8]=c,t}function a(t,n){if(t===n){const e=n[1],r=n[2],s=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=s}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function o(t,n){const e=n[0],r=n[1],s=n[2],i=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8],l=h*a-o*c,f=-h*i+o*u,p=c*i-a*u;let m=e*l+r*f+s*p;return m?(m=1/m,t[0]=l*m,t[1]=(-h*r+s*c)*m,t[2]=(o*r-s*a)*m,t[3]=f*m,t[4]=(h*e-s*u)*m,t[5]=(-o*e+s*i)*m,t[6]=p*m,t[7]=(-c*e+r*u)*m,t[8]=(a*e-r*i)*m,t):null}function u(t,n){const e=n[0],r=n[1],s=n[2],i=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8];return t[0]=a*h-o*c,t[1]=s*c-r*h,t[2]=r*o-s*a,t[3]=o*u-i*h,t[4]=e*h-s*u,t[5]=s*i-e*o,t[6]=i*c-a*u,t[7]=r*u-e*c,t[8]=e*a-r*i,t}function c(t){const n=t[0],e=t[1],r=t[2],s=t[3],i=t[4],a=t[5],o=t[6],u=t[7],c=t[8];return n*(c*i-a*u)+e*(-c*s+a*o)+r*(u*s-i*o)}function h(t,n,e){const r=n[0],s=n[1],i=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=e[0],p=e[1],m=e[2],M=e[3],g=e[4],y=e[5],d=e[6],x=e[7],v=e[8];return t[0]=f*r+p*a+m*c,t[1]=f*s+p*o+m*h,t[2]=f*i+p*u+m*l,t[3]=M*r+g*a+y*c,t[4]=M*s+g*o+y*h,t[5]=M*i+g*u+y*l,t[6]=d*r+x*a+v*c,t[7]=d*s+x*o+v*h,t[8]=d*i+x*u+v*l,t}function l(t,n,e){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=s*n[3],t[4]=s*n[4],t[5]=s*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],s=n[2],i=n[3],a=e+e,o=r+r,u=s+s,c=e*a,h=r*a,l=r*o,f=s*a,p=s*o,m=s*u,M=i*a,g=i*o,y=i*u;return t[0]=1-l-m,t[3]=h-y,t[6]=f+g,t[1]=h+y,t[4]=1-c-m,t[7]=p-M,t[2]=f-g,t[5]=p+M,t[8]=1-c-l,t}function p(t,n){const e=n[0],r=n[1],s=n[2],i=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],m=n[12],M=n[13],g=n[14],y=n[15],d=e*o-r*a,x=e*u-s*a,v=e*c-i*a,b=r*u-s*o,P=r*c-i*o,I=s*c-i*u,R=h*M-l*m,A=h*g-f*m,S=h*y-p*m,w=l*g-f*M,N=l*y-p*M,Z=f*y-p*g;let C=d*Z-x*N+v*w+b*S-P*A+I*R;return C?(C=1/C,t[0]=(o*Z-u*N+c*w)*C,t[1]=(u*S-a*Z-c*A)*C,t[2]=(a*N-o*S+c*R)*C,t[3]=(s*N-r*Z-i*w)*C,t[4]=(e*Z-s*S+i*A)*C,t[5]=(r*S-e*N-i*R)*C,t[6]=(M*I-g*P+y*b)*C,t[7]=(g*v-m*I-y*x)*C,t[8]=(m*P-M*v+y*d)*C,t):null}function m(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const M=h,g=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:u,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const e=t[0],s=t[1],i=t[2],a=t[3],o=t[4],u=t[5],c=t[6],h=t[7],l=t[8],f=n[0],p=n[1],m=n[2],M=n[3],g=n[4],y=n[5],d=n[6],x=n[7],v=n[8],b=(0,r.FD)();return Math.abs(e-f)<=b*Math.max(1,Math.abs(e),Math.abs(f))&&Math.abs(s-p)<=b*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(i-m)<=b*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(a-M)<=b*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(o-g)<=b*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(u-y)<=b*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-d)<=b*Math.max(1,Math.abs(c),Math.abs(d))&&Math.abs(h-x)<=b*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(l-v)<=b*Math.max(1,Math.abs(l),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:s,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:o,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],s=t[1],i=t[2],a=t[3],o=t[4],u=t[5],c=t[6],h=t[7],l=t[8];return Math.abs(1-(e*e+a*a+c*c))<=n&&Math.abs(1-(s*s+o*o+h*h))<=n&&Math.abs(1-(i*i+u*u+l*l))<=n},mul:M,multiply:h,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:p,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],s=n[2],i=n[4],a=n[5],o=n[6],u=n[8],c=n[9],h=n[10],l=h*a-o*c,f=-h*i+o*u,p=c*i-a*u,m=e*l+r*f+s*p;if(!m)return null;const M=1/m;return t[0]=l*M,t[1]=(-h*r+s*c)*M,t[2]=(o*r-s*a)*M,t[3]=f*M,t[4]=(h*e-s*u)*M,t[5]=(-o*e+s*i)*M,t[6]=p*M,t[7]=(-c*e+r*u)*M,t[8]=(a*e-r*i)*M,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],s=n[1],i=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=Math.sin(e),p=Math.cos(e);return t[0]=p*r+f*a,t[1]=p*s+f*o,t[2]=p*i+f*u,t[3]=p*a-f*r,t[4]=p*o-f*s,t[5]=p*u-f*i,t[6]=c,t[7]=h,t[8]=l,t},scale:l,scaleByVec2:function(t,n,e){const r=e[0],s=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=s*n[3],t[4]=s*n[4],t[5]=s*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:g,subtract:m,translate:function(t,n,e){const r=n[0],s=n[1],i=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=e[0],p=e[1];return t[0]=r,t[1]=s,t[2]=i,t[3]=a,t[4]=o,t[5]=u,t[6]=f*r+p*a+c,t[7]=f*s+p*o+h,t[8]=f*i+p*u+l,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},82799:(t,n,e)=>{e.d(n,{A:()=>M});var r,s=e(31635),i=e(4718),a=e(10107),o=(e(44208),e(53966),e(64108)),u=e(43937),c=e(5443),h=e(91075),l=e(86738),f=e(16930),p=e(90634),m=e(56993);let M=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:r,spatialReference:s}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return s??=f.A.WGS84,{...t,hasM:e,hasZ:r,paths:n,spatialReference:s}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,n){n.curvePaths=(0,i.o8)(t)}get extent(){const t=(0,p.Z3)(this),{spatialReference:n}=this;return t?new c.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,i.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,i.o8)(this.paths),t.curvePaths=(0,i.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],r=this.hasZ,s=this.hasM;return r&&!s?new l.A(e[0],e[1],e[2],void 0,this.spatialReference):s&&!r?new l.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&s?new l.A(e[0],e[1],e[2],e[3],this.spatialReference):new l.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new l.A(t,e));return this.notifyChange("paths"),r}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new l.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const r=this.paths[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],M.prototype,"curvePaths",void 0),(0,s.Cg)([(0,u.K)("curvePaths")],M.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],M.prototype,"paths",void 0),(0,s.Cg)([(0,u.K)("paths")],M.prototype,"writePaths",null),M=r=(0,s.Cg)([(0,o.$)("esri.geometry.Polyline")],M),M.prototype.toJSON.isDefaultToJSON=!0},90634:(t,n,e)=>{e.d(n,{HA:()=>h,Z3:()=>p,ge:()=>l,v:()=>f});var r=e(6606);const s=[];function i(t,n,e,r){return{xmin:t,ymin:n,xmax:e,ymax:r}}function a(t,n,e,r,s,i){return{xmin:t,ymin:n,zmin:e,xmax:r,ymax:s,zmax:i}}function o(t,n,e,r,s,i){return{xmin:t,ymin:n,mmin:e,xmax:r,ymax:s,mmax:i}}function u(t,n,e,r,s,i,a,o){return{xmin:t,ymin:n,zmin:e,mmin:r,xmax:s,ymax:i,zmax:a,mmax:o}}function c(t,n=!1,e=!1){return n?e?u(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):a(t[0],t[1],t[2],t[3],t[4],t[5]):e?o(t[0],t[1],t[2],t[3],t[4],t[5]):i(t[0],t[1],t[2],t[3])}function h(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:n,y:e,z:r,m:s}=t,c=null!=s;return null!=r?c?u(n,e,r,s,n,e,r,s):a(n,e,r,n,e,r):c?o(n,e,s,n,e,s):i(n,e,n,e)}(t):function(t){return void 0!==t.rings}(t)?f(t):function(t){return void 0!==t.paths}(t)?p(t):function(t){return void 0!==t.points}(t)?l(t):null:null}function l(t){const{hasZ:n,hasM:e,points:i}=t,a=(0,r.Pj)(s,i,n??!1,e??!1,n??!1,e??!1);return a?c(a,n,e):null}function f(t){const{hasZ:n,hasM:e,rings:i,curveRings:a}=t,o=(0,r.Yz)(s,a??i,n??!1,e??!1);return o?c(o,n,e):null}function p(t){const{hasZ:n,hasM:e,paths:i,curvePaths:a}=t,o=(0,r.Yz)(s,a??i,n??!1,e??!1);return o?c(o,n,e):null}},95108:(t,n,e)=>{e.d(n,{$3:()=>c,Ng:()=>a,R3:()=>s,Yl:()=>u,gR:()=>i,m3:()=>l,t9:()=>o});var r=e(4576);function s(t,n){const e=n[0]-t[0],r=n[1]-t[1];if(t.length>2&&n.length>2){const s=t[2]-n[2];return Math.sqrt(e*e+r*r+s*s)}return Math.sqrt(e*e+r*r)}function i(t,n,e,r){const[s,i]=n,[a,o]=e,[u,c]=r,h=u-a,l=c-o,f=h*h+l*l,p=(s-a)*h+(i-o)*l,m=Math.min(1,Math.max(0,p/f));return t[0]=a+h*m,t[1]=o+l*m,t}function a(t,n,e,r,s,i){let a=e,o=r,u=s-a,c=i-o;if(0!==u||0!==c){const e=((t-a)*u+(n-o)*c)/(u*u+c*c);e>1?(a=s,o=i):e>0&&(a+=u*e,o+=c*e)}return u=t-a,c=n-o,u*u+c*c}function o(t,n){return function(t,n,e){const r=t[0]+e*(n[0]-t[0]),s=t[1]+e*(n[1]-t[1]);return t.length>2&&n.length>2?[r,s,t[2]+e*(n[2]-t[2])]:[r,s]}(t,n,.5)}function u(t){const n=t.length;let e=0;for(let r=0;r<n-1;++r)e+=s(t[r],t[r+1]);return e}function c(t,n=0,e=1){let r=0;const s=t.length;let i=t[0];for(let a=1;a<s;a++){const s=t[a];r+=(s[n]-i[n])*(s[e]+i[e]),i=s}if(h(t)){const s=t[0];r+=(s[n]-i[n])*(s[e]+i[e])}return r>=0}function h(t){const n=t.length;return n>0&&!(0,r.aI)(t[0],t[n-1])}function l(t){if("rings"in t)for(const n of t.rings)h(n)&&n.push(n[0].slice())}e(21325)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1882],{513:(t,n,e)=>{e.d(n,{KP:()=>a,X0:()=>h,fM:()=>c,mq:()=>u,zW:()=>l});var r=e(19419),s=e(59803),i=e(15507);class a{constructor(t,n,e,r,s,i){this.cx=t,this.cy=n,this.radius=e,this.thetaStart=r,this.thetaEnd=s,this.isInvalid=i}get startPoint(){const{cx:t,cy:n,radius:e,thetaStart:r}=this;return[t+e*Math.cos(r),n+e*Math.sin(r)]}get endPoint(){const{cx:t,cy:n,radius:e,thetaEnd:r}=this;return[t+e*Math.cos(r),n+e*Math.sin(r)]}}function o(t,n){const{cx:e,cy:r,radius:s}=t;return[e+s*Math.cos(n),r+s*Math.sin(n)]}function u(t,n){if(t.isInvalid)return(0,i.RS)([0,0],t.startPoint,t.endPoint,n);const{thetaStart:e,thetaEnd:r}=t;return o(t,e*(1-n)+r*n)}function c(t,n){if(t.isInvalid)return(0,s.T)(t.startPoint,t.endPoint,n);const{cx:e,cy:r,thetaStart:a,thetaEnd:u}=t,[c,h]=n,l=(0,i.Pf)((0,i.yN)(a,u),Math.atan2(h-r,c-e)),f=o(t,l);return{t:(l-a)/(u-a),curvePoint:f,distance:Math.sqrt((0,i.kb)(n,f))}}function h(t,n){if(n.isInvalid)return(0,r.tK)(t,n.startPoint),(0,r.tK)(t,n.endPoint),t;const{cx:e,cy:s,radius:a,thetaStart:u,thetaEnd:c}=n;(0,r.tK)(t,o(n,u)),(0,r.tK)(t,o(n,c));const h=(0,i.yN)(u,c),l=Math.PI/2;let f=0;for(const n of[[e+a,s],[e,s+a],[e-a,s],[e,s-a]])f=(0,i.Cp)(h,f),f>h.min&&f<h.max&&(0,r.tK)(t,n),f+=l;return t}function l(t){if(t.isInvalid)return 2*t.radius;const{radius:n,thetaStart:e,thetaEnd:r}=t;return n*Math.abs(r-e)}},4305:(t,n,e)=>{e.d(n,{jK:()=>h,lM:()=>f,m_:()=>l,ty:()=>m});var r=e(34727),s=e(19419),i=e(15507);const a=[0,0];function o(t){const n=1-t,e=n*n,r=t*t;return[e*n,3*t*e,3*r*n,r*t]}function u(t,n,e,r,s){const[i,a,u,c]=o(s);return[t[0]*i+n[0]*a+e[0]*u+r[0]*c,t[1]*i+n[1]*a+e[1]*u+r[1]*c]}function c(t,n,e,r,s){const[i,a,u,c]=o(s);return t*i+n*a+e*u+r*c}function h(t,n,e){const r=t,[s,o,u]=n.b,c=(0,i.RS)([0,0],r,o,e),h=(0,i.RS)(a,o,u,e),l=(0,i.RS)([0,0],u,s,e),f=(0,i.RS)([0,0],c,h,e),p=(0,i.RS)([0,0],h,l,e);return[{b:[(0,i.RS)([],f,p,e),c,f]},{b:[[...s],p,l]}]}function l(t,n,e){const s=t,[a,o,c]=n.b,h=(0,i.R)(e,[.1,.5,.9],t=>{const n=1-t,[e,r]=u(s,o,c,a,t);return[e,r,3*n*n*(o[0]-s[0])+6*n*t*(c[0]-o[0])+3*t*t*(a[0]-c[0]),3*n*n*(o[1]-s[1])+6*n*t*(c[1]-o[1])+3*t*t*(a[1]-c[1]),6*n*(c[0]-2*o[0]+s[0])+6*t*(a[0]-2*c[0]+o[0]),6*n*(c[1]-2*o[1]+s[1])+6*t*(a[1]-2*c[1]+o[1])]}).map(t=>Math.min(1,Math.max(0,t)));h.push(0,1);let l=1/0;const f=h.map(t=>{const n=u(s,o,c,a,t),[r,i]=n,h=e[0]-r,f=e[1]-i,p=Math.sqrt(h*h+f*f);return l=Math.min(p,l),{t,curvePoint:n,distance:p}}),p=[];for(const t of f){const{t:n,distance:e}=t;(0,r.b6)(e,l)&&!p.some(({t})=>(0,r.Sp)(t,n))&&p.push(t)}return p}function f(t,n,e){const r=n,[i,a,o]=e.b;if((0,s.tK)(t,r),(0,s.tK)(t,i),(0,s.Rj)(t,a[0],a[1])&&(0,s.Rj)(t,o[0],o[1]))return t;for(const n of p(r[0],a[0],o[0],i[0]))n>0&&n<1&&(0,s.nw)(t,c(r[0],a[0],o[0],i[0],n));for(const n of p(r[1],a[1],o[1],i[1]))n>0&&n<1&&(0,s.IO)(t,c(r[1],a[1],o[1],i[1],n));return t}function p(t,n,e,r){const s=3*(3*(n-e)-t+r),i=6*(t-2*n+e),a=3*(n-t);if(0===s)return 0!==i?[-a/i]:[];const o=Math.sqrt(i*i-4*s*a);return[(-i+o)/(2*s),(-i-o)/(2*s)]}function m(t,n,e){let r=0,s=[n];for(let n=0;n<16;n++){let n=t;const a=[];for(const t of s)a.push(...h(n,t,.5)),n=t.b[0];s=a,n=t,r=0;let o=0;for(const t of s){const[e,s,a]=t.b,u=Math.sqrt((0,i.kb)(n,e));r+=(u+(Math.sqrt((0,i.kb)(n,s))+Math.sqrt((0,i.kb)(s,a))+Math.sqrt((0,i.kb)(a,e))))/2,o+=u,n=e}if(r-o<e)return r}return r}},6606:(t,n,e)=>{e.d(n,{Rg:()=>x,LJ:()=>P,z8:()=>v,B$:()=>b,Pj:()=>A,Yz:()=>R});var r=e(19419),s=e(4305),i=e(513),a=e(50954),o=e(52006),u=e(49663),c=e(46068);function h(t,n,e){if((0,o.Xq)(e))return(0,r.tK)(t,n),(0,r.tK)(t,e),t;if((0,o.n1)(e))return(0,s.lM)(t,n,e);if((0,o.aO)(e)){const r=(0,a.pM)(n,e);return(0,i.X0)(t,r)}if((0,o.DA)(e)){const r=(0,u.i)(n,e);return(0,i.X0)(t,r)}return(0,c.DL)(t,n,e)}function l(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function f(t){return void 0!==t.points}function p(t){return void 0!==t.x&&void 0!==t.y}function m(t){return void 0!==t.paths}function g(t){return void 0!==t.rings}function M(t){return function(n,e){return null==n?e:null==e?n:t(n,e)}}const y=M(Math.min),d=M(Math.max);function x(t,n){return m(n)?R(t,n.curvePaths??n.paths,!1,!1)??t:g(n)?R(t,n.curveRings??n.rings,!1,!1)??t:f(n)?A(t,n.points,!1,!1,!1,!1):l(n)?I(t,n):(p(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.x,t[3]=n.y),t)}function v(t){let n,e,s,i;for(t.reset(),n=s=1/0,e=i=-1/0;t.nextPath();){const r=b(t);n=Math.min(r[0],n),s=Math.min(r[1],s),e=Math.max(r[2],e),i=Math.max(r[3],i)}return(0,r.vt)([n,s,e,i])}function b(t){let n,e,s,i;for(n=s=1/0,e=i=-1/0;t.nextPoint();)n=Math.min(t.x,n),s=Math.min(t.y,s),e=Math.max(t.x,e),i=Math.max(t.y,i);return(0,r.vt)([n,s,e,i])}function P(t,n){return m(n)?R(t,n.curvePaths??n.paths,!0,!1)??t:g(n)?R(t,n.curveRings??n.rings,!0,!1)??t:f(n)?A(t,n.points,!0,!1,!0,!1):l(n)?I(t,n,0,0,!0,!1):(p(n)&&(t[0]=n.x,t[1]=n.y,t[2]=n.z,t[3]=n.x,t[4]=n.y,t[5]=n.z),t)}function R(t,n,e,s){const i=e?3:2;if(!n.length||!n[0].length)return null;let a,u,c,l,[f,p]=(0,o.yP)(n[0][0]),m=f,g=p;for(let t=0;t<n.length;t++){const M=n[t];for(let t=0;t<M.length;t++){const n=(0,o.yP)(M[t]),[x,v]=n;if(f=y(f,x),p=y(p,v),m=d(m,x),g=d(g,v),e&&n.length>2){const t=n[2];a=y(a,t),u=d(u,t)}if(s&&n.length>i){const t=n[i];c=y(a,t),l=d(u,t)}const b=M[t];if((0,o.Xq)(b)||t<1)continue;const P=(0,o.yP)(M[t-1]),R=(0,r.fA)(f,p,m,g);[f,p,m,g]=h(R,P,b)}}return e?s?(t[0]=f,t[1]=p,t[2]=a,t[3]=c,t[4]=m,t[5]=g,t[6]=u,t[7]=l,t.length=8,t):(t[0]=f,t[1]=p,t[2]=a,t[3]=m,t[4]=g,t[5]=u,t.length=6,t):s?(t[0]=f,t[1]=p,t[2]=c,t[3]=m,t[4]=g,t[5]=l,t.length=6,t):(t[0]=f,t[1]=p,t[2]=m,t[3]=g,t.length=4,t)}function I(t,n,e,r,s,i){const a=n.xmin,o=n.xmax,u=n.ymin,c=n.ymax;let h=n.zmin,l=n.zmax,f=n.mmin,p=n.mmax;return s?(h=h||0,l=l||0,i?(f=f||0,p=p||0,t[0]=a,t[1]=u,t[2]=h,t[3]=f,t[4]=o,t[5]=c,t[6]=l,t[7]=p,t):(t[0]=a,t[1]=u,t[2]=h,t[3]=o,t[4]=c,t[5]=l,t)):i?(f=f||0,p=p||0,t[0]=a,t[1]=u,t[2]=f,t[3]=o,t[4]=c,t[5]=p,t):(t[0]=a,t[1]=u,t[2]=o,t[3]=c,t)}function A(t,n,e,r,s,i){const a=e?3:2,o=r&&i,u=e&&s;if(!n.length||!n[0].length)return null;let c,h,l,f,[p,m]=n[0],[g,M]=n[0];for(let t=0;t<n.length;t++){const e=n[t],[r,s]=e;if(p=y(p,r),m=y(m,s),g=d(g,r),M=d(M,s),u&&e.length>2){const t=e[2];c=y(c,t),h=d(h,t)}if(o&&e.length>a){const t=e[a];l=y(c,t),f=d(h,t)}}return s?(c=c||0,h=h||0,i?(l=l||0,f=f||0,t[0]=p,t[1]=m,t[2]=c,t[3]=l,t[4]=g,t[5]=M,t[6]=h,t[7]=f,t):(t[0]=p,t[1]=m,t[2]=c,t[3]=g,t[4]=M,t[5]=h,t)):i?(l=l||0,f=f||0,t[0]=p,t[1]=m,t[2]=l,t[3]=g,t[4]=M,t[5]=f,t):(t[0]=p,t[1]=m,t[2]=g,t[3]=M,t)}},12359:(t,n,e)=>{e.d(n,{IK:()=>h,TP:()=>f,Ve:()=>o,Z4:()=>i,l8:()=>a,w2:()=>c});var r=e(51118),s=e(95108);function i(t){return t?t.hasZ?[t.xmax-t.xmin/2,t.ymax-t.ymin/2,t.zmax-t.zmin/2]:[t.xmax-t.xmin/2,t.ymax-t.ymin/2]:null}function a(t){return function(t,n){if(!t?.length)return null;const e=[],r=[],i=n?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let e=0,s=t.length;e<s;e++){const s=u(t[e],n,i);s&&r.push(s)}if(r.sort((t,e)=>{let r=t[2]-e[2];return 0===r&&n&&(r=t[4]-e[4]),r}),r.length&&(e[0]=r[0][0],e[1]=r[0][1],n&&(e[2]=r[0][3]),(e[0]<i[0]||e[0]>i[1]||e[1]<i[2]||e[1]>i[3]||n&&(e[2]<i[4]||e[2]>i[5]))&&(e.length=0)),!e.length){const r=t[0]&&t[0].length?function(t,n){const e=n?[0,0,0]:[0,0],r=n?[0,0,0]:[0,0];let i=0,a=0,o=0,u=0;for(let c=0,h=t.length;c<h-1;c++){const h=t[c],l=t[c+1];if(h&&l){e[0]=h[0],e[1]=h[1],r[0]=l[0],r[1]=l[1],n&&h.length>2&&l.length>2&&(e[2]=h[2],r[2]=l[2]);const t=(0,s.R3)(e,r);if(t){i+=t;const e=(0,s.t9)(h,l);a+=t*e[0],o+=t*e[1],n&&e.length>2&&(u+=t*e[2])}}}return i>0?n?[a/i,o/i,u/i]:[a/i,o/i]:t.length?t[0]:null}(t[0],n):null;if(!r)return null;e[0]=r[0],e[1]=r[1],n&&r.length>2&&(e[2]=r[2])}return e}(t.rings,t.hasZ??!1)}function o(t){const n=a(t);if(!n)return null;const{hasZ:e,spatialReference:r}=t,[s,i,o]=n;return isNaN(s)||isNaN(i)||e&&isNaN(o)?null:{x:s,y:i,z:e?o:void 0,spatialReference:r}}function u(t,n,e){let r=0,s=0,i=0,a=0,o=0;const u=t.length?t[0][0]:0,c=t.length?t[0][1]:0,h=t.length&&n?t[0][2]:0;for(let l=0;l<t.length;l++){const f=t[l],p=t[(l+1)%t.length],[m,g,M]=f,y=m-u,d=g-c,[x,v,b]=p,P=x-u,R=v-c,I=y*R-P*d;if(a+=I,r+=(y+P)*I,s+=(d+R)*I,n&&f.length>2&&p.length>2){const t=M-h,n=b-h,e=y*n-P*t;i+=(t+n)*e,o+=e}m<e[0]&&(e[0]=m),m>e[1]&&(e[1]=m),g<e[2]&&(e[2]=g),g>e[3]&&(e[3]=g),n&&(M<e[4]&&(e[4]=M),M>e[5]&&(e[5]=M))}if(a>0&&(a*=-1),o>0&&(o*=-1),!a)return null;a*=.5,o*=.5;const l=[r/(6*a)+u,s/(6*a)+c,a];return n&&(e[4]===e[5]||0===o?(l[3]=(e[4]+e[5])/2,l[4]=0):(l[3]=i/(6*o)+h,l[4]=o)),l}function c(t,n){let e=0,r=0,s=0;t.nextPoint();const i=t.pathSize?t.x:0,a=t.pathSize?t.y:0;for(let o=0;o<t.pathSize;o++){t.seekInPath(o);const u=[t.x,t.y];t.seekInPath((o+1)%t.pathSize);const c=[t.x,t.y],[h,l]=u,f=h-i,p=l-a,[m,g]=c,M=m-i,y=g-a,d=f*y-M*p;s+=d,e+=(f+M)*d,r+=(p+y)*d,h<n[0]&&(n[0]=h),h>n[1]&&(n[1]=h),l<n[2]&&(n[2]=l),l>n[3]&&(n[3]=l)}return s>0&&(s*=-1),s?(s*=.5,[e/(6*s)+i,r/(6*s)+a,s]):null}function h(t){const{hasZ:n,totalSize:e}=t;if(0===e)return null;const i=[],a=[],o=n?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];for(t.reset();t.nextPath();){const n=u((0,r.A)(t),t.hasZ,o);n&&a.push(n)}if(a.sort((t,e)=>{let r=t[2]-e[2];return 0===r&&n&&(r=t[4]-e[4]),r}),a.length&&(i[0]=a[0][0],i[1]=a[0][1],n&&(i[2]=a[0][3]),(i[0]<o[0]||i[0]>o[1]||i[1]<o[2]||i[1]>o[3]||n&&(i[2]<o[4]||i[2]>o[5]))&&(i.length=0)),!i.length){t.reset(),t.nextPath();const e=t.pathSize?function(t){const{hasZ:n}=t,e=n?[0,0,0]:[0,0],r=n?[0,0,0]:[0,0];let i=0,a=0,o=0,u=0;if(t.nextPoint()){let c=t.x,h=t.y,l=t.z;for(;t.nextPoint();){const f=t.x,p=t.y,m=t.z;e[0]=c,e[1]=h,r[0]=f,r[1]=p,n&&(e[2]=l,r[2]=m);const g=(0,s.R3)(e,r);if(g){i+=g;const t=(0,s.t9)(e,r);a+=g*t[0],o+=g*t[1],n&&t.length>2&&(u+=g*t[2])}c=f,h=p,l=m}}return i>0?n?[a/i,o/i,u/i]:[a/i,o/i]:t.pathSize?(t.seekPathStart(),t.nextPoint(),[t.x,t.y]):null}(t):null;if(!e)return null;i[0]=e[0],i[1]=e[1],n&&e.length>2&&(i[2]=e[2])}return i}const l=1e-6;function f(t){let n=0;for(t.reset();t.nextPath();)n+=t.getCurrentRingArea();if(n<l){const n=h(t);return n?[n[0],n[1]]:null}const e=[0,0];if(t.reset(),!t.nextPath()||!t.nextPoint())return null;const r=[t.x,t.y];for(t.reset();t.nextPath();)m(e,r,t);return e[0]*=1/n,e[1]*=1/n,e[0]+=r[0],e[1]+=r[1],e}const p=1/3;function m(t,n,e){if(!t||!e||e.pathSize<3)return null;e.nextPoint();const r=e.x,s=e.y;e.nextPoint();let i,a=e.x-r,o=e.y-s,u=0,c=0;for(;e.nextPoint();)u=e.x-r,c=e.y-s,i=.5*p*(u*o-c*a),t[0]+=i*(a+u),t[1]+=i*(o+c),a=u,o=c;const h=e.getCurrentRingArea(),l=[r,s];return l[0]-=n[0],l[1]-=n[1],l[0]*=h,l[1]*=h,t[0]+=l[0],t[1]+=l[1],t}},15507:(t,n,e)=>{e.d(n,{Cp:()=>m,Gz:()=>p,M_:()=>o,Pf:()=>g,R:()=>M,RS:()=>i,kb:()=>a,t7:()=>c,yN:()=>f});var r=e(34727),s=e(37585);function i(t,n,e,r){return t[0]=n[0]*(1-r)+e[0]*r,t[1]=n[1]*(1-r)+e[1]*r,t}function a(t,n){return(0,s.hG)(t,n)}function o(t,n,e,r,s){const[i,a]=n,[o,u]=e,[c,h]=r,[l,f]=s,p=(i-o)*(h-f)-(a-u)*(c-l);if(0===p)return null;const m=(i*u-a*o)*(c-l)-(i-o)*(c*f-h*l),g=(i*u-a*o)*(h-f)-(a-u)*(c*f-h*l);return t[0]=m/p,t[1]=g/p,t}const u=2*Math.PI;function c(t,n){const e=Math.atan2(t,n);return e<0?e+u:e}function h(t){return Math.abs(t)%u}function l(t){const n=h(t);return n<Math.PI?n:u-n}function f(t,n){return{min:Math.min(t,n),max:Math.max(t,n)}}function p(t,n,e,s){if((0,r.Sp)(h(t-n),0))return e?[t,t]:[t,s?t-u:t+u];const[i,a]=s?[t-u,t]:[t,t+u];return[t,m({min:i,max:a},n)]}function m({min:t,max:n},e){let r;return r=n-e,r>=u?(r-=r%u,e+r):(r=e-t,r>=u?(r-=r%u,e-r):e)}function g(t,n){const e=m(t,n);return e>t.min&&e<t.max?e:l(e-t.min)<l(e-t.max)?t.min:t.max}function M(t,n,e,r=10){return n.map(n=>{let s=n;for(let n=0;n<r;n++){const[n,r,i,a,o,u]=e(s),c=t[0]-n,h=t[1]-r,l=-i,f=-a;s+=-(2*c*l+2*h*f)/(2*l*l+2*c*-o+2*f*f+2*h*-u||1e-6)}return s})}},29242:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function s(t,n,e,r,s,i,a,o,u){return[t,n,e,r,s,i,a,o,u]}e.d(n,{fA:()=>s,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:s},Symbol.toStringTag,{value:"Module"}))},34304:(t,n,e)=>{e.d(n,{DF:()=>u,FD:()=>s,Ov:()=>i,ct:()=>c});let r=1e-6;function s(){return r}const i=Math.random,a=Math.PI/180,o=180/Math.PI;function u(t){return t*a}function c(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:s,setEpsilon:function(t){r=t},toDegree:c,toRadian:u},Symbol.toStringTag,{value:"Module"}))},37585:(t,n,e)=>{e.d(n,{C:()=>s,Cc:()=>M,Io:()=>l,S8:()=>g,WQ:()=>a,aI:()=>v,e$:()=>d,hG:()=>f,hZ:()=>i,hs:()=>h,jb:()=>P,l0:()=>y,t2:()=>x});var r=e(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t}function i(t,n,e){return t[0]=n,t[1]=e,t}function a(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t}function o(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function u(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function h(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function f(t,n){const e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function p(t){const n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function m(t){const n=t[0],e=t[1];return n*n+e*e}function g(t,n){const e=n[0],r=n[1];let s=e*e+r*r;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s),t}function M(t,n,e,r){const s=n[0],i=n[1];return t[0]=s+r*(e[0]-s),t[1]=i+r*(e[1]-i),t}function y(t,n,e){const r=n[0],s=n[1];return t[0]=e[0]*r+e[2]*s+e[4],t[1]=e[1]*r+e[3]*s+e[5],t}function d(t,n,e,r){const s=n[0]-e[0],i=n[1]-e[1],a=Math.sin(r),o=Math.cos(r);return t[0]=s*o-i*a+e[0],t[1]=s*a+i*o+e[1],t}function x(t,n){return t[0]===n[0]&&t[1]===n[1]}function v(t,n){const e=t[0],s=t[1],i=n[0],a=n[1],o=(0,r.FD)();return Math.abs(e-i)<=o*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(s-a)<=o*Math.max(1,Math.abs(s),Math.abs(a))}const b=p,P=o,R=u,I=c,A=l,S=f,w=m;Object.freeze(Object.defineProperty({__proto__:null,add:a,angle:function(t,n){const e=t[0],r=t[1],s=n[0],i=n[1];let a=e*e+r*r;a>0&&(a=1/Math.sqrt(a));let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));const u=(e*s+r*i)*a*o;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},copy:s,cross:function(t,n,e){const r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},dist:A,distance:l,div:I,divide:c,dot:function(t,n){return t[0]*n[0]+t[1]*n[1]},equals:v,exactEquals:x,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:b,length:p,lerp:M,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},mul:R,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t},normalize:g,projectAndScale:function(t,n,e,r,s){let i=n[0]-e[0],a=n[1]-e[1];const o=(r[0]*i+r[1]*a)*(s-1);return i=r[0]*o,a=r[1]*o,t[0]=n[0]+i,t[1]=n[1]+a,t},random:function(t,n=1){const e=2*(0,r.Ov)()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},rotate:d,round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t},scale:h,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t},set:i,sqrDist:S,sqrLen:w,squaredDistance:f,squaredLength:m,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:P,subtract:o,transformMat2:function(t,n,e){const r=n[0],s=n[1];return t[0]=e[0]*r+e[2]*s,t[1]=e[1]*r+e[3]*s,t},transformMat2d:y,transformMat3:function(t,n,e){const r=n[0],s=n[1];return t[0]=e[0]*r+e[3]*s+e[6],t[1]=e[1]*r+e[4]*s+e[7],t},transformMat4:function(t,n,e){const r=n[0],s=n[1];return t[0]=e[0]*r+e[4]*s+e[12],t[1]=e[1]*r+e[5]*s+e[13],t}},Symbol.toStringTag,{value:"Module"}))},39829:(t,n,e)=>{e.d(n,{A:()=>I});var r,s=e(31635),i=e(4576),a=e(51447),o=e(4718),u=e(53966),c=e(10107),h=(e(44208),e(64108)),l=e(43937),f=e(5443),p=e(91075),m=e(86738),g=e(16930),M=e(12359),y=e(94078),d=e(95108),x=e(90634),v=e(12176),b=e(28735),P=e(56993);function R(t){return!Array.isArray(t[0])}let I=r=class extends p.A{static fromExtent(t){const n=t.clone().normalize(),{spatialReference:e}=t;let s=!1,i=!1;for(const t of n)t.hasZ&&(s=!0),t.hasM&&(i=!0);const a={rings:n.map(t=>{const n=[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]];if(s&&t.hasZ){const e=t.zmin+.5*(t.zmax-t.zmin);for(let t=0;t<n.length;t++)n[t].push(e)}if(i&&t.hasM){const e=t.mmin+.5*(t.mmax-t.mmin);for(let t=0;t<n.length;t++)n[t].push(e)}return n}),spatialReference:e};return s&&(a.hasZ=!0),i&&(a.hasM=!0),new r(a)}constructor(t){super(function(t){if(!t)return;let{rings:n,hasM:e,hasZ:r,spatialReference:s}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return s??=g.A.WGS84,{...t,hasM:e,hasZ:r,rings:n,spatialReference:s}}(t)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){(0,a.Lx)(u.A.getLogger(this),"centroid",{replacement:"Please use centroidOperator.execute() instead.",version:"4.34",warnOnce:!0});const t=(0,M.Ve)(this);return t?m.A.fromJSON(t):null}writeCurveRings(t,n){n.curveRings=(0,o.o8)(t)}get extent(){const t=(0,x.v)(this),{spatialReference:n}=this;return t?new f.A({...t,spatialReference:n}):null}get isSelfIntersecting(){return(0,a.Lx)(u.A.getLogger(this),"isSelfIntersecting",{replacement:"Please use simplifyOperator.isSimple() instead.",version:"4.33",warnOnce:!0}),(0,v.A3)(this.rings)}writeRings(t,n){n.rings=(0,o.o8)(this.rings)}addRing(t){if(!t)return;const n=this.rings,e=n.length;if(R(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("rings"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.rings=(0,o.o8)(this.rings),t.curveRings=(0,o.o8)(this.curveRings),t.hasZ=this.hasZ,t.hasM=this.hasM,t}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;if(null!=n!=(null!=e))return!1;if(null!=n&&null!=e&&!n.equals(e))return!1;if(this.rings.length!==t.rings.length)return!1;const r=([t,n,e,r],[s,i,a,o])=>t===s&&n===i&&(null==e&&null==a||e===a)&&(null==r&&null==o||r===o);for(let n=0;n<this.rings.length;n++){const e=this.rings[n],s=t.rings[n];if(!(0,i.aI)(e,s,r))return!1}return!0}contains(t){if(!t)return!1;const n=(0,b.Cv)(t,this.spatialReference);return(0,y.m3)(this,null!=n?n:t)}isClockwise(t){const n=R(t)?t.map(t=>this.hasZ?this.hasM?[t.x,t.y,t.z,t.m]:[t.x,t.y,t.z]:[t.x,t.y]):t;return(0,d.$3)(n)}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.rings[t][n],r=this.hasZ,s=this.hasM;return r&&!s?new m.A(e[0],e[1],e[2],void 0,this.spatialReference):s&&!r?new m.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&s?new m.A(e[0],e[1],e[2],e[3],this.spatialReference):new m.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,P.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t].splice(n,0,e),this.notifyChange("rings"),this):this}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new m.A(this.rings[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("rings"),e}removeRing(t){if(!this._validateInputs(t,null))return null;const n=this.rings.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new m.A(t,e));return this.notifyChange("rings"),r}setPoint(t,n,e){return this._validateInputs(t,n)?((0,P.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.rings[t][n]=e,this.notifyChange("rings"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.rings.length)return!1;if(null!=n){const r=this.rings[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s.Cg)([(0,c.MZ)({readOnly:!0})],I.prototype,"cache",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],I.prototype,"centroid",null),(0,s.Cg)([(0,c.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],I.prototype,"curveRings",void 0),(0,s.Cg)([(0,l.K)("curveRings")],I.prototype,"writeCurveRings",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],I.prototype,"extent",null),(0,s.Cg)([(0,c.MZ)({readOnly:!0})],I.prototype,"isSelfIntersecting",null),(0,s.Cg)([(0,c.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],I.prototype,"rings",void 0),(0,s.Cg)([(0,l.K)("rings")],I.prototype,"writeRings",null),I=r=(0,s.Cg)([(0,h.$)("esri.geometry.Polygon")],I),I.prototype.toJSON.isDefaultToJSON=!0},46068:(t,n,e)=>{e.d(n,{DL:()=>p,ED:()=>l,SW:()=>u,pb:()=>f,xm:()=>m}),e(77690);var r=e(29242),s=(e(37585),e(19419)),i=e(52006),a=e(15507);class o{constructor(t,n,e,r,s,i,a,o,u){this.cx=t,this.cy=n,this.a=e,this.b=r,this.cosR=s,this.sinR=i,this.u1=a,this.u2=o,this.isInvalid=u}}function u(t,n){const[e,r,s,i,u,c,h]=n.a,[l,f]=t,[p,m]=e,[g,M]=r,y=c*h,d=Math.cos(u),x=Math.sin(u),[v,b]=(0,a.Gz)((0,a.t7)(1/y*(f-M)*d-1/y*(l-g)*x,1/c*(f-M)*x+1/c*(l-g)*d),Math.atan2(1/y*(m-M)*d-1/y*(p-g)*x,1/c*(m-M)*x+1/c*(p-g)*d),s,i);return new o(g,M,c,y,d,x,v,b,0===c||0===y)}function c(t,n){const{a:e,b:r,cosR:s,sinR:i,cx:a,cy:o}=t,u=Math.cos(n),c=Math.sin(n);return[e*u*s-r*c*i+a,e*u*i+r*c*s+o]}function h(t,n){const{u1:e,u2:r}=t;return c(t,e*(1-n)+r*n)}function l(t,n,e){if(e<0||e>1)return[];if(0===e||1===e)return[(0,i.tk)(n)];const[r,[s,a],o,u,c,l,f]=n.a,{u1:p,u2:m}=t,g=p*(1-e)+m*e;return[{a:[[...h(t,e)],[s,a],Math.abs(g-p)<Math.PI?1:0,u,c,l,f]},{a:[[...r],[s,a],Math.abs(m-g)<Math.PI?1:0,u,c,l,f]}]}function f(t,n){const{a:e,b:r,cosR:s,sinR:i,u1:o,u2:u}=t,h=Math.PI/6,l=(0,a.R)(n,[1*h,2*h,4*h,5*h,7*h,8*h,10*h,11*h],n=>{const a=Math.cos(n),o=Math.sin(n),[u,h]=c(t,n);return[u,h,-e*s*o-r*i*a,-e*i*o+r*s*a,-e*s*a+r*i*o,-e*i*a-r*s*o]}),f=(0,a.yN)(o,u),p=new Set(l.map(t=>(0,a.Cp)(f,t)).filter(t=>t>f.min&&t<f.max));p.add(o),p.add(u);let m,g,M=1/0;for(const e of p){const r=c(t,e),[s,i]=r,a=n[0]-s,h=n[1]-i,l=a*a+h*h;l<M&&(m=(e-o)/(u-o),g=r,M=l)}return{t:m,curvePoint:g,distance:Math.sqrt(M)}}function p(t,n,e){const r=u(n,e),{a:i,b:o,u1:h,u2:l,cosR:f,sinR:p,isInvalid:m}=r,g=e.a[0];if((0,s.tK)(t,n),(0,s.tK)(t,g),m)return t;const M=Math.atan2(-o*p,i*f),y=M+Math.PI,d=Math.atan2(o*f,i*p),x=d+Math.PI,v=(0,a.yN)(h,l);for(const n of[M,y,d,x].map(t=>(0,a.Cp)(v,t)))n>v.min&&n<v.max&&(0,s.tK)(t,c(r,n));return t}function m(t,n,e){const[r,s,i,o,l,f,p]=n.a,m=u(t,n),{u1:g,u2:M,isInvalid:y}=m,d=M-g;if(y)return Math.sqrt((0,a.kb)(t,r));const x=[0,0];let v=0,b=[h(m,0),h(m,.25),h(m,.5),h(m,.75),h(m,1)];for(let t=0;t<14;t++){const t=b.length-1,n=d/(2*t),r=[];for(let e=0;e<t;e++)r.push(b[e]),r.push(c(m,g+(2*e+1)*n));r.push(b[b.length-1]),b=r,v=0;let i=0;for(let t=1;t<b.length;t++){const n=b[t-1],e=b[t];if(v+=Math.sqrt((0,a.kb)(n,e)),t>1){const r=b[t-2],o=(0,a.M_)(x,r,n,s,e);i+=o?Math.sqrt((0,a.kb)(n,o)):Math.abs(e[0]-n[0])+Math.abs(e[1]-n[1])}else i+=v}if(i-v<e)return v}return v}(0,r.vt)(),(0,r.vt)(),(0,r.vt)(),(0,r.vt)()},48526:(t,n,e)=>{e.d(n,{A:()=>g});var r,s=e(31635),i=e(4718),a=e(10107),o=(e(44208),e(53966),e(64108)),u=e(43937),c=e(5443),h=e(91075),l=e(86738),f=e(16930),p=e(90634),m=e(56993);let g=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{points:n,hasM:e,hasZ:r,spatialReference:s}=t;switch(n??=[],n?.at(0)?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return s??=f.A.WGS84,{...t,hasM:e,hasZ:r,points:n,spatialReference:s}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,p.ge)(this);return t?new c.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,n){n.points=(0,i.o8)(this.points)}clone(){const{points:t,spatialReference:n,hasM:e,hasZ:s}=this;return new r({points:(0,i.o8)(t),spatialReference:n.clone(),hasM:e,hasZ:s})}addPoint(t){return(0,m.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(e.z=n[2],r=3),this.hasM&&(e.m=n[r]),new l.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new l.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,m.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,s.Cg)([(0,u.K)("points")],g.prototype,"writePoints",null),g=r=(0,s.Cg)([(0,o.$)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},49663:(t,n,e)=>{e.d(n,{i:()=>a,x:()=>o});var r=e(34727),s=e(513),i=e(15507);function a(t,n){const[e,a,o,u]=n.a,[c,h]=t,[l,f]=e,[p,m]=a,g=c-p,M=h-m,y=Math.sqrt(g*g+M*M),d=l-p,x=f-m,v=Math.sqrt(d*d+x*x),b=0===y||0===v||!(0,r.b6)(y,v),P=y,[R,I]=(0,i.Gz)((0,i.t7)(h-m,c-p),Math.atan2(f-m,l-p),o,u);return new s.KP(p,m,P,R,I,b)}function o(t,n,e){const{cx:r,cy:i,thetaStart:a,thetaEnd:o}=t,[u,c,h,l]=n.a,f=a*(1-e)+o*e;return[{a:[(0,s.mq)(t,e),[r,i],Math.abs(f-a)<Math.PI?1:0,l]},{a:[[...u],[r,i],Math.abs(o-f)<Math.PI?1:0,l]}]}},50954:(t,n,e)=>{e.d(n,{GX:()=>h,pM:()=>c});var r=e(77690),s=e(29242),i=e(513),a=e(15507);const o=(0,s.vt)();function u(t,n,e){const[s,i]=t,[u,c]=n,[h,l]=e;(0,r.hZ)(o,s,u,h,i,c,l,1,1,1);const f=(0,r.a4)(o),p=4*f/((0,a.kb)(t,n)+(0,a.kb)(n,e)+(0,a.kb)(e,t));if(!isFinite(p)||Math.abs(p)<1e-8)return null;const m=s**2+i**2,g=u**2+c**2,M=h**2+l**2;(0,r.hZ)(o,m,g,M,i,c,l,1,1,1);const y=(0,r.a4)(o);return(0,r.hZ)(o,m,g,M,s,u,h,1,1,1),[y/f*.5,(0,r.a4)(o)/f*-.5]}function c(t,n){const[e,r]=n.c,s=u(t,r,e),o=null==s,c=s??(0,a.RS)([],t,e,.5),[h,l]=t,[f,p]=r,[m,g]=e,[M,y]=c,d=h-M,x=l-y,v=Math.sqrt(d*d+x*x),b=(0,a.t7)(l-y,h-M),P=(0,a.t7)(p-y,f-M);let R=(0,a.t7)(g-y,m-M);return(P-b)*(R-P)<0&&(R+=2*Math.sign(b-R)*Math.PI),new i.KP(M,y,v,b,R,o)}function h(t,n,e){const r=(0,i.mq)(t,e/2),s=(0,i.mq)(t,e),a=(0,i.mq)(t,(e+1)/2);return[{c:[s,r]},{c:[[...n.c[0]],a]}]}},51118:(t,n,e)=>{function r(t){const n=[];for(t.reset();t.nextPath();){const e=[];for(;t.nextPoint();){const n=[t.x,t.y];t.hasZ&&n.push(t.z),t.hasM&&n.push(t.m),e.push(n)}n.push(e)}return t.reset(),n}function s(t){const n=[];for(;t.nextPoint();)n.push([t.x,t.y]);return t.seekPathStart(),n}e.d(n,{A:()=>s,x:()=>r})},52006:(t,n,e)=>{function r(t){return"curveRings"in t&&!!t.curveRings?.length||"curvePaths"in t&&!!t.curvePaths?.length}function s(t){return"b"in t}function i(t){return"c"in t}function a(t){return Array.isArray(t)}function o(t){return"a"in t&&4===t.a.length}function u(t){return a(t)?t:s(t)?t.b[0]:i(t)?t.c[0]:t.a[0]}function c(t){if(s(t)){const[n,e,r]=t.b;return{b:[[...n],[...e],[...r]]}}if(i(t)){const[n,e]=t.c;return{c:[[...n],[...e]]}}if(a(t))return[...t];if(o(t)){const[n,e,r,s]=t.a;return{a:[[...n],[...e],r,s]}}if(function(t){return"a"in t&&7===t.a.length}(t)){const[n,e,r,s,i,a,o]=t.a;return{a:[[...n],[...e],r,s,i,a,o]}}return t}e.d(n,{DA:()=>o,Ed:()=>r,Xq:()=>a,aO:()=>i,n1:()=>s,tk:()=>c,yP:()=>u})},56993:(t,n,e)=>{function r(t,n,e=!1){let{hasM:r,hasZ:s}=t;Array.isArray(n)?4!==n.length||r||s?3===n.length&&e&&!r?(s=!0,r=!1):3===n.length&&r&&s&&(r=!1,s=!1):(r=!0,s=!0):(s=!s&&n.hasZ&&(!r||n.hasM),r=!r&&n.hasM&&(!s||n.hasZ)),t.hasZ=s,t.hasM=r}e.d(n,{h:()=>r})},59803:(t,n,e)=>{e.d(n,{T:()=>i});var r=e(34727),s=e(15507);function i(t,n,e){const[i,a]=t,[o,u]=n,[c,h]=e,[l,f]=[o-i,u-a];let p=l*(c-i)+f*(h-a);p/=l**2+f**2,p=(0,r.qE)(p,0,1);const m=(0,s.RS)([0,0],t,n,p);return{t:p,curvePoint:m,distance:Math.sqrt((0,s.kb)(m,e))}}},77690:(t,n,e)=>{e.d(n,{B8:()=>o,Ge:()=>p,I0:()=>f,KC:()=>u,a4:()=>c,hZ:()=>i,hs:()=>l,lw:()=>h,mg:()=>a,z0:()=>s});var r=e(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,e,r,s,i,a,o,u,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=s,t[4]=i,t[5]=a,t[6]=o,t[7]=u,t[8]=c,t}function a(t,n){if(t===n){const e=n[1],r=n[2],s=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=s}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function o(t,n){const e=n[0],r=n[1],s=n[2],i=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8],l=h*a-o*c,f=-h*i+o*u,p=c*i-a*u;let m=e*l+r*f+s*p;return m?(m=1/m,t[0]=l*m,t[1]=(-h*r+s*c)*m,t[2]=(o*r-s*a)*m,t[3]=f*m,t[4]=(h*e-s*u)*m,t[5]=(-o*e+s*i)*m,t[6]=p*m,t[7]=(-c*e+r*u)*m,t[8]=(a*e-r*i)*m,t):null}function u(t,n){const e=n[0],r=n[1],s=n[2],i=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8];return t[0]=a*h-o*c,t[1]=s*c-r*h,t[2]=r*o-s*a,t[3]=o*u-i*h,t[4]=e*h-s*u,t[5]=s*i-e*o,t[6]=i*c-a*u,t[7]=r*u-e*c,t[8]=e*a-r*i,t}function c(t){const n=t[0],e=t[1],r=t[2],s=t[3],i=t[4],a=t[5],o=t[6],u=t[7],c=t[8];return n*(c*i-a*u)+e*(-c*s+a*o)+r*(u*s-i*o)}function h(t,n,e){const r=n[0],s=n[1],i=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=e[0],p=e[1],m=e[2],g=e[3],M=e[4],y=e[5],d=e[6],x=e[7],v=e[8];return t[0]=f*r+p*a+m*c,t[1]=f*s+p*o+m*h,t[2]=f*i+p*u+m*l,t[3]=g*r+M*a+y*c,t[4]=g*s+M*o+y*h,t[5]=g*i+M*u+y*l,t[6]=d*r+x*a+v*c,t[7]=d*s+x*o+v*h,t[8]=d*i+x*u+v*l,t}function l(t,n,e){const r=e[0],s=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=s*n[3],t[4]=s*n[4],t[5]=s*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],s=n[2],i=n[3],a=e+e,o=r+r,u=s+s,c=e*a,h=r*a,l=r*o,f=s*a,p=s*o,m=s*u,g=i*a,M=i*o,y=i*u;return t[0]=1-l-m,t[3]=h-y,t[6]=f+M,t[1]=h+y,t[4]=1-c-m,t[7]=p-g,t[2]=f-M,t[5]=p+g,t[8]=1-c-l,t}function p(t,n){const e=n[0],r=n[1],s=n[2],i=n[3],a=n[4],o=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],m=n[12],g=n[13],M=n[14],y=n[15],d=e*o-r*a,x=e*u-s*a,v=e*c-i*a,b=r*u-s*o,P=r*c-i*o,R=s*c-i*u,I=h*g-l*m,A=h*M-f*m,S=h*y-p*m,w=l*M-f*g,N=l*y-p*g,Z=f*y-p*M;let C=d*Z-x*N+v*w+b*S-P*A+R*I;return C?(C=1/C,t[0]=(o*Z-u*N+c*w)*C,t[1]=(u*S-a*Z-c*A)*C,t[2]=(a*N-o*S+c*I)*C,t[3]=(s*N-r*Z-i*w)*C,t[4]=(e*Z-s*S+i*A)*C,t[5]=(r*S-e*N-i*I)*C,t[6]=(g*R-M*P+y*b)*C,t[7]=(M*v-m*R-y*x)*C,t[8]=(m*P-g*v+y*d)*C,t):null}function m(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const g=h,M=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:u,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const e=t[0],s=t[1],i=t[2],a=t[3],o=t[4],u=t[5],c=t[6],h=t[7],l=t[8],f=n[0],p=n[1],m=n[2],g=n[3],M=n[4],y=n[5],d=n[6],x=n[7],v=n[8],b=(0,r.FD)();return Math.abs(e-f)<=b*Math.max(1,Math.abs(e),Math.abs(f))&&Math.abs(s-p)<=b*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(i-m)<=b*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(a-g)<=b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(o-M)<=b*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(u-y)<=b*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-d)<=b*Math.max(1,Math.abs(c),Math.abs(d))&&Math.abs(h-x)<=b*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(l-v)<=b*Math.max(1,Math.abs(l),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:s,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:o,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],s=t[1],i=t[2],a=t[3],o=t[4],u=t[5],c=t[6],h=t[7],l=t[8];return Math.abs(1-(e*e+a*a+c*c))<=n&&Math.abs(1-(s*s+o*o+h*h))<=n&&Math.abs(1-(i*i+u*u+l*l))<=n},mul:g,multiply:h,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:p,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],s=n[2],i=n[4],a=n[5],o=n[6],u=n[8],c=n[9],h=n[10],l=h*a-o*c,f=-h*i+o*u,p=c*i-a*u,m=e*l+r*f+s*p;if(!m)return null;const g=1/m;return t[0]=l*g,t[1]=(-h*r+s*c)*g,t[2]=(o*r-s*a)*g,t[3]=f*g,t[4]=(h*e-s*u)*g,t[5]=(-o*e+s*i)*g,t[6]=p*g,t[7]=(-c*e+r*u)*g,t[8]=(a*e-r*i)*g,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],s=n[1],i=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=Math.sin(e),p=Math.cos(e);return t[0]=p*r+f*a,t[1]=p*s+f*o,t[2]=p*i+f*u,t[3]=p*a-f*r,t[4]=p*o-f*s,t[5]=p*u-f*i,t[6]=c,t[7]=h,t[8]=l,t},scale:l,scaleByVec2:function(t,n,e){const r=e[0],s=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=s*n[3],t[4]=s*n[4],t[5]=s*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:M,subtract:m,translate:function(t,n,e){const r=n[0],s=n[1],i=n[2],a=n[3],o=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=e[0],p=e[1];return t[0]=r,t[1]=s,t[2]=i,t[3]=a,t[4]=o,t[5]=u,t[6]=f*r+p*a+c,t[7]=f*s+p*o+h,t[8]=f*i+p*u+l,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},82799:(t,n,e)=>{e.d(n,{A:()=>g});var r,s=e(31635),i=e(4718),a=e(10107),o=(e(44208),e(53966),e(64108)),u=e(43937),c=e(5443),h=e(91075),l=e(86738),f=e(16930),p=e(90634),m=e(56993);let g=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:r,spatialReference:s}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return s??=f.A.WGS84,{...t,hasM:e,hasZ:r,paths:n,spatialReference:s}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,n){n.curvePaths=(0,i.o8)(t)}get extent(){const t=(0,p.Z3)(this),{spatialReference:n}=this;return t?new c.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,i.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,i.o8)(this.paths),t.curvePaths=(0,i.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],r=this.hasZ,s=this.hasM;return r&&!s?new l.A(e[0],e[1],e[2],void 0,this.spatialReference):s&&!r?new l.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&s?new l.A(e[0],e[1],e[2],e[3],this.spatialReference):new l.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new l.A(t,e));return this.notifyChange("paths"),r}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new l.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const r=this.paths[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,s.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,s.Cg)([(0,a.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],g.prototype,"curvePaths",void 0),(0,s.Cg)([(0,u.K)("curvePaths")],g.prototype,"writeCurvePaths",null),(0,s.Cg)([(0,a.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,s.Cg)([(0,a.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],g.prototype,"paths",void 0),(0,s.Cg)([(0,u.K)("paths")],g.prototype,"writePaths",null),g=r=(0,s.Cg)([(0,o.$)("esri.geometry.Polyline")],g),g.prototype.toJSON.isDefaultToJSON=!0},90634:(t,n,e)=>{e.d(n,{HA:()=>h,Z3:()=>p,ge:()=>l,v:()=>f});var r=e(6606);const s=[];function i(t,n,e,r){return{xmin:t,ymin:n,xmax:e,ymax:r}}function a(t,n,e,r,s,i){return{xmin:t,ymin:n,zmin:e,xmax:r,ymax:s,zmax:i}}function o(t,n,e,r,s,i){return{xmin:t,ymin:n,mmin:e,xmax:r,ymax:s,mmax:i}}function u(t,n,e,r,s,i,a,o){return{xmin:t,ymin:n,zmin:e,mmin:r,xmax:s,ymax:i,zmax:a,mmax:o}}function c(t,n=!1,e=!1){return n?e?u(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]):a(t[0],t[1],t[2],t[3],t[4],t[5]):e?o(t[0],t[1],t[2],t[3],t[4],t[5]):i(t[0],t[1],t[2],t[3])}function h(t){return t?function(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}(t)?t:function(t){return void 0!==t.x&&void 0!==t.y}(t)?function(t){const{x:n,y:e,z:r,m:s}=t,c=null!=s;return null!=r?c?u(n,e,r,s,n,e,r,s):a(n,e,r,n,e,r):c?o(n,e,s,n,e,s):i(n,e,n,e)}(t):function(t){return void 0!==t.rings}(t)?f(t):function(t){return void 0!==t.paths}(t)?p(t):function(t){return void 0!==t.points}(t)?l(t):null:null}function l(t){const{hasZ:n,hasM:e,points:i}=t,a=(0,r.Pj)(s,i,n??!1,e??!1,n??!1,e??!1);return a?c(a,n,e):null}function f(t){const{hasZ:n,hasM:e,rings:i,curveRings:a}=t,o=(0,r.Yz)(s,a??i,n??!1,e??!1);return o?c(o,n,e):null}function p(t){const{hasZ:n,hasM:e,paths:i,curvePaths:a}=t,o=(0,r.Yz)(s,a??i,n??!1,e??!1);return o?c(o,n,e):null}},95108:(t,n,e)=>{e.d(n,{$3:()=>c,Ng:()=>a,R3:()=>s,Yl:()=>u,gR:()=>i,m3:()=>l,t9:()=>o});var r=e(4576);function s(t,n){const e=n[0]-t[0],r=n[1]-t[1];if(t.length>2&&n.length>2){const s=t[2]-n[2];return Math.sqrt(e*e+r*r+s*s)}return Math.sqrt(e*e+r*r)}function i(t,n,e,r){const[s,i]=n,[a,o]=e,[u,c]=r,h=u-a,l=c-o,f=h*h+l*l,p=(s-a)*h+(i-o)*l,m=Math.min(1,Math.max(0,p/f));return t[0]=a+h*m,t[1]=o+l*m,t}function a(t,n,e,r,s,i){let a=e,o=r,u=s-a,c=i-o;if(0!==u||0!==c){const e=((t-a)*u+(n-o)*c)/(u*u+c*c);e>1?(a=s,o=i):e>0&&(a+=u*e,o+=c*e)}return u=t-a,c=n-o,u*u+c*c}function o(t,n){return function(t,n,e){const r=t[0]+e*(n[0]-t[0]),s=t[1]+e*(n[1]-t[1]);return t.length>2&&n.length>2?[r,s,t[2]+e*(n[2]-t[2])]:[r,s]}(t,n,.5)}function u(t){const n=t.length;let e=0;for(let r=0;r<n-1;++r)e+=s(t[r],t[r+1]);return e}function c(t,n=0,e=1){let r=0;const s=t.length;let i=t[0];for(let a=1;a<s;a++){const s=t[a];r+=(s[n]-i[n])*(s[e]+i[e]),i=s}if(h(t)){const s=t[0];r+=(s[n]-i[n])*(s[e]+i[e])}return r>=0}function h(t){const n=t.length;return n>0&&!(0,r.aI)(t[0],t[n-1])}function l(t){if("rings"in t)for(const n of t.rings)h(n)&&n.push(n[0].slice())}e(21325)}}]);
|