@everymatrix/cashier-page 1.77.4 → 1.77.6

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 (77) hide show
  1. package/components/{CashierError-BEEnpeVH.cjs → CashierError-85r_lbiV.cjs} +4 -4
  2. package/components/{CashierError-BuW5dJfP.js → CashierError-CteHkwfB.js} +471 -489
  3. package/components/{CashierError-BL7OTzSK.js → CashierError-In4OzIIA.js} +623 -641
  4. package/components/{CashierHeader-FDYsDrpF.js → CashierHeader-BeeK80Nf.js} +73 -73
  5. package/components/{CashierHeader-CkyrZZ8s.js → CashierHeader-DGh4L4vF.js} +74 -74
  6. package/components/CashierHeader-bssm74cT.cjs +1 -0
  7. package/components/{CashierIframeRedirect-Db-zgjwP.cjs → CashierIframeRedirect-B2PCgM3_.cjs} +1 -1
  8. package/components/{CashierIframeRedirect-CmdPA_aZ.js → CashierIframeRedirect-CWs1zVlC.js} +3 -3
  9. package/components/{CashierIframeRedirect-wlE_YN39.js → CashierIframeRedirect-tRttmemn.js} +3 -3
  10. package/components/{CashierMethodDetails-B7K0CIlB.cjs → CashierMethodDetails-0UiFXxGB.cjs} +5 -5
  11. package/components/{CashierMethodDetails-BSBqkHNa.js → CashierMethodDetails-CXghdR2g.js} +127 -127
  12. package/components/{CashierMethodDetails-C7dG4t8m.js → CashierMethodDetails-tCy-EPwr.js} +127 -127
  13. package/components/{CashierMethodsList-FNgy0d7U.js → CashierMethodsList-CoALKisj.js} +239 -239
  14. package/components/{CashierMethodsList-gPmctW-Q.js → CashierMethodsList-D-nRx8wu.js} +256 -256
  15. package/components/CashierMethodsList-D5XG8usA.cjs +1 -0
  16. package/components/{CashierModal-BAzO-8NU.js → CashierModal-C49IE2Ol.js} +32 -32
  17. package/components/{CashierModal-vCh-dC6Q.cjs → CashierModal-CQu7VSLY.cjs} +1 -1
  18. package/components/{CashierModal-CIWk9EpH.js → CashierModal-CZVHRmZu.js} +36 -36
  19. package/components/{CashierNotifications-Bgf97-ym.cjs → CashierNotifications-CX0e5h0X.cjs} +1 -1
  20. package/components/{CashierNotifications-BhA-DfA9.js → CashierNotifications-Cdscp8qT.js} +1 -1
  21. package/components/{CashierNotifications-CfzNxd6q.js → CashierNotifications-DmdtMYZ2.js} +1 -1
  22. package/components/{CashierPage-D8YY3wAI.js → CashierPage-CGIvMHE7.js} +577 -595
  23. package/components/CashierPage-D9oKaypy.cjs +1 -0
  24. package/components/{CashierPage-DbHvX6nI.js → CashierPage-DlXd_cZV.js} +586 -604
  25. package/components/{CashierReceiptPage-BzjCwk2b.js → CashierReceiptPage-BlcpLLCo.js} +3 -3
  26. package/components/{CashierReceiptPage-A1MYfWGW.js → CashierReceiptPage-Bv6emon7.js} +3 -3
  27. package/components/{CashierReceiptPage-CQyluI1J.cjs → CashierReceiptPage-DE_LkOm4.cjs} +1 -1
  28. package/components/{CashierSessionExpirationModal-CtakjuI_.js → CashierSessionExpirationModal-3Uya7xVh.js} +444 -462
  29. package/components/CashierSessionExpirationModal-5KkgklG1.cjs +2 -0
  30. package/components/{CashierSessionExpirationModal-YWIpKzje.js → CashierSessionExpirationModal-Dxm2K4pN.js} +402 -420
  31. package/components/{CashierSpinner-DXrTfpLq.js → CashierSpinner-Cz3Wh-IF.js} +1 -1
  32. package/components/{CashierSpinner-DTztqXMW.cjs → CashierSpinner-DWl8E_o4.cjs} +1 -1
  33. package/components/{CashierSpinner-CAqB2_pw.js → CashierSpinner-lg9LHAJP.js} +1 -1
  34. package/components/CashierTransactionHistory-B02OAEKa.js +1305 -0
  35. package/components/CashierTransactionHistory-BjR4_or_.cjs +1 -0
  36. package/components/CashierTransactionHistory-CXDAkYHG.js +1305 -0
  37. package/components/CashierVerifications-BaE9KdGs.js +612 -0
  38. package/components/CashierVerifications-M462VMAt.cjs +1 -0
  39. package/components/CashierVerifications-c1_MVNTC.js +608 -0
  40. package/components/{TxnStatusIcon-Dapc6xhT.cjs → TxnStatusIcon-CTlOyy_y.cjs} +1 -1
  41. package/components/{TxnStatusIcon-ClddwA7r.js → TxnStatusIcon-DAlixEXq.js} +1 -1
  42. package/components/{TxnStatusIcon-DPmmaKoK.js → TxnStatusIcon-rx3aknw5.js} +1 -1
  43. package/components/{TxnTypeIcons-w8LBVBiN.cjs → TxnTypeIcons-CBrT37yr.cjs} +1 -1
  44. package/components/{TxnTypeIcons-CEcfPpqm.js → TxnTypeIcons-Dvyjxf9B.js} +1 -1
  45. package/components/{TxnTypeIcons-CWojIltL.js → TxnTypeIcons-xUx3dWMd.js} +1 -1
  46. package/es2015/cashier-page.cjs +1 -1
  47. package/es2015/cashier-page.js +1 -1
  48. package/esnext/cashier-page.js +1 -1
  49. package/package.json +1 -1
  50. package/stencil/index-256b7d4e-7jcaQ7rC.js +543 -0
  51. package/stencil/index-256b7d4e-BnoVkrXr.cjs +1 -0
  52. package/stencil/index-256b7d4e-CSg5Fmgt.js +559 -0
  53. package/stencil/ui-image-8975d115-BIwRmPA-.cjs +1 -0
  54. package/stencil/ui-image-8975d115-C8pJTCfZ.js +71 -0
  55. package/stencil/ui-image-8975d115-DxO6YS6C.js +71 -0
  56. package/stencil/{ui-image-e4W3SkhP.js → ui-image-B0TLi195.js} +1 -1
  57. package/stencil/{ui-image-C0iABVS5.cjs → ui-image-CLll1WRz.cjs} +1 -1
  58. package/stencil/{ui-image-BRBJSkg1.js → ui-image-CayMADxC.js} +1 -1
  59. package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-CXGY1IY3.cjs} +1 -1
  60. package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-DwuycSdC.js} +2 -2
  61. package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-rhY_9uoo.js} +2 -2
  62. package/components/CashierHeader-D5eAmyvG.cjs +0 -1
  63. package/components/CashierMethodsList-pakwpTY2.cjs +0 -1
  64. package/components/CashierPage-DcwM8mwG.cjs +0 -1
  65. package/components/CashierSessionExpirationModal-Bh3jmXl_.cjs +0 -2
  66. package/components/CashierTransactionHistory-U9Il8eZb.js +0 -1305
  67. package/components/CashierTransactionHistory-Y1g5hagc.js +0 -1305
  68. package/components/CashierTransactionHistory-c_0mTjNo.cjs +0 -1
  69. package/components/CashierVerifications-BA7PsePr.js +0 -608
  70. package/components/CashierVerifications-BTvFySIg.js +0 -604
  71. package/components/CashierVerifications-BlWTY2gh.cjs +0 -1
  72. package/stencil/index-242ac81a-BqeIndhr.js +0 -554
  73. package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
  74. package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
  75. package/stencil/ui-image-2ff23cd5-BHGIWJop.cjs +0 -1
  76. package/stencil/ui-image-2ff23cd5-D0rXudCW.js +0 -86
  77. package/stencil/ui-image-2ff23cd5-DCLQ0SIO.js +0 -86
@@ -1,13 +1,13 @@
1
- import { a as Cn, i as xn, $ as Rn, S as Ln, b as Mn, s as On, f as j, c as Nn, e as ce, t as pe, g as le, X as cn, Y as un, k as ue, r as fn, p as Pt, q as kn, a0 as vn, d as We, R as Dn, Z as Ut, K as Ft, v as qe, u as Ye, h as je, j as Xe, l as C, _ as In, z as Ht, m as F, w as Ke, n as ve, o as E, x as zt, y as ut, U as Bt, G as Gt, A as Pn, B as Un, C as Fn, D as Hn, E as zn } from "./CashierError-BuW5dJfP.js";
2
- import { f as Wt } from "./CashierModal-BAzO-8NU.js";
3
- import { d as Yt, u as Bn, x as jt } from "./CashierMethodDetails-C7dG4t8m.js";
1
+ import { a as xn, i as Rn, $ as Ln, S as Mn, b as On, s as Nn, f as j, c as vn, e as me, t as fe, g as le, X as un, Y as fn, k as pe, r as mn, p as It, q as Dn, a0 as kn, d as We, R as In, Z as Pt, K as Ut, v as qe, u as Ye, h as je, j as Xe, l as C, _ as Pn, z as Ft, m as G, w as Ke, n as De, o as T, x as Ht, y as zt, U as Bt, G as Gt, A as Un, B as Fn, C as Hn, D as zn, E as Bn } from "./CashierError-CteHkwfB.js";
2
+ import { f as Wt } from "./CashierModal-C49IE2Ol.js";
3
+ import { d as Yt, u as Gn, x as jt } from "./CashierMethodDetails-tCy-EPwr.js";
4
4
  function Xt(n, t) {
5
- Cn(n, t);
5
+ xn(n, t);
6
6
  }
