@hebcal/rest-api 3.13.0 → 3.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -8
- package/dist/bundle.js +457 -398
- package/dist/bundle.min.js +2 -2
- package/dist/index.js +48 -37
- package/dist/index.mjs +48 -38
- package/package.json +12 -12
- package/rest-api.d.ts +12 -10
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v3.
|
|
1
|
+
/*! @hebcal/rest-api v3.14.1 */
|
|
2
2
|
var hebcal__rest_api = (function (exports, core, leyn) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -30,7 +30,7 @@ var check = function (it) {
|
|
|
30
30
|
|
|
31
31
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
32
32
|
var global$C =
|
|
33
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
|
33
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
|
34
34
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
35
35
|
check(typeof window == 'object' && window) ||
|
|
36
36
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
@@ -41,7 +41,7 @@ var global$C =
|
|
|
41
41
|
|
|
42
42
|
var objectGetOwnPropertyDescriptor = {};
|
|
43
43
|
|
|
44
|
-
var fails$
|
|
44
|
+
var fails$h = function (exec) {
|
|
45
45
|
try {
|
|
46
46
|
return !!exec();
|
|
47
47
|
} catch (error) {
|
|
@@ -49,17 +49,18 @@ var fails$g = function (exec) {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
var fails$
|
|
52
|
+
var fails$g = fails$h;
|
|
53
53
|
|
|
54
54
|
// Detect IE8's incomplete defineProperty implementation
|
|
55
|
-
var descriptors = !fails$
|
|
56
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
55
|
+
var descriptors = !fails$g(function () {
|
|
56
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
57
57
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
var fails$
|
|
60
|
+
var fails$f = fails$h;
|
|
61
61
|
|
|
62
|
-
var functionBindNative = !fails$
|
|
62
|
+
var functionBindNative = !fails$f(function () {
|
|
63
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
|
63
64
|
var test = (function () { /* empty */ }).bind();
|
|
64
65
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
65
66
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -67,25 +68,25 @@ var functionBindNative = !fails$e(function () {
|
|
|
67
68
|
|
|
68
69
|
var NATIVE_BIND$2 = functionBindNative;
|
|
69
70
|
|
|
70
|
-
var call$
|
|
71
|
+
var call$c = Function.prototype.call;
|
|
71
72
|
|
|
72
|
-
var functionCall = NATIVE_BIND$2 ? call$
|
|
73
|
-
return call$
|
|
73
|
+
var functionCall = NATIVE_BIND$2 ? call$c.bind(call$c) : function () {
|
|
74
|
+
return call$c.apply(call$c, arguments);
|
|
74
75
|
};
|
|
75
76
|
|
|
76
77
|
var objectPropertyIsEnumerable = {};
|
|
77
78
|
|
|
78
79
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
79
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
80
|
-
var getOwnPropertyDescriptor$
|
|
80
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
81
|
+
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
|
|
81
82
|
|
|
82
83
|
// Nashorn ~ JDK8 bug
|
|
83
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
84
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
84
85
|
|
|
85
86
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
86
87
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
87
88
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
88
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
89
|
+
var descriptor = getOwnPropertyDescriptor$3(this, V);
|
|
89
90
|
return !!descriptor && descriptor.enumerable;
|
|
90
91
|
} : $propertyIsEnumerable;
|
|
91
92
|
|
|
@@ -102,36 +103,36 @@ var NATIVE_BIND$1 = functionBindNative;
|
|
|
102
103
|
|
|
103
104
|
var FunctionPrototype$1 = Function.prototype;
|
|
104
105
|
var bind$4 = FunctionPrototype$1.bind;
|
|
105
|
-
var call$
|
|
106
|
-
var uncurryThis$
|
|
106
|
+
var call$b = FunctionPrototype$1.call;
|
|
107
|
+
var uncurryThis$j = NATIVE_BIND$1 && bind$4.bind(call$b, call$b);
|
|
107
108
|
|
|
108
109
|
var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
|
|
109
|
-
return fn && uncurryThis$
|
|
110
|
+
return fn && uncurryThis$j(fn);
|
|
110
111
|
} : function (fn) {
|
|
111
112
|
return fn && function () {
|
|
112
|
-
return call$
|
|
113
|
+
return call$b.apply(fn, arguments);
|
|
113
114
|
};
|
|
114
115
|
};
|
|
115
116
|
|
|
116
|
-
var uncurryThis$
|
|
117
|
+
var uncurryThis$i = functionUncurryThis;
|
|
117
118
|
|
|
118
|
-
var toString$6 = uncurryThis$
|
|
119
|
-
var stringSlice$5 = uncurryThis$
|
|
119
|
+
var toString$6 = uncurryThis$i({}.toString);
|
|
120
|
+
var stringSlice$5 = uncurryThis$i(''.slice);
|
|
120
121
|
|
|
121
122
|
var classofRaw$1 = function (it) {
|
|
122
123
|
return stringSlice$5(toString$6(it), 8, -1);
|
|
123
124
|
};
|
|
124
125
|
|
|
125
126
|
var global$B = global$C;
|
|
126
|
-
var uncurryThis$
|
|
127
|
-
var fails$
|
|
127
|
+
var uncurryThis$h = functionUncurryThis;
|
|
128
|
+
var fails$e = fails$h;
|
|
128
129
|
var classof$6 = classofRaw$1;
|
|
129
130
|
|
|
130
131
|
var Object$5 = global$B.Object;
|
|
131
|
-
var split$3 = uncurryThis$
|
|
132
|
+
var split$3 = uncurryThis$h(''.split);
|
|
132
133
|
|
|
133
134
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
134
|
-
var indexedObject = fails$
|
|
135
|
+
var indexedObject = fails$e(function () {
|
|
135
136
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
136
137
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
137
138
|
return !Object$5('z').propertyIsEnumerable(0);
|
|
@@ -160,34 +161,34 @@ var toIndexedObject$5 = function (it) {
|
|
|
160
161
|
|
|
161
162
|
// `IsCallable` abstract operation
|
|
162
163
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
163
|
-
var isCallable$
|
|
164
|
+
var isCallable$h = function (argument) {
|
|
164
165
|
return typeof argument == 'function';
|
|
165
166
|
};
|
|
166
167
|
|
|
167
|
-
var isCallable$
|
|
168
|
+
var isCallable$g = isCallable$h;
|
|
168
169
|
|
|
169
170
|
var isObject$7 = function (it) {
|
|
170
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
171
|
+
return typeof it == 'object' ? it !== null : isCallable$g(it);
|
|
171
172
|
};
|
|
172
173
|
|
|
173
174
|
var global$z = global$C;
|
|
174
|
-
var isCallable$
|
|
175
|
+
var isCallable$f = isCallable$h;
|
|
175
176
|
|
|
176
177
|
var aFunction = function (argument) {
|
|
177
|
-
return isCallable$
|
|
178
|
+
return isCallable$f(argument) ? argument : undefined;
|
|
178
179
|
};
|
|
179
180
|
|
|
180
|
-
var getBuiltIn$
|
|
181
|
+
var getBuiltIn$5 = function (namespace, method) {
|
|
181
182
|
return arguments.length < 2 ? aFunction(global$z[namespace]) : global$z[namespace] && global$z[namespace][method];
|
|
182
183
|
};
|
|
183
184
|
|
|
184
|
-
var uncurryThis$
|
|
185
|
+
var uncurryThis$g = functionUncurryThis;
|
|
185
186
|
|
|
186
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
187
|
+
var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
|
|
187
188
|
|
|
188
|
-
var getBuiltIn$
|
|
189
|
+
var getBuiltIn$4 = getBuiltIn$5;
|
|
189
190
|
|
|
190
|
-
var engineUserAgent = getBuiltIn$
|
|
191
|
+
var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
|
|
191
192
|
|
|
192
193
|
var global$y = global$C;
|
|
193
194
|
var userAgent = engineUserAgent;
|
|
@@ -217,13 +218,13 @@ if (!version && userAgent) {
|
|
|
217
218
|
|
|
218
219
|
var engineV8Version = version;
|
|
219
220
|
|
|
220
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
221
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
221
222
|
|
|
222
223
|
var V8_VERSION = engineV8Version;
|
|
223
|
-
var fails$
|
|
224
|
+
var fails$d = fails$h;
|
|
224
225
|
|
|
225
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
226
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$
|
|
226
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
|
227
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$d(function () {
|
|
227
228
|
var symbol = Symbol();
|
|
228
229
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
229
230
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -232,7 +233,7 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$c(function () {
|
|
|
232
233
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
233
234
|
});
|
|
234
235
|
|
|
235
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
|
236
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
|
236
237
|
|
|
237
238
|
var NATIVE_SYMBOL$1 = nativeSymbol;
|
|
238
239
|
|
|
@@ -241,8 +242,8 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
241
242
|
&& typeof Symbol.iterator == 'symbol';
|
|
242
243
|
|
|
243
244
|
var global$x = global$C;
|
|
244
|
-
var getBuiltIn$
|
|
245
|
-
var isCallable$
|
|
245
|
+
var getBuiltIn$3 = getBuiltIn$5;
|
|
246
|
+
var isCallable$e = isCallable$h;
|
|
246
247
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
247
248
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
248
249
|
|
|
@@ -251,8 +252,8 @@ var Object$4 = global$x.Object;
|
|
|
251
252
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
252
253
|
return typeof it == 'symbol';
|
|
253
254
|
} : function (it) {
|
|
254
|
-
var $Symbol = getBuiltIn$
|
|
255
|
-
return isCallable$
|
|
255
|
+
var $Symbol = getBuiltIn$3('Symbol');
|
|
256
|
+
return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, Object$4(it));
|
|
256
257
|
};
|
|
257
258
|
|
|
258
259
|
var global$w = global$C;
|
|
@@ -268,14 +269,14 @@ var tryToString$2 = function (argument) {
|
|
|
268
269
|
};
|
|
269
270
|
|
|
270
271
|
var global$v = global$C;
|
|
271
|
-
var isCallable$
|
|
272
|
+
var isCallable$d = isCallable$h;
|
|
272
273
|
var tryToString$1 = tryToString$2;
|
|
273
274
|
|
|
274
275
|
var TypeError$d = global$v.TypeError;
|
|
275
276
|
|
|
276
277
|
// `Assert: IsCallable(argument) is true`
|
|
277
278
|
var aCallable$3 = function (argument) {
|
|
278
|
-
if (isCallable$
|
|
279
|
+
if (isCallable$d(argument)) return argument;
|
|
279
280
|
throw TypeError$d(tryToString$1(argument) + ' is not a function');
|
|
280
281
|
};
|
|
281
282
|
|
|
@@ -289,8 +290,8 @@ var getMethod$3 = function (V, P) {
|
|
|
289
290
|
};
|
|
290
291
|
|
|
291
292
|
var global$u = global$C;
|
|
292
|
-
var call$
|
|
293
|
-
var isCallable$
|
|
293
|
+
var call$a = functionCall;
|
|
294
|
+
var isCallable$c = isCallable$h;
|
|
294
295
|
var isObject$6 = isObject$7;
|
|
295
296
|
|
|
296
297
|
var TypeError$c = global$u.TypeError;
|
|
@@ -299,9 +300,9 @@ var TypeError$c = global$u.TypeError;
|
|
|
299
300
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
300
301
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
301
302
|
var fn, val;
|
|
302
|
-
if (pref === 'string' && isCallable$
|
|
303
|
-
if (isCallable$
|
|
304
|
-
if (pref !== 'string' && isCallable$
|
|
303
|
+
if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$a(fn, input))) return val;
|
|
304
|
+
if (isCallable$c(fn = input.valueOf) && !isObject$6(val = call$a(fn, input))) return val;
|
|
305
|
+
if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$a(fn, input))) return val;
|
|
305
306
|
throw TypeError$c("Can't convert object to primitive value");
|
|
306
307
|
};
|
|
307
308
|
|
|
@@ -311,12 +312,12 @@ var isPure = false;
|
|
|
311
312
|
|
|
312
313
|
var global$t = global$C;
|
|
313
314
|
|
|
314
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
315
|
-
var defineProperty$
|
|
315
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
316
|
+
var defineProperty$5 = Object.defineProperty;
|
|
316
317
|
|
|
317
318
|
var setGlobal$3 = function (key, value) {
|
|
318
319
|
try {
|
|
319
|
-
defineProperty$
|
|
320
|
+
defineProperty$5(global$t, key, { value: value, configurable: true, writable: true });
|
|
320
321
|
} catch (error) {
|
|
321
322
|
global$t[key] = value;
|
|
322
323
|
} return value;
|
|
@@ -335,10 +336,10 @@ var store$2 = sharedStore;
|
|
|
335
336
|
(shared$4.exports = function (key, value) {
|
|
336
337
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
337
338
|
})('versions', []).push({
|
|
338
|
-
version: '3.
|
|
339
|
+
version: '3.22.4',
|
|
339
340
|
mode: 'global',
|
|
340
341
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
341
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
342
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
|
|
342
343
|
source: 'https://github.com/zloirock/core-js'
|
|
343
344
|
});
|
|
344
345
|
|
|
@@ -353,22 +354,23 @@ var toObject$4 = function (argument) {
|
|
|
353
354
|
return Object$3(requireObjectCoercible$2(argument));
|
|
354
355
|
};
|
|
355
356
|
|
|
356
|
-
var uncurryThis$
|
|
357
|
+
var uncurryThis$f = functionUncurryThis;
|
|
357
358
|
var toObject$3 = toObject$4;
|
|
358
359
|
|
|
359
|
-
var hasOwnProperty = uncurryThis$
|
|
360
|
+
var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
|
|
360
361
|
|
|
361
362
|
// `HasOwnProperty` abstract operation
|
|
362
363
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
364
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
|
363
365
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
364
366
|
return hasOwnProperty(toObject$3(it), key);
|
|
365
367
|
};
|
|
366
368
|
|
|
367
|
-
var uncurryThis$
|
|
369
|
+
var uncurryThis$e = functionUncurryThis;
|
|
368
370
|
|
|
369
371
|
var id = 0;
|
|
370
372
|
var postfix = Math.random();
|
|
371
|
-
var toString$5 = uncurryThis$
|
|
373
|
+
var toString$5 = uncurryThis$e(1.0.toString);
|
|
372
374
|
|
|
373
375
|
var uid$2 = function (key) {
|
|
374
376
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
@@ -376,7 +378,7 @@ var uid$2 = function (key) {
|
|
|
376
378
|
|
|
377
379
|
var global$q = global$C;
|
|
378
380
|
var shared$3 = shared$4.exports;
|
|
379
|
-
var hasOwn$
|
|
381
|
+
var hasOwn$b = hasOwnProperty_1;
|
|
380
382
|
var uid$1 = uid$2;
|
|
381
383
|
var NATIVE_SYMBOL = nativeSymbol;
|
|
382
384
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
@@ -387,9 +389,9 @@ var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
|
387
389
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
388
390
|
|
|
389
391
|
var wellKnownSymbol$e = function (name) {
|
|
390
|
-
if (!hasOwn$
|
|
392
|
+
if (!hasOwn$b(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
|
|
391
393
|
var description = 'Symbol.' + name;
|
|
392
|
-
if (NATIVE_SYMBOL && hasOwn$
|
|
394
|
+
if (NATIVE_SYMBOL && hasOwn$b(Symbol$1, name)) {
|
|
393
395
|
WellKnownSymbolsStore[name] = Symbol$1[name];
|
|
394
396
|
} else if (USE_SYMBOL_AS_UID && symbolFor) {
|
|
395
397
|
WellKnownSymbolsStore[name] = symbolFor(description);
|
|
@@ -400,7 +402,7 @@ var wellKnownSymbol$e = function (name) {
|
|
|
400
402
|
};
|
|
401
403
|
|
|
402
404
|
var global$p = global$C;
|
|
403
|
-
var call$
|
|
405
|
+
var call$9 = functionCall;
|
|
404
406
|
var isObject$5 = isObject$7;
|
|
405
407
|
var isSymbol$1 = isSymbol$2;
|
|
406
408
|
var getMethod$2 = getMethod$3;
|
|
@@ -418,7 +420,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
418
420
|
var result;
|
|
419
421
|
if (exoticToPrim) {
|
|
420
422
|
if (pref === undefined) pref = 'default';
|
|
421
|
-
result = call$
|
|
423
|
+
result = call$9(exoticToPrim, input, pref);
|
|
422
424
|
if (!isObject$5(result) || isSymbol$1(result)) return result;
|
|
423
425
|
throw TypeError$b("Can't convert object to primitive value");
|
|
424
426
|
}
|
|
@@ -447,50 +449,50 @@ var documentCreateElement$2 = function (it) {
|
|
|
447
449
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
448
450
|
};
|
|
449
451
|
|
|
450
|
-
var DESCRIPTORS$
|
|
451
|
-
var fails$
|
|
452
|
+
var DESCRIPTORS$a = descriptors;
|
|
453
|
+
var fails$c = fails$h;
|
|
452
454
|
var createElement = documentCreateElement$2;
|
|
453
455
|
|
|
454
456
|
// Thanks to IE8 for its funny defineProperty
|
|
455
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
456
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
457
|
+
var ie8DomDefine = !DESCRIPTORS$a && !fails$c(function () {
|
|
458
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
457
459
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
458
460
|
get: function () { return 7; }
|
|
459
461
|
}).a != 7;
|
|
460
462
|
});
|
|
461
463
|
|
|
462
|
-
var DESCRIPTORS$
|
|
463
|
-
var call$
|
|
464
|
+
var DESCRIPTORS$9 = descriptors;
|
|
465
|
+
var call$8 = functionCall;
|
|
464
466
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
465
467
|
var createPropertyDescriptor$4 = createPropertyDescriptor$5;
|
|
466
468
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
467
469
|
var toPropertyKey$2 = toPropertyKey$3;
|
|
468
|
-
var hasOwn$
|
|
470
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
469
471
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
470
472
|
|
|
471
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
473
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
472
474
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
473
475
|
|
|
474
476
|
// `Object.getOwnPropertyDescriptor` method
|
|
475
477
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
476
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
478
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
477
479
|
O = toIndexedObject$4(O);
|
|
478
480
|
P = toPropertyKey$2(P);
|
|
479
481
|
if (IE8_DOM_DEFINE$1) try {
|
|
480
482
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
481
483
|
} catch (error) { /* empty */ }
|
|
482
|
-
if (hasOwn$
|
|
484
|
+
if (hasOwn$a(O, P)) return createPropertyDescriptor$4(!call$8(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
483
485
|
};
|
|
484
486
|
|
|
485
487
|
var objectDefineProperty = {};
|
|
486
488
|
|
|
487
|
-
var DESCRIPTORS$
|
|
488
|
-
var fails$
|
|
489
|
+
var DESCRIPTORS$8 = descriptors;
|
|
490
|
+
var fails$b = fails$h;
|
|
489
491
|
|
|
490
492
|
// V8 ~ Chrome 36-
|
|
491
493
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
492
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
493
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
494
|
+
var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$b(function () {
|
|
495
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
494
496
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
495
497
|
value: 42,
|
|
496
498
|
writable: false
|
|
@@ -510,16 +512,16 @@ var anObject$b = function (argument) {
|
|
|
510
512
|
};
|
|
511
513
|
|
|
512
514
|
var global$m = global$C;
|
|
513
|
-
var DESCRIPTORS$
|
|
515
|
+
var DESCRIPTORS$7 = descriptors;
|
|
514
516
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
515
517
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
516
518
|
var anObject$a = anObject$b;
|
|
517
519
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
518
520
|
|
|
519
521
|
var TypeError$9 = global$m.TypeError;
|
|
520
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
522
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
521
523
|
var $defineProperty = Object.defineProperty;
|
|
522
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
524
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
523
525
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
524
526
|
var ENUMERABLE = 'enumerable';
|
|
525
527
|
var CONFIGURABLE$1 = 'configurable';
|
|
@@ -527,7 +529,7 @@ var WRITABLE = 'writable';
|
|
|
527
529
|
|
|
528
530
|
// `Object.defineProperty` method
|
|
529
531
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
530
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
532
|
+
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
531
533
|
anObject$a(O);
|
|
532
534
|
P = toPropertyKey$1(P);
|
|
533
535
|
anObject$a(Attributes);
|
|
@@ -554,27 +556,45 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
554
556
|
return O;
|
|
555
557
|
};
|
|
556
558
|
|
|
557
|
-
var DESCRIPTORS$
|
|
559
|
+
var DESCRIPTORS$6 = descriptors;
|
|
558
560
|
var definePropertyModule$4 = objectDefineProperty;
|
|
559
561
|
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
560
562
|
|
|
561
|
-
var createNonEnumerableProperty$5 = DESCRIPTORS$
|
|
563
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$6 ? function (object, key, value) {
|
|
562
564
|
return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value));
|
|
563
565
|
} : function (object, key, value) {
|
|
564
566
|
object[key] = value;
|
|
565
567
|
return object;
|
|
566
568
|
};
|
|
567
569
|
|
|
568
|
-
var
|
|
570
|
+
var makeBuiltIn$3 = {exports: {}};
|
|
569
571
|
|
|
570
|
-
var
|
|
571
|
-
var
|
|
572
|
+
var DESCRIPTORS$5 = descriptors;
|
|
573
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
574
|
+
|
|
575
|
+
var FunctionPrototype = Function.prototype;
|
|
576
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
577
|
+
var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
|
|
578
|
+
|
|
579
|
+
var EXISTS = hasOwn$9(FunctionPrototype, 'name');
|
|
580
|
+
// additional protection from minified / mangled / dropped function names
|
|
581
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
582
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
583
|
+
|
|
584
|
+
var functionName = {
|
|
585
|
+
EXISTS: EXISTS,
|
|
586
|
+
PROPER: PROPER,
|
|
587
|
+
CONFIGURABLE: CONFIGURABLE
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
var uncurryThis$d = functionUncurryThis;
|
|
591
|
+
var isCallable$b = isCallable$h;
|
|
572
592
|
var store$1 = sharedStore;
|
|
573
593
|
|
|
574
|
-
var functionToString = uncurryThis$
|
|
594
|
+
var functionToString = uncurryThis$d(Function.toString);
|
|
575
595
|
|
|
576
596
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
577
|
-
if (!isCallable$
|
|
597
|
+
if (!isCallable$b(store$1.inspectSource)) {
|
|
578
598
|
store$1.inspectSource = function (it) {
|
|
579
599
|
return functionToString(it);
|
|
580
600
|
};
|
|
@@ -583,12 +603,12 @@ if (!isCallable$a(store$1.inspectSource)) {
|
|
|
583
603
|
var inspectSource$3 = store$1.inspectSource;
|
|
584
604
|
|
|
585
605
|
var global$l = global$C;
|
|
586
|
-
var isCallable$
|
|
606
|
+
var isCallable$a = isCallable$h;
|
|
587
607
|
var inspectSource$2 = inspectSource$3;
|
|
588
608
|
|
|
589
609
|
var WeakMap$1 = global$l.WeakMap;
|
|
590
610
|
|
|
591
|
-
var nativeWeakMap = isCallable$
|
|
611
|
+
var nativeWeakMap = isCallable$a(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
|
|
592
612
|
|
|
593
613
|
var shared$2 = shared$4.exports;
|
|
594
614
|
var uid = uid$2;
|
|
@@ -603,7 +623,7 @@ var hiddenKeys$4 = {};
|
|
|
603
623
|
|
|
604
624
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
605
625
|
var global$k = global$C;
|
|
606
|
-
var uncurryThis$
|
|
626
|
+
var uncurryThis$c = functionUncurryThis;
|
|
607
627
|
var isObject$2 = isObject$7;
|
|
608
628
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
609
629
|
var hasOwn$8 = hasOwnProperty_1;
|
|
@@ -631,9 +651,9 @@ var getterFor = function (TYPE) {
|
|
|
631
651
|
|
|
632
652
|
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
633
653
|
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
634
|
-
var wmget = uncurryThis$
|
|
635
|
-
var wmhas = uncurryThis$
|
|
636
|
-
var wmset = uncurryThis$
|
|
654
|
+
var wmget = uncurryThis$c(store.get);
|
|
655
|
+
var wmhas = uncurryThis$c(store.has);
|
|
656
|
+
var wmset = uncurryThis$c(store.set);
|
|
637
657
|
set = function (it, metadata) {
|
|
638
658
|
if (wmhas(store, it)) throw new TypeError$8(OBJECT_ALREADY_INITIALIZED);
|
|
639
659
|
metadata.facade = it;
|
|
@@ -671,59 +691,63 @@ var internalState = {
|
|
|
671
691
|
getterFor: getterFor
|
|
672
692
|
};
|
|
673
693
|
|
|
674
|
-
var
|
|
694
|
+
var fails$a = fails$h;
|
|
695
|
+
var isCallable$9 = isCallable$h;
|
|
675
696
|
var hasOwn$7 = hasOwnProperty_1;
|
|
697
|
+
var defineProperty$4 = objectDefineProperty.f;
|
|
698
|
+
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
699
|
+
var inspectSource$1 = inspectSource$3;
|
|
700
|
+
var InternalStateModule$4 = internalState;
|
|
676
701
|
|
|
677
|
-
var
|
|
678
|
-
|
|
679
|
-
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
702
|
+
var enforceInternalState = InternalStateModule$4.enforce;
|
|
703
|
+
var getInternalState$3 = InternalStateModule$4.get;
|
|
680
704
|
|
|
681
|
-
var
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
705
|
+
var CONFIGURABLE_LENGTH = !fails$a(function () {
|
|
706
|
+
return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
707
|
+
});
|
|
685
708
|
|
|
686
|
-
var
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
709
|
+
var TEMPLATE = String(String).split('String');
|
|
710
|
+
|
|
711
|
+
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
712
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
713
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
714
|
+
}
|
|
715
|
+
if (options && options.getter) name = 'get ' + name;
|
|
716
|
+
if (options && options.setter) name = 'set ' + name;
|
|
717
|
+
if (!hasOwn$7(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
718
|
+
defineProperty$4(value, 'name', { value: name, configurable: true });
|
|
719
|
+
}
|
|
720
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) {
|
|
721
|
+
defineProperty$4(value, 'length', { value: options.arity });
|
|
722
|
+
}
|
|
723
|
+
var state = enforceInternalState(value);
|
|
724
|
+
if (!hasOwn$7(state, 'source')) {
|
|
725
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
726
|
+
} return value;
|
|
690
727
|
};
|
|
691
728
|
|
|
729
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
730
|
+
// eslint-disable-next-line no-extend-native -- required
|
|
731
|
+
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
732
|
+
return isCallable$9(this) && getInternalState$3(this).source || inspectSource$1(this);
|
|
733
|
+
}, 'toString');
|
|
734
|
+
|
|
692
735
|
var global$j = global$C;
|
|
693
|
-
var isCallable$8 = isCallable$
|
|
694
|
-
var hasOwn$6 = hasOwnProperty_1;
|
|
736
|
+
var isCallable$8 = isCallable$h;
|
|
695
737
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
738
|
+
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
696
739
|
var setGlobal$1 = setGlobal$3;
|
|
697
|
-
var inspectSource$1 = inspectSource$3;
|
|
698
|
-
var InternalStateModule$4 = internalState;
|
|
699
|
-
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
700
740
|
|
|
701
|
-
var
|
|
702
|
-
var enforceInternalState = InternalStateModule$4.enforce;
|
|
703
|
-
var TEMPLATE = String(String).split('String');
|
|
704
|
-
|
|
705
|
-
(redefine$7.exports = function (O, key, value, options) {
|
|
741
|
+
var defineBuiltIn$7 = function (O, key, value, options) {
|
|
706
742
|
var unsafe = options ? !!options.unsafe : false;
|
|
707
743
|
var simple = options ? !!options.enumerable : false;
|
|
708
744
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
|
709
745
|
var name = options && options.name !== undefined ? options.name : key;
|
|
710
|
-
|
|
711
|
-
if (isCallable$8(value)) {
|
|
712
|
-
if (String(name).slice(0, 7) === 'Symbol(') {
|
|
713
|
-
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
714
|
-
}
|
|
715
|
-
if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
716
|
-
createNonEnumerableProperty$3(value, 'name', name);
|
|
717
|
-
}
|
|
718
|
-
state = enforceInternalState(value);
|
|
719
|
-
if (!state.source) {
|
|
720
|
-
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
721
|
-
}
|
|
722
|
-
}
|
|
746
|
+
if (isCallable$8(value)) makeBuiltIn$1(value, name, options);
|
|
723
747
|
if (O === global$j) {
|
|
724
748
|
if (simple) O[key] = value;
|
|
725
749
|
else setGlobal$1(key, value);
|
|
726
|
-
return;
|
|
750
|
+
return O;
|
|
727
751
|
} else if (!unsafe) {
|
|
728
752
|
delete O[key];
|
|
729
753
|
} else if (!noTargetGet && O[key]) {
|
|
@@ -731,10 +755,8 @@ var TEMPLATE = String(String).split('String');
|
|
|
731
755
|
}
|
|
732
756
|
if (simple) O[key] = value;
|
|
733
757
|
else createNonEnumerableProperty$3(O, key, value);
|
|
734
|
-
|
|
735
|
-
}
|
|
736
|
-
return isCallable$8(this) && getInternalState$3(this).source || inspectSource$1(this);
|
|
737
|
-
});
|
|
758
|
+
return O;
|
|
759
|
+
};
|
|
738
760
|
|
|
739
761
|
var objectGetOwnPropertyNames = {};
|
|
740
762
|
|
|
@@ -813,22 +835,22 @@ var arrayIncludes = {
|
|
|
813
835
|
indexOf: createMethod$1(false)
|
|
814
836
|
};
|
|
815
837
|
|
|
816
|
-
var uncurryThis$
|
|
817
|
-
var hasOwn$
|
|
838
|
+
var uncurryThis$b = functionUncurryThis;
|
|
839
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
818
840
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
819
841
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
820
842
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
821
843
|
|
|
822
|
-
var push$3 = uncurryThis$
|
|
844
|
+
var push$3 = uncurryThis$b([].push);
|
|
823
845
|
|
|
824
846
|
var objectKeysInternal = function (object, names) {
|
|
825
847
|
var O = toIndexedObject$2(object);
|
|
826
848
|
var i = 0;
|
|
827
849
|
var result = [];
|
|
828
850
|
var key;
|
|
829
|
-
for (key in O) !hasOwn$
|
|
851
|
+
for (key in O) !hasOwn$6(hiddenKeys$2, key) && hasOwn$6(O, key) && push$3(result, key);
|
|
830
852
|
// Don't enum bug & hidden keys
|
|
831
|
-
while (names.length > i) if (hasOwn$
|
|
853
|
+
while (names.length > i) if (hasOwn$6(O, key = names[i++])) {
|
|
832
854
|
~indexOf$1(result, key) || push$3(result, key);
|
|
833
855
|
}
|
|
834
856
|
return result;
|
|
@@ -852,32 +874,32 @@ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
|
852
874
|
|
|
853
875
|
// `Object.getOwnPropertyNames` method
|
|
854
876
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
855
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
877
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
|
856
878
|
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
857
879
|
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
858
880
|
};
|
|
859
881
|
|
|
860
882
|
var objectGetOwnPropertySymbols = {};
|
|
861
883
|
|
|
862
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
884
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
|
863
885
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
864
886
|
|
|
865
|
-
var getBuiltIn$
|
|
866
|
-
var uncurryThis$
|
|
887
|
+
var getBuiltIn$2 = getBuiltIn$5;
|
|
888
|
+
var uncurryThis$a = functionUncurryThis;
|
|
867
889
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
868
890
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
869
891
|
var anObject$9 = anObject$b;
|
|
870
892
|
|
|
871
|
-
var concat$1 = uncurryThis$
|
|
893
|
+
var concat$1 = uncurryThis$a([].concat);
|
|
872
894
|
|
|
873
895
|
// all object keys, includes non-enumerable and symbols
|
|
874
|
-
var ownKeys$1 = getBuiltIn$
|
|
896
|
+
var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
875
897
|
var keys = getOwnPropertyNamesModule.f(anObject$9(it));
|
|
876
898
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
877
899
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
878
900
|
};
|
|
879
901
|
|
|
880
|
-
var hasOwn$
|
|
902
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
881
903
|
var ownKeys = ownKeys$1;
|
|
882
904
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
883
905
|
var definePropertyModule$3 = objectDefineProperty;
|
|
@@ -888,14 +910,14 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
888
910
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
889
911
|
for (var i = 0; i < keys.length; i++) {
|
|
890
912
|
var key = keys[i];
|
|
891
|
-
if (!hasOwn$
|
|
913
|
+
if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
|
|
892
914
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
893
915
|
}
|
|
894
916
|
}
|
|
895
917
|
};
|
|
896
918
|
|
|
897
|
-
var fails$9 = fails$
|
|
898
|
-
var isCallable$7 = isCallable$
|
|
919
|
+
var fails$9 = fails$h;
|
|
920
|
+
var isCallable$7 = isCallable$h;
|
|
899
921
|
|
|
900
922
|
var replacement = /#|\.prototype\./;
|
|
901
923
|
|
|
@@ -918,9 +940,9 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
918
940
|
var isForced_1 = isForced$1;
|
|
919
941
|
|
|
920
942
|
var global$i = global$C;
|
|
921
|
-
var getOwnPropertyDescriptor$
|
|
943
|
+
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
922
944
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
923
|
-
var
|
|
945
|
+
var defineBuiltIn$6 = defineBuiltIn$7;
|
|
924
946
|
var setGlobal = setGlobal$3;
|
|
925
947
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
926
948
|
var isForced = isForced_1;
|
|
@@ -955,7 +977,7 @@ var _export = function (options, source) {
|
|
|
955
977
|
if (target) for (key in source) {
|
|
956
978
|
sourceProperty = source[key];
|
|
957
979
|
if (options.noTargetGet) {
|
|
958
|
-
descriptor = getOwnPropertyDescriptor$
|
|
980
|
+
descriptor = getOwnPropertyDescriptor$2(target, key);
|
|
959
981
|
targetProperty = descriptor && descriptor.value;
|
|
960
982
|
} else targetProperty = target[key];
|
|
961
983
|
FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
@@ -968,8 +990,7 @@ var _export = function (options, source) {
|
|
|
968
990
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
969
991
|
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
970
992
|
}
|
|
971
|
-
|
|
972
|
-
redefine$6(target, key, sourceProperty, options);
|
|
993
|
+
defineBuiltIn$6(target, key, sourceProperty, options);
|
|
973
994
|
}
|
|
974
995
|
};
|
|
975
996
|
|
|
@@ -984,7 +1005,7 @@ var toStringTagSupport = String(test) === '[object z]';
|
|
|
984
1005
|
|
|
985
1006
|
var global$h = global$C;
|
|
986
1007
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
987
|
-
var isCallable$6 = isCallable$
|
|
1008
|
+
var isCallable$6 = isCallable$h;
|
|
988
1009
|
var classofRaw = classofRaw$1;
|
|
989
1010
|
var wellKnownSymbol$b = wellKnownSymbol$e;
|
|
990
1011
|
|
|
@@ -1030,6 +1051,7 @@ var anObject$8 = anObject$b;
|
|
|
1030
1051
|
var regexpFlags$1 = function () {
|
|
1031
1052
|
var that = anObject$8(this);
|
|
1032
1053
|
var result = '';
|
|
1054
|
+
if (that.hasIndices) result += 'd';
|
|
1033
1055
|
if (that.global) result += 'g';
|
|
1034
1056
|
if (that.ignoreCase) result += 'i';
|
|
1035
1057
|
if (that.multiline) result += 'm';
|
|
@@ -1039,7 +1061,7 @@ var regexpFlags$1 = function () {
|
|
|
1039
1061
|
return result;
|
|
1040
1062
|
};
|
|
1041
1063
|
|
|
1042
|
-
var fails$8 = fails$
|
|
1064
|
+
var fails$8 = fails$h;
|
|
1043
1065
|
var global$f = global$C;
|
|
1044
1066
|
|
|
1045
1067
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
@@ -1077,12 +1099,12 @@ var enumBugKeys$1 = enumBugKeys$3;
|
|
|
1077
1099
|
|
|
1078
1100
|
// `Object.keys` method
|
|
1079
1101
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
1080
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1102
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
|
1081
1103
|
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1082
1104
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1083
1105
|
};
|
|
1084
1106
|
|
|
1085
|
-
var DESCRIPTORS$
|
|
1107
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1086
1108
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1087
1109
|
var definePropertyModule$2 = objectDefineProperty;
|
|
1088
1110
|
var anObject$7 = anObject$b;
|
|
@@ -1091,8 +1113,8 @@ var objectKeys$1 = objectKeys$2;
|
|
|
1091
1113
|
|
|
1092
1114
|
// `Object.defineProperties` method
|
|
1093
1115
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1094
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1095
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1116
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
|
1117
|
+
objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1096
1118
|
anObject$7(O);
|
|
1097
1119
|
var props = toIndexedObject$1(Properties);
|
|
1098
1120
|
var keys = objectKeys$1(Properties);
|
|
@@ -1103,9 +1125,9 @@ objectDefineProperties.f = DESCRIPTORS$3 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1103
1125
|
return O;
|
|
1104
1126
|
};
|
|
1105
1127
|
|
|
1106
|
-
var getBuiltIn$
|
|
1128
|
+
var getBuiltIn$1 = getBuiltIn$5;
|
|
1107
1129
|
|
|
1108
|
-
var html$1 = getBuiltIn$
|
|
1130
|
+
var html$1 = getBuiltIn$1('document', 'documentElement');
|
|
1109
1131
|
|
|
1110
1132
|
/* global ActiveXObject -- old IE, WSH */
|
|
1111
1133
|
|
|
@@ -1179,6 +1201,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1179
1201
|
|
|
1180
1202
|
// `Object.create` method
|
|
1181
1203
|
// https://tc39.es/ecma262/#sec-object.create
|
|
1204
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
|
1182
1205
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1183
1206
|
var result;
|
|
1184
1207
|
if (O !== null) {
|
|
@@ -1191,7 +1214,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1191
1214
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1192
1215
|
};
|
|
1193
1216
|
|
|
1194
|
-
var fails$7 = fails$
|
|
1217
|
+
var fails$7 = fails$h;
|
|
1195
1218
|
var global$e = global$C;
|
|
1196
1219
|
|
|
1197
1220
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
@@ -1202,7 +1225,7 @@ var regexpUnsupportedDotAll = fails$7(function () {
|
|
|
1202
1225
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
1203
1226
|
});
|
|
1204
1227
|
|
|
1205
|
-
var fails$6 = fails$
|
|
1228
|
+
var fails$6 = fails$h;
|
|
1206
1229
|
var global$d = global$C;
|
|
1207
1230
|
|
|
1208
1231
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
@@ -1216,8 +1239,8 @@ var regexpUnsupportedNcg = fails$6(function () {
|
|
|
1216
1239
|
|
|
1217
1240
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1218
1241
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1219
|
-
var call$
|
|
1220
|
-
var uncurryThis$
|
|
1242
|
+
var call$7 = functionCall;
|
|
1243
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
1221
1244
|
var toString$3 = toString$4;
|
|
1222
1245
|
var regexpFlags = regexpFlags$1;
|
|
1223
1246
|
var stickyHelpers = regexpStickyHelpers;
|
|
@@ -1230,16 +1253,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
1230
1253
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1231
1254
|
var nativeExec = RegExp.prototype.exec;
|
|
1232
1255
|
var patchedExec = nativeExec;
|
|
1233
|
-
var charAt$4 = uncurryThis$
|
|
1234
|
-
var indexOf = uncurryThis$
|
|
1235
|
-
var replace$3 = uncurryThis$
|
|
1236
|
-
var stringSlice$4 = uncurryThis$
|
|
1256
|
+
var charAt$4 = uncurryThis$9(''.charAt);
|
|
1257
|
+
var indexOf = uncurryThis$9(''.indexOf);
|
|
1258
|
+
var replace$3 = uncurryThis$9(''.replace);
|
|
1259
|
+
var stringSlice$4 = uncurryThis$9(''.slice);
|
|
1237
1260
|
|
|
1238
1261
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1239
1262
|
var re1 = /a/;
|
|
1240
1263
|
var re2 = /b*/g;
|
|
1241
|
-
call$
|
|
1242
|
-
call$
|
|
1264
|
+
call$7(nativeExec, re1, 'a');
|
|
1265
|
+
call$7(nativeExec, re2, 'a');
|
|
1243
1266
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1244
1267
|
})();
|
|
1245
1268
|
|
|
@@ -1260,14 +1283,14 @@ if (PATCH) {
|
|
|
1260
1283
|
|
|
1261
1284
|
if (raw) {
|
|
1262
1285
|
raw.lastIndex = re.lastIndex;
|
|
1263
|
-
result = call$
|
|
1286
|
+
result = call$7(patchedExec, raw, str);
|
|
1264
1287
|
re.lastIndex = raw.lastIndex;
|
|
1265
1288
|
return result;
|
|
1266
1289
|
}
|
|
1267
1290
|
|
|
1268
1291
|
var groups = state.groups;
|
|
1269
1292
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1270
|
-
var flags = call$
|
|
1293
|
+
var flags = call$7(regexpFlags, re);
|
|
1271
1294
|
var source = re.source;
|
|
1272
1295
|
var charsAdded = 0;
|
|
1273
1296
|
var strCopy = str;
|
|
@@ -1295,7 +1318,7 @@ if (PATCH) {
|
|
|
1295
1318
|
}
|
|
1296
1319
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1297
1320
|
|
|
1298
|
-
match = call$
|
|
1321
|
+
match = call$7(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1299
1322
|
|
|
1300
1323
|
if (sticky) {
|
|
1301
1324
|
if (match) {
|
|
@@ -1310,7 +1333,7 @@ if (PATCH) {
|
|
|
1310
1333
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1311
1334
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1312
1335
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
|
1313
|
-
call$
|
|
1336
|
+
call$7(nativeReplace, match[0], reCopy, function () {
|
|
1314
1337
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
1315
1338
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
1316
1339
|
}
|
|
@@ -1407,18 +1430,18 @@ var addToUnscopables$1 = function (key) {
|
|
|
1407
1430
|
|
|
1408
1431
|
var iterators = {};
|
|
1409
1432
|
|
|
1410
|
-
var fails$5 = fails$
|
|
1433
|
+
var fails$5 = fails$h;
|
|
1411
1434
|
|
|
1412
1435
|
var correctPrototypeGetter = !fails$5(function () {
|
|
1413
1436
|
function F() { /* empty */ }
|
|
1414
1437
|
F.prototype.constructor = null;
|
|
1415
|
-
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1438
|
+
// eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
|
|
1416
1439
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1417
1440
|
});
|
|
1418
1441
|
|
|
1419
1442
|
var global$c = global$C;
|
|
1420
|
-
var hasOwn$
|
|
1421
|
-
var isCallable$5 = isCallable$
|
|
1443
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1444
|
+
var isCallable$5 = isCallable$h;
|
|
1422
1445
|
var toObject$2 = toObject$4;
|
|
1423
1446
|
var sharedKey = sharedKey$3;
|
|
1424
1447
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
@@ -1431,17 +1454,17 @@ var ObjectPrototype = Object$1.prototype;
|
|
|
1431
1454
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1432
1455
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
|
|
1433
1456
|
var object = toObject$2(O);
|
|
1434
|
-
if (hasOwn$
|
|
1457
|
+
if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
|
|
1435
1458
|
var constructor = object.constructor;
|
|
1436
1459
|
if (isCallable$5(constructor) && object instanceof constructor) {
|
|
1437
1460
|
return constructor.prototype;
|
|
1438
1461
|
} return object instanceof Object$1 ? ObjectPrototype : null;
|
|
1439
1462
|
};
|
|
1440
1463
|
|
|
1441
|
-
var fails$4 = fails$
|
|
1442
|
-
var isCallable$4 = isCallable$
|
|
1464
|
+
var fails$4 = fails$h;
|
|
1465
|
+
var isCallable$4 = isCallable$h;
|
|
1443
1466
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1444
|
-
var
|
|
1467
|
+
var defineBuiltIn$5 = defineBuiltIn$7;
|
|
1445
1468
|
var wellKnownSymbol$9 = wellKnownSymbol$e;
|
|
1446
1469
|
|
|
1447
1470
|
var ITERATOR$6 = wellKnownSymbol$9('iterator');
|
|
@@ -1451,7 +1474,7 @@ var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
|
1451
1474
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1452
1475
|
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1453
1476
|
|
|
1454
|
-
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
1477
|
+
/* eslint-disable es-x/no-array-prototype-keys -- safe */
|
|
1455
1478
|
if ([].keys) {
|
|
1456
1479
|
arrayIterator = [].keys();
|
|
1457
1480
|
// Safari 8 has buggy iterators w/o `next`
|
|
@@ -1473,7 +1496,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1473
1496
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1474
1497
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1475
1498
|
if (!isCallable$4(IteratorPrototype$2[ITERATOR$6])) {
|
|
1476
|
-
|
|
1499
|
+
defineBuiltIn$5(IteratorPrototype$2, ITERATOR$6, function () {
|
|
1477
1500
|
return this;
|
|
1478
1501
|
});
|
|
1479
1502
|
}
|
|
@@ -1483,16 +1506,16 @@ var iteratorsCore = {
|
|
|
1483
1506
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1484
1507
|
};
|
|
1485
1508
|
|
|
1486
|
-
var defineProperty$
|
|
1487
|
-
var hasOwn$
|
|
1509
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
1510
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1488
1511
|
var wellKnownSymbol$8 = wellKnownSymbol$e;
|
|
1489
1512
|
|
|
1490
1513
|
var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
|
|
1491
1514
|
|
|
1492
1515
|
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
1493
1516
|
if (target && !STATIC) target = target.prototype;
|
|
1494
|
-
if (target && !hasOwn$
|
|
1495
|
-
defineProperty$
|
|
1517
|
+
if (target && !hasOwn$3(target, TO_STRING_TAG$1)) {
|
|
1518
|
+
defineProperty$3(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
|
|
1496
1519
|
}
|
|
1497
1520
|
};
|
|
1498
1521
|
|
|
@@ -1513,7 +1536,7 @@ var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENU
|
|
|
1513
1536
|
};
|
|
1514
1537
|
|
|
1515
1538
|
var global$b = global$C;
|
|
1516
|
-
var isCallable$3 = isCallable$
|
|
1539
|
+
var isCallable$3 = isCallable$h;
|
|
1517
1540
|
|
|
1518
1541
|
var String$1 = global$b.String;
|
|
1519
1542
|
var TypeError$7 = global$b.TypeError;
|
|
@@ -1525,21 +1548,21 @@ var aPossiblePrototype$1 = function (argument) {
|
|
|
1525
1548
|
|
|
1526
1549
|
/* eslint-disable no-proto -- safe */
|
|
1527
1550
|
|
|
1528
|
-
var uncurryThis$
|
|
1551
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
1529
1552
|
var anObject$5 = anObject$b;
|
|
1530
1553
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1531
1554
|
|
|
1532
1555
|
// `Object.setPrototypeOf` method
|
|
1533
1556
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
1534
1557
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
1535
|
-
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
1558
|
+
// eslint-disable-next-line es-x/no-object-setprototypeof -- safe
|
|
1536
1559
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
1537
1560
|
var CORRECT_SETTER = false;
|
|
1538
1561
|
var test = {};
|
|
1539
1562
|
var setter;
|
|
1540
1563
|
try {
|
|
1541
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1542
|
-
setter = uncurryThis$
|
|
1564
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
1565
|
+
setter = uncurryThis$8(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
1543
1566
|
setter(test, []);
|
|
1544
1567
|
CORRECT_SETTER = test instanceof Array;
|
|
1545
1568
|
} catch (error) { /* empty */ }
|
|
@@ -1553,15 +1576,15 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1553
1576
|
}() : undefined);
|
|
1554
1577
|
|
|
1555
1578
|
var $$3 = _export;
|
|
1556
|
-
var call$
|
|
1579
|
+
var call$6 = functionCall;
|
|
1557
1580
|
var FunctionName = functionName;
|
|
1558
|
-
var isCallable$2 = isCallable$
|
|
1581
|
+
var isCallable$2 = isCallable$h;
|
|
1559
1582
|
var createIteratorConstructor$1 = createIteratorConstructor$2;
|
|
1560
1583
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
1561
1584
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
1562
1585
|
var setToStringTag$2 = setToStringTag$4;
|
|
1563
1586
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
1564
|
-
var
|
|
1587
|
+
var defineBuiltIn$4 = defineBuiltIn$7;
|
|
1565
1588
|
var wellKnownSymbol$7 = wellKnownSymbol$e;
|
|
1566
1589
|
var Iterators$3 = iterators;
|
|
1567
1590
|
var IteratorsCore = iteratorsCore;
|
|
@@ -1608,7 +1631,7 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1608
1631
|
if (setPrototypeOf) {
|
|
1609
1632
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1610
1633
|
} else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$5])) {
|
|
1611
|
-
|
|
1634
|
+
defineBuiltIn$4(CurrentIteratorPrototype, ITERATOR$5, returnThis);
|
|
1612
1635
|
}
|
|
1613
1636
|
}
|
|
1614
1637
|
// Set @@toStringTag to native iterators
|
|
@@ -1622,7 +1645,7 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1622
1645
|
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1623
1646
|
} else {
|
|
1624
1647
|
INCORRECT_VALUES_NAME = true;
|
|
1625
|
-
defaultIterator = function values() { return call$
|
|
1648
|
+
defaultIterator = function values() { return call$6(nativeIterator, this); };
|
|
1626
1649
|
}
|
|
1627
1650
|
}
|
|
1628
1651
|
|
|
@@ -1635,14 +1658,14 @@ var defineIterator$2 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
1635
1658
|
};
|
|
1636
1659
|
if (FORCED) for (KEY in methods) {
|
|
1637
1660
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1638
|
-
|
|
1661
|
+
defineBuiltIn$4(IterablePrototype, KEY, methods[KEY]);
|
|
1639
1662
|
}
|
|
1640
1663
|
} else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1641
1664
|
}
|
|
1642
1665
|
|
|
1643
1666
|
// define iterator
|
|
1644
1667
|
if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
|
|
1645
|
-
|
|
1668
|
+
defineBuiltIn$4(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
|
|
1646
1669
|
}
|
|
1647
1670
|
Iterators$3[NAME] = defaultIterator;
|
|
1648
1671
|
|
|
@@ -1653,9 +1676,9 @@ var toIndexedObject = toIndexedObject$5;
|
|
|
1653
1676
|
var addToUnscopables = addToUnscopables$1;
|
|
1654
1677
|
var Iterators$2 = iterators;
|
|
1655
1678
|
var InternalStateModule$3 = internalState;
|
|
1656
|
-
var defineProperty$
|
|
1679
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
1657
1680
|
var defineIterator$1 = defineIterator$2;
|
|
1658
|
-
var DESCRIPTORS$
|
|
1681
|
+
var DESCRIPTORS$3 = descriptors;
|
|
1659
1682
|
|
|
1660
1683
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1661
1684
|
var setInternalState$3 = InternalStateModule$3.set;
|
|
@@ -1705,8 +1728,8 @@ addToUnscopables('values');
|
|
|
1705
1728
|
addToUnscopables('entries');
|
|
1706
1729
|
|
|
1707
1730
|
// V8 ~ Chrome 45- bug
|
|
1708
|
-
if (DESCRIPTORS$
|
|
1709
|
-
defineProperty$
|
|
1731
|
+
if (DESCRIPTORS$3 && values.name !== 'values') try {
|
|
1732
|
+
defineProperty$2(values, 'name', { value: 'values' });
|
|
1710
1733
|
} catch (error) { /* empty */ }
|
|
1711
1734
|
|
|
1712
1735
|
var global$a = global$C;
|
|
@@ -1748,14 +1771,14 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
1748
1771
|
|
|
1749
1772
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
1750
1773
|
|
|
1751
|
-
var uncurryThis$
|
|
1774
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
1752
1775
|
var toIntegerOrInfinity = toIntegerOrInfinity$3;
|
|
1753
1776
|
var toString$2 = toString$4;
|
|
1754
1777
|
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
1755
1778
|
|
|
1756
|
-
var charAt$3 = uncurryThis$
|
|
1757
|
-
var charCodeAt$1 = uncurryThis$
|
|
1758
|
-
var stringSlice$3 = uncurryThis$
|
|
1779
|
+
var charAt$3 = uncurryThis$7(''.charAt);
|
|
1780
|
+
var charCodeAt$1 = uncurryThis$7(''.charCodeAt);
|
|
1781
|
+
var stringSlice$3 = uncurryThis$7(''.slice);
|
|
1759
1782
|
|
|
1760
1783
|
var createMethod = function (CONVERT_TO_STRING) {
|
|
1761
1784
|
return function ($this, pos) {
|
|
@@ -1815,7 +1838,7 @@ defineIterator(String, 'String', function (iterated) {
|
|
|
1815
1838
|
return { value: point, done: false };
|
|
1816
1839
|
});
|
|
1817
1840
|
|
|
1818
|
-
var fails$3 = fails$
|
|
1841
|
+
var fails$3 = fails$h;
|
|
1819
1842
|
var wellKnownSymbol$5 = wellKnownSymbol$e;
|
|
1820
1843
|
var IS_PURE = isPure;
|
|
1821
1844
|
|
|
@@ -1850,11 +1873,11 @@ var nativeUrl = !fails$3(function () {
|
|
|
1850
1873
|
|| new URL('http://x', undefined).host !== 'x';
|
|
1851
1874
|
});
|
|
1852
1875
|
|
|
1853
|
-
var uncurryThis$
|
|
1876
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1854
1877
|
var aCallable$1 = aCallable$3;
|
|
1855
1878
|
var NATIVE_BIND = functionBindNative;
|
|
1856
1879
|
|
|
1857
|
-
var bind$3 = uncurryThis$
|
|
1880
|
+
var bind$3 = uncurryThis$6(uncurryThis$6.bind);
|
|
1858
1881
|
|
|
1859
1882
|
// optional / simple context binding
|
|
1860
1883
|
var functionBindContext = function (fn, that) {
|
|
@@ -1864,6 +1887,15 @@ var functionBindContext = function (fn, that) {
|
|
|
1864
1887
|
};
|
|
1865
1888
|
};
|
|
1866
1889
|
|
|
1890
|
+
var makeBuiltIn = makeBuiltIn$3.exports;
|
|
1891
|
+
var defineProperty$1 = objectDefineProperty;
|
|
1892
|
+
|
|
1893
|
+
var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
1894
|
+
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
1895
|
+
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
1896
|
+
return defineProperty$1.f(target, name, descriptor);
|
|
1897
|
+
};
|
|
1898
|
+
|
|
1867
1899
|
var global$9 = global$C;
|
|
1868
1900
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1869
1901
|
|
|
@@ -1874,27 +1906,27 @@ var anInstance$2 = function (it, Prototype) {
|
|
|
1874
1906
|
throw TypeError$6('Incorrect invocation');
|
|
1875
1907
|
};
|
|
1876
1908
|
|
|
1877
|
-
var DESCRIPTORS$
|
|
1878
|
-
var uncurryThis$
|
|
1879
|
-
var call$
|
|
1880
|
-
var fails$2 = fails$
|
|
1909
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1910
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1911
|
+
var call$5 = functionCall;
|
|
1912
|
+
var fails$2 = fails$h;
|
|
1881
1913
|
var objectKeys = objectKeys$2;
|
|
1882
1914
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1883
1915
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1884
1916
|
var toObject$1 = toObject$4;
|
|
1885
1917
|
var IndexedObject = indexedObject;
|
|
1886
1918
|
|
|
1887
|
-
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1919
|
+
// eslint-disable-next-line es-x/no-object-assign -- safe
|
|
1888
1920
|
var $assign = Object.assign;
|
|
1889
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1921
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
1890
1922
|
var defineProperty = Object.defineProperty;
|
|
1891
|
-
var concat = uncurryThis$
|
|
1923
|
+
var concat = uncurryThis$5([].concat);
|
|
1892
1924
|
|
|
1893
1925
|
// `Object.assign` method
|
|
1894
1926
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1895
1927
|
var objectAssign = !$assign || fails$2(function () {
|
|
1896
1928
|
// should have correct order of operations (Edge bug)
|
|
1897
|
-
if (DESCRIPTORS$
|
|
1929
|
+
if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1898
1930
|
enumerable: true,
|
|
1899
1931
|
get: function () {
|
|
1900
1932
|
defineProperty(this, 'b', {
|
|
@@ -1906,7 +1938,7 @@ var objectAssign = !$assign || fails$2(function () {
|
|
|
1906
1938
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
1907
1939
|
var A = {};
|
|
1908
1940
|
var B = {};
|
|
1909
|
-
// eslint-disable-next-line es/no-symbol -- safe
|
|
1941
|
+
// eslint-disable-next-line es-x/no-symbol -- safe
|
|
1910
1942
|
var symbol = Symbol();
|
|
1911
1943
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
1912
1944
|
A[symbol] = 7;
|
|
@@ -1926,12 +1958,12 @@ var objectAssign = !$assign || fails$2(function () {
|
|
|
1926
1958
|
var key;
|
|
1927
1959
|
while (length > j) {
|
|
1928
1960
|
key = keys[j++];
|
|
1929
|
-
if (!DESCRIPTORS$
|
|
1961
|
+
if (!DESCRIPTORS$2 || call$5(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1930
1962
|
}
|
|
1931
1963
|
} return T;
|
|
1932
1964
|
} : $assign;
|
|
1933
1965
|
|
|
1934
|
-
var call$
|
|
1966
|
+
var call$4 = functionCall;
|
|
1935
1967
|
var anObject$4 = anObject$b;
|
|
1936
1968
|
var getMethod$1 = getMethod$3;
|
|
1937
1969
|
|
|
@@ -1944,7 +1976,7 @@ var iteratorClose$1 = function (iterator, kind, value) {
|
|
|
1944
1976
|
if (kind === 'throw') throw value;
|
|
1945
1977
|
return value;
|
|
1946
1978
|
}
|
|
1947
|
-
innerResult = call$
|
|
1979
|
+
innerResult = call$4(innerResult, iterator);
|
|
1948
1980
|
} catch (error) {
|
|
1949
1981
|
innerError = true;
|
|
1950
1982
|
innerResult = error;
|
|
@@ -1978,18 +2010,18 @@ var isArrayIteratorMethod$1 = function (it) {
|
|
|
1978
2010
|
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
|
|
1979
2011
|
};
|
|
1980
2012
|
|
|
1981
|
-
var uncurryThis$
|
|
1982
|
-
var fails$1 = fails$
|
|
1983
|
-
var isCallable$1 = isCallable$
|
|
2013
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
2014
|
+
var fails$1 = fails$h;
|
|
2015
|
+
var isCallable$1 = isCallable$h;
|
|
1984
2016
|
var classof$3 = classof$5;
|
|
1985
|
-
var getBuiltIn
|
|
2017
|
+
var getBuiltIn = getBuiltIn$5;
|
|
1986
2018
|
var inspectSource = inspectSource$3;
|
|
1987
2019
|
|
|
1988
2020
|
var noop = function () { /* empty */ };
|
|
1989
2021
|
var empty = [];
|
|
1990
|
-
var construct = getBuiltIn
|
|
2022
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
|
1991
2023
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
1992
|
-
var exec$2 = uncurryThis$
|
|
2024
|
+
var exec$2 = uncurryThis$4(constructorRegExp.exec);
|
|
1993
2025
|
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
|
1994
2026
|
|
|
1995
2027
|
var isConstructorModern = function isConstructor(argument) {
|
|
@@ -2055,7 +2087,7 @@ var getIteratorMethod$3 = function (it) {
|
|
|
2055
2087
|
};
|
|
2056
2088
|
|
|
2057
2089
|
var global$8 = global$C;
|
|
2058
|
-
var call$
|
|
2090
|
+
var call$3 = functionCall;
|
|
2059
2091
|
var aCallable = aCallable$3;
|
|
2060
2092
|
var anObject$2 = anObject$b;
|
|
2061
2093
|
var tryToString = tryToString$2;
|
|
@@ -2065,13 +2097,13 @@ var TypeError$5 = global$8.TypeError;
|
|
|
2065
2097
|
|
|
2066
2098
|
var getIterator$2 = function (argument, usingIterator) {
|
|
2067
2099
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$2(argument) : usingIterator;
|
|
2068
|
-
if (aCallable(iteratorMethod)) return anObject$2(call$
|
|
2100
|
+
if (aCallable(iteratorMethod)) return anObject$2(call$3(iteratorMethod, argument));
|
|
2069
2101
|
throw TypeError$5(tryToString(argument) + ' is not iterable');
|
|
2070
2102
|
};
|
|
2071
2103
|
|
|
2072
2104
|
var global$7 = global$C;
|
|
2073
2105
|
var bind$2 = functionBindContext;
|
|
2074
|
-
var call$
|
|
2106
|
+
var call$2 = functionCall;
|
|
2075
2107
|
var toObject = toObject$4;
|
|
2076
2108
|
var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
|
|
2077
2109
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
@@ -2100,7 +2132,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
2100
2132
|
iterator = getIterator$1(O, iteratorMethod);
|
|
2101
2133
|
next = iterator.next;
|
|
2102
2134
|
result = IS_CONSTRUCTOR ? new this() : [];
|
|
2103
|
-
for (;!(step = call$
|
|
2135
|
+
for (;!(step = call$2(next, iterator)).done; index++) {
|
|
2104
2136
|
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
|
|
2105
2137
|
createProperty$1(result, index, value);
|
|
2106
2138
|
}
|
|
@@ -2136,7 +2168,7 @@ var arraySliceSimple = function (O, start, end) {
|
|
|
2136
2168
|
|
|
2137
2169
|
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
2138
2170
|
var global$5 = global$C;
|
|
2139
|
-
var uncurryThis$
|
|
2171
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
2140
2172
|
|
|
2141
2173
|
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
2142
2174
|
var base = 36;
|
|
@@ -2153,15 +2185,15 @@ var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
|
|
|
2153
2185
|
var baseMinusTMin = base - tMin;
|
|
2154
2186
|
|
|
2155
2187
|
var RangeError = global$5.RangeError;
|
|
2156
|
-
var exec$1 = uncurryThis$
|
|
2188
|
+
var exec$1 = uncurryThis$3(regexSeparators.exec);
|
|
2157
2189
|
var floor$2 = Math.floor;
|
|
2158
2190
|
var fromCharCode = String.fromCharCode;
|
|
2159
|
-
var charCodeAt = uncurryThis$
|
|
2160
|
-
var join$2 = uncurryThis$
|
|
2161
|
-
var push$2 = uncurryThis$
|
|
2162
|
-
var replace$2 = uncurryThis$
|
|
2163
|
-
var split$2 = uncurryThis$
|
|
2164
|
-
var toLowerCase$1 = uncurryThis$
|
|
2191
|
+
var charCodeAt = uncurryThis$3(''.charCodeAt);
|
|
2192
|
+
var join$2 = uncurryThis$3([].join);
|
|
2193
|
+
var push$2 = uncurryThis$3([].push);
|
|
2194
|
+
var replace$2 = uncurryThis$3(''.replace);
|
|
2195
|
+
var split$2 = uncurryThis$3(''.split);
|
|
2196
|
+
var toLowerCase$1 = uncurryThis$3(''.toLowerCase);
|
|
2165
2197
|
|
|
2166
2198
|
/**
|
|
2167
2199
|
* Creates an array containing the numeric code points of each Unicode
|
|
@@ -2325,10 +2357,10 @@ var validateArgumentsLength$2 = function (passed, required) {
|
|
|
2325
2357
|
return passed;
|
|
2326
2358
|
};
|
|
2327
2359
|
|
|
2328
|
-
var
|
|
2360
|
+
var defineBuiltIn$3 = defineBuiltIn$7;
|
|
2329
2361
|
|
|
2330
|
-
var
|
|
2331
|
-
for (var key in src)
|
|
2362
|
+
var defineBuiltIns$1 = function (target, src, options) {
|
|
2363
|
+
for (var key in src) defineBuiltIn$3(target, key, src[key], options);
|
|
2332
2364
|
return target;
|
|
2333
2365
|
};
|
|
2334
2366
|
|
|
@@ -2381,18 +2413,18 @@ var arraySort$1 = mergeSort;
|
|
|
2381
2413
|
|
|
2382
2414
|
var $$2 = _export;
|
|
2383
2415
|
var global$3 = global$C;
|
|
2384
|
-
var
|
|
2385
|
-
var
|
|
2386
|
-
var
|
|
2416
|
+
var call$1 = functionCall;
|
|
2417
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
2418
|
+
var DESCRIPTORS$1 = descriptors;
|
|
2387
2419
|
var USE_NATIVE_URL$1 = nativeUrl;
|
|
2388
|
-
var
|
|
2389
|
-
var
|
|
2420
|
+
var defineBuiltIn$2 = defineBuiltIn$7;
|
|
2421
|
+
var defineBuiltIns = defineBuiltIns$1;
|
|
2390
2422
|
var setToStringTag$1 = setToStringTag$4;
|
|
2391
2423
|
var createIteratorConstructor = createIteratorConstructor$2;
|
|
2392
2424
|
var InternalStateModule$1 = internalState;
|
|
2393
2425
|
var anInstance$1 = anInstance$2;
|
|
2394
|
-
var isCallable = isCallable$
|
|
2395
|
-
var hasOwn$
|
|
2426
|
+
var isCallable = isCallable$h;
|
|
2427
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
2396
2428
|
var bind$1 = functionBindContext;
|
|
2397
2429
|
var classof$1 = classof$5;
|
|
2398
2430
|
var anObject$1 = anObject$b;
|
|
@@ -2412,24 +2444,33 @@ var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
|
|
|
2412
2444
|
var setInternalState$1 = InternalStateModule$1.set;
|
|
2413
2445
|
var getInternalParamsState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS);
|
|
2414
2446
|
var getInternalIteratorState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR);
|
|
2447
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
2448
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
2449
|
+
|
|
2450
|
+
// Avoid NodeJS experimental warning
|
|
2451
|
+
var safeGetBuiltIn = function (name) {
|
|
2452
|
+
if (!DESCRIPTORS$1) return global$3[name];
|
|
2453
|
+
var descriptor = getOwnPropertyDescriptor$1(global$3, name);
|
|
2454
|
+
return descriptor && descriptor.value;
|
|
2455
|
+
};
|
|
2415
2456
|
|
|
2416
|
-
var
|
|
2417
|
-
var
|
|
2418
|
-
var Headers =
|
|
2419
|
-
var RequestPrototype =
|
|
2457
|
+
var nativeFetch = safeGetBuiltIn('fetch');
|
|
2458
|
+
var NativeRequest = safeGetBuiltIn('Request');
|
|
2459
|
+
var Headers = safeGetBuiltIn('Headers');
|
|
2460
|
+
var RequestPrototype = NativeRequest && NativeRequest.prototype;
|
|
2420
2461
|
var HeadersPrototype = Headers && Headers.prototype;
|
|
2421
2462
|
var RegExp$1 = global$3.RegExp;
|
|
2422
2463
|
var TypeError$3 = global$3.TypeError;
|
|
2423
2464
|
var decodeURIComponent = global$3.decodeURIComponent;
|
|
2424
2465
|
var encodeURIComponent$1 = global$3.encodeURIComponent;
|
|
2425
|
-
var charAt$1 = uncurryThis$
|
|
2426
|
-
var join$1 = uncurryThis$
|
|
2427
|
-
var push$1 = uncurryThis$
|
|
2428
|
-
var replace$1 = uncurryThis$
|
|
2429
|
-
var shift$1 = uncurryThis$
|
|
2430
|
-
var splice = uncurryThis$
|
|
2431
|
-
var split$1 = uncurryThis$
|
|
2432
|
-
var stringSlice$2 = uncurryThis$
|
|
2466
|
+
var charAt$1 = uncurryThis$2(''.charAt);
|
|
2467
|
+
var join$1 = uncurryThis$2([].join);
|
|
2468
|
+
var push$1 = uncurryThis$2([].push);
|
|
2469
|
+
var replace$1 = uncurryThis$2(''.replace);
|
|
2470
|
+
var shift$1 = uncurryThis$2([].shift);
|
|
2471
|
+
var splice = uncurryThis$2([].splice);
|
|
2472
|
+
var split$1 = uncurryThis$2(''.split);
|
|
2473
|
+
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
2433
2474
|
|
|
2434
2475
|
var plus = /\+/g;
|
|
2435
2476
|
var sequences = Array(4);
|
|
@@ -2517,17 +2558,17 @@ URLSearchParamsState.prototype = {
|
|
|
2517
2558
|
if (iteratorMethod) {
|
|
2518
2559
|
iterator = getIterator(object, iteratorMethod);
|
|
2519
2560
|
next = iterator.next;
|
|
2520
|
-
while (!(step = call(next, iterator)).done) {
|
|
2561
|
+
while (!(step = call$1(next, iterator)).done) {
|
|
2521
2562
|
entryIterator = getIterator(anObject$1(step.value));
|
|
2522
2563
|
entryNext = entryIterator.next;
|
|
2523
2564
|
if (
|
|
2524
|
-
(first = call(entryNext, entryIterator)).done ||
|
|
2525
|
-
(second = call(entryNext, entryIterator)).done ||
|
|
2526
|
-
!call(entryNext, entryIterator).done
|
|
2565
|
+
(first = call$1(entryNext, entryIterator)).done ||
|
|
2566
|
+
(second = call$1(entryNext, entryIterator)).done ||
|
|
2567
|
+
!call$1(entryNext, entryIterator).done
|
|
2527
2568
|
) throw TypeError$3('Expected sequence with length 2');
|
|
2528
2569
|
push$1(this.entries, { key: $toString$2(first.value), value: $toString$2(second.value) });
|
|
2529
2570
|
}
|
|
2530
|
-
} else for (var key in object) if (hasOwn$
|
|
2571
|
+
} else for (var key in object) if (hasOwn$2(object, key)) {
|
|
2531
2572
|
push$1(this.entries, { key: key, value: $toString$2(object[key]) });
|
|
2532
2573
|
}
|
|
2533
2574
|
},
|
|
@@ -2577,7 +2618,7 @@ var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
|
2577
2618
|
|
|
2578
2619
|
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
|
2579
2620
|
|
|
2580
|
-
|
|
2621
|
+
defineBuiltIns(URLSearchParamsPrototype, {
|
|
2581
2622
|
// `URLSearchParams.prototype.append` method
|
|
2582
2623
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
2583
2624
|
append: function append(name, value) {
|
|
@@ -2696,11 +2737,11 @@ redefineAll(URLSearchParamsPrototype, {
|
|
|
2696
2737
|
}, { enumerable: true });
|
|
2697
2738
|
|
|
2698
2739
|
// `URLSearchParams.prototype[@@iterator]` method
|
|
2699
|
-
|
|
2740
|
+
defineBuiltIn$2(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
|
|
2700
2741
|
|
|
2701
2742
|
// `URLSearchParams.prototype.toString` method
|
|
2702
2743
|
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
|
2703
|
-
|
|
2744
|
+
defineBuiltIn$2(URLSearchParamsPrototype, 'toString', function toString() {
|
|
2704
2745
|
return getInternalParamsState(this).serialize();
|
|
2705
2746
|
}, { enumerable: true });
|
|
2706
2747
|
|
|
@@ -2712,8 +2753,8 @@ $$2({ global: true, forced: !USE_NATIVE_URL$1 }, {
|
|
|
2712
2753
|
|
|
2713
2754
|
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
|
|
2714
2755
|
if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
2715
|
-
var headersHas = uncurryThis$
|
|
2716
|
-
var headersSet = uncurryThis$
|
|
2756
|
+
var headersHas = uncurryThis$2(HeadersPrototype.has);
|
|
2757
|
+
var headersSet = uncurryThis$2(HeadersPrototype.set);
|
|
2717
2758
|
|
|
2718
2759
|
var wrapRequestOptions = function (init) {
|
|
2719
2760
|
if (isObject$1(init)) {
|
|
@@ -2732,30 +2773,30 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
2732
2773
|
} return init;
|
|
2733
2774
|
};
|
|
2734
2775
|
|
|
2735
|
-
if (isCallable(
|
|
2736
|
-
$$2({ global: true, enumerable: true, forced: true }, {
|
|
2776
|
+
if (isCallable(nativeFetch)) {
|
|
2777
|
+
$$2({ global: true, enumerable: true, noTargetGet: true, forced: true }, {
|
|
2737
2778
|
fetch: function fetch(input /* , init */) {
|
|
2738
|
-
return
|
|
2779
|
+
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
2739
2780
|
}
|
|
2740
2781
|
});
|
|
2741
2782
|
}
|
|
2742
2783
|
|
|
2743
|
-
if (isCallable(
|
|
2784
|
+
if (isCallable(NativeRequest)) {
|
|
2744
2785
|
var RequestConstructor = function Request(input /* , init */) {
|
|
2745
2786
|
anInstance$1(this, RequestPrototype);
|
|
2746
|
-
return new
|
|
2787
|
+
return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
2747
2788
|
};
|
|
2748
2789
|
|
|
2749
2790
|
RequestPrototype.constructor = RequestConstructor;
|
|
2750
2791
|
RequestConstructor.prototype = RequestPrototype;
|
|
2751
2792
|
|
|
2752
|
-
$$2({ global: true, forced: true }, {
|
|
2793
|
+
$$2({ global: true, forced: true, noTargetGet: true }, {
|
|
2753
2794
|
Request: RequestConstructor
|
|
2754
2795
|
});
|
|
2755
2796
|
}
|
|
2756
2797
|
}
|
|
2757
2798
|
|
|
2758
|
-
var
|
|
2799
|
+
var web_urlSearchParams_constructor = {
|
|
2759
2800
|
URLSearchParams: URLSearchParamsConstructor,
|
|
2760
2801
|
getState: getInternalParamsState
|
|
2761
2802
|
};
|
|
@@ -2767,11 +2808,11 @@ var DESCRIPTORS = descriptors;
|
|
|
2767
2808
|
var USE_NATIVE_URL = nativeUrl;
|
|
2768
2809
|
var global$2 = global$C;
|
|
2769
2810
|
var bind = functionBindContext;
|
|
2770
|
-
var uncurryThis$
|
|
2771
|
-
var
|
|
2772
|
-
var
|
|
2811
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
2812
|
+
var defineBuiltIn$1 = defineBuiltIn$7;
|
|
2813
|
+
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
2773
2814
|
var anInstance = anInstance$2;
|
|
2774
|
-
var hasOwn = hasOwnProperty_1;
|
|
2815
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
2775
2816
|
var assign = objectAssign;
|
|
2776
2817
|
var arrayFrom = arrayFrom$1;
|
|
2777
2818
|
var arraySlice = arraySliceSimple;
|
|
@@ -2780,7 +2821,7 @@ var toASCII = stringPunycodeToAscii;
|
|
|
2780
2821
|
var $toString$1 = toString$4;
|
|
2781
2822
|
var setToStringTag = setToStringTag$4;
|
|
2782
2823
|
var validateArgumentsLength = validateArgumentsLength$2;
|
|
2783
|
-
var URLSearchParamsModule =
|
|
2824
|
+
var URLSearchParamsModule = web_urlSearchParams_constructor;
|
|
2784
2825
|
var InternalStateModule = internalState;
|
|
2785
2826
|
|
|
2786
2827
|
var setInternalState = InternalStateModule.set;
|
|
@@ -2793,18 +2834,18 @@ var TypeError$2 = global$2.TypeError;
|
|
|
2793
2834
|
var parseInt = global$2.parseInt;
|
|
2794
2835
|
var floor = Math.floor;
|
|
2795
2836
|
var pow = Math.pow;
|
|
2796
|
-
var charAt = uncurryThis$
|
|
2797
|
-
var exec = uncurryThis$
|
|
2798
|
-
var join = uncurryThis$
|
|
2799
|
-
var numberToString = uncurryThis$
|
|
2800
|
-
var pop = uncurryThis$
|
|
2801
|
-
var push = uncurryThis$
|
|
2802
|
-
var replace = uncurryThis$
|
|
2803
|
-
var shift = uncurryThis$
|
|
2804
|
-
var split = uncurryThis$
|
|
2805
|
-
var stringSlice$1 = uncurryThis$
|
|
2806
|
-
var toLowerCase = uncurryThis$
|
|
2807
|
-
var unshift = uncurryThis$
|
|
2837
|
+
var charAt = uncurryThis$1(''.charAt);
|
|
2838
|
+
var exec = uncurryThis$1(/./.exec);
|
|
2839
|
+
var join = uncurryThis$1([].join);
|
|
2840
|
+
var numberToString = uncurryThis$1(1.0.toString);
|
|
2841
|
+
var pop = uncurryThis$1([].pop);
|
|
2842
|
+
var push = uncurryThis$1([].push);
|
|
2843
|
+
var replace = uncurryThis$1(''.replace);
|
|
2844
|
+
var shift = uncurryThis$1([].shift);
|
|
2845
|
+
var split = uncurryThis$1(''.split);
|
|
2846
|
+
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
2847
|
+
var toLowerCase = uncurryThis$1(''.toLowerCase);
|
|
2848
|
+
var unshift = uncurryThis$1([].unshift);
|
|
2808
2849
|
|
|
2809
2850
|
var INVALID_AUTHORITY = 'Invalid authority';
|
|
2810
2851
|
var INVALID_SCHEME = 'Invalid scheme';
|
|
@@ -3012,7 +3053,7 @@ var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
|
|
|
3012
3053
|
|
|
3013
3054
|
var percentEncode = function (chr, set) {
|
|
3014
3055
|
var code = codeAt(chr, 0);
|
|
3015
|
-
return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
|
|
3056
|
+
return code > 0x20 && code < 0x7F && !hasOwn$1(set, chr) ? chr : encodeURIComponent(chr);
|
|
3016
3057
|
};
|
|
3017
3058
|
|
|
3018
3059
|
// https://url.spec.whatwg.org/#special-scheme
|
|
@@ -3143,7 +3184,7 @@ URLState.prototype = {
|
|
|
3143
3184
|
buffer += toLowerCase(chr);
|
|
3144
3185
|
} else if (chr == ':') {
|
|
3145
3186
|
if (stateOverride && (
|
|
3146
|
-
(url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
|
|
3187
|
+
(url.isSpecial() != hasOwn$1(specialSchemes, buffer)) ||
|
|
3147
3188
|
(buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
|
|
3148
3189
|
(url.scheme == 'file' && !url.host)
|
|
3149
3190
|
)) return;
|
|
@@ -3531,7 +3572,7 @@ URLState.prototype = {
|
|
|
3531
3572
|
},
|
|
3532
3573
|
// https://url.spec.whatwg.org/#is-special
|
|
3533
3574
|
isSpecial: function () {
|
|
3534
|
-
return hasOwn(specialSchemes, this.scheme);
|
|
3575
|
+
return hasOwn$1(specialSchemes, this.scheme);
|
|
3535
3576
|
},
|
|
3536
3577
|
// https://url.spec.whatwg.org/#shorten-a-urls-path
|
|
3537
3578
|
shortenPath: function () {
|
|
@@ -3735,55 +3776,53 @@ var accessorDescriptor = function (getter, setter) {
|
|
|
3735
3776
|
};
|
|
3736
3777
|
|
|
3737
3778
|
if (DESCRIPTORS) {
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
hash: accessorDescriptor('getHash', 'setHash')
|
|
3775
|
-
});
|
|
3779
|
+
// `URL.prototype.href` accessors pair
|
|
3780
|
+
// https://url.spec.whatwg.org/#dom-url-href
|
|
3781
|
+
defineBuiltInAccessor(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref'));
|
|
3782
|
+
// `URL.prototype.origin` getter
|
|
3783
|
+
// https://url.spec.whatwg.org/#dom-url-origin
|
|
3784
|
+
defineBuiltInAccessor(URLPrototype, 'origin', accessorDescriptor('getOrigin'));
|
|
3785
|
+
// `URL.prototype.protocol` accessors pair
|
|
3786
|
+
// https://url.spec.whatwg.org/#dom-url-protocol
|
|
3787
|
+
defineBuiltInAccessor(URLPrototype, 'protocol', accessorDescriptor('getProtocol', 'setProtocol'));
|
|
3788
|
+
// `URL.prototype.username` accessors pair
|
|
3789
|
+
// https://url.spec.whatwg.org/#dom-url-username
|
|
3790
|
+
defineBuiltInAccessor(URLPrototype, 'username', accessorDescriptor('getUsername', 'setUsername'));
|
|
3791
|
+
// `URL.prototype.password` accessors pair
|
|
3792
|
+
// https://url.spec.whatwg.org/#dom-url-password
|
|
3793
|
+
defineBuiltInAccessor(URLPrototype, 'password', accessorDescriptor('getPassword', 'setPassword'));
|
|
3794
|
+
// `URL.prototype.host` accessors pair
|
|
3795
|
+
// https://url.spec.whatwg.org/#dom-url-host
|
|
3796
|
+
defineBuiltInAccessor(URLPrototype, 'host', accessorDescriptor('getHost', 'setHost'));
|
|
3797
|
+
// `URL.prototype.hostname` accessors pair
|
|
3798
|
+
// https://url.spec.whatwg.org/#dom-url-hostname
|
|
3799
|
+
defineBuiltInAccessor(URLPrototype, 'hostname', accessorDescriptor('getHostname', 'setHostname'));
|
|
3800
|
+
// `URL.prototype.port` accessors pair
|
|
3801
|
+
// https://url.spec.whatwg.org/#dom-url-port
|
|
3802
|
+
defineBuiltInAccessor(URLPrototype, 'port', accessorDescriptor('getPort', 'setPort'));
|
|
3803
|
+
// `URL.prototype.pathname` accessors pair
|
|
3804
|
+
// https://url.spec.whatwg.org/#dom-url-pathname
|
|
3805
|
+
defineBuiltInAccessor(URLPrototype, 'pathname', accessorDescriptor('getPathname', 'setPathname'));
|
|
3806
|
+
// `URL.prototype.search` accessors pair
|
|
3807
|
+
// https://url.spec.whatwg.org/#dom-url-search
|
|
3808
|
+
defineBuiltInAccessor(URLPrototype, 'search', accessorDescriptor('getSearch', 'setSearch'));
|
|
3809
|
+
// `URL.prototype.searchParams` getter
|
|
3810
|
+
// https://url.spec.whatwg.org/#dom-url-searchparams
|
|
3811
|
+
defineBuiltInAccessor(URLPrototype, 'searchParams', accessorDescriptor('getSearchParams'));
|
|
3812
|
+
// `URL.prototype.hash` accessors pair
|
|
3813
|
+
// https://url.spec.whatwg.org/#dom-url-hash
|
|
3814
|
+
defineBuiltInAccessor(URLPrototype, 'hash', accessorDescriptor('getHash', 'setHash'));
|
|
3776
3815
|
}
|
|
3777
3816
|
|
|
3778
3817
|
// `URL.prototype.toJSON` method
|
|
3779
3818
|
// https://url.spec.whatwg.org/#dom-url-tojson
|
|
3780
|
-
|
|
3819
|
+
defineBuiltIn$1(URLPrototype, 'toJSON', function toJSON() {
|
|
3781
3820
|
return getInternalURLState(this).serialize();
|
|
3782
3821
|
}, { enumerable: true });
|
|
3783
3822
|
|
|
3784
3823
|
// `URL.prototype.toString` method
|
|
3785
3824
|
// https://url.spec.whatwg.org/#URL-stringification-behavior
|
|
3786
|
-
|
|
3825
|
+
defineBuiltIn$1(URLPrototype, 'toString', function toString() {
|
|
3787
3826
|
return getInternalURLState(this).serialize();
|
|
3788
3827
|
}, { enumerable: true });
|
|
3789
3828
|
|
|
@@ -3792,10 +3831,10 @@ if (NativeURL) {
|
|
|
3792
3831
|
var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
|
|
3793
3832
|
// `URL.createObjectURL` method
|
|
3794
3833
|
// https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
|
|
3795
|
-
if (nativeCreateObjectURL)
|
|
3834
|
+
if (nativeCreateObjectURL) defineBuiltIn$1(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
|
|
3796
3835
|
// `URL.revokeObjectURL` method
|
|
3797
3836
|
// https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
|
|
3798
|
-
if (nativeRevokeObjectURL)
|
|
3837
|
+
if (nativeRevokeObjectURL) defineBuiltIn$1(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
|
|
3799
3838
|
}
|
|
3800
3839
|
|
|
3801
3840
|
setToStringTag(URLConstructor, 'URL');
|
|
@@ -3845,7 +3884,7 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
3845
3884
|
};
|
|
3846
3885
|
|
|
3847
3886
|
var $ = _export;
|
|
3848
|
-
var uncurryThis
|
|
3887
|
+
var uncurryThis = functionUncurryThis;
|
|
3849
3888
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
3850
3889
|
var toLength = toLength$2;
|
|
3851
3890
|
var toString = toString$4;
|
|
@@ -3853,9 +3892,9 @@ var notARegExp = notARegexp;
|
|
|
3853
3892
|
var requireObjectCoercible = requireObjectCoercible$4;
|
|
3854
3893
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
3855
3894
|
|
|
3856
|
-
// eslint-disable-next-line es/no-string-prototype-startswith -- safe
|
|
3857
|
-
var un$StartsWith = uncurryThis
|
|
3858
|
-
var stringSlice = uncurryThis
|
|
3895
|
+
// eslint-disable-next-line es-x/no-string-prototype-startswith -- safe
|
|
3896
|
+
var un$StartsWith = uncurryThis(''.startsWith);
|
|
3897
|
+
var stringSlice = uncurryThis(''.slice);
|
|
3859
3898
|
var min = Math.min;
|
|
3860
3899
|
|
|
3861
3900
|
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
|
|
@@ -3879,19 +3918,29 @@ $({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGE
|
|
|
3879
3918
|
}
|
|
3880
3919
|
});
|
|
3881
3920
|
|
|
3882
|
-
var
|
|
3921
|
+
var call = functionCall;
|
|
3922
|
+
var hasOwn = hasOwnProperty_1;
|
|
3923
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
3924
|
+
var regExpFlags = regexpFlags$1;
|
|
3925
|
+
|
|
3926
|
+
var RegExpPrototype$1 = RegExp.prototype;
|
|
3927
|
+
|
|
3928
|
+
var regexpGetFlags = function (R) {
|
|
3929
|
+
var flags = R.flags;
|
|
3930
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
|
|
3931
|
+
? call(regExpFlags, R) : flags;
|
|
3932
|
+
};
|
|
3933
|
+
|
|
3883
3934
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
3884
|
-
var
|
|
3935
|
+
var defineBuiltIn = defineBuiltIn$7;
|
|
3885
3936
|
var anObject = anObject$b;
|
|
3886
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
3887
3937
|
var $toString = toString$4;
|
|
3888
|
-
var fails = fails$
|
|
3889
|
-
var
|
|
3938
|
+
var fails = fails$h;
|
|
3939
|
+
var getRegExpFlags = regexpGetFlags;
|
|
3890
3940
|
|
|
3891
3941
|
var TO_STRING = 'toString';
|
|
3892
3942
|
var RegExpPrototype = RegExp.prototype;
|
|
3893
3943
|
var n$ToString = RegExpPrototype[TO_STRING];
|
|
3894
|
-
var getFlags = uncurryThis(regExpFlags);
|
|
3895
3944
|
|
|
3896
3945
|
var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
3897
3946
|
// FF44- RegExp#toString has a wrong name
|
|
@@ -3900,17 +3949,46 @@ var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
|
|
|
3900
3949
|
// `RegExp.prototype.toString` method
|
|
3901
3950
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
3902
3951
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
3903
|
-
|
|
3952
|
+
defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
|
|
3904
3953
|
var R = anObject(this);
|
|
3905
|
-
var
|
|
3906
|
-
var
|
|
3907
|
-
|
|
3908
|
-
return '/' + p + '/' + f;
|
|
3954
|
+
var pattern = $toString(R.source);
|
|
3955
|
+
var flags = $toString(getRegExpFlags(R));
|
|
3956
|
+
return '/' + pattern + '/' + flags;
|
|
3909
3957
|
}, { unsafe: true });
|
|
3910
3958
|
}
|
|
3911
3959
|
|
|
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.
|
|
3960
|
+
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. 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. Remembers those who died in the War of Independence and other wars in Israel. The full name of the holiday is Yom HaZikaron LeHalalei Ma'arakhot Yisrael ul'Nifge'ei Pe'ulot HaEivah (Hebrew: יוֹם הזִּכָּרוֹן לְחַלְלֵי מַעֲרָכוֹת יִשְׂרָאֵל וּלְנִפְגְעֵי פְּעֻלּוֹת הָאֵיבָה), Memorial Day for the Fallen Soldiers of the Wars of Israel and Victims of Actions of Terrorism. 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"};
|
|
3961
|
+
|
|
3962
|
+
var AD="Andorra";var AE="United Arab Emirates";var AF="Afghanistan";var AI="Anguilla";var AL="Albania";var AM="Armenia";var AO="Angola";var AR="Argentina";var AS="American Samoa";var AT="Austria";var AU="Australia";var AW="Aruba";var AZ="Azerbaijan";var BA="Bosnia and Herzegovina";var BB="Barbados";var BD="Bangladesh";var BE="Belgium";var BF="Burkina Faso";var BG="Bulgaria";var BH="Bahrain";var BI="Burundi";var BJ="Benin";var BM="Bermuda";var BN="Brunei";var BO="Bolivia";var BR="Brazil";var BS="Bahamas";var BT="Bhutan";var BW="Botswana";var BY="Belarus";var BZ="Belize";var CA="Canada";var CD="Democratic Republic of the Congo";var CF="Central African Republic";var CG="Republic of the Congo";var CH="Switzerland";var CI="Ivory Coast";var CK="Cook Islands";var CL="Chile";var CM="Cameroon";var CN="China";var CO="Colombia";var CR="Costa Rica";var CU="Cuba";var CV="Cape Verde";var CW="Curacao";var CY="Cyprus";var CZ="Czech Republic";var DE="Germany";var DK="Denmark";var DM="Dominica";var DO="Dominican Republic";var DZ="Algeria";var EC="Ecuador";var EE="Estonia";var EG="Egypt";var ER="Eritrea";var ES="Spain";var ET="Ethiopia";var FI="Finland";var FJ="Fiji";var FK="Falkland Islands";var FO="Faroe Islands";var FR="France";var GA="Gabon";var GB="United Kingdom";var GE="Georgia";var GH="Ghana";var GI="Gibraltar";var GL="Greenland";var GM="Gambia";var GN="Guinea";var GQ="Equatorial Guinea";var GR="Greece";var GT="Guatemala";var GW="Guinea-Bissau";var GY="Guyana";var HK="Hong Kong";var HN="Honduras";var HR="Croatia";var HT="Haiti";var HU="Hungary";var ID="Indonesia";var IE="Ireland";var IL="Israel";var IM="Isle of Man";var IN="India";var IQ="Iraq";var IR="Iran";var IS="Iceland";var IT="Italy";var JM="Jamaica";var JO="Jordan";var JP="Japan";var KE="Kenya";var KG="Kyrgyzstan";var KH="Cambodia";var KM="Comoros";var KN="Saint Kitts and Nevis";var KP="North Korea";var KR="South Korea";var KW="Kuwait";var KY="Cayman Islands";var KZ="Kazakhstan";var LA="Laos";var LB="Lebanon";var LC="Saint Lucia";var LI="Liechtenstein";var LR="Liberia";var LS="Lesotho";var LT="Lithuania";var LU="Luxembourg";var LV="Latvia";var LY="Libya";var MA="Morocco";var MD="Moldova";var ME="Montenegro";var MG="Madagascar";var MK="Macedonia";var ML="Mali";var MM="Myanmar";var MN="Mongolia";var MP="Northern Mariana Islands";var MR="Mauritania";var MS="Montserrat";var MT="Malta";var MU="Mauritius";var MW="Malawi";var MX="Mexico";var MY="Malaysia";var MZ="Mozambique";var NA="Namibia";var NC="New Caledonia";var NE="Niger";var NG="Nigeria";var NI="Nicaragua";var NL="Netherlands";var NO="Norway";var NP="Nepal";var NU="Niue";var NZ="New Zealand";var OM="Oman";var PA="Panama";var PE="Peru";var PF="French Polynesia";var PG="Papua New Guinea";var PH="Philippines";var PK="Pakistan";var PL="Poland";var PR="Puerto Rico";var PT="Portugal";var PY="Paraguay";var QA="Qatar";var RO="Romania";var RS="Serbia";var RU="Russia";var RW="Rwanda";var SA="Saudi Arabia";var SB="Solomon Islands";var SC="Seychelles";var SD="Sudan";var SE="Sweden";var SG="Singapore";var SH="Saint Helena";var SI="Slovenia";var SK="Slovakia";var SL="Sierra Leone";var SN="Senegal";var SO="Somalia";var SR="Suriname";var ST="Sao Tome and Principe";var SV="El Salvador";var SY="Syria";var SZ="Swaziland";var TC="Turks and Caicos Islands";var TD="Chad";var TG="Togo";var TH="Thailand";var TJ="Tajikistan";var TM="Turkmenistan";var TN="Tunisia";var TR="Turkey";var TV="Tuvalu";var TW="Taiwan";var TZ="Tanzania";var UA="Ukraine";var UG="Uganda";var US="United States";var UY="Uruguay";var UZ="Uzbekistan";var VC="Saint Vincent and the Grenadines";var VE="Venezuela";var VG="British Virgin Islands";var VN="Vietnam";var WS="Samoa";var YE="Yemen";var YT="Mayotte";var ZA="South Africa";var ZM="Zambia";var ZW="Zimbabwe";var countryNames = {AD:AD,AE:AE,AF:AF,AI:AI,AL:AL,AM:AM,AO:AO,AR:AR,AS:AS,AT:AT,AU:AU,AW:AW,AZ:AZ,BA:BA,BB:BB,BD:BD,BE:BE,BF:BF,BG:BG,BH:BH,BI:BI,BJ:BJ,BM:BM,BN:BN,BO:BO,BR:BR,BS:BS,BT:BT,BW:BW,BY:BY,BZ:BZ,CA:CA,CD:CD,CF:CF,CG:CG,CH:CH,CI:CI,CK:CK,CL:CL,CM:CM,CN:CN,CO:CO,CR:CR,CU:CU,CV:CV,CW:CW,CY:CY,CZ:CZ,DE:DE,DK:DK,DM:DM,DO:DO,DZ:DZ,EC:EC,EE:EE,EG:EG,ER:ER,ES:ES,ET:ET,FI:FI,FJ:FJ,FK:FK,FO:FO,FR:FR,GA:GA,GB:GB,GE:GE,GH:GH,GI:GI,GL:GL,GM:GM,GN:GN,GQ:GQ,GR:GR,GT:GT,GW:GW,GY:GY,HK:HK,HN:HN,HR:HR,HT:HT,HU:HU,ID:ID,IE:IE,IL:IL,IM:IM,IN:IN,IQ:IQ,IR:IR,IS:IS,IT:IT,JM:JM,JO:JO,JP:JP,KE:KE,KG:KG,KH:KH,KM:KM,KN:KN,KP:KP,KR:KR,KW:KW,KY:KY,KZ:KZ,LA:LA,LB:LB,LC:LC,LI:LI,LR:LR,LS:LS,LT:LT,LU:LU,LV:LV,LY:LY,MA:MA,MD:MD,ME:ME,MG:MG,MK:MK,ML:ML,MM:MM,MN:MN,MP:MP,MR:MR,MS:MS,MT:MT,MU:MU,MW:MW,MX:MX,MY:MY,MZ:MZ,NA:NA,NC:NC,NE:NE,NG:NG,NI:NI,NL:NL,NO:NO,NP:NP,NU:NU,NZ:NZ,OM:OM,PA:PA,PE:PE,PF:PF,PG:PG,PH:PH,PK:PK,PL:PL,PR:PR,PT:PT,PY:PY,QA:QA,RO:RO,RS:RS,RU:RU,RW:RW,SA:SA,SB:SB,SC:SC,SD:SD,SE:SE,SG:SG,SH:SH,SI:SI,SK:SK,SL:SL,SN:SN,SO:SO,SR:SR,ST:ST,SV:SV,SY:SY,SZ:SZ,TC:TC,TD:TD,TG:TG,TH:TH,TJ:TJ,TM:TM,TN:TN,TR:TR,TV:TV,TW:TW,TZ:TZ,UA:UA,UG:UG,US:US,UY:UY,UZ:UZ,VC:VC,VE:VE,VG:VG,VN:VN,WS:WS,YE:YE,YT:YT,ZA:ZA,ZM:ZM,ZW:ZW};
|
|
3963
|
+
|
|
3964
|
+
/**
|
|
3965
|
+
* @param {Location} location
|
|
3966
|
+
* @return {string}
|
|
3967
|
+
*/
|
|
3913
3968
|
|
|
3969
|
+
function locationToPlainObj(location) {
|
|
3970
|
+
if (typeof location === 'object' && location !== null && typeof location.name === 'string') {
|
|
3971
|
+
const o = {
|
|
3972
|
+
title: location.getName(),
|
|
3973
|
+
city: location.getShortName(),
|
|
3974
|
+
tzid: location.getTzid(),
|
|
3975
|
+
latitude: location.getLatitude(),
|
|
3976
|
+
longitude: location.getLongitude(),
|
|
3977
|
+
cc: location.getCountryCode(),
|
|
3978
|
+
country: countryNames[location.getCountryCode()]
|
|
3979
|
+
};
|
|
3980
|
+
['admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'].forEach(k => {
|
|
3981
|
+
if (location[k]) {
|
|
3982
|
+
o[k] = location[k];
|
|
3983
|
+
}
|
|
3984
|
+
});
|
|
3985
|
+
return o;
|
|
3986
|
+
} else {
|
|
3987
|
+
return {
|
|
3988
|
+
geo: 'none'
|
|
3989
|
+
};
|
|
3990
|
+
}
|
|
3991
|
+
}
|
|
3914
3992
|
/**
|
|
3915
3993
|
* Helper function to transform a string to make it more usable in a URL or filename.
|
|
3916
3994
|
* Converts to lowercase and replaces non-word characters with hyphen ('-').
|
|
@@ -3924,7 +4002,7 @@ function makeAnchor(s) {
|
|
|
3924
4002
|
return s.toLowerCase().replace(/'/g, '').replace(/[^\w]/g, '-').replace(/-+/g, '-').replace(/^-/g, '').replace(/-$/g, '');
|
|
3925
4003
|
}
|
|
3926
4004
|
/**
|
|
3927
|
-
* @param {
|
|
4005
|
+
* @param {CalOptions} options
|
|
3928
4006
|
* @return {string}
|
|
3929
4007
|
*/
|
|
3930
4008
|
|
|
@@ -4110,7 +4188,7 @@ function renderTitleWithoutTime(ev) {
|
|
|
4110
4188
|
/**
|
|
4111
4189
|
* Generates a title like "Hebcal 2020 Israel" or "Hebcal May 1993 Providence"
|
|
4112
4190
|
* @param {Event[]} events
|
|
4113
|
-
* @param {
|
|
4191
|
+
* @param {CalOptions} options
|
|
4114
4192
|
* @return {string}
|
|
4115
4193
|
*/
|
|
4116
4194
|
|
|
@@ -4240,14 +4318,18 @@ function appendIsraelAndTracking(url, il, utmSource, utmMedium, utmCampaign) {
|
|
|
4240
4318
|
const path = u.pathname;
|
|
4241
4319
|
const isHolidays = path.startsWith('/holidays/');
|
|
4242
4320
|
const isSedrot = path.startsWith('/sedrot/');
|
|
4321
|
+
const isOmer = path.startsWith('/omer/');
|
|
4243
4322
|
|
|
4244
|
-
if (isHolidays || isSedrot) {
|
|
4323
|
+
if (isHolidays || isSedrot || isOmer) {
|
|
4245
4324
|
u.host = 'hebcal.com';
|
|
4246
4325
|
|
|
4247
4326
|
if (isHolidays) {
|
|
4248
4327
|
u.pathname = '/h/' + path.substring(10);
|
|
4249
|
-
} else {
|
|
4328
|
+
} else if (isSedrot) {
|
|
4250
4329
|
u.pathname = '/s/' + path.substring(8);
|
|
4330
|
+
} else {
|
|
4331
|
+
// isOmer
|
|
4332
|
+
u.pathname = '/o/' + path.substring(6);
|
|
4251
4333
|
}
|
|
4252
4334
|
|
|
4253
4335
|
if (!utmCampaign || !(utmCampaign.startsWith('ical-') || utmCampaign.startsWith('pdf-'))) {
|
|
@@ -4319,7 +4401,7 @@ const CATEGORY = {
|
|
|
4319
4401
|
/**
|
|
4320
4402
|
* Renders an Event as a string
|
|
4321
4403
|
* @param {Event} e
|
|
4322
|
-
* @param {
|
|
4404
|
+
* @param {CalOptions} options
|
|
4323
4405
|
* @return {string}
|
|
4324
4406
|
*/
|
|
4325
4407
|
|
|
@@ -4395,12 +4477,10 @@ function eventsToCsv(events, options) {
|
|
|
4395
4477
|
return [csvHeader].concat(events.map(e => eventToCsv(e, options))).join('\r\n') + '\r\n';
|
|
4396
4478
|
}
|
|
4397
4479
|
|
|
4398
|
-
var AD="Andorra";var AE="United Arab Emirates";var AF="Afghanistan";var AI="Anguilla";var AL="Albania";var AM="Armenia";var AO="Angola";var AR="Argentina";var AS="American Samoa";var AT="Austria";var AU="Australia";var AW="Aruba";var AZ="Azerbaijan";var BA="Bosnia and Herzegovina";var BB="Barbados";var BD="Bangladesh";var BE="Belgium";var BF="Burkina Faso";var BG="Bulgaria";var BH="Bahrain";var BI="Burundi";var BJ="Benin";var BM="Bermuda";var BN="Brunei";var BO="Bolivia";var BR="Brazil";var BS="Bahamas";var BT="Bhutan";var BW="Botswana";var BY="Belarus";var BZ="Belize";var CA="Canada";var CD="Democratic Republic of the Congo";var CF="Central African Republic";var CG="Republic of the Congo";var CH="Switzerland";var CI="Ivory Coast";var CK="Cook Islands";var CL="Chile";var CM="Cameroon";var CN="China";var CO="Colombia";var CR="Costa Rica";var CU="Cuba";var CV="Cape Verde";var CW="Curacao";var CY="Cyprus";var CZ="Czech Republic";var DE="Germany";var DK="Denmark";var DM="Dominica";var DO="Dominican Republic";var DZ="Algeria";var EC="Ecuador";var EE="Estonia";var EG="Egypt";var ER="Eritrea";var ES="Spain";var ET="Ethiopia";var FI="Finland";var FJ="Fiji";var FK="Falkland Islands";var FO="Faroe Islands";var FR="France";var GA="Gabon";var GB="United Kingdom";var GE="Georgia";var GH="Ghana";var GI="Gibraltar";var GL="Greenland";var GM="Gambia";var GN="Guinea";var GQ="Equatorial Guinea";var GR="Greece";var GT="Guatemala";var GW="Guinea-Bissau";var GY="Guyana";var HK="Hong Kong";var HN="Honduras";var HR="Croatia";var HT="Haiti";var HU="Hungary";var ID="Indonesia";var IE="Ireland";var IL="Israel";var IM="Isle of Man";var IN="India";var IQ="Iraq";var IR="Iran";var IS="Iceland";var IT="Italy";var JM="Jamaica";var JO="Jordan";var JP="Japan";var KE="Kenya";var KG="Kyrgyzstan";var KH="Cambodia";var KM="Comoros";var KN="Saint Kitts and Nevis";var KP="North Korea";var KR="South Korea";var KW="Kuwait";var KY="Cayman Islands";var KZ="Kazakhstan";var LA="Laos";var LB="Lebanon";var LC="Saint Lucia";var LI="Liechtenstein";var LR="Liberia";var LS="Lesotho";var LT="Lithuania";var LU="Luxembourg";var LV="Latvia";var LY="Libya";var MA="Morocco";var MD="Moldova";var ME="Montenegro";var MG="Madagascar";var MK="Macedonia";var ML="Mali";var MM="Myanmar";var MN="Mongolia";var MP="Northern Mariana Islands";var MR="Mauritania";var MS="Montserrat";var MT="Malta";var MU="Mauritius";var MW="Malawi";var MX="Mexico";var MY="Malaysia";var MZ="Mozambique";var NA="Namibia";var NC="New Caledonia";var NE="Niger";var NG="Nigeria";var NI="Nicaragua";var NL="Netherlands";var NO="Norway";var NP="Nepal";var NU="Niue";var NZ="New Zealand";var OM="Oman";var PA="Panama";var PE="Peru";var PF="French Polynesia";var PG="Papua New Guinea";var PH="Philippines";var PK="Pakistan";var PL="Poland";var PR="Puerto Rico";var PT="Portugal";var PY="Paraguay";var QA="Qatar";var RO="Romania";var RS="Serbia";var RU="Russia";var RW="Rwanda";var SA="Saudi Arabia";var SB="Solomon Islands";var SC="Seychelles";var SD="Sudan";var SE="Sweden";var SG="Singapore";var SH="Saint Helena";var SI="Slovenia";var SK="Slovakia";var SL="Sierra Leone";var SN="Senegal";var SO="Somalia";var SR="Suriname";var ST="Sao Tome and Principe";var SV="El Salvador";var SY="Syria";var SZ="Swaziland";var TC="Turks and Caicos Islands";var TD="Chad";var TG="Togo";var TH="Thailand";var TJ="Tajikistan";var TM="Turkmenistan";var TN="Tunisia";var TR="Turkey";var TV="Tuvalu";var TW="Taiwan";var TZ="Tanzania";var UA="Ukraine";var UG="Uganda";var US="United States";var UY="Uruguay";var UZ="Uzbekistan";var VC="Saint Vincent and the Grenadines";var VE="Venezuela";var VG="British Virgin Islands";var VN="Vietnam";var WS="Samoa";var YE="Yemen";var YT="Mayotte";var ZA="South Africa";var ZM="Zambia";var ZW="Zimbabwe";var countryNames = {AD:AD,AE:AE,AF:AF,AI:AI,AL:AL,AM:AM,AO:AO,AR:AR,AS:AS,AT:AT,AU:AU,AW:AW,AZ:AZ,BA:BA,BB:BB,BD:BD,BE:BE,BF:BF,BG:BG,BH:BH,BI:BI,BJ:BJ,BM:BM,BN:BN,BO:BO,BR:BR,BS:BS,BT:BT,BW:BW,BY:BY,BZ:BZ,CA:CA,CD:CD,CF:CF,CG:CG,CH:CH,CI:CI,CK:CK,CL:CL,CM:CM,CN:CN,CO:CO,CR:CR,CU:CU,CV:CV,CW:CW,CY:CY,CZ:CZ,DE:DE,DK:DK,DM:DM,DO:DO,DZ:DZ,EC:EC,EE:EE,EG:EG,ER:ER,ES:ES,ET:ET,FI:FI,FJ:FJ,FK:FK,FO:FO,FR:FR,GA:GA,GB:GB,GE:GE,GH:GH,GI:GI,GL:GL,GM:GM,GN:GN,GQ:GQ,GR:GR,GT:GT,GW:GW,GY:GY,HK:HK,HN:HN,HR:HR,HT:HT,HU:HU,ID:ID,IE:IE,IL:IL,IM:IM,IN:IN,IQ:IQ,IR:IR,IS:IS,IT:IT,JM:JM,JO:JO,JP:JP,KE:KE,KG:KG,KH:KH,KM:KM,KN:KN,KP:KP,KR:KR,KW:KW,KY:KY,KZ:KZ,LA:LA,LB:LB,LC:LC,LI:LI,LR:LR,LS:LS,LT:LT,LU:LU,LV:LV,LY:LY,MA:MA,MD:MD,ME:ME,MG:MG,MK:MK,ML:ML,MM:MM,MN:MN,MP:MP,MR:MR,MS:MS,MT:MT,MU:MU,MW:MW,MX:MX,MY:MY,MZ:MZ,NA:NA,NC:NC,NE:NE,NG:NG,NI:NI,NL:NL,NO:NO,NP:NP,NU:NU,NZ:NZ,OM:OM,PA:PA,PE:PE,PF:PF,PG:PG,PH:PH,PK:PK,PL:PL,PR:PR,PT:PT,PY:PY,QA:QA,RO:RO,RS:RS,RU:RU,RW:RW,SA:SA,SB:SB,SC:SC,SD:SD,SE:SE,SG:SG,SH:SH,SI:SI,SK:SK,SL:SL,SN:SN,SO:SO,SR:SR,ST:ST,SV:SV,SY:SY,SZ:SZ,TC:TC,TD:TD,TG:TG,TH:TH,TJ:TJ,TM:TM,TN:TN,TR:TR,TV:TV,TW:TW,TZ:TZ,UA:UA,UG:UG,US:US,UY:UY,UZ:UZ,VC:VC,VE:VE,VG:VG,VN:VN,WS:WS,YE:YE,YT:YT,ZA:ZA,ZM:ZM,ZW:ZW};
|
|
4399
|
-
|
|
4400
4480
|
/**
|
|
4401
4481
|
* Formats a list events for the classic Hebcal.com JSON API response
|
|
4402
4482
|
* @param {Event[]} events
|
|
4403
|
-
* @param {
|
|
4483
|
+
* @param {CalOptions} options
|
|
4404
4484
|
* @param {boolean} [leyning=true]
|
|
4405
4485
|
* @return {Object}
|
|
4406
4486
|
*/
|
|
@@ -4411,36 +4491,14 @@ function eventsToClassicApi(events, options) {
|
|
|
4411
4491
|
title: getCalendarTitle(events, options),
|
|
4412
4492
|
date: new Date().toISOString()
|
|
4413
4493
|
};
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
if (typeof location === 'object' && typeof location.name === 'string') {
|
|
4417
|
-
result.location = {
|
|
4418
|
-
title: location.getName(),
|
|
4419
|
-
city: location.getShortName(),
|
|
4420
|
-
tzid: location.getTzid(),
|
|
4421
|
-
latitude: location.getLatitude(),
|
|
4422
|
-
longitude: location.getLongitude(),
|
|
4423
|
-
cc: location.getCountryCode(),
|
|
4424
|
-
country: countryNames[location.getCountryCode()]
|
|
4425
|
-
};
|
|
4426
|
-
['admin1', 'asciiname', 'geo', 'zip', 'state', 'stateName', 'geonameid'].forEach(k => {
|
|
4427
|
-
if (location[k]) {
|
|
4428
|
-
result.location[k] = location[k];
|
|
4429
|
-
}
|
|
4430
|
-
});
|
|
4431
|
-
} else {
|
|
4432
|
-
result.location = {
|
|
4433
|
-
geo: 'none'
|
|
4434
|
-
};
|
|
4435
|
-
}
|
|
4436
|
-
|
|
4494
|
+
result.location = locationToPlainObj(options.location);
|
|
4437
4495
|
result.items = events.map(ev => eventToClassicApiObject(ev, options, leyning));
|
|
4438
4496
|
return result;
|
|
4439
4497
|
}
|
|
4440
4498
|
/**
|
|
4441
4499
|
* Converts a Hebcal event to a classic Hebcal.com JSON API object
|
|
4442
4500
|
* @param {Event} ev
|
|
4443
|
-
* @param {
|
|
4501
|
+
* @param {CalOptions} options
|
|
4444
4502
|
* @param {boolean} [leyning=true]
|
|
4445
4503
|
* @return {Object}
|
|
4446
4504
|
*/
|
|
@@ -4657,7 +4715,7 @@ const localeToLg = {
|
|
|
4657
4715
|
};
|
|
4658
4716
|
/**
|
|
4659
4717
|
* @param {Event[]} events
|
|
4660
|
-
* @param {
|
|
4718
|
+
* @param {CalOptions} options
|
|
4661
4719
|
* @return {string}
|
|
4662
4720
|
*/
|
|
4663
4721
|
|
|
@@ -4711,7 +4769,7 @@ function getPubDate(ev, evPubDate, evDate, lastBuildDate) {
|
|
|
4711
4769
|
}
|
|
4712
4770
|
/**
|
|
4713
4771
|
* @param {Event} ev
|
|
4714
|
-
* @param {
|
|
4772
|
+
* @param {CalOptions} options
|
|
4715
4773
|
* @return {string}
|
|
4716
4774
|
*/
|
|
4717
4775
|
|
|
@@ -4726,7 +4784,7 @@ function eventToRssItem2(ev, options) {
|
|
|
4726
4784
|
* @param {Intl.DateTimeFormat} dayFormat
|
|
4727
4785
|
* @param {Location} location
|
|
4728
4786
|
* @param {string} mainUrl
|
|
4729
|
-
* @param {
|
|
4787
|
+
* @param {CalOptions} [options]
|
|
4730
4788
|
* @return {string}
|
|
4731
4789
|
*/
|
|
4732
4790
|
|
|
@@ -4837,6 +4895,7 @@ exports.getDownloadFilename = getDownloadFilename;
|
|
|
4837
4895
|
exports.getEventCategories = getEventCategories;
|
|
4838
4896
|
exports.getHolidayDescription = getHolidayDescription;
|
|
4839
4897
|
exports.holidayDescription = holidayDescription;
|
|
4898
|
+
exports.locationToPlainObj = locationToPlainObj;
|
|
4840
4899
|
exports.makeAnchor = makeAnchor;
|
|
4841
4900
|
exports.makeTorahMemoText = makeTorahMemoText;
|
|
4842
4901
|
exports.pad2 = pad2;
|