@everymatrix/cashier-page 1.99.57 → 1.99.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/components/{CashierCarousel-Bq6JHr1Y.js → CashierCarousel-CJtWorSQ.js} +4 -6
  2. package/components/{CashierCarousel-Ctoob299.cjs → CashierCarousel-DdZUtrwb.cjs} +1 -1
  3. package/components/{CashierCarousel-wn8kpuPF.js → CashierCarousel-Dz-764eL.js} +4 -6
  4. package/components/{CashierError-B-t9yJK5.js → CashierError-BVnbSsWW.js} +2 -2
  5. package/components/{CashierError-CQUh7JV4.cjs → CashierError-CyOn_w6n.cjs} +1 -1
  6. package/components/{CashierError-DstkCld2.js → CashierError-DGp705iQ.js} +2 -2
  7. package/components/{CashierHeader-C5GFNe5x.js → CashierHeader-BWlMJjEk.js} +4 -7
  8. package/components/{CashierHeader-3TzJeRBQ.js → CashierHeader-DCLhUu5P.js} +4 -7
  9. package/components/{CashierHeader-BptzIafi.cjs → CashierHeader-TNoSsp7R.cjs} +1 -1
  10. package/components/{CashierIframeRedirect-MM75ztx3.js → CashierIframeRedirect-BKYcqmhK.js} +3 -3
  11. package/components/{CashierIframeRedirect-BD0fZt0J.cjs → CashierIframeRedirect-DpxscKvW.cjs} +1 -1
  12. package/components/{CashierIframeRedirect-BW5jUrMU.js → CashierIframeRedirect-ML8yhbxt.js} +3 -3
  13. package/components/{CashierMethodDetails-Ddmi8gsJ.js → CashierMethodDetails-BS0O9494.js} +67 -96
  14. package/components/{CashierMethodDetails-B4ywLHvK.js → CashierMethodDetails-D2bHBA7M.js} +449 -477
  15. package/components/{CashierMethodDetails-Cw0xeUoP.cjs → CashierMethodDetails-D5CoDgEr.cjs} +12 -12
  16. package/components/{CashierMethodsList-DMbcGJVU.cjs → CashierMethodsList-BaxLPtwx.cjs} +1 -1
  17. package/components/{CashierMethodsList-Dc9C5fgg.js → CashierMethodsList-GMv73qvB.js} +2 -2
  18. package/components/{CashierMethodsList-DcEuBd5x.js → CashierMethodsList-UqHTRs6v.js} +2 -2
  19. package/components/{CashierModal-DTy_R1Q9.cjs → CashierModal-2-zKJuyV.cjs} +1 -1
  20. package/components/{CashierModal-CcAnM7L4.js → CashierModal-Bs59rIJP.js} +3 -4
  21. package/components/{CashierModal-DIVRThiN.js → CashierModal-UCVrxQ_z.js} +3 -4
  22. package/components/{CashierNotifications-tregIR2O.js → CashierNotifications-96uIaTlk.js} +1 -1
  23. package/components/{CashierNotifications-BTgKJZox.js → CashierNotifications-DEnGPaZ-.js} +1 -1
  24. package/components/{CashierNotifications-CuYxd_Cw.cjs → CashierNotifications-tUr5uOkW.cjs} +1 -1
  25. package/components/CashierPage-Cn_6Y31M.cjs +23 -0
  26. package/components/{CashierPage-C2d4Yckq.js → CashierPage-DKkNfScX.js} +1559 -1596
  27. package/components/{CashierPage-BNY5LfLG.js → CashierPage-gngXzyvp.js} +1545 -1582
  28. package/components/{CashierReceiptPage-SrRzhHQW.js → CashierReceiptPage-BLioIvS1.js} +7 -12
  29. package/components/{CashierReceiptPage-BRZWNT0y.cjs → CashierReceiptPage-D4zHCqcb.cjs} +1 -1
  30. package/components/{CashierReceiptPage-PlJmUcxS.js → CashierReceiptPage-DB4IRsZq.js} +7 -12
  31. package/components/CashierSessionExpirationModal-B5K8_aPx.js +2235 -0
  32. package/components/CashierSessionExpirationModal-C5RURmGt.cjs +3 -0
  33. package/components/CashierSessionExpirationModal-bnYaJkxM.js +2235 -0
  34. package/components/{CashierSpinner-CipdBaaS.js → CashierSpinner-5kG9xekp.js} +2 -2
  35. package/components/{CashierSpinner-DnLnE8Mq.cjs → CashierSpinner-9LdAaRH1.cjs} +1 -1
  36. package/components/{CashierSpinner-n5sM1EOg.js → CashierSpinner-DgKQYH3d.js} +2 -2
  37. package/components/{CashierStepUp-17Y6VY4a.cjs → CashierStepUp-7eh4BF2Q.cjs} +1 -1
  38. package/components/{CashierStepUp-DsK6MYhc.js → CashierStepUp-DbFkfvys.js} +8 -14
  39. package/components/{CashierStepUp-CmvBQ-B5.js → CashierStepUp-ZsDc-nSM.js} +8 -14
  40. package/components/{CashierTransactionHistory-Ko-Idso7.js → CashierTransactionHistory-BZN4rNLQ.js} +4 -4
  41. package/components/{CashierTransactionHistory-CZp9Djf8.cjs → CashierTransactionHistory-DwijdMtL.cjs} +1 -1
  42. package/components/{CashierTransactionHistory-CyOSbHny.js → CashierTransactionHistory-NQYozSMg.js} +4 -4
  43. package/components/{CashierVerifications-CwceMdIx.js → CashierVerifications-BxDoaS7p.js} +5 -7
  44. package/components/{CashierVerifications-DCSFOKYF.cjs → CashierVerifications-DGYILGGe.cjs} +1 -1
  45. package/components/{CashierVerifications-CN1PN4GS.js → CashierVerifications-MHaarwxq.js} +5 -7
  46. package/components/{TxnStatusIcon-CrK6wHW9.js → TxnStatusIcon-C061Ckrf.js} +6 -11
  47. package/components/{TxnStatusIcon-BZfo-T3Z.js → TxnStatusIcon-DmjdxtdT.js} +6 -11
  48. package/components/{TxnStatusIcon-DtUIlopw.cjs → TxnStatusIcon-DznYpTuX.cjs} +1 -1
  49. package/components/{TxnTypeIcons-DTd3R0J9.js → TxnTypeIcons-B3GP1FD8.js} +4 -7
  50. package/components/{TxnTypeIcons-CRINeVr3.js → TxnTypeIcons-BNiMYDpn.js} +4 -7
  51. package/components/{TxnTypeIcons-B8QwYfy1.cjs → TxnTypeIcons-_be7k-vy.cjs} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +1 -1
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierPage-BN1YsmNi.cjs +0 -23
  57. package/components/CashierSessionExpirationModal-BBnUl2gT.js +0 -1228
  58. package/components/CashierSessionExpirationModal-BqMv2q05.js +0 -1228
  59. package/components/CashierSessionExpirationModal-CfqFV_7b.cjs +0 -2
