import { A, a2 as a, c2 as c, e, f, i, i2, s2 as s, t2 as t, u2 as u, y } from "./chunk-2TIUKVZN.js"; import { r } from "./chunk-YXWMMD76.js"; // node_modules/@arcgis/core/core/lang.js function p(t3, n3) { let e5; if (n3) for (e5 in t3) t3.hasOwnProperty(e5) && (void 0 === t3[e5] ? delete t3[e5] : t3[e5] instanceof Object && p(t3[e5], true)); else for (e5 in t3) t3.hasOwnProperty(e5) && void 0 === t3[e5] && delete t3[e5]; return t3; } function y2(t3) { if (!t3 || "object" != typeof t3 || "function" == typeof t3) return t3; const e5 = h(t3); if (r(e5)) return e5; if (b(t3)) return t3.clone(); if (g(t3)) return t3.map(y2); if (O(t3)) return t3.clone(); const r3 = {}; for (const n3 of Object.getOwnPropertyNames(t3)) r3[n3] = y2(t3[n3]); return r3; } function m(t3) { if (!t3 || "object" != typeof t3 || "function" == typeof t3 || "HTMLElement" in globalThis && t3 instanceof HTMLElement) return t3; const e5 = h(t3); if (r(e5)) return e5; if (g(t3)) { let n3 = true; const e6 = t3.map((t4) => { const e7 = m(t4); return null != t4 && null == e7 && (n3 = false), e7; }); return n3 ? e6 : null; } if (b(t3)) return t3.clone(); if (!O(t3)) { const n3 = new (0, Object.getPrototypeOf(t3).constructor)(); for (const e6 of Object.getOwnPropertyNames(t3)) { const r3 = t3[e6], o3 = m(r3); if (null != r3 && null == o3) return null; n3[e6] = o3; } return n3; } return null; } function b(t3) { return "function" == typeof t3.clone; } function g(t3) { return "function" == typeof t3.map && "function" == typeof t3.forEach; } function O(t3) { return "function" == typeof t3.notifyChange && "function" == typeof t3.watch; } function j(t3) { if ("[object Object]" !== Object.prototype.toString.call(t3)) return false; const n3 = Object.getPrototypeOf(t3); return null === n3 || n3 === Object.prototype; } function h(t3) { if (c(t3) || e(t3) || a(t3) || u(t3) || i2(t3) || f(t3) || s(t3) || y(t3) || A(t3)) return t(t3); if (t3 instanceof Date) return new Date(t3.getTime()); if (t3 instanceof ArrayBuffer) { return t3.slice(0, t3.byteLength); } if (t3 instanceof Map) { const n3 = /* @__PURE__ */ new Map(); for (const [e5, r3] of t3) n3.set(e5, y2(r3)); return n3; } if (t3 instanceof Set) { const n3 = /* @__PURE__ */ new Set(); for (const e5 of t3) n3.add(y2(e5)); return n3; } return null; } function w(t3, n3) { return t3 === n3 || "number" == typeof t3 && isNaN(t3) && "number" == typeof n3 && isNaN(n3) || "function" == typeof (t3 || {}).getTime && "function" == typeof (n3 || {}).getTime && t3.getTime() === n3.getTime() || false; } function N(n3, e5) { return n3 === e5 || (null == n3 || "string" == typeof n3 ? n3 === e5 : "number" == typeof n3 ? n3 === e5 || "number" == typeof e5 && isNaN(n3) && isNaN(e5) : n3 instanceof Date ? e5 instanceof Date && n3.getTime() === e5.getTime() : Array.isArray(n3) ? Array.isArray(e5) && i(n3, e5) : n3 instanceof Set ? e5 instanceof Set && d(n3, e5) : n3 instanceof Map ? e5 instanceof Map && P(n3, e5) : !!j(n3) && (j(e5) && T(n3, e5))); } function T(t3, n3) { if (null === t3 || null === n3) return false; const e5 = Object.keys(t3); if (null === n3 || Object.keys(n3).length !== e5.length) return false; for (const r3 of e5) if (t3[r3] !== n3[r3] || !Object.prototype.hasOwnProperty.call(n3, r3)) return false; return true; } function d(t3, n3) { if (t3.size !== n3.size) return false; for (const e5 of t3) if (!n3.has(e5)) return false; return true; } function P(t3, n3) { if (t3.size !== n3.size) return false; for (const [e5, r3] of t3) { const t4 = n3.get(e5); if (t4 !== r3 || void 0 === t4 && !n3.has(e5)) return false; } return true; } // node_modules/@arcgis/core/core/has.js var e2; function has(a2) { return "function" == typeof e2[a2] ? e2[a2] = e2[a2](globalThis) : e2[a2]; } var _a, _b, _c, _d; e2 = ((_a = globalThis.dojoConfig) == null ? void 0 : _a.has) || ((_b = globalThis.esriConfig) == null ? void 0 : _b.has) ? { ...(_c = globalThis.dojoConfig) == null ? void 0 : _c.has, ...(_d = globalThis.esriConfig) == null ? void 0 : _d.has } : {}, has.add = (a2, d2, o3, r3) => ((r3 || void 0 === e2[a2]) && (e2[a2] = d2), o3 && has(a2)), has.cache = e2, has.add("esri-deprecation-warnings", true), (() => { var _a2; has.add("host-webworker", void 0 !== globalThis.WorkerGlobalScope && self instanceof globalThis.WorkerGlobalScope); const e5 = "undefined" != typeof window && "undefined" != typeof location && "undefined" != typeof document && window.location === location && window.document === document; if (has.add("host-browser", e5), has.add("host-node", "object" == typeof globalThis.process && ((_a2 = globalThis.process.versions) == null ? void 0 : _a2.node) && globalThis.process.versions.v8), has.add("dom", e5), has("host-browser")) { const e6 = navigator, a2 = e6.userAgent, d2 = e6.appVersion, o3 = parseFloat(d2); if (has.add("wp", parseFloat(a2.split("Windows Phone")[1]) || void 0), has.add("msapp", parseFloat(a2.split("MSAppHost/")[1]) || void 0), has.add("khtml", d2.includes("Konqueror") ? o3 : void 0), has.add("edge", parseFloat(a2.split("Edge/")[1]) || void 0), has.add("opr", parseFloat(a2.split("OPR/")[1]) || void 0), has.add("webkit", !has("wp") && !has("edge") && parseFloat(a2.split("WebKit/")[1]) || void 0), has.add("chrome", !has("edge") && !has("opr") && parseFloat(a2.split("Chrome/")[1]) || void 0), has.add("android", !has("wp") && parseFloat(a2.split("Android ")[1]) || void 0), has.add("safari", !d2.includes("Safari") || has("wp") || has("chrome") || has("android") || has("edge") || has("opr") ? void 0 : parseFloat(d2.split("Version/")[1])), has.add("mac", d2.includes("Macintosh")), !has("wp") && a2.match(/(iPhone|iPod|iPad)/)) { const e7 = RegExp.$1.replace(/P/, "p"), d3 = a2.match(/OS ([\d_]+)/) ? RegExp.$1 : "1", o4 = parseFloat(d3.replace(/_/, ".").replace(/_/g, "")); has.add(e7, o4), has.add("ios", o4); } has.add("trident", parseFloat(d2.split("Trident/")[1]) || void 0), has("webkit") || (!a2.includes("Gecko") || has("wp") || has("khtml") || has("trident") || has("edge") || has.add("mozilla", o3), has("mozilla") && has.add("ff", parseFloat(a2.split("Firefox/")[1] || a2.split("Minefield/")[1]) || void 0)); } })(), (() => { if (globalThis.navigator) { const e5 = navigator.userAgent, a2 = /Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e5), d2 = /iPhone/i.test(e5); a2 && has.add("esri-mobile", a2), d2 && has.add("esri-iPhone", d2), has.add("esri-geolocation", !!navigator.geolocation); } has.add("esri-canvas-svg-support", !has("trident")), has.add("esri-wasm", "WebAssembly" in globalThis), has.add("esri-shared-array-buffer", () => { const e5 = "SharedArrayBuffer" in globalThis, a2 = false === globalThis.crossOriginIsolated; return e5 && !a2; }), has.add("wasm-simd", () => { const e5 = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]; return WebAssembly.validate(new Uint8Array(e5)); }), has.add("esri-atomics", "Atomics" in globalThis), has.add("esri-workers", "Worker" in globalThis), has.add("web-feat:cache", "caches" in globalThis), has.add("esri-workers-arraybuffer-transfer", !has("safari") || Number(has("safari")) >= 12), has.add("featurelayer-simplify-thresholds", [0.5, 0.5, 0.5, 0.5]), has.add("featurelayer-simplify-payload-size-factors", [1, 1, 4]), has.add("featurelayer-snapshot-enabled", true), has.add("featurelayer-snapshot-point-min-threshold", 8e4), has.add("featurelayer-snapshot-point-max-threshold", 4e5), has.add("featurelayer-snapshot-point-coverage", 0.1), has.add("featurelayer-advanced-symbols", false), has.add("featurelayer-pbf", true), has.add("featurelayer-pbf-statistics", false), has.add("feature-layers-workers", true), has.add("feature-polyline-generalization-factor", 1), has.add("mapview-transitions-duration", 200), has.add("mapview-srswitch-adjust-rotation-scale-threshold", 24e6), has.add("mapserver-pbf-enabled", false), has.add("mapimagelayer-popup-identify-max-tolerance", 20), has.add("heatmap-allow-raster-fallback", true), has.add("heatmap-force-raster", false), has("host-webworker") || has("host-browser") && (has.add("esri-csp-restrictions", () => { try { new Function(); } catch { return true; } return false; }), has.add("esri-image-decode", () => { if ("decode" in new Image()) { const e5 = new Image(); return e5.src = 'data:image/svg+xml;charset=UTF-8,', void e5.decode().then(() => { has.add("esri-image-decode", true, true, true); }).catch(() => { has.add("esri-image-decode", false, true, true); }); } return false; }), has.add("esri-url-encodes-apostrophe", () => { const e5 = window.document.createElement("a"); return e5.href = "?'", e5.href.includes("?%27"); })); })(); // node_modules/@arcgis/core/core/object.js function n(r3, n3, t3 = false) { return i3(r3, n3, t3); } function t2(r3, n3) { if (null != n3) return n3[r3] || e3(r3.split("."), false, n3); } function o(r3, n3, t3) { const o3 = r3.split("."), i4 = o3.pop(), u3 = e3(o3, true, t3); u3 && i4 && (u3[i4] = n3); } function e3(r3, n3, t3) { let o3 = t3; for (const e5 of r3) { if (null == o3) return; if (!(e5 in o3)) { if (!n3) return; o3[e5] = {}; } o3 = o3[e5]; } return o3; } function i3(n3, t3, o3) { return t3 ? Object.keys(t3).reduce((n4, e5) => { let u3 = n4[e5], c3 = t3[e5]; return u3 === c3 ? n4 : void 0 === u3 ? (n4[e5] = y2(c3), n4) : (Array.isArray(c3) || Array.isArray(n4) ? (u3 = u3 ? Array.isArray(u3) ? n4[e5] = u3.concat() : n4[e5] = [u3] : n4[e5] = [], c3 && (Array.isArray(c3) || (c3 = [c3]), o3 ? c3.forEach((r3) => { u3.includes(r3) || u3.push(r3); }) : n4[e5] = c3.concat())) : c3 && "object" == typeof c3 ? n4[e5] = i3(u3, c3, o3) : n4.hasOwnProperty(e5) && !t3.hasOwnProperty(e5) || (n4[e5] = c3), n4); }, n3 || {}) : n3; } // node_modules/@arcgis/core/core/string.js var e4 = /\{([^\}]+)\}/g; function r2(t3) { return t3 != null ? t3 : ""; } function n2(n3, o3) { return n3.replace(e4, "object" == typeof o3 ? (e5, n4) => r2(t2(n4, o3)) : (t3, e5) => r2(o3(e5))); } function o2(t3, e5) { return t3.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g, (t4) => e5 && e5.includes(t4) ? t4 : `\\${t4}`); } function c2(t3) { let e5 = 0; for (let r3 = 0; r3 < t3.length; r3++) e5 = (e5 << 5) - e5 + t3.charCodeAt(r3), e5 |= 0; return e5; } function u2(t3) { return new DOMParser().parseFromString(t3 || "", "text/html").body.innerText || ""; } export { p, y2 as y, m, w, N, has, n, t2 as t, o, n2, o2, c2 as c, u2 as u }; //# sourceMappingURL=chunk-SPWQ3AWG.js.map