chunk-SPWQ3AWG.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. import {
  2. A,
  3. a2 as a,
  4. c2 as c,
  5. e,
  6. f,
  7. i,
  8. i2,
  9. s2 as s,
  10. t2 as t,
  11. u2 as u,
  12. y
  13. } from "./chunk-2TIUKVZN.js";
  14. import {
  15. r
  16. } from "./chunk-YXWMMD76.js";
  17. // node_modules/@arcgis/core/core/lang.js
  18. function p(t3, n3) {
  19. let e5;
  20. if (n3)
  21. for (e5 in t3)
  22. t3.hasOwnProperty(e5) && (void 0 === t3[e5] ? delete t3[e5] : t3[e5] instanceof Object && p(t3[e5], true));
  23. else
  24. for (e5 in t3)
  25. t3.hasOwnProperty(e5) && void 0 === t3[e5] && delete t3[e5];
  26. return t3;
  27. }
  28. function y2(t3) {
  29. if (!t3 || "object" != typeof t3 || "function" == typeof t3)
  30. return t3;
  31. const e5 = h(t3);
  32. if (r(e5))
  33. return e5;
  34. if (b(t3))
  35. return t3.clone();
  36. if (g(t3))
  37. return t3.map(y2);
  38. if (O(t3))
  39. return t3.clone();
  40. const r3 = {};
  41. for (const n3 of Object.getOwnPropertyNames(t3))
  42. r3[n3] = y2(t3[n3]);
  43. return r3;
  44. }
  45. function m(t3) {
  46. if (!t3 || "object" != typeof t3 || "function" == typeof t3 || "HTMLElement" in globalThis && t3 instanceof HTMLElement)
  47. return t3;
  48. const e5 = h(t3);
  49. if (r(e5))
  50. return e5;
  51. if (g(t3)) {
  52. let n3 = true;
  53. const e6 = t3.map((t4) => {
  54. const e7 = m(t4);
  55. return null != t4 && null == e7 && (n3 = false), e7;
  56. });
  57. return n3 ? e6 : null;
  58. }
  59. if (b(t3))
  60. return t3.clone();
  61. if (!O(t3)) {
  62. const n3 = new (0, Object.getPrototypeOf(t3).constructor)();
  63. for (const e6 of Object.getOwnPropertyNames(t3)) {
  64. const r3 = t3[e6], o3 = m(r3);
  65. if (null != r3 && null == o3)
  66. return null;
  67. n3[e6] = o3;
  68. }
  69. return n3;
  70. }
  71. return null;
  72. }
  73. function b(t3) {
  74. return "function" == typeof t3.clone;
  75. }
  76. function g(t3) {
  77. return "function" == typeof t3.map && "function" == typeof t3.forEach;
  78. }
  79. function O(t3) {
  80. return "function" == typeof t3.notifyChange && "function" == typeof t3.watch;
  81. }
  82. function j(t3) {
  83. if ("[object Object]" !== Object.prototype.toString.call(t3))
  84. return false;
  85. const n3 = Object.getPrototypeOf(t3);
  86. return null === n3 || n3 === Object.prototype;
  87. }
  88. function h(t3) {
  89. if (c(t3) || e(t3) || a(t3) || u(t3) || i2(t3) || f(t3) || s(t3) || y(t3) || A(t3))
  90. return t(t3);
  91. if (t3 instanceof Date)
  92. return new Date(t3.getTime());
  93. if (t3 instanceof ArrayBuffer) {
  94. return t3.slice(0, t3.byteLength);
  95. }
  96. if (t3 instanceof Map) {
  97. const n3 = /* @__PURE__ */ new Map();
  98. for (const [e5, r3] of t3)
  99. n3.set(e5, y2(r3));
  100. return n3;
  101. }
  102. if (t3 instanceof Set) {
  103. const n3 = /* @__PURE__ */ new Set();
  104. for (const e5 of t3)
  105. n3.add(y2(e5));
  106. return n3;
  107. }
  108. return null;
  109. }
  110. function w(t3, n3) {
  111. 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;
  112. }
  113. function N(n3, e5) {
  114. 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)));
  115. }
  116. function T(t3, n3) {
  117. if (null === t3 || null === n3)
  118. return false;
  119. const e5 = Object.keys(t3);
  120. if (null === n3 || Object.keys(n3).length !== e5.length)
  121. return false;
  122. for (const r3 of e5)
  123. if (t3[r3] !== n3[r3] || !Object.prototype.hasOwnProperty.call(n3, r3))
  124. return false;
  125. return true;
  126. }
  127. function d(t3, n3) {
  128. if (t3.size !== n3.size)
  129. return false;
  130. for (const e5 of t3)
  131. if (!n3.has(e5))
  132. return false;
  133. return true;
  134. }
  135. function P(t3, n3) {
  136. if (t3.size !== n3.size)
  137. return false;
  138. for (const [e5, r3] of t3) {
  139. const t4 = n3.get(e5);
  140. if (t4 !== r3 || void 0 === t4 && !n3.has(e5))
  141. return false;
  142. }
  143. return true;
  144. }
  145. // node_modules/@arcgis/core/core/has.js
  146. var e2;
  147. function has(a2) {
  148. return "function" == typeof e2[a2] ? e2[a2] = e2[a2](globalThis) : e2[a2];
  149. }
  150. var _a, _b, _c, _d;
  151. 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), (() => {
  152. var _a2;
  153. has.add("host-webworker", void 0 !== globalThis.WorkerGlobalScope && self instanceof globalThis.WorkerGlobalScope);
  154. const e5 = "undefined" != typeof window && "undefined" != typeof location && "undefined" != typeof document && window.location === location && window.document === document;
  155. 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")) {
  156. const e6 = navigator, a2 = e6.userAgent, d2 = e6.appVersion, o3 = parseFloat(d2);
  157. 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)/)) {
  158. const e7 = RegExp.$1.replace(/P/, "p"), d3 = a2.match(/OS ([\d_]+)/) ? RegExp.$1 : "1", o4 = parseFloat(d3.replace(/_/, ".").replace(/_/g, ""));
  159. has.add(e7, o4), has.add("ios", o4);
  160. }
  161. 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));
  162. }
  163. })(), (() => {
  164. if (globalThis.navigator) {
  165. const e5 = navigator.userAgent, a2 = /Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e5), d2 = /iPhone/i.test(e5);
  166. a2 && has.add("esri-mobile", a2), d2 && has.add("esri-iPhone", d2), has.add("esri-geolocation", !!navigator.geolocation);
  167. }
  168. has.add("esri-canvas-svg-support", !has("trident")), has.add("esri-wasm", "WebAssembly" in globalThis), has.add("esri-shared-array-buffer", () => {
  169. const e5 = "SharedArrayBuffer" in globalThis, a2 = false === globalThis.crossOriginIsolated;
  170. return e5 && !a2;
  171. }), has.add("wasm-simd", () => {
  172. 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];
  173. return WebAssembly.validate(new Uint8Array(e5));
  174. }), 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", () => {
  175. try {
  176. new Function();
  177. } catch {
  178. return true;
  179. }
  180. return false;
  181. }), has.add("esri-image-decode", () => {
  182. if ("decode" in new Image()) {
  183. const e5 = new Image();
  184. return e5.src = 'data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>', void e5.decode().then(() => {
  185. has.add("esri-image-decode", true, true, true);
  186. }).catch(() => {
  187. has.add("esri-image-decode", false, true, true);
  188. });
  189. }
  190. return false;
  191. }), has.add("esri-url-encodes-apostrophe", () => {
  192. const e5 = window.document.createElement("a");
  193. return e5.href = "?'", e5.href.includes("?%27");
  194. }));
  195. })();
  196. // node_modules/@arcgis/core/core/object.js
  197. function n(r3, n3, t3 = false) {
  198. return i3(r3, n3, t3);
  199. }
  200. function t2(r3, n3) {
  201. if (null != n3)
  202. return n3[r3] || e3(r3.split("."), false, n3);
  203. }
  204. function o(r3, n3, t3) {
  205. const o3 = r3.split("."), i4 = o3.pop(), u3 = e3(o3, true, t3);
  206. u3 && i4 && (u3[i4] = n3);
  207. }
  208. function e3(r3, n3, t3) {
  209. let o3 = t3;
  210. for (const e5 of r3) {
  211. if (null == o3)
  212. return;
  213. if (!(e5 in o3)) {
  214. if (!n3)
  215. return;
  216. o3[e5] = {};
  217. }
  218. o3 = o3[e5];
  219. }
  220. return o3;
  221. }
  222. function i3(n3, t3, o3) {
  223. return t3 ? Object.keys(t3).reduce((n4, e5) => {
  224. let u3 = n4[e5], c3 = t3[e5];
  225. 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) => {
  226. u3.includes(r3) || u3.push(r3);
  227. }) : n4[e5] = c3.concat())) : c3 && "object" == typeof c3 ? n4[e5] = i3(u3, c3, o3) : n4.hasOwnProperty(e5) && !t3.hasOwnProperty(e5) || (n4[e5] = c3), n4);
  228. }, n3 || {}) : n3;
  229. }
  230. // node_modules/@arcgis/core/core/string.js
  231. var e4 = /\{([^\}]+)\}/g;
  232. function r2(t3) {
  233. return t3 != null ? t3 : "";
  234. }
  235. function n2(n3, o3) {
  236. return n3.replace(e4, "object" == typeof o3 ? (e5, n4) => r2(t2(n4, o3)) : (t3, e5) => r2(o3(e5)));
  237. }
  238. function o2(t3, e5) {
  239. return t3.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g, (t4) => e5 && e5.includes(t4) ? t4 : `\\${t4}`);
  240. }
  241. function c2(t3) {
  242. let e5 = 0;
  243. for (let r3 = 0; r3 < t3.length; r3++)
  244. e5 = (e5 << 5) - e5 + t3.charCodeAt(r3), e5 |= 0;
  245. return e5;
  246. }
  247. function u2(t3) {
  248. return new DOMParser().parseFromString(t3 || "", "text/html").body.innerText || "";
  249. }
  250. export {
  251. p,
  252. y2 as y,
  253. m,
  254. w,
  255. N,
  256. has,
  257. n,
  258. t2 as t,
  259. o,
  260. n2,
  261. o2,
  262. c2 as c,
  263. u2 as u
  264. };
  265. //# sourceMappingURL=chunk-SPWQ3AWG.js.map