docviewhelper 0.0.2 → 0.1.1

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/index.js CHANGED
@@ -1,3013 +1,49 @@
1
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
-
3
- var check = function (it) {
4
- return it && it.Math == Math && it;
5
- };
6
-
7
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
8
- var global$G =
9
- // eslint-disable-next-line es-x/no-global-this -- safe
10
- check(typeof globalThis == 'object' && globalThis) ||
11
- check(typeof window == 'object' && window) ||
12
- // eslint-disable-next-line no-restricted-globals -- safe
13
- check(typeof self == 'object' && self) ||
14
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
15
- // eslint-disable-next-line no-new-func -- fallback
16
- (function () { return this; })() || Function('return this')();
17
-
18
- var objectGetOwnPropertyDescriptor = {};
19
-
20
- var fails$e = function (exec) {
21
- try {
22
- return !!exec();
23
- } catch (error) {
24
- return true;
25
- }
26
- };
27
-
28
- var fails$d = fails$e;
29
-
30
- // Detect IE8's incomplete defineProperty implementation
31
- var descriptors = !fails$d(function () {
32
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
33
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
34
- });
35
-
36
- var fails$c = fails$e;
37
-
38
- var functionBindNative = !fails$c(function () {
39
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
40
- var test = (function () { /* empty */ }).bind();
41
- // eslint-disable-next-line no-prototype-builtins -- safe
42
- return typeof test != 'function' || test.hasOwnProperty('prototype');
43
- });
44
-
45
- var NATIVE_BIND$3 = functionBindNative;
46
-
47
- var call$g = Function.prototype.call;
48
-
49
- var functionCall = NATIVE_BIND$3 ? call$g.bind(call$g) : function () {
50
- return call$g.apply(call$g, arguments);
51
- };
52
-
53
- var objectPropertyIsEnumerable = {};
54
-
55
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
56
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
57
- var getOwnPropertyDescriptor$4 = Object.getOwnPropertyDescriptor;
58
-
59
- // Nashorn ~ JDK8 bug
60
- var NASHORN_BUG = getOwnPropertyDescriptor$4 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
61
-
62
- // `Object.prototype.propertyIsEnumerable` method implementation
63
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
64
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
65
- var descriptor = getOwnPropertyDescriptor$4(this, V);
66
- return !!descriptor && descriptor.enumerable;
67
- } : $propertyIsEnumerable;
68
-
69
- var createPropertyDescriptor$2 = function (bitmap, value) {
70
- return {
71
- enumerable: !(bitmap & 1),
72
- configurable: !(bitmap & 2),
73
- writable: !(bitmap & 4),
74
- value: value
75
- };
76
- };
77
-
78
- var NATIVE_BIND$2 = functionBindNative;
79
-
80
- var FunctionPrototype$2 = Function.prototype;
81
- var bind$5 = FunctionPrototype$2.bind;
82
- var call$f = FunctionPrototype$2.call;
83
- var uncurryThis$k = NATIVE_BIND$2 && bind$5.bind(call$f, call$f);
84
-
85
- var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
86
- return fn && uncurryThis$k(fn);
87
- } : function (fn) {
88
- return fn && function () {
89
- return call$f.apply(fn, arguments);
90
- };
91
- };
92
-
93
- var uncurryThis$j = functionUncurryThis;
94
-
95
- var toString$8 = uncurryThis$j({}.toString);
96
- var stringSlice$5 = uncurryThis$j(''.slice);
97
-
98
- var classofRaw$1 = function (it) {
99
- return stringSlice$5(toString$8(it), 8, -1);
100
- };
101
-
102
- var global$F = global$G;
103
- var uncurryThis$i = functionUncurryThis;
104
- var fails$b = fails$e;
105
- var classof$7 = classofRaw$1;
106
-
107
- var Object$4 = global$F.Object;
108
- var split = uncurryThis$i(''.split);
109
-
110
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
111
- var indexedObject = fails$b(function () {
112
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
113
- // eslint-disable-next-line no-prototype-builtins -- safe
114
- return !Object$4('z').propertyIsEnumerable(0);
115
- }) ? function (it) {
116
- return classof$7(it) == 'String' ? split(it, '') : Object$4(it);
117
- } : Object$4;
118
-
119
- var global$E = global$G;
120
-
121
- var TypeError$g = global$E.TypeError;
122
-
123
- // `RequireObjectCoercible` abstract operation
124
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
125
- var requireObjectCoercible$7 = function (it) {
126
- if (it == undefined) throw TypeError$g("Can't call method on " + it);
127
- return it;
128
- };
129
-
130
- // toObject with fallback for non-array-like ES3 strings
131
- var IndexedObject = indexedObject;
132
- var requireObjectCoercible$6 = requireObjectCoercible$7;
133
-
134
- var toIndexedObject$4 = function (it) {
135
- return IndexedObject(requireObjectCoercible$6(it));
136
- };
137
-
138
- // `IsCallable` abstract operation
139
- // https://tc39.es/ecma262/#sec-iscallable
140
- var isCallable$i = function (argument) {
141
- return typeof argument == 'function';
142
- };
143
-
144
- var isCallable$h = isCallable$i;
145
-
146
- var isObject$8 = function (it) {
147
- return typeof it == 'object' ? it !== null : isCallable$h(it);
148
- };
149
-
150
- var global$D = global$G;
151
- var isCallable$g = isCallable$i;
152
-
153
- var aFunction = function (argument) {
154
- return isCallable$g(argument) ? argument : undefined;
155
- };
156
-
157
- var getBuiltIn$8 = function (namespace, method) {
158
- return arguments.length < 2 ? aFunction(global$D[namespace]) : global$D[namespace] && global$D[namespace][method];
159
- };
160
-
161
- var uncurryThis$h = functionUncurryThis;
162
-
163
- var objectIsPrototypeOf = uncurryThis$h({}.isPrototypeOf);
164
-
165
- var getBuiltIn$7 = getBuiltIn$8;
166
-
167
- var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
168
-
169
- var global$C = global$G;
170
- var userAgent$3 = engineUserAgent;
171
-
172
- var process$3 = global$C.process;
173
- var Deno$1 = global$C.Deno;
174
- var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
175
- var v8 = versions && versions.v8;
176
- var match, version;
177
-
178
- if (v8) {
179
- match = v8.split('.');
180
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
181
- // but their correct versions are not interesting for us
182
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
183
- }
184
-
185
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
186
- // so check `userAgent` even if `.v8` exists, but 0
187
- if (!version && userAgent$3) {
188
- match = userAgent$3.match(/Edge\/(\d+)/);
189
- if (!match || match[1] >= 74) {
190
- match = userAgent$3.match(/Chrome\/(\d+)/);
191
- if (match) version = +match[1];
192
- }
193
- }
194
-
195
- var engineV8Version = version;
196
-
197
- /* eslint-disable es-x/no-symbol -- required for testing */
198
-
199
- var V8_VERSION$1 = engineV8Version;
200
- var fails$a = fails$e;
201
-
202
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
203
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$a(function () {
204
- var symbol = Symbol();
205
- // Chrome 38 Symbol has incorrect toString conversion
206
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
207
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
208
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
209
- !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
210
- });
211
-
212
- /* eslint-disable es-x/no-symbol -- required for testing */
213
-
214
- var NATIVE_SYMBOL$1 = nativeSymbol;
215
-
216
- var useSymbolAsUid = NATIVE_SYMBOL$1
217
- && !Symbol.sham
218
- && typeof Symbol.iterator == 'symbol';
219
-
220
- var global$B = global$G;
221
- var getBuiltIn$6 = getBuiltIn$8;
222
- var isCallable$f = isCallable$i;
223
- var isPrototypeOf$2 = objectIsPrototypeOf;
224
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
225
-
226
- var Object$3 = global$B.Object;
227
-
228
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
229
- return typeof it == 'symbol';
230
- } : function (it) {
231
- var $Symbol = getBuiltIn$6('Symbol');
232
- return isCallable$f($Symbol) && isPrototypeOf$2($Symbol.prototype, Object$3(it));
233
- };
234
-
235
- var global$A = global$G;
236
-
237
- var String$5 = global$A.String;
238
-
239
- var tryToString$4 = function (argument) {
240
- try {
241
- return String$5(argument);
242
- } catch (error) {
243
- return 'Object';
244
- }
245
- };
246
-
247
- var global$z = global$G;
248
- var isCallable$e = isCallable$i;
249
- var tryToString$3 = tryToString$4;
250
-
251
- var TypeError$f = global$z.TypeError;
252
-
253
- // `Assert: IsCallable(argument) is true`
254
- var aCallable$7 = function (argument) {
255
- if (isCallable$e(argument)) return argument;
256
- throw TypeError$f(tryToString$3(argument) + ' is not a function');
257
- };
258
-
259
- var aCallable$6 = aCallable$7;
260
-
261
- // `GetMethod` abstract operation
262
- // https://tc39.es/ecma262/#sec-getmethod
263
- var getMethod$5 = function (V, P) {
264
- var func = V[P];
265
- return func == null ? undefined : aCallable$6(func);
266
- };
267
-
268
- var global$y = global$G;
269
- var call$e = functionCall;
270
- var isCallable$d = isCallable$i;
271
- var isObject$7 = isObject$8;
272
-
273
- var TypeError$e = global$y.TypeError;
274
-
275
- // `OrdinaryToPrimitive` abstract operation
276
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
277
- var ordinaryToPrimitive$1 = function (input, pref) {
278
- var fn, val;
279
- if (pref === 'string' && isCallable$d(fn = input.toString) && !isObject$7(val = call$e(fn, input))) return val;
280
- if (isCallable$d(fn = input.valueOf) && !isObject$7(val = call$e(fn, input))) return val;
281
- if (pref !== 'string' && isCallable$d(fn = input.toString) && !isObject$7(val = call$e(fn, input))) return val;
282
- throw TypeError$e("Can't convert object to primitive value");
283
- };
284
-
285
- var shared$4 = {exports: {}};
286
-
287
- var global$x = global$G;
288
-
289
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
290
- var defineProperty$1 = Object.defineProperty;
291
-
292
- var setGlobal$3 = function (key, value) {
293
- try {
294
- defineProperty$1(global$x, key, { value: value, configurable: true, writable: true });
295
- } catch (error) {
296
- global$x[key] = value;
297
- } return value;
298
- };
299
-
300
- var global$w = global$G;
301
- var setGlobal$2 = setGlobal$3;
302
-
303
- var SHARED = '__core-js_shared__';
304
- var store$3 = global$w[SHARED] || setGlobal$2(SHARED, {});
305
-
306
- var sharedStore = store$3;
307
-
308
- var store$2 = sharedStore;
309
-
310
- (shared$4.exports = function (key, value) {
311
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
312
- })('versions', []).push({
313
- version: '3.22.2',
314
- mode: 'global',
315
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
316
- license: 'https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE',
317
- source: 'https://github.com/zloirock/core-js'
318
- });
319
-
320
- var global$v = global$G;
321
- var requireObjectCoercible$5 = requireObjectCoercible$7;
322
-
323
- var Object$2 = global$v.Object;
324
-
325
- // `ToObject` abstract operation
326
- // https://tc39.es/ecma262/#sec-toobject
327
- var toObject$2 = function (argument) {
328
- return Object$2(requireObjectCoercible$5(argument));
329
- };
330
-
331
- var uncurryThis$g = functionUncurryThis;
332
- var toObject$1 = toObject$2;
333
-
334
- var hasOwnProperty = uncurryThis$g({}.hasOwnProperty);
335
-
336
- // `HasOwnProperty` abstract operation
337
- // https://tc39.es/ecma262/#sec-hasownproperty
338
- // eslint-disable-next-line es-x/no-object-hasown -- safe
339
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
340
- return hasOwnProperty(toObject$1(it), key);
341
- };
342
-
343
- var uncurryThis$f = functionUncurryThis;
344
-
345
- var id = 0;
346
- var postfix = Math.random();
347
- var toString$7 = uncurryThis$f(1.0.toString);
348
-
349
- var uid$2 = function (key) {
350
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$7(++id + postfix, 36);
351
- };
352
-
353
- var global$u = global$G;
354
- var shared$3 = shared$4.exports;
355
- var hasOwn$8 = hasOwnProperty_1;
356
- var uid$1 = uid$2;
357
- var NATIVE_SYMBOL = nativeSymbol;
358
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
359
-
360
- var WellKnownSymbolsStore = shared$3('wks');
361
- var Symbol$1 = global$u.Symbol;
362
- var symbolFor = Symbol$1 && Symbol$1['for'];
363
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
364
-
365
- var wellKnownSymbol$f = function (name) {
366
- if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
367
- var description = 'Symbol.' + name;
368
- if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
369
- WellKnownSymbolsStore[name] = Symbol$1[name];
370
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
371
- WellKnownSymbolsStore[name] = symbolFor(description);
372
- } else {
373
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
374
- }
375
- } return WellKnownSymbolsStore[name];
376
- };
377
-
378
- var global$t = global$G;
379
- var call$d = functionCall;
380
- var isObject$6 = isObject$8;
381
- var isSymbol$1 = isSymbol$2;
382
- var getMethod$4 = getMethod$5;
383
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
384
- var wellKnownSymbol$e = wellKnownSymbol$f;
385
-
386
- var TypeError$d = global$t.TypeError;
387
- var TO_PRIMITIVE = wellKnownSymbol$e('toPrimitive');
388
-
389
- // `ToPrimitive` abstract operation
390
- // https://tc39.es/ecma262/#sec-toprimitive
391
- var toPrimitive$1 = function (input, pref) {
392
- if (!isObject$6(input) || isSymbol$1(input)) return input;
393
- var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
394
- var result;
395
- if (exoticToPrim) {
396
- if (pref === undefined) pref = 'default';
397
- result = call$d(exoticToPrim, input, pref);
398
- if (!isObject$6(result) || isSymbol$1(result)) return result;
399
- throw TypeError$d("Can't convert object to primitive value");
400
- }
401
- if (pref === undefined) pref = 'number';
402
- return ordinaryToPrimitive(input, pref);
403
- };
404
-
405
- var toPrimitive = toPrimitive$1;
406
- var isSymbol = isSymbol$2;
407
-
408
- // `ToPropertyKey` abstract operation
409
- // https://tc39.es/ecma262/#sec-topropertykey
410
- var toPropertyKey$2 = function (argument) {
411
- var key = toPrimitive(argument, 'string');
412
- return isSymbol(key) ? key : key + '';
413
- };
414
-
415
- var global$s = global$G;
416
- var isObject$5 = isObject$8;
417
-
418
- var document$3 = global$s.document;
419
- // typeof document.createElement is 'object' in old IE
420
- var EXISTS$1 = isObject$5(document$3) && isObject$5(document$3.createElement);
421
-
422
- var documentCreateElement$1 = function (it) {
423
- return EXISTS$1 ? document$3.createElement(it) : {};
424
- };
425
-
426
- var DESCRIPTORS$7 = descriptors;
427
- var fails$9 = fails$e;
428
- var createElement$1 = documentCreateElement$1;
429
-
430
- // Thanks to IE8 for its funny defineProperty
431
- var ie8DomDefine = !DESCRIPTORS$7 && !fails$9(function () {
432
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
433
- return Object.defineProperty(createElement$1('div'), 'a', {
434
- get: function () { return 7; }
435
- }).a != 7;
436
- });
437
-
438
- var DESCRIPTORS$6 = descriptors;
439
- var call$c = functionCall;
440
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
441
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
442
- var toIndexedObject$3 = toIndexedObject$4;
443
- var toPropertyKey$1 = toPropertyKey$2;
444
- var hasOwn$7 = hasOwnProperty_1;
445
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
446
-
447
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
448
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
449
-
450
- // `Object.getOwnPropertyDescriptor` method
451
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
452
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
453
- O = toIndexedObject$3(O);
454
- P = toPropertyKey$1(P);
455
- if (IE8_DOM_DEFINE$1) try {
456
- return $getOwnPropertyDescriptor$1(O, P);
457
- } catch (error) { /* empty */ }
458
- if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$c(propertyIsEnumerableModule.f, O, P), O[P]);
459
- };
460
-
461
- var objectDefineProperty = {};
462
-
463
- var DESCRIPTORS$5 = descriptors;
464
- var fails$8 = fails$e;
465
-
466
- // V8 ~ Chrome 36-
467
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
468
- var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$8(function () {
469
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
470
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
471
- value: 42,
472
- writable: false
473
- }).prototype != 42;
474
- });
475
-
476
- var global$r = global$G;
477
- var isObject$4 = isObject$8;
478
-
479
- var String$4 = global$r.String;
480
- var TypeError$c = global$r.TypeError;
481
-
482
- // `Assert: Type(argument) is Object`
483
- var anObject$e = function (argument) {
484
- if (isObject$4(argument)) return argument;
485
- throw TypeError$c(String$4(argument) + ' is not an object');
486
- };
487
-
488
- var global$q = global$G;
489
- var DESCRIPTORS$4 = descriptors;
490
- var IE8_DOM_DEFINE = ie8DomDefine;
491
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
492
- var anObject$d = anObject$e;
493
- var toPropertyKey = toPropertyKey$2;
494
-
495
- var TypeError$b = global$q.TypeError;
496
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
497
- var $defineProperty = Object.defineProperty;
498
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
499
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
500
- var ENUMERABLE = 'enumerable';
501
- var CONFIGURABLE$1 = 'configurable';
502
- var WRITABLE = 'writable';
503
-
504
- // `Object.defineProperty` method
505
- // https://tc39.es/ecma262/#sec-object.defineproperty
506
- objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
507
- anObject$d(O);
508
- P = toPropertyKey(P);
509
- anObject$d(Attributes);
510
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
511
- var current = $getOwnPropertyDescriptor(O, P);
512
- if (current && current[WRITABLE]) {
513
- O[P] = Attributes.value;
514
- Attributes = {
515
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
516
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
517
- writable: false
518
- };
519
- }
520
- } return $defineProperty(O, P, Attributes);
521
- } : $defineProperty : function defineProperty(O, P, Attributes) {
522
- anObject$d(O);
523
- P = toPropertyKey(P);
524
- anObject$d(Attributes);
525
- if (IE8_DOM_DEFINE) try {
526
- return $defineProperty(O, P, Attributes);
527
- } catch (error) { /* empty */ }
528
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$b('Accessors not supported');
529
- if ('value' in Attributes) O[P] = Attributes.value;
530
- return O;
531
- };
532
-
533
- var DESCRIPTORS$3 = descriptors;
534
- var definePropertyModule$4 = objectDefineProperty;
535
- var createPropertyDescriptor = createPropertyDescriptor$2;
536
-
537
- var createNonEnumerableProperty$4 = DESCRIPTORS$3 ? function (object, key, value) {
538
- return definePropertyModule$4.f(object, key, createPropertyDescriptor(1, value));
539
- } : function (object, key, value) {
540
- object[key] = value;
541
- return object;
542
- };
543
-
544
- var redefine$5 = {exports: {}};
545
-
546
- var uncurryThis$e = functionUncurryThis;
547
- var isCallable$c = isCallable$i;
548
- var store$1 = sharedStore;
549
-
550
- var functionToString = uncurryThis$e(Function.toString);
551
-
552
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
553
- if (!isCallable$c(store$1.inspectSource)) {
554
- store$1.inspectSource = function (it) {
555
- return functionToString(it);
556
- };
557
- }
558
-
559
- var inspectSource$4 = store$1.inspectSource;
560
-
561
- var global$p = global$G;
562
- var isCallable$b = isCallable$i;
563
- var inspectSource$3 = inspectSource$4;
564
-
565
- var WeakMap$1 = global$p.WeakMap;
566
-
567
- var nativeWeakMap = isCallable$b(WeakMap$1) && /native code/.test(inspectSource$3(WeakMap$1));
568
-
569
- var shared$2 = shared$4.exports;
570
- var uid = uid$2;
571
-
572
- var keys = shared$2('keys');
573
-
574
- var sharedKey$2 = function (key) {
575
- return keys[key] || (keys[key] = uid(key));
576
- };
577
-
578
- var hiddenKeys$4 = {};
579
-
580
- var NATIVE_WEAK_MAP = nativeWeakMap;
581
- var global$o = global$G;
582
- var uncurryThis$d = functionUncurryThis;
583
- var isObject$3 = isObject$8;
584
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
585
- var hasOwn$6 = hasOwnProperty_1;
586
- var shared$1 = sharedStore;
587
- var sharedKey$1 = sharedKey$2;
588
- var hiddenKeys$3 = hiddenKeys$4;
589
-
590
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
591
- var TypeError$a = global$o.TypeError;
592
- var WeakMap = global$o.WeakMap;
593
- var set$1, get, has;
594
-
595
- var enforce = function (it) {
596
- return has(it) ? get(it) : set$1(it, {});
597
- };
598
-
599
- var getterFor = function (TYPE) {
600
- return function (it) {
601
- var state;
602
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
603
- throw TypeError$a('Incompatible receiver, ' + TYPE + ' required');
604
- } return state;
605
- };
606
- };
607
-
608
- if (NATIVE_WEAK_MAP || shared$1.state) {
609
- var store = shared$1.state || (shared$1.state = new WeakMap());
610
- var wmget = uncurryThis$d(store.get);
611
- var wmhas = uncurryThis$d(store.has);
612
- var wmset = uncurryThis$d(store.set);
613
- set$1 = function (it, metadata) {
614
- if (wmhas(store, it)) throw new TypeError$a(OBJECT_ALREADY_INITIALIZED);
615
- metadata.facade = it;
616
- wmset(store, it, metadata);
617
- return metadata;
618
- };
619
- get = function (it) {
620
- return wmget(store, it) || {};
621
- };
622
- has = function (it) {
623
- return wmhas(store, it);
624
- };
625
- } else {
626
- var STATE = sharedKey$1('state');
627
- hiddenKeys$3[STATE] = true;
628
- set$1 = function (it, metadata) {
629
- if (hasOwn$6(it, STATE)) throw new TypeError$a(OBJECT_ALREADY_INITIALIZED);
630
- metadata.facade = it;
631
- createNonEnumerableProperty$3(it, STATE, metadata);
632
- return metadata;
633
- };
634
- get = function (it) {
635
- return hasOwn$6(it, STATE) ? it[STATE] : {};
636
- };
637
- has = function (it) {
638
- return hasOwn$6(it, STATE);
639
- };
640
- }
641
-
642
- var internalState = {
643
- set: set$1,
644
- get: get,
645
- has: has,
646
- enforce: enforce,
647
- getterFor: getterFor
648
- };
649
-
650
- var DESCRIPTORS$2 = descriptors;
651
- var hasOwn$5 = hasOwnProperty_1;
652
-
653
- var FunctionPrototype$1 = Function.prototype;
654
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
655
- var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
656
-
657
- var EXISTS = hasOwn$5(FunctionPrototype$1, 'name');
658
- // additional protection from minified / mangled / dropped function names
659
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
660
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype$1, 'name').configurable));
661
-
662
- var functionName = {
663
- EXISTS: EXISTS,
664
- PROPER: PROPER,
665
- CONFIGURABLE: CONFIGURABLE
666
- };
667
-
668
- var global$n = global$G;
669
- var isCallable$a = isCallable$i;
670
- var hasOwn$4 = hasOwnProperty_1;
671
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
672
- var setGlobal$1 = setGlobal$3;
673
- var inspectSource$2 = inspectSource$4;
674
- var InternalStateModule$1 = internalState;
675
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
676
-
677
- var getInternalState$1 = InternalStateModule$1.get;
678
- var enforceInternalState = InternalStateModule$1.enforce;
679
- var TEMPLATE = String(String).split('String');
680
-
681
- (redefine$5.exports = function (O, key, value, options) {
682
- var unsafe = options ? !!options.unsafe : false;
683
- var simple = options ? !!options.enumerable : false;
684
- var noTargetGet = options ? !!options.noTargetGet : false;
685
- var name = options && options.name !== undefined ? options.name : key;
686
- var state;
687
- if (isCallable$a(value)) {
688
- if (String(name).slice(0, 7) === 'Symbol(') {
689
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
690
- }
691
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
692
- createNonEnumerableProperty$2(value, 'name', name);
693
- }
694
- state = enforceInternalState(value);
695
- if (!state.source) {
696
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
697
- }
698
- }
699
- if (O === global$n) {
700
- if (simple) O[key] = value;
701
- else setGlobal$1(key, value);
702
- return;
703
- } else if (!unsafe) {
704
- delete O[key];
705
- } else if (!noTargetGet && O[key]) {
706
- simple = true;
707
- }
708
- if (simple) O[key] = value;
709
- else createNonEnumerableProperty$2(O, key, value);
710
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
711
- })(Function.prototype, 'toString', function toString() {
712
- return isCallable$a(this) && getInternalState$1(this).source || inspectSource$2(this);
713
- });
714
-
715
- var objectGetOwnPropertyNames = {};
716
-
717
- var ceil = Math.ceil;
718
- var floor$1 = Math.floor;
719
-
720
- // `ToIntegerOrInfinity` abstract operation
721
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
722
- var toIntegerOrInfinity$4 = function (argument) {
723
- var number = +argument;
724
- // eslint-disable-next-line no-self-compare -- safe
725
- return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
726
- };
727
-
728
- var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
729
-
730
- var max$1 = Math.max;
731
- var min$4 = Math.min;
732
-
733
- // Helper for a popular repeating case of the spec:
734
- // Let integer be ? ToInteger(index).
735
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
736
- var toAbsoluteIndex$1 = function (index, length) {
737
- var integer = toIntegerOrInfinity$3(index);
738
- return integer < 0 ? max$1(integer + length, 0) : min$4(integer, length);
739
- };
740
-
741
- var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
742
-
743
- var min$3 = Math.min;
744
-
745
- // `ToLength` abstract operation
746
- // https://tc39.es/ecma262/#sec-tolength
747
- var toLength$5 = function (argument) {
748
- return argument > 0 ? min$3(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
749
- };
750
-
751
- var toLength$4 = toLength$5;
752
-
753
- // `LengthOfArrayLike` abstract operation
754
- // https://tc39.es/ecma262/#sec-lengthofarraylike
755
- var lengthOfArrayLike$2 = function (obj) {
756
- return toLength$4(obj.length);
757
- };
758
-
759
- var toIndexedObject$2 = toIndexedObject$4;
760
- var toAbsoluteIndex = toAbsoluteIndex$1;
761
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
762
-
763
- // `Array.prototype.{ indexOf, includes }` methods implementation
764
- var createMethod$1 = function (IS_INCLUDES) {
765
- return function ($this, el, fromIndex) {
766
- var O = toIndexedObject$2($this);
767
- var length = lengthOfArrayLike$1(O);
768
- var index = toAbsoluteIndex(fromIndex, length);
769
- var value;
770
- // Array#includes uses SameValueZero equality algorithm
771
- // eslint-disable-next-line no-self-compare -- NaN check
772
- if (IS_INCLUDES && el != el) while (length > index) {
773
- value = O[index++];
774
- // eslint-disable-next-line no-self-compare -- NaN check
775
- if (value != value) return true;
776
- // Array#indexOf ignores holes, Array#includes - not
777
- } else for (;length > index; index++) {
778
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
779
- } return !IS_INCLUDES && -1;
780
- };
781
- };
782
-
783
- var arrayIncludes = {
784
- // `Array.prototype.includes` method
785
- // https://tc39.es/ecma262/#sec-array.prototype.includes
786
- includes: createMethod$1(true),
787
- // `Array.prototype.indexOf` method
788
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
789
- indexOf: createMethod$1(false)
790
- };
791
-
792
- var uncurryThis$c = functionUncurryThis;
793
- var hasOwn$3 = hasOwnProperty_1;
794
- var toIndexedObject$1 = toIndexedObject$4;
795
- var indexOf$1 = arrayIncludes.indexOf;
796
- var hiddenKeys$2 = hiddenKeys$4;
797
-
798
- var push$1 = uncurryThis$c([].push);
799
-
800
- var objectKeysInternal = function (object, names) {
801
- var O = toIndexedObject$1(object);
802
- var i = 0;
803
- var result = [];
804
- var key;
805
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push$1(result, key);
806
- // Don't enum bug & hidden keys
807
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
808
- ~indexOf$1(result, key) || push$1(result, key);
809
- }
810
- return result;
811
- };
812
-
813
- // IE8- don't enum bug keys
814
- var enumBugKeys$3 = [
815
- 'constructor',
816
- 'hasOwnProperty',
817
- 'isPrototypeOf',
818
- 'propertyIsEnumerable',
819
- 'toLocaleString',
820
- 'toString',
821
- 'valueOf'
822
- ];
823
-
824
- var internalObjectKeys$1 = objectKeysInternal;
825
- var enumBugKeys$2 = enumBugKeys$3;
826
-
827
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
828
-
829
- // `Object.getOwnPropertyNames` method
830
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
831
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
832
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
833
- return internalObjectKeys$1(O, hiddenKeys$1);
834
- };
835
-
836
- var objectGetOwnPropertySymbols = {};
837
-
838
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
839
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
840
-
841
- var getBuiltIn$5 = getBuiltIn$8;
842
- var uncurryThis$b = functionUncurryThis;
843
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
844
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
845
- var anObject$c = anObject$e;
846
-
847
- var concat$1 = uncurryThis$b([].concat);
848
-
849
- // all object keys, includes non-enumerable and symbols
850
- var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
851
- var keys = getOwnPropertyNamesModule.f(anObject$c(it));
852
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
853
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
854
- };
855
-
856
- var hasOwn$2 = hasOwnProperty_1;
857
- var ownKeys = ownKeys$1;
858
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
859
- var definePropertyModule$3 = objectDefineProperty;
860
-
861
- var copyConstructorProperties$1 = function (target, source, exceptions) {
862
- var keys = ownKeys(source);
863
- var defineProperty = definePropertyModule$3.f;
864
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
865
- for (var i = 0; i < keys.length; i++) {
866
- var key = keys[i];
867
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
868
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
869
- }
870
- }
871
- };
872
-
873
- var fails$7 = fails$e;
874
- var isCallable$9 = isCallable$i;
875
-
876
- var replacement = /#|\.prototype\./;
877
-
878
- var isForced$2 = function (feature, detection) {
879
- var value = data[normalize(feature)];
880
- return value == POLYFILL ? true
881
- : value == NATIVE ? false
882
- : isCallable$9(detection) ? fails$7(detection)
883
- : !!detection;
884
- };
885
-
886
- var normalize = isForced$2.normalize = function (string) {
887
- return String(string).replace(replacement, '.').toLowerCase();
888
- };
889
-
890
- var data = isForced$2.data = {};
891
- var NATIVE = isForced$2.NATIVE = 'N';
892
- var POLYFILL = isForced$2.POLYFILL = 'P';
893
-
894
- var isForced_1 = isForced$2;
895
-
896
- var global$m = global$G;
897
- var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f;
898
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
899
- var redefine$4 = redefine$5.exports;
900
- var setGlobal = setGlobal$3;
901
- var copyConstructorProperties = copyConstructorProperties$1;
902
- var isForced$1 = isForced_1;
903
-
904
- /*
905
- options.target - name of the target object
906
- options.global - target is the global object
907
- options.stat - export as static methods of target
908
- options.proto - export as prototype methods of target
909
- options.real - real prototype method for the `pure` version
910
- options.forced - export even if the native feature is available
911
- options.bind - bind methods to the target, required for the `pure` version
912
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
913
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
914
- options.sham - add a flag to not completely full polyfills
915
- options.enumerable - export as enumerable property
916
- options.noTargetGet - prevent calling a getter on target
917
- options.name - the .name of the function if it does not match the key
918
- */
919
- var _export = function (options, source) {
920
- var TARGET = options.target;
921
- var GLOBAL = options.global;
922
- var STATIC = options.stat;
923
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
924
- if (GLOBAL) {
925
- target = global$m;
926
- } else if (STATIC) {
927
- target = global$m[TARGET] || setGlobal(TARGET, {});
928
- } else {
929
- target = (global$m[TARGET] || {}).prototype;
930
- }
931
- if (target) for (key in source) {
932
- sourceProperty = source[key];
933
- if (options.noTargetGet) {
934
- descriptor = getOwnPropertyDescriptor$3(target, key);
935
- targetProperty = descriptor && descriptor.value;
936
- } else targetProperty = target[key];
937
- FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
938
- // contained in target
939
- if (!FORCED && targetProperty !== undefined) {
940
- if (typeof sourceProperty == typeof targetProperty) continue;
941
- copyConstructorProperties(sourceProperty, targetProperty);
942
- }
943
- // add a flag to not completely full polyfills
944
- if (options.sham || (targetProperty && targetProperty.sham)) {
945
- createNonEnumerableProperty$1(sourceProperty, 'sham', true);
946
- }
947
- // extend global
948
- redefine$4(target, key, sourceProperty, options);
949
- }
950
- };
951
-
952
- var classof$6 = classofRaw$1;
953
- var global$l = global$G;
954
-
955
- var engineIsNode = classof$6(global$l.process) == 'process';
956
-
957
- var redefine$3 = redefine$5.exports;
958
-
959
- var redefineAll$1 = function (target, src, options) {
960
- for (var key in src) redefine$3(target, key, src[key], options);
961
- return target;
962
- };
963
-
964
- var global$k = global$G;
965
- var isCallable$8 = isCallable$i;
966
-
967
- var String$3 = global$k.String;
968
- var TypeError$9 = global$k.TypeError;
969
-
970
- var aPossiblePrototype$1 = function (argument) {
971
- if (typeof argument == 'object' || isCallable$8(argument)) return argument;
972
- throw TypeError$9("Can't set " + String$3(argument) + ' as a prototype');
973
- };
974
-
975
- /* eslint-disable no-proto -- safe */
976
-
977
- var uncurryThis$a = functionUncurryThis;
978
- var anObject$b = anObject$e;
979
- var aPossiblePrototype = aPossiblePrototype$1;
980
-
981
- // `Object.setPrototypeOf` method
982
- // https://tc39.es/ecma262/#sec-object.setprototypeof
983
- // Works with __proto__ only. Old v8 can't work with null proto objects.
984
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
985
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
986
- var CORRECT_SETTER = false;
987
- var test = {};
988
- var setter;
989
- try {
990
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
991
- setter = uncurryThis$a(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
992
- setter(test, []);
993
- CORRECT_SETTER = test instanceof Array;
994
- } catch (error) { /* empty */ }
995
- return function setPrototypeOf(O, proto) {
996
- anObject$b(O);
997
- aPossiblePrototype(proto);
998
- if (CORRECT_SETTER) setter(O, proto);
999
- else O.__proto__ = proto;
1000
- return O;
1001
- };
1002
- }() : undefined);
1003
-
1004
- var defineProperty = objectDefineProperty.f;
1005
- var hasOwn$1 = hasOwnProperty_1;
1006
- var wellKnownSymbol$d = wellKnownSymbol$f;
1007
-
1008
- var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
1009
-
1010
- var setToStringTag$1 = function (target, TAG, STATIC) {
1011
- if (target && !STATIC) target = target.prototype;
1012
- if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1013
- defineProperty(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1014
- }
1015
- };
1016
-
1017
- var getBuiltIn$4 = getBuiltIn$8;
1018
- var definePropertyModule$2 = objectDefineProperty;
1019
- var wellKnownSymbol$c = wellKnownSymbol$f;
1020
- var DESCRIPTORS$1 = descriptors;
1021
-
1022
- var SPECIES$3 = wellKnownSymbol$c('species');
1023
-
1024
- var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1025
- var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1026
- var defineProperty = definePropertyModule$2.f;
1027
-
1028
- if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$3]) {
1029
- defineProperty(Constructor, SPECIES$3, {
1030
- configurable: true,
1031
- get: function () { return this; }
1032
- });
1033
- }
1034
- };
1035
-
1036
- var global$j = global$G;
1037
- var isPrototypeOf$1 = objectIsPrototypeOf;
1038
-
1039
- var TypeError$8 = global$j.TypeError;
1040
-
1041
- var anInstance$1 = function (it, Prototype) {
1042
- if (isPrototypeOf$1(Prototype, it)) return it;
1043
- throw TypeError$8('Incorrect invocation');
1044
- };
1045
-
1046
- var wellKnownSymbol$b = wellKnownSymbol$f;
1047
-
1048
- var TO_STRING_TAG$1 = wellKnownSymbol$b('toStringTag');
1049
- var test = {};
1050
-
1051
- test[TO_STRING_TAG$1] = 'z';
1052
-
1053
- var toStringTagSupport = String(test) === '[object z]';
1054
-
1055
- var global$i = global$G;
1056
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1057
- var isCallable$7 = isCallable$i;
1058
- var classofRaw = classofRaw$1;
1059
- var wellKnownSymbol$a = wellKnownSymbol$f;
1060
-
1061
- var TO_STRING_TAG = wellKnownSymbol$a('toStringTag');
1062
- var Object$1 = global$i.Object;
1063
-
1064
- // ES3 wrong here
1065
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1066
-
1067
- // fallback for IE11 Script Access Denied error
1068
- var tryGet = function (it, key) {
1069
- try {
1070
- return it[key];
1071
- } catch (error) { /* empty */ }
1072
- };
1073
-
1074
- // getting tag from ES6+ `Object.prototype.toString`
1075
- var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1076
- var O, tag, result;
1077
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1078
- // @@toStringTag case
1079
- : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
1080
- // builtinTag case
1081
- : CORRECT_ARGUMENTS ? classofRaw(O)
1082
- // ES3 arguments fallback
1083
- : (result = classofRaw(O)) == 'Object' && isCallable$7(O.callee) ? 'Arguments' : result;
1084
- };
1085
-
1086
- var uncurryThis$9 = functionUncurryThis;
1087
- var fails$6 = fails$e;
1088
- var isCallable$6 = isCallable$i;
1089
- var classof$4 = classof$5;
1090
- var getBuiltIn$3 = getBuiltIn$8;
1091
- var inspectSource$1 = inspectSource$4;
1092
-
1093
- var noop = function () { /* empty */ };
1094
- var empty = [];
1095
- var construct = getBuiltIn$3('Reflect', 'construct');
1096
- var constructorRegExp = /^\s*(?:class|function)\b/;
1097
- var exec$1 = uncurryThis$9(constructorRegExp.exec);
1098
- var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1099
-
1100
- var isConstructorModern = function isConstructor(argument) {
1101
- if (!isCallable$6(argument)) return false;
1102
- try {
1103
- construct(noop, empty, argument);
1104
- return true;
1105
- } catch (error) {
1106
- return false;
1107
- }
1108
- };
1109
-
1110
- var isConstructorLegacy = function isConstructor(argument) {
1111
- if (!isCallable$6(argument)) return false;
1112
- switch (classof$4(argument)) {
1113
- case 'AsyncFunction':
1114
- case 'GeneratorFunction':
1115
- case 'AsyncGeneratorFunction': return false;
1116
- }
1117
- try {
1118
- // we can't check .prototype since constructors produced by .bind haven't it
1119
- // `Function#toString` throws on some built-it function in some legacy engines
1120
- // (for example, `DOMQuad` and similar in FF41-)
1121
- return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
1122
- } catch (error) {
1123
- return true;
1124
- }
1125
- };
1126
-
1127
- isConstructorLegacy.sham = true;
1128
-
1129
- // `IsConstructor` abstract operation
1130
- // https://tc39.es/ecma262/#sec-isconstructor
1131
- var isConstructor$1 = !construct || fails$6(function () {
1132
- var called;
1133
- return isConstructorModern(isConstructorModern.call)
1134
- || !isConstructorModern(Object)
1135
- || !isConstructorModern(function () { called = true; })
1136
- || called;
1137
- }) ? isConstructorLegacy : isConstructorModern;
1138
-
1139
- var global$h = global$G;
1140
- var isConstructor = isConstructor$1;
1141
- var tryToString$2 = tryToString$4;
1142
-
1143
- var TypeError$7 = global$h.TypeError;
1144
-
1145
- // `Assert: IsConstructor(argument) is true`
1146
- var aConstructor$1 = function (argument) {
1147
- if (isConstructor(argument)) return argument;
1148
- throw TypeError$7(tryToString$2(argument) + ' is not a constructor');
1149
- };
1150
-
1151
- var anObject$a = anObject$e;
1152
- var aConstructor = aConstructor$1;
1153
- var wellKnownSymbol$9 = wellKnownSymbol$f;
1154
-
1155
- var SPECIES$2 = wellKnownSymbol$9('species');
1156
-
1157
- // `SpeciesConstructor` abstract operation
1158
- // https://tc39.es/ecma262/#sec-speciesconstructor
1159
- var speciesConstructor$1 = function (O, defaultConstructor) {
1160
- var C = anObject$a(O).constructor;
1161
- var S;
1162
- return C === undefined || (S = anObject$a(C)[SPECIES$2]) == undefined ? defaultConstructor : aConstructor(S);
1163
- };
1164
-
1165
- var NATIVE_BIND$1 = functionBindNative;
1166
-
1167
- var FunctionPrototype = Function.prototype;
1168
- var apply$2 = FunctionPrototype.apply;
1169
- var call$b = FunctionPrototype.call;
1170
-
1171
- // eslint-disable-next-line es-x/no-reflect -- safe
1172
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$b.bind(apply$2) : function () {
1173
- return call$b.apply(apply$2, arguments);
1174
- });
1175
-
1176
- var uncurryThis$8 = functionUncurryThis;
1177
- var aCallable$5 = aCallable$7;
1178
- var NATIVE_BIND = functionBindNative;
1179
-
1180
- var bind$4 = uncurryThis$8(uncurryThis$8.bind);
1181
-
1182
- // optional / simple context binding
1183
- var functionBindContext = function (fn, that) {
1184
- aCallable$5(fn);
1185
- return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1186
- return fn.apply(that, arguments);
1187
- };
1188
- };
1189
-
1190
- var getBuiltIn$2 = getBuiltIn$8;
1191
-
1192
- var html$2 = getBuiltIn$2('document', 'documentElement');
1193
-
1194
- var uncurryThis$7 = functionUncurryThis;
1195
-
1196
- var arraySlice$1 = uncurryThis$7([].slice);
1197
-
1198
- var global$g = global$G;
1199
-
1200
- var TypeError$6 = global$g.TypeError;
1201
-
1202
- var validateArgumentsLength$1 = function (passed, required) {
1203
- if (passed < required) throw TypeError$6('Not enough arguments');
1204
- return passed;
1205
- };
1206
-
1207
- var userAgent$2 = engineUserAgent;
1208
-
1209
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1210
-
1211
- var global$f = global$G;
1212
- var apply$1 = functionApply;
1213
- var bind$3 = functionBindContext;
1214
- var isCallable$5 = isCallable$i;
1215
- var hasOwn = hasOwnProperty_1;
1216
- var fails$5 = fails$e;
1217
- var html$1 = html$2;
1218
- var arraySlice = arraySlice$1;
1219
- var createElement = documentCreateElement$1;
1220
- var validateArgumentsLength = validateArgumentsLength$1;
1221
- var IS_IOS$1 = engineIsIos;
1222
- var IS_NODE$2 = engineIsNode;
1223
-
1224
- var set = global$f.setImmediate;
1225
- var clear = global$f.clearImmediate;
1226
- var process$2 = global$f.process;
1227
- var Dispatch = global$f.Dispatch;
1228
- var Function$1 = global$f.Function;
1229
- var MessageChannel = global$f.MessageChannel;
1230
- var String$2 = global$f.String;
1231
- var counter = 0;
1232
- var queue$1 = {};
1233
- var ONREADYSTATECHANGE = 'onreadystatechange';
1234
- var location, defer, channel, port;
1235
-
1236
- try {
1237
- // Deno throws a ReferenceError on `location` access without `--location` flag
1238
- location = global$f.location;
1239
- } catch (error) { /* empty */ }
1240
-
1241
- var run = function (id) {
1242
- if (hasOwn(queue$1, id)) {
1243
- var fn = queue$1[id];
1244
- delete queue$1[id];
1245
- fn();
1246
- }
1247
- };
1248
-
1249
- var runner = function (id) {
1250
- return function () {
1251
- run(id);
1252
- };
1253
- };
1254
-
1255
- var listener = function (event) {
1256
- run(event.data);
1257
- };
1258
-
1259
- var post = function (id) {
1260
- // old engines have not location.origin
1261
- global$f.postMessage(String$2(id), location.protocol + '//' + location.host);
1262
- };
1263
-
1264
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1265
- if (!set || !clear) {
1266
- set = function setImmediate(handler) {
1267
- validateArgumentsLength(arguments.length, 1);
1268
- var fn = isCallable$5(handler) ? handler : Function$1(handler);
1269
- var args = arraySlice(arguments, 1);
1270
- queue$1[++counter] = function () {
1271
- apply$1(fn, undefined, args);
1272
- };
1273
- defer(counter);
1274
- return counter;
1275
- };
1276
- clear = function clearImmediate(id) {
1277
- delete queue$1[id];
1278
- };
1279
- // Node.js 0.8-
1280
- if (IS_NODE$2) {
1281
- defer = function (id) {
1282
- process$2.nextTick(runner(id));
1283
- };
1284
- // Sphere (JS game engine) Dispatch API
1285
- } else if (Dispatch && Dispatch.now) {
1286
- defer = function (id) {
1287
- Dispatch.now(runner(id));
1288
- };
1289
- // Browsers with MessageChannel, includes WebWorkers
1290
- // except iOS - https://github.com/zloirock/core-js/issues/624
1291
- } else if (MessageChannel && !IS_IOS$1) {
1292
- channel = new MessageChannel();
1293
- port = channel.port2;
1294
- channel.port1.onmessage = listener;
1295
- defer = bind$3(port.postMessage, port);
1296
- // Browsers with postMessage, skip WebWorkers
1297
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1298
- } else if (
1299
- global$f.addEventListener &&
1300
- isCallable$5(global$f.postMessage) &&
1301
- !global$f.importScripts &&
1302
- location && location.protocol !== 'file:' &&
1303
- !fails$5(post)
1304
- ) {
1305
- defer = post;
1306
- global$f.addEventListener('message', listener, false);
1307
- // IE8-
1308
- } else if (ONREADYSTATECHANGE in createElement('script')) {
1309
- defer = function (id) {
1310
- html$1.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1311
- html$1.removeChild(this);
1312
- run(id);
1313
- };
1314
- };
1315
- // Rest old browsers
1316
- } else {
1317
- defer = function (id) {
1318
- setTimeout(runner(id), 0);
1319
- };
1320
- }
1321
- }
1322
-
1323
- var task$1 = {
1324
- set: set,
1325
- clear: clear
1326
- };
1327
-
1328
- var userAgent$1 = engineUserAgent;
1329
- var global$e = global$G;
1330
-
1331
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$e.Pebble !== undefined;
1332
-
1333
- var userAgent = engineUserAgent;
1334
-
1335
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1336
-
1337
- var global$d = global$G;
1338
- var bind$2 = functionBindContext;
1339
- var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1340
- var macrotask = task$1.set;
1341
- var IS_IOS = engineIsIos;
1342
- var IS_IOS_PEBBLE = engineIsIosPebble;
1343
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1344
- var IS_NODE$1 = engineIsNode;
1345
-
1346
- var MutationObserver = global$d.MutationObserver || global$d.WebKitMutationObserver;
1347
- var document$2 = global$d.document;
1348
- var process$1 = global$d.process;
1349
- var Promise$1 = global$d.Promise;
1350
- // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
1351
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor$2(global$d, 'queueMicrotask');
1352
- var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
1353
-
1354
- var flush, head, last, notify$1, toggle, node, promise, then;
1355
-
1356
- // modern engines have queueMicrotask method
1357
- if (!queueMicrotask) {
1358
- flush = function () {
1359
- var parent, fn;
1360
- if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
1361
- while (head) {
1362
- fn = head.fn;
1363
- head = head.next;
1364
- try {
1365
- fn();
1366
- } catch (error) {
1367
- if (head) notify$1();
1368
- else last = undefined;
1369
- throw error;
1370
- }
1371
- } last = undefined;
1372
- if (parent) parent.enter();
1373
- };
1374
-
1375
- // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1376
- // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1377
- if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1378
- toggle = true;
1379
- node = document$2.createTextNode('');
1380
- new MutationObserver(flush).observe(node, { characterData: true });
1381
- notify$1 = function () {
1382
- node.data = toggle = !toggle;
1383
- };
1384
- // environments with maybe non-completely correct, but existent Promise
1385
- } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
1386
- // Promise.resolve without an argument throws an error in LG WebOS 2
1387
- promise = Promise$1.resolve(undefined);
1388
- // workaround of WebKit ~ iOS Safari 10.1 bug
1389
- promise.constructor = Promise$1;
1390
- then = bind$2(promise.then, promise);
1391
- notify$1 = function () {
1392
- then(flush);
1393
- };
1394
- // Node.js without promises
1395
- } else if (IS_NODE$1) {
1396
- notify$1 = function () {
1397
- process$1.nextTick(flush);
1398
- };
1399
- // for other environments - macrotask based on:
1400
- // - setImmediate
1401
- // - MessageChannel
1402
- // - window.postMessage
1403
- // - onreadystatechange
1404
- // - setTimeout
1405
- } else {
1406
- // strange IE + webpack dev server bug - use .bind(global)
1407
- macrotask = bind$2(macrotask, global$d);
1408
- notify$1 = function () {
1409
- macrotask(flush);
1410
- };
1411
- }
1412
- }
1413
-
1414
- var microtask$1 = queueMicrotask || function (fn) {
1415
- var task = { fn: fn, next: undefined };
1416
- if (last) last.next = task;
1417
- if (!head) {
1418
- head = task;
1419
- notify$1();
1420
- } last = task;
1421
- };
1422
-
1423
- var global$c = global$G;
1424
-
1425
- var hostReportErrors$1 = function (a, b) {
1426
- var console = global$c.console;
1427
- if (console && console.error) {
1428
- arguments.length == 1 ? console.error(a) : console.error(a, b);
1429
- }
1430
- };
1431
-
1432
- var perform$3 = function (exec) {
1433
- try {
1434
- return { error: false, value: exec() };
1435
- } catch (error) {
1436
- return { error: true, value: error };
1437
- }
1438
- };
1439
-
1440
- var Queue$1 = function () {
1441
- this.head = null;
1442
- this.tail = null;
1443
- };
1444
-
1445
- Queue$1.prototype = {
1446
- add: function (item) {
1447
- var entry = { item: item, next: null };
1448
- if (this.head) this.tail.next = entry;
1449
- else this.head = entry;
1450
- this.tail = entry;
1451
- },
1452
- get: function () {
1453
- var entry = this.head;
1454
- if (entry) {
1455
- this.head = entry.next;
1456
- if (this.tail === entry) this.tail = null;
1457
- return entry.item;
1458
- }
1459
- }
1460
- };
1461
-
1462
- var queue = Queue$1;
1463
-
1464
- var global$b = global$G;
1465
-
1466
- var promiseNativeConstructor = global$b.Promise;
1467
-
1468
- var engineIsBrowser = typeof window == 'object' && typeof Deno != 'object';
1469
-
1470
- var global$a = global$G;
1471
- var NativePromiseConstructor$3 = promiseNativeConstructor;
1472
- var isCallable$4 = isCallable$i;
1473
- var isForced = isForced_1;
1474
- var inspectSource = inspectSource$4;
1475
- var wellKnownSymbol$8 = wellKnownSymbol$f;
1476
- var IS_BROWSER = engineIsBrowser;
1477
- var V8_VERSION = engineV8Version;
1478
-
1479
- NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1480
- var SPECIES$1 = wellKnownSymbol$8('species');
1481
- var SUBCLASSING = false;
1482
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$a.PromiseRejectionEvent);
1483
-
1484
- var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1485
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
1486
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
1487
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1488
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1489
- // We can't detect it synchronously, so just check versions
1490
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
1491
- // We can't use @@species feature detection in V8 since it causes
1492
- // deoptimization and performance degradation
1493
- // https://github.com/zloirock/core-js/issues/679
1494
- if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
1495
- // Detect correctness of subclassing with @@species support
1496
- var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
1497
- var FakePromise = function (exec) {
1498
- exec(function () { /* empty */ }, function () { /* empty */ });
1499
- };
1500
- var constructor = promise.constructor = {};
1501
- constructor[SPECIES$1] = FakePromise;
1502
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
1503
- if (!SUBCLASSING) return true;
1504
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
1505
- return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_PROMISE_REJECTION_EVENT$1;
1506
- });
1507
-
1508
- var promiseConstructorDetection = {
1509
- CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
1510
- REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
1511
- SUBCLASSING: SUBCLASSING
1512
- };
1513
-
1514
- var newPromiseCapability$2 = {};
1515
-
1516
- var aCallable$4 = aCallable$7;
1517
-
1518
- var PromiseCapability = function (C) {
1519
- var resolve, reject;
1520
- this.promise = new C(function ($$resolve, $$reject) {
1521
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
1522
- resolve = $$resolve;
1523
- reject = $$reject;
1524
- });
1525
- this.resolve = aCallable$4(resolve);
1526
- this.reject = aCallable$4(reject);
1527
- };
1528
-
1529
- // `NewPromiseCapability` abstract operation
1530
- // https://tc39.es/ecma262/#sec-newpromisecapability
1531
- newPromiseCapability$2.f = function (C) {
1532
- return new PromiseCapability(C);
1533
- };
1534
-
1535
- var $$9 = _export;
1536
- var IS_NODE = engineIsNode;
1537
- var global$9 = global$G;
1538
- var call$a = functionCall;
1539
- var redefine$2 = redefine$5.exports;
1540
- var redefineAll = redefineAll$1;
1541
- var setPrototypeOf = objectSetPrototypeOf;
1542
- var setToStringTag = setToStringTag$1;
1543
- var setSpecies = setSpecies$1;
1544
- var aCallable$3 = aCallable$7;
1545
- var isCallable$3 = isCallable$i;
1546
- var isObject$2 = isObject$8;
1547
- var anInstance = anInstance$1;
1548
- var speciesConstructor = speciesConstructor$1;
1549
- var task = task$1.set;
1550
- var microtask = microtask$1;
1551
- var hostReportErrors = hostReportErrors$1;
1552
- var perform$2 = perform$3;
1553
- var Queue = queue;
1554
- var InternalStateModule = internalState;
1555
- var NativePromiseConstructor$2 = promiseNativeConstructor;
1556
- var PromiseConstructorDetection = promiseConstructorDetection;
1557
- var newPromiseCapabilityModule$3 = newPromiseCapability$2;
1558
-
1559
- var PROMISE = 'Promise';
1560
- var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
1561
- var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
1562
- var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
1563
- var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
1564
- var setInternalState = InternalStateModule.set;
1565
- var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
1566
- var PromiseConstructor = NativePromiseConstructor$2;
1567
- var PromisePrototype = NativePromisePrototype$1;
1568
- var TypeError$5 = global$9.TypeError;
1569
- var document$1 = global$9.document;
1570
- var process = global$9.process;
1571
- var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
1572
- var newGenericPromiseCapability = newPromiseCapability$1;
1573
-
1574
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$9.dispatchEvent);
1575
- var UNHANDLED_REJECTION = 'unhandledrejection';
1576
- var REJECTION_HANDLED = 'rejectionhandled';
1577
- var PENDING = 0;
1578
- var FULFILLED = 1;
1579
- var REJECTED = 2;
1580
- var HANDLED = 1;
1581
- var UNHANDLED = 2;
1582
-
1583
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1584
-
1585
- // helpers
1586
- var isThenable = function (it) {
1587
- var then;
1588
- return isObject$2(it) && isCallable$3(then = it.then) ? then : false;
1589
- };
1590
-
1591
- var callReaction = function (reaction, state) {
1592
- var value = state.value;
1593
- var ok = state.state == FULFILLED;
1594
- var handler = ok ? reaction.ok : reaction.fail;
1595
- var resolve = reaction.resolve;
1596
- var reject = reaction.reject;
1597
- var domain = reaction.domain;
1598
- var result, then, exited;
1599
- try {
1600
- if (handler) {
1601
- if (!ok) {
1602
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
1603
- state.rejection = HANDLED;
1604
- }
1605
- if (handler === true) result = value;
1606
- else {
1607
- if (domain) domain.enter();
1608
- result = handler(value); // can throw
1609
- if (domain) {
1610
- domain.exit();
1611
- exited = true;
1612
- }
1613
- }
1614
- if (result === reaction.promise) {
1615
- reject(TypeError$5('Promise-chain cycle'));
1616
- } else if (then = isThenable(result)) {
1617
- call$a(then, result, resolve, reject);
1618
- } else resolve(result);
1619
- } else reject(value);
1620
- } catch (error) {
1621
- if (domain && !exited) domain.exit();
1622
- reject(error);
1623
- }
1624
- };
1625
-
1626
- var notify = function (state, isReject) {
1627
- if (state.notified) return;
1628
- state.notified = true;
1629
- microtask(function () {
1630
- var reactions = state.reactions;
1631
- var reaction;
1632
- while (reaction = reactions.get()) {
1633
- callReaction(reaction, state);
1634
- }
1635
- state.notified = false;
1636
- if (isReject && !state.rejection) onUnhandled(state);
1637
- });
1638
- };
1639
-
1640
- var dispatchEvent = function (name, promise, reason) {
1641
- var event, handler;
1642
- if (DISPATCH_EVENT) {
1643
- event = document$1.createEvent('Event');
1644
- event.promise = promise;
1645
- event.reason = reason;
1646
- event.initEvent(name, false, true);
1647
- global$9.dispatchEvent(event);
1648
- } else event = { promise: promise, reason: reason };
1649
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$9['on' + name])) handler(event);
1650
- else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
1651
- };
1652
-
1653
- var onUnhandled = function (state) {
1654
- call$a(task, global$9, function () {
1655
- var promise = state.facade;
1656
- var value = state.value;
1657
- var IS_UNHANDLED = isUnhandled(state);
1658
- var result;
1659
- if (IS_UNHANDLED) {
1660
- result = perform$2(function () {
1661
- if (IS_NODE) {
1662
- process.emit('unhandledRejection', value, promise);
1663
- } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
1664
- });
1665
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
1666
- state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
1667
- if (result.error) throw result.value;
1668
- }
1669
- });
1670
- };
1671
-
1672
- var isUnhandled = function (state) {
1673
- return state.rejection !== HANDLED && !state.parent;
1674
- };
1675
-
1676
- var onHandleUnhandled = function (state) {
1677
- call$a(task, global$9, function () {
1678
- var promise = state.facade;
1679
- if (IS_NODE) {
1680
- process.emit('rejectionHandled', promise);
1681
- } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
1682
- });
1683
- };
1684
-
1685
- var bind$1 = function (fn, state, unwrap) {
1686
- return function (value) {
1687
- fn(state, value, unwrap);
1688
- };
1689
- };
1690
-
1691
- var internalReject = function (state, value, unwrap) {
1692
- if (state.done) return;
1693
- state.done = true;
1694
- if (unwrap) state = unwrap;
1695
- state.value = value;
1696
- state.state = REJECTED;
1697
- notify(state, true);
1698
- };
1699
-
1700
- var internalResolve = function (state, value, unwrap) {
1701
- if (state.done) return;
1702
- state.done = true;
1703
- if (unwrap) state = unwrap;
1704
- try {
1705
- if (state.facade === value) throw TypeError$5("Promise can't be resolved itself");
1706
- var then = isThenable(value);
1707
- if (then) {
1708
- microtask(function () {
1709
- var wrapper = { done: false };
1710
- try {
1711
- call$a(then, value,
1712
- bind$1(internalResolve, wrapper, state),
1713
- bind$1(internalReject, wrapper, state)
1714
- );
1715
- } catch (error) {
1716
- internalReject(wrapper, error, state);
1717
- }
1718
- });
1719
- } else {
1720
- state.value = value;
1721
- state.state = FULFILLED;
1722
- notify(state, false);
1723
- }
1724
- } catch (error) {
1725
- internalReject({ done: false }, error, state);
1726
- }
1727
- };
1728
-
1729
- // constructor polyfill
1730
- if (FORCED_PROMISE_CONSTRUCTOR$4) {
1731
- // 25.4.3.1 Promise(executor)
1732
- PromiseConstructor = function Promise(executor) {
1733
- anInstance(this, PromisePrototype);
1734
- aCallable$3(executor);
1735
- call$a(Internal, this);
1736
- var state = getInternalPromiseState(this);
1737
- try {
1738
- executor(bind$1(internalResolve, state), bind$1(internalReject, state));
1739
- } catch (error) {
1740
- internalReject(state, error);
1741
- }
1742
- };
1743
-
1744
- PromisePrototype = PromiseConstructor.prototype;
1745
-
1746
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1747
- Internal = function Promise(executor) {
1748
- setInternalState(this, {
1749
- type: PROMISE,
1750
- done: false,
1751
- notified: false,
1752
- parent: false,
1753
- reactions: new Queue(),
1754
- rejection: false,
1755
- state: PENDING,
1756
- value: undefined
1757
- });
1758
- };
1759
-
1760
- Internal.prototype = redefineAll(PromisePrototype, {
1761
- // `Promise.prototype.then` method
1762
- // https://tc39.es/ecma262/#sec-promise.prototype.then
1763
- // eslint-disable-next-line unicorn/no-thenable -- safe
1764
- then: function then(onFulfilled, onRejected) {
1765
- var state = getInternalPromiseState(this);
1766
- var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
1767
- state.parent = true;
1768
- reaction.ok = isCallable$3(onFulfilled) ? onFulfilled : true;
1769
- reaction.fail = isCallable$3(onRejected) && onRejected;
1770
- reaction.domain = IS_NODE ? process.domain : undefined;
1771
- if (state.state == PENDING) state.reactions.add(reaction);
1772
- else microtask(function () {
1773
- callReaction(reaction, state);
1774
- });
1775
- return reaction.promise;
1776
- }
1777
- });
1778
-
1779
- OwnPromiseCapability = function () {
1780
- var promise = new Internal();
1781
- var state = getInternalPromiseState(promise);
1782
- this.promise = promise;
1783
- this.resolve = bind$1(internalResolve, state);
1784
- this.reject = bind$1(internalReject, state);
1785
- };
1786
-
1787
- newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
1788
- return C === PromiseConstructor || C === PromiseWrapper
1789
- ? new OwnPromiseCapability(C)
1790
- : newGenericPromiseCapability(C);
1791
- };
1792
-
1793
- if (isCallable$3(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
1794
- nativeThen = NativePromisePrototype$1.then;
1795
-
1796
- if (!NATIVE_PROMISE_SUBCLASSING) {
1797
- // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
1798
- redefine$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
1799
- var that = this;
1800
- return new PromiseConstructor(function (resolve, reject) {
1801
- call$a(nativeThen, that, resolve, reject);
1802
- }).then(onFulfilled, onRejected);
1803
- // https://github.com/zloirock/core-js/issues/640
1804
- }, { unsafe: true });
1805
- }
1806
-
1807
- // make `.constructor === Promise` work for native promise-based APIs
1808
- try {
1809
- delete NativePromisePrototype$1.constructor;
1810
- } catch (error) { /* empty */ }
1811
-
1812
- // make `instanceof Promise` work for native promise-based APIs
1813
- if (setPrototypeOf) {
1814
- setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
1815
- }
1816
- }
1817
- }
1818
-
1819
- $$9({ global: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1820
- Promise: PromiseConstructor
1821
- });
1822
-
1823
- setToStringTag(PromiseConstructor, PROMISE, false);
1824
- setSpecies(PROMISE);
1825
-
1826
- var iterators = {};
1827
-
1828
- var wellKnownSymbol$7 = wellKnownSymbol$f;
1829
- var Iterators$1 = iterators;
1830
-
1831
- var ITERATOR$2 = wellKnownSymbol$7('iterator');
1832
- var ArrayPrototype$1 = Array.prototype;
1833
-
1834
- // check on default Array iterator
1835
- var isArrayIteratorMethod$1 = function (it) {
1836
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype$1[ITERATOR$2] === it);
1837
- };
1838
-
1839
- var classof$3 = classof$5;
1840
- var getMethod$3 = getMethod$5;
1841
- var Iterators = iterators;
1842
- var wellKnownSymbol$6 = wellKnownSymbol$f;
1843
-
1844
- var ITERATOR$1 = wellKnownSymbol$6('iterator');
1845
-
1846
- var getIteratorMethod$2 = function (it) {
1847
- if (it != undefined) return getMethod$3(it, ITERATOR$1)
1848
- || getMethod$3(it, '@@iterator')
1849
- || Iterators[classof$3(it)];
1850
- };
1851
-
1852
- var global$8 = global$G;
1853
- var call$9 = functionCall;
1854
- var aCallable$2 = aCallable$7;
1855
- var anObject$9 = anObject$e;
1856
- var tryToString$1 = tryToString$4;
1857
- var getIteratorMethod$1 = getIteratorMethod$2;
1858
-
1859
- var TypeError$4 = global$8.TypeError;
1860
-
1861
- var getIterator$1 = function (argument, usingIterator) {
1862
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1863
- if (aCallable$2(iteratorMethod)) return anObject$9(call$9(iteratorMethod, argument));
1864
- throw TypeError$4(tryToString$1(argument) + ' is not iterable');
1865
- };
1866
-
1867
- var call$8 = functionCall;
1868
- var anObject$8 = anObject$e;
1869
- var getMethod$2 = getMethod$5;
1870
-
1871
- var iteratorClose$1 = function (iterator, kind, value) {
1872
- var innerResult, innerError;
1873
- anObject$8(iterator);
1874
- try {
1875
- innerResult = getMethod$2(iterator, 'return');
1876
- if (!innerResult) {
1877
- if (kind === 'throw') throw value;
1878
- return value;
1879
- }
1880
- innerResult = call$8(innerResult, iterator);
1881
- } catch (error) {
1882
- innerError = true;
1883
- innerResult = error;
1884
- }
1885
- if (kind === 'throw') throw value;
1886
- if (innerError) throw innerResult;
1887
- anObject$8(innerResult);
1888
- return value;
1889
- };
1890
-
1891
- var global$7 = global$G;
1892
- var bind = functionBindContext;
1893
- var call$7 = functionCall;
1894
- var anObject$7 = anObject$e;
1895
- var tryToString = tryToString$4;
1896
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
1897
- var lengthOfArrayLike = lengthOfArrayLike$2;
1898
- var isPrototypeOf = objectIsPrototypeOf;
1899
- var getIterator = getIterator$1;
1900
- var getIteratorMethod = getIteratorMethod$2;
1901
- var iteratorClose = iteratorClose$1;
1902
-
1903
- var TypeError$3 = global$7.TypeError;
1904
-
1905
- var Result = function (stopped, result) {
1906
- this.stopped = stopped;
1907
- this.result = result;
1908
- };
1909
-
1910
- var ResultPrototype = Result.prototype;
1911
-
1912
- var iterate$2 = function (iterable, unboundFunction, options) {
1913
- var that = options && options.that;
1914
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1915
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1916
- var INTERRUPTED = !!(options && options.INTERRUPTED);
1917
- var fn = bind(unboundFunction, that);
1918
- var iterator, iterFn, index, length, result, next, step;
1919
-
1920
- var stop = function (condition) {
1921
- if (iterator) iteratorClose(iterator, 'normal', condition);
1922
- return new Result(true, condition);
1923
- };
1924
-
1925
- var callFn = function (value) {
1926
- if (AS_ENTRIES) {
1927
- anObject$7(value);
1928
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1929
- } return INTERRUPTED ? fn(value, stop) : fn(value);
1930
- };
1931
-
1932
- if (IS_ITERATOR) {
1933
- iterator = iterable;
1934
- } else {
1935
- iterFn = getIteratorMethod(iterable);
1936
- if (!iterFn) throw TypeError$3(tryToString(iterable) + ' is not iterable');
1937
- // optimisation for array iterators
1938
- if (isArrayIteratorMethod(iterFn)) {
1939
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
1940
- result = callFn(iterable[index]);
1941
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
1942
- } return new Result(false);
1943
- }
1944
- iterator = getIterator(iterable, iterFn);
1945
- }
1946
-
1947
- next = iterator.next;
1948
- while (!(step = call$7(next, iterator)).done) {
1949
- try {
1950
- result = callFn(step.value);
1951
- } catch (error) {
1952
- iteratorClose(iterator, 'throw', error);
1953
- }
1954
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1955
- } return new Result(false);
1956
- };
1957
-
1958
- var wellKnownSymbol$5 = wellKnownSymbol$f;
1959
-
1960
- var ITERATOR = wellKnownSymbol$5('iterator');
1961
- var SAFE_CLOSING = false;
1962
-
1963
- try {
1964
- var called = 0;
1965
- var iteratorWithReturn = {
1966
- next: function () {
1967
- return { done: !!called++ };
1968
- },
1969
- 'return': function () {
1970
- SAFE_CLOSING = true;
1971
- }
1972
- };
1973
- iteratorWithReturn[ITERATOR] = function () {
1974
- return this;
1975
- };
1976
- // eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing
1977
- Array.from(iteratorWithReturn, function () { throw 2; });
1978
- } catch (error) { /* empty */ }
1979
-
1980
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
1981
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
1982
- var ITERATION_SUPPORT = false;
1983
- try {
1984
- var object = {};
1985
- object[ITERATOR] = function () {
1986
- return {
1987
- next: function () {
1988
- return { done: ITERATION_SUPPORT = true };
1989
- }
1990
- };
1991
- };
1992
- exec(object);
1993
- } catch (error) { /* empty */ }
1994
- return ITERATION_SUPPORT;
1995
- };
1996
-
1997
- var NativePromiseConstructor$1 = promiseNativeConstructor;
1998
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
1999
- var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2000
-
2001
- var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2002
- NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2003
- });
2004
-
2005
- var $$8 = _export;
2006
- var call$6 = functionCall;
2007
- var aCallable$1 = aCallable$7;
2008
- var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2009
- var perform$1 = perform$3;
2010
- var iterate$1 = iterate$2;
2011
- var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2012
-
2013
- // `Promise.all` method
2014
- // https://tc39.es/ecma262/#sec-promise.all
2015
- $$8({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2016
- all: function all(iterable) {
2017
- var C = this;
2018
- var capability = newPromiseCapabilityModule$2.f(C);
2019
- var resolve = capability.resolve;
2020
- var reject = capability.reject;
2021
- var result = perform$1(function () {
2022
- var $promiseResolve = aCallable$1(C.resolve);
2023
- var values = [];
2024
- var counter = 0;
2025
- var remaining = 1;
2026
- iterate$1(iterable, function (promise) {
2027
- var index = counter++;
2028
- var alreadyCalled = false;
2029
- remaining++;
2030
- call$6($promiseResolve, C, promise).then(function (value) {
2031
- if (alreadyCalled) return;
2032
- alreadyCalled = true;
2033
- values[index] = value;
2034
- --remaining || resolve(values);
2035
- }, reject);
2036
- });
2037
- --remaining || resolve(values);
2038
- });
2039
- if (result.error) reject(result.value);
2040
- return capability.promise;
2041
- }
2042
- });
2043
-
2044
- var $$7 = _export;
2045
- var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2046
- var NativePromiseConstructor = promiseNativeConstructor;
2047
- var getBuiltIn$1 = getBuiltIn$8;
2048
- var isCallable$2 = isCallable$i;
2049
- var redefine$1 = redefine$5.exports;
2050
-
2051
- var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2052
-
2053
- // `Promise.prototype.catch` method
2054
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
2055
- $$7({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2056
- 'catch': function (onRejected) {
2057
- return this.then(undefined, onRejected);
2058
- }
2059
- });
2060
-
2061
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2062
- if (isCallable$2(NativePromiseConstructor)) {
2063
- var method = getBuiltIn$1('Promise').prototype['catch'];
2064
- if (NativePromisePrototype['catch'] !== method) {
2065
- redefine$1(NativePromisePrototype, 'catch', method, { unsafe: true });
2066
- }
2067
- }
2068
-
2069
- var $$6 = _export;
2070
- var call$5 = functionCall;
2071
- var aCallable = aCallable$7;
2072
- var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2073
- var perform = perform$3;
2074
- var iterate = iterate$2;
2075
- var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2076
-
2077
- // `Promise.race` method
2078
- // https://tc39.es/ecma262/#sec-promise.race
2079
- $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2080
- race: function race(iterable) {
2081
- var C = this;
2082
- var capability = newPromiseCapabilityModule$1.f(C);
2083
- var reject = capability.reject;
2084
- var result = perform(function () {
2085
- var $promiseResolve = aCallable(C.resolve);
2086
- iterate(iterable, function (promise) {
2087
- call$5($promiseResolve, C, promise).then(capability.resolve, reject);
2088
- });
2089
- });
2090
- if (result.error) reject(result.value);
2091
- return capability.promise;
2092
- }
2093
- });
2094
-
2095
- var $$5 = _export;
2096
- var call$4 = functionCall;
2097
- var newPromiseCapabilityModule = newPromiseCapability$2;
2098
- var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2099
-
2100
- // `Promise.reject` method
2101
- // https://tc39.es/ecma262/#sec-promise.reject
2102
- $$5({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2103
- reject: function reject(r) {
2104
- var capability = newPromiseCapabilityModule.f(this);
2105
- call$4(capability.reject, undefined, r);
2106
- return capability.promise;
2107
- }
2108
- });
2109
-
2110
- var anObject$6 = anObject$e;
2111
- var isObject$1 = isObject$8;
2112
- var newPromiseCapability = newPromiseCapability$2;
2113
-
2114
- var promiseResolve$1 = function (C, x) {
2115
- anObject$6(C);
2116
- if (isObject$1(x) && x.constructor === C) return x;
2117
- var promiseCapability = newPromiseCapability.f(C);
2118
- var resolve = promiseCapability.resolve;
2119
- resolve(x);
2120
- return promiseCapability.promise;
2121
- };
2122
-
2123
- var $$4 = _export;
2124
- var getBuiltIn = getBuiltIn$8;
2125
- var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2126
- var promiseResolve = promiseResolve$1;
2127
-
2128
- getBuiltIn('Promise');
2129
-
2130
- // `Promise.resolve` method
2131
- // https://tc39.es/ecma262/#sec-promise.resolve
2132
- $$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2133
- resolve: function resolve(x) {
2134
- return promiseResolve(this, x);
2135
- }
2136
- });
2137
-
2138
- var global$6 = global$G;
2139
- var classof$2 = classof$5;
2140
-
2141
- var String$1 = global$6.String;
2142
-
2143
- var toString$6 = function (argument) {
2144
- if (classof$2(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2145
- return String$1(argument);
2146
- };
2147
-
2148
- var anObject$5 = anObject$e;
2149
-
2150
- // `RegExp.prototype.flags` getter implementation
2151
- // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2152
- var regexpFlags$1 = function () {
2153
- var that = anObject$5(this);
2154
- var result = '';
2155
- if (that.hasIndices) result += 'd';
2156
- if (that.global) result += 'g';
2157
- if (that.ignoreCase) result += 'i';
2158
- if (that.multiline) result += 'm';
2159
- if (that.dotAll) result += 's';
2160
- if (that.unicode) result += 'u';
2161
- if (that.sticky) result += 'y';
2162
- return result;
2163
- };
2164
-
2165
- var fails$4 = fails$e;
2166
- var global$5 = global$G;
2167
-
2168
- // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
2169
- var $RegExp$2 = global$5.RegExp;
2170
-
2171
- var UNSUPPORTED_Y$1 = fails$4(function () {
2172
- var re = $RegExp$2('a', 'y');
2173
- re.lastIndex = 2;
2174
- return re.exec('abcd') != null;
2175
- });
2176
-
2177
- // UC Browser bug
2178
- // https://github.com/zloirock/core-js/issues/1008
2179
- var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
2180
- return !$RegExp$2('a', 'y').sticky;
2181
- });
2182
-
2183
- var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
2184
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
2185
- var re = $RegExp$2('^r', 'gy');
2186
- re.lastIndex = 2;
2187
- return re.exec('str') != null;
2188
- });
2189
-
2190
- var regexpStickyHelpers = {
2191
- BROKEN_CARET: BROKEN_CARET,
2192
- MISSED_STICKY: MISSED_STICKY,
2193
- UNSUPPORTED_Y: UNSUPPORTED_Y$1
2194
- };
2195
-
2196
- var objectDefineProperties = {};
2197
-
2198
- var internalObjectKeys = objectKeysInternal;
2199
- var enumBugKeys$1 = enumBugKeys$3;
2200
-
2201
- // `Object.keys` method
2202
- // https://tc39.es/ecma262/#sec-object.keys
2203
- // eslint-disable-next-line es-x/no-object-keys -- safe
2204
- var objectKeys$1 = Object.keys || function keys(O) {
2205
- return internalObjectKeys(O, enumBugKeys$1);
2206
- };
2207
-
2208
- var DESCRIPTORS = descriptors;
2209
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2210
- var definePropertyModule$1 = objectDefineProperty;
2211
- var anObject$4 = anObject$e;
2212
- var toIndexedObject = toIndexedObject$4;
2213
- var objectKeys = objectKeys$1;
2214
-
2215
- // `Object.defineProperties` method
2216
- // https://tc39.es/ecma262/#sec-object.defineproperties
2217
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
2218
- objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2219
- anObject$4(O);
2220
- var props = toIndexedObject(Properties);
2221
- var keys = objectKeys(Properties);
2222
- var length = keys.length;
2223
- var index = 0;
2224
- var key;
2225
- while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
2226
- return O;
2227
- };
2228
-
2229
- /* global ActiveXObject -- old IE, WSH */
2230
-
2231
- var anObject$3 = anObject$e;
2232
- var definePropertiesModule = objectDefineProperties;
2233
- var enumBugKeys = enumBugKeys$3;
2234
- var hiddenKeys = hiddenKeys$4;
2235
- var html = html$2;
2236
- var documentCreateElement = documentCreateElement$1;
2237
- var sharedKey = sharedKey$2;
2238
-
2239
- var GT = '>';
2240
- var LT = '<';
2241
- var PROTOTYPE = 'prototype';
2242
- var SCRIPT = 'script';
2243
- var IE_PROTO = sharedKey('IE_PROTO');
2244
-
2245
- var EmptyConstructor = function () { /* empty */ };
2246
-
2247
- var scriptTag = function (content) {
2248
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
2249
- };
2250
-
2251
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
2252
- var NullProtoObjectViaActiveX = function (activeXDocument) {
2253
- activeXDocument.write(scriptTag(''));
2254
- activeXDocument.close();
2255
- var temp = activeXDocument.parentWindow.Object;
2256
- activeXDocument = null; // avoid memory leak
2257
- return temp;
2258
- };
2259
-
2260
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
2261
- var NullProtoObjectViaIFrame = function () {
2262
- // Thrash, waste and sodomy: IE GC bug
2263
- var iframe = documentCreateElement('iframe');
2264
- var JS = 'java' + SCRIPT + ':';
2265
- var iframeDocument;
2266
- iframe.style.display = 'none';
2267
- html.appendChild(iframe);
2268
- // https://github.com/zloirock/core-js/issues/475
2269
- iframe.src = String(JS);
2270
- iframeDocument = iframe.contentWindow.document;
2271
- iframeDocument.open();
2272
- iframeDocument.write(scriptTag('document.F=Object'));
2273
- iframeDocument.close();
2274
- return iframeDocument.F;
2275
- };
2276
-
2277
- // Check for document.domain and active x support
2278
- // No need to use active x approach when document.domain is not set
2279
- // see https://github.com/es-shims/es5-shim/issues/150
2280
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
2281
- // avoid IE GC bug
2282
- var activeXDocument;
2283
- var NullProtoObject = function () {
2284
- try {
2285
- activeXDocument = new ActiveXObject('htmlfile');
2286
- } catch (error) { /* ignore */ }
2287
- NullProtoObject = typeof document != 'undefined'
2288
- ? document.domain && activeXDocument
2289
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
2290
- : NullProtoObjectViaIFrame()
2291
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
2292
- var length = enumBugKeys.length;
2293
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2294
- return NullProtoObject();
2295
- };
2296
-
2297
- hiddenKeys[IE_PROTO] = true;
2298
-
2299
- // `Object.create` method
2300
- // https://tc39.es/ecma262/#sec-object.create
2301
- // eslint-disable-next-line es-x/no-object-create -- safe
2302
- var objectCreate = Object.create || function create(O, Properties) {
2303
- var result;
2304
- if (O !== null) {
2305
- EmptyConstructor[PROTOTYPE] = anObject$3(O);
2306
- result = new EmptyConstructor();
2307
- EmptyConstructor[PROTOTYPE] = null;
2308
- // add "__proto__" for Object.getPrototypeOf polyfill
2309
- result[IE_PROTO] = O;
2310
- } else result = NullProtoObject();
2311
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2312
- };
2313
-
2314
- var fails$3 = fails$e;
2315
- var global$4 = global$G;
2316
-
2317
- // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
2318
- var $RegExp$1 = global$4.RegExp;
2319
-
2320
- var regexpUnsupportedDotAll = fails$3(function () {
2321
- var re = $RegExp$1('.', 's');
2322
- return !(re.dotAll && re.exec('\n') && re.flags === 's');
2323
- });
2324
-
2325
- var fails$2 = fails$e;
2326
- var global$3 = global$G;
2327
-
2328
- // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2329
- var $RegExp = global$3.RegExp;
2330
-
2331
- var regexpUnsupportedNcg = fails$2(function () {
2332
- var re = $RegExp('(?<a>b)', 'g');
2333
- return re.exec('b').groups.a !== 'b' ||
2334
- 'b'.replace(re, '$<a>c') !== 'bc';
2335
- });
2336
-
2337
- /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2338
- /* eslint-disable regexp/no-useless-quantifier -- testing */
2339
- var call$3 = functionCall;
2340
- var uncurryThis$6 = functionUncurryThis;
2341
- var toString$5 = toString$6;
2342
- var regexpFlags = regexpFlags$1;
2343
- var stickyHelpers = regexpStickyHelpers;
2344
- var shared = shared$4.exports;
2345
- var create$1 = objectCreate;
2346
- var getInternalState = internalState.get;
2347
- var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
2348
- var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2349
-
2350
- var nativeReplace = shared('native-string-replace', String.prototype.replace);
2351
- var nativeExec = RegExp.prototype.exec;
2352
- var patchedExec = nativeExec;
2353
- var charAt$3 = uncurryThis$6(''.charAt);
2354
- var indexOf = uncurryThis$6(''.indexOf);
2355
- var replace$1 = uncurryThis$6(''.replace);
2356
- var stringSlice$4 = uncurryThis$6(''.slice);
2357
-
2358
- var UPDATES_LAST_INDEX_WRONG = (function () {
2359
- var re1 = /a/;
2360
- var re2 = /b*/g;
2361
- call$3(nativeExec, re1, 'a');
2362
- call$3(nativeExec, re2, 'a');
2363
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
2364
- })();
2365
-
2366
- var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
2367
-
2368
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
2369
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
2370
-
2371
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
2372
-
2373
- if (PATCH) {
2374
- patchedExec = function exec(string) {
2375
- var re = this;
2376
- var state = getInternalState(re);
2377
- var str = toString$5(string);
2378
- var raw = state.raw;
2379
- var result, reCopy, lastIndex, match, i, object, group;
2380
-
2381
- if (raw) {
2382
- raw.lastIndex = re.lastIndex;
2383
- result = call$3(patchedExec, raw, str);
2384
- re.lastIndex = raw.lastIndex;
2385
- return result;
2386
- }
2387
-
2388
- var groups = state.groups;
2389
- var sticky = UNSUPPORTED_Y && re.sticky;
2390
- var flags = call$3(regexpFlags, re);
2391
- var source = re.source;
2392
- var charsAdded = 0;
2393
- var strCopy = str;
2394
-
2395
- if (sticky) {
2396
- flags = replace$1(flags, 'y', '');
2397
- if (indexOf(flags, 'g') === -1) {
2398
- flags += 'g';
2399
- }
2400
-
2401
- strCopy = stringSlice$4(str, re.lastIndex);
2402
- // Support anchored sticky behavior.
2403
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
2404
- source = '(?: ' + source + ')';
2405
- strCopy = ' ' + strCopy;
2406
- charsAdded++;
2407
- }
2408
- // ^(? + rx + ) is needed, in combination with some str slicing, to
2409
- // simulate the 'y' flag.
2410
- reCopy = new RegExp('^(?:' + source + ')', flags);
2411
- }
2412
-
2413
- if (NPCG_INCLUDED) {
2414
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
2415
- }
2416
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2417
-
2418
- match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
2419
-
2420
- if (sticky) {
2421
- if (match) {
2422
- match.input = stringSlice$4(match.input, charsAdded);
2423
- match[0] = stringSlice$4(match[0], charsAdded);
2424
- match.index = re.lastIndex;
2425
- re.lastIndex += match[0].length;
2426
- } else re.lastIndex = 0;
2427
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
2428
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
2429
- }
2430
- if (NPCG_INCLUDED && match && match.length > 1) {
2431
- // Fix browsers whose `exec` methods don't consistently return `undefined`
2432
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
2433
- call$3(nativeReplace, match[0], reCopy, function () {
2434
- for (i = 1; i < arguments.length - 2; i++) {
2435
- if (arguments[i] === undefined) match[i] = undefined;
2436
- }
2437
- });
2438
- }
2439
-
2440
- if (match && groups) {
2441
- match.groups = object = create$1(null);
2442
- for (i = 0; i < groups.length; i++) {
2443
- group = groups[i];
2444
- object[group[0]] = match[group[1]];
2445
- }
2446
- }
2447
-
2448
- return match;
2449
- };
2450
- }
2451
-
2452
- var regexpExec$2 = patchedExec;
2453
-
2454
- var $$3 = _export;
2455
- var exec = regexpExec$2;
2456
-
2457
- // `RegExp.prototype.exec` method
2458
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2459
- $$3({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
2460
- exec: exec
2461
- });
2462
-
2463
- // TODO: Remove from `core-js@4` since it's moved to entry points
2464
-
2465
- var uncurryThis$5 = functionUncurryThis;
2466
- var redefine = redefine$5.exports;
2467
- var regexpExec$1 = regexpExec$2;
2468
- var fails$1 = fails$e;
2469
- var wellKnownSymbol$4 = wellKnownSymbol$f;
2470
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
2471
-
2472
- var SPECIES = wellKnownSymbol$4('species');
2473
- var RegExpPrototype = RegExp.prototype;
2474
-
2475
- var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2476
- var SYMBOL = wellKnownSymbol$4(KEY);
2477
-
2478
- var DELEGATES_TO_SYMBOL = !fails$1(function () {
2479
- // String methods call symbol-named RegEp methods
2480
- var O = {};
2481
- O[SYMBOL] = function () { return 7; };
2482
- return ''[KEY](O) != 7;
2483
- });
2484
-
2485
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
2486
- // Symbol-named RegExp methods call .exec
2487
- var execCalled = false;
2488
- var re = /a/;
2489
-
2490
- if (KEY === 'split') {
2491
- // We can't use real regex here since it causes deoptimization
2492
- // and serious performance degradation in V8
2493
- // https://github.com/zloirock/core-js/issues/306
2494
- re = {};
2495
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
2496
- // a new one. We need to return the patched regex when creating the new one.
2497
- re.constructor = {};
2498
- re.constructor[SPECIES] = function () { return re; };
2499
- re.flags = '';
2500
- re[SYMBOL] = /./[SYMBOL];
2501
- }
2502
-
2503
- re.exec = function () { execCalled = true; return null; };
2504
-
2505
- re[SYMBOL]('');
2506
- return !execCalled;
2507
- });
2508
-
2509
- if (
2510
- !DELEGATES_TO_SYMBOL ||
2511
- !DELEGATES_TO_EXEC ||
2512
- FORCED
2513
- ) {
2514
- var uncurriedNativeRegExpMethod = uncurryThis$5(/./[SYMBOL]);
2515
- var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2516
- var uncurriedNativeMethod = uncurryThis$5(nativeMethod);
2517
- var $exec = regexp.exec;
2518
- if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
2519
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
2520
- // The native String method already delegates to @@method (this
2521
- // polyfilled function), leasing to infinite recursion.
2522
- // We avoid it by directly calling the native @@method method.
2523
- return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
2524
- }
2525
- return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
2526
- }
2527
- return { done: false };
2528
- });
2529
-
2530
- redefine(String.prototype, KEY, methods[0]);
2531
- redefine(RegExpPrototype, SYMBOL, methods[1]);
2532
- }
2533
-
2534
- if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
2535
- };
2536
-
2537
- var uncurryThis$4 = functionUncurryThis;
2538
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
2539
- var toString$4 = toString$6;
2540
- var requireObjectCoercible$4 = requireObjectCoercible$7;
2541
-
2542
- var charAt$2 = uncurryThis$4(''.charAt);
2543
- var charCodeAt = uncurryThis$4(''.charCodeAt);
2544
- var stringSlice$3 = uncurryThis$4(''.slice);
2545
-
2546
- var createMethod = function (CONVERT_TO_STRING) {
2547
- return function ($this, pos) {
2548
- var S = toString$4(requireObjectCoercible$4($this));
2549
- var position = toIntegerOrInfinity$1(pos);
2550
- var size = S.length;
2551
- var first, second;
2552
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2553
- first = charCodeAt(S, position);
2554
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
2555
- || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
2556
- ? CONVERT_TO_STRING
2557
- ? charAt$2(S, position)
2558
- : first
2559
- : CONVERT_TO_STRING
2560
- ? stringSlice$3(S, position, position + 2)
2561
- : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2562
- };
2563
- };
2564
-
2565
- var stringMultibyte = {
2566
- // `String.prototype.codePointAt` method
2567
- // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2568
- codeAt: createMethod(false),
2569
- // `String.prototype.at` method
2570
- // https://github.com/mathiasbynens/String.prototype.at
2571
- charAt: createMethod(true)
2572
- };
2573
-
2574
- var charAt$1 = stringMultibyte.charAt;
2575
-
2576
- // `AdvanceStringIndex` abstract operation
2577
- // https://tc39.es/ecma262/#sec-advancestringindex
2578
- var advanceStringIndex$2 = function (S, index, unicode) {
2579
- return index + (unicode ? charAt$1(S, index).length : 1);
2580
- };
2581
-
2582
- var global$2 = global$G;
2583
- var call$2 = functionCall;
2584
- var anObject$2 = anObject$e;
2585
- var isCallable$1 = isCallable$i;
2586
- var classof$1 = classofRaw$1;
2587
- var regexpExec = regexpExec$2;
2588
-
2589
- var TypeError$2 = global$2.TypeError;
2590
-
2591
- // `RegExpExec` abstract operation
2592
- // https://tc39.es/ecma262/#sec-regexpexec
2593
- var regexpExecAbstract = function (R, S) {
2594
- var exec = R.exec;
2595
- if (isCallable$1(exec)) {
2596
- var result = call$2(exec, R, S);
2597
- if (result !== null) anObject$2(result);
2598
- return result;
2599
- }
2600
- if (classof$1(R) === 'RegExp') return call$2(regexpExec, R, S);
2601
- throw TypeError$2('RegExp#exec called on incompatible receiver');
2602
- };
2603
-
2604
- var call$1 = functionCall;
2605
- var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2606
- var anObject$1 = anObject$e;
2607
- var toLength$3 = toLength$5;
2608
- var toString$3 = toString$6;
2609
- var requireObjectCoercible$3 = requireObjectCoercible$7;
2610
- var getMethod$1 = getMethod$5;
2611
- var advanceStringIndex$1 = advanceStringIndex$2;
2612
- var regExpExec$1 = regexpExecAbstract;
2613
-
2614
- // @@match logic
2615
- fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCallNative) {
2616
- return [
2617
- // `String.prototype.match` method
2618
- // https://tc39.es/ecma262/#sec-string.prototype.match
2619
- function match(regexp) {
2620
- var O = requireObjectCoercible$3(this);
2621
- var matcher = regexp == undefined ? undefined : getMethod$1(regexp, MATCH);
2622
- return matcher ? call$1(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$3(O));
2623
- },
2624
- // `RegExp.prototype[@@match]` method
2625
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
2626
- function (string) {
2627
- var rx = anObject$1(this);
2628
- var S = toString$3(string);
2629
- var res = maybeCallNative(nativeMatch, rx, S);
2630
-
2631
- if (res.done) return res.value;
2632
-
2633
- if (!rx.global) return regExpExec$1(rx, S);
2634
-
2635
- var fullUnicode = rx.unicode;
2636
- rx.lastIndex = 0;
2637
- var A = [];
2638
- var n = 0;
2639
- var result;
2640
- while ((result = regExpExec$1(rx, S)) !== null) {
2641
- var matchStr = toString$3(result[0]);
2642
- A[n] = matchStr;
2643
- if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$3(rx.lastIndex), fullUnicode);
2644
- n++;
2645
- }
2646
- return n === 0 ? null : A;
2647
- }
2648
- ];
2649
- });
2650
-
2651
- var uncurryThis$3 = functionUncurryThis;
2652
- var toObject = toObject$2;
2653
-
2654
- var floor = Math.floor;
2655
- var charAt = uncurryThis$3(''.charAt);
2656
- var replace = uncurryThis$3(''.replace);
2657
- var stringSlice$2 = uncurryThis$3(''.slice);
2658
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2659
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2660
-
2661
- // `GetSubstitution` abstract operation
2662
- // https://tc39.es/ecma262/#sec-getsubstitution
2663
- var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
2664
- var tailPos = position + matched.length;
2665
- var m = captures.length;
2666
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2667
- if (namedCaptures !== undefined) {
2668
- namedCaptures = toObject(namedCaptures);
2669
- symbols = SUBSTITUTION_SYMBOLS;
2670
- }
2671
- return replace(replacement, symbols, function (match, ch) {
2672
- var capture;
2673
- switch (charAt(ch, 0)) {
2674
- case '$': return '$';
2675
- case '&': return matched;
2676
- case '`': return stringSlice$2(str, 0, position);
2677
- case "'": return stringSlice$2(str, tailPos);
2678
- case '<':
2679
- capture = namedCaptures[stringSlice$2(ch, 1, -1)];
2680
- break;
2681
- default: // \d\d?
2682
- var n = +ch;
2683
- if (n === 0) return match;
2684
- if (n > m) {
2685
- var f = floor(n / 10);
2686
- if (f === 0) return match;
2687
- if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
2688
- return match;
2689
- }
2690
- capture = captures[n - 1];
2691
- }
2692
- return capture === undefined ? '' : capture;
2693
- });
2694
- };
2695
-
2696
- var apply = functionApply;
2697
- var call = functionCall;
2698
- var uncurryThis$2 = functionUncurryThis;
2699
- var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2700
- var fails = fails$e;
2701
- var anObject = anObject$e;
2702
- var isCallable = isCallable$i;
2703
- var toIntegerOrInfinity = toIntegerOrInfinity$4;
2704
- var toLength$2 = toLength$5;
2705
- var toString$2 = toString$6;
2706
- var requireObjectCoercible$2 = requireObjectCoercible$7;
2707
- var advanceStringIndex = advanceStringIndex$2;
2708
- var getMethod = getMethod$5;
2709
- var getSubstitution = getSubstitution$1;
2710
- var regExpExec = regexpExecAbstract;
2711
- var wellKnownSymbol$3 = wellKnownSymbol$f;
2712
-
2713
- var REPLACE = wellKnownSymbol$3('replace');
2714
- var max = Math.max;
2715
- var min$2 = Math.min;
2716
- var concat = uncurryThis$2([].concat);
2717
- var push = uncurryThis$2([].push);
2718
- var stringIndexOf = uncurryThis$2(''.indexOf);
2719
- var stringSlice$1 = uncurryThis$2(''.slice);
2720
-
2721
- var maybeToString = function (it) {
2722
- return it === undefined ? it : String(it);
2723
- };
2724
-
2725
- // IE <= 11 replaces $0 with the whole match, as if it was $&
2726
- // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
2727
- var REPLACE_KEEPS_$0 = (function () {
2728
- // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
2729
- return 'a'.replace(/./, '$0') === '$0';
2730
- })();
2731
-
2732
- // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
2733
- var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2734
- if (/./[REPLACE]) {
2735
- return /./[REPLACE]('a', '$0') === '';
2736
- }
2737
- return false;
2738
- })();
2739
-
2740
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
2741
- var re = /./;
2742
- re.exec = function () {
2743
- var result = [];
2744
- result.groups = { a: '7' };
2745
- return result;
2746
- };
2747
- // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
2748
- return ''.replace(re, '$<a>') !== '7';
2749
- });
2750
-
2751
- // @@replace logic
2752
- fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
2753
- var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
2754
-
2755
- return [
2756
- // `String.prototype.replace` method
2757
- // https://tc39.es/ecma262/#sec-string.prototype.replace
2758
- function replace(searchValue, replaceValue) {
2759
- var O = requireObjectCoercible$2(this);
2760
- var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
2761
- return replacer
2762
- ? call(replacer, searchValue, O, replaceValue)
2763
- : call(nativeReplace, toString$2(O), searchValue, replaceValue);
2764
- },
2765
- // `RegExp.prototype[@@replace]` method
2766
- // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2767
- function (string, replaceValue) {
2768
- var rx = anObject(this);
2769
- var S = toString$2(string);
2770
-
2771
- if (
2772
- typeof replaceValue == 'string' &&
2773
- stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2774
- stringIndexOf(replaceValue, '$<') === -1
2775
- ) {
2776
- var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
2777
- if (res.done) return res.value;
2778
- }
2779
-
2780
- var functionalReplace = isCallable(replaceValue);
2781
- if (!functionalReplace) replaceValue = toString$2(replaceValue);
2782
-
2783
- var global = rx.global;
2784
- if (global) {
2785
- var fullUnicode = rx.unicode;
2786
- rx.lastIndex = 0;
2787
- }
2788
- var results = [];
2789
- while (true) {
2790
- var result = regExpExec(rx, S);
2791
- if (result === null) break;
2792
-
2793
- push(results, result);
2794
- if (!global) break;
2795
-
2796
- var matchStr = toString$2(result[0]);
2797
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength$2(rx.lastIndex), fullUnicode);
2798
- }
2799
-
2800
- var accumulatedResult = '';
2801
- var nextSourcePosition = 0;
2802
- for (var i = 0; i < results.length; i++) {
2803
- result = results[i];
2804
-
2805
- var matched = toString$2(result[0]);
2806
- var position = max(min$2(toIntegerOrInfinity(result.index), S.length), 0);
2807
- var captures = [];
2808
- // NOTE: This is equivalent to
2809
- // captures = result.slice(1).map(maybeToString)
2810
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
2811
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
2812
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
2813
- for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
2814
- var namedCaptures = result.groups;
2815
- if (functionalReplace) {
2816
- var replacerArgs = concat([matched], captures, position, S);
2817
- if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
2818
- var replacement = toString$2(apply(replaceValue, undefined, replacerArgs));
2819
- } else {
2820
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2821
- }
2822
- if (position >= nextSourcePosition) {
2823
- accumulatedResult += stringSlice$1(S, nextSourcePosition, position) + replacement;
2824
- nextSourcePosition = position + matched.length;
2825
- }
2826
- }
2827
- return accumulatedResult + stringSlice$1(S, nextSourcePosition);
2828
- }
2829
- ];
2830
- }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2831
-
2832
- var isObject = isObject$8;
2833
- var classof = classofRaw$1;
2834
- var wellKnownSymbol$2 = wellKnownSymbol$f;
2835
-
2836
- var MATCH$1 = wellKnownSymbol$2('match');
2837
-
2838
- // `IsRegExp` abstract operation
2839
- // https://tc39.es/ecma262/#sec-isregexp
2840
- var isRegexp = function (it) {
2841
- var isRegExp;
2842
- return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
2843
- };
2844
-
2845
- var global$1 = global$G;
2846
- var isRegExp = isRegexp;
2847
-
2848
- var TypeError$1 = global$1.TypeError;
2849
-
2850
- var notARegexp = function (it) {
2851
- if (isRegExp(it)) {
2852
- throw TypeError$1("The method doesn't accept regular expressions");
2853
- } return it;
2854
- };
2855
-
2856
- var wellKnownSymbol$1 = wellKnownSymbol$f;
2857
-
2858
- var MATCH = wellKnownSymbol$1('match');
2859
-
2860
- var correctIsRegexpLogic = function (METHOD_NAME) {
2861
- var regexp = /./;
2862
- try {
2863
- '/./'[METHOD_NAME](regexp);
2864
- } catch (error1) {
2865
- try {
2866
- regexp[MATCH] = false;
2867
- return '/./'[METHOD_NAME](regexp);
2868
- } catch (error2) { /* empty */ }
2869
- } return false;
2870
- };
2871
-
2872
- var $$2 = _export;
2873
- var uncurryThis$1 = functionUncurryThis;
2874
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
2875
- var toLength$1 = toLength$5;
2876
- var toString$1 = toString$6;
2877
- var notARegExp$1 = notARegexp;
2878
- var requireObjectCoercible$1 = requireObjectCoercible$7;
2879
- var correctIsRegExpLogic$1 = correctIsRegexpLogic;
2880
-
2881
- // eslint-disable-next-line es-x/no-string-prototype-startswith -- safe
2882
- var un$StartsWith = uncurryThis$1(''.startsWith);
2883
- var stringSlice = uncurryThis$1(''.slice);
2884
- var min$1 = Math.min;
2885
-
2886
- var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegExpLogic$1('startsWith');
2887
- // https://github.com/zloirock/core-js/pull/702
2888
- var MDN_POLYFILL_BUG$1 = !CORRECT_IS_REGEXP_LOGIC$1 && !!function () {
2889
- var descriptor = getOwnPropertyDescriptor$1(String.prototype, 'startsWith');
2890
- return descriptor && !descriptor.writable;
2891
- }();
2892
-
2893
- // `String.prototype.startsWith` method
2894
- // https://tc39.es/ecma262/#sec-string.prototype.startswith
2895
- $$2({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, {
2896
- startsWith: function startsWith(searchString /* , position = 0 */) {
2897
- var that = toString$1(requireObjectCoercible$1(this));
2898
- notARegExp$1(searchString);
2899
- var index = toLength$1(min$1(arguments.length > 1 ? arguments[1] : undefined, that.length));
2900
- var search = toString$1(searchString);
2901
- return un$StartsWith
2902
- ? un$StartsWith(that, search, index)
2903
- : stringSlice(that, index, index + search.length) === search;
2904
- }
2905
- });
2906
-
2907
- var wellKnownSymbol = wellKnownSymbol$f;
2908
- var create = objectCreate;
2909
- var definePropertyModule = objectDefineProperty;
2910
-
2911
- var UNSCOPABLES = wellKnownSymbol('unscopables');
2912
- var ArrayPrototype = Array.prototype;
2913
-
2914
- // Array.prototype[@@unscopables]
2915
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2916
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
2917
- definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
2918
- configurable: true,
2919
- value: create(null)
2920
- });
2921
- }
2922
-
2923
- // add a key to Array.prototype[@@unscopables]
2924
- var addToUnscopables$1 = function (key) {
2925
- ArrayPrototype[UNSCOPABLES][key] = true;
2926
- };
2927
-
2928
- var $$1 = _export;
2929
- var $includes = arrayIncludes.includes;
2930
- var addToUnscopables = addToUnscopables$1;
2931
-
2932
- // `Array.prototype.includes` method
2933
- // https://tc39.es/ecma262/#sec-array.prototype.includes
2934
- $$1({ target: 'Array', proto: true }, {
2935
- includes: function includes(el /* , fromIndex = 0 */) {
2936
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2937
- }
2938
- });
2939
-
2940
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2941
- addToUnscopables('includes');
2942
-
2943
- var $ = _export;
2944
- var uncurryThis = functionUncurryThis;
2945
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
2946
- var toLength = toLength$5;
2947
- var toString = toString$6;
2948
- var notARegExp = notARegexp;
2949
- var requireObjectCoercible = requireObjectCoercible$7;
2950
- var correctIsRegExpLogic = correctIsRegexpLogic;
2951
-
2952
- // eslint-disable-next-line es-x/no-string-prototype-endswith -- safe
2953
- var un$EndsWith = uncurryThis(''.endsWith);
2954
- var slice = uncurryThis(''.slice);
2955
- var min = Math.min;
2956
-
2957
- var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');
2958
- // https://github.com/zloirock/core-js/pull/702
2959
- var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
2960
- var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');
2961
- return descriptor && !descriptor.writable;
2962
- }();
2963
-
2964
- // `String.prototype.endsWith` method
2965
- // https://tc39.es/ecma262/#sec-string.prototype.endswith
2966
- $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
2967
- endsWith: function endsWith(searchString /* , endPosition = @length */) {
2968
- var that = toString(requireObjectCoercible(this));
2969
- notARegExp(searchString);
2970
- var endPosition = arguments.length > 1 ? arguments[1] : undefined;
2971
- var len = that.length;
2972
- var end = endPosition === undefined ? len : min(toLength(endPosition), len);
2973
- var search = toString(searchString);
2974
- return un$EndsWith
2975
- ? un$EndsWith(that, search, end)
2976
- : slice(that, end - search.length, end) === search;
2977
- }
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ defaultProps: () => defaultProps,
24
+ fileToArray: () => fileToArray,
25
+ getDocxToHtml: () => getDocxToHtml,
26
+ getLocation: () => getLocation,
27
+ getViewerDetails: () => getViewerDetails,
28
+ getViewerRecoveryPlan: () => getViewerRecoveryPlan,
29
+ getbaseUrl: () => getbaseUrl,
30
+ googleCheckSubscription: () => googleCheckSubscription,
31
+ handleFileUpload: () => handleFileUpload,
32
+ iframeIsLoaded: () => iframeIsLoaded,
33
+ isLocalFile: () => isLocalFile,
34
+ replaceLocalUrl: () => replaceLocalUrl,
35
+ timeout: () => timeout,
36
+ uploadToCloud: () => uploadToCloud
2978
37
  });
