{"version":3,"sources":["node_modules/@arcgis/core/views/2d/tiling/LODInfo.js","node_modules/@arcgis/core/views/2d/tiling/TileCoverage.js","node_modules/@arcgis/core/views/2d/tiling/TileSpan.js","node_modules/@arcgis/core/views/2d/tiling/TileInfoView.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 { getInfo as t } from \"../../../geometry/support/spatialReferenceUtils.js\";\nimport r from \"./TileKey.js\";\nfunction i(t, r) {\n return [t, r];\n}\nfunction o(t, r, i) {\n return t[0] = r, t[1] = i, t;\n}\nfunction e(t, r, i, o, e) {\n return t[0] = r, t[1] = i, t[2] = o, t[3] = e, t;\n}\nconst s = new r(\"0/0/0/0\");\nclass l {\n static create(r, e, s = null) {\n const n = t(r.spatialReference),\n a = e.origin || i(r.origin.x, r.origin.y),\n h = i(r.size[0] * e.resolution, r.size[1] * e.resolution),\n u = i(-1 / 0, -1 / 0),\n c = i(1 / 0, 1 / 0),\n m = i(1 / 0, 1 / 0);\n null != s && (o(u, Math.max(0, Math.floor((s.xmin - a[0]) / h[0])), Math.max(0, Math.floor((a[1] - s.ymax) / h[1]))), o(c, Math.max(0, Math.floor((s.xmax - a[0]) / h[0])), Math.max(0, Math.floor((a[1] - s.ymin) / h[1]))), o(m, c[0] - u[0] + 1, c[1] - u[1] + 1));\n const {\n cols: g,\n rows: w\n } = e;\n let d, f, p, z;\n return !s && g && w && (o(u, g[0], w[0]), o(c, g[1], w[1]), o(m, g[1] - g[0] + 1, w[1] - w[0] + 1)), r.isWrappable ? (d = i(Math.ceil(Math.round((n.valid[1] - n.valid[0]) / e.resolution) / r.size[0]), m[1]), f = !0, p = n.origin, z = n.valid) : (d = m, f = !1), new l(e.level, e.resolution, e.scale, a, u, c, m, h, d, f, p, z);\n }\n constructor(t, r, i, o, e, s, l, n, a, h, u, c) {\n this.level = t, this.resolution = r, this.scale = i, this.origin = o, this.first = e, this.last = s, this.size = l, this.norm = n, this.worldSize = a, this.wrap = h, this._spatialReferenceOrigin = u, this._spatialReferenceValid = c;\n }\n normalizeCol(t) {\n if (!this.wrap) return t;\n const r = this.worldSize[0];\n return t < 0 ? r - 1 - Math.abs((t + 1) % r) : t % r;\n }\n normalizeKey(t) {\n if (!this.wrap) return;\n const r = this.worldSize[0],\n i = t.col;\n i < 0 ? (t.col = i + r, t.world -= 1) : i >= r && (t.col = i - r, t.world += 1);\n }\n denormalizeCol(t, r) {\n return this.wrap ? this.worldSize[0] * r + t : t;\n }\n getWorldForColumn(t) {\n return this.wrap ? Math.floor(t / this.worldSize[0]) : 0;\n }\n getFirstColumnForWorld(t) {\n return t * this.worldSize[0] + this.first[0];\n }\n getLastColumnForWorld(t) {\n return t * this.worldSize[0] + this.first[0] + this.size[0] - 1;\n }\n getColumnForX(t) {\n return (t - this.origin[0]) / this.norm[0];\n }\n getXForColumn(t) {\n const r = this.origin[0] + t * this.norm[0],\n i = this._spatialReferenceOrigin,\n o = this._spatialReferenceValid;\n return this.wrap && i && o ? r === i[0] ? o[0] : this.origin[0] === i[0] && t === this.worldSize[0] ? o[1] : r : r;\n }\n getRowForY(t) {\n return (this.origin[1] - t) / this.norm[1];\n }\n getYForRow(t) {\n return this.origin[1] - t * this.norm[1];\n }\n getTileBounds(t, r, i = !1) {\n s.set(r);\n const o = i ? s.col : this.denormalizeCol(s.col, s.world),\n l = s.row;\n return e(t, this.getXForColumn(o), this.getYForRow(l + 1), this.getXForColumn(o + 1), this.getYForRow(l)), t;\n }\n getTileCoords(t, r, i = !1) {\n s.set(r);\n const e = i ? s.col : this.denormalizeCol(s.col, s.world);\n return Array.isArray(t) ? o(t, this.getXForColumn(e), this.getYForRow(s.row)) : (t.x = this.getXForColumn(e), t.y = this.getYForRow(s.row)), t;\n }\n}\nexport { l as default };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport o from \"../../../core/ObjectPool.js\";\nimport l from \"./TileKey.js\";\nclass s {\n constructor() {\n this.spans = [];\n }\n acquire(o) {\n this.lodInfo = o;\n }\n release() {\n this.lodInfo = null, this.spans.length = 0;\n }\n *keys() {\n const o = this.lodInfo;\n for (const {\n row: s,\n colFrom: e,\n colTo: r\n } of this.spans) for (let t = e; t <= r; t++) {\n const e = o.getWorldForColumn(t);\n yield new l(o.level, s, o.normalizeCol(t), e);\n }\n }\n forEach(o, l) {\n const {\n spans: s,\n lodInfo: e\n } = this,\n {\n level: r\n } = e;\n if (0 !== s.length) for (const {\n row: t,\n colFrom: n,\n colTo: c\n } of s) for (let s = n; s <= c; s++) o.call(l, r, t, e.normalizeCol(s), e.getWorldForColumn(s));\n }\n}\ns.pool = new o(s);\nexport { s 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*/\nclass o {\n constructor(o, s, t) {\n this.row = o, this.colFrom = s, this.colTo = t;\n }\n}\nexport { o 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 { getInfo as e } from \"../../../geometry/support/spatialReferenceUtils.js\";\nimport t from \"./LODInfo.js\";\nimport o from \"./TileCoverage.js\";\nimport l from \"./TileKey.js\";\nimport s from \"./TileSpan.js\";\nconst i = new l(\"0/0/0/0\");\nclass n {\n static create(e, t) {\n e[1] > t[1] && ([e, t] = [t, e]);\n const [o, l] = e,\n [s, i] = t,\n r = s - o,\n a = i - l,\n h = 0 !== a ? r / a : 0,\n c = (Math.ceil(l) - l) * h,\n f = (Math.floor(l) - l) * h;\n return new n(o, Math.floor(l), Math.ceil(i), h, r < 0 ? c : f, r < 0 ? f : c, r < 0 ? s : o, r < 0 ? o : s);\n }\n constructor(e, t, o, l, s, i, n, r) {\n this.x = e, this.ymin = t, this.ymax = o, this.invM = l, this.leftAdjust = s, this.rightAdjust = i, this.leftBound = n, this.rightBound = r;\n }\n incrRow() {\n this.x += this.invM;\n }\n getLeftCol() {\n return Math.max(this.x + this.leftAdjust, this.leftBound);\n }\n getRightCol() {\n return Math.min(this.x + this.rightAdjust, this.rightBound);\n }\n}\nconst r = [[0, 0], [0, 0], [0, 0], [0, 0]],\n a = 1e-6;\nclass h {\n constructor(e, o = null, l = e.lods[0].level, s = e.lods[e.lods.length - 1].level) {\n this.tileInfo = e, this.fullExtent = o, this.scales = [], this._infoByScale = {}, this._infoByLevel = {};\n const i = e.lods.filter(e => e.level >= l && e.level <= s);\n this.minScale = i[0].scale, this.maxScale = i[i.length - 1].scale;\n const n = this._lodInfos = i.map(l => t.create(e, l, o));\n i.forEach((e, t) => {\n this._infoByLevel[e.level] = n[t], this._infoByScale[e.scale] = n[t], this.scales[t] = e.scale;\n }, this), this._wrap = e.isWrappable;\n }\n get spatialReference() {\n return this.tileInfo.spatialReference;\n }\n getLODInfoAt(e) {\n return this._infoByLevel[\"number\" == typeof e ? e : e.level];\n }\n getTileBounds(e, t, o = !1) {\n i.set(t);\n const l = this._infoByLevel[i.level];\n return l ? l.getTileBounds(e, i, o) : e;\n }\n getTileCoords(e, t, o = !1) {\n i.set(t);\n const l = this._infoByLevel[i.level];\n return l ? l.getTileCoords(e, i, o) : e;\n }\n getTileCoverage(e, t = 192, l = !0, i = \"closest\") {\n if (!l && (e.scale > this.minScale || e.scale < this.maxScale)) return null;\n const a = \"closest\" === i ? this.getClosestInfoForScale(e.scale) : this.getSmallestInfoForScale(e.scale),\n h = o.pool.acquire(a),\n c = this._wrap;\n let f,\n u,\n m,\n g = 1 / 0,\n d = -1 / 0;\n const v = h.spans;\n r[0][0] = r[0][1] = r[1][1] = r[3][0] = -t, r[1][0] = r[2][0] = e.size[0] + t, r[2][1] = r[3][1] = e.size[1] + t;\n for (const o of r) e.toMap(o, o), o[0] = a.getColumnForX(o[0]), o[1] = a.getRowForY(o[1]);\n const y = [];\n let _ = 3;\n for (let o = 0; o < 4; o++) {\n if (r[o][1] === r[_][1]) {\n _ = o;\n continue;\n }\n const e = n.create(r[o], r[_]);\n g = Math.min(e.ymin, g), d = Math.max(e.ymax, d), void 0 === y[e.ymin] && (y[e.ymin] = []), y[e.ymin].push(e), _ = o;\n }\n if (null == g || null == d || d - g > 100) return null;\n let p = [];\n for (f = g; f < d;) {\n null != y[f] && (p = p.concat(y[f])), u = 1 / 0, m = -1 / 0;\n for (let e = p.length - 1; e >= 0; e--) {\n const t = p[e];\n u = Math.min(u, t.getLeftCol()), m = Math.max(m, t.getRightCol());\n }\n if (u = Math.floor(u), m = Math.floor(m), f >= a.first[1] && f <= a.last[1]) if (c) {\n if (a.size[0] < a.worldSize[0]) {\n const e = Math.floor(m / a.worldSize[0]);\n for (let t = Math.floor(u / a.worldSize[0]); t <= e; t++) v.push(new s(f, Math.max(a.getFirstColumnForWorld(t), u), Math.min(a.getLastColumnForWorld(t), m)));\n } else v.push(new s(f, u, m));\n } else u > a.last[0] || m < a.first[0] || (u = Math.max(u, a.first[0]), m = Math.min(m, a.last[0]), v.push(new s(f, u, m)));\n f += 1;\n for (let e = p.length - 1; e >= 0; e--) {\n const t = p[e];\n t.ymax >= f ? t.incrRow() : p.splice(e, 1);\n }\n }\n return h;\n }\n getTileParentId(e) {\n i.set(e);\n const t = this._infoByLevel[i.level],\n o = this._lodInfos.indexOf(t) - 1;\n return o < 0 ? null : (this._getTileIdAtLOD(i, this._lodInfos[o], i), i.id);\n }\n getTileResolution(e) {\n const t = this._infoByLevel[\"object\" == typeof e ? e.level : e];\n return t ? t.resolution : -1;\n }\n getTileScale(e) {\n const t = this._infoByLevel[e.level];\n return t ? t.scale : -1;\n }\n intersects(e, t) {\n i.set(t);\n const o = this._infoByLevel[i.level],\n l = e.lodInfo;\n if (l.resolution > o.resolution) {\n this._getTileIdAtLOD(i, l, i);\n const t = l.denormalizeCol(i.col, i.world);\n for (const o of e.spans) if (o.row === i.row && o.colFrom <= t && o.colTo >= t) return !0;\n }\n if (l.resolution < o.resolution) {\n const [t, s, n, r] = e.spans.reduce((e, t) => (e[0] = Math.min(e[0], t.row), e[1] = Math.max(e[1], t.row), e[2] = Math.min(e[2], t.colFrom), e[3] = Math.max(e[3], t.colTo), e), [1 / 0, -1 / 0, 1 / 0, -1 / 0]),\n a = o.denormalizeCol(i.col, i.world),\n h = l.getColumnForX(o.getXForColumn(a)),\n c = l.getRowForY(o.getYForRow(i.row)),\n f = l.getColumnForX(o.getXForColumn(a + 1)) - 1,\n u = l.getRowForY(o.getYForRow(i.row + 1)) - 1;\n return !(h > r || f < n || c > s || u < t);\n }\n const s = l.denormalizeCol(i.col, i.world);\n return e.spans.some(e => e.row === i.row && e.colFrom <= s && e.colTo >= s);\n }\n normalizeBounds(t, o, l) {\n if (t[0] = o[0], t[1] = o[1], t[2] = o[2], t[3] = o[3], this._wrap) {\n const o = e(this.tileInfo.spatialReference),\n s = -l * (o.valid[1] - o.valid[0]);\n t[0] += s, t[2] += s;\n }\n return t;\n }\n getSmallestInfoForScale(e) {\n const t = this.scales;\n if (this._infoByScale[e]) return this._infoByScale[e];\n if (e > t[0]) return this._infoByScale[t[0]];\n for (let o = 1; o < t.length - 1; o++) if (e > t[o] + a) return this._infoByScale[t[o - 1]];\n return this._infoByScale[t[t.length - 1]];\n }\n getClosestInfoForScale(e) {\n const t = this.scales;\n return this._infoByScale[e] || (e = t.reduce((t, o) => Math.abs(o - e) < Math.abs(t - e) ? o : t, t[0])), this._infoByScale[e];\n }\n scaleToLevel(e) {\n const t = this.scales;\n if (this._infoByScale[e]) return this._infoByScale[e].level;\n for (let o = t.length - 1; o >= 0; o--) if (e < t[o]) {\n if (o === t.length - 1) return this._infoByScale[t[t.length - 1]].level;\n return this._infoByScale[t[o]].level + (t[o] - e) / (t[o] - t[o + 1]);\n }\n return this._infoByScale[t[0]].level;\n }\n scaleToZoom(e) {\n return this.tileInfo.scaleToZoom(e);\n }\n zoomToScale(e) {\n return this.tileInfo.zoomToScale(e);\n }\n _getTileIdAtLOD(e, t, o) {\n const l = this._infoByLevel[o.level];\n return e.set(o), t.resolution < l.resolution ? null : (t.resolution === l.resolution || (e.level = t.level, e.col = Math.floor(o.col * l.resolution / t.resolution + .01), e.row = Math.floor(o.row * l.resolution / t.resolution + .01)), e);\n }\n}\nexport { h as default };"],"mappings":"wHAMA,SAASA,EAAEC,EAAGC,EAAG,CACf,MAAO,CAACD,EAAGC,CAAC,CACd,CACA,SAASC,EAAEF,EAAGC,EAAGF,EAAG,CAClB,OAAOC,EAAE,CAAC,EAAIC,EAAGD,EAAE,CAAC,EAAID,EAAGC,CAC7B,CACA,SAASG,EAAEH,EAAGC,EAAGF,EAAGG,EAAGC,EAAG,CACxB,OAAOH,EAAE,CAAC,EAAIC,EAAGD,EAAE,CAAC,EAAID,EAAGC,EAAE,CAAC,EAAIE,EAAGF,EAAE,CAAC,EAAIG,EAAGH,CACjD,CACA,IAAMI,EAAI,IAAID,EAAE,SAAS,EACnBE,EAAN,MAAMC,CAAE,CACN,OAAO,OAAOL,EAAGE,EAAGC,EAAI,KAAM,CAC5B,IAAMG,EAAIC,EAAEP,EAAE,gBAAgB,EAC5BQ,EAAIN,EAAE,QAAUJ,EAAEE,EAAE,OAAO,EAAGA,EAAE,OAAO,CAAC,EACxCS,EAAIX,EAAEE,EAAE,KAAK,CAAC,EAAIE,EAAE,WAAYF,EAAE,KAAK,CAAC,EAAIE,EAAE,UAAU,EACxDQ,EAAIZ,EAAE,KAAQ,IAAM,EACpBa,EAAIb,EAAE,IAAO,GAAK,EAClBc,EAAId,EAAE,IAAO,GAAK,EACZK,GAAR,OAAcF,EAAES,EAAG,KAAK,IAAI,EAAG,KAAK,OAAOP,EAAE,KAAOK,EAAE,CAAC,GAAKC,EAAE,CAAC,CAAC,CAAC,EAAG,KAAK,IAAI,EAAG,KAAK,OAAOD,EAAE,CAAC,EAAIL,EAAE,MAAQM,EAAE,CAAC,CAAC,CAAC,CAAC,EAAGR,EAAEU,EAAG,KAAK,IAAI,EAAG,KAAK,OAAOR,EAAE,KA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K,IAAIA,EAAIH,CAAC,EAAI,KAAK,IAAIW,EAAIX,CAAC,EAAIG,EAAIQ,EAAG,EAAE,CAAC,CAAC,GAAI,KAAK,aAAaX,CAAC,CAC/H,CACA,aAAaA,EAAG,CACd,IAAM,EAAI,KAAK,OACf,GAAI,KAAK,aAAaA,CAAC,EAAG,OAAO,KAAK,aAAaA,CAAC,EAAE,MACtD,QAASG,EAAI,EAAE,OAAS,EAAGA,GAAK,EAAGA,IAAK,GAAIH,EAAI,EAAEG,CAAC,EACjD,OAAIA,IAAM,EAAE,OAAS,EAAU,KAAK,aAAa,EAAE,EAAE,OAAS,CAAC,CAAC,EAAE,MAC3D,KAAK,aAAa,EAAEA,CAAC,CAAC,EAAE,OAAS,EAAEA,CAAC,EAAIH,IAAM,EAAEG,CAAC,EAAI,EAAEA,EAAI,CAAC,GAErE,OAAO,KAAK,aAAa,EAAE,CAAC,CAAC,EAAE,KACjC,CACA,YAAYH,EAAG,CACb,OAAO,KAAK,SAAS,YAAYA,CAAC,CACpC,CACA,YAAYA,EAAG,CACb,OAAO,KAAK,SAAS,YAAYA,CAAC,CACpC,CACA,gBAAgBA,EAAG,EAAGG,EAAG,CACvB,IAAM,EAAI,KAAK,aAAaA,EAAE,KAAK,EACnC,OAAOH,EAAE,IAAIG,CAAC,EAAG,EAAE,WAAa,EAAE,WAAa,MAAQ,EAAE,aAAe,EAAE,aAAeH,EAAE,MAAQ,EAAE,MAAOA,EAAE,IAAM,KAAK,MAAMG,EAAE,IAAM,EAAE,WAAa,EAAE,WAAa,GAAG,EAAGH,EAAE,IAAM,KAAK,MAAMG,EAAE,IAAM,EAAE,WAAa,EAAE,WAAa,GAAG,GAAIH,EAC7O,CACF","names":["i","t","r","o","e","s","l","_l","n","d","a","h","u","c","m","g","w","f","p","z","s","r","t","e","l","n","c","o","s","t","i","e","n","_n","o","s","a","h","c","f","r","l","t","u","m","g","d","v","y","_","p"],"x_google_ignoreList":[0,1,2,3]}