@hebcal/core 5.0.0-rc1 → 5.0.0-rc2

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.
@@ -1,2 +1,2 @@
1
- /*! @hebcal/core v5.0.0-rc1 */
2
- var hebcal=function(e){"use strict";const t={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},n=new Map;function r(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 o(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let o="";const i=Math.floor(t/1e3);if(i>0&&5!==i){const e=r(i);for(const t of e)o+=n.get(t);o+="׳"}const a=r(t%1e3);if(1==a.length)return o+n.get(a[0])+"׳";for(let e=0;e<a.length;e++)e+1===a.length&&(o+="״"),o+=n.get(a[e]);return o}function i(e){let n=0;const r=e.indexOf("׳");if(-1!==r&&r!==e.length-1){n+=1e3*i(e.substring(0,r)),e=e.substring(r)}for(const r of e){const e=t[r];"number"==typeof e&&(n+=e)}return n}Object.keys(t).forEach((e=>{const r=t[e];n.set(r,e)}));const a={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},s={h:"he",a:"ashkenazi",s:"en","":"en"},u=new Map;let c=null,h=null;class l{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&u.get(n)||c)[e];if(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`);u.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=u.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=u.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.keys(o).forEach((e=>{r[e]=o[e]}))}static useLocale(e){const t=e.toLowerCase(),n=u.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return h=s[t]||t,c=n,c}static getLocaleName(){return h}static getLocaleNames(){return Array.from(u.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||h;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,"")}}l.addLocale("en",a),l.addLocale("s",a),l.addLocale("",a),l.useLocale("en");const d=[0,31,28,31,30,31,30,31,31,30,31,30,31],m=[d,d.slice()];function f(e,t){return e-t*Math.floor(e/t)}function g(e,t){return Math.floor(e/t)}var y;m[1][2]=29,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function n(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function r(e,n,r){const o=e-1;return 365*o+g(o,4)-g(o,100)+g(o,400)+g(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.monthNames=["","January","February","March","April","May","June","July","August","September","October","November","December"],e.isLeapYear=t,e.daysInMonth=function(e,n){return m[+t(n)][e]},e.isDate=n,e.greg2abs=function(e){if(!n(e))throw new TypeError(`Argument not a Date: ${e}`);return r(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=g(t,146097),r=f(t,146097),o=g(r,36524),i=f(r,36524),a=g(i,1461),s=g(f(i,1461),365),u=400*n+100*o+4*a+s;return 4!=o&&4!=s?u+1:u}(e=Math.trunc(e)),o=g(12*(e-r(n,1,1)+(e<r(n,3,1)?0:t(n)?1:2))+373,367),i=e-r(n,o,1)+1,a=new Date(n,o-1,i);return n<100&&n>=0&&a.setFullYear(n),a}}(y||(y={}));const S=1,w=2,p=4,v=6,b=7,M=8,I=9,T=10,A=12,D=13,E={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},C=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],N=[C.concat(["Adar","Nisan"]),C.concat(["Adar I","Adar II","Nisan"])],O=new Map,k=-1373428,H=365.24682220597794;function Y(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function L(e,t,n){if(Y(e,"year"),Y(t,"month"),Y(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<b){for(let t=b;t<=_(e);t++)r+=U(t,e);for(let n=S;n<t;n++)r+=U(n,e)}else for(let n=b;n<t;n++)r+=U(n,e);return k+B(e)+r-1}function F(e){return k+B(e)}function P(e){if(Y(e,"abs"),(e=Math.trunc(e))<=k)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-k)/H);for(;F(t)<=e;)++t;--t;let n=e<L(t,1,1)?7:1;for(;e>L(t,n,U(n,t));)++n;return{yy:t,mm:n,dd:1+e-L(t,n,1)}}function R(e){return(1+7*e)%19<7}function _(e){return+R(e)+12}function U(e,t){switch(e){case w:case p:case v:case T:case D:return 29}return e===A&&!R(t)||e===M&&!$(t)||e===I&&x(t)?29:30}function j(e,t){if(Y(e,"month"),Y(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return N[+R(t)][e]}function B(e){const t=O.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&&!R(e)||1==a%7&&i>=16789&&R(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return O.set(e,n),n}function Z(e){return B(e+1)-B(e)}function $(e){return Z(e)%10==5}function x(e){return Z(e)%10==3}const z=E.NISAN,V=E.CHESHVAN,K=E.KISLEV,J=E.TEVET,G=E.SHVAT,W=E.ADAR_I,q=E.ADAR_II;function X(e){if(function(e){return"object"==typeof e&&null!==e&&"number"==typeof e.yy&&"number"==typeof e.mm&&"number"==typeof e.dd}(e))return e;if("number"==typeof e)return P(e);if(y.isDate(e)){return P(y.greg2abs(e))}throw new TypeError(`Argument not a Date: ${e}`)}function Q(e,t){const n=function(e,t){let n=X(t);if(e<=n.yy)return;n.mm!=V||30!=n.dd||$(n.yy+1)?n.mm==K&&30==n.dd&&x(n.yy+1)?n=P(L(e,J,1)-1):n.mm==q?n.mm=_(e):n.mm!=W||30!=n.dd||R(e)||(n.dd=30,n.mm=G):n=P(L(e,K,1)-1);n.mm!=V||30!=n.dd||$(e)?n.mm==K&&30==n.dd&&x(e)&&(n.mm=J,n.dd=1):(n.mm=K,n.dd=1);return n.yy=e,n}(e,t);return void 0===n?n:y.abs2greg(L(n.yy,n.mm,n.dd))}function ee(e,t){const n=function(e,t){const n=X(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=R(r);let i=n.mm,a=n.dd;i==W&&!o||i==q&&o?i=_(e):i!=V||30!=a||$(e)?i==K&&30==a&&x(e)?(i=J,a=1):i==W&&30==a&&o&&!R(e)&&(i=z,a=1):(i=K,a=1);return{yy:e,mm:i,dd:a}}(e,t);return void 0===n?n:y.abs2greg(L(n.yy,n.mm,n.dd))}function te(e){throw new TypeError(e)}const ne="day",re="week",oe="month",ie="year",ae={d:ne,w:re,M:oe,y:ie},se={day:ne,week:re,month:oe,year:ie};class ue{constructor(e,t,n){if(2==arguments.length||arguments.length>3)throw new TypeError("HDate constructor requires 0, 1 or 3 arguments");if(3==arguments.length){if(this.day=this.month=1,n=parseInt(n,10),isNaN(n))throw new TypeError(`HDate called with bad year argument: ${n}`);if(this.year=n,this.setMonth(t),e=parseInt(e,10),isNaN(e))throw new TypeError(`HDate called with bad day argument: ${e}`);this.setDate(e)}else{void 0===e&&(e=new Date);const t="number"!=typeof e||isNaN(e)?y.isDate(e)?y.greg2abs(e):ue.isHDate(e)?{dd:e.day,mm:e.month,yy:e.year}:te(`HDate called with bad argument: ${e}`):e,n="number"==typeof t,r=n?P(t):t;this.day=r.dd,this.month=r.mm,this.year=r.yy,n&&(this.abs0=t)}}getFullYear(){return this.year}isLeapYear(){return R(this.year)}getMonth(){return this.month}getTishreiMonth(){const e=_(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return U(this.getMonth(),this.getFullYear())}getDate(){return this.day}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.month=ue.monthNum(e),ce(this),this}setDate(e){return this.day=e,ce(this),this}greg(){return y.abs2greg(this.abs())}abs(){return"number"!=typeof this.abs0&&(this.abs0=L(this.year,this.month,this.day)),this.abs0}static hebrew2abs(e,t,n){return L(e,t,n)}static abs2hebrew(e){return P(e)}getMonthName(){return j(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)||l.getLocaleName(),n=this.getDate(),r=l.gettext(this.getMonthName(),t),o=`${l.ordinal(n,t)}${ue.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=l.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=l.gettext(this.getMonthName(),n),i=this.getFullYear();return o(t)+" "+r+" "+o(i)}before(e){return le(e,this,-1)}onOrBefore(e){return le(e,this,0)}nearest(e){return le(e,this,3)}onOrAfter(e){return le(e,this,6)}after(e){return le(e,this,7)}next(){return new ue(this.abs()+1)}prev(){return new ue(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new ue(this);if(t=ue.standardizeUnits(t),t===ne)return new ue(this.abs()+e);if(t===re)return new ue(this.abs()+7*e);if(t===ie)return new ue(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===oe){let t=new ue(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new ue(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=ae[e]||String(e||"").toLowerCase().replace(/s$/,"");return se[t]||te(`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(!ue.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!ue.isHDate(e)&&(this.year==e.year&&this.month==e.month&&this.day==e.day)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return R(e)}static monthsInYear(e){return _(e)}static daysInMonth(e,t){return U(e,t)}static getMonthName(e,t){return j(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):ue.monthFromName(e)}static daysInYear(e){return Z(e)}static longCheshvan(e){return $(e)}static shortKislev(e){return x(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=l.hebrewStripNikkud(e).trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"==t[1])break;return E.NISAN;case"i":return E.IYYAR;case"e":return E.ELUL;case"c":case"ח":return E.CHESHVAN;case"k":case"כ":return E.KISLEV;case"s":switch(t[1]){case"i":return E.SIVAN;case"h":return E.SHVAT}break;case"t":switch(t[1]){case"a":return E.TAMUZ;case"i":return E.TISHREI;case"e":return E.TEVET}break;case"a":switch(t[1]){case"v":return E.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?E.ADAR_I:E.ADAR_II}break;case"ס":return E.SIVAN;case"ט":return E.TEVET;case"ש":return E.SHVAT;case"א":switch(t[1]){case"ב":return E.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?E.ADAR_I:E.ADAR_II;case"י":return E.IYYAR;case"ל":return E.ELUL}break;case"ת":switch(t[1]){case"מ":return E.TAMUZ;case"ש":return E.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.year&&"number"==typeof e.month&&"number"==typeof e.day&&"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=i(n[0]),o=ue.monthFromName(n[1]);let a=i(n[2]);return a<1e3&&(a+=t),new ue(r,o,a)}}function ce(e){he(e),function(e){e.day<1&&(e.month==E.TISHREI&&(e.year-=1),e.day+=U(e.month,e.year),e.month-=1,ce(e));e.day>U(e.month,e.year)&&(e.month===E.ELUL&&(e.year+=1),e.day-=U(e.month,e.year),e.month+=1,ce(e));he(e)}(e)}function he(e){e.month!==E.ADAR_II||e.isLeapYear()?e.month<1?(e.month+=_(e.year),e.year-=1,ce(e)):e.month>_(e.year)&&(e.month-=_(e.year),e.year+=1,ce(e)):(e.month-=1,ce(e)),delete e.abs0}function le(e,t,n){return new ue(ue.dayOnOrBefore(e,t.abs()+n))}const de={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},me=[[de.MAJOR_FAST,"holiday","major","fast"],[de.CHANUKAH_CANDLES,"holiday","major"],[de.HEBREW_DATE,"hebdate"],[de.MINOR_FAST,"holiday","fast"],[de.MINOR_HOLIDAY,"holiday","minor"],[de.MODERN_HOLIDAY,"holiday","modern"],[de.MOLAD,"molad"],[de.OMER_COUNT,"omer"],[de.PARSHA_HASHAVUA,"parashat"],[de.ROSH_CHODESH,"roshchodesh"],[de.SHABBAT_MEVARCHIM,"mevarchim"],[de.SPECIAL_SHABBAT,"holiday","shabbat"],[de.USER_EVENT,"user"]];class fe{constructor(e,t,n,r){this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.keys(r).forEach((e=>this[e]=r[e]))}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return l.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&de.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&de.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 me)if(e&t[0])return t.slice(1);return["unknown"]}}class ge extends fe{constructor(e){super(e,e.toString(),de.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||l.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":case"he-x-nonikud":const e=n.getDate(),r=l.gettext(n.getMonthName(),t),i=n.getFullYear();return o(e)+" "+r+" "+o(i);default:return n.render(t,!0)}}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||l.getLocaleName(),n=this.getDate();if(n.getMonth()===E.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":const e=n.getDate(),r=l.gettext(n.getMonthName(),t);return o(e)+" "+r;default:return n.render(t,!1)}}}const ye=36e11,Se=864e11,we=[1,1e3,1e6,1e9,6e10,ye,Se],pe=[9,6,3];function ve(e){return e<=6}function be(e){return e>=6}const Me=Ie("overflow",{constrain:0,reject:1},0);function Ie(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=De(t);return r(o[e],n)}}function Te(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 Ae(e,t){const n={};for(const r in t)void 0!==e[r]&&(n[r]=t[r](e[r]));return n}function De(e,t){if(void 0===e&&!t)return{};if(!Ce(e))throw TypeError("options must be an object or undefined");return e}const Ee=/object|function/;function Ce(e){return null!==e&&Ee.test(typeof e)}const Ne=Ie("roundingMode",{halfExpand:Math.round,ceil:Math.ceil,trunc:Math.trunc,floor:Math.floor});function Oe(){const e=new WeakMap;return[e.get.bind(e),e.set.bind(e)]}function ke(e,t){Object.defineProperties(e.prototype,He(t,(e=>({get:e}))))}function He(e,t){const n={};for(const r in e)n[r]=t(e[r],r);return n}function Ye(e,t,n){const r={};for(const o of t)r[o]=n(e[o]);return r}function Le(e,t){const n={};return e.forEach(((e,r)=>{n[e]=t(e,r)})),n}const Fe=["nanosecond","microsecond","millisecond","second","minute","hour"],Pe=[...Fe,"day","week","month","year"],Re=Pe.map((e=>e+"s")),_e=Le(Pe,((e,t)=>t)),Ue=Le(Re,((e,t)=>t));function je(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=_e[e])?o:Ue[e],void 0===i||i<n||i>r)throw new RangeError("Invalid unit "+e);return i}function Be(e,t,n,r,o,i){var a;const s=De(e),u=null!=(a=s.roundingIncrement)?a:1,c=je(s.smallestUnit,n,r,o),h=Ne(s,i?Math.round:Math.trunc);let l=s.largestUnit;"auto"===l&&(l=void 0);const d=je(l,t=Math.max(t,c),r,o);if(c>d)throw new RangeError("Bad smallestUnit/largestUnit");if(c<6){const e=we[c+1],t=we[c]*u;if(e===t)throw new RangeError("Must not equal larger unit");if(e%t)throw new RangeError("Must divide into larger unit")}return{smallestUnit:c,largestUnit:d,roundingFunc:h,roundingIncrement:u}}function Ze(e,t,n,r){var o;const i=De("string"==typeof e?{smallestUnit:e}:e,!0),a=null!=(o=i.roundingIncrement)?o:1,s=je(i.smallestUnit,void 0,t,n),u=Ne(i,Math.round),c=we[s]*a;if(6===s){if(1!==a)throw new RangeError("When smallestUnit is days, roundingIncrement must be 1")}else{const e=r?Se:we[s+1];if(!r&&e===c)throw new RangeError("Must not equal larger unit");if(e%c)throw new RangeError("Must divide into larger unit")}return{smallestUnit:s,roundingFunc:u,incNano:c}}const $e=Symbol();function xe(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 Ve extends ze{valueOf(){throw new Error("Cannot convert object using valueOf")}}const[Ke,Je]=Oe();class Ge extends Ve{constructor(e){super(),Je(this,Object.freeze(e))}getISOFields(){return Ke(this)}}function We(e,t){return e<t?-1:e>t?1:0}function qe(e){return We(e,0)}function Xe(e,t,n){return n(e/t)*t}function Qe(e){return Xe(e,6e10,et)}function et(e){return Math.round(Math.abs(e))*qe(e)}function tt(e,t,n){const r=e.div(t).mult(t),o=e.sub(r).toNumber();return r.add(n(o/t)*t)}function nt(e,t){return(e%t+t)%t}function rt(e,t){return it(n=String(e),t,"0")+n;var n}function ot(e,t,n){return e+it(e,t,n)}function it(e,t,n){return new Array(Math.max(0,t-e.length+1)).join(n)}function at(e){return e<0?"-":"+"}const st=Math.pow(10,8);class ut{constructor(e,t){this.high=e,this.low=t}sign(){return qe(this.high)||qe(this.low)}neg(){return new ut(-this.high||0,-this.low||0)}abs(){return this.sign()<0?this.neg():this}add(e){const[t,n]=lt(e);return dt(this.high+t,this.low+n)}sub(e){const[t,n]=lt(e);return dt(this.high-t,this.low-n)}mult(e){return dt(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=ot(e,8,"0"),e=e.substr(0,8),o=parseInt(e)*(qe(t)||1)}return dt(Math.trunc(t)||0,Math.trunc(this.low/e)+o)}toNumber(){return this.high*st+this.low}toBigInt(){return BigInt(this.high)*BigInt(st)+BigInt(this.low)}}function ct(e,t){let n,r;if(e instanceof ut)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/st),r=e%st||0}else if("bigint"==typeof e){const t=BigInt(st);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 ut(n,r)}function ht(e,t){return We(e.high,t.high)||We(e.low,t.low)}function lt(e){return"number"==typeof e?[0,e]:[e.high,e.low]}function dt(e,t){let n=t%st||0,r=e+Math.trunc(t/st);const o=qe(r),i=qe(n);return i&&o&&i!==o&&(r+=i,n-=st*i),new ut(r,n)}const mt=Re.concat("sign");function ft(e){return Ye(e,mt,(e=>-e||0))}function gt(e,t){var n,r,o,i,a,s,u,c,h,l;return yt({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!=(u=t.seconds)?u:e.seconds,milliseconds:null!=(c=t.milliseconds)?c:e.milliseconds,microseconds:null!=(h=t.microseconds)?h:e.microseconds,nanoseconds:null!=(l=t.nanoseconds)?l:e.nanoseconds})}function yt(e){return{...e,sign:St(e)}}function St(e){let t=0;for(const n of Re)if(e[n]){t=qe(e[n]);break}return t}function wt(e){let t=9;for(;t>0&&!e[Re[t]];)t--;return t}const pt={isoHour:0,isoMinute:0,isoSecond:0,isoMillisecond:0,isoMicrosecond:0,isoNanosecond:0},vt={hours:0,minutes:0,seconds:0,milliseconds:0,microseconds:0,nanoseconds:0};function bt(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 Mt(e){return ct(Se).mult(e.days).add(It(e))}function It(e){return ct(e.nanoseconds).add(ct(e.microseconds).mult(1e3)).add(ct(e.milliseconds).mult(1e6)).add(ct(e.seconds).mult(1e9)).add(ct(e.minutes).mult(6e10)).add(ct(e.hours).mult(ye))}function Tt(e){return e.isoHour*ye+6e10*e.isoMinute+1e9*e.isoSecond+1e6*e.isoMillisecond+1e3*e.isoMicrosecond+e.isoNanosecond}function At(e,t){let n,r=0,o=0,i=0,a=0,s=0,u=0;switch(t){case 6:n=e.div(Se),r=n.toNumber(),e=e.sub(n.mult(Se));case 5:n=e.div(ye),o=n.toNumber(),e=e.sub(n.mult(ye));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),u=n.toNumber(),e=e.sub(n.mult(1e3))}return yt({years:0,months:0,weeks:0,days:r,hours:o,minutes:i,seconds:a,milliseconds:s,microseconds:u,nanoseconds:e.toNumber()})}function Dt(e){const t=Math.floor(e/Se);e-=t*Se;const n=Math.floor(e/ye);e-=n*ye;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 Et={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 Ct{constructor(e){this.id=e}monthCode(e,t){return"M"+rt(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 Nt(e,t,n,r){var o;let i=null==(o=Et[Ot(e)])?void 0:o[n];if(void 0===i){if(!r)throw new Error("Unkown era "+n);i=0}return(i+t)*(qe(i)||1)}function Ot(e){return e.split("-")[0]}class kt extends Ct{computeFields(e){const t=Ut(e);return{era:void 0,eraYear:void 0,year:t.isoYear,month:t.isoMonth,day:t.isoDay}}epochMilliseconds(e,t,n){return Rt(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 Yt}normalizeISOYearForMonthDay(){return Yt}}const Ht=new kt("iso8601"),Yt=1972,Lt=Symbol();function Ft(e){return Pt(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function Pt(e,t,n,r,o,i,a,s,u){return ct(Rt(e,t,n,r,o,i,a)).mult(1e6).add(1e3*(null!=s?s:0)+(null!=u?u:0))}function Rt(e,t,n,r,o,i,a){const s=qe(e);let u,c,h=0;const l=e>=0&&e<1e3,d=l?e+1200:e;for(;h<31;h++){u=n-s*h;const e=Date.UTC(d,t-1,u,null!=r?r:0,null!=o?o:0,null!=i?i:0,null!=a?a:0);if(!zt(e)){c=e+s*h*864e5;break}}return(void 0===c||u<1||u>Ht.daysInMonth(e,t))&&Vt(),l&&(c=new Date(c).setUTCFullYear(e)),c}function _t(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,{...Ut(t.toNumber()),isoMicrosecond:r,isoNanosecond:n}}function Ut(e){const[t,n]=xt(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 jt(e){var t;return null!=(t=e[Lt])?t:Ft(e.getISOFields())}function Bt(e){return Math.floor(Rt(e,1,1)/1e3)}function Zt(e){return xt(e.div(1e6).toNumber())[0].getUTCFullYear()}function $t(e,t,n){const[r,o]=xt(Rt(e,t,n));return nt(r.getUTCDay()+o,7)||7}function xt(e){const t=qe(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&&Vt(),[n,t*r]}function zt(e){return isNaN(e.valueOf())}function Vt(){throw new RangeError("Date outside of supported range")}function Kt(e,t){return Math.round((t-e)/864e5)}function Jt(e,t){return e+864e5*t}function Gt(e,t){return!Wt(e,t)&&e.calendar.toString()===t.calendar.toString()}function Wt(e,t){return ht(Ft(e.getISOFields()),Ft(t.getISOFields()))}function qt(e,t){return We(Tt(e.getISOFields()),Tt(t.getISOFields()))}function Xt(e,t){return We(e.year,t.year)||We(e.month,t.month)||We(e.day,t.day)}function Qt(e,t){return ht(e[Lt],t[Lt])}function en(e,t,n,r,o){return[e=Number(e),t=Te(t,1,r.monthsInYear(e),o),n=Te(n,1,r.daysInMonth(e,t),o)]}function tn(e,t){const[n,r,o]=en(e.isoYear,e.isoMonth,e.isoDay,Ht,t);return{isoYear:n,isoMonth:r,isoDay:o}}function nn(e,t){return{...tn(e,t),...rn(e,t)}}function rn(e,t){let{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:a,isoNanosecond:s}=e;return{isoHour:n=Te(n,0,23,t),isoMinute:r=Te(r,0,59,t),isoSecond:o=Te(o,0,59,t),isoMillisecond:i=Te(i,0,999,t),isoMicrosecond:a=Te(a,0,999,t),isoNanosecond:s=Te(s,0,999,t)}}const on={era:String,eraYear:Number,year:Number,month:Number,monthCode:String},an={...on,day:Number},sn={hour:Number,minute:Number,second:Number,millisecond:Number,microsecond:Number,nanosecond:Number},un={era:String,eraYear:Number,year:Number,month:Number,monthCode:String,day:Number},cn=Le(Re,(()=>Number));class hn extends kt{computeFields(e){const t=super.computeFields(e),{year:n}=t;return{...t,era:n<1?"bce":"ce",eraYear:n<1?-(n-1):n}}}const ln=Ie("calendarName",{auto:0,never:1,always:2},0),dn=Ie("disambiguation",{compatible:0,earlier:1,later:2,reject:3},0);function mn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=De(e),r=n.smallestUnit,o=n.fractionalSecondDigits;let i,a=0,s=1;return void 0!==r?(a=je(r,void 0,0,t),s=we[a],i=pe[a]||0):void 0!==o&&"auto"!==o&&(i=Te(o,0,9,1),s=Math.pow(10,9-i)),{smallestUnit:a,fractionalSecondDigits:i,roundingFunc:Ne(e,Math.trunc),incNano:s}}const fn=Ie("timeZoneName",{auto:0,never:1},0);function gn(e,t){return yn(e)+"T"+wn(e,t)}function yn(e){return Sn(e)+"-"+rt(e.isoDay,2)}function Sn(e){const{isoYear:t}=e;return(t<1e3||t>9999?at(t)+rt(Math.abs(t),6):rt(t,4))+"-"+rt(e.isoMonth,2)}function wn(e,t){const n=[rt(e.isoHour,2)];return t.smallestUnit<=4&&(n.push(rt(e.isoMinute,2)),t.smallestUnit<=3&&n.push(rt(e.isoSecond,2)+Mn(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t.fractionalSecondDigits)[0])),n.join(":")}function pn(e){const[t,n]=Dt(Math.abs(e)),r=Mn(t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,void 0)[0];return at(e)+rt(t.isoHour+24*n,2)+":"+rt(t.isoMinute,2)+(t.isoSecond||r?":"+rt(t.isoSecond,2)+r:"")}function vn(e,t){return e&&(2===t||1!==t&&"iso8601"!==e)?`[u-ca=${e}]`:""}function bn(e){return e.map((e=>{let[t,n,r]=e;return r||t?Math.abs(t).toLocaleString("fullwide",{useGrouping:!1})+n:""})).join("")}function Mn(e,t,n,r,o,i){let a=ct(e).mult(1e6).add(ct(t).mult(1e3)).add(n);o&&(a=tt(a,void 0===r?we[i]:Math.pow(10,9-r),o));const s=a.abs(),u=s.div(1e9);let c=rt(s.sub(u.mult(1e9)).toNumber(),9);return c=void 0===r?c.replace(/0+$/,""):c.substr(0,r),[c?"."+c:"",u.toNumber()*(a.sign()||1)]}function In(e){ke(e,{epochNanoseconds(){return this[Lt].toBigInt()},epochMicroseconds(){return this[Lt].div(1e3).toBigInt()},epochMilliseconds(){return this[Lt].div(1e6).toNumber()},epochSeconds(){return this[Lt].div(1e9).toNumber()}})}const Tn={calendar:"calendar"};for(const e of Pe)Tn[e]="iso"+((An=e).charAt(0).toUpperCase()+An.slice(1));var An;function Dn(e){ke(e,Le((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).concat("calendar"),(e=>function(){return this.getISOFields()[Tn[e]]})))}const En=["era","eraYear","year","month","monthCode","daysInMonth","daysInYear","monthsInYear","inLeapYear"],Cn=[...En,"day","dayOfWeek","dayOfYear","weekOfYear","daysInWeek"];function Nn(e,t){ke(e,Le(t,(e=>function(){const t=this.calendar[e](this);return Object.defineProperty(this,e,{value:t}),t})))}function On(e,t){(e.prototype||e)[Symbol.toStringTag]="Temporal."+t}const kn=Ie("offset",{prefer:0,use:1,ignore:2,reject:3});function Hn(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=jt(t),r=e.getOffsetNanosecondsFor(new ji(n.sub(Se)));return e.getOffsetNanosecondsFor(new ji(n.add(Se)))-r}(e,t),o=e.getPossibleInstantsFor(t.add({nanoseconds:r*(1===n?-1:1)}));return o[1===n?0:o.length-1]}}function Yn(e,t,n,r){let{year:o,month:i,day:a}=e;o+=t;const s=Te(i,1,n.monthsInYear(o),r);let u=i===s?a:1;return u=Te(u,1,n.daysInMonth(o,s),r),{year:o,month:s,day:u}}function Ln(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=Te(a,1,n.daysInMonth(o,i),r)}return{year:o,month:i,day:a}}function Fn(e,t){let{isoYear:n,isoMonth:r,isoDay:o}=e;if(t){let e=Rt(n,r,o);e=Jt(e,t),({isoYear:n,isoMonth:r,isoDay:o}=Ut(e))}return{isoYear:n,isoMonth:r,isoDay:o}}function Pn(e,t){if(wt(t)>=6)throw new RangeError("Duration cant have units >= days");return e.add(It(t))}function Rn(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 Ft(e).sub(o);{const r=_n(e,o,i,t);if(void 0!==r)return r;if(3===n)throw new RangeError("Mismatching offset/timezone")}}return Hn(i,qo(e),dn(r))[Lt]}function _n(e,t,n,r){const o=n.getPossibleInstantsFor(qo(e)),i=Ft(e),a=r?Qe(t):t;for(const e of o){const t=e[Lt],n=i.sub(t).toNumber();if((r?Qe(n):n)===a)return t}}function Un(e){const{timeZone:t}=e,n={...e,...pt,calendar:new Ai("iso8601")},r={...Fn(n,1),...pt,calendar:new Ai("iso8601")},o=Hn(t,qo(n))[Lt];return Hn(t,qo(r))[Lt].sub(o).toNumber()}const jn="(\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?",Bn="([+-])"+jn,Zn="(Z|"+Bn+")?(\\[([^=\\]]+)\\])?(\\[u-ca=([^\\]]+)\\])?",$n=Wn("([+-]\\d{6}|\\d{4})-?(\\d{2})"+Zn),xn=Wn("(--)?(\\d{2})-?(\\d{2})"+Zn),zn=Wn("([+-]\\d{6}|\\d{4})-?(\\d{2})-?(\\d{2})([T ](\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?)?"+Zn),Vn=Wn("T?"+jn+Zn),Kn=Wn(Bn),Jn=/^([-+])?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,Gn=/\u2212/g;function Wn(e){return new RegExp(`^${e}$`,"i")}function qn(e){return e.replace(Gn,"-")}function Xn(e){const t=nr(e);if(!t)throw fr("dateTime",e);return t}function Qn(e){const t=rr(e);if(!t)throw fr("dateTime",e);return t}function er(e){const t=ar(e);if(void 0===t)throw fr("timeZone",e);return t}const tr=/^Z$/i;function nr(e){const t=zn.exec(qn(e));if(t)return function(e){const t=e[11];let n,r=!1;return t&&(r=tr.test(t),n=r?0:cr(e.slice(12))),{...sr(e),timeZone:e[21],offsetNanoseconds:n,Z:r}}(t.slice(1))}function rr(e,t,n){const r=zn.exec(qn(e));if(r&&(n||!tr.test(r[12]))&&(!t||r[4]))return sr(r.slice(1))}function or(e){const t=$n.exec(qn(e));if(t)return{calendar:(n=t.slice(1))[14],isoYear:dr(n[0]),isoMonth:dr(n[1]),isoDay:1};var n}function ir(e){const t=xn.exec(qn(e));if(t)return{calendar:(n=t.slice(1))[15],isoYear:Yt,isoMonth:dr(n[1]),isoDay:dr(n[2])};var n}function ar(e){const t=Kn.exec(qn(e));if(t)return cr(t.slice(1))}function sr(e){return{calendar:e[23],isoYear:dr(e[0]),isoMonth:dr(e[1]),isoDay:dr(e[2]),...ur(e.slice(4))}}function ur(e){const t=lr(e[4]);return{...Dt(hr(e[6]||""))[0],isoHour:lr(e[0]),isoMinute:lr(e[2]),isoSecond:60===t?59:t}}function cr(e){return("+"===e[0]?1:-1)*function(e){return lr(e[0])*ye+6e10*lr(e[2])+1e9*lr(e[4])+hr(e[6]||"")}(e.slice(1))}function hr(e){return parseInt(ot(e,9,"0"))}function lr(e){return parseInt(e||"0")}function dr(e){return parseInt(e||"1")}function mr(e){return void 0===e?void 0:parseInt(e)}function fr(e,t){throw new RangeError(`Cannot parse ${e} '${t}'`)}function gr(e){return{...e,calendar:void 0===e.calendar?Di():new Ai(e.calendar)}}function yr(e){return{...gr(e),timeZone:new kr(e.timeZone)}}class Sr{constructor(e){this.id=e}}class wr extends Sr{constructor(e,t){super(e),this.offsetNano=t}getPossibleOffsets(){return[this.offsetNano]}getOffset(){return this.offsetNano}getTransition(){}}function pr(e,t){const n={},r=e.formatToParts(t);for(const e of r)n[e.type]=e.value;return n}const vr={bc:"bce",ad:"ce"};function br(e){return e=e.toLowerCase().normalize("NFD").replace(/[^a-z0-9]/g,""),vr[e]||e}const Mr=Intl.DateTimeFormat;const Ir={"Pacific/Apia":{2011:[[Tr(13017528e5),-36e12,-396e11],[Tr(13168728e5),-396e11,-36e12],[Tr(13252392e5),-36e12,504e11]]}};function Tr(e){return ct(e).mult(1e6)}const Ar=(new Date).getUTCFullYear()+10,Dr=[182,91,273];class Er extends Sr{constructor(e){const t=new Mr("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=Ir[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(ht(n,a)>0&&ht(n,s)>0)return[o];if(!(ht(n,a)<=0&&ht(n,s)<=0))return o<i?[]:[o,i];t=i}return void 0!==t?[t]:[1e9*this.getYearEndOffsetSec(Zt(e))]}getOffset(e){return 1e9*this.getOffsetForEpochSecs(e.div(1e9).toNumber())}getOffsetForEpochSecs(e){const t=pr(this.format,1e3*e);let n=parseInt(t.year);"bce"===br(t.era)&&(n=-(n-1));const r=Rt(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=Zt(e);if(n>Ar){const r=this.getTransitionFrom(n,n+t,t,e);if(r||t>0)return r;n=Ar}return this.getTransitionFrom(Math.max(n,1847),t<0?1846:Ar,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(ht(e[0],r)===n)return e}}getYearEndOffsetSec(e){const{yearEndOffsets:t}=this;return t[e]||(t[e]=this.getOffsetForEpochSecs(Bt(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=Bt(e)-1,o=Bt(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[ct(t).mult(1e9),1e9*n,1e9*r]}searchIsland(e,t){for(const n of Dr){const r=t+86400*n,o=this.getOffsetForEpochSecs(r);if(o!==e)return[r,o]}}}const Cr={UTC:new wr("UTC",0)},[Nr,Or]=Oe();class kr extends ze{constructor(e){if(!e)throw new RangeError("Invalid timezone ID");super(),Or(this,function(e){const t=(e=String(e)).toLocaleUpperCase();if(Cr[t])return Cr[t];const n=ar(e);if(void 0!==n){if(Math.abs(n)>Se)throw new RangeError("Offset out of bounds");return new wr(pn(n),n)}return Cr[t]=new Er(e)}(e))}static from(e){if(Ce(e))return function(e){const t=e.timeZone;return void 0===t?e:Ce(t)&&void 0===t.timeZone?t:new kr(t)}(e);const t=nr(String(e));if(t){if(t.timeZone){const e=yr(t);return function(e){const{offsetNanoseconds:t,timeZone:n,Z:r}=e;if(void 0!==t&&!r&&void 0===_n(e,t,n,!0))throw new RangeError("Mismatching offset/timezone")}(e),e.timeZone}if(t.Z)return new kr("UTC");if(void 0!==t.offsetNanoseconds)return new kr(pn(t.offsetNanoseconds))}return new kr(String(e))}get id(){return this.toString()}getOffsetStringFor(e){return pn(this.getOffsetNanosecondsFor(e))}getOffsetNanosecondsFor(e){const t=xe(ji,e);return Nr(this).getOffset(t[Lt])}getPlainDateTimeFor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Di();const n=xe(ji,e);return qo({..._t(n[Lt].add(this.getOffsetNanosecondsFor(n))),calendar:xe(Ai,t)})}getInstantFor(e,t){return Hn(this,xe(Wo,e),dn(t))}getPossibleInstantsFor(e){const t=Ft(xe(Wo,e).getISOFields());return Nr(this).getPossibleOffsets(t).map((e=>new ji(t.sub(e))))}getPreviousTransition(e){const t=xe(ji,e),n=Nr(this).getTransition(t[Lt],-1);return n?new ji(n[0]):null}getNextTransition(e){const t=xe(ji,e),n=Nr(this).getTransition(t[Lt],1);return n?new ji(n[0]):null}toString(){return Nr(this).id}}function Hr(e){if(void 0===e.timeZone)throw new TypeError("Must specify timeZone");return xe(kr,e.timeZone)}On(kr,"TimeZone");const Yr=to((function(e,t,n){const r=Vr(e,t,n);if(r)return{...r,timeZone:Hr(e),offsetNanoseconds:void 0!==e.offset?er(String(e.offset)):void 0}})),Lr=to(Vr),Fr=to(Kr),Pr=to((function(e,t){const n=Ni(e),r=Xr(e,on,n);if(no(r))return n.yearMonthFromFields(r,t)})),Rr=to((function(e,t){const n=Ni(e),r=Xr(e,un,n);if(no(r))return void 0===e.year&&void 0===e.calendar&&(r.year=Yt),n.monthDayFromFields(r,t)})),_r=to(Jr),Ur=to((function(e,t,n,r){const o=Gr(e,t,n,r),i=void 0!==t.offset;if(o||i)return{...o||e.getISOFields(),timeZone:e.timeZone,offsetNanoseconds:i?er(String(t.offset)):e.offsetNanoseconds}}),!0),jr=to(Gr,!0),Br=to(Wr,!0),Zr=to((function(e,t,n){const r=e.calendar;if(no(Xr(t,on,r))){const o=eo(e,t,on,r);return r.yearMonthFromFields(o,n)}}),!0),$r=to((function(e,t,n){const r=e.calendar;if(no(Xr(t,un,r))){const o=eo(e,t,un,r);return r.monthDayFromFields(o,n)}}),!0),xr=to(qr,!0),zr=to((function(e){const t=Ae(e,cn);if(no(t))return t}));function Vr(e,t,n){const r=Kr(e,n),o=Jr(e,t);if(r)return{...r.getISOFields(),...o||pt}}function Kr(e,t){const n=Ni(e),r=Xr(e,an,n);if(no(r))return n.dateFromFields(r,t)}function Jr(e,t){const n=Ae(e,sn);if(no(n))return rn(bt(n),t)}function Gr(e,t,n,r){const o=Wr(e,t,r),i=qr(e,t,n);if(o||i)return{...e.getISOFields(),...o?o.getISOFields():{},...i}}function Wr(e,t,n){const r=e.calendar,o=Xr(t,an,r);if(no(o)){const t=eo(e,o,an,r);return r.dateFromFields(t,n)}}function qr(e,t,n){const r=Ae(t,sn);if(no(r))return rn(bt((o=e,i=r,He(sn,((e,t)=>{var n;return null!=(n=i[t])?n:o[t]})))),n);var o,i}function Xr(e,t,n){let r=Object.keys(t);return r=n.fields?Array.prototype.slice.call(n.fields(r)):Object.keys(Qr(n,r)),Qr(e,r)}function Qr(e,t){const n={};for(const r of t)void 0!==e[r]&&(n[r]=e[r]);return n}function eo(e,t,n,r){const o=Xr(e,n,r);return r.mergeFields?r.mergeFields(o,t):Ei(o,t)}function to(e,t){return function(){if(t){const e=arguments.length<=1?void 0:arguments[1];if(!Ce(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 no(e){return Object.keys(e).length>0}const ro=ct(Se).mult(1e8),oo=ro.mult(-1),io=ro.add(86399999999999),ao=oo.sub(86399999999999);function so(e,t){const n=Ft(e);uo(n),pi(n,t)}function uo(e){-1!==ht(e,ao)&&1!==ht(e,io)||Vt()}function co(e,t){const n=lo(Tt(e),t),[r,o]=Dt(n);return{...Fn(e,o),...r}}function ho(e,t){const n=lo(Tt(e),t),[r]=Dt(n);return r}function lo(e,t){return Xe(e,t.incNano,t.roundingFunc)}function mo(e,t,n){return(r,o)=>{const i=po(e,o)?{}:{...e,...t};return{buildKey:wo(r,o,!1),buildFormat:function(e,t){return new Mr(r,{calendar:e,timeZone:t||void 0,...i,...o,...n})},buildEpochMilli:fo}}}function fo(e){return e.epochMilliseconds}function go(e,t,n){return(r,o)=>{const i=po(e,o)?{}:e;return{buildKey:wo(r,o,n),buildFormat:function(e,n){return new Mr(r,{calendar:e,...i,...o,...t,timeZone:n,timeZoneName:void 0})},buildEpochMilli:void 0!==o.timeZone?yo.bind(null,new kr(o.timeZone)):So}}}function yo(e,t){const n=qo({...pt,...t.getISOFields()});return e.getInstantFor(n).epochMilliseconds}function So(e){return Rt((t=e.getISOFields()).isoYear,t.isoMonth,t.isoDay,t.isoHour,t.isoMinute,t.isoSecond,t.isoMillisecond);var t}function wo(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,u;const c=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)!==c)throw new RangeError("Mismatching calendar");if((null==(u=t.timeZone)?void 0:u.id)!==h)throw new RangeError("Mismatching timeZone")}if((n||"iso8601"!==c)&&void 0!==c&&void 0!==o&&o!==c)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||c||"iso8601",i||h||"UTC"]}}function po(e,t){for(const n in e)if(void 0!==t[n])return!0;return!1}function vo(e,t){e.prototype.toLocaleString=function(e,n){const r=t(function(e){return[].concat(e||[])}(e),n||{});return r.buildFormat(...r.buildKey(this)).format(r.buildEpochMilli(this))},e.prototype[$e]=t}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?hr(t)*(we[n]/1e9):void 0]}if(void 0!==r){const e=Math.trunc(r/we[n]);return[e,r-e*we[n]]}return[void 0,void 0]}const Mo=Ie("offset",{auto:0,never:1},0);class Io extends Ge{constructor(){super({...rn({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:Di()})}static from(e,t){const n=Me(t);return To(e instanceof Io?e.getISOFields():"object"==typeof e?_r(e,n):function(e){let t=function(e){const t=Vn.exec(qn(e));if(t)return ur(t.slice(1))}(e);if(void 0!==t){if("T"!==e.charAt(0)){const n=or(e)||ir(e);n&&function(e){try{return tn(e,1),!0}catch(e){return!1}}(n)&&(t=void 0)}}else t=rr(e,!0);if(void 0===t)throw fr("time",e);return t}(String(e)))}static compare(e,t){return qt(xe(Io,e),xe(Io,t))}with(e,t){return To(xr(this,e,Me(t)))}add(e){return Do(this,xe(Ko,e))}subtract(e){return Do(this,ft(xe(Ko,e)))}until(e,t){return Eo(this,xe(Io,e),t)}since(e,t){return Eo(xe(Io,e),this,t)}round(e){const t=Ze(e,0,5);return To(ho(this.getISOFields(),t))}equals(e){return!qt(this,xe(Io,e))}toString(e){const t=mn(e);return wn(ho(this.getISOFields(),t),t)}toZonedDateTime(e){const t=xe(Yi,e.plainDate),n=xe(kr,e.timeZone);return Fo({...t.getISOFields(),...this.getISOFields(),timeZone:n})}toPlainDateTime(e){return xe(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 xe(Io,null!=e?e:{hour:0})}function Do(e,t){return To(function(e,t){const n=Tt(e)+It(t).toNumber(),[r]=Dt(n);return r}(e.getISOFields(),t))}function Eo(e,t,n){const r=Be(n,5,0,0,5);return Jo(function(e,t,n){return At(ct(Xe(Tt(t)-Tt(e),we[n.smallestUnit]*n.roundingIncrement,n.roundingFunc)),n.largestUnit)}(e.getISOFields(),t.getISOFields(),r))}On(Io,"PlainTime"),Dn(Io,Fe),vo(Io,(function(e,t){return{buildKey:()=>["",""],buildFormat:()=>new Mr(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(Tt(e.getISOFields())/1e6)}}));const Co={day:1};class No extends Ge{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Di();const r=tn({isoYear:e,isoMonth:t,isoDay:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1},1),o=xe(Ai,n);var i,a;i=r,a=o.toString(),pi(Ft(i),a),super({...r,calendar:o})}static from(e,t){if(Me(t),e instanceof No)return Oo(e.getISOFields());if("object"==typeof e)return Pr(e,t);const n=function(e){const t=or(e)||rr(e);if(!t)throw fr("yearMonth",e);return t}(String(e));return void 0===n.calendar&&(n.isoDay=1),Oo(gr(n))}static compare(e,t){return Wt(xe(No,e),xe(No,t))}with(e,t){return Zr(this,e,t)}add(e,t){return ko(this,xe(Ko,e),t)}subtract(e,t){return ko(this,ft(xe(Ko,e)),t)}until(e,t){return Ho(this,xe(No,e),!1,t)}since(e,t){return Ho(this,xe(No,e),!0,t)}equals(e){return!Wt(this,xe(No,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=ln(e);return("iso8601"===n?Sn(t):yn(t))+vn(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,Be(r,9,8,8,9)))}On(No,"PlainYearMonth"),Dn(No),Nn(No,En),vo(No,go({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 Ge{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Di();const r=xe(kr,t),o=xe(Ai,n),i=ct(e),[a,s]=Po(i,r);so(a,o.toString()),super({...a,calendar:o,timeZone:r,offset:pn(s)}),this[Lt]=i,this[Yo]=s}static from(e,t){const n=kn(t,3),r=Me(t);if(e instanceof Lo)return new Lo(e.epochNanoseconds,e.timeZone,e.calendar);const o="object"==typeof e;return Fo(o?Yr(e,r,t):yr(Xn(String(e))),!o,n,t)}static compare(e,t){return Qt(xe(Lo,e),xe(Lo,t))}get timeZone(){return this.getISOFields().timeZone}get offsetNanoseconds(){return this[Yo]}get offset(){return this.getISOFields().offset}with(e,t){dn(t);const n=Me(t),r=kn(t,0);return Fo(Ur(this,e,n,t),!1,r,t)}withPlainDate(e){const t=xe(Yi,e),n=t.toPlainDateTime(this),{timeZone:r}=this,o=Hn(r,n);return new Lo(o.epochNanoseconds,r,ki(this,t))}withPlainTime(e){return Fo({...this.getISOFields(),...void 0===e?pt:xe(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,xe(Ko,e),t)}subtract(e,t){return Ro(this,ft(xe(Ko,e)),t)}until(e,t){return Uo(this,xe(Lo,e),!1,t)}since(e,t){return Uo(this,xe(Lo,e),!0,t)}round(e){return _o(this,Ze(e,0,6))}equals(e){return this,Gt(this,t=xe(Lo,e))&&this.timeZone.toString()===t.timeZone.toString();var t}startOfDay(){return Fo({...this.getISOFields(),...pt,offsetNanoseconds:this.offsetNanoseconds},!1,0)}get hoursInDay(){return Un(this.getISOFields())/ye}toString(e){const t=mn(e),n=Mo(e),r=fn(e),o=ln(e),i=_o(this,t);return gn(i.getISOFields(),t)+(0===n?pn(Qe(i.offsetNanoseconds)):"")+(a=this.timeZone.toString(),1!==r?`[${a}]`:"")+vn(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=Rn(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[_t(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),gt(t,vt),n);return Hn(o,qo({...e,...i.getISOFields()}))[Lt].add(It(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=Tt(e);return 6===n.smallestUnit?(i=pt,a=n.roundingFunc(s/Un(e))):(s=lo(s,n),[i,a]=Dt(s)),Rn({...Fn(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=Be(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(Ce(e))return e instanceof Lo||e instanceof Wo?e:xe(void 0!==e.timeZone?Lo:Wo,e);if("symbol"==typeof e)throw new TypeError("Incorrect relativeTo type");const t=nr(String(e));if(t)return void 0!==t.timeZone?Fo(yr(t),!0):qo(gr(t));throw new RangeError("Invalid value of relativeTo")}function Bo(e,t,n,r){return(n instanceof Yi?function(e,t,n,r){const o=n.add(e);return[r.dateUntil(n,o,{largestUnit:Pe[t]}),o]}(e,Math.max(6,t),n,r):Zo(e,t,n,r))[0]}function Zo(e,t,n,r,o){const i=!0!==o&&t>7&&e.weeks;i&&(e=gt(e,{weeks:0}));let a=n.add(e),s=_i(n,a,r,t);return i&&(s=gt(s,{weeks:i}),a=a.add({weeks:i})),[s,a]}function $o(e,t,n,r){const o=Re[t],{sign:i}=e;if(!i)return e;const a={};for(let n=9;n>=t;n--){const t=Re[n];a[t]=e[t]}const s={[o]:i},u=n.add(a),c=u.add(s),h=jt(u),l=jt(c),d=jt(r).sub(h).toNumber()/l.sub(h).toNumber()*i;return a[o]+=d,a}function xo(e,t,n,r,o,i){const{largestUnit:a,smallestUnit:s,roundingIncrement:u,roundingFunc:c}=i;if(!be(a))return At(tt(jt(n).sub(jt(t)).mult(o?-1:1),we[s]*u,c),a);let h=$o(e,s,t,n);const l=Re[s];function d(){const e=h[l];h[l]=Xe(e,u,c)}return c===Math.round&&d(),o&&(h=ft(h)),c!==Math.round&&d(),s>0&&(h=o?ft(Bo(ft(h),a,t,r)):Bo(h,a,t,r)),h}On(Lo,"ZonedDateTime"),Dn(Lo,Fe),Nn(Lo,Cn),In(Lo),vo(Lo,mo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:"short"},{}));const[zo,Vo]=Oe();class Ko extends Ve{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,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=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:u,nanoseconds:c});Vo(this,function(e){const t=yt(e),{sign:n}=t;for(const e of Re){const r=t[e],o=qe(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=Jn.exec(qn(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:mr(t[2]),months:mr(t[3]),weeks:mr(t[4]),days:mr(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=At(ct(o||0),2);i.milliseconds=a.milliseconds,i.microseconds=a.microseconds,i.nanoseconds=a.nanoseconds;let s=yt(i);return"-"===t[1]&&(s=ft(s)),s}}(e);if(void 0===t)throw fr("duration",e);return t}(e))}static compare(e,t,n){return function(e,t,n){if(void 0===n&&wt(e)<=6&&wt(t)<=6)return ht(Mt(e),Mt(t));if(!n)throw new RangeError("Need relativeTo");const r=n.add(e),o=n.add(t);return void 0!==n[Lt]?Qt(r,o):Wt(r,o)}(xe(Ko,e),xe(Ko,t),jo(De(n).relativeTo))}get years(){return zo(this).years}get months(){return zo(this).months}get weeks(){return zo(this).weeks}get days(){return zo(this).days}get hours(){return zo(this).hours}get minutes(){return zo(this).minutes}get seconds(){return zo(this).seconds}get milliseconds(){return zo(this).milliseconds}get microseconds(){return zo(this).microseconds}get nanoseconds(){return zo(this).nanoseconds}get sign(){return zo(this).sign}get blank(){return!this.sign}with(e){return Jo({...zo(this),...zr(e)})}negated(){return Jo(ft(zo(this)))}abs(){return Jo(Ye(zo(this),mt,(e=>Math.abs(e))))}add(e,t){return Go(this,xe(Ko,e),t)}subtract(e,t){return Go(this,ft(xe(Ko,e)),t)}round(e){const t="string"==typeof e?{smallestUnit:e}:e;if(!Ce(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=Be(t,wt(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&&wt(e)<=6&&ve(o)&&ve(i))return At(tt(Mt(e),we[i]*a,s),o);if(!n)throw new RangeError("Need relativeTo");const[u,c]=Zo(e,o,n,r);return xo(u,n,c,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=De(e).unit,t=e.relativeTo),{unit:je(n,void 0,0,9),relativeTo:t}}(e),n=jo(t.relativeTo);return function(e,t,n,r){if(void 0===n&&wt(e)<=6&&ve(t))return Mt(e).toNumber()/we[t];if(!n)throw new RangeError("Need relativeTo");const[o,i]=Zo(e,t,n,r,!0);return $o(o,t,n,i)[Re[t]]}(this,t.unit,n,n?n.calendar:void 0)}toString(e){const t=mn(e,3);return function(e,t){const{smallestUnit:n,fractionalSecondDigits:r,roundingFunc:o}=t,{sign:i}=e,a=e.hours,s=e.minutes;let u=e.seconds,c="";if(n<=3){const t=Mn(e.milliseconds,e.microseconds,e.nanoseconds,r,o,n);c=t[0],u+=t[1]}const h=void 0!==r||c||!i;return(i<0?"-":"")+"P"+bn([[e.years,"Y"],[e.months,"M"],[e.weeks,"W"],[e.days,"D"]])+(a||s||u||h?"T"+bn([[a,"H"],[s,"M"],[n<=3?u:0,c+"S",h]]):"")}(zo(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(De(n).relativeTo);return Jo(function(e,t,n,r){const o=Math.max(wt(e),wt(t));if(void 0===n&&o<=6)return At(Mt(e).add(Mt(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))}On(Ko,"Duration");class Wo extends Ge{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,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Di();const h=nn({isoYear:e,isoMonth:t,isoDay:n,isoHour:r,isoMinute:o,isoSecond:i,isoMillisecond:a,isoMicrosecond:s,isoNanosecond:u},1),l=xe(Ai,c);so(h,l.toString()),super({...h,calendar:l})}static from(e,t){const n=Me(t);return qo(e instanceof Wo?e.getISOFields():"object"==typeof e?Lr(e,n,t):gr(Qn(String(e))))}static compare(e,t){return Wt(xe(Wo,e),xe(Wo,t))}with(e,t){const n=Me(t);return qo(jr(this,e,n,t))}withPlainDate(e){const t=xe(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:xe(Ai,e)})}add(e,t){return Xo(this,xe(Ko,e),t)}subtract(e,t){return Xo(this,ft(xe(Ko,e)),t)}until(e,t){return Qo(this,xe(Wo,e),!1,t)}since(e,t){return Qo(this,xe(Wo,e),!0,t)}round(e){const t=Ze(e,0,6);return qo({...co(this.getISOFields(),t),calendar:this.calendar})}equals(e){return Gt(this,xe(Wo,e))}toString(e){const t=mn(e),n=ln(e);return gn(co(this.getISOFields(),t),t)+vn(this.calendar.toString(),n)}toZonedDateTime(e,t){const n=xe(kr,e),r=Hn(n,this,dn(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 _t(Ft(r.dateAdd(Li(e),gt(t,vt),n).getISOFields()).add(Tt(e)).add(It(t)))}(e.getISOFields(),t,n);return qo({...r,calendar:e.calendar})}function Qo(e,t,n,r){const o=Be(r,6,0,0,9);return Jo(Pi(e,t,Oi(e,t),n,o))}On(Wo,"PlainDateTime"),Dn(Wo,Fe),Nn(Wo,Cn),vo(Wo,go({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{}));class ei extends Ge{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Di();super({...tn({isoYear:arguments.length>3&&void 0!==arguments[3]?arguments[3]:Yt,isoMonth:e,isoDay:t},1),calendar:xe(Ai,n)})}static from(e,t){if(Me(t),e instanceof ei)return ti(e.getISOFields());if("object"==typeof e)return Rr(e,t);const n=function(e){const t=ir(e)||rr(e);if(!t)throw fr("monthDay",e);return t}(String(e));return void 0===n.calendar&&(n.isoYear=Yt),ti(gr(n))}with(e,t){return $r(this,e,t)}equals(e){return!Wt(this,xe(ei,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=ln(e);return("iso8601"===n?function(e){return rt(e.isoMonth,2)+"-"+rt(e.isoDay,2)}(t):yn(t))+vn(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:u}=e;const c=void 0!==o&&void 0!==r?Nt(t.id,o,r):void 0;if(void 0===i){if(void 0===c)throw new TypeError("Must specify either a year or an era & eraYear");i=c}else if(void 0!==c&&c!==i)throw new RangeError("year and era/eraYear must match");if(void 0===u)throw new TypeError("Must specify day");const h=Me(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");u=t.daysInMonth(i,a)}}else if(void 0===a)throw new TypeError("Must specify either a month or monthCode");return[i,a,u]=en(i,a,u,t,h),Ut(t.epochMilliseconds(i,a,u))}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 Kt(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t+1,1,1))}function si(e,t,n,r){return Kt(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t,n,r))+1}On(ei,"PlainMonthDay"),Dn(ei),Nn(ei,["monthCode","day"]),vo(ei,go({month:"numeric",day:"numeric"},{weekday:void 0,year:void 0,hour:void 0,minute:void 0,second:void 0},!0));const ui={hebrew:6,chinese:0,dangi:0};class ci extends Ct{constructor(e){const t=hi(e);if(n=e,r=t.resolvedOptions().calendar,Ot(n)!==Ot(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 Jt(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),Kt(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=ui[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=pr(this.format,e);let n,r,o=parseInt(t.relatedYear||t.year);var i;return t.era&&(i=this.id,void 0!==Et[Ot(i)])&&(n=br(t.era),r=o,o=Nt(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=Rt(this.guessISOYear(e),1,1);for(o=Jt(o,400);;){const r=this.computeFieldsDumb(o);if(r.year<e)break;o=Jt(o,1-r.day),r.year===e&&(t.unshift(o),n.unshift(r.month)),o=Jt(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 Mr("en-US",{calendar:e,era:"short",year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}const li=Rt(1868,9,8),di={gregory:hn,japanese:class extends hn{constructor(){super(...arguments),this.format=hi("japanese")}computeFields(e){const t=super.computeFields(e);if(e>=li){const n=pr(this.format,e);t.era=br(n.era),t.eraYear=parseInt(n.relatedYear||n.year)}return t}},islamic:class extends ci{guessISOYear(e){return Math.ceil(32*e/33+622)}}},mi={iso8601:Ht};function fi(e){const t=(e=String(e)).toLocaleLowerCase();return mi[t]||(mi[t]=new(di[Ot(t)]||ci)(e))}const gi=Rt(1582,10,15),yi=Rt(622,7,18),Si={buddhist:gi,japanese:gi,roc:gi,islamic:yi,"islamic-rgsa":yi,indian:0},wi={};function pi(e,t){return vi(e.div(1e6).toNumber(),t)}function vi(e,t){if(function(e,t){return function(e){let t=wi[e];if(void 0===t){const n=Si[e];if(void 0===n)t=!1;else{let r=fi(e);r instanceof ci||(r=new ci(e));const o=n-864e5,i=r.computeFields(o);t=o!==r.epochMilliseconds(i.year,i.month,i.day)}wi[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-nt($t(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(Ht,e)-r+o)/7}const[Ii,Ti]=Oe();class Ai extends ze{constructor(e){super(),"islamicc"===e&&(e="islamic-civil"),Ti(this,fi(e))}static from(e){if(Ce(e))return function(e){const t=e.calendar;return void 0===t?e:Ce(t)&&void 0===t.calendar?t:new Ai(t)}(e);const t=rr(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 $t(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(Ht,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(Ae(e,an),Ii(this),t);return new Yi(n.isoYear,n.isoMonth,n.isoDay,this)}yearMonthFromFields(e,t){const n=oi({...Ae(e,on),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:u}=Ae(e,un);if(void 0===u)throw new TypeError("required property 'day' missing or undefined");if(void 0!==s?i=Yt:void 0!==r&&void 0!==o&&(i=Nt(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,u)}const c=oi({year:i,month:a,monthCode:s,day:u},n,t);return new ei(c.isoMonth,c.isoDay,this,n.normalizeISOYearForMonthDay(c.isoYear))}dateAdd(e,t,n){const r=Ii(this),o=function(e,t,n,r){e=Ln(e=Yn(e,t.years,n,r),t.months,n,r);let o=n.epochMilliseconds(e.year,e.month,e.day);const i=Math.trunc(It(t).div(Se).toNumber());return o=Jt(o,7*t.weeks+t.days+i),Ut(o)}(xe(Yi,e,n),xe(Ko,t),r,Me(n));return new Yi(o.isoYear,o.isoMonth,o.isoDay,this)}dateUntil(e,t,n){const r=Ii(this),o=xe(Yi,e),i=xe(Yi,t),a=De(n).largestUnit,s="auto"===a?6:je(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]=en(t.year,e.month,e.day,n,0),i=Xt(t,e),a=We(t.month,r)||We(t.day,o);return t.year-e.year-(a&&i&&a!==i?i:0)}(e,t,n),e=Yn(e,o,n,0);case 8:i=function(e,t,n){let r=0;const o=Xt(t,e);if(o){let{year:i}=e;for(;i!==t.year;)r+=n.monthsInYear(i)*o,i+=o;const[,a,s]=en(t.year,e.month,e.day,n,0);r+=t.month-a;const u=We(t.day,s);u&&o&&u!==o&&(r-=o)}return r}(e,t,n),e=Ln(e,i,n,0)}return s=Kt(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),yt({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 Ei(e,t)}toString(){return Ii(this).id}}function Di(){return new Ai("iso8601")}function Ei(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=Rt(t,n,r);return vi(o,e.id),e.computeFields(o)}function Ni(e){return void 0===e.calendar?Di():xe(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")}On(Ai,"Calendar");class Yi extends Ge{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Di();const o=tn({isoYear:e,isoMonth:t,isoDay:n},1),i=xe(Ai,r);!function(e,t){const n=Ft(e);uo(n.add(n.sign()<0?86399999999999:0)),pi(n,t)}(o,i.toString()),super({...o,calendar:i})}static from(e,t){return Me(t),e instanceof Yi?Li(e.getISOFields()):"object"==typeof e?Fr(e,t):Li(gr(Qn(String(e))))}static compare(e,t){return Wt(xe(Yi,e),xe(Yi,t))}with(e,t){return Br(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,xe(Ko,e).negated(),t)}until(e,t){return Fi(this,xe(Yi,e),!1,t)}since(e,t){return Fi(this,xe(Yi,e),!0,t)}equals(e){return!Wt(this,xe(Yi,e))}toString(e){const t=ln(e),n=this.getISOFields();return yn(n)+vn(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=xe(kr,t.timeZone),r=void 0===t.plainTime?void 0:xe(Io,t.plainTime);return Fo({...this.getISOFields(),...r?r.getISOFields():pt,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,Be(r,6,6,6,9)))}function Pi(e,t,n,r,o){return xo(_i(e,t,n,o.largestUnit),e,t,n,r,o)}function Ri(e,t,n,r,o){return xo(n.dateUntil(e,t,{largestUnit:Pe[o.largestUnit]}),e,t,n,r,o)}function _i(e,t,n,r){if(!be(r))return Ui(e,t,r);const o=Li({...e.getISOFields(),calendar:n});let i,a,s,u,c,h=Li({...t.getISOFields(),calendar:n});do{a=n.dateUntil(o,h,{largestUnit:Pe[r]}),i=e.add(a),s=Ui(i,t,5),u=a.sign,c=s.sign}while(u&&c&&u!==c&&(h=h.add({days:c})));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 At(jt(t).sub(jt(e)),n)}On(Yi,"PlainDate"),Dn(Yi),Nn(Yi,Cn),vo(Yi,go({year:"numeric",month:"numeric",day:"numeric",weekday:void 0},{hour:void 0,minute:void 0,second:void 0}));class ji extends Ve{constructor(e){super();const t=ct(e,!0);!function(e){-1!==ht(e,oo)&&1!==ht(e,ro)||Vt()}(t),this[Lt]=t}static from(e){if(e instanceof ji)return new ji(e.epochNanoseconds);const t=Xn(String(e)),n=t.offsetNanoseconds;if(void 0===n)throw new RangeError("Must specify an offset");return new ji(Ft(nn(t,1)).sub(n))}static fromEpochSeconds(e){return new ji(ct(e).mult(1e9))}static fromEpochMilliseconds(e){return new ji(ct(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(xe(ji,e),xe(ji,t))}add(e){return new ji(Pn(this[Lt],xe(Ko,e)))}subtract(e){return new ji(Pn(this[Lt],ft(xe(Ko,e))))}until(e,t){return Bi(this,xe(ji,e),t)}since(e,t){return Bi(xe(ji,e),this,t)}round(e){const t=Ze(e,0,5,!0);return new ji(function(e,t){const[n,r]=function(e){const t=_t(e);return[Pt(t.isoYear,t.isoMonth,t.isoDay),Tt(t)]}(e),o=lo(r,t);return n.add(o)}(this[Lt],t))}equals(e){return!Qt(this,xe(ji,e))}toString(e){const t=De(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(!Ce(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 Bi(e,t,n){const r=Be(n,3,0,0,5);return Jo(function(e,t,n){return At(tt(t.sub(e),we[n.smallestUnit]*n.roundingIncrement,n.roundingFunc),n.largestUnit)}(e[Lt],t[Lt],r))}On(ji,"Instant"),In(ji),vo(ji,mo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:void 0},{}));const Zi={zonedDateTimeISO:function(e){return Fo(xi("iso8601",e))},zonedDateTime:function(e,t){return Fo(xi(e,t))},plainDateTimeISO:function(e){return qo(xi("iso8601",e))},plainDateTime:function(e,t){return qo(xi(e,t))},plainDateISO:function(e){return Li(xi("iso8601",e))},plainDate:function(e,t){return Li(xi(e,t))},plainTimeISO:function(e){return To(xi("iso8601",e))},instant:function(){return new ji(zi())},timeZone:$i};function $i(){return new kr((new Mr).resolvedOptions().timeZone)}function xi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$i();const n=xe(kr,t);return{...Po(zi(),n)[0],timeZone:n,calendar:xe(Ai,e)}}function zi(){return ct(Date.now()).mult(1e6)}On(Zi,"Now");const Vi={PlainYearMonth:No,PlainMonthDay:ei,PlainDate:Yi,PlainTime:Io,PlainDateTime:Wo,ZonedDateTime:Lo,Instant:ji,Calendar:Ai,TimeZone:kr,Duration:Ko,Now:Zi,[Symbol.toStringTag]:"Temporal"};function Ki(e){return e*Math.PI/180}function Ji(e){return 180*e/Math.PI}class Gi{constructor(e,t,n,r,o){this.locationName=null;let i=0;o?i=r:o=r,this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(i),this.setTimeZone(o)}getElevation(){return this.elevation}setElevation(e){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 Wi=6356.9;class qi{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(qi.GEOMETRIC_ZENITH);return Number.isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(qi.GEOMETRIC_ZENITH);return Number.isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(qi.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(qi.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(qi.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(qi.GEOMETRIC_ZENITH);return Number.isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(qi.GEOMETRIC_ZENITH);return Number.isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(qi.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(qi.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(qi.ASTRONOMICAL_ZENITH)}static getTimeOffset(e,t){return null===e||NaN===t||Number.isNaN(t)?null:e.add({milliseconds:t})}getSunriseOffsetByDegrees(e){const t=this.getUTCSunrise0(e);return Number.isNaN(t)?null:this.getDateFromTime(t,!0)}getSunsetOffsetByDegrees(e){const t=this.getUTCSunset0(e);return Number.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 Ji(Math.acos(Wi/(Wi+e/1e3)))}adjustZenith(e,t){let n=e;return e===qi.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=qi.getSunriseUTC(qi.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=qi.getSunsetUTC(qi.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 qi.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(Number.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 Vi.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-qi.JULIAN_DAY_JAN_1_2000)/qi.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*qi.JULIAN_DAYS_PER_CENTURY+qi.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=Ki(qi.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 qi.getSunGeometricMeanLongitude(e)+qi.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return qi.getSunTrueLongitude(e)-.00569-.00478*Math.sin(Ki(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 qi.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(Ki(t))}static getSunDeclination(e){const t=qi.getObliquityCorrection(e),n=qi.getSunApparentLongitude(e),r=Math.sin(Ki(t))*Math.sin(Ki(n));return Ji(Math.asin(r))}static getEquationOfTime(e){const t=qi.getObliquityCorrection(e),n=qi.getSunGeometricMeanLongitude(e),r=qi.getEarthOrbitEccentricity(e),o=qi.getSunGeometricMeanAnomaly(e);let i=Math.tan(Ki(t)/2);i*=i;const a=Math.sin(2*Ki(n)),s=Math.sin(Ki(o));return 4*Ji(i*a-2*r*s+4*r*i*s*Math.cos(2*Ki(n))-.5*i*i*Math.sin(4*Ki(n))-1.25*r*r*Math.sin(2*Ki(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=Ki(e),o=Ki(t);return Math.acos(Math.cos(Ki(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=Ki(e),o=Ki(t);return-Math.acos(Math.cos(Ki(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=qi.getJulianDay(e.toPlainDate()),o=qi.getJulianCenturiesFromJulianDay(r),i=qi.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=Ki(n-a),u=Ki(qi.getSunDeclination(o)),c=Ki(t);return Ji(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=qi.getJulianDay(e.toPlainDate()),o=qi.getJulianCenturiesFromJulianDay(r),i=qi.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=Ki(n-a),u=Ki(qi.getSunDeclination(o)),c=Ki(t);return Ji(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(e,t,n,r){const o=qi.getJulianCenturiesFromJulianDay(e),i=qi.getSolarNoonUTC(o,n),a=qi.getJulianCenturiesFromJulianDay(e+i/1440);let s=qi.getEquationOfTime(a),u=qi.getSunDeclination(a),c=qi.getSunHourAngleAtSunrise(t,u,r),h=n-Ji(c),l=4*h,d=720+l-s;const m=qi.getJulianCenturiesFromJulianDay(qi.getJulianDayFromJulianCenturies(o)+d/1440);return s=qi.getEquationOfTime(m),u=qi.getSunDeclination(m),c=qi.getSunHourAngleAtSunrise(t,u,r),h=n-Ji(c),l=4*h,d=720+l-s,d}static getSolarNoonUTC(e,t){const n=qi.getJulianCenturiesFromJulianDay(qi.getJulianDayFromJulianCenturies(e)+t/360);let r=qi.getEquationOfTime(n);const o=720+4*t-r,i=qi.getJulianCenturiesFromJulianDay(qi.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=qi.getEquationOfTime(i),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=qi.getJulianCenturiesFromJulianDay(e),i=qi.getSolarNoonUTC(o,n),a=qi.getJulianCenturiesFromJulianDay(e+i/1440);let s=qi.getEquationOfTime(a),u=qi.getSunDeclination(a),c=qi.getSunHourAngleAtSunset(t,u,r),h=n-Ji(c),l=4*h,d=720+l-s;const m=qi.getJulianCenturiesFromJulianDay(qi.getJulianDayFromJulianCenturies(o)+d/1440);return s=qi.getEquationOfTime(m),u=qi.getSunDeclination(m),c=qi.getSunHourAngleAtSunset(t,u,r),h=n-Ji(c),l=4*h,d=720+l-s,d}}qi.GEOMETRIC_ZENITH=90,qi.CIVIL_ZENITH=96,qi.NAUTICAL_ZENITH=102,qi.ASTRONOMICAL_ZENITH=108,qi.JULIAN_DAY_JAN_1_2000=2451545,qi.JULIAN_DAYS_PER_CENTURY=36525;const Xi=new Map,Qi={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"},ea=new Map;class ta extends Gi{constructor(e,t,n,r,o,i,a,s){const u="number"==typeof e?e:parseFloat(e);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const c="number"==typeof t?t:parseFloat(t);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,u,c,"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=ea.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return ea.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return Xi.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 Qi[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":Qi[t]}static addLocation(e,t){const n=e.toLowerCase();return!Xi.has(n)&&(Xi.set(n,t),!0)}}[["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]].forEach((e=>{const t=new ta(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);ta.addLocation(t.getName(),t)}));const na=new Map;const ra=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function oa(e,t){const n=function(e){const t=na.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 na.set(e,n),n}(e).format(t),r=ra.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=ia(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function ia(e){return e<0?"-00"+ia(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function aa(e){return e<10?"0"+e:String(e)}function sa(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}class ua{constructor(e,t){const n=y.isDate(t)?t:ue.isHDate(t)?t.greg():te(`invalid date: ${t}`);this.date=n,this.gloc=e;const r=Vi.PlainDate.from({year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate()});this.noaa=new qi(e,r)}timeAtAngle(e,t){const n=90+e;return sa(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return sa(this.noaa.getSunrise())}seaLevelSunrise(){return sa(this.noaa.getSeaLevelSunrise())}sunset(){return sa(this.noaa.getSunset())}seaLevelSunset(){return sa(this.noaa.getSeaLevelSunset())}dawn(){return sa(this.noaa.getBeginCivilTwilight())}dusk(){return sa(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new ua(this.gloc,e).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return sa(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 sa(qi.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}sofZmanShmaMGA(){const e=this.sunriseOffset(-72,!1),t=(this.sunsetOffset(72,!1)-e)/12;return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const e=this.sunriseOffset(-72,!1),t=(this.sunsetOffset(72,!1)-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=oa("UTC",t),r=oa(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?"+":"-")+aa(Math.floor(r/60))+":"+aa(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:oa(e,t).substring(0,19)+ua.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.seaLevelSunrise();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=this.seaLevelSunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const ca={FRI:5,SAT:6};function ha(e,t,n,r,o){let i=!1,a=n==ca.SAT,s=e?e.getFlags():de.LIGHT_CANDLES;void 0!==e?n!=ca.FRI&&(s&(de.LIGHT_CANDLES_TZEIS|de.CHANUKAH_CANDLES)?a=!0:s&de.YOM_TOV_ENDS&&(i=!0,a=!0)):n==ca.SAT&&(i=!0,s=de.LIGHT_CANDLES_TZEIS);const u=a?o.havdalahMins:o.candleLightingMins,c=new ua(r,t),h=u?c.sunsetOffset(u,!0):c.tzeit(o.havdalahDeg);return isNaN(h.getTime())?null:i?new da(t,s,h,r,o.havdalahMins,e):new ma(t,s,h,r,e)}class la extends fe{constructor(e,t,n,r,o,i){super(e,t,n),this.eventTime=ua.roundTime(r),this.location=o;const a=o.getTimeFormatter();this.eventTimeStr=ua.formatTime(this.eventTime,a),void 0!==i&&(this.linkedEvent=i)}render(e){return l.gettext(this.getDesc(),e)+": "+this.eventTimeStr}renderBrief(e){return l.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 da extends la{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=l.gettext(this.getDesc(),e);if(this.havdalahMins){const n=l.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class ma extends la{constructor(e,t,n,r,o){super(e,"Candle lighting",t,n,r,o)}getEmoji(){return"🕯️"}}function fa(e,t,n,r,o){return isNaN(t.getTime())?null:new la(e,n,r.getFlags(),t,o,r)}const ga=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ya=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],Sa="בַּלַּ֥יְלָה";class wa{constructor(e,t){let n=t-7;n<0&&(n+=ue.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 ue.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}}class pa extends fe{constructor(e,t,n){const r=new wa(t,n);super(e,`Molad ${r.getMonthName()} ${t}`,de.MOLAD),this.molad=r}render(e){const t=this.molad;"string"==typeof(e=e||l.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=l.gettext(t.getMonthName(),e),o=(n?ya:ga)[t.getDow()],i=t.getMinutes(),a=t.getHour(),s=t.getChalakim(),u=l.gettext("Molad",e),c=l.lookupTranslation("min",e)||"minutes",h=l.gettext("chalakim",e);if(n){return`${u} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${a} ${a<5?Sa:a<12?"בַּבֹּקֶר":a<17?"בַּצׇּהֳרַיִים":a<21?"בָּעֶרֶב":Sa}, ו-${i} ${c} ו-${s} ${h}`}return`${u} ${r}: ${o}, ${i} ${c} and ${s} ${h} after ${a}:00`}}const va=[null,"Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],ba=[null,"Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"];class Ma extends fe{constructor(e,t){if(super(e,`Omer ${t}`,de.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";const t=va[this.weekNumber],n=va[this.daysWithinWeeks];switch(e){case"he":const e=l.gettext(t,"he");return`${l.gettext(n,"he")} ${2===this.weekNumber||6===this.weekNumber?"שֶׁבִּ":"שֶׁבְּ"}${e}`.normalize();case"translit":const r=ba[this.weekNumber];return`${ba[this.daysWithinWeeks]} ${2===this.weekNumber||6===this.weekNumber?"shebi":"sheb'"}${r}`;default:return`${n} within ${t}`}}render(e){e=e||l.getLocaleName();const t=this.omer;return("he"==e?o(t):l.ordinal(t,e))+" "+l.gettext("day of the Omer",e)}renderBrief(e){return l.gettext("Omer",e)+" "+l.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||l.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return ka(this.omer);if("he-x-nonikud"===e)return l.hebrewStripNikkud(ka(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 Ia=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Ta=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָׁה","שִׁשָׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Aa="שְׁנֵי",Da="יָמִים",Ea=Aa+" "+Da,Ca="שָׁבוּעוֹת",Na="יוֹם",Oa=Na+" "+Ta[1];function ka(e){const t=Math.floor(e/10),n=e%10;let r="הַיוֹם ";if(10<e&&e<20?r+=Ta[n]+" עָשָׂר":e>9&&(r+=Ta[n],n&&(r+=" וְ")),e>2?((e>20||10===e||20===e)&&(r+=Ia[t]),r+=e<11?Ta[n]+" "+Da+" ":" "+Na+" "):r+=1===e?Oa+" ":Ea+" ",e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?Ta[t]+" "+Ca+" ":1==t?"שָׁבוּעַ "+Ta[1]+" ":Aa+" "+Ca+" ",n&&(r+="וְ",r+=n>2?Ta[n]+" "+Da+" ":1==n?Oa+" ":Ea+" ")}return r+="לָעוֹמֶר",r.normalize()}class Ha{constructor(e,t){e=+e;const n=ue.longCheshvan(e),r=ue.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const i=new ue(1,E.TISHREI,e),a=i.abs(),s=this.roshHashanaDay=i.getDay()+1;this.firstSaturday=ue.dayOnOrBefore(6,a+6);const u=this.leap=+ue.isLeapYear(e);this.il=Boolean(t);const c=`${u}${s}${o}`;if(Ga[c])this.key=c,this.theSedraArray=Ga[c];else{const e=this.key=c+ +this.il;this.theSedraArray=Ga[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||l.getLocaleName();let o=l.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+l.gettext(n[1],r)}return l.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 ue(this.firstSaturday+7*t)}if("string"==typeof e){const t=La.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 ue(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=La.get(t);if(La.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:ue.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=ue.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return new Ha(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[Ya[o]],chag:!1,num:o+1};const i=Fa(o);return{parsha:[Ya[i],Ya[i+1]],chag:!1,num:[i+1,i+2]}}}const Ya=["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"],La=new Map;for(let e=0;e<Ya.length;e++){const t=Ya[e];La.set(t,e)}function Fa(e){return-e}const Pa="Rosh Hashana",Ra="Yom Kippur",_a="Sukkot",Ua="Sukkot Shabbat Chol ha-Moed",ja="Shmini Atzeret",Ba=Ua,Za="Pesach",$a="Pesach I",xa="Pesach Shabbat Chol ha-Moed",za="Pesach VII",Va="Pesach VIII",Ka="Shavuot";function Ja(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Ga={"020":[51,52].concat(Ba,Ja(0,20),Fa(21),23,24,Za,25,Fa(26),Fa(28),30,Fa(31),Ja(33,40),Fa(41),Ja(43,49),Fa(50)),"0220":[51,52].concat(Ba,Ja(0,20),Fa(21),23,24,Za,25,Fa(26),Fa(28),30,Fa(31),33,Ka,Ja(34,37),Fa(38),40,Fa(41),Ja(43,49),Fa(50)),"0510":[52].concat(Ra,Ba,Ja(0,20),Fa(21),23,24,$a,Va,25,Fa(26),Fa(28),30,Fa(31),Ja(33,40),Fa(41),Ja(43,50)),"0511":[52].concat(Ra,Ba,Ja(0,20),Fa(21),23,24,Za,25,Fa(26),Fa(28),Ja(30,40),Fa(41),Ja(43,50)),"052":[52].concat(Ra,Ua,Ja(0,24),za,25,Fa(26),Fa(28),30,Fa(31),Ja(33,40),Fa(41),Ja(43,50)),"070":[].concat(Pa,52,_a,ja,Ja(0,20),Fa(21),23,24,za,25,Fa(26),Fa(28),30,Fa(31),Ja(33,40),Fa(41),Ja(43,50)),"072":[].concat(Pa,52,_a,ja,Ja(0,20),Fa(21),23,24,xa,25,Fa(26),Fa(28),30,Fa(31),Ja(33,40),Fa(41),Ja(43,49),Fa(50)),1200:[51,52].concat(Ua,Ja(0,27),xa,Ja(28,33),Ka,Ja(34,37),Fa(38),40,Fa(41),Ja(43,49),Fa(50)),1201:[51,52].concat(Ua,Ja(0,27),xa,Ja(28,40),Fa(41),Ja(43,49),Fa(50)),1220:[51,52].concat(Ua,Ja(0,27),$a,Va,Ja(28,40),Fa(41),Ja(43,50)),1221:[51,52].concat(Ua,Ja(0,27),Za,Ja(28,50)),150:[52].concat(Ra,Ua,Ja(0,28),za,Ja(29,50)),152:[52].concat(Ra,Ua,Ja(0,28),xa,Ja(29,49),Fa(50)),170:[].concat(Pa,52,_a,ja,Ja(0,27),xa,Ja(28,40),Fa(41),Ja(43,49),Fa(50)),1720:[].concat(Pa,52,_a,ja,Ja(0,27),xa,Ja(28,33),Ka,Ja(34,37),Fa(38),40,Fa(41),Ja(43,49),Fa(50))};Ga["0221"]=Ga["020"],Ga["0310"]=Ga["0220"],Ga["0311"]=Ga["020"],Ga[1310]=Ga[1220],Ga[1311]=Ga[1221],Ga[1721]=Ga[170];class Wa extends fe{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("-"),de.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||l.getLocaleName(),n=this.parsha;let r=l.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+l.gettext(n[1],e)}return(l.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 qa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Xa=function(e){return e&&e.Math===Math&&e},Qa=Xa("object"==typeof globalThis&&globalThis)||Xa("object"==typeof window&&window)||Xa("object"==typeof self&&self)||Xa("object"==typeof qa&&qa)||Xa("object"==typeof qa&&qa)||function(){return this}()||Function("return this")(),es=function(e){try{return!!e()}catch(e){return!0}},ts=!es((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),ns={exports:{}},rs=!es((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),os=rs,is=Function.prototype,as=is.call,ss=os&&is.bind.bind(as,as),us=os?ss:function(e){return function(){return as.apply(e,arguments)}},cs="object"==typeof document&&document.all,hs={all:cs,IS_HTMLDDA:void 0===cs&&void 0!==cs},ls=hs.all,ds=hs.IS_HTMLDDA?function(e){return"function"==typeof e||e===ls}:function(e){return"function"==typeof e},ms=function(e){return null==e},fs=ms,gs=TypeError,ys=function(e){if(fs(e))throw new gs("Can't call method on "+e);return e},Ss=ys,ws=Object,ps=function(e){return ws(Ss(e))},vs=us({}.hasOwnProperty),bs=Object.hasOwn||function(e,t){return vs(ps(e),t)},Ms=ts,Is=bs,Ts=Function.prototype,As=Ms&&Object.getOwnPropertyDescriptor,Ds=Is(Ts,"name"),Es={EXISTS:Ds,PROPER:Ds&&"something"===function(){}.name,CONFIGURABLE:Ds&&(!Ms||Ms&&As(Ts,"name").configurable)},Cs=Qa,Ns=Object.defineProperty,Os=function(e,t){try{Ns(Cs,e,{value:t,configurable:!0,writable:!0})}catch(n){Cs[e]=t}return t},ks=Os,Hs="__core-js_shared__",Ys=Qa[Hs]||ks(Hs,{}),Ls=ds,Fs=Ys,Ps=us(Function.toString);Ls(Fs.inspectSource)||(Fs.inspectSource=function(e){return Ps(e)});var Rs,_s,Us=Fs.inspectSource,js=ds,Bs=Qa.WeakMap,Zs=js(Bs)&&/native code/.test(String(Bs)),$s=ds,xs=hs.all,zs=hs.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:$s(e)||e===xs}:function(e){return"object"==typeof e?null!==e:$s(e)},Vs={},Ks=zs,Js=Qa.document,Gs=Ks(Js)&&Ks(Js.createElement),Ws=function(e){return Gs?Js.createElement(e):{}},qs=Ws,Xs=!ts&&!es((function(){return 7!==Object.defineProperty(qs("div"),"a",{get:function(){return 7}}).a})),Qs=ts&&es((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),eu=zs,tu=String,nu=TypeError,ru=function(e){if(eu(e))return e;throw new nu(tu(e)+" is not an object")},ou=rs,iu=Function.prototype.call,au=ou?iu.bind(iu):function(){return iu.apply(iu,arguments)},su=Qa,uu=ds,cu=function(e,t){return arguments.length<2?(n=su[e],uu(n)?n:void 0):su[e]&&su[e][t];var n},hu=us({}.isPrototypeOf),lu=Qa,du="undefined"!=typeof navigator&&String(navigator.userAgent)||"",mu=lu.process,fu=lu.Deno,gu=mu&&mu.versions||fu&&fu.version,yu=gu&&gu.v8;yu&&(_s=(Rs=yu.split("."))[0]>0&&Rs[0]<4?1:+(Rs[0]+Rs[1])),!_s&&du&&(!(Rs=du.match(/Edge\/(\d+)/))||Rs[1]>=74)&&(Rs=du.match(/Chrome\/(\d+)/))&&(_s=+Rs[1]);var Su=_s,wu=es,pu=Qa.String,vu=!!Object.getOwnPropertySymbols&&!wu((function(){var e=Symbol("symbol detection");return!pu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Su&&Su<41})),bu=vu&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mu=cu,Iu=ds,Tu=hu,Au=Object,Du=bu?function(e){return"symbol"==typeof e}:function(e){var t=Mu("Symbol");return Iu(t)&&Tu(t.prototype,Au(e))},Eu=String,Cu=ds,Nu=function(e){try{return Eu(e)}catch(e){return"Object"}},Ou=TypeError,ku=function(e){if(Cu(e))return e;throw new Ou(Nu(e)+" is not a function")},Hu=ms,Yu=au,Lu=ds,Fu=zs,Pu=TypeError,Ru={exports:{}},_u=Ys;(Ru.exports=function(e,t){return _u[e]||(_u[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.3",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"});var Uu=Ru.exports,ju=us,Bu=0,Zu=Math.random(),$u=ju(1..toString),xu=function(e){return"Symbol("+(void 0===e?"":e)+")_"+$u(++Bu+Zu,36)},zu=Uu,Vu=bs,Ku=xu,Ju=vu,Gu=bu,Wu=Qa.Symbol,qu=zu("wks"),Xu=Gu?Wu.for||Wu:Wu&&Wu.withoutSetter||Ku,Qu=function(e){return Vu(qu,e)||(qu[e]=Ju&&Vu(Wu,e)?Wu[e]:Xu("Symbol."+e)),qu[e]},ec=au,tc=zs,nc=Du,rc=function(e,t){var n=e[t];return Hu(n)?void 0:ku(n)},oc=function(e,t){var n,r;if("string"===t&&Lu(n=e.toString)&&!Fu(r=Yu(n,e)))return r;if(Lu(n=e.valueOf)&&!Fu(r=Yu(n,e)))return r;if("string"!==t&&Lu(n=e.toString)&&!Fu(r=Yu(n,e)))return r;throw new Pu("Can't convert object to primitive value")},ic=TypeError,ac=Qu("toPrimitive"),sc=function(e,t){if(!tc(e)||nc(e))return e;var n,r=rc(e,ac);if(r){if(void 0===t&&(t="default"),n=ec(r,e,t),!tc(n)||nc(n))return n;throw new ic("Can't convert object to primitive value")}return void 0===t&&(t="number"),oc(e,t)},uc=Du,cc=function(e){var t=sc(e,"string");return uc(t)?t:t+""},hc=ts,lc=Xs,dc=Qs,mc=ru,fc=cc,gc=TypeError,yc=Object.defineProperty,Sc=Object.getOwnPropertyDescriptor,wc="enumerable",pc="configurable",vc="writable";Vs.f=hc?dc?function(e,t,n){if(mc(e),t=fc(t),mc(n),"function"==typeof e&&"prototype"===t&&"value"in n&&vc in n&&!n[vc]){var r=Sc(e,t);r&&r[vc]&&(e[t]=n.value,n={configurable:pc in n?n[pc]:r[pc],enumerable:wc in n?n[wc]:r[wc],writable:!1})}return yc(e,t,n)}:yc:function(e,t,n){if(mc(e),t=fc(t),mc(n),lc)try{return yc(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new gc("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var bc,Mc,Ic,Tc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ac=Vs,Dc=Tc,Ec=ts?function(e,t,n){return Ac.f(e,t,Dc(1,n))}:function(e,t,n){return e[t]=n,e},Cc=xu,Nc=Uu("keys"),Oc=function(e){return Nc[e]||(Nc[e]=Cc(e))},kc={},Hc=Zs,Yc=Qa,Lc=zs,Fc=Ec,Pc=bs,Rc=Ys,_c=Oc,Uc=kc,jc="Object already initialized",Bc=Yc.TypeError,Zc=Yc.WeakMap;if(Hc||Rc.state){var $c=Rc.state||(Rc.state=new Zc);$c.get=$c.get,$c.has=$c.has,$c.set=$c.set,bc=function(e,t){if($c.has(e))throw new Bc(jc);return t.facade=e,$c.set(e,t),t},Mc=function(e){return $c.get(e)||{}},Ic=function(e){return $c.has(e)}}else{var xc=_c("state");Uc[xc]=!0,bc=function(e,t){if(Pc(e,xc))throw new Bc(jc);return t.facade=e,Fc(e,xc,t),t},Mc=function(e){return Pc(e,xc)?e[xc]:{}},Ic=function(e){return Pc(e,xc)}}var zc={set:bc,get:Mc,has:Ic,enforce:function(e){return Ic(e)?Mc(e):bc(e,{})},getterFor:function(e){return function(t){var n;if(!Lc(t)||(n=Mc(t)).type!==e)throw new Bc("Incompatible receiver, "+e+" required");return n}}},Vc=us,Kc=es,Jc=ds,Gc=bs,Wc=ts,qc=Es.CONFIGURABLE,Xc=Us,Qc=zc.enforce,eh=zc.get,th=String,nh=Object.defineProperty,rh=Vc("".slice),oh=Vc("".replace),ih=Vc([].join),ah=Wc&&!Kc((function(){return 8!==nh((function(){}),"length",{value:8}).length})),sh=String(String).split("String"),uh=ns.exports=function(e,t,n){"Symbol("===rh(th(t),0,7)&&(t="["+oh(th(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Gc(e,"name")||qc&&e.name!==t)&&(Wc?nh(e,"name",{value:t,configurable:!0}):e.name=t),ah&&n&&Gc(n,"arity")&&e.length!==n.arity&&nh(e,"length",{value:n.arity});try{n&&Gc(n,"constructor")&&n.constructor?Wc&&nh(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Qc(e);return Gc(r,"source")||(r.source=ih(sh,"string"==typeof t?t:"")),e};Function.prototype.toString=uh((function(){return Jc(this)&&eh(this).source||Xc(this)}),"toString");var ch=ns.exports,hh=ch,lh=Vs,dh=ru,mh=ts,fh=function(e,t,n){return n.get&&hh(n.get,t,{getter:!0}),n.set&&hh(n.set,t,{setter:!0}),lh.f(e,t,n)},gh=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},yh=es,Sh=Qa.RegExp,wh=Sh.prototype,ph=mh&&yh((function(){var e=!0;try{Sh(".","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(wh,"flags").get.call(t)!==r||n!==r}));ph&&fh(wh,"flags",{configurable:!0,get:gh});const vh=0,bh=2,Mh=5,Ih=6,Th=E.NISAN,Ah=E.IYYAR;function Dh(e){if(e<5708)return null;let t;const n=new ue(15,Th,e).getDay();return t=n===vh?2:n===Ih?3:e<5764?4:n===bh?5:4,new ue(t,Ah,e)}const Eh=E.NISAN,Ch=E.IYYAR,Nh=E.SIVAN,Oh=E.TAMUZ,kh=E.AV,Hh=E.ELUL,Yh=E.TISHREI,Lh=E.CHESHVAN,Fh=E.KISLEV,Ph=E.SHVAT,Rh=E.ADAR_II,_h=de.CHAG,Uh=de.LIGHT_CANDLES,jh=de.YOM_TOV_ENDS,Bh=de.CHUL_ONLY,Zh=de.IL_ONLY,$h=de.LIGHT_CANDLES_TZEIS,xh=de.CHANUKAH_CANDLES,zh=de.MAJOR_FAST,Vh=de.MINOR_HOLIDAY,Kh=de.EREV,Jh=de.CHOL_HAMOED,Gh="🫓",Wh="🌿🍋",qh=[{mm:Yh,dd:2,desc:"Rosh Hashana II",flags:_h|jh,emoji:"🍏🍯"},{mm:Yh,dd:9,desc:"Erev Yom Kippur",flags:Kh|Uh},{mm:Yh,dd:10,desc:"Yom Kippur",flags:_h|zh|jh},{mm:Yh,dd:14,desc:"Erev Sukkot",flags:Bh|Kh|Uh,emoji:Wh},{mm:Yh,dd:15,desc:"Sukkot I",flags:Bh|_h|$h,emoji:Wh},{mm:Yh,dd:16,desc:"Sukkot II",flags:Bh|_h|jh,emoji:Wh},{mm:Yh,dd:17,desc:"Sukkot III (CH''M)",flags:Bh|Jh,chmDay:1,emoji:Wh},{mm:Yh,dd:18,desc:"Sukkot IV (CH''M)",flags:Bh|Jh,chmDay:2,emoji:Wh},{mm:Yh,dd:19,desc:"Sukkot V (CH''M)",flags:Bh|Jh,chmDay:3,emoji:Wh},{mm:Yh,dd:20,desc:"Sukkot VI (CH''M)",flags:Bh|Jh,chmDay:4,emoji:Wh},{mm:Yh,dd:22,desc:"Shmini Atzeret",flags:Bh|_h|$h},{mm:Yh,dd:23,desc:"Simchat Torah",flags:Bh|_h|jh},{mm:Yh,dd:14,desc:"Erev Sukkot",flags:Zh|Kh|Uh,emoji:Wh},{mm:Yh,dd:15,desc:"Sukkot I",flags:Zh|_h|jh,emoji:Wh},{mm:Yh,dd:16,desc:"Sukkot II (CH''M)",flags:Zh|Jh,chmDay:1,emoji:Wh},{mm:Yh,dd:17,desc:"Sukkot III (CH''M)",flags:Zh|Jh,chmDay:2,emoji:Wh},{mm:Yh,dd:18,desc:"Sukkot IV (CH''M)",flags:Zh|Jh,chmDay:3,emoji:Wh},{mm:Yh,dd:19,desc:"Sukkot V (CH''M)",flags:Zh|Jh,chmDay:4,emoji:Wh},{mm:Yh,dd:20,desc:"Sukkot VI (CH''M)",flags:Zh|Jh,chmDay:5,emoji:Wh},{mm:Yh,dd:22,desc:"Shmini Atzeret",flags:Zh|_h|jh},{mm:Yh,dd:21,desc:"Sukkot VII (Hoshana Raba)",flags:Uh|Jh,chmDay:-1,emoji:Wh},{mm:Fh,dd:24,desc:"Chanukah: 1 Candle",flags:Kh|Vh|xh,emoji:"🕎1️⃣"},{mm:Ph,dd:15,desc:"Tu BiShvat",flags:Vh,emoji:"🌳"},{mm:Rh,dd:13,desc:"Erev Purim",flags:Kh|Vh,emoji:"🎭️📜"},{mm:Rh,dd:14,desc:"Purim",flags:Vh,emoji:"🎭️📜"},{mm:Rh,dd:15,desc:"Shushan Purim",flags:Vh,emoji:"🎭️📜"},{mm:Eh,dd:14,desc:"Erev Pesach",flags:Zh|Kh|Uh,emoji:"🫓🍷"},{mm:Eh,dd:15,desc:"Pesach I",flags:Zh|_h|jh,emoji:Gh},{mm:Eh,dd:16,desc:"Pesach II (CH''M)",flags:Zh|Jh,chmDay:1,emoji:Gh},{mm:Eh,dd:17,desc:"Pesach III (CH''M)",flags:Zh|Jh,chmDay:2,emoji:Gh},{mm:Eh,dd:18,desc:"Pesach IV (CH''M)",flags:Zh|Jh,chmDay:3,emoji:Gh},{mm:Eh,dd:19,desc:"Pesach V (CH''M)",flags:Zh|Jh,chmDay:4,emoji:Gh},{mm:Eh,dd:20,desc:"Pesach VI (CH''M)",flags:Zh|Jh|Uh,chmDay:5,emoji:Gh},{mm:Eh,dd:21,desc:"Pesach VII",flags:Zh|_h|jh,emoji:Gh},{mm:Eh,dd:14,desc:"Erev Pesach",flags:Bh|Kh|Uh,emoji:"🫓🍷"},{mm:Eh,dd:15,desc:"Pesach I",flags:Bh|_h|$h,emoji:"🫓🍷"},{mm:Eh,dd:16,desc:"Pesach II",flags:Bh|_h|jh,emoji:Gh},{mm:Eh,dd:17,desc:"Pesach III (CH''M)",flags:Bh|Jh,chmDay:1,emoji:Gh},{mm:Eh,dd:18,desc:"Pesach IV (CH''M)",flags:Bh|Jh,chmDay:2,emoji:Gh},{mm:Eh,dd:19,desc:"Pesach V (CH''M)",flags:Bh|Jh,chmDay:3,emoji:Gh},{mm:Eh,dd:20,desc:"Pesach VI (CH''M)",flags:Bh|Jh|Uh,chmDay:4,emoji:Gh},{mm:Eh,dd:21,desc:"Pesach VII",flags:Bh|_h|$h,emoji:Gh},{mm:Eh,dd:22,desc:"Pesach VIII",flags:Bh|_h|jh,emoji:Gh},{mm:Ch,dd:14,desc:"Pesach Sheni",flags:Vh},{mm:Ch,dd:18,desc:"Lag BaOmer",flags:Vh,emoji:"🔥"},{mm:Nh,dd:5,desc:"Erev Shavuot",flags:Kh|Uh,emoji:"⛰️🌸"},{mm:Nh,dd:6,desc:"Shavuot",flags:Zh|_h|jh,emoji:"⛰️🌸"},{mm:Nh,dd:6,desc:"Shavuot I",flags:Bh|_h|$h,emoji:"⛰️🌸"},{mm:Nh,dd:7,desc:"Shavuot II",flags:Bh|_h|jh,emoji:"⛰️🌸"},{mm:kh,dd:15,desc:"Tu B'Av",flags:Vh,emoji:"❤️"},{mm:Hh,dd:1,desc:"Rosh Hashana LaBehemot",flags:Vh,emoji:"🐑"},{mm:Hh,dd:29,desc:"Erev Rosh Hashana",flags:Kh|Uh,emoji:"🍏🍯"}],Xh=[{firstYear:5727,mm:Ch,dd:28,desc:"Yom Yerushalayim",chul:!0},{firstYear:5737,mm:Fh,dd:6,desc:"Ben-Gurion Day",satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Ph,dd:30,desc:"Family Day"},{firstYear:5758,mm:Lh,dd:12,desc:"Yitzhak Rabin Memorial Day",friSatMovetoThu:!0},{firstYear:5764,mm:Ch,dd:10,desc:"Herzl Day",satPostponeToSun:!0},{firstYear:5765,mm:Oh,dd:29,desc:"Jabotinsky Day",satPostponeToSun:!0},{firstYear:5769,mm:Lh,dd:29,desc:"Sigd",chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Eh,dd:10,desc:"Yom HaAliyah",chul:!0},{firstYear:5777,mm:Lh,dd:7,desc:"Yom HaAliyah School Observance"}];class Qh extends fe{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()&de.IL_ONLY?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&de.SPECIAL_SHABBAT?"🕍":"✡️"}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 el="Rosh Chodesh";class tl extends Qh{constructor(e,t){super(e,`${el} ${t}`,de.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13);return l.gettext(el,e)+" "+l.gettext(t,e)}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class nl extends Qh{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const rl="Shabbat Mevarchim Chodesh";class ol extends fe{constructor(e,t){super(e,`${rl} ${t}`,de.SHABBAT_MEVARCHIM),this.monthName=t;const n=e.getFullYear(),r=e.getMonth(),o=r==ue.monthsInYear(n)?E.NISAN:r+1,i=new pa(e,n,o);this.memo=i.render("en")}basename(){return this.getDesc()}render(e){return l.gettext(rl,e)+" "+l.gettext(this.monthName,e)}}class il extends Qh{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return l.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const al="Yom Kippur Katan";class sl extends Qh{constructor(e,t){super(e,`${al} ${t}`,de.MINOR_FAST|de.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 l.gettext(al,e)+" "+l.gettext(this.nextMonthName,e)}renderBrief(e){return l.gettext(al,e)}url(){}}const ul=E.NISAN,cl=E.TAMUZ,hl=E.AV,ll=E.ELUL,dl=E.TISHREI,ml=E.KISLEV,fl=E.TEVET,gl=E.ADAR_I,yl=de.CHAG,Sl=de.LIGHT_CANDLES_TZEIS,wl=de.CHANUKAH_CANDLES,pl=de.MINOR_FAST,vl=de.SPECIAL_SHABBAT,bl=de.MODERN_HOLIDAY,Ml=de.MAJOR_FAST,Il=de.MINOR_HOLIDAY,Tl=de.EREV;class Al{has(e){return void 0!==this[e]}get(e){return this[e]}set(e,t){this[e]=t}keys(){return Object.keys(this)}}const Dl=new Al;function El(e,t){const n=`${e}-${t?1:0}`;let r=Dl.get(n);return r||(r=new Ha(e,t),Dl.set(n,r)),r}const Cl={emoji:"🇮🇱"},Nl=new Map,Ol=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function kl(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=Nl.get(e);if(t)return t;const n=new ue(1,dl,e),r=new ue(15,ul,e),o=new Al;function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((e=>{const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&de.EREV?n.unshift(e):n.push(e):o.set(t,[e])}))}qh.forEach((t=>{const n=new ue(t.dd,t.mm,e),r=new Qh(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),i(r)})),i(new il(n,e,yl|Sl)),i(new Qh(new ue(3+(4==n.getDay()),dl,e),"Tzom Gedaliah",pl)),i(new Qh(new ue(ue.dayOnOrBefore(6,7+n.abs())),"Shabbat Shuva",vl));const a=ue.shortKislev(e)?new ue(1,fl,e):new ue(30,ml,e);i(new Qh(a,"Chag HaBanot",Il));for(let t=2;t<=8;t++){const n=new ue(23+t,ml,e);i(new Qh(n,`Chanukah: ${t} Candles`,Il|wl,{chanukahDay:t-1,emoji:"🕎"+Ol[t]}))}i(new Qh(new ue(32,ml,e),"Chanukah: 8th Day",Il,{chanukahDay:8,emoji:"🕎"})),i(new nl(new ue(10,fl,e),"Asara B'Tevet",pl));const s=r.abs();i(new Qh(new ue(ue.dayOnOrBefore(6,s-43)),"Shabbat Shekalim",vl),new Qh(new ue(ue.dayOnOrBefore(6,s-30)),"Shabbat Zachor",vl),new Qh(new ue(s-(2==r.getDay()?33:31)),"Ta'anit Esther",pl)),i(new Qh(new ue(ue.dayOnOrBefore(6,s-14)-7),"Shabbat Parah",vl),new Qh(new ue(ue.dayOnOrBefore(6,s-14)),"Shabbat HaChodesh",vl),new Qh(new ue(ue.dayOnOrBefore(6,s-1)),"Shabbat HaGadol",vl),new Qh(6==r.prev().getDay()?r.onOrBefore(4):new ue(14,ul,e),"Ta'anit Bechorot",pl)),i(new Qh(new ue(ue.dayOnOrBefore(6,new ue(1,dl,e+1).abs()-4)),"Leil Selichot",Il,{emoji:"🕍"})),0==r.getDay()&&i(new Qh(new ue(16,E.ADAR_II,e),"Purim Meshulash",Il)),ue.isLeapYear(e)&&(i(new Qh(new ue(14,gl,e),"Purim Katan",Il,{emoji:"🎭️"})),i(new Qh(new ue(15,gl,e),"Shushan Purim Katan",Il,{emoji:"🎭️"})));const u=function(e){if(e<5711)return null;let t=new ue(27,Th,e);return t.getDay()===Mh?t=new ue(26,Th,e):t.getDay()===vh&&(t=new ue(28,Th,e)),t}(e);u&&i(new Qh(u,"Yom HaShoah",bl));const c=Dh(e);c&&i(new Qh(c,"Yom HaZikaron",bl,Cl),new Qh(c.next(),"Yom HaAtzma'ut",bl,Cl)),Xh.forEach((t=>{if(e>=t.firstYear){let n=new ue(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new ue(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?bl:bl|de.IL_ONLY,a=new Qh(n,t.desc,o);t.suppressEmoji||(a.emoji="🇮🇱"),i(a)}}));let h,l=new ue(17,cl,e);6==l.getDay()&&(l=new ue(18,cl,e),h={observed:!0}),i(new Qh(l,"Tzom Tammuz",pl,h));let d,m=new ue(9,hl,e),f="Tish'a B'Av";6==m.getDay()&&(m=m.next(),d={observed:!0},f+=" (observed)");const g=m.abs();i(new Qh(new ue(ue.dayOnOrBefore(6,g)),"Shabbat Chazon",vl),new Qh(m.prev(),"Erev Tish'a B'Av",Tl|Ml,d),new Qh(m,f,Ml,d),new Qh(new ue(ue.dayOnOrBefore(6,g+7)),"Shabbat Nachamu",vl));const y=ue.monthsInYear(e);for(let t=1;t<=y;t++){const n=ue.getMonthName(t,e);if(30==(t==ul?ue.daysInMonth(ue.monthsInYear(e-1),e-1):ue.daysInMonth(t-1,e))?(i(new tl(new ue(1,t,e),n)),i(new tl(new ue(30,t-1,e),n))):t!==dl&&i(new tl(new ue(1,t,e),n)),t==ll)continue;const r=ue.getMonthName(t+1,e);i(new ol(new ue(29,t,e).onOrBefore(6),r))}for(let t=E.IYYAR;t<=y;t++){const n=t+1;if(n===E.TISHREI||n===E.CHESHVAN||n===E.TEVET)continue;let r=new ue(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const a=ue.getMonthName(n,e);i(new sl(r,a))}const S=El(e,!1).find(15);i(new Qh(S,"Shabbat Shirah",vl));const w=function(e){const t=ue.isLeapYear(e),n=t?E.ADAR_II:ul,r=t?20:1,o=ue.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 ue(w);i(new Qh(e,"Birkat Hachamah",Il,{emoji:"☀️"}))}return Nl.set(e,o),o}const Hl=new Map;class Yl{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);Hl.set(e,t)}static lookup(e,t){const n=Hl.get(e);return"function"==typeof n?n(t):null}}const Ll="5.0.0-rc1";var Fl={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"]}}};l.addLocale("ashkenazi",Fl),l.addLocale("a",Fl);var Pl={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:["חֲלָקִים"]}}};l.addLocale("he",Pl),l.addLocale("h",Pl);const Rl=Pl.contexts[""],_l={};Object.keys(Rl).forEach((e=>{_l[e]=[l.hebrewStripNikkud(Rl[e][0])]}));const Ul={headers:Pl.headers,contexts:{"":_l}};l.addLocale("he-x-NoNikud",Ul);var jl={},Bl={},Zl={}.propertyIsEnumerable,$l=Object.getOwnPropertyDescriptor,xl=$l&&!Zl.call({1:2},1);Bl.f=xl?function(e){var t=$l(this,e);return!!t&&t.enumerable}:Zl;var zl=us,Vl=zl({}.toString),Kl=zl("".slice),Jl=es,Gl=function(e){return Kl(Vl(e),8,-1)},Wl=Object,ql=us("".split),Xl=Jl((function(){return!Wl("z").propertyIsEnumerable(0)}))?function(e){return"String"===Gl(e)?ql(e,""):Wl(e)}:Wl,Ql=Xl,ed=ys,td=function(e){return Ql(ed(e))},nd=ts,rd=au,od=Bl,id=Tc,ad=td,sd=cc,ud=bs,cd=Xs,hd=Object.getOwnPropertyDescriptor;jl.f=nd?hd:function(e,t){if(e=ad(e),t=sd(t),cd)try{return hd(e,t)}catch(e){}if(ud(e,t))return id(!rd(od.f,e,t),e[t])};var ld=ds,dd=Vs,md=ch,fd=Os,gd={},yd=Math.ceil,Sd=Math.floor,wd=Math.trunc||function(e){var t=+e;return(t>0?Sd:yd)(t)},pd=wd,vd=function(e){var t=+e;return t!=t||0===t?0:pd(t)},bd=vd,Md=Math.max,Id=Math.min,Td=vd,Ad=Math.min,Dd=function(e){return e>0?Ad(Td(e),9007199254740991):0},Ed=td,Cd=function(e,t){var n=bd(e);return n<0?Md(n+t,0):Id(n,t)},Nd=function(e){return Dd(e.length)},Od=function(e){return function(t,n,r){var o,i=Ed(t),a=Nd(i),s=Cd(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}},kd={includes:Od(!0),indexOf:Od(!1)},Hd=bs,Yd=td,Ld=kd.indexOf,Fd=kc,Pd=us([].push),Rd=function(e,t){var n,r=Yd(e),o=0,i=[];for(n in r)!Hd(Fd,n)&&Hd(r,n)&&Pd(i,n);for(;t.length>o;)Hd(r,n=t[o++])&&(~Ld(i,n)||Pd(i,n));return i},_d=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ud=Rd,jd=_d.concat("length","prototype");gd.f=Object.getOwnPropertyNames||function(e){return Ud(e,jd)};var Bd={};Bd.f=Object.getOwnPropertySymbols;var Zd=cu,$d=gd,xd=Bd,zd=ru,Vd=us([].concat),Kd=Zd("Reflect","ownKeys")||function(e){var t=$d.f(zd(e)),n=xd.f;return n?Vd(t,n(e)):t},Jd=bs,Gd=Kd,Wd=jl,qd=Vs,Xd=es,Qd=ds,em=/#|\.prototype\./,tm=function(e,t){var n=rm[nm(e)];return n===im||n!==om&&(Qd(t)?Xd(t):!!t)},nm=tm.normalize=function(e){return String(e).replace(em,".").toLowerCase()},rm=tm.data={},om=tm.NATIVE="N",im=tm.POLYFILL="P",am=tm,sm=Qa,um=jl.f,cm=Ec,hm=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(ld(n)&&md(n,i,r),r.global)o?e[t]=n:fd(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:dd.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},lm=Os,dm=function(e,t,n){for(var r=Gd(t),o=qd.f,i=Wd.f,a=0;a<r.length;a++){var s=r[a];Jd(e,s)||n&&Jd(n,s)||o(e,s,i(t,s))}},mm=am,fm={},gm=Rd,ym=_d,Sm=Object.keys||function(e){return gm(e,ym)},wm=ts,pm=Qs,vm=Vs,bm=ru,Mm=td,Im=Sm;fm.f=wm&&!pm?Object.defineProperties:function(e,t){bm(e);for(var n,r=Mm(t),o=Im(t),i=o.length,a=0;i>a;)vm.f(e,n=o[a++],r[n]);return e};var Tm,Am=cu("document","documentElement"),Dm=ru,Em=fm,Cm=_d,Nm=kc,Om=Am,km=Ws,Hm="prototype",Ym="script",Lm=Oc("IE_PROTO"),Fm=function(){},Pm=function(e){return"<"+Ym+">"+e+"</"+Ym+">"},Rm=function(e){e.write(Pm("")),e.close();var t=e.parentWindow.Object;return e=null,t},_m=function(){try{Tm=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;_m="undefined"!=typeof document?document.domain&&Tm?Rm(Tm):(t=km("iframe"),n="java"+Ym+":",t.style.display="none",Om.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Pm("document.F=Object")),e.close(),e.F):Rm(Tm);for(var r=Cm.length;r--;)delete _m[Hm][Cm[r]];return _m()};Nm[Lm]=!0;var Um=Object.create||function(e,t){var n;return null!==e?(Fm[Hm]=Dm(e),n=new Fm,Fm[Hm]=null,n[Lm]=e):n=_m(),void 0===t?n:Em.f(n,t)},jm=Qu,Bm=Um,Zm=Vs.f,$m=jm("unscopables"),xm=Array.prototype;void 0===xm[$m]&&Zm(xm,$m,{configurable:!0,value:Bm(null)});var zm=kd.includes,Vm=function(e){xm[$m][e]=!0};(function(e,t){var n,r,o,i,a,s=e.target,u=e.global,c=e.stat;if(n=u?sm:c?sm[s]||lm(s,{}):(sm[s]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=um(n,r))&&a.value:n[r],!mm(u?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;dm(i,o)}(e.sham||o&&o.sham)&&cm(i,"sham",!0),hm(n,r,i,e)}})({target:"Array",proto:!0,forced:es((function(){return!Array(1).includes()}))},{includes:function(e){return zm(this,e,arguments.length>1?arguments[1]:void 0)}}),Vm("includes");function Km(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const Jm=new Map,Gm={shacharit:!1,mincha:!1,allCongs:!1};function Wm(e,t){return qm(e,t,!0)}function qm(e,t,n){const r=e.getFullYear(),o=`${r}-${t?1:0}`,i=Jm.get(o),a=i||function(e,t){const n=ue.isLeapYear(e),r=12+n;let o=new ue(9,E.AV,e);6===o.getDay()&&(o=o.next());let i=new ue(15,E.ADAR_II,e);6===i.getDay()&&(i=i.next());const a=[].concat(Km(1,r).map((t=>new ue(1,t,e))),Km(1,r).filter((t=>30===ue.daysInMonth(t,e))).map((t=>new ue(30,t,e))),new ue(2,E.TISHREI,e),Km(1,ue.daysInMonth(E.NISAN,e)).map((t=>new ue(t,E.NISAN,e))),new ue(18,E.IYYAR,e),Km(1,8-(t?1:0)).map((t=>new ue(t,E.SIVAN,e))),o,new ue(15,E.AV,e),new ue(29,E.ELUL,e),Km(9,24-(t?1:0)).map((t=>new ue(t,E.TISHREI,e))),Km(25,33).map((t=>new ue(t,E.KISLEV,e))),new ue(15,E.SHVAT,e),new ue(14,E.ADAR_II,e),i,n?new ue(14,E.ADAR_I,e):[]),s=[].concat(Km(1,13).map((t=>new ue(t,E.SIVAN,e))),Km(20,31).map((t=>new ue(t,E.TISHREI,e))),new ue(14,E.IYYAR,e),e>=5708?Dh(e).next():[],e>=5727?new ue(28,E.IYYAR,e):[]),u=[].concat(new ue(29,E.ELUL,e-1),new ue(9,E.TISHREI,e),new ue(14,E.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:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(r,t);i||Jm.set(o,a);const s=e.abs();if(a.none.indexOf(s)>-1)return Gm;const u=e.getDay(),c={shacharit:!1,mincha:!1,allCongs:!1};-1===a.some.indexOf(s)&&(c.allCongs=!0),6!==u&&(c.shacharit=!0);const h=s+1;if(n&&-1===a.yesPrev.indexOf(h)){const e=qm(new ue(h),t,!1);c.mincha=e.shacharit}else c.mincha=5!==u;return!c.allCongs||c.mincha||c.shacharit?c:Gm}const Xm=E.NISAN,Qm=E.SIVAN,ef=E.ELUL,tf=E.TISHREI,nf=de.LIGHT_CANDLES,rf=de.YOM_TOV_ENDS,of=de.CHUL_ONLY,af=de.IL_ONLY,sf=de.LIGHT_CANDLES_TZEIS,uf=de.CHANUKAH_CANDLES,cf=de.MINOR_FAST,hf=de.SPECIAL_SHABBAT,lf=de.MODERN_HOLIDAY,df=de.MAJOR_FAST,mf=de.ROSH_CHODESH,ff=de.PARSHA_HASHAVUA,gf=de.DAF_YOMI,yf=de.MISHNA_YOMI,Sf=de.NACH_YOMI,wf=de.YERUSHALMI_YOMI,pf=de.OMER_COUNT,vf=de.SHABBAT_MEVARCHIM,bf=de.MINOR_HOLIDAY,Mf=de.EREV,If=de.CHOL_HAMOED,Tf=de.YOM_KIPPUR_KATAN,Af=new Set,Df={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};const Ef={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},Cf={281184:40,294801:30,293067:30};function Nf(e){if("number"==typeof e)return e;if(y.isDate(e))return y.greg2abs(e);if(ue.isHDate(e))return e.abs();throw new TypeError(`Invalid date type: ${e}`)}function Of(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&mf&&delete e.noRoshChodesh;t&lf&&delete e.noModern;t&cf&&delete e.noMinorFast;t&hf&&delete e.noSpecialShabbat;t&ff&&(e.sedrot=!0);t&(gf|yf|Sf|wf)&&(e.dailyLearning=e.dailyLearning||{},t&gf&&(e.dailyLearning.dafYomi=!0),t&yf&&(e.dailyLearning.mishnaYomi=!0),t&Sf&&(e.dailyLearning.nachYomi=!0),t&wf&&(e.dailyLearning.yerushalmi=1));t&pf&&(e.omer=!0);t&vf&&(e.shabbatMevarchim=!0);t&Tf&&(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|=mf|rf|cf|hf|lf|df|bf|Mf|If|nf|sf|uf),e.candlelighting&&(r|=nf|sf|rf),e.noRoshChodesh&&(r&=~mf),e.noModern&&(r&=~lf),e.noMinorFast&&(r&=~cf),e.noSpecialShabbat&&(r&=~hf,r&=~vf),r|=n?af:of,e.sedrot&&(r|=ff),e.omer&&(r|=pf),e.shabbatMevarchim&&(r|=vf),e.yomKippurKatan&&(r|=Tf),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=gf),t.mishnaYomi&&(r|=yf),t.nachYomi&&(r|=Sf),t.yerushalmi&&(r|=wf)}return r}const kf=nf|sf|uf|rf,Hf=new ta(0,0,!1,"UTC"),Yf={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 Lf(e){return e.observedInIsrael()}function Ff(e){return e.observedInDiaspora()}const Pf=new Map;class Rf{static calendar(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t,n;t={},n=e,Object.keys(n).forEach((e=>t[e]=n[e])),e=t,function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof ta))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=Cf[e];"number"==typeof r&&(n=r);const o=Ef[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)}(e);const r=e.location=e.location||Hf,o=e.il=e.il||r.il||!1;if(e.mask=Of(e),e.ashkenazi||e.locale){if(e.locale&&"string"!=typeof e.locale)throw new TypeError(`Invalid options.locale: ${e.locale}`);const t=e.ashkenazi?"ashkenazi":e.locale;if(!l.useLocale(t))throw new TypeError(`Locale '${t}' not found; did you forget to import @hebcal/locales?`)}else l.useLocale("en");const i=[];let a,s,u,c,h=-1;const d=function(e){if(e.start&&!e.end||e.end&&!e.start)throw new TypeError("Both options.start and options.end are required");if(e.start&&e.end)return[Nf(e.start),Nf(e.end)];const t=Boolean(e.isHebrewYear),n=void 0!==e.year?parseInt(e.year,10):t?(new ue).getFullYear():(new Date).getFullYear();if(isNaN(n))throw new RangeError(`Invalid year ${e.year}`);if(t&&n<1)throw new RangeError(`Invalid Hebrew year ${n}`);let r=NaN;e.month&&(r=t?ue.monthNum(e.month):e.month);const o=parseInt(e.numYears,10)||1;if(t){const t=new ue(1,r||tf,n);let i=t.abs();const a=e.month?i+t.daysInMonth():new ue(1,tf,n+o).abs()-1;return!r&&n>1&&i--,[i,a]}{const t=e.month?r-1:0,i=new Date(n,t,1);n<100&&i.setFullYear(n);const a=y.greg2abs(i);let s;if(e.month)s=a+y.daysInMonth(r,n)-1;else{const e=n+o,t=new Date(e,0,1);e<100&&t.setFullYear(e),s=y.greg2abs(t)-1}return[a,s]}}(e);!function(e){Object.keys(e).forEach((e=>{void 0!==Df[e]||Af.has(e)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${e}`),Af.add(e))}))}(e);const m=d[0],f=d[1];y.abs2greg(m).getFullYear()<100&&(e.candlelighting=!1);for(let t=m;t<=f;t++){const n=new ue(t),l=n.getFullYear();l!=h&&(h=l,s=kl(h),e.sedrot&&(a=El(h,o)),e.omer&&(u=ue.hebrew2abs(h,Xm,16),c=ue.hebrew2abs(h,Qm,5)));const d=i.length,m=n.getDay();let f;if((s.get(n.toString())||[]).forEach((t=>{f=_f(i,t,e,f,m)})),e.sedrot&&6===m){const e=a.lookup(t);e.chag||i.push(new Wa(n,e.parsha,o,e.num))}const g=e.dailyLearning;if("object"==typeof g&&Object.keys(g).forEach((e=>{const t=g[e];if(t){const r="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,o=Yl.lookup(r,n);o&&i.push(o)}})),e.omer&&t>=u&&t<=c){const o=new Ma(n,t-u+1);if(e.candlelighting){const e=new ua(r,n.prev()).tzeit(7.0833);isNaN(e.getTime())||(o.alarm=e)}i.push(o)}const y=n.getMonth();if(e.molad&&6==m&&y!=ef&&n.getDate()>=23&&n.getDate()<=29){const e=y==ue.monthsInYear(l)?Xm:y+1;i.push(new pa(n,l,e))}if(f||!e.candlelighting||5!=m&&6!=m||(f=ha(void 0,n,m,r,e),5===m&&f&&a&&(f.memo=a.getString(t))),f instanceof da&&(0===e.havdalahMins||0===e.havdalahDeg)&&(f=null),f&&i.push(f),e.addHebrewDates||e.addHebrewDatesForEvents&&d!=i.length){const e=new ge(n);d==i.length?i.push(e):i.splice(d,0,e)}}return i}static getBirthdayOrAnniversary(e,t){const n=ee(e,t);return new ue(n)}static getYahrzeit(e,t){const n=Q(e,t);return new ue(n)}static getHolidaysForYear(e){return kl(e)}static getHolidaysForYearArray(e,t){const n=`${e}-${t?1:0}`;let r=Pf.get(n);if(r)return r;const o=kl(e),i=ue.hebrew2abs(e,tf,1),a=ue.hebrew2abs(e+1,tf,1)-1;r=[];const s=t?Lf:Ff;for(let e=i;e<=a;e++){const t=new ue(e),n=o.get(t.toString());if(n){const e=n.filter(s);r=r.concat(e)}}return Pf.set(n,r),r}static getHolidaysOnDate(e,t){const n=ue.isHDate(e)?e:new ue(e),r=kl(n.getFullYear()).get(n.toString());if(void 0===t||void 0===r)return r;const o=t?Lf:Ff;return r.filter(o)}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===Yf[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 Ll}static getSedra(e,t){return El(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===E.NISAN&&(15===o||16===o)&&e.getFlags()&de.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()&de.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(Rf.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return Wm(e,t)}}function _f(e,t,n,r,o){const i=n.il;if(!t.observedIn(i))return r;const a=t.getFlags();if(!n.yomKippurKatan&&a&Tf||n.noModern&&a&lf)return r;const s=n.location,u=Boolean(a&df),c=Boolean(a&cf);if(n.candlelighting&&(u||c)&&(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 ua(i,o);if("Erev Tish'a B'Av"===n){const t=s.sunset();e.startEvent=fa(r,t,"Fast begins",e,i)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=fa(r,s.tzeit(a),"Fast ends",e,i);else{const t=s.alotHaShachar();e.startEvent=fa(r,t,"Fast begins",e,i),5===o.getDay()||14===r.getDate()&&r.getMonth()===E.NISAN||(e.endEvent=fa(r,s.tzeit(a),"Fast ends",e,i))}return e}(t,n),t.startEvent&&(u||c&&!n.noMinorFast)&&e.push(t.startEvent)),a&n.mask||!a&&!n.userMask){if(n.candlelighting&&a&kf){const e=t.getDate();if(r=ha(t,e,o,s,n),a&uf&&r&&!n.noHolidays){const n=5===o||6===o?r:function(e,t,n){const r=new ua(n,t.greg());return fa(t,r.dusk(),e.getDesc(),e,n)}(t,e,s),i={eventTime:n.eventTime,eventTimeStr:n.eventTimeStr,location:s};t.chanukahDay&&(i.chanukahDay=t.chanukahDay),t.emoji&&(i.emoji=t.emoji),t=new Qh(t.getDate(),t.getDesc(),a,i),r=void 0}}(!n.noHolidays||n.yomKippurKatan&&a&Tf)&&e.push(t)}return t.endEvent&&(u||c&&!n.noMinorFast)&&e.push(t.endEvent),r}return e.AsaraBTevetEvent=nl,e.CandleLightingEvent=ma,e.DailyLearning=Yl,e.Event=fe,e.GeoLocation=Gi,e.HDate=ue,e.HavdalahEvent=da,e.HebrewCalendar=Rf,e.HebrewDateEvent=ge,e.HolidayEvent=Qh,e.Locale=l,e.Location=ta,e.MevarchimChodeshEvent=ol,e.Molad=wa,e.MoladEvent=pa,e.NOAACalculator=qi,e.OmerEvent=Ma,e.ParshaEvent=Wa,e.RoshChodeshEvent=tl,e.RoshHashanaEvent=il,e.Sedra=Ha,e.TimedEvent=la,e.Zmanim=ua,e.flags=de,e.gematriya=o,e.gematriyaStrToNum=i,e.months=E,e.parshiot=Ya,e.version=Ll,e}({});
1
+ /*! @hebcal/core v5.0.0-rc2 */
2
+ var hebcal=function(e){"use strict";const t={"א":1,"ב":2,"ג":3,"ד":4,"ה":5,"ו":6,"ז":7,"ח":8,"ט":9,"י":10,"כ":20,"ל":30,"מ":40,"נ":50,"ס":60,"ע":70,"פ":80,"צ":90,"ק":100,"ר":200,"ש":300,"ת":400},n=new Map;function r(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 o(e){const t=parseInt(e,10);if(!t)throw new TypeError(`invalid parameter to gematriya ${e}`);let o="";const i=Math.floor(t/1e3);if(i>0&&5!==i){const e=r(i);for(const t of e)o+=n.get(t);o+="׳"}const a=r(t%1e3);if(1==a.length)return o+n.get(a[0])+"׳";for(let e=0;e<a.length;e++)e+1===a.length&&(o+="״"),o+=n.get(a[e]);return o}function i(e){let n=0;const r=e.indexOf("׳");if(-1!==r&&r!==e.length-1){n+=1e3*i(e.substring(0,r)),e=e.substring(r)}for(const r of e){const e=t[r];"number"==typeof e&&(n+=e)}return n}Object.keys(t).forEach((e=>{const r=t[e];n.set(r,e)}));const a={headers:{"plural-forms":"nplurals=2; plural=(n!=1);"},contexts:{"":{}}},s={h:"he",a:"ashkenazi",s:"en","":"en"},u=new Map;let c=null,h=null;class l{static lookupTranslation(e,t){const n=null==t?void 0:t.toLowerCase(),r=("string"==typeof t&&u.get(n)||c)[e];if(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`);u.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=u.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=u.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.keys(o).forEach((e=>{r[e]=o[e]}))}static useLocale(e){const t=e.toLowerCase(),n=u.get(t);if(!n)throw new RangeError(`Locale '${e}' not found`);return h=s[t]||t,c=n,c}static getLocaleName(){return h}static getLocaleNames(){return Array.from(u.keys()).sort(((e,t)=>e.localeCompare(t)))}static ordinal(e,t){const n=(null==t?void 0:t.toLowerCase())||h;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,"")}}l.addLocale("en",a),l.addLocale("s",a),l.addLocale("",a),l.useLocale("en");const d=[0,31,28,31,30,31,30,31,31,30,31,30,31],m=[d,d.slice()];function f(e,t){return e-t*Math.floor(e/t)}function g(e,t){return Math.floor(e/t)}m[1][2]=29,e.greg=void 0,function(e){function t(e){return!(e%4||!(e%100)&&e%400)}function n(e){return"object"==typeof e&&Date.prototype.isPrototypeOf(e)}function r(e,n,r){const o=e-1;return 365*o+g(o,4)-g(o,100)+g(o,400)+g(367*n-362,12)+(n<=2?0:t(e)?-1:-2)+r}e.monthNames=["","January","February","March","April","May","June","July","August","September","October","November","December"],e.isLeapYear=t,e.daysInMonth=function(e,n){return m[+t(n)][e]},e.isDate=n,e.greg2abs=function(e){if(!n(e))throw new TypeError(`Argument not a Date: ${e}`);return r(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=g(t,146097),r=f(t,146097),o=g(r,36524),i=f(r,36524),a=g(i,1461),s=g(f(i,1461),365),u=400*n+100*o+4*a+s;return 4!=o&&4!=s?u+1:u}(e=Math.trunc(e)),o=g(12*(e-r(n,1,1)+(e<r(n,3,1)?0:t(n)?1:2))+373,367),i=e-r(n,o,1)+1,a=new Date(n,o-1,i);return n<100&&n>=0&&a.setFullYear(n),a}}(e.greg||(e.greg={}));const y=1,S=2,w=4,p=6,v=7,b=8,M=9,I=10,T=12,A=13,D={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},E=["","Nisan","Iyyar","Sivan","Tamuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Sh'vat"],C=[E.concat(["Adar","Nisan"]),E.concat(["Adar I","Adar II","Nisan"])],N=new Map,O=-1373428,k=365.24682220597794;function H(e,t){if("number"!=typeof e||isNaN(e))throw new TypeError(`invalid parameter '${t}' not a number: ${e}`)}function Y(e,t,n){if(H(e,"year"),H(t,"month"),H(n,"day"),e<1)throw new RangeError(`hebrew2abs: invalid year ${e}`);let r=n;if(t<v){for(let t=v;t<=R(e);t++)r+=_(t,e);for(let n=y;n<t;n++)r+=_(n,e)}else for(let n=v;n<t;n++)r+=_(n,e);return O+j(e)+r-1}function L(e){return O+j(e)}function F(e){if(H(e,"abs"),(e=Math.trunc(e))<=O)throw new RangeError(`abs2hebrew: ${e} is before epoch`);let t=Math.floor((e-O)/k);for(;L(t)<=e;)++t;--t;let n=e<Y(t,1,1)?7:1;for(;e>Y(t,n,_(n,t));)++n;return{yy:t,mm:n,dd:1+e-Y(t,n,1)}}function P(e){return(1+7*e)%19<7}function R(e){return+P(e)+12}function _(e,t){switch(e){case S:case w:case p:case I:case A:return 29}return e===T&&!P(t)||e===b&&!Z(t)||e===M&&$(t)?29:30}function U(e,t){if(H(e,"month"),H(t,"year"),e<1||e>14)throw new TypeError(`bad month argument ${e}`);return C[+P(t)][e]}function j(e){const t=N.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&&!P(e)||1==a%7&&i>=16789&&P(t))&&s++;return s%7==0||s%7==3||s%7==5?s+1:s}(e);return N.set(e,n),n}function B(e){return j(e+1)-j(e)}function Z(e){return B(e)%10==5}function $(e){return B(e)%10==3}const x=D.NISAN,z=D.CHESHVAN,V=D.KISLEV,K=D.TEVET,J=D.SHVAT,G=D.ADAR_I,W=D.ADAR_II;function q(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 F(t);if(e.greg.isDate(t)){return F(e.greg.greg2abs(t))}throw new TypeError(`Argument not a Date: ${t}`)}function X(t,n){const r=function(e,t){let n=q(t);if(e<=n.yy)return;n.mm!=z||30!=n.dd||Z(n.yy+1)?n.mm==V&&30==n.dd&&$(n.yy+1)?n=F(Y(e,K,1)-1):n.mm==W?n.mm=R(e):n.mm!=G||30!=n.dd||P(e)||(n.dd=30,n.mm=J):n=F(Y(e,V,1)-1);n.mm!=z||30!=n.dd||Z(e)?n.mm==V&&30==n.dd&&$(e)&&(n.mm=K,n.dd=1):(n.mm=V,n.dd=1);return n.yy=e,n}(t,n);return void 0===r?r:e.greg.abs2greg(Y(r.yy,r.mm,r.dd))}function Q(t,n){const r=function(e,t){const n=q(t),r=n.yy;if(e===r)return n;if(e<r)return;const o=P(r);let i=n.mm,a=n.dd;i==G&&!o||i==W&&o?i=R(e):i!=z||30!=a||Z(e)?i==V&&30==a&&$(e)?(i=K,a=1):i==G&&30==a&&o&&!P(e)&&(i=x,a=1):(i=V,a=1);return{yy:e,mm:i,dd:a}}(t,n);return void 0===r?r:e.greg.abs2greg(Y(r.yy,r.mm,r.dd))}function ee(e){throw new TypeError(e)}const te="day",ne="week",re="month",oe="year",ie={d:te,w:ne,M:re,y:oe},ae={day:te,week:ne,month:re,year:oe};class se{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.day=this.month=1,r=parseInt(r,10),isNaN(r))throw new TypeError(`HDate called with bad year argument: ${r}`);if(this.year=r,this.setMonth(n),t=parseInt(t,10),isNaN(t))throw new TypeError(`HDate called with bad day argument: ${t}`);this.setDate(t)}else{void 0===t&&(t=new Date);const n="number"!=typeof t||isNaN(t)?e.greg.isDate(t)?e.greg.greg2abs(t):se.isHDate(t)?{dd:t.day,mm:t.month,yy:t.year}:ee(`HDate called with bad argument: ${t}`):t,r="number"==typeof n,o=r?F(n):n;this.day=o.dd,this.month=o.mm,this.year=o.yy,r&&(this.abs0=n)}}getFullYear(){return this.year}isLeapYear(){return P(this.year)}getMonth(){return this.month}getTishreiMonth(){const e=R(this.getFullYear());return(this.getMonth()+e-6)%e||e}daysInMonth(){return _(this.getMonth(),this.getFullYear())}getDate(){return this.day}getDay(){return function(e,t){return e-t*Math.floor(e/t)}(this.abs(),7)}setMonth(e){return this.month=se.monthNum(e),ue(this),this}setDate(e){return this.day=e,ue(this),this}greg(){return e.greg.abs2greg(this.abs())}abs(){return"number"!=typeof this.abs0&&(this.abs0=Y(this.year,this.month,this.day)),this.abs0}static hebrew2abs(e,t,n){return Y(e,t,n)}static abs2hebrew(e){return F(e)}getMonthName(){return U(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)||l.getLocaleName(),n=this.getDate(),r=l.gettext(this.getMonthName(),t),o=`${l.ordinal(n,t)}${se.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=l.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=l.gettext(this.getMonthName(),n),i=this.getFullYear();return o(t)+" "+r+" "+o(i)}before(e){return he(e,this,-1)}onOrBefore(e){return he(e,this,0)}nearest(e){return he(e,this,3)}onOrAfter(e){return he(e,this,6)}after(e){return he(e,this,7)}next(){return new se(this.abs()+1)}prev(){return new se(this.abs()-1)}add(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(!(e=parseInt(e,10)))return new se(this);if(t=se.standardizeUnits(t),t===te)return new se(this.abs()+e);if(t===ne)return new se(this.abs()+7*e);if(t===oe)return new se(this.getDate(),this.getMonth(),this.getFullYear()+e);if(t===re){let t=new se(this);const n=e>0?1:-1;e=Math.abs(e);for(let r=0;r<e;r++)t=new se(t.abs()+n*t.daysInMonth());return t}}static standardizeUnits(e){const t=ie[e]||String(e||"").toLowerCase().replace(/s$/,"");return ae[t]||ee(`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(!se.isHDate(e))throw new TypeError(`Bad argument: ${e}`);return this.abs()-e.abs()}isSameDate(e){return!!se.isHDate(e)&&(this.year==e.year&&this.month==e.month&&this.day==e.day)}toString(){const e=this.getDate(),t=this.getFullYear();return`${e} ${this.getMonthName()} ${t}`}static isLeapYear(e){return P(e)}static monthsInYear(e){return R(e)}static daysInMonth(e,t){return _(e,t)}static getMonthName(e,t){return U(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):se.monthFromName(e)}static daysInYear(e){return B(e)}static longCheshvan(e){return Z(e)}static shortKislev(e){return $(e)}static monthFromName(e){if("number"==typeof e){if(isNaN(e)||e<1||e>14)throw new RangeError(`Invalid month name: ${e}`);return e}let t=l.hebrewStripNikkud(e).trim().toLowerCase();switch("ב"===t[0]&&(t=t.substring(1)),t[0]){case"n":case"נ":if("o"==t[1])break;return D.NISAN;case"i":return D.IYYAR;case"e":return D.ELUL;case"c":case"ח":return D.CHESHVAN;case"k":case"כ":return D.KISLEV;case"s":switch(t[1]){case"i":return D.SIVAN;case"h":return D.SHVAT}break;case"t":switch(t[1]){case"a":return D.TAMUZ;case"i":return D.TISHREI;case"e":return D.TEVET}break;case"a":switch(t[1]){case"v":return D.AV;case"d":return/(1|[^i]i|a|א)$/i.test(e)?D.ADAR_I:D.ADAR_II}break;case"ס":return D.SIVAN;case"ט":return D.TEVET;case"ש":return D.SHVAT;case"א":switch(t[1]){case"ב":return D.AV;case"ד":return/(1|[^i]i|a|א)$/i.test(e)?D.ADAR_I:D.ADAR_II;case"י":return D.IYYAR;case"ל":return D.ELUL}break;case"ת":switch(t[1]){case"מ":return D.TAMUZ;case"ש":return D.TISHREI}}throw new RangeError(`Unable to parse month name: ${e}`)}static dayOnOrBefore(e,t){return t-(t-e)%7}static isHDate(e){return null!==e&&"object"==typeof e&&"number"==typeof e.year&&"number"==typeof e.month&&"number"==typeof e.day&&"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=i(n[0]),o=se.monthFromName(n[1]);let a=i(n[2]);return a<1e3&&(a+=t),new se(r,o,a)}}function ue(e){ce(e),function(e){e.day<1&&(e.month==D.TISHREI&&(e.year-=1),e.day+=_(e.month,e.year),e.month-=1,ue(e));e.day>_(e.month,e.year)&&(e.month===D.ELUL&&(e.year+=1),e.day-=_(e.month,e.year),e.month+=1,ue(e));ce(e)}(e)}function ce(e){e.month!==D.ADAR_II||e.isLeapYear()?e.month<1?(e.month+=R(e.year),e.year-=1,ue(e)):e.month>R(e.year)&&(e.month-=R(e.year),e.year+=1,ue(e)):(e.month-=1,ue(e)),delete e.abs0}function he(e,t,n){return new se(se.dayOnOrBefore(e,t.abs()+n))}const le={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},de=[[le.MAJOR_FAST,"holiday","major","fast"],[le.CHANUKAH_CANDLES,"holiday","major"],[le.HEBREW_DATE,"hebdate"],[le.MINOR_FAST,"holiday","fast"],[le.MINOR_HOLIDAY,"holiday","minor"],[le.MODERN_HOLIDAY,"holiday","modern"],[le.MOLAD,"molad"],[le.OMER_COUNT,"omer"],[le.PARSHA_HASHAVUA,"parashat"],[le.ROSH_CHODESH,"roshchodesh"],[le.SHABBAT_MEVARCHIM,"mevarchim"],[le.SPECIAL_SHABBAT,"holiday","shabbat"],[le.USER_EVENT,"user"]];class me{constructor(e,t,n,r){this.date=e,this.desc=t,this.mask=+n,"object"==typeof r&&null!==r&&Object.keys(r).forEach((e=>this[e]=r[e]))}getDate(){return this.date}getDesc(){return this.desc}getFlags(){return this.mask}render(e){return l.gettext(this.desc,e)}renderBrief(e){return this.render(e)}getEmoji(){return this.emoji||null}basename(){return this.getDesc()}url(){}observedInIsrael(){return!(this.mask&le.CHUL_ONLY)}observedInDiaspora(){return!(this.mask&le.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 de)if(e&t[0])return t.slice(1);return["unknown"]}}class fe extends me{constructor(e){super(e,e.toString(),le.HEBREW_DATE)}render(e){const t=(null==e?void 0:e.toLowerCase())||l.getLocaleName(),n=this.getDate();switch(t){case"h":case"he":case"he-x-nonikud":const e=n.getDate(),r=l.gettext(n.getMonthName(),t),i=n.getFullYear();return o(e)+" "+r+" "+o(i);default:return n.render(t,!0)}}renderBrief(e){const t=(null==e?void 0:e.toLowerCase())||l.getLocaleName(),n=this.getDate();if(n.getMonth()===D.TISHREI&&1===n.getDate())return this.render(t);switch(t){case"h":case"he":case"he-x-nonikud":const e=n.getDate(),r=l.gettext(n.getMonthName(),t);return o(e)+" "+r;default:return n.render(t,!1)}}}const ge=36e11,ye=864e11,Se=[1,1e3,1e6,1e9,6e10,ge,ye],we=[9,6,3];function pe(e){return e<=6}function ve(e){return e>=6}const be=Me("overflow",{constrain:0,reject:1},0);function Me(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=Ae(t);return r(o[e],n)}}function Ie(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 Te(e,t){const n={};for(const r in t)void 0!==e[r]&&(n[r]=t[r](e[r]));return n}function Ae(e,t){if(void 0===e&&!t)return{};if(!Ee(e))throw TypeError("options must be an object or undefined");return e}const De=/object|function/;function Ee(e){return null!==e&&De.test(typeof e)}const Ce=Me("roundingMode",{halfExpand:Math.round,ceil:Math.ceil,trunc:Math.trunc,floor:Math.floor});function Ne(){const e=new WeakMap;return[e.get.bind(e),e.set.bind(e)]}function Oe(e,t){Object.defineProperties(e.prototype,ke(t,(e=>({get:e}))))}function ke(e,t){const n={};for(const r in e)n[r]=t(e[r],r);return n}function He(e,t,n){const r={};for(const o of t)r[o]=n(e[o]);return r}function Ye(e,t){const n={};return e.forEach(((e,r)=>{n[e]=t(e,r)})),n}const Le=["nanosecond","microsecond","millisecond","second","minute","hour"],Fe=[...Le,"day","week","month","year"],Pe=Fe.map((e=>e+"s")),Re=Ye(Fe,((e,t)=>t)),_e=Ye(Pe,((e,t)=>t));function Ue(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=Re[e])?o:_e[e],void 0===i||i<n||i>r)throw new RangeError("Invalid unit "+e);return i}function je(e,t,n,r,o,i){var a;const s=Ae(e),u=null!=(a=s.roundingIncrement)?a:1,c=Ue(s.smallestUnit,n,r,o),h=Ce(s,i?Math.round:Math.trunc);let l=s.largestUnit;"auto"===l&&(l=void 0);const d=Ue(l,t=Math.max(t,c),r,o);if(c>d)throw new RangeError("Bad smallestUnit/largestUnit");if(c<6){const e=Se[c+1],t=Se[c]*u;if(e===t)throw new RangeError("Must not equal larger unit");if(e%t)throw new RangeError("Must divide into larger unit")}return{smallestUnit:c,largestUnit:d,roundingFunc:h,roundingIncrement:u}}function Be(e,t,n,r){var o;const i=Ae("string"==typeof e?{smallestUnit:e}:e,!0),a=null!=(o=i.roundingIncrement)?o:1,s=Ue(i.smallestUnit,void 0,t,n),u=Ce(i,Math.round),c=Se[s]*a;if(6===s){if(1!==a)throw new RangeError("When smallestUnit is days, roundingIncrement must be 1")}else{const e=r?ye:Se[s+1];if(!r&&e===c)throw new RangeError("Must not equal larger unit");if(e%c)throw new RangeError("Must divide into larger unit")}return{smallestUnit:s,roundingFunc:u,incNano:c}}const Ze=Symbol();function $e(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 xe{toJSON(){return this.toString()}}class ze extends xe{valueOf(){throw new Error("Cannot convert object using valueOf")}}const[Ve,Ke]=Ne();class Je extends ze{constructor(e){super(),Ke(this,Object.freeze(e))}getISOFields(){return Ve(this)}}function Ge(e,t){return e<t?-1:e>t?1:0}function We(e){return Ge(e,0)}function qe(e,t,n){return n(e/t)*t}function Xe(e){return qe(e,6e10,Qe)}function Qe(e){return Math.round(Math.abs(e))*We(e)}function et(e,t,n){const r=e.div(t).mult(t),o=e.sub(r).toNumber();return r.add(n(o/t)*t)}function tt(e,t){return(e%t+t)%t}function nt(e,t){return ot(n=String(e),t,"0")+n;var n}function rt(e,t,n){return e+ot(e,t,n)}function ot(e,t,n){return new Array(Math.max(0,t-e.length+1)).join(n)}function it(e){return e<0?"-":"+"}const at=Math.pow(10,8);class st{constructor(e,t){this.high=e,this.low=t}sign(){return We(this.high)||We(this.low)}neg(){return new st(-this.high||0,-this.low||0)}abs(){return this.sign()<0?this.neg():this}add(e){const[t,n]=ht(e);return lt(this.high+t,this.low+n)}sub(e){const[t,n]=ht(e);return lt(this.high-t,this.low-n)}mult(e){return lt(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=rt(e,8,"0"),e=e.substr(0,8),o=parseInt(e)*(We(t)||1)}return lt(Math.trunc(t)||0,Math.trunc(this.low/e)+o)}toNumber(){return this.high*at+this.low}toBigInt(){return BigInt(this.high)*BigInt(at)+BigInt(this.low)}}function ut(e,t){let n,r;if(e instanceof st)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/at),r=e%at||0}else if("bigint"==typeof e){const t=BigInt(at);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 st(n,r)}function ct(e,t){return Ge(e.high,t.high)||Ge(e.low,t.low)}function ht(e){return"number"==typeof e?[0,e]:[e.high,e.low]}function lt(e,t){let n=t%at||0,r=e+Math.trunc(t/at);const o=We(r),i=We(n);return i&&o&&i!==o&&(r+=i,n-=at*i),new st(r,n)}const dt=Pe.concat("sign");function mt(e){return He(e,dt,(e=>-e||0))}function ft(e,t){var n,r,o,i,a,s,u,c,h,l;return gt({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!=(u=t.seconds)?u:e.seconds,milliseconds:null!=(c=t.milliseconds)?c:e.milliseconds,microseconds:null!=(h=t.microseconds)?h:e.microseconds,nanoseconds:null!=(l=t.nanoseconds)?l:e.nanoseconds})}function gt(e){return{...e,sign:yt(e)}}function yt(e){let t=0;for(const n of Pe)if(e[n]){t=We(e[n]);break}return t}function St(e){let t=9;for(;t>0&&!e[Pe[t]];)t--;return t}const wt={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 vt(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 bt(e){return ut(ye).mult(e.days).add(Mt(e))}function Mt(e){return ut(e.nanoseconds).add(ut(e.microseconds).mult(1e3)).add(ut(e.milliseconds).mult(1e6)).add(ut(e.seconds).mult(1e9)).add(ut(e.minutes).mult(6e10)).add(ut(e.hours).mult(ge))}function It(e){return e.isoHour*ge+6e10*e.isoMinute+1e9*e.isoSecond+1e6*e.isoMillisecond+1e3*e.isoMicrosecond+e.isoNanosecond}function Tt(e,t){let n,r=0,o=0,i=0,a=0,s=0,u=0;switch(t){case 6:n=e.div(ye),r=n.toNumber(),e=e.sub(n.mult(ye));case 5:n=e.div(ge),o=n.toNumber(),e=e.sub(n.mult(ge));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),u=n.toNumber(),e=e.sub(n.mult(1e3))}return gt({years:0,months:0,weeks:0,days:r,hours:o,minutes:i,seconds:a,milliseconds:s,microseconds:u,nanoseconds:e.toNumber()})}function At(e){const t=Math.floor(e/ye);e-=t*ye;const n=Math.floor(e/ge);e-=n*ge;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 Dt={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"+nt(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 Ct(e,t,n,r){var o;let i=null==(o=Dt[Nt(e)])?void 0:o[n];if(void 0===i){if(!r)throw new Error("Unkown era "+n);i=0}return(i+t)*(We(i)||1)}function Nt(e){return e.split("-")[0]}class Ot extends Et{computeFields(e){const t=_t(e);return{era:void 0,eraYear:void 0,year:t.isoYear,month:t.isoMonth,day:t.isoDay}}epochMilliseconds(e,t,n){return Pt(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 Ht}normalizeISOYearForMonthDay(){return Ht}}const kt=new Ot("iso8601"),Ht=1972,Yt=Symbol();function Lt(e){return Ft(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function Ft(e,t,n,r,o,i,a,s,u){return ut(Pt(e,t,n,r,o,i,a)).mult(1e6).add(1e3*(null!=s?s:0)+(null!=u?u:0))}function Pt(e,t,n,r,o,i,a){const s=We(e);let u,c,h=0;const l=e>=0&&e<1e3,d=l?e+1200:e;for(;h<31;h++){u=n-s*h;const e=Date.UTC(d,t-1,u,null!=r?r:0,null!=o?o:0,null!=i?i:0,null!=a?a:0);if(!xt(e)){c=e+s*h*864e5;break}}return(void 0===c||u<1||u>kt.daysInMonth(e,t))&&zt(),l&&(c=new Date(c).setUTCFullYear(e)),c}function Rt(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,{..._t(t.toNumber()),isoMicrosecond:r,isoNanosecond:n}}function _t(e){const[t,n]=$t(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 Ut(e){var t;return null!=(t=e[Yt])?t:Lt(e.getISOFields())}function jt(e){return Math.floor(Pt(e,1,1)/1e3)}function Bt(e){return $t(e.div(1e6).toNumber())[0].getUTCFullYear()}function Zt(e,t,n){const[r,o]=$t(Pt(e,t,n));return tt(r.getUTCDay()+o,7)||7}function $t(e){const t=We(e);let n,r=0;for(;r<31;r++){const o=new Date(e-t*r*864e5);if(!xt(o)){n=o;break}}return void 0===n&&zt(),[n,t*r]}function xt(e){return isNaN(e.valueOf())}function zt(){throw new RangeError("Date outside of supported range")}function Vt(e,t){return Math.round((t-e)/864e5)}function Kt(e,t){return e+864e5*t}function Jt(e,t){return!Gt(e,t)&&e.calendar.toString()===t.calendar.toString()}function Gt(e,t){return ct(Lt(e.getISOFields()),Lt(t.getISOFields()))}function Wt(e,t){return Ge(It(e.getISOFields()),It(t.getISOFields()))}function qt(e,t){return Ge(e.year,t.year)||Ge(e.month,t.month)||Ge(e.day,t.day)}function Xt(e,t){return ct(e[Yt],t[Yt])}function Qt(e,t,n,r,o){return[e=Number(e),t=Ie(t,1,r.monthsInYear(e),o),n=Ie(n,1,r.daysInMonth(e,t),o)]}function en(e,t){const[n,r,o]=Qt(e.isoYear,e.isoMonth,e.isoDay,kt,t);return{isoYear:n,isoMonth:r,isoDay:o}}function tn(e,t){return{...en(e,t),...nn(e,t)}}function nn(e,t){let{isoHour:n,isoMinute:r,isoSecond:o,isoMillisecond:i,isoMicrosecond:a,isoNanosecond:s}=e;return{isoHour:n=Ie(n,0,23,t),isoMinute:r=Ie(r,0,59,t),isoSecond:o=Ie(o,0,59,t),isoMillisecond:i=Ie(i,0,999,t),isoMicrosecond:a=Ie(a,0,999,t),isoNanosecond:s=Ie(s,0,999,t)}}const rn={era:String,eraYear:Number,year:Number,month:Number,monthCode:String},on={...rn,day:Number},an={hour:Number,minute:Number,second:Number,millisecond:Number,microsecond:Number,nanosecond:Number},sn={era:String,eraYear:Number,year:Number,month:Number,monthCode:String,day:Number},un=Ye(Pe,(()=>Number));class cn extends Ot{computeFields(e){const t=super.computeFields(e),{year:n}=t;return{...t,era:n<1?"bce":"ce",eraYear:n<1?-(n-1):n}}}const hn=Me("calendarName",{auto:0,never:1,always:2},0),ln=Me("disambiguation",{compatible:0,earlier:1,later:2,reject:3},0);function dn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const n=Ae(e),r=n.smallestUnit,o=n.fractionalSecondDigits;let i,a=0,s=1;return void 0!==r?(a=Ue(r,void 0,0,t),s=Se[a],i=we[a]||0):void 0!==o&&"auto"!==o&&(i=Ie(o,0,9,1),s=Math.pow(10,9-i)),{smallestUnit:a,fractionalSecondDigits:i,roundingFunc:Ce(e,Math.trunc),incNano:s}}const mn=Me("timeZoneName",{auto:0,never:1},0);function fn(e,t){return gn(e)+"T"+Sn(e,t)}function gn(e){return yn(e)+"-"+nt(e.isoDay,2)}function yn(e){const{isoYear:t}=e;return(t<1e3||t>9999?it(t)+nt(Math.abs(t),6):nt(t,4))+"-"+nt(e.isoMonth,2)}function Sn(e,t){const n=[nt(e.isoHour,2)];return t.smallestUnit<=4&&(n.push(nt(e.isoMinute,2)),t.smallestUnit<=3&&n.push(nt(e.isoSecond,2)+bn(e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,t.fractionalSecondDigits)[0])),n.join(":")}function wn(e){const[t,n]=At(Math.abs(e)),r=bn(t.isoMillisecond,t.isoMicrosecond,t.isoNanosecond,void 0)[0];return it(e)+nt(t.isoHour+24*n,2)+":"+nt(t.isoMinute,2)+(t.isoSecond||r?":"+nt(t.isoSecond,2)+r:"")}function pn(e,t){return e&&(2===t||1!==t&&"iso8601"!==e)?`[u-ca=${e}]`:""}function vn(e){return e.map((e=>{let[t,n,r]=e;return r||t?Math.abs(t).toLocaleString("fullwide",{useGrouping:!1})+n:""})).join("")}function bn(e,t,n,r,o,i){let a=ut(e).mult(1e6).add(ut(t).mult(1e3)).add(n);o&&(a=et(a,void 0===r?Se[i]:Math.pow(10,9-r),o));const s=a.abs(),u=s.div(1e9);let c=nt(s.sub(u.mult(1e9)).toNumber(),9);return c=void 0===r?c.replace(/0+$/,""):c.substr(0,r),[c?"."+c:"",u.toNumber()*(a.sign()||1)]}function Mn(e){Oe(e,{epochNanoseconds(){return this[Yt].toBigInt()},epochMicroseconds(){return this[Yt].div(1e3).toBigInt()},epochMilliseconds(){return this[Yt].div(1e6).toNumber()},epochSeconds(){return this[Yt].div(1e9).toNumber()}})}const In={calendar:"calendar"};for(const e of Fe)In[e]="iso"+((Tn=e).charAt(0).toUpperCase()+Tn.slice(1));var Tn;function An(e){Oe(e,Ye((arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).concat("calendar"),(e=>function(){return this.getISOFields()[In[e]]})))}const Dn=["era","eraYear","year","month","monthCode","daysInMonth","daysInYear","monthsInYear","inLeapYear"],En=[...Dn,"day","dayOfWeek","dayOfYear","weekOfYear","daysInWeek"];function Cn(e,t){Oe(e,Ye(t,(e=>function(){const t=this.calendar[e](this);return Object.defineProperty(this,e,{value:t}),t})))}function Nn(e,t){(e.prototype||e)[Symbol.toStringTag]="Temporal."+t}const On=Me("offset",{prefer:0,use:1,ignore:2,reject:3});function kn(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=Ut(t),r=e.getOffsetNanosecondsFor(new Ui(n.sub(ye)));return e.getOffsetNanosecondsFor(new Ui(n.add(ye)))-r}(e,t),o=e.getPossibleInstantsFor(t.add({nanoseconds:r*(1===n?-1:1)}));return o[1===n?0:o.length-1]}}function Hn(e,t,n,r){let{year:o,month:i,day:a}=e;o+=t;const s=Ie(i,1,n.monthsInYear(o),r);let u=i===s?a:1;return u=Ie(u,1,n.daysInMonth(o,s),r),{year:o,month:s,day:u}}function Yn(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=Ie(a,1,n.daysInMonth(o,i),r)}return{year:o,month:i,day:a}}function Ln(e,t){let{isoYear:n,isoMonth:r,isoDay:o}=e;if(t){let e=Pt(n,r,o);e=Kt(e,t),({isoYear:n,isoMonth:r,isoDay:o}=_t(e))}return{isoYear:n,isoMonth:r,isoDay:o}}function Fn(e,t){if(St(t)>=6)throw new RangeError("Duration cant have units >= days");return e.add(Mt(t))}function Pn(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 Lt(e).sub(o);{const r=Rn(e,o,i,t);if(void 0!==r)return r;if(3===n)throw new RangeError("Mismatching offset/timezone")}}return kn(i,Wo(e),ln(r))[Yt]}function Rn(e,t,n,r){const o=n.getPossibleInstantsFor(Wo(e)),i=Lt(e),a=r?Xe(t):t;for(const e of o){const t=e[Yt],n=i.sub(t).toNumber();if((r?Xe(n):n)===a)return t}}function _n(e){const{timeZone:t}=e,n={...e,...wt,calendar:new Ti("iso8601")},r={...Ln(n,1),...wt,calendar:new Ti("iso8601")},o=kn(t,Wo(n))[Yt];return kn(t,Wo(r))[Yt].sub(o).toNumber()}const Un="(\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?",jn="([+-])"+Un,Bn="(Z|"+jn+")?(\\[([^=\\]]+)\\])?(\\[u-ca=([^\\]]+)\\])?",Zn=Gn("([+-]\\d{6}|\\d{4})-?(\\d{2})"+Bn),$n=Gn("(--)?(\\d{2})-?(\\d{2})"+Bn),xn=Gn("([+-]\\d{6}|\\d{4})-?(\\d{2})-?(\\d{2})([T ](\\d{2})(:?(\\d{2})(:?(\\d{2})([.,](\\d{1,9}))?)?)?)?"+Bn),zn=Gn("T?"+Un+Bn),Vn=Gn(jn),Kn=/^([-+])?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,Jn=/\u2212/g;function Gn(e){return new RegExp(`^${e}$`,"i")}function Wn(e){return e.replace(Jn,"-")}function qn(e){const t=tr(e);if(!t)throw mr("dateTime",e);return t}function Xn(e){const t=nr(e);if(!t)throw mr("dateTime",e);return t}function Qn(e){const t=ir(e);if(void 0===t)throw mr("timeZone",e);return t}const er=/^Z$/i;function tr(e){const t=xn.exec(Wn(e));if(t)return function(e){const t=e[11];let n,r=!1;return t&&(r=er.test(t),n=r?0:ur(e.slice(12))),{...ar(e),timeZone:e[21],offsetNanoseconds:n,Z:r}}(t.slice(1))}function nr(e,t,n){const r=xn.exec(Wn(e));if(r&&(n||!er.test(r[12]))&&(!t||r[4]))return ar(r.slice(1))}function rr(e){const t=Zn.exec(Wn(e));if(t)return{calendar:(n=t.slice(1))[14],isoYear:lr(n[0]),isoMonth:lr(n[1]),isoDay:1};var n}function or(e){const t=$n.exec(Wn(e));if(t)return{calendar:(n=t.slice(1))[15],isoYear:Ht,isoMonth:lr(n[1]),isoDay:lr(n[2])};var n}function ir(e){const t=Vn.exec(Wn(e));if(t)return ur(t.slice(1))}function ar(e){return{calendar:e[23],isoYear:lr(e[0]),isoMonth:lr(e[1]),isoDay:lr(e[2]),...sr(e.slice(4))}}function sr(e){const t=hr(e[4]);return{...At(cr(e[6]||""))[0],isoHour:hr(e[0]),isoMinute:hr(e[2]),isoSecond:60===t?59:t}}function ur(e){return("+"===e[0]?1:-1)*function(e){return hr(e[0])*ge+6e10*hr(e[2])+1e9*hr(e[4])+cr(e[6]||"")}(e.slice(1))}function cr(e){return parseInt(rt(e,9,"0"))}function hr(e){return parseInt(e||"0")}function lr(e){return parseInt(e||"1")}function dr(e){return void 0===e?void 0:parseInt(e)}function mr(e,t){throw new RangeError(`Cannot parse ${e} '${t}'`)}function fr(e){return{...e,calendar:void 0===e.calendar?Ai():new Ti(e.calendar)}}function gr(e){return{...fr(e),timeZone:new Or(e.timeZone)}}class yr{constructor(e){this.id=e}}class Sr extends yr{constructor(e,t){super(e),this.offsetNano=t}getPossibleOffsets(){return[this.offsetNano]}getOffset(){return this.offsetNano}getTransition(){}}function wr(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 vr(e){return e=e.toLowerCase().normalize("NFD").replace(/[^a-z0-9]/g,""),pr[e]||e}const br=Intl.DateTimeFormat;const Mr={"Pacific/Apia":{2011:[[Ir(13017528e5),-36e12,-396e11],[Ir(13168728e5),-396e11,-36e12],[Ir(13252392e5),-36e12,504e11]]}};function Ir(e){return ut(e).mult(1e6)}const Tr=(new Date).getUTCFullYear()+10,Ar=[182,91,273];class Dr extends yr{constructor(e){const t=new br("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(Bt(e))]}getOffset(e){return 1e9*this.getOffsetForEpochSecs(e.div(1e9).toNumber())}getOffsetForEpochSecs(e){const t=wr(this.format,1e3*e);let n=parseInt(t.year);"bce"===vr(t.era)&&(n=-(n-1));const r=Pt(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=Bt(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(jt(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=jt(e)-1,o=jt(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[ut(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 Er={UTC:new Sr("UTC",0)},[Cr,Nr]=Ne();class Or extends xe{constructor(e){if(!e)throw new RangeError("Invalid timezone ID");super(),Nr(this,function(e){const t=(e=String(e)).toLocaleUpperCase();if(Er[t])return Er[t];const n=ir(e);if(void 0!==n){if(Math.abs(n)>ye)throw new RangeError("Offset out of bounds");return new Sr(wn(n),n)}return Er[t]=new Dr(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=tr(String(e));if(t){if(t.timeZone){const e=gr(t);return function(e){const{offsetNanoseconds:t,timeZone:n,Z:r}=e;if(void 0!==t&&!r&&void 0===Rn(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(wn(t.offsetNanoseconds))}return new Or(String(e))}get id(){return this.toString()}getOffsetStringFor(e){return wn(this.getOffsetNanosecondsFor(e))}getOffsetNanosecondsFor(e){const t=$e(Ui,e);return Cr(this).getOffset(t[Yt])}getPlainDateTimeFor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ai();const n=$e(Ui,e);return Wo({...Rt(n[Yt].add(this.getOffsetNanosecondsFor(n))),calendar:$e(Ti,t)})}getInstantFor(e,t){return kn(this,$e(Go,e),ln(t))}getPossibleInstantsFor(e){const t=Lt($e(Go,e).getISOFields());return Cr(this).getPossibleOffsets(t).map((e=>new Ui(t.sub(e))))}getPreviousTransition(e){const t=$e(Ui,e),n=Cr(this).getTransition(t[Yt],-1);return n?new Ui(n[0]):null}getNextTransition(e){const t=$e(Ui,e),n=Cr(this).getTransition(t[Yt],1);return n?new Ui(n[0]):null}toString(){return Cr(this).id}}function kr(e){if(void 0===e.timeZone)throw new TypeError("Must specify timeZone");return $e(Or,e.timeZone)}Nn(Or,"TimeZone");const Hr=eo((function(e,t,n){const r=zr(e,t,n);if(r)return{...r,timeZone:kr(e),offsetNanoseconds:void 0!==e.offset?Qn(String(e.offset)):void 0}})),Yr=eo(zr),Lr=eo(Vr),Fr=eo((function(e,t){const n=Ci(e),r=qr(e,rn,n);if(to(r))return n.yearMonthFromFields(r,t)})),Pr=eo((function(e,t){const n=Ci(e),r=qr(e,sn,n);if(to(r))return void 0===e.year&&void 0===e.calendar&&(r.year=Ht),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?Qn(String(t.offset)):e.offsetNanoseconds}}),!0),Ur=eo(Jr,!0),jr=eo(Gr,!0),Br=eo((function(e,t,n){const r=e.calendar;if(to(qr(t,rn,r))){const o=Qr(e,t,rn,r);return r.yearMonthFromFields(o,n)}}),!0),Zr=eo((function(e,t,n){const r=e.calendar;if(to(qr(t,sn,r))){const o=Qr(e,t,sn,r);return r.monthDayFromFields(o,n)}}),!0),$r=eo(Wr,!0),xr=eo((function(e){const t=Te(e,un);if(to(t))return t}));function zr(e,t,n){const r=Vr(e,n),o=Kr(e,t);if(r)return{...r.getISOFields(),...o||wt}}function Vr(e,t){const n=Ci(e),r=qr(e,on,n);if(to(r))return n.dateFromFields(r,t)}function Kr(e,t){const n=Te(e,an);if(to(n))return nn(vt(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,on,r);if(to(o)){const t=Qr(e,o,on,r);return r.dateFromFields(t,n)}}function Wr(e,t,n){const r=Te(t,an);if(to(r))return nn(vt((o=e,i=r,ke(an,((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=ut(ye).mult(1e8),ro=no.mult(-1),oo=no.add(86399999999999),io=ro.sub(86399999999999);function ao(e,t){const n=Lt(e);so(n),wi(n,t)}function so(e){-1!==ct(e,io)&&1!==ct(e,oo)||zt()}function uo(e,t){const n=ho(It(e),t),[r,o]=At(n);return{...Ln(e,o),...r}}function co(e,t){const n=ho(It(e),t),[r]=At(n);return r}function ho(e,t){return qe(e,t.incNano,t.roundingFunc)}function lo(e,t,n){return(r,o)=>{const i=wo(e,o)?{}:{...e,...t};return{buildKey:So(r,o,!1),buildFormat:function(e,t){return new br(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=wo(e,o)?{}:e;return{buildKey:So(r,o,n),buildFormat:function(e,n){return new br(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=Wo({...wt,...t.getISOFields()});return e.getInstantFor(n).epochMilliseconds}function yo(e){return Pt((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,u;const c=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)!==c)throw new RangeError("Mismatching calendar");if((null==(u=t.timeZone)?void 0:u.id)!==h)throw new RangeError("Mismatching timeZone")}if((n||"iso8601"!==c)&&void 0!==c&&void 0!==o&&o!==c)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||c||"iso8601",i||h||"UTC"]}}function wo(e,t){for(const n in e)if(void 0!==t[n])return!0;return!1}function po(e,t){e.prototype.toLocaleString=function(e,n){const r=t(function(e){return[].concat(e||[])}(e),n||{});return r.buildFormat(...r.buildKey(this)).format(r.buildEpochMilli(this))},e.prototype[Ze]=t}function vo(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)*(Se[n]/1e9):void 0]}if(void 0!==r){const e=Math.trunc(r/Se[n]);return[e,r-e*Se[n]]}return[void 0,void 0]}const bo=Me("offset",{auto:0,never:1},0);class Mo extends Je{constructor(){super({...nn({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:Ai()})}static from(e,t){const n=be(t);return Io(e instanceof Mo?e.getISOFields():"object"==typeof e?Rr(e,n):function(e){let t=function(e){const t=zn.exec(Wn(e));if(t)return sr(t.slice(1))}(e);if(void 0!==t){if("T"!==e.charAt(0)){const n=rr(e)||or(e);n&&function(e){try{return en(e,1),!0}catch(e){return!1}}(n)&&(t=void 0)}}else t=nr(e,!0);if(void 0===t)throw mr("time",e);return t}(String(e)))}static compare(e,t){return Wt($e(Mo,e),$e(Mo,t))}with(e,t){return Io($r(this,e,be(t)))}add(e){return Ao(this,$e(Vo,e))}subtract(e){return Ao(this,mt($e(Vo,e)))}until(e,t){return Do(this,$e(Mo,e),t)}since(e,t){return Do($e(Mo,e),this,t)}round(e){const t=Be(e,0,5);return Io(co(this.getISOFields(),t))}equals(e){return!Wt(this,$e(Mo,e))}toString(e){const t=dn(e);return Sn(co(this.getISOFields(),t),t)}toZonedDateTime(e){const t=$e(Hi,e.plainDate),n=$e(Or,e.timeZone);return Lo({...t.getISOFields(),...this.getISOFields(),timeZone:n})}toPlainDateTime(e){return $e(Hi,e).toPlainDateTime(this)}}function Io(e){return new Mo(e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond)}function To(e){return $e(Mo,null!=e?e:{hour:0})}function Ao(e,t){return Io(function(e,t){const n=It(e)+Mt(t).toNumber(),[r]=At(n);return r}(e.getISOFields(),t))}function Do(e,t,n){const r=je(n,5,0,0,5);return Ko(function(e,t,n){return Tt(ut(qe(It(t)-It(e),Se[n.smallestUnit]*n.roundingIncrement,n.roundingFunc)),n.largestUnit)}(e.getISOFields(),t.getISOFields(),r))}Nn(Mo,"PlainTime"),An(Mo,Le),po(Mo,(function(e,t){return{buildKey:()=>["",""],buildFormat:()=>new br(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(It(e.getISOFields())/1e6)}}));const Eo={day:1};class Co extends Je{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ai();const r=en({isoYear:e,isoMonth:t,isoDay:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1},1),o=$e(Ti,n);var i,a;i=r,a=o.toString(),wi(Lt(i),a),super({...r,calendar:o})}static from(e,t){if(be(t),e instanceof Co)return No(e.getISOFields());if("object"==typeof e)return Fr(e,t);const n=function(e){const t=rr(e)||nr(e);if(!t)throw mr("yearMonth",e);return t}(String(e));return void 0===n.calendar&&(n.isoDay=1),No(fr(n))}static compare(e,t){return Gt($e(Co,e),$e(Co,t))}with(e,t){return Br(this,e,t)}add(e,t){return Oo(this,$e(Vo,e),t)}subtract(e,t){return Oo(this,mt($e(Vo,e)),t)}until(e,t){return ko(this,$e(Co,e),!1,t)}since(e,t){return ko(this,$e(Co,e),!0,t)}equals(e){return!Gt(this,$e(Co,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=hn(e);return("iso8601"===n?yn(t):gn(t))+pn(n,r)}toPlainDate(e){return this.calendar.dateFromFields({year:this.year,month:this.month,day:e.day})}}function No(e){return new Co(e.isoYear,e.isoMonth,e.calendar,e.isoDay)}function Oo(e,t,n){return e.toPlainDate({day:t.sign<0?e.daysInMonth:1}).add(t,n).toPlainYearMonth()}function ko(e,t,n,r){return Ko(Pi(e.toPlainDate(Eo),t.toPlainDate(Eo),Ni(e,t),n,je(r,9,8,8,9)))}Nn(Co,"PlainYearMonth"),An(Co),Cn(Co,Dn),po(Co,fo({year:"numeric",month:"numeric"},{weekday:void 0,day:void 0,hour:void 0,minute:void 0,second:void 0},!0));const Ho=Symbol();class Yo extends Je{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ai();const r=$e(Or,t),o=$e(Ti,n),i=ut(e),[a,s]=Fo(i,r);ao(a,o.toString()),super({...a,calendar:o,timeZone:r,offset:wn(s)}),this[Yt]=i,this[Ho]=s}static from(e,t){const n=On(t,3),r=be(t);if(e instanceof Yo)return new Yo(e.epochNanoseconds,e.timeZone,e.calendar);const o="object"==typeof e;return Lo(o?Hr(e,r,t):gr(qn(String(e))),!o,n,t)}static compare(e,t){return Xt($e(Yo,e),$e(Yo,t))}get timeZone(){return this.getISOFields().timeZone}get offsetNanoseconds(){return this[Ho]}get offset(){return this.getISOFields().offset}with(e,t){ln(t);const n=be(t),r=On(t,0);return Lo(_r(this,e,n,t),!1,r,t)}withPlainDate(e){const t=$e(Hi,e),n=t.toPlainDateTime(this),{timeZone:r}=this,o=kn(r,n);return new Yo(o.epochNanoseconds,r,Oi(this,t))}withPlainTime(e){return Lo({...this.getISOFields(),...void 0===e?wt:$e(Mo,e).getISOFields()})}withCalendar(e){return new Yo(this.epochNanoseconds,this.timeZone,e)}withTimeZone(e){return new Yo(this.epochNanoseconds,e,this.calendar)}add(e,t){return Po(this,$e(Vo,e),t)}subtract(e,t){return Po(this,mt($e(Vo,e)),t)}until(e,t){return _o(this,$e(Yo,e),!1,t)}since(e,t){return _o(this,$e(Yo,e),!0,t)}round(e){return Ro(this,Be(e,0,6))}equals(e){return this,Jt(this,t=$e(Yo,e))&&this.timeZone.toString()===t.timeZone.toString();var t}startOfDay(){return Lo({...this.getISOFields(),...wt,offsetNanoseconds:this.offsetNanoseconds},!1,0)}get hoursInDay(){return _n(this.getISOFields())/ge}toString(e){const t=dn(e),n=bo(e),r=mn(e),o=hn(e),i=Ro(this,t);return fn(i.getISOFields(),t)+(0===n?wn(Xe(i.offsetNanoseconds)):"")+(a=this.timeZone.toString(),1!==r?`[${a}]`:"")+pn(this.calendar.toString(),o);var a}toPlainYearMonth(){return No(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDateTime(){return Wo(this.getISOFields())}toPlainDate(){return Yi(this.getISOFields())}toPlainTime(){return Io(this.getISOFields())}toInstant(){return new Ui(this.epochNanoseconds)}}function Lo(e,t,n,r){const o=Pn(e,t,n,r);return new Yo(o,e.timeZone,e.calendar)}function Fo(e,t){const n=new Ui(e),r=t.getOffsetNanosecondsFor(n);return[Rt(e.add(r)),r]}function Po(e,t,n){const r=e.getISOFields(),o=function(e,t,n){const{calendar:r,timeZone:o}=e,i=r.dateAdd(Yi(e),ft(t,pt),n);return kn(o,Wo({...e,...i.getISOFields()}))[Yt].add(Mt(t))}(r,t,n);return new Yo(o,r.timeZone,r.calendar)}function Ro(e,t){const n=e.getISOFields(),r=function(e,t,n){const{calendar:r,timeZone:o}=e;let i,a,s=It(e);return 6===n.smallestUnit?(i=wt,a=n.roundingFunc(s/_n(e))):(s=ho(s,n),[i,a]=At(s)),Pn({...Ln(e,a),...i,offsetNanoseconds:t,calendar:r,timeZone:o},!1,0)}(n,e.offsetNanoseconds,t);return new Yo(r,n.timeZone,n.calendar)}function _o(e,t,n,r){const o=je(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 Ko(Fi(e,t,Ni(e,t),n,o))}function Uo(e){if(void 0===e)return;if(Ee(e))return e instanceof Yo||e instanceof Go?e:$e(void 0!==e.timeZone?Yo:Go,e);if("symbol"==typeof e)throw new TypeError("Incorrect relativeTo type");const t=tr(String(e));if(t)return void 0!==t.timeZone?Lo(gr(t),!0):Wo(fr(t));throw new RangeError("Invalid value of relativeTo")}function jo(e,t,n,r){return(n instanceof Hi?function(e,t,n,r){const o=n.add(e);return[r.dateUntil(n,o,{largestUnit:Fe[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=ft(e,{weeks:0}));let a=n.add(e),s=Ri(n,a,r,t);return i&&(s=ft(s,{weeks:i}),a=a.add({weeks:i})),[s,a]}function Zo(e,t,n,r){const o=Pe[t],{sign:i}=e;if(!i)return e;const a={};for(let n=9;n>=t;n--){const t=Pe[n];a[t]=e[t]}const s={[o]:i},u=n.add(a),c=u.add(s),h=Ut(u),l=Ut(c),d=Ut(r).sub(h).toNumber()/l.sub(h).toNumber()*i;return a[o]+=d,a}function $o(e,t,n,r,o,i){const{largestUnit:a,smallestUnit:s,roundingIncrement:u,roundingFunc:c}=i;if(!ve(a))return Tt(et(Ut(n).sub(Ut(t)).mult(o?-1:1),Se[s]*u,c),a);let h=Zo(e,s,t,n);const l=Pe[s];function d(){const e=h[l];h[l]=qe(e,u,c)}return c===Math.round&&d(),o&&(h=mt(h)),c!==Math.round&&d(),s>0&&(h=o?mt(jo(mt(h),a,t,r)):jo(h,a,t,r)),h}Nn(Yo,"ZonedDateTime"),An(Yo,Le),Cn(Yo,En),Mn(Yo),po(Yo,lo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:"short"},{}));const[xo,zo]=Ne();class Vo 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,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0;super();const h=xr({years:e,months:t,weeks:n,days:r,hours:o,minutes:i,seconds:a,milliseconds:s,microseconds:u,nanoseconds:c});zo(this,function(e){const t=gt(e),{sign:n}=t;for(const e of Pe){const r=t[e],o=We(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 Ko("object"==typeof e?xr(e):function(e){const t=function(e){const t=Kn.exec(Wn(e));if(t){let e,n,r,o;[e,o]=vo(t[8],t[10],5,void 0),[n,o]=vo(t[12],t[14],4,o),[r,o]=vo(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:dr(t[2]),months:dr(t[3]),weeks:dr(t[4]),days:dr(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=Tt(ut(o||0),2);i.milliseconds=a.milliseconds,i.microseconds=a.microseconds,i.nanoseconds=a.nanoseconds;let s=gt(i);return"-"===t[1]&&(s=mt(s)),s}}(e);if(void 0===t)throw mr("duration",e);return t}(e))}static compare(e,t,n){return function(e,t,n){if(void 0===n&&St(e)<=6&&St(t)<=6)return ct(bt(e),bt(t));if(!n)throw new RangeError("Need relativeTo");const r=n.add(e),o=n.add(t);return void 0!==n[Yt]?Xt(r,o):Gt(r,o)}($e(Vo,e),$e(Vo,t),Uo(Ae(n).relativeTo))}get years(){return xo(this).years}get months(){return xo(this).months}get weeks(){return xo(this).weeks}get days(){return xo(this).days}get hours(){return xo(this).hours}get minutes(){return xo(this).minutes}get seconds(){return xo(this).seconds}get milliseconds(){return xo(this).milliseconds}get microseconds(){return xo(this).microseconds}get nanoseconds(){return xo(this).nanoseconds}get sign(){return xo(this).sign}get blank(){return!this.sign}with(e){return Ko({...xo(this),...xr(e)})}negated(){return Ko(mt(xo(this)))}abs(){return Ko(He(xo(this),dt,(e=>Math.abs(e))))}add(e,t){return Jo(this,$e(Vo,e),t)}subtract(e,t){return Jo(this,mt($e(Vo,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=je(t,St(this),0,0,9,!0),r=Uo(t.relativeTo);return Ko(function(e,t,n,r){const{largestUnit:o,smallestUnit:i,roundingIncrement:a,roundingFunc:s}=t;if(void 0===n&&St(e)<=6&&pe(o)&&pe(i))return Tt(et(bt(e),Se[i]*a,s),o);if(!n)throw new RangeError("Need relativeTo");const[u,c]=Bo(e,o,n,r);return $o(u,n,c,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=Ae(e).unit,t=e.relativeTo),{unit:Ue(n,void 0,0,9),relativeTo:t}}(e),n=Uo(t.relativeTo);return function(e,t,n,r){if(void 0===n&&St(e)<=6&&pe(t))return bt(e).toNumber()/Se[t];if(!n)throw new RangeError("Need relativeTo");const[o,i]=Bo(e,t,n,r,!0);return Zo(o,t,n,i)[Pe[t]]}(this,t.unit,n,n?n.calendar:void 0)}toString(e){const t=dn(e,3);return function(e,t){const{smallestUnit:n,fractionalSecondDigits:r,roundingFunc:o}=t,{sign:i}=e,a=e.hours,s=e.minutes;let u=e.seconds,c="";if(n<=3){const t=bn(e.milliseconds,e.microseconds,e.nanoseconds,r,o,n);c=t[0],u+=t[1]}const h=void 0!==r||c||!i;return(i<0?"-":"")+"P"+vn([[e.years,"Y"],[e.months,"M"],[e.weeks,"W"],[e.days,"D"]])+(a||s||u||h?"T"+vn([[a,"H"],[s,"M"],[n<=3?u:0,c+"S",h]]):"")}(xo(this),t)}toLocaleString(e,t){return this.toString()}}function Ko(e){return new Vo(e.years,e.months,e.weeks,e.days,e.hours,e.minutes,e.seconds,e.milliseconds,e.microseconds,e.nanoseconds)}function Jo(e,t,n){const r=Uo(Ae(n).relativeTo);return Ko(function(e,t,n,r){const o=Math.max(St(e),St(t));if(void 0===n&&o<=6)return Tt(bt(e).add(bt(t)),o);if(!n)throw new RangeError("Need relativeTo");const i=n.add(e).add(t);return Ri(n,i,r,o)}(e,t,r,r?r.calendar:void 0))}Nn(Vo,"Duration");class Go extends Je{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,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Ai();const h=tn({isoYear:e,isoMonth:t,isoDay:n,isoHour:r,isoMinute:o,isoSecond:i,isoMillisecond:a,isoMicrosecond:s,isoNanosecond:u},1),l=$e(Ti,c);ao(h,l.toString()),super({...h,calendar:l})}static from(e,t){const n=be(t);return Wo(e instanceof Go?e.getISOFields():"object"==typeof e?Yr(e,n,t):fr(Xn(String(e))))}static compare(e,t){return Gt($e(Go,e),$e(Go,t))}with(e,t){const n=be(t);return Wo(Ur(this,e,n,t))}withPlainDate(e){const t=$e(Hi,e);return Wo({...this.getISOFields(),...t.getISOFields(),calendar:Oi(this,t)})}withPlainTime(e){return Wo({...this.getISOFields(),...To(e).getISOFields()})}withCalendar(e){return Wo({...this.getISOFields(),calendar:$e(Ti,e)})}add(e,t){return qo(this,$e(Vo,e),t)}subtract(e,t){return qo(this,mt($e(Vo,e)),t)}until(e,t){return Xo(this,$e(Go,e),!1,t)}since(e,t){return Xo(this,$e(Go,e),!0,t)}round(e){const t=Be(e,0,6);return Wo({...uo(this.getISOFields(),t),calendar:this.calendar})}equals(e){return Jt(this,$e(Go,e))}toString(e){const t=dn(e),n=hn(e);return fn(uo(this.getISOFields(),t),t)+pn(this.calendar.toString(),n)}toZonedDateTime(e,t){const n=$e(Or,e),r=kn(n,this,ln(t));return new Yo(r.epochNanoseconds,n,this.calendar)}toPlainYearMonth(){return No(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}toPlainDate(){return Yi(this.getISOFields())}toPlainTime(){return Io(this.getISOFields())}}function Wo(e){return new Go(e.isoYear,e.isoMonth,e.isoDay,e.isoHour,e.isoMinute,e.isoSecond,e.isoMillisecond,e.isoMicrosecond,e.isoNanosecond,e.calendar)}function qo(e,t,n){const r=function(e,t,n){const{calendar:r}=e;return Rt(Lt(r.dateAdd(Yi(e),ft(t,pt),n).getISOFields()).add(It(e)).add(Mt(t)))}(e.getISOFields(),t,n);return Wo({...r,calendar:e.calendar})}function Xo(e,t,n,r){const o=je(r,6,0,0,9);return Ko(Fi(e,t,Ni(e,t),n,o))}Nn(Go,"PlainDateTime"),An(Go,Le),Cn(Go,En),po(Go,fo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{}));class Qo extends Je{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ai();super({...en({isoYear:arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ht,isoMonth:e,isoDay:t},1),calendar:$e(Ti,n)})}static from(e,t){if(be(t),e instanceof Qo)return ei(e.getISOFields());if("object"==typeof e)return Pr(e,t);const n=function(e){const t=or(e)||nr(e);if(!t)throw mr("monthDay",e);return t}(String(e));return void 0===n.calendar&&(n.isoYear=Ht),ei(fr(n))}with(e,t){return Zr(this,e,t)}equals(e){return!Gt(this,$e(Qo,e))}toString(e){const t=this.getISOFields(),n=t.calendar.toString(),r=hn(e);return("iso8601"===n?function(e){return nt(e.isoMonth,2)+"-"+nt(e.isoDay,2)}(t):gn(t))+pn(n,r)}toPlainDate(e){return this.calendar.dateFromFields({year:e.year,monthCode:this.monthCode,day:this.day},{overflow:"reject"})}}function ei(e){return new Qo(e.isoMonth,e.isoDay,e.calendar,e.isoYear)}function ti(e){return e instanceof Hi||e instanceof Go||e instanceof Yo||e instanceof Co||e instanceof Qo}function ni(e,t,n){let r;if(e instanceof Hi)r=e;else if(ti(e)){if(n&&e instanceof Qo)throw new TypeError("PlainMonthDay not allowed");r=Yi(e.getISOFields())}else r=Hi.from(e);return ki(r.calendar,t),r}function ri(e,t,n){if(ti(e))return e.getISOFields();let{era:r,eraYear:o,year:i,month:a,monthCode:s,day:u}=e;const c=void 0!==o&&void 0!==r?Ct(t.id,o,r):void 0;if(void 0===i){if(void 0===c)throw new TypeError("Must specify either a year or an era & eraYear");i=c}else if(void 0!==c&&c!==i)throw new RangeError("year and era/eraYear must match");if(void 0===u)throw new TypeError("Must specify day");const h=be(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");u=t.daysInMonth(i,a)}}else if(void 0===a)throw new TypeError("Must specify either a month or monthCode");return[i,a,u]=Qt(i,a,u,t,h),_t(t.epochMilliseconds(i,a,u))}function oi(e,t){if(ti(e)){if(t&&e instanceof Qo)throw new TypeError("PlainMonthDay not allowed");return e.getISOFields()}return Hi.from(e).getISOFields()}function ii(e,t){return Vt(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t+1,1,1))}function ai(e,t,n,r){return Vt(e.epochMilliseconds(t,1,1),e.epochMilliseconds(t,n,r))+1}Nn(Qo,"PlainMonthDay"),An(Qo),Cn(Qo,["monthCode","day"]),po(Qo,fo({month:"numeric",day:"numeric"},{weekday:void 0,year:void 0,hour:void 0,minute:void 0,second:void 0},!0));const si={hebrew:6,chinese:0,dangi:0};class ui extends Et{constructor(e){const t=ci(e);if(n=e,r=t.resolvedOptions().calendar,Nt(n)!==Nt(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 Kt(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),Vt(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=si[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=ii(this,e);return t>ii(this,e-1)&&t>ii(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=wr(this.format,e);let n,r,o=parseInt(t.relatedYear||t.year);var i;return t.era&&(i=this.id,void 0!==Dt[Nt(i)])&&(n=vr(t.era),r=o,o=Ct(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=Pt(this.guessISOYear(e),1,1);for(o=Kt(o,400);;){const r=this.computeFieldsDumb(o);if(r.year<e)break;o=Kt(o,1-r.day),r.year===e&&(t.unshift(o),n.unshift(r.month)),o=Kt(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 ci(e){return new br("en-US",{calendar:e,era:"short",year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})}const hi=Pt(1868,9,8),li={gregory:cn,japanese:class extends cn{constructor(){super(...arguments),this.format=ci("japanese")}computeFields(e){const t=super.computeFields(e);if(e>=hi){const n=wr(this.format,e);t.era=vr(n.era),t.eraYear=parseInt(n.relatedYear||n.year)}return t}},islamic:class extends ui{guessISOYear(e){return Math.ceil(32*e/33+622)}}},di={iso8601:kt};function mi(e){const t=(e=String(e)).toLocaleLowerCase();return di[t]||(di[t]=new(li[Nt(t)]||ui)(e))}const fi=Pt(1582,10,15),gi=Pt(622,7,18),yi={buddhist:fi,japanese:fi,roc:fi,islamic:gi,"islamic-rgsa":gi,indian:0},Si={};function wi(e,t){return pi(e.div(1e6).toNumber(),t)}function pi(e,t){if(function(e,t){return function(e){let t=Si[e];if(void 0===t){const n=yi[e];if(void 0===n)t=!1;else{let r=mi(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)}Si[e]=t}return t}(t)&&e<yi[t]}(e,t))throw new RangeError("Invalid timestamp for calendar")}function vi(e,t,n){const r=7+t-n;return-tt(Zt(e,1,r)-t,7)+r-1}function bi(e,t,n){const r=vi(e,t,n),o=vi(e+1,t,n);return(ii(kt,e)-r+o)/7}const[Mi,Ii]=Ne();class Ti extends xe{constructor(e){super(),"islamicc"===e&&(e="islamic-civil"),Ii(this,mi(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 Ti(t)}(e);const t=nr(String(e),!1,!0);return new Ti(t?t.calendar||"iso8601":String(e))}get id(){return this.toString()}era(e){const t=oi(e,!0);return Ei(Mi(this),t.isoYear,t.isoMonth,t.isoDay).era}eraYear(e){const t=oi(e,!0);return Ei(Mi(this),t.isoYear,t.isoMonth,t.isoDay).eraYear}year(e){const t=oi(e,!0);return Ei(Mi(this),t.isoYear,t.isoMonth,t.isoDay).year}month(e){const t=oi(e,!0);return Ei(Mi(this),t.isoYear,t.isoMonth,t.isoDay).month}monthCode(e){const t=ni(e,this);return Mi(this).monthCode(t.month,t.year)}day(e){const t=oi(e);return Ei(Mi(this),t.isoYear,t.isoMonth,t.isoDay).day}dayOfWeek(e){const t=oi(e,!0);return Zt(t.isoYear,t.isoMonth,t.isoDay)}dayOfYear(e){const t=ni(e,this,!0);return ai(Mi(this),t.year,t.month,t.day)}weekOfYear(e){const t=oi(e,!0);return function(e,t,n,r,o){const i=vi(e,1,4),a=Math.floor((ai(kt,e,t,n)-i-1)/7)+1;if(a<1)return a+bi(e-1,1,4);const s=bi(e,1,4);return a>s?a-s:a}(t.isoYear,t.isoMonth,t.isoDay)}daysInWeek(e){return oi(e,!0),7}daysInMonth(e){const t=ni(e,this,!0);return Mi(this).daysInMonth(t.year,t.month)}daysInYear(e){const t=ni(e,this,!0);return ii(Mi(this),t.year)}monthsInYear(e){const t=ni(e,this,!0);return Mi(this).monthsInYear(t.year)}inLeapYear(e){return Mi(this).inLeapYear(this.year(e))}dateFromFields(e,t){const n=ri(Te(e,on),Mi(this),t);return new Hi(n.isoYear,n.isoMonth,n.isoDay,this)}yearMonthFromFields(e,t){const n=ri({...Te(e,rn),day:1},Mi(this),t);return new Co(n.isoYear,n.isoMonth,this,n.isoDay)}monthDayFromFields(e,t){const n=Mi(this);let{era:r,eraYear:o,year:i,month:a,monthCode:s,day:u}=Te(e,sn);if(void 0===u)throw new TypeError("required property 'day' missing or undefined");if(void 0!==s?i=Ht:void 0!==r&&void 0!==o&&(i=Ct(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,u)}const c=ri({year:i,month:a,monthCode:s,day:u},n,t);return new Qo(c.isoMonth,c.isoDay,this,n.normalizeISOYearForMonthDay(c.isoYear))}dateAdd(e,t,n){const r=Mi(this),o=function(e,t,n,r){e=Yn(e=Hn(e,t.years,n,r),t.months,n,r);let o=n.epochMilliseconds(e.year,e.month,e.day);const i=Math.trunc(Mt(t).div(ye).toNumber());return o=Kt(o,7*t.weeks+t.days+i),_t(o)}($e(Hi,e,n),$e(Vo,t),r,be(n));return new Hi(o.isoYear,o.isoMonth,o.isoDay,this)}dateUntil(e,t,n){const r=Mi(this),o=$e(Hi,e),i=$e(Hi,t),a=Ae(n).largestUnit,s="auto"===a?6:Ue(a,6,6,9);return ki(this,Ni(o,i)),Ko(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]=Qt(t.year,e.month,e.day,n,0),i=qt(t,e),a=Ge(t.month,r)||Ge(t.day,o);return t.year-e.year-(a&&i&&a!==i?i:0)}(e,t,n),e=Hn(e,o,n,0);case 8:i=function(e,t,n){let r=0;const o=qt(t,e);if(o){let{year:i}=e;for(;i!==t.year;)r+=n.monthsInYear(i)*o,i+=o;const[,a,s]=Qt(t.year,e.month,e.day,n,0);r+=t.month-a;const u=Ge(t.day,s);u&&o&&u!==o&&(r-=o)}return r}(e,t,n),e=Yn(e,i,n,0)}return s=Vt(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),gt({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 Mi(this).id}}function Ai(){return new Ti("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 Ei(e,t,n,r){const o=Pt(t,n,r);return pi(o,e.id),e.computeFields(o)}function Ci(e){return void 0===e.calendar?Ai():$e(Ti,e.calendar)}function Ni(e,t){const{calendar:n}=e;return ki(n,t.calendar),n}function Oi(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 ki(e,t){if(e.toString()!==t.toString())throw new RangeError("Calendars must match")}Nn(Ti,"Calendar");class Hi extends Je{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ai();const o=en({isoYear:e,isoMonth:t,isoDay:n},1),i=$e(Ti,r);!function(e,t){const n=Lt(e);so(n.add(n.sign()<0?86399999999999:0)),wi(n,t)}(o,i.toString()),super({...o,calendar:i})}static from(e,t){return be(t),e instanceof Hi?Yi(e.getISOFields()):"object"==typeof e?Lr(e,t):Yi(fr(Xn(String(e))))}static compare(e,t){return Gt($e(Hi,e),$e(Hi,t))}with(e,t){return jr(this,e,t)}withCalendar(e){const t=this.getISOFields();return new Hi(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,$e(Vo,e).negated(),t)}until(e,t){return Li(this,$e(Hi,e),!1,t)}since(e,t){return Li(this,$e(Hi,e),!0,t)}equals(e){return!Gt(this,$e(Hi,e))}toString(e){const t=hn(e),n=this.getISOFields();return gn(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=$e(Or,t.timeZone),r=void 0===t.plainTime?void 0:$e(Mo,t.plainTime);return Lo({...this.getISOFields(),...r?r.getISOFields():wt,timeZone:n})}toPlainDateTime(e){return Wo({...this.getISOFields(),...To(e).getISOFields()})}toPlainYearMonth(){return No(this.getISOFields())}toPlainMonthDay(){return this.calendar.monthDayFromFields(this)}}function Yi(e){return new Hi(e.isoYear,e.isoMonth,e.isoDay,e.calendar)}function Li(e,t,n,r){return Ko(Pi(e,t,Ni(e,t),n,je(r,6,6,6,9)))}function Fi(e,t,n,r,o){return $o(Ri(e,t,n,o.largestUnit),e,t,n,r,o)}function Pi(e,t,n,r,o){return $o(n.dateUntil(e,t,{largestUnit:Fe[o.largestUnit]}),e,t,n,r,o)}function Ri(e,t,n,r){if(!ve(r))return _i(e,t,r);const o=Yi({...e.getISOFields(),calendar:n});let i,a,s,u,c,h=Yi({...t.getISOFields(),calendar:n});do{a=n.dateUntil(o,h,{largestUnit:Fe[r]}),i=e.add(a),s=_i(i,t,5),u=a.sign,c=s.sign}while(u&&c&&u!==c&&(h=h.add({days:c})));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 _i(e,t,n){return Tt(Ut(t).sub(Ut(e)),n)}Nn(Hi,"PlainDate"),An(Hi),Cn(Hi,En),po(Hi,fo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0},{hour:void 0,minute:void 0,second:void 0}));class Ui extends ze{constructor(e){super();const t=ut(e,!0);!function(e){-1!==ct(e,ro)&&1!==ct(e,no)||zt()}(t),this[Yt]=t}static from(e){if(e instanceof Ui)return new Ui(e.epochNanoseconds);const t=qn(String(e)),n=t.offsetNanoseconds;if(void 0===n)throw new RangeError("Must specify an offset");return new Ui(Lt(tn(t,1)).sub(n))}static fromEpochSeconds(e){return new Ui(ut(e).mult(1e9))}static fromEpochMilliseconds(e){return new Ui(ut(e).mult(1e6))}static fromEpochMicroseconds(e){return new Ui(e*BigInt(1e3))}static fromEpochNanoseconds(e){return new Ui(e)}static compare(e,t){return Xt($e(Ui,e),$e(Ui,t))}add(e){return new Ui(Fn(this[Yt],$e(Vo,e)))}subtract(e){return new Ui(Fn(this[Yt],mt($e(Vo,e))))}until(e,t){return ji(this,$e(Ui,e),t)}since(e,t){return ji($e(Ui,e),this,t)}round(e){const t=Be(e,0,5,!0);return new Ui(function(e,t){const[n,r]=function(e){const t=Rt(e);return[Ft(t.isoYear,t.isoMonth,t.isoDay),It(t)]}(e),o=ho(r,t);return n.add(o)}(this[Yt],t))}equals(e){return!Xt(this,$e(Ui,e))}toString(e){const t=Ae(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 Yo(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 Yo(this.epochNanoseconds,e.timeZone,e.calendar)}}function ji(e,t,n){const r=je(n,3,0,0,5);return Ko(function(e,t,n){return Tt(et(t.sub(e),Se[n.smallestUnit]*n.roundingIncrement,n.roundingFunc),n.largestUnit)}(e[Yt],t[Yt],r))}Nn(Ui,"Instant"),Mn(Ui),po(Ui,lo({year:"numeric",month:"numeric",day:"numeric",weekday:void 0,hour:"numeric",minute:"2-digit",second:"2-digit"},{timeZoneName:void 0},{}));const Bi={zonedDateTimeISO:function(e){return Lo($i("iso8601",e))},zonedDateTime:function(e,t){return Lo($i(e,t))},plainDateTimeISO:function(e){return Wo($i("iso8601",e))},plainDateTime:function(e,t){return Wo($i(e,t))},plainDateISO:function(e){return Yi($i("iso8601",e))},plainDate:function(e,t){return Yi($i(e,t))},plainTimeISO:function(e){return Io($i("iso8601",e))},instant:function(){return new Ui(xi())},timeZone:Zi};function Zi(){return new Or((new br).resolvedOptions().timeZone)}function $i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zi();const n=$e(Or,t);return{...Fo(xi(),n)[0],timeZone:n,calendar:$e(Ti,e)}}function xi(){return ut(Date.now()).mult(1e6)}Nn(Bi,"Now");const zi={PlainYearMonth:Co,PlainMonthDay:Qo,PlainDate:Hi,PlainTime:Mo,PlainDateTime:Go,ZonedDateTime:Yo,Instant:Ui,Calendar:Ti,TimeZone:Or,Duration:Vo,Now:Bi,[Symbol.toStringTag]:"Temporal"};function Vi(e){return e*Math.PI/180}function Ki(e){return 180*e/Math.PI}class Ji{constructor(e,t,n,r,o){this.locationName=null;let i=0;o?i=r:o=r,this.setLocationName(e),this.setLatitude(t),this.setLongitude(n),this.setElevation(i),this.setTimeZone(o)}getElevation(){return this.elevation}setElevation(e){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 Gi=6356.9;class Wi{constructor(e,t){this.date=t,this.geoLocation=e}getSunrise(){const e=this.getUTCSunrise0(Wi.GEOMETRIC_ZENITH);return Number.isNaN(e)?null:this.getDateFromTime(e,!0)}getSeaLevelSunrise(){const e=this.getUTCSeaLevelSunrise(Wi.GEOMETRIC_ZENITH);return Number.isNaN(e)?null:this.getDateFromTime(e,!0)}getBeginCivilTwilight(){return this.getSunriseOffsetByDegrees(Wi.CIVIL_ZENITH)}getBeginNauticalTwilight(){return this.getSunriseOffsetByDegrees(Wi.NAUTICAL_ZENITH)}getBeginAstronomicalTwilight(){return this.getSunriseOffsetByDegrees(Wi.ASTRONOMICAL_ZENITH)}getSunset(){const e=this.getUTCSunset0(Wi.GEOMETRIC_ZENITH);return Number.isNaN(e)?null:this.getDateFromTime(e,!1)}getSeaLevelSunset(){const e=this.getUTCSeaLevelSunset(Wi.GEOMETRIC_ZENITH);return Number.isNaN(e)?null:this.getDateFromTime(e,!1)}getEndCivilTwilight(){return this.getSunsetOffsetByDegrees(Wi.CIVIL_ZENITH)}getEndNauticalTwilight(){return this.getSunsetOffsetByDegrees(Wi.NAUTICAL_ZENITH)}getEndAstronomicalTwilight(){return this.getSunsetOffsetByDegrees(Wi.ASTRONOMICAL_ZENITH)}static getTimeOffset(e,t){return null===e||NaN===t||Number.isNaN(t)?null:e.add({milliseconds:t})}getSunriseOffsetByDegrees(e){const t=this.getUTCSunrise0(e);return Number.isNaN(t)?null:this.getDateFromTime(t,!0)}getSunsetOffsetByDegrees(e){const t=this.getUTCSunset0(e);return Number.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 Ki(Math.acos(Gi/(Gi+e/1e3)))}adjustZenith(e,t){let n=e;return e===Wi.GEOMETRIC_ZENITH&&(n=e+(.8333333333333333+this.getElevationAdjustment(t))),n}getUTCSunrise(e,t,n,r){const o=r?t.getElevation():0,i=this.adjustZenith(n,o);let a=Wi.getSunriseUTC(Wi.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=Wi.getSunsetUTC(Wi.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 Wi.getTimeOffset(e,6*n)}getDateFromTime(e,t){if(Number.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 zi.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-Wi.JULIAN_DAY_JAN_1_2000)/Wi.JULIAN_DAYS_PER_CENTURY}static getJulianDayFromJulianCenturies(e){return e*Wi.JULIAN_DAYS_PER_CENTURY+Wi.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=Vi(Wi.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 Wi.getSunGeometricMeanLongitude(e)+Wi.getSunEquationOfCenter(e)}static getSunApparentLongitude(e){const t=125.04-1934.136*e;return Wi.getSunTrueLongitude(e)-.00569-.00478*Math.sin(Vi(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 Wi.getMeanObliquityOfEcliptic(e)+.00256*Math.cos(Vi(t))}static getSunDeclination(e){const t=Wi.getObliquityCorrection(e),n=Wi.getSunApparentLongitude(e),r=Math.sin(Vi(t))*Math.sin(Vi(n));return Ki(Math.asin(r))}static getEquationOfTime(e){const t=Wi.getObliquityCorrection(e),n=Wi.getSunGeometricMeanLongitude(e),r=Wi.getEarthOrbitEccentricity(e),o=Wi.getSunGeometricMeanAnomaly(e);let i=Math.tan(Vi(t)/2);i*=i;const a=Math.sin(2*Vi(n)),s=Math.sin(Vi(o));return 4*Ki(i*a-2*r*s+4*r*i*s*Math.cos(2*Vi(n))-.5*i*i*Math.sin(4*Vi(n))-1.25*r*r*Math.sin(2*Vi(o)))}static getSunHourAngleAtSunrise(e,t,n){const r=Vi(e),o=Vi(t);return Math.acos(Math.cos(Vi(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSunHourAngleAtSunset(e,t,n){const r=Vi(e),o=Vi(t);return-Math.acos(Math.cos(Vi(n))/(Math.cos(r)*Math.cos(o))-Math.tan(r)*Math.tan(o))}static getSolarElevation(e,t,n){const r=Wi.getJulianDay(e.toPlainDate()),o=Wi.getJulianCenturiesFromJulianDay(r),i=Wi.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=Vi(n-a),u=Vi(Wi.getSunDeclination(o)),c=Vi(t);return Ki(Math.asin(Math.sin(c)*Math.sin(u)+Math.cos(c)*Math.cos(u)*Math.cos(s)))}static getSolarAzimuth(e,t,n){const r=Wi.getJulianDay(e.toPlainDate()),o=Wi.getJulianCenturiesFromJulianDay(r),i=Wi.getEquationOfTime(o);let a=e.hour+12+(e.minute+i+e.second/60)/60;a=-360*a/24%360;const s=Vi(n-a),u=Vi(Wi.getSunDeclination(o)),c=Vi(t);return Ki(Math.atan(Math.sin(s)/(Math.cos(s)*Math.sin(c)-Math.tan(u)*Math.cos(c))))+180}static getSunriseUTC(e,t,n,r){const o=Wi.getJulianCenturiesFromJulianDay(e),i=Wi.getSolarNoonUTC(o,n),a=Wi.getJulianCenturiesFromJulianDay(e+i/1440);let s=Wi.getEquationOfTime(a),u=Wi.getSunDeclination(a),c=Wi.getSunHourAngleAtSunrise(t,u,r),h=n-Ki(c),l=4*h,d=720+l-s;const m=Wi.getJulianCenturiesFromJulianDay(Wi.getJulianDayFromJulianCenturies(o)+d/1440);return s=Wi.getEquationOfTime(m),u=Wi.getSunDeclination(m),c=Wi.getSunHourAngleAtSunrise(t,u,r),h=n-Ki(c),l=4*h,d=720+l-s,d}static getSolarNoonUTC(e,t){const n=Wi.getJulianCenturiesFromJulianDay(Wi.getJulianDayFromJulianCenturies(e)+t/360);let r=Wi.getEquationOfTime(n);const o=720+4*t-r,i=Wi.getJulianCenturiesFromJulianDay(Wi.getJulianDayFromJulianCenturies(e)-.5+o/1440);return r=Wi.getEquationOfTime(i),720+4*t-r}static getSunsetUTC(e,t,n,r){const o=Wi.getJulianCenturiesFromJulianDay(e),i=Wi.getSolarNoonUTC(o,n),a=Wi.getJulianCenturiesFromJulianDay(e+i/1440);let s=Wi.getEquationOfTime(a),u=Wi.getSunDeclination(a),c=Wi.getSunHourAngleAtSunset(t,u,r),h=n-Ki(c),l=4*h,d=720+l-s;const m=Wi.getJulianCenturiesFromJulianDay(Wi.getJulianDayFromJulianCenturies(o)+d/1440);return s=Wi.getEquationOfTime(m),u=Wi.getSunDeclination(m),c=Wi.getSunHourAngleAtSunset(t,u,r),h=n-Ki(c),l=4*h,d=720+l-s,d}}Wi.GEOMETRIC_ZENITH=90,Wi.CIVIL_ZENITH=96,Wi.NAUTICAL_ZENITH=102,Wi.ASTRONOMICAL_ZENITH=108,Wi.JULIAN_DAY_JAN_1_2000=2451545,Wi.JULIAN_DAYS_PER_CENTURY=36525;const qi=new Map,Xi={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"},Qi=new Map;class ea extends Ji{constructor(e,t,n,r,o,i,a,s){const u="number"==typeof e?e:parseFloat(e);if(isNaN(u)||u<-90||u>90)throw new RangeError(`Latitude ${e} out of range [-90,90]`);const c="number"==typeof t?t:parseFloat(t);if(isNaN(c)||c<-180||c>180)throw new RangeError(`Longitude ${t} out of range [-180,180]`);super(o,u,c,"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=Qi.get(e);if(t)return t;const n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour:"numeric",minute:"numeric",hour12:!1});return Qi.set(e,n),n}(this.getTimeZone())}getGeoId(){return this.geoid}static lookup(e){return qi.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 Xi[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":Xi[t]}static addLocation(e,t){const n=e.toLowerCase();return!qi.has(n)&&(qi.set(n,t),!0)}}[["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]].forEach((e=>{const t=new ea(e[2],e[3],"IL"==e[1],e[4],e[0],e[1],void 0,e[5]);ea.addLocation(t.getName(),t)}));const ta=new Map;const na=/^(\d+).(\d+).(\d+),?\s+(\d+).(\d+).(\d+)/;function ra(e,t){const n=function(e){const t=ta.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 ta.set(e,n),n}(e).format(t),r=na.exec(n);let o=r[4];return"24"==o&&(o="00"),r[3]=oa(r[3]),`${r[3]}-${r[1]}-${r[2]}T${o}:${r[5]}:${r[6]}Z`}function oa(e){return e<0?"-00"+oa(-e):e<10?"000"+e:e<100?"00"+e:e<1e3?"0"+e:String(e)}function ia(e){return e<10?"0"+e:String(e)}function aa(e){if(null===e)return new Date(NaN);const t=new Date(e.epochMilliseconds);return t.setMilliseconds(0),t}class sa{constructor(t,n){const r=e.greg.isDate(n)?n:se.isHDate(n)?n.greg():ee(`invalid date: ${n}`);this.date=r,this.gloc=t;const o=zi.PlainDate.from({year:r.getFullYear(),month:r.getMonth()+1,day:r.getDate()});this.noaa=new Wi(t,o)}timeAtAngle(e,t){const n=90+e;return aa(t?this.noaa.getSunriseOffsetByDegrees(n):this.noaa.getSunsetOffsetByDegrees(n))}sunrise(){return aa(this.noaa.getSunrise())}seaLevelSunrise(){return aa(this.noaa.getSeaLevelSunrise())}sunset(){return aa(this.noaa.getSunset())}seaLevelSunset(){return aa(this.noaa.getSeaLevelSunset())}dawn(){return aa(this.noaa.getBeginCivilTwilight())}dusk(){return aa(this.noaa.getEndCivilTwilight())}gregEve(){const e=new Date(this.date);e.setDate(e.getDate()-1);return new sa(this.gloc,e).sunset()}nightHour(){return(this.sunrise()-this.gregEve())/12}chatzot(){return aa(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 aa(Wi.getTimeOffset(t,o))}sofZmanShma(){return this.getShaahZmanisBasedZman(3)}sofZmanTfilla(){return this.getShaahZmanisBasedZman(4)}sofZmanShmaMGA(){const e=this.sunriseOffset(-72,!1),t=(this.sunsetOffset(72,!1)-e)/12;return new Date(e.getTime()+3*t)}sofZmanTfillaMGA(){const e=this.sunriseOffset(-72,!1),t=(this.sunsetOffset(72,!1)-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=ra("UTC",t),r=ra(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?"+":"-")+ia(Math.floor(r/60))+":"+ia(o)}static formatISOWithTimeZone(e,t){return isNaN(t.getTime())?null:ra(e,t).substring(0,19)+sa.timeZoneOffset(e,t)}sunriseOffset(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.seaLevelSunrise();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=this.seaLevelSunset();return isNaN(n.getTime())?n:(t&&(e>0&&n.getSeconds()>=30&&e++,n.setSeconds(0,0)),new Date(n.getTime()+60*e*1e3))}}const ua={FRI:5,SAT:6};function ca(e,t,n,r,o){let i=!1,a=n==ua.SAT,s=e?e.getFlags():le.LIGHT_CANDLES;void 0!==e?n!=ua.FRI&&(s&(le.LIGHT_CANDLES_TZEIS|le.CHANUKAH_CANDLES)?a=!0:s&le.YOM_TOV_ENDS&&(i=!0,a=!0)):n==ua.SAT&&(i=!0,s=le.LIGHT_CANDLES_TZEIS);const u=a?o.havdalahMins:o.candleLightingMins,c=new sa(r,t),h=u?c.sunsetOffset(u,!0):c.tzeit(o.havdalahDeg);return isNaN(h.getTime())?null:i?new la(t,s,h,r,o.havdalahMins,e):new da(t,s,h,r,e)}class ha extends me{constructor(e,t,n,r,o,i){super(e,t,n),this.eventTime=sa.roundTime(r),this.location=o;const a=o.getTimeFormatter();this.eventTimeStr=sa.formatTime(this.eventTime,a),void 0!==i&&(this.linkedEvent=i)}render(e){return l.gettext(this.getDesc(),e)+": "+this.eventTimeStr}renderBrief(e){return l.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 la extends ha{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=l.gettext(this.getDesc(),e);if(this.havdalahMins){const n=l.gettext("min",e);t+=` (${this.havdalahMins} ${n})`}return t}getEmoji(){return"✨"}}class da extends ha{constructor(e,t,n,r,o){super(e,"Candle lighting",t,n,r,o)}getEmoji(){return"🕯️"}}function ma(e,t,n,r,o){return isNaN(t.getTime())?null:new ha(e,n,r.getFlags(),t,o,r)}const fa=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ga=["רִאשׁוֹן","שֵׁנִי","שְׁלִישִׁי","רְבִיעִי","חֲמִישִׁי","שִׁישִּׁי","שַׁבָּת"],ya="בַּלַּ֥יְלָה";class Sa{constructor(e,t){let n=t-7;n<0&&(n+=se.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 se.getMonthName(this.month,this.year)}getDow(){return this.dow}getHour(){return this.hour}getMinutes(){return this.minutes}getChalakim(){return this.chalakim}}class wa extends me{constructor(e,t,n){const r=new Sa(t,n);super(e,`Molad ${r.getMonthName()} ${t}`,le.MOLAD),this.molad=r}render(e){const t=this.molad;"string"==typeof(e=e||l.getLocaleName())&&(e=e.toLowerCase());const n="he"===e||"he-x-nonikud"===e||"h"===e,r=l.gettext(t.getMonthName(),e),o=(n?ga:fa)[t.getDow()],i=t.getMinutes(),a=t.getHour(),s=t.getChalakim(),u=l.gettext("Molad",e),c=l.lookupTranslation("min",e)||"minutes",h=l.gettext("chalakim",e);if(n){return`${u} ${r} יִהְיֶה בַּיּוֹם ${o} בשָׁבוּעַ, בְּשָׁעָה ${a} ${a<5?ya:a<12?"בַּבֹּקֶר":a<17?"בַּצׇּהֳרַיִים":a<21?"בָּעֶרֶב":ya}, ו-${i} ${c} ו-${s} ${h}`}return`${u} ${r}: ${o}, ${i} ${c} and ${s} ${h} after ${a}:00`}}const pa=[null,"Lovingkindness","Might","Beauty","Eternity","Splendor","Foundation","Majesty"],va=[null,"Chesed","Gevurah","Tiferet","Netzach","Hod","Yesod","Malkhut"];class ba extends me{constructor(e,t){if(super(e,`Omer ${t}`,le.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";const t=pa[this.weekNumber],n=pa[this.daysWithinWeeks];switch(e){case"he":const e=l.gettext(t,"he");return`${l.gettext(n,"he")} ${2===this.weekNumber||6===this.weekNumber?"שֶׁבִּ":"שֶׁבְּ"}${e}`.normalize();case"translit":const r=va[this.weekNumber];return`${va[this.daysWithinWeeks]} ${2===this.weekNumber||6===this.weekNumber?"shebi":"sheb'"}${r}`;default:return`${n} within ${t}`}}render(e){e=e||l.getLocaleName();const t=this.omer;return("he"==e?o(t):l.ordinal(t,e))+" "+l.gettext("day of the Omer",e)}renderBrief(e){return l.gettext("Omer",e)+" "+l.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||l.getLocaleName())&&(e=e.toLowerCase()),"he"===e)return Oa(this.omer);if("he-x-nonikud"===e)return l.hebrewStripNikkud(Oa(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 Ma=["","עֲשָׂרָה","עֶשְׂרִים","שְׁלוֹשִׁים","אַרְבָּעִים"],Ia=["","אֶחָד","שְׁנַיִם","שְׁלוֹשָׁה","אַרְבָּעָה","חֲמִשָׁה","שִׁשָׁה","שִׁבְעָה","שְׁמוֹנָה","תִּשְׁעָה"],Ta="שְׁנֵי",Aa="יָמִים",Da=Ta+" "+Aa,Ea="שָׁבוּעוֹת",Ca="יוֹם",Na=Ca+" "+Ia[1];function Oa(e){const t=Math.floor(e/10),n=e%10;let r="הַיוֹם ";if(10<e&&e<20?r+=Ia[n]+" עָשָׂר":e>9&&(r+=Ia[n],n&&(r+=" וְ")),e>2?((e>20||10===e||20===e)&&(r+=Ma[t]),r+=e<11?Ia[n]+" "+Aa+" ":" "+Ca+" "):r+=1===e?Na+" ":Da+" ",e>6){r=r.trim(),r+=", שְׁהֵם ";const t=Math.floor(e/7),n=e%7;r+=t>2?Ia[t]+" "+Ea+" ":1==t?"שָׁבוּעַ "+Ia[1]+" ":Ta+" "+Ea+" ",n&&(r+="וְ",r+=n>2?Ia[n]+" "+Aa+" ":1==n?Na+" ":Da+" ")}return r+="לָעוֹמֶר",r.normalize()}class ka{constructor(e,t){e=+e;const n=se.longCheshvan(e),r=se.shortKislev(e),o=this.type=n&&!r?2:!n&&r?0:1;this.year=e;const i=new se(1,D.TISHREI,e),a=i.abs(),s=this.roshHashanaDay=i.getDay()+1;this.firstSaturday=se.dayOnOrBefore(6,a+6);const u=this.leap=+se.isLeapYear(e);this.il=Boolean(t);const c=`${u}${s}${o}`;if(Ja[c])this.key=c,this.theSedraArray=Ja[c];else{const e=this.key=c+ +this.il;this.theSedraArray=Ja[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||l.getLocaleName();let o=l.gettext(n[0],r);if(2==n.length){o+=("he"==r?"־":"-")+l.gettext(n[1],r)}return l.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 se(this.firstSaturday+7*t)}if("string"==typeof e){const t=Ya.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 se(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=Ya.get(t);if(Ya.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:se.isHDate(e)?e.abs():function(e){throw new TypeError(e)}(`Bad date argument: ${e}`),n=se.dayOnOrBefore(6,t+6),r=(n-this.firstSaturday)/7,o=this.theSedraArray[r];if(void 0===o){return new ka(this.year+1,this.il).lookup(n)}if("string"==typeof o)return{parsha:[o],chag:!0};if(o>=0)return{parsha:[Ha[o]],chag:!1,num:o+1};const i=La(o);return{parsha:[Ha[i],Ha[i+1]],chag:!1,num:[i+1,i+2]}}}const Ha=["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"],Ya=new Map;for(let e=0;e<Ha.length;e++){const t=Ha[e];Ya.set(t,e)}function La(e){return-e}const Fa="Rosh Hashana",Pa="Yom Kippur",Ra="Sukkot",_a="Sukkot Shabbat Chol ha-Moed",Ua="Shmini Atzeret",ja=_a,Ba="Pesach",Za="Pesach I",$a="Pesach Shabbat Chol ha-Moed",xa="Pesach VII",za="Pesach VIII",Va="Shavuot";function Ka(e,t){return Array.from({length:t-e+1},((t,n)=>n+e))}const Ja={"020":[51,52].concat(ja,Ka(0,20),La(21),23,24,Ba,25,La(26),La(28),30,La(31),Ka(33,40),La(41),Ka(43,49),La(50)),"0220":[51,52].concat(ja,Ka(0,20),La(21),23,24,Ba,25,La(26),La(28),30,La(31),33,Va,Ka(34,37),La(38),40,La(41),Ka(43,49),La(50)),"0510":[52].concat(Pa,ja,Ka(0,20),La(21),23,24,Za,za,25,La(26),La(28),30,La(31),Ka(33,40),La(41),Ka(43,50)),"0511":[52].concat(Pa,ja,Ka(0,20),La(21),23,24,Ba,25,La(26),La(28),Ka(30,40),La(41),Ka(43,50)),"052":[52].concat(Pa,_a,Ka(0,24),xa,25,La(26),La(28),30,La(31),Ka(33,40),La(41),Ka(43,50)),"070":[].concat(Fa,52,Ra,Ua,Ka(0,20),La(21),23,24,xa,25,La(26),La(28),30,La(31),Ka(33,40),La(41),Ka(43,50)),"072":[].concat(Fa,52,Ra,Ua,Ka(0,20),La(21),23,24,$a,25,La(26),La(28),30,La(31),Ka(33,40),La(41),Ka(43,49),La(50)),1200:[51,52].concat(_a,Ka(0,27),$a,Ka(28,33),Va,Ka(34,37),La(38),40,La(41),Ka(43,49),La(50)),1201:[51,52].concat(_a,Ka(0,27),$a,Ka(28,40),La(41),Ka(43,49),La(50)),1220:[51,52].concat(_a,Ka(0,27),Za,za,Ka(28,40),La(41),Ka(43,50)),1221:[51,52].concat(_a,Ka(0,27),Ba,Ka(28,50)),150:[52].concat(Pa,_a,Ka(0,28),xa,Ka(29,50)),152:[52].concat(Pa,_a,Ka(0,28),$a,Ka(29,49),La(50)),170:[].concat(Fa,52,Ra,Ua,Ka(0,27),$a,Ka(28,40),La(41),Ka(43,49),La(50)),1720:[].concat(Fa,52,Ra,Ua,Ka(0,27),$a,Ka(28,33),Va,Ka(34,37),La(38),40,La(41),Ka(43,49),La(50))};Ja["0221"]=Ja["020"],Ja["0310"]=Ja["0220"],Ja["0311"]=Ja["020"],Ja[1310]=Ja[1220],Ja[1311]=Ja[1221],Ja[1721]=Ja[170];class Ga extends me{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("-"),le.PARSHA_HASHAVUA),this.parsha=t,this.il=Boolean(n),this.num=r||-1}render(e){const t=e||l.getLocaleName(),n=this.parsha;let r=l.gettext(n[0],e);if(2==n.length){r+=("he"==t?"־":"-")+l.gettext(n[1],e)}return(l.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 Wa="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},qa=function(e){return e&&e.Math===Math&&e},Xa=qa("object"==typeof globalThis&&globalThis)||qa("object"==typeof window&&window)||qa("object"==typeof self&&self)||qa("object"==typeof Wa&&Wa)||qa("object"==typeof Wa&&Wa)||function(){return this}()||Function("return this")(),Qa=function(e){try{return!!e()}catch(e){return!0}},es=!Qa((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),ts={exports:{}},ns=!Qa((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),rs=ns,os=Function.prototype,is=os.call,as=rs&&os.bind.bind(is,is),ss=rs?as:function(e){return function(){return is.apply(e,arguments)}},us="object"==typeof document&&document.all,cs={all:us,IS_HTMLDDA:void 0===us&&void 0!==us},hs=cs.all,ls=cs.IS_HTMLDDA?function(e){return"function"==typeof e||e===hs}:function(e){return"function"==typeof e},ds=function(e){return null==e},ms=ds,fs=TypeError,gs=function(e){if(ms(e))throw new fs("Can't call method on "+e);return e},ys=gs,Ss=Object,ws=function(e){return Ss(ys(e))},ps=ss({}.hasOwnProperty),vs=Object.hasOwn||function(e,t){return ps(ws(e),t)},bs=es,Ms=vs,Is=Function.prototype,Ts=bs&&Object.getOwnPropertyDescriptor,As=Ms(Is,"name"),Ds={EXISTS:As,PROPER:As&&"something"===function(){}.name,CONFIGURABLE:As&&(!bs||bs&&Ts(Is,"name").configurable)},Es=Xa,Cs=Object.defineProperty,Ns=function(e,t){try{Cs(Es,e,{value:t,configurable:!0,writable:!0})}catch(n){Es[e]=t}return t},Os=Ns,ks="__core-js_shared__",Hs=Xa[ks]||Os(ks,{}),Ys=ls,Ls=Hs,Fs=ss(Function.toString);Ys(Ls.inspectSource)||(Ls.inspectSource=function(e){return Fs(e)});var Ps,Rs,_s=Ls.inspectSource,Us=ls,js=Xa.WeakMap,Bs=Us(js)&&/native code/.test(String(js)),Zs=ls,$s=cs.all,xs=cs.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Zs(e)||e===$s}:function(e){return"object"==typeof e?null!==e:Zs(e)},zs={},Vs=xs,Ks=Xa.document,Js=Vs(Ks)&&Vs(Ks.createElement),Gs=function(e){return Js?Ks.createElement(e):{}},Ws=Gs,qs=!es&&!Qa((function(){return 7!==Object.defineProperty(Ws("div"),"a",{get:function(){return 7}}).a})),Xs=es&&Qa((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qs=xs,eu=String,tu=TypeError,nu=function(e){if(Qs(e))return e;throw new tu(eu(e)+" is not an object")},ru=ns,ou=Function.prototype.call,iu=ru?ou.bind(ou):function(){return ou.apply(ou,arguments)},au=Xa,su=ls,uu=function(e,t){return arguments.length<2?(n=au[e],su(n)?n:void 0):au[e]&&au[e][t];var n},cu=ss({}.isPrototypeOf),hu=Xa,lu="undefined"!=typeof navigator&&String(navigator.userAgent)||"",du=hu.process,mu=hu.Deno,fu=du&&du.versions||mu&&mu.version,gu=fu&&fu.v8;gu&&(Rs=(Ps=gu.split("."))[0]>0&&Ps[0]<4?1:+(Ps[0]+Ps[1])),!Rs&&lu&&(!(Ps=lu.match(/Edge\/(\d+)/))||Ps[1]>=74)&&(Ps=lu.match(/Chrome\/(\d+)/))&&(Rs=+Ps[1]);var yu=Rs,Su=Qa,wu=Xa.String,pu=!!Object.getOwnPropertySymbols&&!Su((function(){var e=Symbol("symbol detection");return!wu(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yu&&yu<41})),vu=pu&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bu=uu,Mu=ls,Iu=cu,Tu=Object,Au=vu?function(e){return"symbol"==typeof e}:function(e){var t=bu("Symbol");return Mu(t)&&Iu(t.prototype,Tu(e))},Du=String,Eu=ls,Cu=function(e){try{return Du(e)}catch(e){return"Object"}},Nu=TypeError,Ou=function(e){if(Eu(e))return e;throw new Nu(Cu(e)+" is not a function")},ku=ds,Hu=iu,Yu=ls,Lu=xs,Fu=TypeError,Pu={exports:{}},Ru=Hs;(Pu.exports=function(e,t){return Ru[e]||(Ru[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.3",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"});var _u=Pu.exports,Uu=ss,ju=0,Bu=Math.random(),Zu=Uu(1..toString),$u=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Zu(++ju+Bu,36)},xu=_u,zu=vs,Vu=$u,Ku=pu,Ju=vu,Gu=Xa.Symbol,Wu=xu("wks"),qu=Ju?Gu.for||Gu:Gu&&Gu.withoutSetter||Vu,Xu=function(e){return zu(Wu,e)||(Wu[e]=Ku&&zu(Gu,e)?Gu[e]:qu("Symbol."+e)),Wu[e]},Qu=iu,ec=xs,tc=Au,nc=function(e,t){var n=e[t];return ku(n)?void 0:Ou(n)},rc=function(e,t){var n,r;if("string"===t&&Yu(n=e.toString)&&!Lu(r=Hu(n,e)))return r;if(Yu(n=e.valueOf)&&!Lu(r=Hu(n,e)))return r;if("string"!==t&&Yu(n=e.toString)&&!Lu(r=Hu(n,e)))return r;throw new Fu("Can't convert object to primitive value")},oc=TypeError,ic=Xu("toPrimitive"),ac=function(e,t){if(!ec(e)||tc(e))return e;var n,r=nc(e,ic);if(r){if(void 0===t&&(t="default"),n=Qu(r,e,t),!ec(n)||tc(n))return n;throw new oc("Can't convert object to primitive value")}return void 0===t&&(t="number"),rc(e,t)},sc=Au,uc=function(e){var t=ac(e,"string");return sc(t)?t:t+""},cc=es,hc=qs,lc=Xs,dc=nu,mc=uc,fc=TypeError,gc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,Sc="enumerable",wc="configurable",pc="writable";zs.f=cc?lc?function(e,t,n){if(dc(e),t=mc(t),dc(n),"function"==typeof e&&"prototype"===t&&"value"in n&&pc in n&&!n[pc]){var r=yc(e,t);r&&r[pc]&&(e[t]=n.value,n={configurable:wc in n?n[wc]:r[wc],enumerable:Sc in n?n[Sc]:r[Sc],writable:!1})}return gc(e,t,n)}:gc:function(e,t,n){if(dc(e),t=mc(t),dc(n),hc)try{return gc(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new fc("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var vc,bc,Mc,Ic=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Tc=zs,Ac=Ic,Dc=es?function(e,t,n){return Tc.f(e,t,Ac(1,n))}:function(e,t,n){return e[t]=n,e},Ec=$u,Cc=_u("keys"),Nc=function(e){return Cc[e]||(Cc[e]=Ec(e))},Oc={},kc=Bs,Hc=Xa,Yc=xs,Lc=Dc,Fc=vs,Pc=Hs,Rc=Nc,_c=Oc,Uc="Object already initialized",jc=Hc.TypeError,Bc=Hc.WeakMap;if(kc||Pc.state){var Zc=Pc.state||(Pc.state=new Bc);Zc.get=Zc.get,Zc.has=Zc.has,Zc.set=Zc.set,vc=function(e,t){if(Zc.has(e))throw new jc(Uc);return t.facade=e,Zc.set(e,t),t},bc=function(e){return Zc.get(e)||{}},Mc=function(e){return Zc.has(e)}}else{var $c=Rc("state");_c[$c]=!0,vc=function(e,t){if(Fc(e,$c))throw new jc(Uc);return t.facade=e,Lc(e,$c,t),t},bc=function(e){return Fc(e,$c)?e[$c]:{}},Mc=function(e){return Fc(e,$c)}}var xc={set:vc,get:bc,has:Mc,enforce:function(e){return Mc(e)?bc(e):vc(e,{})},getterFor:function(e){return function(t){var n;if(!Yc(t)||(n=bc(t)).type!==e)throw new jc("Incompatible receiver, "+e+" required");return n}}},zc=ss,Vc=Qa,Kc=ls,Jc=vs,Gc=es,Wc=Ds.CONFIGURABLE,qc=_s,Xc=xc.enforce,Qc=xc.get,eh=String,th=Object.defineProperty,nh=zc("".slice),rh=zc("".replace),oh=zc([].join),ih=Gc&&!Vc((function(){return 8!==th((function(){}),"length",{value:8}).length})),ah=String(String).split("String"),sh=ts.exports=function(e,t,n){"Symbol("===nh(eh(t),0,7)&&(t="["+rh(eh(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Jc(e,"name")||Wc&&e.name!==t)&&(Gc?th(e,"name",{value:t,configurable:!0}):e.name=t),ih&&n&&Jc(n,"arity")&&e.length!==n.arity&&th(e,"length",{value:n.arity});try{n&&Jc(n,"constructor")&&n.constructor?Gc&&th(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Xc(e);return Jc(r,"source")||(r.source=oh(ah,"string"==typeof t?t:"")),e};Function.prototype.toString=sh((function(){return Kc(this)&&Qc(this).source||qc(this)}),"toString");var uh=ts.exports,ch=uh,hh=zs,lh=nu,dh=es,mh=function(e,t,n){return n.get&&ch(n.get,t,{getter:!0}),n.set&&ch(n.set,t,{setter:!0}),hh.f(e,t,n)},fh=function(){var e=lh(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},gh=Qa,yh=Xa.RegExp,Sh=yh.prototype,wh=dh&&gh((function(){var e=!0;try{yh(".","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(Sh,"flags").get.call(t)!==r||n!==r}));wh&&mh(Sh,"flags",{configurable:!0,get:fh});const ph=0,vh=2,bh=5,Mh=6,Ih=D.NISAN,Th=D.IYYAR;function Ah(e){if(e<5708)return null;let t;const n=new se(15,Ih,e).getDay();return t=n===ph?2:n===Mh?3:e<5764?4:n===vh?5:4,new se(t,Th,e)}const Dh=D.NISAN,Eh=D.IYYAR,Ch=D.SIVAN,Nh=D.TAMUZ,Oh=D.AV,kh=D.ELUL,Hh=D.TISHREI,Yh=D.CHESHVAN,Lh=D.KISLEV,Fh=D.SHVAT,Ph=D.ADAR_II,Rh=le.CHAG,_h=le.LIGHT_CANDLES,Uh=le.YOM_TOV_ENDS,jh=le.CHUL_ONLY,Bh=le.IL_ONLY,Zh=le.LIGHT_CANDLES_TZEIS,$h=le.CHANUKAH_CANDLES,xh=le.MAJOR_FAST,zh=le.MINOR_HOLIDAY,Vh=le.EREV,Kh=le.CHOL_HAMOED,Jh="🫓",Gh="🌿🍋",Wh=[{mm:Hh,dd:2,desc:"Rosh Hashana II",flags:Rh|Uh,emoji:"🍏🍯"},{mm:Hh,dd:9,desc:"Erev Yom Kippur",flags:Vh|_h},{mm:Hh,dd:10,desc:"Yom Kippur",flags:Rh|xh|Uh},{mm:Hh,dd:14,desc:"Erev Sukkot",flags:jh|Vh|_h,emoji:Gh},{mm:Hh,dd:15,desc:"Sukkot I",flags:jh|Rh|Zh,emoji:Gh},{mm:Hh,dd:16,desc:"Sukkot II",flags:jh|Rh|Uh,emoji:Gh},{mm:Hh,dd:17,desc:"Sukkot III (CH''M)",flags:jh|Kh,chmDay:1,emoji:Gh},{mm:Hh,dd:18,desc:"Sukkot IV (CH''M)",flags:jh|Kh,chmDay:2,emoji:Gh},{mm:Hh,dd:19,desc:"Sukkot V (CH''M)",flags:jh|Kh,chmDay:3,emoji:Gh},{mm:Hh,dd:20,desc:"Sukkot VI (CH''M)",flags:jh|Kh,chmDay:4,emoji:Gh},{mm:Hh,dd:22,desc:"Shmini Atzeret",flags:jh|Rh|Zh},{mm:Hh,dd:23,desc:"Simchat Torah",flags:jh|Rh|Uh},{mm:Hh,dd:14,desc:"Erev Sukkot",flags:Bh|Vh|_h,emoji:Gh},{mm:Hh,dd:15,desc:"Sukkot I",flags:Bh|Rh|Uh,emoji:Gh},{mm:Hh,dd:16,desc:"Sukkot II (CH''M)",flags:Bh|Kh,chmDay:1,emoji:Gh},{mm:Hh,dd:17,desc:"Sukkot III (CH''M)",flags:Bh|Kh,chmDay:2,emoji:Gh},{mm:Hh,dd:18,desc:"Sukkot IV (CH''M)",flags:Bh|Kh,chmDay:3,emoji:Gh},{mm:Hh,dd:19,desc:"Sukkot V (CH''M)",flags:Bh|Kh,chmDay:4,emoji:Gh},{mm:Hh,dd:20,desc:"Sukkot VI (CH''M)",flags:Bh|Kh,chmDay:5,emoji:Gh},{mm:Hh,dd:22,desc:"Shmini Atzeret",flags:Bh|Rh|Uh},{mm:Hh,dd:21,desc:"Sukkot VII (Hoshana Raba)",flags:_h|Kh,chmDay:-1,emoji:Gh},{mm:Lh,dd:24,desc:"Chanukah: 1 Candle",flags:Vh|zh|$h,emoji:"🕎1️⃣"},{mm:Fh,dd:15,desc:"Tu BiShvat",flags:zh,emoji:"🌳"},{mm:Ph,dd:13,desc:"Erev Purim",flags:Vh|zh,emoji:"🎭️📜"},{mm:Ph,dd:14,desc:"Purim",flags:zh,emoji:"🎭️📜"},{mm:Ph,dd:15,desc:"Shushan Purim",flags:zh,emoji:"🎭️📜"},{mm:Dh,dd:14,desc:"Erev Pesach",flags:Bh|Vh|_h,emoji:"🫓🍷"},{mm:Dh,dd:15,desc:"Pesach I",flags:Bh|Rh|Uh,emoji:Jh},{mm:Dh,dd:16,desc:"Pesach II (CH''M)",flags:Bh|Kh,chmDay:1,emoji:Jh},{mm:Dh,dd:17,desc:"Pesach III (CH''M)",flags:Bh|Kh,chmDay:2,emoji:Jh},{mm:Dh,dd:18,desc:"Pesach IV (CH''M)",flags:Bh|Kh,chmDay:3,emoji:Jh},{mm:Dh,dd:19,desc:"Pesach V (CH''M)",flags:Bh|Kh,chmDay:4,emoji:Jh},{mm:Dh,dd:20,desc:"Pesach VI (CH''M)",flags:Bh|Kh|_h,chmDay:5,emoji:Jh},{mm:Dh,dd:21,desc:"Pesach VII",flags:Bh|Rh|Uh,emoji:Jh},{mm:Dh,dd:14,desc:"Erev Pesach",flags:jh|Vh|_h,emoji:"🫓🍷"},{mm:Dh,dd:15,desc:"Pesach I",flags:jh|Rh|Zh,emoji:"🫓🍷"},{mm:Dh,dd:16,desc:"Pesach II",flags:jh|Rh|Uh,emoji:Jh},{mm:Dh,dd:17,desc:"Pesach III (CH''M)",flags:jh|Kh,chmDay:1,emoji:Jh},{mm:Dh,dd:18,desc:"Pesach IV (CH''M)",flags:jh|Kh,chmDay:2,emoji:Jh},{mm:Dh,dd:19,desc:"Pesach V (CH''M)",flags:jh|Kh,chmDay:3,emoji:Jh},{mm:Dh,dd:20,desc:"Pesach VI (CH''M)",flags:jh|Kh|_h,chmDay:4,emoji:Jh},{mm:Dh,dd:21,desc:"Pesach VII",flags:jh|Rh|Zh,emoji:Jh},{mm:Dh,dd:22,desc:"Pesach VIII",flags:jh|Rh|Uh,emoji:Jh},{mm:Eh,dd:14,desc:"Pesach Sheni",flags:zh},{mm:Eh,dd:18,desc:"Lag BaOmer",flags:zh,emoji:"🔥"},{mm:Ch,dd:5,desc:"Erev Shavuot",flags:Vh|_h,emoji:"⛰️🌸"},{mm:Ch,dd:6,desc:"Shavuot",flags:Bh|Rh|Uh,emoji:"⛰️🌸"},{mm:Ch,dd:6,desc:"Shavuot I",flags:jh|Rh|Zh,emoji:"⛰️🌸"},{mm:Ch,dd:7,desc:"Shavuot II",flags:jh|Rh|Uh,emoji:"⛰️🌸"},{mm:Oh,dd:15,desc:"Tu B'Av",flags:zh,emoji:"❤️"},{mm:kh,dd:1,desc:"Rosh Hashana LaBehemot",flags:zh,emoji:"🐑"},{mm:kh,dd:29,desc:"Erev Rosh Hashana",flags:Vh|_h,emoji:"🍏🍯"}],qh=[{firstYear:5727,mm:Eh,dd:28,desc:"Yom Yerushalayim",chul:!0},{firstYear:5737,mm:Lh,dd:6,desc:"Ben-Gurion Day",satPostponeToSun:!0,friPostponeToSun:!0},{firstYear:5750,mm:Fh,dd:30,desc:"Family Day"},{firstYear:5758,mm:Yh,dd:12,desc:"Yitzhak Rabin Memorial Day",friSatMovetoThu:!0},{firstYear:5764,mm:Eh,dd:10,desc:"Herzl Day",satPostponeToSun:!0},{firstYear:5765,mm:Nh,dd:29,desc:"Jabotinsky Day",satPostponeToSun:!0},{firstYear:5769,mm:Yh,dd:29,desc:"Sigd",chul:!0,suppressEmoji:!0},{firstYear:5777,mm:Dh,dd:10,desc:"Yom HaAliyah",chul:!0},{firstYear:5777,mm:Yh,dd:7,desc:"Yom HaAliyah School Observance"}];class Xh extends me{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()&le.IL_ONLY?e+"?i=on":e}urlDateSuffix(){return this.getDate().greg().getFullYear()}getEmoji(){return this.emoji?this.emoji:this.getFlags()&le.SPECIAL_SHABBAT?"🕍":"✡️"}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 Qh="Rosh Chodesh";class el extends Xh{constructor(e,t){super(e,`${Qh} ${t}`,le.ROSH_CHODESH)}render(e){const t=this.getDesc().substring(13);return l.gettext(Qh,e)+" "+l.gettext(t,e)}basename(){return this.getDesc()}getEmoji(){return this.emoji||"🌒"}}class tl extends Xh{urlDateSuffix(){const e=this.getDate().greg().toISOString();return e.substring(0,e.indexOf("T")).replace(/-/g,"")}}const nl="Shabbat Mevarchim Chodesh";class rl extends me{constructor(e,t){super(e,`${nl} ${t}`,le.SHABBAT_MEVARCHIM),this.monthName=t;const n=e.getFullYear(),r=e.getMonth(),o=r==se.monthsInYear(n)?D.NISAN:r+1,i=new wa(e,n,o);this.memo=i.render("en")}basename(){return this.getDesc()}render(e){return l.gettext(nl,e)+" "+l.gettext(this.monthName,e)}}class ol extends Xh{constructor(e,t,n){super(e,`Rosh Hashana ${t}`,n),this.hyear=t}render(e){return l.gettext("Rosh Hashana",e)+" "+this.hyear}getEmoji(){return"🍏🍯"}}const il="Yom Kippur Katan";class al extends Xh{constructor(e,t){super(e,`${il} ${t}`,le.MINOR_FAST|le.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 l.gettext(il,e)+" "+l.gettext(this.nextMonthName,e)}renderBrief(e){return l.gettext(il,e)}url(){}}const sl=D.NISAN,ul=D.TAMUZ,cl=D.AV,hl=D.ELUL,ll=D.TISHREI,dl=D.KISLEV,ml=D.TEVET,fl=D.ADAR_I,gl=le.CHAG,yl=le.LIGHT_CANDLES_TZEIS,Sl=le.CHANUKAH_CANDLES,wl=le.MINOR_FAST,pl=le.SPECIAL_SHABBAT,vl=le.MODERN_HOLIDAY,bl=le.MAJOR_FAST,Ml=le.MINOR_HOLIDAY,Il=le.EREV;class Tl{has(e){return void 0!==this[e]}get(e){return this[e]}set(e,t){this[e]=t}keys(){return Object.keys(this)}}const Al=new Tl;function Dl(e,t){const n=`${e}-${t?1:0}`;let r=Al.get(n);return r||(r=new ka(e,t),Al.set(n,r)),r}const El={emoji:"🇮🇱"},Cl=new Map,Nl=["0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣"];function Ol(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=Cl.get(e);if(t)return t;const n=new se(1,ll,e),r=new se(15,sl,e),o=new Tl;function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach((e=>{const t=e.date.toString(),n=o.get(t);"object"==typeof n?n[0].getFlags()&le.EREV?n.unshift(e):n.push(e):o.set(t,[e])}))}Wh.forEach((t=>{const n=new se(t.dd,t.mm,e),r=new Xh(n,t.desc,t.flags);t.emoji&&(r.emoji=t.emoji),t.chmDay&&(r.cholHaMoedDay=t.chmDay),i(r)})),i(new ol(n,e,gl|yl)),i(new Xh(new se(3+(4==n.getDay()),ll,e),"Tzom Gedaliah",wl)),i(new Xh(new se(se.dayOnOrBefore(6,7+n.abs())),"Shabbat Shuva",pl));const a=se.shortKislev(e)?new se(1,ml,e):new se(30,dl,e);i(new Xh(a,"Chag HaBanot",Ml));for(let t=2;t<=8;t++){const n=new se(23+t,dl,e);i(new Xh(n,`Chanukah: ${t} Candles`,Ml|Sl,{chanukahDay:t-1,emoji:"🕎"+Nl[t]}))}i(new Xh(new se(32,dl,e),"Chanukah: 8th Day",Ml,{chanukahDay:8,emoji:"🕎"})),i(new tl(new se(10,ml,e),"Asara B'Tevet",wl));const s=r.abs();i(new Xh(new se(se.dayOnOrBefore(6,s-43)),"Shabbat Shekalim",pl),new Xh(new se(se.dayOnOrBefore(6,s-30)),"Shabbat Zachor",pl),new Xh(new se(s-(2==r.getDay()?33:31)),"Ta'anit Esther",wl)),i(new Xh(new se(se.dayOnOrBefore(6,s-14)-7),"Shabbat Parah",pl),new Xh(new se(se.dayOnOrBefore(6,s-14)),"Shabbat HaChodesh",pl),new Xh(new se(se.dayOnOrBefore(6,s-1)),"Shabbat HaGadol",pl),new Xh(6==r.prev().getDay()?r.onOrBefore(4):new se(14,sl,e),"Ta'anit Bechorot",wl)),i(new Xh(new se(se.dayOnOrBefore(6,new se(1,ll,e+1).abs()-4)),"Leil Selichot",Ml,{emoji:"🕍"})),0==r.getDay()&&i(new Xh(new se(16,D.ADAR_II,e),"Purim Meshulash",Ml)),se.isLeapYear(e)&&(i(new Xh(new se(14,fl,e),"Purim Katan",Ml,{emoji:"🎭️"})),i(new Xh(new se(15,fl,e),"Shushan Purim Katan",Ml,{emoji:"🎭️"})));const u=function(e){if(e<5711)return null;let t=new se(27,Ih,e);return t.getDay()===bh?t=new se(26,Ih,e):t.getDay()===ph&&(t=new se(28,Ih,e)),t}(e);u&&i(new Xh(u,"Yom HaShoah",vl));const c=Ah(e);c&&i(new Xh(c,"Yom HaZikaron",vl,El),new Xh(c.next(),"Yom HaAtzma'ut",vl,El)),qh.forEach((t=>{if(e>=t.firstYear){let n=new se(t.dd,t.mm,e);const r=n.getDay();!t.friSatMovetoThu||5!==r&&6!==r?t.friPostponeToSun&&5===r?n=new se(n.abs()+2):t.satPostponeToSun&&6===r&&(n=n.next()):n=n.onOrBefore(4);const o=t.chul?vl:vl|le.IL_ONLY,a=new Xh(n,t.desc,o);t.suppressEmoji||(a.emoji="🇮🇱"),i(a)}}));let h,l=new se(17,ul,e);6==l.getDay()&&(l=new se(18,ul,e),h={observed:!0}),i(new Xh(l,"Tzom Tammuz",wl,h));let d,m=new se(9,cl,e),f="Tish'a B'Av";6==m.getDay()&&(m=m.next(),d={observed:!0},f+=" (observed)");const g=m.abs();i(new Xh(new se(se.dayOnOrBefore(6,g)),"Shabbat Chazon",pl),new Xh(m.prev(),"Erev Tish'a B'Av",Il|bl,d),new Xh(m,f,bl,d),new Xh(new se(se.dayOnOrBefore(6,g+7)),"Shabbat Nachamu",pl));const y=se.monthsInYear(e);for(let t=1;t<=y;t++){const n=se.getMonthName(t,e);if(30==(t==sl?se.daysInMonth(se.monthsInYear(e-1),e-1):se.daysInMonth(t-1,e))?(i(new el(new se(1,t,e),n)),i(new el(new se(30,t-1,e),n))):t!==ll&&i(new el(new se(1,t,e),n)),t==hl)continue;const r=se.getMonthName(t+1,e);i(new rl(new se(29,t,e).onOrBefore(6),r))}for(let t=D.IYYAR;t<=y;t++){const n=t+1;if(n===D.TISHREI||n===D.CHESHVAN||n===D.TEVET)continue;let r=new se(29,t,e);const o=r.getDay();5!==o&&6!==o||(r=r.onOrBefore(4));const a=se.getMonthName(n,e);i(new al(r,a))}const S=Dl(e,!1).find(15);i(new Xh(S,"Shabbat Shirah",pl));const w=function(e){const t=se.isLeapYear(e),n=t?D.ADAR_II:sl,r=t?20:1,o=se.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 se(w);i(new Xh(e,"Birkat Hachamah",Ml,{emoji:"☀️"}))}return Cl.set(e,o),o}const kl=new Map;class Hl{static addCalendar(e,t){if("function"!=typeof t)throw new TypeError(`Invalid calendar function: ${t}`);kl.set(e,t)}static lookup(e,t){const n=kl.get(e);return"function"==typeof n?n(t):null}}const Yl="5.0.0-rc2";var Ll={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"]}}};l.addLocale("ashkenazi",Ll),l.addLocale("a",Ll);var Fl={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:["חֲלָקִים"]}}};l.addLocale("he",Fl),l.addLocale("h",Fl);const Pl=Fl.contexts[""],Rl={};Object.keys(Pl).forEach((e=>{Rl[e]=[l.hebrewStripNikkud(Pl[e][0])]}));const _l={headers:Fl.headers,contexts:{"":Rl}};l.addLocale("he-x-NoNikud",_l);var Ul={},jl={},Bl={}.propertyIsEnumerable,Zl=Object.getOwnPropertyDescriptor,$l=Zl&&!Bl.call({1:2},1);jl.f=$l?function(e){var t=Zl(this,e);return!!t&&t.enumerable}:Bl;var xl=ss,zl=xl({}.toString),Vl=xl("".slice),Kl=Qa,Jl=function(e){return Vl(zl(e),8,-1)},Gl=Object,Wl=ss("".split),ql=Kl((function(){return!Gl("z").propertyIsEnumerable(0)}))?function(e){return"String"===Jl(e)?Wl(e,""):Gl(e)}:Gl,Xl=ql,Ql=gs,ed=function(e){return Xl(Ql(e))},td=es,nd=iu,rd=jl,od=Ic,id=ed,ad=uc,sd=vs,ud=qs,cd=Object.getOwnPropertyDescriptor;Ul.f=td?cd:function(e,t){if(e=id(e),t=ad(t),ud)try{return cd(e,t)}catch(e){}if(sd(e,t))return od(!nd(rd.f,e,t),e[t])};var hd=ls,ld=zs,dd=uh,md=Ns,fd={},gd=Math.ceil,yd=Math.floor,Sd=Math.trunc||function(e){var t=+e;return(t>0?yd:gd)(t)},wd=Sd,pd=function(e){var t=+e;return t!=t||0===t?0:wd(t)},vd=pd,bd=Math.max,Md=Math.min,Id=pd,Td=Math.min,Ad=function(e){return e>0?Td(Id(e),9007199254740991):0},Dd=ed,Ed=function(e,t){var n=vd(e);return n<0?bd(n+t,0):Md(n,t)},Cd=function(e){return Ad(e.length)},Nd=function(e){return function(t,n,r){var o,i=Dd(t),a=Cd(i),s=Ed(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}},Od={includes:Nd(!0),indexOf:Nd(!1)},kd=vs,Hd=ed,Yd=Od.indexOf,Ld=Oc,Fd=ss([].push),Pd=function(e,t){var n,r=Hd(e),o=0,i=[];for(n in r)!kd(Ld,n)&&kd(r,n)&&Fd(i,n);for(;t.length>o;)kd(r,n=t[o++])&&(~Yd(i,n)||Fd(i,n));return i},Rd=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_d=Pd,Ud=Rd.concat("length","prototype");fd.f=Object.getOwnPropertyNames||function(e){return _d(e,Ud)};var jd={};jd.f=Object.getOwnPropertySymbols;var Bd=uu,Zd=fd,$d=jd,xd=nu,zd=ss([].concat),Vd=Bd("Reflect","ownKeys")||function(e){var t=Zd.f(xd(e)),n=$d.f;return n?zd(t,n(e)):t},Kd=vs,Jd=Vd,Gd=Ul,Wd=zs,qd=Qa,Xd=ls,Qd=/#|\.prototype\./,em=function(e,t){var n=nm[tm(e)];return n===om||n!==rm&&(Xd(t)?qd(t):!!t)},tm=em.normalize=function(e){return String(e).replace(Qd,".").toLowerCase()},nm=em.data={},rm=em.NATIVE="N",om=em.POLYFILL="P",im=em,am=Xa,sm=Ul.f,um=Dc,cm=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(hd(n)&&dd(n,i,r),r.global)o?e[t]=n:md(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:ld.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},hm=Ns,lm=function(e,t,n){for(var r=Jd(t),o=Wd.f,i=Gd.f,a=0;a<r.length;a++){var s=r[a];Kd(e,s)||n&&Kd(n,s)||o(e,s,i(t,s))}},dm=im,mm={},fm=Pd,gm=Rd,ym=Object.keys||function(e){return fm(e,gm)},Sm=es,wm=Xs,pm=zs,vm=nu,bm=ed,Mm=ym;mm.f=Sm&&!wm?Object.defineProperties:function(e,t){vm(e);for(var n,r=bm(t),o=Mm(t),i=o.length,a=0;i>a;)pm.f(e,n=o[a++],r[n]);return e};var Im,Tm=uu("document","documentElement"),Am=nu,Dm=mm,Em=Rd,Cm=Oc,Nm=Tm,Om=Gs,km="prototype",Hm="script",Ym=Nc("IE_PROTO"),Lm=function(){},Fm=function(e){return"<"+Hm+">"+e+"</"+Hm+">"},Pm=function(e){e.write(Fm("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rm=function(){try{Im=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Rm="undefined"!=typeof document?document.domain&&Im?Pm(Im):(t=Om("iframe"),n="java"+Hm+":",t.style.display="none",Nm.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Fm("document.F=Object")),e.close(),e.F):Pm(Im);for(var r=Em.length;r--;)delete Rm[km][Em[r]];return Rm()};Cm[Ym]=!0;var _m=Object.create||function(e,t){var n;return null!==e?(Lm[km]=Am(e),n=new Lm,Lm[km]=null,n[Ym]=e):n=Rm(),void 0===t?n:Dm.f(n,t)},Um=Xu,jm=_m,Bm=zs.f,Zm=Um("unscopables"),$m=Array.prototype;void 0===$m[Zm]&&Bm($m,Zm,{configurable:!0,value:jm(null)});var xm=Od.includes,zm=function(e){$m[Zm][e]=!0};(function(e,t){var n,r,o,i,a,s=e.target,u=e.global,c=e.stat;if(n=u?am:c?am[s]||hm(s,{}):(am[s]||{}).prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=sm(n,r))&&a.value:n[r],!dm(u?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;lm(i,o)}(e.sham||o&&o.sham)&&um(i,"sham",!0),cm(n,r,i,e)}})({target:"Array",proto:!0,forced:Qa((function(){return!Array(1).includes()}))},{includes:function(e){return xm(this,e,arguments.length>1?arguments[1]:void 0)}}),zm("includes");function Vm(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}const Km=new Map,Jm={shacharit:!1,mincha:!1,allCongs:!1};function Gm(e,t){return Wm(e,t,!0)}function Wm(e,t,n){const r=e.getFullYear(),o=`${r}-${t?1:0}`,i=Km.get(o),a=i||function(e,t){const n=se.isLeapYear(e),r=12+n;let o=new se(9,D.AV,e);6===o.getDay()&&(o=o.next());let i=new se(15,D.ADAR_II,e);6===i.getDay()&&(i=i.next());const a=[].concat(Vm(1,r).map((t=>new se(1,t,e))),Vm(1,r).filter((t=>30===se.daysInMonth(t,e))).map((t=>new se(30,t,e))),new se(2,D.TISHREI,e),Vm(1,se.daysInMonth(D.NISAN,e)).map((t=>new se(t,D.NISAN,e))),new se(18,D.IYYAR,e),Vm(1,8-(t?1:0)).map((t=>new se(t,D.SIVAN,e))),o,new se(15,D.AV,e),new se(29,D.ELUL,e),Vm(9,24-(t?1:0)).map((t=>new se(t,D.TISHREI,e))),Vm(25,33).map((t=>new se(t,D.KISLEV,e))),new se(15,D.SHVAT,e),new se(14,D.ADAR_II,e),i,n?new se(14,D.ADAR_I,e):[]),s=[].concat(Vm(1,13).map((t=>new se(t,D.SIVAN,e))),Vm(20,31).map((t=>new se(t,D.TISHREI,e))),new se(14,D.IYYAR,e),e>=5708?Ah(e).next():[],e>=5727?new se(28,D.IYYAR,e):[]),u=[].concat(new se(29,D.ELUL,e-1),new se(9,D.TISHREI,e),new se(14,D.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:u.map((e=>e.abs())).sort(((e,t)=>e-t))}}(r,t);i||Km.set(o,a);const s=e.abs();if(a.none.indexOf(s)>-1)return Jm;const u=e.getDay(),c={shacharit:!1,mincha:!1,allCongs:!1};-1===a.some.indexOf(s)&&(c.allCongs=!0),6!==u&&(c.shacharit=!0);const h=s+1;if(n&&-1===a.yesPrev.indexOf(h)){const e=Wm(new se(h),t,!1);c.mincha=e.shacharit}else c.mincha=5!==u;return!c.allCongs||c.mincha||c.shacharit?c:Jm}const qm=D.NISAN,Xm=D.SIVAN,Qm=D.ELUL,ef=D.TISHREI,tf=le.LIGHT_CANDLES,nf=le.YOM_TOV_ENDS,rf=le.CHUL_ONLY,of=le.IL_ONLY,af=le.LIGHT_CANDLES_TZEIS,sf=le.CHANUKAH_CANDLES,uf=le.MINOR_FAST,cf=le.SPECIAL_SHABBAT,hf=le.MODERN_HOLIDAY,lf=le.MAJOR_FAST,df=le.ROSH_CHODESH,mf=le.PARSHA_HASHAVUA,ff=le.DAF_YOMI,gf=le.MISHNA_YOMI,yf=le.NACH_YOMI,Sf=le.YERUSHALMI_YOMI,wf=le.OMER_COUNT,pf=le.SHABBAT_MEVARCHIM,vf=le.MINOR_HOLIDAY,bf=le.EREV,Mf=le.CHOL_HAMOED,If=le.YOM_KIPPUR_KATAN,Tf=new Set,Af={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};const Df={Jerusalem:40,Haifa:30,"Zikhron Ya'aqov":30,"Zikhron Ya'akov":30,"Zikhron Yaakov":30,"Zichron Ya'akov":30,"Zichron Yaakov":30},Ef={281184:40,294801:30,293067:30};function Cf(t){if("number"==typeof t)return t;if(e.greg.isDate(t))return e.greg.greg2abs(t);if(se.isHDate(t))return t.abs();throw new TypeError(`Invalid date type: ${t}`)}function Nf(e){var t;if("number"==typeof e.mask)return function(e){const t=e.mask;t&df&&delete e.noRoshChodesh;t&hf&&delete e.noModern;t&uf&&delete e.noMinorFast;t&cf&&delete e.noSpecialShabbat;t&mf&&(e.sedrot=!0);t&(ff|gf|yf|Sf)&&(e.dailyLearning=e.dailyLearning||{},t&ff&&(e.dailyLearning.dafYomi=!0),t&gf&&(e.dailyLearning.mishnaYomi=!0),t&yf&&(e.dailyLearning.nachYomi=!0),t&Sf&&(e.dailyLearning.yerushalmi=1));t&wf&&(e.omer=!0);t&pf&&(e.shabbatMevarchim=!0);t&If&&(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|=df|nf|uf|cf|hf|lf|vf|bf|Mf|tf|af|sf),e.candlelighting&&(r|=tf|af|nf),e.noRoshChodesh&&(r&=~df),e.noModern&&(r&=~hf),e.noMinorFast&&(r&=~uf),e.noSpecialShabbat&&(r&=~cf,r&=~pf),r|=n?of:rf,e.sedrot&&(r|=mf),e.omer&&(r|=wf),e.shabbatMevarchim&&(r|=pf),e.yomKippurKatan&&(r|=If),e.dailyLearning){const t=e.dailyLearning;t.dafYomi&&(r|=ff),t.mishnaYomi&&(r|=gf),t.nachYomi&&(r|=yf),t.yerushalmi&&(r|=Sf)}return r}const Of=tf|af|sf|nf,kf=new ea(0,0,!1,"UTC"),Hf={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 Yf(e){return e.observedInIsrael()}function Lf(e){return e.observedInDiaspora()}const Ff=new Map;class Pf{static calendar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n,r;n={},r=t,Object.keys(r).forEach((e=>n[e]=r[e])),t=n,function(e){if(!e.candlelighting)return;const t=e.location;if(void 0===t||!(t instanceof ea))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=Ef[e];"number"==typeof r&&(n=r);const o=Df[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 o=t.location=t.location||kf,i=t.il=t.il||o.il||!1;if(t.mask=Nf(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(!l.useLocale(e))throw new TypeError(`Locale '${e}' not found; did you forget to import @hebcal/locales?`)}else l.useLocale("en");const a=[];let s,u,c,h,d=-1;const m=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[Cf(t.start),Cf(t.end)];const n=Boolean(t.isHebrewYear),r=void 0!==t.year?parseInt(t.year,10):n?(new se).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?se.monthNum(t.month):t.month);const i=parseInt(t.numYears,10)||1;if(n){const e=new se(1,o||ef,r);let n=e.abs();const a=t.month?n+e.daysInMonth():new se(1,ef,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 u;if(t.month)u=s+e.greg.daysInMonth(o,r)-1;else{const t=r+i,n=new Date(t,0,1);t<100&&n.setFullYear(t),u=e.greg.greg2abs(n)-1}return[s,u]}}(t);!function(e){Object.keys(e).forEach((e=>{void 0!==Af[e]||Tf.has(e)||(console.warn(`Ignoring unrecognized HebrewCalendar option: ${e}`),Tf.add(e))}))}(t);const f=m[0],g=m[1];e.greg.abs2greg(f).getFullYear()<100&&(t.candlelighting=!1);for(let e=f;e<=g;e++){const n=new se(e),r=n.getFullYear();r!=d&&(d=r,u=Ol(d),t.sedrot&&(s=Dl(d,i)),t.omer&&(c=se.hebrew2abs(d,qm,16),h=se.hebrew2abs(d,Xm,5)));const l=a.length,m=n.getDay();let f;if((u.get(n.toString())||[]).forEach((e=>{f=Rf(a,e,t,f,m)})),t.sedrot&&6===m){const t=s.lookup(e);t.chag||a.push(new Ga(n,t.parsha,i,t.num))}const g=t.dailyLearning;if("object"==typeof g&&Object.keys(g).forEach((e=>{const t=g[e];if(t){const r="yerushalmi"===e?2===t?"yerushalmi-schottenstein":"yerushalmi-vilna":e,o=Hl.lookup(r,n);o&&a.push(o)}})),t.omer&&e>=c&&e<=h){const r=new ba(n,e-c+1);if(t.candlelighting){const e=new sa(o,n.prev()).tzeit(7.0833);isNaN(e.getTime())||(r.alarm=e)}a.push(r)}const y=n.getMonth();if(t.molad&&6==m&&y!=Qm&&n.getDate()>=23&&n.getDate()<=29){const e=y==se.monthsInYear(r)?qm:y+1;a.push(new wa(n,r,e))}if(f||!t.candlelighting||5!=m&&6!=m||(f=ca(void 0,n,m,o,t),5===m&&f&&s&&(f.memo=s.getString(e))),f instanceof la&&(0===t.havdalahMins||0===t.havdalahDeg)&&(f=null),f&&a.push(f),t.addHebrewDates||t.addHebrewDatesForEvents&&l!=a.length){const e=new fe(n);l==a.length?a.push(e):a.splice(l,0,e)}}return a}static getBirthdayOrAnniversary(e,t){const n=Q(e,t);return new se(n)}static getYahrzeit(e,t){const n=X(e,t);return new se(n)}static getHolidaysForYear(e){return Ol(e)}static getHolidaysForYearArray(e,t){const n=`${e}-${t?1:0}`;let r=Ff.get(n);if(r)return r;const o=Ol(e),i=se.hebrew2abs(e,ef,1),a=se.hebrew2abs(e+1,ef,1)-1;r=[];const s=t?Yf:Lf;for(let e=i;e<=a;e++){const t=new se(e),n=o.get(t.toString());if(n){const e=n.filter(s);r=r.concat(e)}}return Ff.set(n,r),r}static getHolidaysOnDate(e,t){const n=se.isHDate(e)?e:new se(e),r=Ol(n.getFullYear()).get(n.toString());if(void 0===t||void 0===r)return r;const o=t?Yf:Lf;return r.filter(o)}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===Hf[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 Yl}static getSedra(e,t){return Dl(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===D.NISAN&&(15===o||16===o)&&e.getFlags()&le.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()&le.ROSH_CHODESH||t.startsWith("Pesach")&&"Pesach I"!==t&&"Pesach II"!==t})).map((e=>e.getDate().abs())).includes(r)?1:0}(Pf.getHolidaysForYearArray(e.getFullYear(),t),e)}static tachanun(e,t){return Gm(e,t)}}function Rf(e,t,n,r,o){const i=n.il;if(!t.observedIn(i))return r;const a=t.getFlags();if(!n.yomKippurKatan&&a&If||n.noModern&&a&hf)return r;const s=n.location,u=Boolean(a&lf),c=Boolean(a&uf);if(n.candlelighting&&(u||c)&&(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 sa(i,o);if("Erev Tish'a B'Av"===n){const t=s.sunset();e.startEvent=ma(r,t,"Fast begins",e,i)}else if(n.startsWith("Tish'a B'Av"))e.endEvent=ma(r,s.tzeit(a),"Fast ends",e,i);else{const t=s.alotHaShachar();e.startEvent=ma(r,t,"Fast begins",e,i),5===o.getDay()||14===r.getDate()&&r.getMonth()===D.NISAN||(e.endEvent=ma(r,s.tzeit(a),"Fast ends",e,i))}return e}(t,n),t.startEvent&&(u||c&&!n.noMinorFast)&&e.push(t.startEvent)),a&n.mask||!a&&!n.userMask){if(n.candlelighting&&a&Of){const e=t.getDate();if(r=ca(t,e,o,s,n),a&sf&&r&&!n.noHolidays){const n=5===o||6===o?r:function(e,t,n){const r=new sa(n,t.greg());return ma(t,r.dusk(),e.getDesc(),e,n)}(t,e,s),i={eventTime:n.eventTime,eventTimeStr:n.eventTimeStr,location:s};t.chanukahDay&&(i.chanukahDay=t.chanukahDay),t.emoji&&(i.emoji=t.emoji),t=new Xh(t.getDate(),t.getDesc(),a,i),r=void 0}}(!n.noHolidays||n.yomKippurKatan&&a&If)&&e.push(t)}return t.endEvent&&(u||c&&!n.noMinorFast)&&e.push(t.endEvent),r}return e.AsaraBTevetEvent=tl,e.CandleLightingEvent=da,e.DailyLearning=Hl,e.Event=me,e.GeoLocation=Ji,e.HDate=se,e.HavdalahEvent=la,e.HebrewCalendar=Pf,e.HebrewDateEvent=fe,e.HolidayEvent=Xh,e.Locale=l,e.Location=ea,e.MevarchimChodeshEvent=rl,e.Molad=Sa,e.MoladEvent=wa,e.NOAACalculator=Wi,e.OmerEvent=ba,e.ParshaEvent=Ga,e.RoshChodeshEvent=el,e.RoshHashanaEvent=ol,e.Sedra=ka,e.TimedEvent=ha,e.Zmanim=sa,e.flags=le,e.gematriya=o,e.gematriyaStrToNum=i,e.months=D,e.parshiot=Ha,e.version=Yl,e}({});