{"version":3,"sources":["node_modules/@arcgis/core/renderers/support/AuthoringInfoClassBreakInfo.js","node_modules/@arcgis/core/renderers/support/AuthoringInfoFieldInfo.js","node_modules/@arcgis/core/renderers/support/AuthoringInfoSizeStop.js","node_modules/@arcgis/core/renderers/support/AuthoringInfoVisualVariable.js","node_modules/@arcgis/core/renderers/support/AuthoringInfo.js","node_modules/@arcgis/core/renderers/Renderer.js","node_modules/@arcgis/core/renderers/support/randomRotationExpression.js","node_modules/@arcgis/core/renderers/visualVariables/support/VisualVariableLegendOptions.js","node_modules/@arcgis/core/renderers/visualVariables/VisualVariable.js","node_modules/@arcgis/core/renderers/visualVariables/ColorVariable.js","node_modules/@arcgis/core/renderers/visualVariables/support/OpacityStop.js","node_modules/@arcgis/core/renderers/visualVariables/OpacityVariable.js","node_modules/@arcgis/core/renderers/visualVariables/RotationVariable.js","node_modules/@arcgis/core/renderers/visualVariables/support/castSizeVariable.js","node_modules/@arcgis/core/renderers/visualVariables/support/SizeVariableLegendOptions.js","node_modules/@arcgis/core/renderers/visualVariables/SizeVariable.js","node_modules/@arcgis/core/renderers/visualVariables/VisualVariableFactory.js","node_modules/@arcgis/core/renderers/mixins/VisualVariablesMixin.js","node_modules/@arcgis/core/renderers/support/commonProperties.js","node_modules/@arcgis/core/renderers/support/UniqueValue.js","node_modules/@arcgis/core/renderers/support/UniqueValueClass.js","node_modules/@arcgis/core/renderers/support/UniqueValueGroup.js","node_modules/@arcgis/core/renderers/support/UniqueValueInfo.js","node_modules/@arcgis/core/renderers/UniqueValueRenderer.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as r } from \"../../chunks/tslib.es6.js\";\nimport { JSONSupport as o } from \"../../core/JSONSupport.js\";\nimport { property as e } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as s } from \"../../core/accessorSupport/decorators/subclass.js\";\nvar t;\nlet p = t = class extends o {\n constructor(r) {\n super(r), this.minValue = 0, this.maxValue = 0;\n }\n clone() {\n return new t({\n minValue: this.minValue,\n maxValue: this.maxValue\n });\n }\n};\nr([e({\n type: Number,\n json: {\n write: !0\n }\n})], p.prototype, \"minValue\", void 0), r([e({\n type: Number,\n json: {\n write: !0\n }\n})], p.prototype, \"maxValue\", void 0), p = t = r([s(\"esri.renderers.support.AuthoringInfoClassBreakInfo\")], p);\nexport { p as AuthoringInfoClassBreakInfo };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as o } from \"../../chunks/tslib.es6.js\";\nimport { JSONSupport as r } from \"../../core/JSONSupport.js\";\nimport { clone as e } from \"../../core/lang.js\";\nimport { property as s } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport { subclass as t } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { AuthoringInfoClassBreakInfo as i } from \"./AuthoringInfoClassBreakInfo.js\";\nvar n;\nlet a = n = class extends r {\n constructor(o) {\n super(o), this.field = \"\", this.normalizationField = \"\", this.label = \"\", this.classBreakInfos = new Array();\n }\n clone() {\n return new n({\n field: this.field,\n normalizationField: this.normalizationField,\n label: this.label,\n classBreakInfos: e(this.classBreakInfos)\n });\n }\n};\no([s({\n type: String,\n json: {\n write: !0\n }\n})], a.prototype, \"field\", void 0), o([s({\n type: String,\n json: {\n write: !0\n }\n})], a.prototype, \"normalizationField\", void 0), o([s({\n type: String,\n json: {\n write: !0\n }\n})], a.prototype, \"label\", void 0), o([s({\n type: [i],\n json: {\n write: !0\n }\n})], a.prototype, \"classBreakInfos\", void 0), a = n = o([t(\"esri.renderers.support.AuthoringInfoFieldInfo\")], a);\nexport { a as AuthoringInfoFieldInfo };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as r } from \"../../chunks/tslib.es6.js\";\nimport { JSONSupport as e } from \"../../core/JSONSupport.js\";\nimport { property as o } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as s } from \"../../core/accessorSupport/decorators/subclass.js\";\nvar t;\nlet p = t = class extends e {\n constructor(r) {\n super(r), this.label = null, this.size = null, this.value = null;\n }\n clone() {\n return new t({\n label: this.label,\n value: this.value,\n size: this.size\n });\n }\n};\nr([o({\n type: String,\n json: {\n write: !0\n }\n})], p.prototype, \"label\", void 0), r([o({\n type: Number,\n json: {\n write: !0\n }\n})], p.prototype, \"size\", void 0), r([o({\n type: Number,\n json: {\n write: !0\n }\n})], p.prototype, \"value\", void 0), p = t = r([s(\"esri.renderers.support.AuthoringInfoSizeStop\")], p);\nconst i = p;\nexport { i as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport { JSONMap as t } from \"../../core/jsonMap.js\";\nimport { JSONSupport as r } from \"../../core/JSONSupport.js\";\nimport { clone as i } from \"../../core/lang.js\";\nimport { property as o } from \"../../core/accessorSupport/decorators/property.js\";\nimport { cast as s } from \"../../core/accessorSupport/decorators/cast.js\";\nimport { subclass as n } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport l from \"./AuthoringInfoSizeStop.js\";\nvar a;\nconst p = new t({\n percentTotal: \"percent-of-total\",\n ratio: \"ratio\",\n percent: \"percent\"\n }),\n u = new t({\n sizeInfo: \"size\",\n colorInfo: \"color\",\n transparencyInfo: \"opacity\",\n rotationInfo: \"rotation\"\n }),\n m = {\n key: e => \"number\" == typeof e ? \"number\" : \"string\",\n typeMap: {\n number: Number,\n string: String\n },\n base: null\n },\n c = [\"high-to-low\", \"above-and-below\", \"centered-on\", \"extremes\"],\n y = [...new Set([...[\"high-to-low\", \"above-and-below\", \"centered-on\", \"extremes\", \"above\", \"below\"], ...[\"high-to-low\", \"above-and-below\", \"above\", \"below\", \"reference-size\"]])],\n h = [\"seconds\", \"minutes\", \"hours\", \"days\", \"months\", \"years\"],\n S = [\"circle\", \"diamond\", \"hexagon-flat\", \"hexagon-pointy\", \"square\"];\nlet d = a = class extends r {\n constructor(e) {\n super(e), this.endTime = null, this.field = null, this.maxSliderValue = null, this.minSliderValue = null, this.startTime = null, this.type = null, this.units = null;\n }\n castEndTime(e) {\n return \"string\" == typeof e || \"number\" == typeof e ? e : null;\n }\n get normalizationField() {\n return \"reference-size\" === this.theme ? this._get(\"normalizationField\") : null;\n }\n set normalizationField(e) {\n this._set(\"normalizationField\", e);\n }\n get referenceSizeScale() {\n return \"reference-size\" === this.theme ? this._get(\"referenceSizeScale\") : null;\n }\n set referenceSizeScale(e) {\n this._set(\"referenceSizeScale\", e);\n }\n get referenceSizeSymbolStyle() {\n return \"reference-size\" === this.theme ? this._get(\"referenceSizeSymbolStyle\") : null;\n }\n set referenceSizeSymbolStyle(e) {\n this._set(\"referenceSizeSymbolStyle\", e);\n }\n castStartTime(e) {\n return \"string\" == typeof e || \"number\" == typeof e ? e : null;\n }\n get sizeStops() {\n return \"reference-size\" === this.theme ? this._get(\"sizeStops\") : null;\n }\n set sizeStops(e) {\n this._set(\"sizeStops\", e);\n }\n get style() {\n return \"color\" === this.type ? this._get(\"style\") : null;\n }\n set style(e) {\n this._set(\"style\", e);\n }\n get theme() {\n return \"color\" === this.type || \"size\" === this.type ? this._get(\"theme\") || \"high-to-low\" : null;\n }\n set theme(e) {\n this._set(\"theme\", e);\n }\n clone() {\n return new a({\n endTime: this.endTime,\n field: this.field,\n maxSliderValue: this.maxSliderValue,\n minSliderValue: this.minSliderValue,\n normalizationField: this.normalizationField,\n referenceSizeScale: this.referenceSizeScale,\n referenceSizeSymbolStyle: this.referenceSizeSymbolStyle,\n sizeStops: i(this.sizeStops),\n startTime: this.startTime,\n style: this.style,\n theme: this.theme,\n type: this.type,\n units: this.units\n });\n }\n};\ne([o({\n types: m,\n json: {\n write: !0\n }\n})], d.prototype, \"endTime\", void 0), e([s(\"endTime\")], d.prototype, \"castEndTime\", null), e([o({\n type: String,\n json: {\n write: !0\n }\n})], d.prototype, \"field\", void 0), e([o({\n type: Number,\n json: {\n write: !0\n }\n})], d.prototype, \"maxSliderValue\", void 0), e([o({\n type: Number,\n json: {\n write: !0\n }\n})], d.prototype, \"minSliderValue\", void 0), e([o({\n type: String,\n json: {\n origins: {\n \"web-scene\": {\n write: !1\n }\n },\n write: !0\n }\n})], d.prototype, \"normalizationField\", null), e([o({\n type: Number,\n value: null,\n json: {\n origins: {\n \"web-scene\": {\n write: !1\n }\n },\n write: !0\n }\n})], d.prototype, \"referenceSizeScale\", null), e([o({\n type: S,\n value: null,\n json: {\n origins: {\n \"web-scene\": {\n write: !1\n }\n },\n write: !0\n }\n})], d.prototype, \"referenceSizeSymbolStyle\", null), e([o({\n types: m,\n json: {\n write: !0\n }\n})], d.prototype, \"startTime\", void 0), e([s(\"startTime\")], d.prototype, \"castStartTime\", null), e([o({\n type: [l],\n json: {\n origins: {\n \"web-scene\": {\n write: !1\n }\n },\n write: !0\n }\n})], d.prototype, \"sizeStops\", null), e([o({\n type: p.apiValues,\n value: null,\n json: {\n type: p.jsonValues,\n read: p.read,\n write: p.write\n }\n})], d.prototype, \"style\", null), e([o({\n type: y,\n value: null,\n json: {\n type: y,\n origins: {\n \"web-scene\": {\n type: c,\n write: {\n writer: (e, t) => {\n c.includes(e) && (t.theme = e);\n }\n }\n }\n },\n write: !0\n }\n})], d.prototype, \"theme\", null), e([o({\n type: u.apiValues,\n json: {\n type: u.jsonValues,\n read: u.read,\n write: u.write\n }\n})], d.prototype, \"type\", void 0), e([o({\n type: h,\n json: {\n type: h,\n write: !0\n }\n})], d.prototype, \"units\", void 0), d = a = e([n(\"esri.renderers.support.AuthoringInfoVisualVariable\")], d);\nconst f = d;\nexport { f as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport { JSONMap as t } from \"../../core/jsonMap.js\";\nimport { JSONSupport as i } from \"../../core/JSONSupport.js\";\nimport { clone as s } from \"../../core/lang.js\";\nimport { property as r } from \"../../core/accessorSupport/decorators/property.js\";\nimport { Integer as a } from \"../../core/accessorSupport/ensureType.js\";\nimport { reader as l } from \"../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as o } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { AuthoringInfoFieldInfo as n } from \"./AuthoringInfoFieldInfo.js\";\nimport u from \"./AuthoringInfoVisualVariable.js\";\nimport { fromJSON as p, types as d } from \"../../rest/support/colorRamps.js\";\nvar c;\nconst h = new t({\n esriClassifyDefinedInterval: \"defined-interval\",\n esriClassifyEqualInterval: \"equal-interval\",\n esriClassifyManual: \"manual\",\n esriClassifyNaturalBreaks: \"natural-breaks\",\n esriClassifyQuantile: \"quantile\",\n esriClassifyStandardDeviation: \"standard-deviation\"\n }),\n y = new t({\n classedSize: \"class-breaks-size\",\n classedColor: \"class-breaks-color\",\n univariateColorSize: \"univariate-color-size\",\n relationship: \"relationship\",\n predominance: \"predominance\",\n dotDensity: \"dot-density\",\n flow: \"flow\"\n }),\n m = new t({\n classedSize: \"class-breaks-size\",\n classedColor: \"class-breaks-color\",\n univariateColorSize: \"univariate-color-size\",\n relationship: \"relationship\",\n predominance: \"predominance\",\n dotDensity: \"dot-density\"\n }),\n f = [\"inches\", \"feet\", \"yards\", \"miles\", \"nautical-miles\", \"millimeters\", \"centimeters\", \"decimeters\", \"meters\", \"kilometers\"],\n v = [\"high-to-low\", \"above-and-below\", \"above\", \"below\"],\n w = [\"flow-line\", \"wave-front\"],\n b = [\"caret\", \"circle-caret\", \"arrow\", \"circle-arrow\", \"plus-minus\", \"circle-plus-minus\", \"square\", \"circle\", \"triangle\", \"happy-sad\", \"thumb\", \"custom\"];\nlet g = c = class extends i {\n constructor(e) {\n super(e), this.colorRamp = null, this.fadeRatio = null, this.isAutoGenerated = !1, this.lengthUnit = null, this.maxSliderValue = null, this.minSliderValue = null, this.visualVariables = null;\n }\n get classificationMethod() {\n const e = this._get(\"classificationMethod\"),\n t = this.type;\n return t && \"relationship\" !== t ? \"class-breaks-size\" === t || \"class-breaks-color\" === t ? e || \"manual\" : null : e;\n }\n set classificationMethod(e) {\n this._set(\"classificationMethod\", e);\n }\n readColorRamp(e) {\n return e ? p(e) : void 0;\n }\n get fields() {\n return this.type && \"predominance\" !== this.type ? null : this._get(\"fields\");\n }\n set fields(e) {\n this._set(\"fields\", e);\n }\n get field1() {\n return this.type && \"relationship\" !== this.type ? null : this._get(\"field1\");\n }\n set field1(e) {\n this._set(\"field1\", e);\n }\n get field2() {\n return this.type && \"relationship\" !== this.type ? null : this._get(\"field2\");\n }\n set field2(e) {\n this._set(\"field2\", e);\n }\n get flowTheme() {\n return \"flow\" === this.type ? this._get(\"flowTheme\") : null;\n }\n set flowTheme(e) {\n this._set(\"flowTheme\", e);\n }\n get focus() {\n return this.type && \"relationship\" !== this.type ? null : this._get(\"focus\");\n }\n set focus(e) {\n this._set(\"focus\", e);\n }\n get numClasses() {\n return this.type && \"relationship\" !== this.type ? null : this._get(\"numClasses\");\n }\n set numClasses(e) {\n this._set(\"numClasses\", e);\n }\n get statistics() {\n return \"univariate-color-size\" === this.type && \"above-and-below\" === this.univariateTheme ? this._get(\"statistics\") : null;\n }\n set statistics(e) {\n this._set(\"statistics\", e);\n }\n get standardDeviationInterval() {\n const e = this.type;\n return e && \"relationship\" !== e && \"class-breaks-size\" !== e && \"class-breaks-color\" !== e || this.classificationMethod && \"standard-deviation\" !== this.classificationMethod ? null : this._get(\"standardDeviationInterval\");\n }\n set standardDeviationInterval(e) {\n this._set(\"standardDeviationInterval\", e);\n }\n get type() {\n return this._get(\"type\");\n }\n set type(e) {\n let t = e;\n \"classed-size\" === e ? t = \"class-breaks-size\" : \"classed-color\" === e && (t = \"class-breaks-color\"), this._set(\"type\", t);\n }\n get univariateSymbolStyle() {\n return \"univariate-color-size\" === this.type && \"above-and-below\" === this.univariateTheme ? this._get(\"univariateSymbolStyle\") : null;\n }\n set univariateSymbolStyle(e) {\n this._set(\"univariateSymbolStyle\", e);\n }\n get univariateTheme() {\n return \"univariate-color-size\" === this.type ? this._get(\"univariateTheme\") : null;\n }\n set univariateTheme(e) {\n this._set(\"univariateTheme\", e);\n }\n clone() {\n return new c({\n classificationMethod: this.classificationMethod,\n colorRamp: s(this.colorRamp),\n fadeRatio: s(this.fadeRatio),\n fields: this.fields?.slice(),\n field1: s(this.field1),\n field2: s(this.field2),\n isAutoGenerated: this.isAutoGenerated,\n focus: this.focus,\n numClasses: this.numClasses,\n maxSliderValue: this.maxSliderValue,\n minSliderValue: this.minSliderValue,\n lengthUnit: this.lengthUnit,\n statistics: this.statistics,\n standardDeviationInterval: this.standardDeviationInterval,\n type: this.type,\n visualVariables: this.visualVariables && this.visualVariables.map(e => e.clone()),\n univariateSymbolStyle: this.univariateSymbolStyle,\n univariateTheme: this.univariateTheme,\n flowTheme: this.flowTheme\n });\n }\n};\ne([r({\n type: h.apiValues,\n value: null,\n json: {\n type: h.jsonValues,\n read: h.read,\n write: h.write,\n origins: {\n \"web-document\": {\n default: \"manual\",\n type: h.jsonValues,\n read: h.read,\n write: h.write\n }\n }\n }\n})], g.prototype, \"classificationMethod\", null), e([r({\n types: d,\n json: {\n write: !0\n }\n})], g.prototype, \"colorRamp\", void 0), e([l(\"colorRamp\")], g.prototype, \"readColorRamp\", null), e([r({\n json: {\n write: !0,\n origins: {\n \"web-scene\": {\n write: !1,\n read: !1\n }\n }\n }\n})], g.prototype, \"fadeRatio\", void 0), e([r({\n type: [String],\n value: null,\n json: {\n write: !0\n }\n})], g.prototype, \"fields\", null), e([r({\n type: n,\n value: null,\n json: {\n write: !0\n }\n})], g.prototype, \"field1\", null), e([r({\n type: n,\n value: null,\n json: {\n write: !0\n }\n})], g.prototype, \"field2\", null), e([r({\n type: w,\n value: null,\n json: {\n write: !0,\n origins: {\n \"web-scene\": {\n write: !1\n }\n }\n }\n})], g.prototype, \"flowTheme\", null), e([r({\n type: [\"HH\", \"HL\", \"LH\", \"LL\"],\n value: null,\n json: {\n write: !0\n }\n})], g.prototype, \"focus\", null), e([r({\n type: Boolean,\n json: {\n write: !0,\n default: !1,\n origins: {\n \"web-scene\": {\n write: !1\n }\n }\n }\n})], g.prototype, \"isAutoGenerated\", void 0), e([r({\n type: Number,\n value: null,\n json: {\n type: a,\n write: !0\n }\n})], g.prototype, \"numClasses\", null), e([r({\n type: f,\n json: {\n type: f,\n read: !1,\n write: !1,\n origins: {\n \"web-scene\": {\n read: !0,\n write: !0\n }\n }\n }\n})], g.prototype, \"lengthUnit\", void 0), e([r({\n type: Number,\n json: {\n write: !0,\n origins: {\n \"web-scene\": {\n write: !1,\n read: !1\n }\n }\n }\n})], g.prototype, \"maxSliderValue\", void 0), e([r({\n type: Number,\n json: {\n write: !0,\n origins: {\n \"web-scene\": {\n write: !1,\n read: !1\n }\n }\n }\n})], g.prototype, \"minSliderValue\", void 0), e([r({\n type: Object,\n value: null,\n json: {\n write: !0,\n origins: {\n \"web-scene\": {\n write: !1,\n read: !1\n }\n }\n }\n})], g.prototype, \"statistics\", null), e([r({\n type: [.25, .33, .5, 1],\n value: null,\n json: {\n type: [.25, .33, .5, 1],\n write: !0\n }\n})], g.prototype, \"standardDeviationInterval\", null), e([r({\n type: y.apiValues,\n value: null,\n json: {\n type: y.jsonValues,\n read: y.read,\n write: y.write,\n origins: {\n \"web-scene\": {\n type: m.jsonValues,\n write: {\n writer: m.write,\n overridePolicy: e => ({\n enabled: \"flow\" !== e\n })\n }\n }\n }\n }\n})], g.prototype, \"type\", null), e([r({\n type: [u],\n json: {\n write: !0\n }\n})], g.prototype, \"visualVariables\", void 0), e([r({\n type: b,\n value: null,\n json: {\n write: !0,\n origins: {\n \"web-scene\": {\n write: !1\n }\n }\n }\n})], g.prototype, \"univariateSymbolStyle\", null), e([r({\n type: v,\n value: null,\n json: {\n write: !0,\n origins: {\n \"web-scene\": {\n write: !1\n }\n }\n }\n})], g.prototype, \"univariateTheme\", null), g = c = e([o(\"esri.renderers.support.AuthoringInfo\")], g);\nconst j = g;\nexport { j as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as r } from \"../chunks/tslib.es6.js\";\nimport { JSONMap as e } from \"../core/jsonMap.js\";\nimport { JSONSupport as t } from \"../core/JSONSupport.js\";\nimport { property as o } from \"../core/accessorSupport/decorators/property.js\";\nimport \"../core/has.js\";\nimport \"../core/Logger.js\";\nimport \"../core/RandomLCG.js\";\nimport { subclass as s } from \"../core/accessorSupport/decorators/subclass.js\";\nimport i from \"./support/AuthoringInfo.js\";\nconst n = new e({\n simple: \"simple\",\n uniqueValue: \"unique-value\",\n classBreaks: \"class-breaks\",\n heatmap: \"heatmap\",\n dotDensity: \"dot-density\",\n dictionary: \"dictionary\",\n pieChart: \"pie-chart\"\n}, {\n ignoreUnknown: !0\n});\nlet a = class extends t {\n constructor(r) {\n super(r), this.authoringInfo = null, this.type = null;\n }\n async getRequiredFields(r) {\n if (!this.collectRequiredFields) return [];\n const e = new Set();\n return await this.collectRequiredFields(e, r), Array.from(e).sort();\n }\n getSymbol(r, e) {}\n async getSymbolAsync(r, e) {}\n getSymbols() {\n return [];\n }\n getAttributeHash() {\n return JSON.stringify(this);\n }\n getMeshHash() {\n return JSON.stringify(this);\n }\n};\nr([o({\n type: i,\n json: {\n write: !0\n }\n})], a.prototype, \"authoringInfo\", void 0), r([o({\n type: n.apiValues,\n readOnly: !0,\n json: {\n type: n.jsonValues,\n read: !1,\n write: {\n writer: n.write,\n ignoreOrigin: !0\n }\n }\n})], a.prototype, \"type\", void 0), a = r([s(\"esri.renderers.Renderer\")], a);\nconst p = a;\nexport { p as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nfunction e(e) {\n return e.match(t)?.[1]?.replace(/\\\\'/g, \"'\") ?? null;\n}\nconst t = /^hash\\(\\$feature\\['((\\\\'|[^'])+)'\\]\\) \\* 8\\.381e-8$/;\nexport { e as matchRandomRotationExpression };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as o } from \"../../../chunks/tslib.es6.js\";\nimport { ClonableMixin as r } from \"../../../core/Clonable.js\";\nimport { JSONSupport as e } from \"../../../core/JSONSupport.js\";\nimport { property as s } from \"../../../core/accessorSupport/decorators/property.js\";\nimport \"../../../core/has.js\";\nimport \"../../../core/Logger.js\";\nimport \"../../../core/RandomLCG.js\";\nimport { subclass as t } from \"../../../core/accessorSupport/decorators/subclass.js\";\nlet p = class extends r(e) {\n constructor() {\n super(...arguments), this.showLegend = null, this.title = null;\n }\n};\no([s({\n type: Boolean,\n json: {\n write: !0\n }\n})], p.prototype, \"showLegend\", void 0), o([s({\n type: String,\n json: {\n write: !0\n }\n})], p.prototype, \"title\", void 0), p = o([t(\"esri.renderers.visualVariables.support.VisualVariableLegendOptions\")], p);\nconst i = p;\nexport { i as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport { JSONMap as r } from \"../../core/jsonMap.js\";\nimport { JSONSupport as o } from \"../../core/JSONSupport.js\";\nimport t from \"../../core/Logger.js\";\nimport { property as s } from \"../../core/accessorSupport/decorators/property.js\";\nimport { cast as i } from \"../../core/accessorSupport/decorators/cast.js\";\nimport { subclass as p } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { ensureString as n } from \"../../core/accessorSupport/ensureType.js\";\nimport l from \"./support/VisualVariableLegendOptions.js\";\nconst a = new r({\n colorInfo: \"color\",\n transparencyInfo: \"opacity\",\n rotationInfo: \"rotation\",\n sizeInfo: \"size\"\n});\nlet u = class extends o {\n constructor(e) {\n super(e), this.index = null, this.type = null, this.field = null, this.valueExpression = null, this.valueExpressionTitle = null, this.legendOptions = null;\n }\n castField(e) {\n return null == e ? e : \"function\" == typeof e ? (t.getLogger(this).error(\".field: field must be a string value\"), null) : n(e);\n }\n get arcadeRequired() {\n return !!this.valueExpression;\n }\n clone() {}\n getAttributeHash() {\n return `${this.type}-${this.field}-${this.valueExpression}`;\n }\n};\ne([s()], u.prototype, \"index\", void 0), e([s({\n type: a.apiValues,\n readOnly: !0,\n json: {\n read: a.read,\n write: a.write\n }\n})], u.prototype, \"type\", void 0), e([s({\n type: String,\n json: {\n write: !0\n }\n})], u.prototype, \"field\", void 0), e([i(\"field\")], u.prototype, \"castField\", null), e([s({\n type: String,\n json: {\n write: !0\n }\n})], u.prototype, \"valueExpression\", void 0), e([s({\n type: String,\n json: {\n write: !0\n }\n})], u.prototype, \"valueExpressionTitle\", void 0), e([s({\n readOnly: !0\n})], u.prototype, \"arcadeRequired\", null), e([s({\n type: l,\n json: {\n write: !0\n }\n})], u.prototype, \"legendOptions\", void 0), u = e([p(\"esri.renderers.visualVariables.VisualVariable\")], u);\nconst c = u;\nexport { c as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as t } from \"../../chunks/tslib.es6.js\";\nimport { property as o } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as s } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport e from \"./VisualVariable.js\";\nimport r from \"./support/ColorStop.js\";\nvar i;\nlet a = i = class extends e {\n constructor(t) {\n super(t), this.type = \"color\", this.normalizationField = null;\n }\n get cache() {\n return {\n ipData: this._interpolateData(),\n hasExpression: !!this.valueExpression,\n compiledFunc: null\n };\n }\n set stops(t) {\n t && Array.isArray(t) && (t = t.filter(t => !!t)).sort((t, o) => t.value - o.value), this._set(\"stops\", t);\n }\n clone() {\n return new i({\n field: this.field,\n normalizationField: this.normalizationField,\n valueExpression: this.valueExpression,\n valueExpressionTitle: this.valueExpressionTitle,\n stops: this.stops && this.stops.map(t => t.clone()),\n legendOptions: this.legendOptions?.clone()\n });\n }\n getAttributeHash() {\n return `${super.getAttributeHash()}-${this.normalizationField}`;\n }\n _interpolateData() {\n return this.stops && this.stops.map(t => t.value || 0);\n }\n};\nt([o({\n readOnly: !0\n})], a.prototype, \"cache\", null), t([o({\n type: [\"color\"],\n json: {\n type: [\"colorInfo\"]\n }\n})], a.prototype, \"type\", void 0), t([o({\n type: String,\n json: {\n write: !0\n }\n})], a.prototype, \"normalizationField\", void 0), t([o({\n type: [r],\n json: {\n write: !0\n }\n})], a.prototype, \"stops\", null), a = i = t([s(\"esri.renderers.visualVariables.ColorVariable\")], a);\nconst p = a;\nexport { p as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as r } from \"../../../chunks/tslib.es6.js\";\nimport { JSONSupport as o } from \"../../../core/JSONSupport.js\";\nimport { property as t } from \"../../../core/accessorSupport/decorators/property.js\";\nimport { Integer as e } from \"../../../core/accessorSupport/ensureType.js\";\nimport \"../../../core/RandomLCG.js\";\nimport \"../../../core/has.js\";\nimport { reader as p } from \"../../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as s } from \"../../../core/accessorSupport/decorators/subclass.js\";\nimport { writer as a } from \"../../../core/accessorSupport/decorators/writer.js\";\nimport { transparencyToOpacity as c, opacityToTransparency as i } from \"../../../webdoc/support/opacityUtils.js\";\nvar l;\nlet u = l = class extends o {\n constructor(r) {\n super(r), this.label = null, this.opacity = null, this.value = null;\n }\n readOpacity(r, o) {\n return c(o.transparency);\n }\n writeOpacity(r, o, t) {\n o[t] = i(r);\n }\n clone() {\n return new l({\n label: this.label,\n opacity: this.opacity,\n value: this.value\n });\n }\n};\nr([t({\n type: String,\n json: {\n write: !0\n }\n})], u.prototype, \"label\", void 0), r([t({\n type: Number,\n json: {\n type: e,\n write: {\n target: \"transparency\"\n }\n }\n})], u.prototype, \"opacity\", void 0), r([p(\"opacity\", [\"transparency\"])], u.prototype, \"readOpacity\", null), r([a(\"opacity\")], u.prototype, \"writeOpacity\", null), r([t({\n type: Number,\n json: {\n write: !0\n }\n})], u.prototype, \"value\", void 0), u = l = r([s(\"esri.renderers.visualVariables.support.OpacityStop\")], u);\nconst n = u;\nexport { n as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as t } from \"../../chunks/tslib.es6.js\";\nimport { property as s } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as e } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport o from \"./VisualVariable.js\";\nimport r from \"./support/OpacityStop.js\";\nvar i;\nlet a = i = class extends o {\n constructor(t) {\n super(t), this.type = \"opacity\", this.normalizationField = null;\n }\n get cache() {\n return {\n ipData: this._interpolateData(),\n hasExpression: !!this.valueExpression,\n compiledFunc: null\n };\n }\n set stops(t) {\n t && Array.isArray(t) && (t = t.filter(t => !!t)).sort((t, s) => t.value - s.value), this._set(\"stops\", t);\n }\n clone() {\n return new i({\n field: this.field,\n normalizationField: this.normalizationField,\n valueExpression: this.valueExpression,\n valueExpressionTitle: this.valueExpressionTitle,\n stops: this.stops && this.stops.map(t => t.clone()),\n legendOptions: this.legendOptions?.clone()\n });\n }\n getAttributeHash() {\n return `${super.getAttributeHash()}-${this.normalizationField}`;\n }\n _interpolateData() {\n return this.stops && this.stops.map(t => t.value || 0);\n }\n};\nt([s({\n readOnly: !0\n})], a.prototype, \"cache\", null), t([s({\n type: [\"opacity\"],\n json: {\n type: [\"transparencyInfo\"]\n }\n})], a.prototype, \"type\", void 0), t([s({\n type: String,\n json: {\n write: !0\n }\n})], a.prototype, \"normalizationField\", void 0), t([s({\n type: [r],\n json: {\n write: !0\n }\n})], a.prototype, \"stops\", null), a = i = t([e(\"esri.renderers.visualVariables.OpacityVariable\")], a);\nconst p = a;\nexport { p as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport { property as o } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as t } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport r from \"./VisualVariable.js\";\nvar s;\nlet i = s = class extends r {\n constructor(e) {\n super(e), this.axis = null, this.type = \"rotation\", this.rotationType = \"geographic\";\n }\n get cache() {\n return {\n hasExpression: !!this.valueExpression,\n compiledFunc: null\n };\n }\n clone() {\n return new s({\n axis: this.axis,\n rotationType: this.rotationType,\n field: this.field,\n valueExpression: this.valueExpression,\n valueExpressionTitle: this.valueExpressionTitle,\n legendOptions: this.legendOptions?.clone()\n });\n }\n};\ne([o({\n readOnly: !0\n})], i.prototype, \"cache\", null), e([o({\n type: [\"heading\", \"tilt\", \"roll\"],\n json: {\n origins: {\n \"web-scene\": {\n default: \"heading\",\n write: !0\n }\n }\n }\n})], i.prototype, \"axis\", void 0), e([o({\n type: [\"rotation\"],\n json: {\n type: [\"rotationInfo\"]\n }\n})], i.prototype, \"type\", void 0), e([o({\n type: [\"geographic\", \"arithmetic\"],\n json: {\n write: !0,\n origins: {\n \"web-document\": {\n write: !0,\n default: \"geographic\"\n }\n }\n }\n})], i.prototype, \"rotationType\", void 0), i = s = e([t(\"esri.renderers.visualVariables.RotationVariable\")], i);\nconst a = i;\nexport { a as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { toPt as r } from \"../../../core/screenUtils.js\";\nfunction e(e) {\n return r(e);\n}\nexport { e as castSizeFromStringOrNumber };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as r } from \"../../../chunks/tslib.es6.js\";\nimport { property as s } from \"../../../core/accessorSupport/decorators/property.js\";\nimport \"../../../core/has.js\";\nimport \"../../../core/Logger.js\";\nimport \"../../../core/RandomLCG.js\";\nimport { subclass as o } from \"../../../core/accessorSupport/decorators/subclass.js\";\nimport e from \"./VisualVariableLegendOptions.js\";\nlet t = class extends e {\n constructor() {\n super(...arguments), this.customValues = null;\n }\n};\nr([s({\n type: [Number],\n json: {\n write: !0\n }\n})], t.prototype, \"customValues\", void 0), t = r([o(\"esri.renderers.visualVariables.support.SizeVariableLegendOptions\")], t);\nconst p = t;\nexport { p as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport t from \"../../core/Error.js\";\nimport { JSONMap as i } from \"../../core/jsonMap.js\";\nimport s from \"../../core/Logger.js\";\nimport { property as r } from \"../../core/accessorSupport/decorators/property.js\";\nimport { cast as a } from \"../../core/accessorSupport/decorators/cast.js\";\nimport { reader as n } from \"../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as o } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { writer as l } from \"../../core/accessorSupport/decorators/writer.js\";\nimport p from \"./VisualVariable.js\";\nimport { castSizeFromStringOrNumber as u } from \"./support/castSizeVariable.js\";\nimport m from \"./support/SizeStop.js\";\nimport h from \"./support/SizeVariableLegendOptions.js\";\nimport { isSizeVariable as c, getInputValueType as d, getTransformationType as y, TransformationType as S } from \"./support/sizeVariableUtils.js\";\nimport { viewScaleRE as x } from \"./support/visualVariableUtils.js\";\nvar z;\nconst v = new i({\n width: \"width\",\n depth: \"depth\",\n height: \"height\",\n widthAndDepth: \"width-and-depth\",\n all: \"all\"\n }),\n w = new i({\n unknown: \"unknown\",\n inch: \"inches\",\n foot: \"feet\",\n yard: \"yards\",\n mile: \"miles\",\n \"nautical-mile\": \"nautical-miles\",\n millimeter: \"millimeters\",\n centimeter: \"centimeters\",\n decimeter: \"decimeters\",\n meter: \"meters\",\n kilometer: \"kilometers\"\n });\nfunction g(e) {\n if (null != e) return \"string\" == typeof e || \"number\" == typeof e ? u(e) : \"size\" === e.type ? c(e) ? e : (delete (e = {\n ...e\n }).type, new f(e)) : void 0;\n}\nfunction V(e, t, i) {\n if (\"object\" != typeof e) return e;\n const s = new f();\n return s.read(e, i), s;\n}\nlet f = z = class extends p {\n constructor(e) {\n 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;\n }\n get cache() {\n return {\n ipData: this._interpolateData(),\n hasExpression: !!this.valueExpression,\n compiledFunc: null,\n isScaleDriven: null != this.valueExpression && x.test(this.valueExpression)\n };\n }\n set index(e) {\n c(this.maxSize) && (this.maxSize.index = `visualVariables[${e}].maxSize`), c(this.minSize) && (this.minSize.index = `visualVariables[${e}].minSize`), this._set(\"index\", e);\n }\n get inputValueType() {\n return d(this);\n }\n set maxDataValue(e) {\n e && this.stops && (s.getLogger(this).warn(\"cannot set maxDataValue when stops is not null.\"), e = null), this._set(\"maxDataValue\", e);\n }\n set maxSize(e) {\n e && this.stops && (s.getLogger(this).warn(\"cannot set maxSize when stops is not null.\"), e = null), this._set(\"maxSize\", e);\n }\n castMaxSize(e) {\n return g(e);\n }\n readMaxSize(e, t, i) {\n return V(e, t, i);\n }\n set minDataValue(e) {\n e && this.stops && (s.getLogger(this).warn(\"cannot set minDataValue when stops is not null.\"), e = null), this._set(\"minDataValue\", e);\n }\n set minSize(e) {\n e && this.stops && (s.getLogger(this).warn(\"cannot set minSize when stops is not null.\"), e = null), this._set(\"minSize\", e);\n }\n castMinSize(e) {\n return g(e);\n }\n readMinSize(e, t, i) {\n return V(e, t, i);\n }\n get arcadeRequired() {\n return !!this.valueExpression || null != this.minSize && \"object\" == typeof this.minSize && this.minSize.arcadeRequired || null != this.maxSize && \"object\" == typeof this.maxSize && this.maxSize.arcadeRequired;\n }\n set stops(e) {\n 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 && (s.getLogger(this).warn(\"cannot set stops when one of minDataValue, maxDataValue, minSize or maxSize is not null.\"), e = null), this._set(\"stops\", e);\n }\n get transformationType() {\n return y(this, this.inputValueType);\n }\n readValueExpression(e, t) {\n return e || t.expression && \"$view.scale\";\n }\n writeValueExpressionWebScene(e, i, s, r) {\n if (\"$view.scale\" === e) {\n if (r?.messages) {\n const e = this.index,\n i = \"string\" == typeof e ? e : `visualVariables[${e}]`;\n r.messages.push(new t(\"property:unsupported\", this.type + \"VisualVariable.valueExpression = '$view.scale' is not supported in Web Scene. Please remove this property to save the Web Scene.\", {\n instance: this,\n propertyName: i + \".valueExpression\",\n context: r\n }));\n }\n } else i[s] = e;\n }\n readValueUnit(e) {\n return e ? w.read(e) : null;\n }\n clone() {\n return new z({\n axis: this.axis,\n field: this.field,\n valueExpression: this.valueExpression,\n valueExpressionTitle: this.valueExpressionTitle,\n maxDataValue: this.maxDataValue,\n maxSize: c(this.maxSize) ? this.maxSize.clone() : this.maxSize,\n minDataValue: this.minDataValue,\n minSize: c(this.minSize) ? this.minSize.clone() : this.minSize,\n normalizationField: this.normalizationField,\n stops: this.stops?.map(e => e.clone()),\n target: this.target,\n useSymbolValue: this.useSymbolValue,\n valueRepresentation: this.valueRepresentation,\n valueUnit: this.valueUnit,\n legendOptions: this.legendOptions?.clone()\n });\n }\n flipSizes() {\n if (this.transformationType === S.ClampedLinear) {\n const {\n minSize: e,\n maxSize: t\n } = this;\n return this.minSize = t, this.maxSize = e, this;\n }\n if (this.transformationType === S.Stops) {\n const e = this.stops;\n if (!e) return this;\n const t = e.map(e => e.size).reverse(),\n i = e.length;\n for (let s = 0; s < i; s++) e[s].size = t[s];\n return this;\n }\n return this;\n }\n getAttributeHash() {\n return `${super.getAttributeHash()}-${this.target}-${this.normalizationField}`;\n }\n _interpolateData() {\n return this.stops?.map(e => e.value || 0);\n }\n};\ne([r({\n readOnly: !0\n})], f.prototype, \"cache\", null), e([r({\n type: v.apiValues,\n json: {\n type: v.jsonValues,\n origins: {\n \"web-map\": {\n read: !1\n }\n },\n read: v.read,\n write: v.write\n }\n})], f.prototype, \"axis\", void 0), e([r()], f.prototype, \"index\", null), e([r({\n type: String,\n readOnly: !0\n})], f.prototype, \"inputValueType\", null), e([r({\n type: h,\n json: {\n write: !0\n }\n})], f.prototype, \"legendOptions\", void 0), e([r({\n type: Number,\n value: null,\n json: {\n write: !0\n }\n})], f.prototype, \"maxDataValue\", null), e([r({\n type: Number,\n value: null,\n json: {\n write: !0\n }\n})], f.prototype, \"maxSize\", null), e([a(\"maxSize\")], f.prototype, \"castMaxSize\", null), e([n(\"maxSize\")], f.prototype, \"readMaxSize\", null), e([r({\n type: Number,\n value: null,\n json: {\n write: !0\n }\n})], f.prototype, \"minDataValue\", null), e([r({\n type: Number,\n value: null,\n json: {\n write: !0\n }\n})], f.prototype, \"minSize\", null), e([a(\"minSize\")], f.prototype, \"castMinSize\", null), e([n(\"minSize\")], f.prototype, \"readMinSize\", null), e([r({\n type: String,\n json: {\n write: !0\n }\n})], f.prototype, \"normalizationField\", void 0), e([r({\n readOnly: !0\n})], f.prototype, \"arcadeRequired\", null), e([r({\n type: String\n})], f.prototype, \"scaleBy\", void 0), e([r({\n type: [m],\n value: null,\n json: {\n write: !0\n }\n})], f.prototype, \"stops\", null), e([r({\n type: [\"outline\"],\n json: {\n write: !0\n }\n})], f.prototype, \"target\", void 0), e([r({\n type: String,\n readOnly: !0\n})], f.prototype, \"transformationType\", null), e([r({\n type: [\"size\"],\n json: {\n type: [\"sizeInfo\"]\n }\n})], f.prototype, \"type\", void 0), e([r({\n type: Boolean,\n json: {\n write: !0,\n origins: {\n \"web-map\": {\n read: !1\n }\n }\n }\n})], f.prototype, \"useSymbolValue\", void 0), e([r({\n type: String,\n json: {\n write: !0\n }\n})], f.prototype, \"valueExpression\", void 0), e([n(\"valueExpression\", [\"valueExpression\", \"expression\"])], f.prototype, \"readValueExpression\", null), e([l(\"web-scene\", \"valueExpression\")], f.prototype, \"writeValueExpressionWebScene\", null), e([r({\n type: [\"radius\", \"diameter\", \"area\", \"width\", \"distance\"],\n json: {\n write: !0\n }\n})], f.prototype, \"valueRepresentation\", void 0), e([r({\n type: w.apiValues,\n json: {\n write: w.write,\n origins: {\n \"web-map\": {\n read: !1\n },\n \"web-scene\": {\n write: !0\n },\n \"portal-item\": {\n write: !0\n }\n }\n }\n})], f.prototype, \"valueUnit\", void 0), e([n(\"valueUnit\")], f.prototype, \"readValueUnit\", null), f = z = e([o(\"esri.renderers.visualVariables.SizeVariable\")], f);\nconst b = f;\nexport { b as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as r } from \"../../chunks/tslib.es6.js\";\nimport s from \"../../core/Accessor.js\";\nimport { JSONMap as o } from \"../../core/jsonMap.js\";\nimport e from \"../../core/Logger.js\";\nimport t from \"../../core/Warning.js\";\nimport { property as a } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as i } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport l from \"./ColorVariable.js\";\nimport n from \"./OpacityVariable.js\";\nimport c from \"./RotationVariable.js\";\nimport p from \"./SizeVariable.js\";\nconst b = {\n color: l,\n size: p,\n opacity: n,\n rotation: c\n },\n u = new o({\n colorInfo: \"color\",\n transparencyInfo: \"opacity\",\n rotationInfo: \"rotation\",\n sizeInfo: \"size\"\n }),\n h = /^\\[([^\\]]+)\\]$/i;\nlet m = class extends s {\n constructor() {\n super(...arguments), this.colorVariables = null, this.opacityVariables = null, this.rotationVariables = null, this.sizeVariables = null;\n }\n set visualVariables(r) {\n if (this._resetVariables(), r = r?.filter(r => !!r), r?.length) {\n for (const s of r) switch (s.type) {\n case \"color\":\n this.colorVariables.push(s);\n break;\n case \"opacity\":\n this.opacityVariables.push(s);\n break;\n case \"rotation\":\n this.rotationVariables.push(s);\n break;\n case \"size\":\n this.sizeVariables.push(s);\n }\n if (this.sizeVariables.length) {\n this.sizeVariables.some(r => !!r.target) && r.sort((r, s) => {\n let o = null;\n return o = r.target === s.target ? 0 : r.target ? 1 : -1, o;\n });\n }\n for (let s = 0; s < r.length; s++) {\n r[s].index = s;\n }\n this._set(\"visualVariables\", r);\n } else this._set(\"visualVariables\", r);\n }\n readVariables(r, s, o) {\n const {\n rotationExpression: a,\n rotationType: i\n } = s,\n l = a?.match(h),\n n = l?.[1];\n if (n && (r || (r = []), r.push({\n type: \"rotationInfo\",\n rotationType: i,\n field: n\n })), r) return r.map(r => {\n const s = u.read(r.type),\n a = b[s];\n a || (e.getLogger(this).warn(`Unknown variable type: ${s}`), o?.messages && o.messages.push(new t(\"visual-variable:unsupported\", `visualVariable of type '${s}' is not supported`, {\n definition: r,\n context: o\n })));\n const i = new a();\n return i.read(r, o), i;\n });\n }\n writeVariables(r, s) {\n const o = [];\n for (const e of r) {\n const r = e.toJSON(s);\n r && o.push(r);\n }\n return o;\n }\n _resetVariables() {\n this.colorVariables = [], this.opacityVariables = [], this.rotationVariables = [], this.sizeVariables = [];\n }\n};\nr([a()], m.prototype, \"visualVariables\", null), m = r([i(\"esri.renderers.visualVariables.VisualVariableFactory\")], m);\nconst V = m;\nexport { V as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as r } from \"../../chunks/tslib.es6.js\";\nimport { property as a } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { reader as s } from \"../../core/accessorSupport/decorators/reader.js\";\nimport { subclass as i } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { writer as e } from \"../../core/accessorSupport/decorators/writer.js\";\nimport { collectField as t, collectArcadeFieldNames as o } from \"../../layers/support/fieldUtils.js\";\nimport { matchRandomRotationExpression as l } from \"../support/randomRotationExpression.js\";\nimport u from \"../visualVariables/ColorVariable.js\";\nimport p from \"../visualVariables/OpacityVariable.js\";\nimport V from \"../visualVariables/RotationVariable.js\";\nimport n from \"../visualVariables/SizeVariable.js\";\nimport c from \"../visualVariables/VisualVariable.js\";\nimport b from \"../visualVariables/VisualVariableFactory.js\";\nconst m = {\n base: c,\n key: \"type\",\n typeMap: {\n opacity: p,\n color: u,\n rotation: V,\n size: n\n }\n },\n v = l => {\n let u = class extends l {\n constructor() {\n super(...arguments), this._vvFactory = new b();\n }\n set visualVariables(r) {\n this._vvFactory.visualVariables = r, this._set(\"visualVariables\", this._vvFactory.visualVariables);\n }\n readVisualVariables(r, a, s) {\n return this._vvFactory.readVariables(r, a, s);\n }\n writeVisualVariables(r, a, s, i) {\n a[s] = this._vvFactory.writeVariables(r, i);\n }\n get arcadeRequiredForVisualVariables() {\n if (!this.visualVariables) return !1;\n for (const r of this.visualVariables) if (r.arcadeRequired) return !0;\n return !1;\n }\n hasVisualVariables(r, a) {\n return r ? this.getVisualVariablesForType(r, a).length > 0 : this.getVisualVariablesForType(\"size\", a).length > 0 || this.getVisualVariablesForType(\"color\", a).length > 0 || this.getVisualVariablesForType(\"opacity\", a).length > 0 || this.getVisualVariablesForType(\"rotation\", a).length > 0;\n }\n getVisualVariablesForType(r, a) {\n const s = this.visualVariables;\n return s ? s.filter(s => s.type === r && (\"string\" == typeof a ? s.target === a : !1 !== a || !s.target)) : [];\n }\n async collectVVRequiredFields(r, a) {\n let s = [];\n this.visualVariables && (s = s.concat(this.visualVariables));\n for (const i of s) i && (i.field && t(r, a, i.field), i.normalizationField && t(r, a, i.normalizationField), i.valueExpression && (y(i.valueExpression, r, a) || (await o(r, a, i.valueExpression))));\n }\n };\n return r([a({\n types: [m],\n value: null,\n json: {\n write: !0\n }\n })], u.prototype, \"visualVariables\", null), r([s(\"visualVariables\", [\"visualVariables\", \"rotationType\", \"rotationExpression\"])], u.prototype, \"readVisualVariables\", null), r([e(\"visualVariables\")], u.prototype, \"writeVisualVariables\", null), u = r([i(\"esri.renderers.mixins.VisualVariablesMixin\")], u), u;\n };\nfunction y(r, a, s) {\n const i = l(r);\n return null != i && (t(a, s, i), !0);\n}\nexport { v as VisualVariablesMixin };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { symbolTypesRenderer as e, symbolTypesRenderer3D as r, symbolTypes as t } from \"../../symbols.js\";\nimport { deepMerge as o } from \"../../core/object.js\";\nimport { createTypeReader as s } from \"../../core/accessorSupport/extensions/serializableProperty/reader.js\";\nimport { write as i } from \"../../symbols/support/jsonUtils.js\";\nimport p from \"../../symbols/Symbol.js\";\nimport l from \"../../symbols/PolygonSymbol3D.js\";\nconst y = {\n types: e,\n json: {\n write: {\n writer: i\n },\n origins: {\n \"web-scene\": {\n types: r,\n write: {\n writer: i\n },\n read: {\n reader: s({\n types: r\n })\n }\n }\n }\n }\n },\n m = o({\n json: {\n origins: {\n \"web-scene\": {\n write: {\n isRequired: !0\n }\n }\n }\n }\n }, y),\n n = {\n types: {\n base: p,\n key: \"type\",\n typeMap: {\n \"simple-fill\": t.typeMap[\"simple-fill\"],\n \"picture-fill\": t.typeMap[\"picture-fill\"],\n \"polygon-3d\": t.typeMap[\"polygon-3d\"],\n cim: t.typeMap.cim\n }\n },\n json: {\n write: {\n writer: i\n },\n origins: {\n \"web-scene\": {\n type: l,\n write: {\n writer: i\n }\n }\n }\n }\n },\n a = {\n cast: e => null == e || \"string\" == typeof e || \"number\" == typeof e ? e : `${e}`,\n json: {\n type: String,\n write: {\n writer: (e, r) => {\n r.value = e?.toString();\n }\n }\n }\n };\nexport { n as rendererBackgroundFillSymbolProperty, y as rendererSymbolProperty, m as requiredRendererSymbolProperty, a as uniqueValueProperty };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as o } from \"../../chunks/tslib.es6.js\";\nimport { ClonableMixin as r } from \"../../core/Clonable.js\";\nimport { JSONSupport as e } from \"../../core/JSONSupport.js\";\nimport { property as s } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as t } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { uniqueValueProperty as p } from \"./commonProperties.js\";\nlet c = class extends r(e) {\n constructor(o) {\n super(o), this.value = null, this.value2 = null, this.value3 = null;\n }\n};\no([s(p)], c.prototype, \"value\", void 0), o([s(p)], c.prototype, \"value2\", void 0), o([s(p)], c.prototype, \"value3\", void 0), c = o([t(\"esri.renderers.support.UniqueValue\")], c);\nconst l = c;\nexport { l as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as r } from \"../../chunks/tslib.es6.js\";\nimport { isSome as o } from \"../../core/arrayUtils.js\";\nimport { ClonableMixin as e } from \"../../core/Clonable.js\";\nimport { JSONSupport as t } from \"../../core/JSONSupport.js\";\nimport { property as s } from \"../../core/accessorSupport/decorators/property.js\";\nimport { cast as l } from \"../../core/accessorSupport/decorators/cast.js\";\nimport \"../../core/has.js\";\nimport { subclass as p } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { rendererSymbolProperty as a } from \"./commonProperties.js\";\nimport i from \"./UniqueValue.js\";\nlet n = class extends e(t) {\n constructor(r) {\n super(r), this.description = null, this.label = null, this.symbol = null, this.values = null;\n }\n castValues(r) {\n if (null == r) return null;\n const o = typeof (r = Array.isArray(r) ? r : [r])[0];\n return \"string\" === o || \"number\" === o ? r.map(r => new i({\n value: r\n })) : \"object\" === o ? r[0] instanceof i ? r : r.map(r => new i(r)) : null;\n }\n};\nr([s({\n type: String,\n json: {\n write: !0\n }\n})], n.prototype, \"description\", void 0), r([s({\n type: String,\n json: {\n write: !0\n }\n})], n.prototype, \"label\", void 0), r([s(a)], n.prototype, \"symbol\", void 0), r([s({\n type: [i],\n json: {\n type: [[String]],\n read: {\n reader: r => r ? r.map(r => new i({\n value: r[0],\n value2: r[1],\n value3: r[2]\n })) : null\n },\n write: {\n writer: (r, e) => {\n const t = [];\n for (const s of r) {\n const r = [s.value, s.value2, s.value3].filter(o).map(r => r.toString());\n t.push(r);\n }\n e.values = t;\n }\n }\n }\n})], n.prototype, \"values\", void 0), r([l(\"values\")], n.prototype, \"castValues\", null), n = r([p(\"esri.renderers.support.UniqueValueClass\")], n);\nconst u = n;\nexport { u as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as o } from \"../../chunks/tslib.es6.js\";\nimport { ClonableMixin as r } from \"../../core/Clonable.js\";\nimport { JSONSupport as s } from \"../../core/JSONSupport.js\";\nimport { property as e } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as t } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport p from \"./UniqueValueClass.js\";\nlet i = class extends r(s) {\n constructor(o) {\n super(o), this.heading = null, this.classes = null;\n }\n};\no([e({\n type: String,\n json: {\n write: !0\n }\n})], i.prototype, \"heading\", void 0), o([e({\n type: [p],\n json: {\n write: !0\n }\n})], i.prototype, \"classes\", void 0), i = o([t(\"esri.renderers.support.UniqueValueGroup\")], i);\nconst c = i;\nexport { c as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as o } from \"../../chunks/tslib.es6.js\";\nimport { JSONSupport as r } from \"../../core/JSONSupport.js\";\nimport { property as s } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/has.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as t } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { requiredRendererSymbolProperty as e, uniqueValueProperty as i } from \"./commonProperties.js\";\nvar l;\nlet p = l = class extends r {\n constructor(o) {\n super(o), this.description = null, this.label = null, this.symbol = null, this.value = null;\n }\n clone() {\n return new l({\n value: this.value,\n description: this.description,\n label: this.label,\n symbol: this.symbol ? this.symbol.clone() : null\n });\n }\n getMeshHash() {\n const o = JSON.stringify(this.symbol?.toJSON());\n return `${this.value}.${o}`;\n }\n};\no([s({\n type: String,\n json: {\n write: !0\n }\n})], p.prototype, \"description\", void 0), o([s({\n type: String,\n json: {\n write: !0\n }\n})], p.prototype, \"label\", void 0), o([s(e)], p.prototype, \"symbol\", void 0), o([s(i)], p.prototype, \"value\", void 0), p = l = o([t(\"esri.renderers.support.UniqueValueInfo\")], p);\nconst n = p;\nexport { n as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../chunks/tslib.es6.js\";\nimport { ensureType as t } from \"../symbols.js\";\nimport s from \"../core/Error.js\";\nimport { clone as i } from \"../core/lang.js\";\nimport o from \"../core/Logger.js\";\nimport { deepMerge as l } from \"../core/object.js\";\nimport { watch as r } from \"../core/reactiveUtils.js\";\nimport { property as u } from \"../core/accessorSupport/decorators/property.js\";\nimport { cast as n } from \"../core/accessorSupport/decorators/cast.js\";\nimport { enumeration as a } from \"../core/accessorSupport/decorators/enumeration.js\";\nimport { reader as p } from \"../core/accessorSupport/decorators/reader.js\";\nimport { subclass as f } from \"../core/accessorSupport/decorators/subclass.js\";\nimport { writer as d } from \"../core/accessorSupport/decorators/writer.js\";\nimport { diff as c } from \"../core/accessorSupport/diffUtils.js\";\nimport { ensureType as h, ensureString as m } from \"../core/accessorSupport/ensureType.js\";\nimport { collectArcadeFieldNames as y, collectField as b } from \"../layers/support/fieldUtils.js\";\nimport v from \"../portal/Portal.js\";\nimport _ from \"./Renderer.js\";\nimport { VisualVariablesMixin as V } from \"./mixins/VisualVariablesMixin.js\";\nimport { rendererSymbolProperty as q, rendererBackgroundFillSymbolProperty as g } from \"./support/commonProperties.js\";\nimport I from \"./support/RendererLegendOptions.js\";\nimport S from \"./support/UniqueValue.js\";\nimport w from \"./support/UniqueValueClass.js\";\nimport U from \"./support/UniqueValueGroup.js\";\nimport j from \"./support/UniqueValueInfo.js\";\nimport { loadArcade as F } from \"../support/arcadeOnDemand.js\";\nimport { f as O, t as G } from \"../chunks/persistableUrlUtils.js\";\nimport { fetchStyle as D } from \"../symbols/support/styleUtils.js\";\nimport x from \"../symbols/WebStyleSymbol.js\";\nvar E;\nconst M = \"esri.renderers.UniqueValueRenderer\",\n N = () => o.getLogger(M),\n R = \"uvInfos-watcher\",\n P = \"uvGroups-watcher\",\n C = \",\",\n $ = h(j);\nfunction z(e) {\n const {\n field1: t,\n field2: s,\n field3: i,\n fieldDelimiter: o,\n uniqueValueInfos: l,\n valueExpression: r\n } = e,\n u = !(!t || !s);\n return [{\n classes: (l ?? []).map(e => {\n const {\n symbol: l,\n label: n,\n value: a,\n description: p\n } = e,\n [f, d, c] = u ? a?.toString()?.split(o || \"\") || [] : [a],\n h = [];\n return (t || r) && h.push(f), s && h.push(d), i && h.push(c), {\n symbol: l,\n label: n,\n values: [h],\n description: p\n };\n })\n }];\n}\nfunction L(e) {\n return null != e && \"\" !== e && (\"string\" != typeof e || \"\" !== e.trim() && \"\" !== e.toLowerCase()) || (e = null), e + \"\";\n}\nlet k = E = class extends V(_) {\n constructor(e) {\n 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 = {\n uniqueValueInfos(e, t) {\n if (!e && !t) return;\n if (!e || !t) return {\n type: \"complete\",\n oldValue: e,\n newValue: t\n };\n let s = !1;\n const i = {\n type: \"collection\",\n added: [],\n removed: [],\n changed: [],\n unchanged: []\n };\n for (let o = 0; o < t.length; o++) {\n const l = e.find(e => e.value === t[o].value);\n l ? c(l, t[o]) ? (i.changed.push({\n type: \"complete\",\n oldValue: l,\n newValue: t[o]\n }), s = !0) : i.unchanged.push({\n oldValue: l,\n newValue: t[o]\n }) : (i.added.push(t[o]), s = !0);\n }\n for (let o = 0; o < e.length; o++) {\n t.find(t => t.value === e[o].value) || (i.removed.push(e[o]), s = !0);\n }\n return s ? i : void 0;\n }\n }, this._set(\"uniqueValueInfos\", []), this._set(\"uniqueValueGroups\", []);\n }\n get _cache() {\n return {\n compiledFunc: null\n };\n }\n set field(e) {\n this._set(\"field\", e), this._updateFieldDelimiter(), this._updateUniqueValues();\n }\n castField(e) {\n return null == e || \"function\" == typeof e ? e : m(e);\n }\n writeField(e, t, i, o) {\n \"string\" == typeof e ? t[i] = e : o?.messages ? o.messages.push(new s(\"property:unsupported\", \"UniqueValueRenderer.field set to a function cannot be written to JSON\")) : N().error(\".field: cannot write field to JSON since it's not a string value\");\n }\n set field2(e) {\n this._set(\"field2\", e), this._updateFieldDelimiter(), this._updateUniqueValues();\n }\n set field3(e) {\n this._set(\"field3\", e), this._updateUniqueValues();\n }\n set valueExpression(e) {\n this._set(\"valueExpression\", e), this._updateUniqueValues();\n }\n set defaultSymbol(e) {\n this._isDefaultSymbolDerived = !1, this._set(\"defaultSymbol\", e);\n }\n set fieldDelimiter(e) {\n this._set(\"fieldDelimiter\", e), this._updateUniqueValues();\n }\n readPortal(e, t, s) {\n return s.portal || v.getDefault();\n }\n readStyleOrigin(e, t, s) {\n if (t.styleName) return Object.freeze({\n styleName: t.styleName\n });\n if (t.styleUrl) {\n const e = O(t.styleUrl, s);\n return Object.freeze({\n styleUrl: e\n });\n }\n }\n writeStyleOrigin(e, t, s, i) {\n e.styleName ? t.styleName = e.styleName : e.styleUrl && (t.styleUrl = G(e.styleUrl, i));\n }\n set uniqueValueGroups(e) {\n this.styleOrigin ? N().error(\"#uniqueValueGroups=\", \"Cannot modify unique value groups of a UniqueValueRenderer created from a web style\") : (this._set(\"uniqueValueGroups\", e), this._updateInfosFromGroups(), this._isInfosSource = !1, this._watchUniqueValueGroups());\n }\n set uniqueValueInfos(e) {\n this.styleOrigin ? N().error(\"#uniqueValueInfos=\", \"Cannot modify unique value infos of a UniqueValueRenderer created from a web style\") : (this._set(\"uniqueValueInfos\", e), this._updateValueInfoMap(), this._updateGroupsFromInfos(), this._isInfosSource = !0, this._watchUniqueValueInfos());\n }\n addUniqueValueInfo(e, s) {\n if (this.styleOrigin) return void N().error(\"#addUniqueValueInfo()\", \"Cannot modify unique value infos of a UniqueValueRenderer created from a web style\");\n let i;\n i = \"object\" == typeof e ? $(e) : new j({\n value: e,\n symbol: t(s)\n }), this.uniqueValueInfos?.push(i), this._valueInfoMap[L(i.value)] = i, this._updateGroupsFromInfos(), this._isInfosSource = !0, this._watchUniqueValueInfos();\n }\n removeUniqueValueInfo(e) {\n if (this.styleOrigin) return void N().error(\"#removeUniqueValueInfo()\", \"Cannot modify unique value infos of a UniqueValueRenderer created from a web style\");\n const t = this.uniqueValueInfos;\n if (t) for (let s = 0; s < t.length; s++) {\n const i = t[s];\n if (String(i.value) === String(e)) {\n delete this._valueInfoMap[L(e)], t.splice(s, 1);\n break;\n }\n }\n this._updateGroupsFromInfos(), this._isInfosSource = !0, this._watchUniqueValueInfos();\n }\n async getUniqueValueInfo(e, t) {\n let s = t;\n return this.valueExpression && null == t?.arcade && (s = {\n ...s,\n arcade: await F()\n }), this._getUniqueValueInfo(e, s);\n }\n getSymbol(e, t) {\n if (this.valueExpression && null == t?.arcade) return void N().error(\"#getSymbol()\", \"Please use getSymbolAsync if valueExpression is used\");\n const s = this._getUniqueValueInfo(e, t);\n return s?.symbol || this.defaultSymbol;\n }\n async getSymbolAsync(e, t) {\n let s = t;\n if (this.valueExpression && null == s?.arcade) {\n const e = await F(),\n {\n arcadeUtils: t\n } = e;\n t.hasGeometryOperations(this.valueExpression) && (await t.enableGeometryOperations()), s = {\n ...s,\n arcade: e\n };\n }\n const i = this._getUniqueValueInfo(e, s);\n return i?.symbol || this.defaultSymbol;\n }\n getSymbols() {\n const e = [];\n for (const t of this.uniqueValueInfos ?? []) t.symbol && e.push(t.symbol);\n return this.defaultSymbol && e.push(this.defaultSymbol), e;\n }\n getAttributeHash() {\n return this.visualVariables?.reduce((e, t) => e + t.getAttributeHash(), \"\") ?? \"\";\n }\n getMeshHash() {\n const e = JSON.stringify(this.backgroundFillSymbol),\n t = JSON.stringify(this.defaultSymbol),\n s = this.uniqueValueInfos?.reduce((e, t) => e + t.getMeshHash(), \"\");\n return `${e}.${t}.${s}.${`${this.field}.${this.field2}.${this.field3}.${this.fieldDelimiter}`}.${this.valueExpression}`;\n }\n clone() {\n const e = new E({\n field: this.field,\n field2: this.field2,\n field3: this.field3,\n defaultLabel: this.defaultLabel,\n defaultSymbol: i(this.defaultSymbol),\n orderByClassesEnabled: this.orderByClassesEnabled,\n valueExpression: this.valueExpression,\n valueExpressionTitle: this.valueExpressionTitle,\n fieldDelimiter: this.fieldDelimiter,\n visualVariables: i(this.visualVariables),\n legendOptions: i(this.legendOptions),\n authoringInfo: i(this.authoringInfo),\n backgroundFillSymbol: i(this.backgroundFillSymbol)\n });\n this._isDefaultSymbolDerived && (e._isDefaultSymbolDerived = !0), e._set(\"portal\", this.portal);\n const t = i(this.uniqueValueInfos),\n s = i(this.uniqueValueGroups);\n return this.styleOrigin && (e._set(\"styleOrigin\", Object.freeze(i(this.styleOrigin))), Object.freeze(t), Object.freeze(s)), e._set(\"uniqueValueInfos\", t), e._updateValueInfoMap(), e._set(\"uniqueValueGroups\", s), e._isInfosSource = this._isInfosSource, e._watchUniqueValueInfosAndGroups(), e;\n }\n get arcadeRequired() {\n return this.arcadeRequiredForVisualVariables || !!this.valueExpression;\n }\n async collectRequiredFields(e, t) {\n const s = [this.collectVVRequiredFields(e, t), this.collectSymbolFields(e, t)];\n await Promise.all(s);\n }\n async collectSymbolFields(e, t) {\n const s = [...this.getSymbols().map(s => s.collectRequiredFields(e, t)), y(e, t, this.valueExpression)];\n b(e, t, this.field), b(e, t, this.field2), b(e, t, this.field3), await Promise.all(s);\n }\n populateFromStyle() {\n return D(this.styleOrigin, {\n portal: this.portal\n }).then(e => {\n const t = [];\n return this._valueInfoMap = {}, e?.data && Array.isArray(e.data.items) && e.data.items.forEach(s => {\n const i = new x({\n styleUrl: e.styleUrl,\n styleName: e.styleName,\n portal: this.portal,\n name: s.name\n });\n this.defaultSymbol || s.name !== e.data.defaultItem || (this.defaultSymbol = i, this._isDefaultSymbolDerived = !0);\n const o = new j({\n value: s.name,\n symbol: i\n });\n t.push(o), this._valueInfoMap[L(s.name)] = o;\n }), 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;\n });\n }\n _updateFieldDelimiter() {\n this.field && this.field2 && !this.fieldDelimiter && this._set(\"fieldDelimiter\", C);\n }\n _updateUniqueValues() {\n null != this._isInfosSource && (this._isInfosSource ? this._updateGroupsFromInfos() : this._updateInfosFromGroups());\n }\n _updateValueInfoMap() {\n this._valueInfoMap = {};\n const {\n uniqueValueInfos: e\n } = this;\n if (e) for (const t of e) this._valueInfoMap[L(t.value)] = t;\n }\n _watchUniqueValueInfosAndGroups() {\n this._watchUniqueValueInfos(), this._watchUniqueValueGroups();\n }\n _watchUniqueValueInfos() {\n this.removeHandles(R);\n const {\n uniqueValueInfos: e\n } = this;\n if (e) {\n const t = [];\n for (const s of e) t.push(r(() => ({\n symbol: s.symbol,\n value: s.value,\n label: s.label,\n description: s.description\n }), (e, t) => {\n e !== t && (this._updateGroupsFromInfos(), this._isInfosSource = !0);\n }, {\n sync: !0\n }));\n this.addHandles(t, R);\n }\n }\n _watchUniqueValueGroups() {\n this.removeHandles(P);\n const {\n uniqueValueGroups: e\n } = this;\n if (e) {\n const t = [];\n for (const s of e) {\n t.push(r(() => ({\n classes: s.classes\n }), (e, t) => {\n e !== t && (this._updateInfosFromGroups(), this._isInfosSource = !1);\n }, {\n sync: !0\n }));\n for (const e of s.classes ?? []) t.push(r(() => ({\n symbol: e.symbol,\n values: e.values,\n label: e.label,\n description: e.description\n }), (e, t) => {\n e !== t && (this._updateInfosFromGroups(), this._isInfosSource = !1);\n }, {\n sync: !0\n }));\n }\n this.addHandles(t, P);\n }\n }\n _updateInfosFromGroups() {\n if (!this.uniqueValueGroups) return this._set(\"uniqueValueInfos\", null), this._updateValueInfoMap(), void this._watchUniqueValueInfos();\n const e = [],\n {\n field: t,\n field2: s,\n field3: i,\n fieldDelimiter: o,\n uniqueValueGroups: l,\n valueExpression: r\n } = this;\n if (!t && !r) return this._set(\"uniqueValueInfos\", e), this._updateValueInfoMap(), void this._watchUniqueValueInfos();\n const u = !(!t || !s);\n for (const n of l) for (const t of n.classes ?? []) {\n const {\n symbol: l,\n label: r,\n values: n,\n description: a\n } = t;\n for (const t of n ?? []) {\n const {\n value: n,\n value2: p,\n value3: f\n } = t,\n d = [n];\n s && d.push(p), i && d.push(f);\n const c = u ? d.join(o || \"\") : d[0] ?? void 0;\n e.push(new j({\n symbol: l,\n label: r,\n value: c,\n description: a\n }));\n }\n }\n this._set(\"uniqueValueInfos\", e), this._updateValueInfoMap(), this._watchUniqueValueInfos();\n }\n _updateGroupsFromInfos(e = !1) {\n if (!this.uniqueValueInfos) return this._set(\"uniqueValueGroups\", null), void this._watchUniqueValueGroups();\n const {\n field: t,\n field2: s,\n valueExpression: i,\n fieldDelimiter: o,\n uniqueValueInfos: l\n } = this;\n if (!t && !i || !l.length) return this._set(\"uniqueValueGroups\", []), void this._watchUniqueValueGroups();\n const r = !(!t || !s),\n u = l.map(e => {\n const {\n symbol: t,\n label: s,\n value: i,\n description: l\n } = e,\n [u, n, a] = r ? i?.toString()?.split(o || \"\") || [] : [i];\n return new w({\n symbol: t,\n label: s,\n description: l,\n values: [new S({\n value: u,\n value2: n,\n value3: a\n })]\n });\n }),\n n = [new U({\n classes: u\n })];\n e && Object.freeze(n), this._set(\"uniqueValueGroups\", n), this._watchUniqueValueGroups();\n }\n _getUniqueValueInfo(e, t) {\n return this.valueExpression ? this._getUnqiueValueInfoForExpression(e, t) : this._getUnqiueValueInfoForFields(e);\n }\n _getUnqiueValueInfoForExpression(e, t) {\n const {\n viewingMode: s,\n scale: i,\n spatialReference: o,\n arcade: l,\n timeZone: r\n } = t ?? {};\n let u = this._cache.compiledFunc;\n const n = l.arcadeUtils;\n if (!u) {\n const e = n.createSyntaxTree(this.valueExpression);\n u = n.createFunction(e), this._cache.compiledFunc = u;\n }\n const a = n.executeFunction(u, n.createExecContext(e, n.getViewInfo({\n viewingMode: s,\n scale: i,\n spatialReference: o\n }), r));\n return this._valueInfoMap[L(a)];\n }\n _getUnqiueValueInfoForFields(e) {\n const t = this.field,\n s = e.attributes;\n let i;\n if (this.field2) {\n const e = this.field2,\n o = this.field3,\n l = [];\n t && l.push(s[t]), e && l.push(s[e]), o && l.push(s[o]), i = l.join(this.fieldDelimiter || \"\");\n } else t && (i = s[t]);\n return this._valueInfoMap[L(i)];\n }\n static fromPortalStyle(e, t) {\n const s = new E(t?.properties);\n s._set(\"styleOrigin\", Object.freeze({\n styleName: e\n })), s._set(\"portal\", t?.portal || v.getDefault());\n const i = s.populateFromStyle();\n return i.catch(t => {\n N().error(`#fromPortalStyle('${e}'[, ...])`, \"Failed to create unique value renderer from style name\", t);\n }), i;\n }\n static fromStyleUrl(e, t) {\n const s = new E(t?.properties);\n s._set(\"styleOrigin\", Object.freeze({\n styleUrl: e\n }));\n const i = s.populateFromStyle();\n return i.catch(t => {\n N().error(`#fromStyleUrl('${e}'[, ...])`, \"Failed to create unique value renderer from style URL\", t);\n }), i;\n }\n};\ne([u({\n readOnly: !0\n})], k.prototype, \"_cache\", null), e([a({\n uniqueValue: \"unique-value\"\n})], k.prototype, \"type\", void 0), e([u(g)], k.prototype, \"backgroundFillSymbol\", void 0), e([u({\n value: null,\n json: {\n type: String,\n read: {\n source: \"field1\"\n },\n write: {\n target: \"field1\"\n }\n }\n})], k.prototype, \"field\", null), e([n(\"field\")], k.prototype, \"castField\", null), e([d(\"field\")], k.prototype, \"writeField\", null), e([u({\n type: String,\n value: null,\n json: {\n write: !0\n }\n})], k.prototype, \"field2\", null), e([u({\n type: String,\n value: null,\n json: {\n write: !0\n }\n})], k.prototype, \"field3\", null), e([u({\n type: Boolean,\n json: {\n name: \"drawInClassOrder\",\n default: !1,\n write: !0,\n origins: {\n \"web-scene\": {\n write: !1\n }\n }\n }\n})], k.prototype, \"orderByClassesEnabled\", void 0), e([u({\n type: String,\n value: null,\n json: {\n write: !0\n }\n})], k.prototype, \"valueExpression\", null), e([u({\n type: String,\n json: {\n write: !0\n }\n})], k.prototype, \"valueExpressionTitle\", void 0), e([u({\n type: I,\n json: {\n write: !0\n }\n})], k.prototype, \"legendOptions\", void 0), e([u({\n type: String,\n json: {\n write: !0\n }\n})], k.prototype, \"defaultLabel\", void 0), e([u(l({\n ...q\n}, {\n json: {\n write: {\n overridePolicy() {\n return {\n enabled: !this._isDefaultSymbolDerived\n };\n }\n },\n origins: {\n \"web-scene\": {\n write: {\n overridePolicy() {\n return {\n enabled: !this._isDefaultSymbolDerived\n };\n }\n }\n }\n }\n }\n}))], k.prototype, \"defaultSymbol\", null), e([u({\n type: String,\n value: null,\n json: {\n write: !0\n }\n})], k.prototype, \"fieldDelimiter\", null), e([u({\n type: v,\n readOnly: !0\n})], k.prototype, \"portal\", void 0), e([p(\"portal\", [\"styleName\"])], k.prototype, \"readPortal\", null), e([u({\n readOnly: !0,\n json: {\n write: {\n enabled: !1,\n overridePolicy: () => ({\n enabled: !0\n })\n }\n }\n})], k.prototype, \"styleOrigin\", void 0), e([p(\"styleOrigin\", [\"styleName\", \"styleUrl\"])], k.prototype, \"readStyleOrigin\", null), e([d(\"styleOrigin\", {\n styleName: {\n type: String\n },\n styleUrl: {\n type: String\n }\n})], k.prototype, \"writeStyleOrigin\", null), e([u({\n type: [U],\n json: {\n read: {\n source: [\"uniqueValueGroups\", \"uniqueValueInfos\"],\n reader: (e, t, s) => (t.uniqueValueGroups || z(t)).map(e => U.fromJSON(e, s))\n },\n write: {\n overridePolicy() {\n return this.styleOrigin ? {\n enabled: !1\n } : {\n enabled: !0\n };\n }\n }\n }\n})], k.prototype, \"uniqueValueGroups\", null), e([u({\n type: [j],\n json: {\n read: !1,\n write: {\n overridePolicy() {\n return this.styleOrigin ? {\n enabled: !1\n } : {\n enabled: !0\n };\n }\n }\n }\n})], k.prototype, \"uniqueValueInfos\", null), k = E = e([f(M)], k);\nconst A = k;\nexport { A as default };"],"mappings":"81CAWA,IAAIA,GACAC,EAAID,GAAI,cAAcE,CAAE,CAC1B,YAAYC,EAAG,CACb,MAAMA,CAAC,EAAG,KAAK,SAAW,EAAG,KAAK,SAAW,CAC/C,CACA,OAAQ,CACN,OAAO,IAAIH,GAAE,CACX,SAAU,KAAK,SACf,SAAU,KAAK,QACjB,CAAC,CACH,CACF,EACAG,EAAE,CAACC,EAAE,CACH,KAAM,OACN,KAAM,CACJ,MAAO,EACT,CACF,CAAC,CAAC,EAAGH,EAAE,UAAW,WAAY,MAAM,EAAGE,E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,CAAC,EAAGY,EAAE,UAAW,kBAAmB,IAAI,EAAGV,EAAE,CAACA,EAAE,cAAe,CACpJ,UAAW,CACT,KAAM,MACR,EACA,SAAU,CACR,KAAM,MACR,CACF,CAAC,CAAC,EAAGU,EAAE,UAAW,mBAAoB,IAAI,EAAGV,EAAE,CAACa,EAAE,CAChD,KAAM,CAACN,EAAC,EACR,KAAM,CACJ,KAAM,CACJ,OAAQ,CAAC,oBAAqB,kBAAkB,EAChD,OAAQ,CAAC,EAAGZ,EAAGC,KAAOD,EAAE,mBAAqBD,GAAEC,CAAC,GAAG,IAAIO,GAAKK,GAAE,SAASL,EAAGN,CAAC,CAAC,CAC9E,EACA,MAAO,CACL,gBAAiB,CACf,OAAO,KAAK,YAAc,CACxB,QAAS,EACX,EAAI,CACF,QAAS,EACX,CACF,CACF,CACF,CACF,CAAC,CAAC,EAAGc,EAAE,UAAW,oBAAqB,IAAI,EAAGV,EAAE,CAACa,EAAE,CACjD,KAAM,CAACzB,CAAC,EACR,KAAM,CACJ,KAAM,GACN,MAAO,CACL,gBAAiB,CACf,OAAO,KAAK,YAAc,CACxB,QAAS,EACX,EAAI,CACF,QAAS,EACX,CACF,CACF,CACF,CACF,CAAC,CAAC,EAAGsB,EAAE,UAAW,mBAAoB,IAAI,EAAGA,EAAIxB,GAAIc,EAAE,CAACG,EAAEhB,EAAC,CAAC,EAAGuB,CAAC,EAChE,IAAMS,GAAIT","names":["t","p","f","r","m","a","n","a","f","o","r","m","p","t","p","f","r","m","a","i","a","p","n","u","m","c","y","h","S","d","f","r","s","i","t","c","h","n","y","m","f","v","w","b","g","t","p","a","r","o","x","j","n","a","f","r","__async","e","m","j","p","e","t","p","i","f","r","m","a","a","n","u","f","r","m","s","i","c","i","a","c","t","o","r","m","p","l","u","f","r","o","t","n","m","x","a","i","a","c","t","s","r","m","n","p","s","i","c","r","m","a","e","o","t","i","r","m","a","p","z","v","n","w","g","e","__spreadValues","f","V","t","i","s","c","a","r","m","p","o","b","b","p","a","u","n","h","m","r","s","o","i","l","e","V","m","c","p","a","b","v","l","u","V","s","i","__async","w","y","h","r","o","e","y","h","l","w","u","m","n","j","a","r","c","i","f","o","r","m","a","l","n","i","f","r","o","l","m","y","e","t","s","F","a","u","i","f","o","r","m","u","a","c","l","p","f","o","r","m","a","n","E","M","n","R","P","C","$","w","z","t","s","i","o","l","r","u","e","a","p","f","d","c","h","L","k","v","b","m","B","__async","__spreadProps","__spreadValues","y","A"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]}