@nemme/js-sdk 0.6.3 → 0.7.0

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.
@@ -1,5 +1,5 @@
1
1
  import * as b from "react";
2
- import $e, { createContext as we, useContext as kt, useMemo as ce, useRef as fe, useCallback as G, useState as St, useEffect as en, createElement as me, forwardRef as tn } from "react";
2
+ import $e, { createContext as we, useContext as kt, useMemo as ue, useRef as fe, useCallback as G, useState as St, useEffect as en, createElement as me, forwardRef as tn } from "react";
3
3
  import { createRoot as nn } from "react-dom/client";
4
4
  import { c as rn, h as qe } from "./httpClient-D2IO92uv.js";
5
5
  import { j as k } from "./jsx-runtime-jIxVPx5o.js";
@@ -13,7 +13,7 @@ const E = (t) => typeof t == "string", se = () => {
13
13
  t.forEach((r) => {
14
14
  e[r] && (n[r] = e[r]);
15
15
  });
16
- }, sn = /###/g, Ge = (t) => t && t.indexOf("###") > -1 ? t.replace(sn, ".") : t, Ke = (t) => !t || E(t), ue = (t, e, n) => {
16
+ }, sn = /###/g, Ge = (t) => t && t.indexOf("###") > -1 ? t.replace(sn, ".") : t, Ke = (t) => !t || E(t), ce = (t, e, n) => {
17
17
  const r = E(e) ? e.split(".") : e;
18
18
  let a = 0;
19
19
  for (; a < r.length - 1; ) {
@@ -29,26 +29,26 @@ const E = (t) => typeof t == "string", se = () => {
29
29
  const {
30
30
  obj: r,
31
31
  k: a
32
- } = ue(t, e, Object);
32
+ } = ce(t, e, Object);
33
33
  if (r !== void 0 || e.length === 1) {
34
34
  r[a] = n;
35
35
  return;
36
36
  }
37
- let s = e[e.length - 1], i = e.slice(0, e.length - 1), o = ue(t, i, Object);
37
+ let s = e[e.length - 1], i = e.slice(0, e.length - 1), o = ce(t, i, Object);
38
38
  for (; o.obj === void 0 && i.length; )
39
- s = `${i[i.length - 1]}.${s}`, i = i.slice(0, i.length - 1), o = ue(t, i, Object), o?.obj && typeof o.obj[`${o.k}.${s}`] < "u" && (o.obj = void 0);
39
+ s = `${i[i.length - 1]}.${s}`, i = i.slice(0, i.length - 1), o = ce(t, i, Object), o?.obj && typeof o.obj[`${o.k}.${s}`] < "u" && (o.obj = void 0);
40
40
  o.obj[`${o.k}.${s}`] = n;
41
41
  }, on = (t, e, n, r) => {
42
42
  const {
43
43
  obj: a,
44
44
  k: s
45
- } = ue(t, e, Object);
45
+ } = ce(t, e, Object);
46
46
  a[s] = a[s] || [], a[s].push(n);
47
47
  }, ye = (t, e) => {
48
48
  const {
49
49
  obj: n,
50
50
  k: r
51
- } = ue(t, e);
51
+ } = ce(t, e);
52
52
  if (n && Object.prototype.hasOwnProperty.call(n, r))
53
53
  return n[r];