38
+ module.exports = __toCommonJS(index_exports);
2979
39
 
2980
- /******************************************************************************
2981
- Copyright (c) Microsoft Corporation.
2982
-
2983
- Permission to use, copy, modify, and/or distribute this software for any
2984
- purpose with or without fee is hereby granted.
2985
-
2986
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2987
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2988
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2989
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2990
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2991
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2992
- PERFORMANCE OF THIS SOFTWARE.
2993
- ***************************************************************************** */
2994
-
2995
- function __awaiter(thisArg, _arguments, P, generator) {
2996
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2997
- return new (P || (P = Promise))(function (resolve, reject) {
2998
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
2999
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3000
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3001
- step((generator = generator.apply(thisArg, _arguments || [])).next());
3002
- });
3003
- }
3004
-
3005
- const fileToArray = url => {
40
+ // src/lib/helper.ts
41
+ var fileToArray = (url) => {
3006
42
  return new Promise((resolve, reject) => {
3007
43
  try {
3008
44
  const request = new XMLHttpRequest();
3009
- request.open('GET', url, true);
3010
- request.responseType = 'blob';
45
+ request.open("GET", url, true);
46
+ request.responseType = "blob";
3011
47
  request.onload = () => {
3012
48
  const reader = new FileReader();
3013
49
  reader.readAsArrayBuffer(request.response);
@@ -3016,18 +52,18 @@ const fileToArray = url => {
3016
52
  };
3017
53
  };
3018
54
  request.send();
3019
- } catch (_a) {
55
+ } catch {
3020
56
  reject(`error while retrieving file ${url}.`);
3021
57
  }
3022
58
  });
3023
59
  };
3024
- const timeout = ms => {
3025
- return new Promise(resolve => setTimeout(resolve, ms));
60
+ var timeout = (ms) => {
61
+ return new Promise((resolve) => setTimeout(resolve, ms));
3026
62
  };
3027
- const reloadIFrame = iframe => {
63
+ var reloadIFrame = (iframe) => {
3028
64
  if (iframe) {
3029
65
  const url = iframe.src;
3030
- iframe.src = 'about:blank';
66
+ iframe.src = "about:blank";
3031
67
  setTimeout(() => {
3032
68
  if (iframe) {
3033
69
  iframe.src = url;
@@ -3035,30 +71,29 @@ const reloadIFrame = iframe => {
3035
71
  }, 100);
3036
72
  }
3037
73
  };
3038
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3039
- const handleFileUpload = fileInput => {
74
+ var handleFileUpload = (fileInput) => {
3040
75
  return new Promise((resolve, reject) => {
3041
76
  if (fileInput.target.files && fileInput.target.files[0]) {
3042
77
  const reader = new FileReader();
3043
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
3044
- reader.onload = e => {
78
+ reader.onload = (e) => {
3045
79
  resolve(e.target.result);
3046
80
  };
3047
81
  reader.readAsDataURL(fileInput.target.files[0]);
3048
82
  } else {
3049
- reject('no files selected');
83
+ reject("no files selected");
3050
84
  }
3051
85
  });
3052
86
  };
3053
- const getbaseUrl = () => {
3054
- const pathArray = window.location.href.split('/');
87
+ var getbaseUrl = () => {
88
+ const pathArray = window.location.href.split("/");
3055
89
  const protocol = pathArray[0];
3056
90
  const host = pathArray[2];
3057
- return protocol + '//' + host;
91
+ return protocol + "//" + host;
3058
92
  };
3059
- const getLocation = href => {
3060
- // eslint-disable-next-line no-useless-escape
3061
- const match = href.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);
93
+ var getLocation = (href) => {
94
+ const match = href.match(
95
+ /^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/
96
+ );
3062
97
  return match && {
3063
98
  href,
3064
99
  protocol: match[1],
@@ -3070,21 +105,21 @@ const getLocation = href => {
3070
105
  hash: match[7]
3071
106
  };
3072
107
  };
3073
- const getDocxToHtml = url => __awaiter(void 0, void 0, void 0, function* () {
108
+ var getDocxToHtml = async (url) => {
3074
109
  if (!mammoth) {
3075
- console.error('Please install mammoth and make sure mammoth.browser.min.js is loaded.');
110
+ console.error(
111
+ "Please install mammoth and make sure mammoth.browser.min.js is loaded."
112
+ );
3076
113
  }
3077
- const arrayBuffer = yield fileToArray(url);
3078
- const resultObject = yield mammoth.convertToHtml({
3079
- arrayBuffer
3080
- });
114
+ const arrayBuffer = await fileToArray(url);
115
+ const resultObject = await mammoth.convertToHtml({ arrayBuffer });
3081
116
  return resultObject.value;
3082
- });
3083
- const googleCheckSubscription = () => {
117
+ };
118
+ var googleCheckSubscription = () => {
3084
119
  let subscription = null;
3085
120
  let checkCount = 0;
3086
121
  return {
3087
- subscribe: (iframe, interval = 3000, maxChecks = 5) => {
122
+ subscribe: (iframe, interval = 3e3, maxChecks = 5) => {
3088
123
  if (!iframeIsLoaded(iframe)) {
3089
124
  subscription = setInterval(() => {
3090
125
  checkCount++;
@@ -3107,44 +142,38 @@ const googleCheckSubscription = () => {
3107
142
  }
3108
143
  };
3109
144
  };
3110
- const iframeIsLoaded = iframe => {
3111
- var _a;
3112
- // its #document <html><head></head><body></body></html> when google is returning a 204
3113
- // so if contentDocument = null then it's loaded.
145
+ var iframeIsLoaded = (iframe) => {
3114
146
  let isLoaded = false;
3115
147
  try {
3116
148
  if (!internetExplorer()) {
3117
- isLoaded = !(iframe === null || iframe === void 0 ? void 0 : iframe.contentDocument);
149
+ isLoaded = !iframe?.contentDocument;
3118
150
  } else {
3119
- isLoaded = !((_a = iframe === null || iframe === void 0 ? void 0 : iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document);
151
+ isLoaded = !iframe?.contentWindow?.document;
3120
152
  }
3121
- } catch (_b) {
3122
- // ignore message Blocked a frame with origin "http://..." from accessing a cross-origin frame.
153
+ } catch {
3123
154
  }
3124
155
  return isLoaded;
3125
156
  };
3126
- const internetExplorer = () => /MSIE (\d+\.\d+);/.test(navigator.userAgent) || navigator.userAgent.indexOf("Trident/") > -1;
3127
- const getViewerDetails = (url, configuredViewer = 'google', queryParams = '', viewerUrl = '') => {
157
+ var internetExplorer = () => /MSIE (\d+\.\d+);/.test(navigator.userAgent) || navigator.userAgent.indexOf("Trident/") > -1;
158
+ var getViewerDetails = (url, configuredViewer = "google", queryParams = "", viewerUrl = "") => {
3128
159
  switch (configuredViewer) {
3129
- case 'google':
160
+ case "google":
3130
161
  viewerUrl = `https://docs.google.com/gview?url=%URL%&embedded=true`;
3131
162
  break;
3132
- case 'office':
3133
- {
3134
- viewerUrl = `https://view.officeapps.live.com/op/embed.aspx?src=%URL%`;
3135
- break;
3136
- }
3137
- case 'pdf':
3138
- {
3139
- viewerUrl = '';
3140
- break;
3141
- }
163
+ case "office": {
164
+ viewerUrl = `https://view.officeapps.live.com/op/embed.aspx?src=%URL%`;
165
+ break;
166
+ }
167
+ case "pdf": {
168
+ viewerUrl = "";
169
+ break;
170
+ }
3142
171
  }
3143
- const externalViewer = configuredViewer === 'google' || configuredViewer === 'office' || configuredViewer === 'url';
3144
- const u = (url === null || url === void 0 ? void 0 : url.indexOf('/')) ? encodeURIComponent(url) : url;
3145
- let fullUrl = viewerUrl ? viewerUrl.replace('%URL%', u) : url;
3146
- if (queryParams && externalViewer && configuredViewer !== 'url') {
3147
- const start = queryParams.startsWith('&') ? '' : '&';
172
+ const externalViewer = configuredViewer === "google" || configuredViewer === "office" || configuredViewer === "url";
173
+ const u = url?.indexOf("/") ? encodeURIComponent(url) : url;
174
+ let fullUrl = viewerUrl ? viewerUrl.replace("%URL%", u) : url;
175
+ if (queryParams && externalViewer && configuredViewer !== "url") {
176
+ const start = queryParams.startsWith("&") ? "" : "&";
3148
177
  fullUrl = `${fullUrl}${start}${queryParams}`;
3149
178
  }
3150
179
  return {
@@ -3152,19 +181,40 @@ const getViewerDetails = (url, configuredViewer = 'google', queryParams = '', vi
3152
181
  externalViewer
3153
182
  };
3154
183
  };
3155
- const replaceLocalUrl = (url, overrideLocalhost) => {
184
+ var getViewerRecoveryPlan = ({
185
+ viewer,
186
+ googleCheckContentLoaded = true,
187
+ googleFinalRetryDelay = 0,
188
+ officeAutoRetry = false
189
+ }) => {
190
+ const modes = [];
191
+ if (viewer === "google" && googleCheckContentLoaded) {
192
+ modes.push("google-probe");
193
+ }
194
+ if (viewer === "google" && googleFinalRetryDelay > 0) {
195
+ modes.push("google-final-retry");
196
+ }
197
+ if (viewer === "office" && officeAutoRetry) {
198
+ modes.push("office-auto-retry");
199
+ }
200
+ return { modes };
201
+ };
202
+ var replaceLocalUrl = (url, overrideLocalhost) => {
3156
203
  const loc = getLocation(url);
3157
204
  const locReplace = getLocation(overrideLocalhost);
3158
205
  if (loc && locReplace) {
3159
- return url.replace(loc.port ? `${loc.hostname}:${loc.port}` : loc.hostname, locReplace.port ? `${locReplace.hostname}:${locReplace.port}` : locReplace.hostname);
206
+ return url.replace(
207
+ loc.port ? `${loc.hostname}:${loc.port}` : loc.hostname,
208
+ locReplace.port ? `${locReplace.hostname}:${locReplace.port}` : locReplace.hostname
209
+ );
3160
210
  }
3161
211
  return url;
3162
212
  };
3163
- const getBlobFromUrl = url => {
213
+ var getBlobFromUrl = (url) => {
3164
214
  return new Promise((resolve, reject) => {
3165
215
  const request = new XMLHttpRequest();
3166
- request.open('GET', url, true);
3167
- request.responseType = 'blob';
216
+ request.open("GET", url, true);
217
+ request.responseType = "blob";
3168
218
  request.onload = () => {
3169
219
  resolve(request.response);
3170
220
  };
@@ -3172,15 +222,14 @@ const getBlobFromUrl = url => {
3172
222
  request.send();
3173
223
  });
3174
224
  };
3175
- const uploadToCloud = (fileUrl, api) => new Promise((resolve, reject) => {
3176
- getBlobFromUrl(fileUrl).then(blob => {
3177
- var _a, _b;
225
+ var uploadToCloud = (fileUrl, api) => new Promise((resolve, reject) => {
226
+ getBlobFromUrl(fileUrl).then((blob) => {
3178
227
  const loc = getLocation(fileUrl);
3179
- const name = (loc === null || loc === void 0 ? void 0 : loc.pathname) ? (_a = loc === null || loc === void 0 ? void 0 : loc.pathname) === null || _a === void 0 ? void 0 : _a.split('/')[((_b = loc === null || loc === void 0 ? void 0 : loc.pathname) === null || _b === void 0 ? void 0 : _b.split('/').length) - 1] : '';
228
+ const name = loc?.pathname ? loc?.pathname?.split("/")[loc?.pathname?.split("/").length - 1] : "";
3180
229
  const formData = new FormData();
3181
230
  const request = new XMLHttpRequest();
3182
- formData.append('file', blob, name);
3183
- request.onreadystatechange = e => {
231
+ formData.append("file", blob, name);
232
+ request.onreadystatechange = (e) => {
3184
233
  if (request.readyState === XMLHttpRequest.DONE) {
3185
234
  if (request.status === 200) {
3186
235
  resolve(request.responseText);
@@ -3190,26 +239,44 @@ const uploadToCloud = (fileUrl, api) => new Promise((resolve, reject) => {
3190
239
  }
3191
240
  };
3192
241
  request.onerror = reject;
3193
- request.open('post', api, true);
242
+ request.open("post", api, true);
3194
243
  request.send(formData);
3195
244
  });
3196
245
  });
3197
- const isLocalFile = file => {
246
+ var isLocalFile = (file) => {
3198
247
  const loc = getLocation(file);
3199
- const hostname = (loc === null || loc === void 0 ? void 0 : loc.hostname) || '';
3200
- return ['localhost', '127.0.0.1', '', '::1'].includes(hostname) || hostname.startsWith('192.168.') || hostname.startsWith('10.0.') || hostname.endsWith('.local');
248
+ const hostname = loc?.hostname || "";
249
+ return ["localhost", "127.0.0.1", "", "::1"].includes(hostname) || hostname.startsWith("192.168.") || hostname.startsWith("10.0.") || hostname.endsWith(".local");
3201
250
  };
3202
251
 
3203
- const defaultProps = {
252
+ // src/lib/model.ts
253
+ var defaultProps = {
3204
254
  // eslint-disable-next-line @typescript-eslint/no-empty-function
3205
- loaded: () => {},
3206
- disableContent: 'none',
255
+ loaded: () => {
256
+ },
257
+ disableContent: "none",
3207
258
  googleCheckContentLoaded: true,
3208
- googleCheckInterval: 3000,
3209
- queryParams: '',
3210
- url: '',
3211
- viewer: 'google',
3212
- viewerUrl: ''
3213
- };
3214
-
3215
- export { defaultProps, fileToArray, getDocxToHtml, getLocation, getViewerDetails, getbaseUrl, googleCheckSubscription, handleFileUpload, iframeIsLoaded, isLocalFile, replaceLocalUrl, timeout, uploadToCloud };
259
+ googleCheckInterval: 3e3,
260
+ queryParams: "",
261
+ url: "",
262
+ viewer: "google",
263
+ viewerUrl: ""
264
+ };
265
+ // Annotate the CommonJS export names for ESM import in node:
266
+ 0 && (module.exports = {
267
+ defaultProps,
268
+ fileToArray,
269
+ getDocxToHtml,
270
+ getLocation,
271
+ getViewerDetails,
272
+ getViewerRecoveryPlan,
273
+ getbaseUrl,
274
+ googleCheckSubscription,
275
+ handleFileUpload,
276
+ iframeIsLoaded,
277
+ isLocalFile,
278
+ replaceLocalUrl,
279
+ timeout,
280
+ uploadToCloud
281
+ });
282
+ //# sourceMappingURL=index.js.map