@hebcal/rest-api 3.15.1 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +181 -132
- package/dist/bundle.min.js +2 -2
- package/dist/index.js +39 -3
- package/dist/index.mjs +39 -3
- package/package.json +7 -7
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/rest-api v3.
|
|
1
|
+
/*! @hebcal/rest-api v3.18.0 */
|
|
2
2
|
var hebcal__rest_api = (function (exports, core, leyn) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -29,7 +29,7 @@ var check = function (it) {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
32
|
-
var global$
|
|
32
|
+
var global$B =
|
|
33
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) ||
|
|
@@ -123,12 +123,12 @@ var classofRaw$1 = function (it) {
|
|
|
123
123
|
return stringSlice$5(toString$6(it), 8, -1);
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
-
var global$
|
|
126
|
+
var global$A = global$B;
|
|
127
127
|
var uncurryThis$h = functionUncurryThis;
|
|
128
128
|
var fails$e = fails$h;
|
|
129
129
|
var classof$6 = classofRaw$1;
|
|
130
130
|
|
|
131
|
-
var Object$5 = global$
|
|
131
|
+
var Object$5 = global$A.Object;
|
|
132
132
|
var split$3 = uncurryThis$h(''.split);
|
|
133
133
|
|
|
134
134
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
@@ -140,9 +140,9 @@ var indexedObject = fails$e(function () {
|
|
|
140
140
|
return classof$6(it) == 'String' ? split$3(it, '') : Object$5(it);
|
|
141
141
|
} : Object$5;
|
|
142
142
|
|
|
143
|
-
var global$
|
|
143
|
+
var global$z = global$B;
|
|
144
144
|
|
|
145
|
-
var TypeError$e = global$
|
|
145
|
+
var TypeError$e = global$z.TypeError;
|
|
146
146
|
|
|
147
147
|
// `RequireObjectCoercible` abstract operation
|
|
148
148
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
@@ -171,7 +171,7 @@ var isObject$7 = function (it) {
|
|
|
171
171
|
return typeof it == 'object' ? it !== null : isCallable$g(it);
|
|
172
172
|
};
|
|
173
173
|
|
|
174
|
-
var global$
|
|
174
|
+
var global$y = global$B;
|
|
175
175
|
var isCallable$f = isCallable$h;
|
|
176
176
|
|
|
177
177
|
var aFunction = function (argument) {
|
|
@@ -179,7 +179,7 @@ var aFunction = function (argument) {
|
|
|
179
179
|
};
|
|
180
180
|
|
|
181
181
|
var getBuiltIn$5 = function (namespace, method) {
|
|
182
|
-
return arguments.length < 2 ? aFunction(global$
|
|
182
|
+
return arguments.length < 2 ? aFunction(global$y[namespace]) : global$y[namespace] && global$y[namespace][method];
|
|
183
183
|
};
|
|
184
184
|
|
|
185
185
|
var uncurryThis$g = functionUncurryThis;
|
|
@@ -190,11 +190,11 @@ var getBuiltIn$4 = getBuiltIn$5;
|
|
|
190
190
|
|
|
191
191
|
var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
|
|
192
192
|
|
|
193
|
-
var global$
|
|
193
|
+
var global$x = global$B;
|
|
194
194
|
var userAgent = engineUserAgent;
|
|
195
195
|
|
|
196
|
-
var process = global$
|
|
197
|
-
var Deno = global$
|
|
196
|
+
var process = global$x.process;
|
|
197
|
+
var Deno = global$x.Deno;
|
|
198
198
|
var versions = process && process.versions || Deno && Deno.version;
|
|
199
199
|
var v8 = versions && versions.v8;
|
|
200
200
|
var match, version;
|
|
@@ -241,13 +241,13 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
241
241
|
&& !Symbol.sham
|
|
242
242
|
&& typeof Symbol.iterator == 'symbol';
|
|
243
243
|
|
|
244
|
-
var global$
|
|
244
|
+
var global$w = global$B;
|
|
245
245
|
var getBuiltIn$3 = getBuiltIn$5;
|
|
246
246
|
var isCallable$e = isCallable$h;
|
|
247
247
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
248
248
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
249
249
|
|
|
250
|
-
var Object$4 = global$
|
|
250
|
+
var Object$4 = global$w.Object;
|
|
251
251
|
|
|
252
252
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
253
253
|
return typeof it == 'symbol';
|
|
@@ -256,9 +256,9 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
|
256
256
|
return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, Object$4(it));
|
|
257
257
|
};
|
|
258
258
|
|
|
259
|
-
var global$
|
|
259
|
+
var global$v = global$B;
|
|
260
260
|
|
|
261
|
-
var String$4 = global$
|
|
261
|
+
var String$4 = global$v.String;
|
|
262
262
|
|
|
263
263
|
var tryToString$2 = function (argument) {
|
|
264
264
|
try {
|
|
@@ -268,11 +268,11 @@ var tryToString$2 = function (argument) {
|
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
|
|
271
|
-
var global$
|
|
271
|
+
var global$u = global$B;
|
|
272
272
|
var isCallable$d = isCallable$h;
|
|
273
273
|
var tryToString$1 = tryToString$2;
|
|
274
274
|
|
|
275
|
-
var TypeError$d = global$
|
|
275
|
+
var TypeError$d = global$u.TypeError;
|
|
276
276
|
|
|
277
277
|
// `Assert: IsCallable(argument) is true`
|
|
278
278
|
var aCallable$3 = function (argument) {
|
|
@@ -289,12 +289,12 @@ var getMethod$3 = function (V, P) {
|
|
|
289
289
|
return func == null ? undefined : aCallable$2(func);
|
|
290
290
|
};
|
|
291
291
|
|
|
292
|
-
var global$
|
|
292
|
+
var global$t = global$B;
|
|
293
293
|
var call$a = functionCall;
|
|
294
294
|
var isCallable$c = isCallable$h;
|
|
295
295
|
var isObject$6 = isObject$7;
|
|
296
296
|
|
|
297
|
-
var TypeError$c = global$
|
|
297
|
+
var TypeError$c = global$t.TypeError;
|
|
298
298
|
|
|
299
299
|
// `OrdinaryToPrimitive` abstract operation
|
|
300
300
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
@@ -310,24 +310,24 @@ var shared$4 = {exports: {}};
|
|
|
310
310
|
|
|
311
311
|
var isPure = false;
|
|
312
312
|
|
|
313
|
-
var global$
|
|
313
|
+
var global$s = global$B;
|
|
314
314
|
|
|
315
315
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
316
|
-
var defineProperty$
|
|
316
|
+
var defineProperty$6 = Object.defineProperty;
|
|
317
317
|
|
|
318
|
-
var
|
|
318
|
+
var defineGlobalProperty$3 = function (key, value) {
|
|
319
319
|
try {
|
|
320
|
-
defineProperty$
|
|
320
|
+
defineProperty$6(global$s, key, { value: value, configurable: true, writable: true });
|
|
321
321
|
} catch (error) {
|
|
322
|
-
global$
|
|
322
|
+
global$s[key] = value;
|
|
323
323
|
} return value;
|
|
324
324
|
};
|
|
325
325
|
|
|
326
|
-
var global$
|
|
327
|
-
var
|
|
326
|
+
var global$r = global$B;
|
|
327
|
+
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
328
328
|
|
|
329
329
|
var SHARED = '__core-js_shared__';
|
|
330
|
-
var store$3 = global$
|
|
330
|
+
var store$3 = global$r[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
331
331
|
|
|
332
332
|
var sharedStore = store$3;
|
|
333
333
|
|
|
@@ -336,17 +336,17 @@ var store$2 = sharedStore;
|
|
|
336
336
|
(shared$4.exports = function (key, value) {
|
|
337
337
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
338
338
|
})('versions', []).push({
|
|
339
|
-
version: '3.22.
|
|
339
|
+
version: '3.22.7',
|
|
340
340
|
mode: 'global',
|
|
341
341
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
342
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.22.
|
|
342
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.7/LICENSE',
|
|
343
343
|
source: 'https://github.com/zloirock/core-js'
|
|
344
344
|
});
|
|
345
345
|
|
|
346
|
-
var global$
|
|
346
|
+
var global$q = global$B;
|
|
347
347
|
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
348
348
|
|
|
349
|
-
var Object$3 = global$
|
|
349
|
+
var Object$3 = global$q.Object;
|
|
350
350
|
|
|
351
351
|
// `ToObject` abstract operation
|
|
352
352
|
// https://tc39.es/ecma262/#sec-toobject
|
|
@@ -376,7 +376,7 @@ var uid$2 = function (key) {
|
|
|
376
376
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
377
377
|
};
|
|
378
378
|
|
|
379
|
-
var global$
|
|
379
|
+
var global$p = global$B;
|
|
380
380
|
var shared$3 = shared$4.exports;
|
|
381
381
|
var hasOwn$b = hasOwnProperty_1;
|
|
382
382
|
var uid$1 = uid$2;
|
|
@@ -384,7 +384,7 @@ var NATIVE_SYMBOL = nativeSymbol;
|
|
|
384
384
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
385
385
|
|
|
386
386
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
387
|
-
var Symbol$1 = global$
|
|
387
|
+
var Symbol$1 = global$p.Symbol;
|
|
388
388
|
var symbolFor = Symbol$1 && Symbol$1['for'];
|
|
389
389
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
390
390
|
|
|
@@ -401,7 +401,7 @@ var wellKnownSymbol$e = function (name) {
|
|
|
401
401
|
} return WellKnownSymbolsStore[name];
|
|
402
402
|
};
|
|
403
403
|
|
|
404
|
-
var global$
|
|
404
|
+
var global$o = global$B;
|
|
405
405
|
var call$9 = functionCall;
|
|
406
406
|
var isObject$5 = isObject$7;
|
|
407
407
|
var isSymbol$1 = isSymbol$2;
|
|
@@ -409,7 +409,7 @@ var getMethod$2 = getMethod$3;
|
|
|
409
409
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
410
410
|
var wellKnownSymbol$d = wellKnownSymbol$e;
|
|
411
411
|
|
|
412
|
-
var TypeError$b = global$
|
|
412
|
+
var TypeError$b = global$o.TypeError;
|
|
413
413
|
var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
|
|
414
414
|
|
|
415
415
|
// `ToPrimitive` abstract operation
|
|
@@ -438,10 +438,10 @@ var toPropertyKey$3 = function (argument) {
|
|
|
438
438
|
return isSymbol(key) ? key : key + '';
|
|
439
439
|
};
|
|
440
440
|
|
|
441
|
-
var global$
|
|
441
|
+
var global$n = global$B;
|
|
442
442
|
var isObject$4 = isObject$7;
|
|
443
443
|
|
|
444
|
-
var document$1 = global$
|
|
444
|
+
var document$1 = global$n.document;
|
|
445
445
|
// typeof document.createElement is 'object' in old IE
|
|
446
446
|
var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
|
|
447
447
|
|
|
@@ -449,19 +449,19 @@ var documentCreateElement$2 = function (it) {
|
|
|
449
449
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
450
450
|
};
|
|
451
451
|
|
|
452
|
-
var DESCRIPTORS$
|
|
452
|
+
var DESCRIPTORS$b = descriptors;
|
|
453
453
|
var fails$c = fails$h;
|
|
454
454
|
var createElement = documentCreateElement$2;
|
|
455
455
|
|
|
456
456
|
// Thanks to IE8 for its funny defineProperty
|
|
457
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
457
|
+
var ie8DomDefine = !DESCRIPTORS$b && !fails$c(function () {
|
|
458
458
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
459
459
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
460
460
|
get: function () { return 7; }
|
|
461
461
|
}).a != 7;
|
|
462
462
|
});
|
|
463
463
|
|
|
464
|
-
var DESCRIPTORS$
|
|
464
|
+
var DESCRIPTORS$a = descriptors;
|
|
465
465
|
var call$8 = functionCall;
|
|
466
466
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
467
467
|
var createPropertyDescriptor$4 = createPropertyDescriptor$5;
|
|
@@ -475,7 +475,7 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
475
475
|
|
|
476
476
|
// `Object.getOwnPropertyDescriptor` method
|
|
477
477
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
478
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
478
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
479
479
|
O = toIndexedObject$4(O);
|
|
480
480
|
P = toPropertyKey$2(P);
|
|
481
481
|
if (IE8_DOM_DEFINE$1) try {
|
|
@@ -486,12 +486,12 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 :
|
|
|
486
486
|
|
|
487
487
|
var objectDefineProperty = {};
|
|
488
488
|
|
|
489
|
-
var DESCRIPTORS$
|
|
489
|
+
var DESCRIPTORS$9 = descriptors;
|
|
490
490
|
var fails$b = fails$h;
|
|
491
491
|
|
|
492
492
|
// V8 ~ Chrome 36-
|
|
493
493
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
494
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
494
|
+
var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$b(function () {
|
|
495
495
|
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
|
496
496
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
497
497
|
value: 42,
|
|
@@ -499,11 +499,11 @@ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$b(function () {
|
|
|
499
499
|
}).prototype != 42;
|
|
500
500
|
});
|
|
501
501
|
|
|
502
|
-
var global$
|
|
502
|
+
var global$m = global$B;
|
|
503
503
|
var isObject$3 = isObject$7;
|
|
504
504
|
|
|
505
|
-
var String$3 = global$
|
|
506
|
-
var TypeError$a = global$
|
|
505
|
+
var String$3 = global$m.String;
|
|
506
|
+
var TypeError$a = global$m.TypeError;
|
|
507
507
|
|
|
508
508
|
// `Assert: Type(argument) is Object`
|
|
509
509
|
var anObject$b = function (argument) {
|
|
@@ -511,14 +511,14 @@ var anObject$b = function (argument) {
|
|
|
511
511
|
throw TypeError$a(String$3(argument) + ' is not an object');
|
|
512
512
|
};
|
|
513
513
|
|
|
514
|
-
var global$
|
|
515
|
-
var DESCRIPTORS$
|
|
514
|
+
var global$l = global$B;
|
|
515
|
+
var DESCRIPTORS$8 = descriptors;
|
|
516
516
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
517
517
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
518
518
|
var anObject$a = anObject$b;
|
|
519
519
|
var toPropertyKey$1 = toPropertyKey$3;
|
|
520
520
|
|
|
521
|
-
var TypeError$9 = global$
|
|
521
|
+
var TypeError$9 = global$l.TypeError;
|
|
522
522
|
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
523
523
|
var $defineProperty = Object.defineProperty;
|
|
524
524
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
@@ -529,7 +529,7 @@ var WRITABLE = 'writable';
|
|
|
529
529
|
|
|
530
530
|
// `Object.defineProperty` method
|
|
531
531
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
532
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
532
|
+
objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
533
533
|
anObject$a(O);
|
|
534
534
|
P = toPropertyKey$1(P);
|
|
535
535
|
anObject$a(Attributes);
|
|
@@ -556,12 +556,12 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
556
556
|
return O;
|
|
557
557
|
};
|
|
558
558
|
|
|
559
|
-
var DESCRIPTORS$
|
|
560
|
-
var definePropertyModule$
|
|
559
|
+
var DESCRIPTORS$7 = descriptors;
|
|
560
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
561
561
|
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
562
562
|
|
|
563
|
-
var createNonEnumerableProperty$5 = DESCRIPTORS$
|
|
564
|
-
return definePropertyModule$
|
|
563
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$7 ? function (object, key, value) {
|
|
564
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor$3(1, value));
|
|
565
565
|
} : function (object, key, value) {
|
|
566
566
|
object[key] = value;
|
|
567
567
|
return object;
|
|
@@ -569,17 +569,17 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$6 ? function (object, key, value
|
|
|
569
569
|
|
|
570
570
|
var makeBuiltIn$3 = {exports: {}};
|
|
571
571
|
|
|
572
|
-
var DESCRIPTORS$
|
|
572
|
+
var DESCRIPTORS$6 = descriptors;
|
|
573
573
|
var hasOwn$9 = hasOwnProperty_1;
|
|
574
574
|
|
|
575
575
|
var FunctionPrototype = Function.prototype;
|
|
576
576
|
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
|
577
|
-
var getDescriptor = DESCRIPTORS$
|
|
577
|
+
var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
|
|
578
578
|
|
|
579
579
|
var EXISTS = hasOwn$9(FunctionPrototype, 'name');
|
|
580
580
|
// additional protection from minified / mangled / dropped function names
|
|
581
581
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
582
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
582
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
583
583
|
|
|
584
584
|
var functionName = {
|
|
585
585
|
EXISTS: EXISTS,
|
|
@@ -602,11 +602,11 @@ if (!isCallable$b(store$1.inspectSource)) {
|
|
|
602
602
|
|
|
603
603
|
var inspectSource$3 = store$1.inspectSource;
|
|
604
604
|
|
|
605
|
-
var global$
|
|
605
|
+
var global$k = global$B;
|
|
606
606
|
var isCallable$a = isCallable$h;
|
|
607
607
|
var inspectSource$2 = inspectSource$3;
|
|
608
608
|
|
|
609
|
-
var WeakMap$1 = global$
|
|
609
|
+
var WeakMap$1 = global$k.WeakMap;
|
|
610
610
|
|
|
611
611
|
var nativeWeakMap = isCallable$a(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
|
|
612
612
|
|
|
@@ -622,7 +622,7 @@ var sharedKey$3 = function (key) {
|
|
|
622
622
|
var hiddenKeys$4 = {};
|
|
623
623
|
|
|
624
624
|
var NATIVE_WEAK_MAP = nativeWeakMap;
|
|
625
|
-
var global$
|
|
625
|
+
var global$j = global$B;
|
|
626
626
|
var uncurryThis$c = functionUncurryThis;
|
|
627
627
|
var isObject$2 = isObject$7;
|
|
628
628
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
@@ -632,8 +632,8 @@ var sharedKey$2 = sharedKey$3;
|
|
|
632
632
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
633
633
|
|
|
634
634
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
635
|
-
var TypeError$8 = global$
|
|
636
|
-
var WeakMap = global$
|
|
635
|
+
var TypeError$8 = global$j.TypeError;
|
|
636
|
+
var WeakMap = global$j.WeakMap;
|
|
637
637
|
var set, get, has;
|
|
638
638
|
|
|
639
639
|
var enforce = function (it) {
|
|
@@ -694,16 +694,18 @@ var internalState = {
|
|
|
694
694
|
var fails$a = fails$h;
|
|
695
695
|
var isCallable$9 = isCallable$h;
|
|
696
696
|
var hasOwn$7 = hasOwnProperty_1;
|
|
697
|
-
var
|
|
697
|
+
var DESCRIPTORS$5 = descriptors;
|
|
698
698
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
699
699
|
var inspectSource$1 = inspectSource$3;
|
|
700
700
|
var InternalStateModule$4 = internalState;
|
|
701
701
|
|
|
702
702
|
var enforceInternalState = InternalStateModule$4.enforce;
|
|
703
703
|
var getInternalState$3 = InternalStateModule$4.get;
|
|
704
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
|
705
|
+
var defineProperty$5 = Object.defineProperty;
|
|
704
706
|
|
|
705
|
-
var CONFIGURABLE_LENGTH = !fails$a(function () {
|
|
706
|
-
return defineProperty$
|
|
707
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$a(function () {
|
|
708
|
+
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
707
709
|
});
|
|
708
710
|
|
|
709
711
|
var TEMPLATE = String(String).split('String');
|
|
@@ -715,11 +717,17 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
715
717
|
if (options && options.getter) name = 'get ' + name;
|
|
716
718
|
if (options && options.setter) name = 'set ' + name;
|
|
717
719
|
if (!hasOwn$7(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
718
|
-
defineProperty$
|
|
720
|
+
defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
719
721
|
}
|
|
720
722
|
if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) {
|
|
721
|
-
defineProperty$
|
|
723
|
+
defineProperty$5(value, 'length', { value: options.arity });
|
|
722
724
|
}
|
|
725
|
+
try {
|
|
726
|
+
if (options && hasOwn$7(options, 'constructor') && options.constructor) {
|
|
727
|
+
if (DESCRIPTORS$5) defineProperty$5(value, 'prototype', { writable: false });
|
|
728
|
+
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
729
|
+
} else if (value.prototype) value.prototype = undefined;
|
|
730
|
+
} catch (error) { /* empty */ }
|
|
723
731
|
var state = enforceInternalState(value);
|
|
724
732
|
if (!hasOwn$7(state, 'source')) {
|
|
725
733
|
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
|
@@ -732,30 +740,25 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
|
732
740
|
return isCallable$9(this) && getInternalState$3(this).source || inspectSource$1(this);
|
|
733
741
|
}, 'toString');
|
|
734
742
|
|
|
735
|
-
var global$j = global$C;
|
|
736
743
|
var isCallable$8 = isCallable$h;
|
|
737
744
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
738
745
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
739
|
-
var
|
|
746
|
+
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
740
747
|
|
|
741
748
|
var defineBuiltIn$7 = function (O, key, value, options) {
|
|
742
|
-
|
|
743
|
-
var simple = options
|
|
744
|
-
var
|
|
745
|
-
var name = options && options.name !== undefined ? options.name : key;
|
|
749
|
+
if (!options) options = {};
|
|
750
|
+
var simple = options.enumerable;
|
|
751
|
+
var name = options.name !== undefined ? options.name : key;
|
|
746
752
|
if (isCallable$8(value)) makeBuiltIn$1(value, name, options);
|
|
747
|
-
if (
|
|
753
|
+
if (options.global) {
|
|
748
754
|
if (simple) O[key] = value;
|
|
749
|
-
else
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
}
|
|
756
|
-
if (simple) O[key] = value;
|
|
757
|
-
else createNonEnumerableProperty$3(O, key, value);
|
|
758
|
-
return O;
|
|
755
|
+
else defineGlobalProperty$1(key, value);
|
|
756
|
+
} else {
|
|
757
|
+
if (!options.unsafe) delete O[key];
|
|
758
|
+
else if (O[key]) simple = true;
|
|
759
|
+
if (simple) O[key] = value;
|
|
760
|
+
else createNonEnumerableProperty$3(O, key, value);
|
|
761
|
+
} return O;
|
|
759
762
|
};
|
|
760
763
|
|
|
761
764
|
var objectGetOwnPropertyNames = {};
|
|
@@ -763,12 +766,22 @@ var objectGetOwnPropertyNames = {};
|
|
|
763
766
|
var ceil = Math.ceil;
|
|
764
767
|
var floor$3 = Math.floor;
|
|
765
768
|
|
|
769
|
+
// `Math.trunc` method
|
|
770
|
+
// https://tc39.es/ecma262/#sec-math.trunc
|
|
771
|
+
// eslint-disable-next-line es-x/no-math-trunc -- safe
|
|
772
|
+
var mathTrunc = Math.trunc || function trunc(x) {
|
|
773
|
+
var n = +x;
|
|
774
|
+
return (n > 0 ? floor$3 : ceil)(n);
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
var trunc = mathTrunc;
|
|
778
|
+
|
|
766
779
|
// `ToIntegerOrInfinity` abstract operation
|
|
767
780
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
768
781
|
var toIntegerOrInfinity$3 = function (argument) {
|
|
769
782
|
var number = +argument;
|
|
770
|
-
// eslint-disable-next-line no-self-compare --
|
|
771
|
-
return number !== number || number === 0 ? 0 : (number
|
|
783
|
+
// eslint-disable-next-line no-self-compare -- NaN check
|
|
784
|
+
return number !== number || number === 0 ? 0 : trunc(number);
|
|
772
785
|
};
|
|
773
786
|
|
|
774
787
|
var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
|
|
@@ -902,11 +915,11 @@ var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
902
915
|
var hasOwn$5 = hasOwnProperty_1;
|
|
903
916
|
var ownKeys = ownKeys$1;
|
|
904
917
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
905
|
-
var definePropertyModule$
|
|
918
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
906
919
|
|
|
907
920
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
908
921
|
var keys = ownKeys(source);
|
|
909
|
-
var defineProperty = definePropertyModule$
|
|
922
|
+
var defineProperty = definePropertyModule$2.f;
|
|
910
923
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
911
924
|
for (var i = 0; i < keys.length; i++) {
|
|
912
925
|
var key = keys[i];
|
|
@@ -939,28 +952,28 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
939
952
|
|
|
940
953
|
var isForced_1 = isForced$1;
|
|
941
954
|
|
|
942
|
-
var global$i = global$
|
|
955
|
+
var global$i = global$B;
|
|
943
956
|
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
944
957
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
945
958
|
var defineBuiltIn$6 = defineBuiltIn$7;
|
|
946
|
-
var
|
|
959
|
+
var defineGlobalProperty = defineGlobalProperty$3;
|
|
947
960
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
948
961
|
var isForced = isForced_1;
|
|
949
962
|
|
|
950
963
|
/*
|
|
951
|
-
options.target
|
|
952
|
-
options.global
|
|
953
|
-
options.stat
|
|
954
|
-
options.proto
|
|
955
|
-
options.real
|
|
956
|
-
options.forced
|
|
957
|
-
options.bind
|
|
958
|
-
options.wrap
|
|
959
|
-
options.unsafe
|
|
960
|
-
options.sham
|
|
961
|
-
options.enumerable
|
|
962
|
-
options.
|
|
963
|
-
options.name
|
|
964
|
+
options.target - name of the target object
|
|
965
|
+
options.global - target is the global object
|
|
966
|
+
options.stat - export as static methods of target
|
|
967
|
+
options.proto - export as prototype methods of target
|
|
968
|
+
options.real - real prototype method for the `pure` version
|
|
969
|
+
options.forced - export even if the native feature is available
|
|
970
|
+
options.bind - bind methods to the target, required for the `pure` version
|
|
971
|
+
options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
|
|
972
|
+
options.unsafe - use the simple assignment of property instead of delete + defineProperty
|
|
973
|
+
options.sham - add a flag to not completely full polyfills
|
|
974
|
+
options.enumerable - export as enumerable property
|
|
975
|
+
options.dontCallGetSet - prevent calling a getter on target
|
|
976
|
+
options.name - the .name of the function if it does not match the key
|
|
964
977
|
*/
|
|
965
978
|
var _export = function (options, source) {
|
|
966
979
|
var TARGET = options.target;
|
|
@@ -970,13 +983,13 @@ var _export = function (options, source) {
|
|
|
970
983
|
if (GLOBAL) {
|
|
971
984
|
target = global$i;
|
|
972
985
|
} else if (STATIC) {
|
|
973
|
-
target = global$i[TARGET] ||
|
|
986
|
+
target = global$i[TARGET] || defineGlobalProperty(TARGET, {});
|
|
974
987
|
} else {
|
|
975
988
|
target = (global$i[TARGET] || {}).prototype;
|
|
976
989
|
}
|
|
977
990
|
if (target) for (key in source) {
|
|
978
991
|
sourceProperty = source[key];
|
|
979
|
-
if (options.
|
|
992
|
+
if (options.dontCallGetSet) {
|
|
980
993
|
descriptor = getOwnPropertyDescriptor$2(target, key);
|
|
981
994
|
targetProperty = descriptor && descriptor.value;
|
|
982
995
|
} else targetProperty = target[key];
|
|
@@ -1003,7 +1016,7 @@ test[TO_STRING_TAG$3] = 'z';
|
|
|
1003
1016
|
|
|
1004
1017
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1005
1018
|
|
|
1006
|
-
var global$h = global$
|
|
1019
|
+
var global$h = global$B;
|
|
1007
1020
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1008
1021
|
var isCallable$6 = isCallable$h;
|
|
1009
1022
|
var classofRaw = classofRaw$1;
|
|
@@ -1034,7 +1047,7 @@ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1034
1047
|
: (result = classofRaw(O)) == 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
|
|
1035
1048
|
};
|
|
1036
1049
|
|
|
1037
|
-
var global$g = global$
|
|
1050
|
+
var global$g = global$B;
|
|
1038
1051
|
var classof$4 = classof$5;
|
|
1039
1052
|
|
|
1040
1053
|
var String$2 = global$g.String;
|
|
@@ -1062,7 +1075,7 @@ var regexpFlags$1 = function () {
|
|
|
1062
1075
|
};
|
|
1063
1076
|
|
|
1064
1077
|
var fails$8 = fails$h;
|
|
1065
|
-
var global$f = global$
|
|
1078
|
+
var global$f = global$B;
|
|
1066
1079
|
|
|
1067
1080
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1068
1081
|
var $RegExp$2 = global$f.RegExp;
|
|
@@ -1106,7 +1119,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1106
1119
|
|
|
1107
1120
|
var DESCRIPTORS$4 = descriptors;
|
|
1108
1121
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1109
|
-
var definePropertyModule$
|
|
1122
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
1110
1123
|
var anObject$7 = anObject$b;
|
|
1111
1124
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1112
1125
|
var objectKeys$1 = objectKeys$2;
|
|
@@ -1121,7 +1134,7 @@ objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1121
1134
|
var length = keys.length;
|
|
1122
1135
|
var index = 0;
|
|
1123
1136
|
var key;
|
|
1124
|
-
while (length > index) definePropertyModule$
|
|
1137
|
+
while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
|
|
1125
1138
|
return O;
|
|
1126
1139
|
};
|
|
1127
1140
|
|
|
@@ -1215,7 +1228,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1215
1228
|
};
|
|
1216
1229
|
|
|
1217
1230
|
var fails$7 = fails$h;
|
|
1218
|
-
var global$e = global$
|
|
1231
|
+
var global$e = global$B;
|
|
1219
1232
|
|
|
1220
1233
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1221
1234
|
var $RegExp$1 = global$e.RegExp;
|
|
@@ -1226,7 +1239,7 @@ var regexpUnsupportedDotAll = fails$7(function () {
|
|
|
1226
1239
|
});
|
|
1227
1240
|
|
|
1228
1241
|
var fails$6 = fails$h;
|
|
1229
|
-
var global$d = global$
|
|
1242
|
+
var global$d = global$B;
|
|
1230
1243
|
|
|
1231
1244
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1232
1245
|
var $RegExp = global$d.RegExp;
|
|
@@ -1409,7 +1422,7 @@ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undef
|
|
|
1409
1422
|
|
|
1410
1423
|
var wellKnownSymbol$a = wellKnownSymbol$e;
|
|
1411
1424
|
var create$2 = objectCreate;
|
|
1412
|
-
var
|
|
1425
|
+
var defineProperty$4 = objectDefineProperty.f;
|
|
1413
1426
|
|
|
1414
1427
|
var UNSCOPABLES = wellKnownSymbol$a('unscopables');
|
|
1415
1428
|
var ArrayPrototype$1 = Array.prototype;
|
|
@@ -1417,7 +1430,7 @@ var ArrayPrototype$1 = Array.prototype;
|
|
|
1417
1430
|
// Array.prototype[@@unscopables]
|
|
1418
1431
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1419
1432
|
if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
|
|
1420
|
-
|
|
1433
|
+
defineProperty$4(ArrayPrototype$1, UNSCOPABLES, {
|
|
1421
1434
|
configurable: true,
|
|
1422
1435
|
value: create$2(null)
|
|
1423
1436
|
});
|
|
@@ -1439,7 +1452,7 @@ var correctPrototypeGetter = !fails$5(function () {
|
|
|
1439
1452
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1440
1453
|
});
|
|
1441
1454
|
|
|
1442
|
-
var global$c = global$
|
|
1455
|
+
var global$c = global$B;
|
|
1443
1456
|
var hasOwn$4 = hasOwnProperty_1;
|
|
1444
1457
|
var isCallable$5 = isCallable$h;
|
|
1445
1458
|
var toObject$2 = toObject$4;
|
|
@@ -1535,7 +1548,7 @@ var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENU
|
|
|
1535
1548
|
return IteratorConstructor;
|
|
1536
1549
|
};
|
|
1537
1550
|
|
|
1538
|
-
var global$b = global$
|
|
1551
|
+
var global$b = global$B;
|
|
1539
1552
|
var isCallable$3 = isCallable$h;
|
|
1540
1553
|
|
|
1541
1554
|
var String$1 = global$b.String;
|
|
@@ -1732,7 +1745,7 @@ if (DESCRIPTORS$3 && values.name !== 'values') try {
|
|
|
1732
1745
|
defineProperty$2(values, 'name', { value: 'values' });
|
|
1733
1746
|
} catch (error) { /* empty */ }
|
|
1734
1747
|
|
|
1735
|
-
var global$a = global$
|
|
1748
|
+
var global$a = global$B;
|
|
1736
1749
|
var DOMIterables = domIterables;
|
|
1737
1750
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1738
1751
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -1896,7 +1909,7 @@ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
|
1896
1909
|
return defineProperty$1.f(target, name, descriptor);
|
|
1897
1910
|
};
|
|
1898
1911
|
|
|
1899
|
-
var global$9 = global$
|
|
1912
|
+
var global$9 = global$B;
|
|
1900
1913
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1901
1914
|
|
|
1902
1915
|
var TypeError$6 = global$9.TypeError;
|
|
@@ -2086,7 +2099,7 @@ var getIteratorMethod$3 = function (it) {
|
|
|
2086
2099
|
|| Iterators[classof$2(it)];
|
|
2087
2100
|
};
|
|
2088
2101
|
|
|
2089
|
-
var global$8 = global$
|
|
2102
|
+
var global$8 = global$B;
|
|
2090
2103
|
var call$3 = functionCall;
|
|
2091
2104
|
var aCallable = aCallable$3;
|
|
2092
2105
|
var anObject$2 = anObject$b;
|
|
@@ -2101,7 +2114,7 @@ var getIterator$2 = function (argument, usingIterator) {
|
|
|
2101
2114
|
throw TypeError$5(tryToString(argument) + ' is not iterable');
|
|
2102
2115
|
};
|
|
2103
2116
|
|
|
2104
|
-
var global$7 = global$
|
|
2117
|
+
var global$7 = global$B;
|
|
2105
2118
|
var bind$2 = functionBindContext;
|
|
2106
2119
|
var call$2 = functionCall;
|
|
2107
2120
|
var toObject = toObject$4;
|
|
@@ -2148,7 +2161,7 @@ var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = unde
|
|
|
2148
2161
|
return result;
|
|
2149
2162
|
};
|
|
2150
2163
|
|
|
2151
|
-
var global$6 = global$
|
|
2164
|
+
var global$6 = global$B;
|
|
2152
2165
|
var toAbsoluteIndex = toAbsoluteIndex$2;
|
|
2153
2166
|
var lengthOfArrayLike = lengthOfArrayLike$3;
|
|
2154
2167
|
var createProperty = createProperty$2;
|
|
@@ -2167,7 +2180,7 @@ var arraySliceSimple = function (O, start, end) {
|
|
|
2167
2180
|
};
|
|
2168
2181
|
|
|
2169
2182
|
// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
|
|
2170
|
-
var global$5 = global$
|
|
2183
|
+
var global$5 = global$B;
|
|
2171
2184
|
var uncurryThis$3 = functionUncurryThis;
|
|
2172
2185
|
|
|
2173
2186
|
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
@@ -2348,7 +2361,7 @@ var stringPunycodeToAscii = function (input) {
|
|
|
2348
2361
|
return join$2(encoded, '.');
|
|
2349
2362
|
};
|
|
2350
2363
|
|
|
2351
|
-
var global$4 = global$
|
|
2364
|
+
var global$4 = global$B;
|
|
2352
2365
|
|
|
2353
2366
|
var TypeError$4 = global$4.TypeError;
|
|
2354
2367
|
|
|
@@ -2412,7 +2425,7 @@ var arraySort$1 = mergeSort;
|
|
|
2412
2425
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
2413
2426
|
|
|
2414
2427
|
var $$2 = _export;
|
|
2415
|
-
var global$3 = global$
|
|
2428
|
+
var global$3 = global$B;
|
|
2416
2429
|
var call$1 = functionCall;
|
|
2417
2430
|
var uncurryThis$2 = functionUncurryThis;
|
|
2418
2431
|
var DESCRIPTORS$1 = descriptors;
|
|
@@ -2747,7 +2760,7 @@ defineBuiltIn$2(URLSearchParamsPrototype, 'toString', function toString() {
|
|
|
2747
2760
|
|
|
2748
2761
|
setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
2749
2762
|
|
|
2750
|
-
$$2({ global: true, forced: !USE_NATIVE_URL$1 }, {
|
|
2763
|
+
$$2({ global: true, constructor: true, forced: !USE_NATIVE_URL$1 }, {
|
|
2751
2764
|
URLSearchParams: URLSearchParamsConstructor
|
|
2752
2765
|
});
|
|
2753
2766
|
|
|
@@ -2774,7 +2787,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
2774
2787
|
};
|
|
2775
2788
|
|
|
2776
2789
|
if (isCallable(nativeFetch)) {
|
|
2777
|
-
$$2({ global: true, enumerable: true,
|
|
2790
|
+
$$2({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
|
|
2778
2791
|
fetch: function fetch(input /* , init */) {
|
|
2779
2792
|
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
2780
2793
|
}
|
|
@@ -2790,7 +2803,7 @@ if (!USE_NATIVE_URL$1 && isCallable(Headers)) {
|
|
|
2790
2803
|
RequestPrototype.constructor = RequestConstructor;
|
|
2791
2804
|
RequestConstructor.prototype = RequestPrototype;
|
|
2792
2805
|
|
|
2793
|
-
$$2({ global: true,
|
|
2806
|
+
$$2({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
|
|
2794
2807
|
Request: RequestConstructor
|
|
2795
2808
|
});
|
|
2796
2809
|
}
|
|
@@ -2806,7 +2819,7 @@ var web_urlSearchParams_constructor = {
|
|
|
2806
2819
|
var $$1 = _export;
|
|
2807
2820
|
var DESCRIPTORS = descriptors;
|
|
2808
2821
|
var USE_NATIVE_URL = nativeUrl;
|
|
2809
|
-
var global$2 = global$
|
|
2822
|
+
var global$2 = global$B;
|
|
2810
2823
|
var bind = functionBindContext;
|
|
2811
2824
|
var uncurryThis$1 = functionUncurryThis;
|
|
2812
2825
|
var defineBuiltIn$1 = defineBuiltIn$7;
|
|
@@ -3839,7 +3852,7 @@ if (NativeURL) {
|
|
|
3839
3852
|
|
|
3840
3853
|
setToStringTag(URLConstructor, 'URL');
|
|
3841
3854
|
|
|
3842
|
-
$$1({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
|
3855
|
+
$$1({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
|
|
3843
3856
|
URL: URLConstructor
|
|
3844
3857
|
});
|
|
3845
3858
|
|
|
@@ -3856,7 +3869,7 @@ var isRegexp = function (it) {
|
|
|
3856
3869
|
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');
|
|
3857
3870
|
};
|
|
3858
3871
|
|
|
3859
|
-
var global$1 = global$
|
|
3872
|
+
var global$1 = global$B;
|
|
3860
3873
|
var isRegExp = isRegexp;
|
|
3861
3874
|
|
|
3862
3875
|
var TypeError$1 = global$1.TypeError;
|
|
@@ -4212,9 +4225,9 @@ function getCalendarTitle(events, options) {
|
|
|
4212
4225
|
return title;
|
|
4213
4226
|
}
|
|
4214
4227
|
|
|
4215
|
-
if (options.isHebrewYear || events.length == 0) {
|
|
4228
|
+
if (options.year && (options.isHebrewYear || events.length == 0)) {
|
|
4216
4229
|
title += ' ' + options.year;
|
|
4217
|
-
} else {
|
|
4230
|
+
} else if (events.length) {
|
|
4218
4231
|
const start = events[0].getDate().greg();
|
|
4219
4232
|
const end = events[events.length - 1].getDate().greg();
|
|
4220
4233
|
|
|
@@ -4477,6 +4490,15 @@ function eventsToCsv(events, options) {
|
|
|
4477
4490
|
return [csvHeader].concat(events.map(e => eventToCsv(e, options))).join('\r\n') + '\r\n';
|
|
4478
4491
|
}
|
|
4479
4492
|
|
|
4493
|
+
/**
|
|
4494
|
+
* @private
|
|
4495
|
+
* @param {Event} ev
|
|
4496
|
+
* @return {string}
|
|
4497
|
+
*/
|
|
4498
|
+
|
|
4499
|
+
function eventIsoDate(ev) {
|
|
4500
|
+
return toISOString(ev.getDate().greg());
|
|
4501
|
+
}
|
|
4480
4502
|
/**
|
|
4481
4503
|
* Formats a list events for the classic Hebcal.com JSON API response
|
|
4482
4504
|
* @param {Event[]} events
|
|
@@ -4485,6 +4507,7 @@ function eventsToCsv(events, options) {
|
|
|
4485
4507
|
* @return {Object}
|
|
4486
4508
|
*/
|
|
4487
4509
|
|
|
4510
|
+
|
|
4488
4511
|
function eventsToClassicApi(events, options) {
|
|
4489
4512
|
let leyning = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
4490
4513
|
const result = {
|
|
@@ -4492,6 +4515,14 @@ function eventsToClassicApi(events, options) {
|
|
|
4492
4515
|
date: new Date().toISOString()
|
|
4493
4516
|
};
|
|
4494
4517
|
result.location = locationToPlainObj(options.location);
|
|
4518
|
+
|
|
4519
|
+
if (events.length) {
|
|
4520
|
+
result.range = {
|
|
4521
|
+
start: eventIsoDate(events[0]),
|
|
4522
|
+
end: eventIsoDate(events[events.length - 1])
|
|
4523
|
+
};
|
|
4524
|
+
}
|
|
4525
|
+
|
|
4495
4526
|
result.items = events.map(ev => eventToClassicApiObject(ev, options, leyning));
|
|
4496
4527
|
return result;
|
|
4497
4528
|
}
|
|
@@ -4580,6 +4611,20 @@ function eventToClassicApiObject(ev, options) {
|
|
|
4580
4611
|
}
|
|
4581
4612
|
}
|
|
4582
4613
|
|
|
4614
|
+
if (mask & core.flags.OMER_COUNT) {
|
|
4615
|
+
result.omer = {
|
|
4616
|
+
count: {
|
|
4617
|
+
he: ev.getTodayIs('he'),
|
|
4618
|
+
en: ev.getTodayIs('en')
|
|
4619
|
+
},
|
|
4620
|
+
sefira: {
|
|
4621
|
+
he: ev.sefira('he'),
|
|
4622
|
+
translit: ev.sefira('translit'),
|
|
4623
|
+
en: ev.sefira('en')
|
|
4624
|
+
}
|
|
4625
|
+
};
|
|
4626
|
+
}
|
|
4627
|
+
|
|
4583
4628
|
const memo = ev.memo || holidayDescription[ev.basename()];
|
|
4584
4629
|
|
|
4585
4630
|
if (memo) {
|
|
@@ -4588,6 +4633,10 @@ function eventToClassicApiObject(ev, options) {
|
|
|
4588
4633
|
result.memo = ev.linkedEvent.render(options.locale);
|
|
4589
4634
|
}
|
|
4590
4635
|
|
|
4636
|
+
if (options.includeEvent) {
|
|
4637
|
+
result.ev = ev;
|
|
4638
|
+
}
|
|
4639
|
+
|
|
4591
4640
|
return result;
|
|
4592
4641
|
}
|
|
4593
4642
|
/**
|