54
54
  }, ln = (t, e, n) => {
@@ -59,7 +59,7 @@ const E = (t) => typeof t == "string", se = () => {
59
59
  r !== "__proto__" && r !== "constructor" && (r in t ? E(t[r]) || t[r] instanceof String || E(e[r]) || e[r] instanceof String ? n && (t[r] = e[r]) : Et(t[r], e[r], n) : t[r] = e[r]);
60
60
  return t;
61
61
  }, X = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
62
- var cn = {
62
+ var un = {
63
63
  "&": "&amp;",
64
64
  "<": "&lt;",
65
65
  ">": "&gt;",
@@ -67,7 +67,7 @@ var cn = {
67
67
  "'": "&#39;",
68
68
  "/": "&#x2F;"
69
69
  };
70
- const un = (t) => E(t) ? t.replace(/[&<>"'\/]/g, (e) => cn[e]) : t;
70
+ const cn = (t) => E(t) ? t.replace(/[&<>"'\/]/g, (e) => un[e]) : t;
71
71
  class dn {
72
72
  constructor(e) {
73
73
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
@@ -101,11 +101,11 @@ const pn = [" ", ",", "?", "!", ";"], gn = new dn(20), fn = (t, e, n) => {
101
101
  if (!a || typeof a != "object")
102
102
  return;
103
103
  let i, o = "";
104
- for (let c = s; c < r.length; ++c)
105
- if (c !== s && (o += n), o += r[c], i = a[o], i !== void 0) {
106
- if (["string", "number", "boolean"].indexOf(typeof i) > -1 && c < r.length - 1)
104
+ for (let u = s; u < r.length; ++u)
105
+ if (u !== s && (o += n), o += r[u], i = a[o], i !== void 0) {
106
+ if (["string", "number", "boolean"].indexOf(typeof i) > -1 && u < r.length - 1)
107
107
  continue;
108
- s += c - s + 1;
108
+ s += u - s + 1;
109
109
  break;
110
110
  }
111
111
  a = i;
@@ -207,8 +207,8 @@ class Xe extends ke {
207
207
  const s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, i = a.ignoreJSONStructure !== void 0 ? a.ignoreJSONStructure : this.options.ignoreJSONStructure;
208
208
  let o;
209
209
  e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, n], r && (Array.isArray(r) ? o.push(...r) : E(r) && s ? o.push(...r.split(s)) : o.push(r)));
210
- const c = ye(this.data, o);
211
- return !c && !n && !r && e.indexOf(".") > -1 && (e = o[0], n = o[1], r = o.slice(2).join(".")), c || !i || !E(r) ? c : De(this.data?.[e]?.[n], r, s);
210
+ const u = ye(this.data, o);
211
+ return !u && !n && !r && e.indexOf(".") > -1 && (e = o[0], n = o[1], r = o.slice(2).join(".")), u || !i || !E(r) ? u : De(this.data?.[e]?.[n], r, s);
212
212
  }
213
213
  addResource(e, n, r, a, s = {
214
214
  silent: !1
@@ -232,11 +232,11 @@ class Xe extends ke {
232
232
  }) {
233
233
  let o = [e, n];
234
234
  e.indexOf(".") > -1 && (o = e.split("."), a = r, r = n, n = o[1]), this.addNamespaces(n);
235
- let c = ye(this.data, o) || {};
236
- i.skipCopy || (r = JSON.parse(JSON.stringify(r))), a ? Et(c, r, s) : c = {
237
- ...c,
235
+ let u = ye(this.data, o) || {};
236
+ i.skipCopy || (r = JSON.parse(JSON.stringify(r))), a ? Et(u, r, s) : u = {
237
+ ...u,
238
238
  ...r
239
- }, Ye(this.data, o, c), i.silent || this.emit("added", e, n, r);
239
+ }, Ye(this.data, o, u), i.silent || this.emit("added", e, n, r);
240
240
  }
241
241
  removeResourceBundle(e, n) {
242
242
  this.hasResourceBundle(e, n) && delete this.data[e][n], this.removeNamespaces(n), this.emit("removed", e, n);
@@ -308,8 +308,8 @@ class xe extends ke {
308
308
  let s = n.ns || this.options.defaultNS || [];
309
309
  const i = r && e.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !fn(e, r, a);
310
310
  if (i && !o) {
311
- const c = e.match(this.interpolator.nestingRegexp);
312
- if (c && c.length > 0)
311
+ const u = e.match(this.interpolator.nestingRegexp);
312
+ if (u && u.length > 0)
313
313
  return {
314
314
  key: e,
315
315
  namespaces: E(s) ? [s] : s
@@ -335,30 +335,30 @@ class xe extends ke {
335
335
  })), Array.isArray(e) || (e = [String(e)]);
336
336
  const s = a.returnDetails !== void 0 ? a.returnDetails : this.options.returnDetails, i = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, {
337
337
  key: o,
338
- namespaces: c
339
- } = this.extractFromKey(e[e.length - 1], a), l = c[c.length - 1];
338
+ namespaces: u
339
+ } = this.extractFromKey(e[e.length - 1], a), l = u[u.length - 1];
340
340
  let p = a.nsSeparator !== void 0 ? a.nsSeparator : this.options.nsSeparator;
341
341
  p === void 0 && (p = ":");
342
- const u = a.lng || this.language, h = a.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
343
- if (u?.toLowerCase() === "cimode")
342
+ const c = a.lng || this.language, h = a.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
343
+ if (c?.toLowerCase() === "cimode")
344
344
  return h ? s ? {
345
345
  res: `${l}${p}${o}`,
346
346
  usedKey: o,
347
347
  exactUsedKey: o,
348
- usedLng: u,
348
+ usedLng: c,
349
349
  usedNS: l,
350
350
  usedParams: this.getUsedParamsDetails(a)
351
351
  } : `${l}${p}${o}` : s ? {
352
352
  res: o,
353
353
  usedKey: o,
354
354
  exactUsedKey: o,
355
- usedLng: u,
355
+ usedLng: c,
356
356
  usedNS: l,
357
357
  usedParams: this.getUsedParamsDetails(a)
358
358
  } : o;
359
359
  const x = this.resolve(e, a);
360
360
  let d = x?.res;
361
- const g = x?.usedKey || o, f = x?.exactUsedKey || o, v = ["[object Number]", "[object Function]", "[object RegExp]"], y = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, S = a.count !== void 0 && !E(a.count), A = xe.hasDefaultValue(a), O = S ? this.pluralResolver.getSuffix(u, a.count, a) : "", R = a.ordinal && S ? this.pluralResolver.getSuffix(u, a.count, {
361
+ const g = x?.usedKey || o, f = x?.exactUsedKey || o, v = ["[object Number]", "[object Function]", "[object RegExp]"], y = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, S = a.count !== void 0 && !E(a.count), A = xe.hasDefaultValue(a), O = S ? this.pluralResolver.getSuffix(c, a.count, a) : "", R = a.ordinal && S ? this.pluralResolver.getSuffix(c, a.count, {
362
362
  ordinal: !1
363
363
  }) : "", _ = S && !a.ordinal && a.count === 0, L = _ && a[`defaultValue${this.options.pluralSeparator}zero`] || a[`defaultValue${O}`] || a[`defaultValue${R}`] || a.defaultValue;
364
364
  let F = d;
@@ -369,7 +369,7 @@ class xe extends ke {
369
369
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
370
370
  const j = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, F, {
371
371
  ...a,
372
- ns: c
372
+ ns: u
373
373
  }) : `key '${o} (${this.language})' returned an object instead of string.`;
374
374
  return s ? (x.res = j, x.usedParams = this.getUsedParamsDetails(a), x) : j;
375
375
  }
@@ -382,11 +382,11 @@ class xe extends ke {
382
382
  ...a,
383
383
  defaultValue: Re(L) ? L[I] : void 0,
384
384
  joinArrays: !1,
385
- ns: c
385
+ ns: u
386
386
  }) : C[I] = this.translate(M, {
387
387
  ...a,
388
388
  joinArrays: !1,
389
- ns: c
389
+ ns: u
390
390
  }), C[I] === M && (C[I] = F[I]);
391
391
  }
392
392
  d = C;
@@ -398,7 +398,7 @@ class xe extends ke {
398
398
  !this.isValidLookup(d) && A && (j = !0, d = L), this.isValidLookup(d) || (C = !0, d = o);
399
399
  const I = (a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && C ? void 0 : d, M = A && L !== d && this.options.updateMissing;
400
400
  if (C || j || M) {
401
- if (this.logger.log(M ? "updateKey" : "missingKey", u, l, o, M ? L : d), i) {
401
+ if (this.logger.log(M ? "updateKey" : "missingKey", c, l, o, M ? L : d), i) {
402
402
  const P = this.resolve(o, {
403
403
  ...a,
404
404
  keySeparator: !1
@@ -442,21 +442,21 @@ class xe extends ke {
442
442
  ...r.interpolation
443
443
  }
444
444
  });
445
- const c = E(e) && (r?.interpolation?.skipOnVariables !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
445
+ const u = E(e) && (r?.interpolation?.skipOnVariables !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
446
446
  let l;
447
- if (c) {
448
- const u = e.match(this.interpolator.nestingRegexp);
449
- l = u && u.length;
447
+ if (u) {
448
+ const c = e.match(this.interpolator.nestingRegexp);
449
+ l = c && c.length;
450
450
  }
451
451
  let p = r.replace && !E(r.replace) ? r.replace : r;
452
452
  if (this.options.interpolation.defaultVariables && (p = {
453
453
  ...this.options.interpolation.defaultVariables,
454
454
  ...p
455
- }), e = this.interpolator.interpolate(e, p, r.lng || this.language || a.usedLng, r), c) {
456
- const u = e.match(this.interpolator.nestingRegexp), h = u && u.length;
455
+ }), e = this.interpolator.interpolate(e, p, r.lng || this.language || a.usedLng, r), u) {
456
+ const c = e.match(this.interpolator.nestingRegexp), h = c && c.length;
457
457
  l < h && (r.nest = !1);
458
458
  }
459
- !r.lng && a && a.res && (r.lng = this.language || a.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...u) => s?.[0] === u[0] && !r.context ? (this.logger.warn(`It seems you are nesting recursively key: ${u[0]} in key: ${n[0]}`), null) : this.translate(...u, n), r)), r.interpolation && this.interpolator.reset();
459
+ !r.lng && a && a.res && (r.lng = this.language || a.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...c) => s?.[0] === c[0] && !r.context ? (this.logger.warn(`It seems you are nesting recursively key: ${c[0]} in key: ${n[0]}`), null) : this.translate(...c, n), r)), r.interpolation && this.interpolator.reset();
460
460
  }
461
461
  const i = r.postProcess || this.options.postProcess, o = E(i) ? [i] : i;
462
462
  return e != null && o?.length && r.applyPostProcessor !== !1 && (e = At.handle(o, e, n, this.options && this.options.postProcessPassResolved ? {
@@ -469,14 +469,14 @@ class xe extends ke {
469
469
  }
470
470
  resolve(e, n = {}) {
471
471
  let r, a, s, i, o;
472
- return E(e) && (e = [e]), e.forEach((c) => {
472
+ return E(e) && (e = [e]), e.forEach((u) => {
473
473
  if (this.isValidLookup(r)) return;
474
- const l = this.extractFromKey(c, n), p = l.key;
474
+ const l = this.extractFromKey(u, n), p = l.key;
475
475
  a = p;
476
- let u = l.namespaces;
477
- this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
476
+ let c = l.namespaces;
477
+ this.options.fallbackNS && (c = c.concat(this.options.fallbackNS));
478
478
  const h = n.count !== void 0 && !E(n.count), x = h && !n.ordinal && n.count === 0, d = n.context !== void 0 && (E(n.context) || typeof n.context == "number") && n.context !== "", g = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
479
- u.forEach((f) => {
479
+ c.forEach((f) => {
480
480
  this.isValidLookup(r) || (o = f, !Je[`${g[0]}-${f}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (Je[`${g[0]}-${f}`] = !0, this.logger.warn(`key "${a}" for languages "${g.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!!!")), g.forEach((v) => {
481
481
  if (this.isValidLookup(r)) return;
482
482
  i = v;
@@ -634,8 +634,8 @@ class yn {
634
634
  if (typeof Intl > "u")
635
635
  return this.logger.error("No Intl support, please use an Intl polyfill!"), tt;
636
636
  if (!e.match(/-|_/)) return tt;
637
- const c = this.languageUtils.getLanguagePartFromCode(e);
638
- i = this.getRule(c, n);
637
+ const u = this.languageUtils.getLanguagePartFromCode(e);
638
+ i = this.getRule(u, n);
639
639
  }
640
640
  return this.pluralRulesCache[s] = i, i;
641
641
  }
@@ -674,10 +674,10 @@ class rt {
674
674
  prefix: s,
675
675
  prefixEscaped: i,
676
676
  suffix: o,
677
- suffixEscaped: c,
677
+ suffixEscaped: u,
678
678
  formatSeparator: l,
679
679
  unescapeSuffix: p,
680
- unescapePrefix: u,
680
+ unescapePrefix: c,
681
681
  nestingPrefix: h,
682
682
  nestingPrefixEscaped: x,
683
683
  nestingSuffix: d,
@@ -686,7 +686,7 @@ class rt {
686
686
  maxReplaces: v,
687
687
  alwaysFormat: y
688
688
  } = e.interpolation;
689
- this.escape = n !== void 0 ? n : un, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = s ? X(s) : i || "{{", this.suffix = o ? X(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = p ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = h ? X(h) : x || X("$t("), this.nestingSuffix = d ? X(d) : g || X(")"), this.nestingOptionsSeparator = f || ",", this.maxReplaces = v || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
689
+ this.escape = n !== void 0 ? n : cn, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = s ? X(s) : i || "{{", this.suffix = o ? X(o) : u || "}}", this.formatSeparator = l || ",", this.unescapePrefix = p ? "" : c || "-", this.unescapeSuffix = this.unescapePrefix ? "" : p || "", this.nestingPrefix = h ? X(h) : x || X("$t("), this.nestingSuffix = d ? X(d) : g || X(")"), this.nestingOptionsSeparator = f || ",", this.maxReplaces = v || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
690
690
  }
691
691
  reset() {
692
692
  this.options && this.init(this.options);
@@ -697,9 +697,9 @@ class rt {
697
697
  }
698
698
  interpolate(e, n, r, a) {
699
699
  let s, i, o;
700
- const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (x) => {
700
+ const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (x) => {
701
701
  if (x.indexOf(this.formatSeparator) < 0) {
702
- const v = nt(n, c, x, this.options.keySeparator, this.options.ignoreJSONStructure);
702
+ const v = nt(n, u, x, this.options.keySeparator, this.options.ignoreJSONStructure);
703
703
  return this.alwaysFormat ? this.format(v, void 0, r, {
704
704
  ...a,
705
705
  ...n,
@@ -707,14 +707,14 @@ class rt {
707
707
  }) : v;
708
708
  }
709
709
  const d = x.split(this.formatSeparator), g = d.shift().trim(), f = d.join(this.formatSeparator).trim();
710
- return this.format(nt(n, c, g, this.options.keySeparator, this.options.ignoreJSONStructure), f, r, {
710
+ return this.format(nt(n, u, g, this.options.keySeparator, this.options.ignoreJSONStructure), f, r, {
711
711
  ...a,
712
712
  ...n,
713
713
  interpolationkey: g
714
714
  });
715
715
  };
716
716
  this.resetRegExp();
717
- const p = a?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = a?.interpolation?.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
717
+ const p = a?.missingInterpolationHandler || this.options.missingInterpolationHandler, c = a?.interpolation?.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
718
718
  return [{
719
719
  regex: this.regexpUnescape,
720
720
  safeValue: (x) => Ne(x)
@@ -730,26 +730,26 @@ class rt {
730
730
  i = E(f) ? f : "";
731
731
  } else if (a && Object.prototype.hasOwnProperty.call(a, d))
732
732
  i = "";
733
- else if (u) {
733
+ else if (c) {
734
734
  i = s[0];
735
735
  continue;
736
736
  } else
737
737
  this.logger.warn(`missed to pass in variable ${d} for interpolating ${e}`), i = "";
738
738
  else !E(i) && !this.useRawValueToEscape && (i = We(i));
739
739
  const g = x.safeValue(i);
740
- if (e = e.replace(s[0], g), u ? (x.regex.lastIndex += i.length, x.regex.lastIndex -= s[0].length) : x.regex.lastIndex = 0, o++, o >= this.maxReplaces)
740
+ if (e = e.replace(s[0], g), c ? (x.regex.lastIndex += i.length, x.regex.lastIndex -= s[0].length) : x.regex.lastIndex = 0, o++, o >= this.maxReplaces)
741
741
  break;
742
742
  }
743
743
  }), e;
744
744
  }
745
745
  nest(e, n, r = {}) {
746
746
  let a, s, i;
747
- const o = (c, l) => {
747
+ const o = (u, l) => {
748
748
  const p = this.nestingOptionsSeparator;
749
- if (c.indexOf(p) < 0) return c;
750
- const u = c.split(new RegExp(`${X(p)}[ ]*{`));
751
- let h = `{${u[1]}`;
752
- c = u[0], h = this.interpolate(h, i);
749
+ if (u.indexOf(p) < 0) return u;
750
+ const c = u.split(new RegExp(`${X(p)}[ ]*{`));
751
+ let h = `{${c[1]}`;
752
+ u = c[0], h = this.interpolate(h, i);
753
753
  const x = h.match(/'/g), d = h.match(/"/g);
754
754
  ((x?.length ?? 0) % 2 === 0 && !d || (d?.length ?? 0) % 2 !== 0) && (h = h.replace(/'/g, '"'));
755
755
  try {
@@ -758,18 +758,18 @@ class rt {
758
758
  ...i
759
759
  });
760
760
  } catch (g) {
761
- return this.logger.warn(`failed parsing options string in nesting for key ${c}`, g), `${c}${p}${h}`;
761
+ return this.logger.warn(`failed parsing options string in nesting for key ${u}`, g), `${u}${p}${h}`;
762
762
  }
763
- return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, c;
763
+ return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, u;
764
764
  };
765
765
  for (; a = this.nestingRegexp.exec(e); ) {
766
- let c = [];
766
+ let u = [];
767
767
  i = {
768
768
  ...r
769
769
  }, i = i.replace && !E(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
770
770
  const l = /{.*}/.test(a[1]) ? a[1].lastIndexOf("}") + 1 : a[1].indexOf(this.formatSeparator);
771
- if (l !== -1 && (c = a[1].slice(l).split(this.formatSeparator).map((p) => p.trim()).filter(Boolean), a[1] = a[1].slice(0, l)), s = n(o.call(this, a[1].trim(), i), i), s && a[0] === e && !E(s)) return s;
772
- E(s) || (s = We(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), c.length && (s = c.reduce((p, u) => this.format(p, u, r.lng, {
771
+ if (l !== -1 && (u = a[1].slice(l).split(this.formatSeparator).map((p) => p.trim()).filter(Boolean), a[1] = a[1].slice(0, l)), s = n(o.call(this, a[1].trim(), i), i), s && a[0] === e && !E(s)) return s;
772
+ E(s) || (s = We(s)), s || (this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`), s = ""), u.length && (s = u.reduce((p, c) => this.format(p, c, r.lng, {
773
773
  ...r,
774
774
  interpolationkey: a[1].trim()
775
775
  }), s.trim())), e = e.replace(a[0], s), this.regexp.lastIndex = 0;
@@ -786,7 +786,7 @@ const bn = (t) => {
786
786
  const a = r[1].substring(0, r[1].length - 1);
787
787
  e === "currency" && a.indexOf(":") < 0 ? n.currency || (n.currency = a.trim()) : e === "relativetime" && a.indexOf(":") < 0 ? n.range || (n.range = a.trim()) : a.split(";").forEach((i) => {
788
788
  if (i) {
789
- const [o, ...c] = i.split(":"), l = c.join(":").trim().replace(/^'+|'+$/g, ""), p = o.trim();
789
+ const [o, ...u] = i.split(":"), l = u.join(":").trim().replace(/^'+|'+$/g, ""), p = o.trim();
790
790
  n[p] || (n[p] = l), l === "false" && (n[p] = !1), l === "true" && (n[p] = !0), isNaN(l) || (n[p] = parseInt(l, 10));
791
791
  }
792
792
  });
@@ -860,19 +860,19 @@ class vn {
860
860
  format(e, n, r, a = {}) {
861
861
  const s = n.split(this.formatSeparator);
862
862
  if (s.length > 1 && s[0].indexOf("(") > 1 && s[0].indexOf(")") < 0 && s.find((o) => o.indexOf(")") > -1)) {
863
- const o = s.findIndex((c) => c.indexOf(")") > -1);
863
+ const o = s.findIndex((u) => u.indexOf(")") > -1);
864
864
  s[0] = [s[0], ...s.splice(1, o)].join(this.formatSeparator);
865
865
  }
866
- return s.reduce((o, c) => {
866
+ return s.reduce((o, u) => {
867
867
  const {
868
868
  formatName: l,
869
869
  formatOptions: p
870
- } = bn(c);
870
+ } = bn(u);
871
871
  if (this.formats[l]) {
872
- let u = o;
872
+ let c = o;
873
873
  try {
874
874
  const h = a?.formatParams?.[a.interpolationkey] || {}, x = h.locale || h.lng || a.locale || a.lng || r;
875
- u = this.formats[l](o, x, {
875
+ c = this.formats[l](o, x, {
876
876
  ...p,
877
877
  ...a,
878
878
  ...h
@@ -880,7 +880,7 @@ class vn {
880
880
  } catch (h) {
881
881
  this.logger.warn(h);
882
882
  }
883
- return u;
883
+ return c;
884
884
  } else
885
885
  this.logger.warn(`there was no format function for ${l}`);
886
886
  return o;
@@ -895,12 +895,12 @@ class kn extends ke {
895
895
  super(), this.backend = e, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = a, this.logger = q.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = a.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = a.maxRetries >= 0 ? a.maxRetries : 5, this.retryTimeout = a.retryTimeout >= 1 ? a.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(r, a.backend, a);
896
896
  }
897
897
  queueLoad(e, n, r, a) {
898
- const s = {}, i = {}, o = {}, c = {};
898
+ const s = {}, i = {}, o = {}, u = {};
899
899
  return e.forEach((l) => {
900
900
  let p = !0;
901
- n.forEach((u) => {
902
- const h = `${l}|${u}`;
903
- !r.reload && this.store.hasResourceBundle(l, u) ? this.state[h] = 2 : this.state[h] < 0 || (this.state[h] === 1 ? i[h] === void 0 && (i[h] = !0) : (this.state[h] = 1, p = !1, i[h] === void 0 && (i[h] = !0), s[h] === void 0 && (s[h] = !0), c[u] === void 0 && (c[u] = !0)));
901
+ n.forEach((c) => {
902
+ const h = `${l}|${c}`;
903
+ !r.reload && this.store.hasResourceBundle(l, c) ? this.state[h] = 2 : this.state[h] < 0 || (this.state[h] === 1 ? i[h] === void 0 && (i[h] = !0) : (this.state[h] = 1, p = !1, i[h] === void 0 && (i[h] = !0), s[h] === void 0 && (s[h] = !0), u[c] === void 0 && (u[c] = !0)));
904
904
  }), p || (o[l] = !0);
905
905
  }), (Object.keys(s).length || Object.keys(i).length) && this.queue.push({
906
906
  pending: i,
@@ -912,7 +912,7 @@ class kn extends ke {
912
912
  toLoad: Object.keys(s),
913
913
  pending: Object.keys(i),
914
914
  toLoadLanguages: Object.keys(o),
915
- toLoadNamespaces: Object.keys(c)
915
+ toLoadNamespaces: Object.keys(u)
916
916
  };
917
917
  }
918
918
  loaded(e, n, r) {
@@ -921,15 +921,15 @@ class kn extends ke {
921
921
  skipCopy: !0
922
922
  }), this.state[e] = n ? -1 : 2, n && r && (this.state[e] = 0);
923
923
  const o = {};
924
- this.queue.forEach((c) => {
925
- on(c.loaded, [s], i), wn(c, e), n && c.errors.push(n), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((l) => {
924
+ this.queue.forEach((u) => {
925
+ on(u.loaded, [s], i), wn(u, e), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((l) => {
926
926
  o[l] || (o[l] = {});
927
- const p = c.loaded[l];
928
- p.length && p.forEach((u) => {
929
- o[l][u] === void 0 && (o[l][u] = !0);
927
+ const p = u.loaded[l];
928
+ p.length && p.forEach((c) => {
929
+ o[l][c] === void 0 && (o[l][c] = !0);
930
930
  });
931
- }), c.done = !0, c.errors.length ? c.callback(c.errors) : c.callback());
932
- }), this.emit("loaded", o), this.queue = this.queue.filter((c) => !c.done);
931
+ }), u.done = !0, u.errors.length ? u.callback(u.errors) : u.callback());
932
+ }), this.emit("loaded", o), this.queue = this.queue.filter((u) => !u.done);
933
933
  }
934
934
  read(e, n, r, a = 0, s = this.retryTimeout, i) {
935
935
  if (!e.length) return i(null, {});
@@ -947,8 +947,8 @@ class kn extends ke {
947
947
  this.readingCalls++;
948
948
  const o = (l, p) => {
949
949
  if (this.readingCalls--, this.waitingReads.length > 0) {
950
- const u = this.waitingReads.shift();
951
- this.read(u.lng, u.ns, u.fcName, u.tried, u.wait, u.callback);
950
+ const c = this.waitingReads.shift();
951
+ this.read(c.lng, c.ns, c.fcName, c.tried, c.wait, c.callback);
952
952
  }
953
953
  if (l && p && a < this.maxRetries) {
954
954
  setTimeout(() => {
@@ -957,17 +957,17 @@ class kn extends ke {
957
957
  return;
958
958
  }
959
959
  i(l, p);
960
- }, c = this.backend[r].bind(this.backend);
961
- if (c.length === 2) {
960
+ }, u = this.backend[r].bind(this.backend);
961
+ if (u.length === 2) {
962
962
  try {
963
- const l = c(e, n);
963
+ const l = u(e, n);
964
964
  l && typeof l.then == "function" ? l.then((p) => o(null, p)).catch(o) : o(null, l);
965
965
  } catch (l) {
966
966
  o(l);
967
967
  }
968
968
  return;
969
969
  }
970
- return c(e, n, o);
970
+ return u(e, n, o);
971
971
  }
972
972
  prepareLoading(e, n, r = {}, a) {
973
973
  if (!this.backend)
@@ -1002,19 +1002,19 @@ class kn extends ke {
1002
1002
  }
1003
1003
  if (!(r == null || r === "")) {
1004
1004
  if (this.backend?.create) {
1005
- const c = {
1005
+ const u = {
1006
1006
  ...i,
1007
1007
  isUpdate: s
1008
1008
  }, l = this.backend.create.bind(this.backend);
1009
1009
  if (l.length < 6)
1010
1010
  try {
1011
1011
  let p;
1012
- l.length === 5 ? p = l(e, n, r, a, c) : p = l(e, n, r, a), p && typeof p.then == "function" ? p.then((u) => o(null, u)).catch(o) : o(null, p);
1012
+ l.length === 5 ? p = l(e, n, r, a, u) : p = l(e, n, r, a), p && typeof p.then == "function" ? p.then((c) => o(null, c)).catch(o) : o(null, p);
1013
1013
  } catch (p) {
1014
1014
  o(p);
1015
1015
  }
1016
1016
  else
1017
- l(e, n, r, a, o, c);
1017
+ l(e, n, r, a, o, u);
1018
1018
  }
1019
1019
  !e || !e[0] || this.store.addResource(e[0], n, r, a);
1020
1020
  }
@@ -1115,15 +1115,15 @@ class de extends ke {
1115
1115
  this.modules.formatter ? l = this.modules.formatter : l = vn;
1116
1116
  const p = new Qe(this.options);
1117
1117
  this.store = new Xe(this.options.resources, this.options);
1118
- const u = this.services;
1119
- u.logger = q, u.resourceStore = this.store, u.languageUtils = p, u.pluralResolver = new yn(p, {
1118
+ const c = this.services;
1119
+ c.logger = q, c.resourceStore = this.store, c.languageUtils = p, c.pluralResolver = new yn(p, {
1120
1120
  prepend: this.options.pluralSeparator,
1121
1121
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1122
- }), this.options.interpolation.format && this.options.interpolation.format !== r.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"), l && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (u.formatter = a(l), u.formatter.init && u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new rt(this.options), u.utils = {
1122
+ }), this.options.interpolation.format && this.options.interpolation.format !== r.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"), l && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (c.formatter = a(l), c.formatter.init && c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new rt(this.options), c.utils = {
1123
1123
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1124
- }, u.backendConnector = new kn(a(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (x, ...d) => {
1124
+ }, c.backendConnector = new kn(a(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", (x, ...d) => {
1125
1125
  this.emit(x, ...d);
1126
- }), this.modules.languageDetector && (u.languageDetector = a(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = a(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new xe(this.services, this.options), this.translator.on("*", (x, ...d) => {
1126
+ }), this.modules.languageDetector && (c.languageDetector = a(this.modules.languageDetector), c.languageDetector.init && c.languageDetector.init(c, this.options.detection, this.options)), this.modules.i18nFormat && (c.i18nFormat = a(this.modules.i18nFormat), c.i18nFormat.init && c.i18nFormat.init(this)), this.translator = new xe(this.services, this.options), this.translator.on("*", (x, ...d) => {
1127
1127
  this.emit(x, ...d);
1128
1128
  }), this.modules.external.forEach((x) => {
1129
1129
  x.init && x.init(this);
@@ -1138,14 +1138,14 @@ class de extends ke {
1138
1138
  }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((l) => {
1139
1139
  this[l] = (...p) => (this.store[l](...p), this);
1140
1140
  });
1141
- const o = se(), c = () => {
1142
- const l = (p, u) => {
1143
- 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), o.resolve(u), n(p, u);
1141
+ const o = se(), u = () => {
1142
+ const l = (p, c) => {
1143
+ 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), o.resolve(c), n(p, c);
1144
1144
  };
1145
1145
  if (this.languages && !this.isInitialized) return l(null, this.t.bind(this));
1146
1146
  this.changeLanguage(this.options.lng, l);
1147
1147
  };
1148
- return this.options.resources || !this.options.initAsync ? c() : setTimeout(c, 0), o;
1148
+ return this.options.resources || !this.options.initAsync ? u() : setTimeout(u, 0), o;
1149
1149
  }
1150
1150
  loadResources(e, n = he) {
1151
1151
  let r = n;
@@ -1158,7 +1158,7 @@ class de extends ke {
1158
1158
  l !== "cimode" && s.indexOf(l) < 0 && s.push(l);
1159
1159
  });
1160
1160
  };
1161
- a ? i(a) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((c) => i(c)), this.options.preload?.forEach?.((o) => i(o)), this.services.backendConnector.load(s, this.options.ns, (o) => {
1161
+ a ? i(a) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => i(u)), this.options.preload?.forEach?.((o) => i(o)), this.services.backendConnector.load(s, this.options.ns, (o) => {
1162
1162
  !o && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), r(o);
1163
1163
  });
1164
1164
  } else
@@ -1193,11 +1193,11 @@ class de extends ke {
1193
1193
  this.emit("languageChanging", e);
1194
1194
  const a = (o) => {
1195
1195
  this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
1196
- }, s = (o, c) => {
1197
- c ? this.isLanguageChangingTo === e && (a(c), this.translator.changeLanguage(c), this.isLanguageChangingTo = void 0, this.emit("languageChanged", c), this.logger.log("languageChanged", c)) : this.isLanguageChangingTo = void 0, r.resolve((...l) => this.t(...l)), n && n(o, (...l) => this.t(...l));
1196
+ }, s = (o, u) => {
1197
+ u ? this.isLanguageChangingTo === e && (a(u), this.translator.changeLanguage(u), this.isLanguageChangingTo = void 0, this.emit("languageChanged", u), this.logger.log("languageChanged", u)) : this.isLanguageChangingTo = void 0, r.resolve((...l) => this.t(...l)), n && n(o, (...l) => this.t(...l));
1198
1198
  }, i = (o) => {
1199
1199
  !e && !o && this.services.languageDetector && (o = []);
1200
- const c = E(o) ? o : o && o[0], l = this.store.hasLanguageSomeTranslations(c) ? c : this.services.languageUtils.getBestMatchFromCodes(E(o) ? [o] : o);
1200
+ const u = E(o) ? o : o && o[0], l = this.store.hasLanguageSomeTranslations(u) ? u : this.services.languageUtils.getBestMatchFromCodes(E(o) ? [o] : o);
1201
1201
  l && (this.language || a(l), this.translator.language || this.translator.changeLanguage(l), this.services.languageDetector?.cacheUserLanguage?.(l)), this.loadResources(l, (p) => {
1202
1202
  s(p, l);
1203
1203
  });
@@ -1206,19 +1206,19 @@ class de extends ke {
1206
1206
  }
1207
1207
  getFixedT(e, n, r) {
1208
1208
  const a = (s, i, ...o) => {
1209
- let c;
1210
- typeof i != "object" ? c = this.options.overloadTranslationOptionHandler([s, i].concat(o)) : c = {
1209
+ let u;
1210
+ typeof i != "object" ? u = this.options.overloadTranslationOptionHandler([s, i].concat(o)) : u = {
1211
1211
  ...i
1212
- }, c.lng = c.lng || a.lng, c.lngs = c.lngs || a.lngs, c.ns = c.ns || a.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || r || a.keyPrefix);
1212
+ }, u.lng = u.lng || a.lng, u.lngs = u.lngs || a.lngs, u.ns = u.ns || a.ns, u.keyPrefix !== "" && (u.keyPrefix = u.keyPrefix || r || a.keyPrefix);
1213
1213
  const l = this.options.keySeparator || ".";
1214
1214
  let p;
1215
- return c.keyPrefix && Array.isArray(s) ? p = s.map((u) => (typeof u == "function" && (u = Be(u, {
1215
+ return u.keyPrefix && Array.isArray(s) ? p = s.map((c) => (typeof c == "function" && (c = Be(c, {
1216
1216
  ...this.options,
1217
1217
  ...i
1218
- })), `${c.keyPrefix}${l}${u}`)) : (typeof s == "function" && (s = Be(s, {
1218
+ })), `${u.keyPrefix}${l}${c}`)) : (typeof s == "function" && (s = Be(s, {
1219
1219
  ...this.options,
1220
1220
  ...i
1221
- })), p = c.keyPrefix ? `${c.keyPrefix}${l}${s}` : s), this.t(p, c);
1221
+ })), p = u.keyPrefix ? `${u.keyPrefix}${l}${s}` : s), this.t(p, u);
1222
1222
  };
1223
1223
  return E(e) ? a.lng = e : a.lngs = e, a.ns = n, a.keyPrefix = r, a;
1224
1224
  }
@@ -1238,8 +1238,8 @@ class de extends ke {
1238
1238
  return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
1239
1239
  const r = n.lng || this.resolvedLanguage || this.languages[0], a = this.options ? this.options.fallbackLng : !1, s = this.languages[this.languages.length - 1];
1240
1240
  if (r.toLowerCase() === "cimode") return !0;
1241
- const i = (o, c) => {
1242
- const l = this.services.backendConnector.state[`${o}|${c}`];
1241
+ const i = (o, u) => {
1242
+ const l = this.services.backendConnector.state[`${o}|${u}`];
1243
1243
  return l === -1 || l === 0 || l === 2;
1244
1244
  };
1245
1245
  if (n.precheck) {
@@ -1296,26 +1296,26 @@ class de extends ke {
1296
1296
  }, s.services.utils = {
1297
1297
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
1298
1298
  }, r) {
1299
- const o = Object.keys(this.store.data).reduce((c, l) => (c[l] = {
1299
+ const o = Object.keys(this.store.data).reduce((u, l) => (u[l] = {
1300
1300
  ...this.store.data[l]
1301
- }, c[l] = Object.keys(c[l]).reduce((p, u) => (p[u] = {
1302
- ...c[l][u]
1303
- }, p), c[l]), c), {});
1301
+ }, u[l] = Object.keys(u[l]).reduce((p, c) => (p[c] = {
1302
+ ...u[l][c]
1303
+ }, p), u[l]), u), {});
1304
1304
  s.store = new Xe(o, a), s.services.resourceStore = s.store;
1305
1305
  }
1306
1306
  if (e.interpolation) {
1307
- const c = {
1307
+ const u = {
1308
1308
  ...Ce().interpolation,
1309
1309
  ...this.options.interpolation,
1310
1310
  ...e.interpolation
1311
1311
  }, l = {
1312
1312
  ...a,
1313
- interpolation: c
1313
+ interpolation: u
1314
1314
  };
1315
1315
  s.services.interpolator = new rt(l);
1316
1316
  }
1317
- return s.translator = new xe(s.services, a), s.translator.on("*", (o, ...c) => {
1318
- s.emit(o, ...c);
1317
+ return s.translator = new xe(s.services, a), s.translator.on("*", (o, ...u) => {
1318
+ s.emit(o, ...u);
1319
1319
  }), s.init(a, n), s.translator.options = a, s.translator.backendConnector.services.utils = {
1320
1320
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
1321
1321
  }, s;
@@ -1442,50 +1442,50 @@ class $n {
1442
1442
  }
1443
1443
  }
1444
1444
  var Te = { exports: {} }, _e = {};
1445
- var ct;
1445
+ var ut;
1446
1446
  function Dn() {
1447
- if (ct) return _e;
1448
- ct = 1;
1447
+ if (ut) return _e;
1448
+ ut = 1;
1449
1449
  var t = $e;
1450
- function e(u, h) {
1451
- return u === h && (u !== 0 || 1 / u === 1 / h) || u !== u && h !== h;
1450
+ function e(c, h) {
1451
+ return c === h && (c !== 0 || 1 / c === 1 / h) || c !== c && h !== h;
1452
1452
  }
1453
1453
  var n = typeof Object.is == "function" ? Object.is : e, r = t.useState, a = t.useEffect, s = t.useLayoutEffect, i = t.useDebugValue;
1454
- function o(u, h) {
1454
+ function o(c, h) {
1455
1455
  var x = h(), d = r({ inst: { value: x, getSnapshot: h } }), g = d[0].inst, f = d[1];
1456
1456
  return s(
1457
1457
  function() {
1458
- g.value = x, g.getSnapshot = h, c(g) && f({ inst: g });
1458
+ g.value = x, g.getSnapshot = h, u(g) && f({ inst: g });
1459
1459
  },
1460
- [u, x, h]
1460
+ [c, x, h]
1461
1461
  ), a(
1462
1462
  function() {
1463
- return c(g) && f({ inst: g }), u(function() {
1464
- c(g) && f({ inst: g });
1463
+ return u(g) && f({ inst: g }), c(function() {
1464
+ u(g) && f({ inst: g });
1465
1465
  });
1466
1466
  },
1467
- [u]
1467
+ [c]
1468
1468
  ), i(x), x;
1469
1469
  }
1470
- function c(u) {
1471
- var h = u.getSnapshot;
1472
- u = u.value;
1470
+ function u(c) {
1471
+ var h = c.getSnapshot;
1472
+ c = c.value;
1473
1473
  try {
1474
1474
  var x = h();
1475
- return !n(u, x);
1475
+ return !n(c, x);
1476
1476
  } catch {
1477
1477
  return !0;
1478
1478
  }
1479
1479
  }
1480
- function l(u, h) {
1480
+ function l(c, h) {
1481
1481
  return h();
1482
1482
  }
1483
1483
  var p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : o;
1484
1484
  return _e.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : p, _e;
1485
1485
  }
1486
- var ut;
1486
+ var ct;
1487
1487
  function Bn() {
1488
- return ut || (ut = 1, Te.exports = Dn()), Te.exports;
1488
+ return ct || (ct = 1, Te.exports = Dn()), Te.exports;
1489
1489
  }
1490
1490
  var Mn = Bn();
1491
1491
  const zn = (t, e) => Q(e) ? e : Fn(e) && Q(e.defaultValue) ? e.defaultValue : Array.isArray(t) ? t[t.length - 1] : t, Un = {
@@ -1500,15 +1500,15 @@ const zn = (t, e) => Q(e) ? e : Fn(e) && Q(e.defaultValue) ? e.defaultValue : Ar
1500
1500
  defaultNS: a
1501
1501
  } = kt(Nt) || {}, s = n || r || jn();
1502
1502
  s && !s.reportNamespaces && (s.reportNamespaces = new $n()), s || Ft(s, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
1503
- const i = ce(() => ({
1503
+ const i = ue(() => ({
1504
1504
  ..._n(),
1505
1505
  ...s?.options?.react,
1506
1506
  ...e
1507
1507
  }), [s, e]), {
1508
1508
  useSuspense: o,
1509
- keyPrefix: c
1510
- } = i, l = a || s?.options?.defaultNS, p = Q(l) ? [l] : l || ["translation"], u = ce(() => p, p);
1511
- s?.reportNamespaces?.addUsedNamespaces?.(u);
1509
+ keyPrefix: u
1510
+ } = i, l = a || s?.options?.defaultNS, p = Q(l) ? [l] : l || ["translation"], c = ue(() => p, p);
1511
+ s?.reportNamespaces?.addUsedNamespaces?.(c);
1512
1512
  const h = fe(0), x = G((L) => {
1513
1513
  if (!s) return Hn;
1514
1514
  const {
@@ -1523,27 +1523,27 @@ const zn = (t, e) => Q(e) ? e : Fn(e) && Q(e.defaultValue) ? e.defaultValue : Ar
1523
1523
  }, [s, i]), d = fe(), g = G(() => {
1524
1524
  if (!s)
1525
1525
  return Un;
1526
- const L = !!(s.isInitialized || s.initializedStoreOnce) && u.every((B) => Ln(B, s, i)), F = e.lng || s.language, N = h.current, T = d.current;
1527
- if (T && T.ready === L && T.lng === F && T.keyPrefix === c && T.revision === N)
1526
+ const L = !!(s.isInitialized || s.initializedStoreOnce) && c.every((B) => Ln(B, s, i)), F = e.lng || s.language, N = h.current, T = d.current;
1527
+ if (T && T.ready === L && T.lng === F && T.keyPrefix === u && T.revision === N)
1528
1528
  return T;
1529
1529
  const C = {
1530
- t: s.getFixedT(F, i.nsMode === "fallback" ? u : u[0], c),
1530
+ t: s.getFixedT(F, i.nsMode === "fallback" ? c : c[0], u),
1531
1531
  ready: L,
1532
1532
  lng: F,
1533
- keyPrefix: c,
1533
+ keyPrefix: u,
1534
1534
  revision: N
1535
1535
  };
1536
1536
  return d.current = C, C;
1537
- }, [s, u, c, i, e.lng]), [f, v] = St(0), {
1537
+ }, [s, c, u, i, e.lng]), [f, v] = St(0), {
1538
1538
  t: y,
1539
1539
  ready: w
1540
1540
  } = Mn.useSyncExternalStore(x, g, g);
1541
1541
  en(() => {
1542
1542
  if (s && !w && !o) {
1543
1543
  const L = () => v((F) => F + 1);
1544
- e.lng ? lt(s, e.lng, u, L) : Me(s, u, L);
1544
+ e.lng ? lt(s, e.lng, c, L) : Me(s, c, L);
1545
1545
  }
1546
- }, [s, e.lng, u, w, o, f]);
1546
+ }, [s, e.lng, c, w, o, f]);
1547
1547
  const S = s || {}, A = fe(null), O = fe(), R = (L) => {
1548
1548
  const F = Object.getOwnPropertyDescriptors(L);
1549
1549
  F.__original && delete F.__original;
@@ -1559,7 +1559,7 @@ const zn = (t, e) => Q(e) ? e : Fn(e) && Q(e.defaultValue) ? e.defaultValue : Ar
1559
1559
  } catch {
1560
1560
  }
1561
1561
  return N;
1562
- }, _ = ce(() => {
1562
+ }, _ = ue(() => {
1563
1563
  const L = S, F = L?.language;
1564
1564
  let N = L;
1565
1565
  L && (A.current && A.current.__original === L ? O.current !== F ? (N = R(L), A.current = N, O.current = F) : N = A.current : (N = R(L), A.current = N, O.current = F));
@@ -1569,7 +1569,7 @@ const zn = (t, e) => Q(e) ? e : Fn(e) && Q(e.defaultValue) ? e.defaultValue : Ar
1569
1569
  if (s && o && !w)
1570
1570
  throw new Promise((L) => {
1571
1571
  const F = () => L();
1572
- e.lng ? lt(s, e.lng, u, F) : Me(s, u, F);
1572
+ e.lng ? lt(s, e.lng, c, F) : Me(s, c, F);
1573
1573
  });
1574
1574
  return _;
1575
1575
  };
@@ -1578,7 +1578,7 @@ function Vn({
1578
1578
  defaultNS: e,
1579
1579
  children: n
1580
1580
  }) {
1581
- const r = ce(() => ({
1581
+ const r = ue(() => ({
1582
1582
  i18n: t,
1583
1583
  defaultNS: e
1584
1584
  }), [t, e]);
@@ -1588,18 +1588,18 @@ function Vn({
1588
1588
  }
1589
1589
  const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPreviousStep: s, onUpdateResponse: i }) => {
1590
1590
  const { t: o } = Ue(), l = ((p) => {
1591
- let u = 0;
1591
+ let c = 0;
1592
1592
  if (e.startTransition) {
1593
- if (p === u)
1593
+ if (p === c)
1594
1594
  return {
1595
1595
  type: "start",
1596
1596
  transition: e.startTransition,
1597
1597
  hasPreviousStep: !1,
1598
1598
  hasNextStep: e.questions.length > 0 || !!e.endTransition
1599
1599
  };
1600
- u++;
1600
+ c++;
1601
1601
  }
1602
- const h = p - u;
1602
+ const h = p - c;
1603
1603
  if (h >= 0 && h < e.questions.length)
1604
1604
  return {
1605
1605
  type: "question",
@@ -1608,7 +1608,7 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1608
1608
  hasPreviousStep: p > 0,
1609
1609
  hasNextStep: p < e.questions.length - 1 || !!e.endTransition
1610
1610
  };
1611
- if (u += e.questions.length, e.endTransition && p === u)
1611
+ if (c += e.questions.length, e.endTransition && p === c)
1612
1612
  return {
1613
1613
  type: "end",
1614
1614
  transition: e.endTransition,
@@ -1620,7 +1620,7 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1620
1620
  if (l.type === "start") {
1621
1621
  const {
1622
1622
  title: p,
1623
- description: u,
1623
+ description: c,
1624
1624
  image: h,
1625
1625
  includeOptOut: x,
1626
1626
  customStartButton: d,
@@ -1632,7 +1632,7 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1632
1632
  Sa,
1633
1633
  {
1634
1634
  title: p,
1635
- description: u,
1635
+ description: c,
1636
1636
  icon: e.icon,
1637
1637
  image: h,
1638
1638
  quitText: x ? f ? v : o("Quit") : void 0,
@@ -1643,12 +1643,12 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1643
1643
  );
1644
1644
  }
1645
1645
  if (l.type === "end") {
1646
- const { title: p, description: u, image: h, customEndButton: x, endButtonText: d, customEndButtonLink: g, endButtonLink: f } = l.transition;
1646
+ const { title: p, description: c, image: h, customEndButton: x, endButtonText: d, customEndButtonLink: g, endButtonLink: f } = l.transition;
1647
1647
  return /* @__PURE__ */ k.jsx(
1648
1648
  ka,
1649
1649
  {
1650
1650
  title: p,
1651
- description: u,
1651
+ description: c,
1652
1652
  icon: e.icon,
1653
1653
  image: h,
1654
1654
  quitText: x ? d : o("Done"),
@@ -1661,11 +1661,11 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1661
1661
  const { question: p } = l;
1662
1662
  if (!p) throw new Error("No question found");
1663
1663
  if (p.questionType === "choice") {
1664
- const { title: u, description: h, image: x, alternatives: d, maxSelections: g, required: f, verticalAlignment: v } = p, y = n.responses[p.id] || [], w = (g ? y.length <= g || g === 4 : !0) && (f ? y.length > 0 : !0);
1664
+ const { title: c, description: h, image: x, alternatives: d, maxSelections: g, required: f, verticalAlignment: v } = p, y = n.responses[p.id] || [], w = (g ? y.length <= g || g === 4 : !0) && (f ? y.length > 0 : !0);
1665
1665
  return /* @__PURE__ */ k.jsx(
1666
1666
  xa,
1667
1667
  {
1668
- title: u,
1668
+ title: c,
1669
1669
  description: h,
1670
1670
  image: x,
1671
1671
  alternatives: d,
@@ -1690,11 +1690,11 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1690
1690
  );
1691
1691
  }
1692
1692
  if (p.questionType === "text") {
1693
- const { title: u, description: h, image: x, maxChars: d, limited: g, required: f } = p, v = n.responses[p.id] || "", y = (g && d ? v.length <= d : !0) && (f ? v.length > 0 : !0);
1693
+ const { title: c, description: h, image: x, maxChars: d, limited: g, required: f } = p, v = n.responses[p.id] || "", y = (g && d ? v.length <= d : !0) && (f ? v.length > 0 : !0);
1694
1694
  return /* @__PURE__ */ k.jsx(
1695
1695
  wa,
1696
1696
  {
1697
- title: u,
1697
+ title: c,
1698
1698
  icon: e.icon,
1699
1699
  description: h,
1700
1700
  onNext: a,
@@ -1719,7 +1719,7 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1719
1719
  responses: {},
1720
1720
  currentStep: 0,
1721
1721
  startedAt: /* @__PURE__ */ new Date()
1722
- }), c = G((h, x) => {
1722
+ }), u = G((h, x) => {
1723
1723
  o((d) => ({
1724
1724
  ...d,
1725
1725
  responses: {
@@ -1742,7 +1742,7 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1742
1742
  };
1743
1743
  n(h);
1744
1744
  }
1745
- }, [i, s, l, n]), u = G(() => {
1745
+ }, [i, s, l, n]), c = G(() => {
1746
1746
  i.currentStep > 0 && l(i.currentStep - 1);
1747
1747
  }, [i.currentStep, l]);
1748
1748
  return /* @__PURE__ */ k.jsx(
@@ -1758,8 +1758,8 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1758
1758
  formState: i,
1759
1759
  onDismiss: e,
1760
1760
  onNextStep: p,
1761
- onPreviousStep: u,
1762
- onUpdateResponse: c
1761
+ onPreviousStep: c,
1762
+ onUpdateResponse: u
1763
1763
  }
1764
1764
  )
1765
1765
  }
@@ -1915,11 +1915,11 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1915
1915
  weight: s,
1916
1916
  mirrored: i,
1917
1917
  children: o,
1918
- weights: c,
1918
+ weights: u,
1919
1919
  ...l
1920
1920
  } = t, {
1921
1921
  color: p = "currentColor",
1922
- size: u,
1922
+ size: c,
1923
1923
  weight: h = "regular",
1924
1924
  mirrored: x = !1,
1925
1925
  ...d
@@ -1929,8 +1929,8 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1929
1929
  {
1930
1930
  ref: e,
1931
1931
  xmlns: "http://www.w3.org/2000/svg",
1932
- width: a ?? u,
1933
- height: a ?? u,
1932
+ width: a ?? c,
1933
+ height: a ?? c,
1934
1934
  fill: r ?? p,
1935
1935
  viewBox: "0 0 256 256",
1936
1936
  transform: i || x ? "scale(-1, 1)" : void 0,
@@ -1939,7 +1939,7 @@ const Zn = ({ step: t, form: e, formState: n, onDismiss: r, onNextStep: a, onPre
1939
1939
  },
1940
1940
  !!n && /* @__PURE__ */ b.createElement("title", null, n),
1941
1941
  o,
1942
- c.get(s ?? h)
1942
+ u.get(s ?? h)
1943
1943
  );
1944
1944
  }
1945
1945
  );
@@ -2351,7 +2351,7 @@ var Jn = Object.create, Ee = Object.defineProperty, Qn = Object.defineProperties
2351
2351
  delete g.rest;
2352
2352
  }
2353
2353
  var y = new p();
2354
- return u(y, y.head, d), l(d, y, g, y.head, 0), x(y);
2354
+ return c(y, y.head, d), l(d, y, g, y.head, 0), x(y);
2355
2355
  },
2356
2356
  /**
2357
2357
  * @namespace
@@ -2420,7 +2420,7 @@ var Jn = Object.create, Ee = Object.defineProperty, Qn = Object.defineProperties
2420
2420
  S += " " + A + '="' + (y.attributes[A] || "").replace(/"/g, "&quot;") + '"';
2421
2421
  return "<" + y.tag + ' class="' + y.classes.join(" ") + '"' + S + ">" + y.content + "</" + y.tag + ">";
2422
2422
  };
2423
- function c(d, g, f, v) {
2423
+ function u(d, g, f, v) {
2424
2424
  d.lastIndex = g;
2425
2425
  var y = d.exec(f);
2426
2426
  if (y && v && y[1]) {
@@ -2449,7 +2449,7 @@ var Jn = Object.create, Ee = Object.defineProperty, Qn = Object.defineProperties
2449
2449
  if (!(I instanceof o)) {
2450
2450
  var M = 1, $;
2451
2451
  if (F) {
2452
- if ($ = c(j, B, d, L), !$ || $.index >= d.length)
2452
+ if ($ = u(j, B, d, L), !$ || $.index >= d.length)
2453
2453
  break;
2454
2454
  var H = $.index, ee = $.index + $[0].length, V = B;
2455
2455
  for (V += C.value.length; H >= V; )
@@ -2459,14 +2459,14 @@ var Jn = Object.create, Ee = Object.defineProperty, Qn = Object.defineProperties
2459
2459
  for (var P = C; P !== g.tail && (V < ee || typeof P.value == "string"); P = P.next)
2460
2460
  M++, V += P.value.length;
2461
2461
  M--, I = d.slice(B, V), $.index -= B;
2462
- } else if ($ = c(j, 0, I, L), !$)
2462
+ } else if ($ = u(j, 0, I, L), !$)
2463
2463
  continue;
2464
2464
  var H = $.index, Z = $[0], te = I.slice(0, H), Ze = I.slice(H + Z.length), Fe = B + I.length;
2465
2465
  w && Fe > w.reach && (w.reach = Fe);
2466
2466
  var ge = C.prev;
2467
- te && (ge = u(g, ge, te), B += te.length), h(g, ge, M);
2467
+ te && (ge = c(g, ge, te), B += te.length), h(g, ge, M);
2468
2468
  var Qt = new o(S, _ ? i.tokenize(Z, _) : Z, N, Z);
2469
- if (C = u(g, ge, Qt), Ze && u(g, C, Ze), M > 1) {
2469
+ if (C = c(g, ge, Qt), Ze && c(g, C, Ze), M > 1) {
2470
2470
  var Oe = {
2471
2471
  cause: S + "," + O,
2472
2472
  reach: Fe
@@ -2482,7 +2482,7 @@ var Jn = Object.create, Ee = Object.defineProperty, Qn = Object.defineProperties
2482
2482
  var d = { value: null, prev: null, next: null }, g = { value: null, prev: d, next: null };
2483
2483
  d.next = g, this.head = d, this.tail = g, this.length = 0;
2484
2484
  }
2485
- function u(d, g, f) {
2485
+ function c(d, g, f) {
2486
2486
  var v = g.next, y = { value: f, prev: g, next: v };
2487
2487
  return g.next = y, v.prev = y, d.length++, y;
2488
2488
  }
@@ -2520,16 +2520,16 @@ m.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
2520
2520
  var e = t.languages.javadoclike = { parameter: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m, lookbehind: !0 }, keyword: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m, lookbehind: !0 }, punctuation: /[{}]/ };
2521
2521
  Object.defineProperty(e, "addSupport", { value: function(n, r) {
2522
2522
  (n = typeof n == "string" ? [n] : n).forEach(function(a) {
2523
- var s = function(u) {
2524
- u.inside || (u.inside = {}), u.inside.rest = r;
2523
+ var s = function(c) {
2524
+ c.inside || (c.inside = {}), c.inside.rest = r;
2525
2525
  }, i = "doc-comment";
2526
2526
  if (o = t.languages[a]) {
2527
- var o, c = o[i];
2528
- if ((c = c || (o = t.languages.insertBefore(a, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[i]) instanceof RegExp && (c = o[i] = { pattern: c }), Array.isArray(c))
2529
- for (var l = 0, p = c.length; l < p; l++)
2530
- c[l] instanceof RegExp && (c[l] = { pattern: c[l] }), s(c[l]);
2527
+ var o, u = o[i];
2528
+ if ((u = u || (o = t.languages.insertBefore(a, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[i]) instanceof RegExp && (u = o[i] = { pattern: u }), Array.isArray(u))
2529
+ for (var l = 0, p = u.length; l < p; l++)
2530
+ u[l] instanceof RegExp && (u[l] = { pattern: u[l] }), s(u[l]);
2531
2531
  else
2532
- s(c);
2532
+ s(u);
2533
2533
  }
2534
2534
  });
2535
2535
  } }), e.addSupport(["java", "javascript", "php"], e);
@@ -2543,14 +2543,14 @@ m.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
2543
2543
  var e = /[*&][^\s[\]{},]+/, n = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, r = "(?:" + n.source + "(?:[ ]+" + e.source + ")?|" + e.source + "(?:[ ]+" + n.source + ")?)", a = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
2544
2544
  return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
2545
2545
  }), s = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
2546
- function i(o, c) {
2547
- c = (c || "").replace(/m/g, "") + "m";
2546
+ function i(o, u) {
2547
+ u = (u || "").replace(/m/g, "") + "m";
2548
2548
  var l = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
2549
2549
  return r;
2550
2550
  }).replace(/<<value>>/g, function() {
2551
2551
  return o;
2552
2552
  });
2553
- return RegExp(l, c);
2553
+ return RegExp(l, u);
2554
2554
  }
2555
2555
  t.languages.yaml = { scalar: { pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
2556
2556
  return r;
@@ -2573,17 +2573,17 @@ m.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
2573
2573
  l !== p && (t.languages.markdown[l].inside.content.inside[p] = t.languages.markdown[p]);
2574
2574
  });
2575
2575
  }), t.hooks.add("after-tokenize", function(l) {
2576
- l.language !== "markdown" && l.language !== "md" || (function p(u) {
2577
- if (u && typeof u != "string")
2578
- for (var h = 0, x = u.length; h < x; h++) {
2579
- var d, g = u[h];
2576
+ l.language !== "markdown" && l.language !== "md" || (function p(c) {
2577
+ if (c && typeof c != "string")
2578
+ for (var h = 0, x = c.length; h < x; h++) {
2579
+ var d, g = c[h];
2580
2580
  g.type !== "code" ? p(g.content) : (d = g.content[1], g = g.content[3], d && g && d.type === "code-language" && g.type === "code-block" && typeof d.content == "string" && (d = d.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), d = "language-" + (d = (/[a-z][\w-]*/i.exec(d) || [""])[0].toLowerCase()), g.alias ? typeof g.alias == "string" ? g.alias = [g.alias, d] : g.alias.push(d) : g.alias = [d]));
2581
2581
  }
2582
2582
  })(l.tokens);
2583
2583
  }), t.hooks.add("wrap", function(l) {
2584
2584
  if (l.type === "code-block") {
2585
- for (var p = "", u = 0, h = l.classes.length; u < h; u++) {
2586
- var x = l.classes[u], x = /language-(.+)/.exec(x);
2585
+ for (var p = "", c = 0, h = l.classes.length; c < h; c++) {
2586
+ var x = l.classes[c], x = /language-(.+)/.exec(x);
2587
2587
  if (x) {
2588
2588
  p = x[1];
2589
2589
  break;
@@ -2593,14 +2593,14 @@ m.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
2593
2593
  g ? l.content = t.highlight((function(f) {
2594
2594
  return f = f.replace(i, ""), f = f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(v, y) {
2595
2595
  var w;
2596
- return (y = y.toLowerCase())[0] === "#" ? (w = y[1] === "x" ? parseInt(y.slice(2), 16) : Number(y.slice(1)), c(w)) : o[y] || v;
2596
+ return (y = y.toLowerCase())[0] === "#" ? (w = y[1] === "x" ? parseInt(y.slice(2), 16) : Number(y.slice(1)), u(w)) : o[y] || v;
2597
2597
  });
2598
2598
  })(l.content), g, p) : p && p !== "none" && t.plugins.autoloader && (d = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), l.attributes.id = d, t.plugins.autoloader.loadLanguages(p, function() {
2599
2599
  var f = document.getElementById(d);
2600
2600
  f && (f.innerHTML = t.highlight(f.textContent, t.languages[p], p));
2601
2601
  }));
2602
2602
  }
2603
- }), RegExp(t.languages.markup.tag.pattern.source, "gi")), o = { amp: "&", lt: "<", gt: ">", quot: '"' }, c = String.fromCodePoint || String.fromCharCode;
2603
+ }), RegExp(t.languages.markup.tag.pattern.source, "gi")), o = { amp: "&", lt: "<", gt: ">", quot: '"' }, u = String.fromCodePoint || String.fromCharCode;
2604
2604
  t.languages.md = t.languages.markdown;
2605
2605
  })(m), m.languages.graphql = { comment: /#.*/, description: { pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, greedy: !0, alias: "string", inside: { "language-markdown": { pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, lookbehind: !0, inside: m.languages.markdown } } }, string: { pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, greedy: !0 }, number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, boolean: /\b(?:false|true)\b/, variable: /\$[a-z_]\w*/i, directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, "attr-name": { pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, greedy: !0 }, "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, constant: /\b[A-Z][A-Z_\d]*\b/, "class-name": { pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, lookbehind: !0 }, fragment: { pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-mutation": { pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-query": { pattern: /(\bquery\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, operator: /[!=|&]|\.{3}/, "property-query": /\w+(?=\s*\()/, object: /\w+(?=\s*\{)/, punctuation: /[!(){}\[\]:=,]/, property: /\w+/ }, m.hooks.add("after-tokenize", function(t) {
2606
2606
  if (t.language === "graphql")
@@ -2610,7 +2610,7 @@ m.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
2610
2610
  var r = e[n++];
2611
2611
  if (r.type === "keyword" && r.content === "mutation") {
2612
2612
  var a = [];
2613
- if (u(["definition-mutation", "punctuation"]) && p(1).content === "(") {
2613
+ if (c(["definition-mutation", "punctuation"]) && p(1).content === "(") {
2614
2614
  n += 2;
2615
2615
  var s = h(/^\($/, /^\)$/);
2616
2616
  if (s === -1)
@@ -2621,11 +2621,11 @@ m.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
2621
2621
  }
2622
2622
  n = s + 1;
2623
2623
  }
2624
- if (u(["punctuation", "property-query"]) && p(0).content === "{" && (n++, x(p(0), "property-mutation"), 0 < a.length)) {
2624
+ if (c(["punctuation", "property-query"]) && p(0).content === "{" && (n++, x(p(0), "property-mutation"), 0 < a.length)) {
2625
2625
  var o = h(/^\{$/, /^\}$/);
2626
2626
  if (o !== -1)
2627
- for (var c = n; c < o; c++) {
2628
- var l = e[c];
2627
+ for (var u = n; u < o; u++) {
2628
+ var l = e[u];
2629
2629
  l.type === "variable" && 0 <= a.indexOf(l.content) && x(l, "variable-input");
2630
2630
  }
2631
2631
  }
@@ -2634,7 +2634,7 @@ m.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
2634
2634
  function p(d) {
2635
2635
  return e[n + d];
2636
2636
  }
2637
- function u(d, g) {
2637
+ function c(d, g) {
2638
2638
  g = g || 0;
2639
2639
  for (var f = 0; f < d.length; f++) {
2640
2640
  var v = p(f + g);
@@ -2661,18 +2661,18 @@ m.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
2661
2661
  }
2662
2662
  }), m.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, (function(t) {
2663
2663
  var e = t.languages.javascript["template-string"], n = e.pattern.source, r = e.inside.interpolation, a = r.inside["interpolation-punctuation"], s = r.pattern.source;
2664
- function i(u, h) {
2665
- if (t.languages[u])
2666
- return { pattern: RegExp("((?:" + h + ")\\s*)" + n), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: u } } };
2664
+ function i(c, h) {
2665
+ if (t.languages[c])
2666
+ return { pattern: RegExp("((?:" + h + ")\\s*)" + n), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: c } } };
2667
2667
  }
2668
- function o(u, h, x) {
2669
- return u = { code: u, grammar: h, language: x }, t.hooks.run("before-tokenize", u), u.tokens = t.tokenize(u.code, u.grammar), t.hooks.run("after-tokenize", u), u.tokens;
2668
+ function o(c, h, x) {
2669
+ return c = { code: c, grammar: h, language: x }, t.hooks.run("before-tokenize", c), c.tokens = t.tokenize(c.code, c.grammar), t.hooks.run("after-tokenize", c), c.tokens;
2670
2670
  }
2671
- function c(u, h, x) {
2672
- var f = t.tokenize(u, { interpolation: { pattern: RegExp(s), lookbehind: !0 } }), d = 0, g = {}, f = o(f.map(function(y) {
2671
+ function u(c, h, x) {
2672
+ var f = t.tokenize(c, { interpolation: { pattern: RegExp(s), lookbehind: !0 } }), d = 0, g = {}, f = o(f.map(function(y) {
2673
2673
  if (typeof y == "string")
2674
2674
  return y;
2675
- for (var w, S, y = y.content; u.indexOf((S = d++, w = "___" + x.toUpperCase() + "_" + S + "___")) !== -1; )
2675
+ for (var w, S, y = y.content; c.indexOf((S = d++, w = "___" + x.toUpperCase() + "_" + S + "___")) !== -1; )
2676
2676
  ;
2677
2677
  return g[w] = y, w;
2678
2678
  }).join(""), h, x), v = Object.keys(g);
@@ -2683,20 +2683,20 @@ m.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
2683
2683
  var A, O, R, _, L, F, N, T = w[S];
2684
2684
  typeof T == "string" || typeof T.content == "string" ? (A = v[d], (N = (F = typeof T == "string" ? T : T.content).indexOf(A)) !== -1 && (++d, O = F.substring(0, N), L = g[A], R = void 0, (_ = {})["interpolation-punctuation"] = a, (_ = t.tokenize(L, _)).length === 3 && ((R = [1, 1]).push.apply(R, o(_[1], t.languages.javascript, "javascript")), _.splice.apply(_, R)), R = new t.Token("interpolation", _, r.alias, L), _ = F.substring(N + A.length), L = [], O && L.push(O), L.push(R), _ && (y(F = [_]), L.push.apply(L, F)), typeof T == "string" ? (w.splice.apply(w, [S, 1].concat(L)), S += L.length - 1) : T.content = L)) : (N = T.content, Array.isArray(N) ? y(N) : y([N]));
2685
2685
  }
2686
- })(f), new t.Token(x, f, "language-" + x, u);
2686
+ })(f), new t.Token(x, f, "language-" + x, c);
2687
2687
  }
2688
2688
  t.languages.javascript["template-string"] = [i("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source), i("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source), i("svg", /\bsvg/.source), i("markdown", /\b(?:markdown|md)/.source), i("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source), i("sql", /\bsql/.source), e].filter(Boolean);
2689
2689
  var l = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
2690
- function p(u) {
2691
- return typeof u == "string" ? u : Array.isArray(u) ? u.map(p).join("") : p(u.content);
2690
+ function p(c) {
2691
+ return typeof c == "string" ? c : Array.isArray(c) ? c.map(p).join("") : p(c.content);
2692
2692
  }
2693
- t.hooks.add("after-tokenize", function(u) {
2694
- u.language in l && (function h(x) {
2693
+ t.hooks.add("after-tokenize", function(c) {
2694
+ c.language in l && (function h(x) {
2695
2695
  for (var d = 0, g = x.length; d < g; d++) {
2696
2696
  var f, v, y, w = x[d];
2697
- typeof w != "string" && (f = w.content, Array.isArray(f) ? w.type === "template-string" ? (w = f[1], f.length === 3 && typeof w != "string" && w.type === "embedded-code" && (v = p(w), w = w.alias, w = Array.isArray(w) ? w[0] : w, y = t.languages[w]) && (f[1] = c(v, y, w))) : h(f) : typeof f != "string" && h([f]));
2697
+ typeof w != "string" && (f = w.content, Array.isArray(f) ? w.type === "template-string" ? (w = f[1], f.length === 3 && typeof w != "string" && w.type === "embedded-code" && (v = p(w), w = w.alias, w = Array.isArray(w) ? w[0] : w, y = t.languages[w]) && (f[1] = u(v, y, w))) : h(f) : typeof f != "string" && h([f]));
2698
2698
  }
2699
- })(u.tokens);
2699
+ })(c.tokens);
2700
2700
  });
2701
2701
  })(m), (function(t) {
2702
2702
  t.languages.typescript = t.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: !0, greedy: !0, inside: null }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ }), t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete t.languages.typescript.parameter, delete t.languages.typescript["literal-property"];
@@ -2722,27 +2722,27 @@ m.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
2722
2722
  }
2723
2723
  })(m), (function(t) {
2724
2724
  var e = t.util.clone(t.languages.javascript), n = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, r = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, a = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
2725
- function s(c, l) {
2726
- return c = c.replace(/<S>/g, function() {
2725
+ function s(u, l) {
2726
+ return u = u.replace(/<S>/g, function() {
2727
2727
  return n;
2728
2728
  }).replace(/<BRACES>/g, function() {
2729
2729
  return r;
2730
2730
  }).replace(/<SPREAD>/g, function() {
2731
2731
  return a;
2732
- }), RegExp(c, l);
2732
+ }), RegExp(u, l);
2733
2733
  }
2734
2734
  a = s(a).source, t.languages.jsx = t.languages.extend("markup", e), t.languages.jsx.tag.pattern = s(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), t.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, t.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, t.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, t.languages.jsx.tag.inside.comment = e.comment, t.languages.insertBefore("inside", "attr-name", { spread: { pattern: s(/<SPREAD>/.source), inside: t.languages.jsx } }, t.languages.jsx.tag), t.languages.insertBefore("inside", "special-attr", { script: { pattern: s(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: t.languages.jsx } } }, t.languages.jsx.tag);
2735
- function i(c) {
2736
- for (var l = [], p = 0; p < c.length; p++) {
2737
- var u = c[p], h = !1;
2738
- typeof u != "string" && (u.type === "tag" && u.content[0] && u.content[0].type === "tag" ? u.content[0].content[0].content === "</" ? 0 < l.length && l[l.length - 1].tagName === o(u.content[0].content[1]) && l.pop() : u.content[u.content.length - 1].content !== "/>" && l.push({ tagName: o(u.content[0].content[1]), openedBraces: 0 }) : 0 < l.length && u.type === "punctuation" && u.content === "{" ? l[l.length - 1].openedBraces++ : 0 < l.length && 0 < l[l.length - 1].openedBraces && u.type === "punctuation" && u.content === "}" ? l[l.length - 1].openedBraces-- : h = !0), (h || typeof u == "string") && 0 < l.length && l[l.length - 1].openedBraces === 0 && (h = o(u), p < c.length - 1 && (typeof c[p + 1] == "string" || c[p + 1].type === "plain-text") && (h += o(c[p + 1]), c.splice(p + 1, 1)), 0 < p && (typeof c[p - 1] == "string" || c[p - 1].type === "plain-text") && (h = o(c[p - 1]) + h, c.splice(p - 1, 1), p--), c[p] = new t.Token("plain-text", h, null, h)), u.content && typeof u.content != "string" && i(u.content);
2735
+ function i(u) {
2736
+ for (var l = [], p = 0; p < u.length; p++) {
2737
+ var c = u[p], h = !1;
2738
+ typeof c != "string" && (c.type === "tag" && c.content[0] && c.content[0].type === "tag" ? c.content[0].content[0].content === "</" ? 0 < l.length && l[l.length - 1].tagName === o(c.content[0].content[1]) && l.pop() : c.content[c.content.length - 1].content !== "/>" && l.push({ tagName: o(c.content[0].content[1]), openedBraces: 0 }) : 0 < l.length && c.type === "punctuation" && c.content === "{" ? l[l.length - 1].openedBraces++ : 0 < l.length && 0 < l[l.length - 1].openedBraces && c.type === "punctuation" && c.content === "}" ? l[l.length - 1].openedBraces-- : h = !0), (h || typeof c == "string") && 0 < l.length && l[l.length - 1].openedBraces === 0 && (h = o(c), p < u.length - 1 && (typeof u[p + 1] == "string" || u[p + 1].type === "plain-text") && (h += o(u[p + 1]), u.splice(p + 1, 1)), 0 < p && (typeof u[p - 1] == "string" || u[p - 1].type === "plain-text") && (h = o(u[p - 1]) + h, u.splice(p - 1, 1), p--), u[p] = new t.Token("plain-text", h, null, h)), c.content && typeof c.content != "string" && i(c.content);
2739
2739
  }
2740
2740
  }
2741
- var o = function(c) {
2742
- return c ? typeof c == "string" ? c : typeof c.content == "string" ? c.content : c.content.map(o).join("") : "";
2741
+ var o = function(u) {
2742
+ return u ? typeof u == "string" ? u : typeof u.content == "string" ? u.content : u.content.map(o).join("") : "";
2743
2743
  };
2744
- t.hooks.add("after-tokenize", function(c) {
2745
- c.language !== "jsx" && c.language !== "tsx" || i(c.tokens);
2744
+ t.hooks.add("after-tokenize", function(u) {
2745
+ u.language !== "jsx" && u.language !== "tsx" || i(u.tokens);
2746
2746
  });
2747
2747
  })(m), (function(t) {
2748
2748
  var e = t.util.clone(t.languages.typescript), e = (t.languages.tsx = t.languages.extend("jsx", e), delete t.languages.tsx.parameter, delete t.languages.tsx["literal-property"], t.languages.tsx.tag);
@@ -2773,7 +2773,7 @@ m.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
2773
2773
  })(m), m.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: /![sra](?=[:}]$)/, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, m.languages.python["string-interpolation"].inside.interpolation.inside.rest = m.languages.python, m.languages.py = m.languages.python, m.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, m.languages.webmanifest = m.languages.json;
2774
2774
  var lr = {};
2775
2775
  ar(lr, {
2776
- dracula: () => ur,
2776
+ dracula: () => cr,
2777
2777
  duotoneDark: () => pr,
2778
2778
  duotoneLight: () => fr,
2779
2779
  github: () => mr,
@@ -2794,7 +2794,7 @@ ar(lr, {
2794
2794
  vsDark: () => zt,
2795
2795
  vsLight: () => jr
2796
2796
  });
2797
- var cr = {
2797
+ var ur = {
2798
2798
  plain: {
2799
2799
  color: "#F8F8F2",
2800
2800
  backgroundColor: "#282A36"
@@ -2856,7 +2856,7 @@ var cr = {
2856
2856
  }
2857
2857
  }
2858
2858
  ]
2859
- }, ur = cr, dr = {
2859
+ }, cr = ur, dr = {
2860
2860
  plain: {
2861
2861
  backgroundColor: "#2a2734",
2862
2862
  color: "#9a86fd"
@@ -4644,12 +4644,12 @@ var cr = {
4644
4644
  return G(
4645
4645
  (n) => {
4646
4646
  var r = n, { token: a, className: s, style: i } = r, o = Mt(r, ["token", "className", "style"]);
4647
- const c = Ae(W({}, o), {
4647
+ const u = Ae(W({}, o), {
4648
4648
  className: $t("token", ...a.types, s),
4649
4649
  children: a.content,
4650
4650
  style: e(a)
4651
4651
  });
4652
- return i != null && (c.style = W(W({}, c.style || {}), i)), c;
4652
+ return i != null && (u.style = W(W({}, u.style || {}), i)), u;
4653
4653
  },
4654
4654
  [e]
4655
4655
  );
@@ -4667,7 +4667,7 @@ var cr = {
4667
4667
  }, Xr = (t) => {
4668
4668
  const e = [[]], n = [t], r = [0], a = [t.length];
4669
4669
  let s = 0, i = 0, o = [];
4670
- const c = [o];
4670
+ const u = [o];
4671
4671
  for (; i > -1; ) {
4672
4672
  for (; (s = r[i]++) < a[i]; ) {
4673
4673
  let l, p = e[i];
@@ -4682,15 +4682,15 @@ var cr = {
4682
4682
  content: x[0]
4683
4683
  });
4684
4684
  for (let g = 1; g < d; g++)
4685
- pt(o), c.push(o = []), o.push({
4685
+ pt(o), u.push(o = []), o.push({
4686
4686
  types: p,
4687
4687
  content: x[g]
4688
4688
  });
4689
4689
  }
4690
4690
  i--, e.pop(), n.pop(), r.pop(), a.pop();
4691
4691
  }
4692
- return pt(o), c;
4693
- }, ft = Xr, Jr = ({ prism: t, code: e, grammar: n, language: r }) => ce(() => {
4692
+ return pt(o), u;
4693
+ }, ft = Xr, Jr = ({ prism: t, code: e, grammar: n, language: r }) => ue(() => {
4694
4694
  if (n == null)
4695
4695
  return ft([e]);
4696
4696
  const a = {
@@ -4709,9 +4709,9 @@ var cr = {
4709
4709
  ]), Qr = (t, e) => {
4710
4710
  const { plain: n } = t, r = t.styles.reduce((a, s) => {
4711
4711
  const { languages: i, style: o } = s;
4712
- return i && !i.includes(e) || s.types.forEach((c) => {
4713
- const l = W(W({}, a[c]), o);
4714
- a[c] = l;
4712
+ return i && !i.includes(e) || s.types.forEach((u) => {
4713
+ const l = W(W({}, a[u]), o);
4714
+ a[u] = l;
4715
4715
  }), a;
4716
4716
  }, {});
4717
4717
  return r.root = n, r.plain = Ae(W({}, n), { backgroundColor: void 0 }), r;
@@ -4722,13 +4722,13 @@ var cr = {
4722
4722
  theme: r,
4723
4723
  prism: a
4724
4724
  }) => {
4725
- const s = e.toLowerCase(), i = ea(r, s), o = Gr(i), c = Kr(i), l = a.languages[s], p = Jr({ prism: a, language: s, code: n, grammar: l });
4725
+ const s = e.toLowerCase(), i = ea(r, s), o = Gr(i), u = Kr(i), l = a.languages[s], p = Jr({ prism: a, language: s, code: n, grammar: l });
4726
4726
  return t({
4727
4727
  tokens: p,
4728
4728
  className: `prism-code language-${s}`,
4729
4729
  style: i != null ? i.root : {},
4730
4730
  getLineProps: o,
4731
- getTokenProps: c
4731
+ getTokenProps: u
4732
4732
  });
4733
4733
  }, na = (t) => me(ta, Ae(W({}, t), {
4734
4734
  prism: t.prism || m,
@@ -4750,33 +4750,33 @@ const ra = (t, e) => e.some((n) => {
4750
4750
  displayName: t.displayName ?? t.name
4751
4751
  }), ia = we(void 0), Ht = we(void 0), Vt = Ut(ia, 'Could not find nearest <CodeBlock /> component. Please wrap this component with a <CodeBlock /> component imported from "react-code-block".'), Ve = Ut(Ht, 'Could not find nearest <CodeBlock.Code /> component. Please wrap this component with <CodeBlock.Code /> component imported from "react-code-block".'), oa = ({ as: t, children: e, ...n }, r) => {
4752
4752
  const { lines: a, words: s, ...i } = Vt(), o = t ?? "pre";
4753
- return k.jsx(na, { ...i, children: (c) => k.jsx(o, { ...n, ref: r, children: c.tokens.map((l, p) => {
4754
- const u = p + 1, h = ra(u, a);
4755
- return k.jsx(Ht.Provider, { value: { highlight: c, line: l, lineNumber: u }, children: typeof e == "function" ? e({ isLineHighlighted: h, lineNumber: u }, p) : e }, p);
4753
+ return k.jsx(na, { ...i, children: (u) => k.jsx(o, { ...n, ref: r, children: u.tokens.map((l, p) => {
4754
+ const c = p + 1, h = ra(c, a);
4755
+ return k.jsx(Ht.Provider, { value: { highlight: u, line: l, lineNumber: c }, children: typeof e == "function" ? e({ isLineHighlighted: h, lineNumber: c }, p) : e }, p);
4756
4756
  }) }) });
4757
4757
  }, la = ({ as: t, children: e, className: n, ...r }, a) => {
4758
- const { highlight: s, line: i } = Ve(), { getLineProps: o } = s, c = t ?? "div";
4759
- return k.jsx(c, { ...o({ line: i, className: n }), ...r, ref: a, children: e });
4760
- }, ca = ({ as: t, children: e = ({ children: s }) => k.jsx("span", { children: s }), className: n, ...r }, a) => {
4761
- const { words: s } = Vt(), { line: i, highlight: o, lineNumber: c } = Ve(), { getTokenProps: l } = o, p = t ?? "span";
4762
- return k.jsx($e.Fragment, { children: i.map((u, h) => {
4758
+ const { highlight: s, line: i } = Ve(), { getLineProps: o } = s, u = t ?? "div";
4759
+ return k.jsx(u, { ...o({ line: i, className: n }), ...r, ref: a, children: e });
4760
+ }, ua = ({ as: t, children: e = ({ children: s }) => k.jsx("span", { children: s }), className: n, ...r }, a) => {
4761
+ const { words: s } = Vt(), { line: i, highlight: o, lineNumber: u } = Ve(), { getTokenProps: l } = o, p = t ?? "span";
4762
+ return k.jsx($e.Fragment, { children: i.map((c, h) => {
4763
4763
  const { children: x, ...d } = l({
4764
- token: u,
4764
+ token: c,
4765
4765
  className: n
4766
4766
  }), g = s.length ? sa(x, s) : [x];
4767
4767
  return k.jsx($e.Fragment, { children: g.map((f, v) => k.jsx(p, { ...d, ...r, ref: a, children: e({
4768
4768
  children: f,
4769
- isTokenHighlighted: aa(f, c, s)
4769
+ isTokenHighlighted: aa(f, u, s)
4770
4770
  }) }, v)) }, h);
4771
4771
  }) });
4772
- }, ua = ({ as: t, ...e }, n) => {
4772
+ }, ca = ({ as: t, ...e }, n) => {
4773
4773
  const { lineNumber: r } = Ve(), a = t ?? "span";
4774
4774
  return k.jsx(a, { ...e, ref: n, children: r });
4775
4775
  };
4776
4776
  Le(oa);
4777
4777
  Le(la);
4778
- Le(ca);
4779
4778
  Le(ua);
4779
+ Le(ca);
4780
4780
  var ht = { exports: {} }, ie = {}, mt;
4781
4781
  function da() {
4782
4782
  if (mt) return ie;
@@ -4826,14 +4826,14 @@ const z = ga, K = ({
4826
4826
  className: s,
4827
4827
  disabled: i = !1,
4828
4828
  loading: o = !1,
4829
- round: c = !1,
4829
+ round: u = !1,
4830
4830
  ...l
4831
4831
  }) => /* @__PURE__ */ J.jsx(
4832
4832
  "button",
4833
4833
  {
4834
4834
  className: z(
4835
4835
  "flex gap-2 justify-center items-center disabled:pointer-events-none",
4836
- c ? "rounded-full" : "rounded-lg",
4836
+ u ? "rounded-full" : "rounded-lg",
4837
4837
  fa(t),
4838
4838
  ha(e),
4839
4839
  s
@@ -4962,11 +4962,11 @@ const z = ga, K = ({
4962
4962
  onPrevious: s,
4963
4963
  onNext: i,
4964
4964
  onQuit: o,
4965
- isValid: c,
4965
+ isValid: u,
4966
4966
  hasPreviousStep: l,
4967
4967
  hasNextStep: p
4968
4968
  }) => {
4969
- const { t: u } = Ue();
4969
+ const { t: c } = Ue();
4970
4970
  return /* @__PURE__ */ k.jsxs(
4971
4971
  "div",
4972
4972
  {
@@ -5005,7 +5005,7 @@ const z = ga, K = ({
5005
5005
  onClick: s,
5006
5006
  iconBefore: /* @__PURE__ */ k.jsx(_t, {}),
5007
5007
  disabled: !s,
5008
- text: u("Previous")
5008
+ text: c("Previous")
5009
5009
  }
5010
5010
  ),
5011
5011
  /* @__PURE__ */ k.jsx(
@@ -5014,8 +5014,8 @@ const z = ga, K = ({
5014
5014
  variant: "subtle",
5015
5015
  onClick: i,
5016
5016
  iconAfter: /* @__PURE__ */ k.jsx(Pt, {}),
5017
- disabled: !i || !c,
5018
- text: u(p ? "Next" : "Submit")
5017
+ disabled: !i || !u,
5018
+ text: c(p ? "Next" : "Submit")
5019
5019
  }
5020
5020
  )
5021
5021
  ] }),
@@ -5044,10 +5044,10 @@ const z = ga, K = ({
5044
5044
  onNext: s,
5045
5045
  onQuit: i,
5046
5046
  alternatives: o = [],
5047
- onAlternativeSelect: c,
5047
+ onAlternativeSelect: u,
5048
5048
  selectedAlternatives: l,
5049
5049
  maxAlternatives: p,
5050
- verticalAlignment: u,
5050
+ verticalAlignment: c,
5051
5051
  isValid: h,
5052
5052
  hasPreviousStep: x,
5053
5053
  hasNextStep: d
@@ -5069,12 +5069,12 @@ const z = ga, K = ({
5069
5069
  {
5070
5070
  className: z(
5071
5071
  "flex py-3 md:py-4 gap-2 items-end md:items-start justify-end md:justify-start",
5072
- u ? "flex-col" : "flex-wrap"
5072
+ c ? "flex-col" : "flex-wrap"
5073
5073
  ),
5074
5074
  children: o.map((g) => /* @__PURE__ */ k.jsx("div", { children: /* @__PURE__ */ k.jsxs(
5075
5075
  "button",
5076
5076
  {
5077
- onClick: () => c(g.id),
5077
+ onClick: () => u(g.id),
5078
5078
  className: "flex md:flex-row-reverse items-center gap-2 p-3 justify-end rounded-lg border text-label-primary-light dark:text-label-primary-dark border-separator-regular-light dark:border-separator-regular-dark",
5079
5079
  children: [
5080
5080
  /* @__PURE__ */ k.jsx(Y, { variant: "B1Button", children: g.text }),
@@ -5088,12 +5088,12 @@ const z = ga, K = ({
5088
5088
  {
5089
5089
  className: z(
5090
5090
  "flex py-3 md:py-4 gap-2 justify-end md:justify-start items-end md:items-start",
5091
- u ? "flex-col" : "flex-wrap"
5091
+ c ? "flex-col" : "flex-wrap"
5092
5092
  ),
5093
5093
  children: o.map((g) => /* @__PURE__ */ k.jsx("div", { children: /* @__PURE__ */ k.jsx(
5094
5094
  "button",
5095
5095
  {
5096
- onClick: () => c(g.id),
5096
+ onClick: () => u(g.id),
5097
5097
  className: z(
5098
5098
  "flex items-center gap-2 p-3 justify-end rounded-lg border shrink",
5099
5099
  l.includes(g.id) ? "text-label-quaternary-light dark:text-label-quaternary-dark border-label-quaternary-light dark:border-label-quaternary-dark bg-secondary-action-button-light dark:bg-secondary-action-button-dark" : "text-label-primary-light dark:text-label-primary-dark border-separator-regular-light dark:border-separator-regular-dark"
@@ -5156,10 +5156,10 @@ const z = ga, K = ({
5156
5156
  onNext: s,
5157
5157
  onQuit: i,
5158
5158
  inputText: o,
5159
- setInputText: c,
5159
+ setInputText: u,
5160
5160
  maxCharacters: l,
5161
5161
  isValid: p,
5162
- hasPreviousStep: u,
5162
+ hasPreviousStep: c,
5163
5163
  hasNextStep: h
5164
5164
  }) => {
5165
5165
  const { t: x } = Ue();
@@ -5174,7 +5174,7 @@ const z = ga, K = ({
5174
5174
  onNext: s,
5175
5175
  onQuit: i,
5176
5176
  isValid: p,
5177
- hasPreviousStep: u,
5177
+ hasPreviousStep: c,
5178
5178
  hasNextStep: h,
5179
5179
  children: /* @__PURE__ */ k.jsxs("div", { className: "flex flex-col py-3 gap-2", children: [
5180
5180
  l && /* @__PURE__ */ k.jsxs("div", { className: "flex items-center justify-between", children: [
@@ -5205,7 +5205,7 @@ const z = ga, K = ({
5205
5205
  qt.B1
5206
5206
  ),
5207
5207
  value: o,
5208
- onChange: (d) => c(d.target.value)
5208
+ onChange: (d) => u(d.target.value)
5209
5209
  }
5210
5210
  )
5211
5211
  ] })
@@ -5549,12 +5549,12 @@ function le(t) {
5549
5549
  const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], s = e.match(a);
5550
5550
  if (!s)
5551
5551
  return null;
5552
- const i = s[0], o = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(o) ? Ba(o, (u) => u.test(i)) : (
5552
+ const i = s[0], o = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], u = Array.isArray(o) ? Ba(o, (c) => c.test(i)) : (
5553
5553
  // [TODO] -- I challenge you to fix the type
5554
- Da(o, (u) => u.test(i))
5554
+ Da(o, (c) => c.test(i))
5555
5555
  );
5556
5556
  let l;
5557
- l = t.valueCallback ? t.valueCallback(c) : c, l = n.valueCallback ? (
5557
+ l = t.valueCallback ? t.valueCallback(u) : u, l = n.valueCallback ? (
5558
5558
  // [TODO] -- I challenge you to fix the type
5559
5559
  n.valueCallback(l)
5560
5560
  ) : l;
@@ -5747,10 +5747,10 @@ function ls(t) {
5747
5747
  t[n] === void 0 && (t[n] = e[n]);
5748
5748
  }), t;
5749
5749
  }
5750
- function cs(t) {
5750
+ function us(t) {
5751
5751
  return typeof t != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((n) => n.test(t));
5752
5752
  }
5753
- const bt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, us = function(t, e) {
5753
+ const bt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, cs = function(t, e) {
5754
5754
  const r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
5755
5755
  path: "/"
5756
5756
  }, a = encodeURIComponent(e);
@@ -5799,7 +5799,7 @@ const bt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, us = function(t, e) {
5799
5799
  path: "/",
5800
5800
  sameSite: "strict"
5801
5801
  };
5802
- n && (a.expires = /* @__PURE__ */ new Date(), a.expires.setTime(a.expires.getTime() + n * 60 * 1e3)), r && (a.domain = r), document.cookie = us(t, e, a);
5802
+ n && (a.expires = /* @__PURE__ */ new Date(), a.expires.setTime(a.expires.getTime() + n * 60 * 1e3)), r && (a.domain = r), document.cookie = cs(t, e, a);
5803
5803
  },
5804
5804
  read(t) {
5805
5805
  const e = `${t}=`, n = document.cookie.split(";");
@@ -5871,8 +5871,8 @@ var ds = {
5871
5871
  if (e) {
5872
5872
  const i = s.split("&");
5873
5873
  for (let o = 0; o < i.length; o++) {
5874
- const c = i[o].indexOf("=");
5875
- c > 0 && i[o].substring(0, c) === e && (r = i[o].substring(c + 1));
5874
+ const u = i[o].indexOf("=");
5875
+ u > 0 && i[o].substring(0, u) === e && (r = i[o].substring(u + 1));
5876
5876
  }
5877
5877
  }
5878
5878
  if (r) return r;
@@ -6034,7 +6034,7 @@ class Jt {
6034
6034
  let a = this.detectors[r].lookup(this.options);
6035
6035
  a && typeof a == "string" && (a = [a]), a && (n = n.concat(a));
6036
6036
  }
6037
- }), n = n.filter((r) => r != null && !cs(r)).map((r) => this.options.convertDetectedLanguage(r)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? n : n.length > 0 ? n[0] : null;
6037
+ }), n = n.filter((r) => r != null && !us(r)).map((r) => this.options.convertDetectedLanguage(r)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? n : n.length > 0 ? n[0] : null;
6038
6038
  }
6039
6039
  cacheUserLanguage(e) {
6040
6040
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
@@ -6140,4 +6140,4 @@ export {
6140
6140
  Fs as a,
6141
6141
  Ts as f
6142
6142
  };
6143
- //# sourceMappingURL=form-manager-Dre89wMr.js.map
6143
+ //# sourceMappingURL=form-manager-DRUgPPf5.js.map