@arcgis/core 5.2.0-next.30 → 5.2.0-next.31
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/WebDocument2D.js +1 -1
- package/WebScene.js +1 -1
- package/arcade/ArcadePortal.js +1 -1
- package/arcade/Attachment.js +1 -1
- package/arcade/Dictionary.js +1 -1
- package/arcade/Feature.js +1 -1
- package/arcade/arcadeAsyncRuntime.js +1 -1
- package/arcade/arcadeCompiler.js +1 -1
- package/arcade/arcadeRuntime.js +1 -1
- package/arcade/containerUtils.js +1 -1
- package/arcade/debug.js +1 -1
- package/arcade/deepClone.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/functions/convertdirection.js +1 -1
- package/arcade/functions/date.js +1 -1
- package/arcade/functions/feature.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetgeom.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/functions/featuresetstring.js +1 -1
- package/arcade/functions/geomasync.js +1 -1
- package/arcade/functions/geometry.js +1 -1
- package/arcade/functions/geomsync.js +1 -1
- package/arcade/functions/knowledgegraph.js +1 -1
- package/arcade/functions/maths.js +1 -1
- package/arcade/functions/stats.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade/geometry/constructors.js +1 -1
- package/arcade/geometry/functions.js +1 -1
- package/arcade/languageUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{e5d2fab228d54b18a8a8.js → 08405116b5feb2d00101.js} +1 -1
- package/assets/esri/core/workers/chunks/{774615303c1cc9a77e20.js → 11af659688cf963ea6cd.js} +1 -1
- package/assets/esri/core/workers/chunks/{2665337e1b665e7e2b70.js → 15081b361fc42f40b865.js} +1 -1
- package/assets/esri/core/workers/chunks/{bcb2092c87d8d21c6458.js → 197b9f8483fad2258650.js} +1 -1
- package/assets/esri/core/workers/chunks/1cd8dff4373494b01ad4.js +1 -0
- package/assets/esri/core/workers/chunks/1d92da90fbbc3f98b201.js +1 -0
- package/assets/esri/core/workers/chunks/210ffc448c73a7bf63aa.js +1 -0
- package/assets/esri/core/workers/chunks/{a14e5607c5c091c77e3d.js → 2540beb53f1443a070d7.js} +1 -1
- package/assets/esri/core/workers/chunks/{689673173ca1c0e098fe.js → 25932fa010f9a32475c1.js} +1 -1
- package/assets/esri/core/workers/chunks/{e2d500ac1a264d09c857.js → 32b5d2537feefe6e94a3.js} +1 -1
- package/assets/esri/core/workers/chunks/34a024eda22d228e1fbe.js +1 -0
- package/assets/esri/core/workers/chunks/3f63b14b53b5ca716e3a.js +1 -0
- package/assets/esri/core/workers/chunks/{6df54132299b9e8f6dad.js → 456b77b8f13933a75b68.js} +1 -1
- package/assets/esri/core/workers/chunks/{3c342e662c13a05f4caf.js → 49713dfa4c8b788079d1.js} +1 -1
- package/assets/esri/core/workers/chunks/{45e4b9069263adeae394.js → 49a45083a9a155614c1c.js} +1 -1
- package/assets/esri/core/workers/chunks/4be31fcc5482a2526d2b.js +1 -0
- package/assets/esri/core/workers/chunks/{31d92ba9089617aa59ab.js → 57c003c6745d450558a7.js} +1 -1
- package/assets/esri/core/workers/chunks/{8104ac2eee69d79ada86.js → 6048c89fc4dcd2e9988d.js} +1 -1
- package/assets/esri/core/workers/chunks/{1b9c68e8431bb4608209.js → 6162f6735ea4622e54d8.js} +1 -1
- package/assets/esri/core/workers/chunks/684c9b4bd9590d2db12f.js +1 -0
- package/assets/esri/core/workers/chunks/684d3cb4fb233180b2d0.js +1 -0
- package/assets/esri/core/workers/chunks/{fe6385115d76e16e8da0.js → 75baf6dff6e7658b17b3.js} +1 -1
- package/assets/esri/core/workers/chunks/{166a0df6e37627e18976.js → 7a2dfa42610fe8414ed7.js} +1 -1
- package/assets/esri/core/workers/chunks/{43847d66726fd0bcbbb7.js → 83ae56c7fa8d84865605.js} +1 -1
- package/assets/esri/core/workers/chunks/8722e2790272e90a1897.js +1 -0
- package/assets/esri/core/workers/chunks/{1282598516cd0e3056b7.js → 977e6f589bd266d6067d.js} +2 -2
- package/assets/esri/core/workers/chunks/9f3d37e5f42bf1529673.js +1 -0
- package/assets/esri/core/workers/chunks/a833fc9250635eb4152f.js +1 -0
- package/assets/esri/core/workers/chunks/{47290f27375c76bcc9c7.js → b0253fe7b3529bc22270.js} +1 -1
- package/assets/esri/core/workers/chunks/b324bdb9c74fc3f956db.js +1 -0
- package/assets/esri/core/workers/chunks/{1bd7b7f4ee7ea6cb7ef9.js → b60f24a6c777301803f4.js} +1 -1
- package/assets/esri/core/workers/chunks/bd155794e9bc16dd0474.js +1 -0
- package/assets/esri/core/workers/chunks/{906f4c0fa8135e6c2f03.js → c660a5a1086870a3a6b9.js} +1 -1
- package/assets/esri/core/workers/chunks/cb58aff1ff186fa18345.js +1 -0
- package/assets/esri/core/workers/chunks/{17b98787a0698f584882.js → e7cb1b72f0b54e845741.js} +1 -1
- package/assets/esri/core/workers/chunks/{21122f3f3e19a7fd7d33.js → f69d3ff8a69c1985bca3.js} +1 -1
- package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
- package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
- package/chunks/ShadowCastVisualize.glsl.js +4 -10
- package/chunks/aiServices.js +1 -1
- package/chunks/array.js +1 -1
- package/chunks/languageUtils.js +1 -1
- package/chunks/lyr3DMain.js +1 -1
- package/config.js +1 -1
- package/core/has.js +1 -1
- package/graphic/AnnotationFeatureGraphicOrigin.d.ts +3 -3
- package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
- package/intl/messages.d.ts +12 -2
- package/intl/t9n.d.ts +8 -1
- package/intl.d.ts +4 -0
- package/kernel.js +1 -1
- package/layers/AnnotationFeatureLayer.d.ts +1 -4
- package/layers/AnnotationFeatureLayer.js +1 -1
- package/layers/DimensionFeatureLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/mixins/DataElementMixin.js +2 -0
- package/layers/support/AnnotationFeatureSublayer.js +1 -1
- package/layers/support/parquetUtils.js +1 -1
- package/package.json +1 -1
- package/support/ArcadeExpression.js +1 -1
- package/support/arcadeUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/supportUtils.js +2 -0
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/engine/webgl/util/DimensionMatcher.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/DimensionLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
- package/views/2d/layers/support/annodime/annotationSchema.js +1 -1
- package/views/2d/layers/support/annodime/dimensionSchema.js +1 -1
- package/views/2d/layers/support/annodime/utils.js +1 -1
- package/views/2d/layers/support/annodime/virtualFields.js +1 -1
- package/views/3d/camera/constraintUtils.js +1 -1
- package/views/3d/state/ConstraintsManager.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/PatchRenderDataWaterproofness.js +2 -0
- package/views/3d/terrain/PlanarPatch.js +1 -1
- package/views/3d/terrain/SphericalPatch.js +1 -1
- package/views/3d/terrain/TileRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/OpaqueEnvironment.js +1 -1
- package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
- package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
- package/views/3d/webgl-engine/effects/focusArea/FocusAreaMask.js +1 -1
- package/views/3d/webgl-engine/effects/geometry/ObjectAndLayerID.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlightBuffer.js +1 -1
- package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
- package/views/3d/webgl-engine/effects/magnifier/Magnifier.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/stars/Stars.js +1 -1
- package/views/3d/webgl-engine/effects/stars/StarsTechnique.js +1 -1
- package/views/3d/webgl-engine/lib/CutFillComputation.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowAccumulator.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowCastRenderer.js +1 -1
- package/views/3d/webgl-engine/lib/ShadowMap.js +1 -1
- package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
- package/views/3d/webgl.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/layers/FeatureLikeLayerView.js +1 -1
- package/views/popupAdapter.js +1 -1
- package/webdoc/support/thumbnailUtils.js +1 -1
- package/webdoc/support/webdocSaveUtils.js +1 -1
- package/widgets/support/widget.d.ts +1 -0
- package/assets/esri/core/workers/chunks/125edba5c618c6257cb8.js +0 -1
- package/assets/esri/core/workers/chunks/168be2eac0fa3c67ae27.js +0 -1
- package/assets/esri/core/workers/chunks/32740b075d7a890d7888.js +0 -1
- package/assets/esri/core/workers/chunks/5189413a83faf3480e29.js +0 -1
- package/assets/esri/core/workers/chunks/a2be8784f2cfdbb42681.js +0 -1
- package/assets/esri/core/workers/chunks/a9db775210ebeee41738.js +0 -1
- package/assets/esri/core/workers/chunks/bca6abc185dedec0f41b.js +0 -1
- package/assets/esri/core/workers/chunks/bee56a6ac99312f03109.js +0 -1
- package/assets/esri/core/workers/chunks/d1d135a54233092ad637.js +0 -1
- package/assets/esri/core/workers/chunks/d750e4abeb777caa8c36.js +0 -1
- package/assets/esri/core/workers/chunks/daf539e9f88fc9e101e4.js +0 -1
- package/assets/esri/core/workers/chunks/e774303efefee31952d0.js +0 -1
- package/assets/esri/core/workers/chunks/e8546ab510fc9515bd23.js +0 -1
- package/assets/esri/core/workers/chunks/fc9664d3282b052ef40f.js +0 -1
- package/views/2d/layers/support/annodime/DimensionMatcherSchema.js +0 -2
- package/views/2d/layers/support/annodime/unsupported.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5077],{25077(e,t,r){r.r(t),r.d(t,{default:()=>B});var i=r(5482),o=r(37838),s=r(11254),n=r(69540),a=r(49186),l=r(36563),u=r(25728),d=r(17676),c=r(91429),p=r(16930),y=r(55156),h=r(60950),m=r(89808),f=r(99959);const g=Symbol("isDimensionFeatureGraphicOrigin");var E;class v extends f.A{get[(E=g,h.ym)](){return this.layer}get[y.e](){return this.layer}get[m.Q](){return this.layer}constructor(e){super(),this[E]=!0,this.type="dimension-feature",this.layer=e}get id(){return this.layer.id}}var S=r(4146),I=r(52136),T=r(18768),M=r(63074),b=r(69208),C=r(40775),D=r(10086),A=r(34287),w=r(8303),L=r(54310),P=r(25036),F=r(82935),O=r(60694),x=r(10873),N=r(15426),G=r(17036),Z=r(30524),Y=r(91908),X=r(97552),j=r(30291),k=r(36005);const q="dimension-feature-layer",R=(0,G.p)();let U=class extends((0,C.I)((0,D.j)((0,M.dM)((0,F.e)((0,P.j)((0,L.J)((0,T.b)((0,A.q)((0,w.A)((0,u.M)((0,b.d)((0,I.p)((0,n.OU)(S.A)))))))))))))){constructor(e){super(e),this.barrierWeight="high",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new v(this),this.operationalLayerType="ArcGISDimensionLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.styleCollection=null,this.sublayerTitleMode="item-title",this.supportedSourceTypes=new Set(["Dimension Layer"]),this.symbolFields=["STYLEID","BEGINX","BEGINY","ENDX","ENDY","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","DIMX","DIMY","TEXTX","TEXTY","DIMLENGTH","DIMTYPE","EXTANGLE","TEXTANGLE","USECUSTOMLENGTH","CUSTOMLENGTH "],this.type="dimension-feature"}destroy(){this.source?.destroy()}load(e){const t=e?.signal,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(d.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new a.A(`${q}:missing-url`,"DimensionFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.styleCollection)throw new a.A(`${q}:missing-style-collection`,"Invalid service with no style collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,N.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readTitleFromService(e,t){const{url:r}=this,i=t.name||(0,O.qg)(r)?.title;switch(this.sublayerTitleMode){case"item-title":if(r)return(0,O.yG)(r,i);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==i)return e=(0,O.cr)(e),i?`${e} - ${(0,O.cr)(i)}`:e;break}}return i?(0,O.cr)(i):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}createPopupTemplate(e){return(0,j.tn)(this,e)}async createGraphicsSource(e){const t={stack:[],error:void 0,hasError:!1};try{const{default:o}=await(0,d.qr)(Promise.all([r.e(893),r.e(3636),r.e(3467)]).then(r.bind(r,65515)),e),s=new o({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,i.mS)(t,(0,l.Bf)((0,d.u7)(e,()=>s.cancelLoad())??(0,l.hA)()),!1),await s.load({signal:e}),s}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}createQuery(){const e=(0,N.VZ)(this);return e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){return(0,N.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(X.A.from(e)??r.createQuery(),t),o=this.graphicOrigin;if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r,e.origin=o;return i}async queryObjectIds(e,t){const r=await this.load();return r.source.queryObjectIds(X.A.from(e)??r.createQuery(),t)}async queryFeatureCount(e,t){const r=await this.load();return r.source.queryFeatureCount(X.A.from(e)??r.createQuery(),t)}async queryExtent(e,t){const r=await this.load();return r.source.queryExtent(X.A.from(e)??r.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,Y.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,Z.sv)(this.timeInfo,this.fieldsIndex)}async hasDataChanged(){return(0,N.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new a.A(q+":unsupported-version","The feature service must be version 10.8 or above.");const e=["DIMLENGTH","BEGINX","BEGINY","ENDX","ENDY","DIMX","DIMY","TEXTX","TEXTY","DIMTYPE","EXTANGLE","STYLEID","USECUSTOMLENGTH","CUSTOMLENGTH","DIMDISPLAY","EXTDISPLAY","MARKERDISPLAY","TEXTANGLE"],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new a.A(q+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,s.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{const t=e.data;if(!t)return;this.applyPreferredHost(t);const r=[...t.layers||[],...t.tables||[]];return r.find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id})}};(0,i.Cg)([(0,c.MZ)({type:p.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],U.prototype,"attributeSpatialReference",void 0),(0,i.Cg)([(0,c.MZ)(x.es)],U.prototype,"barrierWeight",void 0),(0,i.Cg)([(0,c.MZ)({json:{write:!0}})],U.prototype,"editingEnabled",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],U.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,c.MZ)({...R.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],U.prototype,"fields",void 0),(0,i.Cg)([(0,c.MZ)(R.fieldsIndex)],U.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0,clonable:!1})],U.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,c.MZ)(x.id)],U.prototype,"id",void 0),(0,i.Cg)([(0,c.MZ)({type:["ArcGISDimensionLayer"]})],U.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,c.MZ)(R.outFields)],U.prototype,"outFields",void 0),(0,i.Cg)([(0,c.MZ)(x.M6)],U.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,c.MZ)({type:o.A,json:{name:"popupInfo",write:!0}})],U.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],U.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],U.prototype,"referenceScale",void 0),(0,i.Cg)([(0,c.MZ)({clonable:!1,readOnly:!0})],U.prototype,"source",void 0),(0,i.Cg)([(0,c.MZ)()],U.prototype,"styleCollection",void 0),(0,i.Cg)([(0,c.MZ)({type:String})],U.prototype,"sublayerTitleMode",void 0),(0,i.Cg)([(0,c.MZ)({readOnly:!0})],U.prototype,"symbolFields",void 0),(0,i.Cg)([(0,k.w)("service","title",["name"])],U.prototype,"readTitleFromService",null),(0,i.Cg)([(0,k.w)("portal-item","title")],U.prototype,"readTitleFromPortalItem",null),(0,i.Cg)([(0,c.MZ)({json:{read:!1},value:"dimension-feature",readOnly:!0})],U.prototype,"type",void 0),U=(0,i.Cg)([(0,c.$K)("esri.layers.DimensionFeatureLayer")],U);const B=U},40775(e,t,r){r.d(t,{I:()=>u});var i=r(5482),o=r(11254),s=r(49186),n=r(84952),a=r(91429),l=r(95250);const u=e=>{const t=e;let r=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new s.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");const t=(0,n.fj)(this.url,"queryDataElements"),r={f:"json",layers:this.layerId},{data:i}=await(0,o.A)(t,{...e,responseType:"json",query:r}),a=i.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!a)throw new s.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");const u=a.extensionProperties?.propertySetItems??[],d=p(u),c=(0,l.S)(y(u)),m=(0,l.S)(h(u));this.read({referenceScale:d,symbolCollection:c,styleCollection:m},{origin:"service"})}};return r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.DataElementMixin")],r),r};function d(e,t){const r=e.indexOf(t);if(-1!==r)return e[r+1]}function c(e,t){const r=d(e,t);return r&&"string"==typeof r?JSON.parse(r):null}function p(e){const t=d(e,"ReferenceScale")??0;return"string"!=typeof t?t:parseFloat(t)}function y(e){return c(e,"SymbolCollection")??void 0}function h(e){return c(e,"StyleCollection")??void 0}},95250(e,t,r){function i(e){return o(e,{CIMRGBColor:s,CIMCharacterMarker:n})}function o(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>o(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);const r={};for(const[i,s]of Object.entries(e))r[i]=o(s,t);return r}return e}function s(e){const[t,r,i,o]=e.values;return[t,r,i,255*o/100]}function n(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}r.d(t,{S:()=>i})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[737],{20737(e,t,r){r.r(t),r.d(t,{default:()=>W});var i=r(5482),s=r(37838),o=r(11254),n=r(69540),a=r(7762),l=r(49186),u=r(36563),p=r(25728),y=r(17676),d=r(36708),h=r(91429),c=r(16930),g=r(55156),b=r(60950),f=r(89808),m=r(99959);const v=Symbol("isAnnotationFeatureGraphicOrigin");var C;class S extends m.A{get[(C=v,b.ym)](){return this.layer}get[g.e](){return this.layer}get[f.Q](){return this.layer}constructor(e,t){super(),this[C]=!0,this.type="annotation-feature",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer?.subtypeCode??null}__`}}var M=r(4146),w=r(52136),I=r(18768),F=r(63074),A=r(69208),O=r(40775),E=r(47685),Z=r(10086),x=r(34287),T=r(8303),L=r(54310),P=r(25036),D=r(82935),_=r(4902),k=r(92474);let j=class extends((0,n.OU)((0,_.s)(k.x_))){constructor(e){super(e),this.parent=null,this.subtypeCode=null,this.type="annotation-feature-sublayer",this.visible=!0}get graphicOrigin(){return new S(this.parent,this)}get title(){return this.parent?.subtypes?.find(e=>e.code===this.subtypeCode)?.name??null}};(0,i.Cg)([(0,h.MZ)({readOnly:!0,clonable:!1})],j.prototype,"graphicOrigin",null),(0,i.Cg)([(0,h.MZ)({clonable:!1})],j.prototype,"parent",void 0),(0,i.Cg)([(0,h.MZ)({type:Number})],j.prototype,"subtypeCode",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],j.prototype,"title",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],j.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)({type:Boolean})],j.prototype,"visible",void 0),j=(0,i.Cg)([(0,h.$K)("esri.layers.support.AnnotationFeatureSublayer")],j);var q=r(60694),G=r(10873),R=r(15426),N=r(17036),$=r(30524),V=r(91908),Q=r(97552),B=r(30291),H=r(36005);const J="annotation-feature-layer",U=(0,N.p)(),z=a.A.ofType(j);let K=class extends((0,O.I)((0,Z.j)((0,F.dM)((0,D.e)((0,E.w6)((0,P.j)((0,L.J)((0,I.b)((0,x.q)((0,T.A)((0,p.M)((0,A.d)((0,w.p)((0,n.OU)(M.A))))))))))))))){constructor(e){super(e),this._sublayerLookup=new Map,this.barrierWeight="high",this.elementField="element",this.fields=null,this.fieldsIndex=null,this.graphicOrigin=new S(this,null),this.operationalLayerType="ArcGISAnnotationLayer",this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.referenceScale=0,this.source=null,this.statusField="status",this.sublayers=new z,this.sublayerTitleMode="item-title",this.supportedSourceTypes=new Set(["Annotation Layer"]),this.symbolCollection=null,this.type="annotation-feature",this.unplacedAnnotationsVisible=!1,this.addHandles((0,d.wB)(()=>this.sublayers,(e,t)=>this._handleSublayersChange(e,t),d.OH))}destroy(){this.source?.destroy()}load(e){const t=e?.signal,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(y.QP).then(async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstValidLayerId(t);null!=e&&(this.layerId=e)}if(!this.url)throw new l.A(`${J}:missing-url`,"AnnotationFeatureLayer must be created with a url");return Promise.all([this.loadDataElement(e).then(()=>{if(!this.symbolCollection)throw new l.A(`${J}:missing-symbol-collection`,"Invalid service with no symbol collection")}),this.initLayerProperties(await this.createGraphicsSource(t))])}).then(()=>(0,R.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get effectiveEditingEnabled(){return!1}get defaultPopupTemplate(){return this.createPopupTemplate()}readSublayers(e,t){const r=new z(t.subtypes.map(({code:e})=>new j({subtypeCode:e})).reverse());if(this.visibleLayers){const e=new Set(this.visibleLayers);r.forEach(t=>{t.visible=e.has(t.subtypeCode)})}return r}readTitleFromService(e,t){const{url:r}=this,i=t.name||(0,q.qg)(r)?.title;switch(this.sublayerTitleMode){case"item-title":if(r)return(0,q.yG)(r,i);break;case"item-title-and-service-name":{let e=this.portalItem?.title;if(e&&e!==i)return e=(0,q.cr)(e),i?`${e} - ${(0,q.cr)(i)}`:e;break}}return i?(0,q.cr)(i):void 0}readTitleFromPortalItem(e){return"item-title"===this.sublayerTitleMode?e:void 0}get visibleLayers(){return 0===this.sublayers.length?this._get("visibleLayers")??null:Array.from(new Set(this.sublayers?.toArray().filter(e=>e.visible).map(e=>e.subtypeCode).sort((e,t)=>e-t)??null))}set visibleLayers(e){this._set("visibleLayers",e)}createPopupTemplate(e){return(0,B.tn)(this,e)}async createGraphicsSource(e){const t={stack:[],error:void 0,hasError:!1};try{const{default:s}=await(0,y.qr)(Promise.all([r.e(893),r.e(3636),r.e(9714)]).then(r.bind(r,65515)),e),o=new s({layer:this,supportedSourceTypes:this.supportedSourceTypes});return(0,i.mS)(t,(0,u.Bf)((0,y.u7)(e,()=>o.cancelLoad())??(0,u.hA)()),!1),await o.load({signal:e}),o}catch(e){t.error=e,t.hasError=!0}finally{(0,i.hk)(t)}}createQuery(){const e=(0,R.VZ)(this);return e.where=this.definitionExpression||"1=1",e}findSublayerForFeature(e){const t=this.fieldsIndex.get(this.subtypeField),r=e.attributes[t.name];return this.findSublayerForSubtypeCode(r)}findSublayerForSubtypeCode(e){return this._sublayerLookup.get(e)}getFieldDomain(e,t){return(0,R.Vq)(this,e,t,this.getField(e)?.domain??null)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(Q.A.from(e)??r.createQuery(),t);if(i?.features)for(const e of i.features){const t=this.findSublayerForFeature(e);e.origin=t?.graphicOrigin??this.graphicOrigin,e.layer=e.sourceLayer=this}return i}async queryObjectIds(e,t){const r=await this.load();return r.source.queryObjectIds(Q.A.from(e)??r.createQuery(),t)}async queryFeatureCount(e,t){const r=await this.load();return r.source.queryFeatureCount(Q.A.from(e)??r.createQuery(),t)}async queryExtent(e,t){const r=await this.load();return r.source.queryExtent(Q.A.from(e)??r.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,V.D)(this,e)}async initLayerProperties(e){this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl})),this._verifySource(),(0,$.sv)(this.timeInfo,this.fieldsIndex)}async hasDataChanged(){return(0,R.jp)(this)}_verifySource(){if(this.version&&this.version<10.8)throw new l.A(J+":unsupported-version","The feature service must be version 10.8 or above.");const e=["ZOrder","AnnotationClassID","Element","SymbolID","Status"],t=e.filter(e=>!this.fieldsIndex.has(e));if(this.fieldsIndex.has("FeatureID")||this.fieldsIndex.has("FeatureGlobalID")||t.unshift("FeatureID","FeatureGlobalID"),t.length)throw new l.A(J+":missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}_fetchFirstValidLayerId(e){return(0,o.A)(this.url??"",{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(e=>{const t=e.data;if(!t)return;this.applyPreferredHost(t);const r=[...t.layers||[],...t.tables||[]];return r.find(({type:e})=>!e||this.supportedSourceTypes.has(e))?.id})}_handleSublayersChange(e,t){t&&(t.forEach(e=>{e.parent=null}),this.removeHandles("sublayers-owner"),this._sublayerLookup.clear()),e&&(e.forEach(e=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),this.addHandles([e.on("after-add",({item:e})=>{e.parent=this,this._sublayerLookup.set(e.subtypeCode,e)}),e.on("after-remove",({item:e})=>{e.parent=null,this._sublayerLookup.delete(e.subtypeCode)})],"sublayers-owner"))}};(0,i.Cg)([(0,h.MZ)({type:c.A,json:{origins:{service:{read:{source:"sourceSpatialReference"}}}}})],K.prototype,"attributeSpatialReference",void 0),(0,i.Cg)([(0,h.MZ)(G.es)],K.prototype,"barrierWeight",void 0),(0,i.Cg)([(0,h.MZ)({json:{write:!0}})],K.prototype,"editingEnabled",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],K.prototype,"elementField",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],K.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,h.MZ)({...U.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],K.prototype,"fields",void 0),(0,i.Cg)([(0,h.MZ)(U.fieldsIndex)],K.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],K.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,h.MZ)(G.id)],K.prototype,"id",void 0),(0,i.Cg)([(0,h.MZ)({type:["ArcGISAnnotationLayer"]})],K.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,h.MZ)(U.outFields)],K.prototype,"outFields",void 0),(0,i.Cg)([(0,h.MZ)(G.M6)],K.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,h.MZ)({type:s.A,json:{name:"popupInfo",write:!0}})],K.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],K.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],K.prototype,"referenceScale",void 0),(0,i.Cg)([(0,h.MZ)({clonable:!1,readOnly:!0})],K.prototype,"source",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],K.prototype,"statusField",void 0),(0,i.Cg)([(0,h.MZ)({type:z})],K.prototype,"sublayers",void 0),(0,i.Cg)([(0,H.w)("service","sublayers",["subtypes"])],K.prototype,"readSublayers",null),(0,i.Cg)([(0,h.MZ)({type:String})],K.prototype,"sublayerTitleMode",void 0),(0,i.Cg)([(0,h.MZ)({readOnly:!0})],K.prototype,"symbolCollection",void 0),(0,i.Cg)([(0,H.w)("service","title",["name"])],K.prototype,"readTitleFromService",null),(0,i.Cg)([(0,H.w)("portal-item","title")],K.prototype,"readTitleFromPortalItem",null),(0,i.Cg)([(0,h.MZ)({json:{read:!1},value:"annotation-feature",readOnly:!0})],K.prototype,"type",void 0),(0,i.Cg)([(0,h.MZ)()],K.prototype,"unplacedAnnotationsVisible",void 0),(0,i.Cg)([(0,h.MZ)({type:[Number],json:{write:{ignoreOrigin:!0}}})],K.prototype,"visibleLayers",null),K=(0,i.Cg)([(0,h.$K)("esri.layers.AnnotationFeatureLayer")],K);const W=K},40775(e,t,r){r.d(t,{I:()=>u});var i=r(5482),s=r(11254),o=r(49186),n=r(84952),a=r(91429),l=r(95250);const u=e=>{const t=e;let r=class extends t{async loadDataElement(e){if(!this.url||null==this.layerId)throw new o.A("fetchDataElement:missing-url-or-layerId","The layer must have a url and a layerId to fetch the data element.");const t=(0,n.fj)(this.url,"queryDataElements"),r={f:"json",layers:this.layerId},{data:i}=await(0,s.A)(t,{...e,responseType:"json",query:r}),a=i.layerDataElements.find(e=>e.layerId===this.layerId)?.dataElement;if(!a)throw new o.A("fetchDataElement:not-available","A data element for this layer could not be retrieved.");const u=a.extensionProperties?.propertySetItems??[],p=d(u),y=(0,l.S)(h(u)),g=(0,l.S)(c(u));this.read({referenceScale:p,symbolCollection:y,styleCollection:g},{origin:"service"})}};return r=(0,i.Cg)([(0,a.$K)("esri.layers.mixins.DataElementMixin")],r),r};function p(e,t){const r=e.indexOf(t);if(-1!==r)return e[r+1]}function y(e,t){const r=p(e,t);return r&&"string"==typeof r?JSON.parse(r):null}function d(e){const t=p(e,"ReferenceScale")??0;return"string"!=typeof t?t:parseFloat(t)}function h(e){return y(e,"SymbolCollection")??void 0}function c(e){return y(e,"StyleCollection")??void 0}},95250(e,t,r){function i(e){return s(e,{CIMRGBColor:o,CIMCharacterMarker:n})}function s(e,t){if(null==e)return e;if(Array.isArray(e))return e.map(e=>s(e,t));if("object"==typeof e){if("type"in e&&"string"==typeof e.type&&t[e.type])return t[e.type](e);const r={};for(const[i,o]of Object.entries(e))r[i]=s(o,t);return r}return e}function o(e){const[t,r,i,s]=e.values;return[t,r,i,255*s/100]}function n(){return{type:"CIMVectorMarker",enable:!0,size:40,colorLocked:!1,anchorPointUnits:"Relative",frame:{xmin:-10,ymin:-10,xmax:10,ymax:10},markerGraphics:[{type:"CIMMarkerGraphic",textString:"■",geometry:{x:0,y:0},symbol:{type:"CIMTextSymbol",underline:!1,blockProgression:"TTB",depth3D:0,extrapolateBaselines:!0,flipAngle:90,fontEffects:"Normal",fontEncoding:"Unicode",haloSize:0,height:8,hinting:"Default",horizontalAlignment:"Center",kerning:!0,letterSpacing:10,letterWidth:100,ligatures:!1,lineGapType:"ExtraLeading",symbol:{type:"CIMPolygonSymbol",symbolLayers:[{type:"CIMSolidFill",enable:!0,color:[0,0,0,255]}]},symbol3DProperties:{type:"CIM3DSymbolProperties",dominantSizeAxis3D:"Z",rotationOrder3D:"XYZ",scaleZ:1,scaleY:1},textCase:"Normal",textDirection:"LTR",verticalAlignment:"Center",verticalGlyphOrientation:"Right",wordSpacing:100,billboardMode3D:"FaceNearPlane"}}],scaleSymbolsProportionally:!0,respectFrame:!0}}r.d(t,{S:()=>i})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6343],{47609(t,e,r){r.d(e,{A:()=>n});var s=r(66395);class n extends s.A{constructor(t){super({__proto__:null,url:t}),this.declaredClass="esri.arcade.Portal"}get url(){return this.field("url")}}},66395(t,e,r){r.d(e,{A:()=>u});var s=r(66131),n=r(6800),o=r(85935),a=r(78878),i=r(91075);class u{constructor(t){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,t instanceof u?this.attributes=t.attributes:null==t?this.attributes=Object.create(null):null!=Object.getPrototypeOf(t)?this.attributes={__proto__:null,...t}:this.attributes=t}static createMutable(t){const e=new u(t);return e.immutable=!1,e}static containerEntry(t,e){return new u({__proto__:null,key:t,value:e})}static textFormatting(){return u.createMutable({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"})}field(t){const e=t.toLowerCase(),r=this.attributes[t];if(void 0!==r)return r;for(const t in this.attributes)if(t.toLowerCase()===e)return this.attributes[t];throw new o.D$("FieldNotFound",null,{key:t})}setField(t,e){if(this.immutable)throw new o.D$("Immutable",null);if((0,a.i)(e))throw new o.D$("NoFunctionInDictionary",null);const r=t.toLowerCase();if(e instanceof Date&&(e=s.lY.dateJSToArcadeDate(e)),void 0===this.attributes[t]){for(const t in this.attributes)if(t.toLowerCase()===r)return void(this.attributes[t]=e);this.attributes[t]=e}else this.attributes[t]=e}eraseField(t){if(this.immutable)throw new o.D$("Immutable",null);if(t in this.attributes)return void delete this.attributes[t];const e=t.toLowerCase();for(const t in this.attributes)if(t.toLowerCase()===e)return void delete this.attributes[t]}hasField(t){const e=t.toLowerCase();if(void 0!==this.attributes[t])return!0;for(const t in this.attributes)if(t.toLowerCase()===e)return!0;return!1}keys(){const t=[];for(const e in this.attributes)t.push(e);return t.sort((t,e)=>t.toLowerCase()<e.toLowerCase()?-1:1)}values(){return this.keys().map(t=>this.attributes[t])}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(t=!1){return(0,a.c)(this.attributes,{useNumbersForDates:t})}castAsJson(){const t=Object.create(null);for(const e in this.attributes){const r=this.attributes[e];void 0!==r&&(t[e]=(0,a.a)(r))}return t}async castAsJsonAsync(t=null){const e=Object.create(null),r=[];for(const n in this.attributes){const o=this.attributes[n];void 0!==o&&((0,a.b)(o)||o instanceof i.A||o instanceof s.lY?e[n]=(0,a.a)(o):r.push((0,a.d)(o,t).then(t=>{e[n]=t})))}return r.length>0&&await Promise.all(r),e}deepClone(){const t=new u;t.immutable=!1;for(const e of this.keys())t.setField(e,(0,n.G)(this.field(e)));return t}}},48938(t,e,r){r.d(e,{X:()=>n,_:()=>o});var s=r(85935);function n(t){if("string"==typeof t)return t.toLowerCase();if("name"in t)return t.name.toLowerCase();if("string"!=typeof t.value)throw new s.D$("InvalidIdentifier",null);return t.value.toLowerCase()}const o=Object.freeze({aborted:!1})},76343(t,e,r){r.r(e),r.d(e,{BatchTranslationServiceFactory:()=>s.B,PortalTranslationService:()=>s.P,getTranslateParametersKey:()=>s.g,registerFunctions:()=>s.r}),r(48938),r(66395),r(85935),r(78878),r(80672),r(49186),r(53966),r(45475),r(67090),r(62791),r(14942);var s=r(3367)},80672(t,e,r){r.d(e,{Iq:()=>i,RI:()=>a,VQ:()=>l,wI:()=>u});var s=r(47609),n=r(84952),o=r(20655);function a(t,e){return null==e?i(t):new o.A({url:e.url})}function i(t){return t.services?.portal??o.A.getDefault()}function u(t){const e=i(t);return new s.A(e.url)}function l(t,e){const r=t.url;return!!r&&(0,n.ut)(r,e.restUrl)}},3367(t,e,r){r.d(e,{A:()=>v,B:()=>m,P:()=>y,g:()=>_,r:()=>b});var s=r(48938),n=r(66395),o=r(85935),a=r(78878),i=r(80672),u=r(49186),l=r(53966),c=r(91869),h=r(45475),p=r(67090),d=r(62791),g=r(14942),f=r(54218);class y{constructor(t,e){this.portal=t,this._debugLog=e}async translate(t){this.portal.loaded||await this.portal.load();const e=this.portal.helperServices?.aiUtilityServices;if(null==e)return{success:!1};const r=e.api?.text_translate;if(null==r)return{success:!1};const s=e.url+r;try{return t.requestSource??="arcade",{success:!0,results:(await(0,h.T)(s,t,{authMode:"no-prompt"})).map(t=>t.toJSON())}}catch(t){return null!=this._debugLog&&(t instanceof Error||t instanceof u.A)&&this._debugLog(`TranslateText error: ${t.message}`),l.A.getLogger("esri.arcade.functions.aiServices").error(t),{success:!1}}}}class w{constructor(t,e,r){this._parameters=t,this._maxTotalContentSize=e,this._maxContentsLength=r,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(t){const e=new Set(t.filter(t=>!this._normalizedContents.has(t.text)).map(t=>t.text));if(this._requests.length+e.size>this._maxContentsLength)return null;let r=0;for(const t of e)r+=t.length;if((r+this._contentsTotalSize)*(this._parameters.outputCultures.length??1)>this._maxTotalContentSize)return null;const s=this._requests.length;for(const{key:e,text:r}of t)(0,c.tE)(this._normalizedContents,r,()=>[]).push({batchIdx:s,key:e});return this._requests.push(t),this._contentsTotalSize+=r,s}async send(t){const e=[],r=[];let s=0;for(const[t,n]of this._normalizedContents)e.push(new p.k({key:String(s++),text:t})),r.push(n);const n=new d.F(this._parameters);n.input=e;const o=await t.translate(n);if(!o.success)return Array.from(this._requests,()=>o);const a=Array.from(this._requests,()=>({success:!0,results:[]}));for(const t of o.results){const e=Number(t.key);for(const s of r[e])a[s.batchIdx].results.push({...t,key:s.key})}return a}}function _(t){const e=[...new Set(t.outputCultures)].sort(),r=t.inputCulture??null,s=t.portalUrl,n=t.provider;return JSON.stringify([e,r,s,n])}async function C(t,e,r){try{return(await t.yieldFor(r))[e]}catch{return{success:!1}}}class m{constructor(t,e,{maxTotalContentSize:r=5e4,maxContentsLength:s=1e3}={}){this._executor=t,this._service=e,this._openBatches=new Map,this._maxTotalContentSize=r,this._maxContentsLength=s}create(t){return{translate:async e=>{const r=_(e),{input:s,outputCultures:n,inputCulture:o,provider:a,portalUrl:i}=e;if(null==n)return{success:!1};if(null==s||s.every(t=>0===t.text.length))return{success:!1};const u=this._openBatches.get(r);if(null!=u){const e=u.data.tryAdd(s);if(null!=e)return await C(t,e,u);u.send()}const l=new w({outputCultures:n,inputCulture:o,provider:a,portalUrl:i},this._maxTotalContentSize,this._maxContentsLength),c=l.tryAdd(s);if(null!=c){const e=this._executor.openBatch(l,{open:t=>{this._openBatches.set(r,t)},execute:t=>t.send(this._service),close:t=>{this._openBatches.get(r)===t&&this._openBatches.delete(r)}});return await C(t,c,e)}return await this._service.translate(e)}}}}function b(t){"async"===t.mode&&(t.functions[(0,s.X)("TranslateText")]=function(e,r){return t.standardFunctionAsync(e,r,async(t,e,r)=>{if((0,a.B)(r,2,3,e),!(0,f.Kg)(r[0])&&!(0,f.cy)(r[0])&&!(0,a.g)(r[0]))throw new o.D$("InvalidParameter",e);const s=(0,a.Q)(r[0]);if(!(0,f.Kg)(r[1])&&!(0,f.cy)(r[1])&&!(0,a.g)(r[1]))throw new o.D$("InvalidParameter",e);const u=(0,a.Q)(r[1]);let l=null;if(r.length>=3){if(!(0,f.Kg)(r[2]))throw new o.D$("InvalidParameter",e);l=r[2]}const c=s.map((t,e)=>new p.k({key:String(e),text:t})),h=(0,i.Iq)(t),w=new d.F({outputCultures:u,input:c,inputCulture:l,portalUrl:h.restUrl.replace(/\/sharing\/rest$/,"")}),C=new Map;let m;if(null!=t.lrucache){const e=t.lrucache;m??=_(w),w.input=w.input?.filter(t=>{const r=e.getCachedTranslation(m,t.text);return null==r||(C.set(t.key,{...r,key:t.key}),!1)})}if(w.input?.length){const e=t.services?.translation??new y(h,t.console),r=await e.translate(w);if(!r.success)return new n.A({__proto__:null,success:!1});for(const e of r.results){const r=w.input?.find(t=>t.key===e.key)?.text;if(null==r)throw new o.D$("NeverReach",null);C.set(e.key,e),null!=t.lrucache&&(m??=_(w),t.lrucache.setCachedTranslation(m,r,{detectedLanguage:e.detectedLanguage,translations:e.translations}))}}const b=Array.from(c,t=>{const e=g.s.fromJSON(C.get(t.key));if(null==e)throw new o.D$("NeverReach",null);const r=Object.create(null);for(const t of e.translations)r[t.to]=t.text;return new n.A({__proto__:null,key:e.key,text:t.text,detectedLanguage:new n.A({__proto__:null,language:e.detectedLanguage,score:e.detectedLanguageScore}),translation:new n.A(r)})});return new n.A({__proto__:null,success:!0,results:b})})})}const v=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:m,PortalTranslationService:y,getTranslateParametersKey:_,registerFunctions:b},Symbol.toStringTag,{value:"Module"}))},67090(t,e,r){r.d(e,{k:()=>i});var s=r(5482),n=r(25482),o=r(10107),a=r(64108);let i=class extends n.o{constructor(t){super(t)}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],i.prototype,"key",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],i.prototype,"text",void 0),i=(0,s.Cg)([(0,a.$)("esri.rest.support.TranslateContent")],i)},62791(t,e,r){r.d(e,{F:()=>u});var s=r(5482),n=r(25482),o=r(10107),a=r(64108),i=r(67090);let u=class extends n.o{constructor(t){super(t),this.outputCultures=null,this.input=null,this.portalUrl="https://www.arcgis.com",this.provider="default",this.inputCulture=null,this.requestSource=null}};(0,s.Cg)([(0,o.MZ)({type:[String],json:{write:!0}})],u.prototype,"outputCultures",void 0),(0,s.Cg)([(0,o.MZ)({type:[i.k],json:{write:!0}})],u.prototype,"input",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"portalUrl",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0,default:"default"}})],u.prototype,"provider",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"inputCulture",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"requestSource",void 0),u=(0,s.Cg)([(0,a.$)("esri.rest.support.TranslateParameters")],u)},14942(t,e,r){r.d(e,{s:()=>u});var s=r(5482),n=r(25482),o=r(10107),a=r(64108);let i=class extends n.o{};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],i.prototype,"text",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],i.prototype,"to",void 0),i=(0,s.Cg)([(0,a.$)("esri.rest.support.TranslateResult.Translation")],i);let u=class extends n.o{constructor(t){super(t),this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,s.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"key",void 0),(0,s.Cg)([(0,o.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],u.prototype,"detectedLanguage",void 0),(0,s.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],u.prototype,"detectedLanguageScore",void 0),(0,s.Cg)([(0,o.MZ)({type:[i],json:{write:!0}})],u.prototype,"translations",void 0),u=(0,s.Cg)([(0,a.$)("esri.rest.support.TranslateResult")],u)},45475(t,e,r){r.d(e,{T:()=>a});var s=r(11254),n=r(2272),o=r(14942);async function a(t,e,r){const a=JSON.stringify(e.toJSON()),i={};"https://www.arcgis.com"!==e.portalUrl&&(i.portal=e.portalUrl),null!=e.requestSource&&(i.request_source=e.requestSource),i.token=await(0,n.gf)(e.portalUrl,null,{signal:r?.signal,prompt:"no-prompt"!==r?.authMode});const u=(0,n.Dl)(t),l=(0,n.jV)(u.query,{...r,query:i,body:a,method:"post",authMode:"anonymous"});return(await(0,s.A)(u.path,l)).data.results.map(t=>o.s.fromJSON(t))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2969],{46140(e,t,n){n.d(t,{A:()=>i});var r=n(49186);class i{constructor(e,t,n=""){this.major=e,this.minor=t,this._context=n}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",n=this._context&&this._context+" ";throw new r.A(t+"unsupported-version",`Required major ${n}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[n,s]=e.split("."),o=/^\s*\d+\s*$/;if(!n?.match||!o.test(n))throw new r.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!s?.match||!o.test(s))throw new r.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(n,10),l=parseInt(s,10);return new i(a,l,t)}}},6797(e,t,n){n.d(t,{Ui:()=>f});var r=n(69622),i=n(7762),s=n(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof r.A}function l(e){return e instanceof i.A?Object.keys(e.items):a(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function c(e,t){return e instanceof i.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function d(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const r=l(e),i=l(t);if(0===r.length&&0===i.length)return;if(!r.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=i.filter(e=>!r.includes(e)),f=r.filter(e=>!i.includes(e)),p=r.filter(n=>i.includes(n)&&c(e,n)!==c(t,n)).concat(s,f).sort(),h=u(e);if(h&&o.has(h)&&p.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=a(e)&&a(t);for(const r of p){const i=c(e,r),s=c(t,r);let o;if((y||"function"!=typeof i&&"function"!=typeof s)&&i!==s&&(null!=i||null!=s)){if(n&&n[r]&&"function"==typeof n[r])o=n[r]?.(i,s);else if(i instanceof Date&&s instanceof Date){if(i.getTime()===s.getTime())continue;o={type:"complete",oldValue:i,newValue:s}}else o="object"==typeof i&&"object"==typeof s&&u(i)===u(s)?d(i,s):{type:"complete",oldValue:i,newValue:s};null!=o&&(null!=m?m.diff[r]=o:m={type:"partial",diff:{[r]:o}})}}return m}function f(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},91829(e,t,n){function r(){return[0,0,0,0]}function i(e,t,n,r){return[e,t,n,r]}function s(e,t,n,r){return[e,t,n,r]}function o(){return i(1,1,1,1)}function a(){return i(1,0,0,0)}function l(){return i(0,1,0,0)}function c(){return i(0,0,1,0)}function u(){return i(0,0,0,1)}n.d(t,{CN:()=>s,Un:()=>f,_Y:()=>u,fA:()=>i,uY:()=>d,vt:()=>r});const d=[0,0,0,0],f=o(),p=a(),h=l(),m=c(),y=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:y,UNIT_X:p,UNIT_Y:h,UNIT_Z:m,ZEROS:d,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:r,freeze:s,fromArray:function(e,t=[0,0,0,0]){const n=Math.min(4,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t},fromValues:i,ones:o,unitW:u,unitX:a,unitY:l,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},78955(e,t,n){n.d(t,{Bw:()=>y,C:()=>i,Cc:()=>b,LI:()=>f,Om:()=>_,S8:()=>w,T9:()=>d,WQ:()=>o,Z0:()=>v,aI:()=>S,hG:()=>m,hZ:()=>s,hs:()=>p,jk:()=>u,m3:()=>g,t2:()=>x});var r=n(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function s(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function o(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function a(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function l(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function c(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function u(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}function d(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}function f(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function p(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function h(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return Math.sqrt(n*n+r*r+i*i+s*s)}function m(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return n*n+r*r+i*i+s*s}function y(e){const t=e[0],n=e[1],r=e[2],i=e[3];return Math.sqrt(t*t+n*n+r*r+i*i)}function g(e){const t=e[0],n=e[1],r=e[2],i=e[3];return t*t+n*n+r*r+i*i}function w(e,t){const n=t[0],r=t[1],i=t[2],s=t[3];let o=n*n+r*r+i*i+s*s;return o>0&&(o=1/Math.sqrt(o),e[0]=n*o,e[1]=r*o,e[2]=i*o,e[3]=s*o),e}function _(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function b(e,t,n,r){const i=t[0],s=t[1],o=t[2],a=t[3];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=o+r*(n[2]-o),e[3]=a+r*(n[3]-a),e}function v(e,t,n){const r=t[0],i=t[1],s=t[2],o=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12]*o,e[1]=n[1]*r+n[5]*i+n[9]*s+n[13]*o,e[2]=n[2]*r+n[6]*i+n[10]*s+n[14]*o,e[3]=n[3]*r+n[7]*i+n[11]*s+n[15]*o,e}function x(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function S(e,t){const n=e[0],i=e[1],s=e[2],o=e[3],a=t[0],l=t[1],c=t[2],u=t[3],d=(0,r.FD)();return Math.abs(n-a)<=d*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-l)<=d*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(s-c)<=d*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(o-u)<=d*Math.max(1,Math.abs(o),Math.abs(u))}const T=a,M=l,A=c,I=h,E=m,D=y,$=g;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:I,distance:h,div:A,divide:c,dot:_,equals:S,exactEquals:x,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:D,length:y,lerp:b,max:d,min:u,mul:M,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:w,random:function(e,t=1){const n=r.Ov;let i,s,o,a,l,c;do{i=2*n()-1,s=2*n()-1,l=i*i+s*s}while(l>=1);do{o=2*n()-1,a=2*n()-1,c=o*o+a*a}while(c>=1);const u=Math.sqrt((1-l)/c);return e[0]=t*i,e[1]=t*s,e[2]=t*o*u,e[3]=t*a*u,e},round:f,scale:p,scaleAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e},set:s,sqrDist:E,sqrLen:$,squaredDistance:m,squaredLength:g,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:T,subtract:a,transformMat4:v,transformQuat:function(e,t,n){const r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],l=n[2],c=n[3],u=c*r+a*s-l*i,d=c*i+l*r-o*s,f=c*s+o*i-a*r,p=-o*r-a*i-l*s;return e[0]=u*c+p*-o+d*-l-f*-a,e[1]=d*c+p*-a+f*-o-u*-l,e[2]=f*c+p*-l+u*-a-d*-o,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},13069(e,t,n){n.d(t,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>s});const r="randomUUID"in crypto;function i(){if(r)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 s(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},94194(e,t,n){n.d(t,{A:()=>g});var r=n(5482),i=n(91429),s=n(7762),o=n(62885),a=(n(44208),n(53966),n(10107));let l=class extends s.A{constructor(e){super(e),this.addHandles([this.on("before-add",e=>{null==e.item&&e.preventDefault()}),this.on("after-add",e=>this._own(e.item)),this.on("after-remove",e=>this._release(e.item))])}get owner(){return this._get("owner")}set owner(e){this.destroyed||e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(s.A.ofType(this.itemType.Type))(e):new s.A(e)}};(0,r.Cg)([(0,a.MZ)()],l.prototype,"owner",null),l=(0,r.Cg)([(0,i.$K)("esri.core.support.OwningCollection")],l);var c=n(4146),u=n(63074),d=n(25036),f=n(52106),p=n(56507),h=n(7695);let m=class extends l{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,r.Cg)([(0,h.u)({Type:f.A,ensureType:(0,p.dp)(f.A)})],m.prototype,"itemType",void 0),m=(0,r.Cg)([(0,i.$K)("esri.support.GraphicsCollection")],m);var y=n(88625);let g=class extends((0,u.dM)((0,d.j)(c.A))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new m,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}get loaded(){return super.loaded}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}graphicChanged(e){this.emit("graphic-update",e)}};var w,_;(0,r.Cg)([(0,i.MZ)({type:y.A})],g.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,i.MZ)((w=m,_="graphics",{type:w,cast:o.H,set(e){const t=(0,o.V)(e,this._get(_),w);t&&!t.destroyed&&(t.owner=this),this._set(_,t)}}))],g.prototype,"graphics",void 0),(0,r.Cg)([(0,i.MZ)({type:["show","hide"]})],g.prototype,"listMode",void 0),(0,r.Cg)([(0,i.MZ)()],g.prototype,"screenSizePerspectiveEnabled",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],g.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({constructOnly:!0})],g.prototype,"internal",void 0),g=(0,r.Cg)([(0,i.$K)("esri.layers.GraphicsLayer")],g)},32756(e,t,n){n.d(t,{Rr:()=>a,fY:()=>c,ne:()=>l});var r=n(5482),i=n(93637),s=n(91429),o=n(91880);function a(e,t,n){if(!e)return null;const r=e.find(e=>!!e.field);if(!r)return null;const i=new o.A;return i.read(r,n),[i]}const l={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,n,r){const s=e.find(e=>!!e.field);s&&(0,i.sM)(n,[s.toJSON()],t)}}}},c=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,r.Cg)([(0,s.MZ)(l)],n.prototype,"orderBy",void 0),n=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.OrderedLayer")],n),n}},91880(e,t,n){n.d(t,{A:()=>c});var r,i=n(5482),s=n(66552),o=n(25482),a=n(91429);const l=new s.J({asc:"ascending",desc:"descending"});let c=class extends o.o{static{r=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],c.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],c.prototype,"order",void 0),c=r=(0,i.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],c)},41560(e,t,n){n.d(t,{Ch:()=>o,mW:()=>s});var r=n(34727),i=n(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,n){const s=function(e){if("manual"===c(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],u(n)),t[1]=Math.min(t[1],d(r));return t}(e);if(s&&((0,r.gg)(t,s[0])||(0,r.ZH)(n,s[1])))return"";const o=Array.from(a(e,t,n)),l=function(e,t,n){if(0===e.length)return!0;const i=u(e.at(0)?.minScale),s=d(e.at(-1)?.maxScale);if((0,r.ZH)(i,t)||(0,r.gg)(s,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],i=e[t+1];if((0,r.ZH)(u(i.minScale),d(n.maxScale)))return!0}return!1}(o,t,n)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,n){if("manual"===c(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)l(r.minScale,r.maxScale,t,n)&&(yield r)}}function l(e,t,n,i){return e=u(e),n=u(n),t=d(t),!(!(0,r.Sp)(n,e)&&(i??n)>e||(0,r.Hx)(t,n)||void 0!==i&&(0,r.Sp)(i,e))}function c(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},32730(e,t,n){n.d(t,{BI:()=>p,D3:()=>d,XJ:()=>f,lc:()=>u,mX:()=>m,rU:()=>h,tH:()=>b,vK:()=>v,zA:()=>x});var r=n(799);const i="__begin__",s="__end__",o=new RegExp(i,"ig"),a=new RegExp(s,"ig"),l=new RegExp("^"+i,"i"),c=new RegExp(s+"$","i");function u(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function d(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=u(e.labelExpression),t.type="conventional"),t}function p(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return m(t.expression);case"arcade":return t.expression}return null}function h(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(y);return t?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function m(e){let t;return e?(t=(0,r.HC)(e,e=>i+'$feature["'+e+'"]'+s),t=l.test(t)?t.replace(l,""):'"'+t,t=c.test(t)?t.replace(c,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(a,' + "')):t='""',t}const y=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,_=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=g.exec(e)||w.exec(e);return t?t[1]||t[3]:(t=_.exec(e),t?t[2]:null)}const v=Symbol("LabelClassInstance");function x(e){return null!=e&&"object"==typeof e&&v in e}},5757(e,t,n){n.d(t,{B:()=>i,P:()=>r});const r=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}},73681(e,t,n){n.d(t,{n:()=>l});var r=n(49186),i=n(53966),s=n(46140),o=n(95466),a=n(55674);class l{static async from(e,t,n){const o=e.dictionary_version?s.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const f=new Set(e.authoringInfo.symbol);for(const e of Object.keys(n))f.delete(e);f.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:f});const p=await(0,a.xR)(e.expression,null,d);if(!p)throw new r.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const m=new c(n,h);return new l(h,u,p,m)}constructor(e,t,n,r){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=n,this._reader=r}get itemNames(){return this._itemNames}evaluate(e,t,n,r){try{return this._reader.bind(e,n,r),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class c extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},98205(e,t,n){n.d(t,{KZ:()=>a,eh:()=>o,gf:()=>s,of:()=>i,uY:()=>r});const r=Symbol("SizeVariableInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const n=t||o(e),r=e.valueUnit||"unknown";return"unknown"===n?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},55674(e,t,n){n.d(t,{Ad:()=>p,Gj:()=>y,QY:()=>f,lL:()=>g,xR:()=>h});var r=n(66131),i=n(49186),s=(n(44208),n(44729)),o=n(15032),a=n(65864),l=n(95466),c=n(43668),u=n(98623);const d=["geometry","scale","timeProperties"];function f(e,t){if(null!=t)for(const n of d)t.hasArcadeDependency(n)&&e.add(n);return e}function p(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,n){return m.create(e,t,n,["$feature","$view","$config"])}class m{static async create(e,t,n,r){const{arcade:s,Dictionary:o}=await(0,c.l)();let a;try{a=s.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=s.scriptUsesGeometryEngine(a);l&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,a,null,!1,l);const u={vars:r.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=s.compileScript(a,u);let f=null;null!=n&&(f=new o(n),f.immutable=!0);const p=new o;return p.immutable=!1,p.setField("scale",0),new m(e,s,a,d,t,p,f,o)}constructor(e,t,n,r,i,s,o,a){this.script=e,this._arcade=t,this._syntaxTree=n,this._compiled=r,this._spatialReference=i,this._viewDict=s,this._configDict=o,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const n=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=i?null!=n?r.lY.epochToArcadeDate(i,n):r.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=s?null!=n?r.lY.epochToArcadeDate(s,n):r.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:n})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,n){const r=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=r.fields,this._boundSchema.fieldsIndex=r,this._boundSchema.spatialReference=n}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===u.L5}field(e,t=!0){const n=this._getField(e);if(n){const t=this._boundTarget.attributes[n.name];if(null==t)return null;switch(n.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?r.lY.unknownEpochToArcadeDate(t):r.lY.epochToArcadeDate(t,this.contextTimeZone??u.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(){return{attributes:this._boundTarget.attributes,geometry:this.geometry()?.toJSON()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}}function g(e){const t=[];for(const n in e)t.push({name:n,alias:n,type:"string"==typeof e[n]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2969],{46140(e,t,n){n.d(t,{A:()=>i});var r=n(49186);class i{constructor(e,t,n=""){this.major=e,this.minor=t,this._context=n}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",n=this._context&&this._context+" ";throw new r.A(t+"unsupported-version",`Required major ${n}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){const[n,s]=e.split("."),o=/^\s*\d+\s*$/;if(!n?.match||!o.test(n))throw new r.A((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!s?.match||!o.test(s))throw new r.A((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(n,10),l=parseInt(s,10);return new i(a,l,t)}}},6797(e,t,n){n.d(t,{Ui:()=>f});var r=n(69622),i=n(7762),s=n(88620);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof r.A}function l(e){return e instanceof i.A?Object.keys(e.items):a(e)?(0,s.oY)(e).keys():e?Object.keys(e):[]}function c(e,t){return e instanceof i.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function d(e,t){const n=e.diff;if(n&&"function"==typeof n)return n(e,t);const r=l(e),i=l(t);if(0===r.length&&0===i.length)return;if(!r.length||!i.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=i.filter(e=>!r.includes(e)),f=r.filter(e=>!i.includes(e)),p=r.filter(n=>i.includes(n)&&c(e,n)!==c(t,n)).concat(s,f).sort(),h=u(e);if(h&&o.has(h)&&p.length)return{type:"complete",oldValue:e,newValue:t};let m;const y=a(e)&&a(t);for(const r of p){const i=c(e,r),s=c(t,r);let o;if((y||"function"!=typeof i&&"function"!=typeof s)&&i!==s&&(null!=i||null!=s)){if(n&&n[r]&&"function"==typeof n[r])o=n[r]?.(i,s);else if(i instanceof Date&&s instanceof Date){if(i.getTime()===s.getTime())continue;o={type:"complete",oldValue:i,newValue:s}}else o="object"==typeof i&&"object"==typeof s&&u(i)===u(s)?d(i,s):{type:"complete",oldValue:i,newValue:s};null!=o&&(null!=m?m.diff[r]=o:m={type:"partial",diff:{[r]:o}})}}return m}function f(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:d(e,t)}},91829(e,t,n){function r(){return[0,0,0,0]}function i(e,t,n,r){return[e,t,n,r]}function s(e,t,n,r){return[e,t,n,r]}function o(){return i(1,1,1,1)}function a(){return i(1,0,0,0)}function l(){return i(0,1,0,0)}function c(){return i(0,0,1,0)}function u(){return i(0,0,0,1)}n.d(t,{CN:()=>s,Un:()=>f,_Y:()=>u,fA:()=>i,uY:()=>d,vt:()=>r});const d=[0,0,0,0],f=o(),p=a(),h=l(),m=c(),y=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:y,UNIT_X:p,UNIT_Y:h,UNIT_Z:m,ZEROS:d,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:r,freeze:s,fromArray:function(e,t=[0,0,0,0]){const n=Math.min(4,e.length);for(let r=0;r<n;++r)t[r]=e[r];return t},fromValues:i,ones:o,unitW:u,unitX:a,unitY:l,unitZ:c,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},78955(e,t,n){n.d(t,{Bw:()=>y,C:()=>i,Cc:()=>b,LI:()=>f,Om:()=>w,S8:()=>_,T9:()=>d,WQ:()=>o,Z0:()=>v,aI:()=>S,hG:()=>m,hZ:()=>s,hs:()=>p,jk:()=>u,m3:()=>g,t2:()=>x});var r=n(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function s(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function o(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}function a(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}function l(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}function c(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}function u(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}function d(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}function f(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function p(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}function h(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return Math.sqrt(n*n+r*r+i*i+s*s)}function m(e,t){const n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2],s=t[3]-e[3];return n*n+r*r+i*i+s*s}function y(e){const t=e[0],n=e[1],r=e[2],i=e[3];return Math.sqrt(t*t+n*n+r*r+i*i)}function g(e){const t=e[0],n=e[1],r=e[2],i=e[3];return t*t+n*n+r*r+i*i}function _(e,t){const n=t[0],r=t[1],i=t[2],s=t[3];let o=n*n+r*r+i*i+s*s;return o>0&&(o=1/Math.sqrt(o),e[0]=n*o,e[1]=r*o,e[2]=i*o,e[3]=s*o),e}function w(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function b(e,t,n,r){const i=t[0],s=t[1],o=t[2],a=t[3];return e[0]=i+r*(n[0]-i),e[1]=s+r*(n[1]-s),e[2]=o+r*(n[2]-o),e[3]=a+r*(n[3]-a),e}function v(e,t,n){const r=t[0],i=t[1],s=t[2],o=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*s+n[12]*o,e[1]=n[1]*r+n[5]*i+n[9]*s+n[13]*o,e[2]=n[2]*r+n[6]*i+n[10]*s+n[14]*o,e[3]=n[3]*r+n[7]*i+n[11]*s+n[15]*o,e}function x(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function S(e,t){const n=e[0],i=e[1],s=e[2],o=e[3],a=t[0],l=t[1],c=t[2],u=t[3],d=(0,r.FD)();return Math.abs(n-a)<=d*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-l)<=d*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(s-c)<=d*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(o-u)<=d*Math.max(1,Math.abs(o),Math.abs(u))}const T=a,M=l,A=c,I=h,E=m,D=y,$=g;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:I,distance:h,div:A,divide:c,dot:w,equals:S,exactEquals:x,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:D,length:y,lerp:b,max:d,min:u,mul:M,multiply:l,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:_,random:function(e,t=1){const n=r.Ov;let i,s,o,a,l,c;do{i=2*n()-1,s=2*n()-1,l=i*i+s*s}while(l>=1);do{o=2*n()-1,a=2*n()-1,c=o*o+a*a}while(c>=1);const u=Math.sqrt((1-l)/c);return e[0]=t*i,e[1]=t*s,e[2]=t*o*u,e[3]=t*a*u,e},round:f,scale:p,scaleAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e},set:s,sqrDist:E,sqrLen:$,squaredDistance:m,squaredLength:g,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:T,subtract:a,transformMat4:v,transformQuat:function(e,t,n){const r=t[0],i=t[1],s=t[2],o=n[0],a=n[1],l=n[2],c=n[3],u=c*r+a*s-l*i,d=c*i+l*r-o*s,f=c*s+o*i-a*r,p=-o*r-a*i-l*s;return e[0]=u*c+p*-o+d*-l-f*-a,e[1]=d*c+p*-a+f*-o-u*-l,e[2]=f*c+p*-l+u*-a-d*-o,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},13069(e,t,n){n.d(t,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>s});const r="randomUUID"in crypto;function i(){if(r)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 s(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},94194(e,t,n){n.d(t,{A:()=>g});var r=n(5482),i=n(91429),s=n(7762),o=n(62885),a=(n(44208),n(53966),n(10107));let l=class extends s.A{constructor(e){super(e),this.addHandles([this.on("before-add",e=>{null==e.item&&e.preventDefault()}),this.on("after-add",e=>this._own(e.item)),this.on("after-remove",e=>this._release(e.item))])}get owner(){return this._get("owner")}set owner(e){this.destroyed||e!==this._get("owner")&&(this._releaseAll(),this._set("owner",e),this._ownAll())}_ownAll(){for(const e of this.items)this._own(e)}_releaseAll(){for(const e of this.items)this._release(e)}_createNewInstance(e){return this.itemType?new(s.A.ofType(this.itemType.Type))(e):new s.A(e)}};(0,r.Cg)([(0,a.MZ)()],l.prototype,"owner",null),l=(0,r.Cg)([(0,i.$K)("esri.core.support.OwningCollection")],l);var c=n(4146),u=n(63074),d=n(25036),f=n(52106),p=n(56507),h=n(7695);let m=class extends l{_own(e){e.layer&&"remove"in e.layer&&e.layer!==this.owner&&e.layer.remove(e),e.layer=this.owner}_release(e){e.layer===this.owner&&(e.layer=null)}};(0,r.Cg)([(0,h.u)({Type:f.A,ensureType:(0,p.dp)(f.A)})],m.prototype,"itemType",void 0),m=(0,r.Cg)([(0,i.$K)("esri.support.GraphicsCollection")],m);var y=n(88625);let g=class extends((0,u.dM)((0,d.j)(c.A))){constructor(e){super(e),this.elevationInfo=null,this.graphics=new m,this.screenSizePerspectiveEnabled=!0,this.type="graphics",this.internal=!1}destroy(){this.removeAll(),this.graphics.destroy()}get loaded(){return super.loaded}add(e){return this.graphics.add(e),this}addMany(e){return this.graphics.addMany(e),this}removeAll(){return this.graphics.removeAll(),this}remove(e){this.graphics.remove(e)}removeMany(e){this.graphics.removeMany(e)}graphicChanged(e){this.emit("graphic-update",e)}};var _,w;(0,r.Cg)([(0,i.MZ)({type:y.A})],g.prototype,"elevationInfo",void 0),(0,r.Cg)([(0,i.MZ)((_=m,w="graphics",{type:_,cast:o.H,set(e){const t=(0,o.V)(e,this._get(w),_);t&&!t.destroyed&&(t.owner=this),this._set(w,t)}}))],g.prototype,"graphics",void 0),(0,r.Cg)([(0,i.MZ)({type:["show","hide"]})],g.prototype,"listMode",void 0),(0,r.Cg)([(0,i.MZ)()],g.prototype,"screenSizePerspectiveEnabled",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],g.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({constructOnly:!0})],g.prototype,"internal",void 0),g=(0,r.Cg)([(0,i.$K)("esri.layers.GraphicsLayer")],g)},32756(e,t,n){n.d(t,{Rr:()=>a,fY:()=>c,ne:()=>l});var r=n(5482),i=n(93637),s=n(91429),o=n(91880);function a(e,t,n){if(!e)return null;const r=e.find(e=>!!e.field);if(!r)return null;const i=new o.A;return i.read(r,n),[i]}const l={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,n,r){const s=e.find(e=>!!e.field);s&&(0,i.sM)(n,[s.toJSON()],t)}}}},c=e=>{const t=e;let n=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,r.Cg)([(0,s.MZ)(l)],n.prototype,"orderBy",void 0),n=(0,r.Cg)([(0,s.$K)("esri.layers.mixins.OrderedLayer")],n),n}},91880(e,t,n){n.d(t,{A:()=>c});var r,i=n(5482),s=n(66552),o=n(25482),a=n(91429);const l=new s.J({asc:"ascending",desc:"descending"});let c=class extends o.o{static{r=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],c.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],c.prototype,"order",void 0),c=r=(0,i.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],c)},41560(e,t,n){n.d(t,{Ch:()=>o,mW:()=>s});var r=n(34727),i=n(39516);function s(e,t){return{...t,filterMode:e.mode}}function o(e,t,n){const s=function(e){if("manual"===c(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],u(n)),t[1]=Math.min(t[1],d(r));return t}(e);if(s&&((0,r.gg)(t,s[0])||(0,r.ZH)(n,s[1])))return"";const o=Array.from(a(e,t,n)),l=function(e,t,n){if(0===e.length)return!0;const i=u(e.at(0)?.minScale),s=d(e.at(-1)?.maxScale);if((0,r.ZH)(i,t)||(0,r.gg)(s,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],i=e[t+1];if((0,r.ZH)(u(i.minScale),d(n.maxScale)))return!0}return!1}(o,t,n)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,n){if("manual"===c(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)l(r.minScale,r.maxScale,t,n)&&(yield r)}}function l(e,t,n,i){return e=u(e),n=u(n),t=d(t),!(!(0,r.Sp)(n,e)&&(i??n)>e||(0,r.Hx)(t,n)||void 0!==i&&(0,r.Sp)(i,e))}function c(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function d(e){return e||0}},32730(e,t,n){n.d(t,{BI:()=>p,D3:()=>d,XJ:()=>f,lc:()=>u,mX:()=>m,rU:()=>h,tH:()=>b,vK:()=>v,zA:()=>x});var r=n(799);const i="__begin__",s="__end__",o=new RegExp(i,"ig"),a=new RegExp(s,"ig"),l=new RegExp("^"+i,"i"),c=new RegExp(s+"$","i");function u(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function d(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function f(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=u(e.labelExpression),t.type="conventional"),t}function p(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return m(t.expression);case"arcade":return t.expression}return null}function h(e){const t=f(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(y);return t?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function m(e){let t;return e?(t=(0,r.HC)(e,e=>i+'$feature["'+e+'"]'+s),t=l.test(t)?t.replace(l,""):'"'+t,t=c.test(t)?t.replace(c,""):t+'"',t=t.replaceAll(o,'" + ').replaceAll(a,' + "')):t='""',t}const y=/^\s*\{([^}]+)\}\s*$/i,g=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,_=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,w=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=g.exec(e)||_.exec(e);return t?t[1]||t[3]:(t=w.exec(e),t?t[2]:null)}const v=Symbol("LabelClassInstance");function x(e){return null!=e&&"object"==typeof e&&v in e}},5757(e,t,n){n.d(t,{B:()=>i,P:()=>r});const r=Symbol("PopupTemplateInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}},73681(e,t,n){n.d(t,{n:()=>l});var r=n(49186),i=n(53966),s=n(46140),o=n(95466),a=n(55674);class l{static async from(e,t,n){const o=e.dictionary_version?s.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),d={};if(t)for(const e in t)d[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)d.hasOwnProperty(t.name)||(d[t.name]=t.value);const f=new Set(e.authoringInfo.symbol);for(const e of Object.keys(n))f.delete(e);f.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:f});const p=await(0,a.xR)(e.expression,null,d);if(!p)throw new r.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const h=!o||!o.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:o});const m=new c(n,h);return new l(h,u,p,m)}constructor(e,t,n,r){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=n,this._reader=r}get itemNames(){return this._itemNames}evaluate(e,t,n,r){try{return this._reader.bind(e,n,r),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new o.A(e);const t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new o.A(t)}}class c extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},98205(e,t,n){n.d(t,{KZ:()=>a,eh:()=>o,gf:()=>s,of:()=>i,uY:()=>r});const r=Symbol("SizeVariableInstance");function i(e){return null!=e&&"object"==typeof e&&r in e}function s(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function a(e,t){const n=t||o(e),r=e.valueUnit||"unknown";return"unknown"===n?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===r?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}},55674(e,t,n){n.d(t,{Ad:()=>p,Gj:()=>y,QY:()=>f,lL:()=>g,xR:()=>h});var r=n(66131),i=n(49186),s=(n(44208),n(44729)),o=n(15032),a=n(65864),l=n(95466),c=n(43668),u=n(98623);const d=["geometry","scale","timeProperties"];function f(e,t){if(null!=t)for(const n of d)t.hasArcadeDependency(n)&&e.add(n);return e}function p(e,t){return m.create(e,t,null,["$feature","$view"])}function h(e,t,n){return m.create(e,t,n,["$feature","$view","$config"])}class m{static async create(e,t,n,r){const{arcade:s,Dictionary:o}=await(0,c.l)();let a;try{a=s.parseScript(e)}catch(t){throw new i.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=s.scriptUsesGeometryEngine(a);l&&await s.enableGeometrySupport(),await s.loadDependentModules(new Set,a,null,!1,l);const u={vars:r.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},d=s.compileScript(a,u);let f=null;null!=n&&(f=new o(n),f.immutable=!0);const p=new o;return p.immutable=!1,p.setField("scale",0),new m(e,s,a,d,t,p,f,o)}constructor(e,t,n,r,i,s,o,a){this.script=e,this._arcade=t,this._syntaxTree=n,this._compiled=r,this._spatialReference=i,this._viewDict=s,this._configDict=o,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const n=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:i,currentEnd:s}=t.$view.timeProperties;e=new this._dictionaryCtor({__proto__:null,currentStart:null!=i?null!=n?r.lY.epochToArcadeDate(i,n):r.lY.unknownEpochToArcadeDate(i):void 0,currentEnd:null!=s?null!=n?r.lY.epochToArcadeDate(s,n):r.lY.unknownEpochToArcadeDate(s):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:n})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,n){const r=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=r.fields,this._boundSchema.fieldsIndex=r,this._boundSchema.spatialReference=n}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===u.L5}field(e,t=!0){const n=this._getField(e);if(n){const t=this._boundTarget.attributes[n.name];if(null==t)return null;switch(n.type){case"date-only":case"esriFieldTypeDateOnly":return s.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return o.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?r.lY.unknownEpochToArcadeDate(t):r.lY.epochToArcadeDate(t,this.contextTimeZone??u.qU);default:return t}}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(){return{attributes:this._boundTarget.attributes,geometry:this.geometry()?.toJSON()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}}function g(e){const t=[];for(const n in e)t.push({name:n,alias:n,type:"string"==typeof e[n]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}}}]);
|