@pie-element/categorize 13.1.2-next.0 → 13.1.2-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/author/design/builder.js +1 -1
  2. package/dist/browser/author/index.js +361 -367
  3. package/dist/browser/author/index.js.map +1 -1
  4. package/dist/browser/controller/index.js +1 -1
  5. package/dist/browser/controller/index.js.map +1 -1
  6. package/dist/browser/delivery/index.js +4 -4
  7. package/dist/browser/{dist-BsrA0RFp.js → dist-BINEJ0Vp.js} +277 -1261
  8. package/dist/browser/dist-BINEJ0Vp.js.map +1 -0
  9. package/dist/browser/{dist-BaJrqHFp.js → dist-DDCLQ8jp.js} +11286 -11667
  10. package/dist/browser/dist-DDCLQ8jp.js.map +1 -0
  11. package/dist/controller/index.js +34 -34
  12. package/dist/index.iife.js +34 -34
  13. package/dist/runtime-support.d.ts +12 -0
  14. package/dist/runtime-support.js +12 -0
  15. package/package.json +15 -12
  16. package/dist/browser/dist-BaJrqHFp.js.map +0 -1
  17. package/dist/browser/dist-BsrA0RFp.js.map +0 -1
  18. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
  19. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
  20. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
  21. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
  22. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
  23. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
  24. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
  25. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
  26. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
  27. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
  28. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
  29. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
  30. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
  31. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  32. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
@@ -1,3 +1,15 @@
1
+ import * as __pieBrowserCjsReactRequire from "react";
2
+ const __pieBrowserCjsRequire = (specifier) => {
3
+ switch (specifier) {
4
+ case "react": return __pieBrowserCjsReactRequire;
5
+
6
+
7
+
8
+
9
+ default:
10
+ throw new Error(`Unsupported browser CJS require: ${specifier}`);
11
+ }
12
+ };
1
13
  //#region \0rolldown/runtime.js
2
14
  var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
3
15
  let r = {};
