@hebcal/core 5.0.5 → 5.0.6
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 +2 -2
- package/dist/bundle.min.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -2
package/dist/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.0.
|
|
1
|
+
/*! @hebcal/core v5.0.6 */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -10017,7 +10017,7 @@ class DailyLearning {
|
|
|
10017
10017
|
}
|
|
10018
10018
|
|
|
10019
10019
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
10020
|
-
const version = '5.0.
|
|
10020
|
+
const version = '5.0.6';
|
|
10021
10021
|
|
|
10022
10022
|
var objectGetOwnPropertyDescriptor = {};
|
|
10023
10023
|
|
package/dist/bundle.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @hebcal/core v5.0.
|
|
2
|
-
var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function i(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function a(e,n,r){const i=e-1;return 365*i+o(i,4)-o(i,100)+o(i,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=i,e.greg2abs=function(e){if(!i(e))throw new TypeError(`Argument not a Date: ${e}`);return a(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=o(t,146097),i=r(t,146097),a=o(i,36524),s=r(i,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*a+4*c+u;return 4!=a&&4!=u?h+1:h}(e=Math.trunc(e)),i=o(12*(e-a(n,1,1)+(e<a(n,3,1)?0:t(n)?1:2))+373,367),s=e-a(n,i,1)+1,c=new Date(n,i-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const i=1,a=2,s=4,c=6,u=7,h=8,l=9,d=10,m=12,f=13,g={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},y=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],S=[y.concat(["Adar","Nisan"]),y.concat(["Adar I","Adar II","Nisan"])],p=new Map,w=-1373428,v=365.24682220597794;function b(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function M(e,t,n){if(b(e,"year"),b(t,"month"),b(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=E(e);t++)r+=D(t,e);for(let n=i;n<t;n++)r+=D(n,e)}else for(let n=u;n<t;n++)r+=D(n,e);return w+N(e)+r-1}function I(e){return w+N(e)}function T(e){if(b(e,"abs"),(e=Math.trunc(e))<=w)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-w)/v);for(;I(t)<=e;)++t;--t;let n=e<M(t,1,1)?7:1;for(;e>M(t,n,D(n,t));)++n;return{yy:t,mm:n,dd:1+e-M(t,n,1)}}function A(e){return(1+7*e)%19<7}function E(e){return+A(e)+12}function D(e,t){switch(e){case a:case s:case c:case d:case f:return 29}return e===m&&!A(t)||e===h&&!k(t)||e===l&&H(t)?29:30}function C(e,t){if(b(e,"month"),b(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return S[+A(t)][e]}function N(e){const t=p.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),i=r%1080+o%24*1080,a=1+29*n+Math.floor(o/24);let s=a;(i>=19440||2==a%7&&i>=9924&&!A(e)||1==a%7&&i>=16789&&A(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return p.set(e,n),n}function O(e){return N(e+1)-N(e)}function k(e){return O(e)%10==5}function H(e){return O(e)%10==3}const Y=g.NISAN,L=g.CHESHVAN,F=g.KISLEV,P=g.TEVET,R=g.SHVAT,_=g.ADAR_I,U=g.ADAR_II;function j(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return T(t);if(e.greg.isDate(t)){return T(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const x={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},B=new Map,Z=new Map;for(const[e,t]of Object.entries(x))B.set(e,t),Z.set(t,e);function z(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function $(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=z(r);for(const t of e)n+=Z.get(t);n+="׳"}const o=z(t%1e3);if(1==o.length)return n+Z.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=Z.get(o[e]);return n}function V(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*V(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=B.get(n);"number"==typeof e&&(t+=e)}return t}const K={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},J={h:"he",a:"ashkenazi",s:"en","":"en"},G=new Map;let W=null,q=null;class X{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&G.get(n)||W)[e];if(null!=r&&r.length&&r[0].length)return r[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);G.set(e.toLowerCase(),t.contexts[""])}static addTranslation(e,t,n){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const r=e.toLowerCase(),o=G.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const i=Array.isArray(n);if(i){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation: ${n}`);o[t]=i?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=G.get(n);if(!r)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=t.contexts[""];Object.assign(r,o)}static useLocale(e){const t=e.toLowerCase(),n=G.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return q=J[t]||t,W=n,W}static getLocaleName(){return q}static getLocaleNames(){return Array.from(G.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||q;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}function Q(e){throw new TypeError(e)}X.addLocale("en",K),X.addLocale("s",K),X.addLocale("",K),X.useLocale("en");const ee="day",te="week",ne="month",re="year",oe={d:ee,w:te,M:ne,y:re},ie={day:ee,week:te,month:ne,year:re};class ae{constructor(t,n,r){if(2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.dd=this.mm=1,r=parseInt(r,10),isNaN(r))throw new TypeError(`HDate called with bad year argument: ${r}`);if(this.yy=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError(`HDate called with bad day argument: ${t}`);this.setDate(t)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):"number"==typeof t.yy&&"number"==typeof t.mm&&"number"==typeof t.dd?t:Q(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?T(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.rd=n)}}getFullYear(){return this.yy}isLeapYear(){return A(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=E(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return D(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.mm=ae.monthNum(e),se(this),this}setDate(e){return this.dd=e,se(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=M(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return M(e,t,n)}getMonthName(){return C(this.getMonth(),this.getFullYear())}render(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||X.getLocaleName(),n=this.getDate(),r=X.gettext(this.getMonthName(),t),o=`${X.ordinal(n,t)}${ae.getDayOfTranslation(t)} ${r}`;if(e){return`${o}, ${this.getFullYear()}`}return o}static getDayOfTranslation(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=X.lookupTranslation("of",e);return t?" "+t:e.startsWith("ashkenazi")?" of":""}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=X.gettext(this.getMonthName(),n),o=this.getFullYear();return $(t)+" "+r+" "+$(o)}before(e){return ue(e,this,-1)}onOrBefore(e){return ue(e,this,0)}nearest(e){return ue(e,this,3)}onOrAfter(e){return ue(e,this,6)}after(e){return ue(e,this,7)}next(){return new ae(this.abs()+1)}prev(){return new ae(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new ae(this);if(t=ae.standardizeUnits(t),t===ee)return new ae(this.abs()+e);if(t===te)return new ae(this.abs()+7*e);if(t===re)return new ae(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===ne){let t=new ae(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new ae(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=oe[e]||String(e||"").toLowerCase().replace(/s$/,"");return ie[t]||Q(`Invalid units '${e}'`)}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){if(!ae.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!ae.isHDate(e)&&(this.yy==e.yy&&this.mm==e.mm&&this.dd==e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return A(e)}static monthsInYear(e){return E(e)}static daysInMonth(e,t){return D(e,t)}static getMonthName(e,t){return C(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):ae.monthFromName(e)}static daysInYear(e){return O(e)}static longCheshvan(e){return k(e)}static shortKislev(e){return H(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"==t[1])break;return g.NISAN;case"i":return g.IYYAR;case"e":return g.ELUL;case"c":case"ח":return g.CHESHVAN;case"k":case"כ":return g.KISLEV;case"s":switch(t[1]){case"i":return g.SIVAN;case"h":return g.SHVAT}break;case"t":switch(t[1]){case"a":return g.TAMUZ;case"i":return g.TISHREI;case"e":return g.TEVET}break;case"a":switch(t[1]){case"v":return g.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?g.ADAR_I:g.ADAR_II}break;case"ס":return g.SIVAN;case"ט":return g.TEVET;case"ש":return g.SHVAT;case"א":switch(t[1]){case"ב":return g.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?g.ADAR_I:g.ADAR_II;case"י":return g.IYYAR;case"ל":return g.ELUL}break;case"ת":switch(t[1]){case"מ":return g.TAMUZ;case"ש":return g.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(X.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" "),r=V(n[0]),o=ae.monthFromName(n[1]);let i=V(n[2]);return i<1e3&&(i+=t),new ae(r,o,i)}}function se(e){ce(e),function(e){e.dd<1&&(e.mm==g.TISHREI&&(e.yy-=1),e.dd+=D(e.mm,e.yy),e.mm-=1,se(e));e.dd>D(e.mm,e.yy)&&(e.mm===g.ELUL&&(e.yy+=1),e.dd-=D(e.mm,e.yy),e.mm+=1,se(e));ce(e)}(e)}function ce(e){e.mm!==g.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=E(e.yy),e.yy-=1,se(e)):e.mm>E(e.yy)&&(e.mm-=E(e.yy),e.yy+=1,se(e)):(e.mm-=1,se(e)),delete e.rd}function ue(e,t,n){return new ae(ae.dayOnOrBefore(e,t.abs()+n))}const he={CHAG:1,LIGHT_CANDLES:2,YOM_TOV_ENDS:4,CHUL_ONLY:8,IL_ONLY:16,LIGHT_CANDLES_TZEIS:32,CHANUKAH_CANDLES:64,ROSH_CHODESH:128,MINOR_FAST:256,SPECIAL_SHABBAT:512,PARSHA_HASHAVUA:1024,DAF_YOMI:2048,OMER_COUNT:4096,MODERN_HOLIDAY:8192,MAJOR_FAST:16384,SHABBAT_MEVARCHIM:32768,MOLAD:65536,USER_EVENT:131072,HEBREW_DATE:262144,MINOR_HOLIDAY:524288,EREV:1048576,CHOL_HAMOED:2097152,MISHNA_YOMI:4194304,YOM_KIPPUR_KATAN:8388608,YERUSHALMI_YOMI:16777216,NACH_YOMI:33554432},le=[[he.MAJOR_FAST,"holiday","major","fast"],[he.CHANUKAH_CANDLES,"holiday","major"],[he.HEBREW_DATE,"hebdate"],[he.MINOR_FAST,"holiday","fast"],[he.MINOR_HOLIDAY,"holiday","minor"],[he.MODERN_HOLIDAY,"holiday","modern"],[he.MOLAD,"molad"],[he.OMER_COUNT,"omer"],[he.PARSHA_HASHAVUA,"parashat"],[he.ROSH_CHODESH,"roshchodesh"],[he.SHABBAT_MEVARCHIM,"mevarchim"],[he.SPECIAL_SHABBAT,"holiday","shabbat"],[he.USER_EVENT,"user"]];class de{constructor(e,t,n,r){this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return X.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&he.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&he.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new this.constructor;for(const t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}getCategories(){const e=this.getFlags();for(const t of le)if(e&t[0])return t.slice(1);return["unknown"]}}class me extends de{constructor(e){super(e,e.toString(),he.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||X.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":return n.renderGematriya(!1);case"he-x-nonikud":return n.renderGematriya(!0);default:return n.render(t,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=X.gettext(t.getMonthName(),e);return $(n)+" "+r}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||X.getLocaleName(),n=this.getDate();if(n.getMonth()===g.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(t);default:return n.render(t,!1)}}}const fe=36e11,ge=864e11,ye=[1,1e3,1e6,1e9,6e10,fe,ge],Se=[9,6,3];function pe(e){return e<=6}function we(e){return e>=6}const ve=be("overflow",{constrain:0,reject:1},0);function be(e,t,n){const r=function(e,t,n){return(r,o)=>{if(void 0===r){const t=null!=o?o:n;if(void 0===t)throw new RangeError(`Must specify a ${e}`);return t}if(void 0===t[r])throw new RangeError(`Invalid ${e}: ${r}`);return t[r]}}(e,t,n);return(t,n)=>{const o=Te(t);return r(o[e],n)}}function Me(e,t,n,r){if(void 0===e)return t;if(!Number.isFinite(e))throw new RangeError("Number must be finite");e=Math.trunc(e);const o=Math.min(Math.max(e,t),n);if(o!==e&&1===r)throw new RangeError("Invalid overflowed value "+e);return o}function Ie(e,t){const n={};for(const r in t)void 0!==e[r]&&(n[r]=t[r](e[r]));return n}function Te(e,t){if(void 0===e&&!t)return{};if(!Ee(e))throw TypeError("options must be an object or undefined");return e}const Ae=/object|function/;function Ee(e){return null!==e&&Ae.test(typeof e)}const De=be("roundingMode",{halfExpand:Math.round,ceil:Math.ceil,trunc:Math.trunc,floor:Math.floor});function Ce(){const e=new WeakMap;return[e.get.bind(e),e.set.bind(e)]}function Ne(e,t){Object.defineProperties(e.prototype,Oe(t,(e=>({get:e}))))}function Oe(e,t){const n={};for(const r in e)n[r]=t(e[r],r);return n}function ke(e,t,n){const r={};for(const o of t)r[o]=n(e[o]);return r}function He(e,t){const n={};return e.forEach(((e,r)=>{n[e]=t(e,r)})),n}const Ye=["nanosecond","microsecond","millisecond","second","minute","hour"],Le=[...Ye,"day","week","month","year"],Fe=Le.map((e=>e+"s")),Pe=He(Le,((e,t)=>t)),Re=He(Fe,((e,t)=>t));function _e(e,t,n,r){var o;let i;if(void 0===e){if(void 0===t)throw new RangeError("Unit is required");i=t}else if(i=null!=(o=Pe[e])?o:Re[e],void 0===i||i<n||i>r)throw new RangeError("Invalid unit "+e);return i}function Ue(e,t,n,r,o,i){var a;const s=Te(e),c=null!=(a=s.roundingIncrement)?a:1,u=_e(s.smallestUnit,n,r,o),h=De(s,i?Math.round:Math.trunc);let l=s.largestUnit;"auto"===l&&(l=void 0);const d=_e(l,t=Math.max(t,u),r,o);if(u>d)throw new RangeError("Bad smallestUnit/largestUnit");if(u<6){const e=ye[u+1],t=ye[u]*c;if(e===t)throw new RangeError("Must not equal larger unit");if(e%t)throw new RangeError("Must divide into larger unit")}return{smallestUnit:u,largestUnit:d,roundingFunc:h,roundingIncrement:c}}function je(e,t,n,r){var o;const i=Te("string"==typeof e?{smallestUnit:e}:e,!0),a=null!=(o=i.roundingIncrement)?o:1,s=_e(i.smallestUnit,void 0,t,n),c=De(i,Math.round),u=ye[s]*a;if(6===s){if(1!==a)throw new RangeError("When smallestUnit is days, roundingIncrement must be 1")}else{const e=r?ge:ye[s+1];if(!r&&e===u)throw new RangeError("Must not equal larger unit");if(e%u)throw new RangeError("Must divide into larger unit")}return{smallestUnit:s,roundingFunc:c,incNano:u}}const xe=Symbol();function Be(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t instanceof e?t:e.from(t,...r)}class Ze{toJSON(){return this.toString()}}class ze extends Ze{valueOf(){throw new Error("Cannot convert object using valueOf")}}const[$e,Ve]=Ce();class Ke extends ze{constructor(e){super(),Ve(this,Object.freeze(e))}getISOFields(){return $e(this)}}function Je(e,t){return e<t?-1:e>t?1:0}function Ge(e){return Je(e,0)}function We(e,t,n){return n(e/t)*t}function qe(e){return We(e,6e10,Xe)}function Xe(e){return Math.round(Math.abs(e))*Ge(e)}function Qe(e,t,n){const r=e.div(t).mult(t),o=e.sub(r).toNumber();return r.add(n(o/t)*t)}function et(e,t){return(e%t+t)%t}function tt(e,t){return rt(n=String(e),t,"0")+n;var n}function nt(e,t,n){return e+rt(e,t,n)}function rt(e,t,n){return new Array(Math.max(0,t-e.length+1)).join(n)}function ot(e){return e<0?"-":"+"}const it=Math.pow(10,8);class at{constructor(e,t){this.high=e,this.low=t}sign(){return Ge(this.high)||Ge(this.low)}neg(){return new at(-this.high||0,-this.low||0)}abs(){return this.sign()<0?this.neg():this}add(e){const[t,n]=ut(e);return ht(this.high+t,this.low+n)}sub(e){const[t,n]=ut(e);return ht(this.high-t,this.low-n)}mult(e){return ht(this.high*e,this.low*e)}div(e){const t=this.high/e;let n=String(t);-1!==n.indexOf("e-")&&(n=t.toFixed(20));const r=n.indexOf(".");let o=0;if(-1!==r){let e=n.substr(r+1);e=nt(e,8,"0"),e=e.substr(0,8),o=parseInt(e)*(Ge(t)||1)}return ht(Math.trunc(t)||0,Math.trunc(this.low/e)+o)}toNumber(){return this.high*it+this.low}toBigInt(){return BigInt(this.high)*BigInt(it)+BigInt(this.low)}}function st(e,t){let n,r;if(e instanceof at)n=e.high,r=e.low;else if("number"==typeof e){if(t)throw new TypeError("Must supply bigint, not number");n=Math.trunc(e/it),r=e%it||0}else if("bigint"==typeof e){const t=BigInt(it);n=Number(e/t),r=Number(e%t||0)}else{if("string"!=typeof e)throw new Error("Invalid type of BigNano");{if((e=e.trim()).match(/\D/))throw new SyntaxError(`Cannot parse ${e} to a BigInt`);const t=e.length-8;n=Number(e.substr(t)),r=Number(e.substr(0,t))}}return new at(n,r)}function ct(e,t){return Je(e.high,t.high)||Je(e.low,t.low)}function ut(e){return"number"==typeof e?[0,e]:[e.high,e.low]}function ht(e,t){let n=t%it||0,r=e+Math.trunc(t/it);const o=Ge(r),i=Ge(n);return i&&o&&i!==o&&(r+=i,n-=it*i),new at(r,n)}const lt=Fe.concat("sign");function dt(e){return ke(e,lt,(e=>-e||0))}function mt(e,t){var n,r,o,i,a,s,c,u,h,l;return ft({years:null!=(n=t.years)?n:e.years,months:null!=(r=t.months)?r:e.months,weeks:null!=(o=t.weeks)?o:e.weeks,days:null!=(i=t.days)?i:e.days,hours:null!=(a=t.hours)?a:e.hours,minutes:null!=(s=t.minutes)?s:e.minutes,seconds:null!=(c=t.seconds)?c:e.seconds,milliseconds:null!=(u=t.milliseconds)?u:e.milliseconds,microseconds:null!=(h=t.microseconds)?h:e.microseconds,nanoseconds:null!=(l=t.nanoseconds)?l:e.nanoseconds})}function ft(e){return{...e,sign:gt(e)}}function gt(e){let t=0;for(const n of Fe)if(e[n]){t=Ge(e[n]);break}return t}function yt(e){let t=9;for(;t>0&&!e[Fe[t]];)t--;return t}const St={isoHour:0,isoMinute:0,isoSecond:0,isoMillisecond:0,isoMicrosecond:0,isoNanosecond:0},pt={hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};function wt(e){return{isoHour:e.hour||0,isoMinute:e.minute||0,isoSecond:e.second||0,isoMillisecond:e.millisecond||0,isoMicrosecond:e.microsecond||0,isoNanosecond:e.nanosecond||0}}function vt(e){return st(ge).mult(e.days).add(bt(e))}function bt(e){return st(e.nanoseconds).add(st(e.microseconds).mult(1e3)).add(st(e.milliseconds).mult(1e6)).add(st(e.seconds).mult(1e9)).add(st(e.minutes).mult(6e10)).add(st(e.hours).mult(fe))}function Mt(e){return e.isoHour*fe+6e10*e.isoMinute+1e9*e.isoSecond+1e6*e.isoMillisecond+1e3*e.isoMicrosecond+e.isoNanosecond}function It(e,t){let n,r=0,o=0,i=0,a=0,s=0,c=0;switch(t){case 6:n=e.div(ge),r=n.toNumber(),e=e.sub(n.mult(ge));case 5:n=e.div(fe),o=n.toNumber(),e=e.sub(n.mult(fe));case 4:n=e.div(6e10),i=n.toNumber(),e=e.sub(n.mult(6e10));case 3:n=e.div(1e9),a=n.toNumber(),e=e.sub(n.mult(1e9));case 2:n=e.div(1e6),s=n.toNumber(),e=e.sub(n.mult(1e6));case 1:n=e.div(1e3),c=n.toNumber(),e=e.sub(n.mult(1e3))}return ft({years:0,months:0,weeks:0,days:r,hours:o,minutes:i,seconds:a,milliseconds:s,microseconds:c,nanoseconds:e.toNumber()})}function Tt(e){const t=Math.floor(e/ge);e-=t*ge;const n=Math.floor(e/fe);e-=n*fe;const r=Math.floor(e/6e10);e-=6e10*r;const o=Math.floor(e/1e9);e-=1e9*o;const i=Math.floor(e/1e6);e-=1e6*i;const a=Math.floor(e/1e3);return[{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:a,isoNanosecond:e-=1e3*a},t]}const At={gregory:{bce:-1,ce:0},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0},japanese:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018}};class Et{constructor(e){this.id=e}monthCode(e,t){return"M"+tt(e,2)}convertMonthCode(e,t){const n=/L$/.test(e),r=parseInt(e.substr(1));if(n)throw new RangeError("Calendar system doesnt support leap months");return[r,!1]}}function Dt(e,t,n,r){var o;let i=null==(o=At[Ct(e)])?void 0:o[n];if(void 0===i){if(!r)throw new Error("Unkown era "+n);i=0}return(i+t)*(Ge(i)||1)}function Ct(e){return e.split("-")[0]}class Nt extends Et{computeFields(e){const t=Rt(e);return{era:void 0,eraYear:void 0,year:t.isoYear,month:t.isoMonth,day:t.isoDay}}epochMilliseconds(e,t,n){return Ft(e,t,n)}daysInMonth(e,t){return 2===t?this.inLeapYear(e)?29:28:4===t||6===t||9===t||11===t?30:31}monthsInYear(){return 12}inLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}guessYearForMonthDay(){return kt}normalizeISOYearForMonthDay(){return kt}}const Ot=new Nt("iso8601"),kt=1972,Ht=Symbol();function Yt(e){return Lt(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function Lt(e,t,n,r,o,i,a,s,c){return st(Ft(e,t,n,r,o,i,a)).mult(1e6).add(1e3*(null!=s?s:0)+(null!=c?c:0))}function Ft(e,t,n,r,o,i,a){const s=Ge(e);let c,u,h=0;const l=e>=0&&e<1e3,d=l?e+1200:e;for(;h<31;h++){c=n-s*h;const e=Date.UTC(d,t-1,c,null!=r?r:0,null!=o?o:0,null!=i?i:0,null!=a?a:0);if(!Zt(e)){u=e+s*h*864e5;break}}return(void 0===u||c<1||c>Ot.daysInMonth(e,t))&&zt(),l&&(u=new Date(u).setUTCFullYear(e)),u}function Pt(e){let t=e.div(1e6),n=e.sub(t.mult(1e6)).toNumber();n<0&&(n+=1e6,t=t.sub(1));const r=Math.floor(n/1e3);return n-=1e3*r,{...Rt(t.toNumber()),isoMicrosecond:r,isoNanosecond:n}}function Rt(e){const[t,n]=Bt(e);return{isoYear:t.getUTCFullYear(),isoMonth:t.getUTCMonth()+1,isoDay:t.getUTCDate()+n,isoHour:t.getUTCHours(),isoMinute:t.getUTCMinutes(),isoSecond:t.getUTCSeconds(),isoMillisecond:t.getUTCMilliseconds()}}function _t(e){var t;return null!=(t=e[Ht])?t:Yt(e.getISOFields())}function Ut(e){return Math.floor(Ft(e,1,1)/1e3)}function jt(e){return Bt(e.div(1e6).toNumber())[0].getUTCFullYear()}function xt(e,t,n){const[r,o]=Bt(Ft(e,t,n));return et(r.getUTCDay()+o,7)||7}function Bt(e){const t=Ge(e);let n,r=0;for(;r<31;r++){const o=new Date(e-t*r*864e5);if(!Zt(o)){n=o;break}}return void 0===n&&zt(),[n,t*r]}function Zt(e){return isNaN(e.valueOf())}function zt(){throw new RangeError("Date outside of supported range")}function $t(e,t){return Math.round((t-e)/864e5)}function Vt(e,t){return e+864e5*t}function Kt(e,t){return!Jt(e,t)&&e.calendar.toString()===t.calendar.toString()}function Jt(e,t){return ct(Yt(e.getISOFields()),Yt(t.getISOFields()))}function Gt(e,t){return Je(Mt(e.getISOFields()),Mt(t.getISOFields()))}function Wt(e,t){return Je(e.year,t.year)||Je(e.month,t.month)||Je(e.day,t.day)}function qt(e,t){return ct(e[Ht],t[Ht])}function Xt(e,t,n,r,o){return[e=Number(e),t=Me(t,1,r.monthsInYear(e),o),n=Me(n,1,r.daysInMonth(e,t),o)]}function Qt(e,t){const[n,r,o]=Xt(e.isoYear,e.isoMonth,e.isoDay,Ot,t);return{isoYear:n,isoMonth:r,isoDay:o}}function en(e,t){return{...Qt(e,t),...tn(e,t)}}function tn(e,t){let{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:a,isoNanosecond:s}=e;return{isoHour:n=Me(n,0,23,t),isoMinute:r=Me(r,0,59,t),isoSecond:o=Me(o,0,59,t),isoMillisecond:i=Me(i,0,999,t),isoMicrosecond:a=Me(a,0,999,t),isoNanosecond:s=Me(s,0,999,t)}}const nn={era:String,eraYear:Number,year:Number,month:Number,monthCode:String},rn={...nn,day:Number},on={hour:Number,minute:Number,second:Number,millisecond:Number,microsecond:Number,nanosecond:Number},an={era:String,eraYear:Number,year:Number,month:Number,monthCode:String,day:Number},sn=He(Fe,(()=>Number));class cn extends Nt{computeFields(e){const t=super.computeFields(e),{year:n}=t;return{...t,era:n<1?"bce":"ce",eraYear:n<1?-(n-1):n}}}const un=be("calendarName",{auto:0,never:1,always:2},0),hn=be("disambiguation",{compatible:0,earlier:1,later:2,reject:3},0);function ln(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Te(e),r=n.smallestUnit,o=n.fractionalSecondDigits;let i,a=0,s=1;return void 0!==r?(a=_e(r,void 0,0,t),s=ye[a],i=Se[a]||0):void 0!==o&&"auto"!==o&&(i=Me(o,0,9,1),s=Math.pow(10,9-i)),{smallestUnit:a,fractionalSecondDigits:i,roundingFunc:De(e,Math.trunc),incNano:s}}const dn=be("timeZoneName",{auto:0,never:1},0);function mn(e,t){return fn(e)+"T"+yn(e,t)}function fn(e){return gn(e)+"-"+tt(e.isoDay,2)}function gn(e){const{isoYear:t}=e;return(t<1e3||t>9999?ot(t)+tt(Math.abs(t),6):tt(t,4))+"-"+tt(e.isoMonth,2)}function yn(e,t){const n=[tt(e.isoHour,2)];return t.smallestUnit<=4&&(n.push(tt(e.isoMinute,2)),t.smallestUnit<=3&&n.push(tt(e.isoSecond,2)+vn(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t.fractionalSecondDigits)[0])),n.join(":")}function Sn(e){const[t,n]=Tt(Math.abs(e)),r=vn(t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,void 0)[0];return ot(e)+tt(t.isoHour+24*n,2)+":"+tt(t.isoMinute,2)+(t.isoSecond||r?":"+tt(t.isoSecond,2)+r:"")}function pn(e,t){return e&&(2===t||1!==t&&"iso8601"!==e)?`[u-ca=${e}]`:""}function wn(e){return e.map((e=>{let[t,n,r]=e;return r||t?Math.abs(t).toLocaleString("fullwide",{useGrouping:!1})+n:""})).join("")}function vn(e,t,n,r,o,i){let a=st(e).mult(1e6).add(st(t).mult(1e3)).add(n);o&&(a=Qe(a,void 0===r?ye[i]:Math.pow(10,9-r),o));const s=a.abs(),c=s.div(1e9);let u=tt(s.sub(c.mult(1e9)).toNumber(),9);return u=void 0===r?u.replace(/0+$/,""):u.substr(0,r),[u?"."+u:"",c.toNumber()*(a.sign()||1)]}function bn(e){Ne(e,{epochNanoseconds(){return this[Ht].toBigInt()},epochMicroseconds(){return this[Ht].div(1e3).toBigInt()},epochMilliseconds(){return this[Ht].div(1e6).toNumber()},epochSeconds(){return this[Ht].div(1e9).toNumber()}})}const Mn={calendar:"calendar"};for(const e of Le)Mn[e]="iso"+((In=e).charAt(0).toUpperCase()+In.slice(1));var In;function Tn(e){Ne(e,He((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).concat("calendar"),(e=>function(){return this.getISOFields()[Mn[e]]})))}const An=["era","eraYear","year","month","monthCode","daysInMonth","daysInYear","monthsInYear","inLeapYear"],En=[...An,"day","dayOfWeek","dayOfYear","weekOfYear","daysInWeek"];function Dn(e,t){Ne(e,He(t,(e=>function(){const t=this.calendar[e](this);return Object.defineProperty(this,e,{value:t}),t})))}function Cn(e,t){(e.prototype||e)[Symbol.toStringTag]="Temporal."+t}const Nn=be("offset",{prefer:0,use:1,ignore:2,reject:3});function On(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(3===n)throw new RangeError("Ambiguous offset");if(r.length)return r[2===n?1:0];{const r=function(e,t){const n=_t(t),r=e.getOffsetNanosecondsFor(new ji(n.sub(ge)));return e.getOffsetNanosecondsFor(new ji(n.add(ge)))-r}(e,t),o=e.getPossibleInstantsFor(t.add({nanoseconds:r*(1===n?-1:1)}));return o[1===n?0:o.length-1]}}function kn(e,t,n,r){let{year:o,month:i,day:a}=e;o+=t;const s=Me(i,1,n.monthsInYear(o),r);let c=i===s?a:1;return c=Me(c,1,n.daysInMonth(o,s),r),{year:o,month:s,day:c}}function Hn(e,t,n,r){let{year:o,month:i,day:a}=e;if(t){if(i+=t,t<0)for(;i<1;)i+=n.monthsInYear(--o);else{let e;for(;i>(e=n.monthsInYear(o));)i-=e,o++}a=Me(a,1,n.daysInMonth(o,i),r)}return{year:o,month:i,day:a}}function Yn(e,t){let{isoYear:n,isoMonth:r,isoDay:o}=e;if(t){let e=Ft(n,r,o);e=Vt(e,t),({isoYear:n,isoMonth:r,isoDay:o}=Rt(e))}return{isoYear:n,isoMonth:r,isoDay:o}}function Ln(e,t){if(yt(t)>=6)throw new RangeError("Duration cant have units >= days");return e.add(bt(t))}function Fn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=arguments.length>3?arguments[3]:void 0;const{offsetNanoseconds:o,timeZone:i,Z:a}=e;if(void 0!==o&&2!==n){if(1===n||a)return Yt(e).sub(o);{const r=Pn(e,o,i,t);if(void 0!==r)return r;if(3===n)throw new RangeError("Mismatching offset/timezone")}}return On(i,qo(e),hn(r))[Ht]}function Pn(e,t,n,r){const o=n.getPossibleInstantsFor(qo(e)),i=Yt(e),a=r?qe(t):t;for(const e of o){const t=e[Ht],n=i.sub(t).toNumber();if((r?qe(n):n)===a)return t}}function Rn(e){const{timeZone:t}=e,n={...e,...St,calendar:new Ai("iso8601")},r={...Yn(n,1),...St,calendar:new Ai("iso8601")},o=On(t,qo(n))[Ht];return On(t,qo(r))[Ht].sub(o).toNumber()}const _n="(\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?",Un="([+-])"+_n,jn="(Z|"+Un+")?(\\[([^=\\]]+)\\])?(\\[u-ca=([^\\]]+)\\])?",xn=Jn("([+-]\\d{6}|\\d{4})-?(\\d{2})"+jn),Bn=Jn("(--)?(\\d{2})-?(\\d{2})"+jn),Zn=Jn("([+-]\\d{6}|\\d{4})-?(\\d{2})-?(\\d{2})([T ](\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?)?"+jn),zn=Jn("T?"+_n+jn),$n=Jn(Un),Vn=/^([-+])?P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T((\d+)([.,](\d{1,9}))?H)?((\d+)([.,](\d{1,9}))?M)?((\d+)([.,](\d{1,9}))?S)?)?$/i,Kn=/\u2212/g;function Jn(e){return new RegExp(`^${e}$`,"i")}function Gn(e){return e.replace(Kn,"-")}function Wn(e){const t=er(e);if(!t)throw dr("dateTime",e);return t}function qn(e){const t=tr(e);if(!t)throw dr("dateTime",e);return t}function Xn(e){const t=or(e);if(void 0===t)throw dr("timeZone",e);return t}const Qn=/^Z$/i;function er(e){const t=Zn.exec(Gn(e));if(t)return function(e){const t=e[11];let n,r=!1;return t&&(r=Qn.test(t),n=r?0:sr(e.slice(12))),{...ir(e),timeZone:e[21],offsetNanoseconds:n,Z:r}}(t.slice(1))}function tr(e,t,n){const r=Zn.exec(Gn(e));if(r&&(n||!Qn.test(r[12]))&&(!t||r[4]))return ir(r.slice(1))}function nr(e){const t=xn.exec(Gn(e));if(t)return{calendar:(n=t.slice(1))[14],isoYear:hr(n[0]),isoMonth:hr(n[1]),isoDay:1};var n}function rr(e){const t=Bn.exec(Gn(e));if(t)return{calendar:(n=t.slice(1))[15],isoYear:kt,isoMonth:hr(n[1]),isoDay:hr(n[2])};var n}function or(e){const t=$n.exec(Gn(e));if(t)return sr(t.slice(1))}function ir(e){return{calendar:e[23],isoYear:hr(e[0]),isoMonth:hr(e[1]),isoDay:hr(e[2]),...ar(e.slice(4))}}function ar(e){const t=ur(e[4]);return{...Tt(cr(e[6]||""))[0],isoHour:ur(e[0]),isoMinute:ur(e[2]),isoSecond:60===t?59:t}}function sr(e){return("+"===e[0]?1:-1)*function(e){return ur(e[0])*fe+6e10*ur(e[2])+1e9*ur(e[4])+cr(e[6]||"")}(e.slice(1))}function cr(e){return parseInt(nt(e,9,"0"))}function ur(e){return parseInt(e||"0")}function hr(e){return parseInt(e||"1")}function lr(e){return void 0===e?void 0:parseInt(e)}function dr(e,t){throw new RangeError(`Cannot parse ${e} '${t}'`)}function mr(e){return{...e,calendar:void 0===e.calendar?Ei():new Ai(e.calendar)}}function fr(e){return{...mr(e),timeZone:new Or(e.timeZone)}}class gr{constructor(e){this.id=e}}class yr extends gr{constructor(e,t){super(e),this.offsetNano=t}getPossibleOffsets(){return[this.offsetNano]}getOffset(){return this.offsetNano}getTransition(){}}function Sr(e,t){const n={},r=e.formatToParts(t);for(const e of r)n[e.type]=e.value;return n}const pr={bc:"bce",ad:"ce"};function wr(e){return e=e.toLowerCase().normalize("NFD").replace(/[^a-z0-9]/g,""),pr[e]||e}const vr=Intl.DateTimeFormat;function br(e){return[].concat(e||[])}const Mr={"Pacific/Apia":{2011:[[Ir(13017528e5),-36e12,-396e11],[Ir(13168728e5),-396e11,-36e12],[Ir(13252392e5),-36e12,504e11]]}};function Ir(e){return st(e).mult(1e6)}const Tr=(new Date).getUTCFullYear()+10,Ar=[182,91,273];class Er extends gr{constructor(e){const t=new vr("en-GB",{era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZone:e});super(t.resolvedOptions().timeZone),this.format=t,this.yearEndOffsets={},this.transitionsInYear=Mr[e]||{}}getPossibleOffsets(e){let t;const n=[this.getTransition(e,-1),this.getTransition(e.sub(1),1)].filter(Boolean);for(const r of n){const[n,o,i]=r,a=e.sub(o),s=e.sub(i);if(ct(n,a)>0&&ct(n,s)>0)return[o];if(!(ct(n,a)<=0&&ct(n,s)<=0))return o<i?[]:[o,i];t=i}return void 0!==t?[t]:[1e9*this.getYearEndOffsetSec(jt(e))]}getOffset(e){return 1e9*this.getOffsetForEpochSecs(e.div(1e9).toNumber())}getOffsetForEpochSecs(e){const t=Sr(this.format,1e3*e);let n=parseInt(t.year);"bce"===wr(t.era)&&(n=-(n-1));const r=Ft(n,parseInt(t.month),parseInt(t.day),parseInt(t.hour),parseInt(t.minute),parseInt(t.second));return Math.floor(r/1e3)-e}getTransition(e,t){let n=jt(e);if(n>Tr){const r=this.getTransitionFrom(n,n+t,t,e);if(r||t>0)return r;n=Tr}return this.getTransitionFrom(Math.max(n,1847),t<0?1846:Tr,t,e)}getTransitionFrom(e,t,n,r){for(;e!==t;e+=n){let t=this.getTransitionsInYear(e);n<0&&(t=t.slice().reverse());for(const e of t)if(ct(e[0],r)===n)return e}}getYearEndOffsetSec(e){const{yearEndOffsets:t}=this;return t[e]||(t[e]=this.getOffsetForEpochSecs(Ut(e+1)-1))}getTransitionsInYear(e){const{transitionsInYear:t}=this;return t[e]||(t[e]=this.computeTransitionsInYear(e))}computeTransitionsInYear(e){const t=this.getYearEndOffsetSec(e-1),n=this.getYearEndOffsetSec(e),r=Ut(e)-1,o=Ut(e+1)-1;if(t!==n)return[this.searchTransition(r,o,t,n)];const i=this.searchIsland(t,r);return void 0!==i?[this.searchTransition(r,i[0],t,i[1]),this.searchTransition(i[0],o,i[1],n)]:[]}searchTransition(e,t,n,r){for(;t-e>1;){const r=Math.floor(e+(t-e)/2);this.getOffsetForEpochSecs(r)===n?e=r:t=r}return[st(t).mult(1e9),1e9*n,1e9*r]}searchIsland(e,t){for(const n of Ar){const r=t+86400*n,o=this.getOffsetForEpochSecs(r);if(o!==e)return[r,o]}}}const Dr={UTC:new yr("UTC",0)},[Cr,Nr]=Ce();class Or extends Ze{constructor(e){if(!e)throw new RangeError("Invalid timezone ID");super(),Nr(this,function(e){const t=(e=String(e)).toLocaleUpperCase();if(Dr[t])return Dr[t];const n=or(e);if(void 0!==n){if(Math.abs(n)>ge)throw new RangeError("Offset out of bounds");return new yr(Sn(n),n)}return Dr[t]=new Er(e)}(e))}static from(e){if(Ee(e))return function(e){const t=e.timeZone;return void 0===t?e:Ee(t)&&void 0===t.timeZone?t:new Or(t)}(e);const t=er(String(e));if(t){if(t.timeZone){const e=fr(t);return function(e){const{offsetNanoseconds:t,timeZone:n,Z:r}=e;if(void 0!==t&&!r&&void 0===Pn(e,t,n,!0))throw new RangeError("Mismatching offset/timezone")}(e),e.timeZone}if(t.Z)return new Or("UTC");if(void 0!==t.offsetNanoseconds)return new Or(Sn(t.offsetNanoseconds))}return new Or(String(e))}get id(){return this.toString()}getOffsetStringFor(e){return Sn(this.getOffsetNanosecondsFor(e))}getOffsetNanosecondsFor(e){const t=Be(ji,e);return Cr(this).getOffset(t[Ht])}getPlainDateTimeFor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ei();const n=Be(ji,e);return qo({...Pt(n[Ht].add(this.getOffsetNanosecondsFor(n))),calendar:Be(Ai,t)})}getInstantFor(e,t){return On(this,Be(Wo,e),hn(t))}getPossibleInstantsFor(e){const t=Yt(Be(Wo,e).getISOFields());return Cr(this).getPossibleOffsets(t).map((e=>new ji(t.sub(e))))}getPreviousTransition(e){const t=Be(ji,e),n=Cr(this).getTransition(t[Ht],-1);return n?new ji(n[0]):null}getNextTransition(e){const t=Be(ji,e),n=Cr(this).getTransition(t[Ht],1);return n?new ji(n[0]):null}toString(){return Cr(this).id}}function kr(e){if(void 0===e.timeZone)throw new TypeError("Must specify timeZone");return Be(Or,e.timeZone)}Cn(Or,"TimeZone");const Hr=eo((function(e,t,n){const r=$r(e,t,n);if(r)return{...r,timeZone:kr(e),offsetNanoseconds:void 0!==e.offset?Xn(String(e.offset)):void 0}})),Yr=eo($r),Lr=eo(Vr),Fr=eo((function(e,t){const n=Ni(e),r=qr(e,nn,n);if(to(r))return n.yearMonthFromFields(r,t)})),Pr=eo((function(e,t){const n=Ni(e),r=qr(e,an,n);if(to(r))return void 0===e.year&&void 0===e.calendar&&(r.year=kt),n.monthDayFromFields(r,t)})),Rr=eo(Kr),_r=eo((function(e,t,n,r){const o=Jr(e,t,n,r),i=void 0!==t.offset;if(o||i)return{...o||e.getISOFields(),timeZone:e.timeZone,offsetNanoseconds:i?Xn(String(t.offset)):e.offsetNanoseconds}}),!0),Ur=eo(Jr,!0),jr=eo(Gr,!0),xr=eo((function(e,t,n){const r=e.calendar;if(to(qr(t,nn,r))){const o=Qr(e,t,nn,r);return r.yearMonthFromFields(o,n)}}),!0),Br=eo((function(e,t,n){const r=e.calendar;if(to(qr(t,an,r))){const o=Qr(e,t,an,r);return r.monthDayFromFields(o,n)}}),!0),Zr=eo(Wr,!0),zr=eo((function(e){const t=Ie(e,sn);if(to(t))return t}));function $r(e,t,n){const r=Vr(e,n),o=Kr(e,t);if(r)return{...r.getISOFields(),...o||St}}function Vr(e,t){const n=Ni(e),r=qr(e,rn,n);if(to(r))return n.dateFromFields(r,t)}function Kr(e,t){const n=Ie(e,on);if(to(n))return tn(wt(n),t)}function Jr(e,t,n,r){const o=Gr(e,t,r),i=Wr(e,t,n);if(o||i)return{...e.getISOFields(),...o?o.getISOFields():{},...i}}function Gr(e,t,n){const r=e.calendar,o=qr(t,rn,r);if(to(o)){const t=Qr(e,o,rn,r);return r.dateFromFields(t,n)}}function Wr(e,t,n){const r=Ie(t,on);if(to(r))return tn(wt((o=e,i=r,Oe(on,((e,t)=>{var n;return null!=(n=i[t])?n:o[t]})))),n);var o,i}function qr(e,t,n){let r=Object.keys(t);return r=n.fields?Array.prototype.slice.call(n.fields(r)):Object.keys(Xr(n,r)),Xr(e,r)}function Xr(e,t){const n={};for(const r of t)void 0!==e[r]&&(n[r]=e[r]);return n}function Qr(e,t,n,r){const o=qr(e,n,r);return r.mergeFields?r.mergeFields(o,t):Di(o,t)}function eo(e,t){return function(){if(t){const e=arguments.length<=1?void 0:arguments[1];if(!Ee(e))throw new TypeError("must be object-like");if(void 0!==e.calendar)throw new TypeError("calendar not allowed");if(void 0!==e.timeZone)throw new TypeError("timeZone not allowed")}const n=e(...arguments);if(!n)throw new TypeError("No valid fields");return n}}function to(e){return Object.keys(e).length>0}const no=st(ge).mult(1e8),ro=no.mult(-1),oo=no.add(86399999999999),io=ro.sub(86399999999999);function ao(e,t){const n=Yt(e);so(n),wi(n,t)}function so(e){-1!==ct(e,io)&&1!==ct(e,oo)||zt()}function co(e,t){const n=ho(Mt(e),t),[r,o]=Tt(n);return{...Yn(e,o),...r}}function uo(e,t){const n=ho(Mt(e),t),[r]=Tt(n);return r}function ho(e,t){return We(e,t.incNano,t.roundingFunc)}function lo(e,t,n){return(r,o)=>{const i=po(e,o)?{}:{...e,...t};return{buildKey:So(r,o,!1),buildFormat:function(e,t){return new vr(r,{calendar:e,timeZone:t||void 0,...i,...o,...n})},buildEpochMilli:mo}}}function mo(e){return e.epochMilliseconds}function fo(e,t,n){return(r,o)=>{const i=po(e,o)?{}:e;return{buildKey:So(r,o,n),buildFormat:function(e,n){return new vr(r,{calendar:e,...i,...o,...t,timeZone:n,timeZoneName:void 0})},buildEpochMilli:void 0!==o.timeZone?go.bind(null,new Or(o.timeZone)):yo}}}function go(e,t){const n=qo({...St,...t.getISOFields()});return e.getInstantFor(n).epochMilliseconds}function yo(e){return Ft((t=e.getISOFields()).isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond);var t}function So(e,t,n){var r;const o=null!=(r=t.calendar)?r:function(e){for(const t of e){const e=t.match(/-u-ca-(.*)$/);if(e)return e[1]}}(e),i=t.timeZone;return function(e,t){var r,a,s,c;const u=null==(r=e.calendar)?void 0:r.id,h=null==(a=e.timeZone)?void 0:a.id;if(t){if((null==(s=t.calendar)?void 0:s.id)!==u)throw new RangeError("Mismatching calendar");if((null==(c=t.timeZone)?void 0:c.id)!==h)throw new RangeError("Mismatching timeZone")}if((n||"iso8601"!==u)&&void 0!==u&&void 0!==o&&o!==u)throw new RangeError("Non-iso calendar mismatch");if(void 0!==h&&void 0!==i&&i!==h)throw new RangeError("Given timeZone must agree");return[o||u||"iso8601",i||h||"UTC"]}}function po(e,t){for(const n in e)if(void 0!==t[n])return!0;return!1}function wo(e,t){e.prototype.toLocaleString=function(e,n){const r=t(br(e),n||{});return r.buildFormat(...r.buildKey(this)).format(r.buildEpochMilli(this))},e.prototype[xe]=t}function vo(e){return null==e?void 0:e[xe]}function bo(e,t,n,r){if(void 0!==e){if(void 0!==r)throw new RangeError("Partial units must be last unit");return[parseInt(e),void 0!==t?cr(t)*(ye[n]/1e9):void 0]}if(void 0!==r){const e=Math.trunc(r/ye[n]);return[e,r-e*ye[n]]}return[void 0,void 0]}const Mo=be("offset",{auto:0,never:1},0);class Io extends Ke{constructor(){super({...tn({isoHour:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,isoMinute:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,isoSecond:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,isoMillisecond:arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,isoMicrosecond:arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,isoNanosecond:arguments.length>5&&void 0!==arguments[5]?arguments[5]:0},1),calendar:Ei()})}static from(e,t){const n=ve(t);return To(e instanceof Io?e.getISOFields():"object"==typeof e?Rr(e,n):function(e){let t=function(e){const t=zn.exec(Gn(e));if(t)return ar(t.slice(1))}(e);if(void 0!==t){if("T"!==e.charAt(0)){const n=nr(e)||rr(e);n&&function(e){try{return Qt(e,1),!0}catch(e){return!1}}(n)&&(t=void 0)}}else t=tr(e,!0);if(void 0===t)throw dr("time",e);return t}(String(e)))}static compare(e,t){return Gt(Be(Io,e),Be(Io,t))}with(e,t){return To(Zr(this,e,ve(t)))}add(e){return Eo(this,Be(Ko,e))}subtract(e){return Eo(this,dt(Be(Ko,e)))}until(e,t){return Do(this,Be(Io,e),t)}since(e,t){return Do(Be(Io,e),this,t)}round(e){const t=je(e,0,5);return To(uo(this.getISOFields(),t))}equals(e){return!Gt(this,Be(Io,e))}toString(e){const t=ln(e);return yn(uo(this.getISOFields(),t),t)}toZonedDateTime(e){const t=Be(Yi,e.plainDate),n=Be(Or,e.timeZone);return Fo({...t.getISOFields(),...this.getISOFields(),timeZone:n})}toPlainDateTime(e){return Be(Yi,e).toPlainDateTime(this)}}function To(e){return new Io(e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function Ao(e){return Be(Io,null!=e?e:{hour:0})}function Eo(e,t){return To(function(e,t){const n=Mt(e)+bt(t).toNumber(),[r]=Tt(n);return r}(e.getISOFields(),t))}function Do(e,t,n){const r=Ue(n,5,0,0,5);return Jo(function(e,t,n){return It(st(We(Mt(t)-Mt(e),ye[n.smallestUnit]*n.roundingIncrement,n.roundingFunc)),n.largestUnit)}(e.getISOFields(),t.getISOFields(),r))}Cn(Io,"PlainTime"),Tn(Io,Ye),wo(Io,(function(e,t){return{buildKey:()=>["",""],buildFormat:()=>new vr(e,{hour:"numeric",minute:"2-digit",second:"2-digit",...t,timeZone:"UTC",timeZoneName:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0}),buildEpochMilli:e=>Math.trunc(Mt(e.getISOFields())/1e6)}}));const Co={day:1};class No extends Ke{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ei();const r=Qt({isoYear:e,isoMonth:t,isoDay:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1},1),o=Be(Ai,n);var i,a;i=r,a=o.toString(),wi(Yt(i),a),super({...r,calendar:o})}static from(e,t){if(ve(t),e instanceof No)return Oo(e.getISOFields());if("object"==typeof e)return Fr(e,t);const n=function(e){const t=nr(e)||tr(e);if(!t)throw dr("yearMonth",e);return t}(String(e));return void 0===n.calendar&&(n.isoDay=1),Oo(mr(n))}static compare(e,t){return Jt(Be(No,e),Be(No,t))}with(e,t){return xr(this,e,t)}add(e,t){return ko(this,Be(Ko,e),t)}subtract(e,t){return ko(this,dt(Be(Ko,e)),t)}until(e,t){return Ho(this,Be(No,e),!1,t)}since(e,t){return Ho(this,Be(No,e),!0,t)}equals(e){return!Jt(this,Be(No,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=un(e);return("iso8601"===n?gn(t):fn(t))+pn(n,r)}toPlainDate(e){return this.calendar.dateFromFields({year:this.year,month:this.month,day:e.day})}}function Oo(e){return new No(e.isoYear,e.isoMonth,e.calendar,e.isoDay)}function ko(e,t,n){return e.toPlainDate({day:t.sign<0?e.daysInMonth:1}).add(t,n).toPlainYearMonth()}function Ho(e,t,n,r){return Jo(Ri(e.toPlainDate(Co),t.toPlainDate(Co),Oi(e,t),n,Ue(r,9,8,8,9)))}Cn(No,"PlainYearMonth"),Tn(No),Dn(No,An),wo(No,fo({year:"numeric",month:"numeric"},{weekday:void 0,day:void 0,hour:void 0,minute:void 0,second:void 0},!0));const Yo=Symbol();class Lo extends Ke{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ei();const r=Be(Or,t),o=Be(Ai,n),i=st(e),[a,s]=Po(i,r);ao(a,o.toString()),super({...a,calendar:o,timeZone:r,offset:Sn(s)}),this[Ht]=i,this[Yo]=s}static from(e,t){const n=Nn(t,3),r=ve(t);if(e instanceof Lo)return new Lo(e.epochNanoseconds,e.timeZone,e.calendar);const o="object"==typeof e;return Fo(o?Hr(e,r,t):fr(Wn(String(e))),!o,n,t)}static compare(e,t){return qt(Be(Lo,e),Be(Lo,t))}get timeZone(){return this.getISOFields().timeZone}get offsetNanoseconds(){return this[Yo]}get offset(){return this.getISOFields().offset}with(e,t){hn(t);const n=ve(t),r=Nn(t,0);return Fo(_r(this,e,n,t),!1,r,t)}withPlainDate(e){const t=Be(Yi,e),n=t.toPlainDateTime(this),{timeZone:r}=this,o=On(r,n);return new Lo(o.epochNanoseconds,r,ki(this,t))}withPlainTime(e){return Fo({...this.getISOFields(),...void 0===e?St:Be(Io,e).getISOFields()})}withCalendar(e){return new Lo(this.epochNanoseconds,this.timeZone,e)}withTimeZone(e){return new Lo(this.epochNanoseconds,e,this.calendar)}add(e,t){return Ro(this,Be(Ko,e),t)}subtract(e,t){return Ro(this,dt(Be(Ko,e)),t)}until(e,t){return Uo(this,Be(Lo,e),!1,t)}since(e,t){return Uo(this,Be(Lo,e),!0,t)}round(e){return _o(this,je(e,0,6))}equals(e){return this,Kt(this,t=Be(Lo,e))&&this.timeZone.toString()===t.timeZone.toString();var t}startOfDay(){return Fo({...this.getISOFields(),...St,offsetNanoseconds:this.offsetNanoseconds},!1,0)}get hoursInDay(){return Rn(this.getISOFields())/fe}toString(e){const t=ln(e),n=Mo(e),r=dn(e),o=un(e),i=_o(this,t);return mn(i.getISOFields(),t)+(0===n?Sn(qe(i.offsetNanoseconds)):"")+(a=this.timeZone.toString(),1!==r?`[${a}]`:"")+pn(this.calendar.toString(),o);var a}toPlainYearMonth(){return Oo(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDateTime(){return qo(this.getISOFields())}toPlainDate(){return Li(this.getISOFields())}toPlainTime(){return To(this.getISOFields())}toInstant(){return new ji(this.epochNanoseconds)}}function Fo(e,t,n,r){const o=Fn(e,t,n,r);return new Lo(o,e.timeZone,e.calendar)}function Po(e,t){const n=new ji(e),r=t.getOffsetNanosecondsFor(n);return[Pt(e.add(r)),r]}function Ro(e,t,n){const r=e.getISOFields(),o=function(e,t,n){const{calendar:r,timeZone:o}=e,i=r.dateAdd(Li(e),mt(t,pt),n);return On(o,qo({...e,...i.getISOFields()}))[Ht].add(bt(t))}(r,t,n);return new Lo(o,r.timeZone,r.calendar)}function _o(e,t){const n=e.getISOFields(),r=function(e,t,n){const{calendar:r,timeZone:o}=e;let i,a,s=Mt(e);return 6===n.smallestUnit?(i=St,a=n.roundingFunc(s/Rn(e))):(s=ho(s,n),[i,a]=Tt(s)),Fn({...Yn(e,a),...i,offsetNanoseconds:t,calendar:r,timeZone:o},!1,0)}(n,e.offsetNanoseconds,t);return new Lo(r,n.timeZone,n.calendar)}function Uo(e,t,n,r){const o=Ue(r,5,0,0,9),{largestUnit:i}=o;if(i>=6&&e.timeZone.id!==t.timeZone.id)throw new Error("Must be same timeZone");return Jo(Pi(e,t,Oi(e,t),n,o))}function jo(e){if(void 0===e)return;if(Ee(e))return e instanceof Lo||e instanceof Wo?e:Be(void 0!==e.timeZone?Lo:Wo,e);if("symbol"==typeof e)throw new TypeError("Incorrect relativeTo type");const t=er(String(e));if(t)return void 0!==t.timeZone?Fo(fr(t),!0):qo(mr(t));throw new RangeError("Invalid value of relativeTo")}function xo(e,t,n,r){return(n instanceof Yi?function(e,t,n,r){const o=n.add(e);return[r.dateUntil(n,o,{largestUnit:Le[t]}),o]}(e,Math.max(6,t),n,r):Bo(e,t,n,r))[0]}function Bo(e,t,n,r,o){const i=!0!==o&&t>7&&e.weeks;i&&(e=mt(e,{weeks:0}));let a=n.add(e),s=_i(n,a,r,t);return i&&(s=mt(s,{weeks:i}),a=a.add({weeks:i})),[s,a]}function Zo(e,t,n,r){const o=Fe[t],{sign:i}=e;if(!i)return e;const a={};for(let n=9;n>=t;n--){const t=Fe[n];a[t]=e[t]}const s={[o]:i},c=n.add(a),u=c.add(s),h=_t(c),l=_t(u),d=_t(r).sub(h).toNumber()/l.sub(h).toNumber()*i;return a[o]+=d,a}function zo(e,t,n,r,o,i){const{largestUnit:a,smallestUnit:s,roundingIncrement:c,roundingFunc:u}=i;if(!we(a))return It(Qe(_t(n).sub(_t(t)).mult(o?-1:1),ye[s]*c,u),a);let h=Zo(e,s,t,n);const l=Fe[s];function d(){const e=h[l];h[l]=We(e,c,u)}return u===Math.round&&d(),o&&(h=dt(h)),u!==Math.round&&d(),s>0&&(h=o?dt(xo(dt(h),a,t,r)):xo(h,a,t,r)),h}Cn(Lo,"ZonedDateTime"),Tn(Lo,Ye),Dn(Lo,En),bn(Lo),wo(Lo,lo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:"short"},{}));const[$o,Vo]=Ce();class Ko extends ze{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0;super();const h=zr({years:e,months:t,weeks:n,days:r,hours:o,minutes:i,seconds:a,milliseconds:s,microseconds:c,nanoseconds:u});Vo(this,function(e){const t=ft(e),{sign:n}=t;for(const e of Fe){const r=t[e],o=Ge(t[e]);if(o&&o!==n)throw new RangeError("All fields must be same sign");if(!Number.isInteger(r))throw new RangeError("Duration fields must be integers")}return t}(h))}static from(e){return Jo("object"==typeof e?zr(e):function(e){const t=function(e){const t=Vn.exec(Gn(e));if(t){let e,n,r,o;[e,o]=bo(t[8],t[10],5,void 0),[n,o]=bo(t[12],t[14],4,o),[r,o]=bo(t[16],t[18],3,o);const i=function(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}({years:lr(t[2]),months:lr(t[3]),weeks:lr(t[4]),days:lr(t[5]),hours:e,minutes:n,seconds:r});if(!Object.keys(i).length)throw new RangeError("Duration string must have at least one field");const a=It(st(o||0),2);i.milliseconds=a.milliseconds,i.microseconds=a.microseconds,i.nanoseconds=a.nanoseconds;let s=ft(i);return"-"===t[1]&&(s=dt(s)),s}}(e);if(void 0===t)throw dr("duration",e);return t}(e))}static compare(e,t,n){return function(e,t,n){if(void 0===n&&yt(e)<=6&&yt(t)<=6)return ct(vt(e),vt(t));if(!n)throw new RangeError("Need relativeTo");const r=n.add(e),o=n.add(t);return void 0!==n[Ht]?qt(r,o):Jt(r,o)}(Be(Ko,e),Be(Ko,t),jo(Te(n).relativeTo))}get years(){return $o(this).years}get months(){return $o(this).months}get weeks(){return $o(this).weeks}get days(){return $o(this).days}get hours(){return $o(this).hours}get minutes(){return $o(this).minutes}get seconds(){return $o(this).seconds}get milliseconds(){return $o(this).milliseconds}get microseconds(){return $o(this).microseconds}get nanoseconds(){return $o(this).nanoseconds}get sign(){return $o(this).sign}get blank(){return!this.sign}with(e){return Jo({...$o(this),...zr(e)})}negated(){return Jo(dt($o(this)))}abs(){return Jo(ke($o(this),lt,(e=>Math.abs(e))))}add(e,t){return Go(this,Be(Ko,e),t)}subtract(e,t){return Go(this,dt(Be(Ko,e)),t)}round(e){const t="string"==typeof e?{smallestUnit:e}:e;if(!Ee(t))throw new TypeError("Must specify options");if(void 0===t.largestUnit&&void 0===t.smallestUnit)throw new RangeError("Must specify either largestUnit or smallestUnit");const n=Ue(t,yt(this),0,0,9,!0),r=jo(t.relativeTo);return Jo(function(e,t,n,r){const{largestUnit:o,smallestUnit:i,roundingIncrement:a,roundingFunc:s}=t;if(void 0===n&&yt(e)<=6&&pe(o)&&pe(i))return It(Qe(vt(e),ye[i]*a,s),o);if(!n)throw new RangeError("Need relativeTo");const[c,u]=Bo(e,o,n,r);return zo(c,n,u,r,!1,t)}(this,n,r,r?r.calendar:void 0))}total(e){const t=function(e){let t,n;return"string"==typeof e?n=e:(n=Te(e).unit,t=e.relativeTo),{unit:_e(n,void 0,0,9),relativeTo:t}}(e),n=jo(t.relativeTo);return function(e,t,n,r){if(void 0===n&&yt(e)<=6&&pe(t))return vt(e).toNumber()/ye[t];if(!n)throw new RangeError("Need relativeTo");const[o,i]=Bo(e,t,n,r,!0);return Zo(o,t,n,i)[Fe[t]]}(this,t.unit,n,n?n.calendar:void 0)}toString(e){const t=ln(e,3);return function(e,t){const{smallestUnit:n,fractionalSecondDigits:r,roundingFunc:o}=t,{sign:i}=e,a=e.hours,s=e.minutes;let c=e.seconds,u="";if(n<=3){const t=vn(e.milliseconds,e.microseconds,e.nanoseconds,r,o,n);u=t[0],c+=t[1]}const h=void 0!==r||u||!i;return(i<0?"-":"")+"P"+wn([[e.years,"Y"],[e.months,"M"],[e.weeks,"W"],[e.days,"D"]])+(a||s||c||h?"T"+wn([[a,"H"],[s,"M"],[n<=3?c:0,u+"S",h]]):"")}($o(this),t)}toLocaleString(e,t){return this.toString()}}function Jo(e){return new Ko(e.years,e.months,e.weeks,e.days,e.hours,e.minutes,e.seconds,e.milliseconds,e.microseconds,e.nanoseconds)}function Go(e,t,n){const r=jo(Te(n).relativeTo);return Jo(function(e,t,n,r){const o=Math.max(yt(e),yt(t));if(void 0===n&&o<=6)return It(vt(e).add(vt(t)),o);if(!n)throw new RangeError("Need relativeTo");const i=n.add(e).add(t);return _i(n,i,r,o)}(e,t,r,r?r.calendar:void 0))}Cn(Ko,"Duration");class Wo extends Ke{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Ei();const h=en({isoYear:e,isoMonth:t,isoDay:n,isoHour:r,isoMinute:o,isoSecond:i,isoMillisecond:a,isoMicrosecond:s,isoNanosecond:c},1),l=Be(Ai,u);ao(h,l.toString()),super({...h,calendar:l})}static from(e,t){const n=ve(t);return qo(e instanceof Wo?e.getISOFields():"object"==typeof e?Yr(e,n,t):mr(qn(String(e))))}static compare(e,t){return Jt(Be(Wo,e),Be(Wo,t))}with(e,t){const n=ve(t);return qo(Ur(this,e,n,t))}withPlainDate(e){const t=Be(Yi,e);return qo({...this.getISOFields(),...t.getISOFields(),calendar:ki(this,t)})}withPlainTime(e){return qo({...this.getISOFields(),...Ao(e).getISOFields()})}withCalendar(e){return qo({...this.getISOFields(),calendar:Be(Ai,e)})}add(e,t){return Xo(this,Be(Ko,e),t)}subtract(e,t){return Xo(this,dt(Be(Ko,e)),t)}until(e,t){return Qo(this,Be(Wo,e),!1,t)}since(e,t){return Qo(this,Be(Wo,e),!0,t)}round(e){const t=je(e,0,6);return qo({...co(this.getISOFields(),t),calendar:this.calendar})}equals(e){return Kt(this,Be(Wo,e))}toString(e){const t=ln(e),n=un(e);return mn(co(this.getISOFields(),t),t)+pn(this.calendar.toString(),n)}toZonedDateTime(e,t){const n=Be(Or,e),r=On(n,this,hn(t));return new Lo(r.epochNanoseconds,n,this.calendar)}toPlainYearMonth(){return Oo(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDate(){return Li(this.getISOFields())}toPlainTime(){return To(this.getISOFields())}}function qo(e){return new Wo(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,e.calendar)}function Xo(e,t,n){const r=function(e,t,n){const{calendar:r}=e;return Pt(Yt(r.dateAdd(Li(e),mt(t,pt),n).getISOFields()).add(Mt(e)).add(bt(t)))}(e.getISOFields(),t,n);return qo({...r,calendar:e.calendar})}function Qo(e,t,n,r){const o=Ue(r,6,0,0,9);return Jo(Pi(e,t,Oi(e,t),n,o))}Cn(Wo,"PlainDateTime"),Tn(Wo,Ye),Dn(Wo,En),wo(Wo,fo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{}));class ei extends Ke{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ei();super({...Qt({isoYear:arguments.length>3&&void 0!==arguments[3]?arguments[3]:kt,isoMonth:e,isoDay:t},1),calendar:Be(Ai,n)})}static from(e,t){if(ve(t),e instanceof ei)return ti(e.getISOFields());if("object"==typeof e)return Pr(e,t);const n=function(e){const t=rr(e)||tr(e);if(!t)throw dr("monthDay",e);return t}(String(e));return void 0===n.calendar&&(n.isoYear=kt),ti(mr(n))}with(e,t){return Br(this,e,t)}equals(e){return!Jt(this,Be(ei,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=un(e);return("iso8601"===n?function(e){return tt(e.isoMonth,2)+"-"+tt(e.isoDay,2)}(t):fn(t))+pn(n,r)}toPlainDate(e){return this.calendar.dateFromFields({year:e.year,monthCode:this.monthCode,day:this.day},{overflow:"reject"})}}function ti(e){return new ei(e.isoMonth,e.isoDay,e.calendar,e.isoYear)}function ni(e){return e instanceof Yi||e instanceof Wo||e instanceof Lo||e instanceof No||e instanceof ei}function ri(e,t,n){let r;if(e instanceof Yi)r=e;else if(ni(e)){if(n&&e instanceof ei)throw new TypeError("PlainMonthDay not allowed");r=Li(e.getISOFields())}else r=Yi.from(e);return Hi(r.calendar,t),r}function oi(e,t,n){if(ni(e))return e.getISOFields();let{era:r,eraYear:o,year:i,month:a,monthCode:s,day:c}=e;const u=void 0!==o&&void 0!==r?Dt(t.id,o,r):void 0;if(void 0===i){if(void 0===u)throw new TypeError("Must specify either a year or an era & eraYear");i=u}else if(void 0!==u&&u!==i)throw new RangeError("year and era/eraYear must match");if(void 0===c)throw new TypeError("Must specify day");const h=ve(n);if(void 0!==s){const[e,n]=t.convertMonthCode(s,i);if(void 0!==a&&a!==e)throw new RangeError("Month doesnt match with monthCode");if(a=e,n){if(1===h)throw new RangeError("Month code out of range");c=t.daysInMonth(i,a)}}else if(void 0===a)throw new TypeError("Must specify either a month or monthCode");return[i,a,c]=Xt(i,a,c,t,h),Rt(t.epochMilliseconds(i,a,c))}function ii(e,t){if(ni(e)){if(t&&e instanceof ei)throw new TypeError("PlainMonthDay not allowed");return e.getISOFields()}return Yi.from(e).getISOFields()}function ai(e,t){return $t(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t+1,1,1))}function si(e,t,n,r){return $t(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t,n,r))+1}Cn(ei,"PlainMonthDay"),Tn(ei),Dn(ei,["monthCode","day"]),wo(ei,fo({month:"numeric",day:"numeric"},{weekday:void 0,year:void 0,hour:void 0,minute:void 0,second:void 0},!0));const ci={hebrew:6,chinese:0,dangi:0};class ui extends Et{constructor(e){const t=hi(e);if(n=e,r=t.resolvedOptions().calendar,Ct(n)!==Ct(r))throw new RangeError("Invalid calendar: "+e);var n,r;super(e),this.format=t,this.yearCorrection=this.computeFieldsDumb(0).year-1970,this.monthCacheByYear={}}epochMilliseconds(e,t,n){return Vt(this.queryMonthCache(e)[0][t-1],n-1)}daysInMonth(e,t){const n=this.queryMonthCache(e)[0],r=n[t-1];return t>=n.length&&(e++,t=0),$t(r,this.queryMonthCache(e)[0][t])}monthsInYear(e){return this.queryMonthCache(e)[0].length}monthCode(e,t){const n=this.queryLeapMonthByYear(t);return!n||e<n?super.monthCode(e,t):super.monthCode(e-1,t)+(e===n?"L":"")}convertMonthCode(e,t){const n=this.queryLeapMonthByYear(t);let r=/L$/.test(e),o=parseInt(e.substr(1)),i=!1;if(r){const e=ci[this.id];if(void 0===e)throw new RangeError("Calendar system doesnt support leap months");if(e){if(o!==e-1)throw new RangeError("Invalid leap-month month code")}else if(o<=1||o>=12)throw new RangeError("Invalid leap-month month code")}return!r||n&&o===n-1||(i=!0,r=!1),(r||n&&o>=n)&&o++,[o,i]}inLeapYear(e){const t=ai(this,e);return t>ai(this,e-1)&&t>ai(this,e+1)}guessYearForMonthDay(e,t){let n=1970+this.yearCorrection;const r=n+100;for(;n<r;n++){const[r,o]=this.convertMonthCode(e,n);if(!o&&r<=this.monthsInYear(n)&&t<=this.daysInMonth(n,r))return n}throw new Error("Could not guess year")}normalizeISOYearForMonthDay(e){return e}computeFields(e){const t=this.computeFieldsDumb(e),n=this.queryMonthCache(t.year)[2];return{...t,month:n[t.month]}}computeFieldsDumb(e){const t=Sr(this.format,e);let n,r,o=parseInt(t.relatedYear||t.year);var i;return t.era&&(i=this.id,void 0!==At[Ct(i)])&&(n=wr(t.era),r=o,o=Dt(this.id,r,n,!0)),{era:n,eraYear:r,year:o,month:t.month,day:parseInt(t.day)}}queryLeapMonthByYear(e){const t=this.queryMonthCache(e),n=this.queryMonthCache(e-1),r=this.queryMonthCache(e+1);if(t[0].length>n[0].length&&t[0].length>r[0].length){const e=t[1],r=n[1];for(let t=0;t<r.length;t++)if(r[t]!==e[t])return t+1}}queryMonthCache(e){const{monthCacheByYear:t}=this;return t[e]||(t[e]=this.buildMonthCache(e))}buildMonthCache(e){const t=[],n=[],r={};let o=Ft(this.guessISOYear(e),1,1);for(o=Vt(o,400);;){const r=this.computeFieldsDumb(o);if(r.year<e)break;o=Vt(o,1-r.day),r.year===e&&(t.unshift(o),n.unshift(r.month)),o=Vt(o,-1)}for(let e=0;e<n.length;e++)r[n[e]]=e+1;return[t,n,r]}guessISOYear(e){return e-this.yearCorrection}}function hi(e){return new vr("en-US",{calendar:e,era:"short",year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}const li=Ft(1868,9,8),di={gregory:cn,japanese:class extends cn{constructor(){super(...arguments),this.format=hi("japanese")}computeFields(e){const t=super.computeFields(e);if(e>=li){const n=Sr(this.format,e);t.era=wr(n.era),t.eraYear=parseInt(n.relatedYear||n.year)}return t}},islamic:class extends ui{guessISOYear(e){return Math.ceil(32*e/33+622)}}},mi={iso8601:Ot};function fi(e){const t=(e=String(e)).toLocaleLowerCase();return mi[t]||(mi[t]=new(di[Ct(t)]||ui)(e))}const gi=Ft(1582,10,15),yi=Ft(622,7,18),Si={buddhist:gi,japanese:gi,roc:gi,islamic:yi,"islamic-rgsa":yi,indian:0},pi={};function wi(e,t){return vi(e.div(1e6).toNumber(),t)}function vi(e,t){if(function(e,t){return function(e){let t=pi[e];if(void 0===t){const n=Si[e];if(void 0===n)t=!1;else{let r=fi(e);r instanceof ui||(r=new ui(e));const o=n-864e5,i=r.computeFields(o);t=o!==r.epochMilliseconds(i.year,i.month,i.day)}pi[e]=t}return t}(t)&&e<Si[t]}(e,t))throw new RangeError("Invalid timestamp for calendar")}function bi(e,t,n){const r=7+t-n;return-et(xt(e,1,r)-t,7)+r-1}function Mi(e,t,n){const r=bi(e,t,n),o=bi(e+1,t,n);return(ai(Ot,e)-r+o)/7}const[Ii,Ti]=Ce();class Ai extends Ze{constructor(e){super(),"islamicc"===e&&(e="islamic-civil"),Ti(this,fi(e))}static from(e){if(Ee(e))return function(e){const t=e.calendar;return void 0===t?e:Ee(t)&&void 0===t.calendar?t:new Ai(t)}(e);const t=tr(String(e),!1,!0);return new Ai(t?t.calendar||"iso8601":String(e))}get id(){return this.toString()}era(e){const t=ii(e,!0);return Ci(Ii(this),t.isoYear,t.isoMonth,t.isoDay).era}eraYear(e){const t=ii(e,!0);return Ci(Ii(this),t.isoYear,t.isoMonth,t.isoDay).eraYear}year(e){const t=ii(e,!0);return Ci(Ii(this),t.isoYear,t.isoMonth,t.isoDay).year}month(e){const t=ii(e,!0);return Ci(Ii(this),t.isoYear,t.isoMonth,t.isoDay).month}monthCode(e){const t=ri(e,this);return Ii(this).monthCode(t.month,t.year)}day(e){const t=ii(e);return Ci(Ii(this),t.isoYear,t.isoMonth,t.isoDay).day}dayOfWeek(e){const t=ii(e,!0);return xt(t.isoYear,t.isoMonth,t.isoDay)}dayOfYear(e){const t=ri(e,this,!0);return si(Ii(this),t.year,t.month,t.day)}weekOfYear(e){const t=ii(e,!0);return function(e,t,n,r,o){const i=bi(e,1,4),a=Math.floor((si(Ot,e,t,n)-i-1)/7)+1;if(a<1)return a+Mi(e-1,1,4);const s=Mi(e,1,4);return a>s?a-s:a}(t.isoYear,t.isoMonth,t.isoDay)}daysInWeek(e){return ii(e,!0),7}daysInMonth(e){const t=ri(e,this,!0);return Ii(this).daysInMonth(t.year,t.month)}daysInYear(e){const t=ri(e,this,!0);return ai(Ii(this),t.year)}monthsInYear(e){const t=ri(e,this,!0);return Ii(this).monthsInYear(t.year)}inLeapYear(e){return Ii(this).inLeapYear(this.year(e))}dateFromFields(e,t){const n=oi(Ie(e,rn),Ii(this),t);return new Yi(n.isoYear,n.isoMonth,n.isoDay,this)}yearMonthFromFields(e,t){const n=oi({...Ie(e,nn),day:1},Ii(this),t);return new No(n.isoYear,n.isoMonth,this,n.isoDay)}monthDayFromFields(e,t){const n=Ii(this);let{era:r,eraYear:o,year:i,month:a,monthCode:s,day:c}=Ie(e,an);if(void 0===c)throw new TypeError("required property 'day' missing or undefined");if(void 0!==s?i=kt:void 0!==r&&void 0!==o&&(i=Dt(n.id,o,r)),void 0===i){if(void 0===s)throw new TypeError("either year or monthCode required with month");i=n.guessYearForMonthDay(s,c)}const u=oi({year:i,month:a,monthCode:s,day:c},n,t);return new ei(u.isoMonth,u.isoDay,this,n.normalizeISOYearForMonthDay(u.isoYear))}dateAdd(e,t,n){const r=Ii(this),o=function(e,t,n,r){e=Hn(e=kn(e,t.years,n,r),t.months,n,r);let o=n.epochMilliseconds(e.year,e.month,e.day);const i=Math.trunc(bt(t).div(ge).toNumber());return o=Vt(o,7*t.weeks+t.days+i),Rt(o)}(Be(Yi,e,n),Be(Ko,t),r,ve(n));return new Yi(o.isoYear,o.isoMonth,o.isoDay,this)}dateUntil(e,t,n){const r=Ii(this),o=Be(Yi,e),i=Be(Yi,t),a=Te(n).largestUnit,s="auto"===a?6:_e(a,6,6,9);return Hi(this,Oi(o,i)),Jo(function(e,t,n,r){let o=0,i=0,a=0,s=0;switch(r){case 9:o=function(e,t,n){const[,r,o]=Xt(t.year,e.month,e.day,n,0),i=Wt(t,e),a=Je(t.month,r)||Je(t.day,o);return t.year-e.year-(a&&i&&a!==i?i:0)}(e,t,n),e=kn(e,o,n,0);case 8:i=function(e,t,n){let r=0;const o=Wt(t,e);if(o){let{year:i}=e;for(;i!==t.year;)r+=n.monthsInYear(i)*o,i+=o;const[,a,s]=Xt(t.year,e.month,e.day,n,0);r+=t.month-a;const c=Je(t.day,s);c&&o&&c!==o&&(r-=o)}return r}(e,t,n),e=Hn(e,i,n,0)}return s=$t(n.epochMilliseconds(e.year,e.month,e.day),n.epochMilliseconds(t.year,t.month,t.day)),7===r&&(a=Math.trunc(s/7),s%=7),ft({years:o,months:i,weeks:a,days:s,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0})}(o,i,r,s))}fields(e){return e.slice()}mergeFields(e,t){return Di(e,t)}toString(){return Ii(this).id}}function Ei(){return new Ai("iso8601")}function Di(e,t){var n;const r={...e,...t};if(void 0!==e.year){delete r.era,delete r.eraYear,delete r.year;let n=!1;void 0===t.era&&void 0===t.eraYear||(r.era=t.era,r.eraYear=t.eraYear,n=!0),void 0!==t.year&&(r.year=t.year,n=!0),n||(r.year=e.year)}if(void 0!==e.monthCode){delete r.monthCode,delete r.month;let n=!1;void 0!==t.month&&(r.month=t.month,n=!0),void 0!==t.monthCode&&(r.monthCode=t.monthCode,n=!0),n||(r.monthCode=e.monthCode)}return void 0!==e.day&&(r.day=null!=(n=t.day)?n:e.day),r}function Ci(e,t,n,r){const o=Ft(t,n,r);return vi(o,e.id),e.computeFields(o)}function Ni(e){return void 0===e.calendar?Ei():Be(Ai,e.calendar)}function Oi(e,t){const{calendar:n}=e;return Hi(n,t.calendar),n}function ki(e,t){const n=e.calendar,r=t.calendar;if("iso8601"===n.id)return r;if("iso8601"===r.id)return n;if(n.id!==r.id)throw new RangeError("Non-ISO calendars incompatible");return n}function Hi(e,t){if(e.toString()!==t.toString())throw new RangeError("Calendars must match")}Cn(Ai,"Calendar");class Yi extends Ke{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ei();const o=Qt({isoYear:e,isoMonth:t,isoDay:n},1),i=Be(Ai,r);!function(e,t){const n=Yt(e);so(n.add(n.sign()<0?86399999999999:0)),wi(n,t)}(o,i.toString()),super({...o,calendar:i})}static from(e,t){return ve(t),e instanceof Yi?Li(e.getISOFields()):"object"==typeof e?Lr(e,t):Li(mr(qn(String(e))))}static compare(e,t){return Jt(Be(Yi,e),Be(Yi,t))}with(e,t){return jr(this,e,t)}withCalendar(e){const t=this.getISOFields();return new Yi(t.isoYear,t.isoMonth,t.isoDay,e)}add(e,t){return this.calendar.dateAdd(this,e,t)}subtract(e,t){return this.calendar.dateAdd(this,Be(Ko,e).negated(),t)}until(e,t){return Fi(this,Be(Yi,e),!1,t)}since(e,t){return Fi(this,Be(Yi,e),!0,t)}equals(e){return!Jt(this,Be(Yi,e))}toString(e){const t=un(e),n=this.getISOFields();return fn(n)+pn(n.calendar.toString(),t)}toZonedDateTime(e){const t=function(e){let t,n;if("string"==typeof e)n=e;else{if("object"!=typeof e)throw new TypeError("Invalid options/timeZone argument");if(void 0!==e.id?n=e:(n=e.timeZone,t=e.plainTime),void 0===n)throw new TypeError("Invalid timeZone argument")}return{plainTime:t,timeZone:n}}(e),n=Be(Or,t.timeZone),r=void 0===t.plainTime?void 0:Be(Io,t.plainTime);return Fo({...this.getISOFields(),...r?r.getISOFields():St,timeZone:n})}toPlainDateTime(e){return qo({...this.getISOFields(),...Ao(e).getISOFields()})}toPlainYearMonth(){return Oo(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}}function Li(e){return new Yi(e.isoYear,e.isoMonth,e.isoDay,e.calendar)}function Fi(e,t,n,r){return Jo(Ri(e,t,Oi(e,t),n,Ue(r,6,6,6,9)))}function Pi(e,t,n,r,o){return zo(_i(e,t,n,o.largestUnit),e,t,n,r,o)}function Ri(e,t,n,r,o){return zo(n.dateUntil(e,t,{largestUnit:Le[o.largestUnit]}),e,t,n,r,o)}function _i(e,t,n,r){if(!we(r))return Ui(e,t,r);const o=Li({...e.getISOFields(),calendar:n});let i,a,s,c,u,h=Li({...t.getISOFields(),calendar:n});do{a=n.dateUntil(o,h,{largestUnit:Le[r]}),i=e.add(a),s=Ui(i,t,5),c=a.sign,u=s.sign}while(c&&u&&c!==u&&(h=h.add({days:u})));return d=s,{sign:(l=a).sign||d.sign,years:l.years+d.years,months:l.months+d.months,weeks:l.weeks+d.weeks,days:l.days+d.days,hours:l.hours+d.hours,minutes:l.minutes+d.minutes,seconds:l.seconds+d.seconds,milliseconds:l.milliseconds+d.milliseconds,microseconds:l.microseconds+d.microseconds,nanoseconds:l.nanoseconds+d.nanoseconds};var l,d}function Ui(e,t,n){return It(_t(t).sub(_t(e)),n)}Cn(Yi,"PlainDate"),Tn(Yi),Dn(Yi,En),wo(Yi,fo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0},{hour:void 0,minute:void 0,second:void 0}));class ji extends ze{constructor(e){super();const t=st(e,!0);!function(e){-1!==ct(e,ro)&&1!==ct(e,no)||zt()}(t),this[Ht]=t}static from(e){if(e instanceof ji)return new ji(e.epochNanoseconds);const t=Wn(String(e)),n=t.offsetNanoseconds;if(void 0===n)throw new RangeError("Must specify an offset");return new ji(Yt(en(t,1)).sub(n))}static fromEpochSeconds(e){return new ji(st(e).mult(1e9))}static fromEpochMilliseconds(e){return new ji(st(e).mult(1e6))}static fromEpochMicroseconds(e){return new ji(e*BigInt(1e3))}static fromEpochNanoseconds(e){return new ji(e)}static compare(e,t){return qt(Be(ji,e),Be(ji,t))}add(e){return new ji(Ln(this[Ht],Be(Ko,e)))}subtract(e){return new ji(Ln(this[Ht],dt(Be(Ko,e))))}until(e,t){return xi(this,Be(ji,e),t)}since(e,t){return xi(Be(ji,e),this,t)}round(e){const t=je(e,0,5,!0);return new ji(function(e,t){const[n,r]=function(e){const t=Pt(e);return[Lt(t.isoYear,t.isoMonth,t.isoDay),Mt(t)]}(e),o=ho(r,t);return n.add(o)}(this[Ht],t))}equals(e){return!qt(this,Be(ji,e))}toString(e){const t=Te(e).timeZone;return this.toZonedDateTimeISO(null!=t?t:"UTC").toString({...e,offset:void 0===t?"never":"auto",timeZoneName:"never"})+(void 0===t?"Z":"")}toZonedDateTimeISO(e){return new Lo(this.epochNanoseconds,e)}toZonedDateTime(e){if(!Ee(e))throw new TypeError("Must specify options");if(void 0===e.calendar)throw new TypeError("Must specify a calendar");if(void 0===e.timeZone)throw new TypeError("Must specify a timeZone");return new Lo(this.epochNanoseconds,e.timeZone,e.calendar)}}function xi(e,t,n){const r=Ue(n,3,0,0,5);return Jo(function(e,t,n){return It(Qe(t.sub(e),ye[n.smallestUnit]*n.roundingIncrement,n.roundingFunc),n.largestUnit)}(e[Ht],t[Ht],r))}function Bi(){return ji.fromEpochMilliseconds(this.valueOf())}Cn(ji,"Instant"),bn(ji),wo(ji,lo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:void 0},{}));const Zi=Symbol(),zi=Symbol(),$i=Symbol();class Vi extends Intl.DateTimeFormat{constructor(e,t){const n=br(e),r=function(e){const t={};for(const n in e){let r=e[n];Ee(r)&&(r=r.toString()),t[n]=r}return t}(t||{});super(n,r),this[Zi]=n,this[zi]=r,this[$i]=new Map}format(e){const t=Ji(this,e);return t[0]===this?super.format(t[1]):t[0].format(t[1])}formatToParts(e){return super.formatToParts.call(...Ji(this,e))}formatRange(e,t){return super.formatRange.call(...Gi(this,e,t))}formatRangeToParts(e,t){return super.formatRangeToParts.call(...Gi(this,e,t))}}const Ki=Vi;function Ji(e,t){const n=vo(t);if(n){const r=Wi(e,n);return[r.buildFormat(t),r.buildEpochMilli(t)]}return[e,t]}function Gi(e,t,n){const r=vo(t);if(r!==vo(n))throw new TypeError("Mismatch of types");if(r){const o=Wi(e,r);return[o.buildFormat(t,n),new Date(o.buildEpochMilli(t)),new Date(o.buildEpochMilli(n))]}return[e,t,n]}function Wi(e,t){const n=e[$i];let r=n.get(t);return r||(r=function(e){const t={};return{buildFormat:function(n,r){const o=e.buildKey(n,r),i=o.join("|");return t[i]||(t[i]=e.buildFormat(...o))},buildEpochMilli:e.buildEpochMilli}}(t(e[Zi],e[zi])),n.set(t,r)),r}const qi={zonedDateTimeISO:function(e){return Fo(Qi("iso8601",e))},zonedDateTime:function(e,t){return Fo(Qi(e,t))},plainDateTimeISO:function(e){return qo(Qi("iso8601",e))},plainDateTime:function(e,t){return qo(Qi(e,t))},plainDateISO:function(e){return Li(Qi("iso8601",e))},plainDate:function(e,t){return Li(Qi(e,t))},plainTimeISO:function(e){return To(Qi("iso8601",e))},instant:function(){return new ji(ea())},timeZone:Xi};function Xi(){return new Or((new vr).resolvedOptions().timeZone)}function Qi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xi();const n=Be(Or,t);return{...Po(ea(),n)[0],timeZone:n,calendar:Be(Ai,e)}}function ea(){return st(Date.now()).mult(1e6)}Cn(qi,"Now");const ta={PlainYearMonth:No,PlainMonthDay:ei,PlainDate:Yi,PlainTime:Io,PlainDateTime:Wo,ZonedDateTime:Lo,Instant:ji,Calendar:Ai,TimeZone:Or,Duration:Ko,Now:qi,[Symbol.toStringTag]:"Temporal"};const na=ta;function ra(e){return e*Math.PI/180}function oa(e){return 180*e/Math.PI}class ia{constructor(e,t,n,r,o){this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}latitude;longitude;locationName=null;timeZoneId;elevation;getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){this.timeZoneId=e}}const aa=6356.9;class sa{constructor(e,t){this.date=t,this.geoLocation=e}static GEOMETRIC_ZENITH=90;static CIVIL_ZENITH=96;static NAUTICAL_ZENITH=102;static ASTRONOMICAL_ZENITH=108;date;geoLocation;getSunrise(){const e=this.getUTCSunrise0(sa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(sa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(sa.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(sa.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(sa.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(sa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(sa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(sa.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(sa.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(sa.ASTRONOMICAL_ZENITH)}static getTimeOffset(e,t){return null===e||isNaN(t)?null:e.add({milliseconds:t})}getSunriseOffsetByDegrees(e){const t=this.getUTCSunrise0(e);return isNaN(t)?null:this.getDateFromTime(t,!0)}getSunsetOffsetByDegrees(e){const t=this.getUTCSunset0(e);return isNaN(t)?null:this.getDateFromTime(t,!1)}getUTCSunrise0(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunrise(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!1)}getUTCSunset0(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunset(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!1)}getAdjustedDate(){return this.date}getElevationAdjustment(e){return oa(Math.acos(aa/(aa+e/1e3)))}adjustZenith(e,t){let n=e;return e===sa.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}static JULIAN_DAY_JAN_1_2000=2451545;static JULIAN_DAYS_PER_CENTURY=36525;getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=sa.getSunriseUTC(sa.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=sa.getSunsetUTC(sa.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return sa.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const i=Math.trunc(n*=60);n-=i;const a=Math.trunc(n*=60);n-=a;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new na.PlainTime(o,i,a,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),i=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+i-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-sa.JULIAN_DAY_JAN_1_2000)/sa.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*sa.JULIAN_DAYS_PER_CENTURY+sa.JULIAN_DAY_JAN_1_2000}static getSunGeometricMeanLongitude(e){let t=280.46646+e*(36000.76983+3032e-7*e);for(;t>360;)t-=360;for(;t<0;)t+=360;return t}static getSunGeometricMeanAnomaly(e){return 357.52911+e*(35999.05029-1537e-7*e)}static getEarthOrbitEccentricity(e){return.016708634-e*(42037e-9+1.267e-7*e)}static getSunEquationOfCenter(e){const t=ra(sa.getSunGeometricMeanAnomaly(e));return Math.sin(t)*(1.914602-e*(.004817+14e-6*e))+Math.sin(t+t)*(.019993-101e-6*e)+289e-6*Math.sin(t+t+t)}static getSunTrueLongitude(e){return sa.getSunGeometricMeanLongitude(e)+sa.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return sa.getSunTrueLongitude(e)-.00569-.00478*Math.sin(ra(t))}static getMeanObliquityOfEcliptic(e){return 23+(26+(21.448-e*(46.815+e*(59e-5-.001813*e)))/60)/60}static getObliquityCorrection(e){const t=125.04-1934.136*e;return sa.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(ra(t))}static getSunDeclination(e){const t=sa.getObliquityCorrection(e),n=sa.getSunApparentLongitude(e),r=Math.sin(ra(t))*Math.sin(ra(n));return oa(Math.asin(r))}static getEquationOfTime(e){const t=sa.getObliquityCorrection(e),n=sa.getSunGeometricMeanLongitude(e),r=sa.getEarthOrbitEccentricity(e),o=sa.getSunGeometricMeanAnomaly(e);let i=Math.tan(ra(t)/2);i*=i;const a=Math.sin(2*ra(n)),s=Math.sin(ra(o));return 4*oa(i*a-2*r*s+4*r*i*s*Math.cos(2*ra(n))-.5*i*i*Math.sin(4*ra(n))-1.25*r*r*Math.sin(2*ra(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=ra(e),o=ra(t);return Math.acos(Math.cos(ra(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=ra(e),o=ra(t);return-Math.acos(Math.cos(ra(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=sa.getJulianDay(e.toPlainDate()),o=sa.getJulianCenturiesFromJulianDay(r),i=sa.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=ra(n-a),c=ra(sa.getSunDeclination(o)),u=ra(t);return oa(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=sa.getJulianDay(e.toPlainDate()),o=sa.getJulianCenturiesFromJulianDay(r),i=sa.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=ra(n-a),c=ra(sa.getSunDeclination(o)),u=ra(t);return oa(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(u)-Math.tan(c)*Math.cos(u))))+180}static getSunriseUTC(e,t,n,r){const o=sa.getJulianCenturiesFromJulianDay(e),i=sa.getSolarNoonUTC(o,n),a=sa.getJulianCenturiesFromJulianDay(e+i/1440);let s=sa.getEquationOfTime(a),c=sa.getSunDeclination(a),u=sa.getSunHourAngleAtSunrise(t,c,r),h=n-oa(u),l=4*h,d=720+l-s;const m=sa.getJulianCenturiesFromJulianDay(sa.getJulianDayFromJulianCenturies(o)+d/1440);return s=sa.getEquationOfTime(m),c=sa.getSunDeclination(m),u=sa.getSunHourAngleAtSunrise(t,c,r),h=n-oa(u),l=4*h,d=720+l-s,d}static getSolarNoonUTC(e,t){const n=sa.getJulianCenturiesFromJulianDay(sa.getJulianDayFromJulianCenturies(e)+t/360);let r=sa.getEquationOfTime(n);const o=720+4*t-r,i=sa.getJulianCenturiesFromJulianDay(sa.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=sa.getEquationOfTime(i),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=sa.getJulianCenturiesFromJulianDay(e),i=sa.getSolarNoonUTC(o,n),a=sa.getJulianCenturiesFromJulianDay(e+i/1440);let s=sa.getEquationOfTime(a),c=sa.getSunDeclination(a),u=sa.getSunHourAngleAtSunset(t,c,r),h=n-oa(u),l=4*h,d=720+l-s;const m=sa.getJulianCenturiesFromJulianDay(sa.getJulianDayFromJulianCenturies(o)+d/1440);return s=sa.getEquationOfTime(m),c=sa.getSunDeclination(m),u=sa.getSunHourAngleAtSunset(t,c,r),h=n-oa(u),l=4*h,d=720+l-s,d}}const ca=[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem",27],["Atlanta","US",33.749,-84.38798,"America/New_York",336],["Austin","US",30.26715,-97.74306,"America/Chicago",165],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad",41],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem",285],["Berlin","DE",52.52437,13.41053,"Europe/Berlin",43],["Baltimore","US",39.29038,-76.61219,"America/New_York",35],["Bogota","CO",4.60971,-74.08175,"America/Bogota",2582],["Boston","US",42.35843,-71.05977,"America/New_York",38],["Budapest","HU",47.49801,19.03991,"Europe/Budapest",104],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires",31],["Buffalo","US",42.88645,-78.87837,"America/New_York",191],["Chicago","US",41.85003,-87.65005,"America/Chicago",180],["Cincinnati","US",39.162,-84.45689,"America/New_York",267],["Cleveland","US",41.4995,-81.69541,"America/New_York",204],["Dallas","US",32.78306,-96.80667,"America/Chicago",139],["Denver","US",39.73915,-104.9847,"America/Denver",1636],["Detroit","US",42.33143,-83.04575,"America/Detroit",192],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem",63],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar",11],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem",40],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu",18],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki",26],["Houston","US",29.76328,-95.36327,"America/Chicago",30],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem",786],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg",1767],["Kiev","UA",50.45466,30.5238,"Europe/Kiev",187],["La Paz","BO",-16.5,-68.15,"America/La_Paz",3782],["Livingston","US",40.79593,-74.31487,"America/New_York",98],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles",613],["London","GB",51.50853,-.12574,"Europe/London",25],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles",96],["Marseilles","FR",43.29695,5.38107,"Europe/Paris",28],["Miami","US",25.77427,-80.19366,"America/New_York",25],["Minneapolis","US",44.97997,-93.26384,"America/Chicago",262],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne",25],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City",2240],["Montreal","CA",45.50884,-73.58781,"America/Toronto",216],["Moscow","RU",55.75222,37.61556,"Europe/Moscow",144],["New York","US",40.71427,-74.00597,"America/New_York",57],["Omaha","US",41.25861,-95.93779,"America/Chicago",315],["Ottawa","CA",45.41117,-75.69812,"America/Toronto",71],["Panama City","PA",8.9936,-79.51973,"America/Panama",17],["Paris","FR",48.85341,2.3488,"Europe/Paris",42],["Pawtucket","US",41.87871,-71.38256,"America/New_York",0],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem",54],["Philadelphia","US",39.95233,-75.16379,"America/New_York",8],["Phoenix","US",33.44838,-112.07404,"America/Phoenix",366],["Pittsburgh","US",40.44062,-79.99589,"America/New_York",239],["Providence","US",41.82399,-71.41283,"America/New_York",0],["Portland","US",45.52345,-122.67621,"America/Los_Angeles",15],["Saint Louis","US",38.62727,-90.19789,"America/Chicago",149],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow",11],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles",20],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles",28],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo",769],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles",56],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney",58],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem",15],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem",0],["Toronto","CA",43.70011,-79.4163,"America/Toronto",175],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver",70],["White Plains","US",41.03399,-73.76291,"America/New_York",82],["Washington DC","US",38.89511,-77.03637,"America/New_York",6],["Worcester","US",42.26259,-71.80229,"America/New_York",164]],ua=new Map,ha={0:"UTC",4:"America/Puerto_Rico",5:"America/New_York",6:"America/Chicago",7:"America/Denver",8:"America/Los_Angeles",9:"America/Anchorage",10:"Pacific/Honolulu",11:"Pacific/Pago_Pago",13:"Pacific/Funafuti",14:"Pacific/Guam",15:"Pacific/Palau",16:"Pacific/Chuuk"},la=new Map;class da extends ia{constructor(e,t,n,r,o,i,a,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=i,this.geoid=a}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=la.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return la.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return ua.get(e.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(e,t){if(e=+e,"none"==t){if(0==e)return"UTC";return`Etc/GMT${e>0?"+":""}${e}`}if(2==e&&"israel"==t)return"Asia/Jerusalem";if("eu"==t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"==t)return ha[String(-1*e)]}static getUsaTzid(e,t,n){return 10==t&&"AK"==e?"America/Adak":7==t&&"AZ"==e?"Y"==n?"America/Denver":"America/Phoenix":ha[t]}static addLocation(e,t){const n=e.toLowerCase();return!ua.has(n)&&(ua.set(n,t),!0)}}for(const e of ca){const t=new da(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);da.addLocation(t.getName(),t)}const ma=new Map;const fa=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ga(e,t){const n=function(e){const t=ma.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return ma.set(e,n),n}(e).format(t),r=fa.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=ya(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function ya(e){return e<0?"-00"+ya(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function Sa(e){return e<10?"0"+e:String(e)}function pa(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}("undefined"!=typeof globalThis?globalThis:window).Temporal=ta,Intl.DateTimeFormat=Ki,Date.prototype.toTemporalInstant=Bi;class wa{constructor(t,n,r){const o=e.greg.isDate(n)?n:ae.isHDate(n)?n.greg():Q(`invalid date: ${n}`);this.date=o,this.gloc=t;const i=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new sa(t,i),this.useElevation=Boolean(r)}timeAtAngle(e,t){const n=90+e;return pa(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return pa(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return pa(this.noaa.getSeaLevelSunrise())}sunset(){return pa(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return pa(this.noaa.getSeaLevelSunset())}dawn(){return pa(this.noaa.getBeginCivilTwilight())}dusk(){return pa(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new wa(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return pa(this.noaa.getSunTransit())}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.noaa.getSunrise(),n=this.noaa.getSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return pa(sa.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}sofZmanShmaMGA(){const e=this.sunriseOffset(-72,!1,!0),t=(this.sunsetOffset(72,!1,!0)-e)/12;return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const e=this.sunriseOffset(-72,!1,!0),t=(this.sunsetOffset(72,!1,!0)-e)/12;return new Date(e.getTime()+4*t)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8.5;return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}static formatTime(e,t){const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=ga("UTC",t),r=ga(e,t),o=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(o/1e3/60)}(e,t),r=Math.abs(n),o=r%60;return(n<0?"+":"-")+Sa(Math.floor(r/60))+":"+Sa(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:ga(e,t).substring(0,19)+wa.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunrise():this.sunrise();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}sunsetOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunset():this.sunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const va=5,ba=6;function Ma(e,t,n,r,o){let i=!1,a=n===ba,s=e?e.getFlags():he.LIGHT_CANDLES;void 0!==e?n!==va&&(s&(he.LIGHT_CANDLES_TZEIS|he.CHANUKAH_CANDLES)?a=!0:s&he.YOM_TOV_ENDS&&(i=!0,a=!0)):n===ba&&(i=!0,s=he.LIGHT_CANDLES_TZEIS);const c=a?o.havdalahMins:o.candleLightingMins,u=new wa(r,t,o.useElevation),h=c?u.sunsetOffset(c,!0):u.tzeit(o.havdalahDeg);return isNaN(h.getTime())?null:i?new Ta(t,s,h,r,o.havdalahMins,e):new Aa(t,s,h,r,e)}class Ia extends de{constructor(e,t,n,r,o,i){super(e,t,n),this.eventTime=wa.roundTime(r),this.location=o;const a=o.getTimeFormatter();this.eventTimeStr=wa.formatTime(this.eventTime,a),void 0!==i&&(this.linkedEvent=i)}render(e){return X.gettext(this.getDesc(),e)+": "+this.eventTimeStr}renderBrief(e){return X.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}}}class Ta extends Ia{constructor(e,t,n,r,o,i){super(e,"Havdalah",t,n,r,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.eventTimeStr}renderBrief(e){let t=X.gettext(this.getDesc(),e);if(this.havdalahMins){const n=X.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class Aa extends Ia{constructor(e,t,n,r,o){super(e,"Candle lighting",t,n,r,o)}getEmoji(){return"🕯️"}}function Ea(e,t,n,r,o){return isNaN(t.getTime())?null:new Ia(e,n,r.getFlags(),t,o,r)}const Da=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ca=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Na="בַּלַּ֥יְלָה";class Oa{constructor(e,t){let n=t-7;n<0&&(n+=ae.monthsInYear(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),i=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,a=(o%1080+i%24*1080)%1080,s=(1+29*r+Math.floor(i/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=i%24,this.minutes=Math.floor(a/18),this.chalakim=a%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return ae.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}}class ka extends de{constructor(e,t,n){const r=new Oa(t,n);super(e,`Molad ${r.getMonthName()} ${t}`,he.MOLAD),this.molad=r}render(e){const t=this.molad;"string"==typeof(e=e||X.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=X.gettext(t.getMonthName(),e),o=(n?Ca:Da)[t.getDow()],i=t.getMinutes(),a=t.getHour(),s=t.getChalakim(),c=X.gettext("Molad",e),u=X.lookupTranslation("min",e)||"minutes",h=X.gettext("chalakim",e);if(n){return`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${a} ${a<5?Na:a<12?"בַּבֹּקֶר":a<17?"בַּצׇּהֳרַיִים":a<21?"בָּעֶרֶב":Na}, ו-${i} ${u} ו-${s} ${h}`}return`${c} ${r}: ${o}, ${i} ${u} and ${s} ${h} after ${a}:00`}}const Ha=[null,"Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],Ya=[null,"Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"];class La extends de{constructor(e,t){if(super(e,`Omer ${t}`,he.OMER_COUNT),t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`);this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";if("he"===e)return this.sefiraHe();if("translit"===e)return this.sefiraTranslit();{const e=Ha[this.weekNumber];return`${Ha[this.daysWithinWeeks]} within ${e}`}}sefiraTranslit(){const e=this.weekNumber,t=Ya[e];return`${Ya[this.daysWithinWeeks]} ${2===e||6===e?"shebi":"sheb'"}${t}`}sefiraHe(){const e=this.weekNumber,t=Ha[e],n=Ha[this.daysWithinWeeks],r=X.gettext(t,"he");return`${X.gettext(n,"he")} ${2===e||6===e?"שֶׁבִּ":"שֶׁבְּ"}${r}`.normalize()}render(e){e=e||X.getLocaleName();const t=this.omer;return("he"==e?$(t):X.ordinal(t,e))+" "+X.gettext("day of the Omer",e)}renderBrief(e){return X.gettext("Omer",e)+" "+X.gettext("day",e)+" "+this.omer}getEmoji(){if("string"==typeof this.emoji)return this.emoji;const e=this.omer;return e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||X.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return Za(this.omer);if("he-x-nonikud"===e)return X.hebrewStripNikkud(Za(this.omer));const t=1===this.omer?"day":"days";let n=`Today is ${this.omer} ${t}`;if(this.weekNumber>1||7===this.omer){const e=7===this.daysWithinWeeks,t=e?this.weekNumber:this.weekNumber-1;if(n+=`, which is ${t} ${1===t?"week":"weeks"}`,!e){const e=1===this.daysWithinWeeks?"day":"days";n+=` and ${this.daysWithinWeeks} ${e}`}}return n+" of the Omer"}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}const Fa=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Pa=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָׁה","שִׁשָׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Ra="שְׁנֵי",_a="יָמִים",Ua=Ra+" "+_a,ja="שָׁבוּעוֹת",xa="יוֹם",Ba=xa+" "+Pa[1];function Za(e){const t=Math.floor(e/10),n=e%10;let r="הַיוֹם ";if(10<e&&e<20?r+=Pa[n]+" עָשָׂר":e>9&&(r+=Pa[n],n&&(r+=" וְ")),e>2?((e>20||10===e||20===e)&&(r+=Fa[t]),r+=e<11?Pa[n]+" "+_a+" ":" "+xa+" "):r+=1===e?Ba+" ":Ua+" ",e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?Pa[t]+" "+ja+" ":1==t?"שָׁבוּעַ "+Pa[1]+" ":Ra+" "+ja+" ",n&&(r+="וְ",r+=n>2?Pa[n]+" "+_a+" ":1==n?Ba+" ":Ua+" ")}return r+="לָעוֹמֶר",r.normalize()}class za extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#i;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#i=e.onEviction}get __oldCache(){return this.#n}#a(e){if("function"==typeof this.#i)for(const[t,n]of e)this.#i(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#i&&this.#i(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#a(this.#n),this.#n=this.#t,this.#t=new Map)}#d(e,t){this.#n.delete(e),this.#l(e,t)}*#m(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#d(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#m()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#a(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#m())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class $a{constructor(e,t){e=+e;const n=ae.longCheshvan(e),r=ae.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const i=new ae(1,g.TISHREI,e),a=i.abs(),s=this.roshHashanaDay=i.getDay()+1;this.firstSaturday=ae.dayOnOrBefore(6,a+6);const c=this.leap=+ae.isLeapYear(e);this.il=Boolean(t);const u=`${c}${s}${o}`;if(cs[u])this.key=u,this.theSedraArray=cs[u];else{const e=this.key=u+ +this.il;this.theSedraArray=cs[e]}if(!this.theSedraArray)throw new Error(`improper sedra year type ${this.key} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||X.getLocaleName();let o=X.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+X.gettext(n[1],r)}return X.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new ae(this.firstSaturday+7*t)}if("string"==typeof e){const t=Ka.get(e);if("number"==typeof t)return this.find(t);if(-1!==e.indexOf("-"))return this.find(e.split("-"));{const t=this.theSedraArray.indexOf(e);return-1===t?null:new ae(this.firstSaturday+7*t)}}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){const t=e[0],n=e[1],r=Ka.get(t);if(Ka.get(n)===r+1)return this.find(-r);throw new RangeError(`Unrecognized parsha name: ${t}-${n}`)}throw new TypeError(`Invalid parsha argument: ${e}`)}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:ae.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=ae.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return hs(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[Va[o]],chag:!1,num:o+1};const i=Ja(o);return{parsha:[Va[i],Va[i+1]],chag:!1,num:[i+1,i+2]}}}const Va=["Bereshit","Noach","Lech-Lecha","Vayera","Chayei Sara","Toldot","Vayetzei","Vayishlach","Vayeshev","Miketz","Vayigash","Vayechi","Shemot","Vaera","Bo","Beshalach","Yitro","Mishpatim","Terumah","Tetzaveh","Ki Tisa","Vayakhel","Pekudei","Vayikra","Tzav","Shmini","Tazria","Metzora","Achrei Mot","Kedoshim","Emor","Behar","Bechukotai","Bamidbar","Nasso","Beha'alotcha","Sh'lach","Korach","Chukat","Balak","Pinchas","Matot","Masei","Devarim","Vaetchanan","Eikev","Re'eh","Shoftim","Ki Teitzei","Ki Tavo","Nitzavim","Vayeilech","Ha'azinu"],Ka=new Map;for(let e=0;e<Va.length;e++){const t=Va[e];Ka.set(t,e)}function Ja(e){return-e}const Ga="Rosh Hashana",Wa="Yom Kippur",qa="Sukkot",Xa="Sukkot Shabbat Chol ha-Moed",Qa="Shmini Atzeret",es=Xa,ts="Pesach",ns="Pesach I",rs="Pesach Shabbat Chol ha-Moed",os="Pesach VII",is="Pesach VIII",as="Shavuot";function ss(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const cs={"020":[51,52].concat(es,ss(0,20),Ja(21),23,24,ts,25,Ja(26),Ja(28),30,Ja(31),ss(33,40),Ja(41),ss(43,49),Ja(50)),"0220":[51,52].concat(es,ss(0,20),Ja(21),23,24,ts,25,Ja(26),Ja(28),30,Ja(31),33,as,ss(34,37),Ja(38),40,Ja(41),ss(43,49),Ja(50)),"0510":[52].concat(Wa,es,ss(0,20),Ja(21),23,24,ns,is,25,Ja(26),Ja(28),30,Ja(31),ss(33,40),Ja(41),ss(43,50)),"0511":[52].concat(Wa,es,ss(0,20),Ja(21),23,24,ts,25,Ja(26),Ja(28),ss(30,40),Ja(41),ss(43,50)),"052":[52].concat(Wa,Xa,ss(0,24),os,25,Ja(26),Ja(28),30,Ja(31),ss(33,40),Ja(41),ss(43,50)),"070":[].concat(Ga,52,qa,Qa,ss(0,20),Ja(21),23,24,os,25,Ja(26),Ja(28),30,Ja(31),ss(33,40),Ja(41),ss(43,50)),"072":[].concat(Ga,52,qa,Qa,ss(0,20),Ja(21),23,24,rs,25,Ja(26),Ja(28),30,Ja(31),ss(33,40),Ja(41),ss(43,49),Ja(50)),1200:[51,52].concat(Xa,ss(0,27),rs,ss(28,33),as,ss(34,37),Ja(38),40,Ja(41),ss(43,49),Ja(50)),1201:[51,52].concat(Xa,ss(0,27),rs,ss(28,40),Ja(41),ss(43,49),Ja(50)),1220:[51,52].concat(Xa,ss(0,27),ns,is,ss(28,40),Ja(41),ss(43,50)),1221:[51,52].concat(Xa,ss(0,27),ts,ss(28,50)),150:[52].concat(Wa,Xa,ss(0,28),os,ss(29,50)),152:[52].concat(Wa,Xa,ss(0,28),rs,ss(29,49),Ja(50)),170:[].concat(Ga,52,qa,Qa,ss(0,27),rs,ss(28,40),Ja(41),ss(43,49),Ja(50)),1720:[].concat(Ga,52,qa,Qa,ss(0,27),rs,ss(28,33),as,ss(34,37),Ja(38),40,Ja(41),ss(43,49),Ja(50))};cs["0221"]=cs["020"],cs["0310"]=cs["0220"],cs["0311"]=cs["020"],cs[1310]=cs[1220],cs[1311]=cs[1221],cs[1721]=cs[170];const us=new za({maxSize:400});function hs(e,t){const n=`${e}-${t?1:0}`;let r=us.get(n);return r||(r=new $a(e,t),us.set(n,r)),r}class ls extends de{constructor(e,t,n,r){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),he.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||X.getLocaleName(),n=this.parsha;let r=X.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+X.gettext(n[1],e)}return(X.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}var ds="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ms=function(e){return e&&e.Math===Math&&e},fs=ms("object"==typeof globalThis&&globalThis)||ms("object"==typeof window&&window)||ms("object"==typeof self&&self)||ms("object"==typeof ds&&ds)||ms("object"==typeof ds&&ds)||function(){return this}()||Function("return this")(),gs=function(e){try{return!!e()}catch(e){return!0}},ys=!gs((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ss={exports:{}},ps=!gs((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ws=ps,vs=Function.prototype,bs=vs.call,Ms=ws&&vs.bind.bind(bs,bs),Is=ws?Ms:function(e){return function(){return bs.apply(e,arguments)}},Ts="object"==typeof document&&document.all,As={all:Ts,IS_HTMLDDA:void 0===Ts&&void 0!==Ts},Es=As.all,Ds=As.IS_HTMLDDA?function(e){return"function"==typeof e||e===Es}:function(e){return"function"==typeof e},Cs=function(e){return null==e},Ns=Cs,Os=TypeError,ks=function(e){if(Ns(e))throw new Os("Can't call method on "+e);return e},Hs=ks,Ys=Object,Ls=function(e){return Ys(Hs(e))},Fs=Is({}.hasOwnProperty),Ps=Object.hasOwn||function(e,t){return Fs(Ls(e),t)},Rs=ys,_s=Ps,Us=Function.prototype,js=Rs&&Object.getOwnPropertyDescriptor,xs=_s(Us,"name"),Bs={EXISTS:xs,PROPER:xs&&"something"===function(){}.name,CONFIGURABLE:xs&&(!Rs||Rs&&js(Us,"name").configurable)},Zs=fs,zs=Object.defineProperty,$s=function(e,t){try{zs(Zs,e,{value:t,configurable:!0,writable:!0})}catch(n){Zs[e]=t}return t},Vs=$s,Ks="__core-js_shared__",Js=fs[Ks]||Vs(Ks,{}),Gs=Ds,Ws=Js,qs=Is(Function.toString);Gs(Ws.inspectSource)||(Ws.inspectSource=function(e){return qs(e)});var Xs,Qs,ec=Ws.inspectSource,tc=Ds,nc=fs.WeakMap,rc=tc(nc)&&/native code/.test(String(nc)),oc=Ds,ic=As.all,ac=As.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:oc(e)||e===ic}:function(e){return"object"==typeof e?null!==e:oc(e)},sc={},cc=ac,uc=fs.document,hc=cc(uc)&&cc(uc.createElement),lc=function(e){return hc?uc.createElement(e):{}},dc=lc,mc=!ys&&!gs((function(){return 7!==Object.defineProperty(dc("div"),"a",{get:function(){return 7}}).a})),fc=ys&&gs((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),gc=ac,yc=String,Sc=TypeError,pc=function(e){if(gc(e))return e;throw new Sc(yc(e)+" is not an object")},wc=ps,vc=Function.prototype.call,bc=wc?vc.bind(vc):function(){return vc.apply(vc,arguments)},Mc=fs,Ic=Ds,Tc=function(e,t){return arguments.length<2?(n=Mc[e],Ic(n)?n:void 0):Mc[e]&&Mc[e][t];var n},Ac=Is({}.isPrototypeOf),Ec=fs,Dc="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Cc=Ec.process,Nc=Ec.Deno,Oc=Cc&&Cc.versions||Nc&&Nc.version,kc=Oc&&Oc.v8;kc&&(Qs=(Xs=kc.split("."))[0]>0&&Xs[0]<4?1:+(Xs[0]+Xs[1])),!Qs&&Dc&&(!(Xs=Dc.match(/Edge\/(\d+)/))||Xs[1]>=74)&&(Xs=Dc.match(/Chrome\/(\d+)/))&&(Qs=+Xs[1]);var Hc=Qs,Yc=gs,Lc=fs.String,Fc=!!Object.getOwnPropertySymbols&&!Yc((function(){var e=Symbol("symbol detection");return!Lc(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hc&&Hc<41})),Pc=Fc&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Rc=Tc,_c=Ds,Uc=Ac,jc=Object,xc=Pc?function(e){return"symbol"==typeof e}:function(e){var t=Rc("Symbol");return _c(t)&&Uc(t.prototype,jc(e))},Bc=String,Zc=Ds,zc=function(e){try{return Bc(e)}catch(e){return"Object"}},$c=TypeError,Vc=function(e){if(Zc(e))return e;throw new $c(zc(e)+" is not a function")},Kc=Cs,Jc=bc,Gc=Ds,Wc=ac,qc=TypeError,Xc={exports:{}},Qc=Js;(Xc.exports=function(e,t){return Qc[e]||(Qc[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"});var eu=Xc.exports,tu=Is,nu=0,ru=Math.random(),ou=tu(1..toString),iu=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ou(++nu+ru,36)},au=eu,su=Ps,cu=iu,uu=Fc,hu=Pc,lu=fs.Symbol,du=au("wks"),mu=hu?lu.for||lu:lu&&lu.withoutSetter||cu,fu=function(e){return su(du,e)||(du[e]=uu&&su(lu,e)?lu[e]:mu("Symbol."+e)),du[e]},gu=bc,yu=ac,Su=xc,pu=function(e,t){var n=e[t];return Kc(n)?void 0:Vc(n)},wu=function(e,t){var n,r;if("string"===t&&Gc(n=e.toString)&&!Wc(r=Jc(n,e)))return r;if(Gc(n=e.valueOf)&&!Wc(r=Jc(n,e)))return r;if("string"!==t&&Gc(n=e.toString)&&!Wc(r=Jc(n,e)))return r;throw new qc("Can't convert object to primitive value")},vu=TypeError,bu=fu("toPrimitive"),Mu=function(e,t){if(!yu(e)||Su(e))return e;var n,r=pu(e,bu);if(r){if(void 0===t&&(t="default"),n=gu(r,e,t),!yu(n)||Su(n))return n;throw new vu("Can't convert object to primitive value")}return void 0===t&&(t="number"),wu(e,t)},Iu=xc,Tu=function(e){var t=Mu(e,"string");return Iu(t)?t:t+""},Au=ys,Eu=mc,Du=fc,Cu=pc,Nu=Tu,Ou=TypeError,ku=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,Yu="enumerable",Lu="configurable",Fu="writable";sc.f=Au?Du?function(e,t,n){if(Cu(e),t=Nu(t),Cu(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Fu in n&&!n[Fu]){var r=Hu(e,t);r&&r[Fu]&&(e[t]=n.value,n={configurable:Lu in n?n[Lu]:r[Lu],enumerable:Yu in n?n[Yu]:r[Yu],writable:!1})}return ku(e,t,n)}:ku:function(e,t,n){if(Cu(e),t=Nu(t),Cu(n),Eu)try{return ku(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Ou("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Pu,Ru,_u,Uu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ju=sc,xu=Uu,Bu=ys?function(e,t,n){return ju.f(e,t,xu(1,n))}:function(e,t,n){return e[t]=n,e},Zu=iu,zu=eu("keys"),$u=function(e){return zu[e]||(zu[e]=Zu(e))},Vu={},Ku=rc,Ju=fs,Gu=ac,Wu=Bu,qu=Ps,Xu=Js,Qu=$u,eh=Vu,th="Object already initialized",nh=Ju.TypeError,rh=Ju.WeakMap;if(Ku||Xu.state){var oh=Xu.state||(Xu.state=new rh);oh.get=oh.get,oh.has=oh.has,oh.set=oh.set,Pu=function(e,t){if(oh.has(e))throw new nh(th);return t.facade=e,oh.set(e,t),t},Ru=function(e){return oh.get(e)||{}},_u=function(e){return oh.has(e)}}else{var ih=Qu("state");eh[ih]=!0,Pu=function(e,t){if(qu(e,ih))throw new nh(th);return t.facade=e,Wu(e,ih,t),t},Ru=function(e){return qu(e,ih)?e[ih]:{}},_u=function(e){return qu(e,ih)}}var ah={set:Pu,get:Ru,has:_u,enforce:function(e){return _u(e)?Ru(e):Pu(e,{})},getterFor:function(e){return function(t){var n;if(!Gu(t)||(n=Ru(t)).type!==e)throw new nh("Incompatible receiver, "+e+" required");return n}}},sh=Is,ch=gs,uh=Ds,hh=Ps,lh=ys,dh=Bs.CONFIGURABLE,mh=ec,fh=ah.enforce,gh=ah.get,yh=String,Sh=Object.defineProperty,ph=sh("".slice),wh=sh("".replace),vh=sh([].join),bh=lh&&!ch((function(){return 8!==Sh((function(){}),"length",{value:8}).length})),Mh=String(String).split("String"),Ih=Ss.exports=function(e,t,n){"Symbol("===ph(yh(t),0,7)&&(t="["+wh(yh(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hh(e,"name")||dh&&e.name!==t)&&(lh?Sh(e,"name",{value:t,configurable:!0}):e.name=t),bh&&n&&hh(n,"arity")&&e.length!==n.arity&&Sh(e,"length",{value:n.arity});try{n&&hh(n,"constructor")&&n.constructor?lh&&Sh(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=fh(e);return hh(r,"source")||(r.source=vh(Mh,"string"==typeof t?t:"")),e};Function.prototype.toString=Ih((function(){return uh(this)&&gh(this).source||mh(this)}),"toString");var Th=Ss.exports,Ah=Th,Eh=sc,Dh=pc,Ch=ys,Nh=function(e,t,n){return n.get&&Ah(n.get,t,{getter:!0}),n.set&&Ah(n.set,t,{setter:!0}),Eh.f(e,t,n)},Oh=function(){var e=Dh(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},kh=gs,Hh=fs.RegExp,Yh=Hh.prototype,Lh=Ch&&kh((function(){var e=!0;try{Hh(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(Yh,"flags").get.call(t)!==r||n!==r}));Lh&&Nh(Yh,"flags",{configurable:!0,get:Oh});const Fh=0,Ph=2,Rh=5,_h=6,Uh=g.NISAN,jh=g.IYYAR;function xh(e){if(e<5708)return null;let t;const n=new ae(15,Uh,e).getDay();return t=n===Fh?2:n===_h?3:e<5764?4:n===Ph?5:4,new ae(t,jh,e)}const Bh=g.NISAN,Zh=g.IYYAR,zh=g.SIVAN,$h=g.TAMUZ,Vh=g.AV,Kh=g.ELUL,Jh=g.TISHREI,Gh=g.CHESHVAN,Wh=g.KISLEV,qh=g.SHVAT,Xh=g.ADAR_II,Qh=he.CHAG,el=he.LIGHT_CANDLES,tl=he.YOM_TOV_ENDS,nl=he.CHUL_ONLY,rl=he.IL_ONLY,ol=he.LIGHT_CANDLES_TZEIS,il=he.CHANUKAH_CANDLES,al=he.MAJOR_FAST,sl=he.MINOR_HOLIDAY,cl=he.EREV,ul=he.CHOL_HAMOED,hl="🫓",ll="🌿🍋",dl=[{mm:Jh,dd:2,desc:"Rosh Hashana II",flags:Qh|tl,emoji:"🍏🍯"},{mm:Jh,dd:9,desc:"Erev Yom Kippur",flags:cl|el},{mm:Jh,dd:10,desc:"Yom Kippur",flags:Qh|al|tl},{mm:Jh,dd:14,desc:"Erev Sukkot",flags:nl|cl|el,emoji:ll},{mm:Jh,dd:15,desc:"Sukkot I",flags:nl|Qh|ol,emoji:ll},{mm:Jh,dd:16,desc:"Sukkot II",flags:nl|Qh|tl,emoji:ll},{mm:Jh,dd:17,desc:"Sukkot III (CH''M)",flags:nl|ul,chmDay:1,emoji:ll},{mm:Jh,dd:18,desc:"Sukkot IV (CH''M)",flags:nl|ul,chmDay:2,emoji:ll},{mm:Jh,dd:19,desc:"Sukkot V (CH''M)",flags:nl|ul,chmDay:3,emoji:ll},{mm:Jh,dd:20,desc:"Sukkot VI (CH''M)",flags:nl|ul,chmDay:4,emoji:ll},{mm:Jh,dd:22,desc:"Shmini Atzeret",flags:nl|Qh|ol},{mm:Jh,dd:23,desc:"Simchat Torah",flags:nl|Qh|tl},{mm:Jh,dd:14,desc:"Erev Sukkot",flags:rl|cl|el,emoji:ll},{mm:Jh,dd:15,desc:"Sukkot I",flags:rl|Qh|tl,emoji:ll},{mm:Jh,dd:16,desc:"Sukkot II (CH''M)",flags:rl|ul,chmDay:1,emoji:ll},{mm:Jh,dd:17,desc:"Sukkot III (CH''M)",flags:rl|ul,chmDay:2,emoji:ll},{mm:Jh,dd:18,desc:"Sukkot IV (CH''M)",flags:rl|ul,chmDay:3,emoji:ll},{mm:Jh,dd:19,desc:"Sukkot V (CH''M)",flags:rl|ul,chmDay:4,emoji:ll},{mm:Jh,dd:20,desc:"Sukkot VI (CH''M)",flags:rl|ul,chmDay:5,emoji:ll},{mm:Jh,dd:22,desc:"Shmini Atzeret",flags:rl|Qh|tl},{mm:Jh,dd:21,desc:"Sukkot VII (Hoshana Raba)",flags:el|ul,chmDay:-1,emoji:ll},{mm:Wh,dd:24,desc:"Chanukah: 1 Candle",flags:cl|sl|il,emoji:"🕎1️⃣"},{mm:qh,dd:15,desc:"Tu BiShvat",flags:sl,emoji:"🌳"},{mm:Xh,dd:13,desc:"Erev Purim",flags:cl|sl,emoji:"🎭️📜"},{mm:Xh,dd:14,desc:"Purim",flags:sl,emoji:"🎭️📜"},{mm:Xh,dd:15,desc:"Shushan Purim",flags:sl,emoji:"🎭️📜"},{mm:Bh,dd:14,desc:"Erev Pesach",flags:rl|cl|el,emoji:"🫓🍷"},{mm:Bh,dd:15,desc:"Pesach I",flags:rl|Qh|tl,emoji:hl},{mm:Bh,dd:16,desc:"Pesach II (CH''M)",flags:rl|ul,chmDay:1,emoji:hl},{mm:Bh,dd:17,desc:"Pesach III (CH''M)",flags:rl|ul,chmDay:2,emoji:hl},{mm:Bh,dd:18,desc:"Pesach IV (CH''M)",flags:rl|ul,chmDay:3,emoji:hl},{mm:Bh,dd:19,desc:"Pesach V (CH''M)",flags:rl|ul,chmDay:4,emoji:hl},{mm:Bh,dd:20,desc:"Pesach VI (CH''M)",flags:rl|ul|el,chmDay:5,emoji:hl},{mm:Bh,dd:21,desc:"Pesach VII",flags:rl|Qh|tl,emoji:hl},{mm:Bh,dd:14,desc:"Erev Pesach",flags:nl|cl|el,emoji:"🫓🍷"},{mm:Bh,dd:15,desc:"Pesach I",flags:nl|Qh|ol,emoji:"🫓🍷"},{mm:Bh,dd:16,desc:"Pesach II",flags:nl|Qh|tl,emoji:hl},{mm:Bh,dd:17,desc:"Pesach III (CH''M)",flags:nl|ul,chmDay:1,emoji:hl},{mm:Bh,dd:18,desc:"Pesach IV (CH''M)",flags:nl|ul,chmDay:2,emoji:hl},{mm:Bh,dd:19,desc:"Pesach V (CH''M)",flags:nl|ul,chmDay:3,emoji:hl},{mm:Bh,dd:20,desc:"Pesach VI (CH''M)",flags:nl|ul|el,chmDay:4,emoji:hl},{mm:Bh,dd:21,desc:"Pesach VII",flags:nl|Qh|ol,emoji:hl},{mm:Bh,dd:22,desc:"Pesach VIII",flags:nl|Qh|tl,emoji:hl},{mm:Zh,dd:14,desc:"Pesach Sheni",flags:sl},{mm:Zh,dd:18,desc:"Lag BaOmer",flags:sl,emoji:"🔥"},{mm:zh,dd:5,desc:"Erev Shavuot",flags:cl|el,emoji:"⛰️🌸"},{mm:zh,dd:6,desc:"Shavuot",flags:rl|Qh|tl,emoji:"⛰️🌸"},{mm:zh,dd:6,desc:"Shavuot I",flags:nl|Qh|ol,emoji:"⛰️🌸"},{mm:zh,dd:7,desc:"Shavuot II",flags:nl|Qh|tl,emoji:"⛰️🌸"},{mm:Vh,dd:15,desc:"Tu B'Av",flags:sl,emoji:"❤️"},{mm:Kh,dd:1,desc:"Rosh Hashana LaBehemot",flags:sl,emoji:"🐑"},{mm:Kh,dd:29,desc:"Erev Rosh Hashana",flags:cl|el,emoji:"🍏🍯"}],ml=[{firstYear:5727,mm:Zh,dd:28,desc:"Yom Yerushalayim",chul:!0},{firstYear:5737,mm:Wh,dd:6,desc:"Ben-Gurion Day",satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:qh,dd:30,desc:"Family Day"},{firstYear:5758,mm:Gh,dd:12,desc:"Yitzhak Rabin Memorial Day",friSatMovetoThu:!0},{firstYear:5764,mm:Zh,dd:10,desc:"Herzl Day",satPostponeToSun:!0},{firstYear:5765,mm:$h,dd:29,desc:"Jabotinsky Day",satPostponeToSun:!0},{firstYear:5769,mm:Gh,dd:29,desc:"Sigd",chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Bh,dd:10,desc:"Yom HaAliyah",chul:!0},{firstYear:5777,mm:Gh,dd:7,desc:"Yom HaAliyah School Observance"}],fl=he.CHAG,gl=he.IL_ONLY,yl=he.LIGHT_CANDLES_TZEIS,Sl=he.CHANUKAH_CANDLES,pl=he.MINOR_FAST,wl=he.SPECIAL_SHABBAT,vl=he.MODERN_HOLIDAY,bl=he.MAJOR_FAST,Ml=he.MINOR_HOLIDAY,Il=he.EREV;class Tl extends de{basename(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}url(){if(this.getDate().greg().getFullYear()<100)return;const e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&gl?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&wl?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}}const Al="Rosh Chodesh";class El extends Tl{constructor(e,t){super(e,`${Al} ${t}`,he.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13);return X.gettext(Al,e)+" "+X.gettext(t,e)}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class Dl extends Tl{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const Cl="Shabbat Mevarchim Chodesh";class Nl extends de{constructor(e,t){super(e,`${Cl} ${t}`,he.SHABBAT_MEVARCHIM),this.monthName=t;const n=e.getFullYear(),r=e.getMonth(),o=r==ae.monthsInYear(n)?Yl:r+1,i=new ka(e,n,o);this.memo=i.render("en")}basename(){return this.getDesc()}render(e){return X.gettext(Cl,e)+" "+X.gettext(this.monthName,e)}}class Ol extends Tl{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return X.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const kl="Yom Kippur Katan";class Hl extends Tl{constructor(e,t){super(e,`${kl} ${t}`,he.MINOR_FAST|he.YOM_KIPPUR_KATAN),this.nextMonthName=t,this.memo=`Minor Day of Atonement on the day preceeding Rosh Chodesh ${t}`}basename(){return this.getDesc()}render(e){return X.gettext(kl,e)+" "+X.gettext(this.nextMonthName,e)}renderBrief(e){return X.gettext(kl,e)}url(){}}const Yl=g.NISAN,Ll=g.TAMUZ,Fl=g.AV,Pl=g.ELUL,Rl=g.TISHREI,_l=g.KISLEV,Ul=g.TEVET,jl=g.ADAR_I,xl=g.ADAR_II,Bl={emoji:"🇮🇱"},Zl=new za({maxSize:400}),zl=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function $l(e){if("number"!=typeof e)throw new TypeError(`bad Hebrew year: ${e}`);if(e<1||e>32658)throw new RangeError(`Hebrew year ${e} out of range 1-32658`);const t=Zl.get(e);if(t)return t;const n=new ae(1,Rl,e),r=new ae(15,Yl,e),o=new Map;function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&Il?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of dl){const n=new ae(t.dd,t.mm,e),r=new Tl(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),i(r)}i(new Ol(n,e,fl|yl)),i(new Tl(new ae(3+(4==n.getDay()),Rl,e),"Tzom Gedaliah",pl)),i(new Tl(new ae(ae.dayOnOrBefore(6,7+n.abs())),"Shabbat Shuva",wl));const a=ae.shortKislev(e)?new ae(1,Ul,e):new ae(30,_l,e);i(new Tl(a,"Chag HaBanot",Ml));for(let t=2;t<=8;t++){const n=new ae(23+t,_l,e);i(new Tl(n,`Chanukah: ${t} Candles`,Ml|Sl,{chanukahDay:t-1,emoji:"🕎"+zl[t]}))}i(new Tl(new ae(32,_l,e),"Chanukah: 8th Day",Ml,{chanukahDay:8,emoji:"🕎"})),i(new Dl(new ae(10,Ul,e),"Asara B'Tevet",pl));const s=r.abs();i(new Tl(new ae(ae.dayOnOrBefore(6,s-43)),"Shabbat Shekalim",wl),new Tl(new ae(ae.dayOnOrBefore(6,s-30)),"Shabbat Zachor",wl),new Tl(new ae(s-(2==r.getDay()?33:31)),"Ta'anit Esther",pl)),i(new Tl(new ae(ae.dayOnOrBefore(6,s-14)-7),"Shabbat Parah",wl),new Tl(new ae(ae.dayOnOrBefore(6,s-14)),"Shabbat HaChodesh",wl),new Tl(new ae(ae.dayOnOrBefore(6,s-1)),"Shabbat HaGadol",wl),new Tl(6==r.prev().getDay()?r.onOrBefore(4):new ae(14,Yl,e),"Ta'anit Bechorot",pl)),i(new Tl(new ae(ae.dayOnOrBefore(6,new ae(1,Rl,e+1).abs()-4)),"Leil Selichot",Ml,{emoji:"🕍"})),0==r.getDay()&&i(new Tl(new ae(16,xl,e),"Purim Meshulash",Ml)),ae.isLeapYear(e)&&(i(new Tl(new ae(14,jl,e),"Purim Katan",Ml,{emoji:"🎭️"})),i(new Tl(new ae(15,jl,e),"Shushan Purim Katan",Ml,{emoji:"🎭️"})));const c=function(e){if(e<5711)return null;let t=new ae(27,Uh,e);return t.getDay()===Rh?t=new ae(26,Uh,e):t.getDay()===Fh&&(t=new ae(28,Uh,e)),t}(e);c&&i(new Tl(c,"Yom HaShoah",vl));const u=xh(e);u&&i(new Tl(u,"Yom HaZikaron",vl,Bl),new Tl(u.next(),"Yom HaAtzma'ut",vl,Bl));for(const t of ml)if(e>=t.firstYear){let n=new ae(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new ae(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?vl:vl|gl,a=new Tl(n,t.desc,o);t.suppressEmoji||(a.emoji="🇮🇱"),i(a)}let h,l=new ae(17,Ll,e);6==l.getDay()&&(l=new ae(18,Ll,e),h={observed:!0}),i(new Tl(l,"Tzom Tammuz",pl,h));let d,m=new ae(9,Fl,e),f="Tish'a B'Av";6==m.getDay()&&(m=m.next(),d={observed:!0},f+=" (observed)");const y=m.abs();i(new Tl(new ae(ae.dayOnOrBefore(6,y)),"Shabbat Chazon",wl),new Tl(m.prev(),"Erev Tish'a B'Av",Il|bl,d),new Tl(m,f,bl,d),new Tl(new ae(ae.dayOnOrBefore(6,y+7)),"Shabbat Nachamu",wl));const S=ae.monthsInYear(e);for(let t=1;t<=S;t++){const n=ae.getMonthName(t,e);if(30==(t==Yl?ae.daysInMonth(ae.monthsInYear(e-1),e-1):ae.daysInMonth(t-1,e))?(i(new El(new ae(1,t,e),n)),i(new El(new ae(30,t-1,e),n))):t!==Rl&&i(new El(new ae(1,t,e),n)),t==Pl)continue;const r=ae.getMonthName(t+1,e);i(new Nl(new ae(29,t,e).onOrBefore(6),r))}for(let t=g.IYYAR;t<=S;t++){const n=t+1;if(n===Rl||n===g.CHESHVAN||n===Ul)continue;let r=new ae(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const a=ae.getMonthName(n,e);i(new Hl(r,a))}const p=hs(e,!1).find(15);i(new Tl(p,"Shabbat Shirah",wl));const w=function(e){const t=ae.isLeapYear(e),n=t?xl:Yl,r=t?20:1,o=ae.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(w){const e=new ae(w);i(new Tl(e,"Birkat Hachamah",Ml,{emoji:"☀️"}))}return Zl.set(e,o),o}const Vl=new Map;class Kl{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Vl.set(e,t)}static lookup(e,t){const n=Vl.get(e);return"function"==typeof n?n(t):null}}const Jl="5.0.5";var Gl={},Wl={},ql={}.propertyIsEnumerable,Xl=Object.getOwnPropertyDescriptor,Ql=Xl&&!ql.call({1:2},1);Wl.f=Ql?function(e){var t=Xl(this,e);return!!t&&t.enumerable}:ql;var ed=Is,td=ed({}.toString),nd=ed("".slice),rd=gs,od=function(e){return nd(td(e),8,-1)},id=Object,ad=Is("".split),sd=rd((function(){return!id("z").propertyIsEnumerable(0)}))?function(e){return"String"===od(e)?ad(e,""):id(e)}:id,cd=sd,ud=ks,hd=function(e){return cd(ud(e))},ld=ys,dd=bc,md=Wl,fd=Uu,gd=hd,yd=Tu,Sd=Ps,pd=mc,wd=Object.getOwnPropertyDescriptor;Gl.f=ld?wd:function(e,t){if(e=gd(e),t=yd(t),pd)try{return wd(e,t)}catch(e){}if(Sd(e,t))return fd(!dd(md.f,e,t),e[t])};var vd=Ds,bd=sc,Md=Th,Id=$s,Td={},Ad=Math.ceil,Ed=Math.floor,Dd=Math.trunc||function(e){var t=+e;return(t>0?Ed:Ad)(t)},Cd=Dd,Nd=function(e){var t=+e;return t!=t||0===t?0:Cd(t)},Od=Nd,kd=Math.max,Hd=Math.min,Yd=Nd,Ld=Math.min,Fd=function(e){return e>0?Ld(Yd(e),9007199254740991):0},Pd=hd,Rd=function(e,t){var n=Od(e);return n<0?kd(n+t,0):Hd(n,t)},_d=function(e){return Fd(e.length)},Ud=function(e){return function(t,n,r){var o,i=Pd(t),a=_d(i),s=Rd(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},jd={includes:Ud(!0),indexOf:Ud(!1)},xd=Ps,Bd=hd,Zd=jd.indexOf,zd=Vu,$d=Is([].push),Vd=function(e,t){var n,r=Bd(e),o=0,i=[];for(n in r)!xd(zd,n)&&xd(r,n)&&$d(i,n);for(;t.length>o;)xd(r,n=t[o++])&&(~Zd(i,n)||$d(i,n));return i},Kd=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jd=Vd,Gd=Kd.concat("length","prototype");Td.f=Object.getOwnPropertyNames||function(e){return Jd(e,Gd)};var Wd={};Wd.f=Object.getOwnPropertySymbols;var qd=Tc,Xd=Td,Qd=Wd,em=pc,tm=Is([].concat),nm=qd("Reflect","ownKeys")||function(e){var t=Xd.f(em(e)),n=Qd.f;return n?tm(t,n(e)):t},rm=Ps,om=nm,im=Gl,am=sc,sm=gs,cm=Ds,um=/#|\.prototype\./,hm=function(e,t){var n=dm[lm(e)];return n===fm||n!==mm&&(cm(t)?sm(t):!!t)},lm=hm.normalize=function(e){return String(e).replace(um,".").toLowerCase()},dm=hm.data={},mm=hm.NATIVE="N",fm=hm.POLYFILL="P",gm=hm,ym=fs,Sm=Gl.f,pm=Bu,wm=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(vd(n)&&Md(n,i,r),r.global)o?e[t]=n:Id(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:bd.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},vm=$s,bm=function(e,t,n){for(var r=om(t),o=am.f,i=im.f,a=0;a<r.length;a++){var s=r[a];rm(e,s)||n&&rm(n,s)||o(e,s,i(t,s))}},Mm=gm,Im={},Tm=Vd,Am=Kd,Em=Object.keys||function(e){return Tm(e,Am)},Dm=ys,Cm=fc,Nm=sc,Om=pc,km=hd,Hm=Em;Im.f=Dm&&!Cm?Object.defineProperties:function(e,t){Om(e);for(var n,r=km(t),o=Hm(t),i=o.length,a=0;i>a;)Nm.f(e,n=o[a++],r[n]);return e};var Ym,Lm=Tc("document","documentElement"),Fm=pc,Pm=Im,Rm=Kd,_m=Vu,Um=Lm,jm=lc,xm="prototype",Bm="script",Zm=$u("IE_PROTO"),zm=function(){},$m=function(e){return"<"+Bm+">"+e+"</"+Bm+">"},Vm=function(e){e.write($m("")),e.close();var t=e.parentWindow.Object;return e=null,t},Km=function(){try{Ym=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Km="undefined"!=typeof document?document.domain&&Ym?Vm(Ym):(t=jm("iframe"),n="java"+Bm+":",t.style.display="none",Um.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write($m("document.F=Object")),e.close(),e.F):Vm(Ym);for(var r=Rm.length;r--;)delete Km[xm][Rm[r]];return Km()};_m[Zm]=!0;var Jm=Object.create||function(e,t){var n;return null!==e?(zm[xm]=Fm(e),n=new zm,zm[xm]=null,n[Zm]=e):n=Km(),void 0===t?n:Pm.f(n,t)},Gm=fu,Wm=Jm,qm=sc.f,Xm=Gm("unscopables"),Qm=Array.prototype;void 0===Qm[Xm]&&qm(Qm,Xm,{configurable:!0,value:Wm(null)});var ef=jd.includes,tf=function(e){Qm[Xm][e]=!0};(function(e,t){var n,r,o,i,a,s=e.target,c=e.global,u=e.stat;if(n=c?ym:u?ym[s]||vm(s,{}):(ym[s]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=Sm(n,r))&&a.value:n[r],!Mm(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;bm(i,o)}(e.sham||o&&o.sham)&&pm(i,"sham",!0),wm(n,r,i,e)}})({target:"Array",proto:!0,forced:gs((function(){return!Array(1).includes()}))},{includes:function(e){return ef(this,e,arguments.length>1?arguments[1]:void 0)}}),tf("includes");var nf={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["Shabbos"],"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"],"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"],"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"]}}};X.addLocale("ashkenazi",nf),X.addLocale("a",nf);var rf={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["שַׁבָּת"],"Daf Yomi":["דַף יוֹמִי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדְלָקַת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבְדָּלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["אחרי השקיעה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"]}}};X.addLocale("he",rf),X.addLocale("h",rf);const of=rf.contexts[""],af={};for(const[e,t]of Object.entries(of))af[e]=[X.hebrewStripNikkud(t[0])];const sf={headers:rf.headers,contexts:{"":af}};function cf(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}X.addLocale("he-x-NoNikud",sf);const uf={shacharit:!1,mincha:!1,allCongs:!1};function hf(e,t){return lf(e,t,!0)}function lf(e,t,n){const r=function(e,t){const n=ae.isLeapYear(e),r=12+n;let o=new ae(9,g.AV,e);6===o.getDay()&&(o=o.next());let i=new ae(15,g.ADAR_II,e);6===i.getDay()&&(i=i.next());const a=[].concat(cf(1,r).map((t=>new ae(1,t,e))),cf(1,r).filter((t=>30===ae.daysInMonth(t,e))).map((t=>new ae(30,t,e))),new ae(2,g.TISHREI,e),cf(1,ae.daysInMonth(g.NISAN,e)).map((t=>new ae(t,g.NISAN,e))),new ae(18,g.IYYAR,e),cf(1,8-(t?1:0)).map((t=>new ae(t,g.SIVAN,e))),o,new ae(15,g.AV,e),new ae(29,g.ELUL,e),cf(9,24-(t?1:0)).map((t=>new ae(t,g.TISHREI,e))),cf(25,33).map((t=>new ae(t,g.KISLEV,e))),new ae(15,g.SHVAT,e),new ae(14,g.ADAR_II,e),i,n?new ae(14,g.ADAR_I,e):[]),s=[].concat(cf(1,13).map((t=>new ae(t,g.SIVAN,e))),cf(20,31).map((t=>new ae(t,g.TISHREI,e))),new ae(14,g.IYYAR,e),e>=5708?xh(e).next():[],e>=5727?new ae(28,g.IYYAR,e):[]),c=[].concat(new ae(29,g.ELUL,e-1),new ae(9,g.TISHREI,e),new ae(14,g.IYYAR,e));return{none:a.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.getFullYear(),t),o=e.abs();if(r.none.indexOf(o)>-1)return uf;const i=e.getDay(),a={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(a.allCongs=!0),6!==i&&(a.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=lf(new ae(s),t,!1);a.mincha=e.shacharit}else a.mincha=5!==i;return!a.allCongs||a.mincha||a.shacharit?a:uf}const df=g.NISAN,mf=g.SIVAN,ff=g.ELUL,gf=g.TISHREI,yf=he.LIGHT_CANDLES,Sf=he.YOM_TOV_ENDS,pf=he.CHUL_ONLY,wf=he.IL_ONLY,vf=he.LIGHT_CANDLES_TZEIS,bf=he.CHANUKAH_CANDLES,Mf=he.MINOR_FAST,If=he.SPECIAL_SHABBAT,Tf=he.MODERN_HOLIDAY,Af=he.MAJOR_FAST,Ef=he.ROSH_CHODESH,Df=he.PARSHA_HASHAVUA,Cf=he.DAF_YOMI,Nf=he.MISHNA_YOMI,Of=he.NACH_YOMI,kf=he.YERUSHALMI_YOMI,Hf=he.OMER_COUNT,Yf=he.SHABBAT_MEVARCHIM,Lf=he.MINOR_HOLIDAY,Ff=he.EREV,Pf=he.CHOL_HAMOED,Rf=he.YOM_KIPPUR_KATAN,_f=new Set,Uf={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const jf={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},xf={281184:40,294801:30,293067:30};function Bf(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(ae.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function Zf(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&Ef&&delete e.noRoshChodesh;t&Tf&&delete e.noModern;t&Mf&&delete e.noMinorFast;t&If&&delete e.noSpecialShabbat;t&Df&&(e.sedrot=!0);t&(Cf|Nf|Of|kf)&&(e.dailyLearning=e.dailyLearning||{},t&Cf&&(e.dailyLearning.dafYomi=!0),t&Nf&&(e.dailyLearning.mishnaYomi=!0),t&Of&&(e.dailyLearning.nachYomi=!0),t&kf&&(e.dailyLearning.yerushalmi=1));t&Hf&&(e.omer=!0);t&Yf&&(e.shabbatMevarchim=!0);t&Rf&&(e.yomKippurKatan=!0);return e.userMask=!0,t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.il)||!1;let r=0;if(e.noHolidays||(r|=Ef|Sf|Mf|If|Tf|Af|Lf|Ff|Pf|yf|vf|bf),e.candlelighting&&(r|=yf|vf|Sf),e.noRoshChodesh&&(r&=~Ef),e.noModern&&(r&=~Tf),e.noMinorFast&&(r&=~Mf),e.noSpecialShabbat&&(r&=~If,r&=~Yf),r|=n?wf:pf,e.sedrot&&(r|=Df),e.omer&&(r|=Hf),e.shabbatMevarchim&&(r|=Yf),e.yomKippurKatan&&(r|=Rf),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=Cf),t.mishnaYomi&&(r|=Nf),t.nachYomi&&(r|=Of),t.yerushalmi&&(r|=kf)}return r}const zf=yf|vf|bf|Sf,$f=new da(0,0,!1,"UTC"),Vf={US:1,CA:1,BR:1,AU:1,NZ:1,DO:1,PR:1,GR:1,IN:1,KR:1,NP:1,ZA:1};function Kf(e){return e.observedInIsrael()}function Jf(e){return e.observedInDiaspora()}class Gf{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({},t),function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof da))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");let n=parseInt(e.candleLightingMins,10)||18;if(t.getIsrael()&&18===Math.abs(n)){const e=t.getGeoId(),r=xf[e];"number"==typeof r&&(n=r);const o=jf[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const n=t.location=t.location||$f,r=t.il=t.il||n.il||!1;if(t.mask=Zf(t),t.ashkenazi||t.locale){if(t.locale&&"string"!=typeof t.locale)throw new TypeError(`Invalid options.locale: ${t.locale}`);const e=t.ashkenazi?"ashkenazi":t.locale;if(!X.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else X.useLocale("en");const o=[];let i,a,s,c,u=-1;const h=function(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[Bf(t.start),Bf(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new ae).getFullYear():(new Date).getFullYear();if(isNaN(r))throw new RangeError(`Invalid year ${t.year}`);if(n&&r<1)throw new RangeError(`Invalid Hebrew year ${r}`);let o=NaN;t.month&&(o=n?ae.monthNum(t.month):t.month);const i=parseInt(t.numYears,10)||1;if(n){const e=new ae(1,o||gf,r);let n=e.abs();const a=t.month?n+e.daysInMonth():new ae(1,gf,r+i).abs()-1;return!o&&r>1&&n--,[n,a]}{const n=t.month?o-1:0,a=new Date(r,n,1);r<100&&a.setFullYear(r);const s=e.greg.greg2abs(a);let c;if(t.month)c=s+e.greg.daysInMonth(o,r)-1;else{const t=r+i,n=new Date(t,0,1);t<100&&n.setFullYear(t),c=e.greg.greg2abs(n)-1}return[s,c]}}(t);!function(e){for(const t of Object.keys(e))void 0!==Uf[t]||_f.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),_f.add(t))}(t);const l=h[0],d=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=d;e++){const h=new ae(e),l=h.getFullYear();l!=u&&(u=l,a=$l(u),t.sedrot&&(i=hs(u,r)),t.omer&&(s=ae.hebrew2abs(u,df,16),c=ae.hebrew2abs(u,mf,5)));const d=o.length,m=h.getDay();let f;const g=a.get(h.toString())||[];for(const e of g)f=Wf(o,e,t,f,m);if(t.sedrot&&6===m){const t=i.lookup(e);t.chag||o.push(new ls(h,t.parsha,r,t.num))}const y=t.dailyLearning;if("object"==typeof y)for(const[e,t]of Object.entries(y))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,r=Kl.lookup(n,h);r&&o.push(r)}if(t.omer&&e>=s&&e<=c){const r=new La(h,e-s+1);if(t.candlelighting){const e=new wa(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const S=h.getMonth();if(t.molad&&6==m&&S!=ff&&h.getDate()>=23&&h.getDate()<=29){const e=S==ae.monthsInYear(l)?df:S+1;o.push(new ka(h,l,e))}if(f||!t.candlelighting||5!=m&&6!=m||(f=Ma(void 0,h,m,n,t),5===m&&f&&i&&(f.memo=i.getString(e))),f instanceof Ta&&(0===t.havdalahMins||0===t.havdalahDeg)&&(f=null),f&&o.push(f),t.addHebrewDates||t.addHebrewDatesForEvents&&d!=o.length){const e=new me(h);d==o.length?o.push(e):o.splice(d,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=j(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=A(r);let i=n.mm,a=n.dd;return i==_&&!o||i==U&&o?i=E(e):i!=L||30!=a||k(e)?i==F&&30==a&&H(e)?(i=P,a=1):i==_&&30==a&&o&&!A(e)&&(i=Y,a=1):(i=F,a=1),{yy:e,mm:i,dd:a}}(e,t);return void 0===n?n:new ae(n)}static getYahrzeit(e,t){const n=function(e,t){let n=j(t);if(!(e<=n.yy))return n.mm!=L||30!=n.dd||k(n.yy+1)?n.mm==F&&30==n.dd&&H(n.yy+1)?n=T(M(e,P,1)-1):n.mm==U?n.mm=E(e):n.mm!=_||30!=n.dd||A(e)||(n.dd=30,n.mm=R):n=T(M(e,F,1)-1),n.mm!=L||30!=n.dd||k(e)?n.mm==F&&30==n.dd&&H(e)&&(n.mm=P,n.dd=1):(n.mm=F,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new ae(n)}static getHolidaysForYear(e){return $l(e)}static getHolidaysForYearArray(e,t){const n=$l(e),r=ae.hebrew2abs(e,gf,1),o=ae.hebrew2abs(e+1,gf,1)-1;let i=[];const a=t?Kf:Jf;for(let e=r;e<=o;e++){const t=new ae(e),r=n.get(t.toString());if(r){const e=r.filter(a);i=i.concat(e)}}return i}static getHolidaysOnDate(e,t){const n=ae.isHDate(e)?e:new ae(e),r=n.toString(),o=$l(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const i=t?Kf:Jf;return o.filter(i)}static reformatTimeStr(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null===(r=n.location)||void 0===r?void 0:r.cc)||(n.il?"IL":"US");if(void 0!==n.hour12&&!n.hour12)return e;if(!n.hour12&&void 0===Vf[o])return e;const i=e.split(":");let a=parseInt(i[0],10);return a<12&&t?(t=t.replace("p","a").replace("P","A"),0===a&&(a=12)):a>12?a%=12:0===a&&(a="00"),`${a}:${i[1]}${t}`}static version(){return Jl}static getSedra(e,t){return hs(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===g.NISAN&&(15===o||16===o)&&e.getFlags()&he.CHAG||"Yom HaAtzma'ut"===t||"Yom Yerushalayim"===t})).map((e=>e.getDate().abs())),r=t.abs();return n.includes(r)?2:e.filter((e=>{const t=e.getDesc();return e.getFlags()&he.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(Gf.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return hf(e,t)}}function Wf(e,t,n,r,o){const i=n.il;if(!t.observedIn(i))return r;const a=t.getFlags();if(!n.yomKippurKatan&&a&Rf||n.noModern&&a&Tf)return r;const s=n.location,c=Boolean(a&Af),u=Boolean(a&Mf);if(n.candlelighting&&(c||u)&&(t=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),i=t.location,a=t.fastEndDeg,s=new wa(i,o,t.useElevation);if("Erev Tish'a B'Av"===n){const t=s.sunset();e.startEvent=Ea(r,t,"Fast begins",e,i)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=Ea(r,s.tzeit(a),"Fast ends",e,i);else{const t=s.alotHaShachar();e.startEvent=Ea(r,t,"Fast begins",e,i),5===o.getDay()||14===r.getDate()&&r.getMonth()===g.NISAN||(e.endEvent=Ea(r,s.tzeit(a),"Fast ends",e,i))}return e}(t,n),t.startEvent&&(c||u&&!n.noMinorFast)&&e.push(t.startEvent)),a&n.mask||!a&&!n.userMask){if(n.candlelighting&&a&zf){const e=t.getDate();if(r=Ma(t,e,o,s,n),a&bf&&r&&!n.noHolidays){const i=5===o||6===o?r:function(e,t,n){const r=n.location,o=new wa(r,t.greg(),n.useElevation);return Ea(t,o.dusk(),e.getDesc(),e,r)}(t,e,n),c={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:s};t.chanukahDay&&(c.chanukahDay=t.chanukahDay),t.emoji&&(c.emoji=t.emoji),t=new Tl(t.getDate(),t.getDesc(),a,c),r=void 0}}(!n.noHolidays||n.yomKippurKatan&&a&Rf)&&e.push(t)}return t.endEvent&&(c||u&&!n.noMinorFast)&&e.push(t.endEvent),r}return e.AsaraBTevetEvent=Dl,e.CandleLightingEvent=Aa,e.DailyLearning=Kl,e.Event=de,e.GeoLocation=ia,e.HDate=ae,e.HavdalahEvent=Ta,e.HebrewCalendar=Gf,e.HebrewDateEvent=me,e.HolidayEvent=Tl,e.Locale=X,e.Location=da,e.MevarchimChodeshEvent=Nl,e.Molad=Oa,e.MoladEvent=ka,e.NOAACalculator=sa,e.OmerEvent=La,e.ParshaEvent=ls,e.RoshChodeshEvent=El,e.RoshHashanaEvent=Ol,e.Sedra=$a,e.TimedEvent=Ia,e.Zmanim=wa,e.flags=he,e.gematriya=$,e.gematriyaStrToNum=V,e.months=g,e.parshiot=Va,e.version=Jl,e}({});
|
|
1
|
+
/*! @hebcal/core v5.0.6 */
|
|
2
|
+
var hebcal=function(e){"use strict";const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],n=[t,t.slice()];function r(e,t){return e-t*Math.floor(e/t)}function o(e,t){return Math.floor(e/t)}n[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function i(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function a(e,n,r){const i=e-1;return 365*i+o(i,4)-o(i,100)+o(i,400)+o(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.isLeapYear=t,e.daysInMonth=function(e,r){return n[+t(r)][e]},e.isDate=i,e.greg2abs=function(e){if(!i(e))throw new TypeError(`Argument not a Date: ${e}`);return a(e.getFullYear(),e.getMonth()+1,e.getDate())},e.abs2greg=function(e){if("number"!=typeof e)throw new TypeError(`Argument not a Number: ${e}`);const n=function(e){const t=e-1,n=o(t,146097),i=r(t,146097),a=o(i,36524),s=r(i,36524),c=o(s,1461),u=o(r(s,1461),365),h=400*n+100*a+4*c+u;return 4!=a&&4!=u?h+1:h}(e=Math.trunc(e)),i=o(12*(e-a(n,1,1)+(e<a(n,3,1)?0:t(n)?1:2))+373,367),s=e-a(n,i,1)+1,c=new Date(n,i-1,s);return n<100&&n>=0&&c.setFullYear(n),c}}(e.greg||(e.greg={}));const i=1,a=2,s=4,c=6,u=7,h=8,l=9,d=10,m=12,f=13,g={NISAN:1,IYYAR:2,SIVAN:3,TAMUZ:4,AV:5,ELUL:6,TISHREI:7,CHESHVAN:8,KISLEV:9,TEVET:10,SHVAT:11,ADAR_I:12,ADAR_II:13},y=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],S=[y.concat(["Adar","Nisan"]),y.concat(["Adar I","Adar II","Nisan"])],p=new Map,w=-1373428,v=365.24682220597794;function b(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function M(e,t,n){if(b(e,"year"),b(t,"month"),b(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<u){for(let t=u;t<=E(e);t++)r+=D(t,e);for(let n=i;n<t;n++)r+=D(n,e)}else for(let n=u;n<t;n++)r+=D(n,e);return w+N(e)+r-1}function I(e){return w+N(e)}function T(e){if(b(e,"abs"),(e=Math.trunc(e))<=w)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-w)/v);for(;I(t)<=e;)++t;--t;let n=e<M(t,1,1)?7:1;for(;e>M(t,n,D(n,t));)++n;return{yy:t,mm:n,dd:1+e-M(t,n,1)}}function A(e){return(1+7*e)%19<7}function E(e){return+A(e)+12}function D(e,t){switch(e){case a:case s:case c:case d:case f:return 29}return e===m&&!A(t)||e===h&&!k(t)||e===l&&H(t)?29:30}function C(e,t){if(b(e,"month"),b(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return S[+A(t)][e]}function N(e){const t=p.get(e);if("number"==typeof t)return t;const n=function(e){const t=e-1,n=235*Math.floor(t/19)+t%19*12+Math.floor((t%19*7+1)/19),r=204+n%1080*793,o=5+12*n+793*Math.floor(n/1080)+Math.floor(r/1080),i=r%1080+o%24*1080,a=1+29*n+Math.floor(o/24);let s=a;(i>=19440||2==a%7&&i>=9924&&!A(e)||1==a%7&&i>=16789&&A(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return p.set(e,n),n}function O(e){return N(e+1)-N(e)}function k(e){return O(e)%10==5}function H(e){return O(e)%10==3}const Y=g.NISAN,L=g.CHESHVAN,F=g.KISLEV,P=g.TEVET,R=g.SHVAT,_=g.ADAR_I,U=g.ADAR_II;function j(t){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(t))return t;if("number"==typeof t)return T(t);if(e.greg.isDate(t)){return T(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}const x={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},B=new Map,Z=new Map;for(const[e,t]of Object.entries(x))B.set(e,t),Z.set(t,e);function z(e){const t=[];for(;e>0;){if(15===e||16===e){t.push(9),t.push(e-9);break}let n,r=100;for(n=400;n>e;n-=r)n===r&&(r/=10);t.push(n),e-=n}return t}function $(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let n="";const r=Math.floor(t/1e3);if(r>0&&5!==r){const e=z(r);for(const t of e)n+=Z.get(t);n+="׳"}const o=z(t%1e3);if(1==o.length)return n+Z.get(o[0])+"׳";for(let e=0;e<o.length;e++)e+1===o.length&&(n+="״"),n+=Z.get(o[e]);return n}function V(e){let t=0;const n=e.indexOf("׳");if(-1!==n&&n!==e.length-1){t+=1e3*V(e.substring(0,n)),e=e.substring(n)}for(const n of e){const e=B.get(n);"number"==typeof e&&(t+=e)}return t}const K={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},J={h:"he",a:"ashkenazi",s:"en","":"en"},G=new Map;let W=null,q=null;class X{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&G.get(n)||W)[e];if(null!=r&&r.length&&r[0].length)return r[0]}static gettext(e,t){const n=this.lookupTranslation(e,t);return void 0===n?e:n}static addLocale(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);G.set(e.toLowerCase(),t.contexts[""])}static addTranslation(e,t,n){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const r=e.toLowerCase(),o=G.get(r);if(!o)throw new TypeError(`Unknown locale: ${e}`);if("string"!=typeof t||0===t.length)throw new TypeError(`Invalid id: ${t}`);const i=Array.isArray(n);if(i){const e=n[0];if("string"!=typeof e||0===e.length)throw new TypeError(`Invalid translation array: ${n}`)}else if("string"!=typeof n)throw new TypeError(`Invalid translation: ${n}`);o[t]=i?n:[n]}static addTranslations(e,t){if("string"!=typeof e)throw new TypeError(`Invalid locale name: ${e}`);const n=e.toLowerCase(),r=G.get(n);if(!r)throw new TypeError(`Unknown locale: ${e}`);if("object"!=typeof t.contexts||"object"!=typeof t.contexts[""])throw new TypeError(`Locale '${e}' invalid compact format`);const o=t.contexts[""];Object.assign(r,o)}static useLocale(e){const t=e.toLowerCase(),n=G.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return q=J[t]||t,W=n,W}static getLocaleName(){return q}static getLocaleNames(){return Array.from(G.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||q;if(!n)return this.getEnOrdinal(e);switch(n){case"en":case"s":case"a":case"ashkenazi":case"ashkenazi_litvish":case"ashkenazi_poylish":case"ashkenazi_standard":return this.getEnOrdinal(e);case"es":return e+"º";case"h":case"he":case"he-x-nonikud":return String(e);default:return e+"."}}static getEnOrdinal(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}static hebrewStripNikkud(e){return e.replace(/[\u0590-\u05bd]/g,"").replace(/[\u05bf-\u05c7]/g,"")}}function Q(e){throw new TypeError(e)}X.addLocale("en",K),X.addLocale("s",K),X.addLocale("",K),X.useLocale("en");const ee="day",te="week",ne="month",re="year",oe={d:ee,w:te,M:ne,y:re},ie={day:ee,week:te,month:ne,year:re};class ae{constructor(t,n,r){if(2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.dd=this.mm=1,r=parseInt(r,10),isNaN(r))throw new TypeError(`HDate called with bad year argument: ${r}`);if(this.yy=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError(`HDate called with bad day argument: ${t}`);this.setDate(t)}else{null==t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):"number"==typeof t.yy&&"number"==typeof t.mm&&"number"==typeof t.dd?t:Q(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?T(n):n;this.dd=o.dd,this.mm=o.mm,this.yy=o.yy,r&&(this.rd=n)}}getFullYear(){return this.yy}isLeapYear(){return A(this.yy)}getMonth(){return this.mm}getTishreiMonth(){const e=E(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return D(this.getMonth(),this.getFullYear())}getDate(){return this.dd}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.mm=ae.monthNum(e),se(this),this}setDate(e){return this.dd=e,se(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.rd&&(this.rd=M(this.yy,this.mm,this.dd)),this.rd}static hebrew2abs(e,t,n){return M(e,t,n)}getMonthName(){return C(this.getMonth(),this.getFullYear())}render(){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)||X.getLocaleName(),n=this.getDate(),r=X.gettext(this.getMonthName(),t),o=`${X.ordinal(n,t)}${ae.getDayOfTranslation(t)} ${r}`;if(e){return`${o}, ${this.getFullYear()}`}return o}static getDayOfTranslation(e){switch(e){case"en":case"s":case"a":case"ashkenazi":return" of"}const t=X.lookupTranslation("of",e);return t?" "+t:e.startsWith("ashkenazi")?" of":""}renderGematriya(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getDate(),n=e?"he-x-NoNikud":"he",r=X.gettext(this.getMonthName(),n),o=this.getFullYear();return $(t)+" "+r+" "+$(o)}before(e){return ue(e,this,-1)}onOrBefore(e){return ue(e,this,0)}nearest(e){return ue(e,this,3)}onOrAfter(e){return ue(e,this,6)}after(e){return ue(e,this,7)}next(){return new ae(this.abs()+1)}prev(){return new ae(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new ae(this);if(t=ae.standardizeUnits(t),t===ee)return new ae(this.abs()+e);if(t===te)return new ae(this.abs()+7*e);if(t===re)return new ae(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===ne){let t=new ae(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new ae(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=oe[e]||String(e||"").toLowerCase().replace(/s$/,"");return ie[t]||Q(`Invalid units '${e}'`)}subtract(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";return this.add(-1*e,t)}deltaDays(e){if(!ae.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!ae.isHDate(e)&&(this.yy==e.yy&&this.mm==e.mm&&this.dd==e.dd)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return A(e)}static monthsInYear(e){return E(e)}static daysInMonth(e,t){return D(e,t)}static getMonthName(e,t){return C(e,t)}static monthNum(e){if("number"==typeof e){if(isNaN(e)||e>14)throw new RangeError(`Invalid month number: ${e}`);return e}return e.charCodeAt(0)>=48&&e.charCodeAt(0)<=57?parseInt(e,10):ae.monthFromName(e)}static daysInYear(e){return O(e)}static longCheshvan(e){return k(e)}static shortKislev(e){return H(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}return function(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=e.trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"==t[1])break;return g.NISAN;case"i":return g.IYYAR;case"e":return g.ELUL;case"c":case"ח":return g.CHESHVAN;case"k":case"כ":return g.KISLEV;case"s":switch(t[1]){case"i":return g.SIVAN;case"h":return g.SHVAT}break;case"t":switch(t[1]){case"a":return g.TAMUZ;case"i":return g.TISHREI;case"e":return g.TEVET}break;case"a":switch(t[1]){case"v":return g.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?g.ADAR_I:g.ADAR_II}break;case"ס":return g.SIVAN;case"ט":return g.TEVET;case"ש":return g.SHVAT;case"א":switch(t[1]){case"ב":return g.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?g.ADAR_I:g.ADAR_II;case"י":return g.IYYAR;case"ל":return g.ELUL}break;case"ת":switch(t[1]){case"מ":return g.TAMUZ;case"ש":return g.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}(X.hebrewStripNikkud(e))}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd&&"function"==typeof e.greg&&"function"==typeof e.abs}static fromGematriyaString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3;const n=e.split(" "),r=V(n[0]),o=ae.monthFromName(n[1]);let i=V(n[2]);return i<1e3&&(i+=t),new ae(r,o,i)}}function se(e){ce(e),function(e){e.dd<1&&(e.mm==g.TISHREI&&(e.yy-=1),e.dd+=D(e.mm,e.yy),e.mm-=1,se(e));e.dd>D(e.mm,e.yy)&&(e.mm===g.ELUL&&(e.yy+=1),e.dd-=D(e.mm,e.yy),e.mm+=1,se(e));ce(e)}(e)}function ce(e){e.mm!==g.ADAR_II||e.isLeapYear()?e.mm<1?(e.mm+=E(e.yy),e.yy-=1,se(e)):e.mm>E(e.yy)&&(e.mm-=E(e.yy),e.yy+=1,se(e)):(e.mm-=1,se(e)),delete e.rd}function ue(e,t,n){return new ae(ae.dayOnOrBefore(e,t.abs()+n))}const he={CHAG:1,LIGHT_CANDLES:2,YOM_TOV_ENDS:4,CHUL_ONLY:8,IL_ONLY:16,LIGHT_CANDLES_TZEIS:32,CHANUKAH_CANDLES:64,ROSH_CHODESH:128,MINOR_FAST:256,SPECIAL_SHABBAT:512,PARSHA_HASHAVUA:1024,DAF_YOMI:2048,OMER_COUNT:4096,MODERN_HOLIDAY:8192,MAJOR_FAST:16384,SHABBAT_MEVARCHIM:32768,MOLAD:65536,USER_EVENT:131072,HEBREW_DATE:262144,MINOR_HOLIDAY:524288,EREV:1048576,CHOL_HAMOED:2097152,MISHNA_YOMI:4194304,YOM_KIPPUR_KATAN:8388608,YERUSHALMI_YOMI:16777216,NACH_YOMI:33554432},le=[[he.MAJOR_FAST,"holiday","major","fast"],[he.CHANUKAH_CANDLES,"holiday","major"],[he.HEBREW_DATE,"hebdate"],[he.MINOR_FAST,"holiday","fast"],[he.MINOR_HOLIDAY,"holiday","minor"],[he.MODERN_HOLIDAY,"holiday","modern"],[he.MOLAD,"molad"],[he.OMER_COUNT,"omer"],[he.PARSHA_HASHAVUA,"parashat"],[he.ROSH_CHODESH,"roshchodesh"],[he.SHABBAT_MEVARCHIM,"mevarchim"],[he.SPECIAL_SHABBAT,"holiday","shabbat"],[he.USER_EVENT,"user"]];class de{constructor(e,t,n,r){this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.assign(this,r)}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return X.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&he.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&he.IL_ONLY)}observedIn(e){return e?this.observedInIsrael():this.observedInDiaspora()}clone(){const e=new this.constructor;for(const t in this)this.hasOwnProperty(t)&&(e[t]=this[t]);return e}getCategories(){const e=this.getFlags();for(const t of le)if(e&t[0])return t.slice(1);return["unknown"]}}class me extends de{constructor(e){super(e,e.toString(),he.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||X.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":return n.renderGematriya(!1);case"he-x-nonikud":return n.renderGematriya(!0);default:return n.render(t,!0)}}renderBriefHebrew(e){const t=this.getDate(),n=t.getDate(),r=X.gettext(t.getMonthName(),e);return $(n)+" "+r}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||X.getLocaleName(),n=this.getDate();if(n.getMonth()===g.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":return this.renderBriefHebrew(t);default:return n.render(t,!1)}}}const fe=36e11,ge=864e11,ye=[1,1e3,1e6,1e9,6e10,fe,ge],Se=[9,6,3];function pe(e){return e<=6}function we(e){return e>=6}const ve=be("overflow",{constrain:0,reject:1},0);function be(e,t,n){const r=function(e,t,n){return(r,o)=>{if(void 0===r){const t=null!=o?o:n;if(void 0===t)throw new RangeError(`Must specify a ${e}`);return t}if(void 0===t[r])throw new RangeError(`Invalid ${e}: ${r}`);return t[r]}}(e,t,n);return(t,n)=>{const o=Te(t);return r(o[e],n)}}function Me(e,t,n,r){if(void 0===e)return t;if(!Number.isFinite(e))throw new RangeError("Number must be finite");e=Math.trunc(e);const o=Math.min(Math.max(e,t),n);if(o!==e&&1===r)throw new RangeError("Invalid overflowed value "+e);return o}function Ie(e,t){const n={};for(const r in t)void 0!==e[r]&&(n[r]=t[r](e[r]));return n}function Te(e,t){if(void 0===e&&!t)return{};if(!Ee(e))throw TypeError("options must be an object or undefined");return e}const Ae=/object|function/;function Ee(e){return null!==e&&Ae.test(typeof e)}const De=be("roundingMode",{halfExpand:Math.round,ceil:Math.ceil,trunc:Math.trunc,floor:Math.floor});function Ce(){const e=new WeakMap;return[e.get.bind(e),e.set.bind(e)]}function Ne(e,t){Object.defineProperties(e.prototype,Oe(t,(e=>({get:e}))))}function Oe(e,t){const n={};for(const r in e)n[r]=t(e[r],r);return n}function ke(e,t,n){const r={};for(const o of t)r[o]=n(e[o]);return r}function He(e,t){const n={};return e.forEach(((e,r)=>{n[e]=t(e,r)})),n}const Ye=["nanosecond","microsecond","millisecond","second","minute","hour"],Le=[...Ye,"day","week","month","year"],Fe=Le.map((e=>e+"s")),Pe=He(Le,((e,t)=>t)),Re=He(Fe,((e,t)=>t));function _e(e,t,n,r){var o;let i;if(void 0===e){if(void 0===t)throw new RangeError("Unit is required");i=t}else if(i=null!=(o=Pe[e])?o:Re[e],void 0===i||i<n||i>r)throw new RangeError("Invalid unit "+e);return i}function Ue(e,t,n,r,o,i){var a;const s=Te(e),c=null!=(a=s.roundingIncrement)?a:1,u=_e(s.smallestUnit,n,r,o),h=De(s,i?Math.round:Math.trunc);let l=s.largestUnit;"auto"===l&&(l=void 0);const d=_e(l,t=Math.max(t,u),r,o);if(u>d)throw new RangeError("Bad smallestUnit/largestUnit");if(u<6){const e=ye[u+1],t=ye[u]*c;if(e===t)throw new RangeError("Must not equal larger unit");if(e%t)throw new RangeError("Must divide into larger unit")}return{smallestUnit:u,largestUnit:d,roundingFunc:h,roundingIncrement:c}}function je(e,t,n,r){var o;const i=Te("string"==typeof e?{smallestUnit:e}:e,!0),a=null!=(o=i.roundingIncrement)?o:1,s=_e(i.smallestUnit,void 0,t,n),c=De(i,Math.round),u=ye[s]*a;if(6===s){if(1!==a)throw new RangeError("When smallestUnit is days, roundingIncrement must be 1")}else{const e=r?ge:ye[s+1];if(!r&&e===u)throw new RangeError("Must not equal larger unit");if(e%u)throw new RangeError("Must divide into larger unit")}return{smallestUnit:s,roundingFunc:c,incNano:u}}const xe=Symbol();function Be(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t instanceof e?t:e.from(t,...r)}class Ze{toJSON(){return this.toString()}}class ze extends Ze{valueOf(){throw new Error("Cannot convert object using valueOf")}}const[$e,Ve]=Ce();class Ke extends ze{constructor(e){super(),Ve(this,Object.freeze(e))}getISOFields(){return $e(this)}}function Je(e,t){return e<t?-1:e>t?1:0}function Ge(e){return Je(e,0)}function We(e,t,n){return n(e/t)*t}function qe(e){return We(e,6e10,Xe)}function Xe(e){return Math.round(Math.abs(e))*Ge(e)}function Qe(e,t,n){const r=e.div(t).mult(t),o=e.sub(r).toNumber();return r.add(n(o/t)*t)}function et(e,t){return(e%t+t)%t}function tt(e,t){return rt(n=String(e),t,"0")+n;var n}function nt(e,t,n){return e+rt(e,t,n)}function rt(e,t,n){return new Array(Math.max(0,t-e.length+1)).join(n)}function ot(e){return e<0?"-":"+"}const it=Math.pow(10,8);class at{constructor(e,t){this.high=e,this.low=t}sign(){return Ge(this.high)||Ge(this.low)}neg(){return new at(-this.high||0,-this.low||0)}abs(){return this.sign()<0?this.neg():this}add(e){const[t,n]=ut(e);return ht(this.high+t,this.low+n)}sub(e){const[t,n]=ut(e);return ht(this.high-t,this.low-n)}mult(e){return ht(this.high*e,this.low*e)}div(e){const t=this.high/e;let n=String(t);-1!==n.indexOf("e-")&&(n=t.toFixed(20));const r=n.indexOf(".");let o=0;if(-1!==r){let e=n.substr(r+1);e=nt(e,8,"0"),e=e.substr(0,8),o=parseInt(e)*(Ge(t)||1)}return ht(Math.trunc(t)||0,Math.trunc(this.low/e)+o)}toNumber(){return this.high*it+this.low}toBigInt(){return BigInt(this.high)*BigInt(it)+BigInt(this.low)}}function st(e,t){let n,r;if(e instanceof at)n=e.high,r=e.low;else if("number"==typeof e){if(t)throw new TypeError("Must supply bigint, not number");n=Math.trunc(e/it),r=e%it||0}else if("bigint"==typeof e){const t=BigInt(it);n=Number(e/t),r=Number(e%t||0)}else{if("string"!=typeof e)throw new Error("Invalid type of BigNano");{if((e=e.trim()).match(/\D/))throw new SyntaxError(`Cannot parse ${e} to a BigInt`);const t=e.length-8;n=Number(e.substr(t)),r=Number(e.substr(0,t))}}return new at(n,r)}function ct(e,t){return Je(e.high,t.high)||Je(e.low,t.low)}function ut(e){return"number"==typeof e?[0,e]:[e.high,e.low]}function ht(e,t){let n=t%it||0,r=e+Math.trunc(t/it);const o=Ge(r),i=Ge(n);return i&&o&&i!==o&&(r+=i,n-=it*i),new at(r,n)}const lt=Fe.concat("sign");function dt(e){return ke(e,lt,(e=>-e||0))}function mt(e,t){var n,r,o,i,a,s,c,u,h,l;return ft({years:null!=(n=t.years)?n:e.years,months:null!=(r=t.months)?r:e.months,weeks:null!=(o=t.weeks)?o:e.weeks,days:null!=(i=t.days)?i:e.days,hours:null!=(a=t.hours)?a:e.hours,minutes:null!=(s=t.minutes)?s:e.minutes,seconds:null!=(c=t.seconds)?c:e.seconds,milliseconds:null!=(u=t.milliseconds)?u:e.milliseconds,microseconds:null!=(h=t.microseconds)?h:e.microseconds,nanoseconds:null!=(l=t.nanoseconds)?l:e.nanoseconds})}function ft(e){return{...e,sign:gt(e)}}function gt(e){let t=0;for(const n of Fe)if(e[n]){t=Ge(e[n]);break}return t}function yt(e){let t=9;for(;t>0&&!e[Fe[t]];)t--;return t}const St={isoHour:0,isoMinute:0,isoSecond:0,isoMillisecond:0,isoMicrosecond:0,isoNanosecond:0},pt={hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};function wt(e){return{isoHour:e.hour||0,isoMinute:e.minute||0,isoSecond:e.second||0,isoMillisecond:e.millisecond||0,isoMicrosecond:e.microsecond||0,isoNanosecond:e.nanosecond||0}}function vt(e){return st(ge).mult(e.days).add(bt(e))}function bt(e){return st(e.nanoseconds).add(st(e.microseconds).mult(1e3)).add(st(e.milliseconds).mult(1e6)).add(st(e.seconds).mult(1e9)).add(st(e.minutes).mult(6e10)).add(st(e.hours).mult(fe))}function Mt(e){return e.isoHour*fe+6e10*e.isoMinute+1e9*e.isoSecond+1e6*e.isoMillisecond+1e3*e.isoMicrosecond+e.isoNanosecond}function It(e,t){let n,r=0,o=0,i=0,a=0,s=0,c=0;switch(t){case 6:n=e.div(ge),r=n.toNumber(),e=e.sub(n.mult(ge));case 5:n=e.div(fe),o=n.toNumber(),e=e.sub(n.mult(fe));case 4:n=e.div(6e10),i=n.toNumber(),e=e.sub(n.mult(6e10));case 3:n=e.div(1e9),a=n.toNumber(),e=e.sub(n.mult(1e9));case 2:n=e.div(1e6),s=n.toNumber(),e=e.sub(n.mult(1e6));case 1:n=e.div(1e3),c=n.toNumber(),e=e.sub(n.mult(1e3))}return ft({years:0,months:0,weeks:0,days:r,hours:o,minutes:i,seconds:a,milliseconds:s,microseconds:c,nanoseconds:e.toNumber()})}function Tt(e){const t=Math.floor(e/ge);e-=t*ge;const n=Math.floor(e/fe);e-=n*fe;const r=Math.floor(e/6e10);e-=6e10*r;const o=Math.floor(e/1e9);e-=1e9*o;const i=Math.floor(e/1e6);e-=1e6*i;const a=Math.floor(e/1e3);return[{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:a,isoNanosecond:e-=1e3*a},t]}const At={gregory:{bce:-1,ce:0},ethioaa:{era0:0},ethiopic:{era0:0,era1:5500},coptic:{era0:-1,era1:0},roc:{beforeroc:-1,minguo:0},buddhist:{be:0},islamic:{ah:0},indian:{saka:0},persian:{ap:0},japanese:{bce:-1,ce:0,meiji:1867,taisho:1911,showa:1925,heisei:1988,reiwa:2018}};class Et{constructor(e){this.id=e}monthCode(e,t){return"M"+tt(e,2)}convertMonthCode(e,t){const n=/L$/.test(e),r=parseInt(e.substr(1));if(n)throw new RangeError("Calendar system doesnt support leap months");return[r,!1]}}function Dt(e,t,n,r){var o;let i=null==(o=At[Ct(e)])?void 0:o[n];if(void 0===i){if(!r)throw new Error("Unkown era "+n);i=0}return(i+t)*(Ge(i)||1)}function Ct(e){return e.split("-")[0]}class Nt extends Et{computeFields(e){const t=Rt(e);return{era:void 0,eraYear:void 0,year:t.isoYear,month:t.isoMonth,day:t.isoDay}}epochMilliseconds(e,t,n){return Ft(e,t,n)}daysInMonth(e,t){return 2===t?this.inLeapYear(e)?29:28:4===t||6===t||9===t||11===t?30:31}monthsInYear(){return 12}inLeapYear(e){return e%4==0&&(e%100!=0||e%400==0)}guessYearForMonthDay(){return kt}normalizeISOYearForMonthDay(){return kt}}const Ot=new Nt("iso8601"),kt=1972,Ht=Symbol();function Yt(e){return Lt(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function Lt(e,t,n,r,o,i,a,s,c){return st(Ft(e,t,n,r,o,i,a)).mult(1e6).add(1e3*(null!=s?s:0)+(null!=c?c:0))}function Ft(e,t,n,r,o,i,a){const s=Ge(e);let c,u,h=0;const l=e>=0&&e<1e3,d=l?e+1200:e;for(;h<31;h++){c=n-s*h;const e=Date.UTC(d,t-1,c,null!=r?r:0,null!=o?o:0,null!=i?i:0,null!=a?a:0);if(!Zt(e)){u=e+s*h*864e5;break}}return(void 0===u||c<1||c>Ot.daysInMonth(e,t))&&zt(),l&&(u=new Date(u).setUTCFullYear(e)),u}function Pt(e){let t=e.div(1e6),n=e.sub(t.mult(1e6)).toNumber();n<0&&(n+=1e6,t=t.sub(1));const r=Math.floor(n/1e3);return n-=1e3*r,{...Rt(t.toNumber()),isoMicrosecond:r,isoNanosecond:n}}function Rt(e){const[t,n]=Bt(e);return{isoYear:t.getUTCFullYear(),isoMonth:t.getUTCMonth()+1,isoDay:t.getUTCDate()+n,isoHour:t.getUTCHours(),isoMinute:t.getUTCMinutes(),isoSecond:t.getUTCSeconds(),isoMillisecond:t.getUTCMilliseconds()}}function _t(e){var t;return null!=(t=e[Ht])?t:Yt(e.getISOFields())}function Ut(e){return Math.floor(Ft(e,1,1)/1e3)}function jt(e){return Bt(e.div(1e6).toNumber())[0].getUTCFullYear()}function xt(e,t,n){const[r,o]=Bt(Ft(e,t,n));return et(r.getUTCDay()+o,7)||7}function Bt(e){const t=Ge(e);let n,r=0;for(;r<31;r++){const o=new Date(e-t*r*864e5);if(!Zt(o)){n=o;break}}return void 0===n&&zt(),[n,t*r]}function Zt(e){return isNaN(e.valueOf())}function zt(){throw new RangeError("Date outside of supported range")}function $t(e,t){return Math.round((t-e)/864e5)}function Vt(e,t){return e+864e5*t}function Kt(e,t){return!Jt(e,t)&&e.calendar.toString()===t.calendar.toString()}function Jt(e,t){return ct(Yt(e.getISOFields()),Yt(t.getISOFields()))}function Gt(e,t){return Je(Mt(e.getISOFields()),Mt(t.getISOFields()))}function Wt(e,t){return Je(e.year,t.year)||Je(e.month,t.month)||Je(e.day,t.day)}function qt(e,t){return ct(e[Ht],t[Ht])}function Xt(e,t,n,r,o){return[e=Number(e),t=Me(t,1,r.monthsInYear(e),o),n=Me(n,1,r.daysInMonth(e,t),o)]}function Qt(e,t){const[n,r,o]=Xt(e.isoYear,e.isoMonth,e.isoDay,Ot,t);return{isoYear:n,isoMonth:r,isoDay:o}}function en(e,t){return{...Qt(e,t),...tn(e,t)}}function tn(e,t){let{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:a,isoNanosecond:s}=e;return{isoHour:n=Me(n,0,23,t),isoMinute:r=Me(r,0,59,t),isoSecond:o=Me(o,0,59,t),isoMillisecond:i=Me(i,0,999,t),isoMicrosecond:a=Me(a,0,999,t),isoNanosecond:s=Me(s,0,999,t)}}const nn={era:String,eraYear:Number,year:Number,month:Number,monthCode:String},rn={...nn,day:Number},on={hour:Number,minute:Number,second:Number,millisecond:Number,microsecond:Number,nanosecond:Number},an={era:String,eraYear:Number,year:Number,month:Number,monthCode:String,day:Number},sn=He(Fe,(()=>Number));class cn extends Nt{computeFields(e){const t=super.computeFields(e),{year:n}=t;return{...t,era:n<1?"bce":"ce",eraYear:n<1?-(n-1):n}}}const un=be("calendarName",{auto:0,never:1,always:2},0),hn=be("disambiguation",{compatible:0,earlier:1,later:2,reject:3},0);function ln(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Te(e),r=n.smallestUnit,o=n.fractionalSecondDigits;let i,a=0,s=1;return void 0!==r?(a=_e(r,void 0,0,t),s=ye[a],i=Se[a]||0):void 0!==o&&"auto"!==o&&(i=Me(o,0,9,1),s=Math.pow(10,9-i)),{smallestUnit:a,fractionalSecondDigits:i,roundingFunc:De(e,Math.trunc),incNano:s}}const dn=be("timeZoneName",{auto:0,never:1},0);function mn(e,t){return fn(e)+"T"+yn(e,t)}function fn(e){return gn(e)+"-"+tt(e.isoDay,2)}function gn(e){const{isoYear:t}=e;return(t<1e3||t>9999?ot(t)+tt(Math.abs(t),6):tt(t,4))+"-"+tt(e.isoMonth,2)}function yn(e,t){const n=[tt(e.isoHour,2)];return t.smallestUnit<=4&&(n.push(tt(e.isoMinute,2)),t.smallestUnit<=3&&n.push(tt(e.isoSecond,2)+vn(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t.fractionalSecondDigits)[0])),n.join(":")}function Sn(e){const[t,n]=Tt(Math.abs(e)),r=vn(t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,void 0)[0];return ot(e)+tt(t.isoHour+24*n,2)+":"+tt(t.isoMinute,2)+(t.isoSecond||r?":"+tt(t.isoSecond,2)+r:"")}function pn(e,t){return e&&(2===t||1!==t&&"iso8601"!==e)?`[u-ca=${e}]`:""}function wn(e){return e.map((e=>{let[t,n,r]=e;return r||t?Math.abs(t).toLocaleString("fullwide",{useGrouping:!1})+n:""})).join("")}function vn(e,t,n,r,o,i){let a=st(e).mult(1e6).add(st(t).mult(1e3)).add(n);o&&(a=Qe(a,void 0===r?ye[i]:Math.pow(10,9-r),o));const s=a.abs(),c=s.div(1e9);let u=tt(s.sub(c.mult(1e9)).toNumber(),9);return u=void 0===r?u.replace(/0+$/,""):u.substr(0,r),[u?"."+u:"",c.toNumber()*(a.sign()||1)]}function bn(e){Ne(e,{epochNanoseconds(){return this[Ht].toBigInt()},epochMicroseconds(){return this[Ht].div(1e3).toBigInt()},epochMilliseconds(){return this[Ht].div(1e6).toNumber()},epochSeconds(){return this[Ht].div(1e9).toNumber()}})}const Mn={calendar:"calendar"};for(const e of Le)Mn[e]="iso"+((In=e).charAt(0).toUpperCase()+In.slice(1));var In;function Tn(e){Ne(e,He((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).concat("calendar"),(e=>function(){return this.getISOFields()[Mn[e]]})))}const An=["era","eraYear","year","month","monthCode","daysInMonth","daysInYear","monthsInYear","inLeapYear"],En=[...An,"day","dayOfWeek","dayOfYear","weekOfYear","daysInWeek"];function Dn(e,t){Ne(e,He(t,(e=>function(){const t=this.calendar[e](this);return Object.defineProperty(this,e,{value:t}),t})))}function Cn(e,t){(e.prototype||e)[Symbol.toStringTag]="Temporal."+t}const Nn=be("offset",{prefer:0,use:1,ignore:2,reject:3});function On(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=e.getPossibleInstantsFor(t);if(1===r.length)return r[0];if(3===n)throw new RangeError("Ambiguous offset");if(r.length)return r[2===n?1:0];{const r=function(e,t){const n=_t(t),r=e.getOffsetNanosecondsFor(new ji(n.sub(ge)));return e.getOffsetNanosecondsFor(new ji(n.add(ge)))-r}(e,t),o=e.getPossibleInstantsFor(t.add({nanoseconds:r*(1===n?-1:1)}));return o[1===n?0:o.length-1]}}function kn(e,t,n,r){let{year:o,month:i,day:a}=e;o+=t;const s=Me(i,1,n.monthsInYear(o),r);let c=i===s?a:1;return c=Me(c,1,n.daysInMonth(o,s),r),{year:o,month:s,day:c}}function Hn(e,t,n,r){let{year:o,month:i,day:a}=e;if(t){if(i+=t,t<0)for(;i<1;)i+=n.monthsInYear(--o);else{let e;for(;i>(e=n.monthsInYear(o));)i-=e,o++}a=Me(a,1,n.daysInMonth(o,i),r)}return{year:o,month:i,day:a}}function Yn(e,t){let{isoYear:n,isoMonth:r,isoDay:o}=e;if(t){let e=Ft(n,r,o);e=Vt(e,t),({isoYear:n,isoMonth:r,isoDay:o}=Rt(e))}return{isoYear:n,isoMonth:r,isoDay:o}}function Ln(e,t){if(yt(t)>=6)throw new RangeError("Duration cant have units >= days");return e.add(bt(t))}function Fn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=arguments.length>3?arguments[3]:void 0;const{offsetNanoseconds:o,timeZone:i,Z:a}=e;if(void 0!==o&&2!==n){if(1===n||a)return Yt(e).sub(o);{const r=Pn(e,o,i,t);if(void 0!==r)return r;if(3===n)throw new RangeError("Mismatching offset/timezone")}}return On(i,qo(e),hn(r))[Ht]}function Pn(e,t,n,r){const o=n.getPossibleInstantsFor(qo(e)),i=Yt(e),a=r?qe(t):t;for(const e of o){const t=e[Ht],n=i.sub(t).toNumber();if((r?qe(n):n)===a)return t}}function Rn(e){const{timeZone:t}=e,n={...e,...St,calendar:new Ai("iso8601")},r={...Yn(n,1),...St,calendar:new Ai("iso8601")},o=On(t,qo(n))[Ht];return On(t,qo(r))[Ht].sub(o).toNumber()}const _n="(\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?",Un="([+-])"+_n,jn="(Z|"+Un+")?(\\[([^=\\]]+)\\])?(\\[u-ca=([^\\]]+)\\])?",xn=Jn("([+-]\\d{6}|\\d{4})-?(\\d{2})"+jn),Bn=Jn("(--)?(\\d{2})-?(\\d{2})"+jn),Zn=Jn("([+-]\\d{6}|\\d{4})-?(\\d{2})-?(\\d{2})([T ](\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?)?"+jn),zn=Jn("T?"+_n+jn),$n=Jn(Un),Vn=/^([-+])?P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T((\d+)([.,](\d{1,9}))?H)?((\d+)([.,](\d{1,9}))?M)?((\d+)([.,](\d{1,9}))?S)?)?$/i,Kn=/\u2212/g;function Jn(e){return new RegExp(`^${e}$`,"i")}function Gn(e){return e.replace(Kn,"-")}function Wn(e){const t=er(e);if(!t)throw dr("dateTime",e);return t}function qn(e){const t=tr(e);if(!t)throw dr("dateTime",e);return t}function Xn(e){const t=or(e);if(void 0===t)throw dr("timeZone",e);return t}const Qn=/^Z$/i;function er(e){const t=Zn.exec(Gn(e));if(t)return function(e){const t=e[11];let n,r=!1;return t&&(r=Qn.test(t),n=r?0:sr(e.slice(12))),{...ir(e),timeZone:e[21],offsetNanoseconds:n,Z:r}}(t.slice(1))}function tr(e,t,n){const r=Zn.exec(Gn(e));if(r&&(n||!Qn.test(r[12]))&&(!t||r[4]))return ir(r.slice(1))}function nr(e){const t=xn.exec(Gn(e));if(t)return{calendar:(n=t.slice(1))[14],isoYear:hr(n[0]),isoMonth:hr(n[1]),isoDay:1};var n}function rr(e){const t=Bn.exec(Gn(e));if(t)return{calendar:(n=t.slice(1))[15],isoYear:kt,isoMonth:hr(n[1]),isoDay:hr(n[2])};var n}function or(e){const t=$n.exec(Gn(e));if(t)return sr(t.slice(1))}function ir(e){return{calendar:e[23],isoYear:hr(e[0]),isoMonth:hr(e[1]),isoDay:hr(e[2]),...ar(e.slice(4))}}function ar(e){const t=ur(e[4]);return{...Tt(cr(e[6]||""))[0],isoHour:ur(e[0]),isoMinute:ur(e[2]),isoSecond:60===t?59:t}}function sr(e){return("+"===e[0]?1:-1)*function(e){return ur(e[0])*fe+6e10*ur(e[2])+1e9*ur(e[4])+cr(e[6]||"")}(e.slice(1))}function cr(e){return parseInt(nt(e,9,"0"))}function ur(e){return parseInt(e||"0")}function hr(e){return parseInt(e||"1")}function lr(e){return void 0===e?void 0:parseInt(e)}function dr(e,t){throw new RangeError(`Cannot parse ${e} '${t}'`)}function mr(e){return{...e,calendar:void 0===e.calendar?Ei():new Ai(e.calendar)}}function fr(e){return{...mr(e),timeZone:new Or(e.timeZone)}}class gr{constructor(e){this.id=e}}class yr extends gr{constructor(e,t){super(e),this.offsetNano=t}getPossibleOffsets(){return[this.offsetNano]}getOffset(){return this.offsetNano}getTransition(){}}function Sr(e,t){const n={},r=e.formatToParts(t);for(const e of r)n[e.type]=e.value;return n}const pr={bc:"bce",ad:"ce"};function wr(e){return e=e.toLowerCase().normalize("NFD").replace(/[^a-z0-9]/g,""),pr[e]||e}const vr=Intl.DateTimeFormat;function br(e){return[].concat(e||[])}const Mr={"Pacific/Apia":{2011:[[Ir(13017528e5),-36e12,-396e11],[Ir(13168728e5),-396e11,-36e12],[Ir(13252392e5),-36e12,504e11]]}};function Ir(e){return st(e).mult(1e6)}const Tr=(new Date).getUTCFullYear()+10,Ar=[182,91,273];class Er extends gr{constructor(e){const t=new vr("en-GB",{era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",timeZone:e});super(t.resolvedOptions().timeZone),this.format=t,this.yearEndOffsets={},this.transitionsInYear=Mr[e]||{}}getPossibleOffsets(e){let t;const n=[this.getTransition(e,-1),this.getTransition(e.sub(1),1)].filter(Boolean);for(const r of n){const[n,o,i]=r,a=e.sub(o),s=e.sub(i);if(ct(n,a)>0&&ct(n,s)>0)return[o];if(!(ct(n,a)<=0&&ct(n,s)<=0))return o<i?[]:[o,i];t=i}return void 0!==t?[t]:[1e9*this.getYearEndOffsetSec(jt(e))]}getOffset(e){return 1e9*this.getOffsetForEpochSecs(e.div(1e9).toNumber())}getOffsetForEpochSecs(e){const t=Sr(this.format,1e3*e);let n=parseInt(t.year);"bce"===wr(t.era)&&(n=-(n-1));const r=Ft(n,parseInt(t.month),parseInt(t.day),parseInt(t.hour),parseInt(t.minute),parseInt(t.second));return Math.floor(r/1e3)-e}getTransition(e,t){let n=jt(e);if(n>Tr){const r=this.getTransitionFrom(n,n+t,t,e);if(r||t>0)return r;n=Tr}return this.getTransitionFrom(Math.max(n,1847),t<0?1846:Tr,t,e)}getTransitionFrom(e,t,n,r){for(;e!==t;e+=n){let t=this.getTransitionsInYear(e);n<0&&(t=t.slice().reverse());for(const e of t)if(ct(e[0],r)===n)return e}}getYearEndOffsetSec(e){const{yearEndOffsets:t}=this;return t[e]||(t[e]=this.getOffsetForEpochSecs(Ut(e+1)-1))}getTransitionsInYear(e){const{transitionsInYear:t}=this;return t[e]||(t[e]=this.computeTransitionsInYear(e))}computeTransitionsInYear(e){const t=this.getYearEndOffsetSec(e-1),n=this.getYearEndOffsetSec(e),r=Ut(e)-1,o=Ut(e+1)-1;if(t!==n)return[this.searchTransition(r,o,t,n)];const i=this.searchIsland(t,r);return void 0!==i?[this.searchTransition(r,i[0],t,i[1]),this.searchTransition(i[0],o,i[1],n)]:[]}searchTransition(e,t,n,r){for(;t-e>1;){const r=Math.floor(e+(t-e)/2);this.getOffsetForEpochSecs(r)===n?e=r:t=r}return[st(t).mult(1e9),1e9*n,1e9*r]}searchIsland(e,t){for(const n of Ar){const r=t+86400*n,o=this.getOffsetForEpochSecs(r);if(o!==e)return[r,o]}}}const Dr={UTC:new yr("UTC",0)},[Cr,Nr]=Ce();class Or extends Ze{constructor(e){if(!e)throw new RangeError("Invalid timezone ID");super(),Nr(this,function(e){const t=(e=String(e)).toLocaleUpperCase();if(Dr[t])return Dr[t];const n=or(e);if(void 0!==n){if(Math.abs(n)>ge)throw new RangeError("Offset out of bounds");return new yr(Sn(n),n)}return Dr[t]=new Er(e)}(e))}static from(e){if(Ee(e))return function(e){const t=e.timeZone;return void 0===t?e:Ee(t)&&void 0===t.timeZone?t:new Or(t)}(e);const t=er(String(e));if(t){if(t.timeZone){const e=fr(t);return function(e){const{offsetNanoseconds:t,timeZone:n,Z:r}=e;if(void 0!==t&&!r&&void 0===Pn(e,t,n,!0))throw new RangeError("Mismatching offset/timezone")}(e),e.timeZone}if(t.Z)return new Or("UTC");if(void 0!==t.offsetNanoseconds)return new Or(Sn(t.offsetNanoseconds))}return new Or(String(e))}get id(){return this.toString()}getOffsetStringFor(e){return Sn(this.getOffsetNanosecondsFor(e))}getOffsetNanosecondsFor(e){const t=Be(ji,e);return Cr(this).getOffset(t[Ht])}getPlainDateTimeFor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ei();const n=Be(ji,e);return qo({...Pt(n[Ht].add(this.getOffsetNanosecondsFor(n))),calendar:Be(Ai,t)})}getInstantFor(e,t){return On(this,Be(Wo,e),hn(t))}getPossibleInstantsFor(e){const t=Yt(Be(Wo,e).getISOFields());return Cr(this).getPossibleOffsets(t).map((e=>new ji(t.sub(e))))}getPreviousTransition(e){const t=Be(ji,e),n=Cr(this).getTransition(t[Ht],-1);return n?new ji(n[0]):null}getNextTransition(e){const t=Be(ji,e),n=Cr(this).getTransition(t[Ht],1);return n?new ji(n[0]):null}toString(){return Cr(this).id}}function kr(e){if(void 0===e.timeZone)throw new TypeError("Must specify timeZone");return Be(Or,e.timeZone)}Cn(Or,"TimeZone");const Hr=eo((function(e,t,n){const r=$r(e,t,n);if(r)return{...r,timeZone:kr(e),offsetNanoseconds:void 0!==e.offset?Xn(String(e.offset)):void 0}})),Yr=eo($r),Lr=eo(Vr),Fr=eo((function(e,t){const n=Ni(e),r=qr(e,nn,n);if(to(r))return n.yearMonthFromFields(r,t)})),Pr=eo((function(e,t){const n=Ni(e),r=qr(e,an,n);if(to(r))return void 0===e.year&&void 0===e.calendar&&(r.year=kt),n.monthDayFromFields(r,t)})),Rr=eo(Kr),_r=eo((function(e,t,n,r){const o=Jr(e,t,n,r),i=void 0!==t.offset;if(o||i)return{...o||e.getISOFields(),timeZone:e.timeZone,offsetNanoseconds:i?Xn(String(t.offset)):e.offsetNanoseconds}}),!0),Ur=eo(Jr,!0),jr=eo(Gr,!0),xr=eo((function(e,t,n){const r=e.calendar;if(to(qr(t,nn,r))){const o=Qr(e,t,nn,r);return r.yearMonthFromFields(o,n)}}),!0),Br=eo((function(e,t,n){const r=e.calendar;if(to(qr(t,an,r))){const o=Qr(e,t,an,r);return r.monthDayFromFields(o,n)}}),!0),Zr=eo(Wr,!0),zr=eo((function(e){const t=Ie(e,sn);if(to(t))return t}));function $r(e,t,n){const r=Vr(e,n),o=Kr(e,t);if(r)return{...r.getISOFields(),...o||St}}function Vr(e,t){const n=Ni(e),r=qr(e,rn,n);if(to(r))return n.dateFromFields(r,t)}function Kr(e,t){const n=Ie(e,on);if(to(n))return tn(wt(n),t)}function Jr(e,t,n,r){const o=Gr(e,t,r),i=Wr(e,t,n);if(o||i)return{...e.getISOFields(),...o?o.getISOFields():{},...i}}function Gr(e,t,n){const r=e.calendar,o=qr(t,rn,r);if(to(o)){const t=Qr(e,o,rn,r);return r.dateFromFields(t,n)}}function Wr(e,t,n){const r=Ie(t,on);if(to(r))return tn(wt((o=e,i=r,Oe(on,((e,t)=>{var n;return null!=(n=i[t])?n:o[t]})))),n);var o,i}function qr(e,t,n){let r=Object.keys(t);return r=n.fields?Array.prototype.slice.call(n.fields(r)):Object.keys(Xr(n,r)),Xr(e,r)}function Xr(e,t){const n={};for(const r of t)void 0!==e[r]&&(n[r]=e[r]);return n}function Qr(e,t,n,r){const o=qr(e,n,r);return r.mergeFields?r.mergeFields(o,t):Di(o,t)}function eo(e,t){return function(){if(t){const e=arguments.length<=1?void 0:arguments[1];if(!Ee(e))throw new TypeError("must be object-like");if(void 0!==e.calendar)throw new TypeError("calendar not allowed");if(void 0!==e.timeZone)throw new TypeError("timeZone not allowed")}const n=e(...arguments);if(!n)throw new TypeError("No valid fields");return n}}function to(e){return Object.keys(e).length>0}const no=st(ge).mult(1e8),ro=no.mult(-1),oo=no.add(86399999999999),io=ro.sub(86399999999999);function ao(e,t){const n=Yt(e);so(n),wi(n,t)}function so(e){-1!==ct(e,io)&&1!==ct(e,oo)||zt()}function co(e,t){const n=ho(Mt(e),t),[r,o]=Tt(n);return{...Yn(e,o),...r}}function uo(e,t){const n=ho(Mt(e),t),[r]=Tt(n);return r}function ho(e,t){return We(e,t.incNano,t.roundingFunc)}function lo(e,t,n){return(r,o)=>{const i=po(e,o)?{}:{...e,...t};return{buildKey:So(r,o,!1),buildFormat:function(e,t){return new vr(r,{calendar:e,timeZone:t||void 0,...i,...o,...n})},buildEpochMilli:mo}}}function mo(e){return e.epochMilliseconds}function fo(e,t,n){return(r,o)=>{const i=po(e,o)?{}:e;return{buildKey:So(r,o,n),buildFormat:function(e,n){return new vr(r,{calendar:e,...i,...o,...t,timeZone:n,timeZoneName:void 0})},buildEpochMilli:void 0!==o.timeZone?go.bind(null,new Or(o.timeZone)):yo}}}function go(e,t){const n=qo({...St,...t.getISOFields()});return e.getInstantFor(n).epochMilliseconds}function yo(e){return Ft((t=e.getISOFields()).isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond);var t}function So(e,t,n){var r;const o=null!=(r=t.calendar)?r:function(e){for(const t of e){const e=t.match(/-u-ca-(.*)$/);if(e)return e[1]}}(e),i=t.timeZone;return function(e,t){var r,a,s,c;const u=null==(r=e.calendar)?void 0:r.id,h=null==(a=e.timeZone)?void 0:a.id;if(t){if((null==(s=t.calendar)?void 0:s.id)!==u)throw new RangeError("Mismatching calendar");if((null==(c=t.timeZone)?void 0:c.id)!==h)throw new RangeError("Mismatching timeZone")}if((n||"iso8601"!==u)&&void 0!==u&&void 0!==o&&o!==u)throw new RangeError("Non-iso calendar mismatch");if(void 0!==h&&void 0!==i&&i!==h)throw new RangeError("Given timeZone must agree");return[o||u||"iso8601",i||h||"UTC"]}}function po(e,t){for(const n in e)if(void 0!==t[n])return!0;return!1}function wo(e,t){e.prototype.toLocaleString=function(e,n){const r=t(br(e),n||{});return r.buildFormat(...r.buildKey(this)).format(r.buildEpochMilli(this))},e.prototype[xe]=t}function vo(e){return null==e?void 0:e[xe]}function bo(e,t,n,r){if(void 0!==e){if(void 0!==r)throw new RangeError("Partial units must be last unit");return[parseInt(e),void 0!==t?cr(t)*(ye[n]/1e9):void 0]}if(void 0!==r){const e=Math.trunc(r/ye[n]);return[e,r-e*ye[n]]}return[void 0,void 0]}const Mo=be("offset",{auto:0,never:1},0);class Io extends Ke{constructor(){super({...tn({isoHour:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,isoMinute:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,isoSecond:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,isoMillisecond:arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,isoMicrosecond:arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,isoNanosecond:arguments.length>5&&void 0!==arguments[5]?arguments[5]:0},1),calendar:Ei()})}static from(e,t){const n=ve(t);return To(e instanceof Io?e.getISOFields():"object"==typeof e?Rr(e,n):function(e){let t=function(e){const t=zn.exec(Gn(e));if(t)return ar(t.slice(1))}(e);if(void 0!==t){if("T"!==e.charAt(0)){const n=nr(e)||rr(e);n&&function(e){try{return Qt(e,1),!0}catch(e){return!1}}(n)&&(t=void 0)}}else t=tr(e,!0);if(void 0===t)throw dr("time",e);return t}(String(e)))}static compare(e,t){return Gt(Be(Io,e),Be(Io,t))}with(e,t){return To(Zr(this,e,ve(t)))}add(e){return Eo(this,Be(Ko,e))}subtract(e){return Eo(this,dt(Be(Ko,e)))}until(e,t){return Do(this,Be(Io,e),t)}since(e,t){return Do(Be(Io,e),this,t)}round(e){const t=je(e,0,5);return To(uo(this.getISOFields(),t))}equals(e){return!Gt(this,Be(Io,e))}toString(e){const t=ln(e);return yn(uo(this.getISOFields(),t),t)}toZonedDateTime(e){const t=Be(Yi,e.plainDate),n=Be(Or,e.timeZone);return Fo({...t.getISOFields(),...this.getISOFields(),timeZone:n})}toPlainDateTime(e){return Be(Yi,e).toPlainDateTime(this)}}function To(e){return new Io(e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function Ao(e){return Be(Io,null!=e?e:{hour:0})}function Eo(e,t){return To(function(e,t){const n=Mt(e)+bt(t).toNumber(),[r]=Tt(n);return r}(e.getISOFields(),t))}function Do(e,t,n){const r=Ue(n,5,0,0,5);return Jo(function(e,t,n){return It(st(We(Mt(t)-Mt(e),ye[n.smallestUnit]*n.roundingIncrement,n.roundingFunc)),n.largestUnit)}(e.getISOFields(),t.getISOFields(),r))}Cn(Io,"PlainTime"),Tn(Io,Ye),wo(Io,(function(e,t){return{buildKey:()=>["",""],buildFormat:()=>new vr(e,{hour:"numeric",minute:"2-digit",second:"2-digit",...t,timeZone:"UTC",timeZoneName:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0}),buildEpochMilli:e=>Math.trunc(Mt(e.getISOFields())/1e6)}}));const Co={day:1};class No extends Ke{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ei();const r=Qt({isoYear:e,isoMonth:t,isoDay:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1},1),o=Be(Ai,n);var i,a;i=r,a=o.toString(),wi(Yt(i),a),super({...r,calendar:o})}static from(e,t){if(ve(t),e instanceof No)return Oo(e.getISOFields());if("object"==typeof e)return Fr(e,t);const n=function(e){const t=nr(e)||tr(e);if(!t)throw dr("yearMonth",e);return t}(String(e));return void 0===n.calendar&&(n.isoDay=1),Oo(mr(n))}static compare(e,t){return Jt(Be(No,e),Be(No,t))}with(e,t){return xr(this,e,t)}add(e,t){return ko(this,Be(Ko,e),t)}subtract(e,t){return ko(this,dt(Be(Ko,e)),t)}until(e,t){return Ho(this,Be(No,e),!1,t)}since(e,t){return Ho(this,Be(No,e),!0,t)}equals(e){return!Jt(this,Be(No,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=un(e);return("iso8601"===n?gn(t):fn(t))+pn(n,r)}toPlainDate(e){return this.calendar.dateFromFields({year:this.year,month:this.month,day:e.day})}}function Oo(e){return new No(e.isoYear,e.isoMonth,e.calendar,e.isoDay)}function ko(e,t,n){return e.toPlainDate({day:t.sign<0?e.daysInMonth:1}).add(t,n).toPlainYearMonth()}function Ho(e,t,n,r){return Jo(Ri(e.toPlainDate(Co),t.toPlainDate(Co),Oi(e,t),n,Ue(r,9,8,8,9)))}Cn(No,"PlainYearMonth"),Tn(No),Dn(No,An),wo(No,fo({year:"numeric",month:"numeric"},{weekday:void 0,day:void 0,hour:void 0,minute:void 0,second:void 0},!0));const Yo=Symbol();class Lo extends Ke{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ei();const r=Be(Or,t),o=Be(Ai,n),i=st(e),[a,s]=Po(i,r);ao(a,o.toString()),super({...a,calendar:o,timeZone:r,offset:Sn(s)}),this[Ht]=i,this[Yo]=s}static from(e,t){const n=Nn(t,3),r=ve(t);if(e instanceof Lo)return new Lo(e.epochNanoseconds,e.timeZone,e.calendar);const o="object"==typeof e;return Fo(o?Hr(e,r,t):fr(Wn(String(e))),!o,n,t)}static compare(e,t){return qt(Be(Lo,e),Be(Lo,t))}get timeZone(){return this.getISOFields().timeZone}get offsetNanoseconds(){return this[Yo]}get offset(){return this.getISOFields().offset}with(e,t){hn(t);const n=ve(t),r=Nn(t,0);return Fo(_r(this,e,n,t),!1,r,t)}withPlainDate(e){const t=Be(Yi,e),n=t.toPlainDateTime(this),{timeZone:r}=this,o=On(r,n);return new Lo(o.epochNanoseconds,r,ki(this,t))}withPlainTime(e){return Fo({...this.getISOFields(),...void 0===e?St:Be(Io,e).getISOFields()})}withCalendar(e){return new Lo(this.epochNanoseconds,this.timeZone,e)}withTimeZone(e){return new Lo(this.epochNanoseconds,e,this.calendar)}add(e,t){return Ro(this,Be(Ko,e),t)}subtract(e,t){return Ro(this,dt(Be(Ko,e)),t)}until(e,t){return Uo(this,Be(Lo,e),!1,t)}since(e,t){return Uo(this,Be(Lo,e),!0,t)}round(e){return _o(this,je(e,0,6))}equals(e){return this,Kt(this,t=Be(Lo,e))&&this.timeZone.toString()===t.timeZone.toString();var t}startOfDay(){return Fo({...this.getISOFields(),...St,offsetNanoseconds:this.offsetNanoseconds},!1,0)}get hoursInDay(){return Rn(this.getISOFields())/fe}toString(e){const t=ln(e),n=Mo(e),r=dn(e),o=un(e),i=_o(this,t);return mn(i.getISOFields(),t)+(0===n?Sn(qe(i.offsetNanoseconds)):"")+(a=this.timeZone.toString(),1!==r?`[${a}]`:"")+pn(this.calendar.toString(),o);var a}toPlainYearMonth(){return Oo(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDateTime(){return qo(this.getISOFields())}toPlainDate(){return Li(this.getISOFields())}toPlainTime(){return To(this.getISOFields())}toInstant(){return new ji(this.epochNanoseconds)}}function Fo(e,t,n,r){const o=Fn(e,t,n,r);return new Lo(o,e.timeZone,e.calendar)}function Po(e,t){const n=new ji(e),r=t.getOffsetNanosecondsFor(n);return[Pt(e.add(r)),r]}function Ro(e,t,n){const r=e.getISOFields(),o=function(e,t,n){const{calendar:r,timeZone:o}=e,i=r.dateAdd(Li(e),mt(t,pt),n);return On(o,qo({...e,...i.getISOFields()}))[Ht].add(bt(t))}(r,t,n);return new Lo(o,r.timeZone,r.calendar)}function _o(e,t){const n=e.getISOFields(),r=function(e,t,n){const{calendar:r,timeZone:o}=e;let i,a,s=Mt(e);return 6===n.smallestUnit?(i=St,a=n.roundingFunc(s/Rn(e))):(s=ho(s,n),[i,a]=Tt(s)),Fn({...Yn(e,a),...i,offsetNanoseconds:t,calendar:r,timeZone:o},!1,0)}(n,e.offsetNanoseconds,t);return new Lo(r,n.timeZone,n.calendar)}function Uo(e,t,n,r){const o=Ue(r,5,0,0,9),{largestUnit:i}=o;if(i>=6&&e.timeZone.id!==t.timeZone.id)throw new Error("Must be same timeZone");return Jo(Pi(e,t,Oi(e,t),n,o))}function jo(e){if(void 0===e)return;if(Ee(e))return e instanceof Lo||e instanceof Wo?e:Be(void 0!==e.timeZone?Lo:Wo,e);if("symbol"==typeof e)throw new TypeError("Incorrect relativeTo type");const t=er(String(e));if(t)return void 0!==t.timeZone?Fo(fr(t),!0):qo(mr(t));throw new RangeError("Invalid value of relativeTo")}function xo(e,t,n,r){return(n instanceof Yi?function(e,t,n,r){const o=n.add(e);return[r.dateUntil(n,o,{largestUnit:Le[t]}),o]}(e,Math.max(6,t),n,r):Bo(e,t,n,r))[0]}function Bo(e,t,n,r,o){const i=!0!==o&&t>7&&e.weeks;i&&(e=mt(e,{weeks:0}));let a=n.add(e),s=_i(n,a,r,t);return i&&(s=mt(s,{weeks:i}),a=a.add({weeks:i})),[s,a]}function Zo(e,t,n,r){const o=Fe[t],{sign:i}=e;if(!i)return e;const a={};for(let n=9;n>=t;n--){const t=Fe[n];a[t]=e[t]}const s={[o]:i},c=n.add(a),u=c.add(s),h=_t(c),l=_t(u),d=_t(r).sub(h).toNumber()/l.sub(h).toNumber()*i;return a[o]+=d,a}function zo(e,t,n,r,o,i){const{largestUnit:a,smallestUnit:s,roundingIncrement:c,roundingFunc:u}=i;if(!we(a))return It(Qe(_t(n).sub(_t(t)).mult(o?-1:1),ye[s]*c,u),a);let h=Zo(e,s,t,n);const l=Fe[s];function d(){const e=h[l];h[l]=We(e,c,u)}return u===Math.round&&d(),o&&(h=dt(h)),u!==Math.round&&d(),s>0&&(h=o?dt(xo(dt(h),a,t,r)):xo(h,a,t,r)),h}Cn(Lo,"ZonedDateTime"),Tn(Lo,Ye),Dn(Lo,En),bn(Lo),wo(Lo,lo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:"short"},{}));const[$o,Vo]=Ce();class Ko extends ze{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0;super();const h=zr({years:e,months:t,weeks:n,days:r,hours:o,minutes:i,seconds:a,milliseconds:s,microseconds:c,nanoseconds:u});Vo(this,function(e){const t=ft(e),{sign:n}=t;for(const e of Fe){const r=t[e],o=Ge(t[e]);if(o&&o!==n)throw new RangeError("All fields must be same sign");if(!Number.isInteger(r))throw new RangeError("Duration fields must be integers")}return t}(h))}static from(e){return Jo("object"==typeof e?zr(e):function(e){const t=function(e){const t=Vn.exec(Gn(e));if(t){let e,n,r,o;[e,o]=bo(t[8],t[10],5,void 0),[n,o]=bo(t[12],t[14],4,o),[r,o]=bo(t[16],t[18],3,o);const i=function(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}({years:lr(t[2]),months:lr(t[3]),weeks:lr(t[4]),days:lr(t[5]),hours:e,minutes:n,seconds:r});if(!Object.keys(i).length)throw new RangeError("Duration string must have at least one field");const a=It(st(o||0),2);i.milliseconds=a.milliseconds,i.microseconds=a.microseconds,i.nanoseconds=a.nanoseconds;let s=ft(i);return"-"===t[1]&&(s=dt(s)),s}}(e);if(void 0===t)throw dr("duration",e);return t}(e))}static compare(e,t,n){return function(e,t,n){if(void 0===n&&yt(e)<=6&&yt(t)<=6)return ct(vt(e),vt(t));if(!n)throw new RangeError("Need relativeTo");const r=n.add(e),o=n.add(t);return void 0!==n[Ht]?qt(r,o):Jt(r,o)}(Be(Ko,e),Be(Ko,t),jo(Te(n).relativeTo))}get years(){return $o(this).years}get months(){return $o(this).months}get weeks(){return $o(this).weeks}get days(){return $o(this).days}get hours(){return $o(this).hours}get minutes(){return $o(this).minutes}get seconds(){return $o(this).seconds}get milliseconds(){return $o(this).milliseconds}get microseconds(){return $o(this).microseconds}get nanoseconds(){return $o(this).nanoseconds}get sign(){return $o(this).sign}get blank(){return!this.sign}with(e){return Jo({...$o(this),...zr(e)})}negated(){return Jo(dt($o(this)))}abs(){return Jo(ke($o(this),lt,(e=>Math.abs(e))))}add(e,t){return Go(this,Be(Ko,e),t)}subtract(e,t){return Go(this,dt(Be(Ko,e)),t)}round(e){const t="string"==typeof e?{smallestUnit:e}:e;if(!Ee(t))throw new TypeError("Must specify options");if(void 0===t.largestUnit&&void 0===t.smallestUnit)throw new RangeError("Must specify either largestUnit or smallestUnit");const n=Ue(t,yt(this),0,0,9,!0),r=jo(t.relativeTo);return Jo(function(e,t,n,r){const{largestUnit:o,smallestUnit:i,roundingIncrement:a,roundingFunc:s}=t;if(void 0===n&&yt(e)<=6&&pe(o)&&pe(i))return It(Qe(vt(e),ye[i]*a,s),o);if(!n)throw new RangeError("Need relativeTo");const[c,u]=Bo(e,o,n,r);return zo(c,n,u,r,!1,t)}(this,n,r,r?r.calendar:void 0))}total(e){const t=function(e){let t,n;return"string"==typeof e?n=e:(n=Te(e).unit,t=e.relativeTo),{unit:_e(n,void 0,0,9),relativeTo:t}}(e),n=jo(t.relativeTo);return function(e,t,n,r){if(void 0===n&&yt(e)<=6&&pe(t))return vt(e).toNumber()/ye[t];if(!n)throw new RangeError("Need relativeTo");const[o,i]=Bo(e,t,n,r,!0);return Zo(o,t,n,i)[Fe[t]]}(this,t.unit,n,n?n.calendar:void 0)}toString(e){const t=ln(e,3);return function(e,t){const{smallestUnit:n,fractionalSecondDigits:r,roundingFunc:o}=t,{sign:i}=e,a=e.hours,s=e.minutes;let c=e.seconds,u="";if(n<=3){const t=vn(e.milliseconds,e.microseconds,e.nanoseconds,r,o,n);u=t[0],c+=t[1]}const h=void 0!==r||u||!i;return(i<0?"-":"")+"P"+wn([[e.years,"Y"],[e.months,"M"],[e.weeks,"W"],[e.days,"D"]])+(a||s||c||h?"T"+wn([[a,"H"],[s,"M"],[n<=3?c:0,u+"S",h]]):"")}($o(this),t)}toLocaleString(e,t){return this.toString()}}function Jo(e){return new Ko(e.years,e.months,e.weeks,e.days,e.hours,e.minutes,e.seconds,e.milliseconds,e.microseconds,e.nanoseconds)}function Go(e,t,n){const r=jo(Te(n).relativeTo);return Jo(function(e,t,n,r){const o=Math.max(yt(e),yt(t));if(void 0===n&&o<=6)return It(vt(e).add(vt(t)),o);if(!n)throw new RangeError("Need relativeTo");const i=n.add(e).add(t);return _i(n,i,r,o)}(e,t,r,r?r.calendar:void 0))}Cn(Ko,"Duration");class Wo extends Ke{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Ei();const h=en({isoYear:e,isoMonth:t,isoDay:n,isoHour:r,isoMinute:o,isoSecond:i,isoMillisecond:a,isoMicrosecond:s,isoNanosecond:c},1),l=Be(Ai,u);ao(h,l.toString()),super({...h,calendar:l})}static from(e,t){const n=ve(t);return qo(e instanceof Wo?e.getISOFields():"object"==typeof e?Yr(e,n,t):mr(qn(String(e))))}static compare(e,t){return Jt(Be(Wo,e),Be(Wo,t))}with(e,t){const n=ve(t);return qo(Ur(this,e,n,t))}withPlainDate(e){const t=Be(Yi,e);return qo({...this.getISOFields(),...t.getISOFields(),calendar:ki(this,t)})}withPlainTime(e){return qo({...this.getISOFields(),...Ao(e).getISOFields()})}withCalendar(e){return qo({...this.getISOFields(),calendar:Be(Ai,e)})}add(e,t){return Xo(this,Be(Ko,e),t)}subtract(e,t){return Xo(this,dt(Be(Ko,e)),t)}until(e,t){return Qo(this,Be(Wo,e),!1,t)}since(e,t){return Qo(this,Be(Wo,e),!0,t)}round(e){const t=je(e,0,6);return qo({...co(this.getISOFields(),t),calendar:this.calendar})}equals(e){return Kt(this,Be(Wo,e))}toString(e){const t=ln(e),n=un(e);return mn(co(this.getISOFields(),t),t)+pn(this.calendar.toString(),n)}toZonedDateTime(e,t){const n=Be(Or,e),r=On(n,this,hn(t));return new Lo(r.epochNanoseconds,n,this.calendar)}toPlainYearMonth(){return Oo(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDate(){return Li(this.getISOFields())}toPlainTime(){return To(this.getISOFields())}}function qo(e){return new Wo(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,e.calendar)}function Xo(e,t,n){const r=function(e,t,n){const{calendar:r}=e;return Pt(Yt(r.dateAdd(Li(e),mt(t,pt),n).getISOFields()).add(Mt(e)).add(bt(t)))}(e.getISOFields(),t,n);return qo({...r,calendar:e.calendar})}function Qo(e,t,n,r){const o=Ue(r,6,0,0,9);return Jo(Pi(e,t,Oi(e,t),n,o))}Cn(Wo,"PlainDateTime"),Tn(Wo,Ye),Dn(Wo,En),wo(Wo,fo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{}));class ei extends Ke{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ei();super({...Qt({isoYear:arguments.length>3&&void 0!==arguments[3]?arguments[3]:kt,isoMonth:e,isoDay:t},1),calendar:Be(Ai,n)})}static from(e,t){if(ve(t),e instanceof ei)return ti(e.getISOFields());if("object"==typeof e)return Pr(e,t);const n=function(e){const t=rr(e)||tr(e);if(!t)throw dr("monthDay",e);return t}(String(e));return void 0===n.calendar&&(n.isoYear=kt),ti(mr(n))}with(e,t){return Br(this,e,t)}equals(e){return!Jt(this,Be(ei,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=un(e);return("iso8601"===n?function(e){return tt(e.isoMonth,2)+"-"+tt(e.isoDay,2)}(t):fn(t))+pn(n,r)}toPlainDate(e){return this.calendar.dateFromFields({year:e.year,monthCode:this.monthCode,day:this.day},{overflow:"reject"})}}function ti(e){return new ei(e.isoMonth,e.isoDay,e.calendar,e.isoYear)}function ni(e){return e instanceof Yi||e instanceof Wo||e instanceof Lo||e instanceof No||e instanceof ei}function ri(e,t,n){let r;if(e instanceof Yi)r=e;else if(ni(e)){if(n&&e instanceof ei)throw new TypeError("PlainMonthDay not allowed");r=Li(e.getISOFields())}else r=Yi.from(e);return Hi(r.calendar,t),r}function oi(e,t,n){if(ni(e))return e.getISOFields();let{era:r,eraYear:o,year:i,month:a,monthCode:s,day:c}=e;const u=void 0!==o&&void 0!==r?Dt(t.id,o,r):void 0;if(void 0===i){if(void 0===u)throw new TypeError("Must specify either a year or an era & eraYear");i=u}else if(void 0!==u&&u!==i)throw new RangeError("year and era/eraYear must match");if(void 0===c)throw new TypeError("Must specify day");const h=ve(n);if(void 0!==s){const[e,n]=t.convertMonthCode(s,i);if(void 0!==a&&a!==e)throw new RangeError("Month doesnt match with monthCode");if(a=e,n){if(1===h)throw new RangeError("Month code out of range");c=t.daysInMonth(i,a)}}else if(void 0===a)throw new TypeError("Must specify either a month or monthCode");return[i,a,c]=Xt(i,a,c,t,h),Rt(t.epochMilliseconds(i,a,c))}function ii(e,t){if(ni(e)){if(t&&e instanceof ei)throw new TypeError("PlainMonthDay not allowed");return e.getISOFields()}return Yi.from(e).getISOFields()}function ai(e,t){return $t(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t+1,1,1))}function si(e,t,n,r){return $t(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t,n,r))+1}Cn(ei,"PlainMonthDay"),Tn(ei),Dn(ei,["monthCode","day"]),wo(ei,fo({month:"numeric",day:"numeric"},{weekday:void 0,year:void 0,hour:void 0,minute:void 0,second:void 0},!0));const ci={hebrew:6,chinese:0,dangi:0};class ui extends Et{constructor(e){const t=hi(e);if(n=e,r=t.resolvedOptions().calendar,Ct(n)!==Ct(r))throw new RangeError("Invalid calendar: "+e);var n,r;super(e),this.format=t,this.yearCorrection=this.computeFieldsDumb(0).year-1970,this.monthCacheByYear={}}epochMilliseconds(e,t,n){return Vt(this.queryMonthCache(e)[0][t-1],n-1)}daysInMonth(e,t){const n=this.queryMonthCache(e)[0],r=n[t-1];return t>=n.length&&(e++,t=0),$t(r,this.queryMonthCache(e)[0][t])}monthsInYear(e){return this.queryMonthCache(e)[0].length}monthCode(e,t){const n=this.queryLeapMonthByYear(t);return!n||e<n?super.monthCode(e,t):super.monthCode(e-1,t)+(e===n?"L":"")}convertMonthCode(e,t){const n=this.queryLeapMonthByYear(t);let r=/L$/.test(e),o=parseInt(e.substr(1)),i=!1;if(r){const e=ci[this.id];if(void 0===e)throw new RangeError("Calendar system doesnt support leap months");if(e){if(o!==e-1)throw new RangeError("Invalid leap-month month code")}else if(o<=1||o>=12)throw new RangeError("Invalid leap-month month code")}return!r||n&&o===n-1||(i=!0,r=!1),(r||n&&o>=n)&&o++,[o,i]}inLeapYear(e){const t=ai(this,e);return t>ai(this,e-1)&&t>ai(this,e+1)}guessYearForMonthDay(e,t){let n=1970+this.yearCorrection;const r=n+100;for(;n<r;n++){const[r,o]=this.convertMonthCode(e,n);if(!o&&r<=this.monthsInYear(n)&&t<=this.daysInMonth(n,r))return n}throw new Error("Could not guess year")}normalizeISOYearForMonthDay(e){return e}computeFields(e){const t=this.computeFieldsDumb(e),n=this.queryMonthCache(t.year)[2];return{...t,month:n[t.month]}}computeFieldsDumb(e){const t=Sr(this.format,e);let n,r,o=parseInt(t.relatedYear||t.year);var i;return t.era&&(i=this.id,void 0!==At[Ct(i)])&&(n=wr(t.era),r=o,o=Dt(this.id,r,n,!0)),{era:n,eraYear:r,year:o,month:t.month,day:parseInt(t.day)}}queryLeapMonthByYear(e){const t=this.queryMonthCache(e),n=this.queryMonthCache(e-1),r=this.queryMonthCache(e+1);if(t[0].length>n[0].length&&t[0].length>r[0].length){const e=t[1],r=n[1];for(let t=0;t<r.length;t++)if(r[t]!==e[t])return t+1}}queryMonthCache(e){const{monthCacheByYear:t}=this;return t[e]||(t[e]=this.buildMonthCache(e))}buildMonthCache(e){const t=[],n=[],r={};let o=Ft(this.guessISOYear(e),1,1);for(o=Vt(o,400);;){const r=this.computeFieldsDumb(o);if(r.year<e)break;o=Vt(o,1-r.day),r.year===e&&(t.unshift(o),n.unshift(r.month)),o=Vt(o,-1)}for(let e=0;e<n.length;e++)r[n[e]]=e+1;return[t,n,r]}guessISOYear(e){return e-this.yearCorrection}}function hi(e){return new vr("en-US",{calendar:e,era:"short",year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}const li=Ft(1868,9,8),di={gregory:cn,japanese:class extends cn{constructor(){super(...arguments),this.format=hi("japanese")}computeFields(e){const t=super.computeFields(e);if(e>=li){const n=Sr(this.format,e);t.era=wr(n.era),t.eraYear=parseInt(n.relatedYear||n.year)}return t}},islamic:class extends ui{guessISOYear(e){return Math.ceil(32*e/33+622)}}},mi={iso8601:Ot};function fi(e){const t=(e=String(e)).toLocaleLowerCase();return mi[t]||(mi[t]=new(di[Ct(t)]||ui)(e))}const gi=Ft(1582,10,15),yi=Ft(622,7,18),Si={buddhist:gi,japanese:gi,roc:gi,islamic:yi,"islamic-rgsa":yi,indian:0},pi={};function wi(e,t){return vi(e.div(1e6).toNumber(),t)}function vi(e,t){if(function(e,t){return function(e){let t=pi[e];if(void 0===t){const n=Si[e];if(void 0===n)t=!1;else{let r=fi(e);r instanceof ui||(r=new ui(e));const o=n-864e5,i=r.computeFields(o);t=o!==r.epochMilliseconds(i.year,i.month,i.day)}pi[e]=t}return t}(t)&&e<Si[t]}(e,t))throw new RangeError("Invalid timestamp for calendar")}function bi(e,t,n){const r=7+t-n;return-et(xt(e,1,r)-t,7)+r-1}function Mi(e,t,n){const r=bi(e,t,n),o=bi(e+1,t,n);return(ai(Ot,e)-r+o)/7}const[Ii,Ti]=Ce();class Ai extends Ze{constructor(e){super(),"islamicc"===e&&(e="islamic-civil"),Ti(this,fi(e))}static from(e){if(Ee(e))return function(e){const t=e.calendar;return void 0===t?e:Ee(t)&&void 0===t.calendar?t:new Ai(t)}(e);const t=tr(String(e),!1,!0);return new Ai(t?t.calendar||"iso8601":String(e))}get id(){return this.toString()}era(e){const t=ii(e,!0);return Ci(Ii(this),t.isoYear,t.isoMonth,t.isoDay).era}eraYear(e){const t=ii(e,!0);return Ci(Ii(this),t.isoYear,t.isoMonth,t.isoDay).eraYear}year(e){const t=ii(e,!0);return Ci(Ii(this),t.isoYear,t.isoMonth,t.isoDay).year}month(e){const t=ii(e,!0);return Ci(Ii(this),t.isoYear,t.isoMonth,t.isoDay).month}monthCode(e){const t=ri(e,this);return Ii(this).monthCode(t.month,t.year)}day(e){const t=ii(e);return Ci(Ii(this),t.isoYear,t.isoMonth,t.isoDay).day}dayOfWeek(e){const t=ii(e,!0);return xt(t.isoYear,t.isoMonth,t.isoDay)}dayOfYear(e){const t=ri(e,this,!0);return si(Ii(this),t.year,t.month,t.day)}weekOfYear(e){const t=ii(e,!0);return function(e,t,n,r,o){const i=bi(e,1,4),a=Math.floor((si(Ot,e,t,n)-i-1)/7)+1;if(a<1)return a+Mi(e-1,1,4);const s=Mi(e,1,4);return a>s?a-s:a}(t.isoYear,t.isoMonth,t.isoDay)}daysInWeek(e){return ii(e,!0),7}daysInMonth(e){const t=ri(e,this,!0);return Ii(this).daysInMonth(t.year,t.month)}daysInYear(e){const t=ri(e,this,!0);return ai(Ii(this),t.year)}monthsInYear(e){const t=ri(e,this,!0);return Ii(this).monthsInYear(t.year)}inLeapYear(e){return Ii(this).inLeapYear(this.year(e))}dateFromFields(e,t){const n=oi(Ie(e,rn),Ii(this),t);return new Yi(n.isoYear,n.isoMonth,n.isoDay,this)}yearMonthFromFields(e,t){const n=oi({...Ie(e,nn),day:1},Ii(this),t);return new No(n.isoYear,n.isoMonth,this,n.isoDay)}monthDayFromFields(e,t){const n=Ii(this);let{era:r,eraYear:o,year:i,month:a,monthCode:s,day:c}=Ie(e,an);if(void 0===c)throw new TypeError("required property 'day' missing or undefined");if(void 0!==s?i=kt:void 0!==r&&void 0!==o&&(i=Dt(n.id,o,r)),void 0===i){if(void 0===s)throw new TypeError("either year or monthCode required with month");i=n.guessYearForMonthDay(s,c)}const u=oi({year:i,month:a,monthCode:s,day:c},n,t);return new ei(u.isoMonth,u.isoDay,this,n.normalizeISOYearForMonthDay(u.isoYear))}dateAdd(e,t,n){const r=Ii(this),o=function(e,t,n,r){e=Hn(e=kn(e,t.years,n,r),t.months,n,r);let o=n.epochMilliseconds(e.year,e.month,e.day);const i=Math.trunc(bt(t).div(ge).toNumber());return o=Vt(o,7*t.weeks+t.days+i),Rt(o)}(Be(Yi,e,n),Be(Ko,t),r,ve(n));return new Yi(o.isoYear,o.isoMonth,o.isoDay,this)}dateUntil(e,t,n){const r=Ii(this),o=Be(Yi,e),i=Be(Yi,t),a=Te(n).largestUnit,s="auto"===a?6:_e(a,6,6,9);return Hi(this,Oi(o,i)),Jo(function(e,t,n,r){let o=0,i=0,a=0,s=0;switch(r){case 9:o=function(e,t,n){const[,r,o]=Xt(t.year,e.month,e.day,n,0),i=Wt(t,e),a=Je(t.month,r)||Je(t.day,o);return t.year-e.year-(a&&i&&a!==i?i:0)}(e,t,n),e=kn(e,o,n,0);case 8:i=function(e,t,n){let r=0;const o=Wt(t,e);if(o){let{year:i}=e;for(;i!==t.year;)r+=n.monthsInYear(i)*o,i+=o;const[,a,s]=Xt(t.year,e.month,e.day,n,0);r+=t.month-a;const c=Je(t.day,s);c&&o&&c!==o&&(r-=o)}return r}(e,t,n),e=Hn(e,i,n,0)}return s=$t(n.epochMilliseconds(e.year,e.month,e.day),n.epochMilliseconds(t.year,t.month,t.day)),7===r&&(a=Math.trunc(s/7),s%=7),ft({years:o,months:i,weeks:a,days:s,hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0})}(o,i,r,s))}fields(e){return e.slice()}mergeFields(e,t){return Di(e,t)}toString(){return Ii(this).id}}function Ei(){return new Ai("iso8601")}function Di(e,t){var n;const r={...e,...t};if(void 0!==e.year){delete r.era,delete r.eraYear,delete r.year;let n=!1;void 0===t.era&&void 0===t.eraYear||(r.era=t.era,r.eraYear=t.eraYear,n=!0),void 0!==t.year&&(r.year=t.year,n=!0),n||(r.year=e.year)}if(void 0!==e.monthCode){delete r.monthCode,delete r.month;let n=!1;void 0!==t.month&&(r.month=t.month,n=!0),void 0!==t.monthCode&&(r.monthCode=t.monthCode,n=!0),n||(r.monthCode=e.monthCode)}return void 0!==e.day&&(r.day=null!=(n=t.day)?n:e.day),r}function Ci(e,t,n,r){const o=Ft(t,n,r);return vi(o,e.id),e.computeFields(o)}function Ni(e){return void 0===e.calendar?Ei():Be(Ai,e.calendar)}function Oi(e,t){const{calendar:n}=e;return Hi(n,t.calendar),n}function ki(e,t){const n=e.calendar,r=t.calendar;if("iso8601"===n.id)return r;if("iso8601"===r.id)return n;if(n.id!==r.id)throw new RangeError("Non-ISO calendars incompatible");return n}function Hi(e,t){if(e.toString()!==t.toString())throw new RangeError("Calendars must match")}Cn(Ai,"Calendar");class Yi extends Ke{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ei();const o=Qt({isoYear:e,isoMonth:t,isoDay:n},1),i=Be(Ai,r);!function(e,t){const n=Yt(e);so(n.add(n.sign()<0?86399999999999:0)),wi(n,t)}(o,i.toString()),super({...o,calendar:i})}static from(e,t){return ve(t),e instanceof Yi?Li(e.getISOFields()):"object"==typeof e?Lr(e,t):Li(mr(qn(String(e))))}static compare(e,t){return Jt(Be(Yi,e),Be(Yi,t))}with(e,t){return jr(this,e,t)}withCalendar(e){const t=this.getISOFields();return new Yi(t.isoYear,t.isoMonth,t.isoDay,e)}add(e,t){return this.calendar.dateAdd(this,e,t)}subtract(e,t){return this.calendar.dateAdd(this,Be(Ko,e).negated(),t)}until(e,t){return Fi(this,Be(Yi,e),!1,t)}since(e,t){return Fi(this,Be(Yi,e),!0,t)}equals(e){return!Jt(this,Be(Yi,e))}toString(e){const t=un(e),n=this.getISOFields();return fn(n)+pn(n.calendar.toString(),t)}toZonedDateTime(e){const t=function(e){let t,n;if("string"==typeof e)n=e;else{if("object"!=typeof e)throw new TypeError("Invalid options/timeZone argument");if(void 0!==e.id?n=e:(n=e.timeZone,t=e.plainTime),void 0===n)throw new TypeError("Invalid timeZone argument")}return{plainTime:t,timeZone:n}}(e),n=Be(Or,t.timeZone),r=void 0===t.plainTime?void 0:Be(Io,t.plainTime);return Fo({...this.getISOFields(),...r?r.getISOFields():St,timeZone:n})}toPlainDateTime(e){return qo({...this.getISOFields(),...Ao(e).getISOFields()})}toPlainYearMonth(){return Oo(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}}function Li(e){return new Yi(e.isoYear,e.isoMonth,e.isoDay,e.calendar)}function Fi(e,t,n,r){return Jo(Ri(e,t,Oi(e,t),n,Ue(r,6,6,6,9)))}function Pi(e,t,n,r,o){return zo(_i(e,t,n,o.largestUnit),e,t,n,r,o)}function Ri(e,t,n,r,o){return zo(n.dateUntil(e,t,{largestUnit:Le[o.largestUnit]}),e,t,n,r,o)}function _i(e,t,n,r){if(!we(r))return Ui(e,t,r);const o=Li({...e.getISOFields(),calendar:n});let i,a,s,c,u,h=Li({...t.getISOFields(),calendar:n});do{a=n.dateUntil(o,h,{largestUnit:Le[r]}),i=e.add(a),s=Ui(i,t,5),c=a.sign,u=s.sign}while(c&&u&&c!==u&&(h=h.add({days:u})));return d=s,{sign:(l=a).sign||d.sign,years:l.years+d.years,months:l.months+d.months,weeks:l.weeks+d.weeks,days:l.days+d.days,hours:l.hours+d.hours,minutes:l.minutes+d.minutes,seconds:l.seconds+d.seconds,milliseconds:l.milliseconds+d.milliseconds,microseconds:l.microseconds+d.microseconds,nanoseconds:l.nanoseconds+d.nanoseconds};var l,d}function Ui(e,t,n){return It(_t(t).sub(_t(e)),n)}Cn(Yi,"PlainDate"),Tn(Yi),Dn(Yi,En),wo(Yi,fo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0},{hour:void 0,minute:void 0,second:void 0}));class ji extends ze{constructor(e){super();const t=st(e,!0);!function(e){-1!==ct(e,ro)&&1!==ct(e,no)||zt()}(t),this[Ht]=t}static from(e){if(e instanceof ji)return new ji(e.epochNanoseconds);const t=Wn(String(e)),n=t.offsetNanoseconds;if(void 0===n)throw new RangeError("Must specify an offset");return new ji(Yt(en(t,1)).sub(n))}static fromEpochSeconds(e){return new ji(st(e).mult(1e9))}static fromEpochMilliseconds(e){return new ji(st(e).mult(1e6))}static fromEpochMicroseconds(e){return new ji(e*BigInt(1e3))}static fromEpochNanoseconds(e){return new ji(e)}static compare(e,t){return qt(Be(ji,e),Be(ji,t))}add(e){return new ji(Ln(this[Ht],Be(Ko,e)))}subtract(e){return new ji(Ln(this[Ht],dt(Be(Ko,e))))}until(e,t){return xi(this,Be(ji,e),t)}since(e,t){return xi(Be(ji,e),this,t)}round(e){const t=je(e,0,5,!0);return new ji(function(e,t){const[n,r]=function(e){const t=Pt(e);return[Lt(t.isoYear,t.isoMonth,t.isoDay),Mt(t)]}(e),o=ho(r,t);return n.add(o)}(this[Ht],t))}equals(e){return!qt(this,Be(ji,e))}toString(e){const t=Te(e).timeZone;return this.toZonedDateTimeISO(null!=t?t:"UTC").toString({...e,offset:void 0===t?"never":"auto",timeZoneName:"never"})+(void 0===t?"Z":"")}toZonedDateTimeISO(e){return new Lo(this.epochNanoseconds,e)}toZonedDateTime(e){if(!Ee(e))throw new TypeError("Must specify options");if(void 0===e.calendar)throw new TypeError("Must specify a calendar");if(void 0===e.timeZone)throw new TypeError("Must specify a timeZone");return new Lo(this.epochNanoseconds,e.timeZone,e.calendar)}}function xi(e,t,n){const r=Ue(n,3,0,0,5);return Jo(function(e,t,n){return It(Qe(t.sub(e),ye[n.smallestUnit]*n.roundingIncrement,n.roundingFunc),n.largestUnit)}(e[Ht],t[Ht],r))}function Bi(){return ji.fromEpochMilliseconds(this.valueOf())}Cn(ji,"Instant"),bn(ji),wo(ji,lo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:void 0},{}));const Zi=Symbol(),zi=Symbol(),$i=Symbol();class Vi extends Intl.DateTimeFormat{constructor(e,t){const n=br(e),r=function(e){const t={};for(const n in e){let r=e[n];Ee(r)&&(r=r.toString()),t[n]=r}return t}(t||{});super(n,r),this[Zi]=n,this[zi]=r,this[$i]=new Map}format(e){const t=Ji(this,e);return t[0]===this?super.format(t[1]):t[0].format(t[1])}formatToParts(e){return super.formatToParts.call(...Ji(this,e))}formatRange(e,t){return super.formatRange.call(...Gi(this,e,t))}formatRangeToParts(e,t){return super.formatRangeToParts.call(...Gi(this,e,t))}}const Ki=Vi;function Ji(e,t){const n=vo(t);if(n){const r=Wi(e,n);return[r.buildFormat(t),r.buildEpochMilli(t)]}return[e,t]}function Gi(e,t,n){const r=vo(t);if(r!==vo(n))throw new TypeError("Mismatch of types");if(r){const o=Wi(e,r);return[o.buildFormat(t,n),new Date(o.buildEpochMilli(t)),new Date(o.buildEpochMilli(n))]}return[e,t,n]}function Wi(e,t){const n=e[$i];let r=n.get(t);return r||(r=function(e){const t={};return{buildFormat:function(n,r){const o=e.buildKey(n,r),i=o.join("|");return t[i]||(t[i]=e.buildFormat(...o))},buildEpochMilli:e.buildEpochMilli}}(t(e[Zi],e[zi])),n.set(t,r)),r}const qi={zonedDateTimeISO:function(e){return Fo(Qi("iso8601",e))},zonedDateTime:function(e,t){return Fo(Qi(e,t))},plainDateTimeISO:function(e){return qo(Qi("iso8601",e))},plainDateTime:function(e,t){return qo(Qi(e,t))},plainDateISO:function(e){return Li(Qi("iso8601",e))},plainDate:function(e,t){return Li(Qi(e,t))},plainTimeISO:function(e){return To(Qi("iso8601",e))},instant:function(){return new ji(ea())},timeZone:Xi};function Xi(){return new Or((new vr).resolvedOptions().timeZone)}function Qi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Xi();const n=Be(Or,t);return{...Po(ea(),n)[0],timeZone:n,calendar:Be(Ai,e)}}function ea(){return st(Date.now()).mult(1e6)}Cn(qi,"Now");const ta={PlainYearMonth:No,PlainMonthDay:ei,PlainDate:Yi,PlainTime:Io,PlainDateTime:Wo,ZonedDateTime:Lo,Instant:ji,Calendar:Ai,TimeZone:Or,Duration:Ko,Now:qi,[Symbol.toStringTag]:"Temporal"};const na=ta;function ra(e){return e*Math.PI/180}function oa(e){return 180*e/Math.PI}class ia{constructor(e,t,n,r,o){this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(r),this.setTimeZone(o)}latitude;longitude;locationName=null;timeZoneId;elevation;getElevation(){return this.elevation}setElevation(e){if("number"!=typeof e)throw new TypeError("Invalid elevation");if(e<0)throw new RangeError(`elevation ${e} must be zero or positive`);this.elevation=e}setLatitude(e){if("number"!=typeof e)throw new TypeError("Invalid latitude");if(e<-90||e>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);this.latitude=e}getLatitude(){return this.latitude}setLongitude(e){if("number"!=typeof e)throw new TypeError("Invalid longitude");if(e<-180||e>180)throw new RangeError(`Longitude ${e} out of range [-180,180]`);this.longitude=e}getLongitude(){return this.longitude}getLocationName(){return this.locationName}setLocationName(e){this.locationName=e}getTimeZone(){return this.timeZoneId}setTimeZone(e){this.timeZoneId=e}}const aa=6356.9;class sa{constructor(e,t){this.date=t,this.geoLocation=e}static GEOMETRIC_ZENITH=90;static CIVIL_ZENITH=96;static NAUTICAL_ZENITH=102;static ASTRONOMICAL_ZENITH=108;date;geoLocation;getSunrise(){const e=this.getUTCSunrise0(sa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(sa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(sa.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(sa.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(sa.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(sa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(sa.GEOMETRIC_ZENITH);return isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(sa.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(sa.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(sa.ASTRONOMICAL_ZENITH)}static getTimeOffset(e,t){return null===e||isNaN(t)?null:e.add({milliseconds:t})}getSunriseOffsetByDegrees(e){const t=this.getUTCSunrise0(e);return isNaN(t)?null:this.getDateFromTime(t,!0)}getSunsetOffsetByDegrees(e){const t=this.getUTCSunset0(e);return isNaN(t)?null:this.getDateFromTime(t,!1)}getUTCSunrise0(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunrise(e){return this.getUTCSunrise(this.getAdjustedDate(),this.geoLocation,e,!1)}getUTCSunset0(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!0)}getUTCSeaLevelSunset(e){return this.getUTCSunset(this.getAdjustedDate(),this.geoLocation,e,!1)}getAdjustedDate(){return this.date}getElevationAdjustment(e){return oa(Math.acos(aa/(aa+e/1e3)))}adjustZenith(e,t){let n=e;return e===sa.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}static JULIAN_DAY_JAN_1_2000=2451545;static JULIAN_DAYS_PER_CENTURY=36525;getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=sa.getSunriseUTC(sa.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getUTCSunset(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=sa.getSunsetUTC(sa.getJulianDay(e),t.getLatitude(),-t.getLongitude(),i);for(a/=60;a<0;)a+=24;for(;a>=24;)a-=24;return a}getTemporalHour(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();if(null===e||null===t)return NaN;const n=t.epochMilliseconds-e.epochMilliseconds;return Math.floor(n/12)}getSunTransit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSeaLevelSunrise(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSeaLevelSunset();const n=this.getTemporalHour(e,t);return sa.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(isNaN(e))return null;let n=e,r=this.getAdjustedDate();const o=Math.trunc(n);n-=o;const i=Math.trunc(n*=60);n-=i;const a=Math.trunc(n*=60);n-=a;const s=Math.trunc(this.geoLocation.getLongitude()/15);return t&&s+o>18?r=r.add({days:-1}):!t&&s+o<6&&(r=r.add({days:1})),r.toZonedDateTime({timeZone:"UTC",plainTime:new na.PlainTime(o,i,a,Math.trunc(1e3*n))}).withTimeZone(this.geoLocation.getTimeZone())}static getJulianDay(e){let{year:t,month:n}=e;const{day:r}=e;n<=2&&(t-=1,n+=12);const o=Math.trunc(t/100),i=Math.trunc(2-o+o/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(n+1))+r+i-1524.5}static getJulianCenturiesFromJulianDay(e){return(e-sa.JULIAN_DAY_JAN_1_2000)/sa.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*sa.JULIAN_DAYS_PER_CENTURY+sa.JULIAN_DAY_JAN_1_2000}static getSunGeometricMeanLongitude(e){let t=280.46646+e*(36000.76983+3032e-7*e);for(;t>360;)t-=360;for(;t<0;)t+=360;return t}static getSunGeometricMeanAnomaly(e){return 357.52911+e*(35999.05029-1537e-7*e)}static getEarthOrbitEccentricity(e){return.016708634-e*(42037e-9+1.267e-7*e)}static getSunEquationOfCenter(e){const t=ra(sa.getSunGeometricMeanAnomaly(e));return Math.sin(t)*(1.914602-e*(.004817+14e-6*e))+Math.sin(t+t)*(.019993-101e-6*e)+289e-6*Math.sin(t+t+t)}static getSunTrueLongitude(e){return sa.getSunGeometricMeanLongitude(e)+sa.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return sa.getSunTrueLongitude(e)-.00569-.00478*Math.sin(ra(t))}static getMeanObliquityOfEcliptic(e){return 23+(26+(21.448-e*(46.815+e*(59e-5-.001813*e)))/60)/60}static getObliquityCorrection(e){const t=125.04-1934.136*e;return sa.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(ra(t))}static getSunDeclination(e){const t=sa.getObliquityCorrection(e),n=sa.getSunApparentLongitude(e),r=Math.sin(ra(t))*Math.sin(ra(n));return oa(Math.asin(r))}static getEquationOfTime(e){const t=sa.getObliquityCorrection(e),n=sa.getSunGeometricMeanLongitude(e),r=sa.getEarthOrbitEccentricity(e),o=sa.getSunGeometricMeanAnomaly(e);let i=Math.tan(ra(t)/2);i*=i;const a=Math.sin(2*ra(n)),s=Math.sin(ra(o));return 4*oa(i*a-2*r*s+4*r*i*s*Math.cos(2*ra(n))-.5*i*i*Math.sin(4*ra(n))-1.25*r*r*Math.sin(2*ra(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=ra(e),o=ra(t);return Math.acos(Math.cos(ra(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=ra(e),o=ra(t);return-Math.acos(Math.cos(ra(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=sa.getJulianDay(e.toPlainDate()),o=sa.getJulianCenturiesFromJulianDay(r),i=sa.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=ra(n-a),c=ra(sa.getSunDeclination(o)),u=ra(t);return oa(Math.asin(Math.sin(u)*Math.sin(c)+Math.cos(u)*Math.cos(c)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=sa.getJulianDay(e.toPlainDate()),o=sa.getJulianCenturiesFromJulianDay(r),i=sa.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=ra(n-a),c=ra(sa.getSunDeclination(o)),u=ra(t);return oa(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(u)-Math.tan(c)*Math.cos(u))))+180}static getSunriseUTC(e,t,n,r){const o=sa.getJulianCenturiesFromJulianDay(e),i=sa.getSolarNoonUTC(o,n),a=sa.getJulianCenturiesFromJulianDay(e+i/1440);let s=sa.getEquationOfTime(a),c=sa.getSunDeclination(a),u=sa.getSunHourAngleAtSunrise(t,c,r),h=n-oa(u),l=4*h,d=720+l-s;const m=sa.getJulianCenturiesFromJulianDay(sa.getJulianDayFromJulianCenturies(o)+d/1440);return s=sa.getEquationOfTime(m),c=sa.getSunDeclination(m),u=sa.getSunHourAngleAtSunrise(t,c,r),h=n-oa(u),l=4*h,d=720+l-s,d}static getSolarNoonUTC(e,t){const n=sa.getJulianCenturiesFromJulianDay(sa.getJulianDayFromJulianCenturies(e)+t/360);let r=sa.getEquationOfTime(n);const o=720+4*t-r,i=sa.getJulianCenturiesFromJulianDay(sa.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=sa.getEquationOfTime(i),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=sa.getJulianCenturiesFromJulianDay(e),i=sa.getSolarNoonUTC(o,n),a=sa.getJulianCenturiesFromJulianDay(e+i/1440);let s=sa.getEquationOfTime(a),c=sa.getSunDeclination(a),u=sa.getSunHourAngleAtSunset(t,c,r),h=n-oa(u),l=4*h,d=720+l-s;const m=sa.getJulianCenturiesFromJulianDay(sa.getJulianDayFromJulianCenturies(o)+d/1440);return s=sa.getEquationOfTime(m),c=sa.getSunDeclination(m),u=sa.getSunHourAngleAtSunset(t,c,r),h=n-oa(u),l=4*h,d=720+l-s,d}}const ca=[["Ashdod","IL",31.79213,34.64966,"Asia/Jerusalem",27],["Atlanta","US",33.749,-84.38798,"America/New_York",336],["Austin","US",30.26715,-97.74306,"America/Chicago",165],["Baghdad","IQ",33.34058,44.40088,"Asia/Baghdad",41],["Beer Sheva","IL",31.25181,34.7913,"Asia/Jerusalem",285],["Berlin","DE",52.52437,13.41053,"Europe/Berlin",43],["Baltimore","US",39.29038,-76.61219,"America/New_York",35],["Bogota","CO",4.60971,-74.08175,"America/Bogota",2582],["Boston","US",42.35843,-71.05977,"America/New_York",38],["Budapest","HU",47.49801,19.03991,"Europe/Budapest",104],["Buenos Aires","AR",-34.61315,-58.37723,"America/Argentina/Buenos_Aires",31],["Buffalo","US",42.88645,-78.87837,"America/New_York",191],["Chicago","US",41.85003,-87.65005,"America/Chicago",180],["Cincinnati","US",39.162,-84.45689,"America/New_York",267],["Cleveland","US",41.4995,-81.69541,"America/New_York",204],["Dallas","US",32.78306,-96.80667,"America/Chicago",139],["Denver","US",39.73915,-104.9847,"America/Denver",1636],["Detroit","US",42.33143,-83.04575,"America/Detroit",192],["Eilat","IL",29.55805,34.94821,"Asia/Jerusalem",63],["Gibraltar","GI",36.14474,-5.35257,"Europe/Gibraltar",11],["Haifa","IL",32.81841,34.9885,"Asia/Jerusalem",40],["Hawaii","US",21.30694,-157.85833,"Pacific/Honolulu",18],["Helsinki","FI",60.16952,24.93545,"Europe/Helsinki",26],["Houston","US",29.76328,-95.36327,"America/Chicago",30],["Jerusalem","IL",31.76904,35.21633,"Asia/Jerusalem",786],["Johannesburg","ZA",-26.20227,28.04363,"Africa/Johannesburg",1767],["Kiev","UA",50.45466,30.5238,"Europe/Kiev",187],["La Paz","BO",-16.5,-68.15,"America/La_Paz",3782],["Livingston","US",40.79593,-74.31487,"America/New_York",98],["Las Vegas","US",36.17497,-115.13722,"America/Los_Angeles",613],["London","GB",51.50853,-.12574,"Europe/London",25],["Los Angeles","US",34.05223,-118.24368,"America/Los_Angeles",96],["Marseilles","FR",43.29695,5.38107,"Europe/Paris",28],["Miami","US",25.77427,-80.19366,"America/New_York",25],["Minneapolis","US",44.97997,-93.26384,"America/Chicago",262],["Melbourne","AU",-37.814,144.96332,"Australia/Melbourne",25],["Mexico City","MX",19.42847,-99.12766,"America/Mexico_City",2240],["Montreal","CA",45.50884,-73.58781,"America/Toronto",216],["Moscow","RU",55.75222,37.61556,"Europe/Moscow",144],["New York","US",40.71427,-74.00597,"America/New_York",57],["Omaha","US",41.25861,-95.93779,"America/Chicago",315],["Ottawa","CA",45.41117,-75.69812,"America/Toronto",71],["Panama City","PA",8.9936,-79.51973,"America/Panama",17],["Paris","FR",48.85341,2.3488,"Europe/Paris",42],["Pawtucket","US",41.87871,-71.38256,"America/New_York",0],["Petach Tikvah","IL",32.08707,34.88747,"Asia/Jerusalem",54],["Philadelphia","US",39.95233,-75.16379,"America/New_York",8],["Phoenix","US",33.44838,-112.07404,"America/Phoenix",366],["Pittsburgh","US",40.44062,-79.99589,"America/New_York",239],["Providence","US",41.82399,-71.41283,"America/New_York",0],["Portland","US",45.52345,-122.67621,"America/Los_Angeles",15],["Saint Louis","US",38.62727,-90.19789,"America/Chicago",149],["Saint Petersburg","RU",59.93863,30.31413,"Europe/Moscow",11],["San Diego","US",32.71533,-117.15726,"America/Los_Angeles",20],["San Francisco","US",37.77493,-122.41942,"America/Los_Angeles",28],["Sao Paulo","BR",-23.5475,-46.63611,"America/Sao_Paulo",769],["Seattle","US",47.60621,-122.33207,"America/Los_Angeles",56],["Sydney","AU",-33.86785,151.20732,"Australia/Sydney",58],["Tel Aviv","IL",32.08088,34.78057,"Asia/Jerusalem",15],["Tiberias","IL",32.79221,35.53124,"Asia/Jerusalem",0],["Toronto","CA",43.70011,-79.4163,"America/Toronto",175],["Vancouver","CA",49.24966,-123.11934,"America/Vancouver",70],["White Plains","US",41.03399,-73.76291,"America/New_York",82],["Washington DC","US",38.89511,-77.03637,"America/New_York",6],["Worcester","US",42.26259,-71.80229,"America/New_York",164]],ua=new Map,ha={0:"UTC",4:"America/Puerto_Rico",5:"America/New_York",6:"America/Chicago",7:"America/Denver",8:"America/Los_Angeles",9:"America/Anchorage",10:"Pacific/Honolulu",11:"Pacific/Pago_Pago",13:"Pacific/Funafuti",14:"Pacific/Guam",15:"Pacific/Palau",16:"Pacific/Chuuk"},la=new Map;class da extends ia{constructor(e,t,n,r,o,i,a,s){const c="number"==typeof e?e:parseFloat(e);if(isNaN(c)||c<-90||c>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const u="number"==typeof t?t:parseFloat(t);if(isNaN(u)||u<-180||u>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,c,u,"number"==typeof s&&s>0?s:0,r),this.il=Boolean(n),this.cc=i,this.geoid=a}getIsrael(){return this.il}getName(){return this.getLocationName()}getShortName(){const e=this.getLocationName();if(!e)return e;const t=e.indexOf(", ");if(-1===t)return e;if("US"===this.cc&&"D"===e[t+2]){if("C"===e[t+3])return e.substring(0,t+4);if("."===e[t+3]&&"C"===e[t+4])return e.substring(0,t+6)}return e.substring(0,t)}getCountryCode(){return this.cc}getTzid(){return this.getTimeZone()}getTimeFormatter(){return function(e){const t=la.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return la.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return ua.get(e.toLowerCase())}toString(){return JSON.stringify(this)}static legacyTzToTzid(e,t){if(e=+e,"none"==t){if(0==e)return"UTC";return`Etc/GMT${e>0?"+":""}${e}`}if(2==e&&"israel"==t)return"Asia/Jerusalem";if("eu"==t)switch(e){case-2:return"Atlantic/Cape_Verde";case-1:return"Atlantic/Azores";case 0:return"Europe/London";case 1:return"Europe/Paris";case 2:return"Europe/Athens"}else if("usa"==t)return ha[String(-1*e)]}static getUsaTzid(e,t,n){return 10==t&&"AK"==e?"America/Adak":7==t&&"AZ"==e?"Y"==n?"America/Denver":"America/Phoenix":ha[t]}static addLocation(e,t){const n=e.toLowerCase();return!ua.has(n)&&(ua.set(n,t),!0)}}for(const e of ca){const t=new da(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);da.addLocation(t.getName(),t)}const ma=new Map;const fa=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ga(e,t){const n=function(e){const t=ma.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:e});return ma.set(e,n),n}(e).format(t),r=fa.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=ya(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function ya(e){return e<0?"-00"+ya(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function Sa(e){return e<10?"0"+e:String(e)}function pa(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}("undefined"!=typeof globalThis?globalThis:window).Temporal=ta,Intl.DateTimeFormat=Ki,Date.prototype.toTemporalInstant=Bi;class wa{constructor(t,n,r){const o=e.greg.isDate(n)?n:ae.isHDate(n)?n.greg():Q(`invalid date: ${n}`);this.date=o,this.gloc=t;const i=Temporal.PlainDate.from({year:o.getFullYear(),month:o.getMonth()+1,day:o.getDate()});this.noaa=new sa(t,i),this.useElevation=Boolean(r)}timeAtAngle(e,t){const n=90+e;return pa(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return pa(this.useElevation?this.noaa.getSunrise():this.noaa.getSeaLevelSunrise())}seaLevelSunrise(){return pa(this.noaa.getSeaLevelSunrise())}sunset(){return pa(this.useElevation?this.noaa.getSunset():this.noaa.getSeaLevelSunset())}seaLevelSunset(){return pa(this.noaa.getSeaLevelSunset())}dawn(){return pa(this.noaa.getBeginCivilTwilight())}dusk(){return pa(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new wa(this.gloc,e,this.useElevation).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return pa(this.noaa.getSunTransit())}chatzotNight(){return new Date(this.sunrise().getTime()-6*this.nightHour())}alotHaShachar(){return this.timeAtAngle(16.1,!0)}misheyakir(){return this.timeAtAngle(11.5,!0)}misheyakirMachmir(){return this.timeAtAngle(10.2,!0)}getShaahZmanisBasedZman(e){const t=this.noaa.getSunrise(),n=this.noaa.getSunset(),r=this.noaa.getTemporalHour(t,n),o=Math.round(r*e);return pa(sa.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}sofZmanShmaMGA(){const e=this.sunriseOffset(-72,!1,!0),t=(this.sunsetOffset(72,!1,!0)-e)/12;return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const e=this.sunriseOffset(-72,!1,!0),t=(this.sunsetOffset(72,!1,!0)-e)/12;return new Date(e.getTime()+4*t)}minchaGedola(){return this.getShaahZmanisBasedZman(6.5)}minchaKetana(){return this.getShaahZmanisBasedZman(9.5)}plagHaMincha(){return this.getShaahZmanisBasedZman(10.75)}tzeit(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8.5;return this.timeAtAngle(e,!1)}neitzHaChama(){return this.sunrise()}shkiah(){return this.sunset()}static formatTime(e,t){const n=t.format(e),r=n.split(":");return"24"===r[0]?"00:"+r[1]:n}static roundTime(e){const t=e.getTime();if(isNaN(t))return e;const n=e.getMilliseconds(),r=e.getSeconds();if(0===r&&0===n)return e;const o=1e3*r+n;return new Date(t+(o>=3e4?6e4-o:-1*o))}static timeZoneOffset(e,t){const n=function(e,t){const n=ga("UTC",t),r=ga(e,t),o=new Date(n).getTime()-new Date(r).getTime();return Math.ceil(o/1e3/60)}(e,t),r=Math.abs(n),o=r%60;return(n<0?"+":"-")+Sa(Math.floor(r/60))+":"+Sa(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:ga(e,t).substring(0,19)+wa.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunrise():this.sunrise();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}sunsetOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?this.seaLevelSunset():this.sunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const va=5,ba=6;function Ma(e,t,n,r,o){let i=!1,a=n===ba,s=e?e.getFlags():he.LIGHT_CANDLES;void 0!==e?n!==va&&(s&(he.LIGHT_CANDLES_TZEIS|he.CHANUKAH_CANDLES)?a=!0:s&he.YOM_TOV_ENDS&&(i=!0,a=!0)):n===ba&&(i=!0,s=he.LIGHT_CANDLES_TZEIS);const c=a?o.havdalahMins:o.candleLightingMins,u=new wa(r,t,o.useElevation),h=c?u.sunsetOffset(c,!0):u.tzeit(o.havdalahDeg);return isNaN(h.getTime())?null:i?new Ta(t,s,h,r,o.havdalahMins,e):new Aa(t,s,h,r,e)}class Ia extends de{constructor(e,t,n,r,o,i){super(e,t,n),this.eventTime=wa.roundTime(r),this.location=o;const a=o.getTimeFormatter();this.eventTimeStr=wa.formatTime(this.eventTime,a),void 0!==i&&(this.linkedEvent=i)}render(e){return X.gettext(this.getDesc(),e)+": "+this.eventTimeStr}renderBrief(e){return X.gettext(this.getDesc(),e)}getCategories(){switch(this.getDesc()){case"Candle lighting":return["candles"];case"Havdalah":return["havdalah"];case"Fast begins":case"Fast ends":return["zmanim","fast"]}}}class Ta extends Ia{constructor(e,t,n,r,o,i){super(e,"Havdalah",t,n,r,i),o&&(this.havdalahMins=o)}render(e){return this.renderBrief(e)+": "+this.eventTimeStr}renderBrief(e){let t=X.gettext(this.getDesc(),e);if(this.havdalahMins){const n=X.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class Aa extends Ia{constructor(e,t,n,r,o){super(e,"Candle lighting",t,n,r,o)}getEmoji(){return"🕯️"}}function Ea(e,t,n,r,o){return isNaN(t.getTime())?null:new Ia(e,n,r.getFlags(),t,o,r)}const Da=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ca=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Na="בַּלַּ֥יְלָה";class Oa{constructor(e,t){let n=t-7;n<0&&(n+=ae.monthsInYear(e));const r=235*Math.floor((e-1)/19)+(e-1)%19*12+Math.floor(((e-1)%19*7+1)/19)+n,o=204+Math.floor(r%1080*793),i=5+12*r+793*Math.floor(r/1080)+Math.floor(o/1080)-6,a=(o%1080+i%24*1080)%1080,s=(1+29*r+Math.floor(i/24))%7;this.year=e,this.month=t,this.dow=s,this.hour=i%24,this.minutes=Math.floor(a/18),this.chalakim=a%18}getYear(){return this.year}getMonth(){return this.month}getMonthName(){return ae.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}}class ka extends de{constructor(e,t,n){const r=new Oa(t,n);super(e,`Molad ${r.getMonthName()} ${t}`,he.MOLAD),this.molad=r}render(e){const t=this.molad;"string"==typeof(e=e||X.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=X.gettext(t.getMonthName(),e),o=(n?Ca:Da)[t.getDow()],i=t.getMinutes(),a=t.getHour(),s=t.getChalakim(),c=X.gettext("Molad",e),u=X.lookupTranslation("min",e)||"minutes",h=X.gettext("chalakim",e);if(n){return`${c} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${a} ${a<5?Na:a<12?"בַּבֹּקֶר":a<17?"בַּצׇּהֳרַיִים":a<21?"בָּעֶרֶב":Na}, ו-${i} ${u} ו-${s} ${h}`}return`${c} ${r}: ${o}, ${i} ${u} and ${s} ${h} after ${a}:00`}}const Ha=[null,"Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],Ya=[null,"Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"];class La extends de{constructor(e,t){if(super(e,`Omer ${t}`,he.OMER_COUNT),t<1||t>49)throw new RangeError(`Invalid Omer day ${t}`);this.weekNumber=Math.floor((t-1)/7)+1,this.daysWithinWeeks=t%7||7,this.omer=t}sefira(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";if("he"===e)return this.sefiraHe();if("translit"===e)return this.sefiraTranslit();{const e=Ha[this.weekNumber];return`${Ha[this.daysWithinWeeks]} within ${e}`}}sefiraTranslit(){const e=this.weekNumber,t=Ya[e];return`${Ya[this.daysWithinWeeks]} ${2===e||6===e?"shebi":"sheb'"}${t}`}sefiraHe(){const e=this.weekNumber,t=Ha[e],n=Ha[this.daysWithinWeeks],r=X.gettext(t,"he");return`${X.gettext(n,"he")} ${2===e||6===e?"שֶׁבִּ":"שֶׁבְּ"}${r}`.normalize()}render(e){e=e||X.getLocaleName();const t=this.omer;return("he"==e?$(t):X.ordinal(t,e))+" "+X.gettext("day of the Omer",e)}renderBrief(e){return X.gettext("Omer",e)+" "+X.gettext("day",e)+" "+this.omer}getEmoji(){if("string"==typeof this.emoji)return this.emoji;const e=this.omer;return e<=20?String.fromCodePoint(9312+e-1):e<=35?String.fromCodePoint(12881+e-21):String.fromCodePoint(12977+e-36)}getWeeks(){return 7===this.daysWithinWeeks?this.weekNumber:this.weekNumber-1}getDaysWithinWeeks(){return this.daysWithinWeeks}getTodayIs(e){if("string"==typeof(e=e||X.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return Za(this.omer);if("he-x-nonikud"===e)return X.hebrewStripNikkud(Za(this.omer));const t=1===this.omer?"day":"days";let n=`Today is ${this.omer} ${t}`;if(this.weekNumber>1||7===this.omer){const e=7===this.daysWithinWeeks,t=e?this.weekNumber:this.weekNumber-1;if(n+=`, which is ${t} ${1===t?"week":"weeks"}`,!e){const e=1===this.daysWithinWeeks?"day":"days";n+=` and ${this.daysWithinWeeks} ${e}`}}return n+" of the Omer"}url(){return`https://www.hebcal.com/omer/${this.getDate().getFullYear()}/${this.omer}`}}const Fa=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Pa=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָׁה","שִׁשָׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Ra="שְׁנֵי",_a="יָמִים",Ua=Ra+" "+_a,ja="שָׁבוּעוֹת",xa="יוֹם",Ba=xa+" "+Pa[1];function Za(e){const t=Math.floor(e/10),n=e%10;let r="הַיוֹם ";if(10<e&&e<20?r+=Pa[n]+" עָשָׂר":e>9&&(r+=Pa[n],n&&(r+=" וְ")),e>2?((e>20||10===e||20===e)&&(r+=Fa[t]),r+=e<11?Pa[n]+" "+_a+" ":" "+xa+" "):r+=1===e?Ba+" ":Ua+" ",e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?Pa[t]+" "+ja+" ":1==t?"שָׁבוּעַ "+Pa[1]+" ":Ra+" "+ja+" ",n&&(r+="וְ",r+=n>2?Pa[n]+" "+_a+" ":1==n?Ba+" ":Ua+" ")}return r+="לָעוֹמֶר",r.normalize()}class za extends Map{#e=0;#t=new Map;#n=new Map;#r;#o;#i;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if("number"==typeof e.maxAge&&0===e.maxAge)throw new TypeError("`maxAge` must be a number greater than 0");this.#r=e.maxSize,this.#o=e.maxAge||Number.POSITIVE_INFINITY,this.#i=e.onEviction}get __oldCache(){return this.#n}#a(e){if("function"==typeof this.#i)for(const[t,n]of e)this.#i(t,n.value)}#s(e,t){return"number"==typeof t.expiry&&t.expiry<=Date.now()&&("function"==typeof this.#i&&this.#i(e,t.value),this.delete(e))}#c(e,t){if(!1===this.#s(e,t))return t.value}#u(e,t){return t.expiry?this.#c(e,t):t.value}#h(e,t){const n=t.get(e);return this.#u(e,n)}#l(e,t){this.#t.set(e,t),this.#e++,this.#e>=this.#r&&(this.#e=0,this.#a(this.#n),this.#n=this.#t,this.#t=new Map)}#d(e,t){this.#n.delete(e),this.#l(e,t)}*#m(){for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield e)}}for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield e)}}get(e){if(this.#t.has(e)){const t=this.#t.get(e);return this.#u(e,t)}if(this.#n.has(e)){const t=this.#n.get(e);if(!1===this.#s(e,t))return this.#d(e,t),t.value}}set(e,t){let{maxAge:n=this.#o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r="number"==typeof n&&n!==Number.POSITIVE_INFINITY?Date.now()+n:void 0;return this.#t.has(e)?this.#t.set(e,{value:t,expiry:r}):this.#l(e,{value:t,expiry:r}),this}has(e){return this.#t.has(e)?!this.#s(e,this.#t.get(e)):!!this.#n.has(e)&&!this.#s(e,this.#n.get(e))}peek(e){return this.#t.has(e)?this.#h(e,this.#t):this.#n.has(e)?this.#h(e,this.#n):void 0}delete(e){const t=this.#t.delete(e);return t&&this.#e--,this.#n.delete(e)||t}clear(){this.#t.clear(),this.#n.clear(),this.#e=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");const t=[...this.#m()],n=t.length-e;n<0?(this.#t=new Map(t),this.#n=new Map,this.#e=t.length):(n>0&&this.#a(t.slice(0,n)),this.#n=new Map(t.slice(n)),this.#t=new Map,this.#e=0),this.#r=e}*keys(){for(const[e]of this)yield e}*values(){for(const[,e]of this)yield e}*[Symbol.iterator](){for(const e of this.#t){const[t,n]=e;!1===this.#s(t,n)&&(yield[t,n.value])}for(const e of this.#n){const[t,n]=e;if(!this.#t.has(t)){!1===this.#s(t,n)&&(yield[t,n.value])}}}*entriesDescending(){let e=[...this.#t];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;!1===this.#s(r,o)&&(yield[r,o.value])}e=[...this.#n];for(let t=e.length-1;t>=0;--t){const n=e[t],[r,o]=n;if(!this.#t.has(r)){!1===this.#s(r,o)&&(yield[r,o.value])}}}*entriesAscending(){for(const[e,t]of this.#m())yield[e,t.value]}get size(){if(!this.#e)return this.#n.size;let e=0;for(const t of this.#n.keys())this.#t.has(t)||e++;return Math.min(this.#e+e,this.#r)}get maxSize(){return this.#r}entries(){return this.entriesAscending()}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(const[n,r]of this.entriesAscending())e.call(t,r,n,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}}class $a{constructor(e,t){e=+e;const n=ae.longCheshvan(e),r=ae.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const i=new ae(1,g.TISHREI,e),a=i.abs(),s=this.roshHashanaDay=i.getDay()+1;this.firstSaturday=ae.dayOnOrBefore(6,a+6);const c=this.leap=+ae.isLeapYear(e);this.il=Boolean(t);const u=`${c}${s}${o}`;if(cs[u])this.key=u,this.theSedraArray=cs[u];else{const e=this.key=u+ +this.il;this.theSedraArray=cs[e]}if(!this.theSedraArray)throw new Error(`improper sedra year type ${this.key} calculated for ${e}`)}get(e){return this.lookup(e).parsha}getString(e,t){const n=this.get(e),r=t||X.getLocaleName();let o=X.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+X.gettext(n[1],r)}return X.gettext("Parashat",r)+" "+o}isParsha(e){return!this.lookup(e).chag}find(e){if("number"==typeof e){if(e>53||e<0&&!function(e){switch(e){case-21:case-26:case-28:case-31:case-38:case-41:case-50:return!0}return!1}(e))throw new RangeError(`Invalid parsha number: ${e}`);const t=this.theSedraArray.indexOf(e);return-1===t?null:new ae(this.firstSaturday+7*t)}if("string"==typeof e){const t=Ka.get(e);if("number"==typeof t)return this.find(t);if(-1!==e.indexOf("-"))return this.find(e.split("-"));{const t=this.theSedraArray.indexOf(e);return-1===t?null:new ae(this.firstSaturday+7*t)}}if(Array.isArray(e)&&1===e.length&&"string"==typeof e[0])return this.find(e[0]);if(Array.isArray(e)&&2===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]){const t=e[0],n=e[1],r=Ka.get(t);if(Ka.get(n)===r+1)return this.find(-r);throw new RangeError(`Unrecognized parsha name: ${t}-${n}`)}throw new TypeError(`Invalid parsha argument: ${e}`)}getSedraArray(){return this.theSedraArray}getFirstSaturday(){return this.firstSaturday}getYear(){return this.year}lookup(e){const t="number"==typeof e?e:ae.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=ae.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return hs(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[Va[o]],chag:!1,num:o+1};const i=Ja(o);return{parsha:[Va[i],Va[i+1]],chag:!1,num:[i+1,i+2]}}}const Va=["Bereshit","Noach","Lech-Lecha","Vayera","Chayei Sara","Toldot","Vayetzei","Vayishlach","Vayeshev","Miketz","Vayigash","Vayechi","Shemot","Vaera","Bo","Beshalach","Yitro","Mishpatim","Terumah","Tetzaveh","Ki Tisa","Vayakhel","Pekudei","Vayikra","Tzav","Shmini","Tazria","Metzora","Achrei Mot","Kedoshim","Emor","Behar","Bechukotai","Bamidbar","Nasso","Beha'alotcha","Sh'lach","Korach","Chukat","Balak","Pinchas","Matot","Masei","Devarim","Vaetchanan","Eikev","Re'eh","Shoftim","Ki Teitzei","Ki Tavo","Nitzavim","Vayeilech","Ha'azinu"],Ka=new Map;for(let e=0;e<Va.length;e++){const t=Va[e];Ka.set(t,e)}function Ja(e){return-e}const Ga="Rosh Hashana",Wa="Yom Kippur",qa="Sukkot",Xa="Sukkot Shabbat Chol ha-Moed",Qa="Shmini Atzeret",es=Xa,ts="Pesach",ns="Pesach I",rs="Pesach Shabbat Chol ha-Moed",os="Pesach VII",is="Pesach VIII",as="Shavuot";function ss(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const cs={"020":[51,52].concat(es,ss(0,20),Ja(21),23,24,ts,25,Ja(26),Ja(28),30,Ja(31),ss(33,40),Ja(41),ss(43,49),Ja(50)),"0220":[51,52].concat(es,ss(0,20),Ja(21),23,24,ts,25,Ja(26),Ja(28),30,Ja(31),33,as,ss(34,37),Ja(38),40,Ja(41),ss(43,49),Ja(50)),"0510":[52].concat(Wa,es,ss(0,20),Ja(21),23,24,ns,is,25,Ja(26),Ja(28),30,Ja(31),ss(33,40),Ja(41),ss(43,50)),"0511":[52].concat(Wa,es,ss(0,20),Ja(21),23,24,ts,25,Ja(26),Ja(28),ss(30,40),Ja(41),ss(43,50)),"052":[52].concat(Wa,Xa,ss(0,24),os,25,Ja(26),Ja(28),30,Ja(31),ss(33,40),Ja(41),ss(43,50)),"070":[].concat(Ga,52,qa,Qa,ss(0,20),Ja(21),23,24,os,25,Ja(26),Ja(28),30,Ja(31),ss(33,40),Ja(41),ss(43,50)),"072":[].concat(Ga,52,qa,Qa,ss(0,20),Ja(21),23,24,rs,25,Ja(26),Ja(28),30,Ja(31),ss(33,40),Ja(41),ss(43,49),Ja(50)),1200:[51,52].concat(Xa,ss(0,27),rs,ss(28,33),as,ss(34,37),Ja(38),40,Ja(41),ss(43,49),Ja(50)),1201:[51,52].concat(Xa,ss(0,27),rs,ss(28,40),Ja(41),ss(43,49),Ja(50)),1220:[51,52].concat(Xa,ss(0,27),ns,is,ss(28,40),Ja(41),ss(43,50)),1221:[51,52].concat(Xa,ss(0,27),ts,ss(28,50)),150:[52].concat(Wa,Xa,ss(0,28),os,ss(29,50)),152:[52].concat(Wa,Xa,ss(0,28),rs,ss(29,49),Ja(50)),170:[].concat(Ga,52,qa,Qa,ss(0,27),rs,ss(28,40),Ja(41),ss(43,49),Ja(50)),1720:[].concat(Ga,52,qa,Qa,ss(0,27),rs,ss(28,33),as,ss(34,37),Ja(38),40,Ja(41),ss(43,49),Ja(50))};cs["0221"]=cs["020"],cs["0310"]=cs["0220"],cs["0311"]=cs["020"],cs[1310]=cs[1220],cs[1311]=cs[1221],cs[1721]=cs[170];const us=new za({maxSize:400});function hs(e,t){const n=`${e}-${t?1:0}`;let r=us.get(n);return r||(r=new $a(e,t),us.set(n,r)),r}class ls extends de{constructor(e,t,n,r){if(!Array.isArray(t)||0===t.length||t.length>2)throw new TypeError("Bad parsha argument");super(e,"Parashat "+t.join("-"),he.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||X.getLocaleName(),n=this.parsha;let r=X.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+X.gettext(n[1],e)}return(X.gettext("Parashat",e)+" "+r).normalize()}basename(){return this.parsha.join("-")}url(){if(this.getDate().greg().getFullYear()<100)return;const e=this.urlDateSuffix(),t="https://www.hebcal.com/sedrot/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+e;return this.il?t+"?i=on":t}urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}var ds="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ms=function(e){return e&&e.Math===Math&&e},fs=ms("object"==typeof globalThis&&globalThis)||ms("object"==typeof window&&window)||ms("object"==typeof self&&self)||ms("object"==typeof ds&&ds)||ms("object"==typeof ds&&ds)||function(){return this}()||Function("return this")(),gs=function(e){try{return!!e()}catch(e){return!0}},ys=!gs((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ss={exports:{}},ps=!gs((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ws=ps,vs=Function.prototype,bs=vs.call,Ms=ws&&vs.bind.bind(bs,bs),Is=ws?Ms:function(e){return function(){return bs.apply(e,arguments)}},Ts="object"==typeof document&&document.all,As={all:Ts,IS_HTMLDDA:void 0===Ts&&void 0!==Ts},Es=As.all,Ds=As.IS_HTMLDDA?function(e){return"function"==typeof e||e===Es}:function(e){return"function"==typeof e},Cs=function(e){return null==e},Ns=Cs,Os=TypeError,ks=function(e){if(Ns(e))throw new Os("Can't call method on "+e);return e},Hs=ks,Ys=Object,Ls=function(e){return Ys(Hs(e))},Fs=Is({}.hasOwnProperty),Ps=Object.hasOwn||function(e,t){return Fs(Ls(e),t)},Rs=ys,_s=Ps,Us=Function.prototype,js=Rs&&Object.getOwnPropertyDescriptor,xs=_s(Us,"name"),Bs={EXISTS:xs,PROPER:xs&&"something"===function(){}.name,CONFIGURABLE:xs&&(!Rs||Rs&&js(Us,"name").configurable)},Zs=fs,zs=Object.defineProperty,$s=function(e,t){try{zs(Zs,e,{value:t,configurable:!0,writable:!0})}catch(n){Zs[e]=t}return t},Vs=$s,Ks="__core-js_shared__",Js=fs[Ks]||Vs(Ks,{}),Gs=Ds,Ws=Js,qs=Is(Function.toString);Gs(Ws.inspectSource)||(Ws.inspectSource=function(e){return qs(e)});var Xs,Qs,ec=Ws.inspectSource,tc=Ds,nc=fs.WeakMap,rc=tc(nc)&&/native code/.test(String(nc)),oc=Ds,ic=As.all,ac=As.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:oc(e)||e===ic}:function(e){return"object"==typeof e?null!==e:oc(e)},sc={},cc=ac,uc=fs.document,hc=cc(uc)&&cc(uc.createElement),lc=function(e){return hc?uc.createElement(e):{}},dc=lc,mc=!ys&&!gs((function(){return 7!==Object.defineProperty(dc("div"),"a",{get:function(){return 7}}).a})),fc=ys&&gs((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),gc=ac,yc=String,Sc=TypeError,pc=function(e){if(gc(e))return e;throw new Sc(yc(e)+" is not an object")},wc=ps,vc=Function.prototype.call,bc=wc?vc.bind(vc):function(){return vc.apply(vc,arguments)},Mc=fs,Ic=Ds,Tc=function(e,t){return arguments.length<2?(n=Mc[e],Ic(n)?n:void 0):Mc[e]&&Mc[e][t];var n},Ac=Is({}.isPrototypeOf),Ec=fs,Dc="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Cc=Ec.process,Nc=Ec.Deno,Oc=Cc&&Cc.versions||Nc&&Nc.version,kc=Oc&&Oc.v8;kc&&(Qs=(Xs=kc.split("."))[0]>0&&Xs[0]<4?1:+(Xs[0]+Xs[1])),!Qs&&Dc&&(!(Xs=Dc.match(/Edge\/(\d+)/))||Xs[1]>=74)&&(Xs=Dc.match(/Chrome\/(\d+)/))&&(Qs=+Xs[1]);var Hc=Qs,Yc=gs,Lc=fs.String,Fc=!!Object.getOwnPropertySymbols&&!Yc((function(){var e=Symbol("symbol detection");return!Lc(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Hc&&Hc<41})),Pc=Fc&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Rc=Tc,_c=Ds,Uc=Ac,jc=Object,xc=Pc?function(e){return"symbol"==typeof e}:function(e){var t=Rc("Symbol");return _c(t)&&Uc(t.prototype,jc(e))},Bc=String,Zc=Ds,zc=function(e){try{return Bc(e)}catch(e){return"Object"}},$c=TypeError,Vc=function(e){if(Zc(e))return e;throw new $c(zc(e)+" is not a function")},Kc=Cs,Jc=bc,Gc=Ds,Wc=ac,qc=TypeError,Xc={exports:{}},Qc=Js;(Xc.exports=function(e,t){return Qc[e]||(Qc[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"});var eu=Xc.exports,tu=Is,nu=0,ru=Math.random(),ou=tu(1..toString),iu=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ou(++nu+ru,36)},au=eu,su=Ps,cu=iu,uu=Fc,hu=Pc,lu=fs.Symbol,du=au("wks"),mu=hu?lu.for||lu:lu&&lu.withoutSetter||cu,fu=function(e){return su(du,e)||(du[e]=uu&&su(lu,e)?lu[e]:mu("Symbol."+e)),du[e]},gu=bc,yu=ac,Su=xc,pu=function(e,t){var n=e[t];return Kc(n)?void 0:Vc(n)},wu=function(e,t){var n,r;if("string"===t&&Gc(n=e.toString)&&!Wc(r=Jc(n,e)))return r;if(Gc(n=e.valueOf)&&!Wc(r=Jc(n,e)))return r;if("string"!==t&&Gc(n=e.toString)&&!Wc(r=Jc(n,e)))return r;throw new qc("Can't convert object to primitive value")},vu=TypeError,bu=fu("toPrimitive"),Mu=function(e,t){if(!yu(e)||Su(e))return e;var n,r=pu(e,bu);if(r){if(void 0===t&&(t="default"),n=gu(r,e,t),!yu(n)||Su(n))return n;throw new vu("Can't convert object to primitive value")}return void 0===t&&(t="number"),wu(e,t)},Iu=xc,Tu=function(e){var t=Mu(e,"string");return Iu(t)?t:t+""},Au=ys,Eu=mc,Du=fc,Cu=pc,Nu=Tu,Ou=TypeError,ku=Object.defineProperty,Hu=Object.getOwnPropertyDescriptor,Yu="enumerable",Lu="configurable",Fu="writable";sc.f=Au?Du?function(e,t,n){if(Cu(e),t=Nu(t),Cu(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Fu in n&&!n[Fu]){var r=Hu(e,t);r&&r[Fu]&&(e[t]=n.value,n={configurable:Lu in n?n[Lu]:r[Lu],enumerable:Yu in n?n[Yu]:r[Yu],writable:!1})}return ku(e,t,n)}:ku:function(e,t,n){if(Cu(e),t=Nu(t),Cu(n),Eu)try{return ku(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Ou("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Pu,Ru,_u,Uu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ju=sc,xu=Uu,Bu=ys?function(e,t,n){return ju.f(e,t,xu(1,n))}:function(e,t,n){return e[t]=n,e},Zu=iu,zu=eu("keys"),$u=function(e){return zu[e]||(zu[e]=Zu(e))},Vu={},Ku=rc,Ju=fs,Gu=ac,Wu=Bu,qu=Ps,Xu=Js,Qu=$u,eh=Vu,th="Object already initialized",nh=Ju.TypeError,rh=Ju.WeakMap;if(Ku||Xu.state){var oh=Xu.state||(Xu.state=new rh);oh.get=oh.get,oh.has=oh.has,oh.set=oh.set,Pu=function(e,t){if(oh.has(e))throw new nh(th);return t.facade=e,oh.set(e,t),t},Ru=function(e){return oh.get(e)||{}},_u=function(e){return oh.has(e)}}else{var ih=Qu("state");eh[ih]=!0,Pu=function(e,t){if(qu(e,ih))throw new nh(th);return t.facade=e,Wu(e,ih,t),t},Ru=function(e){return qu(e,ih)?e[ih]:{}},_u=function(e){return qu(e,ih)}}var ah={set:Pu,get:Ru,has:_u,enforce:function(e){return _u(e)?Ru(e):Pu(e,{})},getterFor:function(e){return function(t){var n;if(!Gu(t)||(n=Ru(t)).type!==e)throw new nh("Incompatible receiver, "+e+" required");return n}}},sh=Is,ch=gs,uh=Ds,hh=Ps,lh=ys,dh=Bs.CONFIGURABLE,mh=ec,fh=ah.enforce,gh=ah.get,yh=String,Sh=Object.defineProperty,ph=sh("".slice),wh=sh("".replace),vh=sh([].join),bh=lh&&!ch((function(){return 8!==Sh((function(){}),"length",{value:8}).length})),Mh=String(String).split("String"),Ih=Ss.exports=function(e,t,n){"Symbol("===ph(yh(t),0,7)&&(t="["+wh(yh(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!hh(e,"name")||dh&&e.name!==t)&&(lh?Sh(e,"name",{value:t,configurable:!0}):e.name=t),bh&&n&&hh(n,"arity")&&e.length!==n.arity&&Sh(e,"length",{value:n.arity});try{n&&hh(n,"constructor")&&n.constructor?lh&&Sh(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=fh(e);return hh(r,"source")||(r.source=vh(Mh,"string"==typeof t?t:"")),e};Function.prototype.toString=Ih((function(){return uh(this)&&gh(this).source||mh(this)}),"toString");var Th=Ss.exports,Ah=Th,Eh=sc,Dh=pc,Ch=ys,Nh=function(e,t,n){return n.get&&Ah(n.get,t,{getter:!0}),n.set&&Ah(n.set,t,{setter:!0}),Eh.f(e,t,n)},Oh=function(){var e=Dh(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},kh=gs,Hh=fs.RegExp,Yh=Hh.prototype,Lh=Ch&&kh((function(){var e=!0;try{Hh(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(Yh,"flags").get.call(t)!==r||n!==r}));Lh&&Nh(Yh,"flags",{configurable:!0,get:Oh});const Fh=0,Ph=2,Rh=5,_h=6,Uh=g.NISAN,jh=g.IYYAR;function xh(e){if(e<5708)return null;let t;const n=new ae(15,Uh,e).getDay();return t=n===Fh?2:n===_h?3:e<5764?4:n===Ph?5:4,new ae(t,jh,e)}const Bh=g.NISAN,Zh=g.IYYAR,zh=g.SIVAN,$h=g.TAMUZ,Vh=g.AV,Kh=g.ELUL,Jh=g.TISHREI,Gh=g.CHESHVAN,Wh=g.KISLEV,qh=g.SHVAT,Xh=g.ADAR_II,Qh=he.CHAG,el=he.LIGHT_CANDLES,tl=he.YOM_TOV_ENDS,nl=he.CHUL_ONLY,rl=he.IL_ONLY,ol=he.LIGHT_CANDLES_TZEIS,il=he.CHANUKAH_CANDLES,al=he.MAJOR_FAST,sl=he.MINOR_HOLIDAY,cl=he.EREV,ul=he.CHOL_HAMOED,hl="🫓",ll="🌿🍋",dl=[{mm:Jh,dd:2,desc:"Rosh Hashana II",flags:Qh|tl,emoji:"🍏🍯"},{mm:Jh,dd:9,desc:"Erev Yom Kippur",flags:cl|el},{mm:Jh,dd:10,desc:"Yom Kippur",flags:Qh|al|tl},{mm:Jh,dd:14,desc:"Erev Sukkot",flags:nl|cl|el,emoji:ll},{mm:Jh,dd:15,desc:"Sukkot I",flags:nl|Qh|ol,emoji:ll},{mm:Jh,dd:16,desc:"Sukkot II",flags:nl|Qh|tl,emoji:ll},{mm:Jh,dd:17,desc:"Sukkot III (CH''M)",flags:nl|ul,chmDay:1,emoji:ll},{mm:Jh,dd:18,desc:"Sukkot IV (CH''M)",flags:nl|ul,chmDay:2,emoji:ll},{mm:Jh,dd:19,desc:"Sukkot V (CH''M)",flags:nl|ul,chmDay:3,emoji:ll},{mm:Jh,dd:20,desc:"Sukkot VI (CH''M)",flags:nl|ul,chmDay:4,emoji:ll},{mm:Jh,dd:22,desc:"Shmini Atzeret",flags:nl|Qh|ol},{mm:Jh,dd:23,desc:"Simchat Torah",flags:nl|Qh|tl},{mm:Jh,dd:14,desc:"Erev Sukkot",flags:rl|cl|el,emoji:ll},{mm:Jh,dd:15,desc:"Sukkot I",flags:rl|Qh|tl,emoji:ll},{mm:Jh,dd:16,desc:"Sukkot II (CH''M)",flags:rl|ul,chmDay:1,emoji:ll},{mm:Jh,dd:17,desc:"Sukkot III (CH''M)",flags:rl|ul,chmDay:2,emoji:ll},{mm:Jh,dd:18,desc:"Sukkot IV (CH''M)",flags:rl|ul,chmDay:3,emoji:ll},{mm:Jh,dd:19,desc:"Sukkot V (CH''M)",flags:rl|ul,chmDay:4,emoji:ll},{mm:Jh,dd:20,desc:"Sukkot VI (CH''M)",flags:rl|ul,chmDay:5,emoji:ll},{mm:Jh,dd:22,desc:"Shmini Atzeret",flags:rl|Qh|tl},{mm:Jh,dd:21,desc:"Sukkot VII (Hoshana Raba)",flags:el|ul,chmDay:-1,emoji:ll},{mm:Wh,dd:24,desc:"Chanukah: 1 Candle",flags:cl|sl|il,emoji:"🕎1️⃣"},{mm:qh,dd:15,desc:"Tu BiShvat",flags:sl,emoji:"🌳"},{mm:Xh,dd:13,desc:"Erev Purim",flags:cl|sl,emoji:"🎭️📜"},{mm:Xh,dd:14,desc:"Purim",flags:sl,emoji:"🎭️📜"},{mm:Xh,dd:15,desc:"Shushan Purim",flags:sl,emoji:"🎭️📜"},{mm:Bh,dd:14,desc:"Erev Pesach",flags:rl|cl|el,emoji:"🫓🍷"},{mm:Bh,dd:15,desc:"Pesach I",flags:rl|Qh|tl,emoji:hl},{mm:Bh,dd:16,desc:"Pesach II (CH''M)",flags:rl|ul,chmDay:1,emoji:hl},{mm:Bh,dd:17,desc:"Pesach III (CH''M)",flags:rl|ul,chmDay:2,emoji:hl},{mm:Bh,dd:18,desc:"Pesach IV (CH''M)",flags:rl|ul,chmDay:3,emoji:hl},{mm:Bh,dd:19,desc:"Pesach V (CH''M)",flags:rl|ul,chmDay:4,emoji:hl},{mm:Bh,dd:20,desc:"Pesach VI (CH''M)",flags:rl|ul|el,chmDay:5,emoji:hl},{mm:Bh,dd:21,desc:"Pesach VII",flags:rl|Qh|tl,emoji:hl},{mm:Bh,dd:14,desc:"Erev Pesach",flags:nl|cl|el,emoji:"🫓🍷"},{mm:Bh,dd:15,desc:"Pesach I",flags:nl|Qh|ol,emoji:"🫓🍷"},{mm:Bh,dd:16,desc:"Pesach II",flags:nl|Qh|tl,emoji:hl},{mm:Bh,dd:17,desc:"Pesach III (CH''M)",flags:nl|ul,chmDay:1,emoji:hl},{mm:Bh,dd:18,desc:"Pesach IV (CH''M)",flags:nl|ul,chmDay:2,emoji:hl},{mm:Bh,dd:19,desc:"Pesach V (CH''M)",flags:nl|ul,chmDay:3,emoji:hl},{mm:Bh,dd:20,desc:"Pesach VI (CH''M)",flags:nl|ul|el,chmDay:4,emoji:hl},{mm:Bh,dd:21,desc:"Pesach VII",flags:nl|Qh|ol,emoji:hl},{mm:Bh,dd:22,desc:"Pesach VIII",flags:nl|Qh|tl,emoji:hl},{mm:Zh,dd:14,desc:"Pesach Sheni",flags:sl},{mm:Zh,dd:18,desc:"Lag BaOmer",flags:sl,emoji:"🔥"},{mm:zh,dd:5,desc:"Erev Shavuot",flags:cl|el,emoji:"⛰️🌸"},{mm:zh,dd:6,desc:"Shavuot",flags:rl|Qh|tl,emoji:"⛰️🌸"},{mm:zh,dd:6,desc:"Shavuot I",flags:nl|Qh|ol,emoji:"⛰️🌸"},{mm:zh,dd:7,desc:"Shavuot II",flags:nl|Qh|tl,emoji:"⛰️🌸"},{mm:Vh,dd:15,desc:"Tu B'Av",flags:sl,emoji:"❤️"},{mm:Kh,dd:1,desc:"Rosh Hashana LaBehemot",flags:sl,emoji:"🐑"},{mm:Kh,dd:29,desc:"Erev Rosh Hashana",flags:cl|el,emoji:"🍏🍯"}],ml=[{firstYear:5727,mm:Zh,dd:28,desc:"Yom Yerushalayim",chul:!0},{firstYear:5737,mm:Wh,dd:6,desc:"Ben-Gurion Day",satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:qh,dd:30,desc:"Family Day"},{firstYear:5758,mm:Gh,dd:12,desc:"Yitzhak Rabin Memorial Day",friSatMovetoThu:!0},{firstYear:5764,mm:Zh,dd:10,desc:"Herzl Day",satPostponeToSun:!0},{firstYear:5765,mm:$h,dd:29,desc:"Jabotinsky Day",satPostponeToSun:!0},{firstYear:5769,mm:Gh,dd:29,desc:"Sigd",chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Bh,dd:10,desc:"Yom HaAliyah",chul:!0},{firstYear:5777,mm:Gh,dd:7,desc:"Yom HaAliyah School Observance"}],fl=he.CHAG,gl=he.IL_ONLY,yl=he.LIGHT_CANDLES_TZEIS,Sl=he.CHANUKAH_CANDLES,pl=he.MINOR_FAST,wl=he.SPECIAL_SHABBAT,vl=he.MODERN_HOLIDAY,bl=he.MAJOR_FAST,Ml=he.MINOR_HOLIDAY,Il=he.EREV;class Tl extends de{basename(){return this.getDesc().replace(/ \d{4}$/,"").replace(/ \(CH''M\)$/,"").replace(/ \(observed\)$/,"").replace(/ \(Hoshana Raba\)$/,"").replace(/ [IV]+$/,"").replace(/: \d Candles?$/,"").replace(/: 8th Day$/,"").replace(/^Erev /,"")}url(){if(this.getDate().greg().getFullYear()<100)return;const e="https://www.hebcal.com/holidays/"+this.basename().toLowerCase().replace(/'/g,"").replace(/ /g,"-")+"-"+this.urlDateSuffix();return this.getFlags()&gl?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&wl?"🕍":"✡️"}getCategories(){if(this.cholHaMoedDay)return["holiday","major","cholhamoed"];const e=super.getCategories();if("unknown"!==e[0])return e;switch(this.getDesc()){case"Lag BaOmer":case"Leil Selichot":case"Pesach Sheni":case"Erev Purim":case"Purim Katan":case"Shushan Purim":case"Tu B'Av":case"Tu BiShvat":case"Rosh Hashana LaBehemot":return["holiday","minor"];default:return["holiday","major"]}}}const Al="Rosh Chodesh";class El extends Tl{constructor(e,t){super(e,`${Al} ${t}`,he.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13);return X.gettext(Al,e)+" "+X.gettext(t,e)}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class Dl extends Tl{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const Cl="Shabbat Mevarchim Chodesh";class Nl extends de{constructor(e,t){super(e,`${Cl} ${t}`,he.SHABBAT_MEVARCHIM),this.monthName=t;const n=e.getFullYear(),r=e.getMonth(),o=r==ae.monthsInYear(n)?Yl:r+1,i=new ka(e,n,o);this.memo=i.render("en")}basename(){return this.getDesc()}render(e){return X.gettext(Cl,e)+" "+X.gettext(this.monthName,e)}}class Ol extends Tl{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return X.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const kl="Yom Kippur Katan";class Hl extends Tl{constructor(e,t){super(e,`${kl} ${t}`,he.MINOR_FAST|he.YOM_KIPPUR_KATAN),this.nextMonthName=t,this.memo=`Minor Day of Atonement on the day preceeding Rosh Chodesh ${t}`}basename(){return this.getDesc()}render(e){return X.gettext(kl,e)+" "+X.gettext(this.nextMonthName,e)}renderBrief(e){return X.gettext(kl,e)}url(){}}const Yl=g.NISAN,Ll=g.TAMUZ,Fl=g.AV,Pl=g.ELUL,Rl=g.TISHREI,_l=g.KISLEV,Ul=g.TEVET,jl=g.ADAR_I,xl=g.ADAR_II,Bl={emoji:"🇮🇱"},Zl=new za({maxSize:400}),zl=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function $l(e){if("number"!=typeof e)throw new TypeError(`bad Hebrew year: ${e}`);if(e<1||e>32658)throw new RangeError(`Hebrew year ${e} out of range 1-32658`);const t=Zl.get(e);if(t)return t;const n=new ae(1,Rl,e),r=new ae(15,Yl,e),o=new Map;function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(const e of t){const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&Il?n.unshift(e):n.push(e):o.set(t,[e])}}for(const t of dl){const n=new ae(t.dd,t.mm,e),r=new Tl(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),i(r)}i(new Ol(n,e,fl|yl)),i(new Tl(new ae(3+(4==n.getDay()),Rl,e),"Tzom Gedaliah",pl)),i(new Tl(new ae(ae.dayOnOrBefore(6,7+n.abs())),"Shabbat Shuva",wl));const a=ae.shortKislev(e)?new ae(1,Ul,e):new ae(30,_l,e);i(new Tl(a,"Chag HaBanot",Ml));for(let t=2;t<=8;t++){const n=new ae(23+t,_l,e);i(new Tl(n,`Chanukah: ${t} Candles`,Ml|Sl,{chanukahDay:t-1,emoji:"🕎"+zl[t]}))}i(new Tl(new ae(32,_l,e),"Chanukah: 8th Day",Ml,{chanukahDay:8,emoji:"🕎"})),i(new Dl(new ae(10,Ul,e),"Asara B'Tevet",pl));const s=r.abs();i(new Tl(new ae(ae.dayOnOrBefore(6,s-43)),"Shabbat Shekalim",wl),new Tl(new ae(ae.dayOnOrBefore(6,s-30)),"Shabbat Zachor",wl),new Tl(new ae(s-(2==r.getDay()?33:31)),"Ta'anit Esther",pl)),i(new Tl(new ae(ae.dayOnOrBefore(6,s-14)-7),"Shabbat Parah",wl),new Tl(new ae(ae.dayOnOrBefore(6,s-14)),"Shabbat HaChodesh",wl),new Tl(new ae(ae.dayOnOrBefore(6,s-1)),"Shabbat HaGadol",wl),new Tl(6==r.prev().getDay()?r.onOrBefore(4):new ae(14,Yl,e),"Ta'anit Bechorot",pl)),i(new Tl(new ae(ae.dayOnOrBefore(6,new ae(1,Rl,e+1).abs()-4)),"Leil Selichot",Ml,{emoji:"🕍"})),0==r.getDay()&&i(new Tl(new ae(16,xl,e),"Purim Meshulash",Ml)),ae.isLeapYear(e)&&(i(new Tl(new ae(14,jl,e),"Purim Katan",Ml,{emoji:"🎭️"})),i(new Tl(new ae(15,jl,e),"Shushan Purim Katan",Ml,{emoji:"🎭️"})));const c=function(e){if(e<5711)return null;let t=new ae(27,Uh,e);return t.getDay()===Rh?t=new ae(26,Uh,e):t.getDay()===Fh&&(t=new ae(28,Uh,e)),t}(e);c&&i(new Tl(c,"Yom HaShoah",vl));const u=xh(e);u&&i(new Tl(u,"Yom HaZikaron",vl,Bl),new Tl(u.next(),"Yom HaAtzma'ut",vl,Bl));for(const t of ml)if(e>=t.firstYear){let n=new ae(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new ae(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?vl:vl|gl,a=new Tl(n,t.desc,o);t.suppressEmoji||(a.emoji="🇮🇱"),i(a)}let h,l=new ae(17,Ll,e);6==l.getDay()&&(l=new ae(18,Ll,e),h={observed:!0}),i(new Tl(l,"Tzom Tammuz",pl,h));let d,m=new ae(9,Fl,e),f="Tish'a B'Av";6==m.getDay()&&(m=m.next(),d={observed:!0},f+=" (observed)");const y=m.abs();i(new Tl(new ae(ae.dayOnOrBefore(6,y)),"Shabbat Chazon",wl),new Tl(m.prev(),"Erev Tish'a B'Av",Il|bl,d),new Tl(m,f,bl,d),new Tl(new ae(ae.dayOnOrBefore(6,y+7)),"Shabbat Nachamu",wl));const S=ae.monthsInYear(e);for(let t=1;t<=S;t++){const n=ae.getMonthName(t,e);if(30==(t==Yl?ae.daysInMonth(ae.monthsInYear(e-1),e-1):ae.daysInMonth(t-1,e))?(i(new El(new ae(1,t,e),n)),i(new El(new ae(30,t-1,e),n))):t!==Rl&&i(new El(new ae(1,t,e),n)),t==Pl)continue;const r=ae.getMonthName(t+1,e);i(new Nl(new ae(29,t,e).onOrBefore(6),r))}for(let t=g.IYYAR;t<=S;t++){const n=t+1;if(n===Rl||n===g.CHESHVAN||n===Ul)continue;let r=new ae(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const a=ae.getMonthName(n,e);i(new Hl(r,a))}const p=hs(e,!1).find(15);i(new Tl(p,"Shabbat Shirah",wl));const w=function(e){const t=ae.isLeapYear(e),n=t?xl:Yl,r=t?20:1,o=ae.hebrew2abs(e,n,r);for(let e=0;e<=40;e++){const t=o+e;if((t+1373429)%10227==172)return t}return 0}(e);if(w){const e=new ae(w);i(new Tl(e,"Birkat Hachamah",Ml,{emoji:"☀️"}))}return Zl.set(e,o),o}const Vl=new Map;class Kl{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Vl.set(e,t)}static lookup(e,t){const n=Vl.get(e);return"function"==typeof n?n(t):null}}const Jl="5.0.6";var Gl={},Wl={},ql={}.propertyIsEnumerable,Xl=Object.getOwnPropertyDescriptor,Ql=Xl&&!ql.call({1:2},1);Wl.f=Ql?function(e){var t=Xl(this,e);return!!t&&t.enumerable}:ql;var ed=Is,td=ed({}.toString),nd=ed("".slice),rd=gs,od=function(e){return nd(td(e),8,-1)},id=Object,ad=Is("".split),sd=rd((function(){return!id("z").propertyIsEnumerable(0)}))?function(e){return"String"===od(e)?ad(e,""):id(e)}:id,cd=sd,ud=ks,hd=function(e){return cd(ud(e))},ld=ys,dd=bc,md=Wl,fd=Uu,gd=hd,yd=Tu,Sd=Ps,pd=mc,wd=Object.getOwnPropertyDescriptor;Gl.f=ld?wd:function(e,t){if(e=gd(e),t=yd(t),pd)try{return wd(e,t)}catch(e){}if(Sd(e,t))return fd(!dd(md.f,e,t),e[t])};var vd=Ds,bd=sc,Md=Th,Id=$s,Td={},Ad=Math.ceil,Ed=Math.floor,Dd=Math.trunc||function(e){var t=+e;return(t>0?Ed:Ad)(t)},Cd=Dd,Nd=function(e){var t=+e;return t!=t||0===t?0:Cd(t)},Od=Nd,kd=Math.max,Hd=Math.min,Yd=Nd,Ld=Math.min,Fd=function(e){return e>0?Ld(Yd(e),9007199254740991):0},Pd=hd,Rd=function(e,t){var n=Od(e);return n<0?kd(n+t,0):Hd(n,t)},_d=function(e){return Fd(e.length)},Ud=function(e){return function(t,n,r){var o,i=Pd(t),a=_d(i),s=Rd(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},jd={includes:Ud(!0),indexOf:Ud(!1)},xd=Ps,Bd=hd,Zd=jd.indexOf,zd=Vu,$d=Is([].push),Vd=function(e,t){var n,r=Bd(e),o=0,i=[];for(n in r)!xd(zd,n)&&xd(r,n)&&$d(i,n);for(;t.length>o;)xd(r,n=t[o++])&&(~Zd(i,n)||$d(i,n));return i},Kd=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Jd=Vd,Gd=Kd.concat("length","prototype");Td.f=Object.getOwnPropertyNames||function(e){return Jd(e,Gd)};var Wd={};Wd.f=Object.getOwnPropertySymbols;var qd=Tc,Xd=Td,Qd=Wd,em=pc,tm=Is([].concat),nm=qd("Reflect","ownKeys")||function(e){var t=Xd.f(em(e)),n=Qd.f;return n?tm(t,n(e)):t},rm=Ps,om=nm,im=Gl,am=sc,sm=gs,cm=Ds,um=/#|\.prototype\./,hm=function(e,t){var n=dm[lm(e)];return n===fm||n!==mm&&(cm(t)?sm(t):!!t)},lm=hm.normalize=function(e){return String(e).replace(um,".").toLowerCase()},dm=hm.data={},mm=hm.NATIVE="N",fm=hm.POLYFILL="P",gm=hm,ym=fs,Sm=Gl.f,pm=Bu,wm=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(vd(n)&&Md(n,i,r),r.global)o?e[t]=n:Id(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:bd.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},vm=$s,bm=function(e,t,n){for(var r=om(t),o=am.f,i=im.f,a=0;a<r.length;a++){var s=r[a];rm(e,s)||n&&rm(n,s)||o(e,s,i(t,s))}},Mm=gm,Im={},Tm=Vd,Am=Kd,Em=Object.keys||function(e){return Tm(e,Am)},Dm=ys,Cm=fc,Nm=sc,Om=pc,km=hd,Hm=Em;Im.f=Dm&&!Cm?Object.defineProperties:function(e,t){Om(e);for(var n,r=km(t),o=Hm(t),i=o.length,a=0;i>a;)Nm.f(e,n=o[a++],r[n]);return e};var Ym,Lm=Tc("document","documentElement"),Fm=pc,Pm=Im,Rm=Kd,_m=Vu,Um=Lm,jm=lc,xm="prototype",Bm="script",Zm=$u("IE_PROTO"),zm=function(){},$m=function(e){return"<"+Bm+">"+e+"</"+Bm+">"},Vm=function(e){e.write($m("")),e.close();var t=e.parentWindow.Object;return e=null,t},Km=function(){try{Ym=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Km="undefined"!=typeof document?document.domain&&Ym?Vm(Ym):(t=jm("iframe"),n="java"+Bm+":",t.style.display="none",Um.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write($m("document.F=Object")),e.close(),e.F):Vm(Ym);for(var r=Rm.length;r--;)delete Km[xm][Rm[r]];return Km()};_m[Zm]=!0;var Jm=Object.create||function(e,t){var n;return null!==e?(zm[xm]=Fm(e),n=new zm,zm[xm]=null,n[Zm]=e):n=Km(),void 0===t?n:Pm.f(n,t)},Gm=fu,Wm=Jm,qm=sc.f,Xm=Gm("unscopables"),Qm=Array.prototype;void 0===Qm[Xm]&&qm(Qm,Xm,{configurable:!0,value:Wm(null)});var ef=jd.includes,tf=function(e){Qm[Xm][e]=!0};(function(e,t){var n,r,o,i,a,s=e.target,c=e.global,u=e.stat;if(n=c?ym:u?ym[s]||vm(s,{}):(ym[s]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=Sm(n,r))&&a.value:n[r],!Mm(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;bm(i,o)}(e.sham||o&&o.sham)&&pm(i,"sham",!0),wm(n,r,i,e)}})({target:"Array",proto:!0,forced:gs((function(){return!Array(1).includes()}))},{includes:function(e){return ef(this,e,arguments.length>1?arguments[1]:void 0)}}),tf("includes");var nf={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["Shabbos"],"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"],"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"],"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"]}}};X.addLocale("ashkenazi",nf),X.addLocale("a",nf);var rf={headers:{"plural-forms":"nplurals=2; plural=(n > 1);"},contexts:{"":{Shabbat:["שַׁבָּת"],"Daf Yomi":["דַף יוֹמִי"],Parashat:["פָּרָשַׁת"],"Achrei Mot":["אַחֲרֵי מוֹת"],Balak:["בָּלָק"],Bamidbar:["בְּמִדְבַּר"],Bechukotai:["בְּחֻקֹּתַי"],"Beha'alotcha":["בְּהַעֲלֹתְךָ"],Behar:["בְּהַר"],Bereshit:["בְּרֵאשִׁית"],Beshalach:["בְּשַׁלַּח"],Bo:["בֹּא"],"Chayei Sara":["חַיֵּי שָֹרָה"],Chukat:["חֻקַּת"],Devarim:["דְּבָרִים"],Eikev:["עֵקֶב"],Emor:["אֱמוֹר"],"Ha'azinu":["הַאֲזִינוּ"],Kedoshim:["קְדשִׁים"],"Ki Tavo":["כִּי־תָבוֹא"],"Ki Teitzei":["כִּי־תֵצֵא"],"Ki Tisa":["כִּי תִשָּׂא"],Korach:["קוֹרַח"],"Lech-Lecha":["לֶךְ־לְךָ"],Masei:["מַסְעֵי"],Matot:["מַּטּוֹת"],Metzora:["מְּצֹרָע"],Miketz:["מִקֵּץ"],Mishpatim:["מִּשְׁפָּטִים"],Nasso:["נָשׂא"],Nitzavim:["נִצָּבִים"],Noach:["נֹחַ"],Pekudei:["פְקוּדֵי"],Pinchas:["פִּינְחָס"],"Re'eh":["רְאֵה"],"Sh'lach":["שְׁלַח־לְךָ"],Shemot:["שְׁמוֹת"],Shmini:["שְּׁמִינִי"],Shoftim:["שׁוֹפְטִים"],Tazria:["תַזְרִיעַ"],Terumah:["תְּרוּמָה"],Tetzaveh:["תְּצַוֶּה"],Toldot:["תּוֹלְדוֹת"],Tzav:["צַו"],Vaera:["וָאֵרָא"],Vaetchanan:["וָאֶתְחַנַּן"],Vayakhel:["וַיַּקְהֵל"],Vayechi:["וַיְחִי"],Vayeilech:["וַיֵּלֶךְ"],Vayera:["וַיֵּרָא"],Vayeshev:["וַיֵּשֶׁב"],Vayetzei:["וַיֵּצֵא"],Vayigash:["וַיִּגַּשׁ"],Vayikra:["וַיִּקְרָא"],Vayishlach:["וַיִּשְׁלַח"],"Vezot Haberakhah":["וְזֹאת הַבְּרָכָה"],Yitro:["יִתְרוֹ"],"Asara B'Tevet":["עֲשָׂרָה בְּטֵבֵת"],"Candle lighting":["הַדְלָקַת נֵרוֹת"],Chanukah:["חֲנוּכָּה"],"Chanukah: 1 Candle":["חֲנוּכָּה: א׳ נֵר"],"Chanukah: 2 Candles":["חֲנוּכָּה: ב׳ נֵרוֹת"],"Chanukah: 3 Candles":["חֲנוּכָּה: ג׳ נֵרוֹת"],"Chanukah: 4 Candles":["חֲנוּכָּה: ד׳ נֵרוֹת"],"Chanukah: 5 Candles":["חֲנוּכָּה: ה׳ נֵרוֹת"],"Chanukah: 6 Candles":["חֲנוּכָּה: ו׳ נֵרוֹת"],"Chanukah: 7 Candles":["חֲנוּכָּה: ז׳ נֵרוֹת"],"Chanukah: 8 Candles":["חֲנוּכָּה: ח׳ נֵרוֹת"],"Chanukah: 8th Day":["חֲנוּכָּה: יוֹם ח׳"],"Days of the Omer":["סְפִירַת הָעוֹמֶר"],Omer:["עוֹמֶר"],"day of the Omer":["בָּעוֹמֶר"],"Erev Pesach":["עֶרֶב פֶּסַח"],"Erev Purim":["עֶרֶב פּוּרִים"],"Erev Rosh Hashana":["עֶרֶב רֹאשׁ הַשָּׁנָה"],"Erev Shavuot":["עֶרֶב שָׁבוּעוֹת"],"Erev Simchat Torah":["עֶרֶב שִׂמְחַת תּוֹרָה"],"Erev Sukkot":["עֶרֶב סוּכּוֹת"],"Erev Tish'a B'Av":["עֶרֶב תִּשְׁעָה בְּאָב"],"Erev Yom Kippur":["עֶרֶב יוֹם כִּפּוּר"],Havdalah:["הַבְדָּלָה"],"Lag BaOmer":["ל״ג בָּעוֹמֶר"],"Leil Selichot":["סליחות"],Pesach:["פֶּסַח"],"Pesach I":["פֶּסַח א׳"],"Pesach II":["פֶּסַח ב׳"],"Pesach II (CH''M)":["פֶּסַח ב׳ (חוה״מ)"],"Pesach III (CH''M)":["פֶּסַח ג׳ (חוה״מ)"],"Pesach IV (CH''M)":["פֶּסַח ד׳ (חוה״מ)"],"Pesach Sheni":["פֶּסַח שני"],"Pesach V (CH''M)":["פֶּסַח ה׳ (חוה״מ)"],"Pesach VI (CH''M)":["פֶּסַח ו׳ (חוה״מ)"],"Pesach VII":["פֶּסַח ז׳"],"Pesach VIII":["פֶּסַח ח׳"],Purim:["פּוּרִים"],"Purim Katan":["פּוּרִים קָטָן"],"Rosh Chodesh %s":["רֹאשׁ חוֹדֶשׁ %s"],"Rosh Chodesh":["רֹאשׁ חוֹדֶשׁ"],Adar:["אַדָר"],"Adar I":["אַדָר א׳"],"Adar II":["אַדָר ב׳"],Av:["אָב"],Cheshvan:["חֶשְׁוָן"],Elul:["אֱלוּל"],Iyyar:["אִיָיר"],Kislev:["כִּסְלֵו"],Nisan:["נִיסָן"],"Sh'vat":["שְׁבָט"],Sivan:["סִיוָן"],Tamuz:["תַּמּוּז"],Tevet:["טֵבֵת"],Tishrei:["תִּשְׁרֵי"],"Rosh Hashana":["רֹאשׁ הַשָּׁנָה"],"Rosh Hashana I":["רֹאשׁ הַשָּׁנָה א׳"],"Rosh Hashana II":["רֹאשׁ הַשָּׁנָה ב׳"],"Shabbat Chazon":["שַׁבָּת חֲזוֹן"],"Shabbat HaChodesh":["שַׁבָּת הַחֹדֶשׁ"],"Shabbat HaGadol":["שַׁבָּת הַגָּדוֹל"],"Shabbat Machar Chodesh":["שַׁבָּת מָחָר חוֹדֶשׁ"],"Shabbat Nachamu":["שַׁבָּת נַחֲמוּ"],"Shabbat Parah":["שַׁבָּת פּרה"],"Shabbat Rosh Chodesh":["שַׁבָּת רֹאשׁ חוֹדֶשׁ"],"Shabbat Shekalim":["שַׁבָּת שְׁקָלִים"],"Shabbat Shuva":["שַׁבָּת שׁוּבָה"],"Shabbat Zachor":["שַׁבָּת זָכוֹר"],Shavuot:["שָׁבוּעוֹת"],"Shavuot I":["שָׁבוּעוֹת א׳"],"Shavuot II":["שָׁבוּעוֹת ב׳"],"Shmini Atzeret":["שְׁמִינִי עֲצֶרֶת"],"Shushan Purim":["שׁוּשָׁן פּוּרִים"],Sigd:["סיגד"],"Simchat Torah":["שִׂמְחַת תּוֹרָה"],Sukkot:["סוּכּוֹת"],"Sukkot I":["סוּכּוֹת א׳"],"Sukkot II":["סוּכּוֹת ב׳"],"Sukkot II (CH''M)":["סוּכּוֹת ב׳ (חוה״מ)"],"Sukkot III (CH''M)":["סוּכּוֹת ג׳ (חוה״מ)"],"Sukkot IV (CH''M)":["סוּכּוֹת ד׳ (חוה״מ)"],"Sukkot V (CH''M)":["סוּכּוֹת ה׳ (חוה״מ)"],"Sukkot VI (CH''M)":["סוּכּוֹת ו׳ (חוה״מ)"],"Sukkot VII (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Ta'anit Bechorot":["תַּעֲנִית בְּכוֹרוֹת"],"Ta'anit Esther":["תַּעֲנִית אֶסְתֵּר"],"Tish'a B'Av":["תִּשְׁעָה בְּאָב"],"Tu B'Av":["טוּ בְּאָב"],"Tu BiShvat":["טוּ בִּשְׁבָט"],"Tu B'Shvat":["טוּ בִּשְׁבָט"],"Tzom Gedaliah":["צוֹם גְּדַלְיָה"],"Tzom Tammuz":["צוֹם תָּמוּז"],"Yom HaAtzma'ut":["יוֹם הָעַצְמָאוּת"],"Yom HaShoah":["יוֹם הַשּׁוֹאָה"],"Yom HaZikaron":["יוֹם הַזִּכָּרוֹן"],"Yom Kippur":["יוֹם כִּפּוּר"],"Yom Yerushalayim":["יוֹם יְרוּשָׁלַיִם"],"Yom HaAliyah":["יוֹם הַעֲלִיָּה"],"Yom HaAliyah School Observance":["שְׁמִירָת בֵּית הַסֵפֶר לְיוֹם הַעֲלִיָּה"],"Pesach I (on Shabbat)":["פֶּסַח יוֹם א׳ (בְּשַׁבָּת)"],"Pesach Chol ha-Moed Day 1":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם א׳"],"Pesach Chol ha-Moed Day 2":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ב׳"],"Pesach Chol ha-Moed Day 3":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ג׳"],"Pesach Chol ha-Moed Day 4":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ד׳"],"Pesach Chol ha-Moed Day 5":["פֶּסַח חוֹל הַמּוֹעֵד יוֹם ה׳"],"Pesach Shabbat Chol ha-Moed":["פֶּסַח שַׁבָּת חוֹל הַמּוֹעֵד"],"Shavuot II (on Shabbat)":["שָׁבוּעוֹת יוֹם ב׳ (בְּשַׁבָּת)"],"Rosh Hashana I (on Shabbat)":["רֹאשׁ הַשָּׁנָה יוֹם א׳ (בְּשַׁבָּת)"],"Yom Kippur (on Shabbat)":["יוֹם כִּפּוּר (בְּשַׁבָּת)"],"Yom Kippur (Mincha, Traditional)":["יוֹם כִּפּוּר מִנחָה"],"Yom Kippur (Mincha, Alternate)":["יוֹם כִּפּוּר מִנחָה"],"Sukkot I (on Shabbat)":["סוּכּוֹת יוֹם א׳ (בְּשַׁבָּת)"],"Sukkot Chol ha-Moed Day 1":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם א׳"],"Sukkot Chol ha-Moed Day 2":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ב׳"],"Sukkot Chol ha-Moed Day 3":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ג׳"],"Sukkot Chol ha-Moed Day 4":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ד׳"],"Sukkot Chol ha-Moed Day 5":["סוּכּוֹת חוֹל הַמּוֹעֵד יוֹם ה׳"],"Sukkot Shabbat Chol ha-Moed":["סוּכּוֹת שַׁבָּת חוֹל הַמּוֹעֵד"],"Sukkot Final Day (Hoshana Raba)":["סוּכּוֹת ז׳ (הוֹשַׁעְנָא רַבָּה)"],"Rosh Chodesh Adar":["רֹאשׁ חוֹדֶשׁ אַדָר"],"Rosh Chodesh Adar I":["רֹאשׁ חוֹדֶשׁ אַדָר א׳"],"Rosh Chodesh Adar II":["רֹאשׁ חוֹדֶשׁ אַדָר ב׳"],"Rosh Chodesh Av":["רֹאשׁ חוֹדֶשׁ אָב"],"Rosh Chodesh Cheshvan":["רֹאשׁ חוֹדֶשׁ חֶשְׁוָן"],"Rosh Chodesh Elul":["רֹאשׁ חוֹדֶשׁ אֱלוּל"],"Rosh Chodesh Iyyar":["רֹאשׁ חוֹדֶשׁ אִיָיר"],"Rosh Chodesh Kislev":["רֹאשׁ חוֹדֶשׁ כִּסְלֵו"],"Rosh Chodesh Nisan":["רֹאשׁ חוֹדֶשׁ נִיסָן"],"Rosh Chodesh Sh'vat":["רֹאשׁ חוֹדֶשׁ שְׁבָט"],"Rosh Chodesh Sivan":["רֹאשׁ חוֹדֶשׁ סִיוָן"],"Rosh Chodesh Tamuz":["רֹאשׁ חוֹדֶשׁ תָּמוּז"],"Rosh Chodesh Tevet":["רֹאשׁ חוֹדֶשׁ טֵבֵת"],min:["דַּקּוֹת"],"Fast begins":["תחילת הַצוֹם"],"Fast ends":["סִיּוּם הַצוֹם"],"Rosh Hashana LaBehemot":["רֹאשׁ הַשָּׁנָה לְמַעְשַׂר בְּהֵמָה"],"Tish'a B'Av (observed)":["תִּשְׁעָה בְּאָב נִדחֶה"],"Shabbat Mevarchim Chodesh":["שַׁבָּת מְבָרְכִים חוֹדֶשׁ"],"Shabbat Shirah":["שַׁבָּת שִׁירָה"],"Chatzot HaLailah":["חֲצוֹת הַלַיְלָה"],"Alot haShachar":["עֲלוֹת הַשַּׁחַר"],Misheyakir:["מִשֶּׁיַּכִּיר"],"Misheyakir Machmir":["מִשֶּׁיַּכִּיר מַחמִיר"],Dawn:["דִּימְדּוּמֵי בּוֹקֵר"],Sunrise:["הַנֵץ הַחַמָּה"],"Kriat Shema, sof zeman":["סוֹף זְמַן קְרִיאַת שְׁמַע גר״א"],"Tefilah, sof zeman":["סוֹף זְמַן תְּפִלָּה גר״א"],"Kriat Shema, sof zeman (MGA)":["סוֹף זְמַן קְרִיאַת שְׁמַע מג״א"],"Tefilah, sof zeman (MGA)":["סוֹף זְמַן תְּפִלָּה מג״א"],"Chatzot hayom":["חֲצוֹת הַיּוֹם"],"Mincha Gedolah":["מִנְחָה גְּדוֹלָה"],"Mincha Ketanah":["מִנְחָה קְטַנָּה"],"Plag HaMincha":["פְּלַג הַמִּנְחָה"],Dusk:["דִּימְדּוּמֵי עֶרֶב"],Sunset:["שְׁקִיעָה"],"Nightfall - End of ordained fasts":["לַיְלָה - גמר תעניות דרבנן"],"Tzeit HaKochavim":["צֵאת הַכּוֹכָבִים"],Lovingkindness:["חֶֽסֶד"],Might:["גְבוּרָה"],Beauty:["תִּפאֶרֶת"],Eternity:["נֶּֽצַח"],Splendor:["הוֹד"],Foundation:["יְּסוֹד"],Majesty:["מַּלְכוּת"],day:["יוֹם"],"Chanukah Day 1":["חֲנוּכָּה יוֹם א׳"],"Chanukah Day 2":["חֲנוּכָּה יוֹם ב׳"],"Chanukah Day 3":["חֲנוּכָּה יוֹם ג׳"],"Chanukah Day 4":["חֲנוּכָּה יוֹם ד׳"],"Chanukah Day 5":["חֲנוּכָּה יוֹם ה׳"],"Chanukah Day 6":["חֲנוּכָּה יוֹם ו׳"],"Chanukah Day 7":["חֲנוּכָּה יוֹם ז׳"],"Chanukah Day 7 (on Rosh Chodesh)":["חֲנוּכָּה יוֹם ז׳ (רֹאשׁ חוֹדֶשׁ)"],"Chanukah Day 8":["חֲנוּכָּה יוֹם ח׳"],"Chanukah Day 1 (on Shabbat)":["חֲנוּכָּה יוֹם א׳ (בְּשַׁבָּת)"],"Chanukah Day 2 (on Shabbat)":["חֲנוּכָּה יוֹם ב׳ (בְּשַׁבָּת)"],"Chanukah Day 3 (on Shabbat)":["חֲנוּכָּה יוֹם ג׳ (בְּשַׁבָּת)"],"Chanukah Day 4 (on Shabbat)":["חֲנוּכָּה יוֹם ד׳ (בְּשַׁבָּת)"],"Chanukah Day 5 (on Shabbat)":["חֲנוּכָּה יוֹם ה׳ (בְּשַׁבָּת)"],"Chanukah Day 7 (on Shabbat)":["חֲנוּכָּה יוֹם ז׳ (בְּשַׁבָּת)"],"Chanukah Day 8 (on Shabbat)":["חֲנוּכָּה יוֹם ח׳ (בְּשַׁבָּת)"],"Shabbat Rosh Chodesh Chanukah":["שַׁבָּת רֹאשׁ חוֹדֶשׁ חֲנוּכָּה"],"Yom Kippur Katan":["יוֹם כִּפּוּר קָטָן"],"Family Day":["יוֹם הַמִּשׁפָּחָה"],"Yitzhak Rabin Memorial Day":["יוֹם הַזִּכָּרוֹן ליצחק רבין"],"Jabotinsky Day":["יוֹם ז׳בוטינסקי"],"Herzl Day":["יוֹם הרצל"],"Ben-Gurion Day":["יוֹם בן־גוריון"],"Birkat Hachamah":["בִרְכַּת הַחַמָּה"],"Shushan Purim Katan":["שׁוּשָׁן פּוּרִים קָטָן"],"Purim Meshulash":["פּוּרִים מְשׁוּלָּשׁ"],"after sunset":["אחרי השקיעה"],Yerushalmi:["יְרוּשַׁלְמִי"],"Chag HaBanot":["חַג הַבָּנוֹת"],Joshua:["יְהוֹשׁוּעַ"],Judges:["שׁוֹפְטִים"],"I Samuel":["שְׁמוּאֵל רִאשׁוֹן"],"II Samuel":["שְׁמוּאֵל שֵׁנִי"],"I Kings":["מְלָכִים רִאשׁוֹן"],"II Kings":["מְלָכִים שֵׁנִי"],Isaiah:["יְשַׁעְיָהוּ"],Jeremiah:["יִרְמְיָהוּ"],Ezekiel:["יְחֶזְקֵאל"],Hosea:["הוֹשֵׁעַ"],Joel:["יוֹאֵל"],Amos:["עָמוּס"],Obadiah:["עוֹבַדְיָה"],Jonah:["יוֹנָה"],Micah:["מִיכָה"],Nachum:["נַחוּם"],Habakkuk:["חֲבַקּוּק"],Zephaniah:["צְפַנְיָה"],Haggai:["חַגַּי"],Zechariah:["זְכַרְיָה"],Malachi:["מַלְאָכִי"],Psalms:["תְּהִלִּים"],Proverbs:["מִשְׁלֵי"],Job:["אִיּוֹב"],"Song of Songs":["שִׁיר הַשִּׁירִים"],Ruth:["רוּת"],Lamentations:["אֵיכָה"],Ecclesiastes:["קֹהֶלֶת"],Esther:["אֶסְתֵּר"],Daniel:["דָּנִיֵּאל"],Ezra:["עֶזְרָא"],Nehemiah:["נְחֶמְיָה"],"I Chronicles":["דִברֵי הַיָמִים רִאשׁוֹן"],"II Chronicles":["דִברֵי הַיָמִים שֵׁנִי"],"Yom Kippur (Mincha)":["יוֹם כִּפּוּר מִנחָה"],"Tish'a B'Av (Mincha)":["תִּשְׁעָה בְּאָב מִנחָה"],"Asara B'Tevet (Mincha)":["עֲשָׂרָה בְּטֵבֵת מִנחָה"],"Ta'anit Bechorot (Mincha)":["תַּעֲנִית בְּכוֹרוֹת מִנחָה"],"Ta'anit Esther (Mincha)":["תַּעֲנִית אֶסְתֵּר מִנחָה"],"Tzom Gedaliah (Mincha)":["צוֹם גְּדַלְיָה מִנחָה"],"Tzom Tammuz (Mincha)":["צוֹם תָּמוּז מִנחָה"],Molad:["מוֹלָד הָלְּבָנָה"],chalakim:["חֲלָקִים"]}}};X.addLocale("he",rf),X.addLocale("h",rf);const of=rf.contexts[""],af={};for(const[e,t]of Object.entries(of))af[e]=[X.hebrewStripNikkud(t[0])];const sf={headers:rf.headers,contexts:{"":af}};function cf(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}X.addLocale("he-x-NoNikud",sf);const uf={shacharit:!1,mincha:!1,allCongs:!1};function hf(e,t){return lf(e,t,!0)}function lf(e,t,n){const r=function(e,t){const n=ae.isLeapYear(e),r=12+n;let o=new ae(9,g.AV,e);6===o.getDay()&&(o=o.next());let i=new ae(15,g.ADAR_II,e);6===i.getDay()&&(i=i.next());const a=[].concat(cf(1,r).map((t=>new ae(1,t,e))),cf(1,r).filter((t=>30===ae.daysInMonth(t,e))).map((t=>new ae(30,t,e))),new ae(2,g.TISHREI,e),cf(1,ae.daysInMonth(g.NISAN,e)).map((t=>new ae(t,g.NISAN,e))),new ae(18,g.IYYAR,e),cf(1,8-(t?1:0)).map((t=>new ae(t,g.SIVAN,e))),o,new ae(15,g.AV,e),new ae(29,g.ELUL,e),cf(9,24-(t?1:0)).map((t=>new ae(t,g.TISHREI,e))),cf(25,33).map((t=>new ae(t,g.KISLEV,e))),new ae(15,g.SHVAT,e),new ae(14,g.ADAR_II,e),i,n?new ae(14,g.ADAR_I,e):[]),s=[].concat(cf(1,13).map((t=>new ae(t,g.SIVAN,e))),cf(20,31).map((t=>new ae(t,g.TISHREI,e))),new ae(14,g.IYYAR,e),e>=5708?xh(e).next():[],e>=5727?new ae(28,g.IYYAR,e):[]),c=[].concat(new ae(29,g.ELUL,e-1),new ae(9,g.TISHREI,e),new ae(14,g.IYYAR,e));return{none:a.map((e=>e.abs())).sort(((e,t)=>e-t)),some:s.map((e=>e.abs())).sort(((e,t)=>e-t)),yesPrev:c.map((e=>e.abs())).sort(((e,t)=>e-t))}}(e.getFullYear(),t),o=e.abs();if(r.none.indexOf(o)>-1)return uf;const i=e.getDay(),a={shacharit:!1,mincha:!1,allCongs:!1};-1===r.some.indexOf(o)&&(a.allCongs=!0),6!==i&&(a.shacharit=!0);const s=o+1;if(n&&-1===r.yesPrev.indexOf(s)){const e=lf(new ae(s),t,!1);a.mincha=e.shacharit}else a.mincha=5!==i;return!a.allCongs||a.mincha||a.shacharit?a:uf}const df=g.NISAN,mf=g.SIVAN,ff=g.ELUL,gf=g.TISHREI,yf=he.LIGHT_CANDLES,Sf=he.YOM_TOV_ENDS,pf=he.CHUL_ONLY,wf=he.IL_ONLY,vf=he.LIGHT_CANDLES_TZEIS,bf=he.CHANUKAH_CANDLES,Mf=he.MINOR_FAST,If=he.SPECIAL_SHABBAT,Tf=he.MODERN_HOLIDAY,Af=he.MAJOR_FAST,Ef=he.ROSH_CHODESH,Df=he.PARSHA_HASHAVUA,Cf=he.DAF_YOMI,Nf=he.MISHNA_YOMI,Of=he.NACH_YOMI,kf=he.YERUSHALMI_YOMI,Hf=he.OMER_COUNT,Yf=he.SHABBAT_MEVARCHIM,Lf=he.MINOR_HOLIDAY,Ff=he.EREV,Pf=he.CHOL_HAMOED,Rf=he.YOM_KIPPUR_KATAN,_f=new Set,Uf={location:1,year:1,isHebrewYear:1,month:1,numYears:1,start:1,end:1,candlelighting:1,candleLightingMins:1,havdalahMins:1,havdalahDeg:1,fastEndDeg:1,sedrot:1,il:1,noMinorFast:1,noModern:1,shabbatMevarchim:1,noRoshChodesh:1,noSpecialShabbat:1,noHolidays:1,omer:1,molad:1,ashkenazi:1,locale:1,addHebrewDates:1,addHebrewDatesForEvents:1,appendHebrewToSubject:1,mask:1,userMask:1,yomKippurKatan:1,hour12:1,dailyLearning:1,useElevation:1};const jf={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},xf={281184:40,294801:30,293067:30};function Bf(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(ae.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function Zf(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&Ef&&delete e.noRoshChodesh;t&Tf&&delete e.noModern;t&Mf&&delete e.noMinorFast;t&If&&delete e.noSpecialShabbat;t&Df&&(e.sedrot=!0);t&(Cf|Nf|Of|kf)&&(e.dailyLearning=e.dailyLearning||{},t&Cf&&(e.dailyLearning.dafYomi=!0),t&Nf&&(e.dailyLearning.mishnaYomi=!0),t&Of&&(e.dailyLearning.nachYomi=!0),t&kf&&(e.dailyLearning.yerushalmi=1));t&Hf&&(e.omer=!0);t&Yf&&(e.shabbatMevarchim=!0);t&Rf&&(e.yomKippurKatan=!0);return e.userMask=!0,t}(e);const n=e.il||(null===(t=e.location)||void 0===t?void 0:t.il)||!1;let r=0;if(e.noHolidays||(r|=Ef|Sf|Mf|If|Tf|Af|Lf|Ff|Pf|yf|vf|bf),e.candlelighting&&(r|=yf|vf|Sf),e.noRoshChodesh&&(r&=~Ef),e.noModern&&(r&=~Tf),e.noMinorFast&&(r&=~Mf),e.noSpecialShabbat&&(r&=~If,r&=~Yf),r|=n?wf:pf,e.sedrot&&(r|=Df),e.omer&&(r|=Hf),e.shabbatMevarchim&&(r|=Yf),e.yomKippurKatan&&(r|=Rf),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=Cf),t.mishnaYomi&&(r|=Nf),t.nachYomi&&(r|=Of),t.yerushalmi&&(r|=kf)}return r}const zf=yf|vf|bf|Sf,$f=new da(0,0,!1,"UTC"),Vf={US:1,CA:1,BR:1,AU:1,NZ:1,DO:1,PR:1,GR:1,IN:1,KR:1,NP:1,ZA:1};function Kf(e){return e.observedInIsrael()}function Jf(e){return e.observedInDiaspora()}class Gf{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign({},t),function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof da))throw new TypeError("options.candlelighting requires valid options.location");if("number"==typeof e.havdalahMins&&"number"==typeof e.havdalahDeg)throw new TypeError("options.havdalahMins and options.havdalahDeg are mutually exclusive");let n=parseInt(e.candleLightingMins,10)||18;if(t.getIsrael()&&18===Math.abs(n)){const e=t.getGeoId(),r=xf[e];"number"==typeof r&&(n=r);const o=jf[t.getShortName()];"number"==typeof o&&(n=o)}e.candleLightingMins=-1*Math.abs(n),"number"==typeof e.havdalahMins?e.havdalahMins=Math.abs(e.havdalahMins):"number"==typeof e.havdalahDeg?e.havdalahDeg=Math.abs(e.havdalahDeg):e.havdalahDeg=8.5,"number"!=typeof e.fastEndDeg&&(e.fastEndDeg=7.0833333)}(t);const n=t.location=t.location||$f,r=t.il=t.il||n.il||!1;if(t.mask=Zf(t),t.ashkenazi||t.locale){if(t.locale&&"string"!=typeof t.locale)throw new TypeError(`Invalid options.locale: ${t.locale}`);const e=t.ashkenazi?"ashkenazi":t.locale;if(!X.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else X.useLocale("en");const o=[];let i,a,s,c,u=-1;const h=function(t){if(t.start&&!t.end||t.end&&!t.start)throw new TypeError("Both options.start and options.end are required");if(t.start&&t.end)return[Bf(t.start),Bf(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new ae).getFullYear():(new Date).getFullYear();if(isNaN(r))throw new RangeError(`Invalid year ${t.year}`);if(n&&r<1)throw new RangeError(`Invalid Hebrew year ${r}`);let o=NaN;t.month&&(o=n?ae.monthNum(t.month):t.month);const i=parseInt(t.numYears,10)||1;if(n){const e=new ae(1,o||gf,r);let n=e.abs();const a=t.month?n+e.daysInMonth():new ae(1,gf,r+i).abs()-1;return!o&&r>1&&n--,[n,a]}{const n=t.month?o-1:0,a=new Date(r,n,1);r<100&&a.setFullYear(r);const s=e.greg.greg2abs(a);let c;if(t.month)c=s+e.greg.daysInMonth(o,r)-1;else{const t=r+i,n=new Date(t,0,1);t<100&&n.setFullYear(t),c=e.greg.greg2abs(n)-1}return[s,c]}}(t);!function(e){for(const t of Object.keys(e))void 0!==Uf[t]||_f.has(t)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${t}`),_f.add(t))}(t);const l=h[0],d=h[1];e.greg.abs2greg(l).getFullYear()<100&&(t.candlelighting=!1);for(let e=l;e<=d;e++){const h=new ae(e),l=h.getFullYear();l!=u&&(u=l,a=$l(u),t.sedrot&&(i=hs(u,r)),t.omer&&(s=ae.hebrew2abs(u,df,16),c=ae.hebrew2abs(u,mf,5)));const d=o.length,m=h.getDay();let f;const g=a.get(h.toString())||[];for(const e of g)f=Wf(o,e,t,f,m);if(t.sedrot&&6===m){const t=i.lookup(e);t.chag||o.push(new ls(h,t.parsha,r,t.num))}const y=t.dailyLearning;if("object"==typeof y)for(const[e,t]of Object.entries(y))if(t){const n="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,r=Kl.lookup(n,h);r&&o.push(r)}if(t.omer&&e>=s&&e<=c){const r=new La(h,e-s+1);if(t.candlelighting){const e=new wa(n,h.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}o.push(r)}const S=h.getMonth();if(t.molad&&6==m&&S!=ff&&h.getDate()>=23&&h.getDate()<=29){const e=S==ae.monthsInYear(l)?df:S+1;o.push(new ka(h,l,e))}if(f||!t.candlelighting||5!=m&&6!=m||(f=Ma(void 0,h,m,n,t),5===m&&f&&i&&(f.memo=i.getString(e))),f instanceof Ta&&(0===t.havdalahMins||0===t.havdalahDeg)&&(f=null),f&&o.push(f),t.addHebrewDates||t.addHebrewDatesForEvents&&d!=o.length){const e=new me(h);d==o.length?o.push(e):o.splice(d,0,e)}}return o}static getBirthdayOrAnniversary(e,t){const n=function(e,t){const n=j(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=A(r);let i=n.mm,a=n.dd;return i==_&&!o||i==U&&o?i=E(e):i!=L||30!=a||k(e)?i==F&&30==a&&H(e)?(i=P,a=1):i==_&&30==a&&o&&!A(e)&&(i=Y,a=1):(i=F,a=1),{yy:e,mm:i,dd:a}}(e,t);return void 0===n?n:new ae(n)}static getYahrzeit(e,t){const n=function(e,t){let n=j(t);if(!(e<=n.yy))return n.mm!=L||30!=n.dd||k(n.yy+1)?n.mm==F&&30==n.dd&&H(n.yy+1)?n=T(M(e,P,1)-1):n.mm==U?n.mm=E(e):n.mm!=_||30!=n.dd||A(e)||(n.dd=30,n.mm=R):n=T(M(e,F,1)-1),n.mm!=L||30!=n.dd||k(e)?n.mm==F&&30==n.dd&&H(e)&&(n.mm=P,n.dd=1):(n.mm=F,n.dd=1),n.yy=e,n}(e,t);return void 0===n?n:new ae(n)}static getHolidaysForYear(e){return $l(e)}static getHolidaysForYearArray(e,t){const n=$l(e),r=ae.hebrew2abs(e,gf,1),o=ae.hebrew2abs(e+1,gf,1)-1;let i=[];const a=t?Kf:Jf;for(let e=r;e<=o;e++){const t=new ae(e),r=n.get(t.toString());if(r){const e=r.filter(a);i=i.concat(e)}}return i}static getHolidaysOnDate(e,t){const n=ae.isHDate(e)?e:new ae(e),r=n.toString(),o=$l(n.getFullYear()).get(r);if(void 0===t||void 0===o)return o;const i=t?Kf:Jf;return o.filter(i)}static reformatTimeStr(e,t,n){var r;if("string"!=typeof e)throw new TypeError(`Bad timeStr: ${e}`);const o=(null===(r=n.location)||void 0===r?void 0:r.cc)||(n.il?"IL":"US");if(void 0!==n.hour12&&!n.hour12)return e;if(!n.hour12&&void 0===Vf[o])return e;const i=e.split(":");let a=parseInt(i[0],10);return a<12&&t?(t=t.replace("p","a").replace("P","A"),0===a&&(a=12)):a>12?a%=12:0===a&&(a="00"),`${a}:${i[1]}${t}`}static version(){return Jl}static getSedra(e,t){return hs(e,t)}static hallel(e,t){return function(e,t){const n=e.filter((e=>{const t=e.getDesc(),n=e.getDate(),r=n.getMonth(),o=n.getDate();return t.startsWith("Chanukah")||t.startsWith("Shavuot")||t.startsWith("Sukkot")||r===g.NISAN&&(15===o||16===o)&&e.getFlags()&he.CHAG||"Yom HaAtzma'ut"===t||"Yom Yerushalayim"===t})).map((e=>e.getDate().abs())),r=t.abs();return n.includes(r)?2:e.filter((e=>{const t=e.getDesc();return e.getFlags()&he.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(Gf.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return hf(e,t)}}function Wf(e,t,n,r,o){const i=n.il;if(!t.observedIn(i))return r;const a=t.getFlags();if(!n.yomKippurKatan&&a&Rf||n.noModern&&a&Tf)return r;const s=n.location,c=Boolean(a&Af),u=Boolean(a&Mf);if(n.candlelighting&&(c||u)&&(t=function(e,t){const n=e.getDesc();if("Yom Kippur"===n)return e;const r=(e=e.clone()).getDate(),o=r.greg(),i=t.location,a=t.fastEndDeg,s=new wa(i,o,t.useElevation);if("Erev Tish'a B'Av"===n){const t=s.sunset();e.startEvent=Ea(r,t,"Fast begins",e,i)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=Ea(r,s.tzeit(a),"Fast ends",e,i);else{const t=s.alotHaShachar();e.startEvent=Ea(r,t,"Fast begins",e,i),5===o.getDay()||14===r.getDate()&&r.getMonth()===g.NISAN||(e.endEvent=Ea(r,s.tzeit(a),"Fast ends",e,i))}return e}(t,n),t.startEvent&&(c||u&&!n.noMinorFast)&&e.push(t.startEvent)),a&n.mask||!a&&!n.userMask){if(n.candlelighting&&a&zf){const e=t.getDate();if(r=Ma(t,e,o,s,n),a&bf&&r&&!n.noHolidays){const i=5===o||6===o?r:function(e,t,n){const r=n.location,o=new wa(r,t.greg(),n.useElevation);return Ea(t,o.dusk(),e.getDesc(),e,r)}(t,e,n),c={eventTime:i.eventTime,eventTimeStr:i.eventTimeStr,location:s};t.chanukahDay&&(c.chanukahDay=t.chanukahDay),t.emoji&&(c.emoji=t.emoji),t=new Tl(t.getDate(),t.getDesc(),a,c),r=void 0}}(!n.noHolidays||n.yomKippurKatan&&a&Rf)&&e.push(t)}return t.endEvent&&(c||u&&!n.noMinorFast)&&e.push(t.endEvent),r}return e.AsaraBTevetEvent=Dl,e.CandleLightingEvent=Aa,e.DailyLearning=Kl,e.Event=de,e.GeoLocation=ia,e.HDate=ae,e.HavdalahEvent=Ta,e.HebrewCalendar=Gf,e.HebrewDateEvent=me,e.HolidayEvent=Tl,e.Locale=X,e.Location=da,e.MevarchimChodeshEvent=Nl,e.Molad=Oa,e.MoladEvent=ka,e.NOAACalculator=sa,e.OmerEvent=La,e.ParshaEvent=ls,e.RoshChodeshEvent=El,e.RoshHashanaEvent=Ol,e.Sedra=$a,e.TimedEvent=Ia,e.Zmanim=wa,e.flags=he,e.gematriya=$,e.gematriyaStrToNum=V,e.months=g,e.parshiot=Va,e.version=Jl,e}({});
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.0.
|
|
1
|
+
/*! @hebcal/core v5.0.6 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
/** @private */
|
|
@@ -6164,7 +6164,7 @@ class DailyLearning {
|
|
|
6164
6164
|
}
|
|
6165
6165
|
|
|
6166
6166
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
6167
|
-
const version = '5.0.
|
|
6167
|
+
const version = '5.0.6';
|
|
6168
6168
|
|
|
6169
6169
|
const NONE$1 = 0;
|
|
6170
6170
|
const HALF = 1;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.0.
|
|
1
|
+
/*! @hebcal/core v5.0.6 */
|
|
2
2
|
/** @private */
|
|
3
3
|
const lengths = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
4
4
|
/** @private */
|
|
@@ -6162,7 +6162,7 @@ class DailyLearning {
|
|
|
6162
6162
|
}
|
|
6163
6163
|
|
|
6164
6164
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
6165
|
-
const version = '5.0.
|
|
6165
|
+
const version = '5.0.6';
|
|
6166
6166
|
|
|
6167
6167
|
const NONE$1 = 0;
|
|
6168
6168
|
const HALF = 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/core",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Eyal Schachter (https://github.com/Scimonster)",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"type": "module",
|
|
27
27
|
"exports": {
|
|
28
28
|
"import": "./dist/index.mjs",
|
|
29
|
-
"require": "./dist/index.cjs"
|
|
29
|
+
"require": "./dist/index.cjs",
|
|
30
|
+
"types": "./hebcal.d.ts"
|
|
30
31
|
},
|
|
31
32
|
"typings": "hebcal.d.ts",
|
|
32
33
|
"engines": {
|