@luizleon/sf.prefeiturasp.vuecomponents 0.0.1 → 0.0.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.
Files changed (31) hide show
  1. package/dist/components/internal/ThemeToggle.d.ts +11 -1
  2. package/dist/components/tabnavigation/TabNavigation.d.ts +26 -0
  3. package/dist/index.d.ts +2 -1
  4. package/dist/lib.es.js +1229 -1125
  5. package/dist/lib.umd.js +33 -33
  6. package/dist/style.css +1 -1
  7. package/package.json +1 -1
  8. package/src/components/internal/HeaderAvatar.vue +49 -0
  9. package/src/components/internal/ThemeToggle.ts +3 -3
  10. package/src/components/layout/Layout.vue +2 -14
  11. package/src/components/tabnavigation/TabNavigation.d.ts +37 -0
  12. package/src/components/tabnavigation/TabNavigation.vue +114 -0
  13. package/src/index.ts +2 -0
  14. package/src/services/dialogService.ts +1 -1
  15. package/src/style/componentes.scss +3 -11
  16. package/src/style/src/components/_headerAvatar.scss +22 -0
  17. package/src/style/src/components/_tab-navigation.scss +88 -0
  18. package/src/components/internal/LogoutIcon.vue +0 -14
  19. package/src/sf-oidc-state.html +0 -15
  20. package/src/style/src/components/_button.scss +0 -110
  21. package/src/style/src/components/_checkbox.scss +0 -53
  22. package/src/style/src/components/_datefield.scss +0 -405
  23. package/src/style/src/components/_mark.scss +0 -9
  24. package/src/style/src/components/_mask.scss +0 -33
  25. package/src/style/src/components/_numpad.scss +0 -58
  26. package/src/style/src/components/_progress-circular.scss +0 -52
  27. package/src/style/src/components/_select.scss +0 -60
  28. package/src/style/src/components/_textfield.scss +0 -186
  29. package/src/style/src/components/_toast.scss +0 -66
  30. /package/dist/components/internal/{LogoutIcon.d.ts → HeaderAvatar.d.ts} +0 -0
  31. /package/src/style/src/components/{_internal_icon_button.scss → _internal-icon-button.scss} +0 -0
package/dist/lib.es.js CHANGED
@@ -1,7 +1,124 @@
1
1
  var ur = Object.defineProperty;
