@arcgis/core 4.28.1 → 4.28.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02e86a792dbe2fdec974.js +1 -0
- package/assets/esri/core/workers/chunks/{5386b166f2e5dc0d9143.js → 12797aa1d6a2b49abb3f.js} +1 -1
- package/assets/esri/core/workers/chunks/15852a47129b9e0d04c6.js +1 -0
- package/assets/esri/core/workers/chunks/1687431f7b233d950195.js +1 -0
- package/assets/esri/core/workers/chunks/{a1e16c33f1843dbdce26.js → 175bbe8a048f17dd482b.js} +1 -1
- package/assets/esri/core/workers/chunks/{d0119dff8771e749436a.js → 30d3b31df52d40e5b2e6.js} +1 -1
- package/assets/esri/core/workers/chunks/{768271a12dc7e1781447.js → 32fbd4355a4a649623a7.js} +1 -1
- package/assets/esri/core/workers/chunks/3dbc399eedd347b0fbbb.js +1 -0
- package/assets/esri/core/workers/chunks/{6bc1f6f8a2408fa4bb6a.js → 423672fe765083e1a0ec.js} +1 -1
- package/assets/esri/core/workers/chunks/{18e0c5bfeb1aa7213dfa.js → 4363f2cc3909c9258064.js} +1 -1
- package/assets/esri/core/workers/chunks/{d5fec54e98c8622349a4.js → 46ddc52fe9cdd573a614.js} +1 -1
- package/assets/esri/core/workers/chunks/4747741429e8ff7112bb.js +1 -0
- package/assets/esri/core/workers/chunks/49d958631bcd93f6333a.js +1 -0
- package/assets/esri/core/workers/chunks/4ae8308e5b9c7772a11f.js +1 -0
- package/assets/esri/core/workers/chunks/{da124ccd18d2745195fe.js → 4bd342f13002888b6467.js} +1 -1
- package/assets/esri/core/workers/chunks/{7756ed853b4ba54cd081.js → 5247c00088303da7ef3b.js} +1 -1
- package/assets/esri/core/workers/chunks/534726130ef1698ec89e.js +1 -0
- package/assets/esri/core/workers/chunks/551bc697e3e17983c2bc.js +1 -0
- package/assets/esri/core/workers/chunks/{65d8135c89ffdd17a3c1.js → 59d3f4c0d1a43180aff3.js} +1 -1
- package/assets/esri/core/workers/chunks/{2d92df1e3ba4f05e0510.js → 633b34a5817f1f719e22.js} +1 -1
- package/assets/esri/core/workers/chunks/{c7bd63103f101c09b1ea.js → 6996537249869c41e736.js} +1 -1
- package/assets/esri/core/workers/chunks/{41778f8c49febe1f9404.js → 6fa0cccd4f3e1fa71421.js} +1 -1
- package/assets/esri/core/workers/chunks/{78e49a70193e5adea17c.js → 77f557359a5033d7e429.js} +1 -1
- package/assets/esri/core/workers/chunks/{6334a8a7b671d4042108.js → 7beae29abdfae23b15cc.js} +1 -1
- package/assets/esri/core/workers/chunks/7cc56b132c46c5922dac.js +1 -0
- package/assets/esri/core/workers/chunks/80831e90fe1a52f8f982.js +1 -0
- package/assets/esri/core/workers/chunks/{ea9ae9d2aef01af90896.js → 80d9bb9f247ecdfa266f.js} +1 -1
- package/assets/esri/core/workers/chunks/846e5e51dc278bc3f80f.js +1 -0
- package/assets/esri/core/workers/chunks/{f73563b23fd8dc6cf2fe.js → 86df7357a2bac73c0ef4.js} +1 -1
- package/assets/esri/core/workers/chunks/8b541cbf82a5ba0317ee.js +1 -0
- package/assets/esri/core/workers/chunks/{08a98e85e86ce560d005.js → 8bd621693692050d76aa.js} +1 -1
- package/assets/esri/core/workers/chunks/{630b31a205d9db7147d0.js → 8cdece03397d01767593.js} +1 -1
- package/assets/esri/core/workers/chunks/{b9a726f3bbad6fd4d65a.js → 8e91be2e38010391e351.js} +1 -1
- package/assets/esri/core/workers/chunks/{cbddfcf57f72428a6992.js → 90f96a2ddfb25d851d4d.js} +1 -1
- package/assets/esri/core/workers/chunks/91a3181071874525ed44.js +1 -0
- package/assets/esri/core/workers/chunks/{2304b7456ced997904f6.js → 97fd7b82eec26449977e.js} +1 -1
- package/assets/esri/core/workers/chunks/{b7c81a5bbcdd94b8a7f6.js → 9979ff59a144fe1df80b.js} +1 -1
- package/assets/esri/core/workers/chunks/{0422c5160491fbcf01dc.js → 9d97a20f69047d0c47cc.js} +1 -1
- package/assets/esri/core/workers/chunks/9f0e8dd5c9bacfc0f03c.js +1 -0
- package/assets/esri/core/workers/chunks/{a8e4726c1db23324eb54.js → 9fc1206ad378f0829e0a.js} +1 -1
- package/assets/esri/core/workers/chunks/{09e8babe75407c2e64c4.js → a351ab5082772b267895.js} +1 -1
- package/assets/esri/core/workers/chunks/{43575b9acf9819f195f9.js → a3bbf5da4f7830d2a2a1.js} +1 -1
- package/assets/esri/core/workers/chunks/{b03eaba5fa75d6ef834a.js → a47f74fc959b11f029a5.js} +1 -1
- package/assets/esri/core/workers/chunks/{cb4b17f5cf96a9e36781.js → a8cf23c3a55c1834178c.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd55151bfac60b0deaac.js → ac4636e82a103e2c27ca.js} +1 -1
- package/assets/esri/core/workers/chunks/ae7ba94af6d4fd97dd8b.js +1 -0
- package/assets/esri/core/workers/chunks/{4adf3a8c6b49c381a633.js → b0653f63745e756f55fe.js} +1 -1
- package/assets/esri/core/workers/chunks/{6867ed1860afb7aac536.js → b8f3a1d887c9e054feaa.js} +1 -1
- package/assets/esri/core/workers/chunks/{e06cd10b6f8f363b5131.js → bdc751a752a7ff1387de.js} +1 -1
- package/assets/esri/core/workers/chunks/{70aa04b09143b7dd2ecb.js → c2199fb8f7a54a0ef18a.js} +1 -1
- package/assets/esri/core/workers/chunks/c3f462d11ed570482e7a.js +1 -0
- package/assets/esri/core/workers/chunks/{830d99e6c58a52a58973.js → c8cb5fe1d23145c4842b.js} +1 -1
- package/assets/esri/core/workers/chunks/{1f87f22e00e3218661c6.js → ce53413dd3e2062e8378.js} +1 -1
- package/assets/esri/core/workers/chunks/de30ff1fcb6079178958.js +1 -0
- package/assets/esri/core/workers/chunks/e12090768e945091cc5d.js +1 -0
- package/assets/esri/core/workers/chunks/e3950975030412ff6e20.js +1 -0
- package/assets/esri/core/workers/chunks/e8b7d1c586aff229484c.js +1 -0
- package/assets/esri/core/workers/chunks/{710a6268de62003af825.js → e8d1f91dc97b42d0c4f6.js} +1 -1
- package/assets/esri/core/workers/chunks/{6747503826bfc94bc6c0.js → eb5213ffb83d83a4dd05.js} +1 -1
- package/assets/esri/core/workers/chunks/{020825b9c12f2b6386a7.js → f037e4f9877ea08ced9d.js} +1 -1
- package/assets/esri/core/workers/chunks/f520f093aa81d8ee1790.js +1 -0
- package/assets/esri/core/workers/chunks/{abcfe3bda6f40318b092.js → f7ccc6c681fc9218555c.js} +1 -1
- package/assets/esri/core/workers/chunks/{eea0fb90cd5cc80de388.js → fa750885bb27bbb03e7d.js} +1 -1
- package/assets/esri/core/workers/chunks/{e67c4b7ad06d8404895a.js → fab4ee57b7c5376c9ccd.js} +1 -1
- package/interfaces.d.ts +6 -6
- package/kernel.js +1 -1
- package/layers/StreamLayer.js +1 -1
- package/layers/support/LayerContingentValuesCache.js +1 -1
- package/layers/support/RangeDomain.js +1 -1
- package/layers/support/domainUtils.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/labelFormatUtils.js +1 -1
- package/layers/support/vectorTileLayerLoader.js +1 -1
- package/package.json +1 -1
- package/renderers/support/RasterSymbolizer.js +1 -1
- package/support/revision.js +1 -1
- package/versionManagement/VersionManagementService.js +1 -1
- package/views/2d/engine/vectorTiles/TileManager.js +1 -1
- package/views/3d/layers/i3s/I3SIndex.js +1 -1
- package/widgets/ElevationProfile/support/chartUtils.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/Search/support/layerSearchUtils.js +1 -1
- package/widgets/support/dataUtils.js +5 -0
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/02d235849ba93541d7ad.js +0 -1
- package/assets/esri/core/workers/chunks/0a3da4b73beeaacd4667.js +0 -1
- package/assets/esri/core/workers/chunks/10dc578a90e1194c8720.js +0 -1
- package/assets/esri/core/workers/chunks/1eb5468c7cf653338d53.js +0 -1
- package/assets/esri/core/workers/chunks/1f30ea1a598ddd2e5df3.js +0 -1
- package/assets/esri/core/workers/chunks/366cf9bba6989342e447.js +0 -1
- package/assets/esri/core/workers/chunks/3ac9001b19a90faf5573.js +0 -1
- package/assets/esri/core/workers/chunks/43f7d9366d06d69e7c50.js +0 -1
- package/assets/esri/core/workers/chunks/4672504d6fe649da19f2.js +0 -1
- package/assets/esri/core/workers/chunks/56a61a8bff08ae273de4.js +0 -1
- package/assets/esri/core/workers/chunks/580e7d3cbf6797a50ded.js +0 -1
- package/assets/esri/core/workers/chunks/6046be598e8c673eeb1f.js +0 -1
- package/assets/esri/core/workers/chunks/69c1c850af7ee33258e0.js +0 -1
- package/assets/esri/core/workers/chunks/8f7997e8e6ee9e56239f.js +0 -1
- package/assets/esri/core/workers/chunks/a160576f21ada91995ac.js +0 -1
- package/assets/esri/core/workers/chunks/a50ec5b647a160199cb2.js +0 -1
- package/assets/esri/core/workers/chunks/b138196d304883efd5f6.js +0 -1
- package/assets/esri/core/workers/chunks/b3f5e97b47e896c6008a.js +0 -1
- package/assets/esri/core/workers/chunks/c447f4bf0e5f012f8f9b.js +0 -1
- package/assets/esri/core/workers/chunks/c87e9280681c20d042b5.js +0 -1
- package/assets/esri/core/workers/chunks/cc86c8c88124d916e1b3.js +0 -1
- package/assets/esri/core/workers/chunks/d878bb6409df183ea0ce.js +0 -1
- package/assets/esri/core/workers/chunks/ef757269fb3fe0e74ef8.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3847,5732,7701,5935],{84552:(e,t,i)=>{i.d(t,{Z:()=>p});var r=i(43697),n=i(2368),s=i(96674),o=i(35463),l=i(5600),a=(i(75215),i(67676),i(80442),i(36030)),u=i(52011),d=i(78981);let c=class extends((0,n.J)(s.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.rJ)(this.value,this.unit,"milliseconds")}};(0,r._)([(0,a.J)(d.v,{nonNullable:!0})],c.prototype,"unit",void 0),(0,r._)([(0,l.Cb)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,r._)([(0,u.j)("esri.TimeInterval")],c);const p=c},5732:(e,t,i)=>{i.d(t,{c:()=>r,g:()=>n});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},22862:(e,t,i)=>{i.d(t,{Hg:()=>h,V7:()=>y,uD:()=>p});var r=i(92036),n=i(46791),s=i(1153);const o=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof r.Z}function a(e){return e instanceof n.Z?Object.keys(e.items):l(e)?(0,s.vw)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.Z?e.items[t]:e[t]}function d(e){return e?e.declaredClass:null}function c(e,t){const i=e.diff;if(i&&"function"==typeof i)return i(e,t);const r=a(e),n=a(t);if(0===r.length&&0===n.length)return;if(!r.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const s=n.filter((e=>!r.includes(e))),p=r.filter((e=>!n.includes(e))),y=r.filter((i=>n.includes(i)&&u(e,i)!==u(t,i))).concat(s,p).sort(),h=d(e);if(h&&o.has(h)&&y.length)return{type:"complete",oldValue:e,newValue:t};let m;const f=l(e)&&l(t);for(const r of y){const n=u(e,r),s=u(t,r);let o;if((f||"function"!=typeof n&&"function"!=typeof s)&&n!==s&&(null!=n||null!=s)){if(i&&i[r]&&"function"==typeof i[r])o=i[r]?.(n,s);else if(n instanceof Date&&s instanceof Date){if(n.getTime()===s.getTime())continue;o={type:"complete",oldValue:n,newValue:s}}else o="object"==typeof n&&"object"==typeof s&&d(n)===d(s)?c(n,s):{type:"complete",oldValue:n,newValue:s};null!=o&&(null!=m?m.diff[r]=o:m={type:"partial",diff:{[r]:o}})}}return m}function p(e,t){if(null==e)return!1;const i=t.split(".");let r=e;for(const e of i){if("complete"===r.type)return!0;if("partial"!==r.type)return!1;{const t=r.diff[e];if(!t)return!1;r=t}}return!0}function y(e,t){for(const i of t)if(p(e,i))return!0;return!1}function h(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&d(e)!==d(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},60437:(e,t,i)=>{i.d(t,{G_:()=>w,HH:()=>o,JR:()=>h,TC:()=>l,Tn:()=>c,Ue:()=>n,al:()=>s,bZ:()=>m,cS:()=>y,dp:()=>u,fS:()=>b,is:()=>f,op:()=>d,pp:()=>a,t8:()=>p});var r=i(6570);function n(e=g){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,i,r,s,o,l=n()){return l[0]=e,l[1]=t,l[2]=i,l[3]=r,l[4]=s,l[5]=o,l}function o(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new r.Z(i?{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 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 d(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function c(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function p(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 y(e){return e?p(e,w):n(w)}function h(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 m(e,t,i,r,n){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=r,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function f(e){return 6===e.length}function b(e,t,i){if(null==e||null==t)return e===t;if(!f(e)||!f(t))return!1;if(i){for(let r=0;r<e.length;r++)if(!i(e[r],t[r]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}i(24470);const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],g=[0,0,0,0,0,0];n()},88387:(e,t,i)=>{i.r(t),i.d(t,{default:()=>W});var r,n=i(43697),s=(i(66577),i(51773)),o=(i(16050),i(12501),i(28756),i(92271),i(72529),i(5499),i(84382),i(81571),i(91423)),l=i(32400),a=i(3172),u=i(2368),d=i(20102),c=i(50758),p=i(22974),y=i(92604),h=i(16453),m=i(95330),f=i(5600),b=i(75215),w=i(71715),g=i(52011),v=i(86973),_=i(87085),S=i(17287),I=i(71612),F=i(17017),C=i(69637),x=i(6404),j=i(38009),T=i(16859),O=i(34760),R=i(72965),Z=i(28294),E=i(21506),N=i(45574),M=i(1231),V=i(53518),A=i(69165),D=i(54306),P=i(30707),q=i(96674);i(67676),i(80442);let L=r=class extends q.wq{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new r({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,n._)([(0,f.Cb)({type:Number,json:{write:!0}})],L.prototype,"age",void 0),(0,n._)([(0,f.Cb)({type:Number,json:{write:!0}})],L.prototype,"ageReceived",void 0),(0,n._)([(0,f.Cb)({type:Number,json:{write:!0}})],L.prototype,"displayCount",void 0),(0,n._)([(0,f.Cb)({type:Number,json:{write:!0}})],L.prototype,"maxObservations",void 0),L=r=(0,n._)([(0,g.j)("esri.layers.support.PurgeOptions")],L);const U=L;var k=i(40555),J=i(14165),G=i(32163),B=i(86787),z=i(12259),$=i(82971),H=i(6570);const Q=(0,V.v)();function X(e,t){return new d.Z("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}let Y=class extends((0,x.M)((0,C.b)((0,I.h)((0,Z.n)((0,R.M)((0,O.Q)((0,S.Y)((0,j.q)((0,T.I)((0,h.R)((0,F.N)((0,u.J)(_.Z))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new U,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=$.Z.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null,this._debouncedSaveOperations=(0,m.Ds)((async(e,t,r)=>{const{save:n,saveAs:s}=await i.e(4330).then(i.bind(i,94330));switch(e){case z.x.SAVE:return n(this,t);case z.x.SAVE_AS:return s(this,r,t)}}))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new d.Z("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(m.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,A.YN)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,i){t=t.layerDefinition||t;const r=t.drawingInfo?.renderer;if(r){const e=(0,o.a)(r,t,i)||void 0;return e||y.Z.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:i}),e}return(0,N.Ob)(t,i)}async connect(e){const[{createConnection:t}]=await Promise.all([Promise.all([i.e(4599),i.e(2330)]).then(i.bind(i,95047)),this.load()]),r=this.geometryType?v.M.toJSON(this.geometryType):null,{customParameters:n=null,definitionExpression:s=null,geometryDefinition:o=null,maxReconnectionAttempts:l=0,maxReconnectionInterval:a=20,spatialReference:u=this.spatialReference}=e||this.createConnectionParameters(),d=t(this.parsedUrl,this.spatialReference,u,r,{geometry:o,where:s},l,a,n??void 0),p=(0,c.AL)([this.on("send-message-to-socket",(e=>d.sendMessageToSocket(e))),this.on("send-message-to-client",(e=>d.sendMessageToClient(e)))]);return d.once("destroy",p.remove),d}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,G.eZ)(this,e)}createQuery(){const e=new J.Z;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let i=null;return this.fields.some((t=>(t.name===e&&(i=t.domain),!!i))),i}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(z.x.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(z.x.SAVE_AS,t,e)}write(e,t){const i=t?.messages;return this.webSocketUrl?(i?.push(X(this,"using a custom websocket connection cannot be written to web scenes and web maps")),null):this.parsedUrl?super.write(e,t):(i?.push(X(this,"using a client-side only connection without a url cannot be written to web scenes and web maps")),null)}async _fetchService(e){if(!this.webSocketUrl&&this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,a.Z)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new d.Z("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField){const e=this.fields.find((e=>"oid"===e.type))?.name;if(!e)throw new d.Z("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");this.objectIdField=e}if(!this.fields)throw new d.Z("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields.some((e=>e.name===this.objectIdField))||this.fields.push(new M.Z({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new d.Z("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.webSocketUrl&&(this.url=this.webSocketUrl)}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,A.YN)(this.renderer,this.fieldsIndex),(0,A.UF)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField="__esri_stream_id__"),(0,k.y)(this,{origin:"service"})}};(0,n._)([(0,f.Cb)({type:String})],Y.prototype,"copyright",void 0),(0,n._)([(0,f.Cb)({readOnly:!0})],Y.prototype,"defaultPopupTemplate",null),(0,n._)([(0,f.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Y.prototype,"definitionExpression",void 0),(0,n._)([(0,f.Cb)({type:String})],Y.prototype,"displayField",void 0),(0,n._)([(0,f.Cb)({type:B.Z})],Y.prototype,"elevationInfo",void 0),(0,n._)([(0,f.Cb)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],Y.prototype,"featureReduction",null),(0,n._)([(0,f.Cb)(Q.fields)],Y.prototype,"fields",void 0),(0,n._)([(0,f.Cb)(Q.fieldsIndex)],Y.prototype,"fieldsIndex",void 0),(0,n._)([(0,f.Cb)({type:H.Z,json:{name:"layerDefinition.definitionGeometry",write:!0}})],Y.prototype,"geometryDefinition",void 0),(0,n._)([(0,f.Cb)({type:v.M.apiValues,json:{read:{reader:v.M.read}}})],Y.prototype,"geometryType",void 0),(0,n._)([(0,f.Cb)(E.iR)],Y.prototype,"labelsVisible",void 0),(0,n._)([(0,f.Cb)({type:[D.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:P.r},write:!0}})],Y.prototype,"labelingInfo",void 0),(0,n._)([(0,f.Cb)(E.rn)],Y.prototype,"legendEnabled",void 0),(0,n._)([(0,f.Cb)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],Y.prototype,"listMode",void 0),(0,n._)([(0,f.Cb)({type:b.z8})],Y.prototype,"maxReconnectionAttempts",void 0),(0,n._)([(0,f.Cb)({type:b.z8})],Y.prototype,"maxReconnectionInterval",void 0),(0,n._)([(0,f.Cb)(E.u1)],Y.prototype,"maxScale",void 0),(0,n._)([(0,f.Cb)(E.rO)],Y.prototype,"minScale",void 0),(0,n._)([(0,f.Cb)({type:String})],Y.prototype,"objectIdField",void 0),(0,n._)([(0,f.Cb)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],Y.prototype,"operationalLayerType",void 0),(0,n._)([(0,f.Cb)({readOnly:!0})],Y.prototype,"outFields",void 0),(0,n._)([(0,f.Cb)(E.C_)],Y.prototype,"popupEnabled",void 0),(0,n._)([(0,f.Cb)({type:s.Z,json:{name:"popupInfo",write:!0}})],Y.prototype,"popupTemplate",void 0),(0,n._)([(0,f.Cb)({type:U})],Y.prototype,"purgeOptions",void 0),(0,n._)([(0,f.Cb)({json:{read:!1,write:!1}})],Y.prototype,"refreshInterval",void 0),(0,n._)([(0,f.Cb)({types:l.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:l.o,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],Y.prototype,"renderer",null),(0,n._)([(0,w.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,w.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Y.prototype,"readRenderer",null),(0,n._)([(0,f.Cb)((()=>{const e=(0,p.d9)(E.YI);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],Y.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,f.Cb)()],Y.prototype,"sourceJSON",void 0),(0,n._)([(0,f.Cb)({type:$.Z,json:{origins:{service:{read:{source:"spatialReference"}}}}})],Y.prototype,"spatialReference",void 0),(0,n._)([(0,f.Cb)({json:{read:!1}})],Y.prototype,"type",void 0),(0,n._)([(0,f.Cb)(E.HQ)],Y.prototype,"url",void 0),(0,n._)([(0,f.Cb)({type:Number})],Y.prototype,"updateInterval",void 0),(0,n._)([(0,f.Cb)({json:{read:!1,write:!1}})],Y.prototype,"useViewTime",void 0),(0,n._)([(0,f.Cb)({type:String})],Y.prototype,"webSocketUrl",void 0),Y=(0,n._)([(0,g.j)("esri.layers.StreamLayer")],Y);const W=Y},17287:(e,t,i)=>{i.d(t,{Y:()=>a});var r=i(43697),n=i(92604),s=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),l=i(66677);const a=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.Qc)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Nm)(e,n.Z.getLogger(this)))}};return(0,r._)([(0,s.Cb)()],t.prototype,"title",null),(0,r._)([(0,s.Cb)({type:String})],t.prototype,"url",null),t=(0,r._)([(0,o.j)("esri.layers.mixins.ArcGISService")],t),t}},17017:(e,t,i)=>{i.d(t,{N:()=>o});var r=i(43697),n=i(5600),s=(i(75215),i(67676),i(80442),i(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,r._)([(0,n.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,r._)([(0,s.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},69637:(e,t,i)=>{i.d(t,{b:()=>j});var r,n=i(43697),s=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),l=i(20102),a=i(96674),u=i(78286),d=i(72746),c=i(66577),p=i(92835),y=i(35454),h=i(22974),m=i(14165);const f=new y.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),b=new y.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let w=r=class extends a.wq{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:i,spatialRelationship:r,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new m.Z({geometry:(0,h.d9)(i),objectIds:(0,h.d9)(s),spatialRelationship:r,timeExtent:(0,h.d9)(n),where:t,units:o,distance:l,...e})}clone(){const{where:e,geometry:t,spatialRelationship:i,timeExtent:n,objectIds:s,units:o,distance:l}=this;return new r({geometry:(0,h.d9)(t),objectIds:(0,h.d9)(s),spatialRelationship:i,timeExtent:(0,h.d9)(n),where:e,units:o,distance:l})}};(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],w.prototype,"where",void 0),(0,n._)([(0,s.Cb)({types:c.qM,json:{write:!0}})],w.prototype,"geometry",void 0),(0,n._)([(0,s.Cb)({type:f.apiValues,json:{name:"spatialRel",read:{reader:f.read},write:{allowNull:!1,writer:f.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],w.prototype,"spatialRelationship",void 0),(0,n._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"distance",void 0),(0,n._)([(0,s.Cb)({type:[Number],json:{write:!0}})],w.prototype,"objectIds",void 0),(0,n._)([(0,s.Cb)({type:b.apiValues,json:{read:b.read,write:{writer:b.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],w.prototype,"units",void 0),(0,n._)([(0,s.Cb)({type:p.Z,json:{write:!0}})],w.prototype,"timeExtent",void 0),w=r=(0,n._)([(0,o.j)("esri.layers.support.FeatureFilter")],w);const g=w;var v;const _={read:{reader:d.ij},write:{writer:d.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},S={read:{reader:d.ij},write:{writer:d.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},I={name:"showExcludedLabels",default:!0};let F=v=class extends a.wq{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const i=super.write(e,t);if(t?.origin){if(i.filter){const e=Object.keys(i.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new l.Z("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 i)return t.messages?.push(new l.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return i}clone(){return new v({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n._)([(0,s.Cb)({type:g,json:{write:{allowNull:!0,writer(e,t,i,r){const n=e?.write({},r);n&&0!==Object.keys(n).length?(0,u.RB)(i,n,t):(0,u.RB)(i,null,t)}}}})],F.prototype,"filter",void 0),(0,n._)([(0,s.Cb)({json:{write:!0,origins:{"web-map":_,"portal-item":_}}})],F.prototype,"includedEffect",void 0),(0,n._)([(0,s.Cb)({json:{write:!0,origins:{"web-map":S,"portal-item":S}}})],F.prototype,"excludedEffect",void 0),(0,n._)([(0,s.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":I,"portal-item":I}}})],F.prototype,"excludedLabelsVisible",void 0),F=v=(0,n._)([(0,o.j)("esri.layers.support.FeatureEffect")],F);const C=F,x={write:{allowNull:!0}},j=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,n._)([(0,s.Cb)({type:C,json:{origins:{"web-map":x,"portal-item":x}}})],t.prototype,"featureEffect",void 0),t=(0,n._)([(0,o.j)("esri.layers.mixins.FeatureEffectLayer")],t),t}},34760:(e,t,i)=>{i.d(t,{Q:()=>g});var r=i(43697),n=i(92604),s=i(95330),o=i(5600),l=i(90578),a=(i(67676),i(80442),i(52011)),u=i(82960),d=i(46791),c=(i(66643),i(20102),i(26258),i(87538));const p=new d.Z,y=new WeakMap;function h(e){(function(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e})(e)&&p.push(new WeakRef(e))}function m(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:m(t,e%t):0}let f=0,b=0;function w(){const e=Date.now();let t=!1;for(const i of p){const r=i.deref();r?r.refreshInterval&&e-(y.get(r)??0)+5>=6e4*r.refreshInterval&&(y.set(r,e),r.refresh(e)):t=!0}if(t)for(let e=p.length-1;e>=0;e--)p.at(e).deref()||p.removeAt(e)}(0,c.EH)((()=>{const e=Date.now();let t=0;for(const i of p){const r=i.deref();r&&(t=m(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?y.get(r)||y.set(r,e):y.delete(r))}if(t!==b){if(b=t,clearInterval(f),0===b)return void(f=0);f=setInterval(w,b)}}));const g=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,s.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||h(this)}),(()=>{}))}destroy(){!function(e){const t=p.find((t=>t.deref()===e));t&&p.remove(t)}(this)}castRefreshInterval(e){return e>=.1?e:e<=0?0:.1}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,s.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{n.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}get test(){const e=this;return{set refreshInterval(t){e._set("refreshInterval",t)}}}};return(0,r._)([(0,o.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:{enabled:!0,layerContainerTypes:u.C}}}}})],t.prototype,"refreshInterval",void 0),(0,r._)([(0,l.p)("refreshInterval")],t.prototype,"castRefreshInterval",null),(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,r._)([(0,o.Cb)({readOnly:!0})],t.prototype,"refreshParameters",null),t=(0,r._)([(0,a.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,i)=>{i.d(t,{n:()=>p});var r=i(43697),n=i(92835),s=i(84552),o=i(5600),l=(i(75215),i(67676),i(80442),i(71715)),a=i(52011),u=i(69165),d=i(76259),c=i(78981);const p=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const i=t.timeInfo.exportOptions;if(!i)return null;const r=i.timeOffset,n=c.v.fromJSON(i.timeOffsetUnits);return r&&n?new s.Z({value:r,unit:n}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,r._)([(0,o.Cb)({type:n.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,r._)([(0,o.Cb)({type:s.Z})],t.prototype,"timeOffset",void 0),(0,r._)([(0,l.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,r._)([(0,o.Cb)({value:null,type:d.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,r._)([(0,o.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,r._)([(0,a.j)("esri.layers.mixins.TemporalLayer")],t),t}},1231:(e,t,i)=>{i.d(t,{Z:()=>f});var r,n=i(43697),s=i(35454),o=i(96674),l=i(5600),a=i(75215),u=(i(67676),i(80442),i(36030)),d=i(71715),c=i(52011),p=i(72729),y=i(86719);const h=new s.X({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=r=class extends o.wq{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 i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?.value??null}readValueType(e,{description:t}){let i=null;try{i=t?JSON.parse(t):null}catch(e){}return i?h.fromJSON(i.fieldValueType):null}clone(){return new r({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.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.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,n._)([(0,l.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,n._)([(0,l.Cb)()],m.prototype,"description",void 0),(0,n._)([(0,d.r)("description")],m.prototype,"readDescription",null),(0,n._)([(0,l.Cb)({types:p.V5,json:{read:{reader:p.im},write:!0}})],m.prototype,"domain",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,n._)([(0,l.Cb)({type:a.z8,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],m.prototype,"length",void 0),(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,n._)([(0,u.J)(y.v)],m.prototype,"type",void 0),(0,n._)([(0,l.Cb)()],m.prototype,"valueType",void 0),(0,n._)([(0,d.r)("valueType",["description"])],m.prototype,"readValueType",null),(0,n._)([(0,l.Cb)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=r=(0,n._)([(0,c.j)("esri.layers.support.Field")],m);const f=m},99514:(e,t,i)=>{i.d(t,{Z:()=>a});var r=i(20102),n=i(96674),s=i(92604),o=i(69165),l=i(25031);class a{static fromJSON(e){return new a(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new a(e.fields??[],p(e))}static fromLayerJSON(e){return new a(e.fields??[],p(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 i=[];for(const e of this.fields){const t=e?.name,r=d(t);if(t&&r){const n=u(t);this._fieldsMap.set(t,e),this._fieldsMap.set(n,e),this._normalizedFieldsMap.set(r,e),i.push(`${n}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,o.y2)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,o.H7)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,o.Dl)(e)||(0,o.Se)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,o.Dl)(e)||(0,o.Se)(e)||e.nullable||void 0!==(0,o.os)(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(u(e))??this._normalizedFieldsMap.get(d(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.Z.getLogger("esri.layers.support.FieldsIndex").error(new r.Z("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),l.pt):c.has(t.type)?l._4:null:null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,o.sX)(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.AK)(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function u(e){return e.trim().toLowerCase()}function d(e){return(0,o.q6)(e)?.toLowerCase()??""}const c=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function p(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:n}=e,s=(r?"startField"in r?r.startField:r.startTimeField:"")??"",o=(r?"endField"in r?r.endField:r.endTimeField:"")??"",a=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,l.Jv)(e.dateFieldsTimeReference):null,d=n?function(e){return"timeZone"in e}(n)?n.timeZone??a:n.dateFieldsTimeReference?(0,l.Jv)(n.dateFieldsTimeReference):a??l.pt:null,p=r?function(e){return"timeZone"in e}(r)?r.timeZone??a:r.timeReference?(0,l.Jv)(r.timeReference):a:null,y=new Map([[u(n?.creationDateField??""),d],[u(n?.editDateField??""),d],[u(s),p],[u(o),p]]);for(const{name:r,type:n}of e.fields)if(c.has(n))t.set(r,l._4);else if("date"!==n&&"esriFieldTypeDate"!==n)t.set(r,null);else if(i)t.set(r,l._4);else{const e=y.get(u(r??""))??a;t.set(r,e)}return t}},76259:(e,t,i)=>{i.d(t,{Z:()=>m});var r=i(43697),n=i(92835),s=i(84552),o=i(2368),l=i(96674),a=i(5600),u=(i(75215),i(67676),i(80442),i(71715)),d=i(52011),c=i(30556),p=i(25031);function y(e,t){return s.Z.fromJSON({value:e,unit:t})}let h=class extends((0,o.J)(l.wq)){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}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const i=new Date(t.timeExtent[0]),r=new Date(t.timeExtent[1]);return new n.Z({start:i,end:r})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,r._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,r._)([(0,a.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,r._)([(0,a.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,r._)([(0,u.r)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,r._)([(0,c.c)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,r._)([(0,a.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,r._)([(0,u.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,r._)([(0,c.c)("interval")],h.prototype,"writeInterval",null),(0,r._)([(0,a.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,r._)([(0,a.Cb)((0,p.mi)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,r._)([(0,d.j)("esri.layers.support.TimeInfo")],h);const m=h},72729:(e,t,i)=>{i.d(t,{im:()=>F,V5:()=>I}),i(80442);var r,n=i(43697),s=i(22974),o=i(5600),l=(i(75215),i(36030)),a=i(52011),u=i(96674);i(67676);let d=r=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new r({name:this.name,code:this.code})}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,o.Cb)({type:[String,Number],json:{write:!0}})],d.prototype,"code",void 0),d=r=(0,n._)([(0,a.j)("esri.layers.support.CodedValue")],d);const c=new(i(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let p=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.Cb)({type:String,json:{write:!0}})],p.prototype,"name",void 0),(0,n._)([(0,l.J)(c)],p.prototype,"type",void 0),p=(0,n._)([(0,a.j)("esri.layers.support.Domain")],p);const y=p;var h;let m=h=class extends y{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const i=String(e);this.codedValues.some((e=>(String(e.code)===i&&(t=e.name),!!t)))}return t}clone(){return new h({codedValues:(0,s.d9)(this.codedValues),name:this.name})}};(0,n._)([(0,o.Cb)({type:[d],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,n._)([(0,l.J)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=h=(0,n._)([(0,a.j)("esri.layers.support.CodedValueDomain")],m);const f=m;var b;i(92604),i(20102);let w=b=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new b}};(0,n._)([(0,l.J)({inherited:"inherited"})],w.prototype,"type",void 0),w=b=(0,n._)([(0,a.j)("esri.layers.support.InheritedDomain")],w);const g=w;var v;let _=v=class extends y{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new v({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,n._)([(0,o.Cb)({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,i){t[i]=[this.minValue||0,e]}}}})],_.prototype,"maxValue",void 0),(0,n._)([(0,o.Cb)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,i){t[i]=[e,this.maxValue||0]}}}})],_.prototype,"minValue",void 0),(0,n._)([(0,l.J)({range:"range"})],_.prototype,"type",void 0),_=v=(0,n._)([(0,a.j)("esri.layers.support.RangeDomain")],_);const S=_,I={key:"type",base:y,typeMap:{range:_,"coded-value":f,inherited:g}};function F(e){if(!e?.type)return null;switch(e.type){case"range":return S.fromJSON(e);case"codedValue":return f.fromJSON(e);case"inherited":return g.fromJSON(e)}return null}},45574:(e,t,i)=>{i.d(t,{JD:()=>g,Jj:()=>S,sX:()=>q,Ob:()=>U,rP:()=>N,FV:()=>F,nU:()=>P,Ci:()=>C,Fr:()=>w,HW:()=>J,gG:()=>E,uA:()=>k,SU:()=>x,KE:()=>O,VG:()=>T,tD:()=>j,kp:()=>R,C9:()=>Z,rk:()=>M,kZ:()=>V,JY:()=>A,Y5:()=>_,uj:()=>I});var r=i(40330),n=i(9790),s=i(66643),o=i(20102),l=i(35454),a=i(42033),u=i(63213),d=i(14165);async function c(e,t,i){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=p(e));const r=function(e){return p(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),n=e.capabilities.query.supportsPagination;t.start=0,t.num=r;let s=null;for(;;){const o=await e.source.queryFeaturesJSON(t,i);if(null==s?s=o:s.features=s.features.concat(o.features),s.exceededTransferLimit=o.exceededTransferLimit,!n||!o.exceededTransferLimit)break;t.start+=r}return s}function p(e){return e.capabilities.query.supportsMaxRecordCountFactor?d.Z.MAX_MAX_RECORD_COUNT_FACTOR:1}var y=i(84230),h=i(84382),m=i(81571),f=i(56545),b=i(75935);const w=new l.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function g(e,t,i,r){const n=await D(e);if(await v(e,t,r),!n.addAttachment)throw new o.Z(r,"Layer source does not support addAttachment capability");return n.addAttachment(t,i)}function v(e,t,i){const{attributes:r}=t,{objectIdField:n}=e;return e.capabilities?.data?.supportsAttachment?t?r?n&&r[n]?Promise.resolve():Promise.reject(new o.Z(i,`feature is missing the identifying attribute ${n}`)):Promise.reject(new o.Z(i,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.Z(i,"A feature is required to add/delete/update attachments")):Promise.reject(new o.Z(i,"this layer doesn't support attachments"))}async function _(e,t,i,r,n){const s=await D(e);if(await v(e,t,n),!s.updateAttachment)throw new o.Z(n,"Layer source does not support updateAttachment capability");return s.updateAttachment(t,i,r)}async function S(e,t,r){const{applyEdits:n}=await i.e(4720).then(i.bind(i,14720)),s=await e.load(),{source:o,globalIdField:l}=s;let a=r;return("feature"===s.type?s.infoFor3D:null)&&null!=t.deleteFeatures&&null!=l&&(a={...a,globalIdToObjectId:await J(e,t.deleteFeatures,l)}),n(s,o,t,r)}async function I(e,t,r){const{uploadAssets:n}=await i.e(4720).then(i.bind(i,14720)),s=await e.load();return n(s,s.source,t,r)}async function F(e,t,i,r){const n=await D(e);if(await v(e,t,r),!n.deleteAttachments)throw new o.Z(r,"Layer source does not support deleteAttachments capability");return n.deleteAttachments(t,i)}async function C(e,t,i){const r=(await e.load({signal:t?.signal})).source;if(!r.fetchRecomputedExtents)throw new o.Z(i,"Layer source does not support fetchUpdates capability");return r.fetchRecomputedExtents(t)}async function x(e,t,i,r){t=f.Z.from(t),await e.load();const n=e.source,s=e.capabilities;if(!s?.data?.supportsAttachment)throw new o.Z(r,"this layer doesn't support attachments");const{attachmentTypes:l,objectIds:a,globalIds:u,num:d,size:c,start:p,where:y}=t;if(!s?.operations?.supportsQueryAttachments&&(l?.length>0||u?.length>0||c?.length>0||d||p||y))throw new o.Z(r,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(a?.length||u?.length||y))throw new o.Z(r,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!n.queryAttachments)throw new o.Z(r,"Layer source does not support queryAttachments capability",t);return n.queryAttachments(t)}async function j(e,t,i,r){const n=await D(e);if(!n.queryObjectIds)throw new o.Z(r,"Layer source does not support queryObjectIds capability");return n.queryObjectIds(d.Z.from(t)??e.createQuery(),i)}async function T(e,t,i,r){const n=await D(e);if(!n.queryFeatureCount)throw new o.Z(r,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount(d.Z.from(t)??e.createQuery(),i)}async function O(e,t,i,r){const n=await D(e);if(!n.queryExtent)throw new o.Z(r,"Layer source does not support queryExtent capability");return n.queryExtent(d.Z.from(t)??e.createQuery(),i)}async function R(e,t,i,r){const n=await D(e);if(!n.queryRelatedFeatures)throw new o.Z(r,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(b.default.from(t),i)}async function Z(e,t,i,r){const n=await D(e);if(!n.queryRelatedFeaturesCount)throw new o.Z(r,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(b.default.from(t),i)}async function E(e){const t=e.source;if(t?.refresh)try{const{dataChanged:i,updates:r}=await t.refresh();if(null!=r&&(e.sourceJSON={...e.sourceJSON,...r},e.read(r,{origin:"service",url:e.parsedUrl})),i)return!0}catch{}if(e.definitionExpression)try{return(await(0,a.E)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function N(e){const t=new d.Z,i=e.capabilities?.data,r=e.capabilities?.query;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,r&&(t.compactGeometryEnabled=r.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=r.supportsDefaultSpatialReference),i&&(i.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),i.supportsM&&null!=e.returnM&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:n,timeExtent:s}=e;return t.timeExtent=null!=n&&null!=s?s.offset(-n.value,n.unit):s||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function M(e){const{globalIdField:t,fields:i}=e;if(t)return t;if(i)for(const e of i)if("esriFieldTypeGlobalID"===e.type)return e.name}function V(e){const{objectIdField:t,fields:i}=e;if(t)return t;if(i)for(const e of i)if("esriFieldTypeOID"===e.type)return e.name}function A(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}async function D(e){return(await e.load()).source}async function P(e,t,i){const n=e.parsedUrl?.path;n&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!r.id)return;if(r.id.findCredential(e))return;let i;try{const n=await(0,y.oP)(e,t);n&&(i=await r.id.checkSignInStatus(`${n}/sharing`))}catch(e){}if(i)try{const i=null!=t?t.signal:null;await r.id.getCredential(e,{signal:i})}catch(e){}}(n,i)}function q(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const L=(0,u.d)({types:n.QT});function U(e,t){if(e.defaultSymbol)return e.types?.length?new m.Z({defaultSymbol:L(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:L(e.symbol,e,t)})))}):new h.Z({symbol:L(e.defaultSymbol,e,t)})}function k(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const i=e.editingInfo?.lastEditDate?.getTime();return null==i||(t*=1e3,Date.now()-i<t)}async function J(e,t,i){if(null==t)return null;const r=[],{objectIdField:n}=e;if(t.forEach((e=>{let t=null;if("attributes"in e){const{attributes:r}=e;t={globalId:r[i],objectId:null!=r[n]&&-1!==r[n]?r[n]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null!=t.objectId&&-1!==t.objectId||r.push(t.globalId))})),0===r.length)return null;const o=e.createQuery();o.where=r.map((e=>`${i}='${e}'`)).join(" OR "),o.returnGeometry=!1,o.outFields=[n,i],o.cacheHint=!1;const l=await(0,s.mt)(c(e,o));if(!l.ok)return null;const a=new Map,u=l.value.features;for(const e of u){const t=e.attributes[i],r=e.attributes[n];null!=t&&null!=r&&-1!==r&&a.set(t,r)}return a}},53518:(e,t,i)=>{i.d(t,{v:()=>a});var r=i(80442),n=i(92604),s=i(1231),o=i(99514),l=i(69165);function a(){return{fields:{type:[s.Z],value:null,set:function(e){if(e&&(0,r.Z)("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.Z.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.Z.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 i=this.fieldsIndex?.has(t);i||n.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.Q0)(this.fieldsIndex,e)}}}}},86719:(e,t,i)=>{i.d(t,{v:()=>r});const r=new(i(35454).X)({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"})},78981:(e,t,i)=>{i.d(t,{v:()=>r});const r=(0,i(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},40555:(e,t,i)=>{i.d(t,{y:()=>o});var r=i(66643),n=i(95330),s=i(20941);async function o(e,t,i){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const l=await(0,r.q6)(o.populateFromStyle());if((0,n.k_)(i),!1===l.ok){const i=l.error;t?.messages&&t.messages.push(new s.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${i.message}`,{error:i,context:t})),e.clear("renderer",t?.origin)}}}},75935:(e,t,i)=>{i.r(t),i.d(t,{default:()=>h});var r,n=i(43697),s=(i(66577),i(96674)),o=i(22974),l=i(5600),a=i(75215),u=i(52011),d=i(30556),c=i(10158),p=i(82971);let y=r=class extends s.wq{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new r((0,o.d9)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,n._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,n._)([(0,l.Cb)({type:c.n,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,n._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,n._)([(0,l.Cb)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,n._)([(0,l.Cb)({type:Date})],y.prototype,"historicMoment",void 0),(0,n._)([(0,d.c)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,n._)([(0,l.Cb)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,n._)([(0,l.Cb)({type:[Number],json:{write:!0}})],y.prototype,"objectIds",void 0),(0,n._)([(0,l.Cb)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,n._)([(0,l.Cb)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,n._)([(0,l.Cb)({type:p.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,n._)([(0,l.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,n._)([(0,d.c)("start"),(0,d.c)("num")],y.prototype,"writeStart",null),(0,n._)([(0,l.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,n._)([(0,l.Cb)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,n._)([(0,l.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,n._)([(0,l.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=r=(0,n._)([(0,u.j)("esri.rest.support.RelationshipQuery")],y),y.from=(0,a.se)(y);const h=y},58333:(e,t,i)=>{i.d(t,{ET:()=>s,I4:()=>n,eG:()=>a,lF:()=>o,lj:()=>d,qP:()=>l,wW:()=>u});const r=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:r,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:r},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},a={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},d={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},12259:(e,t,i)=>{var r;i.d(t,{x:()=>r}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(r||(r={}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7899],{38171:(e,t,i)=>{i.d(t,{Z:()=>f});var s,r=i(43697),l=i(66577),n=i(51773),o=i(9790),a=i(2368),u=i(96674),p=i(99001),c=i(5600),d=(i(75215),i(67676),i(80442),i(52011)),h=i(33955);function y(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 m=s=class extends((0,a.J)(u.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,p.D)(),configurable:!0})}normalizeCtorArgs(e,t,i,s){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:i,popupTemplate:s}}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),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})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.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:y(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,u.AK)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}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)}};(0,r._)([(0,c.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const s=(0,h.im)(e[i]);s&&(t[i]=s)}return 0!==Object.keys(t).length?t:null}}})],m.prototype,"aggregateGeometries",null),(0,r._)([(0,c.Cb)({value:null})],m.prototype,"attributes",null),(0,r._)([(0,c.Cb)({value:null,types:l.qM,json:{read:h.im}})],m.prototype,"geometry",null),(0,r._)([(0,c.Cb)({type:Boolean})],m.prototype,"isAggregate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"layer",void 0),(0,r._)([(0,c.Cb)({type:n.Z})],m.prototype,"popupTemplate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"sourceLayer",void 0),(0,r._)([(0,c.Cb)({value:null,types:o.LB})],m.prototype,"symbol",null),(0,r._)([(0,c.Cb)({type:Boolean,value:!0})],m.prototype,"visible",null),m=s=(0,r._)([(0,d.j)("esri.Graphic")],m),(m||(m={})).generateUID=p.D;const f=m},74085:(e,t,i)=>{function s(e){}i.d(t,{Bg:()=>s}),i(80442)},16050:(e,t,i)=>{i.d(t,{Z:()=>z});var s,r=i(43697),l=i(9790),n=i(35454),o=i(22974),a=i(92604),u=i(5600),p=i(90578),c=i(36030),d=i(71715),h=i(52011),y=i(30556),m=i(75215),f=i(35671),b=i(5499),v=i(41733),g=i(32984),w=i(9833),_=i(66338),V=i(59266);const S="percent-of-total",x="field",C=new n.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),I=(0,m.se)(g.Z);let j=s=class extends((0,v.W)(b.Z)){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.Z;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.Z.getLogger(this).error(".field: field must be a string value"),null):(0,m.Zs)(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.Z.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.Z({minValue:e,maxValue:t,symbol:(0,l.se)(i)}):I((0,o.d9)(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.Z.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.LC)()});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.Z.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.LC)(),{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.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.d9)(this.visualVariables),legendOptions:(0,o.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}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.io)(e,t,this.valueExpression)];(0,f.AB)(e,t,this.field),(0,f.AB)(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.Cb)(w.KK)],j.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,u.Cb)({type:[g.Z]})],j.prototype,"classBreakInfos",void 0),(0,r._)([(0,d.r)("classBreakInfos")],j.prototype,"readClassBreakInfos",null),(0,r._)([(0,y.c)("classBreakInfos")],j.prototype,"writeClassBreakInfos",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"defaultLabel",void 0),(0,r._)([(0,u.Cb)(w.Gn)],j.prototype,"defaultSymbol",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"field",void 0),(0,r._)([(0,p.p)("field")],j.prototype,"castField",null),(0,r._)([(0,u.Cb)({type:Boolean})],j.prototype,"isMaxInclusive",void 0),(0,r._)([(0,u.Cb)({type:_.I,json:{write:!0}})],j.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],j.prototype,"minValue",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"normalizationField",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],j.prototype,"normalizationTotal",void 0),(0,r._)([(0,u.Cb)({type:C.apiValues,value:null,json:{type:C.jsonValues,read:C.read,write:C.write}})],j.prototype,"normalizationType",null),(0,r._)([(0,c.J)({classBreaks:"class-breaks"})],j.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpression",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpressionTitle",void 0),j=s=(0,r._)([(0,h.j)("esri.renderers.ClassBreaksRenderer")],j);const z=j},5499:(e,t,i)=>{i.d(t,{Z:()=>c});var s=i(43697),r=i(35454),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(69237);const u=new r.X({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.wq{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.Cb)({type:a.Z,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,n.Cb)({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.j)("esri.renderers.Renderer")],p);const c=p},81571:(e,t,i)=>{i.d(t,{Z:()=>G});var s=i(43697),r=i(9790),l=i(20102),n=i(22974),o=i(92604),a=i(78286),u=i(17445),p=i(5600),c=i(90578),d=i(36030),h=i(71715),y=i(52011),m=i(30556),f=i(22862),b=i(75215),v=i(35671),g=i(48522),w=i(5499),_=i(41733),V=i(9833),S=i(66338),x=i(2368),C=i(96674),I=i(67676);i(80442);let j=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value",void 0),(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value2",void 0),(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value3",void 0),j=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValue")],j);const z=j;let q=class extends((0,x.J)(C.wq)){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 z({value:e}))):"object"===t?e[0]instanceof z?e:e.map((e=>new z(e))):null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"description",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"label",void 0),(0,s._)([(0,p.Cb)(V.Gn)],q.prototype,"symbol",void 0),(0,s._)([(0,p.Cb)({type:[z],json:{type:[[String]],read:{reader:e=>e?e.map((e=>new z({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(I.pC).map((e=>e.toString()));i.push(e)}t.values=i}}}})],q.prototype,"values",void 0),(0,s._)([(0,c.p)("values")],q.prototype,"castValues",null),q=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueClass")],q);const F=q;let E=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"heading",void 0),(0,s._)([(0,p.Cb)({type:[F],json:{write:!0}})],E.prototype,"classes",void 0),E=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueGroup")],E);const T=E;var k,Z=i(44262),O=i(59266),D=i(25929),U=i(27883),N=i(59390);const L="esri.renderers.UniqueValueRenderer",B=o.Z.getLogger(L),M="uvInfos-watcher",R="uvGroups-watcher",A=(0,b.se)(Z.Z);let $=k=class extends((0,_.W)(w.Z)){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.Hg)(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.Zs)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?s.messages.push(new l.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):B.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.Z.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,D.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,D.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?B.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?B.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 B.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?A(e):new Z.Z({value:e,symbol:(0,r.se)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[i.value]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void B.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,O.LC)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void B.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,O.LC)(),{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 k({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.d9)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,n.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.d9)(this.uniqueValueInfos),i=(0,n.d9)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.d9)(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.io)(e,t,this.valueExpression)];(0,v.AB)(e,t,this.field),(0,v.AB)(e,t,this.field2),(0,v.AB)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,U.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new N.Z({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 Z.Z({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(M);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,u.YP)((()=>({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,M)}}_watchUniqueValueGroups(){this.removeHandles(R);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,u.YP)((()=>({classes:i.classes})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}));for(const e of i.classes??[])t.push((0,u.YP)((()=>({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,d=[a];i&&d.push(p),s&&d.push(c);const h=o?d.join(r||""):d[0];e.push(new Z.Z({symbol:t,label:n,value:h,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 F({symbol:t,label:i,description:l,values:[new z({value:o,value2:a,value3:u})]})})),a=[new T({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("function"!=typeof t&&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"function"==typeof t?s=t(e):t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new k(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||g.Z.getDefault());const s=i.populateFromStyle();return s.catch((t=>{B.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),s}static fromStyleUrl(e,t){const i=new k(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch((t=>{B.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),s}};(0,s._)([(0,p.Cb)({readOnly:!0})],$.prototype,"_cache",null),(0,s._)([(0,d.J)({uniqueValue:"unique-value"})],$.prototype,"type",void 0),(0,s._)([(0,p.Cb)(V.KK)],$.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,p.Cb)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],$.prototype,"field",null),(0,s._)([(0,c.p)("field")],$.prototype,"castField",null),(0,s._)([(0,m.c)("field")],$.prototype,"writeField",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],$.prototype,"field2",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],$.prototype,"field3",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],$.prototype,"orderByClassesEnabled",void 0),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],$.prototype,"valueExpression",null),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],$.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,p.Cb)({type:S.I,json:{write:!0}})],$.prototype,"legendOptions",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],$.prototype,"defaultLabel",void 0),(0,s._)([(0,p.Cb)((0,a.RH)({...V.Gn},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],$.prototype,"defaultSymbol",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],$.prototype,"fieldDelimiter",null),(0,s._)([(0,p.Cb)({type:g.Z,readOnly:!0})],$.prototype,"portal",void 0),(0,s._)([(0,h.r)("portal",["styleName"])],$.prototype,"readPortal",null),(0,s._)([(0,p.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],$.prototype,"styleOrigin",void 0),(0,s._)([(0,h.r)("styleOrigin",["styleName","styleUrl"])],$.prototype,"readStyleOrigin",null),(0,s._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],$.prototype,"writeStyleOrigin",null),(0,s._)([(0,p.Cb)({type:[T],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,d,h]=o?u?.toString()?.split(r||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(d),s&&y.push(h),{symbol:l,label:a,values:[y],description:p}}))}]}(t)).map((e=>T.fromJSON(e,i)))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],$.prototype,"uniqueValueGroups",null),(0,s._)([(0,p.Cb)({type:[Z.Z],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],$.prototype,"uniqueValueInfos",null),$=k=(0,s._)([(0,y.j)(L)],$);const G=$},41733:(e,t,i)=>{i.d(t,{W:()=>D});var s=i(43697),r=i(5600),l=i(75215),n=(i(67676),i(80442),i(71715)),o=i(52011),a=i(30556),u=i(35671);const p=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var c,d=i(77997),h=i(21849);let y=c=class extends d.Z{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 c({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.Cb)({readOnly:!0})],y.prototype,"cache",null),(0,s._)([(0,r.Cb)({type:["color"],json:{type:["colorInfo"]}})],y.prototype,"type",void 0),(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,s._)([(0,r.Cb)({type:[h.Z],json:{write:!0}})],y.prototype,"stops",null),y=c=(0,s._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],y);const m=y;var f,b=i(96674),v=i(65242);let g=f=class extends b.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,v.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,v.a)(e)}clone(){return new f({label:this.label,opacity:this.opacity,value:this.value})}};(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,s._)([(0,r.Cb)({type:Number,json:{type:l.z8,write:{target:"transparency"}}})],g.prototype,"opacity",void 0),(0,s._)([(0,n.r)("opacity",["transparency"])],g.prototype,"readOpacity",null),(0,s._)([(0,a.c)("opacity")],g.prototype,"writeOpacity",null),(0,s._)([(0,r.Cb)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=f=(0,s._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],g);const w=g;var _;let V=_=class extends d.Z{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 _({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.Cb)({readOnly:!0})],V.prototype,"cache",null),(0,s._)([(0,r.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],V.prototype,"type",void 0),(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],V.prototype,"normalizationField",void 0),(0,s._)([(0,r.Cb)({type:[w],json:{write:!0}})],V.prototype,"stops",null),V=_=(0,s._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],V);const S=V;var x=i(89513),C=i(23847),I=i(92036),j=i(35454),z=i(92604),q=i(20941);const F={color:m,size:C.Z,opacity:S,rotation:x.Z},E=new j.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),T=/^\[([^\]]+)\]$/i;let k=class extends I.Z{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,l=s?.match(T),n=l?.[1];if(n&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:n})),e)return e.map((e=>{const t=E.read(e.type),s=F[t];s||(z.Z.getLogger(this).warn(`Unknown variable type: ${t}`),i?.messages&&i.messages.push(new q.Z("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.Cb)()],k.prototype,"visualVariables",null),k=(0,s._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],k);const Z=k,O={base:d.Z,key:"type",typeMap:{opacity:S,color:m,rotation:x.Z,size:C.Z}},D=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new Z}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.AB)(e,t,s.field),s.normalizationField&&(0,u.AB)(e,t,s.normalizationField),s.valueExpression&&(U(s.valueExpression,e,t)||await(0,u.io)(e,t,s.valueExpression)))}};return(0,s._)([(0,r.Cb)({types:[O],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,s._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,s._)([(0,a.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,s._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function U(e,t,i){const s=(r=e,r.match(p)?.[1]?.replace(/\\'/g,"'")??null);var r;return null!=s&&((0,u.AB)(t,i,s),!0)}},69237:(e,t,i)=>{i.d(t,{Z:()=>T});var s,r=i(43697),l=i(35454),n=i(96674),o=i(22974),a=i(5600),u=i(75215),p=i(71715),c=i(52011);i(67676),i(80442);let d=s=class extends n.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var h;(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,r._)([(0,c.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.d9)(this.classBreakInfos)})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(90578);const b=new l.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),v=new l.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),g={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},w=["high-to-low","above-and-below","centered-on","extremes"],_=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],V=["seconds","minutes","hours","days","months","years"];let S=m=class extends n.wq{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}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}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 m({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"endTime",void 0),(0,r._)([(0,f.p)("endTime")],S.prototype,"castEndTime",null),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"startTime",void 0),(0,r._)([(0,f.p)("startTime")],S.prototype,"castStartTime",null),(0,r._)([(0,a.Cb)({type:b.apiValues,value:null,json:{type:b.jsonValues,read:b.read,write:b.write}})],S.prototype,"style",null),(0,r._)([(0,a.Cb)({type:_,value:null,json:{type:_,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.includes(e)&&(t.theme=e)}}}},write:!0}})],S.prototype,"theme",null),(0,r._)([(0,a.Cb)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],S.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:V,json:{type:V,write:!0}})],S.prototype,"units",void 0),S=m=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfoVisualVariable")],S);const x=S;var C,I=i(94593);const j=new l.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),z=new l.X({pieChart:"pie-chart",classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new l.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let E=C=class extends n.wq{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,I.i)(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 C({classificationMethod:this.classificationMethod,colorRamp:(0,o.d9)(this.colorRamp),fadeRatio:(0,o.d9)(this.fadeRatio),fields:this.fields?.slice(0),field1:(0,o.d9)(this.field1),field2:(0,o.d9)(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.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-document":{default:"manual",type:j.jsonValues,read:j.read,write:j.write}}}})],E.prototype,"classificationMethod",null),(0,r._)([(0,a.Cb)({types:I.V,json:{write:!0}})],E.prototype,"colorRamp",void 0),(0,r._)([(0,p.r)("colorRamp")],E.prototype,"readColorRamp",null),(0,r._)([(0,a.Cb)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"fadeRatio",void 0),(0,r._)([(0,a.Cb)({type:[String],value:null,json:{write:!0}})],E.prototype,"fields",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field1",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field2",null),(0,r._)([(0,a.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"flowTheme",null),(0,r._)([(0,a.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],E.prototype,"focus",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],E.prototype,"isAutoGenerated",void 0),(0,r._)([(0,a.Cb)({type:Number,value:null,json:{type:u.z8,write:!0}})],E.prototype,"numClasses",null),(0,r._)([(0,a.Cb)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],E.prototype,"lengthUnit",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"statistics",null),(0,r._)([(0,a.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],E.prototype,"standardDeviationInterval",null),(0,r._)([(0,a.Cb)({type:z.apiValues,value:null,json:{type:z.jsonValues,read:z.read,write:z.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],E.prototype,"type",null),(0,r._)([(0,a.Cb)({type:[x],json:{write:!0}})],E.prototype,"visualVariables",void 0),(0,r._)([(0,a.Cb)({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}}}})],E.prototype,"univariateSymbolStyle",null),(0,r._)([(0,a.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateTheme",null),E=C=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfo")],E);const T=E},32984:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends l.wq{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?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r._)([(0,n.Cb)(a.EW)],u.prototype,"symbol",void 0),u=s=(0,r._)([(0,o.j)("esri.renderers.support.ClassBreakInfo")],u);const p=u},66338:(e,t,i)=>{i.d(t,{I:()=>a});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011));let a=s=class extends l.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=s=(0,r._)([(0,o.j)("esri.renderers.support.LegendOptions")],a)},44262:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends l.wq{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.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.Cb)(a.EW)],u.prototype,"symbol",void 0),(0,r._)([(0,n.Cb)(a.GY)],u.prototype,"value",void 0),u=s=(0,r._)([(0,o.j)("esri.renderers.support.UniqueValueInfo")],u);const p=u},9833:(e,t,i)=>{i.d(t,{EW:()=>p,GY:()=>d,Gn:()=>u,KK:()=>c});var s=i(9790),r=i(78286),l=i(63213),n=i(21878),o=i(89164),a=i(86114);const u={types:s.QT,json:{write:{writer:n.cW},origins:{"web-scene":{types:s.f_,write:{writer:n.cW},read:{reader:(0,l.d)({types:s.f_})}}}}},p=(0,r.RH)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:o.Z,key:"type",typeMap:{"simple-fill":s.LB.typeMap["simple-fill"],"picture-fill":s.LB.typeMap["picture-fill"],"polygon-3d":s.LB.typeMap["polygon-3d"]}},json:{write:{writer:n.cW},origins:{"web-scene":{type:a.Z,write:{writer:n.cW}}}}},d={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},89513:(e,t,i)=>{i.d(t,{Z:()=>c});var s,r=i(43697),l=i(20102),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(30556),u=i(77997);let p=s=class extends u.Z{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.Z("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.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,n.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,r._)([(0,n.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,a.c)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},23847:(e,t,i)=>{i.d(t,{Z:()=>j});var s,r=i(43697),l=i(20102),n=i(35454),o=i(92604),a=i(62357),u=i(5600),p=i(90578),c=i(71715),d=i(52011),h=i(30556),y=i(77997),m=i(30856),f=(i(75215),i(67676),i(80442),i(58439));let b=s=class extends f.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues?.slice(0)})}};(0,r._)([(0,u.Cb)({type:[Number],json:{write:!0}})],b.prototype,"customValues",void 0),b=s=(0,r._)([(0,d.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],b);const v=b;var g,w=i(51706),_=i(28101);const V=new n.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new n.X({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?(0,a.t_)(e):"size"===e.type?(0,w.iY)(e)?e:(delete(e={...e}).type,new I(e)):void 0}function C(e,t,i){if("object"!=typeof e)return e;const s=new I;return s.read(e,i),s}let I=g=class extends y.Z{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&&_.B3.test(this.valueExpression)}}set expression(e){o.Z.getLogger(this).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,w.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,w.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,w.PS)(this)}set maxDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(o.Z.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 C(e,0,i)}set minDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(o.Z.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 C(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.Z.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.QW)(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.Z("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.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,w.iY)(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.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===w.hL.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,u.Cb)({readOnly:!0})],I.prototype,"cache",null),(0,r._)([(0,u.Cb)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],I.prototype,"axis",void 0),(0,r._)([(0,u.Cb)({type:String,value:null,json:{read:!1}})],I.prototype,"expression",null),(0,r._)([(0,u.Cb)()],I.prototype,"index",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"inputValueType",null),(0,r._)([(0,u.Cb)({type:v,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxSize",null),(0,r._)([(0,p.p)("maxSize")],I.prototype,"castMaxSize",null),(0,r._)([(0,c.r)("maxSize")],I.prototype,"readMaxSize",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minSize",null),(0,r._)([(0,p.p)("minSize")],I.prototype,"castMinSize",null),(0,r._)([(0,c.r)("minSize")],I.prototype,"readMinSize",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"arcadeRequired",null),(0,r._)([(0,u.Cb)({type:String})],I.prototype,"scaleBy",void 0),(0,r._)([(0,u.Cb)({type:[m.Z],value:null,json:{write:!0}})],I.prototype,"stops",null),(0,r._)([(0,u.Cb)({type:["outline"],json:{write:!0}})],I.prototype,"target",void 0),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"transformationType",null),(0,r._)([(0,u.Cb)({type:["size"],json:{type:["sizeInfo"]}})],I.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],I.prototype,"useSymbolValue",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,r._)([(0,c.r)("valueExpression",["valueExpression","expression"])],I.prototype,"readValueExpression",null),(0,r._)([(0,h.c)("web-scene","valueExpression")],I.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,u.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],I.prototype,"valueRepresentation",void 0),(0,r._)([(0,u.Cb)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"valueUnit",void 0),(0,r._)([(0,c.r)("valueUnit")],I.prototype,"readValueUnit",null),I=g=(0,r._)([(0,d.j)("esri.renderers.visualVariables.SizeVariable")],I);const j=I},77997:(e,t,i)=>{i.d(t,{Z:()=>y});var s=i(43697),r=i(35454),l=i(96674),n=i(92604),o=i(5600),a=i(90578),u=i(52011),p=i(75215),c=i(58439);const d=new r.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends l.wq{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.Z.getLogger(this).error(".field: field must be a string value"),null):(0,p.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,o.Cb)()],h.prototype,"index",void 0),(0,s._)([(0,o.Cb)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:d.write}})],h.prototype,"type",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s._)([(0,a.p)("field")],h.prototype,"castField",null),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,o.Cb)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,s._)([(0,o.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,s._)([(0,u.j)("esri.renderers.visualVariables.VisualVariable")],h);const y=h},21849:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),l=i(22303),n=i(96674),o=i(5600),a=i(75215),u=(i(67676),i(80442),i(52011)),p=i(30556);let c=s=class extends n.wq{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.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],c.prototype,"color",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,r._)([(0,p.c)("value")],c.prototype,"writeValue",null),c=s=(0,r._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},30856:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(62357),o=i(5600),a=(i(75215),i(67676),i(80442),i(52011));let u=s=class extends l.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new s({label:this.label,size:this.size,value:this.value})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:Number,cast:n.t_,json:{write:!0}})],u.prototype,"size",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),u=s=(0,r._)([(0,a.j)("esri.renderers.visualVariables.support.SizeStop")],u);const p=u},58439:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),l=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),o=i(66338);let a=s=class extends o.I{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=s=(0,r._)([(0,n.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},51706:(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,{PS:()=>o,QW:()=>a,RY:()=>s,hL:()=>r,iY:()=>l,qh:()=>n}),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={}))},28101:(e,t,i)=>{i.d(t,{B3:()=>p,PR:()=>m,cM:()=>c}),i(22303);var s=i(38171),r=i(74085),l=i(92604),n=i(99282),o=i(51706);const a=l.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=(new s.Z,Math.PI),p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function c(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 a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.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,u=o?.attributes,p=s.field,{hasExpression:c}=s.cache;let d=s.cache.compiledFunc,h=0;if(!p&&!c)return h;if(c){if(null==i?.arcade)return void a.error("Use of arcade expressions requires an arcade context");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}h=t.executeFunction(d,l)}else u&&(h=u[p]||0);return h="number"!=typeof h||isNaN(h)?null:l+n*h,h}function d(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 a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const r=function(e,t,i,s,r){switch(t.transformationType){case o.hL.Additive:return function(e,t,i,s){return e+((h(t.minSize,i,s)||t.minDataValue)??0)}(e,t,i,s);case o.hL.Constant:return function(e,t,i){const s=e.stops;let r=s?.length&&s[0].size;return null==r&&(r=e.minSize),h(r,t,i)}(t,i,s);case o.hL.ClampedLinear:return function(e,t,i,s){const r=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),l=h(t.minSize,i,s),n=h(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?u*(l/2)**2:l*l,i=t+r*((e?u*(n/2)**2:n*n)-t);return e?2*Math.sqrt(i/u):Math.sqrt(i)}return l+r*(n-l)}(e,t,i,s);case o.hL.Proportional:return function(e,t,i,s){const r=null!=s?s.shape:void 0,l=e/t.minDataValue,n=h(t.minSize,i,s),o=h(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,y(a,n,o)}(e,t,i,s);case o.hL.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 h(t.stops?.[l].size,i,s);{const e=h(t.stops?.[l].size,i,s);return e+(h(t.stops?.[n].size,i,s)-e)*o}}(e,t,i,s,r);case o.hL.RealWorldSize:return function(e,t,i,s){const r=(s?.resolution??1)*n.a[t.valueUnit],l=h(t.minSize,i,s),o=h(t.maxSize,i,s),{valueRepresentation:a}=t;let p=null;return p="area"===a?2*Math.sqrt(e/u)/r:"radius"===a||"distance"===a?2*e/r:e/r,y(p,l,o)}(e,t,i,s);case o.hL.Identity:return e;case o.hL.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:u}=e.cache;let p=e.cache.compiledFunc;if(u){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.RY.Expression:{if(null==i?.arcade)return void a.error("Use of arcade expressions requires an arcade context");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(!p){const t=s.createSyntaxTree(e.valueExpression);p=s.createFunction(t),e.cache.compiledFunc=p}n=s.executeFunction(p,o);break}case o.RY.Field:l&&(n=l[e.field]);break;case o.RY.Unknown:n=null}if(!(0,o.qh)(n))return null;if(s||!e.normalizationField)return n;const c=l?parseFloat(l[e.normalizationField]):null;return(0,o.qh)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==r||isNaN(r)?0:r}function h(e,t,i){return null==e?null:(0,o.iY)(e)?d(e,t,i):(0,o.qh)(e)?e:null}function y(e,t,i){return(0,o.qh)(i)&&e>i?i:(0,o.qh)(t)&&e<t?t:e}function m(e,t,i){const s=["proportional","proportional","proportional"];for(const l of e){const e=l.useSymbolValue?"symbol-value":d(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.Bg)(l.axis)}}return s}},98046:(e,t,i)=>{i.d(t,{Z:()=>h});var s,r=i(43697),l=i(22303),n=i(22974),o=i(5600),a=i(75215),u=i(36030),p=i(52011),c=i(899);let d=s=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.d9)(this.fromColor),toColor:(0,n.d9)(this.toColor),algorithm:this.algorithm})}};(0,r._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,r._)([(0,o.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],d.prototype,"fromColor",void 0),(0,r._)([(0,o.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],d.prototype,"toColor",void 0),(0,r._)([(0,o.Cb)({type:["algorithmic"]})],d.prototype,"type",void 0),d=s=(0,r._)([(0,p.j)("esri.rest.support.AlgorithmicColorRamp")],d);const h=d},899:(e,t,i)=>{i.d(t,{Z:()=>a});var s=i(43697),r=i(96674),l=i(5600),n=(i(75215),i(67676),i(80442),i(52011));let o=class extends r.wq{constructor(e){super(e),this.type=null}};(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,n.j)("esri.rest.support.ColorRamp")],o);const a=o},1515:(e,t,i)=>{i.d(t,{Z:()=>c});var s,r=i(43697),l=i(22974),n=i(5600),o=(i(75215),i(52011)),a=i(98046),u=i(899);let p=s=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:(0,l.d9)(this.colorRamps)})}};(0,r._)([(0,n.Cb)({type:[a.Z],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,r._)([(0,n.Cb)({type:["multipart"]})],p.prototype,"type",void 0),p=s=(0,r._)([(0,o.j)("esri.rest.support.MultipartColorRamp")],p);const c=p},94593:(e,t,i)=>{i.d(t,{V:()=>n,i:()=>o});var s=i(98046),r=i(899),l=i(1515);const n={key:"type",base:r.Z,typeMap:{algorithmic:s.Z,multipart:l.Z}};function o(e){return e?.type?"algorithmic"===e.type?s.Z.fromJSON(e):"multipart"===e.type?l.Z.fromJSON(e):null:null}},72245:(e,t,i)=>{i.d(t,{K3:()=>r,Rx:()=>l});var s=i(80442);const r=()=>!!(0,s.Z)("enable-feature:force-wosr"),l=()=>!!(0,s.Z)("enable-feature:SceneLayer-editing");((e="i3s-patching")=>{switch(s.Z.add("enable-i3s-patching",!1,!0,!0),s.Z.add("enable-feature:direct-3d-object-feature-layer-display",!1,!0,!0),s.Z.add("enable-feature:SceneLayer-editing",!0,!0,!0),e){case"feature-layer-view":s.Z.add("enable-feature:direct-3d-object-feature-layer-display",!0,!0,!0);break;case"i3s-patching":s.Z.add("enable-i3s-patching",!0,!0,!0)}})("i3s-patching")},31134:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),l=i(96674),n=i(62357),o=i(5600),a=i(90578),u=(i(67676),i(80442),i(52011)),p=i(61565);let c=s=class extends l.wq{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(e){return(0,n.t_)(e)}clone(){return new s({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,r._)([(0,o.Cb)({type:p.JT,json:{default:"none",write:!0}})],c.prototype,"decoration",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"family",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:{overridePolicy:(e,t,i)=>({enabled:!i||!i.textSymbol3D})}}})],c.prototype,"size",void 0),(0,r._)([(0,a.p)("size")],c.prototype,"castSize",null),(0,r._)([(0,o.Cb)({type:p.g6,json:{default:"normal",write:!0}})],c.prototype,"style",void 0),(0,r._)([(0,o.Cb)({type:p.vC,json:{default:"normal",write:!0}})],c.prototype,"weight",void 0),c=s=(0,r._)([(0,u.j)("esri.symbols.Font")],c);const d=c},21878:(e,t,i)=>{i.d(t,{im:()=>x,cW:()=>w,vX:()=>_});var s=i(9790),r=i(20102),l=i(84230),n=i(87223),o=i(59390),a=i(42143),u=i(4095),p=i(98587),c=i(77987),d=i(37898),h=i(20256),y=i(3456),m=i(86114),f=i(78724),b=i(20825);const v={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function g(e,t=v){if(!e)return{symbol:null};const{retainId:i=v.retainId,ignoreDrivers:l=v.ignoreDrivers,hasLabelingContext:n=v.hasLabelingContext,retainCIM:g=v.retainCIM}=t;let w=null;if((0,s.dU)(e)||e instanceof o.Z)w=e.clone();else if("cim"===e.type){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return{error:new r.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};w=g?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)w=p.Z.fromSimpleLineSymbol(e);else if(e instanceof c.Z)w=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof d.Z)w=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof h.Z)w=t.geometryType&&"mesh"===t.geometryType?y.Z.fromSimpleFillSymbol(e):m.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof f.Z))return{error:new r.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};w=n?b.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}return i&&w&&"cim"!==w.type&&(w.id=e.id),l&&(0,s.dU)(w)&&w.symbolLayers.forEach((e=>e.ignoreDrivers=!0)),{symbol:w}}function w(e,t,i,s){const r=S(e,{},{context:s,isLabelSymbol:!1});null!=r&&(t[i]=r)}function _(e,t,i,s){const r=S(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function V(e){return e instanceof n.Z||e instanceof o.Z}function S(e,t,i){if(null==e)return null;const{context:s,isLabelSymbol:n}=i,o=s?.origin,a=s?.messages;if("web-scene"===o&&!V(e)){const i=g(e,{retainCIM:!0,hasLabelingContext:n});return null!=i.symbol?i.symbol.write(t,s):(a?.push(new r.Z("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:s,error:i.error})),null)}return("web-map"===o||"portal-item"===o&&!(0,l.A2)(s?.layer))&&V(e)?(a?.push(new r.Z("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:s})),null):e.write(t,s)}function x(e,t){return(0,s.S9)(e,null,t)}},27883:(e,t,i)=>{i.d(t,{EJ:()=>y,KV:()=>d,n2:()=>c,v9:()=>h,wm:()=>b});var s=i(3172),r=i(20102),l=i(95330),n=i(17452),o=i(48522),a=i(41253),u=i(72245);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.Yd)(e),styleUrl:e}}catch(e){return(0,l.r9)(e),null}}(e.styleUrl,i):null!=e?.styleName?function(e,t,i){const s=null!=t.portal?t.portal:o.Z.getDefault();let l;const n=`${s.url} - ${s.user&&s.user.username} - ${e}`;return p[n]||(p[n]=function(e,t,i){return t.load(i).then((()=>{const s=new a.Z({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.Z("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.Z("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function h(e,t,i=["gltf"]){if("cimRef"===t)return e.cimRef;if(e.formatInfos&&!(0,u.K3)())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.Z)((0,n.Fv)(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"},61565:(e,t,i)=>{i.d(t,{Ck:()=>a,JT:()=>l,Nj:()=>p,c9:()=>c,g6:()=>n,vC:()=>o,x0:()=>u});var s=i(22021),r=i(75215);const l=["none","underline","line-through"],n=["normal","italic","oblique"],o=["normal","lighter","bold","bolder"],a={type:Number,cast:e=>{const t=(0,r.q9)(e);return 0===t?1:(0,s.uZ)(t,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},p={type:["baseline","top","middle","bottom"],nonNullable:!0},c=8}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7899],{38171:(e,t,i)=>{i.d(t,{Z:()=>f});var s,r=i(43697),l=i(66577),n=i(51773),o=i(9790),a=i(2368),u=i(96674),p=i(99001),c=i(5600),d=(i(75215),i(67676),i(80442),i(52011)),h=i(33955);function y(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 m=s=class extends((0,a.J)(u.wq)){constructor(...e){super(...e),this.isAggregate=!1,this.layer=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,p.D)(),configurable:!0})}normalizeCtorArgs(e,t,i,s){return e&&!e.declaredClass?e:{geometry:e,symbol:t,attributes:i,popupTemplate:s}}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),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})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;for(const t of[this.sourceLayer,this.layer])if(t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.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:y(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,u.AK)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyGeometryChanged(){this._notifyLayer("geometry",this.geometry,this.geometry)}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)}};(0,r._)([(0,c.Cb)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const i in e){const s=(0,h.im)(e[i]);s&&(t[i]=s)}return 0!==Object.keys(t).length?t:null}}})],m.prototype,"aggregateGeometries",null),(0,r._)([(0,c.Cb)({value:null})],m.prototype,"attributes",null),(0,r._)([(0,c.Cb)({value:null,types:l.qM,json:{read:h.im}})],m.prototype,"geometry",null),(0,r._)([(0,c.Cb)({type:Boolean})],m.prototype,"isAggregate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"layer",void 0),(0,r._)([(0,c.Cb)({type:n.Z})],m.prototype,"popupTemplate",void 0),(0,r._)([(0,c.Cb)({clonable:"reference"})],m.prototype,"sourceLayer",void 0),(0,r._)([(0,c.Cb)({value:null,types:o.LB})],m.prototype,"symbol",null),(0,r._)([(0,c.Cb)({type:Boolean,value:!0})],m.prototype,"visible",null),m=s=(0,r._)([(0,d.j)("esri.Graphic")],m),(m||(m={})).generateUID=p.D;const f=m},74085:(e,t,i)=>{function s(e){}i.d(t,{Bg:()=>s}),i(80442)},16050:(e,t,i)=>{i.d(t,{Z:()=>z});var s,r=i(43697),l=i(9790),n=i(35454),o=i(22974),a=i(92604),u=i(5600),p=i(90578),c=i(36030),d=i(71715),h=i(52011),y=i(30556),m=i(75215),f=i(69165),b=i(5499),v=i(41733),g=i(32984),w=i(9833),_=i(66338),V=i(59266);const S="percent-of-total",x="field",C=new n.X({esriNormalizeByLog:"log",esriNormalizeByPercentOfTotal:S,esriNormalizeByField:x}),I=(0,m.se)(g.Z);let j=s=class extends((0,v.W)(b.Z)){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.Z;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.Z.getLogger(this).error(".field: field must be a string value"),null):(0,m.Zs)(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.Z.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.Z({minValue:e,maxValue:t,symbol:(0,l.se)(i)}):I((0,o.d9)(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.Z.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.LC)()});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.Z.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.LC)(),{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.d9)(this.classBreakInfos),isMaxInclusive:this.isMaxInclusive,normalizationField:this.normalizationField,normalizationTotal:this.normalizationTotal,normalizationType:this.normalizationType,visualVariables:(0,o.d9)(this.visualVariables),legendOptions:(0,o.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}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.io)(e,t,this.valueExpression)];(0,f.AB)(e,t,this.field),(0,f.AB)(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.Cb)(w.KK)],j.prototype,"backgroundFillSymbol",void 0),(0,r._)([(0,u.Cb)({type:[g.Z]})],j.prototype,"classBreakInfos",void 0),(0,r._)([(0,d.r)("classBreakInfos")],j.prototype,"readClassBreakInfos",null),(0,r._)([(0,y.c)("classBreakInfos")],j.prototype,"writeClassBreakInfos",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"defaultLabel",void 0),(0,r._)([(0,u.Cb)(w.Gn)],j.prototype,"defaultSymbol",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"field",void 0),(0,r._)([(0,p.p)("field")],j.prototype,"castField",null),(0,r._)([(0,u.Cb)({type:Boolean})],j.prototype,"isMaxInclusive",void 0),(0,r._)([(0,u.Cb)({type:_.I,json:{write:!0}})],j.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:Number,readOnly:!0,value:null,json:{read:!1,write:{overridePolicy(){return 0!==this.classBreakInfos.length&&this._areClassBreaksConsecutive()?{enabled:!0}:{enabled:!1}}}}})],j.prototype,"minValue",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"normalizationField",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:e=>(0,m.q9)(e),json:{write:!0}})],j.prototype,"normalizationTotal",void 0),(0,r._)([(0,u.Cb)({type:C.apiValues,value:null,json:{type:C.jsonValues,read:C.read,write:C.write}})],j.prototype,"normalizationType",null),(0,r._)([(0,c.J)({classBreaks:"class-breaks"})],j.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpression",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],j.prototype,"valueExpressionTitle",void 0),j=s=(0,r._)([(0,h.j)("esri.renderers.ClassBreaksRenderer")],j);const z=j},5499:(e,t,i)=>{i.d(t,{Z:()=>c});var s=i(43697),r=i(35454),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(69237);const u=new r.X({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.wq{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.Cb)({type:a.Z,json:{write:!0}})],p.prototype,"authoringInfo",void 0),(0,s._)([(0,n.Cb)({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.j)("esri.renderers.Renderer")],p);const c=p},81571:(e,t,i)=>{i.d(t,{Z:()=>G});var s=i(43697),r=i(9790),l=i(20102),n=i(22974),o=i(92604),a=i(78286),u=i(17445),p=i(5600),c=i(90578),d=i(36030),h=i(71715),y=i(52011),m=i(30556),f=i(22862),b=i(75215),v=i(69165),g=i(48522),w=i(5499),_=i(41733),V=i(9833),S=i(66338),x=i(2368),C=i(96674),I=i(67676);i(80442);let j=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.value=null,this.value2=null,this.value3=null}};(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value",void 0),(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value2",void 0),(0,s._)([(0,p.Cb)(V.GY)],j.prototype,"value3",void 0),j=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValue")],j);const z=j;let q=class extends((0,x.J)(C.wq)){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 z({value:e}))):"object"===t?e[0]instanceof z?e:e.map((e=>new z(e))):null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"description",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],q.prototype,"label",void 0),(0,s._)([(0,p.Cb)(V.Gn)],q.prototype,"symbol",void 0),(0,s._)([(0,p.Cb)({type:[z],json:{type:[[String]],read:{reader:e=>e?e.map((e=>new z({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(I.pC).map((e=>e.toString()));i.push(e)}t.values=i}}}})],q.prototype,"values",void 0),(0,s._)([(0,c.p)("values")],q.prototype,"castValues",null),q=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueClass")],q);const F=q;let E=class extends((0,x.J)(C.wq)){constructor(e){super(e),this.heading=null,this.classes=null}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],E.prototype,"heading",void 0),(0,s._)([(0,p.Cb)({type:[F],json:{write:!0}})],E.prototype,"classes",void 0),E=(0,s._)([(0,y.j)("esri.renderers.support.UniqueValueGroup")],E);const T=E;var k,Z=i(44262),O=i(59266),D=i(25929),U=i(27883),N=i(59390);const L="esri.renderers.UniqueValueRenderer",B=o.Z.getLogger(L),M="uvInfos-watcher",R="uvGroups-watcher",A=(0,b.se)(Z.Z);let $=k=class extends((0,_.W)(w.Z)){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.Hg)(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.Zs)(e)}writeField(e,t,i,s){"string"==typeof e?t[i]=e:s?.messages?s.messages.push(new l.Z("property:unsupported","UniqueValueRenderer.field set to a function cannot be written to JSON")):B.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.Z.getDefault()}readStyleOrigin(e,t,i){if(t.styleName)return Object.freeze({styleName:t.styleName});if(t.styleUrl){const e=(0,D.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,D.t)(e.styleUrl,s))}set uniqueValueGroups(e){this.styleOrigin?B.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?B.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 B.error("#addUniqueValueInfo()","Cannot modify unique value infos of a UniqueValueRenderer created from a web style");let i;i="object"==typeof e?A(e):new Z.Z({value:e,symbol:(0,r.se)(t)}),this.uniqueValueInfos?.push(i),this._valueInfoMap[i.value]=i,this._updateGroupsFromInfos(),this._isInfosSource=!0,this._watchUniqueValueInfos()}removeUniqueValueInfo(e){if(this.styleOrigin)return void B.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,O.LC)()}),this._getUniqueValueInfo(e,i)}getSymbol(e,t){if(this.valueExpression&&null==t?.arcade)return void B.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,O.LC)(),{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 k({field:this.field,field2:this.field2,field3:this.field3,defaultLabel:this.defaultLabel,defaultSymbol:(0,n.d9)(this.defaultSymbol),orderByClassesEnabled:this.orderByClassesEnabled,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle,fieldDelimiter:this.fieldDelimiter,visualVariables:(0,n.d9)(this.visualVariables),legendOptions:(0,n.d9)(this.legendOptions),authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),backgroundFillSymbol:(0,n.d9)(this.backgroundFillSymbol)});this._isDefaultSymbolDerived&&(e._isDefaultSymbolDerived=!0),e._set("portal",this.portal);const t=(0,n.d9)(this.uniqueValueInfos),i=(0,n.d9)(this.uniqueValueGroups);return this.styleOrigin&&(e._set("styleOrigin",Object.freeze((0,n.d9)(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.io)(e,t,this.valueExpression)];(0,v.AB)(e,t,this.field),(0,v.AB)(e,t,this.field2),(0,v.AB)(e,t,this.field3),await Promise.all(i)}populateFromStyle(){return(0,U.n2)(this.styleOrigin,{portal:this.portal}).then((e=>{const t=[];return this._valueInfoMap={},e&&e.data&&Array.isArray(e.data.items)&&e.data.items.forEach((i=>{const s=new N.Z({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 Z.Z({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(M);const{uniqueValueInfos:e}=this;if(e){const t=[];for(const i of e)t.push((0,u.YP)((()=>({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,M)}}_watchUniqueValueGroups(){this.removeHandles(R);const{uniqueValueGroups:e}=this;if(e){const t=[];for(const i of e){t.push((0,u.YP)((()=>({classes:i.classes})),((e,t)=>{e!==t&&(this._updateInfosFromGroups(),this._isInfosSource=!1)}),{sync:!0}));for(const e of i.classes??[])t.push((0,u.YP)((()=>({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,d=[a];i&&d.push(p),s&&d.push(c);const h=o?d.join(r||""):d[0];e.push(new Z.Z({symbol:t,label:n,value:h,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 F({symbol:t,label:i,description:l,values:[new z({value:o,value2:a,value3:u})]})})),a=[new T({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("function"!=typeof t&&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"function"==typeof t?s=t(e):t&&(s=i[t]);return this._valueInfoMap[s+""]}static fromPortalStyle(e,t){const i=new k(t?.properties);i._set("styleOrigin",Object.freeze({styleName:e})),i._set("portal",t?.portal||g.Z.getDefault());const s=i.populateFromStyle();return s.catch((t=>{B.error(`#fromPortalStyle('${e}'[, ...])`,"Failed to create unique value renderer from style name",t)})),s}static fromStyleUrl(e,t){const i=new k(t?.properties);i._set("styleOrigin",Object.freeze({styleUrl:e}));const s=i.populateFromStyle();return s.catch((t=>{B.error(`#fromStyleUrl('${e}'[, ...])`,"Failed to create unique value renderer from style URL",t)})),s}};(0,s._)([(0,p.Cb)({readOnly:!0})],$.prototype,"_cache",null),(0,s._)([(0,d.J)({uniqueValue:"unique-value"})],$.prototype,"type",void 0),(0,s._)([(0,p.Cb)(V.KK)],$.prototype,"backgroundFillSymbol",void 0),(0,s._)([(0,p.Cb)({value:null,json:{type:String,read:{source:"field1"},write:{target:"field1"}}})],$.prototype,"field",null),(0,s._)([(0,c.p)("field")],$.prototype,"castField",null),(0,s._)([(0,m.c)("field")],$.prototype,"writeField",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],$.prototype,"field2",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],$.prototype,"field3",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{name:"drawInClassOrder",default:!1,write:!0,origins:{"web-scene":{write:!1}}}})],$.prototype,"orderByClassesEnabled",void 0),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],$.prototype,"valueExpression",null),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],$.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,p.Cb)({type:S.I,json:{write:!0}})],$.prototype,"legendOptions",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],$.prototype,"defaultLabel",void 0),(0,s._)([(0,p.Cb)((0,a.RH)({...V.Gn},{json:{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}},origins:{"web-scene":{write:{overridePolicy(){return{enabled:!this._isDefaultSymbolDerived}}}}}}}))],$.prototype,"defaultSymbol",null),(0,s._)([(0,p.Cb)({type:String,value:null,json:{write:!0}})],$.prototype,"fieldDelimiter",null),(0,s._)([(0,p.Cb)({type:g.Z,readOnly:!0})],$.prototype,"portal",void 0),(0,s._)([(0,h.r)("portal",["styleName"])],$.prototype,"readPortal",null),(0,s._)([(0,p.Cb)({readOnly:!0,json:{write:{enabled:!1,overridePolicy:()=>({enabled:!0})}}})],$.prototype,"styleOrigin",void 0),(0,s._)([(0,h.r)("styleOrigin",["styleName","styleUrl"])],$.prototype,"readStyleOrigin",null),(0,s._)([(0,m.c)("styleOrigin",{styleName:{type:String},styleUrl:{type:String}})],$.prototype,"writeStyleOrigin",null),(0,s._)([(0,p.Cb)({type:[T],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,d,h]=o?u?.toString()?.split(r||"")||[]:[u],y=[];return(t||n)&&y.push(c),i&&y.push(d),s&&y.push(h),{symbol:l,label:a,values:[y],description:p}}))}]}(t)).map((e=>T.fromJSON(e,i)))},write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],$.prototype,"uniqueValueGroups",null),(0,s._)([(0,p.Cb)({type:[Z.Z],json:{read:!1,write:{overridePolicy(){return this.styleOrigin?{enabled:!1}:{enabled:!0}}}}})],$.prototype,"uniqueValueInfos",null),$=k=(0,s._)([(0,y.j)(L)],$);const G=$},41733:(e,t,i)=>{i.d(t,{W:()=>D});var s=i(43697),r=i(5600),l=i(75215),n=(i(67676),i(80442),i(71715)),o=i(52011),a=i(30556),u=i(69165);const p=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/;var c,d=i(77997),h=i(21849);let y=c=class extends d.Z{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 c({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.Cb)({readOnly:!0})],y.prototype,"cache",null),(0,s._)([(0,r.Cb)({type:["color"],json:{type:["colorInfo"]}})],y.prototype,"type",void 0),(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,s._)([(0,r.Cb)({type:[h.Z],json:{write:!0}})],y.prototype,"stops",null),y=c=(0,s._)([(0,o.j)("esri.renderers.visualVariables.ColorVariable")],y);const m=y;var f,b=i(96674),v=i(65242);let g=f=class extends b.wq{constructor(e){super(e),this.label=null,this.opacity=null,this.value=null}readOpacity(e,t){return(0,v.b)(t.transparency)}writeOpacity(e,t,i){t[i]=(0,v.a)(e)}clone(){return new f({label:this.label,opacity:this.opacity,value:this.value})}};(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],g.prototype,"label",void 0),(0,s._)([(0,r.Cb)({type:Number,json:{type:l.z8,write:{target:"transparency"}}})],g.prototype,"opacity",void 0),(0,s._)([(0,n.r)("opacity",["transparency"])],g.prototype,"readOpacity",null),(0,s._)([(0,a.c)("opacity")],g.prototype,"writeOpacity",null),(0,s._)([(0,r.Cb)({type:Number,json:{write:!0}})],g.prototype,"value",void 0),g=f=(0,s._)([(0,o.j)("esri.renderers.visualVariables.support.OpacityStop")],g);const w=g;var _;let V=_=class extends d.Z{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 _({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.Cb)({readOnly:!0})],V.prototype,"cache",null),(0,s._)([(0,r.Cb)({type:["opacity"],json:{type:["transparencyInfo"]}})],V.prototype,"type",void 0),(0,s._)([(0,r.Cb)({type:String,json:{write:!0}})],V.prototype,"normalizationField",void 0),(0,s._)([(0,r.Cb)({type:[w],json:{write:!0}})],V.prototype,"stops",null),V=_=(0,s._)([(0,o.j)("esri.renderers.visualVariables.OpacityVariable")],V);const S=V;var x=i(89513),C=i(23847),I=i(92036),j=i(35454),z=i(92604),q=i(20941);const F={color:m,size:C.Z,opacity:S,rotation:x.Z},E=new j.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"}),T=/^\[([^\]]+)\]$/i;let k=class extends I.Z{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,l=s?.match(T),n=l?.[1];if(n&&(e||(e=[]),e.push({type:"rotationInfo",rotationType:r,field:n})),e)return e.map((e=>{const t=E.read(e.type),s=F[t];s||(z.Z.getLogger(this).warn(`Unknown variable type: ${t}`),i?.messages&&i.messages.push(new q.Z("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.Cb)()],k.prototype,"visualVariables",null),k=(0,s._)([(0,o.j)("esri.renderers.visualVariables.VisualVariableFactory")],k);const Z=k,O={base:d.Z,key:"type",typeMap:{opacity:S,color:m,rotation:x.Z,size:C.Z}},D=e=>{let t=class extends e{constructor(){super(...arguments),this._vvFactory=new Z}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.AB)(e,t,s.field),s.normalizationField&&(0,u.AB)(e,t,s.normalizationField),s.valueExpression&&(U(s.valueExpression,e,t)||await(0,u.io)(e,t,s.valueExpression)))}};return(0,s._)([(0,r.Cb)({types:[O],value:null,json:{write:!0}})],t.prototype,"visualVariables",null),(0,s._)([(0,n.r)("visualVariables",["visualVariables","rotationType","rotationExpression"])],t.prototype,"readVisualVariables",null),(0,s._)([(0,a.c)("visualVariables")],t.prototype,"writeVisualVariables",null),t=(0,s._)([(0,o.j)("esri.renderers.mixins.VisualVariablesMixin")],t),t};function U(e,t,i){const s=(r=e,r.match(p)?.[1]?.replace(/\\'/g,"'")??null);var r;return null!=s&&((0,u.AB)(t,i,s),!0)}},69237:(e,t,i)=>{i.d(t,{Z:()=>T});var s,r=i(43697),l=i(35454),n=i(96674),o=i(22974),a=i(5600),u=i(75215),p=i(71715),c=i(52011);i(67676),i(80442);let d=s=class extends n.wq{constructor(e){super(e),this.minValue=0,this.maxValue=0}clone(){return new s({minValue:this.minValue,maxValue:this.maxValue})}};var h;(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"minValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],d.prototype,"maxValue",void 0),d=s=(0,r._)([(0,c.j)("esri.renderer.support.AuthoringInfoClassBreakInfo")],d);let y=h=class extends n.wq{constructor(e){super(e),this.field="",this.normalizationField="",this.label="",this.classBreakInfos=[]}clone(){return new h({field:this.field,normalizationField:this.normalizationField,label:this.label,classBreakInfos:(0,o.d9)(this.classBreakInfos)})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizationField",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"label",void 0),(0,r._)([(0,a.Cb)({type:[d],json:{write:!0}})],y.prototype,"classBreakInfos",void 0),y=h=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfoFieldInfo")],y);var m,f=i(90578);const b=new l.X({percentTotal:"percent-of-total",ratio:"ratio",percent:"percent"}),v=new l.X({sizeInfo:"size",colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation"}),g={key:e=>"number"==typeof e?"number":"string",typeMap:{number:Number,string:String},base:null},w=["high-to-low","above-and-below","centered-on","extremes"],_=[...new Set(["high-to-low","above-and-below","centered-on","extremes","90-10","above","below","high-to-low","above-and-below","90-10","above","below"])],V=["seconds","minutes","hours","days","months","years"];let S=m=class extends n.wq{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}castStartTime(e){return"string"==typeof e||"number"==typeof e?e:null}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 m({endTime:this.endTime,field:this.field,maxSliderValue:this.maxSliderValue,minSliderValue:this.minSliderValue,startTime:this.startTime,style:this.style,theme:this.theme,type:this.type,units:this.units})}};(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"endTime",void 0),(0,r._)([(0,f.p)("endTime")],S.prototype,"castEndTime",null),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"field",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0}})],S.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({types:g,json:{write:!0}})],S.prototype,"startTime",void 0),(0,r._)([(0,f.p)("startTime")],S.prototype,"castStartTime",null),(0,r._)([(0,a.Cb)({type:b.apiValues,value:null,json:{type:b.jsonValues,read:b.read,write:b.write}})],S.prototype,"style",null),(0,r._)([(0,a.Cb)({type:_,value:null,json:{type:_,origins:{"web-scene":{type:w,write:{writer:(e,t)=>{w.includes(e)&&(t.theme=e)}}}},write:!0}})],S.prototype,"theme",null),(0,r._)([(0,a.Cb)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],S.prototype,"type",void 0),(0,r._)([(0,a.Cb)({type:V,json:{type:V,write:!0}})],S.prototype,"units",void 0),S=m=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfoVisualVariable")],S);const x=S;var C,I=i(94593);const j=new l.X({esriClassifyDefinedInterval:"defined-interval",esriClassifyEqualInterval:"equal-interval",esriClassifyManual:"manual",esriClassifyNaturalBreaks:"natural-breaks",esriClassifyQuantile:"quantile",esriClassifyStandardDeviation:"standard-deviation"}),z=new l.X({pieChart:"pie-chart",classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density",flow:"flow"}),q=new l.X({classedSize:"class-breaks-size",classedColor:"class-breaks-color",univariateColorSize:"univariate-color-size",relationship:"relationship",predominance:"predominance",dotDensity:"dot-density"}),F=["inches","feet","yards","miles","nautical-miles","millimeters","centimeters","decimeters","meters","kilometers","decimal-degrees"];let E=C=class extends n.wq{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,I.i)(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 C({classificationMethod:this.classificationMethod,colorRamp:(0,o.d9)(this.colorRamp),fadeRatio:(0,o.d9)(this.fadeRatio),fields:this.fields?.slice(0),field1:(0,o.d9)(this.field1),field2:(0,o.d9)(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.Cb)({type:j.apiValues,value:null,json:{type:j.jsonValues,read:j.read,write:j.write,origins:{"web-document":{default:"manual",type:j.jsonValues,read:j.read,write:j.write}}}})],E.prototype,"classificationMethod",null),(0,r._)([(0,a.Cb)({types:I.V,json:{write:!0}})],E.prototype,"colorRamp",void 0),(0,r._)([(0,p.r)("colorRamp")],E.prototype,"readColorRamp",null),(0,r._)([(0,a.Cb)({json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"fadeRatio",void 0),(0,r._)([(0,a.Cb)({type:[String],value:null,json:{write:!0}})],E.prototype,"fields",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field1",null),(0,r._)([(0,a.Cb)({type:y,value:null,json:{write:!0}})],E.prototype,"field2",null),(0,r._)([(0,a.Cb)({type:["flow-line","wave-front"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"flowTheme",null),(0,r._)([(0,a.Cb)({type:["HH","HL","LH","LL"],value:null,json:{write:!0}})],E.prototype,"focus",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],E.prototype,"isAutoGenerated",void 0),(0,r._)([(0,a.Cb)({type:Number,value:null,json:{type:u.z8,write:!0}})],E.prototype,"numClasses",null),(0,r._)([(0,a.Cb)({type:F,json:{type:F,read:!1,write:!1,origins:{"web-scene":{read:!0,write:!0}}}})],E.prototype,"lengthUnit",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"maxSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"minSliderValue",void 0),(0,r._)([(0,a.Cb)({type:Object,value:null,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],E.prototype,"statistics",null),(0,r._)([(0,a.Cb)({type:[.25,.33,.5,1],value:null,json:{type:[.25,.33,.5,1],write:!0}})],E.prototype,"standardDeviationInterval",null),(0,r._)([(0,a.Cb)({type:z.apiValues,value:null,json:{type:z.jsonValues,read:z.read,write:z.write,origins:{"web-scene":{type:q.jsonValues,write:{writer:q.write,overridePolicy:e=>({enabled:"flow"!==e})}}}}})],E.prototype,"type",null),(0,r._)([(0,a.Cb)({type:[x],json:{write:!0}})],E.prototype,"visualVariables",void 0),(0,r._)([(0,a.Cb)({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}}}})],E.prototype,"univariateSymbolStyle",null),(0,r._)([(0,a.Cb)({type:["high-to-low","above-and-below","above","below","90-10"],value:null,json:{write:!0,origins:{"web-scene":{write:!1}}}})],E.prototype,"univariateTheme",null),E=C=(0,r._)([(0,c.j)("esri.renderers.support.AuthoringInfo")],E);const T=E},32984:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends l.wq{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?this.symbol.clone():null})}getMeshHash(){const e=JSON.stringify(this.symbol);return`${this.minValue}.${this.maxValue}.${e}`}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{read:{source:"classMinValue"},write:{target:"classMinValue"}}})],u.prototype,"minValue",void 0),(0,r._)([(0,n.Cb)({type:Number,json:{read:{source:"classMaxValue"},write:{target:"classMaxValue"}}})],u.prototype,"maxValue",void 0),(0,r._)([(0,n.Cb)(a.EW)],u.prototype,"symbol",void 0),u=s=(0,r._)([(0,o.j)("esri.renderers.support.ClassBreakInfo")],u);const p=u},66338:(e,t,i)=>{i.d(t,{I:()=>a});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011));let a=s=class extends l.wq{constructor(){super(...arguments),this.title=null}clone(){return new s({title:this.title})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),a=s=(0,r._)([(0,o.j)("esri.renderers.support.LegendOptions")],a)},44262:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(9833);let u=s=class extends l.wq{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.Cb)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,n.Cb)(a.EW)],u.prototype,"symbol",void 0),(0,r._)([(0,n.Cb)(a.GY)],u.prototype,"value",void 0),u=s=(0,r._)([(0,o.j)("esri.renderers.support.UniqueValueInfo")],u);const p=u},9833:(e,t,i)=>{i.d(t,{EW:()=>p,GY:()=>d,Gn:()=>u,KK:()=>c});var s=i(9790),r=i(78286),l=i(63213),n=i(21878),o=i(89164),a=i(86114);const u={types:s.QT,json:{write:{writer:n.cW},origins:{"web-scene":{types:s.f_,write:{writer:n.cW},read:{reader:(0,l.d)({types:s.f_})}}}}},p=(0,r.RH)({json:{origins:{"web-scene":{write:{isRequired:!0}}}}},u),c={types:{base:o.Z,key:"type",typeMap:{"simple-fill":s.LB.typeMap["simple-fill"],"picture-fill":s.LB.typeMap["picture-fill"],"polygon-3d":s.LB.typeMap["polygon-3d"]}},json:{write:{writer:n.cW},origins:{"web-scene":{type:a.Z,write:{writer:n.cW}}}}},d={cast:e=>null==e||"string"==typeof e||"number"==typeof e?e:`${e}`,json:{type:String,write:{writer:(e,t)=>{t.value=e?.toString()}}}}},89513:(e,t,i)=>{i.d(t,{Z:()=>c});var s,r=i(43697),l=i(20102),n=i(5600),o=(i(75215),i(67676),i(80442),i(52011)),a=i(30556),u=i(77997);let p=s=class extends u.Z{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.Z("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.Cb)({readOnly:!0})],p.prototype,"cache",null),(0,r._)([(0,n.Cb)({type:["heading","tilt","roll"],json:{origins:{"web-scene":{default:"heading",write:!0}}}})],p.prototype,"axis",void 0),(0,r._)([(0,n.Cb)({type:["rotation"],json:{type:["rotationInfo"]}})],p.prototype,"type",void 0),(0,r._)([(0,n.Cb)({type:["geographic","arithmetic"],json:{write:!0,origins:{"web-document":{write:!0,default:"geographic"}}}})],p.prototype,"rotationType",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],p.prototype,"valueExpressionTitle",void 0),(0,r._)([(0,a.c)("web-scene","valueExpressionTitle")],p.prototype,"writeValueExpressionTitleWebScene",null),p=s=(0,r._)([(0,o.j)("esri.renderers.visualVariables.RotationVariable")],p);const c=p},23847:(e,t,i)=>{i.d(t,{Z:()=>j});var s,r=i(43697),l=i(20102),n=i(35454),o=i(92604),a=i(62357),u=i(5600),p=i(90578),c=i(71715),d=i(52011),h=i(30556),y=i(77997),m=i(30856),f=(i(75215),i(67676),i(80442),i(58439));let b=s=class extends f.Z{constructor(){super(...arguments),this.customValues=null}clone(){return new s({title:this.title,showLegend:this.showLegend,customValues:this.customValues?.slice(0)})}};(0,r._)([(0,u.Cb)({type:[Number],json:{write:!0}})],b.prototype,"customValues",void 0),b=s=(0,r._)([(0,d.j)("esri.renderers.visualVariables.support.SizeVariableLegendOptions")],b);const v=b;var g,w=i(51706),_=i(28101);const V=new n.X({width:"width",depth:"depth",height:"height",widthAndDepth:"width-and-depth",all:"all"}),S=new n.X({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?(0,a.t_)(e):"size"===e.type?(0,w.iY)(e)?e:(delete(e={...e}).type,new I(e)):void 0}function C(e,t,i){if("object"!=typeof e)return e;const s=new I;return s.read(e,i),s}let I=g=class extends y.Z{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&&_.B3.test(this.valueExpression)}}set expression(e){o.Z.getLogger(this).warn("'expression' is deprecated since version 4.2. Use 'valueExpression' instead. The only supported expression is 'view.scale'."),"view.scale"===e?(this.valueExpression="$view.scale",this._set("expression",e)):this._set("expression",null)}set index(e){(0,w.iY)(this.maxSize)&&(this.maxSize.index=`visualVariables[${e}].maxSize`),(0,w.iY)(this.minSize)&&(this.minSize.index=`visualVariables[${e}].minSize`),this._set("index",e)}get inputValueType(){return(0,w.PS)(this)}set maxDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set maxDataValue when stops is not null."),e=null),this._set("maxDataValue",e)}set maxSize(e){e&&this.stops&&(o.Z.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 C(e,0,i)}set minDataValue(e){e&&this.stops&&(o.Z.getLogger(this).warn("cannot set minDataValue when stops is not null."),e=null),this._set("minDataValue",e)}set minSize(e){e&&this.stops&&(o.Z.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 C(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.Z.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.QW)(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.Z("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.iY)(this.maxSize)?this.maxSize.clone():this.maxSize,minDataValue:this.minDataValue,minSize:(0,w.iY)(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.hL.ClampedLinear){const{minSize:e,maxSize:t}=this;return this.minSize=t,this.maxSize=e,this}if(this.transformationType===w.hL.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,u.Cb)({readOnly:!0})],I.prototype,"cache",null),(0,r._)([(0,u.Cb)({type:V.apiValues,json:{type:V.jsonValues,origins:{"web-map":{read:!1}},read:V.read,write:V.write}})],I.prototype,"axis",void 0),(0,r._)([(0,u.Cb)({type:String,value:null,json:{read:!1}})],I.prototype,"expression",null),(0,r._)([(0,u.Cb)()],I.prototype,"index",null),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"inputValueType",null),(0,r._)([(0,u.Cb)({type:v,json:{write:!0}})],I.prototype,"legendOptions",void 0),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"maxSize",null),(0,r._)([(0,p.p)("maxSize")],I.prototype,"castMaxSize",null),(0,r._)([(0,c.r)("maxSize")],I.prototype,"readMaxSize",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minDataValue",null),(0,r._)([(0,u.Cb)({type:Number,value:null,json:{write:!0}})],I.prototype,"minSize",null),(0,r._)([(0,p.p)("minSize")],I.prototype,"castMinSize",null),(0,r._)([(0,c.r)("minSize")],I.prototype,"readMinSize",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"normalizationField",void 0),(0,r._)([(0,u.Cb)({readOnly:!0})],I.prototype,"arcadeRequired",null),(0,r._)([(0,u.Cb)({type:String})],I.prototype,"scaleBy",void 0),(0,r._)([(0,u.Cb)({type:[m.Z],value:null,json:{write:!0}})],I.prototype,"stops",null),(0,r._)([(0,u.Cb)({type:["outline"],json:{write:!0}})],I.prototype,"target",void 0),(0,r._)([(0,u.Cb)({type:String,readOnly:!0})],I.prototype,"transformationType",null),(0,r._)([(0,u.Cb)({type:["size"],json:{type:["sizeInfo"]}})],I.prototype,"type",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0,origins:{"web-map":{read:!1}}}})],I.prototype,"useSymbolValue",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],I.prototype,"valueExpression",void 0),(0,r._)([(0,c.r)("valueExpression",["valueExpression","expression"])],I.prototype,"readValueExpression",null),(0,r._)([(0,h.c)("web-scene","valueExpression")],I.prototype,"writeValueExpressionWebScene",null),(0,r._)([(0,u.Cb)({type:["radius","diameter","area","width","distance"],json:{write:!0}})],I.prototype,"valueRepresentation",void 0),(0,r._)([(0,u.Cb)({type:S.apiValues,json:{write:S.write,origins:{"web-map":{read:!1},"web-scene":{write:!0},"portal-item":{write:!0}}}})],I.prototype,"valueUnit",void 0),(0,r._)([(0,c.r)("valueUnit")],I.prototype,"readValueUnit",null),I=g=(0,r._)([(0,d.j)("esri.renderers.visualVariables.SizeVariable")],I);const j=I},77997:(e,t,i)=>{i.d(t,{Z:()=>y});var s=i(43697),r=i(35454),l=i(96674),n=i(92604),o=i(5600),a=i(90578),u=i(52011),p=i(75215),c=i(58439);const d=new r.X({colorInfo:"color",transparencyInfo:"opacity",rotationInfo:"rotation",sizeInfo:"size"});let h=class extends l.wq{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.Z.getLogger(this).error(".field: field must be a string value"),null):(0,p.Zs)(e)}get arcadeRequired(){return!!this.valueExpression}clone(){}getAttributeHash(){return`${this.type}-${this.field}-${this.valueExpression}`}};(0,s._)([(0,o.Cb)()],h.prototype,"index",void 0),(0,s._)([(0,o.Cb)({type:d.apiValues,readOnly:!0,json:{read:d.read,write:d.write}})],h.prototype,"type",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"field",void 0),(0,s._)([(0,a.p)("field")],h.prototype,"castField",null),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpression",void 0),(0,s._)([(0,o.Cb)({type:String,json:{write:!0}})],h.prototype,"valueExpressionTitle",void 0),(0,s._)([(0,o.Cb)({readOnly:!0})],h.prototype,"arcadeRequired",null),(0,s._)([(0,o.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"legendOptions",void 0),h=(0,s._)([(0,u.j)("esri.renderers.visualVariables.VisualVariable")],h);const y=h},21849:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),l=i(22303),n=i(96674),o=i(5600),a=i(75215),u=(i(67676),i(80442),i(52011)),p=i(30556);let c=s=class extends n.wq{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.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],c.prototype,"color",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:{writerEnsuresNonNull:!0}}})],c.prototype,"value",void 0),(0,r._)([(0,p.c)("value")],c.prototype,"writeValue",null),c=s=(0,r._)([(0,u.j)("esri.renderers.visualVariables.support.ColorStop")],c);const d=c},30856:(e,t,i)=>{i.d(t,{Z:()=>p});var s,r=i(43697),l=i(96674),n=i(62357),o=i(5600),a=(i(75215),i(67676),i(80442),i(52011));let u=s=class extends l.wq{constructor(e){super(e),this.label=null,this.size=null,this.value=null}clone(){return new s({label:this.label,size:this.size,value:this.value})}};(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,o.Cb)({type:Number,cast:n.t_,json:{write:!0}})],u.prototype,"size",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:!0}})],u.prototype,"value",void 0),u=s=(0,r._)([(0,a.j)("esri.renderers.visualVariables.support.SizeStop")],u);const p=u},58439:(e,t,i)=>{i.d(t,{Z:()=>u});var s,r=i(43697),l=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),o=i(66338);let a=s=class extends o.I{constructor(){super(...arguments),this.showLegend=null}clone(){return new s({title:this.title,showLegend:this.showLegend})}};(0,r._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],a.prototype,"showLegend",void 0),a=s=(0,r._)([(0,n.j)("esri.renderers.visualVariables.support.VisualVariableLegendOptions")],a);const u=a},51706:(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,{PS:()=>o,QW:()=>a,RY:()=>s,hL:()=>r,iY:()=>l,qh:()=>n}),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={}))},28101:(e,t,i)=>{i.d(t,{B3:()=>p,PR:()=>m,cM:()=>c}),i(22303);var s=i(38171),r=i(74085),l=i(92604),n=i(99282),o=i(51706);const a=l.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),u=(new s.Z,Math.PI),p=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function c(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 a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.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,u=o?.attributes,p=s.field,{hasExpression:c}=s.cache;let d=s.cache.compiledFunc,h=0;if(!p&&!c)return h;if(c){if(null==i?.arcade)return void a.error("Use of arcade expressions requires an arcade context");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}h=t.executeFunction(d,l)}else u&&(h=u[p]||0);return h="number"!=typeof h||isNaN(h)?null:l+n*h,h}function d(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 a.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const r=function(e,t,i,s,r){switch(t.transformationType){case o.hL.Additive:return function(e,t,i,s){return e+((h(t.minSize,i,s)||t.minDataValue)??0)}(e,t,i,s);case o.hL.Constant:return function(e,t,i){const s=e.stops;let r=s?.length&&s[0].size;return null==r&&(r=e.minSize),h(r,t,i)}(t,i,s);case o.hL.ClampedLinear:return function(e,t,i,s){const r=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),l=h(t.minSize,i,s),n=h(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?u*(l/2)**2:l*l,i=t+r*((e?u*(n/2)**2:n*n)-t);return e?2*Math.sqrt(i/u):Math.sqrt(i)}return l+r*(n-l)}(e,t,i,s);case o.hL.Proportional:return function(e,t,i,s){const r=null!=s?s.shape:void 0,l=e/t.minDataValue,n=h(t.minSize,i,s),o=h(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,y(a,n,o)}(e,t,i,s);case o.hL.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 h(t.stops?.[l].size,i,s);{const e=h(t.stops?.[l].size,i,s);return e+(h(t.stops?.[n].size,i,s)-e)*o}}(e,t,i,s,r);case o.hL.RealWorldSize:return function(e,t,i,s){const r=(s?.resolution??1)*n.a[t.valueUnit],l=h(t.minSize,i,s),o=h(t.maxSize,i,s),{valueRepresentation:a}=t;let p=null;return p="area"===a?2*Math.sqrt(e/u)/r:"radius"===a||"distance"===a?2*e/r:e/r,y(p,l,o)}(e,t,i,s);case o.hL.Identity:return e;case o.hL.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:u}=e.cache;let p=e.cache.compiledFunc;if(u){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.RY.Expression:{if(null==i?.arcade)return void a.error("Use of arcade expressions requires an arcade context");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(!p){const t=s.createSyntaxTree(e.valueExpression);p=s.createFunction(t),e.cache.compiledFunc=p}n=s.executeFunction(p,o);break}case o.RY.Field:l&&(n=l[e.field]);break;case o.RY.Unknown:n=null}if(!(0,o.qh)(n))return null;if(s||!e.normalizationField)return n;const c=l?parseFloat(l[e.normalizationField]):null;return(0,o.qh)(c)&&0!==c?n/c:null}(s,t,i),s,t,i,s.cache.ipData);return null==r||isNaN(r)?0:r}function h(e,t,i){return null==e?null:(0,o.iY)(e)?d(e,t,i):(0,o.qh)(e)?e:null}function y(e,t,i){return(0,o.qh)(i)&&e>i?i:(0,o.qh)(t)&&e<t?t:e}function m(e,t,i){const s=["proportional","proportional","proportional"];for(const l of e){const e=l.useSymbolValue?"symbol-value":d(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.Bg)(l.axis)}}return s}},98046:(e,t,i)=>{i.d(t,{Z:()=>h});var s,r=i(43697),l=i(22303),n=i(22974),o=i(5600),a=i(75215),u=i(36030),p=i(52011),c=i(899);let d=s=class extends c.Z{constructor(e){super(e),this.algorithm=null,this.fromColor=null,this.toColor=null,this.type="algorithmic"}clone(){return new s({fromColor:(0,n.d9)(this.fromColor),toColor:(0,n.d9)(this.toColor),algorithm:this.algorithm})}};(0,r._)([(0,u.J)({esriCIELabAlgorithm:"cie-lab",esriHSVAlgorithm:"hsv",esriLabLChAlgorithm:"lab-lch"})],d.prototype,"algorithm",void 0),(0,r._)([(0,o.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],d.prototype,"fromColor",void 0),(0,r._)([(0,o.Cb)({type:l.Z,json:{type:[a.z8],write:!0}})],d.prototype,"toColor",void 0),(0,r._)([(0,o.Cb)({type:["algorithmic"]})],d.prototype,"type",void 0),d=s=(0,r._)([(0,p.j)("esri.rest.support.AlgorithmicColorRamp")],d);const h=d},899:(e,t,i)=>{i.d(t,{Z:()=>a});var s=i(43697),r=i(96674),l=i(5600),n=(i(75215),i(67676),i(80442),i(52011));let o=class extends r.wq{constructor(e){super(e),this.type=null}};(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1,write:!0}})],o.prototype,"type",void 0),o=(0,s._)([(0,n.j)("esri.rest.support.ColorRamp")],o);const a=o},1515:(e,t,i)=>{i.d(t,{Z:()=>c});var s,r=i(43697),l=i(22974),n=i(5600),o=(i(75215),i(52011)),a=i(98046),u=i(899);let p=s=class extends u.Z{constructor(e){super(e),this.colorRamps=null,this.type="multipart"}clone(){return new s({colorRamps:(0,l.d9)(this.colorRamps)})}};(0,r._)([(0,n.Cb)({type:[a.Z],json:{write:!0}})],p.prototype,"colorRamps",void 0),(0,r._)([(0,n.Cb)({type:["multipart"]})],p.prototype,"type",void 0),p=s=(0,r._)([(0,o.j)("esri.rest.support.MultipartColorRamp")],p);const c=p},94593:(e,t,i)=>{i.d(t,{V:()=>n,i:()=>o});var s=i(98046),r=i(899),l=i(1515);const n={key:"type",base:r.Z,typeMap:{algorithmic:s.Z,multipart:l.Z}};function o(e){return e?.type?"algorithmic"===e.type?s.Z.fromJSON(e):"multipart"===e.type?l.Z.fromJSON(e):null:null}},72245:(e,t,i)=>{i.d(t,{K3:()=>r,Rx:()=>l});var s=i(80442);const r=()=>!!(0,s.Z)("enable-feature:force-wosr"),l=()=>!!(0,s.Z)("enable-feature:SceneLayer-editing");((e="i3s-patching")=>{switch(s.Z.add("enable-i3s-patching",!1,!0,!0),s.Z.add("enable-feature:direct-3d-object-feature-layer-display",!1,!0,!0),s.Z.add("enable-feature:SceneLayer-editing",!0,!0,!0),e){case"feature-layer-view":s.Z.add("enable-feature:direct-3d-object-feature-layer-display",!0,!0,!0);break;case"i3s-patching":s.Z.add("enable-i3s-patching",!0,!0,!0)}})("i3s-patching")},31134:(e,t,i)=>{i.d(t,{Z:()=>d});var s,r=i(43697),l=i(96674),n=i(62357),o=i(5600),a=i(90578),u=(i(67676),i(80442),i(52011)),p=i(61565);let c=s=class extends l.wq{constructor(e){super(e),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(e){return(0,n.t_)(e)}clone(){return new s({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,r._)([(0,o.Cb)({type:p.JT,json:{default:"none",write:!0}})],c.prototype,"decoration",void 0),(0,r._)([(0,o.Cb)({type:String,json:{write:!0}})],c.prototype,"family",void 0),(0,r._)([(0,o.Cb)({type:Number,json:{write:{overridePolicy:(e,t,i)=>({enabled:!i||!i.textSymbol3D})}}})],c.prototype,"size",void 0),(0,r._)([(0,a.p)("size")],c.prototype,"castSize",null),(0,r._)([(0,o.Cb)({type:p.g6,json:{default:"normal",write:!0}})],c.prototype,"style",void 0),(0,r._)([(0,o.Cb)({type:p.vC,json:{default:"normal",write:!0}})],c.prototype,"weight",void 0),c=s=(0,r._)([(0,u.j)("esri.symbols.Font")],c);const d=c},21878:(e,t,i)=>{i.d(t,{im:()=>x,cW:()=>w,vX:()=>_});var s=i(9790),r=i(20102),l=i(84230),n=i(87223),o=i(59390),a=i(42143),u=i(4095),p=i(98587),c=i(77987),d=i(37898),h=i(20256),y=i(3456),m=i(86114),f=i(78724),b=i(20825);const v={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};function g(e,t=v){if(!e)return{symbol:null};const{retainId:i=v.retainId,ignoreDrivers:l=v.ignoreDrivers,hasLabelingContext:n=v.hasLabelingContext,retainCIM:g=v.retainCIM}=t;let w=null;if((0,s.dU)(e)||e instanceof o.Z)w=e.clone();else if("cim"===e.type){const t=e.data?.symbol?.type;if("CIMPointSymbol"!==t)return{error:new r.Z("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${t||"unknown"}' is unsupported in 3D`,{symbol:e})};w=g?e.clone():a.Z.fromCIMSymbol(e)}else if(e instanceof u.Z)w=p.Z.fromSimpleLineSymbol(e);else if(e instanceof c.Z)w=a.Z.fromSimpleMarkerSymbol(e);else if(e instanceof d.Z)w=a.Z.fromPictureMarkerSymbol(e);else if(e instanceof h.Z)w=t.geometryType&&"mesh"===t.geometryType?y.Z.fromSimpleFillSymbol(e):m.Z.fromSimpleFillSymbol(e);else{if(!(e instanceof f.Z))return{error:new r.Z("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};w=n?b.Z.fromTextSymbol(e):a.Z.fromTextSymbol(e)}return i&&w&&"cim"!==w.type&&(w.id=e.id),l&&(0,s.dU)(w)&&w.symbolLayers.forEach((e=>e.ignoreDrivers=!0)),{symbol:w}}function w(e,t,i,s){const r=S(e,{},{context:s,isLabelSymbol:!1});null!=r&&(t[i]=r)}function _(e,t,i,s){const r=S(e,{},{context:s,isLabelSymbol:!0});null!=r&&(t[i]=r)}function V(e){return e instanceof n.Z||e instanceof o.Z}function S(e,t,i){if(null==e)return null;const{context:s,isLabelSymbol:n}=i,o=s?.origin,a=s?.messages;if("web-scene"===o&&!V(e)){const i=g(e,{retainCIM:!0,hasLabelingContext:n});return null!=i.symbol?i.symbol.write(t,s):(a?.push(new r.Z("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:s,error:i.error})),null)}return("web-map"===o||"portal-item"===o&&!(0,l.A2)(s?.layer))&&V(e)?(a?.push(new r.Z("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:s})),null):e.write(t,s)}function x(e,t){return(0,s.S9)(e,null,t)}},27883:(e,t,i)=>{i.d(t,{EJ:()=>y,KV:()=>d,n2:()=>c,v9:()=>h,wm:()=>b});var s=i(3172),r=i(20102),l=i(95330),n=i(17452),o=i(48522),a=i(41253),u=i(72245);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.Yd)(e),styleUrl:e}}catch(e){return(0,l.r9)(e),null}}(e.styleUrl,i):null!=e?.styleName?function(e,t,i){const s=null!=t.portal?t.portal:o.Z.getDefault();let l;const n=`${s.url} - ${s.user&&s.user.username} - ${e}`;return p[n]||(p[n]=function(e,t,i){return t.load(i).then((()=>{const s=new a.Z({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.Z("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.Z("symbolstyleutils:style-url-and-name-missing","Either styleUrl or styleName is required to resolve a style"))}function d(e){return null===e||"CIMSymbolReference"===e.type?e:{type:"CIMSymbolReference",symbol:e}}function h(e,t,i=["gltf"]){if("cimRef"===t)return e.cimRef;if(e.formatInfos&&!(0,u.K3)())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.Z)((0,n.Fv)(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"},61565:(e,t,i)=>{i.d(t,{Ck:()=>a,JT:()=>l,Nj:()=>p,c9:()=>c,g6:()=>n,vC:()=>o,x0:()=>u});var s=i(22021),r=i(75215);const l=["none","underline","line-through"],n=["normal","italic","oblique"],o=["normal","lighter","bold","bolder"],a={type:Number,cast:e=>{const t=(0,r.q9)(e);return 0===t?1:(0,s.uZ)(t,.1,4)},nonNullable:!0},u={type:["left","right","center"],nonNullable:!0},p={type:["baseline","top","middle","bottom"],nonNullable:!0},c=8}}]);
|