chunk-IKP3YN53.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. import {
  2. A3 as A,
  3. a4 as a,
  4. c3 as c,
  5. e2 as e,
  6. f2 as f,
  7. i2 as i,
  8. i3 as i2,
  9. r,
  10. s3 as s,
  11. t3 as t,
  12. u2 as u,
  13. y3 as y
  14. } from "./chunk-GZT4BVFP.js";
  15. // node_modules/@arcgis/core/core/lang.js
  16. function y2(t3, n3) {
  17. let e4;
  18. if (n3)
  19. for (e4 in t3)
  20. t3.hasOwnProperty(e4) && (t3[e4] === void 0 ? delete t3[e4] : t3[e4] instanceof Object && y2(t3[e4], true));
  21. else
  22. for (e4 in t3)
  23. t3.hasOwnProperty(e4) && t3[e4] === void 0 && delete t3[e4];
  24. return t3;
  25. }
  26. function m(t3) {
  27. if (!t3 || typeof t3 != "object" || typeof t3 == "function")
  28. return t3;
  29. const n3 = w(t3);
  30. if (r(n3))
  31. return n3;
  32. if (g(t3))
  33. return t3.clone();
  34. if (j(t3))
  35. return t3.map(m);
  36. if (O(t3))
  37. return t3.clone();
  38. const r3 = {};
  39. for (const e4 of Object.getOwnPropertyNames(t3))
  40. r3[e4] = m(t3[e4]);
  41. return r3;
  42. }
  43. function b(t3) {
  44. if (!t3 || typeof t3 != "object" || typeof t3 == "function")
  45. return t3;
  46. const n3 = w(t3);
  47. if (r(n3))
  48. return n3;
  49. if (j(t3)) {
  50. let n4 = true;
  51. const e4 = t3.map((t4) => {
  52. const e5 = b(t4);
  53. return t4 != null && e5 == null && (n4 = false), e5;
  54. });
  55. return n4 ? e4 : null;
  56. }
  57. if (g(t3))
  58. return t3.clone();
  59. if (!O(t3)) {
  60. const n4 = new (0, Object.getPrototypeOf(t3).constructor)();
  61. for (const e4 of Object.getOwnPropertyNames(t3)) {
  62. const r3 = t3[e4], o3 = b(r3);
  63. if (r3 != null && o3 == null)
  64. return null;
  65. n4[e4] = o3;
  66. }
  67. return n4;
  68. }
  69. return null;
  70. }
  71. function g(t3) {
  72. return typeof t3.clone == "function";
  73. }
  74. function j(t3) {
  75. return typeof t3.map == "function" && typeof t3.forEach == "function";
  76. }
  77. function O(t3) {
  78. return typeof t3.notifyChange == "function" && typeof t3.watch == "function";
  79. }
  80. function h(t3) {
  81. if (Object.prototype.toString.call(t3) !== "[object Object]")
  82. return false;
  83. const n3 = Object.getPrototypeOf(t3);
  84. return n3 === null || n3 === Object.prototype;
  85. }
  86. function w(t3) {
  87. if (c(t3) || e(t3) || a(t3) || u(t3) || i2(t3) || f(t3) || s(t3) || y(t3) || A(t3))
  88. return t(t3);
  89. if (t3 instanceof Date)
  90. return new Date(t3.getTime());
  91. if (t3 instanceof ArrayBuffer) {
  92. return t3.slice(0, t3.byteLength);
  93. }
  94. if (t3 instanceof Map) {
  95. const n3 = new Map();
  96. return t3.forEach((t4, e4) => {
  97. n3.set(e4, m(t4));
  98. }), n3;
  99. }
  100. if (t3 instanceof Set) {
  101. const n3 = new Set();
  102. return t3.forEach((t4) => {
  103. n3.add(m(t4));
  104. }), n3;
  105. }
  106. return null;
  107. }
  108. function d(t3, n3) {
  109. return t3 === n3 || typeof t3 == "number" && isNaN(t3) && typeof n3 == "number" && isNaN(n3) || typeof (t3 || {}).getTime == "function" && typeof (n3 || {}).getTime == "function" && t3.getTime() === n3.getTime() || false;
  110. }
  111. function N(n3, e4) {
  112. return n3 === e4 || (n3 == null || typeof n3 == "string" ? n3 === e4 : typeof n3 == "number" ? n3 === e4 || typeof e4 == "number" && isNaN(n3) && isNaN(e4) : n3 instanceof Date ? e4 instanceof Date && n3.getTime() === e4.getTime() : Array.isArray(n3) ? Array.isArray(e4) && i(n3, e4) : n3 instanceof Set ? e4 instanceof Set && T(n3, e4) : n3 instanceof Map ? e4 instanceof Map && A2(n3, e4) : !!h(n3) && (h(e4) && P(n3, e4)));
  113. }
  114. function P(t3, n3) {
  115. if (t3 === null || n3 === null)
  116. return false;
  117. const e4 = Object.keys(t3);
  118. if (n3 === null || Object.keys(n3).length !== e4.length)
  119. return false;
  120. for (const r3 of e4)
  121. if (t3[r3] !== n3[r3] || !Object.prototype.hasOwnProperty.call(n3, r3))
  122. return false;
  123. return true;
  124. }
  125. function T(t3, n3) {
  126. if (t3.size !== n3.size)
  127. return false;
  128. for (const e4 of t3)
  129. if (!n3.has(e4))
  130. return false;
  131. return true;
  132. }
  133. function A2(t3, n3) {
  134. if (t3.size !== n3.size)
  135. return false;
  136. for (const [e4, r3] of t3) {
  137. const t4 = n3.get(e4);
  138. if (t4 !== r3 || t4 === void 0 && !n3.has(e4))
  139. return false;
  140. }
  141. return true;
  142. }
  143. // node_modules/@arcgis/core/core/object.js
  144. function n(r3, n3, t3 = false) {
  145. return i3(r3, n3, t3);
  146. }
  147. function t2(r3, n3) {
  148. if (n3 != null)
  149. return n3[r3] || e2(r3.split("."), false, n3);
  150. }
  151. function o(r3, n3, t3) {
  152. const o3 = r3.split("."), i4 = o3.pop(), u3 = e2(o3, true, t3);
  153. u3 && i4 && (u3[i4] = n3);
  154. }
  155. function e2(r3, n3, t3) {
  156. let o3 = t3;
  157. for (const e4 of r3) {
  158. if (o3 == null)
  159. return;
  160. if (!(e4 in o3)) {
  161. if (!n3)
  162. return;
  163. o3[e4] = {};
  164. }
  165. o3 = o3[e4];
  166. }
  167. return o3;
  168. }
  169. function i3(n3, t3, o3) {
  170. return t3 ? Object.keys(t3).reduce((n4, e4) => {
  171. let u3 = n4[e4], c3 = t3[e4];
  172. return u3 === c3 ? n4 : u3 === void 0 ? (n4[e4] = m(c3), n4) : (Array.isArray(c3) || Array.isArray(n4) ? (u3 = u3 ? Array.isArray(u3) ? n4[e4] = u3.concat() : n4[e4] = [u3] : n4[e4] = [], c3 && (Array.isArray(c3) || (c3 = [c3]), o3 ? c3.forEach((r3) => {
  173. u3.includes(r3) || u3.push(r3);
  174. }) : n4[e4] = c3.concat())) : c3 && typeof c3 == "object" ? n4[e4] = i3(u3, c3, o3) : n4.hasOwnProperty(e4) && !t3.hasOwnProperty(e4) || (n4[e4] = c3), n4);
  175. }, n3 || {}) : n3;
  176. }
  177. // node_modules/@arcgis/core/core/string.js
  178. var e3 = /\{([^\}]+)\}/g;
  179. function n2(t3) {
  180. return t3 == null ? "" : t3;
  181. }
  182. function r2(r3, o3) {
  183. return r3.replace(e3, typeof o3 == "object" ? (e4, r4) => n2(t2(r4, o3)) : (t3, e4) => n2(o3(e4)));
  184. }
  185. function o2(t3, e4) {
  186. return t3.replace(/([\.$?*|{}\(\)\[\]\\\/\+\-^])/g, (t4) => e4 && e4.includes(t4) ? t4 : `\\${t4}`);
  187. }
  188. function c2(t3) {
  189. let e4 = 0;
  190. for (let n3 = 0; n3 < t3.length; n3++)
  191. e4 = (e4 << 5) - e4 + t3.charCodeAt(n3), e4 |= 0;
  192. return e4;
  193. }
  194. function u2(t3) {
  195. return new DOMParser().parseFromString(t3 || "", "text/html").body.innerText || "";
  196. }
  197. export {
  198. y2 as y,
  199. m,
  200. b,
  201. d,
  202. N,
  203. n,
  204. t2 as t,
  205. o,
  206. r2 as r,
  207. o2,
  208. c2 as c,
  209. u2 as u
  210. };
  211. //# sourceMappingURL=chunk-IKP3YN53.js.map