{"version":3,"sources":["node_modules/@arcgis/core/geometry/support/UintArray.js","node_modules/@arcgis/core/layers/support/Tilemap.js","node_modules/@arcgis/core/layers/support/TilemapCache.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 { nativeArrayMaxSize as r } from \"../../core/typedArrayUtil.js\";\nfunction n(n, e = !1) {\n return n <= r ? e ? new Array(n).fill(0) : new Array(n) : new Uint32Array(n);\n}\nfunction e(r, n, e) {\n return Array.isArray(r) ? r.slice(n, n + e) : r.subarray(n, n + e);\n}\nexport { n as newUintArray, e as uintSubArray };","/*\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 \"../../request.js\";\nimport i from \"../../core/Error.js\";\nimport { clone as e } from \"../../core/lang.js\";\nimport { estimateSize as a } from \"../../core/typedArrayUtil.js\";\nimport { newUintArray as o } from \"../../geometry/support/UintArray.js\";\nclass l {\n constructor(t) {\n s(t);\n const {\n location: i,\n data: l\n } = t;\n this.location = Object.freeze(e(i));\n const r = this.location.width,\n n = this.location.height;\n let h = !0,\n c = !0;\n const m = Math.ceil(r * n / 32),\n f = o(m);\n let w = 0;\n for (let e = 0; e < l.length; e++) {\n const t = e % 32;\n l[e] ? (c = !1, f[w] |= 1 << t) : h = !1, 31 === t && ++w;\n }\n c ? (this._availability = \"unavailable\", this.byteSize = 40) : h ? (this._availability = \"available\", this.byteSize = 40) : (this._availability = f, this.byteSize = 40 + a(f));\n }\n getAvailability(t, i) {\n if (\"unavailable\" === this._availability || \"available\" === this._availability) return this._availability;\n const e = (t - this.location.top) * this.location.width + (i - this.location.left),\n a = e % 32,\n o = e >> 5,\n l = this._availability;\n return o < 0 || o > l.length ? \"unknown\" : l[o] & 1 << a ? \"available\" : \"unavailable\";\n }\n static fromDefinition(e, a) {\n const o = e.service.request || t,\n {\n row: r,\n col: s,\n width: h,\n height: c\n } = e,\n m = {\n query: {\n f: \"json\"\n }\n };\n return a = a ? {\n ...m,\n ...a\n } : m, o(n(e), a).then(t => t.data).catch(t => {\n if (422 === t?.details?.httpStatus) return {\n location: {\n top: r,\n left: s,\n width: h,\n height: c\n },\n valid: !0,\n data: new Array(h * c).fill(0)\n };\n throw t;\n }).then(t => {\n if (t.location && (t.location.top !== r || t.location.left !== s || t.location.width !== h || t.location.height !== c)) throw new i(\"tilemap:location-mismatch\", \"Tilemap response for different location than requested\", {\n response: t,\n definition: {\n top: r,\n left: s,\n width: h,\n height: c\n }\n });\n return l.fromJSON(t);\n });\n }\n static fromJSON(t) {\n return Object.freeze(new l(t));\n }\n}\nfunction r(t) {\n return `${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`;\n}\nfunction n(t) {\n let i;\n if (t.service.tileServers?.length) {\n const e = t.service.tileServers;\n i = `${e && e.length ? e[t.row % e.length] : t.service.url}/tilemap/${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`;\n } else i = `${t.service.url}/tilemap/${t.level}/${t.row}/${t.col}/${t.width}/${t.height}`;\n const e = t.service.query;\n return e && (i = `${i}?${e}`), i;\n}\nfunction s(t) {\n if (!t?.location) throw new i(\"tilemap:missing-location\", \"Location missing from tilemap response\");\n if (!1 === t.valid) throw new i(\"tilemap:invalid\", \"Tilemap response was marked as invalid\");\n if (!t.data) throw new i(\"tilemap:missing-data\", \"Data missing from tilemap response\");\n if (!Array.isArray(t.data)) throw new i(\"tilemap:data-mismatch\", \"Data must be an array of numbers\");\n if (t.data.length !== t.location.width * t.location.height) throw new i(\"tilemap:data-mismatch\", \"Number of data items does not match width/height of tilemap\");\n}\nexport { l as Tilemap, r as tilemapDefinitionId };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { _ as e } from \"../../chunks/tslib.es6.js\";\nimport t from \"../../request.js\";\nimport i from \"../../core/Accessor.js\";\nimport { ByteSizeUnit as r } from \"../../core/ByteSizeUnit.js\";\nimport s from \"../../core/Error.js\";\nimport { makeHandle as l } from \"../../core/handleUtils.js\";\nimport \"../../core/has.js\";\nimport { LRUCache as o } from \"../../core/LRUCache.js\";\nimport a from \"../../core/PooledArray.js\";\nimport { isAbortError as n, isAborted as c, onAbort as h, createAbortError as p } from \"../../core/promiseUtils.js\";\nimport { watch as m, initial as f } from \"../../core/reactiveUtils.js\";\nimport { waitTicks as u } from \"../../core/scheduling.js\";\nimport { objectToQuery as v } from \"../../core/urlUtils.js\";\nimport { property as y } from \"../../core/accessorSupport/decorators/property.js\";\nimport \"../../core/Logger.js\";\nimport \"../../core/RandomLCG.js\";\nimport { subclass as d } from \"../../core/accessorSupport/decorators/subclass.js\";\nimport { TileKey as _ } from \"./TileKey.js\";\nimport { Tilemap as b, tilemapDefinitionId as g } from \"./Tilemap.js\";\nvar j;\nfunction w(e, t, i) {\n return new s(\"tile-map:tile-unavailable\", \"Tile is not available\", {\n level: e,\n row: t,\n col: i\n });\n}\nlet T = j = class extends i {\n constructor(e) {\n super(e), this._pendingTilemapRequests = {}, this.request = t, this.size = 32, this._prefetchingEnabled = !0;\n }\n initialize() {\n this._tilemapCache = new o(2 * r.MEGABYTES), this.addHandles(m(() => {\n const {\n layer: e\n } = this;\n return [e?.parsedUrl, e?.tileServers, e?.apiKey, e?.customParameters];\n }, () => this._initializeTilemapDefinition(), f));\n }\n get effectiveMinLOD() {\n return this.minLOD ?? this.layer.tileInfo.lods[0].level;\n }\n get effectiveMaxLOD() {\n return this.maxLOD ?? this.layer.tileInfo.lods[this.layer.tileInfo.lods.length - 1].level;\n }\n getAvailability(e, t, i) {\n if (!this.layer.tileInfo.lodAt(e) || e < this.effectiveMinLOD || e > this.effectiveMaxLOD) return \"unavailable\";\n const r = this._tilemapFromCache(e, t, i, this._tmpTilemapDefinition);\n return r ? r.getAvailability(t, i) : \"unknown\";\n }\n fetchAvailability(e, t, i, r) {\n return !this.layer.tileInfo.lodAt(e) || e < this.effectiveMinLOD || e > this.effectiveMaxLOD ? Promise.reject(w(e, t, i)) : this._fetchTilemap(e, t, i, r).catch(e => e).then(r => {\n if (r instanceof b) {\n const s = r.getAvailability(t, i);\n if (\"unavailable\" === s) throw w(e, t, i);\n return s;\n }\n if (n(r)) throw r;\n return \"unknown\";\n });\n }\n fetchAvailabilityUpsample(e, t, i, r, s) {\n r.level = e, r.row = t, r.col = i;\n const l = this.layer.tileInfo;\n l.updateTileInfo(r);\n const o = this.fetchAvailability(e, t, i, s).catch(e => {\n if (n(e)) throw e;\n if (l.upsampleTile(r)) return this.fetchAvailabilityUpsample(r.level, r.row, r.col, r, s);\n throw e;\n });\n return this._fetchAvailabilityUpsamplePrefetch(r.id, e, t, i, s, o), o;\n }\n async _fetchAvailabilityUpsamplePrefetch(e, t, i, r, s, o) {\n if (!this._prefetchingEnabled || null == e) return;\n const a = `prefetch-${e}`;\n if (this.hasHandles(a)) return;\n const n = new AbortController();\n o.then(() => n.abort(), () => n.abort());\n let h = !1;\n const p = l(() => {\n h || (h = !0, n.abort());\n });\n if (this.addHandles(p, a), await u(10, n.signal).catch(() => {}), h || (h = !0, this.removeHandles(a)), c(n)) return;\n const m = new _(e, t, i, r),\n f = {\n ...s,\n signal: n.signal\n },\n v = this.layer.tileInfo;\n for (let l = 0; j._prefetches.length < j._maxPrefetch && v.upsampleTile(m); ++l) {\n const e = this.fetchAvailability(m.level, m.row, m.col, f);\n j._prefetches.push(e);\n const t = () => {\n j._prefetches.removeUnordered(e);\n };\n e.then(t, t);\n }\n }\n _fetchTilemap(e, t, i, r) {\n if (!this.layer.tileInfo.lodAt(e) || e < this.effectiveMinLOD || e > this.effectiveMaxLOD) return Promise.reject(new s(\"tilemap-cache:level-unavailable\", `Level ${e} is unavailable in the service`));\n const l = this._tmpTilemapDefinition,\n o = this._tilemapFromCache(e, t, i, l);\n if (o) return Promise.resolve(o);\n const a = r?.signal;\n return r = {\n ...r,\n signal: null\n }, new Promise((e, t) => {\n h(a, () => t(p()));\n const i = g(l);\n let s = this._pendingTilemapRequests[i];\n if (!s) {\n s = b.fromDefinition(l, r).then(e => (this._tilemapCache.put(i, e, e.byteSize), e));\n const e = () => {\n delete this._pendingTilemapRequests[i];\n };\n this._pendingTilemapRequests[i] = s, s.then(e, e);\n }\n s.then(e, t);\n });\n }\n _initializeTilemapDefinition() {\n if (!this.layer.parsedUrl) return;\n const {\n parsedUrl: e,\n apiKey: t,\n customParameters: i\n } = this.layer;\n this._tilemapCache.clear(), this._tmpTilemapDefinition = {\n service: {\n url: e.path,\n query: v({\n ...e.query,\n ...i,\n token: t ?? e.query?.token\n }),\n tileServers: this.layer.tileServers,\n request: this.request\n },\n width: this.size,\n height: this.size,\n level: 0,\n row: 0,\n col: 0\n };\n }\n _tilemapFromCache(e, t, i, r) {\n r.level = e, r.row = t - t % this.size, r.col = i - i % this.size;\n const s = g(r);\n return this._tilemapCache.get(s);\n }\n get test() {}\n};\nT._maxPrefetch = 4, T._prefetches = new a({\n initialSize: j._maxPrefetch\n}), e([y({\n constructOnly: !0\n})], T.prototype, \"layer\", void 0), e([y({\n constructOnly: !0\n})], T.prototype, \"minLOD\", void 0), e([y({\n constructOnly: !0\n})], T.prototype, \"maxLOD\", void 0), e([y({\n constructOnly: !0\n})], T.prototype, \"request\", void 0), e([y({\n constructOnly: !0\n})], T.prototype, \"size\", void 0), T = j = e([d(\"esri.layers.support.TilemapCache\")], T);\nexport { T as TilemapCache };"],"mappings":"wnBAKA,SAASA,EAAEA,EAAGC,EAAI,GAAI,CACpB,OAAOD,GAAKE,EAAID,EAAI,IAAI,MAAMD,CAAC,EAAE,KAAK,CAAC,EAAI,IAAI,MAAMA,CAAC,EAAI,IAAI,YAAYA,CAAC,CAC7E,CCEA,IAAMG,EAAN,MAAMC,CAAE,CACN,YAAYC,EAAG,CACbC,EAAED,CAAC,EACH,GAAM,CACJ,SAAUE,EACV,KAAMJ,CACR,EAAIE,EACJ,KAAK,SAAW,OAAO,OAAOG,EAA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MT,EAAIA,EAAI,KAAK,KAC7D,IAAMC,EAAIQ,EAAEA,CAAC,EACb,OAAO,KAAK,cAAc,IAAIR,CAAC,CACjC,CACA,IAAI,MAAO,CAAC,CACd,EACAC,EAAE,aAAe,EAAGA,EAAE,YAAc,IAAIQ,EAAE,CACxC,YAAab,EAAE,YACjB,CAAC,EAAGY,EAAE,CAACS,EAAE,CACP,cAAe,EACjB,CAAC,CAAC,EAAGhB,EAAE,UAAW,QAAS,MAAM,EAAGO,EAAE,CAACS,EAAE,CACvC,cAAe,EACjB,CAAC,CAAC,EAAGhB,EAAE,UAAW,SAAU,MAAM,EAAGO,EAAE,CAACS,EAAE,CACxC,cAAe,EACjB,CAAC,CAAC,EAAGhB,EAAE,UAAW,SAAU,MAAM,EAAGO,EAAE,CAACS,EAAE,CACxC,cAAe,EACjB,CAAC,CAAC,EAAGhB,EAAE,UAAW,UAAW,MAAM,EAAGO,EAAE,CAACS,EAAE,CACzC,cAAe,EACjB,CAAC,CAAC,EAAGhB,EAAE,UAAW,OAAQ,MAAM,EAAGA,EAAIL,EAAIY,EAAE,CAACI,EAAE,kCAAkC,CAAC,EAAGX,CAAC","names":["n","e","U","l","_l","t","s","i","a","n","h","c","m","f","w","e","A","o","U","__spreadValues","r","j","w","t","i","s","T","b","U","e","E","d","P","r","l","o","__async","a","n","h","p","c","m","__spreadProps","__spreadValues","v","u"],"x_google_ignoreList":[0,1,2]}