yxspeechrecognition 1.0.9 → 1.1.0
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/YxSpeechRecognition.common.js +815 -281
- package/YxSpeechRecognition.common.js.map +1 -1
- package/YxSpeechRecognition.umd.js +815 -281
- package/YxSpeechRecognition.umd.js.map +1 -1
- package/YxSpeechRecognition.umd.min.js +2 -2
- package/YxSpeechRecognition.umd.min.js.map +1 -1
- package/package.json +3 -3
|
@@ -36,6 +36,26 @@ if(content.locals) module.exports = content.locals;
|
|
|
36
36
|
var add = (__webpack_require__(459)/* ["default"] */ .A)
|
|
37
37
|
var update = add("71332bf9", content, true, {"sourceMap":false,"shadowMode":false});
|
|
38
38
|
|
|
39
|
+
/***/ }),
|
|
40
|
+
|
|
41
|
+
/***/ 284:
|
|
42
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
43
|
+
|
|
44
|
+
"use strict";
|
|
45
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46
|
+
/* harmony export */ A: function() { return /* binding */ _typeof; }
|
|
47
|
+
/* harmony export */ });
|
|
48
|
+
function _typeof(o) {
|
|
49
|
+
"@babel/helpers - typeof";
|
|
50
|
+
|
|
51
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
52
|
+
return typeof o;
|
|
53
|
+
} : function (o) {
|
|
54
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
55
|
+
}, _typeof(o);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
39
59
|
/***/ }),
|
|
40
60
|
|
|
41
61
|
/***/ 314:
|
|
@@ -139,16 +159,15 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADy
|
|
|
139
159
|
/***/ }),
|
|
140
160
|
|
|
141
161
|
/***/ 361:
|
|
142
|
-
/***/ (function(module,
|
|
162
|
+
/***/ (function(module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
163
|
+
|
|
164
|
+
"use strict";
|
|
165
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(284);
|
|
166
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
143
167
|
|
|
144
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
145
168
|
!function (e, t) {
|
|
146
|
-
"object" == (
|
|
147
|
-
|
|
148
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
|
|
149
|
-
__WEBPACK_AMD_DEFINE_FACTORY__),
|
|
150
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;
|
|
151
|
-
}(this, function () {
|
|
169
|
+
"object" == (typeof exports === "undefined" ? "undefined" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(exports)) && "undefined" != "object" ? module.exports = t() : "function" == typeof define && __webpack_require__.amdO ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_weekday = t();
|
|
170
|
+
}(undefined, function () {
|
|
152
171
|
"use strict";
|
|
153
172
|
|
|
154
173
|
return function (e, t) {
|
|
@@ -465,19 +484,19 @@ function applyToTag (styleElement, obj) {
|
|
|
465
484
|
/***/ }),
|
|
466
485
|
|
|
467
486
|
/***/ 514:
|
|
468
|
-
/***/ (function(module,
|
|
487
|
+
/***/ (function(module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
488
|
+
|
|
489
|
+
"use strict";
|
|
490
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(284);
|
|
491
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
469
492
|
|
|
470
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
471
493
|
!function (e, _) {
|
|
472
|
-
"object" == (
|
|
473
|
-
|
|
474
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
475
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;
|
|
476
|
-
}(this, function (e) {
|
|
494
|
+
"object" == (typeof exports === "undefined" ? "undefined" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(exports)) && "undefined" != "object" ? module.exports = _(__webpack_require__(576)) : "function" == typeof define && __webpack_require__.amdO ? define(["dayjs"], _) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_zh_cn = _(e.dayjs);
|
|
495
|
+
}(undefined, function (e) {
|
|
477
496
|
"use strict";
|
|
478
497
|
|
|
479
498
|
function _(e) {
|
|
480
|
-
return e && "object" ==
|
|
499
|
+
return e && "object" == (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(e) && "default" in e ? e : {
|
|
481
500
|
default: e
|
|
482
501
|
};
|
|
483
502
|
}
|
|
@@ -532,16 +551,16 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
532
551
|
/***/ }),
|
|
533
552
|
|
|
534
553
|
/***/ 576:
|
|
535
|
-
/***/ (function(module,
|
|
554
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
555
|
+
|
|
556
|
+
"use strict";
|
|
557
|
+
__webpack_require__.r(__webpack_exports__);
|
|
558
|
+
/* harmony import */ var _babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(284);
|
|
559
|
+
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
536
560
|
|
|
537
|
-
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
538
561
|
!function (t, e) {
|
|
539
|
-
"object" == (
|
|
540
|
-
|
|
541
|
-
(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
|
|
542
|
-
__WEBPACK_AMD_DEFINE_FACTORY__),
|
|
543
|
-
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;
|
|
544
|
-
}(this, function () {
|
|
562
|
+
"object" == (typeof exports === "undefined" ? "undefined" : (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(exports)) && "undefined" != "object" ? module.exports = e() : "function" == typeof define && __webpack_require__.amdO ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
|
|
563
|
+
}(undefined, function () {
|
|
545
564
|
"use strict";
|
|
546
565
|
|
|
547
566
|
var t = 1e3,
|
|
@@ -635,7 +654,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;function _type
|
|
|
635
654
|
},
|
|
636
655
|
O = function O(t, e) {
|
|
637
656
|
if (S(t)) return t.clone();
|
|
638
|
-
var n = "object" ==
|
|
657
|
+
var n = "object" == (0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(e) ? e : {};
|
|
639
658
|
return n.date = t, n.args = arguments, new _(n);
|
|
640
659
|
},
|
|
641
660
|
b = v;
|
|
@@ -941,6 +960,284 @@ module.exports = function (i) {
|
|
|
941
960
|
|
|
942
961
|
/***/ }),
|
|
943
962
|
|
|
963
|
+
/***/ 633:
|
|
964
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
965
|
+
|
|
966
|
+
var _typeof = (__webpack_require__(738)["default"]);
|
|
967
|
+
function _regeneratorRuntime() {
|
|
968
|
+
"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
969
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
970
|
+
return r;
|
|
971
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
972
|
+
var t,
|
|
973
|
+
r = {},
|
|
974
|
+
e = Object.prototype,
|
|
975
|
+
n = e.hasOwnProperty,
|
|
976
|
+
o = "function" == typeof Symbol ? Symbol : {},
|
|
977
|
+
i = o.iterator || "@@iterator",
|
|
978
|
+
a = o.asyncIterator || "@@asyncIterator",
|
|
979
|
+
u = o.toStringTag || "@@toStringTag";
|
|
980
|
+
function c(t, r, e, n) {
|
|
981
|
+
Object.defineProperty(t, r, {
|
|
982
|
+
value: e,
|
|
983
|
+
enumerable: !n,
|
|
984
|
+
configurable: !n,
|
|
985
|
+
writable: !n
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
try {
|
|
989
|
+
c({}, "");
|
|
990
|
+
} catch (t) {
|
|
991
|
+
c = function c(t, r, e) {
|
|
992
|
+
return t[r] = e;
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
function h(r, e, n, o) {
|
|
996
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
|
997
|
+
a = Object.create(i.prototype);
|
|
998
|
+
return c(a, "_invoke", function (r, e, n) {
|
|
999
|
+
var o = 1;
|
|
1000
|
+
return function (i, a) {
|
|
1001
|
+
if (3 === o) throw Error("Generator is already running");
|
|
1002
|
+
if (4 === o) {
|
|
1003
|
+
if ("throw" === i) throw a;
|
|
1004
|
+
return {
|
|
1005
|
+
value: t,
|
|
1006
|
+
done: !0
|
|
1007
|
+
};
|
|
1008
|
+
}
|
|
1009
|
+
for (n.method = i, n.arg = a;;) {
|
|
1010
|
+
var u = n.delegate;
|
|
1011
|
+
if (u) {
|
|
1012
|
+
var c = d(u, n);
|
|
1013
|
+
if (c) {
|
|
1014
|
+
if (c === f) continue;
|
|
1015
|
+
return c;
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
1019
|
+
if (1 === o) throw o = 4, n.arg;
|
|
1020
|
+
n.dispatchException(n.arg);
|
|
1021
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
1022
|
+
o = 3;
|
|
1023
|
+
var h = s(r, e, n);
|
|
1024
|
+
if ("normal" === h.type) {
|
|
1025
|
+
if (o = n.done ? 4 : 2, h.arg === f) continue;
|
|
1026
|
+
return {
|
|
1027
|
+
value: h.arg,
|
|
1028
|
+
done: n.done
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
"throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg);
|
|
1032
|
+
}
|
|
1033
|
+
};
|
|
1034
|
+
}(r, n, new Context(o || [])), !0), a;
|
|
1035
|
+
}
|
|
1036
|
+
function s(t, r, e) {
|
|
1037
|
+
try {
|
|
1038
|
+
return {
|
|
1039
|
+
type: "normal",
|
|
1040
|
+
arg: t.call(r, e)
|
|
1041
|
+
};
|
|
1042
|
+
} catch (t) {
|
|
1043
|
+
return {
|
|
1044
|
+
type: "throw",
|
|
1045
|
+
arg: t
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
r.wrap = h;
|
|
1050
|
+
var f = {};
|
|
1051
|
+
function Generator() {}
|
|
1052
|
+
function GeneratorFunction() {}
|
|
1053
|
+
function GeneratorFunctionPrototype() {}
|
|
1054
|
+
var l = {};
|
|
1055
|
+
c(l, i, function () {
|
|
1056
|
+
return this;
|
|
1057
|
+
});
|
|
1058
|
+
var p = Object.getPrototypeOf,
|
|
1059
|
+
y = p && p(p(x([])));
|
|
1060
|
+
y && y !== e && n.call(y, i) && (l = y);
|
|
1061
|
+
var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l);
|
|
1062
|
+
function g(t) {
|
|
1063
|
+
["next", "throw", "return"].forEach(function (r) {
|
|
1064
|
+
c(t, r, function (t) {
|
|
1065
|
+
return this._invoke(r, t);
|
|
1066
|
+
});
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
function AsyncIterator(t, r) {
|
|
1070
|
+
function e(o, i, a, u) {
|
|
1071
|
+
var c = s(t[o], t, i);
|
|
1072
|
+
if ("throw" !== c.type) {
|
|
1073
|
+
var h = c.arg,
|
|
1074
|
+
f = h.value;
|
|
1075
|
+
return f && "object" == _typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) {
|
|
1076
|
+
e("next", t, a, u);
|
|
1077
|
+
}, function (t) {
|
|
1078
|
+
e("throw", t, a, u);
|
|
1079
|
+
}) : r.resolve(f).then(function (t) {
|
|
1080
|
+
h.value = t, a(h);
|
|
1081
|
+
}, function (t) {
|
|
1082
|
+
return e("throw", t, a, u);
|
|
1083
|
+
});
|
|
1084
|
+
}
|
|
1085
|
+
u(c.arg);
|
|
1086
|
+
}
|
|
1087
|
+
var o;
|
|
1088
|
+
c(this, "_invoke", function (t, n) {
|
|
1089
|
+
function i() {
|
|
1090
|
+
return new r(function (r, o) {
|
|
1091
|
+
e(t, n, r, o);
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
return o = o ? o.then(i, i) : i();
|
|
1095
|
+
}, !0);
|
|
1096
|
+
}
|
|
1097
|
+
function d(r, e) {
|
|
1098
|
+
var n = e.method,
|
|
1099
|
+
o = r.i[n];
|
|
1100
|
+
if (o === t) return e.delegate = null, "throw" === n && r.i["return"] && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f;
|
|
1101
|
+
var i = s(o, r.i, e.arg);
|
|
1102
|
+
if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f;
|
|
1103
|
+
var a = i.arg;
|
|
1104
|
+
return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f);
|
|
1105
|
+
}
|
|
1106
|
+
function w(t) {
|
|
1107
|
+
this.tryEntries.push(t);
|
|
1108
|
+
}
|
|
1109
|
+
function m(r) {
|
|
1110
|
+
var e = r[4] || {};
|
|
1111
|
+
e.type = "normal", e.arg = t, r[4] = e;
|
|
1112
|
+
}
|
|
1113
|
+
function Context(t) {
|
|
1114
|
+
this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0);
|
|
1115
|
+
}
|
|
1116
|
+
function x(r) {
|
|
1117
|
+
if (null != r) {
|
|
1118
|
+
var e = r[i];
|
|
1119
|
+
if (e) return e.call(r);
|
|
1120
|
+
if ("function" == typeof r.next) return r;
|
|
1121
|
+
if (!isNaN(r.length)) {
|
|
1122
|
+
var o = -1,
|
|
1123
|
+
a = function e() {
|
|
1124
|
+
for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e;
|
|
1125
|
+
return e.value = t, e.done = !0, e;
|
|
1126
|
+
};
|
|
1127
|
+
return a.next = a;
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
throw new TypeError(_typeof(r) + " is not iterable");
|
|
1131
|
+
}
|
|
1132
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), c(GeneratorFunctionPrototype, u, GeneratorFunction.displayName = "GeneratorFunction"), r.isGeneratorFunction = function (t) {
|
|
1133
|
+
var r = "function" == typeof t && t.constructor;
|
|
1134
|
+
return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name));
|
|
1135
|
+
}, r.mark = function (t) {
|
|
1136
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t;
|
|
1137
|
+
}, r.awrap = function (t) {
|
|
1138
|
+
return {
|
|
1139
|
+
__await: t
|
|
1140
|
+
};
|
|
1141
|
+
}, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () {
|
|
1142
|
+
return this;
|
|
1143
|
+
}), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) {
|
|
1144
|
+
void 0 === i && (i = Promise);
|
|
1145
|
+
var a = new AsyncIterator(h(t, e, n, o), i);
|
|
1146
|
+
return r.isGeneratorFunction(e) ? a : a.next().then(function (t) {
|
|
1147
|
+
return t.done ? t.value : a.next();
|
|
1148
|
+
});
|
|
1149
|
+
}, g(v), c(v, u, "Generator"), c(v, i, function () {
|
|
1150
|
+
return this;
|
|
1151
|
+
}), c(v, "toString", function () {
|
|
1152
|
+
return "[object Generator]";
|
|
1153
|
+
}), r.keys = function (t) {
|
|
1154
|
+
var r = Object(t),
|
|
1155
|
+
e = [];
|
|
1156
|
+
for (var n in r) e.unshift(n);
|
|
1157
|
+
return function t() {
|
|
1158
|
+
for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t;
|
|
1159
|
+
return t.done = !0, t;
|
|
1160
|
+
};
|
|
1161
|
+
}, r.values = x, Context.prototype = {
|
|
1162
|
+
constructor: Context,
|
|
1163
|
+
reset: function reset(r) {
|
|
1164
|
+
if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t);
|
|
1165
|
+
},
|
|
1166
|
+
stop: function stop() {
|
|
1167
|
+
this.done = !0;
|
|
1168
|
+
var t = this.tryEntries[0][4];
|
|
1169
|
+
if ("throw" === t.type) throw t.arg;
|
|
1170
|
+
return this.rval;
|
|
1171
|
+
},
|
|
1172
|
+
dispatchException: function dispatchException(r) {
|
|
1173
|
+
if (this.done) throw r;
|
|
1174
|
+
var e = this;
|
|
1175
|
+
function n(t) {
|
|
1176
|
+
a.type = "throw", a.arg = r, e.next = t;
|
|
1177
|
+
}
|
|
1178
|
+
for (var o = e.tryEntries.length - 1; o >= 0; --o) {
|
|
1179
|
+
var i = this.tryEntries[o],
|
|
1180
|
+
a = i[4],
|
|
1181
|
+
u = this.prev,
|
|
1182
|
+
c = i[1],
|
|
1183
|
+
h = i[2];
|
|
1184
|
+
if (-1 === i[0]) return n("end"), !1;
|
|
1185
|
+
if (!c && !h) throw Error("try statement without catch or finally");
|
|
1186
|
+
if (null != i[0] && i[0] <= u) {
|
|
1187
|
+
if (u < c) return this.method = "next", this.arg = t, n(c), !0;
|
|
1188
|
+
if (u < h) return n(h), !1;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
abrupt: function abrupt(t, r) {
|
|
1193
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
1194
|
+
var n = this.tryEntries[e];
|
|
1195
|
+
if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) {
|
|
1196
|
+
var o = n;
|
|
1197
|
+
break;
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null);
|
|
1201
|
+
var i = o ? o[4] : {};
|
|
1202
|
+
return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i);
|
|
1203
|
+
},
|
|
1204
|
+
complete: function complete(t, r) {
|
|
1205
|
+
if ("throw" === t.type) throw t.arg;
|
|
1206
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f;
|
|
1207
|
+
},
|
|
1208
|
+
finish: function finish(t) {
|
|
1209
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
1210
|
+
var e = this.tryEntries[r];
|
|
1211
|
+
if (e[2] === t) return this.complete(e[4], e[3]), m(e), f;
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
"catch": function _catch(t) {
|
|
1215
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
1216
|
+
var e = this.tryEntries[r];
|
|
1217
|
+
if (e[0] === t) {
|
|
1218
|
+
var n = e[4];
|
|
1219
|
+
if ("throw" === n.type) {
|
|
1220
|
+
var o = n.arg;
|
|
1221
|
+
m(e);
|
|
1222
|
+
}
|
|
1223
|
+
return o;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
throw Error("illegal catch attempt");
|
|
1227
|
+
},
|
|
1228
|
+
delegateYield: function delegateYield(r, e, n) {
|
|
1229
|
+
return this.delegate = {
|
|
1230
|
+
i: x(r),
|
|
1231
|
+
r: e,
|
|
1232
|
+
n: n
|
|
1233
|
+
}, "next" === this.method && (this.arg = t), f;
|
|
1234
|
+
}
|
|
1235
|
+
}, r;
|
|
1236
|
+
}
|
|
1237
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1238
|
+
|
|
1239
|
+
/***/ }),
|
|
1240
|
+
|
|
944
1241
|
/***/ 671:
|
|
945
1242
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
946
1243
|
|
|
@@ -1232,6 +1529,44 @@ window && (window.CryptoJSTest = CryptoJS);
|
|
|
1232
1529
|
"use strict";
|
|
1233
1530
|
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG0AAABwCAMAAAAjbg4hAAAC+lBMVEUAAAAUGESxxO0WFErF2PTk6/taXOAgF1YnHWMsJXVLP8BWTNy+4vipyPSQmtxbVei2xPhfY/Pg6vlshvKcpNiizfuWx/lyn/47MZo2Loze5vdngP5mfetNQcBugvZ/sf5NQMRMQcNjcvsvJXlLPL6NuPdaU+dbWeuhu+tgafaty+/e6fnV8vpANqasrfjk8P3Ay/O8yu2Ovvjm7P2otelkd/fi8ftphPFLP8B0kfPm7vvB0N23wfXBzfjAyvWJpOjg7/ybz/uWy/1zlv+yuffP6/h5nPJzg8Rghex1nv/L1/xeeeXN0fvR1fctLLNmYeTN0fUzL7bX3Pu7xezb4fukjfXDzPBgXeDIzfJNaeZNWd5NTNREStBTYOOpkPVwZOBUUdg+Q8vY4vbq8PrM1vRod/R2rfvR2/ZYbuhYPsHf5ftcb/G2welOYul3cehHUNY7O8FVefFsaeZ+Z9+cifQnKK9bgvWGeO48MLXAyO5xpPqhtPlYWdzv9/tgjPbG0fFGRs39//6WqvnJ0fR3audJW+WOf/FVZ+1LYuOVg/D1+/zX1/qrvPr97rw1O7miwvmq1fhhdfRLVNkiJKhPcO75uj9+e+2Na9r99c/84pp9tv2Ln/hnlfZuffaImOmyuuQ/RcT6w0222flWZuZGW9iOk9CIq/q8yfBKYN1+ftdxQ7mJQ6ltnvl4iPemteqirN1hVNZhder9+d6EitpkP7v80Gv8ylycruiUpOhLM7G6rPiyoPdtfuljcN2Bk/iHiPB6kuxaaOBwd9dsWdeFwf2YvPmYmvSuuuyqs95/ktR3WNB2hMxyecLFuPl+qe95iOL83IhnTcxgZb9UX7396azc5OldSslMUsA+Srf813vRxfnH6fimmvaecM5NTsxgZcsqKJiKXcxnbb/DgXi0lfFCUOA+SNWGTrsuMaheNKu4lM5RXMzL2uLUp5zmplWdfOdwN6SDOJTZpX6qheqxzeSBicPkv5mlWnjf9vuvgLjHm6/u5NjbxMieYLEud95tAAAATXRSTlMACAsQFv4UHCg4hqj+Iv60/slWP/79+u9lViril0ko72M000Yk/Y1xMlJSPPx5/suNdszo17GQ/pp5cf7hxalprqfn1fPhm17ht9rU58DObPYAABFsSURBVGjetNh/UJN1HAdwjmP9BTvOgD+46j/uOPECkuAKNOuyukoMBgvmpm17dAjjlxAEA2ZbiSBtRCYVtC0BxwQ2adaWMtowhYFCZPyIxFITDEErzczyrvf32TM3p5B213voHw93vr7vz/f7uGfzu+8ERD0ZvyZ67dro6DXxT0b5+/1/CVi2+sW9TAIDA79fsWJldPyyAL//GP+gJX63fFVwnfooolaHhobW14OECDL6P4D4554OC3ssYJFasUl1CsU+kqPqUPXRiGGSiLDQerpjfPh9U1+RxNzVinlWppDJFAr8ZbV37yYpLCwsQaqah8PqAa4Jvw/qGUAfIV8943/nr2Oflcnq6uqCgy32rLeR8zM6FR0dv3V3SZULXBEfcH8UzS3380lUnAwQohGcP39eqLqgmrhos5cPY6jD9qGTk5P83QSsD1y77F+xp25RW0g++uppn8XEoBR+9CMNoC5cmHQk9GLvsHn1roSGOU9OtpYQ7/t4/6WxJzq33JJc3O2jDIqrC5bZR/TWhvMzBRdUvM1dvU379kUQDRxOJbK3Psw5OQMvInDN0tN8oapziyfq4S23jzIyKVjWk5Vlsc3MFPyoEiT0NjUBAxdxNCyU8XAXAHSSfsP1a5c8LC8VNpcz1HC5utaIcl6jXP5snd3R0mLLn8EMeZubZCQKhoN3665b8X1g/dDk7qrmsLVRS00ys6oTXHl5+d7K4S2BEeVbPgoL8GAWR4tAwJuZUf0orO7FuUTUbg71wsjmuW/ywLCTqBcRuMRZidxZ0lxevkV0tVPNGi5HvEYZ+axGAKuBFGvobqpzR2YxDVxNnB8jmU9MvHr16l7CXV+xd0hXUhIRGLXUKEk5lqSznMmtUQYljbS383j52LEUXo8CIXedcSBxTFzL5E1XKoFeDVxx/fr3bF1hScQSw3witwrlhocZqxP0Y66jHzfSzgMmxPHgdfUmIF0KUJW1le7QIJPascR51LNMEi58qVF2uiWkubnzKT+SGE07r6GBYAW8nu6cnJzubva82MWIxWJWdraIDksM1QXOJ664bkG7o9H+i44SJwmKS2queuGhB10nxNreymAN3VkkNq3LAiSRS01ss4GOmR2i5UpYla6C89dN4OrjFx0lykECVEUorMo1R0drQz49xvwWOmaRmIQlorRtQEpL89zZtm1Tn9lUJgKIfmMhrYXNgeGLjrKwyodCYvta82nsAh/nsqXFYclm0VZZ2ze6IzXpG9NrSpnsKd2D5OWZTZQY3ti8c2fhvjWLlXt8J946Xnjoee9ZB4QQjF9w4UchT4A4+rNZiIjbNqFKKRgvKt64sbhmBygvsjTPECKHJ048vrtw72LnMujxlx5//oHbr8XYYPGFKT8W5POQCmladjYrmwqZSElOTnlDd6A0nebgeZM79hgGRLXg2gvtKHevCWDD4gtVmCOPpD8Vmoh7XJWMpKS8cXpTzcaN6cU1NTsg3pY9bG7lm+KQzMLggHvWYm3AMEecRxKrJDUtTSI9mUJj0FyzBOeKh4RukIrfHBsqtMfeW6/lMavjbHyhEHNM4TfgYPZREkmqRDuR8jqNQXtj6xHMEpwrNfhxycUI4RJt3avuxYp5mUpNoyw2oZBUy0cu6pUSiUQ7mezBSLkawiHFML2Snn7KwKmsDclRhP+bFbk8SStJQyQaB6m2nZwVthzdOBPJr3tpX2wdbcQs4XlCW8BOnTLLa8f6umL/pddqa6/dqZWkguvv7XGoCgh2US+n1mWcTX7Pg0H74uDgZZTzAWnr8OFitujNge7VS2NxmoSEXsVxinBUU9PHDj4Ju0xOKduAMRptffHzwcHGKy7M5TE0wQ4fMmgrx0bilsL8V1uz7LLg4BEtRcopmro25wM7LS2TK7WT76GaW4P1yy8ds2cug3N5sJgcJtihw2aq1mRdauOeMra32+x2jbVNuQ63l1HR9HEDTmYfhyun50hrbuyPS5cunZu+cuVKOhNwP9GhtRNmbeW89cUnF68WZ2xt35mZmWkfUlI4KcGKps287UKhFdqA6j1vDdj7JOemLyO423D0L1+5MrewMOfWDrWJxMbQveGLVpMFj7S205qclOMqFJsFQuH2fg4343gyo2GQqPbLr5dgITfPnCli0tg4TS7eAAfsxJSBUytV1y96UOLkHDat9Tj1cuycXCbrgvaDlMOVYtegeaqdoy2Um50dHR0dx2t0cJa+eGmO0dimSrlaXb/cz/9uWFC/RU80xMnhKiWplEzWBM2AQ9JGqnk0VPvElUsd+w9upXNwf4er78IVcNAwyjGLOjTJPzLyboPUj8hDaG3nkFQPTYkHR4ewgC0ty/jmdY9G7xogV7y0X993LWD68k9EmxqSizX4oLfcL/Yum/ccpSkzuTWMUoJJyqBZpNwyDPJ27XN3/ug4CA7YwQ73Em42Xka5qV0Gaa0TnyuTAgJWBdxl2zQaRjsr1XMpiV6TYHcIdf1S+UCKRyPb9uu5zz777HP6dQ7lmEG6l3ButqiYaG3GSuc+tVq9zC8m3hfzD3FqrIx2EQeDWietrs7iQeNg2+7QmHhr54C7tMHSU9BCQsRsO7S1/pGSIB/tEdOIxmhq3UlrHBwTyphbndVQMCHlyI/7ar99585v3poruHSk5tDULhM7O6QbmjzKb5XvXf6g1uoUmVAN2g+0Zs3Nzc0vOC3lUGfv0L52Z8FL8yxgNO/w1C6tWWRqwcZdjfeLjfbRntcrnaKQ9sws+pQQbSQ3V8BXbe8vo75JJhYoxKV9yMRbcy/hWsf+8SPpJ3adMEsGdjap1caV/s+v9PfRuEqnhJ2JZ9TMdic0OdVTnSsQqoRGaCk0pVIVIF9sPQjNHS+NuUi0rQdqTuyaMlMDvK6jRy3iZZHycF8tw8k1E62l1UQ0ua26pUGnElr0krMqRtIJt2/funV/x8K37tyY3T86jkC7xiyAaOOlh6amDHIT792qKrsoPkAa5aNxlFxpXxbRLkqJxhG0CPgFKiGbIzmuIxKhtm/YMD6+f3bhnW/fceXG7OAondmOa8wCFmb3j49j49DN1JBTUpUgWuM34POR7mGjUtnvoDUcEj2Xa8EHN6GqAG84VJvOZfE3bNjw2gH8j3gDjit/nhk8QjJ45ua1WwsYHT+w6dSJE2YqBFpJgmSlf4iP9oiZ0ltaiCZwQivjmgWCfB20ixxKq8NbAUKw1w4cGDzz5wdM3pk+U7SJhGjeC9hUc+hQm6SNR2viKLaP5t+HryhgkW3jcDhlXJuARwYpFFrk1ASx+Pxb2k239ndjY1HRW9CKGqcX3AtoxALydpw6xRYZeDnvlvSIWNHQbk+cxtjTzQwSmrQCgyxQ4UmhjysZAoZqjIax/f0pnb+mCUYC7QazAFx7Ky9vxzHzAKsP2rvQWNYoH22VTNPTDc7hJFgZWyDAidTxESPFmfR0ew0aRklrc6gGitYa3ddobM+OYgOH9YOgOidnJI0lsQT5aDF1TV2E+0FLMG6fw3FapwLBn7FxJb/rCOdVbu4vNHNjeXihHF0Ys6W1L2vMStFpQUt1tSaVxUny99HCgxW9PeCcZdC4UpvNdnqSPCnzZ2bYFHVS5y7HcNNzc8wYPeXICsgcaW2PSZQBraXFmMoauPOBYXXdsS97eob0ZWiWwe7psV0cmqhoyCcgWyI/WUC6ebjBwSL6NG5j8lYR2s2RtoxmUIpN+dAc3FQxbgDfBCU9eqzXrM3gcjMyOCMjI32GgeMVDeAQq0R+FhyjEQ6BtX79+m3raQ3HEh7+4CrR8owilpl8zuyTpIniMEjfhK8KHuCse4XEcuyYxmzUDpyswLcK+Oou30xJ2iaFHg559dVX13tlkyfb8FHcLBFn2ASIJZWljb3rk3n8yrTU1F271nEeRfo5Um0IOB7vPNKnF0lRj9EqKiqAgfOO2yLdDEoWFVwBzJaRyvJU86n35JrolaJ1GS+//OIryjKOVNo2wSPB163tGkqkPTsphEY4xvPptx4Yqm0zyFmiOiPBrKnZiZGLPzH/Q6rdhCgRxnEcHwY9bogJwRB1jQR7MQpkty2IiEASG2y2kmK0lEmFvAm9sRJJdinCizYGNViH3KTDSliz22HccCDQg5dQ8NrZe7/nmRFNsGa27+7BhWU//HeelWfmWdbBcdySg+ODgskBo203E2JqjNUJcIqRD9IVk8M1HCpxp7j+TN7+0vqR58VV5t+dDIeECDhPD1yUaOl0Uq6Jiaoy6r8eGN6cSKwbw05VjOEOySWrqpwKOy3dEHP+YgjTXU5t9LC0QNHetDYjovhwR9G7/f5ggCGpafbx47CzJyfGJFe5vO7SNC3FH3EzlgrwQUwHr6r/ilLqCS3Zktt5kcezpx2P0tFHXTREekfZSMWlmDPRxtO+8jOX71zIH3Aw1mKPhCkHT+ldnWB3aI3WVrMdSYiSxIuJRDAeDyZEUXLioVStXsZc2GbnQxfPuJcYy3F+ysHLVfU+xptqBtlo/ZDl5ma9jer1zaa8tfXhw9ev5XVoJ7ycg2Xs5JYIh/HQTqcfNbXns93CJ+0V+kAwOlrdy9guQDjikbD4X1AOTSgTAjWDYbQ29uK74+h4tJxH770FN/FMa4qZv8fNh3gYukuuiPHyFBQEIbcx7vbuJYkHbRrBXhHsq7ynyjs5Zne58dYZpB5AgXZ5Y6x3e7+2k41ZDVbpx/vvngjvdLqZ3eY9gvGIFxIm5fN5IVf1KGNdH426pNFI18eKJ4UbaGkWcyxNs7ZEHWcknnrIsFAIBWnx0EMhT14Xi+Hwnxh7/lSlso92kHTWkucm4xkeohTFimFakFAIFjD/dO2vJs3zQFqlctviM8SAn6eeIZqDYRCEwcOGRb52zp5R7S+svbyLYFK0ctySBu8kvXqzFfmYcQ4hgQubg7lZZkbD7SA58ZyQ0Kxyl9uRP7Ww9JR2n6cUrLn3YGgFcE2xfhcmtAfQLLaifvmmVIUQzZgNK4IcefCw8NI8hp7X1mqxmFRvgLOjHdOy9waDnq5Uc4IhkmVhJh0JcAya096aGrwGhrOhOc6Vrty8dv36o9f9bkfx7ODpF0SEP4vgdB3OaQVTEzGcdQ0d1TLgzAaDwa/h8Bspo66vMAu1dLrmjCWayZc2Nceymp1wLybbrkvZTElzeRdp78Bt1eS1NFYLLhw0y3l94O7BMa1PTWDZkuo7yizWwGE+tGZLQ8d8aubSFTjGbnLPHkwGbIVdqJmbw8JjykGzyZWylyb7OgxGsYUbnVW68Z2UfnL3PGOrw8uaWspkjTKwNN9pllkUu387+u4xvEKBbqIuLNnC6P9iaKpaoqmwlt1///alQ9iKNvYeOHRo795DLGM77uiy76eGfvo+r7j/+QPYaCG5yvxH7O927W9FQSCK43hmjP9YBglq3LJMrbZAqCCwiy3aQOgR9o32sfd3jsrqXgUjuzd9hRSJ82HmxgJf97vz+bx76Ndi/+vz1Pu7ikvv2X9mlAfq9Y1+O9zsEEJCiL5oNBCDOkGB7EYSaNaUUpHOGr1Q9AXtFRpmOTlttaCGjd7QDKChiaU0ddEuXIRhuGk33G6Hw1RTs8LLZhO2i8IoitaNTtxlvwmFlmba0QnjojJVnV3cWq1XdVOqKIrdKUr1NCeaFlNMdBsx4SEpj/JYdr/fr9eptha4mHSUUnqNJOdTMbrdbofD++G4UrbmTibK9TAOxbFfF1MTjv7AfKD5zZeutuYkKss9P56M52XjKlwuR/z+2Gg5H09i38uzwNLTLHABeRIropWwAQWNwBA+ASW93M2CRE8zLOLIc/PcI9KnPfyJt1eypYLE0dRMcLaD9QVKZSDJhFoFBuWgyEoc29TTDLP2EhZBAuVyl8sgqYAt24Kmy7EHESSZnKrCJUsOWZZp6GrwGGSS1XYMgYJlsqYPQmSzzq5pq8pEHT1TGWSS1d9VUtcPcFbrINMHekDSgusD4fSM+gZIc8do4s4WUQAAAABJRU5ErkJggg==";
|
|
1234
1531
|
|
|
1532
|
+
/***/ }),
|
|
1533
|
+
|
|
1534
|
+
/***/ 738:
|
|
1535
|
+
/***/ (function(module) {
|
|
1536
|
+
|
|
1537
|
+
function _typeof(o) {
|
|
1538
|
+
"@babel/helpers - typeof";
|
|
1539
|
+
|
|
1540
|
+
return module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
1541
|
+
return typeof o;
|
|
1542
|
+
} : function (o) {
|
|
1543
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1544
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof(o);
|
|
1545
|
+
}
|
|
1546
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1547
|
+
|
|
1548
|
+
/***/ }),
|
|
1549
|
+
|
|
1550
|
+
/***/ 756:
|
|
1551
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1552
|
+
|
|
1553
|
+
// TODO(Babel 8): Remove this file.
|
|
1554
|
+
|
|
1555
|
+
var runtime = __webpack_require__(633)();
|
|
1556
|
+
module.exports = runtime;
|
|
1557
|
+
|
|
1558
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
1559
|
+
try {
|
|
1560
|
+
regeneratorRuntime = runtime;
|
|
1561
|
+
} catch (accidentalStrictMode) {
|
|
1562
|
+
if (typeof globalThis === "object") {
|
|
1563
|
+
globalThis.regeneratorRuntime = runtime;
|
|
1564
|
+
} else {
|
|
1565
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
|
|
1235
1570
|
/***/ }),
|
|
1236
1571
|
|
|
1237
1572
|
/***/ 780:
|
|
@@ -1291,12 +1626,15 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-0c
|
|
|
1291
1626
|
/******/ // Create a new module (and put it into the cache)
|
|
1292
1627
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
1293
1628
|
/******/ id: moduleId,
|
|
1294
|
-
/******/
|
|
1629
|
+
/******/ loaded: false,
|
|
1295
1630
|
/******/ exports: {}
|
|
1296
1631
|
/******/ };
|
|
1297
1632
|
/******/
|
|
1298
1633
|
/******/ // Execute the module function
|
|
1299
|
-
/******/ __webpack_modules__[moduleId]
|
|
1634
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
1635
|
+
/******/
|
|
1636
|
+
/******/ // Flag the module as loaded
|
|
1637
|
+
/******/ module.loaded = true;
|
|
1300
1638
|
/******/
|
|
1301
1639
|
/******/ // Return the exports of the module
|
|
1302
1640
|
/******/ return module.exports;
|
|
@@ -1306,6 +1644,11 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-0c
|
|
|
1306
1644
|
/******/ __webpack_require__.m = __webpack_modules__;
|
|
1307
1645
|
/******/
|
|
1308
1646
|
/************************************************************************/
|
|
1647
|
+
/******/ /* webpack/runtime/amd options */
|
|
1648
|
+
/******/ !function() {
|
|
1649
|
+
/******/ __webpack_require__.amdO = {};
|
|
1650
|
+
/******/ }();
|
|
1651
|
+
/******/
|
|
1309
1652
|
/******/ /* webpack/runtime/compat get default export */
|
|
1310
1653
|
/******/ !function() {
|
|
1311
1654
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
@@ -1330,6 +1673,21 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".yx-speech-recognition .icon[data-v-0c
|
|
|
1330
1673
|
/******/ };
|
|
1331
1674
|
/******/ }();
|
|
1332
1675
|
/******/
|
|
1676
|
+
/******/ /* webpack/runtime/harmony module decorator */
|
|
1677
|
+
/******/ !function() {
|
|
1678
|
+
/******/ __webpack_require__.hmd = function(module) {
|
|
1679
|
+
/******/ module = Object.create(module);
|
|
1680
|
+
/******/ if (!module.children) module.children = [];
|
|
1681
|
+
/******/ Object.defineProperty(module, 'exports', {
|
|
1682
|
+
/******/ enumerable: true,
|
|
1683
|
+
/******/ set: function() {
|
|
1684
|
+
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
1685
|
+
/******/ }
|
|
1686
|
+
/******/ });
|
|
1687
|
+
/******/ return module;
|
|
1688
|
+
/******/ };
|
|
1689
|
+
/******/ }();
|
|
1690
|
+
/******/
|
|
1333
1691
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
1334
1692
|
/******/ !function() {
|
|
1335
1693
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
@@ -1492,6 +1850,70 @@ var staticRenderFns = [function () {
|
|
|
1492
1850
|
|
|
1493
1851
|
;// ./package/SpeechRecognition/index.vue?vue&type=template&id=0c23a6db&scoped=true
|
|
1494
1852
|
|
|
1853
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
1854
|
+
var esm_typeof = __webpack_require__(284);
|
|
1855
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
1856
|
+
|
|
1857
|
+
function toPrimitive(t, r) {
|
|
1858
|
+
if ("object" != (0,esm_typeof/* default */.A)(t) || !t) return t;
|
|
1859
|
+
var e = t[Symbol.toPrimitive];
|
|
1860
|
+
if (void 0 !== e) {
|
|
1861
|
+
var i = e.call(t, r || "default");
|
|
1862
|
+
if ("object" != (0,esm_typeof/* default */.A)(i)) return i;
|
|
1863
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1864
|
+
}
|
|
1865
|
+
return ("string" === r ? String : Number)(t);
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
1869
|
+
|
|
1870
|
+
|
|
1871
|
+
function toPropertyKey(t) {
|
|
1872
|
+
var i = toPrimitive(t, "string");
|
|
1873
|
+
return "symbol" == (0,esm_typeof/* default */.A)(i) ? i : i + "";
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
;// ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
1877
|
+
|
|
1878
|
+
function _defineProperty(e, r, t) {
|
|
1879
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1880
|
+
value: t,
|
|
1881
|
+
enumerable: !0,
|
|
1882
|
+
configurable: !0,
|
|
1883
|
+
writable: !0
|
|
1884
|
+
}) : e[r] = t, e;
|
|
1885
|
+
}
|
|
1886
|
+
|
|
1887
|
+
;// ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
1888
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
1889
|
+
try {
|
|
1890
|
+
var i = n[a](c),
|
|
1891
|
+
u = i.value;
|
|
1892
|
+
} catch (n) {
|
|
1893
|
+
return void e(n);
|
|
1894
|
+
}
|
|
1895
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
1896
|
+
}
|
|
1897
|
+
function _asyncToGenerator(n) {
|
|
1898
|
+
return function () {
|
|
1899
|
+
var t = this,
|
|
1900
|
+
e = arguments;
|
|
1901
|
+
return new Promise(function (r, o) {
|
|
1902
|
+
var a = n.apply(t, e);
|
|
1903
|
+
function _next(n) {
|
|
1904
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
1905
|
+
}
|
|
1906
|
+
function _throw(n) {
|
|
1907
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
1908
|
+
}
|
|
1909
|
+
_next(void 0);
|
|
1910
|
+
});
|
|
1911
|
+
};
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/regenerator/index.js
|
|
1915
|
+
var regenerator = __webpack_require__(756);
|
|
1916
|
+
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
1495
1917
|
// EXTERNAL MODULE: ./package/SpeechRecognition/utils/speech/cryptojs.js
|
|
1496
1918
|
var cryptojs = __webpack_require__(672);
|
|
1497
1919
|
;// ./package/SpeechRecognition/utils/speech/getSignature.js
|
|
@@ -1528,19 +1950,71 @@ function signCallback(signStr) {
|
|
|
1528
1950
|
/* harmony default export */ var getSignature = (signCallback);
|
|
1529
1951
|
|
|
1530
1952
|
/** 获取签名 end */
|
|
1953
|
+
;// ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
1954
|
+
function _classCallCheck(a, n) {
|
|
1955
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
;// ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
1959
|
+
|
|
1960
|
+
function _defineProperties(e, r) {
|
|
1961
|
+
for (var t = 0; t < r.length; t++) {
|
|
1962
|
+
var o = r[t];
|
|
1963
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
function _createClass(e, r, t) {
|
|
1967
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
1968
|
+
writable: !1
|
|
1969
|
+
}), e;
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
;// ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
1973
|
+
function _arrayLikeToArray(r, a) {
|
|
1974
|
+
(null == a || a > r.length) && (a = r.length);
|
|
1975
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
1976
|
+
return n;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
;// ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
|
|
1980
|
+
|
|
1981
|
+
function _arrayWithoutHoles(r) {
|
|
1982
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
;// ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
|
|
1986
|
+
function _iterableToArray(r) {
|
|
1987
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
;// ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js
|
|
1991
|
+
|
|
1992
|
+
function _unsupportedIterableToArray(r, a) {
|
|
1993
|
+
if (r) {
|
|
1994
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
1995
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
1996
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
;// ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
|
|
2001
|
+
function _nonIterableSpread() {
|
|
2002
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
|
|
2006
|
+
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
function toConsumableArray_toConsumableArray(r) {
|
|
2011
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
2012
|
+
}
|
|
2013
|
+
|
|
1531
2014
|
;// ./package/SpeechRecognition/utils/speech/webrecorder.js
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
1536
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
1537
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
1538
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1539
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
1540
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
1541
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
1542
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
1543
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
|
|
1544
2018
|
var audioWorkletCode = "\nclass MyProcessor extends AudioWorkletProcessor {\n constructor(options) {\n super(options);\n this.audioData = [];\n this.nextUpdateFrame = 40;\n }\n\n get intervalInFrames() {\n return 200 / 1000 * sampleRate;\n }\n\n process(inputs) {\n // \u53BB\u5904\u7406\u97F3\u9891\u6570\u636E\n // eslint-disable-next-line no-undef\n if (inputs[0][0]) {\n const output = ".concat(to16kHz, "(inputs[0][0], sampleRate);\n const audioData = ").concat(to16BitPCM, "(output);\n const data = [...new Int8Array(audioData.buffer)];\n this.audioData = this.audioData.concat(data);\n this.nextUpdateFrame -= inputs[0][0].length;\n if (this.nextUpdateFrame < 0) {\n this.nextUpdateFrame += this.intervalInFrames;\n this.port.postMessage({\n audioData: new Int8Array(this.audioData)\n });\n this.audioData = [];\n }\n return true;\n }\n }\n}\n\nregisterProcessor('my-processor', MyProcessor);\n");
|
|
1545
2019
|
var audioWorkletBlobURL = window.URL.createObjectURL(new Blob([audioWorkletCode], {
|
|
1546
2020
|
type: 'text/javascript'
|
|
@@ -1669,7 +2143,7 @@ var WebRecorder = /*#__PURE__*/function () {
|
|
|
1669
2143
|
var inputData = e.inputBuffer.getChannelData(0);
|
|
1670
2144
|
var output = to16kHz(inputData, _this.audioContext.sampleRate);
|
|
1671
2145
|
var audioData = to16BitPCM(output);
|
|
1672
|
-
(_this$audioData = _this.audioData).push.apply(_this$audioData,
|
|
2146
|
+
(_this$audioData = _this.audioData).push.apply(_this$audioData, toConsumableArray_toConsumableArray(new Int8Array(audioData.buffer)));
|
|
1673
2147
|
if (_this.audioData.length > 6400) {
|
|
1674
2148
|
var audioDataArray = new Int8Array(_this.audioData);
|
|
1675
2149
|
_this.OnReceivedData(audioDataArray);
|
|
@@ -1718,29 +2192,67 @@ var WebRecorder = /*#__PURE__*/function () {
|
|
|
1718
2192
|
}();
|
|
1719
2193
|
|
|
1720
2194
|
window && (window.WebRecorder = WebRecorder);
|
|
2195
|
+
;// ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
2196
|
+
function _arrayWithHoles(r) {
|
|
2197
|
+
if (Array.isArray(r)) return r;
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
;// ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
2201
|
+
function _iterableToArrayLimit(r, l) {
|
|
2202
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
2203
|
+
if (null != t) {
|
|
2204
|
+
var e,
|
|
2205
|
+
n,
|
|
2206
|
+
i,
|
|
2207
|
+
u,
|
|
2208
|
+
a = [],
|
|
2209
|
+
f = !0,
|
|
2210
|
+
o = !1;
|
|
2211
|
+
try {
|
|
2212
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
2213
|
+
if (Object(t) !== t) return;
|
|
2214
|
+
f = !1;
|
|
2215
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
2216
|
+
} catch (r) {
|
|
2217
|
+
o = !0, n = r;
|
|
2218
|
+
} finally {
|
|
2219
|
+
try {
|
|
2220
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
2221
|
+
} finally {
|
|
2222
|
+
if (o) throw n;
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
return a;
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
|
|
2229
|
+
;// ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
2230
|
+
function _nonIterableRest() {
|
|
2231
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
;// ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
|
|
2238
|
+
|
|
2239
|
+
function _slicedToArray(r, e) {
|
|
2240
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
2241
|
+
}
|
|
2242
|
+
|
|
1721
2243
|
;// ./package/SpeechRecognition/utils/speech/speechrecognizer.js
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
1728
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
|
|
2247
|
+
|
|
2248
|
+
|
|
1729
2249
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1730
2250
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1731
|
-
|
|
1732
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == speechrecognizer_typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(speechrecognizer_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), c(GeneratorFunctionPrototype, u, GeneratorFunction.displayName = "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, catch: function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
1733
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
1734
|
-
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
1735
|
-
function speechrecognizer_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
1736
|
-
function speechrecognizer_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, speechrecognizer_toPropertyKey(o.key), o); } }
|
|
1737
|
-
function speechrecognizer_createClass(e, r, t) { return r && speechrecognizer_defineProperties(e.prototype, r), t && speechrecognizer_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
1738
|
-
function speechrecognizer_toPropertyKey(t) { var i = speechrecognizer_toPrimitive(t, "string"); return "symbol" == speechrecognizer_typeof(i) ? i : i + ""; }
|
|
1739
|
-
function speechrecognizer_toPrimitive(t, r) { if ("object" != speechrecognizer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != speechrecognizer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2251
|
+
|
|
1740
2252
|
|
|
1741
2253
|
var NewCredential = /*#__PURE__*/function () {
|
|
1742
2254
|
function NewCredential(query) {
|
|
1743
|
-
|
|
2255
|
+
_classCallCheck(this, NewCredential);
|
|
1744
2256
|
this.config = {
|
|
1745
2257
|
appid: query.appid,
|
|
1746
2258
|
secretid: query.secretid,
|
|
@@ -1748,7 +2260,7 @@ var NewCredential = /*#__PURE__*/function () {
|
|
|
1748
2260
|
};
|
|
1749
2261
|
this.query = query || null;
|
|
1750
2262
|
}
|
|
1751
|
-
return
|
|
2263
|
+
return _createClass(NewCredential, [{
|
|
1752
2264
|
key: "formatSignString",
|
|
1753
2265
|
value: function formatSignString(params) {
|
|
1754
2266
|
var strParam = '';
|
|
@@ -1768,14 +2280,14 @@ var NewCredential = /*#__PURE__*/function () {
|
|
|
1768
2280
|
}, {
|
|
1769
2281
|
key: "createQuery",
|
|
1770
2282
|
value: function () {
|
|
1771
|
-
var _createQuery = _asyncToGenerator(/*#__PURE__*/
|
|
2283
|
+
var _createQuery = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
1772
2284
|
var params, time, guid, getServerTime, _getServerTime, serverTime;
|
|
1773
|
-
return
|
|
2285
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
1774
2286
|
while (1) switch (_context2.prev = _context2.next) {
|
|
1775
2287
|
case 0:
|
|
1776
2288
|
_getServerTime = function _getServerTime3() {
|
|
1777
|
-
_getServerTime = _asyncToGenerator(/*#__PURE__*/
|
|
1778
|
-
return
|
|
2289
|
+
_getServerTime = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
2290
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
1779
2291
|
while (1) switch (_context.prev = _context.next) {
|
|
1780
2292
|
case 0:
|
|
1781
2293
|
return _context.abrupt("return", new Promise(function (resolve, reject) {
|
|
@@ -1850,9 +2362,9 @@ var NewCredential = /*#__PURE__*/function () {
|
|
|
1850
2362
|
}, {
|
|
1851
2363
|
key: "getSignStr",
|
|
1852
2364
|
value: function () {
|
|
1853
|
-
var _getSignStr = _asyncToGenerator(/*#__PURE__*/
|
|
2365
|
+
var _getSignStr = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee3() {
|
|
1854
2366
|
var queryStr;
|
|
1855
|
-
return
|
|
2367
|
+
return regenerator_default().wrap(function _callee3$(_context3) {
|
|
1856
2368
|
while (1) switch (_context3.prev = _context3.next) {
|
|
1857
2369
|
case 0:
|
|
1858
2370
|
_context3.next = 2;
|
|
@@ -1875,7 +2387,7 @@ var NewCredential = /*#__PURE__*/function () {
|
|
|
1875
2387
|
}();
|
|
1876
2388
|
var SpeechRecognizer = /*#__PURE__*/function () {
|
|
1877
2389
|
function SpeechRecognizer(params) {
|
|
1878
|
-
|
|
2390
|
+
_classCallCheck(this, SpeechRecognizer);
|
|
1879
2391
|
this.appid = params.appid || '';
|
|
1880
2392
|
this.secretid = params.secretid || '';
|
|
1881
2393
|
this.socket = null;
|
|
@@ -1887,7 +2399,7 @@ var SpeechRecognizer = /*#__PURE__*/function () {
|
|
|
1887
2399
|
this.isRecognizeComplete = false; // 当前是否识别结束
|
|
1888
2400
|
}
|
|
1889
2401
|
// 暂停识别,关闭连接
|
|
1890
|
-
return
|
|
2402
|
+
return _createClass(SpeechRecognizer, [{
|
|
1891
2403
|
key: "stop",
|
|
1892
2404
|
value: function stop() {
|
|
1893
2405
|
if (this.socket && this.socket.readyState === 1) {
|
|
@@ -1905,9 +2417,9 @@ var SpeechRecognizer = /*#__PURE__*/function () {
|
|
|
1905
2417
|
}, {
|
|
1906
2418
|
key: "getUrl",
|
|
1907
2419
|
value: function () {
|
|
1908
|
-
var _getUrl = _asyncToGenerator(/*#__PURE__*/
|
|
2420
|
+
var _getUrl = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee4() {
|
|
1909
2421
|
var asr, signStr;
|
|
1910
|
-
return
|
|
2422
|
+
return regenerator_default().wrap(function _callee4$(_context4) {
|
|
1911
2423
|
while (1) switch (_context4.prev = _context4.next) {
|
|
1912
2424
|
case 0:
|
|
1913
2425
|
// if (!this.appid || !this.secretid) {
|
|
@@ -1934,10 +2446,10 @@ var SpeechRecognizer = /*#__PURE__*/function () {
|
|
|
1934
2446
|
}, {
|
|
1935
2447
|
key: "start",
|
|
1936
2448
|
value: function () {
|
|
1937
|
-
var _start = _asyncToGenerator(/*#__PURE__*/
|
|
2449
|
+
var _start = _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee5() {
|
|
1938
2450
|
var _this = this;
|
|
1939
2451
|
var url, self, TIConfig, servicepath, headers, urlParams;
|
|
1940
|
-
return
|
|
2452
|
+
return regenerator_default().wrap(function _callee5$(_context5) {
|
|
1941
2453
|
while (1) switch (_context5.prev = _context5.next) {
|
|
1942
2454
|
case 0:
|
|
1943
2455
|
_context5.next = 2;
|
|
@@ -2108,17 +2620,13 @@ var SpeechRecognizer = /*#__PURE__*/function () {
|
|
|
2108
2620
|
|
|
2109
2621
|
window && (window.SpeechRecognizer = SpeechRecognizer);
|
|
2110
2622
|
;// ./package/SpeechRecognition/utils/speech/webaudiospeechrecognizer.js
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
function webaudiospeechrecognizer_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, webaudiospeechrecognizer_toPropertyKey(o.key), o); } }
|
|
2114
|
-
function webaudiospeechrecognizer_createClass(e, r, t) { return r && webaudiospeechrecognizer_defineProperties(e.prototype, r), t && webaudiospeechrecognizer_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
2115
|
-
function webaudiospeechrecognizer_toPropertyKey(t) { var i = webaudiospeechrecognizer_toPrimitive(t, "string"); return "symbol" == webaudiospeechrecognizer_typeof(i) ? i : i + ""; }
|
|
2116
|
-
function webaudiospeechrecognizer_toPrimitive(t, r) { if ("object" != webaudiospeechrecognizer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != webaudiospeechrecognizer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2623
|
+
|
|
2624
|
+
|
|
2117
2625
|
|
|
2118
2626
|
|
|
2119
2627
|
var WebAudioSpeechRecognizer = /*#__PURE__*/function () {
|
|
2120
2628
|
function WebAudioSpeechRecognizer(params) {
|
|
2121
|
-
|
|
2629
|
+
_classCallCheck(this, WebAudioSpeechRecognizer);
|
|
2122
2630
|
this.params = params;
|
|
2123
2631
|
this.recorder = null;
|
|
2124
2632
|
this.speechRecognizer = null;
|
|
@@ -2126,7 +2634,7 @@ var WebAudioSpeechRecognizer = /*#__PURE__*/function () {
|
|
|
2126
2634
|
this.audioData = [];
|
|
2127
2635
|
this.timer = null;
|
|
2128
2636
|
}
|
|
2129
|
-
return
|
|
2637
|
+
return _createClass(WebAudioSpeechRecognizer, [{
|
|
2130
2638
|
key: "start",
|
|
2131
2639
|
value: function start() {
|
|
2132
2640
|
var _this = this;
|
|
@@ -2464,13 +2972,8 @@ function bind(fn, thisArg) {
|
|
|
2464
2972
|
;// ./node_modules/axios/lib/utils.js
|
|
2465
2973
|
|
|
2466
2974
|
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
function utils_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return utils_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? utils_arrayLikeToArray(r, a) : void 0; } }
|
|
2470
|
-
function utils_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
2471
|
-
function utils_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
2472
|
-
function utils_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
2473
|
-
function utils_typeof(o) { "@babel/helpers - typeof"; return utils_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, utils_typeof(o); }
|
|
2975
|
+
|
|
2976
|
+
|
|
2474
2977
|
|
|
2475
2978
|
|
|
2476
2979
|
// utils is a library of generic helper functions non-specific to axios
|
|
@@ -2493,7 +2996,7 @@ var kindOfTest = function kindOfTest(type) {
|
|
|
2493
2996
|
};
|
|
2494
2997
|
var typeOfTest = function typeOfTest(type) {
|
|
2495
2998
|
return function (thing) {
|
|
2496
|
-
return
|
|
2999
|
+
return (0,esm_typeof/* default */.A)(thing) === type;
|
|
2497
3000
|
};
|
|
2498
3001
|
};
|
|
2499
3002
|
|
|
@@ -2586,7 +3089,7 @@ var isNumber = typeOfTest('number');
|
|
|
2586
3089
|
* @returns {boolean} True if value is an Object, otherwise false
|
|
2587
3090
|
*/
|
|
2588
3091
|
var isObject = function isObject(thing) {
|
|
2589
|
-
return thing !== null &&
|
|
3092
|
+
return thing !== null && (0,esm_typeof/* default */.A)(thing) === 'object';
|
|
2590
3093
|
};
|
|
2591
3094
|
|
|
2592
3095
|
/**
|
|
@@ -2684,7 +3187,7 @@ var isFormData = function isFormData(thing) {
|
|
|
2684
3187
|
*/
|
|
2685
3188
|
var isURLSearchParams = kindOfTest('URLSearchParams');
|
|
2686
3189
|
var _map = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest),
|
|
2687
|
-
_map2 =
|
|
3190
|
+
_map2 = _slicedToArray(_map, 4),
|
|
2688
3191
|
isReadableStream = _map2[0],
|
|
2689
3192
|
isRequest = _map2[1],
|
|
2690
3193
|
isResponse = _map2[2],
|
|
@@ -2728,7 +3231,7 @@ function forEach(obj, fn) {
|
|
|
2728
3231
|
var l;
|
|
2729
3232
|
|
|
2730
3233
|
// Force an array if not already something iterable
|
|
2731
|
-
if (
|
|
3234
|
+
if ((0,esm_typeof/* default */.A)(obj) !== 'object') {
|
|
2732
3235
|
/*eslint no-param-reassign:0*/
|
|
2733
3236
|
obj = [obj];
|
|
2734
3237
|
}
|
|
@@ -3280,7 +3783,7 @@ AxiosError.from = function (error, code, config, request, response, customProps)
|
|
|
3280
3783
|
;// ./node_modules/axios/lib/helpers/toFormData.js
|
|
3281
3784
|
|
|
3282
3785
|
|
|
3283
|
-
|
|
3786
|
+
|
|
3284
3787
|
|
|
3285
3788
|
|
|
3286
3789
|
// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored
|
|
@@ -3416,7 +3919,7 @@ function toFormData(obj, formData, options) {
|
|
|
3416
3919
|
*/
|
|
3417
3920
|
function defaultVisitor(value, key, path) {
|
|
3418
3921
|
var arr = value;
|
|
3419
|
-
if (value && !path &&
|
|
3922
|
+
if (value && !path && (0,esm_typeof/* default */.A)(value) === 'object') {
|
|
3420
3923
|
if (utils.endsWith(key, '{}')) {
|
|
3421
3924
|
// eslint-disable-next-line no-param-reassign
|
|
3422
3925
|
key = metaTokens ? key : key.slice(0, -2);
|
|
@@ -3576,16 +4079,12 @@ function buildURL(url, params, options) {
|
|
|
3576
4079
|
;// ./node_modules/axios/lib/core/InterceptorManager.js
|
|
3577
4080
|
|
|
3578
4081
|
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
function InterceptorManager_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, InterceptorManager_toPropertyKey(o.key), o); } }
|
|
3582
|
-
function InterceptorManager_createClass(e, r, t) { return r && InterceptorManager_defineProperties(e.prototype, r), t && InterceptorManager_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
3583
|
-
function InterceptorManager_toPropertyKey(t) { var i = InterceptorManager_toPrimitive(t, "string"); return "symbol" == InterceptorManager_typeof(i) ? i : i + ""; }
|
|
3584
|
-
function InterceptorManager_toPrimitive(t, r) { if ("object" != InterceptorManager_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != InterceptorManager_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4082
|
+
|
|
4083
|
+
|
|
3585
4084
|
|
|
3586
4085
|
var InterceptorManager = /*#__PURE__*/function () {
|
|
3587
4086
|
function InterceptorManager() {
|
|
3588
|
-
|
|
4087
|
+
_classCallCheck(this, InterceptorManager);
|
|
3589
4088
|
this.handlers = [];
|
|
3590
4089
|
}
|
|
3591
4090
|
|
|
@@ -3597,7 +4096,7 @@ var InterceptorManager = /*#__PURE__*/function () {
|
|
|
3597
4096
|
*
|
|
3598
4097
|
* @return {Number} An ID used to remove interceptor later
|
|
3599
4098
|
*/
|
|
3600
|
-
return
|
|
4099
|
+
return _createClass(InterceptorManager, [{
|
|
3601
4100
|
key: "use",
|
|
3602
4101
|
value: function use(fulfilled, rejected, options) {
|
|
3603
4102
|
this.handlers.push({
|
|
@@ -3694,9 +4193,9 @@ var InterceptorManager = /*#__PURE__*/function () {
|
|
|
3694
4193
|
protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
|
|
3695
4194
|
});
|
|
3696
4195
|
;// ./node_modules/axios/lib/platform/common/utils.js
|
|
3697
|
-
|
|
4196
|
+
|
|
3698
4197
|
var hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
3699
|
-
var _navigator = (typeof navigator === "undefined" ? "undefined" :
|
|
4198
|
+
var _navigator = (typeof navigator === "undefined" ? "undefined" : (0,esm_typeof/* default */.A)(navigator)) === 'object' && navigator || undefined;
|
|
3700
4199
|
|
|
3701
4200
|
/**
|
|
3702
4201
|
* Determine if we're running in a standard browser environment
|
|
@@ -3734,12 +4233,9 @@ var hasStandardBrowserWebWorkerEnv = function () {
|
|
|
3734
4233
|
var origin = hasBrowserEnv && window.location.href || 'http://localhost';
|
|
3735
4234
|
|
|
3736
4235
|
;// ./node_modules/axios/lib/platform/index.js
|
|
3737
|
-
|
|
4236
|
+
|
|
3738
4237
|
function platform_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3739
|
-
function platform_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? platform_ownKeys(Object(t), !0).forEach(function (r) {
|
|
3740
|
-
function platform_defineProperty(e, r, t) { return (r = platform_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
3741
|
-
function platform_toPropertyKey(t) { var i = platform_toPrimitive(t, "string"); return "symbol" == platform_typeof(i) ? i : i + ""; }
|
|
3742
|
-
function platform_toPrimitive(t, r) { if ("object" != platform_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != platform_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4238
|
+
function platform_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? platform_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : platform_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3743
4239
|
|
|
3744
4240
|
|
|
3745
4241
|
/* harmony default export */ var platform = (platform_objectSpread(platform_objectSpread({}, common_utils_namespaceObject), browser));
|
|
@@ -4019,23 +4515,13 @@ var ignoreDuplicateOf = utils.toObjectSet(['age', 'authorization', 'content-leng
|
|
|
4019
4515
|
;// ./node_modules/axios/lib/core/AxiosHeaders.js
|
|
4020
4516
|
|
|
4021
4517
|
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
function AxiosHeaders_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
4027
|
-
function AxiosHeaders_toConsumableArray(r) { return AxiosHeaders_arrayWithoutHoles(r) || AxiosHeaders_iterableToArray(r) || AxiosHeaders_unsupportedIterableToArray(r) || AxiosHeaders_nonIterableSpread(); }
|
|
4028
|
-
function AxiosHeaders_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4029
|
-
function AxiosHeaders_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
4030
|
-
function AxiosHeaders_arrayWithoutHoles(r) { if (Array.isArray(r)) return AxiosHeaders_arrayLikeToArray(r); }
|
|
4518
|
+
|
|
4519
|
+
|
|
4520
|
+
|
|
4521
|
+
|
|
4031
4522
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = AxiosHeaders_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
4032
4523
|
function AxiosHeaders_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return AxiosHeaders_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? AxiosHeaders_arrayLikeToArray(r, a) : void 0; } }
|
|
4033
4524
|
function AxiosHeaders_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4034
|
-
function AxiosHeaders_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
4035
|
-
function AxiosHeaders_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AxiosHeaders_toPropertyKey(o.key), o); } }
|
|
4036
|
-
function AxiosHeaders_createClass(e, r, t) { return r && AxiosHeaders_defineProperties(e.prototype, r), t && AxiosHeaders_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
4037
|
-
function AxiosHeaders_toPropertyKey(t) { var i = AxiosHeaders_toPrimitive(t, "string"); return "symbol" == AxiosHeaders_typeof(i) ? i : i + ""; }
|
|
4038
|
-
function AxiosHeaders_toPrimitive(t, r) { if ("object" != AxiosHeaders_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != AxiosHeaders_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4039
4525
|
|
|
4040
4526
|
|
|
4041
4527
|
var $internals = Symbol('internals');
|
|
@@ -4093,10 +4579,10 @@ function buildAccessors(obj, header) {
|
|
|
4093
4579
|
}
|
|
4094
4580
|
var AxiosHeaders = /*#__PURE__*/function () {
|
|
4095
4581
|
function AxiosHeaders(headers) {
|
|
4096
|
-
|
|
4582
|
+
_classCallCheck(this, AxiosHeaders);
|
|
4097
4583
|
headers && this.set(headers);
|
|
4098
4584
|
}
|
|
4099
|
-
return
|
|
4585
|
+
return _createClass(AxiosHeaders, [{
|
|
4100
4586
|
key: "set",
|
|
4101
4587
|
value: function set(header, valueOrRewrite, rewrite) {
|
|
4102
4588
|
var self = this;
|
|
@@ -4131,7 +4617,7 @@ var AxiosHeaders = /*#__PURE__*/function () {
|
|
|
4131
4617
|
if (!utils.isArray(entry)) {
|
|
4132
4618
|
throw TypeError('Object iterator must return a key-value pair');
|
|
4133
4619
|
}
|
|
4134
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils.isArray(dest) ? [].concat(
|
|
4620
|
+
obj[key = entry[0]] = (dest = obj[key]) ? utils.isArray(dest) ? [].concat(toConsumableArray_toConsumableArray(dest), [entry[1]]) : [dest, entry[1]] : entry[1];
|
|
4135
4621
|
}
|
|
4136
4622
|
} catch (err) {
|
|
4137
4623
|
_iterator.e(err);
|
|
@@ -4263,7 +4749,7 @@ var AxiosHeaders = /*#__PURE__*/function () {
|
|
|
4263
4749
|
key: "toString",
|
|
4264
4750
|
value: function toString() {
|
|
4265
4751
|
return Object.entries(this.toJSON()).map(function (_ref) {
|
|
4266
|
-
var _ref2 =
|
|
4752
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
4267
4753
|
header = _ref2[0],
|
|
4268
4754
|
value = _ref2[1];
|
|
4269
4755
|
return header + ': ' + value;
|
|
@@ -4508,10 +4994,7 @@ function throttle(fn, freq) {
|
|
|
4508
4994
|
}
|
|
4509
4995
|
/* harmony default export */ var helpers_throttle = (throttle);
|
|
4510
4996
|
;// ./node_modules/axios/lib/helpers/progressEventReducer.js
|
|
4511
|
-
|
|
4512
|
-
function progressEventReducer_defineProperty(e, r, t) { return (r = progressEventReducer_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4513
|
-
function progressEventReducer_toPropertyKey(t) { var i = progressEventReducer_toPrimitive(t, "string"); return "symbol" == progressEventReducer_typeof(i) ? i : i + ""; }
|
|
4514
|
-
function progressEventReducer_toPrimitive(t, r) { if ("object" != progressEventReducer_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != progressEventReducer_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4997
|
+
|
|
4515
4998
|
|
|
4516
4999
|
|
|
4517
5000
|
|
|
@@ -4526,7 +5009,7 @@ var progressEventReducer = function progressEventReducer(listener, isDownloadStr
|
|
|
4526
5009
|
var rate = _speedometer(progressBytes);
|
|
4527
5010
|
var inRange = loaded <= total;
|
|
4528
5011
|
bytesNotified = loaded;
|
|
4529
|
-
var data =
|
|
5012
|
+
var data = _defineProperty({
|
|
4530
5013
|
loaded: loaded,
|
|
4531
5014
|
total: total,
|
|
4532
5015
|
progress: total ? loaded / total : undefined,
|
|
@@ -4559,6 +5042,15 @@ var asyncDecorator = function asyncDecorator(fn) {
|
|
|
4559
5042
|
});
|
|
4560
5043
|
};
|
|
4561
5044
|
};
|
|
5045
|
+
;// ./node_modules/@babel/runtime/helpers/esm/toArray.js
|
|
5046
|
+
|
|
5047
|
+
|
|
5048
|
+
|
|
5049
|
+
|
|
5050
|
+
function _toArray(r) {
|
|
5051
|
+
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
5052
|
+
}
|
|
5053
|
+
|
|
4562
5054
|
;// ./node_modules/axios/lib/helpers/isURLSameOrigin.js
|
|
4563
5055
|
|
|
4564
5056
|
/* harmony default export */ var isURLSameOrigin = (platform.hasStandardBrowserEnv ? function (origin, isMSIE) {
|
|
@@ -4655,12 +5147,9 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
|
4655
5147
|
;// ./node_modules/axios/lib/core/mergeConfig.js
|
|
4656
5148
|
|
|
4657
5149
|
|
|
4658
|
-
|
|
5150
|
+
|
|
4659
5151
|
function mergeConfig_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4660
|
-
function mergeConfig_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? mergeConfig_ownKeys(Object(t), !0).forEach(function (r) {
|
|
4661
|
-
function mergeConfig_defineProperty(e, r, t) { return (r = mergeConfig_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4662
|
-
function mergeConfig_toPropertyKey(t) { var i = mergeConfig_toPrimitive(t, "string"); return "symbol" == mergeConfig_typeof(i) ? i : i + ""; }
|
|
4663
|
-
function mergeConfig_toPrimitive(t, r) { if ("object" != mergeConfig_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != mergeConfig_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5152
|
+
function mergeConfig_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? mergeConfig_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : mergeConfig_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4664
5153
|
|
|
4665
5154
|
|
|
4666
5155
|
var headersToObject = function headersToObject(thing) {
|
|
@@ -4767,15 +5256,8 @@ function mergeConfig(config1, config2) {
|
|
|
4767
5256
|
return config;
|
|
4768
5257
|
}
|
|
4769
5258
|
;// ./node_modules/axios/lib/helpers/resolveConfig.js
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
function resolveConfig_arrayWithoutHoles(r) { if (Array.isArray(r)) return resolveConfig_arrayLikeToArray(r); }
|
|
4773
|
-
function _toArray(r) { return resolveConfig_arrayWithHoles(r) || resolveConfig_iterableToArray(r) || resolveConfig_unsupportedIterableToArray(r) || resolveConfig_nonIterableRest(); }
|
|
4774
|
-
function resolveConfig_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4775
|
-
function resolveConfig_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return resolveConfig_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? resolveConfig_arrayLikeToArray(r, a) : void 0; } }
|
|
4776
|
-
function resolveConfig_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4777
|
-
function resolveConfig_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
4778
|
-
function resolveConfig_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
5259
|
+
|
|
5260
|
+
|
|
4779
5261
|
|
|
4780
5262
|
|
|
4781
5263
|
|
|
@@ -4811,7 +5293,7 @@ function resolveConfig_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
4811
5293
|
_ref2 = _toArray(_ref),
|
|
4812
5294
|
type = _ref2[0],
|
|
4813
5295
|
tokens = _ref2.slice(1);
|
|
4814
|
-
headers.setContentType([type || 'multipart/form-data'].concat(
|
|
5296
|
+
headers.setContentType([type || 'multipart/form-data'].concat(toConsumableArray_toConsumableArray(tokens)).join('; '));
|
|
4815
5297
|
}
|
|
4816
5298
|
}
|
|
4817
5299
|
|
|
@@ -4832,12 +5314,7 @@ function resolveConfig_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
4832
5314
|
return newConfig;
|
|
4833
5315
|
});
|
|
4834
5316
|
;// ./node_modules/axios/lib/adapters/xhr.js
|
|
4835
|
-
|
|
4836
|
-
function xhr_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4837
|
-
function xhr_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return xhr_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? xhr_arrayLikeToArray(r, a) : void 0; } }
|
|
4838
|
-
function xhr_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4839
|
-
function xhr_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
4840
|
-
function xhr_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
5317
|
+
|
|
4841
5318
|
|
|
4842
5319
|
|
|
4843
5320
|
|
|
@@ -4978,7 +5455,7 @@ var isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
4978
5455
|
// Handle progress if needed
|
|
4979
5456
|
if (onDownloadProgress) {
|
|
4980
5457
|
var _progressEventReducer = progressEventReducer(onDownloadProgress, true);
|
|
4981
|
-
var _progressEventReducer2 =
|
|
5458
|
+
var _progressEventReducer2 = _slicedToArray(_progressEventReducer, 2);
|
|
4982
5459
|
downloadThrottled = _progressEventReducer2[0];
|
|
4983
5460
|
flushDownload = _progressEventReducer2[1];
|
|
4984
5461
|
request.addEventListener('progress', downloadThrottled);
|
|
@@ -4987,7 +5464,7 @@ var isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
|
4987
5464
|
// Not all browsers support upload events
|
|
4988
5465
|
if (onUploadProgress && request.upload) {
|
|
4989
5466
|
var _progressEventReducer3 = progressEventReducer(onUploadProgress);
|
|
4990
|
-
var _progressEventReducer4 =
|
|
5467
|
+
var _progressEventReducer4 = _slicedToArray(_progressEventReducer3, 2);
|
|
4991
5468
|
uploadThrottled = _progressEventReducer4[0];
|
|
4992
5469
|
flushUpload = _progressEventReducer4[1];
|
|
4993
5470
|
request.upload.addEventListener('progress', uploadThrottled);
|
|
@@ -5062,22 +5539,123 @@ var composeSignals = function composeSignals(signals, timeout) {
|
|
|
5062
5539
|
}
|
|
5063
5540
|
};
|
|
5064
5541
|
/* harmony default export */ var helpers_composeSignals = (composeSignals);
|
|
5542
|
+
;// ./node_modules/@babel/runtime/helpers/esm/OverloadYield.js
|
|
5543
|
+
function _OverloadYield(e, d) {
|
|
5544
|
+
this.v = e, this.k = d;
|
|
5545
|
+
}
|
|
5546
|
+
|
|
5547
|
+
;// ./node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js
|
|
5548
|
+
|
|
5549
|
+
function _wrapAsyncGenerator(e) {
|
|
5550
|
+
return function () {
|
|
5551
|
+
return new AsyncGenerator(e.apply(this, arguments));
|
|
5552
|
+
};
|
|
5553
|
+
}
|
|
5554
|
+
function AsyncGenerator(e) {
|
|
5555
|
+
var r, t;
|
|
5556
|
+
function resume(r, t) {
|
|
5557
|
+
try {
|
|
5558
|
+
var n = e[r](t),
|
|
5559
|
+
o = n.value,
|
|
5560
|
+
u = o instanceof _OverloadYield;
|
|
5561
|
+
Promise.resolve(u ? o.v : o).then(function (t) {
|
|
5562
|
+
if (u) {
|
|
5563
|
+
var i = "return" === r ? "return" : "next";
|
|
5564
|
+
if (!o.k || t.done) return resume(i, t);
|
|
5565
|
+
t = e[i](t).value;
|
|
5566
|
+
}
|
|
5567
|
+
settle(n.done ? "return" : "normal", t);
|
|
5568
|
+
}, function (e) {
|
|
5569
|
+
resume("throw", e);
|
|
5570
|
+
});
|
|
5571
|
+
} catch (e) {
|
|
5572
|
+
settle("throw", e);
|
|
5573
|
+
}
|
|
5574
|
+
}
|
|
5575
|
+
function settle(e, n) {
|
|
5576
|
+
switch (e) {
|
|
5577
|
+
case "return":
|
|
5578
|
+
r.resolve({
|
|
5579
|
+
value: n,
|
|
5580
|
+
done: !0
|
|
5581
|
+
});
|
|
5582
|
+
break;
|
|
5583
|
+
case "throw":
|
|
5584
|
+
r.reject(n);
|
|
5585
|
+
break;
|
|
5586
|
+
default:
|
|
5587
|
+
r.resolve({
|
|
5588
|
+
value: n,
|
|
5589
|
+
done: !1
|
|
5590
|
+
});
|
|
5591
|
+
}
|
|
5592
|
+
(r = r.next) ? resume(r.key, r.arg) : t = null;
|
|
5593
|
+
}
|
|
5594
|
+
this._invoke = function (e, n) {
|
|
5595
|
+
return new Promise(function (o, u) {
|
|
5596
|
+
var i = {
|
|
5597
|
+
key: e,
|
|
5598
|
+
arg: n,
|
|
5599
|
+
resolve: o,
|
|
5600
|
+
reject: u,
|
|
5601
|
+
next: null
|
|
5602
|
+
};
|
|
5603
|
+
t ? t = t.next = i : (r = t = i, resume(e, n));
|
|
5604
|
+
});
|
|
5605
|
+
}, "function" != typeof e["return"] && (this["return"] = void 0);
|
|
5606
|
+
}
|
|
5607
|
+
AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () {
|
|
5608
|
+
return this;
|
|
5609
|
+
}, AsyncGenerator.prototype.next = function (e) {
|
|
5610
|
+
return this._invoke("next", e);
|
|
5611
|
+
}, AsyncGenerator.prototype["throw"] = function (e) {
|
|
5612
|
+
return this._invoke("throw", e);
|
|
5613
|
+
}, AsyncGenerator.prototype["return"] = function (e) {
|
|
5614
|
+
return this._invoke("return", e);
|
|
5615
|
+
};
|
|
5616
|
+
|
|
5617
|
+
;// ./node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js
|
|
5618
|
+
|
|
5619
|
+
function _awaitAsyncGenerator(e) {
|
|
5620
|
+
return new _OverloadYield(e, 0);
|
|
5621
|
+
}
|
|
5622
|
+
|
|
5623
|
+
;// ./node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js
|
|
5624
|
+
|
|
5625
|
+
function _asyncGeneratorDelegate(t) {
|
|
5626
|
+
var e = {},
|
|
5627
|
+
n = !1;
|
|
5628
|
+
function pump(e, r) {
|
|
5629
|
+
return n = !0, r = new Promise(function (n) {
|
|
5630
|
+
n(t[e](r));
|
|
5631
|
+
}), {
|
|
5632
|
+
done: !1,
|
|
5633
|
+
value: new _OverloadYield(r, 1)
|
|
5634
|
+
};
|
|
5635
|
+
}
|
|
5636
|
+
return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () {
|
|
5637
|
+
return this;
|
|
5638
|
+
}, e.next = function (t) {
|
|
5639
|
+
return n ? (n = !1, t) : pump("next", t);
|
|
5640
|
+
}, "function" == typeof t["throw"] && (e["throw"] = function (t) {
|
|
5641
|
+
if (n) throw n = !1, t;
|
|
5642
|
+
return pump("throw", t);
|
|
5643
|
+
}), "function" == typeof t["return"] && (e["return"] = function (t) {
|
|
5644
|
+
return n ? (n = !1, t) : pump("return", t);
|
|
5645
|
+
}), e;
|
|
5646
|
+
}
|
|
5647
|
+
|
|
5065
5648
|
;// ./node_modules/axios/lib/helpers/trackStream.js
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
function AsyncGenerator(e) { var r, t; function resume(r, t) { try { var n = e[r](t), o = n.value, u = o instanceof _OverloadYield; Promise.resolve(u ? o.v : o).then(function (t) { if (u) { var i = "return" === r ? "return" : "next"; if (!o.k || t.done) return resume(i, t); t = e[i](t).value; } settle(n.done ? "return" : "normal", t); }, function (e) { resume("throw", e); }); } catch (e) { settle("throw", e); } } function settle(e, n) { switch (e) { case "return": r.resolve({ value: n, done: !0 }); break; case "throw": r.reject(n); break; default: r.resolve({ value: n, done: !1 }); } (r = r.next) ? resume(r.key, r.arg) : t = null; } this._invoke = function (e, n) { return new Promise(function (o, u) { var i = { key: e, arg: n, resolve: o, reject: u, next: null }; t ? t = t.next = i : (r = t = i, resume(e, n)); }); }, "function" != typeof e.return && (this.return = void 0); }
|
|
5072
|
-
AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { return this; }, AsyncGenerator.prototype.next = function (e) { return this._invoke("next", e); }, AsyncGenerator.prototype.throw = function (e) { return this._invoke("throw", e); }, AsyncGenerator.prototype.return = function (e) { return this._invoke("return", e); };
|
|
5073
|
-
function _awaitAsyncGenerator(e) { return new _OverloadYield(e, 0); }
|
|
5074
|
-
function _asyncGeneratorDelegate(t) { var e = {}, n = !1; function pump(e, r) { return n = !0, r = new Promise(function (n) { n(t[e](r)); }), { done: !1, value: new _OverloadYield(r, 1) }; } return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { return this; }, e.next = function (t) { return n ? (n = !1, t) : pump("next", t); }, "function" == typeof t.throw && (e.throw = function (t) { if (n) throw n = !1, t; return pump("throw", t); }), "function" == typeof t.return && (e.return = function (t) { return n ? (n = !1, t) : pump("return", t); }), e; }
|
|
5075
|
-
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
5649
|
+
|
|
5650
|
+
|
|
5651
|
+
|
|
5652
|
+
|
|
5653
|
+
|
|
5076
5654
|
function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
|
|
5077
5655
|
function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, return: function _return(r) { var n = this.s.return; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, throw: function _throw(r) { var n = this.s.return; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
|
|
5078
|
-
var streamChunk = /*#__PURE__*/
|
|
5656
|
+
var streamChunk = /*#__PURE__*/regenerator.mark(function streamChunk(chunk, chunkSize) {
|
|
5079
5657
|
var len, pos, end;
|
|
5080
|
-
return
|
|
5658
|
+
return regenerator.wrap(function streamChunk$(_context) {
|
|
5081
5659
|
while (1) switch (_context.prev = _context.next) {
|
|
5082
5660
|
case 0:
|
|
5083
5661
|
len = chunk.byteLength;
|
|
@@ -5110,9 +5688,9 @@ var streamChunk = /*#__PURE__*/trackStream_regeneratorRuntime().mark(function st
|
|
|
5110
5688
|
}, streamChunk);
|
|
5111
5689
|
});
|
|
5112
5690
|
var readBytes = /*#__PURE__*/function () {
|
|
5113
|
-
var _ref = _wrapAsyncGenerator(/*#__PURE__*/
|
|
5691
|
+
var _ref = _wrapAsyncGenerator(/*#__PURE__*/regenerator.mark(function _callee(iterable, chunkSize) {
|
|
5114
5692
|
var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk;
|
|
5115
|
-
return
|
|
5693
|
+
return regenerator.wrap(function _callee$(_context2) {
|
|
5116
5694
|
while (1) switch (_context2.prev = _context2.next) {
|
|
5117
5695
|
case 0:
|
|
5118
5696
|
_iteratorAbruptCompletion = false;
|
|
@@ -5172,9 +5750,9 @@ var readBytes = /*#__PURE__*/function () {
|
|
|
5172
5750
|
};
|
|
5173
5751
|
}();
|
|
5174
5752
|
var readStream = /*#__PURE__*/function () {
|
|
5175
|
-
var _ref2 = _wrapAsyncGenerator(/*#__PURE__*/
|
|
5753
|
+
var _ref2 = _wrapAsyncGenerator(/*#__PURE__*/regenerator.mark(function _callee2(stream) {
|
|
5176
5754
|
var reader, _yield$_awaitAsyncGen, done, value;
|
|
5177
|
-
return
|
|
5755
|
+
return regenerator.wrap(function _callee2$(_context3) {
|
|
5178
5756
|
while (1) switch (_context3.prev = _context3.next) {
|
|
5179
5757
|
case 0:
|
|
5180
5758
|
if (!stream[Symbol.asyncIterator]) {
|
|
@@ -5233,9 +5811,9 @@ var trackStream = function trackStream(stream, chunkSize, onProgress, onFinish)
|
|
|
5233
5811
|
};
|
|
5234
5812
|
return new ReadableStream({
|
|
5235
5813
|
pull: function pull(controller) {
|
|
5236
|
-
return
|
|
5814
|
+
return _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee3() {
|
|
5237
5815
|
var _yield$iterator$next, _done, value, len, loadedBytes;
|
|
5238
|
-
return
|
|
5816
|
+
return regenerator.wrap(function _callee3$(_context4) {
|
|
5239
5817
|
while (1) switch (_context4.prev = _context4.next) {
|
|
5240
5818
|
case 0:
|
|
5241
5819
|
_context4.prev = 0;
|
|
@@ -5282,21 +5860,12 @@ var trackStream = function trackStream(stream, chunkSize, onProgress, onFinish)
|
|
|
5282
5860
|
});
|
|
5283
5861
|
};
|
|
5284
5862
|
;// ./node_modules/axios/lib/adapters/fetch.js
|
|
5285
|
-
|
|
5863
|
+
|
|
5864
|
+
|
|
5865
|
+
|
|
5286
5866
|
function fetch_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5287
|
-
function fetch_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? fetch_ownKeys(Object(t), !0).forEach(function (r) {
|
|
5288
|
-
|
|
5289
|
-
function fetch_toPropertyKey(t) { var i = fetch_toPrimitive(t, "string"); return "symbol" == fetch_typeof(i) ? i : i + ""; }
|
|
5290
|
-
function fetch_toPrimitive(t, r) { if ("object" != fetch_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != fetch_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5291
|
-
function fetch_slicedToArray(r, e) { return fetch_arrayWithHoles(r) || fetch_iterableToArrayLimit(r, e) || fetch_unsupportedIterableToArray(r, e) || fetch_nonIterableRest(); }
|
|
5292
|
-
function fetch_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5293
|
-
function fetch_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return fetch_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? fetch_arrayLikeToArray(r, a) : void 0; } }
|
|
5294
|
-
function fetch_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5295
|
-
function fetch_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
5296
|
-
function fetch_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
5297
|
-
function fetch_regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ fetch_regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == fetch_typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(fetch_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), c(GeneratorFunctionPrototype, u, GeneratorFunction.displayName = "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, catch: function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
|
|
5298
|
-
function fetch_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
5299
|
-
function fetch_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { fetch_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { fetch_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
5867
|
+
function fetch_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? fetch_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : fetch_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5868
|
+
|
|
5300
5869
|
|
|
5301
5870
|
|
|
5302
5871
|
|
|
@@ -5315,8 +5884,8 @@ var encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? functi
|
|
|
5315
5884
|
return encoder.encode(str);
|
|
5316
5885
|
};
|
|
5317
5886
|
}(new TextEncoder()) : (/*#__PURE__*/function () {
|
|
5318
|
-
var _ref =
|
|
5319
|
-
return
|
|
5887
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee(str) {
|
|
5888
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
5320
5889
|
while (1) switch (_context.prev = _context.next) {
|
|
5321
5890
|
case 0:
|
|
5322
5891
|
_context.t0 = Uint8Array;
|
|
@@ -5376,9 +5945,9 @@ isFetchSupported && function (res) {
|
|
|
5376
5945
|
});
|
|
5377
5946
|
}(new Response());
|
|
5378
5947
|
var getBodyLength = /*#__PURE__*/function () {
|
|
5379
|
-
var _ref2 =
|
|
5948
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee2(body) {
|
|
5380
5949
|
var _request;
|
|
5381
|
-
return
|
|
5950
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
5382
5951
|
while (1) switch (_context2.prev = _context2.next) {
|
|
5383
5952
|
case 0:
|
|
5384
5953
|
if (!(body == null)) {
|
|
@@ -5434,9 +6003,9 @@ var getBodyLength = /*#__PURE__*/function () {
|
|
|
5434
6003
|
};
|
|
5435
6004
|
}();
|
|
5436
6005
|
var resolveBodyLength = /*#__PURE__*/function () {
|
|
5437
|
-
var _ref3 =
|
|
6006
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee3(headers, body) {
|
|
5438
6007
|
var length;
|
|
5439
|
-
return
|
|
6008
|
+
return regenerator.wrap(function _callee3$(_context3) {
|
|
5440
6009
|
while (1) switch (_context3.prev = _context3.next) {
|
|
5441
6010
|
case 0:
|
|
5442
6011
|
length = utils.toFiniteNumber(headers.getContentLength());
|
|
@@ -5452,9 +6021,9 @@ var resolveBodyLength = /*#__PURE__*/function () {
|
|
|
5452
6021
|
};
|
|
5453
6022
|
}();
|
|
5454
6023
|
/* harmony default export */ var adapters_fetch = (isFetchSupported && (/*#__PURE__*/function () {
|
|
5455
|
-
var _ref4 =
|
|
6024
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee4(config) {
|
|
5456
6025
|
var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, composedSignal, request, unsubscribe, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, isCredentialsSupported, response, isStreamResponse, options, responseContentLength, _ref5, _ref6, _onProgress, _flush, responseData;
|
|
5457
|
-
return
|
|
6026
|
+
return regenerator.wrap(function _callee4$(_context4) {
|
|
5458
6027
|
while (1) switch (_context4.prev = _context4.next) {
|
|
5459
6028
|
case 0:
|
|
5460
6029
|
_resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions;
|
|
@@ -5488,7 +6057,7 @@ var resolveBodyLength = /*#__PURE__*/function () {
|
|
|
5488
6057
|
headers.setContentType(contentTypeHeader);
|
|
5489
6058
|
}
|
|
5490
6059
|
if (_request.body) {
|
|
5491
|
-
_progressEventDecorat = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))), _progressEventDecorat2 =
|
|
6060
|
+
_progressEventDecorat = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))), _progressEventDecorat2 = _slicedToArray(_progressEventDecorat, 2), onProgress = _progressEventDecorat2[0], flush = _progressEventDecorat2[1];
|
|
5492
6061
|
data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
5493
6062
|
}
|
|
5494
6063
|
case 15:
|
|
@@ -5518,7 +6087,7 @@ var resolveBodyLength = /*#__PURE__*/function () {
|
|
|
5518
6087
|
options[prop] = response[prop];
|
|
5519
6088
|
});
|
|
5520
6089
|
responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));
|
|
5521
|
-
_ref5 = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [], _ref6 =
|
|
6090
|
+
_ref5 = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [], _ref6 = _slicedToArray(_ref5, 2), _onProgress = _ref6[0], _flush = _ref6[1];
|
|
5522
6091
|
response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, _onProgress, function () {
|
|
5523
6092
|
_flush && _flush();
|
|
5524
6093
|
unsubscribe && unsubscribe();
|
|
@@ -5567,12 +6136,7 @@ var resolveBodyLength = /*#__PURE__*/function () {
|
|
|
5567
6136
|
};
|
|
5568
6137
|
}()));
|
|
5569
6138
|
;// ./node_modules/axios/lib/adapters/adapters.js
|
|
5570
|
-
|
|
5571
|
-
function adapters_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5572
|
-
function adapters_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return adapters_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? adapters_arrayLikeToArray(r, a) : void 0; } }
|
|
5573
|
-
function adapters_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5574
|
-
function adapters_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
5575
|
-
function adapters_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
6139
|
+
|
|
5576
6140
|
|
|
5577
6141
|
|
|
5578
6142
|
|
|
@@ -5628,7 +6192,7 @@ var isResolvedHandle = function isResolvedHandle(adapter) {
|
|
|
5628
6192
|
}
|
|
5629
6193
|
if (!adapter) {
|
|
5630
6194
|
var reasons = Object.entries(rejectedReasons).map(function (_ref) {
|
|
5631
|
-
var _ref2 =
|
|
6195
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
5632
6196
|
id = _ref2[0],
|
|
5633
6197
|
state = _ref2[1];
|
|
5634
6198
|
return "adapter ".concat(id, " ") + (state === false ? 'is not supported by the environment' : 'is not available in the build');
|
|
@@ -5708,7 +6272,7 @@ var VERSION = "1.9.0";
|
|
|
5708
6272
|
;// ./node_modules/axios/lib/helpers/validator.js
|
|
5709
6273
|
|
|
5710
6274
|
|
|
5711
|
-
|
|
6275
|
+
|
|
5712
6276
|
|
|
5713
6277
|
|
|
5714
6278
|
var validators = {};
|
|
@@ -5716,7 +6280,7 @@ var validators = {};
|
|
|
5716
6280
|
// eslint-disable-next-line func-names
|
|
5717
6281
|
['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (type, i) {
|
|
5718
6282
|
validators[type] = function validator(thing) {
|
|
5719
|
-
return
|
|
6283
|
+
return (0,esm_typeof/* default */.A)(thing) === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
|
|
5720
6284
|
};
|
|
5721
6285
|
});
|
|
5722
6286
|
var deprecatedWarnings = {};
|
|
@@ -5767,7 +6331,7 @@ validators.spelling = function spelling(correctSpelling) {
|
|
|
5767
6331
|
*/
|
|
5768
6332
|
|
|
5769
6333
|
function assertOptions(options, schema, allowUnknown) {
|
|
5770
|
-
if (
|
|
6334
|
+
if ((0,esm_typeof/* default */.A)(options) !== 'object') {
|
|
5771
6335
|
throw new core_AxiosError('options must be an object', core_AxiosError.ERR_BAD_OPTION_VALUE);
|
|
5772
6336
|
}
|
|
5773
6337
|
var keys = Object.keys(options);
|
|
@@ -5795,15 +6359,10 @@ function assertOptions(options, schema, allowUnknown) {
|
|
|
5795
6359
|
;// ./node_modules/axios/lib/core/Axios.js
|
|
5796
6360
|
|
|
5797
6361
|
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
function Axios_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
5803
|
-
function Axios_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, Axios_toPropertyKey(o.key), o); } }
|
|
5804
|
-
function Axios_createClass(e, r, t) { return r && Axios_defineProperties(e.prototype, r), t && Axios_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5805
|
-
function Axios_toPropertyKey(t) { var i = Axios_toPrimitive(t, "string"); return "symbol" == Axios_typeof(i) ? i : i + ""; }
|
|
5806
|
-
function Axios_toPrimitive(t, r) { if ("object" != Axios_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != Axios_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6362
|
+
|
|
6363
|
+
|
|
6364
|
+
|
|
6365
|
+
|
|
5807
6366
|
|
|
5808
6367
|
|
|
5809
6368
|
|
|
@@ -5823,7 +6382,7 @@ var Axios_validators = validator.validators;
|
|
|
5823
6382
|
*/
|
|
5824
6383
|
var Axios = /*#__PURE__*/function () {
|
|
5825
6384
|
function Axios(instanceConfig) {
|
|
5826
|
-
|
|
6385
|
+
_classCallCheck(this, Axios);
|
|
5827
6386
|
this.defaults = instanceConfig || {};
|
|
5828
6387
|
this.interceptors = {
|
|
5829
6388
|
request: new core_InterceptorManager(),
|
|
@@ -5839,12 +6398,12 @@ var Axios = /*#__PURE__*/function () {
|
|
|
5839
6398
|
*
|
|
5840
6399
|
* @returns {Promise} The Promise to be fulfilled
|
|
5841
6400
|
*/
|
|
5842
|
-
return
|
|
6401
|
+
return _createClass(Axios, [{
|
|
5843
6402
|
key: "request",
|
|
5844
6403
|
value: (function () {
|
|
5845
|
-
var _request2 =
|
|
6404
|
+
var _request2 = _asyncToGenerator(/*#__PURE__*/regenerator.mark(function _callee(configOrUrl, config) {
|
|
5846
6405
|
var dummy, stack;
|
|
5847
|
-
return
|
|
6406
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
5848
6407
|
while (1) switch (_context.prev = _context.next) {
|
|
5849
6408
|
case 0:
|
|
5850
6409
|
_context.prev = 0;
|
|
@@ -6037,12 +6596,8 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
6037
6596
|
;// ./node_modules/axios/lib/cancel/CancelToken.js
|
|
6038
6597
|
|
|
6039
6598
|
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
function CancelToken_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, CancelToken_toPropertyKey(o.key), o); } }
|
|
6043
|
-
function CancelToken_createClass(e, r, t) { return r && CancelToken_defineProperties(e.prototype, r), t && CancelToken_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
6044
|
-
function CancelToken_toPropertyKey(t) { var i = CancelToken_toPrimitive(t, "string"); return "symbol" == CancelToken_typeof(i) ? i : i + ""; }
|
|
6045
|
-
function CancelToken_toPrimitive(t, r) { if ("object" != CancelToken_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != CancelToken_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6599
|
+
|
|
6600
|
+
|
|
6046
6601
|
|
|
6047
6602
|
|
|
6048
6603
|
/**
|
|
@@ -6054,7 +6609,7 @@ function CancelToken_toPrimitive(t, r) { if ("object" != CancelToken_typeof(t) |
|
|
|
6054
6609
|
*/
|
|
6055
6610
|
var CancelToken = /*#__PURE__*/function () {
|
|
6056
6611
|
function CancelToken(executor) {
|
|
6057
|
-
|
|
6612
|
+
_classCallCheck(this, CancelToken);
|
|
6058
6613
|
if (typeof executor !== 'function') {
|
|
6059
6614
|
throw new TypeError('executor must be a function.');
|
|
6060
6615
|
}
|
|
@@ -6100,7 +6655,7 @@ var CancelToken = /*#__PURE__*/function () {
|
|
|
6100
6655
|
/**
|
|
6101
6656
|
* Throws a `CanceledError` if cancellation has been requested.
|
|
6102
6657
|
*/
|
|
6103
|
-
return
|
|
6658
|
+
return _createClass(CancelToken, [{
|
|
6104
6659
|
key: "throwIfRequested",
|
|
6105
6660
|
value: function throwIfRequested() {
|
|
6106
6661
|
if (this.reason) {
|
|
@@ -6218,12 +6773,7 @@ function isAxiosError(payload) {
|
|
|
6218
6773
|
return utils.isObject(payload) && payload.isAxiosError === true;
|
|
6219
6774
|
}
|
|
6220
6775
|
;// ./node_modules/axios/lib/helpers/HttpStatusCode.js
|
|
6221
|
-
|
|
6222
|
-
function HttpStatusCode_nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6223
|
-
function HttpStatusCode_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return HttpStatusCode_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? HttpStatusCode_arrayLikeToArray(r, a) : void 0; } }
|
|
6224
|
-
function HttpStatusCode_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6225
|
-
function HttpStatusCode_iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6226
|
-
function HttpStatusCode_arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
6776
|
+
|
|
6227
6777
|
var HttpStatusCode = {
|
|
6228
6778
|
Continue: 100,
|
|
6229
6779
|
SwitchingProtocols: 101,
|
|
@@ -6290,7 +6840,7 @@ var HttpStatusCode = {
|
|
|
6290
6840
|
NetworkAuthenticationRequired: 511
|
|
6291
6841
|
};
|
|
6292
6842
|
Object.entries(HttpStatusCode).forEach(function (_ref) {
|
|
6293
|
-
var _ref2 =
|
|
6843
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
6294
6844
|
key = _ref2[0],
|
|
6295
6845
|
value = _ref2[1];
|
|
6296
6846
|
HttpStatusCode[value] = key;
|
|
@@ -6417,18 +6967,14 @@ request.interceptors.response.use(function (resp) {
|
|
|
6417
6967
|
});
|
|
6418
6968
|
/* harmony default export */ var gridRequest = (request);
|
|
6419
6969
|
;// ./package/SpeechRecognition/api/Tx.js
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
function Tx_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, Tx_toPropertyKey(o.key), o); } }
|
|
6423
|
-
function Tx_createClass(e, r, t) { return r && Tx_defineProperties(e.prototype, r), t && Tx_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
6424
|
-
function Tx_toPropertyKey(t) { var i = Tx_toPrimitive(t, "string"); return "symbol" == Tx_typeof(i) ? i : i + ""; }
|
|
6425
|
-
function Tx_toPrimitive(t, r) { if ("object" != Tx_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != Tx_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6970
|
+
|
|
6971
|
+
|
|
6426
6972
|
|
|
6427
6973
|
var Tx = /*#__PURE__*/function () {
|
|
6428
6974
|
function Tx() {
|
|
6429
|
-
|
|
6975
|
+
_classCallCheck(this, Tx);
|
|
6430
6976
|
}
|
|
6431
|
-
return
|
|
6977
|
+
return _createClass(Tx, null, [{
|
|
6432
6978
|
key: "TextToVoice",
|
|
6433
6979
|
value: function TextToVoice(text) {
|
|
6434
6980
|
return gridRequest.post("/dxwh/gateway/TextToVoice", {
|
|
@@ -6466,20 +7012,18 @@ var Tx = /*#__PURE__*/function () {
|
|
|
6466
7012
|
|
|
6467
7013
|
// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
|
|
6468
7014
|
var dayjs_min = __webpack_require__(576);
|
|
6469
|
-
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
6470
7015
|
// EXTERNAL MODULE: ./node_modules/dayjs/locale/zh-cn.js
|
|
6471
7016
|
var zh_cn = __webpack_require__(514);
|
|
6472
7017
|
// EXTERNAL MODULE: ./node_modules/dayjs/plugin/weekday.js
|
|
6473
7018
|
var weekday = __webpack_require__(361);
|
|
6474
|
-
var weekday_default = /*#__PURE__*/__webpack_require__.n(weekday);
|
|
6475
7019
|
;// ./package/SpeechRecognition/utils/DateUtil.js
|
|
6476
7020
|
|
|
6477
7021
|
|
|
6478
7022
|
|
|
6479
|
-
|
|
6480
|
-
|
|
7023
|
+
dayjs_min["default"].extend(weekday/* default */.A);
|
|
7024
|
+
dayjs_min["default"].locale('zh-cn');
|
|
6481
7025
|
var getTimeSlot = function getTimeSlot() {
|
|
6482
|
-
var now =
|
|
7026
|
+
var now = (0,dayjs_min["default"])();
|
|
6483
7027
|
var hour = now.hour();
|
|
6484
7028
|
var timeSlot = '';
|
|
6485
7029
|
switch (true) {
|
|
@@ -6517,19 +7061,13 @@ var base64ToArrayBuffer = function base64ToArrayBuffer(base64) {
|
|
|
6517
7061
|
return bytes.buffer;
|
|
6518
7062
|
};
|
|
6519
7063
|
;// ./node_modules/pinyin-pro/dist/index.mjs
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
7064
|
+
|
|
7065
|
+
|
|
7066
|
+
|
|
7067
|
+
|
|
6524
7068
|
function dist_createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = dist_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
6525
7069
|
function dist_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return dist_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? dist_arrayLikeToArray(r, a) : void 0; } }
|
|
6526
7070
|
function dist_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6527
|
-
function dist_typeof(o) { "@babel/helpers - typeof"; return dist_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, dist_typeof(o); }
|
|
6528
|
-
function dist_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
6529
|
-
function dist_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, dist_toPropertyKey(o.key), o); } }
|
|
6530
|
-
function dist_createClass(e, r, t) { return r && dist_defineProperties(e.prototype, r), t && dist_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
6531
|
-
function dist_toPropertyKey(t) { var i = dist_toPrimitive(t, "string"); return "symbol" == dist_typeof(i) ? i : i + ""; }
|
|
6532
|
-
function dist_toPrimitive(t, r) { if ("object" != dist_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != dist_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6533
7071
|
var DoubleUnicodePrefixReg = /^[\uD800-\uDBFF]$/;
|
|
6534
7072
|
var DoubleUnicodeSuffixReg = /^[\uDC00-\uDFFF]$/;
|
|
6535
7073
|
var DoubleUnicodeReg = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
@@ -6568,11 +7106,11 @@ function splitString(text) {
|
|
|
6568
7106
|
}
|
|
6569
7107
|
var FastDictFactory = /*#__PURE__*/function () {
|
|
6570
7108
|
function FastDictFactory() {
|
|
6571
|
-
|
|
7109
|
+
_classCallCheck(this, FastDictFactory);
|
|
6572
7110
|
this.NumberDICT = [];
|
|
6573
7111
|
this.StringDICT = new Map();
|
|
6574
7112
|
}
|
|
6575
|
-
return
|
|
7113
|
+
return _createClass(FastDictFactory, [{
|
|
6576
7114
|
key: "get",
|
|
6577
7115
|
value: function get(word) {
|
|
6578
7116
|
if (word.length > 1) {
|
|
@@ -15486,10 +16024,10 @@ var TokenizationAlgorithm;
|
|
|
15486
16024
|
TokenizationAlgorithm[TokenizationAlgorithm["MaxProbability"] = 2] = "MaxProbability";
|
|
15487
16025
|
TokenizationAlgorithm[TokenizationAlgorithm["MinTokenization"] = 3] = "MinTokenization";
|
|
15488
16026
|
})(TokenizationAlgorithm || (TokenizationAlgorithm = {}));
|
|
15489
|
-
var TrieNode = /*#__PURE__*/
|
|
16027
|
+
var TrieNode = /*#__PURE__*/_createClass(function TrieNode(parent) {
|
|
15490
16028
|
var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
15491
16029
|
var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
|
|
15492
|
-
|
|
16030
|
+
_classCallCheck(this, TrieNode);
|
|
15493
16031
|
this.children = new Map();
|
|
15494
16032
|
this.fail = null;
|
|
15495
16033
|
this.patterns = [];
|
|
@@ -15499,12 +16037,12 @@ var TrieNode = /*#__PURE__*/dist_createClass(function TrieNode(parent) {
|
|
|
15499
16037
|
});
|
|
15500
16038
|
var AC = /*#__PURE__*/function () {
|
|
15501
16039
|
function AC() {
|
|
15502
|
-
|
|
16040
|
+
_classCallCheck(this, AC);
|
|
15503
16041
|
this.dictMap = new Map();
|
|
15504
16042
|
this.queues = [];
|
|
15505
16043
|
this.root = new TrieNode(null);
|
|
15506
16044
|
}
|
|
15507
|
-
return
|
|
16045
|
+
return _createClass(AC, [{
|
|
15508
16046
|
key: "build",
|
|
15509
16047
|
value: function build(patternList) {
|
|
15510
16048
|
this.buildTrie(patternList);
|
|
@@ -15681,7 +16219,7 @@ var AC = /*#__PURE__*/function () {
|
|
|
15681
16219
|
}
|
|
15682
16220
|
}]);
|
|
15683
16221
|
}(); // 常规匹配
|
|
15684
|
-
var PatternsNormal = [].concat(
|
|
16222
|
+
var PatternsNormal = [].concat(toConsumableArray_toConsumableArray(Pattern5), toConsumableArray_toConsumableArray(Pattern4), toConsumableArray_toConsumableArray(Pattern3), toConsumableArray_toConsumableArray(Pattern2), toConsumableArray_toConsumableArray(PatternNumberDict), toConsumableArray_toConsumableArray(PatternSurname));
|
|
15685
16223
|
var acTree = new AC();
|
|
15686
16224
|
acTree.build(PatternsNormal);
|
|
15687
16225
|
var customDict = {};
|
|
@@ -16217,7 +16755,7 @@ var originDictMap = new Map();
|
|
|
16217
16755
|
function addDict(dict, options) {
|
|
16218
16756
|
var patterns = [];
|
|
16219
16757
|
// string 类型时:options 为 name()
|
|
16220
|
-
var name =
|
|
16758
|
+
var name = _typeof(options) === "object" ? options.name : options;
|
|
16221
16759
|
var dictName = name || DefaultName;
|
|
16222
16760
|
var dict1Handle = (options === null || options === void 0 ? void 0 : options.dict1) || "add";
|
|
16223
16761
|
for (var word in dict) {
|
|
@@ -16429,7 +16967,7 @@ var matchAboveStart = function matchAboveStart(text, pinyin$1, options) {
|
|
|
16429
16967
|
});
|
|
16430
16968
|
// 非中文匹配
|
|
16431
16969
|
if (words[_i3 - 1] === pinyin$1[_j - 1]) {
|
|
16432
|
-
var matches = [].concat(
|
|
16970
|
+
var matches = [].concat(_toConsumableArray(dp[_i3 - 1][_j - 1]), [_i3 - 1]);
|
|
16433
16971
|
// 记录最长的可匹配下标数组
|
|
16434
16972
|
if (!dp[_i3][_j] || matches.length > dp[_i3][_j].length) {
|
|
16435
16973
|
dp[_i3][_j] = matches;
|
|
@@ -16464,7 +17002,7 @@ var matchAboveStart = function matchAboveStart(text, pinyin$1, options) {
|
|
|
16464
17002
|
if (last) {
|
|
16465
17003
|
return {
|
|
16466
17004
|
v: {
|
|
16467
|
-
v: [].concat(
|
|
17005
|
+
v: [].concat(_toConsumableArray(dp[_i3 - 1][_j - 1]), [_i3 - 1])
|
|
16468
17006
|
}
|
|
16469
17007
|
};
|
|
16470
17008
|
}
|
|
@@ -16474,7 +17012,7 @@ var matchAboveStart = function matchAboveStart(text, pinyin$1, options) {
|
|
|
16474
17012
|
if (precision === "start") {
|
|
16475
17013
|
muls.forEach(function (py) {
|
|
16476
17014
|
var end = _j;
|
|
16477
|
-
var matches = [].concat(
|
|
17015
|
+
var matches = [].concat(_toConsumableArray(dp[_i3 - 1][_j - 1]), [_i3 - 1]);
|
|
16478
17016
|
while (end <= pinyin$1.length && py.startsWith(pinyin$1.slice(_j - 1, end))) {
|
|
16479
17017
|
if (!dp[_i3][end] || matches.length > dp[_i3][end].length) {
|
|
16480
17018
|
dp[_i3][end] = matches;
|
|
@@ -16488,7 +17026,7 @@ var matchAboveStart = function matchAboveStart(text, pinyin$1, options) {
|
|
|
16488
17026
|
if (muls.some(function (py) {
|
|
16489
17027
|
return py[0] === pinyin$1[_j - 1];
|
|
16490
17028
|
})) {
|
|
16491
|
-
var _matches = [].concat(
|
|
17029
|
+
var _matches = [].concat(_toConsumableArray(dp[_i3 - 1][_j - 1]), [_i3 - 1]);
|
|
16492
17030
|
// 记录最长的可匹配下标数组
|
|
16493
17031
|
if (!dp[_i3][_j] || _matches.length > dp[_i3][_j].length) {
|
|
16494
17032
|
dp[_i3][_j] = _matches;
|
|
@@ -16500,7 +17038,7 @@ var matchAboveStart = function matchAboveStart(text, pinyin$1, options) {
|
|
|
16500
17038
|
return py === pinyin$1.slice(_j - 1, _j - 1 + py.length);
|
|
16501
17039
|
});
|
|
16502
17040
|
if (completeMatch) {
|
|
16503
|
-
var _matches2 = [].concat(
|
|
17041
|
+
var _matches2 = [].concat(_toConsumableArray(dp[_i3 - 1][_j - 1]), [_i3 - 1]);
|
|
16504
17042
|
var endIndex = _j - 1 + completeMatch.length;
|
|
16505
17043
|
// 记录最长的可匹配下标数组
|
|
16506
17044
|
if (!dp[_i3][endIndex] || _matches2.length > dp[_i3][endIndex].length) {
|
|
@@ -16739,7 +17277,7 @@ var toneMap = {
|
|
|
16739
17277
|
*/
|
|
16740
17278
|
function convert(pinyin, options) {
|
|
16741
17279
|
options = Object.assign(Object.assign({}, DefaultConvertOptions), options || {});
|
|
16742
|
-
var originType =
|
|
17280
|
+
var originType = _typeof(pinyin);
|
|
16743
17281
|
if (typeof pinyin === 'string') {
|
|
16744
17282
|
pinyin = pinyin.split(options.separator);
|
|
16745
17283
|
}
|
|
@@ -17047,15 +17585,11 @@ var wakeUpState = function wakeUpState() {
|
|
|
17047
17585
|
};
|
|
17048
17586
|
|
|
17049
17587
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./package/SpeechRecognition/index.vue?vue&type=script&lang=js
|
|
17050
|
-
|
|
17051
|
-
|
|
17588
|
+
|
|
17589
|
+
|
|
17590
|
+
|
|
17052
17591
|
function SpeechRecognitionvue_type_script_lang_js_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17053
|
-
function SpeechRecognitionvue_type_script_lang_js_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? SpeechRecognitionvue_type_script_lang_js_ownKeys(Object(t), !0).forEach(function (r) {
|
|
17054
|
-
function SpeechRecognitionvue_type_script_lang_js_defineProperty(e, r, t) { return (r = SpeechRecognitionvue_type_script_lang_js_toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
17055
|
-
function SpeechRecognitionvue_type_script_lang_js_toPropertyKey(t) { var i = SpeechRecognitionvue_type_script_lang_js_toPrimitive(t, "string"); return "symbol" == SpeechRecognitionvue_type_script_lang_js_typeof(i) ? i : i + ""; }
|
|
17056
|
-
function SpeechRecognitionvue_type_script_lang_js_toPrimitive(t, r) { if ("object" != SpeechRecognitionvue_type_script_lang_js_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != SpeechRecognitionvue_type_script_lang_js_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
17057
|
-
function SpeechRecognitionvue_type_script_lang_js_asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
17058
|
-
function SpeechRecognitionvue_type_script_lang_js_asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { SpeechRecognitionvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { SpeechRecognitionvue_type_script_lang_js_asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
17592
|
+
function SpeechRecognitionvue_type_script_lang_js_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? SpeechRecognitionvue_type_script_lang_js_ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : SpeechRecognitionvue_type_script_lang_js_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17059
17593
|
|
|
17060
17594
|
|
|
17061
17595
|
|
|
@@ -17193,9 +17727,9 @@ var __default__ = {
|
|
|
17193
17727
|
},
|
|
17194
17728
|
updateSession: function updateSession(opt) {
|
|
17195
17729
|
var _this2 = this;
|
|
17196
|
-
return
|
|
17730
|
+
return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee() {
|
|
17197
17731
|
var messages, res, type, content, _messages, voice_id, session_id, formData, _res, code, msg, obj, _content, standard_back, command_type;
|
|
17198
|
-
return
|
|
17732
|
+
return regenerator_default().wrap(function _callee$(_context) {
|
|
17199
17733
|
while (1) switch (_context.prev = _context.next) {
|
|
17200
17734
|
case 0:
|
|
17201
17735
|
messages = opt.messages, res = opt.res;
|
|
@@ -17318,9 +17852,9 @@ var __default__ = {
|
|
|
17318
17852
|
},
|
|
17319
17853
|
// 语音播放
|
|
17320
17854
|
handlePlayTTS: function handlePlayTTS(opt) {
|
|
17321
|
-
return
|
|
17855
|
+
return _asyncToGenerator(/*#__PURE__*/regenerator_default().mark(function _callee2() {
|
|
17322
17856
|
var content, onEnded, res, arrayBuffer, blob, url, audio;
|
|
17323
|
-
return
|
|
17857
|
+
return regenerator_default().wrap(function _callee2$(_context2) {
|
|
17324
17858
|
while (1) switch (_context2.prev = _context2.next) {
|
|
17325
17859
|
case 0:
|
|
17326
17860
|
_context2.prev = 0;
|