@sesamy/sesamy-js 1.18.3 → 1.19.0

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.
@@ -1,13 +1,13 @@
1
1
  var El = Object.defineProperty;
2
2
  var Ol = (e, t, r) => t in e ? El(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var ie = (e, t, r) => Ol(e, typeof t != "symbol" ? t + "" : t, r);
4
- var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = function(e) {
3
+ var oe = (e, t, r) => Ol(e, typeof t != "symbol" ? t + "" : t, r);
4
+ var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ne = function(e) {
5
5
  try {
6
6
  return !!e();
7
7
  } catch {
8
8
  return !0;
9
9
  }
10
- }, _l = re, za = !_l(function() {
10
+ }, _l = ne, za = !_l(function() {
11
11
  var e = (function() {
12
12
  }).bind();
13
13
  return typeof e != "function" || e.hasOwnProperty("prototype");
@@ -17,7 +17,7 @@ var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
17
17
  };
18
18
  }, fc = K, Cl = fc({}.toString), jl = fc("".slice), Ha = function(e) {
19
19
  return jl(Cl(e), 8, -1);
20
- }, Al = K, Ll = re, xl = Ha, dn = Object, Ul = Al("".split), dc = Ll(function() {
20
+ }, Al = K, Ll = ne, xl = Ha, dn = Object, Ul = Al("".split), dc = Ll(function() {
21
21
  return !dn("z").propertyIsEnumerable(0);
22
22
  }) ? function(e) {
23
23
  return xl(e) === "String" ? Ul(e, "") : dn(e);
@@ -26,25 +26,25 @@ var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
26
26
  }, Nl = Ba, Dl = TypeError, Yr = function(e) {
27
27
  if (Nl(e)) throw new Dl("Can't call method on " + e);
28
28
  return e;
29
- }, Ml = dc, Fl = Yr, rr = function(e) {
29
+ }, Ml = dc, Fl = Yr, nr = function(e) {
30
30
  return Ml(Fl(e));
31
- }, At = function(e) {
31
+ }, Lt = function(e) {
32
32
  return e && e.Math === Math && e;
33
- }, q = (
33
+ }, Q = (
34
34
  // eslint-disable-next-line es/no-global-this -- safe
35
- At(typeof globalThis == "object" && globalThis) || At(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
36
- At(typeof self == "object" && self) || At(typeof lr == "object" && lr) || At(typeof lr == "object" && lr) || // eslint-disable-next-line no-new-func -- fallback
35
+ Lt(typeof globalThis == "object" && globalThis) || Lt(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
36
+ Lt(typeof self == "object" && self) || Lt(typeof lr == "object" && lr) || Lt(typeof lr == "object" && lr) || // eslint-disable-next-line no-new-func -- fallback
37
37
  /* @__PURE__ */ function() {
38
38
  return this;
39
39
  }() || Function("return this")()
40
- ), hc = { exports: {} }, zl = !1, Li = q, Hl = Object.defineProperty, Ka = function(e, t) {
40
+ ), hc = { exports: {} }, zl = !1, Li = Q, Hl = Object.defineProperty, Ka = function(e, t) {
41
41
  try {
42
42
  Hl(Li, e, { value: t, configurable: !0, writable: !0 });
43
43
  } catch {
44
44
  Li[e] = t;
45
45
  }
46
46
  return t;
47
- }, Bl = q, Kl = Ka, xi = "__core-js_shared__", Ui = hc.exports = Bl[xi] || Kl(xi, {});
47
+ }, Bl = Q, Kl = Ka, xi = "__core-js_shared__", Ui = hc.exports = Bl[xi] || Kl(xi, {});
48
48
  (Ui.versions || (Ui.versions = [])).push({
49
49
  version: "3.37.1",
50
50
  mode: "global",
@@ -56,53 +56,53 @@ var Ga = hc.exports, Ni = Ga, vc = function(e, t) {
56
56
  return Ni[e] || (Ni[e] = t || {});
57
57
  }, Gl = Yr, Wl = Object, Jr = function(e) {
58
58
  return Wl(Gl(e));
59
- }, Vl = K, Zl = Jr, Yl = Vl({}.hasOwnProperty), ye = Object.hasOwn || function(t, r) {
59
+ }, Vl = K, Zl = Jr, Yl = Vl({}.hasOwnProperty), we = Object.hasOwn || function(t, r) {
60
60
  return Yl(Zl(t), r);
61
61
  }, Jl = K, Xl = 0, ql = Math.random(), Ql = Jl(1 .toString), pc = function(e) {
62
62
  return "Symbol(" + (e === void 0 ? "" : e) + ")_" + Ql(++Xl + ql, 36);
63
- }, ef = typeof navigator < "u" && String(navigator.userAgent) || "", mc = q, hn = ef, Di = mc.process, Mi = mc.Deno, Fi = Di && Di.versions || Mi && Mi.version, zi = Fi && Fi.v8, pe, Nr;
64
- zi && (pe = zi.split("."), Nr = pe[0] > 0 && pe[0] < 4 ? 1 : +(pe[0] + pe[1]));
65
- !Nr && hn && (pe = hn.match(/Edge\/(\d+)/), (!pe || pe[1] >= 74) && (pe = hn.match(/Chrome\/(\d+)/), pe && (Nr = +pe[1])));
66
- var tf = Nr, Hi = tf, rf = re, nf = q, af = nf.String, gc = !!Object.getOwnPropertySymbols && !rf(function() {
63
+ }, ef = typeof navigator < "u" && String(navigator.userAgent) || "", mc = Q, hn = ef, Di = mc.process, Mi = mc.Deno, Fi = Di && Di.versions || Mi && Mi.version, zi = Fi && Fi.v8, me, Nr;
64
+ zi && (me = zi.split("."), Nr = me[0] > 0 && me[0] < 4 ? 1 : +(me[0] + me[1]));
65
+ !Nr && hn && (me = hn.match(/Edge\/(\d+)/), (!me || me[1] >= 74) && (me = hn.match(/Chrome\/(\d+)/), me && (Nr = +me[1])));
66
+ var tf = Nr, Hi = tf, rf = ne, nf = Q, af = nf.String, gc = !!Object.getOwnPropertySymbols && !rf(function() {
67
67
  var e = Symbol("symbol detection");
68
68
  return !af(e) || !(Object(e) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
69
69
  !Symbol.sham && Hi && Hi < 41;
70
- }), of = gc, yc = of && !Symbol.sham && typeof Symbol.iterator == "symbol", sf = q, cf = vc, Bi = ye, uf = pc, lf = gc, ff = yc, dt = sf.Symbol, vn = cf("wks"), df = ff ? dt.for || dt : dt && dt.withoutSetter || uf, fe = function(e) {
71
- return Bi(vn, e) || (vn[e] = lf && Bi(dt, e) ? dt[e] : df("Symbol." + e)), vn[e];
72
- }, pn = typeof document == "object" && document.all, Z = typeof pn > "u" && pn !== void 0 ? function(e) {
70
+ }), of = gc, yc = of && !Symbol.sham && typeof Symbol.iterator == "symbol", sf = Q, cf = vc, Bi = we, uf = pc, lf = gc, ff = yc, vt = sf.Symbol, vn = cf("wks"), df = ff ? vt.for || vt : vt && vt.withoutSetter || uf, de = function(e) {
71
+ return Bi(vn, e) || (vn[e] = lf && Bi(vt, e) ? vt[e] : df("Symbol." + e)), vn[e];
72
+ }, pn = typeof document == "object" && document.all, Y = typeof pn > "u" && pn !== void 0 ? function(e) {
73
73
  return typeof e == "function" || e === pn;
74
74
  } : function(e) {
75
75
  return typeof e == "function";
76
- }, hf = Z, Re = function(e) {
76
+ }, hf = Y, Ce = function(e) {
77
77
  return typeof e == "object" ? e !== null : hf(e);
78
- }, vf = Re, pf = String, mf = TypeError, Me = function(e) {
78
+ }, vf = Ce, pf = String, mf = TypeError, ze = function(e) {
79
79
  if (vf(e)) return e;
80
80
  throw new mf(pf(e) + " is not an object");
81
- }, wc = {}, gf = re, Y = !gf(function() {
81
+ }, wc = {}, gf = ne, J = !gf(function() {
82
82
  return Object.defineProperty({}, 1, { get: function() {
83
83
  return 7;
84
84
  } })[1] !== 7;
85
- }), yf = Y, wf = re, bc = yf && wf(function() {
85
+ }), yf = J, wf = ne, bc = yf && wf(function() {
86
86
  return Object.defineProperty(function() {
87
87
  }, "prototype", {
88
88
  value: 42,
89
89
  writable: !1
90
90
  }).prototype !== 42;
91
- }), $e = {}, bf = q, Ki = Re, da = bf.document, Sf = Ki(da) && Ki(da.createElement), Wa = function(e) {
91
+ }), ke = {}, bf = Q, Ki = Ce, da = bf.document, Sf = Ki(da) && Ki(da.createElement), Wa = function(e) {
92
92
  return Sf ? da.createElement(e) : {};
93
- }, If = Y, $f = re, kf = Wa, Sc = !If && !$f(function() {
93
+ }, If = J, $f = ne, kf = Wa, Sc = !If && !$f(function() {
94
94
  return Object.defineProperty(kf("div"), "a", {
95
95
  get: function() {
96
96
  return 7;
97
97
  }
98
98
  }).a !== 7;
99
- }), Pf = za, fr = Function.prototype.call, ke = Pf ? fr.bind(fr) : function() {
99
+ }), Pf = za, fr = Function.prototype.call, Pe = Pf ? fr.bind(fr) : function() {
100
100
  return fr.apply(fr, arguments);
101
- }, mn = q, Tf = Z, Ef = function(e) {
101
+ }, mn = Q, Tf = Y, Ef = function(e) {
102
102
  return Tf(e) ? e : void 0;
103
- }, Tt = function(e, t) {
103
+ }, Ot = function(e, t) {
104
104
  return arguments.length < 2 ? Ef(mn[e]) : mn[e] && mn[e][t];
105
- }, Of = K, Ic = Of({}.isPrototypeOf), _f = Tt, Rf = Z, Cf = Ic, jf = yc, Af = Object, $c = jf ? function(e) {
105
+ }, Of = K, Ic = Of({}.isPrototypeOf), _f = Ot, Rf = Y, Cf = Ic, jf = yc, Af = Object, $c = jf ? function(e) {
106
106
  return typeof e == "symbol";
107
107
  } : function(e) {
108
108
  var t = _f("Symbol");
@@ -113,17 +113,17 @@ var tf = Nr, Hi = tf, rf = re, nf = q, af = nf.String, gc = !!Object.getOwnPrope
113
113
  } catch {
114
114
  return "Object";
115
115
  }
116
- }, xf = Z, Uf = kc, Nf = TypeError, Xr = function(e) {
116
+ }, xf = Y, Uf = kc, Nf = TypeError, Xr = function(e) {
117
117
  if (xf(e)) return e;
118
118
  throw new Nf(Uf(e) + " is not a function");
119
119
  }, Df = Xr, Mf = Ba, Va = function(e, t) {
120
120
  var r = e[t];
121
121
  return Mf(r) ? void 0 : Df(r);
122
- }, gn = ke, yn = Z, wn = Re, Ff = TypeError, zf = function(e, t) {
122
+ }, gn = Pe, yn = Y, wn = Ce, Ff = TypeError, zf = function(e, t) {
123
123
  var r, n;
124
124
  if (t === "string" && yn(r = e.toString) && !wn(n = gn(r, e)) || yn(r = e.valueOf) && !wn(n = gn(r, e)) || t !== "string" && yn(r = e.toString) && !wn(n = gn(r, e))) return n;
125
125
  throw new Ff("Can't convert object to primitive value");
126
- }, Hf = ke, Gi = Re, Wi = $c, Bf = Va, Kf = zf, Gf = fe, Wf = TypeError, Vf = Gf("toPrimitive"), Zf = function(e, t) {
126
+ }, Hf = Pe, Gi = Ce, Wi = $c, Bf = Va, Kf = zf, Gf = de, Wf = TypeError, Vf = Gf("toPrimitive"), Zf = function(e, t) {
127
127
  if (!Gi(e) || Wi(e)) return e;
128
128
  var r = Bf(e, Vf), n;
129
129
  if (r) {
@@ -134,8 +134,8 @@ var tf = Nr, Hi = tf, rf = re, nf = q, af = nf.String, gc = !!Object.getOwnPrope
134
134
  }, Yf = Zf, Jf = $c, Pc = function(e) {
135
135
  var t = Yf(e, "string");
136
136
  return Jf(t) ? t : t + "";
137
- }, Xf = Y, qf = Sc, Qf = bc, dr = Me, Vi = Pc, ed = TypeError, bn = Object.defineProperty, td = Object.getOwnPropertyDescriptor, Sn = "enumerable", In = "configurable", $n = "writable";
138
- $e.f = Xf ? Qf ? function(t, r, n) {
137
+ }, Xf = J, qf = Sc, Qf = bc, dr = ze, Vi = Pc, ed = TypeError, bn = Object.defineProperty, td = Object.getOwnPropertyDescriptor, Sn = "enumerable", In = "configurable", $n = "writable";
138
+ ke.f = Xf ? Qf ? function(t, r, n) {
139
139
  if (dr(t), r = Vi(r), dr(n), typeof t == "function" && r === "prototype" && "value" in n && $n in n && !n[$n]) {
140
140
  var a = td(t, r);
141
141
  a && a[$n] && (t[r] = n.value, n = {
@@ -167,7 +167,7 @@ var rd = Math.ceil, nd = Math.floor, ad = Math.trunc || function(t) {
167
167
  return t > 0 ? fd(t, 9007199254740991) : 0;
168
168
  }, hd = dd, Tc = function(e) {
169
169
  return hd(e.length);
170
- }, vd = rr, pd = ud, md = Tc, Zi = function(e) {
170
+ }, vd = nr, pd = ud, md = Tc, Zi = function(e) {
171
171
  return function(t, r, n) {
172
172
  var a = vd(t), i = md(a);
173
173
  if (i === 0) return !e && -1;
@@ -186,7 +186,7 @@ var rd = Math.ceil, nd = Math.floor, ad = Math.trunc || function(t) {
186
186
  // `Array.prototype.indexOf` method
187
187
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
188
188
  indexOf: Zi(!1)
189
- }, Ya = {}, yd = K, kn = ye, wd = rr, bd = gd.indexOf, Sd = Ya, Yi = yd([].push), Ec = function(e, t) {
189
+ }, Ya = {}, yd = K, kn = we, wd = nr, bd = gd.indexOf, Sd = Ya, Yi = yd([].push), Ec = function(e, t) {
190
190
  var r = wd(e), n = 0, a = [], i;
191
191
  for (i in r) !kn(Sd, i) && kn(r, i) && Yi(a, i);
192
192
  for (; t.length > n; ) kn(r, i = t[n++]) && (~bd(a, i) || Yi(a, i));
@@ -201,15 +201,15 @@ var rd = Math.ceil, nd = Math.floor, ad = Math.trunc || function(t) {
201
201
  "valueOf"
202
202
  ], Id = Ec, $d = Ja, Oc = Object.keys || function(t) {
203
203
  return Id(t, $d);
204
- }, kd = Y, Pd = bc, Td = $e, Ed = Me, Od = rr, _d = Oc;
204
+ }, kd = J, Pd = bc, Td = ke, Ed = ze, Od = nr, _d = Oc;
205
205
  wc.f = kd && !Pd ? Object.defineProperties : function(t, r) {
206
206
  Ed(t);
207
207
  for (var n = Od(r), a = _d(r), i = a.length, o = 0, c; i > o; ) Td.f(t, c = a[o++], n[c]);
208
208
  return t;
209
209
  };
210
- var Rd = Tt, Cd = Rd("document", "documentElement"), jd = vc, Ad = pc, Ji = jd("keys"), Xa = function(e) {
210
+ var Rd = Ot, Cd = Rd("document", "documentElement"), jd = vc, Ad = pc, Ji = jd("keys"), Xa = function(e) {
211
211
  return Ji[e] || (Ji[e] = Ad(e));
212
- }, Ld = Me, xd = wc, Xi = Ja, Ud = Ya, Nd = Cd, Dd = Wa, Md = Xa, qi = ">", Qi = "<", ha = "prototype", va = "script", _c = Md("IE_PROTO"), Pn = function() {
212
+ }, Ld = ze, xd = wc, Xi = Ja, Ud = Ya, Nd = Cd, Dd = Wa, Md = Xa, qi = ">", Qi = "<", ha = "prototype", va = "script", _c = Md("IE_PROTO"), Pn = function() {
213
213
  }, Rc = function(e) {
214
214
  return Qi + va + qi + e + Qi + "/" + va + qi;
215
215
  }, eo = function(e) {
@@ -232,58 +232,58 @@ Ud[_c] = !0;
232
232
  var qa = Object.create || function(t, r) {
233
233
  var n;
234
234
  return t !== null ? (Pn[ha] = Ld(t), n = new Pn(), Pn[ha] = null, n[_c] = t) : n = Cr(), r === void 0 ? n : xd.f(n, r);
235
- }, zd = fe, Hd = qa, Bd = $e.f, pa = zd("unscopables"), ma = Array.prototype;
235
+ }, zd = de, Hd = qa, Bd = ke.f, pa = zd("unscopables"), ma = Array.prototype;
236
236
  ma[pa] === void 0 && Bd(ma, pa, {
237
237
  configurable: !0,
238
238
  value: Hd(null)
239
239
  });
240
240
  var Kd = function(e) {
241
241
  ma[pa][e] = !0;
242
- }, nr = {}, Gd = q, Wd = Z, to = Gd.WeakMap, Vd = Wd(to) && /native code/.test(String(to)), ar = function(e, t) {
242
+ }, ar = {}, Gd = Q, Wd = Y, to = Gd.WeakMap, Vd = Wd(to) && /native code/.test(String(to)), ir = function(e, t) {
243
243
  return {
244
244
  enumerable: !(e & 1),
245
245
  configurable: !(e & 2),
246
246
  writable: !(e & 4),
247
247
  value: t
248
248
  };
249
- }, Zd = Y, Yd = $e, Jd = ar, qr = Zd ? function(e, t, r) {
249
+ }, Zd = J, Yd = ke, Jd = ir, qr = Zd ? function(e, t, r) {
250
250
  return Yd.f(e, t, Jd(1, r));
251
251
  } : function(e, t, r) {
252
252
  return e[t] = r, e;
253
- }, Xd = Vd, Cc = q, qd = Re, Qd = qr, Tn = ye, En = Ga, eh = Xa, th = Ya, ro = "Object already initialized", ga = Cc.TypeError, rh = Cc.WeakMap, Dr, er, Mr, nh = function(e) {
254
- return Mr(e) ? er(e) : Dr(e, {});
253
+ }, Xd = Vd, Cc = Q, qd = Ce, Qd = qr, Tn = we, En = Ga, eh = Xa, th = Ya, ro = "Object already initialized", ga = Cc.TypeError, rh = Cc.WeakMap, Dr, tr, Mr, nh = function(e) {
254
+ return Mr(e) ? tr(e) : Dr(e, {});
255
255
  }, ah = function(e) {
256
256
  return function(t) {
257
257
  var r;
258
- if (!qd(t) || (r = er(t)).type !== e)
258
+ if (!qd(t) || (r = tr(t)).type !== e)
259
259
  throw new ga("Incompatible receiver, " + e + " required");
260
260
  return r;
261
261
  };
262
262
  };
263
263
  if (Xd || En.state) {
264
- var we = En.state || (En.state = new rh());
265
- we.get = we.get, we.has = we.has, we.set = we.set, Dr = function(e, t) {
266
- if (we.has(e)) throw new ga(ro);
267
- return t.facade = e, we.set(e, t), t;
268
- }, er = function(e) {
269
- return we.get(e) || {};
264
+ var be = En.state || (En.state = new rh());
265
+ be.get = be.get, be.has = be.has, be.set = be.set, Dr = function(e, t) {
266
+ if (be.has(e)) throw new ga(ro);
267
+ return t.facade = e, be.set(e, t), t;
268
+ }, tr = function(e) {
269
+ return be.get(e) || {};
270
270
  }, Mr = function(e) {
271
- return we.has(e);
271
+ return be.has(e);
272
272
  };
273
273
  } else {
274
- var at = eh("state");
275
- th[at] = !0, Dr = function(e, t) {
276
- if (Tn(e, at)) throw new ga(ro);
277
- return t.facade = e, Qd(e, at, t), t;
278
- }, er = function(e) {
279
- return Tn(e, at) ? e[at] : {};
274
+ var ot = eh("state");
275
+ th[ot] = !0, Dr = function(e, t) {
276
+ if (Tn(e, ot)) throw new ga(ro);
277
+ return t.facade = e, Qd(e, ot, t), t;
278
+ }, tr = function(e) {
279
+ return Tn(e, ot) ? e[ot] : {};
280
280
  }, Mr = function(e) {
281
- return Tn(e, at);
281
+ return Tn(e, ot);
282
282
  };
283
283
  }
284
- var ir = {
284
+ var or = {
285
285
  set: Dr,
286
- get: er,
286
+ get: tr,
287
287
  has: Mr,
288
288
  enforce: nh,
289
289
  getterFor: ah
@@ -292,7 +292,7 @@ ei.f = ih ? function(t) {
292
292
  var r = Ac(this, t);
293
293
  return !!r && r.enumerable;
294
294
  } : jc;
295
- var oh = Y, sh = ke, ch = ei, uh = ar, lh = rr, fh = Pc, dh = ye, hh = Sc, no = Object.getOwnPropertyDescriptor;
295
+ var oh = J, sh = Pe, ch = ei, uh = ir, lh = nr, fh = Pc, dh = we, hh = Sc, no = Object.getOwnPropertyDescriptor;
296
296
  Qa.f = oh ? no : function(t, r) {
297
297
  if (t = lh(t), r = fh(r), hh) try {
298
298
  return no(t, r);
@@ -300,16 +300,16 @@ Qa.f = oh ? no : function(t, r) {
300
300
  }
301
301
  if (dh(t, r)) return uh(!sh(ch.f, t, r), t[r]);
302
302
  };
303
- var Lc = { exports: {} }, ya = Y, vh = ye, xc = Function.prototype, ph = ya && Object.getOwnPropertyDescriptor, ti = vh(xc, "name"), mh = ti && (function() {
303
+ var Lc = { exports: {} }, ya = J, vh = we, xc = Function.prototype, ph = ya && Object.getOwnPropertyDescriptor, ti = vh(xc, "name"), mh = ti && (function() {
304
304
  }).name === "something", gh = ti && (!ya || ya && ph(xc, "name").configurable), Uc = {
305
305
  EXISTS: ti,
306
306
  PROPER: mh,
307
307
  CONFIGURABLE: gh
308
- }, yh = K, wh = Z, wa = Ga, bh = yh(Function.toString);
308
+ }, yh = K, wh = Y, wa = Ga, bh = yh(Function.toString);
309
309
  wh(wa.inspectSource) || (wa.inspectSource = function(e) {
310
310
  return bh(e);
311
311
  });
312
- var Nc = wa.inspectSource, ri = K, Sh = re, Ih = Z, vr = ye, ba = Y, $h = Uc.CONFIGURABLE, kh = Nc, Dc = ir, Ph = Dc.enforce, Th = Dc.get, ao = String, jr = Object.defineProperty, Eh = ri("".slice), Oh = ri("".replace), _h = ri([].join), Rh = ba && !Sh(function() {
312
+ var Nc = wa.inspectSource, ri = K, Sh = ne, Ih = Y, vr = we, ba = J, $h = Uc.CONFIGURABLE, kh = Nc, Dc = or, Ph = Dc.enforce, Th = Dc.get, ao = String, jr = Object.defineProperty, Eh = ri("".slice), Oh = ri("".replace), _h = ri([].join), Rh = ba && !Sh(function() {
313
313
  return jr(function() {
314
314
  }, "length", { value: 8 }).length !== 8;
315
315
  }), Ch = String(String).split("String"), jh = Lc.exports = function(e, t, r) {
@@ -324,7 +324,7 @@ var Nc = wa.inspectSource, ri = K, Sh = re, Ih = Z, vr = ye, ba = Y, $h = Uc.CON
324
324
  Function.prototype.toString = jh(function() {
325
325
  return Ih(this) && Th(this).source || kh(this);
326
326
  }, "toString");
327
- var Mc = Lc.exports, Ah = Z, Lh = $e, xh = Mc, Uh = Ka, Fe = function(e, t, r, n) {
327
+ var Mc = Lc.exports, Ah = Y, Lh = ke, xh = Mc, Uh = Ka, He = function(e, t, r, n) {
328
328
  n || (n = {});
329
329
  var a = n.enumerable, i = n.name !== void 0 ? n.name : t;
330
330
  if (Ah(r) && xh(r, i, n), n.global)
@@ -348,20 +348,20 @@ Fc.f = Object.getOwnPropertyNames || function(t) {
348
348
  };
349
349
  var ni = {};
350
350
  ni.f = Object.getOwnPropertySymbols;
351
- var Fh = Tt, zh = K, Hh = Fc, Bh = ni, Kh = Me, Gh = zh([].concat), Wh = Fh("Reflect", "ownKeys") || function(t) {
351
+ var Fh = Ot, zh = K, Hh = Fc, Bh = ni, Kh = ze, Gh = zh([].concat), Wh = Fh("Reflect", "ownKeys") || function(t) {
352
352
  var r = Hh.f(Kh(t)), n = Bh.f;
353
353
  return n ? Gh(r, n(t)) : r;
354
- }, io = ye, Vh = Wh, Zh = Qa, Yh = $e, Jh = function(e, t, r) {
354
+ }, io = we, Vh = Wh, Zh = Qa, Yh = ke, Jh = function(e, t, r) {
355
355
  for (var n = Vh(t), a = Yh.f, i = Zh.f, o = 0; o < n.length; o++) {
356
356
  var c = n[o];
357
357
  !io(e, c) && !(r && io(r, c)) && a(e, c, i(t, c));
358
358
  }
359
- }, Xh = re, qh = Z, Qh = /#|\.prototype\./, or = function(e, t) {
359
+ }, Xh = ne, qh = Y, Qh = /#|\.prototype\./, sr = function(e, t) {
360
360
  var r = tv[ev(e)];
361
361
  return r === nv ? !0 : r === rv ? !1 : qh(t) ? Xh(t) : !!t;
362
- }, ev = or.normalize = function(e) {
362
+ }, ev = sr.normalize = function(e) {
363
363
  return String(e).replace(Qh, ".").toLowerCase();
364
- }, tv = or.data = {}, rv = or.NATIVE = "N", nv = or.POLYFILL = "P", av = or, pr = q, iv = Qa.f, ov = qr, sv = Fe, cv = Ka, uv = Jh, lv = av, Et = function(e, t) {
364
+ }, tv = sr.data = {}, rv = sr.NATIVE = "N", nv = sr.POLYFILL = "P", av = sr, pr = Q, iv = Qa.f, ov = qr, sv = He, cv = Ka, uv = Jh, lv = av, _t = function(e, t) {
365
365
  var r = e.target, n = e.global, a = e.stat, i, o, c, l, f, u;
366
366
  if (n ? o = pr : a ? o = pr[r] || cv(r, {}) : o = pr[r] && pr[r].prototype, o) for (c in t) {
367
367
  if (f = t[c], e.dontCallGetSet ? (u = iv(o, c), l = u && u.value) : l = o[c], i = lv(n ? c : r + (a ? "." : "#") + c, e.forced), !i && l !== void 0) {
@@ -370,31 +370,31 @@ var Fh = Tt, zh = K, Hh = Fc, Bh = ni, Kh = Me, Gh = zh([].concat), Wh = Fh("Ref
370
370
  }
371
371
  (e.sham || l && l.sham) && ov(f, "sham", !0), sv(o, c, f, e);
372
372
  }
373
- }, fv = re, dv = !fv(function() {
373
+ }, fv = ne, dv = !fv(function() {
374
374
  function e() {
375
375
  }
376
376
  return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
377
- }), hv = ye, vv = Z, pv = Jr, mv = Xa, gv = dv, oo = mv("IE_PROTO"), Sa = Object, yv = Sa.prototype, zc = gv ? Sa.getPrototypeOf : function(e) {
377
+ }), hv = we, vv = Y, pv = Jr, mv = Xa, gv = dv, oo = mv("IE_PROTO"), Sa = Object, yv = Sa.prototype, zc = gv ? Sa.getPrototypeOf : function(e) {
378
378
  var t = pv(e);
379
379
  if (hv(t, oo)) return t[oo];
380
380
  var r = t.constructor;
381
381
  return vv(r) && t instanceof r ? r.prototype : t instanceof Sa ? yv : null;
382
- }, wv = re, bv = Z, Sv = Re, so = zc, Iv = Fe, $v = fe, Ia = $v("iterator"), Hc = !1, Qe, On, _n;
383
- [].keys && (_n = [].keys(), "next" in _n ? (On = so(so(_n)), On !== Object.prototype && (Qe = On)) : Hc = !0);
384
- var kv = !Sv(Qe) || wv(function() {
382
+ }, wv = ne, bv = Y, Sv = Ce, so = zc, Iv = He, $v = de, Ia = $v("iterator"), Hc = !1, tt, On, _n;
383
+ [].keys && (_n = [].keys(), "next" in _n ? (On = so(so(_n)), On !== Object.prototype && (tt = On)) : Hc = !0);
384
+ var kv = !Sv(tt) || wv(function() {
385
385
  var e = {};
386
- return Qe[Ia].call(e) !== e;
386
+ return tt[Ia].call(e) !== e;
387
387
  });
388
- kv && (Qe = {});
389
- bv(Qe[Ia]) || Iv(Qe, Ia, function() {
388
+ kv && (tt = {});
389
+ bv(tt[Ia]) || Iv(tt, Ia, function() {
390
390
  return this;
391
391
  });
392
392
  var Bc = {
393
- IteratorPrototype: Qe,
393
+ IteratorPrototype: tt,
394
394
  BUGGY_SAFARI_ITERATORS: Hc
395
- }, Pv = $e.f, Tv = ye, Ev = fe, co = Ev("toStringTag"), sr = function(e, t, r) {
395
+ }, Pv = ke.f, Tv = we, Ev = de, co = Ev("toStringTag"), cr = function(e, t, r) {
396
396
  e && !r && (e = e.prototype), e && !Tv(e, co) && Pv(e, co, { configurable: !0, value: t });
397
- }, Ov = Bc.IteratorPrototype, _v = qa, Rv = ar, Cv = sr, jv = nr, Av = function() {
397
+ }, Ov = Bc.IteratorPrototype, _v = qa, Rv = ir, Cv = cr, jv = ar, Av = function() {
398
398
  return this;
399
399
  }, Kc = function(e, t, r, n) {
400
400
  var a = t + " Iterator";
@@ -404,12 +404,12 @@ var Bc = {
404
404
  return Lv(xv(Object.getOwnPropertyDescriptor(e, t)[r]));
405
405
  } catch {
406
406
  }
407
- }, Nv = Re, Dv = function(e) {
407
+ }, Nv = Ce, Dv = function(e) {
408
408
  return Nv(e) || e === null;
409
409
  }, Mv = Dv, Fv = String, zv = TypeError, Hv = function(e) {
410
410
  if (Mv(e)) return e;
411
411
  throw new zv("Can't set " + Fv(e) + " as a prototype");
412
- }, Bv = Uv, Kv = Re, Gv = Yr, Wv = Hv, Vv = Object.setPrototypeOf || ("__proto__" in {} ? function() {
412
+ }, Bv = Uv, Kv = Ce, Gv = Yr, Wv = Hv, Vv = Object.setPrototypeOf || ("__proto__" in {} ? function() {
413
413
  var e = !1, t = {}, r;
414
414
  try {
415
415
  r = Bv(Object.prototype, "__proto__", "set"), r(t, []), e = t instanceof Array;
@@ -418,7 +418,7 @@ var Bc = {
418
418
  return function(a, i) {
419
419
  return Gv(a), Wv(i), Kv(a) && (e ? r(a, i) : a.__proto__ = i), a;
420
420
  };
421
- }() : void 0), Zv = Et, Yv = ke, Gc = Uc, Jv = Z, Xv = Kc, uo = zc, lo = Vv, qv = sr, Qv = qr, Rn = Fe, ep = fe, tp = nr, Wc = Bc, rp = Gc.PROPER, np = Gc.CONFIGURABLE, fo = Wc.IteratorPrototype, mr = Wc.BUGGY_SAFARI_ITERATORS, Lt = ep("iterator"), ho = "keys", xt = "values", vo = "entries", ap = function() {
421
+ }() : void 0), Zv = _t, Yv = Pe, Gc = Uc, Jv = Y, Xv = Kc, uo = zc, lo = Vv, qv = cr, Qv = qr, Rn = He, ep = de, tp = ar, Wc = Bc, rp = Gc.PROPER, np = Gc.CONFIGURABLE, fo = Wc.IteratorPrototype, mr = Wc.BUGGY_SAFARI_ITERATORS, xt = ep("iterator"), ho = "keys", Ut = "values", vo = "entries", ap = function() {
422
422
  return this;
423
423
  }, Vc = function(e, t, r, n, a, i, o) {
424
424
  Xv(r, t, n);
@@ -430,7 +430,7 @@ var Bc = {
430
430
  return function() {
431
431
  return new r(this, $);
432
432
  };
433
- case xt:
433
+ case Ut:
434
434
  return function() {
435
435
  return new r(this, $);
436
436
  };
@@ -442,21 +442,21 @@ var Bc = {
442
442
  return function() {
443
443
  return new r(this);
444
444
  };
445
- }, l = t + " Iterator", f = !1, u = e.prototype, s = u[Lt] || u["@@iterator"] || a && u[a], d = !mr && s || c(a), h = t === "Array" && u.entries || s, m, S, g;
446
- if (h && (m = uo(h.call(new e())), m !== Object.prototype && m.next && (uo(m) !== fo && (lo ? lo(m, fo) : Jv(m[Lt]) || Rn(m, Lt, ap)), qv(m, l, !0))), rp && a === xt && s && s.name !== xt && (np ? Qv(u, "name", xt) : (f = !0, d = function() {
445
+ }, l = t + " Iterator", f = !1, u = e.prototype, s = u[xt] || u["@@iterator"] || a && u[a], d = !mr && s || c(a), h = t === "Array" && u.entries || s, m, S, g;
446
+ if (h && (m = uo(h.call(new e())), m !== Object.prototype && m.next && (uo(m) !== fo && (lo ? lo(m, fo) : Jv(m[xt]) || Rn(m, xt, ap)), qv(m, l, !0))), rp && a === Ut && s && s.name !== Ut && (np ? Qv(u, "name", Ut) : (f = !0, d = function() {
447
447
  return Yv(s, this);
448
448
  })), a)
449
449
  if (S = {
450
- values: c(xt),
450
+ values: c(Ut),
451
451
  keys: i ? d : c(ho),
452
452
  entries: c(vo)
453
453
  }, o) for (g in S)
454
454
  (mr || f || !(g in u)) && Rn(u, g, S[g]);
455
455
  else Zv({ target: t, proto: !0, forced: mr || f }, S);
456
- return u[Lt] !== d && Rn(u, Lt, d, { name: a }), tp[t] = d, S;
456
+ return u[xt] !== d && Rn(u, xt, d, { name: a }), tp[t] = d, S;
457
457
  }, ai = function(e, t) {
458
458
  return { value: e, done: t };
459
- }, ip = rr, ii = Kd, po = nr, Zc = ir, op = $e.f, sp = Vc, gr = ai, cp = Y, Yc = "Array Iterator", up = Zc.set, lp = Zc.getterFor(Yc), fp = sp(Array, "Array", function(e, t) {
459
+ }, ip = nr, ii = Kd, po = ar, Zc = or, op = ke.f, sp = Vc, gr = ai, cp = J, Yc = "Array Iterator", up = Zc.set, lp = Zc.getterFor(Yc), fp = sp(Array, "Array", function(e, t) {
460
460
  up(this, {
461
461
  type: Yc,
462
462
  target: ip(e),
@@ -485,18 +485,18 @@ if (cp && mo.name !== "values") try {
485
485
  op(mo, "name", { value: "values" });
486
486
  } catch {
487
487
  }
488
- var go = q, dp = Y, hp = Object.getOwnPropertyDescriptor, vp = function(e) {
488
+ var go = Q, dp = J, hp = Object.getOwnPropertyDescriptor, vp = function(e) {
489
489
  if (!dp) return go[e];
490
490
  var t = hp(go, e);
491
491
  return t && t.value;
492
- }, pp = re, mp = fe, gp = Y, yo = zl, yp = mp("iterator"), Qr = !pp(function() {
492
+ }, pp = ne, mp = de, gp = J, yo = zl, yp = mp("iterator"), Qr = !pp(function() {
493
493
  var e = new URL("b?a=1&b=2&c=3", "http://a"), t = e.searchParams, r = new URLSearchParams("a=1&a=2&b=3"), n = "";
494
494
  return e.pathname = "c%20d", t.forEach(function(a, i) {
495
495
  t.delete("b"), n += i + a;
496
496
  }), r.delete("a", 2), r.delete("b", void 0), yo && (!e.toJSON || !r.has("a", 1) || r.has("a", 2) || !r.has("a", void 0) || r.has("b")) || !t.size && (yo || !gp) || !t.sort || e.href !== "http://a/c%20d?a=1&c=3" || t.get("c") !== "3" || String(new URLSearchParams("?a=1")) !== "a=1" || !t[yp] || new URL("https://a@b").username !== "a" || new URLSearchParams(new URLSearchParams("a=b")).get("a") !== "b" || new URL("http://тест").host !== "xn--e1aybc" || new URL("http://a#б").hash !== "#%D0%B1" || n !== "a1c3" || new URL("http://x", void 0).host !== "x";
497
- }), wo = Mc, wp = $e, oi = function(e, t, r) {
497
+ }), wo = Mc, wp = ke, oi = function(e, t, r) {
498
498
  return r.get && wo(r.get, t, { getter: !0 }), r.set && wo(r.set, t, { setter: !0 }), wp.f(e, t, r);
499
- }, bp = Fe, Sp = function(e, t, r) {
499
+ }, bp = He, Sp = function(e, t, r) {
500
500
  for (var n in t) bp(e, n, t[n], r);
501
501
  return e;
502
502
  }, Ip = Ic, $p = TypeError, Jc = function(e, t) {
@@ -508,9 +508,9 @@ var go = q, dp = Y, hp = Object.getOwnPropertyDescriptor, vp = function(e) {
508
508
  return Ep(e), t === void 0 ? e : Op ? _p(e, t) : function() {
509
509
  return e.apply(t, arguments);
510
510
  };
511
- }, Rp = fe, Cp = Rp("toStringTag"), Xc = {};
511
+ }, Rp = de, Cp = Rp("toStringTag"), Xc = {};
512
512
  Xc[Cp] = "z";
513
- var jp = String(Xc) === "[object z]", Ap = jp, Lp = Z, Ar = Ha, xp = fe, Up = xp("toStringTag"), Np = Object, Dp = Ar(/* @__PURE__ */ function() {
513
+ var jp = String(Xc) === "[object z]", Ap = jp, Lp = Y, Ar = Ha, xp = de, Up = xp("toStringTag"), Np = Object, Dp = Ar(/* @__PURE__ */ function() {
514
514
  return arguments;
515
515
  }()) === "Arguments", Mp = function(e, t) {
516
516
  try {
@@ -520,16 +520,16 @@ var jp = String(Xc) === "[object z]", Ap = jp, Lp = Z, Ar = Ha, xp = fe, Up = xp
520
520
  }, en = Ap ? Ar : function(e) {
521
521
  var t, r, n;
522
522
  return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (r = Mp(t = Np(e), Up)) == "string" ? r : Dp ? Ar(t) : (n = Ar(t)) === "Object" && Lp(t.callee) ? "Arguments" : n;
523
- }, Fp = en, zp = String, ze = function(e) {
523
+ }, Fp = en, zp = String, Be = function(e) {
524
524
  if (Fp(e) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
525
525
  return zp(e);
526
- }, Hp = en, So = Va, Bp = Ba, Kp = nr, Gp = fe, Wp = Gp("iterator"), ci = function(e) {
526
+ }, Hp = en, So = Va, Bp = Ba, Kp = ar, Gp = de, Wp = Gp("iterator"), ci = function(e) {
527
527
  if (!Bp(e)) return So(e, Wp) || So(e, "@@iterator") || Kp[Hp(e)];
528
- }, Vp = ke, Zp = Xr, Yp = Me, Jp = kc, Xp = ci, qp = TypeError, qc = function(e, t) {
528
+ }, Vp = Pe, Zp = Xr, Yp = ze, Jp = kc, Xp = ci, qp = TypeError, qc = function(e, t) {
529
529
  var r = arguments.length < 2 ? Xp(e) : t;
530
530
  if (Zp(r)) return Yp(Vp(r, e));
531
531
  throw new qp(Jp(e) + " is not iterable");
532
- }, Qp = TypeError, Ot = function(e, t) {
532
+ }, Qp = TypeError, Rt = function(e, t) {
533
533
  if (e < t) throw new Qp("Not enough arguments");
534
534
  return e;
535
535
  }, em = K, Qc = em([].slice), Io = Qc, tm = Math.floor, $a = function(e, t) {
@@ -544,7 +544,7 @@ var jp = String(Xc) === "[object z]", Ap = jp, Lp = Z, Ar = Ha, xp = fe, Up = xp
544
544
  for (var o = tm(r / 2), c = $a(Io(e, 0, o), t), l = $a(Io(e, o), t), f = c.length, u = l.length, s = 0, d = 0; s < f || d < u; )
545
545
  e[s + d] = s < f && d < u ? t(c[s], l[d]) <= 0 ? c[s++] : l[d++] : s < f ? c[s++] : l[d++];
546
546
  return e;
547
- }, rm = $a, ka = Et, tn = q, ui = vp, yr = ke, Ie = K, Wt = Y, eu = Qr, tu = Fe, nm = oi, am = Sp, im = sr, om = Kc, li = ir, ru = Jc, Cn = Z, sm = ye, cm = si, um = en, lm = Me, nu = Re, X = ze, fm = qa, $o = ar, ko = qc, dm = ci, wr = ai, it = Ot, hm = fe, vm = rm, pm = hm("iterator"), _t = "URLSearchParams", au = _t + "Iterator", iu = li.set, ue = li.getterFor(_t), mm = li.getterFor(au), Po = ui("fetch"), Fr = ui("Request"), Vt = ui("Headers"), jn = Fr && Fr.prototype, To = Vt && Vt.prototype, gm = tn.RegExp, ym = tn.TypeError, ou = tn.decodeURIComponent, wm = tn.encodeURIComponent, bm = Ie("".charAt), Eo = Ie([].join), Ze = Ie([].push), Pa = Ie("".replace), Sm = Ie([].shift), Oo = Ie([].splice), _o = Ie("".split), Im = Ie("".slice), $m = /\+/g, Ro = Array(4), km = function(e) {
547
+ }, rm = $a, ka = _t, tn = Q, ui = vp, yr = Pe, $e = K, Vt = J, eu = Qr, tu = He, nm = oi, am = Sp, im = cr, om = Kc, li = or, ru = Jc, Cn = Y, sm = we, cm = si, um = en, lm = ze, nu = Ce, q = Be, fm = qa, $o = ir, ko = qc, dm = ci, wr = ai, st = Rt, hm = de, vm = rm, pm = hm("iterator"), Ct = "URLSearchParams", au = Ct + "Iterator", iu = li.set, le = li.getterFor(Ct), mm = li.getterFor(au), Po = ui("fetch"), Fr = ui("Request"), Zt = ui("Headers"), jn = Fr && Fr.prototype, To = Zt && Zt.prototype, gm = tn.RegExp, ym = tn.TypeError, ou = tn.decodeURIComponent, wm = tn.encodeURIComponent, bm = $e("".charAt), Eo = $e([].join), Je = $e([].push), Pa = $e("".replace), Sm = $e([].shift), Oo = $e([].splice), _o = $e("".split), Im = $e("".slice), $m = /\+/g, Ro = Array(4), km = function(e) {
548
548
  return Ro[e - 1] || (Ro[e - 1] = gm("((?:%[\\da-f]{2}){" + e + "})", "gi"));
549
549
  }, Pm = function(e) {
550
550
  try {
@@ -575,11 +575,11 @@ var jp = String(Xc) === "[object z]", Ap = jp, Lp = Z, Ar = Ha, xp = fe, Up = xp
575
575
  }, An = om(function(t, r) {
576
576
  iu(this, {
577
577
  type: au,
578
- target: ue(t).entries,
578
+ target: le(t).entries,
579
579
  index: 0,
580
580
  kind: r
581
581
  });
582
- }, _t, function() {
582
+ }, Ct, function() {
583
583
  var t = mm(this), r = t.target, n = t.index++;
584
584
  if (!r || n >= r.length)
585
585
  return t.target = void 0, wr(void 0, !0);
@@ -592,10 +592,10 @@ var jp = String(Xc) === "[object z]", Ap = jp, Lp = Z, Ar = Ha, xp = fe, Up = xp
592
592
  }
593
593
  return wr([a.key, a.value], !1);
594
594
  }, !0), su = function(e) {
595
- this.entries = [], this.url = null, e !== void 0 && (nu(e) ? this.parseObject(e) : this.parseQuery(typeof e == "string" ? bm(e, 0) === "?" ? Im(e, 1) : e : X(e)));
595
+ this.entries = [], this.url = null, e !== void 0 && (nu(e) ? this.parseObject(e) : this.parseQuery(typeof e == "string" ? bm(e, 0) === "?" ? Im(e, 1) : e : q(e)));
596
596
  };
597
597
  su.prototype = {
598
- type: _t,
598
+ type: Ct,
599
599
  bindURL: function(e) {
600
600
  this.url = e, this.update();
601
601
  },
@@ -604,21 +604,21 @@ su.prototype = {
604
604
  if (r)
605
605
  for (n = ko(e, r), a = n.next; !(i = yr(a, n)).done; ) {
606
606
  if (o = ko(lm(i.value)), c = o.next, (l = yr(c, o)).done || (f = yr(c, o)).done || !yr(c, o).done) throw new ym("Expected sequence with length 2");
607
- Ze(t, { key: X(l.value), value: X(f.value) });
607
+ Je(t, { key: q(l.value), value: q(f.value) });
608
608
  }
609
- else for (var u in e) sm(e, u) && Ze(t, { key: u, value: X(e[u]) });
609
+ else for (var u in e) sm(e, u) && Je(t, { key: u, value: q(e[u]) });
610
610
  },
611
611
  parseQuery: function(e) {
612
612
  if (e)
613
613
  for (var t = this.entries, r = _o(e, "&"), n = 0, a, i; n < r.length; )
614
- a = r[n++], a.length && (i = _o(a, "="), Ze(t, {
614
+ a = r[n++], a.length && (i = _o(a, "="), Je(t, {
615
615
  key: Co(Sm(i)),
616
616
  value: Co(Eo(i, "="))
617
617
  }));
618
618
  },
619
619
  serialize: function() {
620
620
  for (var e = this.entries, t = [], r = 0, n; r < e.length; )
621
- n = e[r++], Ze(t, jo(n.key) + "=" + jo(n.value));
621
+ n = e[r++], Je(t, jo(n.key) + "=" + jo(n.value));
622
622
  return Eo(t, "&");
623
623
  },
624
624
  update: function() {
@@ -629,50 +629,50 @@ su.prototype = {
629
629
  }
630
630
  };
631
631
  var rn = function() {
632
- ru(this, wt);
632
+ ru(this, St);
633
633
  var t = arguments.length > 0 ? arguments[0] : void 0, r = iu(this, new su(t));
634
- Wt || (this.size = r.entries.length);
635
- }, wt = rn.prototype;
636
- am(wt, {
634
+ Vt || (this.size = r.entries.length);
635
+ }, St = rn.prototype;
636
+ am(St, {
637
637
  // `URLSearchParams.prototype.append` method
638
638
  // https://url.spec.whatwg.org/#dom-urlsearchparams-append
639
639
  append: function(t, r) {
640
- var n = ue(this);
641
- it(arguments.length, 2), Ze(n.entries, { key: X(t), value: X(r) }), Wt || this.length++, n.updateURL();
640
+ var n = le(this);
641
+ st(arguments.length, 2), Je(n.entries, { key: q(t), value: q(r) }), Vt || this.length++, n.updateURL();
642
642
  },
643
643
  // `URLSearchParams.prototype.delete` method
644
644
  // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
645
645
  delete: function(e) {
646
- for (var t = ue(this), r = it(arguments.length, 1), n = t.entries, a = X(e), i = r < 2 ? void 0 : arguments[1], o = i === void 0 ? i : X(i), c = 0; c < n.length; ) {
646
+ for (var t = le(this), r = st(arguments.length, 1), n = t.entries, a = q(e), i = r < 2 ? void 0 : arguments[1], o = i === void 0 ? i : q(i), c = 0; c < n.length; ) {
647
647
  var l = n[c];
648
648
  if (l.key === a && (o === void 0 || l.value === o)) {
649
649
  if (Oo(n, c, 1), o !== void 0) break;
650
650
  } else c++;
651
651
  }
652
- Wt || (this.size = n.length), t.updateURL();
652
+ Vt || (this.size = n.length), t.updateURL();
653
653
  },
654
654
  // `URLSearchParams.prototype.get` method
655
655
  // https://url.spec.whatwg.org/#dom-urlsearchparams-get
656
656
  get: function(t) {
657
- var r = ue(this).entries;
658
- it(arguments.length, 1);
659
- for (var n = X(t), a = 0; a < r.length; a++)
657
+ var r = le(this).entries;
658
+ st(arguments.length, 1);
659
+ for (var n = q(t), a = 0; a < r.length; a++)
660
660
  if (r[a].key === n) return r[a].value;
661
661
  return null;
662
662
  },
663
663
  // `URLSearchParams.prototype.getAll` method
664
664
  // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
665
665
  getAll: function(t) {
666
- var r = ue(this).entries;
667
- it(arguments.length, 1);
668
- for (var n = X(t), a = [], i = 0; i < r.length; i++)
669
- r[i].key === n && Ze(a, r[i].value);
666
+ var r = le(this).entries;
667
+ st(arguments.length, 1);
668
+ for (var n = q(t), a = [], i = 0; i < r.length; i++)
669
+ r[i].key === n && Je(a, r[i].value);
670
670
  return a;
671
671
  },
672
672
  // `URLSearchParams.prototype.has` method
673
673
  // https://url.spec.whatwg.org/#dom-urlsearchparams-has
674
674
  has: function(t) {
675
- for (var r = ue(this).entries, n = it(arguments.length, 1), a = X(t), i = n < 2 ? void 0 : arguments[1], o = i === void 0 ? i : X(i), c = 0; c < r.length; ) {
675
+ for (var r = le(this).entries, n = st(arguments.length, 1), a = q(t), i = n < 2 ? void 0 : arguments[1], o = i === void 0 ? i : q(i), c = 0; c < r.length; ) {
676
676
  var l = r[c++];
677
677
  if (l.key === a && (o === void 0 || l.value === o)) return !0;
678
678
  }
@@ -681,23 +681,23 @@ am(wt, {
681
681
  // `URLSearchParams.prototype.set` method
682
682
  // https://url.spec.whatwg.org/#dom-urlsearchparams-set
683
683
  set: function(t, r) {
684
- var n = ue(this);
685
- it(arguments.length, 1);
686
- for (var a = n.entries, i = !1, o = X(t), c = X(r), l = 0, f; l < a.length; l++)
684
+ var n = le(this);
685
+ st(arguments.length, 1);
686
+ for (var a = n.entries, i = !1, o = q(t), c = q(r), l = 0, f; l < a.length; l++)
687
687
  f = a[l], f.key === o && (i ? Oo(a, l--, 1) : (i = !0, f.value = c));
688
- i || Ze(a, { key: o, value: c }), Wt || (this.size = a.length), n.updateURL();
688
+ i || Je(a, { key: o, value: c }), Vt || (this.size = a.length), n.updateURL();
689
689
  },
690
690
  // `URLSearchParams.prototype.sort` method
691
691
  // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
692
692
  sort: function() {
693
- var t = ue(this);
693
+ var t = le(this);
694
694
  vm(t.entries, function(r, n) {
695
695
  return r.key > n.key ? 1 : -1;
696
696
  }), t.updateURL();
697
697
  },
698
698
  // `URLSearchParams.prototype.forEach` method
699
699
  forEach: function(t) {
700
- for (var r = ue(this).entries, n = cm(t, arguments.length > 1 ? arguments[1] : void 0), a = 0, i; a < r.length; )
700
+ for (var r = le(this).entries, n = cm(t, arguments.length > 1 ? arguments[1] : void 0), a = 0, i; a < r.length; )
701
701
  i = r[a++], n(i.value, i.key, this);
702
702
  },
703
703
  // `URLSearchParams.prototype.keys` method
@@ -713,28 +713,28 @@ am(wt, {
713
713
  return new An(this, "entries");
714
714
  }
715
715
  }, { enumerable: !0 });
716
- tu(wt, pm, wt.entries, { name: "entries" });
717
- tu(wt, "toString", function() {
718
- return ue(this).serialize();
716
+ tu(St, pm, St.entries, { name: "entries" });
717
+ tu(St, "toString", function() {
718
+ return le(this).serialize();
719
719
  }, { enumerable: !0 });
720
- Wt && nm(wt, "size", {
720
+ Vt && nm(St, "size", {
721
721
  get: function() {
722
- return ue(this).entries.length;
722
+ return le(this).entries.length;
723
723
  },
724
724
  configurable: !0,
725
725
  enumerable: !0
726
726
  });
727
- im(rn, _t);
727
+ im(rn, Ct);
728
728
  ka({ global: !0, constructor: !0, forced: !eu }, {
729
729
  URLSearchParams: rn
730
730
  });
731
- if (!eu && Cn(Vt)) {
732
- var _m = Ie(To.has), Rm = Ie(To.set), Ao = function(e) {
731
+ if (!eu && Cn(Zt)) {
732
+ var _m = $e(To.has), Rm = $e(To.set), Ao = function(e) {
733
733
  if (nu(e)) {
734
734
  var t = e.body, r;
735
- if (um(t) === _t)
736
- return r = e.headers ? new Vt(e.headers) : new Vt(), _m(r, "content-type") || Rm(r, "content-type", "application/x-www-form-urlencoded;charset=UTF-8"), fm(e, {
737
- body: $o(0, X(t)),
735
+ if (um(t) === Ct)
736
+ return r = e.headers ? new Zt(e.headers) : new Zt(), _m(r, "content-type") || Rm(r, "content-type", "application/x-www-form-urlencoded;charset=UTF-8"), fm(e, {
737
+ body: $o(0, q(t)),
738
738
  headers: $o(0, r)
739
739
  });
740
740
  }
@@ -755,8 +755,8 @@ if (!eu && Cn(Vt)) {
755
755
  }
756
756
  var Cm = {
757
757
  URLSearchParams: rn,
758
- getState: ue
759
- }, jm = Fe, nn = K, Lo = ze, Am = Ot, cu = URLSearchParams, an = cu.prototype, Lm = nn(an.append), xo = nn(an.delete), xm = nn(an.forEach), Um = nn([].push), fi = new cu("a=1&a=2&b=3");
758
+ getState: le
759
+ }, jm = He, nn = K, Lo = Be, Am = Rt, cu = URLSearchParams, an = cu.prototype, Lm = nn(an.append), xo = nn(an.delete), xm = nn(an.forEach), Um = nn([].push), fi = new cu("a=1&a=2&b=3");
760
760
  fi.delete("a", 1);
761
761
  fi.delete("b", void 0);
762
762
  fi + "" != "a=2" && jm(an, "delete", function(e) {
@@ -771,7 +771,7 @@ fi + "" != "a=2" && jm(an, "delete", function(e) {
771
771
  for (; c < f; )
772
772
  u = n[c++], u.key === a && u.value === i || Lm(this, u.key, u.value);
773
773
  }, { enumerable: !0, unsafe: !0 });
774
- var Nm = Fe, uu = K, Dm = ze, Mm = Ot, lu = URLSearchParams, di = lu.prototype, Fm = uu(di.getAll), zm = uu(di.has), Uo = new lu("a=1");
774
+ var Nm = He, uu = K, Dm = Be, Mm = Rt, lu = URLSearchParams, di = lu.prototype, Fm = uu(di.getAll), zm = uu(di.has), Uo = new lu("a=1");
775
775
  (Uo.has("a", 2) || !Uo.has("a", void 0)) && Nm(di, "has", function(t) {
776
776
  var r = arguments.length, n = r < 2 ? void 0 : arguments[1];
777
777
  if (r && n === void 0) return zm(this, t);
@@ -781,7 +781,7 @@ var Nm = Fe, uu = K, Dm = ze, Mm = Ot, lu = URLSearchParams, di = lu.prototype,
781
781
  if (a[o++] === i) return !0;
782
782
  return !1;
783
783
  }, { enumerable: !0, unsafe: !0 });
784
- var Hm = Y, Bm = K, Km = oi, Ta = URLSearchParams.prototype, Gm = Bm(Ta.forEach);
784
+ var Hm = J, Bm = K, Km = oi, Ta = URLSearchParams.prototype, Gm = Bm(Ta.forEach);
785
785
  Hm && !("size" in Ta) && Km(Ta, "size", {
786
786
  get: function() {
787
787
  var t = 0;
@@ -792,9 +792,9 @@ Hm && !("size" in Ta) && Km(Ta, "size", {
792
792
  configurable: !0,
793
793
  enumerable: !0
794
794
  });
795
- var Wm = q, fu = Wm, Vm = fu;
795
+ var Wm = Q, fu = Wm, Vm = fu;
796
796
  Vm.URLSearchParams;
797
- var hi = K, Zm = Za, Ym = ze, Jm = Yr, Xm = hi("".charAt), No = hi("".charCodeAt), qm = hi("".slice), Do = function(e) {
797
+ var hi = K, Zm = Za, Ym = Be, Jm = Yr, Xm = hi("".charAt), No = hi("".charCodeAt), qm = hi("".slice), Do = function(e) {
798
798
  return function(t, r) {
799
799
  var n = Ym(Jm(t)), a = Zm(r), i = n.length, o, c;
800
800
  return a < 0 || a >= i ? e ? "" : void 0 : (o = No(n, a), o < 55296 || o > 56319 || a + 1 === i || (c = No(n, a + 1)) < 56320 || c > 57343 ? e ? Xm(n, a) : o : e ? qm(n, a, a + 2) : (o - 55296 << 10) + (c - 56320) + 65536);
@@ -806,7 +806,7 @@ var hi = K, Zm = Za, Ym = ze, Jm = Yr, Xm = hi("".charAt), No = hi("".charCodeAt
806
806
  // `String.prototype.at` method
807
807
  // https://github.com/mathiasbynens/String.prototype.at
808
808
  charAt: Do(!0)
809
- }, Qm = du.charAt, eg = ze, hu = ir, tg = Vc, Mo = ai, vu = "String Iterator", rg = hu.set, ng = hu.getterFor(vu);
809
+ }, Qm = du.charAt, eg = Be, hu = or, tg = Vc, Mo = ai, vu = "String Iterator", rg = hu.set, ng = hu.getterFor(vu);
810
810
  tg(String, "String", function(e) {
811
811
  rg(this, {
812
812
  type: vu,
@@ -817,8 +817,8 @@ tg(String, "String", function(e) {
817
817
  var t = ng(this), r = t.string, n = t.index, a;
818
818
  return n >= r.length ? Mo(void 0, !0) : (a = Qm(r, n), t.index += a.length, Mo(a, !1));
819
819
  });
820
- var Fo = Y, ag = K, ig = ke, og = re, xn = Oc, sg = ni, cg = ei, ug = Jr, lg = dc, ot = Object.assign, zo = Object.defineProperty, fg = ag([].concat), dg = !ot || og(function() {
821
- if (Fo && ot({ b: 1 }, ot(zo({}, "a", {
820
+ var Fo = J, ag = K, ig = Pe, og = ne, xn = Oc, sg = ni, cg = ei, ug = Jr, lg = dc, ct = Object.assign, zo = Object.defineProperty, fg = ag([].concat), dg = !ct || og(function() {
821
+ if (Fo && ct({ b: 1 }, ct(zo({}, "a", {
822
822
  enumerable: !0,
823
823
  get: function() {
824
824
  zo(this, "b", {
@@ -830,13 +830,13 @@ var Fo = Y, ag = K, ig = ke, og = re, xn = Oc, sg = ni, cg = ei, ug = Jr, lg = d
830
830
  var e = {}, t = {}, r = Symbol("assign detection"), n = "abcdefghijklmnopqrst";
831
831
  return e[r] = 7, n.split("").forEach(function(a) {
832
832
  t[a] = a;
833
- }), ot({}, e)[r] !== 7 || xn(ot({}, t)).join("") !== n;
833
+ }), ct({}, e)[r] !== 7 || xn(ct({}, t)).join("") !== n;
834
834
  }) ? function(t, r) {
835
835
  for (var n = ug(t), a = arguments.length, i = 1, o = sg.f, c = cg.f; a > i; )
836
836
  for (var l = lg(arguments[i++]), f = o ? fg(xn(l), o(l)) : xn(l), u = f.length, s = 0, d; u > s; )
837
837
  d = f[s++], (!Fo || ig(c, l, d)) && (n[d] = l[d]);
838
838
  return n;
839
- } : ot, hg = ke, Ho = Me, vg = Va, pg = function(e, t, r) {
839
+ } : ct, hg = Pe, Ho = ze, vg = Va, pg = function(e, t, r) {
840
840
  var n, a;
841
841
  Ho(e);
842
842
  try {
@@ -851,16 +851,16 @@ var Fo = Y, ag = K, ig = ke, og = re, xn = Oc, sg = ni, cg = ei, ug = Jr, lg = d
851
851
  if (t === "throw") throw r;
852
852
  if (a) throw n;
853
853
  return Ho(n), r;
854
- }, mg = Me, gg = pg, yg = function(e, t, r, n) {
854
+ }, mg = ze, gg = pg, yg = function(e, t, r, n) {
855
855
  try {
856
856
  return n ? t(mg(r)[0], r[1]) : t(r);
857
857
  } catch (a) {
858
858
  gg(e, "throw", a);
859
859
  }
860
- }, wg = fe, bg = nr, Sg = wg("iterator"), Ig = Array.prototype, $g = function(e) {
860
+ }, wg = de, bg = ar, Sg = wg("iterator"), Ig = Array.prototype, $g = function(e) {
861
861
  return e !== void 0 && (bg.Array === e || Ig[Sg] === e);
862
- }, kg = K, Pg = re, pu = Z, Tg = en, Eg = Tt, Og = Nc, mu = function() {
863
- }, gu = Eg("Reflect", "construct"), vi = /^\s*(?:class|function)\b/, _g = kg(vi.exec), Rg = !vi.test(mu), Ut = function(t) {
862
+ }, kg = K, Pg = ne, pu = Y, Tg = en, Eg = Ot, Og = Nc, mu = function() {
863
+ }, gu = Eg("Reflect", "construct"), vi = /^\s*(?:class|function)\b/, _g = kg(vi.exec), Rg = !vi.test(mu), Nt = function(t) {
864
864
  if (!pu(t)) return !1;
865
865
  try {
866
866
  return gu(mu, [], t), !0;
@@ -884,12 +884,12 @@ var Fo = Y, ag = K, ig = ke, og = re, xn = Oc, sg = ni, cg = ei, ug = Jr, lg = d
884
884
  yu.sham = !0;
885
885
  var Cg = !gu || Pg(function() {
886
886
  var e;
887
- return Ut(Ut.call) || !Ut(Object) || !Ut(function() {
887
+ return Nt(Nt.call) || !Nt(Object) || !Nt(function() {
888
888
  e = !0;
889
889
  }) || e;
890
- }) ? yu : Ut, jg = Y, Ag = $e, Lg = ar, xg = function(e, t, r) {
890
+ }) ? yu : Nt, jg = J, Ag = ke, Lg = ir, xg = function(e, t, r) {
891
891
  jg ? Ag.f(e, t, Lg(0, r)) : e[t] = r;
892
- }, Ug = si, Ng = ke, Dg = Jr, Mg = yg, Fg = $g, zg = Cg, Hg = Tc, Bo = xg, Bg = qc, Kg = ci, Ko = Array, Gg = function(t) {
892
+ }, Ug = si, Ng = Pe, Dg = Jr, Mg = yg, Fg = $g, zg = Cg, Hg = Tc, Bo = xg, Bg = qc, Kg = ci, Ko = Array, Gg = function(t) {
893
893
  var r = Dg(t), n = zg(this), a = arguments.length, i = a > 1 ? arguments[1] : void 0, o = i !== void 0;
894
894
  o && (i = Ug(i, a > 2 ? arguments[2] : void 0));
895
895
  var c = Kg(r), l = 0, f, u, s, d, h, m;
@@ -900,48 +900,48 @@ var Cg = !gu || Pg(function() {
900
900
  for (f = Hg(r), u = n ? new this(f) : Ko(f); f > l; l++)
901
901
  m = o ? i(r[l], l) : r[l], Bo(u, l, m);
902
902
  return u.length = l, u;
903
- }, nt = K, Un = 2147483647, Zt = 36, wu = 1, Ea = 26, Wg = 38, Vg = 700, Zg = 72, Yg = 128, Jg = "-", Xg = /[^\0-\u007E]/, bu = /[.\u3002\uFF0E\uFF61]/g, Go = "Overflow: input needs wider integers to process", Nn = Zt - wu, Wo = RangeError, qg = nt(bu.exec), ht = Math.floor, Dn = String.fromCharCode, Vo = nt("".charCodeAt), Su = nt([].join), xe = nt([].push), Qg = nt("".replace), ey = nt("".split), ty = nt("".toLowerCase), ry = function(e) {
903
+ }, it = K, Un = 2147483647, Yt = 36, wu = 1, Ea = 26, Wg = 38, Vg = 700, Zg = 72, Yg = 128, Jg = "-", Xg = /[^\0-\u007E]/, bu = /[.\u3002\uFF0E\uFF61]/g, Go = "Overflow: input needs wider integers to process", Nn = Yt - wu, Wo = RangeError, qg = it(bu.exec), pt = Math.floor, Dn = String.fromCharCode, Vo = it("".charCodeAt), Su = it([].join), Ne = it([].push), Qg = it("".replace), ey = it("".split), ty = it("".toLowerCase), ry = function(e) {
904
904
  for (var t = [], r = 0, n = e.length; r < n; ) {
905
905
  var a = Vo(e, r++);
906
906
  if (a >= 55296 && a <= 56319 && r < n) {
907
907
  var i = Vo(e, r++);
908
- (i & 64512) === 56320 ? xe(t, ((a & 1023) << 10) + (i & 1023) + 65536) : (xe(t, a), r--);
908
+ (i & 64512) === 56320 ? Ne(t, ((a & 1023) << 10) + (i & 1023) + 65536) : (Ne(t, a), r--);
909
909
  } else
910
- xe(t, a);
910
+ Ne(t, a);
911
911
  }
912
912
  return t;
913
913
  }, Zo = function(e) {
914
914
  return e + 22 + 75 * (e < 26);
915
915
  }, ny = function(e, t, r) {
916
916
  var n = 0;
917
- for (e = r ? ht(e / Vg) : e >> 1, e += ht(e / t); e > Nn * Ea >> 1; )
918
- e = ht(e / Nn), n += Zt;
919
- return ht(n + (Nn + 1) * e / (e + Wg));
917
+ for (e = r ? pt(e / Vg) : e >> 1, e += pt(e / t); e > Nn * Ea >> 1; )
918
+ e = pt(e / Nn), n += Yt;
919
+ return pt(n + (Nn + 1) * e / (e + Wg));
920
920
  }, ay = function(e) {
921
921
  var t = [];
922
922
  e = ry(e);
923
923
  var r = e.length, n = Yg, a = 0, i = Zg, o, c;
924
924
  for (o = 0; o < e.length; o++)
925
- c = e[o], c < 128 && xe(t, Dn(c));
925
+ c = e[o], c < 128 && Ne(t, Dn(c));
926
926
  var l = t.length, f = l;
927
- for (l && xe(t, Jg); f < r; ) {
927
+ for (l && Ne(t, Jg); f < r; ) {
928
928
  var u = Un;
929
929
  for (o = 0; o < e.length; o++)
930
930
  c = e[o], c >= n && c < u && (u = c);
931
931
  var s = f + 1;
932
- if (u - n > ht((Un - a) / s))
932
+ if (u - n > pt((Un - a) / s))
933
933
  throw new Wo(Go);
934
934
  for (a += (u - n) * s, n = u, o = 0; o < e.length; o++) {
935
935
  if (c = e[o], c < n && ++a > Un)
936
936
  throw new Wo(Go);
937
937
  if (c === n) {
938
- for (var d = a, h = Zt; ; ) {
938
+ for (var d = a, h = Yt; ; ) {
939
939
  var m = h <= i ? wu : h >= i + Ea ? Ea : h - i;
940
940
  if (d < m) break;
941
- var S = d - m, g = Zt - m;
942
- xe(t, Dn(Zo(m + S % g))), d = ht(S / g), h += Zt;
941
+ var S = d - m, g = Yt - m;
942
+ Ne(t, Dn(Zo(m + S % g))), d = pt(S / g), h += Yt;
943
943
  }
944
- xe(t, Dn(Zo(d))), i = ny(a, s, f === l), a = 0, f++;
944
+ Ne(t, Dn(Zo(d))), i = ny(a, s, f === l), a = 0, f++;
945
945
  }
946
946
  }
947
947
  a++, n++;
@@ -950,20 +950,20 @@ var Cg = !gu || Pg(function() {
950
950
  }, iy = function(e) {
951
951
  var t = [], r = ey(Qg(ty(e), bu, "."), "."), n, a;
952
952
  for (n = 0; n < r.length; n++)
953
- a = r[n], xe(t, qg(Xg, a) ? "xn--" + ay(a) : a);
953
+ a = r[n], Ne(t, qg(Xg, a) ? "xn--" + ay(a) : a);
954
954
  return Su(t, ".");
955
- }, oy = Et, pi = Y, sy = Qr, mi = q, Yo = si, de = K, zr = Fe, oe = oi, cy = Jc, Oa = ye, gi = dg, st = Gg, he = Qc, uy = du.codeAt, ly = iy, Te = ze, fy = sr, dy = Ot, Iu = Cm, $u = ir, hy = $u.set, Hr = $u.getterFor("URL"), vy = Iu.URLSearchParams, py = Iu.getState, Nt = mi.URL, _a = mi.TypeError, Br = mi.parseInt, my = Math.floor, Jo = Math.pow, le = de("".charAt), me = de(/./.exec), Ht = de([].join), gy = de(1 .toString), yy = de([].pop), lt = de([].push), Mn = de("".replace), wy = de([].shift), by = de("".split), Yt = de("".slice), Kr = de("".toLowerCase), Sy = de([].unshift), Iy = "Invalid authority", Fn = "Invalid scheme", Be = "Invalid host", Xo = "Invalid port", ku = /[a-z]/i, $y = /[\d+-.a-z]/i, Ra = /\d/, ky = /^0x/i, Py = /^[0-7]+$/, Ty = /^\d+$/, Pu = /^[\da-f]+$/i, Ey = /[\0\t\n\r #%/:<>?@[\\\]^|]/, Oy = /[\0\t\n\r #/:<>?@[\\\]^|]/, _y = /^[\u0000-\u0020]+/, Ry = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/, Cy = /[\t\n\r]/g, se, jy = function(e) {
955
+ }, oy = _t, pi = J, sy = Qr, mi = Q, Yo = si, he = K, zr = He, se = oi, cy = Jc, Oa = we, gi = dg, ut = Gg, ve = Qc, uy = du.codeAt, ly = iy, Ee = Be, fy = cr, dy = Rt, Iu = Cm, $u = or, hy = $u.set, Hr = $u.getterFor("URL"), vy = Iu.URLSearchParams, py = Iu.getState, Dt = mi.URL, _a = mi.TypeError, Br = mi.parseInt, my = Math.floor, Jo = Math.pow, fe = he("".charAt), ge = he(/./.exec), Bt = he([].join), gy = he(1 .toString), yy = he([].pop), dt = he([].push), Mn = he("".replace), wy = he([].shift), by = he("".split), Jt = he("".slice), Kr = he("".toLowerCase), Sy = he([].unshift), Iy = "Invalid authority", Fn = "Invalid scheme", Ge = "Invalid host", Xo = "Invalid port", ku = /[a-z]/i, $y = /[\d+-.a-z]/i, Ra = /\d/, ky = /^0x/i, Py = /^[0-7]+$/, Ty = /^\d+$/, Pu = /^[\da-f]+$/i, Ey = /[\0\t\n\r #%/:<>?@[\\\]^|]/, Oy = /[\0\t\n\r #/:<>?@[\\\]^|]/, _y = /^[\u0000-\u0020]+/, Ry = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/, Cy = /[\t\n\r]/g, ce, jy = function(e) {
956
956
  var t = by(e, "."), r, n, a, i, o, c, l;
957
957
  if (t.length && t[t.length - 1] === "" && t.length--, r = t.length, r > 4) return e;
958
958
  for (n = [], a = 0; a < r; a++) {
959
959
  if (i = t[a], i === "") return e;
960
- if (o = 10, i.length > 1 && le(i, 0) === "0" && (o = me(ky, i) ? 16 : 8, i = Yt(i, o === 8 ? 1 : 2)), i === "")
960
+ if (o = 10, i.length > 1 && fe(i, 0) === "0" && (o = ge(ky, i) ? 16 : 8, i = Jt(i, o === 8 ? 1 : 2)), i === "")
961
961
  c = 0;
962
962
  else {
963
- if (!me(o === 10 ? Ty : o === 8 ? Py : Pu, i)) return e;
963
+ if (!ge(o === 10 ? Ty : o === 8 ? Py : Pu, i)) return e;
964
964
  c = Br(i, o);
965
965
  }
966
- lt(n, c);
966
+ dt(n, c);
967
967
  }
968
968
  for (a = 0; a < r; a++)
969
969
  if (c = n[a], a === r - 1) {
@@ -974,10 +974,10 @@ var Cg = !gu || Pg(function() {
974
974
  return l;
975
975
  }, Ay = function(e) {
976
976
  var t = [0, 0, 0, 0, 0, 0, 0, 0], r = 0, n = null, a = 0, i, o, c, l, f, u, s, d = function() {
977
- return le(e, a);
977
+ return fe(e, a);
978
978
  };
979
979
  if (d() === ":") {
980
- if (le(e, 1) !== ":") return;
980
+ if (fe(e, 1) !== ":") return;
981
981
  a += 2, r++, n = r;
982
982
  }
983
983
  for (; d(); ) {
@@ -987,7 +987,7 @@ var Cg = !gu || Pg(function() {
987
987
  a++, r++, n = r;
988
988
  continue;
989
989
  }
990
- for (i = o = 0; o < 4 && me(Pu, d()); )
990
+ for (i = o = 0; o < 4 && ge(Pu, d()); )
991
991
  i = i * 16 + Br(d(), 16), a++, o++;
992
992
  if (d() === ".") {
993
993
  if (o === 0 || (a -= o, r > 6)) return;
@@ -995,8 +995,8 @@ var Cg = !gu || Pg(function() {
995
995
  if (l = null, c > 0)
996
996
  if (d() === "." && c < 4) a++;
997
997
  else return;
998
- if (!me(Ra, d())) return;
999
- for (; me(Ra, d()); ) {
998
+ if (!ge(Ra, d())) return;
999
+ for (; ge(Ra, d()); ) {
1000
1000
  if (f = Br(d(), 10), l === null) l = f;
1001
1001
  else {
1002
1002
  if (l === 0) return;
@@ -1023,12 +1023,12 @@ var Cg = !gu || Pg(function() {
1023
1023
  for (var t = null, r = 1, n = null, a = 0, i = 0; i < 8; i++)
1024
1024
  e[i] !== 0 ? (a > r && (t = n, r = a), n = null, a = 0) : (n === null && (n = i), ++a);
1025
1025
  return a > r && (t = n, r = a), t;
1026
- }, Dt = function(e) {
1026
+ }, Mt = function(e) {
1027
1027
  var t, r, n, a;
1028
1028
  if (typeof e == "number") {
1029
1029
  for (t = [], r = 0; r < 4; r++)
1030
1030
  Sy(t, e % 256), e = my(e / 256);
1031
- return Ht(t, ".");
1031
+ return Bt(t, ".");
1032
1032
  } else if (typeof e == "object") {
1033
1033
  for (t = "", n = Ly(e), r = 0; r < 8; r++)
1034
1034
  a && e[r] === 0 || (a && (a = !1), n === r ? (t += r ? ":" : "::", a = !0) : (t += gy(e[r], 16), r < 7 && (t += ":")));
@@ -1057,7 +1057,7 @@ var Cg = !gu || Pg(function() {
1057
1057
  "]": 1,
1058
1058
  "^": 1,
1059
1059
  "|": 1
1060
- }), Ce = function(e, t) {
1060
+ }), Ae = function(e, t) {
1061
1061
  var r = uy(e, 0);
1062
1062
  return r > 32 && r < 127 && !Oa(t, e) ? e : encodeURIComponent(e);
1063
1063
  }, br = {
@@ -1067,18 +1067,18 @@ var Cg = !gu || Pg(function() {
1067
1067
  https: 443,
1068
1068
  ws: 80,
1069
1069
  wss: 443
1070
- }, Bt = function(e, t) {
1070
+ }, Kt = function(e, t) {
1071
1071
  var r;
1072
- return e.length === 2 && me(ku, le(e, 0)) && ((r = le(e, 1)) === ":" || !t && r === "|");
1072
+ return e.length === 2 && ge(ku, fe(e, 0)) && ((r = fe(e, 1)) === ":" || !t && r === "|");
1073
1073
  }, qo = function(e) {
1074
1074
  var t;
1075
- return e.length > 1 && Bt(Yt(e, 0, 2)) && (e.length === 2 || (t = le(e, 2)) === "/" || t === "\\" || t === "?" || t === "#");
1075
+ return e.length > 1 && Kt(Jt(e, 0, 2)) && (e.length === 2 || (t = fe(e, 2)) === "/" || t === "\\" || t === "?" || t === "#");
1076
1076
  }, xy = function(e) {
1077
1077
  return e === "." || Kr(e) === "%2e";
1078
1078
  }, Uy = function(e) {
1079
1079
  return e = Kr(e), e === ".." || e === "%2e." || e === ".%2e" || e === "%2e%2e";
1080
- }, Hn = {}, Qo = {}, Bn = {}, es = {}, ts = {}, Kn = {}, rs = {}, ns = {}, Sr = {}, Ir = {}, Gn = {}, Wn = {}, Vn = {}, Zn = {}, as = {}, Yn = {}, ct = {}, be = {}, is = {}, Ke = {}, Pe = {}, yi = function(e, t, r) {
1081
- var n = Te(e), a, i, o;
1080
+ }, Hn = {}, Qo = {}, Bn = {}, es = {}, ts = {}, Kn = {}, rs = {}, ns = {}, Sr = {}, Ir = {}, Gn = {}, Wn = {}, Vn = {}, Zn = {}, as = {}, Yn = {}, lt = {}, Se = {}, is = {}, We = {}, Te = {}, yi = function(e, t, r) {
1081
+ var n = Ee(e), a, i, o;
1082
1082
  if (t) {
1083
1083
  if (i = this.parse(n), i) throw new _a(i);
1084
1084
  this.searchParams = null;
@@ -1093,10 +1093,10 @@ yi.prototype = {
1093
1093
  // eslint-disable-next-line max-statements -- TODO
1094
1094
  parse: function(e, t, r) {
1095
1095
  var n = this, a = t || Hn, i = 0, o = "", c = !1, l = !1, f = !1, u, s, d, h;
1096
- for (e = Te(e), t || (n.scheme = "", n.username = "", n.password = "", n.host = null, n.port = null, n.path = [], n.query = null, n.fragment = null, n.cannotBeABaseURL = !1, e = Mn(e, _y, ""), e = Mn(e, Ry, "$1")), e = Mn(e, Cy, ""), u = st(e); i <= u.length; ) {
1096
+ for (e = Ee(e), t || (n.scheme = "", n.username = "", n.password = "", n.host = null, n.port = null, n.path = [], n.query = null, n.fragment = null, n.cannotBeABaseURL = !1, e = Mn(e, _y, ""), e = Mn(e, Ry, "$1")), e = Mn(e, Cy, ""), u = ut(e); i <= u.length; ) {
1097
1097
  switch (s = u[i], a) {
1098
1098
  case Hn:
1099
- if (s && me(ku, s))
1099
+ if (s && ge(ku, s))
1100
1100
  o += Kr(s), a = Qo;
1101
1101
  else {
1102
1102
  if (t)
@@ -1106,7 +1106,7 @@ yi.prototype = {
1106
1106
  }
1107
1107
  break;
1108
1108
  case Qo:
1109
- if (s && (me($y, s) || s === "+" || s === "-" || s === "."))
1109
+ if (s && (ge($y, s) || s === "+" || s === "-" || s === "."))
1110
1110
  o += Kr(s);
1111
1111
  else if (s === ":") {
1112
1112
  if (t && (n.isSpecial() !== Oa(br, o) || o === "file" && (n.includesCredentials() || n.port !== null) || n.scheme === "file" && !n.host)) return;
@@ -1114,7 +1114,7 @@ yi.prototype = {
1114
1114
  n.isSpecial() && br[n.scheme] === n.port && (n.port = null);
1115
1115
  return;
1116
1116
  }
1117
- o = "", n.scheme === "file" ? a = Zn : n.isSpecial() && r && r.scheme === n.scheme ? a = es : n.isSpecial() ? a = ns : u[i + 1] === "/" ? (a = ts, i++) : (n.cannotBeABaseURL = !0, lt(n.path, ""), a = is);
1117
+ o = "", n.scheme === "file" ? a = Zn : n.isSpecial() && r && r.scheme === n.scheme ? a = es : n.isSpecial() ? a = ns : u[i + 1] === "/" ? (a = ts, i++) : (n.cannotBeABaseURL = !0, dt(n.path, ""), a = is);
1118
1118
  } else {
1119
1119
  if (t)
1120
1120
  return Fn;
@@ -1125,7 +1125,7 @@ yi.prototype = {
1125
1125
  case Bn:
1126
1126
  if (!r || r.cannotBeABaseURL && s !== "#") return Fn;
1127
1127
  if (r.cannotBeABaseURL && s === "#") {
1128
- n.scheme = r.scheme, n.path = he(r.path), n.query = r.query, n.fragment = "", n.cannotBeABaseURL = !0, a = Pe;
1128
+ n.scheme = r.scheme, n.path = ve(r.path), n.query = r.query, n.fragment = "", n.cannotBeABaseURL = !0, a = Te;
1129
1129
  break;
1130
1130
  }
1131
1131
  a = r.scheme === "file" ? Zn : Kn;
@@ -1143,20 +1143,20 @@ yi.prototype = {
1143
1143
  a = Ir;
1144
1144
  break;
1145
1145
  } else {
1146
- a = be;
1146
+ a = Se;
1147
1147
  continue;
1148
1148
  }
1149
1149
  case Kn:
1150
- if (n.scheme = r.scheme, s === se)
1151
- n.username = r.username, n.password = r.password, n.host = r.host, n.port = r.port, n.path = he(r.path), n.query = r.query;
1150
+ if (n.scheme = r.scheme, s === ce)
1151
+ n.username = r.username, n.password = r.password, n.host = r.host, n.port = r.port, n.path = ve(r.path), n.query = r.query;
1152
1152
  else if (s === "/" || s === "\\" && n.isSpecial())
1153
1153
  a = rs;
1154
1154
  else if (s === "?")
1155
- n.username = r.username, n.password = r.password, n.host = r.host, n.port = r.port, n.path = he(r.path), n.query = "", a = Ke;
1155
+ n.username = r.username, n.password = r.password, n.host = r.host, n.port = r.port, n.path = ve(r.path), n.query = "", a = We;
1156
1156
  else if (s === "#")
1157
- n.username = r.username, n.password = r.password, n.host = r.host, n.port = r.port, n.path = he(r.path), n.query = r.query, n.fragment = "", a = Pe;
1157
+ n.username = r.username, n.password = r.password, n.host = r.host, n.port = r.port, n.path = ve(r.path), n.query = r.query, n.fragment = "", a = Te;
1158
1158
  else {
1159
- n.username = r.username, n.password = r.password, n.host = r.host, n.port = r.port, n.path = he(r.path), n.path.length--, a = be;
1159
+ n.username = r.username, n.password = r.password, n.host = r.host, n.port = r.port, n.path = ve(r.path), n.path.length--, a = Se;
1160
1160
  continue;
1161
1161
  }
1162
1162
  break;
@@ -1166,12 +1166,12 @@ yi.prototype = {
1166
1166
  else if (s === "/")
1167
1167
  a = Ir;
1168
1168
  else {
1169
- n.username = r.username, n.password = r.password, n.host = r.host, n.port = r.port, a = be;
1169
+ n.username = r.username, n.password = r.password, n.host = r.host, n.port = r.port, a = Se;
1170
1170
  continue;
1171
1171
  }
1172
1172
  break;
1173
1173
  case ns:
1174
- if (a = Sr, s !== "/" || le(o, i + 1) !== "/") continue;
1174
+ if (a = Sr, s !== "/" || fe(o, i + 1) !== "/") continue;
1175
1175
  i++;
1176
1176
  break;
1177
1177
  case Sr:
@@ -1182,20 +1182,20 @@ yi.prototype = {
1182
1182
  break;
1183
1183
  case Ir:
1184
1184
  if (s === "@") {
1185
- c && (o = "%40" + o), c = !0, d = st(o);
1185
+ c && (o = "%40" + o), c = !0, d = ut(o);
1186
1186
  for (var m = 0; m < d.length; m++) {
1187
1187
  var S = d[m];
1188
1188
  if (S === ":" && !f) {
1189
1189
  f = !0;
1190
1190
  continue;
1191
1191
  }
1192
- var g = Ce(S, zn);
1192
+ var g = Ae(S, zn);
1193
1193
  f ? n.password += g : n.username += g;
1194
1194
  }
1195
1195
  o = "";
1196
- } else if (s === se || s === "/" || s === "?" || s === "#" || s === "\\" && n.isSpecial()) {
1196
+ } else if (s === ce || s === "/" || s === "?" || s === "#" || s === "\\" && n.isSpecial()) {
1197
1197
  if (c && o === "") return Iy;
1198
- i -= st(o).length + 1, o = "", a = Gn;
1198
+ i -= ut(o).length + 1, o = "", a = Gn;
1199
1199
  } else o += s;
1200
1200
  break;
1201
1201
  case Gn:
@@ -1204,29 +1204,29 @@ yi.prototype = {
1204
1204
  a = Yn;
1205
1205
  continue;
1206
1206
  } else if (s === ":" && !l) {
1207
- if (o === "") return Be;
1207
+ if (o === "") return Ge;
1208
1208
  if (h = n.parseHost(o), h) return h;
1209
1209
  if (o = "", a = Vn, t === Wn) return;
1210
- } else if (s === se || s === "/" || s === "?" || s === "#" || s === "\\" && n.isSpecial()) {
1211
- if (n.isSpecial() && o === "") return Be;
1210
+ } else if (s === ce || s === "/" || s === "?" || s === "#" || s === "\\" && n.isSpecial()) {
1211
+ if (n.isSpecial() && o === "") return Ge;
1212
1212
  if (t && o === "" && (n.includesCredentials() || n.port !== null)) return;
1213
1213
  if (h = n.parseHost(o), h) return h;
1214
- if (o = "", a = ct, t) return;
1214
+ if (o = "", a = lt, t) return;
1215
1215
  continue;
1216
1216
  } else
1217
1217
  s === "[" ? l = !0 : s === "]" && (l = !1), o += s;
1218
1218
  break;
1219
1219
  case Vn:
1220
- if (me(Ra, s))
1220
+ if (ge(Ra, s))
1221
1221
  o += s;
1222
- else if (s === se || s === "/" || s === "?" || s === "#" || s === "\\" && n.isSpecial() || t) {
1222
+ else if (s === ce || s === "/" || s === "?" || s === "#" || s === "\\" && n.isSpecial() || t) {
1223
1223
  if (o !== "") {
1224
1224
  var $ = Br(o, 10);
1225
1225
  if ($ > 65535) return Xo;
1226
1226
  n.port = n.isSpecial() && $ === br[n.scheme] ? null : $, o = "";
1227
1227
  }
1228
1228
  if (t) return;
1229
- a = ct;
1229
+ a = lt;
1230
1230
  continue;
1231
1231
  } else return Xo;
1232
1232
  break;
@@ -1234,21 +1234,21 @@ yi.prototype = {
1234
1234
  if (n.scheme = "file", s === "/" || s === "\\") a = as;
1235
1235
  else if (r && r.scheme === "file")
1236
1236
  switch (s) {
1237
- case se:
1238
- n.host = r.host, n.path = he(r.path), n.query = r.query;
1237
+ case ce:
1238
+ n.host = r.host, n.path = ve(r.path), n.query = r.query;
1239
1239
  break;
1240
1240
  case "?":
1241
- n.host = r.host, n.path = he(r.path), n.query = "", a = Ke;
1241
+ n.host = r.host, n.path = ve(r.path), n.query = "", a = We;
1242
1242
  break;
1243
1243
  case "#":
1244
- n.host = r.host, n.path = he(r.path), n.query = r.query, n.fragment = "", a = Pe;
1244
+ n.host = r.host, n.path = ve(r.path), n.query = r.query, n.fragment = "", a = Te;
1245
1245
  break;
1246
1246
  default:
1247
- qo(Ht(he(u, i), "")) || (n.host = r.host, n.path = he(r.path), n.shortenPath()), a = be;
1247
+ qo(Bt(ve(u, i), "")) || (n.host = r.host, n.path = ve(r.path), n.shortenPath()), a = Se;
1248
1248
  continue;
1249
1249
  }
1250
1250
  else {
1251
- a = be;
1251
+ a = Se;
1252
1252
  continue;
1253
1253
  }
1254
1254
  break;
@@ -1257,50 +1257,50 @@ yi.prototype = {
1257
1257
  a = Yn;
1258
1258
  break;
1259
1259
  }
1260
- r && r.scheme === "file" && !qo(Ht(he(u, i), "")) && (Bt(r.path[0], !0) ? lt(n.path, r.path[0]) : n.host = r.host), a = be;
1260
+ r && r.scheme === "file" && !qo(Bt(ve(u, i), "")) && (Kt(r.path[0], !0) ? dt(n.path, r.path[0]) : n.host = r.host), a = Se;
1261
1261
  continue;
1262
1262
  case Yn:
1263
- if (s === se || s === "/" || s === "\\" || s === "?" || s === "#") {
1264
- if (!t && Bt(o))
1265
- a = be;
1263
+ if (s === ce || s === "/" || s === "\\" || s === "?" || s === "#") {
1264
+ if (!t && Kt(o))
1265
+ a = Se;
1266
1266
  else if (o === "") {
1267
1267
  if (n.host = "", t) return;
1268
- a = ct;
1268
+ a = lt;
1269
1269
  } else {
1270
1270
  if (h = n.parseHost(o), h) return h;
1271
1271
  if (n.host === "localhost" && (n.host = ""), t) return;
1272
- o = "", a = ct;
1272
+ o = "", a = lt;
1273
1273
  }
1274
1274
  continue;
1275
1275
  } else o += s;
1276
1276
  break;
1277
- case ct:
1277
+ case lt:
1278
1278
  if (n.isSpecial()) {
1279
- if (a = be, s !== "/" && s !== "\\") continue;
1279
+ if (a = Se, s !== "/" && s !== "\\") continue;
1280
1280
  } else if (!t && s === "?")
1281
- n.query = "", a = Ke;
1281
+ n.query = "", a = We;
1282
1282
  else if (!t && s === "#")
1283
- n.fragment = "", a = Pe;
1284
- else if (s !== se && (a = be, s !== "/"))
1283
+ n.fragment = "", a = Te;
1284
+ else if (s !== ce && (a = Se, s !== "/"))
1285
1285
  continue;
1286
1286
  break;
1287
- case be:
1288
- if (s === se || s === "/" || s === "\\" && n.isSpecial() || !t && (s === "?" || s === "#")) {
1289
- if (Uy(o) ? (n.shortenPath(), s !== "/" && !(s === "\\" && n.isSpecial()) && lt(n.path, "")) : xy(o) ? s !== "/" && !(s === "\\" && n.isSpecial()) && lt(n.path, "") : (n.scheme === "file" && !n.path.length && Bt(o) && (n.host && (n.host = ""), o = le(o, 0) + ":"), lt(n.path, o)), o = "", n.scheme === "file" && (s === se || s === "?" || s === "#"))
1287
+ case Se:
1288
+ if (s === ce || s === "/" || s === "\\" && n.isSpecial() || !t && (s === "?" || s === "#")) {
1289
+ if (Uy(o) ? (n.shortenPath(), s !== "/" && !(s === "\\" && n.isSpecial()) && dt(n.path, "")) : xy(o) ? s !== "/" && !(s === "\\" && n.isSpecial()) && dt(n.path, "") : (n.scheme === "file" && !n.path.length && Kt(o) && (n.host && (n.host = ""), o = fe(o, 0) + ":"), dt(n.path, o)), o = "", n.scheme === "file" && (s === ce || s === "?" || s === "#"))
1290
1290
  for (; n.path.length > 1 && n.path[0] === ""; )
1291
1291
  wy(n.path);
1292
- s === "?" ? (n.query = "", a = Ke) : s === "#" && (n.fragment = "", a = Pe);
1292
+ s === "?" ? (n.query = "", a = We) : s === "#" && (n.fragment = "", a = Te);
1293
1293
  } else
1294
- o += Ce(s, Eu);
1294
+ o += Ae(s, Eu);
1295
1295
  break;
1296
1296
  case is:
1297
- s === "?" ? (n.query = "", a = Ke) : s === "#" ? (n.fragment = "", a = Pe) : s !== se && (n.path[0] += Ce(s, Lr));
1297
+ s === "?" ? (n.query = "", a = We) : s === "#" ? (n.fragment = "", a = Te) : s !== ce && (n.path[0] += Ae(s, Lr));
1298
1298
  break;
1299
- case Ke:
1300
- !t && s === "#" ? (n.fragment = "", a = Pe) : s !== se && (s === "'" && n.isSpecial() ? n.query += "%27" : s === "#" ? n.query += "%23" : n.query += Ce(s, Lr));
1299
+ case We:
1300
+ !t && s === "#" ? (n.fragment = "", a = Te) : s !== ce && (s === "'" && n.isSpecial() ? n.query += "%27" : s === "#" ? n.query += "%23" : n.query += Ae(s, Lr));
1301
1301
  break;
1302
- case Pe:
1303
- s !== se && (n.fragment += Ce(s, Tu));
1302
+ case Te:
1303
+ s !== ce && (n.fragment += Ae(s, Tu));
1304
1304
  break;
1305
1305
  }
1306
1306
  i++;
@@ -1309,16 +1309,16 @@ yi.prototype = {
1309
1309
  // https://url.spec.whatwg.org/#host-parsing
1310
1310
  parseHost: function(e) {
1311
1311
  var t, r, n;
1312
- if (le(e, 0) === "[") {
1313
- if (le(e, e.length - 1) !== "]" || (t = Ay(Yt(e, 1, -1)), !t)) return Be;
1312
+ if (fe(e, 0) === "[") {
1313
+ if (fe(e, e.length - 1) !== "]" || (t = Ay(Jt(e, 1, -1)), !t)) return Ge;
1314
1314
  this.host = t;
1315
1315
  } else if (this.isSpecial()) {
1316
- if (e = ly(e), me(Ey, e) || (t = jy(e), t === null)) return Be;
1316
+ if (e = ly(e), ge(Ey, e) || (t = jy(e), t === null)) return Ge;
1317
1317
  this.host = t;
1318
1318
  } else {
1319
- if (me(Oy, e)) return Be;
1320
- for (t = "", r = st(e), n = 0; n < r.length; n++)
1321
- t += Ce(r[n], Lr);
1319
+ if (ge(Oy, e)) return Ge;
1320
+ for (t = "", r = ut(e), n = 0; n < r.length; n++)
1321
+ t += Ae(r[n], Lr);
1322
1322
  this.host = t;
1323
1323
  }
1324
1324
  },
@@ -1337,12 +1337,12 @@ yi.prototype = {
1337
1337
  // https://url.spec.whatwg.org/#shorten-a-urls-path
1338
1338
  shortenPath: function() {
1339
1339
  var e = this.path, t = e.length;
1340
- t && (this.scheme !== "file" || t !== 1 || !Bt(e[0], !0)) && e.length--;
1340
+ t && (this.scheme !== "file" || t !== 1 || !Kt(e[0], !0)) && e.length--;
1341
1341
  },
1342
1342
  // https://url.spec.whatwg.org/#concept-url-serializer
1343
1343
  serialize: function() {
1344
1344
  var e = this, t = e.scheme, r = e.username, n = e.password, a = e.host, i = e.port, o = e.path, c = e.query, l = e.fragment, f = t + ":";
1345
- return a !== null ? (f += "//", e.includesCredentials() && (f += r + (n ? ":" + n : "") + "@"), f += Dt(a), i !== null && (f += ":" + i)) : t === "file" && (f += "//"), f += e.cannotBeABaseURL ? o[0] : o.length ? "/" + Ht(o, "/") : "", c !== null && (f += "?" + c), l !== null && (f += "#" + l), f;
1345
+ return a !== null ? (f += "//", e.includesCredentials() && (f += r + (n ? ":" + n : "") + "@"), f += Mt(a), i !== null && (f += ":" + i)) : t === "file" && (f += "//"), f += e.cannotBeABaseURL ? o[0] : o.length ? "/" + Bt(o, "/") : "", c !== null && (f += "?" + c), l !== null && (f += "#" + l), f;
1346
1346
  },
1347
1347
  // https://url.spec.whatwg.org/#dom-url-href
1348
1348
  setHref: function(e) {
@@ -1354,29 +1354,29 @@ yi.prototype = {
1354
1354
  getOrigin: function() {
1355
1355
  var e = this.scheme, t = this.port;
1356
1356
  if (e === "blob") try {
1357
- return new bt(e.path[0]).origin;
1357
+ return new It(e.path[0]).origin;
1358
1358
  } catch {
1359
1359
  return "null";
1360
1360
  }
1361
- return e === "file" || !this.isSpecial() ? "null" : e + "://" + Dt(this.host) + (t !== null ? ":" + t : "");
1361
+ return e === "file" || !this.isSpecial() ? "null" : e + "://" + Mt(this.host) + (t !== null ? ":" + t : "");
1362
1362
  },
1363
1363
  // https://url.spec.whatwg.org/#dom-url-protocol
1364
1364
  getProtocol: function() {
1365
1365
  return this.scheme + ":";
1366
1366
  },
1367
1367
  setProtocol: function(e) {
1368
- this.parse(Te(e) + ":", Hn);
1368
+ this.parse(Ee(e) + ":", Hn);
1369
1369
  },
1370
1370
  // https://url.spec.whatwg.org/#dom-url-username
1371
1371
  getUsername: function() {
1372
1372
  return this.username;
1373
1373
  },
1374
1374
  setUsername: function(e) {
1375
- var t = st(Te(e));
1375
+ var t = ut(Ee(e));
1376
1376
  if (!this.cannotHaveUsernamePasswordPort()) {
1377
1377
  this.username = "";
1378
1378
  for (var r = 0; r < t.length; r++)
1379
- this.username += Ce(t[r], zn);
1379
+ this.username += Ae(t[r], zn);
1380
1380
  }
1381
1381
  },
1382
1382
  // https://url.spec.whatwg.org/#dom-url-password
@@ -1384,17 +1384,17 @@ yi.prototype = {
1384
1384
  return this.password;
1385
1385
  },
1386
1386
  setPassword: function(e) {
1387
- var t = st(Te(e));
1387
+ var t = ut(Ee(e));
1388
1388
  if (!this.cannotHaveUsernamePasswordPort()) {
1389
1389
  this.password = "";
1390
1390
  for (var r = 0; r < t.length; r++)
1391
- this.password += Ce(t[r], zn);
1391
+ this.password += Ae(t[r], zn);
1392
1392
  }
1393
1393
  },
1394
1394
  // https://url.spec.whatwg.org/#dom-url-host
1395
1395
  getHost: function() {
1396
1396
  var e = this.host, t = this.port;
1397
- return e === null ? "" : t === null ? Dt(e) : Dt(e) + ":" + t;
1397
+ return e === null ? "" : t === null ? Mt(e) : Mt(e) + ":" + t;
1398
1398
  },
1399
1399
  setHost: function(e) {
1400
1400
  this.cannotBeABaseURL || this.parse(e, Gn);
@@ -1402,7 +1402,7 @@ yi.prototype = {
1402
1402
  // https://url.spec.whatwg.org/#dom-url-hostname
1403
1403
  getHostname: function() {
1404
1404
  var e = this.host;
1405
- return e === null ? "" : Dt(e);
1405
+ return e === null ? "" : Mt(e);
1406
1406
  },
1407
1407
  setHostname: function(e) {
1408
1408
  this.cannotBeABaseURL || this.parse(e, Wn);
@@ -1410,18 +1410,18 @@ yi.prototype = {
1410
1410
  // https://url.spec.whatwg.org/#dom-url-port
1411
1411
  getPort: function() {
1412
1412
  var e = this.port;
1413
- return e === null ? "" : Te(e);
1413
+ return e === null ? "" : Ee(e);
1414
1414
  },
1415
1415
  setPort: function(e) {
1416
- this.cannotHaveUsernamePasswordPort() || (e = Te(e), e === "" ? this.port = null : this.parse(e, Vn));
1416
+ this.cannotHaveUsernamePasswordPort() || (e = Ee(e), e === "" ? this.port = null : this.parse(e, Vn));
1417
1417
  },
1418
1418
  // https://url.spec.whatwg.org/#dom-url-pathname
1419
1419
  getPathname: function() {
1420
1420
  var e = this.path;
1421
- return this.cannotBeABaseURL ? e[0] : e.length ? "/" + Ht(e, "/") : "";
1421
+ return this.cannotBeABaseURL ? e[0] : e.length ? "/" + Bt(e, "/") : "";
1422
1422
  },
1423
1423
  setPathname: function(e) {
1424
- this.cannotBeABaseURL || (this.path = [], this.parse(e, ct));
1424
+ this.cannotBeABaseURL || (this.path = [], this.parse(e, lt));
1425
1425
  },
1426
1426
  // https://url.spec.whatwg.org/#dom-url-search
1427
1427
  getSearch: function() {
@@ -1429,7 +1429,7 @@ yi.prototype = {
1429
1429
  return e ? "?" + e : "";
1430
1430
  },
1431
1431
  setSearch: function(e) {
1432
- e = Te(e), e === "" ? this.query = null : (le(e, 0) === "?" && (e = Yt(e, 1)), this.query = "", this.parse(e, Ke)), this.searchParams.update();
1432
+ e = Ee(e), e === "" ? this.query = null : (fe(e, 0) === "?" && (e = Jt(e, 1)), this.query = "", this.parse(e, We)), this.searchParams.update();
1433
1433
  },
1434
1434
  // https://url.spec.whatwg.org/#dom-url-searchparams
1435
1435
  getSearchParams: function() {
@@ -1441,20 +1441,20 @@ yi.prototype = {
1441
1441
  return e ? "#" + e : "";
1442
1442
  },
1443
1443
  setHash: function(e) {
1444
- if (e = Te(e), e === "") {
1444
+ if (e = Ee(e), e === "") {
1445
1445
  this.fragment = null;
1446
1446
  return;
1447
1447
  }
1448
- le(e, 0) === "#" && (e = Yt(e, 1)), this.fragment = "", this.parse(e, Pe);
1448
+ fe(e, 0) === "#" && (e = Jt(e, 1)), this.fragment = "", this.parse(e, Te);
1449
1449
  },
1450
1450
  update: function() {
1451
1451
  this.query = this.searchParams.serialize() || null;
1452
1452
  }
1453
1453
  };
1454
- var bt = function(t) {
1455
- var r = cy(this, J), n = dy(arguments.length, 1) > 1 ? arguments[1] : void 0, a = hy(r, new yi(t, !1, n));
1454
+ var It = function(t) {
1455
+ var r = cy(this, X), n = dy(arguments.length, 1) > 1 ? arguments[1] : void 0, a = hy(r, new yi(t, !1, n));
1456
1456
  pi || (r.href = a.serialize(), r.origin = a.getOrigin(), r.protocol = a.getProtocol(), r.username = a.getUsername(), r.password = a.getPassword(), r.host = a.getHost(), r.hostname = a.getHostname(), r.port = a.getPort(), r.pathname = a.getPathname(), r.search = a.getSearch(), r.searchParams = a.getSearchParams(), r.hash = a.getHash());
1457
- }, J = bt.prototype, ce = function(e, t) {
1457
+ }, X = It.prototype, ue = function(e, t) {
1458
1458
  return {
1459
1459
  get: function() {
1460
1460
  return Hr(this)[e]();
@@ -1466,22 +1466,22 @@ var bt = function(t) {
1466
1466
  enumerable: !0
1467
1467
  };
1468
1468
  };
1469
- pi && (oe(J, "href", ce("serialize", "setHref")), oe(J, "origin", ce("getOrigin")), oe(J, "protocol", ce("getProtocol", "setProtocol")), oe(J, "username", ce("getUsername", "setUsername")), oe(J, "password", ce("getPassword", "setPassword")), oe(J, "host", ce("getHost", "setHost")), oe(J, "hostname", ce("getHostname", "setHostname")), oe(J, "port", ce("getPort", "setPort")), oe(J, "pathname", ce("getPathname", "setPathname")), oe(J, "search", ce("getSearch", "setSearch")), oe(J, "searchParams", ce("getSearchParams")), oe(J, "hash", ce("getHash", "setHash")));
1470
- zr(J, "toJSON", function() {
1469
+ pi && (se(X, "href", ue("serialize", "setHref")), se(X, "origin", ue("getOrigin")), se(X, "protocol", ue("getProtocol", "setProtocol")), se(X, "username", ue("getUsername", "setUsername")), se(X, "password", ue("getPassword", "setPassword")), se(X, "host", ue("getHost", "setHost")), se(X, "hostname", ue("getHostname", "setHostname")), se(X, "port", ue("getPort", "setPort")), se(X, "pathname", ue("getPathname", "setPathname")), se(X, "search", ue("getSearch", "setSearch")), se(X, "searchParams", ue("getSearchParams")), se(X, "hash", ue("getHash", "setHash")));
1470
+ zr(X, "toJSON", function() {
1471
1471
  return Hr(this).serialize();
1472
1472
  }, { enumerable: !0 });
1473
- zr(J, "toString", function() {
1473
+ zr(X, "toString", function() {
1474
1474
  return Hr(this).serialize();
1475
1475
  }, { enumerable: !0 });
1476
- if (Nt) {
1477
- var os = Nt.createObjectURL, ss = Nt.revokeObjectURL;
1478
- os && zr(bt, "createObjectURL", Yo(os, Nt)), ss && zr(bt, "revokeObjectURL", Yo(ss, Nt));
1476
+ if (Dt) {
1477
+ var os = Dt.createObjectURL, ss = Dt.revokeObjectURL;
1478
+ os && zr(It, "createObjectURL", Yo(os, Dt)), ss && zr(It, "revokeObjectURL", Yo(ss, Dt));
1479
1479
  }
1480
- fy(bt, "URL");
1480
+ fy(It, "URL");
1481
1481
  oy({ global: !0, constructor: !0, forced: !sy, sham: !pi }, {
1482
- URL: bt
1482
+ URL: It
1483
1483
  });
1484
- var Ny = Et, Dy = Tt, Ou = re, My = Ot, cs = ze, Fy = Qr, wi = Dy("URL"), zy = Fy && Ou(function() {
1484
+ var Ny = _t, Dy = Ot, Ou = ne, My = Rt, cs = Be, Fy = Qr, wi = Dy("URL"), zy = Fy && Ou(function() {
1485
1485
  wi.canParse();
1486
1486
  }), Hy = Ou(function() {
1487
1487
  return wi.canParse.length !== 1;
@@ -1496,7 +1496,7 @@ Ny({ target: "URL", stat: !0, forced: !zy || Hy }, {
1496
1496
  }
1497
1497
  }
1498
1498
  });
1499
- var By = Et, Ky = Tt, Gy = Ot, us = ze, Wy = Qr, Vy = Ky("URL");
1499
+ var By = _t, Ky = Ot, Gy = Rt, us = Be, Wy = Qr, Vy = Ky("URL");
1500
1500
  By({ target: "URL", stat: !0, forced: !Wy }, {
1501
1501
  parse: function(t) {
1502
1502
  var r = Gy(arguments.length, 1), n = us(t), a = r < 2 || arguments[1] === void 0 ? void 0 : us(arguments[1]);
@@ -1507,7 +1507,7 @@ By({ target: "URL", stat: !0, forced: !Wy }, {
1507
1507
  }
1508
1508
  }
1509
1509
  });
1510
- var Zy = Et, Yy = ke;
1510
+ var Zy = _t, Yy = Pe;
1511
1511
  Zy({ target: "URL", proto: !0, enumerable: !0 }, {
1512
1512
  toJSON: function() {
1513
1513
  return Yy(URL.prototype.toString, this);
@@ -1547,7 +1547,7 @@ var Xy = {
1547
1547
  TextTrackCueList: 0,
1548
1548
  TextTrackList: 0,
1549
1549
  TouchList: 0
1550
- }, qy = Wa, Jn = qy("span").classList, ls = Jn && Jn.constructor && Jn.constructor.prototype, Qy = ls === Object.prototype ? void 0 : ls, fs = q, _u = Xy, ew = Qy, Kt = fp, ds = qr, tw = sr, rw = fe, Xn = rw("iterator"), qn = Kt.values, Ru = function(e, t) {
1550
+ }, qy = Wa, Jn = qy("span").classList, ls = Jn && Jn.constructor && Jn.constructor.prototype, Qy = ls === Object.prototype ? void 0 : ls, fs = Q, _u = Xy, ew = Qy, Gt = fp, ds = qr, tw = cr, rw = de, Xn = rw("iterator"), qn = Gt.values, Ru = function(e, t) {
1551
1551
  if (e) {
1552
1552
  if (e[Xn] !== qn) try {
1553
1553
  ds(e, Xn, qn);
@@ -1555,11 +1555,11 @@ var Xy = {
1555
1555
  e[Xn] = qn;
1556
1556
  }
1557
1557
  if (tw(e, t, !0), _u[t]) {
1558
- for (var r in Kt)
1559
- if (e[r] !== Kt[r]) try {
1560
- ds(e, r, Kt[r]);
1558
+ for (var r in Gt)
1559
+ if (e[r] !== Gt[r]) try {
1560
+ ds(e, r, Gt[r]);
1561
1561
  } catch {
1562
- e[r] = Kt[r];
1562
+ e[r] = Gt[r];
1563
1563
  }
1564
1564
  }
1565
1565
  }
@@ -1567,7 +1567,7 @@ var Xy = {
1567
1567
  for (var Qn in _u)
1568
1568
  Ru(fs[Qn] && fs[Qn].prototype, Qn);
1569
1569
  Ru(ew, "DOMTokenList");
1570
- function De(e, t) {
1570
+ function Fe(e, t) {
1571
1571
  const r = new CustomEvent(e, {
1572
1572
  detail: t,
1573
1573
  bubbles: !0,
@@ -1575,7 +1575,7 @@ function De(e, t) {
1575
1575
  });
1576
1576
  dispatchEvent(r);
1577
1577
  }
1578
- function Se(e, t) {
1578
+ function Ie(e, t) {
1579
1579
  var r = {};
1580
1580
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1581
1581
  if (e != null && typeof Object.getOwnPropertySymbols == "function") {
@@ -1584,14 +1584,14 @@ function Se(e, t) {
1584
1584
  }
1585
1585
  return r;
1586
1586
  }
1587
- var We = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1587
+ var Ze = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1588
1588
  function bi(e) {
1589
1589
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1590
1590
  }
1591
1591
  function Si(e, t) {
1592
1592
  return e(t = { exports: {} }, t.exports), t.exports;
1593
1593
  }
1594
- var Ge = Si(function(e, t) {
1594
+ var Ve = Si(function(e, t) {
1595
1595
  Object.defineProperty(t, "__esModule", { value: !0 });
1596
1596
  var r = function() {
1597
1597
  function n() {
@@ -1621,32 +1621,32 @@ var Ge = Si(function(e, t) {
1621
1621
  return r.getInstance();
1622
1622
  };
1623
1623
  });
1624
- bi(Ge);
1624
+ bi(Ve);
1625
1625
  var nw = bi(Si(function(e, t) {
1626
- var r = We && We.__awaiter || function(u, s, d, h) {
1626
+ var r = Ze && Ze.__awaiter || function(u, s, d, h) {
1627
1627
  return new (d || (d = Promise))(function(m, S) {
1628
1628
  function g(b) {
1629
1629
  try {
1630
- k(h.next(b));
1630
+ P(h.next(b));
1631
1631
  } catch (v) {
1632
1632
  S(v);
1633
1633
  }
1634
1634
  }
1635
1635
  function $(b) {
1636
1636
  try {
1637
- k(h.throw(b));
1637
+ P(h.throw(b));
1638
1638
  } catch (v) {
1639
1639
  S(v);
1640
1640
  }
1641
1641
  }
1642
- function k(b) {
1642
+ function P(b) {
1643
1643
  b.done ? m(b.value) : new d(function(v) {
1644
1644
  v(b.value);
1645
1645
  }).then(g, $);
1646
1646
  }
1647
- k((h = h.apply(u, s || [])).next());
1647
+ P((h = h.apply(u, s || [])).next());
1648
1648
  });
1649
- }, n = We && We.__generator || function(u, s) {
1649
+ }, n = Ze && Ze.__generator || function(u, s) {
1650
1650
  var d, h, m, S, g = { label: 0, sent: function() {
1651
1651
  if (1 & m[0]) throw m[1];
1652
1652
  return m[1];
@@ -1654,7 +1654,7 @@ var nw = bi(Si(function(e, t) {
1654
1654
  return S = { next: $(0), throw: $(1), return: $(2) }, typeof Symbol == "function" && (S[Symbol.iterator] = function() {
1655
1655
  return this;
1656
1656
  }), S;
1657
- function $(k) {
1657
+ function $(P) {
1658
1658
  return function(b) {
1659
1659
  return function(v) {
1660
1660
  if (d) throw new TypeError("Generator is already executing.");
@@ -1701,10 +1701,10 @@ var nw = bi(Si(function(e, t) {
1701
1701
  }
1702
1702
  if (5 & v[0]) throw v[1];
1703
1703
  return { value: v[0] ? v[1] : void 0, done: !0 };
1704
- }([k, b]);
1704
+ }([P, b]);
1705
1705
  };
1706
1706
  }
1707
- }, a = We;
1707
+ }, a = Ze;
1708
1708
  Object.defineProperty(t, "__esModule", { value: !0 });
1709
1709
  var i = "browser-tabs-lock-key", o = { key: function(u) {
1710
1710
  return r(a, void 0, void 0, function() {
@@ -1763,7 +1763,7 @@ var nw = bi(Si(function(e, t) {
1763
1763
  }
1764
1764
  return u.prototype.acquireLock = function(s, d) {
1765
1765
  return d === void 0 && (d = 5e3), r(this, void 0, void 0, function() {
1766
- var h, m, S, g, $, k, b;
1766
+ var h, m, S, g, $, P, b;
1767
1767
  return n(this, function(v) {
1768
1768
  switch (v.label) {
1769
1769
  case 0:
@@ -1775,7 +1775,7 @@ var nw = bi(Si(function(e, t) {
1775
1775
  case 3:
1776
1776
  return v.sent(), g.setItemSync(S, JSON.stringify({ id: this.id, iat: h, timeoutKey: $, timeAcquired: Date.now(), timeRefreshed: Date.now() })), [4, c(30)];
1777
1777
  case 4:
1778
- return v.sent(), (k = g.getItemSync(S)) !== null && (b = JSON.parse(k)).id === this.id && b.iat === h ? (this.acquiredIatSet.add(h), this.refreshLockWhileAcquired(S, h), [2, !0]) : [3, 7];
1778
+ return v.sent(), (P = g.getItemSync(S)) !== null && (b = JSON.parse(P)).id === this.id && b.iat === h ? (this.acquiredIatSet.add(h), this.refreshLockWhileAcquired(S, h), [2, !0]) : [3, 7];
1779
1779
  case 5:
1780
1780
  return u.lockCorrector(this.storageHandler === void 0 ? o : this.storageHandler), [4, this.waitForSomethingToChange(m)];
1781
1781
  case 6:
@@ -1794,12 +1794,12 @@ var nw = bi(Si(function(e, t) {
1794
1794
  return setTimeout(function() {
1795
1795
  return r(h, void 0, void 0, function() {
1796
1796
  var S, g, $;
1797
- return n(this, function(k) {
1798
- switch (k.label) {
1797
+ return n(this, function(P) {
1798
+ switch (P.label) {
1799
1799
  case 0:
1800
- return [4, Ge.default().lock(d)];
1800
+ return [4, Ve.default().lock(d)];
1801
1801
  case 1:
1802
- return k.sent(), this.acquiredIatSet.has(d) ? (S = this.storageHandler === void 0 ? o : this.storageHandler, (g = S.getItemSync(s)) === null ? (Ge.default().unlock(d), [2]) : (($ = JSON.parse(g)).timeRefreshed = Date.now(), S.setItemSync(s, JSON.stringify($)), Ge.default().unlock(d), this.refreshLockWhileAcquired(s, d), [2])) : (Ge.default().unlock(d), [2]);
1802
+ return P.sent(), this.acquiredIatSet.has(d) ? (S = this.storageHandler === void 0 ? o : this.storageHandler, (g = S.getItemSync(s)) === null ? (Ve.default().unlock(d), [2]) : (($ = JSON.parse(g)).timeRefreshed = Date.now(), S.setItemSync(s, JSON.stringify($)), Ve.default().unlock(d), this.refreshLockWhileAcquired(s, d), [2])) : (Ve.default().unlock(d), [2]);
1803
1803
  }
1804
1804
  });
1805
1805
  });
@@ -1814,14 +1814,14 @@ var nw = bi(Si(function(e, t) {
1814
1814
  return [4, new Promise(function(h) {
1815
1815
  var m = !1, S = Date.now(), g = !1;
1816
1816
  function $() {
1817
- if (g || (window.removeEventListener("storage", $), u.removeFromWaiting($), clearTimeout(k), g = !0), !m) {
1817
+ if (g || (window.removeEventListener("storage", $), u.removeFromWaiting($), clearTimeout(P), g = !0), !m) {
1818
1818
  m = !0;
1819
1819
  var b = 50 - (Date.now() - S);
1820
1820
  b > 0 ? setTimeout(h, b) : h(null);
1821
1821
  }
1822
1822
  }
1823
1823
  window.addEventListener("storage", $), u.addToWaiting($);
1824
- var k = setTimeout($, Math.max(0, s - Date.now()));
1824
+ var P = setTimeout($, Math.max(0, s - Date.now()));
1825
1825
  })];
1826
1826
  case 1:
1827
1827
  return d.sent(), [2];
@@ -1855,9 +1855,9 @@ var nw = bi(Si(function(e, t) {
1855
1855
  return n(this, function(g) {
1856
1856
  switch (g.label) {
1857
1857
  case 0:
1858
- return d = this.storageHandler === void 0 ? o : this.storageHandler, h = i + "-" + s, (m = d.getItemSync(h)) === null ? [2] : (S = JSON.parse(m)).id !== this.id ? [3, 2] : [4, Ge.default().lock(S.iat)];
1858
+ return d = this.storageHandler === void 0 ? o : this.storageHandler, h = i + "-" + s, (m = d.getItemSync(h)) === null ? [2] : (S = JSON.parse(m)).id !== this.id ? [3, 2] : [4, Ve.default().lock(S.iat)];
1859
1859
  case 1:
1860
- g.sent(), this.acquiredIatSet.delete(S.iat), d.removeItemSync(h), Ge.default().unlock(S.iat), u.notifyWaiters(), g.label = 2;
1860
+ g.sent(), this.acquiredIatSet.delete(S.iat), d.removeItemSync(h), Ve.default().unlock(S.iat), u.notifyWaiters(), g.label = 2;
1861
1861
  case 2:
1862
1862
  return [2];
1863
1863
  }
@@ -1869,8 +1869,8 @@ var nw = bi(Si(function(e, t) {
1869
1869
  if (g === null) break;
1870
1870
  m.push(g), S++;
1871
1871
  }
1872
- for (var $ = !1, k = 0; k < m.length; k++) {
1873
- var b = m[k];
1872
+ for (var $ = !1, P = 0; P < m.length; P++) {
1873
+ var b = m[P];
1874
1874
  if (b.includes(i)) {
1875
1875
  var v = h.getItemSync(b);
1876
1876
  if (v !== null) {
@@ -1885,18 +1885,18 @@ var nw = bi(Si(function(e, t) {
1885
1885
  t.default = f;
1886
1886
  }));
1887
1887
  const aw = { timeoutInSeconds: 60 }, Cu = { name: "auth0-spa-js", version: "2.1.3" }, ju = () => Date.now();
1888
- let ne = class Ca extends Error {
1888
+ let ae = class Ca extends Error {
1889
1889
  constructor(t, r) {
1890
1890
  super(r), this.error = t, this.error_description = r, Object.setPrototypeOf(this, Ca.prototype);
1891
1891
  }
1892
1892
  static fromPayload({ error: t, error_description: r }) {
1893
1893
  return new Ca(t, r);
1894
1894
  }
1895
- }, iw = class Au extends ne {
1895
+ }, iw = class Au extends ae {
1896
1896
  constructor(t, r, n, a = null) {
1897
1897
  super(t, r), this.state = n, this.appState = a, Object.setPrototypeOf(this, Au.prototype);
1898
1898
  }
1899
- }, ja = class Lu extends ne {
1899
+ }, ja = class Lu extends ae {
1900
1900
  constructor() {
1901
1901
  super("timeout", "Timeout"), Object.setPrototypeOf(this, Lu.prototype);
1902
1902
  }
@@ -1904,15 +1904,15 @@ let ne = class Ca extends Error {
1904
1904
  constructor(t) {
1905
1905
  super(), this.popup = t, Object.setPrototypeOf(this, xu.prototype);
1906
1906
  }
1907
- }, sw = class Uu extends ne {
1907
+ }, sw = class Uu extends ae {
1908
1908
  constructor(t) {
1909
1909
  super("cancelled", "Popup closed"), this.popup = t, Object.setPrototypeOf(this, Uu.prototype);
1910
1910
  }
1911
- }, cw = class Nu extends ne {
1911
+ }, cw = class Nu extends ae {
1912
1912
  constructor(t, r, n) {
1913
1913
  super(t, r), this.mfa_token = n, Object.setPrototypeOf(this, Nu.prototype);
1914
1914
  }
1915
- }, Du = class Mu extends ne {
1915
+ }, Du = class Mu extends ae {
1916
1916
  constructor(t, r) {
1917
1917
  super("missing_refresh_token", `Missing Refresh Token (audience: '${hs(t, ["default"])}', scope: '${hs(r)}')`), this.audience = t, this.scope = r, Object.setPrototypeOf(this, Mu.prototype);
1918
1918
  }
@@ -1925,7 +1925,7 @@ const xr = () => window.crypto, ea = () => {
1925
1925
  let t = "";
1926
1926
  return Array.from(xr().getRandomValues(new Uint8Array(43))).forEach((r) => t += e[r % e.length]), t;
1927
1927
  }, vs = (e) => btoa(e), Aa = (e) => {
1928
- var { clientId: t } = e, r = Se(e, ["clientId"]);
1928
+ var { clientId: t } = e, r = Ie(e, ["clientId"]);
1929
1929
  return new URLSearchParams(((n) => Object.keys(n).filter((a) => n[a] !== void 0).reduce((a, i) => Object.assign(Object.assign({}, a), { [i]: n[i] }), {}))(Object.assign({ client_id: t }, r))).toString();
1930
1930
  }, ps = (e) => ((t) => decodeURIComponent(atob(t).split("").map((r) => "%" + ("00" + r.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g, "/").replace(/-/g, "+")), uw = async (e, t) => {
1931
1931
  const r = await fetch(e, t);
@@ -1950,21 +1950,21 @@ const xr = () => window.crypto, ea = () => {
1950
1950
  var c, l;
1951
1951
  }, dw = async (e, t, r, n, a, i, o = 1e4) => a ? fw(e, t, r, n, o, a, i) : lw(e, n, o);
1952
1952
  async function hw(e, t) {
1953
- var { baseUrl: r, timeout: n, audience: a, scope: i, auth0Client: o, useFormData: c } = e, l = Se(e, ["baseUrl", "timeout", "audience", "scope", "auth0Client", "useFormData"]);
1953
+ var { baseUrl: r, timeout: n, audience: a, scope: i, auth0Client: o, useFormData: c } = e, l = Ie(e, ["baseUrl", "timeout", "audience", "scope", "auth0Client", "useFormData"]);
1954
1954
  const f = c ? Aa(l) : JSON.stringify(l);
1955
1955
  return await async function(u, s, d, h, m, S, g) {
1956
- let $, k = null;
1956
+ let $, P = null;
1957
1957
  for (let C = 0; C < 3; C++) try {
1958
- $ = await dw(u, d, h, m, S, g, s), k = null;
1958
+ $ = await dw(u, d, h, m, S, g, s), P = null;
1959
1959
  break;
1960
- } catch (F) {
1961
- k = F;
1960
+ } catch (M) {
1961
+ P = M;
1962
1962
  }
1963
- if (k) throw k;
1964
- const b = $.json, { error: v, error_description: I } = b, O = Se(b, ["error", "error_description"]), { ok: _ } = $;
1963
+ if (P) throw P;
1964
+ const b = $.json, { error: v, error_description: I } = b, O = Ie(b, ["error", "error_description"]), { ok: _ } = $;
1965
1965
  if (!_) {
1966
1966
  const C = I || `HTTP error. Unable to fetch ${u}`;
1967
- throw v === "mfa_required" ? new cw(v, C, O.mfa_token) : v === "missing_refresh_token" ? new Du(d, h) : new ne(v || "request_error", C);
1967
+ throw v === "mfa_required" ? new cw(v, C, O.mfa_token) : v === "missing_refresh_token" ? new Du(d, h) : new ae(v || "request_error", C);
1968
1968
  }
1969
1969
  return O;
1970
1970
  }(`${r}/oauth/token`, n, a || "default", i, { method: "POST", body: f, headers: { "Content-Type": c ? "application/x-www-form-urlencoded" : "application/json", "Auth0-Client": btoa(JSON.stringify(o || Cu)) } }, t, c);
@@ -1973,7 +1973,7 @@ const $r = (...e) => {
1973
1973
  return (t = e.filter(Boolean).join(" ").trim().split(/\s+/), Array.from(new Set(t))).join(" ");
1974
1974
  var t;
1975
1975
  };
1976
- let Ye = class La {
1976
+ let Xe = class La {
1977
1977
  constructor(t, r = "@@auth0spajs@@", n) {
1978
1978
  this.prefix = r, this.suffix = n, this.clientId = t.clientId, this.scope = t.scope, this.audience = t.audience;
1979
1979
  }
@@ -2052,7 +2052,7 @@ let Ye = class La {
2052
2052
  }
2053
2053
  async set(t) {
2054
2054
  var r;
2055
- const n = new Ye({ clientId: t.client_id, scope: t.scope, audience: t.audience }), a = await this.wrapCacheEntry(t);
2055
+ const n = new Xe({ clientId: t.client_id, scope: t.scope, audience: t.audience }), a = await this.wrapCacheEntry(t);
2056
2056
  await this.cache.set(n.toKey(), a), await ((r = this.keyManifest) === null || r === void 0 ? void 0 : r.add(n.toKey()));
2057
2057
  }
2058
2058
  async clear(t) {
@@ -2071,12 +2071,12 @@ let Ye = class La {
2071
2071
  return this.keyManifest ? (t = await this.keyManifest.get()) === null || t === void 0 ? void 0 : t.keys : this.cache.allKeys ? this.cache.allKeys() : void 0;
2072
2072
  }
2073
2073
  getIdTokenCacheKey(t) {
2074
- return new Ye({ clientId: t }, "@@auth0spajs@@", "@@user@@").toKey();
2074
+ return new Xe({ clientId: t }, "@@auth0spajs@@", "@@user@@").toKey();
2075
2075
  }
2076
2076
  matchExistingCacheKey(t, r) {
2077
2077
  return r.filter((n) => {
2078
2078
  var a;
2079
- const i = Ye.fromKey(n), o = new Set(i.scope && i.scope.split(" ")), c = ((a = t.scope) === null || a === void 0 ? void 0 : a.split(" ")) || [], l = i.scope && c.reduce((f, u) => f && o.has(u), !0);
2079
+ const i = Xe.fromKey(n), o = new Set(i.scope && i.scope.split(" ")), c = ((a = t.scope) === null || a === void 0 ? void 0 : a.split(" ")) || [], l = i.scope && c.reduce((f, u) => f && o.has(u), !0);
2080
2080
  return i.prefix === "@@auth0spajs@@" && i.clientId === t.clientId && i.audience === t.audience && l;
2081
2081
  })[0];
2082
2082
  }
@@ -2094,7 +2094,7 @@ let Ye = class La {
2094
2094
  this.storage.remove(this.storageKey, { cookieDomain: this.cookieDomain });
2095
2095
  }
2096
2096
  };
2097
- const Mt = (e) => typeof e == "number", gw = ["iss", "aud", "exp", "nbf", "iat", "jti", "azp", "nonce", "auth_time", "at_hash", "c_hash", "acr", "amr", "sub_jwk", "cnf", "sip_from_tag", "sip_date", "sip_callid", "sip_cseq_num", "sip_via_branch", "orig", "dest", "mky", "events", "toe", "txn", "rph", "sid", "vot", "vtm"], yw = (e) => {
2097
+ const Ft = (e) => typeof e == "number", gw = ["iss", "aud", "exp", "nbf", "iat", "jti", "azp", "nonce", "auth_time", "at_hash", "c_hash", "acr", "amr", "sub_jwk", "cnf", "sip_from_tag", "sip_date", "sip_callid", "sip_cseq_num", "sip_via_branch", "orig", "dest", "mky", "events", "toe", "txn", "rph", "sid", "vot", "vtm"], yw = (e) => {
2098
2098
  if (!e.id_token) throw new Error("ID token is required but missing");
2099
2099
  const t = ((i) => {
2100
2100
  const o = i.split("."), [c, l, f] = o;
@@ -2120,16 +2120,16 @@ const Mt = (e) => typeof e == "number", gw = ["iss", "aud", "exp", "nbf", "iat",
2120
2120
  if (!t.claims.nonce) throw new Error("Nonce (nonce) claim must be a string present in the ID token");
2121
2121
  if (t.claims.nonce !== e.nonce) throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${e.nonce}", found "${t.claims.nonce}"`);
2122
2122
  }
2123
- if (e.max_age && !Mt(t.claims.auth_time)) throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");
2124
- if (t.claims.exp == null || !Mt(t.claims.exp)) throw new Error("Expiration Time (exp) claim must be a number present in the ID token");
2125
- if (!Mt(t.claims.iat)) throw new Error("Issued At (iat) claim must be a number present in the ID token");
2123
+ if (e.max_age && !Ft(t.claims.auth_time)) throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");
2124
+ if (t.claims.exp == null || !Ft(t.claims.exp)) throw new Error("Expiration Time (exp) claim must be a number present in the ID token");
2125
+ if (!Ft(t.claims.iat)) throw new Error("Issued At (iat) claim must be a number present in the ID token");
2126
2126
  const r = e.leeway || 60, n = new Date(e.now || Date.now()), a = /* @__PURE__ */ new Date(0);
2127
2127
  if (a.setUTCSeconds(t.claims.exp + r), n > a) throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${n}) is after expiration time (${a})`);
2128
- if (t.claims.nbf != null && Mt(t.claims.nbf)) {
2128
+ if (t.claims.nbf != null && Ft(t.claims.nbf)) {
2129
2129
  const i = /* @__PURE__ */ new Date(0);
2130
2130
  if (i.setUTCSeconds(t.claims.nbf - r), n < i) throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${n}) is before ${i}`);
2131
2131
  }
2132
- if (t.claims.auth_time != null && Mt(t.claims.auth_time)) {
2132
+ if (t.claims.auth_time != null && Ft(t.claims.auth_time)) {
2133
2133
  const i = /* @__PURE__ */ new Date(0);
2134
2134
  if (i.setUTCSeconds(parseInt(t.claims.auth_time) + e.max_age + r), n > i) throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${n}) is after last auth at ${i}`);
2135
2135
  }
@@ -2147,8 +2147,8 @@ const Mt = (e) => typeof e == "number", gw = ["iss", "aud", "exp", "nbf", "iat",
2147
2147
  }
2148
2148
  return t;
2149
2149
  };
2150
- var Je = Si(function(e, t) {
2151
- var r = We && We.__assign || function() {
2150
+ var qe = Si(function(e, t) {
2151
+ var r = Ze && Ze.__assign || function() {
2152
2152
  return r = Object.assign || function(l) {
2153
2153
  for (var f, u = 1, s = arguments.length; u < s; u++) for (var d in f = arguments[u]) Object.prototype.hasOwnProperty.call(f, d) && (l[d] = f[d]);
2154
2154
  return l;
@@ -2191,9 +2191,9 @@ var Je = Si(function(e, t) {
2191
2191
  c(l, "", r(r({}, f), { expires: -1 }));
2192
2192
  };
2193
2193
  });
2194
- bi(Je), Je.encode, Je.parse, Je.getAll;
2195
- var ww = Je.get, zu = Je.set, Hu = Je.remove;
2196
- const ft = { get(e) {
2194
+ bi(qe), qe.encode, qe.parse, qe.getAll;
2195
+ var ww = qe.get, zu = qe.set, Hu = qe.remove;
2196
+ const ht = { get(e) {
2197
2197
  const t = ww(e);
2198
2198
  if (t !== void 0) return JSON.parse(t);
2199
2199
  }, save(e, t, r) {
@@ -2203,13 +2203,13 @@ const ft = { get(e) {
2203
2203
  let r = {};
2204
2204
  t != null && t.cookieDomain && (r.domain = t.cookieDomain), Hu(e, r);
2205
2205
  } }, bw = { get(e) {
2206
- return ft.get(e) || ft.get(`_legacy_${e}`);
2206
+ return ht.get(e) || ht.get(`_legacy_${e}`);
2207
2207
  }, save(e, t, r) {
2208
2208
  let n = {};
2209
- window.location.protocol === "https:" && (n = { secure: !0 }), r != null && r.daysUntilExpire && (n.expires = r.daysUntilExpire), r != null && r.cookieDomain && (n.domain = r.cookieDomain), zu(`_legacy_${e}`, JSON.stringify(t), n), ft.save(e, t, r);
2209
+ window.location.protocol === "https:" && (n = { secure: !0 }), r != null && r.daysUntilExpire && (n.expires = r.daysUntilExpire), r != null && r.cookieDomain && (n.domain = r.cookieDomain), zu(`_legacy_${e}`, JSON.stringify(t), n), ht.save(e, t, r);
2210
2210
  }, remove(e, t) {
2211
2211
  let r = {};
2212
- t != null && t.cookieDomain && (r.domain = t.cookieDomain), Hu(e, r), ft.remove(e, t), ft.remove(`_legacy_${e}`, t);
2212
+ t != null && t.cookieDomain && (r.domain = t.cookieDomain), Hu(e, r), ht.remove(e, t), ht.remove(`_legacy_${e}`, t);
2213
2213
  } }, Sw = { get(e) {
2214
2214
  if (typeof sessionStorage > "u") return;
2215
2215
  const t = sessionStorage.getItem(e);
@@ -2262,7 +2262,7 @@ let kw = class {
2262
2262
  }
2263
2263
  };
2264
2264
  const Pw = { memory: () => new Fu().enclosedCache, localstorage: () => new vw() }, ws = (e) => Pw[e], bs = (e) => {
2265
- const { openUrl: t, onRedirect: r } = e, n = Se(e, ["openUrl", "onRedirect"]);
2265
+ const { openUrl: t, onRedirect: r } = e, n = Ie(e, ["openUrl", "onRedirect"]);
2266
2266
  return Object.assign(Object.assign({}, n), { openUrl: t === !1 || t ? t : r });
2267
2267
  }, na = new nw();
2268
2268
  let Tw = class {
@@ -2280,7 +2280,7 @@ let Tw = class {
2280
2280
  if (r = t.cacheLocation || "memory", !ws(r)) throw new Error(`Invalid cache location "${r}"`);
2281
2281
  n = ws(r)();
2282
2282
  }
2283
- this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? ft : bw, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((o) => `auth0.${o}.is.authenticated`)(this.options.clientId), this.sessionCheckExpiryDays = t.sessionCheckExpiryDays || 1;
2283
+ this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? ht : bw, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((o) => `auth0.${o}.is.authenticated`)(this.options.clientId), this.sessionCheckExpiryDays = t.sessionCheckExpiryDays || 1;
2284
2284
  const a = t.useCookiesForTransactions ? this.cookieStorage : Sw;
2285
2285
  var i;
2286
2286
  this.scope = $r("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new mw(a, this.options.clientId, this.options.cookieDomain), this.nowProvider = this.options.nowProvider || ju, this.cacheManager = new pw(n, n.allKeys ? void 0 : new kw(n, this.options.clientId), this.nowProvider), this.domainUrl = (i = this.options.domain, /^https?:\/\//.test(i) ? i : `https://${i}`), this.tokenIssuer = ((o, c) => o ? o.startsWith("https://") ? o : `https://${o}/` : `${c}/`)(this.options.issuer, this.domainUrl), typeof window < "u" && window.Worker && this.options.useRefreshTokens && r === "memory" && (this.options.workerUrl ? this.worker = new Worker(this.options.workerUrl) : this.worker = new $w());
@@ -2327,12 +2327,12 @@ let Tw = class {
2327
2327
  }, 1e3 * (c.timeoutInSeconds || 60));
2328
2328
  u = function(h) {
2329
2329
  if (h.data && h.data.type === "authorization_response") {
2330
- if (clearTimeout(d), clearInterval(s), window.removeEventListener("message", u, !1), c.popup.close(), h.data.response.error) return f(ne.fromPayload(h.data.response));
2330
+ if (clearTimeout(d), clearInterval(s), window.removeEventListener("message", u, !1), c.popup.close(), h.data.response.error) return f(ae.fromPayload(h.data.response));
2331
2331
  l(h.data.response);
2332
2332
  }
2333
2333
  }, window.addEventListener("message", u);
2334
2334
  }))(Object.assign(Object.assign({}, r), { timeoutInSeconds: r.timeoutInSeconds || this.options.authorizeTimeoutInSeconds || 60 }));
2335
- if (a.state !== i.state) throw new ne("state_mismatch", "Invalid state");
2335
+ if (a.state !== i.state) throw new ae("state_mismatch", "Invalid state");
2336
2336
  const o = ((n = t.authorizationParams) === null || n === void 0 ? void 0 : n.organization) || this.options.authorizationParams.organization;
2337
2337
  await this._requestToken({ audience: a.audience, scope: a.scope, code_verifier: a.code_verifier, grant_type: "authorization_code", code: i.code, redirect_uri: a.redirect_uri }, { nonceIn: a.nonce, organization: o });
2338
2338
  }
@@ -2348,7 +2348,7 @@ let Tw = class {
2348
2348
  }
2349
2349
  async loginWithRedirect(t = {}) {
2350
2350
  var r;
2351
- const n = bs(t), { openUrl: a, fragment: i, appState: o } = n, c = Se(n, ["openUrl", "fragment", "appState"]), l = ((r = c.authorizationParams) === null || r === void 0 ? void 0 : r.organization) || this.options.authorizationParams.organization, f = await this._prepareAuthorizeUrl(c.authorizationParams || {}), { url: u } = f, s = Se(f, ["url"]);
2351
+ const n = bs(t), { openUrl: a, fragment: i, appState: o } = n, c = Ie(n, ["openUrl", "fragment", "appState"]), l = ((r = c.authorizationParams) === null || r === void 0 ? void 0 : r.organization) || this.options.authorizationParams.organization, f = await this._prepareAuthorizeUrl(c.authorizationParams || {}), { url: u } = f, s = Ie(f, ["url"]);
2352
2352
  this.transactionManager.create(Object.assign(Object.assign(Object.assign({}, s), { appState: o }), l && { organization: l }));
2353
2353
  const d = i ? `${u}#${i}` : u;
2354
2354
  a ? await a(d) : window.location.assign(d);
@@ -2361,9 +2361,9 @@ let Tw = class {
2361
2361
  const d = new URLSearchParams(s);
2362
2362
  return { state: d.get("state"), code: d.get("code") || void 0, error: d.get("error") || void 0, error_description: d.get("error_description") || void 0 };
2363
2363
  })(r.join("")), c = this.transactionManager.get();
2364
- if (!c) throw new ne("missing_transaction", "Invalid state");
2364
+ if (!c) throw new ae("missing_transaction", "Invalid state");
2365
2365
  if (this.transactionManager.remove(), i) throw new iw(i, o || i, n, c.appState);
2366
- if (!c.code_verifier || c.state && c.state !== n) throw new ne("state_mismatch", "Invalid state");
2366
+ if (!c.code_verifier || c.state && c.state !== n) throw new ae("state_mismatch", "Invalid state");
2367
2367
  const l = c.organization, f = c.nonce, u = c.redirect_uri;
2368
2368
  return await this._requestToken(Object.assign({ audience: c.audience, scope: c.scope, code_verifier: c.code_verifier, grant_type: "authorization_code", code: a }, u ? { redirect_uri: u } : {}), { nonceIn: f, organization: l }), { appState: c.appState };
2369
2369
  }
@@ -2388,7 +2388,7 @@ let Tw = class {
2388
2388
  return t.detailedResponse ? a : a == null ? void 0 : a.access_token;
2389
2389
  }
2390
2390
  async _getTokenSilently(t) {
2391
- const { cacheMode: r } = t, n = Se(t, ["cacheMode"]);
2391
+ const { cacheMode: r } = t, n = Ie(t, ["cacheMode"]);
2392
2392
  if (r !== "off") {
2393
2393
  const a = await this._getEntryFromCache({ scope: n.authorizationParams.scope, audience: n.authorizationParams.audience || "default", clientId: this.options.clientId });
2394
2394
  if (a) return a;
@@ -2413,18 +2413,18 @@ let Tw = class {
2413
2413
  async getTokenWithPopup(t = {}, r = {}) {
2414
2414
  var n;
2415
2415
  const a = Object.assign(Object.assign({}, t), { authorizationParams: Object.assign(Object.assign(Object.assign({}, this.options.authorizationParams), t.authorizationParams), { scope: $r(this.scope, (n = t.authorizationParams) === null || n === void 0 ? void 0 : n.scope) }) });
2416
- return r = Object.assign(Object.assign({}, aw), r), await this.loginWithPopup(a, r), (await this.cacheManager.get(new Ye({ scope: a.authorizationParams.scope, audience: a.authorizationParams.audience || "default", clientId: this.options.clientId }))).access_token;
2416
+ return r = Object.assign(Object.assign({}, aw), r), await this.loginWithPopup(a, r), (await this.cacheManager.get(new Xe({ scope: a.authorizationParams.scope, audience: a.authorizationParams.audience || "default", clientId: this.options.clientId }))).access_token;
2417
2417
  }
2418
2418
  async isAuthenticated() {
2419
2419
  return !!await this.getUser();
2420
2420
  }
2421
2421
  _buildLogoutUrl(t) {
2422
2422
  t.clientId !== null ? t.clientId = t.clientId || this.options.clientId : delete t.clientId;
2423
- const r = t.logoutParams || {}, { federated: n } = r, a = Se(r, ["federated"]), i = n ? "&federated" : "";
2423
+ const r = t.logoutParams || {}, { federated: n } = r, a = Ie(r, ["federated"]), i = n ? "&federated" : "";
2424
2424
  return this._url(`/v2/logout?${Aa(Object.assign({ clientId: t.clientId }, a))}`) + i;
2425
2425
  }
2426
2426
  async logout(t = {}) {
2427
- const r = bs(t), { openUrl: n } = r, a = Se(r, ["openUrl"]);
2427
+ const r = bs(t), { openUrl: n } = r, a = Ie(r, ["openUrl"]);
2428
2428
  t.clientId === null ? await this.cacheManager.clear() : await this.cacheManager.clear(t.clientId || this.options.clientId), this.cookieStorage.remove(this.orgHintCookieName, { cookieDomain: this.options.cookieDomain }), this.cookieStorage.remove(this.isAuthenticatedCookieName, { cookieDomain: this.options.cookieDomain }), this.userCache.remove("@@user@@");
2429
2429
  const i = this._buildLogoutUrl(a);
2430
2430
  n ? await n(i) : n !== !1 && window.location.assign(i);
@@ -2434,8 +2434,8 @@ let Tw = class {
2434
2434
  n && !r.organization && (r.organization = n);
2435
2435
  const { url: a, state: i, nonce: o, code_verifier: c, redirect_uri: l, scope: f, audience: u } = await this._prepareAuthorizeUrl(r, { response_mode: "web_message" }, window.location.origin);
2436
2436
  try {
2437
- if (window.crossOriginIsolated) throw new ne("login_required", "The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");
2438
- const s = t.timeoutInSeconds || this.options.authorizeTimeoutInSeconds, d = await ((m, S, g = 60) => new Promise(($, k) => {
2437
+ if (window.crossOriginIsolated) throw new ae("login_required", "The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");
2438
+ const s = t.timeoutInSeconds || this.options.authorizeTimeoutInSeconds, d = await ((m, S, g = 60) => new Promise(($, P) => {
2439
2439
  const b = window.document.createElement("iframe");
2440
2440
  b.setAttribute("width", "0"), b.setAttribute("height", "0"), b.style.display = "none";
2441
2441
  const v = () => {
@@ -2443,15 +2443,15 @@ let Tw = class {
2443
2443
  };
2444
2444
  let I;
2445
2445
  const O = setTimeout(() => {
2446
- k(new ja()), v();
2446
+ P(new ja()), v();
2447
2447
  }, 1e3 * g);
2448
2448
  I = function(_) {
2449
2449
  if (_.origin != S || !_.data || _.data.type !== "authorization_response") return;
2450
2450
  const C = _.source;
2451
- C && C.close(), _.data.response.error ? k(ne.fromPayload(_.data.response)) : $(_.data.response), clearTimeout(O), window.removeEventListener("message", I, !1), setTimeout(v, 2e3);
2451
+ C && C.close(), _.data.response.error ? P(ae.fromPayload(_.data.response)) : $(_.data.response), clearTimeout(O), window.removeEventListener("message", I, !1), setTimeout(v, 2e3);
2452
2452
  }, window.addEventListener("message", I, !1), window.document.body.appendChild(b), b.setAttribute("src", m);
2453
2453
  }))(a, this.domainUrl, s);
2454
- if (i !== d.state) throw new ne("state_mismatch", "Invalid state");
2454
+ if (i !== d.state) throw new ae("state_mismatch", "Invalid state");
2455
2455
  const h = await this._requestToken(Object.assign(Object.assign({}, t.authorizationParams), { code_verifier: c, code: d.code, grant_type: "authorization_code", redirect_uri: l, timeout: t.authorizationParams.timeout || this.httpTimeoutMs }), { nonceIn: o, organization: r.organization });
2456
2456
  return Object.assign(Object.assign({}, h), { scope: f, oauthTokenScope: h.scope, audience: u });
2457
2457
  } catch (s) {
@@ -2459,7 +2459,7 @@ let Tw = class {
2459
2459
  }
2460
2460
  }
2461
2461
  async _getTokenUsingRefreshToken(t) {
2462
- const r = await this.cacheManager.get(new Ye({ scope: t.authorizationParams.scope, audience: t.authorizationParams.audience || "default", clientId: this.options.clientId }));
2462
+ const r = await this.cacheManager.get(new Xe({ scope: t.authorizationParams.scope, audience: t.authorizationParams.audience || "default", clientId: this.options.clientId }));
2463
2463
  if (!(r && r.refresh_token || this.worker)) {
2464
2464
  if (this.options.useRefreshTokensFallback) return await this._getTokenFromIFrame(t);
2465
2465
  throw new Du(t.authorizationParams.audience || "default", t.authorizationParams.scope);
@@ -2474,15 +2474,15 @@ let Tw = class {
2474
2474
  }
2475
2475
  }
2476
2476
  async _saveEntryInCache(t) {
2477
- const { id_token: r, decodedToken: n } = t, a = Se(t, ["id_token", "decodedToken"]);
2477
+ const { id_token: r, decodedToken: n } = t, a = Ie(t, ["id_token", "decodedToken"]);
2478
2478
  this.userCache.set("@@user@@", { id_token: r, decodedToken: n }), await this.cacheManager.setIdToken(this.options.clientId, t.id_token, t.decodedToken), await this.cacheManager.set(a);
2479
2479
  }
2480
2480
  async _getIdTokenFromCache() {
2481
- const t = this.options.authorizationParams.audience || "default", r = await this.cacheManager.getIdToken(new Ye({ clientId: this.options.clientId, audience: t, scope: this.scope })), n = this.userCache.get("@@user@@");
2481
+ const t = this.options.authorizationParams.audience || "default", r = await this.cacheManager.getIdToken(new Xe({ clientId: this.options.clientId, audience: t, scope: this.scope })), n = this.userCache.get("@@user@@");
2482
2482
  return r && r.id_token === (n == null ? void 0 : n.id_token) ? n : (this.userCache.set("@@user@@", r), r);
2483
2483
  }
2484
2484
  async _getEntryFromCache({ scope: t, audience: r, clientId: n }) {
2485
- const a = await this.cacheManager.get(new Ye({ scope: t, audience: r, clientId: n }), 60);
2485
+ const a = await this.cacheManager.get(new Xe({ scope: t, audience: r, clientId: n }), 60);
2486
2486
  if (a && a.access_token) {
2487
2487
  const { access_token: i, oauthTokenScope: o, expires_in: c } = a, l = await this._getIdTokenFromCache();
2488
2488
  return l && Object.assign(Object.assign({ id_token: l.id_token, access_token: i }, o ? { scope: o } : null), { expires_in: c });
@@ -2497,13 +2497,13 @@ async function Ew(e) {
2497
2497
  const t = new Tw(e);
2498
2498
  return await t.checkSession(), t;
2499
2499
  }
2500
- var ge = /* @__PURE__ */ ((e) => (e.READY = "sesamyJsReady", e.AUTHENTICATED = "sesamyJsAuthenticated", e.LOGOUT = "sesamyJsLogout", e.CLEAR_CACHE = "sesamyJsClearCache", e.USER_ATTRIBUTE_CHANGED = "sesamyUserAttributeChanged", e.PURCHASE = "sesamyJsPurchase", e))(ge || {});
2500
+ var ye = /* @__PURE__ */ ((e) => (e.READY = "sesamyJsReady", e.AUTHENTICATED = "sesamyJsAuthenticated", e.LOGOUT = "sesamyJsLogout", e.CLEAR_CACHE = "sesamyJsClearCache", e.USER_ATTRIBUTE_CHANGED = "sesamyUserAttributeChanged", e.PURCHASE = "sesamyJsPurchase", e))(ye || {});
2501
2501
  const Ow = "sesamy.com", _w = "sesamy.dev", Rw = "https://sesa.my", xa = "sesamyCacheTimestamp";
2502
- function Ae(e, t) {
2502
+ function xe(e, t) {
2503
2503
  return `https://${e}.${t === "dev" ? _w : Ow}`;
2504
2504
  }
2505
- let ae, Bu;
2506
- const St = "sesamyAccessToken", aa = "sesamyRefreshToken";
2505
+ let ie, Bu;
2506
+ const $t = "sesamyAccessToken", aa = "sesamyRefreshToken";
2507
2507
  async function Cw(e) {
2508
2508
  if (!e)
2509
2509
  return null;
@@ -2525,13 +2525,13 @@ async function Cw(e) {
2525
2525
  if (!a.ok)
2526
2526
  throw localStorage.removeItem(aa), new Error("Renew token failed");
2527
2527
  const i = await a.json();
2528
- return localStorage.setItem(aa, i.refresh_token), localStorage.setItem(St, i.access_token), i.access_token;
2528
+ return localStorage.setItem(aa, i.refresh_token), localStorage.setItem($t, i.access_token), i.access_token;
2529
2529
  } catch {
2530
2530
  Ku();
2531
2531
  }
2532
2532
  }
2533
2533
  async function Ii() {
2534
- const e = localStorage.getItem(St);
2534
+ const e = localStorage.getItem($t);
2535
2535
  if (!e)
2536
2536
  return null;
2537
2537
  const t = Gu(e);
@@ -2539,7 +2539,7 @@ async function Ii() {
2539
2539
  const r = await Cw(t);
2540
2540
  if (r)
2541
2541
  return r;
2542
- localStorage.removeItem(St);
2542
+ localStorage.removeItem($t);
2543
2543
  }
2544
2544
  return e;
2545
2545
  }
@@ -2556,15 +2556,15 @@ async function jw(e) {
2556
2556
  return;
2557
2557
  Bu = e.organization;
2558
2558
  const t = {
2559
- domain: Ae("token", e.environment),
2559
+ domain: xe("token", e.environment),
2560
2560
  clientId: e.clientId,
2561
2561
  useCookiesForTransactions: !0
2562
2562
  };
2563
- if (Ss(window.location.href) !== Ss(Ae("auth", e.environment)) && (t.cacheLocation = "localstorage", t.useRefreshTokens = !0), ae = await Ew(t), window.location.search.includes("code="))
2563
+ if (Ss(window.location.href) !== Ss(xe("auth", e.environment)) && (t.cacheLocation = "localstorage", t.useRefreshTokens = !0), ie = await Ew(t), window.location.search.includes("code="))
2564
2564
  try {
2565
- await ae.handleRedirectCallback();
2566
- const r = await ae.getUser();
2567
- De(ge.AUTHENTICATED, r);
2565
+ await ie.handleRedirectCallback();
2566
+ const r = await ie.getUser();
2567
+ Fe(ye.AUTHENTICATED, r);
2568
2568
  const n = new URL(location.href), a = n.searchParams;
2569
2569
  a.delete("code"), a.delete("state"), n.search = a.toString(), window.history.replaceState({}, document.title, n.toString());
2570
2570
  } catch (r) {
@@ -2572,19 +2572,19 @@ async function jw(e) {
2572
2572
  }
2573
2573
  }
2574
2574
  async function $i() {
2575
- return await Ii() ? !0 : ae ? ae.isAuthenticated() : !1;
2575
+ return await Ii() ? !0 : ie ? ie.isAuthenticated() : !1;
2576
2576
  }
2577
2577
  async function Aw() {
2578
2578
  return await Ii() ? {
2579
2579
  sub: "local",
2580
2580
  name: "Local User"
2581
- } : ae ? ae.getUser() : null;
2581
+ } : ie ? ie.getUser() : null;
2582
2582
  }
2583
2583
  function ki(e) {
2584
- if (localStorage.removeItem(St), !ae)
2584
+ if (localStorage.removeItem($t), !ie)
2585
2585
  throw new Error("Auth0 client not initialized");
2586
2586
  const t = (e == null ? void 0 : e.authorizationParams) || {};
2587
- return ae.loginWithRedirect({
2587
+ return ie.loginWithRedirect({
2588
2588
  ...e,
2589
2589
  authorizationParams: {
2590
2590
  organization: Bu,
@@ -2593,12 +2593,12 @@ function ki(e) {
2593
2593
  }
2594
2594
  });
2595
2595
  }
2596
- async function Ft(e = !0) {
2596
+ async function zt(e = !0) {
2597
2597
  const t = Ii();
2598
2598
  if (t)
2599
2599
  return t;
2600
2600
  try {
2601
- return ae ? await ae.getTokenSilently() : null;
2601
+ return ie ? await ie.getTokenSilently() : null;
2602
2602
  } catch (r) {
2603
2603
  if (e)
2604
2604
  throw r;
@@ -2606,8 +2606,8 @@ async function Ft(e = !0) {
2606
2606
  }
2607
2607
  }
2608
2608
  async function Ku(e = {}) {
2609
- if (localStorage.removeItem(St), De(ge.LOGOUT, {}), !!ae)
2610
- return ae.logout({
2609
+ if (localStorage.removeItem($t), Fe(ye.LOGOUT, {}), !!ie)
2610
+ return ie.logout({
2611
2611
  ...e,
2612
2612
  // Default to the current URL if no returnTo is specified
2613
2613
  logoutParams: { returnTo: window.location.href, ...e.logoutParams }
@@ -2628,7 +2628,7 @@ async function Wu(e) {
2628
2628
  const t = Gu(e);
2629
2629
  if (!t || !t.exp || t.exp < (/* @__PURE__ */ new Date()).getTime() / 1e3)
2630
2630
  throw new Error("Invalid token");
2631
- localStorage.setItem(St, e), De(ge.AUTHENTICATED, t);
2631
+ localStorage.setItem($t, e), Fe(ye.AUTHENTICATED, t);
2632
2632
  }
2633
2633
  const Lw = (e, t) => t.skipDedupe || t.method !== "GET", xw = (e, t) => t.method + "@" + e, Uw = (e) => e.clone(), Is = ({ skip: e = Lw, key: t = xw, resolver: r = Uw } = {}) => {
2634
2634
  const n = /* @__PURE__ */ new Map();
@@ -2662,9 +2662,9 @@ const Lw = (e, t) => t.skipDedupe || t.method !== "GET", xw = (e, t) => t.method
2662
2662
  error: m,
2663
2663
  url: f,
2664
2664
  options: u
2665
- })).then((k = {}) => {
2665
+ })).then((P = {}) => {
2666
2666
  var b, v;
2667
- g(l((b = k && k.url) !== null && b !== void 0 ? b : f, (v = k && k.options) !== null && v !== void 0 ? v : u));
2667
+ g(l((b = P && P.url) !== null && b !== void 0 ? b : f, (v = P && P.options) !== null && v !== void 0 ? v : u));
2668
2668
  }) : g(l(f, u));
2669
2669
  }, $);
2670
2670
  }).then(d).catch((g) => {
@@ -2677,7 +2677,7 @@ const Lw = (e, t) => t.skipDedupe || t.method !== "GET", xw = (e, t) => t.method
2677
2677
  throw h;
2678
2678
  return d(null, h);
2679
2679
  });
2680
- }, Mw = "application/json", Vu = "Content-Type", ut = Symbol(), Zu = Symbol();
2680
+ }, Mw = "application/json", Vu = "Content-Type", ft = Symbol(), Zu = Symbol();
2681
2681
  function ks(e = {}) {
2682
2682
  var t;
2683
2683
  return (t = Object.entries(e).find(([r]) => r.toLowerCase() === Vu.toLowerCase())) === null || t === void 0 ? void 0 : t[1];
@@ -2685,12 +2685,12 @@ function ks(e = {}) {
2685
2685
  function Ps(e) {
2686
2686
  return /^application\/.*json.*/.test(e);
2687
2687
  }
2688
- const Xe = function(e, t, r = !1) {
2688
+ const Qe = function(e, t, r = !1) {
2689
2689
  return Object.entries(t).reduce((n, [a, i]) => {
2690
2690
  const o = e[a];
2691
- return Array.isArray(o) && Array.isArray(i) ? n[a] = r ? [...o, ...i] : i : typeof o == "object" && typeof i == "object" ? n[a] = Xe(o, i, r) : n[a] = i, n;
2691
+ return Array.isArray(o) && Array.isArray(i) ? n[a] = r ? [...o, ...i] : i : typeof o == "object" && typeof i == "object" ? n[a] = Qe(o, i, r) : n[a] = i, n;
2692
2692
  }, { ...e });
2693
- }, It = {
2693
+ }, kt = {
2694
2694
  // Default options
2695
2695
  options: {},
2696
2696
  // Error type
@@ -2713,13 +2713,13 @@ const Xe = function(e, t, r = !1) {
2713
2713
  }
2714
2714
  };
2715
2715
  function Fw(e, t = !1) {
2716
- It.options = t ? e : Xe(It.options, e);
2716
+ kt.options = t ? e : Qe(kt.options, e);
2717
2717
  }
2718
2718
  function zw(e, t = !1) {
2719
- It.polyfills = t ? e : Xe(It.polyfills, e);
2719
+ kt.polyfills = t ? e : Qe(kt.polyfills, e);
2720
2720
  }
2721
2721
  function Hw(e) {
2722
- It.errorType = e;
2722
+ kt.errorType = e;
2723
2723
  }
2724
2724
  const Bw = (e) => (t) => e.reduceRight((r, n) => n(r), t) || t;
2725
2725
  class Yu extends Error {
@@ -2727,10 +2727,10 @@ class Yu extends Error {
2727
2727
  const Kw = (e) => {
2728
2728
  const t = /* @__PURE__ */ Object.create(null);
2729
2729
  e = e._addons.reduce((b, v) => v.beforeRequest && v.beforeRequest(b, e._options, t) || b, e);
2730
- const { _url: r, _options: n, _config: a, _catchers: i, _resolvers: o, _middlewares: c, _addons: l } = e, f = new Map(i), u = Xe(a.options, n);
2730
+ const { _url: r, _options: n, _config: a, _catchers: i, _resolvers: o, _middlewares: c, _addons: l } = e, f = new Map(i), u = Qe(a.options, n);
2731
2731
  let s = r;
2732
2732
  const d = Bw(c)((b, v) => (s = b, a.polyfill("fetch")(b, v)))(r, u), h = new Error(), m = d.catch((b) => {
2733
- throw { [ut]: b };
2733
+ throw { [ft]: b };
2734
2734
  }).then((b) => {
2735
2735
  if (!b.ok) {
2736
2736
  const v = new Yu();
@@ -2749,7 +2749,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
2749
2749
  }
2750
2750
  return b;
2751
2751
  }), S = (b) => b.catch((v) => {
2752
- const I = v.hasOwnProperty(ut), O = I ? v[ut] : v, _ = (O == null ? void 0 : O.status) && f.get(O.status) || f.get(O == null ? void 0 : O.name) || I && f.has(ut) && f.get(ut);
2752
+ const I = v.hasOwnProperty(ft), O = I ? v[ft] : v, _ = (O == null ? void 0 : O.status) && f.get(O.status) || f.get(O == null ? void 0 : O.name) || I && f.has(ft) && f.get(ft);
2753
2753
  if (_)
2754
2754
  return _(O, e);
2755
2755
  const C = f.get(Zu);
@@ -2788,17 +2788,17 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
2788
2788
  return this.error(500, b);
2789
2789
  },
2790
2790
  fetchError(b) {
2791
- return this.error(ut, b);
2791
+ return this.error(ft, b);
2792
2792
  }
2793
- }, k = l.reduce((b, v) => ({
2793
+ }, P = l.reduce((b, v) => ({
2794
2794
  ...b,
2795
2795
  ...typeof v.resolver == "function" ? v.resolver(b) : v.resolver
2796
2796
  }), $);
2797
- return o.reduce((b, v) => v(b, e), k);
2797
+ return o.reduce((b, v) => v(b, e), P);
2798
2798
  }, Gw = {
2799
2799
  _url: "",
2800
2800
  _options: {},
2801
- _config: It,
2801
+ _config: kt,
2802
2802
  _catchers: /* @__PURE__ */ new Map(),
2803
2803
  _resolvers: [],
2804
2804
  _deferred: [],
@@ -2821,7 +2821,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
2821
2821
  ...this,
2822
2822
  _config: {
2823
2823
  ...this._config,
2824
- polyfills: t ? e : Xe(this._config.polyfills, e)
2824
+ polyfills: t ? e : Qe(this._config.polyfills, e)
2825
2825
  }
2826
2826
  };
2827
2827
  },
@@ -2835,11 +2835,11 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
2835
2835
  };
2836
2836
  },
2837
2837
  options(e, t = !1) {
2838
- return { ...this, _options: t ? e : Xe(this._options, e) };
2838
+ return { ...this, _options: t ? e : Qe(this._options, e) };
2839
2839
  },
2840
2840
  headers(e) {
2841
2841
  const t = e ? Array.isArray(e) ? Object.fromEntries(e) : "entries" in e ? Object.fromEntries(e.entries()) : e : {};
2842
- return { ...this, _options: Xe(this._options, { headers: t }) };
2842
+ return { ...this, _options: Qe(this._options, { headers: t }) };
2843
2843
  },
2844
2844
  accept(e) {
2845
2845
  return this.headers({ Accept: e });
@@ -2906,78 +2906,78 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
2906
2906
  return this.content(t || Ps(r) && r || Mw).body(JSON.stringify(e));
2907
2907
  }
2908
2908
  };
2909
- function _e(e = "", t = {}) {
2909
+ function Re(e = "", t = {}) {
2910
2910
  return { ...Gw, _url: e, _options: t };
2911
2911
  }
2912
- _e.default = _e;
2913
- _e.options = Fw;
2914
- _e.errorType = Hw;
2915
- _e.polyfills = zw;
2916
- _e.WretchError = Yu;
2917
- function ve() {
2918
- sessionStorage.removeItem(xa), De(ge.CLEAR_CACHE, {});
2912
+ Re.default = Re;
2913
+ Re.options = Fw;
2914
+ Re.errorType = Hw;
2915
+ Re.polyfills = zw;
2916
+ Re.WretchError = Yu;
2917
+ function pe() {
2918
+ sessionStorage.removeItem(xa), Fe(ye.CLEAR_CACHE, {});
2919
2919
  }
2920
2920
  function Ts() {
2921
2921
  var r;
2922
2922
  return (r = (document.documentElement.getAttribute("lang") ?? "en").split("-")[0]) == null ? void 0 : r.toLocaleLowerCase();
2923
2923
  }
2924
2924
  function Ww(e) {
2925
- const t = Ae("api2", e.environment), r = (w) => async (P, T) => {
2926
- let M = sessionStorage.getItem(xa);
2927
- M || (M = Date.now().toString(), sessionStorage.setItem(xa, M));
2928
- const N = {
2925
+ const t = xe("api2", e.environment), r = (w) => async (k, T) => {
2926
+ let H = sessionStorage.getItem(xa);
2927
+ H || (H = Date.now().toString(), sessionStorage.setItem(xa, H));
2928
+ const ee = {
2929
2929
  ...T,
2930
2930
  headers: {
2931
2931
  ...T.headers,
2932
- "Cache-Timestamp": M
2932
+ "Cache-Timestamp": H
2933
2933
  }
2934
2934
  };
2935
- return w(P, N);
2936
- }, n = (w = !0) => (P) => async (T, M) => {
2937
- let N = null;
2938
- if (N = await Ft(w), !N) {
2935
+ return w(k, ee);
2936
+ }, n = (w = !0) => (k) => async (T, H) => {
2937
+ let ee = null;
2938
+ if (ee = await zt(w), !ee) {
2939
2939
  if (w)
2940
2940
  throw new Error("No access token available");
2941
- return P(T, M);
2941
+ return k(T, H);
2942
2942
  }
2943
- const Q = {
2944
- ...M,
2943
+ const je = {
2944
+ ...H,
2945
2945
  headers: {
2946
- ...M.headers,
2947
- ...N ? { Authorization: `Bearer ${N}` } : {}
2946
+ ...H.headers,
2947
+ ...ee ? { Authorization: `Bearer ${ee}` } : {}
2948
2948
  }
2949
2949
  };
2950
- return P(T, Q);
2951
- }, a = (w) => (P, T) => {
2950
+ return k(T, je);
2951
+ }, a = (w) => (k, T) => {
2952
2952
  if (T.headers.Authorization)
2953
- return w(P, T);
2954
- const M = localStorage.getItem("__anon_id"), N = btoa(`${M}:`), Q = {
2953
+ return w(k, T);
2954
+ const H = localStorage.getItem("__anon_id"), ee = btoa(`${H}:`), je = {
2955
2955
  ...T,
2956
2956
  headers: {
2957
2957
  ...T.headers,
2958
- Authorization: `Basic ${N}`
2958
+ Authorization: `Basic ${ee}`
2959
2959
  }
2960
2960
  };
2961
- return w(P, Q);
2962
- }, i = _e(t).headers({ "Content-Type": "application/json" }).middlewares([
2961
+ return w(k, je);
2962
+ }, i = Re(t).headers({ "Content-Type": "application/json" }).middlewares([
2963
2963
  r,
2964
2964
  n(),
2965
2965
  Is(),
2966
2966
  $s({
2967
2967
  delayTimer: 1e3,
2968
- delayRamp: (w, P) => w * P,
2968
+ delayRamp: (w, k) => w * k,
2969
2969
  maxAttempts: 3,
2970
2970
  until: (w) => !!(w && (w.ok || w.status >= 400 && w.status < 500)),
2971
2971
  retryOnNetworkError: !1
2972
2972
  })
2973
- ]), o = _e(t).headers({ "Content-Type": "application/json" }).middlewares([
2973
+ ]), o = Re(t).headers({ "Content-Type": "application/json" }).middlewares([
2974
2974
  r,
2975
2975
  n(!1),
2976
2976
  a,
2977
2977
  Is(),
2978
2978
  $s({
2979
2979
  delayTimer: 1e3,
2980
- delayRamp: (w, P) => w * P,
2980
+ delayRamp: (w, k) => w * k,
2981
2981
  maxAttempts: 3,
2982
2982
  until: (w) => !!(w && (w.ok || w.status >= 400 && w.status < 500)),
2983
2983
  retryOnNetworkError: !1
@@ -2987,8 +2987,8 @@ function Ww(e) {
2987
2987
  return i.get("/entitlements").json();
2988
2988
  }
2989
2989
  async function l(w) {
2990
- const P = await i.get("/entitlements").json();
2991
- return P == null ? void 0 : P.find((T) => T.id === w);
2990
+ const k = await i.get("/entitlements").json();
2991
+ return k == null ? void 0 : k.find((T) => T.id === w);
2992
2992
  }
2993
2993
  async function f(w) {
2994
2994
  return i.get(`/entitlements/${w}/access`).json();
@@ -2997,153 +2997,162 @@ function Ww(e) {
2997
2997
  return i.get("/contracts").json();
2998
2998
  }
2999
2999
  async function s(w) {
3000
- const P = await i.get("/contracts").json();
3001
- return P == null ? void 0 : P.find((T) => T.id === w);
3000
+ const k = await i.get("/contracts").json();
3001
+ return k == null ? void 0 : k.find((T) => T.id === w);
3002
3002
  }
3003
3003
  async function d() {
3004
- return i.get("/subscriptions").json();
3004
+ return console.warn("getSubscriptions is deprecated, use getContracts instead"), i.get("/subscriptions").json();
3005
3005
  }
3006
3006
  async function h() {
3007
3007
  return i.get("/bills").json();
3008
3008
  }
3009
3009
  async function m(w) {
3010
- const P = await i.get("/bills").json();
3011
- return P == null ? void 0 : P.find((T) => T.id === w);
3010
+ const k = await i.get("/bills").json();
3011
+ return k == null ? void 0 : k.find((T) => T.id === w);
3012
3012
  }
3013
- async function S(w, P) {
3014
- const T = await i.url(`/user-metadata/${w}`).put(P).json();
3015
- return De(ge.USER_ATTRIBUTE_CHANGED, {}), ve(), T;
3013
+ async function S() {
3014
+ return i.get("/transactions").json();
3016
3015
  }
3017
3016
  async function g(w) {
3018
- const P = await i.url(`/user-metadata/${w}`).delete().res();
3019
- return ve(), P.ok;
3017
+ const k = await i.get("/transactions").json();
3018
+ return k == null ? void 0 : k.find((T) => T.id === w);
3020
3019
  }
3021
- async function $(w) {
3020
+ async function $(w, k) {
3021
+ const T = await i.url(`/user-metadata/${w}`).put(k).json();
3022
+ return Fe(ye.USER_ATTRIBUTE_CHANGED, {}), pe(), T;
3023
+ }
3024
+ async function P(w) {
3025
+ const k = await i.url(`/user-metadata/${w}`).delete().res();
3026
+ return pe(), k.ok;
3027
+ }
3028
+ async function b(w) {
3022
3029
  return (await i.url(`/user-metadata/${w}`).get().json())[w];
3023
3030
  }
3024
- async function k() {
3031
+ async function v() {
3025
3032
  return await i.url("/user-metadata").get().json();
3026
3033
  }
3027
- async function b() {
3034
+ async function I() {
3028
3035
  return await i.url("/tags").get().json();
3029
3036
  }
3030
- async function v(w) {
3031
- const P = await i.url(`/tags/${w}`).delete().res();
3032
- return ve(), P.ok;
3037
+ async function O(w) {
3038
+ const k = await i.url(`/tags/${w}`).delete().res();
3039
+ return pe(), k.ok;
3033
3040
  }
3034
- async function I(w) {
3035
- const P = await i.url("/tags").post(w).res();
3036
- return De(ge.USER_ATTRIBUTE_CHANGED, {}), ve(), P.ok;
3041
+ async function _(w) {
3042
+ const k = await i.url("/tags").post(w).res();
3043
+ return Fe(ye.USER_ATTRIBUTE_CHANGED, {}), pe(), k.ok;
3037
3044
  }
3038
- async function O(w) {
3045
+ async function C(w) {
3039
3046
  return (await o.url("/tallies").get().json())[w];
3040
3047
  }
3041
- async function _() {
3048
+ async function M() {
3042
3049
  return await o.url("/tallies").get().json();
3043
3050
  }
3044
- async function C(w) {
3045
- const P = await o.url(`/tallies/${w}`).delete().res();
3046
- return ve(), P.ok;
3051
+ async function F(w) {
3052
+ const k = await o.url(`/tallies/${w}`).delete().res();
3053
+ return pe(), k.ok;
3047
3054
  }
3048
- async function F(w, P) {
3049
- return await o.url(`/tallies/${w}/push`).post(P).json();
3055
+ async function G(w, k) {
3056
+ return await o.url(`/tallies/${w}/push`).post(k).json();
3050
3057
  }
3051
- async function z(w) {
3058
+ async function L(w) {
3052
3059
  return await i.url(`/products/${w}`).get().json();
3053
3060
  }
3054
- async function G() {
3055
- return await Ft(!1) ? await i.url("/profile").get().json() : null;
3061
+ async function N() {
3062
+ return await zt(!1) ? await i.url("/profile").get().json() : null;
3056
3063
  }
3057
- async function L(w) {
3058
- const P = await i.url("/profile").patch(w).res();
3059
- return ve(), P.ok;
3064
+ async function z(w) {
3065
+ const k = await i.url("/profile").patch(w).res();
3066
+ return pe(), k.ok;
3060
3067
  }
3061
- async function D() {
3068
+ async function R() {
3062
3069
  return await i.url("/payment-issues").get().json();
3063
3070
  }
3064
- async function H() {
3071
+ async function B() {
3065
3072
  return (await i.url("/profile/spotify-link").get().json()).isSpotifyLinked;
3066
3073
  }
3067
- async function R() {
3074
+ async function W() {
3068
3075
  return (await i.url("/profile/unlink-spotify").post().res()).ok;
3069
3076
  }
3070
- async function B(w) {
3071
- const P = await Ft(!1);
3072
- if (!P)
3077
+ async function Ke(w) {
3078
+ const k = await zt(!1);
3079
+ if (!k)
3073
3080
  throw new Error("No access token available");
3074
- const T = new URL(`${Ae("spotify-oas", e.environment)}/sesamy-callback`);
3075
- T.searchParams.set("access_token", P), T.searchParams.set("state", w), window.location.href = T.toString();
3081
+ const T = new URL(`${xe("spotify-oas", e.environment)}/sesamy-callback`);
3082
+ T.searchParams.set("access_token", k), T.searchParams.set("state", w), window.location.href = T.toString();
3076
3083
  }
3077
- async function W(w) {
3078
- const P = await i.url(`/products/${w}/auto-onboard`).post().json();
3079
- return P.length && ve(), P;
3084
+ async function p(w) {
3085
+ const k = await i.url(`/products/${w}/auto-onboard`).post().json();
3086
+ return k.length && pe(), k;
3080
3087
  }
3081
- async function He(w, P = 3600) {
3082
- const { shortlink: T } = await _e(Rw).post({ url: w, ttl: P }).json();
3088
+ async function y(w, k = 3600) {
3089
+ const { shortlink: T } = await Re(Rw).post({ url: w, ttl: k }).json();
3083
3090
  return T;
3084
3091
  }
3085
- async function p(w) {
3086
- const P = await Ft(!1);
3092
+ async function E(w) {
3093
+ const k = await zt(!1);
3087
3094
  let T;
3088
- const M = w.language || Ts();
3095
+ const H = w.language || Ts();
3089
3096
  switch (w.target) {
3090
3097
  case "account":
3091
- T = new URL(`${Ae("account", e.environment)}/${M}/subscriptions/${e.clientId}`);
3098
+ T = new URL(`${xe("account", e.environment)}/${H}/subscriptions/${e.clientId}`);
3092
3099
  break;
3093
3100
  case "consume":
3094
- T = new URL(`${Ae("consume", e.environment)}/${M}/@${e.clientId}/${w.sku}`), w.episodeId ? T.href += `/${w.episodeId}` : T.href += "/listen";
3101
+ T = new URL(`${xe("consume", e.environment)}/${H}/@${e.clientId}/${w.sku}`), w.episodeId ? T.href += `/${w.episodeId}` : T.href += "/listen";
3095
3102
  break;
3096
3103
  default:
3097
3104
  throw new Error("Invalid target");
3098
3105
  }
3099
- return T.searchParams.set("sesamy-redirect-url", w.redirectUrl || window.location.href), P && (T.hash = `#access_token=${P}`), w.shorten ? He(T.href, w.ttl) : T.href;
3106
+ return T.searchParams.set("sesamy-redirect-url", w.redirectUrl || window.location.href), k && (T.hash = `#access_token=${k}`), w.shorten ? y(T.href, w.ttl) : T.href;
3100
3107
  }
3101
- async function y(w) {
3108
+ async function x(w) {
3102
3109
  return (await o.url("/checkouts").post({ language: Ts(), ...w, vendorId: e.clientId })).json();
3103
3110
  }
3104
- async function E(w, P) {
3105
- return (await o.url(`/checkouts/${w}`).patch(P)).json();
3111
+ async function U(w, k) {
3112
+ return (await o.url(`/checkouts/${w}`).patch(k)).json();
3106
3113
  }
3107
- async function x(w) {
3114
+ async function D(w) {
3108
3115
  return (await o.url(`/checkouts/${w}`).get()).json();
3109
3116
  }
3110
- async function U() {
3111
- const w = await Ft(!1), P = new URL(`${Ae("account", e.environment)}/subscriptions/${e.clientId}`);
3112
- w && (P.hash = `#access_token=${w}`), window.location.href = P.toString();
3117
+ async function V() {
3118
+ const w = await zt(!1), k = new URL(`${xe("account", e.environment)}/subscriptions/${e.clientId}`);
3119
+ w && (k.hash = `#access_token=${w}`), window.location.href = k.toString();
3113
3120
  }
3114
3121
  return {
3115
- createCheckout: y,
3116
- updateCheckout: E,
3117
- getCheckout: x,
3122
+ createCheckout: x,
3123
+ updateCheckout: U,
3124
+ getCheckout: D,
3118
3125
  getEntitlements: c,
3119
3126
  getEntitlement: l,
3120
3127
  getEntitlementAccess: f,
3121
3128
  getContracts: u,
3122
3129
  getContract: s,
3123
- getProfile: G,
3124
- updateProfile: L,
3130
+ getProfile: N,
3131
+ updateProfile: z,
3125
3132
  getSubscriptions: d,
3126
3133
  getBills: h,
3127
3134
  getBill: m,
3128
- setUserMetadata: S,
3129
- deleteUserMetadata: g,
3130
- getUserMetadata: $,
3131
- listUserMetadata: k,
3132
- getTags: b,
3133
- deleteTag: v,
3134
- setTag: I,
3135
- getTally: O,
3136
- getTallies: _,
3137
- deleteTally: C,
3138
- pushTally: F,
3139
- getProduct: z,
3140
- getPaymentIssues: D,
3141
- autoOnboardProduct: W,
3142
- isSpotifyLinked: H,
3143
- unlinkSpotify: R,
3144
- linkSpotify: B,
3145
- generateLink: p,
3146
- openHostedAccountPage: U
3135
+ setUserMetadata: $,
3136
+ deleteUserMetadata: P,
3137
+ getUserMetadata: b,
3138
+ listUserMetadata: v,
3139
+ getTags: I,
3140
+ deleteTag: O,
3141
+ setTag: _,
3142
+ getTally: C,
3143
+ getTallies: M,
3144
+ deleteTally: F,
3145
+ pushTally: G,
3146
+ getTransactions: S,
3147
+ getTransaction: g,
3148
+ getProduct: L,
3149
+ getPaymentIssues: R,
3150
+ autoOnboardProduct: p,
3151
+ isSpotifyLinked: B,
3152
+ unlinkSpotify: W,
3153
+ linkSpotify: Ke,
3154
+ generateLink: E,
3155
+ openHostedAccountPage: V
3147
3156
  };
3148
3157
  }
3149
3158
  const Ju = "@sesamy/sesamy-js", Pi = "1.13.2";
@@ -3152,12 +3161,12 @@ function Es(e, t, r, n, a) {
3152
3161
  return e === a ? r : e;
3153
3162
  }
3154
3163
  var kr = "undefined", Os = "object", Ua = function() {
3155
- }, Xu = "any", qu = "*", et = "__", Gr = typeof process < "u" ? process : {};
3164
+ }, Xu = "any", qu = "*", rt = "__", Gr = typeof process < "u" ? process : {};
3156
3165
  Gr.env && Gr.env.NODE_ENV;
3157
- var V = typeof document < "u";
3166
+ var Z = typeof document < "u";
3158
3167
  Gr.versions != null && Gr.versions.node != null;
3159
3168
  typeof Deno < "u" && Deno.core;
3160
- V && window.name === "nodejs" || typeof navigator < "u" && navigator.userAgent !== void 0 && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom"));
3169
+ Z && window.name === "nodejs" || typeof navigator < "u" && navigator.userAgent !== void 0 && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom"));
3161
3170
  function Qu(e, t) {
3162
3171
  return t.charAt(0)[e]() + t.slice(1);
3163
3172
  }
@@ -3170,11 +3179,11 @@ function Wr(e, t) {
3170
3179
  var r = Yw(e);
3171
3180
  return t ? Zw(r) : r;
3172
3181
  }
3173
- function cr(e, t) {
3182
+ function ur(e, t) {
3174
3183
  return typeof t === e;
3175
3184
  }
3176
- var te = cr.bind(null, "function"), Ue = cr.bind(null, "string"), vt = cr.bind(null, "undefined"), Jw = cr.bind(null, "boolean");
3177
- cr.bind(null, "symbol");
3185
+ var re = ur.bind(null, "function"), De = ur.bind(null, "string"), mt = ur.bind(null, "undefined"), Jw = ur.bind(null, "boolean");
3186
+ ur.bind(null, "symbol");
3178
3187
  function el(e) {
3179
3188
  return e === null;
3180
3189
  }
@@ -3184,7 +3193,7 @@ function Xw(e) {
3184
3193
  function tl(e) {
3185
3194
  return Wr(e) === "array";
3186
3195
  }
3187
- function ee(e) {
3196
+ function te(e) {
3188
3197
  if (!qw(e)) return !1;
3189
3198
  for (var t = e; Object.getPrototypeOf(t) !== null; ) t = Object.getPrototypeOf(t);
3190
3199
  return Object.getPrototypeOf(e) === t;
@@ -3193,10 +3202,10 @@ function qw(e) {
3193
3202
  return e && (typeof e == "object" || e !== null);
3194
3203
  }
3195
3204
  function Qw(e) {
3196
- return te(e.constructor) ? e.constructor.name : null;
3205
+ return re(e.constructor) ? e.constructor.name : null;
3197
3206
  }
3198
3207
  function eb(e) {
3199
- return e instanceof Error || Ue(e.message) && e.constructor && Xw(e.constructor.stackTraceLimit);
3208
+ return e instanceof Error || De(e.message) && e.constructor && Xw(e.constructor.stackTraceLimit);
3200
3209
  }
3201
3210
  function rl(e, t) {
3202
3211
  if (typeof t != "object" || el(t)) return !1;
@@ -3238,7 +3247,7 @@ function _s(e) {
3238
3247
  }
3239
3248
  }
3240
3249
  function nb() {
3241
- if (V) {
3250
+ if (Z) {
3242
3251
  var e = navigator, t = e.languages;
3243
3252
  return e.userLanguage || (t && t.length ? t[0] : e.language);
3244
3253
  }
@@ -3263,7 +3272,7 @@ function ib(e) {
3263
3272
  }
3264
3273
  return n;
3265
3274
  }(function(t) {
3266
- return V && window.location.search.substring(1);
3275
+ return Z && window.location.search.substring(1);
3267
3276
  }());
3268
3277
  }
3269
3278
  function ob(e, t, r) {
@@ -3292,17 +3301,17 @@ function sb(e, t) {
3292
3301
  return r = this, n = arguments, f <= 0 ? (clearTimeout(i), i = null, o = l, a = e.apply(r, n)) : i || (i = setTimeout(c, f)), a;
3293
3302
  };
3294
3303
  }
3295
- var Jt = "global", $t = et + "global" + et, kt = typeof self === Os && self.self === self && self || typeof global === Os && global.global === global && global || void 0;
3296
- function tt(e) {
3297
- return kt[$t][e];
3304
+ var Xt = "global", Pt = rt + "global" + rt, Tt = typeof self === Os && self.self === self && self || typeof global === Os && global.global === global && global || void 0;
3305
+ function nt(e) {
3306
+ return Tt[Pt][e];
3298
3307
  }
3299
- function rt(e, t) {
3300
- return kt[$t][e] = t;
3308
+ function at(e, t) {
3309
+ return Tt[Pt][e] = t;
3301
3310
  }
3302
- function Rt(e) {
3303
- delete kt[$t][e];
3311
+ function jt(e) {
3312
+ delete Tt[Pt][e];
3304
3313
  }
3305
- function Ct(e, t, r) {
3314
+ function At(e, t, r) {
3306
3315
  var n;
3307
3316
  try {
3308
3317
  if (Ti(e)) {
@@ -3313,7 +3322,7 @@ function Ct(e, t, r) {
3313
3322
  }
3314
3323
  return n || r;
3315
3324
  }
3316
- kt[$t] || (kt[$t] = {});
3325
+ Tt[Pt] || (Tt[Pt] = {});
3317
3326
  var Pr = {};
3318
3327
  function Ti(e) {
3319
3328
  if (typeof Pr[e] !== kr) return Pr[e];
@@ -3334,16 +3343,16 @@ function A() {
3334
3343
  return e;
3335
3344
  }, A.apply(this, arguments);
3336
3345
  }
3337
- var Le = "function", Oe = "undefined", cb = "@@redux/" + Math.random().toString(36), Rs = /* @__PURE__ */ function() {
3338
- return typeof Symbol === Le && Symbol.observable || "@@observable";
3339
- }(), Tr = " != " + Le;
3346
+ var Ue = "function", _e = "undefined", cb = "@@redux/" + Math.random().toString(36), Rs = /* @__PURE__ */ function() {
3347
+ return typeof Symbol === Ue && Symbol.observable || "@@observable";
3348
+ }(), Tr = " != " + Ue;
3340
3349
  function nl(e, t, r) {
3341
3350
  var n;
3342
- if (typeof t === Le && typeof r === Oe && (r = t, t = void 0), typeof r !== Oe) {
3343
- if (typeof r !== Le) throw new Error("enhancer" + Tr);
3351
+ if (typeof t === Ue && typeof r === _e && (r = t, t = void 0), typeof r !== _e) {
3352
+ if (typeof r !== Ue) throw new Error("enhancer" + Tr);
3344
3353
  return r(nl)(e, t);
3345
3354
  }
3346
- if (typeof e !== Le) throw new Error("reducer" + Tr);
3355
+ if (typeof e !== Ue) throw new Error("reducer" + Tr);
3347
3356
  var a = e, i = t, o = [], c = o, l = !1;
3348
3357
  function f() {
3349
3358
  c === o && (c = o.slice());
@@ -3352,7 +3361,7 @@ function nl(e, t, r) {
3352
3361
  return i;
3353
3362
  }
3354
3363
  function s(h) {
3355
- if (typeof h !== Le) throw new Error("Listener" + Tr);
3364
+ if (typeof h !== Ue) throw new Error("Listener" + Tr);
3356
3365
  var m = !0;
3357
3366
  return f(), c.push(h), function() {
3358
3367
  if (m) {
@@ -3363,8 +3372,8 @@ function nl(e, t, r) {
3363
3372
  };
3364
3373
  }
3365
3374
  function d(h) {
3366
- if (!ee(h)) throw new Error("Act != obj");
3367
- if (typeof h.type === Oe) throw new Error("ActType " + Oe);
3375
+ if (!te(h)) throw new Error("Act != obj");
3376
+ if (typeof h.type === _e) throw new Error("ActType " + _e);
3368
3377
  if (l) throw new Error("Dispatch in reducer");
3369
3378
  try {
3370
3379
  l = !0, i = a(i, h);
@@ -3375,7 +3384,7 @@ function nl(e, t, r) {
3375
3384
  return h;
3376
3385
  }
3377
3386
  return d({ type: "@@redux/INIT" }), (n = { dispatch: d, subscribe: s, getState: u, replaceReducer: function(h) {
3378
- if (typeof h !== Le) throw new Error("next reducer" + Tr);
3387
+ if (typeof h !== Ue) throw new Error("next reducer" + Tr);
3379
3388
  a = h, d({ type: "@@redux/INIT" });
3380
3389
  } })[Rs] = function() {
3381
3390
  var h, m = s;
@@ -3392,9 +3401,9 @@ function nl(e, t, r) {
3392
3401
  }
3393
3402
  function ub(e, t) {
3394
3403
  var r = t && t.type;
3395
- return "action " + (r && r.toString() || "?") + "reducer " + e + " returns " + Oe;
3404
+ return "action " + (r && r.toString() || "?") + "reducer " + e + " returns " + _e;
3396
3405
  }
3397
- function Pt() {
3406
+ function Et() {
3398
3407
  var e = [].slice.call(arguments);
3399
3408
  return e.length === 0 ? function(t) {
3400
3409
  return t;
@@ -3413,11 +3422,11 @@ function lb() {
3413
3422
  } };
3414
3423
  return i = [].slice.call(e).map(function(f) {
3415
3424
  return f(l);
3416
- }), A({}, o, { dispatch: c = Pt.apply(void 0, i)(o.dispatch) });
3425
+ }), A({}, o, { dispatch: c = Et.apply(void 0, i)(o.dispatch) });
3417
3426
  };
3418
3427
  };
3419
3428
  }
3420
- var Ne = et + "anon_id", qe = et + "user_id", mt = et + "user_traits", je = "userId", pt = "anonymousId", Ur = ["bootstrap", "params", "campaign", "initializeStart", "initialize", "initializeEnd", "ready", "resetStart", "reset", "resetEnd", "pageStart", "page", "pageEnd", "pageAborted", "trackStart", "track", "trackEnd", "trackAborted", "identifyStart", "identify", "identifyEnd", "identifyAborted", "userIdChanged", "registerPlugins", "enablePlugin", "disablePlugin", "online", "offline", "setItemStart", "setItem", "setItemEnd", "setItemAborted", "removeItemStart", "removeItem", "removeItemEnd", "removeItemAborted"], Na = ["name", "EVENTS", "config", "loaded"], j = Ur.reduce(function(e, t) {
3429
+ var Me = rt + "anon_id", et = rt + "user_id", yt = rt + "user_traits", Le = "userId", gt = "anonymousId", Ur = ["bootstrap", "params", "campaign", "initializeStart", "initialize", "initializeEnd", "ready", "resetStart", "reset", "resetEnd", "pageStart", "page", "pageEnd", "pageAborted", "trackStart", "track", "trackEnd", "trackAborted", "identifyStart", "identify", "identifyEnd", "identifyAborted", "userIdChanged", "registerPlugins", "enablePlugin", "disablePlugin", "online", "offline", "setItemStart", "setItem", "setItemEnd", "setItemAborted", "removeItemStart", "removeItem", "removeItemEnd", "removeItemAborted"], Na = ["name", "EVENTS", "config", "loaded"], j = Ur.reduce(function(e, t) {
3421
3430
  return e[t] = t, e;
3422
3431
  }, { registerPluginType: function(e) {
3423
3432
  return "registerPlugin:" + e;
@@ -3431,7 +3440,7 @@ function fb(e) {
3431
3440
  return function(a) {
3432
3441
  if (a.type === j.bootstrap) {
3433
3442
  var i = a.params, o = a.user, c = a.persistedUser, l = a.initialUser, f = c.userId === o.userId;
3434
- c.anonymousId !== o.anonymousId && t(Ne, o.anonymousId), f || t(qe, o.userId), l.traits && t(mt, A({}, f && c.traits ? c.traits : {}, l.traits));
3443
+ c.anonymousId !== o.anonymousId && t(Me, o.anonymousId), f || t(et, o.userId), l.traits && t(yt, A({}, f && c.traits ? c.traits : {}, l.traits));
3435
3444
  var u = Object.keys(a.params);
3436
3445
  if (u.length) {
3437
3446
  var s = i.an_uid, d = i.an_event, h = u.reduce(function(m, S) {
@@ -3456,14 +3465,14 @@ function fb(e) {
3456
3465
  function db(e) {
3457
3466
  return function(t, r) {
3458
3467
  if (t === void 0 && (t = {}), r === void 0 && (r = {}), r.type === j.setItemEnd) {
3459
- if (r.key === Ne) return A({}, t, { anonymousId: r.value });
3460
- if (r.key === qe) return A({}, t, { userId: r.value });
3468
+ if (r.key === Me) return A({}, t, { anonymousId: r.value });
3469
+ if (r.key === et) return A({}, t, { userId: r.value });
3461
3470
  }
3462
3471
  switch (r.type) {
3463
3472
  case j.identify:
3464
3473
  return Object.assign({}, t, { userId: r.userId, traits: A({}, t.traits, r.traits) });
3465
3474
  case j.reset:
3466
- return [qe, Ne, mt].forEach(function(n) {
3475
+ return [et, Me, yt].forEach(function(n) {
3467
3476
  e.removeItem(n);
3468
3477
  }), Object.assign({}, t, { userId: null, anonymousId: null, traits: {} });
3469
3478
  default:
@@ -3472,10 +3481,10 @@ function db(e) {
3472
3481
  };
3473
3482
  }
3474
3483
  function Ls(e) {
3475
- return { userId: e.getItem(qe), anonymousId: e.getItem(Ne), traits: e.getItem(mt) };
3484
+ return { userId: e.getItem(et), anonymousId: e.getItem(Me), traits: e.getItem(yt) };
3476
3485
  }
3477
3486
  var Da = function(e) {
3478
- return et + "TEMP" + et + e;
3487
+ return rt + "TEMP" + rt + e;
3479
3488
  };
3480
3489
  function hb(e) {
3481
3490
  var t = e.storage, r = t.setItem, n = t.removeItem, a = t.getItem;
@@ -3483,23 +3492,23 @@ function hb(e) {
3483
3492
  return function(o) {
3484
3493
  return function(c) {
3485
3494
  var l = c.userId, f = c.traits, u = c.options;
3486
- if (c.type === j.reset && ([qe, mt, Ne].forEach(function(h) {
3495
+ if (c.type === j.reset && ([et, yt, Me].forEach(function(h) {
3487
3496
  n(h);
3488
- }), [je, pt, "traits"].forEach(function(h) {
3489
- Rt(Da(h));
3497
+ }), [Le, gt, "traits"].forEach(function(h) {
3498
+ jt(Da(h));
3490
3499
  })), c.type === j.identify) {
3491
- a(Ne) || r(Ne, cn());
3492
- var s = a(qe), d = a(mt) || {};
3493
- s && s !== l && i.dispatch({ type: j.userIdChanged, old: { userId: s, traits: d }, new: { userId: l, traits: f }, options: u }), l && r(qe, l), f && r(mt, A({}, d, f));
3500
+ a(Me) || r(Me, cn());
3501
+ var s = a(et), d = a(yt) || {};
3502
+ s && s !== l && i.dispatch({ type: j.userIdChanged, old: { userId: s, traits: d }, new: { userId: l, traits: f }, options: u }), l && r(et, l), f && r(yt, A({}, d, f));
3494
3503
  }
3495
3504
  return o(c);
3496
3505
  };
3497
3506
  };
3498
3507
  };
3499
3508
  }
3500
- var Gt = {};
3509
+ var Wt = {};
3501
3510
  function xs(e, t) {
3502
- Gt[e] && te(Gt[e]) && (Gt[e](t), delete Gt[e]);
3511
+ Wt[e] && re(Wt[e]) && (Wt[e](t), delete Wt[e]);
3503
3512
  }
3504
3513
  function al(e, t, r) {
3505
3514
  return new Promise(function(n, a) {
@@ -3522,14 +3531,14 @@ function il(e, t, r) {
3522
3531
  if (f.processIndex && f.processIndex.length) {
3523
3532
  f.processIndex.forEach(function(s) {
3524
3533
  var d = c.actions[s], h = d.plugin, m = d.payload.type, S = a[h][m];
3525
- if (S && te(S)) {
3534
+ if (S && re(S)) {
3526
3535
  var g, $ = function(v, I) {
3527
- return v === void 0 && (v = {}), I === void 0 && (I = {}), [je, pt].reduce(function(O, _) {
3536
+ return v === void 0 && (v = {}), I === void 0 && (I = {}), [Le, gt].reduce(function(O, _) {
3528
3537
  return v.hasOwnProperty(_) && I[_] && I[_] !== v[_] && (O[_] = I[_]), O;
3529
3538
  }, v);
3530
- }(d.payload, l), k = n[$.meta.rid];
3531
- if (!k && (g = S({ payload: $, config: o[h].config, instance: r, abort: vb })) && ee(g) && g.abort) return void (n[$.meta.rid] = !0);
3532
- if (!k) {
3539
+ }(d.payload, l), P = n[$.meta.rid];
3540
+ if (!P && (g = S({ payload: $, config: o[h].config, instance: r, abort: vb })) && te(g) && g.abort) return void (n[$.meta.rid] = !0);
3541
+ if (!P) {
3533
3542
  var b = m + ":" + h;
3534
3543
  e.dispatch(A({}, $, { type: b, _: { called: b, from: "queueDrain" } }));
3535
3544
  }
@@ -3545,34 +3554,34 @@ function il(e, t, r) {
3545
3554
  var ia = function(e) {
3546
3555
  var t = e.data, r = e.action, n = e.instance, a = e.state, i = e.allPlugins, o = e.allMatches, c = e.store, l = e.EVENTS;
3547
3556
  try {
3548
- var f = a.plugins, u = a.context, s = r.type, d = s.match(gt), h = t.exact.map(function(g) {
3557
+ var f = a.plugins, u = a.context, s = r.type, d = s.match(wt), h = t.exact.map(function(g) {
3549
3558
  return g.pluginName;
3550
3559
  });
3551
3560
  d && (h = o.during.map(function(g) {
3552
3561
  return g.pluginName;
3553
3562
  }));
3554
3563
  var m = /* @__PURE__ */ function(g, $) {
3555
- return function(k, b, v) {
3556
- var I = b.config, O = b.name, _ = O + "." + k.type;
3564
+ return function(P, b, v) {
3565
+ var I = b.config, O = b.name, _ = O + "." + P.type;
3557
3566
  v && (_ = v.event);
3558
- var C = k.type.match(gt) ? /* @__PURE__ */ function(F, z, G, L, D) {
3559
- return function(H, R) {
3560
- var B = L ? L.name : F, W = R && tr(R) ? R : G;
3561
- if (L && (!(W = R && tr(R) ? R : [F]).includes(F) || W.length !== 1)) throw new Error("Method " + z + " can only abort " + F + " plugin. " + JSON.stringify(W) + " input valid");
3562
- return A({}, D, { abort: { reason: H, plugins: W, caller: z, _: B } });
3567
+ var C = P.type.match(wt) ? /* @__PURE__ */ function(M, F, G, L, N) {
3568
+ return function(z, R) {
3569
+ var B = L ? L.name : M, W = R && rr(R) ? R : G;
3570
+ if (L && (!(W = R && rr(R) ? R : [M]).includes(M) || W.length !== 1)) throw new Error("Method " + F + " can only abort " + M + " plugin. " + JSON.stringify(W) + " input valid");
3571
+ return A({}, N, { abort: { reason: z, plugins: W, caller: F, _: B } });
3563
3572
  };
3564
- }(O, _, $, v, k) : /* @__PURE__ */ function(F, z) {
3573
+ }(O, _, $, v, P) : /* @__PURE__ */ function(M, F) {
3565
3574
  return function() {
3566
- throw new Error(F.type + " action not cancellable. Remove abort in " + z);
3575
+ throw new Error(M.type + " action not cancellable. Remove abort in " + F);
3567
3576
  };
3568
- }(k, _);
3569
- return { payload: pb(k), instance: g, config: I || {}, abort: C };
3577
+ }(P, _);
3578
+ return { payload: pb(P), instance: g, config: I || {}, abort: C };
3570
3579
  };
3571
3580
  }(n, h), S = t.exact.reduce(function(g, $) {
3572
- var k = $.pluginName, b = $.methodName, v = !1;
3573
- return b.match(/^initialize/) || b.match(/^reset/) || (v = !f[k].loaded), u.offline && b.match(/^(page|track|identify)/) && (v = !0), g["" + k] = v, g;
3581
+ var P = $.pluginName, b = $.methodName, v = !1;
3582
+ return b.match(/^initialize/) || b.match(/^reset/) || (v = !f[P].loaded), u.offline && b.match(/^(page|track|identify)/) && (v = !0), g["" + P] = v, g;
3574
3583
  }, {});
3575
- return Promise.resolve(t.exact.reduce(function(g, $, k) {
3584
+ return Promise.resolve(t.exact.reduce(function(g, $, P) {
3576
3585
  try {
3577
3586
  var b = $.pluginName;
3578
3587
  return Promise.resolve(g).then(function(v) {
@@ -3580,26 +3589,26 @@ var ia = function(e) {
3580
3589
  return Promise.resolve(v);
3581
3590
  }
3582
3591
  var O = function() {
3583
- if (t.namespaced && t.namespaced[b]) return Promise.resolve(t.namespaced[b].reduce(function(_, C, F) {
3592
+ if (t.namespaced && t.namespaced[b]) return Promise.resolve(t.namespaced[b].reduce(function(_, C, M) {
3584
3593
  try {
3585
- return Promise.resolve(_).then(function(z) {
3586
- return C.method && te(C.method) ? (function(H, R) {
3587
- var B = Hs(H);
3594
+ return Promise.resolve(_).then(function(F) {
3595
+ return C.method && re(C.method) ? (function(z, R) {
3596
+ var B = Hs(z);
3588
3597
  if (B && B.name === R) {
3589
3598
  var W = Hs(B.method);
3590
- throw new Error([R + " plugin is calling method " + H, "Plugins cant call self", "Use " + B.method + " " + (W ? "or " + W.method : "") + " in " + R + " plugin insteadof " + H].join(`
3599
+ throw new Error([R + " plugin is calling method " + z, "Plugins cant call self", "Use " + B.method + " " + (W ? "or " + W.method : "") + " in " + R + " plugin insteadof " + z].join(`
3591
3600
  `));
3592
3601
  }
3593
- }(C.methodName, C.pluginName), Promise.resolve(C.method({ payload: z, instance: n, abort: (G = z, L = b, D = C.pluginName, function(H, R) {
3594
- return A({}, G, { abort: { reason: H, plugins: R || [L], caller: s, from: D || L } });
3595
- }), config: Ds(C.pluginName, f, i), plugins: f })).then(function(H) {
3596
- var R = ee(H) ? H : {};
3597
- return Promise.resolve(A({}, z, R));
3598
- })) : z;
3599
- var G, L, D;
3602
+ }(C.methodName, C.pluginName), Promise.resolve(C.method({ payload: F, instance: n, abort: (G = F, L = b, N = C.pluginName, function(z, R) {
3603
+ return A({}, G, { abort: { reason: z, plugins: R || [L], caller: s, from: N || L } });
3604
+ }), config: Ds(C.pluginName, f, i), plugins: f })).then(function(z) {
3605
+ var R = te(z) ? z : {};
3606
+ return Promise.resolve(A({}, F, R));
3607
+ })) : F;
3608
+ var G, L, N;
3600
3609
  });
3601
- } catch (z) {
3602
- return Promise.reject(z);
3610
+ } catch (F) {
3611
+ return Promise.reject(F);
3603
3612
  }
3604
3613
  }, Promise.resolve(r))).then(function(_) {
3605
3614
  v[b] = _;
@@ -3612,21 +3621,21 @@ var ia = function(e) {
3612
3621
  return Promise.reject(v);
3613
3622
  }
3614
3623
  }, Promise.resolve({}))).then(function(g) {
3615
- return Promise.resolve(t.exact.reduce(function($, k, b) {
3624
+ return Promise.resolve(t.exact.reduce(function($, P, b) {
3616
3625
  try {
3617
- var v = t.exact.length === b + 1, I = k.pluginName, O = i[I];
3626
+ var v = t.exact.length === b + 1, I = P.pluginName, O = i[I];
3618
3627
  return Promise.resolve($).then(function(_) {
3619
3628
  var C = g[I] ? g[I] : {};
3620
3629
  if (d && (C = _), sa(C, I)) return oa({ data: C, method: s, instance: n, pluginName: I, store: c }), Promise.resolve(_);
3621
3630
  if (sa(_, I)) return v && oa({ data: _, method: s, instance: n, store: c }), Promise.resolve(_);
3622
3631
  if (S.hasOwnProperty(I) && S[I] === !0) return c.dispatch({ type: "queue", plugin: I, payload: C, _: { called: "queue", from: "queueMechanism" } }), Promise.resolve(_);
3623
- var F = m(g[I], i[I]);
3624
- return Promise.resolve(O[s]({ abort: F.abort, payload: C, instance: n, config: Ds(I, f, i), plugins: f })).then(function(z) {
3625
- var G = ee(z) ? z : {}, L = A({}, _, G), D = g[I];
3626
- if (sa(D, I)) oa({ data: D, method: s, instance: n, pluginName: I, store: c });
3632
+ var M = m(g[I], i[I]);
3633
+ return Promise.resolve(O[s]({ abort: M.abort, payload: C, instance: n, config: Ds(I, f, i), plugins: f })).then(function(F) {
3634
+ var G = te(F) ? F : {}, L = A({}, _, G), N = g[I];
3635
+ if (sa(N, I)) oa({ data: N, method: s, instance: n, pluginName: I, store: c });
3627
3636
  else {
3628
- var H = s + ":" + I;
3629
- (H.match(/:/g) || []).length < 2 && !s.match(Us) && !s.match(Ns) && n.dispatch(A({}, d ? L : C, { type: H, _: { called: H, from: "submethod" } }));
3637
+ var z = s + ":" + I;
3638
+ (z.match(/:/g) || []).length < 2 && !s.match(Us) && !s.match(Ns) && n.dispatch(A({}, d ? L : C, { type: z, _: { called: z, from: "submethod" } }));
3630
3639
  }
3631
3640
  return Promise.resolve(L);
3632
3641
  });
@@ -3635,10 +3644,10 @@ var ia = function(e) {
3635
3644
  return Promise.reject(_);
3636
3645
  }
3637
3646
  }, Promise.resolve(r))).then(function($) {
3638
- if (!(s.match(gt) || s.match(/^registerPlugin/) || s.match(Ns) || s.match(Us) || s.match(/^params/) || s.match(/^userIdChanged/))) {
3647
+ if (!(s.match(wt) || s.match(/^registerPlugin/) || s.match(Ns) || s.match(Us) || s.match(/^params/) || s.match(/^userIdChanged/))) {
3639
3648
  if (l.plugins.includes(s), $._ && $._.originalAction === s) return $;
3640
- var k = A({}, $, { _: { originalAction: $.type, called: $.type, from: "engineEnd" } });
3641
- ol($, t.exact.length) && !s.match(/End$/) && (k = A({}, k, { type: $.type + "Aborted" })), c.dispatch(k);
3649
+ var P = A({}, $, { _: { originalAction: $.type, called: $.type, from: "engineEnd" } });
3650
+ ol($, t.exact.length) && !s.match(/End$/) && (P = A({}, P, { type: $.type + "Aborted" })), c.dispatch(P);
3642
3651
  }
3643
3652
  return $;
3644
3653
  });
@@ -3646,7 +3655,7 @@ var ia = function(e) {
3646
3655
  } catch (g) {
3647
3656
  return Promise.reject(g);
3648
3657
  }
3649
- }, gt = /Start$/, Us = /^bootstrap/, Ns = /^ready/;
3658
+ }, wt = /Start$/, Us = /^bootstrap/, Ns = /^ready/;
3650
3659
  function oa(e) {
3651
3660
  var t = e.pluginName, r = e.method + "Aborted" + (t ? ":" + t : "");
3652
3661
  e.store.dispatch(A({}, e.data, { type: r, _: { called: r, from: "abort" } }));
@@ -3661,7 +3670,7 @@ function Ms(e, t) {
3661
3670
  }, []);
3662
3671
  }
3663
3672
  function Fs(e, t) {
3664
- var r = e.replace(gt, ""), n = t ? ":" + t : "";
3673
+ var r = e.replace(wt, ""), n = t ? ":" + t : "";
3665
3674
  return ["" + e + n, "" + r + n, r + "End" + n];
3666
3675
  }
3667
3676
  function sa(e, t) {
@@ -3671,15 +3680,15 @@ function sa(e, t) {
3671
3680
  function ol(e, t) {
3672
3681
  var r = e.abort;
3673
3682
  if (!r) return !1;
3674
- if (r === !0 || Ue(r)) return !0;
3683
+ if (r === !0 || De(r)) return !0;
3675
3684
  var n = r.plugins;
3676
- return tr(r) && r.length === t || tr(n) && n.length === t;
3685
+ return rr(r) && r.length === t || rr(n) && n.length === t;
3677
3686
  }
3678
- function tr(e) {
3687
+ function rr(e) {
3679
3688
  return Array.isArray(e);
3680
3689
  }
3681
3690
  function zs(e, t) {
3682
- return !(!e || !tr(e)) && e.includes(t);
3691
+ return !(!e || !rr(e)) && e.includes(t);
3683
3692
  }
3684
3693
  function Hs(e) {
3685
3694
  var t = e.match(/(.*):(.*)/);
@@ -3687,7 +3696,7 @@ function Hs(e) {
3687
3696
  }
3688
3697
  function pb(e) {
3689
3698
  return Object.keys(e).reduce(function(t, r) {
3690
- return r === "type" || (t[r] = ee(e[r]) ? Object.assign({}, e[r]) : e[r]), t;
3699
+ return r === "type" || (t[r] = te(e[r]) ? Object.assign({}, e[r]) : e[r]), t;
3691
3700
  }, {});
3692
3701
  }
3693
3702
  function mb(e, t, r) {
@@ -3707,23 +3716,23 @@ function mb(e, t, r) {
3707
3716
  return u.includes(v);
3708
3717
  }).map(function(v) {
3709
3718
  return d[v];
3710
- }), S = [], g = [], $ = o.disabled, k = m.map(function(v) {
3719
+ }), S = [], g = [], $ = o.disabled, P = m.map(function(v) {
3711
3720
  var I = v.loaded, O = v.name, _ = v.config;
3712
3721
  return al(v, function() {
3713
3722
  return I({ config: _ });
3714
3723
  }, 1e4).then(function(C) {
3715
- return n[O] || (a.dispatch({ type: j.pluginReadyType(O), name: O, events: Object.keys(v).filter(function(F) {
3716
- return !Na.includes(F);
3724
+ return n[O] || (a.dispatch({ type: j.pluginReadyType(O), name: O, events: Object.keys(v).filter(function(M) {
3725
+ return !Na.includes(M);
3717
3726
  }) }), n[O] = !0), S = S.concat(O), v;
3718
3727
  }).catch(function(C) {
3719
3728
  if (C instanceof Error) throw new Error(C);
3720
3729
  return g = g.concat(C.name), C;
3721
3730
  });
3722
3731
  });
3723
- Promise.all(k).then(function(v) {
3732
+ Promise.all(P).then(function(v) {
3724
3733
  var I = { plugins: S, failed: g, disabled: $ };
3725
3734
  setTimeout(function() {
3726
- h.length === k.length + $.length && a.dispatch(A({}, { type: j.ready }, I));
3735
+ h.length === P.length + $.length && a.dispatch(A({}, { type: j.ready }, I));
3727
3736
  }, 0);
3728
3737
  });
3729
3738
  }
@@ -3732,47 +3741,47 @@ function mb(e, t, r) {
3732
3741
  return il(a, t, e);
3733
3742
  }, 0), Promise.resolve(function(v, I, O, _, C) {
3734
3743
  try {
3735
- var F = te(I) ? I() : I, z = v.type, G = z.replace(gt, "");
3744
+ var M = re(I) ? I() : I, F = v.type, G = F.replace(wt, "");
3736
3745
  if (v._ && v._.called) return Promise.resolve(v);
3737
- var L = O.getState(), D = (B = F, (W = L.plugins) === void 0 && (W = {}), (He = v.options) === void 0 && (He = {}), Object.keys(B).filter(function(p) {
3738
- var y = He.plugins || {};
3746
+ var L = O.getState(), N = (B = M, (W = L.plugins) === void 0 && (W = {}), (Ke = v.options) === void 0 && (Ke = {}), Object.keys(B).filter(function(p) {
3747
+ var y = Ke.plugins || {};
3739
3748
  return Jw(y[p]) ? y[p] : y.all !== !1 && (!W[p] || W[p].enabled !== !1);
3740
3749
  }).map(function(p) {
3741
3750
  return B[p];
3742
3751
  }));
3743
- z === j.initializeStart && v.fromEnable && (D = Object.keys(L.plugins).filter(function(p) {
3752
+ F === j.initializeStart && v.fromEnable && (N = Object.keys(L.plugins).filter(function(p) {
3744
3753
  var y = L.plugins[p];
3745
3754
  return v.plugins.includes(p) && !y.initialized;
3746
3755
  }).map(function(p) {
3747
- return F[p];
3756
+ return M[p];
3748
3757
  }));
3749
- var H = D.map(function(p) {
3758
+ var z = N.map(function(p) {
3750
3759
  return p.name;
3751
3760
  }), R = function(p, y, E) {
3752
3761
  var x = Fs(p).map(function(U) {
3753
3762
  return Ms(U, y);
3754
3763
  });
3755
- return y.reduce(function(U, w) {
3756
- var P = w.name, T = Fs(p, P).map(function(jt) {
3757
- return Ms(jt, y);
3758
- }), M = T[0], N = T[1], Q = T[2];
3759
- return M.length && (U.beforeNS[P] = M), N.length && (U.duringNS[P] = N), Q.length && (U.afterNS[P] = Q), U;
3764
+ return y.reduce(function(U, D) {
3765
+ var V = D.name, w = Fs(p, V).map(function(ee) {
3766
+ return Ms(ee, y);
3767
+ }), k = w[0], T = w[1], H = w[2];
3768
+ return k.length && (U.beforeNS[V] = k), T.length && (U.duringNS[V] = T), H.length && (U.afterNS[V] = H), U;
3760
3769
  }, { before: x[0], beforeNS: {}, during: x[1], duringNS: {}, after: x[2], afterNS: {} });
3761
- }(z, D);
3762
- return Promise.resolve(ia({ action: v, data: { exact: R.before, namespaced: R.beforeNS }, state: L, allPlugins: F, allMatches: R, instance: O, store: _, EVENTS: C })).then(function(p) {
3770
+ }(F, N);
3771
+ return Promise.resolve(ia({ action: v, data: { exact: R.before, namespaced: R.beforeNS }, state: L, allPlugins: M, allMatches: R, instance: O, store: _, EVENTS: C })).then(function(p) {
3763
3772
  function y() {
3764
3773
  var U = function() {
3765
- if (z.match(gt)) return Promise.resolve(ia({ action: A({}, E, { type: G + "End" }), data: { exact: R.after, namespaced: R.afterNS }, state: L, allPlugins: F, allMatches: R, instance: O, store: _, EVENTS: C })).then(function(w) {
3766
- w.meta && w.meta.hasCallback && xs(w.meta.rid, { payload: w });
3774
+ if (F.match(wt)) return Promise.resolve(ia({ action: A({}, E, { type: G + "End" }), data: { exact: R.after, namespaced: R.afterNS }, state: L, allPlugins: M, allMatches: R, instance: O, store: _, EVENTS: C })).then(function(D) {
3775
+ D.meta && D.meta.hasCallback && xs(D.meta.rid, { payload: D });
3767
3776
  });
3768
3777
  }();
3769
3778
  return U && U.then ? U.then(function() {
3770
3779
  return p;
3771
3780
  }) : p;
3772
3781
  }
3773
- if (ol(p, H.length)) return p;
3782
+ if (ol(p, z.length)) return p;
3774
3783
  var E, x = function() {
3775
- if (z !== G) return Promise.resolve(ia({ action: A({}, p, { type: G }), data: { exact: R.during, namespaced: R.duringNS }, state: L, allPlugins: F, allMatches: R, instance: O, store: _, EVENTS: C })).then(function(U) {
3784
+ if (F !== G) return Promise.resolve(ia({ action: A({}, p, { type: G }), data: { exact: R.during, namespaced: R.duringNS }, state: L, allPlugins: M, allMatches: R, instance: O, store: _, EVENTS: C })).then(function(U) {
3776
3785
  E = U;
3777
3786
  });
3778
3787
  E = p;
@@ -3782,7 +3791,7 @@ function mb(e, t, r) {
3782
3791
  } catch (p) {
3783
3792
  return Promise.reject(p);
3784
3793
  }
3785
- var B, W, He;
3794
+ var B, W, Ke;
3786
3795
  }(o, t, e, a, r)).then(function(v) {
3787
3796
  return c = 1, i(v);
3788
3797
  });
@@ -3827,7 +3836,7 @@ var yb = function() {
3827
3836
  } }, o = e[t].map(function(c) {
3828
3837
  return c(i);
3829
3838
  });
3830
- return Pt.apply(void 0, o)(n)(a);
3839
+ return Et.apply(void 0, o)(n)(a);
3831
3840
  };
3832
3841
  };
3833
3842
  };
@@ -3904,10 +3913,10 @@ function kb(e) {
3904
3913
  return "/" + (t && t[3] ? t[3].split("?")[0].replace(cl, "") : "");
3905
3914
  }
3906
3915
  var ul, ll, fl, dl, Pb = function(e) {
3907
- if (e === void 0 && (e = {}), !V) return e;
3916
+ if (e === void 0 && (e = {}), !Z) return e;
3908
3917
  var t = document, r = t.title, n = t.referrer, a = window, i = a.location, o = a.innerWidth, c = a.innerHeight, l = i.hash, f = i.search, u = function(d) {
3909
3918
  var h = function() {
3910
- if (V) {
3919
+ if (Z) {
3911
3920
  for (var m, S = document.getElementsByTagName("link"), g = 0; m = S[g]; g++) if (m.getAttribute("rel") === "canonical") return m.getAttribute("href");
3912
3921
  }
3913
3922
  }();
@@ -3925,11 +3934,11 @@ function Eb(e, t) {
3925
3934
  return e;
3926
3935
  }
3927
3936
  ul = function() {
3928
- if (!V) return !1;
3937
+ if (!Z) return !1;
3929
3938
  var e = navigator.appVersion;
3930
3939
  return ~e.indexOf("Win") ? "Windows" : ~e.indexOf("Mac") ? "MacOS" : ~e.indexOf("X11") ? "UNIX" : ~e.indexOf("Linux") ? "Linux" : "Unknown OS";
3931
- }(), ll = V ? document.referrer : null, fl = nb(), dl = ab();
3932
- var Gs = { initialized: !1, sessionId: cn(), app: null, version: null, debug: !1, offline: !!V && !navigator.onLine, os: { name: ul }, userAgent: V ? navigator.userAgent : "node", library: { name: "analytics", version: "0.12.13" }, timezone: dl, locale: fl, campaign: {}, referrer: ll };
3940
+ }(), ll = Z ? document.referrer : null, fl = nb(), dl = ab();
3941
+ var Gs = { initialized: !1, sessionId: cn(), app: null, version: null, debug: !1, offline: !!Z && !navigator.onLine, os: { name: ul }, userAgent: Z ? navigator.userAgent : "node", library: { name: "analytics", version: "0.12.13" }, timezone: dl, locale: fl, campaign: {}, referrer: ll };
3933
3942
  function Ob(e, t) {
3934
3943
  e === void 0 && (e = Gs);
3935
3944
  var r = e.initialized, n = t.campaign;
@@ -3946,7 +3955,7 @@ function Ob(e, t) {
3946
3955
  }
3947
3956
  var _b = ["plugins", "reducers", "storage"];
3948
3957
  function Rb(e, t, r) {
3949
- if (V) {
3958
+ if (Z) {
3950
3959
  var n = window[(r ? "add" : "remove") + "EventListener"];
3951
3960
  e.split(" ").forEach(function(a) {
3952
3961
  n(a, t);
@@ -3962,18 +3971,18 @@ function Cb(e) {
3962
3971
  };
3963
3972
  }
3964
3973
  function hl() {
3965
- return rt("analytics", []), function(e) {
3974
+ return at("analytics", []), function(e) {
3966
3975
  return function(t, r, n) {
3967
3976
  var a = e(t, r, n), i = a.dispatch;
3968
3977
  return Object.assign(a, { dispatch: function(o) {
3969
- return kt[$t].analytics.push(o.action || o), i(o);
3978
+ return Tt[Pt].analytics.push(o.action || o), i(o);
3970
3979
  } });
3971
3980
  };
3972
3981
  };
3973
3982
  }
3974
3983
  function Ws(e) {
3975
3984
  return function() {
3976
- return Pt(Pt.apply(null, arguments), hl());
3985
+ return Et(Et.apply(null, arguments), hl());
3977
3986
  };
3978
3987
  }
3979
3988
  function ca(e) {
@@ -3982,8 +3991,8 @@ function ca(e) {
3982
3991
  function Vs(e, t, r) {
3983
3992
  e === void 0 && (e = {});
3984
3993
  var n, a, i = cn();
3985
- return t && (Gt[i] = (n = t, a = function(o) {
3986
- for (var c, l = o || Array.prototype.slice.call(arguments), f = 0; f < l.length; f++) if (te(l[f])) {
3994
+ return t && (Wt[i] = (n = t, a = function(o) {
3995
+ for (var c, l = o || Array.prototype.slice.call(arguments), f = 0; f < l.length; f++) if (re(l[f])) {
3987
3996
  c = l[f];
3988
3997
  break;
3989
3998
  }
@@ -3995,27 +4004,27 @@ function Vs(e, t, r) {
3995
4004
  function jb(e) {
3996
4005
  e === void 0 && (e = {});
3997
4006
  var t = e.reducers || {}, r = e.initialUser || {}, n = (e.plugins || []).reduce(function(p, y) {
3998
- if (te(y)) return p.middlewares = p.middlewares.concat(y), p;
4007
+ if (re(y)) return p.middlewares = p.middlewares.concat(y), p;
3999
4008
  if (y.NAMESPACE && (y.name = y.NAMESPACE), !y.name) throw new Error("https://lytics.dev/errors/1");
4000
4009
  y.config || (y.config = {});
4001
- var E = y.EVENTS ? Object.keys(y.EVENTS).map(function(w) {
4002
- return y.EVENTS[w];
4010
+ var E = y.EVENTS ? Object.keys(y.EVENTS).map(function(D) {
4011
+ return y.EVENTS[D];
4003
4012
  }) : [];
4004
- p.pluginEnabled[y.name] = !(y.enabled === !1 || y.config.enabled === !1), delete y.enabled, y.methods && (p.methods[y.name] = Object.keys(y.methods).reduce(function(w, P) {
4005
- var T;
4006
- return w[P] = (T = y.methods[P], function() {
4007
- for (var M = Array.prototype.slice.call(arguments), N = new Array(T.length), Q = 0; Q < M.length; Q++) N[Q] = M[Q];
4008
- return N[N.length] = I, T.apply({ instance: I }, N);
4009
- }), w;
4013
+ p.pluginEnabled[y.name] = !(y.enabled === !1 || y.config.enabled === !1), delete y.enabled, y.methods && (p.methods[y.name] = Object.keys(y.methods).reduce(function(D, V) {
4014
+ var w;
4015
+ return D[V] = (w = y.methods[V], function() {
4016
+ for (var k = Array.prototype.slice.call(arguments), T = new Array(w.length), H = 0; H < k.length; H++) T[H] = k[H];
4017
+ return T[T.length] = I, w.apply({ instance: I }, T);
4018
+ }), D;
4010
4019
  }, {}), delete y.methods);
4011
4020
  var x = Object.keys(y).concat(E), U = new Set(p.events.concat(x));
4012
4021
  if (p.events = Array.from(U), p.pluginsArray = p.pluginsArray.concat(y), p.plugins[y.name]) throw new Error(y.name + "AlreadyLoaded");
4013
4022
  return p.plugins[y.name] = y, p.plugins[y.name].loaded || (p.plugins[y.name].loaded = function() {
4014
4023
  return !0;
4015
4024
  }), p;
4016
- }, { plugins: {}, pluginEnabled: {}, methods: {}, pluginsArray: [], middlewares: [], events: [] }), a = e.storage ? e.storage : { getItem: tt, setItem: rt, removeItem: Rt }, i = /* @__PURE__ */ function(p) {
4025
+ }, { plugins: {}, pluginEnabled: {}, methods: {}, pluginsArray: [], middlewares: [], events: [] }), a = e.storage ? e.storage : { getItem: nt, setItem: at, removeItem: jt }, i = /* @__PURE__ */ function(p) {
4017
4026
  return function(y, E, x) {
4018
- return E.getState("user")[y] || (x && ee(x) && x[y] ? x[y] : Ls(p)[y] || tt(Da(y)) || null);
4027
+ return E.getState("user")[y] || (x && te(x) && x[y] ? x[y] : Ls(p)[y] || nt(Da(y)) || null);
4019
4028
  };
4020
4029
  }(a), o = n.plugins, c = n.events.filter(function(p) {
4021
4030
  return !Na.includes(p);
@@ -4025,8 +4034,8 @@ function jb(e) {
4025
4034
  return o;
4026
4035
  }, s = new yb(), d = s.addMiddleware, h = s.removeMiddleware, m = s.dynamicMiddlewares, S = function() {
4027
4036
  throw new Error("Abort disabled inListener");
4028
- }, g = ib(), $ = Ls(a), k = A({}, $, r, g.an_uid ? { userId: g.an_uid } : {}, g.an_aid ? { anonymousId: g.an_aid } : {});
4029
- k.anonymousId || (k.anonymousId = cn());
4037
+ }, g = ib(), $ = Ls(a), P = A({}, $, r, g.an_uid ? { userId: g.an_uid } : {}, g.an_aid ? { anonymousId: g.an_aid } : {});
4038
+ P.anonymousId || (P.anonymousId = cn());
4030
4039
  var b = A({ enable: function(p, y) {
4031
4040
  return new Promise(function(E) {
4032
4041
  R.dispatch({ type: j.enablePlugin, plugins: ca(p), _: { originalAction: j.enablePlugin } }, E, [y]);
@@ -4037,38 +4046,38 @@ function jb(e) {
4037
4046
  });
4038
4047
  } }, n.methods), v = !1, I = { identify: function(p, y, E, x) {
4039
4048
  try {
4040
- var U = Ue(p) ? p : null, w = ee(p) ? p : y, P = E || {}, T = I.user();
4041
- rt(Da(je), U);
4042
- var M = U || w.userId || i(je, I, w);
4043
- return Promise.resolve(new Promise(function(N) {
4044
- R.dispatch(A({ type: j.identifyStart, userId: M, traits: w || {}, options: P, anonymousId: T.anonymousId }, T.id && T.id !== U && { previousId: T.id }), N, [y, E, x]);
4045
- }));
4046
- } catch (N) {
4047
- return Promise.reject(N);
4048
- }
4049
- }, track: function(p, y, E, x) {
4050
- try {
4051
- var U = ee(p) ? p.event : p;
4052
- if (!U || !Ue(U)) throw new Error("EventMissing");
4053
- var w = ee(p) ? p : y || {}, P = ee(E) ? E : {};
4049
+ var U = De(p) ? p : null, D = te(p) ? p : y, V = E || {}, w = I.user();
4050
+ at(Da(Le), U);
4051
+ var k = U || D.userId || i(Le, I, D);
4054
4052
  return Promise.resolve(new Promise(function(T) {
4055
- R.dispatch({ type: j.trackStart, event: U, properties: w, options: P, userId: i(je, I, y), anonymousId: i(pt, I, y) }, T, [y, E, x]);
4053
+ R.dispatch(A({ type: j.identifyStart, userId: k, traits: D || {}, options: V, anonymousId: w.anonymousId }, w.id && w.id !== U && { previousId: w.id }), T, [y, E, x]);
4056
4054
  }));
4057
4055
  } catch (T) {
4058
4056
  return Promise.reject(T);
4059
4057
  }
4060
- }, page: function(p, y, E) {
4058
+ }, track: function(p, y, E, x) {
4061
4059
  try {
4062
- var x = ee(p) ? p : {}, U = ee(y) ? y : {};
4060
+ var U = te(p) ? p.event : p;
4061
+ if (!U || !De(U)) throw new Error("EventMissing");
4062
+ var D = te(p) ? p : y || {}, V = te(E) ? E : {};
4063
4063
  return Promise.resolve(new Promise(function(w) {
4064
- R.dispatch({ type: j.pageStart, properties: Pb(x), options: U, userId: i(je, I, x), anonymousId: i(pt, I, x) }, w, [p, y, E]);
4064
+ R.dispatch({ type: j.trackStart, event: U, properties: D, options: V, userId: i(Le, I, y), anonymousId: i(gt, I, y) }, w, [y, E, x]);
4065
4065
  }));
4066
4066
  } catch (w) {
4067
4067
  return Promise.reject(w);
4068
4068
  }
4069
+ }, page: function(p, y, E) {
4070
+ try {
4071
+ var x = te(p) ? p : {}, U = te(y) ? y : {};
4072
+ return Promise.resolve(new Promise(function(D) {
4073
+ R.dispatch({ type: j.pageStart, properties: Pb(x), options: U, userId: i(Le, I, x), anonymousId: i(gt, I, x) }, D, [p, y, E]);
4074
+ }));
4075
+ } catch (D) {
4076
+ return Promise.reject(D);
4077
+ }
4069
4078
  }, user: function(p) {
4070
- if (p === je || p === "id") return i(je, I);
4071
- if (p === pt || p === "anonId") return i(pt, I);
4079
+ if (p === Le || p === "id") return i(Le, I);
4080
+ if (p === gt || p === "anonId") return i(gt, I);
4072
4081
  var y = I.getState("user");
4073
4082
  return p ? Es(y, p) : y;
4074
4083
  }, reset: function(p) {
@@ -4080,20 +4089,20 @@ function jb(e) {
4080
4089
  p(y), v = !0;
4081
4090
  });
4082
4091
  }, on: function(p, y) {
4083
- if (!p || !te(y)) return !1;
4092
+ if (!p || !re(y)) return !1;
4084
4093
  if (p === j.bootstrap) throw new Error(".on disabled for " + p);
4085
4094
  var E = /Start$|Start:/;
4086
4095
  if (p === "*") {
4087
- var x = function(T) {
4088
- return function(M) {
4089
- return function(N) {
4090
- return N.type.match(E) && y({ payload: N, instance: I, plugins: o }), M(N);
4096
+ var x = function(w) {
4097
+ return function(k) {
4098
+ return function(T) {
4099
+ return T.type.match(E) && y({ payload: T, instance: I, plugins: o }), k(T);
4091
4100
  };
4092
4101
  };
4093
- }, U = function(T) {
4094
- return function(M) {
4095
- return function(N) {
4096
- return N.type.match(E) || y({ payload: N, instance: I, plugins: o }), M(N);
4102
+ }, U = function(w) {
4103
+ return function(k) {
4104
+ return function(T) {
4105
+ return T.type.match(E) || y({ payload: T, instance: I, plugins: o }), k(T);
4097
4106
  };
4098
4107
  };
4099
4108
  };
@@ -4101,18 +4110,18 @@ function jb(e) {
4101
4110
  h(x, Er), h(U, Or);
4102
4111
  };
4103
4112
  }
4104
- var w = p.match(E) ? Er : Or, P = function(T) {
4105
- return function(M) {
4106
- return function(N) {
4107
- return N.type === p && y({ payload: N, instance: I, plugins: o, abort: S }), M(N);
4113
+ var D = p.match(E) ? Er : Or, V = function(w) {
4114
+ return function(k) {
4115
+ return function(T) {
4116
+ return T.type === p && y({ payload: T, instance: I, plugins: o, abort: S }), k(T);
4108
4117
  };
4109
4118
  };
4110
4119
  };
4111
- return d(P, w), function() {
4112
- return h(P, w);
4120
+ return d(V, D), function() {
4121
+ return h(V, D);
4113
4122
  };
4114
4123
  }, once: function(p, y) {
4115
- if (!p || !te(y)) return !1;
4124
+ if (!p || !re(y)) return !1;
4116
4125
  if (p === j.bootstrap) throw new Error(".once disabled for " + p);
4117
4126
  var E = I.on(p, function(x) {
4118
4127
  y({ payload: x.payload, instance: I, plugins: o, abort: S }), E();
@@ -4122,7 +4131,7 @@ function jb(e) {
4122
4131
  var y = R.getState();
4123
4132
  return p ? Es(y, p) : Object.assign({}, y);
4124
4133
  }, dispatch: function(p) {
4125
- var y = Ue(p) ? { type: p } : p;
4134
+ var y = De(p) ? { type: p } : p;
4126
4135
  if (Ur.includes(y.type)) throw new Error("reserved action " + y.type);
4127
4136
  var E = A({}, y, { _: A({ originalAction: y.type }, p._ || {}) });
4128
4137
  R.dispatch(E);
@@ -4131,70 +4140,70 @@ function jb(e) {
4131
4140
  }, removeItem: function(p, y) {
4132
4141
  R.dispatch({ type: j.removeItemStart, key: p, options: y });
4133
4142
  } }, setAnonymousId: function(p, y) {
4134
- I.storage.setItem(Ne, p, y);
4143
+ I.storage.setItem(Me, p, y);
4135
4144
  }, events: { core: Ur, plugins: c } }, O = n.middlewares.concat([function(p) {
4136
4145
  return function(y) {
4137
4146
  return function(E) {
4138
4147
  return E.meta || (E.meta = Vs()), y(E);
4139
4148
  };
4140
4149
  };
4141
- }, m(Er), mb(I, u, { all: f, plugins: c }), gb(a), fb(I), hb(I), m(Or)]), _ = { context: Ob, user: db(a), page: Eb, track: Sb, plugins: wb(u), queue: $b }, C = Pt, F = Pt;
4142
- if (V && e.debug) {
4143
- var z = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
4144
- z && (C = z({ trace: !0, traceLimit: 25 })), F = function() {
4145
- return arguments.length === 0 ? hl() : ee(typeof arguments[0]) ? Ws() : Ws().apply(null, arguments);
4150
+ }, m(Er), mb(I, u, { all: f, plugins: c }), gb(a), fb(I), hb(I), m(Or)]), _ = { context: Ob, user: db(a), page: Eb, track: Sb, plugins: wb(u), queue: $b }, C = Et, M = Et;
4151
+ if (Z && e.debug) {
4152
+ var F = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
4153
+ F && (C = F({ trace: !0, traceLimit: 25 })), M = function() {
4154
+ return arguments.length === 0 ? hl() : te(typeof arguments[0]) ? Ws() : Ws().apply(null, arguments);
4146
4155
  };
4147
4156
  }
4148
4157
  var G, L = function(p) {
4149
4158
  return Object.keys(p).reduce(function(y, E) {
4150
4159
  return _b.includes(E) || (y[E] = p[E]), y;
4151
4160
  }, {});
4152
- }(e), D = n.pluginsArray.reduce(function(p, y) {
4153
- var E = y.name, x = y.config, U = y.loaded, w = n.pluginEnabled[E];
4154
- return p[E] = { enabled: w, initialized: !!w && !y.initialize, loaded: !!U({ config: x }), config: x }, p;
4155
- }, {}), H = { context: L, user: k, plugins: D }, R = nl(function(p) {
4161
+ }(e), N = n.pluginsArray.reduce(function(p, y) {
4162
+ var E = y.name, x = y.config, U = y.loaded, D = n.pluginEnabled[E];
4163
+ return p[E] = { enabled: D, initialized: !!D && !y.initialize, loaded: !!U({ config: x }), config: x }, p;
4164
+ }, {}), z = { context: L, user: P, plugins: N }, R = nl(function(p) {
4156
4165
  for (var y = Object.keys(p), E = {}, x = 0; x < y.length; x++) {
4157
4166
  var U = y[x];
4158
- typeof p[U] === Le && (E[U] = p[U]);
4167
+ typeof p[U] === Ue && (E[U] = p[U]);
4159
4168
  }
4160
- var w, P = Object.keys(E);
4169
+ var D, V = Object.keys(E);
4161
4170
  try {
4162
- (function(T) {
4163
- Object.keys(T).forEach(function(M) {
4164
- var N = T[M];
4165
- if (typeof N(void 0, { type: "@@redux/INIT" }) === Oe || typeof N(void 0, { type: cb }) === Oe) throw new Error("reducer " + M + " " + Oe);
4171
+ (function(w) {
4172
+ Object.keys(w).forEach(function(k) {
4173
+ var T = w[k];
4174
+ if (typeof T(void 0, { type: "@@redux/INIT" }) === _e || typeof T(void 0, { type: cb }) === _e) throw new Error("reducer " + k + " " + _e);
4166
4175
  });
4167
4176
  })(E);
4168
- } catch (T) {
4169
- w = T;
4177
+ } catch (w) {
4178
+ D = w;
4170
4179
  }
4171
- return function(T, M) {
4172
- if (T === void 0 && (T = {}), w) throw w;
4173
- for (var N = !1, Q = {}, jt = 0; jt < P.length; jt++) {
4174
- var ur = P[jt], Ai = T[ur], fn = (0, E[ur])(Ai, M);
4175
- if (typeof fn === Oe) {
4176
- var Tl = ub(ur, M);
4180
+ return function(w, k) {
4181
+ if (w === void 0 && (w = {}), D) throw D;
4182
+ for (var T = !1, H = {}, ee = 0; ee < V.length; ee++) {
4183
+ var je = V[ee], Ai = w[je], fn = (0, E[je])(Ai, k);
4184
+ if (typeof fn === _e) {
4185
+ var Tl = ub(je, k);
4177
4186
  throw new Error(Tl);
4178
4187
  }
4179
- Q[ur] = fn, N = N || fn !== Ai;
4188
+ H[je] = fn, T = T || fn !== Ai;
4180
4189
  }
4181
- return N ? Q : T;
4190
+ return T ? H : w;
4182
4191
  };
4183
- }(A({}, _, t)), H, F(C(lb.apply(void 0, O))));
4192
+ }(A({}, _, t)), z, M(C(lb.apply(void 0, O))));
4184
4193
  R.dispatch = (G = R.dispatch, function(p, y, E) {
4185
4194
  var x = A({}, p, { meta: Vs(p.meta, y, ca(E)) });
4186
4195
  return G.apply(null, [x]);
4187
4196
  });
4188
4197
  var B = Object.keys(o);
4189
- R.dispatch({ type: j.bootstrap, plugins: B, config: L, params: g, user: k, initialUser: r, persistedUser: $ });
4198
+ R.dispatch({ type: j.bootstrap, plugins: B, config: L, params: g, user: P, initialUser: r, persistedUser: $ });
4190
4199
  var W = B.filter(function(p) {
4191
4200
  return n.pluginEnabled[p];
4192
- }), He = B.filter(function(p) {
4201
+ }), Ke = B.filter(function(p) {
4193
4202
  return !n.pluginEnabled[p];
4194
4203
  });
4195
4204
  return R.dispatch({ type: j.registerPlugins, plugins: B, enabled: n.pluginEnabled }), n.pluginsArray.map(function(p, y) {
4196
4205
  var E = p.bootstrap, x = p.config, U = p.name;
4197
- E && te(E) && E({ instance: I, config: x, payload: p }), R.dispatch({ type: j.registerPluginType(U), name: U, enabled: n.pluginEnabled[U], plugin: p }), n.pluginsArray.length === y + 1 && R.dispatch({ type: j.initializeStart, plugins: W, disabled: He });
4206
+ E && re(E) && E({ instance: I, config: x, payload: p }), R.dispatch({ type: j.registerPluginType(U), name: U, enabled: n.pluginEnabled[U], plugin: p }), n.pluginsArray.length === y + 1 && R.dispatch({ type: j.initializeStart, plugins: W, disabled: Ke });
4198
4207
  }), Cb(function(p) {
4199
4208
  R.dispatch({ type: p ? j.offline : j.online });
4200
4209
  }), function(p, y, E) {
@@ -4203,40 +4212,40 @@ function jb(e) {
4203
4212
  }, 3e3);
4204
4213
  }(R, u, I), I;
4205
4214
  }
4206
- var Er = "before", Or = "after", Xt = "cookie", Ve = ml(), vl = un, Ab = un;
4215
+ var Er = "before", Or = "after", qt = "cookie", Ye = ml(), vl = un, Ab = un;
4207
4216
  function pl(e) {
4208
- return Ve ? un(e, "", -1) : Rt(e);
4217
+ return Ye ? un(e, "", -1) : jt(e);
4209
4218
  }
4210
4219
  function ml() {
4211
- if (Ve !== void 0) return Ve;
4220
+ if (Ye !== void 0) return Ye;
4212
4221
  var e = "cookiecookie";
4213
4222
  try {
4214
- un(e, e), Ve = document.cookie.indexOf(e) !== -1, pl(e);
4223
+ un(e, e), Ye = document.cookie.indexOf(e) !== -1, pl(e);
4215
4224
  } catch {
4216
- Ve = !1;
4225
+ Ye = !1;
4217
4226
  }
4218
- return Ve;
4227
+ return Ye;
4219
4228
  }
4220
4229
  function un(e, t, r, n, a, i) {
4221
4230
  if (typeof window < "u") {
4222
4231
  var o = arguments.length > 1;
4223
- return Ve === !1 && (o ? rt(e, t) : tt(e)), o ? document.cookie = e + "=" + encodeURIComponent(t) + (r ? "; expires=" + new Date(+/* @__PURE__ */ new Date() + 1e3 * r).toUTCString() + (n ? "; path=" + n : "") + (a ? "; domain=" + a : "") + (i ? "; secure" : "") : "") : decodeURIComponent((("; " + document.cookie).split("; " + e + "=")[1] || "").split(";")[0]);
4224
- }
4225
- }
4226
- var qt = "localStorage", Lb = Ti.bind(null, "localStorage");
4227
- Ct("localStorage", "getItem", tt);
4228
- Ct("localStorage", "setItem", rt);
4229
- Ct("localStorage", "removeItem", Rt);
4230
- var Qt = "sessionStorage", xb = Ti.bind(null, "sessionStorage");
4231
- Ct("sessionStorage", "getItem", tt);
4232
- Ct("sessionStorage", "setItem", rt);
4233
- Ct("sessionStorage", "removeItem", Rt);
4234
- function yt(e) {
4232
+ return Ye === !1 && (o ? at(e, t) : nt(e)), o ? document.cookie = e + "=" + encodeURIComponent(t) + (r ? "; expires=" + new Date(+/* @__PURE__ */ new Date() + 1e3 * r).toUTCString() + (n ? "; path=" + n : "") + (a ? "; domain=" + a : "") + (i ? "; secure" : "") : "") : decodeURIComponent((("; " + document.cookie).split("; " + e + "=")[1] || "").split(";")[0]);
4233
+ }
4234
+ }
4235
+ var Qt = "localStorage", Lb = Ti.bind(null, "localStorage");
4236
+ At("localStorage", "getItem", nt);
4237
+ At("localStorage", "setItem", at);
4238
+ At("localStorage", "removeItem", jt);
4239
+ var er = "sessionStorage", xb = Ti.bind(null, "sessionStorage");
4240
+ At("sessionStorage", "getItem", nt);
4241
+ At("sessionStorage", "setItem", at);
4242
+ At("sessionStorage", "removeItem", jt);
4243
+ function bt(e) {
4235
4244
  var t = e;
4236
4245
  try {
4237
4246
  if ((t = JSON.parse(e)) === "true") return !0;
4238
4247
  if (t === "false") return !1;
4239
- if (ee(t)) return t;
4248
+ if (te(t)) return t;
4240
4249
  parseFloat(t) === t && (t = parseFloat(t));
4241
4250
  } catch {
4242
4251
  }
@@ -4245,39 +4254,39 @@ function yt(e) {
4245
4254
  var Ub = Lb(), Nb = xb(), Db = ml();
4246
4255
  function gl(e, t) {
4247
4256
  if (e) {
4248
- var r = Ei(t), n = !Ci(r), a = Oi(r) ? yt(localStorage.getItem(e)) : void 0;
4249
- if (n && !vt(a)) return a;
4250
- var i = _i(r) ? yt(vl(e)) : void 0;
4257
+ var r = Ei(t), n = !Ci(r), a = Oi(r) ? bt(localStorage.getItem(e)) : void 0;
4258
+ if (n && !mt(a)) return a;
4259
+ var i = _i(r) ? bt(vl(e)) : void 0;
4251
4260
  if (n && i) return i;
4252
- var o = Ri(r) ? yt(sessionStorage.getItem(e)) : void 0;
4261
+ var o = Ri(r) ? bt(sessionStorage.getItem(e)) : void 0;
4253
4262
  if (n && o) return o;
4254
- var c = tt(e);
4263
+ var c = nt(e);
4255
4264
  return n ? c : { localStorage: a, sessionStorage: o, cookie: i, global: c };
4256
4265
  }
4257
4266
  }
4258
4267
  function Mb(e, t, r) {
4259
- if (e && !vt(t)) {
4268
+ if (e && !mt(t)) {
4260
4269
  var n = {}, a = Ei(r), i = JSON.stringify(t), o = !Ci(a);
4261
- return Oi(a) && (n[qt] = _r(qt, t, yt(localStorage.getItem(e))), localStorage.setItem(e, i), o) ? n[qt] : _i(a) && (n[Xt] = _r(Xt, t, yt(vl(e))), Ab(e, i), o) ? n[Xt] : Ri(a) && (n[Qt] = _r(Qt, t, yt(sessionStorage.getItem(e))), sessionStorage.setItem(e, i), o) ? n[Qt] : (n[Jt] = _r(Jt, t, tt(e)), rt(e, t), o ? n[Jt] : n);
4270
+ return Oi(a) && (n[Qt] = _r(Qt, t, bt(localStorage.getItem(e))), localStorage.setItem(e, i), o) ? n[Qt] : _i(a) && (n[qt] = _r(qt, t, bt(vl(e))), Ab(e, i), o) ? n[qt] : Ri(a) && (n[er] = _r(er, t, bt(sessionStorage.getItem(e))), sessionStorage.setItem(e, i), o) ? n[er] : (n[Xt] = _r(Xt, t, nt(e)), at(e, t), o ? n[Xt] : n);
4262
4271
  }
4263
4272
  }
4264
4273
  function Fb(e, t) {
4265
4274
  if (e) {
4266
4275
  var r = Ei(t), n = gl(e, qu), a = {};
4267
- return !vt(n.localStorage) && Oi(r) && (localStorage.removeItem(e), a[qt] = n.localStorage), !vt(n.cookie) && _i(r) && (pl(e), a[Xt] = n.cookie), !vt(n.sessionStorage) && Ri(r) && (sessionStorage.removeItem(e), a[Qt] = n.sessionStorage), !vt(n.global) && ln(r, Jt) && (Rt(e), a[Jt] = n.global), a;
4276
+ return !mt(n.localStorage) && Oi(r) && (localStorage.removeItem(e), a[Qt] = n.localStorage), !mt(n.cookie) && _i(r) && (pl(e), a[qt] = n.cookie), !mt(n.sessionStorage) && Ri(r) && (sessionStorage.removeItem(e), a[er] = n.sessionStorage), !mt(n.global) && ln(r, Xt) && (jt(e), a[Xt] = n.global), a;
4268
4277
  }
4269
4278
  }
4270
4279
  function Ei(e) {
4271
- return e ? Ue(e) ? e : e.storage : Xu;
4280
+ return e ? De(e) ? e : e.storage : Xu;
4272
4281
  }
4273
4282
  function Oi(e) {
4274
- return Ub && ln(e, qt);
4283
+ return Ub && ln(e, Qt);
4275
4284
  }
4276
4285
  function _i(e) {
4277
- return Db && ln(e, Xt);
4286
+ return Db && ln(e, qt);
4278
4287
  }
4279
4288
  function Ri(e) {
4280
- return Nb && ln(e, Qt);
4289
+ return Nb && ln(e, er);
4281
4290
  }
4282
4291
  function Ci(e) {
4283
4292
  return e === qu || e === "all";
@@ -4370,37 +4379,37 @@ function Vb(e) {
4370
4379
  }
4371
4380
  function Zb() {
4372
4381
  Gb(() => {
4373
- Ee.page();
4382
+ Oe.page();
4374
4383
  });
4375
4384
  }
4376
4385
  function Yb(e) {
4377
- if (e === void 0 && (e = {}), !V) return Ua;
4386
+ if (e === void 0 && (e = {}), !Z) return Ua;
4378
4387
  var t = Xs(), r = Ma(), n = Js(), a = Rr(n, t), i = Rr(r, t), o = [], c = [], l = [], f = n, u = a, s = i, d = Object.keys(e);
4379
4388
  if (!d.length) return Ua;
4380
4389
  var h = d.map(function(S) {
4381
4390
  return Number(S);
4382
4391
  }), m = sb(function() {
4383
- var S = Xs(), g = function(L, D) {
4384
- return D.map(function(H) {
4385
- return H === 100 ? L - 5 : L * (H / 100);
4392
+ var S = Xs(), g = function(L, N) {
4393
+ return N.map(function(z) {
4394
+ return z === 100 ? L - 5 : L * (z / 100);
4386
4395
  });
4387
- }(S, h), $ = Ma(), k = Js(), b = Rr(k, S), v = Rr($, S);
4396
+ }(S, h), $ = Ma(), P = Js(), b = Rr(P, S), v = Rr($, S);
4388
4397
  if (u = b > u ? b : u, s = v < s ? v : s, !(o.length >= h.length)) {
4389
- var I = f === k, O = "up";
4390
- I ? O = "initial" : f <= k && (O = "down");
4398
+ var I = f === P, O = "up";
4399
+ I ? O = "initial" : f <= P && (O = "down");
4391
4400
  var _ = g, C = h;
4392
4401
  (O === "up" || I) && (_ = g.slice().reverse(), C = h.slice().reverse());
4393
- var F = C.reduce(function(L, D, H) {
4394
- var R = _[H];
4395
- return l.includes(D) && k <= R && (l = l.filter(function(B) {
4396
- return B !== D;
4397
- }), L.singleFunction = D), O === "down" && !o.includes(D) && k >= R && D > i ? (c.push(D), L.callbacks = L.callbacks.concat(D), L) : O === "up" && !o.includes(D) && k <= R && D <= b ? (L.foundFunc = [D], L) : (I && k >= R && L.foundFunc.length === 0 && (L.foundFunc = [D]), !c.includes(D) && k >= R && (c.push(D), L.singleFunction ? l.push(D) : L.singleFunction = D), L);
4402
+ var M = C.reduce(function(L, N, z) {
4403
+ var R = _[z];
4404
+ return l.includes(N) && P <= R && (l = l.filter(function(B) {
4405
+ return B !== N;
4406
+ }), L.singleFunction = N), O === "down" && !o.includes(N) && P >= R && N > i ? (c.push(N), L.callbacks = L.callbacks.concat(N), L) : O === "up" && !o.includes(N) && P <= R && N <= b ? (L.foundFunc = [N], L) : (I && P >= R && L.foundFunc.length === 0 && (L.foundFunc = [N]), !c.includes(N) && P >= R && (c.push(N), L.singleFunction ? l.push(N) : L.singleFunction = N), L);
4398
4407
  }, { foundFunc: [], singleFunction: null, callbacks: [], direction: O });
4399
- if (f = k, O === "down" && F.callbacks && F.callbacks.forEach(function(L) {
4400
- te(e[L]) && (e[L]({ trigger: L, direction: O, scrollMin: s, scrollMax: u, range: [s, u] }), o.push(L));
4401
- }), F.singleFunction) {
4402
- var z = F.singleFunction, G = F.direction;
4403
- te(e[z]) && e[z]({ trigger: z, direction: G, scrollMin: s, scrollMax: u, range: [s, u] }), o.push(z);
4408
+ if (f = P, O === "down" && M.callbacks && M.callbacks.forEach(function(L) {
4409
+ re(e[L]) && (e[L]({ trigger: L, direction: O, scrollMin: s, scrollMax: u, range: [s, u] }), o.push(L));
4410
+ }), M.singleFunction) {
4411
+ var F = M.singleFunction, G = M.direction;
4412
+ re(e[F]) && e[F]({ trigger: F, direction: G, scrollMin: s, scrollMax: u, range: [s, u] }), o.push(F);
4404
4413
  }
4405
4414
  }
4406
4415
  }, 500);
@@ -4409,16 +4418,16 @@ function Yb(e) {
4409
4418
  };
4410
4419
  }
4411
4420
  function Ma() {
4412
- return V ? document.body.scrollTop || document.documentElement.scrollTop : 0;
4421
+ return Z ? document.body.scrollTop || document.documentElement.scrollTop : 0;
4413
4422
  }
4414
4423
  function Jb() {
4415
- return V ? window.innerHeight || document.documentElement.clientHeight : 0;
4424
+ return Z ? window.innerHeight || document.documentElement.clientHeight : 0;
4416
4425
  }
4417
4426
  function Js() {
4418
4427
  return Math.round(Ma() + Jb());
4419
4428
  }
4420
4429
  function Xs() {
4421
- if (!V) return 0;
4430
+ if (!Z) return 0;
4422
4431
  var e = document.body, t = document.documentElement;
4423
4432
  return Math.max(e.scrollHeight, e.offsetHeight, t.clientHeight, t.scrollHeight, t.offsetHeight);
4424
4433
  }
@@ -4429,7 +4438,7 @@ var qs = "EventListener";
4429
4438
  function Xb(e) {
4430
4439
  return function(t, r, n, a) {
4431
4440
  var i = n || Ua, o = a || !1;
4432
- if (!V) return i;
4441
+ if (!Z) return i;
4433
4442
  var c = Vr(r), l = Vr(t, !0);
4434
4443
  if (!l.length) throw new Error("noElements");
4435
4444
  if (!c.length) throw new Error("noEvent");
@@ -4446,7 +4455,7 @@ function Xb(e) {
4446
4455
  };
4447
4456
  }
4448
4457
  function Vr(e, t) {
4449
- if (Ue(e)) return t ? Vr(document.querySelectorAll(e)) : (r = e).split(r.indexOf(",") > -1 ? "," : " ").map(function(o) {
4458
+ if (De(e)) return t ? Vr(document.querySelectorAll(e)) : (r = e).split(r.indexOf(",") > -1 ? "," : " ").map(function(o) {
4450
4459
  return o.trim();
4451
4460
  });
4452
4461
  var r;
@@ -4456,7 +4465,7 @@ function Vr(e, t) {
4456
4465
  }
4457
4466
  var i = rb(e);
4458
4467
  return t ? i.map(function(o) {
4459
- return Ue(o) ? Vr(o, !0) : o;
4468
+ return De(o) ? Vr(o, !0) : o;
4460
4469
  }).flat() : i;
4461
4470
  }
4462
4471
  function qb(e, t) {
@@ -4467,7 +4476,7 @@ function qb(e, t) {
4467
4476
  }
4468
4477
  var ua = Xb("Event");
4469
4478
  function yl(e, t) {
4470
- return V && te(window[e]) ? (r = window[e], n = t, (a = window) === void 0 && (a = null), te(r) ? function() {
4479
+ return Z && re(window[e]) ? (r = window[e], n = t, (a = window) === void 0 && (a = null), re(r) ? function() {
4471
4480
  r.apply(a, arguments), n.apply(a, arguments);
4472
4481
  } : n) : window[e] = t;
4473
4482
  var r, n, a;
@@ -4526,8 +4535,8 @@ function nS(e) {
4526
4535
  return clearTimeout(t);
4527
4536
  };
4528
4537
  function m(g) {
4529
- h(), i && !u && i(zt(d), g), a && u && (u = !1, a(zt(r), g), d = /* @__PURE__ */ new Date()), t = setTimeout(function() {
4530
- u = !0, n && (r = /* @__PURE__ */ new Date(), n(zt(d), g));
4538
+ h(), i && !u && i(Ht(d), g), a && u && (u = !1, a(Ht(r), g), d = /* @__PURE__ */ new Date()), t = setTimeout(function() {
4539
+ u = !0, n && (r = /* @__PURE__ */ new Date(), n(Ht(d), g));
4531
4540
  }, c);
4532
4541
  }
4533
4542
  var S = rS(m, { throttle: f });
@@ -4538,26 +4547,26 @@ function nS(e) {
4538
4547
  return s = !1, d = /* @__PURE__ */ new Date(), m({ type: "load" }), g();
4539
4548
  };
4540
4549
  }, getStatus: function() {
4541
- return { isIdle: u, isDisabled: s, active: u ? 0 : zt(d, s), idle: u ? zt(r, s) : 0 };
4550
+ return { isIdle: u, isDisabled: s, active: u ? 0 : Ht(d, s), idle: u ? Ht(r, s) : 0 };
4542
4551
  } };
4543
4552
  }
4544
- function zt(e, t) {
4553
+ function Ht(e, t) {
4545
4554
  return t ? 0 : Math.round((/* @__PURE__ */ new Date() - e) / 1e3);
4546
4555
  }
4547
4556
  const ec = 5e3;
4548
4557
  class aS {
4549
4558
  constructor(t) {
4550
- ie(this, "element");
4551
- ie(this, "isInViewport", !1);
4552
- ie(this, "isAwake", !1);
4553
- ie(this, "isFlushing");
4554
- ie(this, "observer");
4555
- ie(this, "lastEventAt", Date.now());
4556
- ie(this, "registeredView", !1);
4557
- ie(this, "viewCallback");
4558
- ie(this, "activeDurationCallback");
4559
- ie(this, "idleDurationCallback");
4560
- ie(this, "scrollCallback");
4559
+ oe(this, "element");
4560
+ oe(this, "isInViewport", !1);
4561
+ oe(this, "isAwake", !1);
4562
+ oe(this, "isFlushing");
4563
+ oe(this, "observer");
4564
+ oe(this, "lastEventAt", Date.now());
4565
+ oe(this, "registeredView", !1);
4566
+ oe(this, "viewCallback");
4567
+ oe(this, "activeDurationCallback");
4568
+ oe(this, "idleDurationCallback");
4569
+ oe(this, "scrollCallback");
4561
4570
  this.element = t.element, this.viewCallback = t.viewCallback, this.activeDurationCallback = t.activeDurationCallback, this.idleDurationCallback = t.idleDurationCallback, this.scrollCallback = t.scrollCallback, this.observer = new IntersectionObserver(
4562
4571
  (r) => {
4563
4572
  r.forEach((n) => {
@@ -4613,30 +4622,30 @@ function iS() {
4613
4622
  }
4614
4623
  let bl = !1, Fa, rc, Zr;
4615
4624
  function oS({ clientId: e, enabled: t = !0, environment: r }) {
4616
- if (Fa = e, rc = t, Zr = `${Ae("logs", r)}/events`, !rc)
4625
+ if (Fa = e, rc = t, Zr = `${xe("logs", r)}/events`, !rc)
4617
4626
  return;
4618
4627
  Zb();
4619
4628
  const n = new aS({
4620
4629
  element: document.body,
4621
4630
  viewCallback: () => {
4622
- Ee.page();
4631
+ Oe.page();
4623
4632
  },
4624
4633
  activeDurationCallback: (a, i, o) => {
4625
- Ee.track("activeDuration", {
4634
+ Oe.track("activeDuration", {
4626
4635
  duration: a,
4627
4636
  durationStart: o,
4628
4637
  flushing: i
4629
4638
  });
4630
4639
  },
4631
4640
  idleDurationCallback: (a, i, o) => {
4632
- Ee.track("idleDuration", {
4641
+ Oe.track("idleDuration", {
4633
4642
  duration: a,
4634
4643
  durationStart: o,
4635
4644
  flushing: i
4636
4645
  });
4637
4646
  },
4638
4647
  scrollCallback: (a) => {
4639
- Ee.track("scroll", {
4648
+ Oe.track("scroll", {
4640
4649
  scroll: a.scrollMax
4641
4650
  });
4642
4651
  }
@@ -4645,11 +4654,11 @@ function oS({ clientId: e, enabled: t = !0, environment: r }) {
4645
4654
  n.flush();
4646
4655
  }), lS(document.body, () => {
4647
4656
  n.handleVisibilityChange();
4648
- }), window.addEventListener(ge.AUTHENTICATED, async (a) => {
4657
+ }), window.addEventListener(ye.AUTHENTICATED, async (a) => {
4649
4658
  const i = a;
4650
- await Ee.identify(i.detail.sub);
4651
- }), window.addEventListener(ge.LOGOUT, async () => {
4652
- await Ee.track("logout", {}), ji.flush(), await Ee.reset();
4659
+ await Oe.identify(i.detail.sub);
4660
+ }), window.addEventListener(ye.LOGOUT, async () => {
4661
+ await Oe.track("logout", {}), ji.flush(), await Oe.reset();
4653
4662
  });
4654
4663
  }
4655
4664
  function Sl(e) {
@@ -4706,7 +4715,7 @@ function la(e) {
4706
4715
  } else
4707
4716
  ji.push(e);
4708
4717
  }
4709
- const Ee = Bb({
4718
+ const Oe = Bb({
4710
4719
  app: Ju,
4711
4720
  // @ts-expect-error The type in the library is incorrect. It should be a string.
4712
4721
  version: Pi,
@@ -4746,7 +4755,7 @@ const Ee = Bb({
4746
4755
  ]
4747
4756
  });
4748
4757
  function sS(e, t) {
4749
- Ee.track(e, t);
4758
+ Oe.track(e, t);
4750
4759
  }
4751
4760
  function cS() {
4752
4761
  return bl = !0, ji.flush();
@@ -4797,19 +4806,19 @@ function dS(e) {
4797
4806
  deleteTag: S,
4798
4807
  setTag: g,
4799
4808
  getUserMetadata: $,
4800
- listUserMetadata: k,
4809
+ listUserMetadata: P,
4801
4810
  setUserMetadata: b,
4802
4811
  deleteUserMetadata: v,
4803
4812
  getTally: I,
4804
4813
  getTallies: O,
4805
4814
  pushTally: _,
4806
4815
  deleteTally: C,
4807
- getProduct: F,
4808
- getPaymentIssues: z,
4816
+ getProduct: M,
4817
+ getPaymentIssues: F,
4809
4818
  isSpotifyLinked: G,
4810
4819
  unlinkSpotify: L,
4811
- linkSpotify: D,
4812
- autoOnboardProduct: H,
4820
+ linkSpotify: N,
4821
+ autoOnboardProduct: z,
4813
4822
  openHostedAccountPage: R,
4814
4823
  generateLink: B
4815
4824
  } = Ww(e), W = {
@@ -4856,7 +4865,7 @@ function dS(e) {
4856
4865
  },
4857
4866
  userMetadata: {
4858
4867
  get: $,
4859
- list: k,
4868
+ list: P,
4860
4869
  set: b,
4861
4870
  delete: v
4862
4871
  },
@@ -4870,14 +4879,14 @@ function dS(e) {
4870
4879
  list: c
4871
4880
  },
4872
4881
  products: {
4873
- get: F,
4874
- autoOnboard: H,
4875
- linkSpotify: D
4882
+ get: M,
4883
+ autoOnboard: z,
4884
+ linkSpotify: N
4876
4885
  },
4877
4886
  getVersion: hS,
4878
- getPaymentIssues: z,
4887
+ getPaymentIssues: F,
4879
4888
  generateLink: B,
4880
- clearCache: ve
4889
+ clearCache: pe
4881
4890
  };
4882
4891
  return e.namespace && (window[e.namespace] = W), W;
4883
4892
  }
@@ -4942,7 +4951,7 @@ function mS() {
4942
4951
  const e = new URLSearchParams(window.location.search), t = e.get(ic), r = e.get(ac);
4943
4952
  if (t !== null || r !== null) {
4944
4953
  const n = new URL(window.location.href);
4945
- e.delete(ic), e.delete(ac), n.search = e.toString(), ve(), window.history.replaceState(null, "", n);
4954
+ e.delete(ic), e.delete(ac), n.search = e.toString(), pe(), window.history.replaceState(null, "", n);
4946
4955
  }
4947
4956
  }
4948
4957
  function gS() {
@@ -4967,7 +4976,7 @@ async function yS() {
4967
4976
  if (!t)
4968
4977
  return;
4969
4978
  const r = await Aw();
4970
- (r == null ? void 0 : r.email) !== t && (ve(), ki({ authorizationParams: { email_hint: t, login_hint: t } }));
4979
+ (r == null ? void 0 : r.email) !== t && (pe(), ki({ authorizationParams: { email_hint: t, login_hint: t } }));
4971
4980
  const n = new URL(window.location.href);
4972
4981
  n.searchParams.delete(oc), window.history.replaceState(null, "", n);
4973
4982
  }
@@ -4976,7 +4985,7 @@ function wS() {
4976
4985
  const e = new URLSearchParams(window.location.search), t = e.get(sc);
4977
4986
  if (t !== null) {
4978
4987
  const r = new URL(window.location.href);
4979
- e.delete(sc), r.search = e.toString(), De(ge.PURCHASE, { itemSrc: t }), ve(), window.history.replaceState(null, "", r);
4988
+ e.delete(sc), r.search = e.toString(), Fe(ye.PURCHASE, { itemSrc: t }), pe(), window.history.replaceState(null, "", r);
4980
4989
  }
4981
4990
  }
4982
4991
  const cc = "sesamy-login";
@@ -5001,7 +5010,7 @@ async function SS(e) {
5001
5010
  ...e.auth
5002
5011
  }), e.transform && await vS(e.transform);
5003
5012
  const t = dS({ clientId: e.clientId, environment: e.environment, ...e.api });
5004
- return De(ge.READY, {}), pS(), mS(), gS(), await bS(), await yS(), wS(), t;
5013
+ return Fe(ye.READY, {}), pS(), mS(), gS(), await bS(), await yS(), wS(), t;
5005
5014
  }
5006
5015
  if (typeof document < "u") {
5007
5016
  const e = document.getElementById("sesamy-js");