@hebcal/rest-api 3.10.1 → 3.13.0

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