@arcgis/core 5.2.0-next.139 → 5.2.0-next.140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/arcgisGlobal.d.ts +10 -10
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{86d8ccb795611cd6d071.js → 00a600c71ceebe7bfeee.js} +1 -1
  4. package/assets/esri/core/workers/chunks/0193df3f9fb23633da87.js +1 -0
  5. package/assets/esri/core/workers/chunks/{3a0b19275751a3a73cd5.js → 07aa6d36f1006b6ab7ff.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{a054da6cbd8ee4774a57.js → 1f3148cebee1961249a4.js} +1 -1
  7. package/assets/esri/core/workers/chunks/222af8522773c7dc80b1.js +1 -0
  8. package/assets/esri/core/workers/chunks/{a4d0df0177ac28e42219.js → 303fde8f3459dde16555.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{51dd6df99dfe443df218.js → 350540770781b281c39a.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{f5f4521119d2ce2465d7.js → 3b017b718ea2d4ed498f.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{1bf5e4b56c32a853f200.js → 3e81dfc9d621ece038fe.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{685cef5d2245450dc695.js → 4097edb2ad522dff50ce.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{2398d1ee310bbbc1e20c.js → 4d82db661365daa513a6.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{544a1326c12e71b33dd8.js → 641d196a554bd07f729e.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{dce78ea26d078d9c4667.js → 798a63653f82c0e842c5.js} +1 -1
  16. package/assets/esri/core/workers/chunks/84fcbf7a1d04f01685d1.js +1 -0
  17. package/assets/esri/core/workers/chunks/{459d5dca9c915b13cfce.js → 8e511079918e2fd9261f.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{0a8463fe687d3193dd8b.js → fc5a36e54929e03efa86.js} +1 -1
  19. package/assets/esri/libs/librust-parquet/pkg/parquet_bg.wasm +0 -0
  20. package/config.js +1 -1
  21. package/kernel.js +1 -1
  22. package/{layers/list/BasemapItemCollection.d.ts → layerList/BasemapLayerListModel.d.ts} +14 -14
  23. package/layerList/BasemapLayerListModel.js +2 -0
  24. package/{layers/list/CatalogItemCollection.d.ts → layerList/CatalogLayerListModel.d.ts} +15 -15
  25. package/layerList/CatalogLayerListModel.js +2 -0
  26. package/{layers/list → layerList}/Item.d.ts +22 -22
  27. package/layerList/Item.js +2 -0
  28. package/{layers/list → layerList}/ItemPanel.d.ts +3 -3
  29. package/layerList/ItemPanel.js +2 -0
  30. package/{layers/list/LayerItemCollection.d.ts → layerList/LayerListModel.d.ts} +16 -16
  31. package/layerList/LayerListModel.js +2 -0
  32. package/{layers/list → layerList}/TableItem.d.ts +11 -11
  33. package/layerList/TableItem.js +2 -0
  34. package/{layers/list → layerList}/TableItemPanel.d.ts +2 -2
  35. package/layerList/TableItemPanel.js +2 -0
  36. package/{layers/list/TableItemCollection.d.ts → layerList/TableListModel.d.ts} +15 -15
  37. package/layerList/TableListModel.js +2 -0
  38. package/{layers/list → layerList}/types.d.ts +29 -29
  39. package/layers/support/LabelExpressionInfo.d.ts +7 -1
  40. package/layers/support/LabelExpressionInfo.js +1 -1
  41. package/package.json +2 -2
  42. package/popup/{FeatureContent.d.ts → FeatureModel.d.ts} +11 -11
  43. package/popup/{FeatureContent.js → FeatureModel.js} +1 -1
  44. package/popup/{FeatureContentCollection.d.ts → FeaturesModel.d.ts} +62 -62
  45. package/popup/FeaturesModel.js +2 -0
  46. package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +2 -0
  47. package/widgets/DirectionalPad/types.d.ts +5 -1
  48. package/widgets/DirectionalPad.d.ts +1 -0
  49. package/widgets/Feature/FeatureViewModel.d.ts +1 -1
  50. package/widgets/Feature/FeatureViewModel.js +1 -1
  51. package/widgets/Features/FeaturesViewModel.d.ts +2 -2
  52. package/widgets/Features/FeaturesViewModel.js +1 -1
  53. package/widgets/LayerList/LayerListViewModel.d.ts +4 -4
  54. package/widgets/LayerList/LayerListViewModel.js +1 -1
  55. package/widgets/LayerList/ListItem.d.ts +5 -5
  56. package/widgets/LayerList/ListItemPanel.d.ts +4 -4
  57. package/widgets/LayerList/types.d.ts +7 -7
  58. package/widgets/Popup/PopupViewModel.d.ts +1 -1
  59. package/widgets/Popup/PopupViewModel.js +1 -1
  60. package/widgets/support/SelectionList/FeatureItem.d.ts +9 -2
  61. package/assets/esri/core/workers/chunks/069bd90cbb7377e2e4bc.js +0 -1
  62. package/assets/esri/core/workers/chunks/f3214bccb039338acadf.js +0 -1
  63. package/assets/esri/core/workers/chunks/fd2cea0761587adaa6c9.js +0 -1
  64. package/layers/list/BasemapItemCollection.js +0 -2
  65. package/layers/list/CatalogItemCollection.js +0 -2
  66. package/layers/list/Item.js +0 -2
  67. package/layers/list/ItemPanel.js +0 -2
  68. package/layers/list/LayerItemCollection.js +0 -2
  69. package/layers/list/TableItem.js +0 -2
  70. package/layers/list/TableItemCollection.js +0 -2
  71. package/layers/list/TableItemPanel.js +0 -2
  72. package/popup/FeatureContentCollection.js +0 -2
  73. /package/{layers/list → layerList}/support/layerListUtils.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,4500,7067,8548],{19334(e,t,r){r.d(t,{e:()=>o});var i=r(54639),n=r(14112);class l{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function o(e){if(null==e)return null;switch(e.type){case"point":if((0,n.e6)(e))return null;break;case"polygon":if((0,n.Wq)(e))return null;break;case"polyline":if((0,n.IY)(e))return null;break;case"multipoint":if((0,n.DG)(e))return null;break;case"extent":if((0,n.As)(e))return null;break;default:return null}let t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new l(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>d});var i=r(54639),n=r(14112),l=r(16930),o=r(60408),a=r(65864);class s{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,a.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if("object"!=typeof e||!e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof l.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new l.A,r.read(e.spatialReference))),null==r)throw Error("Spatial reference required");return(0,o.fT)(e)?d("point",e,r):(0,o.Rg)(e)?d("polyline",e,r):(0,o.Bi)(e)?d("polygon",e,r):(0,o.U9)(e)?d("multipoint",e,r):(0,o.ZC)(e)?d("extent",e,r):null}function d(e,t,r){if(null==t)return null;let l=!1,o=!1;switch(e){case"point":if((0,n.e6)(t))return null;l=void 0!==t.z,o=void 0!==t.m;break;case"polygon":if((0,n.Wq)(t))return null;l=!0===t.hasZ,o=!0===t.hasM;break;case"polyline":if((0,n.IY)(t))return null;l=!0===t.hasZ,o=!0===t.hasM;break;case"multipoint":if((0,n.DG)(t))return null;l=!0===t.hasZ,o=!0===t.hasM;break;case"extent":if((0,n.As)(t))return null;l=null!=t.zmin&&null!=t.zmax,o=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,l,o,new s(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function n(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function l(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function o(e){return 0===e.points.length}function a(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>a,DG:()=>o,IY:()=>l,Wq:()=>n,e6:()=>i})},83508(e,t,r){r.r(t),r.d(t,{default:()=>we});var i=r(32198),n=r(56507),l=r(7762),o=r(49186),a=r(91869),s=r(25728),u=r(17676),d=r(84952),p=r(91429),c=r(4146),y=r(36563),f=r(66344),h=r(32587),m=r(36708),g=r(44794),v=r(78888),b=r(63074),w=r(25036),C=r(10873),M=r(91880),x=r(1873);let F=class extends((0,w.j)((0,b.dM)((0,s.M)(c.A)))){constructor(e){super(e),this._layerCache=new f.q(20,e=>e.destroy()),this._oidToReference=new h.A,this._layerToReference=new Map,this.legendEnabled=!0,this.layers=new l.A,this.maximumVisibleSublayers=10,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.title="Layers in view",this.type="catalog-dynamic-group",this.visible=!0}initialize(){this.addHandles([this.layers.on("after-add",({item:e})=>{e.parent=this}),this.layers.on("after-remove",({item:e})=>{e.parent=null}),(0,m.wB)(()=>this._orderBy,()=>{this._updateLayerSortValues(),this._sortAllLayers()})])}load(e){return this.addResolvingPromise(this.parent.load()),Promise.resolve(this)}destroy(){this._layerCache.destroy(),this._oidToReference.clear(),this._layerToReference.clear()}get _orderBy(){return this.parent?this.parent.orderBy?.find(e=>!e.valueExpression&&e.field)??new M.A({field:this.parent.objectIdField}):null}get _referenceComparator(){let e=this._orderBy;if(!this.parent||!e)return()=>0;let t=this.parent.fieldsIndex.get(e.field),r=(0,x.FM)(t?.toJSON().type,"descending"===e.order,"case-sensitive"),i=(0,x.FM)("esriFieldTypeOID","descending"===e.order);return(e,t)=>r(t.sortValue,e.sortValue)||i(t.objectId,e.objectId)}get fullExtent(){return this.parent?.fullExtent??null}get updating(){return(0,a.Bs)(this._oidToReference,({pending:e})=>null!=e)}acquireLayer(e){if(this.destroyed)return(0,y.hA)();let t=this._getLayerReference(e);return t.count++,(0,y.hA)(()=>{t.count--,t.count||this._destroyLayerReference(t)})}_getLayerReference(e){let t=e.getObjectId();return(0,a.tE)(this._oidToReference,t,()=>{let t=e.getObjectId(),r=`${t}`,i=e.getAttribute(this.parent.itemSourceField),n=new S(e,t,i),l=this._layerCache.pop(r);return l?(this._addLayer(n,l),n):(n.pending=this.parent.createLayerFromFootprint(e).then(e=>{n.count?this._addLayer(n,e):(!this.destroyed&&!this._layerCache.get(r)&&this._layerCache.put(r,e),n.layer=null)}).catch(()=>{}).finally(()=>{n.pending=null}),n)})}_destroyLayerReference(e){e.layer&&=(this._layerToReference.delete(e.layer),this.layers.remove(e.layer),this.destroyed?e.layer.destroy():this._layerCache.put(`${e.objectId}`,e.layer),null),this._oidToReference.delete(e.objectId)}_addLayer(e,t){e.layer=t,t.persistenceEnabled=!1,this._layerToReference.set(t,e),this._updateLayerSortValue(e),this.layers.add(t),this._sortAllLayers()}_updateLayerSortValues(){for(let e of this._layerToReference.values())this._updateLayerSortValue(e)}_updateLayerSortValue(e){this._orderBy&&(e.sortValue=e.footprint.getAttribute(this._orderBy.field))}_sortAllLayers(){this.layers.sort((e,t)=>this._referenceComparator(this._layerToReference.get(e),this._layerToReference.get(t)))}};(0,i.Cg)([(0,p.MZ)()],F.prototype,"_orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"_referenceComparator",null),(0,i.Cg)([(0,p.MZ)(C.fV)],F.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{write:!0}})],F.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],F.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:v.jz,range:{min:0,max:50},json:{write:!0,default:10}})],F.prototype,"maximumVisibleSublayers",void 0),(0,i.Cg)([(0,p.MZ)(C.ke)],F.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],F.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],F.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],F.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"updating",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],F.prototype,"visible",void 0),F=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogDynamicGroupLayer")],F);class S{constructor(e,t,r){this.footprint=e,this.objectId=t,this.itemSource=r,this.count=0,this.layer=null,this.sortValue=void 0,this._pending=(0,g.v)(null)}get pending(){return this._pending.value}set pending(e){this._pending.value=e}}var Z=r(37838),I=r(4718),E=r(78247),T=r(41910),j=r(55156),L=r(60950),A=r(89808),O=r(99959);const P=Symbol("isCatalogGraphicOrigin");var V;class R extends O.A{get[(V=P,L.ym)](){return this.layer}get[j.e](){return this.layer}get[A.Q](){return this.layer}get[T.e7](){return this.layer}constructor(e){super(),this[V]=!0,this.type="catalog",this.layer=e}get id(){return this.layer.id}}var _=r(87718),N=r(30279),D=r(16194),q=r(30524),z=r(46499),k=r(39383),B=r(96576),G=r(41214),U=r(30291),$=r(94985),J=r(43937);let K=class extends((0,w.j)((0,_.F)((0,b.dM)((0,s.M)(c.A))))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.elevationInfo=null,this.formTemplate=null,this.graphicOrigin=new R(this),this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.title="Footprints",this.type="catalog-footprint",this.visible=!0}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.parent.load(e),(0,q.yp)(this.renderer,this.fieldsIndex),this.addHandles([this.parent.on("apply-edits",e=>this.emit("apply-edits",e)),this.parent.on("edits",e=>this.emit("edits",e)),this.parent.on("refresh",e=>this.emit("refresh",e))])}get apiKey(){return this.parent?.apiKey}get capabilities(){return this.parent?.capabilities}get customParameters(){return this.parent?.customParameters}get dateFieldsTimeZone(){return this.parent?.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this.parent?.datesInUnknownTimezone??!1}get definitionExpression(){return this.parent?.definitionExpression}get editingInfo(){return this.parent?.editingInfo}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get createQueryVersion(){return this.parent?.createQueryVersion}get defaultPopupTemplate(){return this.createPopupTemplate()}get displayField(){return this.parent?.displayField}get displayFilterEnabled(){return this.parent?.displayFilterEnabled??!0}get displayFilterInfo(){return this.parent?.displayFilterInfo??null}get effectiveEditingEnabled(){return!1}set fieldConfigurations(e){if(this._override("fieldConfigurations",e),!this.parent?.loaded)return;let t=(0,D.sS)(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):(0,D.QX)(this)||null}get fields(){return this.parent?.fields}get fieldsIndex(){return this.parent?.fieldsIndex}get fullExtent(){return this.parent?.fullExtent}get geometryFieldsInfo(){return this.parent?.geometryFieldsInfo}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?.globalIdField}get hasM(){return this.parent?.hasM??!1}get hasZ(){return this.parent?.hasZ??!1}get objectIdField(){return this.parent?.objectIdField}get orderBy(){return this.parent?.orderBy??null}get outFields(){return this.parent?.outFields}get parsedUrl(){return this.parent?.parsedUrl??null}writePopupTemplate(e,t,r,i){e&&(t[r]=e.toJSON({...i,writeFieldFormat:!0}))}get preferredTimeZone(){return this.parent?.preferredTimeZone??null}set renderer(e){(0,q.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):function(){let e=new $.A({style:"solid",color:[0,0,0,0],outline:{style:"solid",color:[96,96,96,.75],width:.75}});return new B.A({symbol:e})}()}get returnM(){return this.parent?.returnM}get returnZ(){return this.parent?.returnZ}get source(){return this.parent?.source}get timeExtent(){return this.parent?.timeExtent}get timeInfo(){return this.parent?.timeInfo}get timeOffset(){return this.parent?.timeOffset}get typeIdField(){return this.parent?.typeIdField}get types(){return this.parent?.types}get useViewTime(){return this.parent?.useViewTime??!0}get version(){return this.parent?.version}async applyEdits(e,t){return await this.load(),this.parent.applyEdits(e,t)}createFieldConfigurations(){return(0,D.xY)(this)}createPopupTemplate(e){let t={fields:this.fields,objectIdField:this.objectIdField,title:this.title};return(0,U.tn)(t,e)}createQuery(){return this.parent?.createQuery()}getField(e){return this.parent?.getField(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){return this.parent?.getFieldDomain(e,t)}async queryExtent(e,t){return await this.load(),this.parent.queryExtent(e,t)}async queryFeatures(e,t){return await this.load(),this.parent.queryFeatures(e,t)}async queryFeatureCount(e,t){return await this.load(),this.parent.queryFeatureCount(e,t)}async queryObjectIds(e,t){return await this.load(),this.parent.queryObjectIds(e,t)}async queryAttributeBins(e,t){return await this.load(),this.parent.queryAttributeBins(e,t)}};(0,i.Cg)([(0,p.MZ)(C.zQ)],K.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"apiKey",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"capabilities",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"customParameters",null),(0,i.Cg)([(0,p.MZ)()],K.prototype,"dateFieldsTimeZone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"definitionExpression",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"editingInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],K.prototype,"charts",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"displayField",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],K.prototype,"editingEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)((()=>{let e=(0,I.o8)(C.Yj);return e.json.origins["web-map"]={read:!1,write:!1},e})())],K.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:[N.A],json:{name:"layerDefinition.fieldConfigurations",write:{overridePolicy(e,t){return{enabled:!0,ignoreOrigin:this.originIdOf(t)<3}}}}})],K.prototype,"fieldConfigurations",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"fields",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"fieldsIndex",null),(0,i.Cg)([(0,p.MZ)({type:E.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],K.prototype,"formTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"geometryFieldsInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"geometryType",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"globalIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],K.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"hasM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"hasZ",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],K.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:[z.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:k.w,write:!0}})],K.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,p.MZ)(C.kF)],K.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)(C.fV)],K.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide"],json:{write:!0}})],K.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)((()=>{let e=(0,I.o8)(C.hG);return e.json.origins.service.read=!1,e})())],K.prototype,"maxScale",void 0),(0,i.Cg)([(0,p.MZ)((()=>{let e=(0,I.o8)(C.hn);return e.json.origins.service.read=!1,e})())],K.prototype,"minScale",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"objectIdField",null),(0,i.Cg)([(0,p.MZ)(C.ke)],K.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"outFields",null),(0,i.Cg)([(0,p.MZ)({clonable:!1})],K.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"parsedUrl",null),(0,i.Cg)([(0,p.MZ)(C.M6)],K.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Z.A,json:{name:"popupInfo",write:!0}})],K.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,J.K)("popupTemplate")],K.prototype,"writePopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"preferredTimeZone",null),(0,i.Cg)([(0,p.MZ)({types:G.Hg,json:{origins:{"web-scene":{types:G.XJ}},name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(e,t){return{ignoreOrigin:this.originIdOf(t)<3}}}}})],K.prototype,"renderer",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"returnM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"returnZ",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"source",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"timeExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"timeInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"timeOffset",null),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],K.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],K.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"typeIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"types",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"useViewTime",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],K.prototype,"visible",void 0),K=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogFootprintLayer")],K);var H=r(65515),Q=r(52136),W=r(18768),Y=r(69208),X=r(6455),ee=r(47685),te=r(10086),re=r(99644),ie=r(34287),ne=r(32756),le=r(8303),oe=r(54310),ae=r(82935),se=r(15426),ue=r(33143),de=r(17036),pe=r(91908),ce=r(20655),ye=r(80812),fe=r(39131),he=r(97552);const me=(0,de.p)();function ge(e,t,r,i){let n=e.write({},i);(function(e){if(null==e)return!0;let t=Object.keys(e);return!t.length||1===t.length&&"id"===t[0]})(n)||(t[r]=n)}let ve=class extends((0,re.z)((0,X.FJ)((0,te.j)((0,ee.w6)((0,b.dM)((0,ne.fY)((0,ae.e)((0,w.j)((0,oe.J)((0,W.b)((0,ie.q)((0,le.A)((0,s.M)((0,Y.d)((0,Q.p)(c.A)))))))))))))))){constructor(e){super(e),this.legendEnabled=!0,this._portals=new Map,this._layerToFootprint=new WeakMap,this.drawOrderField="cd_draworder",this.dynamicGroupLayer=new F({parent:this}),this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.footprintLayer=new K({parent:this}),this.itemNameField="cd_itemname",this.itemSourceField="cd_itemsource",this.itemTypeField="cd_itemtype",this.layers=new l.A([this.dynamicGroupLayer,this.footprintLayer]),this.maxScaleField="cd_maxscale",this.minScaleField="cd_minscale",this.orderBy=null,this.outFields=null,this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Catalog Layer"]),this.source=new H.default({layer:this,supportedSourceTypes:this.supportedSourceTypes}),this.type="catalog",this.typeIdField=null,this.types=null}load(e){let t=null==e?null:e.signal,r=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(u.QP).then(async()=>{let{url:e,source:r}=this;if(!e)throw new o.A("catalog-layer:missing-url","Catalog layer must be created with a url");if(null==this.layerId){let r=await this._fetchFirstValidLayerId(t);if(null==r)throw new o.A("catalog-layer:missing-layerId","There is no Catalog Layer in the service",{service:e});this.layerId=r}await r.load({signal:t}),this._initLayerProperties(),this._verifyFields()}).then(()=>(0,se.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.footprintLayer.destroy(),this.dynamicGroupLayer.destroy();for(let e of this._portals.values())e.destroy();this._portals.clear()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return!1}async applyEdits(e,t){return(0,se.ct)(this,e,t)}async createLayerFromFootprint(e){let t=await this._createLayer(e);return this._configureLayer(t,e),this._layerToFootprint.set(t,e),t}createFootprintFromLayer(e){return this._layerToFootprint.get(e)?.clone()}createQuery(){let e=new he.A,t=this.capabilities?.query;e.returnGeometry=!0,t&&(e.compactGeometryEnabled=t.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=t.supportsDefaultSpatialReference),e.outFields=["*"];let{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e.where=this.definitionExpression||"1=1",e}getFeatureType(e){return(0,se.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){let r=t?.feature,i=this.getFeatureType(r);if(i){let t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this.getField(e)?.domain}async reloadFromService(e){await this.source.reload({signal:e}),this._initLayerProperties(),this._verifyFields()}async hasDataChanged(){return(0,se.jp)(this)}async queryFeatures(e,t){let r=await this.load(),i=await r.source.queryFeatures(he.A.from(e)??r.createQuery(),t),n=r.footprintLayer.graphicOrigin;if(i?.features)for(let e of i.features)e.layer=e.sourceLayer=r.footprintLayer,e.origin=n;return i}async queryObjectIds(e,t){return(await this.load()).source.queryObjectIds(he.A.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){return(await this.load()).source.queryFeatureCount(he.A.from(e)??this.createQuery(),t)}async queryExtent(e,t){return(await this.load()).source.queryExtent(he.A.from(e)??this.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,pe.D)(this,e)}read(e,t){if(super.read(e,t),e){let{footprintLayer:r,dynamicGroupLayer:i}=e;r&&this.footprintLayer.read(r,t),i&&this.dynamicGroupLayer.read(i,t)}}async queryAttributeBins(e,t){let{source:i,capabilities:n}=await this.load();(0,se.ZJ)(e,n,"CatalogLayer");let l=await r.e(6956).then(()=>r(14575)),o=await i.queryAttributeBins(l.default.from(e),t);if(o.features)for(let e of o.features)e.layer=e.sourceLayer=this.footprintLayer;return o}_initLayerProperties(){let{portalItem:e,source:t}=this,{sourceJSON:r}=t;r&&(this.sourceJSON=r,this.read(r,{origin:"service",portalItem:e,portal:e?.portal,url:this.parsedUrl}))}_verifyFields(){let e=[this.itemNameField,this.itemSourceField,this.itemTypeField,this.minScaleField,this.maxScaleField],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new o.A("catalog-layer:missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}async _fetchFirstValidLayerId(e){let{data:t}=await(0,n.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(this.applyPreferredHost(t),Array.isArray(t?.layers))return t.layers.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}async _createLayer(e){let t=e.getAttribute(this.itemSourceField);if(!t)throw new o.A("catalog-layer:item-source-missing",`The footprint is missing the "${this.itemSourceField}" attribute`);let i=JSON.parse(t);if(function(e){return"object"==typeof e&&!!e&&"itemId"in e&&"portalUrl"in e}(i)){let e,{itemId:t,portalUrl:r}=i,n=(0,fe.qG)(r),l=this.portalItem?.portal,o=ce.A.getDefault(),s=!0;l&&(0,d.ut)(r,l.url)?e=l:(0,d.ut)(r,o.url)?e=o:(e=(0,a.tE)(this._portals,n,()=>new ce.A({url:n})),s=!1);let u=await c.A.fromPortalItem(new ye.default({id:t,portal:e}));return s||await be(u),u}if(function(e){return"object"==typeof e&&!!e&&"url"in e}(i))return c.A.fromArcGISServerUrl({url:i.url});let{default:n}=await r.e(7546).then(()=>r(45165));return new n}_configureLayer(e,t){let r=t.getAttribute(this.itemNameField);r&&(e.title=r);let i=t.getAttribute(this.maxScaleField);null!=i&&"maxScale"in e&&(e.maxScale=i);let n=t.getAttribute(this.minScaleField);null!=n&&"minScale"in e&&(e.minScale=n)}};async function be(e){if("portalItem"in e&&e.portalItem){try{await e.load()}catch{}e.portalItem=null,"group"===e.type&&await Promise.allSettled([...e.layers.map(e=>be(e)),...e.tables.map(e=>be(e))])}}(0,i.Cg)([(0,p.MZ)(C.fV)],ve.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"drawOrderField",void 0),(0,i.Cg)([(0,p.MZ)({type:F,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:ge}}})],ve.prototype,"dynamicGroupLayer",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.elevationInfo",read:!1,write:!1}}}})],ve.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({...me.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],ve.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(me.fieldsIndex)],ve.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.floorInfo",read:!1,write:!1}}}})],ve.prototype,"floorInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:K,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:ge}}})],ve.prototype,"footprintLayer",void 0),(0,i.Cg)([(0,p.MZ)(C.id)],ve.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"itemNameField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"itemSourceField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"itemTypeField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],ve.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"maxScaleField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"minScaleField",void 0),(0,i.Cg)([(0,p.MZ)({value:"CatalogLayer",type:["CatalogLayer"]})],ve.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.orderBy",write:!0,read:!0}}}})],ve.prototype,"orderBy",void 0),(0,i.Cg)([(0,p.MZ)(me.outFields)],ve.prototype,"outFields",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],ve.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],ve.prototype,"typeIdField",void 0),(0,i.Cg)([(0,p.MZ)({type:[ue.A]})],ve.prototype,"types",void 0),ve=(0,i.Cg)([(0,p.$K)("esri.layers.CatalogLayer")],ve);const we=ve},47685(e,t,r){r.d(t,{Mk:()=>y,Zk:()=>p});var i=r(32198),n=r(65529),l=r(4718),o=r(91429),a=r(20816);const s=new n.bk;function u(e){return s.on("apply-edits",new WeakRef(e))}function d(e){return s.on("update-moment",new WeakRef(e))}function p(e,t,r=null,i=!1){let n=Promise.withResolvers();return i=null==t||i,s.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:n.promise}),n}const c=Symbol();function y(e){return"object"==typeof e&&!!e&&c in e}function f(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function h(e,t,r){let i=new URL(e).host,n=a.Z3.get(i),l=e=>!e||e===n;return l(t)&&l(r)||t===r}r.d(t,["w6",0,e=>{var t;let r=e,n=class extends r{static{t=c}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:n,result:o}=e,a=t===this.url,s=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),d=f(this),p=f(this)&&h(t,i,this.gdbVersion);if(!a||d&&!p||!s&&!u&&!n)return;let c=o.then(e=>{if(this.lastEditsEventDate=new Date,s&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,l.o8)(e)),e;let r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){let{adds:t,updates:i,deletes:n}=r.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:n?n.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,l.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,l.o8)(e.historicMoment)};return this.emit("edits",o),o}let n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,l.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,l.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,n.historicMoment)&&this.emit("edits",n),n}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));c.catch(()=>{}),this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:r,moment:i}=e,n=t===this.url,l=f(this),o=f(this)&&h(t,r,this.gdbVersion),a=f(this)&&!h(t,this.gdbVersion,null);n&&l&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,a.w5)(e,t)}};return(0,i.Cg)([(0,o.MZ)()],n.prototype,"lastEditsEventDate",void 0),n=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],n),n}])},87718(e,t,r){r.d(t,{F:()=>Z,Y:()=>S});var i,n=r(32198),l=r(91429),o=r(49186),a=r(25482),s=r(93637),u=r(76369),d=r(66552),p=r(4718),c=r(50498),y=r(97552),f=r(79677);const h=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),m=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let g=i=class extends a.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){let{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:l,units:o,distance:a}=this;return new y.A({geometry:(0,p.o8)(r),objectIds:(0,p.o8)(l),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:t,units:o,distance:a,...e})}clone(){let{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:l,units:o,distance:a}=this;return new i({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(l),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:e,units:o,distance:a})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],g.prototype,"where",void 0),(0,n.Cg)([(0,l.MZ)({types:c.yR,json:{write:!0}})],g.prototype,"geometry",void 0),(0,n.Cg)([(0,l.MZ)({type:h.apiValues,json:{name:"spatialRel",read:{reader:h.read},write:{allowNull:!1,writer:h.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],g.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"distance",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],g.prototype,"objectIds",void 0),(0,n.Cg)([(0,l.MZ)({type:m.apiValues,json:{read:m.read,write:{writer:m.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"units",void 0),(0,n.Cg)([(0,l.MZ)({type:f.A,json:{write:!0}})],g.prototype,"timeExtent",void 0),g=i=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureFilter")],g);const v=g;var b;const w={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},M={name:"showExcludedLabels",default:!0};let x=b=class extends a.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){let r=super.write(e,t);if(t?.origin){if(r.filter){let e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new b({filter:null==this.filter?null:this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,l.MZ)({type:v,json:{write:{allowNull:!0,writer(e,t,r,i){let n=e?.write({},i);n&&0!==Object.keys(n).length?(0,s.sM)(r,n,t):(0,s.sM)(r,null,t)}}}})],x.prototype,"filter",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":w,"portal-item":w}}})],x.prototype,"includedEffect",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedLabelsVisible",void 0),x=b=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureEffect")],x);const F={write:{allowNull:!0}},S={type:x,json:{origins:{"web-map":F,"portal-item":F}}},Z=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,l.MZ)(S)],r.prototype,"featureEffect",void 0),r=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.FeatureEffectLayer")],r),r}},32756(e,t,r){r.d(t,{Rr:()=>a});var i=r(32198),n=r(93637),l=r(91429),o=r(91880);function a(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let n=new o.A;return n.read(i,r),[n]}const s={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){let l=e.find(e=>!!e.field);l&&(0,n.sM)(r,[l.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,l.MZ)(s)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,l.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,s])},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),l=r(66552),o=r(25482),a=r(91429);const s=new l.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>p});var i=r(32198),n=r(69540),l=r(25482),o=r(91429),a=r(8631),s=r(29005),u=r(36005),d=r(43937);let p=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],p.prototype,"readDomains",null),(0,i.Cg)([(0,d.K)("domains")],p.prototype,"writeDomains",null),(0,i.Cg)([(0,o.MZ)({type:[s.A],json:{write:!0}})],p.prototype,"templates",void 0),p=(0,i.Cg)([(0,o.$K)("esri.layers.support.FeatureType")],p)},30279(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),l=r(25482),o=r(10107),a=r(64108),s=r(39663);let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,i.Cg)([(0,o.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({types:s.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,i.Cg)([(0,a.$)("esri.layers.support.FieldConfiguration")],u)},46499(e,t,r){r.d(t,{A:()=>F});var i,n,l=r(32198),o=(r(44208),r(66552)),a=r(25482),s=r(4718),u=r(90629),d=r(91429),p=r(90360),c=r(73913),y=r(32730),f=r(77548),h=r(59868),m=r(73838),g=r(33910),v=r(36005),b=r(43937);const w=new o.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function C(e,t,r){return{enabled:!(0,f.TU)(r?.layer)}}function M(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let F=class extends a.o{static{i=y.vK}static{n=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),n=i[3],l=r(t[i[4]],i[5],i[6]);switch(n){case"AND":return e&&l;case"OR":return e||l}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,y.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&M(i))e=new c.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,s.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,s.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,l.Cg)([(0,d.MZ)({type:String,json:{write:!0}})],F.prototype,"name",void 0),(0,l.Cg)([(0,d.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:C}}}}})],F.prototype,"allowOverrun",void 0),(0,l.Cg)([(0,d.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:C}}}}})],F.prototype,"deconflictionStrategy",void 0),(0,l.Cg)([(0,d.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],F.prototype,"labelExpression",void 0),(0,l.Cg)([(0,v.w)("labelExpression")],F.prototype,"readLabelExpression",null),(0,l.Cg)([(0,b.K)("labelExpression")],F.prototype,"writeLabelExpression",null),(0,l.Cg)([(0,d.MZ)({type:c.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return M(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],F.prototype,"labelExpressionInfo",void 0),(0,l.Cg)([(0,b.K)("labelExpressionInfo")],F.prototype,"writeLabelExpressionInfo",null),(0,l.Cg)([(0,d.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],F.prototype,"labelPlacement",void 0),(0,l.Cg)([(0,d.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],F.prototype,"offsetDistance",void 0),(0,l.Cg)([(0,d.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],F.prototype,"labelPosition",void 0),(0,l.Cg)([(0,d.MZ)({type:Number})],F.prototype,"maxScale",void 0),(0,l.Cg)([(0,b.K)("maxScale")],F.prototype,"writeMaxScale",null),(0,l.Cg)([(0,d.MZ)({type:Number})],F.prototype,"minScale",void 0),(0,l.Cg)([(0,b.K)("minScale")],F.prototype,"writeMinScale",null),(0,l.Cg)([(0,d.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],F.prototype,"repeatLabel",void 0),(0,l.Cg)([(0,d.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],F.prototype,"repeatLabelDistance",null),(0,l.Cg)([(0,d.MZ)({types:g.em,json:{types:g.em,origins:{"portal-item":{types:g.em,read:{reader:(0,p.C)({types:g.em})},default:null},"web-scene":{types:g.Rv,read:{reader:(0,p.C)({types:g.Rv})},write:m.oO,default:null}},write:m.oO,default:null}})],F.prototype,"symbol",void 0),(0,l.Cg)([(0,d.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"useCodedValues",void 0),(0,l.Cg)([(0,d.MZ)({type:String,json:{write:!0}})],F.prototype,"where",void 0),F=n=(0,l.Cg)([(0,d.$K)("esri.layers.support.LabelClass")],F)},73913(e,t,r){r.d(t,{A:()=>d});var i,n=r(32198),l=r(25482),o=r(91429),a=r(32730),s=r(36005),u=r(43937);let d=class extends l.o{static{i=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],d.prototype,"expression",void 0),(0,n.Cg)([(0,s.w)("expression",["expression","value"])],d.prototype,"readExpression",null),(0,n.Cg)([(0,u.K)("expression")],d.prototype,"writeExpression",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],d.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],d.prototype,"value",void 0),d=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.LabelExpressionInfo")],d)},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(32198),l=r(66552),o=r(25482),a=r(91429);const s=new l.J({asc:"ascending",desc:"descending"});let u=class extends o.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,a.MZ)({type:s.apiValues,json:{type:s.jsonValues,read:s.read,write:s.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},41560(e,t,r){r.d(t,{Ch:()=>o,mW:()=>l});var i=r(34727),n=r(39516);function l(e,t){return{...t,filterMode:e.mode}}function o(e,t,r){let l=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],d(r)),t[1]=Math.min(t[1],p(i));return t}(e);if(l&&((0,i.gg)(t,l[0])||(0,i.ZH)(r,l[1])))return"";let o=Array.from(a(e,t,r)),s=function(e,t,r){if(0===e.length)return!0;let n=d(e.at(0)?.minScale),l=p(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(l,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],n=e[t+1];if((0,i.ZH)(d(n.minScale),p(r.maxScale)))return!0}return!1}(o,t,r)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return s&&"1=1"!==s?s:""}function*a(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)s(i.minScale,i.maxScale,t,r)&&(yield i)}}function s(e,t,r,n){return e=d(e),r=d(r),t=p(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function d(e){return e||1/0}function p(e){return e||0}},16194(e,t,r){r.d(t,{QX:()=>s,sS:()=>d,xY:()=>u});var i=r(4718),n=r(30279),l=r(39663),o=r(30524),a=r(41227);function s(e){let{popupTemplate:t,fieldsIndex:r}=e,i=t?.fieldInfos;if(!i?.length||!r)return;let o=[];for(let e of i){let{fieldName:t,label:i}=e,a=r.get(t);if(!a)continue;let s=i&&i!==a.alias?i:null,u=(0,l.iu)(e,a);(s||u)&&o.push(new n.A({name:a.name,alias:s,fieldFormat:u}))}return o.length?o:null}function u(e){let{fields:t}=e;if(!t?.length)return;let r=[];for(let e of t){let t=(0,l.qH)(e)?(0,l.$P)(e):null;t&&r.push(new n.A({name:e.name,fieldFormat:t}))}return r.length?r:null}function d(e,t){let{popupTemplate:r,fieldsIndex:n}=e;if(!r||!n)return;let o=function(e,t,r){t??=[],r=(0,i.o8)(r)??[];let n=!1,o=new Map;for(let r of t){let t=e.fieldsIndex.get(r.name);t&&o.set(t.name,r)}for(let t of r){let r=e.fieldsIndex.get(t.fieldName);if(!r)continue;let i=o.get(r.name);t.label=i?.alias||r.alias,t.format=(0,l.qH)(r)&&i?.fieldFormat?(0,l.PK)(i.fieldFormat,r):null,n=!0,o.delete(r.name)}for(let t of o.values()){let i=p(e,t);i&&(r.push(i),n=!0)}return n?r:null}(e,t,r.fieldInfos);if(!o)return;let a=r.clone();return a.fieldInfos=o,a}function p(e,t){let{name:r,alias:i,fieldFormat:n}=t,s=e.fieldsIndex.get(r);if(!s||!i&&!n)return;let u=i||s.alias,d=(0,l.qH)(s)&&n?(0,l.PK)(n,s):null;return new a.A({fieldName:s.name,label:u,format:d,visible:!1,isEditable:(0,o.R$)(s,e)})}},39383(e,t,r){r.d(t,{w:()=>s,z:()=>p});var i=r(49186),n=r(53966),l=r(46499);const o=()=>n.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function s(e,t,r){return e?e.map(e=>{let i=new l.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],d={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function p(e,t){let r=[];for(let n of e){let e=n.labelPlacement,l=d[t];if(!n.symbol)return o().warn("No ILabelClass symbol specified."),[];if(!l)return o().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(l.includes(e))r.push(n);else{let i=l[0];e&&o().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let a=n.clone();a.labelPlacement=i,r.push(a)}}return r}},96520(e,t,r){r.d(t,{u:()=>s});var i=r(86211),n=r(21325),l=r(52006);function o(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e)t.length>2&&(t[2]*=r)}function a(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e){let e=(0,l.yP)(t);e.length>2&&(e[2]*=r)}}function s(e,t,r){if(!e&&!t||!r)return;let n=(0,i.G9)(r);u(e,r,n),u(t,r,n)}function u(e,t,r){if(e)for(let i of e)d(i.geometry,t,r)}function d(e,t,r){if(!e?.spatialReference||(0,n.aI)(e.spatialReference,t))return;let l=(0,i.G9)(e.spatialReference)/r;if(1!==l)if("x"in e)null!=e.z&&(e.z*=l);else if("curveRings"in e)a(e,e.curveRings,l);else if("curvePaths"in e)a(e,e.curvePaths,l);else if("rings"in e)o(e,e.rings,l);else if("paths"in e)o(e,e.paths,l);else if("points"in e&&(null==e.hasM||e.hasZ))for(let t of e.points)t.length>2&&(t[2]*=l)}},9760(e,t,r){r.d(t,{A:()=>d});var i=r(32198),n=r(66552),l=r(25482),o=r(91429),a=r(93223);const s=new n.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new n.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends l.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i.Cg)([(0,a.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{read:s.read,write:s.write}})],d.prototype,"classificationMethod",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"normalizationType",void 0),(0,i.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,i.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,i.Cg)([(0,o.$K)("esri.rest.support.ClassBreaksDefinition")],d)},22671(e,t,r){r.d(t,{A:()=>v});var i,n=r(32198),l=r(52106),o=r(66552),a=r(25482),s=r(4718),u=r(91429),d=r(16930),p=r(60408),c=r(65864),y=r(50498),f=r(20437),h=r(36005),m=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);let{features:n}=this;if(n)for(let e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,c.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=d.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,s.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,n]}=e,l=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=l.length;e<t;e++)o?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,n],scale:[l,o]}=r,a=null,s=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;s=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+i,e=>n-e*o,a,s);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=d.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){let l=e[t],o=r.fromJSON(l),a=l.geometry?.spatialReference;null!=o.geometry&&!a&&(o.geometry.spatialReference=i);let s=l.aggregateGeometries,u=o.aggregateGeometries;if(s&&null!=u)for(let e in u){let t=u[e],r=s[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}n.push(o)}return n}_quantizePoints(e,t,r){let i,n,l=[];for(let o=0,a=e.length;o<a;o++){let a=e[o];if(o>0){let e=t(a[0]),o=r(a[1]);(e!==i||o!==n)&&(l.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),l.push([i,n])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,p.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],o=this._quantizePoints(l,t,r);o&&n.push(o)}return n.length>0?((0,p.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,o,a=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,i=a.length;e<i;e++){let i=a[e];for(let e=0,n=i.length;e<n;e++){let n=i[e];e>0?(l+=n[0],o+=n[1]):(l=n[0],o=n[1]),n[0]=t(l),n[1]=r(o)}}if(i&&n)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{let l,o,a=e.points;for(let e=0,i=a.length;e<i;e++){let i=a[e];e>0?(l+=i[0],o+=i[1]):(l=i[0],o=i[1]),i[0]=t(l),i[1]=r(o)}if(i&&n)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=i(t[2])}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[l.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n.Cg)([(0,h.w)("features")],v.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[f.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,h.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:d.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},84892(e,t,r){r.d(t,{t:()=>l});var i=r(53966);function n(e,t){return Number(e.toFixed(t))}function l(e,t){let{normalizationTotal:r}=e;return{classBreaks:o(e,t),normalizationTotal:r}}function o(e,t){let r=e.definition,{classificationMethod:i,normalizationType:l,definedInterval:o}=r,u=r.breakCount??1,d=[],p=e.values;if(0===p.length)return[];p=p.sort((e,t)=>e-t);let[c,y]=t??[p.at(0),p.at(-1)];if("equal-interval"===i)if(p.length>=u){let e=(y-c)/u,t=c;for(let r=1;r<u;r++){let i=n(c+r*e,6);d.push({minValue:t,maxValue:i,label:a(t,i,l)}),t=i}d.push({minValue:t,maxValue:y,label:a(t,y,l)})}else p.forEach(e=>{d.push({minValue:e,maxValue:e,label:a(e,e,l)})});else if("natural-breaks"===i){let t=function(e){let t=[],r=[],i=Number.MIN_VALUE,n=1,l=-1;for(let o=0;o<e.length;o++){let a=e[o];a===i?(n++,r[l]=n):null!==a&&(t.push(a),i=a,n=1,r.push(n),l++)}return{uniqueValues:t,valueFrequency:r}}(p),r=e.valueFrequency||t.valueFrequency,i=s(t.uniqueValues,r,u),o=c;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){let r=n(t.uniqueValues[i[e]],6);d.push({minValue:o,maxValue:r,label:a(o,r,l)}),o=r}d.push({minValue:o,maxValue:y,label:a(o,y,l)})}else if("quantile"===i)if(p.length>=u&&c!==y){let e=c,t=Math.ceil(p.length/u),r=0;for(let i=1;i<u;i++){let n=t+r-1;n>p.length&&(n=p.length-1),n<0&&(n=0),d.push({minValue:e,maxValue:p[n],label:a(e,p[n],l)}),e=p[n],r+=t,t=Math.ceil((p.length-r)/(u-i))}d.push({minValue:e,maxValue:y,label:a(e,y,l)})}else{let e=-1;for(let t=0;t<p.length;t++){let r=p[t];r!==e&&(e=r,d.push({minValue:e,maxValue:r,label:a(e,r,l)}),e=r)}}else if("standard-deviation"===i){let e=function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/=e.length,t}(p),t=function(e,t){let r=0;for(let i=0;i<e.length;i++){let n=e[i];r+=(n-t)*(n-t)}return r/=e.length,Math.sqrt(r)}(p,e);if(0===t)d.push({minValue:p[0],maxValue:p[0],label:a(p[0],p[0],l)});else{let r=function(e,t,r,i,n){let l=Math.max(i-e,t-i)/n/r;return l=l>=1?1:l>=.5?.5:.25,l}(c,y,u,e,t)*t,i=0,o=c;for(let t=u;t>=1;t--){let s=n(e-(t-.5)*r,6);d.push({minValue:o,maxValue:s,label:a(o,s,l)}),o=s,i++}let s=n(e+.5*r,6);d.push({minValue:o,maxValue:s,label:a(o,s,l)}),o=s,i++;for(let t=1;t<=u;t++)s=i===2*u?y:n(e+(t+.5)*r,6),d.push({minValue:o,maxValue:s,label:a(o,s,l)}),o=s,i++}}else if("defined-interval"===i){if(!o)return d;let[e,r]=t??[p.at(0),p.at(-1)],i=Math.ceil((r-e)/o),s=e;for(let t=1;t<i;t++){let r=n(e+t*o,6);d.push({minValue:s,maxValue:r,label:a(s,r,l)}),s=r}d.push({minValue:s,maxValue:r,label:a(s,r,l)})}return d}function a(e,t,r){let i=null;return i=e===t?r&&"percent-of-total"===r?e+"%":e.toString():r&&"percent-of-total"===r?e+"% - "+t+"%":e+" - "+t,i}function s(e,t,r){let i=e.length,n=[];r>i&&(r=i);for(let e=0;e<r;e++)n.push(Math.round(e*i/r-1));n.push(i-1);let l=u(n,e,t,r);return function(e,t,r,i,n,l){let o=0,a=0,s=0,u=0,p=!0;for(let c=0;c<2&&p;c++){0===c&&(p=!1);for(let c=0;c<l-1;c++)for(;r[c+1]+1!==r[c+2];){r[c+1]=r[c+1]+1;let l=d(c,r,i,n);s=l.sbMean,o=l.sbSdcm;let y=d(c+1,r,i,n);if(u=y.sbMean,a=y.sbSdcm,!(o+a<t[c]+t[c+1])){r[c+1]=r[c+1]-1;break}t[c]=o,t[c+1]=a,e[c]=s,e[c+1]=u,p=!0}for(let c=l-1;c>0;c--)for(;r[c]!==r[c-1]+1;){r[c]=r[c]-1;let l=d(c-1,r,i,n);s=l.sbMean,o=l.sbSdcm;let y=d(c,r,i,n);if(u=y.sbMean,a=y.sbSdcm,!(o+a<t[c-1]+t[c])){r[c]=r[c]+1;break}t[c-1]=o,t[c]=a,e[c-1]=s,e[c]=u,p=!0}}return p}(l.mean,l.sdcm,n,e,t,r)&&(l=u(n,e,t,r)),n}function u(e,t,r,i){let n=[],l=[],o=[],a=0,s=[],u=[];for(let n=0;n<i;n++){let i=d(n,e,t,r);s.push(i.sbMean),u.push(i.sbSdcm),a+=u[n]}let p,c=a,y=!0;for(;y||a<c;){y=!1,n=[];for(let t=0;t<i;t++)n.push(e[t]);for(let r=0;r<i;r++)for(let n=e[r]+1;n<=e[r+1];n++)if(p=t[n],r>0&&n!==e[r+1]&&Math.abs(p-s[r])>Math.abs(p-s[r-1]))e[r]=n;else if(r<i-1&&e[r]!==n-1&&Math.abs(p-s[r])>Math.abs(p-s[r+1])){e[r+1]=n-1;break}c=a,a=0,l=[],o=[];for(let n=0;n<i;n++){l.push(s[n]),o.push(u[n]);let i=d(n,e,t,r);s[n]=i.sbMean,u[n]=i.sbSdcm,a+=u[n]}}if(a>c){for(let t=0;t<i;t++)e[t]=n[t],s[t]=l[t],u[t]=o[t];a=c}return{mean:s,sdcm:u}}function d(e,t,r,n){let l=0,o=0;for(let i=t[e]+1;i<=t[e+1];i++){let e=n[i];l+=r[i]*e,o+=e}o<=0&&i.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");let a=l/o,s=0;for(let i=t[e]+1;i<=t[e+1];i++)s+=n[i]*(r[i]-a)**2;return{sbMean:a,sbSdcm:s}}},1873(e,t,r){r.d(t,{$y:()=>P,Ak:()=>R,FM:()=>f,G_:()=>c,Rw:()=>A,Vb:()=>d,b3:()=>E,gJ:()=>u,jM:()=>O,lv:()=>j,oZ:()=>I,qg:()=>y,sU:()=>V,z9:()=>p,zS:()=>L});var i=r(9760),n=r(84892);const l=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,o=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),a=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),s=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function d(e){let t=null!=e.normalizationField||null!=e.normalizationType,r=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!r&&!i}function p(e){let{outStatisticTypes:t}=e,r=e.returnDistinct?[...new Set(e.values)]:e.values,i=r.filter(e=>null!=e).sort(),n=i.length,l={count:n,min:i[0],max:i[n-1]};return e.supportsNullCount&&(l.nullcount=r.length-n),e.percentileParams&&(!t?.include?.length||t.include.includes("median"))&&(!t?.exclude?.length||!t.exclude.includes("median"))&&(l.median=y(r,e.percentileParams)),l}function c(e){let{values:t,useSampleStdDev:r,supportsNullCount:i,outStatisticTypes:n}=e,l=1/0,o=-1/0,a=null,s=null,u=null,d=null,p=0,c=null==e.minValue?-1/0:e.minValue,f=null==e.maxValue?1/0:e.maxValue;for(let e of t)Number.isFinite(e)?e>=c&&e<=f&&(a=null===a?e:a+e,l=Math.min(l,e),o=Math.max(o,e),p++):"string"==typeof e&&p++;if(p&&null!=a){s=a/p;let e=0;for(let r of t)Number.isFinite(r)&&r>=c&&r<=f&&(e+=(r-s)**2);d=r?p>1?e/(p-1):0:p>0?e/p:0,u=Math.sqrt(d)}else l=null,o=null;let h={avg:s,count:p,max:o,min:l,stddev:u,sum:a,variance:d};return i&&(h.nullcount=t.length-p),e.percentileParams&&(!n?.include?.length||n.include.includes("median"))&&(!n?.exclude?.length||!n.exclude.includes("median"))&&(h.median=y(t,e.percentileParams)),h}function y(e,t){let{fieldType:r,value:i,orderBy:n,isDiscrete:l}=t,o=f(r,"desc"===n,"case-insensitive");if(e=[...e].filter(e=>null!=e).sort((e,t)=>o(e,t)),0===e.length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];let a=(e.length-1)*i,s=Math.floor(a),u=s+1,d=a%1,p=e[s],c=e[u];return u>=e.length||l||"string"==typeof p||"string"==typeof c?p:p*(1-d)+c*d}function f(e,t,r="case-sensitive"){if(e){if(o.has(e))return S(t);if(a.has(e))return M(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?b:v}(t);let i=M(t,"case-sensitive"===r);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(Z(e),Z(t))}let i=t?1:-1,n=S(t),l=M(t,"case-sensitive"===r),s=g(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?n(e,t):"string"==typeof e&&"string"==typeof t?l(e,t):s(e,t)??i}const h=(e,t)=>null==e?null==t?0:1:null==t?-1:null,m=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function g(e){return e?h:m}const v=(e,t)=>m(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),b=(e,t)=>h(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),w=(e,t)=>m(e,t)??(e===t?0:e<t?-1:1),C=(e,t)=>h(e,t)??(e===t?0:e<t?1:-1);function M(e,t){if(t)return e?C:w;let r=g(e);return e?(e,t)=>r(e,t)??((e=e.toUpperCase())>(t=t.toUpperCase())?-1:+(e<t)):(e,t)=>r(e,t)??((e=e.toUpperCase())<(t=t.toUpperCase())?-1:+(e>t))}const x=(e,t)=>h(e,t)??t-e,F=(e,t)=>m(e,t)??e-t;function S(e){return e?x:F}function Z(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function I(e,t,r){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:s.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return r&&["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e}function E(e){let t={};for(let r of e)(null==r||"string"==typeof r&&""===r.trim())&&(r=null),null==t[r]?t[r]={count:1,data:r}:t[r].count++;return{count:t}}function T(e){return"coded-value"===e?.type?e.codedValues.map(e=>e.code):[]}function j(e,t,r,i){let n=e.count,l=[];if(r&&t){let e=[],r=T(t[0]);for(let n of r)if(t[1]){let r=T(t[1]);for(let l of r)if(t[2]){let r=T(t[2]);for(let t of r)e.push(`${u(n)}${i}${u(l)}${i}${u(t)}`)}else e.push(`${u(n)}${i}${u(l)}`)}else e.push(n);for(let t of e)n.hasOwnProperty(t)||(n[t]={data:t,count:0})}for(let e in n){let t=n[e];l.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:l}}function L(e,t,r,i){let n=null;switch(t){case"log":0!==e&&(n=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(n=e/i*100);break;case"field":Number.isFinite(r)&&0!==r&&(n=e/r);break;case"natural-log":e>0&&(n=Math.log(e));break;case"square-root":e>0&&(n=e**.5)}return n}function A(e,t,r){let l=function(e){let{breakCount:t,field:r,normalizationField:n,normalizationType:l}=e,o=e.classificationMethod||"equal-interval",a="standard-deviation"===o?e.standardDeviationInterval||1:void 0,s="defined-interval"===o?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:r,classificationMethod:o,normalizationField:"field"===l?n:void 0,normalizationType:l,standardDeviationInterval:a,definedInterval:s})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,r){let i=t??-1/0,n=r??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=n)}(e,t.minValue,t.maxValue),(0,n.t)({definition:l,values:e,normalizationTotal:t.normalizationTotal},r)}function O(e,t){let r=e.classBreaks,i=r.length,n=r[0]?.minValue,o=r[i-1]?.maxValue,a="standard-deviation"===t,s=l;return r=r.map(e=>{let t=e.label,r={minValue:e.minValue,maxValue:e.maxValue,label:t};if(a&&t){let e=t.match(s)?.map(e=>+e.trim())??[];2===e.length?(r.minStdDev=e[0],r.maxStdDev=e[1],e[0]<0&&e[1]>0&&(r.hasAvg=!0)):1===e.length&&(t.includes("<")?(r.minStdDev=null,r.maxStdDev=e[0]):t.includes(">")&&(r.minStdDev=e[0],r.maxStdDev=null))}return r}),{minValue:n,maxValue:o,classBreakInfos:r,normalizationTotal:e.normalizationTotal}}function P(e,t){let r=V(e,t);if(null==r.min&&null==r.max)return{bins:[],minValue:r.min,maxValue:r.max,normalizationTotal:t.normalizationTotal};let i=r.intervals,n=r.min??0,l=r.max??0,o=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(let t of e)if(null!=t&&t>=n&&t<=l){let e=R(i,t);e>-1&&o[e].count++}return{bins:o,minValue:n,maxValue:l,normalizationTotal:t.normalizationTotal}}function V(e,t,r=!1){let{field:i,classificationMethod:n,standardDeviationInterval:l,definedInterval:o,normalizationType:a,normalizationField:s,normalizationTotal:u,minValue:p,maxValue:y}=t,f=t.numBins||10,h=null,m=null,g=null;if(n&&"equal-interval"!==n||a){let{classBreaks:t}=A(e,{field:i,normalizationType:a,normalizationField:s,normalizationTotal:u,classificationMethod:n,standardDeviationInterval:l,definedInterval:o,minValue:p,maxValue:y,numClasses:f},null!=p&&null!=y?[p,y]:void 0);h=t[0]?.minValue,m=t[t.length-1]?.maxValue,g=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=p&&null!=y)h=p,m=y;else{let t=c({values:e,minValue:p,maxValue:y,useSampleStdDev:!a,supportsNullCount:d({normalizationType:a,normalizationField:s,minValue:p,maxValue:y})});h=t.min??null,m=t.max??null}g=function(e,t,r){let i,n=(t-e)/r,l=[],o=e;for(let e=1;e<=r;e++)i=o+n,i=Number(i.toFixed(16)),l.push([o,e===r?t:i]),o=i;return l}(h??0,m??0,f)}if(r&&g.length){let e=g.at(-1)[1];g.push([e,e])}return{min:h,max:m,intervals:g}}function R(e,t){let r=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){r=i;break}return r}},20816(e,t,r){r.d(t,{We:()=>a,ZJ:()=>s,w5:()=>u});var i=r(56507);const n=(0,r(13069).vD)(),l=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;let n=new URL(e).host,o=l.get(n);if(!o){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function s(e,t,i=!1){if(!e||!t)return!0;let l=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(l)?.entries();if(a)for(let[e,o]of a)if(o.name===t){let t=!o.stack?.hasForwardEdits();if(!t&&i){let[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(()=>r(32186)),r.e(2558).then(()=>r(32558))]),a=await t(l,e,new i({sessionId:n,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function u(e,t){if(!e)return!1;let r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(let[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,n,"Z3",0,l])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,4500,7067,8548],{19334(e,t,r){r.d(t,{e:()=>o});var i=r(54639),n=r(14112);class l{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function o(e){if(null==e)return null;switch(e.type){case"point":if((0,n.e6)(e))return null;break;case"polygon":if((0,n.Wq)(e))return null;break;case"polyline":if((0,n.IY)(e))return null;break;case"multipoint":if((0,n.DG)(e))return null;break;case"extent":if((0,n.As)(e))return null;break;default:return null}let t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new l(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>d});var i=r(54639),n=r(14112),l=r(16930),o=r(60408),a=r(65864);class s{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,a.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if("object"!=typeof e||!e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof l.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new l.A,r.read(e.spatialReference))),null==r)throw Error("Spatial reference required");return(0,o.fT)(e)?d("point",e,r):(0,o.Rg)(e)?d("polyline",e,r):(0,o.Bi)(e)?d("polygon",e,r):(0,o.U9)(e)?d("multipoint",e,r):(0,o.ZC)(e)?d("extent",e,r):null}function d(e,t,r){if(null==t)return null;let l=!1,o=!1;switch(e){case"point":if((0,n.e6)(t))return null;l=void 0!==t.z,o=void 0!==t.m;break;case"polygon":if((0,n.Wq)(t))return null;l=!0===t.hasZ,o=!0===t.hasM;break;case"polyline":if((0,n.IY)(t))return null;l=!0===t.hasZ,o=!0===t.hasM;break;case"multipoint":if((0,n.DG)(t))return null;l=!0===t.hasZ,o=!0===t.hasM;break;case"extent":if((0,n.As)(t))return null;l=null!=t.zmin&&null!=t.zmax,o=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,l,o,new s(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function n(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function l(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function o(e){return 0===e.points.length}function a(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>a,DG:()=>o,IY:()=>l,Wq:()=>n,e6:()=>i})},83508(e,t,r){r.r(t),r.d(t,{default:()=>we});var i=r(32198),n=r(56507),l=r(7762),o=r(49186),a=r(91869),s=r(25728),u=r(17676),d=r(84952),p=r(91429),c=r(4146),y=r(36563),f=r(66344),h=r(32587),m=r(36708),g=r(44794),v=r(78888),b=r(63074),w=r(25036),C=r(10873),M=r(91880),x=r(1873);let F=class extends((0,w.j)((0,b.dM)((0,s.M)(c.A)))){constructor(e){super(e),this._layerCache=new f.q(20,e=>e.destroy()),this._oidToReference=new h.A,this._layerToReference=new Map,this.legendEnabled=!0,this.layers=new l.A,this.maximumVisibleSublayers=10,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.title="Layers in view",this.type="catalog-dynamic-group",this.visible=!0}initialize(){this.addHandles([this.layers.on("after-add",({item:e})=>{e.parent=this}),this.layers.on("after-remove",({item:e})=>{e.parent=null}),(0,m.wB)(()=>this._orderBy,()=>{this._updateLayerSortValues(),this._sortAllLayers()})])}load(e){return this.addResolvingPromise(this.parent.load()),Promise.resolve(this)}destroy(){this._layerCache.destroy(),this._oidToReference.clear(),this._layerToReference.clear()}get _orderBy(){return this.parent?this.parent.orderBy?.find(e=>!e.valueExpression&&e.field)??new M.A({field:this.parent.objectIdField}):null}get _referenceComparator(){let e=this._orderBy;if(!this.parent||!e)return()=>0;let t=this.parent.fieldsIndex.get(e.field),r=(0,x.FM)(t?.toJSON().type,"descending"===e.order,"case-sensitive"),i=(0,x.FM)("esriFieldTypeOID","descending"===e.order);return(e,t)=>r(t.sortValue,e.sortValue)||i(t.objectId,e.objectId)}get fullExtent(){return this.parent?.fullExtent??null}get updating(){return(0,a.Bs)(this._oidToReference,({pending:e})=>null!=e)}acquireLayer(e){if(this.destroyed)return(0,y.hA)();let t=this._getLayerReference(e);return t.count++,(0,y.hA)(()=>{t.count--,t.count||this._destroyLayerReference(t)})}_getLayerReference(e){let t=e.getObjectId();return(0,a.tE)(this._oidToReference,t,()=>{let t=e.getObjectId(),r=`${t}`,i=e.getAttribute(this.parent.itemSourceField),n=new S(e,t,i),l=this._layerCache.pop(r);return l?(this._addLayer(n,l),n):(n.pending=this.parent.createLayerFromFootprint(e).then(e=>{n.count?this._addLayer(n,e):(!this.destroyed&&!this._layerCache.get(r)&&this._layerCache.put(r,e),n.layer=null)}).catch(()=>{}).finally(()=>{n.pending=null}),n)})}_destroyLayerReference(e){e.layer&&=(this._layerToReference.delete(e.layer),this.layers.remove(e.layer),this.destroyed?e.layer.destroy():this._layerCache.put(`${e.objectId}`,e.layer),null),this._oidToReference.delete(e.objectId)}_addLayer(e,t){e.layer=t,t.persistenceEnabled=!1,this._layerToReference.set(t,e),this._updateLayerSortValue(e),this.layers.add(t),this._sortAllLayers()}_updateLayerSortValues(){for(let e of this._layerToReference.values())this._updateLayerSortValue(e)}_updateLayerSortValue(e){this._orderBy&&(e.sortValue=e.footprint.getAttribute(this._orderBy.field))}_sortAllLayers(){this.layers.sort((e,t)=>this._referenceComparator(this._layerToReference.get(e),this._layerToReference.get(t)))}};(0,i.Cg)([(0,p.MZ)()],F.prototype,"_orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"_referenceComparator",null),(0,i.Cg)([(0,p.MZ)(C.fV)],F.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"],json:{write:!0}})],F.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],F.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:v.jz,range:{min:0,max:50},json:{write:!0,default:10}})],F.prototype,"maximumVisibleSublayers",void 0),(0,i.Cg)([(0,p.MZ)(C.ke)],F.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({clonable:!1})],F.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],F.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],F.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],F.prototype,"updating",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],F.prototype,"visible",void 0),F=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogDynamicGroupLayer")],F);class S{constructor(e,t,r){this.footprint=e,this.objectId=t,this.itemSource=r,this.count=0,this.layer=null,this.sortValue=void 0,this._pending=(0,g.v)(null)}get pending(){return this._pending.value}set pending(e){this._pending.value=e}}var Z=r(37838),I=r(4718),E=r(78247),T=r(41910),j=r(55156),L=r(60950),A=r(89808),O=r(99959);const P=Symbol("isCatalogGraphicOrigin");var V;class R extends O.A{get[(V=P,L.ym)](){return this.layer}get[j.e](){return this.layer}get[A.Q](){return this.layer}get[T.e7](){return this.layer}constructor(e){super(),this[V]=!0,this.type="catalog",this.layer=e}get id(){return this.layer.id}}var _=r(87718),N=r(30279),D=r(16194),q=r(30524),z=r(46499),k=r(39383),B=r(96576),G=r(41214),U=r(30291),$=r(94985),J=r(43937);let K=class extends((0,w.j)((0,_.F)((0,b.dM)((0,s.M)(c.A))))){constructor(e){super(e),this.attributeTableTemplate=null,this.charts=null,this.editingEnabled=!0,this.elevationInfo=null,this.formTemplate=null,this.graphicOrigin=new R(this),this.labelingInfo=null,this.labelsVisible=!0,this.legendEnabled=!0,this.maxScale=0,this.minScale=0,this.opacity=1,this.parent=null,this.persistenceEnabled=!0,this.popupEnabled=!0,this.popupTemplate=null,this.title="Footprints",this.type="catalog-footprint",this.visible=!0}load(e){return this.addResolvingPromise(this._doLoad(e)),Promise.resolve(this)}async _doLoad(e){await this.parent.load(e),(0,q.yp)(this.renderer,this.fieldsIndex),this.addHandles([this.parent.on("apply-edits",e=>this.emit("apply-edits",e)),this.parent.on("edits",e=>this.emit("edits",e)),this.parent.on("refresh",e=>this.emit("refresh",e))])}get apiKey(){return this.parent?.apiKey}get capabilities(){return this.parent?.capabilities}get customParameters(){return this.parent?.customParameters}get dateFieldsTimeZone(){return this.parent?.dateFieldsTimeZone??null}get datesInUnknownTimezone(){return this.parent?.datesInUnknownTimezone??!1}get definitionExpression(){return this.parent?.definitionExpression}get editingInfo(){return this.parent?.editingInfo}get effectiveCapabilities(){return this.parent?.effectiveCapabilities}get createQueryVersion(){return this.parent?.createQueryVersion}get defaultPopupTemplate(){return this.createPopupTemplate()}get displayField(){return this.parent?.displayField}get displayFilterEnabled(){return this.parent?.displayFilterEnabled??!0}get displayFilterInfo(){return this.parent?.displayFilterInfo??null}get effectiveEditingEnabled(){return!1}set fieldConfigurations(e){if(this._override("fieldConfigurations",e),!this.parent?.loaded)return;let t=(0,D.sS)(this,e);t&&this._set("popupTemplate",t)}get fieldConfigurations(){return this._isOverridden("fieldConfigurations")?this._get("fieldConfigurations"):(0,D.QX)(this)||null}get fields(){return this.parent?.fields}get fieldsIndex(){return this.parent?.fieldsIndex}get fullExtent(){return this.parent?.fullExtent}get geometryFieldsInfo(){return this.parent?.geometryFieldsInfo}get geometryType(){return this.parent?.geometryType}get globalIdField(){return this.parent?.globalIdField}get hasM(){return this.parent?.hasM??!1}get hasZ(){return this.parent?.hasZ??!1}get objectIdField(){return this.parent?.objectIdField}get orderBy(){return this.parent?.orderBy??null}get outFields(){return this.parent?.outFields}get parsedUrl(){return this.parent?.parsedUrl??null}writePopupTemplate(e,t,r,i){e&&(t[r]=e.toJSON({...i,writeFieldFormat:!0}))}get preferredTimeZone(){return this.parent?.preferredTimeZone??null}set renderer(e){(0,q.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):function(){let e=new $.A({style:"solid",color:[0,0,0,0],outline:{style:"solid",color:[96,96,96,.75],width:.75}});return new B.A({symbol:e})}()}get returnM(){return this.parent?.returnM}get returnZ(){return this.parent?.returnZ}get source(){return this.parent?.source}get timeExtent(){return this.parent?.timeExtent}get timeInfo(){return this.parent?.timeInfo}get timeOffset(){return this.parent?.timeOffset}get typeIdField(){return this.parent?.typeIdField}get types(){return this.parent?.types}get useViewTime(){return this.parent?.useViewTime??!0}get version(){return this.parent?.version}async applyEdits(e,t){return await this.load(),this.parent.applyEdits(e,t)}createFieldConfigurations(){return(0,D.xY)(this)}createPopupTemplate(e){let t={fields:this.fields,objectIdField:this.objectIdField,title:this.title};return(0,U.tn)(t,e)}createQuery(){return this.parent?.createQuery()}getField(e){return this.parent?.getField(e)}getFieldAlias(e){let t=this.getField(e);if(t)return this.getFieldConfiguration(t.name)?.alias||t.alias}getFieldConfiguration(e){return e=e.toLowerCase(),this.fieldConfigurations?.find(t=>t.name.toLowerCase()===e)}getFieldDomain(e,t){return this.parent?.getFieldDomain(e,t)}async queryExtent(e,t){return await this.load(),this.parent.queryExtent(e,t)}async queryFeatures(e,t){return await this.load(),this.parent.queryFeatures(e,t)}async queryFeatureCount(e,t){return await this.load(),this.parent.queryFeatureCount(e,t)}async queryObjectIds(e,t){return await this.load(),this.parent.queryObjectIds(e,t)}async queryAttributeBins(e,t){return await this.load(),this.parent.queryAttributeBins(e,t)}};(0,i.Cg)([(0,p.MZ)(C.zQ)],K.prototype,"attributeTableTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"apiKey",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"capabilities",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"customParameters",null),(0,i.Cg)([(0,p.MZ)()],K.prototype,"dateFieldsTimeZone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"datesInUnknownTimezone",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"definitionExpression",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"editingInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"effectiveCapabilities",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],K.prototype,"charts",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"displayField",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],K.prototype,"editingEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)((()=>{let e=(0,I.o8)(C.Yj);return e.json.origins["web-map"]={read:!1,write:!1},e})())],K.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:[N.A],json:{name:"layerDefinition.fieldConfigurations",write:{overridePolicy(e,t){return{enabled:!0,ignoreOrigin:this.originIdOf(t)<3}}}}})],K.prototype,"fieldConfigurations",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"fields",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"fieldsIndex",null),(0,i.Cg)([(0,p.MZ)({type:E.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],K.prototype,"formTemplate",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"fullExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"geometryFieldsInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"geometryType",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"globalIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0,clonable:!1})],K.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"hasM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"hasZ",null),(0,i.Cg)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0,isRequired:!0}}})],K.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({type:[z.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:k.w,write:!0}})],K.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,p.MZ)(C.kF)],K.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,p.MZ)(C.fV)],K.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide"],json:{write:!0}})],K.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)((()=>{let e=(0,I.o8)(C.hG);return e.json.origins.service.read=!1,e})())],K.prototype,"maxScale",void 0),(0,i.Cg)([(0,p.MZ)((()=>{let e=(0,I.o8)(C.hn);return e.json.origins.service.read=!1,e})())],K.prototype,"minScale",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"objectIdField",null),(0,i.Cg)([(0,p.MZ)(C.ke)],K.prototype,"opacity",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"orderBy",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"outFields",null),(0,i.Cg)([(0,p.MZ)({clonable:!1})],K.prototype,"parent",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"parsedUrl",null),(0,i.Cg)([(0,p.MZ)(C.M6)],K.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,p.MZ)({type:Z.A,json:{name:"popupInfo",write:!0}})],K.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,J.K)("popupTemplate")],K.prototype,"writePopupTemplate",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"preferredTimeZone",null),(0,i.Cg)([(0,p.MZ)({types:G.Hg,json:{origins:{"web-scene":{types:G.XJ}},name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(e,t){return{ignoreOrigin:this.originIdOf(t)<3}}}}})],K.prototype,"renderer",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"returnM",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"returnZ",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"source",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"timeExtent",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"timeInfo",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"timeOffset",null),(0,i.Cg)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],K.prototype,"title",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],K.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"typeIdField",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"types",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],K.prototype,"useViewTime",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],K.prototype,"visible",void 0),K=(0,i.Cg)([(0,p.$K)("esri.layers.catalog.CatalogFootprintLayer")],K);var H=r(65515),Q=r(52136),W=r(18768),Y=r(69208),X=r(6455),ee=r(47685),te=r(10086),re=r(99644),ie=r(34287),ne=r(32756),le=r(8303),oe=r(54310),ae=r(82935),se=r(15426),ue=r(33143),de=r(17036),pe=r(91908),ce=r(20655),ye=r(80812),fe=r(39131),he=r(97552);const me=(0,de.p)();function ge(e,t,r,i){let n=e.write({},i);(function(e){if(null==e)return!0;let t=Object.keys(e);return!t.length||1===t.length&&"id"===t[0]})(n)||(t[r]=n)}let ve=class extends((0,re.z)((0,X.FJ)((0,te.j)((0,ee.w6)((0,b.dM)((0,ne.fY)((0,ae.e)((0,w.j)((0,oe.J)((0,W.b)((0,ie.q)((0,le.A)((0,s.M)((0,Y.d)((0,Q.p)(c.A)))))))))))))))){constructor(e){super(e),this.legendEnabled=!0,this._portals=new Map,this._layerToFootprint=new WeakMap,this.drawOrderField="cd_draworder",this.dynamicGroupLayer=new F({parent:this}),this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.footprintLayer=new K({parent:this}),this.itemNameField="cd_itemname",this.itemSourceField="cd_itemsource",this.itemTypeField="cd_itemtype",this.layers=new l.A([this.dynamicGroupLayer,this.footprintLayer]),this.maxScaleField="cd_maxscale",this.minScaleField="cd_minscale",this.orderBy=null,this.outFields=null,this.supportedPortalItemTypes=["Feature Service"],this.supportedSourceTypes=new Set(["Catalog Layer"]),this.source=new H.default({layer:this,supportedSourceTypes:this.supportedSourceTypes}),this.type="catalog",this.typeIdField=null,this.types=null}load(e){let t=null==e?null:e.signal,r=this.loadFromPortal({supportedTypes:this.supportedPortalItemTypes},e).catch(u.QP).then(async()=>{let{url:e,source:r}=this;if(!e)throw new o.A("catalog-layer:missing-url","Catalog layer must be created with a url");if(null==this.layerId){let r=await this._fetchFirstValidLayerId(t);if(null==r)throw new o.A("catalog-layer:missing-layerId","There is no Catalog Layer in the service",{service:e});this.layerId=r}await r.load({signal:t}),this._initLayerProperties(),this._verifyFields()}).then(()=>(0,se.VA)(this,"load",e));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.footprintLayer.destroy(),this.dynamicGroupLayer.destroy();for(let e of this._portals.values())e.destroy();this._portals.clear()}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")??0)+1}get editingEnabled(){return this.loaded&&null!=this.capabilities&&this.capabilities.operations.supportsEditing&&this.userHasEditingPrivileges}get effectiveEditingEnabled(){return!1}async applyEdits(e,t){return(0,se.ct)(this,e,t)}async createLayerFromFootprint(e){let t=await this._createLayer(e);return this._configureLayer(t,e),this._layerToFootprint.set(t,e),t}createFootprintFromLayer(e){return this._layerToFootprint.get(e)?.clone()}createQuery(){let e=new he.A,t=this.capabilities?.query;e.returnGeometry=!0,t&&(e.compactGeometryEnabled=t.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=t.supportsDefaultSpatialReference),e.outFields=["*"];let{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e.where=this.definitionExpression||"1=1",e}getFeatureType(e){return(0,se.xd)(this.types,this.typeIdField,e)}getFieldDomain(e,t){let r=t?.feature,i=this.getFeatureType(r);if(i){let t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this.getField(e)?.domain}async reloadFromService(e){await this.source.reload({signal:e}),this._initLayerProperties(),this._verifyFields()}async hasDataChanged(){return(0,se.jp)(this)}async queryFeatures(e,t){let r=await this.load(),i=await r.source.queryFeatures(he.A.from(e)??r.createQuery(),t),n=r.footprintLayer.graphicOrigin;if(i?.features)for(let e of i.features)e.layer=e.sourceLayer=r.footprintLayer,e.origin=n;return i}async queryObjectIds(e,t){return(await this.load()).source.queryObjectIds(he.A.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){return(await this.load()).source.queryFeatureCount(he.A.from(e)??this.createQuery(),t)}async queryExtent(e,t){return(await this.load()).source.queryExtent(he.A.from(e)??this.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,pe.D)(this,e)}read(e,t){if(super.read(e,t),e){let{footprintLayer:r,dynamicGroupLayer:i}=e;r&&this.footprintLayer.read(r,t),i&&this.dynamicGroupLayer.read(i,t)}}async queryAttributeBins(e,t){let{source:i,capabilities:n}=await this.load();(0,se.ZJ)(e,n,"CatalogLayer");let l=await r.e(6956).then(()=>r(14575)),o=await i.queryAttributeBins(l.default.from(e),t);if(o.features)for(let e of o.features)e.layer=e.sourceLayer=this.footprintLayer;return o}_initLayerProperties(){let{portalItem:e,source:t}=this,{sourceJSON:r}=t;r&&(this.sourceJSON=r,this.read(r,{origin:"service",portalItem:e,portal:e?.portal,url:this.parsedUrl}))}_verifyFields(){let e=[this.itemNameField,this.itemSourceField,this.itemTypeField,this.minScaleField,this.maxScaleField],t=e.filter(e=>!this.fieldsIndex.has(e));if(t.length)throw new o.A("catalog-layer:missing-fields","There are missing fields to operate properly",{requiredFields:e,missingFields:t})}async _fetchFirstValidLayerId(e){let{data:t}=await(0,n.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(this.applyPreferredHost(t),Array.isArray(t?.layers))return t.layers.find(({type:e})=>!!e&&this.supportedSourceTypes.has(e))?.id}async _createLayer(e){let t=e.getAttribute(this.itemSourceField);if(!t)throw new o.A("catalog-layer:item-source-missing",`The footprint is missing the "${this.itemSourceField}" attribute`);let i=JSON.parse(t);if(function(e){return"object"==typeof e&&!!e&&"itemId"in e&&"portalUrl"in e}(i)){let e,{itemId:t,portalUrl:r}=i,n=(0,fe.qG)(r),l=this.portalItem?.portal,o=ce.A.getDefault(),s=!0;l&&(0,d.ut)(r,l.url)?e=l:(0,d.ut)(r,o.url)?e=o:(e=(0,a.tE)(this._portals,n,()=>new ce.A({url:n})),s=!1);let u=await c.A.fromPortalItem(new ye.default({id:t,portal:e}));return s||await be(u),u}if(function(e){return"object"==typeof e&&!!e&&"url"in e}(i))return c.A.fromArcGISServerUrl({url:i.url});let{default:n}=await r.e(7546).then(()=>r(45165));return new n}_configureLayer(e,t){let r=t.getAttribute(this.itemNameField);r&&(e.title=r);let i=t.getAttribute(this.maxScaleField);null!=i&&"maxScale"in e&&(e.maxScale=i);let n=t.getAttribute(this.minScaleField);null!=n&&"minScale"in e&&(e.minScale=n)}};async function be(e){if("portalItem"in e&&e.portalItem){try{await e.load()}catch{}e.portalItem=null,"group"===e.type&&await Promise.allSettled([...e.layers.map(e=>be(e)),...e.tables.map(e=>be(e))])}}(0,i.Cg)([(0,p.MZ)(C.fV)],ve.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"createQueryVersion",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"drawOrderField",void 0),(0,i.Cg)([(0,p.MZ)({type:F,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:ge}}})],ve.prototype,"dynamicGroupLayer",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"editingEnabled",null),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"effectiveEditingEnabled",null),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.elevationInfo",read:!1,write:!1}}}})],ve.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,p.MZ)({...me.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],ve.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)(me.fieldsIndex)],ve.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.floorInfo",read:!1,write:!1}}}})],ve.prototype,"floorInfo",void 0),(0,i.Cg)([(0,p.MZ)({type:K,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:ge}}})],ve.prototype,"footprintLayer",void 0),(0,i.Cg)([(0,p.MZ)(C.id)],ve.prototype,"id",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"itemNameField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"itemSourceField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"itemTypeField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"layers",void 0),(0,i.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],ve.prototype,"listMode",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"maxScaleField",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"minScaleField",void 0),(0,i.Cg)([(0,p.MZ)({value:"CatalogLayer",type:["CatalogLayer"]})],ve.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.orderBy",write:!0,read:!0}}}})],ve.prototype,"orderBy",void 0),(0,i.Cg)([(0,p.MZ)(me.outFields)],ve.prototype,"outFields",void 0),(0,i.Cg)([(0,p.MZ)({readOnly:!0})],ve.prototype,"source",void 0),(0,i.Cg)([(0,p.MZ)({json:{read:!1}})],ve.prototype,"type",void 0),(0,i.Cg)([(0,p.MZ)({type:String})],ve.prototype,"typeIdField",void 0),(0,i.Cg)([(0,p.MZ)({type:[ue.A]})],ve.prototype,"types",void 0),ve=(0,i.Cg)([(0,p.$K)("esri.layers.CatalogLayer")],ve);const we=ve},47685(e,t,r){r.d(t,{Mk:()=>y,Zk:()=>p});var i=r(32198),n=r(65529),l=r(4718),o=r(91429),a=r(20816);const s=new n.bk;function u(e){return s.on("apply-edits",new WeakRef(e))}function d(e){return s.on("update-moment",new WeakRef(e))}function p(e,t,r=null,i=!1){let n=Promise.withResolvers();return i=null==t||i,s.emit("apply-edits",{serviceUrl:e,layerId:t,gdbVersion:r,mayReceiveServiceEdits:i,result:n.promise}),n}const c=Symbol();function y(e){return"object"==typeof e&&!!e&&c in e}function f(e){return"object"==typeof e&&!!e&&"gdbVersion"in e}function h(e,t,r){let i=new URL(e).host,n=a.Z3.get(i),l=e=>!e||e===n;return l(t)&&l(r)||t===r}r.d(t,["w6",0,e=>{var t;let r=e,n=class extends r{static{t=c}constructor(...e){super(...e),this[t]=!0,this._applyEditsHandler=e=>{let{serviceUrl:t,layerId:r,gdbVersion:i,mayReceiveServiceEdits:n,result:o}=e,a=t===this.url,s=null!=r&&null!=this.layerId&&r===this.layerId,u=null!=r&&this.relationships?.some(e=>e.relatedTableId===r),d=f(this),p=f(this)&&h(t,i,this.gdbVersion);if(!a||d&&!p||!s&&!u&&!n)return;let c=o.then(e=>{if(this.lastEditsEventDate=new Date,s&&(e.addedFeatures.length||e.updatedFeatures.length||e.deletedFeatures.length||e.addedAttachments.length||e.updatedAttachments.length||e.deletedAttachments.length))return this.emit("edits",(0,l.o8)(e)),e;let r=e.editedFeatures?.find(({layerId:e})=>e===this.layerId);if(r){let{adds:t,updates:i,deletes:n}=r.editedFeatures,o={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:t?t.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],deletedFeatures:n?n.map(({attributes:e})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],updatedFeatures:i?i.map(({current:{attributes:e}})=>({objectId:this.objectIdField&&e[this.objectIdField],globalId:this.globalIdField&&e[this.globalIdField]})):[],editedFeatures:(0,l.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,l.o8)(e.historicMoment)};return this.emit("edits",o),o}let n={edits:null,addedAttachments:[],deletedAttachments:[],updatedAttachments:[],addedFeatures:[],deletedFeatures:[],updatedFeatures:[],editedFeatures:(0,l.o8)(e.editedFeatures),exceededTransferLimit:!1,historicMoment:(0,l.o8)(e.historicMoment)};return"historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,n.historicMoment)&&this.emit("edits",n),n}).then(e=>("historicMoment"in this&&this._shouldUpdateHistoricMoment(t,i,e.historicMoment)&&(this.historicMoment=e.historicMoment),e));c.catch(()=>{}),this.emit("apply-edits",{result:c})},this._updateMomentHandler=e=>{let{serviceUrl:t,gdbVersion:r,moment:i}=e,n=t===this.url,l=f(this),o=f(this)&&h(t,r,this.gdbVersion),a=f(this)&&!h(t,this.gdbVersion,null);n&&l&&o&&a&&"historicMoment"in this&&this.historicMoment!==i&&(this.historicMoment=i)},this.when().then(()=>{this.addHandles(u(this._applyEditsHandler)),"historicMoment"in this&&this.addHandles(d(this._updateMomentHandler))},()=>{})}_shouldUpdateHistoricMoment(e,t,r){return"historicMoment"in this&&this.historicMoment!==r&&(0,a.w5)(e,t)}};return(0,i.Cg)([(0,o.MZ)()],n.prototype,"lastEditsEventDate",void 0),n=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.EditBusLayer")],n),n}])},87718(e,t,r){r.d(t,{F:()=>Z,Y:()=>S});var i,n=r(32198),l=r(91429),o=r(49186),a=r(25482),s=r(93637),u=r(76369),d=r(66552),p=r(4718),c=r(50498),y=r(97552),f=r(79677);const h=new d.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),m=new d.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let g=i=class extends a.o{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){let{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:l,units:o,distance:a}=this;return new y.A({geometry:(0,p.o8)(r),objectIds:(0,p.o8)(l),spatialRelationship:i,timeExtent:(0,p.o8)(n),where:t,units:o,distance:a,...e})}clone(){let{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:l,units:o,distance:a}=this;return new i({geometry:(0,p.o8)(t),objectIds:(0,p.o8)(l),spatialRelationship:r,timeExtent:(0,p.o8)(n),where:e,units:o,distance:a})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],g.prototype,"where",void 0),(0,n.Cg)([(0,l.MZ)({types:c.yR,json:{write:!0}})],g.prototype,"geometry",void 0),(0,n.Cg)([(0,l.MZ)({type:h.apiValues,json:{name:"spatialRel",read:{reader:h.read},write:{allowNull:!1,writer:h.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],g.prototype,"spatialRelationship",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"distance",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:!0}})],g.prototype,"objectIds",void 0),(0,n.Cg)([(0,l.MZ)({type:m.apiValues,json:{read:m.read,write:{writer:m.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],g.prototype,"units",void 0),(0,n.Cg)([(0,l.MZ)({type:f.A,json:{write:!0}})],g.prototype,"timeExtent",void 0),g=i=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureFilter")],g);const v=g;var b;const w={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},C={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},M={name:"showExcludedLabels",default:!0};let x=b=class extends a.o{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){let r=super.write(e,t);if(t?.origin){if(r.filter){let e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new o.A("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new b({filter:null==this.filter?null:this.filter.clone(),includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n.Cg)([(0,l.MZ)({type:v,json:{write:{allowNull:!0,writer(e,t,r,i){let n=e?.write({},i);n&&0!==Object.keys(n).length?(0,s.sM)(r,n,t):(0,s.sM)(r,null,t)}}}})],x.prototype,"filter",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":w,"portal-item":w}}})],x.prototype,"includedEffect",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:u.LF,write:{writer:u.M9,allowNull:!0},origins:{"web-map":C,"portal-item":C}}})],x.prototype,"excludedEffect",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedLabelsVisible",void 0),x=b=(0,n.Cg)([(0,l.$K)("esri.layers.support.FeatureEffect")],x);const F={write:{allowNull:!0}},S={type:x,json:{origins:{"web-map":F,"portal-item":F}}},Z=e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.featureEffect=null}};return(0,n.Cg)([(0,l.MZ)(S)],r.prototype,"featureEffect",void 0),r=(0,n.Cg)([(0,l.$K)("esri.layers.mixins.FeatureEffectLayer")],r),r}},32756(e,t,r){r.d(t,{Rr:()=>a});var i=r(32198),n=r(93637),l=r(91429),o=r(91880);function a(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let n=new o.A;return n.read(i,r),[n]}const s={type:[o.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,i){let l=e.find(e=>!!e.field);l&&(0,n.sM)(r,[l.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,l.MZ)(s)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,l.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,s])},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),l=r(66552),o=r(25482),a=r(91429);const s=new l.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,a.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>p});var i=r(32198),n=r(69540),l=r(25482),o=r(91429),a=r(8631),s=r(29005),u=r(36005),d=r(43937);let p=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,a.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],p.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],p.prototype,"readDomains",null),(0,i.Cg)([(0,d.K)("domains")],p.prototype,"writeDomains",null),(0,i.Cg)([(0,o.MZ)({type:[s.A],json:{write:!0}})],p.prototype,"templates",void 0),p=(0,i.Cg)([(0,o.$K)("esri.layers.support.FeatureType")],p)},30279(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),l=r(25482),o=r(10107),a=r(64108),s=r(39663);let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.alias=null,this.name=void 0,this.fieldFormat=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"alias",void 0),(0,i.Cg)([(0,o.MZ)({type:String,nonNullable:!0,json:{write:{isRequired:!0}}})],u.prototype,"name",void 0),(0,i.Cg)([(0,o.MZ)({types:s.fg,json:{write:!0}})],u.prototype,"fieldFormat",void 0),u=(0,i.Cg)([(0,a.$)("esri.layers.support.FieldConfiguration")],u)},46499(e,t,r){r.d(t,{A:()=>F});var i,n,l=r(32198),o=(r(44208),r(66552)),a=r(25482),s=r(4718),u=r(90629),d=r(91429),p=r(90360),c=r(73913),y=r(32730),f=r(77548),h=r(59868),m=r(73838),g=r(33910),v=r(36005),b=r(43937);const w=new o.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function C(e,t,r){return{enabled:!(0,f.TU)(r?.layer)}}function M(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function x(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let F=class extends a.o{static{i=y.vK}static{n=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),n=i[3],l=r(t[i[4]],i[5],i[6]);switch(n){case"AND":return e&&l;case"OR":return e||l}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=h.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,y.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&M(i))e=new c.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,s.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,s.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,l.Cg)([(0,d.MZ)({type:String,json:{write:!0}})],F.prototype,"name",void 0),(0,l.Cg)([(0,d.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:C}}}}})],F.prototype,"allowOverrun",void 0),(0,l.Cg)([(0,d.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:C}}}}})],F.prototype,"deconflictionStrategy",void 0),(0,l.Cg)([(0,d.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&x(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],F.prototype,"labelExpression",void 0),(0,l.Cg)([(0,v.w)("labelExpression")],F.prototype,"readLabelExpression",null),(0,l.Cg)([(0,b.K)("labelExpression")],F.prototype,"writeLabelExpression",null),(0,l.Cg)([(0,d.MZ)({type:c.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return M(e)||x(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],F.prototype,"labelExpressionInfo",void 0),(0,l.Cg)([(0,b.K)("labelExpressionInfo")],F.prototype,"writeLabelExpressionInfo",null),(0,l.Cg)([(0,d.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],F.prototype,"labelPlacement",void 0),(0,l.Cg)([(0,d.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],F.prototype,"offsetDistance",void 0),(0,l.Cg)([(0,d.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],F.prototype,"labelPosition",void 0),(0,l.Cg)([(0,d.MZ)({type:Number})],F.prototype,"maxScale",void 0),(0,l.Cg)([(0,b.K)("maxScale")],F.prototype,"writeMaxScale",null),(0,l.Cg)([(0,d.MZ)({type:Number})],F.prototype,"minScale",void 0),(0,l.Cg)([(0,b.K)("minScale")],F.prototype,"writeMinScale",null),(0,l.Cg)([(0,d.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],F.prototype,"repeatLabel",void 0),(0,l.Cg)([(0,d.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:C}}}}})],F.prototype,"repeatLabelDistance",null),(0,l.Cg)([(0,d.MZ)({types:g.em,json:{types:g.em,origins:{"portal-item":{types:g.em,read:{reader:(0,p.C)({types:g.em})},default:null},"web-scene":{types:g.Rv,read:{reader:(0,p.C)({types:g.Rv})},write:m.oO,default:null}},write:m.oO,default:null}})],F.prototype,"symbol",void 0),(0,l.Cg)([(0,d.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"useCodedValues",void 0),(0,l.Cg)([(0,d.MZ)({type:String,json:{write:!0}})],F.prototype,"where",void 0),F=n=(0,l.Cg)([(0,d.$K)("esri.layers.support.LabelClass")],F)},73913(e,t,r){r.d(t,{A:()=>d});var i,n=r(32198),l=r(25482),o=r(91429),a=r(32730),s=r(36005),u=r(43937);let d=class extends l.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],d.prototype,"name",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],d.prototype,"expression",void 0),(0,n.Cg)([(0,s.w)("expression",["expression","value"])],d.prototype,"readExpression",null),(0,n.Cg)([(0,u.K)("expression")],d.prototype,"writeExpression",null),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],d.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({json:{read:!1,write:!1}})],d.prototype,"value",void 0),d=i=(0,n.Cg)([(0,o.$K)("esri.layers.support.LabelExpressionInfo")],d)},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(32198),l=r(66552),o=r(25482),a=r(91429);const s=new l.J({asc:"ascending",desc:"descending"});let u=class extends o.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,a.MZ)({type:s.apiValues,json:{type:s.jsonValues,read:s.read,write:s.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},41560(e,t,r){r.d(t,{Ch:()=>o,mW:()=>l});var i=r(34727),n=r(39516);function l(e,t){return{...t,filterMode:e.mode}}function o(e,t,r){let l=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],d(r)),t[1]=Math.min(t[1],p(i));return t}(e);if(l&&((0,i.gg)(t,l[0])||(0,i.ZH)(r,l[1])))return"";let o=Array.from(a(e,t,r)),s=function(e,t,r){if(0===e.length)return!0;let n=d(e.at(0)?.minScale),l=p(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(l,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],n=e[t+1];if((0,i.ZH)(d(n.minScale),p(r.maxScale)))return!0}return!1}(o,t,r)?"1=1":o.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return s&&"1=1"!==s?s:""}function*a(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)s(i.minScale,i.maxScale,t,r)&&(yield i)}}function s(e,t,r,n){return e=d(e),r=d(r),t=p(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function d(e){return e||1/0}function p(e){return e||0}},16194(e,t,r){r.d(t,{QX:()=>s,sS:()=>d,xY:()=>u});var i=r(4718),n=r(30279),l=r(39663),o=r(30524),a=r(41227);function s(e){let{popupTemplate:t,fieldsIndex:r}=e,i=t?.fieldInfos;if(!i?.length||!r)return;let o=[];for(let e of i){let{fieldName:t,label:i}=e,a=r.get(t);if(!a)continue;let s=i&&i!==a.alias?i:null,u=(0,l.iu)(e,a);(s||u)&&o.push(new n.A({name:a.name,alias:s,fieldFormat:u}))}return o.length?o:null}function u(e){let{fields:t}=e;if(!t?.length)return;let r=[];for(let e of t){let t=(0,l.qH)(e)?(0,l.$P)(e):null;t&&r.push(new n.A({name:e.name,fieldFormat:t}))}return r.length?r:null}function d(e,t){let{popupTemplate:r,fieldsIndex:n}=e;if(!r||!n)return;let o=function(e,t,r){t??=[],r=(0,i.o8)(r)??[];let n=!1,o=new Map;for(let r of t){let t=e.fieldsIndex.get(r.name);t&&o.set(t.name,r)}for(let t of r){let r=e.fieldsIndex.get(t.fieldName);if(!r)continue;let i=o.get(r.name);t.label=i?.alias||r.alias,t.format=(0,l.qH)(r)&&i?.fieldFormat?(0,l.PK)(i.fieldFormat,r):null,n=!0,o.delete(r.name)}for(let t of o.values()){let i=p(e,t);i&&(r.push(i),n=!0)}return n?r:null}(e,t,r.fieldInfos);if(!o)return;let a=r.clone();return a.fieldInfos=o,a}function p(e,t){let{name:r,alias:i,fieldFormat:n}=t,s=e.fieldsIndex.get(r);if(!s||!i&&!n)return;let u=i||s.alias,d=(0,l.qH)(s)&&n?(0,l.PK)(n,s):null;return new a.A({fieldName:s.name,label:u,format:d,visible:!1,isEditable:(0,o.R$)(s,e)})}},39383(e,t,r){r.d(t,{w:()=>s,z:()=>p});var i=r(49186),n=r(53966),l=r(46499);const o=()=>n.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function s(e,t,r){return e?e.map(e=>{let i=new l.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],d={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function p(e,t){let r=[];for(let n of e){let e=n.labelPlacement,l=d[t];if(!n.symbol)return o().warn("No ILabelClass symbol specified."),[];if(!l)return o().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(l.includes(e))r.push(n);else{let i=l[0];e&&o().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let a=n.clone();a.labelPlacement=i,r.push(a)}}return r}},96520(e,t,r){r.d(t,{u:()=>s});var i=r(86211),n=r(21325),l=r(52006);function o(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e)t.length>2&&(t[2]*=r)}function a(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e){let e=(0,l.yP)(t);e.length>2&&(e[2]*=r)}}function s(e,t,r){if(!e&&!t||!r)return;let n=(0,i.G9)(r);u(e,r,n),u(t,r,n)}function u(e,t,r){if(e)for(let i of e)d(i.geometry,t,r)}function d(e,t,r){if(!e?.spatialReference||(0,n.aI)(e.spatialReference,t))return;let l=(0,i.G9)(e.spatialReference)/r;if(1!==l)if("x"in e)null!=e.z&&(e.z*=l);else if("curveRings"in e)a(e,e.curveRings,l);else if("curvePaths"in e)a(e,e.curvePaths,l);else if("rings"in e)o(e,e.rings,l);else if("paths"in e)o(e,e.paths,l);else if("points"in e&&(null==e.hasM||e.hasZ))for(let t of e.points)t.length>2&&(t[2]*=l)}},9760(e,t,r){r.d(t,{A:()=>d});var i=r(32198),n=r(66552),l=r(25482),o=r(91429),a=r(93223);const s=new n.J({esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation",esriClassifyDefinedInterval:"defined-interval"}),u=new n.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:"percent-of-total",esriNormalizeByField:"field"});let d=class extends l.o{constructor(e){super(e),this.type="class-breaks-definition",this.breakCount=null,this.classificationField=null,this.classificationMethod=null,this.normalizationField=null,this.normalizationType=null}set standardDeviationInterval(e){"standard-deviation"===this.classificationMethod&&this._set("standardDeviationInterval",e)}set definedInterval(e){"defined-interval"===this.classificationMethod&&this._set("definedInterval",e)}};(0,i.Cg)([(0,a.e)({classBreaksDef:"class-breaks-definition"})],d.prototype,"type",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"breakCount",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"classificationField",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{read:s.read,write:s.write}})],d.prototype,"classificationMethod",void 0),(0,i.Cg)([(0,o.MZ)({json:{write:!0}})],d.prototype,"normalizationField",void 0),(0,i.Cg)([(0,o.MZ)({json:{read:u.read,write:u.write}})],d.prototype,"normalizationType",void 0),(0,i.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"standardDeviationInterval",null),(0,i.Cg)([(0,o.MZ)({value:null,json:{write:!0}})],d.prototype,"definedInterval",null),d=(0,i.Cg)([(0,o.$K)("esri.rest.support.ClassBreaksDefinition")],d)},22671(e,t,r){r.d(t,{A:()=>v});var i,n=r(32198),l=r(52106),o=r(66552),a=r(25482),s=r(4718),u=r(91429),d=r(16930),p=r(60408),c=r(65864),y=r(50498),f=r(20437),h=r(36005),m=r(43937);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l.A)}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);let{features:n}=this;if(n)for(let e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,c.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=d.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,s.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,n]}=e,l=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=l.length;e<t;e++)o?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,n],scale:[l,o]}=r,a=null,s=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;s=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+i,e=>n-e*o,a,s);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=d.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){let l=e[t],o=r.fromJSON(l),a=l.geometry?.spatialReference;null!=o.geometry&&!a&&(o.geometry.spatialReference=i);let s=l.aggregateGeometries,u=o.aggregateGeometries;if(s&&null!=u)for(let e in u){let t=u[e],r=s[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}n.push(o)}return n}_quantizePoints(e,t,r){let i,n,l=[];for(let o=0,a=e.length;o<a;o++){let a=e[o];if(o>0){let e=t(a[0]),o=r(a[1]);(e!==i||o!==n)&&(l.push([e-i,o-n]),i=e,n=o)}else i=t(a[0]),n=r(a[1]),l.push([i,n])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,p.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,l=i.length;e<l;e++){let l=i[e],o=this._quantizePoints(l,t,r);o&&n.push(o)}return n.length>0?((0,p.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,o,a=(0,p.Bi)(e)?e.rings:e.paths;for(let e=0,i=a.length;e<i;e++){let i=a[e];for(let e=0,n=i.length;e<n;e++){let n=i[e];e>0?(l+=n[0],o+=n[1]):(l=n[0],o=n[1]),n[0]=t(l),n[1]=r(o)}}if(i&&n)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{let l,o,a=e.points;for(let e=0,i=a.length;e<i;e++){let i=a[e];e>0?(l+=i[0],o+=i[1]):(l=i[0],o=i[1]),i[0]=t(l),i[1]=r(o)}if(i&&n)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=i(t[2])}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[l.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n.Cg)([(0,h.w)("features")],v.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[f.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n.Cg)([(0,m.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,h.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:d.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n.Cg)([(0,m.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0},84892(e,t,r){r.d(t,{t:()=>l});var i=r(53966);function n(e,t){return Number(e.toFixed(t))}function l(e,t){let{normalizationTotal:r}=e;return{classBreaks:o(e,t),normalizationTotal:r}}function o(e,t){let r=e.definition,{classificationMethod:i,normalizationType:l,definedInterval:o}=r,u=r.breakCount??1,d=[],p=e.values;if(0===p.length)return[];p=p.sort((e,t)=>e-t);let[c,y]=t??[p.at(0),p.at(-1)];if("equal-interval"===i)if(p.length>=u){let e=(y-c)/u,t=c;for(let r=1;r<u;r++){let i=n(c+r*e,6);d.push({minValue:t,maxValue:i,label:a(t,i,l)}),t=i}d.push({minValue:t,maxValue:y,label:a(t,y,l)})}else p.forEach(e=>{d.push({minValue:e,maxValue:e,label:a(e,e,l)})});else if("natural-breaks"===i){let t=function(e){let t=[],r=[],i=Number.MIN_VALUE,n=1,l=-1;for(let o=0;o<e.length;o++){let a=e[o];a===i?(n++,r[l]=n):null!==a&&(t.push(a),i=a,n=1,r.push(n),l++)}return{uniqueValues:t,valueFrequency:r}}(p),r=e.valueFrequency||t.valueFrequency,i=s(t.uniqueValues,r,u),o=c;for(let e=1;e<u;e++)if(t.uniqueValues.length>e){let r=n(t.uniqueValues[i[e]],6);d.push({minValue:o,maxValue:r,label:a(o,r,l)}),o=r}d.push({minValue:o,maxValue:y,label:a(o,y,l)})}else if("quantile"===i)if(p.length>=u&&c!==y){let e=c,t=Math.ceil(p.length/u),r=0;for(let i=1;i<u;i++){let n=t+r-1;n>p.length&&(n=p.length-1),n<0&&(n=0),d.push({minValue:e,maxValue:p[n],label:a(e,p[n],l)}),e=p[n],r+=t,t=Math.ceil((p.length-r)/(u-i))}d.push({minValue:e,maxValue:y,label:a(e,y,l)})}else{let e=-1;for(let t=0;t<p.length;t++){let r=p[t];r!==e&&(e=r,d.push({minValue:e,maxValue:r,label:a(e,r,l)}),e=r)}}else if("standard-deviation"===i){let e=function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/=e.length,t}(p),t=function(e,t){let r=0;for(let i=0;i<e.length;i++){let n=e[i];r+=(n-t)*(n-t)}return r/=e.length,Math.sqrt(r)}(p,e);if(0===t)d.push({minValue:p[0],maxValue:p[0],label:a(p[0],p[0],l)});else{let r=function(e,t,r,i,n){let l=Math.max(i-e,t-i)/n/r;return l=l>=1?1:l>=.5?.5:.25,l}(c,y,u,e,t)*t,i=0,o=c;for(let t=u;t>=1;t--){let s=n(e-(t-.5)*r,6);d.push({minValue:o,maxValue:s,label:a(o,s,l)}),o=s,i++}let s=n(e+.5*r,6);d.push({minValue:o,maxValue:s,label:a(o,s,l)}),o=s,i++;for(let t=1;t<=u;t++)s=i===2*u?y:n(e+(t+.5)*r,6),d.push({minValue:o,maxValue:s,label:a(o,s,l)}),o=s,i++}}else if("defined-interval"===i){if(!o)return d;let[e,r]=t??[p.at(0),p.at(-1)],i=Math.ceil((r-e)/o),s=e;for(let t=1;t<i;t++){let r=n(e+t*o,6);d.push({minValue:s,maxValue:r,label:a(s,r,l)}),s=r}d.push({minValue:s,maxValue:r,label:a(s,r,l)})}return d}function a(e,t,r){let i=null;return i=e===t?r&&"percent-of-total"===r?e+"%":e.toString():r&&"percent-of-total"===r?e+"% - "+t+"%":e+" - "+t,i}function s(e,t,r){let i=e.length,n=[];r>i&&(r=i);for(let e=0;e<r;e++)n.push(Math.round(e*i/r-1));n.push(i-1);let l=u(n,e,t,r);return function(e,t,r,i,n,l){let o=0,a=0,s=0,u=0,p=!0;for(let c=0;c<2&&p;c++){0===c&&(p=!1);for(let c=0;c<l-1;c++)for(;r[c+1]+1!==r[c+2];){r[c+1]=r[c+1]+1;let l=d(c,r,i,n);s=l.sbMean,o=l.sbSdcm;let y=d(c+1,r,i,n);if(u=y.sbMean,a=y.sbSdcm,!(o+a<t[c]+t[c+1])){r[c+1]=r[c+1]-1;break}t[c]=o,t[c+1]=a,e[c]=s,e[c+1]=u,p=!0}for(let c=l-1;c>0;c--)for(;r[c]!==r[c-1]+1;){r[c]=r[c]-1;let l=d(c-1,r,i,n);s=l.sbMean,o=l.sbSdcm;let y=d(c,r,i,n);if(u=y.sbMean,a=y.sbSdcm,!(o+a<t[c-1]+t[c])){r[c]=r[c]+1;break}t[c-1]=o,t[c]=a,e[c-1]=s,e[c]=u,p=!0}}return p}(l.mean,l.sdcm,n,e,t,r)&&(l=u(n,e,t,r)),n}function u(e,t,r,i){let n=[],l=[],o=[],a=0,s=[],u=[];for(let n=0;n<i;n++){let i=d(n,e,t,r);s.push(i.sbMean),u.push(i.sbSdcm),a+=u[n]}let p,c=a,y=!0;for(;y||a<c;){y=!1,n=[];for(let t=0;t<i;t++)n.push(e[t]);for(let r=0;r<i;r++)for(let n=e[r]+1;n<=e[r+1];n++)if(p=t[n],r>0&&n!==e[r+1]&&Math.abs(p-s[r])>Math.abs(p-s[r-1]))e[r]=n;else if(r<i-1&&e[r]!==n-1&&Math.abs(p-s[r])>Math.abs(p-s[r+1])){e[r+1]=n-1;break}c=a,a=0,l=[],o=[];for(let n=0;n<i;n++){l.push(s[n]),o.push(u[n]);let i=d(n,e,t,r);s[n]=i.sbMean,u[n]=i.sbSdcm,a+=u[n]}}if(a>c){for(let t=0;t<i;t++)e[t]=n[t],s[t]=l[t],u[t]=o[t];a=c}return{mean:s,sdcm:u}}function d(e,t,r,n){let l=0,o=0;for(let i=t[e]+1;i<=t[e+1];i++){let e=n[i];l+=r[i]*e,o+=e}o<=0&&i.A.getLogger("esri.rest.support.generateRendererUtils").warn("Exception in Natural Breaks calculation");let a=l/o,s=0;for(let i=t[e]+1;i<=t[e+1];i++)s+=n[i]*(r[i]-a)**2;return{sbMean:a,sbSdcm:s}}},1873(e,t,r){r.d(t,{$y:()=>P,Ak:()=>R,FM:()=>f,G_:()=>c,Rw:()=>A,Vb:()=>d,b3:()=>E,gJ:()=>u,jM:()=>O,lv:()=>j,oZ:()=>I,qg:()=>y,sU:()=>V,z9:()=>p,zS:()=>L});var i=r(9760),n=r(84892);const l=/\s*(\+|-)?((\d+(\.\d+)?)|(\.\d+))\s*/gi,o=new Set(["esriFieldTypeDate","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong","esriFieldTypeOID","esriFieldTypeBigInteger"]),a=new Set(["esriFieldTypeTimeOnly","esriFieldTypeDateOnly"]),s=["min","max","avg","stddev","count","sum","variance","nullcount","median"];function u(e){return null==e||"string"==typeof e&&!e?"<Null>":e}function d(e){let t=null!=e.normalizationField||null!=e.normalizationType,r=null!=e.minValue||null!=e.maxValue,i=!!e.sqlExpression&&e.supportsSQLExpression;return!t&&!r&&!i}function p(e){let{outStatisticTypes:t}=e,r=e.returnDistinct?[...new Set(e.values)]:e.values,i=r.filter(e=>null!=e).sort(),n=i.length,l={count:n,min:i[0],max:i[n-1]};return e.supportsNullCount&&(l.nullcount=r.length-n),e.percentileParams&&(!t?.include?.length||t.include.includes("median"))&&(!t?.exclude?.length||!t.exclude.includes("median"))&&(l.median=y(r,e.percentileParams)),l}function c(e){let{values:t,useSampleStdDev:r,supportsNullCount:i,outStatisticTypes:n}=e,l=1/0,o=-1/0,a=null,s=null,u=null,d=null,p=0,c=null==e.minValue?-1/0:e.minValue,f=null==e.maxValue?1/0:e.maxValue;for(let e of t)Number.isFinite(e)?e>=c&&e<=f&&(a=null===a?e:a+e,l=Math.min(l,e),o=Math.max(o,e),p++):"string"==typeof e&&p++;if(p&&null!=a){s=a/p;let e=0;for(let r of t)Number.isFinite(r)&&r>=c&&r<=f&&(e+=(r-s)**2);d=r?p>1?e/(p-1):0:p>0?e/p:0,u=Math.sqrt(d)}else l=null,o=null;let h={avg:s,count:p,max:o,min:l,stddev:u,sum:a,variance:d};return i&&(h.nullcount=t.length-p),e.percentileParams&&(!n?.include?.length||n.include.includes("median"))&&(!n?.exclude?.length||!n.exclude.includes("median"))&&(h.median=y(t,e.percentileParams)),h}function y(e,t){let{fieldType:r,value:i,orderBy:n,isDiscrete:l}=t,o=f(r,"desc"===n,"case-insensitive");if(e=[...e].filter(e=>null!=e).sort((e,t)=>o(e,t)),0===e.length)return null;if(i<=0)return e[0];if(i>=1)return e[e.length-1];let a=(e.length-1)*i,s=Math.floor(a),u=s+1,d=a%1,p=e[s],c=e[u];return u>=e.length||l||"string"==typeof p||"string"==typeof c?p:p*(1-d)+c*d}function f(e,t,r="case-sensitive"){if(e){if(o.has(e))return S(t);if(a.has(e))return M(t,!0);if("esriFieldTypeTimestampOffset"===e)return function(e){return e?b:v}(t);let i=M(t,"case-sensitive"===r);if("esriFieldTypeString"===e)return i;if("esriFieldTypeGUID"===e||"esriFieldTypeGlobalID"===e)return(e,t)=>i(Z(e),Z(t))}let i=t?1:-1,n=S(t),l=M(t,"case-sensitive"===r),s=g(t);return(e,t)=>"number"==typeof e&&"number"==typeof t?n(e,t):"string"==typeof e&&"string"==typeof t?l(e,t):s(e,t)??i}const h=(e,t)=>null==e?null==t?0:1:null==t?-1:null,m=(e,t)=>null==e?null==t?0:-1:null==t?1:null;function g(e){return e?h:m}const v=(e,t)=>m(e,t)??(e===t?0:new Date(e).getTime()-new Date(t).getTime()),b=(e,t)=>h(e,t)??(e===t?0:new Date(t).getTime()-new Date(e).getTime()),w=(e,t)=>m(e,t)??(e===t?0:e<t?-1:1),C=(e,t)=>h(e,t)??(e===t?0:e<t?1:-1);function M(e,t){if(t)return e?C:w;let r=g(e);return e?(e,t)=>r(e,t)??((e=e.toUpperCase())>(t=t.toUpperCase())?-1:+(e<t)):(e,t)=>r(e,t)??((e=e.toUpperCase())<(t=t.toUpperCase())?-1:+(e>t))}const x=(e,t)=>h(e,t)??t-e,F=(e,t)=>m(e,t)??e-t;function S(e){return e?x:F}function Z(e){return e.slice(24,36)+e.slice(19,23)+e.slice(16,18)+e.slice(14,16)+e.slice(11,13)+e.slice(9,11)+e.slice(6,8)+e.slice(4,6)+e.slice(2,4)+e.slice(0,2)}function I(e,t,r){let i;for(i in e)t?.include?.length&&!t.include.includes(i)||t?.exclude?.length&&t.exclude.includes(i)?delete e[i]:s.includes(i)&&(Number.isFinite(e[i])||(e[i]=null));return r&&["avg","stddev","variance"].forEach(t=>{null!=e[t]&&(e[t]=Math.ceil(e[t]??0))}),e}function E(e){let t={};for(let r of e)(null==r||"string"==typeof r&&""===r.trim())&&(r=null),null==t[r]?t[r]={count:1,data:r}:t[r].count++;return{count:t}}function T(e){return"coded-value"===e?.type?e.codedValues.map(e=>e.code):[]}function j(e,t,r,i){let n=e.count,l=[];if(r&&t){let e=[],r=T(t[0]);for(let n of r)if(t[1]){let r=T(t[1]);for(let l of r)if(t[2]){let r=T(t[2]);for(let t of r)e.push(`${u(n)}${i}${u(l)}${i}${u(t)}`)}else e.push(`${u(n)}${i}${u(l)}`)}else e.push(n);for(let t of e)n.hasOwnProperty(t)||(n[t]={data:t,count:0})}for(let e in n){let t=n[e];l.push({value:t.data,count:t.count,label:t.label})}return{uniqueValueInfos:l}}function L(e,t,r,i){let n=null;switch(t){case"log":0!==e&&(n=Math.log(e)*Math.LOG10E);break;case"percent-of-total":Number.isFinite(i)&&0!==i&&(n=e/i*100);break;case"field":Number.isFinite(r)&&0!==r&&(n=e/r);break;case"natural-log":e>0&&(n=Math.log(e));break;case"square-root":e>0&&(n=e**.5)}return n}function A(e,t,r){let l=function(e){let{breakCount:t,field:r,normalizationField:n,normalizationType:l}=e,o=e.classificationMethod||"equal-interval",a="standard-deviation"===o?e.standardDeviationInterval||1:void 0,s="defined-interval"===o?e.definedInterval:void 0;return new i.A({breakCount:t,classificationField:r,classificationMethod:o,normalizationField:"field"===l?n:void 0,normalizationType:l,standardDeviationInterval:a,definedInterval:s})}({field:t.field,normalizationType:t.normalizationType,normalizationField:t.normalizationField,classificationMethod:t.classificationMethod,standardDeviationInterval:t.standardDeviationInterval,definedInterval:t.definedInterval,breakCount:t.numClasses||5});return e=function(e,t,r){let i=t??-1/0,n=r??1/0;return e.filter(e=>Number.isFinite(e)&&e>=i&&e<=n)}(e,t.minValue,t.maxValue),(0,n.t)({definition:l,values:e,normalizationTotal:t.normalizationTotal},r)}function O(e,t){let r=e.classBreaks,i=r.length,n=r[0]?.minValue,o=r[i-1]?.maxValue,a="standard-deviation"===t,s=l;return r=r.map(e=>{let t=e.label,r={minValue:e.minValue,maxValue:e.maxValue,label:t};if(a&&t){let e=t.match(s)?.map(e=>+e.trim())??[];2===e.length?(r.minStdDev=e[0],r.maxStdDev=e[1],e[0]<0&&e[1]>0&&(r.hasAvg=!0)):1===e.length&&(t.includes("<")?(r.minStdDev=null,r.maxStdDev=e[0]):t.includes(">")&&(r.minStdDev=e[0],r.maxStdDev=null))}return r}),{minValue:n,maxValue:o,classBreakInfos:r,normalizationTotal:e.normalizationTotal}}function P(e,t){let r=V(e,t);if(null==r.min&&null==r.max)return{bins:[],minValue:r.min,maxValue:r.max,normalizationTotal:t.normalizationTotal};let i=r.intervals,n=r.min??0,l=r.max??0,o=i.map((e,t)=>({minValue:i[t][0],maxValue:i[t][1],count:0}));for(let t of e)if(null!=t&&t>=n&&t<=l){let e=R(i,t);e>-1&&o[e].count++}return{bins:o,minValue:n,maxValue:l,normalizationTotal:t.normalizationTotal}}function V(e,t,r=!1){let{field:i,classificationMethod:n,standardDeviationInterval:l,definedInterval:o,normalizationType:a,normalizationField:s,normalizationTotal:u,minValue:p,maxValue:y}=t,f=t.numBins||10,h=null,m=null,g=null;if(n&&"equal-interval"!==n||a){let{classBreaks:t}=A(e,{field:i,normalizationType:a,normalizationField:s,normalizationTotal:u,classificationMethod:n,standardDeviationInterval:l,definedInterval:o,minValue:p,maxValue:y,numClasses:f},null!=p&&null!=y?[p,y]:void 0);h=t[0]?.minValue,m=t[t.length-1]?.maxValue,g=t.map(e=>[e.minValue,e.maxValue])}else{if(null!=p&&null!=y)h=p,m=y;else{let t=c({values:e,minValue:p,maxValue:y,useSampleStdDev:!a,supportsNullCount:d({normalizationType:a,normalizationField:s,minValue:p,maxValue:y})});h=t.min??null,m=t.max??null}g=function(e,t,r){let i,n=(t-e)/r,l=[],o=e;for(let e=1;e<=r;e++)i=o+n,i=Number(i.toFixed(16)),l.push([o,e===r?t:i]),o=i;return l}(h??0,m??0,f)}if(r&&g.length){let e=g.at(-1)[1];g.push([e,e])}return{min:h,max:m,intervals:g}}function R(e,t){let r=-1;for(let i=e.length-1;i>=0;i--)if(t>=e[i][0]){r=i;break}return r}},20816(e,t,r){r.d(t,{We:()=>a,ZJ:()=>s,w5:()=>u});var i=r(56507);const n=(0,r(13069).vD)(),l=new Map,o=new Map;async function a(e,t,r){if(!e||!r)return!1;if(!t)return!0;let n=new URL(e).host,o=l.get(n);if(!o){let t=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,"");o=(await(0,i.A)(t,{responseType:"json",query:{f:"json"}})).data.defaultVersionName}return o===t}async function s(e,t,i=!1){if(!e||!t)return!0;let l=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),a=o.get(l)?.entries();if(a)for(let[e,o]of a)if(o.name===t){let t=!o.stack?.hasForwardEdits();if(!t&&i){let[{deleteForwardEdits:t},{default:i}]=await Promise.all([r.e(2186).then(()=>r(32186)),r.e(2558).then(()=>r(32558))]),a=await t(l,e,new i({sessionId:n,moment:o.moment}));return a.success&&o.stack?.clearForwardEdits(),a.success}return t}return!0}function u(e,t){if(!e)return!1;let r=e.replace(/\/FeatureServer/i,"/VersionManagementServer").replace(/\/\d*$/,""),i=o.get(r)?.entries();if(i)for(let[e,r]of i)if(r.name===t)return"edit"===r.lockType;return!1}new Map,r.d(t,["TA",0,n,"Z3",0,l])}}]);