2
- var dr = (a, o, d) => o in a ? ur(a, o, { enumerable: !0, configurable: !0, writable: !0, value: d }) : a[o] = d;
3
- var Ze = (a, o, d) => (dr(a, typeof o != "symbol" ? o + "" : o, d), d);
4
- import { ref, openBlock, createElementBlock, createElementVNode, defineComponent, normalizeStyle, normalizeClass, mergeProps, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, unref, createStaticVNode, createVNode, renderSlot, resolveComponent, withCtx, onMounted, nextTick } from "vue";
2
+ var dr = (a, o, u) => o in a ? ur(a, o, { enumerable: !0, configurable: !0, writable: !0, value: u }) : a[o] = u;
3
+ var Ze = (a, o, u) => (dr(a, typeof o != "symbol" ? o + "" : o, u), u);
4
+ import { ref, openBlock, createElementBlock, createElementVNode, defineComponent, normalizeStyle, normalizeClass, mergeProps, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, unref, createStaticVNode, createVNode, renderSlot, resolveComponent, withCtx, onMounted, onBeforeUnmount, renderList, nextTick } from "vue";
5
+ class NavMenuService {
6
+ constructor() {
7
+ Ze(this, "_visible", ref(!1));
8
+ }
9
+ get IsVisible() {
10
+ return this._visible.value === !0;
11
+ }
12
+ Toggle() {
13
+ this._visible.value = !this._visible.value;
14
+ }
15
+ Close() {
16
+ this._visible.value = !1;
17
+ }
18
+ Open() {
19
+ this._visible.value = !0;
20
+ }
21
+ }
22
+ const LkNavMenuService = new NavMenuService(), UseNavMenuService = () => LkNavMenuService;
23
+ var Cor = /* @__PURE__ */ ((a) => (a.Primary = "primary", a.Secondary = "secondary", a.Info = "info", a.Success = "success", a.Help = "help", a.Warn = "warn", a.Error = "error", a))(Cor || {}), Tamanho = /* @__PURE__ */ ((a) => (a.Pequeno = "sm", a.Medio = "md", a.Grande = "lg", a))(Tamanho || {});
24
+ const _export_sfc = (a, o) => {
25
+ const u = a.__vccOpts || a;
26
+ for (const [f, k] of o)
27
+ u[f] = k;
28
+ return u;
29
+ }, _sfc_main$9 = {}, _hoisted_1$7 = { class: "sf-loading-circle" }, _hoisted_2$6 = /* @__PURE__ */ createElementVNode("div", null, [
30
+ /* @__PURE__ */ createElementVNode("svg", { viewBox: "25 25 50 50" }, [
31
+ /* @__PURE__ */ createElementVNode("circle", {
32
+ cx: "50",
33
+ cy: "50",
34
+ r: "20",
35
+ fill: "none",
36
+ "stroke-width": "4",
37
+ "stroke-miterlimit": "10"
38
+ })
39
+ ])
40
+ ], -1), _hoisted_3$3 = [
41
+ _hoisted_2$6
42
+ ];
43
+ function _sfc_render$1(a, o) {
44
+ return openBlock(), createElementBlock("div", _hoisted_1$7, _hoisted_3$3);
45
+ }
46
+ const LoadingCircle = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]]);
47
+ class CssClassBuilder {
48
+ /**
49
+ * Creates a new instance of the CssClassBuilder class.
50
+ * @param value The initial value of the CSS class string.
51
+ */
52
+ constructor(o) {
53
+ Ze(this, "retorno");
54
+ this.retorno = o ?? "";
55
+ }
56
+ /**
57
+ * Concatenates a new CSS class to the existing string.
58
+ * @param value The CSS class to concatenate.
59
+ * @returns The current instance of the CssClassBuilder class.
60
+ */
61
+ Concat(o) {
62
+ return o && o.trim().length && (this.retorno += ` ${o}`), this;
63
+ }
64
+ /**
65
+ * Adds a new CSS class to the string if the specified condition is true.
66
+ * @param value The CSS class to add.
67
+ * @param when The condition that determines whether to add the CSS class.
68
+ * @returns The current instance of the CssClassBuilder class.
69
+ */
70
+ AddClass(o, u = !0) {
71
+ return u ? this.Concat(o) : this;
72
+ }
73
+ /**
74
+ * Builds the final CSS class string.
75
+ * @returns The final CSS class string.
76
+ */
77
+ Build() {
78
+ return this.retorno.trim();
79
+ }
80
+ }
81
+ const _hoisted_1$6 = ["disabled", "tabindex"], _hoisted_2$5 = ["data-color"], _sfc_main$8 = /* @__PURE__ */ defineComponent({
82
+ __name: "Icon",
83
+ props: {
84
+ icone: {},
85
+ visible: { type: Boolean, default: !0 },
86
+ class: { default: "" },
87
+ style: { default: "" },
88
+ disabled: { type: Boolean },
89
+ loading: { type: Boolean },
90
+ button: { type: Boolean },
91
+ tamanho: { default: Tamanho.Medio },
92
+ dot: { type: Boolean },
93
+ dotColor: { default: Cor.Error },
94
+ buttonProps: {}
95
+ },
96
+ setup(a) {
97
+ const o = a;
98
+ function u() {
99
+ return new CssClassBuilder(`${o.class} sf-icon`).AddClass("sf-component-loading", o.loading).AddClass("sf-component-disabled", o.disabled).AddClass("sf-icon-button", o.button).AddClass("sf-icon-small", o.tamanho === Tamanho.Pequeno).AddClass("sf-icon-medium", o.tamanho === Tamanho.Medio).AddClass("sf-icon-large", o.tamanho === Tamanho.Grande).AddClass("sf-ripple", o.button === !0).Build();
100
+ }
101
+ return (f, k) => (openBlock(), createElementBlock("div", {
102
+ style: normalizeStyle(o.style),
103
+ class: normalizeClass(u())
104
+ }, [
105
+ createElementVNode("button", mergeProps({
106
+ class: "material-symbols-outlined",
107
+ disabled: o.disabled || o.loading
108
+ }, o.buttonProps, {
109
+ tabindex: o.button ? void 0 : -1
110
+ }), [
111
+ o.loading ? (openBlock(), createBlock(LoadingCircle, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
112
+ createTextVNode(toDisplayString(o.icone), 1)
113
+ ], 64))
114
+ ], 16, _hoisted_1$6),
115
+ o.dot ? (openBlock(), createElementBlock("span", {
116
+ key: 0,
117
+ "data-color": o.dotColor
118
+ }, null, 8, _hoisted_2$5)) : createCommentVNode("", !0)
119
+ ], 6));
120
+ }
121
+ });
5
122
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
6
123
  function getDefaultExportFromCjs(a) {
7
124
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
@@ -19,40 +136,40 @@ function getLens(a) {
19
136
  var o = a.length;
20
137
  if (o % 4 > 0)
21
138
  throw new Error("Invalid string. Length must be a multiple of 4");
22
- var d = a.indexOf("=");
23
- d === -1 && (d = o);
24
- var f = d === o ? 0 : 4 - d % 4;
25
- return [d, f];
139
+ var u = a.indexOf("=");
140
+ u === -1 && (u = o);
141
+ var f = u === o ? 0 : 4 - u % 4;
142
+ return [u, f];
26
143
  }
27
144
  function byteLength(a) {
28
- var o = getLens(a), d = o[0], f = o[1];
29
- return (d + f) * 3 / 4 - f;
145
+ var o = getLens(a), u = o[0], f = o[1];
146
+ return (u + f) * 3 / 4 - f;
30
147
  }
31
- function _byteLength(a, o, d) {
32
- return (o + d) * 3 / 4 - d;
148
+ function _byteLength(a, o, u) {
149
+ return (o + u) * 3 / 4 - u;
33
150
  }
34
151
  function toByteArray(a) {
35
- var o, d = getLens(a), f = d[0], y = d[1], l = new Arr(_byteLength(a, f, y)), k = 0, g = y > 0 ? f - 4 : f, _;
36
- for (_ = 0; _ < g; _ += 4)
37
- o = revLookup[a.charCodeAt(_)] << 18 | revLookup[a.charCodeAt(_ + 1)] << 12 | revLookup[a.charCodeAt(_ + 2)] << 6 | revLookup[a.charCodeAt(_ + 3)], l[k++] = o >> 16 & 255, l[k++] = o >> 8 & 255, l[k++] = o & 255;
38
- return y === 2 && (o = revLookup[a.charCodeAt(_)] << 2 | revLookup[a.charCodeAt(_ + 1)] >> 4, l[k++] = o & 255), y === 1 && (o = revLookup[a.charCodeAt(_)] << 10 | revLookup[a.charCodeAt(_ + 1)] << 4 | revLookup[a.charCodeAt(_ + 2)] >> 2, l[k++] = o >> 8 & 255, l[k++] = o & 255), l;
152
+ var o, u = getLens(a), f = u[0], k = u[1], l = new Arr(_byteLength(a, f, k)), y = 0, h = k > 0 ? f - 4 : f, x;
153
+ for (x = 0; x < h; x += 4)
154
+ o = revLookup[a.charCodeAt(x)] << 18 | revLookup[a.charCodeAt(x + 1)] << 12 | revLookup[a.charCodeAt(x + 2)] << 6 | revLookup[a.charCodeAt(x + 3)], l[y++] = o >> 16 & 255, l[y++] = o >> 8 & 255, l[y++] = o & 255;
155
+ return k === 2 && (o = revLookup[a.charCodeAt(x)] << 2 | revLookup[a.charCodeAt(x + 1)] >> 4, l[y++] = o & 255), k === 1 && (o = revLookup[a.charCodeAt(x)] << 10 | revLookup[a.charCodeAt(x + 1)] << 4 | revLookup[a.charCodeAt(x + 2)] >> 2, l[y++] = o >> 8 & 255, l[y++] = o & 255), l;
39
156
  }
40
157
  function tripletToBase64(a) {
41
158
  return lookup[a >> 18 & 63] + lookup[a >> 12 & 63] + lookup[a >> 6 & 63] + lookup[a & 63];
42
159
  }
43
- function encodeChunk(a, o, d) {
44
- for (var f, y = [], l = o; l < d; l += 3)
45
- f = (a[l] << 16 & 16711680) + (a[l + 1] << 8 & 65280) + (a[l + 2] & 255), y.push(tripletToBase64(f));
46
- return y.join("");
160
+ function encodeChunk(a, o, u) {
161
+ for (var f, k = [], l = o; l < u; l += 3)
162
+ f = (a[l] << 16 & 16711680) + (a[l + 1] << 8 & 65280) + (a[l + 2] & 255), k.push(tripletToBase64(f));
163
+ return k.join("");
47
164
  }
48
165
  function fromByteArray(a) {
49
- for (var o, d = a.length, f = d % 3, y = [], l = 16383, k = 0, g = d - f; k < g; k += l)
50
- y.push(encodeChunk(a, k, k + l > g ? g : k + l));
51
- return f === 1 ? (o = a[d - 1], y.push(
166
+ for (var o, u = a.length, f = u % 3, k = [], l = 16383, y = 0, h = u - f; y < h; y += l)
167
+ k.push(encodeChunk(a, y, y + l > h ? h : y + l));
168
+ return f === 1 ? (o = a[u - 1], k.push(
52
169
  lookup[o >> 2] + lookup[o << 4 & 63] + "=="
53
- )) : f === 2 && (o = (a[d - 2] << 8) + a[d - 1], y.push(
170
+ )) : f === 2 && (o = (a[u - 2] << 8) + a[u - 1], k.push(
54
171
  lookup[o >> 10] + lookup[o >> 4 & 63] + lookup[o << 2 & 63] + "="
55
- )), y.join("");
172
+ )), k.join("");
56
173
  }
57
174
  var sha256$1 = { exports: {} };
58
175
  /**
@@ -141,18 +258,18 @@ var sha256$1 = { exports: {} };
141
258
  return typeof a == "object" && a.buffer && a.buffer.constructor === ArrayBuffer;
142
259
  });
143
260
  var createOutputMethod = function(a, o) {
144
- return function(d) {
145
- return new Sha256(o, !0).update(d)[a]();
261
+ return function(u) {
262
+ return new Sha256(o, !0).update(u)[a]();
146
263
  };
147
264
  }, createMethod = function(a) {
148
265
  var o = createOutputMethod("hex", a);
149
266
  NODE_JS && (o = nodeWrap(o, a)), o.create = function() {
150
267
  return new Sha256(a);
151
- }, o.update = function(y) {
152
- return o.create().update(y);
268
+ }, o.update = function(k) {
269
+ return o.create().update(k);
153
270
  };
154
- for (var d = 0; d < OUTPUT_TYPES.length; ++d) {
155
- var f = OUTPUT_TYPES[d];
271
+ for (var u = 0; u < OUTPUT_TYPES.length; ++u) {
272
+ var f = OUTPUT_TYPES[u];
156
273
  o[f] = createOutputMethod(f, a);
157
274
  }
158
275
  return o;
@@ -166,18 +283,18 @@ var sha256$1 = { exports: {} };
166
283
  };
167
284
  return nodeMethod;
168
285
  }, createHmacOutputMethod = function(a, o) {
169
- return function(d, f) {
170
- return new HmacSha256(d, o, !0).update(f)[a]();
286
+ return function(u, f) {
287
+ return new HmacSha256(u, o, !0).update(f)[a]();
171
288
  };
172
289
  }, createHmacMethod = function(a) {
173
290
  var o = createHmacOutputMethod("hex", a);
174
- o.create = function(y) {
175
- return new HmacSha256(y, a);
176
- }, o.update = function(y, l) {
177
- return o.create(y).update(l);
291
+ o.create = function(k) {
292
+ return new HmacSha256(k, a);
293
+ }, o.update = function(k, l) {
294
+ return o.create(k).update(l);
178
295
  };
179
- for (var d = 0; d < OUTPUT_TYPES.length; ++d) {
180
- var f = OUTPUT_TYPES[d];
296
+ for (var u = 0; u < OUTPUT_TYPES.length; ++u) {
297
+ var f = OUTPUT_TYPES[u];
181
298
  o[f] = createHmacOutputMethod(f, a);
182
299
  }
183
300
  return o;
@@ -187,9 +304,9 @@ var sha256$1 = { exports: {} };
187
304
  }
188
305
  Sha256.prototype.update = function(a) {
189
306
  if (!this.finalized) {
190
- var o, d = typeof a;
191
- if (d !== "string") {
192
- if (d === "object") {
307
+ var o, u = typeof a;
308
+ if (u !== "string") {
309
+ if (u === "object") {
193
310
  if (a === null)
194
311
  throw new Error(ERROR);
195
312
  if (ARRAY_BUFFER && a.constructor === ArrayBuffer)
@@ -200,14 +317,14 @@ var sha256$1 = { exports: {} };
200
317
  throw new Error(ERROR);
201
318
  o = !0;
202
319
  }
203
- for (var f, y = 0, l, k = a.length, g = this.blocks; y < k; ) {
204
- if (this.hashed && (this.hashed = !1, g[0] = this.block, g[16] = g[1] = g[2] = g[3] = g[4] = g[5] = g[6] = g[7] = g[8] = g[9] = g[10] = g[11] = g[12] = g[13] = g[14] = g[15] = 0), o)
205
- for (l = this.start; y < k && l < 64; ++y)
206
- g[l >> 2] |= a[y] << SHIFT[l++ & 3];
320
+ for (var f, k = 0, l, y = a.length, h = this.blocks; k < y; ) {
321
+ if (this.hashed && (this.hashed = !1, h[0] = this.block, h[16] = h[1] = h[2] = h[3] = h[4] = h[5] = h[6] = h[7] = h[8] = h[9] = h[10] = h[11] = h[12] = h[13] = h[14] = h[15] = 0), o)
322
+ for (l = this.start; k < y && l < 64; ++k)
323
+ h[l >> 2] |= a[k] << SHIFT[l++ & 3];
207
324
  else
208
- for (l = this.start; y < k && l < 64; ++y)
209
- f = a.charCodeAt(y), f < 128 ? g[l >> 2] |= f << SHIFT[l++ & 3] : f < 2048 ? (g[l >> 2] |= (192 | f >> 6) << SHIFT[l++ & 3], g[l >> 2] |= (128 | f & 63) << SHIFT[l++ & 3]) : f < 55296 || f >= 57344 ? (g[l >> 2] |= (224 | f >> 12) << SHIFT[l++ & 3], g[l >> 2] |= (128 | f >> 6 & 63) << SHIFT[l++ & 3], g[l >> 2] |= (128 | f & 63) << SHIFT[l++ & 3]) : (f = 65536 + ((f & 1023) << 10 | a.charCodeAt(++y) & 1023), g[l >> 2] |= (240 | f >> 18) << SHIFT[l++ & 3], g[l >> 2] |= (128 | f >> 12 & 63) << SHIFT[l++ & 3], g[l >> 2] |= (128 | f >> 6 & 63) << SHIFT[l++ & 3], g[l >> 2] |= (128 | f & 63) << SHIFT[l++ & 3]);
210
- this.lastByteIndex = l, this.bytes += l - this.start, l >= 64 ? (this.block = g[16], this.start = l - 64, this.hash(), this.hashed = !0) : this.start = l;
325
+ for (l = this.start; k < y && l < 64; ++k)
326
+ f = a.charCodeAt(k), f < 128 ? h[l >> 2] |= f << SHIFT[l++ & 3] : f < 2048 ? (h[l >> 2] |= (192 | f >> 6) << SHIFT[l++ & 3], h[l >> 2] |= (128 | f & 63) << SHIFT[l++ & 3]) : f < 55296 || f >= 57344 ? (h[l >> 2] |= (224 | f >> 12) << SHIFT[l++ & 3], h[l >> 2] |= (128 | f >> 6 & 63) << SHIFT[l++ & 3], h[l >> 2] |= (128 | f & 63) << SHIFT[l++ & 3]) : (f = 65536 + ((f & 1023) << 10 | a.charCodeAt(++k) & 1023), h[l >> 2] |= (240 | f >> 18) << SHIFT[l++ & 3], h[l >> 2] |= (128 | f >> 12 & 63) << SHIFT[l++ & 3], h[l >> 2] |= (128 | f >> 6 & 63) << SHIFT[l++ & 3], h[l >> 2] |= (128 | f & 63) << SHIFT[l++ & 3]);
327
+ this.lastByteIndex = l, this.bytes += l - this.start, l >= 64 ? (this.block = h[16], this.start = l - 64, this.hash(), this.hashed = !0) : this.start = l;
211
328
  }
212
329
  return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
213
330
  }
@@ -218,19 +335,19 @@ var sha256$1 = { exports: {} };
218
335
  a[16] = this.block, a[o >> 2] |= EXTRA[o & 3], this.block = a[16], o >= 56 && (this.hashed || this.hash(), a[0] = this.block, a[16] = a[1] = a[2] = a[3] = a[4] = a[5] = a[6] = a[7] = a[8] = a[9] = a[10] = a[11] = a[12] = a[13] = a[14] = a[15] = 0), a[14] = this.hBytes << 3 | this.bytes >>> 29, a[15] = this.bytes << 3, this.hash();
219
336
  }
220
337
  }, Sha256.prototype.hash = function() {
221
- var a = this.h0, o = this.h1, d = this.h2, f = this.h3, y = this.h4, l = this.h5, k = this.h6, g = this.h7, _ = this.blocks, H, M, O, W, B, J, V, D, he, Q, ie;
222
- for (H = 16; H < 64; ++H)
223
- B = _[H - 15], M = (B >>> 7 | B << 25) ^ (B >>> 18 | B << 14) ^ B >>> 3, B = _[H - 2], O = (B >>> 17 | B << 15) ^ (B >>> 19 | B << 13) ^ B >>> 10, _[H] = _[H - 16] + M + _[H - 7] + O << 0;
224
- for (ie = o & d, H = 0; H < 64; H += 4)
225
- this.first ? (this.is224 ? (D = 300032, B = _[0] - 1413257819, g = B - 150054599 << 0, f = B + 24177077 << 0) : (D = 704751109, B = _[0] - 210244248, g = B - 1521486534 << 0, f = B + 143694565 << 0), this.first = !1) : (M = (a >>> 2 | a << 30) ^ (a >>> 13 | a << 19) ^ (a >>> 22 | a << 10), O = (y >>> 6 | y << 26) ^ (y >>> 11 | y << 21) ^ (y >>> 25 | y << 7), D = a & o, W = D ^ a & d ^ ie, V = y & l ^ ~y & k, B = g + O + V + K[H] + _[H], J = M + W, g = f + B << 0, f = B + J << 0), M = (f >>> 2 | f << 30) ^ (f >>> 13 | f << 19) ^ (f >>> 22 | f << 10), O = (g >>> 6 | g << 26) ^ (g >>> 11 | g << 21) ^ (g >>> 25 | g << 7), he = f & a, W = he ^ f & o ^ D, V = g & y ^ ~g & l, B = k + O + V + K[H + 1] + _[H + 1], J = M + W, k = d + B << 0, d = B + J << 0, M = (d >>> 2 | d << 30) ^ (d >>> 13 | d << 19) ^ (d >>> 22 | d << 10), O = (k >>> 6 | k << 26) ^ (k >>> 11 | k << 21) ^ (k >>> 25 | k << 7), Q = d & f, W = Q ^ d & a ^ he, V = k & g ^ ~k & y, B = l + O + V + K[H + 2] + _[H + 2], J = M + W, l = o + B << 0, o = B + J << 0, M = (o >>> 2 | o << 30) ^ (o >>> 13 | o << 19) ^ (o >>> 22 | o << 10), O = (l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7), ie = o & d, W = ie ^ o & f ^ Q, V = l & k ^ ~l & g, B = y + O + V + K[H + 3] + _[H + 3], J = M + W, y = a + B << 0, a = B + J << 0;
226
- this.h0 = this.h0 + a << 0, this.h1 = this.h1 + o << 0, this.h2 = this.h2 + d << 0, this.h3 = this.h3 + f << 0, this.h4 = this.h4 + y << 0, this.h5 = this.h5 + l << 0, this.h6 = this.h6 + k << 0, this.h7 = this.h7 + g << 0;
338
+ var a = this.h0, o = this.h1, u = this.h2, f = this.h3, k = this.h4, l = this.h5, y = this.h6, h = this.h7, x = this.blocks, B, U, R, V, T, J, D, j, he, Q, ie;
339
+ for (B = 16; B < 64; ++B)
340
+ T = x[B - 15], U = (T >>> 7 | T << 25) ^ (T >>> 18 | T << 14) ^ T >>> 3, T = x[B - 2], R = (T >>> 17 | T << 15) ^ (T >>> 19 | T << 13) ^ T >>> 10, x[B] = x[B - 16] + U + x[B - 7] + R << 0;
341
+ for (ie = o & u, B = 0; B < 64; B += 4)
342
+ this.first ? (this.is224 ? (j = 300032, T = x[0] - 1413257819, h = T - 150054599 << 0, f = T + 24177077 << 0) : (j = 704751109, T = x[0] - 210244248, h = T - 1521486534 << 0, f = T + 143694565 << 0), this.first = !1) : (U = (a >>> 2 | a << 30) ^ (a >>> 13 | a << 19) ^ (a >>> 22 | a << 10), R = (k >>> 6 | k << 26) ^ (k >>> 11 | k << 21) ^ (k >>> 25 | k << 7), j = a & o, V = j ^ a & u ^ ie, D = k & l ^ ~k & y, T = h + R + D + K[B] + x[B], J = U + V, h = f + T << 0, f = T + J << 0), U = (f >>> 2 | f << 30) ^ (f >>> 13 | f << 19) ^ (f >>> 22 | f << 10), R = (h >>> 6 | h << 26) ^ (h >>> 11 | h << 21) ^ (h >>> 25 | h << 7), he = f & a, V = he ^ f & o ^ j, D = h & k ^ ~h & l, T = y + R + D + K[B + 1] + x[B + 1], J = U + V, y = u + T << 0, u = T + J << 0, U = (u >>> 2 | u << 30) ^ (u >>> 13 | u << 19) ^ (u >>> 22 | u << 10), R = (y >>> 6 | y << 26) ^ (y >>> 11 | y << 21) ^ (y >>> 25 | y << 7), Q = u & f, V = Q ^ u & a ^ he, D = y & h ^ ~y & k, T = l + R + D + K[B + 2] + x[B + 2], J = U + V, l = o + T << 0, o = T + J << 0, U = (o >>> 2 | o << 30) ^ (o >>> 13 | o << 19) ^ (o >>> 22 | o << 10), R = (l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7), ie = o & u, V = ie ^ o & f ^ Q, D = l & y ^ ~l & h, T = k + R + D + K[B + 3] + x[B + 3], J = U + V, k = a + T << 0, a = T + J << 0;
343
+ this.h0 = this.h0 + a << 0, this.h1 = this.h1 + o << 0, this.h2 = this.h2 + u << 0, this.h3 = this.h3 + f << 0, this.h4 = this.h4 + k << 0, this.h5 = this.h5 + l << 0, this.h6 = this.h6 + y << 0, this.h7 = this.h7 + h << 0;
227
344
  }, Sha256.prototype.hex = function() {
228
345
  this.finalize();
229
- var a = this.h0, o = this.h1, d = this.h2, f = this.h3, y = this.h4, l = this.h5, k = this.h6, g = this.h7, _ = HEX_CHARS[a >> 28 & 15] + HEX_CHARS[a >> 24 & 15] + HEX_CHARS[a >> 20 & 15] + HEX_CHARS[a >> 16 & 15] + HEX_CHARS[a >> 12 & 15] + HEX_CHARS[a >> 8 & 15] + HEX_CHARS[a >> 4 & 15] + HEX_CHARS[a & 15] + HEX_CHARS[o >> 28 & 15] + HEX_CHARS[o >> 24 & 15] + HEX_CHARS[o >> 20 & 15] + HEX_CHARS[o >> 16 & 15] + HEX_CHARS[o >> 12 & 15] + HEX_CHARS[o >> 8 & 15] + HEX_CHARS[o >> 4 & 15] + HEX_CHARS[o & 15] + HEX_CHARS[d >> 28 & 15] + HEX_CHARS[d >> 24 & 15] + HEX_CHARS[d >> 20 & 15] + HEX_CHARS[d >> 16 & 15] + HEX_CHARS[d >> 12 & 15] + HEX_CHARS[d >> 8 & 15] + HEX_CHARS[d >> 4 & 15] + HEX_CHARS[d & 15] + HEX_CHARS[f >> 28 & 15] + HEX_CHARS[f >> 24 & 15] + HEX_CHARS[f >> 20 & 15] + HEX_CHARS[f >> 16 & 15] + HEX_CHARS[f >> 12 & 15] + HEX_CHARS[f >> 8 & 15] + HEX_CHARS[f >> 4 & 15] + HEX_CHARS[f & 15] + HEX_CHARS[y >> 28 & 15] + HEX_CHARS[y >> 24 & 15] + HEX_CHARS[y >> 20 & 15] + HEX_CHARS[y >> 16 & 15] + HEX_CHARS[y >> 12 & 15] + HEX_CHARS[y >> 8 & 15] + HEX_CHARS[y >> 4 & 15] + HEX_CHARS[y & 15] + HEX_CHARS[l >> 28 & 15] + HEX_CHARS[l >> 24 & 15] + HEX_CHARS[l >> 20 & 15] + HEX_CHARS[l >> 16 & 15] + HEX_CHARS[l >> 12 & 15] + HEX_CHARS[l >> 8 & 15] + HEX_CHARS[l >> 4 & 15] + HEX_CHARS[l & 15] + HEX_CHARS[k >> 28 & 15] + HEX_CHARS[k >> 24 & 15] + HEX_CHARS[k >> 20 & 15] + HEX_CHARS[k >> 16 & 15] + HEX_CHARS[k >> 12 & 15] + HEX_CHARS[k >> 8 & 15] + HEX_CHARS[k >> 4 & 15] + HEX_CHARS[k & 15];
230
- return this.is224 || (_ += HEX_CHARS[g >> 28 & 15] + HEX_CHARS[g >> 24 & 15] + HEX_CHARS[g >> 20 & 15] + HEX_CHARS[g >> 16 & 15] + HEX_CHARS[g >> 12 & 15] + HEX_CHARS[g >> 8 & 15] + HEX_CHARS[g >> 4 & 15] + HEX_CHARS[g & 15]), _;
346
+ var a = this.h0, o = this.h1, u = this.h2, f = this.h3, k = this.h4, l = this.h5, y = this.h6, h = this.h7, x = HEX_CHARS[a >> 28 & 15] + HEX_CHARS[a >> 24 & 15] + HEX_CHARS[a >> 20 & 15] + HEX_CHARS[a >> 16 & 15] + HEX_CHARS[a >> 12 & 15] + HEX_CHARS[a >> 8 & 15] + HEX_CHARS[a >> 4 & 15] + HEX_CHARS[a & 15] + HEX_CHARS[o >> 28 & 15] + HEX_CHARS[o >> 24 & 15] + HEX_CHARS[o >> 20 & 15] + HEX_CHARS[o >> 16 & 15] + HEX_CHARS[o >> 12 & 15] + HEX_CHARS[o >> 8 & 15] + HEX_CHARS[o >> 4 & 15] + HEX_CHARS[o & 15] + HEX_CHARS[u >> 28 & 15] + HEX_CHARS[u >> 24 & 15] + HEX_CHARS[u >> 20 & 15] + HEX_CHARS[u >> 16 & 15] + HEX_CHARS[u >> 12 & 15] + HEX_CHARS[u >> 8 & 15] + HEX_CHARS[u >> 4 & 15] + HEX_CHARS[u & 15] + HEX_CHARS[f >> 28 & 15] + HEX_CHARS[f >> 24 & 15] + HEX_CHARS[f >> 20 & 15] + HEX_CHARS[f >> 16 & 15] + HEX_CHARS[f >> 12 & 15] + HEX_CHARS[f >> 8 & 15] + HEX_CHARS[f >> 4 & 15] + HEX_CHARS[f & 15] + HEX_CHARS[k >> 28 & 15] + HEX_CHARS[k >> 24 & 15] + HEX_CHARS[k >> 20 & 15] + HEX_CHARS[k >> 16 & 15] + HEX_CHARS[k >> 12 & 15] + HEX_CHARS[k >> 8 & 15] + HEX_CHARS[k >> 4 & 15] + HEX_CHARS[k & 15] + HEX_CHARS[l >> 28 & 15] + HEX_CHARS[l >> 24 & 15] + HEX_CHARS[l >> 20 & 15] + HEX_CHARS[l >> 16 & 15] + HEX_CHARS[l >> 12 & 15] + HEX_CHARS[l >> 8 & 15] + HEX_CHARS[l >> 4 & 15] + HEX_CHARS[l & 15] + HEX_CHARS[y >> 28 & 15] + HEX_CHARS[y >> 24 & 15] + HEX_CHARS[y >> 20 & 15] + HEX_CHARS[y >> 16 & 15] + HEX_CHARS[y >> 12 & 15] + HEX_CHARS[y >> 8 & 15] + HEX_CHARS[y >> 4 & 15] + HEX_CHARS[y & 15];
347
+ return this.is224 || (x += HEX_CHARS[h >> 28 & 15] + HEX_CHARS[h >> 24 & 15] + HEX_CHARS[h >> 20 & 15] + HEX_CHARS[h >> 16 & 15] + HEX_CHARS[h >> 12 & 15] + HEX_CHARS[h >> 8 & 15] + HEX_CHARS[h >> 4 & 15] + HEX_CHARS[h & 15]), x;
231
348
  }, Sha256.prototype.toString = Sha256.prototype.hex, Sha256.prototype.digest = function() {
232
349
  this.finalize();
233
- var a = this.h0, o = this.h1, d = this.h2, f = this.h3, y = this.h4, l = this.h5, k = this.h6, g = this.h7, _ = [
350
+ var a = this.h0, o = this.h1, u = this.h2, f = this.h3, k = this.h4, l = this.h5, y = this.h6, h = this.h7, x = [
234
351
  a >> 24 & 255,
235
352
  a >> 16 & 255,
236
353
  a >> 8 & 255,
@@ -239,41 +356,41 @@ var sha256$1 = { exports: {} };
239
356
  o >> 16 & 255,
240
357
  o >> 8 & 255,
241
358
  o & 255,
242
- d >> 24 & 255,
243
- d >> 16 & 255,
244
- d >> 8 & 255,
245
- d & 255,
359
+ u >> 24 & 255,
360
+ u >> 16 & 255,
361
+ u >> 8 & 255,
362
+ u & 255,
246
363
  f >> 24 & 255,
247
364
  f >> 16 & 255,
248
365
  f >> 8 & 255,
249
366
  f & 255,
250
- y >> 24 & 255,
251
- y >> 16 & 255,
252
- y >> 8 & 255,
253
- y & 255,
367
+ k >> 24 & 255,
368
+ k >> 16 & 255,
369
+ k >> 8 & 255,
370
+ k & 255,
254
371
  l >> 24 & 255,
255
372
  l >> 16 & 255,
256
373
  l >> 8 & 255,
257
374
  l & 255,
258
- k >> 24 & 255,
259
- k >> 16 & 255,
260
- k >> 8 & 255,
261
- k & 255
375
+ y >> 24 & 255,
376
+ y >> 16 & 255,
377
+ y >> 8 & 255,
378
+ y & 255
262
379
  ];
263
- return this.is224 || _.push(g >> 24 & 255, g >> 16 & 255, g >> 8 & 255, g & 255), _;
380
+ return this.is224 || x.push(h >> 24 & 255, h >> 16 & 255, h >> 8 & 255, h & 255), x;
264
381
  }, Sha256.prototype.array = Sha256.prototype.digest, Sha256.prototype.arrayBuffer = function() {
265
382
  this.finalize();
266
383
  var a = new ArrayBuffer(this.is224 ? 28 : 32), o = new DataView(a);
267
384
  return o.setUint32(0, this.h0), o.setUint32(4, this.h1), o.setUint32(8, this.h2), o.setUint32(12, this.h3), o.setUint32(16, this.h4), o.setUint32(20, this.h5), o.setUint32(24, this.h6), this.is224 || o.setUint32(28, this.h7), a;
268
385
  };
269
- function HmacSha256(a, o, d) {
270
- var f, y = typeof a;
271
- if (y === "string") {
272
- var l = [], k = a.length, g = 0, _;
273
- for (f = 0; f < k; ++f)
274
- _ = a.charCodeAt(f), _ < 128 ? l[g++] = _ : _ < 2048 ? (l[g++] = 192 | _ >> 6, l[g++] = 128 | _ & 63) : _ < 55296 || _ >= 57344 ? (l[g++] = 224 | _ >> 12, l[g++] = 128 | _ >> 6 & 63, l[g++] = 128 | _ & 63) : (_ = 65536 + ((_ & 1023) << 10 | a.charCodeAt(++f) & 1023), l[g++] = 240 | _ >> 18, l[g++] = 128 | _ >> 12 & 63, l[g++] = 128 | _ >> 6 & 63, l[g++] = 128 | _ & 63);
386
+ function HmacSha256(a, o, u) {
387
+ var f, k = typeof a;
388
+ if (k === "string") {
389
+ var l = [], y = a.length, h = 0, x;
390
+ for (f = 0; f < y; ++f)
391
+ x = a.charCodeAt(f), x < 128 ? l[h++] = x : x < 2048 ? (l[h++] = 192 | x >> 6, l[h++] = 128 | x & 63) : x < 55296 || x >= 57344 ? (l[h++] = 224 | x >> 12, l[h++] = 128 | x >> 6 & 63, l[h++] = 128 | x & 63) : (x = 65536 + ((x & 1023) << 10 | a.charCodeAt(++f) & 1023), l[h++] = 240 | x >> 18, l[h++] = 128 | x >> 12 & 63, l[h++] = 128 | x >> 6 & 63, l[h++] = 128 | x & 63);
275
392
  a = l;
276
- } else if (y === "object") {
393
+ } else if (k === "object") {
277
394
  if (a === null)
278
395
  throw new Error(ERROR);
279
396
  if (ARRAY_BUFFER && a.constructor === ArrayBuffer)
@@ -283,12 +400,12 @@ var sha256$1 = { exports: {} };
283
400
  } else
284
401
  throw new Error(ERROR);
285
402
  a.length > 64 && (a = new Sha256(o, !0).update(a).array());
286
- var H = [], M = [];
403
+ var B = [], U = [];
287
404
  for (f = 0; f < 64; ++f) {
288
- var O = a[f] || 0;
289
- H[f] = 92 ^ O, M[f] = 54 ^ O;
405
+ var R = a[f] || 0;
406
+ B[f] = 92 ^ R, U[f] = 54 ^ R;
290
407
  }
291
- Sha256.call(this, o, d), this.update(M), this.oKeyPad = H, this.inner = !0, this.sharedMemory = d;
408
+ Sha256.call(this, o, u), this.update(U), this.oKeyPad = B, this.inner = !0, this.sharedMemory = u;
292
409
  }
293
410
  HmacSha256.prototype = new Sha256(), HmacSha256.prototype.finalize = function() {
294
411
  if (Sha256.prototype.finalize.call(this), this.inner) {
@@ -308,20 +425,20 @@ if (typeof Promise > "u")
308
425
  function Keycloak(a) {
309
426
  if (!(this instanceof Keycloak))
310
427
  throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");
311
- for (var o = this, d, f = [], y, l = {
428
+ for (var o = this, u, f = [], k, l = {
312
429
  enable: !0,
313
430
  callbackList: [],
314
431
  interval: 5
315
- }, k = document.getElementsByTagName("script"), g = 0; g < k.length; g++)
316
- (k[g].src.indexOf("keycloak.js") !== -1 || k[g].src.indexOf("keycloak.min.js") !== -1) && k[g].src.indexOf("version=") !== -1 && (o.iframeVersion = k[g].src.substring(k[g].src.indexOf("version=") + 8).split("&")[0]);
317
- var _ = !0, H = _e(console.info), M = _e(console.warn);
432
+ }, y = document.getElementsByTagName("script"), h = 0; h < y.length; h++)
433
+ (y[h].src.indexOf("keycloak.js") !== -1 || y[h].src.indexOf("keycloak.min.js") !== -1) && y[h].src.indexOf("version=") !== -1 && (o.iframeVersion = y[h].src.substring(y[h].src.indexOf("version=") + 8).split("&")[0]);
434
+ var x = !0, B = Ae(console.info), U = Ae(console.warn);
318
435
  o.init = function(s) {
319
436
  if (o.didInitialize)
320
437
  throw new Error("A 'Keycloak' instance can only be initialized once.");
321
- o.didInitialize = !0, o.authenticated = !1, y = ve();
438
+ o.didInitialize = !0, o.authenticated = !1, k = be();
322
439
  var c = ["default", "cordova", "cordova-native"];
323
- if (s && c.indexOf(s.adapter) > -1 ? d = I(s.adapter) : s && typeof s.adapter == "object" ? d = s.adapter : window.Cordova || window.cordova ? d = I("cordova") : d = I(), s) {
324
- if (typeof s.useNonce < "u" && (_ = s.useNonce), typeof s.checkLoginIframe < "u" && (l.enable = s.checkLoginIframe), s.checkLoginIframeInterval && (l.interval = s.checkLoginIframeInterval), s.onLoad === "login-required" && (o.loginRequired = !0), s.responseMode)
440
+ if (s && c.indexOf(s.adapter) > -1 ? u = I(s.adapter) : s && typeof s.adapter == "object" ? u = s.adapter : window.Cordova || window.cordova ? u = I("cordova") : u = I(), s) {
441
+ if (typeof s.useNonce < "u" && (x = s.useNonce), typeof s.checkLoginIframe < "u" && (l.enable = s.checkLoginIframe), s.checkLoginIframeInterval && (l.interval = s.checkLoginIframeInterval), s.onLoad === "login-required" && (o.loginRequired = !0), s.responseMode)
325
442
  if (s.responseMode === "query" || s.responseMode === "fragment")
326
443
  o.responseMode = s.responseMode;
327
444
  else
@@ -350,26 +467,26 @@ function Keycloak(a) {
350
467
  typeof s.enableLogging == "boolean" ? o.enableLogging = s.enableLogging : o.enableLogging = !1, typeof s.scope == "string" && (o.scope = s.scope), typeof s.messageReceiveTimeout == "number" && s.messageReceiveTimeout > 0 ? o.messageReceiveTimeout = s.messageReceiveTimeout : o.messageReceiveTimeout = 1e4;
351
468
  }
352
469
  o.responseMode || (o.responseMode = "fragment"), o.responseType || (o.responseType = "code", o.flow = "standard");
353
- var m = R(), w = R();
470
+ var g = M(), w = M();
354
471
  w.promise.then(function() {
355
- o.onReady && o.onReady(o.authenticated), m.setSuccess(o.authenticated);
356
- }).catch(function(S) {
357
- m.setError(S);
472
+ o.onReady && o.onReady(o.authenticated), g.setSuccess(o.authenticated);
473
+ }).catch(function(_) {
474
+ g.setError(_);
358
475
  });
359
- var p = ie();
476
+ var m = ie();
360
477
  function C() {
361
- var S = function(L) {
478
+ var _ = function(L) {
362
479
  L || (E.prompt = "none"), s && s.locale && (E.locale = s.locale), o.login(E).then(function() {
363
480
  w.setSuccess();
364
481
  }).catch(function(G) {
365
482
  w.setError(G);
366
483
  });
367
- }, x = function() {
484
+ }, S = function() {
368
485
  var L = document.createElement("iframe"), G = o.createLoginUrl({ prompt: "none", redirectUri: o.silentCheckSsoRedirectUri });
369
486
  L.setAttribute("src", G), L.setAttribute("sandbox", "allow-scripts allow-same-origin"), L.setAttribute("title", "keycloak-silent-check-sso"), L.style.display = "none", document.body.appendChild(L);
370
- var ne = function(j) {
371
- if (!(j.origin !== window.location.origin || L.contentWindow !== j.source)) {
372
- var pe = ae(j.data);
487
+ var ne = function($) {
488
+ if (!($.origin !== window.location.origin || L.contentWindow !== $.source)) {
489
+ var pe = ae($.data);
373
490
  Q(pe, w), document.body.removeChild(L), window.removeEventListener("message", ne);
374
491
  }
375
492
  };
@@ -379,82 +496,82 @@ function Keycloak(a) {
379
496
  case "check-sso":
380
497
  l.enable ? ce().then(function() {
381
498
  re().then(function(L) {
382
- L ? w.setSuccess() : o.silentCheckSsoRedirectUri ? x() : S(!1);
499
+ L ? w.setSuccess() : o.silentCheckSsoRedirectUri ? S() : _(!1);
383
500
  }).catch(function(L) {
384
501
  w.setError(L);
385
502
  });
386
- }) : o.silentCheckSsoRedirectUri ? x() : S(!1);
503
+ }) : o.silentCheckSsoRedirectUri ? S() : _(!1);
387
504
  break;
388
505
  case "login-required":
389
- S(!0);
506
+ _(!0);
390
507
  break;
391
508
  default:
392
509
  throw "Invalid value for onLoad";
393
510
  }
394
511
  }
395
- function b() {
396
- var S = ae(window.location.href);
397
- if (S && window.history.replaceState(window.history.state, null, S.newUrl), S && S.valid)
512
+ function v() {
513
+ var _ = ae(window.location.href);
514
+ if (_ && window.history.replaceState(window.history.state, null, _.newUrl), _ && _.valid)
398
515
  return ce().then(function() {
399
- Q(S, w);
400
- }).catch(function(x) {
401
- w.setError(x);
516
+ Q(_, w);
517
+ }).catch(function(S) {
518
+ w.setError(S);
402
519
  });
403
520
  s ? s.token && s.refreshToken ? (de(s.token, s.refreshToken, s.idToken), l.enable ? ce().then(function() {
404
- re().then(function(x) {
405
- x ? (o.onAuthSuccess && o.onAuthSuccess(), w.setSuccess(), N()) : w.setSuccess();
406
- }).catch(function(x) {
407
- w.setError(x);
521
+ re().then(function(S) {
522
+ S ? (o.onAuthSuccess && o.onAuthSuccess(), w.setSuccess(), N()) : w.setSuccess();
523
+ }).catch(function(S) {
524
+ w.setError(S);
408
525
  });
409
526
  }) : o.updateToken(-1).then(function() {
410
527
  o.onAuthSuccess && o.onAuthSuccess(), w.setSuccess();
411
- }).catch(function(x) {
412
- o.onAuthError && o.onAuthError(), s.onLoad ? C() : w.setError(x);
528
+ }).catch(function(S) {
529
+ o.onAuthError && o.onAuthError(), s.onLoad ? C() : w.setError(S);
413
530
  })) : s.onLoad ? C() : w.setSuccess() : w.setSuccess();
414
531
  }
415
- function v() {
416
- var S = R(), x = function() {
417
- (document.readyState === "interactive" || document.readyState === "complete") && (document.removeEventListener("readystatechange", x), S.setSuccess());
532
+ function b() {
533
+ var _ = M(), S = function() {
534
+ (document.readyState === "interactive" || document.readyState === "complete") && (document.removeEventListener("readystatechange", S), _.setSuccess());
418
535
  };
419
- return document.addEventListener("readystatechange", x), x(), S.promise;
536
+ return document.addEventListener("readystatechange", S), S(), _.promise;
420
537
  }
421
- return p.then(function() {
422
- v().then(Y).then(b).catch(function(S) {
423
- m.setError(S);
538
+ return m.then(function() {
539
+ b().then(Y).then(v).catch(function(_) {
540
+ g.setError(_);
424
541
  });
425
- }), p.catch(function(S) {
426
- m.setError(S);
427
- }), m.promise;
542
+ }), m.catch(function(_) {
543
+ g.setError(_);
544
+ }), g.promise;
428
545
  }, o.login = function(s) {
429
- return d.login(s);
546
+ return u.login(s);
430
547
  };
431
- function O(s) {
432
- var c = null, m = window.crypto || window.msCrypto;
433
- if (m && m.getRandomValues && window.Uint8Array)
434
- return c = new Uint8Array(s), m.getRandomValues(c), c;
548
+ function R(s) {
549
+ var c = null, g = window.crypto || window.msCrypto;
550
+ if (g && g.getRandomValues && window.Uint8Array)
551
+ return c = new Uint8Array(s), g.getRandomValues(c), c;
435
552
  c = new Array(s);
436
553
  for (var w = 0; w < c.length; w++)
437
554
  c[w] = Math.floor(256 * Math.random());
438
555
  return c;
439
556
  }
440
- function W(s) {
441
- return B(s, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
557
+ function V(s) {
558
+ return T(s, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789");
442
559
  }
443
- function B(s, c) {
444
- for (var m = O(s), w = new Array(s), p = 0; p < s; p++)
445
- w[p] = c.charCodeAt(m[p] % c.length);
560
+ function T(s, c) {
561
+ for (var g = R(s), w = new Array(s), m = 0; m < s; m++)
562
+ w[m] = c.charCodeAt(g[m] % c.length);
446
563
  return String.fromCharCode.apply(null, w);
447
564
  }
448
565
  function J(s, c) {
449
566
  switch (s) {
450
567
  case "S256":
451
- var m = new Uint8Array(sha256.arrayBuffer(c)), w = base64Js.fromByteArray(m).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
568
+ var g = new Uint8Array(sha256.arrayBuffer(c)), w = base64Js.fromByteArray(g).replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "");
452
569
  return w;
453
570
  default:
454
571
  throw "Invalid value for pkceMethod";
455
572
  }
456
573
  }
457
- function V(s) {
574
+ function D(s) {
458
575
  var c = {
459
576
  id_token: {
460
577
  acr: s
@@ -463,69 +580,69 @@ function Keycloak(a) {
463
580
  return JSON.stringify(c);
464
581
  }
465
582
  o.createLoginUrl = function(s) {
466
- var c = Ie(), m = Ie(), w = d.redirectUri(s), p = {
583
+ var c = Ie(), g = Ie(), w = u.redirectUri(s), m = {
467
584
  state: c,
468
- nonce: m,
585
+ nonce: g,
469
586
  redirectUri: encodeURIComponent(w)
470
587
  };
471
- s && s.prompt && (p.prompt = s.prompt);
588
+ s && s.prompt && (m.prompt = s.prompt);
472
589
  var C;
473
590
  s && s.action == "register" ? C = o.endpoints.register() : C = o.endpoints.authorize();
474
- var b = s && s.scope || o.scope;
475
- b ? b.indexOf("openid") === -1 && (b = "openid " + b) : b = "openid";
476
- var v = C + "?client_id=" + encodeURIComponent(o.clientId) + "&redirect_uri=" + encodeURIComponent(w) + "&state=" + encodeURIComponent(c) + "&response_mode=" + encodeURIComponent(o.responseMode) + "&response_type=" + encodeURIComponent(o.responseType) + "&scope=" + encodeURIComponent(b);
477
- if (_ && (v = v + "&nonce=" + encodeURIComponent(m)), s && s.prompt && (v += "&prompt=" + encodeURIComponent(s.prompt)), s && s.maxAge && (v += "&max_age=" + encodeURIComponent(s.maxAge)), s && s.loginHint && (v += "&login_hint=" + encodeURIComponent(s.loginHint)), s && s.idpHint && (v += "&kc_idp_hint=" + encodeURIComponent(s.idpHint)), s && s.action && s.action != "register" && (v += "&kc_action=" + encodeURIComponent(s.action)), s && s.locale && (v += "&ui_locales=" + encodeURIComponent(s.locale)), s && s.acr) {
478
- var S = V(s.acr);
479
- v += "&claims=" + encodeURIComponent(S);
591
+ var v = s && s.scope || o.scope;
592
+ v ? v.indexOf("openid") === -1 && (v = "openid " + v) : v = "openid";
593
+ var b = C + "?client_id=" + encodeURIComponent(o.clientId) + "&redirect_uri=" + encodeURIComponent(w) + "&state=" + encodeURIComponent(c) + "&response_mode=" + encodeURIComponent(o.responseMode) + "&response_type=" + encodeURIComponent(o.responseType) + "&scope=" + encodeURIComponent(v);
594
+ if (x && (b = b + "&nonce=" + encodeURIComponent(g)), s && s.prompt && (b += "&prompt=" + encodeURIComponent(s.prompt)), s && s.maxAge && (b += "&max_age=" + encodeURIComponent(s.maxAge)), s && s.loginHint && (b += "&login_hint=" + encodeURIComponent(s.loginHint)), s && s.idpHint && (b += "&kc_idp_hint=" + encodeURIComponent(s.idpHint)), s && s.action && s.action != "register" && (b += "&kc_action=" + encodeURIComponent(s.action)), s && s.locale && (b += "&ui_locales=" + encodeURIComponent(s.locale)), s && s.acr) {
595
+ var _ = D(s.acr);
596
+ b += "&claims=" + encodeURIComponent(_);
480
597
  }
481
598
  if (o.pkceMethod) {
482
- var x = W(96);
483
- p.pkceCodeVerifier = x;
484
- var E = J(o.pkceMethod, x);
485
- v += "&code_challenge=" + E, v += "&code_challenge_method=" + o.pkceMethod;
599
+ var S = V(96);
600
+ m.pkceCodeVerifier = S;
601
+ var E = J(o.pkceMethod, S);
602
+ b += "&code_challenge=" + E, b += "&code_challenge_method=" + o.pkceMethod;
486
603
  }
487
- return y.add(p), v;
604
+ return k.add(m), b;
488
605
  }, o.logout = function(s) {
489
- return d.logout(s);
606
+ return u.logout(s);
490
607
  }, o.createLogoutUrl = function(s) {
491
- var c = o.endpoints.logout() + "?client_id=" + encodeURIComponent(o.clientId) + "&post_logout_redirect_uri=" + encodeURIComponent(d.redirectUri(s, !1));
608
+ var c = o.endpoints.logout() + "?client_id=" + encodeURIComponent(o.clientId) + "&post_logout_redirect_uri=" + encodeURIComponent(u.redirectUri(s, !1));
492
609
  return o.idToken && (c += "&id_token_hint=" + encodeURIComponent(o.idToken)), c;
493
610
  }, o.register = function(s) {
494
- return d.register(s);
611
+ return u.register(s);
495
612
  }, o.createRegisterUrl = function(s) {
496
613
  return s || (s = {}), s.action = "register", o.createLoginUrl(s);
497
614
  }, o.createAccountUrl = function(s) {
498
- var c = D(), m = void 0;
499
- return typeof c < "u" && (m = c + "/account?referrer=" + encodeURIComponent(o.clientId) + "&referrer_uri=" + encodeURIComponent(d.redirectUri(s))), m;
615
+ var c = j(), g = void 0;
616
+ return typeof c < "u" && (g = c + "/account?referrer=" + encodeURIComponent(o.clientId) + "&referrer_uri=" + encodeURIComponent(u.redirectUri(s))), g;
500
617
  }, o.accountManagement = function() {
501
- return d.accountManagement();
618
+ return u.accountManagement();
502
619
  }, o.hasRealmRole = function(s) {
503
620
  var c = o.realmAccess;
504
621
  return !!c && c.roles.indexOf(s) >= 0;
505
622
  }, o.hasResourceRole = function(s, c) {
506
623
  if (!o.resourceAccess)
507
624
  return !1;
508
- var m = o.resourceAccess[c || o.clientId];
509
- return !!m && m.roles.indexOf(s) >= 0;
625
+ var g = o.resourceAccess[c || o.clientId];
626
+ return !!g && g.roles.indexOf(s) >= 0;
510
627
  }, o.loadUserProfile = function() {
511
- var s = D() + "/account", c = new XMLHttpRequest();
628
+ var s = j() + "/account", c = new XMLHttpRequest();
512
629
  c.open("GET", s, !0), c.setRequestHeader("Accept", "application/json"), c.setRequestHeader("Authorization", "bearer " + o.token);
513
- var m = R();
630
+ var g = M();
514
631
  return c.onreadystatechange = function() {
515
- c.readyState == 4 && (c.status == 200 ? (o.profile = JSON.parse(c.responseText), m.setSuccess(o.profile)) : m.setError());
516
- }, c.send(), m.promise;
632
+ c.readyState == 4 && (c.status == 200 ? (o.profile = JSON.parse(c.responseText), g.setSuccess(o.profile)) : g.setError());
633
+ }, c.send(), g.promise;
517
634
  }, o.loadUserInfo = function() {
518
635
  var s = o.endpoints.userinfo(), c = new XMLHttpRequest();
519
636
  c.open("GET", s, !0), c.setRequestHeader("Accept", "application/json"), c.setRequestHeader("Authorization", "bearer " + o.token);
520
- var m = R();
637
+ var g = M();
521
638
  return c.onreadystatechange = function() {
522
- c.readyState == 4 && (c.status == 200 ? (o.userInfo = JSON.parse(c.responseText), m.setSuccess(o.userInfo)) : m.setError());
523
- }, c.send(), m.promise;
639
+ c.readyState == 4 && (c.status == 200 ? (o.userInfo = JSON.parse(c.responseText), g.setSuccess(o.userInfo)) : g.setError());
640
+ }, c.send(), g.promise;
524
641
  }, o.isTokenExpired = function(s) {
525
642
  if (!o.tokenParsed || !o.refreshToken && o.flow != "implicit")
526
643
  throw "Not authenticated";
527
644
  if (o.timeSkew == null)
528
- return H("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"), !0;
645
+ return B("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"), !0;
529
646
  var c = o.tokenParsed.exp - Math.ceil((/* @__PURE__ */ new Date()).getTime() / 1e3) + o.timeSkew;
530
647
  if (s) {
531
648
  if (isNaN(s))
@@ -534,51 +651,51 @@ function Keycloak(a) {
534
651
  }
535
652
  return c < 0;
536
653
  }, o.updateToken = function(s) {
537
- var c = R();
654
+ var c = M();
538
655
  if (!o.refreshToken)
539
656
  return c.setError(), c.promise;
540
657
  s = s || 5;
541
- var m = function() {
542
- var p = !1;
543
- if (s == -1 ? (p = !0, H("[KEYCLOAK] Refreshing token: forced refresh")) : (!o.tokenParsed || o.isTokenExpired(s)) && (p = !0, H("[KEYCLOAK] Refreshing token: token expired")), !p)
658
+ var g = function() {
659
+ var m = !1;
660
+ if (s == -1 ? (m = !0, B("[KEYCLOAK] Refreshing token: forced refresh")) : (!o.tokenParsed || o.isTokenExpired(s)) && (m = !0, B("[KEYCLOAK] Refreshing token: token expired")), !m)
544
661
  c.setSuccess(!1);
545
662
  else {
546
- var C = "grant_type=refresh_token&refresh_token=" + o.refreshToken, b = o.endpoints.token();
663
+ var C = "grant_type=refresh_token&refresh_token=" + o.refreshToken, v = o.endpoints.token();
547
664
  if (f.push(c), f.length == 1) {
548
- var v = new XMLHttpRequest();
549
- v.open("POST", b, !0), v.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), v.withCredentials = !0, C += "&client_id=" + encodeURIComponent(o.clientId);
550
- var S = (/* @__PURE__ */ new Date()).getTime();
551
- v.onreadystatechange = function() {
552
- if (v.readyState == 4)
553
- if (v.status == 200) {
554
- H("[KEYCLOAK] Token refreshed"), S = (S + (/* @__PURE__ */ new Date()).getTime()) / 2;
555
- var x = JSON.parse(v.responseText);
556
- de(x.access_token, x.refresh_token, x.id_token, S), o.onAuthRefreshSuccess && o.onAuthRefreshSuccess();
665
+ var b = new XMLHttpRequest();
666
+ b.open("POST", v, !0), b.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), b.withCredentials = !0, C += "&client_id=" + encodeURIComponent(o.clientId);
667
+ var _ = (/* @__PURE__ */ new Date()).getTime();
668
+ b.onreadystatechange = function() {
669
+ if (b.readyState == 4)
670
+ if (b.status == 200) {
671
+ B("[KEYCLOAK] Token refreshed"), _ = (_ + (/* @__PURE__ */ new Date()).getTime()) / 2;
672
+ var S = JSON.parse(b.responseText);
673
+ de(S.access_token, S.refresh_token, S.id_token, _), o.onAuthRefreshSuccess && o.onAuthRefreshSuccess();
557
674
  for (var E = f.pop(); E != null; E = f.pop())
558
675
  E.setSuccess(!0);
559
676
  } else {
560
- M("[KEYCLOAK] Failed to refresh token"), v.status == 400 && o.clearToken(), o.onAuthRefreshError && o.onAuthRefreshError();
677
+ U("[KEYCLOAK] Failed to refresh token"), b.status == 400 && o.clearToken(), o.onAuthRefreshError && o.onAuthRefreshError();
561
678
  for (var E = f.pop(); E != null; E = f.pop())
562
679
  E.setError(!0);
563
680
  }
564
- }, v.send(C);
681
+ }, b.send(C);
565
682
  }
566
683
  }
567
684
  };
568
685
  if (l.enable) {
569
686
  var w = re();
570
687
  w.then(function() {
571
- m();
572
- }).catch(function(p) {
573
- c.setError(p);
688
+ g();
689
+ }).catch(function(m) {
690
+ c.setError(m);
574
691
  });
575
692
  } else
576
- m();
693
+ g();
577
694
  return c.promise;
578
695
  }, o.clearToken = function() {
579
696
  o.token && (de(null, null, null), o.onAuthLogout && o.onAuthLogout(), o.loginRequired && o.login());
580
697
  };
581
- function D() {
698
+ function j() {
582
699
  if (typeof o.authServerUrl < "u")
583
700
  return o.authServerUrl.charAt(o.authServerUrl.length - 1) == "/" ? o.authServerUrl + "realms/" + encodeURIComponent(o.realm) : o.authServerUrl + "/realms/" + encodeURIComponent(o.realm);
584
701
  }
@@ -586,96 +703,96 @@ function Keycloak(a) {
586
703
  return window.location.origin ? window.location.origin : window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : "");
587
704
  }
588
705
  function Q(s, c) {
589
- var m = s.code, w = s.error, p = s.prompt, C = (/* @__PURE__ */ new Date()).getTime();
706
+ var g = s.code, w = s.error, m = s.prompt, C = (/* @__PURE__ */ new Date()).getTime();
590
707
  if (s.kc_action_status && o.onActionUpdate && o.onActionUpdate(s.kc_action_status), w) {
591
- if (p != "none") {
592
- var b = { error: w, error_description: s.error_description };
593
- o.onAuthError && o.onAuthError(b), c && c.setError(b);
708
+ if (m != "none") {
709
+ var v = { error: w, error_description: s.error_description };
710
+ o.onAuthError && o.onAuthError(v), c && c.setError(v);
594
711
  } else
595
712
  c && c.setSuccess();
596
713
  return;
597
714
  } else
598
715
  o.flow != "standard" && (s.access_token || s.id_token) && E(s.access_token, null, s.id_token, !0);
599
- if (o.flow != "implicit" && m) {
600
- var v = "code=" + m + "&grant_type=authorization_code", S = o.endpoints.token(), x = new XMLHttpRequest();
601
- x.open("POST", S, !0), x.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), v += "&client_id=" + encodeURIComponent(o.clientId), v += "&redirect_uri=" + s.redirectUri, s.pkceCodeVerifier && (v += "&code_verifier=" + s.pkceCodeVerifier), x.withCredentials = !0, x.onreadystatechange = function() {
602
- if (x.readyState == 4)
603
- if (x.status == 200) {
604
- var L = JSON.parse(x.responseText);
716
+ if (o.flow != "implicit" && g) {
717
+ var b = "code=" + g + "&grant_type=authorization_code", _ = o.endpoints.token(), S = new XMLHttpRequest();
718
+ S.open("POST", _, !0), S.setRequestHeader("Content-type", "application/x-www-form-urlencoded"), b += "&client_id=" + encodeURIComponent(o.clientId), b += "&redirect_uri=" + s.redirectUri, s.pkceCodeVerifier && (b += "&code_verifier=" + s.pkceCodeVerifier), S.withCredentials = !0, S.onreadystatechange = function() {
719
+ if (S.readyState == 4)
720
+ if (S.status == 200) {
721
+ var L = JSON.parse(S.responseText);
605
722
  E(L.access_token, L.refresh_token, L.id_token, o.flow === "standard"), N();
606
723
  } else
607
724
  o.onAuthError && o.onAuthError(), c && c.setError();
608
- }, x.send(v);
725
+ }, S.send(b);
609
726
  }
610
- function E(L, G, ne, j) {
611
- C = (C + (/* @__PURE__ */ new Date()).getTime()) / 2, de(L, G, ne, C), _ && (o.tokenParsed && o.tokenParsed.nonce != s.storedNonce || o.refreshTokenParsed && o.refreshTokenParsed.nonce != s.storedNonce || o.idTokenParsed && o.idTokenParsed.nonce != s.storedNonce) ? (H("[KEYCLOAK] Invalid nonce, clearing token"), o.clearToken(), c && c.setError()) : j && (o.onAuthSuccess && o.onAuthSuccess(), c && c.setSuccess());
727
+ function E(L, G, ne, $) {
728
+ C = (C + (/* @__PURE__ */ new Date()).getTime()) / 2, de(L, G, ne, C), x && (o.tokenParsed && o.tokenParsed.nonce != s.storedNonce || o.refreshTokenParsed && o.refreshTokenParsed.nonce != s.storedNonce || o.idTokenParsed && o.idTokenParsed.nonce != s.storedNonce) ? (B("[KEYCLOAK] Invalid nonce, clearing token"), o.clearToken(), c && c.setError()) : $ && (o.onAuthSuccess && o.onAuthSuccess(), c && c.setSuccess());
612
729
  }
613
730
  }
614
731
  function ie(s) {
615
- var c = R(), m;
616
- a ? typeof a == "string" && (m = a) : m = "keycloak.json";
617
- function w(x) {
618
- x ? o.endpoints = {
732
+ var c = M(), g;
733
+ a ? typeof a == "string" && (g = a) : g = "keycloak.json";
734
+ function w(S) {
735
+ S ? o.endpoints = {
619
736
  authorize: function() {
620
- return x.authorization_endpoint;
737
+ return S.authorization_endpoint;
621
738
  },
622
739
  token: function() {
623
- return x.token_endpoint;
740
+ return S.token_endpoint;
624
741
  },
625
742
  logout: function() {
626
- if (!x.end_session_endpoint)
743
+ if (!S.end_session_endpoint)
627
744
  throw "Not supported by the OIDC server";
628
- return x.end_session_endpoint;
745
+ return S.end_session_endpoint;
629
746
  },
630
747
  checkSessionIframe: function() {
631
- if (!x.check_session_iframe)
748
+ if (!S.check_session_iframe)
632
749
  throw "Not supported by the OIDC server";
633
- return x.check_session_iframe;
750
+ return S.check_session_iframe;
634
751
  },
635
752
  register: function() {
636
753
  throw 'Redirection to "Register user" page not supported in standard OIDC mode';
637
754
  },
638
755
  userinfo: function() {
639
- if (!x.userinfo_endpoint)
756
+ if (!S.userinfo_endpoint)
640
757
  throw "Not supported by the OIDC server";
641
- return x.userinfo_endpoint;
758
+ return S.userinfo_endpoint;
642
759
  }
643
760
  } : o.endpoints = {
644
761
  authorize: function() {
645
- return D() + "/protocol/openid-connect/auth";
762
+ return j() + "/protocol/openid-connect/auth";
646
763
  },
647
764
  token: function() {
648
- return D() + "/protocol/openid-connect/token";
765
+ return j() + "/protocol/openid-connect/token";
649
766
  },
650
767
  logout: function() {
651
- return D() + "/protocol/openid-connect/logout";
768
+ return j() + "/protocol/openid-connect/logout";
652
769
  },
653
770
  checkSessionIframe: function() {
654
- var E = D() + "/protocol/openid-connect/login-status-iframe.html";
771
+ var E = j() + "/protocol/openid-connect/login-status-iframe.html";
655
772
  return o.iframeVersion && (E = E + "?version=" + o.iframeVersion), E;
656
773
  },
657
774
  thirdPartyCookiesIframe: function() {
658
- var E = D() + "/protocol/openid-connect/3p-cookies/step1.html";
775
+ var E = j() + "/protocol/openid-connect/3p-cookies/step1.html";
659
776
  return o.iframeVersion && (E = E + "?version=" + o.iframeVersion), E;
660
777
  },
661
778
  register: function() {
662
- return D() + "/protocol/openid-connect/registrations";
779
+ return j() + "/protocol/openid-connect/registrations";
663
780
  },
664
781
  userinfo: function() {
665
- return D() + "/protocol/openid-connect/userinfo";
782
+ return j() + "/protocol/openid-connect/userinfo";
666
783
  }
667
784
  };
668
785
  }
669
- if (m) {
670
- var p = new XMLHttpRequest();
671
- p.open("GET", m, !0), p.setRequestHeader("Accept", "application/json"), p.onreadystatechange = function() {
672
- if (p.readyState == 4)
673
- if (p.status == 200 || Se(p)) {
674
- var x = JSON.parse(p.responseText);
675
- o.authServerUrl = x["auth-server-url"], o.realm = x.realm, o.clientId = x.resource, w(null), c.setSuccess();
786
+ if (g) {
787
+ var m = new XMLHttpRequest();
788
+ m.open("GET", g, !0), m.setRequestHeader("Accept", "application/json"), m.onreadystatechange = function() {
789
+ if (m.readyState == 4)
790
+ if (m.status == 200 || Se(m)) {
791
+ var S = JSON.parse(m.responseText);
792
+ o.authServerUrl = S["auth-server-url"], o.realm = S.realm, o.clientId = S.resource, w(null), c.setSuccess();
676
793
  } else
677
794
  c.setError();
678
- }, p.send();
795
+ }, m.send();
679
796
  } else {
680
797
  if (!a.clientId)
681
798
  throw "clientId missing";
@@ -683,24 +800,24 @@ function Keycloak(a) {
683
800
  var C = a.oidcProvider;
684
801
  if (C)
685
802
  if (typeof C == "string") {
686
- var S;
687
- C.charAt(C.length - 1) == "/" ? S = C + ".well-known/openid-configuration" : S = C + "/.well-known/openid-configuration";
688
- var p = new XMLHttpRequest();
689
- p.open("GET", S, !0), p.setRequestHeader("Accept", "application/json"), p.onreadystatechange = function() {
690
- if (p.readyState == 4)
691
- if (p.status == 200 || Se(p)) {
692
- var E = JSON.parse(p.responseText);
803
+ var _;
804
+ C.charAt(C.length - 1) == "/" ? _ = C + ".well-known/openid-configuration" : _ = C + "/.well-known/openid-configuration";
805
+ var m = new XMLHttpRequest();
806
+ m.open("GET", _, !0), m.setRequestHeader("Accept", "application/json"), m.onreadystatechange = function() {
807
+ if (m.readyState == 4)
808
+ if (m.status == 200 || Se(m)) {
809
+ var E = JSON.parse(m.responseText);
693
810
  w(E), c.setSuccess();
694
811
  } else
695
812
  c.setError();
696
- }, p.send();
813
+ }, m.send();
697
814
  } else
698
815
  w(C), c.setSuccess();
699
816
  else {
700
817
  if (!a.url) {
701
- for (var b = document.getElementsByTagName("script"), v = 0; v < b.length; v++)
702
- if (b[v].src.match(/.*keycloak\.js/)) {
703
- a.url = b[v].src.substr(0, b[v].src.indexOf("/js/keycloak.js"));
818
+ for (var v = document.getElementsByTagName("script"), b = 0; b < v.length; b++)
819
+ if (v[b].src.match(/.*keycloak\.js/)) {
820
+ a.url = v[b].src.substr(0, v[b].src.indexOf("/js/keycloak.js"));
704
821
  break;
705
822
  }
706
823
  }
@@ -714,16 +831,16 @@ function Keycloak(a) {
714
831
  function Se(s) {
715
832
  return s.status == 0 && s.responseText && s.responseURL.startsWith("file:");
716
833
  }
717
- function de(s, c, m, w) {
718
- if (o.tokenTimeoutHandle && (clearTimeout(o.tokenTimeoutHandle), o.tokenTimeoutHandle = null), c ? (o.refreshToken = c, o.refreshTokenParsed = Ae(c)) : (delete o.refreshToken, delete o.refreshTokenParsed), m ? (o.idToken = m, o.idTokenParsed = Ae(m)) : (delete o.idToken, delete o.idTokenParsed), s) {
719
- if (o.token = s, o.tokenParsed = Ae(s), o.sessionId = o.tokenParsed.session_state, o.authenticated = !0, o.subject = o.tokenParsed.sub, o.realmAccess = o.tokenParsed.realm_access, o.resourceAccess = o.tokenParsed.resource_access, w && (o.timeSkew = Math.floor(w / 1e3) - o.tokenParsed.iat), o.timeSkew != null && (H("[KEYCLOAK] Estimated time difference between browser and server is " + o.timeSkew + " seconds"), o.onTokenExpired)) {
720
- var p = (o.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + o.timeSkew) * 1e3;
721
- H("[KEYCLOAK] Token expires in " + Math.round(p / 1e3) + " s"), p <= 0 ? o.onTokenExpired() : o.tokenTimeoutHandle = setTimeout(o.onTokenExpired, p);
834
+ function de(s, c, g, w) {
835
+ if (o.tokenTimeoutHandle && (clearTimeout(o.tokenTimeoutHandle), o.tokenTimeoutHandle = null), c ? (o.refreshToken = c, o.refreshTokenParsed = _e(c)) : (delete o.refreshToken, delete o.refreshTokenParsed), g ? (o.idToken = g, o.idTokenParsed = _e(g)) : (delete o.idToken, delete o.idTokenParsed), s) {
836
+ if (o.token = s, o.tokenParsed = _e(s), o.sessionId = o.tokenParsed.session_state, o.authenticated = !0, o.subject = o.tokenParsed.sub, o.realmAccess = o.tokenParsed.realm_access, o.resourceAccess = o.tokenParsed.resource_access, w && (o.timeSkew = Math.floor(w / 1e3) - o.tokenParsed.iat), o.timeSkew != null && (B("[KEYCLOAK] Estimated time difference between browser and server is " + o.timeSkew + " seconds"), o.onTokenExpired)) {
837
+ var m = (o.tokenParsed.exp - (/* @__PURE__ */ new Date()).getTime() / 1e3 + o.timeSkew) * 1e3;
838
+ B("[KEYCLOAK] Token expires in " + Math.round(m / 1e3) + " s"), m <= 0 ? o.onTokenExpired() : o.tokenTimeoutHandle = setTimeout(o.onTokenExpired, m);
722
839
  }
723
840
  } else
724
841
  delete o.token, delete o.tokenParsed, delete o.subject, delete o.realmAccess, delete o.resourceAccess, o.authenticated = !1;
725
842
  }
726
- function Ae(s) {
843
+ function _e(s) {
727
844
  switch (s = s.split(".")[1], s = s.replace(/-/g, "+"), s = s.replace(/_/g, "/"), s.length % 4) {
728
845
  case 0:
729
846
  break;
@@ -739,16 +856,16 @@ function Keycloak(a) {
739
856
  return s = decodeURIComponent(escape(atob(s))), s = JSON.parse(s), s;
740
857
  }
741
858
  function Ie() {
742
- var s = "0123456789abcdef", c = B(36, s).split("");
859
+ var s = "0123456789abcdef", c = T(36, s).split("");
743
860
  c[14] = "4", c[19] = s.substr(c[19] & 3 | 8, 1), c[8] = c[13] = c[18] = c[23] = "-";
744
- var m = c.join("");
745
- return m;
861
+ var g = c.join("");
862
+ return g;
746
863
  }
747
864
  function ae(s) {
748
865
  var c = Oe(s);
749
866
  if (c) {
750
- var m = y.get(c.state);
751
- return m && (c.valid = !0, c.redirectUri = m.redirectUri, c.storedNonce = m.nonce, c.prompt = m.prompt, c.pkceCodeVerifier = m.pkceCodeVerifier), c;
867
+ var g = k.get(c.state);
868
+ return g && (c.valid = !0, c.redirectUri = g.redirectUri, c.storedNonce = g.nonce, c.prompt = g.prompt, c.pkceCodeVerifier = g.pkceCodeVerifier), c;
752
869
  }
753
870
  }
754
871
  function Oe(s) {
@@ -765,26 +882,26 @@ function Keycloak(a) {
765
882
  break;
766
883
  }
767
884
  c.push("error"), c.push("error_description"), c.push("error_uri");
768
- var m = s.indexOf("?"), w = s.indexOf("#"), p, C;
769
- if (o.responseMode === "query" && m !== -1 ? (p = s.substring(0, m), C = Fe(s.substring(m + 1, w !== -1 ? w : s.length), c), C.paramsString !== "" && (p += "?" + C.paramsString), w !== -1 && (p += s.substring(w))) : o.responseMode === "fragment" && w !== -1 && (p = s.substring(0, w), C = Fe(s.substring(w + 1), c), C.paramsString !== "" && (p += "#" + C.paramsString)), C && C.oauthParams) {
885
+ var g = s.indexOf("?"), w = s.indexOf("#"), m, C;
886
+ if (o.responseMode === "query" && g !== -1 ? (m = s.substring(0, g), C = Fe(s.substring(g + 1, w !== -1 ? w : s.length), c), C.paramsString !== "" && (m += "?" + C.paramsString), w !== -1 && (m += s.substring(w))) : o.responseMode === "fragment" && w !== -1 && (m = s.substring(0, w), C = Fe(s.substring(w + 1), c), C.paramsString !== "" && (m += "#" + C.paramsString)), C && C.oauthParams) {
770
887
  if (o.flow === "standard" || o.flow === "hybrid") {
771
888
  if ((C.oauthParams.code || C.oauthParams.error) && C.oauthParams.state)
772
- return C.oauthParams.newUrl = p, C.oauthParams;
889
+ return C.oauthParams.newUrl = m, C.oauthParams;
773
890
  } else if (o.flow === "implicit" && (C.oauthParams.access_token || C.oauthParams.error) && C.oauthParams.state)
774
- return C.oauthParams.newUrl = p, C.oauthParams;
891
+ return C.oauthParams.newUrl = m, C.oauthParams;
775
892
  }
776
893
  }
777
894
  function Fe(s, c) {
778
- for (var m = s.split("&"), w = {
895
+ for (var g = s.split("&"), w = {
779
896
  paramsString: "",
780
897
  oauthParams: {}
781
- }, p = 0; p < m.length; p++) {
782
- var C = m[p].indexOf("="), b = m[p].slice(0, C);
783
- c.indexOf(b) !== -1 ? w.oauthParams[b] = m[p].slice(C + 1) : (w.paramsString !== "" && (w.paramsString += "&"), w.paramsString += m[p]);
898
+ }, m = 0; m < g.length; m++) {
899
+ var C = g[m].indexOf("="), v = g[m].slice(0, C);
900
+ c.indexOf(v) !== -1 ? w.oauthParams[v] = g[m].slice(C + 1) : (w.paramsString !== "" && (w.paramsString += "&"), w.paramsString += g[m]);
784
901
  }
785
902
  return w;
786
903
  }
787
- function R() {
904
+ function M() {
788
905
  var s = {
789
906
  setSuccess: function(c) {
790
907
  s.resolve(c);
@@ -793,37 +910,37 @@ function Keycloak(a) {
793
910
  s.reject(c);
794
911
  }
795
912
  };
796
- return s.promise = new Promise(function(c, m) {
797
- s.resolve = c, s.reject = m;
913
+ return s.promise = new Promise(function(c, g) {
914
+ s.resolve = c, s.reject = g;
798
915
  }), s;
799
916
  }
800
- function u(s, c, m) {
801
- var w = null, p = new Promise(function(C, b) {
917
+ function d(s, c, g) {
918
+ var w = null, m = new Promise(function(C, v) {
802
919
  w = setTimeout(function() {
803
- b({ error: m || "Promise is not settled within timeout of " + c + "ms" });
920
+ v({ error: g || "Promise is not settled within timeout of " + c + "ms" });
804
921
  }, c);
805
922
  });
806
- return Promise.race([s, p]).finally(function() {
923
+ return Promise.race([s, m]).finally(function() {
807
924
  clearTimeout(w);
808
925
  });
809
926
  }
810
927
  function ce() {
811
- var s = R();
928
+ var s = M();
812
929
  if (!l.enable || l.iframe)
813
930
  return s.setSuccess(), s.promise;
814
931
  var c = document.createElement("iframe");
815
932
  l.iframe = c, c.onload = function() {
816
- var p = o.endpoints.authorize();
817
- p.charAt(0) === "/" ? l.iframeOrigin = he() : l.iframeOrigin = p.substring(0, p.indexOf("/", 8)), s.setSuccess();
933
+ var m = o.endpoints.authorize();
934
+ m.charAt(0) === "/" ? l.iframeOrigin = he() : l.iframeOrigin = m.substring(0, m.indexOf("/", 8)), s.setSuccess();
818
935
  };
819
- var m = o.endpoints.checkSessionIframe();
820
- c.setAttribute("src", m), c.setAttribute("sandbox", "allow-scripts allow-same-origin"), c.setAttribute("title", "keycloak-session-iframe"), c.style.display = "none", document.body.appendChild(c);
821
- var w = function(p) {
822
- if (!(p.origin !== l.iframeOrigin || l.iframe.contentWindow !== p.source) && (p.data == "unchanged" || p.data == "changed" || p.data == "error")) {
823
- p.data != "unchanged" && o.clearToken();
824
- for (var C = l.callbackList.splice(0, l.callbackList.length), b = C.length - 1; b >= 0; --b) {
825
- var v = C[b];
826
- p.data == "error" ? v.setError() : v.setSuccess(p.data == "unchanged");
936
+ var g = o.endpoints.checkSessionIframe();
937
+ c.setAttribute("src", g), c.setAttribute("sandbox", "allow-scripts allow-same-origin"), c.setAttribute("title", "keycloak-session-iframe"), c.style.display = "none", document.body.appendChild(c);
938
+ var w = function(m) {
939
+ if (!(m.origin !== l.iframeOrigin || l.iframe.contentWindow !== m.source) && (m.data == "unchanged" || m.data == "changed" || m.data == "error")) {
940
+ m.data != "unchanged" && o.clearToken();
941
+ for (var C = l.callbackList.splice(0, l.callbackList.length), v = C.length - 1; v >= 0; --v) {
942
+ var b = C[v];
943
+ m.data == "error" ? b.setError() : b.setSuccess(m.data == "unchanged");
827
944
  }
828
945
  }
829
946
  };
@@ -837,167 +954,167 @@ function Keycloak(a) {
837
954
  }, l.interval * 1e3);
838
955
  }
839
956
  function re() {
840
- var s = R();
957
+ var s = M();
841
958
  if (l.iframe && l.iframeOrigin) {
842
959
  var c = o.clientId + " " + (o.sessionId ? o.sessionId : "");
843
960
  l.callbackList.push(s);
844
- var m = l.iframeOrigin;
845
- l.callbackList.length == 1 && l.iframe.contentWindow.postMessage(c, m);
961
+ var g = l.iframeOrigin;
962
+ l.callbackList.length == 1 && l.iframe.contentWindow.postMessage(c, g);
846
963
  } else
847
964
  s.setSuccess();
848
965
  return s.promise;
849
966
  }
850
967
  function Y() {
851
- var s = R();
968
+ var s = M();
852
969
  if (l.enable || o.silentCheckSsoRedirectUri) {
853
970
  var c = document.createElement("iframe");
854
971
  c.setAttribute("src", o.endpoints.thirdPartyCookiesIframe()), c.setAttribute("sandbox", "allow-scripts allow-same-origin"), c.setAttribute("title", "keycloak-3p-check-iframe"), c.style.display = "none", document.body.appendChild(c);
855
- var m = function(w) {
856
- c.contentWindow === w.source && (w.data !== "supported" && w.data !== "unsupported" || (w.data === "unsupported" && (M(
972
+ var g = function(w) {
973
+ c.contentWindow === w.source && (w.data !== "supported" && w.data !== "unsupported" || (w.data === "unsupported" && (U(
857
974
  `[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
858
975
 
859
976
  - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
860
977
  - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
861
978
 
862
979
  For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`
863
- ), l.enable = !1, o.silentCheckSsoFallback && (o.silentCheckSsoRedirectUri = !1)), document.body.removeChild(c), window.removeEventListener("message", m), s.setSuccess()));
980
+ ), l.enable = !1, o.silentCheckSsoFallback && (o.silentCheckSsoRedirectUri = !1)), document.body.removeChild(c), window.removeEventListener("message", g), s.setSuccess()));
864
981
  };
865
- window.addEventListener("message", m, !1);
982
+ window.addEventListener("message", g, !1);
866
983
  } else
867
984
  s.setSuccess();
868
- return u(s.promise, o.messageReceiveTimeout, "Timeout when waiting for 3rd party check iframe message.");
985
+ return d(s.promise, o.messageReceiveTimeout, "Timeout when waiting for 3rd party check iframe message.");
869
986
  }
870
987
  function I(s) {
871
988
  if (!s || s == "default")
872
989
  return {
873
- login: function(b) {
874
- return window.location.assign(o.createLoginUrl(b)), R().promise;
990
+ login: function(v) {
991
+ return window.location.assign(o.createLoginUrl(v)), M().promise;
875
992
  },
876
- logout: function(b) {
877
- return window.location.replace(o.createLogoutUrl(b)), R().promise;
993
+ logout: function(v) {
994
+ return window.location.replace(o.createLogoutUrl(v)), M().promise;
878
995
  },
879
- register: function(b) {
880
- return window.location.assign(o.createRegisterUrl(b)), R().promise;
996
+ register: function(v) {
997
+ return window.location.assign(o.createRegisterUrl(v)), M().promise;
881
998
  },
882
999
  accountManagement: function() {
883
- var b = o.createAccountUrl();
884
- if (typeof b < "u")
885
- window.location.href = b;
1000
+ var v = o.createAccountUrl();
1001
+ if (typeof v < "u")
1002
+ window.location.href = v;
886
1003
  else
887
1004
  throw "Not supported by the OIDC server";
888
- return R().promise;
1005
+ return M().promise;
889
1006
  },
890
- redirectUri: function(b, v) {
891
- return b && b.redirectUri ? b.redirectUri : o.redirectUri ? o.redirectUri : location.href;
1007
+ redirectUri: function(v, b) {
1008
+ return v && v.redirectUri ? v.redirectUri : o.redirectUri ? o.redirectUri : location.href;
892
1009
  }
893
1010
  };
894
1011
  if (s == "cordova") {
895
1012
  l.enable = !1;
896
- var c = function(b, v, S) {
897
- return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(b, v, S) : window.open(b, v, S);
898
- }, m = function(b) {
899
- return b && b.cordovaOptions ? Object.keys(b.cordovaOptions).reduce(function(v, S) {
900
- return v[S] = b.cordovaOptions[S], v;
1013
+ var c = function(v, b, _) {
1014
+ return window.cordova && window.cordova.InAppBrowser ? window.cordova.InAppBrowser.open(v, b, _) : window.open(v, b, _);
1015
+ }, g = function(v) {
1016
+ return v && v.cordovaOptions ? Object.keys(v.cordovaOptions).reduce(function(b, _) {
1017
+ return b[_] = v.cordovaOptions[_], b;
901
1018
  }, {}) : {};
902
- }, w = function(b) {
903
- return Object.keys(b).reduce(function(v, S) {
904
- return v.push(S + "=" + b[S]), v;
1019
+ }, w = function(v) {
1020
+ return Object.keys(v).reduce(function(b, _) {
1021
+ return b.push(_ + "=" + v[_]), b;
905
1022
  }, []).join(",");
906
- }, p = function(b) {
907
- var v = m(b);
908
- return v.location = "no", b && b.prompt == "none" && (v.hidden = "yes"), w(v);
1023
+ }, m = function(v) {
1024
+ var b = g(v);
1025
+ return b.location = "no", v && v.prompt == "none" && (b.hidden = "yes"), w(b);
909
1026
  }, C = o.redirectUri || "http://localhost";
910
1027
  return {
911
- login: function(b) {
912
- var v = R(), S = p(b), x = o.createLoginUrl(b), E = c(x, "_blank", S), L = !1, G = !1, ne = function() {
1028
+ login: function(v) {
1029
+ var b = M(), _ = m(v), S = o.createLoginUrl(v), E = c(S, "_blank", _), L = !1, G = !1, ne = function() {
913
1030
  G = !0, E.close();
914
1031
  };
915
- return E.addEventListener("loadstart", function(j) {
916
- if (j.url.indexOf(C) == 0) {
917
- var pe = ae(j.url);
918
- Q(pe, v), ne(), L = !0;
1032
+ return E.addEventListener("loadstart", function($) {
1033
+ if ($.url.indexOf(C) == 0) {
1034
+ var pe = ae($.url);
1035
+ Q(pe, b), ne(), L = !0;
919
1036
  }
920
- }), E.addEventListener("loaderror", function(j) {
1037
+ }), E.addEventListener("loaderror", function($) {
921
1038
  if (!L)
922
- if (j.url.indexOf(C) == 0) {
923
- var pe = ae(j.url);
924
- Q(pe, v), ne(), L = !0;
1039
+ if ($.url.indexOf(C) == 0) {
1040
+ var pe = ae($.url);
1041
+ Q(pe, b), ne(), L = !0;
925
1042
  } else
926
- v.setError(), ne();
927
- }), E.addEventListener("exit", function(j) {
928
- G || v.setError({
1043
+ b.setError(), ne();
1044
+ }), E.addEventListener("exit", function($) {
1045
+ G || b.setError({
929
1046
  reason: "closed_by_user"
930
1047
  });
931
- }), v.promise;
1048
+ }), b.promise;
932
1049
  },
933
- logout: function(b) {
934
- var v = R(), S = o.createLogoutUrl(b), x = c(S, "_blank", "location=no,hidden=yes,clearcache=yes"), E;
935
- return x.addEventListener("loadstart", function(L) {
936
- L.url.indexOf(C) == 0 && x.close();
937
- }), x.addEventListener("loaderror", function(L) {
938
- L.url.indexOf(C) == 0 || (E = !0), x.close();
939
- }), x.addEventListener("exit", function(L) {
940
- E ? v.setError() : (o.clearToken(), v.setSuccess());
941
- }), v.promise;
1050
+ logout: function(v) {
1051
+ var b = M(), _ = o.createLogoutUrl(v), S = c(_, "_blank", "location=no,hidden=yes,clearcache=yes"), E;
1052
+ return S.addEventListener("loadstart", function(L) {
1053
+ L.url.indexOf(C) == 0 && S.close();
1054
+ }), S.addEventListener("loaderror", function(L) {
1055
+ L.url.indexOf(C) == 0 || (E = !0), S.close();
1056
+ }), S.addEventListener("exit", function(L) {
1057
+ E ? b.setError() : (o.clearToken(), b.setSuccess());
1058
+ }), b.promise;
942
1059
  },
943
- register: function(b) {
944
- var v = R(), S = o.createRegisterUrl(), x = p(b), E = c(S, "_blank", x);
1060
+ register: function(v) {
1061
+ var b = M(), _ = o.createRegisterUrl(), S = m(v), E = c(_, "_blank", S);
945
1062
  return E.addEventListener("loadstart", function(L) {
946
1063
  if (L.url.indexOf(C) == 0) {
947
1064
  E.close();
948
1065
  var G = ae(L.url);
949
- Q(G, v);
1066
+ Q(G, b);
950
1067
  }
951
- }), v.promise;
1068
+ }), b.promise;
952
1069
  },
953
1070
  accountManagement: function() {
954
- var b = o.createAccountUrl();
955
- if (typeof b < "u") {
956
- var v = c(b, "_blank", "location=no");
957
- v.addEventListener("loadstart", function(S) {
958
- S.url.indexOf(C) == 0 && v.close();
1071
+ var v = o.createAccountUrl();
1072
+ if (typeof v < "u") {
1073
+ var b = c(v, "_blank", "location=no");
1074
+ b.addEventListener("loadstart", function(_) {
1075
+ _.url.indexOf(C) == 0 && b.close();
959
1076
  });
960
1077
  } else
961
1078
  throw "Not supported by the OIDC server";
962
1079
  },
963
- redirectUri: function(b) {
1080
+ redirectUri: function(v) {
964
1081
  return C;
965
1082
  }
966
1083
  };
967
1084
  }
968
1085
  if (s == "cordova-native")
969
1086
  return l.enable = !1, {
970
- login: function(b) {
971
- var v = R(), S = o.createLoginUrl(b);
972
- return universalLinks.subscribe("keycloak", function(x) {
1087
+ login: function(v) {
1088
+ var b = M(), _ = o.createLoginUrl(v);
1089
+ return universalLinks.subscribe("keycloak", function(S) {
973
1090
  universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
974
- var E = ae(x.url);
975
- Q(E, v);
976
- }), window.cordova.plugins.browsertab.openUrl(S), v.promise;
1091
+ var E = ae(S.url);
1092
+ Q(E, b);
1093
+ }), window.cordova.plugins.browsertab.openUrl(_), b.promise;
977
1094
  },
978
- logout: function(b) {
979
- var v = R(), S = o.createLogoutUrl(b);
980
- return universalLinks.subscribe("keycloak", function(x) {
981
- universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), o.clearToken(), v.setSuccess();
982
- }), window.cordova.plugins.browsertab.openUrl(S), v.promise;
1095
+ logout: function(v) {
1096
+ var b = M(), _ = o.createLogoutUrl(v);
1097
+ return universalLinks.subscribe("keycloak", function(S) {
1098
+ universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close(), o.clearToken(), b.setSuccess();
1099
+ }), window.cordova.plugins.browsertab.openUrl(_), b.promise;
983
1100
  },
984
- register: function(b) {
985
- var v = R(), S = o.createRegisterUrl(b);
986
- return universalLinks.subscribe("keycloak", function(x) {
1101
+ register: function(v) {
1102
+ var b = M(), _ = o.createRegisterUrl(v);
1103
+ return universalLinks.subscribe("keycloak", function(S) {
987
1104
  universalLinks.unsubscribe("keycloak"), window.cordova.plugins.browsertab.close();
988
- var E = ae(x.url);
989
- Q(E, v);
990
- }), window.cordova.plugins.browsertab.openUrl(S), v.promise;
1105
+ var E = ae(S.url);
1106
+ Q(E, b);
1107
+ }), window.cordova.plugins.browsertab.openUrl(_), b.promise;
991
1108
  },
992
1109
  accountManagement: function() {
993
- var b = o.createAccountUrl();
994
- if (typeof b < "u")
995
- window.cordova.plugins.browsertab.openUrl(b);
1110
+ var v = o.createAccountUrl();
1111
+ if (typeof v < "u")
1112
+ window.cordova.plugins.browsertab.openUrl(v);
996
1113
  else
997
1114
  throw "Not supported by the OIDC server";
998
1115
  },
999
- redirectUri: function(b) {
1000
- return b && b.redirectUri ? b.redirectUri : o.redirectUri ? o.redirectUri : "http://localhost";
1116
+ redirectUri: function(v) {
1117
+ return v && v.redirectUri ? v.redirectUri : o.redirectUri ? o.redirectUri : "http://localhost";
1001
1118
  }
1002
1119
  };
1003
1120
  throw "invalid adapter type: " + s;
@@ -1008,455 +1125,118 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
1008
1125
  localStorage.setItem("kc-test", "test"), localStorage.removeItem("kc-test");
1009
1126
  var s = this;
1010
1127
  function c() {
1011
- for (var m = (/* @__PURE__ */ new Date()).getTime(), w = 0; w < localStorage.length; w++) {
1012
- var p = localStorage.key(w);
1013
- if (p && p.indexOf("kc-callback-") == 0) {
1014
- var C = localStorage.getItem(p);
1128
+ for (var g = (/* @__PURE__ */ new Date()).getTime(), w = 0; w < localStorage.length; w++) {
1129
+ var m = localStorage.key(w);
1130
+ if (m && m.indexOf("kc-callback-") == 0) {
1131
+ var C = localStorage.getItem(m);
1015
1132
  if (C)
1016
1133
  try {
1017
- var b = JSON.parse(C).expires;
1018
- (!b || b < m) && localStorage.removeItem(p);
1134
+ var v = JSON.parse(C).expires;
1135
+ (!v || v < g) && localStorage.removeItem(m);
1019
1136
  } catch {
1020
- localStorage.removeItem(p);
1137
+ localStorage.removeItem(m);
1021
1138
  }
1022
1139
  }
1023
1140
  }
1024
1141
  }
1025
- s.get = function(m) {
1026
- if (m) {
1027
- var w = "kc-callback-" + m, p = localStorage.getItem(w);
1028
- return p && (localStorage.removeItem(w), p = JSON.parse(p)), c(), p;
1142
+ s.get = function(g) {
1143
+ if (g) {
1144
+ var w = "kc-callback-" + g, m = localStorage.getItem(w);
1145
+ return m && (localStorage.removeItem(w), m = JSON.parse(m)), c(), m;
1029
1146
  }
1030
- }, s.add = function(m) {
1147
+ }, s.add = function(g) {
1031
1148
  c();
1032
- var w = "kc-callback-" + m.state;
1033
- m.expires = (/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3, localStorage.setItem(w, JSON.stringify(m));
1149
+ var w = "kc-callback-" + g.state;
1150
+ g.expires = (/* @__PURE__ */ new Date()).getTime() + 60 * 60 * 1e3, localStorage.setItem(w, JSON.stringify(g));
1034
1151
  };
1035
- }, be = function() {
1036
- if (!(this instanceof be))
1037
- return new be();
1152
+ }, ve = function() {
1153
+ if (!(this instanceof ve))
1154
+ return new ve();
1038
1155
  var s = this;
1039
- s.get = function(p) {
1040
- if (p) {
1041
- var C = m("kc-callback-" + p);
1042
- if (w("kc-callback-" + p, "", c(-100)), C)
1156
+ s.get = function(m) {
1157
+ if (m) {
1158
+ var C = g("kc-callback-" + m);
1159
+ if (w("kc-callback-" + m, "", c(-100)), C)
1043
1160
  return JSON.parse(C);
1044
1161
  }
1045
- }, s.add = function(p) {
1046
- w("kc-callback-" + p.state, JSON.stringify(p), c(60));
1047
- }, s.removeItem = function(p) {
1048
- w(p, "", c(-100));
1162
+ }, s.add = function(m) {
1163
+ w("kc-callback-" + m.state, JSON.stringify(m), c(60));
1164
+ }, s.removeItem = function(m) {
1165
+ w(m, "", c(-100));
1049
1166
  };
1050
- var c = function(p) {
1167
+ var c = function(m) {
1051
1168
  var C = /* @__PURE__ */ new Date();
1052
- return C.setTime(C.getTime() + p * 60 * 1e3), C;
1053
- }, m = function(p) {
1054
- for (var C = p + "=", b = document.cookie.split(";"), v = 0; v < b.length; v++) {
1055
- for (var S = b[v]; S.charAt(0) == " "; )
1056
- S = S.substring(1);
1057
- if (S.indexOf(C) == 0)
1058
- return S.substring(C.length, S.length);
1169
+ return C.setTime(C.getTime() + m * 60 * 1e3), C;
1170
+ }, g = function(m) {
1171
+ for (var C = m + "=", v = document.cookie.split(";"), b = 0; b < v.length; b++) {
1172
+ for (var _ = v[b]; _.charAt(0) == " "; )
1173
+ _ = _.substring(1);
1174
+ if (_.indexOf(C) == 0)
1175
+ return _.substring(C.length, _.length);
1059
1176
  }
1060
1177
  return "";
1061
- }, w = function(p, C, b) {
1062
- var v = p + "=" + C + "; expires=" + b.toUTCString() + "; ";
1063
- document.cookie = v;
1064
- };
1065
- };
1066
- function ve() {
1067
- try {
1068
- return new le();
1069
- } catch {
1070
- }
1071
- return new be();
1072
- }
1073
- function _e(s) {
1074
- return function() {
1075
- o.enableLogging && s.apply(console, Array.prototype.slice.call(arguments));
1076
- };
1077
- }
1078
- }
1079
- const keycloakInstance = new Keycloak(), Login = (a, o) => {
1080
- keycloakInstance.init({ onLoad: "login-required" }).then(async (d) => {
1081
- d && await FetchUserInfo(), a();
1082
- }).catch((d) => {
1083
- o(d);
1084
- });
1085
- }, FetchUserInfo = async () => {
1086
- const a = await keycloakInstance.loadUserInfo();
1087
- AuthService.User.email = a.email ?? "", AuthService.User.emailVerified = a.email_verified === !0, AuthService.User.firstName = a.given_name ?? "", AuthService.User.lastName = a.family_name ?? "", AuthService.User.name = a.name ?? "", AuthService.User.sub = a.sub ?? "", AuthService.User.username = a.preferred_username ?? "", AuthService.User.roles = [...a.role ?? []], AuthService.User.groups = [...a.group ?? []], AuthService.User.IsInRole = (o) => AuthService.User.roles.includes(o);
1088
- }, Logout = () => {
1089
- keycloakInstance.logout({
1090
- redirectUri: location.origin
1091
- }).then(() => {
1092
- sessionStorage.removeItem("user-info");
1093
- });
1094
- }, AuthService = {
1095
- Instance: keycloakInstance,
1096
- User: {},
1097
- CallLogin: Login,
1098
- CallLogout: Logout
1099
- };
1100
- class NavMenuService {
1101
- constructor() {
1102
- Ze(this, "_visible", ref(!1));
1103
- }
1104
- get IsVisible() {
1105
- return this._visible.value === !0;
1106
- }
1107
- Toggle() {
1108
- this._visible.value = !this._visible.value;
1109
- }
1110
- Close() {
1111
- this._visible.value = !1;
1112
- }
1113
- Open() {
1114
- this._visible.value = !0;
1115
- }
1116
- }
1117
- const LkNavMenuService = new NavMenuService(), UseNavMenuService = () => LkNavMenuService;
1118
- var Cor = /* @__PURE__ */ ((a) => (a.Primary = "primary", a.Secondary = "secondary", a.Info = "info", a.Success = "success", a.Help = "help", a.Warn = "warn", a.Error = "error", a))(Cor || {}), Tamanho = /* @__PURE__ */ ((a) => (a.Pequeno = "sm", a.Medio = "md", a.Grande = "lg", a))(Tamanho || {});
1119
- const _export_sfc = (a, o) => {
1120
- const d = a.__vccOpts || a;
1121
- for (const [f, y] of o)
1122
- d[f] = y;
1123
- return d;
1124
- }, _sfc_main$8 = {}, _hoisted_1$6 = { class: "sf-loading-circle" }, _hoisted_2$6 = /* @__PURE__ */ createElementVNode("div", null, [
1125
- /* @__PURE__ */ createElementVNode("svg", { viewBox: "25 25 50 50" }, [
1126
- /* @__PURE__ */ createElementVNode("circle", {
1127
- cx: "50",
1128
- cy: "50",
1129
- r: "20",
1130
- fill: "none",
1131
- "stroke-width": "4",
1132
- "stroke-miterlimit": "10"
1133
- })
1134
- ])
1135
- ], -1), _hoisted_3$3 = [
1136
- _hoisted_2$6
1137
- ];
1138
- function _sfc_render$2(a, o) {
1139
- return openBlock(), createElementBlock("div", _hoisted_1$6, _hoisted_3$3);
1140
- }
1141
- const LoadingCircle = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$2]]);
1142
- class CssClassBuilder {
1143
- /**
1144
- * Creates a new instance of the CssClassBuilder class.
1145
- * @param value The initial value of the CSS class string.
1146
- */
1147
- constructor(o) {
1148
- Ze(this, "retorno");
1149
- this.retorno = o ?? "";
1150
- }
1151
- /**
1152
- * Concatenates a new CSS class to the existing string.
1153
- * @param value The CSS class to concatenate.
1154
- * @returns The current instance of the CssClassBuilder class.
1155
- */
1156
- Concat(o) {
1157
- return o && o.trim().length && (this.retorno += ` ${o}`), this;
1158
- }
1159
- /**
1160
- * Adds a new CSS class to the string if the specified condition is true.
1161
- * @param value The CSS class to add.
1162
- * @param when The condition that determines whether to add the CSS class.
1163
- * @returns The current instance of the CssClassBuilder class.
1164
- */
1165
- AddClass(o, d = !0) {
1166
- return d ? this.Concat(o) : this;
1167
- }
1168
- /**
1169
- * Builds the final CSS class string.
1170
- * @returns The final CSS class string.
1171
- */
1172
- Build() {
1173
- return this.retorno.trim();
1174
- }
1175
- }
1176
- const _hoisted_1$5 = ["disabled", "tabindex"], _hoisted_2$5 = ["data-color"], _sfc_main$7 = /* @__PURE__ */ defineComponent({
1177
- __name: "Icon",
1178
- props: {
1179
- icone: {},
1180
- visible: { type: Boolean, default: !0 },
1181
- class: { default: "" },
1182
- style: { default: "" },
1183
- disabled: { type: Boolean },
1184
- loading: { type: Boolean },
1185
- button: { type: Boolean },
1186
- tamanho: { default: Tamanho.Medio },
1187
- dot: { type: Boolean },
1188
- dotColor: { default: Cor.Error },
1189
- buttonProps: {}
1190
- },
1191
- setup(a) {
1192
- const o = a;
1193
- function d() {
1194
- return new CssClassBuilder(`${o.class} sf-icon`).AddClass("sf-component-loading", o.loading).AddClass("sf-component-disabled", o.disabled).AddClass("sf-icon-button", o.button).AddClass("sf-icon-small", o.tamanho === Tamanho.Pequeno).AddClass("sf-icon-medium", o.tamanho === Tamanho.Medio).AddClass("sf-icon-large", o.tamanho === Tamanho.Grande).AddClass("sf-ripple", o.button === !0).Build();
1195
- }
1196
- return (f, y) => (openBlock(), createElementBlock("div", {
1197
- style: normalizeStyle(o.style),
1198
- class: normalizeClass(d())
1199
- }, [
1200
- createElementVNode("button", mergeProps({
1201
- class: "material-symbols-outlined",
1202
- disabled: o.disabled || o.loading
1203
- }, o.buttonProps, {
1204
- tabindex: o.button ? void 0 : -1
1205
- }), [
1206
- o.loading ? (openBlock(), createBlock(LoadingCircle, { key: 0 })) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
1207
- createTextVNode(toDisplayString(o.icone), 1)
1208
- ], 64))
1209
- ], 16, _hoisted_1$5),
1210
- o.dot ? (openBlock(), createElementBlock("span", {
1211
- key: 0,
1212
- "data-color": o.dotColor
1213
- }, null, 8, _hoisted_2$5)) : createCommentVNode("", !0)
1214
- ], 6));
1215
- }
1216
- }), _sfc_main$6 = {}, _hoisted_1$4 = { class: "sf-internal-icon-button sf-ripple" }, _hoisted_2$4 = /* @__PURE__ */ createElementVNode("svg", {
1217
- xmlns: "http://www.w3.org/2000/svg",
1218
- height: "48",
1219
- viewBox: "0 -960 960 960",
1220
- width: "48"
1221
- }, [
1222
- /* @__PURE__ */ createElementVNode("path", { d: "M194.694-124.001q-28.254 0-49.473-21.22-21.22-21.219-21.22-49.473v-570.612q0-28.254 21.22-49.473 21.219-21.22 49.473-21.22h285.075v58.384H194.694q-4.616 0-8.463 3.846-3.846 3.847-3.846 8.463v570.612q0 4.616 3.846 8.463 3.847 3.846 8.463 3.846h285.075v58.384H194.694Zm469.614-183.693-42.999-42.23 101.384-101.384H360.846v-58.384h360.616L620.078-611.076l42.615-41.615 173.306 173.499-171.691 171.498Z" })
1223
- ], -1), _hoisted_3$2 = [
1224
- _hoisted_2$4
1225
- ];
1226
- function _sfc_render$1(a, o) {
1227
- return openBlock(), createElementBlock("button", _hoisted_1$4, _hoisted_3$2);
1228
- }
1229
- const LogoutIcon = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$1]]), _sfc_main$5 = {}, _hoisted_1$3 = {
1230
- xmlns: "http://www.w3.org/2000/svg",
1231
- height: "48",
1232
- viewBox: "0 -960 960 960",
1233
- width: "48",
1234
- class: "sf-svg-icon"
1235
- }, _hoisted_2$3 = /* @__PURE__ */ createElementVNode("path", { d: "m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z" }, null, -1), _hoisted_3$1 = [
1236
- _hoisted_2$3
1237
- ];
1238
- function _sfc_render(a, o) {
1239
- return openBlock(), createElementBlock("svg", _hoisted_1$3, _hoisted_3$1);
1240
- }
1241
- const MenuIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render]]);
1242
- class ThemeToggle {
1243
- get storedTheme() {
1244
- return localStorage.getItem("lkVueTheme");
1245
- }
1246
- get IsDark() {
1247
- return document.documentElement.classList.contains("dark");
1248
- }
1249
- Toggle() {
1250
- this.IsDark ? this.EnableLightMode() : this.EnableDarkMode();
1251
- }
1252
- EnableDarkMode() {
1253
- document.documentElement.classList.add("dark"), document.documentElement.classList.remove("light"), localStorage.setItem("lkVueTheme", "dark");
1254
- }
1255
- EnableLightMode() {
1256
- document.documentElement.classList.remove("dark"), document.documentElement.classList.add("light"), localStorage.setItem("lkVueTheme", "light");
1257
- }
1258
- SetInitialTheme() {
1259
- if (this.storedTheme === "light")
1260
- return this.EnableLightMode();
1261
- if (this.storedTheme === "dark")
1262
- return this.EnableDarkMode();
1263
- if (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches)
1264
- return this.EnableDarkMode();
1265
- this.EnableLightMode();
1266
- }
1267
- }
1268
- const ThemeToggleBase = (() => new ThemeToggle())(), _hoisted_1$2 = /* @__PURE__ */ createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>', 1), _hoisted_2$2 = [
1269
- _hoisted_1$2
1270
- ], _sfc_main$4 = /* @__PURE__ */ defineComponent({
1271
- __name: "ThemeToggle",
1272
- setup(a) {
1273
- return (o, d) => (openBlock(), createElementBlock("button", {
1274
- id: "sf-theme-toggle",
1275
- onClick: d[0] || (d[0] = //@ts-ignore
1276
- (...f) => unref(ThemeToggleBase).Toggle && unref(ThemeToggleBase).Toggle(...f))
1277
- }, _hoisted_2$2));
1278
- }
1279
- }), _hoisted_1$1 = { id: "sf-layout" }, _hoisted_2$1 = /* @__PURE__ */ createElementVNode("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), _hoisted_3 = { class: "title" }, _hoisted_4 = { class: "sf-layout-nav-header" }, _hoisted_5 = /* @__PURE__ */ createElementVNode("span", null, "Menu", -1), _hoisted_6 = { class: "sf-layout-nav-content" }, _hoisted_7 = /* @__PURE__ */ createElementVNode("section", { id: "sf-layout-page-title" }, null, -1), _hoisted_8 = { id: "sf-layout-content" }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
1280
- __name: "Layout",
1281
- setup(a) {
1282
- const o = UseNavMenuService(), d = UseDialogService();
1283
- async function f() {
1284
- await d.ConfirmAsync({
1285
- message: "Você deseja sair da sua conta?",
1286
- confirmLabel: "sair"
1287
- }) && AuthService.CallLogout();
1288
- }
1289
- return (y, l) => (openBlock(), createElementBlock("div", _hoisted_1$1, [
1290
- createElementVNode("header", null, [
1291
- createElementVNode("div", {
1292
- class: normalizeClass([
1293
- "sf-layout-menu-toggler",
1294
- { invert: unref(o).IsVisible }
1295
- ]),
1296
- onClick: l[0] || (l[0] = (k) => unref(o).Toggle())
1297
- }, [
1298
- _hoisted_2$1,
1299
- createVNode(MenuIcon)
1300
- ], 2),
1301
- createElementVNode("div", _hoisted_3, [
1302
- renderSlot(y.$slots, "title")
1303
- ]),
1304
- renderSlot(y.$slots, "action"),
1305
- createVNode(_sfc_main$4),
1306
- createVNode(LogoutIcon, { onClick: f })
1307
- ]),
1308
- createElementVNode("nav", {
1309
- class: normalizeClass({ visible: unref(o).IsVisible })
1310
- }, [
1311
- createElementVNode("div", _hoisted_4, [
1312
- _hoisted_5,
1313
- createVNode(_sfc_main$7, {
1314
- icone: "close",
1315
- button: "",
1316
- onClick: l[1] || (l[1] = (k) => unref(o).Close())
1317
- })
1318
- ]),
1319
- createElementVNode("div", _hoisted_6, [
1320
- renderSlot(y.$slots, "menu")
1321
- ])
1322
- ], 2),
1323
- createElementVNode("main", {
1324
- class: normalizeClass({ "menu-visible": unref(o).IsVisible })
1325
- }, [
1326
- _hoisted_7,
1327
- createElementVNode("section", _hoisted_8, [
1328
- renderSlot(y.$slots, "content")
1329
- ])
1330
- ], 2)
1331
- ]));
1332
- }
1333
- }), _hoisted_1 = ["href", "data-active", "onClick"], _hoisted_2 = { class: "sf-navmenulink-text" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
1334
- __name: "NavMenuLink",
1335
- props: {
1336
- href: {},
1337
- text: {},
1338
- icon: {}
1339
- },
1340
- setup(a) {
1341
- const o = a, d = UseNavMenuService();
1342
- function f(y, l) {
1343
- y.preventDefault();
1344
- const g = y.target.closest(".sf-layout-nav-content");
1345
- l(), g && g.clientWidth + 10 > document.body.clientWidth && d.Close();
1346
- }
1347
- return (y, l) => {
1348
- const k = resolveComponent("router-link");
1349
- return openBlock(), createBlock(k, {
1350
- to: o.href,
1351
- custom: ""
1352
- }, {
1353
- default: withCtx(({ href: g, navigate: _, isExactActive: H }) => [
1354
- createElementVNode("a", {
1355
- class: "sf-navmenulink",
1356
- href: g,
1357
- "data-active": H,
1358
- onClick: (M) => f(M, _)
1359
- }, [
1360
- o.icon ? (openBlock(), createBlock(_sfc_main$7, {
1361
- key: 0,
1362
- icone: o.icon,
1363
- "button-props": { tabindex: -1 }
1364
- }, null, 8, ["icone"])) : createCommentVNode("", !0),
1365
- createElementVNode("span", _hoisted_2, toDisplayString(o.text), 1)
1366
- ], 8, _hoisted_1)
1367
- ]),
1368
- _: 1
1369
- }, 8, ["to"]);
1178
+ }, w = function(m, C, v) {
1179
+ var b = m + "=" + C + "; expires=" + v.toUTCString() + "; ";
1180
+ document.cookie = b;
1370
1181
  };
1371
- }
1372
- }), _sfc_main$1 = /* @__PURE__ */ defineComponent({
1373
- __name: "ScrollToTop",
1374
- setup(a) {
1375
- const o = ref(!1), d = `--${+/* @__PURE__ */ new Date()}`;
1376
- let f = null;
1377
- function y() {
1378
- f == null || f.scrollTo(0, 0);
1182
+ };
1183
+ function be() {
1184
+ try {
1185
+ return new le();
1186
+ } catch {
1379
1187
  }
1380
- return onMounted(() => {
1381
- var l;
1382
- f = ((l = document.getElementById(d)) == null ? void 0 : l.parentElement) ?? null, f && f.addEventListener("scroll", function() {
1383
- o.value = this.scrollTop - this.clientHeight > 0;
1384
- });
1385
- }), (l, k) => (openBlock(), createElementBlock("button", {
1386
- id: d,
1387
- class: normalizeClass(["sf-scrollToTop", { "sf-scrollToTop-visible": o.value }]),
1388
- onClick: y
1389
- }, null, 2));
1188
+ return new ve();
1390
1189
  }
1391
- }), _sfc_main = /* @__PURE__ */ defineComponent({
1392
- __name: "Content",
1393
- props: {
1394
- class: {},
1395
- style: {},
1396
- disableBodyPadding: { type: Boolean },
1397
- disableHeaderPadding: { type: Boolean },
1398
- disableFooterPadding: { type: Boolean }
1399
- },
1400
- setup(a) {
1401
- const o = a;
1402
- function d() {
1403
- return new CssClassBuilder("sf-content").AddClass(o.class, !!o.class).Build();
1404
- }
1405
- function f() {
1406
- return new CssClassBuilder("sf-content-body").AddClass("sf-content-no-padding", o.disableBodyPadding).Build();
1407
- }
1408
- function y() {
1409
- return new CssClassBuilder("sf-content-header").AddClass("sf-content-no-padding", o.disableHeaderPadding).Build();
1410
- }
1411
- function l() {
1412
- return new CssClassBuilder("sf-content-footer").AddClass("sf-content-no-padding", o.disableFooterPadding).Build();
1413
- }
1414
- return (k, g) => (openBlock(), createElementBlock("div", {
1415
- class: normalizeClass(d()),
1416
- style: normalizeStyle(o.style)
1417
- }, [
1418
- createElementVNode("div", {
1419
- class: normalizeClass(y())
1420
- }, [
1421
- renderSlot(k.$slots, "header")
1422
- ], 2),
1423
- createElementVNode("div", {
1424
- class: normalizeClass(f())
1425
- }, [
1426
- renderSlot(k.$slots, "default"),
1427
- createVNode(_sfc_main$1)
1428
- ], 2),
1429
- createElementVNode("div", {
1430
- class: normalizeClass(l())
1431
- }, [
1432
- renderSlot(k.$slots, "footer")
1433
- ], 2)
1434
- ], 6));
1190
+ function Ae(s) {
1191
+ return function() {
1192
+ o.enableLogging && s.apply(console, Array.prototype.slice.call(arguments));
1193
+ };
1435
1194
  }
1436
- });
1195
+ }
1196
+ const keycloakInstance = new Keycloak(), Login = (a, o) => {
1197
+ keycloakInstance.init({ onLoad: "login-required" }).then(async (u) => {
1198
+ u && await FetchUserInfo(), a();
1199
+ }).catch((u) => {
1200
+ o(u);
1201
+ });
1202
+ }, FetchUserInfo = async () => {
1203
+ const a = await keycloakInstance.loadUserInfo();
1204
+ AuthService.User.email = a.email ?? "", AuthService.User.emailVerified = a.email_verified === !0, AuthService.User.firstName = a.given_name ?? "", AuthService.User.lastName = a.family_name ?? "", AuthService.User.name = a.name ?? "", AuthService.User.sub = a.sub ?? "", AuthService.User.username = a.preferred_username ?? "", AuthService.User.roles = [...a.role ?? []], AuthService.User.groups = [...a.group ?? []], AuthService.User.IsInRole = (o) => AuthService.User.roles.includes(o);
1205
+ }, Logout = () => {
1206
+ keycloakInstance.logout({
1207
+ redirectUri: location.origin
1208
+ }).then(() => {
1209
+ sessionStorage.removeItem("user-info");
1210
+ });
1211
+ }, AuthService = {
1212
+ Instance: keycloakInstance,
1213
+ User: {},
1214
+ CallLogin: Login,
1215
+ CallLogout: Logout
1216
+ };
1437
1217
  var sweetalert2 = { exports: {} };
1438
1218
  /*!
1439
1219
  * sweetalert2 v11.4.8
1440
1220
  * Released under the MIT License.
1441
1221
  */
1442
1222
  (function(a, o) {
1443
- (function(d, f) {
1223
+ (function(u, f) {
1444
1224
  a.exports = f();
1445
1225
  })(commonjsGlobal, function() {
1446
- const d = "SweetAlert2:", f = (e) => {
1226
+ const u = "SweetAlert2:", f = (e) => {
1447
1227
  const t = [];
1448
1228
  for (let n = 0; n < e.length; n++)
1449
1229
  t.indexOf(e[n]) === -1 && t.push(e[n]);
1450
1230
  return t;
1451
- }, y = (e) => e.charAt(0).toUpperCase() + e.slice(1), l = (e) => Array.prototype.slice.call(e), k = (e) => {
1452
- console.warn("".concat(d, " ").concat(typeof e == "object" ? e.join(" ") : e));
1453
- }, g = (e) => {
1454
- console.error("".concat(d, " ").concat(e));
1455
- }, _ = [], H = (e) => {
1456
- _.includes(e) || (_.push(e), k(e));
1457
- }, M = (e, t) => {
1458
- H('"'.concat(e, '" is deprecated and will be removed in the next major release. Please use "').concat(t, '" instead.'));
1459
- }, O = (e) => typeof e == "function" ? e() : e, W = (e) => e && typeof e.toPromise == "function", B = (e) => W(e) ? e.toPromise() : Promise.resolve(e), J = (e) => e && Promise.resolve(e) === e, V = {
1231
+ }, k = (e) => e.charAt(0).toUpperCase() + e.slice(1), l = (e) => Array.prototype.slice.call(e), y = (e) => {
1232
+ console.warn("".concat(u, " ").concat(typeof e == "object" ? e.join(" ") : e));
1233
+ }, h = (e) => {
1234
+ console.error("".concat(u, " ").concat(e));
1235
+ }, x = [], B = (e) => {
1236
+ x.includes(e) || (x.push(e), y(e));
1237
+ }, U = (e, t) => {
1238
+ B('"'.concat(e, '" is deprecated and will be removed in the next major release. Please use "').concat(t, '" instead.'));
1239
+ }, R = (e) => typeof e == "function" ? e() : e, V = (e) => e && typeof e.toPromise == "function", T = (e) => V(e) ? e.toPromise() : Promise.resolve(e), J = (e) => e && Promise.resolve(e) === e, D = {
1460
1240
  title: "",
1461
1241
  titleText: "",
1462
1242
  text: "",
@@ -1544,25 +1324,25 @@ var sweetalert2 = { exports: {} };
1544
1324
  didClose: void 0,
1545
1325
  didDestroy: void 0,
1546
1326
  scrollbarPadding: !0
1547
- }, D = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "willClose"], he = {}, Q = ["allowOutsideClick", "allowEnterKey", "backdrop", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], ie = (e) => Object.prototype.hasOwnProperty.call(V, e), Se = (e) => D.indexOf(e) !== -1, de = (e) => he[e], Ae = (e) => {
1548
- ie(e) || k('Unknown parameter "'.concat(e, '"'));
1327
+ }, j = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "willClose"], he = {}, Q = ["allowOutsideClick", "allowEnterKey", "backdrop", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], ie = (e) => Object.prototype.hasOwnProperty.call(D, e), Se = (e) => j.indexOf(e) !== -1, de = (e) => he[e], _e = (e) => {
1328
+ ie(e) || y('Unknown parameter "'.concat(e, '"'));
1549
1329
  }, Ie = (e) => {
1550
- Q.includes(e) && k('The parameter "'.concat(e, '" is incompatible with toasts'));
1330
+ Q.includes(e) && y('The parameter "'.concat(e, '" is incompatible with toasts'));
1551
1331
  }, ae = (e) => {
1552
- de(e) && M(e, de(e));
1332
+ de(e) && U(e, de(e));
1553
1333
  }, Oe = (e) => {
1554
- !e.backdrop && e.allowOutsideClick && k('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
1334
+ !e.backdrop && e.allowOutsideClick && y('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
1555
1335
  for (const t in e)
1556
- Ae(t), e.toast && Ie(t), ae(t);
1557
- }, Fe = "swal2-", R = (e) => {
1336
+ _e(t), e.toast && Ie(t), ae(t);
1337
+ }, Fe = "swal2-", M = (e) => {
1558
1338
  const t = {};
1559
1339
  for (const n in e)
1560
1340
  t[e[n]] = Fe + e[n];
1561
1341
  return t;
1562
- }, u = R(["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "default-outline", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error"]), ce = R(["success", "warning", "info", "question", "error"]), N = () => document.body.querySelector(".".concat(u.container)), re = (e) => {
1342
+ }, d = M(["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "default-outline", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error"]), ce = M(["success", "warning", "info", "question", "error"]), N = () => document.body.querySelector(".".concat(d.container)), re = (e) => {
1563
1343
  const t = N();
1564
1344
  return t ? t.querySelector(e) : null;
1565
- }, Y = (e) => re(".".concat(e)), I = () => Y(u.popup), le = () => Y(u.icon), be = () => Y(u.title), ve = () => Y(u["html-container"]), _e = () => Y(u.image), s = () => Y(u["progress-steps"]), c = () => Y(u["validation-message"]), m = () => re(".".concat(u.actions, " .").concat(u.confirm)), w = () => re(".".concat(u.actions, " .").concat(u.deny)), p = () => Y(u["input-label"]), C = () => re(".".concat(u.loader)), b = () => re(".".concat(u.actions, " .").concat(u.cancel)), v = () => Y(u.actions), S = () => Y(u.footer), x = () => Y(u["timer-progress-bar"]), E = () => Y(u.close), L = `
1345
+ }, Y = (e) => re(".".concat(e)), I = () => Y(d.popup), le = () => Y(d.icon), ve = () => Y(d.title), be = () => Y(d["html-container"]), Ae = () => Y(d.image), s = () => Y(d["progress-steps"]), c = () => Y(d["validation-message"]), g = () => re(".".concat(d.actions, " .").concat(d.confirm)), w = () => re(".".concat(d.actions, " .").concat(d.deny)), m = () => Y(d["input-label"]), C = () => re(".".concat(d.loader)), v = () => re(".".concat(d.actions, " .").concat(d.cancel)), b = () => Y(d.actions), _ = () => Y(d.footer), S = () => Y(d["timer-progress-bar"]), E = () => Y(d.close), L = `
1566
1346
  a[href],
1567
1347
  area[href],
1568
1348
  input:not([disabled]),
@@ -1579,19 +1359,19 @@ var sweetalert2 = { exports: {} };
1579
1359
  summary
1580
1360
  `, G = () => {
1581
1361
  const e = l(I().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n, r) => {
1582
- const h = parseInt(n.getAttribute("tabindex")), A = parseInt(r.getAttribute("tabindex"));
1583
- return h > A ? 1 : h < A ? -1 : 0;
1362
+ const p = parseInt(n.getAttribute("tabindex")), A = parseInt(r.getAttribute("tabindex"));
1363
+ return p > A ? 1 : p < A ? -1 : 0;
1584
1364
  }), t = l(I().querySelectorAll(L)).filter((n) => n.getAttribute("tabindex") !== "-1");
1585
1365
  return f(e.concat(t)).filter((n) => ee(n));
1586
- }, ne = () => ue(document.body, u.shown) && !ue(document.body, u["toast-shown"]) && !ue(document.body, u["no-backdrop"]), j = () => I() && ue(I(), u.toast), pe = () => I().hasAttribute("data-loading"), we = {
1366
+ }, ne = () => ue(document.body, d.shown) && !ue(document.body, d["toast-shown"]) && !ue(document.body, d["no-backdrop"]), $ = () => I() && ue(I(), d.toast), pe = () => I().hasAttribute("data-loading"), we = {
1587
1367
  previousBodyPadding: null
1588
- }, $ = (e, t) => {
1368
+ }, q = (e, t) => {
1589
1369
  if (e.textContent = "", t) {
1590
1370
  const r = new DOMParser().parseFromString(t, "text/html");
1591
- l(r.querySelector("head").childNodes).forEach((h) => {
1592
- e.appendChild(h);
1593
- }), l(r.querySelector("body").childNodes).forEach((h) => {
1594
- e.appendChild(h);
1371
+ l(r.querySelector("head").childNodes).forEach((p) => {
1372
+ e.appendChild(p);
1373
+ }), l(r.querySelector("body").childNodes).forEach((p) => {
1374
+ e.appendChild(p);
1595
1375
  });
1596
1376
  }
1597
1377
  }, ue = (e, t) => {
@@ -1604,12 +1384,12 @@ var sweetalert2 = { exports: {} };
1604
1384
  return !0;
1605
1385
  }, Ft = (e, t) => {
1606
1386
  l(e.classList).forEach((n) => {
1607
- !Object.values(u).includes(n) && !Object.values(ce).includes(n) && !Object.values(t.showClass).includes(n) && e.classList.remove(n);
1387
+ !Object.values(d).includes(n) && !Object.values(ce).includes(n) && !Object.values(t.showClass).includes(n) && e.classList.remove(n);
1608
1388
  });
1609
1389
  }, oe = (e, t, n) => {
1610
1390
  if (Ft(e, t), t.customClass && t.customClass[n]) {
1611
1391
  if (typeof t.customClass[n] != "string" && !t.customClass[n].forEach)
1612
- return k("Invalid type of customClass.".concat(n, '! Expected string or iterable object, got "').concat(typeof t.customClass[n], '"'));
1392
+ return y("Invalid type of customClass.".concat(n, '! Expected string or iterable object, got "').concat(typeof t.customClass[n], '"'));
1613
1393
  F(e, t.customClass[n]);
1614
1394
  }
1615
1395
  }, Ne = (e, t) => {
@@ -1619,15 +1399,15 @@ var sweetalert2 = { exports: {} };
1619
1399
  case "select":
1620
1400
  case "textarea":
1621
1401
  case "file":
1622
- return e.querySelector(".".concat(u.popup, " > .").concat(u[t]));
1402
+ return e.querySelector(".".concat(d.popup, " > .").concat(d[t]));
1623
1403
  case "checkbox":
1624
- return e.querySelector(".".concat(u.popup, " > .").concat(u.checkbox, " input"));
1404
+ return e.querySelector(".".concat(d.popup, " > .").concat(d.checkbox, " input"));
1625
1405
  case "radio":
1626
- return e.querySelector(".".concat(u.popup, " > .").concat(u.radio, " input:checked")) || e.querySelector(".".concat(u.popup, " > .").concat(u.radio, " input:first-child"));
1406
+ return e.querySelector(".".concat(d.popup, " > .").concat(d.radio, " input:checked")) || e.querySelector(".".concat(d.popup, " > .").concat(d.radio, " input:first-child"));
1627
1407
  case "range":
1628
- return e.querySelector(".".concat(u.popup, " > .").concat(u.range, " input"));
1408
+ return e.querySelector(".".concat(d.popup, " > .").concat(d.range, " input"));
1629
1409
  default:
1630
- return e.querySelector(".".concat(u.popup, " > .").concat(u.input));
1410
+ return e.querySelector(".".concat(d.popup, " > .").concat(d.input));
1631
1411
  }
1632
1412
  }, Qe = (e) => {
1633
1413
  if (e.focus(), e.type !== "file") {
@@ -1636,8 +1416,8 @@ var sweetalert2 = { exports: {} };
1636
1416
  }
1637
1417
  }, et = (e, t, n) => {
1638
1418
  !e || !t || (typeof t == "string" && (t = t.split(/\s+/).filter(Boolean)), t.forEach((r) => {
1639
- Array.isArray(e) ? e.forEach((h) => {
1640
- n ? h.classList.add(r) : h.classList.remove(r);
1419
+ Array.isArray(e) ? e.forEach((p) => {
1420
+ n ? p.classList.add(r) : p.classList.remove(r);
1641
1421
  }) : n ? e.classList.add(r) : e.classList.remove(r);
1642
1422
  }));
1643
1423
  }, F = (e, t) => {
@@ -1654,107 +1434,107 @@ var sweetalert2 = { exports: {} };
1654
1434
  }, X = function(e) {
1655
1435
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "flex";
1656
1436
  e.style.display = t;
1657
- }, q = (e) => {
1437
+ }, z = (e) => {
1658
1438
  e.style.display = "none";
1659
1439
  }, tt = (e, t, n, r) => {
1660
- const h = e.querySelector(t);
1661
- h && (h.style[n] = r);
1440
+ const p = e.querySelector(t);
1441
+ p && (p.style[n] = r);
1662
1442
  }, Le = (e, t, n) => {
1663
- t ? X(e, n) : q(e);
1664
- }, ee = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), Lt = () => !ee(m()) && !ee(w()) && !ee(b()), nt = (e) => e.scrollHeight > e.clientHeight, ot = (e) => {
1443
+ t ? X(e, n) : z(e);
1444
+ }, ee = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), Lt = () => !ee(g()) && !ee(w()) && !ee(v()), nt = (e) => e.scrollHeight > e.clientHeight, ot = (e) => {
1665
1445
  const t = window.getComputedStyle(e), n = parseFloat(t.getPropertyValue("animation-duration") || "0"), r = parseFloat(t.getPropertyValue("transition-duration") || "0");
1666
1446
  return n > 0 || r > 0;
1667
1447
  }, Ve = function(e) {
1668
1448
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1669
- const n = x();
1449
+ const n = S();
1670
1450
  ee(n) && (t && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
1671
1451
  n.style.transition = "width ".concat(e / 1e3, "s linear"), n.style.width = "0%";
1672
1452
  }, 10));
1673
1453
  }, Rt = () => {
1674
- const e = x(), t = parseInt(window.getComputedStyle(e).width);
1454
+ const e = S(), t = parseInt(window.getComputedStyle(e).width);
1675
1455
  e.style.removeProperty("transition"), e.style.width = "100%";
1676
1456
  const n = parseInt(window.getComputedStyle(e).width), r = t / n * 100;
1677
1457
  e.style.removeProperty("transition"), e.style.width = "".concat(r, "%");
1678
- }, rt = () => typeof window > "u" || typeof document > "u", Ut = 100, T = {}, Mt = () => {
1679
- T.previousActiveElement && T.previousActiveElement.focus ? (T.previousActiveElement.focus(), T.previousActiveElement = null) : document.body && document.body.focus();
1458
+ }, rt = () => typeof window > "u" || typeof document > "u", Ut = 100, P = {}, Mt = () => {
1459
+ P.previousActiveElement && P.previousActiveElement.focus ? (P.previousActiveElement.focus(), P.previousActiveElement = null) : document.body && document.body.focus();
1680
1460
  }, Ot = (e) => new Promise((t) => {
1681
1461
  if (!e)
1682
1462
  return t();
1683
1463
  const n = window.scrollX, r = window.scrollY;
1684
- T.restoreFocusTimeout = setTimeout(() => {
1464
+ P.restoreFocusTimeout = setTimeout(() => {
1685
1465
  Mt(), t();
1686
1466
  }, Ut), window.scrollTo(n, r);
1687
1467
  }), Nt = `
1688
- <div aria-labelledby="`.concat(u.title, '" aria-describedby="').concat(u["html-container"], '" class="').concat(u.popup, `" tabindex="-1">
1689
- <button type="button" class="`).concat(u.close, `"></button>
1690
- <ul class="`).concat(u["progress-steps"], `"></ul>
1691
- <div class="`).concat(u.icon, `"></div>
1692
- <img class="`).concat(u.image, `" />
1693
- <h2 class="`).concat(u.title, '" id="').concat(u.title, `"></h2>
1694
- <div class="`).concat(u["html-container"], '" id="').concat(u["html-container"], `"></div>
1695
- <input class="`).concat(u.input, `" />
1696
- <input type="file" class="`).concat(u.file, `" />
1697
- <div class="`).concat(u.range, `">
1468
+ <div aria-labelledby="`.concat(d.title, '" aria-describedby="').concat(d["html-container"], '" class="').concat(d.popup, `" tabindex="-1">
1469
+ <button type="button" class="`).concat(d.close, `"></button>
1470
+ <ul class="`).concat(d["progress-steps"], `"></ul>
1471
+ <div class="`).concat(d.icon, `"></div>
1472
+ <img class="`).concat(d.image, `" />
1473
+ <h2 class="`).concat(d.title, '" id="').concat(d.title, `"></h2>
1474
+ <div class="`).concat(d["html-container"], '" id="').concat(d["html-container"], `"></div>
1475
+ <input class="`).concat(d.input, `" />
1476
+ <input type="file" class="`).concat(d.file, `" />
1477
+ <div class="`).concat(d.range, `">
1698
1478
  <input type="range" />
1699
1479
  <output></output>
1700
1480
  </div>
1701
- <select class="`).concat(u.select, `"></select>
1702
- <div class="`).concat(u.radio, `"></div>
1703
- <label for="`).concat(u.checkbox, '" class="').concat(u.checkbox, `">
1481
+ <select class="`).concat(d.select, `"></select>
1482
+ <div class="`).concat(d.radio, `"></div>
1483
+ <label for="`).concat(d.checkbox, '" class="').concat(d.checkbox, `">
1704
1484
  <input type="checkbox" />
1705
- <span class="`).concat(u.label, `"></span>
1485
+ <span class="`).concat(d.label, `"></span>
1706
1486
  </label>
1707
- <textarea class="`).concat(u.textarea, `"></textarea>
1708
- <div class="`).concat(u["validation-message"], '" id="').concat(u["validation-message"], `"></div>
1709
- <div class="`).concat(u.actions, `">
1710
- <div class="`).concat(u.loader, `"></div>
1711
- <button type="button" class="`).concat(u.confirm, `"></button>
1712
- <button type="button" class="`).concat(u.deny, `"></button>
1713
- <button type="button" class="`).concat(u.cancel, `"></button>
1487
+ <textarea class="`).concat(d.textarea, `"></textarea>
1488
+ <div class="`).concat(d["validation-message"], '" id="').concat(d["validation-message"], `"></div>
1489
+ <div class="`).concat(d.actions, `">
1490
+ <div class="`).concat(d.loader, `"></div>
1491
+ <button type="button" class="`).concat(d.confirm, `"></button>
1492
+ <button type="button" class="`).concat(d.deny, `"></button>
1493
+ <button type="button" class="`).concat(d.cancel, `"></button>
1714
1494
  </div>
1715
- <div class="`).concat(u.footer, `"></div>
1716
- <div class="`).concat(u["timer-progress-bar-container"], `">
1717
- <div class="`).concat(u["timer-progress-bar"], `"></div>
1495
+ <div class="`).concat(d.footer, `"></div>
1496
+ <div class="`).concat(d["timer-progress-bar-container"], `">
1497
+ <div class="`).concat(d["timer-progress-bar"], `"></div>
1718
1498
  </div>
1719
1499
  </div>
1720
1500
  `).replace(/(^|\n)\s*/g, ""), Vt = () => {
1721
1501
  const e = N();
1722
- return e ? (e.remove(), se([document.documentElement, document.body], [u["no-backdrop"], u["toast-shown"], u["has-column"]]), !0) : !1;
1502
+ return e ? (e.remove(), se([document.documentElement, document.body], [d["no-backdrop"], d["toast-shown"], d["has-column"]]), !0) : !1;
1723
1503
  }, me = () => {
1724
- T.currentInstance.resetValidationMessage();
1504
+ P.currentInstance.resetValidationMessage();
1725
1505
  }, Dt = () => {
1726
- const e = I(), t = fe(e, u.input), n = fe(e, u.file), r = e.querySelector(".".concat(u.range, " input")), h = e.querySelector(".".concat(u.range, " output")), A = fe(e, u.select), U = e.querySelector(".".concat(u.checkbox, " input")), te = fe(e, u.textarea);
1727
- t.oninput = me, n.onchange = me, A.onchange = me, U.onchange = me, te.oninput = me, r.oninput = () => {
1728
- me(), h.value = r.value;
1506
+ const e = I(), t = fe(e, d.input), n = fe(e, d.file), r = e.querySelector(".".concat(d.range, " input")), p = e.querySelector(".".concat(d.range, " output")), A = fe(e, d.select), O = e.querySelector(".".concat(d.checkbox, " input")), te = fe(e, d.textarea);
1507
+ t.oninput = me, n.onchange = me, A.onchange = me, O.onchange = me, te.oninput = me, r.oninput = () => {
1508
+ me(), p.value = r.value;
1729
1509
  }, r.onchange = () => {
1730
1510
  me(), r.nextSibling.value = r.value;
1731
1511
  };
1732
- }, jt = (e) => typeof e == "string" ? document.querySelector(e) : e, Xt = (e) => {
1512
+ }, jt = (e) => typeof e == "string" ? document.querySelector(e) : e, $t = (e) => {
1733
1513
  const t = I();
1734
1514
  t.setAttribute("role", e.toast ? "alert" : "dialog"), t.setAttribute("aria-live", e.toast ? "polite" : "assertive"), e.toast || t.setAttribute("aria-modal", "true");
1735
- }, $t = (e) => {
1736
- window.getComputedStyle(e).direction === "rtl" && F(N(), u.rtl);
1515
+ }, Xt = (e) => {
1516
+ window.getComputedStyle(e).direction === "rtl" && F(N(), d.rtl);
1737
1517
  }, qt = (e) => {
1738
1518
  const t = Vt();
1739
1519
  if (rt()) {
1740
- g("SweetAlert2 requires document to initialize");
1520
+ h("SweetAlert2 requires document to initialize");
1741
1521
  return;
1742
1522
  }
1743
1523
  const n = document.createElement("div");
1744
- n.className = u.container, t && F(n, u["no-transition"]), $(n, Nt);
1524
+ n.className = d.container, t && F(n, d["no-transition"]), q(n, Nt);
1745
1525
  const r = jt(e.target);
1746
- r.appendChild(n), Xt(e), $t(r), Dt();
1526
+ r.appendChild(n), $t(e), Xt(r), Dt();
1747
1527
  }, De = (e, t) => {
1748
- e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Kt(e, t) : e && $(t, e);
1749
- }, Kt = (e, t) => {
1750
- e.jquery ? zt(t, e) : $(t, e.toString());
1528
+ e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? zt(e, t) : e && q(t, e);
1751
1529
  }, zt = (e, t) => {
1530
+ e.jquery ? Wt(t, e) : q(t, e.toString());
1531
+ }, Wt = (e, t) => {
1752
1532
  if (e.textContent = "", 0 in t)
1753
1533
  for (let n = 0; n in t; n++)
1754
1534
  e.appendChild(t[n].cloneNode(!0));
1755
1535
  else
1756
1536
  e.appendChild(t.cloneNode(!0));
1757
- }, Te = (() => {
1537
+ }, Be = (() => {
1758
1538
  if (rt())
1759
1539
  return !1;
1760
1540
  const e = document.createElement("div"), t = {
@@ -1767,58 +1547,58 @@ var sweetalert2 = { exports: {} };
1767
1547
  if (Object.prototype.hasOwnProperty.call(t, n) && typeof e.style[n] < "u")
1768
1548
  return t[n];
1769
1549
  return !1;
1770
- })(), Wt = () => {
1550
+ })(), Kt = () => {
1771
1551
  const e = document.createElement("div");
1772
- e.className = u["scrollbar-measure"], document.body.appendChild(e);
1552
+ e.className = d["scrollbar-measure"], document.body.appendChild(e);
1773
1553
  const t = e.getBoundingClientRect().width - e.clientWidth;
1774
1554
  return document.body.removeChild(e), t;
1775
1555
  }, Jt = (e, t) => {
1776
- const n = v(), r = C();
1777
- !t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? q(n) : X(n), oe(n, t, "actions"), Yt(n, r, t), $(r, t.loaderHtml), oe(r, t, "loader");
1556
+ const n = b(), r = C();
1557
+ !t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? z(n) : X(n), oe(n, t, "actions"), Yt(n, r, t), q(r, t.loaderHtml), oe(r, t, "loader");
1778
1558
  };
1779
1559
  function Yt(e, t, n) {
1780
- const r = m(), h = w(), A = b();
1781
- je(r, "confirm", n), je(h, "deny", n), je(A, "cancel", n), Gt(r, h, A, n), n.reverseButtons && (n.toast ? (e.insertBefore(A, r), e.insertBefore(h, r)) : (e.insertBefore(A, t), e.insertBefore(h, t), e.insertBefore(r, t)));
1560
+ const r = g(), p = w(), A = v();
1561
+ je(r, "confirm", n), je(p, "deny", n), je(A, "cancel", n), Gt(r, p, A, n), n.reverseButtons && (n.toast ? (e.insertBefore(A, r), e.insertBefore(p, r)) : (e.insertBefore(A, t), e.insertBefore(p, t), e.insertBefore(r, t)));
1782
1562
  }
1783
1563
  function Gt(e, t, n, r) {
1784
1564
  if (!r.buttonsStyling)
1785
- return se([e, t, n], u.styled);
1786
- F([e, t, n], u.styled), r.confirmButtonColor && (e.style.backgroundColor = r.confirmButtonColor, F(e, u["default-outline"])), r.denyButtonColor && (t.style.backgroundColor = r.denyButtonColor, F(t, u["default-outline"])), r.cancelButtonColor && (n.style.backgroundColor = r.cancelButtonColor, F(n, u["default-outline"]));
1565
+ return se([e, t, n], d.styled);
1566
+ F([e, t, n], d.styled), r.confirmButtonColor && (e.style.backgroundColor = r.confirmButtonColor, F(e, d["default-outline"])), r.denyButtonColor && (t.style.backgroundColor = r.denyButtonColor, F(t, d["default-outline"])), r.cancelButtonColor && (n.style.backgroundColor = r.cancelButtonColor, F(n, d["default-outline"]));
1787
1567
  }
1788
1568
  function je(e, t, n) {
1789
- Le(e, n["show".concat(y(t), "Button")], "inline-block"), $(e, n["".concat(t, "ButtonText")]), e.setAttribute("aria-label", n["".concat(t, "ButtonAriaLabel")]), e.className = u[t], oe(e, n, "".concat(t, "Button")), F(e, n["".concat(t, "ButtonClass")]);
1569
+ Le(e, n["show".concat(k(t), "Button")], "inline-block"), q(e, n["".concat(t, "ButtonText")]), e.setAttribute("aria-label", n["".concat(t, "ButtonAriaLabel")]), e.className = d[t], oe(e, n, "".concat(t, "Button")), F(e, n["".concat(t, "ButtonClass")]);
1790
1570
  }
1791
1571
  function Zt(e, t) {
1792
- typeof t == "string" ? e.style.background = t : t || F([document.documentElement, document.body], u["no-backdrop"]);
1572
+ typeof t == "string" ? e.style.background = t : t || F([document.documentElement, document.body], d["no-backdrop"]);
1793
1573
  }
1794
1574
  function Qt(e, t) {
1795
- t in u ? F(e, u[t]) : (k('The "position" parameter is not valid, defaulting to "center"'), F(e, u.center));
1575
+ t in d ? F(e, d[t]) : (y('The "position" parameter is not valid, defaulting to "center"'), F(e, d.center));
1796
1576
  }
1797
1577
  function en(e, t) {
1798
1578
  if (t && typeof t == "string") {
1799
1579
  const n = "grow-".concat(t);
1800
- n in u && F(e, u[n]);
1580
+ n in d && F(e, d[n]);
1801
1581
  }
1802
1582
  }
1803
1583
  const tn = (e, t) => {
1804
1584
  const n = N();
1805
1585
  n && (Zt(n, t.backdrop), Qt(n, t.position), en(n, t.grow), oe(n, t, "container"));
1806
1586
  };
1807
- var P = {
1587
+ var H = {
1808
1588
  awaitingPromise: /* @__PURE__ */ new WeakMap(),
1809
1589
  promise: /* @__PURE__ */ new WeakMap(),
1810
1590
  innerParams: /* @__PURE__ */ new WeakMap(),
1811
1591
  domCache: /* @__PURE__ */ new WeakMap()
1812
1592
  };
1813
1593
  const nn = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], on = (e, t) => {
1814
- const n = I(), r = P.innerParams.get(e), h = !r || t.input !== r.input;
1594
+ const n = I(), r = H.innerParams.get(e), p = !r || t.input !== r.input;
1815
1595
  nn.forEach((A) => {
1816
- const U = u[A], te = fe(n, U);
1817
- an(A, t.inputAttributes), te.className = U, h && q(te);
1818
- }), t.input && (h && rn(t), cn(t));
1596
+ const O = d[A], te = fe(n, O);
1597
+ an(A, t.inputAttributes), te.className = O, p && z(te);
1598
+ }), t.input && (p && rn(t), cn(t));
1819
1599
  }, rn = (e) => {
1820
1600
  if (!Z[e.input])
1821
- return g('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input, '"'));
1601
+ return h('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input, '"'));
1822
1602
  const t = st(e.input), n = Z[e.input](t, e);
1823
1603
  X(n), setTimeout(() => {
1824
1604
  Qe(n);
@@ -1838,42 +1618,42 @@ var sweetalert2 = { exports: {} };
1838
1618
  }, cn = (e) => {
1839
1619
  const t = st(e.input);
1840
1620
  e.customClass && F(t, e.customClass.input);
1841
- }, Xe = (e, t) => {
1621
+ }, $e = (e, t) => {
1842
1622
  (!e.placeholder || t.inputPlaceholder) && (e.placeholder = t.inputPlaceholder);
1843
- }, Be = (e, t, n) => {
1623
+ }, Te = (e, t, n) => {
1844
1624
  if (n.inputLabel) {
1845
- e.id = u.input;
1846
- const r = document.createElement("label"), h = u["input-label"];
1847
- r.setAttribute("for", e.id), r.className = h, F(r, n.customClass.inputLabel), r.innerText = n.inputLabel, t.insertAdjacentElement("beforebegin", r);
1625
+ e.id = d.input;
1626
+ const r = document.createElement("label"), p = d["input-label"];
1627
+ r.setAttribute("for", e.id), r.className = p, F(r, n.customClass.inputLabel), r.innerText = n.inputLabel, t.insertAdjacentElement("beforebegin", r);
1848
1628
  }
1849
1629
  }, st = (e) => {
1850
- const t = u[e] ? u[e] : u.input;
1630
+ const t = d[e] ? d[e] : d.input;
1851
1631
  return fe(I(), t);
1852
1632
  }, Z = {};
1853
- Z.text = Z.email = Z.password = Z.number = Z.tel = Z.url = (e, t) => (typeof t.inputValue == "string" || typeof t.inputValue == "number" ? e.value = t.inputValue : J(t.inputValue) || k('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t.inputValue, '"')), Be(e, e, t), Xe(e, t), e.type = t.input, e), Z.file = (e, t) => (Be(e, e, t), Xe(e, t), e), Z.range = (e, t) => {
1633
+ Z.text = Z.email = Z.password = Z.number = Z.tel = Z.url = (e, t) => (typeof t.inputValue == "string" || typeof t.inputValue == "number" ? e.value = t.inputValue : J(t.inputValue) || y('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t.inputValue, '"')), Te(e, e, t), $e(e, t), e.type = t.input, e), Z.file = (e, t) => (Te(e, e, t), $e(e, t), e), Z.range = (e, t) => {
1854
1634
  const n = e.querySelector("input"), r = e.querySelector("output");
1855
- return n.value = t.inputValue, n.type = t.input, r.value = t.inputValue, Be(n, e, t), e;
1635
+ return n.value = t.inputValue, n.type = t.input, r.value = t.inputValue, Te(n, e, t), e;
1856
1636
  }, Z.select = (e, t) => {
1857
1637
  if (e.textContent = "", t.inputPlaceholder) {
1858
1638
  const n = document.createElement("option");
1859
- $(n, t.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, e.appendChild(n);
1639
+ q(n, t.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, e.appendChild(n);
1860
1640
  }
1861
- return Be(e, e, t), e;
1641
+ return Te(e, e, t), e;
1862
1642
  }, Z.radio = (e) => (e.textContent = "", e), Z.checkbox = (e, t) => {
1863
1643
  const n = Ne(I(), "checkbox");
1864
- n.value = "1", n.id = u.checkbox, n.checked = !!t.inputValue;
1644
+ n.value = "1", n.id = d.checkbox, n.checked = !!t.inputValue;
1865
1645
  const r = e.querySelector("span");
1866
- return $(r, t.inputPlaceholder), e;
1646
+ return q(r, t.inputPlaceholder), e;
1867
1647
  }, Z.textarea = (e, t) => {
1868
- e.value = t.inputValue, Xe(e, t), Be(e, e, t);
1648
+ e.value = t.inputValue, $e(e, t), Te(e, e, t);
1869
1649
  const n = (r) => parseInt(window.getComputedStyle(r).marginLeft) + parseInt(window.getComputedStyle(r).marginRight);
1870
1650
  return setTimeout(() => {
1871
1651
  if ("MutationObserver" in window) {
1872
- const r = parseInt(window.getComputedStyle(I()).width), h = () => {
1652
+ const r = parseInt(window.getComputedStyle(I()).width), p = () => {
1873
1653
  const A = e.offsetWidth + n(e);
1874
1654
  A > r ? I().style.width = "".concat(A, "px") : I().style.width = null;
1875
1655
  };
1876
- new MutationObserver(h).observe(e, {
1656
+ new MutationObserver(p).observe(e, {
1877
1657
  attributes: !0,
1878
1658
  attributeFilter: ["style"]
1879
1659
  });
@@ -1881,24 +1661,24 @@ var sweetalert2 = { exports: {} };
1881
1661
  }), e;
1882
1662
  };
1883
1663
  const ln = (e, t) => {
1884
- const n = ve();
1885
- oe(n, t, "htmlContainer"), t.html ? (De(t.html, n), X(n, "block")) : t.text ? (n.textContent = t.text, X(n, "block")) : q(n), on(e, t);
1664
+ const n = be();
1665
+ oe(n, t, "htmlContainer"), t.html ? (De(t.html, n), X(n, "block")) : t.text ? (n.textContent = t.text, X(n, "block")) : z(n), on(e, t);
1886
1666
  }, un = (e, t) => {
1887
- const n = S();
1667
+ const n = _();
1888
1668
  Le(n, t.footer), t.footer && De(t.footer, n), oe(n, t, "footer");
1889
1669
  }, dn = (e, t) => {
1890
1670
  const n = E();
1891
- $(n, t.closeButtonHtml), oe(n, t, "closeButton"), Le(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel);
1671
+ q(n, t.closeButtonHtml), oe(n, t, "closeButton"), Le(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel);
1892
1672
  }, fn = (e, t) => {
1893
- const n = P.innerParams.get(e), r = le();
1673
+ const n = H.innerParams.get(e), r = le();
1894
1674
  if (n && t.icon === n.icon) {
1895
1675
  at(r, t), it(r, t);
1896
1676
  return;
1897
1677
  }
1898
1678
  if (!t.icon && !t.iconHtml)
1899
- return q(r);
1679
+ return z(r);
1900
1680
  if (t.icon && Object.keys(ce).indexOf(t.icon) === -1)
1901
- return g('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon, '"')), q(r);
1681
+ return h('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon, '"')), z(r);
1902
1682
  X(r), at(r, t), it(r, t), F(r, t.showClass.icon);
1903
1683
  }, it = (e, t) => {
1904
1684
  for (const n in ce)
@@ -1919,7 +1699,7 @@ var sweetalert2 = { exports: {} };
1919
1699
  <span class="swal2-x-mark-line-right"></span>
1920
1700
  </span>
1921
1701
  `, at = (e, t) => {
1922
- e.textContent = "", t.iconHtml ? $(e, ct(t.iconHtml)) : t.icon === "success" ? $(e, pn) : t.icon === "error" ? $(e, mn) : $(e, ct({
1702
+ e.textContent = "", t.iconHtml ? q(e, ct(t.iconHtml)) : t.icon === "success" ? q(e, pn) : t.icon === "error" ? q(e, mn) : q(e, ct({
1923
1703
  question: "?",
1924
1704
  warning: "!",
1925
1705
  info: "i"
@@ -1931,38 +1711,38 @@ var sweetalert2 = { exports: {} };
1931
1711
  tt(e, n, "backgroundColor", t.iconColor);
1932
1712
  tt(e, ".swal2-success-ring", "borderColor", t.iconColor);
1933
1713
  }
1934
- }, ct = (e) => '<div class="'.concat(u["icon-content"], '">').concat(e, "</div>"), bn = (e, t) => {
1935
- const n = _e();
1714
+ }, ct = (e) => '<div class="'.concat(d["icon-content"], '">').concat(e, "</div>"), vn = (e, t) => {
1715
+ const n = Ae();
1936
1716
  if (!t.imageUrl)
1937
- return q(n);
1938
- X(n, ""), n.setAttribute("src", t.imageUrl), n.setAttribute("alt", t.imageAlt), Ee(n, "width", t.imageWidth), Ee(n, "height", t.imageHeight), n.className = u.image, oe(n, t, "image");
1939
- }, vn = (e) => {
1717
+ return z(n);
1718
+ X(n, ""), n.setAttribute("src", t.imageUrl), n.setAttribute("alt", t.imageAlt), Ee(n, "width", t.imageWidth), Ee(n, "height", t.imageHeight), n.className = d.image, oe(n, t, "image");
1719
+ }, bn = (e) => {
1940
1720
  const t = document.createElement("li");
1941
- return F(t, u["progress-step"]), $(t, e), t;
1721
+ return F(t, d["progress-step"]), q(t, e), t;
1942
1722
  }, wn = (e) => {
1943
1723
  const t = document.createElement("li");
1944
- return F(t, u["progress-step-line"]), e.progressStepsDistance && (t.style.width = e.progressStepsDistance), t;
1724
+ return F(t, d["progress-step-line"]), e.progressStepsDistance && (t.style.width = e.progressStepsDistance), t;
1945
1725
  }, yn = (e, t) => {
1946
1726
  const n = s();
1947
1727
  if (!t.progressSteps || t.progressSteps.length === 0)
1948
- return q(n);
1949
- X(n), n.textContent = "", t.currentProgressStep >= t.progressSteps.length && k("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), t.progressSteps.forEach((r, h) => {
1950
- const A = vn(r);
1951
- if (n.appendChild(A), h === t.currentProgressStep && F(A, u["active-progress-step"]), h !== t.progressSteps.length - 1) {
1952
- const U = wn(t);
1953
- n.appendChild(U);
1728
+ return z(n);
1729
+ X(n), n.textContent = "", t.currentProgressStep >= t.progressSteps.length && y("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), t.progressSteps.forEach((r, p) => {
1730
+ const A = bn(r);
1731
+ if (n.appendChild(A), p === t.currentProgressStep && F(A, d["active-progress-step"]), p !== t.progressSteps.length - 1) {
1732
+ const O = wn(t);
1733
+ n.appendChild(O);
1954
1734
  }
1955
1735
  });
1956
1736
  }, kn = (e, t) => {
1957
- const n = be();
1737
+ const n = ve();
1958
1738
  Le(n, t.title || t.titleText, "block"), t.title && De(t.title, n), t.titleText && (n.innerText = t.titleText), oe(n, t, "title");
1959
1739
  }, Cn = (e, t) => {
1960
1740
  const n = N(), r = I();
1961
- t.toast ? (Ee(n, "width", t.width), r.style.width = "100%", r.insertBefore(C(), le())) : Ee(r, "width", t.width), Ee(r, "padding", t.padding), t.color && (r.style.color = t.color), t.background && (r.style.background = t.background), q(c()), xn(r, t);
1741
+ t.toast ? (Ee(n, "width", t.width), r.style.width = "100%", r.insertBefore(C(), le())) : Ee(r, "width", t.width), Ee(r, "padding", t.padding), t.color && (r.style.color = t.color), t.background && (r.style.background = t.background), z(c()), xn(r, t);
1962
1742
  }, xn = (e, t) => {
1963
- e.className = "".concat(u.popup, " ").concat(ee(e) ? t.showClass.popup : ""), t.toast ? (F([document.documentElement, document.body], u["toast-shown"]), F(e, u.toast)) : F(e, u.modal), oe(e, t, "popup"), typeof t.customClass == "string" && F(e, t.customClass), t.icon && F(e, u["icon-".concat(t.icon)]);
1743
+ e.className = "".concat(d.popup, " ").concat(ee(e) ? t.showClass.popup : ""), t.toast ? (F([document.documentElement, document.body], d["toast-shown"]), F(e, d.toast)) : F(e, d.modal), oe(e, t, "popup"), typeof t.customClass == "string" && F(e, t.customClass), t.icon && F(e, d["icon-".concat(t.icon)]);
1964
1744
  }, lt = (e, t) => {
1965
- Cn(e, t), tn(e, t), yn(e, t), fn(e, t), bn(e, t), kn(e, t), dn(e, t), ln(e, t), Jt(e, t), un(e, t), typeof t.didRender == "function" && t.didRender(I());
1745
+ Cn(e, t), tn(e, t), yn(e, t), fn(e, t), vn(e, t), kn(e, t), dn(e, t), ln(e, t), Jt(e, t), un(e, t), typeof t.didRender == "function" && t.didRender(I());
1966
1746
  }, ye = Object.freeze({
1967
1747
  cancel: "cancel",
1968
1748
  backdrop: "backdrop",
@@ -1977,57 +1757,57 @@ var sweetalert2 = { exports: {} };
1977
1757
  l(document.body.children).forEach((t) => {
1978
1758
  t.hasAttribute("data-previous-aria-hidden") ? (t.setAttribute("aria-hidden", t.getAttribute("data-previous-aria-hidden")), t.removeAttribute("data-previous-aria-hidden")) : t.removeAttribute("aria-hidden");
1979
1759
  });
1980
- }, dt = ["swal-title", "swal-html", "swal-footer"], An = (e) => {
1760
+ }, dt = ["swal-title", "swal-html", "swal-footer"], _n = (e) => {
1981
1761
  const t = typeof e.template == "string" ? document.querySelector(e.template) : e.template;
1982
1762
  if (!t)
1983
1763
  return {};
1984
1764
  const n = t.content;
1985
- return In(n), Object.assign(_n(n), En(n), Tn(n), Bn(n), Pn(n), Hn(n, dt));
1986
- }, _n = (e) => {
1765
+ return In(n), Object.assign(An(n), En(n), Bn(n), Tn(n), Pn(n), Hn(n, dt));
1766
+ }, An = (e) => {
1987
1767
  const t = {};
1988
1768
  return l(e.querySelectorAll("swal-param")).forEach((n) => {
1989
1769
  ge(n, ["name", "value"]);
1990
- const r = n.getAttribute("name"), h = n.getAttribute("value");
1991
- typeof V[r] == "boolean" && h === "false" && (t[r] = !1), typeof V[r] == "object" && (t[r] = JSON.parse(h));
1770
+ const r = n.getAttribute("name"), p = n.getAttribute("value");
1771
+ typeof D[r] == "boolean" && p === "false" && (t[r] = !1), typeof D[r] == "object" && (t[r] = JSON.parse(p));
1992
1772
  }), t;
1993
1773
  }, En = (e) => {
1994
1774
  const t = {};
1995
1775
  return l(e.querySelectorAll("swal-button")).forEach((n) => {
1996
1776
  ge(n, ["type", "color", "aria-label"]);
1997
1777
  const r = n.getAttribute("type");
1998
- t["".concat(r, "ButtonText")] = n.innerHTML, t["show".concat(y(r), "Button")] = !0, n.hasAttribute("color") && (t["".concat(r, "ButtonColor")] = n.getAttribute("color")), n.hasAttribute("aria-label") && (t["".concat(r, "ButtonAriaLabel")] = n.getAttribute("aria-label"));
1778
+ t["".concat(r, "ButtonText")] = n.innerHTML, t["show".concat(k(r), "Button")] = !0, n.hasAttribute("color") && (t["".concat(r, "ButtonColor")] = n.getAttribute("color")), n.hasAttribute("aria-label") && (t["".concat(r, "ButtonAriaLabel")] = n.getAttribute("aria-label"));
1999
1779
  }), t;
2000
- }, Tn = (e) => {
1780
+ }, Bn = (e) => {
2001
1781
  const t = {}, n = e.querySelector("swal-image");
2002
1782
  return n && (ge(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (t.imageUrl = n.getAttribute("src")), n.hasAttribute("width") && (t.imageWidth = n.getAttribute("width")), n.hasAttribute("height") && (t.imageHeight = n.getAttribute("height")), n.hasAttribute("alt") && (t.imageAlt = n.getAttribute("alt"))), t;
2003
- }, Bn = (e) => {
1783
+ }, Tn = (e) => {
2004
1784
  const t = {}, n = e.querySelector("swal-icon");
2005
1785
  return n && (ge(n, ["type", "color"]), n.hasAttribute("type") && (t.icon = n.getAttribute("type")), n.hasAttribute("color") && (t.iconColor = n.getAttribute("color")), t.iconHtml = n.innerHTML), t;
2006
1786
  }, Pn = (e) => {
2007
1787
  const t = {}, n = e.querySelector("swal-input");
2008
1788
  n && (ge(n, ["type", "label", "placeholder", "value"]), t.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (t.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (t.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (t.inputValue = n.getAttribute("value")));
2009
1789
  const r = e.querySelectorAll("swal-input-option");
2010
- return r.length && (t.inputOptions = {}, l(r).forEach((h) => {
2011
- ge(h, ["value"]);
2012
- const A = h.getAttribute("value"), U = h.innerHTML;
2013
- t.inputOptions[A] = U;
1790
+ return r.length && (t.inputOptions = {}, l(r).forEach((p) => {
1791
+ ge(p, ["value"]);
1792
+ const A = p.getAttribute("value"), O = p.innerHTML;
1793
+ t.inputOptions[A] = O;
2014
1794
  })), t;
2015
1795
  }, Hn = (e, t) => {
2016
1796
  const n = {};
2017
1797
  for (const r in t) {
2018
- const h = t[r], A = e.querySelector(h);
2019
- A && (ge(A, []), n[h.replace(/^swal-/, "")] = A.innerHTML.trim());
1798
+ const p = t[r], A = e.querySelector(p);
1799
+ A && (ge(A, []), n[p.replace(/^swal-/, "")] = A.innerHTML.trim());
2020
1800
  }
2021
1801
  return n;
2022
1802
  }, In = (e) => {
2023
1803
  const t = dt.concat(["swal-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
2024
1804
  l(e.children).forEach((n) => {
2025
1805
  const r = n.tagName.toLowerCase();
2026
- t.indexOf(r) === -1 && k("Unrecognized element <".concat(r, ">"));
1806
+ t.indexOf(r) === -1 && y("Unrecognized element <".concat(r, ">"));
2027
1807
  });
2028
1808
  }, ge = (e, t) => {
2029
1809
  l(e.attributes).forEach((n) => {
2030
- t.indexOf(n.name) === -1 && k(['Unrecognized attribute "'.concat(n.name, '" on <').concat(e.tagName.toLowerCase(), ">."), "".concat(t.length ? "Allowed attributes are: ".concat(t.join(", ")) : "To set the value, use HTML within the element.")]);
1810
+ t.indexOf(n.name) === -1 && y(['Unrecognized attribute "'.concat(n.name, '" on <').concat(e.tagName.toLowerCase(), ">."), "".concat(t.length ? "Allowed attributes are: ".concat(t.join(", ")) : "To set the value, use HTML within the element.")]);
2031
1811
  });
2032
1812
  };
2033
1813
  var ft = {
@@ -2040,10 +1820,10 @@ var sweetalert2 = { exports: {} };
2040
1820
  });
2041
1821
  }
2042
1822
  function Ln(e) {
2043
- (!e.target || typeof e.target == "string" && !document.querySelector(e.target) || typeof e.target != "string" && !e.target.appendChild) && (k('Target parameter is not valid, defaulting to "body"'), e.target = "body");
1823
+ (!e.target || typeof e.target == "string" && !document.querySelector(e.target) || typeof e.target != "string" && !e.target.appendChild) && (y('Target parameter is not valid, defaulting to "body"'), e.target = "body");
2044
1824
  }
2045
1825
  function Rn(e) {
2046
- Fn(e), e.showLoaderOnConfirm && !e.preConfirm && k(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
1826
+ Fn(e), e.showLoaderOnConfirm && !e.preConfirm && y(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
2047
1827
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
2048
1828
  https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string" && (e.title = e.title.split(`
2049
1829
  `).join("<br />")), qt(e);
@@ -2070,14 +1850,14 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
2070
1850
  }
2071
1851
  }
2072
1852
  const Mn = () => {
2073
- we.previousBodyPadding === null && document.body.scrollHeight > window.innerHeight && (we.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = "".concat(we.previousBodyPadding + Wt(), "px"));
1853
+ we.previousBodyPadding === null && document.body.scrollHeight > window.innerHeight && (we.previousBodyPadding = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = "".concat(we.previousBodyPadding + Kt(), "px"));
2074
1854
  }, On = () => {
2075
1855
  we.previousBodyPadding !== null && (document.body.style.paddingRight = "".concat(we.previousBodyPadding, "px"), we.previousBodyPadding = null);
2076
1856
  }, Nn = () => {
2077
1857
  if (// @ts-ignore
2078
- (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !ue(document.body, u.iosfix)) {
1858
+ (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1) && !ue(document.body, d.iosfix)) {
2079
1859
  const t = document.body.scrollTop;
2080
- document.body.style.top = "".concat(t * -1, "px"), F(document.body, u.iosfix), Dn(), Vn();
1860
+ document.body.style.top = "".concat(t * -1, "px"), F(document.body, d.iosfix), Dn(), Vn();
2081
1861
  }
2082
1862
  }, Vn = () => {
2083
1863
  const e = navigator.userAgent, t = !!e.match(/iPad/i) || !!e.match(/iPhone/i), n = !!e.match(/WebKit/i);
@@ -2092,48 +1872,48 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
2092
1872
  };
2093
1873
  }, jn = (e) => {
2094
1874
  const t = e.target, n = N();
2095
- return Xn(e) || $n(e) ? !1 : t === n || !nt(n) && t.tagName !== "INPUT" && // #1603
1875
+ return $n(e) || Xn(e) ? !1 : t === n || !nt(n) && t.tagName !== "INPUT" && // #1603
2096
1876
  t.tagName !== "TEXTAREA" && // #2266
2097
- !(nt(ve()) && // #1944
2098
- ve().contains(t));
2099
- }, Xn = (e) => e.touches && e.touches.length && e.touches[0].touchType === "stylus", $n = (e) => e.touches && e.touches.length > 1, qn = () => {
2100
- if (ue(document.body, u.iosfix)) {
1877
+ !(nt(be()) && // #1944
1878
+ be().contains(t));
1879
+ }, $n = (e) => e.touches && e.touches.length && e.touches[0].touchType === "stylus", Xn = (e) => e.touches && e.touches.length > 1, qn = () => {
1880
+ if (ue(document.body, d.iosfix)) {
2101
1881
  const e = parseInt(document.body.style.top, 10);
2102
- se(document.body, u.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
1882
+ se(document.body, d.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
2103
1883
  }
2104
- }, ht = 10, Kn = (e) => {
1884
+ }, ht = 10, zn = (e) => {
2105
1885
  const t = N(), n = I();
2106
1886
  typeof e.willOpen == "function" && e.willOpen(n);
2107
- const h = window.getComputedStyle(document.body).overflowY;
1887
+ const p = window.getComputedStyle(document.body).overflowY;
2108
1888
  Jn(t, n, e), setTimeout(() => {
2109
- zn(t, n);
2110
- }, ht), ne() && (Wn(t, e.scrollbarPadding, h), Sn()), !j() && !T.previousActiveElement && (T.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), se(t, u["no-transition"]);
1889
+ Wn(t, n);
1890
+ }, ht), ne() && (Kn(t, e.scrollbarPadding, p), Sn()), !$() && !P.previousActiveElement && (P.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), se(t, d["no-transition"]);
2111
1891
  }, pt = (e) => {
2112
1892
  const t = I();
2113
1893
  if (e.target !== t)
2114
1894
  return;
2115
1895
  const n = N();
2116
- t.removeEventListener(Te, pt), n.style.overflowY = "auto";
2117
- }, zn = (e, t) => {
2118
- Te && ot(t) ? (e.style.overflowY = "hidden", t.addEventListener(Te, pt)) : e.style.overflowY = "auto";
2119
- }, Wn = (e, t, n) => {
1896
+ t.removeEventListener(Be, pt), n.style.overflowY = "auto";
1897
+ }, Wn = (e, t) => {
1898
+ Be && ot(t) ? (e.style.overflowY = "hidden", t.addEventListener(Be, pt)) : e.style.overflowY = "auto";
1899
+ }, Kn = (e, t, n) => {
2120
1900
  Nn(), t && n !== "hidden" && Mn(), setTimeout(() => {
2121
1901
  e.scrollTop = 0;
2122
1902
  });
2123
1903
  }, Jn = (e, t, n) => {
2124
1904
  F(e, n.showClass.backdrop), t.style.setProperty("opacity", "0", "important"), X(t, "grid"), setTimeout(() => {
2125
1905
  F(t, n.showClass.popup), t.style.removeProperty("opacity");
2126
- }, ht), F([document.documentElement, document.body], u.shown), n.heightAuto && n.backdrop && !n.toast && F([document.documentElement, document.body], u["height-auto"]);
1906
+ }, ht), F([document.documentElement, document.body], d.shown), n.heightAuto && n.backdrop && !n.toast && F([document.documentElement, document.body], d["height-auto"]);
2127
1907
  }, ke = (e) => {
2128
1908
  let t = I();
2129
1909
  t || new Me(), t = I();
2130
1910
  const n = C();
2131
- j() ? q(le()) : Yn(t, e), X(n), t.setAttribute("data-loading", !0), t.setAttribute("aria-busy", !0), t.focus();
1911
+ $() ? z(le()) : Yn(t, e), X(n), t.setAttribute("data-loading", !0), t.setAttribute("aria-busy", !0), t.focus();
2132
1912
  }, Yn = (e, t) => {
2133
- const n = v(), r = C();
2134
- !t && ee(m()) && (t = m()), X(n), t && (q(t), r.setAttribute("data-button-to-replace", t.className)), r.parentNode.insertBefore(r, t), F([e, n], u.loading);
1913
+ const n = b(), r = C();
1914
+ !t && ee(g()) && (t = g()), X(n), t && (z(t), r.setAttribute("data-button-to-replace", t.className)), r.parentNode.insertBefore(r, t), F([e, n], d.loading);
2135
1915
  }, Gn = (e, t) => {
2136
- t.input === "select" || t.input === "radio" ? no(e, t) : ["text", "email", "number", "tel", "textarea"].includes(t.input) && (W(t.inputValue) || J(t.inputValue)) && (ke(m()), oo(e, t));
1916
+ t.input === "select" || t.input === "radio" ? no(e, t) : ["text", "email", "number", "tel", "textarea"].includes(t.input) && (V(t.inputValue) || J(t.inputValue)) && (ke(g()), oo(e, t));
2137
1917
  }, Zn = (e, t) => {
2138
1918
  const n = e.getInput();
2139
1919
  if (!n)
@@ -2149,78 +1929,78 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
2149
1929
  return t.inputAutoTrim ? n.value.trim() : n.value;
2150
1930
  }
2151
1931
  }, Qn = (e) => e.checked ? 1 : 0, eo = (e) => e.checked ? e.value : null, to = (e) => e.files.length ? e.getAttribute("multiple") !== null ? e.files : e.files[0] : null, no = (e, t) => {
2152
- const n = I(), r = (h) => ro[t.input](n, $e(h), t);
2153
- W(t.inputOptions) || J(t.inputOptions) ? (ke(m()), B(t.inputOptions).then((h) => {
2154
- e.hideLoading(), r(h);
2155
- })) : typeof t.inputOptions == "object" ? r(t.inputOptions) : g("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions));
1932
+ const n = I(), r = (p) => ro[t.input](n, Xe(p), t);
1933
+ V(t.inputOptions) || J(t.inputOptions) ? (ke(g()), T(t.inputOptions).then((p) => {
1934
+ e.hideLoading(), r(p);
1935
+ })) : typeof t.inputOptions == "object" ? r(t.inputOptions) : h("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions));
2156
1936
  }, oo = (e, t) => {
2157
1937
  const n = e.getInput();
2158
- q(n), B(t.inputValue).then((r) => {
1938
+ z(n), T(t.inputValue).then((r) => {
2159
1939
  n.value = t.input === "number" ? parseFloat(r) || 0 : "".concat(r), X(n), n.focus(), e.hideLoading();
2160
1940
  }).catch((r) => {
2161
- g("Error in inputValue promise: ".concat(r)), n.value = "", X(n), n.focus(), e.hideLoading();
1941
+ h("Error in inputValue promise: ".concat(r)), n.value = "", X(n), n.focus(), e.hideLoading();
2162
1942
  });
2163
1943
  }, ro = {
2164
1944
  select: (e, t, n) => {
2165
- const r = fe(e, u.select), h = (A, U, te) => {
2166
- const z = document.createElement("option");
2167
- z.value = te, $(z, U), z.selected = mt(te, n.inputValue), A.appendChild(z);
1945
+ const r = fe(e, d.select), p = (A, O, te) => {
1946
+ const W = document.createElement("option");
1947
+ W.value = te, q(W, O), W.selected = mt(te, n.inputValue), A.appendChild(W);
2168
1948
  };
2169
1949
  t.forEach((A) => {
2170
- const U = A[0], te = A[1];
1950
+ const O = A[0], te = A[1];
2171
1951
  if (Array.isArray(te)) {
2172
- const z = document.createElement("optgroup");
2173
- z.label = U, z.disabled = !1, r.appendChild(z), te.forEach((xe) => h(z, xe[1], xe[0]));
1952
+ const W = document.createElement("optgroup");
1953
+ W.label = O, W.disabled = !1, r.appendChild(W), te.forEach((xe) => p(W, xe[1], xe[0]));
2174
1954
  } else
2175
- h(r, te, U);
1955
+ p(r, te, O);
2176
1956
  }), r.focus();
2177
1957
  },
2178
1958
  radio: (e, t, n) => {
2179
- const r = fe(e, u.radio);
1959
+ const r = fe(e, d.radio);
2180
1960
  t.forEach((A) => {
2181
- const U = A[0], te = A[1], z = document.createElement("input"), xe = document.createElement("label");
2182
- z.type = "radio", z.name = u.radio, z.value = U, mt(U, n.inputValue) && (z.checked = !0);
1961
+ const O = A[0], te = A[1], W = document.createElement("input"), xe = document.createElement("label");
1962
+ W.type = "radio", W.name = d.radio, W.value = O, mt(O, n.inputValue) && (W.checked = !0);
2183
1963
  const Ge = document.createElement("span");
2184
- $(Ge, te), Ge.className = u.label, xe.appendChild(z), xe.appendChild(Ge), r.appendChild(xe);
1964
+ q(Ge, te), Ge.className = d.label, xe.appendChild(W), xe.appendChild(Ge), r.appendChild(xe);
2185
1965
  });
2186
- const h = r.querySelectorAll("input");
2187
- h.length && h[0].focus();
1966
+ const p = r.querySelectorAll("input");
1967
+ p.length && p[0].focus();
2188
1968
  }
2189
- }, $e = (e) => {
1969
+ }, Xe = (e) => {
2190
1970
  const t = [];
2191
1971
  return typeof Map < "u" && e instanceof Map ? e.forEach((n, r) => {
2192
- let h = n;
2193
- typeof h == "object" && (h = $e(h)), t.push([r, h]);
1972
+ let p = n;
1973
+ typeof p == "object" && (p = Xe(p)), t.push([r, p]);
2194
1974
  }) : Object.keys(e).forEach((n) => {
2195
1975
  let r = e[n];
2196
- typeof r == "object" && (r = $e(r)), t.push([n, r]);
1976
+ typeof r == "object" && (r = Xe(r)), t.push([n, r]);
2197
1977
  }), t;
2198
1978
  }, mt = (e, t) => t && t.toString() === e.toString();
2199
1979
  function gt() {
2200
- const e = P.innerParams.get(this);
1980
+ const e = H.innerParams.get(this);
2201
1981
  if (!e)
2202
1982
  return;
2203
- const t = P.domCache.get(this);
2204
- q(t.loader), j() ? e.icon && X(le()) : so(t), se([t.popup, t.actions], u.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
1983
+ const t = H.domCache.get(this);
1984
+ z(t.loader), $() ? e.icon && X(le()) : so(t), se([t.popup, t.actions], d.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
2205
1985
  }
2206
1986
  const so = (e) => {
2207
1987
  const t = e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));
2208
- t.length ? X(t[0], "inline-block") : Lt() && q(e.actions);
1988
+ t.length ? X(t[0], "inline-block") : Lt() && z(e.actions);
2209
1989
  };
2210
1990
  function io(e) {
2211
- const t = P.innerParams.get(e || this), n = P.domCache.get(e || this);
1991
+ const t = H.innerParams.get(e || this), n = H.domCache.get(e || this);
2212
1992
  return n ? Ne(n.popup, t.input) : null;
2213
1993
  }
2214
1994
  var Pe = {
2215
1995
  swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
2216
1996
  swalPromiseReject: /* @__PURE__ */ new WeakMap()
2217
1997
  };
2218
- const ao = () => ee(I()), bt = () => m() && m().click(), co = () => w() && w().click(), lo = () => b() && b().click(), vt = (e) => {
1998
+ const ao = () => ee(I()), vt = () => g() && g().click(), co = () => w() && w().click(), lo = () => v() && v().click(), bt = (e) => {
2219
1999
  e.keydownTarget && e.keydownHandlerAdded && (e.keydownTarget.removeEventListener("keydown", e.keydownHandler, {
2220
2000
  capture: e.keydownListenerCapture
2221
2001
  }), e.keydownHandlerAdded = !1);
2222
2002
  }, uo = (e, t, n, r) => {
2223
- vt(t), n.toast || (t.keydownHandler = (h) => ho(e, h, r), t.keydownTarget = n.keydownListenerCapture ? window : I(), t.keydownListenerCapture = n.keydownListenerCapture, t.keydownTarget.addEventListener("keydown", t.keydownHandler, {
2003
+ bt(t), n.toast || (t.keydownHandler = (p) => ho(e, p, r), t.keydownTarget = n.keydownListenerCapture ? window : I(), t.keydownListenerCapture = n.keydownListenerCapture, t.keydownTarget.addEventListener("keydown", t.keydownHandler, {
2224
2004
  capture: t.keydownListenerCapture
2225
2005
  }), t.keydownHandlerAdded = !0);
2226
2006
  }, qe = (e, t, n) => {
@@ -2229,44 +2009,44 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
2229
2009
  return t = t + n, t === r.length ? t = 0 : t === -1 && (t = r.length - 1), r[t].focus();
2230
2010
  I().focus();
2231
2011
  }, wt = ["ArrowRight", "ArrowDown"], fo = ["ArrowLeft", "ArrowUp"], ho = (e, t, n) => {
2232
- const r = P.innerParams.get(e);
2233
- r && (t.isComposing || t.keyCode === 229 || (r.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? po(e, t, r) : t.key === "Tab" ? mo(t, r) : [...wt, ...fo].includes(t.key) ? go(t.key) : t.key === "Escape" && bo(t, r, n)));
2012
+ const r = H.innerParams.get(e);
2013
+ r && (t.isComposing || t.keyCode === 229 || (r.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? po(e, t, r) : t.key === "Tab" ? mo(t, r) : [...wt, ...fo].includes(t.key) ? go(t.key) : t.key === "Escape" && vo(t, r, n)));
2234
2014
  }, po = (e, t, n) => {
2235
- if (O(n.allowEnterKey) && t.target && e.getInput() && t.target.outerHTML === e.getInput().outerHTML) {
2015
+ if (R(n.allowEnterKey) && t.target && e.getInput() && t.target.outerHTML === e.getInput().outerHTML) {
2236
2016
  if (["textarea", "file"].includes(n.input))
2237
2017
  return;
2238
- bt(), t.preventDefault();
2018
+ vt(), t.preventDefault();
2239
2019
  }
2240
2020
  }, mo = (e, t) => {
2241
2021
  const n = e.target, r = G();
2242
- let h = -1;
2022
+ let p = -1;
2243
2023
  for (let A = 0; A < r.length; A++)
2244
2024
  if (n === r[A]) {
2245
- h = A;
2025
+ p = A;
2246
2026
  break;
2247
2027
  }
2248
- e.shiftKey ? qe(t, h, -1) : qe(t, h, 1), e.stopPropagation(), e.preventDefault();
2028
+ e.shiftKey ? qe(t, p, -1) : qe(t, p, 1), e.stopPropagation(), e.preventDefault();
2249
2029
  }, go = (e) => {
2250
- const t = m(), n = w(), r = b();
2030
+ const t = g(), n = w(), r = v();
2251
2031
  if (![t, n, r].includes(document.activeElement))
2252
2032
  return;
2253
- const h = wt.includes(e) ? "nextElementSibling" : "previousElementSibling";
2033
+ const p = wt.includes(e) ? "nextElementSibling" : "previousElementSibling";
2254
2034
  let A = document.activeElement;
2255
- for (let U = 0; U < v().children.length; U++) {
2256
- if (A = A[h], !A)
2035
+ for (let O = 0; O < b().children.length; O++) {
2036
+ if (A = A[p], !A)
2257
2037
  return;
2258
2038
  if (ee(A) && A instanceof HTMLButtonElement)
2259
2039
  break;
2260
2040
  }
2261
2041
  A instanceof HTMLButtonElement && A.focus();
2262
- }, bo = (e, t, n) => {
2263
- O(t.allowEscapeKey) && (e.preventDefault(), n(ye.esc));
2042
+ }, vo = (e, t, n) => {
2043
+ R(t.allowEscapeKey) && (e.preventDefault(), n(ye.esc));
2264
2044
  };
2265
2045
  function yt(e, t, n, r) {
2266
- j() ? kt(e, r) : (Ot(n).then(() => kt(e, r)), vt(T)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), ne() && (On(), qn(), ut()), vo();
2046
+ $() ? kt(e, r) : (Ot(n).then(() => kt(e, r)), bt(P)), /^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), ne() && (On(), qn(), ut()), bo();
2267
2047
  }
2268
- function vo() {
2269
- se([document.documentElement, document.body], [u.shown, u["height-auto"], u["no-backdrop"], u["toast-shown"]]);
2048
+ function bo() {
2049
+ se([document.documentElement, document.body], [d.shown, d["height-auto"], d["no-backdrop"], d["toast-shown"]]);
2270
2050
  }
2271
2051
  function Re(e) {
2272
2052
  e = Co(e);
@@ -2274,13 +2054,13 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
2274
2054
  this.isAwaitingPromise() ? e.isDismissed || (He(this), t(e)) : n && t(e);
2275
2055
  }
2276
2056
  function wo() {
2277
- return !!P.awaitingPromise.get(this);
2057
+ return !!H.awaitingPromise.get(this);
2278
2058
  }
2279
2059
  const yo = (e) => {
2280
2060
  const t = I();
2281
2061
  if (!t)
2282
2062
  return !1;
2283
- const n = P.innerParams.get(e);
2063
+ const n = H.innerParams.get(e);
2284
2064
  if (!n || ue(t, n.hideClass.popup))
2285
2065
  return !1;
2286
2066
  se(t, n.showClass.popup), F(t, n.hideClass.popup);
@@ -2292,7 +2072,7 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
2292
2072
  He(this), t && t(e);
2293
2073
  }
2294
2074
  const He = (e) => {
2295
- e.isAwaitingPromise() && (P.awaitingPromise.delete(e), P.innerParams.get(e) || e._destroy());
2075
+ e.isAwaitingPromise() && (H.awaitingPromise.delete(e), H.innerParams.get(e) || e._destroy());
2296
2076
  }, Co = (e) => typeof e > "u" ? {
2297
2077
  isConfirmed: !1,
2298
2078
  isDenied: !1,
@@ -2302,11 +2082,11 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
2302
2082
  isDenied: !1,
2303
2083
  isDismissed: !1
2304
2084
  }, e), xo = (e, t, n) => {
2305
- const r = N(), h = Te && ot(t);
2306
- typeof n.willClose == "function" && n.willClose(t), h ? So(e, t, r, n.returnFocus, n.didClose) : yt(e, r, n.returnFocus, n.didClose);
2307
- }, So = (e, t, n, r, h) => {
2308
- T.swalCloseEventFinishedCallback = yt.bind(null, e, n, r, h), t.addEventListener(Te, function(A) {
2309
- A.target === t && (T.swalCloseEventFinishedCallback(), delete T.swalCloseEventFinishedCallback);
2085
+ const r = N(), p = Be && ot(t);
2086
+ typeof n.willClose == "function" && n.willClose(t), p ? So(e, t, r, n.returnFocus, n.didClose) : yt(e, r, n.returnFocus, n.didClose);
2087
+ }, So = (e, t, n, r, p) => {
2088
+ P.swalCloseEventFinishedCallback = yt.bind(null, e, n, r, p), t.addEventListener(Be, function(A) {
2089
+ A.target === t && (P.swalCloseEventFinishedCallback(), delete P.swalCloseEventFinishedCallback);
2310
2090
  });
2311
2091
  }, kt = (e, t) => {
2312
2092
  setTimeout(() => {
@@ -2314,9 +2094,9 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
2314
2094
  });
2315
2095
  };
2316
2096
  function Ct(e, t, n) {
2317
- const r = P.domCache.get(e);
2318
- t.forEach((h) => {
2319
- r[h].disabled = n;
2097
+ const r = H.domCache.get(e);
2098
+ t.forEach((p) => {
2099
+ r[p].disabled = n;
2320
2100
  });
2321
2101
  }
2322
2102
  function xt(e, t) {
@@ -2324,44 +2104,44 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
2324
2104
  return !1;
2325
2105
  if (e.type === "radio") {
2326
2106
  const r = e.parentNode.parentNode.querySelectorAll("input");
2327
- for (let h = 0; h < r.length; h++)
2328
- r[h].disabled = t;
2107
+ for (let p = 0; p < r.length; p++)
2108
+ r[p].disabled = t;
2329
2109
  } else
2330
2110
  e.disabled = t;
2331
2111
  }
2332
- function Ao() {
2112
+ function _o() {
2333
2113
  Ct(this, ["confirmButton", "denyButton", "cancelButton"], !1);
2334
2114
  }
2335
- function _o() {
2115
+ function Ao() {
2336
2116
  Ct(this, ["confirmButton", "denyButton", "cancelButton"], !0);
2337
2117
  }
2338
2118
  function Eo() {
2339
2119
  return xt(this.getInput(), !1);
2340
2120
  }
2341
- function To() {
2121
+ function Bo() {
2342
2122
  return xt(this.getInput(), !0);
2343
2123
  }
2344
- function Bo(e) {
2345
- const t = P.domCache.get(this), n = P.innerParams.get(this);
2346
- $(t.validationMessage, e), t.validationMessage.className = u["validation-message"], n.customClass && n.customClass.validationMessage && F(t.validationMessage, n.customClass.validationMessage), X(t.validationMessage);
2124
+ function To(e) {
2125
+ const t = H.domCache.get(this), n = H.innerParams.get(this);
2126
+ q(t.validationMessage, e), t.validationMessage.className = d["validation-message"], n.customClass && n.customClass.validationMessage && F(t.validationMessage, n.customClass.validationMessage), X(t.validationMessage);
2347
2127
  const r = this.getInput();
2348
- r && (r.setAttribute("aria-invalid", !0), r.setAttribute("aria-describedby", u["validation-message"]), Qe(r), F(r, u.inputerror));
2128
+ r && (r.setAttribute("aria-invalid", !0), r.setAttribute("aria-describedby", d["validation-message"]), Qe(r), F(r, d.inputerror));
2349
2129
  }
2350
2130
  function Po() {
2351
- const e = P.domCache.get(this);
2352
- e.validationMessage && q(e.validationMessage);
2131
+ const e = H.domCache.get(this);
2132
+ e.validationMessage && z(e.validationMessage);
2353
2133
  const t = this.getInput();
2354
- t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), se(t, u.inputerror));
2134
+ t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), se(t, d.inputerror));
2355
2135
  }
2356
2136
  function Ho() {
2357
- return P.domCache.get(this).progressSteps;
2137
+ return H.domCache.get(this).progressSteps;
2358
2138
  }
2359
2139
  function Io(e) {
2360
- const t = I(), n = P.innerParams.get(this);
2140
+ const t = I(), n = H.innerParams.get(this);
2361
2141
  if (!t || ue(t, n.hideClass.popup))
2362
- return k("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
2363
- const r = Fo(e), h = Object.assign({}, n, r);
2364
- lt(this, h), P.innerParams.set(this, h), Object.defineProperties(this, {
2142
+ return y("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
2143
+ const r = Fo(e), p = Object.assign({}, n, r);
2144
+ lt(this, p), H.innerParams.set(this, p), Object.defineProperties(this, {
2365
2145
  params: {
2366
2146
  value: Object.assign({}, this.params, e),
2367
2147
  writable: !1,
@@ -2372,28 +2152,28 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
2372
2152
  const Fo = (e) => {
2373
2153
  const t = {};
2374
2154
  return Object.keys(e).forEach((n) => {
2375
- Se(n) ? t[n] = e[n] : k('Invalid parameter to update: "'.concat(n, `". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
2155
+ Se(n) ? t[n] = e[n] : y('Invalid parameter to update: "'.concat(n, `". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
2376
2156
 
2377
2157
  If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`));
2378
2158
  }), t;
2379
2159
  };
2380
2160
  function Lo() {
2381
- const e = P.domCache.get(this), t = P.innerParams.get(this);
2161
+ const e = H.domCache.get(this), t = H.innerParams.get(this);
2382
2162
  if (!t) {
2383
2163
  St(this);
2384
2164
  return;
2385
2165
  }
2386
- e.popup && T.swalCloseEventFinishedCallback && (T.swalCloseEventFinishedCallback(), delete T.swalCloseEventFinishedCallback), T.deferDisposalTimer && (clearTimeout(T.deferDisposalTimer), delete T.deferDisposalTimer), typeof t.didDestroy == "function" && t.didDestroy(), Ro(this);
2166
+ e.popup && P.swalCloseEventFinishedCallback && (P.swalCloseEventFinishedCallback(), delete P.swalCloseEventFinishedCallback), P.deferDisposalTimer && (clearTimeout(P.deferDisposalTimer), delete P.deferDisposalTimer), typeof t.didDestroy == "function" && t.didDestroy(), Ro(this);
2387
2167
  }
2388
2168
  const Ro = (e) => {
2389
- St(e), delete e.params, delete T.keydownHandler, delete T.keydownTarget, delete T.currentInstance;
2169
+ St(e), delete e.params, delete P.keydownHandler, delete P.keydownTarget, delete P.currentInstance;
2390
2170
  }, St = (e) => {
2391
- e.isAwaitingPromise() ? (Ke(P, e), P.awaitingPromise.set(e, !0)) : (Ke(Pe, e), Ke(P, e));
2392
- }, Ke = (e, t) => {
2171
+ e.isAwaitingPromise() ? (ze(H, e), H.awaitingPromise.set(e, !0)) : (ze(Pe, e), ze(H, e));
2172
+ }, ze = (e, t) => {
2393
2173
  for (const n in e)
2394
2174
  e[n].delete(t);
2395
2175
  };
2396
- var At = /* @__PURE__ */ Object.freeze({
2176
+ var _t = /* @__PURE__ */ Object.freeze({
2397
2177
  hideLoading: gt,
2398
2178
  disableLoading: gt,
2399
2179
  getInput: io,
@@ -2404,43 +2184,43 @@ If you think this parameter should be updatable, request it here: https://github
2404
2184
  closePopup: Re,
2405
2185
  closeModal: Re,
2406
2186
  closeToast: Re,
2407
- enableButtons: Ao,
2408
- disableButtons: _o,
2187
+ enableButtons: _o,
2188
+ disableButtons: Ao,
2409
2189
  enableInput: Eo,
2410
- disableInput: To,
2411
- showValidationMessage: Bo,
2190
+ disableInput: Bo,
2191
+ showValidationMessage: To,
2412
2192
  resetValidationMessage: Po,
2413
2193
  getProgressSteps: Ho,
2414
2194
  update: Io,
2415
2195
  _destroy: Lo
2416
2196
  });
2417
2197
  const Uo = (e) => {
2418
- const t = P.innerParams.get(e);
2419
- e.disableButtons(), t.input ? _t(e, "confirm") : We(e, !0);
2198
+ const t = H.innerParams.get(e);
2199
+ e.disableButtons(), t.input ? At(e, "confirm") : Ke(e, !0);
2420
2200
  }, Mo = (e) => {
2421
- const t = P.innerParams.get(e);
2422
- e.disableButtons(), t.returnInputValueOnDeny ? _t(e, "deny") : ze(e, !1);
2201
+ const t = H.innerParams.get(e);
2202
+ e.disableButtons(), t.returnInputValueOnDeny ? At(e, "deny") : We(e, !1);
2423
2203
  }, Oo = (e, t) => {
2424
2204
  e.disableButtons(), t(ye.cancel);
2425
- }, _t = (e, t) => {
2426
- const n = P.innerParams.get(e);
2205
+ }, At = (e, t) => {
2206
+ const n = H.innerParams.get(e);
2427
2207
  if (!n.input)
2428
- return g('The "input" parameter is needed to be set when using returnInputValueOn'.concat(y(t)));
2208
+ return h('The "input" parameter is needed to be set when using returnInputValueOn'.concat(k(t)));
2429
2209
  const r = Zn(e, n);
2430
- n.inputValidator ? No(e, r, t) : e.getInput().checkValidity() ? t === "deny" ? ze(e, r) : We(e, r) : (e.enableButtons(), e.showValidationMessage(n.validationMessage));
2210
+ n.inputValidator ? No(e, r, t) : e.getInput().checkValidity() ? t === "deny" ? We(e, r) : Ke(e, r) : (e.enableButtons(), e.showValidationMessage(n.validationMessage));
2431
2211
  }, No = (e, t, n) => {
2432
- const r = P.innerParams.get(e);
2433
- e.disableInput(), Promise.resolve().then(() => B(r.inputValidator(t, r.validationMessage))).then((A) => {
2434
- e.enableButtons(), e.enableInput(), A ? e.showValidationMessage(A) : n === "deny" ? ze(e, t) : We(e, t);
2212
+ const r = H.innerParams.get(e);
2213
+ e.disableInput(), Promise.resolve().then(() => T(r.inputValidator(t, r.validationMessage))).then((A) => {
2214
+ e.enableButtons(), e.enableInput(), A ? e.showValidationMessage(A) : n === "deny" ? We(e, t) : Ke(e, t);
2435
2215
  });
2436
- }, ze = (e, t) => {
2437
- const n = P.innerParams.get(e || void 0);
2438
- n.showLoaderOnDeny && ke(w()), n.preDeny ? (P.awaitingPromise.set(e || void 0, !0), Promise.resolve().then(() => B(n.preDeny(t, n.validationMessage))).then((h) => {
2439
- h === !1 ? (e.hideLoading(), He(e)) : e.closePopup({
2216
+ }, We = (e, t) => {
2217
+ const n = H.innerParams.get(e || void 0);
2218
+ n.showLoaderOnDeny && ke(w()), n.preDeny ? (H.awaitingPromise.set(e || void 0, !0), Promise.resolve().then(() => T(n.preDeny(t, n.validationMessage))).then((p) => {
2219
+ p === !1 ? (e.hideLoading(), He(e)) : e.closePopup({
2440
2220
  isDenied: !0,
2441
- value: typeof h > "u" ? t : h
2221
+ value: typeof p > "u" ? t : p
2442
2222
  });
2443
- }).catch((h) => Tt(e || void 0, h))) : e.closePopup({
2223
+ }).catch((p) => Bt(e || void 0, p))) : e.closePopup({
2444
2224
  isDenied: !0,
2445
2225
  value: t
2446
2226
  });
@@ -2449,29 +2229,29 @@ If you think this parameter should be updatable, request it here: https://github
2449
2229
  isConfirmed: !0,
2450
2230
  value: t
2451
2231
  });
2452
- }, Tt = (e, t) => {
2232
+ }, Bt = (e, t) => {
2453
2233
  e.rejectPromise(t);
2454
- }, We = (e, t) => {
2455
- const n = P.innerParams.get(e || void 0);
2456
- n.showLoaderOnConfirm && ke(), n.preConfirm ? (e.resetValidationMessage(), P.awaitingPromise.set(e || void 0, !0), Promise.resolve().then(() => B(n.preConfirm(t, n.validationMessage))).then((h) => {
2457
- ee(c()) || h === !1 ? (e.hideLoading(), He(e)) : Et(e, typeof h > "u" ? t : h);
2458
- }).catch((h) => Tt(e || void 0, h))) : Et(e, t);
2234
+ }, Ke = (e, t) => {
2235
+ const n = H.innerParams.get(e || void 0);
2236
+ n.showLoaderOnConfirm && ke(), n.preConfirm ? (e.resetValidationMessage(), H.awaitingPromise.set(e || void 0, !0), Promise.resolve().then(() => T(n.preConfirm(t, n.validationMessage))).then((p) => {
2237
+ ee(c()) || p === !1 ? (e.hideLoading(), He(e)) : Et(e, typeof p > "u" ? t : p);
2238
+ }).catch((p) => Bt(e || void 0, p))) : Et(e, t);
2459
2239
  }, Vo = (e, t, n) => {
2460
- P.innerParams.get(e).toast ? Do(e, t, n) : (Xo(t), $o(t), qo(e, t, n));
2240
+ H.innerParams.get(e).toast ? Do(e, t, n) : ($o(t), Xo(t), qo(e, t, n));
2461
2241
  }, Do = (e, t, n) => {
2462
2242
  t.popup.onclick = () => {
2463
- const r = P.innerParams.get(e);
2243
+ const r = H.innerParams.get(e);
2464
2244
  r && (jo(r) || r.timer || r.input) || n(ye.close);
2465
2245
  };
2466
2246
  }, jo = (e) => e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton;
2467
2247
  let Ue = !1;
2468
- const Xo = (e) => {
2248
+ const $o = (e) => {
2469
2249
  e.popup.onmousedown = () => {
2470
2250
  e.container.onmouseup = function(t) {
2471
2251
  e.container.onmouseup = void 0, t.target === e.container && (Ue = !0);
2472
2252
  };
2473
2253
  };
2474
- }, $o = (e) => {
2254
+ }, Xo = (e) => {
2475
2255
  e.container.onmousedown = () => {
2476
2256
  e.popup.onmouseup = function(t) {
2477
2257
  e.popup.onmouseup = void 0, (t.target === e.popup || e.popup.contains(t.target)) && (Ue = !0);
@@ -2479,21 +2259,21 @@ If you think this parameter should be updatable, request it here: https://github
2479
2259
  };
2480
2260
  }, qo = (e, t, n) => {
2481
2261
  t.container.onclick = (r) => {
2482
- const h = P.innerParams.get(e);
2262
+ const p = H.innerParams.get(e);
2483
2263
  if (Ue) {
2484
2264
  Ue = !1;
2485
2265
  return;
2486
2266
  }
2487
- r.target === t.container && O(h.allowOutsideClick) && n(ye.backdrop);
2267
+ r.target === t.container && R(p.allowOutsideClick) && n(ye.backdrop);
2488
2268
  };
2489
- }, Ko = (e) => typeof e == "object" && e.jquery, Bt = (e) => e instanceof Element || Ko(e), zo = (e) => {
2269
+ }, zo = (e) => typeof e == "object" && e.jquery, Tt = (e) => e instanceof Element || zo(e), Wo = (e) => {
2490
2270
  const t = {};
2491
- return typeof e[0] == "object" && !Bt(e[0]) ? Object.assign(t, e[0]) : ["title", "html", "icon"].forEach((n, r) => {
2492
- const h = e[r];
2493
- typeof h == "string" || Bt(h) ? t[n] = h : h !== void 0 && g("Unexpected type of ".concat(n, '! Expected "string" or "Element", got ').concat(typeof h));
2271
+ return typeof e[0] == "object" && !Tt(e[0]) ? Object.assign(t, e[0]) : ["title", "html", "icon"].forEach((n, r) => {
2272
+ const p = e[r];
2273
+ typeof p == "string" || Tt(p) ? t[n] = p : p !== void 0 && h("Unexpected type of ".concat(n, '! Expected "string" or "Element", got ').concat(typeof p));
2494
2274
  }), t;
2495
2275
  };
2496
- function Wo() {
2276
+ function Ko() {
2497
2277
  const e = this;
2498
2278
  for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
2499
2279
  n[r] = arguments[r];
@@ -2501,29 +2281,29 @@ If you think this parameter should be updatable, request it here: https://github
2501
2281
  }
2502
2282
  function Jo(e) {
2503
2283
  class t extends this {
2504
- _main(r, h) {
2505
- return super._main(r, Object.assign({}, e, h));
2284
+ _main(r, p) {
2285
+ return super._main(r, Object.assign({}, e, p));
2506
2286
  }
2507
2287
  }
2508
2288
  return t;
2509
2289
  }
2510
- const Yo = () => T.timeout && T.timeout.getTimerLeft(), Pt = () => {
2511
- if (T.timeout)
2512
- return Rt(), T.timeout.stop();
2290
+ const Yo = () => P.timeout && P.timeout.getTimerLeft(), Pt = () => {
2291
+ if (P.timeout)
2292
+ return Rt(), P.timeout.stop();
2513
2293
  }, Ht = () => {
2514
- if (T.timeout) {
2515
- const e = T.timeout.start();
2294
+ if (P.timeout) {
2295
+ const e = P.timeout.start();
2516
2296
  return Ve(e), e;
2517
2297
  }
2518
2298
  }, Go = () => {
2519
- const e = T.timeout;
2299
+ const e = P.timeout;
2520
2300
  return e && (e.running ? Pt() : Ht());
2521
2301
  }, Zo = (e) => {
2522
- if (T.timeout) {
2523
- const t = T.timeout.increase(e);
2302
+ if (P.timeout) {
2303
+ const t = P.timeout.increase(e);
2524
2304
  return Ve(t, !0), t;
2525
2305
  }
2526
- }, Qo = () => T.timeout && T.timeout.isRunning();
2306
+ }, Qo = () => P.timeout && P.timeout.isRunning();
2527
2307
  let It = !1;
2528
2308
  const Je = {};
2529
2309
  function er() {
@@ -2546,30 +2326,30 @@ If you think this parameter should be updatable, request it here: https://github
2546
2326
  isValidParameter: ie,
2547
2327
  isUpdatableParameter: Se,
2548
2328
  isDeprecatedParameter: de,
2549
- argsToParams: zo,
2329
+ argsToParams: Wo,
2550
2330
  isVisible: ao,
2551
- clickConfirm: bt,
2331
+ clickConfirm: vt,
2552
2332
  clickDeny: co,
2553
2333
  clickCancel: lo,
2554
2334
  getContainer: N,
2555
2335
  getPopup: I,
2556
- getTitle: be,
2557
- getHtmlContainer: ve,
2558
- getImage: _e,
2336
+ getTitle: ve,
2337
+ getHtmlContainer: be,
2338
+ getImage: Ae,
2559
2339
  getIcon: le,
2560
- getInputLabel: p,
2340
+ getInputLabel: m,
2561
2341
  getCloseButton: E,
2562
- getActions: v,
2563
- getConfirmButton: m,
2342
+ getActions: b,
2343
+ getConfirmButton: g,
2564
2344
  getDenyButton: w,
2565
- getCancelButton: b,
2345
+ getCancelButton: v,
2566
2346
  getLoader: C,
2567
- getFooter: S,
2568
- getTimerProgressBar: x,
2347
+ getFooter: _,
2348
+ getTimerProgressBar: S,
2569
2349
  getFocusableElements: G,
2570
2350
  getValidationMessage: c,
2571
2351
  isLoading: pe,
2572
- fire: Wo,
2352
+ fire: Ko,
2573
2353
  mixin: Jo,
2574
2354
  showLoading: ke,
2575
2355
  enableLoading: ke,
@@ -2589,78 +2369,78 @@ If you think this parameter should be updatable, request it here: https://github
2589
2369
  Ye = this;
2590
2370
  for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
2591
2371
  n[r] = arguments[r];
2592
- const h = Object.freeze(this.constructor.argsToParams(n));
2372
+ const p = Object.freeze(this.constructor.argsToParams(n));
2593
2373
  Object.defineProperties(this, {
2594
2374
  params: {
2595
- value: h,
2375
+ value: p,
2596
2376
  writable: !1,
2597
2377
  enumerable: !0,
2598
2378
  configurable: !0
2599
2379
  }
2600
2380
  });
2601
2381
  const A = this._main(this.params);
2602
- P.promise.set(this, A);
2382
+ H.promise.set(this, A);
2603
2383
  }
2604
2384
  _main(t) {
2605
2385
  let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2606
- Oe(Object.assign({}, n, t)), T.currentInstance && (T.currentInstance._destroy(), ne() && ut()), T.currentInstance = this;
2386
+ Oe(Object.assign({}, n, t)), P.currentInstance && (P.currentInstance._destroy(), ne() && ut()), P.currentInstance = this;
2607
2387
  const r = rr(t, n);
2608
- Rn(r), Object.freeze(r), T.timeout && (T.timeout.stop(), delete T.timeout), clearTimeout(T.restoreFocusTimeout);
2609
- const h = sr(this);
2610
- return lt(this, r), P.innerParams.set(this, r), or(this, h, r);
2388
+ Rn(r), Object.freeze(r), P.timeout && (P.timeout.stop(), delete P.timeout), clearTimeout(P.restoreFocusTimeout);
2389
+ const p = sr(this);
2390
+ return lt(this, r), H.innerParams.set(this, r), or(this, p, r);
2611
2391
  }
2612
2392
  // `catch` cannot be the name of a module export, so we define our thenable methods here instead
2613
2393
  then(t) {
2614
- return P.promise.get(this).then(t);
2394
+ return H.promise.get(this).then(t);
2615
2395
  }
2616
2396
  finally(t) {
2617
- return P.promise.get(this).finally(t);
2397
+ return H.promise.get(this).finally(t);
2618
2398
  }
2619
2399
  }
2620
- const or = (e, t, n) => new Promise((r, h) => {
2621
- const A = (U) => {
2400
+ const or = (e, t, n) => new Promise((r, p) => {
2401
+ const A = (O) => {
2622
2402
  e.closePopup({
2623
2403
  isDismissed: !0,
2624
- dismiss: U
2404
+ dismiss: O
2625
2405
  });
2626
2406
  };
2627
- Pe.swalPromiseResolve.set(e, r), Pe.swalPromiseReject.set(e, h), t.confirmButton.onclick = () => Uo(e), t.denyButton.onclick = () => Mo(e), t.cancelButton.onclick = () => Oo(e, A), t.closeButton.onclick = () => A(ye.close), Vo(e, t, A), uo(e, T, n, A), Gn(e, n), Kn(n), ir(T, n, A), ar(t, n), setTimeout(() => {
2407
+ Pe.swalPromiseResolve.set(e, r), Pe.swalPromiseReject.set(e, p), t.confirmButton.onclick = () => Uo(e), t.denyButton.onclick = () => Mo(e), t.cancelButton.onclick = () => Oo(e, A), t.closeButton.onclick = () => A(ye.close), Vo(e, t, A), uo(e, P, n, A), Gn(e, n), zn(n), ir(P, n, A), ar(t, n), setTimeout(() => {
2628
2408
  t.container.scrollTop = 0;
2629
2409
  });
2630
2410
  }), rr = (e, t) => {
2631
- const n = An(e), r = Object.assign({}, V, t, n, e);
2632
- return r.showClass = Object.assign({}, V.showClass, r.showClass), r.hideClass = Object.assign({}, V.hideClass, r.hideClass), r;
2411
+ const n = _n(e), r = Object.assign({}, D, t, n, e);
2412
+ return r.showClass = Object.assign({}, D.showClass, r.showClass), r.hideClass = Object.assign({}, D.hideClass, r.hideClass), r;
2633
2413
  }, sr = (e) => {
2634
2414
  const t = {
2635
2415
  popup: I(),
2636
2416
  container: N(),
2637
- actions: v(),
2638
- confirmButton: m(),
2417
+ actions: b(),
2418
+ confirmButton: g(),
2639
2419
  denyButton: w(),
2640
- cancelButton: b(),
2420
+ cancelButton: v(),
2641
2421
  loader: C(),
2642
2422
  closeButton: E(),
2643
2423
  validationMessage: c(),
2644
2424
  progressSteps: s()
2645
2425
  };
2646
- return P.domCache.set(e, t), t;
2426
+ return H.domCache.set(e, t), t;
2647
2427
  }, ir = (e, t, n) => {
2648
- const r = x();
2649
- q(r), t.timer && (e.timeout = new Un(() => {
2428
+ const r = S();
2429
+ z(r), t.timer && (e.timeout = new Un(() => {
2650
2430
  n("timer"), delete e.timeout;
2651
2431
  }, t.timer), t.timerProgressBar && (X(r), oe(r, t, "timerProgressBar"), setTimeout(() => {
2652
2432
  e.timeout && e.timeout.running && Ve(t.timer);
2653
2433
  })));
2654
2434
  }, ar = (e, t) => {
2655
2435
  if (!t.toast) {
2656
- if (!O(t.allowEnterKey))
2436
+ if (!R(t.allowEnterKey))
2657
2437
  return lr();
2658
2438
  cr(e, t) || qe(t, -1, 1);
2659
2439
  }
2660
2440
  }, cr = (e, t) => t.focusDeny && ee(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && ee(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && ee(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, lr = () => {
2661
2441
  document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
2662
2442
  };
2663
- Object.assign(Ce.prototype, At), Object.assign(Ce, nr), Object.keys(At).forEach((e) => {
2443
+ Object.assign(Ce.prototype, _t), Object.assign(Ce, nr), Object.keys(_t).forEach((e) => {
2664
2444
  Ce[e] = function() {
2665
2445
  if (Ye)
2666
2446
  return Ye[e](...arguments);
@@ -2677,33 +2457,356 @@ class DialogService {
2677
2457
  return Swal.isVisible();
2678
2458
  }
2679
2459
  async ConfirmAsync(o) {
2680
- return new Promise((d) => {
2460
+ return new Promise((u) => {
2681
2461
  Swal.fire({
2682
2462
  showCancelButton: !0,
2683
2463
  allowEscapeKey: !1,
2684
2464
  allowOutsideClick: !1,
2685
2465
  icon: "question",
2686
2466
  title: o.header,
2687
- text: o.message,
2467
+ html: o.message,
2688
2468
  confirmButtonText: o.confirmLabel ?? "confirmar",
2689
2469
  cancelButtonText: o.rejectLabel ?? "cancelar"
2690
2470
  }).then((f) => {
2691
- d(f.isConfirmed === !0);
2471
+ u(f.isConfirmed === !0);
2692
2472
  });
2693
2473
  });
2694
2474
  }
2695
2475
  }
2696
- const service = new DialogService(), UseDialogService = () => service, tema = "", componentes = "";
2476
+ const service = new DialogService(), UseDialogService = () => service, _hoisted_1$5 = ["data-cor"], _sfc_main$7 = /* @__PURE__ */ defineComponent({
2477
+ __name: "HeaderAvatar",
2478
+ setup(a) {
2479
+ const o = UseDialogService(), u = k();
2480
+ async function f() {
2481
+ await o.ConfirmAsync({
2482
+ message: `${AuthService.User.username} - ${AuthService.User.name}.<br /><br />Você deseja sair da conta?`,
2483
+ confirmLabel: "sair"
2484
+ }) && AuthService.CallLogout();
2485
+ }
2486
+ function k() {
2487
+ const y = AuthService.User.name;
2488
+ let h = "?";
2489
+ if (!y)
2490
+ return h;
2491
+ const x = y.split(" ").filter((U) => U.length > 0).map((U) => U[0].toUpperCase()), B = Math.min(2, x.length);
2492
+ return h = x.slice(0, B).join(""), h.length > 0 ? h : "?";
2493
+ }
2494
+ function l() {
2495
+ const y = u[0], h = y === "?" ? 0 : (y.charCodeAt(0) - 64) % 19;
2496
+ return Math.max(h, 0);
2497
+ }
2498
+ return (y, h) => (openBlock(), createElementBlock("div", {
2499
+ id: "sf-header-avatar",
2500
+ "data-cor": l(),
2501
+ onClick: f
2502
+ }, toDisplayString(unref(u)), 9, _hoisted_1$5));
2503
+ }
2504
+ }), _sfc_main$6 = {}, _hoisted_1$4 = {
2505
+ xmlns: "http://www.w3.org/2000/svg",
2506
+ height: "48",
2507
+ viewBox: "0 -960 960 960",
2508
+ width: "48",
2509
+ class: "sf-svg-icon"
2510
+ }, _hoisted_2$4 = /* @__PURE__ */ createElementVNode("path", { d: "m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z" }, null, -1), _hoisted_3$2 = [
2511
+ _hoisted_2$4
2512
+ ];
2513
+ function _sfc_render(a, o) {
2514
+ return openBlock(), createElementBlock("svg", _hoisted_1$4, _hoisted_3$2);
2515
+ }
2516
+ const MenuIcon = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]);
2517
+ class ThemeToggle {
2518
+ get storedTheme() {
2519
+ return localStorage.getItem("color-scheme");
2520
+ }
2521
+ get IsDark() {
2522
+ return document.documentElement.classList.contains("dark");
2523
+ }
2524
+ Toggle() {
2525
+ this.IsDark ? this.EnableLightMode() : this.EnableDarkMode();
2526
+ }
2527
+ EnableDarkMode() {
2528
+ document.documentElement.classList.add("dark"), document.documentElement.classList.remove("light"), localStorage.setItem("color-scheme", "dark");
2529
+ }
2530
+ EnableLightMode() {
2531
+ document.documentElement.classList.remove("dark"), document.documentElement.classList.add("light"), localStorage.setItem("color-scheme", "light");
2532
+ }
2533
+ SetInitialTheme() {
2534
+ if (this.storedTheme === "light")
2535
+ return this.EnableLightMode();
2536
+ if (this.storedTheme === "dark")
2537
+ return this.EnableDarkMode();
2538
+ if (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches)
2539
+ return this.EnableDarkMode();
2540
+ this.EnableLightMode();
2541
+ }
2542
+ }
2543
+ const ThemeToggleBase = (() => new ThemeToggle())(), _hoisted_1$3 = /* @__PURE__ */ createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>', 1), _hoisted_2$3 = [
2544
+ _hoisted_1$3
2545
+ ], _sfc_main$5 = /* @__PURE__ */ defineComponent({
2546
+ __name: "ThemeToggle",
2547
+ setup(a) {
2548
+ return (o, u) => (openBlock(), createElementBlock("button", {
2549
+ id: "sf-theme-toggle",
2550
+ onClick: u[0] || (u[0] = //@ts-ignore
2551
+ (...f) => unref(ThemeToggleBase).Toggle && unref(ThemeToggleBase).Toggle(...f))
2552
+ }, _hoisted_2$3));
2553
+ }
2554
+ }), _hoisted_1$2 = { id: "sf-layout" }, _hoisted_2$2 = /* @__PURE__ */ createElementVNode("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), _hoisted_3$1 = { class: "title" }, _hoisted_4$1 = { class: "sf-layout-nav-header" }, _hoisted_5$1 = /* @__PURE__ */ createElementVNode("span", null, "Menu", -1), _hoisted_6$1 = { class: "sf-layout-nav-content" }, _hoisted_7 = /* @__PURE__ */ createElementVNode("section", { id: "sf-layout-page-title" }, null, -1), _hoisted_8 = { id: "sf-layout-content" }, _sfc_main$4 = /* @__PURE__ */ defineComponent({
2555
+ __name: "Layout",
2556
+ setup(a) {
2557
+ const o = UseNavMenuService();
2558
+ return (u, f) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
2559
+ createElementVNode("header", null, [
2560
+ createElementVNode("div", {
2561
+ class: normalizeClass([
2562
+ "sf-layout-menu-toggler",
2563
+ { invert: unref(o).IsVisible }
2564
+ ]),
2565
+ onClick: f[0] || (f[0] = (k) => unref(o).Toggle())
2566
+ }, [
2567
+ _hoisted_2$2,
2568
+ createVNode(MenuIcon)
2569
+ ], 2),
2570
+ createElementVNode("div", _hoisted_3$1, [
2571
+ renderSlot(u.$slots, "title")
2572
+ ]),
2573
+ renderSlot(u.$slots, "action"),
2574
+ createVNode(_sfc_main$5),
2575
+ createVNode(_sfc_main$7)
2576
+ ]),
2577
+ createElementVNode("nav", {
2578
+ class: normalizeClass({ visible: unref(o).IsVisible })
2579
+ }, [
2580
+ createElementVNode("div", _hoisted_4$1, [
2581
+ _hoisted_5$1,
2582
+ createVNode(_sfc_main$8, {
2583
+ icone: "close",
2584
+ button: "",
2585
+ onClick: f[1] || (f[1] = (k) => unref(o).Close())
2586
+ })
2587
+ ]),
2588
+ createElementVNode("div", _hoisted_6$1, [
2589
+ renderSlot(u.$slots, "menu")
2590
+ ])
2591
+ ], 2),
2592
+ createElementVNode("main", {
2593
+ class: normalizeClass({ "menu-visible": unref(o).IsVisible })
2594
+ }, [
2595
+ _hoisted_7,
2596
+ createElementVNode("section", _hoisted_8, [
2597
+ renderSlot(u.$slots, "content")
2598
+ ])
2599
+ ], 2)
2600
+ ]));
2601
+ }
2602
+ }), _hoisted_1$1 = ["href", "data-active", "onClick"], _hoisted_2$1 = { class: "sf-navmenulink-text" }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
2603
+ __name: "NavMenuLink",
2604
+ props: {
2605
+ href: {},
2606
+ text: {},
2607
+ icon: {}
2608
+ },
2609
+ setup(a) {
2610
+ const o = a, u = UseNavMenuService();
2611
+ function f(k, l) {
2612
+ k.preventDefault();
2613
+ const h = k.target.closest(".sf-layout-nav-content");
2614
+ l(), h && h.clientWidth + 10 > document.body.clientWidth && u.Close();
2615
+ }
2616
+ return (k, l) => {
2617
+ const y = resolveComponent("router-link");
2618
+ return openBlock(), createBlock(y, {
2619
+ to: o.href,
2620
+ custom: ""
2621
+ }, {
2622
+ default: withCtx(({ href: h, navigate: x, isExactActive: B }) => [
2623
+ createElementVNode("a", {
2624
+ class: "sf-navmenulink",
2625
+ href: h,
2626
+ "data-active": B,
2627
+ onClick: (U) => f(U, x)
2628
+ }, [
2629
+ o.icon ? (openBlock(), createBlock(_sfc_main$8, {
2630
+ key: 0,
2631
+ icone: o.icon,
2632
+ "button-props": { tabindex: -1 }
2633
+ }, null, 8, ["icone"])) : createCommentVNode("", !0),
2634
+ createElementVNode("span", _hoisted_2$1, toDisplayString(o.text), 1)
2635
+ ], 8, _hoisted_1$1)
2636
+ ]),
2637
+ _: 1
2638
+ }, 8, ["to"]);
2639
+ };
2640
+ }
2641
+ }), _sfc_main$2 = /* @__PURE__ */ defineComponent({
2642
+ __name: "ScrollToTop",
2643
+ setup(a) {
2644
+ const o = ref(!1), u = `--${+/* @__PURE__ */ new Date()}`;
2645
+ let f = null;
2646
+ function k() {
2647
+ f == null || f.scrollTo(0, 0);
2648
+ }
2649
+ return onMounted(() => {
2650
+ var l;
2651
+ f = ((l = document.getElementById(u)) == null ? void 0 : l.parentElement) ?? null, f && f.addEventListener("scroll", function() {
2652
+ o.value = this.scrollTop - this.clientHeight > 0;
2653
+ });
2654
+ }), (l, y) => (openBlock(), createElementBlock("button", {
2655
+ id: u,
2656
+ class: normalizeClass(["sf-scrollToTop", { "sf-scrollToTop-visible": o.value }]),
2657
+ onClick: k
2658
+ }, null, 2));
2659
+ }
2660
+ }), _sfc_main$1 = /* @__PURE__ */ defineComponent({
2661
+ __name: "Content",
2662
+ props: {
2663
+ class: {},
2664
+ style: {},
2665
+ disableBodyPadding: { type: Boolean },
2666
+ disableHeaderPadding: { type: Boolean },
2667
+ disableFooterPadding: { type: Boolean }
2668
+ },
2669
+ setup(a) {
2670
+ const o = a;
2671
+ function u() {
2672
+ return new CssClassBuilder("sf-content").AddClass(o.class, !!o.class).Build();
2673
+ }
2674
+ function f() {
2675
+ return new CssClassBuilder("sf-content-body").AddClass("sf-content-no-padding", o.disableBodyPadding).Build();
2676
+ }
2677
+ function k() {
2678
+ return new CssClassBuilder("sf-content-header").AddClass("sf-content-no-padding", o.disableHeaderPadding).Build();
2679
+ }
2680
+ function l() {
2681
+ return new CssClassBuilder("sf-content-footer").AddClass("sf-content-no-padding", o.disableFooterPadding).Build();
2682
+ }
2683
+ return (y, h) => (openBlock(), createElementBlock("div", {
2684
+ class: normalizeClass(u()),
2685
+ style: normalizeStyle(o.style)
2686
+ }, [
2687
+ createElementVNode("div", {
2688
+ class: normalizeClass(k())
2689
+ }, [
2690
+ renderSlot(y.$slots, "header")
2691
+ ], 2),
2692
+ createElementVNode("div", {
2693
+ class: normalizeClass(f())
2694
+ }, [
2695
+ renderSlot(y.$slots, "default"),
2696
+ createVNode(_sfc_main$2)
2697
+ ], 2),
2698
+ createElementVNode("div", {
2699
+ class: normalizeClass(l())
2700
+ }, [
2701
+ renderSlot(y.$slots, "footer")
2702
+ ], 2)
2703
+ ], 6));
2704
+ }
2705
+ }), _hoisted_1 = { class: "sf-tab-navigation" }, _hoisted_2 = /* @__PURE__ */ createElementVNode("svg", {
2706
+ xmlns: "http://www.w3.org/2000/svg",
2707
+ fill: "none",
2708
+ viewBox: "0 0 24 24",
2709
+ "stroke-width": "1.5",
2710
+ stroke: "currentColor",
2711
+ class: "w-6 h-6"
2712
+ }, [
2713
+ /* @__PURE__ */ createElementVNode("path", {
2714
+ "stroke-linecap": "round",
2715
+ "stroke-linejoin": "round",
2716
+ d: "M15.75 19.5L8.25 12l7.5-7.5"
2717
+ })
2718
+ ], -1), _hoisted_3 = [
2719
+ _hoisted_2
2720
+ ], _hoisted_4 = ["href", "onClick"], _hoisted_5 = /* @__PURE__ */ createElementVNode("svg", {
2721
+ xmlns: "http://www.w3.org/2000/svg",
2722
+ fill: "none",
2723
+ viewBox: "0 0 24 24",
2724
+ "stroke-width": "1.5",
2725
+ stroke: "currentColor",
2726
+ class: "w-6 h-6"
2727
+ }, [
2728
+ /* @__PURE__ */ createElementVNode("path", {
2729
+ "stroke-linecap": "round",
2730
+ "stroke-linejoin": "round",
2731
+ d: "M8.25 4.5l7.5 7.5-7.5 7.5"
2732
+ })
2733
+ ], -1), _hoisted_6 = [
2734
+ _hoisted_5
2735
+ ], _sfc_main = /* @__PURE__ */ defineComponent({
2736
+ __name: "TabNavigation",
2737
+ props: {
2738
+ tabs: {}
2739
+ },
2740
+ setup(a) {
2741
+ const o = a, u = ref(null), f = new ResizeObserver((x) => {
2742
+ h();
2743
+ }), k = ref(!1), l = ref(!1);
2744
+ function y(x = !1) {
2745
+ const B = u.value.clientWidth;
2746
+ u.value.scrollLeft += x ? -B : B;
2747
+ }
2748
+ function h() {
2749
+ const x = u.value.scrollWidth - u.value.clientWidth;
2750
+ k.value = u.value.scrollLeft > 10, l.value = u.value.scrollLeft < x - 10;
2751
+ }
2752
+ return onMounted(() => {
2753
+ u.value.addEventListener("scroll", h), f.observe(u.value);
2754
+ }), onBeforeUnmount(() => {
2755
+ u.value.removeEventListener(
2756
+ "scroll",
2757
+ h
2758
+ ), f.unobserve(u.value), f.disconnect();
2759
+ }), (x, B) => {
2760
+ const U = resolveComponent("RouterLink");
2761
+ return openBlock(), createElementBlock("div", _hoisted_1, [
2762
+ createElementVNode("div", {
2763
+ class: normalizeClass(["left-arrow", { active: k.value }]),
2764
+ onClick: B[0] || (B[0] = (R) => y(!0))
2765
+ }, _hoisted_3, 2),
2766
+ createElementVNode("ul", {
2767
+ ref_key: "trackerContainer",
2768
+ ref: u
2769
+ }, [
2770
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(o.tabs, (R) => (openBlock(), createBlock(U, {
2771
+ to: R.route,
2772
+ custom: !0
2773
+ }, {
2774
+ default: withCtx(({ navigate: V, isActive: T }) => [
2775
+ createElementVNode("li", null, [
2776
+ renderSlot(x.$slots, "item", {
2777
+ item: R,
2778
+ navigate: V,
2779
+ isActive: T
2780
+ }, () => [
2781
+ createElementVNode("a", {
2782
+ href: R.route,
2783
+ class: normalizeClass({ active: T }),
2784
+ onClick: V
2785
+ }, toDisplayString(R.text), 11, _hoisted_4)
2786
+ ])
2787
+ ])
2788
+ ]),
2789
+ _: 2
2790
+ }, 1032, ["to"]))), 256))
2791
+ ], 512),
2792
+ createElementVNode("div", {
2793
+ class: normalizeClass(["right-arrow", { active: l.value }]),
2794
+ onClick: B[1] || (B[1] = (R) => y())
2795
+ }, _hoisted_6, 2)
2796
+ ]);
2797
+ };
2798
+ }
2799
+ }), tema = "", componentes = "";
2697
2800
  (() => {
2698
2801
  function a() {
2699
2802
  nextTick(() => {
2700
2803
  setTimeout(() => {
2701
- var d;
2804
+ var u;
2702
2805
  const o = document.querySelector(":root");
2703
2806
  o && // @ts-ignore
2704
2807
  o.style.setProperty(
2705
2808
  "--window-height",
2706
- `${((d = window.visualViewport) == null ? void 0 : d.height) ?? window.innerHeight}px`
2809
+ `${((u = window.visualViewport) == null ? void 0 : u.height) ?? window.innerHeight}px`
2707
2810
  );
2708
2811
  }, 1);
2709
2812
  });
@@ -2714,10 +2817,11 @@ ThemeToggleBase.SetInitialTheme();
2714
2817
  export {
2715
2818
  AuthService,
2716
2819
  Cor,
2717
- _sfc_main as SfContent,
2718
- _sfc_main$7 as SfIcon,
2719
- _sfc_main$3 as SfLayout,
2720
- _sfc_main$2 as SfNavMenuLink,
2820
+ _sfc_main$1 as SfContent,
2821
+ _sfc_main$8 as SfIcon,
2822
+ _sfc_main$4 as SfLayout,
2823
+ _sfc_main$3 as SfNavMenuLink,
2824
+ _sfc_main as SfTabNavigation,
2721
2825
  Tamanho,
2722
2826
  UseDialogService,
2723
2827
  UseNavMenuService