{"version":3,"sources":["node_modules/@arcgis/core/views/2d/engine/vectorTiles/MemoryBuffer.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/shaders/enums.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/shaders/VTLMaterial.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/shaders/VTLBackgroundMaterial.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/shaders/VTLCircleMaterial.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/shaders/VTLFillMaterial.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/shaders/VTLLineMaterial.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/shaders/VTLSymbolMaterial.js","node_modules/@arcgis/core/views/2d/unitBezier.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/expression/types.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/expression/expression.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/style/Filter.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/style/StyleProperty.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/style/StyleLayer.js","node_modules/@arcgis/core/views/2d/engine/vectorTiles/style/StyleRepository.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 \"../../../../core/has.js\";\nclass t {\n constructor(t) {\n this._array = [], this._stride = t;\n }\n get array() {\n return this._array;\n }\n get index() {\n return 4 * this._array.length / this._stride;\n }\n get itemSize() {\n return this._stride;\n }\n get sizeInBytes() {\n return 4 * this._array.length;\n }\n reset() {\n this.array.length = 0;\n }\n toBuffer() {\n return new Uint32Array(this._array).buffer;\n }\n static i1616to32(t, r) {\n return 65535 & t | r << 16;\n }\n static i8888to32(t, r, e, i) {\n return 255 & t | (255 & r) << 8 | (255 & e) << 16 | i << 24;\n }\n static i8816to32(t, r, e) {\n return 255 & t | (255 & r) << 8 | e << 16;\n }\n}\nexport { t 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*/\nvar N, R;\n!function (N) {\n N[N.R8_SIGNED = 0] = \"R8_SIGNED\", N[N.R8_UNSIGNED = 1] = \"R8_UNSIGNED\", N[N.R16_SIGNED = 2] = \"R16_SIGNED\", N[N.R16_UNSIGNED = 3] = \"R16_UNSIGNED\", N[N.R8G8_SIGNED = 4] = \"R8G8_SIGNED\", N[N.R8G8_UNSIGNED = 5] = \"R8G8_UNSIGNED\", N[N.R16G16_SIGNED = 6] = \"R16G16_SIGNED\", N[N.R16G16_UNSIGNED = 7] = \"R16G16_UNSIGNED\", N[N.R8G8B8A8_SIGNED = 8] = \"R8G8B8A8_SIGNED\", N[N.R8G8B8A8_UNSIGNED = 9] = \"R8G8B8A8_UNSIGNED\", N[N.R8G8B8A8_COLOR = 10] = \"R8G8B8A8_COLOR\", N[N.R16G16B16A16_DASHARRAY = 11] = \"R16G16B16A16_DASHARRAY\", N[N.R16G16B16A16_PATTERN = 12] = \"R16G16B16A16_PATTERN\";\n}(N || (N = {})), function (N) {\n N[N.UNIFORM = 0] = \"UNIFORM\", N[N.DATA_DRIVEN = 1] = \"DATA_DRIVEN\", N[N.INTERPOLATED_DATA_DRIVEN = 2] = \"INTERPOLATED_DATA_DRIVEN\", N[N.UNUSED = 3] = \"UNUSED\";\n}(R || (R = {}));\nexport { R as AttributeStatus, N as EncodingType };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport t from \"../MemoryBuffer.js\";\nimport { EncodingType as e, AttributeStatus as n } from \"./enums.js\";\nimport { DataType as o } from \"../../../../webgl/enums.js\";\nimport { VertexElementDescriptor as s } from \"../../../../webgl/VertexElementDescriptor.js\";\nclass r {\n constructor(t) {\n this._locations = new Map(), this._key = t;\n }\n get key() {\n return this._key;\n }\n get type() {\n return 7 & this._key;\n }\n defines() {\n return [];\n }\n getStride() {\n return this._layout || this._buildAttributesInfo(), this._stride;\n }\n getAttributeLocations() {\n return 0 === this._locations.size && this._buildAttributesInfo(), this._locations;\n }\n getLayoutInfo() {\n return this._layout || this._buildAttributesInfo(), this._layout;\n }\n getEncodingInfos() {\n return this._propertyEncodingInfo || this._buildAttributesInfo(), this._propertyEncodingInfo;\n }\n getUniforms() {\n return this._uniforms || this._buildAttributesInfo(), this._uniforms;\n }\n getShaderHeader() {\n return this._shaderHeader || this._buildAttributesInfo(), this._shaderHeader;\n }\n getShaderMain() {\n return this._shaderMain || this._buildAttributesInfo(), this._shaderMain;\n }\n setDataUniforms(t, e, n, o, s) {\n const r = this.getUniforms();\n for (const i of r) {\n const {\n name: r,\n type: a,\n getValue: c\n } = i,\n u = c(n, e, o, s);\n if (null !== u) switch (a) {\n case \"float\":\n t.setUniform1f(r, u);\n break;\n case \"vec2\":\n t.setUniform2fv(r, u);\n break;\n case \"vec4\":\n t.setUniform4fv(r, u);\n }\n }\n }\n encodeAttributes(t, n, o, s) {\n const r = this.attributesInfo(),\n i = this.getEncodingInfos(),\n a = [];\n let c = 0,\n u = 0;\n for (const _ of Object.keys(i)) {\n const l = i[_],\n {\n type: f,\n precisionFactor: h,\n isLayout: d\n } = r[_],\n y = d ? o.getLayoutProperty(_) : o.getPaintProperty(_),\n m = y.interpolator?.getInterpolationRange(n);\n let E = 0;\n for (const o of l) {\n const {\n offset: r,\n bufferElementsToAdd: i\n } = o;\n if (i > 0) {\n for (let t = 0; t < i; t++) a.push(0);\n c += u, u = o.bufferElementsToAdd;\n }\n const _ = s ?? y.getValue(m ? m[E] : n, t);\n switch (f) {\n case e.R8_SIGNED:\n case e.R8_UNSIGNED:\n a[c] |= this._encodeByte(_ * (h || 1), 8 * r);\n break;\n case e.R16_SIGNED:\n case e.R16_UNSIGNED:\n a[c] |= this._encodeShort(_ * (h || 1), 8 * r);\n break;\n case e.R8G8_SIGNED:\n case e.R8G8_UNSIGNED:\n a[c] |= this._encodeByte(_ * (h || 1), 8 * r), a[c] |= this._encodeByte(_ * (h || 1), 8 * r + 8);\n break;\n case e.R16G16_SIGNED:\n case e.R16G16_UNSIGNED:\n a[c] |= this._encodeShort(_ * (h || 1), 8 * r), a[c] |= this._encodeShort(_ * (h || 1), 8 * r + 16);\n break;\n case e.R8G8B8A8_SIGNED:\n case e.R8G8B8A8_UNSIGNED:\n a[c] |= this._encodeByte(_ * (h || 1), 8 * r), a[c] |= this._encodeByte(_ * (h || 1), 8 * r + 8), a[c] |= this._encodeByte(_ * (h || 1), 8 * r + 16), a[c] |= this._encodeByte(_ * (h || 1), 8 * r + 24);\n break;\n case e.R8G8B8A8_COLOR:\n a[c] = this._encodeColor(_);\n break;\n case e.R16G16B16A16_DASHARRAY:\n case e.R16G16B16A16_PATTERN:\n this._encodePattern(c, a, _);\n break;\n default:\n throw new Error(\"Unsupported encoding type\");\n }\n E++;\n }\n }\n return a;\n }\n getAtributeState(t) {\n let e = 0;\n const n = 3 + 2 * t;\n return e |= this._bit(n), e |= this._bit(n + 1) << 1, e;\n }\n _buildAttributesInfo() {\n const t = [],\n e = {},\n s = {};\n let i = -1;\n const a = this.attributesInfo(),\n c = this.attributes();\n let u = -1;\n for (const o of c) {\n u++;\n const c = this.getAtributeState(u);\n if (c === n.UNIFORM || c === n.UNUSED) continue;\n const _ = a[o],\n l = [];\n e[o] = l;\n const f = _.type;\n for (let e = 0; e < c; e++) {\n const {\n dataType: e,\n bytesPerElement: n,\n count: o,\n normalized: a\n } = r._encodingInfo[f],\n c = n * o,\n u = `${e}-${!0 === a}`;\n let _ = s[u],\n h = 0;\n if (!_ || _.count + o > 4) i++, _ = {\n dataIndex: i,\n count: 0,\n offset: 0\n }, 4 !== o && (s[u] = _), t.push({\n location: -1,\n name: \"a_data_\" + i,\n count: o,\n type: e,\n normalized: a\n }), h = Math.ceil(Math.max(c / 4, 1));else {\n const e = t[_.dataIndex];\n e.count += o;\n h = Math.ceil(Math.max(e.count * n / 4, 1)) - Math.ceil(Math.max(_.offset / 4, 1));\n }\n l.push({\n dataIndex: _.dataIndex,\n offset: _.offset,\n bufferElementsToAdd: h\n }), _.offset += c, _.count += o;\n }\n }\n for (const n of t) switch (n.type) {\n case o.BYTE:\n case o.UNSIGNED_BYTE:\n n.count = 4;\n break;\n case o.SHORT:\n case o.UNSIGNED_SHORT:\n n.count += n.count % 2;\n }\n this._buildVertexBufferLayout(t);\n let _ = 0;\n const l = this._layout.get(\"geometry\");\n for (const n of l) this._locations.set(n.name, _++);\n const f = this._layout.get(\"opacity\");\n if (f) for (const n of f) this._locations.set(n.name, _++);\n this._buildShaderInfo(t, e), this._propertyEncodingInfo = e;\n }\n _buildVertexBufferLayout(t) {\n const e = new Map(),\n n = this.geometryInfo();\n let o = n[0].stride;\n if (0 === t.length) e.set(\"geometry\", n);else {\n const r = [];\n let a = o;\n for (const e of t) o += i(e.type) * e.count;\n for (const t of n) r.push(new s(t.name, t.count, t.type, t.offset, o, t.normalized));\n for (const e of t) r.push(new s(e.name, e.count, e.type, a, o, e.normalized)), a += i(e.type) * e.count;\n e.set(\"geometry\", r);\n }\n const r = this.opacityInfo();\n r && e.set(\"opacity\", r), this._layout = e, this._stride = o;\n }\n _buildShaderInfo(t, o) {\n let s = \"\\n\",\n i = \"\\n\";\n const c = [];\n for (const e of t) s += `attribute ${this._getType(e.count)} ${e.name};\\n`;\n const u = this.attributes(),\n _ = this.attributesInfo();\n let l = -1;\n for (const f of u) {\n l++;\n const {\n name: t,\n type: u,\n precisionFactor: h,\n isLayout: d\n } = _[f],\n y = h && 1 !== h ? \" * \" + 1 / h : \"\",\n {\n bytesPerElement: m,\n count: E\n } = r._encodingInfo[u],\n I = t => `a_data_${t.dataIndex}${a(E, t.offset, m)}`;\n switch (this.getAtributeState(l)) {\n case n.UNIFORM:\n {\n const n = this._getType(E),\n o = `u_${t}`;\n c.push({\n name: o,\n type: n,\n getValue: (t, n, o, s) => {\n const r = d ? t.getLayoutValue(f, n) : t.getPaintValue(f, n);\n if (u === e.R16G16B16A16_DASHARRAY) {\n const e = t.getDashKey(r, t.getLayoutValue(\"line-cap\", n)),\n o = s.getMosaicItemPosition(e, !1);\n if (null == o) return null;\n const {\n tl: i,\n br: a\n } = o;\n return [i[0], a[1], a[0], i[1]];\n }\n if (u === e.R16G16B16A16_PATTERN) {\n const t = s.getMosaicItemPosition(r, !f.includes(\"line-\"));\n if (null == t) return null;\n const {\n tl: e,\n br: n\n } = t;\n return [e[0], n[1], n[0], e[1]];\n }\n if (u === e.R8G8B8A8_COLOR) {\n const t = r[3];\n return [t * r[0], t * r[1], t * r[2], t];\n }\n return r;\n }\n }), s += `uniform ${n} ${o};\\n`, i += `${n} ${t} = ${o};\\n`;\n }\n break;\n case n.DATA_DRIVEN:\n {\n const e = I(o[f][0]);\n i += `${this._getType(E)} ${t} = ${e}${y};\\n`;\n }\n break;\n case n.INTERPOLATED_DATA_DRIVEN:\n {\n const e = `u_t_${t}`;\n c.push({\n name: e,\n type: \"float\",\n getValue: (t, e, n, o) => (d ? t.getLayoutProperty(f) : t.getPaintProperty(f)).interpolator.interpolationUniformValue(n, e)\n }), s += `uniform float ${e};\\n`;\n const n = I(o[f][0]),\n r = I(o[f][1]);\n i += `${this._getType(E)} ${t} = mix(${n}${y}, ${r}${y}, ${e});\\n`;\n }\n }\n }\n this._shaderHeader = s, this._shaderMain = i, this._uniforms = c;\n }\n _bit(t) {\n return (this._key & 1 << t) >> t;\n }\n _getType(t) {\n switch (t) {\n case 1:\n return \"float\";\n case 2:\n return \"vec2\";\n case 3:\n return \"vec3\";\n case 4:\n return \"vec4\";\n }\n throw new Error(\"Invalid count\");\n }\n _encodeColor(e) {\n const n = 255 * e[3];\n return t.i8888to32(e[0] * n, e[1] * n, e[2] * n, n);\n }\n _encodePattern(t, e, n) {\n if (!n?.rect) return;\n const o = 2,\n s = n.rect,\n r = n.width,\n i = n.height;\n e[t] = this._encodeShort(s.x + o, 0), e[t] |= this._encodeShort(s.y + o + i, 16), e[t + 1] = this._encodeShort(s.x + o + r, 0), e[t + 1] |= this._encodeShort(s.y + o, 16);\n }\n _encodeByte(t, e) {\n return (255 & t) << e;\n }\n _encodeShort(t, e) {\n return (65535 & t) << e;\n }\n}\nr._encodingInfo = {\n [e.R8_SIGNED]: {\n dataType: o.BYTE,\n bytesPerElement: 1,\n count: 1,\n normalized: !1\n },\n [e.R8_UNSIGNED]: {\n dataType: o.UNSIGNED_BYTE,\n bytesPerElement: 1,\n count: 1,\n normalized: !1\n },\n [e.R16_SIGNED]: {\n dataType: o.SHORT,\n bytesPerElement: 2,\n count: 1,\n normalized: !1\n },\n [e.R16_UNSIGNED]: {\n dataType: o.UNSIGNED_SHORT,\n bytesPerElement: 2,\n count: 1,\n normalized: !1\n },\n [e.R8G8_SIGNED]: {\n dataType: o.BYTE,\n bytesPerElement: 1,\n count: 2,\n normalized: !1\n },\n [e.R8G8_UNSIGNED]: {\n dataType: o.UNSIGNED_BYTE,\n bytesPerElement: 1,\n count: 2,\n normalized: !1\n },\n [e.R16G16_SIGNED]: {\n dataType: o.SHORT,\n bytesPerElement: 2,\n count: 2,\n normalized: !1\n },\n [e.R16G16_UNSIGNED]: {\n dataType: o.UNSIGNED_SHORT,\n bytesPerElement: 2,\n count: 2,\n normalized: !1\n },\n [e.R8G8B8A8_SIGNED]: {\n dataType: o.BYTE,\n bytesPerElement: 1,\n count: 4,\n normalized: !1\n },\n [e.R8G8B8A8_UNSIGNED]: {\n dataType: o.UNSIGNED_BYTE,\n bytesPerElement: 1,\n count: 4,\n normalized: !1\n },\n [e.R8G8B8A8_COLOR]: {\n dataType: o.UNSIGNED_BYTE,\n bytesPerElement: 1,\n count: 4,\n normalized: !0\n },\n [e.R16G16B16A16_DASHARRAY]: {\n dataType: o.UNSIGNED_SHORT,\n bytesPerElement: 2,\n count: 4,\n normalized: !1\n },\n [e.R16G16B16A16_PATTERN]: {\n dataType: o.UNSIGNED_SHORT,\n bytesPerElement: 2,\n count: 4,\n normalized: !1\n }\n};\nconst i = t => {\n switch (t) {\n case o.FLOAT:\n case o.INT:\n case o.UNSIGNED_INT:\n return 4;\n case o.SHORT:\n case o.UNSIGNED_SHORT:\n case o.HALF_FLOAT:\n return 2;\n case o.BYTE:\n case o.UNSIGNED_BYTE:\n return 1;\n }\n },\n a = (t, e, n) => {\n const o = e / n;\n if (1 === t) switch (o) {\n case 0:\n return \".x\";\n case 1:\n return \".y\";\n case 2:\n return \".z\";\n case 3:\n return \".w\";\n } else if (2 === t) switch (o) {\n case 0:\n return \".xy\";\n case 1:\n return \".yz\";\n case 2:\n return \".zw\";\n } else if (3 === t) switch (o) {\n case 0:\n return \".xyz\";\n case 1:\n return \".yzw\";\n }\n return \"\";\n };\nexport { r as VTLMaterial };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { VTLMaterial as r } from \"./VTLMaterial.js\";\nimport { DataType as t } from \"../../../../webgl/enums.js\";\nimport { VertexElementDescriptor as e } from \"../../../../webgl/VertexElementDescriptor.js\";\nclass T extends r {\n constructor(r) {\n super(r);\n }\n geometryInfo() {\n return T.GEOMETRY_LAYOUT;\n }\n opacityInfo() {\n return null;\n }\n attributes() {\n return T.ATTRIBUTES;\n }\n attributesInfo() {\n return T.ATTRIBUTES_INFO;\n }\n}\nT.ATTRIBUTES = [], T.GEOMETRY_LAYOUT = [new e(\"a_pos\", 2, t.BYTE, 0, 2)], T.ATTRIBUTES_INFO = {};\nexport { T as VTLBackgroundMaterial };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { EncodingType as r } from \"./enums.js\";\nimport { VTLMaterial as e } from \"./VTLMaterial.js\";\nimport { DataType as c } from \"../../../../webgl/enums.js\";\nimport { VertexElementDescriptor as o } from \"../../../../webgl/VertexElementDescriptor.js\";\nclass t extends e {\n constructor(r) {\n super(r);\n }\n geometryInfo() {\n return t.GEOMETRY_LAYOUT;\n }\n opacityInfo() {\n return null;\n }\n attributes() {\n return t.ATTRIBUTES;\n }\n attributesInfo() {\n return t.ATTRIBUTES_INFO;\n }\n}\nt.ATTRIBUTES = [\"circle-radius\", \"circle-color\", \"circle-opacity\", \"circle-stroke-width\", \"circle-stroke-color\", \"circle-stroke-opacity\", \"circle-blur\"], t.GEOMETRY_LAYOUT = [new o(\"a_pos\", 2, c.SHORT, 0, 4)], t.ATTRIBUTES_INFO = {\n \"circle-radius\": {\n name: \"radius\",\n type: r.R8_UNSIGNED\n },\n \"circle-color\": {\n name: \"color\",\n type: r.R8G8B8A8_COLOR\n },\n \"circle-opacity\": {\n name: \"opacity\",\n type: r.R8_UNSIGNED,\n precisionFactor: 100\n },\n \"circle-stroke-width\": {\n name: \"stroke_width\",\n type: r.R8_UNSIGNED,\n precisionFactor: 4\n },\n \"circle-stroke-color\": {\n name: \"stroke_color\",\n type: r.R8G8B8A8_COLOR\n },\n \"circle-stroke-opacity\": {\n name: \"stroke_opacity\",\n type: r.R8_UNSIGNED,\n precisionFactor: 100\n },\n \"circle-blur\": {\n name: \"blur\",\n type: r.R8_UNSIGNED,\n precisionFactor: 32\n }\n};\nexport { t as VTLCircleMaterial };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { EncodingType as o } from \"./enums.js\";\nimport { VTLMaterial as t } from \"./VTLMaterial.js\";\nimport { DataType as r } from \"../../../../webgl/enums.js\";\nimport { VertexElementDescriptor as e } from \"../../../../webgl/VertexElementDescriptor.js\";\nclass l extends t {\n constructor(o) {\n super(o);\n }\n geometryInfo() {\n return l.GEOMETRY_LAYOUT;\n }\n opacityInfo() {\n return null;\n }\n attributes() {\n return l.ATTRIBUTES;\n }\n attributesInfo() {\n return l.ATTRIBUTES_INFO;\n }\n}\nl.ATTRIBUTES = [\"fill-color\", \"fill-opacity\", \"fill-pattern\"], l.GEOMETRY_LAYOUT = [new e(\"a_pos\", 2, r.SHORT, 0, 4)], l.ATTRIBUTES_INFO = {\n \"fill-color\": {\n name: \"color\",\n type: o.R8G8B8A8_COLOR\n },\n \"fill-opacity\": {\n name: \"opacity\",\n type: o.R8_UNSIGNED,\n precisionFactor: 100\n },\n \"fill-pattern\": {\n name: \"tlbr\",\n type: o.R16G16B16A16_PATTERN,\n isOptional: !0\n }\n};\nclass T extends t {\n constructor(o, t) {\n super(o), this._usefillColor = t;\n }\n geometryInfo() {\n return T.GEOMETRY_LAYOUT;\n }\n opacityInfo() {\n return null;\n }\n attributes() {\n return this._usefillColor ? T.ATTRIBUTES_FILL : T.ATTRIBUTES_OUTLINE;\n }\n attributesInfo() {\n return this._usefillColor ? T.ATTRIBUTES_INFO_FILL : T.ATTRIBUTES_INFO_OUTLINE;\n }\n}\nT.ATTRIBUTES_OUTLINE = [\"fill-outline-color\", \"fill-opacity\"], T.ATTRIBUTES_FILL = [\"fill-color\", \"fill-opacity\"], T.GEOMETRY_LAYOUT = [new e(\"a_pos\", 2, r.SHORT, 0, 8), new e(\"a_offset\", 2, r.BYTE, 4, 8), new e(\"a_xnormal\", 2, r.BYTE, 6, 8)], T.ATTRIBUTES_INFO_OUTLINE = {\n \"fill-outline-color\": {\n name: \"color\",\n type: o.R8G8B8A8_COLOR\n },\n \"fill-opacity\": {\n name: \"opacity\",\n type: o.R8_UNSIGNED,\n precisionFactor: 100\n }\n}, T.ATTRIBUTES_INFO_FILL = {\n \"fill-color\": {\n name: \"color\",\n type: o.R8G8B8A8_COLOR\n },\n \"fill-opacity\": {\n name: \"opacity\",\n type: o.R8_UNSIGNED,\n precisionFactor: 100\n }\n};\nexport { l as VTLFillMaterial, T as VTLOutlineMaterial };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { EncodingType as e } from \"./enums.js\";\nimport { VTLMaterial as t } from \"./VTLMaterial.js\";\nimport { DataType as r } from \"../../../../webgl/enums.js\";\nimport { VertexElementDescriptor as n } from \"../../../../webgl/VertexElementDescriptor.js\";\nclass i extends t {\n constructor(e) {\n super(e);\n }\n geometryInfo() {\n return i.GEOMETRY_LAYOUT;\n }\n opacityInfo() {\n return null;\n }\n attributes() {\n return i.ATTRIBUTES;\n }\n attributesInfo() {\n return i.ATTRIBUTES_INFO;\n }\n}\ni.ATTRIBUTES = [\"line-blur\", \"line-color\", \"line-gap-width\", \"line-offset\", \"line-opacity\", \"line-width\", \"line-pattern\", \"line-dasharray\"], i.GEOMETRY_LAYOUT = [new n(\"a_pos\", 2, r.SHORT, 0, 16), new n(\"a_extrude_offset\", 4, r.BYTE, 4, 16), new n(\"a_dir_normal\", 4, r.BYTE, 8, 16), new n(\"a_accumulatedDistance\", 2, r.UNSIGNED_SHORT, 12, 16)], i.ATTRIBUTES_INFO = {\n \"line-width\": {\n name: \"width\",\n type: e.R8_UNSIGNED,\n precisionFactor: 2\n },\n \"line-gap-width\": {\n name: \"gap_width\",\n type: e.R8_UNSIGNED,\n precisionFactor: 2\n },\n \"line-offset\": {\n name: \"offset\",\n type: e.R8_SIGNED,\n precisionFactor: 2\n },\n \"line-color\": {\n name: \"color\",\n type: e.R8G8B8A8_COLOR\n },\n \"line-opacity\": {\n name: \"opacity\",\n type: e.R8_UNSIGNED,\n precisionFactor: 100\n },\n \"line-blur\": {\n name: \"blur\",\n type: e.R8_UNSIGNED,\n precisionFactor: 4\n },\n \"line-pattern\": {\n name: \"tlbr\",\n type: e.R16G16B16A16_PATTERN,\n isOptional: !0\n },\n \"line-dasharray\": {\n name: \"tlbr\",\n type: e.R16G16B16A16_DASHARRAY,\n isOptional: !0\n }\n};\nexport { i as VTLLineMaterial };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { EncodingType as o } from \"./enums.js\";\nimport { VTLMaterial as t } from \"./VTLMaterial.js\";\nimport { DataType as e } from \"../../../../webgl/enums.js\";\nimport { VertexElementDescriptor as r } from \"../../../../webgl/VertexElementDescriptor.js\";\nconst a = [new r(\"a_pos\", 2, e.SHORT, 0, 16), new r(\"a_vertexOffset\", 2, e.SHORT, 4, 16), new r(\"a_texAngleRange\", 4, e.UNSIGNED_BYTE, 8, 16), new r(\"a_levelInfo\", 4, e.UNSIGNED_BYTE, 12, 16)],\n n = [new r(\"a_opacityInfo\", 1, e.UNSIGNED_BYTE, 0, 1)];\nclass i extends t {\n constructor(o) {\n super(o);\n }\n geometryInfo() {\n return a;\n }\n opacityInfo() {\n return n;\n }\n attributes() {\n return i.ATTRIBUTES;\n }\n attributesInfo() {\n return i.ATTRIBUTES_INFO;\n }\n}\ni.ATTRIBUTES = [\"icon-color\", \"icon-opacity\", \"icon-halo-blur\", \"icon-halo-color\", \"icon-halo-width\", \"icon-size\"], i.ATTRIBUTES_INFO = {\n \"icon-color\": {\n name: \"color\",\n type: o.R8G8B8A8_COLOR\n },\n \"icon-opacity\": {\n name: \"opacity\",\n type: o.R8_UNSIGNED,\n precisionFactor: 100\n },\n \"icon-halo-color\": {\n name: \"halo_color\",\n type: o.R8G8B8A8_COLOR\n },\n \"icon-halo-width\": {\n name: \"halo_width\",\n type: o.R8_UNSIGNED,\n precisionFactor: 4\n },\n \"icon-halo-blur\": {\n name: \"halo_blur\",\n type: o.R8_UNSIGNED,\n precisionFactor: 4\n },\n \"icon-size\": {\n name: \"size\",\n type: o.R8_UNSIGNED,\n precisionFactor: 32,\n isLayout: !0\n }\n};\nclass c extends t {\n constructor(o) {\n super(o);\n }\n geometryInfo() {\n return a;\n }\n opacityInfo() {\n return n;\n }\n attributes() {\n return c.ATTRIBUTES;\n }\n attributesInfo() {\n return c.ATTRIBUTES_INFO;\n }\n}\nc.ATTRIBUTES = [\"text-color\", \"text-opacity\", \"text-halo-blur\", \"text-halo-color\", \"text-halo-width\", \"text-size\"], c.ATTRIBUTES_INFO = {\n \"text-color\": {\n name: \"color\",\n type: o.R8G8B8A8_COLOR\n },\n \"text-opacity\": {\n name: \"opacity\",\n type: o.R8_UNSIGNED,\n precisionFactor: 100\n },\n \"text-halo-color\": {\n name: \"halo_color\",\n type: o.R8G8B8A8_COLOR\n },\n \"text-halo-width\": {\n name: \"halo_width\",\n type: o.R8_UNSIGNED,\n precisionFactor: 4\n },\n \"text-halo-blur\": {\n name: \"halo_blur\",\n type: o.R8_UNSIGNED,\n precisionFactor: 4\n },\n \"text-size\": {\n name: \"size\",\n type: o.R8_UNSIGNED,\n isLayout: !0\n }\n};\nexport { i as VTLIconMaterial, c as VTLTextMaterial };","/*\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, t, r) {\n const u = 3 * e,\n i = 3 * (t - e) - u,\n a = 1 - u - i,\n o = 3 * n,\n s = 3 * (r - n) - o,\n f = 1 - o - s;\n function c(e) {\n return ((a * e + i) * e + u) * e;\n }\n function l(e) {\n return ((f * e + s) * e + o) * e;\n }\n function b(e) {\n return (3 * a * e + 2 * i) * e + u;\n }\n function p(e, n) {\n let t, r, u, i, a, o;\n for (u = e, o = 0; o < 8; o++) {\n if (i = c(u) - e, Math.abs(i) < n) return u;\n if (a = b(u), Math.abs(a) < 1e-6) break;\n u -= i / a;\n }\n if (t = 0, r = 1, u = e, u < t) return t;\n if (u > r) return r;\n for (; t < r;) {\n if (i = c(u), Math.abs(i - e) < n) return u;\n e > i ? t = u : r = u, u = .5 * (r - t) + t;\n }\n return u;\n }\n return function (e, n = 1e-6) {\n return l(p(e, n));\n };\n}\nconst n = /^cubic-bezier\\((.*)\\)/,\n t = {};\nfunction r(r) {\n let u = t[r] || null;\n if (!u) {\n const t = n.exec(r);\n if (t) {\n const n = t[1].split(\",\").map(e => parseFloat(e.trim()));\n 4 !== n.length || n.some(e => isNaN(e)) || (u = e.apply(e, n));\n }\n }\n return u;\n}\nt.ease = e(.25, .1, .25, 1), t.linear = e(0, 0, 1, 1), t.easeIn = t[\"ease-in\"] = e(.42, 0, 1, 1), t.easeOut = t[\"ease-out\"] = e(0, 0, .58, 1), t.easeInOut = t[\"ease-in-out\"] = e(.42, 0, .58, 1);\nexport { t as easingFunctions, r as parse, e as unitBezier };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport n from \"../../../../../Color.js\";\nconst r = {\n kind: \"null\"\n },\n e = {\n kind: \"number\"\n },\n t = {\n kind: \"string\"\n },\n i = {\n kind: \"boolean\"\n },\n o = {\n kind: \"color\"\n },\n f = {\n kind: \"object\"\n },\n u = {\n kind: \"value\"\n };\nfunction a(n, r) {\n return {\n kind: \"array\",\n itemType: n,\n n: r\n };\n}\nconst y = [r, e, t, i, o, f, a(u)];\nfunction k(n) {\n if (\"array\" === n.kind) {\n const r = k(n.itemType);\n return \"number\" == typeof n.n ? `array<${r}, ${n.n}>` : \"value\" === n.itemType.kind ? \"array\" : `array<${r}>`;\n }\n return n.kind;\n}\nfunction l(y) {\n if (null === y) return r;\n if (\"string\" == typeof y) return t;\n if (\"boolean\" == typeof y) return i;\n if (\"number\" == typeof y) return e;\n if (y instanceof n) return o;\n if (Array.isArray(y)) {\n let n;\n for (const r of y) {\n const e = l(r);\n if (n) {\n if (n !== e) {\n n = u;\n break;\n }\n } else n = e;\n }\n return a(n || u, y.length);\n }\n return \"object\" == typeof y ? f : u;\n}\nfunction c(n, r) {\n if (\"array\" === r.kind) return \"array\" === n.kind && (0 === n.n && \"value\" === n.itemType.kind || c(n.itemType, r.itemType)) && (\"number\" != typeof r.n || r.n === n.n);\n if (\"value\" === r.kind) for (const e of y) if (c(n, e)) return !0;\n return r.kind === n.kind;\n}\nfunction d(r) {\n if (null === r) return \"\";\n const e = typeof r;\n return \"string\" === e ? r : \"number\" === e || \"boolean\" === e ? String(r) : r instanceof n ? r.toString() : JSON.stringify(r);\n}\nexport { a as arrayType, i as booleanType, o as colorType, l as getType, c as matchType, r as nullType, e as numberType, f as objectType, t as stringType, k as typeToString, d as valueToString, u as valueType };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport t from \"../../../../../Color.js\";\nimport { toLCH as e, toRGB as r, toLAB as s } from \"../../../../../core/colorUtils.js\";\nimport { GeometryType as n } from \"../../../../../geometry/support/TileClipper.js\";\nimport { unitBezier as a } from \"../../../unitBezier.js\";\nimport { interpolate as o } from \"../GeometryUtils.js\";\nimport { valueType as i, stringType as l, objectType as u, numberType as c, booleanType as h, colorType as p, typeToString as g, arrayType as f, getType as w, matchType as m, valueToString as y } from \"./types.js\";\nclass _ {\n constructor(t) {\n this._parent = t, this._vars = {};\n }\n add(t, e) {\n this._vars[t] = e;\n }\n get(t) {\n return this._vars[t] ? this._vars[t] : this._parent ? this._parent.get(t) : null;\n }\n}\nclass v {\n constructor() {\n this.type = i;\n }\n static parse(t) {\n if (t.length > 1) throw new Error('\"id\" does not expect arguments');\n return new v();\n }\n evaluate(t, e) {\n return t?.id;\n }\n}\nclass b {\n constructor() {\n this.type = l;\n }\n static parse(t) {\n if (t.length > 1) throw new Error('\"geometry-type\" does not expect arguments');\n return new b();\n }\n evaluate(t, e) {\n if (!t) return null;\n switch (t.type) {\n case n.Point:\n return \"Point\";\n case n.LineString:\n return \"LineString\";\n case n.Polygon:\n return \"Polygon\";\n default:\n return null;\n }\n }\n}\nclass d {\n constructor() {\n this.type = u;\n }\n static parse(t) {\n if (t.length > 1) throw new Error('\"properties\" does not expect arguments');\n return new d();\n }\n evaluate(t, e) {\n return t?.values;\n }\n}\nclass x {\n constructor() {\n this.type = c;\n }\n static parse(t) {\n if (t.length > 1) throw new Error('\"zoom\" does not expect arguments');\n return new x();\n }\n evaluate(t, e) {\n return e;\n }\n}\nclass E {\n constructor(t, e, r) {\n this._lhs = t, this._rhs = e, this._compare = r, this.type = h;\n }\n static parse(t, e, r) {\n if (3 !== t.length && 4 !== t.length) throw new Error(`\"${t[0]}\" expects 2 or 3 arguments`);\n if (4 === t.length) throw new Error(`\"${t[0]}\" collator not supported`);\n return new E(pt(t[1], e), pt(t[2], e), r);\n }\n evaluate(t, e) {\n return this._compare(this._lhs.evaluate(t, e), this._rhs.evaluate(t, e));\n }\n}\nclass $ extends E {\n static parse(t, e) {\n return E.parse(t, e, (t, e) => t === e);\n }\n}\nclass M extends E {\n static parse(t, e) {\n return E.parse(t, e, (t, e) => t !== e);\n }\n}\nclass k extends E {\n static parse(t, e) {\n return E.parse(t, e, (t, e) => t < e);\n }\n}\nclass A extends E {\n static parse(t, e) {\n return E.parse(t, e, (t, e) => t <= e);\n }\n}\nclass j extends E {\n static parse(t, e) {\n return E.parse(t, e, (t, e) => t > e);\n }\n}\nclass q extends E {\n static parse(t, e) {\n return E.parse(t, e, (t, e) => t >= e);\n }\n}\nclass N {\n constructor(t) {\n this._arg = t, this.type = h;\n }\n static parse(t, e) {\n if (2 !== t.length) throw new Error('\"!\" expects 1 argument');\n return new N(pt(t[1], e));\n }\n evaluate(t, e) {\n return !this._arg.evaluate(t, e);\n }\n}\nclass C {\n constructor(t) {\n this._args = t, this.type = h;\n }\n static parse(t, e) {\n const r = [];\n for (let s = 1; s < t.length; s++) r.push(pt(t[s], e));\n return new C(r);\n }\n evaluate(t, e) {\n for (const r of this._args) if (!r.evaluate(t, e)) return !1;\n return !0;\n }\n}\nclass R {\n constructor(t) {\n this._args = t, this.type = h;\n }\n static parse(t, e) {\n const r = [];\n for (let s = 1; s < t.length; s++) r.push(pt(t[s], e));\n return new R(r);\n }\n evaluate(t, e) {\n for (const r of this._args) if (r.evaluate(t, e)) return !0;\n return !1;\n }\n}\nclass z {\n constructor(t) {\n this._args = t, this.type = h;\n }\n static parse(t, e) {\n const r = [];\n for (let s = 1; s < t.length; s++) r.push(pt(t[s], e));\n return new z(r);\n }\n evaluate(t, e) {\n for (const r of this._args) if (r.evaluate(t, e)) return !1;\n return !0;\n }\n}\nclass I {\n constructor(t, e, r) {\n this.type = t, this._args = e, this._fallback = r;\n }\n static parse(t, e, r) {\n if (t.length < 4) throw new Error('\"case\" expects at least 3 arguments');\n if (t.length % 2 == 1) throw new Error('\"case\" expects an odd number of arguments');\n let s;\n const n = [];\n for (let o = 1; o < t.length - 1; o += 2) {\n const a = pt(t[o], e),\n i = pt(t[o + 1], e, r);\n s || (s = i.type), n.push({\n condition: a,\n output: i\n });\n }\n const a = pt(t[t.length - 1], e, r);\n return s || (s = a.type), new I(s, n, a);\n }\n evaluate(t, e) {\n for (const r of this._args) if (r.condition.evaluate(t, e)) return r.output.evaluate(t, e);\n return this._fallback.evaluate(t, e);\n }\n}\nclass L {\n constructor(t, e) {\n this.type = t, this._args = e;\n }\n static parse(t, e) {\n if (t.length < 2) throw new Error('\"coalesce\" expects at least 1 argument');\n let r;\n const s = [];\n for (let n = 1; n < t.length; n++) {\n const a = pt(t[n], e);\n r || (r = a.type), s.push(a);\n }\n return new L(r, s);\n }\n evaluate(t, e) {\n for (const r of this._args) {\n const s = r.evaluate(t, e);\n if (null !== s) return s;\n }\n return null;\n }\n}\nclass U {\n constructor(t, e, r, s, n) {\n this.type = t, this._input = e, this._labels = r, this._outputs = s, this._fallback = n;\n }\n static parse(t, e) {\n if (t.length < 3) throw new Error('\"match\" expects at least 3 arguments');\n if (t.length % 2 == 0) throw new Error('\"case\" expects an even number of arguments');\n let r;\n const s = pt(t[1], e),\n n = [],\n a = {};\n let o;\n for (let i = 2; i < t.length - 1; i += 2) {\n let s = t[i];\n Array.isArray(s) || (s = [s]);\n for (const t of s) {\n const e = typeof t;\n if (\"string\" !== e && \"number\" !== e) throw new Error('\"match\" requires string or number literal as labels');\n if (o) {\n if (e !== o) throw new Error('\"match\" requires labels to have the same type');\n } else o = e;\n a[t] = n.length;\n }\n const l = pt(t[i + 1], e);\n r || (r = l.type), n.push(l);\n }\n return new U(r, s, a, n, pt(t[t.length - 1], e));\n }\n evaluate(t, e) {\n const r = this._input.evaluate(t, e);\n return (this._outputs[this._labels[r]] || this._fallback).evaluate(t, e);\n }\n}\nclass P {\n constructor(t, e, r, s, n) {\n this._operator = t, this.type = e, this.interpolation = r, this.input = s, this._stops = n;\n }\n static parse(t, e, r) {\n const s = t[0];\n if (t.length < 5) throw new Error(`\"${s}\" expects at least 4 arguments`);\n const n = t[1];\n if (!Array.isArray(n) || 0 === n.length) throw new Error(`\"${n}\" is not a valid interpolation`);\n switch (n[0]) {\n case \"linear\":\n if (1 !== n.length) throw new Error(\"Linear interpolation cannot have parameters\");\n break;\n case \"exponential\":\n if (2 !== n.length || \"number\" != typeof n[1]) throw new Error(\"Exponential interpolation requires one numeric argument\");\n break;\n case \"cubic-bezier\":\n if (5 !== n.length) throw new Error(\"Cubic bezier interpolation requires four numeric arguments with values between 0 and 1\");\n for (let t = 1; t < 5; t++) {\n const e = n[t];\n if (\"number\" != typeof e || e < 0 || e > 1) throw new Error(\"Cubic bezier interpolation requires four numeric arguments with values between 0 and 1\");\n }\n break;\n default:\n throw new Error(`\"${t[0]}\" unknown interpolation type \"${n[0]}\"`);\n }\n if (t.length % 2 != 1) throw new Error(`\"${s}\" expects an even number of arguments`);\n const a = pt(t[2], e, c);\n let o;\n \"interpolate-hcl\" === s || \"interpolate-lab\" === s ? o = p : r && \"value\" !== r.kind && (o = r);\n const i = [];\n for (let l = 3; l < t.length; l += 2) {\n const r = t[l];\n if (\"number\" != typeof r) throw new Error(`\"${s}\" requires stop inputs as literal numbers`);\n if (i.length && i[i.length - 1][0] >= r) throw new Error(`\"${s}\" requires strictly ascending stop inputs`);\n const n = pt(t[l + 1], e, o);\n o || (o = n.type), i.push([r, n]);\n }\n if (o && o !== p && o !== c && (\"array\" !== o.kind || o.itemType !== c)) throw new Error(`\"${s}\" cannot interpolate type ${g(o)}`);\n return new P(s, o, n, a, i);\n }\n evaluate(n, a) {\n const i = this._stops;\n if (1 === i.length) return i[0][1].evaluate(n, a);\n const l = this.input.evaluate(n, a);\n if (l <= i[0][0]) return i[0][1].evaluate(n, a);\n if (l >= i[i.length - 1][0]) return i[i.length - 1][1].evaluate(n, a);\n let u = 0;\n for (; ++u < i.length && !(l < i[u][0]););\n const c = i[u - 1][0],\n h = i[u][0],\n p = P.interpolationRatio(this.interpolation, l, c, h),\n f = i[u - 1][1].evaluate(n, a),\n w = i[u][1].evaluate(n, a);\n if (\"interpolate\" === this._operator) {\n if (\"array\" === this.type.kind && Array.isArray(f) && Array.isArray(w)) return f.map((t, e) => o(t, w[e], p));\n if (\"color\" === this.type.kind && f instanceof t && w instanceof t) {\n const e = new t(f),\n r = new t(w);\n return new t([o(e.r, r.r, p), o(e.g, r.g, p), o(e.b, r.b, p), o(e.a, r.a, p)]);\n }\n if (\"number\" === this.type.kind && \"number\" == typeof f && \"number\" == typeof w) return o(f, w, p);\n throw new Error(`\"${this._operator}\" cannot interpolate type ${g(this.type)}`);\n }\n if (\"interpolate-hcl\" === this._operator) {\n const s = e(f),\n n = e(w),\n a = n.h - s.h,\n i = r({\n h: s.h + p * (a > 180 || a < -180 ? a - 360 * Math.round(a / 360) : a),\n c: o(s.c, n.c, p),\n l: o(s.l, n.l, p)\n });\n return new t({\n a: o(f.a, w.a, p),\n ...i\n });\n }\n if (\"interpolate-lab\" === this._operator) {\n const e = s(f),\n n = s(w),\n a = r({\n l: o(e.l, n.l, p),\n a: o(e.a, n.a, p),\n b: o(e.b, n.b, p)\n });\n return new t({\n a: o(f.a, w.a, p),\n ...a\n });\n }\n throw new Error(`Unexpected operator \"${this._operator}\"`);\n }\n interpolationUniformValue(t, e) {\n const r = this._stops;\n if (1 === r.length) return 0;\n if (t >= r[r.length - 1][0]) return 0;\n let s = 0;\n for (; ++s < r.length && !(t < r[s][0]););\n const n = r[s - 1][0],\n a = r[s][0];\n return P.interpolationRatio(this.interpolation, e, n, a);\n }\n getInterpolationRange(t) {\n const e = this._stops;\n if (1 === e.length) {\n const t = e[0][0];\n return [t, t];\n }\n const r = e[e.length - 1][0];\n if (t >= r) return [r, r];\n let s = 0;\n for (; ++s < e.length && !(t < e[s][0]););\n return [e[s - 1][0], e[s][0]];\n }\n static interpolationRatio(t, e, r, s) {\n let n = 0;\n if (\"linear\" === t[0]) n = P._exponentialInterpolationRatio(e, 1, r, s);else if (\"exponential\" === t[0]) n = P._exponentialInterpolationRatio(e, t[1], r, s);else if (\"cubic-bezier\" === t[0]) {\n n = a(t[1], t[2], t[3], t[4])(P._exponentialInterpolationRatio(e, 1, r, s), 1e-5);\n }\n return n < 0 ? n = 0 : n > 1 && (n = 1), n;\n }\n static _exponentialInterpolationRatio(t, e, r, s) {\n const n = s - r;\n if (0 === n) return 0;\n const a = t - r;\n return 1 === e ? a / n : (e ** a - 1) / (e ** n - 1);\n }\n}\nclass S {\n constructor(t, e, r) {\n this.type = t, this._input = e, this._stops = r;\n }\n static parse(t, e) {\n if (t.length < 5) throw new Error('\"step\" expects at least 4 arguments');\n if (t.length % 2 != 1) throw new Error('\"step\" expects an even number of arguments');\n const r = pt(t[1], e, c);\n let s;\n const n = [];\n n.push([-1 / 0, pt(t[2], e)]);\n for (let a = 3; a < t.length; a += 2) {\n const r = t[a];\n if (\"number\" != typeof r) throw new Error('\"step\" requires stop inputs as literal numbers');\n if (n.length && n[n.length - 1][0] >= r) throw new Error('\"step\" requires strictly ascending stop inputs');\n const o = pt(t[a + 1], e);\n s || (s = o.type), n.push([r, o]);\n }\n return new S(s, r, n);\n }\n evaluate(t, e) {\n const r = this._stops;\n if (1 === r.length) return r[0][1].evaluate(t, e);\n const s = this._input.evaluate(t, e);\n let n = 0;\n for (; ++n < r.length && !(s < r[n][0]););\n return this._stops[n - 1][1].evaluate(t, e);\n }\n}\nclass B {\n constructor(t, e) {\n this.type = t, this._output = e;\n }\n static parse(t, e, r) {\n if (t.length < 4) throw new Error('\"let\" expects at least 3 arguments');\n if (t.length % 2 == 1) throw new Error('\"let\" expects an odd number of arguments');\n const s = new _(e);\n for (let a = 1; a < t.length - 1; a += 2) {\n const r = t[a];\n if (\"string\" != typeof r) throw new Error(`\"let\" requires a string to define variable names - found ${r}`);\n s.add(r, pt(t[a + 1], e));\n }\n const n = pt(t[t.length - 1], s, r);\n return new B(n.type, n);\n }\n evaluate(t, e) {\n return this._output.evaluate(t, e);\n }\n}\nclass T {\n constructor(t, e) {\n this.type = t, this.output = e;\n }\n static parse(t, e, r) {\n if (2 !== t.length || \"string\" != typeof t[1]) throw new Error('\"var\" requires just one literal string argument');\n const s = e.get(t[1]);\n if (!s) throw new Error(`${t[1]} must be defined before being used in a \"var\" expression`);\n return new T(r || i, s);\n }\n evaluate(t, e) {\n return this.output.evaluate(t, e);\n }\n}\nclass O {\n constructor(t, e, r) {\n this.type = t, this._index = e, this._array = r;\n }\n static parse(t, e) {\n if (3 !== t.length) throw new Error('\"at\" expects 2 arguments');\n const r = pt(t[1], e, c),\n s = pt(t[2], e);\n return new O(s.type.itemType, r, s);\n }\n evaluate(t, e) {\n const r = this._index.evaluate(t, e),\n s = this._array.evaluate(t, e);\n if (r < 0 || r >= s.length) throw new Error('\"at\" index out of bounds');\n if (r !== Math.floor(r)) throw new Error('\"at\" index must be an integer');\n return s[r];\n }\n}\nclass F {\n constructor(t, e) {\n this._key = t, this._obj = e, this.type = i;\n }\n static parse(t, e) {\n let r, s;\n switch (t.length) {\n case 2:\n return r = pt(t[1], e), new F(r);\n case 3:\n return r = pt(t[1], e), s = pt(t[2], e), new F(r, s);\n default:\n throw new Error('\"get\" expects 1 or 2 arguments');\n }\n }\n evaluate(t, e) {\n const r = this._key.evaluate(t, e);\n if (this._obj) {\n return this._obj.evaluate(t, e)[r];\n }\n return t?.values[r];\n }\n}\nclass G {\n constructor(t, e) {\n this._key = t, this._obj = e, this.type = h;\n }\n static parse(t, e) {\n let r, s;\n switch (t.length) {\n case 2:\n return r = pt(t[1], e), new G(r);\n case 3:\n return r = pt(t[1], e), s = pt(t[2], e), new G(r, s);\n default:\n throw new Error('\"has\" expects 1 or 2 arguments');\n }\n }\n evaluate(t, e) {\n const r = this._key.evaluate(t, e);\n if (this._obj) {\n return r in this._obj.evaluate(t, e);\n }\n return !!t?.values[r];\n }\n}\nclass V {\n constructor(t, e) {\n this._key = t, this._vals = e, this.type = h;\n }\n static parse(t, e) {\n if (3 !== t.length) throw new Error('\"in\" expects 2 arguments');\n return new V(pt(t[1], e), pt(t[2], e));\n }\n evaluate(t, e) {\n const r = this._key.evaluate(t, e);\n return this._vals.evaluate(t, e).includes(r);\n }\n}\nclass D {\n constructor(t, e, r) {\n this._item = t, this._array = e, this._from = r, this.type = c;\n }\n static parse(t, e) {\n if (t.length < 3 || t.length > 4) throw new Error('\"index-of\" expects 3 or 4 arguments');\n const r = pt(t[1], e),\n s = pt(t[2], e);\n if (4 === t.length) {\n const n = pt(t[3], e, c);\n return new D(r, s, n);\n }\n return new D(r, s);\n }\n evaluate(t, e) {\n const r = this._item.evaluate(t, e),\n s = this._array.evaluate(t, e);\n if (this._from) {\n const n = this._from.evaluate(t, e);\n if (n !== Math.floor(n)) throw new Error('\"index-of\" index must be an integer');\n return s.indexOf(r, n);\n }\n return s.indexOf(r);\n }\n}\nclass H {\n constructor(t) {\n this._arg = t, this.type = c;\n }\n static parse(t, e) {\n if (2 !== t.length) throw new Error('\"length\" expects 2 arguments');\n const r = pt(t[1], e);\n return new H(r);\n }\n evaluate(t, e) {\n const r = this._arg.evaluate(t, e);\n if (\"string\" == typeof r) return r.length;\n if (Array.isArray(r)) return r.length;\n throw new Error('\"length\" expects string or array');\n }\n}\nclass J {\n constructor(t, e, r, s) {\n this.type = t, this._array = e, this._from = r, this._to = s;\n }\n static parse(t, e) {\n if (t.length < 3 || t.length > 4) throw new Error('\"slice\" expects 2 or 3 arguments');\n const r = pt(t[1], e),\n s = pt(t[2], e, c);\n if (s.type !== c) throw new Error('\"slice\" index must return a number');\n if (4 === t.length) {\n const n = pt(t[3], e, c);\n if (n.type !== c) throw new Error('\"slice\" index must return a number');\n return new J(r.type, r, s, n);\n }\n return new J(r.type, r, s);\n }\n evaluate(t, e) {\n const r = this._array.evaluate(t, e);\n if (!Array.isArray(r) && \"string\" != typeof r) throw new Error('\"slice\" input must be an array or a string');\n const s = this._from.evaluate(t, e);\n if (s < 0 || s >= r.length) throw new Error('\"slice\" index out of bounds');\n if (s !== Math.floor(s)) throw new Error('\"slice\" index must be an integer');\n if (this._to) {\n const n = this._to.evaluate(t, e);\n if (n < 0 || n >= r.length) throw new Error('\"slice\" index out of bounds');\n if (n !== Math.floor(n)) throw new Error('\"slice\" index must be an integer');\n return r.slice(s, n);\n }\n return r.slice(s);\n }\n}\nclass K {\n constructor() {\n this.type = h;\n }\n static parse(t) {\n if (1 !== t.length) throw new Error('\"has-id\" expects no arguments');\n return new K();\n }\n evaluate(t, e) {\n return void 0 !== t?.id;\n }\n}\nclass Q {\n constructor(t, e) {\n this._args = t, this._calculate = e, this.type = c;\n }\n static parse(t, e, r) {\n const s = t.slice(1).map(t => pt(t, e));\n return new Q(s, r);\n }\n evaluate(t, e) {\n let r;\n return this._args && (r = this._args.map(r => r.evaluate(t, e))), this._calculate(r);\n }\n}\nclass W extends Q {\n static parse(t, e) {\n switch (t.length) {\n case 2:\n return Q.parse(t, e, t => -t[0]);\n case 3:\n return Q.parse(t, e, t => t[0] - t[1]);\n default:\n throw new Error('\"-\" expects 1 or 2 arguments');\n }\n }\n}\nclass X extends Q {\n static parse(t, e) {\n return Q.parse(t, e, t => {\n let e = 1;\n for (const r of t) e *= r;\n return e;\n });\n }\n}\nclass Y extends Q {\n static parse(t, e) {\n if (3 === t.length) return Q.parse(t, e, t => t[0] / t[1]);\n throw new Error('\"/\" expects 2 arguments');\n }\n}\nclass Z extends Q {\n static parse(t, e) {\n if (3 === t.length) return Q.parse(t, e, t => t[0] % t[1]);\n throw new Error('\"%\" expects 2 arguments');\n }\n}\nclass tt extends Q {\n static parse(t, e) {\n if (3 === t.length) return Q.parse(t, e, t => t[0] ** t[1]);\n throw new Error('\"^\" expects 1 or 2 arguments');\n }\n}\nclass et extends Q {\n static parse(t, e) {\n return Q.parse(t, e, t => {\n let e = 0;\n for (const r of t) e += r;\n return e;\n });\n }\n}\nlet rt = /*#__PURE__*/(() => {\n class rt {\n constructor(t, e) {\n this._args = t, this._calculate = e, this.type = c;\n }\n static parse(t, e) {\n const r = t.slice(1).map(t => pt(t, e));\n return new rt(r, rt.ops[t[0]]);\n }\n evaluate(t, e) {\n let r;\n return this._args && (r = this._args.map(r => r.evaluate(t, e))), this._calculate(r);\n }\n }\n rt.ops = {\n abs: t => Math.abs(t[0]),\n acos: t => Math.acos(t[0]),\n asin: t => Math.asin(t[0]),\n atan: t => Math.atan(t[0]),\n ceil: t => Math.ceil(t[0]),\n cos: t => Math.cos(t[0]),\n e: () => Math.E,\n floor: t => Math.floor(t[0]),\n ln: t => Math.log(t[0]),\n ln2: () => Math.LN2,\n log10: t => Math.log(t[0]) / Math.LN10,\n log2: t => Math.log(t[0]) / Math.LN2,\n max: t => Math.max(...t),\n min: t => Math.min(...t),\n pi: () => Math.PI,\n round: t => Math.round(t[0]),\n sin: t => Math.sin(t[0]),\n sqrt: t => Math.sqrt(t[0]),\n tan: t => Math.tan(t[0])\n };\n return rt;\n})();\nclass st {\n constructor(t) {\n this._args = t, this.type = l;\n }\n static parse(t, e) {\n return new st(t.slice(1).map(t => pt(t, e)));\n }\n evaluate(t, e) {\n return this._args.map(r => r.evaluate(t, e)).join(\"\");\n }\n}\nlet nt = /*#__PURE__*/(() => {\n class nt {\n constructor(t, e) {\n this._arg = t, this._calculate = e, this.type = l;\n }\n static parse(t, e) {\n if (2 !== t.length) throw new Error(`${t[0]} expects 1 argument`);\n const r = pt(t[1], e);\n return new nt(r, nt.ops[t[0]]);\n }\n evaluate(t, e) {\n return this._calculate(this._arg.evaluate(t, e));\n }\n }\n nt.ops = {\n downcase: t => t.toLowerCase(),\n upcase: t => t.toUpperCase()\n };\n return nt;\n})();\nclass at {\n constructor(t) {\n this._args = t, this.type = p;\n }\n static parse(t, e) {\n if (4 !== t.length) throw new Error('\"rgb\" expects 3 arguments');\n const r = t.slice(1).map(t => pt(t, e));\n return new at(r);\n }\n evaluate(e, r) {\n const s = this._validate(this._args[0].evaluate(e, r)),\n n = this._validate(this._args[1].evaluate(e, r)),\n a = this._validate(this._args[2].evaluate(e, r));\n return new t({\n r: s,\n g: n,\n b: a\n });\n }\n _validate(t) {\n if (\"number\" != typeof t || t < 0 || t > 255) throw new Error(`${t}: invalid color component`);\n return Math.round(t);\n }\n}\nclass ot {\n constructor(t) {\n this._args = t, this.type = p;\n }\n static parse(t, e) {\n if (5 !== t.length) throw new Error('\"rgba\" expects 4 arguments');\n const r = t.slice(1).map(t => pt(t, e));\n return new ot(r);\n }\n evaluate(e, r) {\n const s = this._validate(this._args[0].evaluate(e, r)),\n n = this._validate(this._args[1].evaluate(e, r)),\n a = this._validate(this._args[2].evaluate(e, r)),\n o = this._validateAlpha(this._args[3].evaluate(e, r));\n return new t({\n r: s,\n g: n,\n b: a,\n a: o\n });\n }\n _validate(t) {\n if (\"number\" != typeof t || t < 0 || t > 255) throw new Error(`${t}: invalid color component`);\n return Math.round(t);\n }\n _validateAlpha(t) {\n if (\"number\" != typeof t || t < 0 || t > 1) throw new Error(`${t}: invalid alpha color component`);\n return t;\n }\n}\nclass it {\n constructor(t) {\n this._color = t, this.type = f(c, 4);\n }\n static parse(t, e) {\n if (2 !== t.length) throw new Error('\"to-rgba\" expects 1 argument');\n const r = pt(t[1], e);\n return new it(r);\n }\n evaluate(e, r) {\n return new t(this._color.evaluate(e, r)).toRgba();\n }\n}\nclass lt {\n constructor(t, e) {\n this.type = t, this._args = e;\n }\n static parse(t, e) {\n const r = t[0];\n if (t.length < 2) throw new Error(`${r} expects at least one argument`);\n let s,\n n = 1;\n if (\"array\" === r) {\n if (t.length > 2) {\n switch (t[1]) {\n case \"string\":\n s = l;\n break;\n case \"number\":\n s = c;\n break;\n case \"boolean\":\n s = h;\n break;\n default:\n throw new Error('\"array\" type argument must be string, number or boolean');\n }\n n++;\n } else s = i;\n let e;\n if (t.length > 3) {\n if (e = t[2], null !== e && (\"number\" != typeof e || e < 0 || e !== Math.floor(e))) throw new Error('\"array\" length argument must be a positive integer literal');\n n++;\n }\n s = f(s, e);\n } else switch (r) {\n case \"string\":\n s = l;\n break;\n case \"number\":\n s = c;\n break;\n case \"boolean\":\n s = h;\n break;\n case \"object\":\n s = u;\n }\n const a = [];\n for (; n < t.length; n++) {\n const r = pt(t[n], e);\n a.push(r);\n }\n return new lt(s, a);\n }\n evaluate(t, e) {\n let r;\n for (const s of this._args) {\n const n = s.evaluate(t, e);\n if (r = w(n), m(r, this.type)) return n;\n }\n throw new Error(`Expected ${g(this.type)} but got ${g(r)}`);\n }\n}\nlet ut = /*#__PURE__*/(() => {\n class ut {\n constructor(t, e) {\n this.type = t, this._args = e;\n }\n static parse(t, e) {\n const r = t[0],\n s = ut.types[r];\n if (s === h || s === l) {\n if (2 !== t.length) throw new Error(`${r} expects one argument`);\n } else if (t.length < 2) throw new Error(`${r} expects at least one argument`);\n const n = [];\n for (let a = 1; a < t.length; a++) {\n const r = pt(t[a], e);\n n.push(r);\n }\n return new ut(s, n);\n }\n evaluate(e, r) {\n if (this.type === h) return Boolean(this._args[0].evaluate(e, r));\n if (this.type === l) return y(this._args[0].evaluate(e, r));\n if (this.type === c) {\n for (const t of this._args) {\n const s = Number(t.evaluate(e, r));\n if (!isNaN(s)) return s;\n }\n return null;\n }\n if (this.type === p) {\n for (const s of this._args) try {\n const n = ut.toColor(s.evaluate(e, r));\n if (n instanceof t) return n;\n } catch {}\n return null;\n }\n }\n static toBoolean(t) {\n return Boolean(t);\n }\n static toString(t) {\n return y(t);\n }\n static toNumber(t) {\n const e = Number(t);\n if (isNaN(e)) throw new Error(`\"${t}\" is not a number`);\n return e;\n }\n static toColor(e) {\n if (e instanceof t) return e;\n if (\"string\" == typeof e) {\n const r = t.fromString(e);\n if (r) return r;\n throw new Error(`\"${e}\" is not a color`);\n }\n if (Array.isArray(e)) return t.fromArray(e);\n throw new Error(`\"${e}\" is not a color`);\n }\n }\n ut.types = {\n \"to-boolean\": h,\n \"to-color\": p,\n \"to-number\": c,\n \"to-string\": l\n };\n return ut;\n})();\nclass ct {\n constructor(t) {\n this._val = t, this.type = w(t);\n }\n static parse(t) {\n if (2 !== t.length) throw new Error('\"literal\" expects 1 argument');\n return new ct(t[1]);\n }\n evaluate(t, e) {\n return this._val;\n }\n}\nclass ht {\n constructor(t) {\n this._arg = t, this.type = l;\n }\n static parse(t, e) {\n if (2 !== t.length) throw new Error('\"typeof\" expects 1 argument');\n return new ht(pt(t[1], e));\n }\n evaluate(t, e) {\n return g(w(this._arg.evaluate(t, e)));\n }\n}\nfunction pt(t, e, r) {\n const s = typeof t;\n if (\"string\" === s || \"boolean\" === s || \"number\" === s || null === t) {\n if (r) switch (r.kind) {\n case \"string\":\n \"string\" !== s && (t = ut.toString(t));\n break;\n case \"number\":\n \"number\" !== s && (t = ut.toNumber(t));\n break;\n case \"color\":\n t = ut.toColor(t);\n }\n t = [\"literal\", t];\n }\n if (!Array.isArray(t) || 0 === t.length) throw new Error(\"Expression must be a non empty array\");\n const n = t[0];\n if (\"string\" != typeof n) throw new Error(\"First element of expression must be a string\");\n const a = gt[n];\n if (void 0 === a) throw new Error(`Invalid expression operator \"${n}\"`);\n if (!a) throw new Error(`Unimplemented expression operator \"${n}\"`);\n return a.parse(t, e, r);\n}\nconst gt = {\n array: lt,\n boolean: lt,\n collator: null,\n format: null,\n image: null,\n literal: ct,\n number: lt,\n \"number-format\": null,\n object: lt,\n string: lt,\n \"to-boolean\": ut,\n \"to-color\": ut,\n \"to-number\": ut,\n \"to-string\": ut,\n typeof: ht,\n accumulated: null,\n \"feature-state\": null,\n \"geometry-type\": b,\n id: v,\n \"line-progress\": null,\n properties: d,\n at: O,\n get: F,\n has: G,\n in: V,\n \"index-of\": D,\n length: H,\n slice: J,\n \"!\": N,\n \"!=\": M,\n \"<\": k,\n \"<=\": A,\n \"==\": $,\n \">\": j,\n \">=\": q,\n all: C,\n any: R,\n case: I,\n coalesce: L,\n match: U,\n within: null,\n interpolate: P,\n \"interpolate-hcl\": P,\n \"interpolate-lab\": P,\n step: S,\n let: B,\n var: T,\n concat: st,\n downcase: nt,\n \"is-supported-script\": null,\n \"resolved-locale\": null,\n upcase: nt,\n rgb: at,\n rgba: ot,\n \"to-rgba\": it,\n \"-\": W,\n \"*\": X,\n \"/\": Y,\n \"%\": Z,\n \"^\": tt,\n \"+\": et,\n abs: rt,\n acos: rt,\n asin: rt,\n atan: rt,\n ceil: rt,\n cos: rt,\n e: rt,\n floor: rt,\n ln: rt,\n ln2: rt,\n log10: rt,\n log2: rt,\n max: rt,\n min: rt,\n pi: rt,\n round: rt,\n sin: rt,\n sqrt: rt,\n tan: rt,\n zoom: x,\n \"heatmap-density\": null,\n \"has-id\": K,\n none: z\n};\nexport { C as ALL, R as ANY, et as Add, lt as Assert, O as At, rt as Calculate, I as Case, L as Coalesce, ut as Coerce, st as Concat, Y as Div, $ as EQ, q as GE, j as GT, b as GeomType, F as Get, G as Has, K as HasID, v as ID, V as In, D as IndexOf, P as Interpolate, A as LE, k as LT, H as Length, B as Let, ct as Literal, U as Match, Z as Mod, X as Mul, M as NE, z as NONE, N as NOT, tt as Pow, d as Properties, at as Rgb, ot as Rgba, J as Slice, S as Step, nt as String, W as Sub, it as ToRgba, ht as TypeOf, T as Var, x as Zoom, pt as createExpression, gt as ops };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { createExpression as e } from \"../expression/expression.js\";\nimport { booleanType as r } from \"../expression/types.js\";\nclass t {\n constructor(e) {\n this._expression = e;\n }\n filter(e, r) {\n if (!this._expression) return !0;\n try {\n return this._expression.evaluate(e, r);\n } catch (t) {\n return console.log(t.message), !0;\n }\n }\n static createFilter(n) {\n if (!n) return null;\n this.isLegacyFilter(n) && (n = this.convertLegacyFilter(n));\n try {\n const s = e(n, null, r);\n return new t(s);\n } catch (s) {\n return console.log(s.message), null;\n }\n }\n static isLegacyFilter(e) {\n if (!Array.isArray(e)) return !0;\n if (0 === e.length) return !0;\n switch (e[0]) {\n case \"==\":\n case \"!=\":\n case \">\":\n case \"<\":\n case \">=\":\n case \"<=\":\n return 3 === e.length && \"string\" == typeof e[1] && !Array.isArray(e[2]);\n case \"in\":\n return e.length >= 3 && \"string\" == typeof e[1] && !Array.isArray(e[2]);\n case \"!in\":\n case \"none\":\n case \"!has\":\n return !0;\n case \"any\":\n case \"all\":\n for (let r = 1; r < e.length; r++) if (this.isLegacyFilter(e[r])) return !0;\n return !1;\n case \"has\":\n return 2 === e.length && (\"$id\" === e[1] || \"$type\" === e[1]);\n default:\n return !1;\n }\n }\n static convertLegacyFilter(e) {\n if (!Array.isArray(e) || 0 === e.length) return !0;\n const r = e[0];\n if (1 === e.length) return \"any\" !== r;\n switch (r) {\n case \"==\":\n return t.convertComparison(\"==\", e[1], e[2]);\n case \"!=\":\n return t.negate(t.convertComparison(\"==\", e[1], e[2]));\n case \">\":\n case \"<\":\n case \">=\":\n case \"<=\":\n return t.convertComparison(r, e[1], e[2]);\n case \"in\":\n return t.convertIn(e[1], e.slice(2));\n case \"!in\":\n return t.negate(t.convertIn(e[1], e.slice(2)));\n case \"any\":\n case \"all\":\n case \"none\":\n return t.convertCombining(r, e.slice(1));\n case \"has\":\n return t.convertHas(e[1]);\n case \"!has\":\n return t.negate(t.convertHas(e[1]));\n default:\n throw new Error(\"Unexpected legacy filter.\");\n }\n }\n static convertComparison(e, r, t) {\n switch (r) {\n case \"$type\":\n return [e, [\"geometry-type\"], t];\n case \"$id\":\n return [e, [\"id\"], t];\n default:\n return [e, [\"get\", r], t];\n }\n }\n static convertIn(e, r) {\n switch (e) {\n case \"$type\":\n return [\"in\", [\"geometry-type\"], [\"literal\", r]];\n case \"$id\":\n return [\"in\", [\"id\"], [\"literal\", r]];\n default:\n return [\"in\", [\"get\", e], [\"literal\", r]];\n }\n }\n static convertHas(e) {\n switch (e) {\n case \"$type\":\n return !0;\n case \"$id\":\n return [\"has-id\"];\n default:\n return [\"has\", e];\n }\n }\n static convertCombining(e, r) {\n return [e].concat(r.map(this.convertLegacyFilter));\n }\n static negate(e) {\n return [\"!\", e];\n }\n}\nexport { t 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 t from \"../../../../../Color.js\";\nimport { interpolate as e } from \"../GeometryUtils.js\";\nimport { ops as r, createExpression as i, Interpolate as l, Zoom as a } from \"../expression/expression.js\";\nimport { arrayType as s, valueType as n, valueToString as o, numberType as u, colorType as p, stringType as d, booleanType as f } from \"../expression/types.js\";\nclass h {\n constructor(t, e) {\n let o;\n switch (this.isDataDriven = !1, this.interpolator = null, t.type) {\n case \"number\":\n case \"color\":\n o = !0;\n break;\n case \"array\":\n o = \"number\" === t.value;\n break;\n default:\n o = !1;\n }\n if (null == e && (e = t.default), Array.isArray(e) && e.length > 0 && r[e[0]]) {\n const r = {\n number: u,\n color: p,\n string: d,\n boolean: f,\n enum: d\n };\n try {\n const o = \"array\" === t.type ? s(r[t.value] || n, t.length) : r[t.type],\n u = i(e, null, o);\n this.getValue = this._buildExpression(u, t), this.isDataDriven = !0, u instanceof l && u.input instanceof a && (this.interpolator = u);\n } catch (m) {\n console.log(m.message), this.getValue = this._buildSimple(t.default);\n }\n return;\n }\n o && \"interval\" === e.type && (o = !1);\n const h = e?.stops && e.stops.length > 0;\n if (h) for (const r of e.stops) r[1] = this._validate(r[1], t);\n if (this.isDataDriven = !!e && !!e.property, this.isDataDriven) {\n if (void 0 !== e.default && (e.default = this._validate(e.default, t)), h) switch (e.type) {\n case \"identity\":\n this.getValue = this._buildIdentity(e, t);\n break;\n case \"categorical\":\n this.getValue = this._buildCategorical(e, t);\n break;\n default:\n this.getValue = o ? this._buildInterpolate(e, t) : this._buildInterval(e, t);\n } else this.getValue = this._buildIdentity(e, t);\n } else h ? this.getValue = o ? this._buildZoomInterpolate(e) : this._buildZoomInterval(e) : (e = this._validate(e, t), this.getValue = this._buildSimple(e));\n }\n _validate(t, e) {\n if (\"number\" === e.type) {\n if (null != e.minimum && t < e.minimum) return e.minimum;\n if (null != e.maximum && t > e.maximum) return e.maximum;\n } else \"color\" === e.type ? t = h._parseColor(t) : \"enum\" === e.type ? \"string\" == typeof t && (t = e.values.indexOf(t)) : \"array\" === e.type && \"enum\" === e.value ? t = t.map(t => \"string\" == typeof t ? e.values.indexOf(t) : t) : \"string\" === e.type && (t = o(t));\n return t;\n }\n _buildSimple(t) {\n return () => t;\n }\n _buildExpression(t, e) {\n return (r, i) => {\n try {\n const l = t.evaluate(i, r);\n return void 0 === l ? e.default : this._validate(l, e);\n } catch (l) {\n return console.log(l.message), e.default;\n }\n };\n }\n _buildIdentity(t, e) {\n return (r, i) => {\n let l;\n return i && (l = i.values[t.property]), void 0 !== l && (l = this._validate(l, e)), null != l ? l : void 0 !== t.default ? t.default : e.default;\n };\n }\n _buildCategorical(t, e) {\n return (r, i) => {\n let l;\n return i && (l = i.values[t.property]), l = this._categorical(l, t.stops), void 0 !== l ? l : void 0 !== t.default ? t.default : e.default;\n };\n }\n _buildInterval(t, e) {\n return (r, i) => {\n let l;\n return i && (l = i.values[t.property]), \"number\" == typeof l ? this._interval(l, t.stops) : void 0 !== t.default ? t.default : e.default;\n };\n }\n _buildInterpolate(t, e) {\n return (r, i) => {\n let l;\n return i && (l = i.values[t.property]), \"number\" == typeof l ? this._interpolate(l, t.stops, t.base || 1) : void 0 !== t.default ? t.default : e.default;\n };\n }\n _buildZoomInterpolate(t) {\n return e => this._interpolate(e, t.stops, t.base || 1);\n }\n _buildZoomInterval(t) {\n return e => this._interval(e, t.stops);\n }\n _categorical(t, e) {\n const r = e.length;\n for (let i = 0; i < r; i++) if (e[i][0] === t) return e[i][1];\n }\n _interval(t, e) {\n const r = e.length;\n let i = 0;\n for (let l = 0; l < r && e[l][0] <= t; l++) i = l;\n return e[i][1];\n }\n _interpolate(t, r, i) {\n let l, a;\n const s = r.length;\n for (let e = 0; e < s; e++) {\n const i = r[e];\n if (!(i[0] <= t)) {\n a = i;\n break;\n }\n l = i;\n }\n if (l && a) {\n const r = a[0] - l[0],\n s = t - l[0],\n n = 1 === i ? s / r : (i ** s - 1) / (i ** r - 1);\n if (Array.isArray(l[1])) {\n const t = l[1],\n r = a[1],\n i = [];\n for (let l = 0; l < t.length; l++) i.push(e(t[l], r[l], n));\n return i;\n }\n return e(l[1], a[1], n);\n }\n return l ? l[1] : a ? a[1] : void 0;\n }\n static _isEmpty(t) {\n for (const e in t) if (t.hasOwnProperty(e)) return !1;\n return !0;\n }\n static _parseColor(e) {\n return Array.isArray(e) ? e : (\"string\" == typeof e && (e = new t(e)), e instanceof t && !this._isEmpty(e) ? t.toUnitRGBA(e) : void 0);\n }\n}\nexport { h 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 { fromValues as t } from \"../../../../../geometry/support/aaBoundingRect.js\";\nimport { ShaderProgramType as i } from \"../enums.js\";\nimport { translateAnchor as e, pointInPolygon as a, distanceFromToPolylineWithinThreshold as o, offsetLine as r } from \"../GeometryUtils.js\";\nimport { VTLBackgroundMaterial as n } from \"../shaders/VTLBackgroundMaterial.js\";\nimport { VTLCircleMaterial as s } from \"../shaders/VTLCircleMaterial.js\";\nimport { VTLFillMaterial as l, VTLOutlineMaterial as h } from \"../shaders/VTLFillMaterial.js\";\nimport { VTLLineMaterial as u } from \"../shaders/VTLLineMaterial.js\";\nimport { VTLIconMaterial as p, VTLTextMaterial as g } from \"../shaders/VTLSymbolMaterial.js\";\nimport c from \"./Filter.js\";\nimport { StyleLayerType as y, StyleDefinition as P, RotationAlignment as f } from \"./StyleDefinition.js\";\nimport D from \"./StyleProperty.js\";\nimport { thinLineHalfWidthThreshold as m } from \"../../webgl/definitions.js\";\nconst d = 8;\nvar _;\n!function (t) {\n t[t.BUTT = 0] = \"BUTT\", t[t.ROUND = 1] = \"ROUND\", t[t.SQUARE = 2] = \"SQUARE\", t[t.UNKNOWN = 4] = \"UNKNOWN\";\n}(_ || (_ = {}));\nclass L {\n constructor(t, i, e, a, o, r) {\n this.layer = t, this.feature = i, this.bounds = e, this.normalizationRatio = a, this.normalizationOffsetX = o, this.normalizationOffsetY = r;\n }\n}\nclass T {\n constructor(t, i, e, a) {\n switch (this.type = t, this.typeName = i.type, this.id = i.id, this.source = i.source, this.sourceLayer = i[\"source-layer\"], this.minzoom = i.minzoom, this.maxzoom = i.maxzoom, this.filter = i.filter, this.layout = i.layout, this.paint = i.paint, this.z = e, this.uid = a, t) {\n case y.BACKGROUND:\n this._layoutDefinition = P.backgroundLayoutDefinition, this._paintDefinition = P.backgroundPaintDefinition;\n break;\n case y.FILL:\n this._layoutDefinition = P.fillLayoutDefinition, this._paintDefinition = P.fillPaintDefinition;\n break;\n case y.LINE:\n this._layoutDefinition = P.lineLayoutDefinition, this._paintDefinition = P.linePaintDefinition;\n break;\n case y.SYMBOL:\n this._layoutDefinition = P.symbolLayoutDefinition, this._paintDefinition = P.symbolPaintDefinition;\n break;\n case y.CIRCLE:\n this._layoutDefinition = P.circleLayoutDefinition, this._paintDefinition = P.circlePaintDefinition;\n }\n this._layoutProperties = this._parseLayout(this.layout), this._paintProperties = this._parsePaint(this.paint);\n }\n getFeatureFilter() {\n return void 0 !== this._featureFilter ? this._featureFilter : this._featureFilter = c.createFilter(this.filter);\n }\n getLayoutProperty(t) {\n return this._layoutProperties[t];\n }\n getPaintProperty(t) {\n return this._paintProperties[t];\n }\n getLayoutValue(t, i, e) {\n let a;\n const o = this._layoutProperties[t];\n return o && (a = o.getValue(i, e)), void 0 === a && (a = this._layoutDefinition[t].default), a;\n }\n getPaintValue(t, i, e) {\n let a;\n const o = this._paintProperties[t];\n return o && (a = o.getValue(i, e)), void 0 === a && (a = this._paintDefinition[t].default), a;\n }\n isPainterDataDriven() {\n const t = this._paintProperties;\n if (t) for (const i in t) if (t[i].isDataDriven) return !0;\n return !1;\n }\n isIntersectingFeature(t, i, e, a, o, r, n) {\n return !1;\n }\n getFeatureInflatedBounds(t, i, e, a) {\n return null;\n }\n _parseLayout(t) {\n const i = {};\n for (const e in t) {\n const a = this._layoutDefinition[e];\n a && (i[e] = new D(a, t[e]));\n }\n return i;\n }\n _parsePaint(t) {\n const i = {};\n for (const e in t) {\n const a = this._paintDefinition[e];\n a && (i[e] = new D(a, t[e]));\n }\n return i;\n }\n computeAttributesKey(t, i, e, a) {\n let o = 0,\n r = 0;\n for (const n of i) {\n let t = 3;\n if (!n || n !== a) {\n const i = e[n],\n {\n isLayout: a,\n isOptional: o\n } = i,\n r = a ? this.getLayoutProperty(n) : this.getPaintProperty(n);\n t = r?.interpolator ? 2 : r?.isDataDriven ? 1 : o && !r ? 3 : 0;\n }\n r |= t << o, o += 2;\n }\n return r << 3 | t;\n }\n}\nclass V extends T {\n constructor(t, e, a, o) {\n super(t, e, a, o), this.backgroundMaterial = new n(this.computeAttributesKey(i.BACKGROUND, n.ATTRIBUTES, n.ATTRIBUTES_INFO));\n }\n}\nclass v extends T {\n constructor(t, e, a, o) {\n super(t, e, a, o);\n const r = this.getPaintProperty(\"fill-color\"),\n n = this.getPaintProperty(\"fill-opacity\"),\n s = this.getPaintProperty(\"fill-pattern\");\n this.hasDataDrivenColor = r?.isDataDriven, this.hasDataDrivenOpacity = n?.isDataDriven, this.hasDataDrivenFill = this.hasDataDrivenColor || this.hasDataDrivenOpacity || s?.isDataDriven;\n const u = this.getPaintProperty(\"fill-outline-color\");\n this.outlineUsesFillColor = !u, this.hasDataDrivenOutlineColor = u?.isDataDriven, this.hasDataDrivenOutline = u ? u.isDataDriven : !!r && r.isDataDriven, this.hasDataDrivenOutline = (u ? this.hasDataDrivenOutlineColor : this.hasDataDrivenColor) || this.hasDataDrivenOpacity, this.fillMaterial = new l(this.computeAttributesKey(i.FILL, l.ATTRIBUTES, l.ATTRIBUTES_INFO)), this.outlineMaterial = new h(this.computeAttributesKey(i.OUTLINE, this.outlineUsesFillColor ? h.ATTRIBUTES_FILL : h.ATTRIBUTES_OUTLINE, this.outlineUsesFillColor ? h.ATTRIBUTES_INFO_FILL : h.ATTRIBUTES_INFO_OUTLINE), this.outlineUsesFillColor);\n }\n getFeatureInflatedBounds(t, i, e, a) {\n const o = R(t);\n if (!o) return null;\n const r = this.getPaintValue(\"fill-translate\", i, t),\n n = a * Math.max(r[0], r[1]);\n return o[0] -= n, o[2] -= n, o[1] += n, o[3] += n, o;\n }\n isIntersectingFeature(t, i, r, n, s, l, h) {\n const u = n.getGeometry();\n if (!u) return !1;\n const p = d / h.normalizationRatio;\n t = t / h.normalizationRatio + h.normalizationOffsetX, i = i / h.normalizationRatio + h.normalizationOffsetY;\n const g = e(this.getPaintValue(\"fill-translate\", s, n), this.getPaintValue(\"fill-translate-anchor\", s, n), l, d);\n t -= p * g.x, i -= p * g.y;\n return !!a(t, i, u) || o(t, i, u, p * r);\n }\n}\nclass x extends T {\n constructor(t, e, a, o) {\n super(t, e, a, o);\n const r = this.getPaintProperty(\"line-pattern\");\n if (this.lineMaterial = new u(this.computeAttributesKey(i.LINE, u.ATTRIBUTES, u.ATTRIBUTES_INFO, r ? \"line-dasharray\" : \"\")), this.hasDataDrivenLine = this.getPaintProperty(\"line-blur\")?.isDataDriven || this.getPaintProperty(\"line-color\")?.isDataDriven || this.getPaintProperty(\"line-gap-width\")?.isDataDriven || this.getPaintProperty(\"line-offset\")?.isDataDriven || this.getPaintProperty(\"line-opacity\")?.isDataDriven || this.getPaintProperty(\"line-pattern\")?.isDataDriven || this.getPaintProperty(\"line-dasharray\")?.isDataDriven || this.getLayoutProperty(\"line-cap\")?.isDataDriven || this.getPaintProperty(\"line-width\")?.isDataDriven, this.canUseThinTessellation = !1, !this.hasDataDrivenLine) {\n const t = this.getPaintProperty(\"line-width\");\n if (!t || \"number\" == typeof t && .5 * t < m) {\n const t = this.getPaintProperty(\"line-offset\");\n (!t || \"number\" == typeof t && 0 === t) && (this.canUseThinTessellation = !0);\n }\n }\n }\n getDashKey(t, i) {\n let e;\n switch (i) {\n case _.BUTT:\n e = \"Butt\";\n break;\n case _.ROUND:\n e = \"Round\";\n break;\n case _.SQUARE:\n e = \"Square\";\n break;\n default:\n e = \"Butt\";\n }\n return `dasharray-[${t.toString()}]-${e}`;\n }\n getFeatureInflatedBounds(t, i, e, a) {\n const o = R(t);\n if (!o) return null;\n const r = this.getPaintValue(\"line-translate\", i, t),\n n = a * Math.max(r[0], r[1]);\n o[0] -= n, o[2] -= n, o[1] += n, o[3] += n;\n const s = a * Math.abs(this.getPaintValue(\"line-offset\", i, t) || 0),\n l = a * (this.getPaintValue(\"line-width\", i, t) / 2);\n return o[0] -= s + l, o[1] -= s + l, o[2] += s + l, o[3] += s + l, o;\n }\n isIntersectingFeature(t, i, a, n, s, l, h) {\n let u = n.getGeometry();\n if (!u) return !1;\n const p = d / h.normalizationRatio;\n t = t / h.normalizationRatio + h.normalizationOffsetX, i = i / h.normalizationRatio + h.normalizationOffsetY;\n const g = e(this.getPaintValue(\"line-translate\", s, n), this.getPaintValue(\"line-translate-anchor\", s, n), l, d);\n t -= p * g.x, i -= p * g.y;\n const c = p * this.getPaintValue(\"line-offset\", s, n) || 0;\n 0 !== c && (u = r(u, -c));\n const y = this.getPaintValue(\"line-width\", s, n);\n return o(t, i, u, p * (a + y / 2));\n }\n}\nclass I extends T {\n constructor(t, e, a, o) {\n super(t, e, a, o), this.iconMaterial = new p(this.computeAttributesKey(i.ICON, p.ATTRIBUTES, p.ATTRIBUTES_INFO)), this.textMaterial = new g(this.computeAttributesKey(i.TEXT, g.ATTRIBUTES, g.ATTRIBUTES_INFO)), this.hasDataDrivenIcon = this.getPaintProperty(\"icon-color\")?.isDataDriven || this.getPaintProperty(\"icon-halo-blur\")?.isDataDriven || this.getPaintProperty(\"icon-halo-color\")?.isDataDriven || this.getPaintProperty(\"icon-halo-width\")?.isDataDriven || this.getPaintProperty(\"icon-opacity\")?.isDataDriven || this.getLayoutProperty(\"icon-size\")?.isDataDriven, this.hasDataDrivenText = this.getPaintProperty(\"text-color\")?.isDataDriven || this.getPaintProperty(\"text-halo-blur\")?.isDataDriven || this.getPaintProperty(\"text-halo-color\")?.isDataDriven || this.getPaintProperty(\"text-halo-width\")?.isDataDriven || this.getPaintProperty(\"text-opacity\")?.isDataDriven || this.getLayoutProperty(\"text-size\")?.isDataDriven;\n }\n}\nclass A extends T {\n constructor(t, e, a, o) {\n super(t, e, a, o), this.circleMaterial = new s(this.computeAttributesKey(i.CIRCLE, s.ATTRIBUTES, s.ATTRIBUTES_INFO));\n }\n getFeatureInflatedBounds(t, i, e, a) {\n const o = R(t);\n if (!o) return null;\n const r = this.getPaintValue(\"circle-translate\", i, t),\n n = Math.max(r[0], r[1]);\n o[0] -= n, o[2] -= n, o[1] += n, o[3] += n;\n const s = a * (d * (this.getPaintValue(\"circle-radius\", i, t) + this.getPaintValue(\"circle-stroke-width\", i, t)) / 2);\n return o[0] -= s, o[1] -= s, o[2] += s, o[3] += s, o;\n }\n isIntersectingFeature(t, i, a, o, r, n, s) {\n const l = o.getGeometry();\n if (!l) return !1;\n const h = d / s.normalizationRatio;\n t = t / s.normalizationRatio + s.normalizationOffsetX, i = i / s.normalizationRatio + s.normalizationOffsetY, a *= h;\n const u = e(this.getPaintValue(\"circle-translate\", r, o), this.getPaintValue(\"circle-translate-anchor\", r, o), n, h),\n p = h * (this.getPaintValue(\"circle-radius\", r, o) + this.getPaintValue(\"circle-stroke-width\", r, o));\n let g, c;\n for (const e of l) if (e) for (const o of e) {\n g = o.x + u.x, c = o.y + u.y;\n if (Math.sqrt((t - g) * (t - g) + (i - c) * (i - c)) - a <= p) return !0;\n }\n return !1;\n }\n}\nclass U {\n constructor(t, i, e) {\n let a;\n this.allowOverlap = t.getLayoutValue(\"icon-allow-overlap\", i), this.ignorePlacement = t.getLayoutValue(\"icon-ignore-placement\", i), this.keepUpright = t.getLayoutValue(\"icon-keep-upright\", i), this.optional = t.getLayoutValue(\"icon-optional\", i), this.rotationAlignment = t.getLayoutValue(\"icon-rotation-alignment\", i), this.rotationAlignment === f.AUTO && (this.rotationAlignment = e ? f.MAP : f.VIEWPORT), a = t.getLayoutProperty(\"icon-anchor\"), a?.isDataDriven ? this._anchorProp = a : this.anchor = t.getLayoutValue(\"icon-anchor\", i), a = t.getLayoutProperty(\"icon-offset\"), a?.isDataDriven ? this._offsetProp = a : this.offset = t.getLayoutValue(\"icon-offset\", i), a = t.getLayoutProperty(\"icon-padding\"), a?.isDataDriven ? this._paddingProp = a : this.padding = t.getLayoutValue(\"icon-padding\", i), a = t.getLayoutProperty(\"icon-rotate\"), a?.isDataDriven ? this._rotateProp = a : this.rotate = t.getLayoutValue(\"icon-rotate\", i), a = t.getLayoutProperty(\"icon-size\"), a?.isDataDriven ? this._sizeProp = a : this.size = t.getLayoutValue(\"icon-size\", i);\n }\n update(t, i) {\n this._anchorProp && (this.anchor = this._anchorProp.getValue(t, i)), this._offsetProp && (this.offset = this._offsetProp.getValue(t, i)), this._paddingProp && (this.padding = this._paddingProp.getValue(t, i)), this._rotateProp && (this.rotate = this._rotateProp.getValue(t, i)), this._sizeProp && (this.size = this._sizeProp.getValue(t, i));\n }\n}\nclass O {\n constructor(t, i, e) {\n let a;\n this.allowOverlap = t.getLayoutValue(\"text-allow-overlap\", i), this.ignorePlacement = t.getLayoutValue(\"text-ignore-placement\", i), this.keepUpright = t.getLayoutValue(\"text-keep-upright\", i), this.optional = t.getLayoutValue(\"text-optional\", i), this.rotationAlignment = t.getLayoutValue(\"text-rotation-alignment\", i), this.rotationAlignment === f.AUTO && (this.rotationAlignment = e ? f.MAP : f.VIEWPORT), a = t.getLayoutProperty(\"text-anchor\"), a?.isDataDriven ? this._anchorProp = a : this.anchor = t.getLayoutValue(\"text-anchor\", i), a = t.getLayoutProperty(\"text-justify\"), a?.isDataDriven ? this._justifyProp = a : this.justify = t.getLayoutValue(\"text-justify\", i), a = t.getLayoutProperty(\"text-letter-spacing\"), a?.isDataDriven ? this._letterSpacingProp = a : this.letterSpacing = t.getLayoutValue(\"text-letter-spacing\", i), a = t.getLayoutProperty(\"text-line-height\"), a?.isDataDriven ? this._lineHeightProp = a : this.lineHeight = t.getLayoutValue(\"text-line-height\", i), a = t.getLayoutProperty(\"text-max-angle\"), a?.isDataDriven ? this._maxAngleProp = a : this.maxAngle = t.getLayoutValue(\"text-max-angle\", i), a = t.getLayoutProperty(\"text-max-width\"), a?.isDataDriven ? this._maxWidthProp = a : this.maxWidth = t.getLayoutValue(\"text-max-width\", i), a = t.getLayoutProperty(\"text-offset\"), a?.isDataDriven ? this._offsetProp = a : this.offset = t.getLayoutValue(\"text-offset\", i), a = t.getLayoutProperty(\"text-padding\"), a?.isDataDriven ? this._paddingProp = a : this.padding = t.getLayoutValue(\"text-padding\", i), a = t.getLayoutProperty(\"text-rotate\"), a?.isDataDriven ? this._rotateProp = a : this.rotate = t.getLayoutValue(\"text-rotate\", i), a = t.getLayoutProperty(\"text-size\"), a?.isDataDriven ? this._sizeProp = a : this.size = t.getLayoutValue(\"text-size\", i), a = t.getLayoutProperty(\"text-writing-mode\"), a?.isDataDriven ? this._writingModeProp = a : this.writingMode = t.getLayoutValue(\"text-writing-mode\", i);\n }\n update(t, i) {\n this._anchorProp && (this.anchor = this._anchorProp.getValue(t, i)), this._justifyProp && (this.justify = this._justifyProp.getValue(t, i)), this._letterSpacingProp && (this.letterSpacing = this._letterSpacingProp.getValue(t, i)), this._lineHeightProp && (this.lineHeight = this._lineHeightProp.getValue(t, i)), this._maxAngleProp && (this.maxAngle = this._maxAngleProp.getValue(t, i)), this._maxWidthProp && (this.maxWidth = this._maxWidthProp.getValue(t, i)), this._offsetProp && (this.offset = this._offsetProp.getValue(t, i)), this._paddingProp && (this.padding = this._paddingProp.getValue(t, i)), this._rotateProp && (this.rotate = this._rotateProp.getValue(t, i)), this._sizeProp && (this.size = this._sizeProp.getValue(t, i)), this._writingModeProp && (this.writingMode = this._writingModeProp.getValue(t, i));\n }\n}\nfunction R(i) {\n const e = i?.getGeometry();\n if (null == e) return null;\n let a = 1 / 0,\n o = 1 / 0,\n r = -1 / 0,\n n = -1 / 0;\n for (const t of e) if (t) for (const i of t) a = Math.min(a, i.x), o = Math.min(o, i.y), r = Math.max(r, i.x), n = Math.max(n, i.y);\n return t(a, o, r, n);\n}\nexport { V as BackgroundStyleLayer, _ as CapType, A as CircleStyleLayer, v as FillStyleLayer, U as IconLayout, L as IndexItem, x as LineStyleLayer, T as StyleLayer, I as SymbolStyleLayer, O as TextLayout };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { StyleLayerType as e } from \"./StyleDefinition.js\";\nimport { CircleStyleLayer as t, SymbolStyleLayer as r, LineStyleLayer as s, FillStyleLayer as i, BackgroundStyleLayer as a } from \"./StyleLayer.js\";\nclass l {\n constructor(t) {\n if (this._style = t, this.backgroundBucketIds = [], this._uidToLayer = new Map(), this._layerByName = {}, this._runningId = 0, t.layers || (t.layers = []), this.version = parseFloat(t.version), this.layers = t.layers.map((e, t, r) => this._create(e, t, r)).filter(e => !!e), this.layers) for (let r = 0; r < this.layers.length; r++) {\n const t = this.layers[r];\n this._layerByName[t.id] = t, this._uidToLayer.set(t.uid, t), t.type === e.BACKGROUND && this.backgroundBucketIds.push(t.id);\n }\n this._identifyRefLayers();\n }\n isPainterDataDriven(e) {\n const t = this._layerByName[e];\n return !!t && t.isPainterDataDriven();\n }\n getStyleLayerId(e) {\n return e >= this.layers.length ? null : this.layers[e].id;\n }\n getStyleLayerByUID(e) {\n return this._uidToLayer.get(e) ?? null;\n }\n getStyleLayerIndex(e) {\n const t = this._layerByName[e];\n return t ? this.layers.indexOf(t) : -1;\n }\n setStyleLayer(e, t) {\n if (!e?.id) return;\n const r = this._style;\n null != t && t >= this.layers.length && (t = this.layers.length - 1);\n let s,\n i = !0;\n const a = this._layerByName[e.id];\n if (a) {\n const y = this.layers.indexOf(a);\n t || (t = y), t === y ? (i = !1, s = l._recreateLayer(e, a), this.layers[t] = s, r.layers[t] = e) : (this.layers.splice(y, 1), r.layers.splice(y, 1), s = this._create(e, t, this.layers), this.layers.splice(t, 0, s), r.layers.splice(t, 0, e));\n } else s = this._create(e, t, this.layers), !t || t >= this.layers.length ? (this.layers.push(s), r.layers.push(e)) : (this.layers.splice(t, 0, s), r.layers.splice(t, 0, e));\n this._layerByName[e.id] = s, this._uidToLayer.set(s.uid, s), i && this._recomputeZValues(), this._identifyRefLayers();\n }\n getStyleLayer(e) {\n const t = this._layerByName[e];\n return t ? {\n type: t.typeName,\n id: t.id,\n source: t.source,\n \"source-layer\": t.sourceLayer,\n minzoom: t.minzoom,\n maxzoom: t.maxzoom,\n filter: t.filter,\n layout: t.layout,\n paint: t.paint\n } : null;\n }\n deleteStyleLayer(e) {\n const t = this._layerByName[e];\n if (t) {\n delete this._layerByName[e], this._uidToLayer.delete(t.uid);\n const r = this.layers.indexOf(t);\n this.layers.splice(r, 1), this._style.layers.splice(r, 1), this._recomputeZValues(), this._identifyRefLayers();\n }\n }\n getLayerById(e) {\n return this._layerByName[e];\n }\n getLayoutProperties(e) {\n const t = this._layerByName[e];\n return t ? t.layout : null;\n }\n getPaintProperties(e) {\n const t = this._layerByName[e];\n return t ? t.paint : null;\n }\n setPaintProperties(e, t) {\n const r = this._layerByName[e];\n if (!r) return;\n const s = {\n type: r.typeName,\n id: r.id,\n source: r.source,\n \"source-layer\": r.sourceLayer,\n minzoom: r.minzoom,\n maxzoom: r.maxzoom,\n filter: r.filter,\n layout: r.layout,\n paint: t\n },\n i = l._recreateLayer(s, r),\n a = this.layers.indexOf(r);\n this.layers[a] = i, this._style.layers[a].paint = t, this._layerByName[r.id] = i, this._uidToLayer.set(r.uid, i);\n }\n setLayoutProperties(e, t) {\n const r = this._layerByName[e];\n if (!r) return;\n const s = {\n type: r.typeName,\n id: r.id,\n source: r.source,\n \"source-layer\": r.sourceLayer,\n minzoom: r.minzoom,\n maxzoom: r.maxzoom,\n filter: r.filter,\n layout: t,\n paint: r.paint\n },\n i = l._recreateLayer(s, r),\n a = this.layers.indexOf(r);\n this.layers[a] = i, this._style.layers[a].layout = t, this._layerByName[r.id] = i, this._uidToLayer.set(r.uid, i);\n }\n setStyleLayerVisibility(e, t) {\n const r = this._layerByName[e];\n if (!r) return;\n const s = r.layout || {};\n s.visibility = t;\n const i = {\n type: r.typeName,\n id: r.id,\n source: r.source,\n \"source-layer\": r.sourceLayer,\n minzoom: r.minzoom,\n maxzoom: r.maxzoom,\n filter: r.filter,\n layout: s,\n paint: r.paint\n },\n a = l._recreateLayer(i, r),\n y = this.layers.indexOf(r);\n this.layers[y] = a, this._style.layers[y].layout = s, this._layerByName[r.id] = a, this._uidToLayer.set(r.uid, a);\n }\n getStyleLayerVisibility(e) {\n const t = this._layerByName[e];\n if (!t) return \"none\";\n const r = t.layout;\n return r?.visibility ?? \"visible\";\n }\n _recomputeZValues() {\n const e = this.layers,\n t = 1 / (e.length + 1);\n for (let r = 0; r < e.length; r++) e[r].z = 1 - (1 + r) * t;\n }\n _identifyRefLayers() {\n const t = [],\n r = [];\n let s = 0;\n for (const i of this.layers) {\n const a = i.layout;\n if (i.type === e.FILL) {\n const e = i;\n let r = i.source + \"|\" + i.sourceLayer;\n r += \"|\" + (a?.visibility ?? \"\"), r += \"|\" + i.minzoom, r += \"|\" + i.maxzoom, r += \"|\" + JSON.stringify(i.filter), (e.hasDataDrivenFill || e.hasDataDrivenOutline) && (r += \"|\" + s), t.push({\n key: r,\n layer: i\n });\n } else if (i.type === e.LINE) {\n const e = i,\n t = i.paint,\n l = null != t && (null != t[\"line-pattern\"] || null != t[\"line-dasharray\"]);\n let y = i.source + \"|\" + i.sourceLayer;\n y += \"|\" + (a?.visibility ?? \"\"), y += \"|\" + i.minzoom, y += \"|\" + i.maxzoom, y += \"|\" + JSON.stringify(i.filter), y += \"|\" + (void 0 !== a ? a[\"line-cap\"] : \"\"), y += \"|\" + (void 0 !== a ? a[\"line-join\"] : \"\"), (e.hasDataDrivenLine || l) && (y += \"|\" + s), r.push({\n key: y,\n layer: i\n });\n }\n ++s;\n }\n this._assignRefLayers(t), this._assignRefLayers(r);\n }\n _assignRefLayers(t) {\n let r, s;\n t.sort((e, t) => e.key < t.key ? -1 : e.key > t.key ? 1 : 0);\n const i = t.length;\n for (let a = 0; a < i; a++) {\n const l = t[a];\n if (l.key === r) l.layer.refLayerId = s;else if (r = l.key, s = l.layer.id, l.layer.type === e.FILL) {\n if (!l.layer.getPaintProperty(\"fill-outline-color\")) for (let e = a + 1; e < i; e++) {\n const i = t[e];\n if (i.key !== r) break;\n if (i.layer.getPaintProperty(\"fill-outline-color\")) {\n t[a] = i, t[e] = l, s = i.layer.id;\n break;\n }\n }\n } else if (l.layer.type === e.LINE) {\n let e = l.layer;\n for (let y = a + 1; y < i; y++) {\n const i = t[y];\n if (i.key !== r) break;\n const n = i.layer;\n (e.canUseThinTessellation && !n.canUseThinTessellation || !e.canUseThinTessellation && (n.getPaintProperty(\"line-pattern\") || n.getPaintProperty(\"line-dasharray\"))) && (e = n, t[a] = i, t[y] = l, s = i.layer.id);\n }\n }\n }\n }\n _create(l, y, n) {\n const o = 1 - (1 + y) * (1 / (n.length + 1)),\n u = this._runningId++;\n switch (l.type) {\n case \"background\":\n return new a(e.BACKGROUND, l, o, u);\n case \"fill\":\n return new i(e.FILL, l, o, u);\n case \"line\":\n return new s(e.LINE, l, o, u);\n case \"symbol\":\n return new r(e.SYMBOL, l, o, u);\n case \"raster\":\n return console.warn(`Unsupported vector tile raster layer ${l.id}`), null;\n case \"circle\":\n return new t(e.CIRCLE, l, o, u);\n }\n return null;\n }\n static _recreateLayer(l, y) {\n switch (l.type) {\n case \"background\":\n return new a(e.BACKGROUND, l, y.z, y.uid);\n case \"fill\":\n return new i(e.FILL, l, y.z, y.uid);\n case \"line\":\n return new s(e.LINE, l, y.z, y.uid);\n case \"symbol\":\n return new r(e.SYMBOL, l, y.z, y.uid);\n case \"raster\":\n return console.warn(`Unsupported vector tile raster layer ${l.id}`), null;\n case \"circle\":\n return new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AAMJ,EAAGQ,EAAE,EAAGA,EAAE,GAAG,EACpC,IAAK,OACH,OAAO,IAAIM,GAAEV,EAAE,KAAMJ,EAAGQ,EAAE,EAAGA,EAAE,GAAG,EACpC,IAAK,SACH,OAAO,IAAIO,GAAEX,EAAE,OAAQJ,EAAGQ,EAAE,EAAGA,EAAE,GAAG,EACtC,IAAK,SACH,OAAO,QAAQ,KAAK,wCAAwCR,EAAE,EAAE,EAAE,EAAG,KACvE,IAAK,SACH,OAAO,IAAIgB,GAAEZ,EAAE,OAAQJ,EAAGQ,EAAE,EAAGA,EAAE,GAAG,CACxC,CACA,OAAO,IACT,CACF","names":["t","r","e","i","N","R","r","_r","n","o","i","a","c","u","s","_","l","f","h","d","y","m","E","t","N","R","e","C","I","T","_T","r","t","C","t","_t","r","C","N","l","_l","r","o","t","C","N","T","_T","i","_i","r","e","t","C","N","a","t","C","n","i","_i","r","o","N","c","_c","e","n","t","u","i","a","o","s","f","c","l","b","p","r","r","e","t","i","o","f","u","a","n","y","k","l","c","d","_","v","_v","u","b","_b","t","i","d","_d","f","x","_x","e","E","_E","pt","$","M","k","A","j","q","N","_N","C","_C","s","R","_R","z","_z","I","_I","n","o","a","L","_L","U","_U","l","P","_P","r","c","h","p","w","H","__spreadValues","S","_S","B","_B","T","_T","O","_O","F","_F","G","_G","V","_V","D","_D","_H","J","_J","K","_K","Q","_Q","W","X","Y","Z","tt","et","rt","st","_st","nt","at","_at","ot","_ot","it","_it","lt","_lt","ut","ct","_ct","ht","_ht","gt","t","_t","e","r","n","s","pt","i","h","_h","o","gt","r","e","t","i","a","u","pt","P","x","m","d","l","s","n","p","d","_","t","L","i","e","o","r","T","a","f","h","V","v","n","s","u","l","R","p","g","b","I","N","x","c","P","y","A","U","O","l","_l","t","r","a","e","s","i","y","n","o","u","V","v","x","I","A"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]}