{"version":3,"sources":["node_modules/@arcgis/core/layers/graphics/OptimizedGeometry.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*/\nconst t = 2;\nclass s {\n constructor(t = [], s = []) {\n this.lengths = t ?? [], this.coords = s ?? [];\n }\n static fromJSON(t) {\n return new s(t.lengths, t.coords);\n }\n static fromRect(t) {\n const [e, r, h, o] = t,\n n = h - e,\n l = o - r;\n return new s([5], [e, r, n, 0, 0, l, -n, 0, 0, -l]);\n }\n get isPoint() {\n return 0 === this.lengths.length && this.coords.length >= 2;\n }\n get maxLength() {\n return Math.max(...this.lengths);\n }\n get size() {\n return this.lengths.reduce((t, s) => t + s);\n }\n forEachVertex(s) {\n let e = 0;\n this.lengths.length || s(this.coords[0], this.coords[1]);\n for (let r = 0; r < this.lengths.length; r++) {\n const h = this.lengths[r];\n for (let r = 0; r < h; r++) {\n s(this.coords[t * (r + e)], this.coords[t * (r + e) + 1]);\n }\n e += h;\n }\n }\n deltaDecode() {\n const t = this.clone(),\n {\n coords: s,\n lengths: e\n } = t;\n let r = 0;\n for (const h of e) {\n for (let t = 1; t < h; t++) s[2 * (r + t)] += s[2 * (r + t) - 2], s[2 * (r + t) + 1] += s[2 * (r + t) - 1];\n r += h;\n }\n return t;\n }\n clone(e) {\n if (0 === this.lengths.length) return new s([], [this.coords[0], this.coords[1]]);\n const r = (0 === this.lengths.length ? 1 : this.lengths.reduce((t, s) => t + s)) * t,\n h = this.coords.slice(0, r);\n return e ? (e.set(h), new s(this.lengths, e)) : new s(Array.from(this.lengths), Array.from(h));\n }\n}\nexport { s as default };"],"mappings":"AAKA,IAAMA,EAAN,MAAMC,CAAE,CACN,YAAY,EAAI,CAAC,EAAG,EAAI,CAAC,EAAG,CAC1B,KAAK,QAAU,GAAK,CAAC,EAAG,KAAK,OAAS,GAAK,CAAC,CAC9C,CACA,OAAO,SAAS,EAAG,CACjB,OAAO,IAAIA,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