aoi-comp 1.0.4 → 1.0.6

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.
@@ -1950,7 +1950,7 @@ var A = {
1950
1950
  clone(t) {
1951
1951
  return t ||= this.options, t.prefix = t.prefix || this.prefix, new e(this.logger, t);
1952
1952
  }
1953
- }(), B = class {
1953
+ }(), Pe = class {
1954
1954
  constructor() {
1955
1955
  this.observers = {};
1956
1956
  }
@@ -1983,7 +1983,7 @@ var A = {
1983
1983
  for (let i = 0; i < r; i++) n(e, ...t);
1984
1984
  });
1985
1985
  }
1986
- }, Pe = class extends B {
1986
+ }, Fe = class extends Pe {
1987
1987
  constructor(e, t = {
1988
1988
  ns: ["translation"],
1989
1989
  defaultNS: "translation"
@@ -2042,7 +2042,7 @@ var A = {
2042
2042
  toJSON() {
2043
2043
  return this.data;
2044
2044
  }
2045
- }, Fe = {
2045
+ }, Ie = {
2046
2046
  processors: {},
2047
2047
  addPostProcessor(e) {
2048
2048
  this.processors[e.name] = e;
@@ -2052,20 +2052,20 @@ var A = {
2052
2052
  t = this.processors[e]?.process(t, n, r, i) ?? t;
2053
2053
  }), t;
2054
2054
  }
2055
- }, Ie = Symbol("i18next/PATH_KEY");
2056
- function Le() {
2055
+ }, Le = Symbol("i18next/PATH_KEY");
2056
+ function Re() {
2057
2057
  let e = [], t = Object.create(null), n;
2058
- return t.get = (r, i) => (n?.revoke?.(), i === Ie ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2058
+ return t.get = (r, i) => (n?.revoke?.(), i === Le ? e : (e.push(i), n = Proxy.revocable(r, t), n.proxy)), Proxy.revocable(Object.create(null), t).proxy;
2059
2059
  }
2060
- function V(e, t) {
2061
- let { [Ie]: n } = e(Le()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":", a = t?.enableSelector === "strict";
2060
+ function B(e, t) {
2061
+ let { [Le]: n } = e(Re()), r = t?.keySeparator ?? ".", i = t?.nsSeparator ?? ":", a = t?.enableSelector === "strict";
2062
2062
  if (n.length > 1 && i) {
2063
2063
  let e = t?.ns, o = a ? Array.isArray(e) ? e : e ? [e] : null : Array.isArray(e) ? e : null;
2064
2064
  if (o && (a ? o : o.length > 1 ? o.slice(1) : []).includes(n[0])) return `${n[0]}${i}${n.slice(1).join(r)}`;
2065
2065
  }
2066
2066
  return n.join(r);
2067
2067
  }
2068
- var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = class e extends B {
2068
+ var ze = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", Be = class e extends Pe {
2069
2069
  constructor(e, t = {}) {
2070
2070
  super(), ve([
2071
2071
  "resourceStore",
@@ -2085,7 +2085,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2085
2085
  if (e == null) return !1;
2086
2086
  let r = this.resolve(e, n);
2087
2087
  if (r?.res === void 0) return !1;
2088
- let i = Re(r.res);
2088
+ let i = ze(r.res);
2089
2089
  return !(n.returnObjects === !1 && i);
2090
2090
  }
2091
2091
  extractFromKey(e, t) {
@@ -2109,10 +2109,10 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2109
2109
  translate(t, n, r) {
2110
2110
  let i = typeof n == "object" ? { ...n } : n;
2111
2111
  if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof i == "object" && (i = { ...i }), i ||= {}, t == null) return "";
2112
- typeof t == "function" && (t = V(t, {
2112
+ typeof t == "function" && (t = B(t, {
2113
2113
  ...this.options,
2114
2114
  ...i
2115
- })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? V(e, {
2115
+ })), Array.isArray(t) || (t = [String(t)]), t = t.map((e) => typeof e == "function" ? B(e, {
2116
2116
  ...this.options,
2117
2117
  ...i
2118
2118
  }) : String(e));
@@ -2140,7 +2140,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2140
2140
  "[object RegExp]"
2141
2141
  ], v = i.joinArrays === void 0 ? this.options.joinArrays : i.joinArrays, y = !this.i18nFormat || this.i18nFormat.handleAsObject, b = i.count !== void 0 && !N(i.count), x = e.hasDefaultValue(i), S = b ? this.pluralResolver.getSuffix(d, i.count, i) : "", C = i.ordinal && b ? this.pluralResolver.getSuffix(d, i.count, { ordinal: !1 }) : "", w = b && !i.ordinal && i.count === 0, T = w && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${S}`] || i[`defaultValue${C}`] || i.defaultValue, E = m;
2142
2142
  y && !m && x && (E = T);
2143
- let D = Re(E), ee = Object.prototype.toString.apply(E);
2143
+ let D = ze(E), ee = Object.prototype.toString.apply(E);
2144
2144
  if (y && E && D && !_.includes(ee) && !(N(v) && Array.isArray(E))) {
2145
2145
  if (!i.returnObjects && !this.options.returnObjects) {
2146
2146
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
@@ -2156,7 +2156,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2156
2156
  let r = `${n}${o}${e}`;
2157
2157
  x && !m ? t[e] = this.translate(r, {
2158
2158
  ...i,
2159
- defaultValue: Re(T) ? T[e] : void 0,
2159
+ defaultValue: ze(T) ? T[e] : void 0,
2160
2160
  joinArrays: !1,
2161
2161
  ns: c
2162
2162
  }) : t[e] = this.translate(r, {
@@ -2227,7 +2227,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2227
2227
  !n.lng && r && r.res && (n.lng = this.language || r.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...e) => i?.[0] === e[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`), null) : this.translate(...e, t), n)), n.interpolation && this.interpolator.reset();
2228
2228
  }
2229
2229
  let a = n.postProcess || this.options.postProcess, o = N(a) ? [a] : a;
2230
- return e != null && o?.length && n.applyPostProcessor !== !1 && (e = Fe.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
2230
+ return e != null && o?.length && n.applyPostProcessor !== !1 && (e = Ie.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
2231
2231
  i18nResolved: {
2232
2232
  ...r,
2233
2233
  usedParams: this.getUsedParamsDetails(n)
@@ -2237,7 +2237,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2237
2237
  }
2238
2238
  resolve(e, t = {}) {
2239
2239
  let n, r, i, a, o;
2240
- return N(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? V(e, {
2240
+ return N(e) && (e = [e]), Array.isArray(e) && (e = e.map((e) => typeof e == "function" ? B(e, {
2241
2241
  ...this.options,
2242
2242
  ...t
2243
2243
  }) : e)), e.forEach((e) => {
@@ -2314,7 +2314,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2314
2314
  for (let t in e) if (Object.prototype.hasOwnProperty.call(e, t) && t.startsWith("defaultValue") && e[t] !== void 0) return !0;
2315
2315
  return !1;
2316
2316
  }
2317
- }, Be = class {
2317
+ }, Ve = class {
2318
2318
  constructor(e) {
2319
2319
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = z.create("languageUtils");
2320
2320
  }
@@ -2372,17 +2372,17 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2372
2372
  r.includes(e) || i(this.formatLanguageCode(e));
2373
2373
  }), r;
2374
2374
  }
2375
- }, Ve = {
2375
+ }, He = {
2376
2376
  zero: 0,
2377
2377
  one: 1,
2378
2378
  two: 2,
2379
2379
  few: 3,
2380
2380
  many: 4,
2381
2381
  other: 5
2382
- }, He = {
2382
+ }, Ue = {
2383
2383
  select: (e) => e === 1 ? "one" : "other",
2384
2384
  resolvedOptions: () => ({ pluralCategories: ["one", "other"] })
2385
- }, Ue = class {
2385
+ }, We = class {
2386
2386
  constructor(e, t = {}) {
2387
2387
  this.languageUtils = e, this.options = t, this.logger = z.create("pluralResolver"), this.pluralRulesCache = {};
2388
2388
  }
@@ -2399,8 +2399,8 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2399
2399
  try {
2400
2400
  a = new Intl.PluralRules(n, { type: r });
2401
2401
  } catch {
2402
- if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), He;
2403
- if (!e.match(/-|_/)) return He;
2402
+ if (typeof Intl > "u") return this.logger.error("No Intl support, please use an Intl polyfill!"), Ue;
2403
+ if (!e.match(/-|_/)) return Ue;
2404
2404
  let n = this.languageUtils.getLanguagePartFromCode(e);
2405
2405
  a = this.getRule(n, t);
2406
2406
  }
@@ -2415,16 +2415,16 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2415
2415
  }
2416
2416
  getSuffixes(e, t = {}) {
2417
2417
  let n = this.getRule(e, t);
2418
- return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => Ve[e] - Ve[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
2418
+ return n ||= this.getRule("dev", t), n ? n.resolvedOptions().pluralCategories.sort((e, t) => He[e] - He[t]).map((e) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${e}`) : [];
2419
2419
  }
2420
2420
  getSuffix(e, t, n = {}) {
2421
2421
  let r = this.getRule(e, n);
2422
2422
  return r ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${r.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
2423
2423
  }
2424
- }, We = (e, t, n, r = ".", i = !0) => {
2424
+ }, Ge = (e, t, n, r = ".", i = !0) => {
2425
2425
  let a = we(e, t, n);
2426
2426
  return !a && i && N(n) && (a = Me(e, n, r), a === void 0 && (a = Me(t, n, r))), a;
2427
- }, Ge = (e) => e.replace(/\$/g, "$$$$"), Ke = class {
2427
+ }, Ke = (e) => e.replace(/\$/g, "$$$$"), qe = class {
2428
2428
  constructor(e = {}) {
2429
2429
  this.logger = z.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((e) => e), this.init(e);
2430
2430
  }
@@ -2443,7 +2443,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2443
2443
  interpolate(e, t, n, r) {
2444
2444
  let i, a, o, s = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (e) => {
2445
2445
  if (!e.includes(this.formatSeparator)) {
2446
- let i = We(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
2446
+ let i = Ge(t, s, e, this.options.keySeparator, this.options.ignoreJSONStructure);
2447
2447
  return this.alwaysFormat ? this.format(i, void 0, n, {
2448
2448
  ...r,
2449
2449
  ...t,
@@ -2451,7 +2451,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2451
2451
  }) : i;
2452
2452
  }
2453
2453
  let i = e.split(this.formatSeparator), a = i.shift().trim(), o = i.join(this.formatSeparator).trim();
2454
- return this.format(We(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
2454
+ return this.format(Ge(t, s, a, this.options.keySeparator, this.options.ignoreJSONStructure), o, n, {
2455
2455
  ...r,
2456
2456
  ...t,
2457
2457
  interpolationkey: a
@@ -2478,7 +2478,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2478
2478
  } else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`), a = "";
2479
2479
  else !N(a) && !this.useRawValueToEscape && (a = _e(a));
2480
2480
  let s = t.safeValue(a);
2481
- if (e = e.replace(i[0], Ge(s)), u ? (t.regex.lastIndex += s.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
2481
+ if (e = e.replace(i[0], Ke(s)), u ? (t.regex.lastIndex += s.length, t.regex.lastIndex -= i[0].length) : t.regex.lastIndex = 0, o++, o >= this.maxReplaces) break;
2482
2482
  }
2483
2483
  }), e;
2484
2484
  }
@@ -2512,7 +2512,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2512
2512
  }
2513
2513
  return e;
2514
2514
  }
2515
- }, qe = (e) => {
2515
+ }, Je = (e) => {
2516
2516
  let t = e.toLowerCase().trim(), n = {};
2517
2517
  if (e.includes("(")) {
2518
2518
  let r = e.split("(");
@@ -2529,7 +2529,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2529
2529
  formatName: t,
2530
2530
  formatOptions: n
2531
2531
  };
2532
- }, Je = (e) => {
2532
+ }, Ye = (e) => {
2533
2533
  let t = {};
2534
2534
  return (n, r, i) => {
2535
2535
  let a = i;
@@ -2540,13 +2540,13 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2540
2540
  let o = r + JSON.stringify(a), s = t[o];
2541
2541
  return s || (s = e(R(r), i), t[o] = s), s(n);
2542
2542
  };
2543
- }, Ye = (e) => (t, n, r) => e(R(n), r)(t), Xe = class {
2543
+ }, Xe = (e) => (t, n, r) => e(R(n), r)(t), Ze = class {
2544
2544
  constructor(e = {}) {
2545
2545
  this.logger = z.create("formatter"), this.options = e, this.init(e);
2546
2546
  }
2547
2547
  init(e, t = { interpolation: {} }) {
2548
2548
  this.formatSeparator = t.interpolation.formatSeparator || ",";
2549
- let n = t.cacheInBuiltFormats ? Je : Ye;
2549
+ let n = t.cacheInBuiltFormats ? Ye : Xe;
2550
2550
  this.formats = {
2551
2551
  number: n((e, t) => {
2552
2552
  let n = new Intl.NumberFormat(e, { ...t });
@@ -2577,7 +2577,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2577
2577
  this.formats[e.toLowerCase().trim()] = t;
2578
2578
  }
2579
2579
  addCached(e, t) {
2580
- this.formats[e.toLowerCase().trim()] = Je(t);
2580
+ this.formats[e.toLowerCase().trim()] = Ye(t);
2581
2581
  }
2582
2582
  format(e, t, n, r = {}) {
2583
2583
  if (!t || e == null) return e;
@@ -2588,7 +2588,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2588
2588
  a.push(t);
2589
2589
  }
2590
2590
  return a.reduce((e, t) => {
2591
- let { formatName: i, formatOptions: a } = qe(t);
2591
+ let { formatName: i, formatOptions: a } = Je(t);
2592
2592
  if (this.formats[i]) {
2593
2593
  let t = e;
2594
2594
  try {
@@ -2606,9 +2606,9 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2606
2606
  return e;
2607
2607
  }, e);
2608
2608
  }
2609
- }, Ze = (e, t) => {
2609
+ }, Qe = (e, t) => {
2610
2610
  e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
2611
- }, Qe = class extends B {
2611
+ }, $e = class extends Pe {
2612
2612
  constructor(e, t, n, r = {}) {
2613
2613
  super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = r, this.logger = z.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = r.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r.maxRetries >= 0 ? r.maxRetries : 5, this.retryTimeout = r.retryTimeout >= 1 ? r.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, r.backend, r);
2614
2614
  }
@@ -2638,7 +2638,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2638
2638
  t && this.emit("failedLoading", i, a, t), !t && n && this.store.addResourceBundle(i, a, n, void 0, void 0, { skipCopy: !0 }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
2639
2639
  let o = {};
2640
2640
  this.queue.forEach((n) => {
2641
- Ce(n.loaded, [i], a), Ze(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
2641
+ Ce(n.loaded, [i], a), Qe(n, e), t && n.errors.push(t), n.pendingCount === 0 && !n.done && (Object.keys(n.loaded).forEach((e) => {
2642
2642
  o[e] || (o[e] = {});
2643
2643
  let t = n.loaded[e];
2644
2644
  t.length && t.forEach((t) => {
@@ -2728,7 +2728,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2728
2728
  !e || !e[0] || this.store.addResource(e[0], t, n, r);
2729
2729
  }
2730
2730
  }
2731
- }, $e = () => ({
2731
+ }, et = () => ({
2732
2732
  debug: !1,
2733
2733
  initAsync: !0,
2734
2734
  ns: ["translation"],
@@ -2784,13 +2784,13 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2784
2784
  skipOnVariables: !0
2785
2785
  },
2786
2786
  cacheInBuiltFormats: !0
2787
- }), et = (e) => (N(e.ns) && (e.ns = [e.ns]), N(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), N(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && !e.supportedLngs.includes("cimode") && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e), H = () => {}, tt = (e) => {
2787
+ }), tt = (e) => (N(e.ns) && (e.ns = [e.ns]), N(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), N(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && !e.supportedLngs.includes("cimode") && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e), V = () => {}, nt = (e) => {
2788
2788
  Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t) => {
2789
2789
  typeof e[t] == "function" && (e[t] = e[t].bind(e));
2790
2790
  });
2791
- }, U = class e extends B {
2791
+ }, H = class e extends Pe {
2792
2792
  constructor(e = {}, t) {
2793
- if (super(), this.options = et(e), this.services = {}, this.logger = z, this.modules = { external: [] }, tt(this), t && !this.isInitialized && !e.isClone) {
2793
+ if (super(), this.options = tt(e), this.services = {}, this.logger = z, this.modules = { external: [] }, nt(this), t && !this.isInitialized && !e.isClone) {
2794
2794
  if (!this.options.initAsync) return this.init(e, t), this;
2795
2795
  setTimeout(() => {
2796
2796
  this.init(e, t);
@@ -2799,11 +2799,11 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2799
2799
  }
2800
2800
  init(e = {}, t) {
2801
2801
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (N(e.ns) ? e.defaultNS = e.ns : e.ns.includes("translation") || (e.defaultNS = e.ns[0]));
2802
- let n = $e();
2802
+ let n = et();
2803
2803
  this.options = {
2804
2804
  ...n,
2805
2805
  ...this.options,
2806
- ...et(e)
2806
+ ...tt(e)
2807
2807
  }, this.options.interpolation = {
2808
2808
  ...n.interpolation,
2809
2809
  ...this.options.interpolation
@@ -2812,19 +2812,19 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2812
2812
  if (!this.options.isClone) {
2813
2813
  this.modules.logger ? z.init(r(this.modules.logger), this.options) : z.init(null, this.options);
2814
2814
  let e;
2815
- e = this.modules.formatter ? this.modules.formatter : Xe;
2816
- let t = new Be(this.options);
2817
- this.store = new Pe(this.options.resources, this.options);
2815
+ e = this.modules.formatter ? this.modules.formatter : Ze;
2816
+ let t = new Ve(this.options);
2817
+ this.store = new Fe(this.options.resources, this.options);
2818
2818
  let n = this.services;
2819
- n.logger = z, n.resourceStore = this.store, n.languageUtils = t, n.pluralResolver = new Ue(t, { prepend: this.options.pluralSeparator }), e && (n.formatter = r(e), n.formatter.init && n.formatter.init(n, this.options), this.options.interpolation.format = n.formatter.format.bind(n.formatter)), n.interpolator = new Ke(this.options), n.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n.backendConnector = new Qe(r(this.modules.backend), n.resourceStore, n, this.options), n.backendConnector.on("*", (e, ...t) => {
2819
+ n.logger = z, n.resourceStore = this.store, n.languageUtils = t, n.pluralResolver = new We(t, { prepend: this.options.pluralSeparator }), e && (n.formatter = r(e), n.formatter.init && n.formatter.init(n, this.options), this.options.interpolation.format = n.formatter.format.bind(n.formatter)), n.interpolator = new qe(this.options), n.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n.backendConnector = new $e(r(this.modules.backend), n.resourceStore, n, this.options), n.backendConnector.on("*", (e, ...t) => {
2820
2820
  this.emit(e, ...t);
2821
- }), this.modules.languageDetector && (n.languageDetector = r(this.modules.languageDetector), n.languageDetector.init && n.languageDetector.init(n, this.options.detection, this.options)), this.modules.i18nFormat && (n.i18nFormat = r(this.modules.i18nFormat), n.i18nFormat.init && n.i18nFormat.init(this)), this.translator = new ze(this.services, this.options), this.translator.on("*", (e, ...t) => {
2821
+ }), this.modules.languageDetector && (n.languageDetector = r(this.modules.languageDetector), n.languageDetector.init && n.languageDetector.init(n, this.options.detection, this.options)), this.modules.i18nFormat && (n.i18nFormat = r(this.modules.i18nFormat), n.i18nFormat.init && n.i18nFormat.init(this)), this.translator = new Be(this.services, this.options), this.translator.on("*", (e, ...t) => {
2822
2822
  this.emit(e, ...t);
2823
2823
  }), this.modules.external.forEach((e) => {
2824
2824
  e.init && e.init(this);
2825
2825
  });
2826
2826
  }
2827
- if (this.format = this.options.interpolation.format, t ||= H, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2827
+ if (this.format = this.options.interpolation.format, t ||= V, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2828
2828
  let e = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2829
2829
  e.length > 0 && e[0] !== "dev" && (this.options.lng = e[0]);
2830
2830
  }
@@ -2852,7 +2852,7 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2852
2852
  };
2853
2853
  return this.options.resources || !this.options.initAsync ? a() : setTimeout(a, 0), i;
2854
2854
  }
2855
- loadResources(e, t = H) {
2855
+ loadResources(e, t = V) {
2856
2856
  let n = t, r = N(e) ? e : this.language;
2857
2857
  if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
2858
2858
  if (r?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
@@ -2868,14 +2868,14 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2868
2868
  }
2869
2869
  reloadResources(e, t, n) {
2870
2870
  let r = P();
2871
- return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= H, this.services.backendConnector.reload(e, t, (e) => {
2871
+ return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e ||= this.languages, t ||= this.options.ns, n ||= V, this.services.backendConnector.reload(e, t, (e) => {
2872
2872
  r.resolve(), n(e);
2873
2873
  }), r;
2874
2874
  }
2875
2875
  use(e) {
2876
2876
  if (!e) throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
2877
2877
  if (!e.type) throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
2878
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Fe.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
2878
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Ie.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
2879
2879
  }
2880
2880
  setResolvedLanguage(e) {
2881
2881
  if (!(!e || !this.languages) && !["cimode", "dev"].includes(e)) {
@@ -2916,9 +2916,9 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2916
2916
  ...this.options,
2917
2917
  ...o
2918
2918
  };
2919
- Array.isArray(i) && !s && (c.ns = i), typeof o.keyPrefix == "function" && (o.keyPrefix = V(o.keyPrefix, c));
2919
+ Array.isArray(i) && !s && (c.ns = i), typeof o.keyPrefix == "function" && (o.keyPrefix = B(o.keyPrefix, c));
2920
2920
  let l = this.options.keySeparator || ".", u;
2921
- return o.keyPrefix && Array.isArray(e) ? u = e.map((e) => (typeof e == "function" && (e = V(e, c)), `${o.keyPrefix}${l}${e}`)) : (typeof e == "function" && (e = V(e, c)), u = o.keyPrefix ? `${o.keyPrefix}${l}${e}` : e), this.t(u, o);
2921
+ return o.keyPrefix && Array.isArray(e) ? u = e.map((e) => (typeof e == "function" && (e = B(e, c)), `${o.keyPrefix}${l}${e}`)) : (typeof e == "function" && (e = B(e, c)), u = o.keyPrefix ? `${o.keyPrefix}${l}${e}` : e), this.t(u, o);
2922
2922
  };
2923
2923
  return N(e) ? a.lng = e : a.lngs = e, a.ns = t, a.keyPrefix = n, a;
2924
2924
  }
@@ -2971,14 +2971,14 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2971
2971
  if (e && e.direction) return e.direction;
2972
2972
  }
2973
2973
  } catch {}
2974
- let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new Be($e());
2974
+ let t = /* @__PURE__ */ "ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb".split("."), n = this.services?.languageUtils || new Ve(et());
2975
2975
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.includes(n.getLanguagePartFromCode(e)) || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
2976
2976
  }
2977
2977
  static createInstance(t = {}, n) {
2978
2978
  let r = new e(t, n);
2979
2979
  return r.createInstance = e.createInstance, r;
2980
2980
  }
2981
- cloneInstance(t = {}, n = H) {
2981
+ cloneInstance(t = {}, n = V) {
2982
2982
  let r = t.forkResourceStore;
2983
2983
  r && delete t.forkResourceStore;
2984
2984
  let i = {
@@ -2992,18 +2992,18 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
2992
2992
  "language"
2993
2993
  ].forEach((e) => {
2994
2994
  a[e] = this[e];
2995
- }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new Pe(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
2995
+ }), a.services = { ...this.services }, a.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, r && (a.store = new Fe(Object.keys(this.store.data).reduce((e, t) => (e[t] = { ...this.store.data[t] }, e[t] = Object.keys(e[t]).reduce((n, r) => (n[r] = { ...e[t][r] }, n), e[t]), e), {}), i), a.services.resourceStore = a.store), t.interpolation) {
2996
2996
  let e = {
2997
- ...$e().interpolation,
2997
+ ...et().interpolation,
2998
2998
  ...this.options.interpolation,
2999
2999
  ...t.interpolation
3000
3000
  }, n = {
3001
3001
  ...i,
3002
3002
  interpolation: e
3003
3003
  };
3004
- a.services.interpolator = new Ke(n);
3004
+ a.services.interpolator = new qe(n);
3005
3005
  }
3006
- return a.translator = new ze(a.services, i), a.translator.on("*", (e, ...t) => {
3006
+ return a.translator = new Be(a.services, i), a.translator.on("*", (e, ...t) => {
3007
3007
  a.emit(e, ...t);
3008
3008
  }), a.init(i, n), a.translator.options = i, a.translator.backendConnector.services.utils = { hasLoadedNamespace: a.hasLoadedNamespace.bind(a) }, a;
3009
3009
  }
@@ -3017,10 +3017,10 @@ var Re = (e) => !N(e) && typeof e != "boolean" && typeof e != "number", ze = cla
3017
3017
  };
3018
3018
  }
3019
3019
  }.createInstance();
3020
- U.createInstance, U.dir, U.init, U.loadResources, U.reloadResources, U.use, U.changeLanguage, U.getFixedT, U.t, U.exists, U.setDefaultNamespace, U.hasLoadedNamespace, U.loadNamespaces, U.loadLanguages;
3020
+ H.createInstance, H.dir, H.init, H.loadResources, H.reloadResources, H.use, H.changeLanguage, H.getFixedT, H.t, H.exists, H.setDefaultNamespace, H.hasLoadedNamespace, H.loadNamespaces, H.loadLanguages;
3021
3021
  //#endregion
3022
3022
  //#region node_modules/.pnpm/react-i18next@17.0.11_i18ne_00b880b3cd01c3819045f8a7994d0c96/node_modules/react-i18next/dist/es/unescape.js
3023
- var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, rt = {
3023
+ var rt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, it = {
3024
3024
  "&amp;": "&",
3025
3025
  "&#38;": "&",
3026
3026
  "&lt;": "<",
@@ -3041,7 +3041,7 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3041
3041
  "&#8230;": "…",
3042
3042
  "&#x2F;": "/",
3043
3043
  "&#47;": "/"
3044
- }, it = (e) => rt[e], at = (e) => e.replace(nt, it), ot = {
3044
+ }, at = (e) => it[e], ot = (e) => e.replace(rt, at), st = {
3045
3045
  bindI18n: "languageChanged",
3046
3046
  bindI18nStore: "",
3047
3047
  transEmptyNodeValue: "",
@@ -3054,21 +3054,21 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3054
3054
  "p"
3055
3055
  ],
3056
3056
  useSuspense: !0,
3057
- unescape: at,
3057
+ unescape: ot,
3058
3058
  transDefaultProps: void 0
3059
- }, st = (e = {}) => {
3060
- ot = {
3061
- ...ot,
3059
+ }, ct = (e = {}) => {
3060
+ st = {
3061
+ ...st,
3062
3062
  ...e
3063
3063
  };
3064
- }, ct = () => ot, lt, ut = (e) => {
3065
- lt = e;
3066
- }, dt = () => lt, ft = {
3064
+ }, lt = () => st, ut, dt = (e) => {
3065
+ ut = e;
3066
+ }, ft = () => ut, pt = {
3067
3067
  type: "3rdParty",
3068
3068
  init(e) {
3069
- st(e.options.react), ut(e);
3069
+ ct(e.options.react), dt(e);
3070
3070
  }
3071
- }, pt = { ui: {
3071
+ }, mt = { ui: {
3072
3072
  tool: {
3073
3073
  retry: "重试",
3074
3074
  error: "错误",
@@ -3121,7 +3121,7 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3121
3121
  writeErr: "文件写入失败",
3122
3122
  filePath: "文件路径: {{path}}"
3123
3123
  }
3124
- } }, mt = { ui: {
3124
+ } }, ht = { ui: {
3125
3125
  tool: {
3126
3126
  retry: "Retry",
3127
3127
  error: "Error",
@@ -3174,22 +3174,28 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3174
3174
  writeErr: "File write failed",
3175
3175
  filePath: "File path: {{path}}"
3176
3176
  }
3177
- } }, ht = (e, t) => {
3177
+ } }, gt = (e, t) => {
3178
3178
  let n = [], r = Object.assign(e, {
3179
- zh: pt,
3180
- en: mt
3179
+ zh: mt,
3180
+ en: ht
3181
3181
  }), i = Object.keys(r), a = i.reduce((e, t) => {
3182
3182
  let i = r[t];
3183
3183
  return e[t] = { translation: i }, i?.ui || n.push(t), e;
3184
3184
  }, {});
3185
- return U.use(ft).init({
3185
+ return H.use(pt).init({
3186
3186
  lng: t,
3187
3187
  resources: a,
3188
3188
  interpolation: { escapeValue: !1 }
3189
3189
  }), n.length ? [] : i;
3190
- }, gt = (e = "") => new Proxy((t) => U.t(e, t), { get(t, n) {
3191
- return n === "toString" || typeof n == "symbol" ? void 0 : gt(e ? `${e}.${n}` : n);
3192
- } }), W = gt("ui"), _t = /* @__PURE__ */ t(((e, t) => {
3190
+ }, _t = (e = "") => new Proxy((t) => H.t(e, t), { get(t, n) {
3191
+ return n === "toString" || typeof n == "symbol" ? void 0 : _t(e ? `${e}.${n}` : n);
3192
+ } }), U = _t("ui"), W = (e, t, n) => {
3193
+ for (let r of t) Reflect.defineProperty(e, r, {
3194
+ value: e[r],
3195
+ ...n
3196
+ });
3197
+ return e;
3198
+ }, vt = /* @__PURE__ */ t(((e, t) => {
3193
3199
  (function(n, r) {
3194
3200
  typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
3195
3201
  })(e, (function() {
@@ -3483,7 +3489,7 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3483
3489
  return w(1e3 * e);
3484
3490
  }, w.en = b[y], w.Ls = b, w.p = {}, w;
3485
3491
  }));
3486
- })), vt = class {
3492
+ })), yt = class {
3487
3493
  #e = {};
3488
3494
  #t = new EventTarget();
3489
3495
  emit = (e, t) => (this.#t.dispatchEvent(new CustomEvent(e, { detail: t })), this);
@@ -3506,15 +3512,15 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3506
3512
  }
3507
3513
  return this;
3508
3514
  };
3509
- }, yt = [
3515
+ }, bt = [
3510
3516
  "systemError",
3511
3517
  "messageUpdated",
3512
3518
  "defectUpdated"
3513
- ], G = {}, bt = (e = []) => {
3514
- let t = [...yt, ...e];
3519
+ ], G = {}, xt = (e = []) => {
3520
+ let t = [...bt, ...e];
3515
3521
  for (let e of t) G[e] = e.replace(/([A-Z])/g, "-$1").toLowerCase();
3516
- return t.length === yt.length + e.length;
3517
- }, { emit: xt, emitSync: St, on: Ct, off: wt, once: Tt, clear: Et } = new vt(), Dt = new class {
3522
+ return t.length === bt.length + e.length;
3523
+ }, { emit: St, emitSync: Ct, on: wt, off: Tt, once: Et, clear: Dt } = new yt(), Ot = new class {
3518
3524
  #e = !1;
3519
3525
  #t = [];
3520
3526
  #n = "";
@@ -3531,11 +3537,11 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3531
3537
  this.#t.splice(0, this.#t.length);
3532
3538
  }
3533
3539
  #r() {
3534
- xt(G.defectUpdated);
3540
+ St(G.defectUpdated);
3535
3541
  }
3536
3542
  read(e, t = this.#e) {
3537
3543
  this.#n = e, this.#e = t, Y.access(this.#n, Y.constants.F_OK, (e) => {
3538
- e ? Zt(this.#n, this.#t) : Xt(this.#n, (e) => {
3544
+ e ? Zt(this.#n, this.#t) : Z(this.#n, (e) => {
3539
3545
  this.#t = e, this.#r();
3540
3546
  });
3541
3547
  });
@@ -3585,7 +3591,7 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3585
3591
  t && e[t.type]++;
3586
3592
  }
3587
3593
  }
3588
- }(), K = Z({
3594
+ }(), K = W({
3589
3595
  workDir: "{workDir}",
3590
3596
  rootDir: "{rootDir}",
3591
3597
  dataDir: "{workDir}/Data",
@@ -3600,7 +3606,7 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3600
3606
  enumerable: !1,
3601
3607
  writable: !0,
3602
3608
  configurable: !0
3603
- }), Ot = {
3609
+ }), kt = {
3604
3610
  saveDir: "",
3605
3611
  mesSaveTime: 90,
3606
3612
  recordSaveTime: 30,
@@ -3614,41 +3620,41 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3614
3620
  DatabaseName: "aoi",
3615
3621
  UserName: "root",
3616
3622
  Password: "123456"
3617
- }, kt = () => {
3623
+ }, At = () => {
3618
3624
  let e = JSON.stringify(q, void 0, 4);
3619
3625
  return Zt(K.settingPath, e), !0;
3620
- }, At = async (e = !0) => {
3621
- let t = await Xt(K.settingPath, e);
3622
- return t && jt(t, !1), q.onChange?.(), !0;
3623
- }, jt = (e = {}, t = !0) => {
3626
+ }, jt = async (e = !0) => {
3627
+ let t = await Z(K.settingPath, e);
3628
+ return t && Mt(t, !1), q.onChange?.(), !0;
3629
+ }, Mt = (e = {}, t = !0) => {
3624
3630
  let n = !1;
3625
- for (let t of Object.keys(q)) e[t] === void 0 ? (e[t] = Ot[t], n = !0) : q[t] !== e[t] && (q[t] = e[t], n = !0);
3626
- t && n && kt();
3627
- }, Mt = async (e = !0) => (Nt.level = (await Xt(K.userPath, e))?.UserLevel ?? 0, Nt.onChange?.(), !0), q = Z({
3628
- ...Ot,
3629
- setConfig: jt,
3631
+ for (let t of Object.keys(q)) e[t] === void 0 ? (e[t] = kt[t], n = !0) : q[t] !== e[t] && (q[t] = e[t], n = !0);
3632
+ t && n && At();
3633
+ }, Nt = async (e = !0) => (Pt.level = (await Z(K.userPath, e))?.UserLevel ?? 0, Pt.onChange?.(), !0), q = W({
3634
+ ...kt,
3635
+ setConfig: Mt,
3630
3636
  onChange: void 0
3631
3637
  }, ["setConfig", "onChange"], {
3632
3638
  enumerable: !1,
3633
3639
  writable: !0,
3634
3640
  configurable: !0
3635
- }), Nt = Z({
3641
+ }), Pt = W({
3636
3642
  level: 0,
3637
3643
  onChange: void 0
3638
3644
  }, ["onChange"], {
3639
3645
  enumerable: !1,
3640
3646
  writable: !0,
3641
3647
  configurable: !0
3642
- }), Pt = (e = {}) => {
3648
+ }), Ft = (e = {}) => {
3643
3649
  let { exe: t } = $, n = t.getWorkDir(), r = t.getCurrentPath();
3644
3650
  K.workDir = n, K.rootDir = r;
3645
3651
  for (let e in K) K[e] = K[e].replace(/\{(\w+)\}/g, (e, t) => K[t]);
3646
3652
  q.saveDir = K.dataDir, Object.assign(q, e);
3647
3653
  for (let e of ["dataDir", "ngImagesDir"]) Y.mkdir(K[e], { recursive: !0 }, () => {});
3648
- Y.existsSync(K.settingPath) ? At(!1) : kt(), Y.existsSync(K.userPath) && Mt(!1);
3654
+ Y.existsSync(K.settingPath) ? jt(!1) : At(), Y.existsSync(K.userPath) && Nt(!1);
3649
3655
  let i = Y.existsSync(K.workDefectPath), a = i ? K.workDefectPath : K.globalDefectPath;
3650
- Dt.read(a, i), setTimeout(() => Qt(K.settingPath, At), 1e3), setTimeout(() => Qt(K.userPath, Mt), 1e3);
3651
- }, Ft = {
3656
+ Ot.read(a, i), setTimeout(() => Qt(K.settingPath, jt), 1e3), setTimeout(() => Qt(K.userPath, Nt), 1e3);
3657
+ }, It = {
3652
3658
  0: {
3653
3659
  editing: !0,
3654
3660
  visible: !0,
@@ -3677,7 +3683,7 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3677
3683
  this.#e.splice(0, this.#e.length);
3678
3684
  }
3679
3685
  #t() {
3680
- xt(G.messageUpdated);
3686
+ St(G.messageUpdated);
3681
3687
  }
3682
3688
  #n(e, t, n, r = {}) {
3683
3689
  let i = Date.now();
@@ -3691,13 +3697,13 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3691
3697
  }), this.#e.length > this.maxLength && this.#e.pop(), this.#t(), i;
3692
3698
  }
3693
3699
  error(e, t, n) {
3694
- return this.#n("error", e, t ?? W.tool.error(), n);
3700
+ return this.#n("error", e, t ?? U.tool.error(), n);
3695
3701
  }
3696
3702
  warning(e, t, n) {
3697
- return this.#n("warning", e, t ?? W.tool.warning(), n);
3703
+ return this.#n("warning", e, t ?? U.tool.warning(), n);
3698
3704
  }
3699
3705
  info(e, t, n) {
3700
- return this.#n("info", e, t ?? W.tool.info(), n);
3706
+ return this.#n("info", e, t ?? U.tool.info(), n);
3701
3707
  }
3702
3708
  delete(e) {
3703
3709
  let t = this.#e.findIndex((t) => t.id === e);
@@ -3714,31 +3720,31 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3714
3720
  clear() {
3715
3721
  this.#e.splice(0, this.#e.length), this.#t();
3716
3722
  }
3717
- }(), It = /* @__PURE__ */ e(_t(), 1), Y = typeof __non_webpack_require__ == "function" ? __non_webpack_require__("fs") : typeof globalThis.require == "function" ? globalThis.require("fs") : null, Lt = (e, t = 1500) => {
3723
+ }(), Lt = /* @__PURE__ */ e(vt(), 1), Y = typeof __non_webpack_require__ == "function" ? __non_webpack_require__("fs") : typeof globalThis.require == "function" ? globalThis.require("fs") : null, Rt = (e, t = 1500) => {
3718
3724
  let n = null;
3719
3725
  return function(...r) {
3720
3726
  n && clearTimeout(n), n = setTimeout(e.bind(this, ...r), t);
3721
3727
  };
3722
- }, Rt = (e, t = 1500) => {
3728
+ }, zt = (e, t = 1500) => {
3723
3729
  let n = null;
3724
3730
  return function(...r) {
3725
3731
  n ||= setTimeout(() => {
3726
3732
  e.call(this, ...r), n = null;
3727
3733
  }, t);
3728
3734
  };
3729
- }, zt = (e) => {
3735
+ }, Bt = (e) => {
3730
3736
  if (!e || typeof e != "object") return e;
3731
3737
  let t = e.constructor();
3732
- for (let n in e) Object.hasOwn(e, n) && (t[n] = zt(e[n]));
3738
+ for (let n in e) Object.hasOwn(e, n) && (t[n] = Bt(e[n]));
3733
3739
  return t;
3734
- }, Bt = (e, t) => {
3740
+ }, Vt = (e, t) => {
3735
3741
  if (e === t) return !0;
3736
3742
  if (typeof e != "object" || typeof t != "object" || e === null || t === null) return !1;
3737
3743
  let n = Object.keys(e), r = Object.keys(t);
3738
3744
  if (n.length !== r.length) return !1;
3739
- for (let i of n) if (!r.includes(i) || !Bt(e[i], t[i])) return !1;
3745
+ for (let i of n) if (!r.includes(i) || !Vt(e[i], t[i])) return !1;
3740
3746
  return !0;
3741
- }, Vt = (e = "_") => `${Date.now()}${e}${Math.floor(Math.random() * 1e4)}`, X = (e, t) => Wt(e).includes(t), Ht = (e) => e == null ? !1 : typeof e == "string" || Array.isArray(e) ? e.length > 0 : typeof e != "object" || Object.keys(e).length > 0, Ut = (e = Date.now(), t = "YYYY-MM-DD HH:mm:ss") => (0, It.default)(e).format(t), Wt = (e) => Object.prototype.toString.call(e).slice(8, -1).toLowerCase(), Gt = (e, t = {}) => {
3747
+ }, Ht = (e = "_") => `${Date.now()}${e}${Math.floor(Math.random() * 1e4)}`, X = (e, t) => Gt(e).includes(t), Ut = (e) => e == null ? !1 : typeof e == "string" || Array.isArray(e) ? e.length > 0 : typeof e != "object" || Object.keys(e).length > 0, Wt = (e = Date.now(), t = "YYYY-MM-DD HH:mm:ss") => (0, Lt.default)(e).format(t), Gt = (e) => Object.prototype.toString.call(e).slice(8, -1).toLowerCase(), Kt = (e, t = {}) => {
3742
3748
  try {
3743
3749
  let n = D(e);
3744
3750
  for (let e in t) n = n[e]?.(t[e]);
@@ -3746,26 +3752,20 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3746
3752
  } catch {
3747
3753
  return !1;
3748
3754
  }
3749
- }, Kt = (e) => {
3755
+ }, qt = (e) => {
3750
3756
  let t = $.token?.[e];
3751
- return Ht(t) ? t : getComputedStyle(document.getElementById("root")).getPropertyValue(`--aoi-${e}`).trim();
3752
- }, qt = (e, t = 2) => {
3757
+ return Ut(t) ? t : getComputedStyle(document.getElementById("root")).getPropertyValue(`--aoi-${e}`).trim();
3758
+ }, Jt = (e, t = 2) => {
3753
3759
  let n = Number(e);
3754
3760
  return Number.isNaN(n) ? 0 : Number(n.toFixed(t));
3755
- }, Jt = (e, t = {}, n = {}) => {
3761
+ }, Yt = (e, t = {}, n = {}) => {
3756
3762
  let r = e.constructor === String ? document.createElement(e) : e;
3757
- for (let [e, n] of Object.entries(t)) n.constructor === Object ? Jt(r[e], n) : e.startsWith("--") ? r.setProperty(e, n) : r[e] = n;
3763
+ for (let [e, n] of Object.entries(t)) n.constructor === Object ? Yt(r[e], n) : e.startsWith("--") ? r.setProperty(e, n) : r[e] = n;
3758
3764
  for (let [e, t] of Object.entries(n)) r.addEventListener(e, t);
3759
3765
  return r;
3760
- }, Yt = (e) => {
3766
+ }, Xt = (e) => {
3761
3767
  e?.stopPropagation(), e?.preventDefault(), e.cancelBubble = !0;
3762
- }, Z = (e, t, n) => {
3763
- for (let r of t) Reflect.defineProperty(e, r, {
3764
- value: e[r],
3765
- ...n
3766
- });
3767
- return e;
3768
- }, Xt = (e, t = !1) => {
3768
+ }, Z = (e, t = !1) => {
3769
3769
  if (X(t, "function")) {
3770
3770
  Y.readFile(e, "utf-8", (n, r) => {
3771
3771
  if (n || !r) {
@@ -3774,7 +3774,7 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3774
3774
  }
3775
3775
  let i = Q(r);
3776
3776
  if (!i) {
3777
- J.error(W.file.filePath({ path: e }), W.file.readErr());
3777
+ J.error(U.file.filePath({ path: e }), U.file.readErr());
3778
3778
  return;
3779
3779
  }
3780
3780
  t(i);
@@ -3793,11 +3793,11 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3793
3793
  return t ? Q(t) : null;
3794
3794
  }
3795
3795
  } catch (t) {
3796
- return J.error(W.file.filePath({ path: e }), W.file.readErr()), $.dev && console.error(t), null;
3796
+ return J.error(U.file.filePath({ path: e }), U.file.readErr()), $.dev && console.error(t), null;
3797
3797
  }
3798
3798
  }, Zt = (e, t) => {
3799
3799
  Y.writeFile(e, $t(t), "utf-8", (t) => {
3800
- t && (J.error(W.file.filePath({ path: e }), W.file.writeErr()), $.dev && console.error(t));
3800
+ t && (J.error(U.file.filePath({ path: e }), U.file.writeErr()), $.dev && console.error(t));
3801
3801
  });
3802
3802
  }, Qt = (e, t) => {
3803
3803
  X(t, "function") && Y.watch(e, (e) => {
@@ -3894,21 +3894,21 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3894
3894
  }
3895
3895
  async #n({ tableName: e, sqlKey: t, typeErr: n, execFunc: r }, ...i) {
3896
3896
  let a = this.#e.find((t) => t.tableName === e);
3897
- if (!a) return J.error(W.sql.tableErr({ tableName: e }), W.sql.error()), !1;
3897
+ if (!a) return J.error(U.sql.tableErr({ tableName: e }), U.sql.error()), !1;
3898
3898
  let { exe: o } = $, s = an(a.sqls[t], ...i);
3899
3899
  try {
3900
3900
  let e = await r(o, s);
3901
3901
  if (e) return e;
3902
3902
  throw Error();
3903
3903
  } catch (e) {
3904
- return J.error(W.sql.execErr({ error: s }), n), $.dev && console.error(e), !1;
3904
+ return J.error(U.sql.execErr({ error: s }), n), $.dev && console.error(e), !1;
3905
3905
  }
3906
3906
  }
3907
3907
  update(e, t, ...n) {
3908
3908
  return this.#n({
3909
3909
  tableName: e,
3910
3910
  sqlKey: t,
3911
- typeErr: W.sql.updateErr(),
3911
+ typeErr: U.sql.updateErr(),
3912
3912
  execFunc: async (e, t) => await e.writeDataBase(t) === 0
3913
3913
  }, ...n);
3914
3914
  }
@@ -3916,7 +3916,7 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3916
3916
  return this.#n({
3917
3917
  tableName: e,
3918
3918
  sqlKey: t,
3919
- typeErr: W.sql.selectErr(),
3919
+ typeErr: U.sql.selectErr(),
3920
3920
  execFunc: async (e, t) => {
3921
3921
  let n = await e.findDataBaseData(t);
3922
3922
  return n?.length ? Q(n, []) : [];
@@ -3927,7 +3927,7 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3927
3927
  return this.#n({
3928
3928
  tableName: e,
3929
3929
  sqlKey: t,
3930
- typeErr: W.sql.selectErr(),
3930
+ typeErr: U.sql.selectErr(),
3931
3931
  execFunc: async (e, t) => {
3932
3932
  let n = await e.findSingleDataBaseData(t);
3933
3933
  return n?.length ? Q(n) : null;
@@ -3942,14 +3942,14 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3942
3942
  }
3943
3943
  if (t.size) {
3944
3944
  let e = Array.from(t).join(", ");
3945
- return J.error(W.sql.tableErr({ tableName: e }), W.sql.error()), !1;
3945
+ return J.error(U.sql.tableErr({ tableName: e }), U.sql.error()), !1;
3946
3946
  }
3947
3947
  let { exe: r } = $, i = n.join("&");
3948
3948
  try {
3949
3949
  if (await r.batchWriteDataBase(i)) return !0;
3950
3950
  throw Error();
3951
3951
  } catch (e) {
3952
- return J.error(W.sql.execErr({ error: i }), W.sql.batchErr()), $.dev && console.error(e), !1;
3952
+ return J.error(U.sql.execErr({ error: i }), U.sql.batchErr()), $.dev && console.error(e), !1;
3953
3953
  }
3954
3954
  }
3955
3955
  }, sn = (e) => {
@@ -3996,7 +3996,7 @@ var nt = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
3996
3996
  dev: !1,
3997
3997
  level: null
3998
3998
  }, ln = ({ exe: e = null, cv: t = null, neat: n = !1, dev: r = !1, resource: i = {}, lang: a = "zh", sqls: o = [], evt: s = [], level: c = {}, config: l = {}, imgQueueLen: u = 3, msgMaxLen: d = 100 } = {}) => {
3999
- $.exe = e, $.cv = t, $.neat = n, $.dev = r, $.level = c, $.langs = ht(i, a), $.db = sn(o), $.evt = bt(s), J.maxLength = d, cn.maxLength = u, Pt(l);
3999
+ $.exe = e, $.cv = t, $.neat = n, $.dev = r, $.level = c, $.langs = gt(i, a), $.db = sn(o), $.evt = xt(s), J.maxLength = d, cn.maxLength = u, Ft(l);
4000
4000
  };
4001
4001
  //#endregion
4002
- export { M as $, J as A, St as B, Gt as C, Vt as D, Kt as E, Nt as F, _t as G, wt as H, Dt as I, ct as J, W as K, G as L, K as M, Pt as N, Qt as O, q as P, he as Q, Et as R, Rt as S, Wt as T, Ct as U, bt as V, Tt as W, U as X, at as Y, V as Z, tn as _, en as a, Yt as b, Bt as c, Ht as d, fe as et, X as f, rn as g, nn as h, sn as i, Ft as j, Zt as k, Ut as l, Xt as m, ln as n, Lt as o, Q as p, dt as q, cn as r, zt as s, $ as t, ie as tt, Y as u, Jt as v, qt as w, $t as x, Z as y, xt as z };
4002
+ export { M as $, It as A, xt as B, Jt as C, Qt as D, Ht as E, Ot as F, W as G, wt as H, G as I, lt as J, U as K, Dt as L, Ft as M, q as N, Zt as O, Pt as P, he as Q, St as R, Kt as S, qt as T, Et as U, Tt as V, vt as W, H as X, ot as Y, B as Z, tn as _, en as a, $t as b, Vt as c, Ut as d, fe as et, X as f, rn as g, nn as h, sn as i, K as j, J as k, Wt as l, Z as m, ln as n, Rt as o, Q as p, ft as q, cn as r, Bt as s, $ as t, ie as tt, Y as u, Yt as v, Gt as w, zt as x, Xt as y, Ct as z };