@arcgis/core 4.31.0-next.20240607 → 4.31.0-next.20240608

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 (79) hide show
  1. package/README.md +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{fa5e171c8ce844363b6c.js → 465c718f0b9f7ba0f1ea.js} +1 -1
  4. package/assets/esri/core/workers/chunks/4e2943968517e385bd12.js +1 -0
  5. package/assets/esri/core/workers/chunks/5f3600a6d7159228731d.js +1 -0
  6. package/assets/esri/core/workers/chunks/ace3297f0f314c3724da.js +1 -0
  7. package/assets/esri/core/workers/chunks/{342426c8a8c9f5f84811.js → b62e942e675d5770ea24.js} +1 -1
  8. package/assets/esri/core/workers/chunks/c660649465058ef82045.js +1 -0
  9. package/assets/esri/core/workers/chunks/{4faf7055457c04dc9fc1.js → cd03ad7dc45fbbeb1a2f.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{6a943f384fcd0af5888b.js → e66ebcfffd081f847efe.js} +1 -1
  11. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  12. package/assets/esri/libs/lyr3d/lyr3DWorker.wasm +0 -0
  13. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core-simd.wasm +0 -0
  14. package/assets/esri/rest/knowledgeGraph/wasmInterface/arcgis-knowledge-client-core.wasm +0 -0
  15. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +8 -0
  16. package/assets/esri/themes/base/widgets/_CatalogLayerList.scss +8 -0
  17. package/assets/esri/themes/base/widgets/_LayerList.scss +8 -0
  18. package/assets/esri/themes/base/widgets/_Print.scss +12 -0
  19. package/assets/esri/themes/base/widgets/_TableList.scss +8 -0
  20. package/assets/esri/themes/dark/main.css +1 -1
  21. package/assets/esri/themes/light/main.css +1 -1
  22. package/assets/esri/themes/light/view.css +1 -1
  23. package/chunks/Terrain.glsl.js +3 -1
  24. package/chunks/lyr3DWorker.js +1 -1
  25. package/interfaces.d.ts +152 -32
  26. package/layers/CatalogLayer.js +1 -1
  27. package/layers/MapImageLayer.js +1 -1
  28. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  29. package/layers/support/Sublayer.js +1 -1
  30. package/layers/support/arcgisLayers.js +1 -1
  31. package/package.json +1 -1
  32. package/smartMapping/renderers/size.js +1 -1
  33. package/support/elevationInfoUtils.js +1 -1
  34. package/support/revision.js +1 -1
  35. package/symbols/support/styleUtils.js +1 -1
  36. package/views/3d/analysis/Viewshed/FieldOfViewManipulation.js +1 -1
  37. package/views/3d/analysis/Viewshed/ScaleOrientManipulation.js +1 -1
  38. package/views/3d/analysis/Viewshed/ViewshedSubTool.js +1 -1
  39. package/views/3d/interactive/editingTools/manipulatorUtils.js +1 -1
  40. package/views/3d/interactive/editingTools/originGeometryVisualElementUtils.js +1 -1
  41. package/views/3d/layers/BuildingSceneLayerView3D.js +1 -1
  42. package/views/3d/layers/TiledLayerView3D.js +1 -1
  43. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  44. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  45. package/views/3d/state/NearFarHeuristic.js +1 -1
  46. package/views/3d/terrain/OverlayRenderer.js +1 -1
  47. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  48. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  49. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  50. package/webdoc/support/webdocSaveUtils.js +1 -1
  51. package/widgets/BasemapLayerList/css.js +1 -1
  52. package/widgets/BasemapLayerList.js +1 -1
  53. package/widgets/CatalogLayerList/css.js +1 -1
  54. package/widgets/CatalogLayerList.js +1 -1
  55. package/widgets/Feature/support/featureUtils.js +1 -1
  56. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  57. package/widgets/FeatureTable/FieldColumn.js +1 -1
  58. package/widgets/FeatureTable/Grid/Column.js +1 -1
  59. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  60. package/widgets/FeatureTable/RelationshipColumn.js +1 -1
  61. package/widgets/FeatureTable/support/FeatureStore.js +1 -1
  62. package/widgets/FeatureTable/support/tableUtils.js +1 -1
  63. package/widgets/FeatureTable.js +1 -1
  64. package/widgets/Features/FeaturesViewModel.js +1 -1
  65. package/widgets/Fullscreen.js +1 -1
  66. package/widgets/LayerList/css.js +1 -1
  67. package/widgets/LayerList.js +1 -1
  68. package/widgets/Locate.js +1 -1
  69. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  70. package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
  71. package/widgets/Print/PrintViewModel.js +1 -1
  72. package/widgets/Print.js +1 -1
  73. package/widgets/TableList/css.js +1 -1
  74. package/widgets/TableList.js +1 -1
  75. package/widgets/Track.js +1 -1
  76. package/assets/esri/core/workers/chunks/441f3eaef3b703dd1026.js +0 -1
  77. package/assets/esri/core/workers/chunks/ba988cd3a49987a0fb83.js +0 -1
  78. package/assets/esri/core/workers/chunks/c70683b7183458b338f8.js +0 -1
  79. package/assets/esri/core/workers/chunks/d03ada1212b13e76bff4.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6107,9377,3069,9062],{70668:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(90237),n=r(69540),s=r(25482),o=r(88930),l=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),d=r(40608),u=r(73133);let p=class extends((0,n.O)(s.oY)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.t)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,a.e)(u.j,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i._)([(0,l.MZ)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i._)([(0,d.$)("esri.TimeInterval")],p);const y=p},32587:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(62788),n=r(95488);class s{constructor(e){this._observable=new n.I,this._map=new Map(e)}get size(){return(0,i.gc)(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){const t=this._map.delete(e);return t&&this._observable.notify(),t}entries(){return(0,i.gc)(this._observable),this._map.entries()}forEach(e,t){(0,i.gc)(this._observable),this._map.forEach(((r,i)=>e.call(t,r,i,this)),t)}get(e){return(0,i.gc)(this._observable),this._map.get(e)}has(e){return(0,i.gc)(this._observable),this._map.has(e)}keys(){return(0,i.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._observable.notify(),this}values(){return(0,i.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,i.gc)(this._observable),this._map[Symbol.iterator]()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}},44794:(e,t,r)=>{r.d(t,{v:()=>l});var i=r(4718),n=r(62788),s=r(95488);class o{constructor(e,t){this._observable=new s.I,this._value=e,this._equalityFunction=t}get value(){return(0,n.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function l(e,t=i.gh){return new o(e,t)}},39516:(e,t,r)=>{async function i(e,t){const{WhereClause:i}=await Promise.all([r.e(835),r.e(4800)]).then(r.bind(r,50835));return i.create(e,t)}function n(e,t){return"1=1"===e?t??e:"1=1"===t?e??t:null!=e&&""!==e?null!=t&&""!==t?`(${e}) AND (${t})`:e:t}r.d(t,{G:()=>i,m:()=>n})},3330:(e,t,r)=>{r.d(t,{GB:()=>n,Qo:()=>o,Y4:()=>s});var i=r(96285);class n{}function s(e){return e instanceof i.bo?e===n.instance:"unknown"===e?.toString().toLowerCase()}function o(e){return s(e)?n.instance:e}n.instance=new i.oh("Etc/UTC")},13069:(e,t,r)=>{r.d(t,{lk:()=>n,vD:()=>o,yS:()=>s});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function s(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}},70328:(e,t,r)=>{r.d(t,{BI:()=>f,Ej:()=>u,Hq:()=>d,Ie:()=>h,Jt:()=>m,Ne:()=>p,RF:()=>l,aI:()=>_,fA:()=>s,hZ:()=>c,iT:()=>a,is:()=>g,qv:()=>v,vI:()=>y,v_:()=>w,vt:()=>n,w1:()=>o});var i=r(5443);function n(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,r,i,s,o,l=n()){return l[0]=e,l[1]=t,l[2]=r,l[3]=i,l[4]=s,l[5]=o,l}function o(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function a(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function d(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],o=e[2],l=e[3],a=e[4],d=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),o=Math.min(o,t[r+3*e+2]),l=Math.max(l,t[r+3*e]),a=Math.max(a,t[r+3*e+1]),d=Math.max(d,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=o,e[3]=l,e[4]=a,e[5]=d}function u(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function p(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function y(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function c(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?c(e,v):n(v)}function m(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function f(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function _(e,t,r){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(19419);const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];n()},79003:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ue});var i=r(90237),n=r(78888),s=r(5503),o=r(49186),l=r(91869),a=r(92071),d=r(74887),u=r(84952),p=r(10107),y=(r(44208),r(53966),r(87811),r(40608)),c=r(4146),h=r(36563),m=r(55359),f=r(32587),g=r(36708),_=r(44794),v=r(56507),w=r(63074),b=r(25036),M=r(10873),F=r(91880),x=r(1873);let Z=class extends((0,b.j)((0,w.dM)((0,a.P)(c.A)))){constructor(e){super(e),this._layerCache=new m.q(20,(e=>e.destroy())),this._oidToReference=new f.A,this._layerToReference=new Map,this.layers=new s.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,g.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 F.A({field:this.parent.objectIdField}):null}get _referenceComparator(){const e=this._orderBy;if(!this.parent||!e)return()=>0;const t=this.parent.fieldsIndex.get(e.field),r=(0,x.FM)(t?.toJSON().type,"descending"===e.order),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,l.Bs)(this._oidToReference,(({pending:e})=>null!=e))}acquireLayer(e){if(this.destroyed)return(0,h.hA)();const t=this._getLayerReference(e);return t.count++,(0,h.hA)((()=>{t.count--,t.count||this._destroyLayerReference(t)}))}_getLayerReference(e){const t=e.getObjectId();return(0,l.tE)(this._oidToReference,t,(()=>{const t=e.getObjectId(),r=`${t}`,i=e.getAttribute(this.parent.itemSourceField),n=new I(e,t,i),s=this._layerCache.pop(r);return s?(this._addLayer(n,s),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),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(const 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._)([(0,p.MZ)()],Z.prototype,"_orderBy",null),(0,i._)([(0,p.MZ)({readOnly:!0})],Z.prototype,"_referenceComparator",null),(0,i._)([(0,p.MZ)({type:["show","hide","hide-children"],json:{write:!0}})],Z.prototype,"listMode",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],Z.prototype,"fullExtent",null),(0,i._)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],Z.prototype,"id",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],Z.prototype,"layers",void 0),(0,i._)([(0,p.MZ)({type:v.jz,range:{min:0,max:50},json:{write:!0,default:10}})],Z.prototype,"maximumVisibleSublayers",void 0),(0,i._)([(0,p.MZ)(M.ke)],Z.prototype,"opacity",void 0),(0,i._)([(0,p.MZ)({clonable:!1})],Z.prototype,"parent",void 0),(0,i._)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],Z.prototype,"title",void 0),(0,i._)([(0,p.MZ)({json:{read:!1}})],Z.prototype,"type",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],Z.prototype,"updating",null),(0,i._)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],Z.prototype,"visible",void 0),Z=(0,i._)([(0,y.$)("esri.layers.catalog.CatalogDynamicGroupLayer")],Z);const T=Z;class I{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,_.v)(null)}get pending(){return this._pending.value}set pending(e){this._pending.value=e}}var S=r(13874),O=(r(86162),r(94409),r(65345),r(42980),r(39290),r(92438),r(96576)),j=(r(93618),r(65494),r(15036)),E=r(4718),A=r(35666),R=r(4206),N=r(87718),L=r(30524),V=r(81457),D=r(39383),B=r(30291),P=r(94985);let $=class extends((0,b.j)((0,N.F)((0,w.dM)((0,a.P)(c.A))))){constructor(e){super(e),this.charts=null,this.editingEnabled=!0,this.elevationInfo=null,this.formTemplate=null,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,L.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 effectiveEditingEnabled(){return!1}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}get preferredTimeZone(){return this.parent?.preferredTimeZone??null}set renderer(e){(0,L.yp)(e,this.fieldsIndex),this._set("renderer",e)}get renderer(){return this._isOverridden("renderer")?this._get("renderer"):function(){const e=new P.A({style:"solid",color:[0,0,0,0],outline:{style:"solid",color:[96,96,96,.75],width:.75}});return new O.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)}createPopupTemplate(e){const t={fields:this.fields,objectIdField:this.objectIdField,title:this.title};return(0,B.tn)(t,e)}createQuery(){return this.parent?.createQuery()}getField(e){return this.parent?.getField(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)}};(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"apiKey",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"capabilities",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"customParameters",null),(0,i._)([(0,p.MZ)()],$.prototype,"dateFieldsTimeZone",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"datesInUnknownTimezone",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"definitionExpression",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"editingInfo",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"effectiveCapabilities",null),(0,i._)([(0,p.MZ)({json:{origins:{"web-scene":{write:!1}},write:!0}})],$.prototype,"charts",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"createQueryVersion",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"defaultPopupTemplate",null),(0,i._)([(0,p.MZ)()],$.prototype,"displayField",null),(0,i._)([(0,p.MZ)({type:Boolean,nonNullable:!0,json:{name:"enableEditing",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],$.prototype,"editingEnabled",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,p.MZ)((()=>{const e=(0,E.o8)(M.Yj);return e.json.origins["web-map"]={read:!1,write:!1},e})())],$.prototype,"elevationInfo",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"fields",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"fieldsIndex",null),(0,i._)([(0,p.MZ)({type:R.A,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],$.prototype,"formTemplate",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"fullExtent",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"geometryFieldsInfo",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"geometryType",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"globalIdField",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"hasM",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"hasZ",null),(0,i._)([(0,p.MZ)({type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}},write:{ignoreOrigin:!0}}})],$.prototype,"id",void 0),(0,i._)([(0,p.MZ)({type:[V.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:D.w,write:!0}})],$.prototype,"labelingInfo",void 0),(0,i._)([(0,p.MZ)(M.kF)],$.prototype,"labelsVisible",void 0),(0,i._)([(0,p.MZ)(M.fV)],$.prototype,"legendEnabled",void 0),(0,i._)([(0,p.MZ)({type:["show","hide"],json:{write:!0}})],$.prototype,"listMode",void 0),(0,i._)([(0,p.MZ)((()=>{const e=(0,E.o8)(M.hG);return e.json.origins.service.read=!1,e})())],$.prototype,"maxScale",void 0),(0,i._)([(0,p.MZ)((()=>{const e=(0,E.o8)(M.hn);return e.json.origins.service.read=!1,e})())],$.prototype,"minScale",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"objectIdField",null),(0,i._)([(0,p.MZ)(M.ke)],$.prototype,"opacity",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"orderBy",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"outFields",null),(0,i._)([(0,p.MZ)({clonable:!1})],$.prototype,"parent",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"parsedUrl",null),(0,i._)([(0,p.MZ)(M.M6)],$.prototype,"popupEnabled",void 0),(0,i._)([(0,p.MZ)({type:S.A,json:{name:"popupInfo",write:!0}})],$.prototype,"popupTemplate",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"preferredTimeZone",null),(0,i._)([(0,p.MZ)({types:j.H,json:{origins:{"web-scene":{types:j.X}},name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy(e,t){return{ignoreOrigin:this.originIdOf(t)<A.Gr.PORTAL_ITEM}}}}})],$.prototype,"renderer",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"returnM",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"returnZ",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"source",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"timeExtent",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"timeInfo",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"timeOffset",null),(0,i._)([(0,p.MZ)({type:String,nonNullable:!0,json:{write:{ignoreOrigin:!0,isRequired:!0}}})],$.prototype,"title",void 0),(0,i._)([(0,p.MZ)({json:{read:!1}})],$.prototype,"type",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"typeIdField",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"types",null),(0,i._)([(0,p.MZ)({readOnly:!0})],$.prototype,"useViewTime",null),(0,i._)([(0,p.MZ)({type:Boolean,json:{name:"visibility",write:!0}})],$.prototype,"visible",void 0),$=(0,i._)([(0,y.$)("esri.layers.catalog.CatalogFootprintLayer")],$);const q=$;var U=r(72593),C=r(52136),G=r(18768),J=r(69208),z=r(47685),k=r(87796),Q=r(16131),Y=r(32756),K=r(8303),H=r(54310),X=r(82935),W=r(15426),ee=r(33143),te=r(17036),re=r(4513),ie=r(91908),ne=r(20655),se=r(80812),oe=r(61956);const le=(0,te.p)();function ae(e,t,r,i){const n=e.write({},i);(function(e){if(null==e)return!0;const t=Object.keys(e);return!t.length||1===t.length&&"id"===t[0]})(n)||(t[r]=n)}let de=class extends((0,k.j)((0,z.w6)((0,w.dM)((0,Y.f)((0,X.e)((0,b.j)((0,H.J)((0,G.b)((0,Q.q)((0,K.A)((0,a.P)((0,J.d)((0,C.p)(c.A)))))))))))))){constructor(e){super(e),this._portals=new Map,this._layerToFootprint=new WeakMap,this.drawOrderField="cd_draworder",this.dynamicGroupLayer=new T({parent:this}),this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.footprintLayer=new q({parent:this}),this.itemNameField="cd_itemname",this.itemSourceField="cd_itemsource",this.itemTypeField="cd_itemtype",this.layers=new s.A([this.dynamicGroupLayer,this.footprintLayer]),this.maxScaleField="cd_maxscale",this.minScaleField="cd_minscale",this.orderBy=null,this.outFields=null,this.supportedSourceTypes=new Set(["Catalog Layer"]),this.source=new U.default({layer:this,supportedSourceTypes:this.supportedSourceTypes}),this.type="catalog",this.typeIdField=null,this.types=null}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Feature Service"]},e).catch(d.QP).then((async()=>{const{url:e,source:r,portalItem:i}=this;if(!e)throw new o.A("catalog-layer:missing-url","Catalog layer must be created with a url");if(null==this.layerId){const 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});const{sourceJSON:n}=r;n&&(this.sourceJSON=n,this.read(n,{origin:"service",portalItem:i,portal:i?.portal,url:this.parsedUrl}))})).then((()=>{const 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})})).then((()=>(0,W.VA)(this,"load",e)));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.footprintLayer.destroy(),this.dynamicGroupLayer.destroy();for(const 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}get parsedUrl(){const e=(0,u.An)(this.url);return null!=e&&null!=this.layerId&&(e.path=(0,u.fj)(e.path,this.layerId.toString())),e}async applyEdits(e,t){return(0,W.ct)(this,e,t)}on(e,t){return super.on(e,t)}async createLayerFromFootprint(e){const 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(){const e=new oe.A,t=this.capabilities?.query;e.returnGeometry=!0,t&&(e.compactGeometryEnabled=t.supportsCompactGeometry,e.defaultSpatialReferenceEnabled=t.supportsDefaultSpatialReference),e.outFields=["*"];const{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,W.xd)(this.types,this.typeIdField,e)}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=t?.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this.getField(e)?.domain}async hasDataChanged(){return(0,W.jp)(this)}async queryFeatures(e,t){const r=await this.load(),i=await r.source.queryFeatures(oe.A.from(e)??r.createQuery(),t);if(i?.features)for(const e of i.features)e.layer=e.sourceLayer=r.footprintLayer;return i}async queryObjectIds(e,t){return(await this.load()).source.queryObjectIds(oe.A.from(e)??this.createQuery(),t)}async queryFeatureCount(e,t){return(await this.load()).source.queryFeatureCount(oe.A.from(e)??this.createQuery(),t)}async queryExtent(e,t){return(await this.load()).source.queryExtent(oe.A.from(e)??this.createQuery(),t)}serviceSupportsSpatialReference(e){return this.loaded&&(0,ie.D)(this,e)}read(e,t){if(super.read(e,t),e){const{footprintLayer:r,dynamicGroupLayer:i}=e;r&&this.footprintLayer.read(r,t),i&&this.dynamicGroupLayer.read(i,t)}}async _fetchFirstValidLayerId(e){const{data:t}=await(0,n.A)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e});if(Array.isArray(t?.layers))return t.layers.find((({type:e})=>this.supportedSourceTypes.has(e)))?.id}async _createLayer(e){const t=e.getAttribute(this.itemSourceField);if(!t)throw new o.A("catalog-layer:item-source-missing",`The footprint is missing the "${this.itemSourceField}" attribute`);const r=JSON.parse(t);if(function(e){return"object"==typeof e&&null!=e&&"itemId"in e&&"portalUrl"in e}(r)){const{itemId:e,portalUrl:t}=r,i=(0,l.tE)(this._portals,t,(()=>new ne.A({url:t})));return c.A.fromPortalItem(new se.default({id:e,portal:i}))}return function(e){return"object"==typeof e&&null!=e&&"url"in e}(r)?c.A.fromArcGISServerUrl({url:r.url}):new(await re.S.UnsupportedLayer())}_configureLayer(e,t){const r=t.getAttribute(this.itemNameField);r&&(e.title=r);const i=t.getAttribute(this.maxScaleField);null!=i&&"maxScale"in e&&(e.maxScale=i);const n=t.getAttribute(this.minScaleField);null!=n&&"minScale"in e&&(e.minScale=n)}};(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"createQueryVersion",null),(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"drawOrderField",void 0),(0,i._)([(0,p.MZ)({type:T,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:ae}}})],de.prototype,"dynamicGroupLayer",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"editingEnabled",null),(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"effectiveEditingEnabled",null),(0,i._)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.elevationInfo",read:!1,write:!1}}}})],de.prototype,"elevationInfo",void 0),(0,i._)([(0,p.MZ)({...le.fields,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],de.prototype,"fields",void 0),(0,i._)([(0,p.MZ)(le.fieldsIndex)],de.prototype,"fieldsIndex",void 0),(0,i._)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.floorInfo",read:!1,write:!1}}}})],de.prototype,"floorInfo",void 0),(0,i._)([(0,p.MZ)({type:q,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:ae}}})],de.prototype,"footprintLayer",void 0),(0,i._)([(0,p.MZ)(M.id)],de.prototype,"id",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"itemNameField",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"itemSourceField",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"itemTypeField",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"layers",void 0),(0,i._)([(0,p.MZ)({type:["show","hide","hide-children"]})],de.prototype,"listMode",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"maxScaleField",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"minScaleField",void 0),(0,i._)([(0,p.MZ)({value:"CatalogLayer",type:["CatalogLayer"]})],de.prototype,"operationalLayerType",void 0),(0,i._)([(0,p.MZ)({json:{origins:{"web-scene":{name:"layerDefinition.orderBy",write:!0,read:!0}}}})],de.prototype,"orderBy",void 0),(0,i._)([(0,p.MZ)(le.outFields)],de.prototype,"outFields",void 0),(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"parsedUrl",null),(0,i._)([(0,p.MZ)({readOnly:!0})],de.prototype,"source",void 0),(0,i._)([(0,p.MZ)({json:{read:!1}})],de.prototype,"type",void 0),(0,i._)([(0,p.MZ)({type:String})],de.prototype,"typeIdField",void 0),(0,i._)([(0,p.MZ)({type:[ee.A]})],de.prototype,"types",void 0),de=(0,i._)([(0,y.$)("esri.layers.CatalogLayer")],de);const ue=de},87718:(e,t,r)=>{r.d(t,{F:()=>I,Y:()=>T});var i,n=r(90237),s=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),l=r(49186),a=r(25482),d=r(93637),u=r(76369),p=r(59456),y=r(60945),c=r(66552),h=r(4718),m=r(61956);const f=new c.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),g=new c.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let _=i=class extends a.oY{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={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new m.A({geometry:(0,h.o8)(r),objectIds:(0,h.o8)(s),spatialRelationship:i,timeExtent:(0,h.o8)(n),where:t,units:o,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new i({geometry:(0,h.o8)(t),objectIds:(0,h.o8)(s),spatialRelationship:r,timeExtent:(0,h.o8)(n),where:e,units:o,distance:l})}};(0,n._)([(0,s.MZ)({type:String,json:{write:!0}})],_.prototype,"where",void 0),(0,n._)([(0,s.MZ)({types:p.yR,json:{write:!0}})],_.prototype,"geometry",void 0),(0,n._)([(0,s.MZ)({type:f.apiValues,json:{name:"spatialRel",read:{reader:f.read},write:{allowNull:!1,writer:f.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],_.prototype,"spatialRelationship",void 0),(0,n._)([(0,s.MZ)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],_.prototype,"distance",void 0),(0,n._)([(0,s.MZ)({type:[Number],json:{write:!0}})],_.prototype,"objectIds",void 0),(0,n._)([(0,s.MZ)({type:g.apiValues,json:{read:g.read,write:{writer:g.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],_.prototype,"units",void 0),(0,n._)([(0,s.MZ)({type:y.A,json:{write:!0}})],_.prototype,"timeExtent",void 0),_=i=(0,n._)([(0,o.$)("esri.layers.support.FeatureFilter")],_);const v=_;var w;const b={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},M={read:{reader:u.LF},write:{writer:u.M9,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},F={name:"showExcludedLabels",default:!0};let x=w=class extends a.oY{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new l.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 l.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 w({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n._)([(0,s.MZ)({type:v,json:{write:{allowNull:!0,writer(e,t,r,i){const n=e?.write({},i);n&&0!==Object.keys(n).length?(0,d.sM)(r,n,t):(0,d.sM)(r,null,t)}}}})],x.prototype,"filter",void 0),(0,n._)([(0,s.MZ)({json:{write:!0,origins:{"web-map":b,"portal-item":b}}})],x.prototype,"includedEffect",void 0),(0,n._)([(0,s.MZ)({json:{write:!0,origins:{"web-map":M,"portal-item":M}}})],x.prototype,"excludedEffect",void 0),(0,n._)([(0,s.MZ)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":F,"portal-item":F}}})],x.prototype,"excludedLabelsVisible",void 0),x=w=(0,n._)([(0,o.$)("esri.layers.support.FeatureEffect")],x);const Z={write:{allowNull:!0}},T={type:x,json:{origins:{"web-map":Z,"portal-item":Z}}},I=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,n._)([(0,s.MZ)(T)],t.prototype,"featureEffect",void 0),t=(0,n._)([(0,o.$)("esri.layers.mixins.FeatureEffectLayer")],t),t}},32756:(e,t,r)=>{r.d(t,{f:()=>d,n:()=>a});var i=r(90237),n=r(93637),s=r(10107),o=(r(44208),r(53966),r(87811),r(40608)),l=r(91880);const a={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:function(e,t,r){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const n=new l.A;return n.read(i,r),[n]}},write:{writer:function(e,t,r,i){const s=e.find((e=>!!e.field));s&&(0,n.sM)(r,[s.toJSON()],t)}}}},d=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,i._)([(0,s.MZ)(a)],t.prototype,"orderBy",void 0),t=(0,i._)([(0,o.$)("esri.layers.mixins.OrderedLayer")],t),t}},82935:(e,t,r)=>{r.d(t,{B:()=>c,e:()=>h});var i=r(90237),n=r(60945),s=r(70668),o=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),d=r(89317),u=r(30524),p=r(96184),y=r(73133);const c={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:d.K}}},h=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=y.j.fromJSON(r.timeOffsetUnits);return i&&n?new s.A({value:i,unit:n}):null}set timeInfo(e){(0,u.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,o.MZ)({type:n.A,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,o.MZ)({type:s.A})],t.prototype,"timeOffset",void 0),(0,i._)([(0,l.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,o.MZ)({value:null,type:p.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,o.MZ)(c)],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,a.$)("esri.layers.mixins.TemporalLayer")],t),t}},33143:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(90237),n=r(69540),s=r(25482),o=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),a=r(40608),d=r(43937),u=r(72088),p=r(29005);let y=class extends((0,n.O)(s.oY)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,u.rS)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i._)([(0,o.MZ)({json:{write:!0}})],y.prototype,"id",void 0),(0,i._)([(0,o.MZ)({json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,o.MZ)({json:{write:!0}})],y.prototype,"domains",void 0),(0,i._)([(0,l.w)("domains")],y.prototype,"readDomains",null),(0,i._)([(0,d.K)("domains")],y.prototype,"writeDomains",null),(0,i._)([(0,o.MZ)({type:[p.A],json:{write:!0}})],y.prototype,"templates",void 0),y=(0,i._)([(0,a.$)("esri.layers.support.FeatureType")],y);const c=y},20437:(e,t,r)=>{r.d(t,{A:()=>f});var i,n=r(90237),s=r(66552),o=r(25482),l=r(10107),a=r(56507),d=(r(87811),r(44208),r(93223)),u=r(36005),p=r(40608),y=r(72088),c=r(98453);const h=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=i=class extends o.oY{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?h.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,n._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,n._)([(0,l.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,n._)([(0,l.MZ)()],m.prototype,"description",void 0),(0,n._)([(0,u.w)("description")],m.prototype,"readDescription",null),(0,n._)([(0,l.MZ)({types:y.gK,json:{read:{reader:y.rS},write:!0}})],m.prototype,"domain",void 0),(0,n._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,n._)([(0,l.MZ)({type:a.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,n._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,n._)([(0,d.e)(c.m)],m.prototype,"type",void 0),(0,n._)([(0,l.MZ)()],m.prototype,"valueType",void 0),(0,n._)([(0,u.w)("valueType",["description"])],m.prototype,"readValueType",null),(0,n._)([(0,l.MZ)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=i=(0,n._)([(0,p.$)("esri.layers.support.Field")],m);const f=m},95466:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(49186),n=r(25482),s=r(53966),o=r(91869),l=r(3330),a=r(30524),d=r(56400),u=r(96285);const p=new Map;class y{static fromJSON(e){return new y(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new y(e.fields??[],f(e))}static fromLayerJSON(e){return new y(e.fields??[],f(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const r=[];for(const e of this.fields){const t=e?.name,i=h(t);if(t&&i){const n=c(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(i,e),r.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,a.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,a.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,a.te)(e)||(0,a.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}r.sort(),this.uid=r.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,a.te)(e)||(0,a.Xz)(e)||e.nullable||void 0!==(0,a.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(c(e))??this._normalizedFieldsMap.get(h(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").error(new i.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),d.n$):m.has(t.type)?d.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===d.L5?l.GB.instance:t===d.n$?u.mQ.utcInstance:(0,o.tE)(p,t,(()=>u.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,a.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>(0,n.Wj)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function c(e){return e.trim().toLowerCase()}function h(e){return(0,a.rS)(e)?.toLowerCase()??""}const m=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function f(e){const t=new Map;if(!e.fields)return t;const r=!0===e.datesInUnknownTimezone,{timeInfo:i,editFieldsInfo:n}=e,s=(i?"startField"in i?i.startField:i.startTimeField:"")??"",o=(i?"endField"in i?i.endField:i.endTimeField:"")??"",l=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,d.ZS)(e.dateFieldsTimeReference):null,a=n?function(e){return"timeZone"in e}(n)?n.timeZone??l:n.dateFieldsTimeReference?(0,d.ZS)(n.dateFieldsTimeReference):l??d.n$:null,u=i?function(e){return"timeZone"in e}(i)?i.timeZone??l:i.timeReference?(0,d.ZS)(i.timeReference):l:null,p=new Map([[c(n?.creationDateField??""),a],[c(n?.editDateField??""),a],[c(s),u],[c(o),u]]);for(const{name:i,type:n}of e.fields)if(m.has(n))t.set(i,d.L5);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(i,null);else if(r)t.set(i,d.L5);else{const e=p.get(c(i??""))??l;t.set(i,e)}return t}},91880:(e,t,r)=>{r.d(t,{A:()=>p});var i,n=r(90237),s=r(66552),o=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));const d=new s.J({asc:"ascending",desc:"descending"});let u=i=class extends o.oY{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._)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n._)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n._)([(0,l.MZ)({type:d.apiValues,json:{type:d.jsonValues,read:d.read,write:d.write}})],u.prototype,"order",void 0),u=i=(0,n._)([(0,a.$)("esri.layers.support.OrderByInfo")],u);const p=u},96184:(e,t,r)=>{r.d(t,{A:()=>m});var i=r(90237),n=r(60945),s=r(70668),o=r(69540),l=r(25482),a=r(10107),d=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),y=r(56400);function c(e,t){return s.A.fromJSON({value:e,unit:t})}let h=class extends((0,o.O)(l.oY)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?n.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?c(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?c(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,a.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,a.MZ)({type:n.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,d.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,p.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,a.MZ)({type:s.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,d.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,p.K)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,a.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,a.MZ)((0,y.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),(0,i._)([(0,a.MZ)({type:[Date],json:{read:!1}})],h.prototype,"stops",void 0),h=(0,i._)([(0,u.$)("esri.layers.support.TimeInfo")],h);const m=h},72088:(e,t,r)=>{r.d(t,{rS:()=>x,gK:()=>F}),r(44208);var i,n=r(90237),s=r(4718),o=r(10107),l=(r(53966),r(93223)),a=r(40608),d=r(25482);r(87811);let u=i=class extends d.oY{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,n._)([(0,o.MZ)({type:[String,Number],json:{write:!0}})],u.prototype,"code",void 0),u=i=(0,n._)([(0,a.$)("esri.layers.support.CodedValue")],u);const p=new(r(66552).J)({inherited:"inherited",codedValue:"coded-value",range:"range"});let y=class extends d.oY{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,n._)([(0,l.e)(p)],y.prototype,"type",void 0),y=(0,n._)([(0,a.$)("esri.layers.support.Domain")],y);const c=y;var h;let m=h=class extends c{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new h({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,n._)([(0,o.MZ)({type:[u],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,n._)([(0,l.e)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=h=(0,n._)([(0,a.$)("esri.layers.support.CodedValueDomain")],m);const f=m;var g;r(49186);let _=g=class extends c{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,n._)([(0,l.e)({inherited:"inherited"})],_.prototype,"type",void 0),_=g=(0,n._)([(0,a.$)("esri.layers.support.InheritedDomain")],_);const v=_;var w;let b=w=class extends c{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new w({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],b.prototype,"maxValue",void 0),(0,n._)([(0,o.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],b.prototype,"minValue",void 0),(0,n._)([(0,l.e)({range:"range"})],b.prototype,"type",void 0),b=w=(0,n._)([(0,a.$)("esri.layers.support.RangeDomain")],b);const M=b,F={key:"type",base:c,typeMap:{range:b,"coded-value":f,inherited:v}};function x(e){if(!e?.type)return null;switch(e.type){case"range":return M.fromJSON(e);case"codedValue":return f.fromJSON(e);case"inherited":return v.fromJSON(e)}return null}},17036:(e,t,r)=>{r.d(t,{p:()=>a});var i=r(44208),n=r(53966),s=r(20437),o=r(95466),l=r(30524);function a(){return{fields:{type:[s.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter((e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8));if(t.length){const e=t.map((e=>`'${e.name}'`)).join(", ");n.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||n.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},98453:(e,t,r)=>{r.d(t,{m:()=>i});const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})},32730:(e,t,r)=>{r.d(t,{BI:()=>f,D3:()=>h,XJ:()=>m,lc:()=>c,mX:()=>_,rU:()=>g,tH:()=>F});var i=r(799);const n="__begin__",s="__end__",o=new RegExp(n,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+n,"i"),d=new RegExp(s+"$","i"),u='"',p=u+" + ",y=" + "+u;function c(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function h(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function m(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=c(e.labelExpression),t.type="conventional"),t}function f(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return _(t.expression);case"arcade":return t.expression}return null}function g(e){const t=m(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e?.match(v);return t?.[1].trim()||null}(t.expression);case"arcade":return F(t.expression)}return null}function _(e){let t;return e?(t=(0,i.HC)(e,(e=>n+'$feature["'+e+'"]'+s)),t=a.test(t)?t.replace(a,""):u+t,t=d.test(t)?t.replace(d,""):t+u,t=t.replaceAll(o,p).replaceAll(l,y)):t='""',t}const v=/^\s*\{([^}]+)\}\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,M=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function F(e){if(!e)return null;let t=w.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=M.exec(e),t?t[2]:null)}},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},96520:(e,t,r)=>{r.d(t,{u:()=>o});var i=r(83047),n=r(21325);function s(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function o(e,t,r){if(!e&&!t||!r)return;const n=(0,i.G9)(r);l(e,r,n),l(t,r,n)}function l(e,t,r){if(e)for(const i of e)a(i.geometry,t,r)}function a(e,t,r){if(!e?.spatialReference||(0,n.aI)(e.spatialReference,t))return;const o=(0,i.G9)(e.spatialReference)/r;if(1!==o)if("x"in e)null!=e.z&&(e.z*=o);else if("rings"in e)s(e,e.rings,o);else if("paths"in e)s(e,e.paths,o);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=o)}},58501:(e,t,r)=>{r.d(t,{q:()=>n});var i=r(62815);function n(e,t,r){if(!r?.features||!r.hasZ)return;const n=(0,i.N)(r.geometryType,t,e.outSpatialReference);if(null!=n)for(const e of r.features)n(e.geometry)}},22671:(e,t,r)=>{r.d(t,{A:()=>v});var i,n=r(90237),s=r(59456),o=r(52106),l=r(66552),a=r(25482),d=r(4718),u=r(10107),p=(r(44208),r(53966),r(36005)),y=r(40608),c=r(43937),h=r(16930),m=r(65864),f=r(20437);const g=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let _=i=class extends a.oY{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){const r=h.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],s=o.A.fromJSON(n),l=n.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=r);const a=n.aggregateGeometries,d=s.aggregateGeometries;if(a&&null!=d)for(const e in d){const t=d[e],i=a[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}i.push(s)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,m.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=h.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const 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,d.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){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,s=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((n-e)/r)));for(let e=0,t=s.length;e<t;e++)o?.(s[e].geometry)||(s.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[s,o]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const d=this._getHydrationFunction(e,(e=>e*s+i),(e=>n-e*o),l,a);for(const{geometry:e}of t)null!=e&&d&&d(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,n;const s=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=r(l[1]);e===i&&o===n||(s.push([e-i,o-n]),i=e,n=o)}else i=t(l[0]),n=r(l[1]),s.push([i,n])}return s.length>0?s: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=>{const i=(0,m.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,s=i.length;e<s;e++){const s=i[e],o=this._quantizePoints(s,t,r);o&&n.push(o)}return n.length>0?((0,m.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const 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=>{const s=(0,m.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],l+=n[1]):(o=n[0],l=n[1]),n[0]=t(o),n[1]=r(l)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];for(let e=0,r=t.length;e<r;e++){const 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=>{const s=e.points;let o,l;for(let e=0,i=s.length;e<i;e++){const i=s[e];e>0?(o+=i[0],l+=i[1]):(o=i[0],l=i[1]),i[0]=t(o),i[1]=r(l)}if(i&&n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){const t=s[e];t[2]=n(t[2])}}:null}};(0,n._)([(0,u.MZ)({type:String,json:{write:!0}})],_.prototype,"displayFieldName",void 0),(0,n._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,u.MZ)({type:[o.A],json:{write:!0}})],_.prototype,"features",void 0),(0,n._)([(0,p.w)("features")],_.prototype,"readFeatures",null),(0,n._)([(0,u.MZ)({type:[f.A],json:{write:!0}})],_.prototype,"fields",void 0),(0,n._)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],_.prototype,"geometryType",void 0),(0,n._)([(0,c.K)("geometryType")],_.prototype,"writeGeometryType",null),(0,n._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasM",void 0),(0,n._)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],_.prototype,"hasZ",void 0),(0,n._)([(0,u.MZ)({types:s.yR,json:{write:!0}})],_.prototype,"queryGeometry",void 0),(0,n._)([(0,p.w)("queryGeometry")],_.prototype,"readQueryGeometry",null),(0,n._)([(0,u.MZ)({type:h.A,json:{write:!0}})],_.prototype,"spatialReference",void 0),(0,n._)([(0,c.K)("spatialReference")],_.prototype,"writeSpatialReference",null),(0,n._)([(0,u.MZ)({json:{write:!0}})],_.prototype,"transform",void 0),_=i=(0,n._)([(0,y.$)("esri.rest.support.FeatureSet")],_),_.prototype.toJSON.isDefaultToJSON=!0;const v=_}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1132],{52106:(e,t,i)=>{i.d(t,{A:()=>g});var s,r=i(90237),l=i(59456),n=i(13874),o=i(61147),a=i(69540),u=i(51447),p=i(25482),c=i(53966),h=i(36708),d=i(24326),y=i(10107),m=(i(44208),i(87811),i(40608)),f=i(65864);function b(e){if(null==e)return null;const t={};for(const i in e){const s=e[i];s&&(t[i]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let v=s=class extends((0,a.O)(p.oY)){constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,u.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const i of[t,this.sourceLayer,this.layer])if(i){if("popupTemplate"in i&&i.popupTemplate)return i.popupTemplate;if(e&&"defaultPopupTemplate"in i&&null!=i.defaultPopupTemplate)return i.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:b(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,p.Wj)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,s){if(!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(r.action=s),"attributes"===e&&(r.attributeName=s),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)((()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0),(({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())})),(0,h.z7)((()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0),(()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)}),{equals:(e,t)=>e===t,sync:!0})])}};(0,r._)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const s=(0,f.rS)(e[i]);s&&(t[i]=s)}return 0!==Object.keys(t).length?t:null}}})],v.prototype,"aggregateGeometries",null),(0,r._)([(0,y.MZ)({value:null})],v.prototype,"attributes",null),(0,r._)([(0,y.MZ)({value:null,types:l.yR,json:{read:f.rS}})],v.prototype,"geometry",null),(0,r._)([(0,y.MZ)({type:Boolean})],v.prototype,"isAggregate",void 0),(0,r._)([(0,y.MZ)({clonable:"reference"})],v.prototype,"layer",void 0),(0,r._)([(0,y.MZ)({clonable:"reference"})],v.prototype,"origin",void 0),(0,r._)([(0,y.MZ)({type:n.A})],v.prototype,"popupTemplate",void 0),(0,r._)([(0,y.MZ)({clonable:"reference"})],v.prototype,"sourceLayer",void 0),(0,r._)([(0,y.MZ)({value:null,types:o.Es})],v.prototype,"symbol",null),(0,r._)([(0,y.MZ)({type:Boolean,value:!0})],v.prototype,"visible",null),v=s=(0,r._)([(0,m.$)("esri.Graphic")],v),(v||(v={})).generateUID=d.c;const g=v},85334:(e,t,i)=>{function s(e){return"r"in e&&"g"in e&&"b"in e}function r(e){return"h"in e&&"s"in e&&"v"in e}function l(e){return"l"in e&&"a"in e&&"b"in e}function n(e){return"l"in e&&"c"in e&&"h"in e}i.d(t,{$:()=>y,IB:()=>s,N2:()=>m,RH:()=>b,ZD:()=>f}),i(68197),i(87317),i(91829);const o=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],a=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function u(e,t){const i=[];let s,r;if(e[0].length!==t.length)throw new Error("dimensions do not match");const l=e.length,n=e[0].length;let o=0;for(s=0;s<l;s++){for(o=0,r=0;r<n;r++)o+=e[s][r]*t[r];i.push(o)}return i}function p(e){const t=[e.r/255,e.g/255,e.b/255].map((e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4)),i=u(o,t);return{x:100*i[0],y:100*i[1],z:100*i[2]}}function c(e){const t=u(a,[e.x/100,e.y/100,e.z/100]).map((e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))}));return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function h(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map((e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29));return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function d(e){const t=e.l,i=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map((e=>e>6/29?e**3:3*(6/29)**2*(e-4/29)));return{x:95.047*i[0],y:100*i[1],z:108.883*i[2]}}function y(e){return s(e)?e:n(e)?function(e){return c(d(function(e){const t=e.l,i=e.c,s=e.h;return{l:t,a:i*Math.cos(s),b:i*Math.sin(s)}}(e)))}(e):l(e)?function(e){return c(d(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?c(e):r(e)?function(e){const t=(e.h+360)%360/60,i=e.s/100,s=e.v/100*255,r=s*i,l=r*(1-Math.abs(t%2-1));let n;switch(Math.floor(t)){case 0:n={r,g:l,b:0};break;case 1:n={r:l,g:r,b:0};break;case 2:n={r:0,g:r,b:l};break;case 3:n={r:0,g:l,b:r};break;case 4:n={r:l,g:0,b:r};break;case 5:case 6:n={r,g:0,b:l};break;default:n={r:0,g:0,b:0}}return n.r=Math.round(n.r+s-r),n.g=Math.round(n.g+s-r),n.b=Math.round(n.b+s-r),n}(e):e}function m(e){return r(e)?e:function(e){const t=e.r,i=e.g,s=e.b,r=Math.max(t,i,s),l=r-Math.min(t,i,s);let n=r,o=0===l?0:r===t?(i-s)/l%6:r===i?(s-t)/l+2:(t-i)/l+4,a=0===l?0:l/n;return o<0&&(o+=6),o*=60,a*=100,n*=100/255,{h:o,s:a,v:n}}(y(e))}function f(e){return l(e)?e:function(e){return h(p(e))}(y(e))}function b(e){return n(e)?e:function(e){return function(e){const t=e.l,i=e.a,s=e.b,r=Math.sqrt(i*i+s*s);let l=Math.atan2(s,i);return l=l>0?l:l+2*Math.PI,{l:t,c:r,h:l}}(h(p(e)))}(y(e))}var v,g;(g=v||(v={}))[g.Low=160]="Low",g[g.High=225]="High"},21818:(e,t,i)=>{function s(e){}i.d(t,{Xb:()=>s}),i(44208)},86162:(e,t,i)=>{i.d(t,{A:()=>A});var s,r=i(90237),l=i(61147),n=i(66552),o=i(4718),a=i(53966),u=i(10107),p=i(79901),c=i(93223),h=i(36005),d=i(40608),y=i(43937),m=i(56507),f=i(30524),b=i(92438),v=i(38043),g=i(88542),w=i(49849),_=i(86768),V=i(71386);const S="percent-of-total",x="field",M=new n.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),z=(0,m.dp)(g.A);let I=s=class extends((0,v.h)(b.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map((e=>{const t=new g.A;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t}))}writeClassBreakInfos(e,t,i,s){const r=e.map((e=>e.write({},s)));this._areClassBreaksConsecutive()&&r.forEach((e=>delete e.classMinValue)),t[i]=r}castField(e){return null==e?e:"function"==typeof e?(a.A.getLogger(this).error(".field: field must be a string value"),null):(0,m.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&x||i&&S||null,t&&i&&a.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new g.A({minValue:e,maxValue:t,symbol:(0,l.dp)(i)}):z((0,o.o8)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&a.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,V.lw)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void a.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==t?.arcade){const e=await(0,V.lw)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.o8)(this.visualVariables),legendOptions:(0,o.o8)(this.legendOptions),authoringInfo:(0,o.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,f.Dx)(e,t,this.valueExpression)];(0,f.rq)(e,t,this.field),(0,f.rq)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l,timeZone:n}=t??{},{valueExpression:o}=this;let a=this._compiledValueExpression.valueExpression===o?this._compiledValueExpression.compiledFunction:null;const u=l.arcadeUtils;if(!a){const e=u.createSyntaxTree(o);a=u.createFunction(e),this._compiledValueExpression.compiledFunction=a}this._compiledValueExpression.valueExpression=o;const p=u.executeFunction(a,u.createExecContext(e,u.getViewInfo({viewingMode:i,scale:s,spatialReference:r}),n));return this._getBreakIndexfromInfos(p)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let r=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)r=Math.log(r)*Math.LOG10E;else if(s!==S||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(r)||isNaN(t))return-1;r/=t}}else r=r/e*100}return this._getBreakIndexfromInfos(r)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,r._)([(0,u.MZ)(w.As)],I.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,u.MZ)({type:[g.A]})],I.prototype,"classBreakInfos",void 0),(0,r._)([(0,h.w)("classBreakInfos")],I.prototype,"readClassBreakInfos",null),(0,r._)([(0,y.K)("classBreakInfos")],I.prototype,"writeClassBreakInfos",null),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"defaultLabel",void 0),(0,r._)([(0,u.MZ)(w.z4)],I.prototype,"defaultSymbol",void 0),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"field",void 0),(0,r._)([(0,p.w)("field")],I.prototype,"castField",null),(0,r._)([(0,u.MZ)({type:Boolean})],I.prototype,"isMaxInclusive",void 0),(0,r._)([(0,u.MZ)({type:_.q,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,r._)([(0,u.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],I.prototype,"minValue",null),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:e=>(0,m.GB)(e),json:{write:!0}})],I.prototype,"normalizationTotal",void 0),(0,r._)([(0,u.MZ)({type:M.apiValues,value:null,json:{type:M.jsonValues,read:M.read,write:M.write}})],I.prototype,"normalizationType",null),(0,r._)([(0,c.e)({classBreaks:"class-breaks"})],I.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpressionTitle",void 0),I=s=(0,r._)([(0,d.$)("esri.renderers.ClassBreaksRenderer")],I);const A=I},92438:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(90237),r=i(66552),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(30943);const u=new r.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends l.oY{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,n.MZ)({type:a.A,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,n.MZ)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],p.prototype,"type",void 0),p=(0,s._)([(0,o.$)("esri.renderers.Renderer")],p);const c=p},93618:(e,t,i)=>{i.d(t,{A:()=>G});var s=i(90237),r=i(61147),l=i(49186),n=i(4718),o=i(53966),a=i(93637),u=i(36708),p=i(10107),c=i(79901),h=i(93223),d=i(36005),y=i(40608),m=i(43937),f=i(6797),b=i(56507),v=i(30524),g=i(20655),w=i(92438),_=i(38043),V=i(49849),S=i(86768),x=i(69540),M=i(25482);i(44208),i(87811);let z=class extends((0,x.O)(M.oY)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s._)([(0,p.MZ)(V.Ug)],z.prototype,"value",void 0),(0,s._)([(0,p.MZ)(V.Ug)],z.prototype,"value2",void 0),(0,s._)([(0,p.MZ)(V.Ug)],z.prototype,"value3",void 0),z=(0,s._)([(0,y.$)("esri.renderers.support.UniqueValue")],z);const I=z;var A=i(4576);let j=class extends((0,x.O)(M.oY)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map((e=>new I({value:e}))):"object"===t?e[0]instanceof I?e:e.map((e=>new I(e))):null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],j.prototype,"description",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],j.prototype,"label",void 0),(0,s._)([(0,p.MZ)(V.z4)],j.prototype,"symbol",void 0),(0,s._)([(0,p.MZ)({type:[I],json:{type:[[String]],read:{reader:e=>e?e.map((e=>new I({value:e[0],value2:e[1],value3:e[2]}))):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(A.Ru).map((e=>e.toString()));i.push(e)}t.values=i}}}})],j.prototype,"values",void 0),(0,s._)([(0,c.w)("values")],j.prototype,"castValues",null),j=(0,s._)([(0,y.$)("esri.renderers.support.UniqueValueClass")],j);const Z=j;let F=class extends((0,x.O)(M.oY)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],F.prototype,"heading",void 0),(0,s._)([(0,p.MZ)({type:[Z],json:{write:!0}})],F.prototype,"classes",void 0),F=(0,s._)([(0,y.$)("esri.renderers.support.UniqueValueGroup")],F);const q=F;var E,k=i(94833),T=i(71386),O=i(97159),C=i(66896),U=i(37757);const D="esri.renderers.UniqueValueRenderer",N=()=>o.A.getLogger(D),$="uvInfos-watcher",L="uvGroups-watcher",B=(0,b.dp)(k.A);let R=E=class extends((0,_.h)(w.A)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let r=0;r<t.length;r++){const l=e.find((e=>e.value===t[r].value));l?(0,f.Ui)(l,t[r])?(s.changed.push({type:"complete",oldValue:l,newValue:t[r]}),i=!0):s.unchanged.push({oldValue:l,newValue:t[r]}):(s.added.push(t[r]),i=!0)}for(let r=0;r<e.length;r++)t.find((t=>t.value===e[r].value))||(s.removed.push(e[r]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,b.GX)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?s.messages.push(new l.A("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):N().error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||g.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,O.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,O.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?N().error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?N().error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void N().error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?B(e):new k.A({value:e,symbol:(0,r.dp)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[i.value]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void N().error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++){const s=t[i];if(String(s.value)===String(e)){delete this._valueInfoMap[e],t.splice(i,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,T.lw)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void N().error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i?.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==i?.arcade){const e=await(0,T.lw)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s?.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce(((e,t)=>e+t.getMeshHash()),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new E({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.o8)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.o8)(this.visualVariables),legendOptions:(0,n.o8)(this.legendOptions),authoringInfo:(0,n.o8)(this.authoringInfo),backgroundFillSymbol:(0,n.o8)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.o8)(this.uniqueValueInfos),i=(0,n.o8)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.o8)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,v.Dx)(e,t,this.valueExpression)];(0,v.rq)(e,t,this.field),(0,v.rq)(e,t,this.field2),(0,v.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,C.cF)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e?.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new U.A({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const r=new k.A({value:i.name,symbol:s});t.push(r),this._valueInfoMap[i.name]=r})),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[t.value+""]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles($);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,u.wB)((()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description})),((e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)}),{sync:!0}));this.addHandles(t,$)}}_watchUniqueValueGroups(){this.removeHandles(L);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,u.wB)((()=>({classes:i.classes})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}));for(const e of i.classes??[])t.push((0,u.wB)((()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}))}this.addHandles(t,L)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueGroups:l,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of l)for(const l of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=l;for(const l of a??[]){const{value:a,value2:p,value3:c}=l,h=[a];i&&h.push(p),s&&h.push(c);const d=o?h.join(r||""):h[0]??void 0;e.push(new k.A({symbol:t,label:n,value:d,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:r,uniqueValueInfos:l}=this;if(!t&&!s||!l.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=l.map((e=>{const{symbol:t,label:i,value:s,description:l}=e,[o,a,u]=n?s?.toString()?.split(r||"")||[]:[s];return new Z({symbol:t,label:i,description:l,values:[new I({value:o,value2:a,value3:u})]})})),a=[new q({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l,timeZone:n}=t??{};let o=this._cache.compiledFunc;const a=l.arcadeUtils;if(!o){const e=a.createSyntaxTree(this.valueExpression);o=a.createFunction(e),this._cache.compiledFunc=o}const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:r}),n));return this._valueInfoMap[u+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if(this.field2){const e=this.field2,r=this.field3,l=[];t&&l.push(i[t]),e&&l.push(i[e]),r&&l.push(i[r]),s=l.join(this.fieldDelimiter||"")}else t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new E(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||g.A.getDefault());const s=i.populateFromStyle();return s.catch((t=>{N().error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),s}static fromStyleUrl(e,t){const i=new E(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch((t=>{N().error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),s}};(0,s._)([(0,p.MZ)({readOnly:!0})],R.prototype,"_cache",null),(0,s._)([(0,h.e)({uniqueValue:"unique-value"})],R.prototype,"type",void 0),(0,s._)([(0,p.MZ)(V.As)],R.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,p.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],R.prototype,"field",null),(0,s._)([(0,c.w)("field")],R.prototype,"castField",null),(0,s._)([(0,m.K)("field")],R.prototype,"writeField",null),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field2",null),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"field3",null),(0,s._)([(0,p.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],R.prototype,"orderByClassesEnabled",void 0),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"valueExpression",null),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],R.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,p.MZ)({type:S.q,json:{write:!0}})],R.prototype,"legendOptions",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],R.prototype,"defaultLabel",void 0),(0,s._)([(0,p.MZ)((0,a.$N)({...V.z4},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],R.prototype,"defaultSymbol",null),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],R.prototype,"fieldDelimiter",null),(0,s._)([(0,p.MZ)({type:g.A,readOnly:!0})],R.prototype,"portal",void 0),(0,s._)([(0,d.w)("portal",["styleName"])],R.prototype,"readPortal",null),(0,s._)([(0,p.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],R.prototype,"styleOrigin",void 0),(0,s._)([(0,d.w)("styleOrigin",["styleName","styleUrl"])],R.prototype,"readStyleOrigin",null),(0,s._)([(0,m.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],R.prototype,"writeStyleOrigin",null),(0,s._)([(0,p.MZ)({type:[q],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueInfos:l,valueExpression:n}=e,o=!(!t||!i);return[{classes:(l??[]).map((e=>{const{symbol:l,label:a,value:u,description:p}=e,[c,h,d]=o?u?.toString()?.split(r||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(h),s&&y.push(d),{symbol:l,label:a,values:[y],description:p}}))}]}(t)).map((e=>q.fromJSON(e,i)))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],R.prototype,"uniqueValueGroups",null),(0,s._)([(0,p.MZ)({type:[k.A],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],R.prototype,"uniqueValueInfos",null),R=E=(0,s._)([(0,y.$)(D)],R);const G=R},38043:(e,t,i)=>{i.d(t,{h:()=>E});var s=i(90237),r=i(10107),l=(i(44208),i(53966)),n=(i(87811),i(36005)),o=i(40608),a=i(43937),u=i(30524);const p=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var c,h=i(2024),d=i(2795),y=i(25482),m=i(56507),f=i(78553);let b=c=class extends y.oY{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,f.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,f.p)(e)}clone(){return new c({label:this.label,opacity:this.opacity,value:this.value})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],b.prototype,"label",void 0),(0,s._)([(0,r.MZ)({type:Number,json:{type:m.jz,write:{target:"transparency"}}})],b.prototype,"opacity",void 0),(0,s._)([(0,n.w)("opacity",["transparency"])],b.prototype,"readOpacity",null),(0,s._)([(0,a.K)("opacity")],b.prototype,"writeOpacity",null),(0,s._)([(0,r.MZ)({type:Number,json:{write:!0}})],b.prototype,"value",void 0),b=c=(0,s._)([(0,o.$)("esri.renderers.visualVariables.support.OpacityStop")],b);const v=b;var g;let w=g=class extends d.A{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new g({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,s._)([(0,r.MZ)({readOnly:!0})],w.prototype,"cache",null),(0,s._)([(0,r.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],w.prototype,"type",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],w.prototype,"normalizationField",void 0),(0,s._)([(0,r.MZ)({type:[v],json:{write:!0}})],w.prototype,"stops",null),w=g=(0,s._)([(0,o.$)("esri.renderers.visualVariables.OpacityVariable")],w);const _=w;var V=i(23461),S=i(48940),x=i(69622),M=i(66552),z=i(67076);const I={color:h.A,size:S.A,opacity:_,rotation:V.A},A=new M.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),j=/^\[([^\]]+)\]$/i;let Z=class extends x.A{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),e=e&&e.filter((e=>!!e)),e?.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,n=s?.match(j),o=n?.[1];if(o&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:o})),e)return e.map((e=>{const t=A.read(e.type),s=I[t];s||(l.A.getLogger(this).warn(`Unknown variable type: ${t}`),i?.messages&&i.messages.push(new z.A("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const r=new s;return r.read(e,i),r}))}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s._)([(0,r.MZ)()],Z.prototype,"visualVariables",null),Z=(0,s._)([(0,o.$)("esri.renderers.visualVariables.VisualVariableFactory")],Z);const F=Z,q={base:d.A,key:"type",typeMap:{opacity:_,color:h.A,rotation:V.A,size:S.A}},E=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new F}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const i=this.visualVariables;return i?i.filter((i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))):[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,u.rq)(e,t,s.field),s.normalizationField&&(0,u.rq)(e,t,s.normalizationField),s.valueExpression&&(k(s.valueExpression,e,t)||await(0,u.Dx)(e,t,s.valueExpression)))}};return(0,s._)([(0,r.MZ)({types:[q],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,s._)([(0,n.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,s._)([(0,a.K)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,s._)([(0,o.$)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function k(e,t,i){const s=(r=e,r.match(p)?.[1]?.replace(/\\'/g,"'")??null);var r;return null!=s&&((0,u.rq)(t,i,s),!0)}},30943:(e,t,i)=>{i.d(t,{A:()=>T});var s,r=i(90237),l=i(66552),n=i(25482),o=i(4718),a=i(10107),u=i(56507),p=i(36005),c=i(40608);i(44208),i(53966),i(87811);let h=s=class extends n.oY{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var d;(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],h.prototype,"minValue",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],h.prototype,"maxValue",void 0),h=s=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoClassBreakInfo")],h);let y=d=class extends n.oY{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=new Array}clone(){return new d({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.o8)(this.classBreakInfos)})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,r._)([(0,a.MZ)({type:[h],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=d=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(79901);let b=m=class extends n.oY{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new m({label:this.label,value:this.value,size:this.size})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],b.prototype,"label",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"size",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"value",void 0),b=m=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoSizeStop")],b);const v=b;var g;const w=new l.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),_=new l.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),V={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},S=["high-to-low","above-and-below","centered-on","extremes"],x=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size"])],M=["seconds","minutes","hours","days","months","years"];let z=g=class extends n.oY{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}get normalizationField(){return"reference-size"===this.theme?this._get("normalizationField"):null}set normalizationField(e){this._set("normalizationField",e)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(e){this._set("referenceSizeScale",e)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(e){this._set("referenceSizeSymbolStyle",e)}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get sizeStops(){return"reference-size"===this.theme?this._get("sizeStops"):null}set sizeStops(e){this._set("sizeStops",e)}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new g({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,sizeStops:(0,o.o8)(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r._)([(0,a.MZ)({types:V,json:{write:!0}})],z.prototype,"endTime",void 0),(0,r._)([(0,f.w)("endTime")],z.prototype,"castEndTime",null),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"minSliderValue",void 0),(0,r._)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"normalizationField",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeScale",null),(0,r._)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeSymbolStyle",null),(0,r._)([(0,a.MZ)({types:V,json:{write:!0}})],z.prototype,"startTime",void 0),(0,r._)([(0,f.w)("startTime")],z.prototype,"castStartTime",null),(0,r._)([(0,a.MZ)({type:[v],json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"sizeStops",null),(0,r._)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],z.prototype,"style",null),(0,r._)([(0,a.MZ)({type:x,value:null,json:{type:x,origins:{"web-scene":{type:S,write:{writer:(e,t)=>{S.includes(e)&&(t.theme=e)}}}},write:!0}})],z.prototype,"theme",null),(0,r._)([(0,a.MZ)({type:_.apiValues,json:{type:_.jsonValues,read:_.read,write:_.write}})],z.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:M,json:{type:M,write:!0}})],z.prototype,"units",void 0),z=g=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoVisualVariable")],z);const I=z;var A,j=i(95349);const Z=new l.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),F=new l.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new l.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),E=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let k=A=class extends n.oY{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,j.r)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new A({classificationMethod:this.classificationMethod,colorRamp:(0,o.o8)(this.colorRamp),fadeRatio:(0,o.o8)(this.fadeRatio),fields:this.fields?.slice(0),field1:(0,o.o8)(this.field1),field2:(0,o.o8)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,r._)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write,origins:{"web-document":{default:"manual",type:Z.jsonValues,read:Z.read,write:Z.write}}}})],k.prototype,"classificationMethod",null),(0,r._)([(0,a.MZ)({types:j.g,json:{write:!0}})],k.prototype,"colorRamp",void 0),(0,r._)([(0,p.w)("colorRamp")],k.prototype,"readColorRamp",null),(0,r._)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"fadeRatio",void 0),(0,r._)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],k.prototype,"fields",null),(0,r._)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],k.prototype,"field1",null),(0,r._)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],k.prototype,"field2",null),(0,r._)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"flowTheme",null),(0,r._)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],k.prototype,"focus",null),(0,r._)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],k.prototype,"isAutoGenerated",void 0),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],k.prototype,"numClasses",null),(0,r._)([(0,a.MZ)({type:E,json:{type:E,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],k.prototype,"lengthUnit",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"minSliderValue",void 0),(0,r._)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"statistics",null),(0,r._)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],k.prototype,"standardDeviationInterval",null),(0,r._)([(0,a.MZ)({type:F.apiValues,value:null,json:{type:F.jsonValues,read:F.read,write:F.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],k.prototype,"type",null),(0,r._)([(0,a.MZ)({type:[I],json:{write:!0}})],k.prototype,"visualVariables",void 0),(0,r._)([(0,a.MZ)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"univariateSymbolStyle",null),(0,r._)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"univariateTheme",null),k=A=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfo")],k);const T=k},88542:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends l.oY{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r._)([(0,n.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r._)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),u=s=(0,r._)([(0,o.$)("esri.renderers.support.ClassBreakInfo")],u);const p=u},86768:(e,t,i)=>{i.d(t,{q:()=>a});var s,r=i(90237),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608));let a=s=class extends l.oY{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=s=(0,r._)([(0,o.$)("esri.renderers.support.LegendOptions")],a)},94833:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends l.oY{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol?.toJSON());return`${this.value}.${e}`}};(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),(0,r._)([(0,n.MZ)(a.Ug)],u.prototype,"value",void 0),u=s=(0,r._)([(0,o.$)("esri.renderers.support.UniqueValueInfo")],u);const p=u},49849:(e,t,i)=>{i.d(t,{As:()=>c,Ug:()=>h,Wp:()=>p,z4:()=>u});var s=i(61147),r=i(93637),l=i(90360),n=i(73838),o=i(20378),a=i(65365);const u={types:s.xK,json:{write:{writer:n.M9},origins:{"web-scene":{types:s.On,write:{writer:n.M9},read:{reader:(0,l.C)({types:s.On})}}}}},p=(0,r.$N)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:o.A,key:"type",typeMap:{"simple-fill":s.Es.typeMap["simple-fill"],"picture-fill":s.Es.typeMap["picture-fill"],"polygon-3d":s.Es.typeMap["polygon-3d"]}},json:{write:{writer:n.M9},origins:{"web-scene":{type:a.A,write:{writer:n.M9}}}}},h={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},2024:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795),a=i(72500);let u=s=class extends o.A{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,l.MZ)({readOnly:!0})],u.prototype,"cache",null),(0,r._)([(0,l.MZ)({type:["color"],json:{type:["colorInfo"]}})],u.prototype,"type",void 0),(0,r._)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"normalizationField",void 0),(0,r._)([(0,l.MZ)({type:[a.A],json:{write:!0}})],u.prototype,"stops",null),u=s=(0,r._)([(0,n.$)("esri.renderers.visualVariables.ColorVariable")],u);const p=u},23461:(e,t,i)=>{i.d(t,{A:()=>c});var s,r=i(90237),l=i(49186),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(43937),u=i(2795);let p=s=class extends u.A{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s?.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new l.A("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};(0,r._)([(0,n.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,n.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,r._)([(0,n.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,r._)([(0,n.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,a.K)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,r._)([(0,o.$)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},48940:(e,t,i)=>{i.d(t,{A:()=>I});var s,r=i(90237),l=i(49186),n=i(66552),o=i(53966),a=i(10107),u=i(79901),p=i(36005),c=i(40608),h=i(43937),d=i(2795),y=i(90629),m=i(12330),f=(i(44208),i(87811),i(41078));let b=s=class extends f.A{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues?.slice(0)})}};(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"customValues",void 0),b=s=(0,r._)([(0,c.$)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],b);const v=b;var g,w=i(98205),_=i(29266);const V=new n.J({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new n.J({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function x(e){if(null!=e)return"string"==typeof e||"number"==typeof e?function(e){return(0,y.cr)(e)}(e):"size"===e.type?(0,w.of)(e)?e:(delete(e={...e}).type,new z(e)):void 0}function M(e,t,i){if("object"!=typeof e)return e;const s=new z;return s.read(e,i),s}let z=g=class extends d.A{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&_.RV.test(this.valueExpression)}}set index(e){(0,w.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,w.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,w.eh)(this)}set maxDataValue(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return x(e)}readMaxSize(e,t,i){return M(e,0,i)}set minDataValue(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return x(e)}readMinSize(e,t,i){return M(e,0,i)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(o.A.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,w.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s?.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.A("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new g({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,w.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,w.of)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if(this.transformationType===w._w.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===w._w.Stops){const e=this.stops;if(!e)return this;const t=e.map((e=>e.size)).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops?.map((e=>e.value||0))}};(0,r._)([(0,a.MZ)({readOnly:!0})],z.prototype,"cache",null),(0,r._)([(0,a.MZ)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],z.prototype,"axis",void 0),(0,r._)([(0,a.MZ)()],z.prototype,"index",null),(0,r._)([(0,a.MZ)({type:String,readOnly:!0})],z.prototype,"inputValueType",null),(0,r._)([(0,a.MZ)({type:v,json:{write:!0}})],z.prototype,"legendOptions",void 0),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"maxDataValue",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"maxSize",null),(0,r._)([(0,u.w)("maxSize")],z.prototype,"castMaxSize",null),(0,r._)([(0,p.w)("maxSize")],z.prototype,"readMaxSize",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"minDataValue",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"minSize",null),(0,r._)([(0,u.w)("minSize")],z.prototype,"castMinSize",null),(0,r._)([(0,p.w)("minSize")],z.prototype,"readMinSize",null),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"normalizationField",void 0),(0,r._)([(0,a.MZ)({readOnly:!0})],z.prototype,"arcadeRequired",null),(0,r._)([(0,a.MZ)({type:String})],z.prototype,"scaleBy",void 0),(0,r._)([(0,a.MZ)({type:[m.A],value:null,json:{write:!0}})],z.prototype,"stops",null),(0,r._)([(0,a.MZ)({type:["outline"],json:{write:!0}})],z.prototype,"target",void 0),(0,r._)([(0,a.MZ)({type:String,readOnly:!0})],z.prototype,"transformationType",null),(0,r._)([(0,a.MZ)({type:["size"],json:{type:["sizeInfo"]}})],z.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],z.prototype,"useSymbolValue",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"valueExpression",void 0),(0,r._)([(0,p.w)("valueExpression",["valueExpression","expression"])],z.prototype,"readValueExpression",null),(0,r._)([(0,h.K)("web-scene","valueExpression")],z.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,a.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],z.prototype,"valueRepresentation",void 0),(0,r._)([(0,a.MZ)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],z.prototype,"valueUnit",void 0),(0,r._)([(0,p.w)("valueUnit")],z.prototype,"readValueUnit",null),z=g=(0,r._)([(0,c.$)("esri.renderers.visualVariables.SizeVariable")],z);const I=z},2795:(e,t,i)=>{i.d(t,{A:()=>y});var s=i(90237),r=i(66552),l=i(25482),n=i(53966),o=i(10107),a=i(79901),u=i(40608),p=i(56507),c=i(41078);const h=new r.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let d=class extends l.oY{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.A.getLogger(this).error(".field: field must be a string value"),null):(0,p.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,o.MZ)()],d.prototype,"index",void 0),(0,s._)([(0,o.MZ)({type:h.apiValues,readOnly:!0,json:{read:h.read,write:h.write}})],d.prototype,"type",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,s._)([(0,a.w)("field")],d.prototype,"castField",null),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,o.MZ)({readOnly:!0})],d.prototype,"arcadeRequired",null),(0,s._)([(0,o.MZ)({type:c.A,json:{write:!0}})],d.prototype,"legendOptions",void 0),d=(0,s._)([(0,u.$)("esri.renderers.visualVariables.VisualVariable")],d);const y=d},72500:(e,t,i)=>{i.d(t,{A:()=>h});var s,r=i(90237),l=i(68197),n=i(25482),o=i(10107),a=i(56507),u=(i(87811),i(44208),i(40608)),p=i(43937);let c=s=class extends n.oY{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r._)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:!0}})],c.prototype,"color",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,r._)([(0,p.K)("value")],c.prototype,"writeValue",null),c=s=(0,r._)([(0,u.$)("esri.renderers.visualVariables.support.ColorStop")],c);const h=c},12330:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(25482),n=i(90629),o=i(10107),a=(i(44208),i(53966),i(87811),i(40608));let u=s=class extends l.oY{constructor(e){super(e),this.label=null,this.size=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}clone(){return new s({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,o.MZ)({type:Number,cast:n.cr,json:{write:!0}})],u.prototype,"size",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMinValue",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMaxValue",void 0),u=s=(0,r._)([(0,a.$)("esri.renderers.visualVariables.support.SizeStop")],u);const p=u},41078:(e,t,i)=>{i.d(t,{A:()=>u});var s,r=i(90237),l=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(86768);let a=s=class extends o.q{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=s=(0,r._)([(0,n.$)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},98205:(e,t,i)=>{var s,r;function l(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?s.Expression:e.field&&"string"==typeof e.field?s.Field:s.Unknown}function a(e,t){const i=t||o(e),l=e.valueUnit||"unknown";return i===s.Unknown?r.Constant:e.stops?r.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?r.ClampedLinear:"unknown"===l?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?r.Proportional:r.Additive:r.Identity:r.RealWorldSize}i.d(t,{KZ:()=>a,Yf:()=>s,_w:()=>r,eh:()=>o,gf:()=>n,of:()=>l}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(s||(s={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(r||(r={}))},29266:(e,t,i)=>{i.d(t,{RV:()=>h,UT:()=>d,Yz:()=>b}),i(68197);var s=i(52106),r=i(21818),l=i(53966),n=i(31756),o=i(98205);const a=()=>l.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=e=>a().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),p=()=>a().error("Use of arcade expressions requires an arcade context"),c=(new s.A,Math.PI),h=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function d(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"rotation"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void u("RotationVariable");const r=s.axis||"heading",l="heading"===r&&"arithmetic"===s.rotationType?90:0,n="heading"===r&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,a=o?.attributes,c=s.field,{hasExpression:h}=s.cache;let d=s.cache.compiledFunc,y=0;if(!c&&!h)return y;if(h){if(null==i?.arcade)return void p();const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,r=t.getViewInfo(e),l=t.createExecContext(o,r,i.timeZone);if(!d){const e=t.createSyntaxTree(s.valueExpression);d=t.createFunction(e),s.cache.compiledFunc=d}y=t.executeFunction(d,l)}else a&&(y=a[c]||0);return y="number"!=typeof y||isNaN(y)?null:l+n*y,y}function y(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"size"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void u("SizeVariable");const r=function(e,t,i,s,r){switch(t.transformationType){case o._w.Additive:return function(e,t,i,s){return e+((m(t.minSize,i,s)||t.minDataValue)??0)}(e,t,i,s);case o._w.Constant:return function(e,t,i){const s=e.stops;let r=s?.length&&s[0].size;return null==r&&(r=e.minSize),m(r,t,i)}(t,i,s);case o._w.ClampedLinear:return function(e,t,i,s){const r=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),l=m(t.minSize,i,s),n=m(t.maxSize,i,s),o=null!=s?s.shape:void 0;if(e<=t.minDataValue)return l;if(e>=t.maxDataValue)return n;if(null==l||null==n)return null;if("area"===t.scaleBy&&o){const e="circle"===o,t=e?c*(l/2)**2:l*l,i=t+r*((e?c*(n/2)**2:n*n)-t);return e?2*Math.sqrt(i/c):Math.sqrt(i)}return l+r*(n-l)}(e,t,i,s);case o._w.Proportional:return function(e,t,i,s){const r=null!=s?s.shape:void 0,l=e/t.minDataValue,n=m(t.minSize,i,s),o=m(t.maxSize,i,s);let a=null;return a="circle"===r?2*Math.sqrt(l*(n/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(l*n**2):l*n,f(a,n,o)}(e,t,i,s);case o._w.Stops:return function(e,t,i,s,r){const[l,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some(((t,r)=>e<t?(s=r,!0):(i=r,!1))),[i,s,(e-t[i])/(t[s]-t[i])]}(e,r);if(l===n)return m(t.stops?.[l].size,i,s);{const e=m(t.stops?.[l].size,i,s);return e+(m(t.stops?.[n].size,i,s)-e)*o}}(e,t,i,s,r);case o._w.RealWorldSize:return function(e,t,i,s){const r=(s?.resolution??1)*n.j[t.valueUnit],l=m(t.minSize,i,s),o=m(t.maxSize,i,s),{valueRepresentation:a}=t;let u=null;return u="area"===a?2*Math.sqrt(e/c)/r:"radius"===a||"distance"===a?2*e/r:e/r,f(u,l,o)}(e,t,i,s);case o._w.Identity:return e;case o._w.Unknown:return null}}(function(e,t,i){const s="number"==typeof t,r=s?null:t,l=r?.attributes;let n=s?t:null;const{isScaleDriven:a}=e.cache;let u=e.cache.compiledFunc;if(a){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case o.Yf.Expression:{if(null==i?.arcade)return void p();const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,l=s.getViewInfo(t),o=s.createExecContext(r,l,i.timeZone);if(!u){const t=s.createSyntaxTree(e.valueExpression);u=s.createFunction(t),e.cache.compiledFunc=u}n=s.executeFunction(u,o);break}case o.Yf.Field:l&&(n=l[e.field]);break;case o.Yf.Unknown:n=null}if(!(0,o.gf)(n))return null;if(s||!e.normalizationField)return n;const c=l?parseFloat(l[e.normalizationField]):null;return(0,o.gf)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==r||isNaN(r)?0:r}function m(e,t,i){return null==e?null:(0,o.of)(e)?y(e,t,i):(0,o.gf)(e)?e:null}function f(e,t,i){return(0,o.gf)(i)&&e>i?i:(0,o.gf)(t)&&e<t?t:e}function b(e,t,i){const s=["proportional","proportional","proportional"];for(const l of e){const e=l.useSymbolValue?"symbol-value":y(l,t,i);switch(l.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:(0,r.Xb)(l.axis)}}return s}},2485:(e,t,i)=>{i.d(t,{A:()=>d});var s,r=i(90237),l=i(68197),n=i(4718),o=i(10107),a=i(56507),u=i(93223),p=i(40608),c=i(72606);let h=s=class extends c.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.o8)(this.fromColor),toColor:(0,n.o8)(this.toColor),algorithm:this.algorithm})}};(0,r._)([(0,u.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0),(0,r._)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:!0}})],h.prototype,"fromColor",void 0),(0,r._)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:!0}})],h.prototype,"toColor",void 0),(0,r._)([(0,o.MZ)({type:["algorithmic"]})],h.prototype,"type",void 0),h=s=(0,r._)([(0,p.$)("esri.rest.support.AlgorithmicColorRamp")],h);const d=h},72606:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(90237),r=i(25482),l=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let o=class extends r.oY{constructor(e){super(e),this.type=null}};(0,s._)([(0,l.MZ)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,n.$)("esri.rest.support.ColorRamp")],o);const a=o},1626:(e,t,i)=>{i.d(t,{A:()=>c});var s,r=i(90237),l=i(4718),n=i(10107),o=(i(44208),i(53966),i(40608)),a=i(2485),u=i(72606);let p=s=class extends u.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:(0,l.o8)(this.colorRamps)})}};(0,r._)([(0,n.MZ)({type:[a.A],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,r._)([(0,n.MZ)({type:["multipart"]})],p.prototype,"type",void 0),p=s=(0,r._)([(0,o.$)("esri.rest.support.MultipartColorRamp")],p);const c=p},95349:(e,t,i)=>{i.d(t,{g:()=>n,r:()=>o});var s=i(2485),r=i(72606),l=i(1626);const n={key:"type",base:r.A,typeMap:{algorithmic:s.A,multipart:l.A}};function o(e){return e?.type?"algorithmic"===e.type?s.A.fromJSON(e):"multipart"===e.type?l.A.fromJSON(e):null:null}},57465:(e,t,i)=>{i.d(t,{Vd:()=>r,Vo:()=>l});var s=i(44208);const r=()=>!!(0,s.A)("enable-feature:force-wosr"),l=()=>!!(0,s.A)("enable-feature:SceneLayer-editing");((e="i3s-patching")=>{switch(s.A.add("enable-i3s-patching",!1,!0,!0),s.A.add("enable-feature:direct-3d-object-feature-layer-display",!1,!0,!0),s.A.add("enable-feature:SceneLayer-editing",!0,!0,!0),e){case"feature-layer-view":s.A.add("enable-feature:direct-3d-object-feature-layer-display",!0,!0,!0);break;case"i3s-patching":s.A.add("enable-i3s-patching",!0,!0,!0)}})("i3s-patching")},73838:(e,t,i)=>{i.d(t,{rS:()=>E,M9:()=>j,oO:()=>Z});var s=i(61147),r=i(49186),l=i(83531),n=i(58185),o=i(68197),a=i(5503),u=(i(44208),i(90629)),p=i(27845),c=i(97887),h=i(68548),d=i(75981),y=i(65365),m=i(39065),f=i(59868),b=i(93470),v=i(11506);d.A.fromSimpleMarkerSymbol(f.UK),c.A.fromSimpleLineSymbol(f.A7),y.A.fromSimpleFillSymbol(f.Cx),new h.A({symbolLayers:new a.A([new p.A({material:{color:b.fT},edges:new m.A({size:(0,u.PN)(1),color:new o.A(b.JR)})})])});const g=new c.A({symbolLayers:new a.A([new v.A({material:{color:new o.A([0,0,0])},size:(0,u.PN)(1)})])}),w=new y.A({symbolLayers:new a.A([new p.A({outline:{color:new o.A([0,0,0]),size:(0,u.PN)(1)}})])});var _=i(37757),V=i(31593),S=i(53930),x=i(58592),M=i(94985),z=i(68249),I=i(13313);const A={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function j(e,t,i,s){const r=q(e,{},{context:s,isLabelSymbol:!1});null!=r&&(t[i]=r)}function Z(e,t,i,s){const r=q(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function F(e){return e instanceof n.A||e instanceof _.A}function q(e,t,i){if(null==e)return null;const{context:n,isLabelSymbol:o}=i,a=n?.origin,u=n?.messages;if("web-scene"===a&&!F(e)){const i=function(e,t=A){if(!e)return{symbol:null};const{retainId:i=A.retainId,ignoreDrivers:l=A.ignoreDrivers,hasLabelingContext:n=A.hasLabelingContext,retainCIM:o=A.retainCIM,cimFallbackEnabled:a=A.cimFallbackEnabled}=t;let u=null;if((0,s.wk)(e)||e instanceof _.A)u=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":u=o?e.clone():d.A.fromCIMSymbol(e);break;case"CIMLineSymbol":a&&(u=g.clone(),t?.logWarning?.("Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":a&&(u=w.clone(),t?.logWarning?.("Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!u)return{error:new r.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof V.A)u=c.A.fromSimpleLineSymbol(e);else if(e instanceof S.A)u=d.A.fromSimpleMarkerSymbol(e);else if(e instanceof x.A)u=d.A.fromPictureMarkerSymbol(e);else if(e instanceof M.A)u=t.geometryType&&"mesh"===t.geometryType?h.A.fromSimpleFillSymbol(e):y.A.fromSimpleFillSymbol(e);else{if(!(e instanceof z.A))return{error:new r.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};u=n?I.A.fromTextSymbol(e):d.A.fromTextSymbol(e)}return i&&u&&"cim"!==u.type&&(u.id=e.id),l&&(0,s.wk)(u)&&u.symbolLayers.forEach((e=>e.ignoreDrivers=!0)),{symbol:u}}(e,{retainCIM:!0,hasLabelingContext:o});return null!=i.symbol?i.symbol.write(t,n):(u?.push(new r.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:n,error:i.error})),null)}return("web-map"===a||"portal-item"===a&&!(0,l.TU)(n?.layer))&&F(e)?(u?.push(new r.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:n})),null):e.write(t,n)}function E(e,t){return(0,s.Bu)(e,null,t)}},66896:(e,t,i)=>{i.d(t,{bo:()=>h,cF:()=>c,jg:()=>b,o5:()=>d,yA:()=>y});var s=i(78888),r=i(49186),l=i(74887),n=i(84952),o=i(20655),a=i(16405),u=i(57465);let p={};function c(e,t,i){return null!=e?.styleUrl?async function(e,t){try{return{data:(await y(e,t)).data,baseUrl:(0,n.nM)(e),styleUrl:e}}catch(e){return(0,l.QP)(e),null}}(e.styleUrl,i):null!=e?.styleName?function(e,t,i){const s=null!=t.portal?t.portal:o.A.getDefault();let l;const n=`${s.url} - ${s.user?.username} - ${e}`;return p[n]||(p[n]=function(e,t,i){return t.load(i).then((()=>{const s=new a.A({disableExtraQuery:!0,query:`owner:${m} AND type:${f} AND typekeywords:"${e}"`});return t.queryItems(s,i)})).then((({results:t})=>{let s=null;const l=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some((e=>e.toLowerCase()===l));if(t&&e.type===f&&e.owner===m){s=e;break}}if(!s)throw new r.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)}))}(e,s,i).then((e=>(l=e,e.fetchData()))).then((t=>({data:t,baseUrl:l.itemUrl??"",styleName:e})))),p[n]}(e.styleName,t,i):Promise.reject(new r.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function h(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function d(e,t,i=["gltf"]){if("cimRef"===t)return e.cimRef;if(e.formatInfos&&!(0,u.Vd)())for(const t of i){const i=e.formatInfos.find((e=>e.type===t));if(i)return i.href}return e.webRef}function y(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.A)((0,n.S8)(e),i)}const m="esri_en",f="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1132],{52106:(e,t,i)=>{i.d(t,{A:()=>g});var s,r=i(90237),l=i(59456),n=i(13874),o=i(61147),a=i(69540),u=i(51447),p=i(25482),c=i(53966),h=i(36708),d=i(24326),y=i(10107),m=(i(44208),i(87811),i(40608)),f=i(65864);function b(e){if(null==e)return null;const t={};for(const i in e){const s=e[i];s&&(t[i]=s.toJSON())}return 0!==Object.keys(t).length?t:null}let v=s=class extends((0,a.O)(p.oY)){constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,u.eF)(c.A.getLogger(this),"Graphic",{version:"4.30"})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new s({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const i of[t,this.sourceLayer,this.layer])if(i){if("popupTemplate"in i&&i.popupTemplate)return i.popupTemplate;if(e&&"defaultPopupTemplate"in i&&null!=i.defaultPopupTemplate)return i.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const i=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",i,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:b(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,p.Wj)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const i={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",i,i,e.action)}}_notifyLayer(e,t,i,s){if(!this.layer||!("graphicChanged"in this.layer))return;const r={graphic:this,property:e,oldValue:t,newValue:i};"origin-transform"===e&&(r.action=s),"attributes"===e&&(r.attributeName=s),this.layer.graphicChanged(r)}_watchMeshGeometryChanges(){this.addHandles([(0,h.z7)((()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0),(({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())})),(0,h.z7)((()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0),(()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)}),{equals:(e,t)=>e===t,sync:!0})])}};(0,r._)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const s=(0,f.rS)(e[i]);s&&(t[i]=s)}return 0!==Object.keys(t).length?t:null}}})],v.prototype,"aggregateGeometries",null),(0,r._)([(0,y.MZ)({value:null})],v.prototype,"attributes",null),(0,r._)([(0,y.MZ)({value:null,types:l.yR,json:{read:f.rS}})],v.prototype,"geometry",null),(0,r._)([(0,y.MZ)({type:Boolean})],v.prototype,"isAggregate",void 0),(0,r._)([(0,y.MZ)({clonable:"reference"})],v.prototype,"layer",void 0),(0,r._)([(0,y.MZ)({clonable:"reference"})],v.prototype,"origin",void 0),(0,r._)([(0,y.MZ)({type:n.A})],v.prototype,"popupTemplate",void 0),(0,r._)([(0,y.MZ)({clonable:"reference"})],v.prototype,"sourceLayer",void 0),(0,r._)([(0,y.MZ)({value:null,types:o.Es})],v.prototype,"symbol",null),(0,r._)([(0,y.MZ)({type:Boolean,value:!0})],v.prototype,"visible",null),v=s=(0,r._)([(0,m.$)("esri.Graphic")],v),(v||(v={})).generateUID=d.c;const g=v},85334:(e,t,i)=>{function s(e){return"r"in e&&"g"in e&&"b"in e}function r(e){return"h"in e&&"s"in e&&"v"in e}function l(e){return"l"in e&&"a"in e&&"b"in e}function n(e){return"l"in e&&"c"in e&&"h"in e}i.d(t,{$:()=>y,IB:()=>s,N2:()=>m,RH:()=>b,ZD:()=>f}),i(68197),i(87317),i(91829);const o=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],a=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]];function u(e,t){const i=[];let s,r;if(e[0].length!==t.length)throw new Error("dimensions do not match");const l=e.length,n=e[0].length;let o=0;for(s=0;s<l;s++){for(o=0,r=0;r<n;r++)o+=e[s][r]*t[r];i.push(o)}return i}function p(e){const t=[e.r/255,e.g/255,e.b/255].map((e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4)),i=u(o,t);return{x:100*i[0],y:100*i[1],z:100*i[2]}}function c(e){const t=u(a,[e.x/100,e.y/100,e.z/100]).map((e=>{const t=e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055;return Math.min(1,Math.max(t,0))}));return{r:Math.round(255*t[0]),g:Math.round(255*t[1]),b:Math.round(255*t[2])}}function h(e){const t=[e.x/95.047,e.y/100,e.z/108.883].map((e=>e>(6/29)**3?e**(1/3):1/3*(29/6)**2*e+4/29));return{l:116*t[1]-16,a:500*(t[0]-t[1]),b:200*(t[1]-t[2])}}function d(e){const t=e.l,i=[(t+16)/116+e.a/500,(t+16)/116,(t+16)/116-e.b/200].map((e=>e>6/29?e**3:3*(6/29)**2*(e-4/29)));return{x:95.047*i[0],y:100*i[1],z:108.883*i[2]}}function y(e){return s(e)?e:n(e)?function(e){return c(d(function(e){const t=e.l,i=e.c,s=e.h;return{l:t,a:i*Math.cos(s),b:i*Math.sin(s)}}(e)))}(e):l(e)?function(e){return c(d(e))}(e):function(e){return"x"in e&&"y"in e&&"z"in e}(e)?c(e):r(e)?function(e){const t=(e.h+360)%360/60,i=e.s/100,s=e.v/100*255,r=s*i,l=r*(1-Math.abs(t%2-1));let n;switch(Math.floor(t)){case 0:n={r,g:l,b:0};break;case 1:n={r:l,g:r,b:0};break;case 2:n={r:0,g:r,b:l};break;case 3:n={r:0,g:l,b:r};break;case 4:n={r:l,g:0,b:r};break;case 5:case 6:n={r,g:0,b:l};break;default:n={r:0,g:0,b:0}}return n.r=Math.round(n.r+s-r),n.g=Math.round(n.g+s-r),n.b=Math.round(n.b+s-r),n}(e):e}function m(e){return r(e)?e:function(e){const t=e.r,i=e.g,s=e.b,r=Math.max(t,i,s),l=r-Math.min(t,i,s);let n=r,o=0===l?0:r===t?(i-s)/l%6:r===i?(s-t)/l+2:(t-i)/l+4,a=0===l?0:l/n;return o<0&&(o+=6),o*=60,a*=100,n*=100/255,{h:o,s:a,v:n}}(y(e))}function f(e){return l(e)?e:function(e){return h(p(e))}(y(e))}function b(e){return n(e)?e:function(e){return function(e){const t=e.l,i=e.a,s=e.b,r=Math.sqrt(i*i+s*s);let l=Math.atan2(s,i);return l=l>0?l:l+2*Math.PI,{l:t,c:r,h:l}}(h(p(e)))}(y(e))}var v,g;(g=v||(v={}))[g.Low=160]="Low",g[g.High=225]="High"},21818:(e,t,i)=>{function s(e){}i.d(t,{Xb:()=>s}),i(44208)},86162:(e,t,i)=>{i.d(t,{A:()=>A});var s,r=i(90237),l=i(61147),n=i(66552),o=i(4718),a=i(53966),u=i(10107),p=i(79901),c=i(93223),h=i(36005),d=i(40608),y=i(43937),m=i(56507),f=i(30524),b=i(92438),v=i(38043),g=i(88542),w=i(49849),_=i(86768),V=i(71386);const S="percent-of-total",x="field",M=new n.J({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),z=(0,m.dp)(g.A);let I=s=class extends((0,v.h)(b.A)){constructor(e){super(e),this._compiledValueExpression={valueExpression:null,compiledFunction:null},this.backgroundFillSymbol=null,this.classBreakInfos=null,this.defaultLabel=null,this.defaultSymbol=null,this.field=null,this.isMaxInclusive=!0,this.legendOptions=null,this.normalizationField=null,this.normalizationTotal=null,this.type="class-breaks",this.valueExpression=null,this.valueExpressionTitle=null,this._set("classBreakInfos",[])}readClassBreakInfos(e,t,i){if(!Array.isArray(e))return;let s=t.minValue;return e.map((e=>{const t=new g.A;return t.read(e,i),null==t.minValue&&(t.minValue=s),null==t.maxValue&&(t.maxValue=t.minValue),s=t.maxValue,t}))}writeClassBreakInfos(e,t,i,s){const r=e.map((e=>e.write({},s)));this._areClassBreaksConsecutive()&&r.forEach((e=>delete e.classMinValue)),t[i]=r}castField(e){return null==e?e:"function"==typeof e?(a.A.getLogger(this).error(".field: field must be a string value"),null):(0,m.GX)(e)}get minValue(){return this.classBreakInfos&&this.classBreakInfos[0]&&this.classBreakInfos[0].minValue||0}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&x||i&&S||null,t&&i&&a.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==x&&e!==S||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}addClassBreakInfo(e,t,i){let s=null;s="number"==typeof e?new g.A({minValue:e,maxValue:t,symbol:(0,l.dp)(i)}):z((0,o.o8)(e)),this.classBreakInfos.push(s),1===this.classBreakInfos.length&&this.notifyChange("minValue")}removeClassBreakInfo(e,t){const i=this.classBreakInfos.length;for(let s=0;s<i;s++){const i=[this.classBreakInfos[s].minValue,this.classBreakInfos[s].maxValue];if(i[0]===e&&i[1]===t){this.classBreakInfos.splice(s,1);break}}}getBreakIndex(e,t){return this.valueExpression&&null==t?.arcade&&a.A.getLogger(this).warn(""),this.valueExpression?this._getBreakIndexForExpression(e,t):this._getBreakIndexForField(e)}async getClassBreakInfo(e,t){let i=t;this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,V.lw)()});const s=this.getBreakIndex(e,i);return-1!==s?this.classBreakInfos[s]:null}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void a.A.getLogger(this).error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this.getBreakIndex(e,t);return i>-1?this.classBreakInfos[i].symbol:this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==t?.arcade){const e=await(0,V.lw)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this.getBreakIndex(e,i);return s>-1?this.classBreakInfos[s].symbol:this.defaultSymbol}getSymbols(){const e=[];return this.classBreakInfos.forEach((t=>{t.symbol&&e.push(t.symbol)})),this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=`${this.normalizationField}.${this.normalizationType}.${this.normalizationTotal}`;return`${e}.${t}.${this.classBreakInfos.reduce(((e,t)=>e+t.getMeshHash()),"")}.${i}.${this.field}.${this.valueExpression}`}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}clone(){return new s({field:this.field,backgroundFillSymbol:this.backgroundFillSymbol?.clone(),defaultLabel:this.defaultLabel,defaultSymbol:this.defaultSymbol?.clone(),valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,classBreakInfos:(0,o.o8)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.o8)(this.visualVariables),legendOptions:(0,o.o8)(this.legendOptions),authoringInfo:(0,o.o8)(this.authoringInfo)})}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,f.Dx)(e,t,this.valueExpression)];(0,f.rq)(e,t,this.field),(0,f.rq)(e,t,this.normalizationField),await Promise.all(i)}_getBreakIndexForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l,timeZone:n}=t??{},{valueExpression:o}=this;let a=this._compiledValueExpression.valueExpression===o?this._compiledValueExpression.compiledFunction:null;const u=l.arcadeUtils;if(!a){const e=u.createSyntaxTree(o);a=u.createFunction(e),this._compiledValueExpression.compiledFunction=a}this._compiledValueExpression.valueExpression=o;const p=u.executeFunction(a,u.createExecContext(e,u.getViewInfo({viewingMode:i,scale:s,spatialReference:r}),n));return this._getBreakIndexfromInfos(p)}_getBreakIndexForField(e){const t=this.field,i=e.attributes,s=this.normalizationType;let r=parseFloat(i[t]);if(s){const e=this.normalizationTotal,t=parseFloat(this.normalizationField?i[this.normalizationField]:void 0);if("log"===s)r=Math.log(r)*Math.LOG10E;else if(s!==S||null==e||isNaN(e)){if(s===x&&!isNaN(t)){if(isNaN(r)||isNaN(t))return-1;r/=t}}else r=r/e*100}return this._getBreakIndexfromInfos(r)}_getBreakIndexfromInfos(e){const t=this.isMaxInclusive;if(null!=e&&"number"==typeof e&&!isNaN(e))for(let i=0;i<this.classBreakInfos.length;i++){const s=[this.classBreakInfos[i].minValue,this.classBreakInfos[i].maxValue];if(s[0]<=e&&(t?e<=s[1]:e<s[1]))return i}return-1}_areClassBreaksConsecutive(){const e=this.classBreakInfos,t=e.length;for(let i=1;i<t;i++)if(e[i-1].maxValue!==e[i].minValue)return!1;return!0}};(0,r._)([(0,u.MZ)(w.As)],I.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,u.MZ)({type:[g.A]})],I.prototype,"classBreakInfos",void 0),(0,r._)([(0,h.w)("classBreakInfos")],I.prototype,"readClassBreakInfos",null),(0,r._)([(0,y.K)("classBreakInfos")],I.prototype,"writeClassBreakInfos",null),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"defaultLabel",void 0),(0,r._)([(0,u.MZ)(w.z4)],I.prototype,"defaultSymbol",void 0),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"field",void 0),(0,r._)([(0,p.w)("field")],I.prototype,"castField",null),(0,r._)([(0,u.MZ)({type:Boolean})],I.prototype,"isMaxInclusive",void 0),(0,r._)([(0,u.MZ)({type:_.q,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,r._)([(0,u.MZ)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],I.prototype,"minValue",null),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:e=>(0,m.GB)(e),json:{write:!0}})],I.prototype,"normalizationTotal",void 0),(0,r._)([(0,u.MZ)({type:M.apiValues,value:null,json:{type:M.jsonValues,read:M.read,write:M.write}})],I.prototype,"normalizationType",null),(0,r._)([(0,c.e)({classBreaks:"class-breaks"})],I.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,r._)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"valueExpressionTitle",void 0),I=s=(0,r._)([(0,d.$)("esri.renderers.ClassBreaksRenderer")],I);const A=I},92438:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(90237),r=i(66552),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(30943);const u=new r.J({simple:"simple",uniqueValue:"unique-value",classBreaks:"class-breaks",heatmap:"heatmap",dotDensity:"dot-density",dictionary:"dictionary",pieChart:"pie-chart"},{ignoreUnknown:!0});let p=class extends l.oY{constructor(e){super(e),this.authoringInfo=null,this.type=null}async getRequiredFields(e){if(!this.collectRequiredFields)return[];const t=new Set;return await this.collectRequiredFields(t,e),Array.from(t).sort()}getSymbol(e,t){}async getSymbolAsync(e,t){}getSymbols(){return[]}getAttributeHash(){return JSON.stringify(this)}getMeshHash(){return JSON.stringify(this)}};(0,s._)([(0,n.MZ)({type:a.A,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,n.MZ)({type:u.apiValues,readOnly:!0,json:{type:u.jsonValues,read:!1,write:{writer:u.write,ignoreOrigin:!0}}})],p.prototype,"type",void 0),p=(0,s._)([(0,o.$)("esri.renderers.Renderer")],p);const c=p},93618:(e,t,i)=>{i.d(t,{A:()=>G});var s=i(90237),r=i(61147),l=i(49186),n=i(4718),o=i(53966),a=i(93637),u=i(36708),p=i(10107),c=i(79901),h=i(93223),d=i(36005),y=i(40608),m=i(43937),f=i(6797),b=i(56507),v=i(30524),g=i(20655),w=i(92438),_=i(38043),V=i(49849),S=i(86768),x=i(69540),M=i(25482);i(44208),i(87811);let z=class extends((0,x.O)(M.oY)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s._)([(0,p.MZ)(V.Ug)],z.prototype,"value",void 0),(0,s._)([(0,p.MZ)(V.Ug)],z.prototype,"value2",void 0),(0,s._)([(0,p.MZ)(V.Ug)],z.prototype,"value3",void 0),z=(0,s._)([(0,y.$)("esri.renderers.support.UniqueValue")],z);const I=z;var A=i(4576);let j=class extends((0,x.O)(M.oY)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.values=null}castValues(e){if(null==e)return null;const t=typeof(e=Array.isArray(e)?e:[e])[0];return"string"===t||"number"===t?e.map((e=>new I({value:e}))):"object"===t?e[0]instanceof I?e:e.map((e=>new I(e))):null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],j.prototype,"description",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],j.prototype,"label",void 0),(0,s._)([(0,p.MZ)(V.z4)],j.prototype,"symbol",void 0),(0,s._)([(0,p.MZ)({type:[I],json:{type:[[String]],read:{reader:e=>e?e.map((e=>new I({value:e[0],value2:e[1],value3:e[2]}))):null},write:{writer:(e,t)=>{const i=[];for(const t of e){const e=[t.value,t.value2,t.value3].filter(A.Ru).map((e=>e.toString()));i.push(e)}t.values=i}}}})],j.prototype,"values",void 0),(0,s._)([(0,c.w)("values")],j.prototype,"castValues",null),j=(0,s._)([(0,y.$)("esri.renderers.support.UniqueValueClass")],j);const Z=j;let F=class extends((0,x.O)(M.oY)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],F.prototype,"heading",void 0),(0,s._)([(0,p.MZ)({type:[Z],json:{write:!0}})],F.prototype,"classes",void 0),F=(0,s._)([(0,y.$)("esri.renderers.support.UniqueValueGroup")],F);const q=F;var E,k=i(94833),T=i(71386),O=i(97159),U=i(66896),C=i(37757);const D="esri.renderers.UniqueValueRenderer",N=()=>o.A.getLogger(D),$="uvInfos-watcher",R="uvGroups-watcher",L=(0,b.dp)(k.A);let B=E=class extends((0,_.h)(w.A)){constructor(e){super(e),this._valueInfoMap={},this._isDefaultSymbolDerived=!1,this._isInfosSource=null,this.type="unique-value",this.backgroundFillSymbol=null,this.orderByClassesEnabled=!1,this.valueExpressionTitle=null,this.legendOptions=null,this.defaultLabel=null,this.portal=null,this.styleOrigin=null,this.diff={uniqueValueInfos(e,t){if(!e&&!t)return;if(!e||!t)return{type:"complete",oldValue:e,newValue:t};let i=!1;const s={type:"collection",added:[],removed:[],changed:[],unchanged:[]};for(let r=0;r<t.length;r++){const l=e.find((e=>e.value===t[r].value));l?(0,f.Ui)(l,t[r])?(s.changed.push({type:"complete",oldValue:l,newValue:t[r]}),i=!0):s.unchanged.push({oldValue:l,newValue:t[r]}):(s.added.push(t[r]),i=!0)}for(let r=0;r<e.length;r++)t.find((t=>t.value===e[r].value))||(s.removed.push(e[r]),i=!0);return i?s:void 0}},this._set("uniqueValueInfos",[]),this._set("uniqueValueGroups",[])}get _cache(){return{compiledFunc:null}}set field(e){this._set("field",e),this._updateFieldDelimiter(),this._updateUniqueValues()}castField(e){return null==e||"function"==typeof e?e:(0,b.GX)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?s.messages.push(new l.A("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):N().error(".field: cannot write field to JSON since it's not a string value")}set field2(e){this._set("field2",e),this._updateFieldDelimiter(),this._updateUniqueValues()}set field3(e){this._set("field3",e),this._updateUniqueValues()}set valueExpression(e){this._set("valueExpression",e),this._updateUniqueValues()}set defaultSymbol(e){this._isDefaultSymbolDerived=!1,this._set("defaultSymbol",e)}set fieldDelimiter(e){this._set("fieldDelimiter",e),this._updateUniqueValues()}readPortal(e,t,i){return i.portal||g.A.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,O.f)(t.styleUrl,i);return Object.freeze({styleUrl:e})}}writeStyleOrigin(e,t,i,s){e.styleName?t.styleName=e.styleName:e.styleUrl&&(t.styleUrl=(0,O.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?N().error("#uniqueValueGroups=","Cannot modify unique value groups of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueGroups",e),this._updateInfosFromGroups(),this._isInfosSource=!1,this._watchUniqueValueGroups())}set uniqueValueInfos(e){this.styleOrigin?N().error("#uniqueValueInfos=","Cannot modify unique value infos of a UniqueValueRenderer created from a web style"):(this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos())}addUniqueValueInfo(e,t){if(this.styleOrigin)return void N().error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?L(e):new k.A({value:e,symbol:(0,r.dp)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[i.value]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void N().error("#removeUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");const t=this.uniqueValueInfos;if(t)for(let i=0;i<t.length;i++){const s=t[i];if(String(s.value)===String(e)){delete this._valueInfoMap[e],t.splice(i,1);break}}this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}async getUniqueValueInfo(e,t){let i=t;return this.valueExpression&&null==t?.arcade&&(i={...i,arcade:await(0,T.lw)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void N().error("#getSymbol()","Please use getSymbolAsync if valueExpression is used");const i=this._getUniqueValueInfo(e,t);return i?.symbol||this.defaultSymbol}async getSymbolAsync(e,t){let i=t;if(this.valueExpression&&null==i?.arcade){const e=await(0,T.lw)(),{arcadeUtils:t}=e;t.hasGeometryOperations(this.valueExpression)&&await t.enableGeometryOperations(),i={...i,arcade:e}}const s=this._getUniqueValueInfo(e,i);return s?.symbol||this.defaultSymbol}getSymbols(){const e=[];for(const t of this.uniqueValueInfos??[])t.symbol&&e.push(t.symbol);return this.defaultSymbol&&e.push(this.defaultSymbol),e}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){const e=JSON.stringify(this.backgroundFillSymbol),t=JSON.stringify(this.defaultSymbol),i=this.uniqueValueInfos?.reduce(((e,t)=>e+t.getMeshHash()),"");return`${e}.${t}.${i}.${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}.${this.valueExpression}`}clone(){const e=new E({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.o8)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.o8)(this.visualVariables),legendOptions:(0,n.o8)(this.legendOptions),authoringInfo:(0,n.o8)(this.authoringInfo),backgroundFillSymbol:(0,n.o8)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.o8)(this.uniqueValueInfos),i=(0,n.o8)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.o8)(this.styleOrigin))),Object.freeze(t),Object.freeze(i)),e._set("uniqueValueInfos",t),e._updateValueInfoMap(),e._set("uniqueValueGroups",i),e._isInfosSource=this._isInfosSource,e._watchUniqueValueInfosAndGroups(),e}get arcadeRequired(){return this.arcadeRequiredForVisualVariables||!!this.valueExpression}async collectRequiredFields(e,t){const i=[this.collectVVRequiredFields(e,t),this.collectSymbolFields(e,t)];await Promise.all(i)}async collectSymbolFields(e,t){const i=[...this.getSymbols().map((i=>i.collectRequiredFields(e,t))),(0,v.Dx)(e,t,this.valueExpression)];(0,v.rq)(e,t,this.field),(0,v.rq)(e,t,this.field2),(0,v.rq)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,U.cF)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e?.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new C.A({styleUrl:e.styleUrl,styleName:e.styleName,portal:this.portal,name:i.name});this.defaultSymbol||i.name!==e.data.defaultItem||(this.defaultSymbol=s,this._isDefaultSymbolDerived=!0);const r=new k.A({value:i.name,symbol:s});t.push(r),this._valueInfoMap[i.name]=r})),this._set("uniqueValueInfos",Object.freeze(t)),this._updateGroupsFromInfos(!0),this._isInfosSource=null,this._watchUniqueValueInfos(),!this.defaultSymbol&&this.uniqueValueInfos?.length&&(this.defaultSymbol=this.uniqueValueInfos[0].symbol,this._isDefaultSymbolDerived=!0),this}))}_updateFieldDelimiter(){this.field&&this.field2&&!this.fieldDelimiter&&this._set("fieldDelimiter",",")}_updateUniqueValues(){null!=this._isInfosSource&&(this._isInfosSource?this._updateGroupsFromInfos():this._updateInfosFromGroups())}_updateValueInfoMap(){this._valueInfoMap={};const{uniqueValueInfos:e}=this;if(e)for(const t of e)this._valueInfoMap[t.value+""]=t}_watchUniqueValueInfosAndGroups(){this._watchUniqueValueInfos(),this._watchUniqueValueGroups()}_watchUniqueValueInfos(){this.removeHandles($);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,u.wB)((()=>({symbol:i.symbol,value:i.value,label:i.label,description:i.description})),((e,t)=>{e!==t&&(this._updateGroupsFromInfos(),this._isInfosSource=!0)}),{sync:!0}));this.addHandles(t,$)}}_watchUniqueValueGroups(){this.removeHandles(R);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,u.wB)((()=>({classes:i.classes})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}));for(const e of i.classes??[])t.push((0,u.wB)((()=>({symbol:e.symbol,values:e.values,label:e.label,description:e.description})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}))}this.addHandles(t,R)}}_updateInfosFromGroups(){if(!this.uniqueValueGroups)return this._set("uniqueValueInfos",null),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const e=[],{field:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueGroups:l,valueExpression:n}=this;if(!t&&!n)return this._set("uniqueValueInfos",e),this._updateValueInfoMap(),void this._watchUniqueValueInfos();const o=!(!t||!i);for(const t of l)for(const l of t.classes??[]){const{symbol:t,label:n,values:a,description:u}=l;for(const l of a??[]){const{value:a,value2:p,value3:c}=l,h=[a];i&&h.push(p),s&&h.push(c);const d=o?h.join(r||""):h[0]??void 0;e.push(new k.A({symbol:t,label:n,value:d,description:u}))}}this._set("uniqueValueInfos",e),this._updateValueInfoMap(),this._watchUniqueValueInfos()}_updateGroupsFromInfos(e=!1){if(!this.uniqueValueInfos)return this._set("uniqueValueGroups",null),void this._watchUniqueValueGroups();const{field:t,field2:i,valueExpression:s,fieldDelimiter:r,uniqueValueInfos:l}=this;if(!t&&!s||!l.length)return this._set("uniqueValueGroups",[]),void this._watchUniqueValueGroups();const n=!(!t||!i),o=l.map((e=>{const{symbol:t,label:i,value:s,description:l}=e,[o,a,u]=n?s?.toString()?.split(r||"")||[]:[s];return new Z({symbol:t,label:i,description:l,values:[new I({value:o,value2:a,value3:u})]})})),a=[new q({classes:o})];e&&Object.freeze(a),this._set("uniqueValueGroups",a),this._watchUniqueValueGroups()}_getUniqueValueInfo(e,t){return this.valueExpression?this._getUnqiueValueInfoForExpression(e,t):this._getUnqiueValueInfoForFields(e)}_getUnqiueValueInfoForExpression(e,t){const{viewingMode:i,scale:s,spatialReference:r,arcade:l,timeZone:n}=t??{};let o=this._cache.compiledFunc;const a=l.arcadeUtils;if(!o){const e=a.createSyntaxTree(this.valueExpression);o=a.createFunction(e),this._cache.compiledFunc=o}const u=a.executeFunction(o,a.createExecContext(e,a.getViewInfo({viewingMode:i,scale:s,spatialReference:r}),n));return this._valueInfoMap[u+""]}_getUnqiueValueInfoForFields(e){const t=this.field,i=e.attributes;let s;if(this.field2){const e=this.field2,r=this.field3,l=[];t&&l.push(i[t]),e&&l.push(i[e]),r&&l.push(i[r]),s=l.join(this.fieldDelimiter||"")}else t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new E(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||g.A.getDefault());const s=i.populateFromStyle();return s.catch((t=>{N().error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),s}static fromStyleUrl(e,t){const i=new E(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch((t=>{N().error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),s}};(0,s._)([(0,p.MZ)({readOnly:!0})],B.prototype,"_cache",null),(0,s._)([(0,h.e)({uniqueValue:"unique-value"})],B.prototype,"type",void 0),(0,s._)([(0,p.MZ)(V.As)],B.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,p.MZ)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],B.prototype,"field",null),(0,s._)([(0,c.w)("field")],B.prototype,"castField",null),(0,s._)([(0,m.K)("field")],B.prototype,"writeField",null),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],B.prototype,"field2",null),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],B.prototype,"field3",null),(0,s._)([(0,p.MZ)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],B.prototype,"orderByClassesEnabled",void 0),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],B.prototype,"valueExpression",null),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],B.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,p.MZ)({type:S.q,json:{write:!0}})],B.prototype,"legendOptions",void 0),(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],B.prototype,"defaultLabel",void 0),(0,s._)([(0,p.MZ)((0,a.$N)({...V.z4},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],B.prototype,"defaultSymbol",null),(0,s._)([(0,p.MZ)({type:String,value:null,json:{write:!0}})],B.prototype,"fieldDelimiter",null),(0,s._)([(0,p.MZ)({type:g.A,readOnly:!0})],B.prototype,"portal",void 0),(0,s._)([(0,d.w)("portal",["styleName"])],B.prototype,"readPortal",null),(0,s._)([(0,p.MZ)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],B.prototype,"styleOrigin",void 0),(0,s._)([(0,d.w)("styleOrigin",["styleName","styleUrl"])],B.prototype,"readStyleOrigin",null),(0,s._)([(0,m.K)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],B.prototype,"writeStyleOrigin",null),(0,s._)([(0,p.MZ)({type:[q],json:{read:{source:["uniqueValueGroups","uniqueValueInfos"],reader:(e,t,i)=>(t.uniqueValueGroups||function(e){const{field1:t,field2:i,field3:s,fieldDelimiter:r,uniqueValueInfos:l,valueExpression:n}=e,o=!(!t||!i);return[{classes:(l??[]).map((e=>{const{symbol:l,label:a,value:u,description:p}=e,[c,h,d]=o?u?.toString()?.split(r||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(h),s&&y.push(d),{symbol:l,label:a,values:[y],description:p}}))}]}(t)).map((e=>q.fromJSON(e,i)))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],B.prototype,"uniqueValueGroups",null),(0,s._)([(0,p.MZ)({type:[k.A],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],B.prototype,"uniqueValueInfos",null),B=E=(0,s._)([(0,y.$)(D)],B);const G=B},38043:(e,t,i)=>{i.d(t,{h:()=>E});var s=i(90237),r=i(10107),l=(i(44208),i(53966)),n=(i(87811),i(36005)),o=i(40608),a=i(43937),u=i(30524);const p=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var c,h=i(2024),d=i(2795),y=i(25482),m=i(56507),f=i(78553);let b=c=class extends y.oY{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,f.D)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,f.p)(e)}clone(){return new c({label:this.label,opacity:this.opacity,value:this.value})}};(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],b.prototype,"label",void 0),(0,s._)([(0,r.MZ)({type:Number,json:{type:m.jz,write:{target:"transparency"}}})],b.prototype,"opacity",void 0),(0,s._)([(0,n.w)("opacity",["transparency"])],b.prototype,"readOpacity",null),(0,s._)([(0,a.K)("opacity")],b.prototype,"writeOpacity",null),(0,s._)([(0,r.MZ)({type:Number,json:{write:!0}})],b.prototype,"value",void 0),b=c=(0,s._)([(0,o.$)("esri.renderers.visualVariables.support.OpacityStop")],b);const v=b;var g;let w=g=class extends d.A{constructor(e){super(e),this.type="opacity",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new g({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,s._)([(0,r.MZ)({readOnly:!0})],w.prototype,"cache",null),(0,s._)([(0,r.MZ)({type:["opacity"],json:{type:["transparencyInfo"]}})],w.prototype,"type",void 0),(0,s._)([(0,r.MZ)({type:String,json:{write:!0}})],w.prototype,"normalizationField",void 0),(0,s._)([(0,r.MZ)({type:[v],json:{write:!0}})],w.prototype,"stops",null),w=g=(0,s._)([(0,o.$)("esri.renderers.visualVariables.OpacityVariable")],w);const _=w;var V=i(23461),S=i(48940),x=i(69622),M=i(66552),z=i(67076);const I={color:h.A,size:S.A,opacity:_,rotation:V.A},A=new M.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),j=/^\[([^\]]+)\]$/i;let Z=class extends x.A{constructor(){super(...arguments),this.colorVariables=null,this.opacityVariables=null,this.rotationVariables=null,this.sizeVariables=null}set visualVariables(e){if(this._resetVariables(),e=e&&e.filter((e=>!!e)),e?.length){for(const t of e)switch(t.type){case"color":this.colorVariables.push(t);break;case"opacity":this.opacityVariables.push(t);break;case"rotation":this.rotationVariables.push(t);break;case"size":this.sizeVariables.push(t)}this.sizeVariables.length&&this.sizeVariables.some((e=>!!e.target))&&e.sort(((e,t)=>{let i=null;return i=e.target===t.target?0:e.target?1:-1,i}));for(let t=0;t<e.length;t++)e[t].index=t;this._set("visualVariables",e)}else this._set("visualVariables",e)}readVariables(e,t,i){const{rotationExpression:s,rotationType:r}=t,n=s?.match(j),o=n?.[1];if(o&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:o})),e)return e.map((e=>{const t=A.read(e.type),s=I[t];s||(l.A.getLogger(this).warn(`Unknown variable type: ${t}`),i?.messages&&i.messages.push(new z.A("visual-variable:unsupported",`visualVariable of type '${t}' is not supported`,{definition:e,context:i})));const r=new s;return r.read(e,i),r}))}writeVariables(e,t){const i=[];for(const s of e){const e=s.toJSON(t);e&&i.push(e)}return i}_resetVariables(){this.colorVariables=[],this.opacityVariables=[],this.rotationVariables=[],this.sizeVariables=[]}};(0,s._)([(0,r.MZ)()],Z.prototype,"visualVariables",null),Z=(0,s._)([(0,o.$)("esri.renderers.visualVariables.VisualVariableFactory")],Z);const F=Z,q={base:d.A,key:"type",typeMap:{opacity:_,color:h.A,rotation:V.A,size:S.A}},E=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new F}set visualVariables(e){this._vvFactory.visualVariables=e,this._set("visualVariables",this._vvFactory.visualVariables)}readVisualVariables(e,t,i){return this._vvFactory.readVariables(e,t,i)}writeVisualVariables(e,t,i,s){t[i]=this._vvFactory.writeVariables(e,s)}get arcadeRequiredForVisualVariables(){if(!this.visualVariables)return!1;for(const e of this.visualVariables)if(e.arcadeRequired)return!0;return!1}hasVisualVariables(e,t){return e?this.getVisualVariablesForType(e,t).length>0:this.getVisualVariablesForType("size",t).length>0||this.getVisualVariablesForType("color",t).length>0||this.getVisualVariablesForType("opacity",t).length>0||this.getVisualVariablesForType("rotation",t).length>0}getVisualVariablesForType(e,t){const i=this.visualVariables;return i?i.filter((i=>i.type===e&&("string"==typeof t?i.target===t:!1!==t||!i.target))):[]}async collectVVRequiredFields(e,t){let i=[];this.visualVariables&&(i=i.concat(this.visualVariables));for(const s of i)s&&(s.field&&(0,u.rq)(e,t,s.field),s.normalizationField&&(0,u.rq)(e,t,s.normalizationField),s.valueExpression&&(k(s.valueExpression,e,t)||await(0,u.Dx)(e,t,s.valueExpression)))}};return(0,s._)([(0,r.MZ)({types:[q],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,s._)([(0,n.w)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,s._)([(0,a.K)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,s._)([(0,o.$)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function k(e,t,i){const s=(r=e,r.match(p)?.[1]?.replace(/\\'/g,"'")??null);var r;return null!=s&&((0,u.rq)(t,i,s),!0)}},30943:(e,t,i)=>{i.d(t,{A:()=>T});var s,r=i(90237),l=i(66552),n=i(25482),o=i(4718),a=i(10107),u=i(56507),p=i(36005),c=i(40608);i(44208),i(53966),i(87811);let h=s=class extends n.oY{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var d;(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],h.prototype,"minValue",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],h.prototype,"maxValue",void 0),h=s=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoClassBreakInfo")],h);let y=d=class extends n.oY{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=new Array}clone(){return new d({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.o8)(this.classBreakInfos)})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,r._)([(0,a.MZ)({type:[h],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=d=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(79901);let b=m=class extends n.oY{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new m({label:this.label,value:this.value,size:this.size})}};(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],b.prototype,"label",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"size",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"value",void 0),b=m=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoSizeStop")],b);const v=b;var g;const w=new l.J({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),_=new l.J({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),V={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},S=["high-to-low","above-and-below","centered-on","extremes"],x=[...new Set(["high-to-low","above-and-below","centered-on","extremes","above","below","high-to-low","above-and-below","above","below","reference-size"])],M=["seconds","minutes","hours","days","months","years"];let z=g=class extends n.oY{constructor(e){super(e),this.endTime=null,this.field=null,this.maxSliderValue=null,this.minSliderValue=null,this.startTime=null,this.type=null,this.units=null}castEndTime(e){return"string"==typeof e||"number"==typeof e?e:null}get normalizationField(){return"reference-size"===this.theme?this._get("normalizationField"):null}set normalizationField(e){this._set("normalizationField",e)}get referenceSizeScale(){return"reference-size"===this.theme?this._get("referenceSizeScale"):null}set referenceSizeScale(e){this._set("referenceSizeScale",e)}get referenceSizeSymbolStyle(){return"reference-size"===this.theme?this._get("referenceSizeSymbolStyle"):null}set referenceSizeSymbolStyle(e){this._set("referenceSizeSymbolStyle",e)}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}get sizeStops(){return"reference-size"===this.theme?this._get("sizeStops"):null}set sizeStops(e){this._set("sizeStops",e)}get style(){return"color"===this.type?this._get("style"):null}set style(e){this._set("style",e)}get theme(){return"color"===this.type||"size"===this.type?this._get("theme")||"high-to-low":null}set theme(e){this._set("theme",e)}clone(){return new g({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,normalizationField:this.normalizationField,referenceSizeScale:this.referenceSizeScale,referenceSizeSymbolStyle:this.referenceSizeSymbolStyle,sizeStops:(0,o.o8)(this.sizeStops),startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r._)([(0,a.MZ)({types:V,json:{write:!0}})],z.prototype,"endTime",void 0),(0,r._)([(0,f.w)("endTime")],z.prototype,"castEndTime",null),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"field",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],z.prototype,"minSliderValue",void 0),(0,r._)([(0,a.MZ)({type:String,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"normalizationField",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeScale",null),(0,r._)([(0,a.MZ)({type:["circle","diamond","hexagon-flat","hexagon-pointy","square"],value:null,json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"referenceSizeSymbolStyle",null),(0,r._)([(0,a.MZ)({types:V,json:{write:!0}})],z.prototype,"startTime",void 0),(0,r._)([(0,f.w)("startTime")],z.prototype,"castStartTime",null),(0,r._)([(0,a.MZ)({type:[v],json:{origins:{"web-scene":{write:!1}},write:!0}})],z.prototype,"sizeStops",null),(0,r._)([(0,a.MZ)({type:w.apiValues,value:null,json:{type:w.jsonValues,read:w.read,write:w.write}})],z.prototype,"style",null),(0,r._)([(0,a.MZ)({type:x,value:null,json:{type:x,origins:{"web-scene":{type:S,write:{writer:(e,t)=>{S.includes(e)&&(t.theme=e)}}}},write:!0}})],z.prototype,"theme",null),(0,r._)([(0,a.MZ)({type:_.apiValues,json:{type:_.jsonValues,read:_.read,write:_.write}})],z.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:M,json:{type:M,write:!0}})],z.prototype,"units",void 0),z=g=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfoVisualVariable")],z);const I=z;var A,j=i(95349);const Z=new l.J({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),F=new l.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new l.J({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),E=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let k=A=class extends n.oY{constructor(e){super(e),this.colorRamp=null,this.fadeRatio=null,this.isAutoGenerated=!1,this.lengthUnit=null,this.maxSliderValue=null,this.minSliderValue=null,this.visualVariables=null}get classificationMethod(){const e=this._get("classificationMethod"),t=this.type;return t&&"relationship"!==t?"class-breaks-size"===t||"class-breaks-color"===t?e||"manual":null:e}set classificationMethod(e){this._set("classificationMethod",e)}readColorRamp(e){return e?(0,j.r)(e):void 0}get fields(){return this.type&&"predominance"!==this.type?null:this._get("fields")}set fields(e){this._set("fields",e)}get field1(){return this.type&&"relationship"!==this.type?null:this._get("field1")}set field1(e){this._set("field1",e)}get field2(){return this.type&&"relationship"!==this.type?null:this._get("field2")}set field2(e){this._set("field2",e)}get flowTheme(){return"flow"===this.type?this._get("flowTheme"):null}set flowTheme(e){this._set("flowTheme",e)}get focus(){return this.type&&"relationship"!==this.type?null:this._get("focus")}set focus(e){this._set("focus",e)}get numClasses(){return this.type&&"relationship"!==this.type?null:this._get("numClasses")}set numClasses(e){this._set("numClasses",e)}get statistics(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("statistics"):null}set statistics(e){this._set("statistics",e)}get standardDeviationInterval(){const e=this.type;return e&&"relationship"!==e&&"class-breaks-size"!==e&&"class-breaks-color"!==e||this.classificationMethod&&"standard-deviation"!==this.classificationMethod?null:this._get("standardDeviationInterval")}set standardDeviationInterval(e){this._set("standardDeviationInterval",e)}get type(){return this._get("type")}set type(e){let t=e;"classed-size"===e?t="class-breaks-size":"classed-color"===e&&(t="class-breaks-color"),this._set("type",t)}get univariateSymbolStyle(){return"univariate-color-size"===this.type&&"above-and-below"===this.univariateTheme?this._get("univariateSymbolStyle"):null}set univariateSymbolStyle(e){this._set("univariateSymbolStyle",e)}get univariateTheme(){return"univariate-color-size"===this.type?this._get("univariateTheme"):null}set univariateTheme(e){this._set("univariateTheme",e)}clone(){return new A({classificationMethod:this.classificationMethod,colorRamp:(0,o.o8)(this.colorRamp),fadeRatio:(0,o.o8)(this.fadeRatio),fields:this.fields?.slice(0),field1:(0,o.o8)(this.field1),field2:(0,o.o8)(this.field2),isAutoGenerated:this.isAutoGenerated,focus:this.focus,numClasses:this.numClasses,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,lengthUnit:this.lengthUnit,statistics:this.statistics,standardDeviationInterval:this.standardDeviationInterval,type:this.type,visualVariables:this.visualVariables&&this.visualVariables.map((e=>e.clone())),univariateSymbolStyle:this.univariateSymbolStyle,univariateTheme:this.univariateTheme,flowTheme:this.flowTheme})}};(0,r._)([(0,a.MZ)({type:Z.apiValues,value:null,json:{type:Z.jsonValues,read:Z.read,write:Z.write,origins:{"web-document":{default:"manual",type:Z.jsonValues,read:Z.read,write:Z.write}}}})],k.prototype,"classificationMethod",null),(0,r._)([(0,a.MZ)({types:j.g,json:{write:!0}})],k.prototype,"colorRamp",void 0),(0,r._)([(0,p.w)("colorRamp")],k.prototype,"readColorRamp",null),(0,r._)([(0,a.MZ)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"fadeRatio",void 0),(0,r._)([(0,a.MZ)({type:[String],value:null,json:{write:!0}})],k.prototype,"fields",null),(0,r._)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],k.prototype,"field1",null),(0,r._)([(0,a.MZ)({type:y,value:null,json:{write:!0}})],k.prototype,"field2",null),(0,r._)([(0,a.MZ)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"flowTheme",null),(0,r._)([(0,a.MZ)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],k.prototype,"focus",null),(0,r._)([(0,a.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],k.prototype,"isAutoGenerated",void 0),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{type:u.jz,write:!0}})],k.prototype,"numClasses",null),(0,r._)([(0,a.MZ)({type:E,json:{type:E,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],k.prototype,"lengthUnit",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"minSliderValue",void 0),(0,r._)([(0,a.MZ)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],k.prototype,"statistics",null),(0,r._)([(0,a.MZ)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],k.prototype,"standardDeviationInterval",null),(0,r._)([(0,a.MZ)({type:F.apiValues,value:null,json:{type:F.jsonValues,read:F.read,write:F.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],k.prototype,"type",null),(0,r._)([(0,a.MZ)({type:[I],json:{write:!0}})],k.prototype,"visualVariables",void 0),(0,r._)([(0,a.MZ)({type:["caret","circle-caret","arrow","circle-arrow","plus-minus","circle-plus-minus","square","circle","triangle","happy-sad","thumb","custom"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"univariateSymbolStyle",null),(0,r._)([(0,a.MZ)({type:["high-to-low","above-and-below","above","below"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],k.prototype,"univariateTheme",null),k=A=(0,r._)([(0,c.$)("esri.renderers.support.AuthoringInfo")],k);const T=k},88542:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends l.oY{constructor(e){super(e),this.description=null,this.label=null,this.minValue=null,this.maxValue=0,this.symbol=null}clone(){return new s({description:this.description,label:this.label,minValue:this.minValue,maxValue:this.maxValue,symbol:this.symbol?.clone()??null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.MZ)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r._)([(0,n.MZ)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r._)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),u=s=(0,r._)([(0,o.$)("esri.renderers.support.ClassBreakInfo")],u);const p=u},86768:(e,t,i)=>{i.d(t,{q:()=>a});var s,r=i(90237),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608));let a=s=class extends l.oY{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=s=(0,r._)([(0,o.$)("esri.renderers.support.LegendOptions")],a)},94833:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(25482),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(49849);let u=s=class extends l.oY{constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.value=null}clone(){return new s({value:this.value,description:this.description,label:this.label,symbol:this.symbol?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol?.toJSON());return`${this.value}.${e}`}};(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.MZ)(a.Wp)],u.prototype,"symbol",void 0),(0,r._)([(0,n.MZ)(a.Ug)],u.prototype,"value",void 0),u=s=(0,r._)([(0,o.$)("esri.renderers.support.UniqueValueInfo")],u);const p=u},49849:(e,t,i)=>{i.d(t,{As:()=>c,Ug:()=>h,Wp:()=>p,z4:()=>u});var s=i(61147),r=i(93637),l=i(90360),n=i(73838),o=i(20378),a=i(65365);const u={types:s.xK,json:{write:{writer:n.M9},origins:{"web-scene":{types:s.On,write:{writer:n.M9},read:{reader:(0,l.C)({types:s.On})}}}}},p=(0,r.$N)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:o.A,key:"type",typeMap:{"simple-fill":s.Es.typeMap["simple-fill"],"picture-fill":s.Es.typeMap["picture-fill"],"polygon-3d":s.Es.typeMap["polygon-3d"]}},json:{write:{writer:n.M9},origins:{"web-scene":{type:a.A,write:{writer:n.M9}}}}},h={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},2024:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(2795),a=i(72500);let u=s=class extends o.A{constructor(e){super(e),this.type="color",this.normalizationField=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null}}set stops(e){e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)),this._set("stops",e)}clone(){return new s({field:this.field,normalizationField:this.normalizationField,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,stops:this.stops&&this.stops.map((e=>e.clone())),legendOptions:this.legendOptions?.clone()})}getAttributeHash(){return`${super.getAttributeHash()}-${this.normalizationField}`}_interpolateData(){return this.stops&&this.stops.map((e=>e.value||0))}};(0,r._)([(0,l.MZ)({readOnly:!0})],u.prototype,"cache",null),(0,r._)([(0,l.MZ)({type:["color"],json:{type:["colorInfo"]}})],u.prototype,"type",void 0),(0,r._)([(0,l.MZ)({type:String,json:{write:!0}})],u.prototype,"normalizationField",void 0),(0,r._)([(0,l.MZ)({type:[a.A],json:{write:!0}})],u.prototype,"stops",null),u=s=(0,r._)([(0,n.$)("esri.renderers.visualVariables.ColorVariable")],u);const p=u},23461:(e,t,i)=>{i.d(t,{A:()=>c});var s,r=i(90237),l=i(49186),n=i(10107),o=(i(44208),i(53966),i(87811),i(40608)),a=i(43937),u=i(2795);let p=s=class extends u.A{constructor(e){super(e),this.axis=null,this.type="rotation",this.rotationType="geographic",this.valueExpressionTitle=null}get cache(){return{hasExpression:!!this.valueExpression,compiledFunc:null}}writeValueExpressionTitleWebScene(e,t,i,s){if(s?.messages){const e=`visualVariables[${this.index}]`;s.messages.push(new l.A("property:unsupported",this.type+"VisualVariable.valueExpressionTitle is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:e+".valueExpressionTitle",context:s}))}}clone(){return new s({axis:this.axis,rotationType:this.rotationType,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,legendOptions:this.legendOptions?.clone()})}};(0,r._)([(0,n.MZ)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,n.MZ)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,r._)([(0,n.MZ)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,r._)([(0,n.MZ)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,r._)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,a.K)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,r._)([(0,o.$)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},48940:(e,t,i)=>{i.d(t,{A:()=>I});var s,r=i(90237),l=i(49186),n=i(66552),o=i(53966),a=i(10107),u=i(79901),p=i(36005),c=i(40608),h=i(43937),d=i(2795),y=i(90629),m=i(12330),f=(i(44208),i(87811),i(41078));let b=s=class extends f.A{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues?.slice(0)})}};(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"customValues",void 0),b=s=(0,r._)([(0,c.$)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],b);const v=b;var g,w=i(98205),_=i(29266);const V=new n.J({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new n.J({unknown:"unknown",inch:"inches",foot:"feet",yard:"yards",mile:"miles","nautical-mile":"nautical-miles",millimeter:"millimeters",centimeter:"centimeters",decimeter:"decimeters",meter:"meters",kilometer:"kilometers","decimal-degree":"decimal-degrees"});function x(e){if(null!=e)return"string"==typeof e||"number"==typeof e?function(e){return(0,y.cr)(e)}(e):"size"===e.type?(0,w.of)(e)?e:(delete(e={...e}).type,new z(e)):void 0}function M(e,t,i){if("object"!=typeof e)return e;const s=new z;return s.read(e,i),s}let z=g=class extends d.A{constructor(e){super(e),this.axis=null,this.legendOptions=null,this.normalizationField=null,this.scaleBy=null,this.target=null,this.type="size",this.useSymbolValue=null,this.valueExpression=null,this.valueRepresentation=null,this.valueUnit=null}get cache(){return{ipData:this._interpolateData(),hasExpression:!!this.valueExpression,compiledFunc:null,isScaleDriven:null!=this.valueExpression&&_.RV.test(this.valueExpression)}}set index(e){(0,w.of)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,w.of)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,w.eh)(this)}set maxDataValue(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set maxSize when stops is not null."),e=null),this._set("maxSize",e)}castMaxSize(e){return x(e)}readMaxSize(e,t,i){return M(e,0,i)}set minDataValue(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(o.A.getLogger(this).warn("cannot set minSize when stops is not null."),e=null),this._set("minSize",e)}castMinSize(e){return x(e)}readMinSize(e,t,i){return M(e,0,i)}get arcadeRequired(){return!!this.valueExpression||null!=this.minSize&&"object"==typeof this.minSize&&this.minSize.arcadeRequired||null!=this.maxSize&&"object"==typeof this.maxSize&&this.maxSize.arcadeRequired}set stops(e){null==this.minDataValue&&null==this.maxDataValue&&null==this.minSize&&null==this.maxSize?e&&Array.isArray(e)&&(e=e.filter((e=>!!e))).sort(((e,t)=>e.value-t.value)):e&&(o.A.getLogger(this).warn("cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null."),e=null),this._set("stops",e)}get transformationType(){return(0,w.KZ)(this,this.inputValueType)}readValueExpression(e,t){return e||t.expression&&"$view.scale"}writeValueExpressionWebScene(e,t,i,s){if("$view.scale"===e){if(s?.messages){const e=this.index,t="string"==typeof e?e:`visualVariables[${e}]`;s.messages.push(new l.A("property:unsupported",this.type+"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.",{instance:this,propertyName:t+".valueExpression",context:s}))}}else t[i]=e}readValueUnit(e){return e?S.read(e):null}clone(){return new g({axis:this.axis,field:this.field,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,maxDataValue:this.maxDataValue,maxSize:(0,w.of)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,w.of)(this.minSize)?this.minSize.clone():this.minSize,normalizationField:this.normalizationField,stops:this.stops?.map((e=>e.clone())),target:this.target,useSymbolValue:this.useSymbolValue,valueRepresentation:this.valueRepresentation,valueUnit:this.valueUnit,legendOptions:this.legendOptions?.clone()})}flipSizes(){if(this.transformationType===w._w.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===w._w.Stops){const e=this.stops;if(!e)return this;const t=e.map((e=>e.size)).reverse(),i=e.length;for(let s=0;s<i;s++)e[s].size=t[s];return this}return this}getAttributeHash(){return`${super.getAttributeHash()}-${this.target}-${this.normalizationField}`}_interpolateData(){return this.stops?.map((e=>e.value||0))}};(0,r._)([(0,a.MZ)({readOnly:!0})],z.prototype,"cache",null),(0,r._)([(0,a.MZ)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],z.prototype,"axis",void 0),(0,r._)([(0,a.MZ)()],z.prototype,"index",null),(0,r._)([(0,a.MZ)({type:String,readOnly:!0})],z.prototype,"inputValueType",null),(0,r._)([(0,a.MZ)({type:v,json:{write:!0}})],z.prototype,"legendOptions",void 0),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"maxDataValue",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"maxSize",null),(0,r._)([(0,u.w)("maxSize")],z.prototype,"castMaxSize",null),(0,r._)([(0,p.w)("maxSize")],z.prototype,"readMaxSize",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"minDataValue",null),(0,r._)([(0,a.MZ)({type:Number,value:null,json:{write:!0}})],z.prototype,"minSize",null),(0,r._)([(0,u.w)("minSize")],z.prototype,"castMinSize",null),(0,r._)([(0,p.w)("minSize")],z.prototype,"readMinSize",null),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"normalizationField",void 0),(0,r._)([(0,a.MZ)({readOnly:!0})],z.prototype,"arcadeRequired",null),(0,r._)([(0,a.MZ)({type:String})],z.prototype,"scaleBy",void 0),(0,r._)([(0,a.MZ)({type:[m.A],value:null,json:{write:!0}})],z.prototype,"stops",null),(0,r._)([(0,a.MZ)({type:["outline"],json:{write:!0}})],z.prototype,"target",void 0),(0,r._)([(0,a.MZ)({type:String,readOnly:!0})],z.prototype,"transformationType",null),(0,r._)([(0,a.MZ)({type:["size"],json:{type:["sizeInfo"]}})],z.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],z.prototype,"useSymbolValue",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],z.prototype,"valueExpression",void 0),(0,r._)([(0,p.w)("valueExpression",["valueExpression","expression"])],z.prototype,"readValueExpression",null),(0,r._)([(0,h.K)("web-scene","valueExpression")],z.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,a.MZ)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],z.prototype,"valueRepresentation",void 0),(0,r._)([(0,a.MZ)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],z.prototype,"valueUnit",void 0),(0,r._)([(0,p.w)("valueUnit")],z.prototype,"readValueUnit",null),z=g=(0,r._)([(0,c.$)("esri.renderers.visualVariables.SizeVariable")],z);const I=z},2795:(e,t,i)=>{i.d(t,{A:()=>y});var s=i(90237),r=i(66552),l=i(25482),n=i(53966),o=i(10107),a=i(79901),u=i(40608),p=i(56507),c=i(41078);const h=new r.J({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let d=class extends l.oY{constructor(e){super(e),this.index=null,this.type=null,this.field=null,this.valueExpression=null,this.valueExpressionTitle=null,this.legendOptions=null}castField(e){return null==e?e:"function"==typeof e?(n.A.getLogger(this).error(".field: field must be a string value"),null):(0,p.GX)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,o.MZ)()],d.prototype,"index",void 0),(0,s._)([(0,o.MZ)({type:h.apiValues,readOnly:!0,json:{read:h.read,write:h.write}})],d.prototype,"type",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,s._)([(0,a.w)("field")],d.prototype,"castField",null),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,s._)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,o.MZ)({readOnly:!0})],d.prototype,"arcadeRequired",null),(0,s._)([(0,o.MZ)({type:c.A,json:{write:!0}})],d.prototype,"legendOptions",void 0),d=(0,s._)([(0,u.$)("esri.renderers.visualVariables.VisualVariable")],d);const y=d},72500:(e,t,i)=>{i.d(t,{A:()=>h});var s,r=i(90237),l=i(68197),n=i(25482),o=i(10107),a=i(56507),u=(i(87811),i(44208),i(40608)),p=i(43937);let c=s=class extends n.oY{constructor(e){super(e),this.color=null,this.label=null,this.value=null}writeValue(e,t,i){t[i]=e??0}clone(){return new s({color:this.color&&this.color.clone(),label:this.label,value:this.value})}};(0,r._)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:!0}})],c.prototype,"color",void 0),(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,r._)([(0,p.K)("value")],c.prototype,"writeValue",null),c=s=(0,r._)([(0,u.$)("esri.renderers.visualVariables.support.ColorStop")],c);const h=c},12330:(e,t,i)=>{i.d(t,{A:()=>p});var s,r=i(90237),l=i(25482),n=i(90629),o=i(10107),a=(i(44208),i(53966),i(87811),i(40608));let u=s=class extends l.oY{constructor(e){super(e),this.label=null,this.size=null,this.value=null,this.useMinValue=null,this.useMaxValue=null}clone(){return new s({label:this.label,size:this.size,value:this.value,useMaxValue:this.useMaxValue,useMinValue:this.useMinValue})}};(0,r._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,o.MZ)({type:Number,cast:n.cr,json:{write:!0}})],u.prototype,"size",void 0),(0,r._)([(0,o.MZ)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMinValue",void 0),(0,r._)([(0,o.MZ)({type:Boolean,json:{write:!1}})],u.prototype,"useMaxValue",void 0),u=s=(0,r._)([(0,a.$)("esri.renderers.visualVariables.support.SizeStop")],u);const p=u},41078:(e,t,i)=>{i.d(t,{A:()=>u});var s,r=i(90237),l=i(10107),n=(i(44208),i(53966),i(87811),i(40608)),o=i(86768);let a=s=class extends o.q{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=s=(0,r._)([(0,n.$)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},98205:(e,t,i)=>{var s,r;function l(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function o(e){return e.valueExpression?s.Expression:e.field&&"string"==typeof e.field?s.Field:s.Unknown}function a(e,t){const i=t||o(e),l=e.valueUnit||"unknown";return i===s.Unknown?r.Constant:e.stops?r.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?r.ClampedLinear:"unknown"===l?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?r.Proportional:r.Additive:r.Identity:r.RealWorldSize}i.d(t,{KZ:()=>a,Yf:()=>s,_w:()=>r,eh:()=>o,gf:()=>n,of:()=>l}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(s||(s={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(r||(r={}))},29266:(e,t,i)=>{i.d(t,{RV:()=>h,UT:()=>d,Yz:()=>b}),i(68197);var s=i(52106),r=i(21818),l=i(53966),n=i(31756),o=i(98205);const a=()=>l.A.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=e=>a().warn(`The visualVariable should be an instance of esri.renderers.visualVariables.${e}`),p=()=>a().error("Use of arcade expressions requires an arcade context"),c=(new s.A,Math.PI),h=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function d(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"rotation"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.RotationVariable"!==s.declaredClass)return void u("RotationVariable");const r=s.axis||"heading",l="heading"===r&&"arithmetic"===s.rotationType?90:0,n="heading"===r&&"arithmetic"===s.rotationType?-1:1,o="number"==typeof t?null:t,a=o?.attributes,c=s.field,{hasExpression:h}=s.cache;let d=s.cache.compiledFunc,y=0;if(!c&&!h)return y;if(h){if(null==i?.arcade)return void p();const e={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},t=i.arcade.arcadeUtils,r=t.getViewInfo(e),l=t.createExecContext(o,r,i.timeZone);if(!d){const e=t.createSyntaxTree(s.valueExpression);d=t.createFunction(e),s.cache.compiledFunc=d}y=t.executeFunction(d,l)}else a&&(y=a[c]||0);return y="number"!=typeof y||isNaN(y)?null:l+n*y,y}function y(e,t,i){const s="visualVariables"in e&&e.visualVariables?e.visualVariables.find((e=>"size"===e.type)):e;if(!s)return;if("esri.renderers.visualVariables.SizeVariable"!==s.declaredClass)return void u("SizeVariable");const r=function(e,t,i,s,r){switch(t.transformationType){case o._w.Additive:return function(e,t,i,s){return e+((m(t.minSize,i,s)||t.minDataValue)??0)}(e,t,i,s);case o._w.Constant:return function(e,t,i){const s=e.stops;let r=s?.length&&s[0].size;return null==r&&(r=e.minSize),m(r,t,i)}(t,i,s);case o._w.ClampedLinear:return function(e,t,i,s){const r=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),l=m(t.minSize,i,s),n=m(t.maxSize,i,s),o=null!=s?s.shape:void 0;if(e<=t.minDataValue)return l;if(e>=t.maxDataValue)return n;if(null==l||null==n)return null;if("area"===t.scaleBy&&o){const e="circle"===o,t=e?c*(l/2)**2:l*l,i=t+r*((e?c*(n/2)**2:n*n)-t);return e?2*Math.sqrt(i/c):Math.sqrt(i)}return l+r*(n-l)}(e,t,i,s);case o._w.Proportional:return function(e,t,i,s){const r=null!=s?s.shape:void 0,l=e/t.minDataValue,n=m(t.minSize,i,s),o=m(t.maxSize,i,s);let a=null;return a="circle"===r?2*Math.sqrt(l*(n/2)**2):"square"===r||"diamond"===r||"image"===r?Math.sqrt(l*n**2):l*n,f(a,n,o)}(e,t,i,s);case o._w.Stops:return function(e,t,i,s,r){const[l,n,o]=function(e,t){if(!t)return;let i=0,s=t.length-1;return t.some(((t,r)=>e<t?(s=r,!0):(i=r,!1))),[i,s,(e-t[i])/(t[s]-t[i])]}(e,r);if(l===n)return m(t.stops?.[l].size,i,s);{const e=m(t.stops?.[l].size,i,s);return e+(m(t.stops?.[n].size,i,s)-e)*o}}(e,t,i,s,r);case o._w.RealWorldSize:return function(e,t,i,s){const r=(s?.resolution??1)*n.j[t.valueUnit],l=m(t.minSize,i,s),o=m(t.maxSize,i,s),{valueRepresentation:a}=t;let u=null;return u="area"===a?2*Math.sqrt(e/c)/r:"radius"===a||"distance"===a?2*e/r:e/r,f(u,l,o)}(e,t,i,s);case o._w.Identity:return e;case o._w.Unknown:return null}}(function(e,t,i){const s="number"==typeof t,r=s?null:t,l=r?.attributes;let n=s?t:null;const{isScaleDriven:a}=e.cache;let u=e.cache.compiledFunc;if(a){const t=null!=i?i.scale:void 0,s=null!=i?i.view:void 0;n=null==t||"3d"===s?function(e){let t=null,i=null;const s=e.stops;return s?(t=s[0].value,i=s[s.length-1].value):(t=e.minDataValue||0,i=e.maxDataValue||0),(t+i)/2}(e):t}else if(!s)switch(e.inputValueType){case o.Yf.Expression:{if(null==i?.arcade)return void p();const t={viewingMode:i.viewingMode,scale:i.scale,spatialReference:i.spatialReference},s=i.arcade.arcadeUtils,l=s.getViewInfo(t),o=s.createExecContext(r,l,i.timeZone);if(!u){const t=s.createSyntaxTree(e.valueExpression);u=s.createFunction(t),e.cache.compiledFunc=u}n=s.executeFunction(u,o);break}case o.Yf.Field:l&&(n=l[e.field]);break;case o.Yf.Unknown:n=null}if(!(0,o.gf)(n))return null;if(s||!e.normalizationField)return n;const c=l?parseFloat(l[e.normalizationField]):null;return(0,o.gf)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==r||isNaN(r)?0:r}function m(e,t,i){return null==e?null:(0,o.of)(e)?y(e,t,i):(0,o.gf)(e)?e:null}function f(e,t,i){return(0,o.gf)(i)&&e>i?i:(0,o.gf)(t)&&e<t?t:e}function b(e,t,i){const s=["proportional","proportional","proportional"];for(const l of e){const e=l.useSymbolValue?"symbol-value":y(l,t,i);switch(l.axis){case"width":s[0]=e;break;case"depth":s[1]=e;break;case"height":s[2]=e;break;case"width-and-depth":s[0]=e,s[1]=e;break;case"all":case void 0:case null:s[0]=e,s[1]=e,s[2]=e;break;default:(0,r.Xb)(l.axis)}}return s}},2485:(e,t,i)=>{i.d(t,{A:()=>d});var s,r=i(90237),l=i(68197),n=i(4718),o=i(10107),a=i(56507),u=i(93223),p=i(40608),c=i(72606);let h=s=class extends c.A{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.o8)(this.fromColor),toColor:(0,n.o8)(this.toColor),algorithm:this.algorithm})}};(0,r._)([(0,u.e)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],h.prototype,"algorithm",void 0),(0,r._)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:!0}})],h.prototype,"fromColor",void 0),(0,r._)([(0,o.MZ)({type:l.A,json:{type:[a.jz],write:!0}})],h.prototype,"toColor",void 0),(0,r._)([(0,o.MZ)({type:["algorithmic"]})],h.prototype,"type",void 0),h=s=(0,r._)([(0,p.$)("esri.rest.support.AlgorithmicColorRamp")],h);const d=h},72606:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(90237),r=i(25482),l=i(10107),n=(i(44208),i(53966),i(87811),i(40608));let o=class extends r.oY{constructor(e){super(e),this.type=null}};(0,s._)([(0,l.MZ)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,n.$)("esri.rest.support.ColorRamp")],o);const a=o},1626:(e,t,i)=>{i.d(t,{A:()=>c});var s,r=i(90237),l=i(4718),n=i(10107),o=(i(44208),i(53966),i(40608)),a=i(2485),u=i(72606);let p=s=class extends u.A{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:(0,l.o8)(this.colorRamps)})}};(0,r._)([(0,n.MZ)({type:[a.A],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,r._)([(0,n.MZ)({type:["multipart"]})],p.prototype,"type",void 0),p=s=(0,r._)([(0,o.$)("esri.rest.support.MultipartColorRamp")],p);const c=p},95349:(e,t,i)=>{i.d(t,{g:()=>n,r:()=>o});var s=i(2485),r=i(72606),l=i(1626);const n={key:"type",base:r.A,typeMap:{algorithmic:s.A,multipart:l.A}};function o(e){return e?.type?"algorithmic"===e.type?s.A.fromJSON(e):"multipart"===e.type?l.A.fromJSON(e):null:null}},57465:(e,t,i)=>{i.d(t,{Vd:()=>r,Vo:()=>l});var s=i(44208);const r=()=>!!(0,s.A)("enable-feature:force-wosr"),l=()=>!!(0,s.A)("enable-feature:SceneLayer-editing");((e="i3s-patching")=>{switch(s.A.add("enable-i3s-patching",!1,!0,!0),s.A.add("enable-feature:direct-3d-object-feature-layer-display",!1,!0,!0),s.A.add("enable-feature:SceneLayer-editing",!0,!0,!0),e){case"feature-layer-view":s.A.add("enable-feature:direct-3d-object-feature-layer-display",!0,!0,!0);break;case"i3s-patching":s.A.add("enable-i3s-patching",!0,!0,!0)}})("i3s-patching")},73838:(e,t,i)=>{i.d(t,{rS:()=>E,M9:()=>j,oO:()=>Z});var s=i(61147),r=i(49186),l=i(83531),n=i(58185),o=i(68197),a=i(5503),u=(i(44208),i(90629)),p=i(27845),c=i(97887),h=i(68548),d=i(75981),y=i(65365),m=i(39065),f=i(59868),b=i(93470),v=i(11506);d.A.fromSimpleMarkerSymbol(f.UK),c.A.fromSimpleLineSymbol(f.A7),y.A.fromSimpleFillSymbol(f.Cx),new h.A({symbolLayers:new a.A([new p.A({material:{color:b.fT},edges:new m.A({size:(0,u.PN)(1),color:new o.A(b.JR)})})])});const g=new c.A({symbolLayers:new a.A([new v.A({material:{color:new o.A([0,0,0])},size:(0,u.PN)(1)})])}),w=new y.A({symbolLayers:new a.A([new p.A({outline:{color:new o.A([0,0,0]),size:(0,u.PN)(1)}})])});var _=i(37757),V=i(31593),S=i(53930),x=i(58592),M=i(94985),z=i(68249),I=i(13313);const A={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function j(e,t,i,s){const r=q(e,{},{context:s,isLabelSymbol:!1});null!=r&&(t[i]=r)}function Z(e,t,i,s){const r=q(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function F(e){return e instanceof n.A||e instanceof _.A}function q(e,t,i){if(null==e)return null;const{context:n,isLabelSymbol:o}=i,a=n?.origin,u=n?.messages;if("web-scene"===a&&!F(e)){const i=function(e,t=A){if(!e)return{symbol:null};const{retainId:i=A.retainId,ignoreDrivers:l=A.ignoreDrivers,hasLabelingContext:n=A.hasLabelingContext,retainCIM:o=A.retainCIM,cimFallbackEnabled:a=A.cimFallbackEnabled}=t;let u=null;if((0,s.wk)(e)||e instanceof _.A)u=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":u=o?e.clone():d.A.fromCIMSymbol(e);break;case"CIMLineSymbol":a&&(u=g.clone(),t?.logWarning?.("Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":a&&(u=w.clone(),t?.logWarning?.("Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!u)return{error:new r.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof V.A)u=c.A.fromSimpleLineSymbol(e);else if(e instanceof S.A)u=d.A.fromSimpleMarkerSymbol(e);else if(e instanceof x.A)u=d.A.fromPictureMarkerSymbol(e);else if(e instanceof M.A)u=t.geometryType&&"mesh"===t.geometryType?h.A.fromSimpleFillSymbol(e):y.A.fromSimpleFillSymbol(e);else{if(!(e instanceof z.A))return{error:new r.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};u=n?I.A.fromTextSymbol(e):d.A.fromTextSymbol(e)}return i&&u&&"cim"!==u.type&&(u.id=e.id),l&&(0,s.wk)(u)&&u.symbolLayers.forEach((e=>e.ignoreDrivers=!0)),{symbol:u}}(e,{retainCIM:!0,hasLabelingContext:o});return null!=i.symbol?i.symbol.write(t,n):(u?.push(new r.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in scenes. Use 3D symbology instead when working with WebScene and SceneView`,{symbol:e,context:n,error:i.error})),null)}return("web-map"===a||"portal-item"===a&&!(0,l.TU)(n?.layer))&&F(e)?(u?.push(new r.A("symbol:unsupported",`Symbols of type '${e.declaredClass}' are not supported in web maps and portal items. Use 2D symbology and CIMSymbol instead when working with MapView`,{symbol:e,context:n})),null):e.write(t,n)}function E(e,t){return(0,s.Bu)(e,null,t)}},66896:(e,t,i)=>{i.d(t,{bo:()=>h,cF:()=>c,jg:()=>b,o5:()=>d,yA:()=>y});var s=i(78888),r=i(49186),l=i(74887),n=i(84952),o=i(20655),a=i(16405),u=i(57465);let p={};function c(e,t,i){return null!=e?.styleUrl?async function(e,t){try{return{data:(await y(e,t)).data,baseUrl:(0,n.nM)(e),styleUrl:e}}catch(e){return(0,l.QP)(e),null}}(e.styleUrl,i):null!=e?.styleName?function(e,t,i){const s=null!=t.portal?t.portal:o.A.getDefault();let l;const n=`${s.url} - ${s.user?.username} - ${e}`;return p[n]||(p[n]=function(e,t,i){return t.load(i).then((()=>{const s=new a.A({disableExtraQuery:!0,query:`owner:${m} AND type:${f} AND typekeywords:"${e}"`});return t.queryItems(s,i)})).then((({results:t})=>{let s=null;const l=e.toLowerCase();if(t&&Array.isArray(t))for(const e of t){const t=e.typeKeywords?.some((e=>e.toLowerCase()===l));if(t&&e.type===f&&e.owner===m){s=e;break}}if(!s)throw new r.A("symbolstyleutils:style-not-found",`The style '${e}' could not be found`,{styleName:e});return s.load(i)}))}(e,s,i).then((e=>(l=e,e.fetchData()))).then((t=>({data:t,baseUrl:l.itemUrl??"",styleName:e})))),p[n]}(e.styleName,t,i):Promise.reject(new r.A("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function h(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function d(e,t,i=["gltf"]){if("cimRef"===t)return encodeURI(e.cimRef);if(e.formatInfos&&!(0,u.Vd)())for(const t of i){const i=e.formatInfos.find((e=>e.type===t));if(i)return i.href}return encodeURI(e.webRef)}function y(e,t){const i={responseType:"json",query:{f:"json"},...t};return(0,s.A)((0,n.S8)(e),i)}const m="esri_en",f="Style",b="https://cdn.arcgis.com/sharing/rest/content/items/220936cc6ed342c9937abd8f180e7d1e/resources/styles/cim/{SymbolName}.json?f=json"}}]);