@@ -15,10 +27,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
15
27
  }, l = (n, r, a) => (a = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule ? t(a, "default", {
16
28
  value: n,
17
29
  enumerable: !0
18
- }) : a, n)), u = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
19
- if (typeof require < "u") return require.apply(this, arguments);
20
- throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
21
- }), d = /* @__PURE__ */ o(((e, t) => {
30
+ }) : a, n)), u = __pieBrowserCjsRequire, d = /* @__PURE__ */ o(((e, t) => {
22
31
  var n = 1e3, r = n * 60, i = r * 60, a = i * 24, o = a * 7, s = a * 365.25;
23
32
  t.exports = function(e, t) {
24
33
  t ||= {};
@@ -390,46 +399,46 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
390
399
  e.forEach((e) => {
391
400
  t[e] && (n[e] = t[e]);
392
401
  });
393
- }, ee = /###/g, b = (e) => e && e.indexOf("###") > -1 ? e.replace(ee, ".") : e, x = (e) => !e || g(e), S = (e, t, n) => {
402
+ }, b = /###/g, x = (e) => e && e.indexOf("###") > -1 ? e.replace(b, ".") : e, S = (e) => !e || g(e), C = (e, t, n) => {
394
403
  let r = g(t) ? t.split(".") : t, i = 0;
395
404
  for (; i < r.length - 1;) {
396
- if (x(e)) return {};
397
- let t = b(r[i]);
405
+ if (S(e)) return {};
406
+ let t = x(r[i]);
398
407
  !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
399
408
  }
400
- return x(e) ? {} : {
409
+ return S(e) ? {} : {
401
410
  obj: e,
402
- k: b(r[i])
411
+ k: x(r[i])
403
412
  };
404
- }, te = (e, t, n) => {
405
- let { obj: r, k: i } = S(e, t, Object);
413
+ }, w = (e, t, n) => {
414
+ let { obj: r, k: i } = C(e, t, Object);
406
415
  if (r !== void 0 || t.length === 1) {
407
416
  r[i] = n;
408
417
  return;
409
418
  }
410
- let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = S(e, o, Object);
411
- for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = S(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
419
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = C(e, o, Object);
420
+ for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = C(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
412
421
  s.obj[`${s.k}.${a}`] = n;
413
- }, ne = (e, t, n, r) => {
414
- let { obj: i, k: a } = S(e, t, Object);
422
+ }, T = (e, t, n, r) => {
423
+ let { obj: i, k: a } = C(e, t, Object);
415
424
  i[a] = i[a] || [], i[a].push(n);
416
- }, C = (e, t) => {
417
- let { obj: n, k: r } = S(e, t);
425
+ }, E = (e, t) => {
426
+ let { obj: n, k: r } = C(e, t);
418
427
  if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
419
- }, w = (e, t, n) => {
420
- let r = C(e, n);
421
- return r === void 0 ? C(t, n) : r;
422
- }, re = (e, t, n) => {
423
- for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? g(e[r]) || e[r] instanceof String || g(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : re(e[r], t[r], n) : e[r] = t[r]);
428
+ }, D = (e, t, n) => {
429
+ let r = E(e, n);
430
+ return r === void 0 ? E(t, n) : r;
431
+ }, O = (e, t, n) => {
432
+ for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? g(e[r]) || e[r] instanceof String || g(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : O(e[r], t[r], n) : e[r] = t[r]);
424
433
  return e;
425
- }, T = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), ie = {
434
+ }, k = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), ee = {
426
435
  "&": "&amp;",
427
436
  "<": "&lt;",
428
437
  ">": "&gt;",
429
438
  "\"": "&quot;",
430
439
  "'": "&#39;",
431
440
  "/": "&#x2F;"
432
- }, ae = (e) => g(e) ? e.replace(/[&<>"'\/]/g, (e) => ie[e]) : e, oe = class {
441
+ }, te = (e) => g(e) ? e.replace(/[&<>"'\/]/g, (e) => ee[e]) : e, ne = class {
433
442
  constructor(e) {
434
443
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
435
444
  }
@@ -439,23 +448,23 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
439
448
  let n = new RegExp(e);
440
449
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
441
450
  }
442
- }, se = [
451
+ }, re = [
443
452
  " ",
444
453
  ",",
445
454
  "?",
446
455
  "!",
447
456
  ";"
448
- ], ce = new oe(20), le = (e, t, n) => {
457
+ ], ie = new ne(20), ae = (e, t, n) => {
449
458
  t ||= "", n ||= "";
450
- let r = se.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
459
+ let r = re.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
451
460
  if (r.length === 0) return !0;
452
- let i = ce.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
461
+ let i = ie.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
453
462
  if (!a) {
454
463
  let t = e.indexOf(n);
455
464
  t > 0 && !i.test(e.substring(0, t)) && (a = !0);
456
465
  }
457
466
  return a;
458
- }, ue = (e, t, n = ".") => {
467
+ }, A = (e, t, n = ".") => {
459
468
  if (!e) return;
460
469
  if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
461
470
  let r = t.split(n), i = e;
@@ -474,7 +483,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
474
483
  i = t;
475
484
  }
476
485
  return i;
477
- }, E = (e) => e?.replace(/_/g, "-"), de = {
486
+ }, j = (e) => e?.replace(/_/g, "-"), oe = {
478
487
  type: "logger",
479
488
  log(e) {
480
489
  this.output("log", e);
@@ -488,12 +497,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
488
497
  output(e, t) {
489
498
  console?.[e]?.apply?.(console, t);
490
499
  }
491
- }, D = new class e {
500
+ }, M = new class e {
492
501
  constructor(e, t = {}) {
493
502
  this.init(e, t);
494
503
  }
495
504
  init(e, t = {}) {
496
- this.prefix = t.prefix || "i18next:", this.logger = e || de, this.options = t, this.debug = t.debug;
505
+ this.prefix = t.prefix || "i18next:", this.logger = e || oe, this.options = t, this.debug = t.debug;
497
506
  }
498
507
  log(...e) {
499
508
  return this.forward(e, "log", "", !0);
@@ -519,7 +528,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
519
528
  clone(t) {
520
529
  return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
521
530
  }
522
- }(), fe = class {
531
+ }(), N = class {
523
532
  constructor() {
524
533
  this.observers = {};
525
534
  }
@@ -546,7 +555,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
546
555
  for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
547
556
  });
548
557
  }
549
- }, pe = class extends fe {
558
+ }, se = class extends N {
550
559
  constructor(e, t = {
551
560
  ns: ["translation"],
552
561
  defaultNS: "translation"
@@ -563,12 +572,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
563
572
  getResource(e, t, n, r = {}) {
564
573
  let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
565
574
  e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : g(n) && i ? o.push(...n.split(i)) : o.push(n)));
566
- let s = C(this.data, o);
567
- return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !g(n) ? s : ue(this.data?.[e]?.[t], n, i);
575
+ let s = E(this.data, o);
576
+ return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !g(n) ? s : A(this.data?.[e]?.[t], n, i);
568
577
  }
569
578
  addResource(e, t, n, r, i = { silent: !1 }) {
570
579
  let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
571
- n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), te(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
580
+ n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), w(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
572
581
  }
573
582
  addResources(e, t, n, r = { silent: !1 }) {
574
583
  for (let r in n) (g(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
@@ -580,11 +589,11 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
580
589
  }) {
581
590
  let o = [e, t];
582
591
  e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
583
- let s = C(this.data, o) || {};
584
- a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? re(s, n, i) : s = {
592
+ let s = E(this.data, o) || {};
593
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? O(s, n, i) : s = {
585
594
  ...s,
586
595
  ...n
587
- }, te(this.data, o, s), a.silent || this.emit("added", e, t, n);
596
+ }, w(this.data, o, s), a.silent || this.emit("added", e, t, n);
588
597
  }
589
598
  removeResourceBundle(e, t) {
590
599
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -605,7 +614,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
605
614
  toJSON() {
606
615
  return this.data;
607
616
  }
608
- }, me = {
617
+ }, P = {
609
618
  processors: {},
610
619
  addPostProcessor(e) {
611
620
  this.processors[e.name] = e;
@@ -615,20 +624,20 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
615
624
  t = this.processors[e]?.process(t, n, r, i) ?? t;
616
625
  }), t;
617
626
  }
618
- }, he = Symbol("i18next/PATH_KEY");
619
- function ge() {
627
+ }, ce = Symbol("i18next/PATH_KEY");
628
+ function le() {
620
629
  let e = [], t = Object.create(null), n;
621
- return t.get = (r, i) => (n?.revoke?.(), i === he ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
630
+ return t.get = (r, i) => (n?.revoke?.(), i === ce ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
622
631
  }
623
- function O(e, t) {
624
- let { [he]: n } = e(ge()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
632
+ function F(e, t) {
633
+ let { [ce]: n } = e(le()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
625
634
  if (n.length > 1 && i) {
626
635
  let e = t?.ns, a = Array.isArray(e) ? e : null;
627
636
  if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
628
637
  }
629
638
  return n.join(r);
630
639
  }
631
- var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number", ye = class e extends fe {
640
+ var ue = {}, I = (e) => !g(e) && typeof e != "boolean" && typeof e != "number", L = class e extends N {
632
641
  constructor(e, t = {}) {
633
642
  super(), y([
634
643
  "resourceStore",
@@ -638,7 +647,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
638
647
  "backendConnector",
639
648
  "i18nFormat",
640
649
  "utils"
641
- ], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = D.create("translator");
650
+ ], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = M.create("translator");
642
651
  }
643
652
  changeLanguage(e) {
644
653
  e && (this.language = e);
@@ -648,13 +657,13 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
648
657
  if (e == null) return !1;
649
658
  let r = this.resolve(e, n);
650
659
  if (r?.res === void 0) return !1;
651
- let i = ve(r.res);
660
+ let i = I(r.res);
652
661
  return !(n.returnObjects === !1 && i);
653
662
  }
654
663
  extractFromKey(e, t) {
655
664
  let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
656
665
  n === void 0 && (n = ":");
657
- let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !le(e, n, r);
666
+ let r = t.keySeparator === void 0 ? this.options.keySeparator : t.keySeparator, i = t.ns || this.options.defaultNS || [], a = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !ae(e, n, r);
658
667
  if (a && !o) {
659
668
  let t = e.match(this.interpolator.nestingRegexp);
660
669
  if (t && t.length > 0) return {
@@ -672,10 +681,10 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
672
681
  translate(t, n, r) {
673
682
  let i = typeof n == "object" ? { ...n } : n;
674
683
  if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
675
- typeof t == "function" && (t = O(t, {
684
+ typeof t == "function" && (t = F(t, {
676
685
  ...this.options,
677
686
  ...i
678
- })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? O(e, {
687
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? F(e, {
679
688
  ...this.options,
680
689
  ...i
681
690
  }) : String(e));
@@ -701,42 +710,42 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
701
710
  "[object Number]",
702
711
  "[object Function]",
703
712
  "[object RegExp]"
704
- ], y = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, ee = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !g(i.count), x = e.hasDefaultValue(i), S = b ? this.pluralResolver.getSuffix(d, i.count, i) : "", te = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", ne = b && !i.ordinal && i.count === 0, C = ne && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${te}`] || i.defaultValue, w = m;
705
- ee && !m && x && (w = C);
706
- let re = ve(w), T = Object.prototype.toString.apply(w);
707
- if (ee && w && re && v.indexOf(T) < 0 && !(g(y) && Array.isArray(w))) {
713
+ ], y = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject, x = i.count !== void 0 && !g(i.count), S = e.hasDefaultValue(i), C = x ? this.pluralResolver.getSuffix(d, i.count, i) : "", w = i.ordinal && x ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", T = x && !i.ordinal && i.count === 0, E = T && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${C}`] || i[`defaultValue${w}`] || i.defaultValue, D = m;
714
+ b && !m && S && (D = E);
715
+ let O = I(D), k = Object.prototype.toString.apply(D);
716
+ if (b && D && O && v.indexOf(k) < 0 && !(g(y) && Array.isArray(D))) {
708
717
  if (!i.returnObjects && !this.options.returnObjects) {
709
718
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
710
- let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, w, {
719
+ let e = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h, D, {
711
720
  ...i,
712
721
  ns: c
713
722
  }) : `key '${s} (${this.language})' returned an object instead of string.`;
714
723
  return a ? (p.res = e, p.usedParams = this.getUsedParamsDetails(i), p) : e;
715
724
  }
716
725
  if (o) {
717
- let e = Array.isArray(w), t = e ? [] : {}, n = e ? _ : h;
718
- for (let e in w) if (Object.prototype.hasOwnProperty.call(w, e)) {
726
+ let e = Array.isArray(D), t = e ? [] : {}, n = e ? _ : h;
727
+ for (let e in D) if (Object.prototype.hasOwnProperty.call(D, e)) {
719
728
  let r = `${n}${o}${e}`;
720
- x && !m ? t[e] = this.translate(r, {
729
+ S && !m ? t[e] = this.translate(r, {
721
730
  ...i,
722
- defaultValue: ve(C) ? C[e] : void 0,
731
+ defaultValue: I(E) ? E[e] : void 0,
723
732
  joinArrays: !1,
724
733
  ns: c
725
734
  }) : t[e] = this.translate(r, {
726
735
  ...i,
727
736
  joinArrays: !1,
728
737
  ns: c
729
- }), t[e] === r && (t[e] = w[e]);
738
+ }), t[e] === r && (t[e] = D[e]);
730
739
  }
731
740
  m = t;
732
741
  }
733
- } else if (ee && g(y) && Array.isArray(m)) m = m.join(y), m &&= this.extendTranslation(m, t, i, r);
742
+ } else if (b && g(y) && Array.isArray(m)) m = m.join(y), m &&= this.extendTranslation(m, t, i, r);
734
743
  else {
735
744
  let e = !1, n = !1;
736
- !this.isValidLookup(m) && x && (e = !0, m = C), this.isValidLookup(m) || (n = !0, m = s);
737
- let a = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n ? void 0 : m, c = x && C !== m && this.options.updateMissing;
745
+ !this.isValidLookup(m) && S && (e = !0, m = E), this.isValidLookup(m) || (n = !0, m = s);
746
+ let a = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && n ? void 0 : m, c = S && E !== m && this.options.updateMissing;
738
747
  if (n || e || c) {
739
- if (this.logger.log(c ? "updateKey" : "missingKey", d, l, s, c ? C : m), o) {
748
+ if (this.logger.log(c ? "updateKey" : "missingKey", d, l, s, c ? E : m), o) {
740
749
  let e = this.resolve(s, {
741
750
  ...i,
742
751
  keySeparator: !1
@@ -747,15 +756,15 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
747
756
  if (this.options.saveMissingTo === "fallback" && t && t[0]) for (let n = 0; n < t.length; n++) e.push(t[n]);
748
757
  else this.options.saveMissingTo === "all" ? e = this.languageUtils.toResolveHierarchy(i.lng || this.language) : e.push(i.lng || this.language);
749
758
  let n = (e, t, n) => {
750
- let r = x && n !== m ? n : a;
759
+ let r = S && n !== m ? n : a;
751
760
  this.options.missingKeyHandler ? this.options.missingKeyHandler(e, l, t, r, c, i) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(e, l, t, r, c, i), this.emit("missingKey", e, l, t, m);
752
761
  };
753
- this.options.saveMissing && (this.options.saveMissingPlurals && b ? e.forEach((e) => {
762
+ this.options.saveMissing && (this.options.saveMissingPlurals && x ? e.forEach((e) => {
754
763
  let t = this.pluralResolver.getSuffixes(e, i);
755
- ne && i[`defaultValue${this.options.pluralSeparator}zero`] && t.indexOf(`${this.options.pluralSeparator}zero`) < 0 && t.push(`${this.options.pluralSeparator}zero`), t.forEach((t) => {
756
- n([e], s + t, i[`defaultValue${t}`] || C);
764
+ T && i[`defaultValue${this.options.pluralSeparator}zero`] && t.indexOf(`${this.options.pluralSeparator}zero`) < 0 && t.push(`${this.options.pluralSeparator}zero`), t.forEach((t) => {
765
+ n([e], s + t, i[`defaultValue${t}`] || E);
757
766
  });
758
- }) : n(e, s, C));
767
+ }) : n(e, s, E));
759
768
  }
760
769
  m = this.extendTranslation(m, t, i, p, r), n && m === s && this.options.appendNamespaceToMissingKey && (m = `${l}${u}${s}`), (n || e) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${u}${s}` : s, e ? m : void 0, i));
761
770
  }
@@ -790,7 +799,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
790
799
  !n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
791
800
  }
792
801
  let a = n.postProcess || this.options.postProcess, o = g(a) ? [a] : a;
793
- return e != null && o?.length && n.applyPostProcessor !== !1 && (e = me.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
802
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = P.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
794
803
  i18nResolved: {
795
804
  ...r,
796
805
  usedParams: this.getUsedParamsDetails(n)
@@ -800,7 +809,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
800
809
  }
801
810
  resolve(e, t = {}) {
802
811
  let n, r, i, a, o;
803
- return g(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? O(e, {
812
+ return g(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? F(e, {
804
813
  ...this.options,
805
814
  ...t
806
815
  }) : e)), e.forEach((e) => {
@@ -811,7 +820,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
811
820
  this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
812
821
  let u = t.count !== void 0 && !g(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (g(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
813
822
  l.forEach((e) => {
814
- this.isValidLookup(n) || (o = e, !_e[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (_e[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
823
+ this.isValidLookup(n) || (o = e, !ue[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (ue[`${p[0]}-${e}`] = !0, this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), p.forEach((r) => {
815
824
  if (this.isValidLookup(n)) return;
816
825
  a = r;
817
826
  let o = [c];
@@ -874,17 +883,17 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
874
883
  for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
875
884
  return !1;
876
885
  }
877
- }, be = class {
886
+ }, R = class {
878
887
  constructor(e) {
879
- this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = D.create("languageUtils");
888
+ this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = M.create("languageUtils");
880
889
  }
881
890
  getScriptPartFromCode(e) {
882
- if (e = E(e), !e || e.indexOf("-") < 0) return null;
891
+ if (e = j(e), !e || e.indexOf("-") < 0) return null;
883
892
  let t = e.split("-");
884
893
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
885
894
  }
886
895
  getLanguagePartFromCode(e) {
887
- if (e = E(e), !e || e.indexOf("-") < 0) return e;
896
+ if (e = j(e), !e || e.indexOf("-") < 0) return e;
888
897
  let t = e.split("-");
889
898
  return this.formatLanguageCode(t[0]);
890
899
  }
@@ -934,25 +943,25 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
934
943
  r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
935
944
  }), r;
936
945
  }
937
- }, xe = {
946
+ }, z = {
938
947
  zero: 0,
939
948
  one: 1,
940
949
  two: 2,
941
950
  few: 3,
942
951
  many: 4,
943
952
  other: 5
944
- }, Se = {
953
+ }, B = {
945
954
  select: (e) => e === 1 ? "one" : "other",
946
955
  resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
947
- }, Ce = class {
956
+ }, de = class {
948
957
  constructor(e, t = {}) {
949
- this.languageUtils = e, this.options = t, this.logger = D.create("pluralResolver"), this.pluralRulesCache = {};
958
+ this.languageUtils = e, this.options = t, this.logger = M.create("pluralResolver"), this.pluralRulesCache = {};
950
959
  }
951
960
  clearCache() {
952
961
  this.pluralRulesCache = {};
953
962
  }
954
963
  getRule(e, t = {}) {
955
- let n = E(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
964
+ let n = j(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
956
965
  cleanedCode: n,
957
966
  type: r
958
967
  });
@@ -961,8 +970,8 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
961
970
  try {
962
971
  a = new Intl.PluralRules(n, { type: r });
963
972
  } catch {
964
- if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), Se;
965
- if (!e.match(/-|_/)) return Se;
973
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), B;
974
+ if (!e.match(/-|_/)) return B;
966
975
  let n = this.languageUtils.getLanguagePartFromCode(e);
967
976
  a = this.getRule(n, t);
968
977
  }
@@ -977,23 +986,23 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
977
986
  }
978
987
  getSuffixes(e, t = {}) {
979
988
  let n = this.getRule(e, t);
980
- return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => xe[e] - xe[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
989
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => z[e] - z[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
981
990
  }
982
991
  getSuffix(e, t, n = {}) {
983
992
  let r = this.getRule(e, n);
984
993
  return r ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
985
994
  }
986
- }, we = (e, t, n, r = ".", i = !0) => {
987
- let a = w(e, t, n);
988
- return !a && i && g(n) && (a = ue(e, n, r), a === void 0 && (a = ue(t, n, r))), a;
989
- }, Te = (e) => e.replace(/\$/g, "$$$$"), Ee = class {
995
+ }, V = (e, t, n, r = ".", i = !0) => {
996
+ let a = D(e, t, n);
997
+ return !a && i && g(n) && (a = A(e, n, r), a === void 0 && (a = A(t, n, r))), a;
998
+ }, H = (e) => e.replace(/\$/g, "$$$$"), U = class {
990
999
  constructor(e = {}) {
991
- this.logger = D.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
1000
+ this.logger = M.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
992
1001
  }
993
1002
  init(e = {}) {
994
1003
  e.interpolation ||= { escapeValue: !0 };
995
1004
  let { escape: t, escapeValue: n, useRawValueToEscape: r, prefix: i, prefixEscaped: a, suffix: o, suffixEscaped: s, formatSeparator: c, unescapeSuffix: l, unescapePrefix: u, nestingPrefix: d, nestingPrefixEscaped: f, nestingSuffix: p, nestingSuffixEscaped: m, nestingOptionsSeparator: h, maxReplaces: g, alwaysFormat: _ } = e.interpolation;
996
- this.escape = t === void 0 ? ae : t, this.escapeValue = n === void 0 ? !0 : n, this.useRawValueToEscape = r === void 0 ? !1 : r, this.prefix = i ? T(i) : a || "{{", this.suffix = o ? T(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? T(d) : f || T("$t("), this.nestingSuffix = p ? T(p) : m || T(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ === void 0 ? !1 : _, this.resetRegExp();
1005
+ this.escape = t === void 0 ? te : t, this.escapeValue = n === void 0 ? !0 : n, this.useRawValueToEscape = r === void 0 ? !1 : r, this.prefix = i ? k(i) : a || "{{", this.suffix = o ? k(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? k(d) : f || k("$t("), this.nestingSuffix = p ? k(p) : m || k(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = _ === void 0 ? !1 : _, this.resetRegExp();
997
1006
  }
998
1007
  reset() {
999
1008
  this.options && this.init(this.options);
@@ -1005,7 +1014,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1005
1014
  interpolate(e, t, n, r) {
1006
1015
  let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
1007
1016
  if (e.indexOf(this.formatSeparator) < 0) {
1008
- let i = we(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
1017
+ let i = V(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
1009
1018
  return this.alwaysFormat ? this.format(i, void 0, n, {
1010
1019
  ...r,
1011
1020
  ...t,
@@ -1013,7 +1022,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1013
1022
  }) : i;
1014
1023
  }
1015
1024
  let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
1016
- return this.format(we(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
1025
+ return this.format(V(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
1017
1026
  ...r,
1018
1027
  ...t,
1019
1028
  interpolationkey: a
@@ -1023,10 +1032,10 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1023
1032
  let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
1024
1033
  return [{
1025
1034
  regex: this.regexpUnescape,
1026
- safeValue: (e) => Te(e)
1035
+ safeValue: (e) => H(e)
1027
1036
  }, {
1028
1037
  regex: this.regexp,
1029
- safeValue: (e) => this.escapeValue ? Te(this.escape(e)) : Te(e)
1038
+ safeValue: (e) => this.escapeValue ? H(this.escape(e)) : H(e)
1030
1039
  }].forEach((t) => {
1031
1040
  for (o = 0; i = t.regex.exec(e);) {
1032
1041
  let n = i[1].trim();
@@ -1048,7 +1057,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1048
1057
  let r, i, a, o = (e, t) => {
1049
1058
  let n = this.nestingOptionsSeparator;
1050
1059
  if (e.indexOf(n) < 0) return e;
1051
- let r = e.split(RegExp(`${T(n)}[ ]*{`)), i = `{${r[1]}`;
1060
+ let r = e.split(RegExp(`${k(n)}[ ]*{`)), i = `{${r[1]}`;
1052
1061
  e = r[0], i = this.interpolate(i, a);
1053
1062
  let o = i.match(/'/g), s = i.match(/"/g);
1054
1063
  ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
@@ -1074,7 +1083,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1074
1083
  }
1075
1084
  return e;
1076
1085
  }
1077
- }, De = (e) => {
1086
+ }, fe = (e) => {
1078
1087
  let t = e.toLowerCase().trim(), n = {};
1079
1088
  if (e.indexOf("(") > -1) {
1080
1089
  let r = e.split("(");
@@ -1091,7 +1100,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1091
1100
  formatName: t,
1092
1101
  formatOptions: n
1093
1102
  };
1094
- }, Oe = (e) => {
1103
+ }, W = (e) => {
1095
1104
  let t = {};
1096
1105
  return (n, r, i) => {
1097
1106
  let a = i;
@@ -1100,15 +1109,15 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1100
1109
  [i.interpolationkey]: void 0
1101
1110
  });
1102
1111
  let o = r + JSON.stringify(a), s = t[o];
1103
- return s || (s = e(E(r), i), t[o] = s), s(n);
1112
+ return s || (s = e(j(r), i), t[o] = s), s(n);
1104
1113
  };
1105
- }, ke = (e) => (t, n, r) => e(E(n), r)(t), Ae = class {
1114
+ }, pe = (e) => (t, n, r) => e(j(n), r)(t), me = class {
1106
1115
  constructor(e = {}) {
1107
- this.logger = D.create("formatter"), this.options = e, this.init(e);
1116
+ this.logger = M.create("formatter"), this.options = e, this.init(e);
1108
1117
  }
1109
1118
  init(e, t = { interpolation: {} }) {
1110
1119
  this.formatSeparator = t.interpolation.formatSeparator || ",";
1111
- let n = t.cacheInBuiltFormats ? Oe : ke;
1120
+ let n = t.cacheInBuiltFormats ? W : pe;
1112
1121
  this.formats = {
1113
1122
  number: n((e, t) => {
1114
1123
  let n = new Intl.NumberFormat(e, { ...t });
@@ -1139,7 +1148,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1139
1148
  this.formats[e.toLowerCase().trim()] = t;
1140
1149
  }
1141
1150
  addCached(e, t) {
1142
- this.formats[e.toLowerCase().trim()] = Oe(t);
1151
+ this.formats[e.toLowerCase().trim()] = W(t);
1143
1152
  }
1144
1153
  format(e, t, n, r = {}) {
1145
1154
  let i = t.split(this.formatSeparator);
@@ -1148,7 +1157,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1148
1157
  i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
1149
1158
  }
1150
1159
  return i.reduce((e, t) => {
1151
- let { formatName: i, formatOptions: a } = De(t);
1160
+ let { formatName: i, formatOptions: a } = fe(t);
1152
1161
  if (this.formats[i]) {
1153
1162
  let t = e;
1154
1163
  try {
@@ -1166,11 +1175,11 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1166
1175
  return e;
1167
1176
  }, e);
1168
1177
  }
1169
- }, je = (e, t) => {
1178
+ }, he = (e, t) => {
1170
1179
  e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
1171
- }, Me = class extends fe {
1180
+ }, ge = class extends N {
1172
1181
  constructor(e, t, n, r = {}) {
1173
- super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = D.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
1182
+ super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = M.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
1174
1183
  }
1175
1184
  queueLoad(e, t, n, r) {
1176
1185
  let i = {}, a = {}, o = {}, s = {};
@@ -1198,7 +1207,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1198
1207
  t && this.emit("failedLoading", i, a, t), !t && n && this.store.addResourceBundle(i, a, n, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
1199
1208
  let o = {};
1200
1209
  this.queue.forEach((n) => {
1201
- ne(n.loaded, [i], a), je(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
1210
+ T(n.loaded, [i], a), he(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
1202
1211
  o[e] || (o[e] = {});
1203
1212
  let t = n.loaded[e];
1204
1213
  t.length && t.forEach((t) => {
@@ -1288,7 +1297,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1288
1297
  !e || !e[0] || this.store.addResource(e[0], t, n, r);
1289
1298
  }
1290
1299
  }
1291
- }, Ne = () => ({
1300
+ }, G = () => ({
1292
1301
  debug: !1,
1293
1302
  initAsync: !0,
1294
1303
  ns: ["translation"],
@@ -1345,15 +1354,15 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1345
1354
  skipOnVariables: !0
1346
1355
  },
1347
1356
  cacheInBuiltFormats: !0
1348
- }), Pe = (e) => (g(e.ns) && (e.ns = [e.ns]), g(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), g(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), Fe = () => {}, Ie = (e) => {
1357
+ }), K = (e) => (g(e.ns) && (e.ns = [e.ns]), g(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), g(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), q = () => {}, _e = (e) => {
1349
1358
  Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
1350
1359
  typeof e[t] == "function" && (e[t] = e[t].bind(e));
1351
1360
  });
1352
- }, Le = "__i18next_supportNoticeShown", Re = () => !!(typeof globalThis < "u" && globalThis[Le] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), ze = () => {
1353
- typeof globalThis < "u" && (globalThis[Le] = !0);
1354
- }, Be = (e) => !!(e?.modules?.backend?.name?.indexOf("Locize") > 0 || e?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0 || e?.options?.backend?.backends && e.options.backend.backends.some((e) => e?.name?.indexOf("Locize") > 0 || e?.constructor?.name?.indexOf("Locize") > 0) || e?.options?.backend?.projectId || e?.options?.backend?.backendOptions && e.options.backend.backendOptions.some((e) => e?.projectId)), k = class e extends fe {
1361
+ }, ve = "__i18next_supportNoticeShown", ye = () => !!(typeof globalThis < "u" && globalThis[ve] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), be = () => {
1362
+ typeof globalThis < "u" && (globalThis[ve] = !0);
1363
+ }, xe = (e) => !!(e?.modules?.backend?.name?.indexOf("Locize") > 0 || e?.modules?.backend?.constructor?.name?.indexOf("Locize") > 0 || e?.options?.backend?.backends && e.options.backend.backends.some((e) => e?.name?.indexOf("Locize") > 0 || e?.constructor?.name?.indexOf("Locize") > 0) || e?.options?.backend?.projectId || e?.options?.backend?.backendOptions && e.options.backend.backendOptions.some((e) => e?.projectId)), J = class e extends N {
1355
1364
  constructor(e = {}, t) {
1356
- if (super(), this.options = Pe(e), this.services = {}, this.logger = D, this.modules = { external: [] }, Ie(this), t && !this.isInitialized && !e.isClone) {
1365
+ if (super(), this.options = K(e), this.services = {}, this.logger = M, this.modules = { external: [] }, _e(this), t && !this.isInitialized && !e.isClone) {
1357
1366
  if (!this.options.initAsync) return this.init(e, t), this;
1358
1367
  setTimeout(() => {
1359
1368
  this.init(e, t);
@@ -1362,35 +1371,35 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1362
1371
  }
1363
1372
  init(e = {}, t) {
1364
1373
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (g(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
1365
- let n = Ne();
1374
+ let n = G();
1366
1375
  this.options = {
1367
1376
  ...n,
1368
1377
  ...this.options,
1369
- ...Pe(e)
1378
+ ...K(e)
1370
1379
  }, this.options.interpolation = {
1371
1380
  ...n.interpolation,
1372
1381
  ...this.options.interpolation
1373
- }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !Be(this) && !Re() && (typeof console < "u" && console.info !== void 0 && console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), ze());
1382
+ }, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator), typeof this.options.overloadTranslationOptionHandler != "function" && (this.options.overloadTranslationOptionHandler = n.overloadTranslationOptionHandler), this.options.showSupportNotice !== !1 && !xe(this) && !ye() && (typeof console < "u" && console.info !== void 0 && console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"), be());
1374
1383
  let r = (e) => e ? typeof e == "function" ? new e() : e : null;
1375
1384
  if (!this.options.isClone) {
1376
- this.modules.logger ? D.init(r(this.modules.logger), this.options) : D.init(null, this.options);
1385
+ this.modules.logger ? M.init(r(this.modules.logger), this.options) : M.init(null, this.options);
1377
1386
  let e;
1378
- e = this.modules.formatter ? this.modules.formatter : Ae;
1379
- let t = new be(this.options);
1380
- this.store = new pe(this.options.resources, this.options);
1387
+ e = this.modules.formatter ? this.modules.formatter : me;
1388
+ let t = new R(this.options);
1389
+ this.store = new se(this.options.resources, this.options);
1381
1390
  let i = this.services;
1382
- i.logger = D, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new Ce(t, {
1391
+ i.logger = M, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new de(t, {
1383
1392
  prepend: this.options.pluralSeparator,
1384
1393
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1385
- }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new Ee(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Me(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
1394
+ }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), e && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (i.formatter = r(e), i.formatter.init && i.formatter.init(i, this.options), this.options.interpolation.format = i.formatter.format.bind(i.formatter)), i.interpolator = new U(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new ge(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
1386
1395
  this.emit(e, ...t);
1387
- }), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new ye(this.services, this.options), this.translator.on("*", (e, ...t) => {
1396
+ }), this.modules.languageDetector && (i.languageDetector = r(this.modules.languageDetector), i.languageDetector.init && i.languageDetector.init(i, this.options.detection, this.options)), this.modules.i18nFormat && (i.i18nFormat = r(this.modules.i18nFormat), i.i18nFormat.init && i.i18nFormat.init(this)), this.translator = new L(this.services, this.options), this.translator.on("*", (e, ...t) => {
1388
1397
  this.emit(e, ...t);
1389
1398
  }), this.modules.external.forEach((e) => {
1390
1399
  e.init && e.init(this);
1391
1400
  });
1392
1401
  }
1393
- if (this.format = this.options.interpolation.format, t ||= Fe, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1402
+ if (this.format = this.options.interpolation.format, t ||= q, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1394
1403
  let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1395
1404
  e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
1396
1405
  }
@@ -1418,7 +1427,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1418
1427
  };
1419
1428
  return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
1420
1429
  }
1421
- loadResources(e, t = Fe) {
1430
+ loadResources(e, t = q) {
1422
1431
  let n = t, r = g(e) ? e : this.language;
1423
1432
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
1424
1433
  if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
@@ -1434,14 +1443,14 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1434
1443
  }
1435
1444
  reloadResources(e, t, n) {
1436
1445
  let r = _();
1437
- return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= Fe, this.services.backendConnector.reload(e, t, (e) => {
1446
+ return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= q, this.services.backendConnector.reload(e, t, (e) => {
1438
1447
  r.resolve(), n(e);
1439
1448
  }), r;
1440
1449
  }
1441
1450
  use(e) {
1442
1451
  if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1443
1452
  if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1444
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && me.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1453
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && P.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1445
1454
  }
1446
1455
  setResolvedLanguage(e) {
1447
1456
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -1480,9 +1489,9 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1480
1489
  ...this.options,
1481
1490
  ...a
1482
1491
  };
1483
- typeof a.keyPrefix == "function" && (a.keyPrefix = O(a.keyPrefix, o));
1492
+ typeof a.keyPrefix == "function" && (a.keyPrefix = F(a.keyPrefix, o));
1484
1493
  let s = this.options.keySeparator || ".", c;
1485
- return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = O(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = O(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
1494
+ return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = F(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = F(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
1486
1495
  };
1487
1496
  return g(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
1488
1497
  }
@@ -1535,14 +1544,14 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1535
1544
  if (e && e.direction) return e.direction;
1536
1545
  }
1537
1546
  } catch {}
1538
- let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new be(Ne());
1547
+ let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new R(G());
1539
1548
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1540
1549
  }
1541
1550
  static createInstance(t = {}, n) {
1542
1551
  let r = new e(t, n);
1543
1552
  return r.createInstance = e.createInstance, r;
1544
1553
  }
1545
- cloneInstance(t = {}, n = Fe) {
1554
+ cloneInstance(t = {}, n = q) {
1546
1555
  let r = t.forkResourceStore;
1547
1556
  r && delete t.forkResourceStore;
1548
1557
  let i = {
@@ -1556,18 +1565,18 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1556
1565
  "language"
1557
1566
  ].forEach((e) => {
1558
1567
  a[e] = this[e];
1559
- }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new pe(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
1568
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new se(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
1560
1569
  let e = {
1561
- ...Ne().interpolation,
1570
+ ...G().interpolation,
1562
1571
  ...this.options.interpolation,
1563
1572
  ...t.interpolation
1564
1573
  }, n = {
1565
1574
  ...i,
1566
1575
  interpolation: e
1567
1576
  };
1568
- a.services.interpolator = new Ee(n);
1577
+ a.services.interpolator = new U(n);
1569
1578
  }
1570
- return a.translator = new ye(a.services, i), a.translator.on("*", (e, ...t) => {
1579
+ return a.translator = new L(a.services, i), a.translator.on("*", (e, ...t) => {
1571
1580
  a.emit(e, ...t);
1572
1581
  }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
1573
1582
  }
@@ -1583,7 +1592,7 @@ var _e = {}, ve = (e) => !g(e) && typeof e != "boolean" && typeof e != "number",
1583
1592
  }.createInstance();
1584
1593
  //#endregion
1585
1594
  //#region ../../lib-react/translator/dist/index.js
1586
- k.createInstance, k.dir, k.init, k.loadResources, k.reloadResources, k.use, k.changeLanguage, k.getFixedT, k.t, k.exists, k.setDefaultNamespace, k.hasLoadedNamespace, k.loadNamespaces, k.loadLanguages, k.init({
1595
+ J.createInstance, J.dir, J.init, J.loadResources, J.reloadResources, J.use, J.changeLanguage, J.getFixedT, J.t, J.exists, J.setDefaultNamespace, J.hasLoadedNamespace, J.loadNamespaces, J.loadLanguages, J.init({
1587
1596
  fallbackLng: "en",
1588
1597
  lng: "en",
1589
1598
  debug: !0,
@@ -1592,9 +1601,9 @@ k.createInstance, k.dir, k.init, k.loadResources, k.reloadResources, k.use, k.ch
1592
1601
  es: h
1593
1602
  }
1594
1603
  });
1595
- var Ve = {
1604
+ var Se = {
1596
1605
  translator: {
1597
- ...k,
1606
+ ...J,
1598
1607
  t: (e, t) => {
1599
1608
  let { lng: n } = t;
1600
1609
  switch (n) {
@@ -1610,7 +1619,7 @@ var Ve = {
1610
1619
  break;
1611
1620
  default: break;
1612
1621
  }
1613
- return k.t(e, {
1622
+ return J.t(e, {
1614
1623
  lng: n,
1615
1624
  ...t
1616
1625
  });
@@ -1623,37 +1632,37 @@ var Ve = {
1623
1632
  value: "es_ES",
1624
1633
  label: "Spanish"
1625
1634
  }]
1626
- }, He = /* @__PURE__ */ l(p(), 1), A = (0, He.default)("@pie-lib:categorize:scoring"), Ue = (e) => !e || !e.weighting ? [] : e.weighting.enabled && e.weighting && e.weighting.rules || [], We = (e, t) => {
1627
- if (A("partial? ", e), !(!e || !e.enabled)) {
1635
+ }, Ce = /* @__PURE__ */ l(p(), 1), Y = (0, Ce.default)("@pie-lib:categorize:scoring"), we = (e) => !e || !e.weighting ? [] : e.weighting.enabled && e.weighting && e.weighting.rules || [], Te = (e, t) => {
1636
+ if (Y("partial? ", e), !(!e || !e.enabled)) {
1628
1637
  let n = e.rules.find((e) => e.category === t);
1629
1638
  return n && n.rules || [];
1630
1639
  }
1631
- }, Ge = (e, t) => new Promise((n) => {
1632
- A("categories: ", e, "scoring: ", t);
1633
- let r = Ue(t), i = e.map((e) => ({
1640
+ }, Ee = (e, t) => new Promise((n) => {
1641
+ Y("categories: ", e, "scoring: ", t);
1642
+ let r = we(t), i = e.map((e) => ({
1634
1643
  ...r.find((t) => t.category === e.id) || { points: 1 },
1635
1644
  category: e.id
1636
1645
  }));
1637
- A("weights: ", i);
1646
+ Y("weights: ", i);
1638
1647
  let a = e.reduce((e, t) => {
1639
1648
  let n = i.find((e) => e.category === t.id);
1640
1649
  return e += n.points;
1641
1650
  }, 0);
1642
- A("total: ", a);
1651
+ Y("total: ", a);
1643
1652
  let o = e.map((e) => {
1644
1653
  let n = i.find((t) => t.category === e.id).points;
1645
- if (A("category: ", e), e.correct === !0) return {
1654
+ if (Y("category: ", e), e.correct === !0) return {
1646
1655
  category: e.id,
1647
1656
  score: n,
1648
1657
  points: n
1649
1658
  };
1650
1659
  {
1651
- let r = We(t.partial, e.id);
1652
- if (A("partial rules for category: ", r), r) {
1660
+ let r = Te(t.partial, e.id);
1661
+ if (Y("partial rules for category: ", r), r) {
1653
1662
  let t = (e.choices || []).filter((e) => e.correct).length;
1654
- A("correctCount: ", t);
1663
+ Y("correctCount: ", t);
1655
1664
  let i = r.find((e) => e.count === t);
1656
- A("rule: ", i), i ||= {
1665
+ Y("rule: ", i), i ||= {
1657
1666
  percent: 0,
1658
1667
  count: t
1659
1668
  };
@@ -1674,7 +1683,7 @@ var Ve = {
1674
1683
  };
1675
1684
  }
1676
1685
  }), s = o.reduce((e, t) => e += t.score, 0);
1677
- A("weightedScore: ", s), n({
1686
+ Y("weightedScore: ", s), n({
1678
1687
  score: parseFloat((s / a).toFixed(2), 10),
1679
1688
  details: {
1680
1689
  weighted: {
@@ -1684,1123 +1693,130 @@ var Ve = {
1684
1693
  categories: o
1685
1694
  }
1686
1695
  });
1687
- }), Ke = typeof global == "object" && global && global.Object === Object && global, qe = typeof self == "object" && self && self.Object === Object && self, j = Ke || qe || Function("return this")(), M = j.Symbol, Je = Object.prototype, Ye = Je.hasOwnProperty, Xe = Je.toString, N = M ? M.toStringTag : void 0;
1688
- function Ze(e) {
1689
- var t = Ye.call(e, N), n = e[N];
1690
- try {
1691
- e[N] = void 0;
1692
- var r = !0;
1693
- } catch {}
1694
- var i = Xe.call(e);
1695
- return r && (t ? e[N] = n : delete e[N]), i;
1696
- }
1697
- //#endregion
1698
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js
1699
- var Qe = Object.prototype.toString;
1700
- function $e(e) {
1701
- return Qe.call(e);
1702
- }
1703
- //#endregion
1704
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js
1705
- var et = "[object Null]", tt = "[object Undefined]", nt = M ? M.toStringTag : void 0;
1706
- function P(e) {
1707
- return e == null ? e === void 0 ? tt : et : nt && nt in Object(e) ? Ze(e) : $e(e);
1708
- }
1709
- //#endregion
1710
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js
1711
- function F(e) {
1696
+ }), De = Object.prototype;
1697
+ function X(e) {
1712
1698
  return typeof e == "object" && !!e;
1713
1699
  }
1714
- //#endregion
1715
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js
1716
- var rt = "[object Symbol]";
1717
- function it(e) {
1718
- return typeof e == "symbol" || F(e) && P(e) == rt;
1719
- }
1720
- //#endregion
1721
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js
1722
- function at(e, t) {
1723
- for (var n = -1, r = e == null ? 0 : e.length, i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
1724
- return i;
1725
- }
1726
- //#endregion
1727
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js
1728
- var I = Array.isArray, ot = Infinity, st = M ? M.prototype : void 0, ct = st ? st.toString : void 0;
1729
- function lt(e) {
1730
- if (typeof e == "string") return e;
1731
- if (I(e)) return at(e, lt) + "";
1732
- if (it(e)) return ct ? ct.call(e) : "";
1733
- var t = e + "";
1734
- return t == "0" && 1 / e == -ot ? "-0" : t;
1700
+ function Oe(e) {
1701
+ return Array.isArray(e) ? e : typeof e == "number" ? [e] : e.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
1735
1702
  }
1736
- //#endregion
1737
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js
1738
- function L(e) {
1739
- var t = typeof e;
1740
- return e != null && (t == "object" || t == "function");
1703
+ function ke(e) {
1704
+ return (t) => Ie(t, e);
1741
1705
  }
1742
- //#endregion
1743
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js
1744
- function ut(e) {
1745
- return e;
1706
+ function Ae(e) {
1707
+ return (t) => X(t) ? Object.entries(e).every(([e, n]) => ze(t[e], n)) : !1;
1746
1708
  }
1747
- //#endregion
1748
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js
1749
- var dt = "[object AsyncFunction]", ft = "[object Function]", pt = "[object GeneratorFunction]", mt = "[object Proxy]";
1750
- function ht(e) {
1751
- if (!L(e)) return !1;
1752
- var t = P(e);
1753
- return t == ft || t == pt || t == dt || t == mt;
1709
+ function je(e) {
1710
+ return typeof e == "function" ? e : typeof e == "string" ? ke(e) : X(e) ? Ae(e) : ((e) => e);
1754
1711
  }
1755
- //#endregion
1756
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js
1757
- var gt = j["__core-js_shared__"], _t = function() {
1758
- var e = /[^.]+$/.exec(gt && gt.keys && gt.keys.IE_PROTO || "");
1759
- return e ? "Symbol(src)_1." + e : "";
1760
- }();
1761
- function vt(e) {
1762
- return !!_t && _t in e;
1712
+ function Me(e) {
1713
+ return Array.isArray(e) ? e.slice() : X(e) ? { ...e } : e;
1763
1714
  }
1764
- //#endregion
1765
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js
1766
- var yt = Function.prototype.toString;
1767
- function R(e) {
1768
- if (e != null) {
1769
- try {
1770
- return yt.call(e);
1771
- } catch {}
1772
- try {
1773
- return e + "";
1774
- } catch {}
1775
- }
1776
- return "";
1777
- }
1778
- //#endregion
1779
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js
1780
- var bt = /[\\^$.*+?()[\]{}|]/g, xt = /^\[object .+?Constructor\]$/, St = Function.prototype, Ct = Object.prototype, wt = St.toString, Tt = Ct.hasOwnProperty, Et = RegExp("^" + wt.call(Tt).replace(bt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1781
- function Dt(e) {
1782
- return !L(e) || vt(e) ? !1 : (ht(e) ? Et : xt).test(R(e));
1783
- }
1784
- //#endregion
1785
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js
1786
- function Ot(e, t) {
1787
- return e?.[t];
1788
- }
1789
- //#endregion
1790
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js
1791
- function z(e, t) {
1792
- var n = Ot(e, t);
1793
- return Dt(n) ? n : void 0;
1794
- }
1795
- //#endregion
1796
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js
1797
- var kt = z(j, "WeakMap"), At = Object.create, jt = function() {
1798
- function e() {}
1799
- return function(t) {
1800
- if (!L(t)) return {};
1801
- if (At) return At(t);
1802
- e.prototype = t;
1803
- var n = new e();
1804
- return e.prototype = void 0, n;
1805
- };
1806
- }();
1807
- //#endregion
1808
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
1809
- function Mt(e, t) {
1810
- var n = -1, r = e.length;
1811
- for (t ||= Array(r); ++n < r;) t[n] = e[n];
1715
+ function Z(e) {
1716
+ if (!X(e)) return e;
1717
+ if (e instanceof Date) return new Date(e.getTime());
1718
+ if (Array.isArray(e)) return e.map((e) => Z(e));
1719
+ let t = {};
1720
+ for (let [n, r] of Object.entries(e)) t[n] = Z(r);
1812
1721
  return t;
1813
1722
  }
1814
- //#endregion
1815
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js
1816
- var Nt = function() {
1817
- try {
1818
- var e = z(Object, "defineProperty");
1819
- return e({}, "", {}), e;
1820
- } catch {}
1821
- }();
1822
- //#endregion
1823
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js
1824
- function Pt(e, t) {
1825
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1;);
1826
- return e;
1827
- }
1828
- //#endregion
1829
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js
1830
- var Ft = 9007199254740991, It = /^(?:0|[1-9]\d*)$/;
1831
- function Lt(e, t) {
1832
- var n = typeof e;
1833
- return t ??= Ft, !!t && (n == "number" || n != "symbol" && It.test(e)) && e > -1 && e % 1 == 0 && e < t;
1834
- }
1835
- //#endregion
1836
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
1837
- function Rt(e, t, n) {
1838
- t == "__proto__" && Nt ? Nt(e, t, {
1839
- configurable: !0,
1840
- enumerable: !0,
1841
- value: n,
1842
- writable: !0
1843
- }) : e[t] = n;
1844
- }
1845
- //#endregion
1846
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js
1847
- function zt(e, t) {
1848
- return e === t || e !== e && t !== t;
1849
- }
1850
- //#endregion
1851
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
1852
- var Bt = Object.prototype.hasOwnProperty;
1853
- function Vt(e, t, n) {
1854
- var r = e[t];
1855
- (!(Bt.call(e, t) && zt(r, n)) || n === void 0 && !(t in e)) && Rt(e, t, n);
1856
- }
1857
- //#endregion
1858
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
1859
- function B(e, t, n, r) {
1860
- var i = !n;
1861
- n ||= {};
1862
- for (var a = -1, o = t.length; ++a < o;) {
1863
- var s = t[a], c = r ? r(n[s], e[s], s, n, e) : void 0;
1864
- c === void 0 && (c = e[s]), i ? Rt(n, s, c) : Vt(n, s, c);
1865
- }
1866
- return n;
1867
- }
1868
- //#endregion
1869
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js
1870
- var Ht = 9007199254740991;
1871
- function Ut(e) {
1872
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ht;
1873
- }
1874
- //#endregion
1875
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js
1876
- function Wt(e) {
1877
- return e != null && Ut(e.length) && !ht(e);
1878
- }
1879
- //#endregion
1880
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js
1881
- var Gt = Object.prototype;
1882
- function Kt(e) {
1883
- var t = e && e.constructor;
1884
- return e === (typeof t == "function" && t.prototype || Gt);
1885
- }
1886
- //#endregion
1887
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js
1888
- function qt(e, t) {
1889
- for (var n = -1, r = Array(e); ++n < e;) r[n] = t(n);
1890
- return r;
1891
- }
1892
- //#endregion
1893
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js
1894
- var Jt = "[object Arguments]";
1895
- function Yt(e) {
1896
- return F(e) && P(e) == Jt;
1897
- }
1898
- //#endregion
1899
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js
1900
- var Xt = Object.prototype, Zt = Xt.hasOwnProperty, Qt = Xt.propertyIsEnumerable, $t = Yt(function() {
1901
- return arguments;
1902
- }()) ? Yt : function(e) {
1903
- return F(e) && Zt.call(e, "callee") && !Qt.call(e, "callee");
1904
- };
1905
- //#endregion
1906
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js
1907
- function en() {
1908
- return !1;
1909
- }
1910
- //#endregion
1911
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js
1912
- var tn = typeof exports == "object" && exports && !exports.nodeType && exports, nn = tn && typeof module == "object" && module && !module.nodeType && module, rn = nn && nn.exports === tn ? j.Buffer : void 0, V = (rn ? rn.isBuffer : void 0) || en, an = "[object Arguments]", on = "[object Array]", sn = "[object Boolean]", cn = "[object Date]", ln = "[object Error]", un = "[object Function]", dn = "[object Map]", fn = "[object Number]", pn = "[object Object]", mn = "[object RegExp]", hn = "[object Set]", gn = "[object String]", _n = "[object WeakMap]", vn = "[object ArrayBuffer]", yn = "[object DataView]", bn = "[object Float32Array]", xn = "[object Float64Array]", Sn = "[object Int8Array]", Cn = "[object Int16Array]", wn = "[object Int32Array]", Tn = "[object Uint8Array]", En = "[object Uint8ClampedArray]", Dn = "[object Uint16Array]", On = "[object Uint32Array]", H = {};
1913
- H[bn] = H[xn] = H[Sn] = H[Cn] = H[wn] = H[Tn] = H[En] = H[Dn] = H[On] = !0, H[an] = H[on] = H[vn] = H[sn] = H[yn] = H[cn] = H[ln] = H[un] = H[dn] = H[fn] = H[pn] = H[mn] = H[hn] = H[gn] = H[_n] = !1;
1914
- function kn(e) {
1915
- return F(e) && Ut(e.length) && !!H[P(e)];
1916
- }
1917
- //#endregion
1918
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js
1919
- function An(e) {
1920
- return function(t) {
1921
- return e(t);
1723
+ function Ne(e) {
1724
+ return (e ?? []).filter(Boolean);
1725
+ }
1726
+ function Pe(e, t = 0, n = {}) {
1727
+ let r, i, a, o, s, c = n.leading === !0, l = n.trailing !== !1, u = () => {
1728
+ if (!a) return s;
1729
+ let t = a, n = o;
1730
+ return a = void 0, o = void 0, s = e.apply(n, t), s;
1731
+ }, d = () => {
1732
+ r && clearTimeout(r), i && clearTimeout(i), r = void 0, i = void 0, a = void 0, o = void 0;
1733
+ }, f = function(...e) {
1734
+ let d = c && !r;
1735
+ return a = e, o = this, d && u(), r && clearTimeout(r), r = setTimeout(() => {
1736
+ r = void 0, i &&= (clearTimeout(i), void 0), l ? u() : (a = void 0, o = void 0);
1737
+ }, t), n.maxWait !== void 0 && !i && (i = setTimeout(() => {
1738
+ r && clearTimeout(r), r = void 0, i = void 0, l || !c ? u() : (a = void 0, o = void 0);
1739
+ }, n.maxWait)), s;
1922
1740
  };
1741
+ return f.cancel = d, f.flush = () => (r &&= (clearTimeout(r), void 0), i &&= (clearTimeout(i), void 0), u()), f;
1923
1742
  }
1924
- //#endregion
1925
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js
1926
- var jn = typeof exports == "object" && exports && !exports.nodeType && exports, U = jn && typeof module == "object" && module && !module.nodeType && module, Mn = U && U.exports === jn && Ke.process, W = function() {
1927
- try {
1928
- return U && U.require && U.require("util").types || Mn && Mn.binding && Mn.binding("util");
1929
- } catch {}
1930
- }(), Nn = W && W.isTypedArray, Pn = Nn ? An(Nn) : kn, Fn = Object.prototype.hasOwnProperty;
1931
- function In(e, t) {
1932
- var n = I(e), r = !n && $t(e), i = !n && !r && V(e), a = !n && !r && !i && Pn(e), o = n || r || i || a, s = o ? qt(e.length, String) : [], c = s.length;
1933
- for (var l in e) (t || Fn.call(e, l)) && !(o && (l == "length" || i && (l == "offset" || l == "parent") || a && (l == "buffer" || l == "byteLength" || l == "byteOffset") || Lt(l, c))) && s.push(l);
1934
- return s;
1935
- }
1936
- //#endregion
1937
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js
1938
- function Ln(e, t) {
1939
- return function(n) {
1940
- return e(t(n));
1941
- };
1942
- }
1943
- //#endregion
1944
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js
1945
- var Rn = Ln(Object.keys, Object), zn = Object.prototype.hasOwnProperty;
1946
- function Bn(e) {
1947
- if (!Kt(e)) return Rn(e);
1948
- var t = [];
1949
- for (var n in Object(e)) zn.call(e, n) && n != "constructor" && t.push(n);
1743
+ function Fe(e) {
1744
+ let t = [];
1745
+ for (let n of e ?? []) Array.isArray(n) ? t.push(...n) : t.push(n);
1950
1746
  return t;
1951
1747
  }
1952
- //#endregion
1953
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js
1954
- function Vn(e) {
1955
- return Wt(e) ? In(e) : Bn(e);
1956
- }
1957
- //#endregion
1958
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
1959
- function Hn(e) {
1960
- var t = [];
1961
- if (e != null) for (var n in Object(e)) t.push(n);
1962
- return t;
1963
- }
1964
- //#endregion
1965
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
1966
- var Un = Object.prototype.hasOwnProperty;
1967
- function Wn(e) {
1968
- if (!L(e)) return Hn(e);
1969
- var t = Kt(e), n = [];
1970
- for (var r in e) r == "constructor" && (t || !Un.call(e, r)) || n.push(r);
1971
- return n;
1972
- }
1973
- //#endregion
1974
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
1975
- function Gn(e) {
1976
- return Wt(e) ? In(e, !0) : Wn(e);
1977
- }
1978
- //#endregion
1979
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js
1980
- var Kn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, qn = /^\w*$/;
1981
- function Jn(e, t) {
1982
- if (I(e)) return !1;
1983
- var n = typeof e;
1984
- return n == "number" || n == "symbol" || n == "boolean" || e == null || it(e) ? !0 : qn.test(e) || !Kn.test(e) || t != null && e in Object(t);
1985
- }
1986
- //#endregion
1987
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js
1988
- var Yn = z(Object, "create");
1989
- //#endregion
1990
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js
1991
- function Xn() {
1992
- this.__data__ = Yn ? Yn(null) : {}, this.size = 0;
1993
- }
1994
- //#endregion
1995
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js
1996
- function Zn(e) {
1997
- var t = this.has(e) && delete this.__data__[e];
1998
- return this.size -= +!!t, t;
1999
- }
2000
- //#endregion
2001
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js
2002
- var Qn = "__lodash_hash_undefined__", $n = Object.prototype.hasOwnProperty;
2003
- function er(e) {
2004
- var t = this.__data__;
2005
- if (Yn) {
2006
- var n = t[e];
2007
- return n === Qn ? void 0 : n;
2008
- }
2009
- return $n.call(t, e) ? t[e] : void 0;
2010
- }
2011
- //#endregion
2012
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js
2013
- var tr = Object.prototype.hasOwnProperty;
2014
- function nr(e) {
2015
- var t = this.__data__;
2016
- return Yn ? t[e] !== void 0 : tr.call(t, e);
2017
- }
2018
- //#endregion
2019
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js
2020
- var rr = "__lodash_hash_undefined__";
2021
- function ir(e, t) {
2022
- var n = this.__data__;
2023
- return this.size += +!this.has(e), n[e] = Yn && t === void 0 ? rr : t, this;
2024
- }
2025
- //#endregion
2026
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js
2027
- function G(e) {
2028
- var t = -1, n = e == null ? 0 : e.length;
2029
- for (this.clear(); ++t < n;) {
2030
- var r = e[t];
2031
- this.set(r[0], r[1]);
1748
+ function Ie(e, t, n) {
1749
+ let r = e;
1750
+ for (let e of Oe(t)) {
1751
+ if (r == null) return n;
1752
+ r = r[e];
2032
1753
  }
2033
- }
2034
- G.prototype.clear = Xn, G.prototype.delete = Zn, G.prototype.get = er, G.prototype.has = nr, G.prototype.set = ir;
2035
- //#endregion
2036
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js
2037
- function ar() {
2038
- this.__data__ = [], this.size = 0;
2039
- }
2040
- //#endregion
2041
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js
2042
- function or(e, t) {
2043
- for (var n = e.length; n--;) if (zt(e[n][0], t)) return n;
2044
- return -1;
2045
- }
2046
- //#endregion
2047
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js
2048
- var sr = Array.prototype.splice;
2049
- function cr(e) {
2050
- var t = this.__data__, n = or(t, e);
2051
- return n < 0 ? !1 : (n == t.length - 1 ? t.pop() : sr.call(t, n, 1), --this.size, !0);
2052
- }
2053
- //#endregion
2054
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js
2055
- function lr(e) {
2056
- var t = this.__data__, n = or(t, e);
2057
- return n < 0 ? void 0 : t[n][1];
2058
- }
2059
- //#endregion
2060
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js
2061
- function ur(e) {
2062
- return or(this.__data__, e) > -1;
2063
- }
2064
- //#endregion
2065
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js
2066
- function dr(e, t) {
2067
- var n = this.__data__, r = or(n, e);
2068
- return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
2069
- }
2070
- //#endregion
2071
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js
2072
- function K(e) {
2073
- var t = -1, n = e == null ? 0 : e.length;
2074
- for (this.clear(); ++t < n;) {
2075
- var r = e[t];
2076
- this.set(r[0], r[1]);
2077
- }
2078
- }
2079
- K.prototype.clear = ar, K.prototype.delete = cr, K.prototype.get = lr, K.prototype.has = ur, K.prototype.set = dr;
2080
- //#endregion
2081
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js
2082
- var fr = z(j, "Map");
2083
- //#endregion
2084
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js
2085
- function pr() {
2086
- this.size = 0, this.__data__ = {
2087
- hash: new G(),
2088
- map: new (fr || K)(),
2089
- string: new G()
2090
- };
2091
- }
2092
- //#endregion
2093
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js
2094
- function mr(e) {
2095
- var t = typeof e;
2096
- return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
2097
- }
2098
- //#endregion
2099
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js
2100
- function hr(e, t) {
2101
- var n = e.__data__;
2102
- return mr(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
2103
- }
2104
- //#endregion
2105
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js
2106
- function gr(e) {
2107
- var t = hr(this, e).delete(e);
2108
- return this.size -= +!!t, t;
2109
- }
2110
- //#endregion
2111
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js
2112
- function _r(e) {
2113
- return hr(this, e).get(e);
2114
- }
2115
- //#endregion
2116
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js
2117
- function vr(e) {
2118
- return hr(this, e).has(e);
2119
- }
2120
- //#endregion
2121
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js
2122
- function yr(e, t) {
2123
- var n = hr(this, e), r = n.size;
2124
- return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
2125
- }
2126
- //#endregion
2127
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js
2128
- function q(e) {
2129
- var t = -1, n = e == null ? 0 : e.length;
2130
- for (this.clear(); ++t < n;) {
2131
- var r = e[t];
2132
- this.set(r[0], r[1]);
2133
- }
2134
- }
2135
- q.prototype.clear = pr, q.prototype.delete = gr, q.prototype.get = _r, q.prototype.has = vr, q.prototype.set = yr;
2136
- //#endregion
2137
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js
2138
- var br = "Expected a function";
2139
- function xr(e, t) {
2140
- if (typeof e != "function" || t != null && typeof t != "function") throw TypeError(br);
2141
- var n = function() {
2142
- var r = arguments, i = t ? t.apply(this, r) : r[0], a = n.cache;
2143
- if (a.has(i)) return a.get(i);
2144
- var o = e.apply(this, r);
2145
- return n.cache = a.set(i, o) || a, o;
2146
- };
2147
- return n.cache = new (xr.Cache || q)(), n;
2148
- }
2149
- xr.Cache = q;
2150
- //#endregion
2151
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js
2152
- var Sr = 500;
2153
- function Cr(e) {
2154
- var t = xr(e, function(e) {
2155
- return n.size === Sr && n.clear(), e;
2156
- }), n = t.cache;
2157
- return t;
2158
- }
2159
- //#endregion
2160
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js
2161
- var wr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Tr = /\\(\\)?/g, Er = Cr(function(e) {
2162
- var t = [];
2163
- return e.charCodeAt(0) === 46 && t.push(""), e.replace(wr, function(e, n, r, i) {
2164
- t.push(r ? i.replace(Tr, "$1") : n || e);
2165
- }), t;
2166
- });
2167
- //#endregion
2168
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js
2169
- function Dr(e) {
2170
- return e == null ? "" : lt(e);
2171
- }
2172
- //#endregion
2173
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js
2174
- function Or(e, t) {
2175
- return I(e) ? e : Jn(e, t) ? [e] : Er(Dr(e));
2176
- }
2177
- //#endregion
2178
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js
2179
- var kr = Infinity;
2180
- function J(e) {
2181
- if (typeof e == "string" || it(e)) return e;
2182
- var t = e + "";
2183
- return t == "0" && 1 / e == -kr ? "-0" : t;
2184
- }
2185
- //#endregion
2186
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js
2187
- function Ar(e, t) {
2188
- t = Or(t, e);
2189
- for (var n = 0, r = t.length; e != null && n < r;) e = e[J(t[n++])];
2190
- return n && n == r ? e : void 0;
2191
- }
2192
- //#endregion
2193
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js
2194
- function jr(e, t, n) {
2195
- var r = e == null ? void 0 : Ar(e, t);
2196
1754
  return r === void 0 ? n : r;
2197
1755
  }
2198
- //#endregion
2199
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js
2200
- function Mr(e, t) {
2201
- for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
2202
- return e;
1756
+ function Le(e, t) {
1757
+ return typeof e == "string" ? e.includes(String(t)) : Array.isArray(e) ? e.includes(t) : Object.values(e ?? {}).includes(t);
2203
1758
  }
2204
- //#endregion
2205
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js
2206
- var Nr = Ln(Object.getPrototypeOf, Object);
2207
- //#endregion
2208
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.js
2209
- function Pr(e, t, n) {
2210
- var r = -1, i = e.length;
2211
- t < 0 && (t = -t > i ? 0 : i + t), n = n > i ? i : n, n < 0 && (n += i), i = t > n ? 0 : n - t >>> 0, t >>>= 0;
2212
- for (var a = Array(i); ++r < i;) a[r] = e[r + t];
2213
- return a;
2214
- }
2215
- //#endregion
2216
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js
2217
- function Fr() {
2218
- this.__data__ = new K(), this.size = 0;
2219
- }
2220
- //#endregion
2221
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js
2222
- function Ir(e) {
2223
- var t = this.__data__, n = t.delete(e);
2224
- return this.size = t.size, n;
2225
- }
2226
- //#endregion
2227
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js
2228
- function Lr(e) {
2229
- return this.__data__.get(e);
2230
- }
2231
- //#endregion
2232
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js
2233
- function Rr(e) {
2234
- return this.__data__.has(e);
2235
- }
2236
- //#endregion
2237
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js
2238
- var zr = 200;
2239
- function Br(e, t) {
2240
- var n = this.__data__;
2241
- if (n instanceof K) {
2242
- var r = n.__data__;
2243
- if (!fr || r.length < zr - 1) return r.push([e, t]), this.size = ++n.size, this;
2244
- n = this.__data__ = new q(r);
2245
- }
2246
- return n.set(e, t), this.size = n.size, this;
2247
- }
2248
- //#endregion
2249
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js
2250
- function Y(e) {
2251
- var t = this.__data__ = new K(e);
2252
- this.size = t.size;
2253
- }
2254
- Y.prototype.clear = Fr, Y.prototype.delete = Ir, Y.prototype.get = Lr, Y.prototype.has = Rr, Y.prototype.set = Br;
2255
- //#endregion
2256
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
2257
- function Vr(e, t) {
2258
- return e && B(t, Vn(t), e);
2259
- }
2260
- //#endregion
2261
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
2262
- function Hr(e, t) {
2263
- return e && B(t, Gn(t), e);
2264
- }
2265
- //#endregion
2266
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
2267
- var Ur = typeof exports == "object" && exports && !exports.nodeType && exports, Wr = Ur && typeof module == "object" && module && !module.nodeType && module, Gr = Wr && Wr.exports === Ur ? j.Buffer : void 0, Kr = Gr ? Gr.allocUnsafe : void 0;
2268
- function qr(e, t) {
2269
- if (t) return e.slice();
2270
- var n = e.length, r = Kr ? Kr(n) : new e.constructor(n);
2271
- return e.copy(r), r;
2272
- }
2273
- //#endregion
2274
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js
2275
- function Jr(e, t) {
2276
- for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
2277
- var o = e[n];
2278
- t(o, n, e) && (a[i++] = o);
2279
- }
2280
- return a;
2281
- }
2282
- //#endregion
2283
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js
2284
- function Yr() {
2285
- return [];
2286
- }
2287
- //#endregion
2288
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js
2289
- var Xr = Object.prototype.propertyIsEnumerable, Zr = Object.getOwnPropertySymbols, Qr = Zr ? function(e) {
2290
- return e == null ? [] : (e = Object(e), Jr(Zr(e), function(t) {
2291
- return Xr.call(e, t);
2292
- }));
2293
- } : Yr;
2294
- //#endregion
2295
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
2296
- function $r(e, t) {
2297
- return B(e, Qr(e), t);
2298
- }
2299
- //#endregion
2300
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
2301
- var ei = Object.getOwnPropertySymbols ? function(e) {
2302
- for (var t = []; e;) Mr(t, Qr(e)), e = Nr(e);
2303
- return t;
2304
- } : Yr;
2305
- //#endregion
2306
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
2307
- function ti(e, t) {
2308
- return B(e, ei(e), t);
2309
- }
2310
- //#endregion
2311
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js
2312
- function ni(e, t, n) {
2313
- var r = t(e);
2314
- return I(e) ? r : Mr(r, n(e));
2315
- }
2316
- //#endregion
2317
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js
2318
- function ri(e) {
2319
- return ni(e, Vn, Qr);
2320
- }
2321
- //#endregion
2322
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
2323
- function ii(e) {
2324
- return ni(e, Gn, ei);
2325
- }
2326
- //#endregion
2327
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js
2328
- var ai = z(j, "DataView"), oi = z(j, "Promise"), si = z(j, "Set"), ci = "[object Map]", li = "[object Object]", ui = "[object Promise]", di = "[object Set]", fi = "[object WeakMap]", pi = "[object DataView]", mi = R(ai), hi = R(fr), gi = R(oi), _i = R(si), vi = R(kt), X = P;
2329
- (ai && X(new ai(/* @__PURE__ */ new ArrayBuffer(1))) != pi || fr && X(new fr()) != ci || oi && X(oi.resolve()) != ui || si && X(new si()) != di || kt && X(new kt()) != fi) && (X = function(e) {
2330
- var t = P(e), n = t == li ? e.constructor : void 0, r = n ? R(n) : "";
2331
- if (r) switch (r) {
2332
- case mi: return pi;
2333
- case hi: return ci;
2334
- case gi: return ui;
2335
- case _i: return di;
2336
- case vi: return fi;
2337
- }
2338
- return t;
2339
- });
2340
- var Z = X, yi = Object.prototype.hasOwnProperty;
2341
- function bi(e) {
2342
- var t = e.length, n = new e.constructor(t);
2343
- return t && typeof e[0] == "string" && yi.call(e, "index") && (n.index = e.index, n.input = e.input), n;
2344
- }
2345
- //#endregion
2346
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js
2347
- var xi = j.Uint8Array;
2348
- //#endregion
2349
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
2350
- function Si(e) {
2351
- var t = new e.constructor(e.byteLength);
2352
- return new xi(t).set(new xi(e)), t;
2353
- }
2354
- //#endregion
2355
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
2356
- function Ci(e, t) {
2357
- var n = t ? Si(e.buffer) : e.buffer;
2358
- return new e.constructor(n, e.byteOffset, e.byteLength);
2359
- }
2360
- //#endregion
2361
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
2362
- var wi = /\w*$/;
2363
- function Ti(e) {
2364
- var t = new e.constructor(e.source, wi.exec(e));
2365
- return t.lastIndex = e.lastIndex, t;
2366
- }
2367
- //#endregion
2368
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
2369
- var Ei = M ? M.prototype : void 0, Di = Ei ? Ei.valueOf : void 0;
2370
- function Oi(e) {
2371
- return Di ? Object(Di.call(e)) : {};
2372
- }
2373
- //#endregion
2374
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
2375
- function ki(e, t) {
2376
- var n = t ? Si(e.buffer) : e.buffer;
2377
- return new e.constructor(n, e.byteOffset, e.length);
2378
- }
2379
- //#endregion
2380
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
2381
- var Ai = "[object Boolean]", ji = "[object Date]", Mi = "[object Map]", Ni = "[object Number]", Pi = "[object RegExp]", Fi = "[object Set]", Ii = "[object String]", Li = "[object Symbol]", Ri = "[object ArrayBuffer]", zi = "[object DataView]", Bi = "[object Float32Array]", Vi = "[object Float64Array]", Hi = "[object Int8Array]", Ui = "[object Int16Array]", Wi = "[object Int32Array]", Gi = "[object Uint8Array]", Ki = "[object Uint8ClampedArray]", qi = "[object Uint16Array]", Ji = "[object Uint32Array]";
2382
- function Yi(e, t, n) {
2383
- var r = e.constructor;
2384
- switch (t) {
2385
- case Ri: return Si(e);
2386
- case Ai:
2387
- case ji: return new r(+e);
2388
- case zi: return Ci(e, n);
2389
- case Bi:
2390
- case Vi:
2391
- case Hi:
2392
- case Ui:
2393
- case Wi:
2394
- case Gi:
2395
- case Ki:
2396
- case qi:
2397
- case Ji: return ki(e, n);
2398
- case Mi: return new r();
2399
- case Ni:
2400
- case Ii: return new r(e);
2401
- case Pi: return Ti(e);
2402
- case Fi: return new r();
2403
- case Li: return Oi(e);
2404
- }
2405
- }
2406
- //#endregion
2407
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
2408
- function Xi(e) {
2409
- return typeof e.constructor == "function" && !Kt(e) ? jt(Nr(e)) : {};
2410
- }
2411
- //#endregion
2412
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
2413
- var Zi = "[object Map]";
2414
- function Qi(e) {
2415
- return F(e) && Z(e) == Zi;
2416
- }
2417
- //#endregion
2418
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
2419
- var $i = W && W.isMap, ea = $i ? An($i) : Qi, ta = "[object Set]";
2420
- function na(e) {
2421
- return F(e) && Z(e) == ta;
2422
- }
2423
- //#endregion
2424
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
2425
- var ra = W && W.isSet, ia = ra ? An(ra) : na, aa = 1, oa = 2, sa = 4, ca = "[object Arguments]", la = "[object Array]", ua = "[object Boolean]", da = "[object Date]", fa = "[object Error]", pa = "[object Function]", ma = "[object GeneratorFunction]", ha = "[object Map]", ga = "[object Number]", _a = "[object Object]", va = "[object RegExp]", ya = "[object Set]", ba = "[object String]", xa = "[object Symbol]", Sa = "[object WeakMap]", Ca = "[object ArrayBuffer]", wa = "[object DataView]", Ta = "[object Float32Array]", Ea = "[object Float64Array]", Da = "[object Int8Array]", Oa = "[object Int16Array]", ka = "[object Int32Array]", Aa = "[object Uint8Array]", ja = "[object Uint8ClampedArray]", Ma = "[object Uint16Array]", Na = "[object Uint32Array]", Q = {};
2426
- Q[ca] = Q[la] = Q[Ca] = Q[wa] = Q[ua] = Q[da] = Q[Ta] = Q[Ea] = Q[Da] = Q[Oa] = Q[ka] = Q[ha] = Q[ga] = Q[_a] = Q[va] = Q[ya] = Q[ba] = Q[xa] = Q[Aa] = Q[ja] = Q[Ma] = Q[Na] = !0, Q[fa] = Q[pa] = Q[Sa] = !1;
2427
- function Pa(e, t, n, r, i, a) {
2428
- var o, s = t & aa, c = t & oa, l = t & sa;
2429
- if (n && (o = i ? n(e, r, i, a) : n(e)), o !== void 0) return o;
2430
- if (!L(e)) return e;
2431
- var u = I(e);
2432
- if (u) {
2433
- if (o = bi(e), !s) return Mt(e, o);
2434
- } else {
2435
- var d = Z(e), f = d == pa || d == ma;
2436
- if (V(e)) return qr(e, s);
2437
- if (d == _a || d == ca || f && !i) {
2438
- if (o = c || f ? {} : Xi(e), !s) return c ? ti(e, Hr(o, e)) : $r(e, Vr(o, e));
2439
- } else {
2440
- if (!Q[d]) return i ? e : {};
2441
- o = Yi(e, d, s);
2442
- }
2443
- }
2444
- a ||= new Y();
2445
- var p = a.get(e);
2446
- if (p) return p;
2447
- a.set(e, o), ia(e) ? e.forEach(function(r) {
2448
- o.add(Pa(r, t, n, r, e, a));
2449
- }) : ea(e) && e.forEach(function(r, i) {
2450
- o.set(i, Pa(r, t, n, i, e, a));
2451
- });
2452
- var m = u ? void 0 : (l ? c ? ii : ri : c ? Gn : Vn)(e);
2453
- return Pt(m || e, function(r, i) {
2454
- m && (i = r, r = e[i]), Vt(o, i, Pa(r, t, n, i, e, a));
2455
- }), o;
2456
- }
2457
- //#endregion
2458
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/clone.js
2459
- var Fa = 4;
2460
- function Ia(e) {
2461
- return Pa(e, Fa);
2462
- }
2463
- //#endregion
2464
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js
2465
- var La = "__lodash_hash_undefined__";
2466
- function Ra(e) {
2467
- return this.__data__.set(e, La), this;
2468
- }
2469
- //#endregion
2470
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
2471
- function za(e) {
2472
- return this.__data__.has(e);
2473
- }
2474
- //#endregion
2475
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
2476
- function Ba(e) {
2477
- var t = -1, n = e == null ? 0 : e.length;
2478
- for (this.__data__ = new q(); ++t < n;) this.add(e[t]);
2479
- }
2480
- Ba.prototype.add = Ba.prototype.push = Ra, Ba.prototype.has = za;
2481
- //#endregion
2482
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js
2483
- function Va(e, t) {
2484
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
2485
- return !1;
2486
- }
2487
- //#endregion
2488
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
2489
- function Ha(e, t) {
2490
- return e.has(t);
2491
- }
2492
- //#endregion
2493
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js
2494
- var Ua = 1, Wa = 2;
2495
- function Ga(e, t, n, r, i, a) {
2496
- var o = n & Ua, s = e.length, c = t.length;
2497
- if (s != c && !(o && c > s)) return !1;
2498
- var l = a.get(e), u = a.get(t);
2499
- if (l && u) return l == t && u == e;
2500
- var d = -1, f = !0, p = n & Wa ? new Ba() : void 0;
2501
- for (a.set(e, t), a.set(t, e); ++d < s;) {
2502
- var m = e[d], h = t[d];
2503
- if (r) var g = o ? r(h, m, d, t, e, a) : r(m, h, d, e, t, a);
2504
- if (g !== void 0) {
2505
- if (g) continue;
2506
- f = !1;
2507
- break;
2508
- }
2509
- if (p) {
2510
- if (!Va(t, function(e, t) {
2511
- if (!Ha(p, t) && (m === e || i(m, e, n, r, a))) return p.push(t);
2512
- })) {
2513
- f = !1;
2514
- break;
2515
- }
2516
- } else if (!(m === h || i(m, h, n, r, a))) {
2517
- f = !1;
2518
- break;
2519
- }
2520
- }
2521
- return a.delete(e), a.delete(t), f;
1759
+ function Re(e) {
1760
+ return e == null ? !0 : typeof e == "string" || Array.isArray(e) ? e.length === 0 : e instanceof Map || e instanceof Set ? e.size === 0 : X(e) ? Object.keys(e).length === 0 : !0;
2522
1761
  }
2523
- //#endregion
2524
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js
2525
- function Ka(e) {
2526
- var t = -1, n = Array(e.size);
2527
- return e.forEach(function(e, r) {
2528
- n[++t] = [r, e];
2529
- }), n;
1762
+ function Q(e, t, n) {
1763
+ let r = n?.(e, t);
1764
+ if (r !== void 0) return !!r;
1765
+ if (Object.is(e, t)) return !0;
1766
+ if (!X(e) || !X(t)) return !1;
1767
+ if (e instanceof Date || t instanceof Date) return e instanceof Date && t instanceof Date && e.getTime() === t.getTime();
1768
+ if (Array.isArray(e) || Array.isArray(t)) return Array.isArray(e) && Array.isArray(t) && e.length === t.length && e.every((e, r) => Q(e, t[r], n));
1769
+ let i = Object.keys(e), a = Object.keys(t);
1770
+ return i.length === a.length && i.every((r) => De.hasOwnProperty.call(t, r) && Q(e[r], t[r], n));
2530
1771
  }
2531
- //#endregion
2532
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
2533
- function qa(e) {
2534
- var t = -1, n = Array(e.size);
2535
- return e.forEach(function(e) {
2536
- n[++t] = e;
2537
- }), n;
1772
+ function ze(e, t) {
1773
+ return Q(e, t);
2538
1774
  }
2539
- //#endregion
2540
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js
2541
- var Ja = 1, Ya = 2, Xa = "[object Boolean]", Za = "[object Date]", Qa = "[object Error]", $a = "[object Map]", eo = "[object Number]", to = "[object RegExp]", no = "[object Set]", ro = "[object String]", io = "[object Symbol]", ao = "[object ArrayBuffer]", oo = "[object DataView]", so = M ? M.prototype : void 0, co = so ? so.valueOf : void 0;
2542
- function lo(e, t, n, r, i, a, o) {
2543
- switch (n) {
2544
- case oo:
2545
- if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
2546
- e = e.buffer, t = t.buffer;
2547
- case ao: return !(e.byteLength != t.byteLength || !a(new xi(e), new xi(t)));
2548
- case Xa:
2549
- case Za:
2550
- case eo: return zt(+e, +t);
2551
- case Qa: return e.name == t.name && e.message == t.message;
2552
- case to:
2553
- case ro: return e == t + "";
2554
- case $a: var s = Ka;
2555
- case no:
2556
- var c = r & Ja;
2557
- if (s ||= qa, e.size != t.size && !c) return !1;
2558
- var l = o.get(e);
2559
- if (l) return l == t;
2560
- r |= Ya, o.set(e, t);
2561
- var u = Ga(s(e), s(t), r, i, a, o);
2562
- return o.delete(e), u;
2563
- case io: if (co) return co.call(e) == co.call(t);
2564
- }
2565
- return !1;
1775
+ function Be(e) {
1776
+ return Number.isFinite(e);
2566
1777
  }
2567
- //#endregion
2568
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js
2569
- var uo = 1, fo = Object.prototype.hasOwnProperty;
2570
- function po(e, t, n, r, i, a) {
2571
- var o = n & uo, s = ri(e), c = s.length;
2572
- if (c != ri(t).length && !o) return !1;
2573
- for (var l = c; l--;) {
2574
- var u = s[l];
2575
- if (!(o ? u in t : fo.call(t, u))) return !1;
2576
- }
2577
- var d = a.get(e), f = a.get(t);
2578
- if (d && f) return d == t && f == e;
2579
- var p = !0;
2580
- a.set(e, t), a.set(t, e);
2581
- for (var m = o; ++l < c;) {
2582
- u = s[l];
2583
- var h = e[u], g = t[u];
2584
- if (r) var _ = o ? r(g, h, u, t, e, a) : r(h, g, u, e, t, a);
2585
- if (!(_ === void 0 ? h === g || i(h, g, n, r, a) : _)) {
2586
- p = !1;
2587
- break;
2588
- }
2589
- m ||= u == "constructor";
2590
- }
2591
- if (p && !m) {
2592
- var v = e.constructor, y = t.constructor;
2593
- v != y && "constructor" in e && "constructor" in t && !(typeof v == "function" && v instanceof v && typeof y == "function" && y instanceof y) && (p = !1);
2594
- }
2595
- return a.delete(e), a.delete(t), p;
1778
+ function Ve(e, ...t) {
1779
+ for (let n of t) if (n) for (let [t, r] of Object.entries(n)) X(r) && !Array.isArray(r) && X(e[t]) ? Ve(e[t], r) : e[t] = Z(r);
1780
+ return e;
2596
1781
  }
2597
- //#endregion
2598
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js
2599
- var mo = 1, ho = "[object Arguments]", go = "[object Array]", _o = "[object Object]", vo = Object.prototype.hasOwnProperty;
2600
- function yo(e, t, n, r, i, a) {
2601
- var o = I(e), s = I(t), c = o ? go : Z(e), l = s ? go : Z(t);
2602
- c = c == ho ? _o : c, l = l == ho ? _o : l;
2603
- var u = c == _o, d = l == _o, f = c == l;
2604
- if (f && V(e)) {
2605
- if (!V(t)) return !1;
2606
- o = !0, u = !1;
2607
- }
2608
- if (f && !u) return a ||= new Y(), o || Pn(e) ? Ga(e, t, n, r, i, a) : lo(e, t, c, n, r, i, a);
2609
- if (!(n & mo)) {
2610
- var p = u && vo.call(e, "__wrapped__"), m = d && vo.call(t, "__wrapped__");
2611
- if (p || m) {
2612
- var h = p ? e.value() : e, g = m ? t.value() : t;
2613
- return a ||= new Y(), i(h, g, n, r, a);
2614
- }
2615
- }
2616
- return f ? (a ||= new Y(), po(e, t, n, r, i, a)) : !1;
1782
+ function He(e, t) {
1783
+ let n = { ...e ?? {} };
1784
+ for (let e of Array.isArray(t) ? t : [t]) delete n[e];
1785
+ return n;
2617
1786
  }
2618
- //#endregion
2619
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js
2620
- function bo(e, t, n, r, i) {
2621
- return e === t ? !0 : e == null || t == null || !F(e) && !F(t) ? e !== e && t !== t : yo(e, t, n, r, bo, i);
1787
+ function Ue(e, t) {
1788
+ let n = je(t), r = [];
1789
+ for (let t = e.length - 1; t >= 0; t--) n(e[t], t, e) && r.unshift(...e.splice(t, 1));
1790
+ return r;
2622
1791
  }
2623
- //#endregion
2624
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.js
2625
- var xo = 1, So = 2;
2626
- function Co(e, t, n, r) {
2627
- var i = n.length, a = i, o = !r;
2628
- if (e == null) return !a;
2629
- for (e = Object(e); i--;) {
2630
- var s = n[i];
2631
- if (o && s[2] ? s[1] !== e[s[0]] : !(s[0] in e)) return !1;
2632
- }
2633
- for (; ++i < a;) {
2634
- s = n[i];
2635
- var c = s[0], l = e[c], u = s[1];
2636
- if (o && s[2]) {
2637
- if (l === void 0 && !(c in e)) return !1;
2638
- } else {
2639
- var d = new Y();
2640
- if (r) var f = r(l, u, c, e, t, d);
2641
- if (!(f === void 0 ? bo(u, l, xo | So, r, d) : f)) return !1;
1792
+ function We(e, t, n) {
1793
+ let r = Oe(t), i = e;
1794
+ return r.forEach((e, t) => {
1795
+ if (t === r.length - 1) {
1796
+ i[e] = n;
1797
+ return;
2642
1798
  }
2643
- }
2644
- return !0;
1799
+ let a = r[t + 1];
1800
+ i[e] ??= typeof a == "number" || /^\d+$/.test(String(a)) ? [] : {}, i = i[e];
1801
+ }), e;
2645
1802
  }
2646
- //#endregion
2647
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.js
2648
- function wo(e) {
2649
- return e === e && !L(e);
1803
+ function Ge(e, t) {
1804
+ let n = t ?? ((e) => e);
1805
+ return Array.from({ length: Math.max(0, e) }, (e, t) => n(t));
2650
1806
  }
2651
- //#endregion
2652
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.js
2653
- function To(e) {
2654
- for (var t = Vn(e), n = t.length; n--;) {
2655
- var r = t[n], i = e[r];
2656
- t[n] = [
2657
- r,
2658
- i,
2659
- wo(i)
2660
- ];
2661
- }
2662
- return t;
2663
- }
2664
- //#endregion
2665
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.js
2666
- function Eo(e, t) {
2667
- return function(n) {
2668
- return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
2669
- };
2670
- }
2671
- //#endregion
2672
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.js
2673
- function Do(e) {
2674
- var t = To(e);
2675
- return t.length == 1 && t[0][2] ? Eo(t[0][0], t[0][1]) : function(n) {
2676
- return n === e || Co(n, e, t);
2677
- };
2678
- }
2679
- //#endregion
2680
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.js
2681
- function Oo(e, t) {
2682
- return e != null && t in Object(e);
2683
- }
2684
- //#endregion
2685
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.js
2686
- function ko(e, t, n) {
2687
- t = Or(t, e);
2688
- for (var r = -1, i = t.length, a = !1; ++r < i;) {
2689
- var o = J(t[r]);
2690
- if (!(a = e != null && n(e, o))) break;
2691
- e = e[o];
2692
- }
2693
- return a || ++r != i ? a : (i = e == null ? 0 : e.length, !!i && Ut(i) && Lt(o, i) && (I(e) || $t(e)));
2694
- }
2695
- //#endregion
2696
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/hasIn.js
2697
- function Ao(e, t) {
2698
- return e != null && ko(e, t, Oo);
2699
- }
2700
- //#endregion
2701
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.js
2702
- var jo = 1, Mo = 2;
2703
- function No(e, t) {
2704
- return Jn(e) && wo(t) ? Eo(J(e), t) : function(n) {
2705
- var r = jr(n, e);
2706
- return r === void 0 && r === t ? Ao(n, e) : bo(t, r, jo | Mo);
2707
- };
2708
- }
2709
- //#endregion
2710
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.js
2711
- function Po(e) {
2712
- return function(t) {
2713
- return t?.[e];
2714
- };
2715
- }
2716
- //#endregion
2717
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.js
2718
- function Fo(e) {
2719
- return function(t) {
2720
- return Ar(t, e);
2721
- };
2722
- }
2723
- //#endregion
2724
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/property.js
2725
- function Io(e) {
2726
- return Jn(e) ? Po(J(e)) : Fo(e);
2727
- }
2728
- //#endregion
2729
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.js
2730
- function Lo(e) {
2731
- return typeof e == "function" ? e : e == null ? ut : typeof e == "object" ? I(e) ? No(e[0], e[1]) : Do(e) : Io(e);
2732
- }
2733
- //#endregion
2734
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/last.js
2735
- function Ro(e) {
2736
- var t = e == null ? 0 : e.length;
2737
- return t ? e[t - 1] : void 0;
2738
- }
2739
- //#endregion
2740
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_parent.js
2741
- function zo(e, t) {
2742
- return t.length < 2 ? e : Ar(e, Pr(t, 0, -1));
2743
- }
2744
- //#endregion
2745
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js
2746
- var Bo = "[object Map]", Vo = "[object Set]", Ho = Object.prototype.hasOwnProperty;
2747
- function Uo(e) {
2748
- if (e == null) return !0;
2749
- if (Wt(e) && (I(e) || typeof e == "string" || typeof e.splice == "function" || V(e) || Pn(e) || $t(e))) return !e.length;
2750
- var t = Z(e);
2751
- if (t == Bo || t == Vo) return !e.size;
2752
- if (Kt(e)) return !Bn(e).length;
2753
- for (var n in e) if (Ho.call(e, n)) return !1;
2754
- return !0;
2755
- }
2756
- //#endregion
2757
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnset.js
2758
- var Wo = Object.prototype.hasOwnProperty;
2759
- function Go(e, t) {
2760
- t = Or(t, e);
2761
- var n = -1, r = t.length;
2762
- if (!r) return !0;
2763
- for (; ++n < r;) {
2764
- var i = J(t[n]);
2765
- if (i === "__proto__" && !Wo.call(e, "__proto__") || (i === "constructor" || i === "prototype") && n < r - 1) return !1;
2766
- }
2767
- var a = zo(e, t);
2768
- return a == null || delete a[J(Ro(t))];
2769
- }
2770
- //#endregion
2771
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_basePullAt.js
2772
- var Ko = Array.prototype.splice;
2773
- function qo(e, t) {
2774
- for (var n = e ? t.length : 0, r = n - 1; n--;) {
2775
- var i = t[n];
2776
- if (n == r || i !== a) {
2777
- var a = i;
2778
- Lt(i) ? Ko.call(e, i, 1) : Go(e, i);
2779
- }
2780
- }
2781
- return e;
2782
- }
2783
- //#endregion
2784
- //#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/remove.js
2785
- function Jo(e, t) {
2786
- var n = [];
2787
- if (!(e && e.length)) return n;
2788
- var r = -1, i = [], a = e.length;
2789
- for (t = Lo(t, 3); ++r < a;) {
2790
- var o = e[r];
2791
- t(o, r, e) && (n.push(o), i.push(r));
2792
- }
2793
- return qo(e, i), n;
1807
+ function Ke(...e) {
1808
+ let t = Math.max(0, ...e.map((e) => e.length));
1809
+ return Array.from({ length: t }, (t, n) => e.map((e) => e[n]));
2794
1810
  }
2795
1811
  //#endregion
2796
1812
  //#region ../../lib-react/categorize/dist/index.js
2797
- var $ = (0, He.default)("@pie-lib:categorize"), Yo = (e, t, n) => (t ||= [], t.reduce((t, r) => {
2798
- let i = Xo(e, r, n - t.count);
1813
+ var $ = (0, Ce.default)("@pie-lib:categorize"), qe = (e, t, n) => (t ||= [], t.reduce((t, r) => {
1814
+ let i = Je(e, r, n - t.count);
2799
1815
  return t.out.push(i.array), t.count += i.count || 0, t;
2800
1816
  }, {
2801
1817
  out: [],
2802
1818
  count: 0
2803
- }).out), Xo = (e, t, n) => {
1819
+ }).out), Je = (e, t, n) => {
2804
1820
  if (t ||= [], n === 0) {
2805
1821
  let n = t.filter((t) => t !== e);
2806
1822
  return {
@@ -2817,17 +1833,17 @@ var $ = (0, He.default)("@pie-lib:categorize"), Yo = (e, t, n) => (t ||= [], t.r
2817
1833
  count: r.count
2818
1834
  };
2819
1835
  }
2820
- }, Zo = (e, t) => (t ||= [], t.reduce((e, t) => {
1836
+ }, Ye = (e, t) => (t ||= [], t.reduce((e, t) => {
2821
1837
  if ($("choice: ----> ", t.id, "categoryCount: ", t.categoryCount), t.categoryCount === void 0 || t.categoryCount === 0) return e;
2822
1838
  {
2823
1839
  let n = e.map((e) => e.choices);
2824
- return Yo(t.id, n, t.categoryCount).map((t, n) => ({
1840
+ return qe(t.id, n, t.categoryCount).map((t, n) => ({
2825
1841
  category: e[n].category,
2826
1842
  alternateResponses: e[n].alternateResponses,
2827
1843
  choices: t
2828
1844
  }));
2829
1845
  }
2830
- }, e)), Qo = (e, t) => (t ||= [], t.reduce((e, t) => {
1846
+ }, e)), Xe = (e, t) => (t ||= [], t.reduce((e, t) => {
2831
1847
  if ($("choice: ----> ", t.id, "categoryCount: ", t.categoryCount), t.categoryCount === void 0 || t.categoryCount === 0) return e;
2832
1848
  {
2833
1849
  let n = {};
@@ -2836,7 +1852,7 @@ var $ = (0, He.default)("@pie-lib:categorize"), Yo = (e, t, n) => (t ||= [], t.r
2836
1852
  }));
2837
1853
  let r = [];
2838
1854
  return Object.keys(n).forEach((e) => {
2839
- n[e] = Yo(t.id, n[e], t.categoryCount), n[e].forEach((e, t) => {
1855
+ n[e] = qe(t.id, n[e], t.categoryCount), n[e].forEach((e, t) => {
2840
1856
  r[t] || (r[t] = []), r[t].push(e);
2841
1857
  });
2842
1858
  }), e.map((e, t) => ({
@@ -2845,26 +1861,26 @@ var $ = (0, He.default)("@pie-lib:categorize"), Yo = (e, t, n) => (t ||= [], t.r
2845
1861
  choices: e.choices
2846
1862
  }));
2847
1863
  }
2848
- }, e)), $o = (e, t) => {
2849
- let n = t.reduce((t, n) => t + es(e, n.choices), 0);
1864
+ }, e)), Ze = (e, t) => {
1865
+ let n = t.reduce((t, n) => t + Qe(e, n.choices), 0);
2850
1866
  return $("[countInAnswer] choiceId:", e, t), n;
2851
- }, es = (e, t) => (t || []).filter((t) => t === e).length, ts = (e, t) => !e || !e.id || !Array.isArray(t) ? 0 : t.reduce((t, n) => t + (n.choices || []).filter((t) => t && t.id === e.id).length, 0), ns = (e, t) => t.filter((t) => t.category !== e), rs = (e, t, n) => t.map((t) => {
1867
+ }, Qe = (e, t) => (t || []).filter((t) => t === e).length, $e = (e, t) => !e || !e.id || !Array.isArray(t) ? 0 : t.reduce((t, n) => t + (n.choices || []).filter((t) => t && t.id === e.id).length, 0), et = (e, t) => t.filter((t) => t.category !== e), tt = (e, t, n) => t.map((t) => {
2852
1868
  if (!n || t.category === n) {
2853
- let n = Ia(t.choices);
2854
- return Jo(n, (t) => t === e), {
1869
+ let n = Me(t.choices);
1870
+ return Ue(n, (t) => t === e), {
2855
1871
  ...t,
2856
1872
  choices: n
2857
1873
  };
2858
1874
  } else return t;
2859
- }), is = (e, t, n) => n.map((n) => n.category === t ? (n.choices = n.choices.reduce((t, n) => (n.id === e.id ? t.findIndex((t) => t.id === e.id) === -1 && t.push(n) : t.push(n), t), []), n) : (n.choices = (n.choices || []).filter((t) => t !== e.id), n)), as = (e, t, n, r) => ($("[removeChoiceFromCategory] choiceIndex:", n), r.map((r) => {
1875
+ }), nt = (e, t, n) => n.map((n) => n.category === t ? (n.choices = n.choices.reduce((t, n) => (n.id === e.id ? t.findIndex((t) => t.id === e.id) === -1 && t.push(n) : t.push(n), t), []), n) : (n.choices = (n.choices || []).filter((t) => t !== e.id), n)), rt = (e, t, n, r) => ($("[removeChoiceFromCategory] choiceIndex:", n), r.map((r) => {
2860
1876
  if (r.category === t) {
2861
- let t = Ia(r.choices), i = t.findIndex((t, r) => t === e && r >= n);
1877
+ let t = Me(r.choices), i = t.findIndex((t, r) => t === e && r >= n);
2862
1878
  return i !== -1 && t.splice(i, 1), {
2863
1879
  ...r,
2864
1880
  choices: t
2865
1881
  };
2866
1882
  } else return r;
2867
- })), os = (e, t, n, r, i) => (i || []).map((e) => {
1883
+ })), it = (e, t, n, r, i) => (i || []).map((e) => {
2868
1884
  if (e?.category === t) {
2869
1885
  let t = (e?.alternateResponses || []).map((e, t) => (t === r && (e || []).splice(n, 1), e));
2870
1886
  return {
@@ -2873,10 +1889,10 @@ var $ = (0, He.default)("@pie-lib:categorize"), Yo = (e, t, n) => (t ||= [], t.r
2873
1889
  };
2874
1890
  }
2875
1891
  return e;
2876
- }), ss = (e, t, n, r, i) => ($("[moveChoiceToCategory] choice: ", e, "from: ", t, "to: ", n, "answers: ", i), t === n ? i : (t && (i = as(e, t, r, i)), i.findIndex((e) => e.category === n) === -1 ? (i.push({
1892
+ }), at = (e, t, n, r, i) => ($("[moveChoiceToCategory] choice: ", e, "from: ", t, "to: ", n, "answers: ", i), t === n ? i : (t && (i = rt(e, t, r, i)), i.findIndex((e) => e.category === n) === -1 ? (i.push({
2877
1893
  category: n,
2878
1894
  choices: [e]
2879
- }), i) : i.map((t) => t.category === n ? (t.choices = t.choices || [], t.choices.push(e), t) : t))), cs = (e, t, n, r, i, a, o) => ($("[moveChoiceToAlternate] choice: ", e, "from: ", t, "to: ", n, "answers: ", i, "chocieIndex: ", r), t === n ? i : i.map((r) => (r.category === n && (o !== 0 && r.alternateResponses && (r.alternateResponses[a] = (r.alternateResponses[a] || []).filter((t) => t !== e)), r.alternateResponses || (r.alternateResponses = [], r.alternateResponses[a] = []), r.alternateResponses[a].push(e)), r.category === t && o !== 0 && r.alternateResponses && r.alternateResponses[a] && (r.alternateResponses[a] = r.alternateResponses[a].filter((t) => t !== e)), r))), ls = (e, t) => e.categoryCount > 0 ? ts(e, t) < e.categoryCount : !0, us = (e, t) => t.reduce((e, t) => {
1895
+ }), i) : i.map((t) => t.category === n ? (t.choices = t.choices || [], t.choices.push(e), t) : t))), ot = (e, t, n, r, i, a, o) => ($("[moveChoiceToAlternate] choice: ", e, "from: ", t, "to: ", n, "answers: ", i, "chocieIndex: ", r), t === n ? i : i.map((r) => (r.category === n && (o !== 0 && r.alternateResponses && (r.alternateResponses[a] = (r.alternateResponses[a] || []).filter((t) => t !== e)), r.alternateResponses || (r.alternateResponses = [], r.alternateResponses[a] = []), r.alternateResponses[a].push(e)), r.category === t && o !== 0 && r.alternateResponses && r.alternateResponses[a] && (r.alternateResponses[a] = r.alternateResponses[a].filter((t) => t !== e)), r))), st = (e, t) => e.categoryCount > 0 ? $e(e, t) < e.categoryCount : !0, ct = (e, t) => t.reduce((e, t) => {
2880
1896
  let n = e.copyOfPossibleResponse.findIndex((e) => t && e === t.id);
2881
1897
  return n >= 0 ? (e.builtChoices.push({
2882
1898
  ...t,
@@ -2889,8 +1905,8 @@ var $ = (0, He.default)("@pie-lib:categorize"), Yo = (e, t, n) => (t ||= [], t.r
2889
1905
  builtChoices: [],
2890
1906
  copyOfPossibleResponse: [...e],
2891
1907
  allChoicesAreCorrect: !0
2892
- }), ds = (e, t) => t.reduce((t, n) => {
2893
- let r = e[n.id] || [], i = n.choices || [], { builtChoices: a, allChoicesAreCorrect: o } = us(r, i), s = i.length === r.length;
1908
+ }), lt = (e, t) => t.reduce((t, n) => {
1909
+ let r = e[n.id] || [], i = n.choices || [], { builtChoices: a, allChoicesAreCorrect: o } = ct(r, i), s = i.length === r.length;
2894
1910
  return t.builtCategories.push({
2895
1911
  ...n,
2896
1912
  correct: o && s,
@@ -2899,20 +1915,20 @@ var $ = (0, He.default)("@pie-lib:categorize"), Yo = (e, t, n) => (t ||= [], t.r
2899
1915
  }, {
2900
1916
  builtCategories: [],
2901
1917
  correct: !0
2902
- }), fs = (e) => e ? e.reduce((e, t) => (e[0] ? e[0][t.category] = t.choices : e.push({ [t.category]: t.choices }), t.alternateResponses && t.alternateResponses.forEach((n, r) => {
1918
+ }), ut = (e) => e ? e.reduce((e, t) => (e[0] ? e[0][t.category] = t.choices : e.push({ [t.category]: t.choices }), t.alternateResponses && t.alternateResponses.forEach((n, r) => {
2903
1919
  e[r + 1] ? e[r + 1][t.category] = n : e.push({ [t.category]: n });
2904
- }), e), []) : [], ps = (e, t, n) => (e ||= [], n ||= [], t ||= [], e.map((e) => {
1920
+ }), e), []) : [], dt = (e, t, n) => (e ||= [], n ||= [], t ||= [], e.map((e) => {
2905
1921
  let { choices: r = [] } = n.find((t) => t.category === e.id) || {};
2906
1922
  return {
2907
1923
  ...e,
2908
1924
  choices: r.map((e) => t.find((t) => t.id === e))
2909
1925
  };
2910
- })), ms = (e, t, n, r) => {
1926
+ })), ft = (e, t, n, r) => {
2911
1927
  e ||= [], t ||= [], n ||= [];
2912
- let i = fs(r) || [], a = ps(e, t, n), o, s;
1928
+ let i = ut(r) || [], a = dt(e, t, n), o, s;
2913
1929
  if (i.length) {
2914
1930
  let e = i.reduce((e, t) => {
2915
- let { builtCategories: n, correct: r } = ds(t, a);
1931
+ let { builtCategories: n, correct: r } = lt(t, a);
2916
1932
  return e.bestResponse === null || !e.entirelyCorrect && r ? {
2917
1933
  bestResponse: t,
2918
1934
  builtCategories: n,
@@ -2926,13 +1942,13 @@ var $ = (0, He.default)("@pie-lib:categorize"), Yo = (e, t, n) => (t ||= [], t.r
2926
1942
  a = e.builtCategories, o = e.bestResponse, s = e.entirelyCorrect;
2927
1943
  }
2928
1944
  return {
2929
- choices: t.map((e) => ls(e, a) ? e : { empty: !0 }),
1945
+ choices: t.map((e) => st(e, a) ? e : { empty: !0 }),
2930
1946
  categories: a,
2931
1947
  correct: s,
2932
1948
  bestResponse: o
2933
1949
  };
2934
1950
  };
2935
1951
  //#endregion
2936
- export { Ve as $, Pn as A, Nt as B, Nr as C, Or as D, J as E, B as F, I as G, ht as H, Vt as I, F as J, at as K, zt as L, $t as M, qt as N, Gn as O, Wt as P, Ge as Q, Rt as R, Y as S, jr as T, ut as U, Mt as V, L as W, M as X, P as Y, j as Z, Xi as _, rs as a, Jr as b, Qo as c, os as d, p as et, Go as f, Pa as g, bo as h, $o as i, l as it, V as j, Vn as k, as as l, Po as m, is as n, s as nt, Zo as o, Uo as p, it as q, ss as r, u as rt, ns as s, ms as t, o as tt, cs as u, ki as v, Mr as w, qr as x, ii as y, Lt as z };
1952
+ export { s as A, Ne as C, Se as D, Ee as E, l as M, p as O, Ke as S, Fe as T, Le as _, tt as a, Z as b, Xe as c, it as d, ze as f, Re as g, Be as h, Ze as i, u as j, o as k, rt as l, We as m, nt as n, Ye as o, Ve as p, at as r, et as s, ft as t, ot as u, He as v, Ie as w, Ge as x, Pe as y };
2937
1953
 
2938
- //# sourceMappingURL=dist-BsrA0RFp.js.map
1954
+ //# sourceMappingURL=dist-BINEJ0Vp.js.map