@hebcal/core 3.50.3 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/core v3.50.3 */
1
+ /*! @hebcal/core v4.0.0 */
2
2
  var hebcal = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -101,6 +101,29 @@ function _createSuper(Derived) {
101
101
  return _possibleConstructorReturn(this, result);
102
102
  };
103
103
  }
104
+ function _superPropBase(object, property) {
105
+ while (!Object.prototype.hasOwnProperty.call(object, property)) {
106
+ object = _getPrototypeOf(object);
107
+ if (object === null) break;
108
+ }
109
+ return object;
110
+ }
111
+ function _get() {
112
+ if (typeof Reflect !== "undefined" && Reflect.get) {
113
+ _get = Reflect.get.bind();
114
+ } else {
115
+ _get = function _get(target, property, receiver) {
116
+ var base = _superPropBase(target, property);
117
+ if (!base) return;
118
+ var desc = Object.getOwnPropertyDescriptor(base, property);
119
+ if (desc.get) {
120
+ return desc.get.call(arguments.length < 3 ? target : receiver);
121
+ }
122
+ return desc.value;
123
+ };
124
+ }
125
+ return _get.apply(this, arguments);
126
+ }
104
127
  function _toPrimitive(input, hint) {
105
128
  if (typeof input !== "object" || input === null) return input;
106
129
  var prim = input[Symbol.toPrimitive];
@@ -170,19 +193,19 @@ var functionCall = NATIVE_BIND$2 ? call$7.bind(call$7) : function () {
170
193
 
171
194
  var objectPropertyIsEnumerable = {};
172
195
 
173
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
196
+ var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
174
197
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
175
198
  var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
176
199
 
177
200
  // Nashorn ~ JDK8 bug
178
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
201
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
179
202
 
180
203
  // `Object.prototype.propertyIsEnumerable` method implementation
181
204
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
182
205
  objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
183
206
  var descriptor = getOwnPropertyDescriptor$2(this, V);
184
207
  return !!descriptor && descriptor.enumerable;
185
- } : $propertyIsEnumerable;
208
+ } : $propertyIsEnumerable$1;
186
209
 
187
210
  var createPropertyDescriptor$3 = function (bitmap, value) {
188
211
  return {
@@ -205,21 +228,21 @@ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
205
228
  };
206
229
  };
207
230
 
208
- var uncurryThis$h = functionUncurryThis;
231
+ var uncurryThis$i = functionUncurryThis;
209
232
 
210
- var toString$6 = uncurryThis$h({}.toString);
211
- var stringSlice$2 = uncurryThis$h(''.slice);
233
+ var toString$6 = uncurryThis$i({}.toString);
234
+ var stringSlice$2 = uncurryThis$i(''.slice);
212
235
 
213
236
  var classofRaw$2 = function (it) {
214
237
  return stringSlice$2(toString$6(it), 8, -1);
215
238
  };
216
239
 
217
- var uncurryThis$g = functionUncurryThis;
240
+ var uncurryThis$h = functionUncurryThis;
218
241
  var fails$c = fails$f;
219
242
  var classof$6 = classofRaw$2;
220
243
 
221
244
  var $Object$3 = Object;
222
- var split = uncurryThis$g(''.split);
245
+ var split = uncurryThis$h(''.split);
223
246
 
