@persona/relay 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/relay.cjs +2 -2
- package/dist/relay.cjs.map +1 -1
- package/dist/relay.js +190 -190
- package/dist/relay.js.map +1 -1
- package/dist/relay.umd.js +2 -2
- package/dist/relay.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/relay.js
CHANGED
|
@@ -94,11 +94,11 @@ function fn(e, {
|
|
|
94
94
|
onFullscreenResize: R,
|
|
95
95
|
host: v
|
|
96
96
|
}) {
|
|
97
|
-
const
|
|
98
|
-
const
|
|
97
|
+
const O = (p) => {
|
|
98
|
+
const h = Fr(v ?? "production");
|
|
99
99
|
if (p.origin !== "")
|
|
100
100
|
try {
|
|
101
|
-
const M = jr(new URL(p.origin).host), A = jr(new URL(
|
|
101
|
+
const M = jr(new URL(p.origin).host), A = jr(new URL(h).host);
|
|
102
102
|
if (M !== A)
|
|
103
103
|
return;
|
|
104
104
|
} catch {
|
|
@@ -128,8 +128,8 @@ function fn(e, {
|
|
|
128
128
|
break;
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
|
-
return window.addEventListener("message",
|
|
132
|
-
window.removeEventListener("message",
|
|
131
|
+
return window.addEventListener("message", O), () => {
|
|
132
|
+
window.removeEventListener("message", O);
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
var Kr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -169,7 +169,7 @@ var Ue, Vr;
|
|
|
169
169
|
function _e() {
|
|
170
170
|
if (Vr) return Ue;
|
|
171
171
|
Vr = 1;
|
|
172
|
-
var e = typeof Map == "function" && Map.prototype, i = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, u = e && i && typeof i.get == "function" ? i.get : null, l = e && Map.prototype.forEach, g = typeof Set == "function" && Set.prototype, w = Object.getOwnPropertyDescriptor && g ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, R = g && w && typeof w.get == "function" ? w.get : null, v = g && Set.prototype.forEach,
|
|
172
|
+
var e = typeof Map == "function" && Map.prototype, i = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, u = e && i && typeof i.get == "function" ? i.get : null, l = e && Map.prototype.forEach, g = typeof Set == "function" && Set.prototype, w = Object.getOwnPropertyDescriptor && g ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, R = g && w && typeof w.get == "function" ? w.get : null, v = g && Set.prototype.forEach, O = typeof WeakMap == "function" && WeakMap.prototype, p = O ? WeakMap.prototype.has : null, h = typeof WeakSet == "function" && WeakSet.prototype, y = h ? WeakSet.prototype.has : null, M = typeof WeakRef == "function" && WeakRef.prototype, A = M ? WeakRef.prototype.deref : null, a = Boolean.prototype.valueOf, f = Object.prototype.toString, o = Function.prototype.toString, I = String.prototype.match, m = String.prototype.slice, S = String.prototype.replace, D = String.prototype.toUpperCase, P = String.prototype.toLowerCase, b = RegExp.prototype.test, n = Array.prototype.concat, c = Array.prototype.join, d = Array.prototype.slice, E = Math.floor, _ = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, x = Object.getOwnPropertySymbols, U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, F = typeof Symbol == "function" && typeof Symbol.iterator == "object", W = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === F || !0) ? Symbol.toStringTag : null, $ = Object.prototype.propertyIsEnumerable, G = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
|
|
173
173
|
return r.__proto__;
|
|
174
174
|
} : null);
|
|
175
175
|
function s(r, t) {
|
|
@@ -177,9 +177,9 @@ function _e() {
|
|
|
177
177
|
return t;
|
|
178
178
|
var N = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
179
179
|
if (typeof r == "number") {
|
|
180
|
-
var B = r < 0 ? -
|
|
180
|
+
var B = r < 0 ? -E(-r) : E(r);
|
|
181
181
|
if (B !== r) {
|
|
182
|
-
var z = String(B), q =
|
|
182
|
+
var z = String(B), q = m.call(t, z.length + 1);
|
|
183
183
|
return S.call(z, N, "$&_") + "." + S.call(S.call(q, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -303,7 +303,7 @@ function _e() {
|
|
|
303
303
|
if (typeof globalThis < "u" && t === globalThis || typeof Kr < "u" && t === Kr)
|
|
304
304
|
return "{ [object globalThis] }";
|
|
305
305
|
if (!ue(t) && !j(t)) {
|
|
306
|
-
var Ne = Re(t, ne), kr = G ? G(t) === Object.prototype : t instanceof Object || t.constructor === Object, Le = t instanceof Object ? "" : "null prototype", Gr = !kr && W && Object(t) === t && W in t ?
|
|
306
|
+
var Ne = Re(t, ne), kr = G ? G(t) === Object.prototype : t instanceof Object || t.constructor === Object, Le = t instanceof Object ? "" : "null prototype", Gr = !kr && W && Object(t) === t && W in t ? m.call(re(t), 8, -1) : Le ? "Object" : "", rn = kr || typeof t.constructor != "function" ? "" : t.constructor.name ? t.constructor.name + " " : "", Te = rn + (Gr || Le ? "[" + c.call(n.call([], Gr || [], Le || []), ": ") + "] " : "");
|
|
307
307
|
return Ne.length === 0 ? Te + "{}" : we ? Te + "{" + Me(Ne, we) + "}" : Te + "{ " + c.call(Ne, ", ") + " }";
|
|
308
308
|
}
|
|
309
309
|
return String(t);
|
|
@@ -459,7 +459,7 @@ function _e() {
|
|
|
459
459
|
function Nr(r, t) {
|
|
460
460
|
if (r.length > t.maxStringLength) {
|
|
461
461
|
var N = r.length - t.maxStringLength, B = "... " + N + " more character" + (N > 1 ? "s" : "");
|
|
462
|
-
return Nr(
|
|
462
|
+
return Nr(m.call(r, 0, t.maxStringLength), t) + B;
|
|
463
463
|
}
|
|
464
464
|
var z = oe[t.quoteStyle || "single"];
|
|
465
465
|
z.lastIndex = 0;
|
|
@@ -540,54 +540,54 @@ var ze, Jr;
|
|
|
540
540
|
function yn() {
|
|
541
541
|
if (Jr) return ze;
|
|
542
542
|
Jr = 1;
|
|
543
|
-
var e = /* @__PURE__ */ _e(), i = /* @__PURE__ */ be(), u = function(v,
|
|
544
|
-
for (var
|
|
545
|
-
if (y.key ===
|
|
546
|
-
return
|
|
543
|
+
var e = /* @__PURE__ */ _e(), i = /* @__PURE__ */ be(), u = function(v, O, p) {
|
|
544
|
+
for (var h = v, y; (y = h.next) != null; h = y)
|
|
545
|
+
if (y.key === O)
|
|
546
|
+
return h.next = y.next, p || (y.next = /** @type {NonNullable<typeof list.next>} */
|
|
547
547
|
v.next, v.next = y), y;
|
|
548
|
-
}, l = function(v,
|
|
548
|
+
}, l = function(v, O) {
|
|
549
549
|
if (v) {
|
|
550
|
-
var p = u(v,
|
|
550
|
+
var p = u(v, O);
|
|
551
551
|
return p && p.value;
|
|
552
552
|
}
|
|
553
|
-
}, g = function(v,
|
|
554
|
-
var
|
|
555
|
-
|
|
553
|
+
}, g = function(v, O, p) {
|
|
554
|
+
var h = u(v, O);
|
|
555
|
+
h ? h.value = p : v.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
556
556
|
{
|
|
557
557
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
558
|
-
key:
|
|
558
|
+
key: O,
|
|
559
559
|
next: v.next,
|
|
560
560
|
value: p
|
|
561
561
|
};
|
|
562
|
-
}, w = function(v,
|
|
563
|
-
return v ? !!u(v,
|
|
564
|
-
}, R = function(v,
|
|
562
|
+
}, w = function(v, O) {
|
|
563
|
+
return v ? !!u(v, O) : !1;
|
|
564
|
+
}, R = function(v, O) {
|
|
565
565
|
if (v)
|
|
566
|
-
return u(v,
|
|
566
|
+
return u(v, O, !0);
|
|
567
567
|
};
|
|
568
568
|
return ze = function() {
|
|
569
|
-
var
|
|
570
|
-
assert: function(
|
|
571
|
-
if (!p.has(
|
|
572
|
-
throw new i("Side channel does not contain " + e(
|
|
569
|
+
var O, p = {
|
|
570
|
+
assert: function(h) {
|
|
571
|
+
if (!p.has(h))
|
|
572
|
+
throw new i("Side channel does not contain " + e(h));
|
|
573
573
|
},
|
|
574
|
-
delete: function(
|
|
575
|
-
var y = R(
|
|
576
|
-
return y &&
|
|
574
|
+
delete: function(h) {
|
|
575
|
+
var y = R(O, h);
|
|
576
|
+
return y && O && !O.next && (O = void 0), !!y;
|
|
577
577
|
},
|
|
578
|
-
get: function(
|
|
579
|
-
return l(
|
|
578
|
+
get: function(h) {
|
|
579
|
+
return l(O, h);
|
|
580
580
|
},
|
|
581
|
-
has: function(
|
|
582
|
-
return w(
|
|
581
|
+
has: function(h) {
|
|
582
|
+
return w(O, h);
|
|
583
583
|
},
|
|
584
|
-
set: function(
|
|
585
|
-
|
|
584
|
+
set: function(h, y) {
|
|
585
|
+
O || (O = {
|
|
586
586
|
next: void 0
|
|
587
587
|
}), g(
|
|
588
588
|
/** @type {NonNullable<typeof $o>} */
|
|
589
|
-
|
|
590
|
-
|
|
589
|
+
O,
|
|
590
|
+
h,
|
|
591
591
|
y
|
|
592
592
|
);
|
|
593
593
|
}
|
|
@@ -746,38 +746,38 @@ var cr, wt;
|
|
|
746
746
|
function Fn() {
|
|
747
747
|
if (wt) return cr;
|
|
748
748
|
wt = 1;
|
|
749
|
-
var e = "Function.prototype.bind called on incompatible ", i = Object.prototype.toString, u = Math.max, l = "[object Function]", g = function(
|
|
750
|
-
for (var
|
|
751
|
-
|
|
749
|
+
var e = "Function.prototype.bind called on incompatible ", i = Object.prototype.toString, u = Math.max, l = "[object Function]", g = function(O, p) {
|
|
750
|
+
for (var h = [], y = 0; y < O.length; y += 1)
|
|
751
|
+
h[y] = O[y];
|
|
752
752
|
for (var M = 0; M < p.length; M += 1)
|
|
753
|
-
|
|
754
|
-
return
|
|
755
|
-
}, w = function(
|
|
756
|
-
for (var
|
|
757
|
-
|
|
758
|
-
return
|
|
759
|
-
}, R = function(v,
|
|
760
|
-
for (var p = "",
|
|
761
|
-
p += v[
|
|
753
|
+
h[M + O.length] = p[M];
|
|
754
|
+
return h;
|
|
755
|
+
}, w = function(O, p) {
|
|
756
|
+
for (var h = [], y = p, M = 0; y < O.length; y += 1, M += 1)
|
|
757
|
+
h[M] = O[y];
|
|
758
|
+
return h;
|
|
759
|
+
}, R = function(v, O) {
|
|
760
|
+
for (var p = "", h = 0; h < v.length; h += 1)
|
|
761
|
+
p += v[h], h + 1 < v.length && (p += O);
|
|
762
762
|
return p;
|
|
763
763
|
};
|
|
764
|
-
return cr = function(
|
|
764
|
+
return cr = function(O) {
|
|
765
765
|
var p = this;
|
|
766
766
|
if (typeof p != "function" || i.apply(p) !== l)
|
|
767
767
|
throw new TypeError(e + p);
|
|
768
|
-
for (var
|
|
768
|
+
for (var h = w(arguments, 1), y, M = function() {
|
|
769
769
|
if (this instanceof y) {
|
|
770
770
|
var I = p.apply(
|
|
771
771
|
this,
|
|
772
|
-
g(
|
|
772
|
+
g(h, arguments)
|
|
773
773
|
);
|
|
774
774
|
return Object(I) === I ? I : this;
|
|
775
775
|
}
|
|
776
776
|
return p.apply(
|
|
777
|
-
|
|
778
|
-
g(
|
|
777
|
+
O,
|
|
778
|
+
g(h, arguments)
|
|
779
779
|
);
|
|
780
|
-
}, A = u(0, p.length -
|
|
780
|
+
}, A = u(0, p.length - h.length), a = [], f = 0; f < A; f++)
|
|
781
781
|
a[f] = "$" + f;
|
|
782
782
|
if (y = Function("binder", "return function (" + R(a, ",") + "){ return binder.apply(this,arguments); }")(M), p.prototype) {
|
|
783
783
|
var o = function() {
|
|
@@ -874,24 +874,24 @@ var Sr, xt;
|
|
|
874
874
|
function Cr() {
|
|
875
875
|
if (xt) return Sr;
|
|
876
876
|
xt = 1;
|
|
877
|
-
var e, i = /* @__PURE__ */ Ut(), u = /* @__PURE__ */ dn(), l = /* @__PURE__ */ vn(), g = /* @__PURE__ */ hn(), w = /* @__PURE__ */ mn(), R = /* @__PURE__ */ gn(), v = /* @__PURE__ */ be(),
|
|
877
|
+
var e, i = /* @__PURE__ */ Ut(), u = /* @__PURE__ */ dn(), l = /* @__PURE__ */ vn(), g = /* @__PURE__ */ hn(), w = /* @__PURE__ */ mn(), R = /* @__PURE__ */ gn(), v = /* @__PURE__ */ be(), O = /* @__PURE__ */ wn(), p = /* @__PURE__ */ Sn(), h = /* @__PURE__ */ bn(), y = /* @__PURE__ */ En(), M = /* @__PURE__ */ On(), A = /* @__PURE__ */ An(), a = /* @__PURE__ */ Rn(), f = /* @__PURE__ */ In(), o = Function, I = function(j) {
|
|
878
878
|
try {
|
|
879
879
|
return o('"use strict"; return (' + j + ").constructor;")();
|
|
880
880
|
} catch {
|
|
881
881
|
}
|
|
882
|
-
},
|
|
882
|
+
}, m = /* @__PURE__ */ zt(), S = /* @__PURE__ */ xn(), D = function() {
|
|
883
883
|
throw new v();
|
|
884
|
-
}, P =
|
|
884
|
+
}, P = m ? (function() {
|
|
885
885
|
try {
|
|
886
886
|
return arguments.callee, D;
|
|
887
887
|
} catch {
|
|
888
888
|
try {
|
|
889
|
-
return
|
|
889
|
+
return m(arguments, "callee").get;
|
|
890
890
|
} catch {
|
|
891
891
|
return D;
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
})() : D, b = Mn()(), n = Nn(), c = kt(), d = Wt(),
|
|
894
|
+
})() : D, b = Mn()(), n = Nn(), c = kt(), d = Wt(), E = Gt(), _ = Dr(), x = {}, U = typeof Uint8Array > "u" || !n ? e : n(Uint8Array), F = {
|
|
895
895
|
__proto__: null,
|
|
896
896
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
897
897
|
"%Array%": Array,
|
|
@@ -935,7 +935,7 @@ function Cr() {
|
|
|
935
935
|
"%Math%": Math,
|
|
936
936
|
"%Number%": Number,
|
|
937
937
|
"%Object%": i,
|
|
938
|
-
"%Object.getOwnPropertyDescriptor%":
|
|
938
|
+
"%Object.getOwnPropertyDescriptor%": m,
|
|
939
939
|
"%parseFloat%": parseFloat,
|
|
940
940
|
"%parseInt%": parseInt,
|
|
941
941
|
"%Promise%": typeof Promise > "u" ? e : Promise,
|
|
@@ -958,16 +958,16 @@ function Cr() {
|
|
|
958
958
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? e : Uint8ClampedArray,
|
|
959
959
|
"%Uint16Array%": typeof Uint16Array > "u" ? e : Uint16Array,
|
|
960
960
|
"%Uint32Array%": typeof Uint32Array > "u" ? e : Uint32Array,
|
|
961
|
-
"%URIError%":
|
|
961
|
+
"%URIError%": O,
|
|
962
962
|
"%WeakMap%": typeof WeakMap > "u" ? e : WeakMap,
|
|
963
963
|
"%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
|
|
964
964
|
"%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
|
|
965
965
|
"%Function.prototype.call%": _,
|
|
966
|
-
"%Function.prototype.apply%":
|
|
966
|
+
"%Function.prototype.apply%": E,
|
|
967
967
|
"%Object.defineProperty%": S,
|
|
968
968
|
"%Object.getPrototypeOf%": c,
|
|
969
969
|
"%Math.abs%": p,
|
|
970
|
-
"%Math.floor%":
|
|
970
|
+
"%Math.floor%": h,
|
|
971
971
|
"%Math.max%": y,
|
|
972
972
|
"%Math.min%": M,
|
|
973
973
|
"%Math.pow%": A,
|
|
@@ -1051,7 +1051,7 @@ function Cr() {
|
|
|
1051
1051
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1052
1052
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1053
1053
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1054
|
-
}, s = xe(), L = /* @__PURE__ */ Ln(), K = s.call(_, Array.prototype.concat), X = s.call(
|
|
1054
|
+
}, s = xe(), L = /* @__PURE__ */ Ln(), K = s.call(_, Array.prototype.concat), X = s.call(E, Array.prototype.splice), ie = s.call(_, String.prototype.replace), oe = s.call(_, String.prototype.slice), le = s.call(_, RegExp.prototype.exec), ae = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Z = /\\(\\)?/g, fe = function(C) {
|
|
1055
1055
|
var k = oe(C, 0, 1), T = oe(C, -1);
|
|
1056
1056
|
if (k === "%" && T !== "%")
|
|
1057
1057
|
throw new R("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -1096,8 +1096,8 @@ function Cr() {
|
|
|
1096
1096
|
throw new v("base intrinsic for " + C + " exists, but the property is not available.");
|
|
1097
1097
|
return;
|
|
1098
1098
|
}
|
|
1099
|
-
if (
|
|
1100
|
-
var ge =
|
|
1099
|
+
if (m && ve + 1 >= T.length) {
|
|
1100
|
+
var ge = m(V, te);
|
|
1101
1101
|
ce = !!ge, ce && "get" in ge && !("originalValue" in ge.get) ? V = ge.get : V = V[te];
|
|
1102
1102
|
} else
|
|
1103
1103
|
ce = L(V, te), V = V[te];
|
|
@@ -1127,7 +1127,7 @@ var Er, Mt;
|
|
|
1127
1127
|
function Kt() {
|
|
1128
1128
|
if (Mt) return Er;
|
|
1129
1129
|
Mt = 1;
|
|
1130
|
-
var e = /* @__PURE__ */ Cr(), i = /* @__PURE__ */ jt(), u = /* @__PURE__ */ _e(), l = /* @__PURE__ */ be(), g = e("%Map%", !0), w = i("Map.prototype.get", !0), R = i("Map.prototype.set", !0), v = i("Map.prototype.has", !0),
|
|
1130
|
+
var e = /* @__PURE__ */ Cr(), i = /* @__PURE__ */ jt(), u = /* @__PURE__ */ _e(), l = /* @__PURE__ */ be(), g = e("%Map%", !0), w = i("Map.prototype.get", !0), R = i("Map.prototype.set", !0), v = i("Map.prototype.has", !0), O = i("Map.prototype.delete", !0), p = i("Map.prototype.size", !0);
|
|
1131
1131
|
return Er = !!g && /** @type {Exclude<import('.'), false>} */
|
|
1132
1132
|
function() {
|
|
1133
1133
|
var y, M = {
|
|
@@ -1137,7 +1137,7 @@ function Kt() {
|
|
|
1137
1137
|
},
|
|
1138
1138
|
delete: function(A) {
|
|
1139
1139
|
if (y) {
|
|
1140
|
-
var a =
|
|
1140
|
+
var a = O(y, A);
|
|
1141
1141
|
return p(y) === 0 && (y = void 0), a;
|
|
1142
1142
|
}
|
|
1143
1143
|
return !1;
|
|
@@ -1160,7 +1160,7 @@ var Or, Ft;
|
|
|
1160
1160
|
function Tn() {
|
|
1161
1161
|
if (Ft) return Or;
|
|
1162
1162
|
Ft = 1;
|
|
1163
|
-
var e = /* @__PURE__ */ Cr(), i = /* @__PURE__ */ jt(), u = /* @__PURE__ */ _e(), l = Kt(), g = /* @__PURE__ */ be(), w = e("%WeakMap%", !0), R = i("WeakMap.prototype.get", !0), v = i("WeakMap.prototype.set", !0),
|
|
1163
|
+
var e = /* @__PURE__ */ Cr(), i = /* @__PURE__ */ jt(), u = /* @__PURE__ */ _e(), l = Kt(), g = /* @__PURE__ */ be(), w = e("%WeakMap%", !0), R = i("WeakMap.prototype.get", !0), v = i("WeakMap.prototype.set", !0), O = i("WeakMap.prototype.has", !0), p = i("WeakMap.prototype.delete", !0);
|
|
1164
1164
|
return Or = w ? (
|
|
1165
1165
|
/** @type {Exclude<import('.'), false>} */
|
|
1166
1166
|
function() {
|
|
@@ -1181,7 +1181,7 @@ function Tn() {
|
|
|
1181
1181
|
return w && a && (typeof a == "object" || typeof a == "function") && y ? R(y, a) : M && M.get(a);
|
|
1182
1182
|
},
|
|
1183
1183
|
has: function(a) {
|
|
1184
|
-
return w && a && (typeof a == "object" || typeof a == "function") && y ?
|
|
1184
|
+
return w && a && (typeof a == "object" || typeof a == "function") && y ? O(y, a) : !!M && M.has(a);
|
|
1185
1185
|
},
|
|
1186
1186
|
set: function(a, f) {
|
|
1187
1187
|
w && a && (typeof a == "object" || typeof a == "function") ? (y || (y = new w()), v(y, a, f)) : l && (M || (M = l()), M.set(a, f));
|
|
@@ -1197,9 +1197,9 @@ function Qt() {
|
|
|
1197
1197
|
Dt = 1;
|
|
1198
1198
|
var e = /* @__PURE__ */ be(), i = /* @__PURE__ */ _e(), u = yn(), l = Kt(), g = Tn(), w = g || l || u;
|
|
1199
1199
|
return Ar = function() {
|
|
1200
|
-
var v,
|
|
1200
|
+
var v, O = {
|
|
1201
1201
|
assert: function(p) {
|
|
1202
|
-
if (!
|
|
1202
|
+
if (!O.has(p))
|
|
1203
1203
|
throw new e("Side channel does not contain " + i(p));
|
|
1204
1204
|
},
|
|
1205
1205
|
delete: function(p) {
|
|
@@ -1211,11 +1211,11 @@ function Qt() {
|
|
|
1211
1211
|
has: function(p) {
|
|
1212
1212
|
return !!v && v.has(p);
|
|
1213
1213
|
},
|
|
1214
|
-
set: function(p,
|
|
1215
|
-
v || (v = w()), v.set(p,
|
|
1214
|
+
set: function(p, h) {
|
|
1215
|
+
v || (v = w()), v.set(p, h);
|
|
1216
1216
|
}
|
|
1217
1217
|
};
|
|
1218
|
-
return
|
|
1218
|
+
return O;
|
|
1219
1219
|
}, Ar;
|
|
1220
1220
|
}
|
|
1221
1221
|
var Rr, Ct;
|
|
@@ -1250,38 +1250,38 @@ function Vt() {
|
|
|
1250
1250
|
return g.has(n);
|
|
1251
1251
|
}, v = function(n) {
|
|
1252
1252
|
return g.get(n);
|
|
1253
|
-
},
|
|
1253
|
+
}, O = function(n, c) {
|
|
1254
1254
|
g.set(n, c);
|
|
1255
1255
|
}, p = (function() {
|
|
1256
1256
|
for (var b = [], n = 0; n < 256; ++n)
|
|
1257
1257
|
b[b.length] = "%" + ((n < 16 ? "0" : "") + n.toString(16)).toUpperCase();
|
|
1258
1258
|
return b;
|
|
1259
|
-
})(),
|
|
1259
|
+
})(), h = function(n) {
|
|
1260
1260
|
for (; n.length > 1; ) {
|
|
1261
1261
|
var c = n.pop(), d = c.obj[c.prop];
|
|
1262
1262
|
if (l(d)) {
|
|
1263
|
-
for (var
|
|
1264
|
-
typeof d[_] < "u" && (
|
|
1265
|
-
c.obj[c.prop] =
|
|
1263
|
+
for (var E = [], _ = 0; _ < d.length; ++_)
|
|
1264
|
+
typeof d[_] < "u" && (E[E.length] = d[_]);
|
|
1265
|
+
c.obj[c.prop] = E;
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
1268
|
}, y = function(n, c) {
|
|
1269
|
-
for (var d = c && c.plainObjects ? { __proto__: null } : {},
|
|
1270
|
-
typeof n[
|
|
1269
|
+
for (var d = c && c.plainObjects ? { __proto__: null } : {}, E = 0; E < n.length; ++E)
|
|
1270
|
+
typeof n[E] < "u" && (d[E] = n[E]);
|
|
1271
1271
|
return d;
|
|
1272
1272
|
}, M = function b(n, c, d) {
|
|
1273
1273
|
if (!c)
|
|
1274
1274
|
return n;
|
|
1275
1275
|
if (typeof c != "object" && typeof c != "function") {
|
|
1276
1276
|
if (l(n)) {
|
|
1277
|
-
var
|
|
1278
|
-
if (d && typeof d.arrayLimit == "number" &&
|
|
1279
|
-
return w(y(n.concat(c), d),
|
|
1280
|
-
n[
|
|
1277
|
+
var E = n.length;
|
|
1278
|
+
if (d && typeof d.arrayLimit == "number" && E > d.arrayLimit)
|
|
1279
|
+
return w(y(n.concat(c), d), E);
|
|
1280
|
+
n[E] = c;
|
|
1281
1281
|
} else if (n && typeof n == "object")
|
|
1282
1282
|
if (R(n)) {
|
|
1283
1283
|
var _ = v(n) + 1;
|
|
1284
|
-
n[_] = c,
|
|
1284
|
+
n[_] = c, O(n, _);
|
|
1285
1285
|
} else {
|
|
1286
1286
|
if (d && d.strictMerge)
|
|
1287
1287
|
return [n, c];
|
|
@@ -1313,13 +1313,13 @@ function Vt() {
|
|
|
1313
1313
|
var K = c[L];
|
|
1314
1314
|
if (u.call(s, L) ? s[L] = b(s[L], K, d) : s[L] = K, R(c) && !R(s) && w(s, v(c)), R(s)) {
|
|
1315
1315
|
var X = parseInt(L, 10);
|
|
1316
|
-
String(X) === L && X >= 0 && X > v(s) &&
|
|
1316
|
+
String(X) === L && X >= 0 && X > v(s) && O(s, X);
|
|
1317
1317
|
}
|
|
1318
1318
|
return s;
|
|
1319
1319
|
}, G);
|
|
1320
1320
|
}, A = function(n, c) {
|
|
1321
|
-
return Object.keys(c).reduce(function(d,
|
|
1322
|
-
return d[
|
|
1321
|
+
return Object.keys(c).reduce(function(d, E) {
|
|
1322
|
+
return d[E] = c[E], d;
|
|
1323
1323
|
}, n);
|
|
1324
1324
|
}, a = function(b, n, c) {
|
|
1325
1325
|
var d = b.replace(/\+/g, " ");
|
|
@@ -1330,7 +1330,7 @@ function Vt() {
|
|
|
1330
1330
|
} catch {
|
|
1331
1331
|
return d;
|
|
1332
1332
|
}
|
|
1333
|
-
}, f = 1024, o = function(n, c, d,
|
|
1333
|
+
}, f = 1024, o = function(n, c, d, E, _) {
|
|
1334
1334
|
if (n.length === 0)
|
|
1335
1335
|
return n;
|
|
1336
1336
|
var x = n;
|
|
@@ -1363,27 +1363,27 @@ function Vt() {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
return U;
|
|
1365
1365
|
}, I = function(n) {
|
|
1366
|
-
for (var c = [{ obj: { o: n }, prop: "o" }], d = [],
|
|
1367
|
-
for (var _ = c[
|
|
1366
|
+
for (var c = [{ obj: { o: n }, prop: "o" }], d = [], E = 0; E < c.length; ++E)
|
|
1367
|
+
for (var _ = c[E], x = _.obj[_.prop], U = Object.keys(x), F = 0; F < U.length; ++F) {
|
|
1368
1368
|
var W = U[F], $ = x[W];
|
|
1369
1369
|
typeof $ == "object" && $ !== null && d.indexOf($) === -1 && (c[c.length] = { obj: x, prop: W }, d[d.length] = $);
|
|
1370
1370
|
}
|
|
1371
|
-
return
|
|
1372
|
-
},
|
|
1371
|
+
return h(c), n;
|
|
1372
|
+
}, m = function(n) {
|
|
1373
1373
|
return Object.prototype.toString.call(n) === "[object RegExp]";
|
|
1374
1374
|
}, S = function(n) {
|
|
1375
1375
|
return !n || typeof n != "object" ? !1 : !!(n.constructor && n.constructor.isBuffer && n.constructor.isBuffer(n));
|
|
1376
|
-
}, D = function(n, c, d,
|
|
1376
|
+
}, D = function(n, c, d, E) {
|
|
1377
1377
|
if (R(n)) {
|
|
1378
1378
|
var _ = v(n) + 1;
|
|
1379
|
-
return n[_] = c,
|
|
1379
|
+
return n[_] = c, O(n, _), n;
|
|
1380
1380
|
}
|
|
1381
1381
|
var x = [].concat(n, c);
|
|
1382
|
-
return x.length > d ? w(y(x, { plainObjects:
|
|
1382
|
+
return x.length > d ? w(y(x, { plainObjects: E }), x.length - 1) : x;
|
|
1383
1383
|
}, P = function(n, c) {
|
|
1384
1384
|
if (l(n)) {
|
|
1385
|
-
for (var d = [],
|
|
1386
|
-
d[d.length] = c(n[
|
|
1385
|
+
for (var d = [], E = 0; E < n.length; E += 1)
|
|
1386
|
+
d[d.length] = c(n[E]);
|
|
1387
1387
|
return d;
|
|
1388
1388
|
}
|
|
1389
1389
|
return c(n);
|
|
@@ -1397,7 +1397,7 @@ function Vt() {
|
|
|
1397
1397
|
encode: o,
|
|
1398
1398
|
isBuffer: S,
|
|
1399
1399
|
isOverflow: R,
|
|
1400
|
-
isRegExp:
|
|
1400
|
+
isRegExp: m,
|
|
1401
1401
|
markOverflow: w,
|
|
1402
1402
|
maybeMap: P,
|
|
1403
1403
|
merge: M
|
|
@@ -1420,7 +1420,7 @@ function Bn() {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
}, w = Array.isArray, R = Array.prototype.push, v = function(f, o) {
|
|
1422
1422
|
R.apply(f, w(o) ? o : [o]);
|
|
1423
|
-
},
|
|
1423
|
+
}, O = Date.prototype.toISOString, p = u.default, h = {
|
|
1424
1424
|
addQueryPrefix: !1,
|
|
1425
1425
|
allowDots: !1,
|
|
1426
1426
|
allowEmptyArrays: !1,
|
|
@@ -1439,13 +1439,13 @@ function Bn() {
|
|
|
1439
1439
|
// deprecated
|
|
1440
1440
|
indices: !1,
|
|
1441
1441
|
serializeDate: function(o) {
|
|
1442
|
-
return
|
|
1442
|
+
return O.call(o);
|
|
1443
1443
|
},
|
|
1444
1444
|
skipNulls: !1,
|
|
1445
1445
|
strictNullHandling: !1
|
|
1446
1446
|
}, y = function(o) {
|
|
1447
1447
|
return typeof o == "string" || typeof o == "number" || typeof o == "boolean" || typeof o == "symbol" || typeof o == "bigint";
|
|
1448
|
-
}, M = {}, A = function f(o, I,
|
|
1448
|
+
}, M = {}, A = function f(o, I, m, S, D, P, b, n, c, d, E, _, x, U, F, W, $, G) {
|
|
1449
1449
|
for (var s = o, L = G, K = 0, X = !1; (L = L.get(M)) !== void 0 && !X; ) {
|
|
1450
1450
|
var ie = L.get(o);
|
|
1451
1451
|
if (K += 1, typeof ie < "u") {
|
|
@@ -1455,17 +1455,17 @@ function Bn() {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
typeof L.get(M) > "u" && (K = 0);
|
|
1457
1457
|
}
|
|
1458
|
-
if (typeof d == "function" ? s = d(I, s) : s instanceof Date ? s = x(s) :
|
|
1458
|
+
if (typeof d == "function" ? s = d(I, s) : s instanceof Date ? s = x(s) : m === "comma" && w(s) && (s = i.maybeMap(s, function(ee) {
|
|
1459
1459
|
return ee instanceof Date ? x(ee) : ee;
|
|
1460
1460
|
})), s === null) {
|
|
1461
1461
|
if (P)
|
|
1462
|
-
return c && !W ? c(I,
|
|
1462
|
+
return c && !W ? c(I, h.encoder, $, "key", U) : I;
|
|
1463
1463
|
s = "";
|
|
1464
1464
|
}
|
|
1465
1465
|
if (y(s) || i.isBuffer(s)) {
|
|
1466
1466
|
if (c) {
|
|
1467
|
-
var oe = W ? I : c(I,
|
|
1468
|
-
return [F(oe) + "=" + F(c(s,
|
|
1467
|
+
var oe = W ? I : c(I, h.encoder, $, "key", U);
|
|
1468
|
+
return [F(oe) + "=" + F(c(s, h.encoder, $, "value", U))];
|
|
1469
1469
|
}
|
|
1470
1470
|
return [F(I) + "=" + F(String(s))];
|
|
1471
1471
|
}
|
|
@@ -1473,13 +1473,13 @@ function Bn() {
|
|
|
1473
1473
|
if (typeof s > "u")
|
|
1474
1474
|
return le;
|
|
1475
1475
|
var ae;
|
|
1476
|
-
if (
|
|
1476
|
+
if (m === "comma" && w(s))
|
|
1477
1477
|
W && c && (s = i.maybeMap(s, c)), ae = [{ value: s.length > 0 ? s.join(",") || null : void 0 }];
|
|
1478
1478
|
else if (w(d))
|
|
1479
1479
|
ae = d;
|
|
1480
1480
|
else {
|
|
1481
1481
|
var Z = Object.keys(s);
|
|
1482
|
-
ae =
|
|
1482
|
+
ae = E ? Z.sort(E) : Z;
|
|
1483
1483
|
}
|
|
1484
1484
|
var fe = n ? String(I).replace(/\./g, "%2E") : String(I), ue = S && w(s) && s.length === 1 ? fe + "[]" : fe;
|
|
1485
1485
|
if (D && w(s) && s.length === 0)
|
|
@@ -1487,21 +1487,21 @@ function Bn() {
|
|
|
1487
1487
|
for (var j = 0; j < ae.length; ++j) {
|
|
1488
1488
|
var C = ae[j], k = typeof C == "object" && C && typeof C.value < "u" ? C.value : s[C];
|
|
1489
1489
|
if (!(b && k === null)) {
|
|
1490
|
-
var T = _ && n ? String(C).replace(/\./g, "%2E") : String(C), H = w(s) ? typeof
|
|
1490
|
+
var T = _ && n ? String(C).replace(/\./g, "%2E") : String(C), H = w(s) ? typeof m == "function" ? m(ue, T) : ue : ue + (_ ? "." + T : "[" + T + "]");
|
|
1491
1491
|
G.set(o, K);
|
|
1492
1492
|
var Q = e();
|
|
1493
1493
|
Q.set(M, G), v(le, f(
|
|
1494
1494
|
k,
|
|
1495
1495
|
H,
|
|
1496
|
-
|
|
1496
|
+
m,
|
|
1497
1497
|
S,
|
|
1498
1498
|
D,
|
|
1499
1499
|
P,
|
|
1500
1500
|
b,
|
|
1501
1501
|
n,
|
|
1502
|
-
|
|
1502
|
+
m === "comma" && W && w(s) ? null : c,
|
|
1503
1503
|
d,
|
|
1504
|
-
|
|
1504
|
+
E,
|
|
1505
1505
|
_,
|
|
1506
1506
|
x,
|
|
1507
1507
|
U,
|
|
@@ -1515,83 +1515,83 @@ function Bn() {
|
|
|
1515
1515
|
return le;
|
|
1516
1516
|
}, a = function(o) {
|
|
1517
1517
|
if (!o)
|
|
1518
|
-
return
|
|
1518
|
+
return h;
|
|
1519
1519
|
if (typeof o.allowEmptyArrays < "u" && typeof o.allowEmptyArrays != "boolean")
|
|
1520
1520
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1521
1521
|
if (typeof o.encodeDotInKeys < "u" && typeof o.encodeDotInKeys != "boolean")
|
|
1522
1522
|
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1523
1523
|
if (o.encoder !== null && typeof o.encoder < "u" && typeof o.encoder != "function")
|
|
1524
1524
|
throw new TypeError("Encoder has to be a function.");
|
|
1525
|
-
var I = o.charset ||
|
|
1525
|
+
var I = o.charset || h.charset;
|
|
1526
1526
|
if (typeof o.charset < "u" && o.charset !== "utf-8" && o.charset !== "iso-8859-1")
|
|
1527
1527
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1528
|
-
var
|
|
1528
|
+
var m = u.default;
|
|
1529
1529
|
if (typeof o.format < "u") {
|
|
1530
1530
|
if (!l.call(u.formatters, o.format))
|
|
1531
1531
|
throw new TypeError("Unknown format option provided.");
|
|
1532
|
-
|
|
1532
|
+
m = o.format;
|
|
1533
1533
|
}
|
|
1534
|
-
var S = u.formatters[
|
|
1534
|
+
var S = u.formatters[m], D = h.filter;
|
|
1535
1535
|
(typeof o.filter == "function" || w(o.filter)) && (D = o.filter);
|
|
1536
1536
|
var P;
|
|
1537
|
-
if (o.arrayFormat in g ? P = o.arrayFormat : "indices" in o ? P = o.indices ? "indices" : "repeat" : P =
|
|
1537
|
+
if (o.arrayFormat in g ? P = o.arrayFormat : "indices" in o ? P = o.indices ? "indices" : "repeat" : P = h.arrayFormat, "commaRoundTrip" in o && typeof o.commaRoundTrip != "boolean")
|
|
1538
1538
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1539
|
-
var b = typeof o.allowDots > "u" ? o.encodeDotInKeys === !0 ? !0 :
|
|
1539
|
+
var b = typeof o.allowDots > "u" ? o.encodeDotInKeys === !0 ? !0 : h.allowDots : !!o.allowDots;
|
|
1540
1540
|
return {
|
|
1541
|
-
addQueryPrefix: typeof o.addQueryPrefix == "boolean" ? o.addQueryPrefix :
|
|
1541
|
+
addQueryPrefix: typeof o.addQueryPrefix == "boolean" ? o.addQueryPrefix : h.addQueryPrefix,
|
|
1542
1542
|
allowDots: b,
|
|
1543
|
-
allowEmptyArrays: typeof o.allowEmptyArrays == "boolean" ? !!o.allowEmptyArrays :
|
|
1543
|
+
allowEmptyArrays: typeof o.allowEmptyArrays == "boolean" ? !!o.allowEmptyArrays : h.allowEmptyArrays,
|
|
1544
1544
|
arrayFormat: P,
|
|
1545
1545
|
charset: I,
|
|
1546
|
-
charsetSentinel: typeof o.charsetSentinel == "boolean" ? o.charsetSentinel :
|
|
1546
|
+
charsetSentinel: typeof o.charsetSentinel == "boolean" ? o.charsetSentinel : h.charsetSentinel,
|
|
1547
1547
|
commaRoundTrip: !!o.commaRoundTrip,
|
|
1548
|
-
delimiter: typeof o.delimiter > "u" ?
|
|
1549
|
-
encode: typeof o.encode == "boolean" ? o.encode :
|
|
1550
|
-
encodeDotInKeys: typeof o.encodeDotInKeys == "boolean" ? o.encodeDotInKeys :
|
|
1551
|
-
encoder: typeof o.encoder == "function" ? o.encoder :
|
|
1552
|
-
encodeValuesOnly: typeof o.encodeValuesOnly == "boolean" ? o.encodeValuesOnly :
|
|
1548
|
+
delimiter: typeof o.delimiter > "u" ? h.delimiter : o.delimiter,
|
|
1549
|
+
encode: typeof o.encode == "boolean" ? o.encode : h.encode,
|
|
1550
|
+
encodeDotInKeys: typeof o.encodeDotInKeys == "boolean" ? o.encodeDotInKeys : h.encodeDotInKeys,
|
|
1551
|
+
encoder: typeof o.encoder == "function" ? o.encoder : h.encoder,
|
|
1552
|
+
encodeValuesOnly: typeof o.encodeValuesOnly == "boolean" ? o.encodeValuesOnly : h.encodeValuesOnly,
|
|
1553
1553
|
filter: D,
|
|
1554
|
-
format:
|
|
1554
|
+
format: m,
|
|
1555
1555
|
formatter: S,
|
|
1556
|
-
serializeDate: typeof o.serializeDate == "function" ? o.serializeDate :
|
|
1557
|
-
skipNulls: typeof o.skipNulls == "boolean" ? o.skipNulls :
|
|
1556
|
+
serializeDate: typeof o.serializeDate == "function" ? o.serializeDate : h.serializeDate,
|
|
1557
|
+
skipNulls: typeof o.skipNulls == "boolean" ? o.skipNulls : h.skipNulls,
|
|
1558
1558
|
sort: typeof o.sort == "function" ? o.sort : null,
|
|
1559
|
-
strictNullHandling: typeof o.strictNullHandling == "boolean" ? o.strictNullHandling :
|
|
1559
|
+
strictNullHandling: typeof o.strictNullHandling == "boolean" ? o.strictNullHandling : h.strictNullHandling
|
|
1560
1560
|
};
|
|
1561
1561
|
};
|
|
1562
1562
|
return Ir = function(f, o) {
|
|
1563
|
-
var I = f,
|
|
1564
|
-
typeof
|
|
1563
|
+
var I = f, m = a(o), S, D;
|
|
1564
|
+
typeof m.filter == "function" ? (D = m.filter, I = D("", I)) : w(m.filter) && (D = m.filter, S = D);
|
|
1565
1565
|
var P = [];
|
|
1566
1566
|
if (typeof I != "object" || I === null)
|
|
1567
1567
|
return "";
|
|
1568
|
-
var b = g[
|
|
1569
|
-
S || (S = Object.keys(I)),
|
|
1568
|
+
var b = g[m.arrayFormat], n = b === "comma" && m.commaRoundTrip;
|
|
1569
|
+
S || (S = Object.keys(I)), m.sort && S.sort(m.sort);
|
|
1570
1570
|
for (var c = e(), d = 0; d < S.length; ++d) {
|
|
1571
|
-
var
|
|
1572
|
-
|
|
1571
|
+
var E = S[d], _ = I[E];
|
|
1572
|
+
m.skipNulls && _ === null || v(P, A(
|
|
1573
1573
|
_,
|
|
1574
|
-
|
|
1574
|
+
E,
|
|
1575
1575
|
b,
|
|
1576
1576
|
n,
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1577
|
+
m.allowEmptyArrays,
|
|
1578
|
+
m.strictNullHandling,
|
|
1579
|
+
m.skipNulls,
|
|
1580
|
+
m.encodeDotInKeys,
|
|
1581
|
+
m.encode ? m.encoder : null,
|
|
1582
|
+
m.filter,
|
|
1583
|
+
m.sort,
|
|
1584
|
+
m.allowDots,
|
|
1585
|
+
m.serializeDate,
|
|
1586
|
+
m.format,
|
|
1587
|
+
m.formatter,
|
|
1588
|
+
m.encodeValuesOnly,
|
|
1589
|
+
m.charset,
|
|
1590
1590
|
c
|
|
1591
1591
|
));
|
|
1592
1592
|
}
|
|
1593
|
-
var x = P.join(
|
|
1594
|
-
return
|
|
1593
|
+
var x = P.join(m.delimiter), U = m.addQueryPrefix === !0 ? "?" : "";
|
|
1594
|
+
return m.charsetSentinel && (m.charset === "iso-8859-1" ? U += "utf8=%26%2310003%3B&" : U += "utf8=%E2%9C%93&"), x.length > 0 ? U + x : "";
|
|
1595
1595
|
}, Ir;
|
|
1596
1596
|
}
|
|
1597
1597
|
var _r, Lt;
|
|
@@ -1631,27 +1631,27 @@ function Un() {
|
|
|
1631
1631
|
if (a.throwOnLimitExceeded && f >= a.arrayLimit)
|
|
1632
1632
|
throw new RangeError("Array limit exceeded. Only " + a.arrayLimit + " element" + (a.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1633
1633
|
return A;
|
|
1634
|
-
}, R = "utf8=%26%2310003%3B", v = "utf8=%E2%9C%93",
|
|
1634
|
+
}, R = "utf8=%26%2310003%3B", v = "utf8=%E2%9C%93", O = function(a, f) {
|
|
1635
1635
|
var o = { __proto__: null }, I = f.ignoreQueryPrefix ? a.replace(/^\?/, "") : a;
|
|
1636
1636
|
I = I.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1637
|
-
var
|
|
1637
|
+
var m = f.parameterLimit === 1 / 0 ? void 0 : f.parameterLimit, S = I.split(
|
|
1638
1638
|
f.delimiter,
|
|
1639
|
-
f.throwOnLimitExceeded && typeof
|
|
1639
|
+
f.throwOnLimitExceeded && typeof m < "u" ? m + 1 : m
|
|
1640
1640
|
);
|
|
1641
|
-
if (f.throwOnLimitExceeded && typeof
|
|
1642
|
-
throw new RangeError("Parameter limit exceeded. Only " +
|
|
1641
|
+
if (f.throwOnLimitExceeded && typeof m < "u" && S.length > m)
|
|
1642
|
+
throw new RangeError("Parameter limit exceeded. Only " + m + " parameter" + (m === 1 ? "" : "s") + " allowed.");
|
|
1643
1643
|
var D = -1, P, b = f.charset;
|
|
1644
1644
|
if (f.charsetSentinel)
|
|
1645
1645
|
for (P = 0; P < S.length; ++P)
|
|
1646
1646
|
S[P].indexOf("utf8=") === 0 && (S[P] === v ? b = "utf-8" : S[P] === R && (b = "iso-8859-1"), D = P, P = S.length);
|
|
1647
1647
|
for (P = 0; P < S.length; ++P)
|
|
1648
1648
|
if (P !== D) {
|
|
1649
|
-
var n = S[P], c = n.indexOf("]="), d = c === -1 ? n.indexOf("=") : c + 1,
|
|
1650
|
-
if (d === -1 ? (
|
|
1649
|
+
var n = S[P], c = n.indexOf("]="), d = c === -1 ? n.indexOf("=") : c + 1, E, _;
|
|
1650
|
+
if (d === -1 ? (E = f.decoder(n, l.decoder, b, "key"), _ = f.strictNullHandling ? null : "") : (E = f.decoder(n.slice(0, d), l.decoder, b, "key"), E !== null && (_ = e.maybeMap(
|
|
1651
1651
|
w(
|
|
1652
1652
|
n.slice(d + 1),
|
|
1653
1653
|
f,
|
|
1654
|
-
u(o[
|
|
1654
|
+
u(o[E]) ? o[E].length : 0
|
|
1655
1655
|
),
|
|
1656
1656
|
function(U) {
|
|
1657
1657
|
return f.decoder(U, l.decoder, b, "value");
|
|
@@ -1661,22 +1661,22 @@ function Un() {
|
|
|
1661
1661
|
throw new RangeError("Array limit exceeded. Only " + f.arrayLimit + " element" + (f.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1662
1662
|
_ = e.combine([], _, f.arrayLimit, f.plainObjects);
|
|
1663
1663
|
}
|
|
1664
|
-
if (
|
|
1665
|
-
var x = i.call(o,
|
|
1666
|
-
x && (f.duplicates === "combine" || n.indexOf("[]=") > -1) ? o[
|
|
1667
|
-
o[
|
|
1664
|
+
if (E !== null) {
|
|
1665
|
+
var x = i.call(o, E);
|
|
1666
|
+
x && (f.duplicates === "combine" || n.indexOf("[]=") > -1) ? o[E] = e.combine(
|
|
1667
|
+
o[E],
|
|
1668
1668
|
_,
|
|
1669
1669
|
f.arrayLimit,
|
|
1670
1670
|
f.plainObjects
|
|
1671
|
-
) : (!x || f.duplicates === "last") && (o[
|
|
1671
|
+
) : (!x || f.duplicates === "last") && (o[E] = _);
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
1674
|
return o;
|
|
1675
1675
|
}, p = function(A, a, f, o) {
|
|
1676
1676
|
var I = 0;
|
|
1677
1677
|
if (A.length > 0 && A[A.length - 1] === "[]") {
|
|
1678
|
-
var
|
|
1679
|
-
I = Array.isArray(a) && a[
|
|
1678
|
+
var m = A.slice(0, -1).join("");
|
|
1679
|
+
I = Array.isArray(a) && a[m] ? a[m].length : 0;
|
|
1680
1680
|
}
|
|
1681
1681
|
for (var S = o ? a : w(a, f, I), D = A.length - 1; D >= 0; --D) {
|
|
1682
1682
|
var P, b = A[D];
|
|
@@ -1689,31 +1689,31 @@ function Un() {
|
|
|
1689
1689
|
);
|
|
1690
1690
|
else {
|
|
1691
1691
|
P = f.plainObjects ? { __proto__: null } : {};
|
|
1692
|
-
var n = b.charAt(0) === "[" && b.charAt(b.length - 1) === "]" ? b.slice(1, -1) : b, c = f.decodeDotInKeys ? n.replace(/%2E/g, ".") : n, d = parseInt(c, 10),
|
|
1692
|
+
var n = b.charAt(0) === "[" && b.charAt(b.length - 1) === "]" ? b.slice(1, -1) : b, c = f.decodeDotInKeys ? n.replace(/%2E/g, ".") : n, d = parseInt(c, 10), E = !isNaN(d) && b !== c && String(d) === c && d >= 0 && f.parseArrays;
|
|
1693
1693
|
if (!f.parseArrays && c === "")
|
|
1694
1694
|
P = { 0: S };
|
|
1695
|
-
else if (
|
|
1695
|
+
else if (E && d < f.arrayLimit)
|
|
1696
1696
|
P = [], P[d] = S;
|
|
1697
1697
|
else {
|
|
1698
|
-
if (
|
|
1698
|
+
if (E && f.throwOnLimitExceeded)
|
|
1699
1699
|
throw new RangeError("Array limit exceeded. Only " + f.arrayLimit + " element" + (f.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1700
|
-
|
|
1700
|
+
E ? (P[d] = S, e.markOverflow(P, d)) : c !== "__proto__" && (P[c] = S);
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
1703
|
S = P;
|
|
1704
1704
|
}
|
|
1705
1705
|
return S;
|
|
1706
|
-
},
|
|
1706
|
+
}, h = function(a, f) {
|
|
1707
1707
|
var o = f.allowDots ? a.replace(/\.([^.[]+)/g, "[$1]") : a;
|
|
1708
1708
|
if (f.depth <= 0)
|
|
1709
1709
|
return !f.plainObjects && i.call(Object.prototype, o) && !f.allowPrototypes ? void 0 : [o];
|
|
1710
|
-
var I = /(\[[^[\]]*])/,
|
|
1710
|
+
var I = /(\[[^[\]]*])/, m = /(\[[^[\]]*])/g, S = I.exec(o), D = S ? o.slice(0, S.index) : o, P = [];
|
|
1711
1711
|
if (D) {
|
|
1712
1712
|
if (!f.plainObjects && i.call(Object.prototype, D) && !f.allowPrototypes)
|
|
1713
1713
|
return;
|
|
1714
1714
|
P[P.length] = D;
|
|
1715
1715
|
}
|
|
1716
|
-
for (var b = 0; (S =
|
|
1716
|
+
for (var b = 0; (S = m.exec(o)) !== null && b < f.depth; ) {
|
|
1717
1717
|
b += 1;
|
|
1718
1718
|
var n = S[1].slice(1, -1);
|
|
1719
1719
|
if (!f.plainObjects && i.call(Object.prototype, n) && !f.allowPrototypes)
|
|
@@ -1728,9 +1728,9 @@ function Un() {
|
|
|
1728
1728
|
return P;
|
|
1729
1729
|
}, y = function(a, f, o, I) {
|
|
1730
1730
|
if (a) {
|
|
1731
|
-
var
|
|
1732
|
-
if (
|
|
1733
|
-
return p(
|
|
1731
|
+
var m = h(a, o);
|
|
1732
|
+
if (m)
|
|
1733
|
+
return p(m, f, o, I);
|
|
1734
1734
|
}
|
|
1735
1735
|
}, M = function(a) {
|
|
1736
1736
|
if (!a)
|
|
@@ -1779,8 +1779,8 @@ function Un() {
|
|
|
1779
1779
|
var f = M(a);
|
|
1780
1780
|
if (A === "" || A === null || typeof A > "u")
|
|
1781
1781
|
return f.plainObjects ? { __proto__: null } : {};
|
|
1782
|
-
for (var o = typeof A == "string" ?
|
|
1783
|
-
var D =
|
|
1782
|
+
for (var o = typeof A == "string" ? O(A, f) : A, I = f.plainObjects ? { __proto__: null } : {}, m = Object.keys(o), S = 0; S < m.length; ++S) {
|
|
1783
|
+
var D = m[S], P = y(D, o[D], f, typeof A == "string");
|
|
1784
1784
|
I = e.merge(I, P, f);
|
|
1785
1785
|
}
|
|
1786
1786
|
return f.allowSparse === !0 ? I : e.compact(I);
|
|
@@ -1798,7 +1798,7 @@ function zn() {
|
|
|
1798
1798
|
}, xr;
|
|
1799
1799
|
}
|
|
1800
1800
|
var Wn = /* @__PURE__ */ zn();
|
|
1801
|
-
const kn = "0.1.
|
|
1801
|
+
const kn = "0.1.6", Gn = [
|
|
1802
1802
|
"allow-scripts",
|
|
1803
1803
|
// Run the widget app
|
|
1804
1804
|
"allow-same-origin",
|
|
@@ -1824,13 +1824,13 @@ function qr(e, i, { accessToken: u, host: l, theme: g }, w = "/relay-widget") {
|
|
|
1824
1824
|
addQueryPrefix: !0,
|
|
1825
1825
|
skipNulls: !0
|
|
1826
1826
|
}
|
|
1827
|
-
);
|
|
1828
|
-
w === "/relay-popover" ? (e.title = "Relay popover", e.className = "relay-widget__popover-iframe", e.allow = "clipboard-write") : w === "/relay-fullscreen" ? (e.title = "Relay fullscreen", e.className = "relay-widget__fullscreen-iframe", e.allow = "camera
|
|
1827
|
+
), O = new URL(R).origin, p = (...M) => M.map((A) => `${A} ${O}`).join(";");
|
|
1828
|
+
w === "/relay-popover" ? (e.title = "Relay popover", e.className = "relay-widget__popover-iframe", e.allow = p("clipboard-write")) : w === "/relay-fullscreen" ? (e.title = "Relay fullscreen", e.className = "relay-widget__fullscreen-iframe", e.allow = p("camera", "microphone", "clipboard-write")) : (e.title = "Verify via Relay", e.className = "relay-widget__iframe", e.allow = p("clipboard-write")), e.setAttribute(
|
|
1829
1829
|
"sandbox",
|
|
1830
1830
|
Gn.concat(Hn).join(" ")
|
|
1831
1831
|
), e.referrerPolicy = "no-referrer";
|
|
1832
|
-
const
|
|
1833
|
-
return e.srcdoc = `<!doctype html><meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0;url=${
|
|
1832
|
+
const h = R + w + v, y = h.replace(/&/g, "&").replace(/"/g, """);
|
|
1833
|
+
return e.srcdoc = `<!doctype html><meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0;url=${y}"><meta name="color-scheme" content="light dark">`, e.src = h, e;
|
|
1834
1834
|
}
|
|
1835
1835
|
class jn {
|
|
1836
1836
|
/**
|