@pie-element/simple-cloze 0.1.4-next.17 → 0.1.4-next.18

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.
package/module/print.js CHANGED
@@ -2263,24 +2263,20 @@ function Di() {
2263
2263
  let e = window[Si];
2264
2264
  return typeof e?.renderMath == "function" ? e : null;
2265
2265
  }
2266
- function Oi() {
2267
- let e = qr();
2268
- e && Kr("legacy-renderer-delegation", `window['${Si}'] renders this element's math with MathJax ${e}`);
2269
- }
2270
- var ki = async (e) => {
2266
+ var Oi = async (e) => {
2271
2267
  if (typeof window > "u") return;
2272
2268
  let t = typeof e == "string", n;
2273
2269
  t ? (n = document.createElement("div"), n.innerHTML = e) : n = e || document.body;
2274
2270
  let r = Di();
2275
- return r ? (Oi(), await r.renderMath?.(n)) : await Ei()(n), t ? n.innerHTML : void 0;
2276
- }, Ai = [
2271
+ return r ? await r.renderMath?.(n) : await Ei()(n), t ? n.innerHTML : void 0;
2272
+ }, ki = [
2277
2273
  "nbsp iexcl cent pound curren yen brvbar sect uml copy ordf laquo not shy reg macr",
2278
2274
  "deg plusmn sup2 sup3 acute micro para middot cedil sup1 ordm raquo frac14 frac12 frac34 iquest",
2279
2275
  "Agrave Aacute Acirc Atilde Auml Aring AElig Ccedil Egrave Eacute Ecirc Euml Igrave Iacute Icirc Iuml",
2280
2276
  "ETH Ntilde Ograve Oacute Ocirc Otilde Ouml times Oslash Ugrave Uacute Ucirc Uuml Yacute THORN szlig",
2281
2277
  "agrave aacute acirc atilde auml aring aelig ccedil egrave eacute ecirc euml igrave iacute icirc iuml",
2282
2278
  "eth ntilde ograve oacute ocirc otilde ouml divide oslash ugrave uacute ucirc uuml yacute thorn yuml"
2283
- ].join(" "), ji = "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu nu xi omicron pi rho sigmaf sigma tau upsilon phi chi psi omega", Mi = new Map(Object.entries({
2279
+ ].join(" "), Ai = "alpha beta gamma delta epsilon zeta eta theta iota kappa lambda mu nu xi omicron pi rho sigmaf sigma tau upsilon phi chi psi omega", ji = new Map(Object.entries({
2284
2280
  quot: 34,
2285
2281
  amp: 38,
2286
2282
  apos: 39,
@@ -2311,16 +2307,16 @@ var ki = async (e) => {
2311
2307
  le: 8804,
2312
2308
  ge: 8805
2313
2309
  }));
2314
- for (let [e, t] of Ai.split(" ").entries()) Mi.set(t, 160 + e);
2315
- for (let [e, t] of ji.split(" ").entries()) Mi.set(t, 945 + e), t !== "sigmaf" && Mi.set(t[0].toUpperCase() + t.slice(1), 913 + e);
2316
- var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<\/?[a-z][^>]*>|<!--[\s\S]*?-->/gi, Fi = /&(#[0-9]+|#x[0-9a-f]+|[a-z][a-z0-9]*);/gi, Ii = (e, t) => {
2310
+ for (let [e, t] of ki.split(" ").entries()) ji.set(t, 160 + e);
2311
+ for (let [e, t] of Ai.split(" ").entries()) ji.set(t, 945 + e), t !== "sigmaf" && ji.set(t[0].toUpperCase() + t.slice(1), 913 + e);
2312
+ var Mi = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Ni = /<\/?[a-z][^>]*>|<!--[\s\S]*?-->/gi, Pi = /&(#[0-9]+|#x[0-9a-f]+|[a-z][a-z0-9]*);/gi, Fi = (e, t) => {
2317
2313
  if (t[0] === "#") {
2318
2314
  let e = t[1] === "x" || t[1] === "X", n = Number.parseInt(t.slice(e ? 2 : 1), e ? 16 : 10), r = n > 0 && n <= 1114111 && (n < 55296 || n > 57343);
2319
2315
  return String.fromCodePoint(r ? n : 65533);
2320
2316
  }
2321
- let n = Mi.get(t);
2317
+ let n = ji.get(t);
2322
2318
  return n === void 0 ? e : String.fromCodePoint(n);
2323
- }, Li = (e) => typeof e == "string" ? e.replace(Ni, " ").replace(Pi, "").replace(Fi, Ii).replace(/\s+/g, " ").trim() : "", Ri = {
2319
+ }, Ii = (e) => typeof e == "string" ? e.replace(Mi, " ").replace(Ni, "").replace(Pi, Fi).replace(/\s+/g, " ").trim() : "", Li = {
2324
2320
  translation: {
2325
2321
  categorize: {
2326
2322
  limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
@@ -2460,7 +2456,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
2460
2456
  hideNote: "Hide Note",
2461
2457
  cancel: "Cancel"
2462
2458
  }
2463
- }, zi = {
2459
+ }, Ri = {
2464
2460
  translation: {
2465
2461
  categorize: {
2466
2462
  limitMaxChoicesPerCategory: "Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.",
@@ -2600,55 +2596,55 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
2600
2596
  hideNote: "Ocultar Nota",
2601
2597
  cancel: "Cancelar"
2602
2598
  }
2603
- }, Z = (e) => typeof e == "string", Bi = () => {
2599
+ }, Z = (e) => typeof e == "string", zi = () => {
2604
2600
  let e, t, n = new Promise((n, r) => {
2605
2601
  e = n, t = r;
2606
2602
  });
2607
2603
  return n.resolve = e, n.reject = t, n;
2608
- }, Vi = (e) => e == null ? "" : "" + e, Hi = (e, t, n) => {
2604
+ }, Bi = (e) => e == null ? "" : "" + e, Vi = (e, t, n) => {
2609
2605
  e.forEach((e) => {
2610
2606
  t[e] && (n[e] = t[e]);
2611
2607
  });
2612
- }, Ui = /###/g, Wi = (e) => e && e.indexOf("###") > -1 ? e.replace(Ui, ".") : e, Gi = (e) => !e || Z(e), Ki = (e, t, n) => {
2608
+ }, Hi = /###/g, Ui = (e) => e && e.indexOf("###") > -1 ? e.replace(Hi, ".") : e, Wi = (e) => !e || Z(e), Gi = (e, t, n) => {
2613
2609
  let r = Z(t) ? t.split(".") : t, i = 0;
2614
2610
  for (; i < r.length - 1;) {
2615
- if (Gi(e)) return {};
2616
- let t = Wi(r[i]);
2611
+ if (Wi(e)) return {};
2612
+ let t = Ui(r[i]);
2617
2613
  !e[t] && n && (e[t] = new n()), e = Object.prototype.hasOwnProperty.call(e, t) ? e[t] : {}, ++i;
2618
2614
  }
2619
- return Gi(e) ? {} : {
2615
+ return Wi(e) ? {} : {
2620
2616
  obj: e,
2621
- k: Wi(r[i])
2617
+ k: Ui(r[i])
2622
2618
  };
2623
- }, qi = (e, t, n) => {
2624
- let { obj: r, k: i } = Ki(e, t, Object);
2619
+ }, Ki = (e, t, n) => {
2620
+ let { obj: r, k: i } = Gi(e, t, Object);
2625
2621
  if (r !== void 0 || t.length === 1) {
2626
2622
  r[i] = n;
2627
2623
  return;
2628
2624
  }
2629
- let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = Ki(e, o, Object);
2630
- for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = Ki(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
2625
+ let a = t[t.length - 1], o = t.slice(0, t.length - 1), s = Gi(e, o, Object);
2626
+ for (; s.obj === void 0 && o.length;) a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), s = Gi(e, o, Object), s?.obj && s.obj[`${s.k}.${a}`] !== void 0 && (s.obj = void 0);
2631
2627
  s.obj[`${s.k}.${a}`] = n;
2632
- }, Ji = (e, t, n, r) => {
2633
- let { obj: i, k: a } = Ki(e, t, Object);
2628
+ }, qi = (e, t, n, r) => {
2629
+ let { obj: i, k: a } = Gi(e, t, Object);
2634
2630
  i[a] = i[a] || [], i[a].push(n);
2635
- }, Yi = (e, t) => {
2636
- let { obj: n, k: r } = Ki(e, t);
2631
+ }, Ji = (e, t) => {
2632
+ let { obj: n, k: r } = Gi(e, t);
2637
2633
  if (n && Object.prototype.hasOwnProperty.call(n, r)) return n[r];
2634
+ }, Yi = (e, t, n) => {
2635
+ let r = Ji(e, n);
2636
+ return r === void 0 ? Ji(t, n) : r;
2638
2637
  }, Xi = (e, t, n) => {
2639
- let r = Yi(e, n);
2640
- return r === void 0 ? Yi(t, n) : r;
2641
- }, Zi = (e, t, n) => {
2642
- for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? Z(e[r]) || e[r] instanceof String || Z(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : Zi(e[r], t[r], n) : e[r] = t[r]);
2638
+ for (let r in t) r !== "__proto__" && r !== "constructor" && (r in e ? Z(e[r]) || e[r] instanceof String || Z(t[r]) || t[r] instanceof String ? n && (e[r] = t[r]) : Xi(e[r], t[r], n) : e[r] = t[r]);
2643
2639
  return e;
2644
- }, Qi = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), $i = {
2640
+ }, Zi = (e) => e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"), Qi = {
2645
2641
  "&": "&amp;",
2646
2642
  "<": "&lt;",
2647
2643
  ">": "&gt;",
2648
2644
  "\"": "&quot;",
2649
2645
  "'": "&#39;",
2650
2646
  "/": "&#x2F;"
2651
- }, ea = (e) => Z(e) ? e.replace(/[&<>"'\/]/g, (e) => $i[e]) : e, ta = class {
2647
+ }, $i = (e) => Z(e) ? e.replace(/[&<>"'\/]/g, (e) => Qi[e]) : e, ea = class {
2652
2648
  constructor(e) {
2653
2649
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
2654
2650
  }
@@ -2658,23 +2654,23 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
2658
2654
  let n = new RegExp(e);
2659
2655
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
2660
2656
  }
2661
- }, na = [
2657
+ }, ta = [
2662
2658
  " ",
2663
2659
  ",",
2664
2660
  "?",
2665
2661
  "!",
2666
2662
  ";"
2667
- ], ra = new ta(20), ia = (e, t, n) => {
2663
+ ], na = new ea(20), ra = (e, t, n) => {
2668
2664
  t ||= "", n ||= "";
2669
- let r = na.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
2665
+ let r = ta.filter((e) => t.indexOf(e) < 0 && n.indexOf(e) < 0);
2670
2666
  if (r.length === 0) return !0;
2671
- let i = ra.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
2667
+ let i = na.getRegExp(`(${r.map((e) => e === "?" ? "\\?" : e).join("|")})`), a = !i.test(e);
2672
2668
  if (!a) {
2673
2669
  let t = e.indexOf(n);
2674
2670
  t > 0 && !i.test(e.substring(0, t)) && (a = !0);
2675
2671
  }
2676
2672
  return a;
2677
- }, aa = (e, t, n = ".") => {
2673
+ }, ia = (e, t, n = ".") => {
2678
2674
  if (!e) return;
2679
2675
  if (e[t]) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
2680
2676
  let r = t.split(n), i = e;
@@ -2693,7 +2689,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
2693
2689
  i = t;
2694
2690
  }
2695
2691
  return i;
2696
- }, oa = (e) => e?.replace(/_/g, "-"), sa = {
2692
+ }, aa = (e) => e?.replace(/_/g, "-"), oa = {
2697
2693
  type: "logger",
2698
2694
  log(e) {
2699
2695
  this.output("log", e);
@@ -2712,7 +2708,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
2712
2708
  this.init(e, t);
2713
2709
  }
2714
2710
  init(e, t = {}) {
2715
- this.prefix = t.prefix || "i18next:", this.logger = e || sa, this.options = t, this.debug = t.debug;
2711
+ this.prefix = t.prefix || "i18next:", this.logger = e || oa, this.options = t, this.debug = t.debug;
2716
2712
  }
2717
2713
  log(...e) {
2718
2714
  return this.forward(e, "log", "", !0);
@@ -2738,7 +2734,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
2738
2734
  clone(t) {
2739
2735
  return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
2740
2736
  }
2741
- }(), ca = class {
2737
+ }(), sa = class {
2742
2738
  constructor() {
2743
2739
  this.observers = {};
2744
2740
  }
@@ -2765,7 +2761,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
2765
2761
  for (let i = 0; i < r; i++) n.apply(n, [e, ...t]);
2766
2762
  });
2767
2763
  }
2768
- }, la = class extends ca {
2764
+ }, ca = class extends sa {
2769
2765
  constructor(e, t = {
2770
2766
  ns: ["translation"],
2771
2767
  defaultNS: "translation"
@@ -2782,12 +2778,12 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
2782
2778
  getResource(e, t, n, r = {}) {
2783
2779
  let i = r.keySeparator === void 0 ? this.options.keySeparator : r.keySeparator, a = r.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r.ignoreJSONStructure, o;
2784
2780
  e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : Z(n) && i ? o.push(...n.split(i)) : o.push(n)));
2785
- let s = Yi(this.data, o);
2786
- return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !Z(n) ? s : aa(this.data?.[e]?.[t], n, i);
2781
+ let s = Ji(this.data, o);
2782
+ return !s && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), s || !a || !Z(n) ? s : ia(this.data?.[e]?.[t], n, i);
2787
2783
  }
2788
2784
  addResource(e, t, n, r, i = { silent: !1 }) {
2789
2785
  let a = i.keySeparator === void 0 ? this.options.keySeparator : i.keySeparator, o = [e, t];
2790
- n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), qi(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
2786
+ n && (o = o.concat(a ? n.split(a) : n)), e.indexOf(".") > -1 && (o = e.split("."), r = t, t = o[1]), this.addNamespaces(t), Ki(this.data, o, r), i.silent || this.emit("added", e, t, n, r);
2791
2787
  }
2792
2788
  addResources(e, t, n, r = { silent: !1 }) {
2793
2789
  for (let r in n) (Z(n[r]) || Array.isArray(n[r])) && this.addResource(e, t, r, n[r], { silent: !0 });
@@ -2799,11 +2795,11 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
2799
2795
  }) {
2800
2796
  let o = [e, t];
2801
2797
  e.indexOf(".") > -1 && (o = e.split("."), r = n, n = t, t = o[1]), this.addNamespaces(t);
2802
- let s = Yi(this.data, o) || {};
2803
- a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Zi(s, n, i) : s = {
2798
+ let s = Ji(this.data, o) || {};
2799
+ a.skipCopy || (n = JSON.parse(JSON.stringify(n))), r ? Xi(s, n, i) : s = {
2804
2800
  ...s,
2805
2801
  ...n
2806
- }, qi(this.data, o, s), a.silent || this.emit("added", e, t, n);
2802
+ }, Ki(this.data, o, s), a.silent || this.emit("added", e, t, n);
2807
2803
  }
2808
2804
  removeResourceBundle(e, t) {
2809
2805
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -2824,7 +2820,7 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
2824
2820
  toJSON() {
2825
2821
  return this.data;
2826
2822
  }
2827
- }, ua = {
2823
+ }, la = {
2828
2824
  processors: {},
2829
2825
  addPostProcessor(e) {
2830
2826
  this.processors[e.name] = e;
@@ -2834,22 +2830,22 @@ var Ni = /<\/?(?:br|p|div|li|h[1-6]|blockquote|pre|tr|td|th)\b[^>]*>/gi, Pi = /<
2834
2830
  t = this.processors[e]?.process(t, n, r, i) ?? t;
2835
2831
  }), t;
2836
2832
  }