224
247
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
225
248
  var indexedObject = fails$c(function () {
@@ -251,7 +274,7 @@ var requireObjectCoercible$5 = function (it) {
251
274
  var IndexedObject = indexedObject;
252
275
  var requireObjectCoercible$4 = requireObjectCoercible$5;
253
276
 
254
- var toIndexedObject$5 = function (it) {
277
+ var toIndexedObject$6 = function (it) {
255
278
  return IndexedObject(requireObjectCoercible$4(it));
256
279
  };
257
280
 
@@ -300,9 +323,9 @@ var getBuiltIn$4 = function (namespace, method) {
300
323
  return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
301
324
  };
302
325
 
303
- var uncurryThis$f = functionUncurryThis;
326
+ var uncurryThis$g = functionUncurryThis;
304
327
 
305
- var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
328
+ var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
306
329
 
307
330
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
308
331
 
@@ -418,11 +441,7 @@ var ordinaryToPrimitive$1 = function (input, pref) {
418
441
  throw $TypeError$6("Can't convert object to primitive value");
419
442
  };
420
443
 
421
- var sharedExports = {};
422
- var shared$3 = {
423
- get exports(){ return sharedExports; },
424
- set exports(v){ sharedExports = v; },
425
- };
444
+ var shared$3 = {exports: {}};
426
445
 
427
446
  var global$8 = global$b;
428
447
 
@@ -450,13 +469,15 @@ var store$2 = sharedStore;
450
469
  (shared$3.exports = function (key, value) {
451
470
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
452
471
  })('versions', []).push({
453
- version: '3.27.2',
472
+ version: '3.30.1',
454
473
  mode: 'global',
455
474
  copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
456
- license: 'https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE',
475
+ license: 'https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE',
457
476
  source: 'https://github.com/zloirock/core-js'
458
477
  });
459
478
 
479
+ var sharedExports = shared$3.exports;
480
+
460
481
  var requireObjectCoercible$3 = requireObjectCoercible$5;
461
482
 
462
483
  var $Object$1 = Object;
@@ -467,10 +488,10 @@ var toObject$3 = function (argument) {
467
488
  return $Object$1(requireObjectCoercible$3(argument));
468
489
  };
469
490
 
470
- var uncurryThis$e = functionUncurryThis;
491
+ var uncurryThis$f = functionUncurryThis;
471
492
  var toObject$2 = toObject$3;
472
493
 
473
- var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
494
+ var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
474
495
 
475
496
  // `HasOwnProperty` abstract operation
476
497
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -479,11 +500,11 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
479
500
  return hasOwnProperty(toObject$2(it), key);
480
501
  };
481
502
 
482
- var uncurryThis$d = functionUncurryThis;
503
+ var uncurryThis$e = functionUncurryThis;
483
504
 
484
505
  var id$1 = 0;
485
506
  var postfix = Math.random();
486
- var toString$5 = uncurryThis$d(1.0.toString);
507
+ var toString$5 = uncurryThis$e(1.0.toString);
487
508
 
488
509
  var uid$2 = function (key) {
489
510
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id$1 + postfix, 36);
@@ -555,23 +576,23 @@ var documentCreateElement$1 = function (it) {
555
576
  return EXISTS$1 ? document$1.createElement(it) : {};
556
577
  };
557
578
 
558
- var DESCRIPTORS$8 = descriptors;
579
+ var DESCRIPTORS$9 = descriptors;
559
580
  var fails$a = fails$f;
560
581
  var createElement = documentCreateElement$1;
561
582
 
562
583
  // Thanks to IE8 for its funny defineProperty
563
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$a(function () {
584
+ var ie8DomDefine = !DESCRIPTORS$9 && !fails$a(function () {
564
585
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
565
586
  return Object.defineProperty(createElement('div'), 'a', {
566
587
  get: function () { return 7; }
567
588
  }).a != 7;
568
589
  });
569
590
 
570
- var DESCRIPTORS$7 = descriptors;
591
+ var DESCRIPTORS$8 = descriptors;
571
592
  var call$3 = functionCall;
572
593
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
573
594
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
574
- var toIndexedObject$4 = toIndexedObject$5;
595
+ var toIndexedObject$5 = toIndexedObject$6;
575
596
  var toPropertyKey$2 = toPropertyKey$3;
576
597
  var hasOwn$5 = hasOwnProperty_1;
577
598
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
@@ -581,8 +602,8 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
581
602
 
582
603
  // `Object.getOwnPropertyDescriptor` method
583
604
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
584
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
585
- O = toIndexedObject$4(O);
605
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
606
+ O = toIndexedObject$5(O);
586
607
  P = toPropertyKey$2(P);
587
608
  if (IE8_DOM_DEFINE$1) try {
588
609
  return $getOwnPropertyDescriptor$1(O, P);
@@ -592,12 +613,12 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 :
592
613
 
593
614
  var objectDefineProperty = {};
594
615
 
595
- var DESCRIPTORS$6 = descriptors;
616
+ var DESCRIPTORS$7 = descriptors;
596
617
  var fails$9 = fails$f;
597
618
 
598
619
  // V8 ~ Chrome 36-
599
620
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
600
- var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$9(function () {
621
+ var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$9(function () {
601
622
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
602
623
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
603
624
  value: 42,
@@ -616,7 +637,7 @@ var anObject$8 = function (argument) {
616
637
  throw $TypeError$4($String$2(argument) + ' is not an object');
617
638
  };
618
639
 
619
- var DESCRIPTORS$5 = descriptors;
640
+ var DESCRIPTORS$6 = descriptors;
620
641
  var IE8_DOM_DEFINE = ie8DomDefine;
621
642
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
622
643
  var anObject$7 = anObject$8;
@@ -633,7 +654,7 @@ var WRITABLE = 'writable';
633
654
 
634
655
  // `Object.defineProperty` method
635
656
  // https://tc39.es/ecma262/#sec-object.defineproperty
636
- objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
657
+ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
637
658
  anObject$7(O);
638
659
  P = toPropertyKey$1(P);
639
660
  anObject$7(Attributes);
@@ -660,34 +681,30 @@ objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
660
681
  return O;
661
682
  };
662
683
 
663
- var DESCRIPTORS$4 = descriptors;
684
+ var DESCRIPTORS$5 = descriptors;
664
685
  var definePropertyModule$4 = objectDefineProperty;
665
686
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
666
687
 
667
- var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
688
+ var createNonEnumerableProperty$2 = DESCRIPTORS$5 ? function (object, key, value) {
668
689
  return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
669
690
  } : function (object, key, value) {
670
691
  object[key] = value;
671
692
  return object;
672
693
  };
673
694
 
674
- var makeBuiltInExports = {};
675
- var makeBuiltIn$3 = {
676
- get exports(){ return makeBuiltInExports; },
677
- set exports(v){ makeBuiltInExports = v; },
678
- };
695
+ var makeBuiltIn$3 = {exports: {}};
679
696
 
680
- var DESCRIPTORS$3 = descriptors;
697
+ var DESCRIPTORS$4 = descriptors;
681
698
  var hasOwn$4 = hasOwnProperty_1;
682
699
 
683
700
  var FunctionPrototype = Function.prototype;
684
701
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
685
- var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
702
+ var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
686
703
 
687
704
  var EXISTS = hasOwn$4(FunctionPrototype, 'name');
688
705
  // additional protection from minified / mangled / dropped function names
689
706
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
690
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
707
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
691
708
 
692
709
  var functionName = {
693
710
  EXISTS: EXISTS,
@@ -695,11 +712,11 @@ var functionName = {
695
712
  CONFIGURABLE: CONFIGURABLE
696
713
  };
697
714
 
698
- var uncurryThis$c = functionUncurryThis;
715
+ var uncurryThis$d = functionUncurryThis;
699
716
  var isCallable$6 = isCallable$c;
700
717
  var store$1 = sharedStore;
701
718
 
702
- var functionToString = uncurryThis$c(Function.toString);
719
+ var functionToString = uncurryThis$d(Function.toString);
703
720
 
704
721
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
705
722
  if (!isCallable$6(store$1.inspectSource)) {
@@ -799,11 +816,11 @@ var internalState = {
799
816
  getterFor: getterFor
800
817
  };
801
818
 
802
- var uncurryThis$b = functionUncurryThis;
819
+ var uncurryThis$c = functionUncurryThis;
803
820
  var fails$8 = fails$f;
804
821
  var isCallable$4 = isCallable$c;
805
822
  var hasOwn$2 = hasOwnProperty_1;
806
- var DESCRIPTORS$2 = descriptors;
823
+ var DESCRIPTORS$3 = descriptors;
807
824
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
808
825
  var inspectSource$1 = inspectSource$2;
809
826
  var InternalStateModule = internalState;
@@ -813,11 +830,11 @@ var getInternalState = InternalStateModule.get;
813
830
  var $String$1 = String;
814
831
  // eslint-disable-next-line es/no-object-defineproperty -- safe
815
832
  var defineProperty$2 = Object.defineProperty;
816
- var stringSlice$1 = uncurryThis$b(''.slice);
817
- var replace$1 = uncurryThis$b(''.replace);
818
- var join$1 = uncurryThis$b([].join);
833
+ var stringSlice$1 = uncurryThis$c(''.slice);
834
+ var replace$1 = uncurryThis$c(''.replace);
835
+ var join$1 = uncurryThis$c([].join);
819
836
 
820
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$8(function () {
837
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$8(function () {
821
838
  return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
822
839
  });
823
840
 
@@ -830,7 +847,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
830
847
  if (options && options.getter) name = 'get ' + name;
831
848
  if (options && options.setter) name = 'set ' + name;
832
849
  if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
833
- if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
850
+ if (DESCRIPTORS$3) defineProperty$2(value, 'name', { value: name, configurable: true });
834
851
  else value.name = name;
835
852
  }
836
853
  if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
@@ -838,7 +855,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
838
855
  }
839
856
  try {
840
857
  if (options && hasOwn$2(options, 'constructor') && options.constructor) {
841
- if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
858
+ if (DESCRIPTORS$3) defineProperty$2(value, 'prototype', { writable: false });
842
859
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
843
860
  } else if (value.prototype) value.prototype = undefined;
844
861
  } catch (error) { /* empty */ }
@@ -854,6 +871,8 @@ Function.prototype.toString = makeBuiltIn$2(function toString() {
854
871
  return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
855
872
  }, 'toString');
856
873
 
874
+ var makeBuiltInExports = makeBuiltIn$3.exports;
875
+
857
876
  var isCallable$3 = isCallable$c;
858
877
  var definePropertyModule$3 = objectDefineProperty;
859
878
  var makeBuiltIn$1 = makeBuiltInExports;
@@ -936,14 +955,14 @@ var lengthOfArrayLike$5 = function (obj) {
936
955
  return toLength$1(obj.length);
937
956
  };
938
957
 
939
- var toIndexedObject$3 = toIndexedObject$5;
958
+ var toIndexedObject$4 = toIndexedObject$6;
940
959
  var toAbsoluteIndex$3 = toAbsoluteIndex$4;
941
960
  var lengthOfArrayLike$4 = lengthOfArrayLike$5;
942
961
 
943
962
  // `Array.prototype.{ indexOf, includes }` methods implementation
944
- var createMethod$1 = function (IS_INCLUDES) {
963
+ var createMethod$2 = function (IS_INCLUDES) {
945
964
  return function ($this, el, fromIndex) {
946
- var O = toIndexedObject$3($this);
965
+ var O = toIndexedObject$4($this);
947
966
  var length = lengthOfArrayLike$4(O);
948
967
  var index = toAbsoluteIndex$3(fromIndex, length);
949
968
  var value;
@@ -963,29 +982,29 @@ var createMethod$1 = function (IS_INCLUDES) {
963
982
  var arrayIncludes = {
964
983
  // `Array.prototype.includes` method
965
984
  // https://tc39.es/ecma262/#sec-array.prototype.includes
966
- includes: createMethod$1(true),
985
+ includes: createMethod$2(true),
967
986
  // `Array.prototype.indexOf` method
968
987
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
969
- indexOf: createMethod$1(false)
988
+ indexOf: createMethod$2(false)
970
989
  };
971
990
 
972
- var uncurryThis$a = functionUncurryThis;
991
+ var uncurryThis$b = functionUncurryThis;
973
992
  var hasOwn$1 = hasOwnProperty_1;
974
- var toIndexedObject$2 = toIndexedObject$5;
993
+ var toIndexedObject$3 = toIndexedObject$6;
975
994
  var indexOf = arrayIncludes.indexOf;
976
995
  var hiddenKeys$2 = hiddenKeys$4;
977
996
 
978
- var push$1 = uncurryThis$a([].push);
997
+ var push$2 = uncurryThis$b([].push);
979
998
 
980
999
  var objectKeysInternal = function (object, names) {
981
- var O = toIndexedObject$2(object);
1000
+ var O = toIndexedObject$3(object);
982
1001
  var i = 0;
983
1002
  var result = [];
984
1003
  var key;
985
- for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
1004
+ for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$2(result, key);
986
1005
  // Don't enum bug & hidden keys
987
1006
  while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
988
- ~indexOf(result, key) || push$1(result, key);
1007
+ ~indexOf(result, key) || push$2(result, key);
989
1008
  }
990
1009
  return result;
991
1010
  };
@@ -1019,12 +1038,12 @@ var objectGetOwnPropertySymbols = {};
1019
1038
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1020
1039
 
1021
1040
  var getBuiltIn$2 = getBuiltIn$4;
1022
- var uncurryThis$9 = functionUncurryThis;
1041
+ var uncurryThis$a = functionUncurryThis;
1023
1042
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1024
1043
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1025
1044
  var anObject$6 = anObject$8;
1026
1045
 
1027
- var concat = uncurryThis$9([].concat);
1046
+ var concat = uncurryThis$a([].concat);
1028
1047
 
1029
1048
  // all object keys, includes non-enumerable and symbols
1030
1049
  var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
@@ -1176,7 +1195,7 @@ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1176
1195
  : (result = classofRaw$1(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1177
1196
  };
1178
1197
 
1179
- var uncurryThis$8 = functionUncurryThis;
1198
+ var uncurryThis$9 = functionUncurryThis;
1180
1199
  var fails$6 = fails$f;
1181
1200
  var isCallable = isCallable$c;
1182
1201
  var classof$3 = classof$4;
@@ -1187,7 +1206,7 @@ var noop = function () { /* empty */ };
1187
1206
  var empty = [];
1188
1207
  var construct = getBuiltIn$1('Reflect', 'construct');
1189
1208
  var constructorRegExp = /^\s*(?:class|function)\b/;
1190
- var exec = uncurryThis$8(constructorRegExp.exec);
1209
+ var exec = uncurryThis$9(constructorRegExp.exec);
1191
1210
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1192
1211
 
1193
1212
  var isConstructorModern = function isConstructor(argument) {
@@ -1259,17 +1278,17 @@ var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
1259
1278
  });
1260
1279
  };
1261
1280
 
1262
- var uncurryThis$7 = functionUncurryThis;
1281
+ var uncurryThis$8 = functionUncurryThis;
1263
1282
 
1264
- var arraySlice$1 = uncurryThis$7([].slice);
1283
+ var arraySlice$1 = uncurryThis$8([].slice);
1265
1284
 
1266
- var $$7 = _export;
1285
+ var $$8 = _export;
1267
1286
  var isArray = isArray$1;
1268
1287
  var isConstructor$1 = isConstructor$2;
1269
1288
  var isObject$1 = isObject$7;
1270
1289
  var toAbsoluteIndex$2 = toAbsoluteIndex$4;
1271
1290
  var lengthOfArrayLike$3 = lengthOfArrayLike$5;
1272
- var toIndexedObject$1 = toIndexedObject$5;
1291
+ var toIndexedObject$2 = toIndexedObject$6;
1273
1292
  var createProperty$2 = createProperty$3;
1274
1293
  var wellKnownSymbol$6 = wellKnownSymbol$b;
1275
1294
  var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
@@ -1284,9 +1303,9 @@ var max$1 = Math.max;
1284
1303
  // `Array.prototype.slice` method
1285
1304
  // https://tc39.es/ecma262/#sec-array.prototype.slice
1286
1305
  // fallback for not array-like ES3 strings and DOM objects
1287
- $$7({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
1306
+ $$8({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
1288
1307
  slice: function slice(start, end) {
1289
- var O = toIndexedObject$1(this);
1308
+ var O = toIndexedObject$2(this);
1290
1309
  var length = lengthOfArrayLike$3(O);
1291
1310
  var k = toAbsoluteIndex$2(start, length);
1292
1311
  var fin = toAbsoluteIndex$2(end === undefined ? length : end, length);
@@ -1785,8 +1804,8 @@ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
1785
1804
 
1786
1805
  var engineWebkitVersion = !!webkit && +webkit[1];
1787
1806
 
1788
- var $$6 = _export;
1789
- var uncurryThis$6 = functionUncurryThis;
1807
+ var $$7 = _export;
1808
+ var uncurryThis$7 = functionUncurryThis;
1790
1809
  var aCallable$2 = aCallable$4;
1791
1810
  var toObject$1 = toObject$3;
1792
1811
  var lengthOfArrayLike$1 = lengthOfArrayLike$5;
@@ -1801,8 +1820,8 @@ var V8 = engineV8Version;
1801
1820
  var WEBKIT = engineWebkitVersion;
1802
1821
 
1803
1822
  var test = [];
1804
- var nativeSort = uncurryThis$6(test.sort);
1805
- var push = uncurryThis$6(test.push);
1823
+ var nativeSort = uncurryThis$7(test.sort);
1824
+ var push$1 = uncurryThis$7(test.push);
1806
1825
 
1807
1826
  // IE8-
1808
1827
  var FAILS_ON_UNDEFINED = fails$3(function () {
@@ -1863,7 +1882,7 @@ var getSortCompare = function (comparefn) {
1863
1882
 
1864
1883
  // `Array.prototype.sort` method
1865
1884
  // https://tc39.es/ecma262/#sec-array.prototype.sort
1866
- $$6({ target: 'Array', proto: true, forced: FORCED$1 }, {
1885
+ $$7({ target: 'Array', proto: true, forced: FORCED$1 }, {
1867
1886
  sort: function sort(comparefn) {
1868
1887
  if (comparefn !== undefined) aCallable$2(comparefn);
1869
1888
 
@@ -1876,7 +1895,7 @@ $$6({ target: 'Array', proto: true, forced: FORCED$1 }, {
1876
1895
  var itemsLength, index;
1877
1896
 
1878
1897
  for (index = 0; index < arrayLength; index++) {
1879
- if (index in array) push(items, array[index]);
1898
+ if (index in array) push$1(items, array[index]);
1880
1899
  }
1881
1900
 
1882
1901
  internalSort(items, getSortCompare(comparefn));
@@ -1964,7 +1983,7 @@ var Locale = /*#__PURE__*/function () {
1964
1983
  /**
1965
1984
  * Register locale translations.
1966
1985
  * @param {string} locale Locale name (i.e.: `'he'`, `'fr'`)
1967
- * @param {LocaleDate} data parsed data from a `.po` file.
1986
+ * @param {LocaleData} data parsed data from a `.po` file.
1968
1987
  */
1969
1988
  }, {
1970
1989
  key: "addLocale",
@@ -2143,6 +2162,17 @@ var EPOCH = -1373428;
2143
2162
  // Avg year length in the cycle (19 solar years with 235 lunar months)
2144
2163
  var AVG_HEBYEAR_DAYS = 365.24682220597794;
2145
2164
 
2165
+ /**
2166
+ * @private
2167
+ * @param {any} n
2168
+ * @param {string} name
2169
+ */
2170
+ function assertNumber(n, name) {
2171
+ if (typeof n !== 'number' || isNaN(n)) {
2172
+ throw new TypeError("invalid parameter '".concat(name, "' not a number: ").concat(n));
2173
+ }
2174
+ }
2175
+
2146
2176
  /**
2147
2177
  * Converts Hebrew date to R.D. (Rata Die) fixed days.
2148
2178
  * R.D. 1 is the imaginary date Monday, January 1, 1 on the Gregorian
@@ -2154,6 +2184,9 @@ var AVG_HEBYEAR_DAYS = 365.24682220597794;
2154
2184
  * @return {number}
2155
2185
  */
2156
2186
  function hebrew2abs(year, month, day) {
2187
+ assertNumber(year, 'year');
2188
+ assertNumber(month, 'month');
2189
+ assertNumber(day, 'day');
2157
2190
  if (year < 1) {
2158
2191
  throw new RangeError("hebrew2abs: invalid year ".concat(year));
2159
2192
  }
@@ -2189,9 +2222,7 @@ function newYear(year) {
2189
2222
  * @return {SimpleHebrewDate}
2190
2223
  */
2191
2224
  function abs2hebrew(abs) {
2192
- if (typeof abs !== 'number' || isNaN(abs)) {
2193
- throw new TypeError("invalid parameter to abs2hebrew ".concat(abs));
2194
- }
2225
+ assertNumber(abs, 'abs');
2195
2226
  abs = Math.trunc(abs);
2196
2227
  if (abs <= EPOCH) {
2197
2228
  throw new RangeError("abs2hebrew: ".concat(abs, " is before epoch"));
@@ -2266,7 +2297,9 @@ function daysInMonth(month, year) {
2266
2297
  * @return {string}
2267
2298
  */
2268
2299
  function getMonthName(month, year) {
2269
- if (typeof month !== 'number' || isNaN(month) || month < 1 || month > 14) {
2300
+ assertNumber(month, 'month');
2301
+ assertNumber(year, 'year');
2302
+ if (month < 1 || month > 14) {
2270
2303
  throw new TypeError("bad month argument ".concat(month));
2271
2304
  }
2272
2305
  return monthNames[+isLeapYear(year)][month];
@@ -2675,11 +2708,14 @@ var HDate = /*#__PURE__*/function () {
2675
2708
  * import {HDate, months} from '@hebcal/core';
2676
2709
  * const hd = new HDate(15, months.CHESHVAN, 5769);
2677
2710
  * console.log(hd.renderGematriya()); // 'ט״ו חֶשְׁוָן תשס״ט'
2711
+ * @param {boolean} [suppressNikud]
2678
2712
  * @return {string}
2679
2713
  */
2680
2714
  function renderGematriya() {
2715
+ var suppressNikud = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
2681
2716
  var d = this.getDate();
2682
- var m = Locale.gettext(this.getMonthName(), 'he');
2717
+ var locale = suppressNikud ? 'he-x-NoNikud' : 'he';
2718
+ var m = Locale.gettext(this.getMonthName(), locale);
2683
2719
  var y = this.getFullYear();
2684
2720
  return gematriya(d) + ' ' + m + ' ' + gematriya(y);
2685
2721
  }
@@ -3318,6 +3354,9 @@ var flags = {
3318
3354
  /** Nach Yomi */
3319
3355
  NACH_YOMI: 0x2000000
3320
3356
  };
3357
+ var flagToCategory = [[flags.MAJOR_FAST, 'holiday', 'major', 'fast'], [flags.CHANUKAH_CANDLES, 'holiday', 'major'], [flags.HEBREW_DATE, 'hebdate'], [flags.MINOR_FAST, 'holiday', 'fast'], [flags.MINOR_HOLIDAY, 'holiday', 'minor'], [flags.MODERN_HOLIDAY, 'holiday', 'modern'], [flags.MOLAD, 'molad'], [flags.OMER_COUNT, 'omer'], [flags.PARSHA_HASHAVUA, 'parashat'],
3358
+ // backwards-compat
3359
+ [flags.ROSH_CHODESH, 'roshchodesh'], [flags.SHABBAT_MEVARCHIM, 'mevarchim'], [flags.SPECIAL_SHABBAT, 'holiday', 'shabbat'], [flags.USER_EVENT, 'user']];
3321
3360
 
3322
3361
  /** Represents an Event with a title, date, and flags */
3323
3362
  var Event = /*#__PURE__*/function () {
@@ -3495,10 +3534,25 @@ var Event = /*#__PURE__*/function () {
3495
3534
  }
3496
3535
  return ev;
3497
3536
  }
3537
+ /**
3538
+ * Returns a list of event categories
3539
+ * @return {string[]}
3540
+ */
3541
+ }, {
3542
+ key: "getCategories",
3543
+ value: function getCategories() {
3544
+ var mask = this.getFlags();
3545
+ for (var i = 0; i < flagToCategory.length; i++) {
3546
+ var attrs = flagToCategory[i];
3547
+ if (mask & attrs[0]) {
3548
+ return attrs.slice(1);
3549
+ }
3550
+ }
3551
+ return ['unknown'];
3552
+ }
3498
3553
  }]);
3499
3554
  return Event;
3500
3555
  }();
3501
- var KEYCAP_DIGITS = ['0️⃣', '1️⃣', '2️⃣', '3️⃣', '4️⃣', '5️⃣', '6️⃣', '7️⃣', '8️⃣', '9️⃣'];
3502
3556
 
3503
3557
  /** Daily Hebrew date ("11th of Sivan, 5780") */
3504
3558
  var HebrewDateEvent = /*#__PURE__*/function (_Event) {
@@ -4866,6 +4920,24 @@ var TimedEvent = /*#__PURE__*/function (_Event) {
4866
4920
  value: function renderBrief(locale) {
4867
4921
  return Locale.gettext(this.getDesc(), locale);
4868
4922
  }
4923
+ /** @return {string[]} */
4924
+ }, {
4925
+ key: "getCategories",
4926
+ value: function getCategories() {
4927
+ var desc = this.getDesc();
4928
+ switch (desc) {
4929
+ // LIGHT_CANDLES or LIGHT_CANDLES_TZEIS
4930
+ case 'Candle lighting':
4931
+ return ['candles'];
4932
+ // YOM_TOV_ENDS
4933
+ case 'Havdalah':
4934
+ return ['havdalah'];
4935
+ // flags.MINOR_FAST or flags.MAJOR_FAST
4936
+ case 'Fast begins':
4937
+ case 'Fast ends':
4938
+ return ['zmanim', 'fast'];
4939
+ }
4940
+ }
4869
4941
  }]);
4870
4942
  return TimedEvent;
4871
4943
  }(Event);
@@ -5147,22 +5219,22 @@ var MoladEvent = /*#__PURE__*/function (_Event) {
5147
5219
  return MoladEvent;
5148
5220
  }(Event);
5149
5221
 
5150
- var $$5 = _export;
5151
- var uncurryThis$5 = functionUncurryThis;
5222
+ var $$6 = _export;
5223
+ var uncurryThis$6 = functionUncurryThis;
5152
5224
  var toAbsoluteIndex = toAbsoluteIndex$4;
5153
5225
 
5154
5226
  var $RangeError = RangeError;
5155
5227
  var fromCharCode = String.fromCharCode;
5156
5228
  // eslint-disable-next-line es/no-string-fromcodepoint -- required for testing
5157
5229
  var $fromCodePoint = String.fromCodePoint;
5158
- var join = uncurryThis$5([].join);
5230
+ var join = uncurryThis$6([].join);
5159
5231
 
5160
5232
  // length should be 1, old FF problem
5161
5233
  var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length != 1;
5162
5234
 
5163
5235
  // `String.fromCodePoint` method
5164
5236
  // https://tc39.es/ecma262/#sec-string.fromcodepoint
5165
- $$5({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
5237
+ $$6({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
5166
5238
  // eslint-disable-next-line no-unused-vars -- required for `.length`
5167
5239
  fromCodePoint: function fromCodePoint(x) {
5168
5240
  var elements = [];
@@ -5183,22 +5255,21 @@ $$5({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
5183
5255
  var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
5184
5256
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
5185
5257
 
5186
- var uncurryThis$4 = functionUncurryThis;
5258
+ var uncurryThis$5 = functionUncurryThis;
5187
5259
  var requireObjectCoercible$2 = requireObjectCoercible$5;
5188
5260
  var toString$2 = toString$4;
5189
5261
  var whitespaces$1 = whitespaces$2;
5190
5262
 
5191
- var replace = uncurryThis$4(''.replace);
5192
- var whitespace = '[' + whitespaces$1 + ']';
5193
- var ltrim = RegExp('^' + whitespace + whitespace + '*');
5194
- var rtrim = RegExp(whitespace + whitespace + '*$');
5263
+ var replace = uncurryThis$5(''.replace);
5264
+ var ltrim = RegExp('^[' + whitespaces$1 + ']+');
5265
+ var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
5195
5266
 
5196
5267
  // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
5197
- var createMethod = function (TYPE) {
5268
+ var createMethod$1 = function (TYPE) {
5198
5269
  return function ($this) {
5199
5270
  var string = toString$2(requireObjectCoercible$2($this));
5200
5271
  if (TYPE & 1) string = replace(string, ltrim, '');
5201
- if (TYPE & 2) string = replace(string, rtrim, '');
5272
+ if (TYPE & 2) string = replace(string, rtrim, '$1');
5202
5273
  return string;
5203
5274
  };
5204
5275
  };
@@ -5206,13 +5277,13 @@ var createMethod = function (TYPE) {
5206
5277
  var stringTrim = {
5207
5278
  // `String.prototype.{ trimLeft, trimStart }` methods
5208
5279
  // https://tc39.es/ecma262/#sec-string.prototype.trimstart
5209
- start: createMethod(1),
5280
+ start: createMethod$1(1),
5210
5281
  // `String.prototype.{ trimRight, trimEnd }` methods
5211
5282
  // https://tc39.es/ecma262/#sec-string.prototype.trimend
5212
- end: createMethod(2),
5283
+ end: createMethod$1(2),
5213
5284
  // `String.prototype.trim` method
5214
5285
  // https://tc39.es/ecma262/#sec-string.prototype.trim
5215
- trim: createMethod(3)
5286
+ trim: createMethod$1(3)
5216
5287
  };
5217
5288
 
5218
5289
  var PROPER_FUNCTION_NAME = functionName.PROPER;
@@ -5231,13 +5302,13 @@ var stringTrimForced = function (METHOD_NAME) {
5231
5302
  });
5232
5303
  };
5233
5304
 
5234
- var $$4 = _export;
5305
+ var $$5 = _export;
5235
5306
  var $trim = stringTrim.trim;
5236
5307
  var forcedStringTrimMethod = stringTrimForced;
5237
5308
 
5238
5309
  // `String.prototype.trim` method
5239
5310
  // https://tc39.es/ecma262/#sec-string.prototype.trim
5240
- $$4({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
5311
+ $$5({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
5241
5312
  trim: function trim() {
5242
5313
  return $trim(this);
5243
5314
  }
@@ -5457,209 +5528,21 @@ function getTodayIsHe(omer) {
5457
5528
  return str.normalize();
5458
5529
  }
5459
5530
 
5460
- var osdate = new Date(1923, 8, 11);
5461
- var osday = greg2abs(osdate);
5462
- var nsday = greg2abs(new Date(1975, 5, 24));
5463
- var shas0 = [['Berachot', 64], ['Shabbat', 157], ['Eruvin', 105], ['Pesachim', 121], ['Shekalim', 22], ['Yoma', 88], ['Sukkah', 56], ['Beitzah', 40], ['Rosh Hashana', 35], ['Taanit', 31], ['Megillah', 32], ['Moed Katan', 29], ['Chagigah', 27], ['Yevamot', 122], ['Ketubot', 112], ['Nedarim', 91], ['Nazir', 66], ['Sotah', 49], ['Gitin', 90], ['Kiddushin', 82], ['Baba Kamma', 119], ['Baba Metzia', 119], ['Baba Batra', 176], ['Sanhedrin', 113], ['Makkot', 24], ['Shevuot', 49], ['Avodah Zarah', 76], ['Horayot', 14], ['Zevachim', 120], ['Menachot', 110], ['Chullin', 142], ['Bechorot', 61], ['Arachin', 34], ['Temurah', 34], ['Keritot', 28], ['Meilah', 22], ['Kinnim', 4], ['Tamid', 9], ['Midot', 5], ['Niddah', 73]].map(function (m) {
5464
- return {
5465
- name: m[0],
5466
- blatt: m[1]
5467
- };
5468
- });
5469
-
5470
- /**
5471
- * Returns the Daf Yomi for given date
5472
- */
5473
- var DafYomi = /*#__PURE__*/function () {
5474
- /**
5475
- * Initializes a daf yomi instance
5476
- * @param {Date|HDate|number} gregdate Gregorian date
5477
- */
5478
- function DafYomi(gregdate) {
5479
- _classCallCheck(this, DafYomi);
5480
- var cday = typeof gregdate === 'number' && !isNaN(gregdate) ? gregdate : isDate(gregdate) ? greg2abs(gregdate) : HDate.isHDate(gregdate) ? gregdate.abs() : throwTypeError("non-date given to dafyomi: ".concat(gregdate));
5481
- if (cday < osday) {
5482
- throw new RangeError("Date ".concat(gregdate, " too early; Daf Yomi cycle began on ").concat(osdate));
5483
- }
5484
- var cno;
5485
- var dno;
5486
- if (cday >= nsday) {
5487
- // "new" cycle
5488
- cno = 8 + Math.floor((cday - nsday) / 2711);
5489
- dno = (cday - nsday) % 2711;
5490
- } else {
5491
- // old cycle
5492
- cno = 1 + Math.floor((cday - osday) / 2702);
5493
- dno = (cday - osday) % 2702;
5494
- }
5495
-
5496
- // Find the daf taking note that the cycle changed slightly after cycle 7.
5497
-
5498
- var total = 0;
5499
- var blatt = 0;
5500
- var count = -1;
5501
-
5502
- // Fix Shekalim for old cycles
5503
- var shortShekalim = cno <= 7;
5504
- var shas = shortShekalim ? shas0.slice() : shas0;
5505
- if (shortShekalim) {
5506
- shas[4] = {
5507
- name: 'Shekalim',
5508
- blatt: 13
5509
- };
5510
- }
5511
-
5512
- // Find the daf
5513
- var j = 0;
5514
- var dafcnt = 40;
5515
- while (j < dafcnt) {
5516
- count++;
5517
- total = total + shas[j].blatt - 1;
5518
- if (dno < total) {
5519
- blatt = shas[j].blatt + 1 - (total - dno);
5520
- // fiddle with the weird ones near the end
5521
- switch (count) {
5522
- case 36:
5523
- blatt = blatt + 21;
5524
- break;
5525
- case 37:
5526
- blatt = blatt + 24;
5527
- break;
5528
- case 38:
5529
- blatt = blatt + 32;
5530
- break;
5531
- }
5532
- // Bailout
5533
- j = 1 + dafcnt;
5534
- }
5535
- j++;
5536
- }
5537
- this.name = shas[count].name;
5538
- this.blatt = blatt;
5539
- }
5540
- /**
5541
- * @return {number}
5542
- */
5543
- _createClass(DafYomi, [{
5544
- key: "getBlatt",
5545
- value: function getBlatt() {
5546
- return this.blatt;
5547
- }
5548
- /**
5549
- * @return {string}
5550
- */
5551
- }, {
5552
- key: "getName",
5553
- value: function getName() {
5554
- return this.name;
5555
- }
5556
- /**
5557
- * Formats (with translation) the dafyomi result as a string like "Pesachim 34"
5558
- * @param {string} [locale] Optional locale name (defaults to active locale).
5559
- * @return {string}
5560
- */
5561
- }, {
5562
- key: "render",
5563
- value: function render(locale) {
5564
- locale = locale || Locale.getLocaleName();
5565
- if (typeof locale === 'string') {
5566
- locale = locale.toLowerCase();
5567
- }
5568
- if (locale === 'he' || locale === 'he-x-nonikud') {
5569
- return Locale.gettext(this.name, locale) + ' דף ' + gematriya(this.blatt);
5570
- }
5571
- return Locale.gettext(this.name, locale) + ' ' + this.blatt;
5572
- }
5573
- }]);
5574
- return DafYomi;
5575
- }();
5576
- var dafYomiSefaria = {
5577
- 'Berachot': 'Berakhot',
5578
- 'Rosh Hashana': 'Rosh Hashanah',
5579
- 'Gitin': 'Gittin',
5580
- 'Baba Kamma': 'Bava Kamma',
5581
- 'Baba Metzia': 'Bava Metzia',
5582
- 'Baba Batra': 'Bava Batra',
5583
- 'Bechorot': 'Bekhorot',
5584
- 'Arachin': 'Arakhin',
5585
- 'Midot': 'Middot',
5586
- 'Shekalim': 'Jerusalem_Talmud_Shekalim'
5587
- };
5588
-
5589
- /**
5590
- * Event wrapper around a DafYomi instance
5591
- */
5592
- var DafYomiEvent = /*#__PURE__*/function (_Event) {
5593
- _inherits(DafYomiEvent, _Event);
5594
- var _super = _createSuper(DafYomiEvent);
5595
- /**
5596
- * @param {HDate} date
5597
- */
5598
- function DafYomiEvent(date) {
5599
- var _this;
5600
- _classCallCheck(this, DafYomiEvent);
5601
- var daf = new DafYomi(date.greg());
5602
- _this = _super.call(this, date, daf.render('en'), flags.DAF_YOMI);
5603
- _this.daf = daf;
5604
- return _this;
5605
- }
5606
- /**
5607
- * Returns Daf Yomi name including the 'Daf Yomi: ' prefix (e.g. "Daf Yomi: Pesachim 107").
5608
- * @param {string} [locale] Optional locale name (defaults to active locale).
5609
- * @return {string}
5610
- */
5611
- _createClass(DafYomiEvent, [{
5612
- key: "render",
5613
- value: function render(locale) {
5614
- return Locale.gettext('Daf Yomi', locale) + ': ' + this.daf.render(locale);
5615
- }
5616
- /**
5617
- * Returns Daf Yomi name without the 'Daf Yomi: ' prefix (e.g. "Pesachim 107").
5618
- * @param {string} [locale] Optional locale name (defaults to active locale).
5619
- * @return {string}
5620
- */
5621
- }, {
5622
- key: "renderBrief",
5623
- value: function renderBrief(locale) {
5624
- return this.daf.render(locale);
5625
- }
5626
- /**
5627
- * Returns a link to sefaria.org or dafyomi.org
5628
- * @return {string}
5629
- */
5630
- }, {
5631
- key: "url",
5632
- value: function url() {
5633
- var daf = this.daf;
5634
- var tractate = daf.getName();
5635
- var blatt = daf.getBlatt();
5636
- if (tractate == 'Kinnim' || tractate == 'Midot') {
5637
- return "https://www.dafyomi.org/index.php?masechta=meilah&daf=".concat(blatt, "a");
5638
- } else {
5639
- var name0 = dafYomiSefaria[tractate] || tractate;
5640
- var name = name0.replace(/ /g, '_');
5641
- return "https://www.sefaria.org/".concat(name, ".").concat(blatt, "a?lang=bi");
5642
- }
5643
- }
5644
- }]);
5645
- return DafYomiEvent;
5646
- }(Event);
5647
-
5648
5531
  var classofRaw = classofRaw$2;
5649
- var uncurryThis$3 = functionUncurryThis;
5532
+ var uncurryThis$4 = functionUncurryThis;
5650
5533
 
5651
5534
  var functionUncurryThisClause = function (fn) {
5652
5535
  // Nashorn bug:
5653
5536
  // https://github.com/zloirock/core-js/issues/1128
5654
5537
  // https://github.com/zloirock/core-js/issues/1130
5655
- if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
5538
+ if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
5656
5539
  };
5657
5540
 
5658
- var uncurryThis$2 = functionUncurryThisClause;
5541
+ var uncurryThis$3 = functionUncurryThisClause;
5659
5542
  var aCallable$1 = aCallable$4;
5660
5543
  var NATIVE_BIND = functionBindNative;
5661
5544
 
5662
- var bind$1 = uncurryThis$2(uncurryThis$2.bind);
5545
+ var bind$1 = uncurryThis$3(uncurryThis$3.bind);
5663
5546
 
5664
5547
  // optional / simple context binding
5665
5548
  var functionBindContext = function (fn, that) {
@@ -5831,7 +5714,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
5831
5714
  return ITERATION_SUPPORT;
5832
5715
  };
5833
5716
 
5834
- var $$3 = _export;
5717
+ var $$4 = _export;
5835
5718
  var from = arrayFrom;
5836
5719
  var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
5837
5720
 
@@ -5842,7 +5725,7 @@ var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
5842
5725
 
5843
5726
  // `Array.from` method
5844
5727
  // https://tc39.es/ecma262/#sec-array.from
5845
- $$3({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
5728
+ $$4({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
5846
5729
  from: from
5847
5730
  });
5848
5731
 
@@ -6338,7 +6221,7 @@ var regexpFlags = function () {
6338
6221
  };
6339
6222
 
6340
6223
  var global$1 = global$b;
6341
- var DESCRIPTORS$1 = descriptors;
6224
+ var DESCRIPTORS$2 = descriptors;
6342
6225
  var defineBuiltInAccessor = defineBuiltInAccessor$1;
6343
6226
  var regExpFlags = regexpFlags;
6344
6227
  var fails$1 = fails$f;
@@ -6347,7 +6230,7 @@ var fails$1 = fails$f;
6347
6230
  var RegExp$1 = global$1.RegExp;
6348
6231
  var RegExpPrototype = RegExp$1.prototype;
6349
6232
 
6350
- var FORCED = DESCRIPTORS$1 && fails$1(function () {
6233
+ var FORCED = DESCRIPTORS$2 && fails$1(function () {
6351
6234
  var INDICES_SUPPORT = true;
6352
6235
  try {
6353
6236
  RegExp$1('.', 'd');
@@ -6393,10 +6276,10 @@ if (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', {
6393
6276
  get: regExpFlags
6394
6277
  });
6395
6278
 
6396
- var SUN$2 = 0;
6279
+ var SUN$1 = 0;
6397
6280
  var TUE$1 = 2;
6398
6281
  var FRI$2 = 5;
6399
- var SAT$3 = 6;
6282
+ var SAT$2 = 6;
6400
6283
  var NISAN$3 = months.NISAN;
6401
6284
  var IYYAR = months.IYYAR;
6402
6285
 
@@ -6418,7 +6301,7 @@ function dateYomHaShoah(year) {
6418
6301
  var nisan27dt = new HDate(27, NISAN$3, year);
6419
6302
  if (nisan27dt.getDay() === FRI$2) {
6420
6303
  nisan27dt = new HDate(26, NISAN$3, year);
6421
- } else if (nisan27dt.getDay() === SUN$2) {
6304
+ } else if (nisan27dt.getDay() === SUN$1) {
6422
6305
  nisan27dt = new HDate(28, NISAN$3, year);
6423
6306
  }
6424
6307
  return nisan27dt;
@@ -6437,9 +6320,9 @@ function dateYomHaZikaron(year) {
6437
6320
  var day;
6438
6321
  var pesach = new HDate(15, NISAN$3, year);
6439
6322
  var pdow = pesach.getDay();
6440
- if (pdow === SUN$2) {
6323
+ if (pdow === SUN$1) {
6441
6324
  day = 2;
6442
- } else if (pdow === SAT$3) {
6325
+ } else if (pdow === SAT$2) {
6443
6326
  day = 3;
6444
6327
  } else if (year < 5764) {
6445
6328
  day = 4;
@@ -6915,6 +6798,31 @@ var HolidayEvent = /*#__PURE__*/function (_Event) {
6915
6798
  return '✡️';
6916
6799
  }
6917
6800
  }
6801
+ /** @return {string[]} */
6802
+ }, {
6803
+ key: "getCategories",
6804
+ value: function getCategories() {
6805
+ var cats = _get(_getPrototypeOf(HolidayEvent.prototype), "getCategories", this).call(this);
6806
+ if (cats[0] !== 'unknown') {
6807
+ return cats;
6808
+ }
6809
+ var desc = this.getDesc();
6810
+ // Don't depend on flags.MINOR_HOLIDAY always being set
6811
+ switch (desc) {
6812
+ case 'Lag BaOmer':
6813
+ case 'Leil Selichot':
6814
+ case 'Pesach Sheni':
6815
+ case 'Erev Purim':
6816
+ case 'Purim Katan':
6817
+ case 'Shushan Purim':
6818
+ case 'Tu B\'Av':
6819
+ case 'Tu BiShvat':
6820
+ case 'Rosh Hashana LaBehemot':
6821
+ return ['holiday', 'minor'];
6822
+ default:
6823
+ return ['holiday', 'major'];
6824
+ }
6825
+ }
6918
6826
  }]);
6919
6827
  return HolidayEvent;
6920
6828
  }(Event);
@@ -7119,13 +7027,13 @@ var YomKippurKatanEvent = /*#__PURE__*/function (_HolidayEvent4) {
7119
7027
  }]);
7120
7028
  return YomKippurKatanEvent;
7121
7029
  }(HolidayEvent);
7122
- var SUN$1 = 0;
7030
+ var SUN = 0;
7123
7031
  // const MON = 1;
7124
7032
  var TUE = 2;
7125
7033
  // const WED = 3;
7126
7034
  var THU = 4;
7127
7035
  var FRI$1 = 5;
7128
- var SAT$2 = 6;
7036
+ var SAT$1 = 6;
7129
7037
  var NISAN$2 = months.NISAN;
7130
7038
  // const IYYAR = months.IYYAR;
7131
7039
  // const SIVAN = months.SIVAN;
@@ -7224,6 +7132,7 @@ var emojiIsraelFlag = {
7224
7132
  };
7225
7133
  var chanukahEmoji = '🕎';
7226
7134
  var yearCache = Object.create(null);
7135
+ var KEYCAP_DIGITS = ['0️⃣', '1️⃣', '2️⃣', '3️⃣', '4️⃣', '5️⃣', '6️⃣', '7️⃣', '8️⃣', '9️⃣'];
7227
7136
 
7228
7137
  /**
7229
7138
  * Lower-level holidays interface, which returns a `Map` of `Event`s indexed by
@@ -7280,7 +7189,7 @@ function getHolidaysForYear_(year) {
7280
7189
  // Variable date holidays
7281
7190
  add(new HolidayEvent(new HDate(3 + (RH.getDay() == THU), TISHREI$1, year), 'Tzom Gedaliah', MINOR_FAST$1));
7282
7191
  // first SAT after RH
7283
- add(new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$2, 7 + RH.abs())), 'Shabbat Shuva', SPECIAL_SHABBAT$1));
7192
+ add(new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, 7 + RH.abs())), 'Shabbat Shuva', SPECIAL_SHABBAT$1));
7284
7193
  var rchTevet = HDate.shortKislev(year) ? new HDate(1, TEVET$1, year) : new HDate(30, KISLEV$1, year);
7285
7194
  add(new HolidayEvent(rchTevet, 'Chag HaBanot', MINOR_HOLIDAY$1));
7286
7195
  // yes, we know Kislev 30-32 are wrong
@@ -7298,14 +7207,14 @@ function getHolidaysForYear_(year) {
7298
7207
  }));
7299
7208
  add(new AsaraBTevetEvent(new HDate(10, TEVET$1, year), 'Asara B\'Tevet', MINOR_FAST$1));
7300
7209
  var pesachAbs = pesach.abs();
7301
- add(new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$2, pesachAbs - 43)), 'Shabbat Shekalim', SPECIAL_SHABBAT$1), new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$2, pesachAbs - 30)), 'Shabbat Zachor', SPECIAL_SHABBAT$1), new HolidayEvent(new HDate(pesachAbs - (pesach.getDay() == TUE ? 33 : 31)), 'Ta\'anit Esther', MINOR_FAST$1));
7302
- add(new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$2, pesachAbs - 14) - 7), 'Shabbat Parah', SPECIAL_SHABBAT$1), new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$2, pesachAbs - 14)), 'Shabbat HaChodesh', SPECIAL_SHABBAT$1), new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$2, pesachAbs - 1)), 'Shabbat HaGadol', SPECIAL_SHABBAT$1), new HolidayEvent(
7210
+ add(new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, pesachAbs - 43)), 'Shabbat Shekalim', SPECIAL_SHABBAT$1), new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, pesachAbs - 30)), 'Shabbat Zachor', SPECIAL_SHABBAT$1), new HolidayEvent(new HDate(pesachAbs - (pesach.getDay() == TUE ? 33 : 31)), 'Ta\'anit Esther', MINOR_FAST$1));
7211
+ add(new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, pesachAbs - 14) - 7), 'Shabbat Parah', SPECIAL_SHABBAT$1), new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, pesachAbs - 14)), 'Shabbat HaChodesh', SPECIAL_SHABBAT$1), new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, pesachAbs - 1)), 'Shabbat HaGadol', SPECIAL_SHABBAT$1), new HolidayEvent(
7303
7212
  // if the fast falls on Shabbat, move to Thursday
7304
- pesach.prev().getDay() == SAT$2 ? pesach.onOrBefore(THU) : new HDate(14, NISAN$2, year), 'Ta\'anit Bechorot', MINOR_FAST$1));
7305
- add(new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$2, new HDate(1, TISHREI$1, year + 1).abs() - 4)), 'Leil Selichot', MINOR_HOLIDAY$1, {
7213
+ pesach.prev().getDay() == SAT$1 ? pesach.onOrBefore(THU) : new HDate(14, NISAN$2, year), 'Ta\'anit Bechorot', MINOR_FAST$1));
7214
+ add(new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, new HDate(1, TISHREI$1, year + 1).abs() - 4)), 'Leil Selichot', MINOR_HOLIDAY$1, {
7306
7215
  emoji: '🕍'
7307
7216
  }));
7308
- if (pesach.getDay() == SUN$1) {
7217
+ if (pesach.getDay() == SUN) {
7309
7218
  add(new HolidayEvent(new HDate(16, months.ADAR_II, year), 'Purim Meshulash', MINOR_HOLIDAY$1));
7310
7219
  }
7311
7220
  if (HDate.isLeapYear(year)) {
@@ -7328,11 +7237,11 @@ function getHolidaysForYear_(year) {
7328
7237
  if (year >= h.firstYear) {
7329
7238
  var _hd = new HDate(h.dd, h.mm, year);
7330
7239
  var dow = _hd.getDay();
7331
- if (h.friSatMovetoThu && (dow === FRI$1 || dow === SAT$2)) {
7240
+ if (h.friSatMovetoThu && (dow === FRI$1 || dow === SAT$1)) {
7332
7241
  _hd = _hd.onOrBefore(THU);
7333
7242
  } else if (h.friPostponeToSun && dow === FRI$1) {
7334
7243
  _hd = new HDate(_hd.abs() + 2);
7335
- } else if (h.satPostponeToSun && dow === SAT$2) {
7244
+ } else if (h.satPostponeToSun && dow === SAT$1) {
7336
7245
  _hd = _hd.next();
7337
7246
  }
7338
7247
  var mask = h.chul ? MODERN_HOLIDAY$1 : MODERN_HOLIDAY$1 | flags.IL_ONLY;
@@ -7345,7 +7254,7 @@ function getHolidaysForYear_(year) {
7345
7254
  });
7346
7255
  var tamuz17 = new HDate(17, TAMUZ, year);
7347
7256
  var tamuz17attrs;
7348
- if (tamuz17.getDay() == SAT$2) {
7257
+ if (tamuz17.getDay() == SAT$1) {
7349
7258
  tamuz17 = new HDate(18, TAMUZ, year);
7350
7259
  tamuz17attrs = {
7351
7260
  observed: true
@@ -7355,7 +7264,7 @@ function getHolidaysForYear_(year) {
7355
7264
  var av9dt = new HDate(9, AV, year);
7356
7265
  var av9title = 'Tish\'a B\'Av';
7357
7266
  var av9attrs;
7358
- if (av9dt.getDay() == SAT$2) {
7267
+ if (av9dt.getDay() == SAT$1) {
7359
7268
  av9dt = av9dt.next();
7360
7269
  av9attrs = {
7361
7270
  observed: true
@@ -7363,7 +7272,7 @@ function getHolidaysForYear_(year) {
7363
7272
  av9title += ' (observed)';
7364
7273
  }
7365
7274
  var av9abs = av9dt.abs();
7366
- add(new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$2, av9abs)), 'Shabbat Chazon', SPECIAL_SHABBAT$1), new HolidayEvent(av9dt.prev(), 'Erev Tish\'a B\'Av', EREV$1 | MAJOR_FAST$1, av9attrs), new HolidayEvent(av9dt, av9title, MAJOR_FAST$1, av9attrs), new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$2, av9abs + 7)), 'Shabbat Nachamu', SPECIAL_SHABBAT$1));
7275
+ add(new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, av9abs)), 'Shabbat Chazon', SPECIAL_SHABBAT$1), new HolidayEvent(av9dt.prev(), 'Erev Tish\'a B\'Av', EREV$1 | MAJOR_FAST$1, av9attrs), new HolidayEvent(av9dt, av9title, MAJOR_FAST$1, av9attrs), new HolidayEvent(new HDate(HDate.dayOnOrBefore(SAT$1, av9abs + 7)), 'Shabbat Nachamu', SPECIAL_SHABBAT$1));
7367
7276
  var monthsInYear = HDate.monthsInYear(year);
7368
7277
  for (var month = 1; month <= monthsInYear; month++) {
7369
7278
  var monthName = HDate.getMonthName(month, year);
@@ -7379,7 +7288,7 @@ function getHolidaysForYear_(year) {
7379
7288
 
7380
7289
  // Don't worry about month overrun; will get "Nisan" for month=14
7381
7290
  var nextMonthName = HDate.getMonthName(month + 1, year);
7382
- add(new MevarchimChodeshEvent(new HDate(29, month, year).onOrBefore(SAT$2), nextMonthName));
7291
+ add(new MevarchimChodeshEvent(new HDate(29, month, year).onOrBefore(SAT$1), nextMonthName));
7383
7292
  }
7384
7293
 
7385
7294
  // Begin: Yom Kippur Katan
@@ -7394,7 +7303,7 @@ function getHolidaysForYear_(year) {
7394
7303
  }
7395
7304
  var _ykk = new HDate(29, _month, year);
7396
7305
  var dow = _ykk.getDay();
7397
- if (dow === FRI$1 || dow === SAT$2) {
7306
+ if (dow === FRI$1 || dow === SAT$1) {
7398
7307
  _ykk = _ykk.onOrBefore(THU);
7399
7308
  }
7400
7309
  var _nextMonthName = HDate.getMonthName(nextMonth, year);
@@ -7444,468 +7353,110 @@ function getBirkatHaChama(year) {
7444
7353
  return 0;
7445
7354
  }
7446
7355
 
7447
- var mishnayot = [{k:"Berakhot",v:[5,8,6,7,5,8,5,8,5]},{k:"Peah",v:[6,8,8,11,8,11,8,9]},{k:"Demai",v:[4,5,6,7,11,12,8]},{k:"Kilayim",v:[9,11,7,9,8,9,8,6,10]},{k:"Sheviit",v:[8,10,10,10,9,6,7,11,9,9]},{k:"Terumot",v:[10,6,9,13,9,6,7,12,7,12,10]},{k:"Maasrot",v:[8,8,10,6,8]},{k:"Maaser Sheni",v:[7,10,13,12,15]},{k:"Challah",v:[9,8,10,11]},{k:"Orlah",v:[9,17,9]},{k:"Bikkurim",v:[11,11,12,5]},{k:"Shabbat",v:[11,7,6,2,4,10,4,7,7,6,6,6,7,4,3,8,8,3,6,5,3,6,5,5]},{k:"Eruvin",v:[10,6,9,11,9,10,11,11,4,15]},{k:"Pesachim",v:[7,8,8,9,10,6,13,8,11,9]},{k:"Shekalim",v:[7,5,4,9,6,6,7,8]},{k:"Yoma",v:[8,7,11,6,7,8,5,9]},{k:"Sukkah",v:[11,9,15,10,8]},{k:"Beitzah",v:[10,10,8,7,7]},{k:"Rosh Hashanah",v:[9,9,8,9]},{k:"Taanit",v:[7,10,9,8]},{k:"Megillah",v:[11,6,6,10]},{k:"Moed Katan",v:[10,5,9]},{k:"Chagigah",v:[8,7,8]},{k:"Yevamot",v:[4,10,10,13,6,6,6,6,6,9,7,6,13,9,10,7]},{k:"Ketubot",v:[10,10,9,12,9,7,10,8,9,6,6,4,11]},{k:"Nedarim",v:[4,5,11,8,6,10,9,7,10,8,12]},{k:"Nazir",v:[7,10,7,7,7,11,4,2,5]},{k:"Sotah",v:[9,6,8,5,5,4,8,7,15]},{k:"Gittin",v:[6,7,8,9,9,7,9,10,10]},{k:"Kiddushin",v:[10,10,13,14]},{k:"Bava Kamma",v:[4,6,11,9,7,6,7,7,12,10]},{k:"Bava Metzia",v:[8,11,12,12,11,8,11,9,13,6]},{k:"Bava Batra",v:[6,14,8,9,11,8,4,8,10,8]},{k:"Sanhedrin",v:[6,5,8,5,5,6,11,7,6,6,6]},{k:"Makkot",v:[10,8,16]},{k:"Shevuot",v:[7,5,11,13,5,7,8,6]},{k:"Eduyot",v:[14,10,12,12,7,3,9,7]},{k:"Avodah Zarah",v:[9,7,10,12,12]},{k:"Avot",v:[18,16,18,22,23,11]},{k:"Horayot",v:[5,7,8]},{k:"Zevachim",v:[4,5,6,6,8,7,6,12,7,8,8,6,8,10]},{k:"Menachot",v:[4,5,7,5,9,7,6,7,9,9,9,5,11]},{k:"Chullin",v:[7,10,7,7,5,7,6,6,8,4,2,5]},{k:"Bekhorot",v:[7,9,4,10,6,12,7,10,8]},{k:"Arakhin",v:[4,6,5,4,6,5,5,7,8]},{k:"Temurah",v:[6,3,5,4,6,5,6]},{k:"Keritot",v:[7,6,10,3,8,9]},{k:"Meilah",v:[4,9,8,6,5,6]},{k:"Tamid",v:[4,5,9,3,6,3,4]},{k:"Middot",v:[9,6,8,7,4]},{k:"Kinnim",v:[4,5,6]},{k:"Kelim",v:[9,8,8,4,11,4,6,11,8,8,9,8,8,8,6,8,17,9,10,7,3,10,5,17,9,9,12,10,8,4]},{k:"Oholot",v:[8,7,7,3,7,7,6,6,16,7,9,8,6,7,10,5,5,10]},{k:"Negaim",v:[6,5,8,11,5,8,5,10,3,10,12,7,12,13]},{k:"Parah",v:[4,5,11,4,9,5,12,11,9,6,9,11]},{k:"Tahorot",v:[9,8,8,13,9,10,9,9,9,8]},{k:"Mikvaot",v:[8,10,4,5,6,11,7,5,7,8]},{k:"Niddah",v:[7,7,7,7,9,14,5,4,11,8]},{k:"Makhshirin",v:[6,11,8,10,11,8]},{k:"Zavim",v:[6,4,3,7,12]},{k:"Tevul Yom",v:[5,8,6,7]},{k:"Yadayim",v:[5,4,5,8]},{k:"Oktzin",v:[6,10,12]}];
7448
-
7449
- var cycleStartDate$1 = new Date(1947, 4, 20);
7450
- var mishnaYomiStart = greg2abs(cycleStartDate$1);
7451
- var numMishnayot = 4192;
7452
- var numDays = numMishnayot / 2;
7453
-
7454
- /**
7455
- * Describes a mishna to be read
7456
- * @typedef {Object} MishnaYomi
7457
- * @property {string} k tractate name in Sephardic transliteration (e.g. "Berakhot", "Moed Katan")
7458
- * @property {string} v verse (e.g. "2:1")
7459
- */
7356
+ /** @private */
7357
+ var cals = Object.create(null);
7460
7358
 
7461
7359
  /**
7462
- * A program of daily learning in which participants study two Mishnahs
7463
- * each day in order to finish the entire Mishnah in ~6 years.
7360
+ * Plug-ins for daily learning calendars such as Daf Yomi, Mishna Yomi, Nach Yomi, etc.
7361
+ *
7362
+ * Learning schedules are provided by the `@hebcal/learning` package.
7464
7363
  */
7465
- var MishnaYomiIndex = /*#__PURE__*/function () {
7466
- /**
7467
- * Initializes a Mishna Yomi instance
7468
- */
7469
- function MishnaYomiIndex() {
7470
- _classCallCheck(this, MishnaYomiIndex);
7471
- var tmp = Array(numMishnayot);
7472
- var i = 0;
7473
- for (var j = 0; j < mishnayot.length; j++) {
7474
- var tractate = mishnayot[j];
7475
- var v = tractate.v;
7476
- for (var chap = 1; chap <= v.length; chap++) {
7477
- var numv = v[chap - 1];
7478
- for (var verse = 1; verse <= numv; verse++) {
7479
- tmp[i++] = {
7480
- k: tractate.k,
7481
- v: "".concat(chap, ":").concat(verse)
7482
- };
7483
- }
7484
- }
7485
- }
7486
- var days = Array(numDays);
7487
- for (var _j = 0; _j < numDays; _j++) {
7488
- var k = _j * 2;
7489
- days[_j] = [tmp[k], tmp[k + 1]];
7490
- }
7491
- /** @type {MishnaYomi[]} */
7492
- this.days = days;
7364
+ var DailyLearning = /*#__PURE__*/function () {
7365
+ function DailyLearning() {
7366
+ _classCallCheck(this, DailyLearning);
7493
7367
  }
7494
-
7495
- /**
7496
- * Looks up a Mishna Yomi
7497
- * @param {Date|HDate|number} date Gregorian date
7498
- * @return {MishnaYomi[]}
7499
- */
7500
- _createClass(MishnaYomiIndex, [{
7501
- key: "lookup",
7502
- value: function lookup(date) {
7503
- var abs = typeof date === 'number' && !isNaN(date) ? date : isDate(date) ? greg2abs(date) : HDate.isHDate(date) ? date.abs() : throwTypeError("Invalid date: ".concat(date));
7504
- if (abs < mishnaYomiStart) {
7505
- var dt = abs2greg(abs);
7506
- var s = dt.toISOString().substring(0, 10);
7507
- throw new RangeError("Date ".concat(s, " too early; Mishna Yomi cycle began on 1947-05-20"));
7368
+ _createClass(DailyLearning, null, [{
7369
+ key: "addCalendar",
7370
+ value:
7371
+ /**
7372
+ * Register a new learning calendar.
7373
+ * @param {string} name
7374
+ * @param {Function} calendar
7375
+ */
7376
+ function addCalendar(name, calendar) {
7377
+ if (typeof calendar !== 'function') {
7378
+ throw new TypeError("Invalid calendar function: ".concat(calendar));
7508
7379
  }
7509
- var dayNum = (abs - mishnaYomiStart) % numDays;
7510
- return this.days[dayNum];
7380
+ cals[name] = calendar;
7511
7381
  }
7512
- }]);
7513
- return MishnaYomiIndex;
7514
- }();
7515
7382
 
7516
- /**
7517
- * @private
7518
- * @param {MishnaYomi[]} mishnaYomi
7519
- * @param {string} locale
7520
- * @return {string}
7521
- */
7522
- function formatMyomi(mishnaYomi, locale) {
7523
- var k1 = mishnaYomi[0].k;
7524
- var cv1 = mishnaYomi[0].v;
7525
- var mishna1 = Locale.gettext(k1, locale) + ' ' + cv1;
7526
- var k2 = mishnaYomi[1].k;
7527
- var cv2 = mishnaYomi[1].v;
7528
- if (k1 !== k2) {
7529
- return mishna1 + '-' + Locale.gettext(k2, locale) + ' ' + cv2;
7530
- }
7531
- var p1 = cv1.split(':');
7532
- var p2 = cv2.split(':');
7533
- if (p1[0] === p2[0]) {
7534
- return mishna1 + '-' + p2[1];
7535
- }
7536
- return mishna1 + '-' + cv2;
7537
- }
7538
-
7539
- /**
7540
- * Event wrapper around a Mishna Yomi instance
7541
- */
7542
- var MishnaYomiEvent = /*#__PURE__*/function (_Event) {
7543
- _inherits(MishnaYomiEvent, _Event);
7544
- var _super = _createSuper(MishnaYomiEvent);
7545
- /**
7546
- * @param {HDate} date
7547
- * @param {MishnaYomi[]} mishnaYomi
7548
- */
7549
- function MishnaYomiEvent(date, mishnaYomi) {
7550
- var _this;
7551
- _classCallCheck(this, MishnaYomiEvent);
7552
- _this = _super.call(this, date, formatMyomi(mishnaYomi, null), flags.MISHNA_YOMI);
7553
- _this.mishnaYomi = mishnaYomi;
7554
- return _this;
7555
- }
7556
- /**
7557
- * Returns Mishna Yomi name (e.g. "Bava Metzia 10:5-6" or "Berakhot 9:5-Peah 1:1").
7558
- * @param {string} [locale] Optional locale name (defaults to active locale).
7559
- * @return {string}
7560
- */
7561
- _createClass(MishnaYomiEvent, [{
7562
- key: "render",
7563
- value: function render(locale) {
7564
- return formatMyomi(this.mishnaYomi, locale);
7565
- }
7566
7383
  /**
7567
- * Returns a link to sefaria.org
7568
- * @return {string}
7384
+ * Returns an event from daily calendar for a given date. Returns `null` if there
7385
+ * is no learning from this calendar on this date.
7386
+ * @param {string} name
7387
+ * @param {HDate} hd
7388
+ * @return {Event}
7569
7389
  */
7570
7390
  }, {
7571
- key: "url",
7572
- value: function url() {
7573
- var mishnaYomi = this.mishnaYomi;
7574
- var k1 = mishnaYomi[0].k;
7575
- var mishna = k1 === 'Avot' ? 'Pirkei' : 'Mishnah';
7576
- var name = k1.replace(/ /g, '_');
7577
- var prefix = "https://www.sefaria.org/".concat(mishna, "_").concat(name);
7578
- var cv1 = mishnaYomi[0].v;
7579
- if (k1 !== mishnaYomi[1].k) {
7580
- var _verse = cv1.replace(':', '.');
7581
- return "".concat(prefix, ".").concat(_verse, "?lang=bi");
7391
+ key: "lookup",
7392
+ value: function lookup(name, hd) {
7393
+ var lookup = cals[name];
7394
+ if (typeof lookup === 'function') {
7395
+ return lookup(hd);
7582
7396
  }
7583
- var cv2 = mishnaYomi[1].v;
7584
- var p1 = cv1.split(':');
7585
- var p2 = cv2.split(':');
7586
- var verse1 = p1.join('.');
7587
- var verse2 = p1[0] === p2[0] ? p2[1] : p2.join('.');
7588
- return "".concat(prefix, ".").concat(verse1, "-").concat(verse2, "?lang=bi");
7397
+ return null;
7589
7398
  }
7590
7399
  }]);
7591
- return MishnaYomiEvent;
7592
- }(Event);
7400
+ return DailyLearning;
7401
+ }();
7593
7402
 
7594
- var nach = [['Joshua', 24], ['Judges', 21], ['I Samuel', 31], ['II Samuel', 24], ['I Kings', 22], ['II Kings', 25], ['Isaiah', 66], ['Jeremiah', 52], ['Ezekiel', 48], ['Hosea', 14], ['Joel', 4], ['Amos', 9], ['Obadiah', 1], ['Jonah', 4], ['Micah', 7], ['Nachum', 3], ['Habakkuk', 3], ['Zephaniah', 3], ['Haggai', 2], ['Zechariah', 14], ['Malachi', 3], ['Psalms', 150], ['Proverbs', 31], ['Job', 42], ['Song of Songs', 8], ['Ruth', 4], ['Lamentations', 5], ['Ecclesiastes', 12], ['Esther', 10], ['Daniel', 12], ['Ezra', 10], ['Nehemiah', 13], ['I Chronicles', 29], ['II Chronicles', 36]];
7595
- var cycleStartDate = new Date(2007, 10, 1);
7596
- var nachYomiStart = greg2abs(cycleStartDate);
7597
- var numChapters = 742;
7403
+ var internalObjectKeys = objectKeysInternal;
7404
+ var enumBugKeys$1 = enumBugKeys$3;
7598
7405
 
7599
- /**
7600
- * Describes a chapter to be read
7601
- * @typedef {Object} NachYomi
7602
- * @property {string} k book name in Sephardic transliteration (e.g. "Berakhot", "Moed Katan")
7603
- * @property {number} v chapter (e.g. "2:1")
7604
- */
7406
+ // `Object.keys` method
7407
+ // https://tc39.es/ecma262/#sec-object.keys
7408
+ // eslint-disable-next-line es/no-object-keys -- safe
7409
+ var objectKeys$2 = Object.keys || function keys(O) {
7410
+ return internalObjectKeys(O, enumBugKeys$1);
7411
+ };
7605
7412
 
7606
- /**
7607
- * A daily regimen of learning the books of Nevi'im (Prophets)
7608
- * and Ketuvim (Writings).
7609
- */
7610
- var NachYomiIndex = /*#__PURE__*/function () {
7611
- /**
7612
- * Initializes a Nach Yomi instance
7613
- */
7614
- function NachYomiIndex() {
7615
- _classCallCheck(this, NachYomiIndex);
7616
- var days = Array(numChapters);
7617
- var i = 0;
7618
- for (var j = 0; j < nach.length; j++) {
7619
- var book = nach[j][0];
7620
- var chapters = nach[j][1];
7621
- for (var chap = 1; chap <= chapters; chap++) {
7622
- days[i++] = {
7623
- k: book,
7624
- v: chap
7625
- };
7626
- }
7627
- }
7628
- this.days = days;
7629
- }
7413
+ var DESCRIPTORS$1 = descriptors;
7414
+ var uncurryThis$2 = functionUncurryThis;
7415
+ var objectKeys$1 = objectKeys$2;
7416
+ var toIndexedObject$1 = toIndexedObject$6;
7417
+ var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
7630
7418
 
7631
- /**
7632
- * Looks up a Mishna Yomi
7633
- * @param {Date|HDate|number} date Gregorian date
7634
- * @return {NachYomi}
7635
- */
7636
- _createClass(NachYomiIndex, [{
7637
- key: "lookup",
7638
- value: function lookup(date) {
7639
- var abs = typeof date === 'number' && !isNaN(date) ? date : isDate(date) ? greg2abs(date) : HDate.isHDate(date) ? date.abs() : throwTypeError("Invalid date: ".concat(date));
7640
- if (abs < nachYomiStart) {
7641
- var dt = abs2greg(abs);
7642
- var s = dt.toISOString().substring(0, 10);
7643
- throw new RangeError("Date ".concat(s, " too early; Nach Yomi cycle began on 2007-11-01"));
7644
- }
7645
- var dayNum = (abs - nachYomiStart) % numChapters;
7646
- return this.days[dayNum];
7647
- }
7648
- }]);
7649
- return NachYomiIndex;
7650
- }();
7419
+ var propertyIsEnumerable = uncurryThis$2($propertyIsEnumerable);
7420
+ var push = uncurryThis$2([].push);
7651
7421
 
7652
- /**
7653
- * Event wrapper around a Nach Yomi instance
7654
- */
7655
- var NachYomiEvent = /*#__PURE__*/function (_Event) {
7656
- _inherits(NachYomiEvent, _Event);
7657
- var _super = _createSuper(NachYomiEvent);
7658
- /**
7659
- * @param {HDate} date
7660
- * @param {NachYomi} nachYomi
7661
- */
7662
- function NachYomiEvent(date, nachYomi) {
7663
- var _this;
7664
- _classCallCheck(this, NachYomiEvent);
7665
- _this = _super.call(this, date, "".concat(nachYomi.k, " ").concat(nachYomi.v), flags.NACH_YOMI);
7666
- _this.nachYomi = nachYomi;
7667
- return _this;
7668
- }
7669
- /**
7670
- * Returns name of tractate and page (e.g. "Beitzah 21").
7671
- * @param {string} [locale] Optional locale name (defaults to active locale).
7672
- * @return {string}
7673
- */
7674
- _createClass(NachYomiEvent, [{
7675
- key: "render",
7676
- value: function render(locale) {
7677
- locale = locale || Locale.getLocaleName();
7678
- if (typeof locale === 'string') {
7679
- locale = locale.toLowerCase();
7680
- }
7681
- var name = Locale.gettext(this.nachYomi.k, locale);
7682
- if (locale === 'he' || locale === 'he-x-nonikud') {
7683
- return name + ' ' + gematriya(this.nachYomi.v);
7422
+ // `Object.{ entries, values }` methods implementation
7423
+ var createMethod = function (TO_ENTRIES) {
7424
+ return function (it) {
7425
+ var O = toIndexedObject$1(it);
7426
+ var keys = objectKeys$1(O);
7427
+ var length = keys.length;
7428
+ var i = 0;
7429
+ var result = [];
7430
+ var key;
7431
+ while (length > i) {
7432
+ key = keys[i++];
7433
+ if (!DESCRIPTORS$1 || propertyIsEnumerable(O, key)) {
7434
+ push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
7684
7435
  }
7685
- return name + ' ' + this.nachYomi.v;
7686
- }
7687
- /**
7688
- * Returns a link to sefaria.org
7689
- * @return {string}
7690
- */
7691
- }, {
7692
- key: "url",
7693
- value: function url() {
7694
- var name = this.nachYomi.k.replace(/ /g, '_');
7695
- var chapter = this.nachYomi.v;
7696
- return "https://www.sefaria.org/".concat(name, ".").concat(chapter, "?lang=bi");
7697
7436
  }
7698
- }]);
7699
- return NachYomiEvent;
7700
- }(Event);
7701
-
7702
- var Berakhot=["1:1:1-2","1:1:7-11","1:1:12-15","1:1:16-19","1:1:23-27","1:1:29-31","1:1:36-2:2","1:2:8-9","1:4:3-5:3","1:5:9-14","1:5:18-6:3","2:1:1-4","2:1:14-19","2:3:4-7","2:3:10-14","2:4:1-3","2:4:8-12","2:5:1-8","2:6:3-7:2","2:8:2-7","2:9:1-4","3:1:4-7","3:1:12-18","3:1:23-2:3","3:2:5-3:8","3:3:11-4:5","3:4:15-5:6","3:5:13-6:1","4:1:1-2","4:1:10-16","4:1:21-25","4:1:28-31","4:1:33-3:2","4:3:11-4:2","4:4:9-5:5","4:6:3-7","5:1:3-11","5:1:18-2:3","5:2:6-10","5:3:2-7","6:1:1-2","6:1:4-6","6:1:8-9","6:1:11-15","6:1:17-23","6:2:1-4","6:4:2-4","6:5:3-5","6:6:3-4","6:6:6-8:2","7:1:1-3","7:1:5-6","7:1:7-2:2","7:2:7-3:1","7:3:4-4:3","7:5:5-11","8:1:6-7","8:2:2-6","8:2:12-3:3","8:4:1-5:6","8:6:4-11","9:1:1-4","9:1:13-22","9:1:33-2:6","9:2:12-20","9:3:3-7","9:5:1-7","9:5:16-22"];var Peah=["1:1:1-3","1:1:6-11","1:1:15-22","1:1:31-39","1:1:47-56","1:3:1-3","1:3:5-4:1","1:4:3-7","1:5:1-2",null,"2:1:4-9","2:1:11-3:2","2:4:3-5:1","3:1:1-7","3:1:10-2:4","3:4:3-5:4","3:7:1-3","3:7:7-13","3:7:18","4:1:1-3","4:2:1-5","4:2:7-5:3","4:6:6-9","4:7:1-5","5:1:3-2:2","5:2:5-7","5:3:5-5:3","6:1:1-7","6:2:1-3:1","6:3:4-5:3","6:6:7-8:4","7:2:1-6","7:3:5-4:2","7:5:3-11","8:1:1-2:1","8:3:2-5:4","8:7:1-8:5"];var Demai=["1:1:1-5","1:1:10-2:1","1:2:4-5","1:3:6-16","1:3:21-4:1","1:4:7-8","2:1:1-3","2:1:6-12","2:1:19-2:4","2:3:4-4:2","2:4:4-5:4","3:1:5-7","3:2:1-4","3:3:5-4:3","3:4:5-7","3:4:9-5:1","4:1:4-8","4:2:2-3:4","4:3:8-5:4","5:1:2-2:1","5:2:5-8","5:3:3-5:1","5:6:2-8:4","5:8:8-11","6:1:1-6","6:1:9-2:5","6:2:9-3:1","6:5:3-6","6:8:1-7","7:1:4-2:4","7:4:2-4","7:4:5-6:1","7:6:6-7:1","7:8:1-3"];var Kilayim=["1:1:1-4","1:2:1-4:3","1:6:3-7:3","1:7:6-9:2","1:9:4-5","2:1:1-5","2:1:9-11","2:3:2-4","2:3:4-4:3","2:5:3-6:2","2:6:5-7:1","2:8:2-7","3:1:1-2","3:1:2-3","3:1:6-2:3","3:3:1-4:1","3:4:3-5:1","3:6:1-6","4:1:2-5","4:1:7-8","4:2:4-9","4:3:2-5:1","4:6:3-5","5:1:4-5","5:1:5-2:2","5:3:1-4:1","5:5:2-6:3","6:1:1-3","6:1:4-2:2","6:2:5-3:4","6:4:4-9","7:1:3-2:3","7:2:6-3:2","7:3:4-4:2","7:6:2-5","8:1:3-4","8:1:6-8","8:2:1-3:2","8:3:6-4:5","9:1:2-7","9:1:12-2:5","9:3:3-8","9:3:13-4:5","9:5:2-6:3"];var Sheviit=["1:1:1-2:2","1:2:4-3:6","2:1:1-2","2:2:2-3:2","2:4:6-5:3","2:5:8-7:6","3:1:3-2:3","3:3:4-4:5","3:6:2-7:4","4:1:6-2:4","4:2:10-4:4","4:6:3-7:1","5:1:1-4","5:2:3-9","5:3:3-4:3","6:1:4-10","6:1:17-2:4","6:4:1-7","7:1:9-15","7:2:3-5","7:2:5-7","8:1:4-2:3","8:4:3-5:3","8:7:1-8:4","9:1:5-12","9:2:9-5:1","9:6:1-5","10:1:5-9","10:1:16-2:1","10:3:2-10","10:4:6"];var Terumot=["1:1:1-4","1:1:8-12","1:1:15-16","1:1:19-21","1:1:23-2:3","1:3:1-4:3","1:5:1-3","1:5:5-9","2:1:3-9","2:1:12-13","2:1:15-17","2:1:19-21","2:2:2-4","2:3:2-6","3:1:4-2:2","3:2:3-8","3:3:5-11","4:1:1-2","4:1:4-2:3","4:3:3-7","4:4:3-6","4:5:2-7:3","4:7:6-10","4:8:1-4","5:1:1-2","5:1:4-8","5:1:10-12","5:1:14-2:3","5:2:3-4","5:2:6-3:2","6:1:1-5","6:1:10","6:2:2","6:2:5-3:3","7:1:3-7","7:1:10-12","7:2:2-6","7:3:4-6","8:1:2","8:1:3","8:1:6-9","8:2:2-3:6","8:3:15-21","8:3:29-36","8:4:3-4","8:4:6-7","8:4:11-15","9:1:11-14","9:2:1-3","9:2:7-3:4","10:1:6-2:2","10:2:6-4:2","10:5:2-6:1","10:6:4-12","11:1:6-2:4","11:2:7-3:3","11:4:5-9","11:5:2-5","11:5:12-13"];var Maasrot=["1:1:1-3","1:1:5-9","1:2:5-13","1:3:4-4:2","1:4:6-7","1:4:10-5:3","2:1:1-4","2:1:6-8","2:1:9-2:2","2:3:2-4","2:3:8-4:5","2:4:10-14","3:1:3-4","3:1:6-10","3:1:12-2:1","3:2:4-3:2","3:4:1-7","3:4:10-14","4:1:5-2:3","4:3:1-4:4","5:1:1-3","5:1:5-7","5:2:1-5","5:2:6-3:1","5:3:4","5:3:8-11"];var Challah=["1:1:1-3","1:1:9-13","1:1:16-20","1:1:21-25","1:1:27-2:2","1:3:4-7","1:3:12-16","1:4:2-5:1","1:5:6-6:1","2:1:1-3","2:1:5-7","2:1:8-12","2:2:1-3:2","2:3:4-7","3:1:2-5","3:1:8","3:2:2-4:2","3:4:6-7","3:5:2-3","3:5:4-5","3:5:8-9","3:5:11-13","4:1:4-2:2","4:2:5-3:2","4:3:4-4:1","4:4:5-6","4:4:9-15","4:5:1-7"];var Orlah=["1:1:1-6","1:1:10-14","1:1:18-2:2","1:2:7-9","1:3:3-6","1:3:9-13","1:4:1-6","1:5:2-9","2:1:4-6","2:1:10-14","2:1:19-21","2:2:2","2:3:5-4:2","2:4:5-5:4","2:6:2-7:4","2:9:1-4","3:1:6-12","3:1:16-2:3","3:3:1-5:2","3:6:4-7:7"];var Bikkurim=["1:1:1-4","1:2:2-3","1:3:6-4:3","1:5:5-8","1:6:4-7:1","1:8:1-9:3","2:1:9-15","2:2:2-8","2:2:10-3:2","2:4:2-6:2","3:1:4-3:8","3:3:20-4:10","3:6:1-4"];var Shabbat=["1:1:1-2","1:1:3-7","1:1:9-10","1:1:14-17","1:1:20-23","1:1:26-2:2","1:2:6-11","1:3:3-7","1:3:11-4:4","1:4:6-9","1:4:15-5:1","1:5:4-7:3","1:8:3-10:2","1:11:2-8","2:1:9-13","2:1:17-2:1","2:3:3-6","2:5:1-6","2:5:8-6:1","2:6:9-7:3","3:1:1-8","3:1:10-13","3:3:2-6","3:3:8-14","3:4:4-6:2","3:7:2-6","3:7:9-13","4:1:1-2","4:1:3-7","4:2:4-9","5:1:1-7","5:2:5-4:2","6:1:1-2","6:1:7-10","6:2:2-8","6:2:11-3:2","6:4:4-5:3","6:6:2-8:2","6:9:6-14","7:1:1-3","7:1:4-6","7:1:7-9","7:1:12-15","7:2:1-6","7:2:9-12","7:2:14-16","7:2:17-19","7:2:20-22","7:2:27-32","7:2:35-37","7:2:41-45","7:2:49-54","7:2:59-4:2","8:1:1-5","8:1:9-2:3","8:3:5-6:1","9:1:1-2","9:1:4","9:2:3-3:2","9:3:4-4:2","9:6:2-7:7","10:2:1-3","10:4:2-5:2","10:5:4-6:2","11:1:3-7","11:2:3-3:2","11:5:2-6","12:1:1-4","12:1:7-3:2","12:3:5-4:3","13:1:1-2","13:1:4-3:3","13:5:1-3","14:1:1-2","14:2:3-3:5","14:4:2-6","15:1:1-2","15:2:3-3:3","16:1:2-4","16:1:9-3:3","16:5:1-7:2","17:1:1-6","17:2:4-5:1","18:1:1-5","18:1:6-2:1","19:1:1-3","19:1:8-2:1","19:3:1-4:2","19:4:2-5:2","19:5:2-6:3","20:1:4-3:2","23:1:1"];var Eruvin=["1:1:1-2","1:1:2-4","1:1:7-9","1:1:12-13","1:1:14-18","1:1:22-26","1:2:3-3:4","1:4:4-5:4","1:6:3-6","1:7:4-8:3","1:9:3-5","1:10:2-3","1:10:5-6","2:1:3-4","2:1:6-8","2:2:2-4:2","2:5:2-6:1","3:1:1-2","3:1:5-7","3:1:10-2:3","3:3:1-2","3:3:4-4:1","3:4:4-5","3:5:2-4","3:7:1-3","3:8:3-9:3","4:1:2-4","4:1:7-3:3","4:5:3-7:1","4:9:2-10:2","5:1:4-5","5:1:10-13","5:1:15-17","5:2:1-3","5:3:3-4:2","5:5:2-7:1","5:7:4-8:2","6:1:1-2:2","6:2:5-3:2","6:4:1-4","6:5:2-6:3","6:7:2-3","6:8:2-6","6:8:8-10:1","7:1:1-3","7:1:5-2:1","7:2:4-3:1","7:5:1-6:1","7:6:3-7:2","7:10:1-4","8:1:2-2:3","8:3:3-7","8:4:3-6:4","8:8:1-3","8:8:6-9:2","9:1:1-3","9:1:8-3:2","9:4:4-5:3","10:1:3-6","10:2:1-3:2","10:5:1-6:2","10:7:1-8:4","10:9:2-10:3","10:12:2-13:3","10:14:2-5"];var Pesachim=["1:1:1-4","1:1:9-12","1:1:17-2:2","1:3:4-4:4","1:4:6-5:2","1:5:5-6:2","1:7:2-8:2","1:8:3-6","1:8:7-9","1:8:12-13","2:1:4-7","2:1:11-16","2:2:2-9","2:2:12-13","2:2:16-3:1","2:3:4-6","2:4:4-9","2:4:10-5:4","2:7:3-6","3:1:11-12","3:2:3-3:2","3:3:5-9","3:4:3-6:3","3:7:4-8:3","4:1:1-4","4:1:10-13","4:3:2-5","4:4:1-4","4:8:1-9:1","4:9:5-9","5:1:2-6","5:2:1-6","5:2:8-10","5:3:1-3","5:3:7-4:1","5:4:5-9","5:4:12-6:1","5:7:2-8:3","6:1:1-4","6:1:8-13","6:1:15-19","6:2:2-3:3","6:4:4-5:2","6:5:4-5","6:5:5-6:2","7:1:1-5","7:1:7-2:3","7:2:8-4:3","7:5:4-6","7:6:2","7:6:5-7:4","7:7:5-8","7:8:2-9:3","7:10:1-2","7:11:2-5","7:12:2-13:2","7:13:4-7","8:1:2-5","8:1:7-10","8:3:2-3","8:4:3-5:2","8:6:4-8:3","8:8:6-9","9:1:4-2:1","9:3:2-4:3","9:6:1-6","9:7:1-9:1","10:1:1-2","10:1:7-14","10:3:1-4:1","10:5:4-7:1"];var Beitzah=["1:1:1-3","1:1:5-7","1:1:9-11","1:3:2-3","1:3:5-4:2","1:5:1-4","1:6:3-8:1","1:9:3-10:3","1:11:2-12:4","2:1:3-7","2:3:2-4:5","2:6:1-8:1","3:1:1-2","3:3:1-4:2","3:5:1-6:3","4:1:1-2","4:1:6-3:1","4:3:10-4:5","5:1:1-6","5:2:2-7","5:2:12-16","5:4:3-7:2"];var Yoma=["1:1:1-4","1:1:5-8","1:1:11-13","1:1:13-16","1:1:20-25","1:2:2-5","1:4:1-5:5","2:1:1-3","2:1:5-8","2:1:10-16","2:2:2-3","2:2:4-8","2:4:1-4","3:2:1-3:1","3:3:4-4:3","3:5:3-6:2","3:6:4-6","3:7:1-5","3:8:3-9","4:1:1-4","4:1:7-9","4:2:1-3:4","4:4:9-5:5","4:6:3-6","5:1:3-5","5:1:7-9","5:2:2-4:1","5:4:5-8","5:5:1-2","5:6:3-7","5:6:9-7:2","6:1:1-7","6:1:13-3:2","6:4:1-5:2","6:6:3-5","6:6:7-7:1","7:1:4-2:3","7:3:2-6","8:1:3-9","8:3:2-11","8:3:15-5:2","8:6:3-7:4"];var Sukkah=["1:1:1-2","1:1:4-5","1:1:7-10","1:1:14-2:1","1:3:2-4:3","1:5:4-7:2","1:8:2-10:2","2:1:1-2","2:2:2-4:2","2:4:5-5:6","2:7:2-8:3","3:1:1-4","3:1:8-3:2","3:4:2-3","3:6:2-7:2","3:9:2-10:4","3:11:2-12:1","4:1:2-2:2","4:3:4-4:2","4:5:4-6:2","4:6:5-6","5:1:1-2","5:1:3-2:2","5:3:4-5:1","5:6:2-7:1","5:8:1-6"];var Taanit=["1:1:1-2","1:1:5-9","1:1:13-17","1:2:4-3:3","1:3:8-4:6","1:5:1-6:4","1:6:9-8:2","2:1:2-8","2:1:13-2:3","2:2:11-3:2","2:6:2-10:1","2:11:4-12:3","2:13:2-14:2","3:1:3-3:1","3:4:3-5:2","3:7:1-9:3","3:10:3-11:4","4:1:2-6","4:1:10-15","4:2:3-8","4:2:14-3:2","4:3:4-4:2","4:5:2-6","4:5:9-13","4:5:16-22","4:6:4-7:2"];var Shekalim=["1:1:1-4","1:1:6-8","1:1:14-2:3","1:3:1-4","1:4:1-4","1:4:5-7","1:4:7","2:1:3-2:1","2:2:4-3:2","2:4:1-3","2:5:3-6","3:1:3-4","3:2:2-6","3:2:10-3:4","4:1:1-3","4:2:1-3","4:2:6-3:1","4:3:3-4:1","4:4:2-5","4:4:6-10","5:1:1-6","5:1:12-21","5:3:1-4:1","6:1:1-5","6:1:9-14","6:2:3-7","6:3:3-4:2","6:4:5-7","7:1:3-2:6","7:3:1-3","7:3:8-10","8:1:2-2:1","8:3:2-4:4"];var Megillah=["1:1:1-2","1:1:4","1:1:8-10","1:3:2-3","1:4:2-6","1:4:9-12","1:5:3-7","1:6:3-5","1:7:3-8:3","1:8:4-9:4","1:9:6-9","1:9:10-12","1:9:17-10:1","1:10:4-8","1:11:3-5","1:11:6-7","1:12:3-4","2:1:1-3","2:2:1-6","2:3:2-4:4","2:5:2-6:1","2:7:2-5","3:1:3-5","3:1:10-2:5","3:3:1-4:3","3:5:3-7:1","3:7:3-6","4:1:4-8","4:1:11-13","4:2:2-4:1","4:4:6-5:2","4:5:6-7:2","4:10:3-11:2","4:12:3-6"];var Chagigah=["1:1:1-3","1:1:8-9","1:1:9-18","1:1:20-2:3","1:2:4-4:2","1:6:2-7:3","1:8:4-10","2:1:1-2","2:1:6-9","2:1:11-15","2:2:4-6","2:3:3-4:3","2:5:2-5","2:6:3-7:3","3:1:1-3","3:1:4-7","3:2:4-5","3:2:7","3:2:10-3:3","3:4:1-3","3:5:1-7:1","3:8:2-4"];var Yevamot=["1:1:1-6","1:1:7-10","1:1:14-17","1:1:18-20","1:1:21-24","1:2:2-5","1:2:10-5:2","1:6:2-5","1:6:8-9","2:1:6-2:3","2:2:4-3:1","2:4:2-7","2:4:10-6:5","2:8:3-10:3","2:11:2-12:2","3:1:3-4","3:1:5-6","3:1:8-10","3:2:1-3:2","3:3:4-4:3","3:8:2-9:4","4:1:1-2","4:1:4-6","4:2:3-4","4:2:7-4:2","4:7:3-8:3","4:11:1-4","4:11:6-8","4:12:3-15:3","5:1:1-5","5:1:7-10","5:2:3-4:1","5:4:3-6:1","5:8:1-2","6:1:3-7","6:3:1-2","6:4:5-5:2","6:6:3-6","7:1:3-4","7:1:8-3:2","7:3:3-5","7:4:2-5:4","8:1:1-2","8:1:6-8","8:1:12-15","8:1:18-2:2","8:2:4-6","8:2:9-12","8:3:5-8","8:4:1-6:2","9:1:1-2:2","9:4:4-5:1","10:1:1-2","10:1:5-11","10:1:12-2:2","10:3:2-4","10:5:3-6:4","10:6:7-7:3","10:7:6-8","11:1:1-2","11:1:5-7","11:1:11-2:2","11:2:6-3:1","11:5:5-6:3","11:7:3-8","12:1:8-14","12:1:17-2:4","12:2:6-4:2","12:6:1-6","13:1:2-6","13:1:13-2:6","13:2:8-9","13:6:1-4","13:7:3-8:2","13:14:1-3","14:1:4-2:3","15:1:1-4","15:2:2-3:7","15:3:9-4:4","15:5:2-4","15:8:2-9:3","16:1:2-2:3","16:3:5-4:2","16:5:5-6:4","16:9:2"];var Ketubot=["1:1:1-4","1:1:6-9","1:1:14-17","1:2:5-3:1","1:3:5-4:5","1:5:3-6:3","1:8:2-9:3","1:10:3-4","2:1:1-4","2:2:1-4","2:2:4-3:3","2:4:5-6","2:5:4-7:2","2:7:4-9:4","2:10:3-8","3:1:4-7","3:1:12-13","3:1:16-18","3:3:3-5:1","3:5:4-6:2","3:6:3-7:2","3:8:1-9:3","4:1:1-4","4:1:6-2:1","4:2:3-3:2","4:4:3-7","4:4:8-9","4:4:12-7:1","4:8:4-12","4:9:1-11:3","4:12:2-14:3","5:1:3-4","5:1:6-2:2","5:3:1-4:1","5:5:2-3","5:5:4-6:3","5:6:5-7:5","5:8:3-10:1","6:1:2-3","6:3:2-4:2","6:5:2-6:3","6:7:1-4","7:1:1-3","7:2:1-5:1","7:6:6-7","7:7:3-5","7:8:2-9:3","8:2:2-4:2","8:6:2-9:1","8:10:3","9:1:1-2","9:1:5-7","9:1:12","9:3:1-4:2","9:5:3-6:2","9:7:6-8:1","9:9:1-10:1","10:1:1-6","10:2:3-4:1","10:4:4-5:2","11:1:1-5","11:2:4-3:2","11:4:2-6:2","11:7:1-8","12:2:2-3:3","12:3:8-10","12:3:14-5:2","13:1:2-5","13:2:3-3:1","13:3:4-4:3","13:7:1-8:2","13:10:2-11:3"];var Sotah=["1:1:1-6","1:1:9-10","1:2:1-5","1:2:7-10","1:3:2-4:3","1:5:1-6:1","1:7:4-8:5","1:8:11-10:4","2:1:2-4","2:1:9-2:5","2:2:9-4:1","2:5:1-5","2:5:6-6:1","3:1:4-2:1","3:3:2-4:1","3:4:6-11","3:5:3-6:5","3:6:6-8:2","4:1:3-2:2","4:4:1-5:3","5:1:5","5:2:3-5","5:2:6-8","5:2:11-3:2","5:4:3-5:6","6:1:1-2","6:2:4-3:1","6:3:2-4:4","7:1:1-5","7:2:2-3:2","7:4:4-7","7:4:9-5:3","7:5:6-6:3","8:1:1-2","8:2:2-3:3","8:3:6-9","8:3:12-4:3","8:5:5-8:1","8:9:2-10:1","9:1:2-6","9:2:1-7","9:4:2-5:4","9:5:7-6:3","9:8:1-11:2","9:11:8-13:2","9:14:1-15:6","9:16:1-4"];var Nedarim=["1:1:1-3","1:1:7-10","1:1:14-2:2","1:3:1-9","2:1:1-2","2:2:2-3:2","2:4:2-4","3:1:2-4","3:2:1-5","3:2:9-3:2","3:4:3-5:3","3:7:1-9:1","4:1:1-3","4:2:4-3:3","4:5:2-7:2","4:10:2-3","5:1:1-2","5:1:5-3:3","5:5:1-6:1","6:1:2-2:2","6:4:2-3","6:8:1-6","6:8:10-14","7:1:1-5","7:3:2-6:2","8:1:1-5","8:2:2-4:2","8:6:1-7:3","9:1:2-6","9:2:3-4:2","9:5:2-8:1","10:1:3-4","10:2:3-4:2","10:6:1-7:2","10:8:4-9","11:1:2-4","11:1:8-2:3","11:3:5-4:3","11:7:1-11:1","11:12:6"];var Nazir=["1:1:1-3","1:1:7-9","1:2:5-7","1:2:9-3:2","2:1:1-2","2:1:4-2:2","2:4:1-5:1","2:5:3-7:2","2:9:1-2","2:10:2-3","3:1:1-3","3:2:2","3:4:1-2","3:5:3-5","3:5:7-6:1","4:1:1-2","4:2:2-3:5","4:4:3-7","4:5:1-6:1","5:1:1-3","5:1:6-7","5:1:9-12","5:2:3-3:3","6:1:1-2","6:1:4-6","6:1:7-9","6:1:11-14","6:2:5-3:2","6:3:5-4:3","6:6:2-7:2","6:9:1-5","6:9:9-11:2","7:1:2-6","7:1:11-20","7:2:1-4","7:2:7-11","7:3:4-6","7:4:2-3","8:1:2-3","8:1:5-9","8:2:2-8","9:1:1-3","9:1:4-6","9:2:3-6","9:2:10-3:2","9:3:7-4:2","9:5:2-6:1"];var Gittin=["1:1:1-3","1:1:3-4","1:1:5-6","1:1:7-8","1:2:2-5","1:3:2-4:1","1:4:3-5","1:5:2-4","2:1:1-2","2:1:4-6","2:2:2-3:1","2:3:3-7","2:3:8-4:3","2:6:1-7:3","3:1:3-6","3:2:2-3:1","3:4:1-5:3","3:6:3-7:2","3:8:1-4","4:1:2-2:3","4:2:5-3:1","4:3:4-4:2","4:4:5-6","4:4:7-6:2","4:7:1-8:3","5:1:1-5","5:1:7-11","5:3:3-6","5:4:1-4","5:5:2-4","5:6:4-7:2","5:7:5-9:2","5:9:6-10:3","6:1:1-5","6:1:6-9","6:2:3-4","6:4:2-5:4","6:6:2-7:2","7:1:3-7","7:1:10-3:2","7:3:4-6","7:4:2-5","7:5:1-6:3","8:1:1-3","8:1:3-2:1","8:3:3-9","8:4:3-6:2","8:8:2-10:2","8:10:4-6","9:1:4-6","9:3:2-5","9:5:2-6:2","9:7:2-4","9:8:5-11:1"];var Kiddushin=["1:1:1-7","1:1:13-18","1:1:18-19","1:1:21-25","1:1:30-2:1","1:2:3-6","1:2:7","1:2:10-13","1:2:15-20","1:2:23-24","1:2:27-29","1:3:1-6","1:3:8-11","1:3:13-4:3","1:4:6-9","1:4:11-5:3","1:5:8-11","1:5:14-6:3","1:6:4-7:2","1:7:4-8","1:7:14-18","1:8:2-6","2:1:1-2","2:1:5-8","2:1:10-11","2:1:14-2:1","2:4:2-5","2:5:2-6:3","2:7:4-7","2:7:9-8:3","3:1:1-4","3:1:6-8","3:1:11-2:1","3:2:5-6","3:3:2-3","3:4:4-7","3:5:3-7","3:6:3-8:1","3:8:4-10:1","3:12:1-5","3:12:9-13:3","4:1:4-7","4:1:8-12","4:2:3-3:3","4:4:2-5:1","4:6:3-7:1","4:8:1-11:1","4:11:3-12:2"];var Shevuot=["1:1:1-2","1:1:3-5","1:1:5-2:1","1:2:3-7","1:3:2-4:2","1:4:3-5","1:6:3-8","1:7:2-3","2:1:4-7","2:1:9-11","2:3:2-5:1","3:1:2-3","3:2:2-3:2","3:4:2-4","3:4:8-5:2","3:5:3-7:2","3:7:7-8:4","3:8:9-9:5","4:1:1-20","4:2:3-3:1","4:3:4-5:2","4:7:1-9:2","5:1:1-2","5:1:4-2:4","5:3:4-4:2","5:4:4","5:5:1-6:1","6:1:2-4","6:1:7-2:4","6:3:2-4:2","6:5:1-3","6:6:3-7:2","6:8:4","7:1:3-4","7:1:6-8","7:2:4-4:2","7:5:4-6:2","7:7:2-4","7:7:9-8:3","8:1:2-5","8:1:9","8:1:12-2:3","8:3:2-4","8:3:5-6"];var Makkot=["1:1:1-4","1:2:2-4","1:3:2-4:2","1:6:2-7:3","2:1:1-3:1","2:5:1-6:1","2:6:7-11","3:1:1-3:1","3:7:1-11:1"];var Sanhedrin=["1:1:1-6","1:1:11-17","1:1:29-2:1","1:2:8-13","1:2:19-26","1:2:33-38","1:2:45-3:4","1:3:7-4:2","1:4:7-10","2:1:3-6","2:2:4-3:7","2:4:2-5:3","2:6:4-12","3:2:1-3:2","3:4:2-5:4","3:5:7-11","3:6:3-7:1","3:9:1-11","3:9:19-21","3:10:2-12:1","4:1:2-2:2","4:5:2-7:1","4:7:6-9:1","5:1:1-8","5:2:3-4","5:3:4-4:2","6:1:1-2","6:3:2-5:2","6:6:5-7:3","7:1:1-2","7:1:4-2:4","7:5:2-3","7:5:5-6","7:6:3-5","7:6:6-7:1","7:7:4-8:2","7:8:7-9:3","7:9:7-10:2","7:10:4-8","7:11:2-12:1","7:13:3-7","8:2:4-3:4","8:6:5-7:1","8:8:3-9:3","9:1:5-9","9:1:14-2:1","9:3:2-3","9:5:1-6:3","10:1:1-8","10:1:13-22","10:2:3-7","10:2:15-19","10:2:23-4:2","10:6:1-7:2","11:1:2-3:2","11:4:3-4","11:5:4-6:2"];var Horayot=["1:1:1-3","1:1:4-7","1:1:8-2:1","1:2:3-5","1:2:8-3:3","1:4:2-6:2","1:6:2-8:2","2:1:1-2","2:2:2-4:2","2:4:2-5:4","2:7:1-3","3:1:2-2:3","3:2:7-11","3:2:11-13","3:2:15-19","3:2:25-30","3:2:35-3:4","3:4:3-9","3:5:7-9"];var Niddah=["1:1:1-4","1:1:7-2:2","1:3:4-7","1:4:5-5:2","1:5:4-6:2","2:1:1-5","2:2:3-4:2","2:6:1-7:2","3:1:1-2:1","3:2:5-9","3:4:1-5","3:4:7-5:3"];var vilnaMap = {Berakhot:Berakhot,Peah:Peah,Demai:Demai,Kilayim:Kilayim,Sheviit:Sheviit,Terumot:Terumot,Maasrot:Maasrot,"Maaser Sheni":["1:1:1-3","1:1:5-10","1:1:13-16","1:1:19-20","1:2:2-5","1:2:8-3:1","1:3:2-4","2:1:1-2","2:1:8-10","2:1:14-16","2:2:3-6","2:3:2-6","2:3:9-4:1","3:1:1-4","3:2:2-5","3:2:6-3:1","3:3:7-9","3:4:3-5:3","3:5:7-6:4","3:6:5-9","4:1:4-7","4:1:10-2:3","4:2:7-3:4","4:3:8-4:2","4:4:6-5:1","4:5:2-6:1","4:6:5-9","5:1:1-4","5:1:10-2:1","5:2:9-3:1","5:3:5-9","5:4:5-5:1","5:5:8-12"],Challah:Challah,Orlah:Orlah,Bikkurim:Bikkurim,Shabbat:Shabbat,Eruvin:Eruvin,Pesachim:Pesachim,Beitzah:Beitzah,"Rosh Hashanah":["1:1:1-2","1:1:3-5","1:1:8","1:1:10-11","1:1:12-15","1:2:1-4","1:2:6-3:4","1:3:6-4:3","1:7:1-6","1:8:4","2:1:3-7","2:1:8-4:1","2:4:6-5:3","2:6:1-8:4","3:1:3-5","3:1:10-3:4","3:5:4-6:2","4:1:1-2","4:2:2-4:2","4:6:3-7:3","4:8:3-10:2","4:10:5"],Yoma:Yoma,Sukkah:Sukkah,Taanit:Taanit,Shekalim:Shekalim,Megillah:Megillah,Chagigah:Chagigah,"Moed Katan":["1:1:1-2","1:1:4-2:2","1:2:3-3:1","1:4:4-5:2","1:5:2-4","1:7:2-8:1","1:9:2-10:5","2:1:5-2:3","2:3:3-4:3","3:1:1-6","3:1:10-14","3:1:16-3:1","3:5:1-4","3:5:6-10","3:5:14-16","3:5:19-23","3:6:1-7:5","3:7:12-17","3:8:3-9:2"],Yevamot:Yevamot,Ketubot:Ketubot,Sotah:Sotah,Nedarim:Nedarim,Nazir:Nazir,Gittin:Gittin,Kiddushin:Kiddushin,"Bava Kamma":["1:1:1","1:1:3-7","1:1:8","1:1:10-2:2","1:2:3-4","1:2:5-3:1","2:1:1-2","2:1:5-2:2","2:2:2-3:2","2:4:2-5:3","2:5:3-6:3","3:1:2-4","3:1:7-2:2","3:3:4-4:4","3:4:5-5:2","3:6:2-9:1","3:10:1-11:2","4:1:2-5","4:1:6-2:3","4:4:3-5","4:5:2-3","4:5:3-6:3","5:1:1-2","5:2:1-5:1","5:6:1-7:1","5:7:6-8:3","6:1:3-2:4","6:2:5-4:2","6:5:2-7:2","7:1:1-2","7:2:1-3:2","7:3:2-4:1","7:4:3-5:2","8:1:1-4","8:2:2-3:3","8:5:1-6:1","8:8:1-2","9:1:3-3:1","9:5:1-4","9:5:5-6:2","9:8:1-9:2","10:1:1-2","10:1:5-2:3","10:6:1-8:2"],"Bava Metzia":["1:1:1-2","1:1:3-3:2","1:4:2","1:5:1-6:2","1:6:3-7:3","2:1:1-3","2:3:2-4:3","2:5:2-7","2:8:2-10:2","3:1:1-2","3:2:1-3:2","3:4:2-6:2","3:7:1-9:3","4:1:2-5","4:2:1-4","4:2:7-3:2","4:3:4-5:1","4:6:1-7:2","5:1:3-7","5:2:2-3:1","5:3:7-8","5:4:7-5:4","5:5:9-6:2","5:6:4-7:1","6:1:1-3","6:2:2-3:3","6:4:2-6:2","7:1:4-3:1","7:6:1-7:2","8:2:1-3:2","8:4:2-7:1","9:1:1-3:1","9:5:2-7:2","9:8:2-10:2","9:12:2-13:2","10:2:1-4:1","10:5:2-6:3"],"Bava Batra":["1:1:1-2","1:3:2-4:2","1:5:3-6","2:1:4-2:2","2:3:5-4:2","2:5:2-7:1","2:10:1-11:2","3:1:3-5","3:1:6-3:2","3:4:1-5:1","3:5:6-8:1","3:8:4-10:2","4:1:1-2:1","4:4:2-8:1","4:8:4","5:1:3-4","5:1:7-4:1","6:1:1-2","6:1:6-2:1","7:1:1-2","7:2:2-4:2","8:1:2-2:1","8:2:7-4:1","8:5:2-3","8:7:1-4","8:8:3-5","9:1:4-5","9:3:1-4:1","9:5:3-6:3","9:7:2-9:1","10:1:6-9","10:4:1-5:1","10:6:4-9:2","10:10:2-4"],Shevuot:Shevuot,Makkot:Makkot,Sanhedrin:Sanhedrin,"Avodah Zarah":["1:1:1-3","1:1:8-11","1:2:3-9","1:3:3-4:2","1:4:3-5:1","1:6:1-5","1:7:1-9:1","1:9:5-10:2","2:1:2-5","2:1:11-2:4","2:2:9-14","2:3:7-15","2:3:19-4:3","2:4:10-7:1","2:7:3-10","2:8:4-10","2:9:2-4","3:1:1-9","3:2:2-3:3","3:4:2-5:3","3:5:5-8","3:6:2-4","3:6:4-7:2","3:8:4-11:2","4:1:1-3","4:1:7-3:1","4:4:4-9","4:5:2-7:3","4:8:3-9:1","4:10:1-11:2","5:1:1-3","5:1:5-3:1","5:3:5-4:3","5:4:8-7:1","5:8:3-10:4","5:11:4-12:1","5:13:2-15:1"],Horayot:Horayot,Niddah:Niddah};
7703
-
7704
- var vilnaStartDate = new Date(1980, 1, 2);
7705
- /**
7706
- * Yerushalmi Yomi configuration for Vilna Edition
7707
- * @readonly
7708
- */
7709
- var vilna = {
7710
- ed: 'vilna',
7711
- startDate: vilnaStartDate,
7712
- startAbs: greg2abs(vilnaStartDate),
7713
- skipYK9Av: true,
7714
- shas: [['Berakhot', 68], ['Peah', 37], ['Demai', 34], ['Kilayim', 44], ['Sheviit', 31], ['Terumot', 59], ['Maasrot', 26], ['Maaser Sheni', 33], ['Challah', 28], ['Orlah', 20], ['Bikkurim', 13], ['Shabbat', 92], ['Eruvin', 65], ['Pesachim', 71], ['Beitzah', 22], ['Rosh Hashanah', 22], ['Yoma', 42], ['Sukkah', 26], ['Taanit', 26], ['Shekalim', 33], ['Megillah', 34], ['Chagigah', 22], ['Moed Katan', 19], ['Yevamot', 85], ['Ketubot', 72], ['Sotah', 47], ['Nedarim', 40], ['Nazir', 47], ['Gittin', 54], ['Kiddushin', 48], ['Bava Kamma', 44], ['Bava Metzia', 37], ['Bava Batra', 34], ['Shevuot', 44], ['Makkot', 9], ['Sanhedrin', 57], ['Avodah Zarah', 37], ['Horayot', 19], ['Niddah', 13]]
7715
- };
7716
- var schottensteinStartDate = new Date(2022, 10, 14);
7717
- /**
7718
- * Yerushalmi Yomi configuration for Schottenstein Edition
7719
- * @readonly
7720
- */
7721
- var schottenstein = {
7722
- ed: 'schottenstein',
7723
- startDate: schottensteinStartDate,
7724
- startAbs: greg2abs(schottensteinStartDate),
7725
- skipYK9Av: false,
7726
- shas: [['Berakhot', 94], ['Peah', 73], ['Demai', 77], ['Kilayim', 84], ['Sheviit', 87], ['Terumot', 107], ['Maasrot', 46], ['Maaser Sheni', 59], ['Challah', 49], ['Orlah', 42], ['Bikkurim', 26], ['Shabbat', 113], ['Eruvin', 71], ['Pesachim', 86], ['Shekalim', 61], ['Yoma', 57], ['Sukkah', 33], ['Beitzah', 49], ['Rosh Hashanah', 27], ['Taanit', 31], ['Megillah', 41], ['Chagigah', 28], ['Moed Katan', 23], ['Yevamot', 88], ['Ketubot', 77], ['Nedarim', 42], ['Nazir', 53], ['Sotah', 52], ['Gittin', 53], ['Kiddushin', 53], ['Bava Kamma', 40], ['Bava Metzia', 35], ['Bava Batra', 39], ['Sanhedrin', 75], ['Shevuot', 49], ['Avodah Zarah', 34], ['Makkot', 11], ['Horayot', 18], ['Niddah', 11]]
7437
+ return result;
7438
+ };
7727
7439
  };
7728
- var SUN = 0;
7729
- var SAT$1 = 6;
7730
-
7731
- /**
7732
- * Using the Vilna edition, the Yerushalmi Daf Yomi program takes
7733
- * ~4.25 years or 51 months.
7734
- * Unlike the Daf Yomi Bavli cycle, this Yerushalmi cycle skips both
7735
- * Yom Kippur and Tisha B'Av (returning `null`).
7736
- * The page numbers are according to the Vilna
7737
- * Edition which is used since 1900.
7738
- *
7739
- * The Schottenstein edition uses different page numbers and takes
7740
- * ~6 years to complete.
7741
- *
7742
- * Throws an exception if the date is before Daf Yomi Yerushalmi
7743
- * cycle began (2 February 1980 for Vilna,
7744
- * 14 November 2022 for Schottenstein).
7745
- *
7746
- * @param {HDate|Date|number} date - Hebrew or Gregorian date
7747
- * @param {any} config - either vilna or schottenstein
7748
- * @return {any}
7749
- */
7750
- function yerushalmiYomi(date, config) {
7751
- if (_typeof(config) !== 'object' || !Array.isArray(config.shas)) {
7752
- throw new Error('invalid yerushalmi config');
7753
- }
7754
- var cday = typeof date === 'number' && !isNaN(date) ? date : isDate(date) ? greg2abs(date) : HDate.isHDate(date) ? date.abs() : throwTypeError("non-date given to dafyomi: ".concat(date));
7755
- var startAbs = config.startAbs;
7756
- if (cday < startAbs) {
7757
- throw new RangeError("Date ".concat(date, " too early; Yerushalmi Yomi cycle began on ").concat(config.startDate));
7758
- }
7759
- var hd = new HDate(cday);
7760
- // No Daf for Yom Kippur and Tisha B'Av
7761
- if (config.skipYK9Av && skipDay(hd)) {
7762
- return null;
7763
- }
7764
- var shas = config.shas;
7765
- var numDapim = 0;
7766
- for (var j = 0; j < shas.length; j++) {
7767
- numDapim += shas[j][1];
7768
- }
7769
- var prevCycle = startAbs;
7770
- var nextCycle = startAbs;
7771
- while (cday >= nextCycle) {
7772
- prevCycle = nextCycle;
7773
- nextCycle += numDapim;
7774
- nextCycle += numSpecialDays(config, prevCycle, nextCycle);
7775
- }
7776
- var total = cday - prevCycle - numSpecialDays(config, prevCycle, cday);
7777
- for (var _j = 0; _j < shas.length; _j++) {
7778
- var masechet = shas[_j];
7779
- if (total < masechet[1]) {
7780
- return {
7781
- name: masechet[0],
7782
- blatt: total + 1,
7783
- ed: config.ed
7784
- };
7785
- }
7786
- total -= masechet[1];
7787
- }
7788
- throw new Error('Interal error, this code should be unreachable');
7789
- }
7790
7440
 
7791
- /**
7792
- * @private
7793
- * @param {HDate} hd
7794
- * @return {boolean}
7795
- */
7796
- function skipDay(hd) {
7797
- if (hd.getMonth() === months.TISHREI && hd.getDate() === 10 || hd.getMonth() === months.AV && (hd.getDate() === 9 && hd.getDay() !== SAT$1 || hd.getDate() === 10 && hd.getDay() === SUN)) {
7798
- return true;
7799
- }
7800
- return false;
7801
- }
7441
+ var objectToArray = {
7442
+ // `Object.entries` method
7443
+ // https://tc39.es/ecma262/#sec-object.entries
7444
+ entries: createMethod(true),
7445
+ // `Object.values` method
7446
+ // https://tc39.es/ecma262/#sec-object.values
7447
+ values: createMethod(false)
7448
+ };
7802
7449
 
7803
- /**
7804
- * @private
7805
- * @param {any} config
7806
- * @param {number} startAbs
7807
- * @param {number} endAbs
7808
- * @return {number}
7809
- */
7810
- function numSpecialDays(config, startAbs, endAbs) {
7811
- if (!config.skipYK9Av) {
7812
- return 0;
7813
- }
7814
- var startYear = new HDate(startAbs).getFullYear();
7815
- var endYear = new HDate(endAbs).getFullYear();
7816
- var specialDays = 0;
7817
- for (var year = startYear; year <= endYear; year++) {
7818
- var ykAbs = new HDate(10, months.TISHREI, year).abs();
7819
- if (ykAbs >= startAbs && ykAbs <= endAbs) {
7820
- specialDays++;
7821
- }
7822
- var av9dt = new HDate(9, months.AV, year);
7823
- if (av9dt.getDay() == SAT$1) {
7824
- av9dt = av9dt.next();
7825
- }
7826
- var av9abs = av9dt.abs();
7827
- if (av9abs >= startAbs && av9abs <= endAbs) {
7828
- specialDays++;
7829
- }
7830
- }
7831
- return specialDays;
7832
- }
7450
+ var $$3 = _export;
7451
+ var $entries = objectToArray.entries;
7833
7452
 
7834
- /**
7835
- * Event wrapper around a Yerushalmi Yomi result
7836
- */
7837
- var YerushalmiYomiEvent = /*#__PURE__*/function (_Event) {
7838
- _inherits(YerushalmiYomiEvent, _Event);
7839
- var _super = _createSuper(YerushalmiYomiEvent);
7840
- /**
7841
- * @param {HDate} date
7842
- * @param {any} daf
7843
- */
7844
- function YerushalmiYomiEvent(date, daf) {
7845
- var _this;
7846
- _classCallCheck(this, YerushalmiYomiEvent);
7847
- _this = _super.call(this, date, "".concat(daf.name, " ").concat(daf.blatt), flags.YERUSHALMI_YOMI);
7848
- _this.daf = daf;
7849
- return _this;
7453
+ // `Object.entries` method
7454
+ // https://tc39.es/ecma262/#sec-object.entries
7455
+ $$3({ target: 'Object', stat: true }, {
7456
+ entries: function entries(O) {
7457
+ return $entries(O);
7850
7458
  }
7851
- /**
7852
- * Returns name of tractate and page (e.g. "Yerushalmi Beitzah 21").
7853
- * @param {string} [locale] Optional locale name (defaults to active locale).
7854
- * @return {string}
7855
- */
7856
- _createClass(YerushalmiYomiEvent, [{
7857
- key: "render",
7858
- value: function render(locale) {
7859
- var prefix = Locale.gettext('Yerushalmi', locale);
7860
- return prefix + ' ' + this.renderBrief(locale);
7861
- }
7862
- /**
7863
- * Returns name of tractate and page (e.g. "Beitzah 21").
7864
- * @param {string} [locale] Optional locale name (defaults to active locale).
7865
- * @return {string}
7866
- */
7867
- }, {
7868
- key: "renderBrief",
7869
- value: function renderBrief(locale) {
7870
- locale = locale || Locale.getLocaleName();
7871
- if (typeof locale === 'string') {
7872
- locale = locale.toLowerCase();
7873
- }
7874
- var name = Locale.gettext(this.daf.name, locale);
7875
- if (locale === 'he' || locale === 'he-x-nonikud') {
7876
- return name + ' דף ' + gematriya(this.daf.blatt);
7877
- }
7878
- return name + ' ' + this.daf.blatt;
7879
- }
7880
- /**
7881
- * Returns a link to sefaria.org
7882
- * @return {string}
7883
- */
7884
- }, {
7885
- key: "url",
7886
- value: function url() {
7887
- var daf = this.daf;
7888
- if (daf.ed !== 'vilna') {
7889
- return undefined;
7890
- }
7891
- var tractate = daf.name;
7892
- var pageMap = vilnaMap[tractate];
7893
- if (!Array.isArray(pageMap)) {
7894
- return undefined;
7895
- }
7896
- var idx = daf.blatt - 1;
7897
- var verses0 = pageMap[idx];
7898
- if (typeof verses0 !== 'string') {
7899
- return undefined;
7900
- }
7901
- var name0 = 'Jerusalem Talmud ' + tractate;
7902
- var name = name0.replace(/ /g, '_');
7903
- var verses = verses0.replace(/:/g, '.');
7904
- return "https://www.sefaria.org/".concat(name, ".").concat(verses, "?lang=bi");
7905
- }
7906
- }]);
7907
- return YerushalmiYomiEvent;
7908
- }(Event);
7459
+ });
7909
7460
 
7910
7461
  var NISAN$1 = months.NISAN;
7911
7462
  var CHESHVAN = months.CHESHVAN;
@@ -7971,7 +7522,9 @@ function getYahrzeit_(hyear, gdate) {
7971
7522
  function getBirthdayOrAnniversary_(hyear, gdate) {
7972
7523
  var orig = HDate.isHDate(gdate) ? gdate : new HDate(gdate);
7973
7524
  var origYear = orig.getFullYear();
7974
- if (hyear <= origYear) {
7525
+ if (hyear === origYear) {
7526
+ return orig;
7527
+ } else if (hyear < origYear) {
7975
7528
  // `Hebrew year ${hyear} occurs on or before original date in ${origYear}`
7976
7529
  return undefined;
7977
7530
  }
@@ -7993,7 +7546,7 @@ function getBirthdayOrAnniversary_(hyear, gdate) {
7993
7546
  return new HDate(day, month, hyear);
7994
7547
  }
7995
7548
 
7996
- var version="3.50.3";
7549
+ var version="4.0.0";
7997
7550
 
7998
7551
  var headers$1={"plural-forms":"nplurals=2; plural=(n > 1);"};var contexts$1={"":{Berachot:["Berachos"],Shabbat:["Shabbos"],Taanit:["Taanis"],Yevamot:["Yevamos"],Ketubot:["Kesubos"],"Baba Batra":["Baba Basra"],Makkot:["Makkos"],Shevuot:["Shevuos"],Horayot:["Horayos"],Menachot:["Menachos"],Bechorot:["Bechoros"],Keritot:["Kerisos"],Midot:["Midos"],"Achrei Mot":["Achrei Mos"],Bechukotai:["Bechukosai"],"Beha'alotcha":["Beha'aloscha"],Bereshit:["Bereshis"],Chukat:["Chukas"],"Erev Shavuot":["Erev Shavuos"],"Erev Sukkot":["Erev Sukkos"],"Ki Tavo":["Ki Savo"],"Ki Teitzei":["Ki Seitzei"],"Ki Tisa":["Ki Sisa"],Matot:["Matos"],"Purim Katan":["Purim Koton"],Tazria:["Sazria"],"Shabbat Chazon":["Shabbos Chazon"],"Shabbat HaChodesh":["Shabbos HaChodesh"],"Shabbat HaGadol":["Shabbos HaGadol"],"Shabbat Nachamu":["Shabbos Nachamu"],"Shabbat Parah":["Shabbos Parah"],"Shabbat Shekalim":["Shabbos Shekalim"],"Shabbat Shuva":["Shabbos Shuvah"],"Shabbat Zachor":["Shabbos Zachor"],Shavuot:["Shavuos"],"Shavuot I":["Shavuos I"],"Shavuot II":["Shavuos II"],Shemot:["Shemos"],"Shmini Atzeret":["Shmini Atzeres"],"Simchat Torah":["Simchas Torah"],Sukkot:["Sukkos"],"Sukkot I":["Sukkos I"],"Sukkot II":["Sukkos II"],"Sukkot II (CH''M)":["Sukkos II (CH''M)"],"Sukkot III (CH''M)":["Sukkos III (CH''M)"],"Sukkot IV (CH''M)":["Sukkos IV (CH''M)"],"Sukkot V (CH''M)":["Sukkos V (CH''M)"],"Sukkot VI (CH''M)":["Sukkos VI (CH''M)"],"Sukkot VII (Hoshana Raba)":["Sukkos VII (Hoshana Raba)"],"Ta'anit Bechorot":["Ta'anis Bechoros"],"Ta'anit Esther":["Ta'anis Esther"],Toldot:["Toldos"],Vaetchanan:["Vaeschanan"],Yitro:["Yisro"],"Vezot Haberakhah":["Vezos Haberakhah"],Parashat:["Parshas"],"Leil Selichot":["Leil Selichos"],"Shabbat Mevarchim Chodesh":["Shabbos Mevorchim Chodesh"],"Shabbat Shirah":["Shabbos Shirah"],Tevet:["Teves"],"Asara B'Tevet":["Asara B'Teves"],Berakhot:["Berakhos"],Sheviit:["Sheviis"],Terumot:["Terumos"],Maasrot:["Maasros"],Eduyot:["Eduyos"],Avot:["Avos"],Bekhorot:["Bekhoros"],Middot:["Middos"],Oholot:["Oholos"],Tahorot:["Tahoros"],Mikvaot:["Mikvaos"],"Alot HaShachar":["Alos HaShachar"],"Kriat Shema, sof zeman":["Krias Shema, sof zman"],"Tefilah, sof zeman":["Tefilah, sof zman"],"Kriat Shema, sof zeman (MGA)":["Krias Shema, sof zman (MGA)"],"Tefilah, sof zeman (MGA)":["Tefilah, sof zman (MGA)"],"Chatzot HaLailah":["Chatzos HaLailah"],"Chatzot hayom":["Chatzos"],"Tzeit HaKochavim":["Tzeis HaKochavim"],"Birkat Hachamah":["Birkas Hachamah"],"Shushan Purim Katan":["Shushan Purim Koton"]}};var poAshkenazi = {headers:headers$1,contexts:contexts$1};
7999
7552
 
@@ -8093,22 +7646,12 @@ $$2({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_RE
8093
7646
 
8094
7647
  var objectDefineProperties = {};
8095
7648
 
8096
- var internalObjectKeys = objectKeysInternal;
8097
- var enumBugKeys$1 = enumBugKeys$3;
8098
-
8099
- // `Object.keys` method
8100
- // https://tc39.es/ecma262/#sec-object.keys
8101
- // eslint-disable-next-line es/no-object-keys -- safe
8102
- var objectKeys$1 = Object.keys || function keys(O) {
8103
- return internalObjectKeys(O, enumBugKeys$1);
8104
- };
8105
-
8106
7649
  var DESCRIPTORS = descriptors;
8107
7650
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
8108
7651
  var definePropertyModule = objectDefineProperty;
8109
7652
  var anObject$1 = anObject$8;
8110
- var toIndexedObject = toIndexedObject$5;
8111
- var objectKeys = objectKeys$1;
7653
+ var toIndexedObject = toIndexedObject$6;
7654
+ var objectKeys = objectKeys$2;
8112
7655
 
8113
7656
  // `Object.defineProperties` method
8114
7657
  // https://tc39.es/ecma262/#sec-object.defineproperties
@@ -8241,6 +7784,7 @@ var addToUnscopables = addToUnscopables$1;
8241
7784
 
8242
7785
  // FF99+ bug
8243
7786
  var BROKEN_ON_SPARSE = fails(function () {
7787
+ // eslint-disable-next-line es/no-array-prototype-includes -- detection
8244
7788
  return !Array(1).includes();
8245
7789
  });
8246
7790
 
@@ -8525,9 +8069,6 @@ var RECOGNIZED_OPTIONS = {
8525
8069
  noRoshChodesh: 1,
8526
8070
  noSpecialShabbat: 1,
8527
8071
  noHolidays: 1,
8528
- dafyomi: 1,
8529
- mishnaYomi: 1,
8530
- nachYomi: 1,
8531
8072
  omer: 1,
8532
8073
  molad: 1,
8533
8074
  ashkenazi: 1,
@@ -8539,8 +8080,7 @@ var RECOGNIZED_OPTIONS = {
8539
8080
  userMask: 1,
8540
8081
  yomKippurKatan: 1,
8541
8082
  hour12: 1,
8542
- yerushalmi: 1,
8543
- yerushalmiEdition: 1
8083
+ dailyLearning: 1
8544
8084
  };
8545
8085
 
8546
8086
  /**
@@ -8651,11 +8191,6 @@ function checkCandleOptions(options) {
8651
8191
  * @property {boolean} shabbatMevarchim - add Shabbat Mevarchim
8652
8192
  * @property {boolean} noSpecialShabbat - suppress Special Shabbat
8653
8193
  * @property {boolean} noHolidays - suppress regular holidays
8654
- * @property {boolean} dafyomi - Babylonian Talmud Daf Yomi
8655
- * @property {boolean} yerushalmi - Jerusalem Talmud (Yerushalmi) Yomi
8656
- * @property {number} yerushalmiEdition - Use 1 for Vilna, 2 for Schottenstein
8657
- * @property {boolean} mishnaYomi - include Mishna Yomi
8658
- * @property {boolean} nachYomi - include Nach Yomi
8659
8194
  * @property {boolean} omer - include Days of the Omer
8660
8195
  * @property {boolean} molad - include event announcing the molad
8661
8196
  * @property {boolean} ashkenazi - use Ashkenazi transliterations for event titles (default Sephardi transliterations)
@@ -8675,6 +8210,9 @@ function checkCandleOptions(options) {
8675
8210
  * See {@link https://en.wikipedia.org/wiki/Yom_Kippur_Katan#Practices Wikipedia Yom Kippur Katan practices}
8676
8211
  * @property {boolean} hour12 - Whether to use 12-hour time (as opposed to 24-hour time).
8677
8212
  * Possible values are `true` and `false`; the default is locale dependent.
8213
+ * @property {Object<string,any>} dailyLearning - map of options to enable daily study calendars
8214
+ * such as `dafYomi`, `mishnaYomi`, `nachYomi` with value `true`. For `yerushalmi`
8215
+ * the value should be a `number` for edition (`1` for Vilna, `2` for Schottenstein).
8678
8216
  */
8679
8217
 
8680
8218
  /**
@@ -8772,13 +8310,25 @@ function getMaskFromOptions(options) {
8772
8310
  if (m & MINOR_FAST) delete options.noMinorFast;
8773
8311
  if (m & SPECIAL_SHABBAT) delete options.noSpecialShabbat;
8774
8312
  if (m & PARSHA_HASHAVUA) options.sedrot = true;
8775
- if (m & DAF_YOMI) options.dafyomi = true;
8313
+ if (m & DAF_YOMI) {
8314
+ options.dailyLearning = options.dailyLearning || {};
8315
+ options.dailyLearning.dafYomi = true;
8316
+ }
8776
8317
  if (m & OMER_COUNT) options.omer = true;
8777
8318
  if (m & SHABBAT_MEVARCHIM) options.shabbatMevarchim = true;
8778
- if (m & flags.MISHNA_YOMI) options.mishnaYomi = true;
8779
- if (m & flags.NACH_YOMI) options.nachYomi = true;
8319
+ if (m & flags.MISHNA_YOMI) {
8320
+ options.dailyLearning = options.dailyLearning || {};
8321
+ options.dailyLearning.mishnaYomi = true;
8322
+ }
8323
+ if (m & flags.NACH_YOMI) {
8324
+ options.dailyLearning = options.dailyLearning || {};
8325
+ options.dailyLearning.nachYomi = true;
8326
+ }
8780
8327
  if (m & flags.YOM_KIPPUR_KATAN) options.yomKippurKatan = true;
8781
- if (m & flags.YERUSHALMI_YOMI) options.yerushalmi = true;
8328
+ if (m & flags.YERUSHALMI_YOMI) {
8329
+ options.dailyLearning = options.dailyLearning || {};
8330
+ options.dailyLearning.yerushalmi = 1;
8331
+ }
8782
8332
  options.userMask = true;
8783
8333
  return m;
8784
8334
  }
@@ -8815,15 +8365,6 @@ function getMaskFromOptions(options) {
8815
8365
  if (options.sedrot) {
8816
8366
  mask |= PARSHA_HASHAVUA;
8817
8367
  }
8818
- if (options.dafyomi) {
8819
- mask |= DAF_YOMI;
8820
- }
8821
- if (options.mishnaYomi) {
8822
- mask |= flags.MISHNA_YOMI;
8823
- }
8824
- if (options.nachYomi) {
8825
- mask |= flags.NACH_YOMI;
8826
- }
8827
8368
  if (options.omer) {
8828
8369
  mask |= OMER_COUNT;
8829
8370
  }
@@ -8833,8 +8374,20 @@ function getMaskFromOptions(options) {
8833
8374
  if (options.yomKippurKatan) {
8834
8375
  mask |= flags.YOM_KIPPUR_KATAN;
8835
8376
  }
8836
- if (options.yerushalmi) {
8837
- mask |= flags.YERUSHALMI_YOMI;
8377
+ if (options.dailyLearning) {
8378
+ var dailyLearning = options.dailyLearning;
8379
+ if (dailyLearning.dafYomi) {
8380
+ mask |= DAF_YOMI;
8381
+ }
8382
+ if (dailyLearning.mishnaYomi) {
8383
+ mask |= flags.MISHNA_YOMI;
8384
+ }
8385
+ if (dailyLearning.nachYomi) {
8386
+ mask |= flags.NACH_YOMI;
8387
+ }
8388
+ if (dailyLearning.yerushalmi) {
8389
+ mask |= flags.YERUSHALMI_YOMI;
8390
+ }
8838
8391
  }
8839
8392
  return mask;
8840
8393
  }
@@ -8918,14 +8471,16 @@ var HebrewCalendar = /*#__PURE__*/function () {
8918
8471
  * Additional non-default event types can be specified:
8919
8472
  * * Parashat HaShavua - weekly Torah Reading on Saturdays (`options.sedrot`)
8920
8473
  * * Counting of the Omer (`options.omer`)
8921
- * * Babylonian Talmud Daf Yomi (`options.dafyomi`)
8922
- * * Jerusalem Talmud (Yerushalmi) Yomi (`options.yerushalmi`)
8923
- * * Mishna Yomi (`options.mishnaYomi`)
8924
- * * Nach Yomi (`options.nachYomi`)
8925
8474
  * * Shabbat Mevarchim HaChodesh on Saturday before Rosh Chodesh (`options.shabbatMevarchim`)
8926
8475
  * * Molad announcement on Saturday before Rosh Chodesh (`options.molad`)
8927
8476
  * * Yom Kippur Katan (`options.yomKippurKatan`)
8928
8477
  *
8478
+ * Daily Study of texts:
8479
+ * * Babylonian Talmud Daf Yomi (`options.dailyLearning.dafYomi`)
8480
+ * * Jerusalem Talmud (Yerushalmi) Yomi (`options.dailyLearning.yerushalmi`)
8481
+ * * Mishna Yomi (`options.dailyLearning.mishnaYomi`)
8482
+ * * Nach Yomi (`options.dailyLearning.nachYomi`)
8483
+ *
8929
8484
  * Candle-lighting and Havdalah times are approximated using latitude and longitude
8930
8485
  * specified by the {@link Location} class. The `Location` class contains a small
8931
8486
  * database of cities with their associated geographic information and time-zone information.
@@ -9024,15 +8579,6 @@ var HebrewCalendar = /*#__PURE__*/function () {
9024
8579
  if (startGreg.getFullYear() < 100) {
9025
8580
  options.candlelighting = false;
9026
8581
  }
9027
- var mishnaYomiIndex;
9028
- if (options.mishnaYomi) {
9029
- mishnaYomiIndex = new MishnaYomiIndex();
9030
- }
9031
- var nachYomiIndex;
9032
- if (options.nachYomi) {
9033
- nachYomiIndex = new NachYomiIndex();
9034
- }
9035
- var yerushalmiCfg = options.yerushalmiEdition === 2 ? schottenstein : vilna;
9036
8582
  var _loop = function _loop() {
9037
8583
  var hd = new HDate(abs);
9038
8584
  var hyear = hd.getFullYear();
@@ -9060,23 +8606,19 @@ var HebrewCalendar = /*#__PURE__*/function () {
9060
8606
  evts.push(new ParshaEvent(hd, parsha0.parsha, il, parsha0.num));
9061
8607
  }
9062
8608
  }
9063
- if (options.dafyomi && hyear >= 5684) {
9064
- evts.push(new DafYomiEvent(hd));
9065
- }
9066
- if (options.yerushalmi && abs >= yerushalmiCfg.startAbs) {
9067
- var daf = yerushalmiYomi(abs, yerushalmiCfg);
9068
- // daf will be null to signal no Yerushalmi Yomi on YK and 9Av
9069
- if (daf != null) {
9070
- evts.push(new YerushalmiYomiEvent(hd, daf));
9071
- }
9072
- }
9073
- if (options.mishnaYomi && abs >= mishnaYomiStart) {
9074
- var mishnaYomi = mishnaYomiIndex.lookup(abs);
9075
- evts.push(new MishnaYomiEvent(hd, mishnaYomi));
9076
- }
9077
- if (options.nachYomi && abs >= nachYomiStart) {
9078
- var nachYomi = nachYomiIndex.lookup(abs);
9079
- evts.push(new NachYomiEvent(hd, nachYomi));
8609
+ var dailyLearning = options.dailyLearning;
8610
+ if (_typeof(dailyLearning) === 'object') {
8611
+ Object.entries(dailyLearning).forEach(function (kv) {
8612
+ var key = kv[0];
8613
+ var val = kv[1];
8614
+ if (val) {
8615
+ var name = key === 'yerushalmi' ? val === 2 ? 'yerushalmi-schottenstein' : 'yerushalmi-vilna' : key;
8616
+ var learningEv = DailyLearning.lookup(name, hd);
8617
+ if (learningEv) {
8618
+ evts.push(learningEv);
8619
+ }
8620
+ }
8621
+ });
9080
8622
  }
9081
8623
  if (options.omer && abs >= beginOmer && abs <= endOmer) {
9082
8624
  var omer = abs - beginOmer + 1;
@@ -9430,8 +8972,7 @@ function appendHolidayAndRelated(events, ev, options, candlesEv, dow) {
9430
8972
 
9431
8973
  exports.AsaraBTevetEvent = AsaraBTevetEvent;
9432
8974
  exports.CandleLightingEvent = CandleLightingEvent;
9433
- exports.DafYomi = DafYomi;
9434
- exports.DafYomiEvent = DafYomiEvent;
8975
+ exports.DailyLearning = DailyLearning;
9435
8976
  exports.Event = Event;
9436
8977
  exports.HDate = HDate;
9437
8978
  exports.HavdalahEvent = HavdalahEvent;
@@ -9441,12 +8982,8 @@ exports.HolidayEvent = HolidayEvent;
9441
8982
  exports.Locale = Locale;
9442
8983
  exports.Location = Location;
9443
8984
  exports.MevarchimChodeshEvent = MevarchimChodeshEvent;
9444
- exports.MishnaYomiEvent = MishnaYomiEvent;
9445
- exports.MishnaYomiIndex = MishnaYomiIndex;
9446
8985
  exports.Molad = Molad;
9447
8986
  exports.MoladEvent = MoladEvent;
9448
- exports.NachYomiEvent = NachYomiEvent;
9449
- exports.NachYomiIndex = NachYomiIndex;
9450
8987
  exports.OmerEvent = OmerEvent;
9451
8988
  exports.ParshaEvent = ParshaEvent;
9452
8989
  exports.RoshChodeshEvent = RoshChodeshEvent;
@@ -9454,17 +8991,13 @@ exports.RoshHashanaEvent = RoshHashanaEvent;
9454
8991
  exports.Sedra = Sedra;
9455
8992
  exports.SolarCalc = SolarCalc;
9456
8993
  exports.TimedEvent = TimedEvent;
9457
- exports.YerushalmiYomiEvent = YerushalmiYomiEvent;
9458
8994
  exports.Zmanim = Zmanim;
9459
8995
  exports.flags = flags;
9460
8996
  exports.gematriya = gematriya;
9461
8997
  exports.greg = greg;
9462
8998
  exports.months = months;
9463
8999
  exports.parshiot = parshiot;
9464
- exports.schottenstein = schottenstein;
9465
9000
  exports.version = version;
9466
- exports.vilna = vilna;
9467
- exports.yerushalmiYomi = yerushalmiYomi;
9468
9001
 
9469
9002
  return exports;
9470
9003