{"version":3,"sources":["node_modules/@arcgis/core/geometry/support/zmUtils.js","node_modules/@arcgis/core/geometry/Multipoint.js","node_modules/@arcgis/core/geometry/geometryCursorCollectUtils.js","node_modules/@arcgis/core/geometry/support/centroid.js","node_modules/@arcgis/core/geometry/support/boundsUtils.js","node_modules/@arcgis/core/geometry/support/extentUtils.js","node_modules/@arcgis/core/geometry/Polygon.js","node_modules/@arcgis/core/geometry/Polyline.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*/\nfunction h(h, a, s = !1) {\n let {\n hasM: t,\n hasZ: e\n } = h;\n Array.isArray(a) ? 4 !== a.length || t || e ? 3 === a.length && s && !t ? (e = !0, t = !1) : 3 === a.length && t && e && (t = !1, e = !1) : (t = !0, e = !0) : (e = !e && a.hasZ && (!t || a.hasM), t = !t && a.hasM && (!e || a.hasZ)), h.hasZ = e, h.hasM = t;\n}\nexport { h as updateSupportFromPoint };","/*\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 { clone as s } from \"../core/lang.js\";\nimport { property as e } from \"../core/accessorSupport/decorators/property.js\";\nimport \"../core/has.js\";\nimport \"../core/Logger.js\";\nimport { subclass as i } from \"../core/accessorSupport/decorators/subclass.js\";\nimport { writer as r } from \"../core/accessorSupport/decorators/writer.js\";\nimport o from \"./Extent.js\";\nimport n from \"./Geometry.js\";\nimport a from \"./Point.js\";\nimport { updateSupportFromPoint as p } from \"./support/zmUtils.js\";\nvar h;\nfunction l(t) {\n return (s, e) => null == s ? e : null == e ? s : t(s, e);\n}\nfunction c(t) {\n return t && (\"esri.geometry.SpatialReference\" === t.declaredClass || null != t.wkid);\n}\nlet m = h = class extends n {\n constructor(...t) {\n super(...t), this.points = [], this.type = \"multipoint\";\n }\n normalizeCtorArgs(t, s) {\n if (!t && !s) return {};\n const e = {};\n Array.isArray(t) ? (e.points = t, e.spatialReference = s) : c(t) ? e.spatialReference = t : (t.points && (e.points = t.points), t.spatialReference && (e.spatialReference = t.spatialReference), t.hasZ && (e.hasZ = t.hasZ), t.hasM && (e.hasM = t.hasM));\n const i = e.points?.[0];\n return i && (void 0 === e.hasZ && void 0 === e.hasM ? (e.hasZ = i.length > 2, e.hasM = !1) : void 0 === e.hasZ ? e.hasZ = i.length > 3 : void 0 === e.hasM && (e.hasM = i.length > 3)), e;\n }\n get cache() {\n return this.commitProperty(\"points\"), this.commitProperty(\"hasZ\"), this.commitProperty(\"hasM\"), this.commitProperty(\"spatialReference\"), {};\n }\n get extent() {\n const t = this.points;\n if (!t.length) return null;\n const s = new o(),\n e = this.hasZ,\n i = this.hasM,\n r = e ? 3 : 2,\n n = t[0],\n a = l(Math.min),\n p = l(Math.max);\n let h,\n c,\n m,\n u,\n [f, y] = n,\n [d, g] = n;\n for (let o = 0, l = t.length; o < l; o++) {\n const s = t[o],\n [n, l] = s;\n if (f = a(f, n), y = a(y, l), d = p(d, n), g = p(g, l), e && s.length > 2) {\n const t = s[2];\n h = a(h, t), m = p(m, t);\n }\n if (i && s.length > r) {\n const t = s[r];\n c = a(c, t), u = p(u, t);\n }\n }\n return s.xmin = f, s.ymin = y, s.xmax = d, s.ymax = g, s.spatialReference = this.spatialReference, e ? (s.zmin = h, s.zmax = m) : (s.zmin = void 0, s.zmax = void 0), i ? (s.mmin = c, s.mmax = u) : (s.mmin = void 0, s.mmax = void 0), s;\n }\n writePoints(t, e) {\n e.points = s(this.points);\n }\n addPoint(t) {\n return p(this, t), Array.isArray(t) ? this.points.push(t) : this.points.push(t.toArray()), this.notifyChange(\"points\"), this;\n }\n clone() {\n const t = {\n points: s(this.points),\n spatialReference: this.spatialReference\n };\n return this.hasZ && (t.hasZ = !0), this.hasM && (t.hasM = !0), new h(t);\n }\n getPoint(t) {\n if (!this._validateInputs(t)) return null;\n const s = this.points[t],\n e = {\n x: s[0],\n y: s[1],\n spatialReference: this.spatialReference\n };\n let i = 2;\n return this.hasZ && (e.z = s[2], i = 3), this.hasM && (e.m = s[i]), new a(e);\n }\n removePoint(t) {\n if (!this._validateInputs(t)) return null;\n const s = new a(this.points.splice(t, 1)[0], this.spatialReference);\n return this.notifyChange(\"points\"), s;\n }\n setPoint(t, s) {\n return this._validateInputs(t) ? (p(this, s), Array.isArray(s) || (s = s.toArray()), this.points[t] = s, this.notifyChange(\"points\"), this) : this;\n }\n toJSON(t) {\n return this.write({}, t);\n }\n _validateInputs(t) {\n return null != t && t >= 0 && t < this.points.length;\n }\n};\nt([e({\n readOnly: !0\n})], m.prototype, \"cache\", null), t([e()], m.prototype, \"extent\", null), t([e({\n type: [[Number]],\n json: {\n write: {\n isRequired: !0\n }\n }\n})], m.prototype, \"points\", void 0), t([r(\"points\")], m.prototype, \"writePoints\", null), m = h = t([i(\"esri.geometry.Multipoint\")], m), m.prototype.toJSON.isDefaultToJSON = !0;\nconst u = m;\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*/\nfunction t(t) {\n const n = [];\n for (t.reset(); t.nextPath();) {\n const e = [];\n for (; t.nextPoint();) e.push([t.x, t.y]);\n n.push(e);\n }\n return t.reset(), n;\n}\nfunction n(t) {\n const n = [];\n for (; t.nextPoint();) n.push([t.x, t.y]);\n return t.seekPathStart(), n;\n}\nexport { t as collectMultipath, n as collectPath };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { collectPath as t } from \"../geometryCursorCollectUtils.js\";\nimport { getLength as n, getMidpoint as e } from \"./coordsUtils.js\";\nfunction r(t) {\n return t ? t.hasZ ? [t.xmax - t.xmin / 2, t.ymax - t.ymin / 2, t.zmax - t.zmin / 2] : [t.xmax - t.xmin / 2, t.ymax - t.ymin / 2] : null;\n}\nfunction l(t) {\n return t ? o(t.rings, t.hasZ ?? !1) : null;\n}\nfunction o(t, n) {\n if (!t?.length) return null;\n const e = [],\n r = [],\n l = n ? [1 / 0, -1 / 0, 1 / 0, -1 / 0, 1 / 0, -1 / 0] : [1 / 0, -1 / 0, 1 / 0, -1 / 0];\n for (let o = 0, i = t.length; o < i; o++) {\n const e = u(t[o], n, l);\n e && r.push(e);\n }\n if (r.sort((t, e) => {\n let r = t[2] - e[2];\n return 0 === r && n && (r = t[4] - e[4]), r;\n }), r.length && (e[0] = r[0][0], e[1] = r[0][1], n && (e[2] = r[0][3]), (e[0] < l[0] || e[0] > l[1] || e[1] < l[2] || e[1] > l[3] || n && (e[2] < l[4] || e[2] > l[5])) && (e.length = 0)), !e.length) {\n const r = t[0] && t[0].length ? s(t[0], n) : null;\n if (!r) return null;\n e[0] = r[0], e[1] = r[1], n && r.length > 2 && (e[2] = r[2]);\n }\n return e;\n}\nfunction u(t, n, e) {\n let r = 0,\n l = 0,\n o = 0,\n u = 0,\n i = 0;\n const s = t.length ? t[0][0] : 0,\n I = t.length ? t[0][1] : 0,\n h = t.length && n ? t[0][2] : 0;\n for (let f = 0; f < t.length; f++) {\n const c = t[f],\n N = t[(f + 1) % t.length],\n [x, g, a] = c,\n m = x - s,\n P = g - I,\n [T, y, E] = N,\n S = T - s,\n p = y - I,\n z = m * p - S * P;\n if (u += z, r += (m + S) * z, l += (P + p) * z, n && c.length > 2 && N.length > 2) {\n const t = a - h,\n n = E - h,\n e = m * n - S * t;\n o += (t + n) * e, i += e;\n }\n x < e[0] && (e[0] = x), x > e[1] && (e[1] = x), g < e[2] && (e[2] = g), g > e[3] && (e[3] = g), n && (a < e[4] && (e[4] = a), a > e[5] && (e[5] = a));\n }\n if (u > 0 && (u *= -1), i > 0 && (i *= -1), !u) return null;\n u *= .5, i *= .5;\n const c = [r / (6 * u) + s, l / (6 * u) + I, u];\n return n && (e[4] === e[5] || 0 === i ? (c[3] = (e[4] + e[5]) / 2, c[4] = 0) : (c[3] = o / (6 * i) + h, c[4] = i)), c;\n}\nfunction i(t, n) {\n let e = 0,\n r = 0,\n l = 0;\n t.nextPoint();\n const o = t.pathSize ? t.x : 0,\n u = t.pathSize ? t.y : 0;\n for (let i = 0; i < t.pathSize; i++) {\n t.seekInPath(i);\n const s = [t.x, t.y];\n t.seekInPath((i + 1) % t.pathSize);\n const I = [t.x, t.y],\n [h, c] = s,\n f = h - o,\n N = c - u,\n [x, g] = I,\n a = x - o,\n m = g - u,\n P = f * m - a * N;\n l += P, e += (f + a) * P, r += (N + m) * P, h < n[0] && (n[0] = h), h > n[1] && (n[1] = h), c < n[2] && (n[2] = c), c > n[3] && (n[3] = c);\n }\n if (l > 0 && (l *= -1), !l) return null;\n l *= .5;\n return [e / (6 * l) + o, r / (6 * l) + u, l];\n}\nfunction s(t, r) {\n const l = r ? [0, 0, 0] : [0, 0],\n o = r ? [0, 0, 0] : [0, 0];\n let u = 0,\n i = 0,\n s = 0,\n I = 0;\n for (let h = 0, c = t.length; h < c - 1; h++) {\n const c = t[h],\n f = t[h + 1];\n if (c && f) {\n l[0] = c[0], l[1] = c[1], o[0] = f[0], o[1] = f[1], r && c.length > 2 && f.length > 2 && (l[2] = c[2], o[2] = f[2]);\n const t = n(l, o);\n if (t) {\n u += t;\n const n = e(c, f);\n i += t * n[0], s += t * n[1], r && n.length > 2 && (I += t * n[2]);\n }\n }\n }\n return u > 0 ? r ? [i / u, s / u, I / u] : [i / u, s / u] : t.length ? t[0] : null;\n}\nfunction I(n) {\n const {\n hasZ: e,\n totalSize: r\n } = n;\n if (0 === r) return null;\n const l = [],\n o = [],\n i = e ? [Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY] : [Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY];\n for (n.reset(); n.nextPath();) {\n const e = u(t(n), n.hasZ, i);\n e && o.push(e);\n }\n if (o.sort((t, n) => {\n let r = t[2] - n[2];\n return 0 === r && e && (r = t[4] - n[4]), r;\n }), o.length && (l[0] = o[0][0], l[1] = o[0][1], e && (l[2] = o[0][3]), (l[0] < i[0] || l[0] > i[1] || l[1] < i[2] || l[1] > i[3] || e && (l[2] < i[4] || l[2] > i[5])) && (l.length = 0)), !l.length) {\n n.reset(), n.nextPath();\n const t = n.pathSize ? h(n) : null;\n if (!t) return null;\n l[0] = t[0], l[1] = t[1], e && t.length > 2 && (l[2] = t[2]);\n }\n return l;\n}\nfunction h(t) {\n const {\n hasZ: r\n } = t,\n l = r ? [0, 0, 0] : [0, 0],\n o = r ? [0, 0, 0] : [0, 0];\n let u = 0,\n i = 0,\n s = 0,\n I = 0;\n if (t.nextPoint()) {\n let h = t.x,\n c = t.y,\n f = t.z;\n for (; t.nextPoint();) {\n const N = t.x,\n x = t.y,\n g = t.z;\n l[0] = h, l[1] = c, o[0] = N, o[1] = x, r && (l[2] = f, o[2] = g);\n const a = n(l, o);\n if (a) {\n u += a;\n const t = e(l, o);\n i += a * t[0], s += a * t[1], r && t.length > 2 && (I += a * t[2]);\n }\n h = N, c = x, f = g;\n }\n }\n return u > 0 ? r ? [i / u, s / u, I / u] : [i / u, s / u] : t.pathSize ? (t.seekPathStart(), t.nextPoint(), [t.x, t.y]) : null;\n}\nconst c = 1e-6;\nfunction f(t) {\n let n = 0;\n for (t.reset(); t.nextPath();) n += t.getCurrentRingArea();\n if (n < c) {\n const n = I(t);\n return n ? [n[0], n[1]] : null;\n }\n const e = [0, 0];\n if (t.reset(), !t.nextPath() || !t.nextPoint()) return null;\n const r = [t.x, t.y];\n for (t.reset(); t.nextPath();) x(e, r, t);\n return e[0] *= 1 / n, e[1] *= 1 / n, e[0] += r[0], e[1] += r[1], e;\n}\nconst N = 1 / 3;\nfunction x(t, n, e) {\n if (!t || !e || e.pathSize < 3) return null;\n e.nextPoint();\n const r = e.x,\n l = e.y;\n e.nextPoint();\n let o,\n u = e.x - r,\n i = e.y - l,\n s = 0,\n I = 0;\n for (; e.nextPoint();) s = e.x - r, I = e.y - l, o = .5 * N * (s * i - I * u), t[0] += o * (u + s), t[1] += o * (i + I), u = s, i = I;\n const h = e.getCurrentRingArea(),\n c = [r, l];\n return c[0] -= n[0], c[1] -= n[1], c[0] *= h, c[1] *= h, t[0] += c[0], t[1] += c[1], t;\n}\nexport { r as extentCentroid, s as lineCentroid, h as lineCentroidCursor, l as polygonCentroid, u as ringCentroid, i as ringCentroidCursorXY, o as ringsCentroid, I as ringsCentroidCursor, f as weightedAreaCentroid };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { create as n } from \"./aaBoundingRect.js\";\nfunction t(n) {\n return void 0 !== n.xmin && void 0 !== n.ymin && void 0 !== n.xmax && void 0 !== n.ymax;\n}\nfunction i(n) {\n return void 0 !== n.points;\n}\nfunction o(n) {\n return void 0 !== n.x && void 0 !== n.y;\n}\nfunction e(n) {\n return void 0 !== n.paths;\n}\nfunction r(n) {\n return void 0 !== n.rings;\n}\nfunction u(n) {\n function t(t, i) {\n return null == t ? i : null == i ? t : n(t, i);\n }\n return t;\n}\nconst l = u(Math.min),\n h = u(Math.max);\nfunction a(n, u) {\n return e(u) ? x(n, u.paths, !1, !1) : r(u) ? x(n, u.rings, !1, !1) : i(u) ? g(n, u.points, !1, !1, !1, !1) : t(u) ? s(n, u) : (o(u) && (n[0] = u.x, n[1] = u.y, n[2] = u.x, n[3] = u.y), n);\n}\nfunction c(t) {\n let i, o, e, r;\n for (t.reset(), i = e = 1 / 0, o = r = -1 / 0; t.nextPath();) {\n const n = f(t);\n i = Math.min(n[0], i), e = Math.min(n[1], e), o = Math.max(n[2], o), r = Math.max(n[3], r);\n }\n return n([i, e, o, r]);\n}\nfunction f(t) {\n let i, o, e, r;\n for (i = e = 1 / 0, o = r = -1 / 0; t.nextPoint();) i = Math.min(t.x, i), e = Math.min(t.y, e), o = Math.max(t.x, o), r = Math.max(t.y, r);\n return n([i, e, o, r]);\n}\nfunction m(n, u) {\n return e(u) ? x(n, u.paths, !0, !1) : r(u) ? x(n, u.rings, !0, !1) : i(u) ? g(n, u.points, !0, !1, !0, !1) : t(u) ? s(n, u, !0, !1, !0, !1) : (o(u) && (n[0] = u.x, n[1] = u.y, n[2] = u.z, n[3] = u.x, n[4] = u.y, n[5] = u.z), n);\n}\nfunction x(n, t, i, o) {\n const e = i ? 3 : 2;\n if (!t.length || !t[0].length) return null;\n let r,\n u,\n a,\n c,\n [f, m] = t[0][0],\n [x, s] = t[0][0];\n for (let g = 0; g < t.length; g++) {\n const n = t[g];\n for (let t = 0; t < n.length; t++) {\n const g = n[t],\n [y, d] = g;\n if (f = l(f, y), m = l(m, d), x = h(x, y), s = h(s, d), i && g.length > 2) {\n const n = g[2];\n r = l(r, n), u = h(u, n);\n }\n if (o && g.length > e) {\n const n = g[e];\n a = l(r, n), c = h(u, n);\n }\n }\n }\n return i ? o ? (n[0] = f, n[1] = m, n[2] = r, n[3] = a, n[4] = x, n[5] = s, n[6] = u, n[7] = c, n.length = 8, n) : (n[0] = f, n[1] = m, n[2] = r, n[3] = x, n[4] = s, n[5] = u, n.length = 6, n) : o ? (n[0] = f, n[1] = m, n[2] = a, n[3] = x, n[4] = s, n[5] = c, n.length = 6, n) : (n[0] = f, n[1] = m, n[2] = x, n[3] = s, n.length = 4, n);\n}\nfunction s(n, t, i, o, e, r) {\n const u = t.xmin,\n l = t.xmax,\n h = t.ymin,\n a = t.ymax;\n let c = t.zmin,\n f = t.zmax,\n m = t.mmin,\n x = t.mmax;\n return e ? (c = c || 0, f = f || 0, r ? (m = m || 0, x = x || 0, n[0] = u, n[1] = h, n[2] = c, n[3] = m, n[4] = l, n[5] = a, n[6] = f, n[7] = x, n) : (n[0] = u, n[1] = h, n[2] = c, n[3] = l, n[4] = a, n[5] = f, n)) : r ? (m = m || 0, x = x || 0, n[0] = u, n[1] = h, n[2] = m, n[3] = l, n[4] = a, n[5] = x, n) : (n[0] = u, n[1] = h, n[2] = l, n[3] = a, n);\n}\nfunction g(n, t, i, o, e, r) {\n const u = i ? 3 : 2,\n a = o && r,\n c = i && e;\n if (!t.length || !t[0].length) return null;\n let f,\n m,\n x,\n s,\n [g, y] = t[0],\n [d, M] = t[0];\n for (let v = 0; v < t.length; v++) {\n const n = t[v],\n [i, o] = n;\n if (g = l(g, i), y = l(y, o), d = h(d, i), M = h(M, o), c && n.length > 2) {\n const t = n[2];\n f = l(f, t), m = h(m, t);\n }\n if (a && n.length > u) {\n const t = n[u];\n x = l(f, t), s = h(m, t);\n }\n }\n return e ? (f = f || 0, m = m || 0, r ? (x = x || 0, s = s || 0, n[0] = g, n[1] = y, n[2] = f, n[3] = x, n[4] = d, n[5] = M, n[6] = m, n[7] = s, n) : (n[0] = g, n[1] = y, n[2] = f, n[3] = d, n[4] = M, n[5] = m, n)) : r ? (x = x || 0, s = s || 0, n[0] = g, n[1] = y, n[2] = x, n[3] = d, n[4] = M, n[5] = s, n) : (n[0] = g, n[1] = y, n[2] = d, n[3] = M, n);\n}\nexport { a as getBoundsXY, m as getBoundsXYZ, c as getCursorBoundsXY, f as getCursorPathBounds, s as getExtentBounds, g as getPointsBounds, x as getRingsOrPathsBounds };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { getPointsBounds as n, getRingsOrPathsBounds as i } from \"./boundsUtils.js\";\nfunction t(n) {\n return void 0 !== n.xmin && void 0 !== n.ymin && void 0 !== n.xmax && void 0 !== n.ymax;\n}\nfunction u(n) {\n return void 0 !== n.points;\n}\nfunction m(n) {\n return void 0 !== n.x && void 0 !== n.y;\n}\nfunction o(n) {\n return void 0 !== n.paths;\n}\nfunction r(n) {\n return void 0 !== n.rings;\n}\nconst x = [];\nfunction a(n, i, t, u) {\n return {\n xmin: n,\n ymin: i,\n xmax: t,\n ymax: u\n };\n}\nfunction c(n, i, t, u, m, o) {\n return {\n xmin: n,\n ymin: i,\n zmin: t,\n xmax: u,\n ymax: m,\n zmax: o\n };\n}\nfunction s(n, i, t, u, m, o) {\n return {\n xmin: n,\n ymin: i,\n mmin: t,\n xmax: u,\n ymax: m,\n mmax: o\n };\n}\nfunction e(n, i, t, u, m, o, r, x) {\n return {\n xmin: n,\n ymin: i,\n zmin: t,\n mmin: u,\n xmax: m,\n ymax: o,\n zmax: r,\n mmax: x\n };\n}\nfunction f(n, i = !1, t = !1) {\n return i ? t ? e(n[0], n[1], n[2], n[3], n[4], n[5], n[6], n[7]) : c(n[0], n[1], n[2], n[3], n[4], n[5]) : t ? s(n[0], n[1], n[2], n[3], n[4], n[5]) : a(n[0], n[1], n[2], n[3]);\n}\nfunction l(n) {\n return n ? t(n) ? n : m(n) ? d(n) : r(n) ? v(n) : o(n) ? h(n) : u(n) ? y(n) : null : null;\n}\nfunction y(i) {\n const {\n hasZ: t,\n hasM: u,\n points: m\n } = i;\n return f(n(x, m, t ?? !1, u ?? !1), t, u);\n}\nfunction d(n) {\n const {\n x: i,\n y: t,\n z: u,\n m\n } = n,\n o = null != m;\n return null != u ? o ? e(i, t, u, m, i, t, u, m) : c(i, t, u, i, t, u) : o ? s(i, t, m, i, t, m) : a(i, t, i, t);\n}\nfunction v(n) {\n const {\n hasZ: t,\n hasM: u,\n rings: m\n } = n,\n o = i(x, m, t ?? !1, u ?? !1);\n return o ? f(o, t, u) : null;\n}\nfunction h(n) {\n const {\n hasZ: t,\n hasM: u,\n paths: m\n } = n,\n o = i(x, m, t ?? !1, u ?? !1);\n return o ? f(o, t, u) : null;\n}\nexport { l as getGeometryExtent, y as getMultipointExtent, d as getPointExtent, v as getPolygonExtent, h as getPolylineExtent };","/*\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 { equals as r } from \"../core/arrayUtils.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 i } from \"../core/accessorSupport/decorators/subclass.js\";\nimport { writer as n } from \"../core/accessorSupport/decorators/writer.js\";\nimport o from \"./Extent.js\";\nimport a from \"./Geometry.js\";\nimport l from \"./Point.js\";\nimport h from \"./SpatialReference.js\";\nimport { polygonCentroid as p } from \"./support/centroid.js\";\nimport { polygonContainsPoint as c } from \"./support/contains.js\";\nimport { isClockwise as u } from \"./support/coordsUtils.js\";\nimport { getPolygonExtent as f } from \"./support/extentUtils.js\";\nimport { isSelfIntersecting as m } from \"./support/intersectsBase.js\";\nimport { project as g } from \"./support/webMercatorUtils.js\";\nimport { updateSupportFromPoint as y } from \"./support/zmUtils.js\";\nvar d;\nfunction R(t) {\n return !Array.isArray(t[0]);\n}\nfunction x(t) {\n return \"number\" == typeof t[0]?.[0];\n}\nfunction j(t) {\n if (!t) return;\n let {\n rings: r,\n hasM: e,\n hasZ: s,\n spatialReference: i\n } = t;\n switch (r ??= [], x(r) && (r = [r]), r[0]?.[0]?.length) {\n case 4:\n s ??= !0, e ??= !0;\n break;\n case 3:\n s ??= !0 !== e, e ??= !s;\n break;\n default:\n s ??= !1, e ??= !1;\n }\n return i ??= h.WGS84, {\n ...t,\n hasM: e,\n hasZ: s,\n rings: r,\n spatialReference: i\n };\n}\nlet w = d = class extends a {\n static fromExtent(t) {\n const r = t.clone().normalize(),\n {\n spatialReference: e\n } = t;\n let s = !1,\n i = !1;\n for (const o of r) o.hasZ && (s = !0), o.hasM && (i = !0);\n const n = {\n rings: r.map(t => {\n const r = [[t.xmin, t.ymin], [t.xmin, t.ymax], [t.xmax, t.ymax], [t.xmax, t.ymin], [t.xmin, t.ymin]];\n if (s && t.hasZ) {\n const e = t.zmin + .5 * (t.zmax - t.zmin);\n for (let t = 0; t < r.length; t++) r[t].push(e);\n }\n if (i && t.hasM) {\n const e = t.mmin + .5 * (t.mmax - t.mmin);\n for (let t = 0; t < r.length; t++) r[t].push(e);\n }\n return r;\n }),\n spatialReference: e\n };\n return s && (n.hasZ = !0), i && (n.hasM = !0), new d(n);\n }\n constructor(t) {\n super(j(t)), this.rings = [], this.type = \"polygon\";\n }\n get cache() {\n return this.commitProperty(\"rings\"), this.commitProperty(\"hasZ\"), this.commitProperty(\"hasM\"), this.commitProperty(\"spatialReference\"), {};\n }\n get centroid() {\n const t = p(this);\n if (!t || isNaN(t[0]) || isNaN(t[1]) || this.hasZ && isNaN(t[2])) return null;\n const r = new l();\n return r.x = t[0], r.y = t[1], r.spatialReference = this.spatialReference, this.hasZ && (r.z = t[2]), r;\n }\n get extent() {\n const {\n spatialReference: t\n } = this,\n r = f(this);\n if (!r) return null;\n const e = new o(r);\n return e.spatialReference = t, e;\n }\n get isSelfIntersecting() {\n return m(this.rings);\n }\n writeRings(t, r) {\n r.rings = e(this.rings);\n }\n addRing(t) {\n if (!t) return;\n const r = this.rings,\n e = r.length;\n if (R(t)) {\n const s = [];\n for (let r = 0, e = t.length; r < e; r++) s[r] = t[r].toArray();\n r[e] = s;\n } else r[e] = t.slice();\n return this.notifyChange(\"rings\"), this;\n }\n clone() {\n const t = new d();\n return t.spatialReference = this.spatialReference, t.rings = e(this.rings), t.hasZ = this.hasZ, t.hasM = this.hasM, t;\n }\n equals(t) {\n if (this === t) return !0;\n if (null == t) return !1;\n const e = this.spatialReference,\n s = t.spatialReference;\n if (null != e != (null != s)) return !1;\n if (null != e && null != s && !e.equals(s)) return !1;\n if (this.rings.length !== t.rings.length) return !1;\n const i = ([t, r, e, s], [i, n, o, a]) => t === i && r === n && (null == e && null == o || e === o) && (null == s && null == a || s === a);\n for (let n = 0; n < this.rings.length; n++) {\n const e = this.rings[n],\n s = t.rings[n];\n if (!r(e, s, i)) return !1;\n }\n return !0;\n }\n contains(t) {\n if (!t) return !1;\n const r = g(t, this.spatialReference);\n return c(this, null != r ? r : t);\n }\n isClockwise(t) {\n const r = R(t) ? t.map(t => this.hasZ ? this.hasM ? [t.x, t.y, t.z, t.m] : [t.x, t.y, t.z] : [t.x, t.y]) : t;\n return u(r);\n }\n getPoint(t, r) {\n if (!this._validateInputs(t, r)) return null;\n const e = this.rings[t][r],\n s = this.hasZ,\n i = this.hasM;\n return s && !i ? new l(e[0], e[1], e[2], void 0, this.spatialReference) : i && !s ? new l(e[0], e[1], void 0, e[2], this.spatialReference) : s && i ? new l(e[0], e[1], e[2], e[3], this.spatialReference) : new l(e[0], e[1], this.spatialReference);\n }\n insertPoint(t, r, e) {\n return this._validateInputs(t, r, !0) ? (y(this, e), Array.isArray(e) || (e = e.toArray()), this.rings[t].splice(r, 0, e), this.notifyChange(\"rings\"), this) : this;\n }\n removePoint(t, r) {\n if (!this._validateInputs(t, r)) return null;\n const e = new l(this.rings[t].splice(r, 1)[0], this.spatialReference);\n return this.notifyChange(\"rings\"), e;\n }\n removeRing(t) {\n if (!this._validateInputs(t, null)) return null;\n const r = this.rings.splice(t, 1)[0],\n e = this.spatialReference,\n s = r.map(t => new l(t, e));\n return this.notifyChange(\"rings\"), s;\n }\n setPoint(t, r, e) {\n return this._validateInputs(t, r) ? (y(this, e), Array.isArray(e) || (e = e.toArray()), this.rings[t][r] = e, this.notifyChange(\"rings\"), this) : this;\n }\n _validateInputs(t, r, e = !1) {\n if (null == t || t < 0 || t >= this.rings.length) return !1;\n if (null != r) {\n const s = this.rings[t];\n if (e && (r < 0 || r > s.length)) return !1;\n if (!e && (r < 0 || r >= s.length)) return !1;\n }\n return !0;\n }\n toJSON(t) {\n return this.write({}, t);\n }\n};\nt([s({\n readOnly: !0\n})], w.prototype, \"cache\", null), t([s({\n readOnly: !0\n})], w.prototype, \"centroid\", null), t([s({\n readOnly: !0\n})], w.prototype, \"extent\", null), t([s({\n readOnly: !0\n})], w.prototype, \"isSelfIntersecting\", null), t([s({\n type: [[[Number]]],\n json: {\n write: {\n isRequired: !0\n }\n }\n})], w.prototype, \"rings\", void 0), t([n(\"rings\")], w.prototype, \"writeRings\", null), w = d = t([i(\"esri.geometry.Polygon\")], w);\nconst v = w;\nw.prototype.toJSON.isDefaultToJSON = !0;\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 t } from \"../chunks/tslib.es6.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 r } from \"../core/accessorSupport/decorators/subclass.js\";\nimport { writer as i } from \"../core/accessorSupport/decorators/writer.js\";\nimport a from \"./Extent.js\";\nimport n from \"./Geometry.js\";\nimport o from \"./Point.js\";\nimport h from \"./SpatialReference.js\";\nimport { getPolylineExtent as p } from \"./support/extentUtils.js\";\nimport { updateSupportFromPoint as l } from \"./support/zmUtils.js\";\nvar c;\nfunction u(t) {\n return !Array.isArray(t[0]);\n}\nfunction f(t) {\n return \"number\" == typeof t[0]?.[0];\n}\nfunction m(t) {\n if (!t) return;\n let {\n paths: e,\n hasM: s,\n hasZ: r,\n spatialReference: i\n } = t;\n switch (e ??= [], f(e) && (e = [e]), e[0]?.[0]?.length) {\n case 4:\n r ??= !0, s ??= !0;\n break;\n case 3:\n r ??= !0 !== s, s ??= !r;\n break;\n default:\n r ??= !1, s ??= !1;\n }\n return i ??= h.WGS84, {\n ...t,\n hasM: s,\n hasZ: r,\n paths: e,\n spatialReference: i\n };\n}\nlet y = c = class extends n {\n constructor(t) {\n super(m(t)), this.paths = [], this.type = \"polyline\";\n }\n get cache() {\n return this.commitProperty(\"paths\"), this.commitProperty(\"hasZ\"), this.commitProperty(\"hasM\"), this.commitProperty(\"spatialReference\"), {};\n }\n get extent() {\n const {\n spatialReference: t\n } = this,\n e = p(this);\n if (!e) return null;\n const s = new a(e);\n return s.spatialReference = t, s;\n }\n writePaths(t, s) {\n s.paths = e(this.paths);\n }\n addPath(t) {\n if (!t) return;\n const e = this.paths,\n s = e.length;\n if (u(t)) {\n const r = [];\n for (let e = 0, s = t.length; e < s; e++) r[e] = t[e].toArray();\n e[s] = r;\n } else e[s] = t.slice();\n return this.notifyChange(\"paths\"), this;\n }\n clone() {\n const t = new c();\n return t.spatialReference = this.spatialReference, t.paths = e(this.paths), t.hasZ = this.hasZ, t.hasM = this.hasM, t;\n }\n getPoint(t, e) {\n if (!this._validateInputs(t, e)) return null;\n const s = this.paths[t][e],\n r = this.hasZ,\n i = this.hasM;\n return r && !i ? new o(s[0], s[1], s[2], void 0, this.spatialReference) : i && !r ? new o(s[0], s[1], void 0, s[2], this.spatialReference) : r && i ? new o(s[0], s[1], s[2], s[3], this.spatialReference) : new o(s[0], s[1], this.spatialReference);\n }\n insertPoint(t, e, s) {\n return this._validateInputs(t, e, !0) ? (l(this, s), Array.isArray(s) || (s = s.toArray()), this.paths[t].splice(e, 0, s), this.notifyChange(\"paths\"), this) : this;\n }\n removePath(t) {\n if (!this._validateInputs(t, null)) return null;\n const e = this.paths.splice(t, 1)[0],\n s = this.spatialReference,\n r = e.map(t => new o(t, s));\n return this.notifyChange(\"paths\"), r;\n }\n removePoint(t, e) {\n if (!this._validateInputs(t, e)) return null;\n const s = new o(this.paths[t].splice(e, 1)[0], this.spatialReference);\n return this.notifyChange(\"paths\"), s;\n }\n setPoint(t, e, s) {\n return this._validateInputs(t, e) ? (l(this, s), Array.isArray(s) || (s = s.toArray()), this.paths[t][e] = s, this.notifyChange(\"paths\"), this) : this;\n }\n _validateInputs(t, e, s = !1) {\n if (null == t || t < 0 || t >= this.paths.length) return !1;\n if (null != e) {\n const r = this.paths[t];\n if (s && (e < 0 || e > r.length)) return !1;\n if (!s && (e < 0 || e >= r.length)) return !1;\n }\n return !0;\n }\n toJSON(t) {\n return this.write({}, t);\n }\n};\nt([s({\n readOnly: !0\n})], y.prototype, \"cache\", null), t([s({\n readOnly: !0\n})], y.prototype, \"extent\", null), t([s({\n type: [[[Number]]],\n json: {\n write: {\n isRequired: !0\n }\n }\n})], y.prototype, \"paths\", void 0), t([i(\"paths\")], y.prototype, \"writePaths\", null), y = c = t([r(\"esri.geometry.Polyline\")], y);\nconst d = y;\ny.prototype.toJSON.isDefaultToJSON = !0;\nexport { d as default };"],"mappings":"+cAIA,SAASA,EAAEA,EAAGC,EAAGC,EAAI,GAAI,CACvB,GAAI,CACF,KAAMC,EACN,KAAMC,CACR,EAAIJ,EACJ,MAAM,QAAQC,CAAC,EAAUA,EAAE,SAAR,GAAkBE,GAAKC,EAAUH,EAAE,SAAR,GAAkBC,GAAK,CAACC,GAAKC,EAAI,GAAID,EAAI,IAAYF,EAAE,SAAR,GAAkBE,GAAKC,IAAMD,EAAI,GAAIC,EAAI,KAAOD,EAAI,GAAIC,EAAI,KAAOA,EAAI,CAACA,GAAKH,EAAE,OAAS,CAACE,GAAKF,EAAE,MAAOE,EAAI,CAACA,GAAKF,EAAE,OAAS,CAACG,GAAKH,EAAE,OAAQD,EAAE,KAAOI,EAAGJ,EAAE,KAAOG,CAChQ,CCKA,IAAIE,EACJ,SAASC,GAAE,EAAG,CACZ,MAAO,CAACC,EAAGC,IAAcD,GAAR,KAAYC,EAAYA,GAAR,KAAYD,EAAI,EAAEA,EAAGC,CAAC,CACzD,CACA,SAASC,GAAE,EAAG,CACZ,OAAO,IAA2C,EAAE,gBAAvC,kCAAgE,EAAE,MAAV,KACvE,CACA,IAAIC,EAAIL,EAAI,cAAcM,CAAE,CAC1B,eAAe,EAAG,CAChB,MAAM,GAAG,CAAC,EAAG,KAAK,OAAS,CAAC,EAAG,KAAK,KAAO,YAC7C,CACA,kBAAkB,EAAGJ,EAAG,CACtB,GAAI,CAAC,GAAK,CAACA,EAAG,MAAO,CAAC,EACtB,IAAMC,EAAI,CAAC,EACX,MAAM,QAAQ,CAAC,GAAKA,EAAE,OAAS,EAAGA,EAAE,iBAAmBD,GAAKE,GAAE,CAAC,EAAID,EAAE,iBAAmB,GAAK,EAAE,SAA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G,EAAGA,EAAI,GAAI,CAC5B,GAAY,GAAR,MAAa,EAAI,GAAK,GAAK,KAAK,MAAM,OAAQ,MAAO,GACzD,GAAY,GAAR,KAAW,CACb,IAAMC,EAAI,KAAK,MAAM,CAAC,EAEtB,GADID,IAAM,EAAI,GAAK,EAAIC,EAAE,SACrB,CAACD,IAAM,EAAI,GAAK,GAAKC,EAAE,QAAS,MAAO,EAC7C,CACA,MAAO,EACT,CACA,OAAO,EAAG,CACR,OAAO,KAAK,MAAM,CAAC,EAAG,CAAC,CACzB,CACF,EACAA,EAAE,CAACF,EAAE,CACH,SAAU,EACZ,CAAC,CAAC,EAAGO,EAAE,UAAW,QAAS,IAAI,EAAGL,EAAE,CAACF,EAAE,CACrC,SAAU,EACZ,CAAC,CAAC,EAAGO,EAAE,UAAW,SAAU,IAAI,EAAGL,EAAE,CAACF,EAAE,CACtC,KAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EACjB,KAAM,CACJ,MAAO,CACL,WAAY,EACd,CACF,CACF,CAAC,CAAC,EAAGO,EAAE,UAAW,QAAS,MAAM,EAAGL,EAAE,CAACA,EAAE,OAAO,CAAC,EAAGK,EAAE,UAAW,aAAc,IAAI,EAAGA,EAAIV,EAAIK,EAAE,CAACS,EAAE,wBAAwB,CAAC,EAAGJ,CAAC,EAChI,IAAMQ,GAAIR,EACVA,EAAE,UAAU,OAAO,gBAAkB","names":["h","a","s","t","e","h","l","s","e","c","m","n","w","r","a","p","u","f","y","d","g","o","t","j","t","n","e","r","l","o","n","e","i","u","t","s","I","h","f","c","N","x","a","m","P","T","y","E","S","p","z","g","t","n","i","o","e","r","u","l","h","a","x","g","s","c","f","m","y","d","M","v","t","n","u","m","o","r","x","a","i","c","s","e","f","l","d","v","h","y","g","d","R","x","j","r","e","s","i","g","__spreadProps","__spreadValues","w","n","o","t","l","v","p","a","c","M","f","h","m","c","u","f","m","s","r","i","g","__spreadProps","__spreadValues","y","n","h","w","a","e","j","t","d"],"x_google_ignoreList":[0,1,2,3,4,5,6,7]}