jubo-sdk 1.1.0 โ 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -9
- package/dist/JuboSdk.d.ts +1 -0
- package/dist/OldJuboSdk.d.ts +1 -0
- package/dist/index.cjs.js +660 -1058
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +660 -1058
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +660 -1058
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/types/juboSdk.d.ts +21 -4
- package/dist/utils/index.d.ts +1 -1
- package/package.json +3 -2
package/dist/index.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
7
|
-
var fails$
|
|
7
|
+
var fails$m = function (exec) {
|
|
8
8
|
try {
|
|
9
9
|
return !!exec();
|
|
10
10
|
} catch (error) {
|
|
@@ -12,17 +12,17 @@ var fails$n = function (exec) {
|
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
var fails$
|
|
15
|
+
var fails$l = fails$m;
|
|
16
16
|
|
|
17
17
|
// Detect IE8's incomplete defineProperty implementation
|
|
18
|
-
var descriptors = !fails$
|
|
18
|
+
var descriptors = !fails$l(function () {
|
|
19
19
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
20
20
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
var fails$
|
|
23
|
+
var fails$k = fails$m;
|
|
24
24
|
|
|
25
|
-
var functionBindNative = !fails$
|
|
25
|
+
var functionBindNative = !fails$k(function () {
|
|
26
26
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
27
27
|
var test = (function () { /* empty */ }).bind();
|
|
28
28
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -49,12 +49,12 @@ var isNullOrUndefined$6 = function (it) {
|
|
|
49
49
|
|
|
50
50
|
var isNullOrUndefined$5 = isNullOrUndefined$6;
|
|
51
51
|
|
|
52
|
-
var $TypeError$
|
|
52
|
+
var $TypeError$e = TypeError;
|
|
53
53
|
|
|
54
54
|
// `RequireObjectCoercible` abstract operation
|
|
55
55
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
56
56
|
var requireObjectCoercible$6 = function (it) {
|
|
57
|
-
if (isNullOrUndefined$5(it)) throw $TypeError$
|
|
57
|
+
if (isNullOrUndefined$5(it)) throw $TypeError$e("Can't call method on " + it);
|
|
58
58
|
return it;
|
|
59
59
|
};
|
|
60
60
|
|
|
@@ -64,33 +64,33 @@ var $Object$3 = Object;
|
|
|
64
64
|
|
|
65
65
|
// `ToObject` abstract operation
|
|
66
66
|
// https://tc39.es/ecma262/#sec-toobject
|
|
67
|
-
var toObject$
|
|
67
|
+
var toObject$5 = function (argument) {
|
|
68
68
|
return $Object$3(requireObjectCoercible$5(argument));
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
var uncurryThis$
|
|
72
|
-
var toObject$
|
|
71
|
+
var uncurryThis$o = functionUncurryThis;
|
|
72
|
+
var toObject$4 = toObject$5;
|
|
73
73
|
|
|
74
|
-
var hasOwnProperty = uncurryThis$
|
|
74
|
+
var hasOwnProperty = uncurryThis$o({}.hasOwnProperty);
|
|
75
75
|
|
|
76
76
|
// `HasOwnProperty` abstract operation
|
|
77
77
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
78
78
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
79
79
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
80
|
-
return hasOwnProperty(toObject$
|
|
80
|
+
return hasOwnProperty(toObject$4(it), key);
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
var DESCRIPTORS$
|
|
84
|
-
var hasOwn$
|
|
83
|
+
var DESCRIPTORS$b = descriptors;
|
|
84
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
85
85
|
|
|
86
86
|
var FunctionPrototype$2 = Function.prototype;
|
|
87
87
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
88
|
-
var getDescriptor = DESCRIPTORS$
|
|
88
|
+
var getDescriptor = DESCRIPTORS$b && Object.getOwnPropertyDescriptor;
|
|
89
89
|
|
|
90
|
-
var EXISTS$1 = hasOwn$
|
|
90
|
+
var EXISTS$1 = hasOwn$9(FunctionPrototype$2, 'name');
|
|
91
91
|
// additional protection from minified / mangled / dropped function names
|
|
92
92
|
var PROPER = EXISTS$1 && (function something() { /* empty */ }).name === 'something';
|
|
93
|
-
var CONFIGURABLE$1 = EXISTS$1 && (!DESCRIPTORS$
|
|
93
|
+
var CONFIGURABLE$1 = EXISTS$1 && (!DESCRIPTORS$b || (DESCRIPTORS$b && getDescriptor(FunctionPrototype$2, 'name').configurable));
|
|
94
94
|
|
|
95
95
|
var functionName = {
|
|
96
96
|
EXISTS: EXISTS$1,
|
|
@@ -121,7 +121,7 @@ var documentAll$1 = $documentAll$1.all;
|
|
|
121
121
|
|
|
122
122
|
// `IsCallable` abstract operation
|
|
123
123
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
124
|
-
var isCallable$
|
|
124
|
+
var isCallable$j = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
|
125
125
|
return typeof argument == 'function' || argument === documentAll$1;
|
|
126
126
|
} : function (argument) {
|
|
127
127
|
return typeof argument == 'function';
|
|
@@ -132,7 +132,7 @@ var check = function (it) {
|
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
135
|
-
var global$
|
|
135
|
+
var global$k =
|
|
136
136
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
137
137
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
138
138
|
check(typeof window == 'object' && window) ||
|
|
@@ -142,35 +142,35 @@ var global$m =
|
|
|
142
142
|
// eslint-disable-next-line no-new-func -- fallback
|
|
143
143
|
(function () { return this; })() || Function('return this')();
|
|
144
144
|
|
|
145
|
-
var global$
|
|
145
|
+
var global$j = global$k;
|
|
146
146
|
|
|
147
147
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
148
|
-
var defineProperty$
|
|
148
|
+
var defineProperty$6 = Object.defineProperty;
|
|
149
149
|
|
|
150
150
|
var defineGlobalProperty$3 = function (key, value) {
|
|
151
151
|
try {
|
|
152
|
-
defineProperty$
|
|
152
|
+
defineProperty$6(global$j, key, { value: value, configurable: true, writable: true });
|
|
153
153
|
} catch (error) {
|
|
154
|
-
global$
|
|
154
|
+
global$j[key] = value;
|
|
155
155
|
} return value;
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
var global$
|
|
158
|
+
var global$i = global$k;
|
|
159
159
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
160
160
|
|
|
161
161
|
var SHARED = '__core-js_shared__';
|
|
162
|
-
var store$3 = global$
|
|
162
|
+
var store$3 = global$i[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
163
163
|
|
|
164
164
|
var sharedStore = store$3;
|
|
165
165
|
|
|
166
|
-
var uncurryThis$
|
|
167
|
-
var isCallable$
|
|
166
|
+
var uncurryThis$n = functionUncurryThis;
|
|
167
|
+
var isCallable$i = isCallable$j;
|
|
168
168
|
var store$2 = sharedStore;
|
|
169
169
|
|
|
170
|
-
var functionToString$1 = uncurryThis$
|
|
170
|
+
var functionToString$1 = uncurryThis$n(Function.toString);
|
|
171
171
|
|
|
172
172
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
173
|
-
if (!isCallable$
|
|
173
|
+
if (!isCallable$i(store$2.inspectSource)) {
|
|
174
174
|
store$2.inspectSource = function (it) {
|
|
175
175
|
return functionToString$1(it);
|
|
176
176
|
};
|
|
@@ -178,55 +178,55 @@ if (!isCallable$j(store$2.inspectSource)) {
|
|
|
178
178
|
|
|
179
179
|
var inspectSource$3 = store$2.inspectSource;
|
|
180
180
|
|
|
181
|
-
var global$
|
|
182
|
-
var isCallable$
|
|
181
|
+
var global$h = global$k;
|
|
182
|
+
var isCallable$h = isCallable$j;
|
|
183
183
|
|
|
184
|
-
var WeakMap$1 = global$
|
|
184
|
+
var WeakMap$1 = global$h.WeakMap;
|
|
185
185
|
|
|
186
|
-
var weakMapBasicDetection = isCallable$
|
|
186
|
+
var weakMapBasicDetection = isCallable$h(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
187
187
|
|
|
188
|
-
var isCallable$
|
|
188
|
+
var isCallable$g = isCallable$j;
|
|
189
189
|
var $documentAll = documentAll_1;
|
|
190
190
|
|
|
191
191
|
var documentAll = $documentAll.all;
|
|
192
192
|
|
|
193
|
-
var isObject$
|
|
194
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
193
|
+
var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
194
|
+
return typeof it == 'object' ? it !== null : isCallable$g(it) || it === documentAll;
|
|
195
195
|
} : function (it) {
|
|
196
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
196
|
+
return typeof it == 'object' ? it !== null : isCallable$g(it);
|
|
197
197
|
};
|
|
198
198
|
|
|
199
199
|
var objectDefineProperty = {};
|
|
200
200
|
|
|
201
|
-
var global$
|
|
202
|
-
var isObject$
|
|
201
|
+
var global$g = global$k;
|
|
202
|
+
var isObject$8 = isObject$9;
|
|
203
203
|
|
|
204
|
-
var document$3 = global$
|
|
204
|
+
var document$3 = global$g.document;
|
|
205
205
|
// typeof document.createElement is 'object' in old IE
|
|
206
|
-
var EXISTS = isObject$
|
|
206
|
+
var EXISTS = isObject$8(document$3) && isObject$8(document$3.createElement);
|
|
207
207
|
|
|
208
208
|
var documentCreateElement$2 = function (it) {
|
|
209
209
|
return EXISTS ? document$3.createElement(it) : {};
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
var DESCRIPTORS$
|
|
213
|
-
var fails$
|
|
212
|
+
var DESCRIPTORS$a = descriptors;
|
|
213
|
+
var fails$j = fails$m;
|
|
214
214
|
var createElement$1 = documentCreateElement$2;
|
|
215
215
|
|
|
216
216
|
// Thanks to IE8 for its funny defineProperty
|
|
217
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
217
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$j(function () {
|
|
218
218
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
219
219
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
220
220
|
get: function () { return 7; }
|
|
221
221
|
}).a != 7;
|
|
222
222
|
});
|
|
223
223
|
|
|
224
|
-
var DESCRIPTORS$
|
|
225
|
-
var fails$
|
|
224
|
+
var DESCRIPTORS$9 = descriptors;
|
|
225
|
+
var fails$i = fails$m;
|
|
226
226
|
|
|
227
227
|
// V8 ~ Chrome 36-
|
|
228
228
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
229
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
229
|
+
var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$i(function () {
|
|
230
230
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
231
231
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
232
232
|
value: 42,
|
|
@@ -234,15 +234,15 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$j(function () {
|
|
|
234
234
|
}).prototype != 42;
|
|
235
235
|
});
|
|
236
236
|
|
|
237
|
-
var isObject$
|
|
237
|
+
var isObject$7 = isObject$9;
|
|
238
238
|
|
|
239
239
|
var $String$4 = String;
|
|
240
|
-
var $TypeError$
|
|
240
|
+
var $TypeError$d = TypeError;
|
|
241
241
|
|
|
242
242
|
// `Assert: Type(argument) is Object`
|
|
243
243
|
var anObject$f = function (argument) {
|
|
244
|
-
if (isObject$
|
|
245
|
-
throw $TypeError$
|
|
244
|
+
if (isObject$7(argument)) return argument;
|
|
245
|
+
throw $TypeError$d($String$4(argument) + ' is not an object');
|
|
246
246
|
};
|
|
247
247
|
|
|
248
248
|
var NATIVE_BIND$2 = functionBindNative;
|
|
@@ -253,28 +253,28 @@ var functionCall = NATIVE_BIND$2 ? call$h.bind(call$h) : function () {
|
|
|
253
253
|
return call$h.apply(call$h, arguments);
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
var global$
|
|
257
|
-
var isCallable$
|
|
256
|
+
var global$f = global$k;
|
|
257
|
+
var isCallable$f = isCallable$j;
|
|
258
258
|
|
|
259
259
|
var aFunction = function (argument) {
|
|
260
|
-
return isCallable$
|
|
260
|
+
return isCallable$f(argument) ? argument : undefined;
|
|
261
261
|
};
|
|
262
262
|
|
|
263
263
|
var getBuiltIn$7 = function (namespace, method) {
|
|
264
|
-
return arguments.length < 2 ? aFunction(global$
|
|
264
|
+
return arguments.length < 2 ? aFunction(global$f[namespace]) : global$f[namespace] && global$f[namespace][method];
|
|
265
265
|
};
|
|
266
266
|
|
|
267
|
-
var uncurryThis$
|
|
267
|
+
var uncurryThis$m = functionUncurryThis;
|
|
268
268
|
|
|
269
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
269
|
+
var objectIsPrototypeOf = uncurryThis$m({}.isPrototypeOf);
|
|
270
270
|
|
|
271
271
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
272
272
|
|
|
273
|
-
var global$
|
|
273
|
+
var global$e = global$k;
|
|
274
274
|
var userAgent$3 = engineUserAgent;
|
|
275
275
|
|
|
276
|
-
var process$4 = global$
|
|
277
|
-
var Deno$1 = global$
|
|
276
|
+
var process$4 = global$e.process;
|
|
277
|
+
var Deno$1 = global$e.Deno;
|
|
278
278
|
var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
|
|
279
279
|
var v8 = versions && versions.v8;
|
|
280
280
|
var match, version$1;
|
|
@@ -301,10 +301,10 @@ var engineV8Version = version$1;
|
|
|
301
301
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
302
302
|
|
|
303
303
|
var V8_VERSION$3 = engineV8Version;
|
|
304
|
-
var fails$
|
|
304
|
+
var fails$h = fails$m;
|
|
305
305
|
|
|
306
306
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
307
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
307
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$h(function () {
|
|
308
308
|
var symbol = Symbol();
|
|
309
309
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
310
310
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -322,17 +322,17 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
322
322
|
&& typeof Symbol.iterator == 'symbol';
|
|
323
323
|
|
|
324
324
|
var getBuiltIn$6 = getBuiltIn$7;
|
|
325
|
-
var isCallable$
|
|
326
|
-
var isPrototypeOf$
|
|
325
|
+
var isCallable$e = isCallable$j;
|
|
326
|
+
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
327
327
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
328
328
|
|
|
329
329
|
var $Object$2 = Object;
|
|
330
330
|
|
|
331
|
-
var isSymbol$
|
|
331
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
332
332
|
return typeof it == 'symbol';
|
|
333
333
|
} : function (it) {
|
|
334
334
|
var $Symbol = getBuiltIn$6('Symbol');
|
|
335
|
-
return isCallable$
|
|
335
|
+
return isCallable$e($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$2(it));
|
|
336
336
|
};
|
|
337
337
|
|
|
338
338
|
var $String$3 = String;
|
|
@@ -345,41 +345,41 @@ var tryToString$4 = function (argument) {
|
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
347
|
|
|
348
|
-
var isCallable$
|
|
348
|
+
var isCallable$d = isCallable$j;
|
|
349
349
|
var tryToString$3 = tryToString$4;
|
|
350
350
|
|
|
351
|
-
var $TypeError$
|
|
351
|
+
var $TypeError$c = TypeError;
|
|
352
352
|
|
|
353
353
|
// `Assert: IsCallable(argument) is true`
|
|
354
|
-
var aCallable$
|
|
355
|
-
if (isCallable$
|
|
356
|
-
throw $TypeError$
|
|
354
|
+
var aCallable$8 = function (argument) {
|
|
355
|
+
if (isCallable$d(argument)) return argument;
|
|
356
|
+
throw $TypeError$c(tryToString$3(argument) + ' is not a function');
|
|
357
357
|
};
|
|
358
358
|
|
|
359
|
-
var aCallable$
|
|
359
|
+
var aCallable$7 = aCallable$8;
|
|
360
360
|
var isNullOrUndefined$4 = isNullOrUndefined$6;
|
|
361
361
|
|
|
362
362
|
// `GetMethod` abstract operation
|
|
363
363
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
364
364
|
var getMethod$5 = function (V, P) {
|
|
365
365
|
var func = V[P];
|
|
366
|
-
return isNullOrUndefined$4(func) ? undefined : aCallable$
|
|
366
|
+
return isNullOrUndefined$4(func) ? undefined : aCallable$7(func);
|
|
367
367
|
};
|
|
368
368
|
|
|
369
369
|
var call$g = functionCall;
|
|
370
|
-
var isCallable$
|
|
371
|
-
var isObject$
|
|
370
|
+
var isCallable$c = isCallable$j;
|
|
371
|
+
var isObject$6 = isObject$9;
|
|
372
372
|
|
|
373
|
-
var $TypeError$
|
|
373
|
+
var $TypeError$b = TypeError;
|
|
374
374
|
|
|
375
375
|
// `OrdinaryToPrimitive` abstract operation
|
|
376
376
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
377
377
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
378
378
|
var fn, val;
|
|
379
|
-
if (pref === 'string' && isCallable$
|
|
380
|
-
if (isCallable$
|
|
381
|
-
if (pref !== 'string' && isCallable$
|
|
382
|
-
throw $TypeError$
|
|
379
|
+
if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$g(fn, input))) return val;
|
|
380
|
+
if (isCallable$c(fn = input.valueOf) && !isObject$6(val = call$g(fn, input))) return val;
|
|
381
|
+
if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$g(fn, input))) return val;
|
|
382
|
+
throw $TypeError$b("Can't convert object to primitive value");
|
|
383
383
|
};
|
|
384
384
|
|
|
385
385
|
var sharedExports = {};
|
|
@@ -388,8 +388,6 @@ var shared$4 = {
|
|
|
388
388
|
set exports(v){ sharedExports = v; },
|
|
389
389
|
};
|
|
390
390
|
|
|
391
|
-
var isPure = false;
|
|
392
|
-
|
|
393
391
|
var store$1 = sharedStore;
|
|
394
392
|
|
|
395
393
|
(shared$4.exports = function (key, value) {
|
|
@@ -402,78 +400,78 @@ var store$1 = sharedStore;
|
|
|
402
400
|
source: 'https://github.com/zloirock/core-js'
|
|
403
401
|
});
|
|
404
402
|
|
|
405
|
-
var uncurryThis$
|
|
403
|
+
var uncurryThis$l = functionUncurryThis;
|
|
406
404
|
|
|
407
405
|
var id = 0;
|
|
408
406
|
var postfix = Math.random();
|
|
409
|
-
var toString$9 = uncurryThis$
|
|
407
|
+
var toString$9 = uncurryThis$l(1.0.toString);
|
|
410
408
|
|
|
411
409
|
var uid$2 = function (key) {
|
|
412
410
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$9(++id + postfix, 36);
|
|
413
411
|
};
|
|
414
412
|
|
|
415
|
-
var global$
|
|
413
|
+
var global$d = global$k;
|
|
416
414
|
var shared$3 = sharedExports;
|
|
417
|
-
var hasOwn$
|
|
415
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
418
416
|
var uid$1 = uid$2;
|
|
419
417
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
420
418
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
421
419
|
|
|
422
|
-
var Symbol$2 = global$
|
|
420
|
+
var Symbol$2 = global$d.Symbol;
|
|
423
421
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
424
422
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
|
|
425
423
|
|
|
426
424
|
var wellKnownSymbol$g = function (name) {
|
|
427
|
-
if (!hasOwn$
|
|
428
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
|
425
|
+
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
|
426
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$2, name)
|
|
429
427
|
? Symbol$2[name]
|
|
430
428
|
: createWellKnownSymbol('Symbol.' + name);
|
|
431
429
|
} return WellKnownSymbolsStore[name];
|
|
432
430
|
};
|
|
433
431
|
|
|
434
432
|
var call$f = functionCall;
|
|
435
|
-
var isObject$
|
|
436
|
-
var isSymbol$
|
|
433
|
+
var isObject$5 = isObject$9;
|
|
434
|
+
var isSymbol$1 = isSymbol$2;
|
|
437
435
|
var getMethod$4 = getMethod$5;
|
|
438
436
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
439
437
|
var wellKnownSymbol$f = wellKnownSymbol$g;
|
|
440
438
|
|
|
441
|
-
var $TypeError$
|
|
439
|
+
var $TypeError$a = TypeError;
|
|
442
440
|
var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
|
|
443
441
|
|
|
444
442
|
// `ToPrimitive` abstract operation
|
|
445
443
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
446
|
-
var toPrimitive$
|
|
447
|
-
if (!isObject$
|
|
444
|
+
var toPrimitive$1 = function (input, pref) {
|
|
445
|
+
if (!isObject$5(input) || isSymbol$1(input)) return input;
|
|
448
446
|
var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
|
|
449
447
|
var result;
|
|
450
448
|
if (exoticToPrim) {
|
|
451
449
|
if (pref === undefined) pref = 'default';
|
|
452
450
|
result = call$f(exoticToPrim, input, pref);
|
|
453
|
-
if (!isObject$
|
|
454
|
-
throw $TypeError$
|
|
451
|
+
if (!isObject$5(result) || isSymbol$1(result)) return result;
|
|
452
|
+
throw $TypeError$a("Can't convert object to primitive value");
|
|
455
453
|
}
|
|
456
454
|
if (pref === undefined) pref = 'number';
|
|
457
455
|
return ordinaryToPrimitive(input, pref);
|
|
458
456
|
};
|
|
459
457
|
|
|
460
|
-
var toPrimitive
|
|
461
|
-
var isSymbol
|
|
458
|
+
var toPrimitive = toPrimitive$1;
|
|
459
|
+
var isSymbol = isSymbol$2;
|
|
462
460
|
|
|
463
461
|
// `ToPropertyKey` abstract operation
|
|
464
462
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
465
463
|
var toPropertyKey$3 = function (argument) {
|
|
466
|
-
var key = toPrimitive
|
|
467
|
-
return isSymbol
|
|
464
|
+
var key = toPrimitive(argument, 'string');
|
|
465
|
+
return isSymbol(key) ? key : key + '';
|
|
468
466
|
};
|
|
469
467
|
|
|
470
|
-
var DESCRIPTORS$
|
|
468
|
+
var DESCRIPTORS$8 = descriptors;
|
|
471
469
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
472
470
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
473
471
|
var anObject$e = anObject$f;
|
|
474
472
|
var toPropertyKey$2 = toPropertyKey$3;
|
|
475
473
|
|
|
476
|
-
var $TypeError$
|
|
474
|
+
var $TypeError$9 = TypeError;
|
|
477
475
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
478
476
|
var $defineProperty = Object.defineProperty;
|
|
479
477
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -484,7 +482,7 @@ var WRITABLE = 'writable';
|
|
|
484
482
|
|
|
485
483
|
// `Object.defineProperty` method
|
|
486
484
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
487
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
485
|
+
objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
488
486
|
anObject$e(O);
|
|
489
487
|
P = toPropertyKey$2(P);
|
|
490
488
|
anObject$e(Attributes);
|
|
@@ -506,7 +504,7 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
506
504
|
if (IE8_DOM_DEFINE$1) try {
|
|
507
505
|
return $defineProperty(O, P, Attributes);
|
|
508
506
|
} catch (error) { /* empty */ }
|
|
509
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$
|
|
507
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$9('Accessors not supported');
|
|
510
508
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
511
509
|
return O;
|
|
512
510
|
};
|
|
@@ -520,11 +518,11 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
520
518
|
};
|
|
521
519
|
};
|
|
522
520
|
|
|
523
|
-
var DESCRIPTORS$
|
|
521
|
+
var DESCRIPTORS$7 = descriptors;
|
|
524
522
|
var definePropertyModule$4 = objectDefineProperty;
|
|
525
523
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
526
524
|
|
|
527
|
-
var createNonEnumerableProperty$4 = DESCRIPTORS$
|
|
525
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$7 ? function (object, key, value) {
|
|
528
526
|
return definePropertyModule$4.f(object, key, createPropertyDescriptor$2(1, value));
|
|
529
527
|
} : function (object, key, value) {
|
|
530
528
|
object[key] = value;
|
|
@@ -543,17 +541,17 @@ var sharedKey$2 = function (key) {
|
|
|
543
541
|
var hiddenKeys$4 = {};
|
|
544
542
|
|
|
545
543
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
546
|
-
var global$
|
|
547
|
-
var isObject$
|
|
544
|
+
var global$c = global$k;
|
|
545
|
+
var isObject$4 = isObject$9;
|
|
548
546
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
549
|
-
var hasOwn$
|
|
547
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
550
548
|
var shared$1 = sharedStore;
|
|
551
549
|
var sharedKey$1 = sharedKey$2;
|
|
552
550
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
553
551
|
|
|
554
552
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
555
|
-
var TypeError$
|
|
556
|
-
var WeakMap = global$
|
|
553
|
+
var TypeError$2 = global$c.TypeError;
|
|
554
|
+
var WeakMap = global$c.WeakMap;
|
|
557
555
|
var set$1, get, has;
|
|
558
556
|
|
|
559
557
|
var enforce = function (it) {
|
|
@@ -563,8 +561,8 @@ var enforce = function (it) {
|
|
|
563
561
|
var getterFor = function (TYPE) {
|
|
564
562
|
return function (it) {
|
|
565
563
|
var state;
|
|
566
|
-
if (!isObject$
|
|
567
|
-
throw TypeError$
|
|
564
|
+
if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
|
|
565
|
+
throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
568
566
|
} return state;
|
|
569
567
|
};
|
|
570
568
|
};
|
|
@@ -577,7 +575,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
577
575
|
store.set = store.set;
|
|
578
576
|
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
579
577
|
set$1 = function (it, metadata) {
|
|
580
|
-
if (store.has(it)) throw TypeError$
|
|
578
|
+
if (store.has(it)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
581
579
|
metadata.facade = it;
|
|
582
580
|
store.set(it, metadata);
|
|
583
581
|
return metadata;
|
|
@@ -592,16 +590,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
592
590
|
var STATE = sharedKey$1('state');
|
|
593
591
|
hiddenKeys$3[STATE] = true;
|
|
594
592
|
set$1 = function (it, metadata) {
|
|
595
|
-
if (hasOwn$
|
|
593
|
+
if (hasOwn$7(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
596
594
|
metadata.facade = it;
|
|
597
595
|
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
598
596
|
return metadata;
|
|
599
597
|
};
|
|
600
598
|
get = function (it) {
|
|
601
|
-
return hasOwn$
|
|
599
|
+
return hasOwn$7(it, STATE) ? it[STATE] : {};
|
|
602
600
|
};
|
|
603
601
|
has = function (it) {
|
|
604
|
-
return hasOwn$
|
|
602
|
+
return hasOwn$7(it, STATE);
|
|
605
603
|
};
|
|
606
604
|
}
|
|
607
605
|
|
|
@@ -613,11 +611,11 @@ var internalState = {
|
|
|
613
611
|
getterFor: getterFor
|
|
614
612
|
};
|
|
615
613
|
|
|
616
|
-
var uncurryThis$
|
|
617
|
-
var fails$
|
|
618
|
-
var isCallable$
|
|
619
|
-
var hasOwn$
|
|
620
|
-
var DESCRIPTORS$
|
|
614
|
+
var uncurryThis$k = functionUncurryThis;
|
|
615
|
+
var fails$g = fails$m;
|
|
616
|
+
var isCallable$b = isCallable$j;
|
|
617
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
618
|
+
var DESCRIPTORS$6 = descriptors;
|
|
621
619
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
622
620
|
var inspectSource$2 = inspectSource$3;
|
|
623
621
|
var InternalStateModule$1 = internalState;
|
|
@@ -626,38 +624,38 @@ var enforceInternalState = InternalStateModule$1.enforce;
|
|
|
626
624
|
var getInternalState$1 = InternalStateModule$1.get;
|
|
627
625
|
var $String$2 = String;
|
|
628
626
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
629
|
-
var defineProperty$
|
|
630
|
-
var stringSlice$
|
|
631
|
-
var replace$3 = uncurryThis$
|
|
632
|
-
var join = uncurryThis$
|
|
627
|
+
var defineProperty$5 = Object.defineProperty;
|
|
628
|
+
var stringSlice$5 = uncurryThis$k(''.slice);
|
|
629
|
+
var replace$3 = uncurryThis$k(''.replace);
|
|
630
|
+
var join = uncurryThis$k([].join);
|
|
633
631
|
|
|
634
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
635
|
-
return defineProperty$
|
|
632
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$g(function () {
|
|
633
|
+
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
636
634
|
});
|
|
637
635
|
|
|
638
636
|
var TEMPLATE = String(String).split('String');
|
|
639
637
|
|
|
640
638
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
641
|
-
if (stringSlice$
|
|
639
|
+
if (stringSlice$5($String$2(name), 0, 7) === 'Symbol(') {
|
|
642
640
|
name = '[' + replace$3($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
643
641
|
}
|
|
644
642
|
if (options && options.getter) name = 'get ' + name;
|
|
645
643
|
if (options && options.setter) name = 'set ' + name;
|
|
646
|
-
if (!hasOwn$
|
|
647
|
-
if (DESCRIPTORS$
|
|
644
|
+
if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
645
|
+
if (DESCRIPTORS$6) defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
648
646
|
else value.name = name;
|
|
649
647
|
}
|
|
650
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
651
|
-
defineProperty$
|
|
648
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
|
|
649
|
+
defineProperty$5(value, 'length', { value: options.arity });
|
|
652
650
|
}
|
|
653
651
|
try {
|
|
654
|
-
if (options && hasOwn$
|
|
655
|
-
if (DESCRIPTORS$
|
|
652
|
+
if (options && hasOwn$6(options, 'constructor') && options.constructor) {
|
|
653
|
+
if (DESCRIPTORS$6) defineProperty$5(value, 'prototype', { writable: false });
|
|
656
654
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
657
655
|
} else if (value.prototype) value.prototype = undefined;
|
|
658
656
|
} catch (error) { /* empty */ }
|
|
659
657
|
var state = enforceInternalState(value);
|
|
660
|
-
if (!hasOwn$
|
|
658
|
+
if (!hasOwn$6(state, 'source')) {
|
|
661
659
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
662
660
|
} return value;
|
|
663
661
|
};
|
|
@@ -665,32 +663,32 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
665
663
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
666
664
|
// eslint-disable-next-line no-extend-native -- required
|
|
667
665
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
668
|
-
return isCallable$
|
|
666
|
+
return isCallable$b(this) && getInternalState$1(this).source || inspectSource$2(this);
|
|
669
667
|
}, 'toString');
|
|
670
668
|
|
|
671
669
|
var makeBuiltIn$1 = makeBuiltInExports;
|
|
672
|
-
var defineProperty$
|
|
670
|
+
var defineProperty$4 = objectDefineProperty;
|
|
673
671
|
|
|
674
672
|
var defineBuiltInAccessor$2 = function (target, name, descriptor) {
|
|
675
673
|
if (descriptor.get) makeBuiltIn$1(descriptor.get, name, { getter: true });
|
|
676
674
|
if (descriptor.set) makeBuiltIn$1(descriptor.set, name, { setter: true });
|
|
677
|
-
return defineProperty$
|
|
675
|
+
return defineProperty$4.f(target, name, descriptor);
|
|
678
676
|
};
|
|
679
677
|
|
|
680
|
-
var DESCRIPTORS$
|
|
678
|
+
var DESCRIPTORS$5 = descriptors;
|
|
681
679
|
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
|
682
|
-
var uncurryThis$
|
|
680
|
+
var uncurryThis$j = functionUncurryThis;
|
|
683
681
|
var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
|
|
684
682
|
|
|
685
683
|
var FunctionPrototype$1 = Function.prototype;
|
|
686
|
-
var functionToString = uncurryThis$
|
|
684
|
+
var functionToString = uncurryThis$j(FunctionPrototype$1.toString);
|
|
687
685
|
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
|
688
|
-
var regExpExec$2 = uncurryThis$
|
|
686
|
+
var regExpExec$2 = uncurryThis$j(nameRE.exec);
|
|
689
687
|
var NAME = 'name';
|
|
690
688
|
|
|
691
689
|
// Function instances `.name` property
|
|
692
690
|
// https://tc39.es/ecma262/#sec-function-instances-name
|
|
693
|
-
if (DESCRIPTORS$
|
|
691
|
+
if (DESCRIPTORS$5 && !FUNCTION_NAME_EXISTS) {
|
|
694
692
|
defineBuiltInAccessor$1(FunctionPrototype$1, NAME, {
|
|
695
693
|
configurable: true,
|
|
696
694
|
get: function () {
|
|
@@ -757,7 +755,7 @@ exports.shellTypeEnum = void 0;
|
|
|
757
755
|
* @Date: 2023-03-22 19:45:54
|
|
758
756
|
* @Description:
|
|
759
757
|
* @LastEditors: Lanrri
|
|
760
|
-
* @LastEditTime: 2023-06-
|
|
758
|
+
* @LastEditTime: 2023-06-25 11:20:28
|
|
761
759
|
*/
|
|
762
760
|
exports.AppNameEnum = void 0;
|
|
763
761
|
(function (AppNameEnum) {
|
|
@@ -773,36 +771,36 @@ var objectPropertyIsEnumerable = {};
|
|
|
773
771
|
|
|
774
772
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
775
773
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
776
|
-
var getOwnPropertyDescriptor$
|
|
774
|
+
var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
777
775
|
|
|
778
776
|
// Nashorn ~ JDK8 bug
|
|
779
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
777
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
780
778
|
|
|
781
779
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
782
780
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
783
781
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
784
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
782
|
+
var descriptor = getOwnPropertyDescriptor$2(this, V);
|
|
785
783
|
return !!descriptor && descriptor.enumerable;
|
|
786
784
|
} : $propertyIsEnumerable;
|
|
787
785
|
|
|
788
|
-
var uncurryThis$
|
|
786
|
+
var uncurryThis$i = functionUncurryThis;
|
|
789
787
|
|
|
790
|
-
var toString$8 = uncurryThis$
|
|
791
|
-
var stringSlice$
|
|
788
|
+
var toString$8 = uncurryThis$i({}.toString);
|
|
789
|
+
var stringSlice$4 = uncurryThis$i(''.slice);
|
|
792
790
|
|
|
793
791
|
var classofRaw$2 = function (it) {
|
|
794
|
-
return stringSlice$
|
|
792
|
+
return stringSlice$4(toString$8(it), 8, -1);
|
|
795
793
|
};
|
|
796
794
|
|
|
797
|
-
var uncurryThis$
|
|
798
|
-
var fails$
|
|
795
|
+
var uncurryThis$h = functionUncurryThis;
|
|
796
|
+
var fails$f = fails$m;
|
|
799
797
|
var classof$8 = classofRaw$2;
|
|
800
798
|
|
|
801
799
|
var $Object$1 = Object;
|
|
802
|
-
var split = uncurryThis$
|
|
800
|
+
var split = uncurryThis$h(''.split);
|
|
803
801
|
|
|
804
802
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
805
|
-
var indexedObject = fails$
|
|
803
|
+
var indexedObject = fails$f(function () {
|
|
806
804
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
807
805
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
808
806
|
return !$Object$1('z').propertyIsEnumerable(0);
|
|
@@ -811,20 +809,20 @@ var indexedObject = fails$g(function () {
|
|
|
811
809
|
} : $Object$1;
|
|
812
810
|
|
|
813
811
|
// toObject with fallback for non-array-like ES3 strings
|
|
814
|
-
var IndexedObject$
|
|
812
|
+
var IndexedObject$2 = indexedObject;
|
|
815
813
|
var requireObjectCoercible$4 = requireObjectCoercible$6;
|
|
816
814
|
|
|
817
815
|
var toIndexedObject$4 = function (it) {
|
|
818
|
-
return IndexedObject$
|
|
816
|
+
return IndexedObject$2(requireObjectCoercible$4(it));
|
|
819
817
|
};
|
|
820
818
|
|
|
821
|
-
var DESCRIPTORS$
|
|
819
|
+
var DESCRIPTORS$4 = descriptors;
|
|
822
820
|
var call$e = functionCall;
|
|
823
821
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
824
822
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
825
823
|
var toIndexedObject$3 = toIndexedObject$4;
|
|
826
824
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
827
|
-
var hasOwn$
|
|
825
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
828
826
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
829
827
|
|
|
830
828
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -832,16 +830,16 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
|
832
830
|
|
|
833
831
|
// `Object.getOwnPropertyDescriptor` method
|
|
834
832
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
835
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
833
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
|
836
834
|
O = toIndexedObject$3(O);
|
|
837
835
|
P = toPropertyKey$1(P);
|
|
838
836
|
if (IE8_DOM_DEFINE) try {
|
|
839
837
|
return $getOwnPropertyDescriptor(O, P);
|
|
840
838
|
} catch (error) { /* empty */ }
|
|
841
|
-
if (hasOwn$
|
|
839
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
842
840
|
};
|
|
843
841
|
|
|
844
|
-
var isCallable$
|
|
842
|
+
var isCallable$a = isCallable$j;
|
|
845
843
|
var definePropertyModule$3 = objectDefineProperty;
|
|
846
844
|
var makeBuiltIn = makeBuiltInExports;
|
|
847
845
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
@@ -850,7 +848,7 @@ var defineBuiltIn$6 = function (O, key, value, options) {
|
|
|
850
848
|
if (!options) options = {};
|
|
851
849
|
var simple = options.enumerable;
|
|
852
850
|
var name = options.name !== undefined ? options.name : key;
|
|
853
|
-
if (isCallable$
|
|
851
|
+
if (isCallable$a(value)) makeBuiltIn(value, name, options);
|
|
854
852
|
if (options.global) {
|
|
855
853
|
if (simple) O[key] = value;
|
|
856
854
|
else defineGlobalProperty$1(key, value);
|
|
@@ -919,19 +917,19 @@ var toLength$2 = toLength$3;
|
|
|
919
917
|
|
|
920
918
|
// `LengthOfArrayLike` abstract operation
|
|
921
919
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
922
|
-
var lengthOfArrayLike$
|
|
920
|
+
var lengthOfArrayLike$4 = function (obj) {
|
|
923
921
|
return toLength$2(obj.length);
|
|
924
922
|
};
|
|
925
923
|
|
|
926
924
|
var toIndexedObject$2 = toIndexedObject$4;
|
|
927
925
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
928
|
-
var lengthOfArrayLike$
|
|
926
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$4;
|
|
929
927
|
|
|
930
928
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
931
|
-
var createMethod$
|
|
929
|
+
var createMethod$3 = function (IS_INCLUDES) {
|
|
932
930
|
return function ($this, el, fromIndex) {
|
|
933
931
|
var O = toIndexedObject$2($this);
|
|
934
|
-
var length = lengthOfArrayLike$
|
|
932
|
+
var length = lengthOfArrayLike$3(O);
|
|
935
933
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
936
934
|
var value;
|
|
937
935
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -950,28 +948,28 @@ var createMethod$4 = function (IS_INCLUDES) {
|
|
|
950
948
|
var arrayIncludes = {
|
|
951
949
|
// `Array.prototype.includes` method
|
|
952
950
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
953
|
-
includes: createMethod$
|
|
951
|
+
includes: createMethod$3(true),
|
|
954
952
|
// `Array.prototype.indexOf` method
|
|
955
953
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
956
|
-
indexOf: createMethod$
|
|
954
|
+
indexOf: createMethod$3(false)
|
|
957
955
|
};
|
|
958
956
|
|
|
959
|
-
var uncurryThis$
|
|
960
|
-
var hasOwn$
|
|
957
|
+
var uncurryThis$g = functionUncurryThis;
|
|
958
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
961
959
|
var toIndexedObject$1 = toIndexedObject$4;
|
|
962
960
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
963
961
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
964
962
|
|
|
965
|
-
var push$2 = uncurryThis$
|
|
963
|
+
var push$2 = uncurryThis$g([].push);
|
|
966
964
|
|
|
967
965
|
var objectKeysInternal = function (object, names) {
|
|
968
966
|
var O = toIndexedObject$1(object);
|
|
969
967
|
var i = 0;
|
|
970
968
|
var result = [];
|
|
971
969
|
var key;
|
|
972
|
-
for (key in O) !hasOwn$
|
|
970
|
+
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$2(result, key);
|
|
973
971
|
// Don't enum bug & hidden keys
|
|
974
|
-
while (names.length > i) if (hasOwn$
|
|
972
|
+
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
|
975
973
|
~indexOf$1(result, key) || push$2(result, key);
|
|
976
974
|
}
|
|
977
975
|
return result;
|
|
@@ -1006,12 +1004,12 @@ var objectGetOwnPropertySymbols = {};
|
|
|
1006
1004
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
1007
1005
|
|
|
1008
1006
|
var getBuiltIn$5 = getBuiltIn$7;
|
|
1009
|
-
var uncurryThis$
|
|
1007
|
+
var uncurryThis$f = functionUncurryThis;
|
|
1010
1008
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1011
1009
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1012
1010
|
var anObject$d = anObject$f;
|
|
1013
1011
|
|
|
1014
|
-
var concat$2 = uncurryThis$
|
|
1012
|
+
var concat$2 = uncurryThis$f([].concat);
|
|
1015
1013
|
|
|
1016
1014
|
// all object keys, includes non-enumerable and symbols
|
|
1017
1015
|
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
@@ -1020,53 +1018,53 @@ var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
1020
1018
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
1021
1019
|
};
|
|
1022
1020
|
|
|
1023
|
-
var hasOwn$
|
|
1021
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1024
1022
|
var ownKeys = ownKeys$1;
|
|
1025
1023
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1026
1024
|
var definePropertyModule$2 = objectDefineProperty;
|
|
1027
1025
|
|
|
1028
|
-
var copyConstructorProperties$
|
|
1026
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
1029
1027
|
var keys = ownKeys(source);
|
|
1030
1028
|
var defineProperty = definePropertyModule$2.f;
|
|
1031
1029
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1032
1030
|
for (var i = 0; i < keys.length; i++) {
|
|
1033
1031
|
var key = keys[i];
|
|
1034
|
-
if (!hasOwn$
|
|
1032
|
+
if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
|
|
1035
1033
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1036
1034
|
}
|
|
1037
1035
|
}
|
|
1038
1036
|
};
|
|
1039
1037
|
|
|
1040
|
-
var fails$
|
|
1041
|
-
var isCallable$
|
|
1038
|
+
var fails$e = fails$m;
|
|
1039
|
+
var isCallable$9 = isCallable$j;
|
|
1042
1040
|
|
|
1043
1041
|
var replacement = /#|\.prototype\./;
|
|
1044
1042
|
|
|
1045
|
-
var isForced$
|
|
1043
|
+
var isForced$2 = function (feature, detection) {
|
|
1046
1044
|
var value = data[normalize(feature)];
|
|
1047
1045
|
return value == POLYFILL ? true
|
|
1048
1046
|
: value == NATIVE ? false
|
|
1049
|
-
: isCallable$
|
|
1047
|
+
: isCallable$9(detection) ? fails$e(detection)
|
|
1050
1048
|
: !!detection;
|
|
1051
1049
|
};
|
|
1052
1050
|
|
|
1053
|
-
var normalize = isForced$
|
|
1051
|
+
var normalize = isForced$2.normalize = function (string) {
|
|
1054
1052
|
return String(string).replace(replacement, '.').toLowerCase();
|
|
1055
1053
|
};
|
|
1056
1054
|
|
|
1057
|
-
var data = isForced$
|
|
1058
|
-
var NATIVE = isForced$
|
|
1059
|
-
var POLYFILL = isForced$
|
|
1055
|
+
var data = isForced$2.data = {};
|
|
1056
|
+
var NATIVE = isForced$2.NATIVE = 'N';
|
|
1057
|
+
var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
1060
1058
|
|
|
1061
|
-
var isForced_1 = isForced$
|
|
1059
|
+
var isForced_1 = isForced$2;
|
|
1062
1060
|
|
|
1063
|
-
var global$
|
|
1064
|
-
var getOwnPropertyDescriptor$
|
|
1061
|
+
var global$b = global$k;
|
|
1062
|
+
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
1065
1063
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
1066
1064
|
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
1067
1065
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1068
|
-
var copyConstructorProperties
|
|
1069
|
-
var isForced$
|
|
1066
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1067
|
+
var isForced$1 = isForced_1;
|
|
1070
1068
|
|
|
1071
1069
|
/*
|
|
1072
1070
|
options.target - name of the target object
|
|
@@ -1089,23 +1087,23 @@ var _export = function (options, source) {
|
|
|
1089
1087
|
var STATIC = options.stat;
|
|
1090
1088
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
1091
1089
|
if (GLOBAL) {
|
|
1092
|
-
target = global$
|
|
1090
|
+
target = global$b;
|
|
1093
1091
|
} else if (STATIC) {
|
|
1094
|
-
target = global$
|
|
1092
|
+
target = global$b[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1095
1093
|
} else {
|
|
1096
|
-
target = (global$
|
|
1094
|
+
target = (global$b[TARGET] || {}).prototype;
|
|
1097
1095
|
}
|
|
1098
1096
|
if (target) for (key in source) {
|
|
1099
1097
|
sourceProperty = source[key];
|
|
1100
1098
|
if (options.dontCallGetSet) {
|
|
1101
|
-
descriptor = getOwnPropertyDescriptor$
|
|
1099
|
+
descriptor = getOwnPropertyDescriptor$1(target, key);
|
|
1102
1100
|
targetProperty = descriptor && descriptor.value;
|
|
1103
1101
|
} else targetProperty = target[key];
|
|
1104
|
-
FORCED = isForced$
|
|
1102
|
+
FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
1105
1103
|
// contained in target
|
|
1106
1104
|
if (!FORCED && targetProperty !== undefined) {
|
|
1107
1105
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
1108
|
-
copyConstructorProperties
|
|
1106
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
|
1109
1107
|
}
|
|
1110
1108
|
// add a flag to not completely full polyfills
|
|
1111
1109
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
@@ -1116,24 +1114,24 @@ var _export = function (options, source) {
|
|
|
1116
1114
|
};
|
|
1117
1115
|
|
|
1118
1116
|
var classofRaw$1 = classofRaw$2;
|
|
1119
|
-
var uncurryThis$
|
|
1117
|
+
var uncurryThis$e = functionUncurryThis;
|
|
1120
1118
|
|
|
1121
1119
|
var functionUncurryThisClause = function (fn) {
|
|
1122
1120
|
// Nashorn bug:
|
|
1123
1121
|
// https://github.com/zloirock/core-js/issues/1128
|
|
1124
1122
|
// https://github.com/zloirock/core-js/issues/1130
|
|
1125
|
-
if (classofRaw$1(fn) === 'Function') return uncurryThis$
|
|
1123
|
+
if (classofRaw$1(fn) === 'Function') return uncurryThis$e(fn);
|
|
1126
1124
|
};
|
|
1127
1125
|
|
|
1128
|
-
var uncurryThis$
|
|
1129
|
-
var aCallable$
|
|
1126
|
+
var uncurryThis$d = functionUncurryThisClause;
|
|
1127
|
+
var aCallable$6 = aCallable$8;
|
|
1130
1128
|
var NATIVE_BIND$1 = functionBindNative;
|
|
1131
1129
|
|
|
1132
|
-
var bind$5 = uncurryThis$
|
|
1130
|
+
var bind$5 = uncurryThis$d(uncurryThis$d.bind);
|
|
1133
1131
|
|
|
1134
1132
|
// optional / simple context binding
|
|
1135
1133
|
var functionBindContext = function (fn, that) {
|
|
1136
|
-
aCallable$
|
|
1134
|
+
aCallable$6(fn);
|
|
1137
1135
|
return that === undefined ? fn : NATIVE_BIND$1 ? bind$5(fn, that) : function (/* ...args */) {
|
|
1138
1136
|
return fn.apply(that, arguments);
|
|
1139
1137
|
};
|
|
@@ -1158,7 +1156,7 @@ test[TO_STRING_TAG$2] = 'z';
|
|
|
1158
1156
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1159
1157
|
|
|
1160
1158
|
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
|
|
1161
|
-
var isCallable$
|
|
1159
|
+
var isCallable$8 = isCallable$j;
|
|
1162
1160
|
var classofRaw = classofRaw$2;
|
|
1163
1161
|
var wellKnownSymbol$d = wellKnownSymbol$g;
|
|
1164
1162
|
|
|
@@ -1184,12 +1182,12 @@ var classof$6 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
|
|
|
1184
1182
|
// builtinTag case
|
|
1185
1183
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1186
1184
|
// ES3 arguments fallback
|
|
1187
|
-
: (result = classofRaw(O)) == 'Object' && isCallable$
|
|
1185
|
+
: (result = classofRaw(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
|
|
1188
1186
|
};
|
|
1189
1187
|
|
|
1190
|
-
var uncurryThis$
|
|
1191
|
-
var fails$
|
|
1192
|
-
var isCallable$
|
|
1188
|
+
var uncurryThis$c = functionUncurryThis;
|
|
1189
|
+
var fails$d = fails$m;
|
|
1190
|
+
var isCallable$7 = isCallable$j;
|
|
1193
1191
|
var classof$5 = classof$6;
|
|
1194
1192
|
var getBuiltIn$4 = getBuiltIn$7;
|
|
1195
1193
|
var inspectSource$1 = inspectSource$3;
|
|
@@ -1198,11 +1196,11 @@ var noop = function () { /* empty */ };
|
|
|
1198
1196
|
var empty = [];
|
|
1199
1197
|
var construct = getBuiltIn$4('Reflect', 'construct');
|
|
1200
1198
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1201
|
-
var exec$2 = uncurryThis$
|
|
1199
|
+
var exec$2 = uncurryThis$c(constructorRegExp.exec);
|
|
1202
1200
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1203
1201
|
|
|
1204
1202
|
var isConstructorModern = function isConstructor(argument) {
|
|
1205
|
-
if (!isCallable$
|
|
1203
|
+
if (!isCallable$7(argument)) return false;
|
|
1206
1204
|
try {
|
|
1207
1205
|
construct(noop, empty, argument);
|
|
1208
1206
|
return true;
|
|
@@ -1212,7 +1210,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1212
1210
|
};
|
|
1213
1211
|
|
|
1214
1212
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1215
|
-
if (!isCallable$
|
|
1213
|
+
if (!isCallable$7(argument)) return false;
|
|
1216
1214
|
switch (classof$5(argument)) {
|
|
1217
1215
|
case 'AsyncFunction':
|
|
1218
1216
|
case 'GeneratorFunction':
|
|
@@ -1232,7 +1230,7 @@ isConstructorLegacy.sham = true;
|
|
|
1232
1230
|
|
|
1233
1231
|
// `IsConstructor` abstract operation
|
|
1234
1232
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1235
|
-
var isConstructor$2 = !construct || fails$
|
|
1233
|
+
var isConstructor$2 = !construct || fails$d(function () {
|
|
1236
1234
|
var called;
|
|
1237
1235
|
return isConstructorModern(isConstructorModern.call)
|
|
1238
1236
|
|| !isConstructorModern(Object)
|
|
@@ -1242,7 +1240,7 @@ var isConstructor$2 = !construct || fails$e(function () {
|
|
|
1242
1240
|
|
|
1243
1241
|
var isArray$2 = isArray$3;
|
|
1244
1242
|
var isConstructor$1 = isConstructor$2;
|
|
1245
|
-
var isObject$
|
|
1243
|
+
var isObject$3 = isObject$9;
|
|
1246
1244
|
var wellKnownSymbol$c = wellKnownSymbol$g;
|
|
1247
1245
|
|
|
1248
1246
|
var SPECIES$5 = wellKnownSymbol$c('species');
|
|
@@ -1256,7 +1254,7 @@ var arraySpeciesConstructor$1 = function (originalArray) {
|
|
|
1256
1254
|
C = originalArray.constructor;
|
|
1257
1255
|
// cross-realm fallback
|
|
1258
1256
|
if (isConstructor$1(C) && (C === $Array || isArray$2(C.prototype))) C = undefined;
|
|
1259
|
-
else if (isObject$
|
|
1257
|
+
else if (isObject$3(C)) {
|
|
1260
1258
|
C = C[SPECIES$5];
|
|
1261
1259
|
if (C === null) C = undefined;
|
|
1262
1260
|
}
|
|
@@ -1272,16 +1270,16 @@ var arraySpeciesCreate$2 = function (originalArray, length) {
|
|
|
1272
1270
|
};
|
|
1273
1271
|
|
|
1274
1272
|
var bind$4 = functionBindContext;
|
|
1275
|
-
var uncurryThis$
|
|
1276
|
-
var IndexedObject$
|
|
1277
|
-
var toObject$
|
|
1278
|
-
var lengthOfArrayLike$
|
|
1273
|
+
var uncurryThis$b = functionUncurryThis;
|
|
1274
|
+
var IndexedObject$1 = indexedObject;
|
|
1275
|
+
var toObject$3 = toObject$5;
|
|
1276
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$4;
|
|
1279
1277
|
var arraySpeciesCreate$1 = arraySpeciesCreate$2;
|
|
1280
1278
|
|
|
1281
|
-
var push$1 = uncurryThis$
|
|
1279
|
+
var push$1 = uncurryThis$b([].push);
|
|
1282
1280
|
|
|
1283
1281
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
1284
|
-
var createMethod$
|
|
1282
|
+
var createMethod$2 = function (TYPE) {
|
|
1285
1283
|
var IS_MAP = TYPE == 1;
|
|
1286
1284
|
var IS_FILTER = TYPE == 2;
|
|
1287
1285
|
var IS_SOME = TYPE == 3;
|
|
@@ -1290,10 +1288,10 @@ var createMethod$3 = function (TYPE) {
|
|
|
1290
1288
|
var IS_FILTER_REJECT = TYPE == 7;
|
|
1291
1289
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
1292
1290
|
return function ($this, callbackfn, that, specificCreate) {
|
|
1293
|
-
var O = toObject$
|
|
1294
|
-
var self = IndexedObject$
|
|
1291
|
+
var O = toObject$3($this);
|
|
1292
|
+
var self = IndexedObject$1(O);
|
|
1295
1293
|
var boundFunction = bind$4(callbackfn, that);
|
|
1296
|
-
var length = lengthOfArrayLike$
|
|
1294
|
+
var length = lengthOfArrayLike$2(self);
|
|
1297
1295
|
var index = 0;
|
|
1298
1296
|
var create = specificCreate || arraySpeciesCreate$1;
|
|
1299
1297
|
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
|
@@ -1321,31 +1319,31 @@ var createMethod$3 = function (TYPE) {
|
|
|
1321
1319
|
var arrayIteration = {
|
|
1322
1320
|
// `Array.prototype.forEach` method
|
|
1323
1321
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1324
|
-
forEach: createMethod$
|
|
1322
|
+
forEach: createMethod$2(0),
|
|
1325
1323
|
// `Array.prototype.map` method
|
|
1326
1324
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
1327
|
-
map: createMethod$
|
|
1325
|
+
map: createMethod$2(1),
|
|
1328
1326
|
// `Array.prototype.filter` method
|
|
1329
1327
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
1330
|
-
filter: createMethod$
|
|
1328
|
+
filter: createMethod$2(2),
|
|
1331
1329
|
// `Array.prototype.some` method
|
|
1332
1330
|
// https://tc39.es/ecma262/#sec-array.prototype.some
|
|
1333
|
-
some: createMethod$
|
|
1331
|
+
some: createMethod$2(3),
|
|
1334
1332
|
// `Array.prototype.every` method
|
|
1335
1333
|
// https://tc39.es/ecma262/#sec-array.prototype.every
|
|
1336
|
-
every: createMethod$
|
|
1334
|
+
every: createMethod$2(4),
|
|
1337
1335
|
// `Array.prototype.find` method
|
|
1338
1336
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
1339
|
-
find: createMethod$
|
|
1337
|
+
find: createMethod$2(5),
|
|
1340
1338
|
// `Array.prototype.findIndex` method
|
|
1341
1339
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
|
1342
|
-
findIndex: createMethod$
|
|
1340
|
+
findIndex: createMethod$2(6),
|
|
1343
1341
|
// `Array.prototype.filterReject` method
|
|
1344
1342
|
// https://github.com/tc39/proposal-array-filtering
|
|
1345
|
-
filterReject: createMethod$
|
|
1343
|
+
filterReject: createMethod$2(7)
|
|
1346
1344
|
};
|
|
1347
1345
|
|
|
1348
|
-
var fails$
|
|
1346
|
+
var fails$c = fails$m;
|
|
1349
1347
|
var wellKnownSymbol$b = wellKnownSymbol$g;
|
|
1350
1348
|
var V8_VERSION$2 = engineV8Version;
|
|
1351
1349
|
|
|
@@ -1355,7 +1353,7 @@ var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
|
|
|
1355
1353
|
// We can't use this feature detection in V8 since it causes
|
|
1356
1354
|
// deoptimization and serious performance degradation
|
|
1357
1355
|
// https://github.com/zloirock/core-js/issues/677
|
|
1358
|
-
return V8_VERSION$2 >= 51 || !fails$
|
|
1356
|
+
return V8_VERSION$2 >= 51 || !fails$c(function () {
|
|
1359
1357
|
var array = [];
|
|
1360
1358
|
var constructor = array.constructor = {};
|
|
1361
1359
|
constructor[SPECIES$4] = function () {
|
|
@@ -1365,7 +1363,7 @@ var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
|
|
|
1365
1363
|
});
|
|
1366
1364
|
};
|
|
1367
1365
|
|
|
1368
|
-
var $$
|
|
1366
|
+
var $$h = _export;
|
|
1369
1367
|
var $map = arrayIteration.map;
|
|
1370
1368
|
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
|
|
1371
1369
|
|
|
@@ -1374,7 +1372,7 @@ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('map');
|
|
|
1374
1372
|
// `Array.prototype.map` method
|
|
1375
1373
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
1376
1374
|
// with adding support of @@species
|
|
1377
|
-
$$
|
|
1375
|
+
$$h({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
1378
1376
|
map: function map(callbackfn /* , thisArg */) {
|
|
1379
1377
|
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
1380
1378
|
}
|
|
@@ -1393,17 +1391,17 @@ var toString$7 = function (argument) {
|
|
|
1393
1391
|
var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
1394
1392
|
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
1395
1393
|
|
|
1396
|
-
var uncurryThis$
|
|
1394
|
+
var uncurryThis$a = functionUncurryThis;
|
|
1397
1395
|
var requireObjectCoercible$3 = requireObjectCoercible$6;
|
|
1398
1396
|
var toString$6 = toString$7;
|
|
1399
1397
|
var whitespaces$2 = whitespaces$3;
|
|
1400
1398
|
|
|
1401
|
-
var replace$2 = uncurryThis$
|
|
1399
|
+
var replace$2 = uncurryThis$a(''.replace);
|
|
1402
1400
|
var ltrim = RegExp('^[' + whitespaces$2 + ']+');
|
|
1403
1401
|
var rtrim = RegExp('(^|[^' + whitespaces$2 + '])[' + whitespaces$2 + ']+$');
|
|
1404
1402
|
|
|
1405
1403
|
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
1406
|
-
var createMethod$
|
|
1404
|
+
var createMethod$1 = function (TYPE) {
|
|
1407
1405
|
return function ($this) {
|
|
1408
1406
|
var string = toString$6(requireObjectCoercible$3($this));
|
|
1409
1407
|
if (TYPE & 1) string = replace$2(string, ltrim, '');
|
|
@@ -1415,61 +1413,61 @@ var createMethod$2 = function (TYPE) {
|
|
|
1415
1413
|
var stringTrim = {
|
|
1416
1414
|
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1417
1415
|
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1418
|
-
start: createMethod$
|
|
1416
|
+
start: createMethod$1(1),
|
|
1419
1417
|
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1420
1418
|
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1421
|
-
end: createMethod$
|
|
1419
|
+
end: createMethod$1(2),
|
|
1422
1420
|
// `String.prototype.trim` method
|
|
1423
1421
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1424
|
-
trim: createMethod$
|
|
1422
|
+
trim: createMethod$1(3)
|
|
1425
1423
|
};
|
|
1426
1424
|
|
|
1427
|
-
var global$
|
|
1428
|
-
var fails$
|
|
1429
|
-
var uncurryThis$
|
|
1425
|
+
var global$a = global$k;
|
|
1426
|
+
var fails$b = fails$m;
|
|
1427
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1430
1428
|
var toString$5 = toString$7;
|
|
1431
|
-
var trim
|
|
1429
|
+
var trim = stringTrim.trim;
|
|
1432
1430
|
var whitespaces$1 = whitespaces$3;
|
|
1433
1431
|
|
|
1434
|
-
var $parseInt$1 = global$
|
|
1435
|
-
var Symbol$1 = global$
|
|
1432
|
+
var $parseInt$1 = global$a.parseInt;
|
|
1433
|
+
var Symbol$1 = global$a.Symbol;
|
|
1436
1434
|
var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
|
|
1437
1435
|
var hex = /^[+-]?0x/i;
|
|
1438
|
-
var exec$1 = uncurryThis$
|
|
1439
|
-
var FORCED$
|
|
1436
|
+
var exec$1 = uncurryThis$9(hex.exec);
|
|
1437
|
+
var FORCED$2 = $parseInt$1(whitespaces$1 + '08') !== 8 || $parseInt$1(whitespaces$1 + '0x16') !== 22
|
|
1440
1438
|
// MS Edge 18- broken with boxed symbols
|
|
1441
|
-
|| (ITERATOR$3 && !fails$
|
|
1439
|
+
|| (ITERATOR$3 && !fails$b(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
|
1442
1440
|
|
|
1443
1441
|
// `parseInt` method
|
|
1444
1442
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1445
|
-
var numberParseInt = FORCED$
|
|
1446
|
-
var S = trim
|
|
1443
|
+
var numberParseInt = FORCED$2 ? function parseInt(string, radix) {
|
|
1444
|
+
var S = trim(toString$5(string));
|
|
1447
1445
|
return $parseInt$1(S, (radix >>> 0) || (exec$1(hex, S) ? 16 : 10));
|
|
1448
1446
|
} : $parseInt$1;
|
|
1449
1447
|
|
|
1450
|
-
var $$
|
|
1448
|
+
var $$g = _export;
|
|
1451
1449
|
var $parseInt = numberParseInt;
|
|
1452
1450
|
|
|
1453
1451
|
// `parseInt` method
|
|
1454
1452
|
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
1455
|
-
$$
|
|
1453
|
+
$$g({ global: true, forced: parseInt != $parseInt }, {
|
|
1456
1454
|
parseInt: $parseInt
|
|
1457
1455
|
});
|
|
1458
1456
|
|
|
1459
|
-
var fails$
|
|
1457
|
+
var fails$a = fails$m;
|
|
1460
1458
|
|
|
1461
|
-
var arrayMethodIsStrict$
|
|
1459
|
+
var arrayMethodIsStrict$3 = function (METHOD_NAME, argument) {
|
|
1462
1460
|
var method = [][METHOD_NAME];
|
|
1463
|
-
return !!method && fails$
|
|
1461
|
+
return !!method && fails$a(function () {
|
|
1464
1462
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1465
1463
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1466
1464
|
});
|
|
1467
1465
|
};
|
|
1468
1466
|
|
|
1469
1467
|
var $forEach = arrayIteration.forEach;
|
|
1470
|
-
var arrayMethodIsStrict$
|
|
1468
|
+
var arrayMethodIsStrict$2 = arrayMethodIsStrict$3;
|
|
1471
1469
|
|
|
1472
|
-
var STRICT_METHOD$1 = arrayMethodIsStrict$
|
|
1470
|
+
var STRICT_METHOD$1 = arrayMethodIsStrict$2('forEach');
|
|
1473
1471
|
|
|
1474
1472
|
// `Array.prototype.forEach` method implementation
|
|
1475
1473
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
@@ -1478,13 +1476,13 @@ var arrayForEach = !STRICT_METHOD$1 ? function forEach(callbackfn /* , thisArg *
|
|
|
1478
1476
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1479
1477
|
} : [].forEach;
|
|
1480
1478
|
|
|
1481
|
-
var $$
|
|
1479
|
+
var $$f = _export;
|
|
1482
1480
|
var forEach$1 = arrayForEach;
|
|
1483
1481
|
|
|
1484
1482
|
// `Array.prototype.forEach` method
|
|
1485
1483
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
1486
1484
|
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1487
|
-
$$
|
|
1485
|
+
$$f({ target: 'Array', proto: true, forced: [].forEach != forEach$1 }, {
|
|
1488
1486
|
forEach: forEach$1
|
|
1489
1487
|
});
|
|
1490
1488
|
|
|
@@ -1551,7 +1549,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1551
1549
|
|
|
1552
1550
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1553
1551
|
|
|
1554
|
-
var global$
|
|
1552
|
+
var global$9 = global$k;
|
|
1555
1553
|
var DOMIterables = domIterables;
|
|
1556
1554
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1557
1555
|
var forEach = arrayForEach;
|
|
@@ -1568,7 +1566,7 @@ var handlePrototype = function (CollectionPrototype) {
|
|
|
1568
1566
|
|
|
1569
1567
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1570
1568
|
if (DOMIterables[COLLECTION_NAME]) {
|
|
1571
|
-
handlePrototype(global$
|
|
1569
|
+
handlePrototype(global$9[COLLECTION_NAME] && global$9[COLLECTION_NAME].prototype);
|
|
1572
1570
|
}
|
|
1573
1571
|
}
|
|
1574
1572
|
|
|
@@ -1578,24 +1576,24 @@ var classof$2 = classofRaw$2;
|
|
|
1578
1576
|
|
|
1579
1577
|
var engineIsNode = typeof process != 'undefined' && classof$2(process) == 'process';
|
|
1580
1578
|
|
|
1581
|
-
var uncurryThis$
|
|
1582
|
-
var aCallable$
|
|
1579
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1580
|
+
var aCallable$5 = aCallable$8;
|
|
1583
1581
|
|
|
1584
1582
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1585
1583
|
try {
|
|
1586
1584
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1587
|
-
return uncurryThis$
|
|
1585
|
+
return uncurryThis$8(aCallable$5(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1588
1586
|
} catch (error) { /* empty */ }
|
|
1589
1587
|
};
|
|
1590
1588
|
|
|
1591
|
-
var isCallable$
|
|
1589
|
+
var isCallable$6 = isCallable$j;
|
|
1592
1590
|
|
|
1593
1591
|
var $String = String;
|
|
1594
|
-
var $TypeError$
|
|
1592
|
+
var $TypeError$8 = TypeError;
|
|
1595
1593
|
|
|
1596
1594
|
var aPossiblePrototype$1 = function (argument) {
|
|
1597
|
-
if (typeof argument == 'object' || isCallable$
|
|
1598
|
-
throw $TypeError$
|
|
1595
|
+
if (typeof argument == 'object' || isCallable$6(argument)) return argument;
|
|
1596
|
+
throw $TypeError$8("Can't set " + $String(argument) + ' as a prototype');
|
|
1599
1597
|
};
|
|
1600
1598
|
|
|
1601
1599
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1626,30 +1624,30 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1626
1624
|
};
|
|
1627
1625
|
}() : undefined);
|
|
1628
1626
|
|
|
1629
|
-
var defineProperty$
|
|
1630
|
-
var hasOwn$
|
|
1627
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
1628
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1631
1629
|
var wellKnownSymbol$a = wellKnownSymbol$g;
|
|
1632
1630
|
|
|
1633
1631
|
var TO_STRING_TAG = wellKnownSymbol$a('toStringTag');
|
|
1634
1632
|
|
|
1635
1633
|
var setToStringTag$1 = function (target, TAG, STATIC) {
|
|
1636
1634
|
if (target && !STATIC) target = target.prototype;
|
|
1637
|
-
if (target && !hasOwn$
|
|
1638
|
-
defineProperty$
|
|
1635
|
+
if (target && !hasOwn$2(target, TO_STRING_TAG)) {
|
|
1636
|
+
defineProperty$3(target, TO_STRING_TAG, { configurable: true, value: TAG });
|
|
1639
1637
|
}
|
|
1640
1638
|
};
|
|
1641
1639
|
|
|
1642
1640
|
var getBuiltIn$3 = getBuiltIn$7;
|
|
1643
1641
|
var defineBuiltInAccessor = defineBuiltInAccessor$2;
|
|
1644
1642
|
var wellKnownSymbol$9 = wellKnownSymbol$g;
|
|
1645
|
-
var DESCRIPTORS$
|
|
1643
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1646
1644
|
|
|
1647
1645
|
var SPECIES$3 = wellKnownSymbol$9('species');
|
|
1648
1646
|
|
|
1649
1647
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
1650
1648
|
var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME);
|
|
1651
1649
|
|
|
1652
|
-
if (DESCRIPTORS$
|
|
1650
|
+
if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$3]) {
|
|
1653
1651
|
defineBuiltInAccessor(Constructor, SPECIES$3, {
|
|
1654
1652
|
configurable: true,
|
|
1655
1653
|
get: function () { return this; }
|
|
@@ -1657,24 +1655,24 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
1657
1655
|
}
|
|
1658
1656
|
};
|
|
1659
1657
|
|
|
1660
|
-
var isPrototypeOf$
|
|
1658
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1661
1659
|
|
|
1662
|
-
var $TypeError$
|
|
1660
|
+
var $TypeError$7 = TypeError;
|
|
1663
1661
|
|
|
1664
1662
|
var anInstance$1 = function (it, Prototype) {
|
|
1665
|
-
if (isPrototypeOf$
|
|
1666
|
-
throw $TypeError$
|
|
1663
|
+
if (isPrototypeOf$2(Prototype, it)) return it;
|
|
1664
|
+
throw $TypeError$7('Incorrect invocation');
|
|
1667
1665
|
};
|
|
1668
1666
|
|
|
1669
1667
|
var isConstructor = isConstructor$2;
|
|
1670
1668
|
var tryToString$2 = tryToString$4;
|
|
1671
1669
|
|
|
1672
|
-
var $TypeError$
|
|
1670
|
+
var $TypeError$6 = TypeError;
|
|
1673
1671
|
|
|
1674
1672
|
// `Assert: IsConstructor(argument) is true`
|
|
1675
1673
|
var aConstructor$1 = function (argument) {
|
|
1676
1674
|
if (isConstructor(argument)) return argument;
|
|
1677
|
-
throw $TypeError$
|
|
1675
|
+
throw $TypeError$6(tryToString$2(argument) + ' is not a constructor');
|
|
1678
1676
|
};
|
|
1679
1677
|
|
|
1680
1678
|
var anObject$b = anObject$f;
|
|
@@ -1707,14 +1705,14 @@ var getBuiltIn$2 = getBuiltIn$7;
|
|
|
1707
1705
|
|
|
1708
1706
|
var html$2 = getBuiltIn$2('document', 'documentElement');
|
|
1709
1707
|
|
|
1710
|
-
var uncurryThis$
|
|
1708
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1711
1709
|
|
|
1712
|
-
var arraySlice$1 = uncurryThis$
|
|
1710
|
+
var arraySlice$1 = uncurryThis$7([].slice);
|
|
1713
1711
|
|
|
1714
|
-
var $TypeError$
|
|
1712
|
+
var $TypeError$5 = TypeError;
|
|
1715
1713
|
|
|
1716
1714
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
1717
|
-
if (passed < required) throw $TypeError$
|
|
1715
|
+
if (passed < required) throw $TypeError$5('Not enough arguments');
|
|
1718
1716
|
return passed;
|
|
1719
1717
|
};
|
|
1720
1718
|
|
|
@@ -1723,38 +1721,38 @@ var userAgent$2 = engineUserAgent;
|
|
|
1723
1721
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
1724
1722
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
1725
1723
|
|
|
1726
|
-
var global$
|
|
1724
|
+
var global$8 = global$k;
|
|
1727
1725
|
var apply$1 = functionApply;
|
|
1728
1726
|
var bind$3 = functionBindContext;
|
|
1729
|
-
var isCallable$
|
|
1730
|
-
var hasOwn$
|
|
1731
|
-
var fails$
|
|
1727
|
+
var isCallable$5 = isCallable$j;
|
|
1728
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1729
|
+
var fails$9 = fails$m;
|
|
1732
1730
|
var html$1 = html$2;
|
|
1733
1731
|
var arraySlice = arraySlice$1;
|
|
1734
1732
|
var createElement = documentCreateElement$2;
|
|
1735
1733
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
1736
1734
|
var IS_IOS$1 = engineIsIos;
|
|
1737
|
-
var IS_NODE$
|
|
1738
|
-
|
|
1739
|
-
var set = global$
|
|
1740
|
-
var clear = global$
|
|
1741
|
-
var process$3 = global$
|
|
1742
|
-
var Dispatch = global$
|
|
1743
|
-
var Function$1 = global$
|
|
1744
|
-
var MessageChannel = global$
|
|
1745
|
-
var String$1 = global$
|
|
1735
|
+
var IS_NODE$3 = engineIsNode;
|
|
1736
|
+
|
|
1737
|
+
var set = global$8.setImmediate;
|
|
1738
|
+
var clear = global$8.clearImmediate;
|
|
1739
|
+
var process$3 = global$8.process;
|
|
1740
|
+
var Dispatch = global$8.Dispatch;
|
|
1741
|
+
var Function$1 = global$8.Function;
|
|
1742
|
+
var MessageChannel = global$8.MessageChannel;
|
|
1743
|
+
var String$1 = global$8.String;
|
|
1746
1744
|
var counter = 0;
|
|
1747
1745
|
var queue$2 = {};
|
|
1748
1746
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
1749
1747
|
var $location, defer, channel, port;
|
|
1750
1748
|
|
|
1751
|
-
fails$
|
|
1749
|
+
fails$9(function () {
|
|
1752
1750
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
1753
|
-
$location = global$
|
|
1751
|
+
$location = global$8.location;
|
|
1754
1752
|
});
|
|
1755
1753
|
|
|
1756
1754
|
var run = function (id) {
|
|
1757
|
-
if (hasOwn$
|
|
1755
|
+
if (hasOwn$1(queue$2, id)) {
|
|
1758
1756
|
var fn = queue$2[id];
|
|
1759
1757
|
delete queue$2[id];
|
|
1760
1758
|
fn();
|
|
@@ -1773,14 +1771,14 @@ var eventListener = function (event) {
|
|
|
1773
1771
|
|
|
1774
1772
|
var globalPostMessageDefer = function (id) {
|
|
1775
1773
|
// old engines have not location.origin
|
|
1776
|
-
global$
|
|
1774
|
+
global$8.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
1777
1775
|
};
|
|
1778
1776
|
|
|
1779
1777
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
1780
1778
|
if (!set || !clear) {
|
|
1781
1779
|
set = function setImmediate(handler) {
|
|
1782
1780
|
validateArgumentsLength(arguments.length, 1);
|
|
1783
|
-
var fn = isCallable$
|
|
1781
|
+
var fn = isCallable$5(handler) ? handler : Function$1(handler);
|
|
1784
1782
|
var args = arraySlice(arguments, 1);
|
|
1785
1783
|
queue$2[++counter] = function () {
|
|
1786
1784
|
apply$1(fn, undefined, args);
|
|
@@ -1792,7 +1790,7 @@ if (!set || !clear) {
|
|
|
1792
1790
|
delete queue$2[id];
|
|
1793
1791
|
};
|
|
1794
1792
|
// Node.js 0.8-
|
|
1795
|
-
if (IS_NODE$
|
|
1793
|
+
if (IS_NODE$3) {
|
|
1796
1794
|
defer = function (id) {
|
|
1797
1795
|
process$3.nextTick(runner(id));
|
|
1798
1796
|
};
|
|
@@ -1811,14 +1809,14 @@ if (!set || !clear) {
|
|
|
1811
1809
|
// Browsers with postMessage, skip WebWorkers
|
|
1812
1810
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
1813
1811
|
} else if (
|
|
1814
|
-
global$
|
|
1815
|
-
isCallable$
|
|
1816
|
-
!global$
|
|
1812
|
+
global$8.addEventListener &&
|
|
1813
|
+
isCallable$5(global$8.postMessage) &&
|
|
1814
|
+
!global$8.importScripts &&
|
|
1817
1815
|
$location && $location.protocol !== 'file:' &&
|
|
1818
|
-
!fails$
|
|
1816
|
+
!fails$9(globalPostMessageDefer)
|
|
1819
1817
|
) {
|
|
1820
1818
|
defer = globalPostMessageDefer;
|
|
1821
|
-
global$
|
|
1819
|
+
global$8.addEventListener('message', eventListener, false);
|
|
1822
1820
|
// IE8-
|
|
1823
1821
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
1824
1822
|
defer = function (id) {
|
|
@@ -1873,22 +1871,22 @@ var userAgent = engineUserAgent;
|
|
|
1873
1871
|
|
|
1874
1872
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
1875
1873
|
|
|
1876
|
-
var global$
|
|
1874
|
+
var global$7 = global$k;
|
|
1877
1875
|
var bind$2 = functionBindContext;
|
|
1878
|
-
var getOwnPropertyDescriptor
|
|
1876
|
+
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1879
1877
|
var macrotask = task$1.set;
|
|
1880
1878
|
var Queue$1 = queue$1;
|
|
1881
1879
|
var IS_IOS = engineIsIos;
|
|
1882
1880
|
var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
1883
1881
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
1884
|
-
var IS_NODE$
|
|
1882
|
+
var IS_NODE$2 = engineIsNode;
|
|
1885
1883
|
|
|
1886
|
-
var MutationObserver = global$
|
|
1887
|
-
var document$2 = global$
|
|
1888
|
-
var process$2 = global$
|
|
1889
|
-
var Promise$1 = global$
|
|
1884
|
+
var MutationObserver = global$7.MutationObserver || global$7.WebKitMutationObserver;
|
|
1885
|
+
var document$2 = global$7.document;
|
|
1886
|
+
var process$2 = global$7.process;
|
|
1887
|
+
var Promise$1 = global$7.Promise;
|
|
1890
1888
|
// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
|
|
1891
|
-
var queueMicrotaskDescriptor = getOwnPropertyDescriptor
|
|
1889
|
+
var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$7, 'queueMicrotask');
|
|
1892
1890
|
var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
|
|
1893
1891
|
var notify$1, toggle, node, promise, then;
|
|
1894
1892
|
|
|
@@ -1898,7 +1896,7 @@ if (!microtask$1) {
|
|
|
1898
1896
|
|
|
1899
1897
|
var flush = function () {
|
|
1900
1898
|
var parent, fn;
|
|
1901
|
-
if (IS_NODE$
|
|
1899
|
+
if (IS_NODE$2 && (parent = process$2.domain)) parent.exit();
|
|
1902
1900
|
while (fn = queue.get()) try {
|
|
1903
1901
|
fn();
|
|
1904
1902
|
} catch (error) {
|
|
@@ -1910,7 +1908,7 @@ if (!microtask$1) {
|
|
|
1910
1908
|
|
|
1911
1909
|
// browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
|
|
1912
1910
|
// also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
|
|
1913
|
-
if (!IS_IOS && !IS_NODE$
|
|
1911
|
+
if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
|
|
1914
1912
|
toggle = true;
|
|
1915
1913
|
node = document$2.createTextNode('');
|
|
1916
1914
|
new MutationObserver(flush).observe(node, { characterData: true });
|
|
@@ -1928,7 +1926,7 @@ if (!microtask$1) {
|
|
|
1928
1926
|
then(flush);
|
|
1929
1927
|
};
|
|
1930
1928
|
// Node.js without promises
|
|
1931
|
-
} else if (IS_NODE$
|
|
1929
|
+
} else if (IS_NODE$2) {
|
|
1932
1930
|
notify$1 = function () {
|
|
1933
1931
|
process$2.nextTick(flush);
|
|
1934
1932
|
};
|
|
@@ -1940,7 +1938,7 @@ if (!microtask$1) {
|
|
|
1940
1938
|
// - setTimeout
|
|
1941
1939
|
} else {
|
|
1942
1940
|
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
1943
|
-
macrotask = bind$2(macrotask, global$
|
|
1941
|
+
macrotask = bind$2(macrotask, global$7);
|
|
1944
1942
|
notify$1 = function () {
|
|
1945
1943
|
macrotask(flush);
|
|
1946
1944
|
};
|
|
@@ -1969,25 +1967,25 @@ var perform$3 = function (exec) {
|
|
|
1969
1967
|
}
|
|
1970
1968
|
};
|
|
1971
1969
|
|
|
1972
|
-
var global$
|
|
1970
|
+
var global$6 = global$k;
|
|
1973
1971
|
|
|
1974
|
-
var promiseNativeConstructor = global$
|
|
1972
|
+
var promiseNativeConstructor = global$6.Promise;
|
|
1975
1973
|
|
|
1976
1974
|
/* global Deno -- Deno case */
|
|
1977
1975
|
|
|
1978
1976
|
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
1979
1977
|
|
|
1980
1978
|
var IS_DENO$1 = engineIsDeno;
|
|
1981
|
-
var IS_NODE$
|
|
1979
|
+
var IS_NODE$1 = engineIsNode;
|
|
1982
1980
|
|
|
1983
|
-
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$
|
|
1981
|
+
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
1984
1982
|
&& typeof window == 'object'
|
|
1985
1983
|
&& typeof document == 'object';
|
|
1986
1984
|
|
|
1987
|
-
var global$
|
|
1985
|
+
var global$5 = global$k;
|
|
1988
1986
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
1989
|
-
var isCallable$
|
|
1990
|
-
var isForced
|
|
1987
|
+
var isCallable$4 = isCallable$j;
|
|
1988
|
+
var isForced = isForced_1;
|
|
1991
1989
|
var inspectSource = inspectSource$3;
|
|
1992
1990
|
var wellKnownSymbol$7 = wellKnownSymbol$g;
|
|
1993
1991
|
var IS_BROWSER = engineIsBrowser;
|
|
@@ -1997,9 +1995,9 @@ var V8_VERSION$1 = engineV8Version;
|
|
|
1997
1995
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
1998
1996
|
var SPECIES$1 = wellKnownSymbol$7('species');
|
|
1999
1997
|
var SUBCLASSING = false;
|
|
2000
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$
|
|
1998
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$5.PromiseRejectionEvent);
|
|
2001
1999
|
|
|
2002
|
-
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced
|
|
2000
|
+
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
2003
2001
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
2004
2002
|
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
|
|
2005
2003
|
// V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
|
|
@@ -2031,19 +2029,19 @@ var promiseConstructorDetection = {
|
|
|
2031
2029
|
|
|
2032
2030
|
var newPromiseCapability$2 = {};
|
|
2033
2031
|
|
|
2034
|
-
var aCallable$
|
|
2032
|
+
var aCallable$4 = aCallable$8;
|
|
2035
2033
|
|
|
2036
|
-
var $TypeError$
|
|
2034
|
+
var $TypeError$4 = TypeError;
|
|
2037
2035
|
|
|
2038
2036
|
var PromiseCapability = function (C) {
|
|
2039
2037
|
var resolve, reject;
|
|
2040
2038
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
2041
|
-
if (resolve !== undefined || reject !== undefined) throw $TypeError$
|
|
2039
|
+
if (resolve !== undefined || reject !== undefined) throw $TypeError$4('Bad Promise constructor');
|
|
2042
2040
|
resolve = $$resolve;
|
|
2043
2041
|
reject = $$reject;
|
|
2044
2042
|
});
|
|
2045
|
-
this.resolve = aCallable$
|
|
2046
|
-
this.reject = aCallable$
|
|
2043
|
+
this.resolve = aCallable$4(resolve);
|
|
2044
|
+
this.reject = aCallable$4(reject);
|
|
2047
2045
|
};
|
|
2048
2046
|
|
|
2049
2047
|
// `NewPromiseCapability` abstract operation
|
|
@@ -2052,17 +2050,17 @@ newPromiseCapability$2.f = function (C) {
|
|
|
2052
2050
|
return new PromiseCapability(C);
|
|
2053
2051
|
};
|
|
2054
2052
|
|
|
2055
|
-
var $$
|
|
2056
|
-
var IS_NODE
|
|
2057
|
-
var global$
|
|
2053
|
+
var $$e = _export;
|
|
2054
|
+
var IS_NODE = engineIsNode;
|
|
2055
|
+
var global$4 = global$k;
|
|
2058
2056
|
var call$c = functionCall;
|
|
2059
2057
|
var defineBuiltIn$3 = defineBuiltIn$6;
|
|
2060
|
-
var setPrototypeOf
|
|
2058
|
+
var setPrototypeOf = objectSetPrototypeOf;
|
|
2061
2059
|
var setToStringTag = setToStringTag$1;
|
|
2062
2060
|
var setSpecies = setSpecies$1;
|
|
2063
|
-
var aCallable$
|
|
2064
|
-
var isCallable$
|
|
2065
|
-
var isObject$
|
|
2061
|
+
var aCallable$3 = aCallable$8;
|
|
2062
|
+
var isCallable$3 = isCallable$j;
|
|
2063
|
+
var isObject$2 = isObject$9;
|
|
2066
2064
|
var anInstance = anInstance$1;
|
|
2067
2065
|
var speciesConstructor = speciesConstructor$1;
|
|
2068
2066
|
var task = task$1.set;
|
|
@@ -2084,13 +2082,13 @@ var setInternalState = InternalStateModule.set;
|
|
|
2084
2082
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
2085
2083
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
2086
2084
|
var PromisePrototype = NativePromisePrototype$1;
|
|
2087
|
-
var TypeError$
|
|
2088
|
-
var document$1 = global$
|
|
2089
|
-
var process$1 = global$
|
|
2085
|
+
var TypeError$1 = global$4.TypeError;
|
|
2086
|
+
var document$1 = global$4.document;
|
|
2087
|
+
var process$1 = global$4.process;
|
|
2090
2088
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
2091
2089
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
2092
2090
|
|
|
2093
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
2091
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$4.dispatchEvent);
|
|
2094
2092
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
2095
2093
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
2096
2094
|
var PENDING = 0;
|
|
@@ -2104,7 +2102,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
2104
2102
|
// helpers
|
|
2105
2103
|
var isThenable = function (it) {
|
|
2106
2104
|
var then;
|
|
2107
|
-
return isObject$
|
|
2105
|
+
return isObject$2(it) && isCallable$3(then = it.then) ? then : false;
|
|
2108
2106
|
};
|
|
2109
2107
|
|
|
2110
2108
|
var callReaction = function (reaction, state) {
|
|
@@ -2131,7 +2129,7 @@ var callReaction = function (reaction, state) {
|
|
|
2131
2129
|
}
|
|
2132
2130
|
}
|
|
2133
2131
|
if (result === reaction.promise) {
|
|
2134
|
-
reject(TypeError$
|
|
2132
|
+
reject(TypeError$1('Promise-chain cycle'));
|
|
2135
2133
|
} else if (then = isThenable(result)) {
|
|
2136
2134
|
call$c(then, result, resolve, reject);
|
|
2137
2135
|
} else resolve(result);
|
|
@@ -2163,26 +2161,26 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
2163
2161
|
event.promise = promise;
|
|
2164
2162
|
event.reason = reason;
|
|
2165
2163
|
event.initEvent(name, false, true);
|
|
2166
|
-
global$
|
|
2164
|
+
global$4.dispatchEvent(event);
|
|
2167
2165
|
} else event = { promise: promise, reason: reason };
|
|
2168
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
2166
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$4['on' + name])) handler(event);
|
|
2169
2167
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
2170
2168
|
};
|
|
2171
2169
|
|
|
2172
2170
|
var onUnhandled = function (state) {
|
|
2173
|
-
call$c(task, global$
|
|
2171
|
+
call$c(task, global$4, function () {
|
|
2174
2172
|
var promise = state.facade;
|
|
2175
2173
|
var value = state.value;
|
|
2176
2174
|
var IS_UNHANDLED = isUnhandled(state);
|
|
2177
2175
|
var result;
|
|
2178
2176
|
if (IS_UNHANDLED) {
|
|
2179
2177
|
result = perform$2(function () {
|
|
2180
|
-
if (IS_NODE
|
|
2178
|
+
if (IS_NODE) {
|
|
2181
2179
|
process$1.emit('unhandledRejection', value, promise);
|
|
2182
2180
|
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
2183
2181
|
});
|
|
2184
2182
|
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
2185
|
-
state.rejection = IS_NODE
|
|
2183
|
+
state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
|
|
2186
2184
|
if (result.error) throw result.value;
|
|
2187
2185
|
}
|
|
2188
2186
|
});
|
|
@@ -2193,9 +2191,9 @@ var isUnhandled = function (state) {
|
|
|
2193
2191
|
};
|
|
2194
2192
|
|
|
2195
2193
|
var onHandleUnhandled = function (state) {
|
|
2196
|
-
call$c(task, global$
|
|
2194
|
+
call$c(task, global$4, function () {
|
|
2197
2195
|
var promise = state.facade;
|
|
2198
|
-
if (IS_NODE
|
|
2196
|
+
if (IS_NODE) {
|
|
2199
2197
|
process$1.emit('rejectionHandled', promise);
|
|
2200
2198
|
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
2201
2199
|
});
|
|
@@ -2221,7 +2219,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
2221
2219
|
state.done = true;
|
|
2222
2220
|
if (unwrap) state = unwrap;
|
|
2223
2221
|
try {
|
|
2224
|
-
if (state.facade === value) throw TypeError$
|
|
2222
|
+
if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
|
|
2225
2223
|
var then = isThenable(value);
|
|
2226
2224
|
if (then) {
|
|
2227
2225
|
microtask(function () {
|
|
@@ -2250,7 +2248,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2250
2248
|
// 25.4.3.1 Promise(executor)
|
|
2251
2249
|
PromiseConstructor = function Promise(executor) {
|
|
2252
2250
|
anInstance(this, PromisePrototype);
|
|
2253
|
-
aCallable$
|
|
2251
|
+
aCallable$3(executor);
|
|
2254
2252
|
call$c(Internal, this);
|
|
2255
2253
|
var state = getInternalPromiseState(this);
|
|
2256
2254
|
try {
|
|
@@ -2282,9 +2280,9 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2282
2280
|
var state = getInternalPromiseState(this);
|
|
2283
2281
|
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
2284
2282
|
state.parent = true;
|
|
2285
|
-
reaction.ok = isCallable$
|
|
2286
|
-
reaction.fail = isCallable$
|
|
2287
|
-
reaction.domain = IS_NODE
|
|
2283
|
+
reaction.ok = isCallable$3(onFulfilled) ? onFulfilled : true;
|
|
2284
|
+
reaction.fail = isCallable$3(onRejected) && onRejected;
|
|
2285
|
+
reaction.domain = IS_NODE ? process$1.domain : undefined;
|
|
2288
2286
|
if (state.state == PENDING) state.reactions.add(reaction);
|
|
2289
2287
|
else microtask(function () {
|
|
2290
2288
|
callReaction(reaction, state);
|
|
@@ -2306,7 +2304,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2306
2304
|
: newGenericPromiseCapability(C);
|
|
2307
2305
|
};
|
|
2308
2306
|
|
|
2309
|
-
if (isCallable$
|
|
2307
|
+
if (isCallable$3(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
|
2310
2308
|
nativeThen = NativePromisePrototype$1.then;
|
|
2311
2309
|
|
|
2312
2310
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
@@ -2326,13 +2324,13 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2326
2324
|
} catch (error) { /* empty */ }
|
|
2327
2325
|
|
|
2328
2326
|
// make `instanceof Promise` work for native promise-based APIs
|
|
2329
|
-
if (setPrototypeOf
|
|
2330
|
-
setPrototypeOf
|
|
2327
|
+
if (setPrototypeOf) {
|
|
2328
|
+
setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
|
|
2331
2329
|
}
|
|
2332
2330
|
}
|
|
2333
2331
|
}
|
|
2334
2332
|
|
|
2335
|
-
$$
|
|
2333
|
+
$$e({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
2336
2334
|
Promise: PromiseConstructor
|
|
2337
2335
|
});
|
|
2338
2336
|
|
|
@@ -2367,17 +2365,17 @@ var getIteratorMethod$2 = function (it) {
|
|
|
2367
2365
|
};
|
|
2368
2366
|
|
|
2369
2367
|
var call$b = functionCall;
|
|
2370
|
-
var aCallable$
|
|
2368
|
+
var aCallable$2 = aCallable$8;
|
|
2371
2369
|
var anObject$a = anObject$f;
|
|
2372
2370
|
var tryToString$1 = tryToString$4;
|
|
2373
2371
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
2374
2372
|
|
|
2375
|
-
var $TypeError$
|
|
2373
|
+
var $TypeError$3 = TypeError;
|
|
2376
2374
|
|
|
2377
2375
|
var getIterator$1 = function (argument, usingIterator) {
|
|
2378
2376
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
2379
|
-
if (aCallable$
|
|
2380
|
-
throw $TypeError$
|
|
2377
|
+
if (aCallable$2(iteratorMethod)) return anObject$a(call$b(iteratorMethod, argument));
|
|
2378
|
+
throw $TypeError$3(tryToString$1(argument) + ' is not iterable');
|
|
2381
2379
|
};
|
|
2382
2380
|
|
|
2383
2381
|
var call$a = functionCall;
|
|
@@ -2409,13 +2407,13 @@ var call$9 = functionCall;
|
|
|
2409
2407
|
var anObject$8 = anObject$f;
|
|
2410
2408
|
var tryToString = tryToString$4;
|
|
2411
2409
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
2412
|
-
var lengthOfArrayLike$
|
|
2413
|
-
var isPrototypeOf$
|
|
2410
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$4;
|
|
2411
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
2414
2412
|
var getIterator = getIterator$1;
|
|
2415
2413
|
var getIteratorMethod = getIteratorMethod$2;
|
|
2416
2414
|
var iteratorClose = iteratorClose$1;
|
|
2417
2415
|
|
|
2418
|
-
var $TypeError$
|
|
2416
|
+
var $TypeError$2 = TypeError;
|
|
2419
2417
|
|
|
2420
2418
|
var Result = function (stopped, result) {
|
|
2421
2419
|
this.stopped = stopped;
|
|
@@ -2451,12 +2449,12 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2451
2449
|
iterator = iterable;
|
|
2452
2450
|
} else {
|
|
2453
2451
|
iterFn = getIteratorMethod(iterable);
|
|
2454
|
-
if (!iterFn) throw $TypeError$
|
|
2452
|
+
if (!iterFn) throw $TypeError$2(tryToString(iterable) + ' is not iterable');
|
|
2455
2453
|
// optimisation for array iterators
|
|
2456
2454
|
if (isArrayIteratorMethod(iterFn)) {
|
|
2457
|
-
for (index = 0, length = lengthOfArrayLike$
|
|
2455
|
+
for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
|
|
2458
2456
|
result = callFn(iterable[index]);
|
|
2459
|
-
if (result && isPrototypeOf$
|
|
2457
|
+
if (result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2460
2458
|
} return new Result(false);
|
|
2461
2459
|
}
|
|
2462
2460
|
iterator = getIterator(iterable, iterFn);
|
|
@@ -2469,7 +2467,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
2469
2467
|
} catch (error) {
|
|
2470
2468
|
iteratorClose(iterator, 'throw', error);
|
|
2471
2469
|
}
|
|
2472
|
-
if (typeof result == 'object' && result && isPrototypeOf$
|
|
2470
|
+
if (typeof result == 'object' && result && isPrototypeOf$1(ResultPrototype, result)) return result;
|
|
2473
2471
|
} return new Result(false);
|
|
2474
2472
|
};
|
|
2475
2473
|
|
|
@@ -2520,9 +2518,9 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2520
2518
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
2521
2519
|
});
|
|
2522
2520
|
|
|
2523
|
-
var $$
|
|
2521
|
+
var $$d = _export;
|
|
2524
2522
|
var call$8 = functionCall;
|
|
2525
|
-
var aCallable$
|
|
2523
|
+
var aCallable$1 = aCallable$8;
|
|
2526
2524
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
2527
2525
|
var perform$1 = perform$3;
|
|
2528
2526
|
var iterate$1 = iterate$2;
|
|
@@ -2530,14 +2528,14 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
2530
2528
|
|
|
2531
2529
|
// `Promise.all` method
|
|
2532
2530
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
2533
|
-
$$
|
|
2531
|
+
$$d({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
2534
2532
|
all: function all(iterable) {
|
|
2535
2533
|
var C = this;
|
|
2536
2534
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
2537
2535
|
var resolve = capability.resolve;
|
|
2538
2536
|
var reject = capability.reject;
|
|
2539
2537
|
var result = perform$1(function () {
|
|
2540
|
-
var $promiseResolve = aCallable$
|
|
2538
|
+
var $promiseResolve = aCallable$1(C.resolve);
|
|
2541
2539
|
var values = [];
|
|
2542
2540
|
var counter = 0;
|
|
2543
2541
|
var remaining = 1;
|
|
@@ -2559,34 +2557,34 @@ $$f({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2559
2557
|
}
|
|
2560
2558
|
});
|
|
2561
2559
|
|
|
2562
|
-
var $$
|
|
2560
|
+
var $$c = _export;
|
|
2563
2561
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2564
2562
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2565
2563
|
var getBuiltIn$1 = getBuiltIn$7;
|
|
2566
|
-
var isCallable$
|
|
2564
|
+
var isCallable$2 = isCallable$j;
|
|
2567
2565
|
var defineBuiltIn$2 = defineBuiltIn$6;
|
|
2568
2566
|
|
|
2569
2567
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
2570
2568
|
|
|
2571
2569
|
// `Promise.prototype.catch` method
|
|
2572
2570
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2573
|
-
$$
|
|
2571
|
+
$$c({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
2574
2572
|
'catch': function (onRejected) {
|
|
2575
2573
|
return this.then(undefined, onRejected);
|
|
2576
2574
|
}
|
|
2577
2575
|
});
|
|
2578
2576
|
|
|
2579
2577
|
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
2580
|
-
if (isCallable$
|
|
2578
|
+
if (isCallable$2(NativePromiseConstructor)) {
|
|
2581
2579
|
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
2582
2580
|
if (NativePromisePrototype['catch'] !== method) {
|
|
2583
2581
|
defineBuiltIn$2(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2584
2582
|
}
|
|
2585
2583
|
}
|
|
2586
2584
|
|
|
2587
|
-
var $$
|
|
2585
|
+
var $$b = _export;
|
|
2588
2586
|
var call$7 = functionCall;
|
|
2589
|
-
var aCallable
|
|
2587
|
+
var aCallable = aCallable$8;
|
|
2590
2588
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
2591
2589
|
var perform = perform$3;
|
|
2592
2590
|
var iterate = iterate$2;
|
|
@@ -2594,13 +2592,13 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
2594
2592
|
|
|
2595
2593
|
// `Promise.race` method
|
|
2596
2594
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
2597
|
-
$$
|
|
2595
|
+
$$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
2598
2596
|
race: function race(iterable) {
|
|
2599
2597
|
var C = this;
|
|
2600
2598
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
2601
2599
|
var reject = capability.reject;
|
|
2602
2600
|
var result = perform(function () {
|
|
2603
|
-
var $promiseResolve = aCallable
|
|
2601
|
+
var $promiseResolve = aCallable(C.resolve);
|
|
2604
2602
|
iterate(iterable, function (promise) {
|
|
2605
2603
|
call$7($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2606
2604
|
});
|
|
@@ -2610,14 +2608,14 @@ $$d({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2610
2608
|
}
|
|
2611
2609
|
});
|
|
2612
2610
|
|
|
2613
|
-
var $$
|
|
2611
|
+
var $$a = _export;
|
|
2614
2612
|
var call$6 = functionCall;
|
|
2615
2613
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2616
2614
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2617
2615
|
|
|
2618
2616
|
// `Promise.reject` method
|
|
2619
2617
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2620
|
-
$$
|
|
2618
|
+
$$a({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2621
2619
|
reject: function reject(r) {
|
|
2622
2620
|
var capability = newPromiseCapabilityModule.f(this);
|
|
2623
2621
|
call$6(capability.reject, undefined, r);
|
|
@@ -2626,19 +2624,19 @@ $$c({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
2626
2624
|
});
|
|
2627
2625
|
|
|
2628
2626
|
var anObject$7 = anObject$f;
|
|
2629
|
-
var isObject$
|
|
2627
|
+
var isObject$1 = isObject$9;
|
|
2630
2628
|
var newPromiseCapability = newPromiseCapability$2;
|
|
2631
2629
|
|
|
2632
2630
|
var promiseResolve$1 = function (C, x) {
|
|
2633
2631
|
anObject$7(C);
|
|
2634
|
-
if (isObject$
|
|
2632
|
+
if (isObject$1(x) && x.constructor === C) return x;
|
|
2635
2633
|
var promiseCapability = newPromiseCapability.f(C);
|
|
2636
2634
|
var resolve = promiseCapability.resolve;
|
|
2637
2635
|
resolve(x);
|
|
2638
2636
|
return promiseCapability.promise;
|
|
2639
2637
|
};
|
|
2640
2638
|
|
|
2641
|
-
var $$
|
|
2639
|
+
var $$9 = _export;
|
|
2642
2640
|
var getBuiltIn = getBuiltIn$7;
|
|
2643
2641
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2644
2642
|
var promiseResolve = promiseResolve$1;
|
|
@@ -2647,17 +2645,17 @@ getBuiltIn('Promise');
|
|
|
2647
2645
|
|
|
2648
2646
|
// `Promise.resolve` method
|
|
2649
2647
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2650
|
-
$$
|
|
2648
|
+
$$9({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
2651
2649
|
resolve: function resolve(x) {
|
|
2652
2650
|
return promiseResolve(this, x);
|
|
2653
2651
|
}
|
|
2654
2652
|
});
|
|
2655
2653
|
|
|
2656
|
-
var $TypeError$
|
|
2654
|
+
var $TypeError$1 = TypeError;
|
|
2657
2655
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
2658
2656
|
|
|
2659
2657
|
var doesNotExceedSafeInteger$1 = function (it) {
|
|
2660
|
-
if (it > MAX_SAFE_INTEGER) throw $TypeError$
|
|
2658
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
|
|
2661
2659
|
return it;
|
|
2662
2660
|
};
|
|
2663
2661
|
|
|
@@ -2671,12 +2669,12 @@ var createProperty$1 = function (object, key, value) {
|
|
|
2671
2669
|
else object[propertyKey] = value;
|
|
2672
2670
|
};
|
|
2673
2671
|
|
|
2674
|
-
var $$
|
|
2675
|
-
var fails$
|
|
2672
|
+
var $$8 = _export;
|
|
2673
|
+
var fails$8 = fails$m;
|
|
2676
2674
|
var isArray$1 = isArray$3;
|
|
2677
|
-
var isObject
|
|
2678
|
-
var toObject$
|
|
2679
|
-
var lengthOfArrayLike
|
|
2675
|
+
var isObject = isObject$9;
|
|
2676
|
+
var toObject$2 = toObject$5;
|
|
2677
|
+
var lengthOfArrayLike = lengthOfArrayLike$4;
|
|
2680
2678
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2681
2679
|
var createProperty = createProperty$1;
|
|
2682
2680
|
var arraySpeciesCreate = arraySpeciesCreate$2;
|
|
@@ -2689,34 +2687,34 @@ var IS_CONCAT_SPREADABLE = wellKnownSymbol$3('isConcatSpreadable');
|
|
|
2689
2687
|
// We can't use this feature detection in V8 since it causes
|
|
2690
2688
|
// deoptimization and serious performance degradation
|
|
2691
2689
|
// https://github.com/zloirock/core-js/issues/679
|
|
2692
|
-
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$
|
|
2690
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$8(function () {
|
|
2693
2691
|
var array = [];
|
|
2694
2692
|
array[IS_CONCAT_SPREADABLE] = false;
|
|
2695
2693
|
return array.concat()[0] !== array;
|
|
2696
2694
|
});
|
|
2697
2695
|
|
|
2698
2696
|
var isConcatSpreadable = function (O) {
|
|
2699
|
-
if (!isObject
|
|
2697
|
+
if (!isObject(O)) return false;
|
|
2700
2698
|
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
2701
2699
|
return spreadable !== undefined ? !!spreadable : isArray$1(O);
|
|
2702
2700
|
};
|
|
2703
2701
|
|
|
2704
|
-
var FORCED$
|
|
2702
|
+
var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
|
|
2705
2703
|
|
|
2706
2704
|
// `Array.prototype.concat` method
|
|
2707
2705
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
2708
2706
|
// with adding support of @@isConcatSpreadable and @@species
|
|
2709
|
-
$$
|
|
2707
|
+
$$8({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
|
|
2710
2708
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2711
2709
|
concat: function concat(arg) {
|
|
2712
|
-
var O = toObject$
|
|
2710
|
+
var O = toObject$2(this);
|
|
2713
2711
|
var A = arraySpeciesCreate(O, 0);
|
|
2714
2712
|
var n = 0;
|
|
2715
2713
|
var i, k, length, len, E;
|
|
2716
2714
|
for (i = -1, length = arguments.length; i < length; i++) {
|
|
2717
2715
|
E = i === -1 ? O : arguments[i];
|
|
2718
2716
|
if (isConcatSpreadable(E)) {
|
|
2719
|
-
len = lengthOfArrayLike
|
|
2717
|
+
len = lengthOfArrayLike(E);
|
|
2720
2718
|
doesNotExceedSafeInteger(n + len);
|
|
2721
2719
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
|
2722
2720
|
} else {
|
|
@@ -2801,7 +2799,7 @@ function latestVersion(name) {
|
|
|
2801
2799
|
* @param version npmๅ
ๅฝๅ็ๆฌ
|
|
2802
2800
|
* @returns -1: ๅฐไบ, 0: ็ญไบ, 1: ๅคงไบ
|
|
2803
2801
|
*/
|
|
2804
|
-
function updateNotifier(name, version) {
|
|
2802
|
+
function updateNotifier(name, version, message) {
|
|
2805
2803
|
return new Promise(function (resolve, reject) {
|
|
2806
2804
|
if (!name) return reject(new Error('name is required'));
|
|
2807
2805
|
if (!version) return reject(new Error('version is required'));
|
|
@@ -2810,20 +2808,21 @@ function updateNotifier(name, version) {
|
|
|
2810
2808
|
resolve(result);
|
|
2811
2809
|
if (result === -1) {
|
|
2812
2810
|
console.warn("".concat(name, " \u6709\u6700\u65B0\u7248\u672C: ").concat(latest, "\uFF0C\u8BF7\u6CE8\u610F\u66F4\u65B0\uFF01"));
|
|
2811
|
+
!!message && console.warn(message);
|
|
2813
2812
|
}
|
|
2814
2813
|
}).catch(reject);
|
|
2815
2814
|
});
|
|
2816
2815
|
}
|
|
2817
2816
|
|
|
2818
|
-
var $$
|
|
2819
|
-
var DESCRIPTORS$
|
|
2820
|
-
var defineProperty$
|
|
2817
|
+
var $$7 = _export;
|
|
2818
|
+
var DESCRIPTORS$2 = descriptors;
|
|
2819
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
2821
2820
|
|
|
2822
2821
|
// `Object.defineProperty` method
|
|
2823
2822
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
2824
2823
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
2825
|
-
$$
|
|
2826
|
-
defineProperty: defineProperty$
|
|
2824
|
+
$$7({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty$2, sham: !DESCRIPTORS$2 }, {
|
|
2825
|
+
defineProperty: defineProperty$2
|
|
2827
2826
|
});
|
|
2828
2827
|
|
|
2829
2828
|
var internalObjectKeys = objectKeysInternal;
|
|
@@ -2836,30 +2835,30 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
2836
2835
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
2837
2836
|
};
|
|
2838
2837
|
|
|
2839
|
-
var DESCRIPTORS$
|
|
2840
|
-
var uncurryThis$
|
|
2838
|
+
var DESCRIPTORS$1 = descriptors;
|
|
2839
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
2841
2840
|
var call$5 = functionCall;
|
|
2842
|
-
var fails$
|
|
2841
|
+
var fails$7 = fails$m;
|
|
2843
2842
|
var objectKeys$1 = objectKeys$2;
|
|
2844
2843
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
2845
2844
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
2846
|
-
var toObject$
|
|
2847
|
-
var IndexedObject
|
|
2845
|
+
var toObject$1 = toObject$5;
|
|
2846
|
+
var IndexedObject = indexedObject;
|
|
2848
2847
|
|
|
2849
2848
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
2850
2849
|
var $assign = Object.assign;
|
|
2851
2850
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
2852
|
-
var defineProperty$
|
|
2853
|
-
var concat$1 = uncurryThis$
|
|
2851
|
+
var defineProperty$1 = Object.defineProperty;
|
|
2852
|
+
var concat$1 = uncurryThis$6([].concat);
|
|
2854
2853
|
|
|
2855
2854
|
// `Object.assign` method
|
|
2856
2855
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2857
|
-
var objectAssign = !$assign || fails$
|
|
2856
|
+
var objectAssign = !$assign || fails$7(function () {
|
|
2858
2857
|
// should have correct order of operations (Edge bug)
|
|
2859
|
-
if (DESCRIPTORS$
|
|
2858
|
+
if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
|
|
2860
2859
|
enumerable: true,
|
|
2861
2860
|
get: function () {
|
|
2862
|
-
defineProperty$
|
|
2861
|
+
defineProperty$1(this, 'b', {
|
|
2863
2862
|
value: 3,
|
|
2864
2863
|
enumerable: false
|
|
2865
2864
|
});
|
|
@@ -2875,31 +2874,31 @@ var objectAssign = !$assign || fails$8(function () {
|
|
|
2875
2874
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
2876
2875
|
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
2877
2876
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
2878
|
-
var T = toObject$
|
|
2877
|
+
var T = toObject$1(target);
|
|
2879
2878
|
var argumentsLength = arguments.length;
|
|
2880
2879
|
var index = 1;
|
|
2881
2880
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
2882
2881
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
2883
2882
|
while (argumentsLength > index) {
|
|
2884
|
-
var S = IndexedObject
|
|
2883
|
+
var S = IndexedObject(arguments[index++]);
|
|
2885
2884
|
var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
2886
2885
|
var length = keys.length;
|
|
2887
2886
|
var j = 0;
|
|
2888
2887
|
var key;
|
|
2889
2888
|
while (length > j) {
|
|
2890
2889
|
key = keys[j++];
|
|
2891
|
-
if (!DESCRIPTORS$
|
|
2890
|
+
if (!DESCRIPTORS$1 || call$5(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
2892
2891
|
}
|
|
2893
2892
|
} return T;
|
|
2894
2893
|
} : $assign;
|
|
2895
2894
|
|
|
2896
|
-
var $$
|
|
2895
|
+
var $$6 = _export;
|
|
2897
2896
|
var assign = objectAssign;
|
|
2898
2897
|
|
|
2899
2898
|
// `Object.assign` method
|
|
2900
2899
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
2901
2900
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
2902
|
-
$$
|
|
2901
|
+
$$6({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
2903
2902
|
assign: assign
|
|
2904
2903
|
});
|
|
2905
2904
|
|
|
@@ -3041,7 +3040,7 @@ createStorage(sessionStorage);
|
|
|
3041
3040
|
|
|
3042
3041
|
var objectDefineProperties = {};
|
|
3043
3042
|
|
|
3044
|
-
var DESCRIPTORS
|
|
3043
|
+
var DESCRIPTORS = descriptors;
|
|
3045
3044
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
3046
3045
|
var definePropertyModule = objectDefineProperty;
|
|
3047
3046
|
var anObject$6 = anObject$f;
|
|
@@ -3051,7 +3050,7 @@ var objectKeys = objectKeys$2;
|
|
|
3051
3050
|
// `Object.defineProperties` method
|
|
3052
3051
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
3053
3052
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
3054
|
-
objectDefineProperties.f = DESCRIPTORS
|
|
3053
|
+
objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
3055
3054
|
anObject$6(O);
|
|
3056
3055
|
var props = toIndexedObject(Properties);
|
|
3057
3056
|
var keys = objectKeys(Properties);
|
|
@@ -3149,7 +3148,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
3149
3148
|
|
|
3150
3149
|
var wellKnownSymbol$2 = wellKnownSymbol$g;
|
|
3151
3150
|
var create$1 = objectCreate;
|
|
3152
|
-
var defineProperty
|
|
3151
|
+
var defineProperty = objectDefineProperty.f;
|
|
3153
3152
|
|
|
3154
3153
|
var UNSCOPABLES = wellKnownSymbol$2('unscopables');
|
|
3155
3154
|
var ArrayPrototype = Array.prototype;
|
|
@@ -3157,7 +3156,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
3157
3156
|
// Array.prototype[@@unscopables]
|
|
3158
3157
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
3159
3158
|
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
3160
|
-
defineProperty
|
|
3159
|
+
defineProperty(ArrayPrototype, UNSCOPABLES, {
|
|
3161
3160
|
configurable: true,
|
|
3162
3161
|
value: create$1(null)
|
|
3163
3162
|
});
|
|
@@ -3168,7 +3167,7 @@ var addToUnscopables$1 = function (key) {
|
|
|
3168
3167
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
3169
3168
|
};
|
|
3170
3169
|
|
|
3171
|
-
var $$
|
|
3170
|
+
var $$5 = _export;
|
|
3172
3171
|
var $find = arrayIteration.find;
|
|
3173
3172
|
var addToUnscopables = addToUnscopables$1;
|
|
3174
3173
|
|
|
@@ -3181,7 +3180,7 @@ if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
|
|
|
3181
3180
|
|
|
3182
3181
|
// `Array.prototype.find` method
|
|
3183
3182
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
3184
|
-
$$
|
|
3183
|
+
$$5({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
3185
3184
|
find: function find(callbackfn /* , that = undefined */) {
|
|
3186
3185
|
return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
3187
3186
|
}
|
|
@@ -3191,19 +3190,19 @@ $$7({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
|
|
|
3191
3190
|
addToUnscopables(FIND);
|
|
3192
3191
|
|
|
3193
3192
|
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
|
|
3194
|
-
var $$
|
|
3195
|
-
var uncurryThis$
|
|
3193
|
+
var $$4 = _export;
|
|
3194
|
+
var uncurryThis$5 = functionUncurryThisClause;
|
|
3196
3195
|
var $indexOf = arrayIncludes.indexOf;
|
|
3197
|
-
var arrayMethodIsStrict$
|
|
3196
|
+
var arrayMethodIsStrict$1 = arrayMethodIsStrict$3;
|
|
3198
3197
|
|
|
3199
|
-
var nativeIndexOf = uncurryThis$
|
|
3198
|
+
var nativeIndexOf = uncurryThis$5([].indexOf);
|
|
3200
3199
|
|
|
3201
3200
|
var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
|
|
3202
|
-
var FORCED
|
|
3201
|
+
var FORCED = NEGATIVE_ZERO || !arrayMethodIsStrict$1('indexOf');
|
|
3203
3202
|
|
|
3204
3203
|
// `Array.prototype.indexOf` method
|
|
3205
3204
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
3206
|
-
$$
|
|
3205
|
+
$$4({ target: 'Array', proto: true, forced: FORCED }, {
|
|
3207
3206
|
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
|
|
3208
3207
|
var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
|
|
3209
3208
|
return NEGATIVE_ZERO
|
|
@@ -3213,42 +3212,6 @@ $$6({ target: 'Array', proto: true, forced: FORCED$2 }, {
|
|
|
3213
3212
|
}
|
|
3214
3213
|
});
|
|
3215
3214
|
|
|
3216
|
-
/******************************************************************************
|
|
3217
|
-
Copyright (c) Microsoft Corporation.
|
|
3218
|
-
|
|
3219
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
3220
|
-
purpose with or without fee is hereby granted.
|
|
3221
|
-
|
|
3222
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3223
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3224
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3225
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3226
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3227
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3228
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
3229
|
-
***************************************************************************** */
|
|
3230
|
-
|
|
3231
|
-
var __assign = function() {
|
|
3232
|
-
__assign = Object.assign || function __assign(t) {
|
|
3233
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3234
|
-
s = arguments[i];
|
|
3235
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
3236
|
-
}
|
|
3237
|
-
return t;
|
|
3238
|
-
};
|
|
3239
|
-
return __assign.apply(this, arguments);
|
|
3240
|
-
};
|
|
3241
|
-
|
|
3242
|
-
function __spreadArray(to, from, pack) {
|
|
3243
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3244
|
-
if (ar || !(i in from)) {
|
|
3245
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
3246
|
-
ar[i] = from[i];
|
|
3247
|
-
}
|
|
3248
|
-
}
|
|
3249
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
3250
|
-
}
|
|
3251
|
-
|
|
3252
3215
|
var anObject$4 = anObject$f;
|
|
3253
3216
|
|
|
3254
3217
|
// `RegExp.prototype.flags` getter implementation
|
|
@@ -3267,13 +3230,13 @@ var regexpFlags$1 = function () {
|
|
|
3267
3230
|
return result;
|
|
3268
3231
|
};
|
|
3269
3232
|
|
|
3270
|
-
var fails$
|
|
3271
|
-
var global$
|
|
3233
|
+
var fails$6 = fails$m;
|
|
3234
|
+
var global$3 = global$k;
|
|
3272
3235
|
|
|
3273
3236
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
3274
|
-
var $RegExp$2 = global$
|
|
3237
|
+
var $RegExp$2 = global$3.RegExp;
|
|
3275
3238
|
|
|
3276
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
3239
|
+
var UNSUPPORTED_Y$1 = fails$6(function () {
|
|
3277
3240
|
var re = $RegExp$2('a', 'y');
|
|
3278
3241
|
re.lastIndex = 2;
|
|
3279
3242
|
return re.exec('abcd') != null;
|
|
@@ -3281,11 +3244,11 @@ var UNSUPPORTED_Y$1 = fails$7(function () {
|
|
|
3281
3244
|
|
|
3282
3245
|
// UC Browser bug
|
|
3283
3246
|
// https://github.com/zloirock/core-js/issues/1008
|
|
3284
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$
|
|
3247
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$6(function () {
|
|
3285
3248
|
return !$RegExp$2('a', 'y').sticky;
|
|
3286
3249
|
});
|
|
3287
3250
|
|
|
3288
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$
|
|
3251
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$6(function () {
|
|
3289
3252
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
3290
3253
|
var re = $RegExp$2('^r', 'gy');
|
|
3291
3254
|
re.lastIndex = 2;
|
|
@@ -3298,24 +3261,24 @@ var regexpStickyHelpers = {
|
|
|
3298
3261
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
3299
3262
|
};
|
|
3300
3263
|
|
|
3301
|
-
var fails$
|
|
3302
|
-
var global$
|
|
3264
|
+
var fails$5 = fails$m;
|
|
3265
|
+
var global$2 = global$k;
|
|
3303
3266
|
|
|
3304
3267
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
3305
|
-
var $RegExp$1 = global$
|
|
3268
|
+
var $RegExp$1 = global$2.RegExp;
|
|
3306
3269
|
|
|
3307
|
-
var regexpUnsupportedDotAll = fails$
|
|
3270
|
+
var regexpUnsupportedDotAll = fails$5(function () {
|
|
3308
3271
|
var re = $RegExp$1('.', 's');
|
|
3309
3272
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
3310
3273
|
});
|
|
3311
3274
|
|
|
3312
|
-
var fails$
|
|
3313
|
-
var global$
|
|
3275
|
+
var fails$4 = fails$m;
|
|
3276
|
+
var global$1 = global$k;
|
|
3314
3277
|
|
|
3315
3278
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
3316
|
-
var $RegExp = global$
|
|
3279
|
+
var $RegExp = global$1.RegExp;
|
|
3317
3280
|
|
|
3318
|
-
var regexpUnsupportedNcg = fails$
|
|
3281
|
+
var regexpUnsupportedNcg = fails$4(function () {
|
|
3319
3282
|
var re = $RegExp('(?<a>b)', 'g');
|
|
3320
3283
|
return re.exec('b').groups.a !== 'b' ||
|
|
3321
3284
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -3324,7 +3287,7 @@ var regexpUnsupportedNcg = fails$5(function () {
|
|
|
3324
3287
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
3325
3288
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
3326
3289
|
var call$4 = functionCall;
|
|
3327
|
-
var uncurryThis$
|
|
3290
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
3328
3291
|
var toString$3 = toString$7;
|
|
3329
3292
|
var regexpFlags = regexpFlags$1;
|
|
3330
3293
|
var stickyHelpers = regexpStickyHelpers;
|
|
@@ -3337,10 +3300,10 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
3337
3300
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
3338
3301
|
var nativeExec = RegExp.prototype.exec;
|
|
3339
3302
|
var patchedExec = nativeExec;
|
|
3340
|
-
var charAt$3 = uncurryThis$
|
|
3341
|
-
var indexOf = uncurryThis$
|
|
3342
|
-
var replace$1 = uncurryThis$
|
|
3343
|
-
var stringSlice$
|
|
3303
|
+
var charAt$3 = uncurryThis$4(''.charAt);
|
|
3304
|
+
var indexOf = uncurryThis$4(''.indexOf);
|
|
3305
|
+
var replace$1 = uncurryThis$4(''.replace);
|
|
3306
|
+
var stringSlice$3 = uncurryThis$4(''.slice);
|
|
3344
3307
|
|
|
3345
3308
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
3346
3309
|
var re1 = /a/;
|
|
@@ -3385,7 +3348,7 @@ if (PATCH) {
|
|
|
3385
3348
|
flags += 'g';
|
|
3386
3349
|
}
|
|
3387
3350
|
|
|
3388
|
-
strCopy = stringSlice$
|
|
3351
|
+
strCopy = stringSlice$3(str, re.lastIndex);
|
|
3389
3352
|
// Support anchored sticky behavior.
|
|
3390
3353
|
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
3391
3354
|
source = '(?: ' + source + ')';
|
|
@@ -3406,8 +3369,8 @@ if (PATCH) {
|
|
|
3406
3369
|
|
|
3407
3370
|
if (sticky) {
|
|
3408
3371
|
if (match) {
|
|
3409
|
-
match.input = stringSlice$
|
|
3410
|
-
match[0] = stringSlice$
|
|
3372
|
+
match.input = stringSlice$3(match.input, charsAdded);
|
|
3373
|
+
match[0] = stringSlice$3(match[0], charsAdded);
|
|
3411
3374
|
match.index = re.lastIndex;
|
|
3412
3375
|
re.lastIndex += match[0].length;
|
|
3413
3376
|
} else re.lastIndex = 0;
|
|
@@ -3438,21 +3401,21 @@ if (PATCH) {
|
|
|
3438
3401
|
|
|
3439
3402
|
var regexpExec$2 = patchedExec;
|
|
3440
3403
|
|
|
3441
|
-
var $$
|
|
3404
|
+
var $$3 = _export;
|
|
3442
3405
|
var exec = regexpExec$2;
|
|
3443
3406
|
|
|
3444
3407
|
// `RegExp.prototype.exec` method
|
|
3445
3408
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
3446
|
-
$$
|
|
3409
|
+
$$3({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
3447
3410
|
exec: exec
|
|
3448
3411
|
});
|
|
3449
3412
|
|
|
3450
3413
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
3451
3414
|
|
|
3452
|
-
var uncurryThis$
|
|
3415
|
+
var uncurryThis$3 = functionUncurryThisClause;
|
|
3453
3416
|
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
3454
3417
|
var regexpExec$1 = regexpExec$2;
|
|
3455
|
-
var fails$
|
|
3418
|
+
var fails$3 = fails$m;
|
|
3456
3419
|
var wellKnownSymbol$1 = wellKnownSymbol$g;
|
|
3457
3420
|
var createNonEnumerableProperty = createNonEnumerableProperty$4;
|
|
3458
3421
|
|
|
@@ -3462,14 +3425,14 @@ var RegExpPrototype$2 = RegExp.prototype;
|
|
|
3462
3425
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
3463
3426
|
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
3464
3427
|
|
|
3465
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
3428
|
+
var DELEGATES_TO_SYMBOL = !fails$3(function () {
|
|
3466
3429
|
// String methods call symbol-named RegEp methods
|
|
3467
3430
|
var O = {};
|
|
3468
3431
|
O[SYMBOL] = function () { return 7; };
|
|
3469
3432
|
return ''[KEY](O) != 7;
|
|
3470
3433
|
});
|
|
3471
3434
|
|
|
3472
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
3435
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$3(function () {
|
|
3473
3436
|
// Symbol-named RegExp methods call .exec
|
|
3474
3437
|
var execCalled = false;
|
|
3475
3438
|
var re = /a/;
|
|
@@ -3498,9 +3461,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
3498
3461
|
!DELEGATES_TO_EXEC ||
|
|
3499
3462
|
FORCED
|
|
3500
3463
|
) {
|
|
3501
|
-
var uncurriedNativeRegExpMethod = uncurryThis$
|
|
3464
|
+
var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
|
|
3502
3465
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
3503
|
-
var uncurriedNativeMethod = uncurryThis$
|
|
3466
|
+
var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
|
|
3504
3467
|
var $exec = regexp.exec;
|
|
3505
3468
|
if ($exec === regexpExec$1 || $exec === RegExpPrototype$2.exec) {
|
|
3506
3469
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
@@ -3521,30 +3484,30 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
3521
3484
|
if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
|
|
3522
3485
|
};
|
|
3523
3486
|
|
|
3524
|
-
var uncurryThis$
|
|
3487
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
3525
3488
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
3526
3489
|
var toString$2 = toString$7;
|
|
3527
3490
|
var requireObjectCoercible$2 = requireObjectCoercible$6;
|
|
3528
3491
|
|
|
3529
|
-
var charAt$2 = uncurryThis$
|
|
3530
|
-
var charCodeAt
|
|
3531
|
-
var stringSlice$
|
|
3492
|
+
var charAt$2 = uncurryThis$2(''.charAt);
|
|
3493
|
+
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
3494
|
+
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
3532
3495
|
|
|
3533
|
-
var createMethod
|
|
3496
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
3534
3497
|
return function ($this, pos) {
|
|
3535
3498
|
var S = toString$2(requireObjectCoercible$2($this));
|
|
3536
3499
|
var position = toIntegerOrInfinity$1(pos);
|
|
3537
3500
|
var size = S.length;
|
|
3538
3501
|
var first, second;
|
|
3539
3502
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
3540
|
-
first = charCodeAt
|
|
3503
|
+
first = charCodeAt(S, position);
|
|
3541
3504
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
3542
|
-
|| (second = charCodeAt
|
|
3505
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3543
3506
|
? CONVERT_TO_STRING
|
|
3544
3507
|
? charAt$2(S, position)
|
|
3545
3508
|
: first
|
|
3546
3509
|
: CONVERT_TO_STRING
|
|
3547
|
-
? stringSlice$
|
|
3510
|
+
? stringSlice$2(S, position, position + 2)
|
|
3548
3511
|
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
3549
3512
|
};
|
|
3550
3513
|
};
|
|
@@ -3552,10 +3515,10 @@ var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
|
3552
3515
|
var stringMultibyte = {
|
|
3553
3516
|
// `String.prototype.codePointAt` method
|
|
3554
3517
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
3555
|
-
codeAt: createMethod
|
|
3518
|
+
codeAt: createMethod(false),
|
|
3556
3519
|
// `String.prototype.at` method
|
|
3557
3520
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
3558
|
-
charAt: createMethod
|
|
3521
|
+
charAt: createMethod(true)
|
|
3559
3522
|
};
|
|
3560
3523
|
|
|
3561
3524
|
var charAt$1 = stringMultibyte.charAt;
|
|
@@ -3566,13 +3529,13 @@ var advanceStringIndex$2 = function (S, index, unicode) {
|
|
|
3566
3529
|
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
3567
3530
|
};
|
|
3568
3531
|
|
|
3569
|
-
var uncurryThis$
|
|
3570
|
-
var toObject
|
|
3532
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
3533
|
+
var toObject = toObject$5;
|
|
3571
3534
|
|
|
3572
3535
|
var floor = Math.floor;
|
|
3573
|
-
var charAt = uncurryThis$
|
|
3574
|
-
var replace = uncurryThis$
|
|
3575
|
-
var stringSlice$
|
|
3536
|
+
var charAt = uncurryThis$1(''.charAt);
|
|
3537
|
+
var replace = uncurryThis$1(''.replace);
|
|
3538
|
+
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
3576
3539
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
3577
3540
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
3578
3541
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
@@ -3584,7 +3547,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
3584
3547
|
var m = captures.length;
|
|
3585
3548
|
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
3586
3549
|
if (namedCaptures !== undefined) {
|
|
3587
|
-
namedCaptures = toObject
|
|
3550
|
+
namedCaptures = toObject(namedCaptures);
|
|
3588
3551
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
3589
3552
|
}
|
|
3590
3553
|
return replace(replacement, symbols, function (match, ch) {
|
|
@@ -3592,10 +3555,10 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
3592
3555
|
switch (charAt(ch, 0)) {
|
|
3593
3556
|
case '$': return '$';
|
|
3594
3557
|
case '&': return matched;
|
|
3595
|
-
case '`': return stringSlice$
|
|
3596
|
-
case "'": return stringSlice$
|
|
3558
|
+
case '`': return stringSlice$1(str, 0, position);
|
|
3559
|
+
case "'": return stringSlice$1(str, tailPos);
|
|
3597
3560
|
case '<':
|
|
3598
|
-
capture = namedCaptures[stringSlice$
|
|
3561
|
+
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
3599
3562
|
break;
|
|
3600
3563
|
default: // \d\d?
|
|
3601
3564
|
var n = +ch;
|
|
@@ -3614,32 +3577,32 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
3614
3577
|
|
|
3615
3578
|
var call$3 = functionCall;
|
|
3616
3579
|
var anObject$3 = anObject$f;
|
|
3617
|
-
var isCallable$
|
|
3580
|
+
var isCallable$1 = isCallable$j;
|
|
3618
3581
|
var classof = classofRaw$2;
|
|
3619
3582
|
var regexpExec = regexpExec$2;
|
|
3620
3583
|
|
|
3621
|
-
var $TypeError
|
|
3584
|
+
var $TypeError = TypeError;
|
|
3622
3585
|
|
|
3623
3586
|
// `RegExpExec` abstract operation
|
|
3624
3587
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
3625
3588
|
var regexpExecAbstract = function (R, S) {
|
|
3626
3589
|
var exec = R.exec;
|
|
3627
|
-
if (isCallable$
|
|
3590
|
+
if (isCallable$1(exec)) {
|
|
3628
3591
|
var result = call$3(exec, R, S);
|
|
3629
3592
|
if (result !== null) anObject$3(result);
|
|
3630
3593
|
return result;
|
|
3631
3594
|
}
|
|
3632
3595
|
if (classof(R) === 'RegExp') return call$3(regexpExec, R, S);
|
|
3633
|
-
throw $TypeError
|
|
3596
|
+
throw $TypeError('RegExp#exec called on incompatible receiver');
|
|
3634
3597
|
};
|
|
3635
3598
|
|
|
3636
3599
|
var apply = functionApply;
|
|
3637
3600
|
var call$2 = functionCall;
|
|
3638
|
-
var uncurryThis
|
|
3601
|
+
var uncurryThis = functionUncurryThis;
|
|
3639
3602
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
3640
|
-
var fails$
|
|
3603
|
+
var fails$2 = fails$m;
|
|
3641
3604
|
var anObject$2 = anObject$f;
|
|
3642
|
-
var isCallable
|
|
3605
|
+
var isCallable = isCallable$j;
|
|
3643
3606
|
var isNullOrUndefined$1 = isNullOrUndefined$6;
|
|
3644
3607
|
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
3645
3608
|
var toLength$1 = toLength$3;
|
|
@@ -3654,10 +3617,10 @@ var wellKnownSymbol = wellKnownSymbol$g;
|
|
|
3654
3617
|
var REPLACE = wellKnownSymbol('replace');
|
|
3655
3618
|
var max = Math.max;
|
|
3656
3619
|
var min = Math.min;
|
|
3657
|
-
var concat = uncurryThis
|
|
3658
|
-
var push = uncurryThis
|
|
3659
|
-
var stringIndexOf = uncurryThis
|
|
3660
|
-
var stringSlice
|
|
3620
|
+
var concat = uncurryThis([].concat);
|
|
3621
|
+
var push = uncurryThis([].push);
|
|
3622
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
3623
|
+
var stringSlice = uncurryThis(''.slice);
|
|
3661
3624
|
|
|
3662
3625
|
var maybeToString = function (it) {
|
|
3663
3626
|
return it === undefined ? it : String(it);
|
|
@@ -3678,7 +3641,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
|
3678
3641
|
return false;
|
|
3679
3642
|
})();
|
|
3680
3643
|
|
|
3681
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
|
3644
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$2(function () {
|
|
3682
3645
|
var re = /./;
|
|
3683
3646
|
re.exec = function () {
|
|
3684
3647
|
var result = [];
|
|
@@ -3718,7 +3681,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
3718
3681
|
if (res.done) return res.value;
|
|
3719
3682
|
}
|
|
3720
3683
|
|
|
3721
|
-
var functionalReplace = isCallable
|
|
3684
|
+
var functionalReplace = isCallable(replaceValue);
|
|
3722
3685
|
if (!functionalReplace) replaceValue = toString$1(replaceValue);
|
|
3723
3686
|
|
|
3724
3687
|
var global = rx.global;
|
|
@@ -3761,42 +3724,106 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
3761
3724
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
3762
3725
|
}
|
|
3763
3726
|
if (position >= nextSourcePosition) {
|
|
3764
|
-
accumulatedResult += stringSlice
|
|
3727
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
3765
3728
|
nextSourcePosition = position + matched.length;
|
|
3766
3729
|
}
|
|
3767
3730
|
}
|
|
3768
|
-
return accumulatedResult + stringSlice
|
|
3731
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
3769
3732
|
}
|
|
3770
3733
|
];
|
|
3771
3734
|
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
3772
3735
|
|
|
3736
|
+
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
3737
|
+
var fails$1 = fails$m;
|
|
3738
|
+
var whitespaces = whitespaces$3;
|
|
3739
|
+
|
|
3740
|
+
var non = '\u200B\u0085\u180E';
|
|
3741
|
+
|
|
3742
|
+
// check that a method works with the correct list
|
|
3743
|
+
// of whitespaces and has a correct name
|
|
3744
|
+
var stringTrimForced = function (METHOD_NAME) {
|
|
3745
|
+
return fails$1(function () {
|
|
3746
|
+
return !!whitespaces[METHOD_NAME]()
|
|
3747
|
+
|| non[METHOD_NAME]() !== non
|
|
3748
|
+
|| (PROPER_FUNCTION_NAME$1 && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
|
3749
|
+
});
|
|
3750
|
+
};
|
|
3751
|
+
|
|
3752
|
+
var $$2 = _export;
|
|
3753
|
+
var $trim = stringTrim.trim;
|
|
3754
|
+
var forcedStringTrimMethod = stringTrimForced;
|
|
3755
|
+
|
|
3756
|
+
// `String.prototype.trim` method
|
|
3757
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
3758
|
+
$$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
3759
|
+
trim: function trim() {
|
|
3760
|
+
return $trim(this);
|
|
3761
|
+
}
|
|
3762
|
+
});
|
|
3763
|
+
|
|
3764
|
+
/******************************************************************************
|
|
3765
|
+
Copyright (c) Microsoft Corporation.
|
|
3766
|
+
|
|
3767
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
3768
|
+
purpose with or without fee is hereby granted.
|
|
3769
|
+
|
|
3770
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3771
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3772
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3773
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3774
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3775
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3776
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
3777
|
+
***************************************************************************** */
|
|
3778
|
+
|
|
3779
|
+
var __assign = function() {
|
|
3780
|
+
__assign = Object.assign || function __assign(t) {
|
|
3781
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3782
|
+
s = arguments[i];
|
|
3783
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
3784
|
+
}
|
|
3785
|
+
return t;
|
|
3786
|
+
};
|
|
3787
|
+
return __assign.apply(this, arguments);
|
|
3788
|
+
};
|
|
3789
|
+
|
|
3790
|
+
function __spreadArray(to, from, pack) {
|
|
3791
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3792
|
+
if (ar || !(i in from)) {
|
|
3793
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
3794
|
+
ar[i] = from[i];
|
|
3795
|
+
}
|
|
3796
|
+
}
|
|
3797
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3773
3800
|
var call$1 = functionCall;
|
|
3774
|
-
var hasOwn
|
|
3775
|
-
var isPrototypeOf
|
|
3801
|
+
var hasOwn = hasOwnProperty_1;
|
|
3802
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
3776
3803
|
var regExpFlags = regexpFlags$1;
|
|
3777
3804
|
|
|
3778
3805
|
var RegExpPrototype$1 = RegExp.prototype;
|
|
3779
3806
|
|
|
3780
3807
|
var regexpGetFlags = function (R) {
|
|
3781
3808
|
var flags = R.flags;
|
|
3782
|
-
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn
|
|
3809
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
|
|
3783
3810
|
? call$1(regExpFlags, R) : flags;
|
|
3784
3811
|
};
|
|
3785
3812
|
|
|
3786
|
-
var PROPER_FUNCTION_NAME
|
|
3813
|
+
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
3787
3814
|
var defineBuiltIn = defineBuiltIn$6;
|
|
3788
3815
|
var anObject$1 = anObject$f;
|
|
3789
3816
|
var $toString = toString$7;
|
|
3790
|
-
var fails
|
|
3817
|
+
var fails = fails$m;
|
|
3791
3818
|
var getRegExpFlags = regexpGetFlags;
|
|
3792
3819
|
|
|
3793
3820
|
var TO_STRING = 'toString';
|
|
3794
3821
|
var RegExpPrototype = RegExp.prototype;
|
|
3795
3822
|
var nativeToString = RegExpPrototype[TO_STRING];
|
|
3796
3823
|
|
|
3797
|
-
var NOT_GENERIC = fails
|
|
3824
|
+
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
3798
3825
|
// FF44- RegExp#toString has a wrong name
|
|
3799
|
-
var INCORRECT_NAME = PROPER_FUNCTION_NAME
|
|
3826
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
|
|
3800
3827
|
|
|
3801
3828
|
// `RegExp.prototype.toString` method
|
|
3802
3829
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
@@ -3857,24 +3884,24 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
|
|
|
3857
3884
|
];
|
|
3858
3885
|
});
|
|
3859
3886
|
|
|
3860
|
-
var $$
|
|
3887
|
+
var $$1 = _export;
|
|
3861
3888
|
var isArray = isArray$3;
|
|
3862
3889
|
|
|
3863
3890
|
// `Array.isArray` method
|
|
3864
3891
|
// https://tc39.es/ecma262/#sec-array.isarray
|
|
3865
|
-
$$
|
|
3892
|
+
$$1({ target: 'Array', stat: true }, {
|
|
3866
3893
|
isArray: isArray
|
|
3867
3894
|
});
|
|
3868
3895
|
|
|
3869
|
-
var
|
|
3896
|
+
var $ = _export;
|
|
3870
3897
|
var $some = arrayIteration.some;
|
|
3871
|
-
var arrayMethodIsStrict
|
|
3898
|
+
var arrayMethodIsStrict = arrayMethodIsStrict$3;
|
|
3872
3899
|
|
|
3873
|
-
var STRICT_METHOD = arrayMethodIsStrict
|
|
3900
|
+
var STRICT_METHOD = arrayMethodIsStrict('some');
|
|
3874
3901
|
|
|
3875
3902
|
// `Array.prototype.some` method
|
|
3876
3903
|
// https://tc39.es/ecma262/#sec-array.prototype.some
|
|
3877
|
-
|
|
3904
|
+
$({ target: 'Array', proto: true, forced: !STRICT_METHOD }, {
|
|
3878
3905
|
some: function some(callbackfn /* , thisArg */) {
|
|
3879
3906
|
return $some(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
3880
3907
|
}
|
|
@@ -4103,502 +4130,6 @@ var browserType = BrowserType({
|
|
|
4103
4130
|
}]
|
|
4104
4131
|
});
|
|
4105
4132
|
|
|
4106
|
-
var aCallable = aCallable$9;
|
|
4107
|
-
var toObject = toObject$6;
|
|
4108
|
-
var IndexedObject = indexedObject;
|
|
4109
|
-
var lengthOfArrayLike = lengthOfArrayLike$5;
|
|
4110
|
-
|
|
4111
|
-
var $TypeError = TypeError;
|
|
4112
|
-
|
|
4113
|
-
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
4114
|
-
var createMethod = function (IS_RIGHT) {
|
|
4115
|
-
return function (that, callbackfn, argumentsLength, memo) {
|
|
4116
|
-
aCallable(callbackfn);
|
|
4117
|
-
var O = toObject(that);
|
|
4118
|
-
var self = IndexedObject(O);
|
|
4119
|
-
var length = lengthOfArrayLike(O);
|
|
4120
|
-
var index = IS_RIGHT ? length - 1 : 0;
|
|
4121
|
-
var i = IS_RIGHT ? -1 : 1;
|
|
4122
|
-
if (argumentsLength < 2) while (true) {
|
|
4123
|
-
if (index in self) {
|
|
4124
|
-
memo = self[index];
|
|
4125
|
-
index += i;
|
|
4126
|
-
break;
|
|
4127
|
-
}
|
|
4128
|
-
index += i;
|
|
4129
|
-
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
4130
|
-
throw $TypeError('Reduce of empty array with no initial value');
|
|
4131
|
-
}
|
|
4132
|
-
}
|
|
4133
|
-
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
4134
|
-
memo = callbackfn(memo, self[index], index, O);
|
|
4135
|
-
}
|
|
4136
|
-
return memo;
|
|
4137
|
-
};
|
|
4138
|
-
};
|
|
4139
|
-
|
|
4140
|
-
var arrayReduce = {
|
|
4141
|
-
// `Array.prototype.reduce` method
|
|
4142
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
4143
|
-
left: createMethod(false),
|
|
4144
|
-
// `Array.prototype.reduceRight` method
|
|
4145
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
4146
|
-
right: createMethod(true)
|
|
4147
|
-
};
|
|
4148
|
-
|
|
4149
|
-
var $$2 = _export;
|
|
4150
|
-
var $reduce = arrayReduce.left;
|
|
4151
|
-
var arrayMethodIsStrict = arrayMethodIsStrict$4;
|
|
4152
|
-
var CHROME_VERSION = engineV8Version;
|
|
4153
|
-
var IS_NODE = engineIsNode;
|
|
4154
|
-
|
|
4155
|
-
// Chrome 80-82 has a critical bug
|
|
4156
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
4157
|
-
var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
4158
|
-
var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
4159
|
-
|
|
4160
|
-
// `Array.prototype.reduce` method
|
|
4161
|
-
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
4162
|
-
$$2({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
4163
|
-
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
4164
|
-
var length = arguments.length;
|
|
4165
|
-
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
4166
|
-
}
|
|
4167
|
-
});
|
|
4168
|
-
|
|
4169
|
-
var global$2 = global$m;
|
|
4170
|
-
|
|
4171
|
-
var path$1 = global$2;
|
|
4172
|
-
|
|
4173
|
-
var isCallable = isCallable$k;
|
|
4174
|
-
var isObject = isObject$a;
|
|
4175
|
-
var setPrototypeOf = objectSetPrototypeOf;
|
|
4176
|
-
|
|
4177
|
-
// makes subclassing work correct for wrapped built-ins
|
|
4178
|
-
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
4179
|
-
var NewTarget, NewTargetPrototype;
|
|
4180
|
-
if (
|
|
4181
|
-
// it can work only with native `setPrototypeOf`
|
|
4182
|
-
setPrototypeOf &&
|
|
4183
|
-
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
4184
|
-
isCallable(NewTarget = dummy.constructor) &&
|
|
4185
|
-
NewTarget !== Wrapper &&
|
|
4186
|
-
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
4187
|
-
NewTargetPrototype !== Wrapper.prototype
|
|
4188
|
-
) setPrototypeOf($this, NewTargetPrototype);
|
|
4189
|
-
return $this;
|
|
4190
|
-
};
|
|
4191
|
-
|
|
4192
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
4193
|
-
|
|
4194
|
-
// `thisNumberValue` abstract operation
|
|
4195
|
-
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
4196
|
-
var thisNumberValue$1 = uncurryThis$1(1.0.valueOf);
|
|
4197
|
-
|
|
4198
|
-
var $$1 = _export;
|
|
4199
|
-
var IS_PURE = isPure;
|
|
4200
|
-
var DESCRIPTORS = descriptors;
|
|
4201
|
-
var global$1 = global$m;
|
|
4202
|
-
var path = path$1;
|
|
4203
|
-
var uncurryThis = functionUncurryThis;
|
|
4204
|
-
var isForced = isForced_1;
|
|
4205
|
-
var hasOwn = hasOwnProperty_1;
|
|
4206
|
-
var inheritIfRequired = inheritIfRequired$1;
|
|
4207
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
4208
|
-
var isSymbol = isSymbol$3;
|
|
4209
|
-
var toPrimitive = toPrimitive$2;
|
|
4210
|
-
var fails$1 = fails$n;
|
|
4211
|
-
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
4212
|
-
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
4213
|
-
var defineProperty = objectDefineProperty.f;
|
|
4214
|
-
var thisNumberValue = thisNumberValue$1;
|
|
4215
|
-
var trim = stringTrim.trim;
|
|
4216
|
-
|
|
4217
|
-
var NUMBER = 'Number';
|
|
4218
|
-
var NativeNumber = global$1[NUMBER];
|
|
4219
|
-
path[NUMBER];
|
|
4220
|
-
var NumberPrototype = NativeNumber.prototype;
|
|
4221
|
-
var TypeError$1 = global$1.TypeError;
|
|
4222
|
-
var stringSlice = uncurryThis(''.slice);
|
|
4223
|
-
var charCodeAt = uncurryThis(''.charCodeAt);
|
|
4224
|
-
|
|
4225
|
-
// `ToNumeric` abstract operation
|
|
4226
|
-
// https://tc39.es/ecma262/#sec-tonumeric
|
|
4227
|
-
var toNumeric = function (value) {
|
|
4228
|
-
var primValue = toPrimitive(value, 'number');
|
|
4229
|
-
return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
|
|
4230
|
-
};
|
|
4231
|
-
|
|
4232
|
-
// `ToNumber` abstract operation
|
|
4233
|
-
// https://tc39.es/ecma262/#sec-tonumber
|
|
4234
|
-
var toNumber = function (argument) {
|
|
4235
|
-
var it = toPrimitive(argument, 'number');
|
|
4236
|
-
var first, third, radix, maxCode, digits, length, index, code;
|
|
4237
|
-
if (isSymbol(it)) throw TypeError$1('Cannot convert a Symbol value to a number');
|
|
4238
|
-
if (typeof it == 'string' && it.length > 2) {
|
|
4239
|
-
it = trim(it);
|
|
4240
|
-
first = charCodeAt(it, 0);
|
|
4241
|
-
if (first === 43 || first === 45) {
|
|
4242
|
-
third = charCodeAt(it, 2);
|
|
4243
|
-
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
|
|
4244
|
-
} else if (first === 48) {
|
|
4245
|
-
switch (charCodeAt(it, 1)) {
|
|
4246
|
-
case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
|
|
4247
|
-
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
|
|
4248
|
-
default: return +it;
|
|
4249
|
-
}
|
|
4250
|
-
digits = stringSlice(it, 2);
|
|
4251
|
-
length = digits.length;
|
|
4252
|
-
for (index = 0; index < length; index++) {
|
|
4253
|
-
code = charCodeAt(digits, index);
|
|
4254
|
-
// parseInt parses a string to a first unavailable symbol
|
|
4255
|
-
// but ToNumber should return NaN if a string contains unavailable symbols
|
|
4256
|
-
if (code < 48 || code > maxCode) return NaN;
|
|
4257
|
-
} return parseInt(digits, radix);
|
|
4258
|
-
}
|
|
4259
|
-
} return +it;
|
|
4260
|
-
};
|
|
4261
|
-
|
|
4262
|
-
var FORCED = isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));
|
|
4263
|
-
|
|
4264
|
-
var calledWithNew = function (dummy) {
|
|
4265
|
-
// includes check on 1..constructor(foo) case
|
|
4266
|
-
return isPrototypeOf(NumberPrototype, dummy) && fails$1(function () { thisNumberValue(dummy); });
|
|
4267
|
-
};
|
|
4268
|
-
|
|
4269
|
-
// `Number` constructor
|
|
4270
|
-
// https://tc39.es/ecma262/#sec-number-constructor
|
|
4271
|
-
var NumberWrapper = function Number(value) {
|
|
4272
|
-
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
|
|
4273
|
-
return calledWithNew(this) ? inheritIfRequired(Object(n), this, NumberWrapper) : n;
|
|
4274
|
-
};
|
|
4275
|
-
|
|
4276
|
-
NumberWrapper.prototype = NumberPrototype;
|
|
4277
|
-
if (FORCED && !IS_PURE) NumberPrototype.constructor = NumberWrapper;
|
|
4278
|
-
|
|
4279
|
-
$$1({ global: true, constructor: true, wrap: true, forced: FORCED }, {
|
|
4280
|
-
Number: NumberWrapper
|
|
4281
|
-
});
|
|
4282
|
-
|
|
4283
|
-
// Use `internal/copy-constructor-properties` helper in `core-js@4`
|
|
4284
|
-
var copyConstructorProperties = function (target, source) {
|
|
4285
|
-
for (var keys = DESCRIPTORS ? getOwnPropertyNames(source) : (
|
|
4286
|
-
// ES3:
|
|
4287
|
-
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
|
|
4288
|
-
// ES2015 (in case, if modules with ES2015 Number statics required before):
|
|
4289
|
-
'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
|
|
4290
|
-
// ESNext
|
|
4291
|
-
'fromString,range'
|
|
4292
|
-
).split(','), j = 0, key; keys.length > j; j++) {
|
|
4293
|
-
if (hasOwn(source, key = keys[j]) && !hasOwn(target, key)) {
|
|
4294
|
-
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
4295
|
-
}
|
|
4296
|
-
}
|
|
4297
|
-
};
|
|
4298
|
-
if (FORCED || IS_PURE) copyConstructorProperties(path[NUMBER], NativeNumber);
|
|
4299
|
-
|
|
4300
|
-
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
4301
|
-
var fails = fails$n;
|
|
4302
|
-
var whitespaces = whitespaces$3;
|
|
4303
|
-
|
|
4304
|
-
var non = '\u200B\u0085\u180E';
|
|
4305
|
-
|
|
4306
|
-
// check that a method works with the correct list
|
|
4307
|
-
// of whitespaces and has a correct name
|
|
4308
|
-
var stringTrimForced = function (METHOD_NAME) {
|
|
4309
|
-
return fails(function () {
|
|
4310
|
-
return !!whitespaces[METHOD_NAME]()
|
|
4311
|
-
|| non[METHOD_NAME]() !== non
|
|
4312
|
-
|| (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
|
|
4313
|
-
});
|
|
4314
|
-
};
|
|
4315
|
-
|
|
4316
|
-
var $ = _export;
|
|
4317
|
-
var $trim = stringTrim.trim;
|
|
4318
|
-
var forcedStringTrimMethod = stringTrimForced;
|
|
4319
|
-
|
|
4320
|
-
// `String.prototype.trim` method
|
|
4321
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
4322
|
-
$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
|
|
4323
|
-
trim: function trim() {
|
|
4324
|
-
return $trim(this);
|
|
4325
|
-
}
|
|
4326
|
-
});
|
|
4327
|
-
|
|
4328
|
-
ls.get('version') || '';
|
|
4329
|
-
// ๅ
ๆฐ็็นๅฐ็จๅบappid: wxc2f42496fb5f5b91
|
|
4330
|
-
var localAppId = 'wxc2f42496fb5f5b91';
|
|
4331
|
-
var ojbRouter = [{
|
|
4332
|
-
key: 'ojb://goods_list',
|
|
4333
|
-
remark: 'ๆพ็คบๅๅบๅๅๅ่กจ้ฆ้กต',
|
|
4334
|
-
val: '/pages/home/index'
|
|
4335
|
-
}, {
|
|
4336
|
-
key: 'ojb://goods_detail',
|
|
4337
|
-
remark: 'ๆพ็คบๅๅบๅๅ่ฏฆๆ
้กต',
|
|
4338
|
-
val: '/pages/goodsDetails/index?id={id}&source={source}&activity_id={activity_id}&activity_name={activity_name}'
|
|
4339
|
-
}, {
|
|
4340
|
-
key: 'ojb://goldIcon_detail',
|
|
4341
|
-
remark: 'ๆพ็คบๅ
ๆฐ้ๅธๅๅ่ฏฆๆ
้กต',
|
|
4342
|
-
val: '/pages/goldCoinsDetails/index?id={id}&source={source}'
|
|
4343
|
-
}, {
|
|
4344
|
-
key: 'ojb://goods_list_by_label',
|
|
4345
|
-
remark: 'ๆ นๆฎๅๅๆ ็ญพๆพ็คบๅๅๅ่กจ',
|
|
4346
|
-
val: '/pages/home/index?label={label}'
|
|
4347
|
-
}, {
|
|
4348
|
-
key: 'ojb://box_list',
|
|
4349
|
-
remark: '็ฆ่ขๅ่กจ้ฆ้กต',
|
|
4350
|
-
val: '/pages/boxHome/index'
|
|
4351
|
-
}, {
|
|
4352
|
-
key: 'ojb://signIn',
|
|
4353
|
-
remark: '็ญพๅฐๆ็คผ',
|
|
4354
|
-
val: '/pages/myCenter/signIn/index'
|
|
4355
|
-
}, {
|
|
4356
|
-
key: 'ojb://box_detail',
|
|
4357
|
-
remark: 'ๆพ็คบ็ฆ่ข่ฏฆๆ
้กต',
|
|
4358
|
-
val: '/pages/boxopen/detail/index?id={id}&mac={mac}&source={source}&activity_id={activity_id}&activity_name={activity_name}'
|
|
4359
|
-
}, {
|
|
4360
|
-
key: 'ojb://box_list_by_label',
|
|
4361
|
-
remark: 'ๆ นๆฎ็ฆ่ขๆ ็ญพๆพ็คบ็ฆ่ขๅ่กจ',
|
|
4362
|
-
val: '/pages/boxHome/index?label={label}'
|
|
4363
|
-
}, {
|
|
4364
|
-
key: 'ojb://welfare',
|
|
4365
|
-
remark: '็ญพๅฐ้กตtab=0๏ผrollๅ่กจ้กตtab=1',
|
|
4366
|
-
val: '/pages/welfare/index?tab={tab}'
|
|
4367
|
-
}, {
|
|
4368
|
-
key: 'ojb://roll_list',
|
|
4369
|
-
remark: 'Rollๆฟๅ่กจ้กต',
|
|
4370
|
-
val: '/pages/jumptoWelfare/index?tab=1'
|
|
4371
|
-
}, {
|
|
4372
|
-
key: 'ojb://roll_detail',
|
|
4373
|
-
remark: 'Rollๆฟ่ฏฆๆ
้กต',
|
|
4374
|
-
val: '/pages/welfare/roll/detail?id={id}'
|
|
4375
|
-
}, {
|
|
4376
|
-
key: 'ojb://user_detail',
|
|
4377
|
-
remark: 'ๆ็่ดฆๆท้กต',
|
|
4378
|
-
val: '/pages/myCenter/myAccount/index'
|
|
4379
|
-
}, {
|
|
4380
|
-
key: 'ojb://user_assets_list',
|
|
4381
|
-
remark: 'ๅ
ๆฐไปๅบ้กต',
|
|
4382
|
-
val: '/pages/myCenter/storeHouse/index'
|
|
4383
|
-
}, {
|
|
4384
|
-
key: 'ojb://user_assets_list_by_shipped',
|
|
4385
|
-
remark: 'ๅ
ๆฐไปๅบ-ๅทฒๅฏๅฎ้กต',
|
|
4386
|
-
val: '/pages/myCenter/storeHouse/index?tab=1'
|
|
4387
|
-
}, {
|
|
4388
|
-
key: 'ojb://user_assets_order_list',
|
|
4389
|
-
remark: '่ฎขๅไธญๅฟ้กต',
|
|
4390
|
-
val: '/pages/myCenter/orderCenter/index?status={status}'
|
|
4391
|
-
}, {
|
|
4392
|
-
key: 'ojb://user_recharge',
|
|
4393
|
-
remark: '่ดฆๆทๅ
ๅผ้กต',
|
|
4394
|
-
val: 'ๆ '
|
|
4395
|
-
}, {
|
|
4396
|
-
key: 'ojb://user_capital_flow_list',
|
|
4397
|
-
remark: '่ดฆๆทไบคๆ่ฎฐๅฝ้กต',
|
|
4398
|
-
val: '/pages/myCenter/myAccount/index'
|
|
4399
|
-
}, {
|
|
4400
|
-
key: 'ojb://user_invite',
|
|
4401
|
-
remark: '็จๆท้่ฏท้กต',
|
|
4402
|
-
val: '/pages/myCenter/invite/index'
|
|
4403
|
-
}, {
|
|
4404
|
-
key: 'ojb://user_collect_list',
|
|
4405
|
-
remark: 'ๆถ่ๅคน้กต',
|
|
4406
|
-
val: '/pages/myCenter/myStore/index'
|
|
4407
|
-
}, {
|
|
4408
|
-
key: 'ojb://notice_list',
|
|
4409
|
-
remark: 'ๆถๆฏไธญๅฟ้กต',
|
|
4410
|
-
val: '/pages/myCenter/msgCenter/index'
|
|
4411
|
-
}, {
|
|
4412
|
-
key: 'ojb://user_shipping_address_list',
|
|
4413
|
-
remark: 'ๆถ่ดงๅฐๅ้กต',
|
|
4414
|
-
val: '/pages/myCenter/address/index'
|
|
4415
|
-
}, {
|
|
4416
|
-
key: 'ojb://user_shipping_address_add',
|
|
4417
|
-
remark: 'ๆฐๅขๆถ่ดงๅฐๅ้กต',
|
|
4418
|
-
val: '/pages/myCenter/addAddress/index'
|
|
4419
|
-
}, {
|
|
4420
|
-
key: 'ojb://user_task_list',
|
|
4421
|
-
remark: '็จๆทไปปๅก้กต',
|
|
4422
|
-
val: '/pages/welfare/index'
|
|
4423
|
-
}, {
|
|
4424
|
-
key: 'ojb://user_join_qq_group',
|
|
4425
|
-
remark: '็จๆท่ฟQQ็พค',
|
|
4426
|
-
val: '[event]'
|
|
4427
|
-
}, {
|
|
4428
|
-
key: 'ojb://user_join_wechat_official_account',
|
|
4429
|
-
remark: '็จๆท่ฟๅ
ฌไผๅท',
|
|
4430
|
-
val: '[event]'
|
|
4431
|
-
}, {
|
|
4432
|
-
key: 'ojb://user_customer_service',
|
|
4433
|
-
remark: '็จๆท่็ณปๅฎขๆ',
|
|
4434
|
-
val: '[event]'
|
|
4435
|
-
}, {
|
|
4436
|
-
key: 'ojb://site_about_me',
|
|
4437
|
-
remark: '็ซ็นๅ
ณไบๆไปฌ้กต',
|
|
4438
|
-
val: 'ๆ '
|
|
4439
|
-
}, {
|
|
4440
|
-
key: 'ojb://site_privacy',
|
|
4441
|
-
remark: '็ซ็นๆๅกๅ่ฎฎ้กต',
|
|
4442
|
-
val: '/pages/webPage/index?url=https://www.airmart.vip/serviceAgreements.html'
|
|
4443
|
-
}, {
|
|
4444
|
-
key: 'ojb://search',
|
|
4445
|
-
remark: 'ๆ็ดข้กต',
|
|
4446
|
-
val: '/pages/searchPage/index?type=mall&keyword={keyword}'
|
|
4447
|
-
}, {
|
|
4448
|
-
key: 'ojb://activity_detail',
|
|
4449
|
-
remark: 'ๆดปๅจ้กต',
|
|
4450
|
-
val: 'activity?id={id}'
|
|
4451
|
-
}, {
|
|
4452
|
-
key: 'ojb://tab_csgo',
|
|
4453
|
-
remark: '่ทณ่ฝฌๅฐCSGO้้กน้กต',
|
|
4454
|
-
val: ''
|
|
4455
|
-
}, {
|
|
4456
|
-
key: 'ojb://webview_h5',
|
|
4457
|
-
remark: '่ทณ่ฝฌๅฐH5็ซ็น(WebView)็ๆๅฎURL้กต้ข',
|
|
4458
|
-
val: '/pages/webPage/index?url={url}'
|
|
4459
|
-
}, {
|
|
4460
|
-
key: 'ojb://coupon_list',
|
|
4461
|
-
remark: '่ทณ่ฝฌไผๆ ๅธๅ่กจ้กต',
|
|
4462
|
-
val: '/pages/myCenter/myCards/index'
|
|
4463
|
-
}, {
|
|
4464
|
-
key: 'ojb://poster_dialog',
|
|
4465
|
-
remark: ' ๆตทๆฅๅผน็ช',
|
|
4466
|
-
val: '[event]'
|
|
4467
|
-
}, {
|
|
4468
|
-
key: 'ojb://call_wechat',
|
|
4469
|
-
remark: ' ่ทณ่ฝฌๅฐๅฐ็จๅบๅค่ตท(WebView)',
|
|
4470
|
-
val: '/pages/webPage/index?url={url}'
|
|
4471
|
-
}, {
|
|
4472
|
-
key: 'ojb://call_wechat_path',
|
|
4473
|
-
remark: ' ่ทณ่ฝฌๅฐๅฐ็จๅบๆๅฎ่ทฏๅพ(ๅ
ๆฐ็็นๅฐ็จๅบappid: wxc2f42496fb5f5b91) // ?appid={ๅฐ็จๅบๅบ็จID}&path={ๅฐ็จๅบ่ทฏๅพ}',
|
|
4474
|
-
val: '{path}'
|
|
4475
|
-
}, {
|
|
4476
|
-
key: 'ojb://call_mini_program',
|
|
4477
|
-
remark: ' ่ทณ่ฝฌๅฐ็ฌฌไธๆน็ๅฐ็จๅบ[ไป
ๅฐ็จๅบ้็จ]',
|
|
4478
|
-
val: '/pages/miniProgram/index?appid={appid}&url={url}'
|
|
4479
|
-
}, {
|
|
4480
|
-
key: 'ojb://call_browser',
|
|
4481
|
-
remark: ' ๆ่ตทๅค้จ็ๆต่งๅจ๏ผๅนถไธๆๅผๆๅฎ็ฝๅ',
|
|
4482
|
-
val: '/pages/webPage/index?url={url}'
|
|
4483
|
-
}, {
|
|
4484
|
-
key: 'ojb://call_wx_share_to_friend',
|
|
4485
|
-
remark: ' ๆ นๆฎๅไบซ็ฑปๅ่ฟ่กๅฏนๅบๅไบซๆไฝ ?type={ๅไบซ็ฑปๅ๏ผ1ใ็ฉๅ่ต ้}©_text={ๅคๅถๆๆก}',
|
|
4486
|
-
val: '[event]'
|
|
4487
|
-
}, {
|
|
4488
|
-
key: 'ojb://present_receive',
|
|
4489
|
-
remark: ' ๆๅผ้ฆ้กตๆ นๆฎ ่ต ้็ ๆฅ่ฏข็คผ็ฉๅนถๅผน็ช ?present_code={่ต ้็ }',
|
|
4490
|
-
val: '/pages/boxHome/index?present_code={present_code}'
|
|
4491
|
-
}, {
|
|
4492
|
-
key: 'ojb://present_invalid',
|
|
4493
|
-
remark: '็นๅปๆฃๆต่ต ้็ ๆๆๆงใๆ ๆๅผน็ชๆ็คบ๏ผๆๆ่ทณ่ฝฌๅ
ๆฐไปๅบ้กต้ข',
|
|
4494
|
-
val: '/pages/myCenter/storeHouse/index?present_code={present_code}&hide_modal=1'
|
|
4495
|
-
}, {
|
|
4496
|
-
key: 'ojb://seckill_list',
|
|
4497
|
-
remark: ' ็งๆๅ่กจ้กต',
|
|
4498
|
-
val: '/pages/secKill/index?seckillId={seckillId}'
|
|
4499
|
-
}, {
|
|
4500
|
-
key: 'ojb://ip_home',
|
|
4501
|
-
remark: ' IP้ฆ้กต',
|
|
4502
|
-
val: '/pages/ipHome/index'
|
|
4503
|
-
}, {
|
|
4504
|
-
key: 'ojb://ip_home_all',
|
|
4505
|
-
remark: ' IP-ๅ
จ้จ้กต้ข',
|
|
4506
|
-
val: '/pages/ipHome/all/index'
|
|
4507
|
-
}, {
|
|
4508
|
-
key: 'ojb://ip_home_detail',
|
|
4509
|
-
remark: ' IP-่ฏฆๆ
้กต',
|
|
4510
|
-
val: '/pages/searchResMall/index?ip={ip}'
|
|
4511
|
-
}, {
|
|
4512
|
-
key: 'ojb://home_search',
|
|
4513
|
-
remark: ' ๅ็ฑปๆ็ดข้กต',
|
|
4514
|
-
val: '/pages/searchResMall/index?type={type}&keyword={keyword}'
|
|
4515
|
-
}, {
|
|
4516
|
-
key: 'ojb://nft_column_list',
|
|
4517
|
-
remark: 'ๆฐๅญ่ๅ้ฆ้กต',
|
|
4518
|
-
val: '/pages/nft/index/index?tabsId={tabsId}'
|
|
4519
|
-
}, {
|
|
4520
|
-
key: 'ojb://nft_subject',
|
|
4521
|
-
remark: 'ๆฐๅญ่ๅไธ้ข',
|
|
4522
|
-
val: '/pages/nft/goodsList/index?id={id}'
|
|
4523
|
-
}, {
|
|
4524
|
-
key: 'ojb://nft_goods_detail',
|
|
4525
|
-
remark: 'ๆฐๅญ่ๅ่ฏฆๆ
',
|
|
4526
|
-
val: '/pages/nft/goodsDetail/index?id={id}&subId={subId}&source={source}'
|
|
4527
|
-
}, {
|
|
4528
|
-
key: 'ojb://showcase',
|
|
4529
|
-
remark: 'ๅฑๆ',
|
|
4530
|
-
val: '/pages/playerHome/index/index?drawId={id}&second={second}'
|
|
4531
|
-
}, {
|
|
4532
|
-
key: 'ojb://draw_order',
|
|
4533
|
-
remark: 'ๆฝ้ๆไบค่ฎขๅ้กต',
|
|
4534
|
-
val: '/pages/myCenter/drawOrder/index?id={id}'
|
|
4535
|
-
}, {
|
|
4536
|
-
key: 'ojb://user_assets_order_detail',
|
|
4537
|
-
remark: '่ฎขๅ่ฏฆๆ
',
|
|
4538
|
-
val: '/pages/myCenter/orderDetails/index?id={id}'
|
|
4539
|
-
}, {
|
|
4540
|
-
key: 'ojb://playerHome',
|
|
4541
|
-
remark: 'ๆฐๆฝฎ็ฉๅฎถ้กต้ข // ?id={ๆฝฎ็ฉๅฎถๅฑๆid}&user_id={็จๆทid}',
|
|
4542
|
-
val: '/pages/playerHome/index/index?id={id}&user_id={user_id}&drawId={drawId}&second={second}'
|
|
4543
|
-
}, {
|
|
4544
|
-
key: 'ojb://playerHome_threePage',
|
|
4545
|
-
remark: 'ๆฐๆฝฎ็ฉๅฎถๅฏนๅบ็3d่ฏฆๆ
้กต // ?id={3did}&type={ๅๅ็ฑปๅย mall | share | creation ๅฏไธไผ ย ้ป่ฎคย mall}',
|
|
4546
|
-
val: '/pages/playerHome/threePage/index?id={id}&type={type}'
|
|
4547
|
-
}, {
|
|
4548
|
-
key: 'ojb://cdkey',
|
|
4549
|
-
remark: 'cdkeyๅ
ๆขไธญๅฟ',
|
|
4550
|
-
val: '/pages/myCenter/cdKey/index'
|
|
4551
|
-
}, {
|
|
4552
|
-
key: 'ojb://myData',
|
|
4553
|
-
remark: 'ไธชไบบ่ตๆ',
|
|
4554
|
-
val: '/pages/myCenter/myData/index'
|
|
4555
|
-
}, {
|
|
4556
|
-
key: 'ojb://membership',
|
|
4557
|
-
remark: 'ไผๅไธญๅฟ',
|
|
4558
|
-
val: '/pages/myCenter/vip/index'
|
|
4559
|
-
}, {
|
|
4560
|
-
key: 'ojb://continuousAttack',
|
|
4561
|
-
remark: '่ฟๅป่ต',
|
|
4562
|
-
val: '/pages/continuousAttack/index/index?id={id}&source={source}'
|
|
4563
|
-
}];
|
|
4564
|
-
var getOjbUrlFn = function getOjbUrlFn(url, newOjbRouterArr) {
|
|
4565
|
-
if (newOjbRouterArr === void 0) {
|
|
4566
|
-
newOjbRouterArr = [];
|
|
4567
|
-
}
|
|
4568
|
-
if (!url) {
|
|
4569
|
-
return '';
|
|
4570
|
-
}
|
|
4571
|
-
var baseUrl = url.split('?')[0];
|
|
4572
|
-
var params = urlToParams(url);
|
|
4573
|
-
var ojbRouterArr = __spreadArray(__spreadArray([], newOjbRouterArr, true), ojbRouter, true);
|
|
4574
|
-
var res = ojbRouterArr.find(function (e) {
|
|
4575
|
-
return e.key.indexOf(baseUrl) !== -1;
|
|
4576
|
-
});
|
|
4577
|
-
if ((res === null || res === void 0 ? void 0 : res.key) === 'ojb://call_wechat_path') {
|
|
4578
|
-
if (params.appid !== localAppId) {
|
|
4579
|
-
return getOjbUrlFn("ojb://call_mini_program?".concat(url.split('?')[1]));
|
|
4580
|
-
}
|
|
4581
|
-
}
|
|
4582
|
-
if ((res === null || res === void 0 ? void 0 : res.val) === '[event]') {
|
|
4583
|
-
return '';
|
|
4584
|
-
}
|
|
4585
|
-
var toUrl = (res === null || res === void 0 ? void 0 : res.val) || '';
|
|
4586
|
-
toUrl.replace(/\{(.*?)}/g, function (_, key) {
|
|
4587
|
-
return params[key.trim()] || '';
|
|
4588
|
-
});
|
|
4589
|
-
console.log('๐ ~ file: ojbhandle.ts:348 ~ toUrl:', toUrl);
|
|
4590
|
-
// for (const key in params) {
|
|
4591
|
-
// toUrl = toUrl.replace(`{${key}}`, params[key])
|
|
4592
|
-
// }
|
|
4593
|
-
toUrl = toUrl.replace(/{.*}/g, '');
|
|
4594
|
-
console.log('๐ ~ file: ojbhandle.ts ~ line 194 ~ getOjbUrlFn ~ toUrl', params);
|
|
4595
|
-
if ((res === null || res === void 0 ? void 0 : res.key) === 'ojb://call_wechat_path') {
|
|
4596
|
-
return decodeURIComponent(toUrl);
|
|
4597
|
-
} else {
|
|
4598
|
-
return toUrl;
|
|
4599
|
-
}
|
|
4600
|
-
};
|
|
4601
|
-
|
|
4602
4133
|
var weixinJsSdkExports = {};
|
|
4603
4134
|
var weixinJsSdk = {
|
|
4604
4135
|
get exports(){ return weixinJsSdkExports; },
|
|
@@ -5743,6 +5274,43 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5743
5274
|
enumerable: false,
|
|
5744
5275
|
configurable: true
|
|
5745
5276
|
});
|
|
5277
|
+
Object.defineProperty(OldJuboSdk.prototype, "getOjbUrlFn", {
|
|
5278
|
+
enumerable: false,
|
|
5279
|
+
configurable: true,
|
|
5280
|
+
writable: true,
|
|
5281
|
+
value: function value(url) {
|
|
5282
|
+
if (!url) {
|
|
5283
|
+
return '';
|
|
5284
|
+
}
|
|
5285
|
+
if (this.options.handleOjbUrlFn) {
|
|
5286
|
+
return this.options.handleOjbUrlFn(url);
|
|
5287
|
+
}
|
|
5288
|
+
var baseUrl = url.split('?')[0];
|
|
5289
|
+
var params = urlToParams(url);
|
|
5290
|
+
var ojbRouterArr = this.options.ojbRouter || [];
|
|
5291
|
+
var res = ojbRouterArr.find(function (e) {
|
|
5292
|
+
return e.key.indexOf(baseUrl) !== -1;
|
|
5293
|
+
});
|
|
5294
|
+
if ((res === null || res === void 0 ? void 0 : res.key) === 'ojb://call_wechat_path') {
|
|
5295
|
+
if (params.appid !== this.options.miniProgramLogin) {
|
|
5296
|
+
return this.getOjbUrlFn("ojb://call_mini_program?".concat(url.split('?')[1]));
|
|
5297
|
+
}
|
|
5298
|
+
}
|
|
5299
|
+
if ((res === null || res === void 0 ? void 0 : res.val) === '[event]') {
|
|
5300
|
+
return '';
|
|
5301
|
+
}
|
|
5302
|
+
var toUrl = (res === null || res === void 0 ? void 0 : res.val) || '';
|
|
5303
|
+
toUrl.replace(/\{(.*?)}/g, function (_, key) {
|
|
5304
|
+
return params[key.trim()] || '';
|
|
5305
|
+
});
|
|
5306
|
+
toUrl = toUrl.replace(/{.*}/g, '');
|
|
5307
|
+
if ((res === null || res === void 0 ? void 0 : res.key) === 'ojb://call_wechat_path') {
|
|
5308
|
+
return decodeURIComponent(toUrl);
|
|
5309
|
+
} else {
|
|
5310
|
+
return toUrl;
|
|
5311
|
+
}
|
|
5312
|
+
}
|
|
5313
|
+
});
|
|
5746
5314
|
/**
|
|
5747
5315
|
* ่ทๅtoken
|
|
5748
5316
|
* @environment [ios, android]
|
|
@@ -5834,7 +5402,7 @@ var OldJuboSdk = /** @class */function () {
|
|
|
5834
5402
|
break;
|
|
5835
5403
|
case 'wx':
|
|
5836
5404
|
// console.log('url', url)
|
|
5837
|
-
var url_1 = getOjbUrlFn(route);
|
|
5405
|
+
var url_1 = this.getOjbUrlFn(route);
|
|
5838
5406
|
if (url_1) {
|
|
5839
5407
|
var tabRouterList = this.options.miniProgramTabBar || ['/pages/home/index', '/pages/boxHome/index', '/pages/csgoPage/index',
|
|
5840
5408
|
// '/pages/welfare/index',
|
|
@@ -6463,6 +6031,43 @@ var JuboSdk = /** @class */function () {
|
|
|
6463
6031
|
enumerable: false,
|
|
6464
6032
|
configurable: true
|
|
6465
6033
|
});
|
|
6034
|
+
Object.defineProperty(JuboSdk.prototype, "getOjbUrlFn", {
|
|
6035
|
+
enumerable: false,
|
|
6036
|
+
configurable: true,
|
|
6037
|
+
writable: true,
|
|
6038
|
+
value: function value(url) {
|
|
6039
|
+
if (!url) {
|
|
6040
|
+
return '';
|
|
6041
|
+
}
|
|
6042
|
+
if (this.options.handleOjbUrlFn) {
|
|
6043
|
+
return this.options.handleOjbUrlFn(url);
|
|
6044
|
+
}
|
|
6045
|
+
var baseUrl = url.split('?')[0];
|
|
6046
|
+
var params = urlToParams(url);
|
|
6047
|
+
var ojbRouterArr = this.options.ojbRouter || [];
|
|
6048
|
+
var res = ojbRouterArr.find(function (e) {
|
|
6049
|
+
return e.key.indexOf(baseUrl) !== -1;
|
|
6050
|
+
});
|
|
6051
|
+
if ((res === null || res === void 0 ? void 0 : res.key) === 'ojb://call_wechat_path') {
|
|
6052
|
+
if (params.appid !== this.options.miniProgramLogin) {
|
|
6053
|
+
return this.getOjbUrlFn("ojb://call_mini_program?".concat(url.split('?')[1]));
|
|
6054
|
+
}
|
|
6055
|
+
}
|
|
6056
|
+
if ((res === null || res === void 0 ? void 0 : res.val) === '[event]') {
|
|
6057
|
+
return '';
|
|
6058
|
+
}
|
|
6059
|
+
var toUrl = (res === null || res === void 0 ? void 0 : res.val) || '';
|
|
6060
|
+
toUrl.replace(/\{(.*?)}/g, function (_, key) {
|
|
6061
|
+
return params[key.trim()] || '';
|
|
6062
|
+
});
|
|
6063
|
+
toUrl = toUrl.replace(/{.*}/g, '');
|
|
6064
|
+
if ((res === null || res === void 0 ? void 0 : res.key) === 'ojb://call_wechat_path') {
|
|
6065
|
+
return decodeURIComponent(toUrl);
|
|
6066
|
+
} else {
|
|
6067
|
+
return toUrl;
|
|
6068
|
+
}
|
|
6069
|
+
}
|
|
6070
|
+
});
|
|
6466
6071
|
/**
|
|
6467
6072
|
* ่ทๅtoken
|
|
6468
6073
|
* @environment [ios, android]
|
|
@@ -6532,7 +6137,7 @@ var JuboSdk = /** @class */function () {
|
|
|
6532
6137
|
if (!this.detection) return;
|
|
6533
6138
|
try {
|
|
6534
6139
|
if (this.isMiniProgram) {
|
|
6535
|
-
var url_1 = getOjbUrlFn(route);
|
|
6140
|
+
var url_1 = this.getOjbUrlFn(route);
|
|
6536
6141
|
if (url_1) {
|
|
6537
6142
|
var tabRouterList = this.options.miniProgramTabBar || ['/pages/home/index', '/pages/boxHome/index', '/pages/csgoPage/index', '/pages/mine/index', '/pages/ipHome/index'];
|
|
6538
6143
|
var flag = tabRouterList.find(function (e) {
|
|
@@ -6991,21 +6596,18 @@ var url = location.href;
|
|
|
6991
6596
|
var urlData = urlToParams(url);
|
|
6992
6597
|
var device = urlData.device || ls.get('device') || '';
|
|
6993
6598
|
var isfull = urlData.isfull || ls.get('isfull') || '';
|
|
6994
|
-
setTimeout(function () {
|
|
6995
|
-
console.log("๐ ~ file: index.ts:20 ~ urlData.isfull || ls.get('isfull'):", isfull, urlData.isfull);
|
|
6996
|
-
}, 1000);
|
|
6997
6599
|
var version = urlData.version || ls.get('version') || '';
|
|
6998
6600
|
ls.set('device', device);
|
|
6999
6601
|
ls.set('isfull', isfull);
|
|
7000
6602
|
ls.set('version', version);
|
|
7001
6603
|
if (process.env.NODE_ENV === 'development') {
|
|
7002
|
-
updateNotifier(pkg.name, pkg.version);
|
|
6604
|
+
updateNotifier(pkg.name, pkg.version, pkg.updateDoc);
|
|
7003
6605
|
}
|
|
7004
6606
|
|
|
7005
6607
|
exports.default = JuboSdk;
|
|
7006
6608
|
exports.ls = ls;
|
|
7007
6609
|
|
|
7008
6610
|
if(typeof window !== 'undefined') {
|
|
7009
|
-
window._juboSDK_VERSION_ = '1.1.
|
|
6611
|
+
window._juboSDK_VERSION_ = '1.1.2'
|
|
7010
6612
|
}
|
|
7011
6613
|
//# sourceMappingURL=index.cjs.js.map
|