useblocks 1.1.65 → 1.1.71
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/README.md +2 -0
- package/assets/images/project-settings-inbox-envelope.png +0 -0
- package/assets/images/project-settings-plugin-support-avatar.png +0 -0
- package/fileManager.d.ts +519 -0
- package/iframe/css/sandbox-dark.css +1 -1
- package/iframe/css/sandbox-darktheme.css +1 -1
- package/iframe/css/sandbox-light.css +1 -1
- package/iframe/css/sandbox.css +112 -89
- package/iframe/js/amp.DllX-Im0.js +1 -0
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.4N5s3OV-.js +1 -1
- package/npm-publish.manifest.json +7 -7
- package/package.json +4 -1
- package/runtime/THIRD_PARTY_LICENSES.txt +1 -1
- package/static/core/{d2f93451.js → 0e53b7b5.js} +3 -3
- package/static/core/0fe242f22.js +3251 -0
- package/static/core/{e9ff66762.js → 10f0dad9.js} +3 -3
- package/static/core/{a79573972.js → 115218a42.js} +3 -3
- package/static/core/{d6b377d3.js → 1202bfdd.js} +3 -3
- package/static/core/{8d4aa933.js → 16c2d0e42.js} +6 -6
- package/static/core/{8aa09f022.js → 1ae75b972.js} +3 -3
- package/static/core/{e7c982c02.js → 2011fc95.js} +3 -3
- package/static/core/{925a1cfd2.js → 211482892.js} +3 -3
- package/static/core/222d29d9.js +468 -0
- package/static/core/{f8c9371e.js → 23546a64.js} +238 -257
- package/static/core/{6e177eb6.js → 26a1af95.js} +3 -3
- package/static/core/{9d8297c7.js → 27f62a39.js} +3 -3
- package/static/core/{fb834fb22.js → 288ca9522.js} +6 -6
- package/static/core/{45da436c.js → 28e9d3ff.js} +3 -3
- package/static/core/{1c82c2d52.js → 2bd2da322.js} +3 -3
- package/static/core/{712b11ba.js → 2c65c059.js} +3 -3
- package/static/core/{1d2a32d02.js → 2f216fd4.js} +4 -4
- package/static/core/{45fcca4f2.js → 2fd502bd2.js} +3 -3
- package/static/core/{b303b2a4.js → 34e0b0dc.js} +3 -3
- package/static/core/{b22e5dd5.js → 35ad3ae5.js} +173 -173
- package/static/core/{8e6e6aaa2.js → 35e0d55e.js} +3 -3
- package/static/core/36bf6931.js +2119 -0
- package/static/core/{a953bf24.js → 375e98282.js} +3 -3
- package/static/core/{40d6d494.js → 38302247.js} +3 -3
- package/static/core/{99fd0b342.js → 38e879e9.js} +3 -3
- package/static/core/{b283b340.js → 39a68c91.js} +3 -3
- package/static/core/{68edd344.js → 3bbe4800.js} +3 -3
- package/static/core/{43108a122.js → 3bda5ccf2.js} +4 -4
- package/static/core/{220b2c2a.js → 3c1ef117.js} +7 -7
- package/static/core/{9982be76.js → 3f22a9d32.js} +2018 -1808
- package/static/core/{8b8811812.js → 412f0d1c.js} +3 -3
- package/static/core/{601b4e7b.js → 46959096.js} +3 -3
- package/static/core/{9d1a7a182.js → 46abec11.js} +3 -3
- package/static/core/{292fe55d2.js → 4740c91e2.js} +3 -3
- package/static/core/{c7588e5f.js → 48560c89.js} +387 -385
- package/static/core/{1d173e97.js → 48d0a8bd2.js} +3 -3
- package/static/core/{af691d1f.js → 490f59592.js} +21 -21
- package/static/core/{205266672.js → 4953bced.js} +3 -3
- package/static/core/{668ae858.js → 4b59ab9f.js} +3 -3
- package/static/core/{664c38f8.js → 4bc74a4f.js} +3 -3
- package/static/core/{8b28b024.js → 508bcaba.js} +5 -5
- package/static/core/513594a8.js +583 -0
- package/static/core/54eadcf42.js +39 -0
- package/static/core/{da4b0874.js → 578fcc88.js} +3 -3
- package/static/core/{43764f5b.js → 585259872.js} +189 -181
- package/static/core/{cee370ea.js → 5b64d3ce2.js} +8 -8
- package/static/core/{b450a16a.js → 5e082e16.js} +59 -59
- package/static/core/{bc1a9cb2.js → 5e7c6c9c.js} +4 -4
- package/static/core/{bc557d9c.js → 60dcae06.js} +6 -6
- package/static/core/{fa23ae7b.js → 616e99a4.js} +3 -3
- package/static/core/{66f4dea3.js → 62c13c96.js} +3 -3
- package/static/core/{d892d2c82.js → 62f33dda.js} +3 -3
- package/static/core/{9c236031.js → 62fd385b.js} +3 -3
- package/static/core/{958e85b5.js → 6313868b.js} +3 -3
- package/static/core/63206e112.js +8956 -0
- package/static/core/{67e3306c.js → 68ec11c8.js} +640 -638
- package/static/core/{951b9e3d.js → 6ca6133e.js} +9 -9
- package/static/core/6e2a0152.js +61 -0
- package/static/core/{656a0edc2.js → 6ee1838f2.js} +3 -3
- package/static/core/{b09300472.js → 7527fdc92.js} +3 -3
- package/static/core/{d8df6d5a.js → 75c2f232.js} +8 -8
- package/static/core/{49a037b02.js → 76c0586a2.js} +3 -3
- package/static/core/{2d8a7133.js → 76ea88d3.js} +5 -5
- package/static/core/{42e9eb802.js → 77c2efbb.js} +3 -3
- package/static/core/{5d0c727e.js → 7d07bfac.js} +3 -3
- package/static/core/{d46cb9672.js → 7d19dd28.js} +4 -4
- package/static/core/{2d13936a.js → 7ec8e1fc.js} +3 -3
- package/static/core/{9954153b2.js → 84326fa6.js} +3 -3
- package/static/core/{c52e08d6.js → 86515d932.js} +4 -4
- package/static/core/{a97bdbc8.js → 879bd3b1.js} +3 -3
- package/static/core/{e47711662.js → 8a061db42.js} +5 -5
- package/static/core/{4b0f73af.js → 8ed78147.js} +3 -3
- package/static/core/{1cbab2af2.js → 8ef06b232.js} +10 -10
- package/static/core/{75e8d4672.js → 8fafd12f2.js} +3 -3
- package/static/core/{a898230f.js → 8fbde229.js} +3 -3
- package/static/core/{f61e3e55.js → 92871f5a2.js} +7 -7
- package/static/core/{a83b01cb2.js → 92d1a0c9.js} +519 -523
- package/static/core/9355751a.js +126 -0
- package/static/core/{95d1d1aa2.js → 93b3c668.js} +3 -3
- package/static/core/{873142eb.js → 9933d0ff2.js} +3 -3
- package/static/core/{96417e98.js → 9a0c05f1.js} +4 -4
- package/static/core/9ab1c444.js +11452 -0
- package/static/core/{c8cb5d88.js → 9c09ec92.js} +7 -7
- package/static/core/{31ba662c2.js → 9df9c5262.js} +5 -5
- package/static/core/{85ea16112.js → a061a37c2.js} +3 -3
- package/static/core/{fff1a8622.js → a64e6cce2.js} +3 -3
- package/static/core/{f5d4906d2.js → a6d92d0b2.js} +5 -5
- package/static/core/{2e9906f7.js → a7518d2c.js} +3 -3
- package/static/core/{3c6f1d122.js → a8bed12d2.js} +3 -3
- package/static/core/{72e2612a2.js → a8f08cb22.js} +3 -3
- package/static/core/{6eb316fe2.js → ac70dfae2.js} +6 -6
- package/static/core/{89e7cc57.js → b8cecec8.js} +17 -17
- package/static/core/{a35fd8d22.js → b8ed4fd62.js} +13 -13
- package/static/core/{474c47d5.js → b9b92e01.js} +15 -15
- package/static/core/{b57c9e1f.js → bc703487.js} +3 -3
- package/static/core/{b165c6f6.js → bc9faec1.js} +134 -134
- package/static/core/{54e7728d.js → bf3a9be2.js} +5 -5
- package/static/core/c370a46c.js +683 -0
- package/static/core/{cf21862f.js → c3b45fb6.js} +1846 -1847
- package/static/core/{d54353e72.js → c56eaffd.js} +3 -3
- package/static/core/{f562fb51.js → c5cf470c.js} +3 -3
- package/static/core/{ceffb8322.js → c8a41267.js} +3 -3
- package/static/core/{19572306.js → cc251d11.js} +3 -3
- package/static/core/{84df1edd2.js → cce631ad.js} +3 -3
- package/static/core/{a88996b3.js → ce9be2ec2.js} +4965 -4753
- package/static/core/cf655a1a.js +33627 -0
- package/static/core/{ab86b06a.js → d3bbb05e.js} +3 -3
- package/static/core/{4a9bd173.js → d43babb9.js} +3 -3
- package/static/core/{1a415abd2.js → d46d10f12.js} +12 -12
- package/static/core/{7ad0031e2.js → d684b4ef2.js} +38 -38
- package/static/core/{affffdf2.js → d8835f5f.js} +7 -7
- package/static/core/{b04145ff2.js → db5fa769.js} +10 -10
- package/static/core/{d32841a32.js → dbc6f1e52.js} +3 -3
- package/static/core/{db4e60fa2.js → dc256ccd2.js} +3 -3
- package/static/core/{eaa635532.js → dc6fa7c1.js} +3 -3
- package/static/core/{4b9709dc.js → dcc518ef2.js} +3 -3
- package/static/core/df237243.js +56 -0
- package/static/core/{5ea0fc40.js → e02024fb2.js} +97 -97
- package/static/core/e199fd0a.js +49 -0
- package/static/core/{678594cd.js → e3a541ab.js} +3 -3
- package/static/core/{6f0d961a2.js → e4c6d91e2.js} +7 -7
- package/static/core/{c2a2dc79.js → e4d01015.js} +40775 -44576
- package/static/core/e57e8a80.js +22 -0
- package/static/core/{d7a9fd822.js → e6ac2e652.js} +3 -3
- package/static/core/{de2e2a02.js → e6c7e14f.js} +3 -3
- package/static/core/{81a5ffb92.js → e83c0b482.js} +3 -3
- package/static/core/{2515c6a52.js → e923d1aa2.js} +3 -3
- package/static/core/{b78a67b9.js → ea6c5c93.js} +3237 -3101
- package/static/core/{d85e34c42.js → ebd51d83.js} +3 -3
- package/static/core/{b54ad117.js → ec4f2d562.js} +3 -3
- package/static/core/{da25e8fc.js → f0364bbd2.js} +4 -4
- package/static/core/{b1b3186f.js → f51ccb57.js} +7 -7
- package/static/core/{7fd85aa0.js → f73bbe35.js} +5 -5
- package/static/core/{211ca90b.js → f85b09cb.js} +3 -3
- package/static/core/{3ab5d1a4.js → f9aaa4b7.js} +7 -7
- package/static/core/{4c5c889d.js → fc962c9a2.js} +5 -5
- package/static/core/{fd9034a2.js → fd7386aa2.js} +37 -37
- package/static/core/{62dd04ca2.js → fe4feb362.js} +3 -3
- package/static/core/{f3b4a3102.js → ffcf92522.js} +3 -3
- package/static/media/image-editor/fonts/Rubik-Black.woff2 +0 -0
- package/static/media/image-editor/fonts/Rubik-Bold.woff2 +0 -0
- package/static/media/image-editor/fonts/Rubik-Light.woff2 +0 -0
- package/static/media/image-editor/fonts/Rubik-Regular.woff2 +0 -0
- package/static/media/image-editor/fonts/caveat-v23-cyrillic_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/commissioner-v24-cyrillic_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/inter-v20-cyrillic_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/oswald-v57-cyrillic_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/pacifico-v23-cyrillic_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/playfair-display-v40-cyrillic_latin-regular.woff2 +0 -0
- package/static/umd-runtime/ui-kit.js +1638 -1416
- package/test-font.otf +0 -0
- package/test-font.ttf +0 -0
- package/test-font.woff2 +0 -0
- package/two_step_headless_plugin.html +1 -1
- package/ui-kit/index.js +1317 -1104
- package/{useblocks-core.bfe3fe29.js → useblocks-core.77131b3d.js} +8 -8
- package/useblocks-esm.js +6 -3
- package/useblocks-po.77131b3d.js +5945 -0
- package/useblocks.d.ts +36 -525
- package/useblocks.js +3 -3
- package/vite/index.cjs +4 -4
- package/vite/index.d.ts +4 -4
- package/vite/index.js +4 -4
- package/vite/pluginDev/index.cjs +2 -2
- package/vite/pluginDev/index.d.ts +12 -12
- package/vite/pluginDev/index.js +2 -2
- package/webpack/pluginDev/index.d.ts +12 -12
- package/iframe/js/amp.BP7EklKo.js +0 -1
- package/static/core/2047d7f8.js +0 -12294
- package/static/core/63b7b25e.js +0 -68
- package/static/core/6dbdca2f.js +0 -2089
- package/static/core/8460710a.js +0 -27
- package/static/core/86577bae.js +0 -666
- package/static/core/97aafd5d.js +0 -43109
- package/static/core/aa783b9b.js +0 -124
- package/static/core/db999761.js +0 -465
- package/static/core/dc19c4fa.js +0 -93052
- /package/iframe/{iframe-eblock.bfe3fe29.html → iframe-eblock.77131b3d.html} +0 -0
- /package/iframe/{iframe.bfe3fe29.html → iframe.77131b3d.html} +0 -0
package/static/core/86577bae.js
DELETED
|
@@ -1,666 +0,0 @@
|
|
|
1
|
-
__useblocks__.define("static/core/86577bae.js", [
|
|
2
|
-
"require",
|
|
3
|
-
"exports",
|
|
4
|
-
"module",
|
|
5
|
-
"static/core/63b7b25e.js"
|
|
6
|
-
], function(ir, F, Cr) {
|
|
7
|
-
const U = ir("./63b7b25e.js");
|
|
8
|
-
function L() {
|
|
9
|
-
M = !0;
|
|
10
|
-
for (var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = 0, i = n.length; r < i; ++r) A[r] = n[r], E[n.charCodeAt(r)] = r;
|
|
11
|
-
E[45] = 62, E[95] = 63;
|
|
12
|
-
}
|
|
13
|
-
function nr(n) {
|
|
14
|
-
M || L();
|
|
15
|
-
var r, i, t, e, o, u, a = n.length;
|
|
16
|
-
if (a % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
|
|
17
|
-
o = n[a - 2] === "=" ? 2 : n[a - 1] === "=" ? 1 : 0, u = new j(a * 3 / 4 - o), t = o > 0 ? a - 4 : a;
|
|
18
|
-
var c = 0;
|
|
19
|
-
for (r = 0, i = 0; r < t; r += 4, i += 3) e = E[n.charCodeAt(r)] << 18 | E[n.charCodeAt(r + 1)] << 12 | E[n.charCodeAt(r + 2)] << 6 | E[n.charCodeAt(r + 3)], u[c++] = e >> 16 & 255, u[c++] = e >> 8 & 255, u[c++] = e & 255;
|
|
20
|
-
return o === 2 ? (e = E[n.charCodeAt(r)] << 2 | E[n.charCodeAt(r + 1)] >> 4, u[c++] = e & 255) : o === 1 && (e = E[n.charCodeAt(r)] << 10 | E[n.charCodeAt(r + 1)] << 4 | E[n.charCodeAt(r + 2)] >> 2, u[c++] = e >> 8 & 255, u[c++] = e & 255), u;
|
|
21
|
-
}
|
|
22
|
-
function tr(n) {
|
|
23
|
-
return A[n >> 18 & 63] + A[n >> 12 & 63] + A[n >> 6 & 63] + A[n & 63];
|
|
24
|
-
}
|
|
25
|
-
function er(n, r, i) {
|
|
26
|
-
for (var t, e = [], o = r; o < i; o += 3) t = (n[o] << 16) + (n[o + 1] << 8) + n[o + 2], e.push(tr(t));
|
|
27
|
-
return e.join("");
|
|
28
|
-
}
|
|
29
|
-
function W(n) {
|
|
30
|
-
M || L();
|
|
31
|
-
for (var r, i = n.length, t = i % 3, e = "", o = [], u = 16383, a = 0, c = i - t; a < c; a += u) o.push(er(n, a, a + u > c ? c : a + u));
|
|
32
|
-
return t === 1 ? (r = n[i - 1], e += A[r >> 2], e += A[r << 4 & 63], e += "==") : t === 2 && (r = (n[i - 2] << 8) + n[i - 1], e += A[r >> 10], e += A[r >> 4 & 63], e += A[r << 2 & 63], e += "="), o.push(e), o.join("");
|
|
33
|
-
}
|
|
34
|
-
function T(n, r, i, t, e) {
|
|
35
|
-
var o, u, a = e * 8 - t - 1, c = (1 << a) - 1, l = c >> 1, f = -7, p = i ? e - 1 : 0, y = i ? -1 : 1, _ = n[r + p];
|
|
36
|
-
for (p += y, o = _ & (1 << -f) - 1, _ >>= -f, f += a; f > 0; o = o * 256 + n[r + p], p += y, f -= 8);
|
|
37
|
-
for (u = o & (1 << -f) - 1, o >>= -f, f += t; f > 0; u = u * 256 + n[r + p], p += y, f -= 8);
|
|
38
|
-
if (o === 0) o = 1 - l;
|
|
39
|
-
else {
|
|
40
|
-
if (o === c) return u ? NaN : (_ ? -1 : 1) * Infinity;
|
|
41
|
-
u = u + Math.pow(2, t), o = o - l;
|
|
42
|
-
}
|
|
43
|
-
return (_ ? -1 : 1) * u * Math.pow(2, o - t);
|
|
44
|
-
}
|
|
45
|
-
function H(n, r, i, t, e, o) {
|
|
46
|
-
var u, a, c, l = o * 8 - e - 1, f = (1 << l) - 1, p = f >> 1, y = e === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, _ = t ? 0 : o - 1, I = t ? 1 : -1, xr = r < 0 || r === 0 && 1 / r < 0 ? 1 : 0;
|
|
47
|
-
for (r = Math.abs(r), isNaN(r) || r === Infinity ? (a = isNaN(r) ? 1 : 0, u = f) : (u = Math.floor(Math.log(r) / Math.LN2), r * (c = Math.pow(2, -u)) < 1 && (u--, c *= 2), u + p >= 1 ? r += y / c : r += y * Math.pow(2, 1 - p), r * c >= 2 && (u++, c /= 2), u + p >= f ? (a = 0, u = f) : u + p >= 1 ? (a = (r * c - 1) * Math.pow(2, e), u = u + p) : (a = r * Math.pow(2, p - 1) * Math.pow(2, e), u = 0)); e >= 8; n[i + _] = a & 255, _ += I, a /= 256, e -= 8);
|
|
48
|
-
for (u = u << e | a, l += e; l > 0; n[i + _] = u & 255, _ += I, u /= 256, l -= 8);
|
|
49
|
-
n[i + _ - I] |= xr * 128;
|
|
50
|
-
}
|
|
51
|
-
function B() {
|
|
52
|
-
return h.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
|
|
53
|
-
}
|
|
54
|
-
function g(n, r) {
|
|
55
|
-
if (B() < r) throw new RangeError("Invalid typed array length");
|
|
56
|
-
return h.TYPED_ARRAY_SUPPORT ? (n = new Uint8Array(r), n.__proto__ = h.prototype) : (n === null && (n = new h(r)), n.length = r), n;
|
|
57
|
-
}
|
|
58
|
-
function h(n, r, i) {
|
|
59
|
-
if (!h.TYPED_ARRAY_SUPPORT && !(this instanceof h)) return new h(n, r, i);
|
|
60
|
-
if (typeof n == "number") {
|
|
61
|
-
if (typeof r == "string") throw new Error("If encoding is specified then the first argument must be a string");
|
|
62
|
-
return D(this, n);
|
|
63
|
-
}
|
|
64
|
-
return O(this, n, r, i);
|
|
65
|
-
}
|
|
66
|
-
function O(n, r, i, t) {
|
|
67
|
-
if (typeof r == "number") throw new TypeError("\"value\" argument must not be a number");
|
|
68
|
-
return typeof ArrayBuffer < "u" && r instanceof ArrayBuffer ? hr(n, r, i, t) : typeof r == "string" ? ur(n, r, i) : ar(n, r);
|
|
69
|
-
}
|
|
70
|
-
function V(n) {
|
|
71
|
-
if (typeof n != "number") throw new TypeError("\"size\" argument must be a number");
|
|
72
|
-
if (n < 0) throw new RangeError("\"size\" argument must not be negative");
|
|
73
|
-
}
|
|
74
|
-
function or(n, r, i, t) {
|
|
75
|
-
return V(r), r <= 0 ? g(n, r) : i !== void 0 ? typeof t == "string" ? g(n, r).fill(i, t) : g(n, r).fill(i) : g(n, r);
|
|
76
|
-
}
|
|
77
|
-
function D(n, r) {
|
|
78
|
-
if (V(r), n = g(n, r < 0 ? 0 : C(r) | 0), !h.TYPED_ARRAY_SUPPORT) for (var i = 0; i < r; ++i) n[i] = 0;
|
|
79
|
-
return n;
|
|
80
|
-
}
|
|
81
|
-
function ur(n, r, i) {
|
|
82
|
-
if ((typeof i != "string" || i === "") && (i = "utf8"), !h.isEncoding(i)) throw new TypeError("\"encoding\" must be a valid string encoding");
|
|
83
|
-
var t = d(r, i) | 0;
|
|
84
|
-
n = g(n, t);
|
|
85
|
-
var e = n.write(r, i);
|
|
86
|
-
return e !== t && (n = n.slice(0, e)), n;
|
|
87
|
-
}
|
|
88
|
-
function x(n, r) {
|
|
89
|
-
var i = r.length < 0 ? 0 : C(r.length) | 0;
|
|
90
|
-
n = g(n, i);
|
|
91
|
-
for (var t = 0; t < i; t += 1) n[t] = r[t] & 255;
|
|
92
|
-
return n;
|
|
93
|
-
}
|
|
94
|
-
function hr(n, r, i, t) {
|
|
95
|
-
if (r.byteLength, i < 0 || r.byteLength < i) throw new RangeError("'offset' is out of bounds");
|
|
96
|
-
if (r.byteLength < i + (t || 0)) throw new RangeError("'length' is out of bounds");
|
|
97
|
-
return i === void 0 && t === void 0 ? r = new Uint8Array(r) : t === void 0 ? r = new Uint8Array(r, i) : r = new Uint8Array(r, i, t), h.TYPED_ARRAY_SUPPORT ? (n = r, n.__proto__ = h.prototype) : n = x(n, r), n;
|
|
98
|
-
}
|
|
99
|
-
function ar(n, r) {
|
|
100
|
-
if (R(r)) {
|
|
101
|
-
var i = C(r.length) | 0;
|
|
102
|
-
return n = g(n, i), n.length === 0 || r.copy(n, 0, 0, i), n;
|
|
103
|
-
}
|
|
104
|
-
if (r) {
|
|
105
|
-
if (typeof ArrayBuffer < "u" && r.buffer instanceof ArrayBuffer || "length" in r) return typeof r.length != "number" || vr(r.length) ? g(n, 0) : x(n, r);
|
|
106
|
-
if (r.type === "Buffer" && k(r.data)) return x(n, r.data);
|
|
107
|
-
}
|
|
108
|
-
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
|
|
109
|
-
}
|
|
110
|
-
function C(n) {
|
|
111
|
-
if (n >= B()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + B().toString(16) + " bytes");
|
|
112
|
-
return n | 0;
|
|
113
|
-
}
|
|
114
|
-
function R(n) {
|
|
115
|
-
return !!(n != null && n._isBuffer);
|
|
116
|
-
}
|
|
117
|
-
function d(n, r) {
|
|
118
|
-
if (R(n)) return n.length;
|
|
119
|
-
if (typeof ArrayBuffer < "u" && typeof ArrayBuffer.isView == "function" && (ArrayBuffer.isView(n) || n instanceof ArrayBuffer)) return n.byteLength;
|
|
120
|
-
typeof n != "string" && (n = "" + n);
|
|
121
|
-
var i = n.length;
|
|
122
|
-
if (i === 0) return 0;
|
|
123
|
-
for (var t = !1;;) switch (r) {
|
|
124
|
-
case "ascii":
|
|
125
|
-
case "latin1":
|
|
126
|
-
case "binary": return i;
|
|
127
|
-
case "utf8":
|
|
128
|
-
case "utf-8":
|
|
129
|
-
case void 0: return P(n).length;
|
|
130
|
-
case "ucs2":
|
|
131
|
-
case "ucs-2":
|
|
132
|
-
case "utf16le":
|
|
133
|
-
case "utf-16le": return i * 2;
|
|
134
|
-
case "hex": return i >>> 1;
|
|
135
|
-
case "base64": return Q(n).length;
|
|
136
|
-
default:
|
|
137
|
-
if (t) return P(n).length;
|
|
138
|
-
r = ("" + r).toLowerCase(), t = !0;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function cr(n, r, i) {
|
|
142
|
-
var t = !1;
|
|
143
|
-
if ((r === void 0 || r < 0) && (r = 0), r > this.length || ((i === void 0 || i > this.length) && (i = this.length), i <= 0) || (i >>>= 0, r >>>= 0, i <= r)) return "";
|
|
144
|
-
for (n || (n = "utf8");;) switch (n) {
|
|
145
|
-
case "hex": return Rr(this, r, i);
|
|
146
|
-
case "utf8":
|
|
147
|
-
case "utf-8": return q(this, r, i);
|
|
148
|
-
case "ascii": return Ar(this, r, i);
|
|
149
|
-
case "latin1":
|
|
150
|
-
case "binary": return yr(this, r, i);
|
|
151
|
-
case "base64": return Er(this, r, i);
|
|
152
|
-
case "ucs2":
|
|
153
|
-
case "ucs-2":
|
|
154
|
-
case "utf16le":
|
|
155
|
-
case "utf-16le": return gr(this, r, i);
|
|
156
|
-
default:
|
|
157
|
-
if (t) throw new TypeError("Unknown encoding: " + n);
|
|
158
|
-
n = (n + "").toLowerCase(), t = !0;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
function m(n, r, i) {
|
|
162
|
-
var t = n[r];
|
|
163
|
-
n[r] = n[i], n[i] = t;
|
|
164
|
-
}
|
|
165
|
-
function G(n, r, i, t, e) {
|
|
166
|
-
if (n.length === 0) return -1;
|
|
167
|
-
if (typeof i == "string" ? (t = i, i = 0) : i > 2147483647 ? i = 2147483647 : i < -2147483648 && (i = -2147483648), i = +i, isNaN(i) && (i = e ? 0 : n.length - 1), i < 0 && (i = n.length + i), i >= n.length) {
|
|
168
|
-
if (e) return -1;
|
|
169
|
-
i = n.length - 1;
|
|
170
|
-
} else if (i < 0) if (e) i = 0;
|
|
171
|
-
else return -1;
|
|
172
|
-
if (typeof r == "string" && (r = h.from(r, t)), R(r)) return r.length === 0 ? -1 : J(n, r, i, t, e);
|
|
173
|
-
if (typeof r == "number") return r = r & 255, h.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? e ? Uint8Array.prototype.indexOf.call(n, r, i) : Uint8Array.prototype.lastIndexOf.call(n, r, i) : J(n, [r], i, t, e);
|
|
174
|
-
throw new TypeError("val must be string, number or Buffer");
|
|
175
|
-
}
|
|
176
|
-
function J(n, r, i, t, e) {
|
|
177
|
-
var o = 1, u = n.length, a = r.length;
|
|
178
|
-
if (t !== void 0 && (t = String(t).toLowerCase(), t === "ucs2" || t === "ucs-2" || t === "utf16le" || t === "utf-16le")) {
|
|
179
|
-
if (n.length < 2 || r.length < 2) return -1;
|
|
180
|
-
o = 2, u /= 2, a /= 2, i /= 2;
|
|
181
|
-
}
|
|
182
|
-
function c(_, I) {
|
|
183
|
-
return o === 1 ? _[I] : _.readUInt16BE(I * o);
|
|
184
|
-
}
|
|
185
|
-
var l;
|
|
186
|
-
if (e) {
|
|
187
|
-
var f = -1;
|
|
188
|
-
for (l = i; l < u; l++) if (c(n, l) === c(r, f === -1 ? 0 : l - f)) {
|
|
189
|
-
if (f === -1 && (f = l), l - f + 1 === a) return f * o;
|
|
190
|
-
} else f !== -1 && (l -= l - f), f = -1;
|
|
191
|
-
} else for (i + a > u && (i = u - a), l = i; l >= 0; l--) {
|
|
192
|
-
for (var p = !0, y = 0; y < a; y++) if (c(n, l + y) !== c(r, y)) {
|
|
193
|
-
p = !1;
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
|
-
if (p) return l;
|
|
197
|
-
}
|
|
198
|
-
return -1;
|
|
199
|
-
}
|
|
200
|
-
function pr(n, r, i, t) {
|
|
201
|
-
i = Number(i) || 0;
|
|
202
|
-
var e = n.length - i;
|
|
203
|
-
t ? (t = Number(t), t > e && (t = e)) : t = e;
|
|
204
|
-
var o = r.length;
|
|
205
|
-
if (o % 2 !== 0) throw new TypeError("Invalid hex string");
|
|
206
|
-
t > o / 2 && (t = o / 2);
|
|
207
|
-
for (var u = 0; u < t; ++u) {
|
|
208
|
-
var a = parseInt(r.substr(u * 2, 2), 16);
|
|
209
|
-
if (isNaN(a)) return u;
|
|
210
|
-
n[i + u] = a;
|
|
211
|
-
}
|
|
212
|
-
return u;
|
|
213
|
-
}
|
|
214
|
-
function lr(n, r, i, t) {
|
|
215
|
-
return S(P(r, n.length - i), n, i, t);
|
|
216
|
-
}
|
|
217
|
-
function X(n, r, i, t) {
|
|
218
|
-
return S(Tr(r), n, i, t);
|
|
219
|
-
}
|
|
220
|
-
function fr(n, r, i, t) {
|
|
221
|
-
return X(n, r, i, t);
|
|
222
|
-
}
|
|
223
|
-
function sr(n, r, i, t) {
|
|
224
|
-
return S(Q(r), n, i, t);
|
|
225
|
-
}
|
|
226
|
-
function wr(n, r, i, t) {
|
|
227
|
-
return S(Br(r, n.length - i), n, i, t);
|
|
228
|
-
}
|
|
229
|
-
function Er(n, r, i) {
|
|
230
|
-
return r === 0 && i === n.length ? W(n) : W(n.slice(r, i));
|
|
231
|
-
}
|
|
232
|
-
function q(n, r, i) {
|
|
233
|
-
i = Math.min(n.length, i);
|
|
234
|
-
for (var t = [], e = r; e < i;) {
|
|
235
|
-
var o = n[e], u = null, a = o > 239 ? 4 : o > 223 ? 3 : o > 191 ? 2 : 1;
|
|
236
|
-
if (e + a <= i) {
|
|
237
|
-
var c, l, f, p;
|
|
238
|
-
switch (a) {
|
|
239
|
-
case 1:
|
|
240
|
-
o < 128 && (u = o);
|
|
241
|
-
break;
|
|
242
|
-
case 2:
|
|
243
|
-
c = n[e + 1], (c & 192) === 128 && (p = (o & 31) << 6 | c & 63, p > 127 && (u = p));
|
|
244
|
-
break;
|
|
245
|
-
case 3:
|
|
246
|
-
c = n[e + 1], l = n[e + 2], (c & 192) === 128 && (l & 192) === 128 && (p = (o & 15) << 12 | (c & 63) << 6 | l & 63, p > 2047 && (p < 55296 || p > 57343) && (u = p));
|
|
247
|
-
break;
|
|
248
|
-
case 4: c = n[e + 1], l = n[e + 2], f = n[e + 3], (c & 192) === 128 && (l & 192) === 128 && (f & 192) === 128 && (p = (o & 15) << 18 | (c & 63) << 12 | (l & 63) << 6 | f & 63, p > 65535 && p < 1114112 && (u = p));
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
u === null ? (u = 65533, a = 1) : u > 65535 && (u -= 65536, t.push(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), t.push(u), e += a;
|
|
252
|
-
}
|
|
253
|
-
return _r(t);
|
|
254
|
-
}
|
|
255
|
-
function _r(n) {
|
|
256
|
-
var r = n.length;
|
|
257
|
-
if (r <= N) return String.fromCharCode.apply(String, n);
|
|
258
|
-
for (var i = "", t = 0; t < r;) i += String.fromCharCode.apply(String, n.slice(t, t += N));
|
|
259
|
-
return i;
|
|
260
|
-
}
|
|
261
|
-
function Ar(n, r, i) {
|
|
262
|
-
var t = "";
|
|
263
|
-
i = Math.min(n.length, i);
|
|
264
|
-
for (var e = r; e < i; ++e) t += String.fromCharCode(n[e] & 127);
|
|
265
|
-
return t;
|
|
266
|
-
}
|
|
267
|
-
function yr(n, r, i) {
|
|
268
|
-
var t = "";
|
|
269
|
-
i = Math.min(n.length, i);
|
|
270
|
-
for (var e = r; e < i; ++e) t += String.fromCharCode(n[e]);
|
|
271
|
-
return t;
|
|
272
|
-
}
|
|
273
|
-
function Rr(n, r, i) {
|
|
274
|
-
var t = n.length;
|
|
275
|
-
(!r || r < 0) && (r = 0), (!i || i < 0 || i > t) && (i = t);
|
|
276
|
-
for (var e = "", o = r; o < i; ++o) e += Ur(n[o]);
|
|
277
|
-
return e;
|
|
278
|
-
}
|
|
279
|
-
function gr(n, r, i) {
|
|
280
|
-
for (var t = n.slice(r, i), e = "", o = 0; o < t.length; o += 2) e += String.fromCharCode(t[o] + t[o + 1] * 256);
|
|
281
|
-
return e;
|
|
282
|
-
}
|
|
283
|
-
function s(n, r, i) {
|
|
284
|
-
if (n % 1 !== 0 || n < 0) throw new RangeError("offset is not uint");
|
|
285
|
-
if (n + r > i) throw new RangeError("Trying to access beyond buffer length");
|
|
286
|
-
}
|
|
287
|
-
function w(n, r, i, t, e, o) {
|
|
288
|
-
if (!R(n)) throw new TypeError("\"buffer\" argument must be a Buffer instance");
|
|
289
|
-
if (r > e || r < o) throw new RangeError("\"value\" argument is out of bounds");
|
|
290
|
-
if (i + t > n.length) throw new RangeError("Index out of range");
|
|
291
|
-
}
|
|
292
|
-
function v(n, r, i, t) {
|
|
293
|
-
r < 0 && (r = 65535 + r + 1);
|
|
294
|
-
for (var e = 0, o = Math.min(n.length - i, 2); e < o; ++e) n[i + e] = (r & 255 << 8 * (t ? e : 1 - e)) >>> (t ? e : 1 - e) * 8;
|
|
295
|
-
}
|
|
296
|
-
function Y(n, r, i, t) {
|
|
297
|
-
r < 0 && (r = 4294967295 + r + 1);
|
|
298
|
-
for (var e = 0, o = Math.min(n.length - i, 4); e < o; ++e) n[i + e] = r >>> (t ? e : 3 - e) * 8 & 255;
|
|
299
|
-
}
|
|
300
|
-
function z(n, r, i, t, e, o) {
|
|
301
|
-
if (i + t > n.length) throw new RangeError("Index out of range");
|
|
302
|
-
if (i < 0) throw new RangeError("Index out of range");
|
|
303
|
-
}
|
|
304
|
-
function Z(n, r, i, t, e) {
|
|
305
|
-
return e || z(n, r, i, 4), H(n, r, i, t, 23, 4), i + 4;
|
|
306
|
-
}
|
|
307
|
-
function K(n, r, i, t, e) {
|
|
308
|
-
return e || z(n, r, i, 8), H(n, r, i, t, 52, 8), i + 8;
|
|
309
|
-
}
|
|
310
|
-
function mr(n) {
|
|
311
|
-
if (n = Ir(n).replace(rr, ""), n.length < 2) return "";
|
|
312
|
-
for (; n.length % 4 !== 0;) n = n + "=";
|
|
313
|
-
return n;
|
|
314
|
-
}
|
|
315
|
-
function Ir(n) {
|
|
316
|
-
return n.trim ? n.trim() : n.replace(/^\s+|\s+$/g, "");
|
|
317
|
-
}
|
|
318
|
-
function Ur(n) {
|
|
319
|
-
return n < 16 ? "0" + n.toString(16) : n.toString(16);
|
|
320
|
-
}
|
|
321
|
-
function P(n, r) {
|
|
322
|
-
r = r || Infinity;
|
|
323
|
-
for (var i, t = n.length, e = null, o = [], u = 0; u < t; ++u) {
|
|
324
|
-
if (i = n.charCodeAt(u), i > 55295 && i < 57344) {
|
|
325
|
-
if (!e) {
|
|
326
|
-
if (i > 56319) {
|
|
327
|
-
(r -= 3) > -1 && o.push(239, 191, 189);
|
|
328
|
-
continue;
|
|
329
|
-
} else if (u + 1 === t) {
|
|
330
|
-
(r -= 3) > -1 && o.push(239, 191, 189);
|
|
331
|
-
continue;
|
|
332
|
-
}
|
|
333
|
-
e = i;
|
|
334
|
-
continue;
|
|
335
|
-
}
|
|
336
|
-
if (i < 56320) {
|
|
337
|
-
(r -= 3) > -1 && o.push(239, 191, 189), e = i;
|
|
338
|
-
continue;
|
|
339
|
-
}
|
|
340
|
-
i = (e - 55296 << 10 | i - 56320) + 65536;
|
|
341
|
-
} else e && (r -= 3) > -1 && o.push(239, 191, 189);
|
|
342
|
-
if (e = null, i < 128) {
|
|
343
|
-
if ((r -= 1) < 0) break;
|
|
344
|
-
o.push(i);
|
|
345
|
-
} else if (i < 2048) {
|
|
346
|
-
if ((r -= 2) < 0) break;
|
|
347
|
-
o.push(i >> 6 | 192, i & 63 | 128);
|
|
348
|
-
} else if (i < 65536) {
|
|
349
|
-
if ((r -= 3) < 0) break;
|
|
350
|
-
o.push(i >> 12 | 224, i >> 6 & 63 | 128, i & 63 | 128);
|
|
351
|
-
} else if (i < 1114112) {
|
|
352
|
-
if ((r -= 4) < 0) break;
|
|
353
|
-
o.push(i >> 18 | 240, i >> 12 & 63 | 128, i >> 6 & 63 | 128, i & 63 | 128);
|
|
354
|
-
} else throw new Error("Invalid code point");
|
|
355
|
-
}
|
|
356
|
-
return o;
|
|
357
|
-
}
|
|
358
|
-
function Tr(n) {
|
|
359
|
-
for (var r = [], i = 0; i < n.length; ++i) r.push(n.charCodeAt(i) & 255);
|
|
360
|
-
return r;
|
|
361
|
-
}
|
|
362
|
-
function Br(n, r) {
|
|
363
|
-
for (var i, t, e, o = [], u = 0; u < n.length && !((r -= 2) < 0); ++u) i = n.charCodeAt(u), t = i >> 8, e = i % 256, o.push(e), o.push(t);
|
|
364
|
-
return o;
|
|
365
|
-
}
|
|
366
|
-
function Q(n) {
|
|
367
|
-
return nr(mr(n));
|
|
368
|
-
}
|
|
369
|
-
function S(n, r, i, t) {
|
|
370
|
-
for (var e = 0; e < t && !(e + i >= r.length || e >= n.length); ++e) r[e + i] = n[e];
|
|
371
|
-
return e;
|
|
372
|
-
}
|
|
373
|
-
function vr(n) {
|
|
374
|
-
return n !== n;
|
|
375
|
-
}
|
|
376
|
-
function Yr(n) {
|
|
377
|
-
return n != null && (!!n._isBuffer || $(n) || Pr(n));
|
|
378
|
-
}
|
|
379
|
-
function $(n) {
|
|
380
|
-
return !!n.constructor && typeof n.constructor.isBuffer == "function" && n.constructor.isBuffer(n);
|
|
381
|
-
}
|
|
382
|
-
function Pr(n) {
|
|
383
|
-
return typeof n.readFloatLE == "function" && typeof n.slice == "function" && $(n.slice(0, 0));
|
|
384
|
-
}
|
|
385
|
-
var A, E, j, M, b, k, N, rr, Dr = U.__esmMin((() => {
|
|
386
|
-
U.init__polyfill_node_global(), A = [], E = [], j = typeof Uint8Array < "u" ? Uint8Array : Array, M = !1, b = {}.toString, k = Array.isArray || function(n) {
|
|
387
|
-
return b.call(n) == "[object Array]";
|
|
388
|
-
}, h.TYPED_ARRAY_SUPPORT = U._polyfill_node_global_default.TYPED_ARRAY_SUPPORT !== void 0 ? U._polyfill_node_global_default.TYPED_ARRAY_SUPPORT : !0, B(), h.poolSize = 8192, h._augment = function(n) {
|
|
389
|
-
return n.__proto__ = h.prototype, n;
|
|
390
|
-
}, h.from = function(n, r, i) {
|
|
391
|
-
return O(null, n, r, i);
|
|
392
|
-
}, h.TYPED_ARRAY_SUPPORT && (h.prototype.__proto__ = Uint8Array.prototype, h.__proto__ = Uint8Array, typeof Symbol < "u" && Symbol.species && h[Symbol.species]), h.alloc = function(n, r, i) {
|
|
393
|
-
return or(null, n, r, i);
|
|
394
|
-
}, h.allocUnsafe = function(n) {
|
|
395
|
-
return D(null, n);
|
|
396
|
-
}, h.allocUnsafeSlow = function(n) {
|
|
397
|
-
return D(null, n);
|
|
398
|
-
}, h.isBuffer = Yr, h.compare = function(r, i) {
|
|
399
|
-
if (!R(r) || !R(i)) throw new TypeError("Arguments must be Buffers");
|
|
400
|
-
if (r === i) return 0;
|
|
401
|
-
for (var t = r.length, e = i.length, o = 0, u = Math.min(t, e); o < u; ++o) if (r[o] !== i[o]) {
|
|
402
|
-
t = r[o], e = i[o];
|
|
403
|
-
break;
|
|
404
|
-
}
|
|
405
|
-
return t < e ? -1 : e < t ? 1 : 0;
|
|
406
|
-
}, h.isEncoding = function(r) {
|
|
407
|
-
switch (String(r).toLowerCase()) {
|
|
408
|
-
case "hex":
|
|
409
|
-
case "utf8":
|
|
410
|
-
case "utf-8":
|
|
411
|
-
case "ascii":
|
|
412
|
-
case "latin1":
|
|
413
|
-
case "binary":
|
|
414
|
-
case "base64":
|
|
415
|
-
case "ucs2":
|
|
416
|
-
case "ucs-2":
|
|
417
|
-
case "utf16le":
|
|
418
|
-
case "utf-16le": return !0;
|
|
419
|
-
default: return !1;
|
|
420
|
-
}
|
|
421
|
-
}, h.concat = function(r, i) {
|
|
422
|
-
if (!k(r)) throw new TypeError("\"list\" argument must be an Array of Buffers");
|
|
423
|
-
if (r.length === 0) return h.alloc(0);
|
|
424
|
-
var t;
|
|
425
|
-
if (i === void 0) for (i = 0, t = 0; t < r.length; ++t) i += r[t].length;
|
|
426
|
-
var e = h.allocUnsafe(i), o = 0;
|
|
427
|
-
for (t = 0; t < r.length; ++t) {
|
|
428
|
-
var u = r[t];
|
|
429
|
-
if (!R(u)) throw new TypeError("\"list\" argument must be an Array of Buffers");
|
|
430
|
-
u.copy(e, o), o += u.length;
|
|
431
|
-
}
|
|
432
|
-
return e;
|
|
433
|
-
}, h.byteLength = d, h.prototype._isBuffer = !0, h.prototype.swap16 = function() {
|
|
434
|
-
var r = this.length;
|
|
435
|
-
if (r % 2 !== 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
436
|
-
for (var i = 0; i < r; i += 2) m(this, i, i + 1);
|
|
437
|
-
return this;
|
|
438
|
-
}, h.prototype.swap32 = function() {
|
|
439
|
-
var r = this.length;
|
|
440
|
-
if (r % 4 !== 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
441
|
-
for (var i = 0; i < r; i += 4) m(this, i, i + 3), m(this, i + 1, i + 2);
|
|
442
|
-
return this;
|
|
443
|
-
}, h.prototype.swap64 = function() {
|
|
444
|
-
var r = this.length;
|
|
445
|
-
if (r % 8 !== 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
446
|
-
for (var i = 0; i < r; i += 8) m(this, i, i + 7), m(this, i + 1, i + 6), m(this, i + 2, i + 5), m(this, i + 3, i + 4);
|
|
447
|
-
return this;
|
|
448
|
-
}, h.prototype.toString = function() {
|
|
449
|
-
var r = this.length | 0;
|
|
450
|
-
return r === 0 ? "" : arguments.length === 0 ? q(this, 0, r) : cr.apply(this, arguments);
|
|
451
|
-
}, h.prototype.equals = function(r) {
|
|
452
|
-
if (!R(r)) throw new TypeError("Argument must be a Buffer");
|
|
453
|
-
return this === r ? !0 : h.compare(this, r) === 0;
|
|
454
|
-
}, h.prototype.inspect = function() {
|
|
455
|
-
var r = "", i = 50;
|
|
456
|
-
return this.length > 0 && (r = this.toString("hex", 0, i).match(/.{2}/g).join(" "), this.length > i && (r += " ... ")), "<Buffer " + r + ">";
|
|
457
|
-
}, h.prototype.compare = function(r, i, t, e, o) {
|
|
458
|
-
if (!R(r)) throw new TypeError("Argument must be a Buffer");
|
|
459
|
-
if (i === void 0 && (i = 0), t === void 0 && (t = r ? r.length : 0), e === void 0 && (e = 0), o === void 0 && (o = this.length), i < 0 || t > r.length || e < 0 || o > this.length) throw new RangeError("out of range index");
|
|
460
|
-
if (e >= o && i >= t) return 0;
|
|
461
|
-
if (e >= o) return -1;
|
|
462
|
-
if (i >= t) return 1;
|
|
463
|
-
if (i >>>= 0, t >>>= 0, e >>>= 0, o >>>= 0, this === r) return 0;
|
|
464
|
-
for (var u = o - e, a = t - i, c = Math.min(u, a), l = this.slice(e, o), f = r.slice(i, t), p = 0; p < c; ++p) if (l[p] !== f[p]) {
|
|
465
|
-
u = l[p], a = f[p];
|
|
466
|
-
break;
|
|
467
|
-
}
|
|
468
|
-
return u < a ? -1 : a < u ? 1 : 0;
|
|
469
|
-
}, h.prototype.includes = function(r, i, t) {
|
|
470
|
-
return this.indexOf(r, i, t) !== -1;
|
|
471
|
-
}, h.prototype.indexOf = function(r, i, t) {
|
|
472
|
-
return G(this, r, i, t, !0);
|
|
473
|
-
}, h.prototype.lastIndexOf = function(r, i, t) {
|
|
474
|
-
return G(this, r, i, t, !1);
|
|
475
|
-
}, h.prototype.write = function(r, i, t, e) {
|
|
476
|
-
if (i === void 0) e = "utf8", t = this.length, i = 0;
|
|
477
|
-
else if (t === void 0 && typeof i == "string") e = i, t = this.length, i = 0;
|
|
478
|
-
else if (isFinite(i)) i = i | 0, isFinite(t) ? (t = t | 0, e === void 0 && (e = "utf8")) : (e = t, t = void 0);
|
|
479
|
-
else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
|
|
480
|
-
var o = this.length - i;
|
|
481
|
-
if ((t === void 0 || t > o) && (t = o), r.length > 0 && (t < 0 || i < 0) || i > this.length) throw new RangeError("Attempt to write outside buffer bounds");
|
|
482
|
-
e || (e = "utf8");
|
|
483
|
-
for (var u = !1;;) switch (e) {
|
|
484
|
-
case "hex": return pr(this, r, i, t);
|
|
485
|
-
case "utf8":
|
|
486
|
-
case "utf-8": return lr(this, r, i, t);
|
|
487
|
-
case "ascii": return X(this, r, i, t);
|
|
488
|
-
case "latin1":
|
|
489
|
-
case "binary": return fr(this, r, i, t);
|
|
490
|
-
case "base64": return sr(this, r, i, t);
|
|
491
|
-
case "ucs2":
|
|
492
|
-
case "ucs-2":
|
|
493
|
-
case "utf16le":
|
|
494
|
-
case "utf-16le": return wr(this, r, i, t);
|
|
495
|
-
default:
|
|
496
|
-
if (u) throw new TypeError("Unknown encoding: " + e);
|
|
497
|
-
e = ("" + e).toLowerCase(), u = !0;
|
|
498
|
-
}
|
|
499
|
-
}, h.prototype.toJSON = function() {
|
|
500
|
-
return {
|
|
501
|
-
type: "Buffer",
|
|
502
|
-
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
503
|
-
};
|
|
504
|
-
}, N = 4096, h.prototype.slice = function(r, i) {
|
|
505
|
-
var t = this.length;
|
|
506
|
-
r = ~~r, i = i === void 0 ? t : ~~i, r < 0 ? (r += t, r < 0 && (r = 0)) : r > t && (r = t), i < 0 ? (i += t, i < 0 && (i = 0)) : i > t && (i = t), i < r && (i = r);
|
|
507
|
-
var e;
|
|
508
|
-
if (h.TYPED_ARRAY_SUPPORT) e = this.subarray(r, i), e.__proto__ = h.prototype;
|
|
509
|
-
else {
|
|
510
|
-
var o = i - r;
|
|
511
|
-
e = new h(o, void 0);
|
|
512
|
-
for (var u = 0; u < o; ++u) e[u] = this[u + r];
|
|
513
|
-
}
|
|
514
|
-
return e;
|
|
515
|
-
}, h.prototype.readUIntLE = function(r, i, t) {
|
|
516
|
-
r = r | 0, i = i | 0, t || s(r, i, this.length);
|
|
517
|
-
for (var e = this[r], o = 1, u = 0; ++u < i && (o *= 256);) e += this[r + u] * o;
|
|
518
|
-
return e;
|
|
519
|
-
}, h.prototype.readUIntBE = function(r, i, t) {
|
|
520
|
-
r = r | 0, i = i | 0, t || s(r, i, this.length);
|
|
521
|
-
for (var e = this[r + --i], o = 1; i > 0 && (o *= 256);) e += this[r + --i] * o;
|
|
522
|
-
return e;
|
|
523
|
-
}, h.prototype.readUInt8 = function(r, i) {
|
|
524
|
-
return i || s(r, 1, this.length), this[r];
|
|
525
|
-
}, h.prototype.readUInt16LE = function(r, i) {
|
|
526
|
-
return i || s(r, 2, this.length), this[r] | this[r + 1] << 8;
|
|
527
|
-
}, h.prototype.readUInt16BE = function(r, i) {
|
|
528
|
-
return i || s(r, 2, this.length), this[r] << 8 | this[r + 1];
|
|
529
|
-
}, h.prototype.readUInt32LE = function(r, i) {
|
|
530
|
-
return i || s(r, 4, this.length), (this[r] | this[r + 1] << 8 | this[r + 2] << 16) + this[r + 3] * 16777216;
|
|
531
|
-
}, h.prototype.readUInt32BE = function(r, i) {
|
|
532
|
-
return i || s(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
|
|
533
|
-
}, h.prototype.readIntLE = function(r, i, t) {
|
|
534
|
-
r = r | 0, i = i | 0, t || s(r, i, this.length);
|
|
535
|
-
for (var e = this[r], o = 1, u = 0; ++u < i && (o *= 256);) e += this[r + u] * o;
|
|
536
|
-
return o *= 128, e >= o && (e -= Math.pow(2, 8 * i)), e;
|
|
537
|
-
}, h.prototype.readIntBE = function(r, i, t) {
|
|
538
|
-
r = r | 0, i = i | 0, t || s(r, i, this.length);
|
|
539
|
-
for (var e = i, o = 1, u = this[r + --e]; e > 0 && (o *= 256);) u += this[r + --e] * o;
|
|
540
|
-
return o *= 128, u >= o && (u -= Math.pow(2, 8 * i)), u;
|
|
541
|
-
}, h.prototype.readInt8 = function(r, i) {
|
|
542
|
-
return i || s(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
|
|
543
|
-
}, h.prototype.readInt16LE = function(r, i) {
|
|
544
|
-
i || s(r, 2, this.length);
|
|
545
|
-
var t = this[r] | this[r + 1] << 8;
|
|
546
|
-
return t & 32768 ? t | 4294901760 : t;
|
|
547
|
-
}, h.prototype.readInt16BE = function(r, i) {
|
|
548
|
-
i || s(r, 2, this.length);
|
|
549
|
-
var t = this[r + 1] | this[r] << 8;
|
|
550
|
-
return t & 32768 ? t | 4294901760 : t;
|
|
551
|
-
}, h.prototype.readInt32LE = function(r, i) {
|
|
552
|
-
return i || s(r, 4, this.length), this[r] | this[r + 1] << 8 | this[r + 2] << 16 | this[r + 3] << 24;
|
|
553
|
-
}, h.prototype.readInt32BE = function(r, i) {
|
|
554
|
-
return i || s(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
|
|
555
|
-
}, h.prototype.readFloatLE = function(r, i) {
|
|
556
|
-
return i || s(r, 4, this.length), T(this, r, !0, 23, 4);
|
|
557
|
-
}, h.prototype.readFloatBE = function(r, i) {
|
|
558
|
-
return i || s(r, 4, this.length), T(this, r, !1, 23, 4);
|
|
559
|
-
}, h.prototype.readDoubleLE = function(r, i) {
|
|
560
|
-
return i || s(r, 8, this.length), T(this, r, !0, 52, 8);
|
|
561
|
-
}, h.prototype.readDoubleBE = function(r, i) {
|
|
562
|
-
return i || s(r, 8, this.length), T(this, r, !1, 52, 8);
|
|
563
|
-
}, h.prototype.writeUIntLE = function(r, i, t, e) {
|
|
564
|
-
if (r = +r, i = i | 0, t = t | 0, !e) {
|
|
565
|
-
var o = Math.pow(2, 8 * t) - 1;
|
|
566
|
-
w(this, r, i, t, o, 0);
|
|
567
|
-
}
|
|
568
|
-
var u = 1, a = 0;
|
|
569
|
-
for (this[i] = r & 255; ++a < t && (u *= 256);) this[i + a] = r / u & 255;
|
|
570
|
-
return i + t;
|
|
571
|
-
}, h.prototype.writeUIntBE = function(r, i, t, e) {
|
|
572
|
-
if (r = +r, i = i | 0, t = t | 0, !e) {
|
|
573
|
-
var o = Math.pow(2, 8 * t) - 1;
|
|
574
|
-
w(this, r, i, t, o, 0);
|
|
575
|
-
}
|
|
576
|
-
var u = t - 1, a = 1;
|
|
577
|
-
for (this[i + u] = r & 255; --u >= 0 && (a *= 256);) this[i + u] = r / a & 255;
|
|
578
|
-
return i + t;
|
|
579
|
-
}, h.prototype.writeUInt8 = function(r, i, t) {
|
|
580
|
-
return r = +r, i = i | 0, t || w(this, r, i, 1, 255, 0), h.TYPED_ARRAY_SUPPORT || (r = Math.floor(r)), this[i] = r & 255, i + 1;
|
|
581
|
-
}, h.prototype.writeUInt16LE = function(r, i, t) {
|
|
582
|
-
return r = +r, i = i | 0, t || w(this, r, i, 2, 65535, 0), h.TYPED_ARRAY_SUPPORT ? (this[i] = r & 255, this[i + 1] = r >>> 8) : v(this, r, i, !0), i + 2;
|
|
583
|
-
}, h.prototype.writeUInt16BE = function(r, i, t) {
|
|
584
|
-
return r = +r, i = i | 0, t || w(this, r, i, 2, 65535, 0), h.TYPED_ARRAY_SUPPORT ? (this[i] = r >>> 8, this[i + 1] = r & 255) : v(this, r, i, !1), i + 2;
|
|
585
|
-
}, h.prototype.writeUInt32LE = function(r, i, t) {
|
|
586
|
-
return r = +r, i = i | 0, t || w(this, r, i, 4, 4294967295, 0), h.TYPED_ARRAY_SUPPORT ? (this[i + 3] = r >>> 24, this[i + 2] = r >>> 16, this[i + 1] = r >>> 8, this[i] = r & 255) : Y(this, r, i, !0), i + 4;
|
|
587
|
-
}, h.prototype.writeUInt32BE = function(r, i, t) {
|
|
588
|
-
return r = +r, i = i | 0, t || w(this, r, i, 4, 4294967295, 0), h.TYPED_ARRAY_SUPPORT ? (this[i] = r >>> 24, this[i + 1] = r >>> 16, this[i + 2] = r >>> 8, this[i + 3] = r & 255) : Y(this, r, i, !1), i + 4;
|
|
589
|
-
}, h.prototype.writeIntLE = function(r, i, t, e) {
|
|
590
|
-
if (r = +r, i = i | 0, !e) {
|
|
591
|
-
var o = Math.pow(2, 8 * t - 1);
|
|
592
|
-
w(this, r, i, t, o - 1, -o);
|
|
593
|
-
}
|
|
594
|
-
var u = 0, a = 1, c = 0;
|
|
595
|
-
for (this[i] = r & 255; ++u < t && (a *= 256);) r < 0 && c === 0 && this[i + u - 1] !== 0 && (c = 1), this[i + u] = (r / a >> 0) - c & 255;
|
|
596
|
-
return i + t;
|
|
597
|
-
}, h.prototype.writeIntBE = function(r, i, t, e) {
|
|
598
|
-
if (r = +r, i = i | 0, !e) {
|
|
599
|
-
var o = Math.pow(2, 8 * t - 1);
|
|
600
|
-
w(this, r, i, t, o - 1, -o);
|
|
601
|
-
}
|
|
602
|
-
var u = t - 1, a = 1, c = 0;
|
|
603
|
-
for (this[i + u] = r & 255; --u >= 0 && (a *= 256);) r < 0 && c === 0 && this[i + u + 1] !== 0 && (c = 1), this[i + u] = (r / a >> 0) - c & 255;
|
|
604
|
-
return i + t;
|
|
605
|
-
}, h.prototype.writeInt8 = function(r, i, t) {
|
|
606
|
-
return r = +r, i = i | 0, t || w(this, r, i, 1, 127, -128), h.TYPED_ARRAY_SUPPORT || (r = Math.floor(r)), r < 0 && (r = 255 + r + 1), this[i] = r & 255, i + 1;
|
|
607
|
-
}, h.prototype.writeInt16LE = function(r, i, t) {
|
|
608
|
-
return r = +r, i = i | 0, t || w(this, r, i, 2, 32767, -32768), h.TYPED_ARRAY_SUPPORT ? (this[i] = r & 255, this[i + 1] = r >>> 8) : v(this, r, i, !0), i + 2;
|
|
609
|
-
}, h.prototype.writeInt16BE = function(r, i, t) {
|
|
610
|
-
return r = +r, i = i | 0, t || w(this, r, i, 2, 32767, -32768), h.TYPED_ARRAY_SUPPORT ? (this[i] = r >>> 8, this[i + 1] = r & 255) : v(this, r, i, !1), i + 2;
|
|
611
|
-
}, h.prototype.writeInt32LE = function(r, i, t) {
|
|
612
|
-
return r = +r, i = i | 0, t || w(this, r, i, 4, 2147483647, -2147483648), h.TYPED_ARRAY_SUPPORT ? (this[i] = r & 255, this[i + 1] = r >>> 8, this[i + 2] = r >>> 16, this[i + 3] = r >>> 24) : Y(this, r, i, !0), i + 4;
|
|
613
|
-
}, h.prototype.writeInt32BE = function(r, i, t) {
|
|
614
|
-
return r = +r, i = i | 0, t || w(this, r, i, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), h.TYPED_ARRAY_SUPPORT ? (this[i] = r >>> 24, this[i + 1] = r >>> 16, this[i + 2] = r >>> 8, this[i + 3] = r & 255) : Y(this, r, i, !1), i + 4;
|
|
615
|
-
}, h.prototype.writeFloatLE = function(r, i, t) {
|
|
616
|
-
return Z(this, r, i, !0, t);
|
|
617
|
-
}, h.prototype.writeFloatBE = function(r, i, t) {
|
|
618
|
-
return Z(this, r, i, !1, t);
|
|
619
|
-
}, h.prototype.writeDoubleLE = function(r, i, t) {
|
|
620
|
-
return K(this, r, i, !0, t);
|
|
621
|
-
}, h.prototype.writeDoubleBE = function(r, i, t) {
|
|
622
|
-
return K(this, r, i, !1, t);
|
|
623
|
-
}, h.prototype.copy = function(r, i, t, e) {
|
|
624
|
-
if (t || (t = 0), !e && e !== 0 && (e = this.length), i >= r.length && (i = r.length), i || (i = 0), e > 0 && e < t && (e = t), e === t || r.length === 0 || this.length === 0) return 0;
|
|
625
|
-
if (i < 0) throw new RangeError("targetStart out of bounds");
|
|
626
|
-
if (t < 0 || t >= this.length) throw new RangeError("sourceStart out of bounds");
|
|
627
|
-
if (e < 0) throw new RangeError("sourceEnd out of bounds");
|
|
628
|
-
e > this.length && (e = this.length), r.length - i < e - t && (e = r.length - i + t);
|
|
629
|
-
var o = e - t, u;
|
|
630
|
-
if (this === r && t < i && i < e) for (u = o - 1; u >= 0; --u) r[u + i] = this[u + t];
|
|
631
|
-
else if (o < 1e3 || !h.TYPED_ARRAY_SUPPORT) for (u = 0; u < o; ++u) r[u + i] = this[u + t];
|
|
632
|
-
else Uint8Array.prototype.set.call(r, this.subarray(t, t + o), i);
|
|
633
|
-
return o;
|
|
634
|
-
}, h.prototype.fill = function(r, i, t, e) {
|
|
635
|
-
if (typeof r == "string") {
|
|
636
|
-
if (typeof i == "string" ? (e = i, i = 0, t = this.length) : typeof t == "string" && (e = t, t = this.length), r.length === 1) {
|
|
637
|
-
var o = r.charCodeAt(0);
|
|
638
|
-
o < 256 && (r = o);
|
|
639
|
-
}
|
|
640
|
-
if (e !== void 0 && typeof e != "string") throw new TypeError("encoding must be a string");
|
|
641
|
-
if (typeof e == "string" && !h.isEncoding(e)) throw new TypeError("Unknown encoding: " + e);
|
|
642
|
-
} else typeof r == "number" && (r = r & 255);
|
|
643
|
-
if (i < 0 || this.length < i || this.length < t) throw new RangeError("Out of range index");
|
|
644
|
-
if (t <= i) return this;
|
|
645
|
-
i = i >>> 0, t = t === void 0 ? this.length : t >>> 0, r || (r = 0);
|
|
646
|
-
var u;
|
|
647
|
-
if (typeof r == "number") for (u = i; u < t; ++u) this[u] = r;
|
|
648
|
-
else {
|
|
649
|
-
var a = R(r) ? r : P(new h(r, e).toString()), c = a.length;
|
|
650
|
-
for (u = 0; u < t - i; ++u) this[u + i] = a[u % c];
|
|
651
|
-
}
|
|
652
|
-
return this;
|
|
653
|
-
}, rr = /[^+\/0-9A-Za-z-_]/g;
|
|
654
|
-
}));
|
|
655
|
-
Object.defineProperty(F, "Buffer", {
|
|
656
|
-
enumerable: !0,
|
|
657
|
-
get: function() {
|
|
658
|
-
return h;
|
|
659
|
-
}
|
|
660
|
-
}), Object.defineProperty(F, "init__polyfill_node_buffer", {
|
|
661
|
-
enumerable: !0,
|
|
662
|
-
get: function() {
|
|
663
|
-
return Dr;
|
|
664
|
-
}
|
|
665
|
-
});
|
|
666
|
-
});
|