@@ -0,0 +1,2235 @@
1
+ import { a as Wo, i as jo, $ as Yo, S as Vo, b as Xo, s as qo, f as ae, c as Ko, e as je, t as Ie, g as xe, U as ho, V as go, k as Ye, m as B, p as Nn, N as Pn, O as Zo, q as Jo, ad as Qo, d as xt, G as $o, ae as zn, af as Un, I as Bn, v as ut, u as Ct, h as vt, j as Ot, o as d, l as b, H as ei, z as wt, R as _e, n as Ae, w as ft, T as Hn, x as Fn, r as ti, y as Gn, K as Wn, A as ni, B as oi } from "./CashierPage-gngXzyvp.js";
2
+ import { s as ii, a as ri, b as si } from "./CashierHeader-BWlMJjEk.js";
3
+ function jn(o, t) {
4
+ Wo(o, t);
5
+ }
6
+ function ai(o) {
7
+ jo({
8
+ fallbackLocale: "en"
9
+ }), Yo.set(o);
10
+ }
11
+ const Yn = {
12
+ en: {
13
+ sessionExpirationHeader: "Session Warning",
14
+ sessionExpirationTitle: "Your session is about to expire!",
15
+ sessionExpirationGeneralText: "Your session will automatically terminate in <b>{second} seconds</b>.",
16
+ sessionExpirationGeneralButton: "Continue session",
17
+ sessionExpirationLoadingButton: "Processing...",
18
+ sessionExpirationEnd: "End session"
19
+ },
20
+ tr: {
21
+ sessionExpirationHeader: "Oturum Uyarısı",
22
+ sessionExpirationTitle: "Oturumunuzun süresi dolmak üzere!",
23
+ sessionExpirationGeneralText: "Oyun seansınız <b>{second} saniye</b> içinde otomatik olarak sonuçlandırılacaktır",
24
+ sessionExpirationGeneralButton: "DEVAM ET",
25
+ sessionExpirationLoadingButton: "İŞLEME...",
26
+ sessionExpirationEnd: "Oturumu sonlandır"
27
+ },
28
+ fr: {
29
+ sessionExpirationHeader: "Avertissement de session",
30
+ sessionExpirationTitle: "Votre session est sur le point d'expirer !",
31
+ sessionExpirationGeneralText: "Votre session se terminera automatiquement dans <b>{second} secondes</b>.",
32
+ sessionExpirationGeneralButton: "Continuer la session",
33
+ sessionExpirationLoadingButton: "Traitement en cours...",
34
+ sessionExpirationEnd: "Terminer la session"
35
+ },
36
+ da: {
37
+ sessionExpirationHeader: "Sessionsadvarsel",
38
+ sessionExpirationTitle: "Din session er ved at udløbe!",
39
+ sessionExpirationGeneralText: "Din session afsluttes automatisk om <b>{second} sekunder</b>.",
40
+ sessionExpirationGeneralButton: "Fortsæt session",
41
+ sessionExpirationLoadingButton: "Behandler...",
42
+ sessionExpirationEnd: "Afslut session"
43
+ },
44
+ de: {
45
+ sessionExpirationHeader: "Sitzungswarnung",
46
+ sessionExpirationTitle: "Ihre Sitzung läuft bald ab!",
47
+ sessionExpirationGeneralText: "Ihre Sitzung wird automatisch in <b>{second} Sekunden</b> beendet.",
48
+ sessionExpirationGeneralButton: "Sitzung fortsetzen",
49
+ sessionExpirationLoadingButton: "Verarbeitung...",
50
+ sessionExpirationEnd: "Sitzung beenden"
51
+ },
52
+ nl: {
53
+ sessionExpirationHeader: "Sessiewaarschuwing",
54
+ sessionExpirationTitle: "Uw sessie staat op het punt te verlopen!",
55
+ sessionExpirationGeneralText: "Uw sessie wordt automatisch beëindigd over <b>{second} seconden</b>.",
56
+ sessionExpirationGeneralButton: "Sessie voortzetten",
57
+ sessionExpirationLoadingButton: "Verwerken...",
58
+ sessionExpirationEnd: "Sessie beëindigen"
59
+ },
60
+ ru: {
61
+ sessionExpirationHeader: "Предупреждение о сессии",
62
+ sessionExpirationTitle: "Ваша сессия скоро завершится!",
63
+ sessionExpirationGeneralText: "Ваша сессия автоматически завершится через <b>{second} секунд</b>.",
64
+ sessionExpirationGeneralButton: "Продолжить сессию",
65
+ sessionExpirationLoadingButton: "Обработка...",
66
+ sessionExpirationEnd: "Завершить сессию"
67
+ },
68
+ az: {
69
+ sessionExpirationHeader: "Sessiya Xəbərdarlığı",
70
+ sessionExpirationTitle: "Sessiyanızın müddəti bitmək üzrədir!",
71
+ sessionExpirationGeneralText: "Sessiyanız <b>{second} saniyə</b> ərzində avtomatik olaraq sona çatacaq.",
72
+ sessionExpirationGeneralButton: "Sessiyaya davam et",
73
+ sessionExpirationLoadingButton: "İcra olunur...",
74
+ sessionExpirationEnd: "Sessiyanı sonlandır"
75
+ }
76
+ };
77
+ /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
78
+ function Vn(o, t) {
79
+ (t == null || t > o.length) && (t = o.length);
80
+ for (var i = 0, r = Array(t); i < t; i++) r[i] = o[i];
81
+ return r;
82
+ }
83
+ function li(o) {
84
+ if (Array.isArray(o)) return o;
85
+ }
86
+ function ci(o, t) {
87
+ var i = o == null ? null : typeof Symbol != "undefined" && o[Symbol.iterator] || o["@@iterator"];
88
+ if (i != null) {
89
+ var r, c, u, g, A = [], E = !0, w = !1;
90
+ try {
91
+ if (u = (i = i.call(o)).next, t !== 0) for (; !(E = (r = u.call(i)).done) && (A.push(r.value), A.length !== t); E = !0) ;
92
+ } catch (H) {
93
+ w = !0, c = H;
94
+ } finally {
95
+ try {
96
+ if (!E && i.return != null && (g = i.return(), Object(g) !== g)) return;
97
+ } finally {
98
+ if (w) throw c;
99
+ }
100
+ }
101
+ return A;
102
+ }
103
+ }
104
+ function ui() {
105
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
106
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
107
+ }
108
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
109
+ function fi(o, t) {
110
+ return li(o) || ci(o, t) || pi(o, t) || ui();
111
+ }
112
+ function pi(o, t) {
113
+ if (o) {
114
+ if (typeof o == "string") return Vn(o, t);
115
+ var i = {}.toString.call(o).slice(8, -1);
116
+ return i === "Object" && o.constructor && (i = o.constructor.name), i === "Map" || i === "Set" ? Array.from(o) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? Vn(o, t) : void 0;
117
+ }
118
+ }
119
+ const _o = Object.entries, Xn = Object.setPrototypeOf, di = Object.isFrozen, Eo = Object.getPrototypeOf, To = Object.getOwnPropertyDescriptor;
120
+ let G = Object.freeze, Y = Object.seal, et = Object.create, bo = typeof Reflect != "undefined" && Reflect, sn = bo.apply, an = bo.construct;
121
+ G || (G = function(t) {
122
+ return t;
123
+ });
124
+ Y || (Y = function(t) {
125
+ return t;
126
+ });
127
+ sn || (sn = function(t, i) {
128
+ for (var r = arguments.length, c = new Array(r > 2 ? r - 2 : 0), u = 2; u < r; u++) c[u - 2] = arguments[u];
129
+ return t.apply(i, c);
130
+ });
131
+ an || (an = function(t) {
132
+ for (var i = arguments.length, r = new Array(i > 1 ? i - 1 : 0), c = 1; c < i; c++) r[c - 1] = arguments[c];
133
+ return new t(...r);
134
+ });
135
+ const Se = R(Array.prototype.forEach), mi = R(Array.prototype.lastIndexOf), qn = R(Array.prototype.pop), st = R(Array.prototype.push), hi = R(Array.prototype.slice), gi = R(Array.prototype.splice), tt = Array.isArray, Zt = yo(Set), Jt = R(Set.prototype.add), at = R(Set.prototype.has), We = R(String.prototype.toLowerCase), Qt = R(String.prototype.toString), Kn = R(String.prototype.match), lt = R(String.prototype.replace), Zn = R(String.prototype.indexOf), _i = R(String.prototype.trim), Ei = R(Number.prototype.toString), Ti = R(Boolean.prototype.toString), Jn = typeof BigInt == "undefined" ? null : R(BigInt.prototype.toString), Qn = typeof Symbol == "undefined" ? null : R(Symbol.prototype.toString), ee = R(Object.prototype.hasOwnProperty), ct = R(Object.prototype.toString), j = R(RegExp.prototype.test), we = yo(TypeError);
136
+ function R(o) {
137
+ return function(t) {
138
+ t instanceof RegExp && (t.lastIndex = 0);
139
+ for (var i = arguments.length, r = new Array(i > 1 ? i - 1 : 0), c = 1; c < i; c++) r[c - 1] = arguments[c];
140
+ return sn(o, t, r);
141
+ };
142
+ }
143
+ function yo(o) {
144
+ return function() {
145
+ for (var t = arguments.length, i = new Array(t), r = 0; r < t; r++) i[r] = arguments[r];
146
+ return an(o, i);
147
+ };
148
+ }
149
+ function S(o, t) {
150
+ let i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : We;
151
+ if (Xn && Xn(o, null), !tt(t)) return o;
152
+ let r = t.length;
153
+ for (; r--; ) {
154
+ let c = t[r];
155
+ if (typeof c == "string") {
156
+ const u = i(c);
157
+ u !== c && (di(t) || (t[r] = u), c = u);
158
+ }
159
+ o[c] = !0;
160
+ }
161
+ return o;
162
+ }
163
+ function bi(o) {
164
+ for (let t = 0; t < o.length; t++) ee(o, t) || (o[t] = null);
165
+ return o;
166
+ }
167
+ function le(o) {
168
+ const t = et(null);
169
+ for (const r of _o(o)) {
170
+ var i = fi(r, 2);
171
+ const c = i[0], u = i[1];
172
+ ee(o, c) && (tt(u) ? t[c] = bi(u) : u && typeof u == "object" && u.constructor === Object ? t[c] = le(u) : t[c] = u);
173
+ }
174
+ return t;
175
+ }
176
+ function yi(o) {
177
+ switch (typeof o) {
178
+ case "string":
179
+ return o;
180
+ case "number":
181
+ return Ei(o);
182
+ case "boolean":
183
+ return Ti(o);
184
+ case "bigint":
185
+ return Jn ? Jn(o) : "0";
186
+ case "symbol":
187
+ return Qn ? Qn(o) : "Symbol()";
188
+ case "undefined":
189
+ return ct(o);
190
+ case "function":
191
+ case "object": {
192
+ if (o === null) return ct(o);
193
+ const t = o, i = ue(t, "toString");
194
+ if (typeof i == "function") {
195
+ const r = i(t);
196
+ return typeof r == "string" ? r : ct(r);
197
+ }
198
+ return ct(o);
199
+ }
200
+ default:
201
+ return ct(o);
202
+ }
203
+ }
204
+ function ue(o, t) {
205
+ for (; o !== null; ) {
206
+ const r = To(o, t);
207
+ if (r) {
208
+ if (r.get) return R(r.get);
209
+ if (typeof r.value == "function") return R(r.value);
210
+ }
211
+ o = Eo(o);
212
+ }
213
+ function i() {
214
+ return null;
215
+ }
216
+ return i;
217
+ }
218
+ function Si(o, t) {
219
+ for (; o !== null; ) {
220
+ const i = To(o, t);
221
+ if (i) return i.get ? R(i.get) : null;
222
+ o = Eo(o);
223
+ }
224
+ return null;
225
+ }
226
+ function wi(o) {
227
+ try {
228
+ return j(o, ""), !0;
229
+ } catch (t) {
230
+ return !1;
231
+ }
232
+ }
233
+ const $n = G([
234
+ "a",
235
+ "abbr",
236
+ "acronym",
237
+ "address",
238
+ "area",
239
+ "article",
240
+ "aside",
241
+ "audio",
242
+ "b",
243
+ "bdi",
244
+ "bdo",
245
+ "big",
246
+ "blink",
247
+ "blockquote",
248
+ "body",
249
+ "br",
250
+ "button",
251
+ "canvas",
252
+ "caption",
253
+ "center",
254
+ "cite",
255
+ "code",
256
+ "col",
257
+ "colgroup",
258
+ "content",
259
+ "data",
260
+ "datalist",
261
+ "dd",
262
+ "decorator",
263
+ "del",
264
+ "details",
265
+ "dfn",
266
+ "dialog",
267
+ "dir",
268
+ "div",
269
+ "dl",
270
+ "dt",
271
+ "element",
272
+ "em",
273
+ "fieldset",
274
+ "figcaption",
275
+ "figure",
276
+ "font",
277
+ "footer",
278
+ "form",
279
+ "h1",
280
+ "h2",
281
+ "h3",
282
+ "h4",
283
+ "h5",
284
+ "h6",
285
+ "head",
286
+ "header",
287
+ "hgroup",
288
+ "hr",
289
+ "html",
290
+ "i",
291
+ "img",
292
+ "input",
293
+ "ins",
294
+ "kbd",
295
+ "label",
296
+ "legend",
297
+ "li",
298
+ "main",
299
+ "map",
300
+ "mark",
301
+ "marquee",
302
+ "menu",
303
+ "menuitem",
304
+ "meter",
305
+ "nav",
306
+ "nobr",
307
+ "ol",
308
+ "optgroup",
309
+ "option",
310
+ "output",
311
+ "p",
312
+ "picture",
313
+ "pre",
314
+ "progress",
315
+ "q",
316
+ "rp",
317
+ "rt",
318
+ "ruby",
319
+ "s",
320
+ "samp",
321
+ "search",
322
+ "section",
323
+ "select",
324
+ "shadow",
325
+ "slot",
326
+ "small",
327
+ "source",
328
+ "spacer",
329
+ "span",
330
+ "strike",
331
+ "strong",
332
+ "style",
333
+ "sub",
334
+ "summary",
335
+ "sup",
336
+ "table",
337
+ "tbody",
338
+ "td",
339
+ "template",
340
+ "textarea",
341
+ "tfoot",
342
+ "th",
343
+ "thead",
344
+ "time",
345
+ "tr",
346
+ "track",
347
+ "tt",
348
+ "u",
349
+ "ul",
350
+ "var",
351
+ "video",
352
+ "wbr"
353
+ ]), $t = G([
354
+ "svg",
355
+ "a",
356
+ "altglyph",
357
+ "altglyphdef",
358
+ "altglyphitem",
359
+ "animatecolor",
360
+ "animatemotion",
361
+ "animatetransform",
362
+ "circle",
363
+ "clippath",
364
+ "defs",
365
+ "desc",
366
+ "ellipse",
367
+ "enterkeyhint",
368
+ "exportparts",
369
+ "filter",
370
+ "font",
371
+ "g",
372
+ "glyph",
373
+ "glyphref",
374
+ "hkern",
375
+ "image",
376
+ "inputmode",
377
+ "line",
378
+ "lineargradient",
379
+ "marker",
380
+ "mask",
381
+ "metadata",
382
+ "mpath",
383
+ "part",
384
+ "path",
385
+ "pattern",
386
+ "polygon",
387
+ "polyline",
388
+ "radialgradient",
389
+ "rect",
390
+ "stop",
391
+ "style",
392
+ "switch",
393
+ "symbol",
394
+ "text",
395
+ "textpath",
396
+ "title",
397
+ "tref",
398
+ "tspan",
399
+ "view",
400
+ "vkern"
401
+ ]), en = G([
402
+ "feBlend",
403
+ "feColorMatrix",
404
+ "feComponentTransfer",
405
+ "feComposite",
406
+ "feConvolveMatrix",
407
+ "feDiffuseLighting",
408
+ "feDisplacementMap",
409
+ "feDistantLight",
410
+ "feDropShadow",
411
+ "feFlood",
412
+ "feFuncA",
413
+ "feFuncB",
414
+ "feFuncG",
415
+ "feFuncR",
416
+ "feGaussianBlur",
417
+ "feImage",
418
+ "feMerge",
419
+ "feMergeNode",
420
+ "feMorphology",
421
+ "feOffset",
422
+ "fePointLight",
423
+ "feSpecularLighting",
424
+ "feSpotLight",
425
+ "feTile",
426
+ "feTurbulence"
427
+ ]), Ai = G([
428
+ "animate",
429
+ "color-profile",
430
+ "cursor",
431
+ "discard",
432
+ "font-face",
433
+ "font-face-format",
434
+ "font-face-name",
435
+ "font-face-src",
436
+ "font-face-uri",
437
+ "foreignobject",
438
+ "hatch",
439
+ "hatchpath",
440
+ "mesh",
441
+ "meshgradient",
442
+ "meshpatch",
443
+ "meshrow",
444
+ "missing-glyph",
445
+ "script",
446
+ "set",
447
+ "solidcolor",
448
+ "unknown",
449
+ "use"
450
+ ]), tn = G([
451
+ "math",
452
+ "menclose",
453
+ "merror",
454
+ "mfenced",
455
+ "mfrac",
456
+ "mglyph",
457
+ "mi",
458
+ "mlabeledtr",
459
+ "mmultiscripts",
460
+ "mn",
461
+ "mo",
462
+ "mover",
463
+ "mpadded",
464
+ "mphantom",
465
+ "mroot",
466
+ "mrow",
467
+ "ms",
468
+ "mspace",
469
+ "msqrt",
470
+ "mstyle",
471
+ "msub",
472
+ "msup",
473
+ "msubsup",
474
+ "mtable",
475
+ "mtd",
476
+ "mtext",
477
+ "mtr",
478
+ "munder",
479
+ "munderover",
480
+ "mprescripts"
481
+ ]), xi = G([
482
+ "maction",
483
+ "maligngroup",
484
+ "malignmark",
485
+ "mlongdiv",
486
+ "mscarries",
487
+ "mscarry",
488
+ "msgroup",
489
+ "mstack",
490
+ "msline",
491
+ "msrow",
492
+ "semantics",
493
+ "annotation",
494
+ "annotation-xml",
495
+ "mprescripts",
496
+ "none"
497
+ ]), eo = G(["#text"]), to = G([
498
+ "accept",
499
+ "action",
500
+ "align",
501
+ "alt",
502
+ "autocapitalize",
503
+ "autocomplete",
504
+ "autopictureinpicture",
505
+ "autoplay",
506
+ "background",
507
+ "bgcolor",
508
+ "border",
509
+ "capture",
510
+ "cellpadding",
511
+ "cellspacing",
512
+ "checked",
513
+ "cite",
514
+ "class",
515
+ "clear",
516
+ "color",
517
+ "cols",
518
+ "colspan",
519
+ "command",
520
+ "commandfor",
521
+ "controls",
522
+ "controlslist",
523
+ "coords",
524
+ "crossorigin",
525
+ "datetime",
526
+ "decoding",
527
+ "default",
528
+ "dir",
529
+ "disabled",
530
+ "disablepictureinpicture",
531
+ "disableremoteplayback",
532
+ "download",
533
+ "draggable",
534
+ "enctype",
535
+ "enterkeyhint",
536
+ "exportparts",
537
+ "face",
538
+ "for",
539
+ "headers",
540
+ "height",
541
+ "hidden",
542
+ "high",
543
+ "href",
544
+ "hreflang",
545
+ "id",
546
+ "inert",
547
+ "inputmode",
548
+ "integrity",
549
+ "ismap",
550
+ "kind",
551
+ "label",
552
+ "lang",
553
+ "list",
554
+ "loading",
555
+ "loop",
556
+ "low",
557
+ "max",
558
+ "maxlength",
559
+ "media",
560
+ "method",
561
+ "min",
562
+ "minlength",
563
+ "multiple",
564
+ "muted",
565
+ "name",
566
+ "nonce",
567
+ "noshade",
568
+ "novalidate",
569
+ "nowrap",
570
+ "open",
571
+ "optimum",
572
+ "part",
573
+ "pattern",
574
+ "placeholder",
575
+ "playsinline",
576
+ "popover",
577
+ "popovertarget",
578
+ "popovertargetaction",
579
+ "poster",
580
+ "preload",
581
+ "pubdate",
582
+ "radiogroup",
583
+ "readonly",
584
+ "rel",
585
+ "required",
586
+ "rev",
587
+ "reversed",
588
+ "role",
589
+ "rows",
590
+ "rowspan",
591
+ "spellcheck",
592
+ "scope",
593
+ "selected",
594
+ "shape",
595
+ "size",
596
+ "sizes",
597
+ "slot",
598
+ "span",
599
+ "srclang",
600
+ "start",
601
+ "src",
602
+ "srcset",
603
+ "step",
604
+ "style",
605
+ "summary",
606
+ "tabindex",
607
+ "title",
608
+ "translate",
609
+ "type",
610
+ "usemap",
611
+ "valign",
612
+ "value",
613
+ "width",
614
+ "wrap",
615
+ "xmlns"
616
+ ]), nn = G([
617
+ "accent-height",
618
+ "accumulate",
619
+ "additive",
620
+ "alignment-baseline",
621
+ "amplitude",
622
+ "ascent",
623
+ "attributename",
624
+ "attributetype",
625
+ "azimuth",
626
+ "basefrequency",
627
+ "baseline-shift",
628
+ "begin",
629
+ "bias",
630
+ "by",
631
+ "class",
632
+ "clip",
633
+ "clippathunits",
634
+ "clip-path",
635
+ "clip-rule",
636
+ "color",
637
+ "color-interpolation",
638
+ "color-interpolation-filters",
639
+ "color-profile",
640
+ "color-rendering",
641
+ "cx",
642
+ "cy",
643
+ "d",
644
+ "dx",
645
+ "dy",
646
+ "diffuseconstant",
647
+ "direction",
648
+ "display",
649
+ "divisor",
650
+ "dominant-baseline",
651
+ "dur",
652
+ "edgemode",
653
+ "elevation",
654
+ "end",
655
+ "exponent",
656
+ "fill",
657
+ "fill-opacity",
658
+ "fill-rule",
659
+ "filter",
660
+ "filterunits",
661
+ "flood-color",
662
+ "flood-opacity",
663
+ "font-family",
664
+ "font-size",
665
+ "font-size-adjust",
666
+ "font-stretch",
667
+ "font-style",
668
+ "font-variant",
669
+ "font-weight",
670
+ "fx",
671
+ "fy",
672
+ "g1",
673
+ "g2",
674
+ "glyph-name",
675
+ "glyphref",
676
+ "gradientunits",
677
+ "gradienttransform",
678
+ "height",
679
+ "href",
680
+ "id",
681
+ "image-rendering",
682
+ "in",
683
+ "in2",
684
+ "intercept",
685
+ "k",
686
+ "k1",
687
+ "k2",
688
+ "k3",
689
+ "k4",
690
+ "kerning",
691
+ "keypoints",
692
+ "keysplines",
693
+ "keytimes",
694
+ "lang",
695
+ "lengthadjust",
696
+ "letter-spacing",
697
+ "kernelmatrix",
698
+ "kernelunitlength",
699
+ "lighting-color",
700
+ "local",
701
+ "marker-end",
702
+ "marker-mid",
703
+ "marker-start",
704
+ "markerheight",
705
+ "markerunits",
706
+ "markerwidth",
707
+ "maskcontentunits",
708
+ "maskunits",
709
+ "max",
710
+ "mask",
711
+ "mask-type",
712
+ "media",
713
+ "method",
714
+ "mode",
715
+ "min",
716
+ "name",
717
+ "numoctaves",
718
+ "offset",
719
+ "operator",
720
+ "opacity",
721
+ "order",
722
+ "orient",
723
+ "orientation",
724
+ "origin",
725
+ "overflow",
726
+ "paint-order",
727
+ "path",
728
+ "pathlength",
729
+ "patterncontentunits",
730
+ "patterntransform",
731
+ "patternunits",
732
+ "pointer-events",
733
+ "points",
734
+ "preservealpha",
735
+ "preserveaspectratio",
736
+ "primitiveunits",
737
+ "r",
738
+ "rx",
739
+ "ry",
740
+ "radius",
741
+ "refx",
742
+ "refy",
743
+ "repeatcount",
744
+ "repeatdur",
745
+ "restart",
746
+ "result",
747
+ "rotate",
748
+ "scale",
749
+ "seed",
750
+ "shape-rendering",
751
+ "slope",
752
+ "specularconstant",
753
+ "specularexponent",
754
+ "spreadmethod",
755
+ "startoffset",
756
+ "stddeviation",
757
+ "stitchtiles",
758
+ "stop-color",
759
+ "stop-opacity",
760
+ "stroke-dasharray",
761
+ "stroke-dashoffset",
762
+ "stroke-linecap",
763
+ "stroke-linejoin",
764
+ "stroke-miterlimit",
765
+ "stroke-opacity",
766
+ "stroke",
767
+ "stroke-width",
768
+ "style",
769
+ "surfacescale",
770
+ "systemlanguage",
771
+ "tabindex",
772
+ "tablevalues",
773
+ "targetx",
774
+ "targety",
775
+ "transform",
776
+ "transform-origin",
777
+ "text-anchor",
778
+ "text-decoration",
779
+ "text-orientation",
780
+ "text-rendering",
781
+ "textlength",
782
+ "type",
783
+ "u1",
784
+ "u2",
785
+ "unicode",
786
+ "values",
787
+ "vector-effect",
788
+ "viewbox",
789
+ "visibility",
790
+ "version",
791
+ "vert-adv-y",
792
+ "vert-origin-x",
793
+ "vert-origin-y",
794
+ "width",
795
+ "word-spacing",
796
+ "wrap",
797
+ "writing-mode",
798
+ "xchannelselector",
799
+ "ychannelselector",
800
+ "x",
801
+ "x1",
802
+ "x2",
803
+ "xmlns",
804
+ "y",
805
+ "y1",
806
+ "y2",
807
+ "z",
808
+ "zoomandpan"
809
+ ]), no = G([
810
+ "accent",
811
+ "accentunder",
812
+ "align",
813
+ "bevelled",
814
+ "close",
815
+ "columnalign",
816
+ "columnlines",
817
+ "columnspacing",
818
+ "columnspan",
819
+ "denomalign",
820
+ "depth",
821
+ "dir",
822
+ "display",
823
+ "displaystyle",
824
+ "encoding",
825
+ "fence",
826
+ "frame",
827
+ "height",
828
+ "href",
829
+ "id",
830
+ "largeop",
831
+ "length",
832
+ "linethickness",
833
+ "lquote",
834
+ "lspace",
835
+ "mathbackground",
836
+ "mathcolor",
837
+ "mathsize",
838
+ "mathvariant",
839
+ "maxsize",
840
+ "minsize",
841
+ "movablelimits",
842
+ "notation",
843
+ "numalign",
844
+ "open",
845
+ "rowalign",
846
+ "rowlines",
847
+ "rowspacing",
848
+ "rowspan",
849
+ "rspace",
850
+ "rquote",
851
+ "scriptlevel",
852
+ "scriptminsize",
853
+ "scriptsizemultiplier",
854
+ "selection",
855
+ "separator",
856
+ "separators",
857
+ "stretchy",
858
+ "subscriptshift",
859
+ "supscriptshift",
860
+ "symmetric",
861
+ "voffset",
862
+ "width",
863
+ "xmlns"
864
+ ]), At = G([
865
+ "xlink:href",
866
+ "xml:id",
867
+ "xlink:title",
868
+ "xml:space",
869
+ "xmlns:xlink"
870
+ ]), Ci = Y(/{{[\w\W]*|^[\w\W]*}}/g), vi = Y(/<%[\w\W]*|^[\w\W]*%>/g), Oi = Y(/\${[\w\W]*/g), Li = Y(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ri = Y(/^aria-[\-\w]+$/), oo = Y(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Mi = Y(/^(?:\w+script|data):/i), Di = Y(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), ki = Y(/^html$/i), Ii = Y(/^[a-z][.\w]*(-[.\w]+)+$/i), on = Y(/<[/\w!]/g), io = Y(/<[/\w]/g), Ni = Y(/<\/no(script|embed|frames)/i), ro = Y(/\/>/i), N = {
871
+ element: 1,
872
+ attribute: 2,
873
+ text: 3,
874
+ cdataSection: 4,
875
+ entityReference: 5,
876
+ entityNode: 6,
877
+ processingInstruction: 7,
878
+ comment: 8,
879
+ document: 9,
880
+ documentType: 10,
881
+ documentFragment: 11,
882
+ notation: 12
883
+ }, Pi = G(S({}, [
884
+ "style",
885
+ "script",
886
+ "xmp",
887
+ "iframe",
888
+ "noembed",
889
+ "noframes",
890
+ "plaintext",
891
+ "noscript"
892
+ ])), zi = function() {
893
+ return typeof window == "undefined" ? null : window;
894
+ }, Ui = function(t, i) {
895
+ if (typeof t != "object" || typeof t.createPolicy != "function") return null;
896
+ let r = null;
897
+ const c = "data-tt-policy-suffix";
898
+ i && i.hasAttribute(c) && (r = i.getAttribute(c));
899
+ const u = "dompurify" + (r ? "#" + r : "");
900
+ try {
901
+ return t.createPolicy(u, {
902
+ createHTML(g) {
903
+ return g;
904
+ },
905
+ createScriptURL(g) {
906
+ return g;
907
+ }
908
+ });
909
+ } catch (g) {
910
+ return console.warn("TrustedTypes policy " + u + " could not be created."), null;
911
+ }
912
+ }, so = function() {
913
+ return {
914
+ afterSanitizeAttributes: [],
915
+ afterSanitizeElements: [],
916
+ afterSanitizeShadowDOM: [],
917
+ beforeSanitizeAttributes: [],
918
+ beforeSanitizeElements: [],
919
+ beforeSanitizeShadowDOM: [],
920
+ uponSanitizeAttribute: [],
921
+ uponSanitizeElement: [],
922
+ uponSanitizeShadowNode: []
923
+ };
924
+ }, ke = function(t, i, r, c) {
925
+ return ee(t, i) && tt(t[i]) ? S(c.base ? le(c.base) : {}, t[i], c.transform) : r;
926
+ }, rn = function(t, i, r) {
927
+ const c = ee(t, i) ? t[i] : void 0;
928
+ return c && typeof c == "object" ? le(c) : r();
929
+ };
930
+ function So() {
931
+ let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : zi();
932
+ const t = (l) => So(l);
933
+ if (t.version = "3.4.17", t.removed = [], !o || !o.document || o.document.nodeType !== N.document || !o.Element)
934
+ return t.isSupported = !1, t;
935
+ let i = o.document;
936
+ const r = i, c = r.currentScript;
937
+ o.DocumentFragment;
938
+ const u = o.HTMLTemplateElement, g = o.Node, A = o.Element, E = o.NodeFilter;
939
+ o.NamedNodeMap === void 0 && (o.NamedNodeMap || o.MozNamedAttrMap), o.HTMLFormElement;
940
+ const w = o.DOMParser, H = o.trustedTypes, P = A.prototype, Ne = ue(P, "cloneNode"), te = ue(P, "remove"), fe = ue(P, "removeAttributeNode"), Ce = ue(P, "nextSibling"), Z = ue(P, "childNodes"), z = ue(P, "parentNode"), pe = ue(P, "shadowRoot"), de = ue(P, "attributes"), x = g && g.prototype ? ue(g.prototype, "nodeType") : null, C = g && g.prototype ? ue(g.prototype, "nodeName") : null, ce = g && g.prototype ? ue(g.prototype, "ownerDocument") : null, D = function(e) {
941
+ return x ? x(e) : e.nodeType;
942
+ }, ne = function(e) {
943
+ return C ? C(e) : e.nodeName;
944
+ }, X = Si(P, "namespaceURI"), oe = function(e) {
945
+ return X ? X(e) : e.namespaceURI;
946
+ };
947
+ if (typeof u == "function") {
948
+ const l = i.createElement("template");
949
+ l.content && l.content.ownerDocument && (i = l.content.ownerDocument);
950
+ }
951
+ let M, J = "", ie, ve = !1, V = 0;
952
+ const W = function() {
953
+ if (V > 0) throw we('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
954
+ }, I = function(e) {
955
+ W(), V++;
956
+ try {
957
+ return M.createHTML(e);
958
+ } finally {
959
+ V--;
960
+ }
961
+ }, me = function(e) {
962
+ W(), V++;
963
+ try {
964
+ return M.createScriptURL(e);
965
+ } finally {
966
+ V--;
967
+ }
968
+ }, Pe = function() {
969
+ return ve || (ie = Ui(H, c), ve = !0), ie;
970
+ }, q = i, v = q.implementation, Oe = q.createNodeIterator, Ve = q.createDocumentFragment, ze = q.getElementsByTagName, Le = r.importNode;
971
+ let _ = so();
972
+ t.isSupported = typeof _o == "function" && typeof z == "function" && v && v.createHTMLDocument !== void 0;
973
+ const f = Ci, y = vi, re = Oi, F = Li, se = Ri, pt = Mi, he = Di, dt = Ii;
974
+ let O = oo, h = null;
975
+ const Ue = S({}, [
976
+ ...$n,
977
+ ...$t,
978
+ ...en,
979
+ ...tn,
980
+ ...eo
981
+ ]);
982
+ let L = null;
983
+ const Lt = S({}, [
984
+ ...to,
985
+ ...nn,
986
+ ...no,
987
+ ...At
988
+ ]);
989
+ let Ee = Object.seal(et(null, {
990
+ tagNameCheck: {
991
+ writable: !0,
992
+ configurable: !1,
993
+ enumerable: !0,
994
+ value: null
995
+ },
996
+ attributeNameCheck: {
997
+ writable: !0,
998
+ configurable: !1,
999
+ enumerable: !0,
1000
+ value: null
1001
+ },
1002
+ allowCustomizedBuiltInElements: {
1003
+ writable: !0,
1004
+ configurable: !1,
1005
+ enumerable: !0,
1006
+ value: !1
1007
+ }
1008
+ })), nt = null, ln = null;
1009
+ const Re = Object.seal(et(null, {
1010
+ tagCheck: {
1011
+ writable: !0,
1012
+ configurable: !1,
1013
+ enumerable: !0,
1014
+ value: null
1015
+ },
1016
+ attributeCheck: {
1017
+ writable: !0,
1018
+ configurable: !1,
1019
+ enumerable: !0,
1020
+ value: null
1021
+ }
1022
+ }));
1023
+ let cn = !0, Rt = !0, un = !1, Mt = !0, ye = !1, Be = !0, He = !1, Dt = !1, mt = null, ht = null, kt = !1, Xe = !1, gt = !1, _t = !1, fn = !0, pn = !1;
1024
+ const dn = "user-content-";
1025
+ let It = !0, Nt = !1, Fe = null, qe = {}, Ge = null;
1026
+ const mn = S({}, [
1027
+ "annotation-xml",
1028
+ "audio",
1029
+ "colgroup",
1030
+ "desc",
1031
+ "foreignobject",
1032
+ "head",
1033
+ "iframe",
1034
+ "math",
1035
+ "mi",
1036
+ "mn",
1037
+ "mo",
1038
+ "ms",
1039
+ "mtext",
1040
+ "noembed",
1041
+ "noframes",
1042
+ "noscript",
1043
+ "plaintext",
1044
+ "script",
1045
+ "selectedcontent",
1046
+ "style",
1047
+ "svg",
1048
+ "template",
1049
+ "thead",
1050
+ "title",
1051
+ "video",
1052
+ "xmp"
1053
+ ]);
1054
+ let hn = null;
1055
+ const gn = S({}, [
1056
+ "audio",
1057
+ "video",
1058
+ "img",
1059
+ "source",
1060
+ "image",
1061
+ "track"
1062
+ ]);
1063
+ let _n = null;
1064
+ const En = S({}, [
1065
+ "alt",
1066
+ "class",
1067
+ "for",
1068
+ "id",
1069
+ "label",
1070
+ "name",
1071
+ "pattern",
1072
+ "placeholder",
1073
+ "role",
1074
+ "summary",
1075
+ "title",
1076
+ "value",
1077
+ "style",
1078
+ "xmlns"
1079
+ ]), Et = "http://www.w3.org/1998/Math/MathML", Tt = "http://www.w3.org/2000/svg", Te = "http://www.w3.org/1999/xhtml";
1080
+ let Ke = Te, Pt = !1, zt = null;
1081
+ const wo = S({}, [
1082
+ Et,
1083
+ Tt,
1084
+ Te
1085
+ ], Qt), Tn = G([
1086
+ "mi",
1087
+ "mo",
1088
+ "mn",
1089
+ "ms",
1090
+ "mtext"
1091
+ ]);
1092
+ let Ut = S({}, Tn);
1093
+ const bn = G(["annotation-xml"]);
1094
+ let Bt = S({}, bn);
1095
+ const Ao = S({}, [
1096
+ "title",
1097
+ "style",
1098
+ "font",
1099
+ "a",
1100
+ "script"
1101
+ ]);
1102
+ let ot = null;
1103
+ const xo = ["application/xhtml+xml", "text/html"], Co = "text/html";
1104
+ let k = null, Ze = null;
1105
+ const vo = i.createElement("form"), yn = function(e) {
1106
+ return e instanceof RegExp || e instanceof Function;
1107
+ }, Ht = function() {
1108
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1109
+ if (Ze && Ze === e) return;
1110
+ (!e || typeof e != "object") && (e = {}), e = le(e), ot = xo.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Co : e.PARSER_MEDIA_TYPE, k = ot === "application/xhtml+xml" ? Qt : We, h = ke(e, "ALLOWED_TAGS", Ue, { transform: k }), L = ke(e, "ALLOWED_ATTR", Lt, { transform: k }), zt = ke(e, "ALLOWED_NAMESPACES", wo, { transform: Qt }), _n = ke(e, "ADD_URI_SAFE_ATTR", En, {
1111
+ transform: k,
1112
+ base: En
1113
+ }), hn = ke(e, "ADD_DATA_URI_TAGS", gn, {
1114
+ transform: k,
1115
+ base: gn
1116
+ }), Ge = ke(e, "FORBID_CONTENTS", mn, { transform: k }), nt = ke(e, "FORBID_TAGS", le({}), { transform: k }), ln = ke(e, "FORBID_ATTR", le({}), { transform: k }), qe = ee(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? le(e.USE_PROFILES) : e.USE_PROFILES : !1, cn = e.ALLOW_ARIA_ATTR !== !1, Rt = e.ALLOW_DATA_ATTR !== !1, un = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Mt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ye = e.SAFE_FOR_TEMPLATES || !1, Be = e.SAFE_FOR_XML !== !1, He = e.WHOLE_DOCUMENT || !1, Xe = e.RETURN_DOM || !1, gt = e.RETURN_DOM_FRAGMENT || !1, _t = e.RETURN_TRUSTED_TYPE || !1, kt = e.FORCE_BODY || !1, fn = e.SANITIZE_DOM !== !1, pn = e.SANITIZE_NAMED_PROPS || !1, It = e.KEEP_CONTENT !== !1, Nt = e.IN_PLACE || !1, O = wi(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : oo, Ke = typeof e.NAMESPACE == "string" ? e.NAMESPACE : Te, Ut = rn(e, "MATHML_TEXT_INTEGRATION_POINTS", () => S({}, Tn)), Bt = rn(e, "HTML_INTEGRATION_POINTS", () => S({}, bn));
1117
+ const n = rn(e, "CUSTOM_ELEMENT_HANDLING", () => et(null));
1118
+ if (Ee = et(null), ee(n, "tagNameCheck") && yn(n.tagNameCheck) && (Ee.tagNameCheck = n.tagNameCheck), ee(n, "attributeNameCheck") && yn(n.attributeNameCheck) && (Ee.attributeNameCheck = n.attributeNameCheck), ee(n, "allowCustomizedBuiltInElements") && typeof n.allowCustomizedBuiltInElements == "boolean" && (Ee.allowCustomizedBuiltInElements = n.allowCustomizedBuiltInElements), Y(Ee), ye && (Rt = !1), gt && (Xe = !0), qe && (h = S({}, eo), L = et(null), qe.html === !0 && (S(h, $n), S(L, to)), qe.svg === !0 && (S(h, $t), S(L, nn), S(L, At)), qe.svgFilters === !0 && (S(h, en), S(L, nn), S(L, At)), qe.mathMl === !0 && (S(h, tn), S(L, no), S(L, At))), Re.tagCheck = null, Re.attributeCheck = null, ee(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Re.tagCheck = e.ADD_TAGS : tt(e.ADD_TAGS) && (h === Ue && (h = le(h)), S(h, e.ADD_TAGS, k))), ee(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Re.attributeCheck = e.ADD_ATTR : tt(e.ADD_ATTR) && (L === Lt && (L = le(L)), S(L, e.ADD_ATTR, k))), ee(e, "ADD_FORBID_CONTENTS") && tt(e.ADD_FORBID_CONTENTS) && (Ge === mn && (Ge = le(Ge)), S(Ge, e.ADD_FORBID_CONTENTS, k)), It && (h["#text"] = !0), He && S(h, [
1119
+ "html",
1120
+ "head",
1121
+ "body"
1122
+ ]), h.table && (S(h, ["tbody"]), delete nt.tbody), e.TRUSTED_TYPES_POLICY) {
1123
+ if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1124
+ if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
1125
+ const s = M;
1126
+ M = e.TRUSTED_TYPES_POLICY;
1127
+ try {
1128
+ J = I("");
1129
+ } catch (a) {
1130
+ throw M = s, a;
1131
+ }
1132
+ } else e.TRUSTED_TYPES_POLICY === null ? (M = void 0, J = "") : (M === void 0 && (M = Pe()), M && typeof J == "string" && (J = I("")));
1133
+ G && G(e), Ze = e;
1134
+ }, Sn = S({}, [
1135
+ ...$t,
1136
+ ...en,
1137
+ ...Ai
1138
+ ]), wn = S({}, [...tn, ...xi]), Oo = function(e, n, s) {
1139
+ return n.namespaceURI === Te ? e === "svg" : n.namespaceURI === Et ? e === "svg" && (s === "annotation-xml" || Ut[s]) : !!Sn[e];
1140
+ }, Lo = function(e, n, s) {
1141
+ return n.namespaceURI === Te ? e === "math" : n.namespaceURI === Tt ? e === "math" && Bt[s] : !!wn[e];
1142
+ }, Ro = function(e, n, s) {
1143
+ return n.namespaceURI === Tt && !Bt[s] || n.namespaceURI === Et && !Ut[s] ? !1 : !wn[e] && (Ao[e] || !Sn[e]);
1144
+ }, Mo = function(e) {
1145
+ const n = oe(e), s = We(ne(e)), a = z(e);
1146
+ let p, m;
1147
+ return a && D(a) === N.element ? (p = { namespaceURI: oe(a) }, m = We(ne(a))) : (p = { namespaceURI: Ke }, m = "template"), zt[n] ? n === Tt ? Oo(s, p, m) : n === Et ? Lo(s, p, m) : n === Te ? Ro(s, p, m) : !!(ot === "application/xhtml+xml" && zt[n]) : !1;
1148
+ }, Me = function(e) {
1149
+ st(t.removed, { element: e });
1150
+ try {
1151
+ z(e).removeChild(e);
1152
+ } catch (n) {
1153
+ if (te(e), !z(e)) throw we("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
1154
+ }
1155
+ }, An = function(e, n, s) {
1156
+ try {
1157
+ fe(e, n);
1158
+ } catch (a) {
1159
+ try {
1160
+ e.removeAttribute(s);
1161
+ } catch (p) {
1162
+ }
1163
+ }
1164
+ }, Ft = function(e) {
1165
+ Wt(e);
1166
+ const n = Z(e);
1167
+ n && Se(hi(n), (a) => {
1168
+ try {
1169
+ te(a);
1170
+ } catch (p) {
1171
+ }
1172
+ });
1173
+ const s = D(e) === N.element ? de(e) : null;
1174
+ if (s) for (let a = s.length - 1; a >= 0; --a) {
1175
+ const p = s[a], m = p && p.name;
1176
+ typeof m == "string" && An(e, p, m);
1177
+ }
1178
+ }, Je = function(e, n, s) {
1179
+ if (!s) try {
1180
+ s = n.getAttributeNode(e);
1181
+ } catch (a) {
1182
+ s = null;
1183
+ }
1184
+ st(t.removed, {
1185
+ attribute: s || null,
1186
+ from: n
1187
+ });
1188
+ try {
1189
+ s ? fe(n, s) : n.removeAttribute(e);
1190
+ } catch (a) {
1191
+ try {
1192
+ n.removeAttribute(e);
1193
+ } catch (p) {
1194
+ }
1195
+ }
1196
+ if (e === "is")
1197
+ if (Xe || gt) try {
1198
+ Me(n);
1199
+ } catch (a) {
1200
+ }
1201
+ else try {
1202
+ n.setAttribute(e, "");
1203
+ } catch (a) {
1204
+ }
1205
+ }, xn = function(e) {
1206
+ const n = de(e);
1207
+ if (n)
1208
+ for (let s = n.length - 1; s >= 0; --s) {
1209
+ const a = n[s], p = a && a.name;
1210
+ typeof p != "string" || L[k(p)] || An(e, a, p);
1211
+ }
1212
+ }, Gt = function(e, n) {
1213
+ let s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
1214
+ const a = [e];
1215
+ for (; a.length > 0; ) {
1216
+ const p = a.pop();
1217
+ if (n(p) === !1) continue;
1218
+ if (s && D(p) === N.element) {
1219
+ const T = pe(p);
1220
+ De(T) && a.push(T);
1221
+ }
1222
+ const m = Z(p);
1223
+ if (m) for (let T = m.length - 1; T >= 0; --T) a.push(m[T]);
1224
+ }
1225
+ }, Wt = function(e) {
1226
+ Gt(e, (n) => {
1227
+ D(n) === N.element && xn(n);
1228
+ });
1229
+ }, jt = function(e) {
1230
+ const n = [];
1231
+ return Gt(e, (s) => {
1232
+ n.push(s);
1233
+ }, !0), n;
1234
+ }, Do = function(e, n) {
1235
+ const s = Zt();
1236
+ Se(jt(e), (a) => {
1237
+ D(a) === N.element && Jt(s, a);
1238
+ }), Se(n, (a) => {
1239
+ D(a) === N.element && !at(s, a) && xn(a);
1240
+ });
1241
+ }, Cn = function(e, n) {
1242
+ let s = !1;
1243
+ return Se(t.removed, (a) => {
1244
+ a.element && (s = s || a.element === e, Wt(a.element));
1245
+ }), Do(e, n), s;
1246
+ }, ko = 8, Io = function(e, n) {
1247
+ const s = Fe;
1248
+ let a = null;
1249
+ const p = () => (a || (a = Zt(), Se(n, (m) => {
1250
+ Jt(a, m);
1251
+ })), a);
1252
+ for (let m = 0; ; m++) {
1253
+ const T = jt(e), U = [e];
1254
+ let be = !1;
1255
+ if (Se(T, (K) => {
1256
+ D(K) === N.documentFragment ? st(U, K) : !be && !at(s, K) && (be = at(p(), K));
1257
+ }), !be) return;
1258
+ if (m >= ko) throw we("the tree kept changing during in-place sanitization; refusing to return it");
1259
+ Se(U, (K, Q) => {
1260
+ No(K, Q > 0, e, p());
1261
+ });
1262
+ }
1263
+ }, No = function(e, n, s, a) {
1264
+ const p = Yt(e);
1265
+ let m;
1266
+ for (; m = p.nextNode(); )
1267
+ !at(a, m) || at(Fe, m) || (n && ge(_.uponSanitizeShadowNode, m, null), Xt(m, s), qt(m, s), De(m.content) && rt(m.content));
1268
+ }, Po = function(e) {
1269
+ Fe && Jt(Fe, e);
1270
+ }, vn = function(e, n) {
1271
+ return Be ? e === "patchsrc" ? !0 : e === "for" && n !== "label" && n !== "output" : !1;
1272
+ }, zo = function(e) {
1273
+ Be && Gt(e, (n) => {
1274
+ const s = D(n);
1275
+ if (s === N.processingInstruction || s === N.comment && j(io, n.data)) {
1276
+ try {
1277
+ te(n);
1278
+ } catch (a) {
1279
+ }
1280
+ return !1;
1281
+ }
1282
+ if (s === N.element) {
1283
+ const a = n, p = k(ne(n));
1284
+ try {
1285
+ a.hasAttribute && a.hasAttribute("patchsrc") && a.removeAttribute("patchsrc"), a.hasAttribute && a.hasAttribute("for") && vn("for", p) && a.removeAttribute("for");
1286
+ } catch (m) {
1287
+ }
1288
+ }
1289
+ return !0;
1290
+ });
1291
+ }, On = function(e) {
1292
+ let n = null, s = null;
1293
+ if (kt) e = "<remove></remove>" + e;
1294
+ else {
1295
+ const m = Kn(e, /^[\r\n\t ]+/);
1296
+ s = m && m[0];
1297
+ }
1298
+ ot === "application/xhtml+xml" && Ke === Te && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
1299
+ const a = M ? I(e) : e;
1300
+ if (Ke === Te) try {
1301
+ n = new w().parseFromString(a, ot);
1302
+ } catch (m) {
1303
+ }
1304
+ if (!n || !n.documentElement) {
1305
+ n = v.createDocument(Ke, "template", null);
1306
+ try {
1307
+ n.documentElement.innerHTML = Pt ? J : a;
1308
+ } catch (m) {
1309
+ }
1310
+ }
1311
+ const p = n.body || n.documentElement;
1312
+ return e && s && p.insertBefore(i.createTextNode(s), p.childNodes[0] || null), Ke === Te ? ze.call(n, He ? "html" : "body")[0] : He ? n.documentElement : p;
1313
+ }, Yt = function(e) {
1314
+ const n = ce ? ce(e) : e.ownerDocument;
1315
+ return Oe.call(n || e, e, E.SHOW_ELEMENT | E.SHOW_COMMENT | E.SHOW_TEXT | E.SHOW_PROCESSING_INSTRUCTION | E.SHOW_CDATA_SECTION, null);
1316
+ }, bt = function(e) {
1317
+ return e = lt(e, f, " "), e = lt(e, y, " "), e = lt(e, re, " "), e;
1318
+ }, Vt = function(e) {
1319
+ var n;
1320
+ Ln(e);
1321
+ const s = (n = e.querySelectorAll) === null || n === void 0 ? void 0 : n.call(e, "template");
1322
+ s && Se(s, (a) => {
1323
+ De(a.content) && Vt(a.content);
1324
+ });
1325
+ }, Ln = function(e) {
1326
+ e.normalize();
1327
+ const n = ce ? ce(e) : e.ownerDocument, s = Oe.call(n || e, e, E.SHOW_TEXT | E.SHOW_COMMENT | E.SHOW_CDATA_SECTION | E.SHOW_PROCESSING_INSTRUCTION, null);
1328
+ let a = s.nextNode();
1329
+ for (; a; )
1330
+ a.data = bt(a.data), a = s.nextNode();
1331
+ }, yt = function(e) {
1332
+ const n = C ? C(e) : null;
1333
+ return typeof n != "string" || k(n) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== de(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== x(e) || e.childNodes !== Z(e);
1334
+ }, De = function(e) {
1335
+ if (!x || typeof e != "object" || e === null) return !1;
1336
+ try {
1337
+ return x(e) === N.documentFragment;
1338
+ } catch (n) {
1339
+ return !1;
1340
+ }
1341
+ }, it = function(e) {
1342
+ if (!x || typeof e != "object" || e === null) return !1;
1343
+ try {
1344
+ return typeof x(e) == "number";
1345
+ } catch (n) {
1346
+ return !1;
1347
+ }
1348
+ };
1349
+ function ge(l, e, n) {
1350
+ l.length !== 0 && Se(l, (s) => {
1351
+ s.call(t, e, n, Ze);
1352
+ });
1353
+ }
1354
+ const Uo = function(e, n) {
1355
+ return !!(Be && e.hasChildNodes() && !it(e.firstElementChild) && j(on, e.textContent) && j(on, e.innerHTML) || Be && Pi[n] && D(e) === N.element && oe(e) === Te && (it(e.firstElementChild) || typeof e.textContent == "string" && j(on, e.textContent)) || e.nodeType === N.processingInstruction || Be && e.nodeType === N.comment && j(io, e.data));
1356
+ }, St = function(e, n) {
1357
+ if (e instanceof RegExp) return j(e, n);
1358
+ if (e instanceof Function) {
1359
+ for (var s = arguments.length, a = new Array(s > 2 ? s - 2 : 0), p = 2; p < s; p++) a[p - 2] = arguments[p];
1360
+ return !!e(n, ...a);
1361
+ }
1362
+ return !1;
1363
+ }, Bo = function(e, n, s) {
1364
+ if (!nt[n] && Dn(n) && St(Ee.tagNameCheck, n)) return !1;
1365
+ if (It && !Ge[n] && !Ge[We(n)]) {
1366
+ const a = z(e), p = Z(e);
1367
+ if (p && a) {
1368
+ const m = p.length;
1369
+ for (let T = m - 1; T >= 0; --T) {
1370
+ const U = e === s ? Ne(p[T], !0) : p[T];
1371
+ a.insertBefore(U, Ce(e));
1372
+ }
1373
+ }
1374
+ }
1375
+ return Me(e), !0;
1376
+ }, Rn = function(e, n, s, a) {
1377
+ return e.length === 0 ? n : n === s || n === a ? le(n) : n;
1378
+ }, Qe = function(e, n) {
1379
+ return e === n || z(e) !== null ? !1 : (Nt && Wt(e), !0);
1380
+ }, Xt = function(e, n) {
1381
+ if (Po(e), ge(_.beforeSanitizeElements, e, null), Qe(e, n)) return !0;
1382
+ if (yt(e))
1383
+ return Me(e), !0;
1384
+ const s = k(ne(e));
1385
+ if (h = Rn(_.uponSanitizeElement, h, Ue, mt), ge(_.uponSanitizeElement, e, {
1386
+ tagName: s,
1387
+ allowedTags: h
1388
+ }), Qe(e, n)) return !0;
1389
+ if (Uo(e, s))
1390
+ return Me(e), !0;
1391
+ if (nt[s] || !(Re.tagCheck instanceof Function && Re.tagCheck(s)) && !h[s]) {
1392
+ const a = Bo(e, s, n);
1393
+ return a === !1 && (ge(_.afterSanitizeElements, e, null), Qe(e, n)) ? !0 : a;
1394
+ }
1395
+ if (D(e) === N.element && !Mo(e) || (s === "noscript" || s === "noembed" || s === "noframes") && j(Ni, e.innerHTML))
1396
+ return Me(e), !0;
1397
+ if (ye && e.nodeType === N.text) {
1398
+ const a = bt(e.textContent);
1399
+ e.textContent !== a && (st(t.removed, { element: e.cloneNode() }), e.textContent = a);
1400
+ }
1401
+ return ge(_.afterSanitizeElements, e, null), Qe(e, n);
1402
+ }, Mn = function(e, n, s) {
1403
+ if (ln[n] || vn(n, e) || fn && (n === "id" || n === "name") && (s in i || s in vo)) return !1;
1404
+ const a = L[n] || Re.attributeCheck instanceof Function && Re.attributeCheck(n, e);
1405
+ return Rt && j(F, n) || cn && j(se, n) ? !0 : a ? _n[n] || j(O, lt(s, he, "")) || (n === "src" || n === "xlink:href" || n === "href") && e !== "script" && Zn(s, "data:") === 0 && hn[e] || un && !j(pt, lt(s, he, "")) ? !0 : !s : Dn(e) && St(Ee.tagNameCheck, e) && St(Ee.attributeNameCheck, n, e) || n === "is" && Ee.allowCustomizedBuiltInElements && St(Ee.tagNameCheck, s);
1406
+ }, Ho = S({}, [
1407
+ "annotation-xml",
1408
+ "color-profile",
1409
+ "font-face",
1410
+ "font-face-format",
1411
+ "font-face-name",
1412
+ "font-face-src",
1413
+ "font-face-uri",
1414
+ "missing-glyph"
1415
+ ]), Dn = function(e) {
1416
+ return !Ho[We(e)] && j(dt, e);
1417
+ }, Fo = function(e, n, s, a) {
1418
+ if (M && typeof H == "object" && typeof H.getAttributeType == "function" && !s) switch (H.getAttributeType(e, n)) {
1419
+ case "TrustedHTML":
1420
+ return I(a);
1421
+ case "TrustedScriptURL":
1422
+ return me(a);
1423
+ }
1424
+ return a;
1425
+ }, Go = function(e, n, s, a) {
1426
+ try {
1427
+ return s ? e.setAttributeNS(s, n, a) : e.setAttribute(n, a), yt(e) ? (Me(e), !1) : !0;
1428
+ } catch (p) {
1429
+ return Je(n, e), !1;
1430
+ }
1431
+ }, kn = function(e, n) {
1432
+ return Be && j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, n) ? !0 : We(e) === "attributename" && Kn(n, "href") !== null;
1433
+ }, qt = function(e, n) {
1434
+ if (ge(_.beforeSanitizeAttributes, e, null), Qe(e, n)) return;
1435
+ const s = e.attributes;
1436
+ if (!s || yt(e)) return;
1437
+ L = Rn(_.uponSanitizeAttribute, L, Lt, ht);
1438
+ const a = {
1439
+ attrName: "",
1440
+ attrValue: "",
1441
+ keepAttr: !0,
1442
+ allowedAttributes: L,
1443
+ forceKeepAttr: void 0
1444
+ };
1445
+ let p = s.length;
1446
+ const m = k(e.nodeName);
1447
+ for (; p--; ) {
1448
+ const T = s[p], U = T.name, be = T.namespaceURI, K = T.value, Q = k(U), $e = K;
1449
+ let $ = U === "value" ? $e : _i($e), In = !1;
1450
+ if (a.attrName = Q, a.attrValue = $, a.keepAttr = !0, a.forceKeepAttr = void 0, ge(_.uponSanitizeAttribute, e, a), $ = a.attrValue, pn && (Q === "id" || Q === "name") && Zn($, dn) !== 0 && (Je(U, e, T), $ = dn + $, In = !0), kn(U, $)) {
1451
+ Je(U, e, T);
1452
+ continue;
1453
+ }
1454
+ if (!a.forceKeepAttr) {
1455
+ if (!a.keepAttr) {
1456
+ Je(U, e, T);
1457
+ continue;
1458
+ }
1459
+ if (!Mt && j(ro, $)) {
1460
+ Je(U, e, T);
1461
+ continue;
1462
+ }
1463
+ if (ye && ($ = bt($)), !Mn(m, Q, $)) {
1464
+ Je(U, e, T);
1465
+ continue;
1466
+ }
1467
+ $ = Fo(m, Q, be, $), $ !== $e && Go(e, U, be, $) && In && qn(t.removed);
1468
+ }
1469
+ }
1470
+ ge(_.afterSanitizeAttributes, e, null), Qe(e, n);
1471
+ }, rt = function(e) {
1472
+ let n = null;
1473
+ const s = Yt(e);
1474
+ for (ge(_.beforeSanitizeShadowDOM, e, null); n = s.nextNode(); )
1475
+ if (ge(_.uponSanitizeShadowNode, n, null), Xt(n, e), qt(n, e), De(n.content) && rt(n.content), D(n) === N.element) {
1476
+ const a = pe(n);
1477
+ De(a) && (Kt(a), rt(a));
1478
+ }
1479
+ ye && Ln(e), ge(_.afterSanitizeShadowDOM, e, null);
1480
+ }, Kt = function(e) {
1481
+ const n = [{
1482
+ node: e,
1483
+ shadow: null
1484
+ }];
1485
+ for (; n.length > 0; ) {
1486
+ const s = n.pop();
1487
+ if (s.shadow) {
1488
+ rt(s.shadow);
1489
+ continue;
1490
+ }
1491
+ const a = s.node, p = D(a) === N.element, m = Z(a);
1492
+ if (m) for (let T = m.length - 1; T >= 0; --T) n.push({
1493
+ node: m[T],
1494
+ shadow: null
1495
+ });
1496
+ if (p) {
1497
+ const T = C ? C(a) : null;
1498
+ if (typeof T == "string" && k(T) === "template") {
1499
+ const U = a.content;
1500
+ De(U) && n.push({
1501
+ node: U,
1502
+ shadow: null
1503
+ });
1504
+ }
1505
+ }
1506
+ if (p) {
1507
+ const T = pe(a);
1508
+ De(T) && n.push({
1509
+ node: null,
1510
+ shadow: T
1511
+ }, {
1512
+ node: T,
1513
+ shadow: null
1514
+ });
1515
+ }
1516
+ }
1517
+ };
1518
+ return t.sanitize = function(l) {
1519
+ let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = null, s = null, a = null, p = null;
1520
+ if (Pt = !l, Pt && (l = "<!-->"), typeof l != "string" && !it(l) && (l = yi(l), typeof l != "string"))
1521
+ throw we("dirty is not a string, aborting");
1522
+ if (!t.isSupported) return l;
1523
+ Dt ? (h = mt, L = ht) : Ht(e), (_.uponSanitizeElement.length > 0 || _.uponSanitizeAttribute.length > 0) && (h = le(h)), _.uponSanitizeAttribute.length > 0 && (L = le(L)), t.removed = [];
1524
+ const m = Nt && typeof l != "string" && it(l);
1525
+ let T = [];
1526
+ const U = Fe;
1527
+ if (m) {
1528
+ zo(l);
1529
+ const Q = ne(l);
1530
+ if (typeof Q == "string") {
1531
+ const $e = k(Q);
1532
+ if (!h[$e] || nt[$e])
1533
+ throw Ft(l), we("root node is forbidden and cannot be sanitized in-place");
1534
+ }
1535
+ if (yt(l))
1536
+ throw Ft(l), we("root node is clobbered and cannot be sanitized in-place");
1537
+ T = jt(l), Fe = Zt();
1538
+ } else if (it(l))
1539
+ n = On("<!---->"), s = n.ownerDocument.importNode(l, !0), s.nodeType === N.element && s.nodeName === "BODY" || s.nodeName === "HTML" ? n = s : n.appendChild(s), Kt(n);
1540
+ else {
1541
+ if (!Xe && !ye && !He && l.indexOf("<") === -1) return M && _t ? I(l) : l;
1542
+ if (n = On(l), !n) return Xe ? null : _t ? J : "";
1543
+ }
1544
+ n && kt && Me(n.firstChild);
1545
+ const be = m ? l : n;
1546
+ try {
1547
+ m && Kt(l);
1548
+ const Q = Yt(be);
1549
+ for (; a = Q.nextNode(); )
1550
+ Xt(a, be), qt(a, be), De(a.content) && rt(a.content);
1551
+ m && Io(l, T);
1552
+ } catch (Q) {
1553
+ throw m && (Ft(l), Cn(l, T)), Q;
1554
+ } finally {
1555
+ Fe = U;
1556
+ }
1557
+ if (m) {
1558
+ if (Cn(l, T)) throw we("a node selected for removal could not be safely returned; refusing to sanitize in place");
1559
+ return ye && Vt(l), l;
1560
+ }
1561
+ if (Xe) {
1562
+ if (ye && Vt(n), gt)
1563
+ for (p = Ve.call(n.ownerDocument); n.firstChild; ) p.appendChild(n.firstChild);
1564
+ else p = n;
1565
+ return (L.shadowroot || L.shadowrootmode) && (p = Le.call(r, p, !0)), p;
1566
+ }
1567
+ let K = He ? n.outerHTML : n.innerHTML;
1568
+ return He && h["!doctype"] && n.ownerDocument && n.ownerDocument.doctype && n.ownerDocument.doctype.name && j(ki, n.ownerDocument.doctype.name) && (K = "<!DOCTYPE " + n.ownerDocument.doctype.name + `>
1569
+ ` + K), ye && (K = bt(K)), M && _t ? I(K) : K;
1570
+ }, t.setConfig = function() {
1571
+ let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1572
+ Ht(l), Dt = !0, mt = h, ht = L;
1573
+ }, t.clearConfig = function() {
1574
+ Ze = null, Dt = !1, mt = null, ht = null, M = ie, J = "";
1575
+ }, t.isValidAttribute = function(l, e, n) {
1576
+ Ze || Ht({});
1577
+ const s = k(l), a = k(e);
1578
+ return typeof n == "string" && (kn(e, n) || !Mt && j(ro, n)) ? !1 : Mn(s, a, n);
1579
+ }, t.addHook = function(l, e) {
1580
+ typeof e == "function" && ee(_, l) && st(_[l], e);
1581
+ }, t.removeHook = function(l, e) {
1582
+ if (ee(_, l)) {
1583
+ if (e !== void 0) {
1584
+ const n = mi(_[l], e);
1585
+ return n === -1 ? void 0 : gi(_[l], n, 1)[0];
1586
+ }
1587
+ return qn(_[l]);
1588
+ }
1589
+ }, t.removeHooks = function(l) {
1590
+ ee(_, l) && (_[l] = []);
1591
+ }, t.removeAllHooks = function() {
1592
+ _ = so();
1593
+ }, t;
1594
+ }
1595
+ var ao = So();
1596
+ function Bi(o) {
1597
+ Ko(o, "svelte-1kjup2o", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}@keyframes loading-spinner{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.CashierSessionExpirationModalWindow{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:115;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.3));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281f));border-radius:var(--emw--border-radius-medium, 10px);display:flex;flex-direction:column;min-width:400px;position:relative;z-index:1;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.3);padding:20px}.CashierSessionExpirationModalWrapper::before{content:"";position:absolute;inset:0;opacity:0.15;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-primary, #f9c405) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281f)) 40%, var(--emw--color-black, #000000) 60%)}.ButtonsContainer{display:flex;flex-direction:row;gap:10px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;background-color:var(--emw--color-gray-10, rgba(17, 17, 17, 0.0666666667));width:100%;border-radius:var(--emw--border-radius-medium, 4px) var(--emw--border-radius-medium, 4px) 0 0;justify-content:space-between}.CashierSessionExpirationModalHeaderTitle{display:flex;align-items:center;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);gap:8px}.CashierSessionExpirationModalHeaderTitle svg{width:24px;height:24px;fill:var(--emw--color-typography, #fff)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;justify-content:center;top:10px;right:10px;border-radius:50%;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));background:var(--emw--color-gray-transparency-85, rgba(255, 255, 255, 0.85));cursor:pointer;transition:all 150ms ease-in-out}.CashierSessionExpirationModalCloseBtn svg{width:32px;height:32px}.CashierSessionExpirationModalCloseBtn:hover{background:var(--emw--color-gray-transparency-20, rgba(255, 255, 255, 0.2))}.CashierSessionExpiration{width:100%;display:flex;flex-direction:column;margin-top:20px;gap:25px}.CashierSessionExpiration .CashierSessionExpirationButton{width:100%;height:36px;color:var(--emw-color-font-typography, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:125%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #f9c405)}.CashierSessionExpirationTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%}.CashierSessionExpirationText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 12px);opacity:0.6}.CashierSessionExpirationText p{padding:3px}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-small, 12px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}.ModalCloseIcon{z-index:20;transition:all 0.2s ease}.ModalCloseIcon svg{fill:var(--emw--color-typography, #fff);width:11px;height:11px}.ModalCloseIcon:hover{transform:rotate(90deg)}.ModalButton{color:var(--emw--color-secondary, #000);text-align:center;font-size:var(--emw--font-size-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 600);font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear;box-shadow:inset 0px 0px 0px 1px var(--emw--color-primary)}.ModalButton:hover{background-color:var(--emw--color-hover, #dbac03)}.ModalButton.Secondary{background:transparent;color:var(--emw-color-white, #fff)}.ModalButton.Secondary:hover{background-color:var(--emw--color-hover, #dbac03);color:var(--emw-color-black, #000)}.ModalButton.Primary.Disabled{cursor:default;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);opacity:0.5}.ModalButton.Primary.Disabled:hover{background:var(--emw--color-primary, #f9c408);cursor:not-allowed}');
1598
+ }
1599
+ const Hi = (o) => ({}), lo = (o) => ({}), Fi = (o) => ({}), co = (o) => ({}), Gi = (o) => ({}), uo = (o) => ({}), Wi = (o) => ({}), fo = (o) => ({ class: "CashierSessionExpirationIcon" });
1600
+ function po(o) {
1601
+ let t, i, r, c, u, g, A, E, w, H, P, Ne, te = (
1602
+ /*$_*/
1603
+ o[8]("sessionExpirationHeader") + ""
1604
+ ), fe, Ce, Z, z, pe, de, x, C, ce, D, ne, X, oe, M, J = (
1605
+ /*$_*/
1606
+ o[8]("sessionExpirationEnd") + ""
1607
+ ), ie, ve, V, W, I, me, Pe, q, v, Oe, Ve;
1608
+ const ze = (
1609
+ /*#slots*/
1610
+ o[23].icon
1611
+ ), Le = xt(
1612
+ ze,
1613
+ o,
1614
+ /*$$scope*/
1615
+ o[22],
1616
+ fo
1617
+ ), _ = Le || ji(o), f = (
1618
+ /*#slots*/
1619
+ o[23].title
1620
+ ), y = xt(
1621
+ f,
1622
+ o,
1623
+ /*$$scope*/
1624
+ o[22],
1625
+ uo
1626
+ ), re = (
1627
+ /*#slots*/
1628
+ o[23].text
1629
+ ), F = xt(
1630
+ re,
1631
+ o,
1632
+ /*$$scope*/
1633
+ o[22],
1634
+ co
1635
+ ), se = F || Yi(o), pt = [Xi, Vi], he = [];
1636
+ function dt(O, h) {
1637
+ return (
1638
+ /*showLoaderButton*/
1639
+ O[6] ? 0 : 1
1640
+ );
1641
+ }
1642
+ return W = dt(o), I = he[W] = pt[W](o), {
1643
+ c() {
1644
+ t = B("div"), i = B("div"), r = B("div"), c = B("div"), u = _e("svg"), g = _e("defs"), A = _e("mask"), E = _e("circle"), w = _e("rect"), H = _e("circle"), P = _e("circle"), Ne = Ae(), fe = ft(te), Ce = Ae(), Z = B("div"), z = _e("svg"), pe = _e("path"), de = Ae(), x = B("div"), C = B("div"), _ && _.c(), ce = Ae(), y && y.c(), D = Ae(), se && se.c(), ne = Ae(), X = B("div"), oe = B("button"), M = B("span"), ie = ft(J), ve = Ae(), V = B("button"), I.c(), d(E, "cx", "100"), d(E, "cy", "100"), d(E, "r", "90"), d(w, "x", "88"), d(w, "y", "40"), d(w, "width", "24"), d(w, "height", "80"), d(w, "rx", "12"), d(w, "fill", "black"), d(H, "cx", "100"), d(H, "cy", "150"), d(H, "r", "14"), d(H, "fill", "black"), d(A, "id", "exclamation-mask"), d(P, "cx", "100"), d(P, "cy", "100"), d(P, "r", "90"), d(P, "mask", "url(#exclamation-mask)"), d(u, "viewBox", "0 0 200 200"), d(u, "xmlns", "http://www.w3.org/2000/svg"), d(c, "class", "CashierSessionExpirationModalHeaderTitle"), d(pe, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), d(z, "xmlns", "http://www.w3.org/2000/svg"), d(z, "viewBox", "0 0 13 13"), d(z, "fill", "none"), d(z, "class", "CloseButton"), d(Z, "class", "ModalCloseIcon"), d(r, "class", "CashierSessionExpirationModalHeader"), d(M, "class", "CashierSessionExpirationButtonText"), d(oe, "type", "button"), d(oe, "class", "ModalButton Secondary"), d(V, "type", "button"), d(V, "class", me = "ModalButton Primary " + /*showLoaderButton*/
1645
+ (o[6] ? "Disabled" : "")), d(X, "class", "ButtonsContainer"), d(C, "class", "CashierSessionExpiration"), d(x, "class", "CashierSessionExpirationModalContainer"), d(i, "class", "CashierSessionExpirationModalWrapper"), d(t, "class", "CashierSessionExpirationModalWindow"), d(t, "id", "CashierSessionExpirationModal"), Bn(() => (
1646
+ /*div7_elementresize_handler*/
1647
+ o[25].call(t)
1648
+ ));
1649
+ },
1650
+ m(O, h) {
1651
+ Ye(O, t, h), b(t, i), b(i, r), b(r, c), b(c, u), b(u, g), b(g, A), b(A, E), b(A, w), b(A, H), b(u, P), b(c, Ne), b(c, fe), b(r, Ce), b(r, Z), b(Z, z), b(z, pe), b(i, de), b(i, x), b(x, C), _ && _.m(C, null), b(C, ce), y && y.m(C, null), b(C, D), se && se.m(C, null), b(C, ne), b(C, X), b(X, oe), b(oe, M), b(M, ie), b(X, ve), b(X, V), he[W].m(V, null), o[24](C), Pe = ei(
1652
+ t,
1653
+ /*div7_elementresize_handler*/
1654
+ o[25].bind(t)
1655
+ ), v = !0, Oe || (Ve = [
1656
+ wt(
1657
+ z,
1658
+ "click",
1659
+ /*goToHome*/
1660
+ o[11]
1661
+ ),
1662
+ wt(
1663
+ oe,
1664
+ "click",
1665
+ /*goToHome*/
1666
+ o[11]
1667
+ ),
1668
+ wt(
1669
+ V,
1670
+ "click",
1671
+ /*renewSession*/
1672
+ o[9]
1673
+ ),
1674
+ wt(
1675
+ t,
1676
+ "click",
1677
+ /*outOfModalClick*/
1678
+ o[10]
1679
+ )
1680
+ ], Oe = !0);
1681
+ },
1682
+ p(O, h) {
1683
+ o = O, (!v || h[0] & /*$_*/
1684
+ 256) && te !== (te = /*$_*/
1685
+ o[8]("sessionExpirationHeader") + "") && ut(fe, te), Le ? Le.p && (!v || h[0] & /*$$scope*/
1686
+ 4194304) && Ct(
1687
+ Le,
1688
+ ze,
1689
+ o,
1690
+ /*$$scope*/
1691
+ o[22],
1692
+ v ? Ot(
1693
+ ze,
1694
+ /*$$scope*/
1695
+ o[22],
1696
+ h,
1697
+ Wi
1698
+ ) : vt(
1699
+ /*$$scope*/
1700
+ o[22]
1701
+ ),
1702
+ fo
1703
+ ) : _ && _.p && (!v || h[0] & /*assetsurl*/
1704
+ 8) && _.p(o, v ? h : [-1, -1]), y && y.p && (!v || h[0] & /*$$scope*/
1705
+ 4194304) && Ct(
1706
+ y,
1707
+ f,
1708
+ o,
1709
+ /*$$scope*/
1710
+ o[22],
1711
+ v ? Ot(
1712
+ f,
1713
+ /*$$scope*/
1714
+ o[22],
1715
+ h,
1716
+ Gi
1717
+ ) : vt(
1718
+ /*$$scope*/
1719
+ o[22]
1720
+ ),
1721
+ uo
1722
+ ), F ? F.p && (!v || h[0] & /*$$scope*/
1723
+ 4194304) && Ct(
1724
+ F,
1725
+ re,
1726
+ o,
1727
+ /*$$scope*/
1728
+ o[22],
1729
+ v ? Ot(
1730
+ re,
1731
+ /*$$scope*/
1732
+ o[22],
1733
+ h,
1734
+ Fi
1735
+ ) : vt(
1736
+ /*$$scope*/
1737
+ o[22]
1738
+ ),
1739
+ co
1740
+ ) : se && se.p && (!v || h[0] & /*$_, timeLeft*/
1741
+ 384) && se.p(o, v ? h : [-1, -1]), (!v || h[0] & /*$_*/
1742
+ 256) && J !== (J = /*$_*/
1743
+ o[8]("sessionExpirationEnd") + "") && ut(ie, J);
1744
+ let Ue = W;
1745
+ W = dt(o), W === Ue ? he[W].p(o, h) : (ho(), Ie(he[Ue], 1, 1, () => {
1746
+ he[Ue] = null;
1747
+ }), go(), I = he[W], I ? I.p(o, h) : (I = he[W] = pt[W](o), I.c()), xe(I, 1), I.m(V, null)), (!v || h[0] & /*showLoaderButton*/
1748
+ 64 && me !== (me = "ModalButton Primary " + /*showLoaderButton*/
1749
+ (o[6] ? "Disabled" : ""))) && d(V, "class", me);
1750
+ },
1751
+ i(O) {
1752
+ v || (xe(_, O), xe(y, O), xe(se, O), xe(I), O && Bn(() => {
1753
+ v && (q || (q = zn(t, Un, { duration: (
1754
+ /*duration*/
1755
+ o[2]
1756
+ ) }, !0)), q.run(1));
1757
+ }), v = !0);
1758
+ },
1759
+ o(O) {
1760
+ Ie(_, O), Ie(y, O), Ie(se, O), Ie(I), O && (q || (q = zn(t, Un, { duration: (
1761
+ /*duration*/
1762
+ o[2]
1763
+ ) }, !1)), q.run(0)), v = !1;
1764
+ },
1765
+ d(O) {
1766
+ O && je(t), _ && _.d(O), y && y.d(O), se && se.d(O), he[W].d(), o[24](null), Pe(), O && q && q.end(), Oe = !1, $o(Ve);
1767
+ }
1768
+ };
1769
+ }
1770
+ function mo(o) {
1771
+ let t, i;
1772
+ return {
1773
+ c() {
1774
+ t = B("img"), Wn(t.src, i = `${/*assetsurl*/
1775
+ o[3]}/set-timeout-icon.png`) || d(t, "src", i), d(t, "width", "300px"), d(t, "alt", "error");
1776
+ },
1777
+ m(r, c) {
1778
+ Ye(r, t, c);
1779
+ },
1780
+ p(r, c) {
1781
+ c[0] & /*assetsurl*/
1782
+ 8 && !Wn(t.src, i = `${/*assetsurl*/
1783
+ r[3]}/set-timeout-icon.png`) && d(t, "src", i);
1784
+ },
1785
+ d(r) {
1786
+ r && je(t);
1787
+ }
1788
+ };
1789
+ }
1790
+ function ji(o) {
1791
+ let t, i = (
1792
+ /*assetsurl*/
1793
+ o[3] && mo(o)
1794
+ );
1795
+ return {
1796
+ c() {
1797
+ i && i.c(), t = ti();
1798
+ },
1799
+ m(r, c) {
1800
+ i && i.m(r, c), Ye(r, t, c);
1801
+ },
1802
+ p(r, c) {
1803
+ /*assetsurl*/
1804
+ r[3] ? i ? i.p(r, c) : (i = mo(r), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null);
1805
+ },
1806
+ d(r) {
1807
+ r && je(t), i && i.d(r);
1808
+ }
1809
+ };
1810
+ }
1811
+ function Yi(o) {
1812
+ let t, i, r = (
1813
+ /*$_*/
1814
+ o[8]("sessionExpirationTitle") + ""
1815
+ ), c, u, g, A = ao.sanitize(
1816
+ /*$_*/
1817
+ o[8]("sessionExpirationGeneralText", { values: { second: (
1818
+ /*timeLeft*/
1819
+ o[7]
1820
+ ) } })
1821
+ ) + "";
1822
+ return {
1823
+ c() {
1824
+ t = B("span"), i = B("p"), c = ft(r), u = Ae(), g = B("p"), d(t, "class", "CashierSessionExpirationText");
1825
+ },
1826
+ m(E, w) {
1827
+ Ye(E, t, w), b(t, i), b(i, c), b(t, u), b(t, g), g.innerHTML = A;
1828
+ },
1829
+ p(E, w) {
1830
+ w[0] & /*$_*/
1831
+ 256 && r !== (r = /*$_*/
1832
+ E[8]("sessionExpirationTitle") + "") && ut(c, r), w[0] & /*$_, timeLeft*/
1833
+ 384 && A !== (A = ao.sanitize(
1834
+ /*$_*/
1835
+ E[8]("sessionExpirationGeneralText", { values: { second: (
1836
+ /*timeLeft*/
1837
+ E[7]
1838
+ ) } })
1839
+ ) + "") && (g.innerHTML = A);
1840
+ },
1841
+ d(E) {
1842
+ E && je(t);
1843
+ }
1844
+ };
1845
+ }
1846
+ function Vi(o) {
1847
+ let t;
1848
+ const i = (
1849
+ /*#slots*/
1850
+ o[23].button
1851
+ ), r = xt(
1852
+ i,
1853
+ o,
1854
+ /*$$scope*/
1855
+ o[22],
1856
+ lo
1857
+ ), c = r || qi(o);
1858
+ return {
1859
+ c() {
1860
+ c && c.c();
1861
+ },
1862
+ m(u, g) {
1863
+ c && c.m(u, g), t = !0;
1864
+ },
1865
+ p(u, g) {
1866
+ r ? r.p && (!t || g[0] & /*$$scope*/
1867
+ 4194304) && Ct(
1868
+ r,
1869
+ i,
1870
+ u,
1871
+ /*$$scope*/
1872
+ u[22],
1873
+ t ? Ot(
1874
+ i,
1875
+ /*$$scope*/
1876
+ u[22],
1877
+ g,
1878
+ Hi
1879
+ ) : vt(
1880
+ /*$$scope*/
1881
+ u[22]
1882
+ ),
1883
+ lo
1884
+ ) : c && c.p && (!t || g[0] & /*$_*/
1885
+ 256) && c.p(u, t ? g : [-1, -1]);
1886
+ },
1887
+ i(u) {
1888
+ t || (xe(c, u), t = !0);
1889
+ },
1890
+ o(u) {
1891
+ Ie(c, u), t = !1;
1892
+ },
1893
+ d(u) {
1894
+ c && c.d(u);
1895
+ }
1896
+ };
1897
+ }
1898
+ function Xi(o) {
1899
+ let t, i, r, c, u, g = (
1900
+ /*$_*/
1901
+ o[8]("sessionExpirationLoadingButton") + ""
1902
+ ), A;
1903
+ return {
1904
+ c() {
1905
+ t = B("div"), i = _e("svg"), r = _e("path"), c = Ae(), u = B("span"), A = ft(g), d(r, "d", "M14.0282 6.58425C13.9037 4.05374 12.3688 1.68916 10.0872 0.61058C7.59818 -0.509483 4.56986 -0.0531603 2.49567 1.68916C0.504443 3.34851 -0.408201 6.04496 0.172573 8.57547C0.711862 11.0645 2.6616 13.0972 5.10915 13.7609C8.0545 14.5906 10.7509 13.1802 12.4103 10.7741C10.9169 12.7653 8.63527 14.0928 6.10476 13.6365C3.57424 13.1802 1.50005 11.2719 0.919281 8.78289C0.297024 6.12793 1.54154 3.34851 3.90612 1.97955C6.35366 0.569097 9.79682 1.10839 11.4147 3.51445C11.8295 4.09522 12.1199 4.80045 12.2444 5.50567C12.3688 6.08644 12.3273 6.7087 12.4103 7.28947C12.4933 7.82876 12.9496 8.53399 13.5718 8.16063C14.1111 7.82876 14.0696 7.12354 14.0282 6.58425C14.0696 6.87464 14.0282 6.41831 14.0282 6.58425Z"), d(r, "fill", "white"), d(i, "class", "CashierSessionExpirationButtonSpinner"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "15"), d(i, "height", "14"), d(i, "viewBox", "0 0 15 14"), d(i, "fill", "none"), d(u, "class", "CashierSessionExpirationButtonText");
1906
+ },
1907
+ m(E, w) {
1908
+ Ye(E, t, w), b(t, i), b(i, r), b(t, c), b(t, u), b(u, A);
1909
+ },
1910
+ p(E, w) {
1911
+ w[0] & /*$_*/
1912
+ 256 && g !== (g = /*$_*/
1913
+ E[8]("sessionExpirationLoadingButton") + "") && ut(A, g);
1914
+ },
1915
+ i: Gn,
1916
+ o: Gn,
1917
+ d(E) {
1918
+ E && je(t);
1919
+ }
1920
+ };
1921
+ }
1922
+ function qi(o) {
1923
+ let t, i = (
1924
+ /*$_*/
1925
+ o[8]("sessionExpirationGeneralButton") + ""
1926
+ ), r;
1927
+ return {
1928
+ c() {
1929
+ t = B("span"), r = ft(i), d(t, "class", "CashierSessionExpirationButtonText");
1930
+ },
1931
+ m(c, u) {
1932
+ Ye(c, t, u), b(t, r);
1933
+ },
1934
+ p(c, u) {
1935
+ u[0] & /*$_*/
1936
+ 256 && i !== (i = /*$_*/
1937
+ c[8]("sessionExpirationGeneralButton") + "") && ut(r, i);
1938
+ },
1939
+ d(c) {
1940
+ c && je(t);
1941
+ }
1942
+ };
1943
+ }
1944
+ function Ki(o) {
1945
+ let t, i, r = (
1946
+ /*show*/
1947
+ o[5] && po(o)
1948
+ );
1949
+ return {
1950
+ c() {
1951
+ t = B("div"), r && r.c();
1952
+ },
1953
+ m(c, u) {
1954
+ Ye(c, t, u), r && r.m(t, null), o[26](t), i = !0;
1955
+ },
1956
+ p(c, u) {
1957
+ /*show*/
1958
+ c[5] ? r ? (r.p(c, u), u[0] & /*show*/
1959
+ 32 && xe(r, 1)) : (r = po(c), r.c(), xe(r, 1), r.m(t, null)) : r && (ho(), Ie(r, 1, 1, () => {
1960
+ r = null;
1961
+ }), go());
1962
+ },
1963
+ i(c) {
1964
+ i || (xe(r), i = !0);
1965
+ },
1966
+ o(c) {
1967
+ Ie(r), i = !1;
1968
+ },
1969
+ d(c) {
1970
+ c && je(t), r && r.d(), o[26](null);
1971
+ }
1972
+ };
1973
+ }
1974
+ const Zi = 90;
1975
+ function Ji(o, t, i) {
1976
+ let r, c;
1977
+ Nn(o, Hn, (f) => i(21, r = f)), Nn(o, oi, (f) => i(8, c = f));
1978
+ let { $$slots: u = {}, $$scope: g } = t;
1979
+ Pn.extend(Zo);
1980
+ let { clientstyling: A = "" } = t, { clientstylingurl: E = "" } = t, { width: w } = t, { height: H } = t, { duration: P = 200 } = t, { assetsurl: Ne = "" } = t, { lang: te = "en" } = t, { translationurl: fe = "" } = t, { endpoint: Ce } = t, { currency: Z } = t, { customerid: z } = t, { selectedpaymentmethodname: pe } = t, { mbsource: de = "" } = t, x, C = !1, ce = !1, D, ne, X, oe, M, J;
1981
+ var ie;
1982
+ (function(f) {
1983
+ f.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", f.Success = "Success", f.JwtTokenError = "JwtTokenError";
1984
+ })(ie || (ie = {}));
1985
+ const ve = (f) => {
1986
+ f.data.type === "StartSessionCountdown" && (oe = f.data.paymentMethodName);
1987
+ }, V = (f) => {
1988
+ try {
1989
+ return JSON.parse(atob(f.split(".")[1]));
1990
+ } catch (y) {
1991
+ return null;
1992
+ }
1993
+ }, W = () => {
1994
+ window.postMessage(
1995
+ {
1996
+ type: "ErrorResponseCode",
1997
+ errorResponseCode: M
1998
+ },
1999
+ window.location.href
2000
+ );
2001
+ }, I = (f) => {
2002
+ i(5, C = !1);
2003
+ const y = V(f);
2004
+ y && (ne = y == null ? void 0 : y.exp, i(7, D = ne), X && clearInterval(X), X = setInterval(
2005
+ () => {
2006
+ const re = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
2007
+ i(7, D = ne - re), D <= Zi && i(5, C = !0), re >= ne && (me(), window.postMessage({ type: "SessionExpired" }, window.location.href));
2008
+ },
2009
+ 1e3
2010
+ ));
2011
+ }, me = () => {
2012
+ i(7, D = 0), i(5, C = !1), clearInterval(X);
2013
+ }, Pe = () => {
2014
+ if (ce) return;
2015
+ const f = new URL(`${Ce}/v1/player/${z}/payment/GetPaymentMethod`), y = new Headers();
2016
+ i(6, ce = !0), y.append("accept", "application/json"), y.append("Content-Type", "application/json"), y.append("X-Client-Request-Timestamp", Pn.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
2017
+ const re = {
2018
+ method: "POST",
2019
+ mode: "cors",
2020
+ headers: y,
2021
+ body: JSON.stringify({
2022
+ PaymentMethodName: oe || pe,
2023
+ Currency: Z,
2024
+ XPaymentSessionToken: r
2025
+ })
2026
+ };
2027
+ fetch(f, re).then((F) => F.json()).then((F) => {
2028
+ if (F.error) {
2029
+ window.postMessage(
2030
+ {
2031
+ type: "ShowSessionError",
2032
+ error: F.error
2033
+ },
2034
+ window.location.href
2035
+ ), me();
2036
+ return;
2037
+ }
2038
+ if (F.ResponseCode === ie.PlayerSessionIsNotValid || F.ResponseCode === ie.JwtTokenError) {
2039
+ M = F.ResponseCode, me(), W();
2040
+ return;
2041
+ }
2042
+ if (F.ResponseCode !== ie.Success) {
2043
+ M = F.ResponseCode, me();
2044
+ return;
2045
+ }
2046
+ F.XPaymentSessionToken && Hn.set(F.XPaymentSessionToken);
2047
+ }).finally(() => i(6, ce = !1));
2048
+ }, q = (f) => {
2049
+ const y = f.currentTarget;
2050
+ f.target === y && Pe();
2051
+ }, v = () => {
2052
+ fetch(fe).then((y) => y.json()).then((y) => {
2053
+ Object.keys(y).forEach((re) => {
2054
+ jn(re, y[re]);
2055
+ });
2056
+ }).catch((y) => {
2057
+ console.log(y);
2058
+ });
2059
+ }, Oe = () => {
2060
+ window.postMessage({ type: "Cashier:goToHome" }, window.location.href), i(5, C = !1);
2061
+ };
2062
+ Object.keys(Yn).forEach((f) => {
2063
+ jn(f, Yn[f]);
2064
+ });
2065
+ const Ve = () => {
2066
+ ai(te);
2067
+ };
2068
+ Jo(() => (window.addEventListener("message", ve, !1), () => {
2069
+ window.removeEventListener("message", ve);
2070
+ })), Qo(() => {
2071
+ clearInterval(X);
2072
+ });
2073
+ function ze(f) {
2074
+ Fn[f ? "unshift" : "push"](() => {
2075
+ x = f, i(4, x);
2076
+ });
2077
+ }
2078
+ function Le() {
2079
+ w = this.clientWidth, H = this.clientHeight, i(0, w), i(1, H);
2080
+ }
2081
+ function _(f) {
2082
+ Fn[f ? "unshift" : "push"](() => {
2083
+ x = f, i(4, x);
2084
+ });
2085
+ }
2086
+ return o.$$set = (f) => {
2087
+ "clientstyling" in f && i(12, A = f.clientstyling), "clientstylingurl" in f && i(13, E = f.clientstylingurl), "width" in f && i(0, w = f.width), "height" in f && i(1, H = f.height), "duration" in f && i(2, P = f.duration), "assetsurl" in f && i(3, Ne = f.assetsurl), "lang" in f && i(14, te = f.lang), "translationurl" in f && i(15, fe = f.translationurl), "endpoint" in f && i(16, Ce = f.endpoint), "currency" in f && i(17, Z = f.currency), "customerid" in f && i(18, z = f.customerid), "selectedpaymentmethodname" in f && i(19, pe = f.selectedpaymentmethodname), "mbsource" in f && i(20, de = f.mbsource), "$$scope" in f && i(22, g = f.$$scope);
2088
+ }, o.$$.update = () => {
2089
+ o.$$.dirty[0] & /*$xPaymentSessionToken*/
2090
+ 2097152 && I(r), o.$$.dirty[0] & /*lang*/
2091
+ 16384 && te && Ve(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
2092
+ 4112 && A && x && ii(x, A), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
2093
+ 8208 && E && x && ri(x, E), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
2094
+ 1048592 && de && x && si(x, `${de}.Style`, J), o.$$.dirty[0] & /*translationurl*/
2095
+ 32768 && fe && v();
2096
+ }, [
2097
+ w,
2098
+ H,
2099
+ P,
2100
+ Ne,
2101
+ x,
2102
+ C,
2103
+ ce,
2104
+ D,
2105
+ c,
2106
+ Pe,
2107
+ q,
2108
+ Oe,
2109
+ A,
2110
+ E,
2111
+ te,
2112
+ fe,
2113
+ Ce,
2114
+ Z,
2115
+ z,
2116
+ pe,
2117
+ de,
2118
+ r,
2119
+ g,
2120
+ u,
2121
+ ze,
2122
+ Le,
2123
+ _
2124
+ ];
2125
+ }
2126
+ class Qi extends Vo {
2127
+ constructor(t) {
2128
+ super(), Xo(
2129
+ this,
2130
+ t,
2131
+ Ji,
2132
+ Ki,
2133
+ qo,
2134
+ {
2135
+ clientstyling: 12,
2136
+ clientstylingurl: 13,
2137
+ width: 0,
2138
+ height: 1,
2139
+ duration: 2,
2140
+ assetsurl: 3,
2141
+ lang: 14,
2142
+ translationurl: 15,
2143
+ endpoint: 16,
2144
+ currency: 17,
2145
+ customerid: 18,
2146
+ selectedpaymentmethodname: 19,
2147
+ mbsource: 20
2148
+ },
2149
+ Bi,
2150
+ [-1, -1]
2151
+ );
2152
+ }
2153
+ get clientstyling() {
2154
+ return this.$$.ctx[12];
2155
+ }
2156
+ set clientstyling(t) {
2157
+ this.$$set({ clientstyling: t }), ae();
2158
+ }
2159
+ get clientstylingurl() {
2160
+ return this.$$.ctx[13];
2161
+ }
2162
+ set clientstylingurl(t) {
2163
+ this.$$set({ clientstylingurl: t }), ae();
2164
+ }
2165
+ get width() {
2166
+ return this.$$.ctx[0];
2167
+ }
2168
+ set width(t) {
2169
+ this.$$set({ width: t }), ae();
2170
+ }
2171
+ get height() {
2172
+ return this.$$.ctx[1];
2173
+ }
2174
+ set height(t) {
2175
+ this.$$set({ height: t }), ae();
2176
+ }
2177
+ get duration() {
2178
+ return this.$$.ctx[2];
2179
+ }
2180
+ set duration(t) {
2181
+ this.$$set({ duration: t }), ae();
2182
+ }
2183
+ get assetsurl() {
2184
+ return this.$$.ctx[3];
2185
+ }
2186
+ set assetsurl(t) {
2187
+ this.$$set({ assetsurl: t }), ae();
2188
+ }
2189
+ get lang() {
2190
+ return this.$$.ctx[14];
2191
+ }
2192
+ set lang(t) {
2193
+ this.$$set({ lang: t }), ae();
2194
+ }
2195
+ get translationurl() {
2196
+ return this.$$.ctx[15];
2197
+ }
2198
+ set translationurl(t) {
2199
+ this.$$set({ translationurl: t }), ae();
2200
+ }
2201
+ get endpoint() {
2202
+ return this.$$.ctx[16];
2203
+ }
2204
+ set endpoint(t) {
2205
+ this.$$set({ endpoint: t }), ae();
2206
+ }
2207
+ get currency() {
2208
+ return this.$$.ctx[17];
2209
+ }
2210
+ set currency(t) {
2211
+ this.$$set({ currency: t }), ae();
2212
+ }
2213
+ get customerid() {
2214
+ return this.$$.ctx[18];
2215
+ }
2216
+ set customerid(t) {
2217
+ this.$$set({ customerid: t }), ae();
2218
+ }
2219
+ get selectedpaymentmethodname() {
2220
+ return this.$$.ctx[19];
2221
+ }
2222
+ set selectedpaymentmethodname(t) {
2223
+ this.$$set({ selectedpaymentmethodname: t }), ae();
2224
+ }
2225
+ get mbsource() {
2226
+ return this.$$.ctx[20];
2227
+ }
2228
+ set mbsource(t) {
2229
+ this.$$set({ mbsource: t }), ae();
2230
+ }
2231
+ }
2232
+ ni(Qi, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
2233
+ export {
2234
+ Qi as default
2235
+ };