2837
- }, da = Symbol("i18next/PATH_KEY");
2838
- function fa() {
2833
+ }, ua = Symbol("i18next/PATH_KEY");
2834
+ function da() {
2839
2835
  let e = [], t = Object.create(null), n;
2840
- return t.get = (r, i) => (n?.revoke?.(), i === da ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2836
+ return t.get = (r, i) => (n?.revoke?.(), i === ua ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2841
2837
  }
2842
- function pa(e, t) {
2843
- let { [da]: n } = e(fa()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
2838
+ function fa(e, t) {
2839
+ let { [ua]: n } = e(da()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":";
2844
2840
  if (n.length > 1 && i) {
2845
2841
  let e = t?.ns, a = Array.isArray(e) ? e : null;
2846
2842
  if (a && a.length > 1 && a.slice(1).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
2847
2843
  }
2848
2844
  return n.join(r);
2849
2845
  }
2850
- var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number", ga = class e extends ca {
2846
+ var pa = {}, ma = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number", ha = class e extends sa {
2851
2847
  constructor(e, t = {}) {
2852
- super(), Hi([
2848
+ super(), Vi([
2853
2849
  "resourceStore",
2854
2850
  "languageUtils",
2855
2851
  "pluralResolver",
@@ -2867,13 +2863,13 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2867
2863
  if (e == null) return !1;
2868
2864
  let r = this.resolve(e, n);
2869
2865
  if (r?.res === void 0) return !1;
2870
- let i = ha(r.res);
2866
+ let i = ma(r.res);
2871
2867
  return !(n.returnObjects === !1 && i);
2872
2868
  }
2873
2869
  extractFromKey(e, t) {
2874
2870
  let n = t.nsSeparator === void 0 ? this.options.nsSeparator : t.nsSeparator;
2875
2871
  n === void 0 && (n = ":");
2876
- 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 && !ia(e, n, r);
2872
+ 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 && !ra(e, n, r);
2877
2873
  if (a && !o) {
2878
2874
  let t = e.match(this.interpolator.nestingRegexp);
2879
2875
  if (t && t.length > 0) return {
@@ -2891,10 +2887,10 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2891
2887
  translate(t, n, r) {
2892
2888
  let i = typeof n == "object" ? { ...n } : n;
2893
2889
  if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
2894
- typeof t == "function" && (t = pa(t, {
2890
+ typeof t == "function" && (t = fa(t, {
2895
2891
  ...this.options,
2896
2892
  ...i
2897
- })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? pa(e, {
2893
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? fa(e, {
2898
2894
  ...this.options,
2899
2895
  ...i
2900
2896
  }) : String(e));
@@ -2922,7 +2918,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2922
2918
  "[object RegExp]"
2923
2919
  ], _ = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, v = !this.i18nFormat || this.i18nFormat.handleAsObject, y = i.count !== void 0 && !Z(i.count), b = e.hasDefaultValue(i), te = y ? this.pluralResolver.getSuffix(d, i.count, i) : "", ne = i.ordinal && y ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", re = y && !i.ordinal && i.count === 0, x = re && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${te}`] || i[`defaultValue${ne}`] || i.defaultValue, S = m;
2924
2920
  v && !m && b && (S = x);
2925
- let ie = ha(S), ae = Object.prototype.toString.apply(S);
2921
+ let ie = ma(S), ae = Object.prototype.toString.apply(S);
2926
2922
  if (v && S && ie && ee.indexOf(ae) < 0 && !(Z(_) && Array.isArray(S))) {
2927
2923
  if (!i.returnObjects && !this.options.returnObjects) {
2928
2924
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
@@ -2938,7 +2934,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
2938
2934
  let r = `${n}${o}${e}`;
2939
2935
  b && !m ? t[e] = this.translate(r, {
2940
2936
  ...i,
2941
- defaultValue: ha(x) ? x[e] : void 0,
2937
+ defaultValue: ma(x) ? x[e] : void 0,
2942
2938
  joinArrays: !1,
2943
2939
  ns: c
2944
2940
  }) : t[e] = this.translate(r, {
@@ -3009,7 +3005,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3009
3005
  !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();
3010
3006
  }
3011
3007
  let a = n.postProcess || this.options.postProcess, o = Z(a) ? [a] : a;
3012
- return e != null && o?.length && n.applyPostProcessor !== !1 && (e = ua.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
3008
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = la.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
3013
3009
  i18nResolved: {
3014
3010
  ...r,
3015
3011
  usedParams: this.getUsedParamsDetails(n)
@@ -3019,7 +3015,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3019
3015
  }
3020
3016
  resolve(e, t = {}) {
3021
3017
  let n, r, i, a, o;
3022
- return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? pa(e, {
3018
+ return Z(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? fa(e, {
3023
3019
  ...this.options,
3024
3020
  ...t
3025
3021
  }) : e)), e.forEach((e) => {
@@ -3030,7 +3026,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3030
3026
  this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
3031
3027
  let u = t.count !== void 0 && !Z(t.count), d = u && !t.ordinal && t.count === 0, f = t.context !== void 0 && (Z(t.context) || typeof t.context == "number") && t.context !== "", p = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
3032
3028
  l.forEach((e) => {
3033
- this.isValidLookup(n) || (o = e, !ma[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (ma[`${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) => {
3029
+ this.isValidLookup(n) || (o = e, !pa[`${p[0]}-${e}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (pa[`${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) => {
3034
3030
  if (this.isValidLookup(n)) return;
3035
3031
  a = r;
3036
3032
  let o = [c];
@@ -3093,17 +3089,17 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3093
3089
  for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.substring(0, 12) === "defaultValue" && e[t] !== void 0) return !0;
3094
3090
  return !1;
3095
3091
  }
3096
- }, _a = class {
3092
+ }, ga = class {
3097
3093
  constructor(e) {
3098
3094
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = Q.create("languageUtils");
3099
3095
  }
3100
3096
  getScriptPartFromCode(e) {
3101
- if (e = oa(e), !e || e.indexOf("-") < 0) return null;
3097
+ if (e = aa(e), !e || e.indexOf("-") < 0) return null;
3102
3098
  let t = e.split("-");
3103
3099
  return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
3104
3100
  }
3105
3101
  getLanguagePartFromCode(e) {
3106
- if (e = oa(e), !e || e.indexOf("-") < 0) return e;
3102
+ if (e = aa(e), !e || e.indexOf("-") < 0) return e;
3107
3103
  let t = e.split("-");
3108
3104
  return this.formatLanguageCode(t[0]);
3109
3105
  }
@@ -3153,17 +3149,17 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3153
3149
  r.indexOf(e) < 0 && i(this.formatLanguageCode(e));
3154
3150
  }), r;
3155
3151
  }
3156
- }, va = {
3152
+ }, _a = {
3157
3153
  zero: 0,
3158
3154
  one: 1,
3159
3155
  two: 2,
3160
3156
  few: 3,
3161
3157
  many: 4,
3162
3158
  other: 5
3163
- }, ya = {
3159
+ }, va = {
3164
3160
  select: (e) => e === 1 ? "one" : "other",
3165
3161
  resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
3166
- }, ba = class {
3162
+ }, ya = class {
3167
3163
  constructor(e, t = {}) {
3168
3164
  this.languageUtils = e, this.options = t, this.logger = Q.create("pluralResolver"), this.pluralRulesCache = {};
3169
3165
  }
@@ -3171,7 +3167,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3171
3167
  this.pluralRulesCache = {};
3172
3168
  }
3173
3169
  getRule(e, t = {}) {
3174
- let n = oa(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
3170
+ let n = aa(e === "dev" ? "en" : e), r = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
3175
3171
  cleanedCode: n,
3176
3172
  type: r
3177
3173
  });
@@ -3180,8 +3176,8 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3180
3176
  try {
3181
3177
  a = new Intl.PluralRules(n, { type: r });
3182
3178
  } catch {
3183
- if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), ya;
3184
- if (!e.match(/-|_/)) return ya;
3179
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), va;
3180
+ if (!e.match(/-|_/)) return va;
3185
3181
  let n = this.languageUtils.getLanguagePartFromCode(e);
3186
3182
  a = this.getRule(n, t);
3187
3183
  }
@@ -3196,23 +3192,23 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3196
3192
  }
3197
3193
  getSuffixes(e, t = {}) {
3198
3194
  let n = this.getRule(e, t);
3199
- return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => va[e] - va[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
3195
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => _a[e] - _a[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
3200
3196
  }
3201
3197
  getSuffix(e, t, n = {}) {
3202
3198
  let r = this.getRule(e, n);
3203
3199
  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));
3204
3200
  }
3205
- }, xa = (e, t, n, r = ".", i = !0) => {
3206
- let a = Xi(e, t, n);
3207
- return !a && i && Z(n) && (a = aa(e, n, r), a === void 0 && (a = aa(t, n, r))), a;
3208
- }, Sa = (e) => e.replace(/\$/g, "$$$$"), Ca = class {
3201
+ }, ba = (e, t, n, r = ".", i = !0) => {
3202
+ let a = Yi(e, t, n);
3203
+ return !a && i && Z(n) && (a = ia(e, n, r), a === void 0 && (a = ia(t, n, r))), a;
3204
+ }, xa = (e) => e.replace(/\$/g, "$$$$"), Sa = class {
3209
3205
  constructor(e = {}) {
3210
3206
  this.logger = Q.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
3211
3207
  }
3212
3208
  init(e = {}) {
3213
3209
  e.interpolation ||= { escapeValue: !0 };
3214
3210
  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: ee } = e.interpolation;
3215
- this.escape = t === void 0 ? ea : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? Qi(i) : a || "{{", this.suffix = o ? Qi(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? Qi(d) : f || Qi("$t("), this.nestingSuffix = p ? Qi(p) : m || Qi(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = ee !== void 0 && ee, this.resetRegExp();
3211
+ this.escape = t === void 0 ? $i : t, this.escapeValue = n === void 0 || n, this.useRawValueToEscape = r !== void 0 && r, this.prefix = i ? Zi(i) : a || "{{", this.suffix = o ? Zi(o) : s || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = d ? Zi(d) : f || Zi("$t("), this.nestingSuffix = p ? Zi(p) : m || Zi(")"), this.nestingOptionsSeparator = h || ",", this.maxReplaces = g || 1e3, this.alwaysFormat = ee !== void 0 && ee, this.resetRegExp();
3216
3212
  }
3217
3213
  reset() {
3218
3214
  this.options && this.init(this.options);
@@ -3224,7 +3220,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3224
3220
  interpolate(e, t, n, r) {
3225
3221
  let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
3226
3222
  if (e.indexOf(this.formatSeparator) < 0) {
3227
- let i = xa(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
3223
+ let i = ba(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
3228
3224
  return this.alwaysFormat ? this.format(i, void 0, n, {
3229
3225
  ...r,
3230
3226
  ...t,
@@ -3232,7 +3228,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3232
3228
  }) : i;
3233
3229
  }
3234
3230
  let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
3235
- return this.format(xa(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
3231
+ return this.format(ba(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
3236
3232
  ...r,
3237
3233
  ...t,
3238
3234
  interpolationkey: a
@@ -3242,10 +3238,10 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3242
3238
  let l = r?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = r?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r.interpolation.skipOnVariables;
3243
3239
  return [{
3244
3240
  regex: this.regexpUnescape,
3245
- safeValue: (e) => Sa(e)
3241
+ safeValue: (e) => xa(e)
3246
3242
  }, {
3247
3243
  regex: this.regexp,
3248
- safeValue: (e) => this.escapeValue ? Sa(this.escape(e)) : Sa(e)
3244
+ safeValue: (e) => this.escapeValue ? xa(this.escape(e)) : xa(e)
3249
3245
  }].forEach((t) => {
3250
3246
  for (o = 0; i = t.regex.exec(e);) {
3251
3247
  let n = i[1].trim();
@@ -3257,7 +3253,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3257
3253
  a = i[0];
3258
3254
  continue;
3259
3255
  } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
3260
- else !Z(a) && !this.useRawValueToEscape && (a = Vi(a));
3256
+ else !Z(a) && !this.useRawValueToEscape && (a = Bi(a));
3261
3257
  let s = t.safeValue(a);
3262
3258
  if (e = e.replace(i[0], s), u ? (t.regex.lastIndex += a.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
3263
3259
  }
@@ -3267,7 +3263,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3267
3263
  let r, i, a, o = (e, t) => {
3268
3264
  let n = this.nestingOptionsSeparator;
3269
3265
  if (e.indexOf(n) < 0) return e;
3270
- let r = e.split(RegExp(`${Qi(n)}[ ]*{`)), i = `{${r[1]}`;
3266
+ let r = e.split(RegExp(`${Zi(n)}[ ]*{`)), i = `{${r[1]}`;
3271
3267
  e = r[0], i = this.interpolate(i, a);
3272
3268
  let o = i.match(/'/g), s = i.match(/"/g);
3273
3269
  ((o?.length ?? 0) % 2 == 0 && !s || (s?.length ?? 0) % 2 != 0) && (i = i.replace(/'/g, "\""));
@@ -3286,14 +3282,14 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3286
3282
  a = { ...n }, a = a.replace && !Z(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
3287
3283
  let c = /{.*}/.test(r[1]) ? r[1].lastIndexOf("}") + 1 : r[1].indexOf(this.formatSeparator);
3288
3284
  if (c !== -1 && (s = r[1].slice(c).split(this.formatSeparator).map((e) => e.trim()).filter(Boolean), r[1] = r[1].slice(0, c)), i = t(o.call(this, r[1].trim(), a), a), i && r[0] === e && !Z(i)) return i;
3289
- Z(i) || (i = Vi(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
3285
+ Z(i) || (i = Bi(i)), i ||= (this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`), ""), s.length && (i = s.reduce((e, t) => this.format(e, t, n.lng, {
3290
3286
  ...n,
3291
3287
  interpolationkey: r[1].trim()
3292
3288
  }), i.trim())), e = e.replace(r[0], i), this.regexp.lastIndex = 0;
3293
3289
  }
3294
3290
  return e;
3295
3291
  }
3296
- }, wa = (e) => {
3292
+ }, Ca = (e) => {
3297
3293
  let t = e.toLowerCase().trim(), n = {};
3298
3294
  if (e.indexOf("(") > -1) {
3299
3295
  let r = e.split("(");
@@ -3310,7 +3306,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3310
3306
  formatName: t,
3311
3307
  formatOptions: n
3312
3308
  };
3313
- }, Ta = (e) => {
3309
+ }, wa = (e) => {
3314
3310
  let t = {};
3315
3311
  return (n, r, i) => {
3316
3312
  let a = i;
@@ -3319,15 +3315,15 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3319
3315
  [i.interpolationkey]: void 0
3320
3316
  });
3321
3317
  let o = r + JSON.stringify(a), s = t[o];
3322
- return s || (s = e(oa(r), i), t[o] = s), s(n);
3318
+ return s || (s = e(aa(r), i), t[o] = s), s(n);
3323
3319
  };
3324
- }, Ea = (e) => (t, n, r) => e(oa(n), r)(t), Da = class {
3320
+ }, Ta = (e) => (t, n, r) => e(aa(n), r)(t), Ea = class {
3325
3321
  constructor(e = {}) {
3326
3322
  this.logger = Q.create("formatter"), this.options = e, this.init(e);
3327
3323
  }
3328
3324
  init(e, t = { interpolation: {} }) {
3329
3325
  this.formatSeparator = t.interpolation.formatSeparator || ",";
3330
- let n = t.cacheInBuiltFormats ? Ta : Ea;
3326
+ let n = t.cacheInBuiltFormats ? wa : Ta;
3331
3327
  this.formats = {
3332
3328
  number: n((e, t) => {
3333
3329
  let n = new Intl.NumberFormat(e, { ...t });
@@ -3358,7 +3354,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3358
3354
  this.formats[e.toLowerCase().trim()] = t;
3359
3355
  }
3360
3356
  addCached(e, t) {
3361
- this.formats[e.toLowerCase().trim()] = Ta(t);
3357
+ this.formats[e.toLowerCase().trim()] = wa(t);
3362
3358
  }
3363
3359
  format(e, t, n, r = {}) {
3364
3360
  let i = t.split(this.formatSeparator);
@@ -3367,7 +3363,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3367
3363
  i[0] = [i[0], ...i.splice(1, e)].join(this.formatSeparator);
3368
3364
  }
3369
3365
  return i.reduce((e, t) => {
3370
- let { formatName: i, formatOptions: a } = wa(t);
3366
+ let { formatName: i, formatOptions: a } = Ca(t);
3371
3367
  if (this.formats[i]) {
3372
3368
  let t = e;
3373
3369
  try {
@@ -3385,9 +3381,9 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3385
3381
  return e;
3386
3382
  }, e);
3387
3383
  }
3388
- }, Oa = (e, t) => {
3384
+ }, Da = (e, t) => {
3389
3385
  e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
3390
- }, ka = class extends ca {
3386
+ }, Oa = class extends sa {
3391
3387
  constructor(e, t, n, r = {}) {
3392
3388
  super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = Q.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);
3393
3389
  }
@@ -3417,7 +3413,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3417
3413
  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);
3418
3414
  let o = {};
3419
3415
  this.queue.forEach((n) => {
3420
- Ji(n.loaded, [i], a), Oa(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
3416
+ qi(n.loaded, [i], a), Da(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
3421
3417
  o[e] || (o[e] = {});
3422
3418
  let t = n.loaded[e];
3423
3419
  t.length && t.forEach((t) => {
@@ -3507,7 +3503,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3507
3503
  !e || !e[0] || this.store.addResource(e[0], t, n, r);
3508
3504
  }
3509
3505
  }
3510
- }, Aa = () => ({
3506
+ }, ka = () => ({
3511
3507
  debug: !1,
3512
3508
  initAsync: !0,
3513
3509
  ns: ["translation"],
@@ -3564,15 +3560,15 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3564
3560
  skipOnVariables: !0
3565
3561
  },
3566
3562
  cacheInBuiltFormats: !0
3567
- }), ja = (e) => (Z(e.ns) && (e.ns = [e.ns]), Z(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Z(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), Ma = () => {}, Na = (e) => {
3563
+ }), Aa = (e) => (Z(e.ns) && (e.ns = [e.ns]), Z(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Z(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), ja = () => {}, Ma = (e) => {
3568
3564
  Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
3569
3565
  typeof e[t] == "function" && (e[t] = e[t].bind(e));
3570
3566
  });
3571
- }, Pa = "__i18next_supportNoticeShown", Fa = () => !!(typeof globalThis < "u" && globalThis[Pa] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), Ia = () => {
3572
- typeof globalThis < "u" && (globalThis[Pa] = !0);
3573
- }, La = (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)), $ = class e extends ca {
3567
+ }, Na = "__i18next_supportNoticeShown", Pa = () => !!(typeof globalThis < "u" && globalThis[Na] || typeof process < "u" && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE || typeof process < "u" && process.env), Fa = () => {
3568
+ typeof globalThis < "u" && (globalThis[Na] = !0);
3569
+ }, Ia = (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)), $ = class e extends sa {
3574
3570
  constructor(e = {}, t) {
3575
- if (super(), this.options = ja(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, Na(this), t && !this.isInitialized && !e.isClone) {
3571
+ if (super(), this.options = Aa(e), this.services = {}, this.logger = Q, this.modules = { external: [] }, Ma(this), t && !this.isInitialized && !e.isClone) {
3576
3572
  if (!this.options.initAsync) return this.init(e, t), this;
3577
3573
  setTimeout(() => {
3578
3574
  this.init(e, t);
@@ -3581,35 +3577,35 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3581
3577
  }
3582
3578
  init(e = {}, t) {
3583
3579
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (Z(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
3584
- let n = Aa();
3580
+ let n = ka();
3585
3581
  this.options = {
3586
3582
  ...n,
3587
3583
  ...this.options,
3588
- ...ja(e)
3584
+ ...Aa(e)
3589
3585
  }, this.options.interpolation = {
3590
3586
  ...n.interpolation,
3591
3587
  ...this.options.interpolation
3592
- }, 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 && !La(this) && !Fa() && (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 💙"), Ia());
3588
+ }, 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 && !Ia(this) && !Pa() && (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 💙"), Fa());
3593
3589
  let r = (e) => e ? typeof e == "function" ? new e() : e : null;
3594
3590
  if (!this.options.isClone) {
3595
3591
  this.modules.logger ? Q.init(r(this.modules.logger), this.options) : Q.init(null, this.options);
3596
3592
  let e;
3597
- e = this.modules.formatter ? this.modules.formatter : Da;
3598
- let t = new _a(this.options);
3599
- this.store = new la(this.options.resources, this.options);
3593
+ e = this.modules.formatter ? this.modules.formatter : Ea;
3594
+ let t = new ga(this.options);
3595
+ this.store = new ca(this.options.resources, this.options);
3600
3596
  let i = this.services;
3601
- i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new ba(t, {
3597
+ i.logger = Q, i.resourceStore = this.store, i.languageUtils = t, i.pluralResolver = new ya(t, {
3602
3598
  prepend: this.options.pluralSeparator,
3603
3599
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
3604
- }), 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 Ca(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new ka(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
3600
+ }), 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 Sa(this.options), i.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i.backendConnector = new Oa(r(this.modules.backend), i.resourceStore, i, this.options), i.backendConnector.on("*", (e, ...t) => {
3605
3601
  this.emit(e, ...t);
3606
- }), 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 ga(this.services, this.options), this.translator.on("*", (e, ...t) => {
3602
+ }), 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 ha(this.services, this.options), this.translator.on("*", (e, ...t) => {
3607
3603
  this.emit(e, ...t);
3608
3604
  }), this.modules.external.forEach((e) => {
3609
3605
  e.init && e.init(this);
3610
3606
  });
3611
3607
  }
3612
- if (this.format = this.options.interpolation.format, t ||= Ma, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3608
+ if (this.format = this.options.interpolation.format, t ||= ja, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
3613
3609
  let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
3614
3610
  e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
3615
3611
  }
@@ -3628,7 +3624,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3628
3624
  ].forEach((e) => {
3629
3625
  this[e] = (...t) => (this.store[e](...t), this);
3630
3626
  });
3631
- let i = Bi(), a = () => {
3627
+ let i = zi(), a = () => {
3632
3628
  let e = (e, n) => {
3633
3629
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(n), t(e, n);
3634
3630
  };
@@ -3637,7 +3633,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3637
3633
  };
3638
3634
  return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
3639
3635
  }
3640
- loadResources(e, t = Ma) {
3636
+ loadResources(e, t = ja) {
3641
3637
  let n = t, r = Z(e) ? e : this.language;
3642
3638
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
3643
3639
  if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
@@ -3652,15 +3648,15 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3652
3648
  } else n(null);
3653
3649
  }
3654
3650
  reloadResources(e, t, n) {
3655
- let r = Bi();
3656
- 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 ||= Ma, this.services.backendConnector.reload(e, t, (e) => {
3651
+ let r = zi();
3652
+ 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 ||= ja, this.services.backendConnector.reload(e, t, (e) => {
3657
3653
  r.resolve(), n(e);
3658
3654
  }), r;
3659
3655
  }
3660
3656
  use(e) {
3661
3657
  if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
3662
3658
  if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
3663
- 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" && ua.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3659
+ 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" && la.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
3664
3660
  }
3665
3661
  setResolvedLanguage(e) {
3666
3662
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -3676,7 +3672,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3676
3672
  }
3677
3673
  changeLanguage(e, t) {
3678
3674
  this.isLanguageChangingTo = e;
3679
- let n = Bi();
3675
+ let n = zi();
3680
3676
  this.emit("languageChanging", e);
3681
3677
  let r = (e) => {
3682
3678
  this.language = e, this.languages = this.services.languageUtils.toResolveHierarchy(e), this.resolvedLanguage = void 0, this.setResolvedLanguage(e);
@@ -3699,9 +3695,9 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3699
3695
  ...this.options,
3700
3696
  ...a
3701
3697
  };
3702
- typeof a.keyPrefix == "function" && (a.keyPrefix = pa(a.keyPrefix, o));
3698
+ typeof a.keyPrefix == "function" && (a.keyPrefix = fa(a.keyPrefix, o));
3703
3699
  let s = this.options.keySeparator || ".", c;
3704
- return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = pa(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = pa(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
3700
+ return a.keyPrefix && Array.isArray(e) ? c = e.map((e) => (typeof e == "function" && (e = fa(e, o)), `${a.keyPrefix}${s}${e}`)) : (typeof e == "function" && (e = fa(e, o)), c = a.keyPrefix ? `${a.keyPrefix}${s}${e}` : e), this.t(c, a);
3705
3701
  };
3706
3702
  return Z(e) ? r.lng = e : r.lngs = e, r.ns = t, r.keyPrefix = n, r;
3707
3703
  }
@@ -3730,7 +3726,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3730
3726
  return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(n, e) && (!r || a(i, e)));
3731
3727
  }
3732
3728
  loadNamespaces(e, t) {
3733
- let n = Bi();
3729
+ let n = zi();
3734
3730
  return this.options.ns ? (Z(e) && (e = [e]), e.forEach((e) => {
3735
3731
  this.options.ns.indexOf(e) < 0 && this.options.ns.push(e);
3736
3732
  }), this.loadResources((e) => {
@@ -3738,7 +3734,7 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3738
3734
  }), n) : (t && t(), Promise.resolve());
3739
3735
  }
3740
3736
  loadLanguages(e, t) {
3741
- let n = Bi();
3737
+ let n = zi();
3742
3738
  Z(e) && (e = [e]);
3743
3739
  let r = this.options.preload || [], i = e.filter((e) => r.indexOf(e) < 0 && this.services.languageUtils.isSupportedCode(e));
3744
3740
  return i.length ? (this.options.preload = r.concat(i), this.loadResources((e) => {
@@ -3754,14 +3750,14 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3754
3750
  if (e && e.direction) return e.direction;
3755
3751
  }
3756
3752
  } catch {}
3757
- 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 _a(Aa());
3753
+ 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 ga(ka());
3758
3754
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
3759
3755
  }
3760
3756
  static createInstance(t = {}, n) {
3761
3757
  let r = new e(t, n);
3762
3758
  return r.createInstance = e.createInstance, r;
3763
3759
  }
3764
- cloneInstance(t = {}, n = Ma) {
3760
+ cloneInstance(t = {}, n = ja) {
3765
3761
  let r = t.forkResourceStore;
3766
3762
  r && delete t.forkResourceStore;
3767
3763
  let i = {
@@ -3775,18 +3771,18 @@ var ma = {}, ha = (e) => !Z(e) && typeof e != "boolean" && typeof e != "number",
3775
3771
  "language"
3776
3772
  ].forEach((e) => {
3777
3773
  a[e] = this[e];
3778
- }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new la(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) {
3774
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new ca(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) {
3779
3775
  let e = {
3780
- ...Aa().interpolation,
3776
+ ...ka().interpolation,
3781
3777
  ...this.options.interpolation,
3782
3778
  ...t.interpolation
3783
3779
  }, n = {
3784
3780
  ...i,
3785
3781
  interpolation: e
3786
3782
  };
3787
- a.services.interpolator = new Ca(n);
3783
+ a.services.interpolator = new Sa(n);
3788
3784
  }
3789
- return a.translator = new ga(a.services, i), a.translator.on("*", (e, ...t) => {
3785
+ return a.translator = new ha(a.services, i), a.translator.on("*", (e, ...t) => {
3790
3786
  a.emit(e, ...t);
3791
3787
  }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
3792
3788
  }
@@ -3807,13 +3803,13 @@ $.createInstance, $.dir, $.init, $.loadResources, $.reloadResources, $.use, $.ch
3807
3803
  lng: "en",
3808
3804
  showSupportNotice: !1,
3809
3805
  resources: {
3810
- en: Ri,
3811
- es: zi
3806
+ en: Li,
3807
+ es: Ri
3812
3808
  }
3813
3809
  });
3814
3810
  //#endregion
3815
3811
  //#region src/i18n.ts
3816
- var { translator: Ra } = {
3812
+ var { translator: La } = {
3817
3813
  translator: {
3818
3814
  ...$,
3819
3815
  t: (e, t) => {
@@ -3845,23 +3841,23 @@ var { translator: Ra } = {
3845
3841
  label: "Spanish"
3846
3842
  }]
3847
3843
  };
3848
- function za(e, t) {
3849
- return Ra.t(`translation:simpleCloze:${e}`, { lng: t });
3844
+ function Ra(e, t) {
3845
+ return La.t(`translation:simpleCloze:${e}`, { lng: t });
3850
3846
  }
3851
3847
  //#endregion
3852
3848
  //#region src/print/Print.svelte
3853
- var Ba = /* @__PURE__ */ or("<div class=\"simple-cloze-print-teacher-instructions svelte-1fx5wwa\"></div>"), Va = /* @__PURE__ */ or("<div class=\"simple-cloze-print-prompt svelte-1fx5wwa\"></div>"), Ha = /* @__PURE__ */ or("<span class=\"simple-cloze-print-key-label svelte-1fx5wwa\"> </span> <span class=\"simple-cloze-print-blank simple-cloze-print-blank--key svelte-1fx5wwa\"> </span>", 1), Ua = /* @__PURE__ */ or("<span class=\"simple-cloze-print-blank svelte-1fx5wwa\" role=\"img\"></span>"), Wa = /* @__PURE__ */ or("<div class=\"simple-cloze-print svelte-1fx5wwa\"><!> <!> <div class=\"simple-cloze-print-response svelte-1fx5wwa\"><!></div></div>"), Ga = {
3849
+ var za = /* @__PURE__ */ or("<div class=\"simple-cloze-print-teacher-instructions svelte-1fx5wwa\"></div>"), Ba = /* @__PURE__ */ or("<div class=\"simple-cloze-print-prompt svelte-1fx5wwa\"></div>"), Va = /* @__PURE__ */ or("<span class=\"simple-cloze-print-key-label svelte-1fx5wwa\"> </span> <span class=\"simple-cloze-print-blank simple-cloze-print-blank--key svelte-1fx5wwa\"> </span>", 1), Ha = /* @__PURE__ */ or("<span class=\"simple-cloze-print-blank svelte-1fx5wwa\" role=\"img\"></span>"), Ua = /* @__PURE__ */ or("<div class=\"simple-cloze-print svelte-1fx5wwa\"><!> <!> <div class=\"simple-cloze-print-response svelte-1fx5wwa\"><!></div></div>"), Wa = {
3854
3850
  hash: "svelte-1fx5wwa",
3855
3851
  code: "\n /* Self-contained: print players ship no Tailwind or CSS reset. */.simple-cloze-print.svelte-1fx5wwa {padding:1rem;color:var(--pie-text, black);}.simple-cloze-print-teacher-instructions.svelte-1fx5wwa,\n .simple-cloze-print-prompt.svelte-1fx5wwa {margin-bottom:1rem;}.simple-cloze-print-teacher-instructions.svelte-1fx5wwa p,\n .simple-cloze-print-prompt.svelte-1fx5wwa p {margin:0.5em 0;}.simple-cloze-print-prompt.svelte-1fx5wwa strong {font-weight:600;}.simple-cloze-print-response.svelte-1fx5wwa {display:inline-flex;align-items:baseline;gap:0.5rem;}.simple-cloze-print-key-label.svelte-1fx5wwa {font-size:0.875rem;line-height:1.25rem;font-weight:600;}.simple-cloze-print-blank.svelte-1fx5wwa {display:inline-block;min-width:12rem;min-height:1.5rem;padding:0.5rem 0.75rem;border-bottom:2px solid var(--pie-text, black);}.simple-cloze-print-blank--key.svelte-1fx5wwa {min-width:6rem;font-weight:600;}\n\n @media print {.simple-cloze-print.svelte-1fx5wwa {padding:0;}\n }"
3856
3852
  };
3857
- function Ka(e, t) {
3858
- We(t, !0), wr(e, Ga);
3859
- let n = Ir(t, "model", 7, null), r = Ir(t, "options", 7, null), i = /* @__PURE__ */ lt(() => r()?.role === "instructor"), a = /* @__PURE__ */ lt(() => n()?.promptEnabled !== !1 && typeof n()?.prompt == "string" ? n().prompt : ""), o = /* @__PURE__ */ lt(() => Li(n()?.correctAnswer)), s = /* @__PURE__ */ lt(() => X(i) && !!X(o)), c = /* @__PURE__ */ lt(() => X(i) && n()?.teacherInstructionsEnabled !== !1 && n()?.teacherInstructions || ""), l = /* @__PURE__ */ M(null);
3853
+ function Ga(e, t) {
3854
+ We(t, !0), wr(e, Wa);
3855
+ let n = Ir(t, "model", 7, null), r = Ir(t, "options", 7, null), i = /* @__PURE__ */ lt(() => r()?.role === "instructor"), a = /* @__PURE__ */ lt(() => n()?.promptEnabled !== !1 && typeof n()?.prompt == "string" ? n().prompt : ""), o = /* @__PURE__ */ lt(() => Ii(n()?.correctAnswer)), s = /* @__PURE__ */ lt(() => X(i) && !!X(o)), c = /* @__PURE__ */ lt(() => X(i) && n()?.teacherInstructionsEnabled !== !1 && n()?.teacherInstructions || ""), l = /* @__PURE__ */ M(null);
3860
3856
  dn(() => {
3861
3857
  if (!X(l) || !X(a)) return;
3862
3858
  let e = (e) => console.warn("simple-cloze: MathJax render failed", e);
3863
3859
  try {
3864
- Promise.resolve(ki(X(l))).catch(e);
3860
+ Promise.resolve(Oi(X(l))).catch(e);
3865
3861
  } catch (t) {
3866
3862
  e(t);
3867
3863
  }
@@ -3879,41 +3875,41 @@ function Ka(e, t) {
3879
3875
  set options(e = null) {
3880
3876
  r(e), Et();
3881
3877
  }
3882
- }, d = Wa(), f = Zt(d), p = (e) => {
3883
- var t = Ba();
3878
+ }, d = Ua(), f = Zt(d), p = (e) => {
3879
+ var t = za();
3884
3880
  Cr(t, () => X(c), !0), Te(t), sr(e, t);
3885
3881
  };
3886
3882
  Sr(f, (e) => {
3887
3883
  X(c) && e(p);
3888
3884
  });
3889
3885
  var m = en(f, 2), h = (e) => {
3890
- var t = Va();
3886
+ var t = Ba();
3891
3887
  Cr(t, () => X(a), !0), Te(t), Nr(t, (e) => N(l, e), () => X(l)), sr(e, t);
3892
3888
  };
3893
3889
  Sr(m, (e) => {
3894
3890
  X(a) && e(h);
3895
3891
  });
3896
3892
  var g = en(m, 2), ee = Zt(g), _ = (e) => {
3897
- var t = Ha(), r = Qt(t), i = $t(r, !0), a = $t(en(r, 2), !0);
3893
+ var t = Va(), r = Qt(t), i = $t(r, !0), a = $t(en(r, 2), !0);
3898
3894
  vn((e) => {
3899
3895
  mr(i, e), mr(a, X(o));
3900
- }, [() => za("printCorrectAnswer", n()?.language)]), sr(e, t);
3896
+ }, [() => Ra("printCorrectAnswer", n()?.language)]), sr(e, t);
3901
3897
  }, v = (e) => {
3902
- var t = Ua();
3903
- vn((e) => Or(t, "aria-label", e), [() => za("printAnswerBlank", n()?.language)]), sr(e, t);
3898
+ var t = Ha();
3899
+ vn((e) => Or(t, "aria-label", e), [() => Ra("printAnswerBlank", n()?.language)]), sr(e, t);
3904
3900
  };
3905
3901
  return Sr(ee, (e) => {
3906
3902
  X(s) ? e(_) : e(v, -1);
3907
3903
  }), Te(g), Te(d), sr(e, d), Ge(u);
3908
3904
  }
3909
- Hr(Ka, {
3905
+ Hr(Ga, {
3910
3906
  model: { type: "Object" },
3911
3907
  options: { type: "Object" }
3912
3908
  }, [], []);
3913
3909
  //#endregion
3914
3910
  //#region src/print/index.ts
3915
- var qa = Ka.element;
3911
+ var Ka = Ga.element;
3916
3912
  //#endregion
3917
- export { qa as default };
3913
+ export { Ka as default };
3918
3914
 
3919
3915
  //# sourceMappingURL=print.js.map