gc_i18n 1.6.4 → 1.6.5

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.
package/lib/gc_i18n.es.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import './gc_i18n.css';
2
- import Ct from "keyboardjs";
3
- import { h as xe, ref as se, computed as He, onMounted as eo, nextTick as kt, Vue as _e } from "vue-demi";
4
- import nt from "axios";
2
+ import _t from "keyboardjs";
3
+ import { h as xe, ref as ie, computed as He, onMounted as to, nextTick as Et, Vue as _e } from "vue-demi";
4
+ import it from "axios";
5
5
  import E from "store2";
6
6
  import y from "lodash-es";
7
- import { jws as to } from "jsrsasign";
8
- const no = [
7
+ import { jws as no } from "jsrsasign";
8
+ const oo = [
9
9
  "ar-SA",
10
10
  // 阿拉伯语(沙特阿拉伯)
11
11
  "ar-EG",
@@ -14,25 +14,25 @@ const no = [
14
14
  // 波斯语(伊朗)
15
15
  ], Ee = (t) => {
16
16
  if (!t || typeof t != "string") return !1;
17
- if (no.includes(t)) return !0;
17
+ if (oo.includes(t)) return !0;
18
18
  const e = t.split("-")[0].toLowerCase();
19
19
  return ["ar", "fa"].includes(e);
20
- }, oo = (t) => {
20
+ }, so = (t) => {
21
21
  const e = {};
22
22
  for (const n of t)
23
23
  e[n.key] = n.value;
24
24
  return e;
25
- }, so = (t, e, n) => (e.forEach((o) => {
25
+ }, io = (t, e, n) => (e.forEach((o) => {
26
26
  const s = o.key.split(".");
27
27
  s[0] === "common" && y.find(t, { key: `${n}.${s[1]}` }) && y.remove(t, { key: `${n}.${s[1]}` });
28
28
  const i = y.find(t, { key: o.key });
29
29
  i ? y.merge(i, o) : t.push(o);
30
- }), t), le = nt.create({
30
+ }), t), ce = it.create({
31
31
  timeout: 8e3
32
- }), Ae = /* @__PURE__ */ new Map(), io = "https://extendapi.ihotel.cn", ro = "https://test.ihotel.cn", ao = /^https?:\/\//i, Ze = (t) => String(t || "guest").replace(/[^\w-]/g, "_"), we = async (t, e) => typeof e != "function" ? t : await e(t) || t, Ft = ({ env: t, dev: e } = {}) => {
32
+ }), Ae = /* @__PURE__ */ new Map(), ro = "https://extendapi.ihotel.cn", ao = "https://test.ihotel.cn", lo = /^https?:\/\//i, Je = (t) => String(t || "guest").replace(/[^\w-]/g, "_"), we = async (t, e) => typeof e != "function" ? t : await e(t) || t, Kt = ({ env: t, dev: e } = {}) => {
33
33
  const n = typeof t == "string" ? t.trim() : t;
34
- return typeof n == "string" && ao.test(n) ? n.replace(/\/+$/, "") : n === "dev" || e === !0 ? ro : !n || n === "local" ? "" : io;
35
- }, Kt = async ({
34
+ return typeof n == "string" && lo.test(n) ? n.replace(/\/+$/, "") : n === "dev" || e === !0 ? ao : !n || n === "local" ? "" : ro;
35
+ }, Gt = async ({
36
36
  baseUrl: t,
37
37
  token: e,
38
38
  appCode: n,
@@ -48,7 +48,7 @@ const no = [
48
48
  if (!n)
49
49
  return [];
50
50
  try {
51
- const r = await we(e, s), l = await le.get(`${t}/i18n-web//app/getsupportedlangs`, {
51
+ const r = await we(e, s), l = await ce.get(`${t}/i18n-web//app/getsupportedlangs`, {
52
52
  headers: {
53
53
  appCode: n,
54
54
  Authorization: r
@@ -65,9 +65,9 @@ const no = [
65
65
  console.error("获取语言列表失败:", r);
66
66
  }
67
67
  return [];
68
- }, Gt = async ({ baseUrl: t, token: e, appCode: n, getRequestToken: o }) => {
68
+ }, Wt = async ({ baseUrl: t, token: e, appCode: n, getRequestToken: o }) => {
69
69
  const s = await we(e, o);
70
- return le.get(
70
+ return ce.get(
71
71
  t + "/i18n-web/app/getsupportedlangs?appCode=" + n,
72
72
  {
73
73
  headers: {
@@ -75,7 +75,7 @@ const no = [
75
75
  }
76
76
  }
77
77
  );
78
- }, xt = async ({
78
+ }, At = async ({
79
79
  appCode: t,
80
80
  language: e = "zh-CN",
81
81
  lastPullDate: n,
@@ -84,7 +84,7 @@ const no = [
84
84
  getRequestToken: i
85
85
  }) => {
86
86
  try {
87
- const r = await we(s, i), l = o + "/i18n-web/kv_translate/kv_translates", a = n ? l + "?lastPullDate=" + n : l, d = await le({
87
+ const r = await we(s, i), l = o + "/i18n-web/kv_translate/kv_translates", a = n ? l + "?lastPullDate=" + n : l, d = await ce({
88
88
  url: a,
89
89
  method: "GET",
90
90
  headers: {
@@ -97,9 +97,9 @@ const no = [
97
97
  } catch (r) {
98
98
  return console.error("获取翻译数据失败:", r), null;
99
99
  }
100
- }, Wt = async ({ data: t, token: e, baseUrl: n, getRequestToken: o }) => {
100
+ }, Yt = async ({ data: t, token: e, baseUrl: n, getRequestToken: o }) => {
101
101
  const s = await we(e, o);
102
- return le({
102
+ return ce({
103
103
  url: n + "/i18n-web/kv_translate/userDicts",
104
104
  method: "POST",
105
105
  headers: {
@@ -107,9 +107,9 @@ const no = [
107
107
  },
108
108
  data: t
109
109
  });
110
- }, Yt = async ({ data: t, token: e, baseUrl: n, getRequestToken: o }) => {
110
+ }, Zt = async ({ data: t, token: e, baseUrl: n, getRequestToken: o }) => {
111
111
  const s = await we(e, o);
112
- return le({
112
+ return ce({
113
113
  url: n + "/i18n-web/kv_translate/batch",
114
114
  method: "POST",
115
115
  data: t,
@@ -117,13 +117,13 @@ const no = [
117
117
  Authorization: s
118
118
  }
119
119
  });
120
- }, _t = (t) => {
120
+ }, Tt = (t) => {
121
121
  if (typeof t == "string") {
122
122
  const e = t.trim();
123
123
  return !e || /^<!doctype/i.test(e) || /^<html/i.test(e) ? (console.warn("i18n_token 接口未返回有效 token,请检查业务项目接口"), "") : e;
124
124
  }
125
125
  return y.get(t, "retVal.i18n_token") || y.get(t, "retVal.token") || y.get(t, "i18n_token") || y.get(t, "token") || "";
126
- }, lo = async ({
126
+ }, co = async ({
127
127
  request: t,
128
128
  appCode: e,
129
129
  orgCode: n,
@@ -137,9 +137,9 @@ const no = [
137
137
  userCode: o,
138
138
  token: s
139
139
  });
140
- return _t((r == null ? void 0 : r.data) ?? r);
140
+ return Tt((r == null ? void 0 : r.data) ?? r);
141
141
  }
142
- const i = await le({
142
+ const i = await ce({
143
143
  url: "/i18n_token",
144
144
  method: "GET",
145
145
  headers: s ? {
@@ -154,8 +154,8 @@ const no = [
154
154
  userCode: o
155
155
  }
156
156
  });
157
- return _t(i == null ? void 0 : i.data);
158
- }, co = async ({
157
+ return Tt(i == null ? void 0 : i.data);
158
+ }, uo = async ({
159
159
  baseUrl: t,
160
160
  appCode: e,
161
161
  language: n = "zh-CN",
@@ -165,7 +165,7 @@ const no = [
165
165
  getRequestToken: r
166
166
  }) => {
167
167
  try {
168
- const l = Ze(i), a = `I18N_${y.toUpper(e)}_${l}`, d = E.namespace(a), u = {
168
+ const l = Je(i), a = `I18N_${y.toUpper(e)}_${l}`, d = E.namespace(a), u = {
169
169
  baseUrl: t,
170
170
  appCode: e,
171
171
  language: n,
@@ -181,59 +181,59 @@ const no = [
181
181
  ].join("|");
182
182
  if (Ae.has(f))
183
183
  return Ae.get(f);
184
- const _ = (async () => {
184
+ const x = (async () => {
185
185
  if (!h || !h.lastPullDate) {
186
- const x = await xt(u);
187
- return x ? (d.set(n, x), y.get(x, "translatesDTOs", [])) : y.get(h, "translatesDTOs", []);
186
+ const _ = await At(u);
187
+ return _ ? (d.set(n, _), y.get(_, "translatesDTOs", [])) : y.get(h, "translatesDTOs", []);
188
188
  }
189
- const { lastPullDate: L } = h, S = await xt({
189
+ const { lastPullDate: S } = h, L = await At({
190
190
  ...u,
191
- lastPullDate: L
191
+ lastPullDate: S
192
192
  });
193
- if (!S)
193
+ if (!L)
194
194
  return y.get(h, "translatesDTOs", []);
195
195
  const I = y.get(h, "translatesDTOs", []);
196
- if (!y.isEmpty(S.translatesDTOs)) {
197
- const x = so(I, S.translatesDTOs, s), w = {
198
- lastPullDate: S.lastPullDate,
199
- translatesDTOs: x
196
+ if (!y.isEmpty(L.translatesDTOs)) {
197
+ const _ = io(I, L.translatesDTOs, s), w = {
198
+ lastPullDate: L.lastPullDate,
199
+ translatesDTOs: _
200
200
  };
201
- return d.set(n, w, ":"), x;
201
+ return d.set(n, w, ":"), _;
202
202
  }
203
203
  return I;
204
204
  })();
205
- return Ae.set(f, _), _.finally(() => {
205
+ return Ae.set(f, x), x.finally(() => {
206
206
  Ae.delete(f);
207
- }), _;
207
+ }), x;
208
208
  } catch (l) {
209
209
  console.error("处理翻译数据失败:", l);
210
- const a = Ze(i), d = E.namespace(`I18N_${y.toUpper(e)}_${a}`);
210
+ const a = Je(i), d = E.namespace(`I18N_${y.toUpper(e)}_${a}`);
211
211
  return y.get(d.get(n), "translatesDTOs", []);
212
212
  }
213
- }, Et = ({ appCode: t, cacheScope: e } = {}) => {
213
+ }, St = ({ appCode: t, cacheScope: e } = {}) => {
214
214
  if (t) {
215
215
  if (e) {
216
- E.namespace(`I18N_${y.toUpper(t)}_${Ze(e)}`).clearAll();
216
+ E.namespace(`I18N_${y.toUpper(t)}_${Je(e)}`).clearAll();
217
217
  return;
218
218
  }
219
219
  E.namespace(`I18N_${y.toUpper(t)}`).clearAll();
220
220
  }
221
221
  };
222
- function At(t) {
223
- const e = t || "", n = uo(e);
224
- return St(n ? [
222
+ function Lt(t) {
223
+ const e = t || "", n = ho(e);
224
+ return It(n ? [
225
225
  { type: "locked", value: e.slice(0, n.questionIndex + 1) },
226
- ...Tt(
226
+ ...$t(
227
227
  e.slice(n.questionIndex + 1, n.colonIndex)
228
228
  ),
229
229
  { type: "locked", value: ":" },
230
- ...Tt(
230
+ ...$t(
231
231
  e.slice(n.colonIndex + 1, n.endIndex)
232
232
  ),
233
233
  { type: "locked", value: e.slice(n.endIndex) }
234
- ] : Zt(e));
234
+ ] : Xt(e));
235
235
  }
236
- function uo(t) {
236
+ function ho(t) {
237
237
  let e = 0, n = "", o = -1, s = -1;
238
238
  for (let i = 0; i < t.length; i++) {
239
239
  const r = t[i], l = t[i - 1];
@@ -261,12 +261,12 @@ function uo(t) {
261
261
  return {
262
262
  questionIndex: o,
263
263
  colonIndex: i,
264
- endIndex: ho(t, i + 1, s)
264
+ endIndex: fo(t, i + 1, s)
265
265
  };
266
266
  }
267
267
  return null;
268
268
  }
269
- function ho(t, e, n) {
269
+ function fo(t, e, n) {
270
270
  let o = n, s = "";
271
271
  for (let i = e; i < t.length; i++) {
272
272
  const r = t[i], l = t[i - 1];
@@ -290,14 +290,14 @@ function ho(t, e, n) {
290
290
  }
291
291
  return t.length;
292
292
  }
293
- function Tt(t) {
293
+ function $t(t) {
294
294
  const e = [], n = t.match(/^\s*/)[0], o = t.match(/\s*$/)[0], s = n.length, i = t.length - o.length;
295
295
  let r = t.slice(s, i);
296
296
  n && e.push({ type: "locked", value: n });
297
297
  const l = r[0], a = (l === "'" || l === '"') && r.length > 1 && r[r.length - 1] === l;
298
- return a && (e.push({ type: "locked", value: l }), r = r.slice(1, -1)), e.push(...Zt(r)), a && e.push({ type: "locked", value: l }), o && e.push({ type: "locked", value: o }), e;
298
+ return a && (e.push({ type: "locked", value: l }), r = r.slice(1, -1)), e.push(...Xt(r)), a && e.push({ type: "locked", value: l }), o && e.push({ type: "locked", value: o }), e;
299
299
  }
300
- function Zt(t) {
300
+ function Xt(t) {
301
301
  const e = /(\$\{[^}]*\}|\{\{[^}]*\}\}|\{[^{}]*\})/g, n = [];
302
302
  let o = 0, s;
303
303
  for (; s = e.exec(t); )
@@ -313,7 +313,7 @@ function Zt(t) {
313
313
  value: t.slice(o)
314
314
  }), n.length ? n : [{ type: "text", value: t }];
315
315
  }
316
- function St(t) {
316
+ function It(t) {
317
317
  return y.reduce(
318
318
  t,
319
319
  (e, n) => {
@@ -323,12 +323,12 @@ function St(t) {
323
323
  []
324
324
  );
325
325
  }
326
- const N = (t) => String(t ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), Fe = (t) => (t == null ? void 0 : t.data) ?? t, fo = (t) => String(t || "").trim(), go = (t) => ({
326
+ const N = (t) => String(t ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), Fe = (t) => (t == null ? void 0 : t.data) ?? t, po = (t) => String(t || "").trim(), go = (t) => ({
327
327
  ...t,
328
328
  langCode: t.language || t.langCode || t,
329
329
  langName: t.langName || t.language || t.langCode || t,
330
330
  langNameNative: t.langNameNative || t.nativeName || ""
331
- }), Lt = (t) => {
331
+ }), Ke = (t) => {
332
332
  window.postMessage(t, "*");
333
333
  try {
334
334
  window.parent && window.parent !== window && window.parent.postMessage(t, "*");
@@ -340,9 +340,9 @@ const N = (t) => String(t ?? "").replace(/&/g, "&amp;").replace(/</g, "&lt;").re
340
340
  }
341
341
  window.opener && window.opener.postMessage(t, "*");
342
342
  };
343
- class po {
343
+ class wo {
344
344
  constructor(e = {}) {
345
- this.name = e.name || "", this.appCode = e.appCode || "", this.token = e.token || "", this.getRequestToken = e.getRequestToken, this.baseUrl = e.baseUrl || "", this.translationKeys = e.translationKeys || [], this.loginRouteName = e.loginRouteName || "login", this.loginTranslationKeys = e.loginTranslationKeys || [], this.login = e.login === !0, this.onSaveSuccess = e.onSaveSuccess, this.onClose = e.onClose, this.root = null, this.loading = !1, this.languageSettingVisible = !1, this.searchText = "", this.type = "pageData", this.languages = [], this.mySaveData = [], this.data = [], this.page = {
345
+ this.name = e.name || "", this.appCode = e.appCode || "", this.token = e.token || "", this.getRequestToken = e.getRequestToken, this.baseUrl = e.baseUrl || "", this.translationKeys = e.translationKeys || [], this.loginRouteName = e.loginRouteName || "login", this.loginTranslationKeys = e.loginTranslationKeys || [], this.login = e.login === !0, this.onSaveSuccess = e.onSaveSuccess, this.onError = e.onError, this.onClose = e.onClose, this.root = null, this.loading = !1, this.languageSettingVisible = !1, this.searchText = "", this.type = "pageData", this.languages = [], this.mySaveData = [], this.data = [], this.page = {
346
346
  pageSize: 10,
347
347
  firstResult: 0,
348
348
  totalRows: 0
@@ -374,11 +374,24 @@ class po {
374
374
  this.toast = null, this.toastTimer = null, this.renderToast();
375
375
  }, 1800);
376
376
  }
377
+ showError(e) {
378
+ const n = e || "操作失败";
379
+ if (typeof this.onError == "function") {
380
+ this.onError({
381
+ message: n
382
+ });
383
+ return;
384
+ }
385
+ Ke({
386
+ type: "configError",
387
+ message: n
388
+ });
389
+ }
377
390
  async init() {
378
391
  this.loading = !0, this.render();
379
392
  try {
380
393
  let e = E.get("I18N_LANGUAGE_SETTING");
381
- const n = await Gt({
394
+ const n = await Wt({
382
395
  token: this.token,
383
396
  getRequestToken: this.getRequestToken,
384
397
  baseUrl: this.baseUrl,
@@ -390,9 +403,9 @@ class po {
390
403
  ...i,
391
404
  checked: y.includes(e, i.langCode)
392
405
  };
393
- }), await this.getPageData()) : (this.loading = !1, this.setStatus("error", "获取语言失败,出错了"), this.render());
406
+ }), await this.getPageData()) : (this.loading = !1, this.showError("获取语言失败,出错了"), this.render());
394
407
  } catch (e) {
395
- console.error("获取语言失败:", e), this.loading = !1, this.setStatus("error", "获取语言失败,出错了"), this.render();
408
+ console.error("获取语言失败:", e), this.loading = !1, this.showError("获取语言失败,出错了"), this.render();
396
409
  }
397
410
  }
398
411
  saveLanguageSetting() {
@@ -410,7 +423,7 @@ class po {
410
423
  this.onClose();
411
424
  return;
412
425
  }
413
- Lt({
426
+ Ke({
414
427
  type: "closeModal"
415
428
  });
416
429
  }
@@ -426,7 +439,7 @@ class po {
426
439
  });
427
440
  }
428
441
  isProtectedValue(e) {
429
- return y.some(At(e), { type: "locked" });
442
+ return y.some(Lt(e), { type: "locked" });
430
443
  }
431
444
  isProtectedEditor() {
432
445
  var e;
@@ -436,12 +449,12 @@ class po {
436
449
  const o = this.data[e];
437
450
  if (!o)
438
451
  return;
439
- const s = fo(o[n]);
452
+ const s = po(o[n]);
440
453
  this.editor = {
441
454
  rowIndex: e,
442
455
  key: n,
443
456
  value: s,
444
- parts: At(s)
457
+ parts: Lt(s)
445
458
  }, this.render();
446
459
  }
447
460
  syncEditorPartsFromDom() {
@@ -479,12 +492,12 @@ class po {
479
492
  });
480
493
  });
481
494
  }), y.isEmpty(o)) {
482
- this.setStatus("error", "没有需要保存的数据");
495
+ this.showError("没有需要保存的数据");
483
496
  return;
484
497
  }
485
498
  this.setStatus("", "保存中...");
486
499
  try {
487
- const s = await Yt({
500
+ const s = await Zt({
488
501
  baseUrl: this.baseUrl,
489
502
  data: {
490
503
  appCode: this.appCode,
@@ -501,7 +514,7 @@ class po {
501
514
  data: o,
502
515
  close: n,
503
516
  message: r
504
- }) : Lt({
517
+ }) : Ke({
505
518
  type: "updateLanguage",
506
519
  data: o,
507
520
  close: n,
@@ -509,10 +522,10 @@ class po {
509
522
  });
510
523
  } else {
511
524
  const r = (i == null ? void 0 : i.msg) || "保存失败";
512
- this.setStatus("error", r), this.showToast(r, "error");
525
+ this.showError(r);
513
526
  }
514
527
  } catch (s) {
515
- console.error("保存失败:", s), this.setStatus("error", "保存失败"), this.showToast("保存失败", "error");
528
+ console.error("保存失败:", s), this.showError("保存失败");
516
529
  }
517
530
  }
518
531
  async saveNoEqual() {
@@ -546,7 +559,7 @@ class po {
546
559
  async search(e, n) {
547
560
  this.loading = !0, this.render();
548
561
  try {
549
- const o = await Wt({
562
+ const o = await Yt({
550
563
  baseUrl: this.baseUrl,
551
564
  data: {
552
565
  appCode: this.appCode,
@@ -567,9 +580,9 @@ class po {
567
580
  totalRows: i.totalRows || 0
568
581
  }, this.setStatus("", "");
569
582
  } else
570
- this.data = [], this.setStatus("error", (s == null ? void 0 : s.msg) || "查询失败");
583
+ this.data = [], this.setStatus("", ""), this.showError((s == null ? void 0 : s.msg) || "查询失败");
571
584
  } catch (o) {
572
- console.error("查询翻译失败:", o), this.data = [], this.setStatus("error", "查询失败");
585
+ console.error("查询翻译失败:", o), this.data = [], this.setStatus("", ""), this.showError("查询失败");
573
586
  } finally {
574
587
  this.loading = !1, this.render();
575
588
  }
@@ -844,67 +857,67 @@ class po {
844
857
  return `<div class="gc_i18n_config_protected_editor">${this.editor.parts.map((n, o) => n.type === "text" ? `<span class="gc_i18n_config_editor_text" contenteditable="true" spellcheck="false" data-editor-index="${o}">${N(n.value)}</span>` : `<span class="gc_i18n_config_editor_locked" contenteditable="false">${N(n.value)}</span>`).join("")}</div>`;
845
858
  }
846
859
  }
847
- function wo(t) {
848
- return new po(t);
860
+ function mo(t) {
861
+ return new wo(t);
849
862
  }
850
863
  /*!
851
864
  * sweetalert2 v11.26.18
852
865
  * Released under the MIT License.
853
866
  */
854
- function Xt(t, e, n) {
867
+ function Jt(t, e, n) {
855
868
  if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : n;
856
869
  throw new TypeError("Private element is not present on this object");
857
870
  }
858
- function mo(t, e) {
871
+ function bo(t, e) {
859
872
  if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
860
873
  }
861
- function $t(t, e) {
862
- return t.get(Xt(t, e));
863
- }
864
- function bo(t, e, n) {
865
- mo(t, e), e.set(t, n);
874
+ function Pt(t, e) {
875
+ return t.get(Jt(t, e));
866
876
  }
867
877
  function yo(t, e, n) {
868
- return t.set(Xt(t, e), n), n;
878
+ bo(t, e), e.set(t, n);
869
879
  }
870
- const vo = 100, p = {}, Co = () => {
871
- p.previousActiveElement instanceof HTMLElement ? (p.previousActiveElement.focus(), p.previousActiveElement = null) : document.body && document.body.focus();
872
- }, ko = (t) => new Promise((e) => {
880
+ function vo(t, e, n) {
881
+ return t.set(Jt(t, e), n), n;
882
+ }
883
+ const Co = 100, g = {}, ko = () => {
884
+ g.previousActiveElement instanceof HTMLElement ? (g.previousActiveElement.focus(), g.previousActiveElement = null) : document.body && document.body.focus();
885
+ }, xo = (t) => new Promise((e) => {
873
886
  if (!t)
874
887
  return e();
875
888
  const n = window.scrollX, o = window.scrollY;
876
- p.restoreFocusTimeout = setTimeout(() => {
877
- Co(), e();
878
- }, vo), window.scrollTo(n, o);
879
- }), Jt = "swal2-", xo = ["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "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", "draggable", "dragging"], c = xo.reduce(
880
- (t, e) => (t[e] = Jt + e, t),
889
+ g.restoreFocusTimeout = setTimeout(() => {
890
+ ko(), e();
891
+ }, Co), window.scrollTo(n, o);
892
+ }), Qt = "swal2-", _o = ["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "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", "draggable", "dragging"], c = _o.reduce(
893
+ (t, e) => (t[e] = Qt + e, t),
881
894
  /** @type {SwalClasses} */
882
895
  {}
883
- ), _o = ["success", "warning", "info", "question", "error"], Le = _o.reduce(
884
- (t, e) => (t[e] = Jt + e, t),
896
+ ), Eo = ["success", "warning", "info", "question", "error"], Le = Eo.reduce(
897
+ (t, e) => (t[e] = Qt + e, t),
885
898
  /** @type {SwalIcons} */
886
899
  {}
887
- ), Qt = "SweetAlert2:", ot = (t) => t.charAt(0).toUpperCase() + t.slice(1), D = (t) => {
888
- console.warn(`${Qt} ${typeof t == "object" ? t.join(" ") : t}`);
900
+ ), en = "SweetAlert2:", rt = (t) => t.charAt(0).toUpperCase() + t.slice(1), D = (t) => {
901
+ console.warn(`${en} ${typeof t == "object" ? t.join(" ") : t}`);
889
902
  }, te = (t) => {
890
- console.error(`${Qt} ${t}`);
891
- }, It = [], Eo = (t) => {
892
- It.includes(t) || (It.push(t), D(t));
893
- }, en = (t, e = null) => {
894
- Eo(`"${t}" is deprecated and will be removed in the next major release.${e ? ` Use "${e}" instead.` : ""}`);
895
- }, De = (t) => typeof t == "function" ? t() : t, st = (t) => t && typeof t.toPromise == "function", me = (t) => st(t) ? t.toPromise() : Promise.resolve(t), it = (t) => t && Promise.resolve(t) === t, z = () => document.body.querySelector(`.${c.container}`), be = (t) => {
903
+ console.error(`${en} ${t}`);
904
+ }, Bt = [], Ao = (t) => {
905
+ Bt.includes(t) || (Bt.push(t), D(t));
906
+ }, tn = (t, e = null) => {
907
+ Ao(`"${t}" is deprecated and will be removed in the next major release.${e ? ` Use "${e}" instead.` : ""}`);
908
+ }, De = (t) => typeof t == "function" ? t() : t, at = (t) => t && typeof t.toPromise == "function", me = (t) => at(t) ? t.toPromise() : Promise.resolve(t), lt = (t) => t && Promise.resolve(t) === t, z = () => document.body.querySelector(`.${c.container}`), be = (t) => {
896
909
  const e = z();
897
910
  return e ? e.querySelector(t) : null;
898
- }, V = (t) => be(`.${t}`), T = () => V(c.popup), ce = () => V(c.icon), Ao = () => V(c["icon-content"]), tn = () => V(c.title), rt = () => V(c["html-container"]), nn = () => V(c.image), at = () => V(c["progress-steps"]), ze = () => V(c["validation-message"]), K = () => (
911
+ }, V = (t) => be(`.${t}`), T = () => V(c.popup), de = () => V(c.icon), To = () => V(c["icon-content"]), nn = () => V(c.title), ct = () => V(c["html-container"]), on = () => V(c.image), dt = () => V(c["progress-steps"]), ze = () => V(c["validation-message"]), K = () => (
899
912
  /** @type {HTMLButtonElement} */
900
913
  be(`.${c.actions} .${c.confirm}`)
901
- ), de = () => (
914
+ ), ue = () => (
902
915
  /** @type {HTMLButtonElement} */
903
916
  be(`.${c.actions} .${c.cancel}`)
904
917
  ), ne = () => (
905
918
  /** @type {HTMLButtonElement} */
906
919
  be(`.${c.actions} .${c.deny}`)
907
- ), To = () => V(c["input-label"]), ue = () => be(`.${c.loader}`), ye = () => V(c.actions), on = () => V(c.footer), Ue = () => V(c["timer-progress-bar"]), lt = () => V(c.close), So = `
920
+ ), So = () => V(c["input-label"]), he = () => be(`.${c.loader}`), ye = () => V(c.actions), sn = () => V(c.footer), qe = () => V(c["timer-progress-bar"]), ut = () => V(c.close), Lo = `
908
921
  a[href],
909
922
  area[href],
910
923
  input:not([disabled]),
@@ -919,19 +932,19 @@ const vo = 100, p = {}, Co = () => {
919
932
  audio[controls],
920
933
  video[controls],
921
934
  summary
922
- `, ct = () => {
935
+ `, ht = () => {
923
936
  const t = T();
924
937
  if (!t)
925
938
  return [];
926
939
  const e = t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'), n = Array.from(e).sort((i, r) => {
927
940
  const l = parseInt(i.getAttribute("tabindex") || "0"), a = parseInt(r.getAttribute("tabindex") || "0");
928
941
  return l > a ? 1 : l < a ? -1 : 0;
929
- }), o = t.querySelectorAll(So), s = Array.from(o).filter((i) => i.getAttribute("tabindex") !== "-1");
930
- return [...new Set(n.concat(s))].filter((i) => U(i));
931
- }, dt = () => G(document.body, c.shown) && !G(document.body, c["toast-shown"]) && !G(document.body, c["no-backdrop"]), qe = () => {
942
+ }), o = t.querySelectorAll(Lo), s = Array.from(o).filter((i) => i.getAttribute("tabindex") !== "-1");
943
+ return [...new Set(n.concat(s))].filter((i) => q(i));
944
+ }, ft = () => G(document.body, c.shown) && !G(document.body, c["toast-shown"]) && !G(document.body, c["no-backdrop"]), Ue = () => {
932
945
  const t = T();
933
946
  return t ? G(t, c.toast) : !1;
934
- }, Lo = () => {
947
+ }, $o = () => {
935
948
  const t = T();
936
949
  return t ? t.hasAttribute("data-loading") : !1;
937
950
  }, j = (t, e) => {
@@ -953,12 +966,12 @@ const vo = 100, p = {}, Co = () => {
953
966
  if (!t.classList.contains(n[o]))
954
967
  return !1;
955
968
  return !0;
956
- }, $o = (t, e) => {
969
+ }, Io = (t, e) => {
957
970
  Array.from(t.classList).forEach((n) => {
958
971
  !Object.values(c).includes(n) && !Object.values(Le).includes(n) && !Object.values(e.showClass || {}).includes(n) && t.classList.remove(n);
959
972
  });
960
- }, q = (t, e, n) => {
961
- if ($o(t, e), !e.customClass)
973
+ }, U = (t, e, n) => {
974
+ if (Io(t, e), !e.customClass)
962
975
  return;
963
976
  const o = e.customClass[
964
977
  /** @type {keyof SweetAlertCustomClass} */
@@ -988,21 +1001,21 @@ const vo = 100, p = {}, Co = () => {
988
1001
  default:
989
1002
  return t.querySelector(`.${c.popup} > .${c.input}`);
990
1003
  }
991
- }, sn = (t) => {
1004
+ }, rn = (t) => {
992
1005
  if (t.focus(), t.type !== "file") {
993
1006
  const e = t.value;
994
1007
  t.value = "", t.value = e;
995
1008
  }
996
- }, rn = (t, e, n) => {
1009
+ }, an = (t, e, n) => {
997
1010
  !t || !e || (typeof e == "string" && (e = e.split(/\s+/).filter(Boolean)), e.forEach((o) => {
998
1011
  Array.isArray(t) ? t.forEach((s) => {
999
1012
  n ? s.classList.add(o) : s.classList.remove(o);
1000
1013
  }) : n ? t.classList.add(o) : t.classList.remove(o);
1001
1014
  }));
1002
1015
  }, A = (t, e) => {
1003
- rn(t, e, !0);
1016
+ an(t, e, !0);
1004
1017
  }, H = (t, e) => {
1005
- rn(t, e, !1);
1018
+ an(t, e, !1);
1006
1019
  }, W = (t, e) => {
1007
1020
  const n = Array.from(t.children);
1008
1021
  for (let o = 0; o < n.length; o++) {
@@ -1019,46 +1032,46 @@ const vo = 100, p = {}, Co = () => {
1019
1032
  t && (t.style.display = e);
1020
1033
  }, O = (t) => {
1021
1034
  t && (t.style.display = "none");
1022
- }, ut = (t, e = "block") => {
1035
+ }, pt = (t, e = "block") => {
1023
1036
  t && new MutationObserver(() => {
1024
1037
  ve(t, t.innerHTML, e);
1025
1038
  }).observe(t, {
1026
1039
  childList: !0,
1027
1040
  subtree: !0
1028
1041
  });
1029
- }, Pt = (t, e, n, o) => {
1042
+ }, Nt = (t, e, n, o) => {
1030
1043
  const s = t.querySelector(e);
1031
1044
  s && s.style.setProperty(n, o);
1032
1045
  }, ve = (t, e, n = "flex") => {
1033
1046
  e ? R(t, n) : O(t);
1034
- }, U = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Io = () => !U(K()) && !U(ne()) && !U(de()), Xe = (t) => t.scrollHeight > t.clientHeight, Po = (t, e) => {
1047
+ }, q = (t) => !!(t && (t.offsetWidth || t.offsetHeight || t.getClientRects().length)), Po = () => !q(K()) && !q(ne()) && !q(ue()), Qe = (t) => t.scrollHeight > t.clientHeight, Bo = (t, e) => {
1035
1048
  let n = (
1036
1049
  /** @type {HTMLElement | null} */
1037
1050
  t
1038
1051
  );
1039
1052
  for (; n && n !== e; ) {
1040
- if (Xe(n))
1053
+ if (Qe(n))
1041
1054
  return !0;
1042
1055
  n = n.parentElement;
1043
1056
  }
1044
1057
  return !1;
1045
- }, an = (t) => {
1058
+ }, ln = (t) => {
1046
1059
  const e = window.getComputedStyle(t), n = parseFloat(e.getPropertyValue("animation-duration") || "0"), o = parseFloat(e.getPropertyValue("transition-duration") || "0");
1047
1060
  return n > 0 || o > 0;
1048
- }, ht = (t, e = !1) => {
1049
- const n = Ue();
1050
- n && U(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
1061
+ }, gt = (t, e = !1) => {
1062
+ const n = qe();
1063
+ n && q(n) && (e && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
1051
1064
  n.style.transition = `width ${t / 1e3}s linear`, n.style.width = "0%";
1052
1065
  }, 10));
1053
- }, Bo = () => {
1054
- const t = Ue();
1066
+ }, No = () => {
1067
+ const t = qe();
1055
1068
  if (!t)
1056
1069
  return;
1057
1070
  const e = parseInt(window.getComputedStyle(t).width);
1058
1071
  t.style.removeProperty("transition"), t.style.width = "100%";
1059
1072
  const n = parseInt(window.getComputedStyle(t).width), o = e / n * 100;
1060
1073
  t.style.width = `${o}%`;
1061
- }, No = () => typeof window > "u" || typeof document > "u", Mo = `
1074
+ }, Mo = () => typeof window > "u" || typeof document > "u", Ro = `
1062
1075
  <div aria-labelledby="${c.title}" aria-describedby="${c["html-container"]}" class="${c.popup}" tabindex="-1">
1063
1076
  <button type="button" class="${c.close}"></button>
1064
1077
  <ul class="${c["progress-steps"]}"></ul>
@@ -1091,7 +1104,7 @@ const vo = 100, p = {}, Co = () => {
1091
1104
  <div class="${c["timer-progress-bar"]}"></div>
1092
1105
  </div>
1093
1106
  </div>
1094
- `.replace(/(^|\n)\s*/g, ""), Ro = () => {
1107
+ `.replace(/(^|\n)\s*/g, ""), Oo = () => {
1095
1108
  const t = z();
1096
1109
  return t ? (t.remove(), H([document.documentElement, document.body], [
1097
1110
  c["no-backdrop"],
@@ -1100,8 +1113,8 @@ const vo = 100, p = {}, Co = () => {
1100
1113
  c["has-column"]
1101
1114
  ]), !0) : !1;
1102
1115
  }, X = () => {
1103
- p.currentInstance && p.currentInstance.resetValidationMessage();
1104
- }, Oo = () => {
1116
+ g.currentInstance && g.currentInstance.resetValidationMessage();
1117
+ }, Do = () => {
1105
1118
  const t = T();
1106
1119
  if (!t)
1107
1120
  return;
@@ -1111,7 +1124,7 @@ const vo = 100, p = {}, Co = () => {
1111
1124
  }, o.onchange = () => {
1112
1125
  X(), s.value = o.value;
1113
1126
  });
1114
- }, Do = (t) => {
1127
+ }, zo = (t) => {
1115
1128
  if (typeof t == "string") {
1116
1129
  const e = document.querySelector(t);
1117
1130
  if (!e)
@@ -1122,131 +1135,131 @@ const vo = 100, p = {}, Co = () => {
1122
1135
  );
1123
1136
  }
1124
1137
  return t;
1125
- }, zo = (t) => {
1138
+ }, qo = (t) => {
1126
1139
  const e = T();
1127
1140
  e && (e.setAttribute("role", t.toast ? "alert" : "dialog"), e.setAttribute("aria-live", t.toast ? "polite" : "assertive"), t.toast || e.setAttribute("aria-modal", "true"));
1128
1141
  }, Uo = (t) => {
1129
- window.getComputedStyle(t).direction === "rtl" && (A(z(), c.rtl), p.isRTL = !0);
1130
- }, qo = (t) => {
1131
- const e = Ro();
1132
- if (No()) {
1142
+ window.getComputedStyle(t).direction === "rtl" && (A(z(), c.rtl), g.isRTL = !0);
1143
+ }, Vo = (t) => {
1144
+ const e = Oo();
1145
+ if (Mo()) {
1133
1146
  te("SweetAlert2 requires document to initialize");
1134
1147
  return;
1135
1148
  }
1136
1149
  const n = document.createElement("div");
1137
- n.className = c.container, e && A(n, c["no-transition"]), j(n, Mo), n.dataset.swal2Theme = t.theme;
1138
- const o = Do(t.target || "body");
1139
- o.appendChild(n), t.topLayer && (n.setAttribute("popover", ""), n.showPopover()), zo(t), Uo(o), Oo();
1140
- }, ft = (t, e) => {
1141
- t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? Vo(t, e) : t && j(e, t);
1142
- }, Vo = (t, e) => {
1143
- "jquery" in t ? jo(e, t) : j(e, t.toString());
1150
+ n.className = c.container, e && A(n, c["no-transition"]), j(n, Ro), n.dataset.swal2Theme = t.theme;
1151
+ const o = zo(t.target || "body");
1152
+ o.appendChild(n), t.topLayer && (n.setAttribute("popover", ""), n.showPopover()), qo(t), Uo(o), Do();
1153
+ }, wt = (t, e) => {
1154
+ t instanceof HTMLElement ? e.appendChild(t) : typeof t == "object" ? jo(t, e) : t && j(e, t);
1144
1155
  }, jo = (t, e) => {
1156
+ "jquery" in t ? Ho(e, t) : j(e, t.toString());
1157
+ }, Ho = (t, e) => {
1145
1158
  if (t.textContent = "", 0 in e)
1146
1159
  for (let n = 0; n in e; n++)
1147
1160
  t.appendChild(e[n].cloneNode(!0));
1148
1161
  else
1149
1162
  t.appendChild(e.cloneNode(!0));
1150
- }, Ho = (t, e) => {
1151
- const n = ye(), o = ue();
1152
- !n || !o || (!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? O(n) : R(n), q(n, e, "actions"), Fo(n, o, e), j(o, e.loaderHtml || ""), q(o, e, "loader"));
1163
+ }, Fo = (t, e) => {
1164
+ const n = ye(), o = he();
1165
+ !n || !o || (!e.showConfirmButton && !e.showDenyButton && !e.showCancelButton ? O(n) : R(n), U(n, e, "actions"), Ko(n, o, e), j(o, e.loaderHtml || ""), U(o, e, "loader"));
1153
1166
  };
1154
- function Fo(t, e, n) {
1155
- const o = K(), s = ne(), i = de();
1156
- !o || !s || !i || (Ge(o, "confirm", n), Ge(s, "deny", n), Ge(i, "cancel", n), Ko(o, s, i, n), n.reverseButtons && (n.toast ? (t.insertBefore(i, o), t.insertBefore(s, o)) : (t.insertBefore(i, e), t.insertBefore(s, e), t.insertBefore(o, e))));
1167
+ function Ko(t, e, n) {
1168
+ const o = K(), s = ne(), i = ue();
1169
+ !o || !s || !i || (We(o, "confirm", n), We(s, "deny", n), We(i, "cancel", n), Go(o, s, i, n), n.reverseButtons && (n.toast ? (t.insertBefore(i, o), t.insertBefore(s, o)) : (t.insertBefore(i, e), t.insertBefore(s, e), t.insertBefore(o, e))));
1157
1170
  }
1158
- function Ko(t, e, n, o) {
1171
+ function Go(t, e, n, o) {
1159
1172
  if (!o.buttonsStyling) {
1160
1173
  H([t, e, n], c.styled);
1161
1174
  return;
1162
1175
  }
1163
- A([t, e, n], c.styled), o.confirmButtonColor && t.style.setProperty("--swal2-confirm-button-background-color", o.confirmButtonColor), o.denyButtonColor && e.style.setProperty("--swal2-deny-button-background-color", o.denyButtonColor), o.cancelButtonColor && n.style.setProperty("--swal2-cancel-button-background-color", o.cancelButtonColor), Ke(t), Ke(e), Ke(n);
1176
+ A([t, e, n], c.styled), o.confirmButtonColor && t.style.setProperty("--swal2-confirm-button-background-color", o.confirmButtonColor), o.denyButtonColor && e.style.setProperty("--swal2-deny-button-background-color", o.denyButtonColor), o.cancelButtonColor && n.style.setProperty("--swal2-cancel-button-background-color", o.cancelButtonColor), Ge(t), Ge(e), Ge(n);
1164
1177
  }
1165
- function Ke(t) {
1178
+ function Ge(t) {
1166
1179
  const e = window.getComputedStyle(t);
1167
1180
  if (e.getPropertyValue("--swal2-action-button-focus-box-shadow"))
1168
1181
  return;
1169
1182
  const n = e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/, "rgba($1, $2, $3, 0.5)");
1170
1183
  t.style.setProperty("--swal2-action-button-focus-box-shadow", e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/, ` ${n}`));
1171
1184
  }
1172
- function Ge(t, e, n) {
1185
+ function We(t, e, n) {
1173
1186
  const o = (
1174
1187
  /** @type {'Confirm' | 'Deny' | 'Cancel'} */
1175
- ot(e)
1188
+ rt(e)
1176
1189
  );
1177
- ve(t, n[`show${o}Button`], "inline-block"), j(t, n[`${e}ButtonText`] || ""), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`] || ""), t.className = c[e], q(t, n, `${e}Button`);
1190
+ ve(t, n[`show${o}Button`], "inline-block"), j(t, n[`${e}ButtonText`] || ""), t.setAttribute("aria-label", n[`${e}ButtonAriaLabel`] || ""), t.className = c[e], U(t, n, `${e}Button`);
1178
1191
  }
1179
- const Go = (t, e) => {
1180
- const n = lt();
1181
- n && (j(n, e.closeButtonHtml || ""), q(n, e, "closeButton"), ve(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel || ""));
1182
- }, Wo = (t, e) => {
1192
+ const Wo = (t, e) => {
1193
+ const n = ut();
1194
+ n && (j(n, e.closeButtonHtml || ""), U(n, e, "closeButton"), ve(n, e.showCloseButton), n.setAttribute("aria-label", e.closeButtonAriaLabel || ""));
1195
+ }, Yo = (t, e) => {
1183
1196
  const n = z();
1184
- n && (Yo(n, e.backdrop), Zo(n, e.position), Xo(n, e.grow), q(n, e, "container"));
1197
+ n && (Zo(n, e.backdrop), Xo(n, e.position), Jo(n, e.grow), U(n, e, "container"));
1185
1198
  };
1186
- function Yo(t, e) {
1199
+ function Zo(t, e) {
1187
1200
  typeof e == "string" ? t.style.background = e : e || A([document.documentElement, document.body], c["no-backdrop"]);
1188
1201
  }
1189
- function Zo(t, e) {
1202
+ function Xo(t, e) {
1190
1203
  e && (e in c ? A(t, c[e]) : (D('The "position" parameter is not valid, defaulting to "center"'), A(t, c.center)));
1191
1204
  }
1192
- function Xo(t, e) {
1205
+ function Jo(t, e) {
1193
1206
  e && A(t, c[`grow-${e}`]);
1194
1207
  }
1195
1208
  var $ = {
1196
1209
  innerParams: /* @__PURE__ */ new WeakMap(),
1197
1210
  domCache: /* @__PURE__ */ new WeakMap()
1198
1211
  };
1199
- const Jo = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Qo = (t, e) => {
1212
+ const Qo = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], es = (t, e) => {
1200
1213
  const n = T();
1201
1214
  if (!n)
1202
1215
  return;
1203
1216
  const o = $.innerParams.get(t), s = !o || e.input !== o.input;
1204
- Jo.forEach((i) => {
1217
+ Qo.forEach((i) => {
1205
1218
  const r = W(n, c[i]);
1206
- r && (ns(i, e.inputAttributes), r.className = c[i], s && O(r));
1207
- }), e.input && (s && es(e), os(e));
1208
- }, es = (t) => {
1219
+ r && (os(i, e.inputAttributes), r.className = c[i], s && O(r));
1220
+ }), e.input && (s && ts(e), ss(e));
1221
+ }, ts = (t) => {
1209
1222
  if (!t.input)
1210
1223
  return;
1211
1224
  if (!P[t.input]) {
1212
1225
  te(`Unexpected type of input! Expected ${Object.keys(P).join(" | ")}, got "${t.input}"`);
1213
1226
  return;
1214
1227
  }
1215
- const e = ln(t.input);
1228
+ const e = cn(t.input);
1216
1229
  if (!e)
1217
1230
  return;
1218
1231
  const n = P[t.input](e, t);
1219
1232
  R(e), t.inputAutoFocus && setTimeout(() => {
1220
- sn(n);
1233
+ rn(n);
1221
1234
  });
1222
- }, ts = (t) => {
1235
+ }, ns = (t) => {
1223
1236
  for (let e = 0; e < t.attributes.length; e++) {
1224
1237
  const n = t.attributes[e].name;
1225
1238
  ["id", "type", "value", "style"].includes(n) || t.removeAttribute(n);
1226
1239
  }
1227
- }, ns = (t, e) => {
1240
+ }, os = (t, e) => {
1228
1241
  const n = T();
1229
1242
  if (!n)
1230
1243
  return;
1231
1244
  const o = Ve(n, t);
1232
1245
  if (o) {
1233
- ts(o);
1246
+ ns(o);
1234
1247
  for (const s in e)
1235
1248
  o.setAttribute(s, e[s]);
1236
1249
  }
1237
- }, os = (t) => {
1250
+ }, ss = (t) => {
1238
1251
  if (!t.input)
1239
1252
  return;
1240
- const e = ln(t.input);
1241
- e && q(e, t, "input");
1242
- }, gt = (t, e) => {
1253
+ const e = cn(t.input);
1254
+ e && U(e, t, "input");
1255
+ }, mt = (t, e) => {
1243
1256
  !t.placeholder && e.inputPlaceholder && (t.placeholder = e.inputPlaceholder);
1244
1257
  }, Ce = (t, e, n) => {
1245
1258
  if (n.inputLabel) {
1246
1259
  const o = document.createElement("label"), s = c["input-label"];
1247
1260
  o.setAttribute("for", t.id), o.className = s, typeof n.customClass == "object" && A(o, n.customClass.inputLabel), o.innerText = n.inputLabel, e.insertAdjacentElement("beforebegin", o);
1248
1261
  }
1249
- }, ln = (t) => {
1262
+ }, cn = (t) => {
1250
1263
  const e = T();
1251
1264
  if (e)
1252
1265
  return W(e, c[
@@ -1254,7 +1267,7 @@ const Jo = ["input", "file", "range", "select", "radio", "checkbox", "textarea"]
1254
1267
  t
1255
1268
  ] || c.input);
1256
1269
  }, $e = (t, e) => {
1257
- ["string", "number"].includes(typeof e) ? t.value = `${e}` : it(e) || D(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`);
1270
+ ["string", "number"].includes(typeof e) ? t.value = `${e}` : lt(e) || D(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`);
1258
1271
  }, P = {};
1259
1272
  P.text = P.email = P.password = P.number = P.tel = P.url = P.search = P.date = P["datetime-local"] = P.time = P.week = P.month = /** @type {(input: Input | HTMLElement, params: SweetAlertOptions) => Input} */
1260
1273
  (t, e) => {
@@ -1262,7 +1275,7 @@ P.text = P.email = P.password = P.number = P.tel = P.url = P.search = P.date = P
1262
1275
  /** @type {HTMLInputElement} */
1263
1276
  t
1264
1277
  );
1265
- return $e(n, e.inputValue), Ce(n, n, e), gt(n, e), n.type = /** @type {string} */
1278
+ return $e(n, e.inputValue), Ce(n, n, e), mt(n, e), n.type = /** @type {string} */
1266
1279
  e.input, n;
1267
1280
  };
1268
1281
  P.file = (t, e) => {
@@ -1270,7 +1283,7 @@ P.file = (t, e) => {
1270
1283
  /** @type {HTMLInputElement} */
1271
1284
  t
1272
1285
  );
1273
- return Ce(n, n, e), gt(n, e), n;
1286
+ return Ce(n, n, e), mt(n, e), n;
1274
1287
  };
1275
1288
  P.range = (t, e) => {
1276
1289
  const n = (
@@ -1325,7 +1338,7 @@ P.textarea = (t, e) => {
1325
1338
  /** @type {HTMLTextAreaElement} */
1326
1339
  t
1327
1340
  );
1328
- $e(n, e.inputValue), gt(n, e), Ce(n, n, e);
1341
+ $e(n, e.inputValue), mt(n, e), Ce(n, n, e);
1329
1342
  const o = (s) => parseInt(window.getComputedStyle(s).marginLeft) + parseInt(window.getComputedStyle(s).marginRight);
1330
1343
  return setTimeout(() => {
1331
1344
  if ("MutationObserver" in window) {
@@ -1345,18 +1358,18 @@ P.textarea = (t, e) => {
1345
1358
  }
1346
1359
  }), n;
1347
1360
  };
1348
- const ss = (t, e) => {
1349
- const n = rt();
1350
- n && (ut(n), q(n, e, "htmlContainer"), e.html ? (ft(e.html, n), R(n, "block")) : e.text ? (n.textContent = e.text, R(n, "block")) : O(n), Qo(t, e));
1351
- }, is = (t, e) => {
1352
- const n = on();
1353
- n && (ut(n), ve(n, !!e.footer, "block"), e.footer && ft(e.footer, n), q(n, e, "footer"));
1361
+ const is = (t, e) => {
1362
+ const n = ct();
1363
+ n && (pt(n), U(n, e, "htmlContainer"), e.html ? (wt(e.html, n), R(n, "block")) : e.text ? (n.textContent = e.text, R(n, "block")) : O(n), es(t, e));
1354
1364
  }, rs = (t, e) => {
1355
- const n = $.innerParams.get(t), o = ce();
1365
+ const n = sn();
1366
+ n && (pt(n), ve(n, !!e.footer, "block"), e.footer && wt(e.footer, n), U(n, e, "footer"));
1367
+ }, as = (t, e) => {
1368
+ const n = $.innerParams.get(t), o = de();
1356
1369
  if (!o)
1357
1370
  return;
1358
1371
  if (n && e.icon === n.icon) {
1359
- Nt(o, e), Bt(o, e);
1372
+ Rt(o, e), Mt(o, e);
1360
1373
  return;
1361
1374
  }
1362
1375
  if (!e.icon && !e.iconHtml) {
@@ -1367,86 +1380,86 @@ const ss = (t, e) => {
1367
1380
  te(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`), O(o);
1368
1381
  return;
1369
1382
  }
1370
- R(o), Nt(o, e), Bt(o, e), A(o, e.showClass && e.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", cn);
1371
- }, Bt = (t, e) => {
1383
+ R(o), Rt(o, e), Mt(o, e), A(o, e.showClass && e.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", dn);
1384
+ }, Mt = (t, e) => {
1372
1385
  for (const [n, o] of Object.entries(Le))
1373
1386
  e.icon !== n && H(t, o);
1374
- A(t, e.icon && Le[e.icon]), cs(t, e), cn(), q(t, e, "icon");
1375
- }, cn = () => {
1387
+ A(t, e.icon && Le[e.icon]), ds(t, e), dn(), U(t, e, "icon");
1388
+ }, dn = () => {
1376
1389
  const t = T();
1377
1390
  if (!t)
1378
1391
  return;
1379
1392
  const e = window.getComputedStyle(t).getPropertyValue("background-color"), n = t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
1380
1393
  for (let o = 0; o < n.length; o++)
1381
1394
  n[o].style.backgroundColor = e;
1382
- }, as = (t) => `
1395
+ }, ls = (t) => `
1383
1396
  ${t.animation ? '<div class="swal2-success-circular-line-left"></div>' : ""}
1384
1397
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
1385
1398
  <div class="swal2-success-ring"></div>
1386
1399
  ${t.animation ? '<div class="swal2-success-fix"></div>' : ""}
1387
1400
  ${t.animation ? '<div class="swal2-success-circular-line-right"></div>' : ""}
1388
- `, ls = `
1401
+ `, cs = `
1389
1402
  <span class="swal2-x-mark">
1390
1403
  <span class="swal2-x-mark-line-left"></span>
1391
1404
  <span class="swal2-x-mark-line-right"></span>
1392
1405
  </span>
1393
- `, Nt = (t, e) => {
1406
+ `, Rt = (t, e) => {
1394
1407
  if (!e.icon && !e.iconHtml)
1395
1408
  return;
1396
1409
  let n = t.innerHTML, o = "";
1397
- e.iconHtml ? o = Mt(e.iconHtml) : e.icon === "success" ? (o = as(e), n = n.replace(/ style=".*?"/g, "")) : e.icon === "error" ? o = ls : e.icon && (o = Mt({
1410
+ e.iconHtml ? o = Ot(e.iconHtml) : e.icon === "success" ? (o = ls(e), n = n.replace(/ style=".*?"/g, "")) : e.icon === "error" ? o = cs : e.icon && (o = Ot({
1398
1411
  question: "?",
1399
1412
  warning: "!",
1400
1413
  info: "i"
1401
1414
  }[e.icon])), n.trim() !== o.trim() && j(t, o);
1402
- }, cs = (t, e) => {
1415
+ }, ds = (t, e) => {
1403
1416
  if (e.iconColor) {
1404
1417
  t.style.color = e.iconColor, t.style.borderColor = e.iconColor;
1405
1418
  for (const n of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
1406
- Pt(t, n, "background-color", e.iconColor);
1407
- Pt(t, ".swal2-success-ring", "border-color", e.iconColor);
1419
+ Nt(t, n, "background-color", e.iconColor);
1420
+ Nt(t, ".swal2-success-ring", "border-color", e.iconColor);
1408
1421
  }
1409
- }, Mt = (t) => `<div class="${c["icon-content"]}">${t}</div>`, ds = (t, e) => {
1410
- const n = nn();
1422
+ }, Ot = (t) => `<div class="${c["icon-content"]}">${t}</div>`, us = (t, e) => {
1423
+ const n = on();
1411
1424
  if (n) {
1412
1425
  if (!e.imageUrl) {
1413
1426
  O(n);
1414
1427
  return;
1415
1428
  }
1416
- R(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt || ""), Q(n, "width", e.imageWidth), Q(n, "height", e.imageHeight), n.className = c.image, q(n, e, "image");
1429
+ R(n, ""), n.setAttribute("src", e.imageUrl), n.setAttribute("alt", e.imageAlt || ""), Q(n, "width", e.imageWidth), Q(n, "height", e.imageHeight), n.className = c.image, U(n, e, "image");
1417
1430
  }
1418
1431
  };
1419
- let pt = !1, dn = 0, un = 0, hn = 0, fn = 0;
1420
- const us = (t) => {
1432
+ let bt = !1, un = 0, hn = 0, fn = 0, pn = 0;
1433
+ const hs = (t) => {
1421
1434
  t.addEventListener("mousedown", Ie), document.body.addEventListener("mousemove", Pe), t.addEventListener("mouseup", Be), t.addEventListener("touchstart", Ie), document.body.addEventListener("touchmove", Pe), t.addEventListener("touchend", Be);
1422
- }, hs = (t) => {
1435
+ }, fs = (t) => {
1423
1436
  t.removeEventListener("mousedown", Ie), document.body.removeEventListener("mousemove", Pe), t.removeEventListener("mouseup", Be), t.removeEventListener("touchstart", Ie), document.body.removeEventListener("touchmove", Pe), t.removeEventListener("touchend", Be);
1424
1437
  }, Ie = (t) => {
1425
1438
  const e = T();
1426
1439
  if (!e)
1427
1440
  return;
1428
- const n = ce();
1441
+ const n = de();
1429
1442
  if (t.target === e || n && n.contains(
1430
1443
  /** @type {HTMLElement} */
1431
1444
  t.target
1432
1445
  )) {
1433
- pt = !0;
1446
+ bt = !0;
1434
1447
  const o = gn(t);
1435
- dn = o.clientX, un = o.clientY, hn = parseInt(e.style.insetInlineStart) || 0, fn = parseInt(e.style.insetBlockStart) || 0, A(e, "swal2-dragging");
1448
+ un = o.clientX, hn = o.clientY, fn = parseInt(e.style.insetInlineStart) || 0, pn = parseInt(e.style.insetBlockStart) || 0, A(e, "swal2-dragging");
1436
1449
  }
1437
1450
  }, Pe = (t) => {
1438
1451
  const e = T();
1439
- if (e && pt) {
1452
+ if (e && bt) {
1440
1453
  let {
1441
1454
  clientX: n,
1442
1455
  clientY: o
1443
1456
  } = gn(t);
1444
- const s = n - dn;
1445
- e.style.insetInlineStart = `${hn + (p.isRTL ? -s : s)}px`, e.style.insetBlockStart = `${fn + (o - un)}px`;
1457
+ const s = n - un;
1458
+ e.style.insetInlineStart = `${fn + (g.isRTL ? -s : s)}px`, e.style.insetBlockStart = `${pn + (o - hn)}px`;
1446
1459
  }
1447
1460
  }, Be = () => {
1448
1461
  const t = T();
1449
- pt = !1, H(t, "swal2-dragging");
1462
+ bt = !1, H(t, "swal2-dragging");
1450
1463
  }, gn = (t) => {
1451
1464
  let e = 0, n = 0;
1452
1465
  return t.type.startsWith("mouse") ? (e = /** @type {MouseEvent} */
@@ -1457,22 +1470,22 @@ const us = (t) => {
1457
1470
  clientX: e,
1458
1471
  clientY: n
1459
1472
  };
1460
- }, fs = (t, e) => {
1473
+ }, ps = (t, e) => {
1461
1474
  const n = z(), o = T();
1462
1475
  if (!(!n || !o)) {
1463
1476
  if (e.toast) {
1464
1477
  Q(n, "width", e.width), o.style.width = "100%";
1465
- const s = ue();
1466
- s && o.insertBefore(s, ce());
1478
+ const s = he();
1479
+ s && o.insertBefore(s, de());
1467
1480
  } else
1468
1481
  Q(o, "width", e.width);
1469
- Q(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), O(ze()), gs(o, e), e.draggable && !e.toast ? (A(o, c.draggable), us(o)) : (H(o, c.draggable), hs(o));
1482
+ Q(o, "padding", e.padding), e.color && (o.style.color = e.color), e.background && (o.style.background = e.background), O(ze()), gs(o, e), e.draggable && !e.toast ? (A(o, c.draggable), hs(o)) : (H(o, c.draggable), fs(o));
1470
1483
  }
1471
1484
  }, gs = (t, e) => {
1472
1485
  const n = e.showClass || {};
1473
- t.className = `${c.popup} ${U(t) ? n.popup : ""}`, e.toast ? (A([document.documentElement, document.body], c["toast-shown"]), A(t, c.toast)) : A(t, c.modal), q(t, e, "popup"), typeof e.customClass == "string" && A(t, e.customClass), e.icon && A(t, c[`icon-${e.icon}`]);
1474
- }, ps = (t, e) => {
1475
- const n = at();
1486
+ t.className = `${c.popup} ${q(t) ? n.popup : ""}`, e.toast ? (A([document.documentElement, document.body], c["toast-shown"]), A(t, c.toast)) : A(t, c.modal), U(t, e, "popup"), typeof e.customClass == "string" && A(t, e.customClass), e.icon && A(t, c[`icon-${e.icon}`]);
1487
+ }, ws = (t, e) => {
1488
+ const n = dt();
1476
1489
  if (!n)
1477
1490
  return;
1478
1491
  const {
@@ -1484,42 +1497,42 @@ const us = (t) => {
1484
1497
  return;
1485
1498
  }
1486
1499
  R(n), n.textContent = "", s >= o.length && D("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), o.forEach((i, r) => {
1487
- const l = ws(i);
1500
+ const l = ms(i);
1488
1501
  if (n.appendChild(l), r === s && A(l, c["active-progress-step"]), r !== o.length - 1) {
1489
- const a = ms(e);
1502
+ const a = bs(e);
1490
1503
  n.appendChild(a);
1491
1504
  }
1492
1505
  });
1493
- }, ws = (t) => {
1506
+ }, ms = (t) => {
1494
1507
  const e = document.createElement("li");
1495
1508
  return A(e, c["progress-step"]), j(e, t), e;
1496
- }, ms = (t) => {
1509
+ }, bs = (t) => {
1497
1510
  const e = document.createElement("li");
1498
1511
  return A(e, c["progress-step-line"]), t.progressStepsDistance && Q(e, "width", t.progressStepsDistance), e;
1499
- }, bs = (t, e) => {
1500
- const n = tn();
1501
- n && (ut(n), ve(n, !!(e.title || e.titleText), "block"), e.title && ft(e.title, n), e.titleText && (n.innerText = e.titleText), q(n, e, "title"));
1502
- }, pn = (t, e) => {
1512
+ }, ys = (t, e) => {
1513
+ const n = nn();
1514
+ n && (pt(n), ve(n, !!(e.title || e.titleText), "block"), e.title && wt(e.title, n), e.titleText && (n.innerText = e.titleText), U(n, e, "title"));
1515
+ }, wn = (t, e) => {
1503
1516
  var n;
1504
- fs(t, e), Wo(t, e), ps(t, e), rs(t, e), ds(t, e), bs(t, e), Go(t, e), ss(t, e), Ho(t, e), is(t, e);
1517
+ ps(t, e), Yo(t, e), ws(t, e), as(t, e), us(t, e), ys(t, e), Wo(t, e), is(t, e), Fo(t, e), rs(t, e);
1505
1518
  const o = T();
1506
- typeof e.didRender == "function" && o && e.didRender(o), (n = p.eventEmitter) === null || n === void 0 || n.emit("didRender", o);
1507
- }, ys = () => U(T()), wn = () => {
1519
+ typeof e.didRender == "function" && o && e.didRender(o), (n = g.eventEmitter) === null || n === void 0 || n.emit("didRender", o);
1520
+ }, vs = () => q(T()), mn = () => {
1508
1521
  var t;
1509
1522
  return (t = K()) === null || t === void 0 ? void 0 : t.click();
1510
- }, vs = () => {
1523
+ }, Cs = () => {
1511
1524
  var t;
1512
1525
  return (t = ne()) === null || t === void 0 ? void 0 : t.click();
1513
- }, Cs = () => {
1526
+ }, ks = () => {
1514
1527
  var t;
1515
- return (t = de()) === null || t === void 0 ? void 0 : t.click();
1516
- }, he = Object.freeze({
1528
+ return (t = ue()) === null || t === void 0 ? void 0 : t.click();
1529
+ }, fe = Object.freeze({
1517
1530
  cancel: "cancel",
1518
1531
  backdrop: "backdrop",
1519
1532
  close: "close",
1520
1533
  esc: "esc",
1521
1534
  timer: "timer"
1522
- }), mn = (t) => {
1535
+ }), bn = (t) => {
1523
1536
  if (t.keydownTarget && t.keydownHandlerAdded && t.keydownHandler) {
1524
1537
  const e = (
1525
1538
  /** @type {EventListenerOrEventListenerObject} */
@@ -1530,9 +1543,9 @@ const us = (t) => {
1530
1543
  capture: t.keydownListenerCapture
1531
1544
  }), t.keydownHandlerAdded = !1;
1532
1545
  }
1533
- }, ks = (t, e, n) => {
1534
- if (mn(t), !e.toast) {
1535
- const o = (i) => _s(e, i, n);
1546
+ }, xs = (t, e, n) => {
1547
+ if (bn(t), !e.toast) {
1548
+ const o = (i) => Es(e, i, n);
1536
1549
  t.keydownHandler = o;
1537
1550
  const s = e.keydownListenerCapture ? window : T();
1538
1551
  if (s) {
@@ -1547,17 +1560,17 @@ const us = (t) => {
1547
1560
  }), t.keydownHandlerAdded = !0;
1548
1561
  }
1549
1562
  }
1550
- }, Je = (t, e) => {
1563
+ }, et = (t, e) => {
1551
1564
  var n;
1552
- const o = ct();
1565
+ const o = ht();
1553
1566
  if (o.length) {
1554
1567
  t = t + e, t === -2 && (t = o.length - 1), t === o.length ? t = 0 : t === -1 && (t = o.length - 1), o[t].focus();
1555
1568
  return;
1556
1569
  }
1557
1570
  (n = T()) === null || n === void 0 || n.focus();
1558
- }, bn = ["ArrowRight", "ArrowDown"], xs = ["ArrowLeft", "ArrowUp"], _s = (t, e, n) => {
1559
- t && (e.isComposing || e.keyCode === 229 || (t.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? Es(e, t) : e.key === "Tab" ? As(e) : [...bn, ...xs].includes(e.key) ? Ts(e.key) : e.key === "Escape" && Ss(e, t, n)));
1560
- }, Es = (t, e) => {
1571
+ }, yn = ["ArrowRight", "ArrowDown"], _s = ["ArrowLeft", "ArrowUp"], Es = (t, e, n) => {
1572
+ t && (e.isComposing || e.keyCode === 229 || (t.stopKeydownPropagation && e.stopPropagation(), e.key === "Enter" ? As(e, t) : e.key === "Tab" ? Ts(e) : [...yn, ..._s].includes(e.key) ? Ss(e.key) : e.key === "Escape" && Ls(e, t, n)));
1573
+ }, As = (t, e) => {
1561
1574
  if (!De(e.allowEnterKey))
1562
1575
  return;
1563
1576
  const n = T();
@@ -1567,100 +1580,100 @@ const us = (t) => {
1567
1580
  if (t.target && o && t.target instanceof HTMLElement && t.target.outerHTML === o.outerHTML) {
1568
1581
  if (["textarea", "file"].includes(e.input))
1569
1582
  return;
1570
- wn(), t.preventDefault();
1583
+ mn(), t.preventDefault();
1571
1584
  }
1572
- }, As = (t) => {
1573
- const e = t.target, n = ct();
1585
+ }, Ts = (t) => {
1586
+ const e = t.target, n = ht();
1574
1587
  let o = -1;
1575
1588
  for (let s = 0; s < n.length; s++)
1576
1589
  if (e === n[s]) {
1577
1590
  o = s;
1578
1591
  break;
1579
1592
  }
1580
- t.shiftKey ? Je(o, -1) : Je(o, 1), t.stopPropagation(), t.preventDefault();
1581
- }, Ts = (t) => {
1582
- const e = ye(), n = K(), o = ne(), s = de();
1593
+ t.shiftKey ? et(o, -1) : et(o, 1), t.stopPropagation(), t.preventDefault();
1594
+ }, Ss = (t) => {
1595
+ const e = ye(), n = K(), o = ne(), s = ue();
1583
1596
  if (!e || !n || !o || !s)
1584
1597
  return;
1585
1598
  const i = [n, o, s];
1586
1599
  if (document.activeElement instanceof HTMLElement && !i.includes(document.activeElement))
1587
1600
  return;
1588
- const r = bn.includes(t) ? "nextElementSibling" : "previousElementSibling";
1601
+ const r = yn.includes(t) ? "nextElementSibling" : "previousElementSibling";
1589
1602
  let l = document.activeElement;
1590
1603
  if (l) {
1591
1604
  for (let a = 0; a < e.children.length; a++) {
1592
1605
  if (l = l[r], !l)
1593
1606
  return;
1594
- if (l instanceof HTMLButtonElement && U(l))
1607
+ if (l instanceof HTMLButtonElement && q(l))
1595
1608
  break;
1596
1609
  }
1597
1610
  l instanceof HTMLButtonElement && l.focus();
1598
1611
  }
1599
- }, Ss = (t, e, n) => {
1600
- t.preventDefault(), De(e.allowEscapeKey) && n(he.esc);
1612
+ }, Ls = (t, e, n) => {
1613
+ t.preventDefault(), De(e.allowEscapeKey) && n(fe.esc);
1601
1614
  };
1602
- var re = {
1615
+ var ae = {
1603
1616
  swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
1604
1617
  swalPromiseReject: /* @__PURE__ */ new WeakMap()
1605
1618
  };
1606
- const Ls = () => {
1619
+ const $s = () => {
1607
1620
  const t = z();
1608
1621
  Array.from(document.body.children).forEach((n) => {
1609
1622
  n.contains(t) || (n.hasAttribute("aria-hidden") && n.setAttribute("data-previous-aria-hidden", n.getAttribute("aria-hidden") || ""), n.setAttribute("aria-hidden", "true"));
1610
1623
  });
1611
- }, yn = () => {
1624
+ }, vn = () => {
1612
1625
  Array.from(document.body.children).forEach((e) => {
1613
1626
  e.hasAttribute("data-previous-aria-hidden") ? (e.setAttribute("aria-hidden", e.getAttribute("data-previous-aria-hidden") || ""), e.removeAttribute("data-previous-aria-hidden")) : e.removeAttribute("aria-hidden");
1614
1627
  });
1615
- }, vn = typeof window < "u" && !!window.GestureEvent, $s = () => {
1616
- if (vn && !G(document.body, c.iosfix)) {
1628
+ }, Cn = typeof window < "u" && !!window.GestureEvent, Is = () => {
1629
+ if (Cn && !G(document.body, c.iosfix)) {
1617
1630
  const t = document.body.scrollTop;
1618
- document.body.style.top = `${t * -1}px`, A(document.body, c.iosfix), Is();
1631
+ document.body.style.top = `${t * -1}px`, A(document.body, c.iosfix), Ps();
1619
1632
  }
1620
- }, Is = () => {
1633
+ }, Ps = () => {
1621
1634
  const t = z();
1622
1635
  if (!t)
1623
1636
  return;
1624
1637
  let e;
1625
1638
  t.ontouchstart = (n) => {
1626
- e = Ps(n);
1639
+ e = Bs(n);
1627
1640
  }, t.ontouchmove = (n) => {
1628
1641
  e && (n.preventDefault(), n.stopPropagation());
1629
1642
  };
1630
- }, Ps = (t) => {
1631
- const e = t.target, n = z(), o = rt();
1632
- return !n || !o || Bs(t) || Ns(t) ? !1 : e === n || !Xe(n) && e instanceof HTMLElement && !Po(e, o) && // #2823
1643
+ }, Bs = (t) => {
1644
+ const e = t.target, n = z(), o = ct();
1645
+ return !n || !o || Ns(t) || Ms(t) ? !1 : e === n || !Qe(n) && e instanceof HTMLElement && !Bo(e, o) && // #2823
1633
1646
  e.tagName !== "INPUT" && // #1603
1634
1647
  e.tagName !== "TEXTAREA" && // #2266
1635
- !(Xe(o) && // #1944
1648
+ !(Qe(o) && // #1944
1636
1649
  o.contains(e));
1637
- }, Bs = (t) => !!(t.touches && t.touches.length && // @ts-ignore - touchType is not a standard property
1638
- t.touches[0].touchType === "stylus"), Ns = (t) => t.touches && t.touches.length > 1, Ms = () => {
1650
+ }, Ns = (t) => !!(t.touches && t.touches.length && // @ts-ignore - touchType is not a standard property
1651
+ t.touches[0].touchType === "stylus"), Ms = (t) => t.touches && t.touches.length > 1, Rs = () => {
1639
1652
  if (G(document.body, c.iosfix)) {
1640
1653
  const t = parseInt(document.body.style.top, 10);
1641
1654
  H(document.body, c.iosfix), document.body.style.top = "", document.body.scrollTop = t * -1;
1642
1655
  }
1643
- }, Rs = () => {
1656
+ }, Os = () => {
1644
1657
  const t = document.createElement("div");
1645
1658
  t.className = c["scrollbar-measure"], document.body.appendChild(t);
1646
1659
  const e = t.getBoundingClientRect().width - t.clientWidth;
1647
1660
  return document.body.removeChild(t), e;
1648
1661
  };
1649
- let ie = null;
1650
- const Os = (t) => {
1651
- ie === null && (document.body.scrollHeight > window.innerHeight || t === "scroll") && (ie = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${ie + Rs()}px`);
1652
- }, Ds = () => {
1653
- ie !== null && (document.body.style.paddingRight = `${ie}px`, ie = null);
1662
+ let re = null;
1663
+ const Ds = (t) => {
1664
+ re === null && (document.body.scrollHeight > window.innerHeight || t === "scroll") && (re = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${re + Os()}px`);
1665
+ }, zs = () => {
1666
+ re !== null && (document.body.style.paddingRight = `${re}px`, re = null);
1654
1667
  };
1655
- function Cn(t, e, n, o) {
1656
- qe() ? Rt(t, o) : (ko(n).then(() => Rt(t, o)), mn(p)), vn ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), dt() && (Ds(), Ms(), yn()), zs();
1668
+ function kn(t, e, n, o) {
1669
+ Ue() ? Dt(t, o) : (xo(n).then(() => Dt(t, o)), bn(g)), Cn ? (e.setAttribute("style", "display:none !important"), e.removeAttribute("class"), e.innerHTML = "") : e.remove(), ft() && (zs(), Rs(), vn()), qs();
1657
1670
  }
1658
- function zs() {
1671
+ function qs() {
1659
1672
  H([document.documentElement, document.body], [c.shown, c["height-auto"], c["no-backdrop"], c["toast-shown"]]);
1660
1673
  }
1661
1674
  function Y(t) {
1662
- t = qs(t);
1663
- const e = re.swalPromiseResolve.get(this), n = Us(this);
1675
+ t = Vs(t);
1676
+ const e = ae.swalPromiseResolve.get(this), n = Us(this);
1664
1677
  this.isAwaitingPromise ? t.isDismissed || (ke(this), e(t)) : n && e(t);
1665
1678
  }
1666
1679
  const Us = (t) => {
@@ -1672,15 +1685,15 @@ const Us = (t) => {
1672
1685
  return !1;
1673
1686
  H(e, n.showClass.popup), A(e, n.hideClass.popup);
1674
1687
  const o = z();
1675
- return H(o, n.showClass.backdrop), A(o, n.hideClass.backdrop), Vs(t, e, n), !0;
1688
+ return H(o, n.showClass.backdrop), A(o, n.hideClass.backdrop), js(t, e, n), !0;
1676
1689
  };
1677
- function kn(t) {
1678
- const e = re.swalPromiseReject.get(this);
1690
+ function xn(t) {
1691
+ const e = ae.swalPromiseReject.get(this);
1679
1692
  ke(this), e && e(t);
1680
1693
  }
1681
1694
  const ke = (t) => {
1682
1695
  t.isAwaitingPromise && (delete t.isAwaitingPromise, $.innerParams.get(t) || t._destroy());
1683
- }, qs = (t) => typeof t > "u" ? {
1696
+ }, Vs = (t) => typeof t > "u" ? {
1684
1697
  isConfirmed: !1,
1685
1698
  isDenied: !1,
1686
1699
  isDismissed: !0
@@ -1688,60 +1701,60 @@ const ke = (t) => {
1688
1701
  isConfirmed: !1,
1689
1702
  isDenied: !1,
1690
1703
  isDismissed: !1
1691
- }, t), Vs = (t, e, n) => {
1704
+ }, t), js = (t, e, n) => {
1692
1705
  var o;
1693
- const s = z(), i = an(e);
1694
- typeof n.willClose == "function" && n.willClose(e), (o = p.eventEmitter) === null || o === void 0 || o.emit("willClose", e), i && s ? js(t, e, s, !!n.returnFocus, n.didClose) : s && Cn(t, s, !!n.returnFocus, n.didClose);
1695
- }, js = (t, e, n, o, s) => {
1696
- p.swalCloseEventFinishedCallback = Cn.bind(null, t, n, o, s);
1706
+ const s = z(), i = ln(e);
1707
+ typeof n.willClose == "function" && n.willClose(e), (o = g.eventEmitter) === null || o === void 0 || o.emit("willClose", e), i && s ? Hs(t, e, s, !!n.returnFocus, n.didClose) : s && kn(t, s, !!n.returnFocus, n.didClose);
1708
+ }, Hs = (t, e, n, o, s) => {
1709
+ g.swalCloseEventFinishedCallback = kn.bind(null, t, n, o, s);
1697
1710
  const i = function(r) {
1698
1711
  if (r.target === e) {
1699
1712
  var l;
1700
- (l = p.swalCloseEventFinishedCallback) === null || l === void 0 || l.call(p), delete p.swalCloseEventFinishedCallback, e.removeEventListener("animationend", i), e.removeEventListener("transitionend", i);
1713
+ (l = g.swalCloseEventFinishedCallback) === null || l === void 0 || l.call(g), delete g.swalCloseEventFinishedCallback, e.removeEventListener("animationend", i), e.removeEventListener("transitionend", i);
1701
1714
  }
1702
1715
  };
1703
1716
  e.addEventListener("animationend", i), e.addEventListener("transitionend", i);
1704
- }, Rt = (t, e) => {
1717
+ }, Dt = (t, e) => {
1705
1718
  setTimeout(() => {
1706
1719
  var n;
1707
- typeof e == "function" && e.bind(t.params)(), (n = p.eventEmitter) === null || n === void 0 || n.emit("didClose"), t._destroy && t._destroy();
1720
+ typeof e == "function" && e.bind(t.params)(), (n = g.eventEmitter) === null || n === void 0 || n.emit("didClose"), t._destroy && t._destroy();
1708
1721
  });
1709
- }, ae = (t) => {
1722
+ }, le = (t) => {
1710
1723
  let e = T();
1711
1724
  if (e || new M(), e = T(), !e)
1712
1725
  return;
1713
- const n = ue();
1714
- qe() ? O(ce()) : Hs(e, t), R(n), e.setAttribute("data-loading", "true"), e.setAttribute("aria-busy", "true"), e.focus();
1715
- }, Hs = (t, e) => {
1716
- const n = ye(), o = ue();
1717
- !n || !o || (!e && U(K()) && (e = K()), R(n), e && (O(e), o.setAttribute("data-button-to-replace", e.className), n.insertBefore(o, e)), A([t, n], c.loading));
1726
+ const n = he();
1727
+ Ue() ? O(de()) : Fs(e, t), R(n), e.setAttribute("data-loading", "true"), e.setAttribute("aria-busy", "true"), e.focus();
1718
1728
  }, Fs = (t, e) => {
1719
- e.input === "select" || e.input === "radio" ? Zs(t, e) : ["text", "email", "number", "tel", "textarea"].some((n) => n === e.input) && (st(e.inputValue) || it(e.inputValue)) && (ae(K()), Xs(t, e));
1729
+ const n = ye(), o = he();
1730
+ !n || !o || (!e && q(K()) && (e = K()), R(n), e && (O(e), o.setAttribute("data-button-to-replace", e.className), n.insertBefore(o, e)), A([t, n], c.loading));
1720
1731
  }, Ks = (t, e) => {
1732
+ e.input === "select" || e.input === "radio" ? Xs(t, e) : ["text", "email", "number", "tel", "textarea"].some((n) => n === e.input) && (at(e.inputValue) || lt(e.inputValue)) && (le(K()), Js(t, e));
1733
+ }, Gs = (t, e) => {
1721
1734
  const n = t.getInput();
1722
1735
  if (!n)
1723
1736
  return null;
1724
1737
  switch (e.input) {
1725
1738
  case "checkbox":
1726
- return Gs(n);
1727
- case "radio":
1728
1739
  return Ws(n);
1729
- case "file":
1740
+ case "radio":
1730
1741
  return Ys(n);
1742
+ case "file":
1743
+ return Zs(n);
1731
1744
  default:
1732
1745
  return e.inputAutoTrim ? n.value.trim() : n.value;
1733
1746
  }
1734
- }, Gs = (t) => t.checked ? 1 : 0, Ws = (t) => t.checked ? t.value : null, Ys = (t) => t.files && t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, Zs = (t, e) => {
1747
+ }, Ws = (t) => t.checked ? 1 : 0, Ys = (t) => t.checked ? t.value : null, Zs = (t) => t.files && t.files.length ? t.getAttribute("multiple") !== null ? t.files : t.files[0] : null, Xs = (t, e) => {
1735
1748
  const n = T();
1736
1749
  if (!n)
1737
1750
  return;
1738
1751
  const o = (s) => {
1739
- e.input === "select" ? Js(n, Ne(s), e) : e.input === "radio" && Qs(n, Ne(s), e);
1752
+ e.input === "select" ? Qs(n, Ne(s), e) : e.input === "radio" && ei(n, Ne(s), e);
1740
1753
  };
1741
- st(e.inputOptions) || it(e.inputOptions) ? (ae(K()), me(e.inputOptions).then((s) => {
1754
+ at(e.inputOptions) || lt(e.inputOptions) ? (le(K()), me(e.inputOptions).then((s) => {
1742
1755
  t.hideLoading(), o(s);
1743
1756
  })) : typeof e.inputOptions == "object" ? o(e.inputOptions) : te(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`);
1744
- }, Xs = (t, e) => {
1757
+ }, Js = (t, e) => {
1745
1758
  const n = t.getInput();
1746
1759
  n && (O(n), me(e.inputValue).then((o) => {
1747
1760
  n.value = e.input === "number" ? `${parseFloat(o) || 0}` : `${o}`, R(n), n.focus(), t.hideLoading();
@@ -1749,13 +1762,13 @@ const ke = (t) => {
1749
1762
  te(`Error in inputValue promise: ${o}`), n.value = "", R(n), n.focus(), t.hideLoading();
1750
1763
  }));
1751
1764
  };
1752
- function Js(t, e, n) {
1765
+ function Qs(t, e, n) {
1753
1766
  const o = W(t, c.select);
1754
1767
  if (!o)
1755
1768
  return;
1756
1769
  const s = (i, r, l) => {
1757
1770
  const a = document.createElement("option");
1758
- a.value = l, j(a, r), a.selected = xn(l, n.inputValue), i.appendChild(a);
1771
+ a.value = l, j(a, r), a.selected = _n(l, n.inputValue), i.appendChild(a);
1759
1772
  };
1760
1773
  e.forEach((i) => {
1761
1774
  const r = i[0], l = i[1];
@@ -1766,13 +1779,13 @@ function Js(t, e, n) {
1766
1779
  s(o, l, r);
1767
1780
  }), o.focus();
1768
1781
  }
1769
- function Qs(t, e, n) {
1782
+ function ei(t, e, n) {
1770
1783
  const o = W(t, c.radio);
1771
1784
  if (!o)
1772
1785
  return;
1773
1786
  e.forEach((i) => {
1774
1787
  const r = i[0], l = i[1], a = document.createElement("input"), d = document.createElement("label");
1775
- a.type = "radio", a.name = c.radio, a.value = r, xn(r, n.inputValue) && (a.checked = !0);
1788
+ a.type = "radio", a.name = c.radio, a.value = r, _n(r, n.inputValue) && (a.checked = !0);
1776
1789
  const u = document.createElement("span");
1777
1790
  j(u, l), u.className = c.label, d.appendChild(a), d.appendChild(u), o.appendChild(d);
1778
1791
  });
@@ -1788,30 +1801,30 @@ const Ne = (t) => {
1788
1801
  let o = t[n];
1789
1802
  typeof o == "object" && (o = Ne(o)), e.push([n, o]);
1790
1803
  }), e;
1791
- }, xn = (t, e) => !!e && e !== null && e !== void 0 && e.toString() === t.toString(), ei = (t) => {
1804
+ }, _n = (t, e) => !!e && e !== null && e !== void 0 && e.toString() === t.toString(), ti = (t) => {
1792
1805
  const e = $.innerParams.get(t);
1793
- t.disableButtons(), e.input ? _n(t, "confirm") : mt(t, !0);
1794
- }, ti = (t) => {
1806
+ t.disableButtons(), e.input ? En(t, "confirm") : vt(t, !0);
1807
+ }, ni = (t) => {
1795
1808
  const e = $.innerParams.get(t);
1796
- t.disableButtons(), e.returnInputValueOnDeny ? _n(t, "deny") : wt(t, !1);
1797
- }, ni = (t, e) => {
1798
- t.disableButtons(), e(he.cancel);
1799
- }, _n = (t, e) => {
1809
+ t.disableButtons(), e.returnInputValueOnDeny ? En(t, "deny") : yt(t, !1);
1810
+ }, oi = (t, e) => {
1811
+ t.disableButtons(), e(fe.cancel);
1812
+ }, En = (t, e) => {
1800
1813
  const n = $.innerParams.get(t);
1801
1814
  if (!n.input) {
1802
- te(`The "input" parameter is needed to be set when using returnInputValueOn${ot(e)}`);
1815
+ te(`The "input" parameter is needed to be set when using returnInputValueOn${rt(e)}`);
1803
1816
  return;
1804
1817
  }
1805
- const o = t.getInput(), s = Ks(t, n);
1806
- n.inputValidator ? oi(t, s, e) : o && !o.checkValidity() ? (t.enableButtons(), t.showValidationMessage(n.validationMessage || o.validationMessage)) : e === "deny" ? wt(t, s) : mt(t, s);
1807
- }, oi = (t, e, n) => {
1818
+ const o = t.getInput(), s = Gs(t, n);
1819
+ n.inputValidator ? si(t, s, e) : o && !o.checkValidity() ? (t.enableButtons(), t.showValidationMessage(n.validationMessage || o.validationMessage)) : e === "deny" ? yt(t, s) : vt(t, s);
1820
+ }, si = (t, e, n) => {
1808
1821
  const o = $.innerParams.get(t);
1809
1822
  t.disableInput(), Promise.resolve().then(() => me(o.inputValidator(e, o.validationMessage))).then((i) => {
1810
- t.enableButtons(), t.enableInput(), i ? t.showValidationMessage(i) : n === "deny" ? wt(t, e) : mt(t, e);
1823
+ t.enableButtons(), t.enableInput(), i ? t.showValidationMessage(i) : n === "deny" ? yt(t, e) : vt(t, e);
1811
1824
  });
1812
- }, wt = (t, e) => {
1825
+ }, yt = (t, e) => {
1813
1826
  const n = $.innerParams.get(t);
1814
- n.showLoaderOnDeny && ae(ne()), n.preDeny ? (t.isAwaitingPromise = !0, Promise.resolve().then(() => me(n.preDeny(e, n.validationMessage))).then((s) => {
1827
+ n.showLoaderOnDeny && le(ne()), n.preDeny ? (t.isAwaitingPromise = !0, Promise.resolve().then(() => me(n.preDeny(e, n.validationMessage))).then((s) => {
1815
1828
  s === !1 ? (t.hideLoading(), ke(t)) : t.close(
1816
1829
  /** @type SweetAlertResult */
1817
1830
  {
@@ -1819,14 +1832,14 @@ const Ne = (t) => {
1819
1832
  value: typeof s > "u" ? e : s
1820
1833
  }
1821
1834
  );
1822
- }).catch((s) => En(t, s))) : t.close(
1835
+ }).catch((s) => An(t, s))) : t.close(
1823
1836
  /** @type SweetAlertResult */
1824
1837
  {
1825
1838
  isDenied: !0,
1826
1839
  value: e
1827
1840
  }
1828
1841
  );
1829
- }, Ot = (t, e) => {
1842
+ }, zt = (t, e) => {
1830
1843
  t.close(
1831
1844
  /** @type SweetAlertResult */
1832
1845
  {
@@ -1834,40 +1847,40 @@ const Ne = (t) => {
1834
1847
  value: e
1835
1848
  }
1836
1849
  );
1837
- }, En = (t, e) => {
1850
+ }, An = (t, e) => {
1838
1851
  t.rejectPromise(e);
1839
- }, mt = (t, e) => {
1852
+ }, vt = (t, e) => {
1840
1853
  const n = $.innerParams.get(t);
1841
- n.showLoaderOnConfirm && ae(), n.preConfirm ? (t.resetValidationMessage(), t.isAwaitingPromise = !0, Promise.resolve().then(() => me(n.preConfirm(e, n.validationMessage))).then((s) => {
1842
- U(ze()) || s === !1 ? (t.hideLoading(), ke(t)) : Ot(t, typeof s > "u" ? e : s);
1843
- }).catch((s) => En(t, s))) : Ot(t, e);
1854
+ n.showLoaderOnConfirm && le(), n.preConfirm ? (t.resetValidationMessage(), t.isAwaitingPromise = !0, Promise.resolve().then(() => me(n.preConfirm(e, n.validationMessage))).then((s) => {
1855
+ q(ze()) || s === !1 ? (t.hideLoading(), ke(t)) : zt(t, typeof s > "u" ? e : s);
1856
+ }).catch((s) => An(t, s))) : zt(t, e);
1844
1857
  };
1845
1858
  function Me() {
1846
1859
  const t = $.innerParams.get(this);
1847
1860
  if (!t)
1848
1861
  return;
1849
1862
  const e = $.domCache.get(this);
1850
- O(e.loader), qe() ? t.icon && R(ce()) : si(e), H([e.popup, e.actions], c.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
1863
+ O(e.loader), Ue() ? t.icon && R(de()) : ii(e), H([e.popup, e.actions], c.loading), e.popup.removeAttribute("aria-busy"), e.popup.removeAttribute("data-loading"), e.confirmButton.disabled = !1, e.denyButton.disabled = !1, e.cancelButton.disabled = !1;
1851
1864
  }
1852
- const si = (t) => {
1865
+ const ii = (t) => {
1853
1866
  const e = t.loader.getAttribute("data-button-to-replace"), n = e ? t.popup.getElementsByClassName(e) : [];
1854
1867
  n.length ? R(
1855
1868
  /** @type {HTMLElement} */
1856
1869
  n[0],
1857
1870
  "inline-block"
1858
- ) : Io() && O(t.actions);
1871
+ ) : Po() && O(t.actions);
1859
1872
  };
1860
- function An() {
1873
+ function Tn() {
1861
1874
  const t = $.innerParams.get(this), e = $.domCache.get(this);
1862
1875
  return e ? Ve(e.popup, t.input) : null;
1863
1876
  }
1864
- function Tn(t, e, n) {
1877
+ function Sn(t, e, n) {
1865
1878
  const o = $.domCache.get(t);
1866
1879
  e.forEach((s) => {
1867
1880
  o[s].disabled = n;
1868
1881
  });
1869
1882
  }
1870
- function Sn(t, e) {
1883
+ function Ln(t, e) {
1871
1884
  const n = T();
1872
1885
  if (!(!n || !t))
1873
1886
  if (t.type === "radio") {
@@ -1877,25 +1890,25 @@ function Sn(t, e) {
1877
1890
  } else
1878
1891
  t.disabled = e;
1879
1892
  }
1880
- function Ln() {
1881
- Tn(this, ["confirmButton", "denyButton", "cancelButton"], !1);
1882
- }
1883
1893
  function $n() {
1884
- Tn(this, ["confirmButton", "denyButton", "cancelButton"], !0);
1894
+ Sn(this, ["confirmButton", "denyButton", "cancelButton"], !1);
1885
1895
  }
1886
1896
  function In() {
1887
- Sn(this.getInput(), !1);
1897
+ Sn(this, ["confirmButton", "denyButton", "cancelButton"], !0);
1888
1898
  }
1889
1899
  function Pn() {
1890
- Sn(this.getInput(), !0);
1900
+ Ln(this.getInput(), !1);
1891
1901
  }
1892
- function Bn(t) {
1902
+ function Bn() {
1903
+ Ln(this.getInput(), !0);
1904
+ }
1905
+ function Nn(t) {
1893
1906
  const e = $.domCache.get(this), n = $.innerParams.get(this);
1894
1907
  j(e.validationMessage, t), e.validationMessage.className = c["validation-message"], n.customClass && n.customClass.validationMessage && A(e.validationMessage, n.customClass.validationMessage), R(e.validationMessage);
1895
1908
  const o = this.getInput();
1896
- o && (o.setAttribute("aria-invalid", "true"), o.setAttribute("aria-describedby", c["validation-message"]), sn(o), A(o, c.inputerror));
1909
+ o && (o.setAttribute("aria-invalid", "true"), o.setAttribute("aria-describedby", c["validation-message"]), rn(o), A(o, c.inputerror));
1897
1910
  }
1898
- function Nn() {
1911
+ function Mn() {
1899
1912
  const t = $.domCache.get(this);
1900
1913
  t.validationMessage && O(t.validationMessage);
1901
1914
  const e = this.getInput();
@@ -1994,28 +2007,28 @@ const Z = {
1994
2007
  didDestroy: void 0,
1995
2008
  scrollbarPadding: !0,
1996
2009
  topLayer: !1
1997
- }, ii = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "draggable", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "theme", "willClose"], ri = {
2010
+ }, ri = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "draggable", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "theme", "willClose"], ai = {
1998
2011
  allowEnterKey: void 0
1999
- }, ai = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], Mn = (t) => Object.prototype.hasOwnProperty.call(Z, t), Rn = (t) => ii.indexOf(t) !== -1, On = (t) => ri[t], li = (t) => {
2000
- Mn(t) || D(`Unknown parameter "${t}"`);
2001
- }, ci = (t) => {
2002
- ai.includes(t) && D(`The parameter "${t}" is incompatible with toasts`);
2012
+ }, li = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], Rn = (t) => Object.prototype.hasOwnProperty.call(Z, t), On = (t) => ri.indexOf(t) !== -1, Dn = (t) => ai[t], ci = (t) => {
2013
+ Rn(t) || D(`Unknown parameter "${t}"`);
2003
2014
  }, di = (t) => {
2004
- const e = On(t);
2005
- e && en(t, e);
2006
- }, Dn = (t) => {
2015
+ li.includes(t) && D(`The parameter "${t}" is incompatible with toasts`);
2016
+ }, ui = (t) => {
2017
+ const e = Dn(t);
2018
+ e && tn(t, e);
2019
+ }, zn = (t) => {
2007
2020
  t.backdrop === !1 && t.allowOutsideClick && D('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'), t.theme && !["light", "dark", "auto", "minimal", "borderless", "bootstrap-4", "bootstrap-4-light", "bootstrap-4-dark", "bootstrap-5", "bootstrap-5-light", "bootstrap-5-dark", "material-ui", "material-ui-light", "material-ui-dark", "embed-iframe", "bulma", "bulma-light", "bulma-dark"].includes(t.theme) && D(`Invalid theme "${t.theme}"`);
2008
2021
  for (const e in t)
2009
- li(e), t.toast && ci(e), di(e);
2022
+ ci(e), t.toast && di(e), ui(e);
2010
2023
  };
2011
- function zn(t) {
2024
+ function qn(t) {
2012
2025
  const e = z(), n = T(), o = $.innerParams.get(this);
2013
2026
  if (!n || G(n, o.hideClass.popup)) {
2014
2027
  D("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.");
2015
2028
  return;
2016
2029
  }
2017
- const s = ui(t), i = Object.assign({}, o, s);
2018
- Dn(i), e && (e.dataset.swal2Theme = i.theme), pn(this, i), $.innerParams.set(this, i), Object.defineProperties(this, {
2030
+ const s = hi(t), i = Object.assign({}, o, s);
2031
+ zn(i), e && (e.dataset.swal2Theme = i.theme), wn(this, i), $.innerParams.set(this, i), Object.defineProperties(this, {
2019
2032
  params: {
2020
2033
  value: Object.assign({}, this.params, t),
2021
2034
  writable: !1,
@@ -2023,10 +2036,10 @@ function zn(t) {
2023
2036
  }
2024
2037
  });
2025
2038
  }
2026
- const ui = (t) => {
2039
+ const hi = (t) => {
2027
2040
  const e = {};
2028
2041
  return Object.keys(t).forEach((n) => {
2029
- if (Rn(n)) {
2042
+ if (On(n)) {
2030
2043
  const o = (
2031
2044
  /** @type {Record<string, any>} */
2032
2045
  t
@@ -2040,81 +2053,81 @@ function Un() {
2040
2053
  var t;
2041
2054
  const e = $.domCache.get(this), n = $.innerParams.get(this);
2042
2055
  if (!n) {
2043
- qn(this);
2056
+ Vn(this);
2044
2057
  return;
2045
2058
  }
2046
- e.popup && p.swalCloseEventFinishedCallback && (p.swalCloseEventFinishedCallback(), delete p.swalCloseEventFinishedCallback), typeof n.didDestroy == "function" && n.didDestroy(), (t = p.eventEmitter) === null || t === void 0 || t.emit("didDestroy"), hi(this);
2059
+ e.popup && g.swalCloseEventFinishedCallback && (g.swalCloseEventFinishedCallback(), delete g.swalCloseEventFinishedCallback), typeof n.didDestroy == "function" && n.didDestroy(), (t = g.eventEmitter) === null || t === void 0 || t.emit("didDestroy"), fi(this);
2047
2060
  }
2048
- const hi = (t) => {
2049
- qn(t), delete t.params, delete p.keydownHandler, delete p.keydownTarget, delete p.currentInstance;
2050
- }, qn = (t) => {
2051
- t.isAwaitingPromise ? (We($, t), t.isAwaitingPromise = !0) : (We(re, t), We($, t), delete t.isAwaitingPromise, delete t.disableButtons, delete t.enableButtons, delete t.getInput, delete t.disableInput, delete t.enableInput, delete t.hideLoading, delete t.disableLoading, delete t.showValidationMessage, delete t.resetValidationMessage, delete t.close, delete t.closePopup, delete t.closeModal, delete t.closeToast, delete t.rejectPromise, delete t.update, delete t._destroy);
2052
- }, We = (t, e) => {
2061
+ const fi = (t) => {
2062
+ Vn(t), delete t.params, delete g.keydownHandler, delete g.keydownTarget, delete g.currentInstance;
2063
+ }, Vn = (t) => {
2064
+ t.isAwaitingPromise ? (Ye($, t), t.isAwaitingPromise = !0) : (Ye(ae, t), Ye($, t), delete t.isAwaitingPromise, delete t.disableButtons, delete t.enableButtons, delete t.getInput, delete t.disableInput, delete t.enableInput, delete t.hideLoading, delete t.disableLoading, delete t.showValidationMessage, delete t.resetValidationMessage, delete t.close, delete t.closePopup, delete t.closeModal, delete t.closeToast, delete t.rejectPromise, delete t.update, delete t._destroy);
2065
+ }, Ye = (t, e) => {
2053
2066
  for (const n in t)
2054
2067
  t[n].delete(e);
2055
2068
  };
2056
- var fi = /* @__PURE__ */ Object.freeze({
2069
+ var pi = /* @__PURE__ */ Object.freeze({
2057
2070
  __proto__: null,
2058
2071
  _destroy: Un,
2059
2072
  close: Y,
2060
2073
  closeModal: Y,
2061
2074
  closePopup: Y,
2062
2075
  closeToast: Y,
2063
- disableButtons: $n,
2064
- disableInput: Pn,
2076
+ disableButtons: In,
2077
+ disableInput: Bn,
2065
2078
  disableLoading: Me,
2066
- enableButtons: Ln,
2067
- enableInput: In,
2068
- getInput: An,
2079
+ enableButtons: $n,
2080
+ enableInput: Pn,
2081
+ getInput: Tn,
2069
2082
  handleAwaitingPromise: ke,
2070
2083
  hideLoading: Me,
2071
- rejectPromise: kn,
2072
- resetValidationMessage: Nn,
2073
- showValidationMessage: Bn,
2074
- update: zn
2084
+ rejectPromise: xn,
2085
+ resetValidationMessage: Mn,
2086
+ showValidationMessage: Nn,
2087
+ update: qn
2075
2088
  });
2076
2089
  const gi = (t, e, n) => {
2077
- t.toast ? pi(t, e, n) : (mi(e), bi(e), yi(t, e, n));
2078
- }, pi = (t, e, n) => {
2090
+ t.toast ? wi(t, e, n) : (bi(e), yi(e), vi(t, e, n));
2091
+ }, wi = (t, e, n) => {
2079
2092
  e.popup.onclick = () => {
2080
- t && (wi(t) || t.timer || t.input) || n(he.close);
2093
+ t && (mi(t) || t.timer || t.input) || n(fe.close);
2081
2094
  };
2082
- }, wi = (t) => !!(t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton);
2095
+ }, mi = (t) => !!(t.showConfirmButton || t.showDenyButton || t.showCancelButton || t.showCloseButton);
2083
2096
  let Re = !1;
2084
- const mi = (t) => {
2097
+ const bi = (t) => {
2085
2098
  t.popup.onmousedown = () => {
2086
2099
  t.container.onmouseup = function(e) {
2087
2100
  t.container.onmouseup = () => {
2088
2101
  }, e.target === t.container && (Re = !0);
2089
2102
  };
2090
2103
  };
2091
- }, bi = (t) => {
2104
+ }, yi = (t) => {
2092
2105
  t.container.onmousedown = (e) => {
2093
2106
  e.target === t.container && e.preventDefault(), t.popup.onmouseup = function(n) {
2094
2107
  t.popup.onmouseup = () => {
2095
2108
  }, (n.target === t.popup || n.target instanceof HTMLElement && t.popup.contains(n.target)) && (Re = !0);
2096
2109
  };
2097
2110
  };
2098
- }, yi = (t, e, n) => {
2111
+ }, vi = (t, e, n) => {
2099
2112
  e.container.onclick = (o) => {
2100
2113
  if (Re) {
2101
2114
  Re = !1;
2102
2115
  return;
2103
2116
  }
2104
- o.target === e.container && De(t.allowOutsideClick) && n(he.backdrop);
2117
+ o.target === e.container && De(t.allowOutsideClick) && n(fe.backdrop);
2105
2118
  };
2106
- }, vi = (t) => typeof t == "object" && t !== null && "jquery" in t, Dt = (t) => t instanceof Element || vi(t), Ci = (t) => {
2119
+ }, Ci = (t) => typeof t == "object" && t !== null && "jquery" in t, qt = (t) => t instanceof Element || Ci(t), ki = (t) => {
2107
2120
  const e = {};
2108
- return typeof t[0] == "object" && !Dt(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
2121
+ return typeof t[0] == "object" && !qt(t[0]) ? Object.assign(e, t[0]) : ["title", "html", "icon"].forEach((n, o) => {
2109
2122
  const s = t[o];
2110
- typeof s == "string" || Dt(s) ? e[n] = s : s !== void 0 && te(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`);
2123
+ typeof s == "string" || qt(s) ? e[n] = s : s !== void 0 && te(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof s}`);
2111
2124
  }), /** @type {SweetAlertOptions} */
2112
2125
  e;
2113
2126
  };
2114
- function ki(...t) {
2127
+ function xi(...t) {
2115
2128
  return new this(...t);
2116
2129
  }
2117
- function xi(t) {
2130
+ function _i(t) {
2118
2131
  class e extends this {
2119
2132
  /**
2120
2133
  * @param {any} params
@@ -2126,44 +2139,44 @@ function xi(t) {
2126
2139
  }
2127
2140
  return e;
2128
2141
  }
2129
- const _i = () => p.timeout && p.timeout.getTimerLeft(), Vn = () => {
2130
- if (p.timeout)
2131
- return Bo(), p.timeout.stop();
2132
- }, jn = () => {
2133
- if (p.timeout) {
2134
- const t = p.timeout.start();
2135
- return ht(t), t;
2136
- }
2137
- }, Ei = () => {
2138
- const t = p.timeout;
2139
- return t && (t.running ? Vn() : jn());
2140
- }, Ai = (t) => {
2141
- if (p.timeout) {
2142
- const e = p.timeout.increase(t);
2143
- return ht(e, !0), e;
2144
- }
2145
- }, Ti = () => !!(p.timeout && p.timeout.isRunning());
2146
- let zt = !1;
2147
- const Qe = {};
2148
- function Si(t = "data-swal-template") {
2149
- Qe[t] = this, zt || (document.body.addEventListener("click", Li), zt = !0);
2142
+ const Ei = () => g.timeout && g.timeout.getTimerLeft(), jn = () => {
2143
+ if (g.timeout)
2144
+ return No(), g.timeout.stop();
2145
+ }, Hn = () => {
2146
+ if (g.timeout) {
2147
+ const t = g.timeout.start();
2148
+ return gt(t), t;
2149
+ }
2150
+ }, Ai = () => {
2151
+ const t = g.timeout;
2152
+ return t && (t.running ? jn() : Hn());
2153
+ }, Ti = (t) => {
2154
+ if (g.timeout) {
2155
+ const e = g.timeout.increase(t);
2156
+ return gt(e, !0), e;
2157
+ }
2158
+ }, Si = () => !!(g.timeout && g.timeout.isRunning());
2159
+ let Ut = !1;
2160
+ const tt = {};
2161
+ function Li(t = "data-swal-template") {
2162
+ tt[t] = this, Ut || (document.body.addEventListener("click", $i), Ut = !0);
2150
2163
  }
2151
- const Li = (t) => {
2164
+ const $i = (t) => {
2152
2165
  for (let e = (
2153
2166
  /** @type {any} */
2154
2167
  t.target
2155
2168
  ); e && e !== document; e = e.parentNode)
2156
- for (const n in Qe) {
2169
+ for (const n in tt) {
2157
2170
  const o = e.getAttribute && e.getAttribute(n);
2158
2171
  if (o) {
2159
- Qe[n].fire({
2172
+ tt[n].fire({
2160
2173
  template: o
2161
2174
  });
2162
2175
  return;
2163
2176
  }
2164
2177
  }
2165
2178
  };
2166
- class $i {
2179
+ class Ii {
2167
2180
  constructor() {
2168
2181
  this.events = {};
2169
2182
  }
@@ -2228,66 +2241,66 @@ class $i {
2228
2241
  this.events = {};
2229
2242
  }
2230
2243
  }
2231
- p.eventEmitter = new $i();
2232
- const Ii = (t, e) => {
2233
- p.eventEmitter && p.eventEmitter.on(t, e);
2234
- }, Pi = (t, e) => {
2235
- p.eventEmitter && p.eventEmitter.once(t, e);
2244
+ g.eventEmitter = new Ii();
2245
+ const Pi = (t, e) => {
2246
+ g.eventEmitter && g.eventEmitter.on(t, e);
2236
2247
  }, Bi = (t, e) => {
2237
- if (p.eventEmitter) {
2248
+ g.eventEmitter && g.eventEmitter.once(t, e);
2249
+ }, Ni = (t, e) => {
2250
+ if (g.eventEmitter) {
2238
2251
  if (!t) {
2239
- p.eventEmitter.reset();
2252
+ g.eventEmitter.reset();
2240
2253
  return;
2241
2254
  }
2242
- e ? p.eventEmitter.removeListener(t, e) : p.eventEmitter.removeAllListeners(t);
2255
+ e ? g.eventEmitter.removeListener(t, e) : g.eventEmitter.removeAllListeners(t);
2243
2256
  }
2244
2257
  };
2245
- var Ni = /* @__PURE__ */ Object.freeze({
2258
+ var Mi = /* @__PURE__ */ Object.freeze({
2246
2259
  __proto__: null,
2247
- argsToParams: Ci,
2248
- bindClickHandler: Si,
2249
- clickCancel: Cs,
2250
- clickConfirm: wn,
2251
- clickDeny: vs,
2252
- enableLoading: ae,
2253
- fire: ki,
2260
+ argsToParams: ki,
2261
+ bindClickHandler: Li,
2262
+ clickCancel: ks,
2263
+ clickConfirm: mn,
2264
+ clickDeny: Cs,
2265
+ enableLoading: le,
2266
+ fire: xi,
2254
2267
  getActions: ye,
2255
- getCancelButton: de,
2256
- getCloseButton: lt,
2268
+ getCancelButton: ue,
2269
+ getCloseButton: ut,
2257
2270
  getConfirmButton: K,
2258
2271
  getContainer: z,
2259
2272
  getDenyButton: ne,
2260
- getFocusableElements: ct,
2261
- getFooter: on,
2262
- getHtmlContainer: rt,
2263
- getIcon: ce,
2264
- getIconContent: Ao,
2265
- getImage: nn,
2266
- getInputLabel: To,
2267
- getLoader: ue,
2273
+ getFocusableElements: ht,
2274
+ getFooter: sn,
2275
+ getHtmlContainer: ct,
2276
+ getIcon: de,
2277
+ getIconContent: To,
2278
+ getImage: on,
2279
+ getInputLabel: So,
2280
+ getLoader: he,
2268
2281
  getPopup: T,
2269
- getProgressSteps: at,
2270
- getTimerLeft: _i,
2271
- getTimerProgressBar: Ue,
2272
- getTitle: tn,
2282
+ getProgressSteps: dt,
2283
+ getTimerLeft: Ei,
2284
+ getTimerProgressBar: qe,
2285
+ getTitle: nn,
2273
2286
  getValidationMessage: ze,
2274
- increaseTimer: Ai,
2275
- isDeprecatedParameter: On,
2276
- isLoading: Lo,
2277
- isTimerRunning: Ti,
2278
- isUpdatableParameter: Rn,
2279
- isValidParameter: Mn,
2280
- isVisible: ys,
2281
- mixin: xi,
2282
- off: Bi,
2283
- on: Ii,
2284
- once: Pi,
2285
- resumeTimer: jn,
2286
- showLoading: ae,
2287
- stopTimer: Vn,
2288
- toggleTimer: Ei
2287
+ increaseTimer: Ti,
2288
+ isDeprecatedParameter: Dn,
2289
+ isLoading: $o,
2290
+ isTimerRunning: Si,
2291
+ isUpdatableParameter: On,
2292
+ isValidParameter: Rn,
2293
+ isVisible: vs,
2294
+ mixin: _i,
2295
+ off: Ni,
2296
+ on: Pi,
2297
+ once: Bi,
2298
+ resumeTimer: Hn,
2299
+ showLoading: le,
2300
+ stopTimer: jn,
2301
+ toggleTimer: Ai
2289
2302
  });
2290
- class Mi {
2303
+ class Ri {
2291
2304
  /**
2292
2305
  * @param {() => void} callback
2293
2306
  * @param {number} delay
@@ -2328,7 +2341,7 @@ class Mi {
2328
2341
  return this.running;
2329
2342
  }
2330
2343
  }
2331
- const Hn = ["swal-title", "swal-html", "swal-footer"], Ri = (t) => {
2344
+ const Fn = ["swal-title", "swal-html", "swal-footer"], Oi = (t) => {
2332
2345
  const e = typeof t.template == "string" ? (
2333
2346
  /** @type {HTMLTemplateElement} */
2334
2347
  document.querySelector(t.template)
@@ -2336,8 +2349,8 @@ const Hn = ["swal-title", "swal-html", "swal-footer"], Ri = (t) => {
2336
2349
  if (!e)
2337
2350
  return {};
2338
2351
  const n = e.content;
2339
- return Hi(n), Object.assign(Oi(n), Di(n), zi(n), Ui(n), qi(n), Vi(n), ji(n, Hn));
2340
- }, Oi = (t) => {
2352
+ return Fi(n), Object.assign(Di(n), zi(n), qi(n), Ui(n), Vi(n), ji(n), Hi(n, Fn));
2353
+ }, Di = (t) => {
2341
2354
  const e = {};
2342
2355
  return Array.from(t.querySelectorAll("swal-param")).forEach((o) => {
2343
2356
  ee(o, ["name", "value"]);
@@ -2353,7 +2366,7 @@ const Hn = ["swal-title", "swal-html", "swal-footer"], Ri = (t) => {
2353
2366
  s
2354
2367
  ] == "object" ? e[s] = JSON.parse(i) : e[s] = i);
2355
2368
  }), e;
2356
- }, Di = (t) => {
2369
+ }, zi = (t) => {
2357
2370
  const e = {};
2358
2371
  return Array.from(t.querySelectorAll("swal-function-param")).forEach((o) => {
2359
2372
  const s = (
@@ -2362,13 +2375,13 @@ const Hn = ["swal-title", "swal-html", "swal-footer"], Ri = (t) => {
2362
2375
  ), i = o.getAttribute("value");
2363
2376
  !s || !i || (e[s] = new Function(`return ${i}`)());
2364
2377
  }), e;
2365
- }, zi = (t) => {
2378
+ }, qi = (t) => {
2366
2379
  const e = {};
2367
2380
  return Array.from(t.querySelectorAll("swal-button")).forEach((o) => {
2368
2381
  ee(o, ["type", "color", "aria-label"]);
2369
2382
  const s = o.getAttribute("type");
2370
2383
  if (!(!s || !["confirm", "cancel", "deny"].includes(s))) {
2371
- if (e[`${s}ButtonText`] = o.innerHTML, e[`show${ot(s)}Button`] = !0, o.hasAttribute("color")) {
2384
+ if (e[`${s}ButtonText`] = o.innerHTML, e[`show${rt(s)}Button`] = !0, o.hasAttribute("color")) {
2372
2385
  const i = o.getAttribute("color");
2373
2386
  i !== null && (e[`${s}ButtonColor`] = i);
2374
2387
  }
@@ -2381,10 +2394,10 @@ const Hn = ["swal-title", "swal-html", "swal-footer"], Ri = (t) => {
2381
2394
  }, Ui = (t) => {
2382
2395
  const e = {}, n = t.querySelector("swal-image");
2383
2396
  return n && (ee(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (e.imageUrl = n.getAttribute("src") || void 0), n.hasAttribute("width") && (e.imageWidth = n.getAttribute("width") || void 0), n.hasAttribute("height") && (e.imageHeight = n.getAttribute("height") || void 0), n.hasAttribute("alt") && (e.imageAlt = n.getAttribute("alt") || void 0)), e;
2384
- }, qi = (t) => {
2397
+ }, Vi = (t) => {
2385
2398
  const e = {}, n = t.querySelector("swal-icon");
2386
2399
  return n && (ee(n, ["type", "color"]), n.hasAttribute("type") && (e.icon = n.getAttribute("type")), n.hasAttribute("color") && (e.iconColor = n.getAttribute("color")), e.iconHtml = n.innerHTML), e;
2387
- }, Vi = (t) => {
2400
+ }, ji = (t) => {
2388
2401
  const e = {}, n = t.querySelector("swal-input");
2389
2402
  n && (ee(n, ["type", "label", "placeholder", "value"]), e.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (e.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (e.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (e.inputValue = n.getAttribute("value")));
2390
2403
  const o = Array.from(t.querySelectorAll("swal-input-option"));
@@ -2396,15 +2409,15 @@ const Hn = ["swal-title", "swal-html", "swal-footer"], Ri = (t) => {
2396
2409
  const r = s.innerHTML;
2397
2410
  e.inputOptions[i] = r;
2398
2411
  })), e;
2399
- }, ji = (t, e) => {
2412
+ }, Hi = (t, e) => {
2400
2413
  const n = {};
2401
2414
  for (const o in e) {
2402
2415
  const s = e[o], i = t.querySelector(s);
2403
2416
  i && (ee(i, []), n[s.replace(/^swal-/, "")] = i.innerHTML.trim());
2404
2417
  }
2405
2418
  return n;
2406
- }, Hi = (t) => {
2407
- const e = Hn.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
2419
+ }, Fi = (t) => {
2420
+ const e = Fn.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
2408
2421
  Array.from(t.children).forEach((n) => {
2409
2422
  const o = n.tagName.toLowerCase();
2410
2423
  e.includes(o) || D(`Unrecognized element <${o}>`);
@@ -2413,40 +2426,40 @@ const Hn = ["swal-title", "swal-html", "swal-footer"], Ri = (t) => {
2413
2426
  Array.from(t.attributes).forEach((n) => {
2414
2427
  e.indexOf(n.name) === -1 && D([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`, `${e.length ? `Allowed attributes are: ${e.join(", ")}` : "To set the value, use HTML within the element."}`]);
2415
2428
  });
2416
- }, Fn = 10, Fi = (t) => {
2429
+ }, Kn = 10, Ki = (t) => {
2417
2430
  var e, n;
2418
2431
  const o = z(), s = T();
2419
2432
  if (!o || !s)
2420
2433
  return;
2421
- typeof t.willOpen == "function" && t.willOpen(s), (e = p.eventEmitter) === null || e === void 0 || e.emit("willOpen", s);
2434
+ typeof t.willOpen == "function" && t.willOpen(s), (e = g.eventEmitter) === null || e === void 0 || e.emit("willOpen", s);
2422
2435
  const r = window.getComputedStyle(document.body).overflowY;
2423
- if (Wi(o, s, t), setTimeout(() => {
2424
- Ki(o, s);
2425
- }, Fn), dt() && (Gi(o, t.scrollbarPadding !== void 0 ? t.scrollbarPadding : !1, r), Ls()), !qe() && !p.previousActiveElement && (p.previousActiveElement = document.activeElement), typeof t.didOpen == "function") {
2436
+ if (Yi(o, s, t), setTimeout(() => {
2437
+ Gi(o, s);
2438
+ }, Kn), ft() && (Wi(o, t.scrollbarPadding !== void 0 ? t.scrollbarPadding : !1, r), $s()), !Ue() && !g.previousActiveElement && (g.previousActiveElement = document.activeElement), typeof t.didOpen == "function") {
2426
2439
  const l = t.didOpen;
2427
2440
  setTimeout(() => l(s));
2428
2441
  }
2429
- (n = p.eventEmitter) === null || n === void 0 || n.emit("didOpen", s);
2442
+ (n = g.eventEmitter) === null || n === void 0 || n.emit("didOpen", s);
2430
2443
  }, Oe = (t) => {
2431
2444
  const e = T();
2432
2445
  if (!e || t.target !== e)
2433
2446
  return;
2434
2447
  const n = z();
2435
2448
  n && (e.removeEventListener("animationend", Oe), e.removeEventListener("transitionend", Oe), n.style.overflowY = "auto", H(n, c["no-transition"]));
2436
- }, Ki = (t, e) => {
2437
- an(e) ? (t.style.overflowY = "hidden", e.addEventListener("animationend", Oe), e.addEventListener("transitionend", Oe)) : t.style.overflowY = "auto";
2438
- }, Gi = (t, e, n) => {
2439
- $s(), e && n !== "hidden" && Os(n), setTimeout(() => {
2449
+ }, Gi = (t, e) => {
2450
+ ln(e) ? (t.style.overflowY = "hidden", e.addEventListener("animationend", Oe), e.addEventListener("transitionend", Oe)) : t.style.overflowY = "auto";
2451
+ }, Wi = (t, e, n) => {
2452
+ Is(), e && n !== "hidden" && Ds(n), setTimeout(() => {
2440
2453
  t.scrollTop = 0;
2441
2454
  });
2442
- }, Wi = (t, e, n) => {
2455
+ }, Yi = (t, e, n) => {
2443
2456
  var o;
2444
2457
  (o = n.showClass) !== null && o !== void 0 && o.backdrop && A(t, n.showClass.backdrop), n.animation ? (e.style.setProperty("opacity", "0", "important"), R(e, "grid"), setTimeout(() => {
2445
2458
  var s;
2446
2459
  (s = n.showClass) !== null && s !== void 0 && s.popup && A(e, n.showClass.popup), e.style.removeProperty("opacity");
2447
- }, Fn)) : R(e, "grid"), A([document.documentElement, document.body], c.shown), n.heightAuto && n.backdrop && !n.toast && A([document.documentElement, document.body], c["height-auto"]);
2460
+ }, Kn)) : R(e, "grid"), A([document.documentElement, document.body], c.shown), n.heightAuto && n.backdrop && !n.toast && A([document.documentElement, document.body], c["height-auto"]);
2448
2461
  };
2449
- var Ut = {
2462
+ var Vt = {
2450
2463
  /**
2451
2464
  * @param {string} string
2452
2465
  * @param {string} [validationMessage]
@@ -2460,17 +2473,17 @@ var Ut = {
2460
2473
  */
2461
2474
  url: (t, e) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t) ? Promise.resolve() : Promise.resolve(e || "Invalid URL")
2462
2475
  };
2463
- function Yi(t) {
2464
- t.inputValidator || (t.input === "email" && (t.inputValidator = Ut.email), t.input === "url" && (t.inputValidator = Ut.url));
2465
- }
2466
2476
  function Zi(t) {
2467
- (!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (D('Target parameter is not valid, defaulting to "body"'), t.target = "body");
2477
+ t.inputValidator || (t.input === "email" && (t.inputValidator = Vt.email), t.input === "url" && (t.inputValidator = Vt.url));
2468
2478
  }
2469
2479
  function Xi(t) {
2470
- Yi(t), t.showLoaderOnConfirm && !t.preConfirm && D(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
2480
+ (!t.target || typeof t.target == "string" && !document.querySelector(t.target) || typeof t.target != "string" && !t.target.appendChild) && (D('Target parameter is not valid, defaulting to "body"'), t.target = "body");
2481
+ }
2482
+ function Ji(t) {
2483
+ Zi(t), t.showLoaderOnConfirm && !t.preConfirm && D(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
2471
2484
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
2472
- https://sweetalert2.github.io/#ajax-request`), Zi(t), typeof t.title == "string" && (t.title = t.title.split(`
2473
- `).join("<br />")), qo(t);
2485
+ https://sweetalert2.github.io/#ajax-request`), Xi(t), typeof t.title == "string" && (t.title = t.title.split(`
2486
+ `).join("<br />")), Vo(t);
2474
2487
  }
2475
2488
  let F;
2476
2489
  var Te = /* @__PURE__ */ new WeakMap();
@@ -2480,7 +2493,7 @@ class B {
2480
2493
  * @this {SweetAlert}
2481
2494
  */
2482
2495
  constructor(...e) {
2483
- if (bo(
2496
+ if (yo(
2484
2497
  this,
2485
2498
  Te,
2486
2499
  /** @type {Promise<SweetAlertResult>} */
@@ -2493,42 +2506,42 @@ class B {
2493
2506
  return;
2494
2507
  F = this;
2495
2508
  const n = Object.freeze(this.constructor.argsToParams(e));
2496
- this.params = n, this.isAwaitingPromise = !1, yo(Te, this, this._main(F.params));
2509
+ this.params = n, this.isAwaitingPromise = !1, vo(Te, this, this._main(F.params));
2497
2510
  }
2498
2511
  /**
2499
2512
  * @param {any} userParams
2500
2513
  * @param {any} mixinParams
2501
2514
  */
2502
2515
  _main(e, n = {}) {
2503
- if (Dn(Object.assign({}, n, e)), p.currentInstance) {
2504
- const i = re.swalPromiseResolve.get(p.currentInstance), {
2516
+ if (zn(Object.assign({}, n, e)), g.currentInstance) {
2517
+ const i = ae.swalPromiseResolve.get(g.currentInstance), {
2505
2518
  isAwaitingPromise: r
2506
- } = p.currentInstance;
2507
- p.currentInstance._destroy(), r || i({
2519
+ } = g.currentInstance;
2520
+ g.currentInstance._destroy(), r || i({
2508
2521
  isDismissed: !0
2509
- }), dt() && yn();
2522
+ }), ft() && vn();
2510
2523
  }
2511
- p.currentInstance = F;
2512
- const o = Qi(e, n);
2513
- Xi(o), Object.freeze(o), p.timeout && (p.timeout.stop(), delete p.timeout), clearTimeout(p.restoreFocusTimeout);
2514
- const s = er(F);
2515
- return pn(F, o), $.innerParams.set(F, o), Ji(F, s, o);
2524
+ g.currentInstance = F;
2525
+ const o = er(e, n);
2526
+ Ji(o), Object.freeze(o), g.timeout && (g.timeout.stop(), delete g.timeout), clearTimeout(g.restoreFocusTimeout);
2527
+ const s = tr(F);
2528
+ return wn(F, o), $.innerParams.set(F, o), Qi(F, s, o);
2516
2529
  }
2517
2530
  // `catch` cannot be the name of a module export, so we define our thenable methods here instead
2518
2531
  /**
2519
2532
  * @param {any} onFulfilled
2520
2533
  */
2521
2534
  then(e) {
2522
- return $t(Te, this).then(e);
2535
+ return Pt(Te, this).then(e);
2523
2536
  }
2524
2537
  /**
2525
2538
  * @param {any} onFinally
2526
2539
  */
2527
2540
  finally(e) {
2528
- return $t(Te, this).finally(e);
2541
+ return Pt(Te, this).finally(e);
2529
2542
  }
2530
2543
  }
2531
- const Ji = (t, e, n) => new Promise((o, s) => {
2544
+ const Qi = (t, e, n) => new Promise((o, s) => {
2532
2545
  const i = (r) => {
2533
2546
  t.close({
2534
2547
  isDismissed: !0,
@@ -2537,23 +2550,23 @@ const Ji = (t, e, n) => new Promise((o, s) => {
2537
2550
  isDenied: !1
2538
2551
  });
2539
2552
  };
2540
- re.swalPromiseResolve.set(t, o), re.swalPromiseReject.set(t, s), e.confirmButton.onclick = () => {
2541
- ei(t);
2542
- }, e.denyButton.onclick = () => {
2553
+ ae.swalPromiseResolve.set(t, o), ae.swalPromiseReject.set(t, s), e.confirmButton.onclick = () => {
2543
2554
  ti(t);
2555
+ }, e.denyButton.onclick = () => {
2556
+ ni(t);
2544
2557
  }, e.cancelButton.onclick = () => {
2545
- ni(t, i);
2558
+ oi(t, i);
2546
2559
  }, e.closeButton.onclick = () => {
2547
- i(he.close);
2548
- }, gi(n, e, i), ks(p, n, i), Fs(t, n), Fi(n), tr(p, n, i), nr(e, n), setTimeout(() => {
2560
+ i(fe.close);
2561
+ }, gi(n, e, i), xs(g, n, i), Ks(t, n), Ki(n), nr(g, n, i), or(e, n), setTimeout(() => {
2549
2562
  e.container.scrollTop = 0;
2550
2563
  });
2551
- }), Qi = (t, e) => {
2552
- const n = Ri(t), o = Object.assign({}, Z, e, n, t);
2564
+ }), er = (t, e) => {
2565
+ const n = Oi(t), o = Object.assign({}, Z, e, n, t);
2553
2566
  return o.showClass = Object.assign({}, Z.showClass, o.showClass), o.hideClass = Object.assign({}, Z.hideClass, o.hideClass), o.animation === !1 && (o.showClass = {
2554
2567
  backdrop: "swal2-noanimation"
2555
2568
  }, o.hideClass = {}), o;
2556
- }, er = (t) => {
2569
+ }, tr = (t) => {
2557
2570
  const e = (
2558
2571
  /** @type {DomCache} */
2559
2572
  {
@@ -2579,15 +2592,15 @@ const Ji = (t, e, n) => new Promise((o, s) => {
2579
2592
  ),
2580
2593
  cancelButton: (
2581
2594
  /** @type {HTMLElement} */
2582
- de()
2595
+ ue()
2583
2596
  ),
2584
2597
  loader: (
2585
2598
  /** @type {HTMLElement} */
2586
- ue()
2599
+ he()
2587
2600
  ),
2588
2601
  closeButton: (
2589
2602
  /** @type {HTMLElement} */
2590
- lt()
2603
+ ut()
2591
2604
  ),
2592
2605
  validationMessage: (
2593
2606
  /** @type {HTMLElement} */
@@ -2595,62 +2608,62 @@ const Ji = (t, e, n) => new Promise((o, s) => {
2595
2608
  ),
2596
2609
  progressSteps: (
2597
2610
  /** @type {HTMLElement} */
2598
- at()
2611
+ dt()
2599
2612
  )
2600
2613
  }
2601
2614
  );
2602
2615
  return $.domCache.set(t, e), e;
2603
- }, tr = (t, e, n) => {
2604
- const o = Ue();
2605
- O(o), e.timer && (t.timeout = new Mi(() => {
2616
+ }, nr = (t, e, n) => {
2617
+ const o = qe();
2618
+ O(o), e.timer && (t.timeout = new Ri(() => {
2606
2619
  n("timer"), delete t.timeout;
2607
- }, e.timer), e.timerProgressBar && o && (R(o), q(o, e, "timerProgressBar"), setTimeout(() => {
2608
- t.timeout && t.timeout.running && ht(
2620
+ }, e.timer), e.timerProgressBar && o && (R(o), U(o, e, "timerProgressBar"), setTimeout(() => {
2621
+ t.timeout && t.timeout.running && gt(
2609
2622
  /** @type {number} */
2610
2623
  e.timer
2611
2624
  );
2612
2625
  })));
2613
- }, nr = (t, e) => {
2626
+ }, or = (t, e) => {
2614
2627
  if (!e.toast) {
2615
2628
  if (!De(e.allowEnterKey)) {
2616
- en("allowEnterKey"), ir();
2629
+ tn("allowEnterKey"), rr();
2617
2630
  return;
2618
2631
  }
2619
- or(t) || sr(t, e) || Je(-1, 1);
2632
+ sr(t) || ir(t, e) || et(-1, 1);
2620
2633
  }
2621
- }, or = (t) => {
2634
+ }, sr = (t) => {
2622
2635
  const e = Array.from(t.popup.querySelectorAll("[autofocus]"));
2623
2636
  for (const n of e)
2624
- if (n instanceof HTMLElement && U(n))
2637
+ if (n instanceof HTMLElement && q(n))
2625
2638
  return n.focus(), !0;
2626
2639
  return !1;
2627
- }, sr = (t, e) => e.focusDeny && U(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && U(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && U(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, ir = () => {
2640
+ }, ir = (t, e) => e.focusDeny && q(t.denyButton) ? (t.denyButton.focus(), !0) : e.focusCancel && q(t.cancelButton) ? (t.cancelButton.focus(), !0) : e.focusConfirm && q(t.confirmButton) ? (t.confirmButton.focus(), !0) : !1, rr = () => {
2628
2641
  document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
2629
2642
  };
2630
- B.prototype.disableButtons = $n;
2631
- B.prototype.enableButtons = Ln;
2632
- B.prototype.getInput = An;
2633
- B.prototype.disableInput = Pn;
2634
- B.prototype.enableInput = In;
2643
+ B.prototype.disableButtons = In;
2644
+ B.prototype.enableButtons = $n;
2645
+ B.prototype.getInput = Tn;
2646
+ B.prototype.disableInput = Bn;
2647
+ B.prototype.enableInput = Pn;
2635
2648
  B.prototype.hideLoading = Me;
2636
2649
  B.prototype.disableLoading = Me;
2637
- B.prototype.showValidationMessage = Bn;
2638
- B.prototype.resetValidationMessage = Nn;
2650
+ B.prototype.showValidationMessage = Nn;
2651
+ B.prototype.resetValidationMessage = Mn;
2639
2652
  B.prototype.close = Y;
2640
2653
  B.prototype.closePopup = Y;
2641
2654
  B.prototype.closeModal = Y;
2642
2655
  B.prototype.closeToast = Y;
2643
- B.prototype.rejectPromise = kn;
2644
- B.prototype.update = zn;
2656
+ B.prototype.rejectPromise = xn;
2657
+ B.prototype.update = qn;
2645
2658
  B.prototype._destroy = Un;
2646
- Object.assign(B, Ni);
2647
- Object.keys(fi).forEach((t) => {
2659
+ Object.assign(B, Mi);
2660
+ Object.keys(pi).forEach((t) => {
2648
2661
  B[t] = function(...e) {
2649
2662
  if (F && F[t])
2650
2663
  return F[t](...e);
2651
2664
  };
2652
2665
  });
2653
- B.DismissReason = he;
2666
+ B.DismissReason = fe;
2654
2667
  B.version = "11.26.18";
2655
2668
  const M = B;
2656
2669
  M.default = M;
@@ -2663,8 +2676,8 @@ typeof document < "u" && (function(t, e) {
2663
2676
  n.innerText = e;
2664
2677
  }
2665
2678
  })(document, ':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');
2666
- nt.create();
2667
- class rr {
2679
+ it.create();
2680
+ class ar {
2668
2681
  constructor() {
2669
2682
  this.isActive = !1, this.baseUrl = "", this.appCode = "", this.token = "", this.getRequestToken = null, this.currentLocale = "zh-CN", this.languages = [], this.wrappedElements = /* @__PURE__ */ new Set(), this.clickHandler = this.handleElementClick.bind(this);
2670
2683
  }
@@ -2673,7 +2686,7 @@ class rr {
2673
2686
  */
2674
2687
  async initConfig() {
2675
2688
  const e = E.get("I18N_CONFIG") || {}, n = e.env || "local";
2676
- this.baseUrl = Ft({ env: n }), console.log("baseUrl:", this.baseUrl), this.appCode = e.appCode || "", this.unitCode = e.unitCode || "GREENCLOUD", this.token = e.token || (E.get("I18N_CONFIG") || {}).token || "", this.getRequestToken = globalThis.__GC_I18N_GET_REQUEST_TOKEN__ || null, this.currentLocale = e.locale || E.get("I18N_LANGUAGE") || "zh-CN", await this.loadLanguages();
2689
+ this.baseUrl = Kt({ env: n }), console.log("baseUrl:", this.baseUrl), this.appCode = e.appCode || "", this.unitCode = e.unitCode || "GREENCLOUD", this.token = e.token || (E.get("I18N_CONFIG") || {}).token || "", this.getRequestToken = globalThis.__GC_I18N_GET_REQUEST_TOKEN__ || null, this.currentLocale = e.locale || E.get("I18N_LANGUAGE") || "zh-CN", await this.loadLanguages();
2677
2690
  }
2678
2691
  /**
2679
2692
  * 加载语言列表
@@ -2689,7 +2702,7 @@ class rr {
2689
2702
  return;
2690
2703
  }
2691
2704
  try {
2692
- const n = await Gt({
2705
+ const n = await Wt({
2693
2706
  baseUrl: this.baseUrl,
2694
2707
  appCode: this.appCode,
2695
2708
  token: this.token,
@@ -2951,7 +2964,7 @@ class rr {
2951
2964
  if (!this.appCode)
2952
2965
  return [];
2953
2966
  try {
2954
- const o = (E.get("I18N_CONFIG") || {}).routerName || "", s = await Wt({
2967
+ const o = (E.get("I18N_CONFIG") || {}).routerName || "", s = await Yt({
2955
2968
  baseUrl: this.baseUrl,
2956
2969
  data: {
2957
2970
  appCode: this.appCode,
@@ -2990,7 +3003,7 @@ class rr {
2990
3003
  fromAi: "F"
2991
3004
  });
2992
3005
  });
2993
- const l = await Yt({
3006
+ const l = await Zt({
2994
3007
  data: { data: r, isLocal: "F" },
2995
3008
  token: this.token,
2996
3009
  getRequestToken: this.getRequestToken,
@@ -3027,13 +3040,13 @@ class rr {
3027
3040
  });
3028
3041
  }
3029
3042
  }
3030
- const ar = new rr();
3031
- function lr(t) {
3043
+ const lr = new ar();
3044
+ function cr(t) {
3032
3045
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3033
3046
  }
3034
- var Ye = { exports: {} }, qt;
3035
- function cr() {
3036
- return qt || (qt = 1, (function(t) {
3047
+ var Ze = { exports: {} }, jt;
3048
+ function dr() {
3049
+ return jt || (jt = 1, (function(t) {
3037
3050
  var e = (function() {
3038
3051
  var n = String.fromCharCode, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$", i = {};
3039
3052
  function r(a, d) {
@@ -3082,8 +3095,8 @@ function cr() {
3082
3095
  //compress into uint8array (UCS-2 big endian format)
3083
3096
  compressToUint8Array: function(a) {
3084
3097
  for (var d = l.compress(a), u = new Uint8Array(d.length * 2), h = 0, f = d.length; h < f; h++) {
3085
- var _ = d.charCodeAt(h);
3086
- u[h * 2] = _ >>> 8, u[h * 2 + 1] = _ % 256;
3098
+ var x = d.charCodeAt(h);
3099
+ u[h * 2] = x >>> 8, u[h * 2 + 1] = x % 256;
3087
3100
  }
3088
3101
  return u;
3089
3102
  },
@@ -3094,8 +3107,8 @@ function cr() {
3094
3107
  for (var d = new Array(a.length / 2), u = 0, h = d.length; u < h; u++)
3095
3108
  d[u] = a[u * 2] * 256 + a[u * 2 + 1];
3096
3109
  var f = [];
3097
- return d.forEach(function(_) {
3098
- f.push(n(_));
3110
+ return d.forEach(function(x) {
3111
+ f.push(n(x));
3099
3112
  }), l.decompress(f.join(""));
3100
3113
  },
3101
3114
  //compress into a string that is already URI encoded
@@ -3117,53 +3130,53 @@ function cr() {
3117
3130
  },
3118
3131
  _compress: function(a, d, u) {
3119
3132
  if (a == null) return "";
3120
- var h, f, _ = {}, L = {}, S = "", I = "", x = "", w = 2, C = 3, v = 2, k = [], g = 0, m = 0, b;
3133
+ var h, f, x = {}, S = {}, L = "", I = "", _ = "", w = 2, C = 3, v = 2, k = [], p = 0, m = 0, b;
3121
3134
  for (b = 0; b < a.length; b += 1)
3122
- if (S = a.charAt(b), Object.prototype.hasOwnProperty.call(_, S) || (_[S] = C++, L[S] = !0), I = x + S, Object.prototype.hasOwnProperty.call(_, I))
3123
- x = I;
3135
+ if (L = a.charAt(b), Object.prototype.hasOwnProperty.call(x, L) || (x[L] = C++, S[L] = !0), I = _ + L, Object.prototype.hasOwnProperty.call(x, I))
3136
+ _ = I;
3124
3137
  else {
3125
- if (Object.prototype.hasOwnProperty.call(L, x)) {
3126
- if (x.charCodeAt(0) < 256) {
3138
+ if (Object.prototype.hasOwnProperty.call(S, _)) {
3139
+ if (_.charCodeAt(0) < 256) {
3127
3140
  for (h = 0; h < v; h++)
3128
- g = g << 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++;
3129
- for (f = x.charCodeAt(0), h = 0; h < 8; h++)
3130
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3141
+ p = p << 1, m == d - 1 ? (m = 0, k.push(u(p)), p = 0) : m++;
3142
+ for (f = _.charCodeAt(0), h = 0; h < 8; h++)
3143
+ p = p << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(p)), p = 0) : m++, f = f >> 1;
3131
3144
  } else {
3132
3145
  for (f = 1, h = 0; h < v; h++)
3133
- g = g << 1 | f, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = 0;
3134
- for (f = x.charCodeAt(0), h = 0; h < 16; h++)
3135
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3146
+ p = p << 1 | f, m == d - 1 ? (m = 0, k.push(u(p)), p = 0) : m++, f = 0;
3147
+ for (f = _.charCodeAt(0), h = 0; h < 16; h++)
3148
+ p = p << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(p)), p = 0) : m++, f = f >> 1;
3136
3149
  }
3137
- w--, w == 0 && (w = Math.pow(2, v), v++), delete L[x];
3150
+ w--, w == 0 && (w = Math.pow(2, v), v++), delete S[_];
3138
3151
  } else
3139
- for (f = _[x], h = 0; h < v; h++)
3140
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3141
- w--, w == 0 && (w = Math.pow(2, v), v++), _[I] = C++, x = String(S);
3152
+ for (f = x[_], h = 0; h < v; h++)
3153
+ p = p << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(p)), p = 0) : m++, f = f >> 1;
3154
+ w--, w == 0 && (w = Math.pow(2, v), v++), x[I] = C++, _ = String(L);
3142
3155
  }
3143
- if (x !== "") {
3144
- if (Object.prototype.hasOwnProperty.call(L, x)) {
3145
- if (x.charCodeAt(0) < 256) {
3156
+ if (_ !== "") {
3157
+ if (Object.prototype.hasOwnProperty.call(S, _)) {
3158
+ if (_.charCodeAt(0) < 256) {
3146
3159
  for (h = 0; h < v; h++)
3147
- g = g << 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++;
3148
- for (f = x.charCodeAt(0), h = 0; h < 8; h++)
3149
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3160
+ p = p << 1, m == d - 1 ? (m = 0, k.push(u(p)), p = 0) : m++;
3161
+ for (f = _.charCodeAt(0), h = 0; h < 8; h++)
3162
+ p = p << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(p)), p = 0) : m++, f = f >> 1;
3150
3163
  } else {
3151
3164
  for (f = 1, h = 0; h < v; h++)
3152
- g = g << 1 | f, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = 0;
3153
- for (f = x.charCodeAt(0), h = 0; h < 16; h++)
3154
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3165
+ p = p << 1 | f, m == d - 1 ? (m = 0, k.push(u(p)), p = 0) : m++, f = 0;
3166
+ for (f = _.charCodeAt(0), h = 0; h < 16; h++)
3167
+ p = p << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(p)), p = 0) : m++, f = f >> 1;
3155
3168
  }
3156
- w--, w == 0 && (w = Math.pow(2, v), v++), delete L[x];
3169
+ w--, w == 0 && (w = Math.pow(2, v), v++), delete S[_];
3157
3170
  } else
3158
- for (f = _[x], h = 0; h < v; h++)
3159
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3171
+ for (f = x[_], h = 0; h < v; h++)
3172
+ p = p << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(p)), p = 0) : m++, f = f >> 1;
3160
3173
  w--, w == 0 && (w = Math.pow(2, v), v++);
3161
3174
  }
3162
3175
  for (f = 2, h = 0; h < v; h++)
3163
- g = g << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(g)), g = 0) : m++, f = f >> 1;
3176
+ p = p << 1 | f & 1, m == d - 1 ? (m = 0, k.push(u(p)), p = 0) : m++, f = f >> 1;
3164
3177
  for (; ; )
3165
- if (g = g << 1, m == d - 1) {
3166
- k.push(u(g));
3178
+ if (p = p << 1, m == d - 1) {
3179
+ k.push(u(p));
3167
3180
  break;
3168
3181
  } else m++;
3169
3182
  return k.join("");
@@ -3174,20 +3187,20 @@ function cr() {
3174
3187
  });
3175
3188
  },
3176
3189
  _decompress: function(a, d, u) {
3177
- var h = [], f = 4, _ = 4, L = 3, S = "", I = [], x, w, C, v, k, g, m, b = { val: u(0), position: d, index: 1 };
3178
- for (x = 0; x < 3; x += 1)
3179
- h[x] = x;
3180
- for (C = 0, k = Math.pow(2, 2), g = 1; g != k; )
3181
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3190
+ var h = [], f = 4, x = 4, S = 3, L = "", I = [], _, w, C, v, k, p, m, b = { val: u(0), position: d, index: 1 };
3191
+ for (_ = 0; _ < 3; _ += 1)
3192
+ h[_] = _;
3193
+ for (C = 0, k = Math.pow(2, 2), p = 1; p != k; )
3194
+ v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3182
3195
  switch (C) {
3183
3196
  case 0:
3184
- for (C = 0, k = Math.pow(2, 8), g = 1; g != k; )
3185
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3197
+ for (C = 0, k = Math.pow(2, 8), p = 1; p != k; )
3198
+ v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3186
3199
  m = n(C);
3187
3200
  break;
3188
3201
  case 1:
3189
- for (C = 0, k = Math.pow(2, 16), g = 1; g != k; )
3190
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3202
+ for (C = 0, k = Math.pow(2, 16), p = 1; p != k; )
3203
+ v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3191
3204
  m = n(C);
3192
3205
  break;
3193
3206
  case 2:
@@ -3196,29 +3209,29 @@ function cr() {
3196
3209
  for (h[3] = m, w = m, I.push(m); ; ) {
3197
3210
  if (b.index > a)
3198
3211
  return "";
3199
- for (C = 0, k = Math.pow(2, L), g = 1; g != k; )
3200
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3212
+ for (C = 0, k = Math.pow(2, S), p = 1; p != k; )
3213
+ v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3201
3214
  switch (m = C) {
3202
3215
  case 0:
3203
- for (C = 0, k = Math.pow(2, 8), g = 1; g != k; )
3204
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3205
- h[_++] = n(C), m = _ - 1, f--;
3216
+ for (C = 0, k = Math.pow(2, 8), p = 1; p != k; )
3217
+ v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3218
+ h[x++] = n(C), m = x - 1, f--;
3206
3219
  break;
3207
3220
  case 1:
3208
- for (C = 0, k = Math.pow(2, 16), g = 1; g != k; )
3209
- v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * g, g <<= 1;
3210
- h[_++] = n(C), m = _ - 1, f--;
3221
+ for (C = 0, k = Math.pow(2, 16), p = 1; p != k; )
3222
+ v = b.val & b.position, b.position >>= 1, b.position == 0 && (b.position = d, b.val = u(b.index++)), C |= (v > 0 ? 1 : 0) * p, p <<= 1;
3223
+ h[x++] = n(C), m = x - 1, f--;
3211
3224
  break;
3212
3225
  case 2:
3213
3226
  return I.join("");
3214
3227
  }
3215
- if (f == 0 && (f = Math.pow(2, L), L++), h[m])
3216
- S = h[m];
3217
- else if (m === _)
3218
- S = w + w.charAt(0);
3228
+ if (f == 0 && (f = Math.pow(2, S), S++), h[m])
3229
+ L = h[m];
3230
+ else if (m === x)
3231
+ L = w + w.charAt(0);
3219
3232
  else
3220
3233
  return null;
3221
- I.push(S), h[_++] = w + S.charAt(0), f--, w = S, f == 0 && (f = Math.pow(2, L), L++);
3234
+ I.push(L), h[x++] = w + L.charAt(0), f--, w = L, f == 0 && (f = Math.pow(2, S), S++);
3222
3235
  }
3223
3236
  }
3224
3237
  };
@@ -3227,13 +3240,13 @@ function cr() {
3227
3240
  t != null ? t.exports = e : typeof angular < "u" && angular != null && angular.module("LZString", []).factory("LZString", function() {
3228
3241
  return e;
3229
3242
  });
3230
- })(Ye)), Ye.exports;
3243
+ })(Ze)), Ze.exports;
3231
3244
  }
3232
- var dr = cr();
3233
- const Se = /* @__PURE__ */ lr(dr);
3234
- function et(t) {
3245
+ var ur = dr();
3246
+ const Se = /* @__PURE__ */ cr(ur);
3247
+ function nt(t) {
3235
3248
  const e = [], n = (o) => {
3236
- e.push(...ur(o));
3249
+ e.push(...hr(o));
3237
3250
  };
3238
3251
  if (t.template && n(t.template), t.render) {
3239
3252
  const o = t.render.toString();
@@ -3251,35 +3264,35 @@ function et(t) {
3251
3264
  if (t.components)
3252
3265
  for (const o in t.components) {
3253
3266
  const s = t.components[o];
3254
- e.push(...et(s));
3267
+ e.push(...nt(s));
3255
3268
  }
3256
3269
  return [...new Set(e)];
3257
3270
  }
3258
- function ur(t) {
3271
+ function hr(t) {
3259
3272
  const e = [], n = /(?:\$t|(?:this|_vm|_ctx|\$setup|ctx|globalThis)\.\$t)\s*\(/g;
3260
3273
  for (; n.exec(t) !== null; ) {
3261
- const o = n.lastIndex - 1, s = Kn(t, o);
3274
+ const o = n.lastIndex - 1, s = Gn(t, o);
3262
3275
  if (s === -1) continue;
3263
- const i = t.slice(o + 1, s), r = hr(i);
3264
- e.push(...tt(r)), n.lastIndex = s + 1;
3276
+ const i = t.slice(o + 1, s), r = fr(i);
3277
+ e.push(...ot(r)), n.lastIndex = s + 1;
3265
3278
  }
3266
3279
  return e;
3267
3280
  }
3268
- function tt(t) {
3269
- const e = pr(t.trim()), n = wr(e);
3281
+ function ot(t) {
3282
+ const e = wr(t.trim()), n = mr(e);
3270
3283
  if (n !== null) return [n];
3271
- const o = fr(e);
3284
+ const o = pr(e);
3272
3285
  return o ? [
3273
- ...tt(o.consequent),
3274
- ...tt(o.alternate)
3286
+ ...ot(o.consequent),
3287
+ ...ot(o.alternate)
3275
3288
  ] : [];
3276
3289
  }
3277
- function hr(t) {
3278
- const e = Gn(t, ",");
3290
+ function fr(t) {
3291
+ const e = Wn(t, ",");
3279
3292
  return e === -1 ? t : t.slice(0, e);
3280
3293
  }
3281
- function fr(t) {
3282
- const e = Gn(t, "?");
3294
+ function pr(t) {
3295
+ const e = Wn(t, "?");
3283
3296
  if (e === -1) return null;
3284
3297
  const n = gr(t, e + 1);
3285
3298
  return n === -1 ? null : {
@@ -3287,12 +3300,12 @@ function fr(t) {
3287
3300
  alternate: t.slice(n + 1)
3288
3301
  };
3289
3302
  }
3290
- function Kn(t, e) {
3303
+ function Gn(t, e) {
3291
3304
  let n = 0;
3292
3305
  for (let o = e; o < t.length; o++) {
3293
3306
  const s = t[o];
3294
3307
  if (je(s)) {
3295
- o = bt(t, o);
3308
+ o = Ct(t, o);
3296
3309
  continue;
3297
3310
  }
3298
3311
  if (s === "(" && n++, s === ")" && (n--, n === 0))
@@ -3300,12 +3313,12 @@ function Kn(t, e) {
3300
3313
  }
3301
3314
  return -1;
3302
3315
  }
3303
- function Gn(t, e) {
3316
+ function Wn(t, e) {
3304
3317
  let n = 0, o = 0, s = 0;
3305
3318
  for (let i = 0; i < t.length; i++) {
3306
3319
  const r = t[i];
3307
3320
  if (je(r)) {
3308
- i = bt(t, i);
3321
+ i = Ct(t, i);
3309
3322
  continue;
3310
3323
  }
3311
3324
  if (r === "(") n++;
@@ -3314,7 +3327,7 @@ function Gn(t, e) {
3314
3327
  else if (r === "]") o--;
3315
3328
  else if (r === "{") s++;
3316
3329
  else if (r === "}") s--;
3317
- else if (r === e && !Wn(t, i, e) && n === 0 && o === 0 && s === 0)
3330
+ else if (r === e && !Yn(t, i, e) && n === 0 && o === 0 && s === 0)
3318
3331
  return i;
3319
3332
  }
3320
3333
  return -1;
@@ -3324,7 +3337,7 @@ function gr(t, e) {
3324
3337
  for (let r = e; r < t.length; r++) {
3325
3338
  const l = t[r];
3326
3339
  if (je(l)) {
3327
- r = bt(t, r);
3340
+ r = Ct(t, r);
3328
3341
  continue;
3329
3342
  }
3330
3343
  if (l === "(") o++;
@@ -3333,20 +3346,20 @@ function gr(t, e) {
3333
3346
  else if (l === "]") s--;
3334
3347
  else if (l === "{") i++;
3335
3348
  else if (l === "}") i--;
3336
- else if (o === 0 && s === 0 && i === 0 && (l === "?" && !Wn(t, r, "?") && n++, l === ":")) {
3349
+ else if (o === 0 && s === 0 && i === 0 && (l === "?" && !Yn(t, r, "?") && n++, l === ":")) {
3337
3350
  if (n === 0) return r;
3338
3351
  n--;
3339
3352
  }
3340
3353
  }
3341
3354
  return -1;
3342
3355
  }
3343
- function pr(t) {
3356
+ function wr(t) {
3344
3357
  let e = t;
3345
- for (; e.startsWith("(") && Kn(e, 0) === e.length - 1; )
3358
+ for (; e.startsWith("(") && Gn(e, 0) === e.length - 1; )
3346
3359
  e = e.slice(1, -1).trim();
3347
3360
  return e;
3348
3361
  }
3349
- function wr(t) {
3362
+ function mr(t) {
3350
3363
  if (!t || !je(t[0])) return null;
3351
3364
  const e = t[0];
3352
3365
  let n = "";
@@ -3362,7 +3375,7 @@ function wr(t) {
3362
3375
  }
3363
3376
  return null;
3364
3377
  }
3365
- function bt(t, e) {
3378
+ function Ct(t, e) {
3366
3379
  const n = t[e];
3367
3380
  for (let o = e + 1; o < t.length; o++) {
3368
3381
  if (t[o] === "\\") {
@@ -3376,10 +3389,10 @@ function bt(t, e) {
3376
3389
  function je(t) {
3377
3390
  return t === "'" || t === '"' || t === "`";
3378
3391
  }
3379
- function Wn(t, e, n) {
3392
+ function Yn(t, e, n) {
3380
3393
  return n === "?" && (t[e + 1] === "." || t[e + 1] === "?");
3381
3394
  }
3382
- const Vt = {
3395
+ const Ht = {
3383
3396
  name: "Earth",
3384
3397
  props: {
3385
3398
  editable: {
@@ -3419,7 +3432,7 @@ const Vt = {
3419
3432
  },
3420
3433
  emits: ["update:modelValue"],
3421
3434
  setup(t, { emit: e }) {
3422
- const n = se("zh-CN"), o = se(""), s = se(""), i = se([]), r = () => {
3435
+ const n = ie("zh-CN"), o = ie(""), s = ie(""), i = ie([]), r = () => {
3423
3436
  const w = E.get("I18N_CONFIG") || {};
3424
3437
  o.value = w.appCode || "", s.value = w.token || (E.get("I18N_CONFIG") || {}).token || "", n.value = E.get("I18N_LANGUAGE") || w.locale || "zh-CN";
3425
3438
  }, l = async () => {
@@ -3427,7 +3440,7 @@ const Vt = {
3427
3440
  i.value = t.languages;
3428
3441
  return;
3429
3442
  }
3430
- const w = await Kt({
3443
+ const w = await Gt({
3431
3444
  baseUrl: t.baseUrl,
3432
3445
  token: s.value,
3433
3446
  appCode: o.value,
@@ -3450,7 +3463,7 @@ const Vt = {
3450
3463
  return C.textContent = w, C.innerHTML;
3451
3464
  }, f = (w) => {
3452
3465
  w.data && w.data.type === "updateLanguage" && (n.value = E.get("I18N_LANGUAGE") || "zh-CN");
3453
- }, _ = () => {
3466
+ }, x = () => {
3454
3467
  if (typeof window > "u") return;
3455
3468
  const w = { type: "updateLanguage" }, C = window.location.origin, v = [window];
3456
3469
  try {
@@ -3464,11 +3477,11 @@ const Vt = {
3464
3477
  Array.from(new Set(v)).forEach((k) => {
3465
3478
  k.postMessage(w, C);
3466
3479
  });
3467
- }, L = () => {
3480
+ }, S = () => {
3468
3481
  window.addEventListener("storage", (w) => {
3469
3482
  w.key === "I18N_LANGUAGE" && (n.value = w.newValue || "zh-CN");
3470
3483
  });
3471
- }, S = async () => {
3484
+ }, L = async () => {
3472
3485
  i.value.length === 0 && await l();
3473
3486
  const w = i.value.map(
3474
3487
  (k) => `
@@ -3502,25 +3515,25 @@ const Vt = {
3502
3515
  htmlContainer: "i18n-earth-modal-content"
3503
3516
  },
3504
3517
  preConfirm: async () => {
3505
- const k = document.querySelectorAll(".i18n-edit-input"), g = {};
3518
+ const k = document.querySelectorAll(".i18n-edit-input"), p = {};
3506
3519
  k.forEach((b) => {
3507
- g[b.getAttribute("data-lang")] = b.value;
3520
+ p[b.getAttribute("data-lang")] = b.value;
3508
3521
  });
3509
3522
  const m = document.getElementById("i18n-save-error");
3510
3523
  if (m && (m.style.display = "none", m.textContent = ""), t.request && typeof t.request == "function")
3511
3524
  try {
3512
- return await t.request(g), g;
3525
+ return await t.request(p), p;
3513
3526
  } catch (b) {
3514
3527
  return m && (m.textContent = b.message || "保存失败", m.style.display = "block"), !1;
3515
3528
  }
3516
- return g;
3529
+ return p;
3517
3530
  }
3518
3531
  });
3519
3532
  if (v && C) {
3520
- const k = Object.keys(C).map((g) => ({
3521
- [g]: C[g]
3533
+ const k = Object.keys(C).map((p) => ({
3534
+ [p]: C[p]
3522
3535
  }));
3523
- e("update:modelValue", k), _(), M.fire({
3536
+ e("update:modelValue", k), x(), M.fire({
3524
3537
  text: "保存成功",
3525
3538
  icon: "success",
3526
3539
  timer: 1500,
@@ -3570,14 +3583,14 @@ const Vt = {
3570
3583
  htmlContainer: "i18n-earth-modal-content"
3571
3584
  }
3572
3585
  });
3573
- }, x = () => {
3574
- t.request && typeof t.request == "function" ? S() : I();
3586
+ }, _ = () => {
3587
+ t.request && typeof t.request == "function" ? L() : I();
3575
3588
  };
3576
- return eo(() => {
3577
- r(), l(), window.addEventListener("message", f), L();
3589
+ return to(() => {
3590
+ r(), l(), window.addEventListener("message", f), S();
3578
3591
  }), {
3579
3592
  currentValue: d,
3580
- openModal: x
3593
+ openModal: _
3581
3594
  };
3582
3595
  },
3583
3596
  render() {
@@ -3611,7 +3624,7 @@ const Vt = {
3611
3624
  ]);
3612
3625
  }
3613
3626
  };
3614
- function pe(t) {
3627
+ function ge(t) {
3615
3628
  if (!t || typeof t != "string") return t;
3616
3629
  const e = t.toLowerCase();
3617
3630
  return {
@@ -3622,17 +3635,17 @@ function pe(t) {
3622
3635
  "en-us": "en-US"
3623
3636
  }[e] || t;
3624
3637
  }
3625
- function Yn(t = {}) {
3638
+ function Zn(t = {}) {
3626
3639
  const e = Object.entries(t || {});
3627
3640
  return e.some(([, o]) => o && typeof o == "object" && !Array.isArray(o) && Object.keys(o).some((s) => s.includes("-"))) ? e.reduce((o, [s, i]) => (!i || typeof i != "object" || Array.isArray(i) || Object.entries(i).forEach(([r, l]) => {
3628
- const a = pe(r);
3641
+ const a = ge(r);
3629
3642
  o[a] = o[a] || {}, o[a][s] = l;
3630
- }), o), {}) : e.reduce((o, [s, i]) => (o[pe(s)] = i, o), {});
3643
+ }), o), {}) : e.reduce((o, [s, i]) => (o[ge(s)] = i, o), {});
3631
3644
  }
3632
- function jt(t, e) {
3633
- return t[e] || t[pe(e)] || t[String(e || "").toLowerCase()] || {};
3645
+ function Ft(t, e) {
3646
+ return t[e] || t[ge(e)] || t[String(e || "").toLowerCase()] || {};
3634
3647
  }
3635
- function ge(t, e) {
3648
+ function pe(t, e) {
3636
3649
  if (typeof t != "string" || !e || typeof e != "object" || Array.isArray(e))
3637
3650
  return t;
3638
3651
  const n = Object.entries(e);
@@ -3644,7 +3657,7 @@ function ge(t, e) {
3644
3657
  return l != null ? String(l) : o;
3645
3658
  });
3646
3659
  }
3647
- function Zn(t, e) {
3660
+ function Xn(t, e) {
3648
3661
  return e === void 0 && t && typeof t == "object" && !Array.isArray(t) ? {
3649
3662
  defaultValue: void 0,
3650
3663
  values: t
@@ -3653,8 +3666,8 @@ function Zn(t, e) {
3653
3666
  values: e
3654
3667
  };
3655
3668
  }
3656
- function mr(t) {
3657
- const { locale: e = "zh-CN", messages: n = {} } = t, o = Yn(n), s = se(e), i = se(0), r = yt(), l = Jn() && r && typeof r.observable == "function" ? r.observable({
3669
+ function br(t) {
3670
+ const { locale: e = "zh-CN", messages: n = {} } = t, o = Zn(n), s = ie(e), i = ie(0), r = kt(), l = Qn() && r && typeof r.observable == "function" ? r.observable({
3658
3671
  locale: e,
3659
3672
  messageVersion: 0
3660
3673
  }) : null, a = () => l ? l.locale : s.value, d = (f) => {
@@ -3672,42 +3685,42 @@ function mr(t) {
3672
3685
  }
3673
3686
  },
3674
3687
  // 翻译函数(支持嵌套 key 的点号访问)
3675
- t(f, _, L) {
3676
- const S = Zn(_, L);
3677
- _ = S.defaultValue, L = S.values, i.value, l && l.messageVersion;
3688
+ t(f, x, S) {
3689
+ const L = Xn(x, S);
3690
+ x = L.defaultValue, S = L.values, i.value, l && l.messageVersion;
3678
3691
  const I = a();
3679
3692
  if (I === "zh-CN" && !f.startsWith("i.") && !f.startsWith("pro."))
3680
- return ge(_ || f, L);
3681
- const x = jt(o, I);
3682
- let w = x[f];
3683
- return w === void 0 && f.includes(".") && (w = f.split(".").reduce((v, k) => v && typeof v == "object" ? v[k] : void 0, x)), ge(w && typeof w == "string" && w !== f ? w : _ || f, L);
3693
+ return pe(x || f, S);
3694
+ const _ = Ft(o, I);
3695
+ let w = _[f];
3696
+ return w === void 0 && f.includes(".") && (w = f.split(".").reduce((v, k) => v && typeof v == "object" ? v[k] : void 0, _)), pe(w && typeof w == "string" && w !== f ? w : x || f, S);
3684
3697
  },
3685
3698
  // 设置某个语言的所有消息
3686
- setLocaleMessage(f, _) {
3687
- return o[pe(f)] = { ..._ }, u(), o[pe(f)];
3699
+ setLocaleMessage(f, x) {
3700
+ return o[ge(f)] = { ...x }, u(), o[ge(f)];
3688
3701
  },
3689
3702
  // 获取某个语言的消息
3690
3703
  getLocaleMessage(f) {
3691
- return jt(o, f);
3704
+ return Ft(o, f);
3692
3705
  }
3693
3706
  };
3694
3707
  return h.global = h, h;
3695
3708
  }
3696
- const Xn = nt.create({
3709
+ const Jn = it.create({
3697
3710
  timeout: 8e3
3698
3711
  });
3699
- Xn.interceptors.request.use((t) => {
3712
+ Jn.interceptors.request.use((t) => {
3700
3713
  const n = (E.get("I18N_CONFIG") || {}).token;
3701
3714
  return n && (t.headers.Authorization = `Bearer ${n}`), t;
3702
3715
  });
3703
- function br(t = {}) {
3716
+ function yr(t = {}) {
3704
3717
  const n = JSON.stringify({
3705
3718
  alg: "HS512"
3706
3719
  // 算法
3707
3720
  }), o = JSON.stringify(t);
3708
- return to.JWS.sign("HS512", n, o, "");
3721
+ return no.JWS.sign("HS512", n, o, "");
3709
3722
  }
3710
- function yr(t) {
3723
+ function vr(t) {
3711
3724
  if (!t || typeof t != "string") return "";
3712
3725
  const e = t.replace(/-/g, "+").replace(/_/g, "/"), n = e.padEnd(
3713
3726
  e.length + (4 - e.length % 4) % 4,
@@ -3722,21 +3735,21 @@ function yr(t) {
3722
3735
  }
3723
3736
  return "";
3724
3737
  }
3725
- function vr(t) {
3738
+ function Cr(t) {
3726
3739
  if (!t || typeof t != "string") return null;
3727
3740
  const e = t.split(".");
3728
3741
  if (e.length !== 3) return null;
3729
3742
  try {
3730
- return JSON.parse(yr(e[1]));
3743
+ return JSON.parse(vr(e[1]));
3731
3744
  } catch {
3732
3745
  return null;
3733
3746
  }
3734
3747
  }
3735
- function Cr(t) {
3736
- const e = vr(t);
3748
+ function kr(t) {
3749
+ const e = Cr(t);
3737
3750
  return !!(e && (e.mainAppCode && e.userCode && e.deviceType || e.appCode && e.orgCode && e.userCode && e.i18n_token));
3738
3751
  }
3739
- function Ht(t) {
3752
+ function st(t) {
3740
3753
  if (!t) return "";
3741
3754
  const e = String(t);
3742
3755
  let n = 0;
@@ -3744,44 +3757,47 @@ function Ht(t) {
3744
3757
  n = (n << 5) - n + e.charCodeAt(o), n |= 0;
3745
3758
  return `user_${Math.abs(n)}`;
3746
3759
  }
3747
- function fe(t, ...e) {
3760
+ function Xe({ appCode: t, orgCode: e, userCode: n } = {}) {
3761
+ return !t || !e || !n ? "" : st([t, e, n].join("|"));
3762
+ }
3763
+ function oe(t, ...e) {
3748
3764
  if (typeof t == "function")
3749
3765
  return t(...e);
3750
3766
  }
3751
- function yt(t) {
3767
+ function kt(t) {
3752
3768
  return t && (t.version || t.prototype || t.config) ? t : _e && _e.version ? _e : _e;
3753
3769
  }
3754
- function Jn(t) {
3770
+ function Qn(t) {
3755
3771
  if (t && t.config && t.config.globalProperties)
3756
3772
  return !1;
3757
- const e = yt(t), n = e && e.version;
3773
+ const e = kt(t), n = e && e.version;
3758
3774
  return typeof n == "string" ? n.split(".")[0] === "2" : !!(e && e.prototype);
3759
3775
  }
3760
- function kr(t) {
3776
+ function xr(t) {
3761
3777
  [t.$, t._].filter(Boolean).forEach((n) => {
3762
3778
  Array.isArray(n.renderCache) && (n.renderCache.length = 0);
3763
3779
  });
3764
3780
  }
3765
- function vt(t, e) {
3781
+ function xt(t, e) {
3766
3782
  if (!t || e.has(t)) return;
3767
3783
  e.add(t), Array.isArray(t.renderCache) && (t.renderCache.length = 0);
3768
3784
  const n = t.proxy;
3769
- n && typeof n.$forceUpdate == "function" ? n.$forceUpdate() : typeof t.update == "function" && t.update(), oe(t.subTree, e);
3785
+ n && typeof n.$forceUpdate == "function" ? n.$forceUpdate() : typeof t.update == "function" && t.update(), se(t.subTree, e);
3770
3786
  }
3771
- function oe(t, e) {
3787
+ function se(t, e) {
3772
3788
  if (t) {
3773
3789
  if (Array.isArray(t)) {
3774
- t.forEach((n) => oe(n, e));
3790
+ t.forEach((n) => se(n, e));
3775
3791
  return;
3776
3792
  }
3777
- t.component && vt(t.component, e), Array.isArray(t.children) && t.children.forEach((n) => oe(n, e)), Array.isArray(t.dynamicChildren) && t.dynamicChildren.forEach((n) => oe(n, e)), t.ssContent && oe(t.ssContent, e), t.ssFallback && oe(t.ssFallback, e);
3793
+ t.component && xt(t.component, e), Array.isArray(t.children) && t.children.forEach((n) => se(n, e)), Array.isArray(t.dynamicChildren) && t.dynamicChildren.forEach((n) => se(n, e)), t.ssContent && se(t.ssContent, e), t.ssFallback && se(t.ssFallback, e);
3778
3794
  }
3779
3795
  }
3780
- function Qn(t, e = /* @__PURE__ */ new Set()) {
3796
+ function eo(t, e = /* @__PURE__ */ new Set()) {
3781
3797
  if (!t || e.has(t)) return;
3782
- e.add(t), kr(t), [t.$, t._].filter(Boolean).forEach((o) => {
3783
- vt(o, e);
3784
- }), typeof t.$forceUpdate == "function" && t.$forceUpdate(), (t.$children || []).forEach((o) => Qn(o, e));
3798
+ e.add(t), xr(t), [t.$, t._].filter(Boolean).forEach((o) => {
3799
+ xt(o, e);
3800
+ }), typeof t.$forceUpdate == "function" && t.$forceUpdate(), (t.$children || []).forEach((o) => eo(o, e));
3785
3801
  }
3786
3802
  class J {
3787
3803
  constructor(e = {}) {
@@ -3791,27 +3807,28 @@ class J {
3791
3807
  messages: s,
3792
3808
  token: i,
3793
3809
  orgCode: r,
3794
- loginRouteName: l,
3795
- login: a,
3796
- keyboard: d,
3797
- locale: u,
3798
- env: h,
3799
- dev: f,
3800
- i18nTokenRequest: _,
3810
+ userCode: l,
3811
+ loginRouteName: a,
3812
+ login: d,
3813
+ keyboard: u,
3814
+ locale: h,
3815
+ env: f,
3816
+ dev: x,
3817
+ i18nTokenRequest: S,
3801
3818
  auth: L
3802
3819
  } = e;
3803
- this.env = h || "local", this.baseUrl = Ft({ env: h, dev: f }), this.i18nTokenRequest = _ || null, this.baseToken = i || (E.get("I18N_CONFIG") || {}).token || E.get("token"), this.token = this.baseToken, this.auth = L || null, this.authInfo = {
3820
+ this.env = f || "local", this.baseUrl = Kt({ env: f, dev: x }), this.i18nTokenRequest = S || null, this.baseToken = i || (E.get("I18N_CONFIG") || {}).token || E.get("token"), this.token = this.baseToken, this.auth = L || null, this.authInfo = {
3804
3821
  appCode: o,
3805
3822
  orgCode: r || "",
3806
- userCode: ""
3807
- }, this.getRequestToken = this.getRequestToken.bind(this), this.requestAuthIdentity = null, this.tokenResolveVersion = 0, this.manualAuthScope = r || (i ? Ht(i) : ""), this.authUnsubscribe = null, this.authVersion = 0, this.languageVersion = 0, this.activeCacheScope = this.manualAuthScope || "guest", this.loadI18n = !0, this.appCode = o, this.router = n, this.locale = this.normalizeLocale(
3808
- u || E.get("I18N_LANGUAGE") || navigator.language || "zh-CN"
3809
- ), this._isRTL = Ee(this.locale), this.persistI18nConfig(), this.name = "", this.messages = Yn(s || {}), this.translationKeys = [], this.translationKeySet = /* @__PURE__ */ new Set(), this.loginRouteName = l || "login", this.login = a, this.loginTranslationKeys = [], this.keyboard = d || "ctrl+shift+l", this.vueInstances = /* @__PURE__ */ new Set(), this.vueApps = /* @__PURE__ */ new Set(), this.editKeyboard = e.editKeyboard || "ctrl+shift+e", this.applyAuthState(this.resolveAuthState(), { silent: !0 }), this.initI18n(e), this.router && this.initRouterGuards(), Ct.bind(this.keyboard, (S) => {
3810
- if (S.preventDefault(), this.name === this.loginRouteName)
3823
+ userCode: l || ""
3824
+ }, this.getRequestToken = this.getRequestToken.bind(this), this.requestAuthIdentity = null, this.tokenResolveVersion = 0, this.manualAuthScope = Xe(this.authInfo) || (i ? st(i) : ""), this.authUnsubscribe = null, this.authVersion = 0, this.languageVersion = 0, this.activeCacheScope = this.manualAuthScope || "guest", this.loadI18n = !0, this.appCode = o, this.router = n, this.locale = this.normalizeLocale(
3825
+ h || E.get("I18N_LANGUAGE") || navigator.language || "zh-CN"
3826
+ ), this._isRTL = Ee(this.locale), this.persistI18nConfig(), this.name = "", this.messages = Zn(s || {}), this.translationKeys = [], this.translationKeySet = /* @__PURE__ */ new Set(), this.loginRouteName = a || "login", this.login = d, this.loginTranslationKeys = [], this.keyboard = u || "ctrl+shift+l", this.vueInstances = /* @__PURE__ */ new Set(), this.vueApps = /* @__PURE__ */ new Set(), this.editKeyboard = e.editKeyboard || "ctrl+shift+e", this.applyAuthState(this.resolveAuthState(), { silent: !0 }), this.initI18n(e), this.router && this.initRouterGuards(), _t.bind(this.keyboard, (I) => {
3827
+ if (I.preventDefault(), this.name === this.loginRouteName)
3811
3828
  return;
3812
- const I = Array.from(this.translationKeySet);
3829
+ const _ = Array.from(this.translationKeySet);
3813
3830
  this.translationKeys = Array.from(
3814
- /* @__PURE__ */ new Set([...this.translationKeys || [], ...I])
3831
+ /* @__PURE__ */ new Set([...this.translationKeys || [], ..._])
3815
3832
  ), this.swalInstance = M.fire({
3816
3833
  titleText: "多语言管理",
3817
3834
  padding: "0px",
@@ -3829,10 +3846,10 @@ class J {
3829
3846
  },
3830
3847
  html: '<div id="gc_i18n_config_modal_root"></div>',
3831
3848
  didOpen: () => {
3832
- const x = document.getElementById("gc_i18n_config_modal_root");
3833
- if (!x)
3849
+ const w = document.getElementById("gc_i18n_config_modal_root");
3850
+ if (!w)
3834
3851
  return;
3835
- const w = wo({
3852
+ const C = mo({
3836
3853
  name: this.name,
3837
3854
  token: this.token,
3838
3855
  appCode: this.appCode,
@@ -3842,24 +3859,30 @@ class J {
3842
3859
  loginRouteName: this.loginRouteName,
3843
3860
  loginTranslationKeys: this.loginTranslationKeys,
3844
3861
  login: this.login,
3845
- onSaveSuccess: async ({ close: C, message: v } = {}) => {
3862
+ onSaveSuccess: async ({ close: v, message: k } = {}) => {
3846
3863
  await this.handleUpdateLanguageSuccess({
3847
- close: C,
3848
- message: v
3864
+ close: v,
3865
+ message: k
3866
+ });
3867
+ },
3868
+ onError: ({ message: v } = {}) => {
3869
+ this.showConfigToast({
3870
+ message: v,
3871
+ icon: "error"
3849
3872
  });
3850
3873
  },
3851
3874
  onClose: () => {
3852
3875
  M.close();
3853
3876
  }
3854
3877
  });
3855
- this.configInstance = w, w.mount(x);
3878
+ this.configInstance = C, C.mount(w);
3856
3879
  },
3857
3880
  willClose: () => {
3858
3881
  this.configInstance && (this.configInstance.destroy(), this.configInstance = null);
3859
3882
  }
3860
3883
  });
3861
- }), Ct.bind(this.editKeyboard, (S) => {
3862
- S.preventDefault(), ar.toggle();
3884
+ }), _t.bind(this.editKeyboard, (I) => {
3885
+ I.preventDefault(), lr.toggle();
3863
3886
  }), this.setupLanguageChangeListener(), this.setupAuthListener(), this.setupMessageListener();
3864
3887
  }
3865
3888
  /**
@@ -3881,15 +3904,17 @@ class J {
3881
3904
  });
3882
3905
  }
3883
3906
  resolveAuthState() {
3884
- const e = this.auth || {}, n = fe(e.getToken) ?? "", o = fe(e.getScope) ?? fe(e.getUserScope) ?? "", s = fe(e.getOrgCode) ?? "", i = fe(e.getUserCode) ?? "", r = typeof e.isAuthenticated == "function" ? !!e.isAuthenticated() : !!n, l = r ? String(
3885
- o || Ht(n) || this.manualAuthScope || "user"
3907
+ var u, h, f;
3908
+ const e = this.auth || {}, n = oe(e.getToken) ?? "", o = oe(e.getScope) ?? oe(e.getUserScope) ?? "", s = oe(e.getAppCode) ?? ((u = this.authInfo) == null ? void 0 : u.appCode) ?? this.appCode, i = oe(e.getOrgCode) ?? ((h = this.authInfo) == null ? void 0 : h.orgCode) ?? "", r = oe(e.getUserCode) ?? ((f = this.authInfo) == null ? void 0 : f.userCode) ?? "", l = Xe({ appCode: s, orgCode: i, userCode: r }), a = typeof e.isAuthenticated == "function" ? !!e.isAuthenticated() : !!n || !!(this.i18nTokenRequest && l), d = a ? String(
3909
+ o || st(n) || l || this.manualAuthScope || "user"
3886
3910
  ) : "guest";
3887
3911
  return {
3888
3912
  token: n,
3889
- scope: l,
3890
- orgCode: s,
3891
- userCode: i,
3892
- isAuthenticated: r
3913
+ scope: d,
3914
+ appCode: s,
3915
+ orgCode: i,
3916
+ userCode: r,
3917
+ isAuthenticated: a
3893
3918
  };
3894
3919
  }
3895
3920
  normalizeAuthInfo(e = {}) {
@@ -3910,7 +3935,7 @@ class J {
3910
3935
  }
3911
3936
  clearLanguageCacheForAuthChange(e = {}, n = {}) {
3912
3937
  E.remove("I18N_LANGUAGES"), [e.appCode, n.appCode, this.appCode].filter(Boolean).forEach((o) => {
3913
- Et({
3938
+ St({
3914
3939
  appCode: o,
3915
3940
  cacheScope: this.activeCacheScope
3916
3941
  });
@@ -3929,8 +3954,9 @@ class J {
3929
3954
  });
3930
3955
  }
3931
3956
  async createRequestToken(e, n = {}) {
3932
- if (!e) return "";
3933
- if (Cr(e))
3957
+ if (!this.i18nTokenRequest)
3958
+ return e || "";
3959
+ if (e && kr(e))
3934
3960
  return e;
3935
3961
  const o = {
3936
3962
  appCode: n.appCode || this.appCode,
@@ -3939,24 +3965,24 @@ class J {
3939
3965
  };
3940
3966
  if (!o.orgCode || !o.userCode)
3941
3967
  return console.warn(
3942
- " JWT token 需要通过 setToken(token, { orgCode, userCode }) 提供鉴权信息"
3943
- ), e;
3968
+ "临时 token 模式需要提供 appCode、orgCodeuserCode 三元身份"
3969
+ ), "";
3944
3970
  try {
3945
- const s = await lo({
3971
+ const s = await co({
3946
3972
  request: this.i18nTokenRequest,
3947
3973
  appCode: o.appCode || this.appCode,
3948
3974
  orgCode: o.orgCode,
3949
3975
  userCode: o.userCode,
3950
3976
  token: e
3951
3977
  });
3952
- return s ? br({
3978
+ return s ? yr({
3953
3979
  appCode: o.appCode || this.appCode,
3954
3980
  orgCode: o.orgCode,
3955
3981
  userCode: o.userCode,
3956
3982
  i18n_token: s
3957
- }) : (console.warn("获取 i18n_token 失败,继续使用原 token"), e);
3983
+ }) : (console.warn("获取 i18n_token 失败"), "");
3958
3984
  } catch (s) {
3959
- return console.warn("获取 i18n_token 失败,继续使用原 token", s), e;
3985
+ return console.warn("获取 i18n_token 失败", s), "";
3960
3986
  }
3961
3987
  }
3962
3988
  async getRequestToken() {
@@ -3994,7 +4020,7 @@ class J {
3994
4020
  orgCode: (e == null ? void 0 : e.orgCode) ?? "",
3995
4021
  userCode: (e == null ? void 0 : e.userCode) ?? "",
3996
4022
  appCode: (e == null ? void 0 : e.appCode) ?? this.appCode,
3997
- isAuthenticated: typeof (e == null ? void 0 : e.isAuthenticated) == "boolean" ? e.isAuthenticated : !!((e == null ? void 0 : e.token) ?? this.resolveAuthState().token)
4023
+ isAuthenticated: typeof (e == null ? void 0 : e.isAuthenticated) == "boolean" ? e.isAuthenticated : !!((e == null ? void 0 : e.token) ?? this.resolveAuthState().token) || !!(this.i18nTokenRequest && (e != null && e.appCode) && (e != null && e.orgCode) && (e != null && e.userCode))
3998
4024
  };
3999
4025
  this.applyAuthState(n) && this.refreshLanguageForCurrentAuth();
4000
4026
  }));
@@ -4004,7 +4030,10 @@ class J {
4004
4030
  this.messageListenerRegistered = !0;
4005
4031
  try {
4006
4032
  const e = (o) => {
4007
- !o.origin || o.origin === "null" || (o.data && o.data.type === "updateLanguage" ? this.handleUpdateLanguageSuccess(o.data) : o.data && o.data.type === "closeModal" && M.close());
4033
+ !o.origin || o.origin === "null" || (o.data && o.data.type === "updateLanguage" ? this.handleUpdateLanguageSuccess(o.data) : o.data && o.data.type === "configError" ? this.showConfigToast({
4034
+ message: o.data.message,
4035
+ icon: "error"
4036
+ }) : o.data && o.data.type === "closeModal" && M.close());
4008
4037
  }, n = [window];
4009
4038
  try {
4010
4039
  window.parent && window.parent !== window && n.push(window.parent);
@@ -4021,20 +4050,26 @@ class J {
4021
4050
  }
4022
4051
  }
4023
4052
  }
4024
- async handleUpdateLanguageSuccess({ close: e, message: n } = {}) {
4025
- await this.setLanguage(this.locale, {
4026
- cacheScope: this.activeCacheScope,
4027
- authVersion: this.authVersion
4028
- }), e !== !1 && (M.close(), setTimeout(() => {
4053
+ showConfigToast({ message: e, icon: n = "success" } = {}) {
4054
+ setTimeout(() => {
4029
4055
  M.fire({
4030
- title: n || "保存成功",
4031
- icon: "success",
4056
+ title: e || (n === "error" ? "操作失败" : "保存成功"),
4057
+ icon: n,
4032
4058
  toast: !0,
4033
4059
  timer: 1800,
4034
- position: "top-end",
4060
+ position: "top",
4035
4061
  showConfirmButton: !1
4036
4062
  });
4037
- }, 0));
4063
+ }, 0);
4064
+ }
4065
+ async handleUpdateLanguageSuccess({ close: e, message: n } = {}) {
4066
+ await this.setLanguage(this.locale, {
4067
+ cacheScope: this.activeCacheScope,
4068
+ authVersion: this.authVersion
4069
+ }), e !== !1 && (M.close(), this.showConfigToast({
4070
+ message: n || "保存成功",
4071
+ icon: "success"
4072
+ }));
4038
4073
  }
4039
4074
  /**
4040
4075
  * 设置路由器(支持延迟设置)
@@ -4067,7 +4102,7 @@ class J {
4067
4102
  console.error("加载异步组件时出错:", h), o();
4068
4103
  return;
4069
4104
  }
4070
- const u = et(d);
4105
+ const u = nt(d);
4071
4106
  this.loginTranslationKeys = u;
4072
4107
  }
4073
4108
  if (e.matched.length > 0)
@@ -4076,7 +4111,7 @@ class J {
4076
4111
  for (const u of e.matched) {
4077
4112
  let h = (a = u.components) == null ? void 0 : a.default;
4078
4113
  if (typeof h == "function" && h.toString().includes("import(") && (h = await h(), h = h.default), h) {
4079
- const f = et(h);
4114
+ const f = nt(h);
4080
4115
  d.push(...f);
4081
4116
  }
4082
4117
  }
@@ -4088,7 +4123,7 @@ class J {
4088
4123
  o();
4089
4124
  }), J._afterEachGuardRegistered || (J._afterEachGuardRegistered = !0, this.router.afterEach(async () => {
4090
4125
  var i, r;
4091
- await kt();
4126
+ await Et();
4092
4127
  const e = Array.from(this.translationKeySet), n = Array.from(
4093
4128
  /* @__PURE__ */ new Set([...this.translationKeys || [], ...e])
4094
4129
  );
@@ -4106,33 +4141,33 @@ class J {
4106
4141
  }
4107
4142
  // 初始化 i18n 实例
4108
4143
  initI18n(e) {
4109
- this.i18n = mr({
4144
+ this.i18n = br({
4110
4145
  locale: this.locale,
4111
4146
  messages: e.messages || {}
4112
4147
  }), this.keyValueMap = {}, globalThis.__I18N_ALL_KEYS__ = /* @__PURE__ */ new Set();
4113
4148
  const n = this;
4114
4149
  globalThis.$t = (o, s, i) => {
4115
4150
  var h, f;
4116
- const r = Zn(s, i);
4151
+ const r = Xn(s, i);
4117
4152
  if (s = r.defaultValue, i = r.values, typeof o == "string" && (n.translationKeySet.add(o), globalThis.__I18N_ALL_KEYS__ && globalThis.__I18N_ALL_KEYS__.add(o)), n.i18n.global.locale.value === "zh-CN" && typeof o == "string" && !o.startsWith("i.") && !o.startsWith("pro."))
4118
- return ge(s || o, i);
4153
+ return pe(s || o, i);
4119
4154
  const a = (h = n.router) == null ? void 0 : h.currentRoute, d = (f = (a == null ? void 0 : a.value) ?? a) == null ? void 0 : f.name;
4120
4155
  let u;
4121
4156
  if (d) {
4122
- const _ = `${d}.${o}`, L = n.i18n.t(_, void 0, i);
4123
- if (L !== _ && !y.isEmpty(L))
4124
- u = L;
4157
+ const x = `${d}.${o}`, S = n.i18n.t(x, void 0, i);
4158
+ if (S !== x && !y.isEmpty(S))
4159
+ u = S;
4125
4160
  else {
4126
- const S = `common.${o}`, I = n.i18n.t(S, void 0, i);
4127
- I !== S ? u = I : u = n.i18n.t(o, void 0, i);
4161
+ const L = `common.${o}`, I = n.i18n.t(L, void 0, i);
4162
+ I !== L ? u = I : u = n.i18n.t(o, void 0, i);
4128
4163
  }
4129
4164
  } else
4130
4165
  u = n.i18n.t(o, void 0, i);
4131
- return u === o && typeof s == "string" && s && (u = s), u = ge(u, i), typeof o == "string" && typeof u == "string" && (n.keyValueMap[u] = o, globalThis.__I18N_KEY_VALUE_MAP__ || (globalThis.__I18N_KEY_VALUE_MAP__ = {}), globalThis.__I18N_KEY_VALUE_MAP__[u] = o), u;
4166
+ return u === o && typeof s == "string" && s && (u = s), u = pe(u, i), typeof o == "string" && typeof u == "string" && (n.keyValueMap[u] = o, globalThis.__I18N_KEY_VALUE_MAP__ || (globalThis.__I18N_KEY_VALUE_MAP__ = {}), globalThis.__I18N_KEY_VALUE_MAP__[u] = o), u;
4132
4167
  }, this.t = globalThis.$t, globalThis.$deepScan = function(o) {
4133
4168
  return o;
4134
4169
  }, globalThis.__GC_I18N_GET_REQUEST_TOKEN__ = this.getRequestToken, globalThis.$clearI18n = this.clearI18n = () => {
4135
- Et({
4170
+ St({
4136
4171
  appCode: this.appCode,
4137
4172
  cacheScope: this.activeCacheScope
4138
4173
  });
@@ -4212,12 +4247,12 @@ class J {
4212
4247
  typeof document < "u" && (document.documentElement.dir = this._isRTL ? "rtl" : "ltr", document.documentElement.lang = this.locale);
4213
4248
  }
4214
4249
  notifyLanguageChanged(e, n) {
4215
- (this.vueApps && this.vueApps.size > 0 || this.vueInstances && this.vueInstances.size > 0) && kt(() => {
4250
+ (this.vueApps && this.vueApps.size > 0 || this.vueInstances && this.vueInstances.size > 0) && Et(() => {
4216
4251
  const o = /* @__PURE__ */ new Set();
4217
4252
  this.vueApps && this.vueApps.forEach((s) => {
4218
- s && s._instance && vt(s._instance, o);
4253
+ s && s._instance && xt(s._instance, o);
4219
4254
  }), this.vueInstances && this.vueInstances.forEach((s) => {
4220
- Qn(s, o);
4255
+ eo(s, o);
4221
4256
  });
4222
4257
  }), typeof window < "u" && typeof CustomEvent == "function" && window.dispatchEvent(
4223
4258
  new CustomEvent("gc-i18n-language-changed", {
@@ -4229,11 +4264,20 @@ class J {
4229
4264
  );
4230
4265
  }
4231
4266
  setToken(e, n = {}) {
4232
- const o = this.normalizeAuthInfo(n), s = this.token, i = this.updateRequestAuthIdentity(o);
4233
- return this.tokenResolveVersion++, this.baseToken = e || "", this.token = this.baseToken, this.persistI18nConfig(), s !== this.token || i ? this.refreshLanguageForCurrentAuth() : Promise.resolve(!1);
4267
+ const o = this.token, s = this.activeCacheScope, i = {
4268
+ appCode: n.appCode || this.appCode,
4269
+ orgCode: n.orgCode || "",
4270
+ userCode: n.userCode || ""
4271
+ };
4272
+ if (this.i18nTokenRequest && (!i.appCode || !i.orgCode || !i.userCode))
4273
+ return console.warn(
4274
+ "临时 token 模式调用 setToken 时必须提供 appCode、orgCode、userCode 三元身份"
4275
+ ), Promise.resolve(!1);
4276
+ const r = this.updateRequestAuthIdentity(n);
4277
+ return this.tokenResolveVersion++, this.baseToken = e || "", this.token = this.baseToken, this.i18nTokenRequest && (this.activeCacheScope = n.cacheScope || n.scope || Xe(i) || "user"), this.persistI18nConfig(), o !== this.token || s !== this.activeCacheScope || r ? this.refreshLanguageForCurrentAuth() : Promise.resolve(!1);
4234
4278
  }
4235
4279
  async getLanguages(e = !1) {
4236
- return await Kt({
4280
+ return await Gt({
4237
4281
  baseUrl: this.baseUrl,
4238
4282
  token: this.token,
4239
4283
  appCode: this.appCode,
@@ -4247,7 +4291,7 @@ class J {
4247
4291
  let l = E.get(r);
4248
4292
  if (y.isEmpty(l))
4249
4293
  try {
4250
- const a = await Xn.get(
4294
+ const a = await Jn.get(
4251
4295
  `https://cdn.ihotel.cn/i18n_messages/${e}.json`
4252
4296
  );
4253
4297
  if (a) {
@@ -4261,7 +4305,7 @@ class J {
4261
4305
  ), l = {};
4262
4306
  }
4263
4307
  try {
4264
- const a = await co({
4308
+ const a = await uo({
4265
4309
  baseUrl: this.baseUrl,
4266
4310
  appCode: this.appCode,
4267
4311
  language: e || this.locale,
@@ -4273,7 +4317,7 @@ class J {
4273
4317
  if (s !== this.authVersion || i !== this.languageVersion)
4274
4318
  return !1;
4275
4319
  if (a && Array.isArray(a)) {
4276
- const d = oo(a), u = y.assign(
4320
+ const d = so(a), u = y.assign(
4277
4321
  {},
4278
4322
  l,
4279
4323
  y.get(this.messages, e),
@@ -4301,8 +4345,8 @@ class J {
4301
4345
  }
4302
4346
  }
4303
4347
  install(e, n = {}) {
4304
- if (Jn(e)) {
4305
- const o = yt(e);
4348
+ if (Qn(e)) {
4349
+ const o = kt(e);
4306
4350
  if (o.prototype.$t = this.t || globalThis.$t, o.prototype.$i18n = this.i18n, !J._vue2UpdateMixinRegistered && o.mixin) {
4307
4351
  J._vue2UpdateMixinRegistered = !0;
4308
4352
  const s = this;
@@ -4327,9 +4371,9 @@ class J {
4327
4371
  });
4328
4372
  }
4329
4373
  e.component("i18n-earth", {
4330
- ...Vt,
4374
+ ...Ht,
4331
4375
  props: {
4332
- ...Vt.props,
4376
+ ...Ht.props,
4333
4377
  baseUrl: {
4334
4378
  type: String,
4335
4379
  default: this.baseUrl