@dotcms/react 0.0.1-beta.25 → 0.0.1-beta.27

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.
@@ -0,0 +1,4037 @@
1
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
+
3
+ var fails$f = function (exec) {
4
+ try {
5
+ return !!exec();
6
+ } catch (error) {
7
+ return true;
8
+ }
9
+ };
10
+
11
+ var fails$e = fails$f;
12
+
13
+ var functionBindNative = !fails$e(function () {
14
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
15
+ var test = (function () { /* empty */ }).bind();
16
+ // eslint-disable-next-line no-prototype-builtins -- safe
17
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
18
+ });
19
+
20
+ var NATIVE_BIND$3 = functionBindNative;
21
+
22
+ var FunctionPrototype$2 = Function.prototype;
23
+ var call$e = FunctionPrototype$2.call;
24
+ var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$2.bind.bind(call$e, call$e);
25
+
26
+ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
27
+ return function () {
28
+ return call$e.apply(fn, arguments);
29
+ };
30
+ };
31
+
32
+ var uncurryThis$n = functionUncurryThis;
33
+
34
+ var toString$7 = uncurryThis$n({}.toString);
35
+ var stringSlice$4 = uncurryThis$n(''.slice);
36
+
37
+ var classofRaw$2 = function (it) {
38
+ return stringSlice$4(toString$7(it), 8, -1);
39
+ };
40
+
41
+ var uncurryThis$m = functionUncurryThis;
42
+ var fails$d = fails$f;
43
+ var classof$7 = classofRaw$2;
44
+
45
+ var $Object$4 = Object;
46
+ var split$3 = uncurryThis$m(''.split);
47
+
48
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
49
+ var indexedObject = fails$d(function () {
50
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
51
+ // eslint-disable-next-line no-prototype-builtins -- safe
52
+ return !$Object$4('z').propertyIsEnumerable(0);
53
+ }) ? function (it) {
54
+ return classof$7(it) === 'String' ? split$3(it, '') : $Object$4(it);
55
+ } : $Object$4;
56
+
57
+ // we can't use just `it == null` since of `document.all` special case
58
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
59
+ var isNullOrUndefined$3 = function (it) {
60
+ return it === null || it === undefined;
61
+ };
62
+
63
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
64
+
65
+ var $TypeError$9 = TypeError;
66
+
67
+ // `RequireObjectCoercible` abstract operation
68
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
69
+ var requireObjectCoercible$4 = function (it) {
70
+ if (isNullOrUndefined$2(it)) throw new $TypeError$9("Can't call method on " + it);
71
+ return it;
72
+ };
73
+
74
+ // toObject with fallback for non-array-like ES3 strings
75
+ var IndexedObject$1 = indexedObject;
76
+ var requireObjectCoercible$3 = requireObjectCoercible$4;
77
+
78
+ var toIndexedObject$5 = function (it) {
79
+ return IndexedObject$1(requireObjectCoercible$3(it));
80
+ };
81
+
82
+ var check = function (it) {
83
+ return it && it.Math === Math && it;
84
+ };
85
+
86
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
87
+ var global$e =
88
+ // eslint-disable-next-line es/no-global-this -- safe
89
+ check(typeof globalThis == 'object' && globalThis) ||
90
+ check(typeof window == 'object' && window) ||
91
+ // eslint-disable-next-line no-restricted-globals -- safe
92
+ check(typeof self == 'object' && self) ||
93
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
94
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
95
+ // eslint-disable-next-line no-new-func -- fallback
96
+ (function () { return this; })() || Function('return this')();
97
+
98
+ var sharedStore = {exports: {}};
99
+
100
+ var isPure = false;
101
+
102
+ var global$d = global$e;
103
+
104
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
105
+ var defineProperty$6 = Object.defineProperty;
106
+
107
+ var defineGlobalProperty$3 = function (key, value) {
108
+ try {
109
+ defineProperty$6(global$d, key, { value: value, configurable: true, writable: true });
110
+ } catch (error) {
111
+ global$d[key] = value;
112
+ } return value;
113
+ };
114
+
115
+ var globalThis$1 = global$e;
116
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
117
+
118
+ var SHARED = '__core-js_shared__';
119
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
120
+
121
+ (store$3.versions || (store$3.versions = [])).push({
122
+ version: '3.36.1',
123
+ mode: 'global',
124
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
125
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
126
+ source: 'https://github.com/zloirock/core-js'
127
+ });
128
+
129
+ var sharedStoreExports = sharedStore.exports;
130
+
131
+ var store$2 = sharedStoreExports;
132
+
133
+ var shared$3 = function (key, value) {
134
+ return store$2[key] || (store$2[key] = value || {});
135
+ };
136
+
137
+ var requireObjectCoercible$2 = requireObjectCoercible$4;
138
+
139
+ var $Object$3 = Object;
140
+
141
+ // `ToObject` abstract operation
142
+ // https://tc39.es/ecma262/#sec-toobject
143
+ var toObject$4 = function (argument) {
144
+ return $Object$3(requireObjectCoercible$2(argument));
145
+ };
146
+
147
+ var uncurryThis$l = functionUncurryThis;
148
+ var toObject$3 = toObject$4;
149
+
150
+ var hasOwnProperty = uncurryThis$l({}.hasOwnProperty);
151
+
152
+ // `HasOwnProperty` abstract operation
153
+ // https://tc39.es/ecma262/#sec-hasownproperty
154
+ // eslint-disable-next-line es/no-object-hasown -- safe
155
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
156
+ return hasOwnProperty(toObject$3(it), key);
157
+ };
158
+
159
+ var uncurryThis$k = functionUncurryThis;
160
+
161
+ var id = 0;
162
+ var postfix = Math.random();
163
+ var toString$6 = uncurryThis$k(1.0.toString);
164
+
165
+ var uid$2 = function (key) {
166
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
167
+ };
168
+
169
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
170
+
171
+ var global$c = global$e;
172
+ var userAgent = engineUserAgent;
173
+
174
+ var process = global$c.process;
175
+ var Deno = global$c.Deno;
176
+ var versions = process && process.versions || Deno && Deno.version;
177
+ var v8 = versions && versions.v8;
178
+ var match, version;
179
+
180
+ if (v8) {
181
+ match = v8.split('.');
182
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
183
+ // but their correct versions are not interesting for us
184
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
185
+ }
186
+
187
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
188
+ // so check `userAgent` even if `.v8` exists, but 0
189
+ if (!version && userAgent) {
190
+ match = userAgent.match(/Edge\/(\d+)/);
191
+ if (!match || match[1] >= 74) {
192
+ match = userAgent.match(/Chrome\/(\d+)/);
193
+ if (match) version = +match[1];
194
+ }
195
+ }
196
+
197
+ var engineV8Version = version;
198
+
199
+ /* eslint-disable es/no-symbol -- required for testing */
200
+ var V8_VERSION = engineV8Version;
201
+ var fails$c = fails$f;
202
+ var global$b = global$e;
203
+
204
+ var $String$6 = global$b.String;
205
+
206
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
207
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
208
+ var symbol = Symbol('symbol detection');
209
+ // Chrome 38 Symbol has incorrect toString conversion
210
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
211
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
212
+ // of course, fail.
213
+ return !$String$6(symbol) || !(Object(symbol) instanceof Symbol) ||
214
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
215
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
216
+ });
217
+
218
+ /* eslint-disable es/no-symbol -- required for testing */
219
+ var NATIVE_SYMBOL$2 = symbolConstructorDetection;
220
+
221
+ var useSymbolAsUid = NATIVE_SYMBOL$2
222
+ && !Symbol.sham
223
+ && typeof Symbol.iterator == 'symbol';
224
+
225
+ var global$a = global$e;
226
+ var shared$2 = shared$3;
227
+ var hasOwn$b = hasOwnProperty_1;
228
+ var uid$1 = uid$2;
229
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
230
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
231
+
232
+ var Symbol$1 = global$a.Symbol;
233
+ var WellKnownSymbolsStore = shared$2('wks');
234
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
235
+
236
+ var wellKnownSymbol$c = function (name) {
237
+ if (!hasOwn$b(WellKnownSymbolsStore, name)) {
238
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$b(Symbol$1, name)
239
+ ? Symbol$1[name]
240
+ : createWellKnownSymbol('Symbol.' + name);
241
+ } return WellKnownSymbolsStore[name];
242
+ };
243
+
244
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
245
+ var documentAll = typeof document == 'object' && document.all;
246
+
247
+ // `IsCallable` abstract operation
248
+ // https://tc39.es/ecma262/#sec-iscallable
249
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
250
+ var isCallable$i = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
251
+ return typeof argument == 'function' || argument === documentAll;
252
+ } : function (argument) {
253
+ return typeof argument == 'function';
254
+ };
255
+
256
+ var isCallable$h = isCallable$i;
257
+
258
+ var isObject$9 = function (it) {
259
+ return typeof it == 'object' ? it !== null : isCallable$h(it);
260
+ };
261
+
262
+ var isObject$8 = isObject$9;
263
+
264
+ var $String$5 = String;
265
+ var $TypeError$8 = TypeError;
266
+
267
+ // `Assert: Type(argument) is Object`
268
+ var anObject$a = function (argument) {
269
+ if (isObject$8(argument)) return argument;
270
+ throw new $TypeError$8($String$5(argument) + ' is not an object');
271
+ };
272
+
273
+ var objectDefineProperties = {};
274
+
275
+ var fails$b = fails$f;
276
+
277
+ // Detect IE8's incomplete defineProperty implementation
278
+ var descriptors = !fails$b(function () {
279
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
280
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
281
+ });
282
+
283
+ var DESCRIPTORS$f = descriptors;
284
+ var fails$a = fails$f;
285
+
286
+ // V8 ~ Chrome 36-
287
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
288
+ var v8PrototypeDefineBug = DESCRIPTORS$f && fails$a(function () {
289
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
290
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
291
+ value: 42,
292
+ writable: false
293
+ }).prototype !== 42;
294
+ });
295
+
296
+ var objectDefineProperty = {};
297
+
298
+ var global$9 = global$e;
299
+ var isObject$7 = isObject$9;
300
+
301
+ var document$1 = global$9.document;
302
+ // typeof document.createElement is 'object' in old IE
303
+ var EXISTS$1 = isObject$7(document$1) && isObject$7(document$1.createElement);
304
+
305
+ var documentCreateElement$2 = function (it) {
306
+ return EXISTS$1 ? document$1.createElement(it) : {};
307
+ };
308
+
309
+ var DESCRIPTORS$e = descriptors;
310
+ var fails$9 = fails$f;
311
+ var createElement = documentCreateElement$2;
312
+
313
+ // Thanks to IE8 for its funny defineProperty
314
+ var ie8DomDefine = !DESCRIPTORS$e && !fails$9(function () {
315
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
316
+ return Object.defineProperty(createElement('div'), 'a', {
317
+ get: function () { return 7; }
318
+ }).a !== 7;
319
+ });
320
+
321
+ var NATIVE_BIND$2 = functionBindNative;
322
+
323
+ var call$d = Function.prototype.call;
324
+
325
+ var functionCall = NATIVE_BIND$2 ? call$d.bind(call$d) : function () {
326
+ return call$d.apply(call$d, arguments);
327
+ };
328
+
329
+ var global$8 = global$e;
330
+ var isCallable$g = isCallable$i;
331
+
332
+ var aFunction = function (argument) {
333
+ return isCallable$g(argument) ? argument : undefined;
334
+ };
335
+
336
+ var getBuiltIn$5 = function (namespace, method) {
337
+ return arguments.length < 2 ? aFunction(global$8[namespace]) : global$8[namespace] && global$8[namespace][method];
338
+ };
339
+
340
+ var uncurryThis$j = functionUncurryThis;
341
+
342
+ var objectIsPrototypeOf = uncurryThis$j({}.isPrototypeOf);
343
+
344
+ var getBuiltIn$4 = getBuiltIn$5;
345
+ var isCallable$f = isCallable$i;
346
+ var isPrototypeOf$2 = objectIsPrototypeOf;
347
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
348
+
349
+ var $Object$2 = Object;
350
+
351
+ var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) {
352
+ return typeof it == 'symbol';
353
+ } : function (it) {
354
+ var $Symbol = getBuiltIn$4('Symbol');
355
+ return isCallable$f($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
356
+ };
357
+
358
+ var $String$4 = String;
359
+
360
+ var tryToString$2 = function (argument) {
361
+ try {
362
+ return $String$4(argument);
363
+ } catch (error) {
364
+ return 'Object';
365
+ }
366
+ };
367
+
368
+ var isCallable$e = isCallable$i;
369
+ var tryToString$1 = tryToString$2;
370
+
371
+ var $TypeError$7 = TypeError;
372
+
373
+ // `Assert: IsCallable(argument) is true`
374
+ var aCallable$4 = function (argument) {
375
+ if (isCallable$e(argument)) return argument;
376
+ throw new $TypeError$7(tryToString$1(argument) + ' is not a function');
377
+ };
378
+
379
+ var aCallable$3 = aCallable$4;
380
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
381
+
382
+ // `GetMethod` abstract operation
383
+ // https://tc39.es/ecma262/#sec-getmethod
384
+ var getMethod$3 = function (V, P) {
385
+ var func = V[P];
386
+ return isNullOrUndefined$1(func) ? undefined : aCallable$3(func);
387
+ };
388
+
389
+ var call$c = functionCall;
390
+ var isCallable$d = isCallable$i;
391
+ var isObject$6 = isObject$9;
392
+
393
+ var $TypeError$6 = TypeError;
394
+
395
+ // `OrdinaryToPrimitive` abstract operation
396
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
397
+ var ordinaryToPrimitive$1 = function (input, pref) {
398
+ var fn, val;
399
+ if (pref === 'string' && isCallable$d(fn = input.toString) && !isObject$6(val = call$c(fn, input))) return val;
400
+ if (isCallable$d(fn = input.valueOf) && !isObject$6(val = call$c(fn, input))) return val;
401
+ if (pref !== 'string' && isCallable$d(fn = input.toString) && !isObject$6(val = call$c(fn, input))) return val;
402
+ throw new $TypeError$6("Can't convert object to primitive value");
403
+ };
404
+
405
+ var call$b = functionCall;
406
+ var isObject$5 = isObject$9;
407
+ var isSymbol$2 = isSymbol$3;
408
+ var getMethod$2 = getMethod$3;
409
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
410
+ var wellKnownSymbol$b = wellKnownSymbol$c;
411
+
412
+ var $TypeError$5 = TypeError;
413
+ var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
414
+
415
+ // `ToPrimitive` abstract operation
416
+ // https://tc39.es/ecma262/#sec-toprimitive
417
+ var toPrimitive$1 = function (input, pref) {
418
+ if (!isObject$5(input) || isSymbol$2(input)) return input;
419
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
420
+ var result;
421
+ if (exoticToPrim) {
422
+ if (pref === undefined) pref = 'default';
423
+ result = call$b(exoticToPrim, input, pref);
424
+ if (!isObject$5(result) || isSymbol$2(result)) return result;
425
+ throw new $TypeError$5("Can't convert object to primitive value");
426
+ }
427
+ if (pref === undefined) pref = 'number';
428
+ return ordinaryToPrimitive(input, pref);
429
+ };
430
+
431
+ var toPrimitive = toPrimitive$1;
432
+ var isSymbol$1 = isSymbol$3;
433
+
434
+ // `ToPropertyKey` abstract operation
435
+ // https://tc39.es/ecma262/#sec-topropertykey
436
+ var toPropertyKey$2 = function (argument) {
437
+ var key = toPrimitive(argument, 'string');
438
+ return isSymbol$1(key) ? key : key + '';
439
+ };
440
+
441
+ var DESCRIPTORS$d = descriptors;
442
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
443
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
444
+ var anObject$9 = anObject$a;
445
+ var toPropertyKey$1 = toPropertyKey$2;
446
+
447
+ var $TypeError$4 = TypeError;
448
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
449
+ var $defineProperty = Object.defineProperty;
450
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
451
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
452
+ var ENUMERABLE = 'enumerable';
453
+ var CONFIGURABLE$1 = 'configurable';
454
+ var WRITABLE = 'writable';
455
+
456
+ // `Object.defineProperty` method
457
+ // https://tc39.es/ecma262/#sec-object.defineproperty
458
+ objectDefineProperty.f = DESCRIPTORS$d ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
459
+ anObject$9(O);
460
+ P = toPropertyKey$1(P);
461
+ anObject$9(Attributes);
462
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
463
+ var current = $getOwnPropertyDescriptor$1(O, P);
464
+ if (current && current[WRITABLE]) {
465
+ O[P] = Attributes.value;
466
+ Attributes = {
467
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
468
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
469
+ writable: false
470
+ };
471
+ }
472
+ } return $defineProperty(O, P, Attributes);
473
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
474
+ anObject$9(O);
475
+ P = toPropertyKey$1(P);
476
+ anObject$9(Attributes);
477
+ if (IE8_DOM_DEFINE$1) try {
478
+ return $defineProperty(O, P, Attributes);
479
+ } catch (error) { /* empty */ }
480
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$4('Accessors not supported');
481
+ if ('value' in Attributes) O[P] = Attributes.value;
482
+ return O;
483
+ };
484
+
485
+ var ceil = Math.ceil;
486
+ var floor$3 = Math.floor;
487
+
488
+ // `Math.trunc` method
489
+ // https://tc39.es/ecma262/#sec-math.trunc
490
+ // eslint-disable-next-line es/no-math-trunc -- safe
491
+ var mathTrunc = Math.trunc || function trunc(x) {
492
+ var n = +x;
493
+ return (n > 0 ? floor$3 : ceil)(n);
494
+ };
495
+
496
+ var trunc = mathTrunc;
497
+
498
+ // `ToIntegerOrInfinity` abstract operation
499
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
500
+ var toIntegerOrInfinity$3 = function (argument) {
501
+ var number = +argument;
502
+ // eslint-disable-next-line no-self-compare -- NaN check
503
+ return number !== number || number === 0 ? 0 : trunc(number);
504
+ };
505
+
506
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
507
+
508
+ var max = Math.max;
509
+ var min$1 = Math.min;
510
+
511
+ // Helper for a popular repeating case of the spec:
512
+ // Let integer be ? ToInteger(index).
513
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
514
+ var toAbsoluteIndex$1 = function (index, length) {
515
+ var integer = toIntegerOrInfinity$2(index);
516
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
517
+ };
518
+
519
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
520
+
521
+ var min = Math.min;
522
+
523
+ // `ToLength` abstract operation
524
+ // https://tc39.es/ecma262/#sec-tolength
525
+ var toLength$1 = function (argument) {
526
+ var len = toIntegerOrInfinity$1(argument);
527
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
528
+ };
529
+
530
+ var toLength = toLength$1;
531
+
532
+ // `LengthOfArrayLike` abstract operation
533
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
534
+ var lengthOfArrayLike$2 = function (obj) {
535
+ return toLength(obj.length);
536
+ };
537
+
538
+ var toIndexedObject$4 = toIndexedObject$5;
539
+ var toAbsoluteIndex = toAbsoluteIndex$1;
540
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
541
+
542
+ // `Array.prototype.{ indexOf, includes }` methods implementation
543
+ var createMethod$1 = function (IS_INCLUDES) {
544
+ return function ($this, el, fromIndex) {
545
+ var O = toIndexedObject$4($this);
546
+ var length = lengthOfArrayLike$1(O);
547
+ if (length === 0) return !IS_INCLUDES && -1;
548
+ var index = toAbsoluteIndex(fromIndex, length);
549
+ var value;
550
+ // Array#includes uses SameValueZero equality algorithm
551
+ // eslint-disable-next-line no-self-compare -- NaN check
552
+ if (IS_INCLUDES && el !== el) while (length > index) {
553
+ value = O[index++];
554
+ // eslint-disable-next-line no-self-compare -- NaN check
555
+ if (value !== value) return true;
556
+ // Array#indexOf ignores holes, Array#includes - not
557
+ } else for (;length > index; index++) {
558
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
559
+ } return !IS_INCLUDES && -1;
560
+ };
561
+ };
562
+
563
+ var arrayIncludes = {
564
+ // `Array.prototype.includes` method
565
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
566
+ includes: createMethod$1(true),
567
+ // `Array.prototype.indexOf` method
568
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
569
+ indexOf: createMethod$1(false)
570
+ };
571
+
572
+ var hiddenKeys$4 = {};
573
+
574
+ var uncurryThis$i = functionUncurryThis;
575
+ var hasOwn$a = hasOwnProperty_1;
576
+ var toIndexedObject$3 = toIndexedObject$5;
577
+ var indexOf = arrayIncludes.indexOf;
578
+ var hiddenKeys$3 = hiddenKeys$4;
579
+
580
+ var push$5 = uncurryThis$i([].push);
581
+
582
+ var objectKeysInternal = function (object, names) {
583
+ var O = toIndexedObject$3(object);
584
+ var i = 0;
585
+ var result = [];
586
+ var key;
587
+ for (key in O) !hasOwn$a(hiddenKeys$3, key) && hasOwn$a(O, key) && push$5(result, key);
588
+ // Don't enum bug & hidden keys
589
+ while (names.length > i) if (hasOwn$a(O, key = names[i++])) {
590
+ ~indexOf(result, key) || push$5(result, key);
591
+ }
592
+ return result;
593
+ };
594
+
595
+ // IE8- don't enum bug keys
596
+ var enumBugKeys$3 = [
597
+ 'constructor',
598
+ 'hasOwnProperty',
599
+ 'isPrototypeOf',
600
+ 'propertyIsEnumerable',
601
+ 'toLocaleString',
602
+ 'toString',
603
+ 'valueOf'
604
+ ];
605
+
606
+ var internalObjectKeys$1 = objectKeysInternal;
607
+ var enumBugKeys$2 = enumBugKeys$3;
608
+
609
+ // `Object.keys` method
610
+ // https://tc39.es/ecma262/#sec-object.keys
611
+ // eslint-disable-next-line es/no-object-keys -- safe
612
+ var objectKeys$2 = Object.keys || function keys(O) {
613
+ return internalObjectKeys$1(O, enumBugKeys$2);
614
+ };
615
+
616
+ var DESCRIPTORS$c = descriptors;
617
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
618
+ var definePropertyModule$4 = objectDefineProperty;
619
+ var anObject$8 = anObject$a;
620
+ var toIndexedObject$2 = toIndexedObject$5;
621
+ var objectKeys$1 = objectKeys$2;
622
+
623
+ // `Object.defineProperties` method
624
+ // https://tc39.es/ecma262/#sec-object.defineproperties
625
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
626
+ objectDefineProperties.f = DESCRIPTORS$c && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
627
+ anObject$8(O);
628
+ var props = toIndexedObject$2(Properties);
629
+ var keys = objectKeys$1(Properties);
630
+ var length = keys.length;
631
+ var index = 0;
632
+ var key;
633
+ while (length > index) definePropertyModule$4.f(O, key = keys[index++], props[key]);
634
+ return O;
635
+ };
636
+
637
+ var getBuiltIn$3 = getBuiltIn$5;
638
+
639
+ var html$1 = getBuiltIn$3('document', 'documentElement');
640
+
641
+ var shared$1 = shared$3;
642
+ var uid = uid$2;
643
+
644
+ var keys = shared$1('keys');
645
+
646
+ var sharedKey$3 = function (key) {
647
+ return keys[key] || (keys[key] = uid(key));
648
+ };
649
+
650
+ /* global ActiveXObject -- old IE, WSH */
651
+ var anObject$7 = anObject$a;
652
+ var definePropertiesModule = objectDefineProperties;
653
+ var enumBugKeys$1 = enumBugKeys$3;
654
+ var hiddenKeys$2 = hiddenKeys$4;
655
+ var html = html$1;
656
+ var documentCreateElement$1 = documentCreateElement$2;
657
+ var sharedKey$2 = sharedKey$3;
658
+
659
+ var GT = '>';
660
+ var LT = '<';
661
+ var PROTOTYPE = 'prototype';
662
+ var SCRIPT = 'script';
663
+ var IE_PROTO$1 = sharedKey$2('IE_PROTO');
664
+
665
+ var EmptyConstructor = function () { /* empty */ };
666
+
667
+ var scriptTag = function (content) {
668
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
669
+ };
670
+
671
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
672
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
673
+ activeXDocument.write(scriptTag(''));
674
+ activeXDocument.close();
675
+ var temp = activeXDocument.parentWindow.Object;
676
+ activeXDocument = null; // avoid memory leak
677
+ return temp;
678
+ };
679
+
680
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
681
+ var NullProtoObjectViaIFrame = function () {
682
+ // Thrash, waste and sodomy: IE GC bug
683
+ var iframe = documentCreateElement$1('iframe');
684
+ var JS = 'java' + SCRIPT + ':';
685
+ var iframeDocument;
686
+ iframe.style.display = 'none';
687
+ html.appendChild(iframe);
688
+ // https://github.com/zloirock/core-js/issues/475
689
+ iframe.src = String(JS);
690
+ iframeDocument = iframe.contentWindow.document;
691
+ iframeDocument.open();
692
+ iframeDocument.write(scriptTag('document.F=Object'));
693
+ iframeDocument.close();
694
+ return iframeDocument.F;
695
+ };
696
+
697
+ // Check for document.domain and active x support
698
+ // No need to use active x approach when document.domain is not set
699
+ // see https://github.com/es-shims/es5-shim/issues/150
700
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
701
+ // avoid IE GC bug
702
+ var activeXDocument;
703
+ var NullProtoObject = function () {
704
+ try {
705
+ activeXDocument = new ActiveXObject('htmlfile');
706
+ } catch (error) { /* ignore */ }
707
+ NullProtoObject = typeof document != 'undefined'
708
+ ? document.domain && activeXDocument
709
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
710
+ : NullProtoObjectViaIFrame()
711
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
712
+ var length = enumBugKeys$1.length;
713
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
714
+ return NullProtoObject();
715
+ };
716
+
717
+ hiddenKeys$2[IE_PROTO$1] = true;
718
+
719
+ // `Object.create` method
720
+ // https://tc39.es/ecma262/#sec-object.create
721
+ // eslint-disable-next-line es/no-object-create -- safe
722
+ var objectCreate = Object.create || function create(O, Properties) {
723
+ var result;
724
+ if (O !== null) {
725
+ EmptyConstructor[PROTOTYPE] = anObject$7(O);
726
+ result = new EmptyConstructor();
727
+ EmptyConstructor[PROTOTYPE] = null;
728
+ // add "__proto__" for Object.getPrototypeOf polyfill
729
+ result[IE_PROTO$1] = O;
730
+ } else result = NullProtoObject();
731
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
732
+ };
733
+
734
+ var wellKnownSymbol$a = wellKnownSymbol$c;
735
+ var create$2 = objectCreate;
736
+ var defineProperty$5 = objectDefineProperty.f;
737
+
738
+ var UNSCOPABLES = wellKnownSymbol$a('unscopables');
739
+ var ArrayPrototype$1 = Array.prototype;
740
+
741
+ // Array.prototype[@@unscopables]
742
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
743
+ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
744
+ defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
745
+ configurable: true,
746
+ value: create$2(null)
747
+ });
748
+ }
749
+
750
+ // add a key to Array.prototype[@@unscopables]
751
+ var addToUnscopables$1 = function (key) {
752
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
753
+ };
754
+
755
+ var iterators = {};
756
+
757
+ var global$7 = global$e;
758
+ var isCallable$c = isCallable$i;
759
+
760
+ var WeakMap$1 = global$7.WeakMap;
761
+
762
+ var weakMapBasicDetection = isCallable$c(WeakMap$1) && /native code/.test(String(WeakMap$1));
763
+
764
+ var createPropertyDescriptor$5 = function (bitmap, value) {
765
+ return {
766
+ enumerable: !(bitmap & 1),
767
+ configurable: !(bitmap & 2),
768
+ writable: !(bitmap & 4),
769
+ value: value
770
+ };
771
+ };
772
+
773
+ var DESCRIPTORS$b = descriptors;
774
+ var definePropertyModule$3 = objectDefineProperty;
775
+ var createPropertyDescriptor$4 = createPropertyDescriptor$5;
776
+
777
+ var createNonEnumerableProperty$4 = DESCRIPTORS$b ? function (object, key, value) {
778
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor$4(1, value));
779
+ } : function (object, key, value) {
780
+ object[key] = value;
781
+ return object;
782
+ };
783
+
784
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
785
+ var global$6 = global$e;
786
+ var isObject$4 = isObject$9;
787
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
788
+ var hasOwn$9 = hasOwnProperty_1;
789
+ var shared = sharedStoreExports;
790
+ var sharedKey$1 = sharedKey$3;
791
+ var hiddenKeys$1 = hiddenKeys$4;
792
+
793
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
794
+ var TypeError$3 = global$6.TypeError;
795
+ var WeakMap = global$6.WeakMap;
796
+ var set, get, has;
797
+
798
+ var enforce = function (it) {
799
+ return has(it) ? get(it) : set(it, {});
800
+ };
801
+
802
+ var getterFor = function (TYPE) {
803
+ return function (it) {
804
+ var state;
805
+ if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
806
+ throw new TypeError$3('Incompatible receiver, ' + TYPE + ' required');
807
+ } return state;
808
+ };
809
+ };
810
+
811
+ if (NATIVE_WEAK_MAP || shared.state) {
812
+ var store$1 = shared.state || (shared.state = new WeakMap());
813
+ /* eslint-disable no-self-assign -- prototype methods protection */
814
+ store$1.get = store$1.get;
815
+ store$1.has = store$1.has;
816
+ store$1.set = store$1.set;
817
+ /* eslint-enable no-self-assign -- prototype methods protection */
818
+ set = function (it, metadata) {
819
+ if (store$1.has(it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
820
+ metadata.facade = it;
821
+ store$1.set(it, metadata);
822
+ return metadata;
823
+ };
824
+ get = function (it) {
825
+ return store$1.get(it) || {};
826
+ };
827
+ has = function (it) {
828
+ return store$1.has(it);
829
+ };
830
+ } else {
831
+ var STATE = sharedKey$1('state');
832
+ hiddenKeys$1[STATE] = true;
833
+ set = function (it, metadata) {
834
+ if (hasOwn$9(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
835
+ metadata.facade = it;
836
+ createNonEnumerableProperty$3(it, STATE, metadata);
837
+ return metadata;
838
+ };
839
+ get = function (it) {
840
+ return hasOwn$9(it, STATE) ? it[STATE] : {};
841
+ };
842
+ has = function (it) {
843
+ return hasOwn$9(it, STATE);
844
+ };
845
+ }
846
+
847
+ var internalState = {
848
+ set: set,
849
+ get: get,
850
+ has: has,
851
+ enforce: enforce,
852
+ getterFor: getterFor
853
+ };
854
+
855
+ var objectGetOwnPropertyDescriptor = {};
856
+
857
+ var objectPropertyIsEnumerable = {};
858
+
859
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
860
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
861
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
862
+
863
+ // Nashorn ~ JDK8 bug
864
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
865
+
866
+ // `Object.prototype.propertyIsEnumerable` method implementation
867
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
868
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
869
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
870
+ return !!descriptor && descriptor.enumerable;
871
+ } : $propertyIsEnumerable;
872
+
873
+ var DESCRIPTORS$a = descriptors;
874
+ var call$a = functionCall;
875
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
876
+ var createPropertyDescriptor$3 = createPropertyDescriptor$5;
877
+ var toIndexedObject$1 = toIndexedObject$5;
878
+ var toPropertyKey = toPropertyKey$2;
879
+ var hasOwn$8 = hasOwnProperty_1;
880
+ var IE8_DOM_DEFINE = ie8DomDefine;
881
+
882
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
883
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
884
+
885
+ // `Object.getOwnPropertyDescriptor` method
886
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
887
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
888
+ O = toIndexedObject$1(O);
889
+ P = toPropertyKey(P);
890
+ if (IE8_DOM_DEFINE) try {
891
+ return $getOwnPropertyDescriptor(O, P);
892
+ } catch (error) { /* empty */ }
893
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$3(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
894
+ };
895
+
896
+ var makeBuiltIn$3 = {exports: {}};
897
+
898
+ var DESCRIPTORS$9 = descriptors;
899
+ var hasOwn$7 = hasOwnProperty_1;
900
+
901
+ var FunctionPrototype$1 = Function.prototype;
902
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
903
+ var getDescriptor = DESCRIPTORS$9 && Object.getOwnPropertyDescriptor;
904
+
905
+ var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
906
+ // additional protection from minified / mangled / dropped function names
907
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
908
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$9 || (DESCRIPTORS$9 && getDescriptor(FunctionPrototype$1, 'name').configurable));
909
+
910
+ var functionName = {
911
+ EXISTS: EXISTS,
912
+ PROPER: PROPER,
913
+ CONFIGURABLE: CONFIGURABLE
914
+ };
915
+
916
+ var uncurryThis$h = functionUncurryThis;
917
+ var isCallable$b = isCallable$i;
918
+ var store = sharedStoreExports;
919
+
920
+ var functionToString = uncurryThis$h(Function.toString);
921
+
922
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
923
+ if (!isCallable$b(store.inspectSource)) {
924
+ store.inspectSource = function (it) {
925
+ return functionToString(it);
926
+ };
927
+ }
928
+
929
+ var inspectSource$2 = store.inspectSource;
930
+
931
+ var uncurryThis$g = functionUncurryThis;
932
+ var fails$8 = fails$f;
933
+ var isCallable$a = isCallable$i;
934
+ var hasOwn$6 = hasOwnProperty_1;
935
+ var DESCRIPTORS$8 = descriptors;
936
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
937
+ var inspectSource$1 = inspectSource$2;
938
+ var InternalStateModule$4 = internalState;
939
+
940
+ var enforceInternalState = InternalStateModule$4.enforce;
941
+ var getInternalState$2 = InternalStateModule$4.get;
942
+ var $String$3 = String;
943
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
944
+ var defineProperty$4 = Object.defineProperty;
945
+ var stringSlice$3 = uncurryThis$g(''.slice);
946
+ var replace$4 = uncurryThis$g(''.replace);
947
+ var join$3 = uncurryThis$g([].join);
948
+
949
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$8(function () {
950
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
951
+ });
952
+
953
+ var TEMPLATE = String(String).split('String');
954
+
955
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
956
+ if (stringSlice$3($String$3(name), 0, 7) === 'Symbol(') {
957
+ name = '[' + replace$4($String$3(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
958
+ }
959
+ if (options && options.getter) name = 'get ' + name;
960
+ if (options && options.setter) name = 'set ' + name;
961
+ if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
962
+ if (DESCRIPTORS$8) defineProperty$4(value, 'name', { value: name, configurable: true });
963
+ else value.name = name;
964
+ }
965
+ if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
966
+ defineProperty$4(value, 'length', { value: options.arity });
967
+ }
968
+ try {
969
+ if (options && hasOwn$6(options, 'constructor') && options.constructor) {
970
+ if (DESCRIPTORS$8) defineProperty$4(value, 'prototype', { writable: false });
971
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
972
+ } else if (value.prototype) value.prototype = undefined;
973
+ } catch (error) { /* empty */ }
974
+ var state = enforceInternalState(value);
975
+ if (!hasOwn$6(state, 'source')) {
976
+ state.source = join$3(TEMPLATE, typeof name == 'string' ? name : '');
977
+ } return value;
978
+ };
979
+
980
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
981
+ // eslint-disable-next-line no-extend-native -- required
982
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
983
+ return isCallable$a(this) && getInternalState$2(this).source || inspectSource$1(this);
984
+ }, 'toString');
985
+
986
+ var makeBuiltInExports = makeBuiltIn$3.exports;
987
+
988
+ var isCallable$9 = isCallable$i;
989
+ var definePropertyModule$2 = objectDefineProperty;
990
+ var makeBuiltIn$1 = makeBuiltInExports;
991
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
992
+
993
+ var defineBuiltIn$9 = function (O, key, value, options) {
994
+ if (!options) options = {};
995
+ var simple = options.enumerable;
996
+ var name = options.name !== undefined ? options.name : key;
997
+ if (isCallable$9(value)) makeBuiltIn$1(value, name, options);
998
+ if (options.global) {
999
+ if (simple) O[key] = value;
1000
+ else defineGlobalProperty$1(key, value);
1001
+ } else {
1002
+ try {
1003
+ if (!options.unsafe) delete O[key];
1004
+ else if (O[key]) simple = true;
1005
+ } catch (error) { /* empty */ }
1006
+ if (simple) O[key] = value;
1007
+ else definePropertyModule$2.f(O, key, {
1008
+ value: value,
1009
+ enumerable: false,
1010
+ configurable: !options.nonConfigurable,
1011
+ writable: !options.nonWritable
1012
+ });
1013
+ } return O;
1014
+ };
1015
+
1016
+ var objectGetOwnPropertyNames = {};
1017
+
1018
+ var internalObjectKeys = objectKeysInternal;
1019
+ var enumBugKeys = enumBugKeys$3;
1020
+
1021
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1022
+
1023
+ // `Object.getOwnPropertyNames` method
1024
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1025
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1026
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1027
+ return internalObjectKeys(O, hiddenKeys);
1028
+ };
1029
+
1030
+ var objectGetOwnPropertySymbols = {};
1031
+
1032
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1033
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1034
+
1035
+ var getBuiltIn$2 = getBuiltIn$5;
1036
+ var uncurryThis$f = functionUncurryThis;
1037
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1038
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1039
+ var anObject$6 = anObject$a;
1040
+
1041
+ var concat$1 = uncurryThis$f([].concat);
1042
+
1043
+ // all object keys, includes non-enumerable and symbols
1044
+ var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1045
+ var keys = getOwnPropertyNamesModule.f(anObject$6(it));
1046
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1047
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1048
+ };
1049
+
1050
+ var hasOwn$5 = hasOwnProperty_1;
1051
+ var ownKeys = ownKeys$1;
1052
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1053
+ var definePropertyModule$1 = objectDefineProperty;
1054
+
1055
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
1056
+ var keys = ownKeys(source);
1057
+ var defineProperty = definePropertyModule$1.f;
1058
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1059
+ for (var i = 0; i < keys.length; i++) {
1060
+ var key = keys[i];
1061
+ if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
1062
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1063
+ }
1064
+ }
1065
+ };
1066
+
1067
+ var fails$7 = fails$f;
1068
+ var isCallable$8 = isCallable$i;
1069
+
1070
+ var replacement = /#|\.prototype\./;
1071
+
1072
+ var isForced$1 = function (feature, detection) {
1073
+ var value = data[normalize(feature)];
1074
+ return value === POLYFILL ? true
1075
+ : value === NATIVE ? false
1076
+ : isCallable$8(detection) ? fails$7(detection)
1077
+ : !!detection;
1078
+ };
1079
+
1080
+ var normalize = isForced$1.normalize = function (string) {
1081
+ return String(string).replace(replacement, '.').toLowerCase();
1082
+ };
1083
+
1084
+ var data = isForced$1.data = {};
1085
+ var NATIVE = isForced$1.NATIVE = 'N';
1086
+ var POLYFILL = isForced$1.POLYFILL = 'P';
1087
+
1088
+ var isForced_1 = isForced$1;
1089
+
1090
+ var global$5 = global$e;
1091
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1092
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1093
+ var defineBuiltIn$8 = defineBuiltIn$9;
1094
+ var defineGlobalProperty = defineGlobalProperty$3;
1095
+ var copyConstructorProperties = copyConstructorProperties$1;
1096
+ var isForced = isForced_1;
1097
+
1098
+ /*
1099
+ options.target - name of the target object
1100
+ options.global - target is the global object
1101
+ options.stat - export as static methods of target
1102
+ options.proto - export as prototype methods of target
1103
+ options.real - real prototype method for the `pure` version
1104
+ options.forced - export even if the native feature is available
1105
+ options.bind - bind methods to the target, required for the `pure` version
1106
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1107
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1108
+ options.sham - add a flag to not completely full polyfills
1109
+ options.enumerable - export as enumerable property
1110
+ options.dontCallGetSet - prevent calling a getter on target
1111
+ options.name - the .name of the function if it does not match the key
1112
+ */
1113
+ var _export = function (options, source) {
1114
+ var TARGET = options.target;
1115
+ var GLOBAL = options.global;
1116
+ var STATIC = options.stat;
1117
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1118
+ if (GLOBAL) {
1119
+ target = global$5;
1120
+ } else if (STATIC) {
1121
+ target = global$5[TARGET] || defineGlobalProperty(TARGET, {});
1122
+ } else {
1123
+ target = global$5[TARGET] && global$5[TARGET].prototype;
1124
+ }
1125
+ if (target) for (key in source) {
1126
+ sourceProperty = source[key];
1127
+ if (options.dontCallGetSet) {
1128
+ descriptor = getOwnPropertyDescriptor$1(target, key);
1129
+ targetProperty = descriptor && descriptor.value;
1130
+ } else targetProperty = target[key];
1131
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1132
+ // contained in target
1133
+ if (!FORCED && targetProperty !== undefined) {
1134
+ if (typeof sourceProperty == typeof targetProperty) continue;
1135
+ copyConstructorProperties(sourceProperty, targetProperty);
1136
+ }
1137
+ // add a flag to not completely full polyfills
1138
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1139
+ createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1140
+ }
1141
+ defineBuiltIn$8(target, key, sourceProperty, options);
1142
+ }
1143
+ };
1144
+
1145
+ var fails$6 = fails$f;
1146
+
1147
+ var correctPrototypeGetter = !fails$6(function () {
1148
+ function F() { /* empty */ }
1149
+ F.prototype.constructor = null;
1150
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1151
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1152
+ });
1153
+
1154
+ var hasOwn$4 = hasOwnProperty_1;
1155
+ var isCallable$7 = isCallable$i;
1156
+ var toObject$2 = toObject$4;
1157
+ var sharedKey = sharedKey$3;
1158
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1159
+
1160
+ var IE_PROTO = sharedKey('IE_PROTO');
1161
+ var $Object$1 = Object;
1162
+ var ObjectPrototype = $Object$1.prototype;
1163
+
1164
+ // `Object.getPrototypeOf` method
1165
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1166
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1167
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1168
+ var object = toObject$2(O);
1169
+ if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
1170
+ var constructor = object.constructor;
1171
+ if (isCallable$7(constructor) && object instanceof constructor) {
1172
+ return constructor.prototype;
1173
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1174
+ };
1175
+
1176
+ var fails$5 = fails$f;
1177
+ var isCallable$6 = isCallable$i;
1178
+ var isObject$3 = isObject$9;
1179
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1180
+ var defineBuiltIn$7 = defineBuiltIn$9;
1181
+ var wellKnownSymbol$9 = wellKnownSymbol$c;
1182
+
1183
+ var ITERATOR$6 = wellKnownSymbol$9('iterator');
1184
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1185
+
1186
+ // `%IteratorPrototype%` object
1187
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1188
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1189
+
1190
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1191
+ if ([].keys) {
1192
+ arrayIterator = [].keys();
1193
+ // Safari 8 has buggy iterators w/o `next`
1194
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1195
+ else {
1196
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1197
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1198
+ }
1199
+ }
1200
+
1201
+ var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$5(function () {
1202
+ var test = {};
1203
+ // FF44- legacy iterators case
1204
+ return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
1205
+ });
1206
+
1207
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1208
+
1209
+ // `%IteratorPrototype%[@@iterator]()` method
1210
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1211
+ if (!isCallable$6(IteratorPrototype$2[ITERATOR$6])) {
1212
+ defineBuiltIn$7(IteratorPrototype$2, ITERATOR$6, function () {
1213
+ return this;
1214
+ });
1215
+ }
1216
+
1217
+ var iteratorsCore = {
1218
+ IteratorPrototype: IteratorPrototype$2,
1219
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1220
+ };
1221
+
1222
+ var defineProperty$3 = objectDefineProperty.f;
1223
+ var hasOwn$3 = hasOwnProperty_1;
1224
+ var wellKnownSymbol$8 = wellKnownSymbol$c;
1225
+
1226
+ var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1227
+
1228
+ var setToStringTag$5 = function (target, TAG, STATIC) {
1229
+ if (target && !STATIC) target = target.prototype;
1230
+ if (target && !hasOwn$3(target, TO_STRING_TAG$2)) {
1231
+ defineProperty$3(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1232
+ }
1233
+ };
1234
+
1235
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1236
+ var create$1 = objectCreate;
1237
+ var createPropertyDescriptor$2 = createPropertyDescriptor$5;
1238
+ var setToStringTag$4 = setToStringTag$5;
1239
+ var Iterators$4 = iterators;
1240
+
1241
+ var returnThis$1 = function () { return this; };
1242
+
1243
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1244
+ var TO_STRING_TAG = NAME + ' Iterator';
1245
+ IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor$2(+!ENUMERABLE_NEXT, next) });
1246
+ setToStringTag$4(IteratorConstructor, TO_STRING_TAG, false);
1247
+ Iterators$4[TO_STRING_TAG] = returnThis$1;
1248
+ return IteratorConstructor;
1249
+ };
1250
+
1251
+ var uncurryThis$e = functionUncurryThis;
1252
+ var aCallable$2 = aCallable$4;
1253
+
1254
+ var functionUncurryThisAccessor = function (object, key, method) {
1255
+ try {
1256
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1257
+ return uncurryThis$e(aCallable$2(Object.getOwnPropertyDescriptor(object, key)[method]));
1258
+ } catch (error) { /* empty */ }
1259
+ };
1260
+
1261
+ var isObject$2 = isObject$9;
1262
+
1263
+ var isPossiblePrototype$1 = function (argument) {
1264
+ return isObject$2(argument) || argument === null;
1265
+ };
1266
+
1267
+ var isPossiblePrototype = isPossiblePrototype$1;
1268
+
1269
+ var $String$2 = String;
1270
+ var $TypeError$3 = TypeError;
1271
+
1272
+ var aPossiblePrototype$1 = function (argument) {
1273
+ if (isPossiblePrototype(argument)) return argument;
1274
+ throw new $TypeError$3("Can't set " + $String$2(argument) + ' as a prototype');
1275
+ };
1276
+
1277
+ /* eslint-disable no-proto -- safe */
1278
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1279
+ var isObject$1 = isObject$9;
1280
+ var requireObjectCoercible$1 = requireObjectCoercible$4;
1281
+ var aPossiblePrototype = aPossiblePrototype$1;
1282
+
1283
+ // `Object.setPrototypeOf` method
1284
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1285
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1286
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1287
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1288
+ var CORRECT_SETTER = false;
1289
+ var test = {};
1290
+ var setter;
1291
+ try {
1292
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1293
+ setter(test, []);
1294
+ CORRECT_SETTER = test instanceof Array;
1295
+ } catch (error) { /* empty */ }
1296
+ return function setPrototypeOf(O, proto) {
1297
+ requireObjectCoercible$1(O);
1298
+ aPossiblePrototype(proto);
1299
+ if (!isObject$1(O)) return O;
1300
+ if (CORRECT_SETTER) setter(O, proto);
1301
+ else O.__proto__ = proto;
1302
+ return O;
1303
+ };
1304
+ }() : undefined);
1305
+
1306
+ var $$5 = _export;
1307
+ var call$9 = functionCall;
1308
+ var FunctionName = functionName;
1309
+ var isCallable$5 = isCallable$i;
1310
+ var createIteratorConstructor$1 = iteratorCreateConstructor;
1311
+ var getPrototypeOf = objectGetPrototypeOf;
1312
+ var setPrototypeOf = objectSetPrototypeOf;
1313
+ var setToStringTag$3 = setToStringTag$5;
1314
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1315
+ var defineBuiltIn$6 = defineBuiltIn$9;
1316
+ var wellKnownSymbol$7 = wellKnownSymbol$c;
1317
+ var Iterators$3 = iterators;
1318
+ var IteratorsCore = iteratorsCore;
1319
+
1320
+ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
1321
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1322
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
1323
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1324
+ var ITERATOR$5 = wellKnownSymbol$7('iterator');
1325
+ var KEYS = 'keys';
1326
+ var VALUES = 'values';
1327
+ var ENTRIES = 'entries';
1328
+
1329
+ var returnThis = function () { return this; };
1330
+
1331
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1332
+ createIteratorConstructor$1(IteratorConstructor, NAME, next);
1333
+
1334
+ var getIterationMethod = function (KIND) {
1335
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1336
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1337
+
1338
+ switch (KIND) {
1339
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1340
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1341
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1342
+ }
1343
+
1344
+ return function () { return new IteratorConstructor(this); };
1345
+ };
1346
+
1347
+ var TO_STRING_TAG = NAME + ' Iterator';
1348
+ var INCORRECT_VALUES_NAME = false;
1349
+ var IterablePrototype = Iterable.prototype;
1350
+ var nativeIterator = IterablePrototype[ITERATOR$5]
1351
+ || IterablePrototype['@@iterator']
1352
+ || DEFAULT && IterablePrototype[DEFAULT];
1353
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1354
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1355
+ var CurrentIteratorPrototype, methods, KEY;
1356
+
1357
+ // fix native
1358
+ if (anyNativeIterator) {
1359
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1360
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1361
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1362
+ if (setPrototypeOf) {
1363
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1364
+ } else if (!isCallable$5(CurrentIteratorPrototype[ITERATOR$5])) {
1365
+ defineBuiltIn$6(CurrentIteratorPrototype, ITERATOR$5, returnThis);
1366
+ }
1367
+ }
1368
+ // Set @@toStringTag to native iterators
1369
+ setToStringTag$3(CurrentIteratorPrototype, TO_STRING_TAG, true);
1370
+ }
1371
+ }
1372
+
1373
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1374
+ if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1375
+ if (CONFIGURABLE_FUNCTION_NAME) {
1376
+ createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1377
+ } else {
1378
+ INCORRECT_VALUES_NAME = true;
1379
+ defaultIterator = function values() { return call$9(nativeIterator, this); };
1380
+ }
1381
+ }
1382
+
1383
+ // export additional methods
1384
+ if (DEFAULT) {
1385
+ methods = {
1386
+ values: getIterationMethod(VALUES),
1387
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1388
+ entries: getIterationMethod(ENTRIES)
1389
+ };
1390
+ if (FORCED) for (KEY in methods) {
1391
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1392
+ defineBuiltIn$6(IterablePrototype, KEY, methods[KEY]);
1393
+ }
1394
+ } else $$5({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1395
+ }
1396
+
1397
+ // define iterator
1398
+ if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
1399
+ defineBuiltIn$6(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
1400
+ }
1401
+ Iterators$3[NAME] = defaultIterator;
1402
+
1403
+ return methods;
1404
+ };
1405
+
1406
+ // `CreateIterResultObject` abstract operation
1407
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1408
+ var createIterResultObject$3 = function (value, done) {
1409
+ return { value: value, done: done };
1410
+ };
1411
+
1412
+ var toIndexedObject = toIndexedObject$5;
1413
+ var addToUnscopables = addToUnscopables$1;
1414
+ var Iterators$2 = iterators;
1415
+ var InternalStateModule$3 = internalState;
1416
+ var defineProperty$2 = objectDefineProperty.f;
1417
+ var defineIterator$1 = iteratorDefine;
1418
+ var createIterResultObject$2 = createIterResultObject$3;
1419
+ var DESCRIPTORS$7 = descriptors;
1420
+
1421
+ var ARRAY_ITERATOR = 'Array Iterator';
1422
+ var setInternalState$3 = InternalStateModule$3.set;
1423
+ var getInternalState$1 = InternalStateModule$3.getterFor(ARRAY_ITERATOR);
1424
+
1425
+ // `Array.prototype.entries` method
1426
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1427
+ // `Array.prototype.keys` method
1428
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1429
+ // `Array.prototype.values` method
1430
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1431
+ // `Array.prototype[@@iterator]` method
1432
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1433
+ // `CreateArrayIterator` internal method
1434
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1435
+ var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
1436
+ setInternalState$3(this, {
1437
+ type: ARRAY_ITERATOR,
1438
+ target: toIndexedObject(iterated), // target
1439
+ index: 0, // next index
1440
+ kind: kind // kind
1441
+ });
1442
+ // `%ArrayIteratorPrototype%.next` method
1443
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1444
+ }, function () {
1445
+ var state = getInternalState$1(this);
1446
+ var target = state.target;
1447
+ var index = state.index++;
1448
+ if (!target || index >= target.length) {
1449
+ state.target = undefined;
1450
+ return createIterResultObject$2(undefined, true);
1451
+ }
1452
+ switch (state.kind) {
1453
+ case 'keys': return createIterResultObject$2(index, false);
1454
+ case 'values': return createIterResultObject$2(target[index], false);
1455
+ } return createIterResultObject$2([index, target[index]], false);
1456
+ }, 'values');
1457
+
1458
+ // argumentsList[@@iterator] is %ArrayProto_values%
1459
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1460
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1461
+ var values = Iterators$2.Arguments = Iterators$2.Array;
1462
+
1463
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1464
+ addToUnscopables('keys');
1465
+ addToUnscopables('values');
1466
+ addToUnscopables('entries');
1467
+
1468
+ // V8 ~ Chrome 45- bug
1469
+ if (DESCRIPTORS$7 && values.name !== 'values') try {
1470
+ defineProperty$2(values, 'name', { value: 'values' });
1471
+ } catch (error) { /* empty */ }
1472
+
1473
+ var DESCRIPTORS$6 = descriptors;
1474
+ var uncurryThis$d = functionUncurryThis;
1475
+ var call$8 = functionCall;
1476
+ var fails$4 = fails$f;
1477
+ var objectKeys = objectKeys$2;
1478
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1479
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1480
+ var toObject$1 = toObject$4;
1481
+ var IndexedObject = indexedObject;
1482
+
1483
+ // eslint-disable-next-line es/no-object-assign -- safe
1484
+ var $assign = Object.assign;
1485
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1486
+ var defineProperty$1 = Object.defineProperty;
1487
+ var concat = uncurryThis$d([].concat);
1488
+
1489
+ // `Object.assign` method
1490
+ // https://tc39.es/ecma262/#sec-object.assign
1491
+ var objectAssign = !$assign || fails$4(function () {
1492
+ // should have correct order of operations (Edge bug)
1493
+ if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
1494
+ enumerable: true,
1495
+ get: function () {
1496
+ defineProperty$1(this, 'b', {
1497
+ value: 3,
1498
+ enumerable: false
1499
+ });
1500
+ }
1501
+ }), { b: 2 })).b !== 1) return true;
1502
+ // should work with symbols and should have deterministic property order (V8 bug)
1503
+ var A = {};
1504
+ var B = {};
1505
+ // eslint-disable-next-line es/no-symbol -- safe
1506
+ var symbol = Symbol('assign detection');
1507
+ var alphabet = 'abcdefghijklmnopqrst';
1508
+ A[symbol] = 7;
1509
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1510
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1511
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1512
+ var T = toObject$1(target);
1513
+ var argumentsLength = arguments.length;
1514
+ var index = 1;
1515
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1516
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1517
+ while (argumentsLength > index) {
1518
+ var S = IndexedObject(arguments[index++]);
1519
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1520
+ var length = keys.length;
1521
+ var j = 0;
1522
+ var key;
1523
+ while (length > j) {
1524
+ key = keys[j++];
1525
+ if (!DESCRIPTORS$6 || call$8(propertyIsEnumerable, S, key)) T[key] = S[key];
1526
+ }
1527
+ } return T;
1528
+ } : $assign;
1529
+
1530
+ var $$4 = _export;
1531
+ var assign$1 = objectAssign;
1532
+
1533
+ // `Object.assign` method
1534
+ // https://tc39.es/ecma262/#sec-object.assign
1535
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1536
+ $$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$1 }, {
1537
+ assign: assign$1
1538
+ });
1539
+
1540
+ // iterable DOM collections
1541
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1542
+ var domIterables = {
1543
+ CSSRuleList: 0,
1544
+ CSSStyleDeclaration: 0,
1545
+ CSSValueList: 0,
1546
+ ClientRectList: 0,
1547
+ DOMRectList: 0,
1548
+ DOMStringList: 0,
1549
+ DOMTokenList: 1,
1550
+ DataTransferItemList: 0,
1551
+ FileList: 0,
1552
+ HTMLAllCollection: 0,
1553
+ HTMLCollection: 0,
1554
+ HTMLFormElement: 0,
1555
+ HTMLSelectElement: 0,
1556
+ MediaList: 0,
1557
+ MimeTypeArray: 0,
1558
+ NamedNodeMap: 0,
1559
+ NodeList: 1,
1560
+ PaintRequestList: 0,
1561
+ Plugin: 0,
1562
+ PluginArray: 0,
1563
+ SVGLengthList: 0,
1564
+ SVGNumberList: 0,
1565
+ SVGPathSegList: 0,
1566
+ SVGPointList: 0,
1567
+ SVGStringList: 0,
1568
+ SVGTransformList: 0,
1569
+ SourceBufferList: 0,
1570
+ StyleSheetList: 0,
1571
+ TextTrackCueList: 0,
1572
+ TextTrackList: 0,
1573
+ TouchList: 0
1574
+ };
1575
+
1576
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1577
+ var documentCreateElement = documentCreateElement$2;
1578
+
1579
+ var classList = documentCreateElement('span').classList;
1580
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1581
+
1582
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1583
+
1584
+ var global$4 = global$e;
1585
+ var DOMIterables = domIterables;
1586
+ var DOMTokenListPrototype = domTokenListPrototype;
1587
+ var ArrayIteratorMethods = es_array_iterator;
1588
+ var createNonEnumerableProperty = createNonEnumerableProperty$4;
1589
+ var setToStringTag$2 = setToStringTag$5;
1590
+ var wellKnownSymbol$6 = wellKnownSymbol$c;
1591
+
1592
+ var ITERATOR$4 = wellKnownSymbol$6('iterator');
1593
+ var ArrayValues = ArrayIteratorMethods.values;
1594
+
1595
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1596
+ if (CollectionPrototype) {
1597
+ // some Chrome versions have non-configurable methods on DOMTokenList
1598
+ if (CollectionPrototype[ITERATOR$4] !== ArrayValues) try {
1599
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$4, ArrayValues);
1600
+ } catch (error) {
1601
+ CollectionPrototype[ITERATOR$4] = ArrayValues;
1602
+ }
1603
+ setToStringTag$2(CollectionPrototype, COLLECTION_NAME, true);
1604
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1605
+ // some Chrome versions have non-configurable methods on DOMTokenList
1606
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1607
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1608
+ } catch (error) {
1609
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1610
+ }
1611
+ }
1612
+ }
1613
+ };
1614
+
1615
+ for (var COLLECTION_NAME in DOMIterables) {
1616
+ handlePrototype(global$4[COLLECTION_NAME] && global$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
1617
+ }
1618
+
1619
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1620
+
1621
+ function styleInject(css, ref) {
1622
+ if ( ref === void 0 ) ref = {};
1623
+ var insertAt = ref.insertAt;
1624
+
1625
+ if (!css || typeof document === 'undefined') { return; }
1626
+
1627
+ var head = document.head || document.getElementsByTagName('head')[0];
1628
+ var style = document.createElement('style');
1629
+ style.type = 'text/css';
1630
+
1631
+ if (insertAt === 'top') {
1632
+ if (head.firstChild) {
1633
+ head.insertBefore(style, head.firstChild);
1634
+ } else {
1635
+ head.appendChild(style);
1636
+ }
1637
+ } else {
1638
+ head.appendChild(style);
1639
+ }
1640
+
1641
+ if (style.styleSheet) {
1642
+ style.styleSheet.cssText = css;
1643
+ } else {
1644
+ style.appendChild(document.createTextNode(css));
1645
+ }
1646
+ }
1647
+
1648
+ var NATIVE_BIND$1 = functionBindNative;
1649
+
1650
+ var FunctionPrototype = Function.prototype;
1651
+ var apply$1 = FunctionPrototype.apply;
1652
+ var call$7 = FunctionPrototype.call;
1653
+
1654
+ // eslint-disable-next-line es/no-reflect -- safe
1655
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$7.bind(apply$1) : function () {
1656
+ return call$7.apply(apply$1, arguments);
1657
+ });
1658
+
1659
+ var uncurryThis$c = functionUncurryThis;
1660
+
1661
+ var arraySlice$3 = uncurryThis$c([].slice);
1662
+
1663
+ var classof$6 = classofRaw$2;
1664
+
1665
+ // `IsArray` abstract operation
1666
+ // https://tc39.es/ecma262/#sec-isarray
1667
+ // eslint-disable-next-line es/no-array-isarray -- safe
1668
+ var isArray$1 = Array.isArray || function isArray(argument) {
1669
+ return classof$6(argument) === 'Array';
1670
+ };
1671
+
1672
+ var wellKnownSymbol$5 = wellKnownSymbol$c;
1673
+
1674
+ var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
1675
+ var test = {};
1676
+
1677
+ test[TO_STRING_TAG$1] = 'z';
1678
+
1679
+ var toStringTagSupport = String(test) === '[object z]';
1680
+
1681
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1682
+ var isCallable$4 = isCallable$i;
1683
+ var classofRaw$1 = classofRaw$2;
1684
+ var wellKnownSymbol$4 = wellKnownSymbol$c;
1685
+
1686
+ var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
1687
+ var $Object = Object;
1688
+
1689
+ // ES3 wrong here
1690
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
1691
+
1692
+ // fallback for IE11 Script Access Denied error
1693
+ var tryGet = function (it, key) {
1694
+ try {
1695
+ return it[key];
1696
+ } catch (error) { /* empty */ }
1697
+ };
1698
+
1699
+ // getting tag from ES6+ `Object.prototype.toString`
1700
+ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1701
+ var O, tag, result;
1702
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1703
+ // @@toStringTag case
1704
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1705
+ // builtinTag case
1706
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1707
+ // ES3 arguments fallback
1708
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$4(O.callee) ? 'Arguments' : result;
1709
+ };
1710
+
1711
+ var classof$4 = classof$5;
1712
+
1713
+ var $String$1 = String;
1714
+
1715
+ var toString$5 = function (argument) {
1716
+ if (classof$4(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
1717
+ return $String$1(argument);
1718
+ };
1719
+
1720
+ var uncurryThis$b = functionUncurryThis;
1721
+ var isArray = isArray$1;
1722
+ var isCallable$3 = isCallable$i;
1723
+ var classof$3 = classofRaw$2;
1724
+ var toString$4 = toString$5;
1725
+
1726
+ var push$4 = uncurryThis$b([].push);
1727
+
1728
+ var getJsonReplacerFunction = function (replacer) {
1729
+ if (isCallable$3(replacer)) return replacer;
1730
+ if (!isArray(replacer)) return;
1731
+ var rawLength = replacer.length;
1732
+ var keys = [];
1733
+ for (var i = 0; i < rawLength; i++) {
1734
+ var element = replacer[i];
1735
+ if (typeof element == 'string') push$4(keys, element);
1736
+ else if (typeof element == 'number' || classof$3(element) === 'Number' || classof$3(element) === 'String') push$4(keys, toString$4(element));
1737
+ }
1738
+ var keysLength = keys.length;
1739
+ var root = true;
1740
+ return function (key, value) {
1741
+ if (root) {
1742
+ root = false;
1743
+ return value;
1744
+ }
1745
+ if (isArray(this)) return value;
1746
+ for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
1747
+ };
1748
+ };
1749
+
1750
+ var $$3 = _export;
1751
+ var getBuiltIn$1 = getBuiltIn$5;
1752
+ var apply = functionApply;
1753
+ var call$6 = functionCall;
1754
+ var uncurryThis$a = functionUncurryThis;
1755
+ var fails$3 = fails$f;
1756
+ var isCallable$2 = isCallable$i;
1757
+ var isSymbol = isSymbol$3;
1758
+ var arraySlice$2 = arraySlice$3;
1759
+ var getReplacerFunction = getJsonReplacerFunction;
1760
+ var NATIVE_SYMBOL = symbolConstructorDetection;
1761
+
1762
+ var $String = String;
1763
+ var $stringify = getBuiltIn$1('JSON', 'stringify');
1764
+ var exec$3 = uncurryThis$a(/./.exec);
1765
+ var charAt$4 = uncurryThis$a(''.charAt);
1766
+ var charCodeAt$2 = uncurryThis$a(''.charCodeAt);
1767
+ var replace$3 = uncurryThis$a(''.replace);
1768
+ var numberToString$1 = uncurryThis$a(1.0.toString);
1769
+
1770
+ var tester = /[\uD800-\uDFFF]/g;
1771
+ var low = /^[\uD800-\uDBFF]$/;
1772
+ var hi = /^[\uDC00-\uDFFF]$/;
1773
+
1774
+ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$3(function () {
1775
+ var symbol = getBuiltIn$1('Symbol')('stringify detection');
1776
+ // MS Edge converts symbol values to JSON as {}
1777
+ return $stringify([symbol]) !== '[null]'
1778
+ // WebKit converts symbol values to JSON as null
1779
+ || $stringify({ a: symbol }) !== '{}'
1780
+ // V8 throws on boxed symbols
1781
+ || $stringify(Object(symbol)) !== '{}';
1782
+ });
1783
+
1784
+ // https://github.com/tc39/proposal-well-formed-stringify
1785
+ var ILL_FORMED_UNICODE = fails$3(function () {
1786
+ return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
1787
+ || $stringify('\uDEAD') !== '"\\udead"';
1788
+ });
1789
+
1790
+ var stringifyWithSymbolsFix = function (it, replacer) {
1791
+ var args = arraySlice$2(arguments);
1792
+ var $replacer = getReplacerFunction(replacer);
1793
+ if (!isCallable$2($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
1794
+ args[1] = function (key, value) {
1795
+ // some old implementations (like WebKit) could pass numbers as keys
1796
+ if (isCallable$2($replacer)) value = call$6($replacer, this, $String(key), value);
1797
+ if (!isSymbol(value)) return value;
1798
+ };
1799
+ return apply($stringify, null, args);
1800
+ };
1801
+
1802
+ var fixIllFormed = function (match, offset, string) {
1803
+ var prev = charAt$4(string, offset - 1);
1804
+ var next = charAt$4(string, offset + 1);
1805
+ if ((exec$3(low, match) && !exec$3(hi, next)) || (exec$3(hi, match) && !exec$3(low, prev))) {
1806
+ return '\\u' + numberToString$1(charCodeAt$2(match, 0), 16);
1807
+ } return match;
1808
+ };
1809
+
1810
+ if ($stringify) {
1811
+ // `JSON.stringify` method
1812
+ // https://tc39.es/ecma262/#sec-json.stringify
1813
+ $$3({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
1814
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1815
+ stringify: function stringify(it, replacer, space) {
1816
+ var args = arraySlice$2(arguments);
1817
+ var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
1818
+ return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$3(result, tester, fixIllFormed) : result;
1819
+ }
1820
+ });
1821
+ }
1822
+
1823
+ var anObject$5 = anObject$a;
1824
+
1825
+ // `RegExp.prototype.flags` getter implementation
1826
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1827
+ var regexpFlags = function () {
1828
+ var that = anObject$5(this);
1829
+ var result = '';
1830
+ if (that.hasIndices) result += 'd';
1831
+ if (that.global) result += 'g';
1832
+ if (that.ignoreCase) result += 'i';
1833
+ if (that.multiline) result += 'm';
1834
+ if (that.dotAll) result += 's';
1835
+ if (that.unicode) result += 'u';
1836
+ if (that.unicodeSets) result += 'v';
1837
+ if (that.sticky) result += 'y';
1838
+ return result;
1839
+ };
1840
+
1841
+ var call$5 = functionCall;
1842
+ var hasOwn$2 = hasOwnProperty_1;
1843
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1844
+ var regExpFlags = regexpFlags;
1845
+
1846
+ var RegExpPrototype$1 = RegExp.prototype;
1847
+
1848
+ var regexpGetFlags = function (R) {
1849
+ var flags = R.flags;
1850
+ return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$2(R, 'flags') && isPrototypeOf$1(RegExpPrototype$1, R)
1851
+ ? call$5(regExpFlags, R) : flags;
1852
+ };
1853
+
1854
+ var PROPER_FUNCTION_NAME = functionName.PROPER;
1855
+ var defineBuiltIn$5 = defineBuiltIn$9;
1856
+ var anObject$4 = anObject$a;
1857
+ var $toString$2 = toString$5;
1858
+ var fails$2 = fails$f;
1859
+ var getRegExpFlags = regexpGetFlags;
1860
+
1861
+ var TO_STRING = 'toString';
1862
+ var RegExpPrototype = RegExp.prototype;
1863
+ var nativeToString = RegExpPrototype[TO_STRING];
1864
+
1865
+ var NOT_GENERIC = fails$2(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
1866
+ // FF44- RegExp#toString has a wrong name
1867
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
1868
+
1869
+ // `RegExp.prototype.toString` method
1870
+ // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
1871
+ if (NOT_GENERIC || INCORRECT_NAME) {
1872
+ defineBuiltIn$5(RegExpPrototype, TO_STRING, function toString() {
1873
+ var R = anObject$4(this);
1874
+ var pattern = $toString$2(R.source);
1875
+ var flags = $toString$2(getRegExpFlags(R));
1876
+ return '/' + pattern + '/' + flags;
1877
+ }, { unsafe: true });
1878
+ }
1879
+
1880
+ var uncurryThis$9 = functionUncurryThis;
1881
+ var toIntegerOrInfinity = toIntegerOrInfinity$3;
1882
+ var toString$3 = toString$5;
1883
+ var requireObjectCoercible = requireObjectCoercible$4;
1884
+
1885
+ var charAt$3 = uncurryThis$9(''.charAt);
1886
+ var charCodeAt$1 = uncurryThis$9(''.charCodeAt);
1887
+ var stringSlice$2 = uncurryThis$9(''.slice);
1888
+
1889
+ var createMethod = function (CONVERT_TO_STRING) {
1890
+ return function ($this, pos) {
1891
+ var S = toString$3(requireObjectCoercible($this));
1892
+ var position = toIntegerOrInfinity(pos);
1893
+ var size = S.length;
1894
+ var first, second;
1895
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1896
+ first = charCodeAt$1(S, position);
1897
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
1898
+ || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
1899
+ ? CONVERT_TO_STRING
1900
+ ? charAt$3(S, position)
1901
+ : first
1902
+ : CONVERT_TO_STRING
1903
+ ? stringSlice$2(S, position, position + 2)
1904
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1905
+ };
1906
+ };
1907
+
1908
+ var stringMultibyte = {
1909
+ // `String.prototype.codePointAt` method
1910
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1911
+ codeAt: createMethod(false),
1912
+ // `String.prototype.at` method
1913
+ // https://github.com/mathiasbynens/String.prototype.at
1914
+ charAt: createMethod(true)
1915
+ };
1916
+
1917
+ var charAt$2 = stringMultibyte.charAt;
1918
+ var toString$2 = toString$5;
1919
+ var InternalStateModule$2 = internalState;
1920
+ var defineIterator = iteratorDefine;
1921
+ var createIterResultObject$1 = createIterResultObject$3;
1922
+
1923
+ var STRING_ITERATOR = 'String Iterator';
1924
+ var setInternalState$2 = InternalStateModule$2.set;
1925
+ var getInternalState = InternalStateModule$2.getterFor(STRING_ITERATOR);
1926
+
1927
+ // `String.prototype[@@iterator]` method
1928
+ // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
1929
+ defineIterator(String, 'String', function (iterated) {
1930
+ setInternalState$2(this, {
1931
+ type: STRING_ITERATOR,
1932
+ string: toString$2(iterated),
1933
+ index: 0
1934
+ });
1935
+ // `%StringIteratorPrototype%.next` method
1936
+ // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
1937
+ }, function next() {
1938
+ var state = getInternalState(this);
1939
+ var string = state.string;
1940
+ var index = state.index;
1941
+ var point;
1942
+ if (index >= string.length) return createIterResultObject$1(undefined, true);
1943
+ point = charAt$2(string, index);
1944
+ state.index += point.length;
1945
+ return createIterResultObject$1(point, false);
1946
+ });
1947
+
1948
+ var fails$1 = fails$f;
1949
+ var wellKnownSymbol$3 = wellKnownSymbol$c;
1950
+ var DESCRIPTORS$5 = descriptors;
1951
+ var IS_PURE = isPure;
1952
+
1953
+ var ITERATOR$3 = wellKnownSymbol$3('iterator');
1954
+
1955
+ var urlConstructorDetection = !fails$1(function () {
1956
+ // eslint-disable-next-line unicorn/relative-url-style -- required for testing
1957
+ var url = new URL('b?a=1&b=2&c=3', 'http://a');
1958
+ var params = url.searchParams;
1959
+ var params2 = new URLSearchParams('a=1&a=2&b=3');
1960
+ var result = '';
1961
+ url.pathname = 'c%20d';
1962
+ params.forEach(function (value, key) {
1963
+ params['delete']('b');
1964
+ result += key + value;
1965
+ });
1966
+ params2['delete']('a', 2);
1967
+ // `undefined` case is a Chromium 117 bug
1968
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
1969
+ params2['delete']('b', undefined);
1970
+ return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
1971
+ || (!params.size && (IS_PURE || !DESCRIPTORS$5))
1972
+ || !params.sort
1973
+ || url.href !== 'http://a/c%20d?a=1&c=3'
1974
+ || params.get('c') !== '3'
1975
+ || String(new URLSearchParams('?a=1')) !== 'a=1'
1976
+ || !params[ITERATOR$3]
1977
+ // throws in Edge
1978
+ || new URL('https://a@b').username !== 'a'
1979
+ || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
1980
+ // not punycoded in Edge
1981
+ || new URL('http://тест').host !== 'xn--e1aybc'
1982
+ // not escaped in Chrome 62-
1983
+ || new URL('http://a#б').hash !== '#%D0%B1'
1984
+ // fails in Chrome 66-
1985
+ || result !== 'a1c3'
1986
+ // throws in Safari
1987
+ || new URL('http://x', undefined).host !== 'x';
1988
+ });
1989
+
1990
+ var classofRaw = classofRaw$2;
1991
+ var uncurryThis$8 = functionUncurryThis;
1992
+
1993
+ var functionUncurryThisClause = function (fn) {
1994
+ // Nashorn bug:
1995
+ // https://github.com/zloirock/core-js/issues/1128
1996
+ // https://github.com/zloirock/core-js/issues/1130
1997
+ if (classofRaw(fn) === 'Function') return uncurryThis$8(fn);
1998
+ };
1999
+
2000
+ var uncurryThis$7 = functionUncurryThisClause;
2001
+ var aCallable$1 = aCallable$4;
2002
+ var NATIVE_BIND = functionBindNative;
2003
+
2004
+ var bind$3 = uncurryThis$7(uncurryThis$7.bind);
2005
+
2006
+ // optional / simple context binding
2007
+ var functionBindContext = function (fn, that) {
2008
+ aCallable$1(fn);
2009
+ return that === undefined ? fn : NATIVE_BIND ? bind$3(fn, that) : function (/* ...args */) {
2010
+ return fn.apply(that, arguments);
2011
+ };
2012
+ };
2013
+
2014
+ var makeBuiltIn = makeBuiltInExports;
2015
+ var defineProperty = objectDefineProperty;
2016
+
2017
+ var defineBuiltInAccessor$3 = function (target, name, descriptor) {
2018
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
2019
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
2020
+ return defineProperty.f(target, name, descriptor);
2021
+ };
2022
+
2023
+ var isPrototypeOf = objectIsPrototypeOf;
2024
+
2025
+ var $TypeError$2 = TypeError;
2026
+
2027
+ var anInstance$2 = function (it, Prototype) {
2028
+ if (isPrototypeOf(Prototype, it)) return it;
2029
+ throw new $TypeError$2('Incorrect invocation');
2030
+ };
2031
+
2032
+ var call$4 = functionCall;
2033
+ var anObject$3 = anObject$a;
2034
+ var getMethod$1 = getMethod$3;
2035
+
2036
+ var iteratorClose$1 = function (iterator, kind, value) {
2037
+ var innerResult, innerError;
2038
+ anObject$3(iterator);
2039
+ try {
2040
+ innerResult = getMethod$1(iterator, 'return');
2041
+ if (!innerResult) {
2042
+ if (kind === 'throw') throw value;
2043
+ return value;
2044
+ }
2045
+ innerResult = call$4(innerResult, iterator);
2046
+ } catch (error) {
2047
+ innerError = true;
2048
+ innerResult = error;
2049
+ }
2050
+ if (kind === 'throw') throw value;
2051
+ if (innerError) throw innerResult;
2052
+ anObject$3(innerResult);
2053
+ return value;
2054
+ };
2055
+
2056
+ var anObject$2 = anObject$a;
2057
+ var iteratorClose = iteratorClose$1;
2058
+
2059
+ // call something on iterator step with safe closing on error
2060
+ var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
2061
+ try {
2062
+ return ENTRIES ? fn(anObject$2(value)[0], value[1]) : fn(value);
2063
+ } catch (error) {
2064
+ iteratorClose(iterator, 'throw', error);
2065
+ }
2066
+ };
2067
+
2068
+ var wellKnownSymbol$2 = wellKnownSymbol$c;
2069
+ var Iterators$1 = iterators;
2070
+
2071
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
2072
+ var ArrayPrototype = Array.prototype;
2073
+
2074
+ // check on default Array iterator
2075
+ var isArrayIteratorMethod$1 = function (it) {
2076
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
2077
+ };
2078
+
2079
+ var uncurryThis$6 = functionUncurryThis;
2080
+ var fails = fails$f;
2081
+ var isCallable$1 = isCallable$i;
2082
+ var classof$2 = classof$5;
2083
+ var getBuiltIn = getBuiltIn$5;
2084
+ var inspectSource = inspectSource$2;
2085
+
2086
+ var noop = function () { /* empty */ };
2087
+ var construct = getBuiltIn('Reflect', 'construct');
2088
+ var constructorRegExp = /^\s*(?:class|function)\b/;
2089
+ var exec$2 = uncurryThis$6(constructorRegExp.exec);
2090
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
2091
+
2092
+ var isConstructorModern = function isConstructor(argument) {
2093
+ if (!isCallable$1(argument)) return false;
2094
+ try {
2095
+ construct(noop, [], argument);
2096
+ return true;
2097
+ } catch (error) {
2098
+ return false;
2099
+ }
2100
+ };
2101
+
2102
+ var isConstructorLegacy = function isConstructor(argument) {
2103
+ if (!isCallable$1(argument)) return false;
2104
+ switch (classof$2(argument)) {
2105
+ case 'AsyncFunction':
2106
+ case 'GeneratorFunction':
2107
+ case 'AsyncGeneratorFunction': return false;
2108
+ }
2109
+ try {
2110
+ // we can't check .prototype since constructors produced by .bind haven't it
2111
+ // `Function#toString` throws on some built-it function in some legacy engines
2112
+ // (for example, `DOMQuad` and similar in FF41-)
2113
+ return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
2114
+ } catch (error) {
2115
+ return true;
2116
+ }
2117
+ };
2118
+
2119
+ isConstructorLegacy.sham = true;
2120
+
2121
+ // `IsConstructor` abstract operation
2122
+ // https://tc39.es/ecma262/#sec-isconstructor
2123
+ var isConstructor$1 = !construct || fails(function () {
2124
+ var called;
2125
+ return isConstructorModern(isConstructorModern.call)
2126
+ || !isConstructorModern(Object)
2127
+ || !isConstructorModern(function () { called = true; })
2128
+ || called;
2129
+ }) ? isConstructorLegacy : isConstructorModern;
2130
+
2131
+ var DESCRIPTORS$4 = descriptors;
2132
+ var definePropertyModule = objectDefineProperty;
2133
+ var createPropertyDescriptor$1 = createPropertyDescriptor$5;
2134
+
2135
+ var createProperty$1 = function (object, key, value) {
2136
+ if (DESCRIPTORS$4) definePropertyModule.f(object, key, createPropertyDescriptor$1(0, value));
2137
+ else object[key] = value;
2138
+ };
2139
+
2140
+ var classof$1 = classof$5;
2141
+ var getMethod = getMethod$3;
2142
+ var isNullOrUndefined = isNullOrUndefined$3;
2143
+ var Iterators = iterators;
2144
+ var wellKnownSymbol$1 = wellKnownSymbol$c;
2145
+
2146
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
2147
+
2148
+ var getIteratorMethod$3 = function (it) {
2149
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1)
2150
+ || getMethod(it, '@@iterator')
2151
+ || Iterators[classof$1(it)];
2152
+ };
2153
+
2154
+ var call$3 = functionCall;
2155
+ var aCallable = aCallable$4;
2156
+ var anObject$1 = anObject$a;
2157
+ var tryToString = tryToString$2;
2158
+ var getIteratorMethod$2 = getIteratorMethod$3;
2159
+
2160
+ var $TypeError$1 = TypeError;
2161
+
2162
+ var getIterator$2 = function (argument, usingIterator) {
2163
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
2164
+ if (aCallable(iteratorMethod)) return anObject$1(call$3(iteratorMethod, argument));
2165
+ throw new $TypeError$1(tryToString(argument) + ' is not iterable');
2166
+ };
2167
+
2168
+ var bind$2 = functionBindContext;
2169
+ var call$2 = functionCall;
2170
+ var toObject = toObject$4;
2171
+ var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
2172
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
2173
+ var isConstructor = isConstructor$1;
2174
+ var lengthOfArrayLike = lengthOfArrayLike$2;
2175
+ var createProperty = createProperty$1;
2176
+ var getIterator$1 = getIterator$2;
2177
+ var getIteratorMethod$1 = getIteratorMethod$3;
2178
+
2179
+ var $Array = Array;
2180
+
2181
+ // `Array.from` method implementation
2182
+ // https://tc39.es/ecma262/#sec-array.from
2183
+ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {
2184
+ var O = toObject(arrayLike);
2185
+ var IS_CONSTRUCTOR = isConstructor(this);
2186
+ var argumentsLength = arguments.length;
2187
+ var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
2188
+ var mapping = mapfn !== undefined;
2189
+ if (mapping) mapfn = bind$2(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
2190
+ var iteratorMethod = getIteratorMethod$1(O);
2191
+ var index = 0;
2192
+ var length, result, step, iterator, next, value;
2193
+ // if the target is not iterable or it's an array with the default iterator - use a simple case
2194
+ if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
2195
+ result = IS_CONSTRUCTOR ? new this() : [];
2196
+ iterator = getIterator$1(O, iteratorMethod);
2197
+ next = iterator.next;
2198
+ for (;!(step = call$2(next, iterator)).done; index++) {
2199
+ value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
2200
+ createProperty(result, index, value);
2201
+ }
2202
+ } else {
2203
+ length = lengthOfArrayLike(O);
2204
+ result = IS_CONSTRUCTOR ? new this(length) : $Array(length);
2205
+ for (;length > index; index++) {
2206
+ value = mapping ? mapfn(O[index], index) : O[index];
2207
+ createProperty(result, index, value);
2208
+ }
2209
+ }
2210
+ result.length = index;
2211
+ return result;
2212
+ };
2213
+
2214
+ // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
2215
+ var uncurryThis$5 = functionUncurryThis;
2216
+
2217
+ var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
2218
+ var base = 36;
2219
+ var tMin = 1;
2220
+ var tMax = 26;
2221
+ var skew = 38;
2222
+ var damp = 700;
2223
+ var initialBias = 72;
2224
+ var initialN = 128; // 0x80
2225
+ var delimiter = '-'; // '\x2D'
2226
+ var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
2227
+ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
2228
+ var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
2229
+ var baseMinusTMin = base - tMin;
2230
+
2231
+ var $RangeError = RangeError;
2232
+ var exec$1 = uncurryThis$5(regexSeparators.exec);
2233
+ var floor$2 = Math.floor;
2234
+ var fromCharCode = String.fromCharCode;
2235
+ var charCodeAt = uncurryThis$5(''.charCodeAt);
2236
+ var join$2 = uncurryThis$5([].join);
2237
+ var push$3 = uncurryThis$5([].push);
2238
+ var replace$2 = uncurryThis$5(''.replace);
2239
+ var split$2 = uncurryThis$5(''.split);
2240
+ var toLowerCase$1 = uncurryThis$5(''.toLowerCase);
2241
+
2242
+ /**
2243
+ * Creates an array containing the numeric code points of each Unicode
2244
+ * character in the string. While JavaScript uses UCS-2 internally,
2245
+ * this function will convert a pair of surrogate halves (each of which
2246
+ * UCS-2 exposes as separate characters) into a single code point,
2247
+ * matching UTF-16.
2248
+ */
2249
+ var ucs2decode = function (string) {
2250
+ var output = [];
2251
+ var counter = 0;
2252
+ var length = string.length;
2253
+ while (counter < length) {
2254
+ var value = charCodeAt(string, counter++);
2255
+ if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
2256
+ // It's a high surrogate, and there is a next character.
2257
+ var extra = charCodeAt(string, counter++);
2258
+ if ((extra & 0xFC00) === 0xDC00) { // Low surrogate.
2259
+ push$3(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
2260
+ } else {
2261
+ // It's an unmatched surrogate; only append this code unit, in case the
2262
+ // next code unit is the high surrogate of a surrogate pair.
2263
+ push$3(output, value);
2264
+ counter--;
2265
+ }
2266
+ } else {
2267
+ push$3(output, value);
2268
+ }
2269
+ }
2270
+ return output;
2271
+ };
2272
+
2273
+ /**
2274
+ * Converts a digit/integer into a basic code point.
2275
+ */
2276
+ var digitToBasic = function (digit) {
2277
+ // 0..25 map to ASCII a..z or A..Z
2278
+ // 26..35 map to ASCII 0..9
2279
+ return digit + 22 + 75 * (digit < 26);
2280
+ };
2281
+
2282
+ /**
2283
+ * Bias adaptation function as per section 3.4 of RFC 3492.
2284
+ * https://tools.ietf.org/html/rfc3492#section-3.4
2285
+ */
2286
+ var adapt = function (delta, numPoints, firstTime) {
2287
+ var k = 0;
2288
+ delta = firstTime ? floor$2(delta / damp) : delta >> 1;
2289
+ delta += floor$2(delta / numPoints);
2290
+ while (delta > baseMinusTMin * tMax >> 1) {
2291
+ delta = floor$2(delta / baseMinusTMin);
2292
+ k += base;
2293
+ }
2294
+ return floor$2(k + (baseMinusTMin + 1) * delta / (delta + skew));
2295
+ };
2296
+
2297
+ /**
2298
+ * Converts a string of Unicode symbols (e.g. a domain name label) to a
2299
+ * Punycode string of ASCII-only symbols.
2300
+ */
2301
+ var encode = function (input) {
2302
+ var output = [];
2303
+
2304
+ // Convert the input in UCS-2 to an array of Unicode code points.
2305
+ input = ucs2decode(input);
2306
+
2307
+ // Cache the length.
2308
+ var inputLength = input.length;
2309
+
2310
+ // Initialize the state.
2311
+ var n = initialN;
2312
+ var delta = 0;
2313
+ var bias = initialBias;
2314
+ var i, currentValue;
2315
+
2316
+ // Handle the basic code points.
2317
+ for (i = 0; i < input.length; i++) {
2318
+ currentValue = input[i];
2319
+ if (currentValue < 0x80) {
2320
+ push$3(output, fromCharCode(currentValue));
2321
+ }
2322
+ }
2323
+
2324
+ var basicLength = output.length; // number of basic code points.
2325
+ var handledCPCount = basicLength; // number of code points that have been handled;
2326
+
2327
+ // Finish the basic string with a delimiter unless it's empty.
2328
+ if (basicLength) {
2329
+ push$3(output, delimiter);
2330
+ }
2331
+
2332
+ // Main encoding loop:
2333
+ while (handledCPCount < inputLength) {
2334
+ // All non-basic code points < n have been handled already. Find the next larger one:
2335
+ var m = maxInt;
2336
+ for (i = 0; i < input.length; i++) {
2337
+ currentValue = input[i];
2338
+ if (currentValue >= n && currentValue < m) {
2339
+ m = currentValue;
2340
+ }
2341
+ }
2342
+
2343
+ // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
2344
+ var handledCPCountPlusOne = handledCPCount + 1;
2345
+ if (m - n > floor$2((maxInt - delta) / handledCPCountPlusOne)) {
2346
+ throw new $RangeError(OVERFLOW_ERROR);
2347
+ }
2348
+
2349
+ delta += (m - n) * handledCPCountPlusOne;
2350
+ n = m;
2351
+
2352
+ for (i = 0; i < input.length; i++) {
2353
+ currentValue = input[i];
2354
+ if (currentValue < n && ++delta > maxInt) {
2355
+ throw new $RangeError(OVERFLOW_ERROR);
2356
+ }
2357
+ if (currentValue === n) {
2358
+ // Represent delta as a generalized variable-length integer.
2359
+ var q = delta;
2360
+ var k = base;
2361
+ while (true) {
2362
+ var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
2363
+ if (q < t) break;
2364
+ var qMinusT = q - t;
2365
+ var baseMinusT = base - t;
2366
+ push$3(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
2367
+ q = floor$2(qMinusT / baseMinusT);
2368
+ k += base;
2369
+ }
2370
+
2371
+ push$3(output, fromCharCode(digitToBasic(q)));
2372
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
2373
+ delta = 0;
2374
+ handledCPCount++;
2375
+ }
2376
+ }
2377
+
2378
+ delta++;
2379
+ n++;
2380
+ }
2381
+ return join$2(output, '');
2382
+ };
2383
+
2384
+ var stringPunycodeToAscii = function (input) {
2385
+ var encoded = [];
2386
+ var labels = split$2(replace$2(toLowerCase$1(input), regexSeparators, '\u002E'), '.');
2387
+ var i, label;
2388
+ for (i = 0; i < labels.length; i++) {
2389
+ label = labels[i];
2390
+ push$3(encoded, exec$1(regexNonASCII, label) ? 'xn--' + encode(label) : label);
2391
+ }
2392
+ return join$2(encoded, '.');
2393
+ };
2394
+
2395
+ var $TypeError = TypeError;
2396
+
2397
+ var validateArgumentsLength$4 = function (passed, required) {
2398
+ if (passed < required) throw new $TypeError('Not enough arguments');
2399
+ return passed;
2400
+ };
2401
+
2402
+ var global$3 = global$e;
2403
+ var DESCRIPTORS$3 = descriptors;
2404
+
2405
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2406
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2407
+
2408
+ // Avoid NodeJS experimental warning
2409
+ var safeGetBuiltIn$1 = function (name) {
2410
+ if (!DESCRIPTORS$3) return global$3[name];
2411
+ var descriptor = getOwnPropertyDescriptor(global$3, name);
2412
+ return descriptor && descriptor.value;
2413
+ };
2414
+
2415
+ var defineBuiltIn$4 = defineBuiltIn$9;
2416
+
2417
+ var defineBuiltIns$1 = function (target, src, options) {
2418
+ for (var key in src) defineBuiltIn$4(target, key, src[key], options);
2419
+ return target;
2420
+ };
2421
+
2422
+ var arraySlice$1 = arraySlice$3;
2423
+
2424
+ var floor$1 = Math.floor;
2425
+
2426
+ var sort = function (array, comparefn) {
2427
+ var length = array.length;
2428
+
2429
+ if (length < 8) {
2430
+ // insertion sort
2431
+ var i = 1;
2432
+ var element, j;
2433
+
2434
+ while (i < length) {
2435
+ j = i;
2436
+ element = array[i];
2437
+ while (j && comparefn(array[j - 1], element) > 0) {
2438
+ array[j] = array[--j];
2439
+ }
2440
+ if (j !== i++) array[j] = element;
2441
+ }
2442
+ } else {
2443
+ // merge sort
2444
+ var middle = floor$1(length / 2);
2445
+ var left = sort(arraySlice$1(array, 0, middle), comparefn);
2446
+ var right = sort(arraySlice$1(array, middle), comparefn);
2447
+ var llength = left.length;
2448
+ var rlength = right.length;
2449
+ var lindex = 0;
2450
+ var rindex = 0;
2451
+
2452
+ while (lindex < llength || rindex < rlength) {
2453
+ array[lindex + rindex] = (lindex < llength && rindex < rlength)
2454
+ ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
2455
+ : lindex < llength ? left[lindex++] : right[rindex++];
2456
+ }
2457
+ }
2458
+
2459
+ return array;
2460
+ };
2461
+
2462
+ var arraySort$1 = sort;
2463
+
2464
+ // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
2465
+
2466
+ var $$2 = _export;
2467
+ var global$2 = global$e;
2468
+ var safeGetBuiltIn = safeGetBuiltIn$1;
2469
+ var call$1 = functionCall;
2470
+ var uncurryThis$4 = functionUncurryThis;
2471
+ var DESCRIPTORS$2 = descriptors;
2472
+ var USE_NATIVE_URL$1 = urlConstructorDetection;
2473
+ var defineBuiltIn$3 = defineBuiltIn$9;
2474
+ var defineBuiltInAccessor$2 = defineBuiltInAccessor$3;
2475
+ var defineBuiltIns = defineBuiltIns$1;
2476
+ var setToStringTag$1 = setToStringTag$5;
2477
+ var createIteratorConstructor = iteratorCreateConstructor;
2478
+ var InternalStateModule$1 = internalState;
2479
+ var anInstance$1 = anInstance$2;
2480
+ var isCallable = isCallable$i;
2481
+ var hasOwn$1 = hasOwnProperty_1;
2482
+ var bind$1 = functionBindContext;
2483
+ var classof = classof$5;
2484
+ var anObject = anObject$a;
2485
+ var isObject = isObject$9;
2486
+ var $toString$1 = toString$5;
2487
+ var create = objectCreate;
2488
+ var createPropertyDescriptor = createPropertyDescriptor$5;
2489
+ var getIterator = getIterator$2;
2490
+ var getIteratorMethod = getIteratorMethod$3;
2491
+ var createIterResultObject = createIterResultObject$3;
2492
+ var validateArgumentsLength$3 = validateArgumentsLength$4;
2493
+ var wellKnownSymbol = wellKnownSymbol$c;
2494
+ var arraySort = arraySort$1;
2495
+
2496
+ var ITERATOR = wellKnownSymbol('iterator');
2497
+ var URL_SEARCH_PARAMS = 'URLSearchParams';
2498
+ var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
2499
+ var setInternalState$1 = InternalStateModule$1.set;
2500
+ var getInternalParamsState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS);
2501
+ var getInternalIteratorState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR);
2502
+
2503
+ var nativeFetch = safeGetBuiltIn('fetch');
2504
+ var NativeRequest = safeGetBuiltIn('Request');
2505
+ var Headers = safeGetBuiltIn('Headers');
2506
+ var RequestPrototype = NativeRequest && NativeRequest.prototype;
2507
+ var HeadersPrototype = Headers && Headers.prototype;
2508
+ var RegExp$1 = global$2.RegExp;
2509
+ var TypeError$2 = global$2.TypeError;
2510
+ var decodeURIComponent = global$2.decodeURIComponent;
2511
+ var encodeURIComponent$1 = global$2.encodeURIComponent;
2512
+ var charAt$1 = uncurryThis$4(''.charAt);
2513
+ var join$1 = uncurryThis$4([].join);
2514
+ var push$2 = uncurryThis$4([].push);
2515
+ var replace$1 = uncurryThis$4(''.replace);
2516
+ var shift$1 = uncurryThis$4([].shift);
2517
+ var splice = uncurryThis$4([].splice);
2518
+ var split$1 = uncurryThis$4(''.split);
2519
+ var stringSlice$1 = uncurryThis$4(''.slice);
2520
+
2521
+ var plus = /\+/g;
2522
+ var sequences = Array(4);
2523
+
2524
+ var percentSequence = function (bytes) {
2525
+ return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp$1('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
2526
+ };
2527
+
2528
+ var percentDecode = function (sequence) {
2529
+ try {
2530
+ return decodeURIComponent(sequence);
2531
+ } catch (error) {
2532
+ return sequence;
2533
+ }
2534
+ };
2535
+
2536
+ var deserialize = function (it) {
2537
+ var result = replace$1(it, plus, ' ');
2538
+ var bytes = 4;
2539
+ try {
2540
+ return decodeURIComponent(result);
2541
+ } catch (error) {
2542
+ while (bytes) {
2543
+ result = replace$1(result, percentSequence(bytes--), percentDecode);
2544
+ }
2545
+ return result;
2546
+ }
2547
+ };
2548
+
2549
+ var find = /[!'()~]|%20/g;
2550
+
2551
+ var replacements = {
2552
+ '!': '%21',
2553
+ "'": '%27',
2554
+ '(': '%28',
2555
+ ')': '%29',
2556
+ '~': '%7E',
2557
+ '%20': '+'
2558
+ };
2559
+
2560
+ var replacer = function (match) {
2561
+ return replacements[match];
2562
+ };
2563
+
2564
+ var serialize = function (it) {
2565
+ return replace$1(encodeURIComponent$1(it), find, replacer);
2566
+ };
2567
+
2568
+ var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
2569
+ setInternalState$1(this, {
2570
+ type: URL_SEARCH_PARAMS_ITERATOR,
2571
+ target: getInternalParamsState(params).entries,
2572
+ index: 0,
2573
+ kind: kind
2574
+ });
2575
+ }, URL_SEARCH_PARAMS, function next() {
2576
+ var state = getInternalIteratorState(this);
2577
+ var target = state.target;
2578
+ var index = state.index++;
2579
+ if (!target || index >= target.length) {
2580
+ state.target = undefined;
2581
+ return createIterResultObject(undefined, true);
2582
+ }
2583
+ var entry = target[index];
2584
+ switch (state.kind) {
2585
+ case 'keys': return createIterResultObject(entry.key, false);
2586
+ case 'values': return createIterResultObject(entry.value, false);
2587
+ } return createIterResultObject([entry.key, entry.value], false);
2588
+ }, true);
2589
+
2590
+ var URLSearchParamsState = function (init) {
2591
+ this.entries = [];
2592
+ this.url = null;
2593
+
2594
+ if (init !== undefined) {
2595
+ if (isObject(init)) this.parseObject(init);
2596
+ else this.parseQuery(typeof init == 'string' ? charAt$1(init, 0) === '?' ? stringSlice$1(init, 1) : init : $toString$1(init));
2597
+ }
2598
+ };
2599
+
2600
+ URLSearchParamsState.prototype = {
2601
+ type: URL_SEARCH_PARAMS,
2602
+ bindURL: function (url) {
2603
+ this.url = url;
2604
+ this.update();
2605
+ },
2606
+ parseObject: function (object) {
2607
+ var entries = this.entries;
2608
+ var iteratorMethod = getIteratorMethod(object);
2609
+ var iterator, next, step, entryIterator, entryNext, first, second;
2610
+
2611
+ if (iteratorMethod) {
2612
+ iterator = getIterator(object, iteratorMethod);
2613
+ next = iterator.next;
2614
+ while (!(step = call$1(next, iterator)).done) {
2615
+ entryIterator = getIterator(anObject(step.value));
2616
+ entryNext = entryIterator.next;
2617
+ if (
2618
+ (first = call$1(entryNext, entryIterator)).done ||
2619
+ (second = call$1(entryNext, entryIterator)).done ||
2620
+ !call$1(entryNext, entryIterator).done
2621
+ ) throw new TypeError$2('Expected sequence with length 2');
2622
+ push$2(entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
2623
+ }
2624
+ } else for (var key in object) if (hasOwn$1(object, key)) {
2625
+ push$2(entries, { key: key, value: $toString$1(object[key]) });
2626
+ }
2627
+ },
2628
+ parseQuery: function (query) {
2629
+ if (query) {
2630
+ var entries = this.entries;
2631
+ var attributes = split$1(query, '&');
2632
+ var index = 0;
2633
+ var attribute, entry;
2634
+ while (index < attributes.length) {
2635
+ attribute = attributes[index++];
2636
+ if (attribute.length) {
2637
+ entry = split$1(attribute, '=');
2638
+ push$2(entries, {
2639
+ key: deserialize(shift$1(entry)),
2640
+ value: deserialize(join$1(entry, '='))
2641
+ });
2642
+ }
2643
+ }
2644
+ }
2645
+ },
2646
+ serialize: function () {
2647
+ var entries = this.entries;
2648
+ var result = [];
2649
+ var index = 0;
2650
+ var entry;
2651
+ while (index < entries.length) {
2652
+ entry = entries[index++];
2653
+ push$2(result, serialize(entry.key) + '=' + serialize(entry.value));
2654
+ } return join$1(result, '&');
2655
+ },
2656
+ update: function () {
2657
+ this.entries.length = 0;
2658
+ this.parseQuery(this.url.query);
2659
+ },
2660
+ updateURL: function () {
2661
+ if (this.url) this.url.update();
2662
+ }
2663
+ };
2664
+
2665
+ // `URLSearchParams` constructor
2666
+ // https://url.spec.whatwg.org/#interface-urlsearchparams
2667
+ var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
2668
+ anInstance$1(this, URLSearchParamsPrototype$3);
2669
+ var init = arguments.length > 0 ? arguments[0] : undefined;
2670
+ var state = setInternalState$1(this, new URLSearchParamsState(init));
2671
+ if (!DESCRIPTORS$2) this.size = state.entries.length;
2672
+ };
2673
+
2674
+ var URLSearchParamsPrototype$3 = URLSearchParamsConstructor.prototype;
2675
+
2676
+ defineBuiltIns(URLSearchParamsPrototype$3, {
2677
+ // `URLSearchParams.prototype.append` method
2678
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-append
2679
+ append: function append(name, value) {
2680
+ var state = getInternalParamsState(this);
2681
+ validateArgumentsLength$3(arguments.length, 2);
2682
+ push$2(state.entries, { key: $toString$1(name), value: $toString$1(value) });
2683
+ if (!DESCRIPTORS$2) this.length++;
2684
+ state.updateURL();
2685
+ },
2686
+ // `URLSearchParams.prototype.delete` method
2687
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
2688
+ 'delete': function (name /* , value */) {
2689
+ var state = getInternalParamsState(this);
2690
+ var length = validateArgumentsLength$3(arguments.length, 1);
2691
+ var entries = state.entries;
2692
+ var key = $toString$1(name);
2693
+ var $value = length < 2 ? undefined : arguments[1];
2694
+ var value = $value === undefined ? $value : $toString$1($value);
2695
+ var index = 0;
2696
+ while (index < entries.length) {
2697
+ var entry = entries[index];
2698
+ if (entry.key === key && (value === undefined || entry.value === value)) {
2699
+ splice(entries, index, 1);
2700
+ if (value !== undefined) break;
2701
+ } else index++;
2702
+ }
2703
+ if (!DESCRIPTORS$2) this.size = entries.length;
2704
+ state.updateURL();
2705
+ },
2706
+ // `URLSearchParams.prototype.get` method
2707
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-get
2708
+ get: function get(name) {
2709
+ var entries = getInternalParamsState(this).entries;
2710
+ validateArgumentsLength$3(arguments.length, 1);
2711
+ var key = $toString$1(name);
2712
+ var index = 0;
2713
+ for (; index < entries.length; index++) {
2714
+ if (entries[index].key === key) return entries[index].value;
2715
+ }
2716
+ return null;
2717
+ },
2718
+ // `URLSearchParams.prototype.getAll` method
2719
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
2720
+ getAll: function getAll(name) {
2721
+ var entries = getInternalParamsState(this).entries;
2722
+ validateArgumentsLength$3(arguments.length, 1);
2723
+ var key = $toString$1(name);
2724
+ var result = [];
2725
+ var index = 0;
2726
+ for (; index < entries.length; index++) {
2727
+ if (entries[index].key === key) push$2(result, entries[index].value);
2728
+ }
2729
+ return result;
2730
+ },
2731
+ // `URLSearchParams.prototype.has` method
2732
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-has
2733
+ has: function has(name /* , value */) {
2734
+ var entries = getInternalParamsState(this).entries;
2735
+ var length = validateArgumentsLength$3(arguments.length, 1);
2736
+ var key = $toString$1(name);
2737
+ var $value = length < 2 ? undefined : arguments[1];
2738
+ var value = $value === undefined ? $value : $toString$1($value);
2739
+ var index = 0;
2740
+ while (index < entries.length) {
2741
+ var entry = entries[index++];
2742
+ if (entry.key === key && (value === undefined || entry.value === value)) return true;
2743
+ }
2744
+ return false;
2745
+ },
2746
+ // `URLSearchParams.prototype.set` method
2747
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-set
2748
+ set: function set(name, value) {
2749
+ var state = getInternalParamsState(this);
2750
+ validateArgumentsLength$3(arguments.length, 1);
2751
+ var entries = state.entries;
2752
+ var found = false;
2753
+ var key = $toString$1(name);
2754
+ var val = $toString$1(value);
2755
+ var index = 0;
2756
+ var entry;
2757
+ for (; index < entries.length; index++) {
2758
+ entry = entries[index];
2759
+ if (entry.key === key) {
2760
+ if (found) splice(entries, index--, 1);
2761
+ else {
2762
+ found = true;
2763
+ entry.value = val;
2764
+ }
2765
+ }
2766
+ }
2767
+ if (!found) push$2(entries, { key: key, value: val });
2768
+ if (!DESCRIPTORS$2) this.size = entries.length;
2769
+ state.updateURL();
2770
+ },
2771
+ // `URLSearchParams.prototype.sort` method
2772
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
2773
+ sort: function sort() {
2774
+ var state = getInternalParamsState(this);
2775
+ arraySort(state.entries, function (a, b) {
2776
+ return a.key > b.key ? 1 : -1;
2777
+ });
2778
+ state.updateURL();
2779
+ },
2780
+ // `URLSearchParams.prototype.forEach` method
2781
+ forEach: function forEach(callback /* , thisArg */) {
2782
+ var entries = getInternalParamsState(this).entries;
2783
+ var boundFunction = bind$1(callback, arguments.length > 1 ? arguments[1] : undefined);
2784
+ var index = 0;
2785
+ var entry;
2786
+ while (index < entries.length) {
2787
+ entry = entries[index++];
2788
+ boundFunction(entry.value, entry.key, this);
2789
+ }
2790
+ },
2791
+ // `URLSearchParams.prototype.keys` method
2792
+ keys: function keys() {
2793
+ return new URLSearchParamsIterator(this, 'keys');
2794
+ },
2795
+ // `URLSearchParams.prototype.values` method
2796
+ values: function values() {
2797
+ return new URLSearchParamsIterator(this, 'values');
2798
+ },
2799
+ // `URLSearchParams.prototype.entries` method
2800
+ entries: function entries() {
2801
+ return new URLSearchParamsIterator(this, 'entries');
2802
+ }
2803
+ }, { enumerable: true });
2804
+
2805
+ // `URLSearchParams.prototype[@@iterator]` method
2806
+ defineBuiltIn$3(URLSearchParamsPrototype$3, ITERATOR, URLSearchParamsPrototype$3.entries, { name: 'entries' });
2807
+
2808
+ // `URLSearchParams.prototype.toString` method
2809
+ // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
2810
+ defineBuiltIn$3(URLSearchParamsPrototype$3, 'toString', function toString() {
2811
+ return getInternalParamsState(this).serialize();
2812
+ }, { enumerable: true });
2813
+
2814
+ // `URLSearchParams.prototype.size` getter
2815
+ // https://github.com/whatwg/url/pull/734
2816
+ if (DESCRIPTORS$2) defineBuiltInAccessor$2(URLSearchParamsPrototype$3, 'size', {
2817
+ get: function size() {
2818
+ return getInternalParamsState(this).entries.length;
2819
+ },
2820
+ configurable: true,
2821
+ enumerable: true
2822
+ });
2823
+
2824
+ setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
2825
+
2826
+ $$2({ global: true, constructor: true, forced: !USE_NATIVE_URL$1 }, {
2827
+ URLSearchParams: URLSearchParamsConstructor
2828
+ });
2829
+
2830
+ // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
2831
+ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
2832
+ var headersHas = uncurryThis$4(HeadersPrototype.has);
2833
+ var headersSet = uncurryThis$4(HeadersPrototype.set);
2834
+
2835
+ var wrapRequestOptions = function (init) {
2836
+ if (isObject(init)) {
2837
+ var body = init.body;
2838
+ var headers;
2839
+ if (classof(body) === URL_SEARCH_PARAMS) {
2840
+ headers = init.headers ? new Headers(init.headers) : new Headers();
2841
+ if (!headersHas(headers, 'content-type')) {
2842
+ headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
2843
+ }
2844
+ return create(init, {
2845
+ body: createPropertyDescriptor(0, $toString$1(body)),
2846
+ headers: createPropertyDescriptor(0, headers)
2847
+ });
2848
+ }
2849
+ } return init;
2850
+ };
2851
+
2852
+ if (isCallable(nativeFetch)) {
2853
+ $$2({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
2854
+ fetch: function fetch(input /* , init */) {
2855
+ return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
2856
+ }
2857
+ });
2858
+ }
2859
+
2860
+ if (isCallable(NativeRequest)) {
2861
+ var RequestConstructor = function Request(input /* , init */) {
2862
+ anInstance$1(this, RequestPrototype);
2863
+ return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
2864
+ };
2865
+
2866
+ RequestPrototype.constructor = RequestConstructor;
2867
+ RequestConstructor.prototype = RequestPrototype;
2868
+
2869
+ $$2({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
2870
+ Request: RequestConstructor
2871
+ });
2872
+ }
2873
+ }
2874
+
2875
+ var web_urlSearchParams_constructor = {
2876
+ URLSearchParams: URLSearchParamsConstructor,
2877
+ getState: getInternalParamsState
2878
+ };
2879
+
2880
+ // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
2881
+
2882
+ var $$1 = _export;
2883
+ var DESCRIPTORS$1 = descriptors;
2884
+ var USE_NATIVE_URL = urlConstructorDetection;
2885
+ var global$1 = global$e;
2886
+ var bind = functionBindContext;
2887
+ var uncurryThis$3 = functionUncurryThis;
2888
+ var defineBuiltIn$2 = defineBuiltIn$9;
2889
+ var defineBuiltInAccessor$1 = defineBuiltInAccessor$3;
2890
+ var anInstance = anInstance$2;
2891
+ var hasOwn = hasOwnProperty_1;
2892
+ var assign = objectAssign;
2893
+ var arrayFrom = arrayFrom$1;
2894
+ var arraySlice = arraySlice$3;
2895
+ var codeAt = stringMultibyte.codeAt;
2896
+ var toASCII = stringPunycodeToAscii;
2897
+ var $toString = toString$5;
2898
+ var setToStringTag = setToStringTag$5;
2899
+ var validateArgumentsLength$2 = validateArgumentsLength$4;
2900
+ var URLSearchParamsModule = web_urlSearchParams_constructor;
2901
+ var InternalStateModule = internalState;
2902
+
2903
+ var setInternalState = InternalStateModule.set;
2904
+ var getInternalURLState = InternalStateModule.getterFor('URL');
2905
+ var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
2906
+ var getInternalSearchParamsState = URLSearchParamsModule.getState;
2907
+
2908
+ var NativeURL = global$1.URL;
2909
+ var TypeError$1 = global$1.TypeError;
2910
+ var parseInt = global$1.parseInt;
2911
+ var floor = Math.floor;
2912
+ var pow = Math.pow;
2913
+ var charAt = uncurryThis$3(''.charAt);
2914
+ var exec = uncurryThis$3(/./.exec);
2915
+ var join = uncurryThis$3([].join);
2916
+ var numberToString = uncurryThis$3(1.0.toString);
2917
+ var pop = uncurryThis$3([].pop);
2918
+ var push$1 = uncurryThis$3([].push);
2919
+ var replace = uncurryThis$3(''.replace);
2920
+ var shift = uncurryThis$3([].shift);
2921
+ var split = uncurryThis$3(''.split);
2922
+ var stringSlice = uncurryThis$3(''.slice);
2923
+ var toLowerCase = uncurryThis$3(''.toLowerCase);
2924
+ var unshift = uncurryThis$3([].unshift);
2925
+
2926
+ var INVALID_AUTHORITY = 'Invalid authority';
2927
+ var INVALID_SCHEME = 'Invalid scheme';
2928
+ var INVALID_HOST = 'Invalid host';
2929
+ var INVALID_PORT = 'Invalid port';
2930
+
2931
+ var ALPHA = /[a-z]/i;
2932
+ // eslint-disable-next-line regexp/no-obscure-range -- safe
2933
+ var ALPHANUMERIC = /[\d+-.a-z]/i;
2934
+ var DIGIT = /\d/;
2935
+ var HEX_START = /^0x/i;
2936
+ var OCT = /^[0-7]+$/;
2937
+ var DEC = /^\d+$/;
2938
+ var HEX = /^[\da-f]+$/i;
2939
+ /* eslint-disable regexp/no-control-character -- safe */
2940
+ var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
2941
+ var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
2942
+ var LEADING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+/;
2943
+ var TRAILING_C0_CONTROL_OR_SPACE = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/;
2944
+ var TAB_AND_NEW_LINE = /[\t\n\r]/g;
2945
+ /* eslint-enable regexp/no-control-character -- safe */
2946
+ var EOF;
2947
+
2948
+ // https://url.spec.whatwg.org/#ipv4-number-parser
2949
+ var parseIPv4 = function (input) {
2950
+ var parts = split(input, '.');
2951
+ var partsLength, numbers, index, part, radix, number, ipv4;
2952
+ if (parts.length && parts[parts.length - 1] === '') {
2953
+ parts.length--;
2954
+ }
2955
+ partsLength = parts.length;
2956
+ if (partsLength > 4) return input;
2957
+ numbers = [];
2958
+ for (index = 0; index < partsLength; index++) {
2959
+ part = parts[index];
2960
+ if (part === '') return input;
2961
+ radix = 10;
2962
+ if (part.length > 1 && charAt(part, 0) === '0') {
2963
+ radix = exec(HEX_START, part) ? 16 : 8;
2964
+ part = stringSlice(part, radix === 8 ? 1 : 2);
2965
+ }
2966
+ if (part === '') {
2967
+ number = 0;
2968
+ } else {
2969
+ if (!exec(radix === 10 ? DEC : radix === 8 ? OCT : HEX, part)) return input;
2970
+ number = parseInt(part, radix);
2971
+ }
2972
+ push$1(numbers, number);
2973
+ }
2974
+ for (index = 0; index < partsLength; index++) {
2975
+ number = numbers[index];
2976
+ if (index === partsLength - 1) {
2977
+ if (number >= pow(256, 5 - partsLength)) return null;
2978
+ } else if (number > 255) return null;
2979
+ }
2980
+ ipv4 = pop(numbers);
2981
+ for (index = 0; index < numbers.length; index++) {
2982
+ ipv4 += numbers[index] * pow(256, 3 - index);
2983
+ }
2984
+ return ipv4;
2985
+ };
2986
+
2987
+ // https://url.spec.whatwg.org/#concept-ipv6-parser
2988
+ // eslint-disable-next-line max-statements -- TODO
2989
+ var parseIPv6 = function (input) {
2990
+ var address = [0, 0, 0, 0, 0, 0, 0, 0];
2991
+ var pieceIndex = 0;
2992
+ var compress = null;
2993
+ var pointer = 0;
2994
+ var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
2995
+
2996
+ var chr = function () {
2997
+ return charAt(input, pointer);
2998
+ };
2999
+
3000
+ if (chr() === ':') {
3001
+ if (charAt(input, 1) !== ':') return;
3002
+ pointer += 2;
3003
+ pieceIndex++;
3004
+ compress = pieceIndex;
3005
+ }
3006
+ while (chr()) {
3007
+ if (pieceIndex === 8) return;
3008
+ if (chr() === ':') {
3009
+ if (compress !== null) return;
3010
+ pointer++;
3011
+ pieceIndex++;
3012
+ compress = pieceIndex;
3013
+ continue;
3014
+ }
3015
+ value = length = 0;
3016
+ while (length < 4 && exec(HEX, chr())) {
3017
+ value = value * 16 + parseInt(chr(), 16);
3018
+ pointer++;
3019
+ length++;
3020
+ }
3021
+ if (chr() === '.') {
3022
+ if (length === 0) return;
3023
+ pointer -= length;
3024
+ if (pieceIndex > 6) return;
3025
+ numbersSeen = 0;
3026
+ while (chr()) {
3027
+ ipv4Piece = null;
3028
+ if (numbersSeen > 0) {
3029
+ if (chr() === '.' && numbersSeen < 4) pointer++;
3030
+ else return;
3031
+ }
3032
+ if (!exec(DIGIT, chr())) return;
3033
+ while (exec(DIGIT, chr())) {
3034
+ number = parseInt(chr(), 10);
3035
+ if (ipv4Piece === null) ipv4Piece = number;
3036
+ else if (ipv4Piece === 0) return;
3037
+ else ipv4Piece = ipv4Piece * 10 + number;
3038
+ if (ipv4Piece > 255) return;
3039
+ pointer++;
3040
+ }
3041
+ address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
3042
+ numbersSeen++;
3043
+ if (numbersSeen === 2 || numbersSeen === 4) pieceIndex++;
3044
+ }
3045
+ if (numbersSeen !== 4) return;
3046
+ break;
3047
+ } else if (chr() === ':') {
3048
+ pointer++;
3049
+ if (!chr()) return;
3050
+ } else if (chr()) return;
3051
+ address[pieceIndex++] = value;
3052
+ }
3053
+ if (compress !== null) {
3054
+ swaps = pieceIndex - compress;
3055
+ pieceIndex = 7;
3056
+ while (pieceIndex !== 0 && swaps > 0) {
3057
+ swap = address[pieceIndex];
3058
+ address[pieceIndex--] = address[compress + swaps - 1];
3059
+ address[compress + --swaps] = swap;
3060
+ }
3061
+ } else if (pieceIndex !== 8) return;
3062
+ return address;
3063
+ };
3064
+
3065
+ var findLongestZeroSequence = function (ipv6) {
3066
+ var maxIndex = null;
3067
+ var maxLength = 1;
3068
+ var currStart = null;
3069
+ var currLength = 0;
3070
+ var index = 0;
3071
+ for (; index < 8; index++) {
3072
+ if (ipv6[index] !== 0) {
3073
+ if (currLength > maxLength) {
3074
+ maxIndex = currStart;
3075
+ maxLength = currLength;
3076
+ }
3077
+ currStart = null;
3078
+ currLength = 0;
3079
+ } else {
3080
+ if (currStart === null) currStart = index;
3081
+ ++currLength;
3082
+ }
3083
+ }
3084
+ if (currLength > maxLength) {
3085
+ maxIndex = currStart;
3086
+ maxLength = currLength;
3087
+ }
3088
+ return maxIndex;
3089
+ };
3090
+
3091
+ // https://url.spec.whatwg.org/#host-serializing
3092
+ var serializeHost = function (host) {
3093
+ var result, index, compress, ignore0;
3094
+ // ipv4
3095
+ if (typeof host == 'number') {
3096
+ result = [];
3097
+ for (index = 0; index < 4; index++) {
3098
+ unshift(result, host % 256);
3099
+ host = floor(host / 256);
3100
+ } return join(result, '.');
3101
+ // ipv6
3102
+ } else if (typeof host == 'object') {
3103
+ result = '';
3104
+ compress = findLongestZeroSequence(host);
3105
+ for (index = 0; index < 8; index++) {
3106
+ if (ignore0 && host[index] === 0) continue;
3107
+ if (ignore0) ignore0 = false;
3108
+ if (compress === index) {
3109
+ result += index ? ':' : '::';
3110
+ ignore0 = true;
3111
+ } else {
3112
+ result += numberToString(host[index], 16);
3113
+ if (index < 7) result += ':';
3114
+ }
3115
+ }
3116
+ return '[' + result + ']';
3117
+ } return host;
3118
+ };
3119
+
3120
+ var C0ControlPercentEncodeSet = {};
3121
+ var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
3122
+ ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
3123
+ });
3124
+ var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
3125
+ '#': 1, '?': 1, '{': 1, '}': 1
3126
+ });
3127
+ var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
3128
+ '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
3129
+ });
3130
+
3131
+ var percentEncode = function (chr, set) {
3132
+ var code = codeAt(chr, 0);
3133
+ return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
3134
+ };
3135
+
3136
+ // https://url.spec.whatwg.org/#special-scheme
3137
+ var specialSchemes = {
3138
+ ftp: 21,
3139
+ file: null,
3140
+ http: 80,
3141
+ https: 443,
3142
+ ws: 80,
3143
+ wss: 443
3144
+ };
3145
+
3146
+ // https://url.spec.whatwg.org/#windows-drive-letter
3147
+ var isWindowsDriveLetter = function (string, normalized) {
3148
+ var second;
3149
+ return string.length === 2 && exec(ALPHA, charAt(string, 0))
3150
+ && ((second = charAt(string, 1)) === ':' || (!normalized && second === '|'));
3151
+ };
3152
+
3153
+ // https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
3154
+ var startsWithWindowsDriveLetter = function (string) {
3155
+ var third;
3156
+ return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
3157
+ string.length === 2 ||
3158
+ ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
3159
+ );
3160
+ };
3161
+
3162
+ // https://url.spec.whatwg.org/#single-dot-path-segment
3163
+ var isSingleDot = function (segment) {
3164
+ return segment === '.' || toLowerCase(segment) === '%2e';
3165
+ };
3166
+
3167
+ // https://url.spec.whatwg.org/#double-dot-path-segment
3168
+ var isDoubleDot = function (segment) {
3169
+ segment = toLowerCase(segment);
3170
+ return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
3171
+ };
3172
+
3173
+ // States:
3174
+ var SCHEME_START = {};
3175
+ var SCHEME = {};
3176
+ var NO_SCHEME = {};
3177
+ var SPECIAL_RELATIVE_OR_AUTHORITY = {};
3178
+ var PATH_OR_AUTHORITY = {};
3179
+ var RELATIVE = {};
3180
+ var RELATIVE_SLASH = {};
3181
+ var SPECIAL_AUTHORITY_SLASHES = {};
3182
+ var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
3183
+ var AUTHORITY = {};
3184
+ var HOST = {};
3185
+ var HOSTNAME = {};
3186
+ var PORT = {};
3187
+ var FILE = {};
3188
+ var FILE_SLASH = {};
3189
+ var FILE_HOST = {};
3190
+ var PATH_START = {};
3191
+ var PATH = {};
3192
+ var CANNOT_BE_A_BASE_URL_PATH = {};
3193
+ var QUERY = {};
3194
+ var FRAGMENT = {};
3195
+
3196
+ var URLState = function (url, isBase, base) {
3197
+ var urlString = $toString(url);
3198
+ var baseState, failure, searchParams;
3199
+ if (isBase) {
3200
+ failure = this.parse(urlString);
3201
+ if (failure) throw new TypeError$1(failure);
3202
+ this.searchParams = null;
3203
+ } else {
3204
+ if (base !== undefined) baseState = new URLState(base, true);
3205
+ failure = this.parse(urlString, null, baseState);
3206
+ if (failure) throw new TypeError$1(failure);
3207
+ searchParams = getInternalSearchParamsState(new URLSearchParams$1());
3208
+ searchParams.bindURL(this);
3209
+ this.searchParams = searchParams;
3210
+ }
3211
+ };
3212
+
3213
+ URLState.prototype = {
3214
+ type: 'URL',
3215
+ // https://url.spec.whatwg.org/#url-parsing
3216
+ // eslint-disable-next-line max-statements -- TODO
3217
+ parse: function (input, stateOverride, base) {
3218
+ var url = this;
3219
+ var state = stateOverride || SCHEME_START;
3220
+ var pointer = 0;
3221
+ var buffer = '';
3222
+ var seenAt = false;
3223
+ var seenBracket = false;
3224
+ var seenPasswordToken = false;
3225
+ var codePoints, chr, bufferCodePoints, failure;
3226
+
3227
+ input = $toString(input);
3228
+
3229
+ if (!stateOverride) {
3230
+ url.scheme = '';
3231
+ url.username = '';
3232
+ url.password = '';
3233
+ url.host = null;
3234
+ url.port = null;
3235
+ url.path = [];
3236
+ url.query = null;
3237
+ url.fragment = null;
3238
+ url.cannotBeABaseURL = false;
3239
+ input = replace(input, LEADING_C0_CONTROL_OR_SPACE, '');
3240
+ input = replace(input, TRAILING_C0_CONTROL_OR_SPACE, '$1');
3241
+ }
3242
+
3243
+ input = replace(input, TAB_AND_NEW_LINE, '');
3244
+
3245
+ codePoints = arrayFrom(input);
3246
+
3247
+ while (pointer <= codePoints.length) {
3248
+ chr = codePoints[pointer];
3249
+ switch (state) {
3250
+ case SCHEME_START:
3251
+ if (chr && exec(ALPHA, chr)) {
3252
+ buffer += toLowerCase(chr);
3253
+ state = SCHEME;
3254
+ } else if (!stateOverride) {
3255
+ state = NO_SCHEME;
3256
+ continue;
3257
+ } else return INVALID_SCHEME;
3258
+ break;
3259
+
3260
+ case SCHEME:
3261
+ if (chr && (exec(ALPHANUMERIC, chr) || chr === '+' || chr === '-' || chr === '.')) {
3262
+ buffer += toLowerCase(chr);
3263
+ } else if (chr === ':') {
3264
+ if (stateOverride && (
3265
+ (url.isSpecial() !== hasOwn(specialSchemes, buffer)) ||
3266
+ (buffer === 'file' && (url.includesCredentials() || url.port !== null)) ||
3267
+ (url.scheme === 'file' && !url.host)
3268
+ )) return;
3269
+ url.scheme = buffer;
3270
+ if (stateOverride) {
3271
+ if (url.isSpecial() && specialSchemes[url.scheme] === url.port) url.port = null;
3272
+ return;
3273
+ }
3274
+ buffer = '';
3275
+ if (url.scheme === 'file') {
3276
+ state = FILE;
3277
+ } else if (url.isSpecial() && base && base.scheme === url.scheme) {
3278
+ state = SPECIAL_RELATIVE_OR_AUTHORITY;
3279
+ } else if (url.isSpecial()) {
3280
+ state = SPECIAL_AUTHORITY_SLASHES;
3281
+ } else if (codePoints[pointer + 1] === '/') {
3282
+ state = PATH_OR_AUTHORITY;
3283
+ pointer++;
3284
+ } else {
3285
+ url.cannotBeABaseURL = true;
3286
+ push$1(url.path, '');
3287
+ state = CANNOT_BE_A_BASE_URL_PATH;
3288
+ }
3289
+ } else if (!stateOverride) {
3290
+ buffer = '';
3291
+ state = NO_SCHEME;
3292
+ pointer = 0;
3293
+ continue;
3294
+ } else return INVALID_SCHEME;
3295
+ break;
3296
+
3297
+ case NO_SCHEME:
3298
+ if (!base || (base.cannotBeABaseURL && chr !== '#')) return INVALID_SCHEME;
3299
+ if (base.cannotBeABaseURL && chr === '#') {
3300
+ url.scheme = base.scheme;
3301
+ url.path = arraySlice(base.path);
3302
+ url.query = base.query;
3303
+ url.fragment = '';
3304
+ url.cannotBeABaseURL = true;
3305
+ state = FRAGMENT;
3306
+ break;
3307
+ }
3308
+ state = base.scheme === 'file' ? FILE : RELATIVE;
3309
+ continue;
3310
+
3311
+ case SPECIAL_RELATIVE_OR_AUTHORITY:
3312
+ if (chr === '/' && codePoints[pointer + 1] === '/') {
3313
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3314
+ pointer++;
3315
+ } else {
3316
+ state = RELATIVE;
3317
+ continue;
3318
+ } break;
3319
+
3320
+ case PATH_OR_AUTHORITY:
3321
+ if (chr === '/') {
3322
+ state = AUTHORITY;
3323
+ break;
3324
+ } else {
3325
+ state = PATH;
3326
+ continue;
3327
+ }
3328
+
3329
+ case RELATIVE:
3330
+ url.scheme = base.scheme;
3331
+ if (chr === EOF) {
3332
+ url.username = base.username;
3333
+ url.password = base.password;
3334
+ url.host = base.host;
3335
+ url.port = base.port;
3336
+ url.path = arraySlice(base.path);
3337
+ url.query = base.query;
3338
+ } else if (chr === '/' || (chr === '\\' && url.isSpecial())) {
3339
+ state = RELATIVE_SLASH;
3340
+ } else if (chr === '?') {
3341
+ url.username = base.username;
3342
+ url.password = base.password;
3343
+ url.host = base.host;
3344
+ url.port = base.port;
3345
+ url.path = arraySlice(base.path);
3346
+ url.query = '';
3347
+ state = QUERY;
3348
+ } else if (chr === '#') {
3349
+ url.username = base.username;
3350
+ url.password = base.password;
3351
+ url.host = base.host;
3352
+ url.port = base.port;
3353
+ url.path = arraySlice(base.path);
3354
+ url.query = base.query;
3355
+ url.fragment = '';
3356
+ state = FRAGMENT;
3357
+ } else {
3358
+ url.username = base.username;
3359
+ url.password = base.password;
3360
+ url.host = base.host;
3361
+ url.port = base.port;
3362
+ url.path = arraySlice(base.path);
3363
+ url.path.length--;
3364
+ state = PATH;
3365
+ continue;
3366
+ } break;
3367
+
3368
+ case RELATIVE_SLASH:
3369
+ if (url.isSpecial() && (chr === '/' || chr === '\\')) {
3370
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3371
+ } else if (chr === '/') {
3372
+ state = AUTHORITY;
3373
+ } else {
3374
+ url.username = base.username;
3375
+ url.password = base.password;
3376
+ url.host = base.host;
3377
+ url.port = base.port;
3378
+ state = PATH;
3379
+ continue;
3380
+ } break;
3381
+
3382
+ case SPECIAL_AUTHORITY_SLASHES:
3383
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
3384
+ if (chr !== '/' || charAt(buffer, pointer + 1) !== '/') continue;
3385
+ pointer++;
3386
+ break;
3387
+
3388
+ case SPECIAL_AUTHORITY_IGNORE_SLASHES:
3389
+ if (chr !== '/' && chr !== '\\') {
3390
+ state = AUTHORITY;
3391
+ continue;
3392
+ } break;
3393
+
3394
+ case AUTHORITY:
3395
+ if (chr === '@') {
3396
+ if (seenAt) buffer = '%40' + buffer;
3397
+ seenAt = true;
3398
+ bufferCodePoints = arrayFrom(buffer);
3399
+ for (var i = 0; i < bufferCodePoints.length; i++) {
3400
+ var codePoint = bufferCodePoints[i];
3401
+ if (codePoint === ':' && !seenPasswordToken) {
3402
+ seenPasswordToken = true;
3403
+ continue;
3404
+ }
3405
+ var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
3406
+ if (seenPasswordToken) url.password += encodedCodePoints;
3407
+ else url.username += encodedCodePoints;
3408
+ }
3409
+ buffer = '';
3410
+ } else if (
3411
+ chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
3412
+ (chr === '\\' && url.isSpecial())
3413
+ ) {
3414
+ if (seenAt && buffer === '') return INVALID_AUTHORITY;
3415
+ pointer -= arrayFrom(buffer).length + 1;
3416
+ buffer = '';
3417
+ state = HOST;
3418
+ } else buffer += chr;
3419
+ break;
3420
+
3421
+ case HOST:
3422
+ case HOSTNAME:
3423
+ if (stateOverride && url.scheme === 'file') {
3424
+ state = FILE_HOST;
3425
+ continue;
3426
+ } else if (chr === ':' && !seenBracket) {
3427
+ if (buffer === '') return INVALID_HOST;
3428
+ failure = url.parseHost(buffer);
3429
+ if (failure) return failure;
3430
+ buffer = '';
3431
+ state = PORT;
3432
+ if (stateOverride === HOSTNAME) return;
3433
+ } else if (
3434
+ chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
3435
+ (chr === '\\' && url.isSpecial())
3436
+ ) {
3437
+ if (url.isSpecial() && buffer === '') return INVALID_HOST;
3438
+ if (stateOverride && buffer === '' && (url.includesCredentials() || url.port !== null)) return;
3439
+ failure = url.parseHost(buffer);
3440
+ if (failure) return failure;
3441
+ buffer = '';
3442
+ state = PATH_START;
3443
+ if (stateOverride) return;
3444
+ continue;
3445
+ } else {
3446
+ if (chr === '[') seenBracket = true;
3447
+ else if (chr === ']') seenBracket = false;
3448
+ buffer += chr;
3449
+ } break;
3450
+
3451
+ case PORT:
3452
+ if (exec(DIGIT, chr)) {
3453
+ buffer += chr;
3454
+ } else if (
3455
+ chr === EOF || chr === '/' || chr === '?' || chr === '#' ||
3456
+ (chr === '\\' && url.isSpecial()) ||
3457
+ stateOverride
3458
+ ) {
3459
+ if (buffer !== '') {
3460
+ var port = parseInt(buffer, 10);
3461
+ if (port > 0xFFFF) return INVALID_PORT;
3462
+ url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
3463
+ buffer = '';
3464
+ }
3465
+ if (stateOverride) return;
3466
+ state = PATH_START;
3467
+ continue;
3468
+ } else return INVALID_PORT;
3469
+ break;
3470
+
3471
+ case FILE:
3472
+ url.scheme = 'file';
3473
+ if (chr === '/' || chr === '\\') state = FILE_SLASH;
3474
+ else if (base && base.scheme === 'file') {
3475
+ switch (chr) {
3476
+ case EOF:
3477
+ url.host = base.host;
3478
+ url.path = arraySlice(base.path);
3479
+ url.query = base.query;
3480
+ break;
3481
+ case '?':
3482
+ url.host = base.host;
3483
+ url.path = arraySlice(base.path);
3484
+ url.query = '';
3485
+ state = QUERY;
3486
+ break;
3487
+ case '#':
3488
+ url.host = base.host;
3489
+ url.path = arraySlice(base.path);
3490
+ url.query = base.query;
3491
+ url.fragment = '';
3492
+ state = FRAGMENT;
3493
+ break;
3494
+ default:
3495
+ if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
3496
+ url.host = base.host;
3497
+ url.path = arraySlice(base.path);
3498
+ url.shortenPath();
3499
+ }
3500
+ state = PATH;
3501
+ continue;
3502
+ }
3503
+ } else {
3504
+ state = PATH;
3505
+ continue;
3506
+ } break;
3507
+
3508
+ case FILE_SLASH:
3509
+ if (chr === '/' || chr === '\\') {
3510
+ state = FILE_HOST;
3511
+ break;
3512
+ }
3513
+ if (base && base.scheme === 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
3514
+ if (isWindowsDriveLetter(base.path[0], true)) push$1(url.path, base.path[0]);
3515
+ else url.host = base.host;
3516
+ }
3517
+ state = PATH;
3518
+ continue;
3519
+
3520
+ case FILE_HOST:
3521
+ if (chr === EOF || chr === '/' || chr === '\\' || chr === '?' || chr === '#') {
3522
+ if (!stateOverride && isWindowsDriveLetter(buffer)) {
3523
+ state = PATH;
3524
+ } else if (buffer === '') {
3525
+ url.host = '';
3526
+ if (stateOverride) return;
3527
+ state = PATH_START;
3528
+ } else {
3529
+ failure = url.parseHost(buffer);
3530
+ if (failure) return failure;
3531
+ if (url.host === 'localhost') url.host = '';
3532
+ if (stateOverride) return;
3533
+ buffer = '';
3534
+ state = PATH_START;
3535
+ } continue;
3536
+ } else buffer += chr;
3537
+ break;
3538
+
3539
+ case PATH_START:
3540
+ if (url.isSpecial()) {
3541
+ state = PATH;
3542
+ if (chr !== '/' && chr !== '\\') continue;
3543
+ } else if (!stateOverride && chr === '?') {
3544
+ url.query = '';
3545
+ state = QUERY;
3546
+ } else if (!stateOverride && chr === '#') {
3547
+ url.fragment = '';
3548
+ state = FRAGMENT;
3549
+ } else if (chr !== EOF) {
3550
+ state = PATH;
3551
+ if (chr !== '/') continue;
3552
+ } break;
3553
+
3554
+ case PATH:
3555
+ if (
3556
+ chr === EOF || chr === '/' ||
3557
+ (chr === '\\' && url.isSpecial()) ||
3558
+ (!stateOverride && (chr === '?' || chr === '#'))
3559
+ ) {
3560
+ if (isDoubleDot(buffer)) {
3561
+ url.shortenPath();
3562
+ if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
3563
+ push$1(url.path, '');
3564
+ }
3565
+ } else if (isSingleDot(buffer)) {
3566
+ if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
3567
+ push$1(url.path, '');
3568
+ }
3569
+ } else {
3570
+ if (url.scheme === 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
3571
+ if (url.host) url.host = '';
3572
+ buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
3573
+ }
3574
+ push$1(url.path, buffer);
3575
+ }
3576
+ buffer = '';
3577
+ if (url.scheme === 'file' && (chr === EOF || chr === '?' || chr === '#')) {
3578
+ while (url.path.length > 1 && url.path[0] === '') {
3579
+ shift(url.path);
3580
+ }
3581
+ }
3582
+ if (chr === '?') {
3583
+ url.query = '';
3584
+ state = QUERY;
3585
+ } else if (chr === '#') {
3586
+ url.fragment = '';
3587
+ state = FRAGMENT;
3588
+ }
3589
+ } else {
3590
+ buffer += percentEncode(chr, pathPercentEncodeSet);
3591
+ } break;
3592
+
3593
+ case CANNOT_BE_A_BASE_URL_PATH:
3594
+ if (chr === '?') {
3595
+ url.query = '';
3596
+ state = QUERY;
3597
+ } else if (chr === '#') {
3598
+ url.fragment = '';
3599
+ state = FRAGMENT;
3600
+ } else if (chr !== EOF) {
3601
+ url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
3602
+ } break;
3603
+
3604
+ case QUERY:
3605
+ if (!stateOverride && chr === '#') {
3606
+ url.fragment = '';
3607
+ state = FRAGMENT;
3608
+ } else if (chr !== EOF) {
3609
+ if (chr === "'" && url.isSpecial()) url.query += '%27';
3610
+ else if (chr === '#') url.query += '%23';
3611
+ else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
3612
+ } break;
3613
+
3614
+ case FRAGMENT:
3615
+ if (chr !== EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
3616
+ break;
3617
+ }
3618
+
3619
+ pointer++;
3620
+ }
3621
+ },
3622
+ // https://url.spec.whatwg.org/#host-parsing
3623
+ parseHost: function (input) {
3624
+ var result, codePoints, index;
3625
+ if (charAt(input, 0) === '[') {
3626
+ if (charAt(input, input.length - 1) !== ']') return INVALID_HOST;
3627
+ result = parseIPv6(stringSlice(input, 1, -1));
3628
+ if (!result) return INVALID_HOST;
3629
+ this.host = result;
3630
+ // opaque host
3631
+ } else if (!this.isSpecial()) {
3632
+ if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST;
3633
+ result = '';
3634
+ codePoints = arrayFrom(input);
3635
+ for (index = 0; index < codePoints.length; index++) {
3636
+ result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
3637
+ }
3638
+ this.host = result;
3639
+ } else {
3640
+ input = toASCII(input);
3641
+ if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;
3642
+ result = parseIPv4(input);
3643
+ if (result === null) return INVALID_HOST;
3644
+ this.host = result;
3645
+ }
3646
+ },
3647
+ // https://url.spec.whatwg.org/#cannot-have-a-username-password-port
3648
+ cannotHaveUsernamePasswordPort: function () {
3649
+ return !this.host || this.cannotBeABaseURL || this.scheme === 'file';
3650
+ },
3651
+ // https://url.spec.whatwg.org/#include-credentials
3652
+ includesCredentials: function () {
3653
+ return this.username !== '' || this.password !== '';
3654
+ },
3655
+ // https://url.spec.whatwg.org/#is-special
3656
+ isSpecial: function () {
3657
+ return hasOwn(specialSchemes, this.scheme);
3658
+ },
3659
+ // https://url.spec.whatwg.org/#shorten-a-urls-path
3660
+ shortenPath: function () {
3661
+ var path = this.path;
3662
+ var pathSize = path.length;
3663
+ if (pathSize && (this.scheme !== 'file' || pathSize !== 1 || !isWindowsDriveLetter(path[0], true))) {
3664
+ path.length--;
3665
+ }
3666
+ },
3667
+ // https://url.spec.whatwg.org/#concept-url-serializer
3668
+ serialize: function () {
3669
+ var url = this;
3670
+ var scheme = url.scheme;
3671
+ var username = url.username;
3672
+ var password = url.password;
3673
+ var host = url.host;
3674
+ var port = url.port;
3675
+ var path = url.path;
3676
+ var query = url.query;
3677
+ var fragment = url.fragment;
3678
+ var output = scheme + ':';
3679
+ if (host !== null) {
3680
+ output += '//';
3681
+ if (url.includesCredentials()) {
3682
+ output += username + (password ? ':' + password : '') + '@';
3683
+ }
3684
+ output += serializeHost(host);
3685
+ if (port !== null) output += ':' + port;
3686
+ } else if (scheme === 'file') output += '//';
3687
+ output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
3688
+ if (query !== null) output += '?' + query;
3689
+ if (fragment !== null) output += '#' + fragment;
3690
+ return output;
3691
+ },
3692
+ // https://url.spec.whatwg.org/#dom-url-href
3693
+ setHref: function (href) {
3694
+ var failure = this.parse(href);
3695
+ if (failure) throw new TypeError$1(failure);
3696
+ this.searchParams.update();
3697
+ },
3698
+ // https://url.spec.whatwg.org/#dom-url-origin
3699
+ getOrigin: function () {
3700
+ var scheme = this.scheme;
3701
+ var port = this.port;
3702
+ if (scheme === 'blob') try {
3703
+ return new URLConstructor(scheme.path[0]).origin;
3704
+ } catch (error) {
3705
+ return 'null';
3706
+ }
3707
+ if (scheme === 'file' || !this.isSpecial()) return 'null';
3708
+ return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
3709
+ },
3710
+ // https://url.spec.whatwg.org/#dom-url-protocol
3711
+ getProtocol: function () {
3712
+ return this.scheme + ':';
3713
+ },
3714
+ setProtocol: function (protocol) {
3715
+ this.parse($toString(protocol) + ':', SCHEME_START);
3716
+ },
3717
+ // https://url.spec.whatwg.org/#dom-url-username
3718
+ getUsername: function () {
3719
+ return this.username;
3720
+ },
3721
+ setUsername: function (username) {
3722
+ var codePoints = arrayFrom($toString(username));
3723
+ if (this.cannotHaveUsernamePasswordPort()) return;
3724
+ this.username = '';
3725
+ for (var i = 0; i < codePoints.length; i++) {
3726
+ this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
3727
+ }
3728
+ },
3729
+ // https://url.spec.whatwg.org/#dom-url-password
3730
+ getPassword: function () {
3731
+ return this.password;
3732
+ },
3733
+ setPassword: function (password) {
3734
+ var codePoints = arrayFrom($toString(password));
3735
+ if (this.cannotHaveUsernamePasswordPort()) return;
3736
+ this.password = '';
3737
+ for (var i = 0; i < codePoints.length; i++) {
3738
+ this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
3739
+ }
3740
+ },
3741
+ // https://url.spec.whatwg.org/#dom-url-host
3742
+ getHost: function () {
3743
+ var host = this.host;
3744
+ var port = this.port;
3745
+ return host === null ? ''
3746
+ : port === null ? serializeHost(host)
3747
+ : serializeHost(host) + ':' + port;
3748
+ },
3749
+ setHost: function (host) {
3750
+ if (this.cannotBeABaseURL) return;
3751
+ this.parse(host, HOST);
3752
+ },
3753
+ // https://url.spec.whatwg.org/#dom-url-hostname
3754
+ getHostname: function () {
3755
+ var host = this.host;
3756
+ return host === null ? '' : serializeHost(host);
3757
+ },
3758
+ setHostname: function (hostname) {
3759
+ if (this.cannotBeABaseURL) return;
3760
+ this.parse(hostname, HOSTNAME);
3761
+ },
3762
+ // https://url.spec.whatwg.org/#dom-url-port
3763
+ getPort: function () {
3764
+ var port = this.port;
3765
+ return port === null ? '' : $toString(port);
3766
+ },
3767
+ setPort: function (port) {
3768
+ if (this.cannotHaveUsernamePasswordPort()) return;
3769
+ port = $toString(port);
3770
+ if (port === '') this.port = null;
3771
+ else this.parse(port, PORT);
3772
+ },
3773
+ // https://url.spec.whatwg.org/#dom-url-pathname
3774
+ getPathname: function () {
3775
+ var path = this.path;
3776
+ return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
3777
+ },
3778
+ setPathname: function (pathname) {
3779
+ if (this.cannotBeABaseURL) return;
3780
+ this.path = [];
3781
+ this.parse(pathname, PATH_START);
3782
+ },
3783
+ // https://url.spec.whatwg.org/#dom-url-search
3784
+ getSearch: function () {
3785
+ var query = this.query;
3786
+ return query ? '?' + query : '';
3787
+ },
3788
+ setSearch: function (search) {
3789
+ search = $toString(search);
3790
+ if (search === '') {
3791
+ this.query = null;
3792
+ } else {
3793
+ if (charAt(search, 0) === '?') search = stringSlice(search, 1);
3794
+ this.query = '';
3795
+ this.parse(search, QUERY);
3796
+ }
3797
+ this.searchParams.update();
3798
+ },
3799
+ // https://url.spec.whatwg.org/#dom-url-searchparams
3800
+ getSearchParams: function () {
3801
+ return this.searchParams.facade;
3802
+ },
3803
+ // https://url.spec.whatwg.org/#dom-url-hash
3804
+ getHash: function () {
3805
+ var fragment = this.fragment;
3806
+ return fragment ? '#' + fragment : '';
3807
+ },
3808
+ setHash: function (hash) {
3809
+ hash = $toString(hash);
3810
+ if (hash === '') {
3811
+ this.fragment = null;
3812
+ return;
3813
+ }
3814
+ if (charAt(hash, 0) === '#') hash = stringSlice(hash, 1);
3815
+ this.fragment = '';
3816
+ this.parse(hash, FRAGMENT);
3817
+ },
3818
+ update: function () {
3819
+ this.query = this.searchParams.serialize() || null;
3820
+ }
3821
+ };
3822
+
3823
+ // `URL` constructor
3824
+ // https://url.spec.whatwg.org/#url-class
3825
+ var URLConstructor = function URL(url /* , base */) {
3826
+ var that = anInstance(this, URLPrototype);
3827
+ var base = validateArgumentsLength$2(arguments.length, 1) > 1 ? arguments[1] : undefined;
3828
+ var state = setInternalState(that, new URLState(url, false, base));
3829
+ if (!DESCRIPTORS$1) {
3830
+ that.href = state.serialize();
3831
+ that.origin = state.getOrigin();
3832
+ that.protocol = state.getProtocol();
3833
+ that.username = state.getUsername();
3834
+ that.password = state.getPassword();
3835
+ that.host = state.getHost();
3836
+ that.hostname = state.getHostname();
3837
+ that.port = state.getPort();
3838
+ that.pathname = state.getPathname();
3839
+ that.search = state.getSearch();
3840
+ that.searchParams = state.getSearchParams();
3841
+ that.hash = state.getHash();
3842
+ }
3843
+ };
3844
+
3845
+ var URLPrototype = URLConstructor.prototype;
3846
+
3847
+ var accessorDescriptor = function (getter, setter) {
3848
+ return {
3849
+ get: function () {
3850
+ return getInternalURLState(this)[getter]();
3851
+ },
3852
+ set: setter && function (value) {
3853
+ return getInternalURLState(this)[setter](value);
3854
+ },
3855
+ configurable: true,
3856
+ enumerable: true
3857
+ };
3858
+ };
3859
+
3860
+ if (DESCRIPTORS$1) {
3861
+ // `URL.prototype.href` accessors pair
3862
+ // https://url.spec.whatwg.org/#dom-url-href
3863
+ defineBuiltInAccessor$1(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref'));
3864
+ // `URL.prototype.origin` getter
3865
+ // https://url.spec.whatwg.org/#dom-url-origin
3866
+ defineBuiltInAccessor$1(URLPrototype, 'origin', accessorDescriptor('getOrigin'));
3867
+ // `URL.prototype.protocol` accessors pair
3868
+ // https://url.spec.whatwg.org/#dom-url-protocol
3869
+ defineBuiltInAccessor$1(URLPrototype, 'protocol', accessorDescriptor('getProtocol', 'setProtocol'));
3870
+ // `URL.prototype.username` accessors pair
3871
+ // https://url.spec.whatwg.org/#dom-url-username
3872
+ defineBuiltInAccessor$1(URLPrototype, 'username', accessorDescriptor('getUsername', 'setUsername'));
3873
+ // `URL.prototype.password` accessors pair
3874
+ // https://url.spec.whatwg.org/#dom-url-password
3875
+ defineBuiltInAccessor$1(URLPrototype, 'password', accessorDescriptor('getPassword', 'setPassword'));
3876
+ // `URL.prototype.host` accessors pair
3877
+ // https://url.spec.whatwg.org/#dom-url-host
3878
+ defineBuiltInAccessor$1(URLPrototype, 'host', accessorDescriptor('getHost', 'setHost'));
3879
+ // `URL.prototype.hostname` accessors pair
3880
+ // https://url.spec.whatwg.org/#dom-url-hostname
3881
+ defineBuiltInAccessor$1(URLPrototype, 'hostname', accessorDescriptor('getHostname', 'setHostname'));
3882
+ // `URL.prototype.port` accessors pair
3883
+ // https://url.spec.whatwg.org/#dom-url-port
3884
+ defineBuiltInAccessor$1(URLPrototype, 'port', accessorDescriptor('getPort', 'setPort'));
3885
+ // `URL.prototype.pathname` accessors pair
3886
+ // https://url.spec.whatwg.org/#dom-url-pathname
3887
+ defineBuiltInAccessor$1(URLPrototype, 'pathname', accessorDescriptor('getPathname', 'setPathname'));
3888
+ // `URL.prototype.search` accessors pair
3889
+ // https://url.spec.whatwg.org/#dom-url-search
3890
+ defineBuiltInAccessor$1(URLPrototype, 'search', accessorDescriptor('getSearch', 'setSearch'));
3891
+ // `URL.prototype.searchParams` getter
3892
+ // https://url.spec.whatwg.org/#dom-url-searchparams
3893
+ defineBuiltInAccessor$1(URLPrototype, 'searchParams', accessorDescriptor('getSearchParams'));
3894
+ // `URL.prototype.hash` accessors pair
3895
+ // https://url.spec.whatwg.org/#dom-url-hash
3896
+ defineBuiltInAccessor$1(URLPrototype, 'hash', accessorDescriptor('getHash', 'setHash'));
3897
+ }
3898
+
3899
+ // `URL.prototype.toJSON` method
3900
+ // https://url.spec.whatwg.org/#dom-url-tojson
3901
+ defineBuiltIn$2(URLPrototype, 'toJSON', function toJSON() {
3902
+ return getInternalURLState(this).serialize();
3903
+ }, { enumerable: true });
3904
+
3905
+ // `URL.prototype.toString` method
3906
+ // https://url.spec.whatwg.org/#URL-stringification-behavior
3907
+ defineBuiltIn$2(URLPrototype, 'toString', function toString() {
3908
+ return getInternalURLState(this).serialize();
3909
+ }, { enumerable: true });
3910
+
3911
+ if (NativeURL) {
3912
+ var nativeCreateObjectURL = NativeURL.createObjectURL;
3913
+ var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
3914
+ // `URL.createObjectURL` method
3915
+ // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
3916
+ if (nativeCreateObjectURL) defineBuiltIn$2(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
3917
+ // `URL.revokeObjectURL` method
3918
+ // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
3919
+ if (nativeRevokeObjectURL) defineBuiltIn$2(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
3920
+ }
3921
+
3922
+ setToStringTag(URLConstructor, 'URL');
3923
+
3924
+ $$1({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$1 }, {
3925
+ URL: URLConstructor
3926
+ });
3927
+
3928
+ var $ = _export;
3929
+ var call = functionCall;
3930
+
3931
+ // `URL.prototype.toJSON` method
3932
+ // https://url.spec.whatwg.org/#dom-url-tojson
3933
+ $({ target: 'URL', proto: true, enumerable: true }, {
3934
+ toJSON: function toJSON() {
3935
+ return call(URL.prototype.toString, this);
3936
+ }
3937
+ });
3938
+
3939
+ var defineBuiltIn$1 = defineBuiltIn$9;
3940
+ var uncurryThis$2 = functionUncurryThis;
3941
+ var toString$1 = toString$5;
3942
+ var validateArgumentsLength$1 = validateArgumentsLength$4;
3943
+
3944
+ var $URLSearchParams$1 = URLSearchParams;
3945
+ var URLSearchParamsPrototype$2 = $URLSearchParams$1.prototype;
3946
+ var append = uncurryThis$2(URLSearchParamsPrototype$2.append);
3947
+ var $delete = uncurryThis$2(URLSearchParamsPrototype$2['delete']);
3948
+ var forEach$1 = uncurryThis$2(URLSearchParamsPrototype$2.forEach);
3949
+ var push = uncurryThis$2([].push);
3950
+ var params$1 = new $URLSearchParams$1('a=1&a=2&b=3');
3951
+
3952
+ params$1['delete']('a', 1);
3953
+ // `undefined` case is a Chromium 117 bug
3954
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
3955
+ params$1['delete']('b', undefined);
3956
+
3957
+ if (params$1 + '' !== 'a=2') {
3958
+ defineBuiltIn$1(URLSearchParamsPrototype$2, 'delete', function (name /* , value */) {
3959
+ var length = arguments.length;
3960
+ var $value = length < 2 ? undefined : arguments[1];
3961
+ if (length && $value === undefined) return $delete(this, name);
3962
+ var entries = [];
3963
+ forEach$1(this, function (v, k) { // also validates `this`
3964
+ push(entries, { key: k, value: v });
3965
+ });
3966
+ validateArgumentsLength$1(length, 1);
3967
+ var key = toString$1(name);
3968
+ var value = toString$1($value);
3969
+ var index = 0;
3970
+ var dindex = 0;
3971
+ var found = false;
3972
+ var entriesLength = entries.length;
3973
+ var entry;
3974
+ while (index < entriesLength) {
3975
+ entry = entries[index++];
3976
+ if (found || entry.key === key) {
3977
+ found = true;
3978
+ $delete(this, entry.key);
3979
+ } else dindex++;
3980
+ }
3981
+ while (dindex < entriesLength) {
3982
+ entry = entries[dindex++];
3983
+ if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
3984
+ }
3985
+ }, { enumerable: true, unsafe: true });
3986
+ }
3987
+
3988
+ var defineBuiltIn = defineBuiltIn$9;
3989
+ var uncurryThis$1 = functionUncurryThis;
3990
+ var toString = toString$5;
3991
+ var validateArgumentsLength = validateArgumentsLength$4;
3992
+
3993
+ var $URLSearchParams = URLSearchParams;
3994
+ var URLSearchParamsPrototype$1 = $URLSearchParams.prototype;
3995
+ var getAll = uncurryThis$1(URLSearchParamsPrototype$1.getAll);
3996
+ var $has = uncurryThis$1(URLSearchParamsPrototype$1.has);
3997
+ var params = new $URLSearchParams('a=1');
3998
+
3999
+ // `undefined` case is a Chromium 117 bug
4000
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
4001
+ if (params.has('a', 2) || !params.has('a', undefined)) {
4002
+ defineBuiltIn(URLSearchParamsPrototype$1, 'has', function has(name /* , value */) {
4003
+ var length = arguments.length;
4004
+ var $value = length < 2 ? undefined : arguments[1];
4005
+ if (length && $value === undefined) return $has(this, name);
4006
+ var values = getAll(this, name); // also validates `this`
4007
+ validateArgumentsLength(length, 1);
4008
+ var value = toString($value);
4009
+ var index = 0;
4010
+ while (index < values.length) {
4011
+ if (values[index++] === value) return true;
4012
+ } return false;
4013
+ }, { enumerable: true, unsafe: true });
4014
+ }
4015
+
4016
+ var DESCRIPTORS = descriptors;
4017
+ var uncurryThis = functionUncurryThis;
4018
+ var defineBuiltInAccessor = defineBuiltInAccessor$3;
4019
+
4020
+ var URLSearchParamsPrototype = URLSearchParams.prototype;
4021
+ var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
4022
+
4023
+ // `URLSearchParams.prototype.size` getter
4024
+ // https://github.com/whatwg/url/pull/734
4025
+ if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
4026
+ defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
4027
+ get: function size() {
4028
+ var count = 0;
4029
+ forEach(this, function () { count++; });
4030
+ return count;
4031
+ },
4032
+ configurable: true,
4033
+ enumerable: true
4034
+ });
4035
+ }
4036
+
4037
+ export { styleInject as s };