chunk-2TIUKVZN.js 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. import {
  2. t
  3. } from "./chunk-YXWMMD76.js";
  4. // node_modules/@arcgis/core/core/RandomLCG.js
  5. var t2 = class {
  6. constructor(t4 = 1) {
  7. this._seed = t4;
  8. }
  9. set seed(e2) {
  10. this._seed = e2 != null ? e2 : Math.random() * t2._m;
  11. }
  12. getInt() {
  13. return this._seed = (t2._a * this._seed + t2._c) % t2._m, this._seed;
  14. }
  15. getFloat() {
  16. return this.getInt() / (t2._m - 1);
  17. }
  18. getIntRange(t4, e2) {
  19. return Math.round(this.getFloatRange(t4, e2));
  20. }
  21. getFloatRange(e2, s3) {
  22. const n2 = s3 - e2;
  23. return e2 + this.getInt() / t2._m * n2;
  24. }
  25. };
  26. t2._m = 2147483647, t2._a = 48271, t2._c = 0;
  27. // node_modules/@arcgis/core/core/arrayUtils.js
  28. function u(t4, n2) {
  29. return n2 ? t4.filter((t5, e2, r) => r.findIndex(n2.bind(null, t5)) === e2) : t4.filter((t5, n3, e2) => e2.indexOf(t5) === n3);
  30. }
  31. function i(n2, e2, r) {
  32. if (t(n2) && t(e2))
  33. return true;
  34. if (t(n2) || t(e2) || n2.length !== e2.length)
  35. return false;
  36. if (r) {
  37. for (let t4 = 0; t4 < n2.length; t4++)
  38. if (!r(n2[t4], e2[t4]))
  39. return false;
  40. } else
  41. for (let t4 = 0; t4 < n2.length; t4++)
  42. if (n2[t4] !== e2[t4])
  43. return false;
  44. return true;
  45. }
  46. function c(t4, n2) {
  47. let e2 = t4.length !== n2.length;
  48. e2 && (t4.length = n2.length);
  49. for (let r = 0; r < n2.length; ++r)
  50. t4[r] !== n2[r] && (t4[r] = n2[r], e2 = true);
  51. return e2;
  52. }
  53. function s(t4, n2, e2) {
  54. let r, o2;
  55. return e2 ? (r = n2.filter((n3) => !t4.some((t5) => e2(t5, n3))), o2 = t4.filter((t5) => !n2.some((n3) => e2(n3, t5)))) : (r = n2.filter((n3) => !t4.includes(n3)), o2 = t4.filter((t5) => !n2.includes(t5))), { added: r, removed: o2 };
  56. }
  57. function a(t4) {
  58. return t4 && "number" == typeof t4.length;
  59. }
  60. var d = !!Array.prototype.fill;
  61. function m(t4, n2) {
  62. if (d)
  63. return new Array(t4).fill(n2);
  64. const e2 = new Array(t4);
  65. for (let r = 0; r < t4; r++)
  66. e2[r] = n2;
  67. return e2;
  68. }
  69. function p(t4, n2) {
  70. void 0 === n2 && (n2 = t4, t4 = 0);
  71. const e2 = new Array(n2 - t4);
  72. for (let r = t4; r < n2; r++)
  73. e2[r - t4] = r;
  74. return e2;
  75. }
  76. var x = class {
  77. constructor() {
  78. this.last = 0;
  79. }
  80. };
  81. var y = new x();
  82. function b(t4, n2, e2, r) {
  83. r = r || y;
  84. const o2 = Math.max(0, r.last - 10);
  85. for (let l = o2; l < e2; ++l)
  86. if (t4[l] === n2)
  87. return r.last = l, l;
  88. const f2 = Math.min(o2, e2);
  89. for (let l = 0; l < f2; ++l)
  90. if (t4[l] === n2)
  91. return r.last = l, l;
  92. return -1;
  93. }
  94. function v(t4, n2, e2, r) {
  95. const o2 = e2 != null ? e2 : t4.length, f2 = b(t4, n2, o2, r);
  96. if (-1 !== f2)
  97. return t4[f2] = t4[o2 - 1], null == e2 && t4.pop(), n2;
  98. }
  99. var A = /* @__PURE__ */ new Set();
  100. function j(t4, n2, e2 = t4.length, r = n2.length, o2, f2) {
  101. if (0 === r || 0 === e2)
  102. return e2;
  103. A.clear();
  104. for (let u3 = 0; u3 < r; ++u3)
  105. A.add(n2[u3]);
  106. o2 = o2 || y;
  107. const l = Math.max(0, o2.last - 10);
  108. for (let u3 = l; u3 < e2; ++u3)
  109. if (A.has(t4[u3]) && (f2 && f2.push(t4[u3]), A.delete(t4[u3]), t4[u3] = t4[e2 - 1], --e2, --u3, 0 === A.size || 0 === e2))
  110. return A.clear(), e2;
  111. for (let u3 = 0; u3 < l; ++u3)
  112. if (A.has(t4[u3]) && (f2 && f2.push(t4[u3]), A.delete(t4[u3]), t4[u3] = t4[e2 - 1], --e2, --u3, 0 === A.size || 0 === e2))
  113. return A.clear(), e2;
  114. return A.clear(), e2;
  115. }
  116. var S = new t2();
  117. function C(t4, n2) {
  118. const e2 = t4.indexOf(n2);
  119. return -1 !== e2 ? (t4.splice(e2, 1), n2) : null;
  120. }
  121. // node_modules/@arcgis/core/core/typedArrayUtil.js
  122. function n(r, n2) {
  123. if (r.forEach)
  124. r.forEach(n2);
  125. else
  126. for (let t4 = 0; t4 < r.length; t4++)
  127. n2(r[t4], t4, r);
  128. }
  129. function t3(r, n2, t4) {
  130. if (r.slice)
  131. return r.slice(n2, t4);
  132. void 0 === n2 ? n2 = 0 : (n2 < 0 && (n2 += r.length), n2 = Math.min(r.length, Math.max(0, n2))), void 0 === t4 ? t4 = r.length : (t4 < 0 && (t4 += r.length), t4 = Math.min(r.length, Math.max(0, t4)));
  133. const o2 = Math.max(0, t4 - n2), c3 = new (0, r.constructor)(o2);
  134. for (let e2 = 0; e2 < o2; e2++)
  135. c3[e2] = r[n2 + e2];
  136. return c3;
  137. }
  138. function o(r) {
  139. return r instanceof ArrayBuffer || r && r.constructor && "ArrayBuffer" === r.constructor.name;
  140. }
  141. function c2(r) {
  142. return r instanceof Int8Array || r && r.constructor && "Int8Array" === r.constructor.name;
  143. }
  144. function e(r) {
  145. return r instanceof Uint8Array || r && r.constructor && "Uint8Array" === r.constructor.name;
  146. }
  147. function a2(r) {
  148. return r instanceof Uint8ClampedArray || r && r.constructor && "Uint8ClampedArray" === r.constructor.name;
  149. }
  150. function u2(r) {
  151. return r instanceof Int16Array || r && r.constructor && "Int16Array" === r.constructor.name;
  152. }
  153. function i2(r) {
  154. return r instanceof Uint16Array || r && r.constructor && "Uint16Array" === r.constructor.name;
  155. }
  156. function f(r) {
  157. return r instanceof Int32Array || r && r.constructor && "Int32Array" === r.constructor.name;
  158. }
  159. function s2(r) {
  160. return r instanceof Uint32Array || r && r.constructor && "Uint32Array" === r.constructor.name;
  161. }
  162. function y2(r) {
  163. return r instanceof Float32Array || r && r.constructor && "Float32Array" === r.constructor.name;
  164. }
  165. function A2(r) {
  166. return r instanceof Float64Array || r && r.constructor && "Float64Array" === r.constructor.name;
  167. }
  168. export {
  169. t2 as t,
  170. u,
  171. i,
  172. c,
  173. s,
  174. a,
  175. m,
  176. p,
  177. x,
  178. b,
  179. v,
  180. j,
  181. C,
  182. n,
  183. t3 as t2,
  184. o,
  185. c2,
  186. e,
  187. a2,
  188. u2,
  189. i2,
  190. f,
  191. s2,
  192. y2 as y,
  193. A2 as A
  194. };
  195. //# sourceMappingURL=chunk-2TIUKVZN.js.map