@invoice-sdk/widget 1.53.1 → 1.55.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.
@@ -2,14 +2,14 @@ var it = Object.defineProperty, ot = Object.defineProperties;
2
2
  var st = Object.getOwnPropertyDescriptors;
3
3
  var be = Object.getOwnPropertySymbols;
4
4
  var rt = Object.prototype.hasOwnProperty, at = Object.prototype.propertyIsEnumerable;
5
- var Se = (o, e, t) => e in o ? it(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, p = (o, e) => {
5
+ var Se = (o, e, t) => e in o ? it(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, g = (o, e) => {
6
6
  for (var t in e || (e = {}))
7
7
  rt.call(e, t) && Se(o, t, e[t]);
8
8
  if (be)
9
9
  for (var t of be(e))
10
10
  at.call(e, t) && Se(o, t, e[t]);
11
11
  return o;
12
- }, x = (o, e) => ot(o, st(e));
12
+ }, w = (o, e) => ot(o, st(e));
13
13
  var se = (o, e, t) => new Promise((n, i) => {
14
14
  var s = (c) => {
15
15
  try {
@@ -36,19 +36,19 @@ const m = (o) => typeof o == "string", z = () => {
36
36
  o.forEach((n) => {
37
37
  e[n] && (t[n] = e[n]);
38
38
  });
39
- }, lt = /###/g, xe = (o) => o && o.indexOf("###") > -1 ? o.replace(lt, ".") : o, $e = (o) => !o || m(o), Q = (o, e, t) => {
39
+ }, lt = /###/g, we = (o) => o && o.indexOf("###") > -1 ? o.replace(lt, ".") : o, xe = (o) => !o || m(o), Q = (o, e, t) => {
40
40
  const n = m(e) ? e.split(".") : e;
41
41
  let i = 0;
42
42
  for (; i < n.length - 1; ) {
43
- if ($e(o)) return {};
44
- const s = xe(n[i]);
43
+ if (xe(o)) return {};
44
+ const s = we(n[i]);
45
45
  !o[s] && t && (o[s] = new t()), Object.prototype.hasOwnProperty.call(o, s) ? o = o[s] : o = {}, ++i;
46
46
  }
47
- return $e(o) ? {} : {
47
+ return xe(o) ? {} : {
48
48
  obj: o,
49
- k: xe(n[i])
49
+ k: we(n[i])
50
50
  };
51
- }, Pe = (o, e, t) => {
51
+ }, $e = (o, e, t) => {
52
52
  const {
53
53
  obj: n,
54
54
  k: i
@@ -91,7 +91,7 @@ var dt = {
91
91
  "/": "&#x2F;"
92
92
  };
93
93
  const ft = (o) => m(o) ? o.replace(/[&<>"'\/]/g, (e) => dt[e]) : o;
94
- class gt {
94
+ class pt {
95
95
  constructor(e) {
96
96
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
97
97
  }
@@ -103,9 +103,9 @@ class gt {
103
103
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
104
104
  }
105
105
  }
106
- const pt = [" ", ",", "?", "!", ";"], mt = new gt(20), vt = (o, e, t) => {
106
+ const gt = [" ", ",", "?", "!", ";"], mt = new pt(20), vt = (o, e, t) => {
107
107
  e = e || "", t = t || "";
108
- const n = pt.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
108
+ const n = gt.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
109
109
  if (n.length === 0) return !0;
110
110
  const i = mt.getRegExp(`(${n.map((r) => r === "?" ? "\\?" : r).join("|")})`);
111
111
  let s = !i.test(o);
@@ -173,7 +173,7 @@ class te {
173
173
  return i && !this.debug ? null : (m(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
174
174
  }
175
175
  create(e) {
176
- return new te(this.logger, p({
176
+ return new te(this.logger, g({
177
177
  prefix: `${this.prefix}:${e}:`
178
178
  }, this.options));
179
179
  }
@@ -212,7 +212,7 @@ class oe {
212
212
  });
213
213
  }
214
214
  }
215
- class Ce extends oe {
215
+ class Pe extends oe {
216
216
  constructor(e, t = {
217
217
  ns: ["translation"],
218
218
  defaultNS: "translation"
@@ -239,7 +239,7 @@ class Ce extends oe {
239
239
  }) {
240
240
  const r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator;
241
241
  let a = [e, t];
242
- n && (a = a.concat(r ? n.split(r) : n)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t), Pe(this.data, a, i), s.silent || this.emit("added", e, t, n, i);
242
+ n && (a = a.concat(r ? n.split(r) : n)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t), $e(this.data, a, i), s.silent || this.emit("added", e, t, n, i);
243
243
  }
244
244
  addResources(e, t, n, i = {
245
245
  silent: !1
@@ -257,7 +257,7 @@ class Ce extends oe {
257
257
  let a = [e, t];
258
258
  e.indexOf(".") > -1 && (a = e.split("."), i = n, n = t, t = a[1]), this.addNamespaces(t);
259
259
  let c = ee(this.data, a) || {};
260
- r.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ? Ve(c, n, s) : c = p(p({}, c), n), Pe(this.data, a, c), r.silent || this.emit("added", e, t, n);
260
+ r.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ? Ve(c, n, s) : c = g(g({}, c), n), $e(this.data, a, c), r.silent || this.emit("added", e, t, n);
261
261
  }
262
262
  removeResourceBundle(e, t) {
263
263
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -291,7 +291,7 @@ var ze = {
291
291
  }), e;
292
292
  }
293
293
  };
294
- const we = {}, Te = (o) => !m(o) && typeof o != "boolean" && typeof o != "number";
294
+ const Ce = {}, Te = (o) => !m(o) && typeof o != "boolean" && typeof o != "number";
295
295
  class ne extends oe {
296
296
  constructor(e, t = {}) {
297
297
  super(), ct(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = I.create("translator");
@@ -302,7 +302,7 @@ class ne extends oe {
302
302
  exists(e, t = {
303
303
  interpolation: {}
304
304
  }) {
305
- const n = p({}, t);
305
+ const n = g({}, t);
306
306
  if (e == null) return !1;
307
307
  const i = this.resolve(e, n);
308
308
  return (i == null ? void 0 : i.res) !== void 0;
@@ -329,8 +329,8 @@ class ne extends oe {
329
329
  };
330
330
  }
331
331
  translate(e, t, n) {
332
- let i = typeof t == "object" ? p({}, t) : t;
333
- if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof options == "object" && (i = p({}, i)), i || (i = {}), e == null) return "";
332
+ let i = typeof t == "object" ? g({}, t) : t;
333
+ if (typeof i != "object" && this.options.overloadTranslationOptionHandler && (i = this.options.overloadTranslationOptionHandler(arguments)), typeof options == "object" && (i = g({}, i)), i || (i = {}), e == null) return "";
334
334
  Array.isArray(e) || (e = [String(e)]);
335
335
  const s = i.returnDetails !== void 0 ? i.returnDetails : this.options.returnDetails, r = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator, {
336
336
  key: a,
@@ -338,9 +338,9 @@ class ne extends oe {
338
338
  } = this.extractFromKey(e[e.length - 1], i), l = c[c.length - 1];
339
339
  let h = i.nsSeparator !== void 0 ? i.nsSeparator : this.options.nsSeparator;
340
340
  h === void 0 && (h = ":");
341
- const u = i.lng || this.language, g = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
341
+ const u = i.lng || this.language, p = i.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
342
342
  if ((u == null ? void 0 : u.toLowerCase()) === "cimode")
343
- return g ? s ? {
343
+ return p ? s ? {
344
344
  res: `${l}${h}${a}`,
345
345
  usedKey: a,
346
346
  exactUsedKey: a,
@@ -357,80 +357,80 @@ class ne extends oe {
357
357
  } : a;
358
358
  const f = this.resolve(e, i);
359
359
  let d = f == null ? void 0 : f.res;
360
- const v = (f == null ? void 0 : f.usedKey) || a, y = (f == null ? void 0 : f.exactUsedKey) || a, w = ["[object Number]", "[object Function]", "[object RegExp]"], C = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, A = !this.i18nFormat || this.i18nFormat.handleAsObject, k = i.count !== void 0 && !m(i.count), N = ne.hasDefaultValue(i), _ = k ? this.pluralResolver.getSuffix(u, i.count, i) : "", R = i.ordinal && k ? this.pluralResolver.getSuffix(u, i.count, {
360
+ const v = (f == null ? void 0 : f.usedKey) || a, y = (f == null ? void 0 : f.exactUsedKey) || a, C = ["[object Number]", "[object Function]", "[object RegExp]"], P = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, F = !this.i18nFormat || this.i18nFormat.handleAsObject, k = i.count !== void 0 && !m(i.count), N = ne.hasDefaultValue(i), _ = k ? this.pluralResolver.getSuffix(u, i.count, i) : "", R = i.ordinal && k ? this.pluralResolver.getSuffix(u, i.count, {
361
361
  ordinal: !1
362
- }) : "", B = k && !i.ordinal && i.count === 0, $ = B && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${_}`] || i[`defaultValue${R}`] || i.defaultValue;
362
+ }) : "", B = k && !i.ordinal && i.count === 0, x = B && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${_}`] || i[`defaultValue${R}`] || i.defaultValue;
363
363
  let S = d;
364
- A && !d && N && (S = $);
364
+ F && !d && N && (S = x);
365
365
  const tt = Te(S), nt = Object.prototype.toString.apply(S);
366
- if (A && S && tt && w.indexOf(nt) < 0 && !(m(C) && Array.isArray(S))) {
366
+ if (F && S && tt && C.indexOf(nt) < 0 && !(m(P) && Array.isArray(S))) {
367
367
  if (!i.returnObjects && !this.options.returnObjects) {
368
368
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
369
- const O = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, S, x(p({}, i), {
369
+ const L = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, S, w(g({}, i), {
370
370
  ns: c
371
371
  })) : `key '${a} (${this.language})' returned an object instead of string.`;
372
- return s ? (f.res = O, f.usedParams = this.getUsedParamsDetails(i), f) : O;
372
+ return s ? (f.res = L, f.usedParams = this.getUsedParamsDetails(i), f) : L;
373
373
  }
374
374
  if (r) {
375
- const O = Array.isArray(S), T = O ? [] : {}, pe = O ? y : v;
376
- for (const L in S)
377
- if (Object.prototype.hasOwnProperty.call(S, L)) {
378
- const F = `${pe}${r}${L}`;
379
- N && !d ? T[L] = this.translate(F, x(p({}, i), {
380
- defaultValue: Te($) ? $[L] : void 0,
375
+ const L = Array.isArray(S), T = L ? [] : {}, ge = L ? y : v;
376
+ for (const O in S)
377
+ if (Object.prototype.hasOwnProperty.call(S, O)) {
378
+ const A = `${ge}${r}${O}`;
379
+ N && !d ? T[O] = this.translate(A, w(g({}, i), {
380
+ defaultValue: Te(x) ? x[O] : void 0,
381
381
  joinArrays: !1,
382
382
  ns: c
383
- })) : T[L] = this.translate(F, x(p({}, i), {
383
+ })) : T[O] = this.translate(A, w(g({}, i), {
384
384
  joinArrays: !1,
385
385
  ns: c
386
- })), T[L] === F && (T[L] = S[L]);
386
+ })), T[O] === A && (T[O] = S[O]);
387
387
  }
388
388
  d = T;
389
389
  }
390
- } else if (A && m(C) && Array.isArray(d))
391
- d = d.join(C), d && (d = this.extendTranslation(d, e, i, n));
390
+ } else if (F && m(P) && Array.isArray(d))
391
+ d = d.join(P), d && (d = this.extendTranslation(d, e, i, n));
392
392
  else {
393
- let O = !1, T = !1;
394
- !this.isValidLookup(d) && N && (O = !0, d = $), this.isValidLookup(d) || (T = !0, d = a);
395
- const L = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && T ? void 0 : d, F = N && $ !== d && this.options.updateMissing;
396
- if (T || O || F) {
397
- if (this.logger.log(F ? "updateKey" : "missingKey", u, l, a, F ? $ : d), r) {
398
- const P = this.resolve(a, x(p({}, i), {
393
+ let L = !1, T = !1;
394
+ !this.isValidLookup(d) && N && (L = !0, d = x), this.isValidLookup(d) || (T = !0, d = a);
395
+ const O = (i.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && T ? void 0 : d, A = N && x !== d && this.options.updateMissing;
396
+ if (T || L || A) {
397
+ if (this.logger.log(A ? "updateKey" : "missingKey", u, l, a, A ? x : d), r) {
398
+ const $ = this.resolve(a, w(g({}, i), {
399
399
  keySeparator: !1
400
400
  }));
401
- P && P.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
401
+ $ && $.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
402
402
  }
403
403
  let q = [];
404
404
  const J = this.languageUtils.getFallbackCodes(this.options.fallbackLng, i.lng || this.language);
405
405
  if (this.options.saveMissingTo === "fallback" && J && J[0])
406
- for (let P = 0; P < J.length; P++)
407
- q.push(J[P]);
406
+ for (let $ = 0; $ < J.length; $++)
407
+ q.push(J[$]);
408
408
  else this.options.saveMissingTo === "all" ? q = this.languageUtils.toResolveHierarchy(i.lng || this.language) : q.push(i.lng || this.language);
409
- const me = (P, E, V) => {
409
+ const me = ($, D, V) => {
410
410
  var ye;
411
- const ve = N && V !== d ? V : L;
412
- this.options.missingKeyHandler ? this.options.missingKeyHandler(P, l, E, ve, F, i) : (ye = this.backendConnector) != null && ye.saveMissing && this.backendConnector.saveMissing(P, l, E, ve, F, i), this.emit("missingKey", P, l, E, d);
411
+ const ve = N && V !== d ? V : O;
412
+ this.options.missingKeyHandler ? this.options.missingKeyHandler($, l, D, ve, A, i) : (ye = this.backendConnector) != null && ye.saveMissing && this.backendConnector.saveMissing($, l, D, ve, A, i), this.emit("missingKey", $, l, D, d);
413
413
  };
414
- this.options.saveMissing && (this.options.saveMissingPlurals && k ? q.forEach((P) => {
415
- const E = this.pluralResolver.getSuffixes(P, i);
416
- B && i[`defaultValue${this.options.pluralSeparator}zero`] && E.indexOf(`${this.options.pluralSeparator}zero`) < 0 && E.push(`${this.options.pluralSeparator}zero`), E.forEach((V) => {
417
- me([P], a + V, i[`defaultValue${V}`] || $);
414
+ this.options.saveMissing && (this.options.saveMissingPlurals && k ? q.forEach(($) => {
415
+ const D = this.pluralResolver.getSuffixes($, i);
416
+ B && i[`defaultValue${this.options.pluralSeparator}zero`] && D.indexOf(`${this.options.pluralSeparator}zero`) < 0 && D.push(`${this.options.pluralSeparator}zero`), D.forEach((V) => {
417
+ me([$], a + V, i[`defaultValue${V}`] || x);
418
418
  });
419
- }) : me(q, a, $));
419
+ }) : me(q, a, x));
420
420
  }
421
- d = this.extendTranslation(d, e, i, f, n), T && d === a && this.options.appendNamespaceToMissingKey && (d = `${l}${h}${a}`), (T || O) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${h}${a}` : a, O ? d : void 0, i));
421
+ d = this.extendTranslation(d, e, i, f, n), T && d === a && this.options.appendNamespaceToMissingKey && (d = `${l}${h}${a}`), (T || L) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${h}${a}` : a, L ? d : void 0, i));
422
422
  }
423
423
  return s ? (f.res = d, f.usedParams = this.getUsedParamsDetails(i), f) : d;
424
424
  }
425
425
  extendTranslation(e, t, n, i, s) {
426
426
  var c, l;
427
427
  if ((c = this.i18nFormat) != null && c.parse)
428
- e = this.i18nFormat.parse(e, p(p({}, this.options.interpolation.defaultVariables), n), n.lng || this.language || i.usedLng, i.usedNS, i.usedKey, {
428
+ e = this.i18nFormat.parse(e, g(g({}, this.options.interpolation.defaultVariables), n), n.lng || this.language || i.usedLng, i.usedNS, i.usedKey, {
429
429
  resolved: i
430
430
  });
431
431
  else if (!n.skipInterpolation) {
432
- n.interpolation && this.interpolator.init(x(p({}, n), {
433
- interpolation: p(p({}, this.options.interpolation), n.interpolation)
432
+ n.interpolation && this.interpolator.init(w(g({}, n), {
433
+ interpolation: g(g({}, this.options.interpolation), n.interpolation)
434
434
  }));
435
435
  const h = m(e) && (((l = n == null ? void 0 : n.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
436
436
  let u;
@@ -438,16 +438,16 @@ class ne extends oe {
438
438
  const f = e.match(this.interpolator.nestingRegexp);
439
439
  u = f && f.length;
440
440
  }
441
- let g = n.replace && !m(n.replace) ? n.replace : n;
442
- if (this.options.interpolation.defaultVariables && (g = p(p({}, this.options.interpolation.defaultVariables), g)), e = this.interpolator.interpolate(e, g, n.lng || this.language || i.usedLng, n), h) {
441
+ let p = n.replace && !m(n.replace) ? n.replace : n;
442
+ if (this.options.interpolation.defaultVariables && (p = g(g({}, this.options.interpolation.defaultVariables), p)), e = this.interpolator.interpolate(e, p, n.lng || this.language || i.usedLng, n), h) {
443
443
  const f = e.match(this.interpolator.nestingRegexp), d = f && f.length;
444
444
  u < d && (n.nest = !1);
445
445
  }
446
446
  !n.lng && i && i.res && (n.lng = this.language || i.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...f) => (s == null ? void 0 : s[0]) === f[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : this.translate(...f, t), n)), n.interpolation && this.interpolator.reset();
447
447
  }
448
448
  const r = n.postProcess || this.options.postProcess, a = m(r) ? [r] : r;
449
- return e != null && (a != null && a.length) && n.applyPostProcessor !== !1 && (e = ze.handle(a, e, t, this.options && this.options.postProcessPassResolved ? p({
450
- i18nResolved: x(p({}, i), {
449
+ return e != null && (a != null && a.length) && n.applyPostProcessor !== !1 && (e = ze.handle(a, e, t, this.options && this.options.postProcessPassResolved ? g({
450
+ i18nResolved: w(g({}, i), {
451
451
  usedParams: this.getUsedParamsDetails(n)
452
452
  })
453
453
  }, n) : n, this)), e;
@@ -460,28 +460,28 @@ class ne extends oe {
460
460
  i = h;
461
461
  let u = l.namespaces;
462
462
  this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
463
- const g = t.count !== void 0 && !m(t.count), f = g && !t.ordinal && t.count === 0, d = t.context !== void 0 && (m(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
463
+ const p = t.count !== void 0 && !m(t.count), f = p && !t.ordinal && t.count === 0, d = t.context !== void 0 && (m(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
464
464
  u.forEach((y) => {
465
- var w, C;
466
- this.isValidLookup(n) || (a = y, !we[`${v[0]}-${y}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((C = this.utils) != null && C.hasLoadedNamespace(a)) && (we[`${v[0]}-${y}`] = !0, this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" 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!!!")), v.forEach((A) => {
465
+ var C, P;
466
+ this.isValidLookup(n) || (a = y, !Ce[`${v[0]}-${y}`] && ((C = this.utils) != null && C.hasLoadedNamespace) && !((P = this.utils) != null && P.hasLoadedNamespace(a)) && (Ce[`${v[0]}-${y}`] = !0, this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${a}" 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!!!")), v.forEach((F) => {
467
467
  var _;
468
468
  if (this.isValidLookup(n)) return;
469
- r = A;
469
+ r = F;
470
470
  const k = [h];
471
471
  if ((_ = this.i18nFormat) != null && _.addLookupKeys)
472
- this.i18nFormat.addLookupKeys(k, h, A, y, t);
472
+ this.i18nFormat.addLookupKeys(k, h, F, y, t);
473
473
  else {
474
474
  let R;
475
- g && (R = this.pluralResolver.getSuffix(A, t.count, t));
476
- const B = `${this.options.pluralSeparator}zero`, $ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
477
- if (g && (k.push(h + R), t.ordinal && R.indexOf($) === 0 && k.push(h + R.replace($, this.options.pluralSeparator)), f && k.push(h + B)), d) {
475
+ p && (R = this.pluralResolver.getSuffix(F, t.count, t));
476
+ const B = `${this.options.pluralSeparator}zero`, x = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
477
+ if (p && (k.push(h + R), t.ordinal && R.indexOf(x) === 0 && k.push(h + R.replace(x, this.options.pluralSeparator)), f && k.push(h + B)), d) {
478
478
  const S = `${h}${this.options.contextSeparator}${t.context}`;
479
- k.push(S), g && (k.push(S + R), t.ordinal && R.indexOf($) === 0 && k.push(S + R.replace($, this.options.pluralSeparator)), f && k.push(S + B));
479
+ k.push(S), p && (k.push(S + R), t.ordinal && R.indexOf(x) === 0 && k.push(S + R.replace(x, this.options.pluralSeparator)), f && k.push(S + B));
480
480
  }
481
481
  }
482
482
  let N;
483
483
  for (; N = k.pop(); )
484
- this.isValidLookup(n) || (s = N, n = this.getResource(A, y, N, t));
484
+ this.isValidLookup(n) || (s = N, n = this.getResource(F, y, N, t));
485
485
  }));
486
486
  });
487
487
  }), {
@@ -502,8 +502,8 @@ class ne extends oe {
502
502
  getUsedParamsDetails(e = {}) {
503
503
  const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], n = e.replace && !m(e.replace);
504
504
  let i = n ? e.replace : e;
505
- if (n && typeof e.count != "undefined" && (i.count = e.count), this.options.interpolation.defaultVariables && (i = p(p({}, this.options.interpolation.defaultVariables), i)), !n) {
506
- i = p({}, i);
505
+ if (n && typeof e.count != "undefined" && (i.count = e.count), this.options.interpolation.defaultVariables && (i = g(g({}, this.options.interpolation.defaultVariables), i)), !n) {
506
+ i = g({}, i);
507
507
  for (const s of t)
508
508
  delete i[s];
509
509
  }
@@ -517,7 +517,7 @@ class ne extends oe {
517
517
  return !1;
518
518
  }
519
519
  }
520
- class Oe {
520
+ class Le {
521
521
  constructor(e) {
522
522
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = I.create("languageUtils");
523
523
  }
@@ -581,7 +581,7 @@ class Oe {
581
581
  }), i;
582
582
  }
583
583
  }
584
- const Le = {
584
+ const Oe = {
585
585
  zero: 0,
586
586
  one: 1,
587
587
  two: 2,
@@ -634,7 +634,7 @@ class bt {
634
634
  }
635
635
  getSuffixes(e, t = {}) {
636
636
  let n = this.getRule(e, t);
637
- return n || (n = this.getRule("dev", t)), n ? n.resolvedOptions().pluralCategories.sort((i, s) => Le[i] - Le[s]).map((i) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : [];
637
+ return n || (n = this.getRule("dev", t)), n ? n.resolvedOptions().pluralCategories.sort((i, s) => Oe[i] - Oe[s]).map((i) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : [];
638
638
  }
639
639
  getSuffix(e, t, n = {}) {
640
640
  const i = this.getRule(e, n);
@@ -665,15 +665,15 @@ class St {
665
665
  formatSeparator: l,
666
666
  unescapeSuffix: h,
667
667
  unescapePrefix: u,
668
- nestingPrefix: g,
668
+ nestingPrefix: p,
669
669
  nestingPrefixEscaped: f,
670
670
  nestingSuffix: d,
671
671
  nestingSuffixEscaped: v,
672
672
  nestingOptionsSeparator: y,
673
- maxReplaces: w,
674
- alwaysFormat: C
673
+ maxReplaces: C,
674
+ alwaysFormat: P
675
675
  } = e.interpolation;
676
- this.escape = t !== void 0 ? t : ft, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? j(s) : r || "{{", this.suffix = a ? j(a) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = h ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = g ? j(g) : f || j("$t("), this.nestingSuffix = d ? j(d) : v || j(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = C !== void 0 ? C : !1, this.resetRegExp();
676
+ this.escape = t !== void 0 ? t : ft, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = s ? j(s) : r || "{{", this.suffix = a ? j(a) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = h ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = p ? j(p) : f || j("$t("), this.nestingSuffix = d ? j(d) : v || j(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces = C || 1e3, this.alwaysFormat = P !== void 0 ? P : !1, this.resetRegExp();
677
677
  }
678
678
  reset() {
679
679
  this.options && this.init(this.options);
@@ -687,13 +687,13 @@ class St {
687
687
  let s, r, a;
688
688
  const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (d) => {
689
689
  if (d.indexOf(this.formatSeparator) < 0) {
690
- const C = Ne(t, c, d, this.options.keySeparator, this.options.ignoreJSONStructure);
691
- return this.alwaysFormat ? this.format(C, void 0, n, x(p(p({}, i), t), {
690
+ const P = Ne(t, c, d, this.options.keySeparator, this.options.ignoreJSONStructure);
691
+ return this.alwaysFormat ? this.format(P, void 0, n, w(g(g({}, i), t), {
692
692
  interpolationkey: d
693
- })) : C;
693
+ })) : P;
694
694
  }
695
- const v = d.split(this.formatSeparator), y = v.shift().trim(), w = v.join(this.formatSeparator).trim();
696
- return this.format(Ne(t, c, y, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, x(p(p({}, i), t), {
695
+ const v = d.split(this.formatSeparator), y = v.shift().trim(), C = v.join(this.formatSeparator).trim();
696
+ return this.format(Ne(t, c, y, this.options.keySeparator, this.options.ignoreJSONStructure), C, n, w(g(g({}, i), t), {
697
697
  interpolationkey: y
698
698
  }));
699
699
  };
@@ -710,8 +710,8 @@ class St {
710
710
  const v = s[1].trim();
711
711
  if (r = l(v), r === void 0)
712
712
  if (typeof h == "function") {
713
- const w = h(e, s, i);
714
- r = m(w) ? w : "";
713
+ const C = h(e, s, i);
714
+ r = m(C) ? C : "";
715
715
  } else if (i && Object.prototype.hasOwnProperty.call(i, v))
716
716
  r = "";
717
717
  else if (u) {
@@ -733,23 +733,23 @@ class St {
733
733
  const h = this.nestingOptionsSeparator;
734
734
  if (c.indexOf(h) < 0) return c;
735
735
  const u = c.split(new RegExp(`${h}[ ]*{`));
736
- let g = `{${u[1]}`;
737
- c = u[0], g = this.interpolate(g, r);
738
- const f = g.match(/'/g), d = g.match(/"/g);
739
- (((v = f == null ? void 0 : f.length) != null ? v : 0) % 2 === 0 && !d || d.length % 2 !== 0) && (g = g.replace(/'/g, '"'));
736
+ let p = `{${u[1]}`;
737
+ c = u[0], p = this.interpolate(p, r);
738
+ const f = p.match(/'/g), d = p.match(/"/g);
739
+ (((v = f == null ? void 0 : f.length) != null ? v : 0) % 2 === 0 && !d || d.length % 2 !== 0) && (p = p.replace(/'/g, '"'));
740
740
  try {
741
- r = JSON.parse(g), l && (r = p(p({}, l), r));
741
+ r = JSON.parse(p), l && (r = g(g({}, l), r));
742
742
  } catch (y) {
743
- return this.logger.warn(`failed parsing options string in nesting for key ${c}`, y), `${c}${h}${g}`;
743
+ return this.logger.warn(`failed parsing options string in nesting for key ${c}`, y), `${c}${h}${p}`;
744
744
  }
745
745
  return r.defaultValue && r.defaultValue.indexOf(this.prefix) > -1 && delete r.defaultValue, c;
746
746
  };
747
747
  for (; i = this.nestingRegexp.exec(e); ) {
748
748
  let c = [];
749
- r = p({}, n), r = r.replace && !m(r.replace) ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
749
+ r = g({}, n), r = r.replace && !m(r.replace) ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
750
750
  const l = /{.*}/.test(i[1]) ? i[1].lastIndexOf("}") + 1 : i[1].indexOf(this.formatSeparator);
751
751
  if (l !== -1 && (c = i[1].slice(l).split(this.formatSeparator).map((h) => h.trim()).filter(Boolean), i[1] = i[1].slice(0, l)), s = t(a.call(this, i[1].trim(), r), r), s && i[0] === e && !m(s)) return s;
752
- m(s) || (s = ke(s)), s || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), s = ""), c.length && (s = c.reduce((h, u) => this.format(h, u, n.lng, x(p({}, n), {
752
+ m(s) || (s = ke(s)), s || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), s = ""), c.length && (s = c.reduce((h, u) => this.format(h, u, n.lng, w(g({}, n), {
753
753
  interpolationkey: i[1].trim()
754
754
  })), s.trim())), e = e.replace(i[0], s), this.regexp.lastIndex = 0;
755
755
  }
@@ -778,15 +778,15 @@ const kt = (o) => {
778
778
  const e = {};
779
779
  return (t, n, i) => {
780
780
  let s = i;
781
- i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (s = x(p({}, s), {
781
+ i && i.interpolationkey && i.formatParams && i.formatParams[i.interpolationkey] && i[i.interpolationkey] && (s = w(g({}, s), {
782
782
  [i.interpolationkey]: void 0
783
783
  }));
784
784
  const r = n + JSON.stringify(s);
785
785
  let a = e[r];
786
786
  return a || (a = o(G(n), i), e[r] = a), a(t);
787
787
  };
788
- }, xt = (o) => (e, t, n) => o(G(t), n)(e);
789
- class $t {
788
+ }, wt = (o) => (e, t, n) => o(G(t), n)(e);
789
+ class xt {
790
790
  constructor(e = {}) {
791
791
  this.logger = I.create("formatter"), this.options = e, this.init(e);
792
792
  }
@@ -794,28 +794,28 @@ class $t {
794
794
  interpolation: {}
795
795
  }) {
796
796
  this.formatSeparator = t.interpolation.formatSeparator || ",";
797
- const n = t.cacheInBuiltFormats ? Re : xt;
797
+ const n = t.cacheInBuiltFormats ? Re : wt;
798
798
  this.formats = {
799
799
  number: n((i, s) => {
800
- const r = new Intl.NumberFormat(i, p({}, s));
800
+ const r = new Intl.NumberFormat(i, g({}, s));
801
801
  return (a) => r.format(a);
802
802
  }),
803
803
  currency: n((i, s) => {
804
- const r = new Intl.NumberFormat(i, x(p({}, s), {
804
+ const r = new Intl.NumberFormat(i, w(g({}, s), {
805
805
  style: "currency"
806
806
  }));
807
807
  return (a) => r.format(a);
808
808
  }),
809
809
  datetime: n((i, s) => {
810
- const r = new Intl.DateTimeFormat(i, p({}, s));
810
+ const r = new Intl.DateTimeFormat(i, g({}, s));
811
811
  return (a) => r.format(a);
812
812
  }),
813
813
  relativetime: n((i, s) => {
814
- const r = new Intl.RelativeTimeFormat(i, p({}, s));
814
+ const r = new Intl.RelativeTimeFormat(i, g({}, s));
815
815
  return (a) => r.format(a, s.range || "day");
816
816
  }),
817
817
  list: n((i, s) => {
818
- const r = new Intl.ListFormat(i, p({}, s));
818
+ const r = new Intl.ListFormat(i, g({}, s));
819
819
  return (a) => r.format(a);
820
820
  })
821
821
  };
@@ -839,24 +839,24 @@ class $t {
839
839
  formatOptions: h
840
840
  } = kt(c);
841
841
  if (this.formats[l]) {
842
- let g = a;
842
+ let p = a;
843
843
  try {
844
844
  const f = ((u = i == null ? void 0 : i.formatParams) == null ? void 0 : u[i.interpolationkey]) || {}, d = f.locale || f.lng || i.locale || i.lng || n;
845
- g = this.formats[l](a, d, p(p(p({}, h), i), f));
845
+ p = this.formats[l](a, d, g(g(g({}, h), i), f));
846
846
  } catch (f) {
847
847
  this.logger.warn(f);
848
848
  }
849
- return g;
849
+ return p;
850
850
  } else
851
851
  this.logger.warn(`there was no format function for ${l}`);
852
852
  return a;
853
853
  }, e);
854
854
  }
855
855
  }
856
- const Pt = (o, e) => {
856
+ const $t = (o, e) => {
857
857
  o.pending[e] !== void 0 && (delete o.pending[e], o.pendingCount--);
858
858
  };
859
- class Ct extends oe {
859
+ class Pt extends oe {
860
860
  constructor(e, t, n, i = {}) {
861
861
  var s, r;
862
862
  super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = i, this.logger = I.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], (r = (s = this.backend) == null ? void 0 : s.init) == null || r.call(s, n, i.backend, i);
@@ -866,8 +866,8 @@ class Ct extends oe {
866
866
  return e.forEach((l) => {
867
867
  let h = !0;
868
868
  t.forEach((u) => {
869
- const g = `${l}|${u}`;
870
- !n.reload && this.store.hasResourceBundle(l, u) ? this.state[g] = 2 : this.state[g] < 0 || (this.state[g] === 1 ? r[g] === void 0 && (r[g] = !0) : (this.state[g] = 1, h = !1, r[g] === void 0 && (r[g] = !0), s[g] === void 0 && (s[g] = !0), c[u] === void 0 && (c[u] = !0)));
869
+ const p = `${l}|${u}`;
870
+ !n.reload && this.store.hasResourceBundle(l, u) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? r[p] === void 0 && (r[p] = !0) : (this.state[p] = 1, h = !1, r[p] === void 0 && (r[p] = !0), s[p] === void 0 && (s[p] = !0), c[u] === void 0 && (c[u] = !0)));
871
871
  }), h || (a[l] = !0);
872
872
  }), (Object.keys(s).length || Object.keys(r).length) && this.queue.push({
873
873
  pending: r,
@@ -889,7 +889,7 @@ class Ct extends oe {
889
889
  }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
890
890
  const a = {};
891
891
  this.queue.forEach((c) => {
892
- ut(c.loaded, [s], r), Pt(c, e), t && c.errors.push(t), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((l) => {
892
+ ut(c.loaded, [s], r), $t(c, e), t && c.errors.push(t), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((l) => {
893
893
  a[l] || (a[l] = {});
894
894
  const h = c.loaded[l];
895
895
  h.length && h.forEach((u) => {
@@ -963,14 +963,14 @@ class Ct extends oe {
963
963
  }
964
964
  saveMissing(e, t, n, i, s, r = {}, a = () => {
965
965
  }) {
966
- var c, l, h, u, g;
966
+ var c, l, h, u, p;
967
967
  if ((l = (c = this.services) == null ? void 0 : c.utils) != null && l.hasLoadedNamespace && !((u = (h = this.services) == null ? void 0 : h.utils) != null && u.hasLoadedNamespace(t))) {
968
968
  this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!");
969
969
  return;
970
970
  }
971
971
  if (!(n == null || n === "")) {
972
- if ((g = this.backend) != null && g.create) {
973
- const f = x(p({}, r), {
972
+ if ((p = this.backend) != null && p.create) {
973
+ const f = w(g({}, r), {
974
974
  isUpdate: s
975
975
  }), d = this.backend.create.bind(this.backend);
976
976
  if (d.length < 6)
@@ -987,7 +987,7 @@ class Ct extends oe {
987
987
  }
988
988
  }
989
989
  }
990
- const Fe = () => ({
990
+ const Ae = () => ({
991
991
  debug: !1,
992
992
  initAsync: !0,
993
993
  ns: ["translation"],
@@ -1044,20 +1044,20 @@ const Fe = () => ({
1044
1044
  skipOnVariables: !0
1045
1045
  },
1046
1046
  cacheInBuiltFormats: !0
1047
- }), Ae = (o) => {
1047
+ }), Fe = (o) => {
1048
1048
  var e, t;
1049
1049
  return m(o.ns) && (o.ns = [o.ns]), m(o.fallbackLng) && (o.fallbackLng = [o.fallbackLng]), m(o.fallbackNS) && (o.fallbackNS = [o.fallbackNS]), ((t = (e = o.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (o.supportedLngs = o.supportedLngs.concat(["cimode"])), typeof o.initImmediate == "boolean" && (o.initAsync = o.initImmediate), o;
1050
1050
  }, Y = () => {
1051
- }, wt = (o) => {
1051
+ }, Ct = (o) => {
1052
1052
  Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach((t) => {
1053
1053
  typeof o[t] == "function" && (o[t] = o[t].bind(o));
1054
1054
  });
1055
1055
  };
1056
1056
  class W extends oe {
1057
1057
  constructor(e = {}, t) {
1058
- if (super(), this.options = Ae(e), this.services = {}, this.logger = I, this.modules = {
1058
+ if (super(), this.options = Fe(e), this.services = {}, this.logger = I, this.modules = {
1059
1059
  external: []
1060
- }, wt(this), t && !this.isInitialized && !e.isClone) {
1060
+ }, Ct(this), t && !this.isInitialized && !e.isClone) {
1061
1061
  if (!this.options.initAsync)
1062
1062
  return this.init(e, t), this;
1063
1063
  setTimeout(() => {
@@ -1067,22 +1067,22 @@ class W extends oe {
1067
1067
  }
1068
1068
  init(e = {}, t) {
1069
1069
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (m(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
1070
- const n = Fe();
1071
- this.options = p(p(p({}, n), this.options), Ae(e)), this.options.interpolation = p(p({}, n.interpolation), this.options.interpolation), e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator);
1070
+ const n = Ae();
1071
+ this.options = g(g(g({}, n), this.options), Fe(e)), this.options.interpolation = g(g({}, n.interpolation), this.options.interpolation), e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator);
1072
1072
  const i = (l) => l ? typeof l == "function" ? new l() : l : null;
1073
1073
  if (!this.options.isClone) {
1074
1074
  this.modules.logger ? I.init(i(this.modules.logger), this.options) : I.init(null, this.options);
1075
1075
  let l;
1076
- this.modules.formatter ? l = this.modules.formatter : l = $t;
1077
- const h = new Oe(this.options);
1078
- this.store = new Ce(this.options.resources, this.options);
1076
+ this.modules.formatter ? l = this.modules.formatter : l = xt;
1077
+ const h = new Le(this.options);
1078
+ this.store = new Pe(this.options.resources, this.options);
1079
1079
  const u = this.services;
1080
1080
  u.logger = I, u.resourceStore = this.store, u.languageUtils = h, u.pluralResolver = new bt(h, {
1081
1081
  prepend: this.options.pluralSeparator,
1082
1082
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1083
1083
  }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.warn("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 === n.interpolation.format) && (u.formatter = i(l), u.formatter.init && u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new St(this.options), u.utils = {
1084
1084
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1085
- }, u.backendConnector = new Ct(i(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (f, ...d) => {
1085
+ }, u.backendConnector = new Pt(i(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (f, ...d) => {
1086
1086
  this.emit(f, ...d);
1087
1087
  }), this.modules.languageDetector && (u.languageDetector = i(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = i(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new ne(this.services, this.options), this.translator.on("*", (f, ...d) => {
1088
1088
  this.emit(f, ...d);
@@ -1161,8 +1161,8 @@ class W extends oe {
1161
1161
  var h, u;
1162
1162
  !e && !a && this.services.languageDetector && (a = []);
1163
1163
  const c = m(a) ? a : a && a[0], l = this.store.hasLanguageSomeTranslations(c) ? c : this.services.languageUtils.getBestMatchFromCodes(m(a) ? [a] : a);
1164
- l && (this.language || i(l), this.translator.language || this.translator.changeLanguage(l), (u = (h = this.services.languageDetector) == null ? void 0 : h.cacheUserLanguage) == null || u.call(h, l)), this.loadResources(l, (g) => {
1165
- s(g, l);
1164
+ l && (this.language || i(l), this.translator.language || this.translator.changeLanguage(l), (u = (h = this.services.languageDetector) == null ? void 0 : h.cacheUserLanguage) == null || u.call(h, l)), this.loadResources(l, (p) => {
1165
+ s(p, l);
1166
1166
  });
1167
1167
  };
1168
1168
  return !e && this.services.languageDetector && !this.services.languageDetector.async ? r(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(r) : this.services.languageDetector.detect(r) : r(e), n;
@@ -1170,7 +1170,7 @@ class W extends oe {
1170
1170
  getFixedT(e, t, n) {
1171
1171
  const i = (s, r, ...a) => {
1172
1172
  let c;
1173
- typeof r != "object" ? c = this.options.overloadTranslationOptionHandler([s, r].concat(a)) : c = p({}, r), c.lng = c.lng || i.lng, c.lngs = c.lngs || i.lngs, c.ns = c.ns || i.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || n || i.keyPrefix);
1173
+ typeof r != "object" ? c = this.options.overloadTranslationOptionHandler([s, r].concat(a)) : c = g({}, r), c.lng = c.lng || i.lng, c.lngs = c.lngs || i.lngs, c.ns = c.ns || i.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || n || i.keyPrefix);
1174
1174
  const l = this.options.keySeparator || ".";
1175
1175
  let h;
1176
1176
  return c.keyPrefix && Array.isArray(s) ? h = s.map((u) => `${c.keyPrefix}${l}${u}`) : h = c.keyPrefix ? `${c.keyPrefix}${l}${s}` : s, this.t(h, c);
@@ -1231,7 +1231,7 @@ class W extends oe {
1231
1231
  if (a && a.direction) return a.direction;
1232
1232
  }
1233
1233
  }
1234
- const t = ["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"], n = ((s = this.services) == null ? void 0 : s.languageUtils) || new Oe(Fe());
1234
+ const t = ["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"], n = ((s = this.services) == null ? void 0 : s.languageUtils) || new Le(Ae());
1235
1235
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1236
1236
  }
1237
1237
  static createInstance(e = {}, t) {
@@ -1240,16 +1240,16 @@ class W extends oe {
1240
1240
  cloneInstance(e = {}, t = Y) {
1241
1241
  const n = e.forkResourceStore;
1242
1242
  n && delete e.forkResourceStore;
1243
- const i = x(p(p({}, this.options), e), {
1243
+ const i = w(g(g({}, this.options), e), {
1244
1244
  isClone: !0
1245
1245
  }), s = new W(i);
1246
1246
  if ((e.debug !== void 0 || e.prefix !== void 0) && (s.logger = s.logger.clone(e)), ["store", "services", "language"].forEach((a) => {
1247
1247
  s[a] = this[a];
1248
- }), s.services = p({}, this.services), s.services.utils = {
1248
+ }), s.services = g({}, this.services), s.services.utils = {
1249
1249
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
1250
1250
  }, n) {
1251
- const a = Object.keys(this.store.data).reduce((c, l) => (c[l] = p({}, this.store.data[l]), c[l] = Object.keys(c[l]).reduce((h, u) => (h[u] = p({}, c[l][u]), h), c[l]), c), {});
1252
- s.store = new Ce(a, i), s.services.resourceStore = s.store;
1251
+ const a = Object.keys(this.store.data).reduce((c, l) => (c[l] = g({}, this.store.data[l]), c[l] = Object.keys(c[l]).reduce((h, u) => (h[u] = g({}, c[l][u]), h), c[l]), c), {});
1252
+ s.store = new Pe(a, i), s.services.resourceStore = s.store;
1253
1253
  }
1254
1254
  return s.translator = new ne(s.services, i), s.translator.on("*", (a, ...c) => {
1255
1255
  s.emit(a, ...c);
@@ -1283,18 +1283,18 @@ b.setDefaultNamespace;
1283
1283
  b.hasLoadedNamespace;
1284
1284
  b.loadNamespaces;
1285
1285
  b.loadLanguages;
1286
- const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I agree with", Nt = "and", Rt = "Back", Ft = "Back ID Card", At = "Bank Name", Dt = "Beneficiary Bank", Et = "Business Registration License", Ut = "Cancel", jt = "Cancel Transaction", Mt = "Close", Ht = "C (With tax authority code)", Kt = "K (Without code)", Bt = "C: With tax authority code, K: Without code", qt = "Coming Soon", Vt = "Unit Name", zt = "Complete your payment within", Qt = "Complete registration", Gt = "Confirm", Wt = "Important Notice:", Xt = "3. Contact Person Information:", _t = "Copy", Jt = "Country", Yt = "2 custom characters (default: YY)", Zt = "Custom quantity", en = "Date of Birth", tn = "Decrease", nn = "Digital Signature Package", on = "District", sn = "Duration", rn = "E-Contract", an = "Edit", cn = "e-invoices", ln = "Email", un = "Enter ID Card Number", hn = "Enter Invoice Symbol", dn = "Enter Passport Number", fn = "Enter Provider Name", gn = "Enter Tax Authority Code", pn = "Failed to check customer status", mn = "Failed to create order", vn = "Error fetching tax information.", yn = "File format not supported", bn = "File size is too large", Sn = "Access denied", kn = "Address cannot contain special characters", xn = "Invalid ID card", $n = "Invalid date of birth", Pn = "Invalid email address", Cn = "Invalid ID card number", wn = "Only letters, numbers and underscores allowed", Tn = "Invalid phone number", On = "Invalid provider name", Ln = "Invalid request", In = "Invalid tax authority code", Nn = "Invalid tax code", Rn = "Failed to load data", Fn = "Failed to load registration packages", An = "Failed to load invoice packages", Dn = "Failed to load signature packages", En = "Network connection error", Un = "Data not found", jn = "Unable to check order payment status. Please try again.", Mn = "Unable to generate QR payment code. Please try again.", Hn = "This field is required", Kn = "Failed to search packages", Bn = "Server error, please try again later", qn = "Service temporarily unavailable", Vn = "Too many requests, please try again later", zn = "Unauthorized access", Qn = "An error occurred", Gn = "Invalid data", Wn = "Female", Xn = "Format", _n = "Front ID Card", Jn = "Full Name", Yn = "Gender", Zn = "Have you used e-invoices?", ei = "Are you using another e-invoice provider other than M-invoice?", ti = "(Free Consulting and Support Hotline)", ni = "Hotline:", ii = "ID Card Number", oi = "Increase", si = "Information sent to the provider", ri = "Invoice Package", ai = "Invoice Symbol", ci = "Invoice Template", li = { 1: "1 (VAT Invoice)", 2: "2 (Sales Invoice)", 3: "3 (Public Asset Sales)", 4: "4 (National Reserve Sales)", 5: "5 (Stamps, Tickets, Other Cards)", 6: "6 (Internal Documents)", 7: "7 (Commercial Invoice)", 8: "8 (VAT with Integrated Tax)", 9: "9 (Sales with Integrated Tax)" }, ui = "B (Agent)", hi = "D (Asset)", di = "G (VAT Stamp)", fi = "H (Sales Stamp)", gi = "L (Tax Authority)", pi = "M (Cash Register)", mi = "N (Internal)", vi = "T (Registration)", yi = "Invoice type", bi = "X (Commercial)", Si = "4. E-INVOICE USAGE INFORMATION:", ki = "invoices/month", xi = "2. Legal Representative Information:", $i = "Please check and enter the correct legal representative name according to the uploaded business license.", Pi = "Loading...", Ci = "Male", wi = "Max 500KB", Ti = "Month", Oi = "Most Suitable Package", Li = "Continue", Ii = "No data available", Ni = "No package found.", Ri = "Please check your email inbox regularly to receive account information notifications from the provider.", Fi = "If you have not received the email account information (username/password) within 2 hours, please contact the information below for the fastest support:", Ai = "of", Di = "OK", Ei = "Optional", Ui = "or", ji = "Order created successfully", Mi = "Order has expired", Hi = "Order Information", Ki = "Order Summary", Bi = "Organization Registration Certificate", qi = "Passport", Vi = "Payment Amount", zi = "Payment Failed", Qi = ["Open your banking app or digital wallet on your phone", "Select the QR Code scan feature in the app", "Scan the QR code on this page and make payment"], Gi = "QR Payment Instructions", Wi = "Payment Method:", Xi = "Payment Successful!", _i = "Payment timeout", Ji = "Payment timeout! Please try again.", Yi = "Payment", Zi = "Permanent address", eo = "Phone Number", to = "Product", no = "Provider", io = "Provider Name", oo = "Province/City", so = "QR Code Payment", ro = "Scan QR Code to Pay", ao = "Quantity", co = "Registration Fee", lo = "Required", uo = "Return Home", ho = "Return to step 1", fo = "Invoice template number (1-9)", go = "Save", po = "Units per month", mo = "Select File", vo = "Select E-Invoice Package", yo = "Select Provider", bo = "Select Digital Signature Package", So = "Select Subscription Package", ko = "Selected Products", xo = "Settings", $o = "Digital Signature Package", Po = "E-invoice software license", Co = "Information", wo = "Confirmation & Payment", To = "Invoice Package", Oo = "Subscription Package", Lo = "Tax Authority", Io = "5 characters issued by the Authority for cash register bills", No = "Unit Tax Code", Ro = "Terms and Usage Policy", Fo = "Time Left", Ao = "Total", Do = "Total Amount", Eo = "Total Price", Uo = "Transaction has been canceled. Returning to registration page.", jo = "Unit", Mo = "1. Unit Information", Ho = "units/month", Ko = "Unit Price", Bo = "units/ month", qo = "Upload Back ID Card", Vo = "Upload File", zo = "Upload Front ID Card", Qo = "Upload Logo", Go = "Usage Policy", Wo = "Ward", Xo = "Website", _o = "E-Invoice Registration", Jo = "Release year (last 2 digits)", Yo = {
1286
+ const Tt = "Account Name", Lt = "Account Number", Ot = "Unit Address", It = "I agree with", Nt = "and", Rt = "Back", At = "Back ID Card", Ft = "Bank Name", Ut = "Beneficiary Bank", Dt = "Business Registration License", Et = "Cancel", jt = "Cancel Transaction", Mt = "Close", Ht = "C (With tax authority code)", Kt = "K (Without code)", Bt = "C: With tax authority code, K: Without code", qt = "Coming Soon", Vt = "Unit Name", zt = "Complete your payment within", Qt = "Complete registration", Gt = "Confirm", Wt = "Important Notice:", Xt = "3. Contact Person Information:", _t = "Copy", Jt = "Country", Yt = "2 custom characters (default: YY)", Zt = "Custom quantity", en = "Date of Birth", tn = "Decrease", nn = "Digital Signature Package", on = "District", sn = "Duration", rn = "E-Contract", an = "Edit", cn = "e-invoices", ln = "Email", un = "Enter ID Card Number", hn = "Enter Invoice Symbol", dn = "Enter Passport Number", fn = "Enter Provider Name", pn = "Enter Tax Authority Code", gn = "Failed to check customer status", mn = "Failed to create order", vn = "Error fetching tax information.", yn = "File format not supported", bn = "File size is too large", Sn = "Access denied", kn = "Address cannot contain special characters", wn = "Invalid ID card", xn = "Invalid date of birth", $n = "Invalid email address", Pn = "Invalid ID card number", Cn = "Only letters, numbers and underscores allowed", Tn = "Invalid phone number", Ln = "Invalid provider name", On = "Invalid request", In = "Invalid tax authority code", Nn = "Invalid tax code", Rn = "Failed to load data", An = "Failed to load registration packages", Fn = "Failed to load invoice packages", Un = "Failed to load signature packages", Dn = "Network connection error", En = "Data not found", jn = "Unable to check order payment status. Please try again.", Mn = "Unable to generate QR payment code. Please try again.", Hn = "This field is required", Kn = "Failed to search packages", Bn = "Server error, please try again later", qn = "Service temporarily unavailable", Vn = "Too many requests, please try again later", zn = "Unauthorized access", Qn = "An error occurred", Gn = "Invalid data", Wn = "Female", Xn = "Format", _n = "Front ID Card", Jn = "Full Name", Yn = "Gender", Zn = "Have you used e-invoices?", ei = "Are you using another e-invoice provider other than M-invoice?", ti = "(Free Consulting and Support Hotline)", ni = "Hotline:", ii = "ID Card Number", oi = "Increase", si = "Information sent to the provider", ri = "Invoice Package", ai = "Invoice Symbol", ci = "Invoice Template", li = { 1: "1 (VAT Invoice)", 2: "2 (Sales Invoice)", 3: "3 (Public Asset Sales)", 4: "4 (National Reserve Sales)", 5: "5 (Stamps, Tickets, Other Cards)", 6: "6 (Internal Documents)", 7: "7 (Commercial Invoice)", 8: "8 (VAT with Integrated Tax)", 9: "9 (Sales with Integrated Tax)" }, ui = "B (Agent)", hi = "D (Asset)", di = "G (VAT Stamp)", fi = "H (Sales Stamp)", pi = "L (Tax Authority)", gi = "M (Cash Register)", mi = "N (Internal)", vi = "T (Registration)", yi = "Invoice type", bi = "X (Commercial)", Si = "4. E-INVOICE USAGE INFORMATION:", ki = "invoices/month", wi = "2. Legal Representative Information:", xi = "Please check and enter the correct legal representative name according to the uploaded business license.", $i = "Loading...", Pi = "Male", Ci = "Max 500KB", Ti = "Month", Li = "Most Suitable Package", Oi = "Continue", Ii = "No data available", Ni = "No package found.", Ri = "Please check your email inbox regularly to receive account information notifications from the provider.", Ai = "If you have not received the email account information (username/password) within 2 hours, please contact the information below for the fastest support:", Fi = "of", Ui = "OK", Di = "Optional", Ei = "or", ji = "Order created successfully", Mi = "Order has expired", Hi = "Order Information", Ki = "Order Summary", Bi = "Organization Registration Certificate", qi = "Passport", Vi = "Payment Amount", zi = "Payment Failed", Qi = ["Open your banking app or digital wallet on your phone", "Select the QR Code scan feature in the app", "Scan the QR code on this page and make payment"], Gi = "QR Payment Instructions", Wi = "Payment Method:", Xi = "Payment Successful!", _i = "Payment timeout", Ji = "Payment timeout! Please try again.", Yi = "Payment", Zi = "Permanent address", eo = "Phone Number", to = "Product", no = "Provider", io = "Provider Name", oo = "Province/City", so = "QR Code Payment", ro = "Scan QR Code to Pay", ao = "Quantity", co = "Registration Fee", lo = "Required", uo = "Return Home", ho = "Return to step 1", fo = "Invoice template number (1-9)", po = "Save", go = "Units per month", mo = "Select File", vo = "Select E-Invoice Package", yo = "Select Provider", bo = "Select Digital Signature Package", So = "Select Subscription Package", ko = "Selected Products", wo = "Settings", xo = "Digital Signature Package", $o = "E-invoice software license", Po = "Information", Co = "Confirmation & Payment", To = "Invoice Package", Lo = "Subscription Package", Oo = "Tax Authority", Io = "5 characters issued by the Authority for cash register bills", No = "Unit Tax Code", Ro = "Terms and Usage Policy", Ao = "Time Left", Fo = "Total", Uo = "Total Amount", Do = "Total Price", Eo = "Transaction has been canceled. Returning to registration page.", jo = "Unit", Mo = "1. Unit Information", Ho = "units/month", Ko = "Unit Price", Bo = "units/ month", qo = "Upload Back ID Card", Vo = "Upload File", zo = "Upload Front ID Card", Qo = "Upload Logo", Go = "Usage Policy", Wo = "Ward", Xo = "Website", _o = "E-Invoice Registration", Jo = "Release year (last 2 digits)", Yo = {
1287
1287
  accountName: Tt,
1288
- accountNumber: Ot,
1289
- address: Lt,
1288
+ accountNumber: Lt,
1289
+ address: Ot,
1290
1290
  agreeWith: It,
1291
1291
  and: Nt,
1292
1292
  back: Rt,
1293
- backIdCard: Ft,
1294
- bankName: At,
1295
- beneficiaryBank: Dt,
1296
- businessLicense: Et,
1297
- cancel: Ut,
1293
+ backIdCard: At,
1294
+ bankName: Ft,
1295
+ beneficiaryBank: Ut,
1296
+ businessLicense: Dt,
1297
+ cancel: Et,
1298
1298
  cancelTransaction: jt,
1299
1299
  close: Mt,
1300
1300
  codeTypeC: Ht,
@@ -1325,30 +1325,30 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1325
1325
  enterInvoiceSymbol: hn,
1326
1326
  enterPassport: dn,
1327
1327
  enterProviderName: fn,
1328
- enterTaxAuthorityCode: gn,
1329
- errorCheckingCustomer: pn,
1328
+ enterTaxAuthorityCode: pn,
1329
+ errorCheckingCustomer: gn,
1330
1330
  errorCreatingOrder: mn,
1331
1331
  errorFetchTaxInfo: vn,
1332
1332
  errorFileFormat: yn,
1333
1333
  errorFileSize: bn,
1334
1334
  errorForbidden: Sn,
1335
1335
  errorInvalidAddress: kn,
1336
- errorInvalidCard: xn,
1337
- errorInvalidDate: $n,
1338
- errorInvalidEmail: Pn,
1339
- errorInvalidIdCard: Cn,
1340
- errorInvalidName: wn,
1336
+ errorInvalidCard: wn,
1337
+ errorInvalidDate: xn,
1338
+ errorInvalidEmail: $n,
1339
+ errorInvalidIdCard: Pn,
1340
+ errorInvalidName: Cn,
1341
1341
  errorInvalidPhone: Tn,
1342
- errorInvalidProviderName: On,
1343
- errorInvalidRequest: Ln,
1342
+ errorInvalidProviderName: Ln,
1343
+ errorInvalidRequest: On,
1344
1344
  errorInvalidTaxAuthorityCode: In,
1345
1345
  errorInvalidTaxCode: Nn,
1346
1346
  errorLoadingData: Rn,
1347
- errorLoadingInitPackages: Fn,
1348
- errorLoadingInvoicePackages: An,
1349
- errorLoadingSignaturePackages: Dn,
1350
- errorNetwork: En,
1351
- errorNotFound: Un,
1347
+ errorLoadingInitPackages: An,
1348
+ errorLoadingInvoicePackages: Fn,
1349
+ errorLoadingSignaturePackages: Un,
1350
+ errorNetwork: Dn,
1351
+ errorNotFound: En,
1352
1352
  errorOrderStatus: jn,
1353
1353
  errorQRGeneration: Mn,
1354
1354
  errorRequired: Hn,
@@ -1379,32 +1379,32 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1379
1379
  invoiceTypeD: hi,
1380
1380
  invoiceTypeG: di,
1381
1381
  invoiceTypeH: fi,
1382
- invoiceTypeL: gi,
1383
- invoiceTypeM: pi,
1382
+ invoiceTypeL: pi,
1383
+ invoiceTypeM: gi,
1384
1384
  invoiceTypeN: mi,
1385
1385
  invoiceTypeT: vi,
1386
1386
  invoiceTypeTooltip: yi,
1387
1387
  invoiceTypeX: bi,
1388
1388
  invoiceUsageInfo: Si,
1389
1389
  invoicesPerMonth: ki,
1390
- legalRepInfo: xi,
1391
- legalRepNote: $i,
1392
- loading: Pi,
1393
- male: Ci,
1394
- maxFileSize: wi,
1390
+ legalRepInfo: wi,
1391
+ legalRepNote: xi,
1392
+ loading: $i,
1393
+ male: Pi,
1394
+ maxFileSize: Ci,
1395
1395
  month: Ti,
1396
- mostSuitablePackage: Oi,
1397
- next: Li,
1396
+ mostSuitablePackage: Li,
1397
+ next: Oi,
1398
1398
  noDataAvailable: Ii,
1399
1399
  noPackageFound: Ni,
1400
1400
  notice1: Ri,
1401
- notice2: Fi,
1401
+ notice2: Ai,
1402
1402
  "notice3.1": "After being granted an account, please go to the Link",
1403
1403
  "notice3.2": "to connect and use the service HDDT",
1404
- of: Ai,
1405
- ok: Di,
1406
- optional: Ei,
1407
- or: Ui,
1404
+ of: Fi,
1405
+ ok: Ui,
1406
+ optional: Di,
1407
+ or: Ei,
1408
1408
  orderCreated: ji,
1409
1409
  orderExpired: Mi,
1410
1410
  orderInfo: Hi,
@@ -1435,30 +1435,30 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1435
1435
  returnHome: uo,
1436
1436
  returnToStep1: ho,
1437
1437
  sampleNumberTooltip: fo,
1438
- save: go,
1439
- searchUnits: po,
1438
+ save: po,
1439
+ searchUnits: go,
1440
1440
  selectFile: mo,
1441
1441
  selectInvoicePackage: vo,
1442
1442
  selectProvider: yo,
1443
1443
  selectSignaturePackage: bo,
1444
1444
  selectSubscriptionPackage: So,
1445
1445
  selectedProducts: ko,
1446
- settings: xo,
1447
- signaturePackage: $o,
1448
- softwareLicense: Po,
1449
- stepInfo: Co,
1450
- stepPayment: wo,
1446
+ settings: wo,
1447
+ signaturePackage: xo,
1448
+ softwareLicense: $o,
1449
+ stepInfo: Po,
1450
+ stepPayment: Co,
1451
1451
  stepPlan: To,
1452
- subscriptionPackage: Oo,
1453
- taxAuthority: Lo,
1452
+ subscriptionPackage: Lo,
1453
+ taxAuthority: Oo,
1454
1454
  taxAuthorityCode: Io,
1455
1455
  taxCode: No,
1456
1456
  termsAndUsagePolicy: Ro,
1457
- timeLeft: Fo,
1458
- total: Ao,
1459
- totalAmount: Do,
1460
- totalPrice: Eo,
1461
- transactionCanceled: Uo,
1457
+ timeLeft: Ao,
1458
+ total: Fo,
1459
+ totalAmount: Uo,
1460
+ totalPrice: Do,
1461
+ transactionCanceled: Eo,
1462
1462
  unit: jo,
1463
1463
  unitInfo: Mo,
1464
1464
  unitPerMonth: Ho,
@@ -1473,7 +1473,7 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1473
1473
  website: Xo,
1474
1474
  widgetTitle: _o,
1475
1475
  yearTooltip: Jo
1476
- }, Zo = "Tên tài khoản", es = "Số tài khoản", ts = "Địa chỉ đơn vị", ns = "Tôi đồng ý với", is = "và", os = "Quay lại", ss = "Mặt sau CCCD", rs = "Ngân hàng", as = "Ngân hàng thụ hưởng", cs = "Giấy phép đăng ký kinh doanh", ls = "Hủy", us = "Hủy giao dịch", hs = "Đóng", ds = "C (Có mã CQT)", fs = "K (Không mã)", gs = "C: Có mã CQT, K: Không mã", ps = "Sắp ra mắt", ms = "Tên đơn vị", vs = "Hoàn tất thanh toán của bạn trong", ys = "Hoàn tất đăng ký", bs = "Xác nhận", Ss = "Thông tin lưu ý:", ks = "3. Thông tin người liên hệ:", xs = "Bản", $s = "Quốc gia", Ps = "2 ký tự tùy chọn (mặc định: YY)", Cs = "Số lượng tùy chỉnh", ws = "Ngày sinh", Ts = "Giảm", Os = "Gói chữ ký số", Ls = "Quận/Huyện", Is = "Thời hạn", Ns = "E-Contract", Rs = "Chỉnh sửa", Fs = "hóa đơn điện tử", As = "Email", Ds = "Nhập số CMND/CCCD", Es = "Nhập ký hiệu hóa đơn", Us = "Nhập số hộ chiếu", js = "Nhập tên nhà cung cấp", Ms = "Nhập mã CQT cấp", Hs = "Không thể kiểm tra trạng thái khách hàng", Ks = "Không thể tạo đơn hàng", Bs = "Lỗi khi lấy thông tin mã số thuế.", qs = "Định dạng tệp không được hỗ trợ", Vs = "Kích thước tệp quá lớn", zs = "Truy cập bị từ chối", Qs = "Địa chỉ không được chứa ký tự đặc biệt", Gs = "CCCD không hợp lệ", Ws = "Ngày sinh không hợp lệ", Xs = "Email không hợp lệ", _s = "Số CCCD không hợp lệ", Js = "Chỉ được dùng chữ cái, số và dấu gạch dưới", Ys = "Số điện thoại không hợp lệ", Zs = "Tên nhà cung cấp không hợp lệ", er = "Yêu cầu không hợp lệ", tr = "Mã CQT cấp không hợp lệ", nr = "Mã số thuế không hợp lệ", ir = "Không thể tải dữ liệu", or = "Không thể tải gói đăng ký", sr = "Không thể tải gói hóa đơn", rr = "Không thể tải gói chữ ký số", ar = "Lỗi kết nối mạng", cr = "Không tìm thấy dữ liệu", lr = "Không thể kiểm tra trạng thái thanh toán đơn hàng. Vui lòng thử lại.", ur = "Không thể tạo mã QR thanh toán. Vui lòng thử lại.", hr = "Trường này là bắt buộc", dr = "Không thể tìm kiếm gói", fr = "Lỗi máy chủ, vui lòng thử lại sau", gr = "Dịch vụ tạm thời không khả dụng", pr = "Quá nhiều yêu cầu, vui lòng thử lại sau", mr = "Không có quyền truy cập", vr = "Đã xảy ra lỗi", yr = "Dữ liệu không hợp lệ", br = "Nữ", Sr = "Định dạng", kr = "Mặt trước CCCD", xr = "Họ và tên", $r = "Giới tính", Pr = "Bạn đã sử dụng hoá đơn điện tử?", Cr = "Bạn đang sử dụng nhà NCC hoá đơn điện tử khác M-invoice không?", wr = "(Tổng đài Tư vấn, Hỗ trợ miễn phí)", Tr = "Hotline:", Or = "CCCD", Lr = "Tăng", Ir = "Đã gửi thông tin sang nhà cung cấp", Nr = "Gói hóa đơn", Rr = "Ký hiệu hóa đơn", Fr = "Mẫu số", Ar = { 1: "1 (Hóa đơn GTGT)", 2: "2 (Hóa đơn bán hàng)", 3: "3 (Bán tài sản công)", 4: "4 (Bán dự trữ quốc gia)", 5: "5 (Tem, vé, thẻ khác)", 6: "6 (Chứng từ nội bộ)", 7: "7 (Hóa đơn thương mại)", 8: "8 (GTGT tích hợp thuế)", 9: "9 (Bán hàng tích hợp thuế)" }, Dr = "B (Đại lý)", Er = "D (Tài sản)", Ur = "G (Tem GTGT)", jr = "H (Tem bán hàng)", Mr = "L (CQT)", Hr = "M (Máy tính tiền)", Kr = "N (Nội bộ)", Br = "T (Đăng ký)", qr = "Loại hóa đơn", Vr = "X (Thương mại)", zr = "4. THÔNG TIN SỬ DỤNG HDDT:", Qr = "hóa đơn/tháng", Gr = "2. Thông tin người đại diện pháp luật:", Wr = "Vui lòng kiểm tra và nhập đúng tên người đại diện theo Giấy phép kinh doanh đã tải lên.", Xr = "Đang tải...", _r = "Nam", Jr = "Tối đa 500Kb", Yr = "Tháng", Zr = "Gói phù hợp nhất", ea = "Tiếp tục", ta = "Không có dữ liệu", na = "Không tìm thấy gói nào.", ia = "Vui lòng thường xuyên kiểm tra hộp thư Email nhận thông báo thông tin tài khoản từ nhà cung cấp", oa = "Trong vòng 2 giờ nếu chưa nhận được thông tin Email tài khoản (username/password). Bạn có thể liên hệ thông tin phía bên dưới để được hỗ trợ sớm nhất:", sa = "của", ra = "OK", aa = "Tùy chọn", ca = "hoặc", la = "Đơn hàng đã được tạo thành công", ua = "Đơn hàng đã hết hạn", ha = "Thông tin đơn hàng", da = "Tóm tắt đơn hàng", fa = "Giấy chứng nhận đăng ký doanh nghiệp", ga = "Hộ chiếu", pa = "Số tiền thanh toán", ma = "Thanh toán thất bại", va = ["Mở ứng dụng Ngân hàng hoặc Ví điện tử trên điện thoại", "Trên ứng dụng chọn tính năng Quét mã QR", "Quét mã QR ở trang này và thanh toán"], ya = "Hướng dẫn thanh toán QR", ba = "Hình thức thanh toán:", Sa = "Thanh toán thành công!", ka = "Hết thời gian thanh toán", xa = "Hết thời gian thanh toán! Vui lòng thử lại.", $a = "Thanh toán", Pa = "Địa chỉ thường trú", Ca = "Số điện thoại", wa = "Sản phẩm", Ta = "Nhà cung cấp", Oa = "Tên NCC", La = "Tỉnh/Thành phố", Ia = "Thanh toán qua mã QR", Na = "Quét mã QR để thanh toán", Ra = "Số lượng", Fa = "Phí đăng ký", Aa = "Bắt buộc", Da = "Trở về trang chủ", Ea = "Quay lại bước 1", Ua = "Mẫu số hóa đơn (1-9)", ja = "Lưu", Ma = "Số đơn/tháng", Ha = "Chọn tệp", Ka = "Chọn gói hóa đơn điện tử", Ba = "Chọn nhà cung cấp", qa = "Chọn gói chữ ký số", Va = "Chọn gói đăng ký", za = "Sản phẩm đã chọn", Qa = "Thiết lập", Ga = "Gói chữ ký số", Wa = "Bản quyền phần mềm hóa đơn điện tử", Xa = "Thông Tin", _a = "Xác Nhận Và Thanh Toán", Ja = "Gói Hóa Đơn", Ya = "Gói đăng ký", Za = "CQT quản lý", ec = "5 ký tự do CQT cấp cho loại hóa đơn máy tính tiền", tc = "Mã số thuế đơn vị", nc = "Điều khoản và Chính sách sử dụng", ic = "Thời gian còn lại", oc = "Tổng cộng", sc = "Tổng tiền", rc = "Thành tiền", ac = "Giao dịch đã được hủy. Quay về trang đăng ký.", cc = "Đơn vị tính", lc = "1. Thông tin đơn vị", uc = "đơn/tháng", hc = "Đơn giá", dc = "đơn/ tháng", fc = "Tải lên mặt sau CCCD", gc = "Tải lên tệp", pc = "Tải lên mặt trước CCCD", mc = "Tải logo lên", vc = "Chính sách sử dụng", yc = "Phường/Xã", bc = "Website", Sc = "Đăng ký hóa đơn điện tử", kc = "Năm phát hành (2 chữ số cuối)", xc = {
1476
+ }, Zo = "Tên tài khoản", es = "Số tài khoản", ts = "Địa chỉ đơn vị", ns = "Tôi đồng ý với", is = "và", os = "Quay lại", ss = "Mặt sau CCCD", rs = "Ngân hàng", as = "Ngân hàng thụ hưởng", cs = "Giấy phép đăng ký kinh doanh", ls = "Hủy", us = "Hủy giao dịch", hs = "Đóng", ds = "C (Có mã CQT)", fs = "K (Không mã)", ps = "C: Có mã CQT, K: Không mã", gs = "Sắp ra mắt", ms = "Tên đơn vị", vs = "Hoàn tất thanh toán của bạn trong", ys = "Hoàn tất đăng ký", bs = "Xác nhận", Ss = "Thông tin lưu ý:", ks = "3. Thông tin người liên hệ:", ws = "Bản", xs = "Quốc gia", $s = "2 ký tự tùy chọn (mặc định: YY)", Ps = "Số lượng tùy chỉnh", Cs = "Ngày sinh", Ts = "Giảm", Ls = "Gói chữ ký số", Os = "Quận/Huyện", Is = "Thời hạn", Ns = "E-Contract", Rs = "Chỉnh sửa", As = "hóa đơn điện tử", Fs = "Email", Us = "Nhập số CMND/CCCD", Ds = "Nhập ký hiệu hóa đơn", Es = "Nhập số hộ chiếu", js = "Nhập tên nhà cung cấp", Ms = "Nhập mã CQT cấp", Hs = "Không thể kiểm tra trạng thái khách hàng", Ks = "Không thể tạo đơn hàng", Bs = "Lỗi khi lấy thông tin mã số thuế.", qs = "Định dạng tệp không được hỗ trợ", Vs = "Kích thước tệp quá lớn", zs = "Truy cập bị từ chối", Qs = "Địa chỉ không được chứa ký tự đặc biệt", Gs = "CCCD không hợp lệ", Ws = "Ngày sinh không hợp lệ", Xs = "Email không hợp lệ", _s = "Số CCCD không hợp lệ", Js = "Chỉ được dùng chữ cái, số và dấu gạch dưới", Ys = "Số điện thoại không hợp lệ", Zs = "Tên nhà cung cấp không hợp lệ", er = "Yêu cầu không hợp lệ", tr = "Mã CQT cấp không hợp lệ", nr = "Mã số thuế không hợp lệ", ir = "Không thể tải dữ liệu", or = "Không thể tải gói đăng ký", sr = "Không thể tải gói hóa đơn", rr = "Không thể tải gói chữ ký số", ar = "Lỗi kết nối mạng", cr = "Không tìm thấy dữ liệu", lr = "Không thể kiểm tra trạng thái thanh toán đơn hàng. Vui lòng thử lại.", ur = "Không thể tạo mã QR thanh toán. Vui lòng thử lại.", hr = "Trường này là bắt buộc", dr = "Không thể tìm kiếm gói", fr = "Lỗi máy chủ, vui lòng thử lại sau", pr = "Dịch vụ tạm thời không khả dụng", gr = "Quá nhiều yêu cầu, vui lòng thử lại sau", mr = "Không có quyền truy cập", vr = "Đã xảy ra lỗi", yr = "Dữ liệu không hợp lệ", br = "Nữ", Sr = "Định dạng", kr = "Mặt trước CCCD", wr = "Họ và tên", xr = "Giới tính", $r = "Bạn đã sử dụng hoá đơn điện tử?", Pr = "Bạn đang sử dụng nhà NCC hoá đơn điện tử khác M-invoice không?", Cr = "(Tổng đài Tư vấn, Hỗ trợ miễn phí)", Tr = "Hotline:", Lr = "CCCD", Or = "Tăng", Ir = "Đã gửi thông tin sang nhà cung cấp", Nr = "Gói hóa đơn", Rr = "Ký hiệu hóa đơn", Ar = "Mẫu số", Fr = { 1: "1 (Hóa đơn GTGT)", 2: "2 (Hóa đơn bán hàng)", 3: "3 (Bán tài sản công)", 4: "4 (Bán dự trữ quốc gia)", 5: "5 (Tem, vé, thẻ khác)", 6: "6 (Chứng từ nội bộ)", 7: "7 (Hóa đơn thương mại)", 8: "8 (GTGT tích hợp thuế)", 9: "9 (Bán hàng tích hợp thuế)" }, Ur = "B (Đại lý)", Dr = "D (Tài sản)", Er = "G (Tem GTGT)", jr = "H (Tem bán hàng)", Mr = "L (CQT)", Hr = "M (Máy tính tiền)", Kr = "N (Nội bộ)", Br = "T (Đăng ký)", qr = "Loại hóa đơn", Vr = "X (Thương mại)", zr = "4. THÔNG TIN SỬ DỤNG HDDT:", Qr = "hóa đơn/tháng", Gr = "2. Thông tin người đại diện pháp luật:", Wr = "Vui lòng kiểm tra và nhập đúng tên người đại diện theo Giấy phép kinh doanh đã tải lên.", Xr = "Đang tải...", _r = "Nam", Jr = "Tối đa 500Kb", Yr = "Tháng", Zr = "Gói phù hợp nhất", ea = "Tiếp tục", ta = "Không có dữ liệu", na = "Không tìm thấy gói nào.", ia = "Vui lòng thường xuyên kiểm tra hộp thư Email nhận thông báo thông tin tài khoản từ nhà cung cấp", oa = "Trong vòng 2 giờ nếu chưa nhận được thông tin Email tài khoản (username/password). Bạn có thể liên hệ thông tin phía bên dưới để được hỗ trợ sớm nhất:", sa = "của", ra = "OK", aa = "Tùy chọn", ca = "hoặc", la = "Đơn hàng đã được tạo thành công", ua = "Đơn hàng đã hết hạn", ha = "Thông tin đơn hàng", da = "Tóm tắt đơn hàng", fa = "Giấy chứng nhận đăng ký doanh nghiệp", pa = "Hộ chiếu", ga = "Số tiền thanh toán", ma = "Thanh toán thất bại", va = ["Mở ứng dụng Ngân hàng hoặc Ví điện tử trên điện thoại", "Trên ứng dụng chọn tính năng Quét mã QR", "Quét mã QR ở trang này và thanh toán"], ya = "Hướng dẫn thanh toán QR", ba = "Hình thức thanh toán:", Sa = "Thanh toán thành công!", ka = "Hết thời gian thanh toán", wa = "Hết thời gian thanh toán! Vui lòng thử lại.", xa = "Thanh toán", $a = "Địa chỉ thường trú", Pa = "Số điện thoại", Ca = "Sản phẩm", Ta = "Nhà cung cấp", La = "Tên NCC", Oa = "Tỉnh/Thành phố", Ia = "Thanh toán qua mã QR", Na = "Quét mã QR để thanh toán", Ra = "Số lượng", Aa = "Phí đăng ký", Fa = "Bắt buộc", Ua = "Trở về trang chủ", Da = "Quay lại bước 1", Ea = "Mẫu số hóa đơn (1-9)", ja = "Lưu", Ma = "Số đơn/tháng", Ha = "Chọn tệp", Ka = "Chọn gói hóa đơn điện tử", Ba = "Chọn nhà cung cấp", qa = "Chọn gói chữ ký số", Va = "Chọn gói đăng ký", za = "Sản phẩm đã chọn", Qa = "Thiết lập", Ga = "Gói chữ ký số", Wa = "Bản quyền phần mềm hóa đơn điện tử", Xa = "Thông Tin", _a = "Xác Nhận Và Thanh Toán", Ja = "Gói Hóa Đơn", Ya = "Gói đăng ký", Za = "CQT quản lý", ec = "5 ký tự do CQT cấp cho loại hóa đơn máy tính tiền", tc = "Mã số thuế đơn vị", nc = "Điều khoản và Chính sách sử dụng", ic = "Thời gian còn lại", oc = "Tổng cộng", sc = "Tổng tiền", rc = "Thành tiền", ac = "Giao dịch đã được hủy. Quay về trang đăng ký.", cc = "Đơn vị tính", lc = "1. Thông tin đơn vị", uc = "đơn/tháng", hc = "Đơn giá", dc = "đơn/ tháng", fc = "Tải lên mặt sau CCCD", pc = "Tải lên tệp", gc = "Tải lên mặt trước CCCD", mc = "Tải logo lên", vc = "Chính sách sử dụng", yc = "Phường/Xã", bc = "Website", Sc = "Đăng ký hóa đơn điện tử", kc = "Năm phát hành (2 chữ số cuối)", wc = {
1477
1477
  accountName: Zo,
1478
1478
  accountNumber: es,
1479
1479
  address: ts,
@@ -1489,31 +1489,31 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1489
1489
  close: hs,
1490
1490
  codeTypeC: ds,
1491
1491
  codeTypeK: fs,
1492
- codeTypeTooltip: gs,
1493
- comingSoon: ps,
1492
+ codeTypeTooltip: ps,
1493
+ comingSoon: gs,
1494
1494
  companyName: ms,
1495
1495
  completePaymentIn: vs,
1496
1496
  completeRegistration: ys,
1497
1497
  confirm: bs,
1498
1498
  confirmationTitle: Ss,
1499
1499
  contactInfo: ks,
1500
- copy: xs,
1501
- country: $s,
1502
- customLettersTooltip: Ps,
1503
- customUnits: Cs,
1504
- dateOfBirth: ws,
1500
+ copy: ws,
1501
+ country: xs,
1502
+ customLettersTooltip: $s,
1503
+ customUnits: Ps,
1504
+ dateOfBirth: Cs,
1505
1505
  decrease: Ts,
1506
1506
  delete: "Xóa",
1507
- digitalSignaturePackage: Os,
1508
- district: Ls,
1507
+ digitalSignaturePackage: Ls,
1508
+ district: Os,
1509
1509
  duration: Is,
1510
1510
  eContractTitle: Ns,
1511
1511
  edit: Rs,
1512
- electronicInvoices: Fs,
1513
- email: As,
1514
- enterIdCard: Ds,
1515
- enterInvoiceSymbol: Es,
1516
- enterPassport: Us,
1512
+ electronicInvoices: As,
1513
+ email: Fs,
1514
+ enterIdCard: Us,
1515
+ enterInvoiceSymbol: Ds,
1516
+ enterPassport: Es,
1517
1517
  enterProviderName: js,
1518
1518
  enterTaxAuthorityCode: Ms,
1519
1519
  errorCheckingCustomer: Hs,
@@ -1544,30 +1544,30 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1544
1544
  errorRequired: hr,
1545
1545
  errorSearchingPackages: dr,
1546
1546
  errorServer: fr,
1547
- errorServiceUnavailable: gr,
1548
- errorTooManyRequests: pr,
1547
+ errorServiceUnavailable: pr,
1548
+ errorTooManyRequests: gr,
1549
1549
  errorUnauthorized: mr,
1550
1550
  errorUnknown: vr,
1551
1551
  errorValidation: yr,
1552
1552
  female: br,
1553
1553
  fileFormat: Sr,
1554
1554
  frontIdCard: kr,
1555
- fullName: xr,
1556
- gender: $r,
1557
- hasUsedEInvoice: Pr,
1558
- hasUsedEInvoiceBefore: Cr,
1559
- hotlineDesc: wr,
1555
+ fullName: wr,
1556
+ gender: xr,
1557
+ hasUsedEInvoice: $r,
1558
+ hasUsedEInvoiceBefore: Pr,
1559
+ hotlineDesc: Cr,
1560
1560
  hotlineDomestic: Tr,
1561
- idNumber: Or,
1562
- increase: Lr,
1561
+ idNumber: Lr,
1562
+ increase: Or,
1563
1563
  informationSent: Ir,
1564
1564
  invoicePackage: Nr,
1565
1565
  invoiceSymbol: Rr,
1566
- invoiceTemplate: Fr,
1567
- invoiceTemplateTypes: Ar,
1568
- invoiceTypeB: Dr,
1569
- invoiceTypeD: Er,
1570
- invoiceTypeG: Ur,
1566
+ invoiceTemplate: Ar,
1567
+ invoiceTemplateTypes: Fr,
1568
+ invoiceTypeB: Ur,
1569
+ invoiceTypeD: Dr,
1570
+ invoiceTypeG: Er,
1571
1571
  invoiceTypeH: jr,
1572
1572
  invoiceTypeL: Mr,
1573
1573
  invoiceTypeM: Hr,
@@ -1601,30 +1601,30 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1601
1601
  orderSummary: da,
1602
1602
  organizationCert: fa,
1603
1603
  package: "Gói",
1604
- passport: ga,
1605
- paymentAmount: pa,
1604
+ passport: pa,
1605
+ paymentAmount: ga,
1606
1606
  paymentFailed: ma,
1607
1607
  paymentInstructions: va,
1608
1608
  paymentInstructionsTitle: ya,
1609
1609
  paymentMethod: ba,
1610
1610
  paymentSuccess: Sa,
1611
1611
  paymentTimeout: ka,
1612
- paymentTimeoutMessage: xa,
1613
- paymentTitle: $a,
1614
- permanentAddress: Pa,
1615
- phone: Ca,
1616
- product: wa,
1612
+ paymentTimeoutMessage: wa,
1613
+ paymentTitle: xa,
1614
+ permanentAddress: $a,
1615
+ phone: Pa,
1616
+ product: Ca,
1617
1617
  provider: Ta,
1618
- providerName: Oa,
1619
- province: La,
1618
+ providerName: La,
1619
+ province: Oa,
1620
1620
  qrPayment: Ia,
1621
1621
  qrPaymentTitle: Na,
1622
1622
  quantity: Ra,
1623
- registrationFee: Fa,
1624
- required: Aa,
1625
- returnHome: Da,
1626
- returnToStep1: Ea,
1627
- sampleNumberTooltip: Ua,
1623
+ registrationFee: Aa,
1624
+ required: Fa,
1625
+ returnHome: Ua,
1626
+ returnToStep1: Da,
1627
+ sampleNumberTooltip: Ea,
1628
1628
  save: ja,
1629
1629
  searchUnits: Ma,
1630
1630
  selectFile: Ha,
@@ -1655,8 +1655,8 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1655
1655
  unitPrice: hc,
1656
1656
  unitsPerMonth: dc,
1657
1657
  uploadBackId: fc,
1658
- uploadFile: gc,
1659
- uploadFrontId: pc,
1658
+ uploadFile: pc,
1659
+ uploadFrontId: gc,
1660
1660
  uploadLogo: mc,
1661
1661
  usagePolicy: vc,
1662
1662
  ward: yc,
@@ -1664,20 +1664,20 @@ const Tt = "Account Name", Ot = "Account Number", Lt = "Unit Address", It = "I a
1664
1664
  widgetTitle: Sc,
1665
1665
  yearTooltip: kc
1666
1666
  }, {
1667
- slice: $c,
1668
- forEach: Pc
1667
+ slice: xc,
1668
+ forEach: $c
1669
1669
  } = [];
1670
- function Cc(o) {
1671
- return Pc.call($c.call(arguments, 1), (e) => {
1670
+ function Pc(o) {
1671
+ return $c.call(xc.call(arguments, 1), (e) => {
1672
1672
  if (e)
1673
1673
  for (const t in e)
1674
1674
  o[t] === void 0 && (o[t] = e[t]);
1675
1675
  }), o;
1676
1676
  }
1677
- function wc(o) {
1677
+ function Cc(o) {
1678
1678
  return typeof o != "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((t) => t.test(o));
1679
1679
  }
1680
- const De = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
1680
+ const Ue = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
1681
1681
  const n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
1682
1682
  path: "/"
1683
1683
  }, i = encodeURIComponent(e);
@@ -1688,12 +1688,12 @@ const De = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
1688
1688
  s += `; Max-Age=${Math.floor(r)}`;
1689
1689
  }
1690
1690
  if (n.domain) {
1691
- if (!De.test(n.domain))
1691
+ if (!Ue.test(n.domain))
1692
1692
  throw new TypeError("option domain is invalid");
1693
1693
  s += `; Domain=${n.domain}`;
1694
1694
  }
1695
1695
  if (n.path) {
1696
- if (!De.test(n.path))
1696
+ if (!Ue.test(n.path))
1697
1697
  throw new TypeError("option path is invalid");
1698
1698
  s += `; Path=${n.path}`;
1699
1699
  }
@@ -1720,7 +1720,7 @@ const De = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
1720
1720
  throw new TypeError("option sameSite is invalid");
1721
1721
  }
1722
1722
  return n.partitioned && (s += "; Partitioned"), s;
1723
- }, Ee = {
1723
+ }, De = {
1724
1724
  create(o, e, t, n) {
1725
1725
  let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
1726
1726
  path: "/",
@@ -1741,7 +1741,7 @@ const De = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tc = function(o, e) {
1741
1741
  this.create(o, "", -1, e);
1742
1742
  }
1743
1743
  };
1744
- var Oc = {
1744
+ var Lc = {
1745
1745
  name: "cookie",
1746
1746
  // Deconstruct the options object and extract the lookupCookie property
1747
1747
  lookup(o) {
@@ -1749,7 +1749,7 @@ var Oc = {
1749
1749
  lookupCookie: e
1750
1750
  } = o;
1751
1751
  if (e && typeof document != "undefined")
1752
- return Ee.read(e) || void 0;
1752
+ return De.read(e) || void 0;
1753
1753
  },
1754
1754
  // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
1755
1755
  cacheUserLanguage(o, e) {
@@ -1759,9 +1759,9 @@ var Oc = {
1759
1759
  cookieDomain: i,
1760
1760
  cookieOptions: s
1761
1761
  } = e;
1762
- t && typeof document != "undefined" && Ee.create(t, o, n, i, s);
1762
+ t && typeof document != "undefined" && De.create(t, o, n, i, s);
1763
1763
  }
1764
- }, Lc = {
1764
+ }, Oc = {
1765
1765
  name: "querystring",
1766
1766
  // Deconstruct the options object and extract the lookupQuerystring property
1767
1767
  lookup(o) {
@@ -1815,7 +1815,7 @@ var Oc = {
1815
1815
  }
1816
1816
  };
1817
1817
  let M = null;
1818
- const Ue = () => {
1818
+ const Ee = () => {
1819
1819
  if (M !== null) return M;
1820
1820
  try {
1821
1821
  if (M = typeof window != "undefined" && window.localStorage !== null, !M)
@@ -1834,7 +1834,7 @@ var Nc = {
1834
1834
  let {
1835
1835
  lookupLocalStorage: e
1836
1836
  } = o;
1837
- if (e && Ue())
1837
+ if (e && Ee())
1838
1838
  return window.localStorage.getItem(e) || void 0;
1839
1839
  },
1840
1840
  // Deconstruct the options object and extract the lookupLocalStorage property
@@ -1842,7 +1842,7 @@ var Nc = {
1842
1842
  let {
1843
1843
  lookupLocalStorage: t
1844
1844
  } = e;
1845
- t && Ue() && window.localStorage.setItem(t, o);
1845
+ t && Ee() && window.localStorage.setItem(t, o);
1846
1846
  }
1847
1847
  };
1848
1848
  let H = null;
@@ -1873,7 +1873,7 @@ var Rc = {
1873
1873
  } = e;
1874
1874
  t && je() && window.sessionStorage.setItem(t, o);
1875
1875
  }
1876
- }, Fc = {
1876
+ }, Ac = {
1877
1877
  name: "navigator",
1878
1878
  lookup(o) {
1879
1879
  const e = [];
@@ -1890,7 +1890,7 @@ var Rc = {
1890
1890
  }
1891
1891
  return e.length > 0 ? e : void 0;
1892
1892
  }
1893
- }, Ac = {
1893
+ }, Fc = {
1894
1894
  name: "htmlTag",
1895
1895
  // Deconstruct the options object and extract the htmlTag property
1896
1896
  lookup(o) {
@@ -1900,7 +1900,7 @@ var Rc = {
1900
1900
  const n = e || (typeof document != "undefined" ? document.documentElement : null);
1901
1901
  return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
1902
1902
  }
1903
- }, Dc = {
1903
+ }, Uc = {
1904
1904
  name: "path",
1905
1905
  // Deconstruct the options object and extract the lookupFromPathIndex property
1906
1906
  lookup(o) {
@@ -1912,7 +1912,7 @@ var Rc = {
1912
1912
  const t = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
1913
1913
  return Array.isArray(t) ? (i = t[typeof e == "number" ? e : 0]) == null ? void 0 : i.replace("/", "") : void 0;
1914
1914
  }
1915
- }, Ec = {
1915
+ }, Dc = {
1916
1916
  name: "subdomain",
1917
1917
  lookup(o) {
1918
1918
  var i, s;
@@ -1931,7 +1931,7 @@ try {
1931
1931
  }
1932
1932
  const Ge = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
1933
1933
  Qe || Ge.splice(1, 1);
1934
- const Uc = () => ({
1934
+ const Ec = () => ({
1935
1935
  order: Ge,
1936
1936
  lookupQuerystring: "lng",
1937
1937
  lookupCookie: "i18next",
@@ -1953,7 +1953,7 @@ class We {
1953
1953
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
1954
1954
  languageUtils: {}
1955
1955
  }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1956
- this.services = e, this.options = Cc(t, this.options || {}, Uc()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Oc), this.addDetector(Lc), this.addDetector(Nc), this.addDetector(Rc), this.addDetector(Fc), this.addDetector(Ac), this.addDetector(Dc), this.addDetector(Ec), this.addDetector(Ic);
1956
+ this.services = e, this.options = Pc(t, this.options || {}, Ec()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Lc), this.addDetector(Oc), this.addDetector(Nc), this.addDetector(Rc), this.addDetector(Ac), this.addDetector(Fc), this.addDetector(Uc), this.addDetector(Dc), this.addDetector(Ic);
1957
1957
  }
1958
1958
  addDetector(e) {
1959
1959
  return this.detectors[e.name] = e, this;
@@ -1965,7 +1965,7 @@ class We {
1965
1965
  let i = this.detectors[n].lookup(this.options);
1966
1966
  i && typeof i == "string" && (i = [i]), i && (t = t.concat(i));
1967
1967
  }
1968
- }), t = t.filter((n) => n != null && !wc(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
1968
+ }), t = t.filter((n) => n != null && !Cc(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
1969
1969
  }
1970
1970
  cacheUserLanguage(e) {
1971
1971
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
@@ -2018,43 +2018,43 @@ function Hc(o, e, t) {
2018
2018
  }
2019
2019
  function Kc(o) {
2020
2020
  var e = Bc(o, "string");
2021
- return U(e) == "symbol" ? e : e + "";
2021
+ return E(e) == "symbol" ? e : e + "";
2022
2022
  }
2023
2023
  function Bc(o, e) {
2024
- if (U(o) != "object" || !o) return o;
2024
+ if (E(o) != "object" || !o) return o;
2025
2025
  var t = o[Symbol.toPrimitive];
2026
2026
  if (t !== void 0) {
2027
2027
  var n = t.call(o, e);
2028
- if (U(n) != "object") return n;
2028
+ if (E(n) != "object") return n;
2029
2029
  throw new TypeError("@@toPrimitive must return a primitive value.");
2030
2030
  }
2031
2031
  return (e === "string" ? String : Number)(o);
2032
2032
  }
2033
- function U(o) {
2033
+ function E(o) {
2034
2034
  "@babel/helpers - typeof";
2035
- return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2035
+ return E = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
2036
2036
  return typeof e;
2037
2037
  } : function(e) {
2038
2038
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2039
- }, U(o);
2039
+ }, E(o);
2040
2040
  }
2041
- var D = typeof fetch == "function" ? fetch : void 0;
2042
- typeof global != "undefined" && global.fetch ? D = global.fetch : typeof window != "undefined" && window.fetch && (D = window.fetch);
2041
+ var U = typeof fetch == "function" ? fetch : void 0;
2042
+ typeof global != "undefined" && global.fetch ? U = global.fetch : typeof window != "undefined" && window.fetch && (U = window.fetch);
2043
2043
  var X;
2044
2044
  Xe() && (typeof global != "undefined" && global.XMLHttpRequest ? X = global.XMLHttpRequest : typeof window != "undefined" && window.XMLHttpRequest && (X = window.XMLHttpRequest));
2045
2045
  var ie;
2046
2046
  typeof ActiveXObject == "function" && (typeof global != "undefined" && global.ActiveXObject ? ie = global.ActiveXObject : typeof window != "undefined" && window.ActiveXObject && (ie = window.ActiveXObject));
2047
- typeof D != "function" && (D = void 0);
2048
- if (!D && !X && !ie)
2047
+ typeof U != "function" && (U = void 0);
2048
+ if (!U && !X && !ie)
2049
2049
  try {
2050
2050
  import("./browser-ponyfill-BxQPfTD2.js").then((o) => o.b).then(function(o) {
2051
- D = o.default;
2051
+ U = o.default;
2052
2052
  }).catch(function() {
2053
2053
  });
2054
2054
  } catch (o) {
2055
2055
  }
2056
2056
  var de = function(e, t) {
2057
- if (t && U(t) === "object") {
2057
+ if (t && E(t) === "object") {
2058
2058
  var n = "";
2059
2059
  for (var i in t)
2060
2060
  n += "&" + encodeURIComponent(i) + "=" + encodeURIComponent(t[i]);
@@ -2081,7 +2081,7 @@ var de = function(e, t) {
2081
2081
  return;
2082
2082
  }
2083
2083
  }
2084
- typeof fetch == "function" ? fetch(e, t).then(s).catch(n) : D(e, t).then(s).catch(n);
2084
+ typeof fetch == "function" ? fetch(e, t).then(s).catch(n) : U(e, t).then(s).catch(n);
2085
2085
  }, Be = !1, qc = function(e, t, n, i) {
2086
2086
  e.queryStringParams && (t = de(t, e.queryStringParams));
2087
2087
  var s = He({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
@@ -2105,7 +2105,7 @@ var de = function(e, t) {
2105
2105
  }
2106
2106
  }
2107
2107
  }, Vc = function(e, t, n, i) {
2108
- n && U(n) === "object" && (n = de("", n).slice(1)), e.queryStringParams && (t = de(t, e.queryStringParams));
2108
+ n && E(n) === "object" && (n = de("", n).slice(1)), e.queryStringParams && (t = de(t, e.queryStringParams));
2109
2109
  try {
2110
2110
  var s = X ? new X() : new ie("MSXML2.XMLHTTP.3.0");
2111
2111
  s.open(n ? "POST" : "GET", t, 1), e.crossDomain || s.setRequestHeader("X-Requested-With", "XMLHttpRequest"), s.withCredentials = !!e.withCredentials, n && s.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), s.overrideMimeType && s.overrideMimeType("application/json");
@@ -2124,7 +2124,7 @@ var de = function(e, t) {
2124
2124
  }
2125
2125
  }, zc = function(e, t, n, i) {
2126
2126
  if (typeof n == "function" && (i = n, n = void 0), i = i || function() {
2127
- }, D && t.indexOf("file:") !== 0)
2127
+ }, U && t.indexOf("file:") !== 0)
2128
2128
  return qc(e, t, n, i);
2129
2129
  if (Xe() || typeof ActiveXObject == "function")
2130
2130
  return Vc(e, t, n, i);
@@ -2261,8 +2261,8 @@ var _c = function() {
2261
2261
  if (u && (u.status >= 500 && u.status < 600 || !u.status)) return n("failed loading " + t + "; status code: " + u.status, !0);
2262
2262
  if (u && u.status >= 400 && u.status < 500) return n("failed loading " + t + "; status code: " + u.status, !1);
2263
2263
  if (!u && h && h.message) {
2264
- var g = h.message.toLowerCase(), f = ["failed", "fetch", "network", "load"].find(function(y) {
2265
- return g.indexOf(y) > -1;
2264
+ var p = h.message.toLowerCase(), f = ["failed", "fetch", "network", "load"].find(function(y) {
2265
+ return p.indexOf(y) > -1;
2266
2266
  });
2267
2267
  if (f)
2268
2268
  return n("failed loading " + t + ": " + h.message, !0);
@@ -2285,11 +2285,11 @@ var _c = function() {
2285
2285
  if (this.options.addPath) {
2286
2286
  typeof t == "string" && (t = [t]);
2287
2287
  var c = this.options.parsePayload(n, i, s), l = 0, h = [], u = [];
2288
- t.forEach(function(g) {
2288
+ t.forEach(function(p) {
2289
2289
  var f = a.options.addPath;
2290
- typeof a.options.addPath == "function" && (f = a.options.addPath(g, n));
2290
+ typeof a.options.addPath == "function" && (f = a.options.addPath(p, n));
2291
2291
  var d = a.services.interpolator.interpolate(f, {
2292
- lng: g,
2292
+ lng: p,
2293
2293
  ns: n
2294
2294
  });
2295
2295
  a.options.request(a.options, d, c, function(v, y) {
@@ -2304,8 +2304,8 @@ var _c = function() {
2304
2304
  var t = this, n = this.services, i = n.backendConnector, s = n.languageUtils, r = n.logger, a = i.language;
2305
2305
  if (!(a && a.toLowerCase() === "cimode")) {
2306
2306
  var c = [], l = function(u) {
2307
- var g = s.toResolveHierarchy(u);
2308
- g.forEach(function(f) {
2307
+ var p = s.toResolveHierarchy(u);
2308
+ p.forEach(function(f) {
2309
2309
  c.indexOf(f) < 0 && c.push(f);
2310
2310
  });
2311
2311
  };
@@ -2313,8 +2313,8 @@ var _c = function() {
2313
2313
  return l(h);
2314
2314
  }), c.forEach(function(h) {
2315
2315
  t.allOptions.ns.forEach(function(u) {
2316
- i.read(h, u, "read", null, null, function(g, f) {
2317
- g && r.warn("loading namespace ".concat(u, " for language ").concat(h, " failed"), g), !g && f && r.log("loaded namespace ".concat(u, " for language ").concat(h), f), i.loaded("".concat(h, "|").concat(u), g, f);
2316
+ i.read(h, u, "read", null, null, function(p, f) {
2317
+ p && r.warn("loading namespace ".concat(u, " for language ").concat(h, " failed"), p), !p && f && r.log("loaded namespace ".concat(u, " for language ").concat(h), f), i.loaded("".concat(h, "|").concat(u), p, f);
2318
2318
  });
2319
2319
  });
2320
2320
  });
@@ -2329,7 +2329,7 @@ b.use(Ye).use(We).init({
2329
2329
  debug: !1,
2330
2330
  resources: {
2331
2331
  en: { translation: Yo },
2332
- vi: { translation: xc }
2332
+ vi: { translation: wc }
2333
2333
  },
2334
2334
  interpolation: {
2335
2335
  escapeValue: !1
@@ -2340,8 +2340,8 @@ b.use(Ye).use(We).init({
2340
2340
  function Jc(o) {
2341
2341
  b.changeLanguage(o);
2342
2342
  }
2343
- function sl(o, e) {
2344
- return b.t(o, p({ returnObjects: !0 }, e));
2343
+ function al(o, e) {
2344
+ return b.t(o, g({ returnObjects: !0 }, e));
2345
2345
  }
2346
2346
  function Yc(o = "dev") {
2347
2347
  const e = {
@@ -2398,20 +2398,22 @@ function Zc() {
2398
2398
  }
2399
2399
  return "dev";
2400
2400
  }
2401
- function rl() {
2401
+ function cl() {
2402
2402
  const o = Zc();
2403
2403
  return Yc(o);
2404
2404
  }
2405
- const el = { bvb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !0, link: "https://minvoice.vn", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !0, link: "https://minvoice.vn", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } } }, tl = { bvb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", isActive: !1, link: "https://minvoice.vn", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", isActive: !1, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } } }, nl = { bvb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "", isActive: !1, link: "https://minvoice.vn", name: "m-invoice", onboarding: !1, sso: !1 } } }, il = {
2405
+ const el = { bvb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !0, link: "", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !0, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !0, link: "", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !0, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } } }, tl = { bvb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } } }, nl = { bvb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://www.meinvoice.vn/tra-cuu/", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://www.meinvoice.vn/tra-cuu/", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } } }, il = { bvb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } } }, ol = { bvb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } }, ocb: { fpt: { email: "", hotline: "", invoiceLookupUrl: "", isActive: !1, link: "", name: "fpt", onboarding: !1, sso: !1 }, "m-invoice": { email: "info@minvoice.vn", hotline: "0901 80 16 18", invoiceLookupUrl: "https://test-tracuuhoadon.minvoice.com.vn/single/invoice", isActive: !0, link: "https://minvoice.vn", name: "m-invoice", onboarding: !0, sso: !1 }, misa: { email: "", hotline: "", invoiceLookupUrl: "https://test.meinvoice.vn/tra-cuu", isActive: !1, link: "https://www.misa.vn", name: "misa", onboarding: !1, sso: !1 } } }, sl = {
2406
2406
  dev: el,
2407
- prod: tl,
2408
- stag: nl
2407
+ pilot: tl,
2408
+ prod: nl,
2409
+ stag: il,
2410
+ uat: ol
2409
2411
  };
2410
2412
  let ce = null, le = null;
2411
- function al(o) {
2413
+ function ll(o) {
2412
2414
  return se(this, null, function* () {
2413
2415
  if (o.mode && Ze(o.mode), o.language && et(o.language), !le) {
2414
- const { InvoiceRegisterWidget: n } = yield import("./widget-DiTa4M8T.js");
2416
+ const { InvoiceRegisterWidget: n } = yield import("./widget-D-y7_RyC.js");
2415
2417
  le = n;
2416
2418
  }
2417
2419
  const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
@@ -2431,10 +2433,10 @@ function al(o) {
2431
2433
  ), { destroy: t };
2432
2434
  });
2433
2435
  }
2434
- function cl(o) {
2436
+ function ul(o) {
2435
2437
  return se(this, null, function* () {
2436
2438
  if (o.mode && Ze(o.mode), o.language && et(o.language), !ce) {
2437
- const { EContractWidget: n } = yield import("./widget-DiTa4M8T.js");
2439
+ const { EContractWidget: n } = yield import("./widget-D-y7_RyC.js");
2438
2440
  ce = n;
2439
2441
  }
2440
2442
  const e = typeof o.selector == "string" ? document.querySelector(o.selector) : o.selector;
@@ -2446,31 +2448,31 @@ function cl(o) {
2446
2448
  return ce(e, t, o.data || {}, o.theme), { destroy: t };
2447
2449
  });
2448
2450
  }
2449
- let ge = /* @__PURE__ */ new Set();
2451
+ let pe = /* @__PURE__ */ new Set();
2450
2452
  function et(o) {
2451
2453
  if (o !== "vi" && o !== "en")
2452
2454
  throw new Error(`[WidgetSDK] Unsupported language: ${o}`);
2453
- Jc(o), ge.forEach((e) => {
2455
+ Jc(o), pe.forEach((e) => {
2454
2456
  e.rerender && e.rerender();
2455
2457
  });
2456
2458
  }
2457
- function ll(o) {
2458
- ge.add(o);
2459
+ function hl(o) {
2460
+ pe.add(o);
2459
2461
  }
2460
- function ul(o) {
2461
- ge.delete(o);
2462
+ function dl(o) {
2463
+ pe.delete(o);
2462
2464
  }
2463
- function hl() {
2464
- return il;
2465
+ function fl() {
2466
+ return sl;
2465
2467
  }
2466
2468
  export {
2467
- cl as a,
2469
+ ul as a,
2468
2470
  et as b,
2469
- hl as c,
2470
- rl as g,
2471
- al as i,
2472
- ll as r,
2473
- il as s,
2474
- sl as t,
2475
- ul as u
2471
+ fl as c,
2472
+ cl as g,
2473
+ ll as i,
2474
+ hl as r,
2475
+ sl as s,
2476
+ al as t,
2477
+ dl as u
2476
2478
  };