@sesamy/sesamy-js 1.19.3 → 1.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sesamy-js.cjs +5 -5
- package/dist/sesamy-js.d.ts +1 -0
- package/dist/sesamy-js.iife.js +5 -5
- package/dist/sesamy-js.mjs +733 -730
- package/package.json +1 -1
package/dist/sesamy-js.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var oe = (e, t, r) =>
|
|
1
|
+
var Ol = Object.defineProperty;
|
|
2
|
+
var _l = (e, t, r) => t in e ? Ol(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var oe = (e, t, r) => _l(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
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
|
-
},
|
|
10
|
+
}, Rl = ne, za = !Rl(function() {
|
|
11
11
|
var e = (function() {
|
|
12
12
|
}).bind();
|
|
13
13
|
return typeof e != "function" || e.hasOwnProperty("prototype");
|
|
14
|
-
}),
|
|
14
|
+
}), lc = za, fc = Function.prototype, fa = fc.call, Cl = lc && fc.bind.bind(fa, fa), K = lc ? Cl : function(e) {
|
|
15
15
|
return function() {
|
|
16
16
|
return fa.apply(e, arguments);
|
|
17
17
|
};
|
|
18
|
-
},
|
|
19
|
-
return jl(
|
|
20
|
-
},
|
|
18
|
+
}, dc = K, jl = dc({}.toString), Al = dc("".slice), Ha = function(e) {
|
|
19
|
+
return Al(jl(e), 8, -1);
|
|
20
|
+
}, Ll = K, xl = ne, Ul = Ha, dn = Object, Nl = Ll("".split), hc = xl(function() {
|
|
21
21
|
return !dn("z").propertyIsEnumerable(0);
|
|
22
22
|
}) ? function(e) {
|
|
23
|
-
return
|
|
23
|
+
return Ul(e) === "String" ? Nl(e, "") : dn(e);
|
|
24
24
|
} : dn, Ba = function(e) {
|
|
25
25
|
return e == null;
|
|
26
|
-
},
|
|
27
|
-
if (
|
|
26
|
+
}, Dl = Ba, Ml = TypeError, Yr = function(e) {
|
|
27
|
+
if (Dl(e)) throw new Ml("Can't call method on " + e);
|
|
28
28
|
return e;
|
|
29
|
-
},
|
|
30
|
-
return
|
|
29
|
+
}, Fl = hc, zl = Yr, nr = function(e) {
|
|
30
|
+
return Fl(zl(e));
|
|
31
31
|
}, Lt = function(e) {
|
|
32
32
|
return e && e.Math === Math && e;
|
|
33
33
|
}, Q = (
|
|
@@ -37,14 +37,14 @@ var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
37
37
|
/* @__PURE__ */ function() {
|
|
38
38
|
return this;
|
|
39
39
|
}() || Function("return this")()
|
|
40
|
-
),
|
|
40
|
+
), vc = { exports: {} }, Hl = !1, Li = Q, Bl = Object.defineProperty, Ka = function(e, t) {
|
|
41
41
|
try {
|
|
42
|
-
|
|
42
|
+
Bl(Li, e, { value: t, configurable: !0, writable: !0 });
|
|
43
43
|
} catch {
|
|
44
44
|
Li[e] = t;
|
|
45
45
|
}
|
|
46
46
|
return t;
|
|
47
|
-
},
|
|
47
|
+
}, Kl = Q, Gl = Ka, xi = "__core-js_shared__", Ui = vc.exports = Kl[xi] || Gl(xi, {});
|
|
48
48
|
(Ui.versions || (Ui.versions = [])).push({
|
|
49
49
|
version: "3.37.1",
|
|
50
50
|
mode: "global",
|
|
@@ -52,92 +52,92 @@ var lr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
52
52
|
license: "https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",
|
|
53
53
|
source: "https://github.com/zloirock/core-js"
|
|
54
54
|
});
|
|
55
|
-
var Ga =
|
|
55
|
+
var Ga = vc.exports, Ni = Ga, pc = function(e, t) {
|
|
56
56
|
return Ni[e] || (Ni[e] = t || {});
|
|
57
|
-
},
|
|
58
|
-
return Wl(
|
|
59
|
-
},
|
|
60
|
-
return Yl(
|
|
61
|
-
},
|
|
62
|
-
return "Symbol(" + (e === void 0 ? "" : e) + ")_" +
|
|
63
|
-
},
|
|
57
|
+
}, Wl = Yr, Vl = Object, Jr = function(e) {
|
|
58
|
+
return Vl(Wl(e));
|
|
59
|
+
}, Zl = K, Yl = Jr, Jl = Zl({}.hasOwnProperty), we = Object.hasOwn || function(t, r) {
|
|
60
|
+
return Jl(Yl(t), r);
|
|
61
|
+
}, Xl = K, ql = 0, Ql = Math.random(), ef = Xl(1 .toString), mc = function(e) {
|
|
62
|
+
return "Symbol(" + (e === void 0 ? "" : e) + ")_" + ef(++ql + Ql, 36);
|
|
63
|
+
}, tf = typeof navigator < "u" && String(navigator.userAgent) || "", gc = Q, hn = tf, Di = gc.process, Mi = gc.Deno, Fi = Di && Di.versions || Mi && Mi.version, zi = Fi && Fi.v8, me, Nr;
|
|
64
64
|
zi && (me = zi.split("."), Nr = me[0] > 0 && me[0] < 4 ? 1 : +(me[0] + me[1]));
|
|
65
65
|
!Nr && hn && (me = hn.match(/Edge\/(\d+)/), (!me || me[1] >= 74) && (me = hn.match(/Chrome\/(\d+)/), me && (Nr = +me[1])));
|
|
66
|
-
var
|
|
66
|
+
var rf = Nr, Hi = rf, nf = ne, af = Q, of = af.String, yc = !!Object.getOwnPropertySymbols && !nf(function() {
|
|
67
67
|
var e = Symbol("symbol detection");
|
|
68
|
-
return !
|
|
68
|
+
return !of(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
|
-
}),
|
|
71
|
-
return Bi(vn, e) || (vn[e] =
|
|
70
|
+
}), sf = yc, wc = sf && !Symbol.sham && typeof Symbol.iterator == "symbol", cf = Q, uf = pc, Bi = we, lf = mc, ff = yc, df = wc, vt = cf.Symbol, vn = uf("wks"), hf = df ? vt.for || vt : vt && vt.withoutSetter || lf, de = function(e) {
|
|
71
|
+
return Bi(vn, e) || (vn[e] = ff && Bi(vt, e) ? vt[e] : hf("Symbol." + e)), vn[e];
|
|
72
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
|
-
},
|
|
77
|
-
return typeof e == "object" ? e !== null :
|
|
78
|
-
},
|
|
79
|
-
if (
|
|
80
|
-
throw new mf(
|
|
81
|
-
},
|
|
76
|
+
}, vf = Y, je = function(e) {
|
|
77
|
+
return typeof e == "object" ? e !== null : vf(e);
|
|
78
|
+
}, pf = je, mf = String, gf = TypeError, He = function(e) {
|
|
79
|
+
if (pf(e)) return e;
|
|
80
|
+
throw new gf(mf(e) + " is not an object");
|
|
81
|
+
}, bc = {}, yf = ne, J = !yf(function() {
|
|
82
82
|
return Object.defineProperty({}, 1, { get: function() {
|
|
83
83
|
return 7;
|
|
84
84
|
} })[1] !== 7;
|
|
85
|
-
}),
|
|
85
|
+
}), wf = J, bf = ne, Sc = wf && bf(function() {
|
|
86
86
|
return Object.defineProperty(function() {
|
|
87
87
|
}, "prototype", {
|
|
88
88
|
value: 42,
|
|
89
89
|
writable: !1
|
|
90
90
|
}).prototype !== 42;
|
|
91
|
-
}), ke = {},
|
|
92
|
-
return
|
|
93
|
-
},
|
|
94
|
-
return Object.defineProperty(
|
|
91
|
+
}), ke = {}, Sf = Q, Ki = je, da = Sf.document, If = Ki(da) && Ki(da.createElement), Wa = function(e) {
|
|
92
|
+
return If ? da.createElement(e) : {};
|
|
93
|
+
}, $f = J, kf = ne, Pf = Wa, Ic = !$f && !kf(function() {
|
|
94
|
+
return Object.defineProperty(Pf("div"), "a", {
|
|
95
95
|
get: function() {
|
|
96
96
|
return 7;
|
|
97
97
|
}
|
|
98
98
|
}).a !== 7;
|
|
99
|
-
}),
|
|
99
|
+
}), Tf = za, fr = Function.prototype.call, Pe = Tf ? fr.bind(fr) : function() {
|
|
100
100
|
return fr.apply(fr, arguments);
|
|
101
|
-
}, mn = Q,
|
|
102
|
-
return
|
|
101
|
+
}, mn = Q, Ef = Y, Of = function(e) {
|
|
102
|
+
return Ef(e) ? e : void 0;
|
|
103
103
|
}, Ot = function(e, t) {
|
|
104
|
-
return arguments.length < 2 ?
|
|
105
|
-
},
|
|
104
|
+
return arguments.length < 2 ? Of(mn[e]) : mn[e] && mn[e][t];
|
|
105
|
+
}, _f = K, $c = _f({}.isPrototypeOf), Rf = Ot, Cf = Y, jf = $c, Af = wc, Lf = Object, kc = Af ? function(e) {
|
|
106
106
|
return typeof e == "symbol";
|
|
107
107
|
} : function(e) {
|
|
108
|
-
var t =
|
|
109
|
-
return
|
|
110
|
-
},
|
|
108
|
+
var t = Rf("Symbol");
|
|
109
|
+
return Cf(t) && jf(t.prototype, Lf(e));
|
|
110
|
+
}, xf = String, Pc = function(e) {
|
|
111
111
|
try {
|
|
112
|
-
return
|
|
112
|
+
return xf(e);
|
|
113
113
|
} catch {
|
|
114
114
|
return "Object";
|
|
115
115
|
}
|
|
116
|
-
},
|
|
117
|
-
if (
|
|
118
|
-
throw new Nf(
|
|
119
|
-
},
|
|
116
|
+
}, Uf = Y, Nf = Pc, Df = TypeError, Xr = function(e) {
|
|
117
|
+
if (Uf(e)) return e;
|
|
118
|
+
throw new Df(Nf(e) + " is not a function");
|
|
119
|
+
}, Mf = Xr, Ff = Ba, Va = function(e, t) {
|
|
120
120
|
var r = e[t];
|
|
121
|
-
return
|
|
122
|
-
}, gn = Pe, yn = Y, wn = je,
|
|
121
|
+
return Ff(r) ? void 0 : Mf(r);
|
|
122
|
+
}, gn = Pe, yn = Y, wn = je, zf = TypeError, Hf = 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
|
-
throw new
|
|
126
|
-
},
|
|
125
|
+
throw new zf("Can't convert object to primitive value");
|
|
126
|
+
}, Bf = Pe, Gi = je, Wi = kc, Kf = Va, Gf = Hf, Wf = de, Vf = TypeError, Zf = Wf("toPrimitive"), Yf = function(e, t) {
|
|
127
127
|
if (!Gi(e) || Wi(e)) return e;
|
|
128
|
-
var r =
|
|
128
|
+
var r = Kf(e, Zf), n;
|
|
129
129
|
if (r) {
|
|
130
|
-
if (t === void 0 && (t = "default"), n =
|
|
131
|
-
throw new
|
|
132
|
-
}
|
|
133
|
-
return t === void 0 && (t = "number"),
|
|
134
|
-
},
|
|
135
|
-
var t =
|
|
136
|
-
return
|
|
137
|
-
},
|
|
138
|
-
ke.f =
|
|
130
|
+
if (t === void 0 && (t = "default"), n = Bf(r, e, t), !Gi(n) || Wi(n)) return n;
|
|
131
|
+
throw new Vf("Can't convert object to primitive value");
|
|
132
|
+
}
|
|
133
|
+
return t === void 0 && (t = "number"), Gf(e, t);
|
|
134
|
+
}, Jf = Yf, Xf = kc, Tc = function(e) {
|
|
135
|
+
var t = Jf(e, "string");
|
|
136
|
+
return Xf(t) ? t : t + "";
|
|
137
|
+
}, qf = J, Qf = Ic, ed = Sc, dr = He, Vi = Tc, td = TypeError, bn = Object.defineProperty, rd = Object.getOwnPropertyDescriptor, Sn = "enumerable", In = "configurable", $n = "writable";
|
|
138
|
+
ke.f = qf ? ed ? 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
|
-
var a =
|
|
140
|
+
var a = rd(t, r);
|
|
141
141
|
a && a[$n] && (t[r] = n.value, n = {
|
|
142
142
|
configurable: In in n ? n[In] : a[In],
|
|
143
143
|
enumerable: Sn in n ? n[Sn] : a[Sn],
|
|
@@ -146,32 +146,32 @@ ke.f = Xf ? Qf ? function(t, r, n) {
|
|
|
146
146
|
}
|
|
147
147
|
return bn(t, r, n);
|
|
148
148
|
} : bn : function(t, r, n) {
|
|
149
|
-
if (dr(t), r = Vi(r), dr(n),
|
|
149
|
+
if (dr(t), r = Vi(r), dr(n), Qf) try {
|
|
150
150
|
return bn(t, r, n);
|
|
151
151
|
} catch {
|
|
152
152
|
}
|
|
153
|
-
if ("get" in n || "set" in n) throw new
|
|
153
|
+
if ("get" in n || "set" in n) throw new td("Accessors not supported");
|
|
154
154
|
return "value" in n && (t[r] = n.value), t;
|
|
155
155
|
};
|
|
156
|
-
var
|
|
156
|
+
var nd = Math.ceil, ad = Math.floor, id = Math.trunc || function(t) {
|
|
157
157
|
var r = +t;
|
|
158
|
-
return (r > 0 ?
|
|
159
|
-
},
|
|
158
|
+
return (r > 0 ? ad : nd)(r);
|
|
159
|
+
}, od = id, Za = function(e) {
|
|
160
160
|
var t = +e;
|
|
161
|
-
return t !== t || t === 0 ? 0 :
|
|
162
|
-
},
|
|
163
|
-
var r =
|
|
164
|
-
return r < 0 ?
|
|
165
|
-
},
|
|
166
|
-
var t =
|
|
167
|
-
return t > 0 ?
|
|
168
|
-
},
|
|
169
|
-
return
|
|
170
|
-
},
|
|
161
|
+
return t !== t || t === 0 ? 0 : od(t);
|
|
162
|
+
}, sd = Za, cd = Math.max, ud = Math.min, ld = function(e, t) {
|
|
163
|
+
var r = sd(e);
|
|
164
|
+
return r < 0 ? cd(r + t, 0) : ud(r, t);
|
|
165
|
+
}, fd = Za, dd = Math.min, hd = function(e) {
|
|
166
|
+
var t = fd(e);
|
|
167
|
+
return t > 0 ? dd(t, 9007199254740991) : 0;
|
|
168
|
+
}, vd = hd, Ec = function(e) {
|
|
169
|
+
return vd(e.length);
|
|
170
|
+
}, pd = nr, md = ld, gd = Ec, Zi = function(e) {
|
|
171
171
|
return function(t, r, n) {
|
|
172
|
-
var a =
|
|
172
|
+
var a = pd(t), i = gd(a);
|
|
173
173
|
if (i === 0) return !e && -1;
|
|
174
|
-
var o =
|
|
174
|
+
var o = md(n, i), c;
|
|
175
175
|
if (e && r !== r) {
|
|
176
176
|
for (; i > o; )
|
|
177
177
|
if (c = a[o++], c !== c) return !0;
|
|
@@ -179,17 +179,17 @@ var rd = Math.ceil, nd = Math.floor, ad = Math.trunc || function(t) {
|
|
|
179
179
|
if ((e || o in a) && a[o] === r) return e || o || 0;
|
|
180
180
|
return !e && -1;
|
|
181
181
|
};
|
|
182
|
-
},
|
|
182
|
+
}, yd = {
|
|
183
183
|
// `Array.prototype.includes` method
|
|
184
184
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
185
185
|
includes: Zi(!0),
|
|
186
186
|
// `Array.prototype.indexOf` method
|
|
187
187
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
188
188
|
indexOf: Zi(!1)
|
|
189
|
-
}, Ya = {},
|
|
190
|
-
var r =
|
|
191
|
-
for (i in r) !kn(
|
|
192
|
-
for (; t.length > n; ) kn(r, i = t[n++]) && (~
|
|
189
|
+
}, Ya = {}, wd = K, kn = we, bd = nr, Sd = yd.indexOf, Id = Ya, Yi = wd([].push), Oc = function(e, t) {
|
|
190
|
+
var r = bd(e), n = 0, a = [], i;
|
|
191
|
+
for (i in r) !kn(Id, i) && kn(r, i) && Yi(a, i);
|
|
192
|
+
for (; t.length > n; ) kn(r, i = t[n++]) && (~Sd(a, i) || Yi(a, i));
|
|
193
193
|
return a;
|
|
194
194
|
}, Ja = [
|
|
195
195
|
"constructor",
|
|
@@ -199,69 +199,69 @@ var rd = Math.ceil, nd = Math.floor, ad = Math.trunc || function(t) {
|
|
|
199
199
|
"toLocaleString",
|
|
200
200
|
"toString",
|
|
201
201
|
"valueOf"
|
|
202
|
-
],
|
|
203
|
-
return
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
for (var n =
|
|
202
|
+
], $d = Oc, kd = Ja, _c = Object.keys || function(t) {
|
|
203
|
+
return $d(t, kd);
|
|
204
|
+
}, Pd = J, Td = Sc, Ed = ke, Od = He, _d = nr, Rd = _c;
|
|
205
|
+
bc.f = Pd && !Td ? Object.defineProperties : function(t, r) {
|
|
206
|
+
Od(t);
|
|
207
|
+
for (var n = _d(r), a = Rd(r), i = a.length, o = 0, c; i > o; ) Ed.f(t, c = a[o++], n[c]);
|
|
208
208
|
return t;
|
|
209
209
|
};
|
|
210
|
-
var
|
|
211
|
-
return Ji[e] || (Ji[e] =
|
|
212
|
-
},
|
|
213
|
-
},
|
|
210
|
+
var Cd = Ot, jd = Cd("document", "documentElement"), Ad = pc, Ld = mc, Ji = Ad("keys"), Xa = function(e) {
|
|
211
|
+
return Ji[e] || (Ji[e] = Ld(e));
|
|
212
|
+
}, xd = He, Ud = bc, Xi = Ja, Nd = Ya, Dd = jd, Md = Wa, Fd = Xa, qi = ">", Qi = "<", ha = "prototype", va = "script", Rc = Fd("IE_PROTO"), Pn = function() {
|
|
213
|
+
}, Cc = function(e) {
|
|
214
214
|
return Qi + va + qi + e + Qi + "/" + va + qi;
|
|
215
215
|
}, eo = function(e) {
|
|
216
|
-
e.write(
|
|
216
|
+
e.write(Cc("")), e.close();
|
|
217
217
|
var t = e.parentWindow.Object;
|
|
218
218
|
return e = null, t;
|
|
219
|
-
},
|
|
220
|
-
var e =
|
|
221
|
-
return e.style.display = "none",
|
|
219
|
+
}, zd = function() {
|
|
220
|
+
var e = Md("iframe"), t = "java" + va + ":", r;
|
|
221
|
+
return e.style.display = "none", Dd.appendChild(e), e.src = String(t), r = e.contentWindow.document, r.open(), r.write(Cc("document.F=Object")), r.close(), r.F;
|
|
222
222
|
}, hr, Cr = function() {
|
|
223
223
|
try {
|
|
224
224
|
hr = new ActiveXObject("htmlfile");
|
|
225
225
|
} catch {
|
|
226
226
|
}
|
|
227
|
-
Cr = typeof document < "u" ? document.domain && hr ? eo(hr) :
|
|
227
|
+
Cr = typeof document < "u" ? document.domain && hr ? eo(hr) : zd() : eo(hr);
|
|
228
228
|
for (var e = Xi.length; e--; ) delete Cr[ha][Xi[e]];
|
|
229
229
|
return Cr();
|
|
230
230
|
};
|
|
231
|
-
|
|
231
|
+
Nd[Rc] = !0;
|
|
232
232
|
var qa = Object.create || function(t, r) {
|
|
233
233
|
var n;
|
|
234
|
-
return t !== null ? (Pn[ha] =
|
|
235
|
-
},
|
|
236
|
-
ma[pa] === void 0 &&
|
|
234
|
+
return t !== null ? (Pn[ha] = xd(t), n = new Pn(), Pn[ha] = null, n[Rc] = t) : n = Cr(), r === void 0 ? n : Ud.f(n, r);
|
|
235
|
+
}, Hd = de, Bd = qa, Kd = ke.f, pa = Hd("unscopables"), ma = Array.prototype;
|
|
236
|
+
ma[pa] === void 0 && Kd(ma, pa, {
|
|
237
237
|
configurable: !0,
|
|
238
|
-
value:
|
|
238
|
+
value: Bd(null)
|
|
239
239
|
});
|
|
240
|
-
var
|
|
240
|
+
var Gd = function(e) {
|
|
241
241
|
ma[pa][e] = !0;
|
|
242
|
-
}, ar = {},
|
|
242
|
+
}, ar = {}, Wd = Q, Vd = Y, to = Wd.WeakMap, Zd = Vd(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
|
-
},
|
|
250
|
-
return
|
|
249
|
+
}, Yd = J, Jd = ke, Xd = ir, qr = Yd ? function(e, t, r) {
|
|
250
|
+
return Jd.f(e, t, Xd(1, r));
|
|
251
251
|
} : function(e, t, r) {
|
|
252
252
|
return e[t] = r, e;
|
|
253
|
-
},
|
|
253
|
+
}, qd = Zd, jc = Q, Qd = je, eh = qr, Tn = we, En = Ga, th = Xa, rh = Ya, ro = "Object already initialized", ga = jc.TypeError, nh = jc.WeakMap, Dr, tr, Mr, ah = function(e) {
|
|
254
254
|
return Mr(e) ? tr(e) : Dr(e, {});
|
|
255
|
-
},
|
|
255
|
+
}, ih = function(e) {
|
|
256
256
|
return function(t) {
|
|
257
257
|
var r;
|
|
258
|
-
if (!
|
|
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
|
-
if (
|
|
264
|
-
var be = En.state || (En.state = new
|
|
263
|
+
if (qd || En.state) {
|
|
264
|
+
var be = En.state || (En.state = new nh());
|
|
265
265
|
be.get = be.get, be.has = be.has, be.set = be.set, Dr = function(e, t) {
|
|
266
266
|
if (be.has(e)) throw new ga(ro);
|
|
267
267
|
return t.facade = e, be.set(e, t), t;
|
|
@@ -271,10 +271,10 @@ if (Xd || En.state) {
|
|
|
271
271
|
return be.has(e);
|
|
272
272
|
};
|
|
273
273
|
} else {
|
|
274
|
-
var ot =
|
|
275
|
-
|
|
274
|
+
var ot = th("state");
|
|
275
|
+
rh[ot] = !0, Dr = function(e, t) {
|
|
276
276
|
if (Tn(e, ot)) throw new ga(ro);
|
|
277
|
-
return t.facade = e,
|
|
277
|
+
return t.facade = e, eh(e, ot, t), t;
|
|
278
278
|
}, tr = function(e) {
|
|
279
279
|
return Tn(e, ot) ? e[ot] : {};
|
|
280
280
|
}, Mr = function(e) {
|
|
@@ -285,56 +285,56 @@ var or = {
|
|
|
285
285
|
set: Dr,
|
|
286
286
|
get: tr,
|
|
287
287
|
has: Mr,
|
|
288
|
-
enforce:
|
|
289
|
-
getterFor:
|
|
290
|
-
}, Qa = {}, ei = {},
|
|
291
|
-
ei.f =
|
|
292
|
-
var r =
|
|
288
|
+
enforce: ah,
|
|
289
|
+
getterFor: ih
|
|
290
|
+
}, Qa = {}, ei = {}, Ac = {}.propertyIsEnumerable, Lc = Object.getOwnPropertyDescriptor, oh = Lc && !Ac.call({ 1: 2 }, 1);
|
|
291
|
+
ei.f = oh ? function(t) {
|
|
292
|
+
var r = Lc(this, t);
|
|
293
293
|
return !!r && r.enumerable;
|
|
294
|
-
} :
|
|
295
|
-
var
|
|
296
|
-
Qa.f =
|
|
297
|
-
if (t =
|
|
294
|
+
} : Ac;
|
|
295
|
+
var sh = J, ch = Pe, uh = ei, lh = ir, fh = nr, dh = Tc, hh = we, vh = Ic, no = Object.getOwnPropertyDescriptor;
|
|
296
|
+
Qa.f = sh ? no : function(t, r) {
|
|
297
|
+
if (t = fh(t), r = dh(r), vh) try {
|
|
298
298
|
return no(t, r);
|
|
299
299
|
} catch {
|
|
300
300
|
}
|
|
301
|
-
if (
|
|
301
|
+
if (hh(t, r)) return lh(!ch(uh.f, t, r), t[r]);
|
|
302
302
|
};
|
|
303
|
-
var
|
|
304
|
-
}).name === "something",
|
|
303
|
+
var xc = { exports: {} }, ya = J, ph = we, Uc = Function.prototype, mh = ya && Object.getOwnPropertyDescriptor, ti = ph(Uc, "name"), gh = ti && (function() {
|
|
304
|
+
}).name === "something", yh = ti && (!ya || ya && mh(Uc, "name").configurable), Nc = {
|
|
305
305
|
EXISTS: ti,
|
|
306
|
-
PROPER:
|
|
307
|
-
CONFIGURABLE:
|
|
308
|
-
},
|
|
309
|
-
|
|
310
|
-
return
|
|
306
|
+
PROPER: gh,
|
|
307
|
+
CONFIGURABLE: yh
|
|
308
|
+
}, wh = K, bh = Y, wa = Ga, Sh = wh(Function.toString);
|
|
309
|
+
bh(wa.inspectSource) || (wa.inspectSource = function(e) {
|
|
310
|
+
return Sh(e);
|
|
311
311
|
});
|
|
312
|
-
var
|
|
312
|
+
var Dc = wa.inspectSource, ri = K, Ih = ne, $h = Y, vr = we, ba = J, kh = Nc.CONFIGURABLE, Ph = Dc, Mc = or, Th = Mc.enforce, Eh = Mc.get, ao = String, jr = Object.defineProperty, Oh = ri("".slice), _h = ri("".replace), Rh = ri([].join), Ch = ba && !Ih(function() {
|
|
313
313
|
return jr(function() {
|
|
314
314
|
}, "length", { value: 8 }).length !== 8;
|
|
315
|
-
}),
|
|
316
|
-
|
|
315
|
+
}), jh = String(String).split("String"), Ah = xc.exports = function(e, t, r) {
|
|
316
|
+
Oh(ao(t), 0, 7) === "Symbol(" && (t = "[" + _h(ao(t), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), r && r.getter && (t = "get " + t), r && r.setter && (t = "set " + t), (!vr(e, "name") || kh && e.name !== t) && (ba ? jr(e, "name", { value: t, configurable: !0 }) : e.name = t), Ch && r && vr(r, "arity") && e.length !== r.arity && jr(e, "length", { value: r.arity });
|
|
317
317
|
try {
|
|
318
318
|
r && vr(r, "constructor") && r.constructor ? ba && jr(e, "prototype", { writable: !1 }) : e.prototype && (e.prototype = void 0);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
|
-
var n =
|
|
322
|
-
return vr(n, "source") || (n.source =
|
|
321
|
+
var n = Th(e);
|
|
322
|
+
return vr(n, "source") || (n.source = Rh(jh, typeof t == "string" ? t : "")), e;
|
|
323
323
|
};
|
|
324
|
-
Function.prototype.toString =
|
|
325
|
-
return
|
|
324
|
+
Function.prototype.toString = Ah(function() {
|
|
325
|
+
return $h(this) && Eh(this).source || Ph(this);
|
|
326
326
|
}, "toString");
|
|
327
|
-
var
|
|
327
|
+
var Fc = xc.exports, Lh = Y, xh = ke, Uh = Fc, Nh = Ka, Be = function(e, t, r, n) {
|
|
328
328
|
n || (n = {});
|
|
329
329
|
var a = n.enumerable, i = n.name !== void 0 ? n.name : t;
|
|
330
|
-
if (
|
|
331
|
-
a ? e[t] = r :
|
|
330
|
+
if (Lh(r) && Uh(r, i, n), n.global)
|
|
331
|
+
a ? e[t] = r : Nh(t, r);
|
|
332
332
|
else {
|
|
333
333
|
try {
|
|
334
334
|
n.unsafe ? e[t] && (a = !0) : delete e[t];
|
|
335
335
|
} catch {
|
|
336
336
|
}
|
|
337
|
-
a ? e[t] = r :
|
|
337
|
+
a ? e[t] = r : xh.f(e, t, {
|
|
338
338
|
value: r,
|
|
339
339
|
enumerable: !1,
|
|
340
340
|
configurable: !n.nonConfigurable,
|
|
@@ -342,86 +342,86 @@ var Mc = Lc.exports, Ah = Y, Lh = ke, xh = Mc, Uh = Ka, Be = function(e, t, r, n
|
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
344
|
return e;
|
|
345
|
-
},
|
|
346
|
-
|
|
347
|
-
return
|
|
345
|
+
}, zc = {}, Dh = Oc, Mh = Ja, Fh = Mh.concat("length", "prototype");
|
|
346
|
+
zc.f = Object.getOwnPropertyNames || function(t) {
|
|
347
|
+
return Dh(t, Fh);
|
|
348
348
|
};
|
|
349
349
|
var ni = {};
|
|
350
350
|
ni.f = Object.getOwnPropertySymbols;
|
|
351
|
-
var
|
|
352
|
-
var r =
|
|
353
|
-
return n ?
|
|
354
|
-
}, io = we,
|
|
355
|
-
for (var n =
|
|
351
|
+
var zh = Ot, Hh = K, Bh = zc, Kh = ni, Gh = He, Wh = Hh([].concat), Vh = zh("Reflect", "ownKeys") || function(t) {
|
|
352
|
+
var r = Bh.f(Gh(t)), n = Kh.f;
|
|
353
|
+
return n ? Wh(r, n(t)) : r;
|
|
354
|
+
}, io = we, Zh = Vh, Yh = Qa, Jh = ke, Xh = function(e, t, r) {
|
|
355
|
+
for (var n = Zh(t), a = Jh.f, i = Yh.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
|
-
},
|
|
360
|
-
var r = tv
|
|
361
|
-
return r ===
|
|
362
|
-
},
|
|
363
|
-
return String(e).replace(
|
|
364
|
-
},
|
|
359
|
+
}, qh = ne, Qh = Y, ev = /#|\.prototype\./, sr = function(e, t) {
|
|
360
|
+
var r = rv[tv(e)];
|
|
361
|
+
return r === av ? !0 : r === nv ? !1 : Qh(t) ? qh(t) : !!t;
|
|
362
|
+
}, tv = sr.normalize = function(e) {
|
|
363
|
+
return String(e).replace(ev, ".").toLowerCase();
|
|
364
|
+
}, rv = sr.data = {}, nv = sr.NATIVE = "N", av = sr.POLYFILL = "P", iv = sr, pr = Q, ov = Qa.f, sv = qr, cv = Be, uv = Ka, lv = Xh, fv = iv, _t = function(e, t) {
|
|
365
365
|
var r = e.target, n = e.global, a = e.stat, i, o, c, l, f, u;
|
|
366
|
-
if (n ? o = pr : a ? o = pr[r] ||
|
|
367
|
-
if (f = t[c], e.dontCallGetSet ? (u =
|
|
366
|
+
if (n ? o = pr : a ? o = pr[r] || uv(r, {}) : o = pr[r] && pr[r].prototype, o) for (c in t) {
|
|
367
|
+
if (f = t[c], e.dontCallGetSet ? (u = ov(o, c), l = u && u.value) : l = o[c], i = fv(n ? c : r + (a ? "." : "#") + c, e.forced), !i && l !== void 0) {
|
|
368
368
|
if (typeof f == typeof l) continue;
|
|
369
|
-
|
|
369
|
+
lv(f, l);
|
|
370
370
|
}
|
|
371
|
-
(e.sham || l && l.sham) &&
|
|
371
|
+
(e.sham || l && l.sham) && sv(f, "sham", !0), cv(o, c, f, e);
|
|
372
372
|
}
|
|
373
|
-
},
|
|
373
|
+
}, dv = ne, hv = !dv(function() {
|
|
374
374
|
function e() {
|
|
375
375
|
}
|
|
376
376
|
return e.prototype.constructor = null, Object.getPrototypeOf(new e()) !== e.prototype;
|
|
377
|
-
}),
|
|
378
|
-
var t =
|
|
379
|
-
if (
|
|
377
|
+
}), vv = we, pv = Y, mv = Jr, gv = Xa, yv = hv, oo = gv("IE_PROTO"), Sa = Object, wv = Sa.prototype, Hc = yv ? Sa.getPrototypeOf : function(e) {
|
|
378
|
+
var t = mv(e);
|
|
379
|
+
if (vv(t, oo)) return t[oo];
|
|
380
380
|
var r = t.constructor;
|
|
381
|
-
return
|
|
382
|
-
},
|
|
383
|
-
[].keys && (_n = [].keys(), "next" in _n ? (On = so(so(_n)), On !== Object.prototype && (tt = On)) :
|
|
384
|
-
var
|
|
381
|
+
return pv(r) && t instanceof r ? r.prototype : t instanceof Sa ? wv : null;
|
|
382
|
+
}, bv = ne, Sv = Y, Iv = je, so = Hc, $v = Be, kv = de, Ia = kv("iterator"), Bc = !1, tt, On, _n;
|
|
383
|
+
[].keys && (_n = [].keys(), "next" in _n ? (On = so(so(_n)), On !== Object.prototype && (tt = On)) : Bc = !0);
|
|
384
|
+
var Pv = !Iv(tt) || bv(function() {
|
|
385
385
|
var e = {};
|
|
386
386
|
return tt[Ia].call(e) !== e;
|
|
387
387
|
});
|
|
388
|
-
|
|
389
|
-
|
|
388
|
+
Pv && (tt = {});
|
|
389
|
+
Sv(tt[Ia]) || $v(tt, Ia, function() {
|
|
390
390
|
return this;
|
|
391
391
|
});
|
|
392
|
-
var
|
|
392
|
+
var Kc = {
|
|
393
393
|
IteratorPrototype: tt,
|
|
394
|
-
BUGGY_SAFARI_ITERATORS:
|
|
395
|
-
},
|
|
396
|
-
e && !r && (e = e.prototype), e && !
|
|
397
|
-
},
|
|
394
|
+
BUGGY_SAFARI_ITERATORS: Bc
|
|
395
|
+
}, Tv = ke.f, Ev = we, Ov = de, co = Ov("toStringTag"), cr = function(e, t, r) {
|
|
396
|
+
e && !r && (e = e.prototype), e && !Ev(e, co) && Tv(e, co, { configurable: !0, value: t });
|
|
397
|
+
}, _v = Kc.IteratorPrototype, Rv = qa, Cv = ir, jv = cr, Av = ar, Lv = function() {
|
|
398
398
|
return this;
|
|
399
|
-
},
|
|
399
|
+
}, Gc = function(e, t, r, n) {
|
|
400
400
|
var a = t + " Iterator";
|
|
401
|
-
return e.prototype = _v
|
|
402
|
-
},
|
|
401
|
+
return e.prototype = Rv(_v, { next: Cv(+!n, r) }), jv(e, a, !1), Av[a] = Lv, e;
|
|
402
|
+
}, xv = K, Uv = Xr, Nv = function(e, t, r) {
|
|
403
403
|
try {
|
|
404
|
-
return
|
|
404
|
+
return xv(Uv(Object.getOwnPropertyDescriptor(e, t)[r]));
|
|
405
405
|
} catch {
|
|
406
406
|
}
|
|
407
|
-
},
|
|
408
|
-
return
|
|
409
|
-
},
|
|
410
|
-
if (
|
|
411
|
-
throw new
|
|
412
|
-
},
|
|
407
|
+
}, Dv = je, Mv = function(e) {
|
|
408
|
+
return Dv(e) || e === null;
|
|
409
|
+
}, Fv = Mv, zv = String, Hv = TypeError, Bv = function(e) {
|
|
410
|
+
if (Fv(e)) return e;
|
|
411
|
+
throw new Hv("Can't set " + zv(e) + " as a prototype");
|
|
412
|
+
}, Kv = Nv, Gv = je, Wv = Yr, Vv = Bv, Zv = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
413
413
|
var e = !1, t = {}, r;
|
|
414
414
|
try {
|
|
415
|
-
r =
|
|
415
|
+
r = Kv(Object.prototype, "__proto__", "set"), r(t, []), e = t instanceof Array;
|
|
416
416
|
} catch {
|
|
417
417
|
}
|
|
418
418
|
return function(a, i) {
|
|
419
|
-
return
|
|
419
|
+
return Wv(a), Vv(i), Gv(a) && (e ? r(a, i) : a.__proto__ = i), a;
|
|
420
420
|
};
|
|
421
|
-
}() : void 0),
|
|
421
|
+
}() : void 0), Yv = _t, Jv = Pe, Wc = Nc, Xv = Y, qv = Gc, uo = Hc, lo = Zv, Qv = cr, ep = qr, Rn = Be, tp = de, rp = ar, Vc = Kc, np = Wc.PROPER, ap = Wc.CONFIGURABLE, fo = Vc.IteratorPrototype, mr = Vc.BUGGY_SAFARI_ITERATORS, xt = tp("iterator"), ho = "keys", Ut = "values", vo = "entries", ip = function() {
|
|
422
422
|
return this;
|
|
423
|
-
},
|
|
424
|
-
|
|
423
|
+
}, Zc = function(e, t, r, n, a, i, o) {
|
|
424
|
+
qv(r, t, n);
|
|
425
425
|
var c = function($) {
|
|
426
426
|
if ($ === a && d) return d;
|
|
427
427
|
if (!mr && $ && $ in u) return u[$];
|
|
@@ -443,8 +443,8 @@ var Bc = {
|
|
|
443
443
|
return new r(this);
|
|
444
444
|
};
|
|
445
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) :
|
|
447
|
-
return
|
|
446
|
+
if (h && (m = uo(h.call(new e())), m !== Object.prototype && m.next && (uo(m) !== fo && (lo ? lo(m, fo) : Xv(m[xt]) || Rn(m, xt, ip)), Qv(m, l, !0))), np && a === Ut && s && s.name !== Ut && (ap ? ep(u, "name", Ut) : (f = !0, d = function() {
|
|
447
|
+
return Jv(s, this);
|
|
448
448
|
})), a)
|
|
449
449
|
if (S = {
|
|
450
450
|
values: c(Ut),
|
|
@@ -452,14 +452,14 @@ var Bc = {
|
|
|
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
|
-
else
|
|
456
|
-
return u[xt] !== d && Rn(u, xt, d, { name: a }),
|
|
455
|
+
else Yv({ target: t, proto: !0, forced: mr || f }, S);
|
|
456
|
+
return u[xt] !== d && Rn(u, xt, d, { name: a }), rp[t] = d, S;
|
|
457
457
|
}, ai = function(e, t) {
|
|
458
458
|
return { value: e, done: t };
|
|
459
|
-
},
|
|
460
|
-
|
|
461
|
-
type:
|
|
462
|
-
target:
|
|
459
|
+
}, op = nr, ii = Gd, po = ar, Yc = or, sp = ke.f, cp = Zc, gr = ai, up = J, Jc = "Array Iterator", lp = Yc.set, fp = Yc.getterFor(Jc), dp = cp(Array, "Array", function(e, t) {
|
|
460
|
+
lp(this, {
|
|
461
|
+
type: Jc,
|
|
462
|
+
target: op(e),
|
|
463
463
|
// target
|
|
464
464
|
index: 0,
|
|
465
465
|
// next index
|
|
@@ -467,7 +467,7 @@ var Bc = {
|
|
|
467
467
|
// kind
|
|
468
468
|
});
|
|
469
469
|
}, function() {
|
|
470
|
-
var e =
|
|
470
|
+
var e = fp(this), t = e.target, r = e.index++;
|
|
471
471
|
if (!t || r >= t.length)
|
|
472
472
|
return e.target = void 0, gr(void 0, !0);
|
|
473
473
|
switch (e.kind) {
|
|
@@ -481,58 +481,58 @@ var Bc = {
|
|
|
481
481
|
ii("keys");
|
|
482
482
|
ii("values");
|
|
483
483
|
ii("entries");
|
|
484
|
-
if (
|
|
485
|
-
|
|
484
|
+
if (up && mo.name !== "values") try {
|
|
485
|
+
sp(mo, "name", { value: "values" });
|
|
486
486
|
} catch {
|
|
487
487
|
}
|
|
488
|
-
var go = Q,
|
|
489
|
-
if (!
|
|
490
|
-
var t =
|
|
488
|
+
var go = Q, hp = J, vp = Object.getOwnPropertyDescriptor, pp = function(e) {
|
|
489
|
+
if (!hp) return go[e];
|
|
490
|
+
var t = vp(go, e);
|
|
491
491
|
return t && t.value;
|
|
492
|
-
},
|
|
492
|
+
}, mp = ne, gp = de, yp = J, yo = Hl, wp = gp("iterator"), Qr = !mp(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
|
-
}), 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 || !
|
|
497
|
-
}), wo =
|
|
498
|
-
return r.get && wo(r.get, t, { getter: !0 }), r.set && wo(r.set, t, { setter: !0 }),
|
|
499
|
-
},
|
|
500
|
-
for (var n in t)
|
|
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 || !yp) || !t.sort || e.href !== "http://a/c%20d?a=1&c=3" || t.get("c") !== "3" || String(new URLSearchParams("?a=1")) !== "a=1" || !t[wp] || 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 = Fc, bp = ke, oi = function(e, t, r) {
|
|
498
|
+
return r.get && wo(r.get, t, { getter: !0 }), r.set && wo(r.set, t, { setter: !0 }), bp.f(e, t, r);
|
|
499
|
+
}, Sp = Be, Ip = function(e, t, r) {
|
|
500
|
+
for (var n in t) Sp(e, n, t[n], r);
|
|
501
501
|
return e;
|
|
502
|
-
},
|
|
503
|
-
if (
|
|
504
|
-
throw new
|
|
505
|
-
},
|
|
506
|
-
if (
|
|
507
|
-
}, bo =
|
|
508
|
-
return
|
|
502
|
+
}, $p = $c, kp = TypeError, Xc = function(e, t) {
|
|
503
|
+
if ($p(t, e)) return e;
|
|
504
|
+
throw new kp("Incorrect invocation");
|
|
505
|
+
}, Pp = Ha, Tp = K, Ep = function(e) {
|
|
506
|
+
if (Pp(e) === "Function") return Tp(e);
|
|
507
|
+
}, bo = Ep, Op = Xr, _p = za, Rp = bo(bo.bind), si = function(e, t) {
|
|
508
|
+
return Op(e), t === void 0 ? e : _p ? Rp(e, t) : function() {
|
|
509
509
|
return e.apply(t, arguments);
|
|
510
510
|
};
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
var
|
|
511
|
+
}, Cp = de, jp = Cp("toStringTag"), qc = {};
|
|
512
|
+
qc[jp] = "z";
|
|
513
|
+
var Ap = String(qc) === "[object z]", Lp = Ap, xp = Y, Ar = Ha, Up = de, Np = Up("toStringTag"), Dp = Object, Mp = Ar(/* @__PURE__ */ function() {
|
|
514
514
|
return arguments;
|
|
515
|
-
}()) === "Arguments",
|
|
515
|
+
}()) === "Arguments", Fp = function(e, t) {
|
|
516
516
|
try {
|
|
517
517
|
return e[t];
|
|
518
518
|
} catch {
|
|
519
519
|
}
|
|
520
|
-
}, en =
|
|
520
|
+
}, en = Lp ? Ar : function(e) {
|
|
521
521
|
var t, r, n;
|
|
522
|
-
return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (r =
|
|
523
|
-
},
|
|
524
|
-
if (
|
|
525
|
-
return
|
|
526
|
-
},
|
|
527
|
-
if (!
|
|
528
|
-
},
|
|
529
|
-
var r = arguments.length < 2 ?
|
|
530
|
-
if (
|
|
531
|
-
throw new
|
|
532
|
-
},
|
|
533
|
-
if (e < t) throw new
|
|
522
|
+
return e === void 0 ? "Undefined" : e === null ? "Null" : typeof (r = Fp(t = Dp(e), Np)) == "string" ? r : Mp ? Ar(t) : (n = Ar(t)) === "Object" && xp(t.callee) ? "Arguments" : n;
|
|
523
|
+
}, zp = en, Hp = String, Ke = function(e) {
|
|
524
|
+
if (zp(e) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
|
|
525
|
+
return Hp(e);
|
|
526
|
+
}, Bp = en, So = Va, Kp = Ba, Gp = ar, Wp = de, Vp = Wp("iterator"), ci = function(e) {
|
|
527
|
+
if (!Kp(e)) return So(e, Vp) || So(e, "@@iterator") || Gp[Bp(e)];
|
|
528
|
+
}, Zp = Pe, Yp = Xr, Jp = He, Xp = Pc, qp = ci, Qp = TypeError, Qc = function(e, t) {
|
|
529
|
+
var r = arguments.length < 2 ? qp(e) : t;
|
|
530
|
+
if (Yp(r)) return Jp(Zp(r, e));
|
|
531
|
+
throw new Qp(Xp(e) + " is not iterable");
|
|
532
|
+
}, em = TypeError, Rt = function(e, t) {
|
|
533
|
+
if (e < t) throw new em("Not enough arguments");
|
|
534
534
|
return e;
|
|
535
|
-
},
|
|
535
|
+
}, tm = K, eu = tm([].slice), Io = eu, rm = Math.floor, $a = function(e, t) {
|
|
536
536
|
var r = e.length;
|
|
537
537
|
if (r < 8)
|
|
538
538
|
for (var n = 1, a, i; n < r; ) {
|
|
@@ -541,46 +541,46 @@ var jp = String(Xc) === "[object z]", Ap = jp, Lp = Y, Ar = Ha, xp = de, Up = xp
|
|
|
541
541
|
i !== n++ && (e[i] = a);
|
|
542
542
|
}
|
|
543
543
|
else
|
|
544
|
-
for (var o =
|
|
544
|
+
for (var o = rm(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
|
-
},
|
|
548
|
-
return Ro[e - 1] || (Ro[e - 1] =
|
|
549
|
-
},
|
|
547
|
+
}, nm = $a, ka = _t, tn = Q, ui = pp, yr = Pe, $e = K, Vt = J, tu = Qr, ru = Be, am = oi, im = Ip, om = cr, sm = Gc, li = or, nu = Xc, Cn = Y, cm = we, um = si, lm = en, fm = He, au = je, q = Ke, dm = qa, $o = ir, ko = Qc, hm = ci, wr = ai, st = Rt, vm = de, pm = nm, mm = vm("iterator"), Ct = "URLSearchParams", iu = Ct + "Iterator", ou = li.set, le = li.getterFor(Ct), gm = li.getterFor(iu), Po = ui("fetch"), Fr = ui("Request"), Zt = ui("Headers"), jn = Fr && Fr.prototype, To = Zt && Zt.prototype, ym = tn.RegExp, wm = tn.TypeError, su = tn.decodeURIComponent, bm = tn.encodeURIComponent, Sm = $e("".charAt), Eo = $e([].join), Je = $e([].push), Pa = $e("".replace), Im = $e([].shift), Oo = $e([].splice), _o = $e("".split), $m = $e("".slice), km = /\+/g, Ro = Array(4), Pm = function(e) {
|
|
548
|
+
return Ro[e - 1] || (Ro[e - 1] = ym("((?:%[\\da-f]{2}){" + e + "})", "gi"));
|
|
549
|
+
}, Tm = function(e) {
|
|
550
550
|
try {
|
|
551
|
-
return
|
|
551
|
+
return su(e);
|
|
552
552
|
} catch {
|
|
553
553
|
return e;
|
|
554
554
|
}
|
|
555
555
|
}, Co = function(e) {
|
|
556
|
-
var t = Pa(e,
|
|
556
|
+
var t = Pa(e, km, " "), r = 4;
|
|
557
557
|
try {
|
|
558
|
-
return
|
|
558
|
+
return su(t);
|
|
559
559
|
} catch {
|
|
560
560
|
for (; r; )
|
|
561
|
-
t = Pa(t,
|
|
561
|
+
t = Pa(t, Pm(r--), Tm);
|
|
562
562
|
return t;
|
|
563
563
|
}
|
|
564
|
-
},
|
|
564
|
+
}, Em = /[!'()~]|%20/g, Om = {
|
|
565
565
|
"!": "%21",
|
|
566
566
|
"'": "%27",
|
|
567
567
|
"(": "%28",
|
|
568
568
|
")": "%29",
|
|
569
569
|
"~": "%7E",
|
|
570
570
|
"%20": "+"
|
|
571
|
-
},
|
|
572
|
-
return
|
|
571
|
+
}, _m = function(e) {
|
|
572
|
+
return Om[e];
|
|
573
573
|
}, jo = function(e) {
|
|
574
|
-
return Pa(
|
|
575
|
-
}, An =
|
|
576
|
-
|
|
577
|
-
type:
|
|
574
|
+
return Pa(bm(e), Em, _m);
|
|
575
|
+
}, An = sm(function(t, r) {
|
|
576
|
+
ou(this, {
|
|
577
|
+
type: iu,
|
|
578
578
|
target: le(t).entries,
|
|
579
579
|
index: 0,
|
|
580
580
|
kind: r
|
|
581
581
|
});
|
|
582
582
|
}, Ct, function() {
|
|
583
|
-
var t =
|
|
583
|
+
var t = gm(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);
|
|
586
586
|
var a = r[n];
|
|
@@ -591,28 +591,28 @@ var jp = String(Xc) === "[object z]", Ap = jp, Lp = Y, Ar = Ha, xp = de, Up = xp
|
|
|
591
591
|
return wr(a.value, !1);
|
|
592
592
|
}
|
|
593
593
|
return wr([a.key, a.value], !1);
|
|
594
|
-
}, !0),
|
|
595
|
-
this.entries = [], this.url = null, e !== void 0 && (
|
|
594
|
+
}, !0), cu = function(e) {
|
|
595
|
+
this.entries = [], this.url = null, e !== void 0 && (au(e) ? this.parseObject(e) : this.parseQuery(typeof e == "string" ? Sm(e, 0) === "?" ? $m(e, 1) : e : q(e)));
|
|
596
596
|
};
|
|
597
|
-
|
|
597
|
+
cu.prototype = {
|
|
598
598
|
type: Ct,
|
|
599
599
|
bindURL: function(e) {
|
|
600
600
|
this.url = e, this.update();
|
|
601
601
|
},
|
|
602
602
|
parseObject: function(e) {
|
|
603
|
-
var t = this.entries, r =
|
|
603
|
+
var t = this.entries, r = hm(e), n, a, i, o, c, l, f;
|
|
604
604
|
if (r)
|
|
605
605
|
for (n = ko(e, r), a = n.next; !(i = yr(a, n)).done; ) {
|
|
606
|
-
if (o = ko(
|
|
606
|
+
if (o = ko(fm(i.value)), c = o.next, (l = yr(c, o)).done || (f = yr(c, o)).done || !yr(c, o).done) throw new wm("Expected sequence with length 2");
|
|
607
607
|
Je(t, { key: q(l.value), value: q(f.value) });
|
|
608
608
|
}
|
|
609
|
-
else for (var u in e)
|
|
609
|
+
else for (var u in e) cm(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
614
|
a = r[n++], a.length && (i = _o(a, "="), Je(t, {
|
|
615
|
-
key: Co(
|
|
615
|
+
key: Co(Im(i)),
|
|
616
616
|
value: Co(Eo(i, "="))
|
|
617
617
|
}));
|
|
618
618
|
},
|
|
@@ -629,11 +629,11 @@ su.prototype = {
|
|
|
629
629
|
}
|
|
630
630
|
};
|
|
631
631
|
var rn = function() {
|
|
632
|
-
|
|
633
|
-
var t = arguments.length > 0 ? arguments[0] : void 0, r =
|
|
632
|
+
nu(this, St);
|
|
633
|
+
var t = arguments.length > 0 ? arguments[0] : void 0, r = ou(this, new cu(t));
|
|
634
634
|
Vt || (this.size = r.entries.length);
|
|
635
635
|
}, St = rn.prototype;
|
|
636
|
-
|
|
636
|
+
im(St, {
|
|
637
637
|
// `URLSearchParams.prototype.append` method
|
|
638
638
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
639
639
|
append: function(t, r) {
|
|
@@ -691,13 +691,13 @@ am(St, {
|
|
|
691
691
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-sort
|
|
692
692
|
sort: function() {
|
|
693
693
|
var t = le(this);
|
|
694
|
-
|
|
694
|
+
pm(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 = le(this).entries, n =
|
|
700
|
+
for (var r = le(this).entries, n = um(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,27 +713,27 @@ am(St, {
|
|
|
713
713
|
return new An(this, "entries");
|
|
714
714
|
}
|
|
715
715
|
}, { enumerable: !0 });
|
|
716
|
-
|
|
717
|
-
|
|
716
|
+
ru(St, mm, St.entries, { name: "entries" });
|
|
717
|
+
ru(St, "toString", function() {
|
|
718
718
|
return le(this).serialize();
|
|
719
719
|
}, { enumerable: !0 });
|
|
720
|
-
Vt &&
|
|
720
|
+
Vt && am(St, "size", {
|
|
721
721
|
get: function() {
|
|
722
722
|
return le(this).entries.length;
|
|
723
723
|
},
|
|
724
724
|
configurable: !0,
|
|
725
725
|
enumerable: !0
|
|
726
726
|
});
|
|
727
|
-
|
|
728
|
-
ka({ global: !0, constructor: !0, forced: !
|
|
727
|
+
om(rn, Ct);
|
|
728
|
+
ka({ global: !0, constructor: !0, forced: !tu }, {
|
|
729
729
|
URLSearchParams: rn
|
|
730
730
|
});
|
|
731
|
-
if (!
|
|
732
|
-
var
|
|
733
|
-
if (
|
|
731
|
+
if (!tu && Cn(Zt)) {
|
|
732
|
+
var Rm = $e(To.has), Cm = $e(To.set), Ao = function(e) {
|
|
733
|
+
if (au(e)) {
|
|
734
734
|
var t = e.body, r;
|
|
735
|
-
if (
|
|
736
|
-
return r = e.headers ? new Zt(e.headers) : new Zt(),
|
|
735
|
+
if (lm(t) === Ct)
|
|
736
|
+
return r = e.headers ? new Zt(e.headers) : new Zt(), Rm(r, "content-type") || Cm(r, "content-type", "application/x-www-form-urlencoded;charset=UTF-8"), dm(e, {
|
|
737
737
|
body: $o(0, q(t)),
|
|
738
738
|
headers: $o(0, r)
|
|
739
739
|
});
|
|
@@ -746,78 +746,78 @@ if (!eu && Cn(Zt)) {
|
|
|
746
746
|
}
|
|
747
747
|
}), Cn(Fr)) {
|
|
748
748
|
var Ln = function(t) {
|
|
749
|
-
return
|
|
749
|
+
return nu(this, jn), new Fr(t, arguments.length > 1 ? Ao(arguments[1]) : {});
|
|
750
750
|
};
|
|
751
751
|
jn.constructor = Ln, Ln.prototype = jn, ka({ global: !0, constructor: !0, dontCallGetSet: !0, forced: !0 }, {
|
|
752
752
|
Request: Ln
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
|
-
var
|
|
756
|
+
var jm = {
|
|
757
757
|
URLSearchParams: rn,
|
|
758
758
|
getState: le
|
|
759
|
-
},
|
|
759
|
+
}, Am = Be, nn = K, Lo = Ke, Lm = Rt, uu = URLSearchParams, an = uu.prototype, xm = nn(an.append), xo = nn(an.delete), Um = nn(an.forEach), Nm = nn([].push), fi = new uu("a=1&a=2&b=3");
|
|
760
760
|
fi.delete("a", 1);
|
|
761
761
|
fi.delete("b", void 0);
|
|
762
|
-
fi + "" != "a=2" &&
|
|
762
|
+
fi + "" != "a=2" && Am(an, "delete", function(e) {
|
|
763
763
|
var t = arguments.length, r = t < 2 ? void 0 : arguments[1];
|
|
764
764
|
if (t && r === void 0) return xo(this, e);
|
|
765
765
|
var n = [];
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
}),
|
|
766
|
+
Um(this, function(s, d) {
|
|
767
|
+
Nm(n, { key: d, value: s });
|
|
768
|
+
}), Lm(t, 1);
|
|
769
769
|
for (var a = Lo(e), i = Lo(r), o = 0, c = 0, l = !1, f = n.length, u; o < f; )
|
|
770
770
|
u = n[o++], l || u.key === a ? (l = !0, xo(this, u.key)) : c++;
|
|
771
771
|
for (; c < f; )
|
|
772
|
-
u = n[c++], u.key === a && u.value === i ||
|
|
772
|
+
u = n[c++], u.key === a && u.value === i || xm(this, u.key, u.value);
|
|
773
773
|
}, { enumerable: !0, unsafe: !0 });
|
|
774
|
-
var
|
|
775
|
-
(Uo.has("a", 2) || !Uo.has("a", void 0)) &&
|
|
774
|
+
var Dm = Be, lu = K, Mm = Ke, Fm = Rt, fu = URLSearchParams, di = fu.prototype, zm = lu(di.getAll), Hm = lu(di.has), Uo = new fu("a=1");
|
|
775
|
+
(Uo.has("a", 2) || !Uo.has("a", void 0)) && Dm(di, "has", function(t) {
|
|
776
776
|
var r = arguments.length, n = r < 2 ? void 0 : arguments[1];
|
|
777
|
-
if (r && n === void 0) return
|
|
778
|
-
var a =
|
|
779
|
-
|
|
780
|
-
for (var i =
|
|
777
|
+
if (r && n === void 0) return Hm(this, t);
|
|
778
|
+
var a = zm(this, t);
|
|
779
|
+
Fm(r, 1);
|
|
780
|
+
for (var i = Mm(n), o = 0; o < a.length; )
|
|
781
781
|
if (a[o++] === i) return !0;
|
|
782
782
|
return !1;
|
|
783
783
|
}, { enumerable: !0, unsafe: !0 });
|
|
784
|
-
var
|
|
785
|
-
|
|
784
|
+
var Bm = J, Km = K, Gm = oi, Ta = URLSearchParams.prototype, Wm = Km(Ta.forEach);
|
|
785
|
+
Bm && !("size" in Ta) && Gm(Ta, "size", {
|
|
786
786
|
get: function() {
|
|
787
787
|
var t = 0;
|
|
788
|
-
return
|
|
788
|
+
return Wm(this, function() {
|
|
789
789
|
t++;
|
|
790
790
|
}), t;
|
|
791
791
|
},
|
|
792
792
|
configurable: !0,
|
|
793
793
|
enumerable: !0
|
|
794
794
|
});
|
|
795
|
-
var
|
|
796
|
-
|
|
797
|
-
var hi = K,
|
|
795
|
+
var Vm = Q, du = Vm, Zm = du;
|
|
796
|
+
Zm.URLSearchParams;
|
|
797
|
+
var hi = K, Ym = Za, Jm = Ke, Xm = Yr, qm = hi("".charAt), No = hi("".charCodeAt), Qm = hi("".slice), Do = function(e) {
|
|
798
798
|
return function(t, r) {
|
|
799
|
-
var n =
|
|
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 ?
|
|
799
|
+
var n = Jm(Xm(t)), a = Ym(r), i = n.length, o, c;
|
|
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 ? qm(n, a) : o : e ? Qm(n, a, a + 2) : (o - 55296 << 10) + (c - 56320) + 65536);
|
|
801
801
|
};
|
|
802
|
-
},
|
|
802
|
+
}, hu = {
|
|
803
803
|
// `String.prototype.codePointAt` method
|
|
804
804
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
805
805
|
codeAt: Do(!1),
|
|
806
806
|
// `String.prototype.at` method
|
|
807
807
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
808
808
|
charAt: Do(!0)
|
|
809
|
-
},
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
type:
|
|
813
|
-
string:
|
|
809
|
+
}, eg = hu.charAt, tg = Ke, vu = or, rg = Zc, Mo = ai, pu = "String Iterator", ng = vu.set, ag = vu.getterFor(pu);
|
|
810
|
+
rg(String, "String", function(e) {
|
|
811
|
+
ng(this, {
|
|
812
|
+
type: pu,
|
|
813
|
+
string: tg(e),
|
|
814
814
|
index: 0
|
|
815
815
|
});
|
|
816
816
|
}, function() {
|
|
817
|
-
var t =
|
|
818
|
-
return n >= r.length ? Mo(void 0, !0) : (a =
|
|
817
|
+
var t = ag(this), r = t.string, n = t.index, a;
|
|
818
|
+
return n >= r.length ? Mo(void 0, !0) : (a = eg(r, n), t.index += a.length, Mo(a, !1));
|
|
819
819
|
});
|
|
820
|
-
var Fo = J,
|
|
820
|
+
var Fo = J, ig = K, og = Pe, sg = ne, xn = _c, cg = ni, ug = ei, lg = Jr, fg = hc, ct = Object.assign, zo = Object.defineProperty, dg = ig([].concat), hg = !ct || sg(function() {
|
|
821
821
|
if (Fo && ct({ b: 1 }, ct(zo({}, "a", {
|
|
822
822
|
enumerable: !0,
|
|
823
823
|
get: function() {
|
|
@@ -832,75 +832,75 @@ var Fo = J, ag = K, ig = Pe, og = ne, xn = Oc, sg = ni, cg = ei, ug = Jr, lg = d
|
|
|
832
832
|
t[a] = a;
|
|
833
833
|
}), ct({}, e)[r] !== 7 || xn(ct({}, t)).join("") !== n;
|
|
834
834
|
}) ? function(t, r) {
|
|
835
|
-
for (var n =
|
|
836
|
-
for (var l =
|
|
837
|
-
d = f[s++], (!Fo ||
|
|
835
|
+
for (var n = lg(t), a = arguments.length, i = 1, o = cg.f, c = ug.f; a > i; )
|
|
836
|
+
for (var l = fg(arguments[i++]), f = o ? dg(xn(l), o(l)) : xn(l), u = f.length, s = 0, d; u > s; )
|
|
837
|
+
d = f[s++], (!Fo || og(c, l, d)) && (n[d] = l[d]);
|
|
838
838
|
return n;
|
|
839
|
-
} : ct,
|
|
839
|
+
} : ct, vg = Pe, Ho = He, pg = Va, mg = function(e, t, r) {
|
|
840
840
|
var n, a;
|
|
841
841
|
Ho(e);
|
|
842
842
|
try {
|
|
843
|
-
if (n =
|
|
843
|
+
if (n = pg(e, "return"), !n) {
|
|
844
844
|
if (t === "throw") throw r;
|
|
845
845
|
return r;
|
|
846
846
|
}
|
|
847
|
-
n =
|
|
847
|
+
n = vg(n, e);
|
|
848
848
|
} catch (i) {
|
|
849
849
|
a = !0, n = i;
|
|
850
850
|
}
|
|
851
851
|
if (t === "throw") throw r;
|
|
852
852
|
if (a) throw n;
|
|
853
853
|
return Ho(n), r;
|
|
854
|
-
},
|
|
854
|
+
}, gg = He, yg = mg, wg = function(e, t, r, n) {
|
|
855
855
|
try {
|
|
856
|
-
return n ? t(
|
|
856
|
+
return n ? t(gg(r)[0], r[1]) : t(r);
|
|
857
857
|
} catch (a) {
|
|
858
|
-
|
|
858
|
+
yg(e, "throw", a);
|
|
859
859
|
}
|
|
860
|
-
},
|
|
861
|
-
return e !== void 0 && (
|
|
862
|
-
},
|
|
863
|
-
},
|
|
864
|
-
if (!
|
|
860
|
+
}, bg = de, Sg = ar, Ig = bg("iterator"), $g = Array.prototype, kg = function(e) {
|
|
861
|
+
return e !== void 0 && (Sg.Array === e || $g[Ig] === e);
|
|
862
|
+
}, Pg = K, Tg = ne, mu = Y, Eg = en, Og = Ot, _g = Dc, gu = function() {
|
|
863
|
+
}, yu = Og("Reflect", "construct"), vi = /^\s*(?:class|function)\b/, Rg = Pg(vi.exec), Cg = !vi.test(gu), Nt = function(t) {
|
|
864
|
+
if (!mu(t)) return !1;
|
|
865
865
|
try {
|
|
866
|
-
return gu
|
|
866
|
+
return yu(gu, [], t), !0;
|
|
867
867
|
} catch {
|
|
868
868
|
return !1;
|
|
869
869
|
}
|
|
870
|
-
},
|
|
871
|
-
if (!
|
|
872
|
-
switch (
|
|
870
|
+
}, wu = function(t) {
|
|
871
|
+
if (!mu(t)) return !1;
|
|
872
|
+
switch (Eg(t)) {
|
|
873
873
|
case "AsyncFunction":
|
|
874
874
|
case "GeneratorFunction":
|
|
875
875
|
case "AsyncGeneratorFunction":
|
|
876
876
|
return !1;
|
|
877
877
|
}
|
|
878
878
|
try {
|
|
879
|
-
return
|
|
879
|
+
return Cg || !!Rg(vi, _g(t));
|
|
880
880
|
} catch {
|
|
881
881
|
return !0;
|
|
882
882
|
}
|
|
883
883
|
};
|
|
884
|
-
|
|
885
|
-
var
|
|
884
|
+
wu.sham = !0;
|
|
885
|
+
var jg = !yu || Tg(function() {
|
|
886
886
|
var e;
|
|
887
887
|
return Nt(Nt.call) || !Nt(Object) || !Nt(function() {
|
|
888
888
|
e = !0;
|
|
889
889
|
}) || e;
|
|
890
|
-
}) ?
|
|
891
|
-
|
|
892
|
-
},
|
|
893
|
-
var r =
|
|
894
|
-
o && (i =
|
|
895
|
-
var c =
|
|
896
|
-
if (c && !(this === Ko &&
|
|
897
|
-
for (u = n ? new this() : [], d =
|
|
898
|
-
m = o ?
|
|
890
|
+
}) ? wu : Nt, Ag = J, Lg = ke, xg = ir, Ug = function(e, t, r) {
|
|
891
|
+
Ag ? Lg.f(e, t, xg(0, r)) : e[t] = r;
|
|
892
|
+
}, Ng = si, Dg = Pe, Mg = Jr, Fg = wg, zg = kg, Hg = jg, Bg = Ec, Bo = Ug, Kg = Qc, Gg = ci, Ko = Array, Wg = function(t) {
|
|
893
|
+
var r = Mg(t), n = Hg(this), a = arguments.length, i = a > 1 ? arguments[1] : void 0, o = i !== void 0;
|
|
894
|
+
o && (i = Ng(i, a > 2 ? arguments[2] : void 0));
|
|
895
|
+
var c = Gg(r), l = 0, f, u, s, d, h, m;
|
|
896
|
+
if (c && !(this === Ko && zg(c)))
|
|
897
|
+
for (u = n ? new this() : [], d = Kg(r, c), h = d.next; !(s = Dg(h, d)).done; l++)
|
|
898
|
+
m = o ? Fg(d, i, [s.value, l], !0) : s.value, Bo(u, l, m);
|
|
899
899
|
else
|
|
900
|
-
for (f =
|
|
900
|
+
for (f = Bg(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
|
-
}, it = K, Un = 2147483647, Yt = 36,
|
|
903
|
+
}, it = K, Un = 2147483647, Yt = 36, bu = 1, Ea = 26, Vg = 38, Zg = 700, Yg = 72, Jg = 128, Xg = "-", qg = /[^\0-\u007E]/, Su = /[.\u3002\uFF0E\uFF61]/g, Go = "Overflow: input needs wider integers to process", Nn = Yt - bu, Wo = RangeError, Qg = it(Su.exec), pt = Math.floor, Dn = String.fromCharCode, Vo = it("".charCodeAt), Iu = it([].join), De = it([].push), ey = it("".replace), ty = it("".split), ry = it("".toLowerCase), ny = 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) {
|
|
@@ -912,19 +912,19 @@ var Cg = !gu || Pg(function() {
|
|
|
912
912
|
return t;
|
|
913
913
|
}, Zo = function(e) {
|
|
914
914
|
return e + 22 + 75 * (e < 26);
|
|
915
|
-
},
|
|
915
|
+
}, ay = function(e, t, r) {
|
|
916
916
|
var n = 0;
|
|
917
|
-
for (e = r ? pt(e /
|
|
917
|
+
for (e = r ? pt(e / Zg) : e >> 1, e += pt(e / t); e > Nn * Ea >> 1; )
|
|
918
918
|
e = pt(e / Nn), n += Yt;
|
|
919
|
-
return pt(n + (Nn + 1) * e / (e +
|
|
920
|
-
},
|
|
919
|
+
return pt(n + (Nn + 1) * e / (e + Vg));
|
|
920
|
+
}, iy = function(e) {
|
|
921
921
|
var t = [];
|
|
922
|
-
e =
|
|
923
|
-
var r = e.length, n =
|
|
922
|
+
e = ny(e);
|
|
923
|
+
var r = e.length, n = Jg, a = 0, i = Yg, o, c;
|
|
924
924
|
for (o = 0; o < e.length; o++)
|
|
925
925
|
c = e[o], c < 128 && De(t, Dn(c));
|
|
926
926
|
var l = t.length, f = l;
|
|
927
|
-
for (l && De(t,
|
|
927
|
+
for (l && De(t, Xg); 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);
|
|
@@ -936,31 +936,31 @@ var Cg = !gu || Pg(function() {
|
|
|
936
936
|
throw new Wo(Go);
|
|
937
937
|
if (c === n) {
|
|
938
938
|
for (var d = a, h = Yt; ; ) {
|
|
939
|
-
var m = h <= i ?
|
|
939
|
+
var m = h <= i ? bu : h >= i + Ea ? Ea : h - i;
|
|
940
940
|
if (d < m) break;
|
|
941
941
|
var S = d - m, g = Yt - m;
|
|
942
942
|
De(t, Dn(Zo(m + S % g))), d = pt(S / g), h += Yt;
|
|
943
943
|
}
|
|
944
|
-
De(t, Dn(Zo(d))), i =
|
|
944
|
+
De(t, Dn(Zo(d))), i = ay(a, s, f === l), a = 0, f++;
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
947
|
a++, n++;
|
|
948
948
|
}
|
|
949
|
-
return
|
|
950
|
-
},
|
|
951
|
-
var t = [], r = ey(
|
|
949
|
+
return Iu(t, "");
|
|
950
|
+
}, oy = function(e) {
|
|
951
|
+
var t = [], r = ty(ey(ry(e), Su, "."), "."), n, a;
|
|
952
952
|
for (n = 0; n < r.length; n++)
|
|
953
|
-
a = r[n], De(t, qg
|
|
954
|
-
return
|
|
955
|
-
},
|
|
956
|
-
var t =
|
|
953
|
+
a = r[n], De(t, Qg(qg, a) ? "xn--" + iy(a) : a);
|
|
954
|
+
return Iu(t, ".");
|
|
955
|
+
}, sy = _t, pi = J, cy = Qr, mi = Q, Yo = si, he = K, zr = Be, se = oi, uy = Xc, Oa = we, gi = hg, ut = Wg, ve = eu, ly = hu.codeAt, fy = oy, Oe = Ke, dy = cr, hy = Rt, $u = jm, ku = or, vy = ku.set, Hr = ku.getterFor("URL"), py = $u.URLSearchParams, my = $u.getState, Dt = mi.URL, _a = mi.TypeError, Br = mi.parseInt, gy = Math.floor, Jo = Math.pow, fe = he("".charAt), ge = he(/./.exec), Bt = he([].join), yy = he(1 .toString), wy = he([].pop), dt = he([].push), Mn = he("".replace), by = he([].shift), Sy = he("".split), Jt = he("".slice), Kr = he("".toLowerCase), Iy = he([].unshift), $y = "Invalid authority", Fn = "Invalid scheme", Ge = "Invalid host", Xo = "Invalid port", Pu = /[a-z]/i, ky = /[\d+-.a-z]/i, Ra = /\d/, Py = /^0x/i, Ty = /^[0-7]+$/, Ey = /^\d+$/, Tu = /^[\da-f]+$/i, Oy = /[\0\t\n\r #%/:<>?@[\\\]^|]/, _y = /[\0\t\n\r #/:<>?@[\\\]^|]/, Ry = /^[\u0000-\u0020]+/, Cy = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/, jy = /[\t\n\r]/g, ce, Ay = function(e) {
|
|
956
|
+
var t = Sy(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 && fe(i, 0) === "0" && (o = ge(
|
|
960
|
+
if (o = 10, i.length > 1 && fe(i, 0) === "0" && (o = ge(Py, i) ? 16 : 8, i = Jt(i, o === 8 ? 1 : 2)), i === "")
|
|
961
961
|
c = 0;
|
|
962
962
|
else {
|
|
963
|
-
if (!ge(o === 10 ?
|
|
963
|
+
if (!ge(o === 10 ? Ey : o === 8 ? Ty : Tu, i)) return e;
|
|
964
964
|
c = Br(i, o);
|
|
965
965
|
}
|
|
966
966
|
dt(n, c);
|
|
@@ -969,10 +969,10 @@ var Cg = !gu || Pg(function() {
|
|
|
969
969
|
if (c = n[a], a === r - 1) {
|
|
970
970
|
if (c >= Jo(256, 5 - r)) return null;
|
|
971
971
|
} else if (c > 255) return null;
|
|
972
|
-
for (l =
|
|
972
|
+
for (l = wy(n), a = 0; a < n.length; a++)
|
|
973
973
|
l += n[a] * Jo(256, 3 - a);
|
|
974
974
|
return l;
|
|
975
|
-
},
|
|
975
|
+
}, Ly = 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
977
|
return fe(e, a);
|
|
978
978
|
};
|
|
@@ -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 && ge(
|
|
990
|
+
for (i = o = 0; o < 4 && ge(Tu, 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;
|
|
@@ -1019,7 +1019,7 @@ var Cg = !gu || Pg(function() {
|
|
|
1019
1019
|
s = t[r], t[r--] = t[n + u - 1], t[n + --u] = s;
|
|
1020
1020
|
else if (r !== 8) return;
|
|
1021
1021
|
return t;
|
|
1022
|
-
},
|
|
1022
|
+
}, xy = function(e) {
|
|
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;
|
|
@@ -1027,26 +1027,26 @@ var Cg = !gu || Pg(function() {
|
|
|
1027
1027
|
var t, r, n, a;
|
|
1028
1028
|
if (typeof e == "number") {
|
|
1029
1029
|
for (t = [], r = 0; r < 4; r++)
|
|
1030
|
-
|
|
1030
|
+
Iy(t, e % 256), e = gy(e / 256);
|
|
1031
1031
|
return Bt(t, ".");
|
|
1032
1032
|
} else if (typeof e == "object") {
|
|
1033
|
-
for (t = "", n =
|
|
1034
|
-
a && e[r] === 0 || (a && (a = !1), n === r ? (t += r ? ":" : "::", a = !0) : (t +=
|
|
1033
|
+
for (t = "", n = xy(e), r = 0; r < 8; r++)
|
|
1034
|
+
a && e[r] === 0 || (a && (a = !1), n === r ? (t += r ? ":" : "::", a = !0) : (t += yy(e[r], 16), r < 7 && (t += ":")));
|
|
1035
1035
|
return "[" + t + "]";
|
|
1036
1036
|
}
|
|
1037
1037
|
return e;
|
|
1038
|
-
}, Lr = {},
|
|
1038
|
+
}, Lr = {}, Eu = gi({}, Lr, {
|
|
1039
1039
|
" ": 1,
|
|
1040
1040
|
'"': 1,
|
|
1041
1041
|
"<": 1,
|
|
1042
1042
|
">": 1,
|
|
1043
1043
|
"`": 1
|
|
1044
|
-
}),
|
|
1044
|
+
}), Ou = gi({}, Eu, {
|
|
1045
1045
|
"#": 1,
|
|
1046
1046
|
"?": 1,
|
|
1047
1047
|
"{": 1,
|
|
1048
1048
|
"}": 1
|
|
1049
|
-
}), zn = gi({},
|
|
1049
|
+
}), zn = gi({}, Ou, {
|
|
1050
1050
|
"/": 1,
|
|
1051
1051
|
":": 1,
|
|
1052
1052
|
";": 1,
|
|
@@ -1058,7 +1058,7 @@ var Cg = !gu || Pg(function() {
|
|
|
1058
1058
|
"^": 1,
|
|
1059
1059
|
"|": 1
|
|
1060
1060
|
}), Le = function(e, t) {
|
|
1061
|
-
var r =
|
|
1061
|
+
var r = ly(e, 0);
|
|
1062
1062
|
return r > 32 && r < 127 && !Oa(t, e) ? e : encodeURIComponent(e);
|
|
1063
1063
|
}, br = {
|
|
1064
1064
|
ftp: 21,
|
|
@@ -1069,13 +1069,13 @@ var Cg = !gu || Pg(function() {
|
|
|
1069
1069
|
wss: 443
|
|
1070
1070
|
}, Kt = function(e, t) {
|
|
1071
1071
|
var r;
|
|
1072
|
-
return e.length === 2 && ge(
|
|
1072
|
+
return e.length === 2 && ge(Pu, fe(e, 0)) && ((r = fe(e, 1)) === ":" || !t && r === "|");
|
|
1073
1073
|
}, qo = function(e) {
|
|
1074
1074
|
var t;
|
|
1075
1075
|
return e.length > 1 && Kt(Jt(e, 0, 2)) && (e.length === 2 || (t = fe(e, 2)) === "/" || t === "\\" || t === "?" || t === "#");
|
|
1076
|
-
}, xy = function(e) {
|
|
1077
|
-
return e === "." || Kr(e) === "%2e";
|
|
1078
1076
|
}, Uy = function(e) {
|
|
1077
|
+
return e === "." || Kr(e) === "%2e";
|
|
1078
|
+
}, Ny = function(e) {
|
|
1079
1079
|
return e = Kr(e), e === ".." || e === "%2e." || e === ".%2e" || e === "%2e%2e";
|
|
1080
1080
|
}, Hn = {}, Qo = {}, Bn = {}, es = {}, ts = {}, Kn = {}, rs = {}, ns = {}, Sr = {}, Ir = {}, Gn = {}, Wn = {}, Vn = {}, Zn = {}, as = {}, Yn = {}, lt = {}, Se = {}, is = {}, We = {}, Ee = {}, yi = function(e, t, r) {
|
|
1081
1081
|
var n = Oe(e), a, i, o;
|
|
@@ -1084,7 +1084,7 @@ var Cg = !gu || Pg(function() {
|
|
|
1084
1084
|
this.searchParams = null;
|
|
1085
1085
|
} else {
|
|
1086
1086
|
if (r !== void 0 && (a = new yi(r, !0)), i = this.parse(n, null, a), i) throw new _a(i);
|
|
1087
|
-
o =
|
|
1087
|
+
o = my(new py()), o.bindURL(this), this.searchParams = o;
|
|
1088
1088
|
}
|
|
1089
1089
|
};
|
|
1090
1090
|
yi.prototype = {
|
|
@@ -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 = Oe(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,
|
|
1096
|
+
for (e = Oe(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, Ry, ""), e = Mn(e, Cy, "$1")), e = Mn(e, jy, ""), u = ut(e); i <= u.length; ) {
|
|
1097
1097
|
switch (s = u[i], a) {
|
|
1098
1098
|
case Hn:
|
|
1099
|
-
if (s && ge(
|
|
1099
|
+
if (s && ge(Pu, 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 && (ge(
|
|
1109
|
+
if (s && (ge(ky, 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;
|
|
@@ -1194,7 +1194,7 @@ yi.prototype = {
|
|
|
1194
1194
|
}
|
|
1195
1195
|
o = "";
|
|
1196
1196
|
} else if (s === ce || s === "/" || s === "?" || s === "#" || s === "\\" && n.isSpecial()) {
|
|
1197
|
-
if (c && o === "") return
|
|
1197
|
+
if (c && o === "") return $y;
|
|
1198
1198
|
i -= ut(o).length + 1, o = "", a = Gn;
|
|
1199
1199
|
} else o += s;
|
|
1200
1200
|
break;
|
|
@@ -1286,12 +1286,12 @@ yi.prototype = {
|
|
|
1286
1286
|
break;
|
|
1287
1287
|
case Se:
|
|
1288
1288
|
if (s === ce || s === "/" || s === "\\" && n.isSpecial() || !t && (s === "?" || s === "#")) {
|
|
1289
|
-
if (
|
|
1289
|
+
if (Ny(o) ? (n.shortenPath(), s !== "/" && !(s === "\\" && n.isSpecial()) && dt(n.path, "")) : Uy(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
|
+
by(n.path);
|
|
1292
1292
|
s === "?" ? (n.query = "", a = We) : s === "#" && (n.fragment = "", a = Ee);
|
|
1293
1293
|
} else
|
|
1294
|
-
o += Le(s,
|
|
1294
|
+
o += Le(s, Ou);
|
|
1295
1295
|
break;
|
|
1296
1296
|
case is:
|
|
1297
1297
|
s === "?" ? (n.query = "", a = We) : s === "#" ? (n.fragment = "", a = Ee) : s !== ce && (n.path[0] += Le(s, Lr));
|
|
@@ -1300,7 +1300,7 @@ yi.prototype = {
|
|
|
1300
1300
|
!t && s === "#" ? (n.fragment = "", a = Ee) : s !== ce && (s === "'" && n.isSpecial() ? n.query += "%27" : s === "#" ? n.query += "%23" : n.query += Le(s, Lr));
|
|
1301
1301
|
break;
|
|
1302
1302
|
case Ee:
|
|
1303
|
-
s !== ce && (n.fragment += Le(s,
|
|
1303
|
+
s !== ce && (n.fragment += Le(s, Eu));
|
|
1304
1304
|
break;
|
|
1305
1305
|
}
|
|
1306
1306
|
i++;
|
|
@@ -1310,13 +1310,13 @@ yi.prototype = {
|
|
|
1310
1310
|
parseHost: function(e) {
|
|
1311
1311
|
var t, r, n;
|
|
1312
1312
|
if (fe(e, 0) === "[") {
|
|
1313
|
-
if (fe(e, e.length - 1) !== "]" || (t =
|
|
1313
|
+
if (fe(e, e.length - 1) !== "]" || (t = Ly(Jt(e, 1, -1)), !t)) return Ge;
|
|
1314
1314
|
this.host = t;
|
|
1315
1315
|
} else if (this.isSpecial()) {
|
|
1316
|
-
if (e =
|
|
1316
|
+
if (e = fy(e), ge(Oy, e) || (t = Ay(e), t === null)) return Ge;
|
|
1317
1317
|
this.host = t;
|
|
1318
1318
|
} else {
|
|
1319
|
-
if (ge(
|
|
1319
|
+
if (ge(_y, e)) return Ge;
|
|
1320
1320
|
for (t = "", r = ut(e), n = 0; n < r.length; n++)
|
|
1321
1321
|
t += Le(r[n], Lr);
|
|
1322
1322
|
this.host = t;
|
|
@@ -1452,7 +1452,7 @@ yi.prototype = {
|
|
|
1452
1452
|
}
|
|
1453
1453
|
};
|
|
1454
1454
|
var It = function(t) {
|
|
1455
|
-
var r =
|
|
1455
|
+
var r = uy(this, X), n = hy(arguments.length, 1) > 1 ? arguments[1] : void 0, a = vy(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
1457
|
}, X = It.prototype, ue = function(e, t) {
|
|
1458
1458
|
return {
|
|
@@ -1477,18 +1477,18 @@ if (Dt) {
|
|
|
1477
1477
|
var os = Dt.createObjectURL, ss = Dt.revokeObjectURL;
|
|
1478
1478
|
os && zr(It, "createObjectURL", Yo(os, Dt)), ss && zr(It, "revokeObjectURL", Yo(ss, Dt));
|
|
1479
1479
|
}
|
|
1480
|
-
|
|
1481
|
-
|
|
1480
|
+
dy(It, "URL");
|
|
1481
|
+
sy({ global: !0, constructor: !0, forced: !cy, sham: !pi }, {
|
|
1482
1482
|
URL: It
|
|
1483
1483
|
});
|
|
1484
|
-
var
|
|
1484
|
+
var Dy = _t, My = Ot, _u = ne, Fy = Rt, cs = Ke, zy = Qr, wi = My("URL"), Hy = zy && _u(function() {
|
|
1485
1485
|
wi.canParse();
|
|
1486
|
-
}),
|
|
1486
|
+
}), By = _u(function() {
|
|
1487
1487
|
return wi.canParse.length !== 1;
|
|
1488
1488
|
});
|
|
1489
|
-
|
|
1489
|
+
Dy({ target: "URL", stat: !0, forced: !Hy || By }, {
|
|
1490
1490
|
canParse: function(t) {
|
|
1491
|
-
var r =
|
|
1491
|
+
var r = Fy(arguments.length, 1), n = cs(t), a = r < 2 || arguments[1] === void 0 ? void 0 : cs(arguments[1]);
|
|
1492
1492
|
try {
|
|
1493
1493
|
return !!new wi(n, a);
|
|
1494
1494
|
} catch {
|
|
@@ -1496,26 +1496,26 @@ Ny({ target: "URL", stat: !0, forced: !zy || Hy }, {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
1498
|
});
|
|
1499
|
-
var
|
|
1500
|
-
|
|
1499
|
+
var Ky = _t, Gy = Ot, Wy = Rt, us = Ke, Vy = Qr, Zy = Gy("URL");
|
|
1500
|
+
Ky({ target: "URL", stat: !0, forced: !Vy }, {
|
|
1501
1501
|
parse: function(t) {
|
|
1502
|
-
var r =
|
|
1502
|
+
var r = Wy(arguments.length, 1), n = us(t), a = r < 2 || arguments[1] === void 0 ? void 0 : us(arguments[1]);
|
|
1503
1503
|
try {
|
|
1504
|
-
return new
|
|
1504
|
+
return new Zy(n, a);
|
|
1505
1505
|
} catch {
|
|
1506
1506
|
return null;
|
|
1507
1507
|
}
|
|
1508
1508
|
}
|
|
1509
1509
|
});
|
|
1510
|
-
var
|
|
1511
|
-
|
|
1510
|
+
var Yy = _t, Jy = Pe;
|
|
1511
|
+
Yy({ target: "URL", proto: !0, enumerable: !0 }, {
|
|
1512
1512
|
toJSON: function() {
|
|
1513
|
-
return
|
|
1513
|
+
return Jy(URL.prototype.toString, this);
|
|
1514
1514
|
}
|
|
1515
1515
|
});
|
|
1516
|
-
var
|
|
1517
|
-
|
|
1518
|
-
var
|
|
1516
|
+
var Xy = du;
|
|
1517
|
+
Xy.URL;
|
|
1518
|
+
var qy = {
|
|
1519
1519
|
CSSRuleList: 0,
|
|
1520
1520
|
CSSStyleDeclaration: 0,
|
|
1521
1521
|
CSSValueList: 0,
|
|
@@ -1547,14 +1547,14 @@ var Xy = {
|
|
|
1547
1547
|
TextTrackCueList: 0,
|
|
1548
1548
|
TextTrackList: 0,
|
|
1549
1549
|
TouchList: 0
|
|
1550
|
-
},
|
|
1550
|
+
}, Qy = Wa, Jn = Qy("span").classList, ls = Jn && Jn.constructor && Jn.constructor.prototype, ew = ls === Object.prototype ? void 0 : ls, fs = Q, Ru = qy, tw = ew, Gt = dp, ds = qr, rw = cr, nw = de, Xn = nw("iterator"), qn = Gt.values, Cu = function(e, t) {
|
|
1551
1551
|
if (e) {
|
|
1552
1552
|
if (e[Xn] !== qn) try {
|
|
1553
1553
|
ds(e, Xn, qn);
|
|
1554
1554
|
} catch {
|
|
1555
1555
|
e[Xn] = qn;
|
|
1556
1556
|
}
|
|
1557
|
-
if (
|
|
1557
|
+
if (rw(e, t, !0), Ru[t]) {
|
|
1558
1558
|
for (var r in Gt)
|
|
1559
1559
|
if (e[r] !== Gt[r]) try {
|
|
1560
1560
|
ds(e, r, Gt[r]);
|
|
@@ -1564,9 +1564,9 @@ var Xy = {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
};
|
|
1567
|
-
for (var Qn in
|
|
1568
|
-
|
|
1569
|
-
|
|
1567
|
+
for (var Qn in Ru)
|
|
1568
|
+
Cu(fs[Qn] && fs[Qn].prototype, Qn);
|
|
1569
|
+
Cu(tw, "DOMTokenList");
|
|
1570
1570
|
function ze(e, t) {
|
|
1571
1571
|
if (typeof window > "u")
|
|
1572
1572
|
return;
|
|
@@ -1624,7 +1624,7 @@ var Ve = Si(function(e, t) {
|
|
|
1624
1624
|
};
|
|
1625
1625
|
});
|
|
1626
1626
|
bi(Ve);
|
|
1627
|
-
var
|
|
1627
|
+
var aw = bi(Si(function(e, t) {
|
|
1628
1628
|
var r = Ze && Ze.__awaiter || function(u, s, d, h) {
|
|
1629
1629
|
return new (d || (d = Promise))(function(m, S) {
|
|
1630
1630
|
function g(b) {
|
|
@@ -1886,7 +1886,7 @@ var nw = bi(Si(function(e, t) {
|
|
|
1886
1886
|
}();
|
|
1887
1887
|
t.default = f;
|
|
1888
1888
|
}));
|
|
1889
|
-
const
|
|
1889
|
+
const iw = { timeoutInSeconds: 60 }, ju = { name: "auth0-spa-js", version: "2.1.3" }, Au = () => Date.now();
|
|
1890
1890
|
let ae = class Ca extends Error {
|
|
1891
1891
|
constructor(t, r) {
|
|
1892
1892
|
super(r), this.error = t, this.error_description = r, Object.setPrototypeOf(this, Ca.prototype);
|
|
@@ -1894,29 +1894,29 @@ let ae = class Ca extends Error {
|
|
|
1894
1894
|
static fromPayload({ error: t, error_description: r }) {
|
|
1895
1895
|
return new Ca(t, r);
|
|
1896
1896
|
}
|
|
1897
|
-
},
|
|
1897
|
+
}, ow = class Lu extends ae {
|
|
1898
1898
|
constructor(t, r, n, a = null) {
|
|
1899
|
-
super(t, r), this.state = n, this.appState = a, Object.setPrototypeOf(this,
|
|
1899
|
+
super(t, r), this.state = n, this.appState = a, Object.setPrototypeOf(this, Lu.prototype);
|
|
1900
1900
|
}
|
|
1901
|
-
}, ja = class
|
|
1901
|
+
}, ja = class xu extends ae {
|
|
1902
1902
|
constructor() {
|
|
1903
|
-
super("timeout", "Timeout"), Object.setPrototypeOf(this,
|
|
1903
|
+
super("timeout", "Timeout"), Object.setPrototypeOf(this, xu.prototype);
|
|
1904
1904
|
}
|
|
1905
|
-
},
|
|
1905
|
+
}, sw = class Uu extends ja {
|
|
1906
1906
|
constructor(t) {
|
|
1907
|
-
super(), this.popup = t, Object.setPrototypeOf(this,
|
|
1907
|
+
super(), this.popup = t, Object.setPrototypeOf(this, Uu.prototype);
|
|
1908
1908
|
}
|
|
1909
|
-
},
|
|
1909
|
+
}, cw = class Nu extends ae {
|
|
1910
1910
|
constructor(t) {
|
|
1911
|
-
super("cancelled", "Popup closed"), this.popup = t, Object.setPrototypeOf(this,
|
|
1911
|
+
super("cancelled", "Popup closed"), this.popup = t, Object.setPrototypeOf(this, Nu.prototype);
|
|
1912
1912
|
}
|
|
1913
|
-
},
|
|
1913
|
+
}, uw = class Du extends ae {
|
|
1914
1914
|
constructor(t, r, n) {
|
|
1915
|
-
super(t, r), this.mfa_token = n, Object.setPrototypeOf(this,
|
|
1915
|
+
super(t, r), this.mfa_token = n, Object.setPrototypeOf(this, Du.prototype);
|
|
1916
1916
|
}
|
|
1917
|
-
},
|
|
1917
|
+
}, Mu = class Fu extends ae {
|
|
1918
1918
|
constructor(t, r) {
|
|
1919
|
-
super("missing_refresh_token", `Missing Refresh Token (audience: '${hs(t, ["default"])}', scope: '${hs(r)}')`), this.audience = t, this.scope = r, Object.setPrototypeOf(this,
|
|
1919
|
+
super("missing_refresh_token", `Missing Refresh Token (audience: '${hs(t, ["default"])}', scope: '${hs(r)}')`), this.audience = t, this.scope = r, Object.setPrototypeOf(this, Fu.prototype);
|
|
1920
1920
|
}
|
|
1921
1921
|
};
|
|
1922
1922
|
function hs(e, t = []) {
|
|
@@ -1929,20 +1929,20 @@ const xr = () => window.crypto, ea = () => {
|
|
|
1929
1929
|
}, vs = (e) => btoa(e), Aa = (e) => {
|
|
1930
1930
|
var { clientId: t } = e, r = Ie(e, ["clientId"]);
|
|
1931
1931
|
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();
|
|
1932
|
-
}, ps = (e) => ((t) => decodeURIComponent(atob(t).split("").map((r) => "%" + ("00" + r.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g, "/").replace(/-/g, "+")),
|
|
1932
|
+
}, ps = (e) => ((t) => decodeURIComponent(atob(t).split("").map((r) => "%" + ("00" + r.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g, "/").replace(/-/g, "+")), lw = async (e, t) => {
|
|
1933
1933
|
const r = await fetch(e, t);
|
|
1934
1934
|
return { ok: r.ok, json: await r.json() };
|
|
1935
|
-
},
|
|
1935
|
+
}, fw = async (e, t, r) => {
|
|
1936
1936
|
const n = new AbortController();
|
|
1937
1937
|
let a;
|
|
1938
|
-
return t.signal = n.signal, Promise.race([
|
|
1938
|
+
return t.signal = n.signal, Promise.race([lw(e, t), new Promise((i, o) => {
|
|
1939
1939
|
a = setTimeout(() => {
|
|
1940
1940
|
n.abort(), o(new Error("Timeout when executing 'fetch'"));
|
|
1941
1941
|
}, r);
|
|
1942
1942
|
})]).finally(() => {
|
|
1943
1943
|
clearTimeout(a);
|
|
1944
1944
|
});
|
|
1945
|
-
},
|
|
1945
|
+
}, dw = async (e, t, r, n, a, i, o) => {
|
|
1946
1946
|
return c = { auth: { audience: t, scope: r }, timeout: a, fetchUrl: e, fetchOptions: n, useFormData: o }, l = i, new Promise(function(f, u) {
|
|
1947
1947
|
const s = new MessageChannel();
|
|
1948
1948
|
s.port1.onmessage = function(d) {
|
|
@@ -1950,14 +1950,14 @@ const xr = () => window.crypto, ea = () => {
|
|
|
1950
1950
|
}, l.postMessage(c, [s.port2]);
|
|
1951
1951
|
});
|
|
1952
1952
|
var c, l;
|
|
1953
|
-
},
|
|
1954
|
-
async function
|
|
1953
|
+
}, hw = async (e, t, r, n, a, i, o = 1e4) => a ? dw(e, t, r, n, o, a, i) : fw(e, n, o);
|
|
1954
|
+
async function vw(e, t) {
|
|
1955
1955
|
var { baseUrl: r, timeout: n, audience: a, scope: i, auth0Client: o, useFormData: c } = e, l = Ie(e, ["baseUrl", "timeout", "audience", "scope", "auth0Client", "useFormData"]);
|
|
1956
1956
|
const f = c ? Aa(l) : JSON.stringify(l);
|
|
1957
1957
|
return await async function(u, s, d, h, m, S, g) {
|
|
1958
1958
|
let $, P = null;
|
|
1959
1959
|
for (let C = 0; C < 3; C++) try {
|
|
1960
|
-
$ = await
|
|
1960
|
+
$ = await hw(u, d, h, m, S, g, s), P = null;
|
|
1961
1961
|
break;
|
|
1962
1962
|
} catch (M) {
|
|
1963
1963
|
P = M;
|
|
@@ -1966,10 +1966,10 @@ async function hw(e, t) {
|
|
|
1966
1966
|
const b = $.json, { error: v, error_description: I } = b, O = Ie(b, ["error", "error_description"]), { ok: _ } = $;
|
|
1967
1967
|
if (!_) {
|
|
1968
1968
|
const C = I || `HTTP error. Unable to fetch ${u}`;
|
|
1969
|
-
throw v === "mfa_required" ? new
|
|
1969
|
+
throw v === "mfa_required" ? new uw(v, C, O.mfa_token) : v === "missing_refresh_token" ? new Mu(d, h) : new ae(v || "request_error", C);
|
|
1970
1970
|
}
|
|
1971
1971
|
return O;
|
|
1972
|
-
}(`${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 ||
|
|
1972
|
+
}(`${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 || ju)) } }, t, c);
|
|
1973
1973
|
}
|
|
1974
1974
|
const $r = (...e) => {
|
|
1975
1975
|
return (t = e.filter(Boolean).join(" ").trim().split(/\s+/), Array.from(new Set(t))).join(" ");
|
|
@@ -1990,7 +1990,7 @@ let Xe = class La {
|
|
|
1990
1990
|
const { scope: r, audience: n, client_id: a } = t;
|
|
1991
1991
|
return new La({ scope: r, audience: n, clientId: a });
|
|
1992
1992
|
}
|
|
1993
|
-
},
|
|
1993
|
+
}, pw = class {
|
|
1994
1994
|
set(t, r) {
|
|
1995
1995
|
localStorage.setItem(t, JSON.stringify(r));
|
|
1996
1996
|
}
|
|
@@ -2008,7 +2008,7 @@ let Xe = class La {
|
|
|
2008
2008
|
allKeys() {
|
|
2009
2009
|
return Object.keys(window.localStorage).filter((t) => t.startsWith("@@auth0spajs@@"));
|
|
2010
2010
|
}
|
|
2011
|
-
},
|
|
2011
|
+
}, zu = class {
|
|
2012
2012
|
constructor() {
|
|
2013
2013
|
this.enclosedCache = /* @__PURE__ */ function() {
|
|
2014
2014
|
let t = {};
|
|
@@ -2022,9 +2022,9 @@ let Xe = class La {
|
|
|
2022
2022
|
}, allKeys: () => Object.keys(t) };
|
|
2023
2023
|
}();
|
|
2024
2024
|
}
|
|
2025
|
-
},
|
|
2025
|
+
}, mw = class {
|
|
2026
2026
|
constructor(t, r, n) {
|
|
2027
|
-
this.cache = t, this.keyManifest = r, this.nowProvider = n ||
|
|
2027
|
+
this.cache = t, this.keyManifest = r, this.nowProvider = n || Au;
|
|
2028
2028
|
}
|
|
2029
2029
|
async setIdToken(t, r, n) {
|
|
2030
2030
|
var a;
|
|
@@ -2082,7 +2082,7 @@ let Xe = class La {
|
|
|
2082
2082
|
return i.prefix === "@@auth0spajs@@" && i.clientId === t.clientId && i.audience === t.audience && l;
|
|
2083
2083
|
})[0];
|
|
2084
2084
|
}
|
|
2085
|
-
},
|
|
2085
|
+
}, gw = class {
|
|
2086
2086
|
constructor(t, r, n) {
|
|
2087
2087
|
this.storage = t, this.clientId = r, this.cookieDomain = n, this.storageKey = `a0.spajs.txs.${this.clientId}`;
|
|
2088
2088
|
}
|
|
@@ -2096,14 +2096,14 @@ let Xe = class La {
|
|
|
2096
2096
|
this.storage.remove(this.storageKey, { cookieDomain: this.cookieDomain });
|
|
2097
2097
|
}
|
|
2098
2098
|
};
|
|
2099
|
-
const Ft = (e) => typeof e == "number",
|
|
2099
|
+
const Ft = (e) => typeof e == "number", yw = ["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"], ww = (e) => {
|
|
2100
2100
|
if (!e.id_token) throw new Error("ID token is required but missing");
|
|
2101
2101
|
const t = ((i) => {
|
|
2102
2102
|
const o = i.split("."), [c, l, f] = o;
|
|
2103
2103
|
if (o.length !== 3 || !c || !l || !f) throw new Error("ID token could not be decoded");
|
|
2104
2104
|
const u = JSON.parse(ps(l)), s = { __raw: i }, d = {};
|
|
2105
2105
|
return Object.keys(u).forEach((h) => {
|
|
2106
|
-
s[h] = u[h],
|
|
2106
|
+
s[h] = u[h], yw.includes(h) || (d[h] = u[h]);
|
|
2107
2107
|
}), { encoded: { header: c, payload: l, signature: f }, header: JSON.parse(ps(c)), claims: s, user: d };
|
|
2108
2108
|
})(e.id_token);
|
|
2109
2109
|
if (!t.claims.iss) throw new Error("Issuer (iss) claim must be a string present in the ID token");
|
|
@@ -2194,25 +2194,25 @@ var qe = Si(function(e, t) {
|
|
|
2194
2194
|
};
|
|
2195
2195
|
});
|
|
2196
2196
|
bi(qe), qe.encode, qe.parse, qe.getAll;
|
|
2197
|
-
var
|
|
2197
|
+
var bw = qe.get, Hu = qe.set, Bu = qe.remove;
|
|
2198
2198
|
const ht = { get(e) {
|
|
2199
|
-
const t =
|
|
2199
|
+
const t = bw(e);
|
|
2200
2200
|
if (t !== void 0) return JSON.parse(t);
|
|
2201
2201
|
}, save(e, t, r) {
|
|
2202
2202
|
let n = {};
|
|
2203
|
-
window.location.protocol === "https:" && (n = { secure: !0, sameSite: "none" }), r != null && r.daysUntilExpire && (n.expires = r.daysUntilExpire), r != null && r.cookieDomain && (n.domain = r.cookieDomain),
|
|
2203
|
+
window.location.protocol === "https:" && (n = { secure: !0, sameSite: "none" }), r != null && r.daysUntilExpire && (n.expires = r.daysUntilExpire), r != null && r.cookieDomain && (n.domain = r.cookieDomain), Hu(e, JSON.stringify(t), n);
|
|
2204
2204
|
}, remove(e, t) {
|
|
2205
2205
|
let r = {};
|
|
2206
|
-
t != null && t.cookieDomain && (r.domain = t.cookieDomain),
|
|
2207
|
-
} },
|
|
2206
|
+
t != null && t.cookieDomain && (r.domain = t.cookieDomain), Bu(e, r);
|
|
2207
|
+
} }, Sw = { get(e) {
|
|
2208
2208
|
return ht.get(e) || ht.get(`_legacy_${e}`);
|
|
2209
2209
|
}, save(e, t, r) {
|
|
2210
2210
|
let n = {};
|
|
2211
|
-
window.location.protocol === "https:" && (n = { secure: !0 }), r != null && r.daysUntilExpire && (n.expires = r.daysUntilExpire), r != null && r.cookieDomain && (n.domain = r.cookieDomain),
|
|
2211
|
+
window.location.protocol === "https:" && (n = { secure: !0 }), r != null && r.daysUntilExpire && (n.expires = r.daysUntilExpire), r != null && r.cookieDomain && (n.domain = r.cookieDomain), Hu(`_legacy_${e}`, JSON.stringify(t), n), ht.save(e, t, r);
|
|
2212
2212
|
}, remove(e, t) {
|
|
2213
2213
|
let r = {};
|
|
2214
|
-
t != null && t.cookieDomain && (r.domain = t.cookieDomain),
|
|
2215
|
-
} },
|
|
2214
|
+
t != null && t.cookieDomain && (r.domain = t.cookieDomain), Bu(e, r), ht.remove(e, t), ht.remove(`_legacy_${e}`, t);
|
|
2215
|
+
} }, Iw = { get(e) {
|
|
2216
2216
|
if (typeof sessionStorage > "u") return;
|
|
2217
2217
|
const t = sessionStorage.getItem(e);
|
|
2218
2218
|
return t != null ? JSON.parse(t) : void 0;
|
|
@@ -2221,7 +2221,7 @@ const ht = { get(e) {
|
|
|
2221
2221
|
}, remove(e) {
|
|
2222
2222
|
sessionStorage.removeItem(e);
|
|
2223
2223
|
} };
|
|
2224
|
-
function
|
|
2224
|
+
function $w(e, t, r) {
|
|
2225
2225
|
var n = t === void 0 ? null : t, a = function(l, f) {
|
|
2226
2226
|
var u = atob(l);
|
|
2227
2227
|
if (f) {
|
|
@@ -2233,11 +2233,11 @@ function Iw(e, t, r) {
|
|
|
2233
2233
|
`, 10) + 1, o = a.substring(i) + (n ? "//# sourceMappingURL=" + n : ""), c = new Blob([o], { type: "application/javascript" });
|
|
2234
2234
|
return URL.createObjectURL(c);
|
|
2235
2235
|
}
|
|
2236
|
-
var ms, gs, ys, ta,
|
|
2237
|
-
return ta = ta ||
|
|
2236
|
+
var ms, gs, ys, ta, kw = (ms = "Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=", gs = null, ys = !1, function(e) {
|
|
2237
|
+
return ta = ta || $w(ms, gs, ys), new Worker(ta, e);
|
|
2238
2238
|
});
|
|
2239
2239
|
const ra = {};
|
|
2240
|
-
let
|
|
2240
|
+
let Pw = class {
|
|
2241
2241
|
constructor(t, r) {
|
|
2242
2242
|
this.cache = t, this.clientId = r, this.manifestKey = this.createManifestKeyFrom(this.clientId);
|
|
2243
2243
|
}
|
|
@@ -2263,14 +2263,14 @@ let kw = class {
|
|
|
2263
2263
|
return `@@auth0spajs@@::${t}`;
|
|
2264
2264
|
}
|
|
2265
2265
|
};
|
|
2266
|
-
const
|
|
2266
|
+
const Tw = { memory: () => new zu().enclosedCache, localstorage: () => new pw() }, ws = (e) => Tw[e], bs = (e) => {
|
|
2267
2267
|
const { openUrl: t, onRedirect: r } = e, n = Ie(e, ["openUrl", "onRedirect"]);
|
|
2268
2268
|
return Object.assign(Object.assign({}, n), { openUrl: t === !1 || t ? t : r });
|
|
2269
|
-
}, na = new
|
|
2270
|
-
let
|
|
2269
|
+
}, na = new aw();
|
|
2270
|
+
let Ew = class {
|
|
2271
2271
|
constructor(t) {
|
|
2272
2272
|
let r, n;
|
|
2273
|
-
if (this.userCache = new
|
|
2273
|
+
if (this.userCache = new zu().enclosedCache, this.defaultOptions = { authorizationParams: { scope: "openid profile email" }, useRefreshTokensFallback: !1, useFormData: !0 }, this._releaseLockOnPageHide = async () => {
|
|
2274
2274
|
await na.releaseLock("auth0.lock.getTokenSilently"), window.removeEventListener("pagehide", this._releaseLockOnPageHide);
|
|
2275
2275
|
}, this.options = Object.assign(Object.assign(Object.assign({}, this.defaultOptions), t), { authorizationParams: Object.assign(Object.assign({}, this.defaultOptions.authorizationParams), t.authorizationParams) }), typeof window < "u" && (() => {
|
|
2276
2276
|
if (!xr()) throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");
|
|
@@ -2282,13 +2282,13 @@ let Tw = class {
|
|
|
2282
2282
|
if (r = t.cacheLocation || "memory", !ws(r)) throw new Error(`Invalid cache location "${r}"`);
|
|
2283
2283
|
n = ws(r)();
|
|
2284
2284
|
}
|
|
2285
|
-
this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? ht :
|
|
2286
|
-
const a = t.useCookiesForTransactions ? this.cookieStorage :
|
|
2285
|
+
this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? ht : Sw, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((o) => `auth0.${o}.is.authenticated`)(this.options.clientId), this.sessionCheckExpiryDays = t.sessionCheckExpiryDays || 1;
|
|
2286
|
+
const a = t.useCookiesForTransactions ? this.cookieStorage : Iw;
|
|
2287
2287
|
var i;
|
|
2288
|
-
this.scope = $r("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new
|
|
2288
|
+
this.scope = $r("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new gw(a, this.options.clientId, this.options.cookieDomain), this.nowProvider = this.options.nowProvider || Au, this.cacheManager = new mw(n, n.allKeys ? void 0 : new Pw(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 kw());
|
|
2289
2289
|
}
|
|
2290
2290
|
_url(t) {
|
|
2291
|
-
const r = encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client ||
|
|
2291
|
+
const r = encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client || ju)));
|
|
2292
2292
|
return `${this.domainUrl}${t}&auth0Client=${r}`;
|
|
2293
2293
|
}
|
|
2294
2294
|
_authorizeUrl(t) {
|
|
@@ -2296,7 +2296,7 @@ let Tw = class {
|
|
|
2296
2296
|
}
|
|
2297
2297
|
async _verifyIdToken(t, r, n) {
|
|
2298
2298
|
const a = await this.nowProvider();
|
|
2299
|
-
return
|
|
2299
|
+
return ww({ iss: this.tokenIssuer, aud: this.options.clientId, id_token: t, nonce: r, organization: n, leeway: this.options.leeway, max_age: (i = this.options.authorizationParams.max_age, typeof i != "string" ? i : parseInt(i, 10) || void 0), now: a });
|
|
2300
2300
|
var i;
|
|
2301
2301
|
}
|
|
2302
2302
|
_processOrgHint(t) {
|
|
@@ -2323,9 +2323,9 @@ let Tw = class {
|
|
|
2323
2323
|
const i = await ((c) => new Promise((l, f) => {
|
|
2324
2324
|
let u;
|
|
2325
2325
|
const s = setInterval(() => {
|
|
2326
|
-
c.popup && c.popup.closed && (clearInterval(s), clearTimeout(d), window.removeEventListener("message", u, !1), f(new
|
|
2326
|
+
c.popup && c.popup.closed && (clearInterval(s), clearTimeout(d), window.removeEventListener("message", u, !1), f(new cw(c.popup)));
|
|
2327
2327
|
}, 1e3), d = setTimeout(() => {
|
|
2328
|
-
clearInterval(s), f(new
|
|
2328
|
+
clearInterval(s), f(new sw(c.popup)), window.removeEventListener("message", u, !1);
|
|
2329
2329
|
}, 1e3 * (c.timeoutInSeconds || 60));
|
|
2330
2330
|
u = function(h) {
|
|
2331
2331
|
if (h.data && h.data.type === "authorization_response") {
|
|
@@ -2364,7 +2364,7 @@ let Tw = class {
|
|
|
2364
2364
|
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 };
|
|
2365
2365
|
})(r.join("")), c = this.transactionManager.get();
|
|
2366
2366
|
if (!c) throw new ae("missing_transaction", "Invalid state");
|
|
2367
|
-
if (this.transactionManager.remove(), i) throw new
|
|
2367
|
+
if (this.transactionManager.remove(), i) throw new ow(i, o || i, n, c.appState);
|
|
2368
2368
|
if (!c.code_verifier || c.state && c.state !== n) throw new ae("state_mismatch", "Invalid state");
|
|
2369
2369
|
const l = c.organization, f = c.nonce, u = c.redirect_uri;
|
|
2370
2370
|
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 };
|
|
@@ -2415,7 +2415,7 @@ let Tw = class {
|
|
|
2415
2415
|
async getTokenWithPopup(t = {}, r = {}) {
|
|
2416
2416
|
var n;
|
|
2417
2417
|
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) }) });
|
|
2418
|
-
return r = Object.assign(Object.assign({},
|
|
2418
|
+
return r = Object.assign(Object.assign({}, iw), 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;
|
|
2419
2419
|
}
|
|
2420
2420
|
async isAuthenticated() {
|
|
2421
2421
|
return !!await this.getUser();
|
|
@@ -2464,7 +2464,7 @@ let Tw = class {
|
|
|
2464
2464
|
const r = await this.cacheManager.get(new Xe({ scope: t.authorizationParams.scope, audience: t.authorizationParams.audience || "default", clientId: this.options.clientId }));
|
|
2465
2465
|
if (!(r && r.refresh_token || this.worker)) {
|
|
2466
2466
|
if (this.options.useRefreshTokensFallback) return await this._getTokenFromIFrame(t);
|
|
2467
|
-
throw new
|
|
2467
|
+
throw new Mu(t.authorizationParams.audience || "default", t.authorizationParams.scope);
|
|
2468
2468
|
}
|
|
2469
2469
|
const n = t.authorizationParams.redirect_uri || this.options.authorizationParams.redirect_uri || window.location.origin, a = typeof t.timeoutInSeconds == "number" ? 1e3 * t.timeoutInSeconds : null;
|
|
2470
2470
|
try {
|
|
@@ -2491,22 +2491,22 @@ let Tw = class {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
}
|
|
2493
2493
|
async _requestToken(t, r) {
|
|
2494
|
-
const { nonceIn: n, organization: a } = r || {}, i = await
|
|
2494
|
+
const { nonceIn: n, organization: a } = r || {}, i = await vw(Object.assign({ baseUrl: this.domainUrl, client_id: this.options.clientId, auth0Client: this.options.auth0Client, useFormData: this.options.useFormData, timeout: this.httpTimeoutMs }, t), this.worker), o = await this._verifyIdToken(i.id_token, n, a);
|
|
2495
2495
|
return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({}, i), { decodedToken: o, scope: t.scope, audience: t.audience || "default" }), i.scope ? { oauthTokenScope: i.scope } : null), { client_id: this.options.clientId })), this.cookieStorage.save(this.isAuthenticatedCookieName, !0, { daysUntilExpire: this.sessionCheckExpiryDays, cookieDomain: this.options.cookieDomain }), this._processOrgHint(a || o.claims.org_id), Object.assign(Object.assign({}, i), { decodedToken: o });
|
|
2496
2496
|
}
|
|
2497
2497
|
};
|
|
2498
|
-
async function
|
|
2499
|
-
const t = new
|
|
2498
|
+
async function Ow(e) {
|
|
2499
|
+
const t = new Ew(e);
|
|
2500
2500
|
return await t.checkSession(), t;
|
|
2501
2501
|
}
|
|
2502
2502
|
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 || {});
|
|
2503
|
-
const
|
|
2503
|
+
const _w = "sesamy.com", Rw = "sesamy.dev", Cw = "https://sesa.my", xa = "sesamyCacheTimestamp";
|
|
2504
2504
|
function Ue(e, t) {
|
|
2505
|
-
return `https://${e}.${t === "dev" ?
|
|
2505
|
+
return `https://${e}.${t === "dev" ? Rw : _w}`;
|
|
2506
2506
|
}
|
|
2507
|
-
let ie,
|
|
2507
|
+
let ie, Ku;
|
|
2508
2508
|
const $t = "sesamyAccessToken", aa = "sesamyRefreshToken";
|
|
2509
|
-
async function
|
|
2509
|
+
async function jw(e) {
|
|
2510
2510
|
if (!e)
|
|
2511
2511
|
return null;
|
|
2512
2512
|
const t = localStorage.getItem(aa);
|
|
@@ -2529,16 +2529,16 @@ async function Cw(e) {
|
|
|
2529
2529
|
const i = await a.json();
|
|
2530
2530
|
return localStorage.setItem(aa, i.refresh_token), localStorage.setItem($t, i.access_token), i.access_token;
|
|
2531
2531
|
} catch {
|
|
2532
|
-
|
|
2532
|
+
Gu();
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
2535
|
async function Ii() {
|
|
2536
2536
|
const e = localStorage.getItem($t);
|
|
2537
2537
|
if (!e)
|
|
2538
2538
|
return null;
|
|
2539
|
-
const t =
|
|
2539
|
+
const t = Wu(e);
|
|
2540
2540
|
if (!t || !t.exp || t.exp < (/* @__PURE__ */ new Date()).getTime() / 1e3) {
|
|
2541
|
-
const r = await
|
|
2541
|
+
const r = await jw(t);
|
|
2542
2542
|
if (r)
|
|
2543
2543
|
return r;
|
|
2544
2544
|
localStorage.removeItem($t);
|
|
@@ -2553,16 +2553,16 @@ function Ss(e) {
|
|
|
2553
2553
|
return null;
|
|
2554
2554
|
}
|
|
2555
2555
|
}
|
|
2556
|
-
async function
|
|
2556
|
+
async function Aw(e) {
|
|
2557
2557
|
if (e.enabled === !1)
|
|
2558
2558
|
return;
|
|
2559
|
-
|
|
2559
|
+
Ku = e.organization;
|
|
2560
2560
|
const t = {
|
|
2561
2561
|
domain: Ue("token", e.environment),
|
|
2562
2562
|
clientId: e.clientId,
|
|
2563
2563
|
useCookiesForTransactions: !0
|
|
2564
2564
|
};
|
|
2565
|
-
if (Ss(window.location.href) !== Ss(Ue("auth", e.environment)) && (t.cacheLocation = "localstorage", t.useRefreshTokens = !0), ie = await
|
|
2565
|
+
if (Ss(window.location.href) !== Ss(Ue("auth", e.environment)) && (t.cacheLocation = "localstorage", t.useRefreshTokens = !0), ie = await Ow(t), window.location.search.includes("code="))
|
|
2566
2566
|
try {
|
|
2567
2567
|
await ie.handleRedirectCallback();
|
|
2568
2568
|
const r = await ie.getUser();
|
|
@@ -2576,7 +2576,7 @@ async function jw(e) {
|
|
|
2576
2576
|
async function $i() {
|
|
2577
2577
|
return await Ii() ? !0 : ie ? ie.isAuthenticated() : !1;
|
|
2578
2578
|
}
|
|
2579
|
-
async function
|
|
2579
|
+
async function Lw() {
|
|
2580
2580
|
return await Ii() ? {
|
|
2581
2581
|
sub: "local",
|
|
2582
2582
|
name: "Local User"
|
|
@@ -2589,7 +2589,7 @@ function ki(e) {
|
|
|
2589
2589
|
return ie.loginWithRedirect({
|
|
2590
2590
|
...e,
|
|
2591
2591
|
authorizationParams: {
|
|
2592
|
-
organization:
|
|
2592
|
+
organization: Ku,
|
|
2593
2593
|
redirect_uri: window.location.href,
|
|
2594
2594
|
...t
|
|
2595
2595
|
}
|
|
@@ -2607,7 +2607,7 @@ async function zt(e = !0) {
|
|
|
2607
2607
|
return null;
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
|
-
async function
|
|
2610
|
+
async function Gu(e = {}) {
|
|
2611
2611
|
if (localStorage.removeItem($t), ze(ye.LOGOUT, {}), !!ie)
|
|
2612
2612
|
return ie.logout({
|
|
2613
2613
|
...e,
|
|
@@ -2615,7 +2615,7 @@ async function Ku(e = {}) {
|
|
|
2615
2615
|
logoutParams: { returnTo: window.location.href, ...e.logoutParams }
|
|
2616
2616
|
});
|
|
2617
2617
|
}
|
|
2618
|
-
function
|
|
2618
|
+
function Wu(e) {
|
|
2619
2619
|
const t = e.split(".");
|
|
2620
2620
|
if (t.length !== 3)
|
|
2621
2621
|
return null;
|
|
@@ -2626,13 +2626,13 @@ function Gu(e) {
|
|
|
2626
2626
|
);
|
|
2627
2627
|
return JSON.parse(a);
|
|
2628
2628
|
}
|
|
2629
|
-
async function
|
|
2630
|
-
const t =
|
|
2629
|
+
async function Vu(e) {
|
|
2630
|
+
const t = Wu(e);
|
|
2631
2631
|
if (!t || !t.exp || t.exp < (/* @__PURE__ */ new Date()).getTime() / 1e3)
|
|
2632
2632
|
throw new Error("Invalid token");
|
|
2633
2633
|
localStorage.setItem($t, e), ze(ye.AUTHENTICATED, t);
|
|
2634
2634
|
}
|
|
2635
|
-
const
|
|
2635
|
+
const xw = (e, t) => t.skipDedupe || t.method !== "GET", Uw = (e, t) => t.method + "@" + e, Nw = (e) => e.clone(), Is = ({ skip: e = xw, key: t = Uw, resolver: r = Nw } = {}) => {
|
|
2636
2636
|
const n = /* @__PURE__ */ new Map();
|
|
2637
2637
|
return (a) => (i, o) => {
|
|
2638
2638
|
if (e(i, o))
|
|
@@ -2652,7 +2652,7 @@ const Lw = (e, t) => t.skipDedupe || t.method !== "GET", xw = (e, t) => t.method
|
|
|
2652
2652
|
return n.delete(c), Promise.reject(l);
|
|
2653
2653
|
}
|
|
2654
2654
|
};
|
|
2655
|
-
},
|
|
2655
|
+
}, Dw = (e, t) => e * t, Mw = (e) => e && e.ok, $s = ({ delayTimer: e = 500, delayRamp: t = Dw, maxAttempts: r = 10, until: n = Mw, onRetry: a = null, retryOnNetworkError: i = !1, resolveWithLatestResponse: o = !1, skip: c } = {}) => (l) => (f, u) => {
|
|
2656
2656
|
let s = 0;
|
|
2657
2657
|
if (c && c(f, u))
|
|
2658
2658
|
return l(f, u);
|
|
@@ -2679,10 +2679,10 @@ const Lw = (e, t) => t.skipDedupe || t.method !== "GET", xw = (e, t) => t.method
|
|
|
2679
2679
|
throw h;
|
|
2680
2680
|
return d(null, h);
|
|
2681
2681
|
});
|
|
2682
|
-
},
|
|
2682
|
+
}, Fw = "application/json", Zu = "Content-Type", ft = Symbol(), Yu = Symbol();
|
|
2683
2683
|
function ks(e = {}) {
|
|
2684
2684
|
var t;
|
|
2685
|
-
return (t = Object.entries(e).find(([r]) => r.toLowerCase() ===
|
|
2685
|
+
return (t = Object.entries(e).find(([r]) => r.toLowerCase() === Zu.toLowerCase())) === null || t === void 0 ? void 0 : t[1];
|
|
2686
2686
|
}
|
|
2687
2687
|
function Ps(e) {
|
|
2688
2688
|
return /^application\/.*json.*/.test(e);
|
|
@@ -2714,28 +2714,28 @@ const Qe = function(e, t, r = !1) {
|
|
|
2714
2714
|
return r && a ? new a(...n) : a;
|
|
2715
2715
|
}
|
|
2716
2716
|
};
|
|
2717
|
-
function
|
|
2717
|
+
function zw(e, t = !1) {
|
|
2718
2718
|
kt.options = t ? e : Qe(kt.options, e);
|
|
2719
2719
|
}
|
|
2720
|
-
function
|
|
2720
|
+
function Hw(e, t = !1) {
|
|
2721
2721
|
kt.polyfills = t ? e : Qe(kt.polyfills, e);
|
|
2722
2722
|
}
|
|
2723
|
-
function
|
|
2723
|
+
function Bw(e) {
|
|
2724
2724
|
kt.errorType = e;
|
|
2725
2725
|
}
|
|
2726
|
-
const
|
|
2727
|
-
class
|
|
2726
|
+
const Kw = (e) => (t) => e.reduceRight((r, n) => n(r), t) || t;
|
|
2727
|
+
class Ju extends Error {
|
|
2728
2728
|
}
|
|
2729
|
-
const
|
|
2729
|
+
const Gw = (e) => {
|
|
2730
2730
|
const t = /* @__PURE__ */ Object.create(null);
|
|
2731
2731
|
e = e._addons.reduce((b, v) => v.beforeRequest && v.beforeRequest(b, e._options, t) || b, e);
|
|
2732
2732
|
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);
|
|
2733
2733
|
let s = r;
|
|
2734
|
-
const d =
|
|
2734
|
+
const d = Kw(c)((b, v) => (s = b, a.polyfill("fetch")(b, v)))(r, u), h = new Error(), m = d.catch((b) => {
|
|
2735
2735
|
throw { [ft]: b };
|
|
2736
2736
|
}).then((b) => {
|
|
2737
2737
|
if (!b.ok) {
|
|
2738
|
-
const v = new
|
|
2738
|
+
const v = new Ju();
|
|
2739
2739
|
if (v.cause = h, v.stack = v.stack + `
|
|
2740
2740
|
CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
2741
2741
|
throw v;
|
|
@@ -2754,7 +2754,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2754
2754
|
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);
|
|
2755
2755
|
if (_)
|
|
2756
2756
|
return _(O, e);
|
|
2757
|
-
const C = f.get(
|
|
2757
|
+
const C = f.get(Yu);
|
|
2758
2758
|
if (C)
|
|
2759
2759
|
return C(O, e);
|
|
2760
2760
|
throw O;
|
|
@@ -2797,7 +2797,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2797
2797
|
...typeof v.resolver == "function" ? v.resolver(b) : v.resolver
|
|
2798
2798
|
}), $);
|
|
2799
2799
|
return o.reduce((b, v) => v(b, e), P);
|
|
2800
|
-
},
|
|
2800
|
+
}, Ww = {
|
|
2801
2801
|
_url: "",
|
|
2802
2802
|
_options: {},
|
|
2803
2803
|
_config: kt,
|
|
@@ -2847,7 +2847,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2847
2847
|
return this.headers({ Accept: e });
|
|
2848
2848
|
},
|
|
2849
2849
|
content(e) {
|
|
2850
|
-
return this.headers({ [
|
|
2850
|
+
return this.headers({ [Zu]: e });
|
|
2851
2851
|
},
|
|
2852
2852
|
auth(e) {
|
|
2853
2853
|
return this.headers({ Authorization: e });
|
|
@@ -2857,7 +2857,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2857
2857
|
return r.set(e, t), { ...this, _catchers: r };
|
|
2858
2858
|
},
|
|
2859
2859
|
catcherFallback(e) {
|
|
2860
|
-
return this.catcher(
|
|
2860
|
+
return this.catcher(Yu, e);
|
|
2861
2861
|
},
|
|
2862
2862
|
resolve(e, t = !1) {
|
|
2863
2863
|
return { ...this, _resolvers: t ? [e] : [...this._resolvers, e] };
|
|
@@ -2877,7 +2877,7 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2877
2877
|
fetch(e = this._options.method, t = "", r = null) {
|
|
2878
2878
|
let n = this.url(t).options({ method: e });
|
|
2879
2879
|
const a = ks(n._options.headers), i = this._config.polyfill("FormData", !1), o = typeof r == "object" && !(i && r instanceof i) && (!n._options.headers || !a || Ps(a));
|
|
2880
|
-
return n = r ? o ? n.json(r, a) : n.body(r) : n,
|
|
2880
|
+
return n = r ? o ? n.json(r, a) : n.body(r) : n, Gw(n._deferred.reduce((c, l) => l(c, c._url, c._options), n));
|
|
2881
2881
|
},
|
|
2882
2882
|
get(e = "") {
|
|
2883
2883
|
return this.fetch("GET", e);
|
|
@@ -2905,17 +2905,17 @@ CAUSE: ` + h.stack, v.response = b, v.url = s, b.type === "opaque")
|
|
|
2905
2905
|
},
|
|
2906
2906
|
json(e, t) {
|
|
2907
2907
|
const r = ks(this._options.headers);
|
|
2908
|
-
return this.content(t || Ps(r) && r ||
|
|
2908
|
+
return this.content(t || Ps(r) && r || Fw).body(JSON.stringify(e));
|
|
2909
2909
|
}
|
|
2910
2910
|
};
|
|
2911
2911
|
function Ce(e = "", t = {}) {
|
|
2912
|
-
return { ...
|
|
2912
|
+
return { ...Ww, _url: e, _options: t };
|
|
2913
2913
|
}
|
|
2914
2914
|
Ce.default = Ce;
|
|
2915
|
-
Ce.options =
|
|
2916
|
-
Ce.errorType =
|
|
2917
|
-
Ce.polyfills =
|
|
2918
|
-
Ce.WretchError =
|
|
2915
|
+
Ce.options = zw;
|
|
2916
|
+
Ce.errorType = Bw;
|
|
2917
|
+
Ce.polyfills = Hw;
|
|
2918
|
+
Ce.WretchError = Ju;
|
|
2919
2919
|
function pe() {
|
|
2920
2920
|
sessionStorage.removeItem(xa), ze(ye.CLEAR_CACHE, {});
|
|
2921
2921
|
}
|
|
@@ -2923,7 +2923,7 @@ function Ts() {
|
|
|
2923
2923
|
var r;
|
|
2924
2924
|
return (r = (document.documentElement.getAttribute("lang") ?? "en").split("-")[0]) == null ? void 0 : r.toLocaleLowerCase();
|
|
2925
2925
|
}
|
|
2926
|
-
function
|
|
2926
|
+
function Vw(e) {
|
|
2927
2927
|
const t = Ue("api2", e.environment), r = (w) => async (k, T) => {
|
|
2928
2928
|
let H = sessionStorage.getItem(xa);
|
|
2929
2929
|
H || (H = Date.now().toString(), sessionStorage.setItem(xa, H));
|
|
@@ -3088,7 +3088,7 @@ function Ww(e) {
|
|
|
3088
3088
|
return k.length && pe(), k;
|
|
3089
3089
|
}
|
|
3090
3090
|
async function y(w, k = 3600) {
|
|
3091
|
-
const { shortlink: T } = await Ce(
|
|
3091
|
+
const { shortlink: T } = await Ce(Cw).post({ url: w, ttl: k }).json();
|
|
3092
3092
|
return T;
|
|
3093
3093
|
}
|
|
3094
3094
|
async function E(w) {
|
|
@@ -3157,75 +3157,75 @@ function Ww(e) {
|
|
|
3157
3157
|
openHostedAccountPage: W
|
|
3158
3158
|
};
|
|
3159
3159
|
}
|
|
3160
|
-
const
|
|
3160
|
+
const Xu = "@sesamy/sesamy-js", Pi = "1.19.1";
|
|
3161
3161
|
function Es(e, t, r, n, a) {
|
|
3162
3162
|
for (t = t.split ? t.split(".") : t, n = 0; n < t.length; n++) e = e ? e[t[n]] : a;
|
|
3163
3163
|
return e === a ? r : e;
|
|
3164
3164
|
}
|
|
3165
3165
|
var kr = "undefined", Os = "object", Ua = function() {
|
|
3166
|
-
},
|
|
3166
|
+
}, qu = "any", Qu = "*", rt = "__", Gr = typeof process < "u" ? process : {};
|
|
3167
3167
|
Gr.env && Gr.env.NODE_ENV;
|
|
3168
3168
|
var Z = typeof document < "u";
|
|
3169
3169
|
Gr.versions != null && Gr.versions.node != null;
|
|
3170
3170
|
typeof Deno < "u" && Deno.core;
|
|
3171
3171
|
Z && window.name === "nodejs" || typeof navigator < "u" && navigator.userAgent !== void 0 && (navigator.userAgent.includes("Node.js") || navigator.userAgent.includes("jsdom"));
|
|
3172
|
-
function
|
|
3172
|
+
function el(e, t) {
|
|
3173
3173
|
return t.charAt(0)[e]() + t.slice(1);
|
|
3174
3174
|
}
|
|
3175
|
-
var
|
|
3176
|
-
function
|
|
3177
|
-
return
|
|
3175
|
+
var Zw = el.bind(null, "toUpperCase"), Yw = el.bind(null, "toLowerCase");
|
|
3176
|
+
function Jw(e) {
|
|
3177
|
+
return tl(e) ? Zw("null") : typeof e == "object" ? eb(e) : Object.prototype.toString.call(e).slice(8, -1);
|
|
3178
3178
|
}
|
|
3179
3179
|
function Wr(e, t) {
|
|
3180
3180
|
t === void 0 && (t = !0);
|
|
3181
|
-
var r =
|
|
3182
|
-
return t ?
|
|
3181
|
+
var r = Jw(e);
|
|
3182
|
+
return t ? Yw(r) : r;
|
|
3183
3183
|
}
|
|
3184
3184
|
function ur(e, t) {
|
|
3185
3185
|
return typeof t === e;
|
|
3186
3186
|
}
|
|
3187
|
-
var re = ur.bind(null, "function"), Me = ur.bind(null, "string"), mt = ur.bind(null, "undefined"),
|
|
3187
|
+
var re = ur.bind(null, "function"), Me = ur.bind(null, "string"), mt = ur.bind(null, "undefined"), Xw = ur.bind(null, "boolean");
|
|
3188
3188
|
ur.bind(null, "symbol");
|
|
3189
|
-
function
|
|
3189
|
+
function tl(e) {
|
|
3190
3190
|
return e === null;
|
|
3191
3191
|
}
|
|
3192
|
-
function
|
|
3192
|
+
function qw(e) {
|
|
3193
3193
|
return Wr(e) === "number" && !isNaN(e);
|
|
3194
3194
|
}
|
|
3195
|
-
function
|
|
3195
|
+
function rl(e) {
|
|
3196
3196
|
return Wr(e) === "array";
|
|
3197
3197
|
}
|
|
3198
3198
|
function te(e) {
|
|
3199
|
-
if (!
|
|
3199
|
+
if (!Qw(e)) return !1;
|
|
3200
3200
|
for (var t = e; Object.getPrototypeOf(t) !== null; ) t = Object.getPrototypeOf(t);
|
|
3201
3201
|
return Object.getPrototypeOf(e) === t;
|
|
3202
3202
|
}
|
|
3203
|
-
function
|
|
3203
|
+
function Qw(e) {
|
|
3204
3204
|
return e && (typeof e == "object" || e !== null);
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3206
|
+
function eb(e) {
|
|
3207
3207
|
return re(e.constructor) ? e.constructor.name : null;
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3210
|
-
return e instanceof Error || Me(e.message) && e.constructor &&
|
|
3209
|
+
function tb(e) {
|
|
3210
|
+
return e instanceof Error || Me(e.message) && e.constructor && qw(e.constructor.stackTraceLimit);
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3213
|
-
if (typeof t != "object" ||
|
|
3212
|
+
function nl(e, t) {
|
|
3213
|
+
if (typeof t != "object" || tl(t)) return !1;
|
|
3214
3214
|
if (t instanceof e) return !0;
|
|
3215
3215
|
var r = Wr(new e(""));
|
|
3216
|
-
if (
|
|
3216
|
+
if (tb(t)) for (; t; ) {
|
|
3217
3217
|
if (Wr(t) === r) return !0;
|
|
3218
3218
|
t = Object.getPrototypeOf(t);
|
|
3219
3219
|
}
|
|
3220
3220
|
return !1;
|
|
3221
3221
|
}
|
|
3222
|
-
|
|
3223
|
-
|
|
3222
|
+
nl.bind(null, TypeError);
|
|
3223
|
+
nl.bind(null, SyntaxError);
|
|
3224
3224
|
function on(e, t) {
|
|
3225
3225
|
var r = e instanceof Element || e instanceof HTMLDocument;
|
|
3226
|
-
return r && t ?
|
|
3226
|
+
return r && t ? rb(e, t) : r;
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function rb(e, t) {
|
|
3229
3229
|
return t === void 0 && (t = ""), e && e.nodeName === t.toUpperCase();
|
|
3230
3230
|
}
|
|
3231
3231
|
function sn(e) {
|
|
@@ -3238,8 +3238,8 @@ sn(on, "form");
|
|
|
3238
3238
|
sn(on, "button");
|
|
3239
3239
|
sn(on, "input");
|
|
3240
3240
|
sn(on, "select");
|
|
3241
|
-
function
|
|
3242
|
-
return e ?
|
|
3241
|
+
function nb(e) {
|
|
3242
|
+
return e ? rl(e) ? e : [e] : [];
|
|
3243
3243
|
}
|
|
3244
3244
|
function _s(e) {
|
|
3245
3245
|
try {
|
|
@@ -3248,19 +3248,19 @@ function _s(e) {
|
|
|
3248
3248
|
return null;
|
|
3249
3249
|
}
|
|
3250
3250
|
}
|
|
3251
|
-
function
|
|
3251
|
+
function ab() {
|
|
3252
3252
|
if (Z) {
|
|
3253
3253
|
var e = navigator, t = e.languages;
|
|
3254
3254
|
return e.userLanguage || (t && t.length ? t[0] : e.language);
|
|
3255
3255
|
}
|
|
3256
3256
|
}
|
|
3257
|
-
function
|
|
3257
|
+
function ib() {
|
|
3258
3258
|
try {
|
|
3259
3259
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
3260
3260
|
} catch {
|
|
3261
3261
|
}
|
|
3262
3262
|
}
|
|
3263
|
-
function
|
|
3263
|
+
function ob(e) {
|
|
3264
3264
|
return function(t) {
|
|
3265
3265
|
for (var r, n = /* @__PURE__ */ Object.create(null), a = /([^&=]+)=?([^&]*)/g; r = a.exec(t); ) {
|
|
3266
3266
|
var i = _s(r[1]), o = _s(r[2]);
|
|
@@ -3268,7 +3268,7 @@ function ib(e) {
|
|
|
3268
3268
|
}
|
|
3269
3269
|
for (var c in n) {
|
|
3270
3270
|
var l = c.split("[");
|
|
3271
|
-
l.length > 1 && (
|
|
3271
|
+
l.length > 1 && (sb(n, l.map(function(f) {
|
|
3272
3272
|
return f.replace(/[?[\]\\ ]/g, "");
|
|
3273
3273
|
}), n[c]), delete n[c]);
|
|
3274
3274
|
}
|
|
@@ -3277,7 +3277,7 @@ function ib(e) {
|
|
|
3277
3277
|
return Z && window.location.search.substring(1);
|
|
3278
3278
|
}());
|
|
3279
3279
|
}
|
|
3280
|
-
function
|
|
3280
|
+
function sb(e, t, r) {
|
|
3281
3281
|
for (var n = t.length - 1, a = 0; a < n; ++a) {
|
|
3282
3282
|
var i = t[a];
|
|
3283
3283
|
if (i === "__proto__" || i === "constructor") break;
|
|
@@ -3292,7 +3292,7 @@ function cn() {
|
|
|
3292
3292
|
}
|
|
3293
3293
|
return e;
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3295
|
+
function cb(e, t) {
|
|
3296
3296
|
var r, n, a, i = null, o = 0, c = function() {
|
|
3297
3297
|
o = /* @__PURE__ */ new Date(), i = null, a = e.apply(r, n);
|
|
3298
3298
|
};
|
|
@@ -3345,14 +3345,14 @@ function A() {
|
|
|
3345
3345
|
return e;
|
|
3346
3346
|
}, A.apply(this, arguments);
|
|
3347
3347
|
}
|
|
3348
|
-
var Ne = "function", Re = "undefined",
|
|
3348
|
+
var Ne = "function", Re = "undefined", ub = "@@redux/" + Math.random().toString(36), Rs = /* @__PURE__ */ function() {
|
|
3349
3349
|
return typeof Symbol === Ne && Symbol.observable || "@@observable";
|
|
3350
3350
|
}(), Tr = " != " + Ne;
|
|
3351
|
-
function
|
|
3351
|
+
function al(e, t, r) {
|
|
3352
3352
|
var n;
|
|
3353
3353
|
if (typeof t === Ne && typeof r === Re && (r = t, t = void 0), typeof r !== Re) {
|
|
3354
3354
|
if (typeof r !== Ne) throw new Error("enhancer" + Tr);
|
|
3355
|
-
return r(
|
|
3355
|
+
return r(al)(e, t);
|
|
3356
3356
|
}
|
|
3357
3357
|
if (typeof e !== Ne) throw new Error("reducer" + Tr);
|
|
3358
3358
|
var a = e, i = t, o = [], c = o, l = !1;
|
|
@@ -3401,7 +3401,7 @@ function nl(e, t, r) {
|
|
|
3401
3401
|
}, h;
|
|
3402
3402
|
}, n;
|
|
3403
3403
|
}
|
|
3404
|
-
function
|
|
3404
|
+
function lb(e, t) {
|
|
3405
3405
|
var r = t && t.type;
|
|
3406
3406
|
return "action " + (r && r.toString() || "?") + "reducer " + e + " returns " + Re;
|
|
3407
3407
|
}
|
|
@@ -3415,7 +3415,7 @@ function Et() {
|
|
|
3415
3415
|
};
|
|
3416
3416
|
});
|
|
3417
3417
|
}
|
|
3418
|
-
function
|
|
3418
|
+
function fb() {
|
|
3419
3419
|
var e = arguments;
|
|
3420
3420
|
return function(t) {
|
|
3421
3421
|
return function(r, n, a) {
|
|
@@ -3435,7 +3435,7 @@ var Fe = rt + "anon_id", et = rt + "user_id", yt = rt + "user_traits", xe = "use
|
|
|
3435
3435
|
}, pluginReadyType: function(e) {
|
|
3436
3436
|
return "ready:" + e;
|
|
3437
3437
|
} }), Cs = /^utm_/, js = /^an_prop_/, As = /^an_trait_/;
|
|
3438
|
-
function
|
|
3438
|
+
function db(e) {
|
|
3439
3439
|
var t = e.storage.setItem;
|
|
3440
3440
|
return function(r) {
|
|
3441
3441
|
return function(n) {
|
|
@@ -3464,7 +3464,7 @@ function fb(e) {
|
|
|
3464
3464
|
};
|
|
3465
3465
|
};
|
|
3466
3466
|
}
|
|
3467
|
-
function
|
|
3467
|
+
function hb(e) {
|
|
3468
3468
|
return function(t, r) {
|
|
3469
3469
|
if (t === void 0 && (t = {}), r === void 0 && (r = {}), r.type === j.setItemEnd) {
|
|
3470
3470
|
if (r.key === Fe) return A({}, t, { anonymousId: r.value });
|
|
@@ -3488,7 +3488,7 @@ function Ls(e) {
|
|
|
3488
3488
|
var Da = function(e) {
|
|
3489
3489
|
return rt + "TEMP" + rt + e;
|
|
3490
3490
|
};
|
|
3491
|
-
function
|
|
3491
|
+
function vb(e) {
|
|
3492
3492
|
var t = e.storage, r = t.setItem, n = t.removeItem, a = t.getItem;
|
|
3493
3493
|
return function(i) {
|
|
3494
3494
|
return function(o) {
|
|
@@ -3512,19 +3512,19 @@ var Wt = {};
|
|
|
3512
3512
|
function xs(e, t) {
|
|
3513
3513
|
Wt[e] && re(Wt[e]) && (Wt[e](t), delete Wt[e]);
|
|
3514
3514
|
}
|
|
3515
|
-
function
|
|
3515
|
+
function il(e, t, r) {
|
|
3516
3516
|
return new Promise(function(n, a) {
|
|
3517
3517
|
return t() ? n(e) : r < 1 ? a(A({}, e, { queue: !0 })) : new Promise(function(i) {
|
|
3518
3518
|
return setTimeout(i, 10);
|
|
3519
3519
|
}).then(function(i) {
|
|
3520
|
-
return
|
|
3520
|
+
return il(e, t, r - 10).then(n, a);
|
|
3521
3521
|
});
|
|
3522
3522
|
});
|
|
3523
3523
|
}
|
|
3524
|
-
function
|
|
3524
|
+
function pb(e) {
|
|
3525
3525
|
return { abort: e };
|
|
3526
3526
|
}
|
|
3527
|
-
function
|
|
3527
|
+
function ol(e, t, r) {
|
|
3528
3528
|
var n = {}, a = t(), i = e.getState(), o = i.plugins, c = i.queue, l = i.user;
|
|
3529
3529
|
if (!i.context.offline && c && c.actions && c.actions.length) {
|
|
3530
3530
|
var f = c.actions.reduce(function(s, d, h) {
|
|
@@ -3539,7 +3539,7 @@ function il(e, t, r) {
|
|
|
3539
3539
|
return v.hasOwnProperty(_) && I[_] && I[_] !== v[_] && (O[_] = I[_]), O;
|
|
3540
3540
|
}, v);
|
|
3541
3541
|
}(d.payload, l), P = n[$.meta.rid];
|
|
3542
|
-
if (!P && (g = S({ payload: $, config: o[h].config, instance: r, abort:
|
|
3542
|
+
if (!P && (g = S({ payload: $, config: o[h].config, instance: r, abort: pb })) && te(g) && g.abort) return void (n[$.meta.rid] = !0);
|
|
3543
3543
|
if (!P) {
|
|
3544
3544
|
var b = m + ":" + h;
|
|
3545
3545
|
e.dispatch(A({}, $, { type: b, _: { called: b, from: "queueDrain" } }));
|
|
@@ -3577,7 +3577,7 @@ var ia = function(e) {
|
|
|
3577
3577
|
throw new Error(M.type + " action not cancellable. Remove abort in " + F);
|
|
3578
3578
|
};
|
|
3579
3579
|
}(P, _);
|
|
3580
|
-
return { payload:
|
|
3580
|
+
return { payload: mb(P), instance: g, config: I || {}, abort: C };
|
|
3581
3581
|
};
|
|
3582
3582
|
}(n, h), S = t.exact.reduce(function(g, $) {
|
|
3583
3583
|
var P = $.pluginName, b = $.methodName, v = !1;
|
|
@@ -3649,7 +3649,7 @@ var ia = function(e) {
|
|
|
3649
3649
|
if (!(s.match(wt) || s.match(/^registerPlugin/) || s.match(Ns) || s.match(Us) || s.match(/^params/) || s.match(/^userIdChanged/))) {
|
|
3650
3650
|
if (l.plugins.includes(s), $._ && $._.originalAction === s) return $;
|
|
3651
3651
|
var P = A({}, $, { _: { originalAction: $.type, called: $.type, from: "engineEnd" } });
|
|
3652
|
-
|
|
3652
|
+
sl($, t.exact.length) && !s.match(/End$/) && (P = A({}, P, { type: $.type + "Aborted" })), c.dispatch(P);
|
|
3653
3653
|
}
|
|
3654
3654
|
return $;
|
|
3655
3655
|
});
|
|
@@ -3679,7 +3679,7 @@ function sa(e, t) {
|
|
|
3679
3679
|
var r = e.abort;
|
|
3680
3680
|
return !!r && (r === !0 || zs(r, t) || r && zs(r.plugins, t));
|
|
3681
3681
|
}
|
|
3682
|
-
function
|
|
3682
|
+
function sl(e, t) {
|
|
3683
3683
|
var r = e.abort;
|
|
3684
3684
|
if (!r) return !1;
|
|
3685
3685
|
if (r === !0 || Me(r)) return !0;
|
|
@@ -3696,12 +3696,12 @@ function Hs(e) {
|
|
|
3696
3696
|
var t = e.match(/(.*):(.*)/);
|
|
3697
3697
|
return !!t && { method: t[1], name: t[2] };
|
|
3698
3698
|
}
|
|
3699
|
-
function
|
|
3699
|
+
function mb(e) {
|
|
3700
3700
|
return Object.keys(e).reduce(function(t, r) {
|
|
3701
3701
|
return r === "type" || (t[r] = te(e[r]) ? Object.assign({}, e[r]) : e[r]), t;
|
|
3702
3702
|
}, {});
|
|
3703
3703
|
}
|
|
3704
|
-
function
|
|
3704
|
+
function gb(e, t, r) {
|
|
3705
3705
|
var n = {};
|
|
3706
3706
|
return function(a) {
|
|
3707
3707
|
return function(i) {
|
|
@@ -3720,7 +3720,7 @@ function mb(e, t, r) {
|
|
|
3720
3720
|
return d[v];
|
|
3721
3721
|
}), S = [], g = [], $ = o.disabled, P = m.map(function(v) {
|
|
3722
3722
|
var I = v.loaded, O = v.name, _ = v.config;
|
|
3723
|
-
return
|
|
3723
|
+
return il(v, function() {
|
|
3724
3724
|
return I({ config: _ });
|
|
3725
3725
|
}, 1e4).then(function(C) {
|
|
3726
3726
|
return n[O] || (a.dispatch({ type: j.pluginReadyType(O), name: O, events: Object.keys(v).filter(function(M) {
|
|
@@ -3740,14 +3740,14 @@ function mb(e, t, r) {
|
|
|
3740
3740
|
}
|
|
3741
3741
|
var b = function() {
|
|
3742
3742
|
if (f !== j.bootstrap) return /^ready:([^:]*)$/.test(f) && setTimeout(function() {
|
|
3743
|
-
return
|
|
3743
|
+
return ol(a, t, e);
|
|
3744
3744
|
}, 0), Promise.resolve(function(v, I, O, _, C) {
|
|
3745
3745
|
try {
|
|
3746
3746
|
var M = re(I) ? I() : I, F = v.type, G = F.replace(wt, "");
|
|
3747
3747
|
if (v._ && v._.called) return Promise.resolve(v);
|
|
3748
3748
|
var L = O.getState(), N = (B = M, (V = L.plugins) === void 0 && (V = {}), (Te = v.options) === void 0 && (Te = {}), Object.keys(B).filter(function(p) {
|
|
3749
3749
|
var y = Te.plugins || {};
|
|
3750
|
-
return
|
|
3750
|
+
return Xw(y[p]) ? y[p] : y.all !== !1 && (!V[p] || V[p].enabled !== !1);
|
|
3751
3751
|
}).map(function(p) {
|
|
3752
3752
|
return B[p];
|
|
3753
3753
|
}));
|
|
@@ -3781,7 +3781,7 @@ function mb(e, t, r) {
|
|
|
3781
3781
|
return p;
|
|
3782
3782
|
}) : p;
|
|
3783
3783
|
}
|
|
3784
|
-
if (
|
|
3784
|
+
if (sl(p, z.length)) return p;
|
|
3785
3785
|
var E, x = function() {
|
|
3786
3786
|
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) {
|
|
3787
3787
|
E = U;
|
|
@@ -3806,7 +3806,7 @@ function mb(e, t, r) {
|
|
|
3806
3806
|
};
|
|
3807
3807
|
};
|
|
3808
3808
|
}
|
|
3809
|
-
function
|
|
3809
|
+
function yb(e) {
|
|
3810
3810
|
return function(t) {
|
|
3811
3811
|
return function(r) {
|
|
3812
3812
|
return function(n) {
|
|
@@ -3820,7 +3820,7 @@ function gb(e) {
|
|
|
3820
3820
|
};
|
|
3821
3821
|
};
|
|
3822
3822
|
}
|
|
3823
|
-
var
|
|
3823
|
+
var wb = function() {
|
|
3824
3824
|
var e = this;
|
|
3825
3825
|
this.before = [], this.after = [], this.addMiddleware = function(t, r) {
|
|
3826
3826
|
e[r] = e[r].concat(t);
|
|
@@ -3844,7 +3844,7 @@ var yb = function() {
|
|
|
3844
3844
|
};
|
|
3845
3845
|
};
|
|
3846
3846
|
};
|
|
3847
|
-
function
|
|
3847
|
+
function bb(e) {
|
|
3848
3848
|
return function(t, r) {
|
|
3849
3849
|
t === void 0 && (t = {});
|
|
3850
3850
|
var n = {};
|
|
@@ -3878,26 +3878,26 @@ function Ks(e, t, r) {
|
|
|
3878
3878
|
return n[a] = A({}, r[a], { enabled: t }), n;
|
|
3879
3879
|
}, r);
|
|
3880
3880
|
}
|
|
3881
|
-
function
|
|
3881
|
+
function cl(e) {
|
|
3882
3882
|
try {
|
|
3883
3883
|
return JSON.parse(JSON.stringify(e));
|
|
3884
3884
|
} catch {
|
|
3885
3885
|
}
|
|
3886
3886
|
return e;
|
|
3887
3887
|
}
|
|
3888
|
-
var
|
|
3889
|
-
function
|
|
3890
|
-
e === void 0 && (e =
|
|
3888
|
+
var Sb = { last: {}, history: [] };
|
|
3889
|
+
function Ib(e, t) {
|
|
3890
|
+
e === void 0 && (e = Sb);
|
|
3891
3891
|
var r = t.options, n = t.meta;
|
|
3892
3892
|
if (t.type === j.track) {
|
|
3893
|
-
var a =
|
|
3893
|
+
var a = cl(A({ event: t.event, properties: t.properties }, Object.keys(r).length && { options: r }, { meta: n }));
|
|
3894
3894
|
return A({}, e, { last: a, history: e.history.concat(a) });
|
|
3895
3895
|
}
|
|
3896
3896
|
return e;
|
|
3897
3897
|
}
|
|
3898
|
-
var
|
|
3899
|
-
function
|
|
3900
|
-
e === void 0 && (e =
|
|
3898
|
+
var $b = { actions: [] };
|
|
3899
|
+
function kb(e, t) {
|
|
3900
|
+
e === void 0 && (e = $b);
|
|
3901
3901
|
var r = t.payload;
|
|
3902
3902
|
switch (t.type) {
|
|
3903
3903
|
case "queue":
|
|
@@ -3909,12 +3909,12 @@ function $b(e, t) {
|
|
|
3909
3909
|
return e;
|
|
3910
3910
|
}
|
|
3911
3911
|
}
|
|
3912
|
-
var
|
|
3913
|
-
function
|
|
3912
|
+
var ul = /#.*$/;
|
|
3913
|
+
function Pb(e) {
|
|
3914
3914
|
var t = /(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(e);
|
|
3915
|
-
return "/" + (t && t[3] ? t[3].split("?")[0].replace(
|
|
3915
|
+
return "/" + (t && t[3] ? t[3].split("?")[0].replace(ul, "") : "");
|
|
3916
3916
|
}
|
|
3917
|
-
var
|
|
3917
|
+
var ll, fl, dl, hl, Tb = function(e) {
|
|
3918
3918
|
if (e === void 0 && (e = {}), !Z) return e;
|
|
3919
3919
|
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) {
|
|
3920
3920
|
var h = function() {
|
|
@@ -3922,26 +3922,26 @@ var ul, ll, fl, dl, Pb = function(e) {
|
|
|
3922
3922
|
for (var m, S = document.getElementsByTagName("link"), g = 0; m = S[g]; g++) if (m.getAttribute("rel") === "canonical") return m.getAttribute("href");
|
|
3923
3923
|
}
|
|
3924
3924
|
}();
|
|
3925
|
-
return h ? h.match(/\?/) ? h : h + d : window.location.href.replace(
|
|
3926
|
-
}(f), s = { title: r, url: u, path:
|
|
3925
|
+
return h ? h.match(/\?/) ? h : h + d : window.location.href.replace(ul, "");
|
|
3926
|
+
}(f), s = { title: r, url: u, path: Pb(u), hash: l, search: f, width: o, height: c };
|
|
3927
3927
|
return n && n !== "" && (s.referrer = n), A({}, s, e);
|
|
3928
|
-
},
|
|
3929
|
-
function
|
|
3930
|
-
e === void 0 && (e =
|
|
3928
|
+
}, Eb = { last: {}, history: [] };
|
|
3929
|
+
function Ob(e, t) {
|
|
3930
|
+
e === void 0 && (e = Eb);
|
|
3931
3931
|
var r = t.options;
|
|
3932
3932
|
if (t.type === j.page) {
|
|
3933
|
-
var n =
|
|
3933
|
+
var n = cl(A({ properties: t.properties, meta: t.meta }, Object.keys(r).length && { options: r }));
|
|
3934
3934
|
return A({}, e, { last: n, history: e.history.concat(n) });
|
|
3935
3935
|
}
|
|
3936
3936
|
return e;
|
|
3937
3937
|
}
|
|
3938
|
-
|
|
3938
|
+
ll = function() {
|
|
3939
3939
|
if (!Z) return !1;
|
|
3940
3940
|
var e = navigator.appVersion;
|
|
3941
3941
|
return ~e.indexOf("Win") ? "Windows" : ~e.indexOf("Mac") ? "MacOS" : ~e.indexOf("X11") ? "UNIX" : ~e.indexOf("Linux") ? "Linux" : "Unknown OS";
|
|
3942
|
-
}(),
|
|
3943
|
-
var Gs = { initialized: !1, sessionId: cn(), app: null, version: null, debug: !1, offline: !!Z && !navigator.onLine, os: { name:
|
|
3944
|
-
function
|
|
3942
|
+
}(), fl = Z ? document.referrer : null, dl = ab(), hl = ib();
|
|
3943
|
+
var Gs = { initialized: !1, sessionId: cn(), app: null, version: null, debug: !1, offline: !!Z && !navigator.onLine, os: { name: ll }, userAgent: Z ? navigator.userAgent : "node", library: { name: "analytics", version: "0.12.13" }, timezone: hl, locale: dl, campaign: {}, referrer: fl };
|
|
3944
|
+
function _b(e, t) {
|
|
3945
3945
|
e === void 0 && (e = Gs);
|
|
3946
3946
|
var r = e.initialized, n = t.campaign;
|
|
3947
3947
|
switch (t.type) {
|
|
@@ -3955,8 +3955,8 @@ function Ob(e, t) {
|
|
|
3955
3955
|
return r ? e : A({}, Gs, e, { initialized: !0 });
|
|
3956
3956
|
}
|
|
3957
3957
|
}
|
|
3958
|
-
var
|
|
3959
|
-
function
|
|
3958
|
+
var Rb = ["plugins", "reducers", "storage"];
|
|
3959
|
+
function Cb(e, t, r) {
|
|
3960
3960
|
if (Z) {
|
|
3961
3961
|
var n = window[(r ? "add" : "remove") + "EventListener"];
|
|
3962
3962
|
e.split(" ").forEach(function(a) {
|
|
@@ -3964,15 +3964,15 @@ function Rb(e, t, r) {
|
|
|
3964
3964
|
});
|
|
3965
3965
|
}
|
|
3966
3966
|
}
|
|
3967
|
-
function
|
|
3968
|
-
var t =
|
|
3967
|
+
function jb(e) {
|
|
3968
|
+
var t = Cb.bind(null, "online offline", function(r) {
|
|
3969
3969
|
return Promise.resolve(!navigator.onLine).then(e);
|
|
3970
3970
|
});
|
|
3971
3971
|
return t(!0), function(r) {
|
|
3972
3972
|
return t(!1);
|
|
3973
3973
|
};
|
|
3974
3974
|
}
|
|
3975
|
-
function
|
|
3975
|
+
function vl() {
|
|
3976
3976
|
return at("analytics", []), function(e) {
|
|
3977
3977
|
return function(t, r, n) {
|
|
3978
3978
|
var a = e(t, r, n), i = a.dispatch;
|
|
@@ -3984,11 +3984,11 @@ function hl() {
|
|
|
3984
3984
|
}
|
|
3985
3985
|
function Ws(e) {
|
|
3986
3986
|
return function() {
|
|
3987
|
-
return Et(Et.apply(null, arguments),
|
|
3987
|
+
return Et(Et.apply(null, arguments), vl());
|
|
3988
3988
|
};
|
|
3989
3989
|
}
|
|
3990
3990
|
function ca(e) {
|
|
3991
|
-
return e ?
|
|
3991
|
+
return e ? rl(e) ? e : [e] : [];
|
|
3992
3992
|
}
|
|
3993
3993
|
function Vs(e, t, r) {
|
|
3994
3994
|
e === void 0 && (e = {});
|
|
@@ -4003,7 +4003,7 @@ function Vs(e, t, r) {
|
|
|
4003
4003
|
a && a(o), n(o);
|
|
4004
4004
|
})), A({}, e, { rid: i, ts: (/* @__PURE__ */ new Date()).getTime() }, t ? { hasCallback: !0 } : {});
|
|
4005
4005
|
}
|
|
4006
|
-
function
|
|
4006
|
+
function Ab(e) {
|
|
4007
4007
|
e === void 0 && (e = {});
|
|
4008
4008
|
var t = e.reducers || {}, r = e.initialUser || {}, n = (e.plugins || []).reduce(function(p, y) {
|
|
4009
4009
|
if (re(y)) return p.middlewares = p.middlewares.concat(y), p;
|
|
@@ -4034,9 +4034,9 @@ function jb(e) {
|
|
|
4034
4034
|
return !Na.includes(p);
|
|
4035
4035
|
})), f = Array.from(l).sort(), u = function() {
|
|
4036
4036
|
return o;
|
|
4037
|
-
}, s = new
|
|
4037
|
+
}, s = new wb(), d = s.addMiddleware, h = s.removeMiddleware, m = s.dynamicMiddlewares, S = function() {
|
|
4038
4038
|
throw new Error("Abort disabled inListener");
|
|
4039
|
-
}, g =
|
|
4039
|
+
}, g = ob(), $ = Ls(a), P = A({}, $, r, g.an_uid ? { userId: g.an_uid } : {}, g.an_aid ? { anonymousId: g.an_aid } : {});
|
|
4040
4040
|
P.anonymousId || (P.anonymousId = cn());
|
|
4041
4041
|
var b = A({ enable: function(p, y) {
|
|
4042
4042
|
return new Promise(function(E) {
|
|
@@ -4072,7 +4072,7 @@ function jb(e) {
|
|
|
4072
4072
|
try {
|
|
4073
4073
|
var x = te(p) ? p : {}, U = te(y) ? y : {};
|
|
4074
4074
|
return Promise.resolve(new Promise(function(D) {
|
|
4075
|
-
R.dispatch({ type: j.pageStart, properties:
|
|
4075
|
+
R.dispatch({ type: j.pageStart, properties: Tb(x), options: U, userId: i(xe, I, x), anonymousId: i(gt, I, x) }, D, [p, y, E]);
|
|
4076
4076
|
}));
|
|
4077
4077
|
} catch (D) {
|
|
4078
4078
|
return Promise.reject(D);
|
|
@@ -4149,21 +4149,21 @@ function jb(e) {
|
|
|
4149
4149
|
return E.meta || (E.meta = Vs()), y(E);
|
|
4150
4150
|
};
|
|
4151
4151
|
};
|
|
4152
|
-
}, m(Er),
|
|
4152
|
+
}, m(Er), gb(I, u, { all: f, plugins: c }), yb(a), db(I), vb(I), m(Or)]), _ = { context: _b, user: hb(a), page: Ob, track: Ib, plugins: bb(u), queue: kb }, C = Et, M = Et;
|
|
4153
4153
|
if (Z && e.debug) {
|
|
4154
4154
|
var F = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
|
|
4155
4155
|
F && (C = F({ trace: !0, traceLimit: 25 })), M = function() {
|
|
4156
|
-
return arguments.length === 0 ?
|
|
4156
|
+
return arguments.length === 0 ? vl() : te(typeof arguments[0]) ? Ws() : Ws().apply(null, arguments);
|
|
4157
4157
|
};
|
|
4158
4158
|
}
|
|
4159
4159
|
var G, L = function(p) {
|
|
4160
4160
|
return Object.keys(p).reduce(function(y, E) {
|
|
4161
|
-
return
|
|
4161
|
+
return Rb.includes(E) || (y[E] = p[E]), y;
|
|
4162
4162
|
}, {});
|
|
4163
4163
|
}(e), N = n.pluginsArray.reduce(function(p, y) {
|
|
4164
4164
|
var E = y.name, x = y.config, U = y.loaded, D = n.pluginEnabled[E];
|
|
4165
4165
|
return p[E] = { enabled: D, initialized: !!D && !y.initialize, loaded: !!U({ config: x }), config: x }, p;
|
|
4166
|
-
}, {}), z = { context: L, user: P, plugins: N }, R =
|
|
4166
|
+
}, {}), z = { context: L, user: P, plugins: N }, R = al(function(p) {
|
|
4167
4167
|
for (var y = Object.keys(p), E = {}, x = 0; x < y.length; x++) {
|
|
4168
4168
|
var U = y[x];
|
|
4169
4169
|
typeof p[U] === Ne && (E[U] = p[U]);
|
|
@@ -4173,7 +4173,7 @@ function jb(e) {
|
|
|
4173
4173
|
(function(w) {
|
|
4174
4174
|
Object.keys(w).forEach(function(k) {
|
|
4175
4175
|
var T = w[k];
|
|
4176
|
-
if (typeof T(void 0, { type: "@@redux/INIT" }) === Re || typeof T(void 0, { type:
|
|
4176
|
+
if (typeof T(void 0, { type: "@@redux/INIT" }) === Re || typeof T(void 0, { type: ub }) === Re) throw new Error("reducer " + k + " " + Re);
|
|
4177
4177
|
});
|
|
4178
4178
|
})(E);
|
|
4179
4179
|
} catch (w) {
|
|
@@ -4184,14 +4184,14 @@ function jb(e) {
|
|
|
4184
4184
|
for (var T = !1, H = {}, ee = 0; ee < W.length; ee++) {
|
|
4185
4185
|
var Ae = W[ee], Ai = w[Ae], fn = (0, E[Ae])(Ai, k);
|
|
4186
4186
|
if (typeof fn === Re) {
|
|
4187
|
-
var
|
|
4188
|
-
throw new Error(
|
|
4187
|
+
var El = lb(Ae, k);
|
|
4188
|
+
throw new Error(El);
|
|
4189
4189
|
}
|
|
4190
4190
|
H[Ae] = fn, T = T || fn !== Ai;
|
|
4191
4191
|
}
|
|
4192
4192
|
return T ? H : w;
|
|
4193
4193
|
};
|
|
4194
|
-
}(A({}, _, t)), z, M(C(
|
|
4194
|
+
}(A({}, _, t)), z, M(C(fb.apply(void 0, O))));
|
|
4195
4195
|
R.dispatch = (G = R.dispatch, function(p, y, E) {
|
|
4196
4196
|
var x = A({}, p, { meta: Vs(p.meta, y, ca(E)) });
|
|
4197
4197
|
return G.apply(null, [x]);
|
|
@@ -4206,23 +4206,23 @@ function jb(e) {
|
|
|
4206
4206
|
return R.dispatch({ type: j.registerPlugins, plugins: B, enabled: n.pluginEnabled }), n.pluginsArray.map(function(p, y) {
|
|
4207
4207
|
var E = p.bootstrap, x = p.config, U = p.name;
|
|
4208
4208
|
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: V, disabled: Te });
|
|
4209
|
-
}),
|
|
4209
|
+
}), jb(function(p) {
|
|
4210
4210
|
R.dispatch({ type: p ? j.offline : j.online });
|
|
4211
4211
|
}), function(p, y, E) {
|
|
4212
4212
|
setInterval(function() {
|
|
4213
|
-
return
|
|
4213
|
+
return ol(p, y, E);
|
|
4214
4214
|
}, 3e3);
|
|
4215
4215
|
}(R, u, I), I;
|
|
4216
4216
|
}
|
|
4217
|
-
var Er = "before", Or = "after", qt = "cookie", Ye =
|
|
4218
|
-
function
|
|
4217
|
+
var Er = "before", Or = "after", qt = "cookie", Ye = gl(), pl = un, Lb = un;
|
|
4218
|
+
function ml(e) {
|
|
4219
4219
|
return Ye ? un(e, "", -1) : jt(e);
|
|
4220
4220
|
}
|
|
4221
|
-
function
|
|
4221
|
+
function gl() {
|
|
4222
4222
|
if (Ye !== void 0) return Ye;
|
|
4223
4223
|
var e = "cookiecookie";
|
|
4224
4224
|
try {
|
|
4225
|
-
un(e, e), Ye = document.cookie.indexOf(e) !== -1,
|
|
4225
|
+
un(e, e), Ye = document.cookie.indexOf(e) !== -1, ml(e);
|
|
4226
4226
|
} catch {
|
|
4227
4227
|
Ye = !1;
|
|
4228
4228
|
}
|
|
@@ -4234,11 +4234,11 @@ function un(e, t, r, n, a, i) {
|
|
|
4234
4234
|
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]);
|
|
4235
4235
|
}
|
|
4236
4236
|
}
|
|
4237
|
-
var Qt = "localStorage",
|
|
4237
|
+
var Qt = "localStorage", xb = Ti.bind(null, "localStorage");
|
|
4238
4238
|
At("localStorage", "getItem", nt);
|
|
4239
4239
|
At("localStorage", "setItem", at);
|
|
4240
4240
|
At("localStorage", "removeItem", jt);
|
|
4241
|
-
var er = "sessionStorage",
|
|
4241
|
+
var er = "sessionStorage", Ub = Ti.bind(null, "sessionStorage");
|
|
4242
4242
|
At("sessionStorage", "getItem", nt);
|
|
4243
4243
|
At("sessionStorage", "setItem", at);
|
|
4244
4244
|
At("sessionStorage", "removeItem", jt);
|
|
@@ -4253,12 +4253,12 @@ function bt(e) {
|
|
|
4253
4253
|
}
|
|
4254
4254
|
if (t !== null && t !== "") return t;
|
|
4255
4255
|
}
|
|
4256
|
-
var
|
|
4257
|
-
function
|
|
4256
|
+
var Nb = xb(), Db = Ub(), Mb = gl();
|
|
4257
|
+
function yl(e, t) {
|
|
4258
4258
|
if (e) {
|
|
4259
4259
|
var r = Ei(t), n = !Ci(r), a = Oi(r) ? bt(localStorage.getItem(e)) : void 0;
|
|
4260
4260
|
if (n && !mt(a)) return a;
|
|
4261
|
-
var i = _i(r) ? bt(
|
|
4261
|
+
var i = _i(r) ? bt(pl(e)) : void 0;
|
|
4262
4262
|
if (n && i) return i;
|
|
4263
4263
|
var o = Ri(r) ? bt(sessionStorage.getItem(e)) : void 0;
|
|
4264
4264
|
if (n && o) return o;
|
|
@@ -4266,41 +4266,41 @@ function gl(e, t) {
|
|
|
4266
4266
|
return n ? c : { localStorage: a, sessionStorage: o, cookie: i, global: c };
|
|
4267
4267
|
}
|
|
4268
4268
|
}
|
|
4269
|
-
function
|
|
4269
|
+
function Fb(e, t, r) {
|
|
4270
4270
|
if (e && !mt(t)) {
|
|
4271
4271
|
var n = {}, a = Ei(r), i = JSON.stringify(t), o = !Ci(a);
|
|
4272
|
-
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(
|
|
4272
|
+
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(pl(e))), Lb(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);
|
|
4273
4273
|
}
|
|
4274
4274
|
}
|
|
4275
|
-
function
|
|
4275
|
+
function zb(e, t) {
|
|
4276
4276
|
if (e) {
|
|
4277
|
-
var r = Ei(t), n =
|
|
4278
|
-
return !mt(n.localStorage) && Oi(r) && (localStorage.removeItem(e), a[Qt] = n.localStorage), !mt(n.cookie) && _i(r) && (
|
|
4277
|
+
var r = Ei(t), n = yl(e, Qu), a = {};
|
|
4278
|
+
return !mt(n.localStorage) && Oi(r) && (localStorage.removeItem(e), a[Qt] = n.localStorage), !mt(n.cookie) && _i(r) && (ml(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;
|
|
4279
4279
|
}
|
|
4280
4280
|
}
|
|
4281
4281
|
function Ei(e) {
|
|
4282
|
-
return e ? Me(e) ? e : e.storage :
|
|
4282
|
+
return e ? Me(e) ? e : e.storage : qu;
|
|
4283
4283
|
}
|
|
4284
4284
|
function Oi(e) {
|
|
4285
|
-
return
|
|
4285
|
+
return Nb && ln(e, Qt);
|
|
4286
4286
|
}
|
|
4287
4287
|
function _i(e) {
|
|
4288
|
-
return
|
|
4288
|
+
return Mb && ln(e, qt);
|
|
4289
4289
|
}
|
|
4290
4290
|
function Ri(e) {
|
|
4291
|
-
return
|
|
4291
|
+
return Db && ln(e, er);
|
|
4292
4292
|
}
|
|
4293
4293
|
function Ci(e) {
|
|
4294
|
-
return e ===
|
|
4294
|
+
return e === Qu || e === "all";
|
|
4295
4295
|
}
|
|
4296
4296
|
function ln(e, t) {
|
|
4297
|
-
return e ===
|
|
4297
|
+
return e === qu || e === t || Ci(e);
|
|
4298
4298
|
}
|
|
4299
4299
|
function _r(e, t, r) {
|
|
4300
4300
|
return { location: e, current: t, previous: r };
|
|
4301
4301
|
}
|
|
4302
|
-
var
|
|
4303
|
-
function
|
|
4302
|
+
var Hb = { setItem: Fb, getItem: yl, removeItem: zb };
|
|
4303
|
+
function Bb(e, t, r) {
|
|
4304
4304
|
return t in e ? Object.defineProperty(e, t, {
|
|
4305
4305
|
value: r,
|
|
4306
4306
|
enumerable: !0,
|
|
@@ -4322,20 +4322,20 @@ function Ys(e) {
|
|
|
4322
4322
|
for (var t = 1; t < arguments.length; t++) {
|
|
4323
4323
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
4324
4324
|
t % 2 ? Zs(Object(r), !0).forEach(function(n) {
|
|
4325
|
-
|
|
4325
|
+
Bb(e, n, r[n]);
|
|
4326
4326
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Zs(Object(r)).forEach(function(n) {
|
|
4327
4327
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
4328
4328
|
});
|
|
4329
4329
|
}
|
|
4330
4330
|
return e;
|
|
4331
4331
|
}
|
|
4332
|
-
function
|
|
4332
|
+
function Kb() {
|
|
4333
4333
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = {
|
|
4334
|
-
storage:
|
|
4334
|
+
storage: Hb
|
|
4335
4335
|
};
|
|
4336
|
-
return
|
|
4336
|
+
return Ab(Ys(Ys({}, t), e));
|
|
4337
4337
|
}
|
|
4338
|
-
function
|
|
4338
|
+
function Gb(e, t) {
|
|
4339
4339
|
t = t || {};
|
|
4340
4340
|
var r, n, a = [], i = t.max || 1 / 0;
|
|
4341
4341
|
function o() {
|
|
@@ -4357,7 +4357,7 @@ function Kb(e, t) {
|
|
|
4357
4357
|
}
|
|
4358
4358
|
};
|
|
4359
4359
|
}
|
|
4360
|
-
function
|
|
4360
|
+
function Wb(e) {
|
|
4361
4361
|
if (typeof window > "u") return;
|
|
4362
4362
|
const { addEventListener: t, history: r, location: n } = window;
|
|
4363
4363
|
let a = n.pathname;
|
|
@@ -4367,30 +4367,30 @@ function Gb(e) {
|
|
|
4367
4367
|
const c = r[o];
|
|
4368
4368
|
r[o] = function(...l) {
|
|
4369
4369
|
var s;
|
|
4370
|
-
const f = ((s = l[2]) == null ? void 0 : s.toString()) || "", u =
|
|
4370
|
+
const f = ((s = l[2]) == null ? void 0 : s.toString()) || "", u = Zb(f);
|
|
4371
4371
|
return a !== u && (a = u, setTimeout(() => e(f), 0)), c.apply(r, l);
|
|
4372
4372
|
};
|
|
4373
4373
|
});
|
|
4374
4374
|
}
|
|
4375
|
-
function
|
|
4375
|
+
function Vb(e, t) {
|
|
4376
4376
|
const r = e.indexOf(t);
|
|
4377
4377
|
return r > -1 ? e.slice(0, r) : e;
|
|
4378
4378
|
}
|
|
4379
|
-
function
|
|
4380
|
-
return ["#", "?"].forEach((t) => e =
|
|
4379
|
+
function Zb(e) {
|
|
4380
|
+
return ["#", "?"].forEach((t) => e = Vb(e, t)), e;
|
|
4381
4381
|
}
|
|
4382
|
-
function
|
|
4383
|
-
|
|
4382
|
+
function Yb() {
|
|
4383
|
+
Wb(() => {
|
|
4384
4384
|
_e.page();
|
|
4385
4385
|
});
|
|
4386
4386
|
}
|
|
4387
|
-
function
|
|
4387
|
+
function Jb(e) {
|
|
4388
4388
|
if (e === void 0 && (e = {}), !Z) return Ua;
|
|
4389
4389
|
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);
|
|
4390
4390
|
if (!d.length) return Ua;
|
|
4391
4391
|
var h = d.map(function(S) {
|
|
4392
4392
|
return Number(S);
|
|
4393
|
-
}), m =
|
|
4393
|
+
}), m = cb(function() {
|
|
4394
4394
|
var S = Xs(), g = function(L, N) {
|
|
4395
4395
|
return N.map(function(z) {
|
|
4396
4396
|
return z === 100 ? L - 5 : L * (z / 100);
|
|
@@ -4422,11 +4422,11 @@ function Yb(e) {
|
|
|
4422
4422
|
function Ma() {
|
|
4423
4423
|
return Z ? document.body.scrollTop || document.documentElement.scrollTop : 0;
|
|
4424
4424
|
}
|
|
4425
|
-
function
|
|
4425
|
+
function Xb() {
|
|
4426
4426
|
return Z ? window.innerHeight || document.documentElement.clientHeight : 0;
|
|
4427
4427
|
}
|
|
4428
4428
|
function Js() {
|
|
4429
|
-
return Math.round(Ma() +
|
|
4429
|
+
return Math.round(Ma() + Xb());
|
|
4430
4430
|
}
|
|
4431
4431
|
function Xs() {
|
|
4432
4432
|
if (!Z) return 0;
|
|
@@ -4437,7 +4437,7 @@ function Rr(e, t) {
|
|
|
4437
4437
|
return Math.round(e / t * 100);
|
|
4438
4438
|
}
|
|
4439
4439
|
var qs = "EventListener";
|
|
4440
|
-
function
|
|
4440
|
+
function qb(e) {
|
|
4441
4441
|
return function(t, r, n, a) {
|
|
4442
4442
|
var i = n || Ua, o = a || !1;
|
|
4443
4443
|
if (!Z) return i;
|
|
@@ -4449,7 +4449,7 @@ function Xb(e) {
|
|
|
4449
4449
|
s && (f = []);
|
|
4450
4450
|
for (var d = s ? "add" + qs : "remove" + qs, h = 0; h < l.length; h++) {
|
|
4451
4451
|
var m = l[h];
|
|
4452
|
-
f[h] = s ? o && o.once ?
|
|
4452
|
+
f[h] = s ? o && o.once ? Qb(i) : i : f[h] || i;
|
|
4453
4453
|
for (var S = 0; S < c.length; S++) m[d] ? m["on" + c[S]] = s ? f[h] : null : m[d](c[S], f[h], o);
|
|
4454
4454
|
}
|
|
4455
4455
|
return u.bind(null, !s);
|
|
@@ -4465,30 +4465,30 @@ function Vr(e, t) {
|
|
|
4465
4465
|
for (var n = [], a = e.length >>> 0; a--; ) n[a] = e[a];
|
|
4466
4466
|
return n;
|
|
4467
4467
|
}
|
|
4468
|
-
var i =
|
|
4468
|
+
var i = nb(e);
|
|
4469
4469
|
return t ? i.map(function(o) {
|
|
4470
4470
|
return Me(o) ? Vr(o, !0) : o;
|
|
4471
4471
|
}).flat() : i;
|
|
4472
4472
|
}
|
|
4473
|
-
function
|
|
4473
|
+
function Qb(e, t) {
|
|
4474
4474
|
var r;
|
|
4475
4475
|
return function() {
|
|
4476
4476
|
return e && (r = e.apply(this, arguments), e = null), r;
|
|
4477
4477
|
};
|
|
4478
4478
|
}
|
|
4479
|
-
var ua =
|
|
4480
|
-
function
|
|
4479
|
+
var ua = qb("Event");
|
|
4480
|
+
function wl(e, t) {
|
|
4481
4481
|
return Z && re(window[e]) ? (r = window[e], n = t, (a = window) === void 0 && (a = null), re(r) ? function() {
|
|
4482
4482
|
r.apply(a, arguments), n.apply(a, arguments);
|
|
4483
4483
|
} : n) : window[e] = t;
|
|
4484
4484
|
var r, n, a;
|
|
4485
4485
|
}
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
var
|
|
4489
|
-
function
|
|
4490
|
-
if (
|
|
4491
|
-
var t =
|
|
4486
|
+
wl.bind(null, "onerror");
|
|
4487
|
+
wl.bind(null, "onload");
|
|
4488
|
+
var bl = typeof window > "u", Qs = "hidden";
|
|
4489
|
+
function eS(e) {
|
|
4490
|
+
if (bl) return !1;
|
|
4491
|
+
var t = tS(), r = "".concat(t.replace(/[H|h]idden/, ""), "visibilitychange"), n = function() {
|
|
4492
4492
|
return e(!!document[t]);
|
|
4493
4493
|
}, a = function() {
|
|
4494
4494
|
return document.addEventListener(r, n);
|
|
@@ -4497,15 +4497,15 @@ function Qb(e) {
|
|
|
4497
4497
|
return document.removeEventListener(r, n), a;
|
|
4498
4498
|
};
|
|
4499
4499
|
}
|
|
4500
|
-
function
|
|
4500
|
+
function tS() {
|
|
4501
4501
|
var e = ["webkit", "moz", "ms", "o"];
|
|
4502
|
-
return
|
|
4502
|
+
return bl || Qs in document ? Qs : e.reduce(function(t, r) {
|
|
4503
4503
|
var n = r + "Hidden";
|
|
4504
4504
|
return !t && n in document ? n : t;
|
|
4505
4505
|
}, null);
|
|
4506
4506
|
}
|
|
4507
|
-
var
|
|
4508
|
-
function
|
|
4507
|
+
var rS = ["mousemove", "mousedown", "touchmove", "touchstart", "touchend", "keydown"];
|
|
4508
|
+
function nS(e, t) {
|
|
4509
4509
|
t === void 0 && (t = {});
|
|
4510
4510
|
var r = /* @__PURE__ */ function(o, c) {
|
|
4511
4511
|
var l = this, f = !1;
|
|
@@ -4516,10 +4516,10 @@ function rS(e, t) {
|
|
|
4516
4516
|
};
|
|
4517
4517
|
}(e, t.throttle || 1e4), n = [];
|
|
4518
4518
|
function a() {
|
|
4519
|
-
var o =
|
|
4519
|
+
var o = eS(function(c) {
|
|
4520
4520
|
c || r({ type: "tabVisible" });
|
|
4521
4521
|
});
|
|
4522
|
-
return n = [o].concat(
|
|
4522
|
+
return n = [o].concat(rS.map(function(c) {
|
|
4523
4523
|
return ua(document, c, r);
|
|
4524
4524
|
})).concat(ua(window, "load", r)).concat(ua(window, "scroll", r, { capture: !0, passive: !0 })), i;
|
|
4525
4525
|
}
|
|
@@ -4532,7 +4532,7 @@ function rS(e, t) {
|
|
|
4532
4532
|
return i(), a;
|
|
4533
4533
|
};
|
|
4534
4534
|
}
|
|
4535
|
-
function
|
|
4535
|
+
function aS(e) {
|
|
4536
4536
|
var t, r, n = e.onIdle, a = e.onWakeUp, i = e.onHeartbeat, o = e.timeout, c = o === void 0 ? 1e4 : o, l = e.throttle, f = l === void 0 ? 2e3 : l, u = !1, s = !1, d = /* @__PURE__ */ new Date(), h = function() {
|
|
4537
4537
|
return clearTimeout(t);
|
|
4538
4538
|
};
|
|
@@ -4541,7 +4541,7 @@ function nS(e) {
|
|
|
4541
4541
|
u = !0, n && (r = /* @__PURE__ */ new Date(), n(Ht(d), g));
|
|
4542
4542
|
}, c);
|
|
4543
4543
|
}
|
|
4544
|
-
var S =
|
|
4544
|
+
var S = nS(m, { throttle: f });
|
|
4545
4545
|
return { disable: function() {
|
|
4546
4546
|
s = !0, u = !1, h();
|
|
4547
4547
|
var g = S();
|
|
@@ -4556,7 +4556,7 @@ function Ht(e, t) {
|
|
|
4556
4556
|
return t ? 0 : Math.round((/* @__PURE__ */ new Date() - e) / 1e3);
|
|
4557
4557
|
}
|
|
4558
4558
|
const ec = 5e3;
|
|
4559
|
-
class
|
|
4559
|
+
class iS {
|
|
4560
4560
|
constructor(t) {
|
|
4561
4561
|
oe(this, "element");
|
|
4562
4562
|
oe(this, "isInViewport", !1);
|
|
@@ -4578,11 +4578,11 @@ class aS {
|
|
|
4578
4578
|
{
|
|
4579
4579
|
threshold: 0
|
|
4580
4580
|
}
|
|
4581
|
-
), this.observer.observe(this.element),
|
|
4581
|
+
), this.observer.observe(this.element), aS({
|
|
4582
4582
|
onIdle: (r) => this.handleAwake(!1, r),
|
|
4583
4583
|
onWakeUp: (r) => this.handleAwake(!0, r),
|
|
4584
4584
|
timeout: ec
|
|
4585
|
-
}),
|
|
4585
|
+
}), Jb({
|
|
4586
4586
|
25: this.handleScroll.bind(this),
|
|
4587
4587
|
50: this.handleScroll.bind(this),
|
|
4588
4588
|
75: this.handleScroll.bind(this),
|
|
@@ -4618,25 +4618,25 @@ class aS {
|
|
|
4618
4618
|
}
|
|
4619
4619
|
}
|
|
4620
4620
|
const tc = "sesamy_session_id";
|
|
4621
|
-
function
|
|
4621
|
+
function oS() {
|
|
4622
4622
|
let e = sessionStorage.getItem(tc);
|
|
4623
4623
|
return e || (e = Math.random().toString(36).slice(2, 9), sessionStorage.setItem(tc, e)), e;
|
|
4624
4624
|
}
|
|
4625
|
-
let
|
|
4626
|
-
const
|
|
4627
|
-
function
|
|
4625
|
+
let Sl = !1, Fa, rc, Zr;
|
|
4626
|
+
const Il = /* @__PURE__ */ new Map();
|
|
4627
|
+
function sS({ clientId: e, enabled: t = !0, environment: r }) {
|
|
4628
4628
|
if (Fa = e, rc = t, Zr = `${Ue("logs", r)}/events`, !rc)
|
|
4629
4629
|
return;
|
|
4630
4630
|
window.addEventListener("beforeunload", () => {
|
|
4631
|
-
|
|
4631
|
+
kl.forEach((a, i) => {
|
|
4632
4632
|
a.bind(i)();
|
|
4633
|
-
}),
|
|
4633
|
+
}), uS();
|
|
4634
4634
|
}), window.addEventListener("visibilitychange", () => {
|
|
4635
|
-
document.visibilityState !== "visible" &&
|
|
4635
|
+
document.visibilityState !== "visible" && Il.forEach((a, i) => {
|
|
4636
4636
|
a.bind(i)();
|
|
4637
4637
|
});
|
|
4638
|
-
}),
|
|
4639
|
-
const n = new
|
|
4638
|
+
}), Yb();
|
|
4639
|
+
const n = new iS({
|
|
4640
4640
|
element: document.body,
|
|
4641
4641
|
viewCallback: () => {
|
|
4642
4642
|
_e.page();
|
|
@@ -4661,9 +4661,9 @@ function oS({ clientId: e, enabled: t = !0, environment: r }) {
|
|
|
4661
4661
|
});
|
|
4662
4662
|
}
|
|
4663
4663
|
});
|
|
4664
|
-
|
|
4664
|
+
lS(document.body, () => {
|
|
4665
4665
|
n.flush();
|
|
4666
|
-
}),
|
|
4666
|
+
}), fS(document.body, () => {
|
|
4667
4667
|
n.handleVisibilityChange();
|
|
4668
4668
|
}), window.addEventListener(ye.AUTHENTICATED, async (a) => {
|
|
4669
4669
|
const i = a;
|
|
@@ -4672,13 +4672,13 @@ function oS({ clientId: e, enabled: t = !0, environment: r }) {
|
|
|
4672
4672
|
await _e.track("logout", {}), ji.flush(), await _e.reset();
|
|
4673
4673
|
});
|
|
4674
4674
|
}
|
|
4675
|
-
function
|
|
4675
|
+
function $l(e) {
|
|
4676
4676
|
return JSON.stringify(
|
|
4677
4677
|
e.map((t) => ({
|
|
4678
4678
|
...t,
|
|
4679
4679
|
clientId: Fa,
|
|
4680
4680
|
requestId: Math.random().toString(36).slice(2, 9),
|
|
4681
|
-
sessionId:
|
|
4681
|
+
sessionId: oS(),
|
|
4682
4682
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
4683
4683
|
version: Pi,
|
|
4684
4684
|
event: t.event,
|
|
@@ -4691,18 +4691,18 @@ function Il(e) {
|
|
|
4691
4691
|
referrer: document.referrer
|
|
4692
4692
|
},
|
|
4693
4693
|
locale: navigator.language,
|
|
4694
|
-
library:
|
|
4694
|
+
library: Xu,
|
|
4695
4695
|
userAgent: navigator.userAgent,
|
|
4696
4696
|
clientId: Fa
|
|
4697
4697
|
}
|
|
4698
4698
|
}))
|
|
4699
4699
|
);
|
|
4700
4700
|
}
|
|
4701
|
-
const ji =
|
|
4701
|
+
const ji = Gb(
|
|
4702
4702
|
async (e) => {
|
|
4703
4703
|
if (e.length > 0) {
|
|
4704
|
-
const t =
|
|
4705
|
-
|
|
4704
|
+
const t = $l(e);
|
|
4705
|
+
Sl ? navigator.sendBeacon(Zr, t) : (await fetch(Zr, {
|
|
4706
4706
|
method: "POST",
|
|
4707
4707
|
body: t,
|
|
4708
4708
|
headers: {
|
|
@@ -4722,12 +4722,12 @@ function la(e) {
|
|
|
4722
4722
|
var t;
|
|
4723
4723
|
if (e.anonymousId) if ((t = e.properties) != null && t.flushing) {
|
|
4724
4724
|
const r = { ...e };
|
|
4725
|
-
delete r.properties.flushing, navigator.sendBeacon(Zr,
|
|
4725
|
+
delete r.properties.flushing, navigator.sendBeacon(Zr, $l([r]));
|
|
4726
4726
|
} else
|
|
4727
4727
|
ji.push(e);
|
|
4728
4728
|
}
|
|
4729
|
-
const _e =
|
|
4730
|
-
app:
|
|
4729
|
+
const _e = Kb({
|
|
4730
|
+
app: Xu,
|
|
4731
4731
|
// @ts-expect-error The type in the library is incorrect. It should be a string.
|
|
4732
4732
|
version: Pi,
|
|
4733
4733
|
plugins: [
|
|
@@ -4765,29 +4765,29 @@ const _e = Bb({
|
|
|
4765
4765
|
}
|
|
4766
4766
|
]
|
|
4767
4767
|
});
|
|
4768
|
-
function
|
|
4768
|
+
function cS(e, t) {
|
|
4769
4769
|
_e.track(e, t);
|
|
4770
4770
|
}
|
|
4771
|
-
function
|
|
4772
|
-
return
|
|
4773
|
-
}
|
|
4774
|
-
const $l = /* @__PURE__ */ new Map();
|
|
4775
|
-
function uS(e, t) {
|
|
4776
|
-
$l.set(e, t);
|
|
4771
|
+
function uS() {
|
|
4772
|
+
return Sl = !0, ji.flush();
|
|
4777
4773
|
}
|
|
4774
|
+
const kl = /* @__PURE__ */ new Map();
|
|
4778
4775
|
function lS(e, t) {
|
|
4779
|
-
|
|
4776
|
+
kl.set(e, t);
|
|
4780
4777
|
}
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
const e = sessionStorage.getItem(kl);
|
|
4784
|
-
return e ? JSON.parse(e) : [];
|
|
4778
|
+
function fS(e, t) {
|
|
4779
|
+
Il.set(e, t);
|
|
4785
4780
|
}
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4781
|
+
const Pl = "sesamySignedURLs";
|
|
4782
|
+
function Tl() {
|
|
4783
|
+
const e = sessionStorage.getItem(Pl);
|
|
4784
|
+
return e ? JSON.parse(e) : [];
|
|
4789
4785
|
}
|
|
4790
4786
|
function dS(e) {
|
|
4787
|
+
const t = Tl();
|
|
4788
|
+
t.push(e), sessionStorage.setItem(Pl, JSON.stringify(t));
|
|
4789
|
+
}
|
|
4790
|
+
function hS(e) {
|
|
4791
4791
|
const {
|
|
4792
4792
|
createCheckout: t,
|
|
4793
4793
|
getCheckout: r,
|
|
@@ -4823,13 +4823,13 @@ function dS(e) {
|
|
|
4823
4823
|
autoOnboardProduct: B,
|
|
4824
4824
|
openHostedAccountPage: V,
|
|
4825
4825
|
generateLink: Te
|
|
4826
|
-
} =
|
|
4826
|
+
} = Vw(e), p = {
|
|
4827
4827
|
auth: {
|
|
4828
4828
|
getUser: m,
|
|
4829
4829
|
isAuthenticated: $i,
|
|
4830
4830
|
loginWithRedirect: ki,
|
|
4831
|
-
logout:
|
|
4832
|
-
setToken:
|
|
4831
|
+
logout: Gu,
|
|
4832
|
+
setToken: Vu
|
|
4833
4833
|
},
|
|
4834
4834
|
checkouts: {
|
|
4835
4835
|
get: r,
|
|
@@ -4844,7 +4844,7 @@ function dS(e) {
|
|
|
4844
4844
|
unlinkSpotify: z
|
|
4845
4845
|
},
|
|
4846
4846
|
analytics: {
|
|
4847
|
-
track:
|
|
4847
|
+
track: cS
|
|
4848
4848
|
},
|
|
4849
4849
|
tags: {
|
|
4850
4850
|
list: g,
|
|
@@ -4855,7 +4855,7 @@ function dS(e) {
|
|
|
4855
4855
|
get: a,
|
|
4856
4856
|
list: i,
|
|
4857
4857
|
access: o,
|
|
4858
|
-
signedLinks:
|
|
4858
|
+
signedLinks: Tl
|
|
4859
4859
|
},
|
|
4860
4860
|
contracts: {
|
|
4861
4861
|
get: l,
|
|
@@ -4889,17 +4889,17 @@ function dS(e) {
|
|
|
4889
4889
|
autoOnboard: B,
|
|
4890
4890
|
linkSpotify: R
|
|
4891
4891
|
},
|
|
4892
|
-
getVersion:
|
|
4892
|
+
getVersion: vS,
|
|
4893
4893
|
getPaymentIssues: L,
|
|
4894
4894
|
generateLink: Te,
|
|
4895
4895
|
clearCache: pe
|
|
4896
4896
|
};
|
|
4897
4897
|
return e.namespace && (window[e.namespace] = p), p;
|
|
4898
4898
|
}
|
|
4899
|
-
function
|
|
4899
|
+
function vS() {
|
|
4900
4900
|
return Pi;
|
|
4901
4901
|
}
|
|
4902
|
-
async function
|
|
4902
|
+
async function pS({ enabled: e = !1, rules: t }) {
|
|
4903
4903
|
if (!e)
|
|
4904
4904
|
return;
|
|
4905
4905
|
const r = await $i(), n = window.location.href;
|
|
@@ -4944,30 +4944,30 @@ async function nc(e) {
|
|
|
4944
4944
|
return console.error(`Error fetching content from ${e}:`, t), null;
|
|
4945
4945
|
}
|
|
4946
4946
|
}
|
|
4947
|
-
function
|
|
4947
|
+
function mS() {
|
|
4948
4948
|
const e = new URLSearchParams(window.location.hash.substring(1)), t = e.get("access_token");
|
|
4949
4949
|
if (t) {
|
|
4950
|
-
|
|
4950
|
+
Vu(t);
|
|
4951
4951
|
const r = new URL(window.location.href);
|
|
4952
4952
|
e.delete("access_token"), r.hash = e.toString(), window.history.replaceState(null, "", r);
|
|
4953
4953
|
}
|
|
4954
4954
|
}
|
|
4955
4955
|
const ac = "sesamy-refresh", ic = "force-refetch-entitlements";
|
|
4956
|
-
function
|
|
4956
|
+
function gS() {
|
|
4957
4957
|
const e = new URLSearchParams(window.location.search), t = e.get(ic), r = e.get(ac);
|
|
4958
4958
|
if (t !== null || r !== null) {
|
|
4959
4959
|
const n = new URL(window.location.href);
|
|
4960
4960
|
e.delete(ic), e.delete(ac), n.search = e.toString(), pe(), window.history.replaceState(null, "", n);
|
|
4961
4961
|
}
|
|
4962
4962
|
}
|
|
4963
|
-
function
|
|
4963
|
+
function yS() {
|
|
4964
4964
|
const e = new URLSearchParams(window.location.search), t = e.get("token"), r = e.get("se");
|
|
4965
4965
|
if (!r || !t)
|
|
4966
4966
|
return;
|
|
4967
4967
|
const n = parseInt(r, 10);
|
|
4968
4968
|
if (Number.isNaN(n) || n < Date.now())
|
|
4969
4969
|
return;
|
|
4970
|
-
|
|
4970
|
+
dS({
|
|
4971
4971
|
url: window.location.href.split("?")[0],
|
|
4972
4972
|
token: t,
|
|
4973
4973
|
expiresAt: n,
|
|
@@ -4977,17 +4977,17 @@ function gS() {
|
|
|
4977
4977
|
a.searchParams.delete("ss"), a.searchParams.delete("se"), a.searchParams.delete("sp"), a.searchParams.delete("so"), a.searchParams.delete("token"), window.history.replaceState(null, "", a);
|
|
4978
4978
|
}
|
|
4979
4979
|
const oc = "sesamy-user";
|
|
4980
|
-
async function
|
|
4980
|
+
async function wS() {
|
|
4981
4981
|
const t = new URLSearchParams(window.location.search).get(oc);
|
|
4982
4982
|
if (!t)
|
|
4983
4983
|
return;
|
|
4984
|
-
const r = await
|
|
4984
|
+
const r = await Lw();
|
|
4985
4985
|
(r == null ? void 0 : r.email) !== t && (pe(), ki({ authorizationParams: { email_hint: t, login_hint: t } }));
|
|
4986
4986
|
const n = new URL(window.location.href);
|
|
4987
4987
|
n.searchParams.delete(oc), window.history.replaceState(null, "", n);
|
|
4988
4988
|
}
|
|
4989
4989
|
const sc = "sesamy-purchase";
|
|
4990
|
-
function
|
|
4990
|
+
function bS() {
|
|
4991
4991
|
const e = new URLSearchParams(window.location.search), t = e.get(sc);
|
|
4992
4992
|
if (t !== null) {
|
|
4993
4993
|
const r = new URL(window.location.href);
|
|
@@ -4995,39 +4995,42 @@ function wS() {
|
|
|
4995
4995
|
}
|
|
4996
4996
|
}
|
|
4997
4997
|
const cc = "sesamy-login";
|
|
4998
|
-
async function
|
|
4998
|
+
async function SS() {
|
|
4999
4999
|
if (!new URLSearchParams(window.location.search).get(cc))
|
|
5000
5000
|
return;
|
|
5001
5001
|
await $i() || ki();
|
|
5002
5002
|
const n = new URL(window.location.href);
|
|
5003
5003
|
n.searchParams.delete(cc), window.history.replaceState(null, "", n);
|
|
5004
5004
|
}
|
|
5005
|
-
const
|
|
5006
|
-
async function
|
|
5007
|
-
|
|
5008
|
-
return ze(ye.READY, {}), SS && (oS({
|
|
5005
|
+
const IS = typeof window < "u";
|
|
5006
|
+
async function uc(e) {
|
|
5007
|
+
sS({
|
|
5009
5008
|
clientId: e.clientId,
|
|
5010
5009
|
environment: e.environment,
|
|
5011
5010
|
// The default client id can be overridden by the config
|
|
5012
5011
|
...e.analytics
|
|
5013
|
-
}), await
|
|
5012
|
+
}), await Aw({
|
|
5014
5013
|
clientId: e.clientId,
|
|
5015
5014
|
organization: e.organization,
|
|
5016
5015
|
environment: e.environment,
|
|
5017
5016
|
// The default client id can be overridden by the config
|
|
5018
5017
|
...e.auth
|
|
5019
|
-
}), e.transform && await
|
|
5018
|
+
}), e.transform && await pS(e.transform), mS(), gS(), yS(), await SS(), await wS(), bS();
|
|
5019
|
+
}
|
|
5020
|
+
async function $S(e) {
|
|
5021
|
+
const t = hS({ clientId: e.clientId, environment: e.environment, ...e.api });
|
|
5022
|
+
return ze(ye.READY, {}), IS && (e.awaitAllServices ? await uc(e) : uc(e)), t;
|
|
5020
5023
|
}
|
|
5021
5024
|
if (typeof document < "u") {
|
|
5022
5025
|
const e = document.getElementById("sesamy-js");
|
|
5023
5026
|
if (e != null && e.textContent)
|
|
5024
5027
|
try {
|
|
5025
5028
|
const t = JSON.parse(e.textContent);
|
|
5026
|
-
|
|
5029
|
+
$S(t);
|
|
5027
5030
|
} catch (t) {
|
|
5028
5031
|
console.error("Failed to parse config", t);
|
|
5029
5032
|
}
|
|
5030
5033
|
}
|
|
5031
5034
|
export {
|
|
5032
|
-
|
|
5035
|
+
$S as init
|
|
5033
5036
|
};
|