@sofiakb/elf-js 0.0.1-dev.0 → 0.0.1-dev.2

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.
@@ -0,0 +1,1830 @@
1
+ var vt = typeof global == "object" && global && global.Object === Object && global, Tn = typeof self == "object" && self && self.Object === Object && self, j = vt || Tn || Function("return this")(), se = j.Symbol, kt = Object.prototype, En = kt.hasOwnProperty, Pn = kt.toString, K = se ? se.toStringTag : void 0;
2
+ function $n(e) {
3
+ var t = En.call(e, K), n = e[K];
4
+ try {
5
+ e[K] = void 0;
6
+ var o = !0;
7
+ } catch {
8
+ }
9
+ var r = Pn.call(e);
10
+ return o && (t ? e[K] = n : delete e[K]), r;
11
+ }
12
+ var Bn = Object.prototype, Sn = Bn.toString;
13
+ function jn(e) {
14
+ return Sn.call(e);
15
+ }
16
+ var Ln = "[object Null]", In = "[object Undefined]", Ze = se ? se.toStringTag : void 0;
17
+ function Z(e) {
18
+ return e == null ? e === void 0 ? In : Ln : Ze && Ze in Object(e) ? $n(e) : jn(e);
19
+ }
20
+ function Oe(e) {
21
+ return e != null && typeof e == "object";
22
+ }
23
+ var On = Array.isArray;
24
+ function xt(e) {
25
+ var t = typeof e;
26
+ return e != null && (t == "object" || t == "function");
27
+ }
28
+ var Mn = "[object AsyncFunction]", Hn = "[object Function]", Dn = "[object GeneratorFunction]", Fn = "[object Proxy]";
29
+ function Ct(e) {
30
+ if (!xt(e))
31
+ return !1;
32
+ var t = Z(e);
33
+ return t == Hn || t == Dn || t == Mn || t == Fn;
34
+ }
35
+ var xe = j["__core-js_shared__"], Ge = function() {
36
+ var e = /[^.]+$/.exec(xe && xe.keys && xe.keys.IE_PROTO || "");
37
+ return e ? "Symbol(src)_1." + e : "";
38
+ }();
39
+ function zn(e) {
40
+ return !!Ge && Ge in e;
41
+ }
42
+ var Vn = Function.prototype, qn = Vn.toString;
43
+ function H(e) {
44
+ if (e != null) {
45
+ try {
46
+ return qn.call(e);
47
+ } catch {
48
+ }
49
+ try {
50
+ return e + "";
51
+ } catch {
52
+ }
53
+ }
54
+ return "";
55
+ }
56
+ var Rn = /[\\^$.*+?()[\]{}|]/g, Nn = /^\[object .+?Constructor\]$/, Wn = Function.prototype, Un = Object.prototype, _n = Wn.toString, Yn = Un.hasOwnProperty, Kn = RegExp(
57
+ "^" + _n.call(Yn).replace(Rn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
58
+ );
59
+ function Xn(e) {
60
+ if (!xt(e) || zn(e))
61
+ return !1;
62
+ var t = Ct(e) ? Kn : Nn;
63
+ return t.test(H(e));
64
+ }
65
+ function Zn(e, t) {
66
+ return e == null ? void 0 : e[t];
67
+ }
68
+ function G(e, t) {
69
+ var n = Zn(e, t);
70
+ return Xn(n) ? n : void 0;
71
+ }
72
+ var Pe = G(j, "WeakMap"), Gn = 9007199254740991;
73
+ function At(e) {
74
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Gn;
75
+ }
76
+ function Jn(e) {
77
+ return e != null && At(e.length) && !Ct(e);
78
+ }
79
+ var Qn = Object.prototype;
80
+ function Tt(e) {
81
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || Qn;
82
+ return e === n;
83
+ }
84
+ var eo = "[object Arguments]";
85
+ function Je(e) {
86
+ return Oe(e) && Z(e) == eo;
87
+ }
88
+ var Et = Object.prototype, to = Et.hasOwnProperty, no = Et.propertyIsEnumerable, oo = Je(/* @__PURE__ */ function() {
89
+ return arguments;
90
+ }()) ? Je : function(e) {
91
+ return Oe(e) && to.call(e, "callee") && !no.call(e, "callee");
92
+ };
93
+ function ro() {
94
+ return !1;
95
+ }
96
+ var Pt = typeof exports == "object" && exports && !exports.nodeType && exports, Qe = Pt && typeof module == "object" && module && !module.nodeType && module, so = Qe && Qe.exports === Pt, et = so ? j.Buffer : void 0, io = et ? et.isBuffer : void 0, ao = io || ro, lo = "[object Arguments]", co = "[object Array]", uo = "[object Boolean]", wo = "[object Date]", fo = "[object Error]", mo = "[object Function]", go = "[object Map]", ho = "[object Number]", po = "[object Object]", bo = "[object RegExp]", yo = "[object Set]", vo = "[object String]", ko = "[object WeakMap]", xo = "[object ArrayBuffer]", Co = "[object DataView]", Ao = "[object Float32Array]", To = "[object Float64Array]", Eo = "[object Int8Array]", Po = "[object Int16Array]", $o = "[object Int32Array]", Bo = "[object Uint8Array]", So = "[object Uint8ClampedArray]", jo = "[object Uint16Array]", Lo = "[object Uint32Array]", f = {};
97
+ f[Ao] = f[To] = f[Eo] = f[Po] = f[$o] = f[Bo] = f[So] = f[jo] = f[Lo] = !0;
98
+ f[lo] = f[co] = f[xo] = f[uo] = f[Co] = f[wo] = f[fo] = f[mo] = f[go] = f[ho] = f[po] = f[bo] = f[yo] = f[vo] = f[ko] = !1;
99
+ function Io(e) {
100
+ return Oe(e) && At(e.length) && !!f[Z(e)];
101
+ }
102
+ function Oo(e) {
103
+ return function(t) {
104
+ return e(t);
105
+ };
106
+ }
107
+ var $t = typeof exports == "object" && exports && !exports.nodeType && exports, X = $t && typeof module == "object" && module && !module.nodeType && module, Mo = X && X.exports === $t, Ce = Mo && vt.process, tt = function() {
108
+ try {
109
+ var e = X && X.require && X.require("util").types;
110
+ return e || Ce && Ce.binding && Ce.binding("util");
111
+ } catch {
112
+ }
113
+ }(), nt = tt && tt.isTypedArray, Ho = nt ? Oo(nt) : Io;
114
+ function Do(e, t) {
115
+ return function(n) {
116
+ return e(t(n));
117
+ };
118
+ }
119
+ var Fo = Do(Object.keys, Object), zo = Object.prototype, Vo = zo.hasOwnProperty;
120
+ function qo(e) {
121
+ if (!Tt(e))
122
+ return Fo(e);
123
+ var t = [];
124
+ for (var n in Object(e))
125
+ Vo.call(e, n) && n != "constructor" && t.push(n);
126
+ return t;
127
+ }
128
+ var $e = G(j, "Map"), Be = G(j, "DataView"), Se = G(j, "Promise"), je = G(j, "Set"), ot = "[object Map]", Ro = "[object Object]", rt = "[object Promise]", st = "[object Set]", it = "[object WeakMap]", at = "[object DataView]", No = H(Be), Wo = H($e), Uo = H(Se), _o = H(je), Yo = H(Pe), I = Z;
129
+ (Be && I(new Be(new ArrayBuffer(1))) != at || $e && I(new $e()) != ot || Se && I(Se.resolve()) != rt || je && I(new je()) != st || Pe && I(new Pe()) != it) && (I = function(e) {
130
+ var t = Z(e), n = t == Ro ? e.constructor : void 0, o = n ? H(n) : "";
131
+ if (o)
132
+ switch (o) {
133
+ case No:
134
+ return at;
135
+ case Wo:
136
+ return ot;
137
+ case Uo:
138
+ return rt;
139
+ case _o:
140
+ return st;
141
+ case Yo:
142
+ return it;
143
+ }
144
+ return t;
145
+ });
146
+ var Ko = "[object Map]", Xo = "[object Set]", Zo = Object.prototype, Go = Zo.hasOwnProperty;
147
+ function Jo(e) {
148
+ if (e == null)
149
+ return !0;
150
+ if (Jn(e) && (On(e) || typeof e == "string" || typeof e.splice == "function" || ao(e) || Ho(e) || oo(e)))
151
+ return !e.length;
152
+ var t = I(e);
153
+ if (t == Ko || t == Xo)
154
+ return !e.size;
155
+ if (Tt(e))
156
+ return !qo(e).length;
157
+ for (var n in e)
158
+ if (Go.call(e, n))
159
+ return !1;
160
+ return !0;
161
+ }
162
+ function Qo(e) {
163
+ return e == null;
164
+ }
165
+ const Ri = (e) => {
166
+ if (Jo(e == null ? void 0 : e.toString()))
167
+ return null;
168
+ const t = (e == null ? void 0 : e.toString()) ?? "", o = /calc\(([^)]+)\)/.exec(t);
169
+ return Qo(o == null ? void 0 : o[1]) ? t.includes("%") || isNaN(Number(t)) ? isNaN(parseInt(t)) ? null : t : parseInt(t) + "px" : t;
170
+ }, Ni = (e) => btoa(encodeURI(`${e.name ?? e ?? "name"}-${e.id ?? -1}`)), Wi = (e, t = !0) => typeof e < "u" && (t ? e !== null : !0), Bt = (e, t) => {
171
+ if (e = e.replace(/^#/, ""), !/^([0-9A-Fa-f]{6})$/.test(e))
172
+ throw new Error("Invalid hex color code");
173
+ const n = parseInt(e, 16), o = n >> 16 & 255, r = n >> 8 & 255, i = n & 255;
174
+ if (isNaN(o) || isNaN(r) || isNaN(i))
175
+ throw new Error("Invalid hex color code");
176
+ return { r: o, g: r, b: i, a: t > 1 ? t / 100 : t };
177
+ }, Ui = (e, t) => {
178
+ const { r: n, g: o, b: r, a: i } = Bt(e, t);
179
+ return `rgba(${n}, ${o}, ${r}, ${i})`;
180
+ }, _i = (e) => {
181
+ const { r: t, g: n, b: o } = Bt(e, 1);
182
+ return { r: t, g: n, b: o };
183
+ };
184
+ /*!
185
+ * sweetalert2 v11.19.1
186
+ * Released under the MIT License.
187
+ */
188
+ function St(e, t, n) {
189
+ if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
190
+ throw new TypeError("Private element is not present on this object");
191
+ }
192
+ function er(e, t) {
193
+ if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
194
+ }
195
+ function lt(e, t) {
196
+ return e.get(St(e, t));
197
+ }
198
+ function tr(e, t, n) {
199
+ er(e, t), t.set(e, n);
200
+ }
201
+ function nr(e, t, n) {
202
+ return e.set(St(e, t), n), n;
203
+ }
204
+ const or = 100, a = {}, rr = () => {
205
+ a.previousActiveElement instanceof HTMLElement ? (a.previousActiveElement.focus(), a.previousActiveElement = null) : document.body && document.body.focus();
206
+ }, sr = (e) => new Promise((t) => {
207
+ if (!e)
208
+ return t();
209
+ const n = window.scrollX, o = window.scrollY;
210
+ a.restoreFocusTimeout = setTimeout(() => {
211
+ rr(), t();
212
+ }, or), window.scrollTo(n, o);
213
+ }), jt = "swal2-", ir = ["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"], s = ir.reduce(
214
+ (e, t) => (e[t] = jt + t, e),
215
+ /** @type {SwalClasses} */
216
+ {}
217
+ ), ar = ["success", "warning", "info", "question", "error"], ie = ar.reduce(
218
+ (e, t) => (e[t] = jt + t, e),
219
+ /** @type {SwalIcons} */
220
+ {}
221
+ ), Lt = "SweetAlert2:", Me = (e) => e.charAt(0).toUpperCase() + e.slice(1), y = (e) => {
222
+ console.warn(`${Lt} ${typeof e == "object" ? e.join(" ") : e}`);
223
+ }, D = (e) => {
224
+ console.error(`${Lt} ${e}`);
225
+ }, ct = [], lr = (e) => {
226
+ ct.includes(e) || (ct.push(e), y(e));
227
+ }, It = function(e) {
228
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
229
+ lr(`"${e}" is deprecated and will be removed in the next major release.${t ? ` Use "${t}" instead.` : ""}`);
230
+ }, he = (e) => typeof e == "function" ? e() : e, He = (e) => e && typeof e.toPromise == "function", J = (e) => He(e) ? e.toPromise() : Promise.resolve(e), De = (e) => e && Promise.resolve(e) === e, v = () => document.body.querySelector(`.${s.container}`), Q = (e) => {
231
+ const t = v();
232
+ return t ? t.querySelector(e) : null;
233
+ }, C = (e) => Q(`.${e}`), d = () => C(s.popup), W = () => C(s.icon), cr = () => C(s["icon-content"]), Ot = () => C(s.title), Fe = () => C(s["html-container"]), Mt = () => C(s.image), ze = () => C(s["progress-steps"]), pe = () => C(s["validation-message"]), P = () => (
234
+ /** @type {HTMLButtonElement} */
235
+ Q(`.${s.actions} .${s.confirm}`)
236
+ ), U = () => (
237
+ /** @type {HTMLButtonElement} */
238
+ Q(`.${s.actions} .${s.cancel}`)
239
+ ), F = () => (
240
+ /** @type {HTMLButtonElement} */
241
+ Q(`.${s.actions} .${s.deny}`)
242
+ ), dr = () => C(s["input-label"]), _ = () => Q(`.${s.loader}`), ee = () => C(s.actions), Ht = () => C(s.footer), be = () => C(s["timer-progress-bar"]), Ve = () => C(s.close), ur = `
243
+ a[href],
244
+ area[href],
245
+ input:not([disabled]),
246
+ select:not([disabled]),
247
+ textarea:not([disabled]),
248
+ button:not([disabled]),
249
+ iframe,
250
+ object,
251
+ embed,
252
+ [tabindex="0"],
253
+ [contenteditable],
254
+ audio[controls],
255
+ video[controls],
256
+ summary
257
+ `, qe = () => {
258
+ const e = d();
259
+ if (!e)
260
+ return [];
261
+ const t = e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'), n = Array.from(t).sort((i, l) => {
262
+ const c = parseInt(i.getAttribute("tabindex") || "0"), m = parseInt(l.getAttribute("tabindex") || "0");
263
+ return c > m ? 1 : c < m ? -1 : 0;
264
+ }), o = e.querySelectorAll(ur), r = Array.from(o).filter((i) => i.getAttribute("tabindex") !== "-1");
265
+ return [...new Set(n.concat(r))].filter((i) => k(i));
266
+ }, Re = () => $(document.body, s.shown) && !$(document.body, s["toast-shown"]) && !$(document.body, s["no-backdrop"]), ye = () => {
267
+ const e = d();
268
+ return e ? $(e, s.toast) : !1;
269
+ }, wr = () => {
270
+ const e = d();
271
+ return e ? e.hasAttribute("data-loading") : !1;
272
+ }, A = (e, t) => {
273
+ if (e.textContent = "", t) {
274
+ const o = new DOMParser().parseFromString(t, "text/html"), r = o.querySelector("head");
275
+ r && Array.from(r.childNodes).forEach((l) => {
276
+ e.appendChild(l);
277
+ });
278
+ const i = o.querySelector("body");
279
+ i && Array.from(i.childNodes).forEach((l) => {
280
+ l instanceof HTMLVideoElement || l instanceof HTMLAudioElement ? e.appendChild(l.cloneNode(!0)) : e.appendChild(l);
281
+ });
282
+ }
283
+ }, $ = (e, t) => {
284
+ if (!t)
285
+ return !1;
286
+ const n = t.split(/\s+/);
287
+ for (let o = 0; o < n.length; o++)
288
+ if (!e.classList.contains(n[o]))
289
+ return !1;
290
+ return !0;
291
+ }, fr = (e, t) => {
292
+ Array.from(e.classList).forEach((n) => {
293
+ !Object.values(s).includes(n) && !Object.values(ie).includes(n) && !Object.values(t.showClass || {}).includes(n) && e.classList.remove(n);
294
+ });
295
+ }, x = (e, t, n) => {
296
+ if (fr(e, t), !t.customClass)
297
+ return;
298
+ const o = t.customClass[
299
+ /** @type {keyof SweetAlertCustomClass} */
300
+ n
301
+ ];
302
+ if (o) {
303
+ if (typeof o != "string" && !o.forEach) {
304
+ y(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof o}"`);
305
+ return;
306
+ }
307
+ u(e, o);
308
+ }
309
+ }, ve = (e, t) => {
310
+ if (!t)
311
+ return null;
312
+ switch (t) {
313
+ case "select":
314
+ case "textarea":
315
+ case "file":
316
+ return e.querySelector(`.${s.popup} > .${s[t]}`);
317
+ case "checkbox":
318
+ return e.querySelector(`.${s.popup} > .${s.checkbox} input`);
319
+ case "radio":
320
+ return e.querySelector(`.${s.popup} > .${s.radio} input:checked`) || e.querySelector(`.${s.popup} > .${s.radio} input:first-child`);
321
+ case "range":
322
+ return e.querySelector(`.${s.popup} > .${s.range} input`);
323
+ default:
324
+ return e.querySelector(`.${s.popup} > .${s.input}`);
325
+ }
326
+ }, Dt = (e) => {
327
+ if (e.focus(), e.type !== "file") {
328
+ const t = e.value;
329
+ e.value = "", e.value = t;
330
+ }
331
+ }, Ft = (e, t, n) => {
332
+ !e || !t || (typeof t == "string" && (t = t.split(/\s+/).filter(Boolean)), t.forEach((o) => {
333
+ Array.isArray(e) ? e.forEach((r) => {
334
+ n ? r.classList.add(o) : r.classList.remove(o);
335
+ }) : n ? e.classList.add(o) : e.classList.remove(o);
336
+ }));
337
+ }, u = (e, t) => {
338
+ Ft(e, t, !0);
339
+ }, T = (e, t) => {
340
+ Ft(e, t, !1);
341
+ }, B = (e, t) => {
342
+ const n = Array.from(e.children);
343
+ for (let o = 0; o < n.length; o++) {
344
+ const r = n[o];
345
+ if (r instanceof HTMLElement && $(r, t))
346
+ return r;
347
+ }
348
+ }, O = (e, t, n) => {
349
+ n === `${parseInt(n)}` && (n = parseInt(n)), n || parseInt(n) === 0 ? e.style.setProperty(t, typeof n == "number" ? `${n}px` : n) : e.style.removeProperty(t);
350
+ }, p = function(e) {
351
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "flex";
352
+ e && (e.style.display = t);
353
+ }, b = (e) => {
354
+ e && (e.style.display = "none");
355
+ }, Ne = function(e) {
356
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "block";
357
+ e && new MutationObserver(() => {
358
+ te(e, e.innerHTML, t);
359
+ }).observe(e, {
360
+ childList: !0,
361
+ subtree: !0
362
+ });
363
+ }, dt = (e, t, n, o) => {
364
+ const r = e.querySelector(t);
365
+ r && r.style.setProperty(n, o);
366
+ }, te = function(e, t) {
367
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "flex";
368
+ t ? p(e, n) : b(e);
369
+ }, k = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), mr = () => !k(P()) && !k(F()) && !k(U()), ut = (e) => e.scrollHeight > e.clientHeight, zt = (e) => {
370
+ const t = window.getComputedStyle(e), n = parseFloat(t.getPropertyValue("animation-duration") || "0"), o = parseFloat(t.getPropertyValue("transition-duration") || "0");
371
+ return n > 0 || o > 0;
372
+ }, We = function(e) {
373
+ let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
374
+ const n = be();
375
+ n && k(n) && (t && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
376
+ n.style.transition = `width ${e / 1e3}s linear`, n.style.width = "0%";
377
+ }, 10));
378
+ }, gr = () => {
379
+ const e = be();
380
+ if (!e)
381
+ return;
382
+ const t = parseInt(window.getComputedStyle(e).width);
383
+ e.style.removeProperty("transition"), e.style.width = "100%";
384
+ const n = parseInt(window.getComputedStyle(e).width), o = t / n * 100;
385
+ e.style.width = `${o}%`;
386
+ }, hr = () => typeof window > "u" || typeof document > "u", pr = `
387
+ <div aria-labelledby="${s.title}" aria-describedby="${s["html-container"]}" class="${s.popup}" tabindex="-1">
388
+ <button type="button" class="${s.close}"></button>
389
+ <ul class="${s["progress-steps"]}"></ul>
390
+ <div class="${s.icon}"></div>
391
+ <img class="${s.image}" />
392
+ <h2 class="${s.title}" id="${s.title}"></h2>
393
+ <div class="${s["html-container"]}" id="${s["html-container"]}"></div>
394
+ <input class="${s.input}" id="${s.input}" />
395
+ <input type="file" class="${s.file}" />
396
+ <div class="${s.range}">
397
+ <input type="range" />
398
+ <output></output>
399
+ </div>
400
+ <select class="${s.select}" id="${s.select}"></select>
401
+ <div class="${s.radio}"></div>
402
+ <label class="${s.checkbox}">
403
+ <input type="checkbox" id="${s.checkbox}" />
404
+ <span class="${s.label}"></span>
405
+ </label>
406
+ <textarea class="${s.textarea}" id="${s.textarea}"></textarea>
407
+ <div class="${s["validation-message"]}" id="${s["validation-message"]}"></div>
408
+ <div class="${s.actions}">
409
+ <div class="${s.loader}"></div>
410
+ <button type="button" class="${s.confirm}"></button>
411
+ <button type="button" class="${s.deny}"></button>
412
+ <button type="button" class="${s.cancel}"></button>
413
+ </div>
414
+ <div class="${s.footer}"></div>
415
+ <div class="${s["timer-progress-bar-container"]}">
416
+ <div class="${s["timer-progress-bar"]}"></div>
417
+ </div>
418
+ </div>
419
+ `.replace(/(^|\n)\s*/g, ""), br = () => {
420
+ const e = v();
421
+ return e ? (e.remove(), T([document.documentElement, document.body], [s["no-backdrop"], s["toast-shown"], s["has-column"]]), !0) : !1;
422
+ }, L = () => {
423
+ a.currentInstance.resetValidationMessage();
424
+ }, yr = () => {
425
+ const e = d(), t = B(e, s.input), n = B(e, s.file), o = e.querySelector(`.${s.range} input`), r = e.querySelector(`.${s.range} output`), i = B(e, s.select), l = e.querySelector(`.${s.checkbox} input`), c = B(e, s.textarea);
426
+ t.oninput = L, n.onchange = L, i.onchange = L, l.onchange = L, c.oninput = L, o.oninput = () => {
427
+ L(), r.value = o.value;
428
+ }, o.onchange = () => {
429
+ L(), r.value = o.value;
430
+ };
431
+ }, vr = (e) => typeof e == "string" ? document.querySelector(e) : e, kr = (e) => {
432
+ const t = d();
433
+ t.setAttribute("role", e.toast ? "alert" : "dialog"), t.setAttribute("aria-live", e.toast ? "polite" : "assertive"), e.toast || t.setAttribute("aria-modal", "true");
434
+ }, xr = (e) => {
435
+ window.getComputedStyle(e).direction === "rtl" && u(v(), s.rtl);
436
+ }, Cr = (e) => {
437
+ const t = br();
438
+ if (hr()) {
439
+ D("SweetAlert2 requires document to initialize");
440
+ return;
441
+ }
442
+ const n = document.createElement("div");
443
+ n.className = s.container, t && u(n, s["no-transition"]), A(n, pr), n.dataset.swal2Theme = e.theme;
444
+ const o = vr(e.target);
445
+ o.appendChild(n), kr(e), xr(o), yr();
446
+ }, Ue = (e, t) => {
447
+ e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? Ar(e, t) : e && A(t, e);
448
+ }, Ar = (e, t) => {
449
+ e.jquery ? Tr(t, e) : A(t, e.toString());
450
+ }, Tr = (e, t) => {
451
+ if (e.textContent = "", 0 in t)
452
+ for (let n = 0; n in t; n++)
453
+ e.appendChild(t[n].cloneNode(!0));
454
+ else
455
+ e.appendChild(t.cloneNode(!0));
456
+ }, Er = (e, t) => {
457
+ const n = ee(), o = _();
458
+ !n || !o || (!t.showConfirmButton && !t.showDenyButton && !t.showCancelButton ? b(n) : p(n), x(n, t, "actions"), Pr(n, o, t), A(o, t.loaderHtml || ""), x(o, t, "loader"));
459
+ };
460
+ function Pr(e, t, n) {
461
+ const o = P(), r = F(), i = U();
462
+ !o || !r || !i || (Te(o, "confirm", n), Te(r, "deny", n), Te(i, "cancel", n), $r(o, r, i, n), n.reverseButtons && (n.toast ? (e.insertBefore(i, o), e.insertBefore(r, o)) : (e.insertBefore(i, t), e.insertBefore(r, t), e.insertBefore(o, t))));
463
+ }
464
+ function $r(e, t, n, o) {
465
+ if (!o.buttonsStyling) {
466
+ T([e, t, n], s.styled);
467
+ return;
468
+ }
469
+ u([e, t, n], s.styled), o.confirmButtonColor && e.style.setProperty("--swal2-confirm-button-background-color", o.confirmButtonColor), o.denyButtonColor && t.style.setProperty("--swal2-deny-button-background-color", o.denyButtonColor), o.cancelButtonColor && n.style.setProperty("--swal2-cancel-button-background-color", o.cancelButtonColor), Ae(e), Ae(t), Ae(n);
470
+ }
471
+ function Ae(e) {
472
+ const t = window.getComputedStyle(e), n = t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/, "rgba($1, $2, $3, 0.5)");
473
+ e.style.setProperty("--swal2-action-button-outline", t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/, ` ${n}`));
474
+ }
475
+ function Te(e, t, n) {
476
+ const o = (
477
+ /** @type {'Confirm' | 'Deny' | 'Cancel'} */
478
+ Me(t)
479
+ );
480
+ te(e, n[`show${o}Button`], "inline-block"), A(e, n[`${t}ButtonText`] || ""), e.setAttribute("aria-label", n[`${t}ButtonAriaLabel`] || ""), e.className = s[t], x(e, n, `${t}Button`);
481
+ }
482
+ const Br = (e, t) => {
483
+ const n = Ve();
484
+ n && (A(n, t.closeButtonHtml || ""), x(n, t, "closeButton"), te(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel || ""));
485
+ }, Sr = (e, t) => {
486
+ const n = v();
487
+ n && (jr(n, t.backdrop), Lr(n, t.position), Ir(n, t.grow), x(n, t, "container"));
488
+ };
489
+ function jr(e, t) {
490
+ typeof t == "string" ? e.style.background = t : t || u([document.documentElement, document.body], s["no-backdrop"]);
491
+ }
492
+ function Lr(e, t) {
493
+ t && (t in s ? u(e, s[t]) : (y('The "position" parameter is not valid, defaulting to "center"'), u(e, s.center)));
494
+ }
495
+ function Ir(e, t) {
496
+ t && u(e, s[`grow-${t}`]);
497
+ }
498
+ var w = {
499
+ innerParams: /* @__PURE__ */ new WeakMap(),
500
+ domCache: /* @__PURE__ */ new WeakMap()
501
+ };
502
+ const Or = ["input", "file", "range", "select", "radio", "checkbox", "textarea"], Mr = (e, t) => {
503
+ const n = d();
504
+ if (!n)
505
+ return;
506
+ const o = w.innerParams.get(e), r = !o || t.input !== o.input;
507
+ Or.forEach((i) => {
508
+ const l = B(n, s[i]);
509
+ l && (Fr(i, t.inputAttributes), l.className = s[i], r && b(l));
510
+ }), t.input && (r && Hr(t), zr(t));
511
+ }, Hr = (e) => {
512
+ if (!e.input)
513
+ return;
514
+ if (!g[e.input]) {
515
+ D(`Unexpected type of input! Expected ${Object.keys(g).join(" | ")}, got "${e.input}"`);
516
+ return;
517
+ }
518
+ const t = Vt(e.input);
519
+ if (!t)
520
+ return;
521
+ const n = g[e.input](t, e);
522
+ p(t), e.inputAutoFocus && setTimeout(() => {
523
+ Dt(n);
524
+ });
525
+ }, Dr = (e) => {
526
+ for (let t = 0; t < e.attributes.length; t++) {
527
+ const n = e.attributes[t].name;
528
+ ["id", "type", "value", "style"].includes(n) || e.removeAttribute(n);
529
+ }
530
+ }, Fr = (e, t) => {
531
+ const n = d();
532
+ if (!n)
533
+ return;
534
+ const o = ve(n, e);
535
+ if (o) {
536
+ Dr(o);
537
+ for (const r in t)
538
+ o.setAttribute(r, t[r]);
539
+ }
540
+ }, zr = (e) => {
541
+ if (!e.input)
542
+ return;
543
+ const t = Vt(e.input);
544
+ t && x(t, e, "input");
545
+ }, _e = (e, t) => {
546
+ !e.placeholder && t.inputPlaceholder && (e.placeholder = t.inputPlaceholder);
547
+ }, ne = (e, t, n) => {
548
+ if (n.inputLabel) {
549
+ const o = document.createElement("label"), r = s["input-label"];
550
+ o.setAttribute("for", e.id), o.className = r, typeof n.customClass == "object" && u(o, n.customClass.inputLabel), o.innerText = n.inputLabel, t.insertAdjacentElement("beforebegin", o);
551
+ }
552
+ }, Vt = (e) => {
553
+ const t = d();
554
+ if (t)
555
+ return B(t, s[
556
+ /** @type {SwalClass} */
557
+ e
558
+ ] || s.input);
559
+ }, ae = (e, t) => {
560
+ ["string", "number"].includes(typeof t) ? e.value = `${t}` : De(t) || y(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`);
561
+ }, g = {};
562
+ g.text = g.email = g.password = g.number = g.tel = g.url = g.search = g.date = g["datetime-local"] = g.time = g.week = g.month = /** @type {(input: Input | HTMLElement, params: SweetAlertOptions) => Input} */
563
+ (e, t) => (ae(e, t.inputValue), ne(e, e, t), _e(e, t), e.type = t.input, e);
564
+ g.file = (e, t) => (ne(e, e, t), _e(e, t), e);
565
+ g.range = (e, t) => {
566
+ const n = e.querySelector("input"), o = e.querySelector("output");
567
+ return ae(n, t.inputValue), n.type = t.input, ae(o, t.inputValue), ne(n, e, t), e;
568
+ };
569
+ g.select = (e, t) => {
570
+ if (e.textContent = "", t.inputPlaceholder) {
571
+ const n = document.createElement("option");
572
+ A(n, t.inputPlaceholder), n.value = "", n.disabled = !0, n.selected = !0, e.appendChild(n);
573
+ }
574
+ return ne(e, e, t), e;
575
+ };
576
+ g.radio = (e) => (e.textContent = "", e);
577
+ g.checkbox = (e, t) => {
578
+ const n = ve(d(), "checkbox");
579
+ n.value = "1", n.checked = !!t.inputValue;
580
+ const o = e.querySelector("span");
581
+ return A(o, t.inputPlaceholder || t.inputLabel), n;
582
+ };
583
+ g.textarea = (e, t) => {
584
+ ae(e, t.inputValue), _e(e, t), ne(e, e, t);
585
+ const n = (o) => parseInt(window.getComputedStyle(o).marginLeft) + parseInt(window.getComputedStyle(o).marginRight);
586
+ return setTimeout(() => {
587
+ if ("MutationObserver" in window) {
588
+ const o = parseInt(window.getComputedStyle(d()).width), r = () => {
589
+ if (!document.body.contains(e))
590
+ return;
591
+ const i = e.offsetWidth + n(e);
592
+ i > o ? d().style.width = `${i}px` : O(d(), "width", t.width);
593
+ };
594
+ new MutationObserver(r).observe(e, {
595
+ attributes: !0,
596
+ attributeFilter: ["style"]
597
+ });
598
+ }
599
+ }), e;
600
+ };
601
+ const Vr = (e, t) => {
602
+ const n = Fe();
603
+ n && (Ne(n), x(n, t, "htmlContainer"), t.html ? (Ue(t.html, n), p(n, "block")) : t.text ? (n.textContent = t.text, p(n, "block")) : b(n), Mr(e, t));
604
+ }, qr = (e, t) => {
605
+ const n = Ht();
606
+ n && (Ne(n), te(n, t.footer, "block"), t.footer && Ue(t.footer, n), x(n, t, "footer"));
607
+ }, Rr = (e, t) => {
608
+ const n = w.innerParams.get(e), o = W();
609
+ if (!o)
610
+ return;
611
+ if (n && t.icon === n.icon) {
612
+ ft(o, t), wt(o, t);
613
+ return;
614
+ }
615
+ if (!t.icon && !t.iconHtml) {
616
+ b(o);
617
+ return;
618
+ }
619
+ if (t.icon && Object.keys(ie).indexOf(t.icon) === -1) {
620
+ D(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`), b(o);
621
+ return;
622
+ }
623
+ p(o), ft(o, t), wt(o, t), u(o, t.showClass && t.showClass.icon), window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", qt);
624
+ }, wt = (e, t) => {
625
+ for (const [n, o] of Object.entries(ie))
626
+ t.icon !== n && T(e, o);
627
+ u(e, t.icon && ie[t.icon]), Ur(e, t), qt(), x(e, t, "icon");
628
+ }, qt = () => {
629
+ const e = d();
630
+ if (!e)
631
+ return;
632
+ const t = window.getComputedStyle(e).getPropertyValue("background-color"), n = e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");
633
+ for (let o = 0; o < n.length; o++)
634
+ n[o].style.backgroundColor = t;
635
+ }, Nr = `
636
+ <div class="swal2-success-circular-line-left"></div>
637
+ <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
638
+ <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
639
+ <div class="swal2-success-circular-line-right"></div>
640
+ `, Wr = `
641
+ <span class="swal2-x-mark">
642
+ <span class="swal2-x-mark-line-left"></span>
643
+ <span class="swal2-x-mark-line-right"></span>
644
+ </span>
645
+ `, ft = (e, t) => {
646
+ if (!t.icon && !t.iconHtml)
647
+ return;
648
+ let n = e.innerHTML, o = "";
649
+ t.iconHtml ? o = mt(t.iconHtml) : t.icon === "success" ? (o = Nr, n = n.replace(/ style=".*?"/g, "")) : t.icon === "error" ? o = Wr : t.icon && (o = mt({
650
+ question: "?",
651
+ warning: "!",
652
+ info: "i"
653
+ }[t.icon])), n.trim() !== o.trim() && A(e, o);
654
+ }, Ur = (e, t) => {
655
+ if (t.iconColor) {
656
+ e.style.color = t.iconColor, e.style.borderColor = t.iconColor;
657
+ for (const n of [".swal2-success-line-tip", ".swal2-success-line-long", ".swal2-x-mark-line-left", ".swal2-x-mark-line-right"])
658
+ dt(e, n, "background-color", t.iconColor);
659
+ dt(e, ".swal2-success-ring", "border-color", t.iconColor);
660
+ }
661
+ }, mt = (e) => `<div class="${s["icon-content"]}">${e}</div>`, _r = (e, t) => {
662
+ const n = Mt();
663
+ if (n) {
664
+ if (!t.imageUrl) {
665
+ b(n);
666
+ return;
667
+ }
668
+ p(n, ""), n.setAttribute("src", t.imageUrl), n.setAttribute("alt", t.imageAlt || ""), O(n, "width", t.imageWidth), O(n, "height", t.imageHeight), n.className = s.image, x(n, t, "image");
669
+ }
670
+ };
671
+ let Ye = !1, Rt = 0, Nt = 0, Wt = 0, Ut = 0;
672
+ const Yr = (e) => {
673
+ e.addEventListener("mousedown", le), document.body.addEventListener("mousemove", ce), e.addEventListener("mouseup", de), e.addEventListener("touchstart", le), document.body.addEventListener("touchmove", ce), e.addEventListener("touchend", de);
674
+ }, Kr = (e) => {
675
+ e.removeEventListener("mousedown", le), document.body.removeEventListener("mousemove", ce), e.removeEventListener("mouseup", de), e.removeEventListener("touchstart", le), document.body.removeEventListener("touchmove", ce), e.removeEventListener("touchend", de);
676
+ }, le = (e) => {
677
+ const t = d();
678
+ if (e.target === t || W().contains(
679
+ /** @type {HTMLElement} */
680
+ e.target
681
+ )) {
682
+ Ye = !0;
683
+ const n = _t(e);
684
+ Rt = n.clientX, Nt = n.clientY, Wt = parseInt(t.style.insetInlineStart) || 0, Ut = parseInt(t.style.insetBlockStart) || 0, u(t, "swal2-dragging");
685
+ }
686
+ }, ce = (e) => {
687
+ const t = d();
688
+ if (Ye) {
689
+ let {
690
+ clientX: n,
691
+ clientY: o
692
+ } = _t(e);
693
+ t.style.insetInlineStart = `${Wt + (n - Rt)}px`, t.style.insetBlockStart = `${Ut + (o - Nt)}px`;
694
+ }
695
+ }, de = () => {
696
+ const e = d();
697
+ Ye = !1, T(e, "swal2-dragging");
698
+ }, _t = (e) => {
699
+ let t = 0, n = 0;
700
+ return e.type.startsWith("mouse") ? (t = /** @type {MouseEvent} */
701
+ e.clientX, n = /** @type {MouseEvent} */
702
+ e.clientY) : e.type.startsWith("touch") && (t = /** @type {TouchEvent} */
703
+ e.touches[0].clientX, n = /** @type {TouchEvent} */
704
+ e.touches[0].clientY), {
705
+ clientX: t,
706
+ clientY: n
707
+ };
708
+ }, Xr = (e, t) => {
709
+ const n = v(), o = d();
710
+ if (!(!n || !o)) {
711
+ if (t.toast) {
712
+ O(n, "width", t.width), o.style.width = "100%";
713
+ const r = _();
714
+ r && o.insertBefore(r, W());
715
+ } else
716
+ O(o, "width", t.width);
717
+ O(o, "padding", t.padding), t.color && (o.style.color = t.color), t.background && (o.style.background = t.background), b(pe()), Zr(o, t), t.draggable && !t.toast ? (u(o, s.draggable), Yr(o)) : (T(o, s.draggable), Kr(o));
718
+ }
719
+ }, Zr = (e, t) => {
720
+ const n = t.showClass || {};
721
+ e.className = `${s.popup} ${k(e) ? n.popup : ""}`, t.toast ? (u([document.documentElement, document.body], s["toast-shown"]), u(e, s.toast)) : u(e, s.modal), x(e, t, "popup"), typeof t.customClass == "string" && u(e, t.customClass), t.icon && u(e, s[`icon-${t.icon}`]);
722
+ }, Gr = (e, t) => {
723
+ const n = ze();
724
+ if (!n)
725
+ return;
726
+ const {
727
+ progressSteps: o,
728
+ currentProgressStep: r
729
+ } = t;
730
+ if (!o || o.length === 0 || r === void 0) {
731
+ b(n);
732
+ return;
733
+ }
734
+ p(n), n.textContent = "", r >= o.length && y("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"), o.forEach((i, l) => {
735
+ const c = Jr(i);
736
+ if (n.appendChild(c), l === r && u(c, s["active-progress-step"]), l !== o.length - 1) {
737
+ const m = Qr(t);
738
+ n.appendChild(m);
739
+ }
740
+ });
741
+ }, Jr = (e) => {
742
+ const t = document.createElement("li");
743
+ return u(t, s["progress-step"]), A(t, e), t;
744
+ }, Qr = (e) => {
745
+ const t = document.createElement("li");
746
+ return u(t, s["progress-step-line"]), e.progressStepsDistance && O(t, "width", e.progressStepsDistance), t;
747
+ }, es = (e, t) => {
748
+ const n = Ot();
749
+ n && (Ne(n), te(n, t.title || t.titleText, "block"), t.title && Ue(t.title, n), t.titleText && (n.innerText = t.titleText), x(n, t, "title"));
750
+ }, Yt = (e, t) => {
751
+ Xr(e, t), Sr(e, t), Gr(e, t), Rr(e, t), _r(e, t), es(e, t), Br(e, t), Vr(e, t), Er(e, t), qr(e, t);
752
+ const n = d();
753
+ typeof t.didRender == "function" && n && t.didRender(n), a.eventEmitter.emit("didRender", n);
754
+ }, ts = () => k(d()), Kt = () => {
755
+ var e;
756
+ return (e = P()) === null || e === void 0 ? void 0 : e.click();
757
+ }, ns = () => {
758
+ var e;
759
+ return (e = F()) === null || e === void 0 ? void 0 : e.click();
760
+ }, os = () => {
761
+ var e;
762
+ return (e = U()) === null || e === void 0 ? void 0 : e.click();
763
+ }, Y = Object.freeze({
764
+ cancel: "cancel",
765
+ backdrop: "backdrop",
766
+ close: "close",
767
+ esc: "esc",
768
+ timer: "timer"
769
+ }), Xt = (e) => {
770
+ e.keydownTarget && e.keydownHandlerAdded && (e.keydownTarget.removeEventListener("keydown", e.keydownHandler, {
771
+ capture: e.keydownListenerCapture
772
+ }), e.keydownHandlerAdded = !1);
773
+ }, rs = (e, t, n) => {
774
+ Xt(e), t.toast || (e.keydownHandler = (o) => is(t, o, n), e.keydownTarget = t.keydownListenerCapture ? window : d(), e.keydownListenerCapture = t.keydownListenerCapture, e.keydownTarget.addEventListener("keydown", e.keydownHandler, {
775
+ capture: e.keydownListenerCapture
776
+ }), e.keydownHandlerAdded = !0);
777
+ }, Le = (e, t) => {
778
+ var n;
779
+ const o = qe();
780
+ if (o.length) {
781
+ e = e + t, e === -2 && (e = o.length - 1), e === o.length ? e = 0 : e === -1 && (e = o.length - 1), o[e].focus();
782
+ return;
783
+ }
784
+ (n = d()) === null || n === void 0 || n.focus();
785
+ }, Zt = ["ArrowRight", "ArrowDown"], ss = ["ArrowLeft", "ArrowUp"], is = (e, t, n) => {
786
+ e && (t.isComposing || t.keyCode === 229 || (e.stopKeydownPropagation && t.stopPropagation(), t.key === "Enter" ? as(t, e) : t.key === "Tab" ? ls(t) : [...Zt, ...ss].includes(t.key) ? cs(t.key) : t.key === "Escape" && ds(t, e, n)));
787
+ }, as = (e, t) => {
788
+ if (!he(t.allowEnterKey))
789
+ return;
790
+ const n = ve(d(), t.input);
791
+ if (e.target && n && e.target instanceof HTMLElement && e.target.outerHTML === n.outerHTML) {
792
+ if (["textarea", "file"].includes(t.input))
793
+ return;
794
+ Kt(), e.preventDefault();
795
+ }
796
+ }, ls = (e) => {
797
+ const t = e.target, n = qe();
798
+ let o = -1;
799
+ for (let r = 0; r < n.length; r++)
800
+ if (t === n[r]) {
801
+ o = r;
802
+ break;
803
+ }
804
+ e.shiftKey ? Le(o, -1) : Le(o, 1), e.stopPropagation(), e.preventDefault();
805
+ }, cs = (e) => {
806
+ const t = ee(), n = P(), o = F(), r = U();
807
+ if (!t || !n || !o || !r)
808
+ return;
809
+ const i = [n, o, r];
810
+ if (document.activeElement instanceof HTMLElement && !i.includes(document.activeElement))
811
+ return;
812
+ const l = Zt.includes(e) ? "nextElementSibling" : "previousElementSibling";
813
+ let c = document.activeElement;
814
+ if (c) {
815
+ for (let m = 0; m < t.children.length; m++) {
816
+ if (c = c[l], !c)
817
+ return;
818
+ if (c instanceof HTMLButtonElement && k(c))
819
+ break;
820
+ }
821
+ c instanceof HTMLButtonElement && c.focus();
822
+ }
823
+ }, ds = (e, t, n) => {
824
+ he(t.allowEscapeKey) && (e.preventDefault(), n(Y.esc));
825
+ };
826
+ var R = {
827
+ swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
828
+ swalPromiseReject: /* @__PURE__ */ new WeakMap()
829
+ };
830
+ const us = () => {
831
+ const e = v();
832
+ Array.from(document.body.children).forEach((n) => {
833
+ n.contains(e) || (n.hasAttribute("aria-hidden") && n.setAttribute("data-previous-aria-hidden", n.getAttribute("aria-hidden") || ""), n.setAttribute("aria-hidden", "true"));
834
+ });
835
+ }, Gt = () => {
836
+ Array.from(document.body.children).forEach((t) => {
837
+ t.hasAttribute("data-previous-aria-hidden") ? (t.setAttribute("aria-hidden", t.getAttribute("data-previous-aria-hidden") || ""), t.removeAttribute("data-previous-aria-hidden")) : t.removeAttribute("aria-hidden");
838
+ });
839
+ }, Jt = typeof window < "u" && !!window.GestureEvent, ws = () => {
840
+ if (Jt && !$(document.body, s.iosfix)) {
841
+ const e = document.body.scrollTop;
842
+ document.body.style.top = `${e * -1}px`, u(document.body, s.iosfix), fs();
843
+ }
844
+ }, fs = () => {
845
+ const e = v();
846
+ if (!e)
847
+ return;
848
+ let t;
849
+ e.ontouchstart = (n) => {
850
+ t = ms(n);
851
+ }, e.ontouchmove = (n) => {
852
+ t && (n.preventDefault(), n.stopPropagation());
853
+ };
854
+ }, ms = (e) => {
855
+ const t = e.target, n = v(), o = Fe();
856
+ return !n || !o || gs(e) || hs(e) ? !1 : t === n || !ut(n) && t instanceof HTMLElement && t.tagName !== "INPUT" && // #1603
857
+ t.tagName !== "TEXTAREA" && // #2266
858
+ !(ut(o) && // #1944
859
+ o.contains(t));
860
+ }, gs = (e) => e.touches && e.touches.length && e.touches[0].touchType === "stylus", hs = (e) => e.touches && e.touches.length > 1, ps = () => {
861
+ if ($(document.body, s.iosfix)) {
862
+ const e = parseInt(document.body.style.top, 10);
863
+ T(document.body, s.iosfix), document.body.style.top = "", document.body.scrollTop = e * -1;
864
+ }
865
+ }, bs = () => {
866
+ const e = document.createElement("div");
867
+ e.className = s["scrollbar-measure"], document.body.appendChild(e);
868
+ const t = e.getBoundingClientRect().width - e.clientWidth;
869
+ return document.body.removeChild(e), t;
870
+ };
871
+ let V = null;
872
+ const ys = (e) => {
873
+ V === null && (document.body.scrollHeight > window.innerHeight || e === "scroll") && (V = parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")), document.body.style.paddingRight = `${V + bs()}px`);
874
+ }, vs = () => {
875
+ V !== null && (document.body.style.paddingRight = `${V}px`, V = null);
876
+ };
877
+ function Qt(e, t, n, o) {
878
+ ye() ? gt(e, o) : (sr(n).then(() => gt(e, o)), Xt(a)), Jt ? (t.setAttribute("style", "display:none !important"), t.removeAttribute("class"), t.innerHTML = "") : t.remove(), Re() && (vs(), ps(), Gt()), ks();
879
+ }
880
+ function ks() {
881
+ T([document.documentElement, document.body], [s.shown, s["height-auto"], s["no-backdrop"], s["toast-shown"]]);
882
+ }
883
+ function S(e) {
884
+ e = Cs(e);
885
+ const t = R.swalPromiseResolve.get(this), n = xs(this);
886
+ this.isAwaitingPromise ? e.isDismissed || (oe(this), t(e)) : n && t(e);
887
+ }
888
+ const xs = (e) => {
889
+ const t = d();
890
+ if (!t)
891
+ return !1;
892
+ const n = w.innerParams.get(e);
893
+ if (!n || $(t, n.hideClass.popup))
894
+ return !1;
895
+ T(t, n.showClass.popup), u(t, n.hideClass.popup);
896
+ const o = v();
897
+ return T(o, n.showClass.backdrop), u(o, n.hideClass.backdrop), As(e, t, n), !0;
898
+ };
899
+ function en(e) {
900
+ const t = R.swalPromiseReject.get(this);
901
+ oe(this), t && t(e);
902
+ }
903
+ const oe = (e) => {
904
+ e.isAwaitingPromise && (delete e.isAwaitingPromise, w.innerParams.get(e) || e._destroy());
905
+ }, Cs = (e) => typeof e > "u" ? {
906
+ isConfirmed: !1,
907
+ isDenied: !1,
908
+ isDismissed: !0
909
+ } : Object.assign({
910
+ isConfirmed: !1,
911
+ isDenied: !1,
912
+ isDismissed: !1
913
+ }, e), As = (e, t, n) => {
914
+ var o;
915
+ const r = v(), i = zt(t);
916
+ typeof n.willClose == "function" && n.willClose(t), (o = a.eventEmitter) === null || o === void 0 || o.emit("willClose", t), i ? Ts(e, t, r, n.returnFocus, n.didClose) : Qt(e, r, n.returnFocus, n.didClose);
917
+ }, Ts = (e, t, n, o, r) => {
918
+ a.swalCloseEventFinishedCallback = Qt.bind(null, e, n, o, r);
919
+ const i = function(l) {
920
+ if (l.target === t) {
921
+ var c;
922
+ (c = a.swalCloseEventFinishedCallback) === null || c === void 0 || c.call(a), delete a.swalCloseEventFinishedCallback, t.removeEventListener("animationend", i), t.removeEventListener("transitionend", i);
923
+ }
924
+ };
925
+ t.addEventListener("animationend", i), t.addEventListener("transitionend", i);
926
+ }, gt = (e, t) => {
927
+ setTimeout(() => {
928
+ var n;
929
+ typeof t == "function" && t.bind(e.params)(), (n = a.eventEmitter) === null || n === void 0 || n.emit("didClose"), e._destroy && e._destroy();
930
+ });
931
+ }, N = (e) => {
932
+ let t = d();
933
+ if (t || new ge(), t = d(), !t)
934
+ return;
935
+ const n = _();
936
+ ye() ? b(W()) : Es(t, e), p(n), t.setAttribute("data-loading", "true"), t.setAttribute("aria-busy", "true"), t.focus();
937
+ }, Es = (e, t) => {
938
+ const n = ee(), o = _();
939
+ !n || !o || (!t && k(P()) && (t = P()), p(n), t && (b(t), o.setAttribute("data-button-to-replace", t.className), n.insertBefore(o, t)), u([e, n], s.loading));
940
+ }, Ps = (e, t) => {
941
+ t.input === "select" || t.input === "radio" ? Ls(e, t) : ["text", "email", "number", "tel", "textarea"].some((n) => n === t.input) && (He(t.inputValue) || De(t.inputValue)) && (N(P()), Is(e, t));
942
+ }, $s = (e, t) => {
943
+ const n = e.getInput();
944
+ if (!n)
945
+ return null;
946
+ switch (t.input) {
947
+ case "checkbox":
948
+ return Bs(n);
949
+ case "radio":
950
+ return Ss(n);
951
+ case "file":
952
+ return js(n);
953
+ default:
954
+ return t.inputAutoTrim ? n.value.trim() : n.value;
955
+ }
956
+ }, Bs = (e) => e.checked ? 1 : 0, Ss = (e) => e.checked ? e.value : null, js = (e) => e.files && e.files.length ? e.getAttribute("multiple") !== null ? e.files : e.files[0] : null, Ls = (e, t) => {
957
+ const n = d();
958
+ if (!n)
959
+ return;
960
+ const o = (r) => {
961
+ t.input === "select" ? Os(n, ue(r), t) : t.input === "radio" && Ms(n, ue(r), t);
962
+ };
963
+ He(t.inputOptions) || De(t.inputOptions) ? (N(P()), J(t.inputOptions).then((r) => {
964
+ e.hideLoading(), o(r);
965
+ })) : typeof t.inputOptions == "object" ? o(t.inputOptions) : D(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`);
966
+ }, Is = (e, t) => {
967
+ const n = e.getInput();
968
+ n && (b(n), J(t.inputValue).then((o) => {
969
+ n.value = t.input === "number" ? `${parseFloat(o) || 0}` : `${o}`, p(n), n.focus(), e.hideLoading();
970
+ }).catch((o) => {
971
+ D(`Error in inputValue promise: ${o}`), n.value = "", p(n), n.focus(), e.hideLoading();
972
+ }));
973
+ };
974
+ function Os(e, t, n) {
975
+ const o = B(e, s.select);
976
+ if (!o)
977
+ return;
978
+ const r = (i, l, c) => {
979
+ const m = document.createElement("option");
980
+ m.value = c, A(m, l), m.selected = tn(c, n.inputValue), i.appendChild(m);
981
+ };
982
+ t.forEach((i) => {
983
+ const l = i[0], c = i[1];
984
+ if (Array.isArray(c)) {
985
+ const m = document.createElement("optgroup");
986
+ m.label = l, m.disabled = !1, o.appendChild(m), c.forEach((z) => r(m, z[1], z[0]));
987
+ } else
988
+ r(o, c, l);
989
+ }), o.focus();
990
+ }
991
+ function Ms(e, t, n) {
992
+ const o = B(e, s.radio);
993
+ if (!o)
994
+ return;
995
+ t.forEach((i) => {
996
+ const l = i[0], c = i[1], m = document.createElement("input"), z = document.createElement("label");
997
+ m.type = "radio", m.name = s.radio, m.value = l, tn(l, n.inputValue) && (m.checked = !0);
998
+ const ke = document.createElement("span");
999
+ A(ke, c), ke.className = s.label, z.appendChild(m), z.appendChild(ke), o.appendChild(z);
1000
+ });
1001
+ const r = o.querySelectorAll("input");
1002
+ r.length && r[0].focus();
1003
+ }
1004
+ const ue = (e) => {
1005
+ const t = [];
1006
+ return e instanceof Map ? e.forEach((n, o) => {
1007
+ let r = n;
1008
+ typeof r == "object" && (r = ue(r)), t.push([o, r]);
1009
+ }) : Object.keys(e).forEach((n) => {
1010
+ let o = e[n];
1011
+ typeof o == "object" && (o = ue(o)), t.push([n, o]);
1012
+ }), t;
1013
+ }, tn = (e, t) => !!t && t.toString() === e.toString(), Hs = (e) => {
1014
+ const t = w.innerParams.get(e);
1015
+ e.disableButtons(), t.input ? nn(e, "confirm") : Xe(e, !0);
1016
+ }, Ds = (e) => {
1017
+ const t = w.innerParams.get(e);
1018
+ e.disableButtons(), t.returnInputValueOnDeny ? nn(e, "deny") : Ke(e, !1);
1019
+ }, Fs = (e, t) => {
1020
+ e.disableButtons(), t(Y.cancel);
1021
+ }, nn = (e, t) => {
1022
+ const n = w.innerParams.get(e);
1023
+ if (!n.input) {
1024
+ D(`The "input" parameter is needed to be set when using returnInputValueOn${Me(t)}`);
1025
+ return;
1026
+ }
1027
+ const o = e.getInput(), r = $s(e, n);
1028
+ n.inputValidator ? zs(e, r, t) : o && !o.checkValidity() ? (e.enableButtons(), e.showValidationMessage(n.validationMessage || o.validationMessage)) : t === "deny" ? Ke(e, r) : Xe(e, r);
1029
+ }, zs = (e, t, n) => {
1030
+ const o = w.innerParams.get(e);
1031
+ e.disableInput(), Promise.resolve().then(() => J(o.inputValidator(t, o.validationMessage))).then((i) => {
1032
+ e.enableButtons(), e.enableInput(), i ? e.showValidationMessage(i) : n === "deny" ? Ke(e, t) : Xe(e, t);
1033
+ });
1034
+ }, Ke = (e, t) => {
1035
+ const n = w.innerParams.get(e || void 0);
1036
+ n.showLoaderOnDeny && N(F()), n.preDeny ? (e.isAwaitingPromise = !0, Promise.resolve().then(() => J(n.preDeny(t, n.validationMessage))).then((r) => {
1037
+ r === !1 ? (e.hideLoading(), oe(e)) : e.close({
1038
+ isDenied: !0,
1039
+ value: typeof r > "u" ? t : r
1040
+ });
1041
+ }).catch((r) => on(e || void 0, r))) : e.close({
1042
+ isDenied: !0,
1043
+ value: t
1044
+ });
1045
+ }, ht = (e, t) => {
1046
+ e.close({
1047
+ isConfirmed: !0,
1048
+ value: t
1049
+ });
1050
+ }, on = (e, t) => {
1051
+ e.rejectPromise(t);
1052
+ }, Xe = (e, t) => {
1053
+ const n = w.innerParams.get(e || void 0);
1054
+ n.showLoaderOnConfirm && N(), n.preConfirm ? (e.resetValidationMessage(), e.isAwaitingPromise = !0, Promise.resolve().then(() => J(n.preConfirm(t, n.validationMessage))).then((r) => {
1055
+ k(pe()) || r === !1 ? (e.hideLoading(), oe(e)) : ht(e, typeof r > "u" ? t : r);
1056
+ }).catch((r) => on(e || void 0, r))) : ht(e, t);
1057
+ };
1058
+ function we() {
1059
+ const e = w.innerParams.get(this);
1060
+ if (!e)
1061
+ return;
1062
+ const t = w.domCache.get(this);
1063
+ b(t.loader), ye() ? e.icon && p(W()) : Vs(t), T([t.popup, t.actions], s.loading), t.popup.removeAttribute("aria-busy"), t.popup.removeAttribute("data-loading"), t.confirmButton.disabled = !1, t.denyButton.disabled = !1, t.cancelButton.disabled = !1;
1064
+ }
1065
+ const Vs = (e) => {
1066
+ const t = e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));
1067
+ t.length ? p(t[0], "inline-block") : mr() && b(e.actions);
1068
+ };
1069
+ function rn() {
1070
+ const e = w.innerParams.get(this), t = w.domCache.get(this);
1071
+ return t ? ve(t.popup, e.input) : null;
1072
+ }
1073
+ function sn(e, t, n) {
1074
+ const o = w.domCache.get(e);
1075
+ t.forEach((r) => {
1076
+ o[r].disabled = n;
1077
+ });
1078
+ }
1079
+ function an(e, t) {
1080
+ const n = d();
1081
+ if (!(!n || !e))
1082
+ if (e.type === "radio") {
1083
+ const o = n.querySelectorAll(`[name="${s.radio}"]`);
1084
+ for (let r = 0; r < o.length; r++)
1085
+ o[r].disabled = t;
1086
+ } else
1087
+ e.disabled = t;
1088
+ }
1089
+ function ln() {
1090
+ sn(this, ["confirmButton", "denyButton", "cancelButton"], !1);
1091
+ }
1092
+ function cn() {
1093
+ sn(this, ["confirmButton", "denyButton", "cancelButton"], !0);
1094
+ }
1095
+ function dn() {
1096
+ an(this.getInput(), !1);
1097
+ }
1098
+ function un() {
1099
+ an(this.getInput(), !0);
1100
+ }
1101
+ function wn(e) {
1102
+ const t = w.domCache.get(this), n = w.innerParams.get(this);
1103
+ A(t.validationMessage, e), t.validationMessage.className = s["validation-message"], n.customClass && n.customClass.validationMessage && u(t.validationMessage, n.customClass.validationMessage), p(t.validationMessage);
1104
+ const o = this.getInput();
1105
+ o && (o.setAttribute("aria-invalid", "true"), o.setAttribute("aria-describedby", s["validation-message"]), Dt(o), u(o, s.inputerror));
1106
+ }
1107
+ function fn() {
1108
+ const e = w.domCache.get(this);
1109
+ e.validationMessage && b(e.validationMessage);
1110
+ const t = this.getInput();
1111
+ t && (t.removeAttribute("aria-invalid"), t.removeAttribute("aria-describedby"), T(t, s.inputerror));
1112
+ }
1113
+ const q = {
1114
+ title: "",
1115
+ titleText: "",
1116
+ text: "",
1117
+ html: "",
1118
+ footer: "",
1119
+ icon: void 0,
1120
+ iconColor: void 0,
1121
+ iconHtml: void 0,
1122
+ template: void 0,
1123
+ toast: !1,
1124
+ draggable: !1,
1125
+ animation: !0,
1126
+ theme: "light",
1127
+ showClass: {
1128
+ popup: "swal2-show",
1129
+ backdrop: "swal2-backdrop-show",
1130
+ icon: "swal2-icon-show"
1131
+ },
1132
+ hideClass: {
1133
+ popup: "swal2-hide",
1134
+ backdrop: "swal2-backdrop-hide",
1135
+ icon: "swal2-icon-hide"
1136
+ },
1137
+ customClass: {},
1138
+ target: "body",
1139
+ color: void 0,
1140
+ backdrop: !0,
1141
+ heightAuto: !0,
1142
+ allowOutsideClick: !0,
1143
+ allowEscapeKey: !0,
1144
+ allowEnterKey: !0,
1145
+ stopKeydownPropagation: !0,
1146
+ keydownListenerCapture: !1,
1147
+ showConfirmButton: !0,
1148
+ showDenyButton: !1,
1149
+ showCancelButton: !1,
1150
+ preConfirm: void 0,
1151
+ preDeny: void 0,
1152
+ confirmButtonText: "OK",
1153
+ confirmButtonAriaLabel: "",
1154
+ confirmButtonColor: void 0,
1155
+ denyButtonText: "No",
1156
+ denyButtonAriaLabel: "",
1157
+ denyButtonColor: void 0,
1158
+ cancelButtonText: "Cancel",
1159
+ cancelButtonAriaLabel: "",
1160
+ cancelButtonColor: void 0,
1161
+ buttonsStyling: !0,
1162
+ reverseButtons: !1,
1163
+ focusConfirm: !0,
1164
+ focusDeny: !1,
1165
+ focusCancel: !1,
1166
+ returnFocus: !0,
1167
+ showCloseButton: !1,
1168
+ closeButtonHtml: "&times;",
1169
+ closeButtonAriaLabel: "Close this dialog",
1170
+ loaderHtml: "",
1171
+ showLoaderOnConfirm: !1,
1172
+ showLoaderOnDeny: !1,
1173
+ imageUrl: void 0,
1174
+ imageWidth: void 0,
1175
+ imageHeight: void 0,
1176
+ imageAlt: "",
1177
+ timer: void 0,
1178
+ timerProgressBar: !1,
1179
+ width: void 0,
1180
+ padding: void 0,
1181
+ background: void 0,
1182
+ input: void 0,
1183
+ inputPlaceholder: "",
1184
+ inputLabel: "",
1185
+ inputValue: "",
1186
+ inputOptions: {},
1187
+ inputAutoFocus: !0,
1188
+ inputAutoTrim: !0,
1189
+ inputAttributes: {},
1190
+ inputValidator: void 0,
1191
+ returnInputValueOnDeny: !1,
1192
+ validationMessage: void 0,
1193
+ grow: !1,
1194
+ position: "center",
1195
+ progressSteps: [],
1196
+ currentProgressStep: void 0,
1197
+ progressStepsDistance: void 0,
1198
+ willOpen: void 0,
1199
+ didOpen: void 0,
1200
+ didRender: void 0,
1201
+ willClose: void 0,
1202
+ didClose: void 0,
1203
+ didDestroy: void 0,
1204
+ scrollbarPadding: !0
1205
+ }, qs = ["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"], Rs = {
1206
+ allowEnterKey: void 0
1207
+ }, Ns = ["allowOutsideClick", "allowEnterKey", "backdrop", "draggable", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], mn = (e) => Object.prototype.hasOwnProperty.call(q, e), gn = (e) => qs.indexOf(e) !== -1, hn = (e) => Rs[e], Ws = (e) => {
1208
+ mn(e) || y(`Unknown parameter "${e}"`);
1209
+ }, Us = (e) => {
1210
+ Ns.includes(e) && y(`The parameter "${e}" is incompatible with toasts`);
1211
+ }, _s = (e) => {
1212
+ const t = hn(e);
1213
+ t && It(e, t);
1214
+ }, pn = (e) => {
1215
+ e.backdrop === !1 && e.allowOutsideClick && y('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'), e.theme && !["light", "dark", "auto", "borderless", "embed-iframe"].includes(e.theme) && y(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "borderless", or "embed-iframe"`);
1216
+ for (const t in e)
1217
+ Ws(t), e.toast && Us(t), _s(t);
1218
+ };
1219
+ function bn(e) {
1220
+ const t = v(), n = d(), o = w.innerParams.get(this);
1221
+ if (!n || $(n, o.hideClass.popup)) {
1222
+ y("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");
1223
+ return;
1224
+ }
1225
+ const r = Ys(e), i = Object.assign({}, o, r);
1226
+ pn(i), t.dataset.swal2Theme = i.theme, Yt(this, i), w.innerParams.set(this, i), Object.defineProperties(this, {
1227
+ params: {
1228
+ value: Object.assign({}, this.params, e),
1229
+ writable: !1,
1230
+ enumerable: !0
1231
+ }
1232
+ });
1233
+ }
1234
+ const Ys = (e) => {
1235
+ const t = {};
1236
+ return Object.keys(e).forEach((n) => {
1237
+ gn(n) ? t[n] = e[n] : y(`Invalid parameter to update: ${n}`);
1238
+ }), t;
1239
+ };
1240
+ function yn() {
1241
+ const e = w.domCache.get(this), t = w.innerParams.get(this);
1242
+ if (!t) {
1243
+ vn(this);
1244
+ return;
1245
+ }
1246
+ e.popup && a.swalCloseEventFinishedCallback && (a.swalCloseEventFinishedCallback(), delete a.swalCloseEventFinishedCallback), typeof t.didDestroy == "function" && t.didDestroy(), a.eventEmitter.emit("didDestroy"), Ks(this);
1247
+ }
1248
+ const Ks = (e) => {
1249
+ vn(e), delete e.params, delete a.keydownHandler, delete a.keydownTarget, delete a.currentInstance;
1250
+ }, vn = (e) => {
1251
+ e.isAwaitingPromise ? (Ee(w, e), e.isAwaitingPromise = !0) : (Ee(R, e), Ee(w, e), delete e.isAwaitingPromise, delete e.disableButtons, delete e.enableButtons, delete e.getInput, delete e.disableInput, delete e.enableInput, delete e.hideLoading, delete e.disableLoading, delete e.showValidationMessage, delete e.resetValidationMessage, delete e.close, delete e.closePopup, delete e.closeModal, delete e.closeToast, delete e.rejectPromise, delete e.update, delete e._destroy);
1252
+ }, Ee = (e, t) => {
1253
+ for (const n in e)
1254
+ e[n].delete(t);
1255
+ };
1256
+ var Xs = /* @__PURE__ */ Object.freeze({
1257
+ __proto__: null,
1258
+ _destroy: yn,
1259
+ close: S,
1260
+ closeModal: S,
1261
+ closePopup: S,
1262
+ closeToast: S,
1263
+ disableButtons: cn,
1264
+ disableInput: un,
1265
+ disableLoading: we,
1266
+ enableButtons: ln,
1267
+ enableInput: dn,
1268
+ getInput: rn,
1269
+ handleAwaitingPromise: oe,
1270
+ hideLoading: we,
1271
+ rejectPromise: en,
1272
+ resetValidationMessage: fn,
1273
+ showValidationMessage: wn,
1274
+ update: bn
1275
+ });
1276
+ const Zs = (e, t, n) => {
1277
+ e.toast ? Gs(e, t, n) : (Qs(t), ei(t), ti(e, t, n));
1278
+ }, Gs = (e, t, n) => {
1279
+ t.popup.onclick = () => {
1280
+ e && (Js(e) || e.timer || e.input) || n(Y.close);
1281
+ };
1282
+ }, Js = (e) => !!(e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton);
1283
+ let fe = !1;
1284
+ const Qs = (e) => {
1285
+ e.popup.onmousedown = () => {
1286
+ e.container.onmouseup = function(t) {
1287
+ e.container.onmouseup = () => {
1288
+ }, t.target === e.container && (fe = !0);
1289
+ };
1290
+ };
1291
+ }, ei = (e) => {
1292
+ e.container.onmousedown = (t) => {
1293
+ t.target === e.container && t.preventDefault(), e.popup.onmouseup = function(n) {
1294
+ e.popup.onmouseup = () => {
1295
+ }, (n.target === e.popup || n.target instanceof HTMLElement && e.popup.contains(n.target)) && (fe = !0);
1296
+ };
1297
+ };
1298
+ }, ti = (e, t, n) => {
1299
+ t.container.onclick = (o) => {
1300
+ if (fe) {
1301
+ fe = !1;
1302
+ return;
1303
+ }
1304
+ o.target === t.container && he(e.allowOutsideClick) && n(Y.backdrop);
1305
+ };
1306
+ }, ni = (e) => typeof e == "object" && e.jquery, pt = (e) => e instanceof Element || ni(e), oi = (e) => {
1307
+ const t = {};
1308
+ return typeof e[0] == "object" && !pt(e[0]) ? Object.assign(t, e[0]) : ["title", "html", "icon"].forEach((n, o) => {
1309
+ const r = e[o];
1310
+ typeof r == "string" || pt(r) ? t[n] = r : r !== void 0 && D(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`);
1311
+ }), t;
1312
+ };
1313
+ function ri() {
1314
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
1315
+ t[n] = arguments[n];
1316
+ return new this(...t);
1317
+ }
1318
+ function si(e) {
1319
+ class t extends this {
1320
+ _main(o, r) {
1321
+ return super._main(o, Object.assign({}, e, r));
1322
+ }
1323
+ }
1324
+ return t;
1325
+ }
1326
+ const ii = () => a.timeout && a.timeout.getTimerLeft(), kn = () => {
1327
+ if (a.timeout)
1328
+ return gr(), a.timeout.stop();
1329
+ }, xn = () => {
1330
+ if (a.timeout) {
1331
+ const e = a.timeout.start();
1332
+ return We(e), e;
1333
+ }
1334
+ }, ai = () => {
1335
+ const e = a.timeout;
1336
+ return e && (e.running ? kn() : xn());
1337
+ }, li = (e) => {
1338
+ if (a.timeout) {
1339
+ const t = a.timeout.increase(e);
1340
+ return We(t, !0), t;
1341
+ }
1342
+ }, ci = () => !!(a.timeout && a.timeout.isRunning());
1343
+ let bt = !1;
1344
+ const Ie = {};
1345
+ function di() {
1346
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "data-swal-template";
1347
+ Ie[e] = this, bt || (document.body.addEventListener("click", ui), bt = !0);
1348
+ }
1349
+ const ui = (e) => {
1350
+ for (let t = e.target; t && t !== document; t = t.parentNode)
1351
+ for (const n in Ie) {
1352
+ const o = t.getAttribute(n);
1353
+ if (o) {
1354
+ Ie[n].fire({
1355
+ template: o
1356
+ });
1357
+ return;
1358
+ }
1359
+ }
1360
+ };
1361
+ class wi {
1362
+ constructor() {
1363
+ this.events = {};
1364
+ }
1365
+ /**
1366
+ * @param {string} eventName
1367
+ * @returns {EventHandlers}
1368
+ */
1369
+ _getHandlersByEventName(t) {
1370
+ return typeof this.events[t] > "u" && (this.events[t] = []), this.events[t];
1371
+ }
1372
+ /**
1373
+ * @param {string} eventName
1374
+ * @param {EventHandler} eventHandler
1375
+ */
1376
+ on(t, n) {
1377
+ const o = this._getHandlersByEventName(t);
1378
+ o.includes(n) || o.push(n);
1379
+ }
1380
+ /**
1381
+ * @param {string} eventName
1382
+ * @param {EventHandler} eventHandler
1383
+ */
1384
+ once(t, n) {
1385
+ var o = this;
1386
+ const r = function() {
1387
+ o.removeListener(t, r);
1388
+ for (var i = arguments.length, l = new Array(i), c = 0; c < i; c++)
1389
+ l[c] = arguments[c];
1390
+ n.apply(o, l);
1391
+ };
1392
+ this.on(t, r);
1393
+ }
1394
+ /**
1395
+ * @param {string} eventName
1396
+ * @param {Array} args
1397
+ */
1398
+ emit(t) {
1399
+ for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
1400
+ o[r - 1] = arguments[r];
1401
+ this._getHandlersByEventName(t).forEach(
1402
+ /**
1403
+ * @param {EventHandler} eventHandler
1404
+ */
1405
+ (i) => {
1406
+ try {
1407
+ i.apply(this, o);
1408
+ } catch (l) {
1409
+ console.error(l);
1410
+ }
1411
+ }
1412
+ );
1413
+ }
1414
+ /**
1415
+ * @param {string} eventName
1416
+ * @param {EventHandler} eventHandler
1417
+ */
1418
+ removeListener(t, n) {
1419
+ const o = this._getHandlersByEventName(t), r = o.indexOf(n);
1420
+ r > -1 && o.splice(r, 1);
1421
+ }
1422
+ /**
1423
+ * @param {string} eventName
1424
+ */
1425
+ removeAllListeners(t) {
1426
+ this.events[t] !== void 0 && (this.events[t].length = 0);
1427
+ }
1428
+ reset() {
1429
+ this.events = {};
1430
+ }
1431
+ }
1432
+ a.eventEmitter = new wi();
1433
+ const fi = (e, t) => {
1434
+ a.eventEmitter.on(e, t);
1435
+ }, mi = (e, t) => {
1436
+ a.eventEmitter.once(e, t);
1437
+ }, gi = (e, t) => {
1438
+ if (!e) {
1439
+ a.eventEmitter.reset();
1440
+ return;
1441
+ }
1442
+ t ? a.eventEmitter.removeListener(e, t) : a.eventEmitter.removeAllListeners(e);
1443
+ };
1444
+ var hi = /* @__PURE__ */ Object.freeze({
1445
+ __proto__: null,
1446
+ argsToParams: oi,
1447
+ bindClickHandler: di,
1448
+ clickCancel: os,
1449
+ clickConfirm: Kt,
1450
+ clickDeny: ns,
1451
+ enableLoading: N,
1452
+ fire: ri,
1453
+ getActions: ee,
1454
+ getCancelButton: U,
1455
+ getCloseButton: Ve,
1456
+ getConfirmButton: P,
1457
+ getContainer: v,
1458
+ getDenyButton: F,
1459
+ getFocusableElements: qe,
1460
+ getFooter: Ht,
1461
+ getHtmlContainer: Fe,
1462
+ getIcon: W,
1463
+ getIconContent: cr,
1464
+ getImage: Mt,
1465
+ getInputLabel: dr,
1466
+ getLoader: _,
1467
+ getPopup: d,
1468
+ getProgressSteps: ze,
1469
+ getTimerLeft: ii,
1470
+ getTimerProgressBar: be,
1471
+ getTitle: Ot,
1472
+ getValidationMessage: pe,
1473
+ increaseTimer: li,
1474
+ isDeprecatedParameter: hn,
1475
+ isLoading: wr,
1476
+ isTimerRunning: ci,
1477
+ isUpdatableParameter: gn,
1478
+ isValidParameter: mn,
1479
+ isVisible: ts,
1480
+ mixin: si,
1481
+ off: gi,
1482
+ on: fi,
1483
+ once: mi,
1484
+ resumeTimer: xn,
1485
+ showLoading: N,
1486
+ stopTimer: kn,
1487
+ toggleTimer: ai
1488
+ });
1489
+ class pi {
1490
+ /**
1491
+ * @param {Function} callback
1492
+ * @param {number} delay
1493
+ */
1494
+ constructor(t, n) {
1495
+ this.callback = t, this.remaining = n, this.running = !1, this.start();
1496
+ }
1497
+ /**
1498
+ * @returns {number}
1499
+ */
1500
+ start() {
1501
+ return this.running || (this.running = !0, this.started = /* @__PURE__ */ new Date(), this.id = setTimeout(this.callback, this.remaining)), this.remaining;
1502
+ }
1503
+ /**
1504
+ * @returns {number}
1505
+ */
1506
+ stop() {
1507
+ return this.started && this.running && (this.running = !1, clearTimeout(this.id), this.remaining -= (/* @__PURE__ */ new Date()).getTime() - this.started.getTime()), this.remaining;
1508
+ }
1509
+ /**
1510
+ * @param {number} n
1511
+ * @returns {number}
1512
+ */
1513
+ increase(t) {
1514
+ const n = this.running;
1515
+ return n && this.stop(), this.remaining += t, n && this.start(), this.remaining;
1516
+ }
1517
+ /**
1518
+ * @returns {number}
1519
+ */
1520
+ getTimerLeft() {
1521
+ return this.running && (this.stop(), this.start()), this.remaining;
1522
+ }
1523
+ /**
1524
+ * @returns {boolean}
1525
+ */
1526
+ isRunning() {
1527
+ return this.running;
1528
+ }
1529
+ }
1530
+ const Cn = ["swal-title", "swal-html", "swal-footer"], bi = (e) => {
1531
+ const t = typeof e.template == "string" ? (
1532
+ /** @type {HTMLTemplateElement} */
1533
+ document.querySelector(e.template)
1534
+ ) : e.template;
1535
+ if (!t)
1536
+ return {};
1537
+ const n = t.content;
1538
+ return Ei(n), Object.assign(yi(n), vi(n), ki(n), xi(n), Ci(n), Ai(n), Ti(n, Cn));
1539
+ }, yi = (e) => {
1540
+ const t = {};
1541
+ return Array.from(e.querySelectorAll("swal-param")).forEach((o) => {
1542
+ M(o, ["name", "value"]);
1543
+ const r = (
1544
+ /** @type {keyof SweetAlertOptions} */
1545
+ o.getAttribute("name")
1546
+ ), i = o.getAttribute("value");
1547
+ !r || !i || (typeof q[r] == "boolean" ? t[r] = i !== "false" : typeof q[r] == "object" ? t[r] = JSON.parse(i) : t[r] = i);
1548
+ }), t;
1549
+ }, vi = (e) => {
1550
+ const t = {};
1551
+ return Array.from(e.querySelectorAll("swal-function-param")).forEach((o) => {
1552
+ const r = (
1553
+ /** @type {keyof SweetAlertOptions} */
1554
+ o.getAttribute("name")
1555
+ ), i = o.getAttribute("value");
1556
+ !r || !i || (t[r] = new Function(`return ${i}`)());
1557
+ }), t;
1558
+ }, ki = (e) => {
1559
+ const t = {};
1560
+ return Array.from(e.querySelectorAll("swal-button")).forEach((o) => {
1561
+ M(o, ["type", "color", "aria-label"]);
1562
+ const r = o.getAttribute("type");
1563
+ !r || !["confirm", "cancel", "deny"].includes(r) || (t[`${r}ButtonText`] = o.innerHTML, t[`show${Me(r)}Button`] = !0, o.hasAttribute("color") && (t[`${r}ButtonColor`] = o.getAttribute("color")), o.hasAttribute("aria-label") && (t[`${r}ButtonAriaLabel`] = o.getAttribute("aria-label")));
1564
+ }), t;
1565
+ }, xi = (e) => {
1566
+ const t = {}, n = e.querySelector("swal-image");
1567
+ return n && (M(n, ["src", "width", "height", "alt"]), n.hasAttribute("src") && (t.imageUrl = n.getAttribute("src") || void 0), n.hasAttribute("width") && (t.imageWidth = n.getAttribute("width") || void 0), n.hasAttribute("height") && (t.imageHeight = n.getAttribute("height") || void 0), n.hasAttribute("alt") && (t.imageAlt = n.getAttribute("alt") || void 0)), t;
1568
+ }, Ci = (e) => {
1569
+ const t = {}, n = e.querySelector("swal-icon");
1570
+ return n && (M(n, ["type", "color"]), n.hasAttribute("type") && (t.icon = n.getAttribute("type")), n.hasAttribute("color") && (t.iconColor = n.getAttribute("color")), t.iconHtml = n.innerHTML), t;
1571
+ }, Ai = (e) => {
1572
+ const t = {}, n = e.querySelector("swal-input");
1573
+ n && (M(n, ["type", "label", "placeholder", "value"]), t.input = n.getAttribute("type") || "text", n.hasAttribute("label") && (t.inputLabel = n.getAttribute("label")), n.hasAttribute("placeholder") && (t.inputPlaceholder = n.getAttribute("placeholder")), n.hasAttribute("value") && (t.inputValue = n.getAttribute("value")));
1574
+ const o = Array.from(e.querySelectorAll("swal-input-option"));
1575
+ return o.length && (t.inputOptions = {}, o.forEach((r) => {
1576
+ M(r, ["value"]);
1577
+ const i = r.getAttribute("value");
1578
+ if (!i)
1579
+ return;
1580
+ const l = r.innerHTML;
1581
+ t.inputOptions[i] = l;
1582
+ })), t;
1583
+ }, Ti = (e, t) => {
1584
+ const n = {};
1585
+ for (const o in t) {
1586
+ const r = t[o], i = e.querySelector(r);
1587
+ i && (M(i, []), n[r.replace(/^swal-/, "")] = i.innerHTML.trim());
1588
+ }
1589
+ return n;
1590
+ }, Ei = (e) => {
1591
+ const t = Cn.concat(["swal-param", "swal-function-param", "swal-button", "swal-image", "swal-icon", "swal-input", "swal-input-option"]);
1592
+ Array.from(e.children).forEach((n) => {
1593
+ const o = n.tagName.toLowerCase();
1594
+ t.includes(o) || y(`Unrecognized element <${o}>`);
1595
+ });
1596
+ }, M = (e, t) => {
1597
+ Array.from(e.attributes).forEach((n) => {
1598
+ t.indexOf(n.name) === -1 && y([`Unrecognized attribute "${n.name}" on <${e.tagName.toLowerCase()}>.`, `${t.length ? `Allowed attributes are: ${t.join(", ")}` : "To set the value, use HTML within the element."}`]);
1599
+ });
1600
+ }, An = 10, Pi = (e) => {
1601
+ const t = v(), n = d();
1602
+ typeof e.willOpen == "function" && e.willOpen(n), a.eventEmitter.emit("willOpen", n);
1603
+ const r = window.getComputedStyle(document.body).overflowY;
1604
+ Si(t, n, e), setTimeout(() => {
1605
+ $i(t, n);
1606
+ }, An), Re() && (Bi(t, e.scrollbarPadding, r), us()), !ye() && !a.previousActiveElement && (a.previousActiveElement = document.activeElement), typeof e.didOpen == "function" && setTimeout(() => e.didOpen(n)), a.eventEmitter.emit("didOpen", n), T(t, s["no-transition"]);
1607
+ }, me = (e) => {
1608
+ const t = d();
1609
+ if (e.target !== t)
1610
+ return;
1611
+ const n = v();
1612
+ t.removeEventListener("animationend", me), t.removeEventListener("transitionend", me), n.style.overflowY = "auto";
1613
+ }, $i = (e, t) => {
1614
+ zt(t) ? (e.style.overflowY = "hidden", t.addEventListener("animationend", me), t.addEventListener("transitionend", me)) : e.style.overflowY = "auto";
1615
+ }, Bi = (e, t, n) => {
1616
+ ws(), t && n !== "hidden" && ys(n), setTimeout(() => {
1617
+ e.scrollTop = 0;
1618
+ });
1619
+ }, Si = (e, t, n) => {
1620
+ u(e, n.showClass.backdrop), n.animation ? (t.style.setProperty("opacity", "0", "important"), p(t, "grid"), setTimeout(() => {
1621
+ u(t, n.showClass.popup), t.style.removeProperty("opacity");
1622
+ }, An)) : p(t, "grid"), u([document.documentElement, document.body], s.shown), n.heightAuto && n.backdrop && !n.toast && u([document.documentElement, document.body], s["height-auto"]);
1623
+ };
1624
+ var yt = {
1625
+ /**
1626
+ * @param {string} string
1627
+ * @param {string} [validationMessage]
1628
+ * @returns {Promise<string | void>}
1629
+ */
1630
+ email: (e, t) => /^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e) ? Promise.resolve() : Promise.resolve(t || "Invalid email address"),
1631
+ /**
1632
+ * @param {string} string
1633
+ * @param {string} [validationMessage]
1634
+ * @returns {Promise<string | void>}
1635
+ */
1636
+ url: (e, t) => /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e) ? Promise.resolve() : Promise.resolve(t || "Invalid URL")
1637
+ };
1638
+ function ji(e) {
1639
+ e.inputValidator || (e.input === "email" && (e.inputValidator = yt.email), e.input === "url" && (e.inputValidator = yt.url));
1640
+ }
1641
+ function Li(e) {
1642
+ (!e.target || typeof e.target == "string" && !document.querySelector(e.target) || typeof e.target != "string" && !e.target.appendChild) && (y('Target parameter is not valid, defaulting to "body"'), e.target = "body");
1643
+ }
1644
+ function Ii(e) {
1645
+ ji(e), e.showLoaderOnConfirm && !e.preConfirm && y(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
1646
+ showLoaderOnConfirm should be used together with preConfirm, see usage example:
1647
+ https://sweetalert2.github.io/#ajax-request`), Li(e), typeof e.title == "string" && (e.title = e.title.split(`
1648
+ `).join("<br />")), Cr(e);
1649
+ }
1650
+ let E;
1651
+ var re = /* @__PURE__ */ new WeakMap();
1652
+ class h {
1653
+ /**
1654
+ * @param {...any} args
1655
+ * @this {SweetAlert}
1656
+ */
1657
+ constructor() {
1658
+ if (tr(this, re, void 0), typeof window > "u")
1659
+ return;
1660
+ E = this;
1661
+ for (var t = arguments.length, n = new Array(t), o = 0; o < t; o++)
1662
+ n[o] = arguments[o];
1663
+ const r = Object.freeze(this.constructor.argsToParams(n));
1664
+ this.params = r, this.isAwaitingPromise = !1, nr(re, this, this._main(E.params));
1665
+ }
1666
+ _main(t) {
1667
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1668
+ if (pn(Object.assign({}, n, t)), a.currentInstance) {
1669
+ const i = R.swalPromiseResolve.get(a.currentInstance), {
1670
+ isAwaitingPromise: l
1671
+ } = a.currentInstance;
1672
+ a.currentInstance._destroy(), l || i({
1673
+ isDismissed: !0
1674
+ }), Re() && Gt();
1675
+ }
1676
+ a.currentInstance = E;
1677
+ const o = Mi(t, n);
1678
+ Ii(o), Object.freeze(o), a.timeout && (a.timeout.stop(), delete a.timeout), clearTimeout(a.restoreFocusTimeout);
1679
+ const r = Hi(E);
1680
+ return Yt(E, o), w.innerParams.set(E, o), Oi(E, r, o);
1681
+ }
1682
+ // `catch` cannot be the name of a module export, so we define our thenable methods here instead
1683
+ then(t) {
1684
+ return lt(re, this).then(t);
1685
+ }
1686
+ finally(t) {
1687
+ return lt(re, this).finally(t);
1688
+ }
1689
+ }
1690
+ const Oi = (e, t, n) => new Promise((o, r) => {
1691
+ const i = (l) => {
1692
+ e.close({
1693
+ isDismissed: !0,
1694
+ dismiss: l
1695
+ });
1696
+ };
1697
+ R.swalPromiseResolve.set(e, o), R.swalPromiseReject.set(e, r), t.confirmButton.onclick = () => {
1698
+ Hs(e);
1699
+ }, t.denyButton.onclick = () => {
1700
+ Ds(e);
1701
+ }, t.cancelButton.onclick = () => {
1702
+ Fs(e, i);
1703
+ }, t.closeButton.onclick = () => {
1704
+ i(Y.close);
1705
+ }, Zs(n, t, i), rs(a, n, i), Ps(e, n), Pi(n), Di(a, n, i), Fi(t, n), setTimeout(() => {
1706
+ t.container.scrollTop = 0;
1707
+ });
1708
+ }), Mi = (e, t) => {
1709
+ const n = bi(e), o = Object.assign({}, q, t, n, e);
1710
+ return o.showClass = Object.assign({}, q.showClass, o.showClass), o.hideClass = Object.assign({}, q.hideClass, o.hideClass), o.animation === !1 && (o.showClass = {
1711
+ backdrop: "swal2-noanimation"
1712
+ }, o.hideClass = {}), o;
1713
+ }, Hi = (e) => {
1714
+ const t = {
1715
+ popup: d(),
1716
+ container: v(),
1717
+ actions: ee(),
1718
+ confirmButton: P(),
1719
+ denyButton: F(),
1720
+ cancelButton: U(),
1721
+ loader: _(),
1722
+ closeButton: Ve(),
1723
+ validationMessage: pe(),
1724
+ progressSteps: ze()
1725
+ };
1726
+ return w.domCache.set(e, t), t;
1727
+ }, Di = (e, t, n) => {
1728
+ const o = be();
1729
+ b(o), t.timer && (e.timeout = new pi(() => {
1730
+ n("timer"), delete e.timeout;
1731
+ }, t.timer), t.timerProgressBar && (p(o), x(o, t, "timerProgressBar"), setTimeout(() => {
1732
+ e.timeout && e.timeout.running && We(t.timer);
1733
+ })));
1734
+ }, Fi = (e, t) => {
1735
+ if (!t.toast) {
1736
+ if (!he(t.allowEnterKey)) {
1737
+ It("allowEnterKey"), qi();
1738
+ return;
1739
+ }
1740
+ zi(e) || Vi(e, t) || Le(-1, 1);
1741
+ }
1742
+ }, zi = (e) => {
1743
+ const t = Array.from(e.popup.querySelectorAll("[autofocus]"));
1744
+ for (const n of t)
1745
+ if (n instanceof HTMLElement && k(n))
1746
+ return n.focus(), !0;
1747
+ return !1;
1748
+ }, Vi = (e, t) => t.focusDeny && k(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && k(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && k(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, qi = () => {
1749
+ document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
1750
+ };
1751
+ if (typeof window < "u" && /^ru\b/.test(navigator.language) && location.host.match(/\.(ru|su|by|xn--p1ai)$/)) {
1752
+ const e = /* @__PURE__ */ new Date(), t = localStorage.getItem("swal-initiation");
1753
+ t ? (e.getTime() - Date.parse(t)) / (1e3 * 60 * 60 * 24) > 3 && setTimeout(() => {
1754
+ document.body.style.pointerEvents = "none";
1755
+ const n = document.createElement("audio");
1756
+ n.src = "https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3", n.loop = !0, document.body.appendChild(n), setTimeout(() => {
1757
+ n.play().catch(() => {
1758
+ });
1759
+ }, 2500);
1760
+ }, 500) : localStorage.setItem("swal-initiation", `${e}`);
1761
+ }
1762
+ h.prototype.disableButtons = cn;
1763
+ h.prototype.enableButtons = ln;
1764
+ h.prototype.getInput = rn;
1765
+ h.prototype.disableInput = un;
1766
+ h.prototype.enableInput = dn;
1767
+ h.prototype.hideLoading = we;
1768
+ h.prototype.disableLoading = we;
1769
+ h.prototype.showValidationMessage = wn;
1770
+ h.prototype.resetValidationMessage = fn;
1771
+ h.prototype.close = S;
1772
+ h.prototype.closePopup = S;
1773
+ h.prototype.closeModal = S;
1774
+ h.prototype.closeToast = S;
1775
+ h.prototype.rejectPromise = en;
1776
+ h.prototype.update = bn;
1777
+ h.prototype._destroy = yn;
1778
+ Object.assign(h, hi);
1779
+ Object.keys(Xs).forEach((e) => {
1780
+ h[e] = function() {
1781
+ return E && E[e] ? E[e](...arguments) : null;
1782
+ };
1783
+ });
1784
+ h.DismissReason = Y;
1785
+ h.version = "11.19.1";
1786
+ const ge = h;
1787
+ ge.default = ge;
1788
+ typeof document < "u" && function(e, t) {
1789
+ var n = e.createElement("style");
1790
+ if (e.getElementsByTagName("head")[0].appendChild(n), n.styleSheet) n.styleSheet.disabled || (n.styleSheet.cssText = t);
1791
+ else try {
1792
+ n.innerHTML = t;
1793
+ } catch {
1794
+ n.innerText = t;
1795
+ }
1796
+ }(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-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-background: transparent;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--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.1s, box-shadow 0.1s;--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-confirm-button-background-color: #7066e0;--swal2-deny-button-background-color: #dc3741;--swal2-cancel-button-background-color: #6e7881}[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)}@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)}}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:background-color .1s;-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) 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}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;word-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:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}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:box-shadow .1s;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:0;border-radius:.25em;background:initial;background-color:var(--swal2-confirm-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-deny-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:var(--swal2-cancel-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}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);color:inherit;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:rgba(0,0,0,.2)}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;word-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:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:var(--swal2-input-background);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);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):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}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;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)}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}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}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}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)}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;background:var(--swal2-background);box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);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}.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:swal2-toast-show .5s}.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);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}}');
1797
+ const Yi = () => ({
1798
+ confirm: async (t, n) => {
1799
+ var r, i;
1800
+ (await ge.fire({
1801
+ imageUrl: n == null ? void 0 : n.imageUrl,
1802
+ imageWidth: (r = n == null ? void 0 : n.image) == null ? void 0 : r.width,
1803
+ imageHeight: (i = n == null ? void 0 : n.image) == null ? void 0 : i.height,
1804
+ text: t,
1805
+ denyButtonText: (n == null ? void 0 : n.denyText) || "Non",
1806
+ confirmButtonText: (n == null ? void 0 : n.confirmText) || "Oui",
1807
+ showDenyButton: !0,
1808
+ showCloseButton: !0,
1809
+ reverseButtons: !0,
1810
+ customClass: {
1811
+ ...(n == null ? void 0 : n.classes) ?? {},
1812
+ popup: "radius-m py-3 px-4",
1813
+ confirmButton: `v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-${n.confirmButtonVariant ?? "secondary"} n-btn ma-0`,
1814
+ denyButton: "v-btn v-btn--slim v-theme--light v-btn--density-default v-btn--size-large v-btn--variant-outlined n-btn ma-0",
1815
+ actions: "w-100 justify-end ga-2",
1816
+ image: "my-0",
1817
+ htmlContainer: "pa-0 p1-paragraph"
1818
+ }
1819
+ })).isConfirmed ? n.onConfirm() : n.onCancel && n.onCancel();
1820
+ }
1821
+ });
1822
+ export {
1823
+ Wi as defined,
1824
+ _i as hexToRgb,
1825
+ Bt as hexToRgba,
1826
+ Ui as hexToRgbaStyle,
1827
+ Ni as key,
1828
+ Ri as numberToCssStyle,
1829
+ Yi as useConfirm
1830
+ };