@forward-widget/danmu-universe 0.0.12 → 0.0.13
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/dist/danmu-universe.js +89 -79
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/danmu-universe.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
let METADATA_SYMBOL;
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
|
|
3
|
+
188: function(e) {
|
|
4
4
|
e.exports = t;
|
|
5
5
|
function t(e, t) {
|
|
6
6
|
for(var n = Array(arguments.length - 1), r = 0, i = 2, o = !0; i < arguments.length;)n[r++] = arguments[i++];
|
|
@@ -20,7 +20,7 @@ var __webpack_modules__ = {
|
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
|
|
23
|
+
4: function(e, t) {
|
|
24
24
|
var n = t;
|
|
25
25
|
n.length = function(e) {
|
|
26
26
|
var t = e.length;
|
|
@@ -72,7 +72,7 @@ var __webpack_modules__ = {
|
|
|
72
72
|
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e);
|
|
73
73
|
};
|
|
74
74
|
},
|
|
75
|
-
|
|
75
|
+
730: function(e) {
|
|
76
76
|
function t() {
|
|
77
77
|
this._listeners = {};
|
|
78
78
|
}
|
|
@@ -95,7 +95,7 @@ var __webpack_modules__ = {
|
|
|
95
95
|
return this;
|
|
96
96
|
};
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
791: function(e) {
|
|
99
99
|
function t(e) {
|
|
100
100
|
return "undefined" != typeof Float32Array ? !function() {
|
|
101
101
|
var t = new Float32Array([
|
|
@@ -181,7 +181,7 @@ var __webpack_modules__ = {
|
|
|
181
181
|
}
|
|
182
182
|
e.exports = t(t);
|
|
183
183
|
},
|
|
184
|
-
|
|
184
|
+
706: function(module) {
|
|
185
185
|
module.exports = inquire;
|
|
186
186
|
function inquire(moduleName) {
|
|
187
187
|
try {
|
|
@@ -191,7 +191,7 @@ var __webpack_modules__ = {
|
|
|
191
191
|
return null;
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
|
-
|
|
194
|
+
338: function(e) {
|
|
195
195
|
e.exports = t;
|
|
196
196
|
function t(e, t, n) {
|
|
197
197
|
var r = n || 8192, i = r >>> 1, o = null, s = r;
|
|
@@ -203,7 +203,7 @@ var __webpack_modules__ = {
|
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
|
-
|
|
206
|
+
322: function(e, t) {
|
|
207
207
|
var n = t;
|
|
208
208
|
n.length = function(e) {
|
|
209
209
|
for(var t = 0, n = 0, r = 0; r < e.length; ++r)(n = e.charCodeAt(r)) < 128 ? t += 1 : n < 2048 ? t += 2 : (0xFC00 & n) == 0xD800 && (0xFC00 & e.charCodeAt(r + 1)) == 0xDC00 ? (++r, t += 4) : t += 3;
|
|
@@ -217,11 +217,11 @@ var __webpack_modules__ = {
|
|
|
217
217
|
return n - o;
|
|
218
218
|
};
|
|
219
219
|
},
|
|
220
|
-
|
|
220
|
+
252: function(e, t, n) {
|
|
221
221
|
e = n.nmd(e), function(t, r) {
|
|
222
222
|
'function' == typeof define && define.amd ? define([
|
|
223
223
|
"protobufjs/minimal"
|
|
224
|
-
], r) : e && e.exports && (e.exports = r(n(
|
|
224
|
+
], r) : e && e.exports && (e.exports = r(n(643)));
|
|
225
225
|
}(0, function(e) {
|
|
226
226
|
"use strict";
|
|
227
227
|
var t = e.Reader, n = e.Writer, r = e.util, i = e.roots.default || (e.roots.default = {});
|
|
@@ -464,13 +464,13 @@ var __webpack_modules__ = {
|
|
|
464
464
|
}(), i;
|
|
465
465
|
});
|
|
466
466
|
},
|
|
467
|
-
|
|
467
|
+
95: function(e, t, n) {
|
|
468
468
|
!function(n, r) {
|
|
469
469
|
e.exports = t = r();
|
|
470
470
|
}(0, function() {
|
|
471
471
|
var e = e || function(e, t) {
|
|
472
472
|
if ('undefined' != typeof window && window.crypto && (r = window.crypto), 'undefined' != typeof self && self.crypto && (r = self.crypto), 'undefined' != typeof globalThis && globalThis.crypto && (r = globalThis.crypto), !r && 'undefined' != typeof window && window.msCrypto && (r = window.msCrypto), !r && void 0 !== n.g && n.g.crypto && (r = n.g.crypto), !r) try {
|
|
473
|
-
r = n(
|
|
473
|
+
r = n(602);
|
|
474
474
|
} catch (e) {}
|
|
475
475
|
var r, i = function() {
|
|
476
476
|
if (r) {
|
|
@@ -625,9 +625,9 @@ var __webpack_modules__ = {
|
|
|
625
625
|
return e;
|
|
626
626
|
});
|
|
627
627
|
},
|
|
628
|
-
|
|
628
|
+
716: function(e, t, n) {
|
|
629
629
|
!function(r, i) {
|
|
630
|
-
e.exports = t = i(n(
|
|
630
|
+
e.exports = t = i(n(95));
|
|
631
631
|
}(0, function(e) {
|
|
632
632
|
return !function() {
|
|
633
633
|
var t = e, n = t.lib.WordArray;
|
|
@@ -665,16 +665,16 @@ var __webpack_modules__ = {
|
|
|
665
665
|
}(), e.enc.Base64;
|
|
666
666
|
});
|
|
667
667
|
},
|
|
668
|
-
|
|
668
|
+
60: function(e, t, n) {
|
|
669
669
|
!function(r, i) {
|
|
670
|
-
e.exports = t = i(n(
|
|
670
|
+
e.exports = t = i(n(95));
|
|
671
671
|
}(0, function(e) {
|
|
672
672
|
return e.enc.Utf8;
|
|
673
673
|
});
|
|
674
674
|
},
|
|
675
|
-
|
|
675
|
+
478: function(e, t, n) {
|
|
676
676
|
!function(r, i) {
|
|
677
|
-
e.exports = t = i(n(
|
|
677
|
+
e.exports = t = i(n(95));
|
|
678
678
|
}(0, function(e) {
|
|
679
679
|
return !function(t) {
|
|
680
680
|
var n = e, r = n.lib, i = r.WordArray, o = r.Hasher, s = n.algo, a = [];
|
|
@@ -695,8 +695,8 @@ var __webpack_modules__ = {
|
|
|
695
695
|
var r = t + n, i = e[r];
|
|
696
696
|
e[r] = (i << 8 | i >>> 24) & 0x00ff00ff | (i << 24 | i >>> 8) & 0xff00ff00;
|
|
697
697
|
}
|
|
698
|
-
var o = this._hash.words, s = e[t + 0], u = e[t + 1], f = e[t + 2], h = e[t + 3], m = e[t + 4], g = e[t + 5], v = e[t + 6], y = e[t + 7], b = e[t + 8], _ = e[t + 9], w = e[t + 10],
|
|
699
|
-
|
|
698
|
+
var o = this._hash.words, s = e[t + 0], u = e[t + 1], f = e[t + 2], h = e[t + 3], m = e[t + 4], g = e[t + 5], v = e[t + 6], y = e[t + 7], b = e[t + 8], _ = e[t + 9], w = e[t + 10], k = e[t + 11], x = e[t + 12], S = e[t + 13], E = e[t + 14], z = e[t + 15], O = o[0], I = o[1], $ = o[2], P = o[3];
|
|
699
|
+
O = l(O, I, $, P, s, 7, a[0]), P = l(P, O, I, $, u, 12, a[1]), $ = l($, P, O, I, f, 17, a[2]), I = l(I, $, P, O, h, 22, a[3]), O = l(O, I, $, P, m, 7, a[4]), P = l(P, O, I, $, g, 12, a[5]), $ = l($, P, O, I, v, 17, a[6]), I = l(I, $, P, O, y, 22, a[7]), O = l(O, I, $, P, b, 7, a[8]), P = l(P, O, I, $, _, 12, a[9]), $ = l($, P, O, I, w, 17, a[10]), I = l(I, $, P, O, k, 22, a[11]), O = l(O, I, $, P, x, 7, a[12]), P = l(P, O, I, $, S, 12, a[13]), $ = l($, P, O, I, E, 17, a[14]), I = l(I, $, P, O, z, 22, a[15]), O = c(O, I, $, P, u, 5, a[16]), P = c(P, O, I, $, v, 9, a[17]), $ = c($, P, O, I, k, 14, a[18]), I = c(I, $, P, O, s, 20, a[19]), O = c(O, I, $, P, g, 5, a[20]), P = c(P, O, I, $, w, 9, a[21]), $ = c($, P, O, I, z, 14, a[22]), I = c(I, $, P, O, m, 20, a[23]), O = c(O, I, $, P, _, 5, a[24]), P = c(P, O, I, $, E, 9, a[25]), $ = c($, P, O, I, h, 14, a[26]), I = c(I, $, P, O, b, 20, a[27]), O = c(O, I, $, P, S, 5, a[28]), P = c(P, O, I, $, f, 9, a[29]), $ = c($, P, O, I, y, 14, a[30]), I = c(I, $, P, O, x, 20, a[31]), O = d(O, I, $, P, g, 4, a[32]), P = d(P, O, I, $, b, 11, a[33]), $ = d($, P, O, I, k, 16, a[34]), I = d(I, $, P, O, E, 23, a[35]), O = d(O, I, $, P, u, 4, a[36]), P = d(P, O, I, $, m, 11, a[37]), $ = d($, P, O, I, y, 16, a[38]), I = d(I, $, P, O, w, 23, a[39]), O = d(O, I, $, P, S, 4, a[40]), P = d(P, O, I, $, s, 11, a[41]), $ = d($, P, O, I, h, 16, a[42]), I = d(I, $, P, O, v, 23, a[43]), O = d(O, I, $, P, _, 4, a[44]), P = d(P, O, I, $, x, 11, a[45]), $ = d($, P, O, I, z, 16, a[46]), I = d(I, $, P, O, f, 23, a[47]), O = p(O, I, $, P, s, 6, a[48]), P = p(P, O, I, $, y, 10, a[49]), $ = p($, P, O, I, E, 15, a[50]), I = p(I, $, P, O, g, 21, a[51]), O = p(O, I, $, P, x, 6, a[52]), P = p(P, O, I, $, h, 10, a[53]), $ = p($, P, O, I, w, 15, a[54]), I = p(I, $, P, O, u, 21, a[55]), O = p(O, I, $, P, b, 6, a[56]), P = p(P, O, I, $, z, 10, a[57]), $ = p($, P, O, I, v, 15, a[58]), I = p(I, $, P, O, S, 21, a[59]), O = p(O, I, $, P, m, 6, a[60]), P = p(P, O, I, $, k, 10, a[61]), $ = p($, P, O, I, f, 15, a[62]), I = p(I, $, P, O, _, 21, a[63]), o[0] = o[0] + O | 0, o[1] = o[1] + I | 0, o[2] = o[2] + $ | 0, o[3] = o[3] + P | 0;
|
|
700
700
|
},
|
|
701
701
|
_doFinalize: function() {
|
|
702
702
|
var e = this._data, n = e.words, r = 8 * this._nDataBytes, i = 8 * e.sigBytes;
|
|
@@ -734,19 +734,19 @@ var __webpack_modules__ = {
|
|
|
734
734
|
}(Math), e.MD5;
|
|
735
735
|
});
|
|
736
736
|
},
|
|
737
|
-
|
|
738
|
-
e.exports = n(
|
|
737
|
+
643: function(e, t, n) {
|
|
738
|
+
e.exports = n(447);
|
|
739
739
|
},
|
|
740
|
-
|
|
740
|
+
447: function(e, t, n) {
|
|
741
741
|
var r = t;
|
|
742
742
|
function i() {
|
|
743
743
|
r.util._configure(), r.Writer._configure(r.BufferWriter), r.Reader._configure(r.BufferReader);
|
|
744
744
|
}
|
|
745
|
-
r.build = "minimal", r.Writer = n(
|
|
745
|
+
r.build = "minimal", r.Writer = n(114), r.BufferWriter = n(491), r.Reader = n(762), r.BufferReader = n(171), r.util = n(837), r.rpc = n(366), r.roots = n(264), r.configure = i, i();
|
|
746
746
|
},
|
|
747
|
-
|
|
747
|
+
762: function(e, t, n) {
|
|
748
748
|
e.exports = u;
|
|
749
|
-
var r, i = n(
|
|
749
|
+
var r, i = n(837), o = i.LongBits, s = i.utf8;
|
|
750
750
|
function a(e, t) {
|
|
751
751
|
return RangeError("index out of range: " + e.pos + " + " + (t || 1) + " > " + e.len);
|
|
752
752
|
}
|
|
@@ -884,11 +884,11 @@ var __webpack_modules__ = {
|
|
|
884
884
|
});
|
|
885
885
|
};
|
|
886
886
|
},
|
|
887
|
-
|
|
887
|
+
171: function(e, t, n) {
|
|
888
888
|
e.exports = o;
|
|
889
|
-
var r = n(
|
|
889
|
+
var r = n(762);
|
|
890
890
|
(o.prototype = Object.create(r.prototype)).constructor = o;
|
|
891
|
-
var i = n(
|
|
891
|
+
var i = n(837);
|
|
892
892
|
function o(e) {
|
|
893
893
|
r.call(this, e);
|
|
894
894
|
}
|
|
@@ -899,15 +899,15 @@ var __webpack_modules__ = {
|
|
|
899
899
|
return this.buf.utf8Slice ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + e, this.len)) : this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + e, this.len));
|
|
900
900
|
}, o._configure();
|
|
901
901
|
},
|
|
902
|
-
|
|
902
|
+
264: function(e) {
|
|
903
903
|
e.exports = {};
|
|
904
904
|
},
|
|
905
|
-
|
|
906
|
-
t.Service = n(
|
|
905
|
+
366: function(e, t, n) {
|
|
906
|
+
t.Service = n(286);
|
|
907
907
|
},
|
|
908
|
-
|
|
908
|
+
286: function(e, t, n) {
|
|
909
909
|
e.exports = i;
|
|
910
|
-
var r = n(
|
|
910
|
+
var r = n(837);
|
|
911
911
|
function i(e, t, n) {
|
|
912
912
|
if ("function" != typeof e) throw TypeError("rpcImpl must be a function");
|
|
913
913
|
r.EventEmitter.call(this), this.rpcImpl = e, this.requestDelimited = !!t, this.responseDelimited = !!n;
|
|
@@ -940,9 +940,9 @@ var __webpack_modules__ = {
|
|
|
940
940
|
return this.rpcImpl && (e || this.rpcImpl(null, null, null), this.rpcImpl = null, this.emit("end").off()), this;
|
|
941
941
|
};
|
|
942
942
|
},
|
|
943
|
-
|
|
943
|
+
926: function(e, t, n) {
|
|
944
944
|
e.exports = i;
|
|
945
|
-
var r = n(
|
|
945
|
+
var r = n(837);
|
|
946
946
|
function i(e, t) {
|
|
947
947
|
this.lo = e >>> 0, this.hi = t >>> 0;
|
|
948
948
|
}
|
|
@@ -995,7 +995,7 @@ var __webpack_modules__ = {
|
|
|
995
995
|
return 0 === n ? 0 === t ? e < 16384 ? e < 128 ? 1 : 2 : e < 2097152 ? 3 : 4 : t < 16384 ? t < 128 ? 5 : 6 : t < 2097152 ? 7 : 8 : n < 128 ? 9 : 10;
|
|
996
996
|
};
|
|
997
997
|
},
|
|
998
|
-
|
|
998
|
+
837: function(e, t, n) {
|
|
999
999
|
var r = t;
|
|
1000
1000
|
function i(e, t, n) {
|
|
1001
1001
|
for(var r = Object.keys(t), i = 0; i < r.length; ++i)void 0 !== e[r[i]] && n || (e[r[i]] = t[r[i]]);
|
|
@@ -1037,7 +1037,7 @@ var __webpack_modules__ = {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
}), t;
|
|
1039
1039
|
}
|
|
1040
|
-
r.asPromise = n(
|
|
1040
|
+
r.asPromise = n(188), r.base64 = n(4), r.EventEmitter = n(730), r.float = n(791), r.inquire = n(706), r.utf8 = n(322), r.pool = n(338), r.LongBits = n(926), r.isNode = !!(void 0 !== n.g && n.g && n.g.process && n.g.process.versions && n.g.process.versions.node), r.global = r.isNode && n.g || "undefined" != typeof window && window || "undefined" != typeof self && self || this, r.emptyArray = Object.freeze ? Object.freeze([]) : [], r.emptyObject = Object.freeze ? Object.freeze({}) : {}, r.isInteger = Number.isInteger || function(e) {
|
|
1041
1041
|
return "number" == typeof e && isFinite(e) && Math.floor(e) === e;
|
|
1042
1042
|
}, r.isString = function(e) {
|
|
1043
1043
|
return "string" == typeof e || e instanceof String;
|
|
@@ -1089,9 +1089,9 @@ var __webpack_modules__ = {
|
|
|
1089
1089
|
};
|
|
1090
1090
|
};
|
|
1091
1091
|
},
|
|
1092
|
-
|
|
1092
|
+
114: function(e, t, n) {
|
|
1093
1093
|
e.exports = d;
|
|
1094
|
-
var r, i = n(
|
|
1094
|
+
var r, i = n(837), o = i.LongBits, s = i.base64, a = i.utf8;
|
|
1095
1095
|
function u(e, t, n) {
|
|
1096
1096
|
this.fn = e, this.len = t, this.next = void 0, this.val = n;
|
|
1097
1097
|
}
|
|
@@ -1187,11 +1187,11 @@ var __webpack_modules__ = {
|
|
|
1187
1187
|
r = e, d.create = p(), r._configure();
|
|
1188
1188
|
};
|
|
1189
1189
|
},
|
|
1190
|
-
|
|
1190
|
+
491: function(e, t, n) {
|
|
1191
1191
|
e.exports = o;
|
|
1192
|
-
var r = n(
|
|
1192
|
+
var r = n(114);
|
|
1193
1193
|
(o.prototype = Object.create(r.prototype)).constructor = o;
|
|
1194
|
-
var i = n(
|
|
1194
|
+
var i = n(837);
|
|
1195
1195
|
function o() {
|
|
1196
1196
|
r.call(this);
|
|
1197
1197
|
}
|
|
@@ -1214,7 +1214,7 @@ var __webpack_modules__ = {
|
|
|
1214
1214
|
return this.uint32(t), t && this._push(s, t, e), this;
|
|
1215
1215
|
}, o._configure();
|
|
1216
1216
|
},
|
|
1217
|
-
|
|
1217
|
+
682: function(e, t) {
|
|
1218
1218
|
var n, r = Object.prototype.hasOwnProperty;
|
|
1219
1219
|
function i(e) {
|
|
1220
1220
|
try {
|
|
@@ -1246,7 +1246,7 @@ var __webpack_modules__ = {
|
|
|
1246
1246
|
return a.length ? t + a.join('&') : '';
|
|
1247
1247
|
}, t.parse = s;
|
|
1248
1248
|
},
|
|
1249
|
-
|
|
1249
|
+
995: function(e) {
|
|
1250
1250
|
e.exports = function(e, t) {
|
|
1251
1251
|
if (t = t.split(':')[0], !(e *= 1)) return !1;
|
|
1252
1252
|
switch(t){
|
|
@@ -1266,8 +1266,8 @@ var __webpack_modules__ = {
|
|
|
1266
1266
|
return 0 !== e;
|
|
1267
1267
|
};
|
|
1268
1268
|
},
|
|
1269
|
-
|
|
1270
|
-
var r = n(
|
|
1269
|
+
337: function(e, t, n) {
|
|
1270
|
+
var r = n(995), i = n(682), o = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/, s = /[\n\r\t]/g, a = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//, u = /:\d+$/, l = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i, c = /^[a-zA-Z]:/;
|
|
1271
1271
|
function d(e) {
|
|
1272
1272
|
return (e || '').toString().replace(o, '');
|
|
1273
1273
|
}
|
|
@@ -1346,18 +1346,18 @@ var __webpack_modules__ = {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
function y(e, t, n) {
|
|
1348
1348
|
if (e = (e = d(e)).replace(s, ''), !(this instanceof y)) return new y(e, t, n);
|
|
1349
|
-
var o, a, u, l, f, b, _ = p.slice(), w = typeof t,
|
|
1350
|
-
for('object' !== w && 'string' !== w && (n = t, t = null), n && 'function' != typeof n && (n = i.parse), o = !(a = g(e || '', t = h(t))).protocol && !a.slashes,
|
|
1349
|
+
var o, a, u, l, f, b, _ = p.slice(), w = typeof t, k = this, x = 0;
|
|
1350
|
+
for('object' !== w && 'string' !== w && (n = t, t = null), n && 'function' != typeof n && (n = i.parse), o = !(a = g(e || '', t = h(t))).protocol && !a.slashes, k.slashes = a.slashes || o && t.slashes, k.protocol = a.protocol || t.protocol || '', e = a.rest, ('file:' === a.protocol && (2 !== a.slashesCount || c.test(e)) || !a.slashes && (a.protocol || a.slashesCount < 2 || !m(k.protocol))) && (_[3] = [
|
|
1351
1351
|
/(.*)/,
|
|
1352
1352
|
'pathname'
|
|
1353
|
-
]);
|
|
1354
|
-
if ('function' == typeof (l = _[
|
|
1355
|
-
e = l(e,
|
|
1353
|
+
]); x < _.length; x++){
|
|
1354
|
+
if ('function' == typeof (l = _[x])) {
|
|
1355
|
+
e = l(e, k);
|
|
1356
1356
|
continue;
|
|
1357
1357
|
}
|
|
1358
|
-
u = l[0], b = l[1], u != u ?
|
|
1358
|
+
u = l[0], b = l[1], u != u ? k[b] = e : 'string' == typeof u ? ~(f = '@' === u ? e.lastIndexOf(u) : e.indexOf(u)) && ('number' == typeof l[2] ? (k[b] = e.slice(0, f), e = e.slice(f + l[2])) : (k[b] = e.slice(f), e = e.slice(0, f))) : (f = u.exec(e)) && (k[b] = f[1], e = e.slice(0, f.index)), k[b] = k[b] || o && l[3] && t[b] || '', l[4] && (k[b] = k[b].toLowerCase());
|
|
1359
1359
|
}
|
|
1360
|
-
n && (
|
|
1360
|
+
n && (k.query = n(k.query)), o && t.slashes && '/' !== k.pathname.charAt(0) && ('' !== k.pathname || '' !== t.pathname) && (k.pathname = v(k.pathname, t.pathname)), '/' !== k.pathname.charAt(0) && m(k.protocol) && (k.pathname = '/' + k.pathname), r(k.port, k.protocol) || (k.host = k.hostname, k.port = ''), k.username = k.password = '', k.auth && (~(f = k.auth.indexOf(':')) ? (k.username = k.auth.slice(0, f), k.username = encodeURIComponent(decodeURIComponent(k.username)), k.password = k.auth.slice(f + 1), k.password = encodeURIComponent(decodeURIComponent(k.password))) : k.username = encodeURIComponent(decodeURIComponent(k.auth)), k.auth = k.password ? k.username + ':' + k.password : k.username), k.origin = 'file:' !== k.protocol && m(k.protocol) && k.host ? k.protocol + '//' + k.host : 'null', k.href = k.toString();
|
|
1361
1361
|
}
|
|
1362
1362
|
y.prototype = {
|
|
1363
1363
|
set: function(e, t, n) {
|
|
@@ -1408,7 +1408,7 @@ var __webpack_modules__ = {
|
|
|
1408
1408
|
}
|
|
1409
1409
|
}, y.extractProtocol = g, y.location = h, y.trimLeft = d, y.qs = i, e.exports = y;
|
|
1410
1410
|
},
|
|
1411
|
-
|
|
1411
|
+
602: function() {}
|
|
1412
1412
|
}, __webpack_module_cache__ = {};
|
|
1413
1413
|
function __webpack_require__(e) {
|
|
1414
1414
|
var t = __webpack_module_cache__[e];
|
|
@@ -1454,7 +1454,7 @@ const DOUBAN_API_KEY = "0ac44ae016490db2204ce0a042db2916", PROVIDER_NAMES = {
|
|
|
1454
1454
|
youku: "\u4F18\u9177\u89C6\u9891",
|
|
1455
1455
|
bilibili: "\u54D4\u54E9\u54D4\u54E9"
|
|
1456
1456
|
};
|
|
1457
|
-
var url_parse = __webpack_require__(
|
|
1457
|
+
var url_parse = __webpack_require__(337), url_parse_default = __webpack_require__.n(url_parse);
|
|
1458
1458
|
function $constructor(e, t, n) {
|
|
1459
1459
|
function r(n, r) {
|
|
1460
1460
|
var i;
|
|
@@ -1501,7 +1501,7 @@ const cuid = /^[cC][^\s-]{8,}$/, cuid2 = /^[0-9a-z]+$/, ulid = /^[0-9A-HJKMNP-TV
|
|
|
1501
1501
|
function emoji() {
|
|
1502
1502
|
return RegExp(_emoji, "u");
|
|
1503
1503
|
}
|
|
1504
|
-
const ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, regexes_base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, base64url = /^[A-Za-z0-9_-]*$/, hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, e164 = /^\+(?:[0-9]){6,14}[0-9]$/, dateSource = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",
|
|
1504
|
+
const ipv4 = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ipv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/, cidrv4 = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, cidrv6 = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, regexes_base64 = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, base64url = /^[A-Za-z0-9_-]*$/, hostname = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, e164 = /^\+(?:[0-9]){6,14}[0-9]$/, dateSource = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", regexes_date = RegExp(`^${dateSource}$`);
|
|
1505
1505
|
function timeSource(e) {
|
|
1506
1506
|
let t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
|
|
1507
1507
|
return "number" == typeof e.precision ? -1 === e.precision ? `${t}` : 0 === e.precision ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
@@ -2380,7 +2380,7 @@ const _parse = (e)=>(t, n, r, i)=>{
|
|
|
2380
2380
|
}), $ZodISODateTime = $constructor("$ZodISODateTime", (e, t)=>{
|
|
2381
2381
|
t.pattern ?? (t.pattern = datetime(t)), $ZodStringFormat.init(e, t);
|
|
2382
2382
|
}), $ZodISODate = $constructor("$ZodISODate", (e, t)=>{
|
|
2383
|
-
t.pattern ?? (t.pattern =
|
|
2383
|
+
t.pattern ?? (t.pattern = regexes_date), $ZodStringFormat.init(e, t);
|
|
2384
2384
|
}), $ZodISOTime = $constructor("$ZodISOTime", (e, t)=>{
|
|
2385
2385
|
t.pattern ?? (t.pattern = regexes_time(t)), $ZodStringFormat.init(e, t);
|
|
2386
2386
|
}), $ZodISODuration = $constructor("$ZodISODuration", (e, t)=>{
|
|
@@ -3887,7 +3887,7 @@ function merge_merge(e, t) {
|
|
|
3887
3887
|
}
|
|
3888
3888
|
return e;
|
|
3889
3889
|
}
|
|
3890
|
-
var enc_base64 = __webpack_require__(
|
|
3890
|
+
var enc_base64 = __webpack_require__(716), enc_base64_default = __webpack_require__.n(enc_base64);
|
|
3891
3891
|
function safeJsonParse(e) {
|
|
3892
3892
|
try {
|
|
3893
3893
|
if (!e) return null;
|
|
@@ -4282,7 +4282,7 @@ class BaseScraper {
|
|
|
4282
4282
|
base_define_property(this, "idSchema", void 0), base_define_property(this, "fetch", new Fetch()), base_define_property(this, "GLOBAL_EPISODE_BLACKLIST_DEFAULT", "^(.*?)((.+?\u7248)|(\u7279(\u522B|\u5178))|((\u5BFC|\u6F14)\u5458|\u5609\u5BBE|\u89D2\u8272)\u8BBF\u8C08|\u798F\u5229|\u5148\u5BFC|\u5F69\u86CB|\u82B1\u7D6E|\u9884\u544A|\u7279\u8F91|\u4E13\u8BBF|\u8BBF\u8C08|\u5E55\u540E|\u5468\u8FB9|\u8D44\u8BAF|\u770B\u70B9|\u901F\u770B|\u56DE\u987E|\u76D8\u70B9|\u5408\u96C6|PV|MV|CM|OST|ED|OP|BD|\u7279\u5178|SP|NCOP|NCED|MENU|Web-DL|rip|x264|x265|aac|flac)(.*?)$"), base_define_property(this, "PROVIDER_SPECIFIC_BLACKLIST_DEFAULT", "");
|
|
4283
4283
|
}
|
|
4284
4284
|
}
|
|
4285
|
-
var dm_proto = __webpack_require__(
|
|
4285
|
+
var dm_proto = __webpack_require__(252);
|
|
4286
4286
|
function bilibili_define_property(e, t, n) {
|
|
4287
4287
|
return t in e ? Object.defineProperty(e, t, {
|
|
4288
4288
|
value: n,
|
|
@@ -4390,7 +4390,7 @@ class BilibiliScraper extends BaseScraper {
|
|
|
4390
4390
|
});
|
|
4391
4391
|
}
|
|
4392
4392
|
}
|
|
4393
|
-
var md5 = __webpack_require__(
|
|
4393
|
+
var md5 = __webpack_require__(478), md5_default = __webpack_require__.n(md5);
|
|
4394
4394
|
const defaultOptions = {
|
|
4395
4395
|
preserveOrder: !1,
|
|
4396
4396
|
attributeNamePrefix: '@_',
|
|
@@ -5192,7 +5192,7 @@ const iqiyiIdSchema = schemas_object({
|
|
|
5192
5192
|
entityId: schemas_string()
|
|
5193
5193
|
}), iqiyiEpisodeTabDataVideoSchema = schemas_object({
|
|
5194
5194
|
page_url: schemas_string(),
|
|
5195
|
-
short_display_name: schemas_string(),
|
|
5195
|
+
short_display_name: schemas_string().optional(),
|
|
5196
5196
|
title: schemas_string(),
|
|
5197
5197
|
mark_type_show: schemas_int().optional()
|
|
5198
5198
|
}).transform((e)=>({
|
|
@@ -5202,19 +5202,26 @@ const iqiyiIdSchema = schemas_object({
|
|
|
5202
5202
|
let n = e.page_url.match(/v_(\S+)\.html/);
|
|
5203
5203
|
return null != (t = null == n ? void 0 : n[1]) ? t : "";
|
|
5204
5204
|
}
|
|
5205
|
-
})),
|
|
5205
|
+
})), safeParseVideo = (e)=>{
|
|
5206
|
+
let t = iqiyiEpisodeTabDataVideoSchema.safeParse(e);
|
|
5207
|
+
return t.success ? t.data : (console.warn("\u7231\u5947\u827A: \u89E3\u6790\u5206\u96C6\u6570\u636E\u65F6\u53D1\u751F\u9519\u8BEF:", t.error.format(), e), null);
|
|
5208
|
+
}, iqiyiTvTabDataSchema = schemas_object({
|
|
5206
5209
|
data: schemas_array(schemas_object({
|
|
5207
5210
|
videos: schemas_object({
|
|
5208
|
-
feature_paged: record(schemas_string(), schemas_array(unknown().transform((e)=>{
|
|
5209
|
-
let t = iqiyiEpisodeTabDataVideoSchema.safeParse(e);
|
|
5210
|
-
return t.success || console.warn(`\u{7231}\u{5947}\u{827A}: \u{89E3}\u{6790}\u{5206}\u{96C6}\u{6570}\u{636E}\u{65F6}\u{53D1}\u{751F}\u{9519}\u{8BEF}:`, prettifyError(t.error), e), t.data;
|
|
5211
|
-
}))).optional().transform((e)=>compact(Object.values(null != e ? e : {}).flat()))
|
|
5211
|
+
feature_paged: record(schemas_string(), schemas_array(unknown().transform((e)=>safeParseVideo(e)))).optional().transform((e)=>compact(Object.values(null != e ? e : {}).flat()))
|
|
5212
5212
|
}).optional()
|
|
5213
5213
|
}).transform((e)=>{
|
|
5214
5214
|
var t;
|
|
5215
5215
|
return null == (t = e.videos) ? void 0 : t.feature_paged;
|
|
5216
5216
|
})).transform((e)=>compact(e.flat()))
|
|
5217
|
-
}),
|
|
5217
|
+
}), iqiyiMovieTabDataSchema = schemas_object({
|
|
5218
|
+
data: schemas_object({
|
|
5219
|
+
videos: schemas_array(unknown().transform((e)=>safeParseVideo(e)))
|
|
5220
|
+
}).transform((e)=>compact(e.videos))
|
|
5221
|
+
}), iqiyiEpisodeTabDataSchema = union([
|
|
5222
|
+
iqiyiTvTabDataSchema,
|
|
5223
|
+
iqiyiMovieTabDataSchema
|
|
5224
|
+
]), iqiyiV3ApiResponseSchema = schemas_object({
|
|
5218
5225
|
status_code: schemas_number(),
|
|
5219
5226
|
data: schemas_object({
|
|
5220
5227
|
base_data: schemas_object({
|
|
@@ -5334,35 +5341,35 @@ class IqiyiScraper extends BaseScraper {
|
|
|
5334
5341
|
};
|
|
5335
5342
|
t.sign = this.createSign(t);
|
|
5336
5343
|
try {
|
|
5337
|
-
var n, r, i, o, s, a, u, l
|
|
5344
|
+
var n, r, i, o, s, a, u, l;
|
|
5338
5345
|
let e = (await this.fetch.get("https://www.iqiyi.com/prelw/tvg/v2/lw/base_info", {
|
|
5339
5346
|
params: t,
|
|
5340
5347
|
schema: iqiyiV3ApiResponseSchema
|
|
5341
|
-
})).data,
|
|
5348
|
+
})).data, c = null != (o = null == e || null == (i = e.data) || null == (r = i.base_data) || null == (n = r.video_list) ? void 0 : n.map((e)=>({
|
|
5342
5349
|
provider: this.providerName,
|
|
5343
5350
|
episodeId: e.tv_id.toString(),
|
|
5344
5351
|
episodeTitle: e.name,
|
|
5345
5352
|
episodeNumber: e.order,
|
|
5346
5353
|
url: e.play_url
|
|
5347
5354
|
}))) ? o : [];
|
|
5348
|
-
if (!
|
|
5349
|
-
let t = null == e || null == (
|
|
5355
|
+
if (!c.length) {
|
|
5356
|
+
let t = null == e || null == (u = e.data) || null == (a = u.template) || null == (s = a.tabs) ? void 0 : s.flatMap((e)=>e.blocks || []).find((e)=>"selector_bk" === e.bk_id && "album_episodes" === e.bk_type || "film_feature_bk" === e.bk_id && "video_list" === e.bk_type), { success: n, data: r, error: i } = iqiyiEpisodeTabDataSchema.safeParse(null == t ? void 0 : t.data);
|
|
5350
5357
|
if (!n) return console.warn(`\u{7231}\u{5947}\u{827A}: \u{89E3}\u{6790}\u{5206}\u{96C6}\u{6570}\u{636E}\u{65F6}\u{53D1}\u{751F}\u{9519}\u{8BEF}:`, prettifyError(i), t), [];
|
|
5351
|
-
let o = this.getEpisodeBlacklistPattern(),
|
|
5358
|
+
let o = this.getEpisodeBlacklistPattern(), d = 1;
|
|
5352
5359
|
for (let e of r.data){
|
|
5353
5360
|
if (17 === e.mark_type_show) continue;
|
|
5354
5361
|
let t = this.videoIdToEntityId(e.videoId);
|
|
5355
|
-
t && (null != o && o.test(e.title) || (
|
|
5362
|
+
t && (null != o && o.test(e.title) || (c.push({
|
|
5356
5363
|
provider: this.providerName,
|
|
5357
5364
|
episodeId: this.generateIdString({
|
|
5358
5365
|
entityId: t
|
|
5359
5366
|
}),
|
|
5360
5367
|
episodeTitle: e.title,
|
|
5361
|
-
episodeNumber: null != (
|
|
5362
|
-
}),
|
|
5368
|
+
episodeNumber: e.short_display_name && null != (l = this.getEpisodeIndexFromTitle(e.short_display_name)) ? l : d
|
|
5369
|
+
}), d += 1));
|
|
5363
5370
|
}
|
|
5364
5371
|
}
|
|
5365
|
-
return
|
|
5372
|
+
return c;
|
|
5366
5373
|
} catch (e) {
|
|
5367
5374
|
return console.error(`\u{7231}\u{5947}\u{827A} (v3): \u{83B7}\u{53D6}\u{5206}\u{96C6}\u{65F6}\u{53D1}\u{751F}\u{9519}\u{8BEF}: ${e}`), [];
|
|
5368
5375
|
}
|
|
@@ -5608,7 +5615,7 @@ class TencentScraper extends BaseScraper {
|
|
|
5608
5615
|
});
|
|
5609
5616
|
}
|
|
5610
5617
|
}
|
|
5611
|
-
var enc_utf8 = __webpack_require__(
|
|
5618
|
+
var enc_utf8 = __webpack_require__(60), enc_utf8_default = __webpack_require__.n(enc_utf8);
|
|
5612
5619
|
function youku_define_property(e, t, n) {
|
|
5613
5620
|
return t in e ? Object.defineProperty(e, t, {
|
|
5614
5621
|
value: n,
|
|
@@ -6015,12 +6022,13 @@ class scrapers_Scraper {
|
|
|
6015
6022
|
});
|
|
6016
6023
|
}
|
|
6017
6024
|
}
|
|
6025
|
+
const widgetVersion = "0.0.13";
|
|
6018
6026
|
WidgetMetadata = {
|
|
6019
6027
|
id: "baranwang.danmu.universe",
|
|
6020
6028
|
title: "\u901A\u7528\u5F39\u5E55",
|
|
6021
6029
|
description: "\u901A\u7528\u5F39\u5E55\u63D2\u4EF6\uFF0C\u652F\u6301\u817E\u8BAF\u3001\u4F18\u9177\u3001\u7231\u5947\u827A\u3001\u54D4\u54E9\u54D4\u54E9\u7B49\u5E73\u53F0",
|
|
6022
6030
|
author: "Baran",
|
|
6023
|
-
version:
|
|
6031
|
+
version: widgetVersion,
|
|
6024
6032
|
site: "https://github.com/baranwang/forward-widgets/tree/main/packages/danmu-universe",
|
|
6025
6033
|
requiredVersion: "0.0.2",
|
|
6026
6034
|
modules: [
|
|
@@ -6059,7 +6067,9 @@ searchDanmu = async (e)=>{
|
|
|
6059
6067
|
var t;
|
|
6060
6068
|
storage.cleanup();
|
|
6061
6069
|
let { tmdbId: n, type: r, episode: i } = e;
|
|
6062
|
-
if (!n) return
|
|
6070
|
+
if (!n) return {
|
|
6071
|
+
animes: []
|
|
6072
|
+
};
|
|
6063
6073
|
let o = await getDoubanInfoByTmdbId(r, n);
|
|
6064
6074
|
return {
|
|
6065
6075
|
animes: (await src_scraper.getDetailWithDoubanId(null != (t = null == o ? void 0 : o.doubanId) ? t : "", r, i)).map((e)=>{
|