media-av 0.0.23 → 0.0.24
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/mediaAV.js +146 -146
- package/dist/mediaAV.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/mediaAV.js
CHANGED
|
@@ -43,7 +43,7 @@ const vi = Xe("string"), B = Xe("function"), jr = Xe("number"), Ye = (t) => t !=
|
|
|
43
43
|
let e;
|
|
44
44
|
return t && (typeof FormData == "function" && t instanceof FormData || B(t.append) && ((e = Qe(t)) === "formdata" || // detect form-data instance
|
|
45
45
|
e === "object" && B(t.toString) && t.toString() === "[object FormData]"));
|
|
46
|
-
}, Ai = V("URLSearchParams"), [Di, _i, Ii,
|
|
46
|
+
}, Ai = V("URLSearchParams"), [Di, _i, Ii, Li] = ["ReadableStream", "Request", "Response", "Headers"].map(V), ki = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
47
47
|
function De(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
48
48
|
if (t === null || typeof t > "u")
|
|
49
49
|
return;
|
|
@@ -67,7 +67,7 @@ function $r(t, e) {
|
|
|
67
67
|
return i;
|
|
68
68
|
return null;
|
|
69
69
|
}
|
|
70
|
-
const
|
|
70
|
+
const re = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Hr = (t) => !Ae(t) && t !== re;
|
|
71
71
|
function mt() {
|
|
72
72
|
const { caseless: t } = Hr(this) && this || {}, e = {}, n = (r, i) => {
|
|
73
73
|
const o = t && $r(e, i) || i;
|
|
@@ -184,14 +184,14 @@ const Xi = (t) => {
|
|
|
184
184
|
return r;
|
|
185
185
|
};
|
|
186
186
|
return n(t, 0);
|
|
187
|
-
}, Yi = V("AsyncFunction"), Zi = (t) => t && (Ye(t) || B(t)) && B(t.then) && B(t.catch), zr = ((t, e) => t ? setImmediate : e ? ((n, r) => (
|
|
188
|
-
i ===
|
|
187
|
+
}, Yi = V("AsyncFunction"), Zi = (t) => t && (Ye(t) || B(t)) && B(t.then) && B(t.catch), zr = ((t, e) => t ? setImmediate : e ? ((n, r) => (re.addEventListener("message", ({ source: i, data: o }) => {
|
|
188
|
+
i === re && o === n && r.length && r.shift()();
|
|
189
189
|
}, !1), (i) => {
|
|
190
|
-
r.push(i),
|
|
190
|
+
r.push(i), re.postMessage(n, "*");
|
|
191
191
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
192
192
|
typeof setImmediate == "function",
|
|
193
|
-
B(
|
|
194
|
-
), eo = typeof queueMicrotask < "u" ? queueMicrotask.bind(
|
|
193
|
+
B(re.postMessage)
|
|
194
|
+
), eo = typeof queueMicrotask < "u" ? queueMicrotask.bind(re) : typeof process < "u" && process.nextTick || zr, p = {
|
|
195
195
|
isArray: Se,
|
|
196
196
|
isArrayBuffer: Br,
|
|
197
197
|
isBuffer: gi,
|
|
@@ -205,7 +205,7 @@ const Xi = (t) => {
|
|
|
205
205
|
isReadableStream: Di,
|
|
206
206
|
isRequest: _i,
|
|
207
207
|
isResponse: Ii,
|
|
208
|
-
isHeaders:
|
|
208
|
+
isHeaders: Li,
|
|
209
209
|
isUndefined: Ae,
|
|
210
210
|
isDate: bi,
|
|
211
211
|
isFile: Ri,
|
|
@@ -219,7 +219,7 @@ const Xi = (t) => {
|
|
|
219
219
|
forEach: De,
|
|
220
220
|
merge: mt,
|
|
221
221
|
extend: xi,
|
|
222
|
-
trim:
|
|
222
|
+
trim: ki,
|
|
223
223
|
stripBOM: Mi,
|
|
224
224
|
inherits: Fi,
|
|
225
225
|
toFlatObject: Ni,
|
|
@@ -240,7 +240,7 @@ const Xi = (t) => {
|
|
|
240
240
|
noop: Ji,
|
|
241
241
|
toFiniteNumber: Wi,
|
|
242
242
|
findKey: $r,
|
|
243
|
-
global:
|
|
243
|
+
global: re,
|
|
244
244
|
isContextDefined: Hr,
|
|
245
245
|
ALPHABET: Vr,
|
|
246
246
|
generateString: Ki,
|
|
@@ -958,7 +958,7 @@ function tn(t, e) {
|
|
|
958
958
|
return t && !_o(e) ? Io(t, e) : e;
|
|
959
959
|
}
|
|
960
960
|
const sr = (t) => t instanceof N ? { ...t } : t;
|
|
961
|
-
function
|
|
961
|
+
function se(t, e) {
|
|
962
962
|
e = e || {};
|
|
963
963
|
const n = {};
|
|
964
964
|
function r(c, u, f) {
|
|
@@ -1023,7 +1023,7 @@ function ae(t, e) {
|
|
|
1023
1023
|
}), n;
|
|
1024
1024
|
}
|
|
1025
1025
|
const rn = (t) => {
|
|
1026
|
-
const e =
|
|
1026
|
+
const e = se({}, t);
|
|
1027
1027
|
let { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: o, headers: s, auth: a } = e;
|
|
1028
1028
|
e.headers = s = N.from(s), e.url = Qr(tn(e.baseURL, e.url), t.params, t.paramsSerializer), a && s.set(
|
|
1029
1029
|
"Authorization",
|
|
@@ -1043,7 +1043,7 @@ const rn = (t) => {
|
|
|
1043
1043
|
c && s.set(i, c);
|
|
1044
1044
|
}
|
|
1045
1045
|
return e;
|
|
1046
|
-
},
|
|
1046
|
+
}, Lo = typeof XMLHttpRequest < "u", ko = Lo && function(t) {
|
|
1047
1047
|
return new Promise(function(n, r) {
|
|
1048
1048
|
const i = rn(t);
|
|
1049
1049
|
let o = i.data;
|
|
@@ -1290,7 +1290,7 @@ const Uo = async (t) => {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
}), vt = {
|
|
1292
1292
|
http: to,
|
|
1293
|
-
xhr:
|
|
1293
|
+
xhr: ko,
|
|
1294
1294
|
fetch: Bo
|
|
1295
1295
|
};
|
|
1296
1296
|
p.forEach(vt, (t, e) => {
|
|
@@ -1401,7 +1401,7 @@ const Ct = {
|
|
|
1401
1401
|
assertOptions: $o,
|
|
1402
1402
|
validators: jt
|
|
1403
1403
|
}, X = Ct.validators;
|
|
1404
|
-
let
|
|
1404
|
+
let ne = class {
|
|
1405
1405
|
constructor(e) {
|
|
1406
1406
|
this.defaults = e, this.interceptors = {
|
|
1407
1407
|
request: new rr(),
|
|
@@ -1434,7 +1434,7 @@ let ie = class {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
1436
|
_request(e, n) {
|
|
1437
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
|
1437
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = se(this.defaults, n);
|
|
1438
1438
|
const { transitional: r, paramsSerializer: i, headers: o } = n;
|
|
1439
1439
|
r !== void 0 && Ct.assertOptions(r, {
|
|
1440
1440
|
silentJSONParsing: X.transitional(X.boolean),
|
|
@@ -1493,14 +1493,14 @@ let ie = class {
|
|
|
1493
1493
|
return u;
|
|
1494
1494
|
}
|
|
1495
1495
|
getUri(e) {
|
|
1496
|
-
e =
|
|
1496
|
+
e = se(this.defaults, e);
|
|
1497
1497
|
const n = tn(e.baseURL, e.url);
|
|
1498
1498
|
return Qr(n, e.params, e.paramsSerializer);
|
|
1499
1499
|
}
|
|
1500
1500
|
};
|
|
1501
1501
|
p.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1502
|
-
|
|
1503
|
-
return this.request(
|
|
1502
|
+
ne.prototype[e] = function(n, r) {
|
|
1503
|
+
return this.request(se(r || {}, {
|
|
1504
1504
|
method: e,
|
|
1505
1505
|
url: n,
|
|
1506
1506
|
data: (r || {}).data
|
|
@@ -1510,7 +1510,7 @@ p.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1510
1510
|
p.forEach(["post", "put", "patch"], function(e) {
|
|
1511
1511
|
function n(r) {
|
|
1512
1512
|
return function(o, s, a) {
|
|
1513
|
-
return this.request(
|
|
1513
|
+
return this.request(se(a || {}, {
|
|
1514
1514
|
method: e,
|
|
1515
1515
|
headers: r ? {
|
|
1516
1516
|
"Content-Type": "multipart/form-data"
|
|
@@ -1520,7 +1520,7 @@ p.forEach(["post", "put", "patch"], function(e) {
|
|
|
1520
1520
|
}));
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
ne.prototype[e] = n(), ne.prototype[e + "Form"] = n(!0);
|
|
1524
1524
|
});
|
|
1525
1525
|
let Ho = class cn {
|
|
1526
1526
|
constructor(e) {
|
|
@@ -1666,13 +1666,13 @@ Object.entries(bt).forEach(([t, e]) => {
|
|
|
1666
1666
|
bt[e] = t;
|
|
1667
1667
|
});
|
|
1668
1668
|
function ln(t) {
|
|
1669
|
-
const e = new
|
|
1670
|
-
return p.extend(n,
|
|
1671
|
-
return ln(
|
|
1669
|
+
const e = new ne(t), n = wr(ne.prototype.request, e);
|
|
1670
|
+
return p.extend(n, ne.prototype, e, { allOwnKeys: !0 }), p.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
|
|
1671
|
+
return ln(se(t, i));
|
|
1672
1672
|
}, n;
|
|
1673
1673
|
}
|
|
1674
1674
|
const O = ln(_e);
|
|
1675
|
-
O.Axios =
|
|
1675
|
+
O.Axios = ne;
|
|
1676
1676
|
O.CanceledError = ve;
|
|
1677
1677
|
O.CancelToken = Ho;
|
|
1678
1678
|
O.isCancel = Zr;
|
|
@@ -1685,7 +1685,7 @@ O.all = function(e) {
|
|
|
1685
1685
|
};
|
|
1686
1686
|
O.spread = Go;
|
|
1687
1687
|
O.isAxiosError = Vo;
|
|
1688
|
-
O.mergeConfig =
|
|
1688
|
+
O.mergeConfig = se;
|
|
1689
1689
|
O.AxiosHeaders = N;
|
|
1690
1690
|
O.formToJSON = (t) => Yr(p.isHTMLForm(t) ? new FormData(t) : t);
|
|
1691
1691
|
O.getAdapter = sn.getAdapter;
|
|
@@ -1789,37 +1789,37 @@ var qo = function() {
|
|
|
1789
1789
|
return fn('"use strict"; return (' + t + ").constructor;")();
|
|
1790
1790
|
} catch {
|
|
1791
1791
|
}
|
|
1792
|
-
},
|
|
1793
|
-
if (
|
|
1792
|
+
}, ie = Object.getOwnPropertyDescriptor;
|
|
1793
|
+
if (ie)
|
|
1794
1794
|
try {
|
|
1795
|
-
|
|
1795
|
+
ie({}, "");
|
|
1796
1796
|
} catch {
|
|
1797
|
-
|
|
1797
|
+
ie = null;
|
|
1798
1798
|
}
|
|
1799
1799
|
var at = function() {
|
|
1800
1800
|
throw new de();
|
|
1801
|
-
}, is =
|
|
1801
|
+
}, is = ie ? function() {
|
|
1802
1802
|
try {
|
|
1803
1803
|
return arguments.callee, at;
|
|
1804
1804
|
} catch {
|
|
1805
1805
|
try {
|
|
1806
|
-
return
|
|
1806
|
+
return ie(arguments, "callee").get;
|
|
1807
1807
|
} catch {
|
|
1808
1808
|
return at;
|
|
1809
1809
|
}
|
|
1810
1810
|
}
|
|
1811
|
-
}() : at,
|
|
1811
|
+
}() : at, ue = Wo(), os = Qo(), I = Object.getPrototypeOf || (os ? function(t) {
|
|
1812
1812
|
return t.__proto__;
|
|
1813
|
-
} : null),
|
|
1813
|
+
} : null), fe = {}, ss = typeof Uint8Array > "u" || !I ? T : I(Uint8Array), oe = {
|
|
1814
1814
|
"%AggregateError%": typeof AggregateError > "u" ? T : AggregateError,
|
|
1815
1815
|
"%Array%": Array,
|
|
1816
1816
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? T : ArrayBuffer,
|
|
1817
|
-
"%ArrayIteratorPrototype%":
|
|
1817
|
+
"%ArrayIteratorPrototype%": ue && I ? I([][Symbol.iterator]()) : T,
|
|
1818
1818
|
"%AsyncFromSyncIteratorPrototype%": T,
|
|
1819
|
-
"%AsyncFunction%":
|
|
1820
|
-
"%AsyncGenerator%":
|
|
1821
|
-
"%AsyncGeneratorFunction%":
|
|
1822
|
-
"%AsyncIteratorPrototype%":
|
|
1819
|
+
"%AsyncFunction%": fe,
|
|
1820
|
+
"%AsyncGenerator%": fe,
|
|
1821
|
+
"%AsyncGeneratorFunction%": fe,
|
|
1822
|
+
"%AsyncIteratorPrototype%": fe,
|
|
1823
1823
|
"%Atomics%": typeof Atomics > "u" ? T : Atomics,
|
|
1824
1824
|
"%BigInt%": typeof BigInt > "u" ? T : BigInt,
|
|
1825
1825
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? T : BigInt64Array,
|
|
@@ -1839,16 +1839,16 @@ var at = function() {
|
|
|
1839
1839
|
"%Float64Array%": typeof Float64Array > "u" ? T : Float64Array,
|
|
1840
1840
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? T : FinalizationRegistry,
|
|
1841
1841
|
"%Function%": fn,
|
|
1842
|
-
"%GeneratorFunction%":
|
|
1842
|
+
"%GeneratorFunction%": fe,
|
|
1843
1843
|
"%Int8Array%": typeof Int8Array > "u" ? T : Int8Array,
|
|
1844
1844
|
"%Int16Array%": typeof Int16Array > "u" ? T : Int16Array,
|
|
1845
1845
|
"%Int32Array%": typeof Int32Array > "u" ? T : Int32Array,
|
|
1846
1846
|
"%isFinite%": isFinite,
|
|
1847
1847
|
"%isNaN%": isNaN,
|
|
1848
|
-
"%IteratorPrototype%":
|
|
1848
|
+
"%IteratorPrototype%": ue && I ? I(I([][Symbol.iterator]())) : T,
|
|
1849
1849
|
"%JSON%": typeof JSON == "object" ? JSON : T,
|
|
1850
1850
|
"%Map%": typeof Map > "u" ? T : Map,
|
|
1851
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
1851
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !ue || !I ? T : I((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
1852
1852
|
"%Math%": Math,
|
|
1853
1853
|
"%Number%": Number,
|
|
1854
1854
|
"%Object%": Object,
|
|
@@ -1861,11 +1861,11 @@ var at = function() {
|
|
|
1861
1861
|
"%Reflect%": typeof Reflect > "u" ? T : Reflect,
|
|
1862
1862
|
"%RegExp%": RegExp,
|
|
1863
1863
|
"%Set%": typeof Set > "u" ? T : Set,
|
|
1864
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
1864
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !ue || !I ? T : I((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
1865
1865
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? T : SharedArrayBuffer,
|
|
1866
1866
|
"%String%": String,
|
|
1867
|
-
"%StringIteratorPrototype%":
|
|
1868
|
-
"%Symbol%":
|
|
1867
|
+
"%StringIteratorPrototype%": ue && I ? I(""[Symbol.iterator]()) : T,
|
|
1868
|
+
"%Symbol%": ue ? Symbol : T,
|
|
1869
1869
|
"%SyntaxError%": me,
|
|
1870
1870
|
"%ThrowTypeError%": is,
|
|
1871
1871
|
"%TypedArray%": ss,
|
|
@@ -1884,7 +1884,7 @@ if (I)
|
|
|
1884
1884
|
null.error;
|
|
1885
1885
|
} catch (t) {
|
|
1886
1886
|
var as = I(I(t));
|
|
1887
|
-
|
|
1887
|
+
oe["%Error.prototype%"] = as;
|
|
1888
1888
|
}
|
|
1889
1889
|
var cs = function t(e) {
|
|
1890
1890
|
var n;
|
|
@@ -1901,7 +1901,7 @@ var cs = function t(e) {
|
|
|
1901
1901
|
var i = t("%AsyncGenerator%");
|
|
1902
1902
|
i && I && (n = I(i.prototype));
|
|
1903
1903
|
}
|
|
1904
|
-
return
|
|
1904
|
+
return oe[e] = n, n;
|
|
1905
1905
|
}, hr = {
|
|
1906
1906
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
1907
1907
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -1966,9 +1966,9 @@ var cs = function t(e) {
|
|
|
1966
1966
|
}), i;
|
|
1967
1967
|
}, ms = function(e, n) {
|
|
1968
1968
|
var r = e, i;
|
|
1969
|
-
if (qe(hr, r) && (i = hr[r], r = "%" + i[0] + "%"), qe(
|
|
1970
|
-
var o =
|
|
1971
|
-
if (o ===
|
|
1969
|
+
if (qe(hr, r) && (i = hr[r], r = "%" + i[0] + "%"), qe(oe, r)) {
|
|
1970
|
+
var o = oe[r];
|
|
1971
|
+
if (o === fe && (o = cs(r)), typeof o > "u" && !n)
|
|
1972
1972
|
throw new de("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1973
1973
|
return {
|
|
1974
1974
|
alias: i,
|
|
@@ -1990,20 +1990,20 @@ var cs = function t(e) {
|
|
|
1990
1990
|
var d = r[u], m = Je(d, 0, 1), h = Je(d, -1);
|
|
1991
1991
|
if ((m === '"' || m === "'" || m === "`" || h === '"' || h === "'" || h === "`") && m !== h)
|
|
1992
1992
|
throw new me("property names with quotes must have matching quotes");
|
|
1993
|
-
if ((d === "constructor" || !f) && (l = !0), i += "." + d, s = "%" + i + "%", qe(
|
|
1994
|
-
a =
|
|
1993
|
+
if ((d === "constructor" || !f) && (l = !0), i += "." + d, s = "%" + i + "%", qe(oe, s))
|
|
1994
|
+
a = oe[s];
|
|
1995
1995
|
else if (a != null) {
|
|
1996
1996
|
if (!(d in a)) {
|
|
1997
1997
|
if (!n)
|
|
1998
1998
|
throw new de("base intrinsic for " + e + " exists, but the property is not available.");
|
|
1999
1999
|
return;
|
|
2000
2000
|
}
|
|
2001
|
-
if (
|
|
2002
|
-
var y =
|
|
2001
|
+
if (ie && u + 1 >= r.length) {
|
|
2002
|
+
var y = ie(a, d);
|
|
2003
2003
|
f = !!y, f && "get" in y && !("originalValue" in y.get) ? a = y.get : a = a[d];
|
|
2004
2004
|
} else
|
|
2005
2005
|
f = qe(a, d), a = a[d];
|
|
2006
|
-
f && !l && (
|
|
2006
|
+
f && !l && (oe[s] = a);
|
|
2007
2007
|
}
|
|
2008
2008
|
}
|
|
2009
2009
|
return a;
|
|
@@ -2041,7 +2041,7 @@ const vs = {}, Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2041
2041
|
__proto__: null,
|
|
2042
2042
|
default: vs
|
|
2043
2043
|
}, Symbol.toStringTag, { value: "Module" })), bs = /* @__PURE__ */ zo(Cs);
|
|
2044
|
-
var Gt = typeof Map == "function" && Map.prototype, ct = Object.getOwnPropertyDescriptor && Gt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, We = Gt && ct && typeof ct.get == "function" ? ct.get : null, yr = Gt && Map.prototype.forEach, Vt = typeof Set == "function" && Set.prototype, lt = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ke = Vt && lt && typeof lt.get == "function" ? lt.get : null, gr = Vt && Set.prototype.forEach, Rs = typeof WeakMap == "function" && WeakMap.prototype, Ee = Rs ? WeakMap.prototype.has : null, Ts = typeof WeakSet == "function" && WeakSet.prototype, Pe = Ts ? WeakSet.prototype.has : null, Es = typeof WeakRef == "function" && WeakRef.prototype, Sr = Es ? WeakRef.prototype.deref : null, Ps = Boolean.prototype.valueOf, Os = Object.prototype.toString, As = Function.prototype.toString, Ds = String.prototype.match, zt = String.prototype.slice, Z = String.prototype.replace, _s = String.prototype.toUpperCase, vr = String.prototype.toLowerCase, mn = RegExp.prototype.test, Cr = Array.prototype.concat, q = Array.prototype.join, Is = Array.prototype.slice, br = Math.floor, Rt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ut = Object.getOwnPropertySymbols, Tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ye = typeof Symbol == "function" && typeof Symbol.iterator == "object",
|
|
2044
|
+
var Gt = typeof Map == "function" && Map.prototype, ct = Object.getOwnPropertyDescriptor && Gt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, We = Gt && ct && typeof ct.get == "function" ? ct.get : null, yr = Gt && Map.prototype.forEach, Vt = typeof Set == "function" && Set.prototype, lt = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ke = Vt && lt && typeof lt.get == "function" ? lt.get : null, gr = Vt && Set.prototype.forEach, Rs = typeof WeakMap == "function" && WeakMap.prototype, Ee = Rs ? WeakMap.prototype.has : null, Ts = typeof WeakSet == "function" && WeakSet.prototype, Pe = Ts ? WeakSet.prototype.has : null, Es = typeof WeakRef == "function" && WeakRef.prototype, Sr = Es ? WeakRef.prototype.deref : null, Ps = Boolean.prototype.valueOf, Os = Object.prototype.toString, As = Function.prototype.toString, Ds = String.prototype.match, zt = String.prototype.slice, Z = String.prototype.replace, _s = String.prototype.toUpperCase, vr = String.prototype.toLowerCase, mn = RegExp.prototype.test, Cr = Array.prototype.concat, q = Array.prototype.join, Is = Array.prototype.slice, br = Math.floor, Rt = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, ut = Object.getOwnPropertySymbols, Tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ye = typeof Symbol == "function" && typeof Symbol.iterator == "object", k = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ye || !0) ? Symbol.toStringTag : null, yn = Object.prototype.propertyIsEnumerable, Rr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2045
2045
|
return t.__proto__;
|
|
2046
2046
|
} : null);
|
|
2047
2047
|
function Tr(t, e) {
|
|
@@ -2057,7 +2057,7 @@ function Tr(t, e) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
return Z.call(e, n, "$&_");
|
|
2059
2059
|
}
|
|
2060
|
-
var Et = bs, Er = Et.custom, Pr = Sn(Er) ? Er : null,
|
|
2060
|
+
var Et = bs, Er = Et.custom, Pr = Sn(Er) ? Er : null, Ls = function t(e, n, r, i) {
|
|
2061
2061
|
var o = n || {};
|
|
2062
2062
|
if (Y(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
|
|
2063
2063
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -2097,17 +2097,17 @@ var Et = bs, Er = Et.custom, Pr = Sn(Er) ? Er : null, ks = function t(e, n, r, i
|
|
|
2097
2097
|
i = [];
|
|
2098
2098
|
else if (vn(i, e) >= 0)
|
|
2099
2099
|
return "[Circular]";
|
|
2100
|
-
function d(K,
|
|
2101
|
-
if (
|
|
2102
|
-
var
|
|
2100
|
+
function d(K, ce, Le) {
|
|
2101
|
+
if (ce && (i = Is.call(i), i.push(ce)), Le) {
|
|
2102
|
+
var le = {
|
|
2103
2103
|
depth: o.depth
|
|
2104
2104
|
};
|
|
2105
|
-
return Y(o, "quoteStyle") && (
|
|
2105
|
+
return Y(o, "quoteStyle") && (le.quoteStyle = o.quoteStyle), t(K, le, r + 1, i);
|
|
2106
2106
|
}
|
|
2107
2107
|
return t(K, o, r + 1, i);
|
|
2108
2108
|
}
|
|
2109
2109
|
if (typeof e == "function" && !Or(e)) {
|
|
2110
|
-
var m = js(e), h =
|
|
2110
|
+
var m = js(e), h = ke(e, d);
|
|
2111
2111
|
return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (h.length > 0 ? " { " + q.call(h, ", ") + " }" : "");
|
|
2112
2112
|
}
|
|
2113
2113
|
if (Sn(e)) {
|
|
@@ -2116,17 +2116,17 @@ var Et = bs, Er = Et.custom, Pr = Sn(Er) ? Er : null, ks = function t(e, n, r, i
|
|
|
2116
2116
|
}
|
|
2117
2117
|
if (qs(e)) {
|
|
2118
2118
|
for (var g = "<" + vr.call(String(e.nodeName)), C = e.attributes || [], P = 0; P < C.length; P++)
|
|
2119
|
-
g += " " + C[P].name + "=" + gn(
|
|
2119
|
+
g += " " + C[P].name + "=" + gn(ks(C[P].value), "double", o);
|
|
2120
2120
|
return g += ">", e.childNodes && e.childNodes.length && (g += "..."), g += "</" + vr.call(String(e.nodeName)) + ">", g;
|
|
2121
2121
|
}
|
|
2122
2122
|
if (Pt(e)) {
|
|
2123
2123
|
if (e.length === 0)
|
|
2124
2124
|
return "[]";
|
|
2125
|
-
var b =
|
|
2125
|
+
var b = ke(e, d);
|
|
2126
2126
|
return f && !Ws(b) ? "[" + Ot(b, f) + "]" : "[ " + q.call(b, ", ") + " ]";
|
|
2127
2127
|
}
|
|
2128
2128
|
if (Ms(e)) {
|
|
2129
|
-
var A =
|
|
2129
|
+
var A = ke(e, d);
|
|
2130
2130
|
return !("cause" in Error.prototype) && "cause" in e && !yn.call(e, "cause") ? "{ [" + String(e) + "] " + q.call(Cr.call("[cause]: " + d(e.cause), A), ", ") + " }" : A.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + q.call(A, ", ") + " }";
|
|
2131
2131
|
}
|
|
2132
2132
|
if (typeof e == "object" && s) {
|
|
@@ -2137,8 +2137,8 @@ var Et = bs, Er = Et.custom, Pr = Sn(Er) ? Er : null, ks = function t(e, n, r, i
|
|
|
2137
2137
|
}
|
|
2138
2138
|
if ($s(e)) {
|
|
2139
2139
|
var U = [];
|
|
2140
|
-
return yr && yr.call(e, function(K,
|
|
2141
|
-
U.push(d(
|
|
2140
|
+
return yr && yr.call(e, function(K, ce) {
|
|
2141
|
+
U.push(d(ce, e, !0) + " => " + d(K, e));
|
|
2142
2142
|
}), Ar("Map", We.call(e), U, f);
|
|
2143
2143
|
}
|
|
2144
2144
|
if (Vs(e)) {
|
|
@@ -2162,7 +2162,7 @@ var Et = bs, Er = Et.custom, Pr = Sn(Er) ? Er : null, ks = function t(e, n, r, i
|
|
|
2162
2162
|
if (Fs(e))
|
|
2163
2163
|
return Te(d(String(e)));
|
|
2164
2164
|
if (!xs(e) && !Or(e)) {
|
|
2165
|
-
var D =
|
|
2165
|
+
var D = ke(e, d), j = Rr ? Rr(e) === Object.prototype : e instanceof Object || e.constructor === Object, $ = e instanceof Object ? "" : "null prototype", W = !j && k && Object(e) === e && k in e ? zt.call(ee(e), 8, -1) : $ ? "Object" : "", be = j || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", H = be + (W || $ ? "[" + q.call(Cr.call([], W || [], $ || []), ": ") + "] " : "");
|
|
2166
2166
|
return D.length === 0 ? H + "{}" : f ? H + "{" + Ot(D, f) + "}" : H + "{ " + q.call(D, ", ") + " }";
|
|
2167
2167
|
}
|
|
2168
2168
|
return String(e);
|
|
@@ -2171,29 +2171,29 @@ function gn(t, e, n) {
|
|
|
2171
2171
|
var r = (n.quoteStyle || e) === "double" ? '"' : "'";
|
|
2172
2172
|
return r + t + r;
|
|
2173
2173
|
}
|
|
2174
|
-
function
|
|
2174
|
+
function ks(t) {
|
|
2175
2175
|
return Z.call(String(t), /"/g, """);
|
|
2176
2176
|
}
|
|
2177
2177
|
function Pt(t) {
|
|
2178
|
-
return ee(t) === "[object Array]" && (!
|
|
2178
|
+
return ee(t) === "[object Array]" && (!k || !(typeof t == "object" && k in t));
|
|
2179
2179
|
}
|
|
2180
2180
|
function xs(t) {
|
|
2181
|
-
return ee(t) === "[object Date]" && (!
|
|
2181
|
+
return ee(t) === "[object Date]" && (!k || !(typeof t == "object" && k in t));
|
|
2182
2182
|
}
|
|
2183
2183
|
function Or(t) {
|
|
2184
|
-
return ee(t) === "[object RegExp]" && (!
|
|
2184
|
+
return ee(t) === "[object RegExp]" && (!k || !(typeof t == "object" && k in t));
|
|
2185
2185
|
}
|
|
2186
2186
|
function Ms(t) {
|
|
2187
|
-
return ee(t) === "[object Error]" && (!
|
|
2187
|
+
return ee(t) === "[object Error]" && (!k || !(typeof t == "object" && k in t));
|
|
2188
2188
|
}
|
|
2189
2189
|
function Fs(t) {
|
|
2190
|
-
return ee(t) === "[object String]" && (!
|
|
2190
|
+
return ee(t) === "[object String]" && (!k || !(typeof t == "object" && k in t));
|
|
2191
2191
|
}
|
|
2192
2192
|
function Ns(t) {
|
|
2193
|
-
return ee(t) === "[object Number]" && (!
|
|
2193
|
+
return ee(t) === "[object Number]" && (!k || !(typeof t == "object" && k in t));
|
|
2194
2194
|
}
|
|
2195
2195
|
function Us(t) {
|
|
2196
|
-
return ee(t) === "[object Boolean]" && (!
|
|
2196
|
+
return ee(t) === "[object Boolean]" && (!k || !(typeof t == "object" && k in t));
|
|
2197
2197
|
}
|
|
2198
2198
|
function Sn(t) {
|
|
2199
2199
|
if (ye)
|
|
@@ -2368,7 +2368,7 @@ function Ot(t, e) {
|
|
|
2368
2368
|
return n + q.call(t, "," + n) + `
|
|
2369
2369
|
` + e.prev;
|
|
2370
2370
|
}
|
|
2371
|
-
function
|
|
2371
|
+
function ke(t, e) {
|
|
2372
2372
|
var n = Pt(t), r = [];
|
|
2373
2373
|
if (n) {
|
|
2374
2374
|
r.length = t.length;
|
|
@@ -2388,7 +2388,7 @@ function Le(t, e) {
|
|
|
2388
2388
|
yn.call(t, o[c]) && r.push("[" + e(o[c]) + "]: " + e(t[o[c]], t));
|
|
2389
2389
|
return r;
|
|
2390
2390
|
}
|
|
2391
|
-
var qt = Ht, Ce = Ss, Qs =
|
|
2391
|
+
var qt = Ht, Ce = Ss, Qs = Ls, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0), Me = qt("%Map%", !0), Ys = Ce("WeakMap.prototype.get", !0), Zs = Ce("WeakMap.prototype.set", !0), ea = Ce("WeakMap.prototype.has", !0), ta = Ce("Map.prototype.get", !0), ra = Ce("Map.prototype.set", !0), na = Ce("Map.prototype.has", !0), Jt = function(t, e) {
|
|
2392
2392
|
for (var n = t, r; (r = n.next) !== null; n = r)
|
|
2393
2393
|
if (r.key === e)
|
|
2394
2394
|
return n.next = r.next, r.next = t.next, t.next = r, r;
|
|
@@ -2452,14 +2452,14 @@ var qt = Ht, Ce = Ss, Qs = ks, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0),
|
|
|
2452
2452
|
},
|
|
2453
2453
|
RFC1738: pt.RFC1738,
|
|
2454
2454
|
RFC3986: pt.RFC3986
|
|
2455
|
-
}, ua = Wt, dt = Object.prototype.hasOwnProperty,
|
|
2455
|
+
}, ua = Wt, dt = Object.prototype.hasOwnProperty, te = Array.isArray, z = function() {
|
|
2456
2456
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2457
2457
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2458
2458
|
return t;
|
|
2459
2459
|
}(), fa = function(e) {
|
|
2460
2460
|
for (; e.length > 1; ) {
|
|
2461
2461
|
var n = e.pop(), r = n.obj[n.prop];
|
|
2462
|
-
if (
|
|
2462
|
+
if (te(r)) {
|
|
2463
2463
|
for (var i = [], o = 0; o < r.length; ++o)
|
|
2464
2464
|
typeof r[o] < "u" && i.push(r[o]);
|
|
2465
2465
|
n.obj[n.prop] = i;
|
|
@@ -2473,7 +2473,7 @@ var qt = Ht, Ce = Ss, Qs = ks, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0),
|
|
|
2473
2473
|
if (!n)
|
|
2474
2474
|
return e;
|
|
2475
2475
|
if (typeof n != "object") {
|
|
2476
|
-
if (
|
|
2476
|
+
if (te(e))
|
|
2477
2477
|
e.push(n);
|
|
2478
2478
|
else if (e && typeof e == "object")
|
|
2479
2479
|
(r && (r.plainObjects || r.allowPrototypes) || !dt.call(Object.prototype, n)) && (e[n] = !0);
|
|
@@ -2484,7 +2484,7 @@ var qt = Ht, Ce = Ss, Qs = ks, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0),
|
|
|
2484
2484
|
if (!e || typeof e != "object")
|
|
2485
2485
|
return [e].concat(n);
|
|
2486
2486
|
var i = e;
|
|
2487
|
-
return
|
|
2487
|
+
return te(e) && !te(n) && (i = bn(e, r)), te(e) && te(n) ? (n.forEach(function(o, s) {
|
|
2488
2488
|
if (dt.call(e, s)) {
|
|
2489
2489
|
var a = e[s];
|
|
2490
2490
|
a && typeof a == "object" && o && typeof o == "object" ? e[s] = t(a, o, r) : e.push(o);
|
|
@@ -2550,7 +2550,7 @@ var qt = Ht, Ce = Ss, Qs = ks, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0),
|
|
|
2550
2550
|
}, va = function(e, n) {
|
|
2551
2551
|
return [].concat(e, n);
|
|
2552
2552
|
}, Ca = function(e, n) {
|
|
2553
|
-
if (
|
|
2553
|
+
if (te(e)) {
|
|
2554
2554
|
for (var r = [], i = 0; i < e.length; i += 1)
|
|
2555
2555
|
r.push(n(e[i]));
|
|
2556
2556
|
return r;
|
|
@@ -2580,7 +2580,7 @@ var qt = Ht, Ce = Ss, Qs = ks, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0),
|
|
|
2580
2580
|
}
|
|
2581
2581
|
}, Q = Array.isArray, Ra = Array.prototype.push, En = function(t, e) {
|
|
2582
2582
|
Ra.apply(t, Q(e) ? e : [e]);
|
|
2583
|
-
}, Ta = Date.prototype.toISOString, _r = Oe.default,
|
|
2583
|
+
}, Ta = Date.prototype.toISOString, _r = Oe.default, L = {
|
|
2584
2584
|
addQueryPrefix: !1,
|
|
2585
2585
|
allowDots: !1,
|
|
2586
2586
|
charset: "utf-8",
|
|
@@ -2610,17 +2610,17 @@ var qt = Ht, Ce = Ss, Qs = ks, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0),
|
|
|
2610
2610
|
}
|
|
2611
2611
|
typeof P.get(ht) > "u" && (b = 0);
|
|
2612
2612
|
}
|
|
2613
|
-
if (typeof l == "function" ? C = l(n, C) : C instanceof Date ? C = f(C) : r === "comma" && Q(C) && (C = Ue.maybeMap(C, function(
|
|
2614
|
-
return
|
|
2613
|
+
if (typeof l == "function" ? C = l(n, C) : C instanceof Date ? C = f(C) : r === "comma" && Q(C) && (C = Ue.maybeMap(C, function(le) {
|
|
2614
|
+
return le instanceof Date ? f(le) : le;
|
|
2615
2615
|
})), C === null) {
|
|
2616
2616
|
if (o)
|
|
2617
|
-
return a && !h ? a(n,
|
|
2617
|
+
return a && !h ? a(n, L.encoder, y, "key", d) : n;
|
|
2618
2618
|
C = "";
|
|
2619
2619
|
}
|
|
2620
2620
|
if (Ea(C) || Ue.isBuffer(C)) {
|
|
2621
2621
|
if (a) {
|
|
2622
|
-
var x = h ? n : a(n,
|
|
2623
|
-
return [m(x) + "=" + m(a(C,
|
|
2622
|
+
var x = h ? n : a(n, L.encoder, y, "key", d);
|
|
2623
|
+
return [m(x) + "=" + m(a(C, L.encoder, y, "value", d))];
|
|
2624
2624
|
}
|
|
2625
2625
|
return [m(n) + "=" + m(String(C))];
|
|
2626
2626
|
}
|
|
@@ -2639,12 +2639,12 @@ var qt = Ht, Ce = Ss, Qs = ks, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0),
|
|
|
2639
2639
|
for (var W = i && Q(C) && C.length === 1 ? n + "[]" : n, be = 0; be < j.length; ++be) {
|
|
2640
2640
|
var H = j[be], K = typeof H == "object" && typeof H.value < "u" ? H.value : C[H];
|
|
2641
2641
|
if (!(s && K === null)) {
|
|
2642
|
-
var
|
|
2642
|
+
var ce = Q(C) ? typeof r == "function" ? r(W, H) : W : W + (u ? "." + H : "[" + H + "]");
|
|
2643
2643
|
g.set(e, b);
|
|
2644
|
-
var
|
|
2645
|
-
|
|
2644
|
+
var Le = Tn();
|
|
2645
|
+
Le.set(ht, g), En(D, t(
|
|
2646
2646
|
K,
|
|
2647
|
-
|
|
2647
|
+
ce,
|
|
2648
2648
|
r,
|
|
2649
2649
|
i,
|
|
2650
2650
|
o,
|
|
@@ -2658,17 +2658,17 @@ var qt = Ht, Ce = Ss, Qs = ks, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0),
|
|
|
2658
2658
|
m,
|
|
2659
2659
|
h,
|
|
2660
2660
|
y,
|
|
2661
|
-
|
|
2661
|
+
Le
|
|
2662
2662
|
));
|
|
2663
2663
|
}
|
|
2664
2664
|
}
|
|
2665
2665
|
return D;
|
|
2666
2666
|
}, Oa = function(e) {
|
|
2667
2667
|
if (!e)
|
|
2668
|
-
return
|
|
2668
|
+
return L;
|
|
2669
2669
|
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
2670
2670
|
throw new TypeError("Encoder has to be a function.");
|
|
2671
|
-
var n = e.charset ||
|
|
2671
|
+
var n = e.charset || L.charset;
|
|
2672
2672
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
2673
2673
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
2674
2674
|
var r = Oe.default;
|
|
@@ -2677,23 +2677,23 @@ var qt = Ht, Ce = Ss, Qs = ks, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0),
|
|
|
2677
2677
|
throw new TypeError("Unknown format option provided.");
|
|
2678
2678
|
r = e.format;
|
|
2679
2679
|
}
|
|
2680
|
-
var i = Oe.formatters[r], o =
|
|
2680
|
+
var i = Oe.formatters[r], o = L.filter;
|
|
2681
2681
|
return (typeof e.filter == "function" || Q(e.filter)) && (o = e.filter), {
|
|
2682
|
-
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix :
|
|
2683
|
-
allowDots: typeof e.allowDots > "u" ?
|
|
2682
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : L.addQueryPrefix,
|
|
2683
|
+
allowDots: typeof e.allowDots > "u" ? L.allowDots : !!e.allowDots,
|
|
2684
2684
|
charset: n,
|
|
2685
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
2686
|
-
delimiter: typeof e.delimiter > "u" ?
|
|
2687
|
-
encode: typeof e.encode == "boolean" ? e.encode :
|
|
2688
|
-
encoder: typeof e.encoder == "function" ? e.encoder :
|
|
2689
|
-
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly :
|
|
2685
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : L.charsetSentinel,
|
|
2686
|
+
delimiter: typeof e.delimiter > "u" ? L.delimiter : e.delimiter,
|
|
2687
|
+
encode: typeof e.encode == "boolean" ? e.encode : L.encode,
|
|
2688
|
+
encoder: typeof e.encoder == "function" ? e.encoder : L.encoder,
|
|
2689
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : L.encodeValuesOnly,
|
|
2690
2690
|
filter: o,
|
|
2691
2691
|
format: r,
|
|
2692
2692
|
formatter: i,
|
|
2693
|
-
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate :
|
|
2694
|
-
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls :
|
|
2693
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : L.serializeDate,
|
|
2694
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : L.skipNulls,
|
|
2695
2695
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
2696
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
2696
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : L.strictNullHandling
|
|
2697
2697
|
};
|
|
2698
2698
|
}, Aa = function(t, e) {
|
|
2699
2699
|
var n = t, r = Oa(e), i, o;
|
|
@@ -2754,11 +2754,11 @@ var qt = Ht, Ce = Ss, Qs = ks, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0),
|
|
|
2754
2754
|
});
|
|
2755
2755
|
}, Pn = function(t, e) {
|
|
2756
2756
|
return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
|
|
2757
|
-
}, Ia = "utf8=%26%2310003%3B",
|
|
2757
|
+
}, Ia = "utf8=%26%2310003%3B", La = "utf8=%E2%9C%93", ka = function(e, n) {
|
|
2758
2758
|
var r = { __proto__: null }, i = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, o = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, s = i.split(n.delimiter, o), a = -1, l, c = n.charset;
|
|
2759
2759
|
if (n.charsetSentinel)
|
|
2760
2760
|
for (l = 0; l < s.length; ++l)
|
|
2761
|
-
s[l].indexOf("utf8=") === 0 && (s[l] ===
|
|
2761
|
+
s[l].indexOf("utf8=") === 0 && (s[l] === La ? c = "utf-8" : s[l] === Ia && (c = "iso-8859-1"), a = l, l = s.length);
|
|
2762
2762
|
for (l = 0; l < s.length; ++l)
|
|
2763
2763
|
if (l !== a) {
|
|
2764
2764
|
var u = s[l], f = u.indexOf("]="), d = f === -1 ? u.indexOf("=") : f + 1, m, h;
|
|
@@ -2829,7 +2829,7 @@ var qt = Ht, Ce = Ss, Qs = ks, Xs = qt("%TypeError%"), xe = qt("%WeakMap%", !0),
|
|
|
2829
2829
|
var n = Fa(e);
|
|
2830
2830
|
if (t === "" || t === null || typeof t > "u")
|
|
2831
2831
|
return n.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
2832
|
-
for (var r = typeof t == "string" ?
|
|
2832
|
+
for (var r = typeof t == "string" ? ka(t, n) : t, i = n.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(r), s = 0; s < o.length; ++s) {
|
|
2833
2833
|
var a = o[s], l = Ma(a, r[a], n, typeof t == "string");
|
|
2834
2834
|
i = ge.merge(i, l, n);
|
|
2835
2835
|
}
|
|
@@ -2904,7 +2904,7 @@ function we(t, e, n) {
|
|
|
2904
2904
|
const r = t.match(e);
|
|
2905
2905
|
return r && r.length >= n && parseInt(r[n], 10);
|
|
2906
2906
|
}
|
|
2907
|
-
function
|
|
2907
|
+
function ae(t, e, n) {
|
|
2908
2908
|
if (!t.RTCPeerConnection)
|
|
2909
2909
|
return;
|
|
2910
2910
|
const r = t.RTCPeerConnection.prototype, i = r.addEventListener;
|
|
@@ -3007,7 +3007,7 @@ function Dt(t, e, n) {
|
|
|
3007
3007
|
});
|
|
3008
3008
|
}));
|
|
3009
3009
|
}
|
|
3010
|
-
function
|
|
3010
|
+
function Lr(t, e, n) {
|
|
3011
3011
|
const r = n ? "outbound-rtp" : "inbound-rtp", i = /* @__PURE__ */ new Map();
|
|
3012
3012
|
if (e === null)
|
|
3013
3013
|
return i;
|
|
@@ -3020,8 +3020,8 @@ function kr(t, e, n) {
|
|
|
3020
3020
|
});
|
|
3021
3021
|
}), i;
|
|
3022
3022
|
}
|
|
3023
|
-
const
|
|
3024
|
-
function
|
|
3023
|
+
const kr = _n;
|
|
3024
|
+
function Ln(t, e) {
|
|
3025
3025
|
const n = t && t.navigator;
|
|
3026
3026
|
if (!n.mediaDevices)
|
|
3027
3027
|
return;
|
|
@@ -3066,12 +3066,12 @@ function kn(t, e) {
|
|
|
3066
3066
|
return n.mediaDevices.enumerateDevices().then((d) => {
|
|
3067
3067
|
d = d.filter((h) => h.kind === "videoinput");
|
|
3068
3068
|
let m = d.find((h) => f.some((y) => h.label.toLowerCase().includes(y)));
|
|
3069
|
-
return !m && d.length && f.includes("back") && (m = d[d.length - 1]), m && (a.video.deviceId = c.exact ? { exact: m.deviceId } : { ideal: m.deviceId }), a.video = r(a.video),
|
|
3069
|
+
return !m && d.length && f.includes("back") && (m = d[d.length - 1]), m && (a.video.deviceId = c.exact ? { exact: m.deviceId } : { ideal: m.deviceId }), a.video = r(a.video), kr("chrome: " + JSON.stringify(a)), l(a);
|
|
3070
3070
|
});
|
|
3071
3071
|
}
|
|
3072
3072
|
a.video = r(a.video);
|
|
3073
3073
|
}
|
|
3074
|
-
return
|
|
3074
|
+
return kr("chrome: " + JSON.stringify(a)), l(a);
|
|
3075
3075
|
}, o = function(a) {
|
|
3076
3076
|
return e.version >= 64 ? a : {
|
|
3077
3077
|
name: {
|
|
@@ -3133,7 +3133,7 @@ function qa(t, e) {
|
|
|
3133
3133
|
};
|
|
3134
3134
|
}
|
|
3135
3135
|
}
|
|
3136
|
-
function
|
|
3136
|
+
function kn(t) {
|
|
3137
3137
|
t.MediaStream = t.MediaStream || t.webkitMediaStream;
|
|
3138
3138
|
}
|
|
3139
3139
|
function xn(t) {
|
|
@@ -3165,7 +3165,7 @@ function xn(t) {
|
|
|
3165
3165
|
}, this.addEventListener("addstream", this._ontrackpoly)), e.apply(this, arguments);
|
|
3166
3166
|
};
|
|
3167
3167
|
} else
|
|
3168
|
-
|
|
3168
|
+
ae(t, "track", (e) => (e.transceiver || Object.defineProperty(
|
|
3169
3169
|
e,
|
|
3170
3170
|
"transceiver",
|
|
3171
3171
|
{ value: { receiver: e.receiver } }
|
|
@@ -3290,7 +3290,7 @@ function Nn(t) {
|
|
|
3290
3290
|
* send a track with the same id as sender.track as
|
|
3291
3291
|
* it is not possible to identify the RTCRtpSender.
|
|
3292
3292
|
*/
|
|
3293
|
-
|
|
3293
|
+
Lr(s, o.track, !0)
|
|
3294
3294
|
));
|
|
3295
3295
|
};
|
|
3296
3296
|
}
|
|
@@ -3299,9 +3299,9 @@ function Nn(t) {
|
|
|
3299
3299
|
n && (t.RTCPeerConnection.prototype.getReceivers = function() {
|
|
3300
3300
|
const i = n.apply(this, []);
|
|
3301
3301
|
return i.forEach((o) => o._pc = this), i;
|
|
3302
|
-
}),
|
|
3302
|
+
}), ae(t, "track", (r) => (r.receiver._pc = r.srcElement, r)), t.RTCRtpReceiver.prototype.getStats = function() {
|
|
3303
3303
|
const i = this;
|
|
3304
|
-
return this._pc.getStats().then((o) =>
|
|
3304
|
+
return this._pc.getStats().then((o) => Lr(o, i.track, !1));
|
|
3305
3305
|
};
|
|
3306
3306
|
}
|
|
3307
3307
|
if (!("getStats" in t.RTCRtpSender.prototype && "getStats" in t.RTCRtpReceiver.prototype))
|
|
@@ -3506,7 +3506,7 @@ function _t(t, e) {
|
|
|
3506
3506
|
});
|
|
3507
3507
|
}
|
|
3508
3508
|
function Bn(t, e) {
|
|
3509
|
-
|
|
3509
|
+
ae(t, "negotiationneeded", (n) => {
|
|
3510
3510
|
const r = n.target;
|
|
3511
3511
|
if (!((e.version < 72 || r.getConfiguration && r.getConfiguration().sdpSemantics === "plan-b") && r.signalingState !== "stable"))
|
|
3512
3512
|
return n;
|
|
@@ -3520,8 +3520,8 @@ const xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3520
3520
|
shimGetDisplayMedia: qa,
|
|
3521
3521
|
shimGetSendersWithDtmf: Mn,
|
|
3522
3522
|
shimGetStats: Fn,
|
|
3523
|
-
shimGetUserMedia:
|
|
3524
|
-
shimMediaStream:
|
|
3523
|
+
shimGetUserMedia: Ln,
|
|
3524
|
+
shimMediaStream: kn,
|
|
3525
3525
|
shimOnTrack: xn,
|
|
3526
3526
|
shimPeerConnection: _t,
|
|
3527
3527
|
shimSenderReceiverGetStats: Nn
|
|
@@ -3630,7 +3630,7 @@ function Gn(t) {
|
|
|
3630
3630
|
e && (t.RTCPeerConnection.prototype.getReceivers = function() {
|
|
3631
3631
|
const r = e.apply(this, []);
|
|
3632
3632
|
return r.forEach((i) => i._pc = this), r;
|
|
3633
|
-
}),
|
|
3633
|
+
}), ae(t, "track", (n) => (n.receiver._pc = n.srcElement, n)), t.RTCRtpReceiver.prototype.getStats = function() {
|
|
3634
3634
|
return this._pc.getStats(this.track);
|
|
3635
3635
|
};
|
|
3636
3636
|
}
|
|
@@ -4301,13 +4301,13 @@ function Be(t) {
|
|
|
4301
4301
|
}, i;
|
|
4302
4302
|
}
|
|
4303
4303
|
return new e(r);
|
|
4304
|
-
}, t.RTCIceCandidate.prototype = e.prototype,
|
|
4304
|
+
}, t.RTCIceCandidate.prototype = e.prototype, ae(t, "icecandidate", (n) => (n.candidate && Object.defineProperty(n, "candidate", {
|
|
4305
4305
|
value: new t.RTCIceCandidate(n.candidate),
|
|
4306
4306
|
writable: "false"
|
|
4307
4307
|
}), n));
|
|
4308
4308
|
}
|
|
4309
|
-
function
|
|
4310
|
-
!t.RTCIceCandidate || t.RTCIceCandidate && "relayProtocol" in t.RTCIceCandidate.prototype ||
|
|
4309
|
+
function Lt(t) {
|
|
4310
|
+
!t.RTCIceCandidate || t.RTCIceCandidate && "relayProtocol" in t.RTCIceCandidate.prototype || ae(t, "icecandidate", (e) => {
|
|
4311
4311
|
if (e.candidate) {
|
|
4312
4312
|
const n = he.parseCandidate(e.candidate.candidate);
|
|
4313
4313
|
n.type === "relay" && (e.candidate.relayProtocol = {
|
|
@@ -4394,9 +4394,9 @@ function $e(t) {
|
|
|
4394
4394
|
t.RTCPeerConnection.prototype.createDataChannel = function() {
|
|
4395
4395
|
const i = n.apply(this, arguments);
|
|
4396
4396
|
return e(i, this), i;
|
|
4397
|
-
},
|
|
4397
|
+
}, ae(t, "datachannel", (r) => (e(r.channel, r.target), r));
|
|
4398
4398
|
}
|
|
4399
|
-
function
|
|
4399
|
+
function kt(t) {
|
|
4400
4400
|
if (!t.RTCPeerConnection || "connectionState" in t.RTCPeerConnection.prototype)
|
|
4401
4401
|
return;
|
|
4402
4402
|
const e = t.RTCPeerConnection.prototype;
|
|
@@ -4494,11 +4494,11 @@ const Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4494
4494
|
__proto__: null,
|
|
4495
4495
|
removeExtmapAllowMixed: xt,
|
|
4496
4496
|
shimAddIceCandidateNullOrEmpty: He,
|
|
4497
|
-
shimConnectionState:
|
|
4497
|
+
shimConnectionState: kt,
|
|
4498
4498
|
shimMaxMessageSize: je,
|
|
4499
4499
|
shimParameterlessSetLocalDescription: Ge,
|
|
4500
4500
|
shimRTCIceCandidate: Be,
|
|
4501
|
-
shimRTCIceCandidateRelayProtocol:
|
|
4501
|
+
shimRTCIceCandidateRelayProtocol: Lt,
|
|
4502
4502
|
shimSendThrowTypeError: $e
|
|
4503
4503
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4504
4504
|
function Qa({ window: t } = {}, e = {
|
|
@@ -4521,17 +4521,17 @@ function Qa({ window: t } = {}, e = {
|
|
|
4521
4521
|
return n("Chrome shim is not included in this adapter release."), i;
|
|
4522
4522
|
if (r.version === null)
|
|
4523
4523
|
return n("Chrome shim can not determine version, not shimming."), i;
|
|
4524
|
-
n("adapter.js shimming chrome."), i.browserShim = xr, He(t, r), Ge(t),
|
|
4524
|
+
n("adapter.js shimming chrome."), i.browserShim = xr, He(t, r), Ge(t), Ln(t, r), kn(t), _t(t, r), xn(t), wn(t, r), Mn(t), Fn(t), Nn(t), Bn(t, r), Be(t), Lt(t), kt(t), je(t, r), $e(t), xt(t, r);
|
|
4525
4525
|
break;
|
|
4526
4526
|
case "firefox":
|
|
4527
4527
|
if (!Mr || !It || !e.shimFirefox)
|
|
4528
4528
|
return n("Firefox shim is not included in this adapter release."), i;
|
|
4529
|
-
n("adapter.js shimming firefox."), i.browserShim = Mr, He(t, r), Ge(t), jn(t, r), It(t, r), $n(t), Vn(t), Hn(t), Gn(t), zn(t), qn(t), Jn(t), Wn(t), Kn(t), Be(t),
|
|
4529
|
+
n("adapter.js shimming firefox."), i.browserShim = Mr, He(t, r), Ge(t), jn(t, r), It(t, r), $n(t), Vn(t), Hn(t), Gn(t), zn(t), qn(t), Jn(t), Wn(t), Kn(t), Be(t), kt(t), je(t, r), $e(t);
|
|
4530
4530
|
break;
|
|
4531
4531
|
case "safari":
|
|
4532
4532
|
if (!Fr || !e.shimSafari)
|
|
4533
4533
|
return n("Safari shim is not included in this adapter release."), i;
|
|
4534
|
-
n("adapter.js shimming safari."), i.browserShim = Fr, He(t, r), Ge(t), ti(t), ni(t), Yn(t), Qn(t), Xn(t), ri(t), Zn(t), ii(t), Be(t),
|
|
4534
|
+
n("adapter.js shimming safari."), i.browserShim = Fr, He(t, r), Ge(t), ti(t), ni(t), Yn(t), Qn(t), Xn(t), ri(t), Zn(t), ii(t), Be(t), Lt(t), je(t, r), $e(t), xt(t, r);
|
|
4535
4535
|
break;
|
|
4536
4536
|
default:
|
|
4537
4537
|
n("Unsupported browser!");
|
|
@@ -4989,7 +4989,7 @@ class Za {
|
|
|
4989
4989
|
onStopDesktopShare() {
|
|
4990
4990
|
}
|
|
4991
4991
|
}
|
|
4992
|
-
var E = /* @__PURE__ */ ((t) => (t[t.OFFLINE = -1] = "OFFLINE", t[t.IDLE = 0] = "IDLE", t[t.TRY = 1] = "TRY", t[t.RING = 2] = "RING", t[t.TALK = 3] = "TALK", t))(E || {}), F = /* @__PURE__ */ ((t) => (t.VIDEO = "video", t.AUDIO = "audio", t))(F || {}), J = /* @__PURE__ */ ((t) => (t.FULL = "full-duplex", t.HALF = "half-duplex", t))(J || {}),
|
|
4992
|
+
var E = /* @__PURE__ */ ((t) => (t[t.OFFLINE = -1] = "OFFLINE", t[t.IDLE = 0] = "IDLE", t[t.TRY = 1] = "TRY", t[t.RING = 2] = "RING", t[t.TALK = 3] = "TALK", t))(E || {}), F = /* @__PURE__ */ ((t) => (t.VIDEO = "video", t.AUDIO = "audio", t))(F || {}), J = /* @__PURE__ */ ((t) => (t.FULL = "full-duplex", t.HALF = "half-duplex", t))(J || {}), pe = /* @__PURE__ */ ((t) => (t.IN = "in", t.OUT = "out", t))(pe || {}), w = /* @__PURE__ */ ((t) => (t.LOGIN = "login", t.LOGOUT = "logout", t.Invite = "invite", t.RING = "ring", t.ANSWER = "answer", t.HANGUP = "hangup", t.DTMF = "dtmf", t))(w || {});
|
|
4993
4993
|
let ci;
|
|
4994
4994
|
function _c() {
|
|
4995
4995
|
ci = "true";
|
|
@@ -5101,7 +5101,7 @@ class ui {
|
|
|
5101
5101
|
S(this, "status", E.OFFLINE);
|
|
5102
5102
|
S(this, "mediaType", F.AUDIO);
|
|
5103
5103
|
S(this, "callMode", J.FULL);
|
|
5104
|
-
S(this, "callDirect",
|
|
5104
|
+
S(this, "callDirect", pe.OUT);
|
|
5105
5105
|
S(this, "called", "");
|
|
5106
5106
|
S(this, "callId");
|
|
5107
5107
|
S(this, "remoteSdp");
|
|
@@ -5136,7 +5136,7 @@ class ui {
|
|
|
5136
5136
|
console.debug("session is not ring state");
|
|
5137
5137
|
return;
|
|
5138
5138
|
}
|
|
5139
|
-
if (this.callDirect !=
|
|
5139
|
+
if (this.callDirect != pe.IN) {
|
|
5140
5140
|
console.debug("session is call out, not allow answer");
|
|
5141
5141
|
return;
|
|
5142
5142
|
}
|
|
@@ -5144,7 +5144,7 @@ class ui {
|
|
|
5144
5144
|
this.callMode == J.HALF ? e = F.VIDEO == this.mediaType ? v.VIDEO_HALF : v.AUDIO_HALF : e = F.VIDEO == this.mediaType ? v.VIDEO : v.AUDIO, this.webrtcCreate(e), (n = this.webrtcSession) == null || n.start(!1, this.remoteSdp);
|
|
5145
5145
|
}
|
|
5146
5146
|
hangup() {
|
|
5147
|
-
this.status <= E.IDLE || (this.status == E.TALK ? this.sendHangup(this.callId ?? "") : this.callDirect ==
|
|
5147
|
+
this.status <= E.IDLE || (this.status == E.TALK ? this.sendHangup(this.callId ?? "") : this.callDirect == pe.IN ? this.sendHangup(this.callId ?? "", 488) : this.sendHangup(this.callId ?? "", 801), this.close());
|
|
5148
5148
|
}
|
|
5149
5149
|
dtmf(e) {
|
|
5150
5150
|
return this.status !== E.TALK ? !1 : (this.sendDtmf(e), !0);
|
|
@@ -5203,7 +5203,7 @@ class ui {
|
|
|
5203
5203
|
console.debug("The initialization has not been completed yet. Please try again later"), this.sessionListener.onError(new Error("The initialization has not been completed yet. Please try again later"));
|
|
5204
5204
|
return;
|
|
5205
5205
|
}
|
|
5206
|
-
this.status > E.IDLE && (console.debug("Another call is currently in progress, hangup it"), this.hangup()), this.mediaType = n, this.callMode = r, this.called = e, this.callDirect =
|
|
5206
|
+
this.status > E.IDLE && (console.debug("Another call is currently in progress, hangup it"), this.hangup()), this.mediaType = n, this.callMode = r, this.called = e, this.callDirect = pe.OUT, this.callId = tc();
|
|
5207
5207
|
let o;
|
|
5208
5208
|
this.callMode == J.HALF ? o = F.VIDEO == n ? v.VIDEO_HALF : v.AUDIO_HALF : o = F.VIDEO == n ? v.VIDEO : v.AUDIO, this.webrtcCreate(o), (i = this.webrtcSession) == null || i.start(!0), this.status = E.TRY;
|
|
5209
5209
|
} catch (o) {
|
|
@@ -5337,7 +5337,7 @@ class ui {
|
|
|
5337
5337
|
e.callId != this.callId ? (console.debug("receive invite, but busy."), this.sendHangup(e.callId, 486)) : console.debug("receive re invite. not process");
|
|
5338
5338
|
return;
|
|
5339
5339
|
}
|
|
5340
|
-
this.callId = e.callId, this.mediaType = e.mediaType ?? F.AUDIO, this.callMode = e.callMode ?? J.FULL, this.called = e.from ?? "", this.callDirect =
|
|
5340
|
+
this.callId = e.callId, this.mediaType = e.mediaType ?? F.AUDIO, this.callMode = e.callMode ?? J.FULL, this.called = e.from ?? "", this.callDirect = pe.IN, this.remoteSdp = e.sdp, this.candidate = e.candidate, this.sendRing(), this.ringtone.currentTime = 0, this.ringtone.play().then(() => {
|
|
5341
5341
|
}).catch(() => {
|
|
5342
5342
|
}), this.sessionListener.onNewCall(new ic(this.called, this.mediaType, this.callMode));
|
|
5343
5343
|
}
|
|
@@ -5373,7 +5373,7 @@ class ui {
|
|
|
5373
5373
|
this.sessionListener.onAddRemoteStream(e);
|
|
5374
5374
|
}
|
|
5375
5375
|
onError(e) {
|
|
5376
|
-
this.
|
|
5376
|
+
this.status > E.IDLE && this.hangup(), this.close(), this.sessionListener.onError(e);
|
|
5377
5377
|
}
|
|
5378
5378
|
onStartSuccess(e) {
|
|
5379
5379
|
var n;
|
|
@@ -5500,10 +5500,10 @@ let Xt = new On("/"), fi = "/media-server/ws/voip", pi = "/media-server/ws/b-tru
|
|
|
5500
5500
|
function Ic(t) {
|
|
5501
5501
|
Xt = new On(t);
|
|
5502
5502
|
}
|
|
5503
|
-
function
|
|
5503
|
+
function Lc(t) {
|
|
5504
5504
|
return new Za(t, Xt);
|
|
5505
5505
|
}
|
|
5506
|
-
function
|
|
5506
|
+
function kc(t, e) {
|
|
5507
5507
|
return new ac(t, Xt, e);
|
|
5508
5508
|
}
|
|
5509
5509
|
function xc(t) {
|
|
@@ -5517,9 +5517,9 @@ function Fc(t, e) {
|
|
|
5517
5517
|
}
|
|
5518
5518
|
export {
|
|
5519
5519
|
Fc as createAppCallSession,
|
|
5520
|
-
|
|
5520
|
+
kc as createBroadcastSession,
|
|
5521
5521
|
Mc as createCallSession,
|
|
5522
|
-
|
|
5522
|
+
Lc as createRtspPullSession,
|
|
5523
5523
|
_c as setAllowEmpty,
|
|
5524
5524
|
Ic as videoModuleInit,
|
|
5525
5525
|
xc as voipModuleInit
|