7
- function Gn(n) {
8
- xn({
7
+ function Wn(n) {
8
+ Rn({
9
9
  fallbackLocale: "en"
10
- }), Rn.set(n);
10
+ }), Ln.set(n);
11
11
  }
12
12
  const Vt = {
13
13
  en: {
@@ -34,45 +34,45 @@ const Vt = {
34
34
  };
35
35
  /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
36
36
  const {
37
- entries: mn,
37
+ entries: pn,
38
38
  setPrototypeOf: qt,
39
- isFrozen: Wn,
40
- getPrototypeOf: Yn,
41
- getOwnPropertyDescriptor: jn
39
+ isFrozen: Yn,
40
+ getPrototypeOf: jn,
41
+ getOwnPropertyDescriptor: Xn
42
42
  } = Object;
43
43
  let {
44
- freeze: H,
44
+ freeze: F,
45
45
  seal: J,
46
- create: pn
46
+ create: dn
47
47
  } = Object, {
48
- apply: ft,
49
- construct: mt
48
+ apply: ut,
49
+ construct: ft
50
50
  } = typeof Reflect != "undefined" && Reflect;
51
- H || (H = function(t) {
51
+ F || (F = function(t) {
52
52
  return t;
53
53
  });
54
54
  J || (J = function(t) {
55
55
  return t;
56
56
  });
57
- ft || (ft = function(t, i, o) {
57
+ ut || (ut = function(t, i, o) {
58
58
  return t.apply(i, o);
59
59
  });
60
- mt || (mt = function(t, i) {
60
+ ft || (ft = function(t, i) {
61
61
  return new t(...i);
62
62
  });
63
- const Be = X(Array.prototype.forEach), Kt = X(Array.prototype.pop), Le = X(Array.prototype.push), Ve = X(String.prototype.toLowerCase), st = X(String.prototype.toString), Zt = X(String.prototype.match), Me = X(String.prototype.replace), Xn = X(String.prototype.indexOf), Vn = X(String.prototype.trim), te = X(Object.prototype.hasOwnProperty), U = X(RegExp.prototype.test), Oe = qn(TypeError);
63
+ const Be = X(Array.prototype.forEach), Kt = X(Array.prototype.pop), Le = X(Array.prototype.push), Ve = X(String.prototype.toLowerCase), st = X(String.prototype.toString), Zt = X(String.prototype.match), Me = X(String.prototype.replace), Vn = X(String.prototype.indexOf), qn = X(String.prototype.trim), te = X(Object.prototype.hasOwnProperty), U = X(RegExp.prototype.test), Oe = Kn(TypeError);
64
64
  function X(n) {
65
65
  return function(t) {
66
- for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), r = 1; r < i; r++)
67
- o[r - 1] = arguments[r];
68
- return ft(n, t, o);
66
+ for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++)
67
+ o[a - 1] = arguments[a];
68
+ return ut(n, t, o);
69
69
  };
70
70
  }
71
- function qn(n) {
71
+ function Kn(n) {
72
72
  return function() {
73
73
  for (var t = arguments.length, i = new Array(t), o = 0; o < t; o++)
74
74
  i[o] = arguments[o];
75
- return mt(n, i);
75
+ return ft(n, i);
76
76
  };
77
77
  }
78
78
  function f(n, t) {
@@ -80,115 +80,115 @@ function f(n, t) {
80
80
  qt && qt(n, null);
81
81
  let o = t.length;
82
82
  for (; o--; ) {
83
- let r = t[o];
84
- if (typeof r == "string") {
85
- const l = i(r);
86
- l !== r && (Wn(t) || (t[o] = l), r = l);
83
+ let a = t[o];
84
+ if (typeof a == "string") {
85
+ const u = i(a);
86
+ u !== a && (Yn(t) || (t[o] = u), a = u);
87
87
  }
88
- n[r] = !0;
88
+ n[a] = !0;
89
89
  }
90
90
  return n;
91
91
  }
92
- function Kn(n) {
92
+ function Zn(n) {
93
93
  for (let t = 0; t < n.length; t++)
94
94
  te(n, t) || (n[t] = null);
95
95
  return n;
96
96
  }
97
97
  function _e(n) {
98
- const t = pn(null);
99
- for (const [i, o] of mn(n))
100
- te(n, i) && (Array.isArray(o) ? t[i] = Kn(o) : o && typeof o == "object" && o.constructor === Object ? t[i] = _e(o) : t[i] = o);
98
+ const t = dn(null);
99
+ for (const [i, o] of pn(n))
100
+ te(n, i) && (Array.isArray(o) ? t[i] = Zn(o) : o && typeof o == "object" && o.constructor === Object ? t[i] = _e(o) : t[i] = o);
101
101
  return t;
102
102
  }
103
103
  function Ne(n, t) {
104
104
  for (; n !== null; ) {
105
- const o = jn(n, t);
105
+ const o = Xn(n, t);
106
106
  if (o) {
107
107
  if (o.get)
108
108
  return X(o.get);
109
109
  if (typeof o.value == "function")
110
110
  return X(o.value);
111
111
  }
112
- n = Yn(n);
112
+ n = jn(n);
113
113
  }
114
114
  function i() {
115
115
  return null;
116
116
  }
117
117
  return i;
118
118
  }
119
- const Jt = H(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), rt = H(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), at = H(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Zn = H(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), lt = H(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Jn = H(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qt = H(["#text"]), $t = H(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), ct = H(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), en = H(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ge = H(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Qn = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), $n = J(/<%[\w\W]*|[\w\W]*%>/gm), ei = J(/\${[\w\W]*}/gm), ti = J(/^data-[\-\w.\u00B7-\uFFFF]/), ni = J(/^aria-[\-\w]+$/), dn = J(
119
+ const Jt = F(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), rt = F(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), at = F(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Jn = F(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), lt = F(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Qn = F(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Qt = F(["#text"]), $t = F(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), ct = F(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), en = F(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ge = F(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), $n = J(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ei = J(/<%[\w\W]*|[\w\W]*%>/gm), ti = J(/\${[\w\W]*}/gm), ni = J(/^data-[\-\w.\u00B7-\uFFFF]/), ii = J(/^aria-[\-\w]+$/), hn = J(
120
120
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
121
121
  // eslint-disable-line no-useless-escape
122
- ), ii = J(/^(?:\w+script|data):/i), oi = J(
122
+ ), oi = J(/^(?:\w+script|data):/i), si = J(
123
123
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
124
124
  // eslint-disable-line no-control-regex
125
- ), hn = J(/^html$/i), si = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
125
+ ), gn = J(/^html$/i), ri = J(/^[a-z][.\w]*(-[.\w]+)+$/i);
126
126
  var tn = /* @__PURE__ */ Object.freeze({
127
127
  __proto__: null,
128
- MUSTACHE_EXPR: Qn,
129
- ERB_EXPR: $n,
130
- TMPLIT_EXPR: ei,
131
- DATA_ATTR: ti,
132
- ARIA_ATTR: ni,
133
- IS_ALLOWED_URI: dn,
134
- IS_SCRIPT_OR_DATA: ii,
135
- ATTR_WHITESPACE: oi,
136
- DOCTYPE_NAME: hn,
137
- CUSTOM_ELEMENT: si
128
+ MUSTACHE_EXPR: $n,
129
+ ERB_EXPR: ei,
130
+ TMPLIT_EXPR: ti,
131
+ DATA_ATTR: ni,
132
+ ARIA_ATTR: ii,
133
+ IS_ALLOWED_URI: hn,
134
+ IS_SCRIPT_OR_DATA: oi,
135
+ ATTR_WHITESPACE: si,
136
+ DOCTYPE_NAME: gn,
137
+ CUSTOM_ELEMENT: ri
138
138
  });
139
- const ke = {
139
+ const ve = {
140
140
  element: 1,
141
141
  text: 3,
142
142
  // Deprecated
143
143
  progressingInstruction: 7,
144
144
  comment: 8,
145
145
  document: 9
146
- }, ri = function() {
146
+ }, ai = function() {
147
147
  return typeof window == "undefined" ? null : window;
148
- }, ai = function(t, i) {
148
+ }, li = function(t, i) {
149
149
  if (typeof t != "object" || typeof t.createPolicy != "function")
150
150
  return null;
151
151
  let o = null;
152
- const r = "data-tt-policy-suffix";
153
- i && i.hasAttribute(r) && (o = i.getAttribute(r));
154
- const l = "dompurify" + (o ? "#" + o : "");
152
+ const a = "data-tt-policy-suffix";
153
+ i && i.hasAttribute(a) && (o = i.getAttribute(a));
154
+ const u = "dompurify" + (o ? "#" + o : "");
155
155
  try {
156
- return t.createPolicy(l, {
157
- createHTML(m) {
158
- return m;
156
+ return t.createPolicy(u, {
157
+ createHTML(h) {
158
+ return h;
159
159
  },
160
- createScriptURL(m) {
161
- return m;
160
+ createScriptURL(h) {
161
+ return h;
162
162
  }
163
163
  });
164
- } catch (m) {
165
- return console.warn("TrustedTypes policy " + l + " could not be created."), null;
164
+ } catch (h) {
165
+ return console.warn("TrustedTypes policy " + u + " could not be created."), null;
166
166
  }
167
167
  };
168
- function gn() {
169
- let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ri();
170
- const t = (u) => gn(u);
171
- if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !== ke.document)
168
+ function _n() {
169
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ai();
170
+ const t = (c) => _n(c);
171
+ if (t.version = "3.1.6", t.removed = [], !n || !n.document || n.document.nodeType !== ve.document)
172
172
  return t.isSupported = !1, t;
173
173
  let {
174
174
  document: i
175
175
  } = n;
176
- const o = i, r = o.currentScript, {
177
- DocumentFragment: l,
178
- HTMLTemplateElement: m,
179
- Node: v,
180
- Element: D,
181
- NodeFilter: w,
176
+ const o = i, a = o.currentScript, {
177
+ DocumentFragment: u,
178
+ HTMLTemplateElement: h,
179
+ Node: D,
180
+ Element: k,
181
+ NodeFilter: y,
182
182
  NamedNodeMap: x = n.NamedNodeMap || n.MozNamedAttrMap,
183
183
  HTMLFormElement: de,
184
184
  DOMParser: he,
185
185
  trustedTypes: V
186
- } = n, b = D.prototype, R = Ne(b, "cloneNode"), O = Ne(b, "remove"), fe = Ne(b, "nextSibling"), z = Ne(b, "childNodes"), d = Ne(b, "parentNode");
187
- if (typeof m == "function") {
188
- const u = i.createElement("template");
189
- u.content && u.content.ownerDocument && (i = u.content.ownerDocument);
186
+ } = n, A = k.prototype, R = Ne(A, "cloneNode"), O = Ne(A, "remove"), ce = Ne(A, "nextSibling"), H = Ne(A, "childNodes"), p = Ne(A, "parentNode");
187
+ if (typeof h == "function") {
188
+ const c = i.createElement("template");
189
+ c.content && c.content.ownerDocument && (i = c.content.ownerDocument);
190
190
  }
191
- let p, W = "";
191
+ let m, W = "";
192
192
  const {
193
193
  implementation: q,
194
194
  createNodeIterator: K,
@@ -198,7 +198,7 @@ function gn() {
198
198
  importNode: oe
199
199
  } = o;
200
200
  let g = {};
201
- t.isSupported = typeof mn == "function" && typeof d == "function" && q && q.createHTMLDocument !== void 0;
201
+ t.isSupported = typeof pn == "function" && typeof p == "function" && q && q.createHTMLDocument !== void 0;
202
202
  const {
203
203
  MUSTACHE_EXPR: Y,
204
204
  ERB_EXPR: $,
@@ -206,16 +206,16 @@ function gn() {
206
206
  DATA_ATTR: Ee,
207
207
  ARIA_ATTR: Z,
208
208
  IS_SCRIPT_OR_DATA: se,
209
- ATTR_WHITESPACE: h,
209
+ ATTR_WHITESPACE: d,
210
210
  CUSTOM_ELEMENT: S
211
211
  } = tn;
212
212
  let {
213
- IS_ALLOWED_URI: me
214
- } = tn, A = null;
215
- const De = f({}, [...Jt, ...rt, ...at, ...lt, ...Qt]);
216
- let y = null;
213
+ IS_ALLOWED_URI: ue
214
+ } = tn, b = null;
215
+ const ke = f({}, [...Jt, ...rt, ...at, ...lt, ...Qt]);
216
+ let w = null;
217
217
  const Ie = f({}, [...$t, ...ct, ...en, ...Ge]);
218
- let a = Object.seal(pn(null, {
218
+ let r = Object.seal(dn(null, {
219
219
  tagNameCheck: {
220
220
  writable: !0,
221
221
  configurable: !1,
@@ -234,63 +234,63 @@ function gn() {
234
234
  enumerable: !0,
235
235
  value: !1
236
236
  }
237
- })), T = null, ee = null, B = !0, Ze = !0, pt = !1, dt = !0, Te = !1, Je = !0, ge = !1, Qe = !1, $e = !1, Se = !1, Pe = !1, Ue = !1, ht = !0, gt = !1;
238
- const _n = "user-content-";
239
- let et = !0, Ce = !1, be = {}, Ae = null;
240
- const _t = f({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
241
- let Et = null;
242
- const Tt = f({}, ["audio", "video", "img", "source", "image", "track"]);
237
+ })), E = null, ee = null, z = !0, Ze = !0, mt = !1, pt = !0, Te = !1, Je = !0, ge = !1, Qe = !1, $e = !1, Se = !1, Pe = !1, Ue = !1, dt = !0, ht = !1;
238
+ const En = "user-content-";
239
+ let et = !0, Ce = !1, Ae = {}, be = null;
240
+ const gt = f({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
241
+ let _t = null;
242
+ const Et = f({}, ["audio", "video", "img", "source", "image", "track"]);
243
243
  let tt = null;
244
- const St = f({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", He = "http://www.w3.org/2000/svg", re = "http://www.w3.org/1999/xhtml";
245
- let ye = re, nt = !1, it = null;
246
- const En = f({}, [Fe, He, re], st);
244
+ const Tt = f({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", He = "http://www.w3.org/2000/svg", re = "http://www.w3.org/1999/xhtml";
245
+ let we = re, nt = !1, it = null;
246
+ const Tn = f({}, [Fe, He, re], st);
247
247
  let xe = null;
248
- const Tn = ["application/xhtml+xml", "text/html"], Sn = "text/html";
249
- let M = null, we = null;
250
- const bn = i.createElement("form"), bt = function(e) {
248
+ const Sn = ["application/xhtml+xml", "text/html"], An = "text/html";
249
+ let M = null, ye = null;
250
+ const bn = i.createElement("form"), St = function(e) {
251
251
  return e instanceof RegExp || e instanceof Function;
252
252
  }, ot = function() {
253
253
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
254
- if (!(we && we === e)) {
254
+ if (!(ye && ye === e)) {
255
255
  if ((!e || typeof e != "object") && (e = {}), e = _e(e), xe = // eslint-disable-next-line unicorn/prefer-includes
256
- Tn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? Sn : e.PARSER_MEDIA_TYPE, M = xe === "application/xhtml+xml" ? st : Ve, A = te(e, "ALLOWED_TAGS") ? f({}, e.ALLOWED_TAGS, M) : De, y = te(e, "ALLOWED_ATTR") ? f({}, e.ALLOWED_ATTR, M) : Ie, it = te(e, "ALLOWED_NAMESPACES") ? f({}, e.ALLOWED_NAMESPACES, st) : En, tt = te(e, "ADD_URI_SAFE_ATTR") ? f(
257
- _e(St),
256
+ Sn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? An : e.PARSER_MEDIA_TYPE, M = xe === "application/xhtml+xml" ? st : Ve, b = te(e, "ALLOWED_TAGS") ? f({}, e.ALLOWED_TAGS, M) : ke, w = te(e, "ALLOWED_ATTR") ? f({}, e.ALLOWED_ATTR, M) : Ie, it = te(e, "ALLOWED_NAMESPACES") ? f({}, e.ALLOWED_NAMESPACES, st) : Tn, tt = te(e, "ADD_URI_SAFE_ATTR") ? f(
257
+ _e(Tt),
258
258
  // eslint-disable-line indent
259
259
  e.ADD_URI_SAFE_ATTR,
260
260
  // eslint-disable-line indent
261
261
  M
262
262
  // eslint-disable-line indent
263
- ) : St, Et = te(e, "ADD_DATA_URI_TAGS") ? f(
264
- _e(Tt),
263
+ ) : Tt, _t = te(e, "ADD_DATA_URI_TAGS") ? f(
264
+ _e(Et),
265
265
  // eslint-disable-line indent
266
266
  e.ADD_DATA_URI_TAGS,
267
267
  // eslint-disable-line indent
268
268
  M
269
269
  // eslint-disable-line indent
270
- ) : Tt, Ae = te(e, "FORBID_CONTENTS") ? f({}, e.FORBID_CONTENTS, M) : _t, T = te(e, "FORBID_TAGS") ? f({}, e.FORBID_TAGS, M) : {}, ee = te(e, "FORBID_ATTR") ? f({}, e.FORBID_ATTR, M) : {}, be = te(e, "USE_PROFILES") ? e.USE_PROFILES : !1, B = e.ALLOW_ARIA_ATTR !== !1, Ze = e.ALLOW_DATA_ATTR !== !1, pt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, dt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Te = e.SAFE_FOR_TEMPLATES || !1, Je = e.SAFE_FOR_XML !== !1, ge = e.WHOLE_DOCUMENT || !1, Se = e.RETURN_DOM || !1, Pe = e.RETURN_DOM_FRAGMENT || !1, Ue = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, ht = e.SANITIZE_DOM !== !1, gt = e.SANITIZE_NAMED_PROPS || !1, et = e.KEEP_CONTENT !== !1, Ce = e.IN_PLACE || !1, me = e.ALLOWED_URI_REGEXP || dn, ye = e.NAMESPACE || re, a = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (a.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (a.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (a.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Te && (Ze = !1), Pe && (Se = !0), be && (A = f({}, Qt), y = [], be.html === !0 && (f(A, Jt), f(y, $t)), be.svg === !0 && (f(A, rt), f(y, ct), f(y, Ge)), be.svgFilters === !0 && (f(A, at), f(y, ct), f(y, Ge)), be.mathMl === !0 && (f(A, lt), f(y, en), f(y, Ge))), e.ADD_TAGS && (A === De && (A = _e(A)), f(A, e.ADD_TAGS, M)), e.ADD_ATTR && (y === Ie && (y = _e(y)), f(y, e.ADD_ATTR, M)), e.ADD_URI_SAFE_ATTR && f(tt, e.ADD_URI_SAFE_ATTR, M), e.FORBID_CONTENTS && (Ae === _t && (Ae = _e(Ae)), f(Ae, e.FORBID_CONTENTS, M)), et && (A["#text"] = !0), ge && f(A, ["html", "head", "body"]), A.table && (f(A, ["tbody"]), delete T.tbody), e.TRUSTED_TYPES_POLICY) {
270
+ ) : Et, be = te(e, "FORBID_CONTENTS") ? f({}, e.FORBID_CONTENTS, M) : gt, E = te(e, "FORBID_TAGS") ? f({}, e.FORBID_TAGS, M) : {}, ee = te(e, "FORBID_ATTR") ? f({}, e.FORBID_ATTR, M) : {}, Ae = te(e, "USE_PROFILES") ? e.USE_PROFILES : !1, z = e.ALLOW_ARIA_ATTR !== !1, Ze = e.ALLOW_DATA_ATTR !== !1, mt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, pt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Te = e.SAFE_FOR_TEMPLATES || !1, Je = e.SAFE_FOR_XML !== !1, ge = e.WHOLE_DOCUMENT || !1, Se = e.RETURN_DOM || !1, Pe = e.RETURN_DOM_FRAGMENT || !1, Ue = e.RETURN_TRUSTED_TYPE || !1, $e = e.FORCE_BODY || !1, dt = e.SANITIZE_DOM !== !1, ht = e.SANITIZE_NAMED_PROPS || !1, et = e.KEEP_CONTENT !== !1, Ce = e.IN_PLACE || !1, ue = e.ALLOWED_URI_REGEXP || hn, we = e.NAMESPACE || re, r = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && St(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (r.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && St(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (r.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (r.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Te && (Ze = !1), Pe && (Se = !0), Ae && (b = f({}, Qt), w = [], Ae.html === !0 && (f(b, Jt), f(w, $t)), Ae.svg === !0 && (f(b, rt), f(w, ct), f(w, Ge)), Ae.svgFilters === !0 && (f(b, at), f(w, ct), f(w, Ge)), Ae.mathMl === !0 && (f(b, lt), f(w, en), f(w, Ge))), e.ADD_TAGS && (b === ke && (b = _e(b)), f(b, e.ADD_TAGS, M)), e.ADD_ATTR && (w === Ie && (w = _e(w)), f(w, e.ADD_ATTR, M)), e.ADD_URI_SAFE_ATTR && f(tt, e.ADD_URI_SAFE_ATTR, M), e.FORBID_CONTENTS && (be === gt && (be = _e(be)), f(be, e.FORBID_CONTENTS, M)), et && (b["#text"] = !0), ge && f(b, ["html", "head", "body"]), b.table && (f(b, ["tbody"]), delete E.tbody), e.TRUSTED_TYPES_POLICY) {
271
271
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
272
272
  throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
273
273
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
274
274
  throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
275
- p = e.TRUSTED_TYPES_POLICY, W = p.createHTML("");
275
+ m = e.TRUSTED_TYPES_POLICY, W = m.createHTML("");
276
276
  } else
277
- p === void 0 && (p = ai(V, r)), p !== null && typeof W == "string" && (W = p.createHTML(""));
278
- H && H(e), we = e;
277
+ m === void 0 && (m = li(V, a)), m !== null && typeof W == "string" && (W = m.createHTML(""));
278
+ F && F(e), ye = e;
279
279
  }
280
- }, At = f({}, ["mi", "mo", "mn", "ms", "mtext"]), yt = f({}, ["foreignobject", "annotation-xml"]), An = f({}, ["title", "style", "font", "a", "script"]), wt = f({}, [...rt, ...at, ...Zn]), Ct = f({}, [...lt, ...Jn]), yn = function(e) {
281
- let s = d(e);
280
+ }, At = f({}, ["mi", "mo", "mn", "ms", "mtext"]), bt = f({}, ["foreignobject", "annotation-xml"]), wn = f({}, ["title", "style", "font", "a", "script"]), wt = f({}, [...rt, ...at, ...Jn]), yt = f({}, [...lt, ...Qn]), yn = function(e) {
281
+ let s = p(e);
282
282
  (!s || !s.tagName) && (s = {
283
- namespaceURI: ye,
283
+ namespaceURI: we,
284
284
  tagName: "template"
285
285
  });
286
- const c = Ve(e.tagName), _ = Ve(s.tagName);
287
- return it[e.namespaceURI] ? e.namespaceURI === He ? s.namespaceURI === re ? c === "svg" : s.namespaceURI === Fe ? c === "svg" && (_ === "annotation-xml" || At[_]) : !!wt[c] : e.namespaceURI === Fe ? s.namespaceURI === re ? c === "math" : s.namespaceURI === He ? c === "math" && yt[_] : !!Ct[c] : e.namespaceURI === re ? s.namespaceURI === He && !yt[_] || s.namespaceURI === Fe && !At[_] ? !1 : !Ct[c] && (An[c] || !wt[c]) : !!(xe === "application/xhtml+xml" && it[e.namespaceURI]) : !1;
286
+ const l = Ve(e.tagName), _ = Ve(s.tagName);
287
+ return it[e.namespaceURI] ? e.namespaceURI === He ? s.namespaceURI === re ? l === "svg" : s.namespaceURI === Fe ? l === "svg" && (_ === "annotation-xml" || At[_]) : !!wt[l] : e.namespaceURI === Fe ? s.namespaceURI === re ? l === "math" : s.namespaceURI === He ? l === "math" && bt[_] : !!yt[l] : e.namespaceURI === re ? s.namespaceURI === He && !bt[_] || s.namespaceURI === Fe && !At[_] ? !1 : !yt[l] && (wn[l] || !wt[l]) : !!(xe === "application/xhtml+xml" && it[e.namespaceURI]) : !1;
288
288
  }, ne = function(e) {
289
289
  Le(t.removed, {
290
290
  element: e
291
291
  });
292
292
  try {
293
- d(e).removeChild(e);
293
+ p(e).removeChild(e);
294
294
  } catch (s) {
295
295
  O(e);
296
296
  }
@@ -300,113 +300,113 @@ function gn() {
300
300
  attribute: s.getAttributeNode(e),
301
301
  from: s
302
302
  });
303
- } catch (c) {
303
+ } catch (l) {
304
304
  Le(t.removed, {
305
305
  attribute: null,
306
306
  from: s
307
307
  });
308
308
  }
309
- if (s.removeAttribute(e), e === "is" && !y[e])
309
+ if (s.removeAttribute(e), e === "is" && !w[e])
310
310
  if (Se || Pe)
311
311
  try {
312
312
  ne(s);
313
- } catch (c) {
313
+ } catch (l) {
314
314
  }
315
315
  else
316
316
  try {
317
317
  s.setAttribute(e, "");
318
- } catch (c) {
318
+ } catch (l) {
319
319
  }
320
- }, xt = function(e) {
321
- let s = null, c = null;
320
+ }, Ct = function(e) {
321
+ let s = null, l = null;
322
322
  if ($e)
323
323
  e = "<remove></remove>" + e;
324
324
  else {
325
- const k = Zt(e, /^[\r\n\t ]+/);
326
- c = k && k[0];
325
+ const v = Zt(e, /^[\r\n\t ]+/);
326
+ l = v && v[0];
327
327
  }
328
- xe === "application/xhtml+xml" && ye === re && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
329
- const _ = p ? p.createHTML(e) : e;
330
- if (ye === re)
328
+ xe === "application/xhtml+xml" && we === re && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
329
+ const _ = m ? m.createHTML(e) : e;
330
+ if (we === re)
331
331
  try {
332
332
  s = new he().parseFromString(_, xe);
333
- } catch (k) {
333
+ } catch (v) {
334
334
  }
335
335
  if (!s || !s.documentElement) {
336
- s = q.createDocument(ye, "template", null);
336
+ s = q.createDocument(we, "template", null);
337
337
  try {
338
338
  s.documentElement.innerHTML = nt ? W : _;
339
- } catch (k) {
339
+ } catch (v) {
340
340
  }
341
341
  }
342
342
  const I = s.body || s.documentElement;
343
- return e && c && I.insertBefore(i.createTextNode(c), I.childNodes[0] || null), ye === re ? Q.call(s, ge ? "html" : "body")[0] : ge ? s.documentElement : I;
344
- }, Rt = function(e) {
343
+ return e && l && I.insertBefore(i.createTextNode(l), I.childNodes[0] || null), we === re ? Q.call(s, ge ? "html" : "body")[0] : ge ? s.documentElement : I;
344
+ }, xt = function(e) {
345
345
  return K.call(
346
346
  e.ownerDocument || e,
347
347
  e,
348
348
  // eslint-disable-next-line no-bitwise
349
- w.SHOW_ELEMENT | w.SHOW_COMMENT | w.SHOW_TEXT | w.SHOW_PROCESSING_INSTRUCTION | w.SHOW_CDATA_SECTION,
349
+ y.SHOW_ELEMENT | y.SHOW_COMMENT | y.SHOW_TEXT | y.SHOW_PROCESSING_INSTRUCTION | y.SHOW_CDATA_SECTION,
350
350
  null
351
351
  );
352
- }, Lt = function(e) {
352
+ }, Rt = function(e) {
353
353
  return e instanceof de && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof x) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
354
- }, Mt = function(e) {
355
- return typeof v == "function" && e instanceof v;
356
- }, ae = function(e, s, c) {
354
+ }, Lt = function(e) {
355
+ return typeof D == "function" && e instanceof D;
356
+ }, ae = function(e, s, l) {
357
357
  g[e] && Be(g[e], (_) => {
358
- _.call(t, s, c, we);
358
+ _.call(t, s, l, ye);
359
359
  });
360
- }, Ot = function(e) {
360
+ }, Mt = function(e) {
361
361
  let s = null;
362
- if (ae("beforeSanitizeElements", e, null), Lt(e))
362
+ if (ae("beforeSanitizeElements", e, null), Rt(e))
363
363
  return ne(e), !0;
364
- const c = M(e.nodeName);
364
+ const l = M(e.nodeName);
365
365
  if (ae("uponSanitizeElement", e, {
366
- tagName: c,
367
- allowedTags: A
368
- }), e.hasChildNodes() && !Mt(e.firstElementChild) && U(/<[/\w]/g, e.innerHTML) && U(/<[/\w]/g, e.textContent) || e.nodeType === ke.progressingInstruction || Je && e.nodeType === ke.comment && U(/<[/\w]/g, e.data))
366
+ tagName: l,
367
+ allowedTags: b
368
+ }), e.hasChildNodes() && !Lt(e.firstElementChild) && U(/<[/\w]/g, e.innerHTML) && U(/<[/\w]/g, e.textContent) || e.nodeType === ve.progressingInstruction || Je && e.nodeType === ve.comment && U(/<[/\w]/g, e.data))
369
369
  return ne(e), !0;
370
- if (!A[c] || T[c]) {
371
- if (!T[c] && kt(c) && (a.tagNameCheck instanceof RegExp && U(a.tagNameCheck, c) || a.tagNameCheck instanceof Function && a.tagNameCheck(c)))
370
+ if (!b[l] || E[l]) {
371
+ if (!E[l] && Nt(l) && (r.tagNameCheck instanceof RegExp && U(r.tagNameCheck, l) || r.tagNameCheck instanceof Function && r.tagNameCheck(l)))
372
372
  return !1;
373
- if (et && !Ae[c]) {
374
- const _ = d(e) || e.parentNode, I = z(e) || e.childNodes;
373
+ if (et && !be[l]) {
374
+ const _ = p(e) || e.parentNode, I = H(e) || e.childNodes;
375
375
  if (I && _) {
376
- const k = I.length;
377
- for (let G = k - 1; G >= 0; --G) {
378
- const ie = R(I[G], !0);
379
- ie.__removalCount = (e.__removalCount || 0) + 1, _.insertBefore(ie, fe(e));
376
+ const v = I.length;
377
+ for (let B = v - 1; B >= 0; --B) {
378
+ const ie = R(I[B], !0);
379
+ ie.__removalCount = (e.__removalCount || 0) + 1, _.insertBefore(ie, ce(e));
380
380
  }
381
381
  }
382
382
  }
383
383
  return ne(e), !0;
384
384
  }
385
- return e instanceof D && !yn(e) || (c === "noscript" || c === "noembed" || c === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (ne(e), !0) : (Te && e.nodeType === ke.text && (s = e.textContent, Be([Y, $, N], (_) => {
385
+ return e instanceof k && !yn(e) || (l === "noscript" || l === "noembed" || l === "noframes") && U(/<\/no(script|embed|frames)/i, e.innerHTML) ? (ne(e), !0) : (Te && e.nodeType === ve.text && (s = e.textContent, Be([Y, $, N], (_) => {
386
386
  s = Me(s, _, " ");
387
387
  }), e.textContent !== s && (Le(t.removed, {
388
388
  element: e.cloneNode()
389
389
  }), e.textContent = s)), ae("afterSanitizeElements", e, null), !1);
390
- }, Nt = function(e, s, c) {
391
- if (ht && (s === "id" || s === "name") && (c in i || c in bn))
390
+ }, Ot = function(e, s, l) {
391
+ if (dt && (s === "id" || s === "name") && (l in i || l in bn))
392
392
  return !1;
393
393
  if (!(Ze && !ee[s] && U(Ee, s))) {
394
- if (!(B && U(Z, s))) {
395
- if (!y[s] || ee[s]) {
394
+ if (!(z && U(Z, s))) {
395
+ if (!w[s] || ee[s]) {
396
396
  if (
397
397
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
398
398
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
399
399
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
400
- !(kt(e) && (a.tagNameCheck instanceof RegExp && U(a.tagNameCheck, e) || a.tagNameCheck instanceof Function && a.tagNameCheck(e)) && (a.attributeNameCheck instanceof RegExp && U(a.attributeNameCheck, s) || a.attributeNameCheck instanceof Function && a.attributeNameCheck(s)) || // Alternative, second condition checks if it's an `is`-attribute, AND
400
+ !(Nt(e) && (r.tagNameCheck instanceof RegExp && U(r.tagNameCheck, e) || r.tagNameCheck instanceof Function && r.tagNameCheck(e)) && (r.attributeNameCheck instanceof RegExp && U(r.attributeNameCheck, s) || r.attributeNameCheck instanceof Function && r.attributeNameCheck(s)) || // Alternative, second condition checks if it's an `is`-attribute, AND
401
401
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
402
- s === "is" && a.allowCustomizedBuiltInElements && (a.tagNameCheck instanceof RegExp && U(a.tagNameCheck, c) || a.tagNameCheck instanceof Function && a.tagNameCheck(c)))
402
+ s === "is" && r.allowCustomizedBuiltInElements && (r.tagNameCheck instanceof RegExp && U(r.tagNameCheck, l) || r.tagNameCheck instanceof Function && r.tagNameCheck(l)))
403
403
  )
404
404
  return !1;
405
405
  } else if (!tt[s]) {
406
- if (!U(me, Me(c, h, ""))) {
407
- if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Xn(c, "data:") === 0 && Et[e])) {
408
- if (!(pt && !U(se, Me(c, h, "")))) {
409
- if (c)
406
+ if (!U(ue, Me(l, d, ""))) {
407
+ if (!((s === "src" || s === "xlink:href" || s === "href") && e !== "script" && Vn(l, "data:") === 0 && _t[e])) {
408
+ if (!(mt && !U(se, Me(l, d, "")))) {
409
+ if (l)
410
410
  return !1;
411
411
  }
412
412
  }
@@ -415,7 +415,7 @@ function gn() {
415
415
  }
416
416
  }
417
417
  return !0;
418
- }, kt = function(e) {
418
+ }, Nt = function(e) {
419
419
  return e !== "annotation-xml" && Zt(e, S);
420
420
  }, vt = function(e) {
421
421
  ae("beforeSanitizeAttributes", e, null);
@@ -424,134 +424,134 @@ function gn() {
424
424
  } = e;
425
425
  if (!s)
426
426
  return;
427
- const c = {
427
+ const l = {
428
428
  attrName: "",
429
429
  attrValue: "",
430
430
  keepAttr: !0,
431
- allowedAttributes: y
431
+ allowedAttributes: w
432
432
  };
433
433
  let _ = s.length;
434
434
  for (; _--; ) {
435
435
  const I = s[_], {
436
- name: k,
437
- namespaceURI: G,
436
+ name: v,
437
+ namespaceURI: B,
438
438
  value: ie
439
- } = I, Re = M(k);
440
- let P = k === "value" ? ie : Vn(ie);
441
- if (c.attrName = Re, c.attrValue = P, c.keepAttr = !0, c.forceKeepAttr = void 0, ae("uponSanitizeAttribute", e, c), P = c.attrValue, Je && U(/((--!?|])>)|<\/(style|title)/i, P)) {
442
- ze(k, e);
439
+ } = I, Re = M(v);
440
+ let P = v === "value" ? ie : qn(ie);
441
+ if (l.attrName = Re, l.attrValue = P, l.keepAttr = !0, l.forceKeepAttr = void 0, ae("uponSanitizeAttribute", e, l), P = l.attrValue, Je && U(/((--!?|])>)|<\/(style|title)/i, P)) {
442
+ ze(v, e);
443
443
  continue;
444
444
  }
445
- if (c.forceKeepAttr || (ze(k, e), !c.keepAttr))
445
+ if (l.forceKeepAttr || (ze(v, e), !l.keepAttr))
446
446
  continue;
447
- if (!dt && U(/\/>/i, P)) {
448
- ze(k, e);
447
+ if (!pt && U(/\/>/i, P)) {
448
+ ze(v, e);
449
449
  continue;
450
450
  }
451
- Te && Be([Y, $, N], (It) => {
452
- P = Me(P, It, " ");
451
+ Te && Be([Y, $, N], (kt) => {
452
+ P = Me(P, kt, " ");
453
453
  });
454
454
  const Dt = M(e.nodeName);
455
- if (Nt(Dt, Re, P)) {
456
- if (gt && (Re === "id" || Re === "name") && (ze(k, e), P = _n + P), p && typeof V == "object" && typeof V.getAttributeType == "function" && !G)
455
+ if (Ot(Dt, Re, P)) {
456
+ if (ht && (Re === "id" || Re === "name") && (ze(v, e), P = En + P), m && typeof V == "object" && typeof V.getAttributeType == "function" && !B)
457
457
  switch (V.getAttributeType(Dt, Re)) {
458
458
  case "TrustedHTML": {
459
- P = p.createHTML(P);
459
+ P = m.createHTML(P);
460
460
  break;
461
461
  }
462
462
  case "TrustedScriptURL": {
463
- P = p.createScriptURL(P);
463
+ P = m.createScriptURL(P);
464
464
  break;
465
465
  }
466
466
  }
467
467
  try {
468
- G ? e.setAttributeNS(G, k, P) : e.setAttribute(k, P), Lt(e) ? ne(e) : Kt(t.removed);
469
- } catch (It) {
468
+ B ? e.setAttributeNS(B, v, P) : e.setAttribute(v, P), Rt(e) ? ne(e) : Kt(t.removed);
469
+ } catch (kt) {
470
470
  }
471
471
  }
472
472
  }
473
473
  ae("afterSanitizeAttributes", e, null);
474
- }, wn = function u(e) {
474
+ }, Cn = function c(e) {
475
475
  let s = null;
476
- const c = Rt(e);
477
- for (ae("beforeSanitizeShadowDOM", e, null); s = c.nextNode(); )
478
- ae("uponSanitizeShadowNode", s, null), !Ot(s) && (s.content instanceof l && u(s.content), vt(s));
476
+ const l = xt(e);
477
+ for (ae("beforeSanitizeShadowDOM", e, null); s = l.nextNode(); )
478
+ ae("uponSanitizeShadowNode", s, null), !Mt(s) && (s.content instanceof u && c(s.content), vt(s));
479
479
  ae("afterSanitizeShadowDOM", e, null);
480
480
  };
481
- return t.sanitize = function(u) {
482
- let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, c = null, _ = null, I = null;
483
- if (nt = !u, nt && (u = "<!-->"), typeof u != "string" && !Mt(u))
484
- if (typeof u.toString == "function") {
485
- if (u = u.toString(), typeof u != "string")
481
+ return t.sanitize = function(c) {
482
+ let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = null, l = null, _ = null, I = null;
483
+ if (nt = !c, nt && (c = "<!-->"), typeof c != "string" && !Lt(c))
484
+ if (typeof c.toString == "function") {
485
+ if (c = c.toString(), typeof c != "string")
486
486
  throw Oe("dirty is not a string, aborting");
487
487
  } else
488
488
  throw Oe("toString is not a function");
489
489
  if (!t.isSupported)
490
- return u;
491
- if (Qe || ot(e), t.removed = [], typeof u == "string" && (Ce = !1), Ce) {
492
- if (u.nodeName) {
493
- const ie = M(u.nodeName);
494
- if (!A[ie] || T[ie])
490
+ return c;
491
+ if (Qe || ot(e), t.removed = [], typeof c == "string" && (Ce = !1), Ce) {
492
+ if (c.nodeName) {
493
+ const ie = M(c.nodeName);
494
+ if (!b[ie] || E[ie])
495
495
  throw Oe("root node is forbidden and cannot be sanitized in-place");
496
496
  }
497
- } else if (u instanceof v)
498
- s = xt("<!---->"), c = s.ownerDocument.importNode(u, !0), c.nodeType === ke.element && c.nodeName === "BODY" || c.nodeName === "HTML" ? s = c : s.appendChild(c);
497
+ } else if (c instanceof D)
498
+ s = Ct("<!---->"), l = s.ownerDocument.importNode(c, !0), l.nodeType === ve.element && l.nodeName === "BODY" || l.nodeName === "HTML" ? s = l : s.appendChild(l);
499
499
  else {
500
500
  if (!Se && !Te && !ge && // eslint-disable-next-line unicorn/prefer-includes
501
- u.indexOf("<") === -1)
502
- return p && Ue ? p.createHTML(u) : u;
503
- if (s = xt(u), !s)
501
+ c.indexOf("<") === -1)
502
+ return m && Ue ? m.createHTML(c) : c;
503
+ if (s = Ct(c), !s)
504
504
  return Se ? null : Ue ? W : "";
505
505
  }
506
506
  s && $e && ne(s.firstChild);
507
- const k = Rt(Ce ? u : s);
508
- for (; _ = k.nextNode(); )
509
- Ot(_) || (_.content instanceof l && wn(_.content), vt(_));
507
+ const v = xt(Ce ? c : s);
508
+ for (; _ = v.nextNode(); )
509
+ Mt(_) || (_.content instanceof u && Cn(_.content), vt(_));
510
510
  if (Ce)
511
- return u;
511
+ return c;
512
512
  if (Se) {
513
513
  if (Pe)
514
514
  for (I = L.call(s.ownerDocument); s.firstChild; )
515
515
  I.appendChild(s.firstChild);
516
516
  else
517
517
  I = s;
518
- return (y.shadowroot || y.shadowrootmode) && (I = oe.call(o, I, !0)), I;
518
+ return (w.shadowroot || w.shadowrootmode) && (I = oe.call(o, I, !0)), I;
519
519
  }
520
- let G = ge ? s.outerHTML : s.innerHTML;
521
- return ge && A["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && U(hn, s.ownerDocument.doctype.name) && (G = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
522
- ` + G), Te && Be([Y, $, N], (ie) => {
523
- G = Me(G, ie, " ");
524
- }), p && Ue ? p.createHTML(G) : G;
520
+ let B = ge ? s.outerHTML : s.innerHTML;
521
+ return ge && b["!doctype"] && s.ownerDocument && s.ownerDocument.doctype && s.ownerDocument.doctype.name && U(gn, s.ownerDocument.doctype.name) && (B = "<!DOCTYPE " + s.ownerDocument.doctype.name + `>
522
+ ` + B), Te && Be([Y, $, N], (ie) => {
523
+ B = Me(B, ie, " ");
524
+ }), m && Ue ? m.createHTML(B) : B;
525
525
  }, t.setConfig = function() {
526
- let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
527
- ot(u), Qe = !0;
526
+ let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
527
+ ot(c), Qe = !0;
528
528
  }, t.clearConfig = function() {
529
- we = null, Qe = !1;
530
- }, t.isValidAttribute = function(u, e, s) {
531
- we || ot({});
532
- const c = M(u), _ = M(e);
533
- return Nt(c, _, s);
534
- }, t.addHook = function(u, e) {
535
- typeof e == "function" && (g[u] = g[u] || [], Le(g[u], e));
536
- }, t.removeHook = function(u) {
537
- if (g[u])
538
- return Kt(g[u]);
539
- }, t.removeHooks = function(u) {
540
- g[u] && (g[u] = []);
529
+ ye = null, Qe = !1;
530
+ }, t.isValidAttribute = function(c, e, s) {
531
+ ye || ot({});
532
+ const l = M(c), _ = M(e);
533
+ return Ot(l, _, s);
534
+ }, t.addHook = function(c, e) {
535
+ typeof e == "function" && (g[c] = g[c] || [], Le(g[c], e));
536
+ }, t.removeHook = function(c) {
537
+ if (g[c])
538
+ return Kt(g[c]);
539
+ }, t.removeHooks = function(c) {
540
+ g[c] && (g[c] = []);
541
541
  }, t.removeAllHooks = function() {
542
542
  g = {};
543
543
  }, t;
544
544
  }
545
- var nn = gn();
546
- function li(n) {
547
- Nn(n, "svelte-122ajk5", "*,*::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:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);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}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);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;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationButton{display:flex;width:100%;height:36px;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;color:var(--emw--color-white, #FFF);cursor:pointer;text-align:center;font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);line-height:36px;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E);border:none}.CashierSessionExpirationButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierSessionExpirationButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierSessionExpirationButton:disabled{background:var(--emw--color-main-button-disabled, #5C950F)}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);font-family:inherit}.CashierSessionExpirationButtonSpinner{animation:loading-spinner 1s linear infinite}.ImagePlaceholder{height:250px;width:100%;background:#E6E6E6}@container session-expiration-modal-window (max-width:750px){.CashierSessionExpirationModalWindow .CashierSessionExpirationModalWrapper{width:90%;max-width:400px}}");
545
+ var nn = _n();
546
+ function ci(n) {
547
+ vn(n, "svelte-878602", "*,*::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:15;top:0;left:0;background-color:var(--emw--color-black-transparency-20, rgba(0, 0, 0, 0.2));container-type:inline-size;container-name:session-expiration-modal-window}.CashierSessionExpirationModalWrapper{background:var(--emw--color-white, #fff);border-radius:var(--emw--border-radius-medium, 4px);width:400px}.CashierSessionExpirationModalHeader{display:flex;align-items:center;position:relative;height:var(--emw--header-height, 40px);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}.CashierSessionExpirationModalHeaderTitle{display:flex;text-align:center;color:var(--emw--color-gray-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis;line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierSessionExpirationModalContainer{padding:var(--emw--spacing-large, 20px)}.CashierSessionExpirationModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:10px;right:10px;padding:var(--emw--spacing-small-minus, 10px);border-radius:50%;color:var(--emw--color-white, #fff);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;align-items:center;gap:var(--emw--spacing-large, 20px)}.CashierSessionExpiration button{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);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, #3854FF)}.CashierSessionExpirationTitle{color:var(--emw--color-black, #000);font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierSessionExpirationText{color:var(--emw--color-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:120%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:disabled{filter:saturate(50%);opacity:0.5;cursor:auto;pointer-events:none}.CashierSessionExpirationButtonText{font-size:var(--emw--font-size-medium, 16px);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}}");
548
548
  }
549
- const ci = (n) => ({}), on = (n) => ({}), ui = (n) => ({}), sn = (n) => ({}), fi = (n) => ({}), rn = (n) => ({}), mi = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
549
+ const ui = (n) => ({}), on = (n) => ({}), fi = (n) => ({}), sn = (n) => ({}), mi = (n) => ({}), rn = (n) => ({}), pi = (n) => ({}), an = (n) => ({ class: "CashierSessionExpirationIcon" });
550
550
  function ln(n) {
551
- let t, i, o, r, l, m = (
551
+ let t, i, o, a, u, h = (
552
552
  /*$_*/
553
553
  n[8]("sessionExpirationHeader") + ""
554
- ), v, D, w, x, de, he, V, b, R, O, fe, z, d, p, W;
554
+ ), D, k, y, x, de, he, V, A, R, O, ce, H, p, m, W;
555
555
  const q = (
556
556
  /*#slots*/
557
557
  n[22].icon
@@ -561,7 +561,7 @@ function ln(n) {
561
561
  /*$$scope*/
562
562
  n[21],
563
563
  an
564
- ), L = K || hi(n), Q = (
564
+ ), L = K || di(n), Q = (
565
565
  /*#slots*/
566
566
  n[22].title
567
567
  ), oe = We(
@@ -570,7 +570,7 @@ function ln(n) {
570
570
  /*$$scope*/
571
571
  n[21],
572
572
  rn
573
- ), g = oe || gi(n), Y = (
573
+ ), g = oe || hi(n), Y = (
574
574
  /*#slots*/
575
575
  n[22].text
576
576
  ), $ = We(
@@ -579,210 +579,192 @@ function ln(n) {
579
579
  /*$$scope*/
580
580
  n[21],
581
581
  sn
582
- ), N = $ || _i(n), Ee = [Ti, Ei], Z = [];
583
- function se(h, S) {
582
+ ), N = $ || gi(n), Ee = [Ei, _i], Z = [];
583
+ function se(d, S) {
584
584
  return (
585
585
  /*showLoaderButton*/
586
- h[6] ? 0 : 1
586
+ d[6] ? 0 : 1
587
587
  );
588
588
  }
589
589
  return R = se(n), O = Z[R] = Ee[R](n), {
590
590
  c() {
591
- t = F("div"), i = F("div"), o = F("div"), r = F("div"), l = F("div"), v = Ke(m), D = ve(), w = F("div"), x = F("div"), L && L.c(), de = ve(), g && g.c(), he = ve(), N && N.c(), V = ve(), b = F("button"), O.c(), E(l, "class", "CashierSessionExpirationModalHeaderTitle"), E(r, "class", "CashierSessionExpirationModalHeader"), E(b, "type", "button"), b.disabled = /*showLoaderButton*/
592
- n[6], E(b, "class", "CashierSessionExpirationButton"), E(x, "class", "CashierSessionExpiration"), E(w, "class", "CashierSessionExpirationModalContainer"), E(o, "class", "CashierSessionExpirationModalWrapper"), E(i, "class", "CashierSessionExpirationModalWindow"), E(i, "id", "CashierSessionExpirationModal"), Ft(() => (
591
+ t = G("div"), i = G("div"), o = G("div"), a = G("div"), u = G("div"), D = Ke(h), k = De(), y = G("div"), x = G("div"), L && L.c(), de = De(), g && g.c(), he = De(), N && N.c(), V = De(), A = G("button"), O.c(), T(u, "class", "CashierSessionExpirationModalHeaderTitle"), T(a, "class", "CashierSessionExpirationModalHeader"), T(A, "type", "button"), A.disabled = /*showLoaderButton*/
592
+ n[6], T(A, "class", "CashierSessionExpirationButton"), T(x, "class", "CashierSessionExpiration"), T(y, "class", "CashierSessionExpirationModalContainer"), T(o, "class", "CashierSessionExpirationModalWrapper"), T(i, "class", "CashierSessionExpirationModalWindow"), T(i, "id", "CashierSessionExpirationModal"), Ut(() => (
593
593
  /*div5_elementresize_handler*/
594
594
  n[24].call(i)
595
595
  ));
596
596
  },
597
- m(h, S) {
598
- ue(h, t, S), C(t, i), C(i, o), C(o, r), C(r, l), C(l, v), C(o, D), C(o, w), C(w, x), L && L.m(x, null), C(x, de), g && g.m(x, null), C(x, he), N && N.m(x, null), C(x, V), C(x, b), Z[R].m(b, null), n[23](x), fe = In(
597
+ m(d, S) {
598
+ pe(d, t, S), C(t, i), C(i, o), C(o, a), C(a, u), C(u, D), C(o, k), C(o, y), C(y, x), L && L.m(x, null), C(x, de), g && g.m(x, null), C(x, he), N && N.m(x, null), C(x, V), C(x, A), Z[R].m(A, null), n[23](x), ce = Pn(
599
599
  i,
600
600
  /*div5_elementresize_handler*/
601
601
  n[24].bind(i)
602
- ), n[25](t), d = !0, p || (W = [
603
- Ht(
604
- b,
602
+ ), n[25](t), p = !0, m || (W = [
603
+ Ft(
604
+ A,
605
605
  "click",
606
606
  /*renewSession*/
607
607
  n[9]
608
608
  ),
609
- Ht(
609
+ Ft(
610
610
  i,
611
611
  "click",
612
612
  /*outOfModalClick*/
613
613
  n[10]
614
614
  )
615
- ], p = !0);
615
+ ], m = !0);
616
616
  },
617
- p(h, S) {
618
- n = h, (!d || S[0] & /*$_*/
619
- 256) && m !== (m = /*$_*/
620
- n[8]("sessionExpirationHeader") + "") && qe(v, m), K ? K.p && (!d || S[0] & /*$$scope*/
617
+ p(d, S) {
618
+ n = d, (!p || S[0] & /*$_*/
619
+ 256) && h !== (h = /*$_*/
620
+ n[8]("sessionExpirationHeader") + "") && qe(D, h), K ? K.p && (!p || S[0] & /*$$scope*/
621
621
  2097152) && Ye(
622
622
  K,
623
623
  q,
624
624
  n,
625
625
  /*$$scope*/
626
626
  n[21],
627
- d ? Xe(
627
+ p ? Xe(
628
628
  q,
629
629
  /*$$scope*/
630
630
  n[21],
631
631
  S,
632
- mi
632
+ pi
633
633
  ) : je(
634
634
  /*$$scope*/
635
635
  n[21]
636
636
  ),
637
637
  an
638
- ) : L && L.p && (!d || S[0] & /*assetsurl*/
639
- 8) && L.p(n, d ? S : [-1, -1]), oe ? oe.p && (!d || S[0] & /*$$scope*/
638
+ ) : L && L.p && (!p || S[0] & /*assetsurl*/
639
+ 8) && L.p(n, p ? S : [-1, -1]), oe ? oe.p && (!p || S[0] & /*$$scope*/
640
640
  2097152) && Ye(
641
641
  oe,
642
642
  Q,
643
643
  n,
644
644
  /*$$scope*/
645
645
  n[21],
646
- d ? Xe(
646
+ p ? Xe(
647
647
  Q,
648
648
  /*$$scope*/
649
649
  n[21],
650
650
  S,
651
- fi
651
+ mi
652
652
  ) : je(
653
653
  /*$$scope*/
654
654
  n[21]
655
655
  ),
656
656
  rn
657
- ) : g && g.p && (!d || S[0] & /*$_*/
658
- 256) && g.p(n, d ? S : [-1, -1]), $ ? $.p && (!d || S[0] & /*$$scope*/
657
+ ) : g && g.p && (!p || S[0] & /*$_*/
658
+ 256) && g.p(n, p ? S : [-1, -1]), $ ? $.p && (!p || S[0] & /*$$scope*/
659
659
  2097152) && Ye(
660
660
  $,
661
661
  Y,
662
662
  n,
663
663
  /*$$scope*/
664
664
  n[21],
665
- d ? Xe(
665
+ p ? Xe(
666
666
  Y,
667
667
  /*$$scope*/
668
668
  n[21],
669
669
  S,
670
- ui
670
+ fi
671
671
  ) : je(
672
672
  /*$$scope*/
673
673
  n[21]
674
674
  ),
675
675
  sn
676
- ) : N && N.p && (!d || S[0] & /*$_, timeLeft*/
677
- 384) && N.p(n, d ? S : [-1, -1]);
678
- let me = R;
679
- R = se(n), R === me ? Z[R].p(n, S) : (cn(), pe(Z[me], 1, 1, () => {
680
- Z[me] = null;
681
- }), un(), O = Z[R], O ? O.p(n, S) : (O = Z[R] = Ee[R](n), O.c()), le(O, 1), O.m(b, null)), (!d || S[0] & /*showLoaderButton*/
682
- 64) && (b.disabled = /*showLoaderButton*/
676
+ ) : N && N.p && (!p || S[0] & /*$_, timeLeft*/
677
+ 384) && N.p(n, p ? S : [-1, -1]);
678
+ let ue = R;
679
+ R = se(n), R === ue ? Z[R].p(n, S) : (un(), fe(Z[ue], 1, 1, () => {
680
+ Z[ue] = null;
681
+ }), fn(), O = Z[R], O ? O.p(n, S) : (O = Z[R] = Ee[R](n), O.c()), le(O, 1), O.m(A, null)), (!p || S[0] & /*showLoaderButton*/
682
+ 64) && (A.disabled = /*showLoaderButton*/
683
683
  n[6]);
684
684
  },
685
- i(h) {
686
- d || (le(L, h), le(g, h), le(N, h), le(O), h && Ft(() => {
687
- d && (z || (z = Ut(i, Wt, { duration: (
685
+ i(d) {
686
+ p || (le(L, d), le(g, d), le(N, d), le(O), d && Ut(() => {
687
+ p && (H || (H = Pt(i, Wt, { duration: (
688
688
  /*duration*/
689
689
  n[2]
690
- ) }, !0)), z.run(1));
691
- }), d = !0);
690
+ ) }, !0)), H.run(1));
691
+ }), p = !0);
692
692
  },
693
- o(h) {
694
- pe(L, h), pe(g, h), pe(N, h), pe(O), h && (z || (z = Ut(i, Wt, { duration: (
693
+ o(d) {
694
+ fe(L, d), fe(g, d), fe(N, d), fe(O), d && (H || (H = Pt(i, Wt, { duration: (
695
695
  /*duration*/
696
696
  n[2]
697
- ) }, !1)), z.run(0)), d = !1;
697
+ ) }, !1)), H.run(0)), p = !1;
698
698
  },
699
- d(h) {
700
- h && ce(t), L && L.d(h), g && g.d(h), N && N.d(h), Z[R].d(), n[23](null), fe(), h && z && z.end(), n[25](null), p = !1, Dn(W);
699
+ d(d) {
700
+ d && me(t), L && L.d(d), g && g.d(d), N && N.d(d), Z[R].d(), n[23](null), ce(), d && H && H.end(), n[25](null), m = !1, In(W);
701
701
  }
702
702
  };
703
703
  }
704
- function pi(n) {
705
- let t;
706
- return {
707
- c() {
708
- t = F("div"), E(t, "class", "ImagePlaceholder");
709
- },
710
- m(i, o) {
711
- ue(i, t, o);
712
- },
713
- p: ut,
714
- d(i) {
715
- i && ce(t);
716
- }
717
- };
718
- }
719
- function di(n) {
704
+ function cn(n) {
720
705
  let t, i;
721
706
  return {
722
707
  c() {
723
- t = F("img"), Gt(t.src, i = `${/*assetsurl*/
724
- n[3]}/set-timeout-icon.png`) || E(t, "src", i), E(t, "width", "300px"), E(t, "alt", "error");
708
+ t = G("img"), Gt(t.src, i = `${/*assetsurl*/
709
+ n[3]}/set-timeout-icon.png`) || T(t, "src", i), T(t, "width", "300px"), T(t, "alt", "error");
725
710
  },
726
- m(o, r) {
727
- ue(o, t, r);
711
+ m(o, a) {
712
+ pe(o, t, a);
728
713
  },
729
- p(o, r) {
730
- r[0] & /*assetsurl*/
714
+ p(o, a) {
715
+ a[0] & /*assetsurl*/
731
716
  8 && !Gt(t.src, i = `${/*assetsurl*/
732
- o[3]}/set-timeout-icon.png`) && E(t, "src", i);
717
+ o[3]}/set-timeout-icon.png`) && T(t, "src", i);
733
718
  },
734
719
  d(o) {
735
- o && ce(t);
720
+ o && me(t);
736
721
  }
737
722
  };
738
723
  }
739
- function hi(n) {
740
- let t;
741
- function i(l, m) {
742
- return (
743
- /*assetsurl*/
744
- l[3] ? di : pi
745
- );
746
- }
747
- let o = i(n), r = o(n);
724
+ function di(n) {
725
+ let t, i = (
726
+ /*assetsurl*/
727
+ n[3] && cn(n)
728
+ );
748
729
  return {
749
730
  c() {
750
- r.c(), t = fn();
731
+ i && i.c(), t = mn();
751
732
  },
752
- m(l, m) {
753
- r.m(l, m), ue(l, t, m);
733
+ m(o, a) {
734
+ i && i.m(o, a), pe(o, t, a);
754
735
  },
755
- p(l, m) {
756
- o === (o = i(l)) && r ? r.p(l, m) : (r.d(1), r = o(l), r && (r.c(), r.m(t.parentNode, t)));
736
+ p(o, a) {
737
+ /*assetsurl*/
738
+ o[3] ? i ? i.p(o, a) : (i = cn(o), i.c(), i.m(t.parentNode, t)) : i && (i.d(1), i = null);
757
739
  },
758
- d(l) {
759
- l && ce(t), r.d(l);
740
+ d(o) {
741
+ o && me(t), i && i.d(o);
760
742
  }
761
743
  };
762
744
  }
763
- function gi(n) {
745
+ function hi(n) {
764
746
  let t, i = (
765
747
  /*$_*/
766
748
  n[8]("sessionExpirationTitle") + ""
767
749
  ), o;
768
750
  return {
769
751
  c() {
770
- t = F("span"), o = Ke(i), E(t, "class", "CashierSessionExpirationTitle");
752
+ t = G("span"), o = Ke(i), T(t, "class", "CashierSessionExpirationTitle");
771
753
  },
772
- m(r, l) {
773
- ue(r, t, l), C(t, o);
754
+ m(a, u) {
755
+ pe(a, t, u), C(t, o);
774
756
  },
775
- p(r, l) {
776
- l[0] & /*$_*/
757
+ p(a, u) {
758
+ u[0] & /*$_*/
777
759
  256 && i !== (i = /*$_*/
778
- r[8]("sessionExpirationTitle") + "") && qe(o, i);
760
+ a[8]("sessionExpirationTitle") + "") && qe(o, i);
779
761
  },
780
- d(r) {
781
- r && ce(t);
762
+ d(a) {
763
+ a && me(t);
782
764
  }
783
765
  };
784
766
  }
785
- function _i(n) {
767
+ function gi(n) {
786
768
  let t, i = nn.sanitize(
787
769
  /*$_*/
788
770
  n[8]("sessionExpirationGeneralText", { values: { second: (
@@ -792,13 +774,13 @@ function _i(n) {
792
774
  ) + "";
793
775
  return {
794
776
  c() {
795
- t = F("span"), E(t, "class", "CashierSessionExpirationText");
777
+ t = G("span"), T(t, "class", "CashierSessionExpirationText");
796
778
  },
797
- m(o, r) {
798
- ue(o, t, r), t.innerHTML = i;
779
+ m(o, a) {
780
+ pe(o, t, a), t.innerHTML = i;
799
781
  },
800
- p(o, r) {
801
- r[0] & /*$_, timeLeft*/
782
+ p(o, a) {
783
+ a[0] & /*$_, timeLeft*/
802
784
  384 && i !== (i = nn.sanitize(
803
785
  /*$_*/
804
786
  o[8]("sessionExpirationGeneralText", { values: { second: (
@@ -808,11 +790,11 @@ function _i(n) {
808
790
  ) + "") && (t.innerHTML = i);
809
791
  },
810
792
  d(o) {
811
- o && ce(t);
793
+ o && me(t);
812
794
  }
813
795
  };
814
796
  }
815
- function Ei(n) {
797
+ function _i(n) {
816
798
  let t;
817
799
  const i = (
818
800
  /*#slots*/
@@ -823,140 +805,140 @@ function Ei(n) {
823
805
  /*$$scope*/
824
806
  n[21],
825
807
  on
826
- ), r = o || Si(n);
808
+ ), a = o || Ti(n);
827
809
  return {
828
810
  c() {
829
- r && r.c();
811
+ a && a.c();
830
812
  },
831
- m(l, m) {
832
- r && r.m(l, m), t = !0;
813
+ m(u, h) {
814
+ a && a.m(u, h), t = !0;
833
815
  },
834
- p(l, m) {
835
- o ? o.p && (!t || m[0] & /*$$scope*/
816
+ p(u, h) {
817
+ o ? o.p && (!t || h[0] & /*$$scope*/
836
818
  2097152) && Ye(
837
819
  o,
838
820
  i,
839
- l,
821
+ u,
840
822
  /*$$scope*/
841
- l[21],
823
+ u[21],
842
824
  t ? Xe(
843
825
  i,
844
826
  /*$$scope*/
845
- l[21],
846
- m,
847
- ci
827
+ u[21],
828
+ h,
829
+ ui
848
830
  ) : je(
849
831
  /*$$scope*/
850
- l[21]
832
+ u[21]
851
833
  ),
852
834
  on
853
- ) : r && r.p && (!t || m[0] & /*$_*/
854
- 256) && r.p(l, t ? m : [-1, -1]);
835
+ ) : a && a.p && (!t || h[0] & /*$_*/
836
+ 256) && a.p(u, t ? h : [-1, -1]);
855
837
  },
856
- i(l) {
857
- t || (le(r, l), t = !0);
838
+ i(u) {
839
+ t || (le(a, u), t = !0);
858
840
  },
859
- o(l) {
860
- pe(r, l), t = !1;
841
+ o(u) {
842
+ fe(a, u), t = !1;
861
843
  },
862
- d(l) {
863
- r && r.d(l);
844
+ d(u) {
845
+ a && a.d(u);
864
846
  }
865
847
  };
866
848
  }
867
- function Ti(n) {
868
- let t, i, o, r, l, m = (
849
+ function Ei(n) {
850
+ let t, i, o, a, u, h = (
869
851
  /*$_*/
870
852
  n[8]("sessionExpirationLoadingButton") + ""
871
- ), v;
853
+ ), D;
872
854
  return {
873
855
  c() {
874
- t = F("div"), i = Bt("svg"), o = Bt("path"), r = ve(), l = F("span"), v = Ke(m), E(o, "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"), E(o, "fill", "white"), E(i, "class", "CashierSessionExpirationButtonSpinner"), E(i, "xmlns", "http://www.w3.org/2000/svg"), E(i, "width", "15"), E(i, "height", "14"), E(i, "viewBox", "0 0 15 14"), E(i, "fill", "none"), E(l, "class", "CashierSessionExpirationButtonText");
856
+ t = G("div"), i = Bt("svg"), o = Bt("path"), a = De(), u = G("span"), D = Ke(h), T(o, "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"), T(o, "fill", "white"), T(i, "class", "CashierSessionExpirationButtonSpinner"), T(i, "xmlns", "http://www.w3.org/2000/svg"), T(i, "width", "15"), T(i, "height", "14"), T(i, "viewBox", "0 0 15 14"), T(i, "fill", "none"), T(u, "class", "CashierSessionExpirationButtonText");
875
857
  },
876
- m(D, w) {
877
- ue(D, t, w), C(t, i), C(i, o), C(t, r), C(t, l), C(l, v);
858
+ m(k, y) {
859
+ pe(k, t, y), C(t, i), C(i, o), C(t, a), C(t, u), C(u, D);
878
860
  },
879
- p(D, w) {
880
- w[0] & /*$_*/
881
- 256 && m !== (m = /*$_*/
882
- D[8]("sessionExpirationLoadingButton") + "") && qe(v, m);
861
+ p(k, y) {
862
+ y[0] & /*$_*/
863
+ 256 && h !== (h = /*$_*/
864
+ k[8]("sessionExpirationLoadingButton") + "") && qe(D, h);
883
865
  },
884
- i: ut,
885
- o: ut,
886
- d(D) {
887
- D && ce(t);
866
+ i: zt,
867
+ o: zt,
868
+ d(k) {
869
+ k && me(t);
888
870
  }
889
871
  };
890
872
  }
891
- function Si(n) {
873
+ function Ti(n) {
892
874
  let t, i = (
893
875
  /*$_*/
894
876
  n[8]("sessionExpirationGeneralButton") + ""
895
877
  ), o;
896
878
  return {
897
879
  c() {
898
- t = F("span"), o = Ke(i), E(t, "class", "CashierSessionExpirationButtonText");
880
+ t = G("span"), o = Ke(i), T(t, "class", "CashierSessionExpirationButtonText");
899
881
  },
900
- m(r, l) {
901
- ue(r, t, l), C(t, o);
882
+ m(a, u) {
883
+ pe(a, t, u), C(t, o);
902
884
  },
903
- p(r, l) {
904
- l[0] & /*$_*/
885
+ p(a, u) {
886
+ u[0] & /*$_*/
905
887
  256 && i !== (i = /*$_*/
906
- r[8]("sessionExpirationGeneralButton") + "") && qe(o, i);
888
+ a[8]("sessionExpirationGeneralButton") + "") && qe(o, i);
907
889
  },
908
- d(r) {
909
- r && ce(t);
890
+ d(a) {
891
+ a && me(t);
910
892
  }
911
893
  };
912
894
  }
913
- function bi(n) {
895
+ function Si(n) {
914
896
  let t, i, o = (
915
897
  /*show*/
916
898
  n[5] && ln(n)
917
899
  );
918
900
  return {
919
901
  c() {
920
- o && o.c(), t = fn();
902
+ o && o.c(), t = mn();
921
903
  },
922
- m(r, l) {
923
- o && o.m(r, l), ue(r, t, l), i = !0;
904
+ m(a, u) {
905
+ o && o.m(a, u), pe(a, t, u), i = !0;
924
906
  },
925
- p(r, l) {
907
+ p(a, u) {
926
908
  /*show*/
927
- r[5] ? o ? (o.p(r, l), l[0] & /*show*/
928
- 32 && le(o, 1)) : (o = ln(r), o.c(), le(o, 1), o.m(t.parentNode, t)) : o && (cn(), pe(o, 1, 1, () => {
909
+ a[5] ? o ? (o.p(a, u), u[0] & /*show*/
910
+ 32 && le(o, 1)) : (o = ln(a), o.c(), le(o, 1), o.m(t.parentNode, t)) : o && (un(), fe(o, 1, 1, () => {
929
911
  o = null;
930
- }), un());
912
+ }), fn());
931
913
  },
932
- i(r) {
914
+ i(a) {
933
915
  i || (le(o), i = !0);
934
916
  },
935
- o(r) {
936
- pe(o), i = !1;
917
+ o(a) {
918
+ fe(o), i = !1;
937
919
  },
938
- d(r) {
939
- r && ce(t), o && o.d(r);
920
+ d(a) {
921
+ a && me(t), o && o.d(a);
940
922
  }
941
923
  };
942
924
  }
943
925
  const Ai = 90;
944
- function yi(n, t, i) {
945
- let o, r;
946
- Pt(n, jt, (a) => i(20, o = a)), Pt(n, zn, (a) => i(8, r = a));
947
- let { $$slots: l = {}, $$scope: m } = t;
948
- Yt.extend(Bn);
949
- let { clientstyling: v = "" } = t, { clientstylingurl: D = "" } = t, { width: w } = t, { height: x } = t, { duration: de = 200 } = t, { assetsurl: he = "" } = t, { lang: V = "en" } = t, { translationurl: b = "" } = t, { endpoint: R } = t, { currency: O } = t, { customerid: fe } = t, { selectedpaymentmethodname: z } = t, { mbsource: d = "" } = t, p, W = !1, q = !1, K, L, Q, oe, g;
926
+ function bi(n, t, i) {
927
+ let o, a;
928
+ It(n, jt, (r) => i(20, o = r)), It(n, Bn, (r) => i(8, a = r));
929
+ let { $$slots: u = {}, $$scope: h } = t;
930
+ Yt.extend(Gn);
931
+ let { clientstyling: D = "" } = t, { clientstylingurl: k = "" } = t, { width: y } = t, { height: x } = t, { duration: de = 200 } = t, { assetsurl: he = "" } = t, { lang: V = "en" } = t, { translationurl: A = "" } = t, { endpoint: R } = t, { currency: O } = t, { customerid: ce } = t, { selectedpaymentmethodname: H } = t, { mbsource: p = "" } = t, m, W = !1, q = !1, K, L, Q, oe, g;
950
932
  var Y;
951
- (function(a) {
952
- a.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", a.Success = "Success", a.JwtTokenError = "JwtTokenError";
933
+ (function(r) {
934
+ r.PlayerSessionIsNotValid = "PlayerSessionIsNotValid", r.Success = "Success", r.JwtTokenError = "JwtTokenError";
953
935
  })(Y || (Y = {}));
954
- const $ = (a) => {
955
- a.data.type === "StartSessionCountdown" && (oe = a.data.paymentMethodName);
956
- }, N = (a) => {
936
+ const $ = (r) => {
937
+ r.data.type === "StartSessionCountdown" && (oe = r.data.paymentMethodName);
938
+ }, N = (r) => {
957
939
  try {
958
- return JSON.parse(atob(a.split(".")[1]));
959
- } catch (T) {
940
+ return JSON.parse(atob(r.split(".")[1]));
941
+ } catch (E) {
960
942
  return null;
961
943
  }
962
944
  }, Ee = () => {
@@ -967,10 +949,10 @@ function yi(n, t, i) {
967
949
  },
968
950
  window.location.href
969
951
  );
970
- }, Z = (a) => {
952
+ }, Z = (r) => {
971
953
  i(5, W = !1);
972
- const T = N(a);
973
- T && (L = T == null ? void 0 : T.exp, i(7, K = L), Q && clearInterval(Q), Q = setInterval(
954
+ const E = N(r);
955
+ E && (L = E == null ? void 0 : E.exp, i(7, K = L), Q && clearInterval(Q), Q = setInterval(
974
956
  () => {
975
957
  const ee = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
976
958
  i(7, K = L - ee), K <= Ai && i(5, W = !0), ee >= L && (se(), window.postMessage({ type: "SessionExpired" }, window.location.href));
@@ -979,125 +961,125 @@ function yi(n, t, i) {
979
961
  ));
980
962
  }, se = () => {
981
963
  i(7, K = 0), i(5, W = !1), clearInterval(Q);
982
- }, h = () => {
964
+ }, d = () => {
983
965
  if (q)
984
966
  return;
985
- const a = new URL(`${R}/v1/player/${fe}/payment/GetPaymentMethod`), T = new Headers();
986
- i(6, q = !0), T.append("accept", "application/json"), T.append("Content-Type", "application/json"), T.append("X-Client-Request-Timestamp", Yt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
967
+ const r = new URL(`${R}/v1/player/${ce}/payment/GetPaymentMethod`), E = new Headers();
968
+ i(6, q = !0), E.append("accept", "application/json"), E.append("Content-Type", "application/json"), E.append("X-Client-Request-Timestamp", Yt.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
987
969
  const ee = {
988
970
  method: "POST",
989
971
  mode: "cors",
990
- headers: T,
972
+ headers: E,
991
973
  body: JSON.stringify({
992
- PaymentMethodName: oe || z,
974
+ PaymentMethodName: oe || H,
993
975
  Currency: O,
994
976
  XPaymentSessionToken: o
995
977
  })
996
978
  };
997
- fetch(a, ee).then((B) => B.json()).then((B) => {
998
- if (B.error) {
979
+ fetch(r, ee).then((z) => z.json()).then((z) => {
980
+ if (z.error) {
999
981
  window.postMessage(
1000
982
  {
1001
983
  type: "ShowSessionError",
1002
- error: B.error
984
+ error: z.error
1003
985
  },
1004
986
  window.location.href
1005
987
  ), se();
1006
988
  return;
1007
989
  }
1008
- if (B.ResponseCode === Y.PlayerSessionIsNotValid || B.ResponseCode === Y.JwtTokenError) {
1009
- g = B.ResponseCode, se(), Ee();
990
+ if (z.ResponseCode === Y.PlayerSessionIsNotValid || z.ResponseCode === Y.JwtTokenError) {
991
+ g = z.ResponseCode, se(), Ee();
1010
992
  return;
1011
993
  }
1012
- if (B.ResponseCode !== Y.Success) {
1013
- g = B.ResponseCode, se();
994
+ if (z.ResponseCode !== Y.Success) {
995
+ g = z.ResponseCode, se();
1014
996
  return;
1015
997
  }
1016
- B.XPaymentSessionToken && jt.set(B.XPaymentSessionToken);
998
+ z.XPaymentSessionToken && jt.set(z.XPaymentSessionToken);
1017
999
  }).finally(() => i(6, q = !1));
1018
- }, S = (a) => {
1019
- const T = a.currentTarget;
1020
- a.target === T && h();
1021
- }, me = () => {
1022
- fetch(b).then((T) => T.json()).then((T) => {
1023
- Object.keys(T).forEach((ee) => {
1024
- Xt(ee, T[ee]);
1000
+ }, S = (r) => {
1001
+ const E = r.currentTarget;
1002
+ r.target === E && d();
1003
+ }, ue = () => {
1004
+ fetch(A).then((E) => E.json()).then((E) => {
1005
+ Object.keys(E).forEach((ee) => {
1006
+ Xt(ee, E[ee]);
1025
1007
  });
1026
- }).catch((T) => {
1027
- console.log(T);
1008
+ }).catch((E) => {
1009
+ console.log(E);
1028
1010
  });
1029
1011
  };
1030
- Object.keys(Vt).forEach((a) => {
1031
- Xt(a, Vt[a]);
1012
+ Object.keys(Vt).forEach((r) => {
1013
+ Xt(r, Vt[r]);
1032
1014
  });
1033
- const A = () => {
1034
- Gn(V);
1015
+ const b = () => {
1016
+ Wn(V);
1035
1017
  };
1036
- kn(() => (window.addEventListener("message", $, !1), () => {
1018
+ Dn(() => (window.addEventListener("message", $, !1), () => {
1037
1019
  window.removeEventListener("message", $);
1038
- })), vn(() => {
1020
+ })), kn(() => {
1039
1021
  clearInterval(Q);
1040
1022
  });
1041
- function De(a) {
1042
- zt[a ? "unshift" : "push"](() => {
1043
- p = a, i(4, p);
1023
+ function ke(r) {
1024
+ Ht[r ? "unshift" : "push"](() => {
1025
+ m = r, i(4, m);
1044
1026
  });
1045
1027
  }
1046
- function y() {
1047
- w = this.clientWidth, x = this.clientHeight, i(0, w), i(1, x);
1028
+ function w() {
1029
+ y = this.clientWidth, x = this.clientHeight, i(0, y), i(1, x);
1048
1030
  }
1049
- function Ie(a) {
1050
- zt[a ? "unshift" : "push"](() => {
1051
- p = a, i(4, p);
1031
+ function Ie(r) {
1032
+ Ht[r ? "unshift" : "push"](() => {
1033
+ m = r, i(4, m);
1052
1034
  });
1053
1035
  }
1054
- return n.$$set = (a) => {
1055
- "clientstyling" in a && i(11, v = a.clientstyling), "clientstylingurl" in a && i(12, D = a.clientstylingurl), "width" in a && i(0, w = a.width), "height" in a && i(1, x = a.height), "duration" in a && i(2, de = a.duration), "assetsurl" in a && i(3, he = a.assetsurl), "lang" in a && i(13, V = a.lang), "translationurl" in a && i(14, b = a.translationurl), "endpoint" in a && i(15, R = a.endpoint), "currency" in a && i(16, O = a.currency), "customerid" in a && i(17, fe = a.customerid), "selectedpaymentmethodname" in a && i(18, z = a.selectedpaymentmethodname), "mbsource" in a && i(19, d = a.mbsource), "$$scope" in a && i(21, m = a.$$scope);
1036
+ return n.$$set = (r) => {
1037
+ "clientstyling" in r && i(11, D = r.clientstyling), "clientstylingurl" in r && i(12, k = r.clientstylingurl), "width" in r && i(0, y = r.width), "height" in r && i(1, x = r.height), "duration" in r && i(2, de = r.duration), "assetsurl" in r && i(3, he = r.assetsurl), "lang" in r && i(13, V = r.lang), "translationurl" in r && i(14, A = r.translationurl), "endpoint" in r && i(15, R = r.endpoint), "currency" in r && i(16, O = r.currency), "customerid" in r && i(17, ce = r.customerid), "selectedpaymentmethodname" in r && i(18, H = r.selectedpaymentmethodname), "mbsource" in r && i(19, p = r.mbsource), "$$scope" in r && i(21, h = r.$$scope);
1056
1038
  }, n.$$.update = () => {
1057
1039
  n.$$.dirty[0] & /*$xPaymentSessionToken*/
1058
1040
  1048576 && Z(o), n.$$.dirty[0] & /*lang*/
1059
- 8192 && V && A(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1060
- 2064 && v && p && Pn(p, v), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1061
- 4112 && D && p && Un(p, D), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
1062
- 524304 && d && p && Fn(p, `${d}.Style`), n.$$.dirty[0] & /*translationurl*/
1063
- 16384 && b && me();
1041
+ 8192 && V && b(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1042
+ 2064 && D && m && Un(m, D), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1043
+ 4112 && k && m && Fn(m, k), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
1044
+ 524304 && p && m && Hn(m, `${p}.Style`), n.$$.dirty[0] & /*translationurl*/
1045
+ 16384 && A && ue();
1064
1046
  }, [
1065
- w,
1047
+ y,
1066
1048
  x,
1067
1049
  de,
1068
1050
  he,
1069
- p,
1051
+ m,
1070
1052
  W,
1071
1053
  q,
1072
1054
  K,
1073
- r,
1074
- h,
1055
+ a,
1056
+ d,
1075
1057
  S,
1076
- v,
1077
1058
  D,
1059
+ k,
1078
1060
  V,
1079
- b,
1061
+ A,
1080
1062
  R,
1081
1063
  O,
1082
- fe,
1083
- z,
1084
- d,
1064
+ ce,
1065
+ H,
1066
+ p,
1085
1067
  o,
1086
- m,
1087
- l,
1088
- De,
1089
- y,
1068
+ h,
1069
+ u,
1070
+ ke,
1071
+ w,
1090
1072
  Ie
1091
1073
  ];
1092
1074
  }
1093
- class wi extends Ln {
1075
+ class wi extends Mn {
1094
1076
  constructor(t) {
1095
- super(), Mn(
1077
+ super(), On(
1096
1078
  this,
1097
1079
  t,
1098
- yi,
1099
1080
  bi,
1100
- On,
1081
+ Si,
1082
+ Nn,
1101
1083
  {
1102
1084
  clientstyling: 11,
1103
1085
  clientstylingurl: 12,
@@ -1113,7 +1095,7 @@ class wi extends Ln {
1113
1095
  selectedpaymentmethodname: 18,
1114
1096
  mbsource: 19
1115
1097
  },
1116
- li,
1098
+ ci,
1117
1099
  [-1, -1]
1118
1100
  );
1119
1101
  }
@@ -1196,7 +1178,7 @@ class wi extends Ln {
1196
1178
  this.$$set({ mbsource: t }), j();
1197
1179
  }
1198
1180
  }
1199
- Hn(wi, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
1181
+ zn(wi, { clientstyling: {}, clientstylingurl: {}, width: {}, height: {}, duration: {}, assetsurl: {}, lang: {}, translationurl: {}, endpoint: {}, currency: {}, customerid: {}, selectedpaymentmethodname: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
1200
1182
  export {
1201
1183
  wi as default
1202
1184
  };