@agendize/vue-tools 1.25.1 → 1.25.3

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.
@@ -3,11 +3,11 @@ var oc = (t, e, n) => e in t ? ic(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var rt = (t, e, n) => oc(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import { ref as ge, onMounted as jt, onUnmounted as Ra, readonly as ac, getCurrentInstance as Ii, inject as lc, shallowRef as uc, computed as _t, watch as wt, defineComponent as kt, h as xa, createVNode as ke, Text as cc, Fragment as Li, createElementBlock as Mn, openBlock as Ne, createElementVNode as qe, createBlock as Fe, createCommentVNode as Ue, toDisplayString as Je, normalizeStyle as dc, unref as V, withCtx as Oe, createTextVNode as Ct, normalizeClass as Fa, resolveDirective as fc, withDirectives as hc, isRef as lo, capitalize as On, defineAsyncComponent as mc } from "vue";
5
5
  import { getStandardLocale as dt } from "@agendize/az-i18n";
6
- import { Button as Nt, StructuredLayout as Rn, FieldTextArea as Pa, Mandatory as Et, StructuredSection as $a, Accordeon as Ua, StructuredFormLayout as gc, FieldNumber as uo, FieldInput as Ai, StructuredButtonLayout as fs, Banner as co, FieldPhone as pc, FieldCopy as yc, StructuredList as _c, Selectable as Ec, FormFields as bc, FieldToggle as fo, getTextColorFromBackgroundColor as ho, ErrorComponent as vc, LoadingComponent as wc, SpecificPeriodModel as Sc } from "@agendize/design-system";
7
- import { AgendizeApi as Oc, Logger as Tc, ApiErrors as mo, ShareLinkEntity as Ba, ShareLinkRecipientEntity as Va, GlobalRight as Ut, FormBuilderPublicEntity as Cc, FormBuilderSecuredEntity as Nc, FormResultPublicEntity as kc, FORM_FILE_EXTENSIONS as Ic, FORM_FILE_MAX_SIZE as Lc, EventStatus as be, PublicBodyEntity as Ac, SecuredBodyEntity as Dc, StorageKeys as Kn } from "@agendize/js-agendize-api";
6
+ import { Button as Nt, StructuredLayout as Rn, FieldTextArea as Pa, Mandatory as Et, StructuredSection as $a, Accordeon as Ua, StructuredFormLayout as gc, FieldNumber as uo, FieldInput as Ai, StructuredButtonLayout as fs, Banner as co, FieldPhone as pc, FieldCopy as yc, StructuredList as _c, Selectable as Ec, FormFields as vc, FieldToggle as fo, getTextColorFromBackgroundColor as ho, ErrorComponent as bc, LoadingComponent as wc, SpecificPeriodModel as Sc } from "@agendize/design-system";
7
+ import { AgendizeApi as Oc, Logger as Tc, ApiErrors as mo, ShareLinkEntity as Ba, ShareLinkRecipientEntity as Va, GlobalRight as Ut, FormBuilderPublicEntity as Cc, FormBuilderSecuredEntity as Nc, FormResultPublicEntity as kc, FORM_FILE_EXTENSIONS as Ic, FORM_FILE_MAX_SIZE as Lc, EventStatus as ve, PublicBodyEntity as Ac, SecuredBodyEntity as Dc, StorageKeys as Kn } from "@agendize/js-agendize-api";
8
8
  import { defineStore as Mc, createPinia as Rc } from "pinia";
9
9
  import { useAcl as Cs } from "@agendize/vue-acl";
10
- function e1(t) {
10
+ function s1(t) {
11
11
  const e = ge(t.state), n = (r) => {
12
12
  e.value = r;
13
13
  };
@@ -17,7 +17,7 @@ function e1(t) {
17
17
  t.unsubscribe(n);
18
18
  }), ac(e);
19
19
  }
20
- function t1(t, e) {
20
+ function i1(t, e) {
21
21
  e.urlPicture.value = void 0, e.pictureAsData.value = "", e.filePicture.value = void 0, t && xc(t).then((n) => {
22
22
  n && typeof n == "string" && (e.pictureAsData.value = n);
23
23
  });
@@ -26,7 +26,7 @@ const xc = (t) => new Promise((e, n) => {
26
26
  const r = new FileReader();
27
27
  r.readAsDataURL(t), r.onload = () => e(r.result), r.onerror = (s) => n(s);
28
28
  });
29
- function n1(t, e) {
29
+ function o1(t, e) {
30
30
  let n = new XMLHttpRequest();
31
31
  n.open("get", t), n.responseType = "blob", n.onload = function() {
32
32
  let r = new FileReader();
@@ -38,7 +38,7 @@ function n1(t, e) {
38
38
  }, r.readAsDataURL(n.response);
39
39
  }, n.send();
40
40
  }
41
- function r1(t, e) {
41
+ function a1(t, e) {
42
42
  var s, i;
43
43
  const n = "\uFEFF", r = new Blob([n + e], { type: "text/csv" });
44
44
  if ((s = window.navigator) != null && s.msSaveOrOpenBlob)
@@ -48,14 +48,14 @@ function r1(t, e) {
48
48
  o.href = window.URL.createObjectURL(r), o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o);
49
49
  }
50
50
  }
51
- function s1(t) {
51
+ function l1(t) {
52
52
  try {
53
53
  return parseInt(t);
54
54
  } catch {
55
55
  return 0;
56
56
  }
57
57
  }
58
- function i1(t) {
58
+ function u1(t) {
59
59
  var e, n;
60
60
  if (t != null && t.name) {
61
61
  const r = t.name.split(" ");
@@ -71,20 +71,22 @@ function Fc(t) {
71
71
  n && e.push(n.charAt(0).toUpperCase() + n.slice(1));
72
72
  }), e.join(" ");
73
73
  }
74
- function o1(t, e = { lastNameUpperCase: !0, firstNameCapitalize: !0 }) {
74
+ function c1(t, e = { lastNameUpperCase: !0, firstNameCapitalize: !0 }) {
75
75
  var r;
76
- return [e.firstNameCapitalize ? Fc(t.firstName) : t.firstName, e.lastNameUpperCase ? (r = t.lastName) == null ? void 0 : r.toUpperCase() : t.lastName].join(" ");
76
+ return [
77
+ (e.firstNameCapitalize ? Fc(t.firstName) : t.firstName) ?? "",
78
+ (e.lastNameUpperCase ? (r = t.lastName) == null ? void 0 : r.toUpperCase() : t.lastName) ?? ""
79
+ ].join(" ");
77
80
  }
78
81
  function Pc(t, e) {
79
- if (t) {
80
- const n = [];
81
- (t.street ?? "").trim().length > 0 && n.push(t.street), (t.additionalStreet ?? "").trim().length > 0 ? n.push(t.additionalStreet) : (t.otherStreet ?? "").trim().length > 0 && n.push(t.otherStreet);
82
- let r = [];
83
- return (t.zipCode ?? "").trim().length > 0 && r.push(t.zipCode), (t.city ?? "").trim().length > 0 && r.push(t.city), r.length > 0 && n.push(r.join(" ")), (t.country ?? "").trim().length > 0 && n.push(new Intl.DisplayNames([dt(e ?? "FR")], { type: "region" }).of(t.country)), n.join(", ");
84
- }
85
- return "";
82
+ if (!t)
83
+ return "";
84
+ const n = [];
85
+ (t.street ?? "").trim().length > 0 && n.push(t.street), (t.additionalStreet ?? "").trim().length > 0 ? n.push(t.additionalStreet) : (t.otherStreet ?? "").trim().length > 0 && n.push(t.otherStreet);
86
+ let r = [];
87
+ return (t.zipCode ?? "").trim().length > 0 && r.push(t.zipCode), (t.city ?? "").trim().length > 0 && r.push(t.city), r.length > 0 && n.push(r.join(" ")), t.country && t.country.trim().length > 0 && n.push(new Intl.DisplayNames([dt(e ?? "FR")], { type: "region" }).of(t.country)), n.join(", ");
86
88
  }
87
- function a1(t, e) {
89
+ function d1(t, e) {
88
90
  try {
89
91
  if (!e)
90
92
  return "";
@@ -113,7 +115,7 @@ function Bc() {
113
115
  var n = { 873: (o, a) => {
114
116
  var l, u, f = function() {
115
117
  var h = function(W, B) {
116
- var A = W, d = b[B], c = null, _ = 0, E = null, m = [], I = {}, H = function(S, R) {
118
+ var A = W, d = v[B], c = null, _ = 0, E = null, m = [], I = {}, H = function(S, R) {
117
119
  c = function(O) {
118
120
  for (var M = new Array(O), U = 0; U < O; U += 1) {
119
121
  M[U] = new Array(O);
@@ -198,7 +200,7 @@ function Bc() {
198
200
  O = de(S);
199
201
  break;
200
202
  case "Kanji":
201
- O = ve(S);
203
+ O = be(S);
202
204
  break;
203
205
  default:
204
206
  throw "mode:" + R;
@@ -340,11 +342,11 @@ function Bc() {
340
342
  return _;
341
343
  };
342
344
  };
343
- var p, v, k, D, $, b = { L: 1, M: 0, Q: 3, H: 2 }, T = (p = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], v = 1335, k = 7973, $ = function(W) {
345
+ var p, b, k, D, $, v = { L: 1, M: 0, Q: 3, H: 2 }, T = (p = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], b = 1335, k = 7973, $ = function(W) {
344
346
  for (var B = 0; W != 0; ) B += 1, W >>>= 1;
345
347
  return B;
346
348
  }, (D = {}).getBCHTypeInfo = function(W) {
347
- for (var B = W << 10; $(B) - $(v) >= 0; ) B ^= v << $(B) - $(v);
349
+ for (var B = W << 10; $(B) - $(b) >= 0; ) B ^= b << $(B) - $(b);
348
350
  return 21522 ^ (W << 10 | B);
349
351
  }, D.getBCHTypeNumber = function(W) {
350
352
  for (var B = W << 12; $(B) - $(k) >= 0; ) B ^= k << $(B) - $(k);
@@ -485,13 +487,13 @@ function Bc() {
485
487
  }, A = { getRSBlocks: function(d, c) {
486
488
  var _ = function(Q, K) {
487
489
  switch (K) {
488
- case b.L:
490
+ case v.L:
489
491
  return W[4 * (Q - 1) + 0];
490
- case b.M:
492
+ case v.M:
491
493
  return W[4 * (Q - 1) + 1];
492
- case b.Q:
494
+ case v.Q:
493
495
  return W[4 * (Q - 1) + 2];
494
- case b.H:
496
+ case v.H:
495
497
  return W[4 * (Q - 1) + 3];
496
498
  default:
497
499
  return;
@@ -577,7 +579,7 @@ function Bc() {
577
579
  }, write: function(A) {
578
580
  for (var d = 0; d < B.length; d += 1) A.put(B[d], 8);
579
581
  } };
580
- }, ve = function(W) {
582
+ }, be = function(W) {
581
583
  var B = h.stringToBytesFuncs.SJIS;
582
584
  if (!B) throw "sjis not supported.";
583
585
  (function() {
@@ -713,11 +715,11 @@ function Bc() {
713
715
  }();
714
716
  f.stringToBytesFuncs["UTF-8"] = function(h) {
715
717
  return function(p) {
716
- for (var v = [], k = 0; k < p.length; k++) {
718
+ for (var b = [], k = 0; k < p.length; k++) {
717
719
  var D = p.charCodeAt(k);
718
- D < 128 ? v.push(D) : D < 2048 ? v.push(192 | D >> 6, 128 | 63 & D) : D < 55296 || D >= 57344 ? v.push(224 | D >> 12, 128 | D >> 6 & 63, 128 | 63 & D) : (k++, D = 65536 + ((1023 & D) << 10 | 1023 & p.charCodeAt(k)), v.push(240 | D >> 18, 128 | D >> 12 & 63, 128 | D >> 6 & 63, 128 | 63 & D));
720
+ D < 128 ? b.push(D) : D < 2048 ? b.push(192 | D >> 6, 128 | 63 & D) : D < 55296 || D >= 57344 ? b.push(224 | D >> 12, 128 | D >> 6 & 63, 128 | 63 & D) : (k++, D = 65536 + ((1023 & D) << 10 | 1023 & p.charCodeAt(k)), b.push(240 | D >> 18, 128 | D >> 12 & 63, 128 | D >> 6 & 63, 128 | 63 & D));
719
721
  }
720
- return v;
722
+ return b;
721
723
  }(h);
722
724
  }, (u = typeof (l = function() {
723
725
  return f;
@@ -866,7 +868,7 @@ function Bc() {
866
868
  }
867
869
  }
868
870
  const h = { dot: "dot", square: "square", extraRounded: "extra-rounded" }, p = Object.values(h);
869
- class v {
871
+ class b {
870
872
  constructor({ svg: d, type: c, window: _ }) {
871
873
  this._svg = d, this._type = c, this._window = _;
872
874
  }
@@ -950,7 +952,7 @@ function Bc() {
950
952
  this._basicSquare({ x: d, y: c, size: _, rotation: E });
951
953
  }
952
954
  }
953
- const b = "circle", T = [[1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1]], C = [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]];
955
+ const v = "circle", T = [[1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1]], C = [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]];
954
956
  class w {
955
957
  constructor(d, c) {
956
958
  this._roundSize = (_) => this._options.dotsOptions.roundSize ? Math.floor(_) : _, this._window = c, this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._element.setAttribute("width", String(d.width)), this._element.setAttribute("height", String(d.height)), this._element.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), d.dotsOptions.roundSize || this._element.setAttribute("shape-rendering", "crispEdges"), this._element.setAttribute("viewBox", `0 0 ${d.width} ${d.height}`), this._defs = this._window.document.createElementNS("http://www.w3.org/2000/svg", "defs"), this._element.appendChild(this._defs), this._imageUri = d.image, this._instanceId = w.instanceCount++, this._options = d;
@@ -965,7 +967,7 @@ function Bc() {
965
967
  return this._element;
966
968
  }
967
969
  async drawQR(d) {
968
- const c = d.getModuleCount(), _ = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, E = this._options.shape === b ? _ / Math.sqrt(2) : _, m = this._roundSize(E / c);
970
+ const c = d.getModuleCount(), _ = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, E = this._options.shape === v ? _ / Math.sqrt(2) : _, m = this._roundSize(E / c);
969
971
  let I = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 };
970
972
  if (this._qr = d, this._options.image) {
971
973
  if (await this.loadImage(), !this._image) return;
@@ -999,10 +1001,10 @@ function Bc() {
999
1001
  if (!this._qr) throw "QR code is not defined";
1000
1002
  const E = this._options, m = this._qr.getModuleCount();
1001
1003
  if (m > E.width || m > E.height) throw "The canvas is too small.";
1002
- const I = Math.min(E.width, E.height) - 2 * E.margin, H = E.shape === b ? I / Math.sqrt(2) : I, q = this._roundSize(H / m), X = this._roundSize((E.width - m * q) / 2), j = this._roundSize((E.height - m * q) / 2), Q = new f({ svg: this._element, type: E.dotsOptions.type, window: this._window });
1004
+ const I = Math.min(E.width, E.height) - 2 * E.margin, H = E.shape === v ? I / Math.sqrt(2) : I, q = this._roundSize(H / m), X = this._roundSize((E.width - m * q) / 2), j = this._roundSize((E.height - m * q) / 2), Q = new f({ svg: this._element, type: E.dotsOptions.type, window: this._window });
1003
1005
  this._dotsClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._dotsClipPath.setAttribute("id", `clip-path-dot-color-${this._instanceId}`), this._defs.appendChild(this._dotsClipPath), this._createColor({ options: (c = E.dotsOptions) === null || c === void 0 ? void 0 : c.gradient, color: E.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: E.height, width: E.width, name: `dot-color-${this._instanceId}` });
1004
1006
  for (let K = 0; K < m; K++) for (let ne = 0; ne < m; ne++) d && !d(K, ne) || !((_ = this._qr) === null || _ === void 0) && _.isDark(K, ne) && (Q.draw(X + ne * q, j + K * q, q, (fe, se) => !(ne + fe < 0 || K + se < 0 || ne + fe >= m || K + se >= m) && !(d && !d(K + se, ne + fe)) && !!this._qr && this._qr.isDark(K + se, ne + fe)), Q._element && this._dotsClipPath && this._dotsClipPath.appendChild(Q._element));
1005
- if (E.shape === b) {
1007
+ if (E.shape === v) {
1006
1008
  const K = this._roundSize((I / q - m) / 2), ne = m + 2 * K, fe = X - K * q, se = j - K * q, S = [], R = this._roundSize(ne / 2);
1007
1009
  for (let O = 0; O < ne; O++) {
1008
1010
  S[O] = [];
@@ -1018,13 +1020,13 @@ function Bc() {
1018
1020
  if (!this._qr) throw "QR code is not defined";
1019
1021
  const d = this._element, c = this._options;
1020
1022
  if (!d) throw "Element code is not defined";
1021
- const _ = this._qr.getModuleCount(), E = Math.min(c.width, c.height) - 2 * c.margin, m = c.shape === b ? E / Math.sqrt(2) : E, I = this._roundSize(m / _), H = 7 * I, q = 3 * I, X = this._roundSize((c.width - _ * I) / 2), j = this._roundSize((c.height - _ * I) / 2);
1023
+ const _ = this._qr.getModuleCount(), E = Math.min(c.width, c.height) - 2 * c.margin, m = c.shape === v ? E / Math.sqrt(2) : E, I = this._roundSize(m / _), H = 7 * I, q = 3 * I, X = this._roundSize((c.width - _ * I) / 2), j = this._roundSize((c.height - _ * I) / 2);
1022
1024
  [[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach(([Q, K, ne]) => {
1023
1025
  var fe, se, S, R, O, M, U, ee, g, y, x, G, oe, me;
1024
1026
  const re = X + Q * I * (_ - 7), L = j + K * I * (_ - 7);
1025
1027
  let F = this._dotsClipPath, Y = this._dotsClipPath;
1026
1028
  if ((!((fe = c.cornersSquareOptions) === null || fe === void 0) && fe.gradient || !((se = c.cornersSquareOptions) === null || se === void 0) && se.color) && (F = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), F.setAttribute("id", `clip-path-corners-square-color-${Q}-${K}-${this._instanceId}`), this._defs.appendChild(F), this._cornersSquareClipPath = this._cornersDotClipPath = Y = F, this._createColor({ options: (S = c.cornersSquareOptions) === null || S === void 0 ? void 0 : S.gradient, color: (R = c.cornersSquareOptions) === null || R === void 0 ? void 0 : R.color, additionalRotation: ne, x: re, y: L, height: H, width: H, name: `corners-square-color-${Q}-${K}-${this._instanceId}` })), ((O = c.cornersSquareOptions) === null || O === void 0 ? void 0 : O.type) && p.includes(c.cornersSquareOptions.type)) {
1027
- const ce = new v({ svg: this._element, type: c.cornersSquareOptions.type, window: this._window });
1029
+ const ce = new b({ svg: this._element, type: c.cornersSquareOptions.type, window: this._window });
1028
1030
  ce.draw(re, L, H, ne), ce._element && F && F.appendChild(ce._element);
1029
1031
  } else {
1030
1032
  const ce = new f({ svg: this._element, type: ((M = c.cornersSquareOptions) === null || M === void 0 ? void 0 : M.type) || c.dotsOptions.type, window: this._window });
@@ -1107,7 +1109,7 @@ function Bc() {
1107
1109
  if (!d.colorStops || !d.colorStops.length) throw "Field 'colorStops' is required in gradient";
1108
1110
  return d.rotation ? d.rotation = Number(d.rotation) : d.rotation = 0, d.colorStops = d.colorStops.map((c) => Object.assign(Object.assign({}, c), { offset: Number(c.offset) })), d;
1109
1111
  }
1110
- function ve(A) {
1112
+ function be(A) {
1111
1113
  const d = Object.assign({}, A);
1112
1114
  return d.width = Number(d.width), d.height = Number(d.height), d.margin = Number(d.margin), d.imageOptions = Object.assign(Object.assign({}, d.imageOptions), { hideBackgroundDots: !!d.imageOptions.hideBackgroundDots, imageSize: Number(d.imageOptions.imageSize), margin: Number(d.imageOptions.margin) }), d.margin > Math.min(d.width, d.height) && (d.margin = Math.min(d.width, d.height)), d.dotsOptions = Object.assign({}, d.dotsOptions), d.dotsOptions.gradient && (d.dotsOptions.gradient = de(d.dotsOptions.gradient)), d.cornersSquareOptions && (d.cornersSquareOptions = Object.assign({}, d.cornersSquareOptions), d.cornersSquareOptions.gradient && (d.cornersSquareOptions.gradient = de(d.cornersSquareOptions.gradient))), d.cornersDotOptions && (d.cornersDotOptions = Object.assign({}, d.cornersDotOptions), d.cornersDotOptions.gradient && (d.cornersDotOptions.gradient = de(d.cornersDotOptions.gradient))), d.backgroundOptions && (d.backgroundOptions = Object.assign({}, d.backgroundOptions), d.backgroundOptions.gradient && (d.backgroundOptions.gradient = de(d.backgroundOptions.gradient))), d;
1113
1115
  }
@@ -1121,7 +1123,7 @@ function Bc() {
1121
1123
  }
1122
1124
  class W {
1123
1125
  constructor(d) {
1124
- d != null && d.jsdom ? this._window = new d.jsdom("", { resources: "usable" }).window : this._window = window, this._options = d ? ve(a(ie, d)) : ie, this.update();
1126
+ d != null && d.jsdom ? this._window = new d.jsdom("", { resources: "usable" }).window : this._window = window, this._options = d ? be(a(ie, d)) : ie, this.update();
1125
1127
  }
1126
1128
  static _clearContainer(d) {
1127
1129
  d && (d.innerHTML = "");
@@ -1160,7 +1162,7 @@ function Bc() {
1160
1162
  return d.toLowerCase() === "svg" ? (this._svg && this._svgDrawingPromise || this._setupSvg(), await this._svgDrawingPromise, this._svg) : ((this._domCanvas || this._nodeCanvas) && this._canvasDrawingPromise || this._setupCanvas(), await this._canvasDrawingPromise, this._domCanvas || this._nodeCanvas);
1161
1163
  }
1162
1164
  update(d) {
1163
- W._clearContainer(this._container), this._options = d ? ve(a(this._options, d)) : this._options, this._options.data && (this._qr = Le()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || function(c) {
1165
+ W._clearContainer(this._container), this._options = d ? be(a(this._options, d)) : this._options, this._options.data && (this._qr = Le()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || function(c) {
1164
1166
  switch (!0) {
1165
1167
  case /^[0-9]*$/.test(c):
1166
1168
  return "Numeric";
@@ -1251,7 +1253,7 @@ function yo(t) {
1251
1253
  return t.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
1252
1254
  }
1253
1255
  const jc = Object.prototype.hasOwnProperty;
1254
- function bt(t, e) {
1256
+ function vt(t, e) {
1255
1257
  return jc.call(t, e);
1256
1258
  }
1257
1259
  const Be = Array.isArray, Ie = (t) => typeof t == "function", J = (t) => typeof t == "string", xe = (t) => typeof t == "boolean", _e = (t) => t !== null && typeof t == "object", Zc = (t) => _e(t) && Ie(t.then) && Ie(t.catch), Wa = Object.prototype.toString, Di = (t) => Wa.call(t), ye = (t) => Di(t) === "[object Object]", Kc = (t) => t == null ? "" : Be(t) || ye(t) && t.toString === Wa ? JSON.stringify(t, null, 2) : String(t);
@@ -1389,7 +1391,7 @@ const sd = /<\/?[\w\s="/.':;#-\/]+>/, id = (t) => sd.test(t), Lt = " ", od = "\r
1389
1391
  function ud(t) {
1390
1392
  const e = t;
1391
1393
  let n = 0, r = 1, s = 1, i = 0;
1392
- const o = (N) => e[N] === od && e[N + 1] === tt, a = (N) => e[N] === tt, l = (N) => e[N] === ld, u = (N) => e[N] === ad, f = (N) => o(N) || a(N) || l(N) || u(N), h = () => n, p = () => r, v = () => s, k = () => i, D = (N) => o(N) || l(N) || u(N) ? tt : e[N], $ = () => D(n), b = () => D(n + i);
1394
+ const o = (N) => e[N] === od && e[N + 1] === tt, a = (N) => e[N] === tt, l = (N) => e[N] === ld, u = (N) => e[N] === ad, f = (N) => o(N) || a(N) || l(N) || u(N), h = () => n, p = () => r, b = () => s, k = () => i, D = (N) => o(N) || l(N) || u(N) ? tt : e[N], $ = () => D(n), v = () => D(n + i);
1393
1395
  function T() {
1394
1396
  return i = 0, f(n) && (r++, s = 0), o(n) && n++, n++, s++, e[n];
1395
1397
  }
@@ -1411,11 +1413,11 @@ function ud(t) {
1411
1413
  return {
1412
1414
  index: h,
1413
1415
  line: p,
1414
- column: v,
1416
+ column: b,
1415
1417
  peekOffset: k,
1416
1418
  charAt: D,
1417
1419
  currentChar: $,
1418
- currentPeek: b,
1420
+ currentPeek: v,
1419
1421
  next: T,
1420
1422
  peek: C,
1421
1423
  reset: w,
@@ -1423,7 +1425,7 @@ function ud(t) {
1423
1425
  skipToPeek: z
1424
1426
  };
1425
1427
  }
1426
- const Bt = void 0, cd = ".", bo = "'", dd = "tokenizer";
1428
+ const Bt = void 0, cd = ".", vo = "'", dd = "tokenizer";
1427
1429
  function fd(t, e = {}) {
1428
1430
  const n = e.location !== !1, r = ud(t), s = () => r.index(), i = () => ed(r.line(), r.column(), r.index()), o = i(), a = s(), l = {
1429
1431
  currentType: 13,
@@ -1453,7 +1455,7 @@ function fd(t, e = {}) {
1453
1455
  const G = { type: y };
1454
1456
  return n && (G.loc = Xs(g.startLoc, g.endLoc)), x != null && (G.value = x), G;
1455
1457
  }
1456
- const v = (g) => p(
1458
+ const b = (g) => p(
1457
1459
  g,
1458
1460
  13
1459
1461
  /* TokenTypes.EOF */
@@ -1471,7 +1473,7 @@ function fd(t, e = {}) {
1471
1473
  const y = D(g);
1472
1474
  return g.skipToPeek(), y;
1473
1475
  }
1474
- function b(g) {
1476
+ function v(g) {
1475
1477
  if (g === Bt)
1476
1478
  return !1;
1477
1479
  const y = g.charCodeAt(0);
@@ -1490,7 +1492,7 @@ function fd(t, e = {}) {
1490
1492
  if (x !== 2)
1491
1493
  return !1;
1492
1494
  D(g);
1493
- const G = b(g.currentPeek());
1495
+ const G = v(g.currentPeek());
1494
1496
  return g.resetPeek(), G;
1495
1497
  }
1496
1498
  function w(g, y) {
@@ -1506,7 +1508,7 @@ function fd(t, e = {}) {
1506
1508
  if (x !== 2)
1507
1509
  return !1;
1508
1510
  D(g);
1509
- const G = g.currentPeek() === bo;
1511
+ const G = g.currentPeek() === vo;
1510
1512
  return g.resetPeek(), G;
1511
1513
  }
1512
1514
  function z(g, y) {
@@ -1522,7 +1524,7 @@ function fd(t, e = {}) {
1522
1524
  if (x !== 8)
1523
1525
  return !1;
1524
1526
  D(g);
1525
- const G = b(g.currentPeek());
1527
+ const G = v(g.currentPeek());
1526
1528
  return g.resetPeek(), G;
1527
1529
  }
1528
1530
  function ie(g, y) {
@@ -1539,11 +1541,11 @@ function fd(t, e = {}) {
1539
1541
  return !1;
1540
1542
  const G = () => {
1541
1543
  const me = g.currentPeek();
1542
- return me === "{" ? b(g.peek()) : me === "@" || me === "|" || me === ":" || me === "." || me === Lt || !me ? !1 : me === tt ? (g.peek(), G()) : We(g, !1);
1544
+ return me === "{" ? v(g.peek()) : me === "@" || me === "|" || me === ":" || me === "." || me === Lt || !me ? !1 : me === tt ? (g.peek(), G()) : We(g, !1);
1543
1545
  }, oe = G();
1544
1546
  return g.resetPeek(), oe;
1545
1547
  }
1546
- function ve(g) {
1548
+ function be(g) {
1547
1549
  D(g);
1548
1550
  const y = g.currentPeek() === "|";
1549
1551
  return g.resetPeek(), y;
@@ -1614,7 +1616,7 @@ function fd(t, e = {}) {
1614
1616
  if (We(g))
1615
1617
  y += x, g.next();
1616
1618
  else {
1617
- if (ve(g))
1619
+ if (be(g))
1618
1620
  break;
1619
1621
  y += x, g.next();
1620
1622
  }
@@ -1636,7 +1638,7 @@ function fd(t, e = {}) {
1636
1638
  return g.currentChar() === "-" ? (g.next(), y += `-${m(g)}`) : y += m(g), g.currentChar() === Bt && h(le.UNTERMINATED_CLOSING_BRACE, i(), 0), y;
1637
1639
  }
1638
1640
  function X(g) {
1639
- return g !== bo && g !== tt;
1641
+ return g !== vo && g !== tt;
1640
1642
  }
1641
1643
  function j(g) {
1642
1644
  $(g), k(g, "'");
@@ -1723,10 +1725,10 @@ function fd(t, e = {}) {
1723
1725
  /* TokenChars.BraceRight */
1724
1726
  ), y.braceNest--, y.braceNest > 0 && $(g), y.inLinked && y.braceNest === 0 && (y.inLinked = !1), x;
1725
1727
  case "@":
1726
- return y.braceNest > 0 && h(le.UNTERMINATED_CLOSING_BRACE, i(), 0), x = M(g, y) || v(y), y.braceNest = 0, x;
1728
+ return y.braceNest > 0 && h(le.UNTERMINATED_CLOSING_BRACE, i(), 0), x = M(g, y) || b(y), y.braceNest = 0, x;
1727
1729
  default: {
1728
1730
  let oe = !0, me = !0, re = !0;
1729
- if (ve(g))
1731
+ if (be(g))
1730
1732
  return y.braceNest > 0 && h(le.UNTERMINATED_CLOSING_BRACE, i(), 0), x = p(y, 1, R(g)), y.braceNest = 0, y.inLinked = !1, x;
1731
1733
  if (y.braceNest > 0 && (y.currentType === 4 || y.currentType === 5 || y.currentType === 6))
1732
1734
  return h(le.UNTERMINATED_CLOSING_BRACE, i(), 0), y.braceNest = 0, U(g, y);
@@ -1770,7 +1772,7 @@ function fd(t, e = {}) {
1770
1772
  /* TokenChars.LinkedDelimiter */
1771
1773
  );
1772
1774
  default:
1773
- return ve(g) ? (G = p(y, 1, R(g)), y.braceNest = 0, y.inLinked = !1, G) : z(g, y) || ie(g, y) ? ($(g), M(g, y)) : N(g, y) ? ($(g), p(y, 11, se(g))) : de(g, y) ? ($(g), oe === "{" ? O(g, y) || G : p(y, 10, S(g))) : (x === 7 && h(le.INVALID_LINKED_FORMAT, i(), 0), y.braceNest = 0, y.inLinked = !1, U(g, y));
1775
+ return be(g) ? (G = p(y, 1, R(g)), y.braceNest = 0, y.inLinked = !1, G) : z(g, y) || ie(g, y) ? ($(g), M(g, y)) : N(g, y) ? ($(g), p(y, 11, se(g))) : de(g, y) ? ($(g), oe === "{" ? O(g, y) || G : p(y, 10, S(g))) : (x === 7 && h(le.INVALID_LINKED_FORMAT, i(), 0), y.braceNest = 0, y.inLinked = !1, U(g, y));
1774
1776
  }
1775
1777
  }
1776
1778
  function U(g, y) {
@@ -1779,12 +1781,12 @@ function fd(t, e = {}) {
1779
1781
  /* TokenTypes.EOF */
1780
1782
  };
1781
1783
  if (y.braceNest > 0)
1782
- return O(g, y) || v(y);
1784
+ return O(g, y) || b(y);
1783
1785
  if (y.inLinked)
1784
- return M(g, y) || v(y);
1786
+ return M(g, y) || b(y);
1785
1787
  switch (g.currentChar()) {
1786
1788
  case "{":
1787
- return O(g, y) || v(y);
1789
+ return O(g, y) || b(y);
1788
1790
  case "}":
1789
1791
  return h(le.UNBALANCED_CLOSING_BRACE, i(), 0), g.next(), p(
1790
1792
  y,
@@ -1793,9 +1795,9 @@ function fd(t, e = {}) {
1793
1795
  /* TokenChars.BraceRight */
1794
1796
  );
1795
1797
  case "@":
1796
- return M(g, y) || v(y);
1798
+ return M(g, y) || b(y);
1797
1799
  default: {
1798
- if (ve(g))
1800
+ if (be(g))
1799
1801
  return x = p(y, 1, R(g)), y.braceNest = 0, y.inLinked = !1, x;
1800
1802
  if (We(g))
1801
1803
  return p(y, 0, I(g));
@@ -1835,8 +1837,8 @@ function gd(t, e, n) {
1835
1837
  }
1836
1838
  function pd(t = {}) {
1837
1839
  const e = t.location !== !1, { onError: n } = t;
1838
- function r(b, T, C, w, ...P) {
1839
- const z = b.currentPosition();
1840
+ function r(v, T, C, w, ...P) {
1841
+ const z = v.currentPosition();
1840
1842
  if (z.offset += w, z.column += w, n) {
1841
1843
  const N = e ? Xs(C, z) : null, ie = Wn(T, N, {
1842
1844
  domain: hd,
@@ -1845,122 +1847,122 @@ function pd(t = {}) {
1845
1847
  n(ie);
1846
1848
  }
1847
1849
  }
1848
- function s(b, T, C) {
1849
- const w = { type: b };
1850
+ function s(v, T, C) {
1851
+ const w = { type: v };
1850
1852
  return e && (w.start = T, w.end = T, w.loc = { start: C, end: C }), w;
1851
1853
  }
1852
- function i(b, T, C, w) {
1853
- e && (b.end = T, b.loc && (b.loc.end = C));
1854
+ function i(v, T, C, w) {
1855
+ e && (v.end = T, v.loc && (v.loc.end = C));
1854
1856
  }
1855
- function o(b, T) {
1856
- const C = b.context(), w = s(3, C.offset, C.startLoc);
1857
- return w.value = T, i(w, b.currentOffset(), b.currentPosition()), w;
1857
+ function o(v, T) {
1858
+ const C = v.context(), w = s(3, C.offset, C.startLoc);
1859
+ return w.value = T, i(w, v.currentOffset(), v.currentPosition()), w;
1858
1860
  }
1859
- function a(b, T) {
1860
- const C = b.context(), { lastOffset: w, lastStartLoc: P } = C, z = s(5, w, P);
1861
- return z.index = parseInt(T, 10), b.nextToken(), i(z, b.currentOffset(), b.currentPosition()), z;
1861
+ function a(v, T) {
1862
+ const C = v.context(), { lastOffset: w, lastStartLoc: P } = C, z = s(5, w, P);
1863
+ return z.index = parseInt(T, 10), v.nextToken(), i(z, v.currentOffset(), v.currentPosition()), z;
1862
1864
  }
1863
- function l(b, T) {
1864
- const C = b.context(), { lastOffset: w, lastStartLoc: P } = C, z = s(4, w, P);
1865
- return z.key = T, b.nextToken(), i(z, b.currentOffset(), b.currentPosition()), z;
1865
+ function l(v, T) {
1866
+ const C = v.context(), { lastOffset: w, lastStartLoc: P } = C, z = s(4, w, P);
1867
+ return z.key = T, v.nextToken(), i(z, v.currentOffset(), v.currentPosition()), z;
1866
1868
  }
1867
- function u(b, T) {
1868
- const C = b.context(), { lastOffset: w, lastStartLoc: P } = C, z = s(9, w, P);
1869
- return z.value = T.replace(md, gd), b.nextToken(), i(z, b.currentOffset(), b.currentPosition()), z;
1869
+ function u(v, T) {
1870
+ const C = v.context(), { lastOffset: w, lastStartLoc: P } = C, z = s(9, w, P);
1871
+ return z.value = T.replace(md, gd), v.nextToken(), i(z, v.currentOffset(), v.currentPosition()), z;
1870
1872
  }
1871
- function f(b) {
1872
- const T = b.nextToken(), C = b.context(), { lastOffset: w, lastStartLoc: P } = C, z = s(8, w, P);
1873
- return T.type !== 11 ? (r(b, le.UNEXPECTED_EMPTY_LINKED_MODIFIER, C.lastStartLoc, 0), z.value = "", i(z, w, P), {
1873
+ function f(v) {
1874
+ const T = v.nextToken(), C = v.context(), { lastOffset: w, lastStartLoc: P } = C, z = s(8, w, P);
1875
+ return T.type !== 11 ? (r(v, le.UNEXPECTED_EMPTY_LINKED_MODIFIER, C.lastStartLoc, 0), z.value = "", i(z, w, P), {
1874
1876
  nextConsumeToken: T,
1875
1877
  node: z
1876
- }) : (T.value == null && r(b, le.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, Ot(T)), z.value = T.value || "", i(z, b.currentOffset(), b.currentPosition()), {
1878
+ }) : (T.value == null && r(v, le.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, Ot(T)), z.value = T.value || "", i(z, v.currentOffset(), v.currentPosition()), {
1877
1879
  node: z
1878
1880
  });
1879
1881
  }
1880
- function h(b, T) {
1881
- const C = b.context(), w = s(7, C.offset, C.startLoc);
1882
- return w.value = T, i(w, b.currentOffset(), b.currentPosition()), w;
1882
+ function h(v, T) {
1883
+ const C = v.context(), w = s(7, C.offset, C.startLoc);
1884
+ return w.value = T, i(w, v.currentOffset(), v.currentPosition()), w;
1883
1885
  }
1884
- function p(b) {
1885
- const T = b.context(), C = s(6, T.offset, T.startLoc);
1886
- let w = b.nextToken();
1886
+ function p(v) {
1887
+ const T = v.context(), C = s(6, T.offset, T.startLoc);
1888
+ let w = v.nextToken();
1887
1889
  if (w.type === 8) {
1888
- const P = f(b);
1889
- C.modifier = P.node, w = P.nextConsumeToken || b.nextToken();
1890
+ const P = f(v);
1891
+ C.modifier = P.node, w = P.nextConsumeToken || v.nextToken();
1890
1892
  }
1891
- switch (w.type !== 9 && r(b, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(w)), w = b.nextToken(), w.type === 2 && (w = b.nextToken()), w.type) {
1893
+ switch (w.type !== 9 && r(v, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(w)), w = v.nextToken(), w.type === 2 && (w = v.nextToken()), w.type) {
1892
1894
  case 10:
1893
- w.value == null && r(b, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(w)), C.key = h(b, w.value || "");
1895
+ w.value == null && r(v, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(w)), C.key = h(v, w.value || "");
1894
1896
  break;
1895
1897
  case 4:
1896
- w.value == null && r(b, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(w)), C.key = l(b, w.value || "");
1898
+ w.value == null && r(v, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(w)), C.key = l(v, w.value || "");
1897
1899
  break;
1898
1900
  case 5:
1899
- w.value == null && r(b, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(w)), C.key = a(b, w.value || "");
1901
+ w.value == null && r(v, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(w)), C.key = a(v, w.value || "");
1900
1902
  break;
1901
1903
  case 6:
1902
- w.value == null && r(b, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(w)), C.key = u(b, w.value || "");
1904
+ w.value == null && r(v, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(w)), C.key = u(v, w.value || "");
1903
1905
  break;
1904
1906
  default: {
1905
- r(b, le.UNEXPECTED_EMPTY_LINKED_KEY, T.lastStartLoc, 0);
1906
- const P = b.context(), z = s(7, P.offset, P.startLoc);
1907
+ r(v, le.UNEXPECTED_EMPTY_LINKED_KEY, T.lastStartLoc, 0);
1908
+ const P = v.context(), z = s(7, P.offset, P.startLoc);
1907
1909
  return z.value = "", i(z, P.offset, P.startLoc), C.key = z, i(C, P.offset, P.startLoc), {
1908
1910
  nextConsumeToken: w,
1909
1911
  node: C
1910
1912
  };
1911
1913
  }
1912
1914
  }
1913
- return i(C, b.currentOffset(), b.currentPosition()), {
1915
+ return i(C, v.currentOffset(), v.currentPosition()), {
1914
1916
  node: C
1915
1917
  };
1916
1918
  }
1917
- function v(b) {
1918
- const T = b.context(), C = T.currentType === 1 ? b.currentOffset() : T.offset, w = T.currentType === 1 ? T.endLoc : T.startLoc, P = s(2, C, w);
1919
+ function b(v) {
1920
+ const T = v.context(), C = T.currentType === 1 ? v.currentOffset() : T.offset, w = T.currentType === 1 ? T.endLoc : T.startLoc, P = s(2, C, w);
1919
1921
  P.items = [];
1920
1922
  let z = null;
1921
1923
  do {
1922
- const de = z || b.nextToken();
1924
+ const de = z || v.nextToken();
1923
1925
  switch (z = null, de.type) {
1924
1926
  case 0:
1925
- de.value == null && r(b, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(de)), P.items.push(o(b, de.value || ""));
1927
+ de.value == null && r(v, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(de)), P.items.push(o(v, de.value || ""));
1926
1928
  break;
1927
1929
  case 5:
1928
- de.value == null && r(b, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(de)), P.items.push(a(b, de.value || ""));
1930
+ de.value == null && r(v, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(de)), P.items.push(a(v, de.value || ""));
1929
1931
  break;
1930
1932
  case 4:
1931
- de.value == null && r(b, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(de)), P.items.push(l(b, de.value || ""));
1933
+ de.value == null && r(v, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(de)), P.items.push(l(v, de.value || ""));
1932
1934
  break;
1933
1935
  case 6:
1934
- de.value == null && r(b, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(de)), P.items.push(u(b, de.value || ""));
1936
+ de.value == null && r(v, le.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, Ot(de)), P.items.push(u(v, de.value || ""));
1935
1937
  break;
1936
1938
  case 7: {
1937
- const ve = p(b);
1938
- P.items.push(ve.node), z = ve.nextConsumeToken || null;
1939
+ const be = p(v);
1940
+ P.items.push(be.node), z = be.nextConsumeToken || null;
1939
1941
  break;
1940
1942
  }
1941
1943
  }
1942
1944
  } while (T.currentType !== 13 && T.currentType !== 1);
1943
- const N = T.currentType === 1 ? T.lastOffset : b.currentOffset(), ie = T.currentType === 1 ? T.lastEndLoc : b.currentPosition();
1945
+ const N = T.currentType === 1 ? T.lastOffset : v.currentOffset(), ie = T.currentType === 1 ? T.lastEndLoc : v.currentPosition();
1944
1946
  return i(P, N, ie), P;
1945
1947
  }
1946
- function k(b, T, C, w) {
1947
- const P = b.context();
1948
+ function k(v, T, C, w) {
1949
+ const P = v.context();
1948
1950
  let z = w.items.length === 0;
1949
1951
  const N = s(1, T, C);
1950
1952
  N.cases = [], N.cases.push(w);
1951
1953
  do {
1952
- const ie = v(b);
1954
+ const ie = b(v);
1953
1955
  z || (z = ie.items.length === 0), N.cases.push(ie);
1954
1956
  } while (P.currentType !== 13);
1955
- return z && r(b, le.MUST_HAVE_MESSAGES_IN_PLURAL, C, 0), i(N, b.currentOffset(), b.currentPosition()), N;
1957
+ return z && r(v, le.MUST_HAVE_MESSAGES_IN_PLURAL, C, 0), i(N, v.currentOffset(), v.currentPosition()), N;
1956
1958
  }
1957
- function D(b) {
1958
- const T = b.context(), { offset: C, startLoc: w } = T, P = v(b);
1959
- return T.currentType === 13 ? P : k(b, C, w, P);
1959
+ function D(v) {
1960
+ const T = v.context(), { offset: C, startLoc: w } = T, P = b(v);
1961
+ return T.currentType === 13 ? P : k(v, C, w, P);
1960
1962
  }
1961
- function $(b) {
1962
- const T = fd(b, Ge({}, t)), C = T.context(), w = s(0, C.offset, C.startLoc);
1963
- return e && w.loc && (w.loc.source = b), w.body = D(T), t.onCacheKey && (w.cacheKey = t.onCacheKey(b)), C.currentType !== 13 && r(T, le.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, b[C.offset] || ""), i(w, T.currentOffset(), T.currentPosition()), w;
1963
+ function $(v) {
1964
+ const T = fd(v, Ge({}, t)), C = T.context(), w = s(0, C.offset, C.startLoc);
1965
+ return e && w.loc && (w.loc.source = v), w.body = D(T), t.onCacheKey && (w.cacheKey = t.onCacheKey(v)), C.currentType !== 13 && r(T, le.UNEXPECTED_LEXICAL_ANALYSIS, C.lastStartLoc, 0, v[C.offset] || ""), i(w, T.currentOffset(), T.currentPosition()), w;
1964
1966
  }
1965
1967
  return { parse: $ };
1966
1968
  }
@@ -1977,20 +1979,20 @@ function yd(t, e = {}) {
1977
1979
  };
1978
1980
  return { context: () => n, helper: (i) => (n.helpers.add(i), i) };
1979
1981
  }
1980
- function vo(t, e) {
1982
+ function bo(t, e) {
1981
1983
  for (let n = 0; n < t.length; n++)
1982
1984
  Ri(t[n], e);
1983
1985
  }
1984
1986
  function Ri(t, e) {
1985
1987
  switch (t.type) {
1986
1988
  case 1:
1987
- vo(t.cases, e), e.helper(
1989
+ bo(t.cases, e), e.helper(
1988
1990
  "plural"
1989
1991
  /* HelperNameMap.PLURAL */
1990
1992
  );
1991
1993
  break;
1992
1994
  case 2:
1993
- vo(t.items, e);
1995
+ bo(t.items, e);
1994
1996
  break;
1995
1997
  case 6: {
1996
1998
  Ri(t.key, e), e.helper(
@@ -2056,7 +2058,7 @@ function wo(t) {
2056
2058
  }
2057
2059
  }
2058
2060
  }
2059
- const bd = "minifier";
2061
+ const vd = "minifier";
2060
2062
  function kn(t) {
2061
2063
  switch (t.t = t.type, t.type) {
2062
2064
  case 0: {
@@ -2104,13 +2106,13 @@ function kn(t) {
2104
2106
  default:
2105
2107
  if (process.env.NODE_ENV !== "production")
2106
2108
  throw Wn(le.UNHANDLED_MINIFIER_NODE_TYPE, null, {
2107
- domain: bd,
2109
+ domain: vd,
2108
2110
  args: [t.type]
2109
2111
  });
2110
2112
  }
2111
2113
  delete t.type;
2112
2114
  }
2113
- const vd = "parser";
2115
+ const bd = "parser";
2114
2116
  function wd(t, e) {
2115
2117
  const { filename: n, breakLineCode: r, needIndent: s } = e, i = e.location !== !1, o = {
2116
2118
  filename: n,
@@ -2129,8 +2131,8 @@ function wd(t, e) {
2129
2131
  o.code += D;
2130
2132
  }
2131
2133
  function u(D, $ = !0) {
2132
- const b = $ ? r : "";
2133
- l(s ? b + " ".repeat(D) : b);
2134
+ const v = $ ? r : "";
2135
+ l(s ? v + " ".repeat(D) : v);
2134
2136
  }
2135
2137
  function f(D = !0) {
2136
2138
  const $ = ++o.indentLevel;
@@ -2235,7 +2237,7 @@ function Pn(t, e) {
2235
2237
  default:
2236
2238
  if (process.env.NODE_ENV !== "production")
2237
2239
  throw Wn(le.UNHANDLED_CODEGEN_NODE_TYPE, null, {
2238
- domain: vd,
2240
+ domain: bd,
2239
2241
  args: [e.type]
2240
2242
  });
2241
2243
  }
@@ -2323,17 +2325,17 @@ function Qs(t, e) {
2323
2325
  return Tr(e, n);
2324
2326
  case 4: {
2325
2327
  const r = e;
2326
- if (bt(r, "k") && r.k)
2328
+ if (vt(r, "k") && r.k)
2327
2329
  return t.interpolate(t.named(r.k));
2328
- if (bt(r, "key") && r.key)
2330
+ if (vt(r, "key") && r.key)
2329
2331
  return t.interpolate(t.named(r.key));
2330
2332
  throw ir(n);
2331
2333
  }
2332
2334
  case 5: {
2333
2335
  const r = e;
2334
- if (bt(r, "i") && He(r.i))
2336
+ if (vt(r, "i") && He(r.i))
2335
2337
  return t.interpolate(t.list(r.i));
2336
- if (bt(r, "index") && He(r.index))
2338
+ if (vt(r, "index") && He(r.index))
2337
2339
  return t.interpolate(t.list(r.index));
2338
2340
  throw ir(n);
2339
2341
  }
@@ -2377,7 +2379,7 @@ function qd(t) {
2377
2379
  function Kt(t, e, n) {
2378
2380
  for (let r = 0; r < e.length; r++) {
2379
2381
  const s = e[r];
2380
- if (bt(t, s) && t[s] != null)
2382
+ if (vt(t, s) && t[s] != null)
2381
2383
  return t[s];
2382
2384
  }
2383
2385
  return n;
@@ -2392,7 +2394,7 @@ function Gd(t, e) {
2392
2394
  const Yd = (t) => t;
2393
2395
  let Cr = Te();
2394
2396
  function pn(t) {
2395
- return _e(t) && xi(t) === 0 && (bt(t, "b") || bt(t, "body"));
2397
+ return _e(t) && xi(t) === 0 && (vt(t, "b") || vt(t, "body"));
2396
2398
  }
2397
2399
  function jd(t, e = {}) {
2398
2400
  let n = !1;
@@ -2780,7 +2782,7 @@ function df(t) {
2780
2782
  ]();
2781
2783
  }
2782
2784
  };
2783
- function v() {
2785
+ function b() {
2784
2786
  const k = t[n + 1];
2785
2787
  if (r === 5 && k === "'" || r === 6 && k === '"')
2786
2788
  return n++, a = "\\" + k, p[
@@ -2789,7 +2791,7 @@ function df(t) {
2789
2791
  ](), !0;
2790
2792
  }
2791
2793
  for (; r !== null; )
2792
- if (n++, i = t[n], !(i === "\\" && v())) {
2794
+ if (n++, i = t[n], !(i === "\\" && b())) {
2793
2795
  if (l = uf(i), h = Jt[r], u = h[l] || h.l || 8, u === 8 || (r = u[0], u[1] !== void 0 && (f = p[u[1]], f && (a = i, f() === !1))))
2794
2796
  return;
2795
2797
  if (r === 7)
@@ -2853,11 +2855,11 @@ function Ef(t) {
2853
2855
  Ha = t;
2854
2856
  }
2855
2857
  let Ga;
2856
- function bf(t) {
2858
+ function vf(t) {
2857
2859
  Ga = t;
2858
2860
  }
2859
2861
  let Ya = null;
2860
- const vf = /* @__NO_SIDE_EFFECTS__ */ (t) => {
2862
+ const bf = /* @__NO_SIDE_EFFECTS__ */ (t) => {
2861
2863
  Ya = t;
2862
2864
  }, wf = /* @__NO_SIDE_EFFECTS__ */ () => Ya;
2863
2865
  let ja = null;
@@ -2866,9 +2868,9 @@ const ko = (t) => {
2866
2868
  }, Sf = () => ja;
2867
2869
  let Io = 0;
2868
2870
  function Of(t = {}) {
2869
- const e = Ie(t.onWarn) ? t.onWarn : Zt, n = J(t.version) ? t.version : pf, r = J(t.locale) || Ie(t.locale) ? t.locale : jr, s = Ie(r) ? jr : r, i = Be(t.fallbackLocale) || ye(t.fallbackLocale) || J(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : s, o = ye(t.messages) ? t.messages : Is(s), a = ye(t.datetimeFormats) ? t.datetimeFormats : Is(s), l = ye(t.numberFormats) ? t.numberFormats : Is(s), u = Ge(Te(), t.modifiers, yf()), f = t.pluralRules || Te(), h = Ie(t.missing) ? t.missing : null, p = xe(t.missingWarn) || Yr(t.missingWarn) ? t.missingWarn : !0, v = xe(t.fallbackWarn) || Yr(t.fallbackWarn) ? t.fallbackWarn : !0, k = !!t.fallbackFormat, D = !!t.unresolving, $ = Ie(t.postTranslation) ? t.postTranslation : null, b = ye(t.processor) ? t.processor : null, T = xe(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, C = !!t.escapeParameter, w = Ie(t.messageCompiler) ? t.messageCompiler : qa;
2871
+ const e = Ie(t.onWarn) ? t.onWarn : Zt, n = J(t.version) ? t.version : pf, r = J(t.locale) || Ie(t.locale) ? t.locale : jr, s = Ie(r) ? jr : r, i = Be(t.fallbackLocale) || ye(t.fallbackLocale) || J(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : s, o = ye(t.messages) ? t.messages : Is(s), a = ye(t.datetimeFormats) ? t.datetimeFormats : Is(s), l = ye(t.numberFormats) ? t.numberFormats : Is(s), u = Ge(Te(), t.modifiers, yf()), f = t.pluralRules || Te(), h = Ie(t.missing) ? t.missing : null, p = xe(t.missingWarn) || Yr(t.missingWarn) ? t.missingWarn : !0, b = xe(t.fallbackWarn) || Yr(t.fallbackWarn) ? t.fallbackWarn : !0, k = !!t.fallbackFormat, D = !!t.unresolving, $ = Ie(t.postTranslation) ? t.postTranslation : null, v = ye(t.processor) ? t.processor : null, T = xe(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, C = !!t.escapeParameter, w = Ie(t.messageCompiler) ? t.messageCompiler : qa;
2870
2872
  process.env.NODE_ENV !== "production" && Ie(t.messageCompiler) && Xc(yn(st.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
2871
- const P = Ie(t.messageResolver) ? t.messageResolver : Ha || ff, z = Ie(t.localeFallbacker) ? t.localeFallbacker : Ga || nf, N = _e(t.fallbackContext) ? t.fallbackContext : void 0, ie = t, de = _e(ie.__datetimeFormatters) ? ie.__datetimeFormatters : /* @__PURE__ */ new Map(), ve = _e(ie.__numberFormatters) ? ie.__numberFormatters : /* @__PURE__ */ new Map(), We = _e(ie.__meta) ? ie.__meta : {};
2873
+ const P = Ie(t.messageResolver) ? t.messageResolver : Ha || ff, z = Ie(t.localeFallbacker) ? t.localeFallbacker : Ga || nf, N = _e(t.fallbackContext) ? t.fallbackContext : void 0, ie = t, de = _e(ie.__datetimeFormatters) ? ie.__datetimeFormatters : /* @__PURE__ */ new Map(), be = _e(ie.__numberFormatters) ? ie.__numberFormatters : /* @__PURE__ */ new Map(), We = _e(ie.__meta) ? ie.__meta : {};
2872
2874
  Io++;
2873
2875
  const Le = {
2874
2876
  version: n,
@@ -2880,11 +2882,11 @@ function Of(t = {}) {
2880
2882
  pluralRules: f,
2881
2883
  missing: h,
2882
2884
  missingWarn: p,
2883
- fallbackWarn: v,
2885
+ fallbackWarn: b,
2884
2886
  fallbackFormat: k,
2885
2887
  unresolving: D,
2886
2888
  postTranslation: $,
2887
- processor: b,
2889
+ processor: v,
2888
2890
  warnHtmlMessage: T,
2889
2891
  escapeParameter: C,
2890
2892
  messageCompiler: w,
@@ -2894,7 +2896,7 @@ function Of(t = {}) {
2894
2896
  onWarn: e,
2895
2897
  __meta: We
2896
2898
  };
2897
- return Le.datetimeFormats = a, Le.numberFormats = l, Le.__datetimeFormatters = de, Le.__numberFormatters = ve, process.env.NODE_ENV !== "production" && (Le.__v_emitter = ie.__v_emitter != null ? ie.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Jd(Le, n, We), Le;
2899
+ return Le.datetimeFormats = a, Le.numberFormats = l, Le.__datetimeFormatters = de, Le.__numberFormatters = be, process.env.NODE_ENV !== "production" && (Le.__v_emitter = ie.__v_emitter != null ? ie.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Jd(Le, n, We), Le;
2898
2900
  }
2899
2901
  const Is = (t) => ({ [t]: Te() });
2900
2902
  function ps(t, e) {
@@ -2944,7 +2946,7 @@ function Ao(t, ...e) {
2944
2946
  const { datetimeFormats: n, unresolving: r, fallbackLocale: s, onWarn: i, localeFallbacker: o } = t, { __datetimeFormatters: a } = t;
2945
2947
  if (process.env.NODE_ENV !== "production" && !Ja.dateTimeFormat)
2946
2948
  return i(yn(st.CANNOT_FORMAT_DATE)), Zr;
2947
- const [l, u, f, h] = ei(...e), p = xe(f.missingWarn) ? f.missingWarn : t.missingWarn, v = xe(f.fallbackWarn) ? f.fallbackWarn : t.fallbackWarn, k = !!f.part, D = Fi(t, f), $ = o(
2949
+ const [l, u, f, h] = ei(...e), p = xe(f.missingWarn) ? f.missingWarn : t.missingWarn, b = xe(f.fallbackWarn) ? f.fallbackWarn : t.fallbackWarn, k = !!f.part, D = Fi(t, f), $ = o(
2948
2950
  t,
2949
2951
  // eslint-disable-line @typescript-eslint/no-explicit-any
2950
2952
  s,
@@ -2952,15 +2954,15 @@ function Ao(t, ...e) {
2952
2954
  );
2953
2955
  if (!J(l) || l === "")
2954
2956
  return new Intl.DateTimeFormat(D, h).format(u);
2955
- let b = {}, T, C = null, w = D, P = null;
2957
+ let v = {}, T, C = null, w = D, P = null;
2956
2958
  const z = "datetime format";
2957
2959
  for (let de = 0; de < $.length; de++) {
2958
- if (T = P = $[de], process.env.NODE_ENV !== "production" && D !== T && ps(v, l) && i(yn(st.FALLBACK_TO_DATE_FORMAT, {
2960
+ if (T = P = $[de], process.env.NODE_ENV !== "production" && D !== T && ps(b, l) && i(yn(st.FALLBACK_TO_DATE_FORMAT, {
2959
2961
  key: l,
2960
2962
  target: T
2961
2963
  })), process.env.NODE_ENV !== "production" && D !== T) {
2962
- const ve = t.__v_emitter;
2963
- ve && ve.emit("fallback", {
2964
+ const be = t.__v_emitter;
2965
+ be && be.emit("fallback", {
2964
2966
  type: z,
2965
2967
  key: l,
2966
2968
  from: w,
@@ -2968,7 +2970,7 @@ function Ao(t, ...e) {
2968
2970
  groupId: `${z}:${l}`
2969
2971
  });
2970
2972
  }
2971
- if (b = n[T] || {}, C = b[l], ye(C))
2973
+ if (v = n[T] || {}, C = v[l], ye(C))
2972
2974
  break;
2973
2975
  Pi(t, l, T, p, z), w = P;
2974
2976
  }
@@ -3038,7 +3040,7 @@ function Mo(t, ...e) {
3038
3040
  const { numberFormats: n, unresolving: r, fallbackLocale: s, onWarn: i, localeFallbacker: o } = t, { __numberFormatters: a } = t;
3039
3041
  if (process.env.NODE_ENV !== "production" && !Ja.numberFormat)
3040
3042
  return i(yn(st.CANNOT_FORMAT_NUMBER)), Zr;
3041
- const [l, u, f, h] = ti(...e), p = xe(f.missingWarn) ? f.missingWarn : t.missingWarn, v = xe(f.fallbackWarn) ? f.fallbackWarn : t.fallbackWarn, k = !!f.part, D = Fi(t, f), $ = o(
3043
+ const [l, u, f, h] = ti(...e), p = xe(f.missingWarn) ? f.missingWarn : t.missingWarn, b = xe(f.fallbackWarn) ? f.fallbackWarn : t.fallbackWarn, k = !!f.part, D = Fi(t, f), $ = o(
3042
3044
  t,
3043
3045
  // eslint-disable-line @typescript-eslint/no-explicit-any
3044
3046
  s,
@@ -3046,15 +3048,15 @@ function Mo(t, ...e) {
3046
3048
  );
3047
3049
  if (!J(l) || l === "")
3048
3050
  return new Intl.NumberFormat(D, h).format(u);
3049
- let b = {}, T, C = null, w = D, P = null;
3051
+ let v = {}, T, C = null, w = D, P = null;
3050
3052
  const z = "number format";
3051
3053
  for (let de = 0; de < $.length; de++) {
3052
- if (T = P = $[de], process.env.NODE_ENV !== "production" && D !== T && ps(v, l) && i(yn(st.FALLBACK_TO_NUMBER_FORMAT, {
3054
+ if (T = P = $[de], process.env.NODE_ENV !== "production" && D !== T && ps(b, l) && i(yn(st.FALLBACK_TO_NUMBER_FORMAT, {
3053
3055
  key: l,
3054
3056
  target: T
3055
3057
  })), process.env.NODE_ENV !== "production" && D !== T) {
3056
- const ve = t.__v_emitter;
3057
- ve && ve.emit("fallback", {
3058
+ const be = t.__v_emitter;
3059
+ be && be.emit("fallback", {
3058
3060
  type: z,
3059
3061
  key: l,
3060
3062
  from: w,
@@ -3062,7 +3064,7 @@ function Mo(t, ...e) {
3062
3064
  groupId: `${z}:${l}`
3063
3065
  });
3064
3066
  }
3065
- if (b = n[T] || {}, C = b[l], ye(C))
3067
+ if (v = n[T] || {}, C = v[l], ye(C))
3066
3068
  break;
3067
3069
  Pi(t, l, T, p, z), w = P;
3068
3070
  }
@@ -3124,22 +3126,22 @@ function Df(t, e) {
3124
3126
  e.count || (e.count = t), e.n || (e.n = t);
3125
3127
  }
3126
3128
  function Mf(t = {}) {
3127
- const e = t.locale, n = Af(t), r = _e(t.pluralRules) && J(e) && Ie(t.pluralRules[e]) ? t.pluralRules[e] : xo, s = _e(t.pluralRules) && J(e) && Ie(t.pluralRules[e]) ? xo : void 0, i = (b) => b[r(n, b.length, s)], o = t.list || [], a = (b) => o[b], l = t.named || Te();
3129
+ const e = t.locale, n = Af(t), r = _e(t.pluralRules) && J(e) && Ie(t.pluralRules[e]) ? t.pluralRules[e] : xo, s = _e(t.pluralRules) && J(e) && Ie(t.pluralRules[e]) ? xo : void 0, i = (v) => v[r(n, v.length, s)], o = t.list || [], a = (v) => o[v], l = t.named || Te();
3128
3130
  He(t.pluralIndex) && Df(n, l);
3129
- const u = (b) => l[b];
3130
- function f(b, T) {
3131
- const C = Ie(t.messages) ? t.messages(b, !!T) : _e(t.messages) ? t.messages[b] : !1;
3132
- return C || (t.parent ? t.parent.message(b) : Nf);
3131
+ const u = (v) => l[v];
3132
+ function f(v, T) {
3133
+ const C = Ie(t.messages) ? t.messages(v, !!T) : _e(t.messages) ? t.messages[v] : !1;
3134
+ return C || (t.parent ? t.parent.message(v) : Nf);
3133
3135
  }
3134
- const h = (b) => t.modifiers ? t.modifiers[b] : Cf, p = ye(t.processor) && Ie(t.processor.normalize) ? t.processor.normalize : If, v = ye(t.processor) && Ie(t.processor.interpolate) ? t.processor.interpolate : Lf, k = ye(t.processor) && J(t.processor.type) ? t.processor.type : kf, $ = {
3136
+ const h = (v) => t.modifiers ? t.modifiers[v] : Cf, p = ye(t.processor) && Ie(t.processor.normalize) ? t.processor.normalize : If, b = ye(t.processor) && Ie(t.processor.interpolate) ? t.processor.interpolate : Lf, k = ye(t.processor) && J(t.processor.type) ? t.processor.type : kf, $ = {
3135
3137
  list: a,
3136
3138
  named: u,
3137
3139
  plural: i,
3138
- linked: (b, ...T) => {
3140
+ linked: (v, ...T) => {
3139
3141
  const [C, w] = T;
3140
3142
  let P = "text", z = "";
3141
3143
  T.length === 1 ? _e(C) ? (z = C.modifier || z, P = C.type || P) : J(C) && (z = C || z) : T.length === 2 && (J(C) && (z = C || z), J(w) && (P = w || P));
3142
- const N = f(b, !0)($), ie = (
3144
+ const N = f(v, !0)($), ie = (
3143
3145
  // The message in vnode resolved with linked are returned as an array by processor.nomalize
3144
3146
  P === "vnode" && Be(N) && z ? N[0] : N
3145
3147
  );
@@ -3147,7 +3149,7 @@ function Mf(t = {}) {
3147
3149
  },
3148
3150
  message: f,
3149
3151
  type: k,
3150
- interpolate: v,
3152
+ interpolate: b,
3151
3153
  normalize: p,
3152
3154
  values: Ge(Te(), o, l)
3153
3155
  };
@@ -3155,14 +3157,14 @@ function Mf(t = {}) {
3155
3157
  }
3156
3158
  const Fo = () => "", ct = (t) => Ie(t);
3157
3159
  function Po(t, ...e) {
3158
- const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: i, fallbackLocale: o, messages: a } = t, [l, u] = ni(...e), f = xe(u.missingWarn) ? u.missingWarn : t.missingWarn, h = xe(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, p = xe(u.escapeParameter) ? u.escapeParameter : t.escapeParameter, v = !!u.resolvedMessage, k = J(u.default) || xe(u.default) ? xe(u.default) ? i ? l : () => l : u.default : n ? i ? l : () => l : null, D = n || k != null && (J(k) || Ie(k)), $ = Fi(t, u);
3160
+ const { fallbackFormat: n, postTranslation: r, unresolving: s, messageCompiler: i, fallbackLocale: o, messages: a } = t, [l, u] = ni(...e), f = xe(u.missingWarn) ? u.missingWarn : t.missingWarn, h = xe(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, p = xe(u.escapeParameter) ? u.escapeParameter : t.escapeParameter, b = !!u.resolvedMessage, k = J(u.default) || xe(u.default) ? xe(u.default) ? i ? l : () => l : u.default : n ? i ? l : () => l : null, D = n || k != null && (J(k) || Ie(k)), $ = Fi(t, u);
3159
3161
  p && Rf(u);
3160
- let [b, T, C] = v ? [
3162
+ let [v, T, C] = b ? [
3161
3163
  l,
3162
3164
  $,
3163
3165
  a[$] || Te()
3164
- ] : el(t, l, $, o, h, f), w = b, P = l;
3165
- if (!v && !(J(w) || pn(w) || ct(w)) && D && (w = k, P = w), !v && (!(J(w) || pn(w) || ct(w)) || !J(T)))
3166
+ ] : el(t, l, $, o, h, f), w = v, P = l;
3167
+ if (!b && !(J(w) || pn(w) || ct(w)) && D && (w = k, P = w), !b && (!(J(w) || pn(w) || ct(w)) || !J(T)))
3166
3168
  return s ? gs : l;
3167
3169
  if (process.env.NODE_ENV !== "production" && J(w) && t.messageCompiler == null)
3168
3170
  return Zt(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`), l;
@@ -3172,7 +3174,7 @@ function Po(t, ...e) {
3172
3174
  }, ie = ct(w) ? w : tl(t, l, T, w, P, N);
3173
3175
  if (z)
3174
3176
  return w;
3175
- const de = $f(t, T, C, u), ve = Mf(de), We = xf(t, ie, ve), Le = r ? r(We, l) : We;
3177
+ const de = $f(t, T, C, u), be = Mf(de), We = xf(t, ie, be), Le = r ? r(We, l) : We;
3176
3178
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
3177
3179
  const it = {
3178
3180
  timestamp: Date.now(),
@@ -3192,10 +3194,10 @@ function Rf(t) {
3192
3194
  }
3193
3195
  function el(t, e, n, r, s, i) {
3194
3196
  const { messages: o, onWarn: a, messageResolver: l, localeFallbacker: u } = t, f = u(t, r, n);
3195
- let h = Te(), p, v = null, k = n, D = null;
3197
+ let h = Te(), p, b = null, k = n, D = null;
3196
3198
  const $ = "translate";
3197
- for (let b = 0; b < f.length; b++) {
3198
- if (p = D = f[b], process.env.NODE_ENV !== "production" && n !== p && !Ka(n, p) && ps(s, e) && a(yn(st.FALLBACK_TO_TRANSLATE, {
3199
+ for (let v = 0; v < f.length; v++) {
3200
+ if (p = D = f[v], process.env.NODE_ENV !== "production" && n !== p && !Ka(n, p) && ps(s, e) && a(yn(st.FALLBACK_TO_TRANSLATE, {
3199
3201
  key: e,
3200
3202
  target: p
3201
3203
  })), process.env.NODE_ENV !== "production" && n !== p) {
@@ -3210,17 +3212,17 @@ function el(t, e, n, r, s, i) {
3210
3212
  }
3211
3213
  h = o[p] || Te();
3212
3214
  let T = null, C, w;
3213
- if (process.env.NODE_ENV !== "production" && Dt && (T = window.performance.now(), C = "intlify-message-resolve-start", w = "intlify-message-resolve-end", ot && ot(C)), (v = l(h, e)) === null && (v = h[e]), process.env.NODE_ENV !== "production" && Dt) {
3215
+ if (process.env.NODE_ENV !== "production" && Dt && (T = window.performance.now(), C = "intlify-message-resolve-start", w = "intlify-message-resolve-end", ot && ot(C)), (b = l(h, e)) === null && (b = h[e]), process.env.NODE_ENV !== "production" && Dt) {
3214
3216
  const P = window.performance.now(), z = t.__v_emitter;
3215
- z && T && v && z.emit("message-resolve", {
3217
+ z && T && b && z.emit("message-resolve", {
3216
3218
  type: "message-resolve",
3217
3219
  key: e,
3218
- message: v,
3220
+ message: b,
3219
3221
  time: P - T,
3220
3222
  groupId: `${$}:${e}`
3221
3223
  }), C && w && ot && gn && (ot(w), gn("intlify message resolve", C, w));
3222
3224
  }
3223
- if (J(v) || pn(v) || ct(v))
3225
+ if (J(b) || pn(b) || ct(b))
3224
3226
  break;
3225
3227
  if (!Tf(p, f)) {
3226
3228
  const P = Pi(
@@ -3231,11 +3233,11 @@ function el(t, e, n, r, s, i) {
3231
3233
  i,
3232
3234
  $
3233
3235
  );
3234
- P !== e && (v = P);
3236
+ P !== e && (b = P);
3235
3237
  }
3236
3238
  k = D;
3237
3239
  }
3238
- return [v, p, h];
3240
+ return [b, p, h];
3239
3241
  }
3240
3242
  function tl(t, e, n, r, s, i) {
3241
3243
  const { messageCompiler: o, warnHtmlMessage: a } = t;
@@ -3251,8 +3253,8 @@ function tl(t, e, n, r, s, i) {
3251
3253
  process.env.NODE_ENV !== "production" && Dt && (l = window.performance.now(), u = "intlify-message-compilation-start", f = "intlify-message-compilation-end", ot && ot(u));
3252
3254
  const h = o(r, Ff(t, n, s, r, a, i));
3253
3255
  if (process.env.NODE_ENV !== "production" && Dt) {
3254
- const p = window.performance.now(), v = t.__v_emitter;
3255
- v && l && v.emit("message-compilation", {
3256
+ const p = window.performance.now(), b = t.__v_emitter;
3257
+ b && l && b.emit("message-compilation", {
3256
3258
  type: "message-compilation",
3257
3259
  message: r,
3258
3260
  time: p - l,
@@ -3316,23 +3318,23 @@ function $f(t, e, n, r) {
3316
3318
  locale: e,
3317
3319
  modifiers: s,
3318
3320
  pluralRules: i,
3319
- messages: (v, k) => {
3320
- let D = o(n, v);
3321
+ messages: (b, k) => {
3322
+ let D = o(n, b);
3321
3323
  if (D == null && (f || k)) {
3322
3324
  const [, , $] = el(
3323
3325
  f || t,
3324
3326
  // NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
3325
- v,
3327
+ b,
3326
3328
  e,
3327
3329
  a,
3328
3330
  l,
3329
3331
  u
3330
3332
  );
3331
- D = o($, v);
3333
+ D = o($, b);
3332
3334
  }
3333
3335
  if (J(D) || pn(D)) {
3334
3336
  let $ = !1;
3335
- const T = tl(t, v, e, D, v, () => {
3337
+ const T = tl(t, b, e, D, b, () => {
3336
3338
  $ = !0;
3337
3339
  });
3338
3340
  return $ ? Fo : T;
@@ -3422,7 +3424,7 @@ function lr(t) {
3422
3424
  if (!_e(t))
3423
3425
  return t;
3424
3426
  for (const e in t)
3425
- if (bt(t, e))
3427
+ if (vt(t, e))
3426
3428
  if (!e.includes("."))
3427
3429
  _e(t[e]) && lr(t[e]);
3428
3430
  else {
@@ -3451,7 +3453,7 @@ function rl(t, e) {
3451
3453
  J(a) && Ur(JSON.parse(a), o);
3452
3454
  }), s == null && i)
3453
3455
  for (const a in o)
3454
- bt(o, a) && lr(o[a]);
3456
+ vt(o, a) && lr(o[a]);
3455
3457
  return o;
3456
3458
  }
3457
3459
  function sl(t) {
@@ -3505,7 +3507,7 @@ function Yf(t = {}) {
3505
3507
  // prettier-ignore
3506
3508
  e && o ? e.fallbackLocale.value : J(t.fallbackLocale) || Be(t.fallbackLocale) || ye(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : a.value
3507
3509
  ), u = i(rl(a.value, t)), f = i(ye(t.datetimeFormats) ? t.datetimeFormats : { [a.value]: {} }), h = i(ye(t.numberFormats) ? t.numberFormats : { [a.value]: {} });
3508
- let p = e ? e.missingWarn : xe(t.missingWarn) || Yr(t.missingWarn) ? t.missingWarn : !0, v = e ? e.fallbackWarn : xe(t.fallbackWarn) || Yr(t.fallbackWarn) ? t.fallbackWarn : !0, k = e ? e.fallbackRoot : xe(t.fallbackRoot) ? t.fallbackRoot : !0, D = !!t.fallbackFormat, $ = Ie(t.missing) ? t.missing : null, b = Ie(t.missing) ? Wo(t.missing) : null, T = Ie(t.postTranslation) ? t.postTranslation : null, C = e ? e.warnHtmlMessage : xe(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, w = !!t.escapeParameter;
3510
+ let p = e ? e.missingWarn : xe(t.missingWarn) || Yr(t.missingWarn) ? t.missingWarn : !0, b = e ? e.fallbackWarn : xe(t.fallbackWarn) || Yr(t.fallbackWarn) ? t.fallbackWarn : !0, k = e ? e.fallbackRoot : xe(t.fallbackRoot) ? t.fallbackRoot : !0, D = !!t.fallbackFormat, $ = Ie(t.missing) ? t.missing : null, v = Ie(t.missing) ? Wo(t.missing) : null, T = Ie(t.postTranslation) ? t.postTranslation : null, C = e ? e.warnHtmlMessage : xe(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, w = !!t.escapeParameter;
3509
3511
  const P = e ? e.modifiers : ye(t.modifiers) ? t.modifiers : {};
3510
3512
  let z = t.pluralRules || e && e.pluralRules, N;
3511
3513
  N = (() => {
@@ -3517,9 +3519,9 @@ function Yf(t = {}) {
3517
3519
  messages: u.value,
3518
3520
  modifiers: P,
3519
3521
  pluralRules: z,
3520
- missing: b === null ? void 0 : b,
3522
+ missing: v === null ? void 0 : v,
3521
3523
  missingWarn: p,
3522
- fallbackWarn: v,
3524
+ fallbackWarn: b,
3523
3525
  fallbackFormat: D,
3524
3526
  unresolving: !0,
3525
3527
  postTranslation: T === null ? void 0 : T,
@@ -3542,7 +3544,7 @@ function Yf(t = {}) {
3542
3544
  h.value
3543
3545
  ];
3544
3546
  }
3545
- const ve = _t({
3547
+ const be = _t({
3546
3548
  get: () => a.value,
3547
3549
  set: (L) => {
3548
3550
  a.value = L, N.locale = a.value;
@@ -3563,7 +3565,7 @@ function Yf(t = {}) {
3563
3565
  return $;
3564
3566
  }
3565
3567
  function c(L) {
3566
- L !== null && (b = Wo(L)), $ = L, N.missing = b;
3568
+ L !== null && (v = Wo(L)), $ = L, N.missing = v;
3567
3569
  }
3568
3570
  function _(L, F) {
3569
3571
  return L !== "translate" || !F.resolvedMessage;
@@ -3579,7 +3581,7 @@ function Yf(t = {}) {
3579
3581
  if (Y !== "translate exists" && // for not `te` (e.g `t`)
3580
3582
  He(Re) && Re === gs || Y === "translate exists" && !Re) {
3581
3583
  const [Ae, ze] = F();
3582
- if (process.env.NODE_ENV !== "production" && e && J(Ae) && _(Y, ze) && (k && (ps(v, Ae) || Za(p, Ae)) && Zt($i(qt.FALLBACK_TO_ROOT, {
3584
+ if (process.env.NODE_ENV !== "production" && e && J(Ae) && _(Y, ze) && (k && (ps(b, Ae) || Za(p, Ae)) && Zt($i(qt.FALLBACK_TO_ROOT, {
3583
3585
  key: Ae,
3584
3586
  type: Y
3585
3587
  })), process.env.NODE_ENV !== "production")) {
@@ -3673,7 +3675,7 @@ function Yf(t = {}) {
3673
3675
  if (s) {
3674
3676
  const Y = { [L]: F };
3675
3677
  for (const ce in Y)
3676
- bt(Y, ce) && lr(Y[ce]);
3678
+ vt(Y, ce) && lr(Y[ce]);
3677
3679
  F = Y[L];
3678
3680
  }
3679
3681
  u.value[L] = F, N.messages = u.value;
@@ -3683,7 +3685,7 @@ function Yf(t = {}) {
3683
3685
  const Y = { [L]: F };
3684
3686
  if (s)
3685
3687
  for (const ce in Y)
3686
- bt(Y, ce) && lr(Y[ce]);
3688
+ vt(Y, ce) && lr(Y[ce]);
3687
3689
  F = Y[L], Ur(F, u.value[L]), N.messages = u.value;
3688
3690
  }
3689
3691
  function g(L) {
@@ -3711,7 +3713,7 @@ function Yf(t = {}) {
3711
3713
  }));
3712
3714
  const re = {
3713
3715
  id: Vo,
3714
- locale: ve,
3716
+ locale: be,
3715
3717
  fallbackLocale: We,
3716
3718
  get inheritLocale() {
3717
3719
  return o;
@@ -3739,10 +3741,10 @@ function Yf(t = {}) {
3739
3741
  p = L, N.missingWarn = p;
3740
3742
  },
3741
3743
  get fallbackWarn() {
3742
- return v;
3744
+ return b;
3743
3745
  },
3744
3746
  set fallbackWarn(L) {
3745
- v = L, N.fallbackWarn = v;
3747
+ b = L, N.fallbackWarn = b;
3746
3748
  },
3747
3749
  get fallbackRoot() {
3748
3750
  return k;
@@ -3835,12 +3837,12 @@ function ol(t, e, n, r) {
3835
3837
  return () => {
3836
3838
  const o = { part: !0 };
3837
3839
  let a = Te();
3838
- t.locale && (o.locale = t.locale), J(t.format) ? o.key = t.format : _e(t.format) && (J(t.format.key) && (o.key = t.format.key), a = Object.keys(t.format).reduce((p, v) => n.includes(v) ? Ge(Te(), p, { [v]: t.format[v] }) : p, Te()));
3840
+ t.locale && (o.locale = t.locale), J(t.format) ? o.key = t.format : _e(t.format) && (J(t.format.key) && (o.key = t.format.key), a = Object.keys(t.format).reduce((p, b) => n.includes(b) ? Ge(Te(), p, { [b]: t.format[b] }) : p, Te()));
3839
3841
  const l = r(t.value, o, a);
3840
3842
  let u = [o.key];
3841
- Be(l) ? u = l.map((p, v) => {
3842
- const k = s[p.type], D = k ? k({ [p.type]: p.value, index: v, parts: l }) : [p.value];
3843
- return Zf(D) && (D[0].key = `${p.type}-${v}`), D;
3843
+ Be(l) ? u = l.map((p, b) => {
3844
+ const k = s[p.type], D = k ? k({ [p.type]: p.value, index: b, parts: l }) : [p.value];
3845
+ return Zf(D) && (D[0].key = `${p.type}-${b}`), D;
3844
3846
  }) : J(l) && (u = [l]);
3845
3847
  const f = Ge(Te(), i), h = J(t.tag) || _e(t.tag) ? t.tag : il();
3846
3848
  return xa(h, f, u);
@@ -3937,7 +3939,7 @@ Ge({
3937
3939
  Bf();
3938
3940
  _f(Zd);
3939
3941
  Ef(hf);
3940
- bf(za);
3942
+ vf(za);
3941
3943
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
3942
3944
  const t = cn();
3943
3945
  t.__INTLIFY__ = !0, Kd(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
@@ -4062,7 +4064,7 @@ const uh = /* @__PURE__ */ kt({
4062
4064
  fullHeight: !0,
4063
4065
  class: "az-h-full",
4064
4066
  modelValue: f.value,
4065
- "onUpdate:modelValue": p[0] || (p[0] = (v) => f.value = v),
4067
+ "onUpdate:modelValue": p[0] || (p[0] = (b) => f.value = b),
4066
4068
  readOnly: "",
4067
4069
  copyOnClick: ""
4068
4070
  }, null, 8, ["label", "mandatory", "id", "modelValue"]),
@@ -4090,7 +4092,7 @@ const uh = /* @__PURE__ */ kt({
4090
4092
  "helper-message": "",
4091
4093
  mandatory: V(Et).mandatory,
4092
4094
  modelValue: i.value,
4093
- "onUpdate:modelValue": p[1] || (p[1] = (v) => i.value = v)
4095
+ "onUpdate:modelValue": p[1] || (p[1] = (b) => i.value = b)
4094
4096
  }, null, 8, ["id", "label", "mandatory", "modelValue"])
4095
4097
  ]),
4096
4098
  column2: Oe(() => [
@@ -4100,7 +4102,7 @@ const uh = /* @__PURE__ */ kt({
4100
4102
  "helper-message": "",
4101
4103
  mandatory: V(Et).mandatory,
4102
4104
  modelValue: o.value,
4103
- "onUpdate:modelValue": p[2] || (p[2] = (v) => o.value = v)
4105
+ "onUpdate:modelValue": p[2] || (p[2] = (b) => o.value = b)
4104
4106
  }, null, 8, ["id", "label", "mandatory", "modelValue"])
4105
4107
  ]),
4106
4108
  _: 1
@@ -4111,7 +4113,7 @@ const uh = /* @__PURE__ */ kt({
4111
4113
  "helper-message": "",
4112
4114
  mandatory: V(Et).mandatory,
4113
4115
  modelValue: a.value,
4114
- "onUpdate:modelValue": p[3] || (p[3] = (v) => a.value = v)
4116
+ "onUpdate:modelValue": p[3] || (p[3] = (b) => a.value = b)
4115
4117
  }, null, 8, ["id", "label", "mandatory", "modelValue"])
4116
4118
  ]),
4117
4119
  _: 1
@@ -4133,7 +4135,7 @@ const uh = /* @__PURE__ */ kt({
4133
4135
  ariaLabel: V(r)("common.share.backButton"),
4134
4136
  color: "neutral",
4135
4137
  stretch: "",
4136
- onAction: p[4] || (p[4] = (v) => s("back"))
4138
+ onAction: p[4] || (p[4] = (b) => s("back"))
4137
4139
  }, {
4138
4140
  default: Oe(() => [
4139
4141
  Ct(Je(V(r)("common.share.backButton")), 1)
@@ -4145,7 +4147,7 @@ const uh = /* @__PURE__ */ kt({
4145
4147
  id: h.id + "_back",
4146
4148
  ariaLabel: V(r)("common.action.close"),
4147
4149
  stretch: "",
4148
- onAction: p[5] || (p[5] = (v) => s("close"))
4150
+ onAction: p[5] || (p[5] = (b) => s("close"))
4149
4151
  }, {
4150
4152
  default: Oe(() => [
4151
4153
  Ct(Je(V(r)("common.action.close")), 1)
@@ -4163,20 +4165,22 @@ const uh = /* @__PURE__ */ kt({
4163
4165
  options: {},
4164
4166
  api: {},
4165
4167
  logger: {}
4166
- }, l1 = (t) => ({
4168
+ }, f1 = (t) => ({
4167
4169
  install(e, n) {
4168
4170
  ur.options = t, ur.api = new Oc({
4169
4171
  baseURL: t.baseURL,
4170
4172
  widgetBaseURL: t.widgetBaseURL,
4171
- clientId: t.clientId
4173
+ clientId: t.clientId,
4174
+ logger: t.logger,
4175
+ debug: t.debug ?? !1
4172
4176
  });
4173
4177
  }
4174
- }), u1 = (t, e) => ({
4178
+ }), h1 = (t, e) => ({
4175
4179
  install(n) {
4176
4180
  let r = new Tc(t);
4177
4181
  r.setLevel(e), ur.logger = r;
4178
4182
  }
4179
- }), gr = () => ur.api, c1 = () => ur.logger, ch = { class: "az-h-full az-flex az-justify-center az-items-center az-relative" }, dh = {
4183
+ }), gr = () => ur.api, m1 = () => ur.logger, ch = { class: "az-h-full az-flex az-justify-center az-items-center az-relative" }, dh = {
4180
4184
  key: 1,
4181
4185
  class: "az-absolute az-flex az-items-center az-justify-center"
4182
4186
  }, fh = { class: "az-flex az-flex-col az-gap-4 az-w-full" }, hh = { class: "az-flex az-flex-col az-gap-4 az-flex-1" }, mh = /* @__PURE__ */ kt({
@@ -4191,24 +4195,24 @@ const uh = /* @__PURE__ */ kt({
4191
4195
  setup(t, { emit: e }) {
4192
4196
  const n = t, { t: r } = It(), s = e, i = ge(n.source), o = ge(n.url), a = ge(), l = ge(n.couldBack), u = gr(), f = ge(!1), h = _t(() => o.value + (o.value.includes("?") ? "&source=" + encodeURIComponent(i.value) : "?source=" + encodeURIComponent(i.value)));
4193
4197
  async function p() {
4194
- let v = await u.shorten(h.value);
4195
- a.value = v.url, f.value = !1;
4198
+ let b = await u.shorten(h.value);
4199
+ a.value = b.url, f.value = !1;
4196
4200
  }
4197
4201
  return jt(async () => {
4198
4202
  await p();
4199
- }), wt(i, (v) => {
4203
+ }), wt(i, (b) => {
4200
4204
  f.value = !0;
4201
- }), wt(() => n.couldBack, (v) => {
4202
- l.value = v;
4203
- }), (v, k) => (Ne(), Fe(V(Rn), {
4205
+ }), wt(() => n.couldBack, (b) => {
4206
+ l.value = b;
4207
+ }), (b, k) => (Ne(), Fe(V(Rn), {
4204
4208
  class: "az-h-full",
4205
- id: v.id
4209
+ id: b.id
4206
4210
  }, {
4207
4211
  column1: Oe(() => [
4208
4212
  qe("div", ch, [
4209
4213
  a.value ? (Ne(), Fe(lh, {
4210
4214
  key: 0,
4211
- id: v.id + "_qrcode",
4215
+ id: b.id + "_qrcode",
4212
4216
  value: a.value,
4213
4217
  class: Fa({ "az-opacity-38 az-blur-xl": f.value }),
4214
4218
  disableDownload: f.value,
@@ -4220,7 +4224,7 @@ const uh = /* @__PURE__ */ kt({
4220
4224
  ke(V(Nt), {
4221
4225
  color: "primary",
4222
4226
  ariaLabel: V(r)("common.share.qrcode.fields.reload.label"),
4223
- id: v.id + "_reload",
4227
+ id: b.id + "_reload",
4224
4228
  onAction: p
4225
4229
  }, {
4226
4230
  default: Oe(() => [
@@ -4244,7 +4248,7 @@ const uh = /* @__PURE__ */ kt({
4244
4248
  qe("div", fh, [
4245
4249
  qe("div", hh, [
4246
4250
  ke(V(Ai), {
4247
- id: v.id + "_source",
4251
+ id: b.id + "_source",
4248
4252
  label: V(r)("common.share.qrcode.fields.source.label"),
4249
4253
  "helper-message": "",
4250
4254
  mandatory: V(Et).mandatory,
@@ -4263,7 +4267,7 @@ const uh = /* @__PURE__ */ kt({
4263
4267
  default: Oe(() => [
4264
4268
  l.value ? (Ne(), Fe(V(Nt), {
4265
4269
  key: 0,
4266
- id: v.id + "_back",
4270
+ id: b.id + "_back",
4267
4271
  ariaLabel: V(r)("common.share.backButton"),
4268
4272
  color: "neutral",
4269
4273
  stretch: "",
@@ -4276,7 +4280,7 @@ const uh = /* @__PURE__ */ kt({
4276
4280
  }, 8, ["id", "ariaLabel"])) : Ue("", !0),
4277
4281
  l.value ? (Ne(), Fe(V(Nt), {
4278
4282
  key: 1,
4279
- id: v.id + "_back",
4283
+ id: b.id + "_back",
4280
4284
  ariaLabel: V(r)("common.action.close"),
4281
4285
  stretch: "",
4282
4286
  onAction: k[2] || (k[2] = (D) => s("close"))
@@ -4295,14 +4299,14 @@ const uh = /* @__PURE__ */ kt({
4295
4299
  }
4296
4300
  });
4297
4301
  let Br;
4298
- const d1 = (t) => (Br = t, Rc()), ys = Mc("account", {
4302
+ const g1 = (t) => (Br = t, Rc()), ys = Mc("account", {
4299
4303
  state: () => ({
4300
4304
  account: {}
4301
4305
  }),
4302
4306
  actions: {
4303
4307
  async updateAccount(t, e) {
4304
4308
  if (t)
4305
- return await Br.updateAccount(t, e), this.fetchAccount(!1, (n) => {
4309
+ return await Br.updateAccount(t, e), this.fetchAccount(!0, (n) => {
4306
4310
  this.account = n;
4307
4311
  });
4308
4312
  },
@@ -4330,7 +4334,7 @@ const d1 = (t) => (Br = t, Rc()), ys = Mc("account", {
4330
4334
  return Cs().role.any(t);
4331
4335
  }
4332
4336
  }
4333
- }), gh = /^[A-Za-z0-9!#$%&'`*+/=?^_‘{|}~-]+(?:\.[A-Za-z0-9!#$%&'`*+/=?^_‘{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$/, f1 = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/;
4337
+ }), gh = /^[A-Za-z0-9!#$%&'`*+/=?^_‘{|}~-]+(?:\.[A-Za-z0-9!#$%&'`*+/=?^_‘{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$/, p1 = /^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/;
4334
4338
  function ph(t, e) {
4335
4339
  let n = !1;
4336
4340
  return (e === void 0 || t === void 0 || t.length <= 0 || e.test(t)) && (n = !0), n;
@@ -4346,25 +4350,25 @@ const yh = /* @__PURE__ */ kt({
4346
4350
  emits: ["back", "sent", "error"],
4347
4351
  setup(t, { emit: e }) {
4348
4352
  const n = t, r = e, { t: s } = It(), i = gr(), o = ys(), a = ge(n.couldBack), l = _t(() => o.organisation.email), u = ge(n.email ? n.email : ""), f = ge(), h = ge(!1), p = ge(!1);
4349
- function v() {
4353
+ function b() {
4350
4354
  var $;
4351
4355
  if (!f.value.checkField || !(($ = f.value.checkField()) != null && $.isValid))
4352
4356
  return;
4353
4357
  p.value = !0;
4354
4358
  const k = new Ba();
4355
4359
  k.link = { url: n.url }, h.value = !1;
4356
- let D = u.value.trim().split(";").map((b) => (h.value = h.value || !ph(b.trim(), gh), b.trim()));
4360
+ let D = u.value.trim().split(";").map((v) => (h.value = h.value || !ph(v.trim(), gh), v.trim()));
4357
4361
  if (h.value) {
4358
4362
  p.value = !1, r("error", s("common.share.email.error.format.toaster"), void 0);
4359
4363
  return;
4360
4364
  }
4361
- D = D.filter((b, T) => D.indexOf(b) === T), k.recipients = D.map((b) => {
4365
+ D = D.filter((v, T) => D.indexOf(v) === T), k.recipients = D.map((v) => {
4362
4366
  const T = new Va();
4363
- return T.emailAddress = b, T;
4367
+ return T.emailAddress = v, T;
4364
4368
  }), i.shareALink(l.value, k).then(() => {
4365
4369
  p.value = !1, r("sent");
4366
- }).catch((b) => {
4367
- p.value = !1, r("error", s("common.share.email.error.common.toaster"), b);
4370
+ }).catch((v) => {
4371
+ p.value = !1, r("error", s("common.share.email.error.common.toaster"), v);
4368
4372
  });
4369
4373
  }
4370
4374
  return wt(() => n.couldBack, (k) => {
@@ -4410,7 +4414,7 @@ const yh = /* @__PURE__ */ kt({
4410
4414
  ariaLabel: V(s)("common.action.send"),
4411
4415
  stretch: "",
4412
4416
  disabled: p.value,
4413
- onAction: v
4417
+ onAction: b
4414
4418
  }, {
4415
4419
  default: Oe(() => [
4416
4420
  Ct(Je(V(s)("common.action.send")), 1)
@@ -4434,34 +4438,34 @@ const yh = /* @__PURE__ */ kt({
4434
4438
  },
4435
4439
  emits: ["back", "sent", "error"],
4436
4440
  setup(t, { emit: e }) {
4437
- const n = t, r = e, { t: s } = It(), i = gr(), o = ys(), a = ge(n.couldBack), l = _t(() => o.organisation.email), u = ge(n.phone ? n.phone : ""), f = ge(""), h = ge(), p = ge(!1), v = ge(!1), k = ge(void 0);
4441
+ const n = t, r = e, { t: s } = It(), i = gr(), o = ys(), a = ge(n.couldBack), l = _t(() => o.organisation.email), u = ge(n.phone ? n.phone : ""), f = ge(""), h = ge(), p = ge(!1), b = ge(!1), k = ge(void 0);
4438
4442
  function D() {
4439
4443
  var C;
4440
4444
  if (h.value.resetError(), !h.value.checkField(!0) || !((C = h.value.checkField(!0)) != null && C.isValid))
4441
4445
  return;
4442
- p.value = !0, v.value = !1;
4443
- const b = new Ba();
4444
- b.link = { url: n.url };
4446
+ p.value = !0, b.value = !1;
4447
+ const v = new Ba();
4448
+ v.link = { url: n.url };
4445
4449
  const T = new Va();
4446
- T.mobilePhoneNumber = u.value, b.recipients = [T], b.text = f.value, i.shareALinkByTextMessage(l.value, b).then(() => {
4450
+ T.mobilePhoneNumber = u.value, v.recipients = [T], v.text = f.value, i.shareALinkByTextMessage(l.value, v).then(() => {
4447
4451
  p.value = !1, r("sent");
4448
4452
  }).catch((w) => {
4449
- p.value = !1, w.error.code === 402 ? v.value = !0 : r("error", s("common.share.sms.error.common.toaster"), w);
4453
+ p.value = !1, w.error.code === 402 ? b.value = !0 : r("error", s("common.share.sms.error.common.toaster"), w);
4450
4454
  });
4451
4455
  }
4452
- function $(b, T) {
4456
+ function $(v, T) {
4453
4457
  T !== void 0 && (k.value = T ? s("common.share.sms.warning.counter-exceeded.label") : void 0);
4454
4458
  }
4455
- return wt(() => n.couldBack, (b) => {
4456
- a.value = b;
4459
+ return wt(() => n.couldBack, (v) => {
4460
+ a.value = v;
4457
4461
  }), jt(() => {
4458
4462
  h.value && h.value.focus && h.value.focus();
4459
- }), (b, T) => (Ne(), Fe(V(Rn), {
4463
+ }), (v, T) => (Ne(), Fe(V(Rn), {
4460
4464
  class: "az-h-full",
4461
- id: b.id
4465
+ id: v.id
4462
4466
  }, {
4463
4467
  column1: Oe(() => [
4464
- v.value ? (Ne(), Fe(V(co), {
4468
+ b.value ? (Ne(), Fe(V(co), {
4465
4469
  key: 0,
4466
4470
  variant: "alert",
4467
4471
  title: V(s)("common.share.sms.error.no-credit-label")
@@ -4471,7 +4475,7 @@ const yh = /* @__PURE__ */ kt({
4471
4475
  ref: h,
4472
4476
  label: V(s)("common.share.sms.fields.phone.label"),
4473
4477
  mandatory: V(Et).mandatory,
4474
- id: b.id + "_phone",
4478
+ id: v.id + "_phone",
4475
4479
  class: "az-h-full",
4476
4480
  modelValue: u.value,
4477
4481
  "onUpdate:modelValue": T[0] || (T[0] = (C) => u.value = C),
@@ -4481,7 +4485,7 @@ const yh = /* @__PURE__ */ kt({
4481
4485
  ref: "contentField",
4482
4486
  label: V(s)("common.share.sms.fields.content.helper"),
4483
4487
  placeholder: V(s)("common.share.sms.fields.content.placeholder"),
4484
- id: b.id + "_content",
4488
+ id: v.id + "_content",
4485
4489
  modelValue: f.value,
4486
4490
  "onUpdate:modelValue": [
4487
4491
  T[1] || (T[1] = (C) => f.value = C),
@@ -4500,7 +4504,7 @@ const yh = /* @__PURE__ */ kt({
4500
4504
  default: Oe(() => [
4501
4505
  a.value ? (Ne(), Fe(V(Nt), {
4502
4506
  key: 0,
4503
- id: b.id + "_back",
4507
+ id: v.id + "_back",
4504
4508
  ariaLabel: V(s)("common.share.backButton"),
4505
4509
  color: "neutral",
4506
4510
  disabled: p.value,
@@ -4513,7 +4517,7 @@ const yh = /* @__PURE__ */ kt({
4513
4517
  _: 1
4514
4518
  }, 8, ["id", "ariaLabel", "disabled"])) : Ue("", !0),
4515
4519
  ke(V(Nt), {
4516
- id: b.id + "_send",
4520
+ id: v.id + "_send",
4517
4521
  ariaLabel: V(s)("common.action.send"),
4518
4522
  disabled: p.value,
4519
4523
  stretch: "",
@@ -4534,7 +4538,7 @@ const yh = /* @__PURE__ */ kt({
4534
4538
  }), Eh = {
4535
4539
  key: 0,
4536
4540
  class: "az-flex az-gap-4 az-flex-col"
4537
- }, h1 = /* @__PURE__ */ kt({
4541
+ }, y1 = /* @__PURE__ */ kt({
4538
4542
  __name: "View",
4539
4543
  props: {
4540
4544
  id: {},
@@ -4575,7 +4579,7 @@ const yh = /* @__PURE__ */ kt({
4575
4579
  var C, w;
4576
4580
  (C = n.callbacks) != null && C.emailSent && typeof ((w = n.callbacks) == null ? void 0 : w.emailSent) == "function" && n.callbacks.emailSent(), r("emailSent");
4577
4581
  }
4578
- function v() {
4582
+ function b() {
4579
4583
  var C, w;
4580
4584
  (C = n.callbacks) != null && C.smsSent && typeof ((w = n.callbacks) == null ? void 0 : w.smsSent) == "function" && n.callbacks.smsSent(), r("smsSent");
4581
4585
  }
@@ -4597,7 +4601,7 @@ const yh = /* @__PURE__ */ kt({
4597
4601
  function $(C) {
4598
4602
  C && (a.value = C);
4599
4603
  }
4600
- function b() {
4604
+ function v() {
4601
4605
  a.value = void 0;
4602
4606
  }
4603
4607
  async function T() {
@@ -4656,7 +4660,7 @@ const yh = /* @__PURE__ */ kt({
4656
4660
  url: C.url,
4657
4661
  couldBack: o.value.length > 1,
4658
4662
  onClose: w[1] || (w[1] = (P) => r("close")),
4659
- onBack: b
4663
+ onBack: v
4660
4664
  }, null, 8, ["id", "url", "couldBack"])) : Ue("", !0),
4661
4665
  a.value === V(et).QR_CODE && C.url ? (Ne(), Fe(mh, {
4662
4666
  key: 2,
@@ -4664,7 +4668,7 @@ const yh = /* @__PURE__ */ kt({
4664
4668
  couldBack: o.value.length > 1,
4665
4669
  url: C.url,
4666
4670
  onClose: w[2] || (w[2] = (P) => r("close")),
4667
- onBack: b
4671
+ onBack: v
4668
4672
  }, null, 8, ["id", "couldBack", "url"])) : Ue("", !0),
4669
4673
  a.value === V(et).EMAIL && l.value ? (Ne(), Fe(yh, {
4670
4674
  key: 3,
@@ -4674,7 +4678,7 @@ const yh = /* @__PURE__ */ kt({
4674
4678
  email: C.shareEmail,
4675
4679
  onSent: p,
4676
4680
  onError: w[3] || (w[3] = (P, z) => f(V(et).EMAIL, P, z)),
4677
- onBack: b
4681
+ onBack: v
4678
4682
  }, null, 8, ["id", "couldBack", "url", "email"])) : Ue("", !0),
4679
4683
  a.value === V(et).SMS && l.value ? (Ne(), Fe(_h, {
4680
4684
  key: 4,
@@ -4682,14 +4686,14 @@ const yh = /* @__PURE__ */ kt({
4682
4686
  couldBack: o.value.length > 1,
4683
4687
  url: l.value,
4684
4688
  phone: C.sharePhone,
4685
- onSent: v,
4689
+ onSent: b,
4686
4690
  onError: w[4] || (w[4] = (P, z) => f(V(et).SMS, P, z)),
4687
- onBack: b
4691
+ onBack: v
4688
4692
  }, null, 8, ["id", "couldBack", "url", "phone"])) : Ue("", !0)
4689
4693
  ], 64));
4690
4694
  }
4691
4695
  }), Kr = /* @__PURE__ */ new Map();
4692
- function m1(t, e, n, r = { autoExtendDelay: !1 }) {
4696
+ function _1(t, e, n, r = { autoExtendDelay: !1 }) {
4693
4697
  let s = 0;
4694
4698
  const i = async () => {
4695
4699
  const a = Kr.get(n);
@@ -4697,11 +4701,11 @@ function m1(t, e, n, r = { autoExtendDelay: !1 }) {
4697
4701
  }, o = () => !r.autoExtendDelay || s < 12 ? e : s < 24 ? e * 3 : e * 6;
4698
4702
  i();
4699
4703
  }
4700
- function g1(t) {
4704
+ function E1(t) {
4701
4705
  const e = Kr.get(t);
4702
4706
  e && (clearTimeout(e), Kr.delete(t));
4703
4707
  }
4704
- function p1(t, e = !1) {
4708
+ function v1(t, e = !1) {
4705
4709
  const n = new URL(t).hostname.replace("www.", "");
4706
4710
  if (e) {
4707
4711
  const r = n.split(".");
@@ -4709,17 +4713,17 @@ function p1(t, e = !1) {
4709
4713
  } else
4710
4714
  return n;
4711
4715
  }
4712
- function y1(t) {
4716
+ function b1(t) {
4713
4717
  if (!t)
4714
4718
  return "";
4715
4719
  let e = document.createElement("div");
4716
- return e.innerHTML = t, e.textContent;
4720
+ return e.innerHTML = t, e.textContent ?? "";
4717
4721
  }
4718
- function _1(t, e) {
4722
+ function w1(t, e) {
4719
4723
  let n = t.organisation.userDomain ?? e.getBaseURL();
4720
4724
  return n.endsWith("/") && (n = n.slice(0, -1)), n;
4721
4725
  }
4722
- const bh = [
4726
+ const vh = [
4723
4727
  Ut.owner,
4724
4728
  Ut.accountAdministrator,
4725
4729
  Ut.schedulingAdministrator,
@@ -4729,10 +4733,10 @@ const bh = [
4729
4733
  Ut.accountSchedulingRead,
4730
4734
  Ut.schedulingRead
4731
4735
  ];
4732
- function E1(t) {
4733
- return t ? t.find((n) => bh.includes(n)) !== void 0 : !1;
4736
+ function S1(t) {
4737
+ return t ? t.find((n) => vh.includes(n)) !== void 0 : !1;
4734
4738
  }
4735
- function vh(t, e) {
4739
+ function bh(t, e) {
4736
4740
  const n = [];
4737
4741
  return t && (t == null || t.forEach((r) => {
4738
4742
  var s;
@@ -4757,10 +4761,10 @@ function vh(t, e) {
4757
4761
  })), n;
4758
4762
  }
4759
4763
  function wh(t, e, n, r) {
4760
- const s = ge(""), i = ge(""), o = ge([]), a = ge([]), l = ge(!1), u = ge(!1), f = ge(""), h = ge(""), p = ge(!1), v = gr(), k = ys();
4764
+ const s = ge(""), i = ge(""), o = ge([]), a = ge([]), l = ge(!1), u = ge(!1), f = ge(""), h = ge(""), p = ge(!1), b = gr(), k = ys();
4761
4765
  jt(() => {
4762
4766
  var w;
4763
- v.getFormBuilder(e, (w = k == null ? void 0 : k.organisation) == null ? void 0 : w.email, r).then((P) => {
4767
+ b.getFormBuilder(e, (w = k == null ? void 0 : k.organisation) == null ? void 0 : w.email, r).then((P) => {
4764
4768
  P != null && P.result ? D(P == null ? void 0 : P.result) : t("onError", "formNotFound");
4765
4769
  }).catch((P) => {
4766
4770
  t("onError", "formNotFound");
@@ -4769,10 +4773,10 @@ function wh(t, e, n, r) {
4769
4773
  function D(w) {
4770
4774
  i.value = (w == null ? void 0 : w.title) || w.name;
4771
4775
  const P = w instanceof Cc ? w : void 0, z = w instanceof Nc ? w : void 0;
4772
- s.value = (P == null ? void 0 : P.welcomeMessage) ?? (z == null ? void 0 : z.description), f.value = (P == null ? void 0 : P.privateDataConsentMessage) ?? "", h.value = (P == null ? void 0 : P.marketingListConsentMessage) ?? "", o.value = vh(P == null ? void 0 : P.pages, n), document.title = i.value, a.value = Sh(o.value, !0);
4776
+ s.value = (P == null ? void 0 : P.welcomeMessage) ?? (z == null ? void 0 : z.description) ?? "", f.value = (P == null ? void 0 : P.privateDataConsentMessage) ?? "", h.value = (P == null ? void 0 : P.marketingListConsentMessage) ?? "", o.value = bh(P == null ? void 0 : P.pages, n), document.title = i.value, a.value = Sh(o.value, !0);
4773
4777
  }
4774
4778
  const $ = _t(() => !l.value && f.value !== "" ? !1 : p.value);
4775
- function b(w) {
4779
+ function v(w) {
4776
4780
  p.value = w.isValid, w.values.forEach((P) => {
4777
4781
  const z = o.value.find((N) => N.id === P.id);
4778
4782
  z && (z.value = P.values);
@@ -4786,7 +4790,7 @@ function wh(t, e, n, r) {
4786
4790
  if (!$)
4787
4791
  return;
4788
4792
  const w = T();
4789
- v.createFormResult(e, w).then((P) => {
4793
+ b.createFormResult(e, w).then((P) => {
4790
4794
  P ? t("updateFormResult", P) : t("onError", "submitFormError");
4791
4795
  }).catch(() => {
4792
4796
  t("goToHome");
@@ -4801,7 +4805,7 @@ function wh(t, e, n, r) {
4801
4805
  dataConsentMessage: f,
4802
4806
  marketingConsentMessage: h,
4803
4807
  formSubmit: C,
4804
- validateForm: b,
4808
+ validateForm: v,
4805
4809
  isFieldsValid: $
4806
4810
  };
4807
4811
  }
@@ -4812,30 +4816,29 @@ function ui(t, e) {
4812
4816
  }), n;
4813
4817
  }
4814
4818
  function Sh(t, e) {
4815
- if (t && t.length > 0) {
4816
- const n = [];
4817
- return t.forEach((r) => {
4818
- n.push({
4819
- id: r.id,
4820
- inputType: r.inputType ?? r.type,
4821
- //TODO warning sur ce point, il faudra peut être faire un rollback de la modif
4822
- label: r.label,
4823
- mandatory: r.required,
4824
- values: ui(r.values, r.type),
4825
- visible: r.visible,
4826
- multiple: r.multiple,
4827
- value: e ? Oh(r.value, r.values, r.type) : r.value,
4828
- pattern: r.pattern,
4829
- disabled: r.disabled,
4830
- minlength: r.minlength,
4831
- maxlength: r.maxlength,
4832
- placeholder: r.placeholder,
4833
- helperMessage: r.help,
4834
- valueGroups: ui(r.valueGroups)
4835
- });
4836
- }), n;
4837
- }
4838
- return [];
4819
+ if (!t || t.length === 0)
4820
+ return [];
4821
+ const n = [];
4822
+ return t.forEach((r) => {
4823
+ n.push({
4824
+ id: r.id,
4825
+ inputType: r.inputType ?? r.type,
4826
+ //TODO warning sur ce point, il faudra peut être faire un rollback de la modif
4827
+ label: r.label,
4828
+ mandatory: r.required,
4829
+ values: ui(r.values, r.type),
4830
+ visible: r.visible,
4831
+ multiple: r.multiple,
4832
+ value: e ? Oh(r.value, r.values ?? [], r.type) : r.value,
4833
+ pattern: r.pattern,
4834
+ disabled: r.disabled,
4835
+ minlength: r.minlength,
4836
+ maxlength: r.maxlength,
4837
+ placeholder: r.placeholder,
4838
+ helperMessage: r.help,
4839
+ valueGroups: ui(r.valueGroups)
4840
+ });
4841
+ }), n;
4839
4842
  }
4840
4843
  function Oh(t, e, n) {
4841
4844
  if (n !== "select" && n !== "radios" && n !== "checklist")
@@ -4856,7 +4859,7 @@ const Th = {
4856
4859
  id: "az-queue-container",
4857
4860
  class: "az-flex az-flex-col az-gap-4",
4858
4861
  style: { flex: "2.5", "min-width": "250px" }
4859
- }, Ch = { class: "az-flex az-flex-col az-gap-1" }, Nh = { class: "az-title-h1" }, kh = { class: "az-content-primary az-text-body2" }, Ih = { class: "az-flex az-flex-col az-gap-3" }, Lh = { class: "az-flex az-justify-end" }, Ah = ["disabled"], b1 = /* @__PURE__ */ kt({
4862
+ }, Ch = { class: "az-flex az-flex-col az-gap-1" }, Nh = { class: "az-title-h1" }, kh = { class: "az-content-primary az-text-body2" }, Ih = { class: "az-flex az-flex-col az-gap-3" }, Lh = { class: "az-flex az-justify-end" }, Ah = ["disabled"], O1 = /* @__PURE__ */ kt({
4860
4863
  __name: "View",
4861
4864
  props: {
4862
4865
  formId: {},
@@ -4874,11 +4877,11 @@ const Th = {
4874
4877
  marketingConsentValue: f,
4875
4878
  dataConsentMessage: h,
4876
4879
  marketingConsentMessage: p,
4877
- formSubmit: v,
4880
+ formSubmit: b,
4878
4881
  validateForm: k,
4879
4882
  isFieldsValid: D
4880
4883
  } = wh(i, r.formId, r.fieldValues, r.cypherParams);
4881
- return ($, b) => {
4884
+ return ($, v) => {
4882
4885
  const T = fc("html-safe");
4883
4886
  return Ne(), Mn("div", Th, [
4884
4887
  qe("div", Ch, [
@@ -4888,7 +4891,7 @@ const Th = {
4888
4891
  ])
4889
4892
  ]),
4890
4893
  qe("div", Ih, [
4891
- V(l) ? (Ne(), Fe(V(bc), {
4894
+ V(l) ? (Ne(), Fe(V(vc), {
4892
4895
  key: 0,
4893
4896
  fields: V(l),
4894
4897
  isWidgetContext: "",
@@ -4900,7 +4903,7 @@ const Th = {
4900
4903
  key: 1,
4901
4904
  id: "dataConsent",
4902
4905
  modelValue: V(u),
4903
- "onUpdate:modelValue": b[0] || (b[0] = (C) => lo(u) ? u.value = C : null),
4906
+ "onUpdate:modelValue": v[0] || (v[0] = (C) => lo(u) ? u.value = C : null),
4904
4907
  allowHtml: "",
4905
4908
  label: V(h),
4906
4909
  mandatory: V(Et).mandatory,
@@ -4910,7 +4913,7 @@ const Th = {
4910
4913
  key: 2,
4911
4914
  id: "marketingConsent",
4912
4915
  modelValue: V(f),
4913
- "onUpdate:modelValue": b[1] || (b[1] = (C) => lo(f) ? f.value = C : null),
4916
+ "onUpdate:modelValue": v[1] || (v[1] = (C) => lo(f) ? f.value = C : null),
4914
4917
  allowHtml: "",
4915
4918
  label: V(p),
4916
4919
  mandatory: V(Et).optional,
@@ -4920,7 +4923,7 @@ const Th = {
4920
4923
  qe("div", Lh, [
4921
4924
  qe("button", {
4922
4925
  class: "az-btn az-btn-color-primary",
4923
- onClick: b[2] || (b[2] = (C) => V(v)()),
4926
+ onClick: v[2] || (v[2] = (C) => V(b)()),
4924
4927
  disabled: !V(D)
4925
4928
  }, Je(V(s)("common.action.confirm")), 9, Ah)
4926
4929
  ])
@@ -5025,14 +5028,14 @@ const Z = "numeric", St = "short", at = "long", Jr = {
5025
5028
  day: Z,
5026
5029
  hour: Z,
5027
5030
  minute: Z
5028
- }, bl = {
5031
+ }, vl = {
5029
5032
  year: Z,
5030
5033
  month: Z,
5031
5034
  day: Z,
5032
5035
  hour: Z,
5033
5036
  minute: Z,
5034
5037
  second: Z
5035
- }, vl = {
5038
+ }, bl = {
5036
5039
  year: Z,
5037
5040
  month: St,
5038
5041
  day: Z,
@@ -5356,7 +5359,7 @@ class Mt extends pr {
5356
5359
  const r = Ph(this.name);
5357
5360
  let [s, i, o, a, l, u, f] = r.formatToParts ? Bh(r, n) : Uh(r, n);
5358
5361
  a === "BC" && (s = -Math.abs(s) + 1);
5359
- const p = bs({
5362
+ const p = vs({
5360
5363
  year: s,
5361
5364
  month: i,
5362
5365
  day: o,
@@ -5365,9 +5368,9 @@ class Mt extends pr {
5365
5368
  second: f,
5366
5369
  millisecond: 0
5367
5370
  });
5368
- let v = +n;
5369
- const k = v % 1e3;
5370
- return v -= k >= 0 ? k : 1e3 + k, (p - v) / (60 * 1e3);
5371
+ let b = +n;
5372
+ const k = b % 1e3;
5373
+ return b -= k >= 0 ? k : 1e3 + k, (p - b) / (60 * 1e3);
5371
5374
  }
5372
5375
  /**
5373
5376
  * Return whether this Zone is equal to another zone
@@ -5533,7 +5536,7 @@ class Qh {
5533
5536
  this.opts = { style: "long", ...r }, !n && xl() && (this.rtf = zh(e, r));
5534
5537
  }
5535
5538
  format(e, n) {
5536
- return this.rtf ? this.rtf.format(e, n) : vm(n, e, this.opts.numeric, this.opts.style !== "long");
5539
+ return this.rtf ? this.rtf.format(e, n) : bm(n, e, this.opts.numeric, this.opts.style !== "long");
5537
5540
  }
5538
5541
  formatToParts(e, n) {
5539
5542
  return this.rtf ? this.rtf.formatToParts(e, n) : [];
@@ -5695,7 +5698,7 @@ class nt extends pr {
5695
5698
  if (e) {
5696
5699
  const n = e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
5697
5700
  if (n)
5698
- return new nt(vs(n[1], n[2]));
5701
+ return new nt(bs(n[1], n[2]));
5699
5702
  }
5700
5703
  return null;
5701
5704
  }
@@ -6045,7 +6048,7 @@ class Me {
6045
6048
  we.resetCache(), Mt.resetCache(), te.resetCache(), rm();
6046
6049
  }
6047
6050
  }
6048
- class vt {
6051
+ class bt {
6049
6052
  constructor(e, n) {
6050
6053
  this.reason = e, this.explanation = n;
6051
6054
  }
@@ -6055,7 +6058,7 @@ class vt {
6055
6058
  }
6056
6059
  const Il = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Ll = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];
6057
6060
  function ft(t, e) {
6058
- return new vt(
6061
+ return new bt(
6059
6062
  "unit out of range",
6060
6063
  `you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`
6061
6064
  );
@@ -6226,7 +6229,7 @@ function Qr(t, e) {
6226
6229
  const n = cm(e - 1, 12) + 1, r = t + (e - n) / 12;
6227
6230
  return n === 2 ? yr(r) ? 29 : 28 : [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][n - 1];
6228
6231
  }
6229
- function bs(t) {
6232
+ function vs(t) {
6230
6233
  let e = Date.UTC(
6231
6234
  t.year,
6232
6235
  t.month - 1,
@@ -6261,7 +6264,7 @@ function Pl(t, e, n, r = null) {
6261
6264
  const o = { timeZoneName: e, ...i }, a = new Intl.DateTimeFormat(n, o).formatToParts(s).find((l) => l.type.toLowerCase() === "timezonename");
6262
6265
  return a ? a.value : null;
6263
6266
  }
6264
- function vs(t, e) {
6267
+ function bs(t, e) {
6265
6268
  let n = parseInt(t, 10);
6266
6269
  Number.isNaN(n) && (n = 0);
6267
6270
  const r = parseInt(e, 10) || 0, s = n < 0 || Object.is(n, -0) ? -r : r;
@@ -6387,10 +6390,10 @@ function _m(t, e) {
6387
6390
  function Em(t, e) {
6388
6391
  return Bl(e)[t.month - 1];
6389
6392
  }
6390
- function bm(t, e) {
6393
+ function vm(t, e) {
6391
6394
  return Hl(e)[t.year < 0 ? 0 : 1];
6392
6395
  }
6393
- function vm(t, e, n = "always", r = !1) {
6396
+ function bm(t, e, n = "always", r = !1) {
6394
6397
  const s = {
6395
6398
  years: ["year", "yr."],
6396
6399
  quarters: ["quarter", "qtr."],
@@ -6435,10 +6438,10 @@ const wm = {
6435
6438
  TTT: yl,
6436
6439
  TTTT: _l,
6437
6440
  f: El,
6438
- ff: vl,
6441
+ ff: bl,
6439
6442
  fff: Sl,
6440
6443
  ffff: Tl,
6441
- F: bl,
6444
+ F: vl,
6442
6445
  FF: wl,
6443
6446
  FFF: Ol,
6444
6447
  FFFF: Cl
@@ -6487,14 +6490,14 @@ class Xe {
6487
6490
  return n > 0 && (r.padTo = n), this.loc.numberFormatter(r).format(e);
6488
6491
  }
6489
6492
  formatDateTimeFromString(e, n) {
6490
- const r = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (v, k) => this.loc.extract(e, v, k), o = (v) => e.isOffsetFixed && e.offset === 0 && v.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, v.format) : "", a = () => r ? ym(e) : i({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), l = (v, k) => r ? Em(e, v) : i(k ? { month: v } : { month: v, day: "numeric" }, "month"), u = (v, k) => r ? _m(e, v) : i(
6491
- k ? { weekday: v } : { weekday: v, month: "long", day: "numeric" },
6493
+ const r = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (b, k) => this.loc.extract(e, b, k), o = (b) => e.isOffsetFixed && e.offset === 0 && b.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, b.format) : "", a = () => r ? ym(e) : i({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), l = (b, k) => r ? Em(e, b) : i(k ? { month: b } : { month: b, day: "numeric" }, "month"), u = (b, k) => r ? _m(e, b) : i(
6494
+ k ? { weekday: b } : { weekday: b, month: "long", day: "numeric" },
6492
6495
  "weekday"
6493
- ), f = (v) => {
6494
- const k = Xe.macroTokenToFormatOpts(v);
6495
- return k ? this.formatWithSystemDefault(e, k) : v;
6496
- }, h = (v) => r ? bm(e, v) : i({ era: v }, "era"), p = (v) => {
6497
- switch (v) {
6496
+ ), f = (b) => {
6497
+ const k = Xe.macroTokenToFormatOpts(b);
6498
+ return k ? this.formatWithSystemDefault(e, k) : b;
6499
+ }, h = (b) => r ? vm(e, b) : i({ era: b }, "era"), p = (b) => {
6500
+ switch (b) {
6498
6501
  // ms
6499
6502
  case "S":
6500
6503
  return this.num(e.millisecond);
@@ -6633,7 +6636,7 @@ class Xe {
6633
6636
  case "x":
6634
6637
  return this.num(e.ts);
6635
6638
  default:
6636
- return f(v);
6639
+ return f(b);
6637
6640
  }
6638
6641
  };
6639
6642
  return ia(Xe.parseFormat(n), p);
@@ -6726,7 +6729,7 @@ function Gn(t, e) {
6726
6729
  }, null, e + 4];
6727
6730
  }
6728
6731
  function _r(t, e) {
6729
- const n = !t[e] && !t[e + 1], r = vs(t[e + 1], t[e + 2]), s = n ? null : nt.instance(r);
6732
+ const n = !t[e] && !t[e + 1], r = bs(t[e + 1], t[e + 2]), s = n ? null : nt.instance(r);
6730
6733
  return [{}, s, e + 3];
6731
6734
  }
6732
6735
  function Er(t, e) {
@@ -6735,7 +6738,7 @@ function Er(t, e) {
6735
6738
  }
6736
6739
  const Dm = RegExp(`^T?${Hi.source}$`), Mm = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
6737
6740
  function Rm(t) {
6738
- const [e, n, r, s, i, o, a, l, u] = t, f = e[0] === "-", h = l && l[0] === "-", p = (v, k = !1) => v !== void 0 && (k || v && f) ? -v : v;
6741
+ const [e, n, r, s, i, o, a, l, u] = t, f = e[0] === "-", h = l && l[0] === "-", p = (b, k = !1) => b !== void 0 && (k || b && f) ? -b : b;
6739
6742
  return [
6740
6743
  {
6741
6744
  years: p(rn(n)),
@@ -6786,8 +6789,8 @@ function Pm(t) {
6786
6789
  f,
6787
6790
  h
6788
6791
  ] = t, p = Yi(e, s, r, n, i, o, a);
6789
- let v;
6790
- return l ? v = xm[l] : u ? v = 0 : v = vs(f, h), [p, new nt(v)];
6792
+ let b;
6793
+ return l ? b = xm[l] : u ? b = 0 : b = bs(f, h), [p, new nt(b)];
6791
6794
  }
6792
6795
  function $m(t) {
6793
6796
  return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
@@ -7108,7 +7111,7 @@ class pe {
7108
7111
  static invalid(e, n = null) {
7109
7112
  if (!e)
7110
7113
  throw new Ze("need to specify a reason the Duration is invalid");
7111
- const r = e instanceof vt ? e : new vt(e, n);
7114
+ const r = e instanceof bt ? e : new bt(e, n);
7112
7115
  if (Me.throwOnInvalid)
7113
7116
  throw new Rh(r);
7114
7117
  return new pe({ invalid: r });
@@ -7590,7 +7593,7 @@ class De {
7590
7593
  static invalid(e, n = null) {
7591
7594
  if (!e)
7592
7595
  throw new Ze("need to specify a reason the Interval is invalid");
7593
- const r = e instanceof vt ? e : new vt(e, n);
7596
+ const r = e instanceof bt ? e : new bt(e, n);
7594
7597
  if (Me.throwOnInvalid)
7595
7598
  throw new Mh(r);
7596
7599
  return new De({ invalid: r });
@@ -8254,7 +8257,7 @@ function yt(t, e) {
8254
8257
  };
8255
8258
  }
8256
8259
  function da(t, e) {
8257
- return { regex: t, deser: ([, n, r]) => vs(n, r), groups: e };
8260
+ return { regex: t, deser: ([, n, r]) => bs(n, r), groups: e };
8258
8261
  }
8259
8262
  function Ir(t) {
8260
8263
  return { regex: t, deser: ([e]) => e };
@@ -8263,9 +8266,9 @@ function pg(t) {
8263
8266
  return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
8264
8267
  }
8265
8268
  function yg(t, e) {
8266
- const n = pt(e), r = pt(e, "{2}"), s = pt(e, "{3}"), i = pt(e, "{4}"), o = pt(e, "{6}"), a = pt(e, "{1,2}"), l = pt(e, "{1,3}"), u = pt(e, "{1,6}"), f = pt(e, "{1,9}"), h = pt(e, "{2,4}"), p = pt(e, "{4,6}"), v = ($) => ({ regex: RegExp(pg($.val)), deser: ([b]) => b, literal: !0 }), D = (($) => {
8269
+ const n = pt(e), r = pt(e, "{2}"), s = pt(e, "{3}"), i = pt(e, "{4}"), o = pt(e, "{6}"), a = pt(e, "{1,2}"), l = pt(e, "{1,3}"), u = pt(e, "{1,6}"), f = pt(e, "{1,9}"), h = pt(e, "{2,4}"), p = pt(e, "{4,6}"), b = ($) => ({ regex: RegExp(pg($.val)), deser: ([v]) => v, literal: !0 }), D = (($) => {
8267
8270
  if (t.literal)
8268
- return v($);
8271
+ return b($);
8269
8272
  switch ($.val) {
8270
8273
  // era
8271
8274
  case "G":
@@ -8381,7 +8384,7 @@ function yg(t, e) {
8381
8384
  case " ":
8382
8385
  return Ir(/[^\S\n\r]/);
8383
8386
  default:
8384
- return v($);
8387
+ return b($);
8385
8388
  }
8386
8389
  })(t) || {
8387
8390
  invalidReason: hg
@@ -8449,10 +8452,10 @@ function Eg(t, e, n) {
8449
8452
  val: a
8450
8453
  };
8451
8454
  }
8452
- function bg(t) {
8455
+ function vg(t) {
8453
8456
  return [`^${t.map((n) => n.regex).reduce((n, r) => `${n}(${r.source})`, "")}$`, t];
8454
8457
  }
8455
- function vg(t, e, n) {
8458
+ function bg(t, e, n) {
8456
8459
  const r = t.match(e);
8457
8460
  if (r) {
8458
8461
  const s = {};
@@ -8522,13 +8525,13 @@ function nu(t, e) {
8522
8525
  class ru {
8523
8526
  constructor(e, n) {
8524
8527
  if (this.locale = e, this.format = n, this.tokens = nu(Xe.parseFormat(n), e), this.units = this.tokens.map((r) => yg(r, e)), this.disqualifyingUnit = this.units.find((r) => r.invalidReason), !this.disqualifyingUnit) {
8525
- const [r, s] = bg(this.units);
8528
+ const [r, s] = vg(this.units);
8526
8529
  this.regex = RegExp(r, "i"), this.handlers = s;
8527
8530
  }
8528
8531
  }
8529
8532
  explainFromTokens(e) {
8530
8533
  if (this.isValid) {
8531
- const [n, r] = vg(e, this.regex, this.handlers), [s, i, o] = r ? wg(r) : [null, null, void 0];
8534
+ const [n, r] = bg(e, this.regex, this.handlers), [s, i, o] = r ? wg(r) : [null, null, void 0];
8532
8535
  if ($n(r, "a") && $n(r, "H"))
8533
8536
  throw new In(
8534
8537
  "Can't include meridiem when specifying 24-hour format"
@@ -8568,7 +8571,7 @@ function iu(t, e) {
8568
8571
  }
8569
8572
  const xs = "Invalid DateTime", Cg = 864e13;
8570
8573
  function tr(t) {
8571
- return new vt("unsupported zone", `the zone "${t.name}" is not supported`);
8574
+ return new bt("unsupported zone", `the zone "${t.name}" is not supported`);
8572
8575
  }
8573
8576
  function Fs(t) {
8574
8577
  return t.weekData === null && (t.weekData = Xr(t.c)), t.weekData;
@@ -8614,7 +8617,7 @@ function Lr(t, e) {
8614
8617
  };
8615
8618
  }
8616
8619
  function Vr(t, e, n) {
8617
- return ou(bs(t), e, n);
8620
+ return ou(vs(t), e, n);
8618
8621
  }
8619
8622
  function fa(t, e) {
8620
8623
  const n = t.o, r = t.c.year + Math.trunc(e.years), s = t.c.month + Math.trunc(e.months) + Math.trunc(e.quarters) * 3, i = {
@@ -8632,7 +8635,7 @@ function fa(t, e) {
8632
8635
  minutes: e.minutes,
8633
8636
  seconds: e.seconds,
8634
8637
  milliseconds: e.milliseconds
8635
- }).as("milliseconds"), a = bs(i);
8638
+ }).as("milliseconds"), a = vs(i);
8636
8639
  let [l, u] = ou(a, n, t.zone);
8637
8640
  return o !== 0 && (l += o, u = t.zone.offset(l)), { ts: l, o: u };
8638
8641
  }
@@ -8647,7 +8650,7 @@ function Nn(t, e, n, r, s, i) {
8647
8650
  return o ? u : u.setZone(a);
8648
8651
  } else
8649
8652
  return te.invalid(
8650
- new vt("unparsable", `the input "${s}" can't be parsed as ${r}`)
8653
+ new bt("unparsable", `the input "${s}" can't be parsed as ${r}`)
8651
8654
  );
8652
8655
  }
8653
8656
  function Ar(t, e, n = !0) {
@@ -8743,8 +8746,8 @@ function Dg(t) {
8743
8746
  if (nr === void 0 && (nr = Me.now()), t.type !== "iana")
8744
8747
  return t.offset(nr);
8745
8748
  const e = t.name;
8746
- let n = bi.get(e);
8747
- return n === void 0 && (n = t.offset(nr), bi.set(e, n)), n;
8749
+ let n = vi.get(e);
8750
+ return n === void 0 && (n = t.offset(nr), vi.set(e, n)), n;
8748
8751
  }
8749
8752
  function ga(t, e) {
8750
8753
  const n = Ht(e.zone, Me.defaultZone);
@@ -8781,14 +8784,14 @@ function ya(t) {
8781
8784
  return t.length > 0 && typeof t[t.length - 1] == "object" ? (e = t[t.length - 1], n = Array.from(t).slice(0, t.length - 1)) : n = Array.from(t), [e, n];
8782
8785
  }
8783
8786
  let nr;
8784
- const bi = /* @__PURE__ */ new Map();
8787
+ const vi = /* @__PURE__ */ new Map();
8785
8788
  class te {
8786
8789
  /**
8787
8790
  * @access private
8788
8791
  */
8789
8792
  constructor(e) {
8790
8793
  const n = e.zone || Me.defaultZone;
8791
- let r = e.invalid || (Number.isNaN(e.ts) ? new vt("invalid input") : null) || (n.isValid ? null : tr(n));
8794
+ let r = e.invalid || (Number.isNaN(e.ts) ? new bt("invalid input") : null) || (n.isValid ? null : tr(n));
8792
8795
  this.ts = ue(e.ts) ? Me.now() : e.ts;
8793
8796
  let s = null, i = null;
8794
8797
  if (!r)
@@ -8796,7 +8799,7 @@ class te {
8796
8799
  [s, i] = [e.old.c, e.old.o];
8797
8800
  else {
8798
8801
  const a = Gt(e.o) && !e.old ? e.o : n.offset(this.ts);
8799
- s = Lr(this.ts, a), r = Number.isNaN(s.year) ? new vt("invalid input") : null, s = r ? null : s, i = r ? null : a;
8802
+ s = Lr(this.ts, a), r = Number.isNaN(s.year) ? new bt("invalid input") : null, s = r ? null : s, i = r ? null : a;
8800
8803
  }
8801
8804
  this._zone = n, this.loc = e.loc || we.create(), this.invalid = r, this.weekData = null, this.localWeekData = null, this.c = s, this.o = i, this.isLuxonDateTime = !0;
8802
8805
  }
@@ -8963,20 +8966,20 @@ class te {
8963
8966
  const r = Ht(n.zone, Me.defaultZone);
8964
8967
  if (!r.isValid)
8965
8968
  return te.invalid(tr(r));
8966
- const s = we.fromObject(n), i = es(e, ma), { minDaysInFirstWeek: o, startOfWeek: a } = na(i, s), l = Me.now(), u = ue(n.specificOffset) ? r.offset(l) : n.specificOffset, f = !ue(i.ordinal), h = !ue(i.year), p = !ue(i.month) || !ue(i.day), v = h || p, k = i.weekYear || i.weekNumber;
8967
- if ((v || f) && k)
8969
+ const s = we.fromObject(n), i = es(e, ma), { minDaysInFirstWeek: o, startOfWeek: a } = na(i, s), l = Me.now(), u = ue(n.specificOffset) ? r.offset(l) : n.specificOffset, f = !ue(i.ordinal), h = !ue(i.year), p = !ue(i.month) || !ue(i.day), b = h || p, k = i.weekYear || i.weekNumber;
8970
+ if ((b || f) && k)
8968
8971
  throw new In(
8969
8972
  "Can't mix weekYear/weekNumber units with year/month/day or ordinals"
8970
8973
  );
8971
8974
  if (p && f)
8972
8975
  throw new In("Can't mix ordinal dates with month/day");
8973
- const D = k || i.weekday && !v;
8974
- let $, b, T = Lr(l, u);
8975
- D ? ($ = Ig, b = Ng, T = Xr(T, o, a)) : f ? ($ = Lg, b = kg, T = Ms(T)) : ($ = lu, b = au);
8976
+ const D = k || i.weekday && !b;
8977
+ let $, v, T = Lr(l, u);
8978
+ D ? ($ = Ig, v = Ng, T = Xr(T, o, a)) : f ? ($ = Lg, v = kg, T = Ms(T)) : ($ = lu, v = au);
8976
8979
  let C = !1;
8977
- for (const ve of $) {
8978
- const We = i[ve];
8979
- ue(We) ? C ? i[ve] = b[ve] : i[ve] = T[ve] : C = !0;
8980
+ for (const be of $) {
8981
+ const We = i[be];
8982
+ ue(We) ? C ? i[be] = v[be] : i[be] = T[be] : C = !0;
8980
8983
  }
8981
8984
  const w = D ? sm(i, o, a) : f ? im(i) : Ml(i), P = w || Rl(i);
8982
8985
  if (P)
@@ -8987,7 +8990,7 @@ class te {
8987
8990
  o: ie,
8988
8991
  loc: s
8989
8992
  });
8990
- return i.weekday && v && e.weekday !== de.weekday ? te.invalid(
8993
+ return i.weekday && b && e.weekday !== de.weekday ? te.invalid(
8991
8994
  "mismatched weekday",
8992
8995
  `you can't specify both a weekday of ${i.weekday} and a date of ${de.toISO()}`
8993
8996
  ) : de.isValid ? de : te.invalid(de.invalid);
@@ -9116,7 +9119,7 @@ class te {
9116
9119
  static invalid(e, n = null) {
9117
9120
  if (!e)
9118
9121
  throw new Ze("need to specify a reason the DateTime is invalid");
9119
- const r = e instanceof vt ? e : new vt(e, n);
9122
+ const r = e instanceof bt ? e : new bt(e, n);
9120
9123
  if (Me.throwOnInvalid)
9121
9124
  throw new Dh(r);
9122
9125
  return new te({ invalid: r });
@@ -9150,7 +9153,7 @@ class te {
9150
9153
  return nu(Xe.parseFormat(e), we.fromObject(n)).map((s) => s.val).join("");
9151
9154
  }
9152
9155
  static resetCache() {
9153
- nr = void 0, bi.clear();
9156
+ nr = void 0, vi.clear();
9154
9157
  }
9155
9158
  // INFO
9156
9159
  /**
@@ -9448,7 +9451,7 @@ class te {
9448
9451
  getPossibleOffsets() {
9449
9452
  if (!this.isValid || this.isOffsetFixed)
9450
9453
  return [this];
9451
- const e = 864e5, n = 6e4, r = bs(this.c), s = this.zone.offset(r - e), i = this.zone.offset(r + e), o = this.zone.offset(r - s * n), a = this.zone.offset(r - i * n);
9454
+ const e = 864e5, n = 6e4, r = vs(this.c), s = this.zone.offset(r - e), i = this.zone.offset(r + e), o = this.zone.offset(r - s * n), a = this.zone.offset(r - i * n);
9452
9455
  if (o === a)
9453
9456
  return [this];
9454
9457
  const l = r - o * n, u = r - a * n, f = Lr(l, o), h = Lr(u, a);
@@ -9607,8 +9610,8 @@ class te {
9607
9610
  r,
9608
9611
  s
9609
9612
  ) : ue(n.ordinal) ? (h = { ...this.toObject(), ...n }, ue(n.day) && (h.day = Math.min(Qr(h.year, h.month), h.day))) : h = ta({ ...Ms(this.c), ...n });
9610
- const [p, v] = Vr(h, this.o, this.zone);
9611
- return sn(this, { ts: p, o: v });
9613
+ const [p, b] = Vr(h, this.o, this.zone);
9614
+ return sn(this, { ts: p, o: b });
9612
9615
  }
9613
9616
  /**
9614
9617
  * Add a period of time to this DateTime and return the resulting DateTime
@@ -10286,14 +10289,14 @@ class te {
10286
10289
  * @type {Object}
10287
10290
  */
10288
10291
  static get DATETIME_SHORT_WITH_SECONDS() {
10289
- return bl;
10292
+ return vl;
10290
10293
  }
10291
10294
  /**
10292
10295
  * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
10293
10296
  * @type {Object}
10294
10297
  */
10295
10298
  static get DATETIME_MED() {
10296
- return vl;
10299
+ return bl;
10297
10300
  }
10298
10301
  /**
10299
10302
  * {@link DateTime#toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
@@ -10349,10 +10352,13 @@ function Xn(t) {
10349
10352
  `Unknown datetime argument: ${t}, of type ${typeof t}`
10350
10353
  );
10351
10354
  }
10352
- function v1(t) {
10355
+ function T1(t) {
10353
10356
  return (e, n) => {
10354
- let r = t(e), s = t(n);
10355
- return r < s ? -1 : r === s ? 0 : 1;
10357
+ let r = t(e);
10358
+ if (!r)
10359
+ return -1;
10360
+ let s = t(n);
10361
+ return s ? r < s ? -1 : r === s ? 0 : 1 : 1;
10356
10362
  };
10357
10363
  }
10358
10364
  function Us(t, e = 2) {
@@ -10361,28 +10367,37 @@ function Us(t, e = 2) {
10361
10367
  let n = Math.pow(10, e), r = t * n;
10362
10368
  return Math[r < 0 ? "ceil" : "floor"](r) / n;
10363
10369
  }
10364
- function w1(t) {
10370
+ function C1(t) {
10365
10371
  const e = /* @__PURE__ */ new Date();
10366
10372
  return t.getFullYear() === e.getFullYear() && t.getMonth() === e.getMonth() && t.getDate() === e.getDate();
10367
10373
  }
10368
- function S1(t) {
10374
+ function N1(t) {
10369
10375
  const e = new Date(t.getFullYear(), 0, 1), n = Math.floor((t.getTime() - e.getTime()) / (24 * 60 * 60 * 1e3));
10370
10376
  return Math.ceil(n / 7);
10371
10377
  }
10372
10378
  function Mg(t, e) {
10373
10379
  if (t)
10374
- return { minutes: Us(t.minutes, e), hours: Us(t.hours, e), days: Us(t.days, e) };
10380
+ return {
10381
+ minutes: Us(t.minutes, e),
10382
+ hours: Us(t.hours, e),
10383
+ days: Us(t.days, e)
10384
+ };
10375
10385
  }
10376
- function O1(t, e, n = !1) {
10386
+ function k1(t, e, n = !1) {
10377
10387
  let r = "";
10378
10388
  const s = Mg(t, 2);
10379
- return ((s == null ? void 0 : s.days) ?? 0) > 0 && (r += (n ? " " : "") + e("common.duration.days", { days: s == null ? void 0 : s.days }, (s == null ? void 0 : s.days) > 0) + " "), ((s == null ? void 0 : s.hours) ?? 0) > 0 && (r += (n ? " " : "") + e("common.duration.hours", { hours: s == null ? void 0 : s.hours }, (s == null ? void 0 : s.hours) > 0) + " "), ((s == null ? void 0 : s.minutes) ?? 0) !== 0 && (r += (n ? " " : "") + e("common.duration.minutes", { minutes: s == null ? void 0 : s.minutes }, (s == null ? void 0 : s.minutes) > 0) + " "), r;
10389
+ return s ? (s.days && s.days > 0 && (r += (n ? " " : "") + e("common.duration.days", { days: s.days }, s.days > 0) + " "), s.hours && s.hours > 0 && (r += (n ? " " : "") + e("common.duration.hours", { hours: s.hours }, s.hours > 0) + " "), s.minutes && s.minutes !== 0 && (r += (n ? " " : "") + e("common.duration.minutes", { minutes: s.minutes }, s.minutes > 0) + " "), r) : "";
10380
10390
  }
10381
10391
  function Rg(t, e, n, r) {
10382
10392
  let s = "";
10383
10393
  if (!t)
10384
10394
  return s;
10385
- if (s = t.toLocaleString({ year: "numeric", weekday: "long", month: "long", day: "2-digit" }, { locale: dt(e) }) + " - " + t.toLocaleString(te.TIME_SIMPLE, { locale: dt(e) }), !n)
10395
+ if (s = t.toLocaleString({
10396
+ year: "numeric",
10397
+ weekday: "long",
10398
+ month: "long",
10399
+ day: "2-digit"
10400
+ }, { locale: dt(e) }) + " - " + t.toLocaleString(te.TIME_SIMPLE, { locale: dt(e) }), !n)
10386
10401
  return On(s);
10387
10402
  if (n.hasSame(t, "day"))
10388
10403
  return On(s) + " - " + n.toLocaleString(te.TIME_SIMPLE, { locale: dt(e) });
@@ -10392,13 +10407,13 @@ function Rg(t, e, n, r) {
10392
10407
  ) + " - " + n.toLocaleString(te.TIME_SIMPLE, { locale: dt(e) });
10393
10408
  return r ? r("common.date.from-to", { startDate: On(s), endDate: On(i) }) : On(s) + " - " + On(i);
10394
10409
  }
10395
- function T1(t, e, n, r) {
10410
+ function I1(t, e, n, r) {
10396
10411
  return t ? Rg(t, n, e ? t.plus({ minutes: e }) : void 0, r) : "";
10397
10412
  }
10398
- function C1(t, e) {
10413
+ function L1(t, e) {
10399
10414
  return !t || !e ? {} : pe.fromMillis(e.getTime() - t.getTime()).shiftTo("days", "hours", "minutes").toObject();
10400
10415
  }
10401
- class N1 {
10416
+ class A1 {
10402
10417
  constructor(e) {
10403
10418
  rt(this, "internalState");
10404
10419
  rt(this, "listeners", []);
@@ -10418,10 +10433,10 @@ class N1 {
10418
10433
  n > -1 && this.listeners.splice(n, 1);
10419
10434
  }
10420
10435
  }
10421
- function k1(t, e) {
10436
+ function D1(t, e) {
10422
10437
  return t ? t.charAt(0).toUpperCase() + t.slice(1).toLowerCase() + (e || "") : "";
10423
10438
  }
10424
- function I1(t, e, n = !0, r = !0) {
10439
+ function M1(t, e, n = !0, r = !0) {
10425
10440
  return e ? !!t.find((s) => xg(s, e, n, r)) : !0;
10426
10441
  }
10427
10442
  function xg(t, e, n = !0, r = !0) {
@@ -10441,12 +10456,12 @@ function Pg(t, e = { escapeAccent: !0, escapeCase: !0 }) {
10441
10456
  return s < i ? -1 : 1;
10442
10457
  };
10443
10458
  }
10444
- function L1(t, e = !0) {
10459
+ function R1(t, e = !0) {
10445
10460
  const n = /(https?:\/\/[^\s]+)/g;
10446
10461
  return t.replace(n, (r) => '<a class="az-break-all az-link' + (e ? "-small" : "") + '" href="' + r + '" target="_blank">' + r + "</a>");
10447
10462
  }
10448
10463
  var $g = /* @__PURE__ */ ((t) => (t[t.LIFE_CYCLE = 0] = "LIFE_CYCLE", t[t.CUSTOM = 1] = "CUSTOM", t[t.COMPLETED = 2] = "COMPLETED", t[t.END_OF = 3] = "END_OF", t[t.UNKNOWN = 4] = "UNKNOWN", t))($g || {});
10449
- const A1 = (t, e) => t.type === e.type ? Pg((n) => n.label)(t, e) : t.type.valueOf() - e.type.valueOf();
10464
+ const x1 = (t, e) => t.type === e.type ? Pg((n) => n.label)(t, e) : t.type.valueOf() - e.type.valueOf();
10450
10465
  class uu {
10451
10466
  constructor(e, n, r = !1, s) {
10452
10467
  rt(this, "value");
@@ -10454,29 +10469,29 @@ class uu {
10454
10469
  rt(this, "isCustom");
10455
10470
  rt(this, "icon");
10456
10471
  rt(this, "type");
10457
- this.value = e, this.label = n, this.isCustom = r, this.populate(s);
10472
+ this.value = e, this.label = n, this.isCustom = r, this.type = 0, this.populate(s);
10458
10473
  }
10459
10474
  populate(e) {
10460
10475
  this.initType(), this.icon = { value: "fa fa-2xs fa-circle", background: this.getBackgroundStatusColor(e) };
10461
10476
  }
10462
10477
  initType() {
10463
10478
  switch (this.value) {
10464
- case be.PENDING:
10465
- case be.PENDING_PAYMENT:
10466
- case be.IN_PROGRESS:
10467
- case be.ACCEPTED:
10468
- case be.PERSONAL:
10479
+ case ve.PENDING:
10480
+ case ve.PENDING_PAYMENT:
10481
+ case ve.IN_PROGRESS:
10482
+ case ve.ACCEPTED:
10483
+ case ve.PERSONAL:
10469
10484
  this.type = 0;
10470
10485
  break;
10471
- case be.COMPLETED:
10486
+ case ve.COMPLETED:
10472
10487
  this.type = 2;
10473
10488
  break;
10474
- case be.NO_SHOW:
10475
- case be.DECLINED:
10476
- case be.CANCELLED:
10489
+ case ve.NO_SHOW:
10490
+ case ve.DECLINED:
10491
+ case ve.CANCELLED:
10477
10492
  this.type = 3;
10478
10493
  break;
10479
- case be.UNDEFINED:
10494
+ case ve.UNDEFINED:
10480
10495
  default:
10481
10496
  this.type = this.isCustom ? 1 : 4;
10482
10497
  break;
@@ -10497,44 +10512,42 @@ class uu {
10497
10512
  }
10498
10513
  }
10499
10514
  function Bs(t, e, n, r) {
10500
- for (const s of e) {
10501
- const i = s.native ?? !1;
10502
- (n !== s.id || r) && !i && t.push(new uu(s.id, s.name, !0, s.color));
10503
- }
10515
+ for (const s of e)
10516
+ (s.native ?? !1) || !s.id || !s.name || (n !== (s == null ? void 0 : s.id) || r) && t.push(new uu(s.id, s.name, !0, s.color));
10504
10517
  }
10505
10518
  function Qe(t, e, n) {
10506
10519
  e.push(new uu(n, t(`agenda.appointment.details.status.${n}`)));
10507
10520
  }
10508
- function D1(t, e, n, r = { cancelled: !0, current: !1 }) {
10521
+ function F1(t, e, n, r = { cancelled: !0, current: !1 }) {
10509
10522
  const s = [], i = e.find((a) => a.id === n.customStatusId), o = (i == null ? void 0 : i.type) === "DONE";
10510
10523
  switch (n.status) {
10511
- case be.PENDING:
10512
- case be.PENDING_PAYMENT:
10513
- Qe(t, s, be.ACCEPTED), Qe(t, s, be.DECLINED), r.current && Qe(t, s, n.status);
10524
+ case ve.PENDING:
10525
+ case ve.PENDING_PAYMENT:
10526
+ Qe(t, s, ve.ACCEPTED), Qe(t, s, ve.DECLINED), r.current && Qe(t, s, n.status);
10514
10527
  break;
10515
- case be.IN_PROGRESS:
10516
- r.current && Qe(t, s, n.status), o || (Qe(t, s, be.COMPLETED), Qe(t, s, be.NO_SHOW), r.cancelled && Qe(t, s, be.CANCELLED)), Bs(s, e, n.customStatusId);
10528
+ case ve.IN_PROGRESS:
10529
+ r.current && Qe(t, s, n.status), o || (Qe(t, s, ve.COMPLETED), Qe(t, s, ve.NO_SHOW), r.cancelled && Qe(t, s, ve.CANCELLED)), Bs(s, e, n.customStatusId);
10517
10530
  break;
10518
- case be.COMPLETED:
10519
- case be.NO_SHOW:
10520
- case be.CUSTOM:
10521
- r.current && Qe(t, s, n.status), r.cancelled && Qe(t, s, be.CANCELLED), Bs(s, e, n.customStatusId);
10531
+ case ve.COMPLETED:
10532
+ case ve.NO_SHOW:
10533
+ case ve.CUSTOM:
10534
+ r.current && Qe(t, s, n.status), r.cancelled && Qe(t, s, ve.CANCELLED), Bs(s, e, n.customStatusId);
10522
10535
  break;
10523
- case be.PERSONAL:
10524
- r.cancelled && Qe(t, s, be.PERSONAL_CANCELLED);
10536
+ case ve.PERSONAL:
10537
+ r.cancelled && Qe(t, s, ve.PERSONAL_CANCELLED);
10525
10538
  break;
10526
- case be.ACCEPTED:
10527
- case be.UNDEFINED:
10539
+ case ve.ACCEPTED:
10540
+ case ve.UNDEFINED:
10528
10541
  default:
10529
- if (n.status === be.UNDEFINED && !n.customStatusId)
10542
+ if (n.status === ve.UNDEFINED && !n.customStatusId)
10530
10543
  break;
10531
- r.current && !n.customStatusId && Qe(t, s, n.status), o || (n.endDate && n.endDate >= /* @__PURE__ */ new Date() && Qe(t, s, be.IN_PROGRESS), Qe(t, s, be.COMPLETED), Qe(t, s, be.NO_SHOW)), r.cancelled && Qe(t, s, be.CANCELLED), Bs(s, e, n.customStatusId, r.current);
10544
+ r.current && !n.customStatusId && Qe(t, s, n.status), o || (n.endDate && n.endDate >= /* @__PURE__ */ new Date() && Qe(t, s, ve.IN_PROGRESS), Qe(t, s, ve.COMPLETED), Qe(t, s, ve.NO_SHOW)), r.cancelled && Qe(t, s, ve.CANCELLED), Bs(s, e, n.customStatusId, r.current);
10532
10545
  break;
10533
10546
  }
10534
10547
  return s;
10535
10548
  }
10536
10549
  const Vs = {};
10537
- function M1(t, e = "az-primary", n = !1) {
10550
+ function P1(t, e = "az-primary", n = !1) {
10538
10551
  if (Vs[t])
10539
10552
  return Vs[t];
10540
10553
  let r = "ffffff", s = "000000", i = t.substr(1);
@@ -10556,8 +10569,8 @@ function M1(t, e = "az-primary", n = !1) {
10556
10569
  });
10557
10570
  const l = { id: 500, key: `--${e}-500`, code: t, text: ho(t) };
10558
10571
  if (a.push(l), n) {
10559
- const u = a.find((k) => k.key === `--${e}-50`) ?? l, f = a.find((k) => k.key === `--${e}-200`) ?? l, h = a.find((k) => k.key === `--${e}-600`) ?? l, p = a.find((k) => k.key === `--${e}-700`) ?? l, v = a.find((k) => k.key === `--${e}-800`) ?? l;
10560
- a.push({ ...l, key: "--az-background-brand-primary" }), a.push({ ...u, key: "--az-background-brand-secondary" }), a.push({ ...u, key: "--az-background-information" }), a.push({ ...u, key: "--az-background-information" }), a.push({ ...l, key: "--az-content-action" }), a.push({ ...h, key: "--az-content-active" }), a.push({ ...l, key: "--az-content-information" }), a.push({ ...l, key: "--az-border-active" }), a.push({ ...l, key: "--az-shadow-active" }), a.push({ ...l, key: "--az-border-information" }), a.push({ ...p, key: "--az-hover-brand-primary" }), a.push({ ...v, key: "--az-active-brand-primary" }), a.push({ ...f, key: "--az-active-brand-secondary" });
10572
+ const u = a.find((k) => k.key === `--${e}-50`) ?? l, f = a.find((k) => k.key === `--${e}-200`) ?? l, h = a.find((k) => k.key === `--${e}-600`) ?? l, p = a.find((k) => k.key === `--${e}-700`) ?? l, b = a.find((k) => k.key === `--${e}-800`) ?? l;
10573
+ a.push({ ...l, key: "--az-background-brand-primary" }), a.push({ ...u, key: "--az-background-brand-secondary" }), a.push({ ...u, key: "--az-background-information" }), a.push({ ...u, key: "--az-background-information" }), a.push({ ...l, key: "--az-content-action" }), a.push({ ...h, key: "--az-content-active" }), a.push({ ...l, key: "--az-content-information" }), a.push({ ...l, key: "--az-border-active" }), a.push({ ...l, key: "--az-shadow-active" }), a.push({ ...l, key: "--az-border-information" }), a.push({ ...p, key: "--az-hover-brand-primary" }), a.push({ ...b, key: "--az-active-brand-primary" }), a.push({ ...f, key: "--az-active-brand-secondary" });
10561
10574
  }
10562
10575
  return Vs[t] = a, a;
10563
10576
  }
@@ -10581,13 +10594,13 @@ function Ug(t, e, n) {
10581
10594
  function Bg(t, e) {
10582
10595
  return e && t in e && e[t];
10583
10596
  }
10584
- function R1(t, e, n) {
10597
+ function $1(t, e, n) {
10585
10598
  return Bg(t, n) ? n[t] : e;
10586
10599
  }
10587
- function x1(t, e, n) {
10600
+ function U1(t, e, n) {
10588
10601
  return t ? t instanceof Ac && (e != null && e.public) ? e.public(t) ?? n : t instanceof Dc && (e != null && e.secured) ? e.secured(t) ?? n : n : n;
10589
10602
  }
10590
- const F1 = [
10603
+ const B1 = [
10591
10604
  { label: "English", value: "en" },
10592
10605
  { label: "Français", value: "fr" },
10593
10606
  { label: "Español", value: "es" },
@@ -10597,11 +10610,11 @@ const F1 = [
10597
10610
  { label: "Italiano", value: "it" }
10598
10611
  ], Vg = {
10599
10612
  loading: wc,
10600
- error: vc,
10613
+ error: bc,
10601
10614
  delay: 600,
10602
10615
  timeout: 1e4
10603
10616
  };
10604
- function P1(t, e = Vg) {
10617
+ function V1(t, e = Vg) {
10605
10618
  return mc({
10606
10619
  loader: t,
10607
10620
  errorComponent: e.error,
@@ -10610,7 +10623,7 @@ function P1(t, e = Vg) {
10610
10623
  timeout: e.timeout
10611
10624
  });
10612
10625
  }
10613
- async function $1(t, e = 1500) {
10626
+ async function W1(t, e = 1500) {
10614
10627
  const n = Date.now();
10615
10628
  try {
10616
10629
  const r = await t();
@@ -10626,13 +10639,13 @@ async function Wg(t, e = 1500) {
10626
10639
  }, e);
10627
10640
  }) : t;
10628
10641
  }
10629
- function U1(t, e, n) {
10642
+ function z1(t, e, n) {
10630
10643
  return `${t}/${dt(e)}/widget/${n}/places`;
10631
10644
  }
10632
- function B1(t, e, n, r, s) {
10645
+ function q1(t, e, n, r, s) {
10633
10646
  return `${t}/${dt(e)}/widget/${n}/appointment/${r}?s=${s}`;
10634
10647
  }
10635
- function vi(t, e, n) {
10648
+ function bi(t, e, n) {
10636
10649
  return `${t}/${dt(e)}/widget/${n}`;
10637
10650
  }
10638
10651
  function zg(t, e, n, r = "", s) {
@@ -10640,31 +10653,31 @@ function zg(t, e, n, r = "", s) {
10640
10653
  let i = 0, o = "?";
10641
10654
  for (let a of s)
10642
10655
  o += (i > 0 ? "&" : "") + `company=${a}`, i++;
10643
- return `${vi(t, e, n)}/e/${o}`;
10656
+ return `${bi(t, e, n)}/e/${o}`;
10644
10657
  } else
10645
- return `${vi(t, e, n)}/e/${r}`;
10658
+ return `${bi(t, e, n)}/e/${r}`;
10646
10659
  }
10647
- function V1(t, e, n, r, s) {
10660
+ function H1(t, e, n, r, s) {
10648
10661
  return `${zg(t, e, n, r)}/${s}`;
10649
10662
  }
10650
- function W1(t, e, n) {
10651
- return `${vi(t, e, n)}/widgetError}`;
10663
+ function G1(t, e, n) {
10664
+ return `${bi(t, e, n)}/widgetError}`;
10652
10665
  }
10653
- function z1(t) {
10666
+ function Y1(t) {
10654
10667
  if (t.isAuthenticated())
10655
10668
  return ys().organisation.email ?? void 0;
10656
10669
  }
10657
- function q1(t, e, n, r, s, i, o) {
10670
+ function j1(t, e, n, r, s, i, o) {
10658
10671
  return qg({ companyId: t, staffId: e, staffGroupId: n, serviceId: r, serviceGroupId: s, widgetBaseURL: i, locale: o });
10659
10672
  }
10660
10673
  function qg(t) {
10661
10674
  let e = `/web/widget/?c=${t.companyId}`;
10662
10675
  return t.widgetBaseURL && (e = `${t.widgetBaseURL}/web/widget/?c=${t.companyId}`), t.query && (e += `&${t.query}`), t.staffId && (e += `&staff=${t.staffId}`), t.staffGroupId && (e += `&staffGroup=${t.staffGroupId}`), t.serviceId && (e += `&service=${t.serviceId}`), t.serviceGroupId && (e += `&serviceGroup=${t.serviceGroupId}`), t.locale && (e += `&lang=${t.locale}`), t.date && (e += `&date=${t.date}`), t.time && (e += `&time=${t.time}`), t.schedulingMode && (e += `&schedulingMode=${t.schedulingMode}`), t.accountId && (e += `&accountId=${t.accountId}`), t.widgetType && (e += `&twt=${t.widgetType}`), e += "&cs=false", e;
10663
10676
  }
10664
- function H1(t, e, n) {
10677
+ function Z1(t, e, n) {
10665
10678
  return `${t}/widget/${e}/forms/${n}`;
10666
10679
  }
10667
- function G1(t, e, n) {
10680
+ function K1(t, e, n) {
10668
10681
  return `${t}/widget/${e}/queues/${n}`;
10669
10682
  }
10670
10683
  function Hg(t) {
@@ -10673,13 +10686,13 @@ function Hg(t) {
10673
10686
  return r !== 0 ? r : te.fromFormat(e.end, "HH:mm").toMillis() - te.fromFormat(n.end, "HH:mm").toMillis();
10674
10687
  }), t;
10675
10688
  }
10676
- function Y1(t) {
10689
+ function J1(t) {
10677
10690
  const e = [];
10678
10691
  return t.forEach((n) => {
10679
10692
  e.push(...Zg(n));
10680
10693
  }), e;
10681
10694
  }
10682
- function j1(t, e) {
10695
+ function X1(t, e) {
10683
10696
  const n = [];
10684
10697
  return t.forEach((r) => {
10685
10698
  const s = Gg(r.hours);
@@ -10787,7 +10800,7 @@ function Jg(t) {
10787
10800
  function Xg(t) {
10788
10801
  return typeof t == "number";
10789
10802
  }
10790
- const br = 1e3, En = 60 * br, fu = 60 * En, Qg = 24 * fu, ep = 365 * Qg;
10803
+ const vr = 1e3, En = 60 * vr, fu = 60 * En, Qg = 24 * fu, ep = 365 * Qg;
10791
10804
  function dr() {
10792
10805
  return (/* @__PURE__ */ new Date()).getTime();
10793
10806
  }
@@ -10882,7 +10895,7 @@ function cp(t) {
10882
10895
  function wi(...t) {
10883
10896
  pu && Ve.error("[MONITOR]", ...t);
10884
10897
  }
10885
- function vr(t, e) {
10898
+ function br(t, e) {
10886
10899
  return Un(en(), "setTimeout")(Se(t), e);
10887
10900
  }
10888
10901
  function yu(t) {
@@ -10915,7 +10928,7 @@ function Eu(...t) {
10915
10928
  return () => n.forEach((r) => r.unsubscribe());
10916
10929
  });
10917
10930
  }
10918
- function bu(t, e, n) {
10931
+ function vu(t, e, n) {
10919
10932
  let r = !1, s, i;
10920
10933
  return {
10921
10934
  throttled: (...o) => {
@@ -10923,7 +10936,7 @@ function bu(t, e, n) {
10923
10936
  s = o;
10924
10937
  return;
10925
10938
  }
10926
- t(...o), r = !0, i = vr(() => {
10939
+ t(...o), r = !0, i = br(() => {
10927
10940
  s && t(...s), r = !1, s = void 0;
10928
10941
  }, e);
10929
10942
  },
@@ -10934,11 +10947,11 @@ function bu(t, e, n) {
10934
10947
  }
10935
10948
  function Yt() {
10936
10949
  }
10937
- function bn(t) {
10950
+ function vn(t) {
10938
10951
  return t ? (
10939
10952
  // eslint-disable-next-line no-bitwise
10940
10953
  (parseInt(t, 10) ^ Math.random() * 16 >> parseInt(t, 10) / 4).toString(16)
10941
- ) : `10000000-1000-4000-8000-${1e11}`.replace(/[018]/g, bn);
10954
+ ) : `10000000-1000-4000-8000-${1e11}`.replace(/[018]/g, vn);
10942
10955
  }
10943
10956
  const ss = /([\w-]+)\s*=\s*([^;]+)/g;
10944
10957
  function dp(t, e) {
@@ -10996,17 +11009,17 @@ let zs;
10996
11009
  function fn(t) {
10997
11010
  return zs || (zs = fp(document.cookie)), zs.get(t);
10998
11011
  }
10999
- function vu(t, e) {
11012
+ function bu(t, e) {
11000
11013
  wr(t, "", 0, e);
11001
11014
  }
11002
11015
  function yp(t) {
11003
11016
  if (document.cookie === void 0 || document.cookie === null)
11004
11017
  return !1;
11005
11018
  try {
11006
- const e = `dd_cookie_test_${bn()}`, n = "test";
11019
+ const e = `dd_cookie_test_${vn()}`, n = "test";
11007
11020
  wr(e, n, En, t);
11008
11021
  const r = Xi(e) === n;
11009
- return vu(e, t), r;
11022
+ return bu(e, t), r;
11010
11023
  } catch (e) {
11011
11024
  return Ve.error(e), !1;
11012
11025
  }
@@ -11014,11 +11027,11 @@ function yp(t) {
11014
11027
  let qs;
11015
11028
  function _p() {
11016
11029
  if (qs === void 0) {
11017
- const t = `dd_site_test_${bn()}`, e = "test", n = window.location.hostname.split(".");
11030
+ const t = `dd_site_test_${vn()}`, e = "test", n = window.location.hostname.split(".");
11018
11031
  let r = n.pop();
11019
11032
  for (; n.length && !Xi(t); )
11020
- r = `${n.pop()}.${r}`, wr(t, e, br, { domain: r });
11021
- vu(t, { domain: r }), qs = r;
11033
+ r = `${n.pop()}.${r}`, wr(t, e, vr, { domain: r });
11034
+ bu(t, { domain: r }), qs = r;
11022
11035
  }
11023
11036
  return qs;
11024
11037
  }
@@ -11038,11 +11051,11 @@ function _a(t) {
11038
11051
  r in e && (e[r] = String(e[r]));
11039
11052
  }), e;
11040
11053
  }
11041
- function bp(t) {
11054
+ function vp(t) {
11042
11055
  const e = Qi(t) === "object";
11043
11056
  return e || Ve.error("Unsupported user:", t), e;
11044
11057
  }
11045
- function vp() {
11058
+ function bp() {
11046
11059
  return Math.floor(Math.random() * Math.pow(36, 10)).toString(36).padStart(10, "0");
11047
11060
  }
11048
11061
  const eo = 4 * fu, wu = 15 * En, wp = ep, hr = {
@@ -11057,7 +11070,7 @@ function ln(t, e) {
11057
11070
  const n = {
11058
11071
  isExpired: Op
11059
11072
  };
11060
- return e.trackAnonymousUser && (t != null && t.anonymousId ? n.anonymousId = t == null ? void 0 : t.anonymousId : n.anonymousId = vp()), n;
11073
+ return e.trackAnonymousUser && (t != null && t.anonymousId ? n.anonymousId = t == null ? void 0 : t.anonymousId : n.anonymousId = bp()), n;
11061
11074
  }
11062
11075
  function zr(t) {
11063
11076
  return Ki(t);
@@ -11129,9 +11142,9 @@ function Fp(t) {
11129
11142
  return e.secure = !!t.useSecureSessionCookie || !!t.usePartitionedCrossSiteSessionCookie, e.crossSite = !!t.usePartitionedCrossSiteSessionCookie, e.partitioned = !!t.usePartitionedCrossSiteSessionCookie, t.trackSessionAcrossSubdomains && (e.domain = _p()), e;
11130
11143
  }
11131
11144
  const Pp = "_dd_test_";
11132
- function ba() {
11145
+ function va() {
11133
11146
  try {
11134
- const t = bn(), e = `${Pp}${t}`;
11147
+ const t = vn(), e = `${Pp}${t}`;
11135
11148
  localStorage.setItem(e, t);
11136
11149
  const n = localStorage.getItem(e);
11137
11150
  return localStorage.removeItem(e), t === n ? { type: hr.LOCAL_STORAGE } : void 0;
@@ -11162,10 +11175,10 @@ let qr;
11162
11175
  function un(t, e, n = 0) {
11163
11176
  var r;
11164
11177
  const { isLockEnabled: s, persistSession: i, expireSession: o } = e, a = (p) => i({ ...p, lock: u }), l = () => {
11165
- const p = e.retrieveSession(), v = p.lock;
11178
+ const p = e.retrieveSession(), b = p.lock;
11166
11179
  return p.lock && delete p.lock, {
11167
11180
  session: p,
11168
- lock: v
11181
+ lock: b
11169
11182
  };
11170
11183
  };
11171
11184
  if (qr || (qr = t), t !== qr) {
@@ -11173,7 +11186,7 @@ function un(t, e, n = 0) {
11173
11186
  return;
11174
11187
  }
11175
11188
  if (s && n >= Wp) {
11176
- va(e);
11189
+ ba(e);
11177
11190
  return;
11178
11191
  }
11179
11192
  let u, f = l();
@@ -11182,7 +11195,7 @@ function un(t, e, n = 0) {
11182
11195
  Mr(t, e, n);
11183
11196
  return;
11184
11197
  }
11185
- if (u = bn(), a(f.session), f = l(), f.lock !== u) {
11198
+ if (u = vn(), a(f.session), f = l(), f.lock !== u) {
11186
11199
  Mr(t, e, n);
11187
11200
  return;
11188
11201
  }
@@ -11199,28 +11212,28 @@ function un(t, e, n = 0) {
11199
11212
  }
11200
11213
  i(f.session), h = f.session;
11201
11214
  }
11202
- (r = t.after) === null || r === void 0 || r.call(t, h || f.session), va(e);
11215
+ (r = t.after) === null || r === void 0 || r.call(t, h || f.session), ba(e);
11203
11216
  }
11204
11217
  function Mr(t, e, n) {
11205
- vr(() => {
11218
+ br(() => {
11206
11219
  un(t, e, n + 1);
11207
11220
  }, Vp);
11208
11221
  }
11209
- function va(t) {
11222
+ function ba(t) {
11210
11223
  qr = void 0;
11211
11224
  const e = ku.shift();
11212
11225
  e && un(e, t);
11213
11226
  }
11214
- const wa = br;
11227
+ const wa = vr;
11215
11228
  function zp(t) {
11216
11229
  switch (t.sessionPersistence) {
11217
11230
  case hr.COOKIE:
11218
11231
  return Ea(t);
11219
11232
  case hr.LOCAL_STORAGE:
11220
- return ba();
11233
+ return va();
11221
11234
  case void 0: {
11222
11235
  let e = Ea(t);
11223
- return !e && t.allowFallbackToLocalStorage && (e = ba()), e;
11236
+ return !e && t.allowFallbackToLocalStorage && (e = va()), e;
11224
11237
  }
11225
11238
  default:
11226
11239
  Ve.error(`Invalid session persistence '${String(t.sessionPersistence)}'`);
@@ -11230,20 +11243,20 @@ function qp(t, e, n, r) {
11230
11243
  const s = new Ye(), i = new Ye(), o = new Ye(), a = t.type === hr.COOKIE ? Dp(e, t.cookieOptions) : $p(e), { expireSession: l } = a, u = Ji(k, wa);
11231
11244
  let f;
11232
11245
  $();
11233
- const { throttled: h, cancel: p } = bu(() => {
11246
+ const { throttled: h, cancel: p } = vu(() => {
11234
11247
  un({
11235
11248
  process: (N) => {
11236
11249
  if (zr(N))
11237
11250
  return;
11238
11251
  const ie = D(N);
11239
- return b(ie), ie;
11252
+ return v(ie), ie;
11240
11253
  },
11241
11254
  after: (N) => {
11242
11255
  Ou(N) && !T() && P(N), f = N;
11243
11256
  }
11244
11257
  }, a);
11245
11258
  }, wa);
11246
- function v() {
11259
+ function b() {
11247
11260
  un({
11248
11261
  process: (N) => T() ? D(N) : void 0
11249
11262
  }, a);
@@ -11268,11 +11281,11 @@ function qp(t, e, n, r) {
11268
11281
  }
11269
11282
  }, a);
11270
11283
  }
11271
- function b(N) {
11284
+ function v(N) {
11272
11285
  if (zr(N))
11273
11286
  return !1;
11274
11287
  const { trackingType: ie, isTracked: de } = r(N[n]);
11275
- N[n] = ie, delete N.isExpired, de && !N.id && (N.id = bn(), N.created = String(dr()));
11288
+ N[n] = ie, delete N.isExpired, de && !N.id && (N.id = vn(), N.created = String(dr()));
11276
11289
  }
11277
11290
  function T() {
11278
11291
  return f[n] !== void 0;
@@ -11294,7 +11307,7 @@ function qp(t, e, n, r) {
11294
11307
  }
11295
11308
  return {
11296
11309
  expandOrRenewSession: h,
11297
- expandSession: v,
11310
+ expandSession: b,
11298
11311
  getSession: () => f,
11299
11312
  renewObservable: s,
11300
11313
  expireObservable: i,
@@ -11328,7 +11341,7 @@ function Hp(t) {
11328
11341
  observable: e
11329
11342
  };
11330
11343
  }
11331
- function vn(t, e, n) {
11344
+ function bn(t, e, n) {
11332
11345
  if (typeof t != "object" || t === null)
11333
11346
  return JSON.stringify(t);
11334
11347
  const r = Ln(Object.prototype), s = Ln(Array.prototype), i = Ln(Object.getPrototypeOf(t)), o = Ln(t);
@@ -11355,7 +11368,7 @@ function Gp(t, e) {
11355
11368
  try {
11356
11369
  return e !== void 0 ? new n(t, e) : new n(t);
11357
11370
  } catch (i) {
11358
- throw new Error(`Failed to construct URL: ${String(i)} ${vn({ url: t, base: e })}`);
11371
+ throw new Error(`Failed to construct URL: ${String(i)} ${bn({ url: t, base: e })}`);
11359
11372
  }
11360
11373
  if (e === void 0 && !/:/.test(t))
11361
11374
  throw new Error(`Invalid URL: '${t}'`);
@@ -11422,7 +11435,7 @@ function ty({ clientToken: t, internalAnalyticsSubdomain: e }, n, r, s, { retry:
11422
11435
  `dd-api-key=${t}`,
11423
11436
  `dd-evp-origin-version=${encodeURIComponent("6.0.0")}`,
11424
11437
  "dd-evp-origin=browser",
11425
- `dd-request-id=${bn()}`
11438
+ `dd-request-id=${vn()}`
11426
11439
  ];
11427
11440
  return o && l.push(`dd-evp-encoding=${o}`), n === "rum" && l.push(`batch_time=${Xt()}`), e && l.reverse(), l.join("&");
11428
11441
  }
@@ -11522,7 +11535,7 @@ function dy(t) {
11522
11535
  * flush automatically, aim to be lower than ALB connection timeout
11523
11536
  * to maximize connection reuse.
11524
11537
  */
11525
- flushTimeout: 30 * br,
11538
+ flushTimeout: 30 * vr,
11526
11539
  /**
11527
11540
  * Logs intake limit
11528
11541
  */
@@ -11575,7 +11588,7 @@ function Pt(t) {
11575
11588
  const r = String(t);
11576
11589
  return n && n.startsWith(r) && (n = n.slice(r.length)), n && n.split(`
11577
11590
  `).forEach((s) => {
11578
- const i = _y(s) || by(s) || wy(s) || Ty(s);
11591
+ const i = _y(s) || vy(s) || wy(s) || Ty(s);
11579
11592
  i && (!i.func && i.line && (i.func = Sr), e.push(i));
11580
11593
  }), {
11581
11594
  message: Gs(t, "message"),
@@ -11598,7 +11611,7 @@ function _y(t) {
11598
11611
  };
11599
11612
  }
11600
11613
  const Ey = new RegExp(`^\\s*at ?${Lu}${Bn}?${Bn}??\\s*$`, "i");
11601
- function by(t) {
11614
+ function vy(t) {
11602
11615
  const e = Ey.exec(t);
11603
11616
  if (e)
11604
11617
  return {
@@ -11609,9 +11622,9 @@ function by(t) {
11609
11622
  url: e[1]
11610
11623
  };
11611
11624
  }
11612
- const vy = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
11625
+ const by = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
11613
11626
  function wy(t) {
11614
- const e = vy.exec(t);
11627
+ const e = by.exec(t);
11615
11628
  if (e)
11616
11629
  return {
11617
11630
  args: [],
@@ -11804,7 +11817,7 @@ function Mu({ stackTrace: t, originalError: e, handlingStack: n, startClocks: r,
11804
11817
  };
11805
11818
  }
11806
11819
  function xy(t, e, n, r) {
11807
- return t != null && t.message && (t != null && t.name) ? t.message : e ? "Empty message" : `${n} ${vn(xt(r))}`;
11820
+ return t != null && t.message && (t != null && t.name) ? t.message : e ? "Empty message" : `${n} ${bn(xt(r))}`;
11808
11821
  }
11809
11822
  function Fy(t, e) {
11810
11823
  return e === void 0 ? !1 : t ? !0 : e.stack.length > 0 && (e.stack.length > 1 || e.stack[0].url !== void 0);
@@ -11907,7 +11920,7 @@ function so(t, e, n, r, { once: s, capture: i, passive: o } = {}) {
11907
11920
  n.forEach((p) => f.call(e, p, a, l));
11908
11921
  function h() {
11909
11922
  const p = Un(u, "removeEventListener");
11910
- n.forEach((v) => p.call(e, v, a, l));
11923
+ n.forEach((b) => p.call(e, b, a, l));
11911
11924
  }
11912
11925
  return {
11913
11926
  stop: h
@@ -12105,7 +12118,7 @@ function e0(t, e) {
12105
12118
  [mn.usage]: i && Wr(e.telemetryUsageSampleRate)
12106
12119
  }, a = t0();
12107
12120
  jn = (u) => {
12108
- const f = vn(u);
12121
+ const f = bn(u);
12109
12122
  if (o[u.type] && s.size < e.maxTelemetryEventsPerPage && !s.has(f)) {
12110
12123
  const h = l(t, u, a);
12111
12124
  r.notify(h), Uu("telemetry", h), s.add(f);
@@ -12192,7 +12205,7 @@ function o0(t) {
12192
12205
  error: {
12193
12206
  stack: Du
12194
12207
  },
12195
- message: `Uncaught ${vn(t)}`
12208
+ message: `Uncaught ${bn(t)}`
12196
12209
  };
12197
12210
  }
12198
12211
  function a0(t) {
@@ -12208,24 +12221,24 @@ function u0({ expireDelay: t, maxEntries: e }) {
12208
12221
  n.pop();
12209
12222
  }
12210
12223
  function i(h, p) {
12211
- const v = {
12224
+ const b = {
12212
12225
  value: h,
12213
12226
  startTime: p,
12214
12227
  endTime: Pr,
12215
12228
  remove: () => {
12216
- Vu(n, v);
12229
+ Vu(n, b);
12217
12230
  },
12218
12231
  close: (k) => {
12219
- v.endTime = k;
12232
+ b.endTime = k;
12220
12233
  }
12221
12234
  };
12222
- return e && n.length >= e && n.pop(), n.unshift(v), v;
12235
+ return e && n.length >= e && n.pop(), n.unshift(b), b;
12223
12236
  }
12224
12237
  function o(h = Pr, p = { returnInactive: !1 }) {
12225
- for (const v of n)
12226
- if (v.startTime <= h) {
12227
- if (p.returnInactive || h <= v.endTime)
12228
- return v.value;
12238
+ for (const b of n)
12239
+ if (b.startTime <= h) {
12240
+ if (p.returnInactive || h <= b.endTime)
12241
+ return b.value;
12229
12242
  break;
12230
12243
  }
12231
12244
  }
@@ -12234,8 +12247,8 @@ function u0({ expireDelay: t, maxEntries: e }) {
12234
12247
  p && p.endTime === Pr && p.close(h);
12235
12248
  }
12236
12249
  function l(h = Pr, p = 0) {
12237
- const v = rp(h, p);
12238
- return n.filter((k) => k.startTime <= v && h <= k.endTime).map((k) => k.value);
12250
+ const b = rp(h, p);
12251
+ return n.filter((k) => k.startTime <= b && h <= k.endTime).map((k) => k.value);
12239
12252
  }
12240
12253
  function u() {
12241
12254
  n = [];
@@ -12304,7 +12317,7 @@ function p0(t) {
12304
12317
  return;
12305
12318
  }
12306
12319
  }
12307
- const y0 = 80 * Rt, _0 = 32, Yu = 3 * mu, E0 = En, ju = br;
12320
+ const y0 = 80 * Rt, _0 = 32, Yu = 3 * mu, E0 = En, ju = vr;
12308
12321
  function Zu(t, e, n, r, s) {
12309
12322
  e.transportStatus === 0 && e.queuedPayloads.size() === 0 && e.bandwidthMonitor.canHandle(t) ? Ju(t, e, n, {
12310
12323
  onSuccess: () => Xu(0, e, n, r, s),
@@ -12314,7 +12327,7 @@ function Zu(t, e, n, r, s) {
12314
12327
  }) : e.queuedPayloads.enqueue(t);
12315
12328
  }
12316
12329
  function Ku(t, e, n, r) {
12317
- t.transportStatus === 2 && vr(() => {
12330
+ t.transportStatus === 2 && br(() => {
12318
12331
  const s = t.queuedPayloads.first();
12319
12332
  Ju(s, t, e, {
12320
12333
  onSuccess: () => {
@@ -12328,7 +12341,7 @@ function Ku(t, e, n, r) {
12328
12341
  }
12329
12342
  function Ju(t, e, n, { onSuccess: r, onFailure: s }) {
12330
12343
  e.bandwidthMonitor.add(t), n(t, (i) => {
12331
- e.bandwidthMonitor.remove(t), b0(i) ? (e.transportStatus = e.bandwidthMonitor.ongoingRequestCount > 0 ? 1 : 2, t.retry = {
12344
+ e.bandwidthMonitor.remove(t), v0(i) ? (e.transportStatus = e.bandwidthMonitor.ongoingRequestCount > 0 ? 1 : 2, t.retry = {
12332
12345
  count: t.retry ? t.retry.count + 1 : 1,
12333
12346
  lastFailureStatus: i.status
12334
12347
  }, s()) : (e.transportStatus = 0, r());
@@ -12344,10 +12357,10 @@ function Xu(t, e, n, r, s) {
12344
12357
  for (e.queuedPayloads = Qu(); i.size() > 0; )
12345
12358
  Zu(i.dequeue(), e, n, r, s);
12346
12359
  }
12347
- function b0(t) {
12360
+ function v0(t) {
12348
12361
  return t.type !== "opaque" && (t.status === 0 && !navigator.onLine || t.status === 408 || t.status === 429 || Gu(t.status));
12349
12362
  }
12350
- function v0() {
12363
+ function b0() {
12351
12364
  return {
12352
12365
  transportStatus: 0,
12353
12366
  currentBackoffTime: ju,
@@ -12394,7 +12407,7 @@ function w0() {
12394
12407
  };
12395
12408
  }
12396
12409
  function S0(t, e, n) {
12397
- const r = v0(), s = (i, o) => C0(t, e, i, o);
12410
+ const r = b0(), s = (i, o) => C0(t, e, i, o);
12398
12411
  return {
12399
12412
  send: (i) => {
12400
12413
  Zu(i, r, s, t.trackType, n);
@@ -12518,8 +12531,8 @@ function L0(t) {
12518
12531
  function A0({ encoder: t, request: e, flushController: n, messageBytesLimit: r }) {
12519
12532
  let s = {};
12520
12533
  const i = n.flushObservable.subscribe((h) => f(h));
12521
- function o(h, p, v) {
12522
- n.notifyBeforeAddMessage(p), v !== void 0 ? (s[v] = h, n.notifyAfterAddMessage()) : t.write(t.isEmpty ? h : `
12534
+ function o(h, p, b) {
12535
+ n.notifyBeforeAddMessage(p), b !== void 0 ? (s[b] = h, n.notifyAfterAddMessage()) : t.write(t.isEmpty ? h : `
12523
12536
  ${h}`, (k) => {
12524
12537
  n.notifyAfterAddMessage(k - p);
12525
12538
  });
@@ -12530,23 +12543,23 @@ ${h}`, (k) => {
12530
12543
  function l(h) {
12531
12544
  const p = s[h];
12532
12545
  delete s[h];
12533
- const v = t.estimateEncodedBytesCount(p);
12534
- n.notifyAfterRemoveMessage(v);
12546
+ const b = t.estimateEncodedBytesCount(p);
12547
+ n.notifyAfterRemoveMessage(b);
12535
12548
  }
12536
12549
  function u(h, p) {
12537
- const v = vn(h), k = t.estimateEncodedBytesCount(v);
12550
+ const b = bn(h), k = t.estimateEncodedBytesCount(b);
12538
12551
  if (k >= r) {
12539
12552
  Ve.warn(`Discarded a message whose size was bigger than the maximum allowed size ${r}KB. ${Ss} ${cu}/#technical-limitations`);
12540
12553
  return;
12541
12554
  }
12542
- a(p) && l(p), o(v, k, p);
12555
+ a(p) && l(p), o(b, k, p);
12543
12556
  }
12544
12557
  function f(h) {
12545
12558
  const p = is(s).join(`
12546
12559
  `);
12547
12560
  s = {};
12548
- const v = L0(h.reason), k = v ? e.sendOnExit : e.send;
12549
- if (v && // Note: checking that the encoder is async is not strictly needed, but it's an optimization:
12561
+ const b = L0(h.reason), k = b ? e.sendOnExit : e.send;
12562
+ if (b && // Note: checking that the encoder is async is not strictly needed, but it's an optimization:
12550
12563
  // if the encoder is async we need to send two requests in some cases (one for encoded data
12551
12564
  // and the other for non-encoded data). But if it's not async, we don't have to worry about
12552
12565
  // it and always send a single request.
@@ -12597,7 +12610,7 @@ function D0({ messagesLimit: t, bytesLimit: e, durationLimit: n, pageExitObserva
12597
12610
  if (u === 0)
12598
12611
  return;
12599
12612
  const D = u, $ = l;
12600
- u = 0, l = 0, v(), a.notify({
12613
+ u = 0, l = 0, b(), a.notify({
12601
12614
  reason: k,
12602
12615
  messagesCount: D,
12603
12616
  bytesCount: $
@@ -12605,11 +12618,11 @@ function D0({ messagesLimit: t, bytesLimit: e, durationLimit: n, pageExitObserva
12605
12618
  }
12606
12619
  let h;
12607
12620
  function p() {
12608
- h === void 0 && (h = vr(() => {
12621
+ h === void 0 && (h = br(() => {
12609
12622
  f("duration_limit");
12610
12623
  }, n));
12611
12624
  }
12612
- function v() {
12625
+ function b() {
12613
12626
  yu(h), h = void 0;
12614
12627
  }
12615
12628
  return {
@@ -12652,7 +12665,7 @@ function D0({ messagesLimit: t, bytesLimit: e, durationLimit: n, pageExitObserva
12652
12665
  * `notifyAfterAddMessage`.
12653
12666
  */
12654
12667
  notifyAfterRemoveMessage(k) {
12655
- l -= k, u -= 1, u === 0 && v();
12668
+ l -= k, u -= 1, u === 0 && b();
12656
12669
  }
12657
12670
  };
12658
12671
  }
@@ -12733,7 +12746,7 @@ function R0(t, e, n) {
12733
12746
  let r = 0, s = !1;
12734
12747
  return {
12735
12748
  isLimitReached() {
12736
- if (r === 0 && vr(() => {
12749
+ if (r === 0 && br(() => {
12737
12750
  r = 0;
12738
12751
  }, En), r += 1, r <= e || s)
12739
12752
  return s = !1, !1;
@@ -12890,7 +12903,7 @@ function H0(t, e, n) {
12890
12903
  };
12891
12904
  }
12892
12905
  function G0(t) {
12893
- return typeof t == "string" ? xt(t) : tn(t) ? Au(Pt(t)) : vn(xt(t), void 0, 2);
12906
+ return typeof t == "string" ? xt(t) : tn(t) ? Au(Pt(t)) : bn(xt(t), void 0, 2);
12894
12907
  }
12895
12908
  function Ni(t) {
12896
12909
  let e = {};
@@ -12972,8 +12985,8 @@ function Q0(t = 2) {
12972
12985
  }
12973
12986
  function Na(t) {
12974
12987
  let e = 0;
12975
- const { throttled: n, cancel: r } = bu((i) => {
12976
- e = Zi(vn(i)), t();
12988
+ const { throttled: n, cancel: r } = vu((i) => {
12989
+ e = Zi(bn(i)), t();
12977
12990
  }, X0), s = () => {
12978
12991
  r(), e = 0;
12979
12992
  };
@@ -13238,7 +13251,7 @@ function h_(t, e, n) {
13238
13251
  },
13239
13252
  getInternalContext: Yt,
13240
13253
  handleLog(l, u, f, h = t(), p = Xt()) {
13241
- r.add((v) => v.handleLog(l, u, f, h, p));
13254
+ r.add((b) => b.handleLog(l, u, f, h, p));
13242
13255
  }
13243
13256
  };
13244
13257
  }
@@ -13291,7 +13304,7 @@ function g_(t) {
13291
13304
  getInitConfiguration: Se(() => Bu(o.initConfiguration)),
13292
13305
  getInternalContext: Se((u) => o.getInternalContext(u)),
13293
13306
  setUser: Se((u) => {
13294
- bp(u) && r.setContext(_a(u));
13307
+ vp(u) && r.setContext(_a(u));
13295
13308
  }),
13296
13309
  getUser: Se(() => r.getContext()),
13297
13310
  setUserProperty: Se((u, f) => {
@@ -13313,7 +13326,7 @@ function p_(t, e) {
13313
13326
  }
13314
13327
  const y_ = "logs";
13315
13328
  function __(t, e) {
13316
- const n = f0(t, y_, (r) => b_(t, r), e);
13329
+ const n = f0(t, y_, (r) => v_(t, r), e);
13317
13330
  return {
13318
13331
  findTrackedSession: (r, s = { returnInactive: !1 }) => {
13319
13332
  const i = n.findSession(r, s);
@@ -13335,14 +13348,14 @@ function E_(t) {
13335
13348
  function rc(t) {
13336
13349
  return Wr(t.sessionSampleRate) ? "1" : "0";
13337
13350
  }
13338
- function b_(t, e) {
13339
- const n = v_(e) ? e : rc(t);
13351
+ function v_(t, e) {
13352
+ const n = b_(e) ? e : rc(t);
13340
13353
  return {
13341
13354
  trackingType: n,
13342
13355
  isTracked: n === "1"
13343
13356
  };
13344
13357
  }
13345
- function v_(t) {
13358
+ function b_(t) {
13346
13359
  return t === "0" || t === "1";
13347
13360
  }
13348
13361
  let Aa = !1;
@@ -13367,20 +13380,20 @@ function w_(t, e, n, r, s) {
13367
13380
  o[a] = R0(a, e.eventRateLimiterThreshold, s);
13368
13381
  }), n.subscribe(0, ({ rawLogsEvent: a, messageContext: l = void 0, savedCommonContext: u = void 0, domainContext: f }) => {
13369
13382
  var h, p;
13370
- const v = sp(a.date), k = t.findTrackedSession(v);
13371
- if (!t.findTrackedSession(v, { returnInactive: !0 }))
13383
+ const b = sp(a.date), k = t.findTrackedSession(b);
13384
+ if (!t.findTrackedSession(b, { returnInactive: !0 }))
13372
13385
  return;
13373
13386
  const $ = u || r();
13374
13387
  k && k.anonymousId && !$.user.anonymous_id && ($.user.anonymous_id = k.anonymousId);
13375
- const b = Vn({
13388
+ const v = Vn({
13376
13389
  service: e.service,
13377
13390
  session_id: k ? k.id : void 0,
13378
13391
  session: k ? { id: k.id } : void 0,
13379
13392
  // Insert user first to allow overrides from global context
13380
13393
  usr: Ki($.user) ? void 0 : $.user,
13381
13394
  view: $.view
13382
- }, $.context, Gr(v), a, l);
13383
- ((h = e.beforeSend) === null || h === void 0 ? void 0 : h.call(e, b, f)) === !1 || b.origin !== lt.AGENT && ((p = o[b.status]) !== null && p !== void 0 ? p : o.custom).isLimitReached() || n.notify(1, b);
13395
+ }, $.context, Gr(b), a, l);
13396
+ ((h = e.beforeSend) === null || h === void 0 ? void 0 : h.call(e, v, f)) === !1 || v.origin !== lt.AGENT && ((p = o[v.status]) !== null && p !== void 0 ? p : o.custom).isLimitReached() || n.notify(1, v);
13384
13397
  });
13385
13398
  }
13386
13399
  const S_ = {
@@ -13692,7 +13705,7 @@ function q_(t, e = ["id"]) {
13692
13705
  if (t != null)
13693
13706
  return Dn(t, e);
13694
13707
  }
13695
- class Z1 {
13708
+ class Q1 {
13696
13709
  constructor(e) {
13697
13710
  rt(this, "logInConsole");
13698
13711
  rt(this, "logger");
@@ -13704,10 +13717,7 @@ class Z1 {
13704
13717
  forwardErrorsToLogs: e.forwardErrorsToLogs,
13705
13718
  env: e.env,
13706
13719
  version: e.version,
13707
- beforeSend: (n, r) => {
13708
- if (r && "isAborted" in r && r.isAborted)
13709
- return !1;
13710
- }
13720
+ beforeSend: (n, r) => r && "isAborted" in r && r.isAborted ? !1 : (n.service || (n.service = "vue-tools"), n.host || (n.host = location.hostname), n.user || (n.user = this.getUserIdOrOrganisationId()), !0)
13711
13721
  }), this.logInConsole = e.debug, this.logger = ki.logger;
13712
13722
  }
13713
13723
  fine(e, ...n) {
@@ -13730,7 +13740,7 @@ class Z1 {
13730
13740
  service: e,
13731
13741
  data: n.slice(1),
13732
13742
  host: location.hostname
13733
- }), this.logInConsole && console.error(e, n);
13743
+ }), this.logInConsole && console.warn(e, n);
13734
13744
  }
13735
13745
  info(e, ...n) {
13736
13746
  this.logger.info(Dn(n[0]), {
@@ -13765,24 +13775,45 @@ function H_(t, e) {
13765
13775
  if (e === "phone")
13766
13776
  return { type: "phone", icon: "far fa-phone", label: n };
13767
13777
  if (e === "videoconference")
13768
- return { type: "videoconference", icon: "far fa-video", label: "agenda.appointment.details.location.visio" };
13778
+ return { type: "videoconference", icon: "far fa-video", label: n };
13769
13779
  if (e === "custom")
13770
13780
  return { type: "custom", icon: "far fa-location-dot", label: n };
13771
13781
  }
13772
- function K1(t, e) {
13782
+ function eE(t, e) {
13773
13783
  if (!e.location)
13774
13784
  return;
13775
- const n = H_(t, e.location), r = (i) => e.labelType === "value" ? i : t(`common.locations.${e.location}`);
13776
- let s = !0;
13777
- if (e.location === "companyAddress" && (e.address || e.labelType === "label")) {
13778
- s = !1;
13779
- const i = Pc(e.address, e.locale);
13780
- n.label = r(i), n.link = `https://www.google.com/maps/search/?api=1&query=${i}`;
13781
- } else e.location === "phone" && (e.phone || e.labelType === "label") ? (s = !1, n.label = r(e.phone), n.link = `tel:${e.phone}`) : e.location === "videoconference" && (e.visio || e.labelType === "label") ? (s = !1, n.link = e.visio, n.label = t("common.locations.accessToVisio")) : e.location === "custom" && e.customLocation && (s = !1, n.label = e.customLocation);
13782
- if (!(s && !e.ignoreEmptyLocation))
13785
+ e.location === "custom" && (e.labelType = "value");
13786
+ const n = H_(t, e.location);
13787
+ if (n === void 0 || e.labelType === "label")
13783
13788
  return n;
13789
+ switch (e.location) {
13790
+ case "companyAddress":
13791
+ return G_(n, e);
13792
+ case "phone":
13793
+ return Y_(n, e);
13794
+ case "videoconference":
13795
+ return j_(t, n, e);
13796
+ case "custom":
13797
+ return Z_(n, e);
13798
+ }
13784
13799
  }
13785
13800
  function G_(t, e) {
13801
+ const n = Pc(e.address, e.locale);
13802
+ return n.length === 0 ? e.ignoreEmptyLocation === !0 ? t : void 0 : (t.label = n, t.link = `https://www.google.com/maps/search/?api=1&query=${n}`, t);
13803
+ }
13804
+ function Y_(t, e) {
13805
+ var n;
13806
+ return (n = e.phone) != null && n.length ? (t.label = e.phone, t.link = `tel:${e.phone}`, t) : e.ignoreEmptyLocation === !0 ? t : void 0;
13807
+ }
13808
+ function j_(t, e, n) {
13809
+ var r;
13810
+ return (r = n.visio) != null && r.length ? (e.link = n.visio, e.label = t("common.locations.accessToVisio"), e) : n.ignoreEmptyLocation === !0 ? e : void 0;
13811
+ }
13812
+ function Z_(t, e) {
13813
+ var n;
13814
+ return (n = e.customLocation) != null && n.length ? (t.label = e.customLocation, t) : e.ignoreEmptyLocation === !0 ? t : void 0;
13815
+ }
13816
+ function K_(t, e) {
13786
13817
  switch (t.type) {
13787
13818
  case "file":
13788
13819
  return t.fileName;
@@ -13793,7 +13824,7 @@ function G_(t, e) {
13793
13824
  return t.value ? t.value : "-";
13794
13825
  }
13795
13826
  }
13796
- function J1(t, e, n) {
13827
+ function tE(t, e, n) {
13797
13828
  if (t.bind && t.value && t.value.length > 0)
13798
13829
  switch (t.bind) {
13799
13830
  case "crm-language":
@@ -13806,14 +13837,14 @@ function J1(t, e, n) {
13806
13837
  case "crm-reminder":
13807
13838
  return e("common.notifications." + t.value);
13808
13839
  }
13809
- return G_(t, n);
13840
+ return K_(t, n);
13810
13841
  }
13811
13842
  const Ma = ["crm-address-firstline", "crm-address-secondline", "crm-address-city", "crm-address-postalcode", "crm-address-state", "crm-address-country"];
13812
- function X1(t) {
13843
+ function nE(t) {
13813
13844
  const e = t == null ? void 0 : t.filter((s) => {
13814
13845
  var i;
13815
13846
  return (i = s.bind) == null ? void 0 : i.startsWith("crm-address-");
13816
- }).sort((s, i) => Ma.indexOf(s.bind) - Ma.indexOf(i.bind)), n = t == null ? void 0 : t.filter((s) => {
13847
+ }).sort((s, i) => s.bind ? i.bind ? Ma.indexOf(s.bind) - Ma.indexOf(i.bind) : 1 : -1), n = t == null ? void 0 : t.filter((s) => {
13817
13848
  var i;
13818
13849
  return !((i = s.bind) != null && i.startsWith("crm-address-"));
13819
13850
  }), r = [];
@@ -13822,79 +13853,79 @@ function X1(t) {
13822
13853
  }), r;
13823
13854
  }
13824
13855
  export {
13825
- N1 as Bloc,
13826
- Z1 as DatadogLogger,
13856
+ A1 as Bloc,
13857
+ Q1 as DatadogLogger,
13827
13858
  uu as DisplayEventStatus,
13828
13859
  gh as EMAIL_REGEX,
13829
- A1 as EventStatusComparator,
13860
+ x1 as EventStatusComparator,
13830
13861
  $g as EventStatusPriority,
13831
- b1 as FormBuilder,
13862
+ O1 as FormBuilder,
13832
13863
  lh as QRCode,
13833
- h1 as Share,
13864
+ y1 as Share,
13834
13865
  et as ShareMode,
13835
- f1 as URL_REGEX,
13836
- C1 as calculateDuration,
13837
- k1 as capitalize,
13866
+ p1 as URL_REGEX,
13867
+ L1 as calculateDuration,
13868
+ D1 as capitalize,
13838
13869
  ph as checkRegex,
13839
- g1 as clearPoll,
13840
- L1 as computeLink,
13841
- l1 as createApi,
13842
- u1 as createLogger,
13843
- d1 as createStore,
13844
- y1 as decodeHtml,
13845
- P1 as defineAsyncComponentWithLoading,
13846
- r1 as downloadFile,
13847
- $1 as fakeDurationOnFunction,
13870
+ E1 as clearPoll,
13871
+ R1 as computeLink,
13872
+ f1 as createApi,
13873
+ h1 as createLogger,
13874
+ g1 as createStore,
13875
+ b1 as decodeHtml,
13876
+ V1 as defineAsyncComponentWithLoading,
13877
+ a1 as downloadFile,
13878
+ W1 as fakeDurationOnFunction,
13848
13879
  Sh as formEntityToFormFields,
13849
- M1 as generateShadesFromColor,
13880
+ P1 as generateShadesFromColor,
13850
13881
  Pc as getAddress,
13851
- B1 as getAppointmentWidgetUrl,
13852
- V1 as getConferenceSessionWidgetURL,
13853
- vi as getConferenceWidgetBaseURL,
13854
- W1 as getConferenceWidgetErrorURL,
13882
+ q1 as getAppointmentWidgetUrl,
13883
+ H1 as getConferenceSessionWidgetURL,
13884
+ bi as getConferenceWidgetBaseURL,
13885
+ G1 as getConferenceWidgetErrorURL,
13855
13886
  zg as getConferenceWidgetURL,
13856
13887
  Rg as getDateRangeByDatesLabel,
13857
- T1 as getDateRangeLabel,
13858
- p1 as getDomain,
13859
- a1 as getDurationLabel,
13860
- J1 as getFormStringValue,
13861
- H1 as getFormWidgetURL,
13862
- o1 as getFullname,
13863
- K1 as getLocationDetails,
13864
- x1 as getObjectValue,
13865
- z1 as getOrganisationEmail,
13866
- U1 as getPlacesWidgetUrl,
13867
- G1 as getQueueWidgetURl,
13868
- O1 as getReadableDuration,
13869
- q1 as getSchedulingWidgetURL,
13888
+ I1 as getDateRangeLabel,
13889
+ v1 as getDomain,
13890
+ d1 as getDurationLabel,
13891
+ tE as getFormStringValue,
13892
+ Z1 as getFormWidgetURL,
13893
+ c1 as getFullname,
13894
+ eE as getLocationDetails,
13895
+ U1 as getObjectValue,
13896
+ Y1 as getOrganisationEmail,
13897
+ z1 as getPlacesWidgetUrl,
13898
+ K1 as getQueueWidgetURl,
13899
+ k1 as getReadableDuration,
13900
+ j1 as getSchedulingWidgetURL,
13870
13901
  qg as getSchedulingWidgetURLFromOption,
13871
- D1 as getTransitionStatus,
13872
- _1 as getUserDomain,
13873
- R1 as getValueIfExistOrDefault,
13874
- S1 as getWeekNumber,
13875
- E1 as hasGlobalSchedulingRight,
13902
+ F1 as getTransitionStatus,
13903
+ w1 as getUserDomain,
13904
+ $1 as getValueIfExistOrDefault,
13905
+ N1 as getWeekNumber,
13906
+ S1 as hasGlobalSchedulingRight,
13876
13907
  xg as isStringIncludeIn,
13877
- I1 as isStringIncludeInList,
13878
- w1 as isToday,
13879
- F1 as languages,
13880
- vh as loadFormFieldFromResult,
13908
+ M1 as isStringIncludeInList,
13909
+ C1 as isToday,
13910
+ B1 as languages,
13911
+ bh as loadFormFieldFromResult,
13881
13912
  Fg as normaliseStringWithoutAccent,
13882
- t1 as onPictureUpdated,
13883
- s1 as parseToInt,
13884
- i1 as personToInitials,
13885
- m1 as poll,
13886
- X1 as prepareFieldAndSortAddressFields,
13913
+ i1 as onPictureUpdated,
13914
+ l1 as parseToInt,
13915
+ u1 as personToInitials,
13916
+ _1 as poll,
13917
+ nE as prepareFieldAndSortAddressFields,
13887
13918
  Bg as propertyExistIn,
13888
- n1 as readBlobFromUrl,
13889
- v1 as sortByNumber,
13919
+ o1 as readBlobFromUrl,
13920
+ T1 as sortByNumber,
13890
13921
  Pg as sortByString,
13891
13922
  Hg as sortHourModel,
13892
- Y1 as specificPeriodEntitiesToModels,
13893
- j1 as specificPeriodModelsToEntities,
13923
+ J1 as specificPeriodEntitiesToModels,
13924
+ X1 as specificPeriodModelsToEntities,
13894
13925
  xc as toBase64,
13895
13926
  Us as truncateDecimals,
13896
13927
  ys as useAccountStore,
13897
13928
  gr as useApi,
13898
- e1 as useBlocState,
13899
- c1 as useLogger
13929
+ s1 as useBlocState,
13930
+ m1 as useLogger
13900
13931
  };